gralobe 1.0.11 → 1.0.13
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/gralobe.js +235 -142
- package/dist/gralobe.js.map +1 -1
- package/dist/gralobe.umd.cjs +106 -13
- package/dist/gralobe.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/gralobe.js
CHANGED
|
@@ -481,7 +481,7 @@ var he = {
|
|
|
481
481
|
return typeof e == "number";
|
|
482
482
|
}, Ai = function(e) {
|
|
483
483
|
return typeof e > "u";
|
|
484
|
-
},
|
|
484
|
+
}, ve = function(e) {
|
|
485
485
|
return typeof e == "object";
|
|
486
486
|
}, ee = function(e) {
|
|
487
487
|
return e !== !1;
|
|
@@ -494,11 +494,11 @@ var he = {
|
|
|
494
494
|
return (Nt = at(e, ce)) && re;
|
|
495
495
|
}, Di = function(e, t) {
|
|
496
496
|
return console.warn("Invalid property", e, "set to", t, "Missing plugin? gsap.registerPlugin()");
|
|
497
|
-
},
|
|
497
|
+
}, vt = function(e, t) {
|
|
498
498
|
return !t && console.warn(e);
|
|
499
499
|
}, Fn = function(e, t) {
|
|
500
500
|
return e && (ce[e] = t) && Nt && (Nt[e] = t) || ce;
|
|
501
|
-
},
|
|
501
|
+
}, Et = function() {
|
|
502
502
|
return 0;
|
|
503
503
|
}, ss = {
|
|
504
504
|
suppressEvents: !0,
|
|
@@ -511,7 +511,7 @@ var he = {
|
|
|
511
511
|
suppressEvents: !0
|
|
512
512
|
}, Mi = {}, Re = [], ci = {}, zn, ae = {}, qt = {}, Wi = 30, Ut = [], Ri = "", Oi = function(e) {
|
|
513
513
|
var t = e[0], i, n;
|
|
514
|
-
if (
|
|
514
|
+
if (ve(t) || G(t) || (e = [e]), !(i = (t._gsap || {}).harness)) {
|
|
515
515
|
for (n = Ut.length; n-- && !Ut[n].targetTest(t); )
|
|
516
516
|
;
|
|
517
517
|
i = Ut[n];
|
|
@@ -564,7 +564,7 @@ var he = {
|
|
|
564
564
|
return e;
|
|
565
565
|
}, qi = function a(e, t) {
|
|
566
566
|
for (var i in t)
|
|
567
|
-
i !== "__proto__" && i !== "constructor" && i !== "prototype" && (e[i] =
|
|
567
|
+
i !== "__proto__" && i !== "constructor" && i !== "prototype" && (e[i] = ve(t[i]) ? a(e[i] || (e[i] = {}), t[i]) : t[i]);
|
|
568
568
|
return e;
|
|
569
569
|
}, Bt = function(e, t) {
|
|
570
570
|
var i = {}, n;
|
|
@@ -671,8 +671,8 @@ var he = {
|
|
|
671
671
|
return e instanceof q ? je(e) : lt(e, e._dur);
|
|
672
672
|
}, ms = {
|
|
673
673
|
_start: 0,
|
|
674
|
-
endTime:
|
|
675
|
-
totalDuration:
|
|
674
|
+
endTime: Et,
|
|
675
|
+
totalDuration: Et
|
|
676
676
|
}, pe = function a(e, t, i) {
|
|
677
677
|
var n = e.labels, r = e._recent || ms, s = e.duration() >= fe ? r.endTime(!1) : e._dur, o, l, c;
|
|
678
678
|
return Z(t) && (isNaN(t) || t in n) ? (l = t.charAt(0), c = t.substr(-1) === "%", o = t.indexOf("="), l === "<" || l === ">" ? (o >= 0 && (t = t.replace(/=/, "")), (l === "<" ? r._start : r.endTime(r._repeat >= 0)) + (parseFloat(t.substr(1)) || 0) * (c ? (o < 0 ? r : i).totalDuration() / 100 : 1)) : o < 0 ? (t in n || (n[t] = s), n[t]) : (l = parseFloat(t.charAt(o - 1) + t.substr(o + 1)), c && i && (l = l / 100 * (W(i) ? i[0] : i).totalDuration()), o > 1 ? a(e, t.substr(0, o - 1), i) + l : s + l)) : t == null ? s : +t;
|
|
@@ -695,7 +695,7 @@ var he = {
|
|
|
695
695
|
return Dt(e, t, n);
|
|
696
696
|
});
|
|
697
697
|
}, pi = [].slice, Zn = function(e, t) {
|
|
698
|
-
return e &&
|
|
698
|
+
return e && ve(e) && "length" in e && (!t && !e.length || e.length - 1 in e && ve(e[0])) && !e.nodeType && e !== _e;
|
|
699
699
|
}, _s = function(e, t, i) {
|
|
700
700
|
return i === void 0 && (i = []), e.forEach(function(n) {
|
|
701
701
|
var r;
|
|
@@ -704,9 +704,9 @@ var he = {
|
|
|
704
704
|
}, me = function(e, t, i) {
|
|
705
705
|
return z && !t && z.selector ? z.selector(e) : Z(e) && !i && (hi || !ht()) ? pi.call((t || Si).querySelectorAll(e), 0) : W(e) ? _s(e, i) : Zn(e) ? pi.call(e, 0) : e ? [e] : [];
|
|
706
706
|
}, fi = function(e) {
|
|
707
|
-
return e = me(e)[0] ||
|
|
707
|
+
return e = me(e)[0] || vt("Invalid scope") || {}, function(t) {
|
|
708
708
|
var i = e.current || e.nativeElement || e;
|
|
709
|
-
return me(t, i.querySelectorAll ? i : i === e ?
|
|
709
|
+
return me(t, i.querySelectorAll ? i : i === e ? vt("Invalid scope") || Si.createElement("div") : e);
|
|
710
710
|
};
|
|
711
711
|
}, Kn = function(e) {
|
|
712
712
|
return e.sort(function() {
|
|
@@ -715,7 +715,7 @@ var he = {
|
|
|
715
715
|
}, Xn = function(e) {
|
|
716
716
|
if (G(e))
|
|
717
717
|
return e;
|
|
718
|
-
var t =
|
|
718
|
+
var t = ve(e) ? e : {
|
|
719
719
|
each: e
|
|
720
720
|
}, i = Ye(t.ease), n = t.from || 0, r = parseFloat(t.base) || 0, s = {}, o = n > 0 && n < 1, l = isNaN(n) || o, c = t.axis, h = n, u = n;
|
|
721
721
|
return Z(n) ? h = u = {
|
|
@@ -723,16 +723,16 @@ var he = {
|
|
|
723
723
|
edges: 0.5,
|
|
724
724
|
end: 1
|
|
725
725
|
}[n] || 0 : !o && l && (h = n[0], u = n[1]), function(p, m, f) {
|
|
726
|
-
var d = (f || t).length, g = s[d], _, y, x,
|
|
726
|
+
var d = (f || t).length, g = s[d], _, y, x, v, b, C, E, P, w;
|
|
727
727
|
if (!g) {
|
|
728
728
|
if (w = t.grid === "auto" ? 0 : (t.grid || [1, fe])[1], !w) {
|
|
729
|
-
for (
|
|
729
|
+
for (E = -fe; E < (E = f[w++].getBoundingClientRect().left) && w < d; )
|
|
730
730
|
;
|
|
731
731
|
w < d && w--;
|
|
732
732
|
}
|
|
733
|
-
for (g = s[d] = [], _ = l ? Math.min(w, d) * h - 0.5 : n % w, y = w === fe ? 0 : l ? d * u / w - 0.5 : n / w | 0,
|
|
734
|
-
x = C % w - _,
|
|
735
|
-
n === "random" && Kn(g), g.max =
|
|
733
|
+
for (g = s[d] = [], _ = l ? Math.min(w, d) * h - 0.5 : n % w, y = w === fe ? 0 : l ? d * u / w - 0.5 : n / w | 0, E = 0, P = fe, C = 0; C < d; C++)
|
|
734
|
+
x = C % w - _, v = y - (C / w | 0), g[C] = b = c ? Math.abs(c === "y" ? v : x) : Mn(x * x + v * v), b > E && (E = b), b < P && (P = b);
|
|
735
|
+
n === "random" && Kn(g), g.max = E - P, g.min = P, g.v = d = (parseFloat(t.amount) || parseFloat(t.each) * (w > d ? d - 1 : c ? c === "y" ? d / w : w : Math.max(w, d / w)) || 0) * (n === "edges" ? -1 : 1), g.b = d < 0 ? r - d : r, g.u = X(t.amount || t.each) || 0, i = i && d < 0 ? sr(i) : i;
|
|
736
736
|
}
|
|
737
737
|
return d = (g[p] - g.min) / g.max || 0, j(g.b + (i ? i(d) : d) * g.v) + g.u;
|
|
738
738
|
};
|
|
@@ -744,7 +744,7 @@ var he = {
|
|
|
744
744
|
};
|
|
745
745
|
}, Wn = function(e, t) {
|
|
746
746
|
var i = W(e), n, r;
|
|
747
|
-
return !i &&
|
|
747
|
+
return !i && ve(e) && (n = i = e.radius || fe, e.values ? (e = me(e.values), (r = !Pe(e[0])) && (n *= n)) : e = mi(e.increment)), ke(t, i ? G(e) ? function(s) {
|
|
748
748
|
return r = e(s), Math.abs(r - s) <= n ? r : s;
|
|
749
749
|
} : function(s) {
|
|
750
750
|
for (var o = parseFloat(r ? s.x : s), l = parseFloat(r ? s.y : 0), c = fe, h = 0, u = e.length, p, m; u--; )
|
|
@@ -773,12 +773,12 @@ var he = {
|
|
|
773
773
|
return ke(i, function(n) {
|
|
774
774
|
return e[~~t(n)];
|
|
775
775
|
});
|
|
776
|
-
},
|
|
776
|
+
}, vs = function a(e, t, i) {
|
|
777
777
|
var n = t - e;
|
|
778
778
|
return W(e) ? Qn(e, a(0, e.length), t) : ke(i, function(r) {
|
|
779
779
|
return (n + (r - e) % n) % n + e;
|
|
780
780
|
});
|
|
781
|
-
},
|
|
781
|
+
}, Es = function a(e, t, i) {
|
|
782
782
|
var n = t - e, r = n * 2;
|
|
783
783
|
return W(e) ? Qn(e, a(0, e.length - 1), t) : ke(i, function(s) {
|
|
784
784
|
return s = (r + (s - e) % r) % r || 0, e + (s > n ? r - s : s);
|
|
@@ -839,7 +839,7 @@ var he = {
|
|
|
839
839
|
var t = e.name, i = G(e), n = t && !i && e.init ? function() {
|
|
840
840
|
this._props = [];
|
|
841
841
|
} : e, r = {
|
|
842
|
-
init:
|
|
842
|
+
init: Et,
|
|
843
843
|
render: zi,
|
|
844
844
|
add: Li,
|
|
845
845
|
kill: Ns,
|
|
@@ -931,8 +931,8 @@ var he = {
|
|
|
931
931
|
return i = Cs.test(t), e[1] = tn(e[1], i), e[0] = tn(e[0], i, nr(e[1])), !0;
|
|
932
932
|
}, Ct, oe = (function() {
|
|
933
933
|
var a = Date.now, e = 500, t = 33, i = a(), n = i, r = 1e3 / 240, s = r, o = [], l, c, h, u, p, m, f = function d(g) {
|
|
934
|
-
var _ = a() - n, y = g === !0, x,
|
|
935
|
-
if ((_ > e || _ < 0) && (i += _ - t), n += _, b = n - i, x = b - s, (x > 0 || y) && (C = ++u.frame, p = b - u.time * 1e3, u.time = b = b / 1e3, s += x + (x >= r ? 4 : r - x),
|
|
934
|
+
var _ = a() - n, y = g === !0, x, v, b, C;
|
|
935
|
+
if ((_ > e || _ < 0) && (i += _ - t), n += _, b = n - i, x = b - s, (x > 0 || y) && (C = ++u.frame, p = b - u.time * 1e3, u.time = b = b / 1e3, s += x + (x >= r ? 4 : r - x), v = 1), y || (l = c(d)), v)
|
|
936
936
|
for (m = 0; m < o.length; m++)
|
|
937
937
|
o[m](b, p, C, g);
|
|
938
938
|
};
|
|
@@ -951,7 +951,7 @@ var he = {
|
|
|
951
951
|
}, Ct = 1, f(2));
|
|
952
952
|
},
|
|
953
953
|
sleep: function() {
|
|
954
|
-
(h ? cancelAnimationFrame : clearTimeout)(l), Ct = 0, c =
|
|
954
|
+
(h ? cancelAnimationFrame : clearTimeout)(l), Ct = 0, c = Et;
|
|
955
955
|
},
|
|
956
956
|
lagSmoothing: function(g, _) {
|
|
957
957
|
e = g || 1 / 0, t = Math.min(_ || 33, e);
|
|
@@ -960,8 +960,8 @@ var he = {
|
|
|
960
960
|
r = 1e3 / (g || 240), s = u.time * 1e3 + r;
|
|
961
961
|
},
|
|
962
962
|
add: function(g, _, y) {
|
|
963
|
-
var x = _ ? function(
|
|
964
|
-
g(
|
|
963
|
+
var x = _ ? function(v, b, C, E) {
|
|
964
|
+
g(v, b, C, E), u.remove(x);
|
|
965
965
|
} : g;
|
|
966
966
|
return u.remove(g), o[y ? "unshift" : "push"](x), ht(), x;
|
|
967
967
|
},
|
|
@@ -1226,18 +1226,18 @@ var q = /* @__PURE__ */ (function(a) {
|
|
|
1226
1226
|
}, t.staggerFromTo = function(n, r, s, o, l, c, h, u) {
|
|
1227
1227
|
return o.startAt = s, yt(o).immediateRender = ee(o.immediateRender), this.staggerTo(n, r, o, l, c, h, u);
|
|
1228
1228
|
}, t.render = function(n, r, s) {
|
|
1229
|
-
var o = this._time, l = this._dirty ? this.totalDuration() : this._tDur, c = this._dur, h = n <= 0 ? 0 : j(n), u = this._zTime < 0 != n < 0 && (this._initted || !c), p, m, f, d, g, _, y, x,
|
|
1229
|
+
var o = this._time, l = this._dirty ? this.totalDuration() : this._tDur, c = this._dur, h = n <= 0 ? 0 : j(n), u = this._zTime < 0 != n < 0 && (this._initted || !c), p, m, f, d, g, _, y, x, v, b, C, E;
|
|
1230
1230
|
if (this !== N && h > l && n >= 0 && (h = l), h !== this._tTime || s || u) {
|
|
1231
|
-
if (o !== this._time && c && (h += this._time - o, n += this._time - o), p = h,
|
|
1231
|
+
if (o !== this._time && c && (h += this._time - o, n += this._time - o), p = h, v = this._start, x = this._ts, _ = !x, u && (c || (o = this._zTime), (n || !r) && (this._zTime = n)), this._repeat) {
|
|
1232
1232
|
if (C = this._yoyo, g = c + this._rDelay, this._repeat < -1 && n < 0)
|
|
1233
1233
|
return this.totalTime(g * 100 + n, r, s);
|
|
1234
|
-
if (p = j(h % g), h === l ? (d = this._repeat, p = c) : (b = j(h / g), d = ~~b, d && d === b && (p = c, d--), p > c && (p = c)), b = ot(this._tTime, g), !o && this._tTime && b !== d && this._tTime - b * g - this._dur <= 0 && (b = d), C && d & 1 && (p = c - p,
|
|
1234
|
+
if (p = j(h % g), h === l ? (d = this._repeat, p = c) : (b = j(h / g), d = ~~b, d && d === b && (p = c, d--), p > c && (p = c)), b = ot(this._tTime, g), !o && this._tTime && b !== d && this._tTime - b * g - this._dur <= 0 && (b = d), C && d & 1 && (p = c - p, E = 1), d !== b && !this._lock) {
|
|
1235
1235
|
var P = C && b & 1, w = P === (C && d & 1);
|
|
1236
|
-
if (d < b && (P = !P), o = P ? 0 : h % c ? c : h, this._lock = 1, this.render(o || (
|
|
1236
|
+
if (d < b && (P = !P), o = P ? 0 : h % c ? c : h, this._lock = 1, this.render(o || (E ? 0 : j(d * g)), r, !c)._lock = 0, this._tTime = h, !r && this.parent && le(this, "onRepeat"), this.vars.repeatRefresh && !E && (this.invalidate()._lock = 1), o && o !== this._time || _ !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
|
|
1237
1237
|
return this;
|
|
1238
|
-
if (c = this._dur, l = this._tDur, w && (this._lock = 2, o = P ? c : -1e-4, this.render(o, !0), this.vars.repeatRefresh && !
|
|
1238
|
+
if (c = this._dur, l = this._tDur, w && (this._lock = 2, o = P ? c : -1e-4, this.render(o, !0), this.vars.repeatRefresh && !E && this.invalidate()), this._lock = 0, !this._ts && !_)
|
|
1239
1239
|
return this;
|
|
1240
|
-
ar(this,
|
|
1240
|
+
ar(this, E);
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
1243
|
if (this._hasPause && !this._forcing && this._lock < 2 && (y = fs(this, j(o), j(p)), y && (h -= p - (p = y._start))), this._tTime = h, this._time = p, this._act = !x, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = n, o = 0), !o && h && !r && !b && (le(this, "onStart"), this._tTime !== h))
|
|
@@ -1269,8 +1269,8 @@ var q = /* @__PURE__ */ (function(a) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
1271
|
if (y && !r && (this.pause(), y.render(p >= o ? 0 : -k)._zTime = p >= o ? 1 : -1, this._ts))
|
|
1272
|
-
return this._start =
|
|
1273
|
-
this._onUpdate && !r && le(this, "onUpdate", !0), (h === l && this._tTime >= this.totalDuration() || !h && o) && (
|
|
1272
|
+
return this._start = v, Zt(this), this.render(n, r, s);
|
|
1273
|
+
this._onUpdate && !r && le(this, "onUpdate", !0), (h === l && this._tTime >= this.totalDuration() || !h && o) && (v === this._start || Math.abs(x) !== Math.abs(this._ts)) && (this._lock || ((n || !c) && (h === l && this._ts > 0 || !h && this._ts < 0) && Ie(this, 1), !r && !(n < 0 && !o) && (h || o || !l) && (le(this, h === l && n >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < l && this.timeScale() > 0) && this._prom())));
|
|
1274
1274
|
}
|
|
1275
1275
|
return this;
|
|
1276
1276
|
}, t.add = function(n, r) {
|
|
@@ -1306,7 +1306,7 @@ var q = /* @__PURE__ */ (function(a) {
|
|
|
1306
1306
|
}, t.removeLabel = function(n) {
|
|
1307
1307
|
return delete this.labels[n], this;
|
|
1308
1308
|
}, t.addPause = function(n, r, s) {
|
|
1309
|
-
var o = H.delayedCall(0, r ||
|
|
1309
|
+
var o = H.delayedCall(0, r || Et, s);
|
|
1310
1310
|
return o.data = "isPause", this._hasPause = 1, ye(this, o, pe(this, n));
|
|
1311
1311
|
}, t.removePause = function(n) {
|
|
1312
1312
|
var r = this._first;
|
|
@@ -1415,7 +1415,7 @@ var Ms = function(e, t, i, n, r, s, o) {
|
|
|
1415
1415
|
if (Z(n) && (~n.indexOf("random(") && (n = wt(n)), n.charAt(1) === "=" && (f = it(p, n) + (X(p) || 0), (f || f === 0) && (n = f))), !h || p !== n || gi)
|
|
1416
1416
|
return !isNaN(p * n) && n !== "" ? (f = new ie(this._pt, e, t, +p || 0, n - (p || 0), typeof u == "boolean" ? Fs : pr, 0, m), c && (f.fp = c), o && f.modifier(o, this, e), this._pt = f) : (!u && !(t in e) && Di(t, n), Ms.call(this, e, t, p, n, m, l || he.stringFilter, c));
|
|
1417
1417
|
}, Rs = function(e, t, i, n, r) {
|
|
1418
|
-
if (G(e) && (e = bt(e, r, t, i, n)), !
|
|
1418
|
+
if (G(e) && (e = bt(e, r, t, i, n)), !ve(e) || e.style && e.nodeType || W(e) || Rn(e))
|
|
1419
1419
|
return Z(e) ? bt(e, r, t, i, n) : e;
|
|
1420
1420
|
var s = {}, o;
|
|
1421
1421
|
for (o in e)
|
|
@@ -1428,8 +1428,8 @@ var Ms = function(e, t, i, n, r, s, o) {
|
|
|
1428
1428
|
c[o._props[h]] = l;
|
|
1429
1429
|
return o;
|
|
1430
1430
|
}, Te, gi, ki = function a(e, t, i) {
|
|
1431
|
-
var n = e.vars, r = n.ease, s = n.startAt, o = n.immediateRender, l = n.lazy, c = n.onUpdate, h = n.runBackwards, u = n.yoyoEase, p = n.keyframes, m = n.autoRevert, f = e._dur, d = e._startAt, g = e._targets, _ = e.parent, y = _ && _.data === "nested" ? _.vars.targets : g, x = e._overwrite === "auto" && !Pi,
|
|
1432
|
-
if (
|
|
1431
|
+
var n = e.vars, r = n.ease, s = n.startAt, o = n.immediateRender, l = n.lazy, c = n.onUpdate, h = n.runBackwards, u = n.yoyoEase, p = n.keyframes, m = n.autoRevert, f = e._dur, d = e._startAt, g = e._targets, _ = e.parent, y = _ && _.data === "nested" ? _.vars.targets : g, x = e._overwrite === "auto" && !Pi, v = e.timeline, b, C, E, P, w, T, M, A, R, O, B, F, U;
|
|
1432
|
+
if (v && (!p || !r) && (r = "none"), e._ease = Ye(r, st.ease), e._yEase = u ? sr(Ye(u === !0 ? r : u, st.ease)) : 0, u && e._yoyo && !e._repeat && (u = e._yEase, e._yEase = e._ease, e._ease = u), e._from = !v && !!n.runBackwards, !v || p && !n.stagger) {
|
|
1433
1433
|
if (A = g[0] ? He(g[0]).harness : 0, F = A && n[A.prop], b = Bt(n, Mi), d && (d._zTime < 0 && d.progress(1), t < 0 && h && o && !m ? d.render(-1, !0) : d.revert(h && f ? kt : ss), d._lazy = 0), s) {
|
|
1434
1434
|
if (Ie(e._startAt = H.set(g, ue({
|
|
1435
1435
|
data: "isStart",
|
|
@@ -1448,7 +1448,7 @@ var Ms = function(e, t, i, n, r, s, o) {
|
|
|
1448
1448
|
return;
|
|
1449
1449
|
}
|
|
1450
1450
|
} else if (h && f && !d) {
|
|
1451
|
-
if (t && (o = !1),
|
|
1451
|
+
if (t && (o = !1), E = ue({
|
|
1452
1452
|
overwrite: !1,
|
|
1453
1453
|
data: "isFromStart",
|
|
1454
1454
|
//we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
|
|
@@ -1458,7 +1458,7 @@ var Ms = function(e, t, i, n, r, s, o) {
|
|
|
1458
1458
|
stagger: 0,
|
|
1459
1459
|
parent: _
|
|
1460
1460
|
//ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
|
|
1461
|
-
}, b), F && (
|
|
1461
|
+
}, b), F && (E[A.prop] = F), Ie(e._startAt = H.set(g, E)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (K ? e._startAt.revert(kt) : e._startAt.render(-1, !0)), e._zTime = t, !o)
|
|
1462
1462
|
a(e._startAt, k, k);
|
|
1463
1463
|
else if (!t)
|
|
1464
1464
|
return;
|
|
@@ -1467,13 +1467,13 @@ var Ms = function(e, t, i, n, r, s, o) {
|
|
|
1467
1467
|
if (w = g[C], M = w._gsap || Oi(g)[C]._gsap, e._ptLookup[C] = O = {}, ci[M.id] && Re.length && $t(), B = y === g ? C : y.indexOf(w), A && (R = new A()).init(w, F || b, e, B, y) !== !1 && (e._pt = P = new ie(e._pt, w, R.name, 0, 1, R.render, R, 0, R.priority), R._props.forEach(function(Q) {
|
|
1468
1468
|
O[Q] = P;
|
|
1469
1469
|
}), R.priority && (T = 1)), !A || F)
|
|
1470
|
-
for (
|
|
1471
|
-
ae[
|
|
1470
|
+
for (E in b)
|
|
1471
|
+
ae[E] && (R = hr(E, b, e, B, w, y)) ? R.priority && (T = 1) : O[E] = P = Li.call(e, w, E, "get", b[E], B, y, 0, n.stringFilter);
|
|
1472
1472
|
e._op && e._op[C] && e.kill(w, e._op[C]), x && e._pt && (Te = e, N.killTweensOf(w, O, e.globalTime(t)), U = !e.parent, Te = 0), e._pt && l && (ci[M.id] = 1);
|
|
1473
1473
|
}
|
|
1474
1474
|
T && mr(e), e._onInit && e._onInit(e);
|
|
1475
1475
|
}
|
|
1476
|
-
e._onUpdate = c, e._initted = (!e._op || e._pt) && !U, p && t <= 0 &&
|
|
1476
|
+
e._onUpdate = c, e._initted = (!e._op || e._pt) && !U, p && t <= 0 && v.render(fe, !0, !0);
|
|
1477
1477
|
}, Os = function(e, t, i, n, r, s, o, l) {
|
|
1478
1478
|
var c = (e._pt && e._ptCache || (e._ptCache = {}))[t], h, u, p, m;
|
|
1479
1479
|
if (!c)
|
|
@@ -1482,7 +1482,7 @@ var Ms = function(e, t, i, n, r, s, o) {
|
|
|
1482
1482
|
for (h = h.d._pt; h && h.p !== t && h.fp !== t; )
|
|
1483
1483
|
h = h._next;
|
|
1484
1484
|
if (!h)
|
|
1485
|
-
return gi = 1, e.vars[t] = "+=0", ki(e, o), gi = 0, l ?
|
|
1485
|
+
return gi = 1, e.vars[t] = "+=0", ki(e, o), gi = 0, l ? vt(t + " not eligible for reset") : 1;
|
|
1486
1486
|
c.push(h);
|
|
1487
1487
|
}
|
|
1488
1488
|
for (m = c.length; m--; )
|
|
@@ -1525,28 +1525,28 @@ var H = /* @__PURE__ */ (function(a) {
|
|
|
1525
1525
|
function e(i, n, r, s) {
|
|
1526
1526
|
var o;
|
|
1527
1527
|
typeof n == "number" && (r.duration = n, n = r, r = null), o = a.call(this, s ? n : yt(n)) || this;
|
|
1528
|
-
var l = o.vars, c = l.duration, h = l.delay, u = l.immediateRender, p = l.stagger, m = l.overwrite, f = l.keyframes, d = l.defaults, g = l.scrollTrigger, _ = l.yoyoEase, y = n.parent || N, x = (W(i) || Rn(i) ? Pe(i[0]) : "length" in n) ? [i] : me(i),
|
|
1529
|
-
if (o._targets = x.length ? Oi(x) :
|
|
1530
|
-
if (n = o.vars,
|
|
1528
|
+
var l = o.vars, c = l.duration, h = l.delay, u = l.immediateRender, p = l.stagger, m = l.overwrite, f = l.keyframes, d = l.defaults, g = l.scrollTrigger, _ = l.yoyoEase, y = n.parent || N, x = (W(i) || Rn(i) ? Pe(i[0]) : "length" in n) ? [i] : me(i), v, b, C, E, P, w, T, M;
|
|
1529
|
+
if (o._targets = x.length ? Oi(x) : vt("GSAP target " + i + " not found. https://gsap.com", !he.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = m, f || p || Rt(c) || Rt(h)) {
|
|
1530
|
+
if (n = o.vars, v = o.timeline = new q({
|
|
1531
1531
|
data: "nested",
|
|
1532
1532
|
defaults: d || {},
|
|
1533
1533
|
targets: y && y.data === "nested" ? y.vars.targets : x
|
|
1534
|
-
}),
|
|
1535
|
-
if (
|
|
1534
|
+
}), v.kill(), v.parent = v._dp = we(o), v._start = 0, p || Rt(c) || Rt(h)) {
|
|
1535
|
+
if (E = x.length, T = p && Xn(p), ve(p))
|
|
1536
1536
|
for (P in p)
|
|
1537
1537
|
~cr.indexOf(P) && (M || (M = {}), M[P] = p[P]);
|
|
1538
|
-
for (b = 0; b <
|
|
1539
|
-
C = Bt(n, ur), C.stagger = 0, _ && (C.yoyoEase = _), M && at(C, M), w = x[b], C.duration = +bt(c, we(o), b, w, x), C.delay = (+bt(h, we(o), b, w, x) || 0) - o._delay, !p &&
|
|
1540
|
-
|
|
1538
|
+
for (b = 0; b < E; b++)
|
|
1539
|
+
C = Bt(n, ur), C.stagger = 0, _ && (C.yoyoEase = _), M && at(C, M), w = x[b], C.duration = +bt(c, we(o), b, w, x), C.delay = (+bt(h, we(o), b, w, x) || 0) - o._delay, !p && E === 1 && C.delay && (o._delay = h = C.delay, o._start += h, C.delay = 0), v.to(w, C, T ? T(b, w, x) : 0), v._ease = D.none;
|
|
1540
|
+
v.duration() ? c = h = 0 : o.timeline = 0;
|
|
1541
1541
|
} else if (f) {
|
|
1542
|
-
yt(ue(
|
|
1542
|
+
yt(ue(v.vars.defaults, {
|
|
1543
1543
|
ease: "none"
|
|
1544
|
-
})),
|
|
1544
|
+
})), v._ease = Ye(f.ease || n.ease || "none");
|
|
1545
1545
|
var A = 0, R, O, B;
|
|
1546
1546
|
if (W(f))
|
|
1547
1547
|
f.forEach(function(F) {
|
|
1548
|
-
return
|
|
1549
|
-
}),
|
|
1548
|
+
return v.to(x, F, ">");
|
|
1549
|
+
}), v.duration();
|
|
1550
1550
|
else {
|
|
1551
1551
|
C = {};
|
|
1552
1552
|
for (P in f)
|
|
@@ -1558,27 +1558,27 @@ var H = /* @__PURE__ */ (function(a) {
|
|
|
1558
1558
|
O = R[b], B = {
|
|
1559
1559
|
ease: O.e,
|
|
1560
1560
|
duration: (O.t - (b ? R[b - 1].t : 0)) / 100 * c
|
|
1561
|
-
}, B[P] = O.v,
|
|
1562
|
-
|
|
1563
|
-
duration: c -
|
|
1561
|
+
}, B[P] = O.v, v.to(x, B, A), A += B.duration;
|
|
1562
|
+
v.duration() < c && v.to({}, {
|
|
1563
|
+
duration: c - v.duration()
|
|
1564
1564
|
});
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
c || o.duration(c =
|
|
1567
|
+
c || o.duration(c = v.duration());
|
|
1568
1568
|
} else
|
|
1569
1569
|
o.timeline = 0;
|
|
1570
1570
|
return m === !0 && !Pi && (Te = we(o), N.killTweensOf(x), Te = 0), ye(y, we(o), r), n.reversed && o.reverse(), n.paused && o.paused(!0), (u || !c && !f && o._start === j(y._time) && ee(u) && us(we(o)) && y.data !== "nested") && (o._tTime = -k, o.render(Math.max(0, -h) || 0)), g && jn(we(o), g), o;
|
|
1571
1571
|
}
|
|
1572
1572
|
var t = e.prototype;
|
|
1573
1573
|
return t.render = function(n, r, s) {
|
|
1574
|
-
var o = this._time, l = this._tDur, c = this._dur, h = n < 0, u = n > l - k && !h ? l : n < k ? 0 : n, p, m, f, d, g, _, y, x,
|
|
1574
|
+
var o = this._time, l = this._tDur, c = this._dur, h = n < 0, u = n > l - k && !h ? l : n < k ? 0 : n, p, m, f, d, g, _, y, x, v;
|
|
1575
1575
|
if (!c)
|
|
1576
1576
|
ps(this, n, r, s);
|
|
1577
1577
|
else if (u !== this._tTime || !n || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== h || this._lazy) {
|
|
1578
1578
|
if (p = u, x = this.timeline, this._repeat) {
|
|
1579
1579
|
if (d = c + this._rDelay, this._repeat < -1 && h)
|
|
1580
1580
|
return this.totalTime(d * 100 + n, r, s);
|
|
1581
|
-
if (p = j(u % d), u === l ? (f = this._repeat, p = c) : (g = j(u / d), f = ~~g, f && f === g ? (p = c, f--) : p > c && (p = c)), _ = this._yoyo && f & 1, _ && (
|
|
1581
|
+
if (p = j(u % d), u === l ? (f = this._repeat, p = c) : (g = j(u / d), f = ~~g, f && f === g ? (p = c, f--) : p > c && (p = c)), _ = this._yoyo && f & 1, _ && (v = this._yEase, p = c - p), g = ot(this._tTime, d), p === o && !s && this._initted && f === g)
|
|
1582
1582
|
return this._tTime = u, this;
|
|
1583
1583
|
f !== g && (x && this._yEase && ar(x, _), this.vars.repeatRefresh && !_ && !this._lock && p !== d && this._initted && (this._lock = s = 1, this.render(j(d * f), !0).invalidate()._lock = 0));
|
|
1584
1584
|
}
|
|
@@ -1590,7 +1590,7 @@ var H = /* @__PURE__ */ (function(a) {
|
|
|
1590
1590
|
if (c !== this._dur)
|
|
1591
1591
|
return this.render(n, r, s);
|
|
1592
1592
|
}
|
|
1593
|
-
if (this._tTime = u, this._time = p, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = y = (
|
|
1593
|
+
if (this._tTime = u, this._time = p, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = y = (v || this._ease)(p / c), this._from && (this.ratio = y = 1 - y), !o && u && !r && !g && (le(this, "onStart"), this._tTime !== u))
|
|
1594
1594
|
return this;
|
|
1595
1595
|
for (m = this._pt; m; )
|
|
1596
1596
|
m.r(y, m.d), m = m._next;
|
|
@@ -1803,7 +1803,7 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
|
|
|
1803
1803
|
}
|
|
1804
1804
|
var e = a.prototype;
|
|
1805
1805
|
return e.add = function(i, n, r) {
|
|
1806
|
-
|
|
1806
|
+
ve(i) || (i = {
|
|
1807
1807
|
matches: i
|
|
1808
1808
|
});
|
|
1809
1809
|
var s = new gr(0, r || this.scope), o = s.conditions = {}, l, c, h;
|
|
@@ -1878,11 +1878,11 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
|
|
|
1878
1878
|
registerEffect: function(e) {
|
|
1879
1879
|
var t = e.name, i = e.effect, n = e.plugins, r = e.defaults, s = e.extendTimeline;
|
|
1880
1880
|
(n || "").split(",").forEach(function(o) {
|
|
1881
|
-
return o && !ae[o] && !ce[o] &&
|
|
1881
|
+
return o && !ae[o] && !ce[o] && vt(t + " effect requires " + o + " plugin.");
|
|
1882
1882
|
}), qt[t] = function(o, l, c) {
|
|
1883
1883
|
return i(me(o), ue(l || {}, r), c);
|
|
1884
1884
|
}, s && (q.prototype[t] = function(o, l, c) {
|
|
1885
|
-
return this.add(qt[t](o,
|
|
1885
|
+
return this.add(qt[t](o, ve(l) ? l : (c = l) && {}, this), c);
|
|
1886
1886
|
});
|
|
1887
1887
|
},
|
|
1888
1888
|
registerEase: function(e, t) {
|
|
@@ -1924,8 +1924,8 @@ var Ze = [], Ft = {}, Bs = [], nn = 0, Gs = 0, ti = function(e) {
|
|
|
1924
1924
|
n >= 0 && i.splice(n, 1);
|
|
1925
1925
|
},
|
|
1926
1926
|
utils: {
|
|
1927
|
-
wrap:
|
|
1928
|
-
wrapYoyo:
|
|
1927
|
+
wrap: vs,
|
|
1928
|
+
wrapYoyo: Es,
|
|
1929
1929
|
distribute: Xn,
|
|
1930
1930
|
random: qn,
|
|
1931
1931
|
snap: Wn,
|
|
@@ -2114,7 +2114,7 @@ var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
|
|
|
2114
2114
|
return e._gsap || re.core.getCache(e), t && e.style && e.nodeType && t.split(",").forEach(function(n) {
|
|
2115
2115
|
return i.save(n);
|
|
2116
2116
|
}), i;
|
|
2117
|
-
},
|
|
2117
|
+
}, vr, xi = function(e, t) {
|
|
2118
2118
|
var i = Se.createElementNS ? Se.createElementNS((t || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), e) : Se.createElement(e);
|
|
2119
2119
|
return i && i.style ? i : Se.createElement(e);
|
|
2120
2120
|
}, ge = function a(e, t, i) {
|
|
@@ -2130,7 +2130,7 @@ var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
|
|
|
2130
2130
|
}, bi = function() {
|
|
2131
2131
|
Ys() && window.document && (rn = window, Se = rn.document, nt = Se.documentElement, Ge = xi("div") || {
|
|
2132
2132
|
style: {}
|
|
2133
|
-
}, xi("div"), $ = ct($), ne = $ + "Origin", Ge.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0",
|
|
2133
|
+
}, xi("div"), $ = ct($), ne = $ + "Origin", Ge.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", vr = !!ct("perspective"), $i = re.core.reverting, Ni = 1);
|
|
2134
2134
|
}, ln = function(e) {
|
|
2135
2135
|
var t = e.ownerSVGElement, i = xi("svg", t && t.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), n = e.cloneNode(!0), r;
|
|
2136
2136
|
n.style.display = "block", i.appendChild(n), nt.appendChild(i);
|
|
@@ -2143,7 +2143,7 @@ var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
|
|
|
2143
2143
|
for (var i = t.length; i--; )
|
|
2144
2144
|
if (e.hasAttribute(t[i]))
|
|
2145
2145
|
return e.getAttribute(t[i]);
|
|
2146
|
-
},
|
|
2146
|
+
}, Er = function(e) {
|
|
2147
2147
|
var t, i;
|
|
2148
2148
|
try {
|
|
2149
2149
|
t = e.getBBox();
|
|
@@ -2157,7 +2157,7 @@ var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
|
|
|
2157
2157
|
height: 0
|
|
2158
2158
|
} : t;
|
|
2159
2159
|
}, wr = function(e) {
|
|
2160
|
-
return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) &&
|
|
2160
|
+
return !!(e.getCTM && (!e.parentNode || e.ownerSVGElement) && Er(e));
|
|
2161
2161
|
}, Ke = function(e, t) {
|
|
2162
2162
|
if (t) {
|
|
2163
2163
|
var i = e.style, n;
|
|
@@ -2195,10 +2195,10 @@ var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
|
|
|
2195
2195
|
var r = ct(t, e, 1), s = r && ge(e, r, 1);
|
|
2196
2196
|
s && s !== i ? (t = r, i = s) : t === "borderColor" && (i = ge(e, "borderTopColor"));
|
|
2197
2197
|
}
|
|
2198
|
-
var o = new ie(this._pt, e.style, t, 0, 1, fr), l = 0, c = 0, h, u, p, m, f, d, g, _, y, x,
|
|
2198
|
+
var o = new ie(this._pt, e.style, t, 0, 1, fr), l = 0, c = 0, h, u, p, m, f, d, g, _, y, x, v, b;
|
|
2199
2199
|
if (o.b = i, o.e = n, i += "", n += "", n.substring(0, 6) === "var(--" && (n = ge(e, n.substring(4, n.indexOf(")")))), n === "auto" && (d = e.style[t], e.style[t] = n, n = ge(e, t) || n, d ? e.style[t] = d : Ke(e, t)), h = [i, n], rr(h), i = h[0], n = h[1], p = i.match(Je) || [], b = n.match(Je) || [], b.length) {
|
|
2200
2200
|
for (; u = Je.exec(n); )
|
|
2201
|
-
g = u[0], y = n.substring(l, u.index), f ? f = (f + 1) % 5 : (y.substr(-5) === "rgba(" || y.substr(-5) === "hsla(") && (f = 1), g !== (d = p[c++] || "") && (m = parseFloat(d) || 0,
|
|
2201
|
+
g = u[0], y = n.substring(l, u.index), f ? f = (f + 1) % 5 : (y.substr(-5) === "rgba(" || y.substr(-5) === "hsla(") && (f = 1), g !== (d = p[c++] || "") && (m = parseFloat(d) || 0, v = d.substr((m + "").length), g.charAt(1) === "=" && (g = it(m, g) + v), _ = parseFloat(g), x = g.substr((_ + "").length), l = Je.lastIndex - x.length, x || (x = x || he.units[t] || v, l === n.length && (n += x, o.e += x)), v !== x && (m = Le(e, t, d, x) || 0), o._pt = {
|
|
2202
2202
|
_next: o._pt,
|
|
2203
2203
|
p: y || c === 1 ? y : ",",
|
|
2204
2204
|
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
@@ -2307,15 +2307,15 @@ var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
|
|
|
2307
2307
|
}, Gi = function(e, t) {
|
|
2308
2308
|
var i = e._gsap || He(e), n = e.style, r = dn(e), s, o, l, c;
|
|
2309
2309
|
return i.svg && e.getAttribute("transform") ? (l = e.transform.baseVal.consolidate().matrix, r = [l.a, l.b, l.c, l.d, l.e, l.f], r.join(",") === "1,0,0,1,0,0" ? At : r) : (r === At && !e.offsetParent && e !== nt && !i.svg && (l = n.display, n.display = "block", s = e.parentNode, (!s || !e.offsetParent && !e.getBoundingClientRect().width) && (c = 1, o = e.nextElementSibling, nt.appendChild(e)), r = dn(e), l ? n.display = l : Ke(e, "display"), c && (o ? s.insertBefore(e, o) : s ? s.appendChild(e) : nt.removeChild(e))), t && r.length > 6 ? [r[0], r[1], r[4], r[5], r[12], r[13]] : r);
|
|
2310
|
-
},
|
|
2311
|
-
var o = e._gsap, l = r || Gi(e, !0), c = o.xOrigin || 0, h = o.yOrigin || 0, u = o.xOffset || 0, p = o.yOffset || 0, m = l[0], f = l[1], d = l[2], g = l[3], _ = l[4], y = l[5], x = t.split(" "),
|
|
2312
|
-
i ? l !== At && (
|
|
2310
|
+
}, vi = function(e, t, i, n, r, s) {
|
|
2311
|
+
var o = e._gsap, l = r || Gi(e, !0), c = o.xOrigin || 0, h = o.yOrigin || 0, u = o.xOffset || 0, p = o.yOffset || 0, m = l[0], f = l[1], d = l[2], g = l[3], _ = l[4], y = l[5], x = t.split(" "), v = parseFloat(x[0]) || 0, b = parseFloat(x[1]) || 0, C, E, P, w;
|
|
2312
|
+
i ? l !== At && (E = m * g - f * d) && (P = v * (g / E) + b * (-d / E) + (d * y - g * _) / E, w = v * (-f / E) + b * (m / E) - (m * y - f * _) / E, v = P, b = w) : (C = Er(e), v = C.x + (~x[0].indexOf("%") ? v / 100 * C.width : v), b = C.y + (~(x[1] || x[0]).indexOf("%") ? b / 100 * C.height : b)), n || n !== !1 && o.smooth ? (_ = v - c, y = b - h, o.xOffset = u + (_ * m + y * d) - _, o.yOffset = p + (_ * f + y * g) - y) : o.xOffset = o.yOffset = 0, o.xOrigin = v, o.yOrigin = b, o.smooth = !!n, o.origin = t, o.originIsAbsolute = !!i, e.style[ne] = "0px 0px", s && (De(s, o, "xOrigin", c, v), De(s, o, "yOrigin", h, b), De(s, o, "xOffset", u, o.xOffset), De(s, o, "yOffset", p, o.yOffset)), e.setAttribute("data-svg-origin", v + " " + b);
|
|
2313
2313
|
}, Tt = function(e, t) {
|
|
2314
2314
|
var i = e._gsap || new lr(e);
|
|
2315
2315
|
if ("x" in i && !t && !i.uncache)
|
|
2316
2316
|
return i;
|
|
2317
|
-
var n = e.style, r = i.scaleX < 0, s = "px", o = "deg", l = getComputedStyle(e), c = ge(e, ne) || "0", h, u, p, m, f, d, g, _, y, x,
|
|
2318
|
-
return h = u = p = d = g = _ = y = x =
|
|
2317
|
+
var n = e.style, r = i.scaleX < 0, s = "px", o = "deg", l = getComputedStyle(e), c = ge(e, ne) || "0", h, u, p, m, f, d, g, _, y, x, v, b, C, E, P, w, T, M, A, R, O, B, F, U, Q, ut, dt, pt, Ue, ji, Ee, Fe;
|
|
2318
|
+
return h = u = p = d = g = _ = y = x = v = 0, m = f = 1, i.svg = !!(e.getCTM && wr(e)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (n[$] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[$] !== "none" ? l[$] : "")), n.scale = n.rotate = n.translate = "none"), E = Gi(e, i.svg), i.svg && (i.uncache ? (Q = e.getBBox(), c = i.xOrigin - Q.x + "px " + (i.yOrigin - Q.y) + "px", U = "") : U = !t && e.getAttribute("data-svg-origin"), vi(e, U || c, !!U || i.originIsAbsolute, i.smooth !== !1, E)), b = i.xOrigin || 0, C = i.yOrigin || 0, E !== At && (M = E[0], A = E[1], R = E[2], O = E[3], h = B = E[4], u = F = E[5], E.length === 6 ? (m = Math.sqrt(M * M + A * A), f = Math.sqrt(O * O + R * R), d = M || A ? We(A, M) * $e : 0, y = R || O ? We(R, O) * $e + d : 0, y && (f *= Math.abs(Math.cos(y * rt))), i.svg && (h -= b - (b * M + C * R), u -= C - (b * A + C * O))) : (Fe = E[6], ji = E[7], dt = E[8], pt = E[9], Ue = E[10], Ee = E[11], h = E[12], u = E[13], p = E[14], P = We(Fe, Ue), g = P * $e, P && (w = Math.cos(-P), T = Math.sin(-P), U = B * w + dt * T, Q = F * w + pt * T, ut = Fe * w + Ue * T, dt = B * -T + dt * w, pt = F * -T + pt * w, Ue = Fe * -T + Ue * w, Ee = ji * -T + Ee * w, B = U, F = Q, Fe = ut), P = We(-R, Ue), _ = P * $e, P && (w = Math.cos(-P), T = Math.sin(-P), U = M * w - dt * T, Q = A * w - pt * T, ut = R * w - Ue * T, Ee = O * T + Ee * w, M = U, A = Q, R = ut), P = We(A, M), d = P * $e, P && (w = Math.cos(P), T = Math.sin(P), U = M * w + A * T, Q = B * w + F * T, A = A * w - M * T, F = F * w - B * T, M = U, B = Q), g && Math.abs(g) + Math.abs(d) > 359.9 && (g = d = 0, _ = 180 - _), m = V(Math.sqrt(M * M + A * A + R * R)), f = V(Math.sqrt(F * F + Fe * Fe)), P = We(B, F), y = Math.abs(P) > 2e-4 ? P * $e : 0, v = Ee ? 1 / (Ee < 0 ? -Ee : Ee) : 0), i.svg && (U = e.getAttribute("transform"), i.forceCSS = e.setAttribute("transform", "") || !Pr(ge(e, $)), U && e.setAttribute("transform", U))), Math.abs(y) > 90 && Math.abs(y) < 270 && (r ? (m *= -1, y += d <= 0 ? 180 : -180, d += d <= 0 ? 180 : -180) : (f *= -1, y += y <= 0 ? 180 : -180)), t = t || i.uncache, i.x = h - ((i.xPercent = h && (!t && i.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-h) ? -50 : 0))) ? e.offsetWidth * i.xPercent / 100 : 0) + s, i.y = u - ((i.yPercent = u && (!t && i.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetHeight * i.yPercent / 100 : 0) + s, i.z = p + s, i.scaleX = V(m), i.scaleY = V(f), i.rotation = V(d) + o, i.rotationX = V(g) + o, i.rotationY = V(_) + o, i.skewX = y + o, i.skewY = x + o, i.transformPerspective = v + s, (i.zOrigin = parseFloat(c.split(" ")[2]) || !t && i.zOrigin || 0) && (n[ne] = jt(c)), i.xOffset = i.yOffset = 0, i.force3D = he.force3D, i.renderTransform = i.svg ? ua : vr ? Ar : ca, i.uncache = 0, i;
|
|
2319
2319
|
}, jt = function(e) {
|
|
2320
2320
|
return (e = e.split(" "))[0] + " " + e[1];
|
|
2321
2321
|
}, ni = function(e, t, i) {
|
|
@@ -2324,15 +2324,15 @@ var rn, Se, nt, Ni, Ge, sn, $i, Ys = function() {
|
|
|
2324
2324
|
}, ca = function(e, t) {
|
|
2325
2325
|
t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, Ar(e, t);
|
|
2326
2326
|
}, ze = "0deg", ft = "0px", Ne = ") ", Ar = function(e, t) {
|
|
2327
|
-
var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.z, c = i.rotation, h = i.rotationY, u = i.rotationX, p = i.skewX, m = i.skewY, f = i.scaleX, d = i.scaleY, g = i.transformPerspective, _ = i.force3D, y = i.target, x = i.zOrigin,
|
|
2327
|
+
var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.z, c = i.rotation, h = i.rotationY, u = i.rotationX, p = i.skewX, m = i.skewY, f = i.scaleX, d = i.scaleY, g = i.transformPerspective, _ = i.force3D, y = i.target, x = i.zOrigin, v = "", b = _ === "auto" && e && e !== 1 || _ === !0;
|
|
2328
2328
|
if (x && (u !== ze || h !== ze)) {
|
|
2329
|
-
var C = parseFloat(h) * rt,
|
|
2330
|
-
C = parseFloat(u) * rt, w = Math.cos(C), s = ni(y, s,
|
|
2329
|
+
var C = parseFloat(h) * rt, E = Math.sin(C), P = Math.cos(C), w;
|
|
2330
|
+
C = parseFloat(u) * rt, w = Math.cos(C), s = ni(y, s, E * w * -x), o = ni(y, o, -Math.sin(C) * -x), l = ni(y, l, P * w * -x + x);
|
|
2331
2331
|
}
|
|
2332
|
-
g !== ft && (
|
|
2332
|
+
g !== ft && (v += "perspective(" + g + Ne), (n || r) && (v += "translate(" + n + "%, " + r + "%) "), (b || s !== ft || o !== ft || l !== ft) && (v += l !== ft || b ? "translate3d(" + s + ", " + o + ", " + l + ") " : "translate(" + s + ", " + o + Ne), c !== ze && (v += "rotate(" + c + Ne), h !== ze && (v += "rotateY(" + h + Ne), u !== ze && (v += "rotateX(" + u + Ne), (p !== ze || m !== ze) && (v += "skew(" + p + ", " + m + Ne), (f !== 1 || d !== 1) && (v += "scale(" + f + ", " + d + Ne), y.style[$] = v || "translate(0, 0)";
|
|
2333
2333
|
}, ua = function(e, t) {
|
|
2334
|
-
var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.rotation, c = i.skewX, h = i.skewY, u = i.scaleX, p = i.scaleY, m = i.target, f = i.xOrigin, d = i.yOrigin, g = i.xOffset, _ = i.yOffset, y = i.forceCSS, x = parseFloat(s),
|
|
2335
|
-
l = parseFloat(l), c = parseFloat(c), h = parseFloat(h), h && (h = parseFloat(h), c += h, l += h), l || c ? (l *= rt, c *= rt, b = Math.cos(l) * u, C = Math.sin(l) * u,
|
|
2334
|
+
var i = t || this, n = i.xPercent, r = i.yPercent, s = i.x, o = i.y, l = i.rotation, c = i.skewX, h = i.skewY, u = i.scaleX, p = i.scaleY, m = i.target, f = i.xOrigin, d = i.yOrigin, g = i.xOffset, _ = i.yOffset, y = i.forceCSS, x = parseFloat(s), v = parseFloat(o), b, C, E, P, w;
|
|
2335
|
+
l = parseFloat(l), c = parseFloat(c), h = parseFloat(h), h && (h = parseFloat(h), c += h, l += h), l || c ? (l *= rt, c *= rt, b = Math.cos(l) * u, C = Math.sin(l) * u, E = Math.sin(l - c) * -p, P = Math.cos(l - c) * p, c && (h *= rt, w = Math.tan(c - h), w = Math.sqrt(1 + w * w), E *= w, P *= w, h && (w = Math.tan(h), w = Math.sqrt(1 + w * w), b *= w, C *= w)), b = V(b), C = V(C), E = V(E), P = V(P)) : (b = u, P = p, C = E = 0), (x && !~(s + "").indexOf("px") || v && !~(o + "").indexOf("px")) && (x = Le(m, "x", s, "px"), v = Le(m, "y", o, "px")), (f || d || g || _) && (x = V(x + f - (f * b + d * E) + g), v = V(v + d - (f * C + d * P) + _)), (n || r) && (w = m.getBBox(), x = V(x + n / 100 * w.width), v = V(v + r / 100 * w.height)), w = "matrix(" + b + "," + C + "," + E + "," + P + "," + x + "," + v + ")", m.setAttribute("transform", w), y && (m.style[$] = w);
|
|
2336
2336
|
}, da = function(e, t, i, n, r) {
|
|
2337
2337
|
var s = 360, o = Z(r), l = parseFloat(r) * (o && ~r.indexOf("rad") ? $e : 1), c = l - n, h = n + c + "deg", u, p;
|
|
2338
2338
|
return o && (u = r.split("_")[1], u === "short" && (c %= s, c !== c % (s / 2) && (c += c < 0 ? s : -s)), u === "cw" && c < 0 ? c = (c + s * an) % s - ~~(c / s) * s : u === "ccw" && c > 0 && (c = (c - s * an) % s - ~~(c / s) * s)), e._pt = p = new ie(e._pt, t, i, n, c, Xs), p.e = h, p.u = "deg", e._props.push(i), p;
|
|
@@ -2369,23 +2369,23 @@ var Tr = {
|
|
|
2369
2369
|
return e.style && e.nodeType;
|
|
2370
2370
|
},
|
|
2371
2371
|
init: function(e, t, i, n, r) {
|
|
2372
|
-
var s = this._props, o = e.style, l = i.vars.startAt, c, h, u, p, m, f, d, g, _, y, x,
|
|
2372
|
+
var s = this._props, o = e.style, l = i.vars.startAt, c, h, u, p, m, f, d, g, _, y, x, v, b, C, E, P;
|
|
2373
2373
|
Ni || bi(), this.styles = this.styles || br(e), P = this.styles.props, this.tween = i;
|
|
2374
2374
|
for (d in t)
|
|
2375
2375
|
if (d !== "autoRound" && (h = t[d], !(ae[d] && hr(d, t, i, n, e, r)))) {
|
|
2376
2376
|
if (m = typeof h, f = Ht[d], m === "function" && (h = h.call(i, n, e, r), m = typeof h), m === "string" && ~h.indexOf("random(") && (h = wt(h)), f)
|
|
2377
|
-
f(this, e, d, h, i) && (
|
|
2377
|
+
f(this, e, d, h, i) && (E = 1);
|
|
2378
2378
|
else if (d.substr(0, 2) === "--")
|
|
2379
2379
|
c = (getComputedStyle(e).getPropertyValue(d) + "").trim(), h += "", Oe.lastIndex = 0, Oe.test(c) || (g = X(c), _ = X(h)), _ ? g !== _ && (c = Le(e, d, c, _) + _) : g && (h += g), this.add(o, "setProperty", c, h, n, r, 0, 0, d), s.push(d), P.push(d, 0, o[d]);
|
|
2380
2380
|
else if (m !== "undefined") {
|
|
2381
2381
|
if (l && d in l ? (c = typeof l[d] == "function" ? l[d].call(i, n, e, r) : l[d], Z(c) && ~c.indexOf("random(") && (c = wt(c)), X(c + "") || c === "auto" || (c += he.units[d] || X(Ce(e, d)) || ""), (c + "").charAt(1) === "=" && (c = Ce(e, d))) : c = Ce(e, d), p = parseFloat(c), y = m === "string" && h.charAt(1) === "=" && h.substr(0, 2), y && (h = h.substr(2)), u = parseFloat(h), d in xe && (d === "autoAlpha" && (p === 1 && Ce(e, "visibility") === "hidden" && u && (p = 0), P.push("visibility", 0, o.visibility), De(this, o, "visibility", p ? "inherit" : "hidden", u ? "inherit" : "hidden", !u)), d !== "scale" && d !== "transform" && (d = xe[d], ~d.indexOf(",") && (d = d.split(",")[0]))), x = d in Ae, x) {
|
|
2382
|
-
if (this.styles.save(d), m === "string" && h.substring(0, 6) === "var(--" && (h = ge(e, h.substring(4, h.indexOf(")"))), u = parseFloat(h)),
|
|
2382
|
+
if (this.styles.save(d), m === "string" && h.substring(0, 6) === "var(--" && (h = ge(e, h.substring(4, h.indexOf(")"))), u = parseFloat(h)), v || (b = e._gsap, b.renderTransform && !t.parseTransform || Tt(e, t.parseTransform), C = t.smoothOrigin !== !1 && b.smooth, v = this._pt = new ie(this._pt, o, $, 0, 1, b.renderTransform, b, 0, -1), v.dep = 1), d === "scale")
|
|
2383
2383
|
this._pt = new ie(this._pt, b, "scaleY", b.scaleY, (y ? it(b.scaleY, y + u) : u) - b.scaleY || 0, yi), this._pt.u = 0, s.push("scaleY", d), d += "X";
|
|
2384
2384
|
else if (d === "transformOrigin") {
|
|
2385
|
-
P.push(ne, 0, o[ne]), h = la(h), b.svg ?
|
|
2385
|
+
P.push(ne, 0, o[ne]), h = la(h), b.svg ? vi(e, h, 0, C, 0, this) : (_ = parseFloat(h.split(" ")[2]) || 0, _ !== b.zOrigin && De(this, b, "zOrigin", b.zOrigin, _), De(this, o, d, jt(c), jt(h)));
|
|
2386
2386
|
continue;
|
|
2387
2387
|
} else if (d === "svgOrigin") {
|
|
2388
|
-
|
|
2388
|
+
vi(e, h, 1, C, 0, this);
|
|
2389
2389
|
continue;
|
|
2390
2390
|
} else if (d in Cr) {
|
|
2391
2391
|
da(this, b, d, p, y ? it(p, y + h) : h);
|
|
@@ -2414,7 +2414,7 @@ var Tr = {
|
|
|
2414
2414
|
x || (d in o ? P.push(d, 0, o[d]) : typeof e[d] == "function" ? P.push(d, 2, e[d]()) : P.push(d, 1, c || e[d])), s.push(d);
|
|
2415
2415
|
}
|
|
2416
2416
|
}
|
|
2417
|
-
|
|
2417
|
+
E && mr(this);
|
|
2418
2418
|
},
|
|
2419
2419
|
render: function(e, t) {
|
|
2420
2420
|
if (t.tween._time || !$i())
|
|
@@ -2689,15 +2689,15 @@ class fa extends be {
|
|
|
2689
2689
|
return this.$input.checked = this.getValue(), this;
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
2692
|
-
function
|
|
2692
|
+
function Ei(a) {
|
|
2693
2693
|
let e, t;
|
|
2694
2694
|
return (e = a.match(/(#|0x)?([a-f0-9]{6})/i)) ? t = e[2] : (e = a.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/)) ? t = parseInt(e[1]).toString(16).padStart(2, 0) + parseInt(e[2]).toString(16).padStart(2, 0) + parseInt(e[3]).toString(16).padStart(2, 0) : (e = a.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i)) && (t = e[1] + e[1] + e[2] + e[2] + e[3] + e[3]), t ? "#" + t : !1;
|
|
2695
2695
|
}
|
|
2696
2696
|
const ma = {
|
|
2697
2697
|
isPrimitive: !0,
|
|
2698
2698
|
match: (a) => typeof a == "string",
|
|
2699
|
-
fromHexString:
|
|
2700
|
-
toHexString:
|
|
2699
|
+
fromHexString: Ei,
|
|
2700
|
+
toHexString: Ei
|
|
2701
2701
|
}, St = {
|
|
2702
2702
|
isPrimitive: !0,
|
|
2703
2703
|
match: (a) => typeof a == "number",
|
|
@@ -2738,7 +2738,7 @@ class ba extends be {
|
|
|
2738
2738
|
}), this.$input.addEventListener("blur", () => {
|
|
2739
2739
|
this._callOnFinishChange();
|
|
2740
2740
|
}), this.$text.addEventListener("input", () => {
|
|
2741
|
-
const r =
|
|
2741
|
+
const r = Ei(this.$text.value);
|
|
2742
2742
|
r && this._setValueFromHexString(r);
|
|
2743
2743
|
}), this.$text.addEventListener("focus", () => {
|
|
2744
2744
|
this._textFocused = !0, this.$text.select();
|
|
@@ -2774,7 +2774,7 @@ class ri extends be {
|
|
|
2774
2774
|
}, { passive: !0 }), this.$disable = this.$button;
|
|
2775
2775
|
}
|
|
2776
2776
|
}
|
|
2777
|
-
class
|
|
2777
|
+
class va extends be {
|
|
2778
2778
|
constructor(e, t, i, n, r, s) {
|
|
2779
2779
|
super(e, t, i, "lil-number"), this._initInput(), this.min(n), this.max(r);
|
|
2780
2780
|
const o = s !== void 0;
|
|
@@ -2818,8 +2818,8 @@ class Ea extends be {
|
|
|
2818
2818
|
o = y.clientX, l = c = y.clientY, s = !0, h = this.getValue(), u = 0, window.addEventListener("mousemove", f), window.addEventListener("mouseup", d);
|
|
2819
2819
|
}, f = (y) => {
|
|
2820
2820
|
if (s) {
|
|
2821
|
-
const x = y.clientX - o,
|
|
2822
|
-
Math.abs(
|
|
2821
|
+
const x = y.clientX - o, v = y.clientY - l;
|
|
2822
|
+
Math.abs(v) > p ? (y.preventDefault(), this.$input.blur(), s = !1, this._setDraggingStyle(!0, "vertical")) : Math.abs(x) > p && d();
|
|
2823
2823
|
}
|
|
2824
2824
|
if (!s) {
|
|
2825
2825
|
const x = y.clientY - c;
|
|
@@ -2837,7 +2837,7 @@ class Ea extends be {
|
|
|
2837
2837
|
}
|
|
2838
2838
|
_initSlider() {
|
|
2839
2839
|
this._hasSlider = !0, this.$slider = document.createElement("div"), this.$slider.classList.add("lil-slider"), this.$fill = document.createElement("div"), this.$fill.classList.add("lil-fill"), this.$slider.appendChild(this.$fill), this.$widget.insertBefore(this.$slider, this.$input), this.domElement.classList.add("lil-has-slider");
|
|
2840
|
-
const e = (_, y, x,
|
|
2840
|
+
const e = (_, y, x, v, b) => (_ - y) / (x - y) * (b - v) + v, t = (_) => {
|
|
2841
2841
|
const y = this.$slider.getBoundingClientRect();
|
|
2842
2842
|
let x = e(_, y.left, y.right, this._min, this._max);
|
|
2843
2843
|
this._snapClampSetValue(x);
|
|
@@ -2909,7 +2909,7 @@ class Ea extends be {
|
|
|
2909
2909
|
return this._max !== void 0;
|
|
2910
2910
|
}
|
|
2911
2911
|
}
|
|
2912
|
-
class
|
|
2912
|
+
class Ea extends be {
|
|
2913
2913
|
constructor(e, t, i, n) {
|
|
2914
2914
|
super(e, t, i, "lil-option"), this.$select = document.createElement("select"), this.$select.setAttribute("aria-labelledby", this.$name.id), this.$display = document.createElement("div"), this.$display.classList.add("lil-display"), this.$select.addEventListener("change", () => {
|
|
2915
2915
|
this.setValue(this._values[this.$select.selectedIndex]), this._callOnFinishChange();
|
|
@@ -3441,11 +3441,11 @@ class Vi {
|
|
|
3441
3441
|
*/
|
|
3442
3442
|
add(e, t, i, n, r) {
|
|
3443
3443
|
if (Object(i) === i)
|
|
3444
|
-
return new
|
|
3444
|
+
return new Ea(this, e, t, i);
|
|
3445
3445
|
const s = e[t];
|
|
3446
3446
|
switch (typeof s) {
|
|
3447
3447
|
case "number":
|
|
3448
|
-
return new
|
|
3448
|
+
return new va(this, e, t, i, n, r);
|
|
3449
3449
|
case "boolean":
|
|
3450
3450
|
return new fa(this, e, t);
|
|
3451
3451
|
case "string":
|
|
@@ -4533,11 +4533,11 @@ var si = 12, yn = 5003, Na = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047,
|
|
|
4533
4533
|
function $a(a, e, t, i, n = Mr(512), r = new Uint8Array(256), s = new Int32Array(yn), o = new Int32Array(yn)) {
|
|
4534
4534
|
let l = s.length, c = Math.max(2, i);
|
|
4535
4535
|
r.fill(0), o.fill(0), s.fill(-1);
|
|
4536
|
-
let h = 0, u = 0, p = c + 1, m = p, f = !1, d = m, g = (1 << d) - 1, _ = 1 << p - 1, y = _ + 1, x = _ + 2,
|
|
4536
|
+
let h = 0, u = 0, p = c + 1, m = p, f = !1, d = m, g = (1 << d) - 1, _ = 1 << p - 1, y = _ + 1, x = _ + 2, v = 0, b = t[0], C = 0;
|
|
4537
4537
|
for (let w = l; w < 65536; w *= 2) ++C;
|
|
4538
4538
|
C = 8 - C, n.writeByte(c), P(_);
|
|
4539
|
-
let
|
|
4540
|
-
for (let w = 1; w <
|
|
4539
|
+
let E = t.length;
|
|
4540
|
+
for (let w = 1; w < E; w++)
|
|
4541
4541
|
e: {
|
|
4542
4542
|
let T = t[w], M = (T << si) + b, A = T << C ^ b;
|
|
4543
4543
|
if (s[A] === M) {
|
|
@@ -4553,10 +4553,10 @@ function $a(a, e, t, i, n = Mr(512), r = new Uint8Array(256), s = new Int32Array
|
|
|
4553
4553
|
}
|
|
4554
4554
|
return P(b), P(y), n.writeByte(0), n.bytesView();
|
|
4555
4555
|
function P(w) {
|
|
4556
|
-
for (h &= Na[u], u > 0 ? h |= w << u : h = w, u += d; u >= 8; ) r[
|
|
4556
|
+
for (h &= Na[u], u > 0 ? h |= w << u : h = w, u += d; u >= 8; ) r[v++] = h & 255, v >= 254 && (n.writeByte(v), n.writeBytesView(r, 0, v), v = 0), h >>= 8, u -= 8;
|
|
4557
4557
|
if ((x > g || f) && (f ? (d = m, g = (1 << d) - 1, f = !1) : (++d, g = d === si ? 1 << d : (1 << d) - 1)), w == y) {
|
|
4558
|
-
for (; u > 0; ) r[
|
|
4559
|
-
|
|
4558
|
+
for (; u > 0; ) r[v++] = h & 255, v >= 254 && (n.writeByte(v), n.writeBytesView(r, 0, v), v = 0), h >>= 8, u -= 8;
|
|
4559
|
+
v > 0 && (n.writeByte(v), n.writeBytesView(r, 0, v), v = 0);
|
|
4560
4560
|
}
|
|
4561
4561
|
}
|
|
4562
4562
|
}
|
|
@@ -4624,25 +4624,25 @@ function Va(a, e, t = {}) {
|
|
|
4624
4624
|
zt(e) / d < 0.022 && (c = !1);
|
|
4625
4625
|
for (var g = 0; g < d - 1; ++g) u[g].fw = g + 1, u[g + 1].bk = g, c && (u[g].cnt = Math.sqrt(u[g].cnt));
|
|
4626
4626
|
c && (u[g].cnt = Math.sqrt(u[g].cnt));
|
|
4627
|
-
var y, x,
|
|
4627
|
+
var y, x, v;
|
|
4628
4628
|
for (g = 0; g < d; ++g) {
|
|
4629
4629
|
xn(u, g);
|
|
4630
4630
|
var b = u[g].err;
|
|
4631
|
-
for (x = ++f[0]; x > 1 && (
|
|
4631
|
+
for (x = ++f[0]; x > 1 && (v = x >> 1, !(u[y = f[v]].err <= b)); x = v) f[x] = y;
|
|
4632
4632
|
f[x] = g;
|
|
4633
4633
|
}
|
|
4634
4634
|
var C = d - e;
|
|
4635
4635
|
for (g = 0; g < C; ) {
|
|
4636
|
-
for (var
|
|
4636
|
+
for (var E; ; ) {
|
|
4637
4637
|
var P = f[1];
|
|
4638
|
-
if (
|
|
4639
|
-
|
|
4638
|
+
if (E = u[P], E.tm >= E.mtm && u[E.nn].mtm <= E.tm) break;
|
|
4639
|
+
E.mtm == m ? P = f[1] = f[f[0]--] : (xn(u, P), E.tm = g);
|
|
4640
4640
|
var b = u[P].err;
|
|
4641
|
-
for (x = 1; (
|
|
4641
|
+
for (x = 1; (v = x + x) <= f[0] && (v < f[0] && u[f[v]].err > u[f[v + 1]].err && v++, !(b <= u[y = f[v]].err)); x = v) f[x] = y;
|
|
4642
4642
|
f[x] = P;
|
|
4643
4643
|
}
|
|
4644
|
-
var w = u[
|
|
4645
|
-
h && (
|
|
4644
|
+
var w = u[E.nn], T = E.cnt, M = w.cnt, _ = 1 / (T + M);
|
|
4645
|
+
h && (E.ac = _ * (T * E.ac + M * w.ac)), E.rc = _ * (T * E.rc + M * w.rc), E.gc = _ * (T * E.gc + M * w.gc), E.bc = _ * (T * E.bc + M * w.bc), E.cnt += w.cnt, E.mtm = ++g, u[w.bk].fw = w.fw, u[w.fw].bk = w.bk, w.mtm = m;
|
|
4646
4646
|
}
|
|
4647
4647
|
let A = [];
|
|
4648
4648
|
var R = 0;
|
|
@@ -4723,15 +4723,15 @@ function Ka(a = {}) {
|
|
|
4723
4723
|
}, get stream() {
|
|
4724
4724
|
return i;
|
|
4725
4725
|
}, writeHeader: c, writeFrame(h, u, p, m = {}) {
|
|
4726
|
-
let { transparent: f = !1, transparentIndex: d = 0, delay: g = 0, palette: _ = null, repeat: y = 0, colorDepth: x = 8, dispose:
|
|
4726
|
+
let { transparent: f = !1, transparentIndex: d = 0, delay: g = 0, palette: _ = null, repeat: y = 0, colorDepth: x = 8, dispose: v = -1 } = m, b = !1;
|
|
4727
4727
|
if (t ? l || (b = !0, c(), l = !0) : b = !!m.first, u = Math.max(0, Math.floor(u)), p = Math.max(0, Math.floor(p)), b) {
|
|
4728
4728
|
if (!_) throw new Error("First frame must include a { palette } option");
|
|
4729
4729
|
Wa(i, u, p, _, x), bn(i, _), y >= 0 && qa(i, y);
|
|
4730
4730
|
}
|
|
4731
4731
|
let C = Math.round(g / 10);
|
|
4732
|
-
Xa(i,
|
|
4733
|
-
let
|
|
4734
|
-
Qa(i, u, p,
|
|
4732
|
+
Xa(i, v, C, f, d);
|
|
4733
|
+
let E = !!_ && !b;
|
|
4734
|
+
Qa(i, u, p, E ? _ : null), E && bn(i, _), Ja(i, h, u, p, x, r, s, o);
|
|
4735
4735
|
} };
|
|
4736
4736
|
function c() {
|
|
4737
4737
|
Lr(i, "GIF89a");
|
|
@@ -4834,25 +4834,25 @@ class eo {
|
|
|
4834
4834
|
if (!r || !s) return;
|
|
4835
4835
|
const h = 280, u = 100, p = 20, m = t - h - p, f = i - u - p, d = 12;
|
|
4836
4836
|
e.fillStyle = "rgba(0, 10, 20, 0.9)", e.strokeStyle = "rgba(100, 170, 255, 0.5)", e.lineWidth = 2, e.beginPath(), e.roundRect ? e.roundRect(m, f, h, u, d) : e.rect(m, f, h, u), e.fill(), e.stroke(), e.fillStyle = "#44aaff", e.font = "bold 18px Arial, sans-serif", e.fillText(r.textContent || "", m + 16, f + 28);
|
|
4837
|
-
const g = m + 16, _ = f + 40, y = h - 32, x = 20,
|
|
4837
|
+
const g = m + 16, _ = f + 40, y = h - 32, x = 20, v = s.style.background || "";
|
|
4838
4838
|
let b = [];
|
|
4839
|
-
const C =
|
|
4839
|
+
const C = v.match(/rgba?\([^)]+\)/g);
|
|
4840
4840
|
if (C && C.length >= 2)
|
|
4841
4841
|
b = C;
|
|
4842
4842
|
else {
|
|
4843
|
-
const
|
|
4844
|
-
|
|
4843
|
+
const E = v.match(/#[0-9a-fA-F]{3,8}/g);
|
|
4844
|
+
E && E.length >= 2 && (b = E);
|
|
4845
4845
|
}
|
|
4846
4846
|
if (b.length >= 2) {
|
|
4847
|
-
const
|
|
4848
|
-
|
|
4847
|
+
const E = e.createLinearGradient(g, 0, g + y, 0);
|
|
4848
|
+
E.addColorStop(0, b[0]), b.length >= 3 ? (E.addColorStop(0.5, b[1]), E.addColorStop(1, b[2])) : E.addColorStop(1, b[1]), e.fillStyle = E, e.beginPath(), e.roundRect ? e.roundRect(g, _, y, x, 4) : e.rect(g, _, y, x), e.fill();
|
|
4849
4849
|
} else {
|
|
4850
|
-
const
|
|
4851
|
-
|
|
4850
|
+
const E = e.createLinearGradient(g, 0, g + y, 0);
|
|
4851
|
+
E.addColorStop(0, "#cc6600"), E.addColorStop(0.5, "#ffaa44"), E.addColorStop(1, "#ffeecc"), e.fillStyle = E, e.beginPath(), e.roundRect ? e.roundRect(g, _, y, x, 4) : e.rect(g, _, y, x), e.fill(), console.log("Legend gradient style:", v);
|
|
4852
4852
|
}
|
|
4853
4853
|
if (e.fillStyle = "#cccccc", e.font = "14px Arial, sans-serif", o && e.fillText(o.textContent || "", g, f + 78), l) {
|
|
4854
|
-
const
|
|
4855
|
-
e.fillText(
|
|
4854
|
+
const E = l.textContent || "", P = e.measureText(E).width;
|
|
4855
|
+
e.fillText(E, g + y - P, f + 78);
|
|
4856
4856
|
}
|
|
4857
4857
|
c && c.textContent && (e.fillStyle = "#888888", e.font = "italic 12px Arial, sans-serif", e.fillText(c.textContent, g, f + 95));
|
|
4858
4858
|
} catch (n) {
|
|
@@ -5016,7 +5016,7 @@ class to extends Nr {
|
|
|
5016
5016
|
return super.copy(e, t), this.element = e.element.cloneNode(!0), this.center = e.center, this;
|
|
5017
5017
|
}
|
|
5018
5018
|
}
|
|
5019
|
-
const qe = new se(),
|
|
5019
|
+
const qe = new se(), vn = new Tn(), En = new Tn(), wn = new se(), Cn = new se();
|
|
5020
5020
|
class io {
|
|
5021
5021
|
/**
|
|
5022
5022
|
* Constructs a new CSS2D renderer.
|
|
@@ -5035,7 +5035,7 @@ class io {
|
|
|
5035
5035
|
height: n
|
|
5036
5036
|
};
|
|
5037
5037
|
}, this.render = function(f, d) {
|
|
5038
|
-
f.matrixWorldAutoUpdate === !0 && f.updateMatrixWorld(), d.parent === null && d.matrixWorldAutoUpdate === !0 && d.updateMatrixWorld(),
|
|
5038
|
+
f.matrixWorldAutoUpdate === !0 && f.updateMatrixWorld(), d.parent === null && d.matrixWorldAutoUpdate === !0 && d.updateMatrixWorld(), vn.copy(d.matrixWorldInverse), En.multiplyMatrices(d.projectionMatrix, vn), h(f, f, d), this.sortObjects && m(f);
|
|
5039
5039
|
}, this.setSize = function(f, d) {
|
|
5040
5040
|
i = f, n = d, r = i / 2, s = n / 2, l.style.width = f + "px", l.style.height = d + "px";
|
|
5041
5041
|
};
|
|
@@ -5050,7 +5050,7 @@ class io {
|
|
|
5050
5050
|
return;
|
|
5051
5051
|
}
|
|
5052
5052
|
if (f.isCSS2DObject) {
|
|
5053
|
-
qe.setFromMatrixPosition(f.matrixWorld), qe.applyMatrix4(
|
|
5053
|
+
qe.setFromMatrixPosition(f.matrixWorld), qe.applyMatrix4(En);
|
|
5054
5054
|
const _ = qe.z >= -1 && qe.z <= 1 && f.layers.test(g.layers) === !0, y = f.element;
|
|
5055
5055
|
y.style.display = _ === !0 ? "" : "none", _ === !0 && (f.onBeforeRender(t, d, g), y.style.transform = "translate(" + -100 * f.center.x + "%," + -100 * f.center.y + "%)translate(" + (qe.x * r + r) + "px," + (-qe.y * s + s) + "px)", y.parentNode !== l && l.appendChild(y), f.onAfterRender(t, d, g));
|
|
5056
5056
|
const x = {
|
|
@@ -5074,8 +5074,8 @@ class io {
|
|
|
5074
5074
|
const d = p(f).sort(function(_, y) {
|
|
5075
5075
|
if (_.renderOrder !== y.renderOrder)
|
|
5076
5076
|
return y.renderOrder - _.renderOrder;
|
|
5077
|
-
const x = o.objects.get(_).distanceToCameraSquared,
|
|
5078
|
-
return x -
|
|
5077
|
+
const x = o.objects.get(_).distanceToCameraSquared, v = o.objects.get(y).distanceToCameraSquared;
|
|
5078
|
+
return x - v;
|
|
5079
5079
|
}), g = d.length;
|
|
5080
5080
|
for (let _ = 0, y = d.length; _ < y; _++)
|
|
5081
5081
|
d[_].element.style.zIndex = g - _;
|
|
@@ -5690,6 +5690,44 @@ float noise(vec2 p) {
|
|
|
5690
5690
|
return mix(mix(a, b, f.x), mix(c, d, f.x), f.y);
|
|
5691
5691
|
}
|
|
5692
5692
|
|
|
5693
|
+
// 3D noise for seamless spherical sampling
|
|
5694
|
+
float noise3D(vec3 p) {
|
|
5695
|
+
vec3 i = floor(p);
|
|
5696
|
+
vec3 f = fract(p);
|
|
5697
|
+
f = f * f * (3.0 - 2.0 * f);
|
|
5698
|
+
|
|
5699
|
+
float n000 = hash3(i);
|
|
5700
|
+
float n100 = hash3(i + vec3(1.0, 0.0, 0.0));
|
|
5701
|
+
float n010 = hash3(i + vec3(0.0, 1.0, 0.0));
|
|
5702
|
+
float n110 = hash3(i + vec3(1.0, 1.0, 0.0));
|
|
5703
|
+
float n001 = hash3(i + vec3(0.0, 0.0, 1.0));
|
|
5704
|
+
float n101 = hash3(i + vec3(1.0, 0.0, 1.0));
|
|
5705
|
+
float n011 = hash3(i + vec3(0.0, 1.0, 1.0));
|
|
5706
|
+
float n111 = hash3(i + vec3(1.0, 1.0, 1.0));
|
|
5707
|
+
|
|
5708
|
+
float nx00 = mix(n000, n100, f.x);
|
|
5709
|
+
float nx10 = mix(n010, n110, f.x);
|
|
5710
|
+
float nx01 = mix(n001, n101, f.x);
|
|
5711
|
+
float nx11 = mix(n011, n111, f.x);
|
|
5712
|
+
|
|
5713
|
+
float nxy0 = mix(nx00, nx10, f.y);
|
|
5714
|
+
float nxy1 = mix(nx01, nx11, f.y);
|
|
5715
|
+
|
|
5716
|
+
return mix(nxy0, nxy1, f.z);
|
|
5717
|
+
}
|
|
5718
|
+
|
|
5719
|
+
// FBM using 3D noise for seamless spherical clouds
|
|
5720
|
+
float fbm3D(vec3 p) {
|
|
5721
|
+
float value = 0.0;
|
|
5722
|
+
float amplitude = 0.5;
|
|
5723
|
+
for (int i = 0; i < 4; i++) {
|
|
5724
|
+
value += amplitude * noise3D(p);
|
|
5725
|
+
p *= 2.0;
|
|
5726
|
+
amplitude *= 0.5;
|
|
5727
|
+
}
|
|
5728
|
+
return value;
|
|
5729
|
+
}
|
|
5730
|
+
|
|
5693
5731
|
// Fractal Brownian Motion for natural-looking tears
|
|
5694
5732
|
float fbm(vec2 p) {
|
|
5695
5733
|
float value = 0.0;
|
|
@@ -5930,6 +5968,49 @@ float fbm(vec2 p) {
|
|
|
5930
5968
|
return value;
|
|
5931
5969
|
}
|
|
5932
5970
|
|
|
5971
|
+
// 3D hash for volumetric noise
|
|
5972
|
+
float hash3(vec3 p) {
|
|
5973
|
+
return fract(sin(dot(p, vec3(127.1, 311.7, 74.7))) * 43758.5453);
|
|
5974
|
+
}
|
|
5975
|
+
|
|
5976
|
+
// 3D noise for seamless spherical sampling
|
|
5977
|
+
float noise3D(vec3 p) {
|
|
5978
|
+
vec3 i = floor(p);
|
|
5979
|
+
vec3 f = fract(p);
|
|
5980
|
+
f = f * f * (3.0 - 2.0 * f);
|
|
5981
|
+
|
|
5982
|
+
float n000 = hash3(i);
|
|
5983
|
+
float n100 = hash3(i + vec3(1.0, 0.0, 0.0));
|
|
5984
|
+
float n010 = hash3(i + vec3(0.0, 1.0, 0.0));
|
|
5985
|
+
float n110 = hash3(i + vec3(1.0, 1.0, 0.0));
|
|
5986
|
+
float n001 = hash3(i + vec3(0.0, 0.0, 1.0));
|
|
5987
|
+
float n101 = hash3(i + vec3(1.0, 0.0, 1.0));
|
|
5988
|
+
float n011 = hash3(i + vec3(0.0, 1.0, 1.0));
|
|
5989
|
+
float n111 = hash3(i + vec3(1.0, 1.0, 1.0));
|
|
5990
|
+
|
|
5991
|
+
float nx00 = mix(n000, n100, f.x);
|
|
5992
|
+
float nx10 = mix(n010, n110, f.x);
|
|
5993
|
+
float nx01 = mix(n001, n101, f.x);
|
|
5994
|
+
float nx11 = mix(n011, n111, f.x);
|
|
5995
|
+
|
|
5996
|
+
float nxy0 = mix(nx00, nx10, f.y);
|
|
5997
|
+
float nxy1 = mix(nx01, nx11, f.y);
|
|
5998
|
+
|
|
5999
|
+
return mix(nxy0, nxy1, f.z);
|
|
6000
|
+
}
|
|
6001
|
+
|
|
6002
|
+
// FBM using 3D noise for seamless spherical clouds
|
|
6003
|
+
float fbm3D(vec3 p) {
|
|
6004
|
+
float value = 0.0;
|
|
6005
|
+
float amplitude = 0.5;
|
|
6006
|
+
for (int i = 0; i < 4; i++) {
|
|
6007
|
+
value += amplitude * noise3D(p);
|
|
6008
|
+
p *= 2.0;
|
|
6009
|
+
amplitude *= 0.5;
|
|
6010
|
+
}
|
|
6011
|
+
return value;
|
|
6012
|
+
}
|
|
6013
|
+
|
|
5933
6014
|
void main() {
|
|
5934
6015
|
if (vDiscard > 0.5) {
|
|
5935
6016
|
discard;
|
|
@@ -5972,17 +6053,29 @@ void main() {
|
|
|
5972
6053
|
color += vec3(1.0, 0.9, 0.7) * scatter * 0.15;
|
|
5973
6054
|
}
|
|
5974
6055
|
|
|
5975
|
-
// Cloud layer
|
|
6056
|
+
// Cloud layer - use spherical 3D coordinates for seamless wrapping
|
|
5976
6057
|
if (uClouds > 0.01) {
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
float
|
|
6058
|
+
// Convert UV to spherical 3D coordinates (naturally wraps without seams)
|
|
6059
|
+
float lon = vUv.x * 2.0 * 3.14159;
|
|
6060
|
+
float lat = (vUv.y - 0.5) * 3.14159;
|
|
6061
|
+
|
|
6062
|
+
// Add time-based rotation for cloud movement
|
|
6063
|
+
float cloudLon = lon + uTime * uCloudSpeed * 0.02;
|
|
6064
|
+
|
|
6065
|
+
// Create 3D point on sphere surface
|
|
6066
|
+
vec3 spherePoint = vec3(
|
|
6067
|
+
cos(lat) * cos(cloudLon),
|
|
6068
|
+
sin(lat),
|
|
6069
|
+
cos(lat) * sin(cloudLon)
|
|
6070
|
+
);
|
|
6071
|
+
|
|
6072
|
+
// Sample noise at different scales using 3D coordinates
|
|
6073
|
+
float cloud1 = fbm3D(spherePoint * 3.0 + uTime * uCloudSpeed * 0.01);
|
|
6074
|
+
float cloud2 = fbm3D(spherePoint * 6.0 - uTime * uCloudSpeed * 0.005);
|
|
6075
|
+
float cloud3 = fbm3D(spherePoint * 1.5 + uTime * uCloudSpeed * 0.003);
|
|
5983
6076
|
|
|
5984
6077
|
float clouds = cloud1 * 0.5 + cloud2 * 0.3 + cloud3 * 0.2;
|
|
5985
|
-
clouds = smoothstep(0.35, 0.
|
|
6078
|
+
clouds = smoothstep(0.35, 0.65, clouds);
|
|
5986
6079
|
|
|
5987
6080
|
vec3 cloudColor = vec3(1.0, 1.0, 1.0);
|
|
5988
6081
|
float cloudLight = 0.7 + 0.3 * dayFactor;
|