@orangelogic/design-system 2.187.0 → 2.189.0
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/library/chunks/{tab-group.CjISeeMB.js → tab-group.uSHlsFu8.js} +702 -701
- package/library/components/atoms.js +1 -1
- package/library/components/dropdown.js +5 -5
- package/library/components/file-on-demand.js +1 -1
- package/library/components/popup.js +276 -272
- package/library/components/tab-group.js +1 -1
- package/library/components/tab.js +10 -4
- package/library/components/types.js +15 -7
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/popup/popup.d.ts +8 -0
- package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +8 -0
- package/library/packages/types/src/popup.d.ts +4 -0
- package/library/react-web-component.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { n as wt, C as
|
|
3
|
-
import { c as
|
|
4
|
-
import { c as
|
|
5
|
-
import { L as
|
|
1
|
+
import zn from "../components/resize-observer.js";
|
|
2
|
+
import { n as wt, C as Bn } from "./lib-cortex-element.CVMmyPMC.js";
|
|
3
|
+
import { c as Fn } from "./component.styles.CRO4Odto.js";
|
|
4
|
+
import { c as Nn } from "./custom-element.L4WJXn1j.js";
|
|
5
|
+
import { L as Ln } from "./i18n.DbXTTLXx.js";
|
|
6
6
|
import { s as Zi } from "./scroll.xtO5yojm.js";
|
|
7
7
|
import { w as ft } from "./watch.DJF5K-8U.js";
|
|
8
|
-
import { i as
|
|
9
|
-
import { s as
|
|
10
|
-
import { i as
|
|
8
|
+
import { i as $n } from "./dom.gRV2cDjL.js";
|
|
9
|
+
import { s as Un } from "./parse.Cu5nBDTb.js";
|
|
10
|
+
import { i as Wn, x as Nt } from "./lit-element.jLBm65_O.js";
|
|
11
11
|
import { r as at } from "./state.CSDxrqLd.js";
|
|
12
|
-
import { t as
|
|
13
|
-
import { e as
|
|
12
|
+
import { t as Vn } from "./event-options.CYHYGOd8.js";
|
|
13
|
+
import { e as zt } from "./query.BBf1UFkC.js";
|
|
14
14
|
import { r as Hn } from "./query-all.i3PyvTUQ.js";
|
|
15
|
-
import { e as
|
|
15
|
+
import { e as Lt } from "./class-map.BiVq-cVR.js";
|
|
16
16
|
import { i as Ji } from "./guard.D4axKaMo.js";
|
|
17
17
|
import { o as tr } from "./map.D8heArFD.js";
|
|
18
|
-
import { o as
|
|
18
|
+
import { o as Ve } from "./style-map.llVFPd__.js";
|
|
19
19
|
import { n as Pe } from "./when.Dr1es41R.js";
|
|
20
20
|
import { C as Yn } from "./button.BnkkUqiI.js";
|
|
21
21
|
import Xn from "../components/dropdown.js";
|
|
@@ -23,7 +23,7 @@ import { C as qn } from "./icon-button.CVrxJcZq.js";
|
|
|
23
23
|
import Gn from "../components/menu.js";
|
|
24
24
|
import Kn from "../components/menu-item.js";
|
|
25
25
|
import jn from "../components/tab.js";
|
|
26
|
-
var bi = /* @__PURE__ */ ((o) => (o.Bottom = "bottom", o.End = "end", o.Start = "start", o.Top = "top", o))(bi || {}), Ke = /* @__PURE__ */ ((o) => (o.Center = "center", o.End = "flex-end", o.Start = "flex-start", o))(Ke || {}), wr = /* @__PURE__ */ ((o) => (o.Auto = "auto", o.Manual = "manual", o))(wr || {}), ue = /* @__PURE__ */ ((o) => (o.Button = "button", o.Default = "default", o.Timeline = "timeline", o))(ue || {}), Tt = /* @__PURE__ */ ((o) => (o.Dropdown = "dropdown", o.Pagination = "pagination", o.Scroll = "scroll", o))(Tt || {}),
|
|
26
|
+
var bi = /* @__PURE__ */ ((o) => (o.Bottom = "bottom", o.End = "end", o.Start = "start", o.Top = "top", o))(bi || {}), Ke = /* @__PURE__ */ ((o) => (o.Center = "center", o.End = "flex-end", o.Start = "flex-start", o))(Ke || {}), wr = /* @__PURE__ */ ((o) => (o.Auto = "auto", o.Manual = "manual", o))(wr || {}), ue = /* @__PURE__ */ ((o) => (o.Button = "button", o.Default = "default", o.Timeline = "timeline", o))(ue || {}), Tt = /* @__PURE__ */ ((o) => (o.Dropdown = "dropdown", o.Pagination = "pagination", o.Scroll = "scroll", o))(Tt || {}), Ut = /* @__PURE__ */ ((o) => (o.Absolute = "absolute", o.DisplayNone = "display-none", o))(Ut || {});
|
|
27
27
|
function Dt(o) {
|
|
28
28
|
if (o === void 0)
|
|
29
29
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -51,32 +51,32 @@ var dt = {
|
|
|
51
51
|
duration: 0.5,
|
|
52
52
|
overwrite: !1,
|
|
53
53
|
delay: 0
|
|
54
|
-
},
|
|
54
|
+
}, Ii, q, F, vt = 1e8, B = 1 / vt, mi = Math.PI * 2, Qn = mi / 4, Zn = 0, Pr = Math.sqrt, Jn = Math.cos, ts = Math.sin, X = function(t) {
|
|
55
55
|
return typeof t == "string";
|
|
56
|
-
},
|
|
56
|
+
}, U = function(t) {
|
|
57
57
|
return typeof t == "function";
|
|
58
|
-
},
|
|
58
|
+
}, Rt = function(t) {
|
|
59
59
|
return typeof t == "number";
|
|
60
|
-
},
|
|
60
|
+
}, zi = function(t) {
|
|
61
61
|
return typeof t > "u";
|
|
62
62
|
}, Ot = function(t) {
|
|
63
63
|
return typeof t == "object";
|
|
64
64
|
}, it = function(t) {
|
|
65
65
|
return t !== !1;
|
|
66
|
-
},
|
|
66
|
+
}, Bi = function() {
|
|
67
67
|
return typeof window < "u";
|
|
68
68
|
}, He = function(t) {
|
|
69
|
-
return
|
|
70
|
-
},
|
|
71
|
-
}, Q = Array.isArray, vi = /(?:-?\.?\d|\.)+/gi,
|
|
69
|
+
return U(t) || X(t);
|
|
70
|
+
}, Ar = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
|
|
71
|
+
}, Q = Array.isArray, vi = /(?:-?\.?\d|\.)+/gi, Sr = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, ce = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, hi = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, Cr = /[+-]=-?[.\d]+/, kr = /[^,'"\[\]\s]+/gi, es = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, L, At, yi, Fi, _t = {}, Je = {}, Or, Dr = function(t) {
|
|
72
72
|
return (Je = me(t, _t)) && ot;
|
|
73
|
-
},
|
|
73
|
+
}, Ni = function(t, e) {
|
|
74
74
|
return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()");
|
|
75
|
-
},
|
|
75
|
+
}, Re = function(t, e) {
|
|
76
76
|
return !e && console.warn(t);
|
|
77
77
|
}, Mr = function(t, e) {
|
|
78
78
|
return t && (_t[t] = e) && Je && (Je[t] = e) || _t;
|
|
79
|
-
},
|
|
79
|
+
}, Ie = function() {
|
|
80
80
|
return 0;
|
|
81
81
|
}, is = {
|
|
82
82
|
suppressEvents: !0,
|
|
@@ -87,9 +87,9 @@ var dt = {
|
|
|
87
87
|
kill: !1
|
|
88
88
|
}, rs = {
|
|
89
89
|
suppressEvents: !0
|
|
90
|
-
},
|
|
90
|
+
}, Li = {}, Yt = [], xi = {}, Er, ht = {}, ui = {}, er = 30, Qe = [], $i = "", Ui = function(t) {
|
|
91
91
|
var e = t[0], i, r;
|
|
92
|
-
if (Ot(e) ||
|
|
92
|
+
if (Ot(e) || U(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
|
|
93
93
|
for (r = Qe.length; r-- && !Qe[r].targetTest(e); )
|
|
94
94
|
;
|
|
95
95
|
i = Qe[r];
|
|
@@ -98,12 +98,12 @@ var dt = {
|
|
|
98
98
|
t[r] && (t[r]._gsap || (t[r]._gsap = new rn(t[r], i))) || t.splice(r, 1);
|
|
99
99
|
return t;
|
|
100
100
|
}, re = function(t) {
|
|
101
|
-
return t._gsap ||
|
|
102
|
-
},
|
|
103
|
-
return (i = t[e]) &&
|
|
101
|
+
return t._gsap || Ui(yt(t))[0]._gsap;
|
|
102
|
+
}, Rr = function(t, e, i) {
|
|
103
|
+
return (i = t[e]) && U(i) ? t[e]() : zi(i) && t.getAttribute && t.getAttribute(e) || i;
|
|
104
104
|
}, rt = function(t, e) {
|
|
105
105
|
return (t = t.split(",")).forEach(e) || t;
|
|
106
|
-
},
|
|
106
|
+
}, W = function(t) {
|
|
107
107
|
return Math.round(t * 1e5) / 1e5 || 0;
|
|
108
108
|
}, H = function(t) {
|
|
109
109
|
return Math.round(t * 1e7) / 1e7 || 0;
|
|
@@ -118,14 +118,14 @@ var dt = {
|
|
|
118
118
|
var t = Yt.length, e = Yt.slice(0), i, r;
|
|
119
119
|
for (xi = {}, Yt.length = 0, i = 0; i < t; i++)
|
|
120
120
|
r = e[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
|
|
121
|
-
},
|
|
121
|
+
}, Wi = function(t) {
|
|
122
122
|
return !!(t._initted || t._startAt || t.add);
|
|
123
|
-
},
|
|
124
|
-
Yt.length && !q && ti(), t.render(e, i, !!(q && e < 0 &&
|
|
125
|
-
},
|
|
123
|
+
}, Ir = function(t, e, i, r) {
|
|
124
|
+
Yt.length && !q && ti(), t.render(e, i, !!(q && e < 0 && Wi(t))), Yt.length && !q && ti();
|
|
125
|
+
}, zr = function(t) {
|
|
126
126
|
var e = parseFloat(t);
|
|
127
127
|
return (e || e === 0) && (t + "").match(kr).length < 2 ? e : X(t) ? t.trim() : t;
|
|
128
|
-
},
|
|
128
|
+
}, Br = function(t) {
|
|
129
129
|
return t;
|
|
130
130
|
}, pt = function(t, e) {
|
|
131
131
|
for (var i in e)
|
|
@@ -150,7 +150,7 @@ var dt = {
|
|
|
150
150
|
r in e || (i[r] = t[r]);
|
|
151
151
|
return i;
|
|
152
152
|
}, Oe = function(t) {
|
|
153
|
-
var e = t.parent ||
|
|
153
|
+
var e = t.parent || L, i = t.keyframes ? ss(Q(t.keyframes)) : pt;
|
|
154
154
|
if (it(t.inherit))
|
|
155
155
|
for (; e; )
|
|
156
156
|
i(t, e.vars.defaults), e = e.parent || e._dp;
|
|
@@ -159,7 +159,7 @@ var dt = {
|
|
|
159
159
|
for (var i = t.length, r = i === e.length; r && i-- && t[i] === e[i]; )
|
|
160
160
|
;
|
|
161
161
|
return i < 0;
|
|
162
|
-
},
|
|
162
|
+
}, Fr = function(t, e, i, r, n) {
|
|
163
163
|
var s = t[r], a;
|
|
164
164
|
if (n)
|
|
165
165
|
for (a = e[n]; s && s[n] > a; )
|
|
@@ -192,26 +192,26 @@ var dt = {
|
|
|
192
192
|
}, ii = function(t, e) {
|
|
193
193
|
return (t - e._start) * e._ts + (e._ts >= 0 ? 0 : e._dirty ? e.totalDuration() : e._tDur);
|
|
194
194
|
}, ai = function(t) {
|
|
195
|
-
return t._end = H(t._start + (t._tDur / Math.abs(t._ts || t._rts ||
|
|
195
|
+
return t._end = H(t._start + (t._tDur / Math.abs(t._ts || t._rts || B) || 0));
|
|
196
196
|
}, li = function(t, e) {
|
|
197
197
|
var i = t._dp;
|
|
198
198
|
return i && i.smoothChildTiming && t._ts && (t._start = H(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), ai(t), i._dirty || ne(i, t)), t;
|
|
199
|
-
},
|
|
199
|
+
}, Nr = function(t, e) {
|
|
200
200
|
var i;
|
|
201
|
-
if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = ii(t.rawTime(), e), (!e._dur ||
|
|
201
|
+
if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = ii(t.rawTime(), e), (!e._dur || We(0, e.totalDuration(), i) - e._tTime > B) && e.render(i, !0)), ne(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
|
|
202
202
|
if (t._dur < t.duration())
|
|
203
203
|
for (i = t; i._dp; )
|
|
204
204
|
i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
|
|
205
|
-
t._zTime = -
|
|
205
|
+
t._zTime = -B;
|
|
206
206
|
}
|
|
207
|
-
},
|
|
208
|
-
return e.parent && Gt(e), e._start = H((
|
|
209
|
-
},
|
|
210
|
-
return (_t.ScrollTrigger ||
|
|
211
|
-
},
|
|
207
|
+
}, St = function(t, e, i, r) {
|
|
208
|
+
return e.parent && Gt(e), e._start = H((Rt(i) ? i : i || t !== L ? mt(t, i, e) : t._time) + e._delay), e._end = H(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), Fr(t, e, "_first", "_last", t._sort ? "_start" : 0), Ti(e) || (t._recent = e), r || Nr(t, e), t._ts < 0 && li(t, t._tTime), t;
|
|
209
|
+
}, Lr = function(t, e) {
|
|
210
|
+
return (_t.ScrollTrigger || Ni("scrollTrigger", e)) && _t.ScrollTrigger.create(e, t);
|
|
211
|
+
}, $r = function(t, e, i, r, n) {
|
|
212
212
|
if (Hi(t, e, n), !t._initted)
|
|
213
213
|
return 1;
|
|
214
|
-
if (!i && t._pt && !q && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) &&
|
|
214
|
+
if (!i && t._pt && !q && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && Er !== ut.frame)
|
|
215
215
|
return Yt.push(t), t._lazy = [n, r], 1;
|
|
216
216
|
}, hs = function o(t) {
|
|
217
217
|
var e = t.parent;
|
|
@@ -220,13 +220,13 @@ var dt = {
|
|
|
220
220
|
var e = t.data;
|
|
221
221
|
return e === "isFromStart" || e === "isStart";
|
|
222
222
|
}, us = function(t, e, i, r) {
|
|
223
|
-
var n = t.ratio, s = e < 0 || !e && (!t._start && hs(t) && !(!t._initted && Ti(t)) || (t._ts < 0 || t._dp._ts < 0) && !Ti(t)) ? 0 : 1, a = t._rDelay,
|
|
224
|
-
if (a && t._repeat && (
|
|
225
|
-
if (!t._initted &&
|
|
223
|
+
var n = t.ratio, s = e < 0 || !e && (!t._start && hs(t) && !(!t._initted && Ti(t)) || (t._ts < 0 || t._dp._ts < 0) && !Ti(t)) ? 0 : 1, a = t._rDelay, h = 0, l, u, f;
|
|
224
|
+
if (a && t._repeat && (h = We(0, t._tDur, e), u = ve(h, a), t._yoyo && u & 1 && (s = 1 - s), u !== ve(t._tTime, a) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || q || r || t._zTime === B || !e && t._zTime) {
|
|
225
|
+
if (!t._initted && $r(t, e, r, i, h))
|
|
226
226
|
return;
|
|
227
|
-
for (f = t._zTime, t._zTime = e || (i ?
|
|
228
|
-
|
|
229
|
-
e < 0 && wi(t, e, i, !0), t._onUpdate && !i && ct(t, "onUpdate"),
|
|
227
|
+
for (f = t._zTime, t._zTime = e || (i ? B : 0), i || (i = e && !f), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = h, l = t._pt; l; )
|
|
228
|
+
l.r(s, l.d), l = l._next;
|
|
229
|
+
e < 0 && wi(t, e, i, !0), t._onUpdate && !i && ct(t, "onUpdate"), h && t._repeat && !i && t.parent && ct(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && Gt(t, 1), !i && !q && (ct(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
|
|
230
230
|
} else t._zTime || (t._zTime = e);
|
|
231
231
|
}, cs = function(t, e, i) {
|
|
232
232
|
var r;
|
|
@@ -249,86 +249,86 @@ var dt = {
|
|
|
249
249
|
return t instanceof J ? ne(t) : ye(t, t._dur);
|
|
250
250
|
}, fs = {
|
|
251
251
|
_start: 0,
|
|
252
|
-
endTime:
|
|
253
|
-
totalDuration:
|
|
252
|
+
endTime: Ie,
|
|
253
|
+
totalDuration: Ie
|
|
254
254
|
}, mt = function o(t, e, i) {
|
|
255
|
-
var r = t.labels, n = t._recent || fs, s = t.duration() >= vt ? n.endTime(!1) : t._dur, a,
|
|
256
|
-
return X(e) && (isNaN(e) || e in r) ? (
|
|
255
|
+
var r = t.labels, n = t._recent || fs, s = t.duration() >= vt ? n.endTime(!1) : t._dur, a, h, l;
|
|
256
|
+
return X(e) && (isNaN(e) || e in r) ? (h = e.charAt(0), l = e.substr(-1) === "%", a = e.indexOf("="), h === "<" || h === ">" ? (a >= 0 && (e = e.replace(/=/, "")), (h === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(e.substr(1)) || 0) * (l ? (a < 0 ? n : i).totalDuration() / 100 : 1)) : a < 0 ? (e in r || (r[e] = s), r[e]) : (h = parseFloat(e.charAt(a - 1) + e.substr(a + 1)), l && i && (h = h / 100 * (Q(i) ? i[0] : i).totalDuration()), a > 1 ? o(t, e.substr(0, a - 1), i) + h : s + h)) : e == null ? s : +e;
|
|
257
257
|
}, De = function(t, e, i) {
|
|
258
|
-
var r =
|
|
258
|
+
var r = Rt(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], a, h;
|
|
259
259
|
if (r && (s.duration = e[1]), s.parent = i, t) {
|
|
260
|
-
for (a = s,
|
|
261
|
-
a =
|
|
260
|
+
for (a = s, h = i; h && !("immediateRender" in a); )
|
|
261
|
+
a = h.vars.defaults || {}, h = it(h.vars.inherit) && h.parent;
|
|
262
262
|
s.immediateRender = it(a.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
|
|
263
263
|
}
|
|
264
|
-
return new
|
|
264
|
+
return new V(e[0], s, e[n + 1]);
|
|
265
265
|
}, jt = function(t, e) {
|
|
266
266
|
return t || t === 0 ? e(t) : e;
|
|
267
|
-
},
|
|
267
|
+
}, We = function(t, e, i) {
|
|
268
268
|
return i < t ? t : i > e ? e : i;
|
|
269
269
|
}, K = function(t, e) {
|
|
270
270
|
return !X(t) || !(e = es.exec(t)) ? "" : e[1];
|
|
271
271
|
}, ds = function(t, e, i) {
|
|
272
272
|
return jt(i, function(r) {
|
|
273
|
-
return
|
|
273
|
+
return We(t, e, r);
|
|
274
274
|
});
|
|
275
|
-
}, Pi = [].slice,
|
|
276
|
-
return t && Ot(t) && "length" in t && (!e && !t.length || t.length - 1 in t && Ot(t[0])) && !t.nodeType && t !==
|
|
275
|
+
}, Pi = [].slice, Ur = function(t, e) {
|
|
276
|
+
return t && Ot(t) && "length" in t && (!e && !t.length || t.length - 1 in t && Ot(t[0])) && !t.nodeType && t !== At;
|
|
277
277
|
}, _s = function(t, e, i) {
|
|
278
278
|
return i === void 0 && (i = []), t.forEach(function(r) {
|
|
279
279
|
var n;
|
|
280
|
-
return X(r) && !e ||
|
|
280
|
+
return X(r) && !e || Ur(r, 1) ? (n = i).push.apply(n, yt(r)) : i.push(r);
|
|
281
281
|
}) || i;
|
|
282
282
|
}, yt = function(t, e, i) {
|
|
283
|
-
return
|
|
284
|
-
},
|
|
285
|
-
return t = yt(t)[0] ||
|
|
283
|
+
return F && !e && F.selector ? F.selector(t) : X(t) && !i && (yi || !xe()) ? Pi.call((e || Fi).querySelectorAll(t), 0) : Q(t) ? _s(t, i) : Ur(t) ? Pi.call(t, 0) : t ? [t] : [];
|
|
284
|
+
}, Ai = function(t) {
|
|
285
|
+
return t = yt(t)[0] || Re("Invalid scope") || {}, function(e) {
|
|
286
286
|
var i = t.current || t.nativeElement || t;
|
|
287
|
-
return yt(e, i.querySelectorAll ? i : i === t ?
|
|
287
|
+
return yt(e, i.querySelectorAll ? i : i === t ? Re("Invalid scope") || Fi.createElement("div") : t);
|
|
288
288
|
};
|
|
289
|
-
},
|
|
289
|
+
}, Wr = function(t) {
|
|
290
290
|
return t.sort(function() {
|
|
291
291
|
return 0.5 - Math.random();
|
|
292
292
|
});
|
|
293
|
-
},
|
|
294
|
-
if (
|
|
293
|
+
}, Vr = function(t) {
|
|
294
|
+
if (U(t))
|
|
295
295
|
return t;
|
|
296
296
|
var e = Ot(t) ? t : {
|
|
297
297
|
each: t
|
|
298
|
-
}, i = se(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, a = r > 0 && r < 1,
|
|
298
|
+
}, i = se(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, a = r > 0 && r < 1, h = isNaN(r) || a, l = e.axis, u = r, f = r;
|
|
299
299
|
return X(r) ? u = f = {
|
|
300
300
|
center: 0.5,
|
|
301
301
|
edges: 0.5,
|
|
302
302
|
end: 1
|
|
303
|
-
}[r] || 0 : !a &&
|
|
304
|
-
var c = (p || e).length, g = s[c], m, b, v, x, y, T, P,
|
|
303
|
+
}[r] || 0 : !a && h && (u = r[0], f = r[1]), function(d, _, p) {
|
|
304
|
+
var c = (p || e).length, g = s[c], m, b, v, x, y, T, P, A, w;
|
|
305
305
|
if (!g) {
|
|
306
306
|
if (w = e.grid === "auto" ? 0 : (e.grid || [1, vt])[1], !w) {
|
|
307
307
|
for (P = -vt; P < (P = p[w++].getBoundingClientRect().left) && w < c; )
|
|
308
308
|
;
|
|
309
309
|
w < c && w--;
|
|
310
310
|
}
|
|
311
|
-
for (g = s[c] = [], m =
|
|
312
|
-
v = T % w - m, x = b - (T / w | 0), g[T] = y =
|
|
313
|
-
r === "random" &&
|
|
311
|
+
for (g = s[c] = [], m = h ? Math.min(w, c) * u - 0.5 : r % w, b = w === vt ? 0 : h ? c * f / w - 0.5 : r / w | 0, P = 0, A = vt, T = 0; T < c; T++)
|
|
312
|
+
v = T % w - m, x = b - (T / w | 0), g[T] = y = l ? Math.abs(l === "y" ? x : v) : Pr(v * v + x * x), y > P && (P = y), y < A && (A = y);
|
|
313
|
+
r === "random" && Wr(g), g.max = P - A, g.min = A, g.v = c = (parseFloat(e.amount) || parseFloat(e.each) * (w > c ? c - 1 : l ? l === "y" ? c / w : w : Math.max(w, c / w)) || 0) * (r === "edges" ? -1 : 1), g.b = c < 0 ? n - c : n, g.u = K(e.amount || e.each) || 0, i = i && c < 0 ? Jr(i) : i;
|
|
314
314
|
}
|
|
315
315
|
return c = (g[d] - g.min) / g.max || 0, H(g.b + (i ? i(c) : c) * g.v) + g.u;
|
|
316
316
|
};
|
|
317
|
-
},
|
|
317
|
+
}, Si = function(t) {
|
|
318
318
|
var e = Math.pow(10, ((t + "").split(".")[1] || "").length);
|
|
319
319
|
return function(i) {
|
|
320
320
|
var r = H(Math.round(parseFloat(i) / t) * t * e);
|
|
321
|
-
return (r - r % 1) / e + (
|
|
321
|
+
return (r - r % 1) / e + (Rt(i) ? 0 : K(i));
|
|
322
322
|
};
|
|
323
323
|
}, Hr = function(t, e) {
|
|
324
324
|
var i = Q(t), r, n;
|
|
325
|
-
return !i && Ot(t) && (r = i = t.radius || vt, t.values ? (t = yt(t.values), (n = !
|
|
325
|
+
return !i && Ot(t) && (r = i = t.radius || vt, t.values ? (t = yt(t.values), (n = !Rt(t[0])) && (r *= r)) : t = Si(t.increment)), jt(e, i ? U(t) ? function(s) {
|
|
326
326
|
return n = t(s), Math.abs(n - s) <= r ? n : s;
|
|
327
327
|
} : function(s) {
|
|
328
|
-
for (var a = parseFloat(n ? s.x : s),
|
|
329
|
-
n ? (d = t[f].x - a, _ = t[f].y -
|
|
330
|
-
return u = !r ||
|
|
331
|
-
} :
|
|
328
|
+
for (var a = parseFloat(n ? s.x : s), h = parseFloat(n ? s.y : 0), l = vt, u = 0, f = t.length, d, _; f--; )
|
|
329
|
+
n ? (d = t[f].x - a, _ = t[f].y - h, d = d * d + _ * _) : d = Math.abs(t[f] - a), d < l && (l = d, u = f);
|
|
330
|
+
return u = !r || l <= r ? t[u] : s, n || u === s || Rt(s) ? u : u + K(s);
|
|
331
|
+
} : Si(t));
|
|
332
332
|
}, Yr = function(t, e, i, r) {
|
|
333
333
|
return jt(Q(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
|
|
334
334
|
return Q(t) ? t[~~(Math.random() * t.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((t - i / 2 + Math.random() * (e - t + i * 0.99)) / i) * i * r) / r;
|
|
@@ -361,21 +361,21 @@ var dt = {
|
|
|
361
361
|
return Q(t) ? Xr(t, o(0, t.length - 1), e) : jt(i, function(s) {
|
|
362
362
|
return s = (n + (s - t) % n) % n || 0, t + (s > r ? n - s : s);
|
|
363
363
|
});
|
|
364
|
-
},
|
|
364
|
+
}, ze = function(t) {
|
|
365
365
|
for (var e = 0, i = "", r, n, s, a; ~(r = t.indexOf("random(", e)); )
|
|
366
366
|
s = t.indexOf(")", r), a = t.charAt(r + 7) === "[", n = t.substr(r + 7, s - r - 7).match(a ? kr : vi), i += t.substr(e, r - e) + Yr(a ? n : +n[0], a ? 0 : +n[1], +n[2] || 1e-5), e = s + 1;
|
|
367
367
|
return i + t.substr(e, t.length - e);
|
|
368
368
|
}, qr = function(t, e, i, r, n) {
|
|
369
369
|
var s = e - t, a = r - i;
|
|
370
|
-
return jt(n, function(
|
|
371
|
-
return i + ((
|
|
370
|
+
return jt(n, function(h) {
|
|
371
|
+
return i + ((h - t) / s * a || 0);
|
|
372
372
|
});
|
|
373
373
|
}, ys = function o(t, e, i, r) {
|
|
374
374
|
var n = isNaN(t + e) ? 0 : function(_) {
|
|
375
375
|
return (1 - _) * t + _ * e;
|
|
376
376
|
};
|
|
377
377
|
if (!n) {
|
|
378
|
-
var s = X(t), a = {},
|
|
378
|
+
var s = X(t), a = {}, h, l, u, f, d;
|
|
379
379
|
if (i === !0 && (r = 1) && (i = null), s)
|
|
380
380
|
t = {
|
|
381
381
|
p: t
|
|
@@ -383,8 +383,8 @@ var dt = {
|
|
|
383
383
|
p: e
|
|
384
384
|
};
|
|
385
385
|
else if (Q(t) && !Q(e)) {
|
|
386
|
-
for (u = [], f = t.length, d = f - 2,
|
|
387
|
-
u.push(o(t[
|
|
386
|
+
for (u = [], f = t.length, d = f - 2, l = 1; l < f; l++)
|
|
387
|
+
u.push(o(t[l - 1], t[l]));
|
|
388
388
|
f--, n = function(p) {
|
|
389
389
|
p *= f;
|
|
390
390
|
var c = Math.min(d, ~~p);
|
|
@@ -392,8 +392,8 @@ var dt = {
|
|
|
392
392
|
}, i = e;
|
|
393
393
|
} else r || (t = me(Q(t) ? [] : {}, t));
|
|
394
394
|
if (!u) {
|
|
395
|
-
for (
|
|
396
|
-
|
|
395
|
+
for (h in e)
|
|
396
|
+
Vi.call(a, t, h, "get", e[h]);
|
|
397
397
|
n = function(p) {
|
|
398
398
|
return qi(p, a) || (s ? t.p : t);
|
|
399
399
|
};
|
|
@@ -401,27 +401,27 @@ var dt = {
|
|
|
401
401
|
}
|
|
402
402
|
return jt(i, n);
|
|
403
403
|
}, sr = function(t, e, i) {
|
|
404
|
-
var r = t.labels, n = vt, s, a,
|
|
404
|
+
var r = t.labels, n = vt, s, a, h;
|
|
405
405
|
for (s in r)
|
|
406
|
-
a = r[s] - e, a < 0 == !!i && a && n > (a = Math.abs(a)) && (
|
|
407
|
-
return
|
|
406
|
+
a = r[s] - e, a < 0 == !!i && a && n > (a = Math.abs(a)) && (h = s, n = a);
|
|
407
|
+
return h;
|
|
408
408
|
}, ct = function(t, e, i) {
|
|
409
|
-
var r = t.vars, n = r[e], s =
|
|
409
|
+
var r = t.vars, n = r[e], s = F, a = t._ctx, h, l, u;
|
|
410
410
|
if (n)
|
|
411
|
-
return
|
|
411
|
+
return h = r[e + "Params"], l = r.callbackScope || t, i && Yt.length && ti(), a && (F = a), u = h ? n.apply(l, h) : n.call(l), F = s, u;
|
|
412
412
|
}, Ce = function(t) {
|
|
413
413
|
return Gt(t), t.scrollTrigger && t.scrollTrigger.kill(!!q), t.progress() < 1 && ct(t, "onInterrupt"), t;
|
|
414
414
|
}, fe, Gr = [], Kr = function(t) {
|
|
415
415
|
if (t)
|
|
416
|
-
if (t = !t.name && t.default || t,
|
|
417
|
-
var e = t.name, i =
|
|
416
|
+
if (t = !t.name && t.default || t, Bi() || t.headless) {
|
|
417
|
+
var e = t.name, i = U(t), r = e && !i && t.init ? function() {
|
|
418
418
|
this._props = [];
|
|
419
419
|
} : t, n = {
|
|
420
|
-
init:
|
|
420
|
+
init: Ie,
|
|
421
421
|
render: qi,
|
|
422
|
-
add:
|
|
423
|
-
kill:
|
|
424
|
-
modifier:
|
|
422
|
+
add: Vi,
|
|
423
|
+
kill: Bs,
|
|
424
|
+
modifier: zs,
|
|
425
425
|
rawVars: 0
|
|
426
426
|
}, s = {
|
|
427
427
|
targetTest: 0,
|
|
@@ -433,52 +433,52 @@ var dt = {
|
|
|
433
433
|
if (xe(), t !== r) {
|
|
434
434
|
if (ht[e])
|
|
435
435
|
return;
|
|
436
|
-
pt(r, pt(ei(t, n), s)), me(r.prototype, me(n, ei(t, s))), ht[r.prop = e] = r, t.targetTest && (Qe.push(r),
|
|
436
|
+
pt(r, pt(ei(t, n), s)), me(r.prototype, me(n, ei(t, s))), ht[r.prop = e] = r, t.targetTest && (Qe.push(r), Li[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
|
|
437
437
|
}
|
|
438
438
|
Mr(e, r), t.register && t.register(ot, r, nt);
|
|
439
439
|
} else
|
|
440
440
|
Gr.push(t);
|
|
441
|
-
},
|
|
442
|
-
aqua: [0,
|
|
443
|
-
lime: [0,
|
|
441
|
+
}, z = 255, ke = {
|
|
442
|
+
aqua: [0, z, z],
|
|
443
|
+
lime: [0, z, 0],
|
|
444
444
|
silver: [192, 192, 192],
|
|
445
445
|
black: [0, 0, 0],
|
|
446
446
|
maroon: [128, 0, 0],
|
|
447
447
|
teal: [0, 128, 128],
|
|
448
|
-
blue: [0, 0,
|
|
448
|
+
blue: [0, 0, z],
|
|
449
449
|
navy: [0, 0, 128],
|
|
450
|
-
white: [
|
|
450
|
+
white: [z, z, z],
|
|
451
451
|
olive: [128, 128, 0],
|
|
452
|
-
yellow: [
|
|
453
|
-
orange: [
|
|
452
|
+
yellow: [z, z, 0],
|
|
453
|
+
orange: [z, 165, 0],
|
|
454
454
|
gray: [128, 128, 128],
|
|
455
455
|
purple: [128, 0, 128],
|
|
456
456
|
green: [0, 128, 0],
|
|
457
|
-
red: [
|
|
458
|
-
pink: [
|
|
459
|
-
cyan: [0,
|
|
460
|
-
transparent: [
|
|
457
|
+
red: [z, 0, 0],
|
|
458
|
+
pink: [z, 192, 203],
|
|
459
|
+
cyan: [0, z, z],
|
|
460
|
+
transparent: [z, z, z, 0]
|
|
461
461
|
}, ci = function(t, e, i) {
|
|
462
|
-
return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) *
|
|
462
|
+
return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) * z + 0.5 | 0;
|
|
463
463
|
}, jr = function(t, e, i) {
|
|
464
|
-
var r = t ?
|
|
464
|
+
var r = t ? Rt(t) ? [t >> 16, t >> 8 & z, t & z] : 0 : ke.black, n, s, a, h, l, u, f, d, _, p;
|
|
465
465
|
if (!r) {
|
|
466
466
|
if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), ke[t])
|
|
467
467
|
r = ke[t];
|
|
468
468
|
else if (t.charAt(0) === "#") {
|
|
469
469
|
if (t.length < 6 && (n = t.charAt(1), s = t.charAt(2), a = t.charAt(3), t = "#" + n + n + s + s + a + a + (t.length === 5 ? t.charAt(4) + t.charAt(4) : "")), t.length === 9)
|
|
470
|
-
return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 &
|
|
471
|
-
t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 &
|
|
470
|
+
return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 & z, r & z, parseInt(t.substr(7), 16) / 255];
|
|
471
|
+
t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 & z, t & z];
|
|
472
472
|
} else if (t.substr(0, 3) === "hsl") {
|
|
473
473
|
if (r = p = t.match(vi), !e)
|
|
474
|
-
|
|
474
|
+
h = +r[0] % 360 / 360, l = +r[1] / 100, u = +r[2] / 100, s = u <= 0.5 ? u * (l + 1) : u + l - u * l, n = u * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = ci(h + 1 / 3, n, s), r[1] = ci(h, n, s), r[2] = ci(h - 1 / 3, n, s);
|
|
475
475
|
else if (~t.indexOf("="))
|
|
476
|
-
return r = t.match(
|
|
476
|
+
return r = t.match(Sr), i && r.length < 4 && (r[3] = 1), r;
|
|
477
477
|
} else
|
|
478
478
|
r = t.match(vi) || ke.transparent;
|
|
479
479
|
r = r.map(Number);
|
|
480
480
|
}
|
|
481
|
-
return e && !p && (n = r[0] /
|
|
481
|
+
return e && !p && (n = r[0] / z, s = r[1] / z, a = r[2] / z, f = Math.max(n, s, a), d = Math.min(n, s, a), u = (f + d) / 2, f === d ? h = l = 0 : (_ = f - d, l = u > 0.5 ? _ / (2 - f - d) : _ / (f + d), h = f === n ? (s - a) / _ + (s < a ? 6 : 0) : f === s ? (a - n) / _ + 2 : (n - s) / _ + 4, h *= 60), r[0] = ~~(h + 0.5), r[1] = ~~(l * 100 + 0.5), r[2] = ~~(u * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
|
|
482
482
|
}, Qr = function(t) {
|
|
483
483
|
var e = [], i = [], r = -1;
|
|
484
484
|
return t.split(Xt).forEach(function(n) {
|
|
@@ -486,18 +486,18 @@ var dt = {
|
|
|
486
486
|
e.push.apply(e, s), i.push(r += s.length + 1);
|
|
487
487
|
}), e.c = i, e;
|
|
488
488
|
}, or = function(t, e, i) {
|
|
489
|
-
var r = "", n = (t + r).match(Xt), s = e ? "hsla(" : "rgba(", a = 0,
|
|
489
|
+
var r = "", n = (t + r).match(Xt), s = e ? "hsla(" : "rgba(", a = 0, h, l, u, f;
|
|
490
490
|
if (!n)
|
|
491
491
|
return t;
|
|
492
492
|
if (n = n.map(function(d) {
|
|
493
493
|
return (d = jr(d, e, 1)) && s + (e ? d[0] + "," + d[1] + "%," + d[2] + "%," + d[3] : d.join(",")) + ")";
|
|
494
|
-
}), i && (u = Qr(t),
|
|
495
|
-
for (
|
|
496
|
-
r +=
|
|
497
|
-
if (!
|
|
498
|
-
for (
|
|
499
|
-
r +=
|
|
500
|
-
return r +
|
|
494
|
+
}), i && (u = Qr(t), h = i.c, h.join(r) !== u.c.join(r)))
|
|
495
|
+
for (l = t.replace(Xt, "1").split(ce), f = l.length - 1; a < f; a++)
|
|
496
|
+
r += l[a] + (~h.indexOf(a) ? n.shift() || s + "0,0,0,0)" : (u.length ? u : n.length ? n : i).shift());
|
|
497
|
+
if (!l)
|
|
498
|
+
for (l = t.split(Xt), f = l.length - 1; a < f; a++)
|
|
499
|
+
r += l[a] + n[a];
|
|
500
|
+
return r + l[f];
|
|
501
501
|
}, Xt = function() {
|
|
502
502
|
var o = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", t;
|
|
503
503
|
for (t in ke)
|
|
@@ -507,10 +507,10 @@ var dt = {
|
|
|
507
507
|
var e = t.join(" "), i;
|
|
508
508
|
if (Xt.lastIndex = 0, Xt.test(e))
|
|
509
509
|
return i = xs.test(e), t[1] = or(t[1], i), t[0] = or(t[0], i, Qr(t[1])), !0;
|
|
510
|
-
},
|
|
511
|
-
var o = Date.now, t = 500, e = 33, i = o(), r = i, n = 1e3 / 240, s = n, a = [],
|
|
510
|
+
}, Be, ut = function() {
|
|
511
|
+
var o = Date.now, t = 500, e = 33, i = o(), r = i, n = 1e3 / 240, s = n, a = [], h, l, u, f, d, _, p = function c(g) {
|
|
512
512
|
var m = o() - r, b = g === !0, v, x, y, T;
|
|
513
|
-
if ((m > t || m < 0) && (i += m - e), r += m, y = r - i, v = y - s, (v > 0 || b) && (T = ++f.frame, d = y - f.time * 1e3, f.time = y = y / 1e3, s += v + (v >= n ? 4 : n - v), x = 1), b || (
|
|
513
|
+
if ((m > t || m < 0) && (i += m - e), r += m, y = r - i, v = y - s, (v > 0 || b) && (T = ++f.frame, d = y - f.time * 1e3, f.time = y = y / 1e3, s += v + (v >= n ? 4 : n - v), x = 1), b || (h = l(c)), x)
|
|
514
514
|
for (_ = 0; _ < a.length; _++)
|
|
515
515
|
a[_](y, d, T, g);
|
|
516
516
|
};
|
|
@@ -524,12 +524,12 @@ var dt = {
|
|
|
524
524
|
return d / (1e3 / (g || 60));
|
|
525
525
|
},
|
|
526
526
|
wake: function() {
|
|
527
|
-
Or && (!yi &&
|
|
527
|
+
Or && (!yi && Bi() && (At = yi = window, Fi = At.document || {}, _t.gsap = ot, (At.gsapVersions || (At.gsapVersions = [])).push(ot.version), Dr(Je || At.GreenSockGlobals || !At.gsap && At || {}), Gr.forEach(Kr)), u = typeof requestAnimationFrame < "u" && requestAnimationFrame, h && f.sleep(), l = u || function(g) {
|
|
528
528
|
return setTimeout(g, s - f.time * 1e3 + 1 | 0);
|
|
529
|
-
},
|
|
529
|
+
}, Be = 1, p(2));
|
|
530
530
|
},
|
|
531
531
|
sleep: function() {
|
|
532
|
-
(u ? cancelAnimationFrame : clearTimeout)(
|
|
532
|
+
(u ? cancelAnimationFrame : clearTimeout)(h), Be = 0, l = Ie;
|
|
533
533
|
},
|
|
534
534
|
lagSmoothing: function(g, m) {
|
|
535
535
|
t = g || 1 / 0, e = Math.min(m || 33, t);
|
|
@@ -549,17 +549,17 @@ var dt = {
|
|
|
549
549
|
_listeners: a
|
|
550
550
|
}, f;
|
|
551
551
|
}(), xe = function() {
|
|
552
|
-
return !
|
|
552
|
+
return !Be && ut.wake();
|
|
553
553
|
}, D = {}, ws = /^[\d.\-M][\d.\-,\s]/, Ts = /["']/g, Ps = function(t) {
|
|
554
|
-
for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, a,
|
|
555
|
-
|
|
554
|
+
for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, a, h, l; n < s; n++)
|
|
555
|
+
h = i[n], a = n !== s - 1 ? h.lastIndexOf(",") : h.length, l = h.substr(0, a), e[r] = isNaN(l) ? l.replace(Ts, "").trim() : +l, r = h.substr(a + 1).trim();
|
|
556
556
|
return e;
|
|
557
|
-
},
|
|
557
|
+
}, As = function(t) {
|
|
558
558
|
var e = t.indexOf("(") + 1, i = t.indexOf(")"), r = t.indexOf("(", e);
|
|
559
559
|
return t.substring(e, ~r && r < i ? t.indexOf(")", i + 1) : i);
|
|
560
|
-
},
|
|
560
|
+
}, Ss = function(t) {
|
|
561
561
|
var e = (t + "").split("("), i = D[e[0]];
|
|
562
|
-
return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [Ps(e[1])] :
|
|
562
|
+
return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [Ps(e[1])] : As(t).split(",").map(zr)) : D._CE && ws.test(t) ? D._CE("", t) : i;
|
|
563
563
|
}, Jr = function(t) {
|
|
564
564
|
return function(e) {
|
|
565
565
|
return 1 - t(1 - e);
|
|
@@ -568,12 +568,12 @@ var dt = {
|
|
|
568
568
|
for (var i = t._first, r; i; )
|
|
569
569
|
i instanceof J ? o(i, e) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== e && (i.timeline ? o(i.timeline, e) : (r = i._ease, i._ease = i._yEase, i._yEase = r, i._yoyo = e)), i = i._next;
|
|
570
570
|
}, se = function(t, e) {
|
|
571
|
-
return t && (
|
|
571
|
+
return t && (U(t) ? t : D[t] || Ss(t)) || e;
|
|
572
572
|
}, le = function(t, e, i, r) {
|
|
573
|
-
i === void 0 && (i = function(
|
|
574
|
-
return 1 - e(1 -
|
|
575
|
-
}), r === void 0 && (r = function(
|
|
576
|
-
return
|
|
573
|
+
i === void 0 && (i = function(h) {
|
|
574
|
+
return 1 - e(1 - h);
|
|
575
|
+
}), r === void 0 && (r = function(h) {
|
|
576
|
+
return h < 0.5 ? e(h * 2) / 2 : 1 - e((1 - h) * 2) / 2;
|
|
577
577
|
});
|
|
578
578
|
var n = {
|
|
579
579
|
easeIn: e,
|
|
@@ -582,8 +582,8 @@ var dt = {
|
|
|
582
582
|
}, s;
|
|
583
583
|
return rt(t, function(a) {
|
|
584
584
|
D[a] = _t[a] = n, D[s = a.toLowerCase()] = i;
|
|
585
|
-
for (var
|
|
586
|
-
D[s + (
|
|
585
|
+
for (var h in n)
|
|
586
|
+
D[s + (h === "easeIn" ? ".in" : h === "easeOut" ? ".out" : ".inOut")] = D[a + "." + h] = n[h];
|
|
587
587
|
}), n;
|
|
588
588
|
}, en = function(t) {
|
|
589
589
|
return function(e) {
|
|
@@ -592,12 +592,12 @@ var dt = {
|
|
|
592
592
|
}, fi = function o(t, e, i) {
|
|
593
593
|
var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / mi * (Math.asin(1 / r) || 0), a = function(u) {
|
|
594
594
|
return u === 1 ? 1 : r * Math.pow(2, -10 * u) * ts((u - s) * n) + 1;
|
|
595
|
-
},
|
|
596
|
-
return 1 - a(1 -
|
|
595
|
+
}, h = t === "out" ? a : t === "in" ? function(l) {
|
|
596
|
+
return 1 - a(1 - l);
|
|
597
597
|
} : en(a);
|
|
598
|
-
return n = mi / n,
|
|
599
|
-
return o(t,
|
|
600
|
-
},
|
|
598
|
+
return n = mi / n, h.config = function(l, u) {
|
|
599
|
+
return o(t, l, u);
|
|
600
|
+
}, h;
|
|
601
601
|
}, di = function o(t, e) {
|
|
602
602
|
e === void 0 && (e = 1.70158);
|
|
603
603
|
var i = function(s) {
|
|
@@ -644,21 +644,21 @@ le("Back", di("in"), di("out"), di());
|
|
|
644
644
|
D.SteppedEase = D.steps = _t.SteppedEase = {
|
|
645
645
|
config: function(t, e) {
|
|
646
646
|
t === void 0 && (t = 1);
|
|
647
|
-
var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 -
|
|
647
|
+
var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - B;
|
|
648
648
|
return function(a) {
|
|
649
|
-
return ((r *
|
|
649
|
+
return ((r * We(0, s, a) | 0) + n) * i;
|
|
650
650
|
};
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
653
|
be.ease = D["quad.out"];
|
|
654
654
|
rt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(o) {
|
|
655
|
-
return
|
|
655
|
+
return $i += o + "," + o + "Params,";
|
|
656
656
|
});
|
|
657
657
|
var rn = function(t, e) {
|
|
658
|
-
this.id = Zn++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get :
|
|
659
|
-
},
|
|
658
|
+
this.id = Zn++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : Rr, this.set = e ? e.getSetter : Xi;
|
|
659
|
+
}, Fe = /* @__PURE__ */ function() {
|
|
660
660
|
function o(e) {
|
|
661
|
-
this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === 1 / 0 ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1, ye(this, +e.duration, 1, 1), this.data = e.data,
|
|
661
|
+
this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === 1 / 0 ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1, ye(this, +e.duration, 1, 1), this.data = e.data, F && (this._ctx = F, F.data.push(this)), Be || ut.wake();
|
|
662
662
|
}
|
|
663
663
|
var t = o.prototype;
|
|
664
664
|
return t.delay = function(i) {
|
|
@@ -672,11 +672,11 @@ var rn = function(t, e) {
|
|
|
672
672
|
return this._tTime;
|
|
673
673
|
var n = this._dp;
|
|
674
674
|
if (n && n.smoothChildTiming && this._ts) {
|
|
675
|
-
for (li(this, i), !n._dp || n.parent ||
|
|
675
|
+
for (li(this, i), !n._dp || n.parent || Nr(n, this); n && n.parent; )
|
|
676
676
|
n.parent._time !== n._start + (n._ts >= 0 ? n._tTime / n._ts : (n.totalDuration() - n._tTime) / -n._ts) && n.totalTime(n._tTime, !0), n = n.parent;
|
|
677
|
-
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) &&
|
|
677
|
+
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && St(this._dp, this, this._start - this._delay);
|
|
678
678
|
}
|
|
679
|
-
return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) ===
|
|
679
|
+
return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === B || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), Ir(this, i, r)), this;
|
|
680
680
|
}, t.time = function(i, r) {
|
|
681
681
|
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + rr(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
|
|
682
682
|
}, t.totalProgress = function(i, r) {
|
|
@@ -688,18 +688,18 @@ var rn = function(t, e) {
|
|
|
688
688
|
return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? ve(this._tTime, n) + 1 : 1;
|
|
689
689
|
}, t.timeScale = function(i, r) {
|
|
690
690
|
if (!arguments.length)
|
|
691
|
-
return this._rts === -
|
|
691
|
+
return this._rts === -B ? 0 : this._rts;
|
|
692
692
|
if (this._rts === i)
|
|
693
693
|
return this;
|
|
694
694
|
var n = this.parent && this._ts ? ii(this.parent._time, this) : this._tTime;
|
|
695
|
-
return this._rts = +i || 0, this._ts = this._ps || i === -
|
|
695
|
+
return this._rts = +i || 0, this._ts = this._ps || i === -B ? 0 : this._rts, this.totalTime(We(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), ai(this), as(this);
|
|
696
696
|
}, t.paused = function(i) {
|
|
697
|
-
return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (xe(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !==
|
|
697
|
+
return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (xe(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== B && (this._tTime -= B)))), this) : this._ps;
|
|
698
698
|
}, t.startTime = function(i) {
|
|
699
699
|
if (arguments.length) {
|
|
700
700
|
this._start = i;
|
|
701
701
|
var r = this.parent || this._dp;
|
|
702
|
-
return r && (r._sort || !this.parent) &&
|
|
702
|
+
return r && (r._sort || !this.parent) && St(r, this, i - this._delay), this;
|
|
703
703
|
}
|
|
704
704
|
return this._start;
|
|
705
705
|
}, t.endTime = function(i) {
|
|
@@ -710,7 +710,7 @@ var rn = function(t, e) {
|
|
|
710
710
|
}, t.revert = function(i) {
|
|
711
711
|
i === void 0 && (i = rs);
|
|
712
712
|
var r = q;
|
|
713
|
-
return q = i,
|
|
713
|
+
return q = i, Wi(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), q = r, this;
|
|
714
714
|
}, t.globalTime = function(i) {
|
|
715
715
|
for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
|
|
716
716
|
n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
|
|
@@ -728,7 +728,7 @@ var rn = function(t, e) {
|
|
|
728
728
|
}, t.seek = function(i, r) {
|
|
729
729
|
return this.totalTime(mt(this, i), it(r));
|
|
730
730
|
}, t.restart = function(i, r) {
|
|
731
|
-
return this.play().totalTime(i ? -this._delay : 0, it(r)), this._dur || (this._zTime = -
|
|
731
|
+
return this.play().totalTime(i ? -this._delay : 0, it(r)), this._dur || (this._zTime = -B), this;
|
|
732
732
|
}, t.play = function(i, r) {
|
|
733
733
|
return i != null && this.seek(i, r), this.reversed(!1).paused(!1);
|
|
734
734
|
}, t.reverse = function(i, r) {
|
|
@@ -738,21 +738,21 @@ var rn = function(t, e) {
|
|
|
738
738
|
}, t.resume = function() {
|
|
739
739
|
return this.paused(!1);
|
|
740
740
|
}, t.reversed = function(i) {
|
|
741
|
-
return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -
|
|
741
|
+
return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -B : 0)), this) : this._rts < 0;
|
|
742
742
|
}, t.invalidate = function() {
|
|
743
|
-
return this._initted = this._act = 0, this._zTime = -
|
|
743
|
+
return this._initted = this._act = 0, this._zTime = -B, this;
|
|
744
744
|
}, t.isActive = function() {
|
|
745
745
|
var i = this.parent || this._dp, r = this._start, n;
|
|
746
|
-
return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) -
|
|
746
|
+
return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) - B);
|
|
747
747
|
}, t.eventCallback = function(i, r, n) {
|
|
748
748
|
var s = this.vars;
|
|
749
749
|
return arguments.length > 1 ? (r ? (s[i] = r, n && (s[i + "Params"] = n), i === "onUpdate" && (this._onUpdate = r)) : delete s[i], this) : s[i];
|
|
750
750
|
}, t.then = function(i) {
|
|
751
751
|
var r = this;
|
|
752
752
|
return new Promise(function(n) {
|
|
753
|
-
var s =
|
|
754
|
-
var
|
|
755
|
-
r.then = null,
|
|
753
|
+
var s = U(i) ? i : Br, a = function() {
|
|
754
|
+
var l = r.then;
|
|
755
|
+
r.then = null, U(s) && (s = s(r)) && (s.then || s === r) && (r.then = l), n(s), r.then = l;
|
|
756
756
|
};
|
|
757
757
|
r._initted && r.totalProgress() === 1 && r._ts >= 0 || !r._tTime && r._ts < 0 ? a() : r._prom = a;
|
|
758
758
|
});
|
|
@@ -760,7 +760,7 @@ var rn = function(t, e) {
|
|
|
760
760
|
Ce(this);
|
|
761
761
|
}, o;
|
|
762
762
|
}();
|
|
763
|
-
pt(
|
|
763
|
+
pt(Fe.prototype, {
|
|
764
764
|
_time: 0,
|
|
765
765
|
_start: 0,
|
|
766
766
|
_end: 0,
|
|
@@ -775,7 +775,7 @@ pt(Le.prototype, {
|
|
|
775
775
|
_ts: 1,
|
|
776
776
|
_dp: 0,
|
|
777
777
|
ratio: 0,
|
|
778
|
-
_zTime: -
|
|
778
|
+
_zTime: -B,
|
|
779
779
|
_prom: 0,
|
|
780
780
|
_ps: !1,
|
|
781
781
|
_rts: 1
|
|
@@ -784,7 +784,7 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
784
784
|
Tr(t, o);
|
|
785
785
|
function t(i, r) {
|
|
786
786
|
var n;
|
|
787
|
-
return i === void 0 && (i = {}), n = o.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = it(i.sortChildren),
|
|
787
|
+
return i === void 0 && (i = {}), n = o.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = it(i.sortChildren), L && St(i.parent || L, Dt(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && Lr(Dt(n), i.scrollTrigger), n;
|
|
788
788
|
}
|
|
789
789
|
var e = t.prototype;
|
|
790
790
|
return e.to = function(r, n, s) {
|
|
@@ -794,26 +794,26 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
794
794
|
}, e.fromTo = function(r, n, s, a) {
|
|
795
795
|
return De(2, arguments, this), this;
|
|
796
796
|
}, e.set = function(r, n, s) {
|
|
797
|
-
return n.duration = 0, n.parent = this, Oe(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new
|
|
797
|
+
return n.duration = 0, n.parent = this, Oe(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new V(r, n, mt(this, s), 1), this;
|
|
798
798
|
}, e.call = function(r, n, s) {
|
|
799
|
-
return
|
|
800
|
-
}, e.staggerTo = function(r, n, s, a,
|
|
801
|
-
return s.duration = n, s.stagger = s.stagger || a, s.onComplete =
|
|
802
|
-
}, e.staggerFrom = function(r, n, s, a,
|
|
803
|
-
return s.runBackwards = 1, Oe(s).immediateRender = it(s.immediateRender), this.staggerTo(r, n, s, a,
|
|
804
|
-
}, e.staggerFromTo = function(r, n, s, a,
|
|
805
|
-
return a.startAt = s, Oe(a).immediateRender = it(a.immediateRender), this.staggerTo(r, n, a,
|
|
799
|
+
return St(this, V.delayedCall(0, r, n), s);
|
|
800
|
+
}, e.staggerTo = function(r, n, s, a, h, l, u) {
|
|
801
|
+
return s.duration = n, s.stagger = s.stagger || a, s.onComplete = l, s.onCompleteParams = u, s.parent = this, new V(r, s, mt(this, h)), this;
|
|
802
|
+
}, e.staggerFrom = function(r, n, s, a, h, l, u) {
|
|
803
|
+
return s.runBackwards = 1, Oe(s).immediateRender = it(s.immediateRender), this.staggerTo(r, n, s, a, h, l, u);
|
|
804
|
+
}, e.staggerFromTo = function(r, n, s, a, h, l, u, f) {
|
|
805
|
+
return a.startAt = s, Oe(a).immediateRender = it(a.immediateRender), this.staggerTo(r, n, a, h, l, u, f);
|
|
806
806
|
}, e.render = function(r, n, s) {
|
|
807
|
-
var a = this._time,
|
|
808
|
-
if (this !==
|
|
809
|
-
if (a !== this._time &&
|
|
810
|
-
if (T = this._yoyo, g =
|
|
807
|
+
var a = this._time, h = this._dirty ? this.totalDuration() : this._tDur, l = this._dur, u = r <= 0 ? 0 : H(r), f = this._zTime < 0 != r < 0 && (this._initted || !l), d, _, p, c, g, m, b, v, x, y, T, P;
|
|
808
|
+
if (this !== L && u > h && r >= 0 && (u = h), u !== this._tTime || s || f) {
|
|
809
|
+
if (a !== this._time && l && (u += this._time - a, r += this._time - a), d = u, x = this._start, v = this._ts, m = !v, f && (l || (a = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
|
|
810
|
+
if (T = this._yoyo, g = l + this._rDelay, this._repeat < -1 && r < 0)
|
|
811
811
|
return this.totalTime(g * 100 + r, n, s);
|
|
812
|
-
if (d = H(u % g), u ===
|
|
813
|
-
var
|
|
814
|
-
if (c < y && (
|
|
812
|
+
if (d = H(u % g), u === h ? (c = this._repeat, d = l) : (y = H(u / g), c = ~~y, c && c === y && (d = l, c--), d > l && (d = l)), y = ve(this._tTime, g), !a && this._tTime && y !== c && this._tTime - y * g - this._dur <= 0 && (y = c), T && c & 1 && (d = l - d, P = 1), c !== y && !this._lock) {
|
|
813
|
+
var A = T && y & 1, w = A === (T && c & 1);
|
|
814
|
+
if (c < y && (A = !A), a = A ? 0 : u % l ? l : u, this._lock = 1, this.render(a || (P ? 0 : H(c * g)), n, !l)._lock = 0, this._tTime = u, !n && this.parent && ct(this, "onRepeat"), this.vars.repeatRefresh && !P && (this.invalidate()._lock = 1), a && a !== this._time || m !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
|
|
815
815
|
return this;
|
|
816
|
-
if (
|
|
816
|
+
if (l = this._dur, h = this._tDur, w && (this._lock = 2, a = A ? l : -1e-4, this.render(a, !0), this.vars.repeatRefresh && !P && this.invalidate()), this._lock = 0, !this._ts && !m)
|
|
817
817
|
return this;
|
|
818
818
|
tn(this, P);
|
|
819
819
|
}
|
|
@@ -826,7 +826,7 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
826
826
|
if (_.parent !== this)
|
|
827
827
|
return this.render(r, n, s);
|
|
828
828
|
if (_.render(_._ts > 0 ? (d - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (d - _._start) * _._ts, n, s), d !== this._time || !this._ts && !m) {
|
|
829
|
-
b = 0, p && (u += this._zTime = -
|
|
829
|
+
b = 0, p && (u += this._zTime = -B);
|
|
830
830
|
break;
|
|
831
831
|
}
|
|
832
832
|
}
|
|
@@ -838,45 +838,45 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
838
838
|
if (p = _._prev, (_._act || C <= _._end) && _._ts && b !== _) {
|
|
839
839
|
if (_.parent !== this)
|
|
840
840
|
return this.render(r, n, s);
|
|
841
|
-
if (_.render(_._ts > 0 ? (C - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (C - _._start) * _._ts, n, s || q &&
|
|
842
|
-
b = 0, p && (u += this._zTime = C ? -
|
|
841
|
+
if (_.render(_._ts > 0 ? (C - _._start) * _._ts : (_._dirty ? _.totalDuration() : _._tDur) + (C - _._start) * _._ts, n, s || q && Wi(_)), d !== this._time || !this._ts && !m) {
|
|
842
|
+
b = 0, p && (u += this._zTime = C ? -B : B);
|
|
843
843
|
break;
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
846
|
_ = p;
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
|
-
if (b && !n && (this.pause(), b.render(d >= a ? 0 : -
|
|
849
|
+
if (b && !n && (this.pause(), b.render(d >= a ? 0 : -B)._zTime = d >= a ? 1 : -1, this._ts))
|
|
850
850
|
return this._start = x, ai(this), this.render(r, n, s);
|
|
851
|
-
this._onUpdate && !n && ct(this, "onUpdate", !0), (u ===
|
|
851
|
+
this._onUpdate && !n && ct(this, "onUpdate", !0), (u === h && this._tTime >= this.totalDuration() || !u && a) && (x === this._start || Math.abs(v) !== Math.abs(this._ts)) && (this._lock || ((r || !l) && (u === h && this._ts > 0 || !u && this._ts < 0) && Gt(this, 1), !n && !(r < 0 && !a) && (u || a || !h) && (ct(this, u === h && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(u < h && this.timeScale() > 0) && this._prom())));
|
|
852
852
|
}
|
|
853
853
|
return this;
|
|
854
854
|
}, e.add = function(r, n) {
|
|
855
855
|
var s = this;
|
|
856
|
-
if (
|
|
856
|
+
if (Rt(n) || (n = mt(this, n, r)), !(r instanceof Fe)) {
|
|
857
857
|
if (Q(r))
|
|
858
858
|
return r.forEach(function(a) {
|
|
859
859
|
return s.add(a, n);
|
|
860
860
|
}), this;
|
|
861
861
|
if (X(r))
|
|
862
862
|
return this.addLabel(r, n);
|
|
863
|
-
if (
|
|
864
|
-
r =
|
|
863
|
+
if (U(r))
|
|
864
|
+
r = V.delayedCall(0, r);
|
|
865
865
|
else
|
|
866
866
|
return this;
|
|
867
867
|
}
|
|
868
|
-
return this !== r ?
|
|
868
|
+
return this !== r ? St(this, r, n) : this;
|
|
869
869
|
}, e.getChildren = function(r, n, s, a) {
|
|
870
870
|
r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -vt);
|
|
871
|
-
for (var
|
|
872
|
-
|
|
873
|
-
return
|
|
871
|
+
for (var h = [], l = this._first; l; )
|
|
872
|
+
l._start >= a && (l instanceof V ? n && h.push(l) : (s && h.push(l), r && h.push.apply(h, l.getChildren(!0, n, s)))), l = l._next;
|
|
873
|
+
return h;
|
|
874
874
|
}, e.getById = function(r) {
|
|
875
875
|
for (var n = this.getChildren(1, 1, 1), s = n.length; s--; )
|
|
876
876
|
if (n[s].vars.id === r)
|
|
877
877
|
return n[s];
|
|
878
878
|
}, e.remove = function(r) {
|
|
879
|
-
return X(r) ? this.removeLabel(r) :
|
|
879
|
+
return X(r) ? this.removeLabel(r) : U(r) ? this.killTweensOf(r) : (r.parent === this && oi(this, r), r === this._recent && (this._recent = this._last), ne(this));
|
|
880
880
|
}, e.totalTime = function(r, n) {
|
|
881
881
|
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = H(ut.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), o.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
|
|
882
882
|
}, e.addLabel = function(r, n) {
|
|
@@ -884,32 +884,32 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
884
884
|
}, e.removeLabel = function(r) {
|
|
885
885
|
return delete this.labels[r], this;
|
|
886
886
|
}, e.addPause = function(r, n, s) {
|
|
887
|
-
var a =
|
|
888
|
-
return a.data = "isPause", this._hasPause = 1,
|
|
887
|
+
var a = V.delayedCall(0, n || Ie, s);
|
|
888
|
+
return a.data = "isPause", this._hasPause = 1, St(this, a, mt(this, r));
|
|
889
889
|
}, e.removePause = function(r) {
|
|
890
890
|
var n = this._first;
|
|
891
891
|
for (r = mt(this, r); n; )
|
|
892
892
|
n._start === r && n.data === "isPause" && Gt(n), n = n._next;
|
|
893
893
|
}, e.killTweensOf = function(r, n, s) {
|
|
894
|
-
for (var a = this.getTweensOf(r, s),
|
|
895
|
-
|
|
894
|
+
for (var a = this.getTweensOf(r, s), h = a.length; h--; )
|
|
895
|
+
Wt !== a[h] && a[h].kill(r, n);
|
|
896
896
|
return this;
|
|
897
897
|
}, e.getTweensOf = function(r, n) {
|
|
898
|
-
for (var s = [], a = yt(r),
|
|
899
|
-
|
|
898
|
+
for (var s = [], a = yt(r), h = this._first, l = Rt(n), u; h; )
|
|
899
|
+
h instanceof V ? ns(h._targets, a) && (l ? (!Wt || h._initted && h._ts) && h.globalTime(0) <= n && h.globalTime(h.totalDuration()) > n : !n || h.isActive()) && s.push(h) : (u = h.getTweensOf(a, n)).length && s.push.apply(s, u), h = h._next;
|
|
900
900
|
return s;
|
|
901
901
|
}, e.tweenTo = function(r, n) {
|
|
902
902
|
n = n || {};
|
|
903
|
-
var s = this, a = mt(s, r),
|
|
903
|
+
var s = this, a = mt(s, r), h = n, l = h.startAt, u = h.onStart, f = h.onStartParams, d = h.immediateRender, _, p = V.to(s, pt({
|
|
904
904
|
ease: n.ease || "none",
|
|
905
905
|
lazy: !1,
|
|
906
906
|
immediateRender: !1,
|
|
907
907
|
time: a,
|
|
908
908
|
overwrite: "auto",
|
|
909
|
-
duration: n.duration || Math.abs((a - (
|
|
909
|
+
duration: n.duration || Math.abs((a - (l && "time" in l ? l.time : s._time)) / s.timeScale()) || B,
|
|
910
910
|
onStart: function() {
|
|
911
911
|
if (s.pause(), !_) {
|
|
912
|
-
var g = n.duration || Math.abs((a - (
|
|
912
|
+
var g = n.duration || Math.abs((a - (l && "time" in l ? l.time : s._time)) / s.timeScale());
|
|
913
913
|
p._dur !== g && ye(p, g, 0, 1).render(p._time, !0, !0), _ = 1;
|
|
914
914
|
}
|
|
915
915
|
u && u.apply(p, f || []);
|
|
@@ -929,14 +929,14 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
929
929
|
}, e.previousLabel = function(r) {
|
|
930
930
|
return r === void 0 && (r = this._time), sr(this, mt(this, r), 1);
|
|
931
931
|
}, e.currentLabel = function(r) {
|
|
932
|
-
return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time +
|
|
932
|
+
return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + B);
|
|
933
933
|
}, e.shiftChildren = function(r, n, s) {
|
|
934
934
|
s === void 0 && (s = 0);
|
|
935
|
-
for (var a = this._first,
|
|
935
|
+
for (var a = this._first, h = this.labels, l; a; )
|
|
936
936
|
a._start >= s && (a._start += r, a._end += r), a = a._next;
|
|
937
937
|
if (n)
|
|
938
|
-
for (
|
|
939
|
-
l
|
|
938
|
+
for (l in h)
|
|
939
|
+
h[l] >= s && (h[l] += r);
|
|
940
940
|
return ne(this);
|
|
941
941
|
}, e.invalidate = function(r) {
|
|
942
942
|
var n = this._first;
|
|
@@ -949,19 +949,19 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
949
949
|
s = n._next, this.remove(n), n = s;
|
|
950
950
|
return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), ne(this);
|
|
951
951
|
}, e.totalDuration = function(r) {
|
|
952
|
-
var n = 0, s = this, a = s._last,
|
|
952
|
+
var n = 0, s = this, a = s._last, h = vt, l, u, f;
|
|
953
953
|
if (arguments.length)
|
|
954
954
|
return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -r : r));
|
|
955
955
|
if (s._dirty) {
|
|
956
956
|
for (f = s.parent; a; )
|
|
957
|
-
|
|
958
|
-
ye(s, s ===
|
|
957
|
+
l = a._prev, a._dirty && a.totalDuration(), u = a._start, u > h && s._sort && a._ts && !s._lock ? (s._lock = 1, St(s, a, u - a._delay, 1)._lock = 0) : h = u, u < 0 && a._ts && (n -= u, (!f && !s._dp || f && f.smoothChildTiming) && (s._start += u / s._ts, s._time -= u, s._tTime -= u), s.shiftChildren(-u, !1, -1 / 0), h = 0), a._end > n && a._ts && (n = a._end), a = l;
|
|
958
|
+
ye(s, s === L && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
|
|
959
959
|
}
|
|
960
960
|
return s._tDur;
|
|
961
961
|
}, t.updateRoot = function(r) {
|
|
962
|
-
if (
|
|
962
|
+
if (L._ts && (Ir(L, ii(r, L)), Er = ut.frame), ut.frame >= er) {
|
|
963
963
|
er += dt.autoSleep || 120;
|
|
964
|
-
var n =
|
|
964
|
+
var n = L._first;
|
|
965
965
|
if ((!n || !n._ts) && dt.autoSleep && ut._listeners.length < 2) {
|
|
966
966
|
for (; n && !n._ts; )
|
|
967
967
|
n = n._next;
|
|
@@ -969,55 +969,55 @@ var J = /* @__PURE__ */ function(o) {
|
|
|
969
969
|
}
|
|
970
970
|
}
|
|
971
971
|
}, t;
|
|
972
|
-
}(
|
|
972
|
+
}(Fe);
|
|
973
973
|
pt(J.prototype, {
|
|
974
974
|
_lock: 0,
|
|
975
975
|
_hasPause: 0,
|
|
976
976
|
_forcing: 0
|
|
977
977
|
});
|
|
978
978
|
var Cs = function(t, e, i, r, n, s, a) {
|
|
979
|
-
var
|
|
980
|
-
for (
|
|
981
|
-
p = f[0], c = r.substring(
|
|
982
|
-
_next:
|
|
979
|
+
var h = new nt(this._pt, t, e, 0, 1, hn, null, n), l = 0, u = 0, f, d, _, p, c, g, m, b;
|
|
980
|
+
for (h.b = i, h.e = r, i += "", r += "", (m = ~r.indexOf("random(")) && (r = ze(r)), s && (b = [i, r], s(b, t, e), i = b[0], r = b[1]), d = i.match(hi) || []; f = hi.exec(r); )
|
|
981
|
+
p = f[0], c = r.substring(l, f.index), _ ? _ = (_ + 1) % 5 : c.substr(-5) === "rgba(" && (_ = 1), p !== d[u++] && (g = parseFloat(d[u - 1]) || 0, h._pt = {
|
|
982
|
+
_next: h._pt,
|
|
983
983
|
p: c || u === 1 ? c : ",",
|
|
984
984
|
//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.
|
|
985
985
|
s: g,
|
|
986
986
|
c: p.charAt(1) === "=" ? de(g, p) - g : parseFloat(p) - g,
|
|
987
987
|
m: _ && _ < 4 ? Math.round : 0
|
|
988
|
-
},
|
|
989
|
-
return
|
|
990
|
-
},
|
|
991
|
-
|
|
992
|
-
var f = t[e], d = i !== "get" ? i :
|
|
993
|
-
if (X(r) && (~r.indexOf("random(") && (r =
|
|
994
|
-
return !isNaN(d * r) && r !== "" ? (p = new nt(this._pt, t, e, +d || 0, r - (d || 0), typeof f == "boolean" ?
|
|
988
|
+
}, l = hi.lastIndex);
|
|
989
|
+
return h.c = l < r.length ? r.substring(l, r.length) : "", h.fp = a, (Cr.test(r) || m) && (h.e = 0), this._pt = h, h;
|
|
990
|
+
}, Vi = function(t, e, i, r, n, s, a, h, l, u) {
|
|
991
|
+
U(r) && (r = r(n || 0, t, s));
|
|
992
|
+
var f = t[e], d = i !== "get" ? i : U(f) ? l ? t[e.indexOf("set") || !U(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](l) : t[e]() : f, _ = U(f) ? l ? Es : an : Yi, p;
|
|
993
|
+
if (X(r) && (~r.indexOf("random(") && (r = ze(r)), r.charAt(1) === "=" && (p = de(d, r) + (K(d) || 0), (p || p === 0) && (r = p))), !u || d !== r || Ci)
|
|
994
|
+
return !isNaN(d * r) && r !== "" ? (p = new nt(this._pt, t, e, +d || 0, r - (d || 0), typeof f == "boolean" ? Is : ln, 0, _), l && (p.fp = l), a && p.modifier(a, this, t), this._pt = p) : (!f && !(e in t) && Ni(e, r), Cs.call(this, t, e, d, r, _, h || dt.stringFilter, l));
|
|
995
995
|
}, ks = function(t, e, i, r, n) {
|
|
996
|
-
if (
|
|
996
|
+
if (U(t) && (t = Me(t, n, e, i, r)), !Ot(t) || t.style && t.nodeType || Q(t) || Ar(t))
|
|
997
997
|
return X(t) ? Me(t, n, e, i, r) : t;
|
|
998
998
|
var s = {}, a;
|
|
999
999
|
for (a in t)
|
|
1000
1000
|
s[a] = Me(t[a], n, e, i, r);
|
|
1001
1001
|
return s;
|
|
1002
1002
|
}, nn = function(t, e, i, r, n, s) {
|
|
1003
|
-
var a,
|
|
1004
|
-
if (ht[t] && (a = new ht[t]()).init(n, a.rawVars ? e[t] : ks(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt =
|
|
1005
|
-
for (
|
|
1006
|
-
|
|
1003
|
+
var a, h, l, u;
|
|
1004
|
+
if (ht[t] && (a = new ht[t]()).init(n, a.rawVars ? e[t] : ks(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = h = new nt(i._pt, n, t, 0, 1, a.render, a, 0, a.priority), i !== fe))
|
|
1005
|
+
for (l = i._ptLookup[i._targets.indexOf(n)], u = a._props.length; u--; )
|
|
1006
|
+
l[a._props[u]] = h;
|
|
1007
1007
|
return a;
|
|
1008
|
-
},
|
|
1009
|
-
var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender,
|
|
1008
|
+
}, Wt, Ci, Hi = function o(t, e, i) {
|
|
1009
|
+
var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender, h = r.lazy, l = r.onUpdate, u = r.runBackwards, f = r.yoyoEase, d = r.keyframes, _ = r.autoRevert, p = t._dur, c = t._startAt, g = t._targets, m = t.parent, b = m && m.data === "nested" ? m.vars.targets : g, v = t._overwrite === "auto" && !Ii, x = t.timeline, y, T, P, A, w, C, M, O, E, Y, I, R, N;
|
|
1010
1010
|
if (x && (!d || !n) && (n = "none"), t._ease = se(n, be.ease), t._yEase = f ? Jr(se(f === !0 ? n : f, be.ease)) : 0, f && t._yoyo && !t._repeat && (f = t._yEase, t._yEase = t._ease, t._ease = f), t._from = !x && !!r.runBackwards, !x || d && !r.stagger) {
|
|
1011
|
-
if (O = g[0] ? re(g[0]).harness : 0,
|
|
1012
|
-
if (Gt(t._startAt =
|
|
1011
|
+
if (O = g[0] ? re(g[0]).harness : 0, R = O && r[O.prop], y = ei(r, Li), c && (c._zTime < 0 && c.progress(1), e < 0 && u && a && !_ ? c.render(-1, !0) : c.revert(u && p ? je : is), c._lazy = 0), s) {
|
|
1012
|
+
if (Gt(t._startAt = V.set(g, pt({
|
|
1013
1013
|
data: "isStart",
|
|
1014
1014
|
overwrite: !1,
|
|
1015
1015
|
parent: m,
|
|
1016
1016
|
immediateRender: !0,
|
|
1017
|
-
lazy: !c && it(
|
|
1017
|
+
lazy: !c && it(h),
|
|
1018
1018
|
startAt: null,
|
|
1019
1019
|
delay: 0,
|
|
1020
|
-
onUpdate:
|
|
1020
|
+
onUpdate: l && function() {
|
|
1021
1021
|
return ct(t, "onUpdate");
|
|
1022
1022
|
},
|
|
1023
1023
|
stagger: 0
|
|
@@ -1030,58 +1030,58 @@ var Cs = function(t, e, i, r, n, s, a) {
|
|
|
1030
1030
|
overwrite: !1,
|
|
1031
1031
|
data: "isFromStart",
|
|
1032
1032
|
//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.
|
|
1033
|
-
lazy: a && !c && it(
|
|
1033
|
+
lazy: a && !c && it(h),
|
|
1034
1034
|
immediateRender: a,
|
|
1035
1035
|
//zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)
|
|
1036
1036
|
stagger: 0,
|
|
1037
1037
|
parent: m
|
|
1038
1038
|
//ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
|
|
1039
|
-
}, y),
|
|
1040
|
-
o(t._startAt,
|
|
1039
|
+
}, y), R && (P[O.prop] = R), Gt(t._startAt = V.set(g, P)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (q ? t._startAt.revert(je) : t._startAt.render(-1, !0)), t._zTime = e, !a)
|
|
1040
|
+
o(t._startAt, B, B);
|
|
1041
1041
|
else if (!e)
|
|
1042
1042
|
return;
|
|
1043
1043
|
}
|
|
1044
|
-
for (t._pt = t._ptCache = 0,
|
|
1045
|
-
if (w = g[T], M = w._gsap ||
|
|
1046
|
-
Y[G] =
|
|
1047
|
-
}),
|
|
1044
|
+
for (t._pt = t._ptCache = 0, h = p && it(h) || h && !p, T = 0; T < g.length; T++) {
|
|
1045
|
+
if (w = g[T], M = w._gsap || Ui(g)[T]._gsap, t._ptLookup[T] = Y = {}, xi[M.id] && Yt.length && ti(), I = b === g ? T : b.indexOf(w), O && (E = new O()).init(w, R || y, t, I, b) !== !1 && (t._pt = A = new nt(t._pt, w, E.name, 0, 1, E.render, E, 0, E.priority), E._props.forEach(function(G) {
|
|
1046
|
+
Y[G] = A;
|
|
1047
|
+
}), E.priority && (C = 1)), !O || R)
|
|
1048
1048
|
for (P in y)
|
|
1049
|
-
ht[P] && (
|
|
1050
|
-
t._op && t._op[T] && t.kill(w, t._op[T]), v && t._pt && (
|
|
1049
|
+
ht[P] && (E = nn(P, y, t, I, w, b)) ? E.priority && (C = 1) : Y[P] = A = Vi.call(t, w, P, "get", y[P], I, b, 0, r.stringFilter);
|
|
1050
|
+
t._op && t._op[T] && t.kill(w, t._op[T]), v && t._pt && (Wt = t, L.killTweensOf(w, Y, t.globalTime(e)), N = !t.parent, Wt = 0), t._pt && h && (xi[M.id] = 1);
|
|
1051
1051
|
}
|
|
1052
1052
|
C && un(t), t._onInit && t._onInit(t);
|
|
1053
1053
|
}
|
|
1054
|
-
t._onUpdate =
|
|
1055
|
-
}, Os = function(t, e, i, r, n, s, a,
|
|
1056
|
-
var
|
|
1057
|
-
if (!
|
|
1058
|
-
for (
|
|
1054
|
+
t._onUpdate = l, t._initted = (!t._op || t._pt) && !N, d && e <= 0 && x.render(vt, !0, !0);
|
|
1055
|
+
}, Os = function(t, e, i, r, n, s, a, h) {
|
|
1056
|
+
var l = (t._pt && t._ptCache || (t._ptCache = {}))[e], u, f, d, _;
|
|
1057
|
+
if (!l)
|
|
1058
|
+
for (l = t._ptCache[e] = [], d = t._ptLookup, _ = t._targets.length; _--; ) {
|
|
1059
1059
|
if (u = d[_][e], u && u.d && u.d._pt)
|
|
1060
1060
|
for (u = u.d._pt; u && u.p !== e && u.fp !== e; )
|
|
1061
1061
|
u = u._next;
|
|
1062
1062
|
if (!u)
|
|
1063
|
-
return Ci = 1, t.vars[e] = "+=0", Hi(t, a), Ci = 0,
|
|
1064
|
-
|
|
1063
|
+
return Ci = 1, t.vars[e] = "+=0", Hi(t, a), Ci = 0, h ? Re(e + " not eligible for reset") : 1;
|
|
1064
|
+
l.push(u);
|
|
1065
1065
|
}
|
|
1066
|
-
for (_ =
|
|
1067
|
-
f =
|
|
1066
|
+
for (_ = l.length; _--; )
|
|
1067
|
+
f = l[_], u = f._pt || f, u.s = (r || r === 0) && !n ? r : u.s + (r || 0) + s * u.c, u.c = i - u.s, f.e && (f.e = W(i) + K(f.e)), f.b && (f.b = u.s + K(f.b));
|
|
1068
1068
|
}, Ds = function(t, e) {
|
|
1069
|
-
var i = t[0] ? re(t[0]).harness : 0, r = i && i.aliases, n, s, a,
|
|
1069
|
+
var i = t[0] ? re(t[0]).harness : 0, r = i && i.aliases, n, s, a, h;
|
|
1070
1070
|
if (!r)
|
|
1071
1071
|
return e;
|
|
1072
1072
|
n = me({}, e);
|
|
1073
1073
|
for (s in r)
|
|
1074
1074
|
if (s in n)
|
|
1075
|
-
for (
|
|
1076
|
-
n[
|
|
1075
|
+
for (h = r[s].split(","), a = h.length; a--; )
|
|
1076
|
+
n[h[a]] = n[s];
|
|
1077
1077
|
return n;
|
|
1078
1078
|
}, Ms = function(t, e, i, r) {
|
|
1079
1079
|
var n = e.ease || r || "power1.inOut", s, a;
|
|
1080
1080
|
if (Q(e))
|
|
1081
|
-
a = i[t] || (i[t] = []), e.forEach(function(
|
|
1081
|
+
a = i[t] || (i[t] = []), e.forEach(function(h, l) {
|
|
1082
1082
|
return a.push({
|
|
1083
|
-
t:
|
|
1084
|
-
v:
|
|
1083
|
+
t: l / (e.length - 1) * 100,
|
|
1084
|
+
v: h,
|
|
1085
1085
|
e: n
|
|
1086
1086
|
});
|
|
1087
1087
|
});
|
|
@@ -1093,111 +1093,111 @@ var Cs = function(t, e, i, r, n, s, a) {
|
|
|
1093
1093
|
e: n
|
|
1094
1094
|
});
|
|
1095
1095
|
}, Me = function(t, e, i, r, n) {
|
|
1096
|
-
return
|
|
1097
|
-
}, sn =
|
|
1096
|
+
return U(t) ? t.call(e, i, r, n) : X(t) && ~t.indexOf("random(") ? ze(t) : t;
|
|
1097
|
+
}, sn = $i + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", on = {};
|
|
1098
1098
|
rt(sn + ",id,stagger,delay,duration,paused,scrollTrigger", function(o) {
|
|
1099
1099
|
return on[o] = 1;
|
|
1100
1100
|
});
|
|
1101
|
-
var
|
|
1101
|
+
var V = /* @__PURE__ */ function(o) {
|
|
1102
1102
|
Tr(t, o);
|
|
1103
1103
|
function t(i, r, n, s) {
|
|
1104
1104
|
var a;
|
|
1105
1105
|
typeof r == "number" && (n.duration = r, r = n, n = null), a = o.call(this, s ? r : Oe(r)) || this;
|
|
1106
|
-
var
|
|
1107
|
-
if (a._targets = v.length ?
|
|
1106
|
+
var h = a.vars, l = h.duration, u = h.delay, f = h.immediateRender, d = h.stagger, _ = h.overwrite, p = h.keyframes, c = h.defaults, g = h.scrollTrigger, m = h.yoyoEase, b = r.parent || L, v = (Q(i) || Ar(i) ? Rt(i[0]) : "length" in r) ? [i] : yt(i), x, y, T, P, A, w, C, M;
|
|
1107
|
+
if (a._targets = v.length ? Ui(v) : Re("GSAP target " + i + " not found. https://gsap.com", !dt.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = _, p || d || He(l) || He(u)) {
|
|
1108
1108
|
if (r = a.vars, x = a.timeline = new J({
|
|
1109
1109
|
data: "nested",
|
|
1110
1110
|
defaults: c || {},
|
|
1111
1111
|
targets: b && b.data === "nested" ? b.vars.targets : v
|
|
1112
|
-
}), x.kill(), x.parent = x._dp = Dt(a), x._start = 0, d || He(
|
|
1113
|
-
if (P = v.length, C = d &&
|
|
1114
|
-
for (
|
|
1115
|
-
~sn.indexOf(
|
|
1112
|
+
}), x.kill(), x.parent = x._dp = Dt(a), x._start = 0, d || He(l) || He(u)) {
|
|
1113
|
+
if (P = v.length, C = d && Vr(d), Ot(d))
|
|
1114
|
+
for (A in d)
|
|
1115
|
+
~sn.indexOf(A) && (M || (M = {}), M[A] = d[A]);
|
|
1116
1116
|
for (y = 0; y < P; y++)
|
|
1117
|
-
T = ei(r, on), T.stagger = 0, m && (T.yoyoEase = m), M && me(T, M), w = v[y], T.duration = +Me(
|
|
1118
|
-
x.duration() ?
|
|
1117
|
+
T = ei(r, on), T.stagger = 0, m && (T.yoyoEase = m), M && me(T, M), w = v[y], T.duration = +Me(l, Dt(a), y, w, v), T.delay = (+Me(u, Dt(a), y, w, v) || 0) - a._delay, !d && P === 1 && T.delay && (a._delay = u = T.delay, a._start += u, T.delay = 0), x.to(w, T, C ? C(y, w, v) : 0), x._ease = D.none;
|
|
1118
|
+
x.duration() ? l = u = 0 : a.timeline = 0;
|
|
1119
1119
|
} else if (p) {
|
|
1120
1120
|
Oe(pt(x.vars.defaults, {
|
|
1121
1121
|
ease: "none"
|
|
1122
1122
|
})), x._ease = se(p.ease || r.ease || "none");
|
|
1123
|
-
var O = 0,
|
|
1123
|
+
var O = 0, E, Y, I;
|
|
1124
1124
|
if (Q(p))
|
|
1125
|
-
p.forEach(function(
|
|
1126
|
-
return x.to(v,
|
|
1125
|
+
p.forEach(function(R) {
|
|
1126
|
+
return x.to(v, R, ">");
|
|
1127
1127
|
}), x.duration();
|
|
1128
1128
|
else {
|
|
1129
1129
|
T = {};
|
|
1130
|
-
for (
|
|
1131
|
-
|
|
1132
|
-
for (
|
|
1133
|
-
for (
|
|
1134
|
-
return
|
|
1135
|
-
}), O = 0, y = 0; y <
|
|
1136
|
-
Y =
|
|
1130
|
+
for (A in p)
|
|
1131
|
+
A === "ease" || A === "easeEach" || Ms(A, p[A], T, p.easeEach);
|
|
1132
|
+
for (A in T)
|
|
1133
|
+
for (E = T[A].sort(function(R, N) {
|
|
1134
|
+
return R.t - N.t;
|
|
1135
|
+
}), O = 0, y = 0; y < E.length; y++)
|
|
1136
|
+
Y = E[y], I = {
|
|
1137
1137
|
ease: Y.e,
|
|
1138
|
-
duration: (Y.t - (y ?
|
|
1139
|
-
},
|
|
1140
|
-
x.duration() <
|
|
1141
|
-
duration:
|
|
1138
|
+
duration: (Y.t - (y ? E[y - 1].t : 0)) / 100 * l
|
|
1139
|
+
}, I[A] = Y.v, x.to(v, I, O), O += I.duration;
|
|
1140
|
+
x.duration() < l && x.to({}, {
|
|
1141
|
+
duration: l - x.duration()
|
|
1142
1142
|
});
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
|
-
|
|
1145
|
+
l || a.duration(l = x.duration());
|
|
1146
1146
|
} else
|
|
1147
1147
|
a.timeline = 0;
|
|
1148
|
-
return _ === !0 && !
|
|
1148
|
+
return _ === !0 && !Ii && (Wt = Dt(a), L.killTweensOf(v), Wt = 0), St(b, Dt(a), n), r.reversed && a.reverse(), r.paused && a.paused(!0), (f || !l && !p && a._start === H(b._time) && it(f) && ls(Dt(a)) && b.data !== "nested") && (a._tTime = -B, a.render(Math.max(0, -u) || 0)), g && Lr(Dt(a), g), a;
|
|
1149
1149
|
}
|
|
1150
1150
|
var e = t.prototype;
|
|
1151
1151
|
return e.render = function(r, n, s) {
|
|
1152
|
-
var a = this._time,
|
|
1153
|
-
if (!
|
|
1152
|
+
var a = this._time, h = this._tDur, l = this._dur, u = r < 0, f = r > h - B && !u ? h : r < B ? 0 : r, d, _, p, c, g, m, b, v, x;
|
|
1153
|
+
if (!l)
|
|
1154
1154
|
us(this, r, n, s);
|
|
1155
1155
|
else if (f !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== u || this._lazy) {
|
|
1156
1156
|
if (d = f, v = this.timeline, this._repeat) {
|
|
1157
|
-
if (c =
|
|
1157
|
+
if (c = l + this._rDelay, this._repeat < -1 && u)
|
|
1158
1158
|
return this.totalTime(c * 100 + r, n, s);
|
|
1159
|
-
if (d = H(f % c), f ===
|
|
1159
|
+
if (d = H(f % c), f === h ? (p = this._repeat, d = l) : (g = H(f / c), p = ~~g, p && p === g ? (d = l, p--) : d > l && (d = l)), m = this._yoyo && p & 1, m && (x = this._yEase, d = l - d), g = ve(this._tTime, c), d === a && !s && this._initted && p === g)
|
|
1160
1160
|
return this._tTime = f, this;
|
|
1161
1161
|
p !== g && (v && this._yEase && tn(v, m), this.vars.repeatRefresh && !m && !this._lock && d !== c && this._initted && (this._lock = s = 1, this.render(H(c * p), !0).invalidate()._lock = 0));
|
|
1162
1162
|
}
|
|
1163
1163
|
if (!this._initted) {
|
|
1164
|
-
if (
|
|
1164
|
+
if ($r(this, u ? r : d, s, n, f))
|
|
1165
1165
|
return this._tTime = 0, this;
|
|
1166
1166
|
if (a !== this._time && !(s && this.vars.repeatRefresh && p !== g))
|
|
1167
1167
|
return this;
|
|
1168
|
-
if (
|
|
1168
|
+
if (l !== this._dur)
|
|
1169
1169
|
return this.render(r, n, s);
|
|
1170
1170
|
}
|
|
1171
|
-
if (this._tTime = f, this._time = d, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = b = (x || this._ease)(d /
|
|
1171
|
+
if (this._tTime = f, this._time = d, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = b = (x || this._ease)(d / l), this._from && (this.ratio = b = 1 - b), !a && f && !n && !g && (ct(this, "onStart"), this._tTime !== f))
|
|
1172
1172
|
return this;
|
|
1173
1173
|
for (_ = this._pt; _; )
|
|
1174
1174
|
_.r(b, _.d), _ = _._next;
|
|
1175
|
-
v && v.render(r < 0 ? r : v._dur * v._ease(d / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (u && wi(this, r, n, s), ct(this, "onUpdate")), this._repeat && p !== g && this.vars.onRepeat && !n && this.parent && ct(this, "onRepeat"), (f === this._tDur || !f) && this._tTime === f && (u && !this._onUpdate && wi(this, r, !0, !0), (r || !
|
|
1175
|
+
v && v.render(r < 0 ? r : v._dur * v._ease(d / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (u && wi(this, r, n, s), ct(this, "onUpdate")), this._repeat && p !== g && this.vars.onRepeat && !n && this.parent && ct(this, "onRepeat"), (f === this._tDur || !f) && this._tTime === f && (u && !this._onUpdate && wi(this, r, !0, !0), (r || !l) && (f === this._tDur && this._ts > 0 || !f && this._ts < 0) && Gt(this, 1), !n && !(u && !a) && (f || a || m) && (ct(this, f === h ? "onComplete" : "onReverseComplete", !0), this._prom && !(f < h && this.timeScale() > 0) && this._prom()));
|
|
1176
1176
|
}
|
|
1177
1177
|
return this;
|
|
1178
1178
|
}, e.targets = function() {
|
|
1179
1179
|
return this._targets;
|
|
1180
1180
|
}, e.invalidate = function(r) {
|
|
1181
1181
|
return (!r || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(r), o.prototype.invalidate.call(this, r);
|
|
1182
|
-
}, e.resetTo = function(r, n, s, a,
|
|
1183
|
-
|
|
1184
|
-
var
|
|
1185
|
-
return this._initted || Hi(this,
|
|
1182
|
+
}, e.resetTo = function(r, n, s, a, h) {
|
|
1183
|
+
Be || ut.wake(), this._ts || this.play();
|
|
1184
|
+
var l = Math.min(this._dur, (this._dp._time - this._start) * this._ts), u;
|
|
1185
|
+
return this._initted || Hi(this, l), u = this._ease(l / this._dur), Os(this, r, n, s, a, u, l, h) ? this.resetTo(r, n, s, a, 1) : (li(this, 0), this.parent || Fr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
|
|
1186
1186
|
}, e.kill = function(r, n) {
|
|
1187
1187
|
if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
|
|
1188
1188
|
return this._lazy = this._pt = 0, this.parent ? Ce(this) : this.scrollTrigger && this.scrollTrigger.kill(!!q), this;
|
|
1189
1189
|
if (this.timeline) {
|
|
1190
1190
|
var s = this.timeline.totalDuration();
|
|
1191
|
-
return this.timeline.killTweensOf(r, n,
|
|
1191
|
+
return this.timeline.killTweensOf(r, n, Wt && Wt.vars.overwrite !== !0)._first || Ce(this), this.parent && s !== this.timeline.totalDuration() && ye(this, this._dur * this.timeline._tDur / s, 0, 1), this;
|
|
1192
1192
|
}
|
|
1193
|
-
var a = this._targets,
|
|
1194
|
-
if ((!n || n === "all") && os(a,
|
|
1193
|
+
var a = this._targets, h = r ? yt(r) : a, l = this._ptLookup, u = this._pt, f, d, _, p, c, g, m;
|
|
1194
|
+
if ((!n || n === "all") && os(a, h))
|
|
1195
1195
|
return n === "all" && (this._pt = 0), Ce(this);
|
|
1196
1196
|
for (f = this._op = this._op || [], n !== "all" && (X(n) && (c = {}, rt(n, function(b) {
|
|
1197
1197
|
return c[b] = 1;
|
|
1198
1198
|
}), n = c), n = Ds(a, n)), m = a.length; m--; )
|
|
1199
|
-
if (~
|
|
1200
|
-
d =
|
|
1199
|
+
if (~h.indexOf(a[m])) {
|
|
1200
|
+
d = l[m], n === "all" ? (f[m] = n, p = d, _ = {}) : (_ = f[m] = f[m] || {}, p = n);
|
|
1201
1201
|
for (c in p)
|
|
1202
1202
|
g = d && d[c], g && ((!("kill" in g.d) || g.d.kill(c) === !0) && oi(this, g, "_pt"), delete d[c]), _ !== "all" && (_[c] = 1);
|
|
1203
1203
|
}
|
|
@@ -1223,10 +1223,10 @@ var U = /* @__PURE__ */ function(o) {
|
|
|
1223
1223
|
}, t.set = function(r, n) {
|
|
1224
1224
|
return n.duration = 0, n.repeatDelay || (n.repeat = 0), new t(r, n);
|
|
1225
1225
|
}, t.killTweensOf = function(r, n, s) {
|
|
1226
|
-
return
|
|
1226
|
+
return L.killTweensOf(r, n, s);
|
|
1227
1227
|
}, t;
|
|
1228
|
-
}(
|
|
1229
|
-
pt(
|
|
1228
|
+
}(Fe);
|
|
1229
|
+
pt(V.prototype, {
|
|
1230
1230
|
_targets: [],
|
|
1231
1231
|
_lazy: 0,
|
|
1232
1232
|
_startAt: 0,
|
|
@@ -1234,7 +1234,7 @@ pt(U.prototype, {
|
|
|
1234
1234
|
_onInit: 0
|
|
1235
1235
|
});
|
|
1236
1236
|
rt("staggerTo,staggerFrom,staggerFromTo", function(o) {
|
|
1237
|
-
|
|
1237
|
+
V[o] = function() {
|
|
1238
1238
|
var t = new J(), e = Pi.call(arguments, 0);
|
|
1239
1239
|
return e.splice(o === "staggerFromTo" ? 5 : 4, 0, 0), t[o].apply(t, e);
|
|
1240
1240
|
};
|
|
@@ -1243,15 +1243,15 @@ var Yi = function(t, e, i) {
|
|
|
1243
1243
|
return t[e] = i;
|
|
1244
1244
|
}, an = function(t, e, i) {
|
|
1245
1245
|
return t[e](i);
|
|
1246
|
-
},
|
|
1246
|
+
}, Es = function(t, e, i, r) {
|
|
1247
1247
|
return t[e](r.fp, i);
|
|
1248
|
-
},
|
|
1248
|
+
}, Rs = function(t, e, i) {
|
|
1249
1249
|
return t.setAttribute(e, i);
|
|
1250
1250
|
}, Xi = function(t, e) {
|
|
1251
|
-
return
|
|
1251
|
+
return U(t[e]) ? an : zi(t[e]) && t.setAttribute ? Rs : Yi;
|
|
1252
1252
|
}, ln = function(t, e) {
|
|
1253
1253
|
return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
|
|
1254
|
-
},
|
|
1254
|
+
}, Is = function(t, e) {
|
|
1255
1255
|
return e.set(e.t, e.p, !!(e.s + e.c * t), e);
|
|
1256
1256
|
}, hn = function(t, e) {
|
|
1257
1257
|
var i = e._pt, r = "";
|
|
@@ -1268,14 +1268,14 @@ var Yi = function(t, e, i) {
|
|
|
1268
1268
|
}, qi = function(t, e) {
|
|
1269
1269
|
for (var i = e._pt; i; )
|
|
1270
1270
|
i.r(t, i.d), i = i._next;
|
|
1271
|
-
},
|
|
1271
|
+
}, zs = function(t, e, i, r) {
|
|
1272
1272
|
for (var n = this._pt, s; n; )
|
|
1273
1273
|
s = n._next, n.p === r && n.modifier(t, e, i), n = s;
|
|
1274
|
-
},
|
|
1274
|
+
}, Bs = function(t) {
|
|
1275
1275
|
for (var e = this._pt, i, r; e; )
|
|
1276
1276
|
r = e._next, e.p === t && !e.op || e.op === t ? oi(this, e, "_pt") : e.dep || (i = 1), e = r;
|
|
1277
1277
|
return !i;
|
|
1278
|
-
},
|
|
1278
|
+
}, Fs = function(t, e, i, r) {
|
|
1279
1279
|
r.mSet(t, e, r.m.call(r.tween, i, r.mt), r);
|
|
1280
1280
|
}, un = function(t) {
|
|
1281
1281
|
for (var e = t._pt, i, r, n, s; e; ) {
|
|
@@ -1285,20 +1285,20 @@ var Yi = function(t, e, i) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
t._pt = n;
|
|
1287
1287
|
}, nt = /* @__PURE__ */ function() {
|
|
1288
|
-
function o(e, i, r, n, s, a,
|
|
1289
|
-
this.t = i, this.s = n, this.c = s, this.p = r, this.r = a || ln, this.d =
|
|
1288
|
+
function o(e, i, r, n, s, a, h, l, u) {
|
|
1289
|
+
this.t = i, this.s = n, this.c = s, this.p = r, this.r = a || ln, this.d = h || this, this.set = l || Yi, this.pr = u || 0, this._next = e, e && (e._prev = this);
|
|
1290
1290
|
}
|
|
1291
1291
|
var t = o.prototype;
|
|
1292
1292
|
return t.modifier = function(i, r, n) {
|
|
1293
|
-
this.mSet = this.mSet || this.set, this.set =
|
|
1293
|
+
this.mSet = this.mSet || this.set, this.set = Fs, this.m = i, this.mt = n, this.tween = r;
|
|
1294
1294
|
}, o;
|
|
1295
1295
|
}();
|
|
1296
|
-
rt(
|
|
1297
|
-
return
|
|
1296
|
+
rt($i + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(o) {
|
|
1297
|
+
return Li[o] = 1;
|
|
1298
1298
|
});
|
|
1299
|
-
_t.TweenMax = _t.TweenLite =
|
|
1299
|
+
_t.TweenMax = _t.TweenLite = V;
|
|
1300
1300
|
_t.TimelineLite = _t.TimelineMax = J;
|
|
1301
|
-
|
|
1301
|
+
L = new J({
|
|
1302
1302
|
sortChildren: !1,
|
|
1303
1303
|
defaults: be,
|
|
1304
1304
|
autoRemoveChildren: !0,
|
|
@@ -1306,17 +1306,17 @@ B = new J({
|
|
|
1306
1306
|
smoothChildTiming: !0
|
|
1307
1307
|
});
|
|
1308
1308
|
dt.stringFilter = Zr;
|
|
1309
|
-
var oe = [], Ze = {},
|
|
1310
|
-
return (Ze[t] ||
|
|
1309
|
+
var oe = [], Ze = {}, Ns = [], ar = 0, Ls = 0, _i = function(t) {
|
|
1310
|
+
return (Ze[t] || Ns).map(function(e) {
|
|
1311
1311
|
return e();
|
|
1312
1312
|
});
|
|
1313
1313
|
}, ki = function() {
|
|
1314
1314
|
var t = Date.now(), e = [];
|
|
1315
1315
|
t - ar > 2 && (_i("matchMediaInit"), oe.forEach(function(i) {
|
|
1316
|
-
var r = i.queries, n = i.conditions, s, a,
|
|
1316
|
+
var r = i.queries, n = i.conditions, s, a, h, l;
|
|
1317
1317
|
for (a in r)
|
|
1318
|
-
s =
|
|
1319
|
-
|
|
1318
|
+
s = At.matchMedia(r[a]).matches, s && (h = 1), s !== n[a] && (n[a] = s, l = 1);
|
|
1319
|
+
l && (i.revert(), h && e.push(i));
|
|
1320
1320
|
}), _i("matchMediaRevert"), e.forEach(function(i) {
|
|
1321
1321
|
return i.onMatch(i, function(r) {
|
|
1322
1322
|
return i.add(null, r);
|
|
@@ -1324,33 +1324,33 @@ var oe = [], Ze = {}, $s = [], ar = 0, Bs = 0, _i = function(t) {
|
|
|
1324
1324
|
}), ar = t, _i("matchMedia"));
|
|
1325
1325
|
}, cn = /* @__PURE__ */ function() {
|
|
1326
1326
|
function o(e, i) {
|
|
1327
|
-
this.selector = i &&
|
|
1327
|
+
this.selector = i && Ai(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Ls++, e && this.add(e);
|
|
1328
1328
|
}
|
|
1329
1329
|
var t = o.prototype;
|
|
1330
1330
|
return t.add = function(i, r, n) {
|
|
1331
|
-
|
|
1331
|
+
U(i) && (n = r, r = i, i = U);
|
|
1332
1332
|
var s = this, a = function() {
|
|
1333
|
-
var
|
|
1334
|
-
return
|
|
1333
|
+
var l = F, u = s.selector, f;
|
|
1334
|
+
return l && l !== s && l.data.push(s), n && (s.selector = Ai(n)), F = s, f = r.apply(s, arguments), U(f) && s._r.push(f), F = l, s.selector = u, s.isReverted = !1, f;
|
|
1335
1335
|
};
|
|
1336
|
-
return s.last = a, i ===
|
|
1337
|
-
return s.add(null,
|
|
1336
|
+
return s.last = a, i === U ? a(s, function(h) {
|
|
1337
|
+
return s.add(null, h);
|
|
1338
1338
|
}) : i ? s[i] = a : a;
|
|
1339
1339
|
}, t.ignore = function(i) {
|
|
1340
|
-
var r =
|
|
1341
|
-
|
|
1340
|
+
var r = F;
|
|
1341
|
+
F = null, i(this), F = r;
|
|
1342
1342
|
}, t.getTweens = function() {
|
|
1343
1343
|
var i = [];
|
|
1344
1344
|
return this.data.forEach(function(r) {
|
|
1345
|
-
return r instanceof o ? i.push.apply(i, r.getTweens()) : r instanceof
|
|
1345
|
+
return r instanceof o ? i.push.apply(i, r.getTweens()) : r instanceof V && !(r.parent && r.parent.data === "nested") && i.push(r);
|
|
1346
1346
|
}), i;
|
|
1347
1347
|
}, t.clear = function() {
|
|
1348
1348
|
this._r.length = this.data.length = 0;
|
|
1349
1349
|
}, t.kill = function(i, r) {
|
|
1350
1350
|
var n = this;
|
|
1351
1351
|
if (i ? function() {
|
|
1352
|
-
for (var a = n.getTweens(),
|
|
1353
|
-
|
|
1352
|
+
for (var a = n.getTweens(), h = n.data.length, l; h--; )
|
|
1353
|
+
l = n.data[h], l.data === "isFlip" && (l.revert(), l.getChildren(!0, !0, !1).forEach(function(u) {
|
|
1354
1354
|
return a.splice(a.indexOf(u), 1);
|
|
1355
1355
|
}));
|
|
1356
1356
|
for (a.map(function(u) {
|
|
@@ -1362,8 +1362,8 @@ var oe = [], Ze = {}, $s = [], ar = 0, Bs = 0, _i = function(t) {
|
|
|
1362
1362
|
return f.g - u.g || -1 / 0;
|
|
1363
1363
|
}).forEach(function(u) {
|
|
1364
1364
|
return u.t.revert(i);
|
|
1365
|
-
}),
|
|
1366
|
-
|
|
1365
|
+
}), h = n.data.length; h--; )
|
|
1366
|
+
l = n.data[h], l instanceof J ? l.data !== "nested" && (l.scrollTrigger && l.scrollTrigger.revert(), l.kill()) : !(l instanceof V) && l.revert && l.revert(i);
|
|
1367
1367
|
n._r.forEach(function(u) {
|
|
1368
1368
|
return u(i, n);
|
|
1369
1369
|
}), n.isReverted = !0;
|
|
@@ -1375,19 +1375,19 @@ var oe = [], Ze = {}, $s = [], ar = 0, Bs = 0, _i = function(t) {
|
|
|
1375
1375
|
}, t.revert = function(i) {
|
|
1376
1376
|
this.kill(i || {});
|
|
1377
1377
|
}, o;
|
|
1378
|
-
}(),
|
|
1378
|
+
}(), $s = /* @__PURE__ */ function() {
|
|
1379
1379
|
function o(e) {
|
|
1380
|
-
this.contexts = [], this.scope = e,
|
|
1380
|
+
this.contexts = [], this.scope = e, F && F.data.push(this);
|
|
1381
1381
|
}
|
|
1382
1382
|
var t = o.prototype;
|
|
1383
1383
|
return t.add = function(i, r, n) {
|
|
1384
1384
|
Ot(i) || (i = {
|
|
1385
1385
|
matches: i
|
|
1386
1386
|
});
|
|
1387
|
-
var s = new cn(0, n || this.scope), a = s.conditions = {},
|
|
1388
|
-
|
|
1389
|
-
for (
|
|
1390
|
-
|
|
1387
|
+
var s = new cn(0, n || this.scope), a = s.conditions = {}, h, l, u;
|
|
1388
|
+
F && !s.selector && (s.selector = F.selector), this.contexts.push(s), r = s.add("onMatch", r), s.queries = i;
|
|
1389
|
+
for (l in i)
|
|
1390
|
+
l === "all" ? u = 1 : (h = At.matchMedia(i[l]), h && (oe.indexOf(s) < 0 && oe.push(s), (a[l] = h.matches) && (u = 1), h.addListener ? h.addListener(ki) : h.addEventListener("change", ki)));
|
|
1391
1391
|
return u && r(s, function(f) {
|
|
1392
1392
|
return s.add(null, f);
|
|
1393
1393
|
}), this;
|
|
@@ -1410,13 +1410,13 @@ var oe = [], Ze = {}, $s = [], ar = 0, Bs = 0, _i = function(t) {
|
|
|
1410
1410
|
return new J(t);
|
|
1411
1411
|
},
|
|
1412
1412
|
getTweensOf: function(t, e) {
|
|
1413
|
-
return
|
|
1413
|
+
return L.getTweensOf(t, e);
|
|
1414
1414
|
},
|
|
1415
1415
|
getProperty: function(t, e, i, r) {
|
|
1416
1416
|
X(t) && (t = yt(t)[0]);
|
|
1417
|
-
var n = re(t || {}).get, s = i ?
|
|
1418
|
-
return i === "native" && (i = ""), t && (e ? s((ht[e] && ht[e].get || n)(t, e, i, r)) : function(a,
|
|
1419
|
-
return s((ht[a] && ht[a].get || n)(t, a,
|
|
1417
|
+
var n = re(t || {}).get, s = i ? Br : zr;
|
|
1418
|
+
return i === "native" && (i = ""), t && (e ? s((ht[e] && ht[e].get || n)(t, e, i, r)) : function(a, h, l) {
|
|
1419
|
+
return s((ht[a] && ht[a].get || n)(t, a, h, l));
|
|
1420
1420
|
});
|
|
1421
1421
|
},
|
|
1422
1422
|
quickSetter: function(t, e, i) {
|
|
@@ -1430,22 +1430,22 @@ var oe = [], Ze = {}, $s = [], ar = 0, Bs = 0, _i = function(t) {
|
|
|
1430
1430
|
};
|
|
1431
1431
|
}
|
|
1432
1432
|
t = t[0] || {};
|
|
1433
|
-
var s = ht[e], a = re(t),
|
|
1433
|
+
var s = ht[e], a = re(t), h = a.harness && (a.harness.aliases || {})[e] || e, l = s ? function(u) {
|
|
1434
1434
|
var f = new s();
|
|
1435
1435
|
fe._pt = 0, f.init(t, i ? u + i : u, fe, 0, [t]), f.render(1, f), fe._pt && qi(1, fe);
|
|
1436
|
-
} : a.set(t,
|
|
1437
|
-
return s ?
|
|
1438
|
-
return
|
|
1436
|
+
} : a.set(t, h);
|
|
1437
|
+
return s ? l : function(u) {
|
|
1438
|
+
return l(t, h, i ? u + i : u, a, 1);
|
|
1439
1439
|
};
|
|
1440
1440
|
},
|
|
1441
1441
|
quickTo: function(t, e, i) {
|
|
1442
|
-
var r, n = ot.to(t, pt((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(
|
|
1443
|
-
return n.resetTo(e,
|
|
1442
|
+
var r, n = ot.to(t, pt((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(h, l, u) {
|
|
1443
|
+
return n.resetTo(e, h, l, u);
|
|
1444
1444
|
};
|
|
1445
1445
|
return s.tween = n, s;
|
|
1446
1446
|
},
|
|
1447
1447
|
isTweening: function(t) {
|
|
1448
|
-
return
|
|
1448
|
+
return L.getTweensOf(t, !0).length > 0;
|
|
1449
1449
|
},
|
|
1450
1450
|
defaults: function(t) {
|
|
1451
1451
|
return t && t.ease && (t.ease = se(t.ease, be.ease)), ir(be, t || {});
|
|
@@ -1456,11 +1456,11 @@ var oe = [], Ze = {}, $s = [], ar = 0, Bs = 0, _i = function(t) {
|
|
|
1456
1456
|
registerEffect: function(t) {
|
|
1457
1457
|
var e = t.name, i = t.effect, r = t.plugins, n = t.defaults, s = t.extendTimeline;
|
|
1458
1458
|
(r || "").split(",").forEach(function(a) {
|
|
1459
|
-
return a && !ht[a] && !_t[a] &&
|
|
1460
|
-
}), ui[e] = function(a,
|
|
1461
|
-
return i(yt(a), pt(
|
|
1462
|
-
}, s && (J.prototype[e] = function(a,
|
|
1463
|
-
return this.add(ui[e](a, Ot(
|
|
1459
|
+
return a && !ht[a] && !_t[a] && Re(e + " effect requires " + a + " plugin.");
|
|
1460
|
+
}), ui[e] = function(a, h, l) {
|
|
1461
|
+
return i(yt(a), pt(h || {}, n), l);
|
|
1462
|
+
}, s && (J.prototype[e] = function(a, h, l) {
|
|
1463
|
+
return this.add(ui[e](a, Ot(h) ? h : (l = h) && {}, this), l);
|
|
1464
1464
|
});
|
|
1465
1465
|
},
|
|
1466
1466
|
registerEase: function(t, e) {
|
|
@@ -1470,20 +1470,20 @@ var oe = [], Ze = {}, $s = [], ar = 0, Bs = 0, _i = function(t) {
|
|
|
1470
1470
|
return arguments.length ? se(t, e) : D;
|
|
1471
1471
|
},
|
|
1472
1472
|
getById: function(t) {
|
|
1473
|
-
return
|
|
1473
|
+
return L.getById(t);
|
|
1474
1474
|
},
|
|
1475
1475
|
exportRoot: function(t, e) {
|
|
1476
1476
|
t === void 0 && (t = {});
|
|
1477
1477
|
var i = new J(t), r, n;
|
|
1478
|
-
for (i.smoothChildTiming = it(t.smoothChildTiming),
|
|
1479
|
-
n = r._next, (e || !(!r._dur && r instanceof
|
|
1480
|
-
return
|
|
1478
|
+
for (i.smoothChildTiming = it(t.smoothChildTiming), L.remove(i), i._dp = 0, i._time = i._tTime = L._time, r = L._first; r; )
|
|
1479
|
+
n = r._next, (e || !(!r._dur && r instanceof V && r.vars.onComplete === r._targets[0])) && St(i, r, r._start - r._delay), r = n;
|
|
1480
|
+
return St(L, i, 0), i;
|
|
1481
1481
|
},
|
|
1482
1482
|
context: function(t, e) {
|
|
1483
|
-
return t ? new cn(t, e) :
|
|
1483
|
+
return t ? new cn(t, e) : F;
|
|
1484
1484
|
},
|
|
1485
1485
|
matchMedia: function(t) {
|
|
1486
|
-
return new
|
|
1486
|
+
return new $s(t);
|
|
1487
1487
|
},
|
|
1488
1488
|
matchMediaRefresh: function() {
|
|
1489
1489
|
return oe.forEach(function(t) {
|
|
@@ -1504,7 +1504,7 @@ var oe = [], Ze = {}, $s = [], ar = 0, Bs = 0, _i = function(t) {
|
|
|
1504
1504
|
utils: {
|
|
1505
1505
|
wrap: ms,
|
|
1506
1506
|
wrapYoyo: vs,
|
|
1507
|
-
distribute:
|
|
1507
|
+
distribute: Vr,
|
|
1508
1508
|
random: Yr,
|
|
1509
1509
|
snap: Hr,
|
|
1510
1510
|
normalize: bs,
|
|
@@ -1512,54 +1512,54 @@ var oe = [], Ze = {}, $s = [], ar = 0, Bs = 0, _i = function(t) {
|
|
|
1512
1512
|
clamp: ds,
|
|
1513
1513
|
splitColor: jr,
|
|
1514
1514
|
toArray: yt,
|
|
1515
|
-
selector:
|
|
1515
|
+
selector: Ai,
|
|
1516
1516
|
mapRange: qr,
|
|
1517
1517
|
pipe: ps,
|
|
1518
1518
|
unitize: gs,
|
|
1519
1519
|
interpolate: ys,
|
|
1520
|
-
shuffle:
|
|
1520
|
+
shuffle: Wr
|
|
1521
1521
|
},
|
|
1522
1522
|
install: Dr,
|
|
1523
1523
|
effects: ui,
|
|
1524
1524
|
ticker: ut,
|
|
1525
1525
|
updateRoot: J.updateRoot,
|
|
1526
1526
|
plugins: ht,
|
|
1527
|
-
globalTimeline:
|
|
1527
|
+
globalTimeline: L,
|
|
1528
1528
|
core: {
|
|
1529
1529
|
PropTween: nt,
|
|
1530
1530
|
globals: Mr,
|
|
1531
|
-
Tween:
|
|
1531
|
+
Tween: V,
|
|
1532
1532
|
Timeline: J,
|
|
1533
|
-
Animation:
|
|
1533
|
+
Animation: Fe,
|
|
1534
1534
|
getCache: re,
|
|
1535
1535
|
_removeLinkedListItem: oi,
|
|
1536
1536
|
reverting: function() {
|
|
1537
1537
|
return q;
|
|
1538
1538
|
},
|
|
1539
1539
|
context: function(t) {
|
|
1540
|
-
return t &&
|
|
1540
|
+
return t && F && (F.data.push(t), t._ctx = F), F;
|
|
1541
1541
|
},
|
|
1542
1542
|
suppressOverwrites: function(t) {
|
|
1543
|
-
return
|
|
1543
|
+
return Ii = t;
|
|
1544
1544
|
}
|
|
1545
1545
|
}
|
|
1546
1546
|
};
|
|
1547
1547
|
rt("to,from,fromTo,delayedCall,set,killTweensOf", function(o) {
|
|
1548
|
-
return ri[o] =
|
|
1548
|
+
return ri[o] = V[o];
|
|
1549
1549
|
});
|
|
1550
1550
|
ut.add(J.updateRoot);
|
|
1551
1551
|
fe = ri.to({}, {
|
|
1552
1552
|
duration: 0
|
|
1553
1553
|
});
|
|
1554
|
-
var
|
|
1554
|
+
var Us = function(t, e) {
|
|
1555
1555
|
for (var i = t._pt; i && i.p !== e && i.op !== e && i.fp !== e; )
|
|
1556
1556
|
i = i._next;
|
|
1557
1557
|
return i;
|
|
1558
|
-
},
|
|
1558
|
+
}, Ws = function(t, e) {
|
|
1559
1559
|
var i = t._targets, r, n, s;
|
|
1560
1560
|
for (r in e)
|
|
1561
1561
|
for (n = i.length; n--; )
|
|
1562
|
-
s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s =
|
|
1562
|
+
s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s = Us(s, r)), s && s.modifier && s.modifier(e[r], t, i[n], r));
|
|
1563
1563
|
}, pi = function(t, e) {
|
|
1564
1564
|
return {
|
|
1565
1565
|
name: t,
|
|
@@ -1568,26 +1568,26 @@ var Ws = function(t, e) {
|
|
|
1568
1568
|
//don't pre-process function-based values or "random()" strings.
|
|
1569
1569
|
init: function(r, n, s) {
|
|
1570
1570
|
s._onInit = function(a) {
|
|
1571
|
-
var
|
|
1572
|
-
if (X(n) && (
|
|
1573
|
-
return
|
|
1574
|
-
}), n =
|
|
1575
|
-
|
|
1576
|
-
for (
|
|
1577
|
-
l
|
|
1578
|
-
n =
|
|
1571
|
+
var h, l;
|
|
1572
|
+
if (X(n) && (h = {}, rt(n, function(u) {
|
|
1573
|
+
return h[u] = 1;
|
|
1574
|
+
}), n = h), e) {
|
|
1575
|
+
h = {};
|
|
1576
|
+
for (l in n)
|
|
1577
|
+
h[l] = e(n[l]);
|
|
1578
|
+
n = h;
|
|
1579
1579
|
}
|
|
1580
|
-
|
|
1580
|
+
Ws(a, n);
|
|
1581
1581
|
};
|
|
1582
1582
|
}
|
|
1583
1583
|
};
|
|
1584
1584
|
}, ot = ri.registerPlugin({
|
|
1585
1585
|
name: "attr",
|
|
1586
1586
|
init: function(t, e, i, r, n) {
|
|
1587
|
-
var s, a,
|
|
1587
|
+
var s, a, h;
|
|
1588
1588
|
this.tween = i;
|
|
1589
1589
|
for (s in e)
|
|
1590
|
-
|
|
1590
|
+
h = t.getAttribute(s) || "", a = this.add(t, "setAttribute", (h || 0) + "", e[s], r, n, 0, 0, s), a.op = s, a.b = h, this._props.push(s);
|
|
1591
1591
|
},
|
|
1592
1592
|
render: function(t, e) {
|
|
1593
1593
|
for (var i = e._pt; i; )
|
|
@@ -1600,10 +1600,10 @@ var Ws = function(t, e) {
|
|
|
1600
1600
|
for (var i = e.length; i--; )
|
|
1601
1601
|
this.add(t, i, t[i] || 0, e[i], 0, 0, 0, 0, 0, 1);
|
|
1602
1602
|
}
|
|
1603
|
-
}, pi("roundProps",
|
|
1604
|
-
|
|
1603
|
+
}, pi("roundProps", Si), pi("modifiers"), pi("snap", Hr)) || ri;
|
|
1604
|
+
V.version = J.version = ot.version = "3.13.0";
|
|
1605
1605
|
Or = 1;
|
|
1606
|
-
|
|
1606
|
+
Bi() && xe();
|
|
1607
1607
|
D.Power0;
|
|
1608
1608
|
D.Power1;
|
|
1609
1609
|
D.Power2;
|
|
@@ -1630,9 +1630,9 @@ D.Circ;
|
|
|
1630
1630
|
* Subject to the terms at https://gsap.com/standard-license
|
|
1631
1631
|
* @author: Jack Doyle, jack@greensock.com
|
|
1632
1632
|
*/
|
|
1633
|
-
var lr,
|
|
1633
|
+
var lr, Vt, _e, Gi, ee, hr, Ki, Vs = function() {
|
|
1634
1634
|
return typeof window < "u";
|
|
1635
|
-
},
|
|
1635
|
+
}, It = {}, te = 180 / Math.PI, pe = Math.PI / 180, he = Math.atan2, ur = 1e8, ji = /([A-Z])/g, Hs = /(left|right|width|margin|padding|x)/i, Ys = /[\s,\(]\S/, Ct = {
|
|
1636
1636
|
autoAlpha: "opacity,visibility",
|
|
1637
1637
|
scale: "scaleX,scaleY",
|
|
1638
1638
|
alpha: "opacity"
|
|
@@ -1663,9 +1663,9 @@ var lr, Ut, _e, Gi, ee, hr, Ki, Us = function() {
|
|
|
1663
1663
|
}, to = function(t, e, i, r, n) {
|
|
1664
1664
|
var s = t._gsap;
|
|
1665
1665
|
s[e] = i, s.renderTransform(n, s);
|
|
1666
|
-
},
|
|
1666
|
+
}, $ = "transform", st = $ + "Origin", eo = function o(t, e) {
|
|
1667
1667
|
var i = this, r = this.target, n = r.style, s = r._gsap;
|
|
1668
|
-
if (t in
|
|
1668
|
+
if (t in It && n) {
|
|
1669
1669
|
if (this.tfm = this.tfm || {}, t !== "transform")
|
|
1670
1670
|
t = Ct[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(a) {
|
|
1671
1671
|
return i.tfm[a] = Mt(r, a);
|
|
@@ -1674,9 +1674,9 @@ var lr, Ut, _e, Gi, ee, hr, Ki, Us = function() {
|
|
|
1674
1674
|
return Ct.transform.split(",").forEach(function(a) {
|
|
1675
1675
|
return o.call(i, a, e);
|
|
1676
1676
|
});
|
|
1677
|
-
if (this.props.indexOf(
|
|
1677
|
+
if (this.props.indexOf($) >= 0)
|
|
1678
1678
|
return;
|
|
1679
|
-
s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(st, e, "")), t =
|
|
1679
|
+
s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(st, e, "")), t = $;
|
|
1680
1680
|
}
|
|
1681
1681
|
(n || e) && this.props.push(t, e, n[t]);
|
|
1682
1682
|
}, _n = function(t) {
|
|
@@ -1688,7 +1688,7 @@ var lr, Ut, _e, Gi, ee, hr, Ki, Us = function() {
|
|
|
1688
1688
|
if (this.tfm) {
|
|
1689
1689
|
for (s in this.tfm)
|
|
1690
1690
|
r[s] = this.tfm[s];
|
|
1691
|
-
r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = Ki(), (!n || !n.isStart) && !i[
|
|
1691
|
+
r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = Ki(), (!n || !n.isStart) && !i[$] && (_n(i), r.zOrigin && i[st] && (i[st] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
|
|
1692
1692
|
}
|
|
1693
1693
|
}, pn = function(t, e) {
|
|
1694
1694
|
var i = {
|
|
@@ -1701,8 +1701,8 @@ var lr, Ut, _e, Gi, ee, hr, Ki, Us = function() {
|
|
|
1701
1701
|
return i.save(r);
|
|
1702
1702
|
}), i;
|
|
1703
1703
|
}, gn, Di = function(t, e) {
|
|
1704
|
-
var i =
|
|
1705
|
-
return i && i.style ? i :
|
|
1704
|
+
var i = Vt.createElementNS ? Vt.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : Vt.createElement(t);
|
|
1705
|
+
return i && i.style ? i : Vt.createElement(t);
|
|
1706
1706
|
}, xt = function o(t, e, i) {
|
|
1707
1707
|
var r = getComputedStyle(t);
|
|
1708
1708
|
return r[e] || r.getPropertyValue(e.replace(ji, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && o(t, we(e) || e, 1) || "";
|
|
@@ -1714,9 +1714,9 @@ var lr, Ut, _e, Gi, ee, hr, Ki, Us = function() {
|
|
|
1714
1714
|
;
|
|
1715
1715
|
return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? cr[s] : "") + t;
|
|
1716
1716
|
}, Mi = function() {
|
|
1717
|
-
|
|
1717
|
+
Vs() && window.document && (lr = window, Vt = lr.document, _e = Vt.documentElement, ee = Di("div") || {
|
|
1718
1718
|
style: {}
|
|
1719
|
-
}, Di("div"),
|
|
1719
|
+
}, Di("div"), $ = we($), st = $ + "Origin", ee.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", gn = !!we("perspective"), Ki = ot.core.reverting, Gi = 1);
|
|
1720
1720
|
}, fr = function(t) {
|
|
1721
1721
|
var e = t.ownerSVGElement, i = Di("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = t.cloneNode(!0), n;
|
|
1722
1722
|
r.style.display = "block", i.appendChild(r), _e.appendChild(i);
|
|
@@ -1747,7 +1747,7 @@ var lr, Ut, _e, Gi, ee, hr, Ki, Us = function() {
|
|
|
1747
1747
|
}, ae = function(t, e) {
|
|
1748
1748
|
if (e) {
|
|
1749
1749
|
var i = t.style, r;
|
|
1750
|
-
e in
|
|
1750
|
+
e in It && e !== st && (e = $), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(ji, "-$1").toLowerCase())) : i.removeAttribute(e);
|
|
1751
1751
|
}
|
|
1752
1752
|
}, Ht = function(t, e, i, r, n, s) {
|
|
1753
1753
|
var a = new nt(t._pt, e, i, 0, 1, s ? dn : fn);
|
|
@@ -1760,39 +1760,39 @@ var lr, Ut, _e, Gi, ee, hr, Ki, Us = function() {
|
|
|
1760
1760
|
grid: 1,
|
|
1761
1761
|
flex: 1
|
|
1762
1762
|
}, Kt = function o(t, e, i, r) {
|
|
1763
|
-
var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = ee.style,
|
|
1763
|
+
var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = ee.style, h = Hs.test(e), l = t.tagName.toLowerCase() === "svg", u = (l ? "client" : "offset") + (h ? "Width" : "Height"), f = 100, d = r === "px", _ = r === "%", p, c, g, m;
|
|
1764
1764
|
if (r === s || !n || _r[r] || _r[s])
|
|
1765
1765
|
return n;
|
|
1766
|
-
if (s !== "px" && !d && (n = o(t, e, i, "px")), m = t.getCTM && mn(t), (_ || s === "%") && (
|
|
1767
|
-
return p = m ? t.getBBox()[
|
|
1768
|
-
if (a[
|
|
1769
|
-
return
|
|
1766
|
+
if (s !== "px" && !d && (n = o(t, e, i, "px")), m = t.getCTM && mn(t), (_ || s === "%") && (It[e] || ~e.indexOf("adius")))
|
|
1767
|
+
return p = m ? t.getBBox()[h ? "width" : "height"] : t[u], W(_ ? n / p * f : n / 100 * p);
|
|
1768
|
+
if (a[h ? "width" : "height"] = f + (d ? s : r), c = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !l ? t : t.parentNode, m && (c = (t.ownerSVGElement || {}).parentNode), (!c || c === Vt || !c.appendChild) && (c = Vt.body), g = c._gsap, g && _ && g.width && h && g.time === ut.time && !g.uncache)
|
|
1769
|
+
return W(n / g.width * f);
|
|
1770
1770
|
if (_ && (e === "height" || e === "width")) {
|
|
1771
1771
|
var b = t.style[e];
|
|
1772
1772
|
t.style[e] = f + r, p = t[u], b ? t.style[e] = b : ae(t, e);
|
|
1773
1773
|
} else
|
|
1774
1774
|
(_ || s === "%") && !ro[xt(c, "display")] && (a.position = xt(t, "position")), c === t && (a.position = "static"), c.appendChild(ee), p = ee[u], c.removeChild(ee), a.position = "absolute";
|
|
1775
|
-
return
|
|
1775
|
+
return h && _ && (g = re(c), g.time = ut.time, g.width = c[u]), W(d ? p * n / f : p && n ? f / p * n : 0);
|
|
1776
1776
|
}, Mt = function(t, e, i, r) {
|
|
1777
1777
|
var n;
|
|
1778
|
-
return Gi || Mi(), e in Ct && e !== "transform" && (e = Ct[e], ~e.indexOf(",") && (e = e.split(",")[0])),
|
|
1778
|
+
return Gi || Mi(), e in Ct && e !== "transform" && (e = Ct[e], ~e.indexOf(",") && (e = e.split(",")[0])), It[e] && e !== "transform" ? (n = Le(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : si(xt(t, st)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = ni[e] && ni[e](t, e, i) || xt(t, e) || Rr(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? Kt(t, e, n, i) + i : n;
|
|
1779
1779
|
}, no = function(t, e, i, r) {
|
|
1780
1780
|
if (!i || i === "none") {
|
|
1781
1781
|
var n = we(e, t, 1), s = n && xt(t, n, 1);
|
|
1782
1782
|
s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = xt(t, "borderTopColor"));
|
|
1783
1783
|
}
|
|
1784
|
-
var a = new nt(this._pt, t.style, e, 0, 1, hn),
|
|
1784
|
+
var a = new nt(this._pt, t.style, e, 0, 1, hn), h = 0, l = 0, u, f, d, _, p, c, g, m, b, v, x, y;
|
|
1785
1785
|
if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = xt(t, r.substring(4, r.indexOf(")")))), r === "auto" && (c = t.style[e], t.style[e] = r, r = xt(t, e) || r, c ? t.style[e] = c : ae(t, e)), u = [i, r], Zr(u), i = u[0], r = u[1], d = i.match(ce) || [], y = r.match(ce) || [], y.length) {
|
|
1786
1786
|
for (; f = ce.exec(r); )
|
|
1787
|
-
g = f[0], b = r.substring(
|
|
1787
|
+
g = f[0], b = r.substring(h, f.index), p ? p = (p + 1) % 5 : (b.substr(-5) === "rgba(" || b.substr(-5) === "hsla(") && (p = 1), g !== (c = d[l++] || "") && (_ = parseFloat(c) || 0, x = c.substr((_ + "").length), g.charAt(1) === "=" && (g = de(_, g) + x), m = parseFloat(g), v = g.substr((m + "").length), h = ce.lastIndex - v.length, v || (v = v || dt.units[e] || x, h === r.length && (r += v, a.e += v)), x !== v && (_ = Kt(t, e, c, v) || 0), a._pt = {
|
|
1788
1788
|
_next: a._pt,
|
|
1789
|
-
p: b ||
|
|
1789
|
+
p: b || l === 1 ? b : ",",
|
|
1790
1790
|
//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.
|
|
1791
1791
|
s: _,
|
|
1792
1792
|
c: m - _,
|
|
1793
1793
|
m: p && p < 4 || e === "zIndex" ? Math.round : 0
|
|
1794
1794
|
});
|
|
1795
|
-
a.c =
|
|
1795
|
+
a.c = h < r.length ? r.substring(h, r.length) : "";
|
|
1796
1796
|
} else
|
|
1797
1797
|
a.r = e === "display" && r === "none" ? dn : fn;
|
|
1798
1798
|
return Cr.test(r) && (a.e = 0), this._pt = a, a;
|
|
@@ -1807,13 +1807,13 @@ var lr, Ut, _e, Gi, ee, hr, Ki, Us = function() {
|
|
|
1807
1807
|
return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = pr[i] || i, e[1] = pr[r] || r, e.join(" ");
|
|
1808
1808
|
}, oo = function(t, e) {
|
|
1809
1809
|
if (e.tween && e.tween._time === e.tween._dur) {
|
|
1810
|
-
var i = e.t, r = i.style, n = e.u, s = i._gsap, a,
|
|
1810
|
+
var i = e.t, r = i.style, n = e.u, s = i._gsap, a, h, l;
|
|
1811
1811
|
if (n === "all" || n === !0)
|
|
1812
|
-
r.cssText = "",
|
|
1812
|
+
r.cssText = "", h = 1;
|
|
1813
1813
|
else
|
|
1814
|
-
for (n = n.split(","),
|
|
1815
|
-
a = n[
|
|
1816
|
-
|
|
1814
|
+
for (n = n.split(","), l = n.length; --l > -1; )
|
|
1815
|
+
a = n[l], It[a] && (h = 1, a = a === "transformOrigin" ? st : $), ae(i, a);
|
|
1816
|
+
h && (ae(i, $), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", Le(i, 1), s.uncache = 1, _n(r)));
|
|
1817
1817
|
}
|
|
1818
1818
|
}, ni = {
|
|
1819
1819
|
clearProps: function(t, e, i, r, n) {
|
|
@@ -1885,67 +1885,67 @@ var lr, Ut, _e, Gi, ee, hr, Ki, Us = function() {
|
|
|
1885
1885
|
return 1;
|
|
1886
1886
|
}
|
|
1887
1887
|
*/
|
|
1888
|
-
},
|
|
1888
|
+
}, Ne = [1, 0, 0, 1, 0, 0], vn = {}, yn = function(t) {
|
|
1889
1889
|
return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
|
|
1890
1890
|
}, gr = function(t) {
|
|
1891
|
-
var e = xt(t,
|
|
1892
|
-
return yn(e) ?
|
|
1891
|
+
var e = xt(t, $);
|
|
1892
|
+
return yn(e) ? Ne : e.substr(7).match(Sr).map(W);
|
|
1893
1893
|
}, Qi = function(t, e) {
|
|
1894
|
-
var i = t._gsap || re(t), r = t.style, n = gr(t), s, a,
|
|
1895
|
-
return i.svg && t.getAttribute("transform") ? (
|
|
1896
|
-
},
|
|
1897
|
-
var a = t._gsap,
|
|
1898
|
-
i ?
|
|
1899
|
-
},
|
|
1894
|
+
var i = t._gsap || re(t), r = t.style, n = gr(t), s, a, h, l;
|
|
1895
|
+
return i.svg && t.getAttribute("transform") ? (h = t.transform.baseVal.consolidate().matrix, n = [h.a, h.b, h.c, h.d, h.e, h.f], n.join(",") === "1,0,0,1,0,0" ? Ne : n) : (n === Ne && !t.offsetParent && t !== _e && !i.svg && (h = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (l = 1, a = t.nextElementSibling, _e.appendChild(t)), n = gr(t), h ? r.display = h : ae(t, "display"), l && (a ? s.insertBefore(t, a) : s ? s.appendChild(t) : _e.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
|
|
1896
|
+
}, Ei = function(t, e, i, r, n, s) {
|
|
1897
|
+
var a = t._gsap, h = n || Qi(t, !0), l = a.xOrigin || 0, u = a.yOrigin || 0, f = a.xOffset || 0, d = a.yOffset || 0, _ = h[0], p = h[1], c = h[2], g = h[3], m = h[4], b = h[5], v = e.split(" "), x = parseFloat(v[0]) || 0, y = parseFloat(v[1]) || 0, T, P, A, w;
|
|
1898
|
+
i ? h !== Ne && (P = _ * g - p * c) && (A = x * (g / P) + y * (-c / P) + (c * b - g * m) / P, w = x * (-p / P) + y * (_ / P) - (_ * b - p * m) / P, x = A, y = w) : (T = bn(t), x = T.x + (~v[0].indexOf("%") ? x / 100 * T.width : x), y = T.y + (~(v[1] || v[0]).indexOf("%") ? y / 100 * T.height : y)), r || r !== !1 && a.smooth ? (m = x - l, b = y - u, a.xOffset = f + (m * _ + b * c) - m, a.yOffset = d + (m * p + b * g) - b) : a.xOffset = a.yOffset = 0, a.xOrigin = x, a.yOrigin = y, a.smooth = !!r, a.origin = e, a.originIsAbsolute = !!i, t.style[st] = "0px 0px", s && (Ht(s, a, "xOrigin", l, x), Ht(s, a, "yOrigin", u, y), Ht(s, a, "xOffset", f, a.xOffset), Ht(s, a, "yOffset", d, a.yOffset)), t.setAttribute("data-svg-origin", x + " " + y);
|
|
1899
|
+
}, Le = function(t, e) {
|
|
1900
1900
|
var i = t._gsap || new rn(t);
|
|
1901
1901
|
if ("x" in i && !e && !i.uncache)
|
|
1902
1902
|
return i;
|
|
1903
|
-
var r = t.style, n = i.scaleX < 0, s = "px", a = "deg",
|
|
1904
|
-
return u = f = d = c = g = m = b = v = x = 0, _ = p = 1, i.svg = !!(t.getCTM && mn(t)),
|
|
1903
|
+
var r = t.style, n = i.scaleX < 0, s = "px", a = "deg", h = getComputedStyle(t), l = xt(t, st) || "0", u, f, d, _, p, c, g, m, b, v, x, y, T, P, A, w, C, M, O, E, Y, I, R, N, G, Qt, Ft, Z, Pt, gt, tt, bt;
|
|
1904
|
+
return u = f = d = c = g = m = b = v = x = 0, _ = p = 1, i.svg = !!(t.getCTM && mn(t)), h.translate && ((h.translate !== "none" || h.scale !== "none" || h.rotate !== "none") && (r[$] = (h.translate !== "none" ? "translate3d(" + (h.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (h.rotate !== "none" ? "rotate(" + h.rotate + ") " : "") + (h.scale !== "none" ? "scale(" + h.scale.split(" ").join(",") + ") " : "") + (h[$] !== "none" ? h[$] : "")), r.scale = r.rotate = r.translate = "none"), P = Qi(t, i.svg), i.svg && (i.uncache ? (G = t.getBBox(), l = i.xOrigin - G.x + "px " + (i.yOrigin - G.y) + "px", N = "") : N = !e && t.getAttribute("data-svg-origin"), Ei(t, N || l, !!N || i.originIsAbsolute, i.smooth !== !1, P)), y = i.xOrigin || 0, T = i.yOrigin || 0, P !== Ne && (M = P[0], O = P[1], E = P[2], Y = P[3], u = I = P[4], f = R = P[5], P.length === 6 ? (_ = Math.sqrt(M * M + O * O), p = Math.sqrt(Y * Y + E * E), c = M || O ? he(O, M) * te : 0, b = E || Y ? he(E, Y) * te + c : 0, b && (p *= Math.abs(Math.cos(b * pe))), i.svg && (u -= y - (y * M + T * E), f -= T - (y * O + T * Y))) : (bt = P[6], gt = P[7], Ft = P[8], Z = P[9], Pt = P[10], tt = P[11], u = P[12], f = P[13], d = P[14], A = he(bt, Pt), g = A * te, A && (w = Math.cos(-A), C = Math.sin(-A), N = I * w + Ft * C, G = R * w + Z * C, Qt = bt * w + Pt * C, Ft = I * -C + Ft * w, Z = R * -C + Z * w, Pt = bt * -C + Pt * w, tt = gt * -C + tt * w, I = N, R = G, bt = Qt), A = he(-E, Pt), m = A * te, A && (w = Math.cos(-A), C = Math.sin(-A), N = M * w - Ft * C, G = O * w - Z * C, Qt = E * w - Pt * C, tt = Y * C + tt * w, M = N, O = G, E = Qt), A = he(O, M), c = A * te, A && (w = Math.cos(A), C = Math.sin(A), N = M * w + O * C, G = I * w + R * C, O = O * w - M * C, R = R * w - I * C, M = N, I = G), g && Math.abs(g) + Math.abs(c) > 359.9 && (g = c = 0, m = 180 - m), _ = W(Math.sqrt(M * M + O * O + E * E)), p = W(Math.sqrt(R * R + bt * bt)), A = he(I, R), b = Math.abs(A) > 2e-4 ? A * te : 0, x = tt ? 1 / (tt < 0 ? -tt : tt) : 0), i.svg && (N = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !yn(xt(t, $)), N && t.setAttribute("transform", N))), Math.abs(b) > 90 && Math.abs(b) < 270 && (n ? (_ *= -1, b += c <= 0 ? 180 : -180, c += c <= 0 ? 180 : -180) : (p *= -1, b += b <= 0 ? 180 : -180)), e = e || i.uncache, i.x = u - ((i.xPercent = u && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-u) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = f - ((i.yPercent = f && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-f) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = d + s, i.scaleX = W(_), i.scaleY = W(p), i.rotation = W(c) + a, i.rotationX = W(g) + a, i.rotationY = W(m) + a, i.skewX = b + a, i.skewY = v + a, i.transformPerspective = x + s, (i.zOrigin = parseFloat(l.split(" ")[2]) || !e && i.zOrigin || 0) && (r[st] = si(l)), i.xOffset = i.yOffset = 0, i.force3D = dt.force3D, i.renderTransform = i.svg ? lo : gn ? xn : ao, i.uncache = 0, i;
|
|
1905
1905
|
}, si = function(t) {
|
|
1906
1906
|
return (t = t.split(" "))[0] + " " + t[1];
|
|
1907
1907
|
}, gi = function(t, e, i) {
|
|
1908
1908
|
var r = K(e);
|
|
1909
|
-
return
|
|
1909
|
+
return W(parseFloat(e) + parseFloat(Kt(t, "x", i + "px", r))) + r;
|
|
1910
1910
|
}, ao = function(t, e) {
|
|
1911
1911
|
e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, xn(t, e);
|
|
1912
|
-
}, Zt = "0deg",
|
|
1913
|
-
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y,
|
|
1912
|
+
}, Zt = "0deg", Ae = "0px", Jt = ") ", xn = function(t, e) {
|
|
1913
|
+
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, h = i.z, l = i.rotation, u = i.rotationY, f = i.rotationX, d = i.skewX, _ = i.skewY, p = i.scaleX, c = i.scaleY, g = i.transformPerspective, m = i.force3D, b = i.target, v = i.zOrigin, x = "", y = m === "auto" && t && t !== 1 || m === !0;
|
|
1914
1914
|
if (v && (f !== Zt || u !== Zt)) {
|
|
1915
|
-
var T = parseFloat(u) * pe, P = Math.sin(T),
|
|
1916
|
-
T = parseFloat(f) * pe, w = Math.cos(T), s = gi(b, s, P * w * -v), a = gi(b, a, -Math.sin(T) * -v),
|
|
1915
|
+
var T = parseFloat(u) * pe, P = Math.sin(T), A = Math.cos(T), w;
|
|
1916
|
+
T = parseFloat(f) * pe, w = Math.cos(T), s = gi(b, s, P * w * -v), a = gi(b, a, -Math.sin(T) * -v), h = gi(b, h, A * w * -v + v);
|
|
1917
1917
|
}
|
|
1918
|
-
g !==
|
|
1918
|
+
g !== Ae && (x += "perspective(" + g + Jt), (r || n) && (x += "translate(" + r + "%, " + n + "%) "), (y || s !== Ae || a !== Ae || h !== Ae) && (x += h !== Ae || y ? "translate3d(" + s + ", " + a + ", " + h + ") " : "translate(" + s + ", " + a + Jt), l !== Zt && (x += "rotate(" + l + Jt), u !== Zt && (x += "rotateY(" + u + Jt), f !== Zt && (x += "rotateX(" + f + Jt), (d !== Zt || _ !== Zt) && (x += "skew(" + d + ", " + _ + Jt), (p !== 1 || c !== 1) && (x += "scale(" + p + ", " + c + Jt), b.style[$] = x || "translate(0, 0)";
|
|
1919
1919
|
}, lo = function(t, e) {
|
|
1920
|
-
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y,
|
|
1921
|
-
|
|
1920
|
+
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, h = i.rotation, l = i.skewX, u = i.skewY, f = i.scaleX, d = i.scaleY, _ = i.target, p = i.xOrigin, c = i.yOrigin, g = i.xOffset, m = i.yOffset, b = i.forceCSS, v = parseFloat(s), x = parseFloat(a), y, T, P, A, w;
|
|
1921
|
+
h = parseFloat(h), l = parseFloat(l), u = parseFloat(u), u && (u = parseFloat(u), l += u, h += u), h || l ? (h *= pe, l *= pe, y = Math.cos(h) * f, T = Math.sin(h) * f, P = Math.sin(h - l) * -d, A = Math.cos(h - l) * d, l && (u *= pe, w = Math.tan(l - u), w = Math.sqrt(1 + w * w), P *= w, A *= w, u && (w = Math.tan(u), w = Math.sqrt(1 + w * w), y *= w, T *= w)), y = W(y), T = W(T), P = W(P), A = W(A)) : (y = f, A = d, T = P = 0), (v && !~(s + "").indexOf("px") || x && !~(a + "").indexOf("px")) && (v = Kt(_, "x", s, "px"), x = Kt(_, "y", a, "px")), (p || c || g || m) && (v = W(v + p - (p * y + c * P) + g), x = W(x + c - (p * T + c * A) + m)), (r || n) && (w = _.getBBox(), v = W(v + r / 100 * w.width), x = W(x + n / 100 * w.height)), w = "matrix(" + y + "," + T + "," + P + "," + A + "," + v + "," + x + ")", _.setAttribute("transform", w), b && (_.style[$] = w);
|
|
1922
1922
|
}, ho = function(t, e, i, r, n) {
|
|
1923
|
-
var s = 360, a = X(n),
|
|
1924
|
-
return a && (f = n.split("_")[1], f === "short" && (
|
|
1923
|
+
var s = 360, a = X(n), h = parseFloat(n) * (a && ~n.indexOf("rad") ? te : 1), l = h - r, u = r + l + "deg", f, d;
|
|
1924
|
+
return a && (f = n.split("_")[1], f === "short" && (l %= s, l !== l % (s / 2) && (l += l < 0 ? s : -s)), f === "cw" && l < 0 ? l = (l + s * ur) % s - ~~(l / s) * s : f === "ccw" && l > 0 && (l = (l - s * ur) % s - ~~(l / s) * s)), t._pt = d = new nt(t._pt, e, i, r, l, Xs), d.e = u, d.u = "deg", t._props.push(i), d;
|
|
1925
1925
|
}, br = function(t, e) {
|
|
1926
1926
|
for (var i in e)
|
|
1927
1927
|
t[i] = e[i];
|
|
1928
1928
|
return t;
|
|
1929
1929
|
}, uo = function(t, e, i) {
|
|
1930
|
-
var r = br({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, a,
|
|
1931
|
-
r.svg ? (
|
|
1932
|
-
for (
|
|
1933
|
-
|
|
1930
|
+
var r = br({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, a, h, l, u, f, d, _, p;
|
|
1931
|
+
r.svg ? (l = i.getAttribute("transform"), i.setAttribute("transform", ""), s[$] = e, a = Le(i, 1), ae(i, $), i.setAttribute("transform", l)) : (l = getComputedStyle(i)[$], s[$] = e, a = Le(i, 1), s[$] = l);
|
|
1932
|
+
for (h in It)
|
|
1933
|
+
l = r[h], u = a[h], l !== u && n.indexOf(h) < 0 && (_ = K(l), p = K(u), f = _ !== p ? Kt(i, h, l, p) : parseFloat(l), d = parseFloat(u), t._pt = new nt(t._pt, a, h, f, d - f, Oi), t._pt.u = p || 0, t._props.push(h));
|
|
1934
1934
|
br(a, r);
|
|
1935
1935
|
};
|
|
1936
1936
|
rt("padding,margin,Width,Radius", function(o, t) {
|
|
1937
1937
|
var e = "Top", i = "Right", r = "Bottom", n = "Left", s = (t < 3 ? [e, i, r, n] : [e + n, e + i, r + i, r + n]).map(function(a) {
|
|
1938
1938
|
return t < 2 ? o + a : "border" + a + o;
|
|
1939
1939
|
});
|
|
1940
|
-
ni[t > 1 ? "border" + o : o] = function(a,
|
|
1940
|
+
ni[t > 1 ? "border" + o : o] = function(a, h, l, u, f) {
|
|
1941
1941
|
var d, _;
|
|
1942
1942
|
if (arguments.length < 4)
|
|
1943
1943
|
return d = s.map(function(p) {
|
|
1944
|
-
return Mt(a, p,
|
|
1944
|
+
return Mt(a, p, l);
|
|
1945
1945
|
}), _ = d.join(" "), _.split(d[0]).length === 5 ? d[0] : _;
|
|
1946
1946
|
d = (u + "").split(" "), _ = {}, s.forEach(function(p, c) {
|
|
1947
1947
|
return _[p] = d[c] = d[c] || d[(c - 1) / 2 | 0];
|
|
1948
|
-
}), a.init(
|
|
1948
|
+
}), a.init(h, _, f);
|
|
1949
1949
|
};
|
|
1950
1950
|
});
|
|
1951
1951
|
var wn = {
|
|
@@ -1955,23 +1955,23 @@ var wn = {
|
|
|
1955
1955
|
return t.style && t.nodeType;
|
|
1956
1956
|
},
|
|
1957
1957
|
init: function(t, e, i, r, n) {
|
|
1958
|
-
var s = this._props, a = t.style,
|
|
1959
|
-
Gi || Mi(), this.styles = this.styles || pn(t),
|
|
1958
|
+
var s = this._props, a = t.style, h = i.vars.startAt, l, u, f, d, _, p, c, g, m, b, v, x, y, T, P, A;
|
|
1959
|
+
Gi || Mi(), this.styles = this.styles || pn(t), A = this.styles.props, this.tween = i;
|
|
1960
1960
|
for (c in e)
|
|
1961
1961
|
if (c !== "autoRound" && (u = e[c], !(ht[c] && nn(c, e, i, r, t, n)))) {
|
|
1962
|
-
if (_ = typeof u, p = ni[c], _ === "function" && (u = u.call(i, r, t, n), _ = typeof u), _ === "string" && ~u.indexOf("random(") && (u =
|
|
1962
|
+
if (_ = typeof u, p = ni[c], _ === "function" && (u = u.call(i, r, t, n), _ = typeof u), _ === "string" && ~u.indexOf("random(") && (u = ze(u)), p)
|
|
1963
1963
|
p(this, t, c, u, i) && (P = 1);
|
|
1964
1964
|
else if (c.substr(0, 2) === "--")
|
|
1965
|
-
|
|
1965
|
+
l = (getComputedStyle(t).getPropertyValue(c) + "").trim(), u += "", Xt.lastIndex = 0, Xt.test(l) || (g = K(l), m = K(u)), m ? g !== m && (l = Kt(t, c, l, m) + m) : g && (u += g), this.add(a, "setProperty", l, u, r, n, 0, 0, c), s.push(c), A.push(c, 0, a[c]);
|
|
1966
1966
|
else if (_ !== "undefined") {
|
|
1967
|
-
if (
|
|
1968
|
-
if (this.styles.save(c), _ === "string" && u.substring(0, 6) === "var(--" && (u = xt(t, u.substring(4, u.indexOf(")"))), f = parseFloat(u)), x || (y = t._gsap, y.renderTransform && !e.parseTransform ||
|
|
1967
|
+
if (h && c in h ? (l = typeof h[c] == "function" ? h[c].call(i, r, t, n) : h[c], X(l) && ~l.indexOf("random(") && (l = ze(l)), K(l + "") || l === "auto" || (l += dt.units[c] || K(Mt(t, c)) || ""), (l + "").charAt(1) === "=" && (l = Mt(t, c))) : l = Mt(t, c), d = parseFloat(l), b = _ === "string" && u.charAt(1) === "=" && u.substr(0, 2), b && (u = u.substr(2)), f = parseFloat(u), c in Ct && (c === "autoAlpha" && (d === 1 && Mt(t, "visibility") === "hidden" && f && (d = 0), A.push("visibility", 0, a.visibility), Ht(this, a, "visibility", d ? "inherit" : "hidden", f ? "inherit" : "hidden", !f)), c !== "scale" && c !== "transform" && (c = Ct[c], ~c.indexOf(",") && (c = c.split(",")[0]))), v = c in It, v) {
|
|
1968
|
+
if (this.styles.save(c), _ === "string" && u.substring(0, 6) === "var(--" && (u = xt(t, u.substring(4, u.indexOf(")"))), f = parseFloat(u)), x || (y = t._gsap, y.renderTransform && !e.parseTransform || Le(t, e.parseTransform), T = e.smoothOrigin !== !1 && y.smooth, x = this._pt = new nt(this._pt, a, $, 0, 1, y.renderTransform, y, 0, -1), x.dep = 1), c === "scale")
|
|
1969
1969
|
this._pt = new nt(this._pt, y, "scaleY", y.scaleY, (b ? de(y.scaleY, b + f) : f) - y.scaleY || 0, Oi), this._pt.u = 0, s.push("scaleY", c), c += "X";
|
|
1970
1970
|
else if (c === "transformOrigin") {
|
|
1971
|
-
|
|
1971
|
+
A.push(st, 0, a[st]), u = so(u), y.svg ? Ei(t, u, 0, T, 0, this) : (m = parseFloat(u.split(" ")[2]) || 0, m !== y.zOrigin && Ht(this, y, "zOrigin", y.zOrigin, m), Ht(this, a, c, si(l), si(u)));
|
|
1972
1972
|
continue;
|
|
1973
1973
|
} else if (c === "svgOrigin") {
|
|
1974
|
-
|
|
1974
|
+
Ei(t, u, 1, T, 0, this);
|
|
1975
1975
|
continue;
|
|
1976
1976
|
} else if (c in vn) {
|
|
1977
1977
|
ho(this, y, c, d, b ? de(d, b + u) : u);
|
|
@@ -1988,16 +1988,16 @@ var wn = {
|
|
|
1988
1988
|
}
|
|
1989
1989
|
} else c in a || (c = we(c) || c);
|
|
1990
1990
|
if (v || (f || f === 0) && (d || d === 0) && !Ys.test(u) && c in a)
|
|
1991
|
-
g = (
|
|
1991
|
+
g = (l + "").substr((d + "").length), f || (f = 0), m = K(u) || (c in dt.units ? dt.units[c] : g), g !== m && (d = Kt(t, c, l, m)), this._pt = new nt(this._pt, v ? y : a, c, d, (b ? de(d, b + f) : f) - d, !v && (m === "px" || c === "zIndex") && e.autoRound !== !1 ? Gs : Oi), this._pt.u = m || 0, g !== m && m !== "%" && (this._pt.b = l, this._pt.r = qs);
|
|
1992
1992
|
else if (c in a)
|
|
1993
|
-
no.call(this, t, c,
|
|
1993
|
+
no.call(this, t, c, l, b ? b + u : u);
|
|
1994
1994
|
else if (c in t)
|
|
1995
|
-
this.add(t, c,
|
|
1995
|
+
this.add(t, c, l || t[c], b ? b + u : u, r, n);
|
|
1996
1996
|
else if (c !== "parseTransform") {
|
|
1997
|
-
|
|
1997
|
+
Ni(c, u);
|
|
1998
1998
|
continue;
|
|
1999
1999
|
}
|
|
2000
|
-
v || (c in a ?
|
|
2000
|
+
v || (c in a ? A.push(c, 0, a[c]) : typeof t[c] == "function" ? A.push(c, 2, t[c]()) : A.push(c, 1, l || t[c])), s.push(c);
|
|
2001
2001
|
}
|
|
2002
2002
|
}
|
|
2003
2003
|
P && un(this);
|
|
@@ -2013,7 +2013,7 @@ var wn = {
|
|
|
2013
2013
|
aliases: Ct,
|
|
2014
2014
|
getSetter: function(t, e, i) {
|
|
2015
2015
|
var r = Ct[e];
|
|
2016
|
-
return r && r.indexOf(",") < 0 && (e = r), e in
|
|
2016
|
+
return r && r.indexOf(",") < 0 && (e = r), e in It && e !== st && (t._gsap.x || Mt(t, "x")) ? i && hr === i ? e === "scale" ? Zs : Qs : (hr = i || {}) && (e === "scale" ? Js : to) : t.style && !zi(t.style[e]) ? Ks : ~e.indexOf("-") ? js : Xi(t, e);
|
|
2017
2017
|
},
|
|
2018
2018
|
core: {
|
|
2019
2019
|
_removeProperty: ae,
|
|
@@ -2024,7 +2024,7 @@ ot.utils.checkPrefix = we;
|
|
|
2024
2024
|
ot.core.getStyleSaver = pn;
|
|
2025
2025
|
(function(o, t, e, i) {
|
|
2026
2026
|
var r = rt(o + "," + t + "," + e, function(n) {
|
|
2027
|
-
|
|
2027
|
+
It[n] = 1;
|
|
2028
2028
|
});
|
|
2029
2029
|
rt(t, function(n) {
|
|
2030
2030
|
dt.units[n] = "deg", vn[n] = 1;
|
|
@@ -2047,75 +2047,75 @@ ie.core.Tween;
|
|
|
2047
2047
|
* Subject to the terms at https://gsap.com/standard-license
|
|
2048
2048
|
* @author: Jack Doyle, jack@greensock.com
|
|
2049
2049
|
*/
|
|
2050
|
-
var co = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, fo = /[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig, _o = Math.PI / 180, Ye = Math.sin, Xe = Math.cos,
|
|
2050
|
+
var co = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, fo = /[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig, _o = Math.PI / 180, Ye = Math.sin, Xe = Math.cos, Ee = Math.abs, Se = Math.sqrt, po = function(t) {
|
|
2051
2051
|
return typeof t == "number";
|
|
2052
|
-
}, mr = 1e5,
|
|
2052
|
+
}, mr = 1e5, $t = function(t) {
|
|
2053
2053
|
return Math.round(t * mr) / mr || 0;
|
|
2054
2054
|
};
|
|
2055
2055
|
function go(o, t, e, i, r, n, s) {
|
|
2056
|
-
for (var a = o.length,
|
|
2057
|
-
for (
|
|
2058
|
-
f =
|
|
2056
|
+
for (var a = o.length, h, l, u, f, d; --a > -1; )
|
|
2057
|
+
for (h = o[a], l = h.length, u = 0; u < l; u += 2)
|
|
2058
|
+
f = h[u], d = h[u + 1], h[u] = f * t + d * i + n, h[u + 1] = f * e + d * r + s;
|
|
2059
2059
|
return o._dirty = 1, o;
|
|
2060
2060
|
}
|
|
2061
|
-
function bo(o, t, e, i, r, n, s, a,
|
|
2062
|
-
if (!(o === a && t ===
|
|
2063
|
-
e =
|
|
2064
|
-
var
|
|
2065
|
-
x > 1 && (e =
|
|
2061
|
+
function bo(o, t, e, i, r, n, s, a, h) {
|
|
2062
|
+
if (!(o === a && t === h)) {
|
|
2063
|
+
e = Ee(e), i = Ee(i);
|
|
2064
|
+
var l = r % 360 * _o, u = Xe(l), f = Ye(l), d = Math.PI, _ = d * 2, p = (o - a) / 2, c = (t - h) / 2, g = u * p + f * c, m = -f * p + u * c, b = g * g, v = m * m, x = b / (e * e) + v / (i * i);
|
|
2065
|
+
x > 1 && (e = Se(x) * e, i = Se(x) * i);
|
|
2066
2066
|
var y = e * e, T = i * i, P = (y * T - y * v - T * b) / (y * v + T * b);
|
|
2067
2067
|
P < 0 && (P = 0);
|
|
2068
|
-
var
|
|
2069
|
-
isNaN(Z) && (Z = d), !s && Z > 0 ? Z -= _ : s && Z < 0 && (Z += _),
|
|
2070
|
-
var Pt = Math.ceil(
|
|
2068
|
+
var A = (n === s ? -1 : 1) * Se(P), w = A * (e * m / i), C = A * -(i * g / e), M = (o + a) / 2, O = (t + h) / 2, E = M + (u * w - f * C), Y = O + (f * w + u * C), I = (g - w) / e, R = (m - C) / i, N = (-g - w) / e, G = (-m - C) / i, Qt = I * I + R * R, Ft = (R < 0 ? -1 : 1) * Math.acos(I / Se(Qt)), Z = (I * G - R * N < 0 ? -1 : 1) * Math.acos((I * N + R * G) / Se(Qt * (N * N + G * G)));
|
|
2069
|
+
isNaN(Z) && (Z = d), !s && Z > 0 ? Z -= _ : s && Z < 0 && (Z += _), Ft %= _, Z %= _;
|
|
2070
|
+
var Pt = Math.ceil(Ee(Z) / (_ / 4)), gt = [], tt = Z / Pt, bt = 4 / 3 * Ye(tt / 2) / (1 + Xe(tt / 2)), Mn = u * e, En = f * e, Rn = f * -i, In = u * i, lt;
|
|
2071
2071
|
for (lt = 0; lt < Pt; lt++)
|
|
2072
|
-
r =
|
|
2072
|
+
r = Ft + lt * tt, g = Xe(r), m = Ye(r), I = Xe(r += tt), R = Ye(r), gt.push(g - bt * m, m + bt * g, I + bt * R, R - bt * I, I, R);
|
|
2073
2073
|
for (lt = 0; lt < gt.length; lt += 2)
|
|
2074
|
-
g = gt[lt], m = gt[lt + 1], gt[lt] = g * Mn + m *
|
|
2075
|
-
return gt[lt - 2] = a, gt[lt - 1] =
|
|
2074
|
+
g = gt[lt], m = gt[lt + 1], gt[lt] = g * Mn + m * Rn + E, gt[lt + 1] = g * En + m * In + Y;
|
|
2075
|
+
return gt[lt - 2] = a, gt[lt - 1] = h, gt;
|
|
2076
2076
|
}
|
|
2077
2077
|
}
|
|
2078
2078
|
function mo(o) {
|
|
2079
2079
|
var t = (o + "").replace(fo, function(w) {
|
|
2080
2080
|
var C = +w;
|
|
2081
2081
|
return C < 1e-4 && C > -1e-4 ? 0 : C;
|
|
2082
|
-
}).match(co) || [], e = [], i = 0, r = 0, n = 2 / 3, s = t.length, a = 0,
|
|
2083
|
-
b = (O - C) / 3, v = (
|
|
2082
|
+
}).match(co) || [], e = [], i = 0, r = 0, n = 2 / 3, s = t.length, a = 0, h = "ERROR: malformed path: " + o, l, u, f, d, _, p, c, g, m, b, v, x, y, T, P, A = function(C, M, O, E) {
|
|
2083
|
+
b = (O - C) / 3, v = (E - M) / 3, c.push(C + b, M + v, O - b, E - v, O, E);
|
|
2084
2084
|
};
|
|
2085
2085
|
if (!o || !isNaN(t[0]) || isNaN(t[1]))
|
|
2086
|
-
return console.log(
|
|
2087
|
-
for (
|
|
2088
|
-
if (y = _, isNaN(t[
|
|
2089
|
-
c && (c.length < 8 ? e.length -= 1 : a += c.length), i = g = f, r = m = d, c = [f, d], e.push(c),
|
|
2086
|
+
return console.log(h), e;
|
|
2087
|
+
for (l = 0; l < s; l++)
|
|
2088
|
+
if (y = _, isNaN(t[l]) ? (_ = t[l].toUpperCase(), p = _ !== t[l]) : l--, f = +t[l + 1], d = +t[l + 2], p && (f += i, d += r), l || (g = f, m = d), _ === "M")
|
|
2089
|
+
c && (c.length < 8 ? e.length -= 1 : a += c.length), i = g = f, r = m = d, c = [f, d], e.push(c), l += 2, _ = "L";
|
|
2090
2090
|
else if (_ === "C")
|
|
2091
|
-
c || (c = [0, 0]), p || (i = r = 0), c.push(f, d, i + t[
|
|
2091
|
+
c || (c = [0, 0]), p || (i = r = 0), c.push(f, d, i + t[l + 3] * 1, r + t[l + 4] * 1, i += t[l + 5] * 1, r += t[l + 6] * 1), l += 6;
|
|
2092
2092
|
else if (_ === "S")
|
|
2093
|
-
b = i, v = r, (y === "C" || y === "S") && (b += i - c[c.length - 4], v += r - c[c.length - 3]), p || (i = r = 0), c.push(b, v, f, d, i += t[
|
|
2093
|
+
b = i, v = r, (y === "C" || y === "S") && (b += i - c[c.length - 4], v += r - c[c.length - 3]), p || (i = r = 0), c.push(b, v, f, d, i += t[l + 3] * 1, r += t[l + 4] * 1), l += 4;
|
|
2094
2094
|
else if (_ === "Q")
|
|
2095
|
-
b = i + (f - i) * n, v = r + (d - r) * n, p || (i = r = 0), i += t[
|
|
2095
|
+
b = i + (f - i) * n, v = r + (d - r) * n, p || (i = r = 0), i += t[l + 3] * 1, r += t[l + 4] * 1, c.push(b, v, i + (f - i) * n, r + (d - r) * n, i, r), l += 4;
|
|
2096
2096
|
else if (_ === "T")
|
|
2097
|
-
b = i - c[c.length - 4], v = r - c[c.length - 3], c.push(i + b, r + v, f + (i + b * 1.5 - f) * n, d + (r + v * 1.5 - d) * n, i = f, r = d),
|
|
2097
|
+
b = i - c[c.length - 4], v = r - c[c.length - 3], c.push(i + b, r + v, f + (i + b * 1.5 - f) * n, d + (r + v * 1.5 - d) * n, i = f, r = d), l += 2;
|
|
2098
2098
|
else if (_ === "H")
|
|
2099
|
-
|
|
2099
|
+
A(i, r, i = f, r), l += 1;
|
|
2100
2100
|
else if (_ === "V")
|
|
2101
|
-
|
|
2101
|
+
A(i, r, i, r = f + (p ? r - i : 0)), l += 1;
|
|
2102
2102
|
else if (_ === "L" || _ === "Z")
|
|
2103
|
-
_ === "Z" && (f = g, d = m, c.closed = !0), (_ === "L" ||
|
|
2103
|
+
_ === "Z" && (f = g, d = m, c.closed = !0), (_ === "L" || Ee(i - f) > 0.5 || Ee(r - d) > 0.5) && (A(i, r, f, d), _ === "L" && (l += 2)), i = f, r = d;
|
|
2104
2104
|
else if (_ === "A") {
|
|
2105
|
-
if (T = t[
|
|
2105
|
+
if (T = t[l + 4], P = t[l + 5], b = t[l + 6], v = t[l + 7], u = 7, T.length > 1 && (T.length < 3 ? (v = b, b = P, u--) : (v = P, b = T.substr(2), u -= 2), P = T.charAt(1), T = T.charAt(0)), x = bo(i, r, +t[l + 1], +t[l + 2], +t[l + 3], +T, +P, (p ? i : 0) + b * 1, (p ? r : 0) + v * 1), l += u, x)
|
|
2106
2106
|
for (u = 0; u < x.length; u++)
|
|
2107
2107
|
c.push(x[u]);
|
|
2108
2108
|
i = c[c.length - 2], r = c[c.length - 1];
|
|
2109
2109
|
} else
|
|
2110
|
-
console.log(
|
|
2111
|
-
return
|
|
2110
|
+
console.log(h);
|
|
2111
|
+
return l = c.length, l < 6 ? (e.pop(), l = 0) : c[0] === c[l - 2] && c[1] === c[l - 1] && (c.closed = !0), e.totalPoints = a + l, e;
|
|
2112
2112
|
}
|
|
2113
2113
|
function vo(o) {
|
|
2114
2114
|
po(o[0]) && (o = [o]);
|
|
2115
2115
|
var t = "", e = o.length, i, r, n, s;
|
|
2116
2116
|
for (r = 0; r < e; r++) {
|
|
2117
|
-
for (s = o[r], t += "M" +
|
|
2118
|
-
t +=
|
|
2117
|
+
for (s = o[r], t += "M" + $t(s[0]) + "," + $t(s[1]) + " C", i = s.length, n = 2; n < i; n++)
|
|
2118
|
+
t += $t(s[n++]) + "," + $t(s[n++]) + " " + $t(s[n++]) + "," + $t(s[n++]) + " " + $t(s[n++]) + "," + $t(s[n]) + " ";
|
|
2119
2119
|
s.closed && (t += "z");
|
|
2120
2120
|
}
|
|
2121
2121
|
return t;
|
|
@@ -2131,7 +2131,7 @@ function vo(o) {
|
|
|
2131
2131
|
var et, Tn, Pn = function() {
|
|
2132
2132
|
return et || typeof window < "u" && (et = window.gsap) && et.registerPlugin && et;
|
|
2133
2133
|
}, vr = function() {
|
|
2134
|
-
et = Pn(), et ? (et.registerEase("_CE",
|
|
2134
|
+
et = Pn(), et ? (et.registerEase("_CE", Bt.create), Tn = 1) : console.warn("Please gsap.registerPlugin(CustomEase)");
|
|
2135
2135
|
}, yo = 1e20, qe = function(t) {
|
|
2136
2136
|
return ~~(t * 1e3 + (t < 0 ? -0.5 : 0.5)) / 1e3;
|
|
2137
2137
|
}, xo = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi, wo = /[cLlsSaAhHvVtTqQ]/g, To = function(t) {
|
|
@@ -2141,29 +2141,29 @@ var et, Tn, Pn = function() {
|
|
|
2141
2141
|
return i;
|
|
2142
2142
|
}, Po = function(t, e, i) {
|
|
2143
2143
|
!i && i !== 0 && (i = Math.max(+t[t.length - 1], +t[1]));
|
|
2144
|
-
var r = +t[0] * -1, n = -i, s = t.length, a = 1 / (+t[s - 2] + r),
|
|
2145
|
-
for (
|
|
2146
|
-
t[
|
|
2147
|
-
},
|
|
2148
|
-
var d = (t + i) / 2, _ = (e + r) / 2, p = (i + n) / 2, c = (r + s) / 2, g = (n + a) / 2, m = (s +
|
|
2144
|
+
var r = +t[0] * -1, n = -i, s = t.length, a = 1 / (+t[s - 2] + r), h = -e || (Math.abs(+t[s - 1] - +t[1]) < 0.01 * (+t[s - 2] - +t[0]) ? To(t) + n : +t[s - 1] + n), l;
|
|
2145
|
+
for (h ? h = 1 / h : h = -a, l = 0; l < s; l += 2)
|
|
2146
|
+
t[l] = (+t[l] + r) * a, t[l + 1] = (+t[l + 1] + n) * h;
|
|
2147
|
+
}, Ao = function o(t, e, i, r, n, s, a, h, l, u, f) {
|
|
2148
|
+
var d = (t + i) / 2, _ = (e + r) / 2, p = (i + n) / 2, c = (r + s) / 2, g = (n + a) / 2, m = (s + h) / 2, b = (d + p) / 2, v = (_ + c) / 2, x = (p + g) / 2, y = (c + m) / 2, T = (b + x) / 2, P = (v + y) / 2, A = a - t, w = h - e, C = Math.abs((i - a) * w - (r - h) * A), M = Math.abs((n - a) * w - (s - h) * A), O;
|
|
2149
2149
|
return u || (u = [{
|
|
2150
2150
|
x: t,
|
|
2151
2151
|
y: e
|
|
2152
2152
|
}, {
|
|
2153
2153
|
x: a,
|
|
2154
|
-
y:
|
|
2154
|
+
y: h
|
|
2155
2155
|
}], f = 1), u.splice(f || u.length - 1, 0, {
|
|
2156
2156
|
x: T,
|
|
2157
2157
|
y: P
|
|
2158
|
-
}), (C + M) * (C + M) >
|
|
2159
|
-
},
|
|
2158
|
+
}), (C + M) * (C + M) > l * (A * A + w * w) && (O = u.length, o(t, e, d, _, b, v, T, P, l, u, f), o(T, P, x, y, g, m, a, h, l, u, f + 1 + (u.length - O))), u;
|
|
2159
|
+
}, Bt = /* @__PURE__ */ function() {
|
|
2160
2160
|
function o(e, i, r) {
|
|
2161
2161
|
Tn || vr(), this.id = e, this.setData(i, r);
|
|
2162
2162
|
}
|
|
2163
2163
|
var t = o.prototype;
|
|
2164
2164
|
return t.setData = function(i, r) {
|
|
2165
2165
|
r = r || {}, i = i || "0,0,1,1";
|
|
2166
|
-
var n = i.match(xo), s = 1, a = [],
|
|
2166
|
+
var n = i.match(xo), s = 1, a = [], h = [], l = r.precision || 1, u = l <= 1, f, d, _, p, c, g, m, b, v;
|
|
2167
2167
|
if (this.data = i, (wo.test(i) || ~i.indexOf("M") && i.indexOf("C") < 0) && (n = mo(i)[0]), f = n.length, f === 4)
|
|
2168
2168
|
n.unshift(0, 0), n.push(1, 1), f = 8;
|
|
2169
2169
|
else if ((f - 2) % 6)
|
|
@@ -2175,26 +2175,26 @@ var et, Tn, Pn = function() {
|
|
|
2175
2175
|
}, _ = {
|
|
2176
2176
|
x: +n[p + 4],
|
|
2177
2177
|
y: +n[p + 5]
|
|
2178
|
-
}, a.push(d, _),
|
|
2178
|
+
}, a.push(d, _), Ao(d.x, d.y, +n[p], +n[p + 1], +n[p + 2], +n[p + 3], _.x, _.y, 1 / (l * 2e5), a, a.length - 1);
|
|
2179
2179
|
for (f = a.length, p = 0; p < f; p++)
|
|
2180
2180
|
m = a[p], b = a[p - 1] || m, (m.x > b.x || b.y !== m.y && b.x === m.x || m === b) && m.x <= 1 ? (b.cx = m.x - b.x, b.cy = m.y - b.y, b.n = m, b.nx = m.x, u && p > 1 && Math.abs(b.cy / b.cx - a[p - 2].cy / a[p - 2].cx) > 2 && (u = 0), b.cx < s && (b.cx ? s = b.cx : (b.cx = 1e-3, p === f - 1 && (b.x -= 1e-3, s = Math.min(s, 1e-3), u = 0)))) : (a.splice(p--, 1), f--);
|
|
2181
2181
|
if (f = 1 / s + 1 | 0, c = 1 / f, g = 0, m = a[0], u) {
|
|
2182
2182
|
for (p = 0; p < f; p++)
|
|
2183
|
-
v = p * c, m.nx < v && (m = a[++g]), d = m.y + (v - m.x) / m.cx * m.cy,
|
|
2183
|
+
v = p * c, m.nx < v && (m = a[++g]), d = m.y + (v - m.x) / m.cx * m.cy, h[p] = {
|
|
2184
2184
|
x: v,
|
|
2185
2185
|
cx: c,
|
|
2186
2186
|
y: d,
|
|
2187
2187
|
cy: 0,
|
|
2188
2188
|
nx: 9
|
|
2189
|
-
}, p && (
|
|
2190
|
-
g = a[a.length - 1],
|
|
2189
|
+
}, p && (h[p - 1].cy = d - h[p - 1].y);
|
|
2190
|
+
g = a[a.length - 1], h[f - 1].cy = g.y - d, h[f - 1].cx = g.x - h[h.length - 1].x;
|
|
2191
2191
|
} else {
|
|
2192
2192
|
for (p = 0; p < f; p++)
|
|
2193
|
-
m.nx < p * c && (m = a[++g]),
|
|
2194
|
-
g < a.length - 1 && (
|
|
2193
|
+
m.nx < p * c && (m = a[++g]), h[p] = m;
|
|
2194
|
+
g < a.length - 1 && (h[p - 1] = a[a.length - 2]);
|
|
2195
2195
|
}
|
|
2196
2196
|
return this.ease = function(x) {
|
|
2197
|
-
var y =
|
|
2197
|
+
var y = h[x * f | 0] || h[f - 1];
|
|
2198
2198
|
return y.nx < x && (y = y.n), y.y + (x - y.x) / y.cx * y.cy;
|
|
2199
2199
|
}, this.ease.custom = this, this.id && et && et.registerEase(this.id, this.ease), this;
|
|
2200
2200
|
}, t.getSVGData = function(i) {
|
|
@@ -2207,20 +2207,20 @@ var et, Tn, Pn = function() {
|
|
|
2207
2207
|
return et.parseEase(i);
|
|
2208
2208
|
}, o.getSVGData = function(i, r) {
|
|
2209
2209
|
r = r || {};
|
|
2210
|
-
var n = r.width || 100, s = r.height || 100, a = r.x || 0,
|
|
2211
|
-
if (r.invert && (s = -s,
|
|
2212
|
-
u = vo(go([i.segment], n, 0, 0, -s, a,
|
|
2210
|
+
var n = r.width || 100, s = r.height || 100, a = r.x || 0, h = (r.y || 0) + s, l = et.utils.toArray(r.path)[0], u, f, d, _, p, c, g, m, b, v;
|
|
2211
|
+
if (r.invert && (s = -s, h = 0), typeof i == "string" && (i = et.parseEase(i)), i.custom && (i = i.custom), i instanceof o)
|
|
2212
|
+
u = vo(go([i.segment], n, 0, 0, -s, a, h));
|
|
2213
2213
|
else {
|
|
2214
|
-
for (u = [a,
|
|
2215
|
-
p = qe(a + d * _ * n), c = qe(
|
|
2214
|
+
for (u = [a, h], g = Math.max(5, (r.precision || 1) * 200), _ = 1 / g, g += 2, m = 5 / g, b = qe(a + _ * n), v = qe(h + i(_) * -s), f = (v - h) / (b - a), d = 2; d < g; d++)
|
|
2215
|
+
p = qe(a + d * _ * n), c = qe(h + i(d * _) * -s), (Math.abs((c - v) / (p - b) - f) > m || d === g - 1) && (u.push(b, v), f = (c - v) / (p - b)), b = p, v = c;
|
|
2216
2216
|
u = "M" + u.join(",");
|
|
2217
2217
|
}
|
|
2218
|
-
return
|
|
2218
|
+
return l && l.setAttribute("d", u), u;
|
|
2219
2219
|
}, o;
|
|
2220
2220
|
}();
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
Pn() && et.registerPlugin(
|
|
2221
|
+
Bt.version = "3.13.0";
|
|
2222
|
+
Bt.headless = !0;
|
|
2223
|
+
Pn() && et.registerPlugin(Bt);
|
|
2224
2224
|
/*!
|
|
2225
2225
|
* ScrollToPlugin 3.13.0
|
|
2226
2226
|
* https://gsap.com
|
|
@@ -2229,7 +2229,7 @@ Pn() && et.registerPlugin(Ft);
|
|
|
2229
2229
|
* Subject to the terms at https://gsap.com/standard-license
|
|
2230
2230
|
* @author: Jack Doyle, jack@greensock.com
|
|
2231
2231
|
*/
|
|
2232
|
-
var j,
|
|
2232
|
+
var j, An, Et, kt, qt, Sn, ge, Ge, Cn = function() {
|
|
2233
2233
|
return typeof window < "u";
|
|
2234
2234
|
}, kn = function() {
|
|
2235
2235
|
return j || Cn() && (j = window.gsap) && j.registerPlugin && j;
|
|
@@ -2237,15 +2237,15 @@ var j, Sn, Rt, kt, qt, An, ge, Ge, Cn = function() {
|
|
|
2237
2237
|
return typeof t == "string";
|
|
2238
2238
|
}, yr = function(t) {
|
|
2239
2239
|
return typeof t == "function";
|
|
2240
|
-
},
|
|
2240
|
+
}, $e = function(t, e) {
|
|
2241
2241
|
var i = e === "x" ? "Width" : "Height", r = "scroll" + i, n = "client" + i;
|
|
2242
|
-
return t ===
|
|
2243
|
-
},
|
|
2242
|
+
return t === Et || t === kt || t === qt ? Math.max(kt[r], qt[r]) - (Et["inner" + i] || kt[n] || qt[n]) : t[r] - t["offset" + i];
|
|
2243
|
+
}, Ue = function(t, e) {
|
|
2244
2244
|
var i = "scroll" + (e === "x" ? "Left" : "Top");
|
|
2245
|
-
return t ===
|
|
2245
|
+
return t === Et && (t.pageXOffset != null ? i = "page" + e.toUpperCase() + "Offset" : t = kt[i] != null ? kt : qt), function() {
|
|
2246
2246
|
return t[i];
|
|
2247
2247
|
};
|
|
2248
|
-
},
|
|
2248
|
+
}, So = function(t, e, i, r) {
|
|
2249
2249
|
if (yr(t) && (t = t(e, i, r)), typeof t != "object")
|
|
2250
2250
|
return On(t) && t !== "max" && t.charAt(1) !== "=" ? {
|
|
2251
2251
|
x: t,
|
|
@@ -2263,73 +2263,73 @@ var j, Sn, Rt, kt, qt, An, ge, Ge, Cn = function() {
|
|
|
2263
2263
|
n[s] = s !== "onAutoKill" && yr(t[s]) ? t[s](e, i, r) : t[s];
|
|
2264
2264
|
return n;
|
|
2265
2265
|
}, Dn = function(t, e) {
|
|
2266
|
-
if (t =
|
|
2266
|
+
if (t = Sn(t)[0], !t || !t.getBoundingClientRect)
|
|
2267
2267
|
return console.warn("scrollTo target doesn't exist. Using 0") || {
|
|
2268
2268
|
x: 0,
|
|
2269
2269
|
y: 0
|
|
2270
2270
|
};
|
|
2271
|
-
var i = t.getBoundingClientRect(), r = !e || e ===
|
|
2272
|
-
top: kt.clientTop - (
|
|
2273
|
-
left: kt.clientLeft - (
|
|
2271
|
+
var i = t.getBoundingClientRect(), r = !e || e === Et || e === qt, n = r ? {
|
|
2272
|
+
top: kt.clientTop - (Et.pageYOffset || kt.scrollTop || qt.scrollTop || 0),
|
|
2273
|
+
left: kt.clientLeft - (Et.pageXOffset || kt.scrollLeft || qt.scrollLeft || 0)
|
|
2274
2274
|
} : e.getBoundingClientRect(), s = {
|
|
2275
2275
|
x: i.left - n.left,
|
|
2276
2276
|
y: i.top - n.top
|
|
2277
2277
|
};
|
|
2278
|
-
return !r && e && (s.x +=
|
|
2278
|
+
return !r && e && (s.x += Ue(e, "x")(), s.y += Ue(e, "y")()), s;
|
|
2279
2279
|
}, xr = function(t, e, i, r, n) {
|
|
2280
|
-
return !isNaN(t) && typeof t != "object" ? parseFloat(t) - n : On(t) && t.charAt(1) === "=" ? parseFloat(t.substr(2)) * (t.charAt(0) === "-" ? -1 : 1) + r - n : t === "max" ?
|
|
2281
|
-
},
|
|
2282
|
-
j = kn(), Cn() && j && typeof document < "u" && document.body && (
|
|
2280
|
+
return !isNaN(t) && typeof t != "object" ? parseFloat(t) - n : On(t) && t.charAt(1) === "=" ? parseFloat(t.substr(2)) * (t.charAt(0) === "-" ? -1 : 1) + r - n : t === "max" ? $e(e, i) - n : Math.min($e(e, i), Dn(t, e)[i] - n);
|
|
2281
|
+
}, Ri = function() {
|
|
2282
|
+
j = kn(), Cn() && j && typeof document < "u" && document.body && (Et = window, qt = document.body, kt = document.documentElement, Sn = j.utils.toArray, j.config({
|
|
2283
2283
|
autoKillThreshold: 7
|
|
2284
|
-
}), ge = j.config(),
|
|
2284
|
+
}), ge = j.config(), An = 1);
|
|
2285
2285
|
}, Te = {
|
|
2286
2286
|
version: "3.13.0",
|
|
2287
2287
|
name: "scrollTo",
|
|
2288
2288
|
rawVars: 1,
|
|
2289
2289
|
register: function(t) {
|
|
2290
|
-
j = t,
|
|
2290
|
+
j = t, Ri();
|
|
2291
2291
|
},
|
|
2292
2292
|
init: function(t, e, i, r, n) {
|
|
2293
|
-
|
|
2293
|
+
An || Ri();
|
|
2294
2294
|
var s = this, a = j.getProperty(t, "scrollSnapType");
|
|
2295
|
-
s.isWin = t ===
|
|
2295
|
+
s.isWin = t === Et, s.target = t, s.tween = i, e = So(e, r, t, n), s.vars = e, s.autoKill = !!("autoKill" in e ? e : ge).autoKill, s.getX = Ue(t, "x"), s.getY = Ue(t, "y"), s.x = s.xPrev = s.getX(), s.y = s.yPrev = s.getY(), Ge || (Ge = j.core.globals().ScrollTrigger), j.getProperty(t, "scrollBehavior") === "smooth" && j.set(t, {
|
|
2296
2296
|
scrollBehavior: "auto"
|
|
2297
2297
|
}), a && a !== "none" && (s.snap = 1, s.snapInline = t.style.scrollSnapType, t.style.scrollSnapType = "none"), e.x != null ? (s.add(s, "x", s.x, xr(e.x, t, "x", s.x, e.offsetX || 0), r, n), s._props.push("scrollTo_x")) : s.skipX = 1, e.y != null ? (s.add(s, "y", s.y, xr(e.y, t, "y", s.y, e.offsetY || 0), r, n), s._props.push("scrollTo_y")) : s.skipY = 1;
|
|
2298
2298
|
},
|
|
2299
2299
|
render: function(t, e) {
|
|
2300
|
-
for (var i = e._pt, r = e.target, n = e.tween, s = e.autoKill, a = e.xPrev,
|
|
2300
|
+
for (var i = e._pt, r = e.target, n = e.tween, s = e.autoKill, a = e.xPrev, h = e.yPrev, l = e.isWin, u = e.snap, f = e.snapInline, d, _, p, c, g; i; )
|
|
2301
2301
|
i.r(t, i.d), i = i._next;
|
|
2302
|
-
d =
|
|
2302
|
+
d = l || !e.skipX ? e.getX() : a, _ = l || !e.skipY ? e.getY() : h, p = _ - h, c = d - a, g = ge.autoKillThreshold, e.x < 0 && (e.x = 0), e.y < 0 && (e.y = 0), s && (!e.skipX && (c > g || c < -g) && d < $e(r, "x") && (e.skipX = 1), !e.skipY && (p > g || p < -g) && _ < $e(r, "y") && (e.skipY = 1), e.skipX && e.skipY && (n.kill(), e.vars.onAutoKill && e.vars.onAutoKill.apply(n, e.vars.onAutoKillParams || []))), l ? Et.scrollTo(e.skipX ? d : e.x, e.skipY ? _ : e.y) : (e.skipY || (r.scrollTop = e.y), e.skipX || (r.scrollLeft = e.x)), u && (t === 1 || t === 0) && (_ = r.scrollTop, d = r.scrollLeft, f ? r.style.scrollSnapType = f : r.style.removeProperty("scroll-snap-type"), r.scrollTop = _ + 1, r.scrollLeft = d + 1, r.scrollTop = _, r.scrollLeft = d), e.xPrev = e.x, e.yPrev = e.y, Ge && Ge.update();
|
|
2303
2303
|
},
|
|
2304
2304
|
kill: function(t) {
|
|
2305
2305
|
var e = t === "scrollTo", i = this._props.indexOf(t);
|
|
2306
2306
|
return (e || t === "scrollTo_x") && (this.skipX = 1), (e || t === "scrollTo_y") && (this.skipY = 1), i > -1 && this._props.splice(i, 1), !this._props.length;
|
|
2307
2307
|
}
|
|
2308
2308
|
};
|
|
2309
|
-
Te.max =
|
|
2309
|
+
Te.max = $e;
|
|
2310
2310
|
Te.getOffset = Dn;
|
|
2311
|
-
Te.buildGetter =
|
|
2311
|
+
Te.buildGetter = Ue;
|
|
2312
2312
|
Te.config = function(o) {
|
|
2313
|
-
ge ||
|
|
2313
|
+
ge || Ri() || (ge = j.config());
|
|
2314
2314
|
for (var t in o)
|
|
2315
2315
|
ge[t] = o[t];
|
|
2316
2316
|
};
|
|
2317
2317
|
kn() && j.registerPlugin(Te);
|
|
2318
2318
|
ie.registerPlugin(Te);
|
|
2319
|
-
ie.registerPlugin(
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
const Co =
|
|
2319
|
+
ie.registerPlugin(Bt);
|
|
2320
|
+
Bt.create("cubic", "0.65, 0, 0.35, 1");
|
|
2321
|
+
Bt.create("expo", "0.87, 0, 0.13, 1");
|
|
2322
|
+
Bt.create("quad", "0.45, 0, 0.55, 1");
|
|
2323
|
+
Bt.create("linear", "0.42, 0, 0.58, 1");
|
|
2324
|
+
const Co = Wn`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px;--track-color:var(--cx-color-neutral-200);--track-width:1px;isolation:isolate;display:block}.tab-group{border-radius:0;display:flex}.tab-group__tabs{display:flex;position:relative}.tab-group--button .tab-group__tabs{background-color:var(--cx-color-neutral-100);padding:var(--cx-spacing-2x-small);border-radius:12px;flex:none}.tab-group--button .tab-group__indicator{--indicator-width:0}.tab-group__indicator{transition:var(--cx-transition-fast) translate ease, var(--cx-transition-fast) width ease;position:absolute}.tab-group--timeline .tab-group__indicator{display:none!important}.tab-group__dropdown{z-index:1;align-items:center;height:100%;display:flex;position:absolute;top:0}.tab-group__dropdown__trigger{--color:var(--tab-color,var(--cx-color-neutral-700));--background-color:var(--tab-background-color,transparent);--color-focus:var(--tab-active-color,var(--cx-color-primary));--background-color-focus:var(--tab-active-background-color,transparent);--font-size:var(--cx-font-size-small);--caret-font-size:var(--cx-font-size-medium);--cx-button-text-transform:none;max-width:var(--tab-dropdown-trigger-max-width,150px);flex:1;align-self:center}.tab-group__dropdown__trigger::part(base){height:auto;min-height:auto;line-height:var(--cx-line-height-x-small);padding:var(--tab-padding,var(--cx-spacing-x-small));border-width:0}.tab-group__dropdown__trigger--active{--color:var(--tab-active-color,var(--cx-color-neutral-600));--background-color:var(--tab-active-background-color,transparent)}.tab-group__dropdown__trigger--hidden{visibility:hidden;pointer-events:none}.tab-group__dropdown__menu{gap:var(--cx-spacing-3x-small);flex-direction:column;display:flex}.tab-group__dropdown__menu--reverse{flex-direction:column-reverse}.tab-group__dropdown__menu-item{--label-color:var(--tab-color,var(--cx-color-neutral-700));--cx-menu-item-background-color:var(--tab-background-color,transparent);--cx-menu-item-background-color-hover:var(--tab-background-color,var(--cx-color-neutral-100));--cx-menu-item-background-color-active:var(--tab-active-background-color,var(--cx-menu-item-background-color-hover));--cx-menu-item-background-color-active-hover:var(--tab-active-background-color,var(--cx-color-neutral-200))}.tab-group__dropdown__menu-item:hover:not(.tab-group__dropdown__menu-item--active){--label-color:var(--cx-color-neutral-800)}.tab-group__dropdown__menu-item--active{--label-color:var(--tab-active-color,var(--cx-color-neutral-600))}.tab-group__dropdown__menu-item::part(base){padding:var(--cx-spacing-3x-small) var(--cx-spacing-x-small);min-height:40px}.tab-group__dropdown__menu-item::part(checked-icon),.tab-group__dropdown__menu-item::part(submenu-icon){display:none}.tab-group__nav-container{padding:var(--tab-group-nav-padding,0);overflow:clip}.tab-group--has-scroll-controls .tab-group__nav-container{padding:0 var(--cx-spacing-x-large);position:relative}.tab-group--has-scroll-controls .tab-group__scroll-button--start--hidden,.tab-group--has-scroll-controls .tab-group__scroll-button--end--hidden{visibility:hidden}.tab-group__body{display:block}:host([use-max-panel-height]) .tab-group__body{overflow:auto}:host([hide-panel-variant=absolute]) .tab-group__body{position:relative}:host([hide-panel-variant=absolute]) ::slotted(cx-tab-panel){width:100%;display:block;top:0;left:0;position:absolute!important}:host([hide-panel-variant=absolute]) ::slotted(cx-tab-panel:not([active])){visibility:hidden;opacity:0;pointer-events:none}.tab-group__scroll-button{width:var(--cx-spacing-x-large);justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0}.tab-group__scroll-button--start{left:0}.tab-group__scroll-button--end{right:0}.tab-group--rtl .tab-group__scroll-button--start{left:auto;right:0}.tab-group--rtl .tab-group__scroll-button--end{left:0;right:auto}.tab-group__nav{justify-content:flex-start}.tab-group--top{gap:var(--tab-group-top-gap,var(--cx-spacing-small));flex-direction:column}.tab-group--top .tab-group__nav-container{border-bottom:solid var(--track-width) var(--track-color);order:1}.tab-group--top .tab-group__nav{scrollbar-width:none;display:flex;overflow-x:auto}.tab-group--top.tab-group--has-hidden-tabs .tab-group__nav{width:fit-content;overflow-x:hidden}.tab-group--top .tab-group__nav::-webkit-scrollbar{width:0;height:0}.tab-group--top .tab-group__tabs{flex-direction:row;position:relative}.tab-group--top.tab-group--rtl .tab-group__tabs{flex-direction:row-reverse}.tab-group--default.tab-group--top .tab-group__tabs{flex:auto}.tab-group--top .tab-group__indicator{border-bottom:solid var(--indicator-width) var(--indicator-color);bottom:0}.tab-group--top .tab-group__body{order:3}.tab-group--top ::slotted(cx-tab-panel){--padding:var(--tab-panel-padding,var(--cx-spacing-medium))}.tab-group--bottom{flex-direction:column}.tab-group--bottom .tab-group__nav-container{border-top:solid var(--track-width) var(--track-color);order:3}.tab-group--bottom .tab-group__nav{scrollbar-width:none;display:flex;overflow-x:auto}.tab-group--bottom.tab-group--has-hidden-tabs .tab-group__nav{width:fit-content;overflow-x:hidden}.tab-group--bottom .tab-group__nav::-webkit-scrollbar{width:0;height:0}.tab-group--bottom .tab-group__tabs{flex-direction:row;position:relative}.tab-group--bottom.tab-group--rtl .tab-group__tabs{flex-direction:row-reverse}.tab-group--default.tab-group--bottom .tab-group__tabs{flex:auto}.tab-group--bottom .tab-group__indicator{border-top:solid var(--indicator-width) var(--indicator-color);top:0}.tab-group--bottom .tab-group__body{order:1}.tab-group--bottom ::slotted(cx-tab-panel){--padding:var(--tab-panel-padding,var(--cx-spacing-medium) 0)}.tab-group--start{flex-direction:row}.tab-group--start .tab-group__nav-container{order:1}.tab-group--start .tab-group__tabs{flex-direction:column;flex:none}.tab-group--start .tab-group__indicator{right:calc(-1 * var(--indicator-width))}.tab-group--default.tab-group--start .tab-group__tabs{border-inline-end:solid var(--track-width) var(--track-color)}.tab-group--default.tab-group--start .tab-group__indicator{border-right:solid var(--indicator-width) var(--indicator-color)}.tab-group--start .tab-group__body{flex:auto;order:3}.tab-group--start ::slotted(cx-tab-panel){--padding:var(--tab-panel-padding,0 var(--cx-spacing-medium))}.tab-group--end{flex-direction:row}.tab-group--end .tab-group__nav-container{border-inline-start:solid var(--track-width) var(--track-color);order:3}.tab-group--end .tab-group__tabs{flex-direction:column;flex:none}.tab-group--end .tab-group__indicator{left:calc(-1 * var(--indicator-width))}.tab-group--default.tab-group--end .tab-group__indicator{border-inline-start:solid var(--indicator-width) var(--indicator-color)}.tab-group--end .tab-group__body{flex:auto;order:1}.tab-group--end ::slotted(cx-tab-panel){--padding:var(--tab-panel-padding,0 var(--cx-spacing-medium))}.tab-pagination{justify-content:center;gap:var(--cx-spacing-small);flex-wrap:wrap;order:2;display:flex}.tab-pagination__dot{cursor:pointer;border-radius:var(--cx-border-radius-circle);width:var(--cx-spacing-small);height:var(--cx-spacing-small);background:0 0;background-color:var(--cx-color-neutral-300);border:0;margin:0;padding:0;display:block}.tab-pagination__dot--active{background-color:var(--cx-color-neutral-500)}.timeline-line{--offset:var(--min-tab-width);--horizontal-padding:var(--cx-spacing-small);top:18px;left:calc(var(--offset) / 2 + var(--horizontal-padding));width:calc(100% - var(--offset) - 2 * var(--horizontal-padding));background-color:var(--cx-color-neutral-300);height:2px;display:block;position:absolute;transform:translateY(-50%)}`;
|
|
2325
2325
|
var ko = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, k = (o, t, e, i) => {
|
|
2326
2326
|
for (var r = i > 1 ? void 0 : i ? Oo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
|
|
2327
2327
|
(s = o[n]) && (r = (i ? s(t, e, r) : s(r)) || r);
|
|
2328
2328
|
return i && r && ko(t, e, r), r;
|
|
2329
2329
|
};
|
|
2330
|
-
let
|
|
2330
|
+
let S = class extends Bn {
|
|
2331
2331
|
constructor() {
|
|
2332
|
-
super(...arguments), this.localize = new
|
|
2332
|
+
super(...arguments), this.localize = new Ln(this), this.tabs = [], this.focusableTabs = [], this.panels = [], this.hasScrollControls = !1, this.shouldHideScrollStartButton = !1, this.shouldHideScrollEndButton = !1, this.dropdownOffset = 0, this.tabPanelHeight = 0, this.tabAlignmentIndent = 0, this.shouldIgnoreAlignment = !1, this.shouldShowDropdown = !1, this.isActiveTabHidden = !1, this.paginationCount = 0, this.activePaginationIndex = 0, this.tabWidth = 0, this.clampedTabsPerPage = 0, this.placement = bi.Top, this.activation = wr.Auto, this.noScrollControls = !1, this.fixedScrollControls = !1, this.useMaxPanelHeight = !1, this.variant = ue.Default, this.overflowVariant = Tt.Scroll, this.hidePanelVariant = Ut.DisplayNone, this.tabAlignment = Ke.Start, this.dropdownLabel = "", this.tabsPerPage = 0, this.minTabWidth = 120, this.scrollOffset = 1;
|
|
2333
2333
|
}
|
|
2334
2334
|
connectedCallback() {
|
|
2335
2335
|
const o = Promise.all([
|
|
@@ -2347,7 +2347,7 @@ let A = class extends Fn {
|
|
|
2347
2347
|
attributes: !0,
|
|
2348
2348
|
childList: !0,
|
|
2349
2349
|
subtree: !0
|
|
2350
|
-
}), this.resizeObserver.observe(this.nav), this.hidePanelVariant ===
|
|
2350
|
+
}), this.resizeObserver.observe(this.nav), this.hidePanelVariant === Ut.Absolute && (this.setupPanelResizeObserver(), this.calculateTabPanelHeight()), o.then(() => {
|
|
2351
2351
|
new IntersectionObserver(
|
|
2352
2352
|
(e, i) => {
|
|
2353
2353
|
e[0].intersectionRatio > 0 && (this.setAriaLabels(), this.setActiveTab(this.getActiveTab() ?? this.tabs[0], {
|
|
@@ -2402,7 +2402,7 @@ let A = class extends Fn {
|
|
|
2402
2402
|
* Get the height of the body
|
|
2403
2403
|
*/
|
|
2404
2404
|
get bodyHeight() {
|
|
2405
|
-
return this.hidePanelVariant ===
|
|
2405
|
+
return this.hidePanelVariant === Ut.Absolute && this.tabPanelHeight > 0 ? `${this.tabPanelHeight}px` : "";
|
|
2406
2406
|
}
|
|
2407
2407
|
/**
|
|
2408
2408
|
* Get caret direction based on placement
|
|
@@ -2417,7 +2417,7 @@ let A = class extends Fn {
|
|
|
2417
2417
|
const r = t.closest("[data-panel]")?.getAttribute("data-panel");
|
|
2418
2418
|
e = this.tabs.find((n) => n.panel === r) ?? null;
|
|
2419
2419
|
}
|
|
2420
|
-
e?.closest("cx-tab-group") === this && e !== null && (this.setActiveTab(e, { scrollBehavior: "smooth" }), this.isActiveTabHidden = e.hasAttribute(
|
|
2420
|
+
e?.closest("cx-tab-group") === this && e !== null && (this.setActiveTab(e, { scrollBehavior: "smooth" }), this.isActiveTabHidden = e.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE));
|
|
2421
2421
|
}
|
|
2422
2422
|
handleKeyDown(o) {
|
|
2423
2423
|
const t = o.target;
|
|
@@ -2426,7 +2426,7 @@ let A = class extends Fn {
|
|
|
2426
2426
|
const r = t.closest("[data-panel]")?.getAttribute("data-panel");
|
|
2427
2427
|
e = this.tabs.find((n) => n.panel === r) ?? null;
|
|
2428
2428
|
}
|
|
2429
|
-
if (e?.closest("cx-tab-group") === this && (["Enter", " "].includes(o.key) && e !== null && (this.setActiveTab(e, { scrollBehavior: "smooth" }), this.isActiveTabHidden = e.hasAttribute(
|
|
2429
|
+
if (e?.closest("cx-tab-group") === this && (["Enter", " "].includes(o.key) && e !== null && (this.setActiveTab(e, { scrollBehavior: "smooth" }), this.isActiveTabHidden = e.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE), o.preventDefault()), [
|
|
2430
2430
|
"ArrowLeft",
|
|
2431
2431
|
"ArrowRight",
|
|
2432
2432
|
"ArrowUp",
|
|
@@ -2446,53 +2446,53 @@ let A = class extends Fn {
|
|
|
2446
2446
|
break;
|
|
2447
2447
|
default:
|
|
2448
2448
|
if (["top", "bottom"].includes(this.placement) && o.key === (n ? "ArrowRight" : "ArrowLeft") || ["start", "end"].includes(this.placement) && o.key === "ArrowUp") {
|
|
2449
|
-
const a = this.tabs.findIndex((
|
|
2449
|
+
const a = this.tabs.findIndex((h) => h === r);
|
|
2450
2450
|
s = this.findNextFocusableTab(a, "backward");
|
|
2451
2451
|
} else if (["top", "bottom"].includes(this.placement) && o.key === (n ? "ArrowLeft" : "ArrowRight") || ["start", "end"].includes(this.placement) && o.key === "ArrowDown") {
|
|
2452
|
-
const a = this.tabs.findIndex((
|
|
2452
|
+
const a = this.tabs.findIndex((h) => h === r);
|
|
2453
2453
|
s = this.findNextFocusableTab(a, "forward");
|
|
2454
2454
|
}
|
|
2455
2455
|
}
|
|
2456
2456
|
if (!s)
|
|
2457
2457
|
return;
|
|
2458
|
-
if (s.tabIndex = 0, s.focus({ preventScroll: !0 }), this.allowDropdownOverflow && this.dropdown !== null && s.hasAttribute(
|
|
2459
|
-
this.setActiveTab(s, { scrollBehavior: "smooth" }), this.isActiveTabHidden = s.hasAttribute(
|
|
2458
|
+
if (s.tabIndex = 0, s.focus({ preventScroll: !0 }), this.allowDropdownOverflow && this.dropdown !== null && s.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE) && this.dropdown.show(), this.activation === "auto")
|
|
2459
|
+
this.setActiveTab(s, { scrollBehavior: "smooth" }), this.isActiveTabHidden = s.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE);
|
|
2460
2460
|
else
|
|
2461
2461
|
for (const a of this.tabs)
|
|
2462
2462
|
a.tabIndex = a === s ? 0 : -1;
|
|
2463
|
-
!s.hasAttribute(
|
|
2463
|
+
!s.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE) && ["top", "bottom"].includes(this.placement) && Zi(s, this.nav, "horizontal"), o.preventDefault();
|
|
2464
2464
|
}
|
|
2465
2465
|
if (this.allowDropdownOverflow && this.dropdown?.open) {
|
|
2466
2466
|
o.preventDefault();
|
|
2467
|
-
const a = this.menu.getAllItems(),
|
|
2467
|
+
const a = this.menu.getAllItems(), h = a.findIndex(
|
|
2468
2468
|
(d) => d.getAttribute("data-panel") === this.activeTab?.panel
|
|
2469
2469
|
);
|
|
2470
|
-
let
|
|
2470
|
+
let l = -1;
|
|
2471
2471
|
const u = this.tabs.filter(
|
|
2472
|
-
(d) => !d.hasAttribute(
|
|
2472
|
+
(d) => !d.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE)
|
|
2473
2473
|
).length;
|
|
2474
2474
|
let f = o.key;
|
|
2475
2475
|
switch (this.placement === bi.Bottom && (f = f === "ArrowUp" && "ArrowDown" || f === "ArrowDown" && "ArrowUp" || f), f) {
|
|
2476
2476
|
case "Home":
|
|
2477
|
-
this.dropdown.hide(), this.tabs[0].focus(),
|
|
2477
|
+
this.dropdown.hide(), this.tabs[0].focus(), l = 0;
|
|
2478
2478
|
break;
|
|
2479
2479
|
case "ArrowUp":
|
|
2480
|
-
if (
|
|
2480
|
+
if (h === 0) {
|
|
2481
2481
|
this.dropdown.hide();
|
|
2482
|
-
const d = this.tabs.filter((_) => !_.hasAttribute(
|
|
2483
|
-
d && (d.focus(),
|
|
2482
|
+
const d = this.tabs.filter((_) => !_.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE)).at(-1);
|
|
2483
|
+
d && (d.focus(), l = this.tabs.findIndex(
|
|
2484
2484
|
(_) => _ === d
|
|
2485
2485
|
));
|
|
2486
2486
|
} else
|
|
2487
|
-
this.menu.setCurrentItem(a[
|
|
2487
|
+
this.menu.setCurrentItem(a[h - 1]), a[h - 1].focus(), l = u + h - 1;
|
|
2488
2488
|
break;
|
|
2489
2489
|
case "ArrowDown":
|
|
2490
|
-
|
|
2490
|
+
h === a.length - 1 ? (this.dropdown.hide(), this.tabs[0].focus(), l = 0) : (this.menu.setCurrentItem(a[h + 1]), a[h + 1].focus(), l = u + h + 1);
|
|
2491
2491
|
break;
|
|
2492
2492
|
}
|
|
2493
|
-
this.activation === "auto" &&
|
|
2493
|
+
this.activation === "auto" && l >= 0 && (this.setActiveTab(this.tabs[l], {
|
|
2494
2494
|
scrollBehavior: "smooth"
|
|
2495
|
-
}), this.isActiveTabHidden = this.tabs[
|
|
2495
|
+
}), this.isActiveTabHidden = this.tabs[l].hasAttribute(S.HIDDEN_TAB_ATTRIBUTE));
|
|
2496
2496
|
}
|
|
2497
2497
|
}
|
|
2498
2498
|
}
|
|
@@ -2511,7 +2511,7 @@ let A = class extends Fn {
|
|
|
2511
2511
|
handleDropdownAfterShow() {
|
|
2512
2512
|
this.dropdown.focusOnTrigger();
|
|
2513
2513
|
const o = this.tabs.findIndex((r) => r.tabIndex === 0), t = this.tabs.filter(
|
|
2514
|
-
(r) => !r.hasAttribute(
|
|
2514
|
+
(r) => !r.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE)
|
|
2515
2515
|
).length;
|
|
2516
2516
|
if (o === -1)
|
|
2517
2517
|
return;
|
|
@@ -2533,9 +2533,9 @@ let A = class extends Fn {
|
|
|
2533
2533
|
for (const i of this.tabs)
|
|
2534
2534
|
i.active = i === this.activeTab, i.tabIndex = i === this.activeTab ? 0 : -1;
|
|
2535
2535
|
for (const i of this.panels)
|
|
2536
|
-
i.active = i.name === this.activeTab?.panel, this.hidePanelVariant ===
|
|
2537
|
-
if (this.syncIndicator(), this.calculateTabPanelHeight(), !this.activeTab?.hasAttribute(
|
|
2538
|
-
if (
|
|
2536
|
+
i.active = i.name === this.activeTab?.panel, this.hidePanelVariant === Ut.Absolute && (i.inert = i.name !== this.activeTab?.panel);
|
|
2537
|
+
if (this.syncIndicator(), this.calculateTabPanelHeight(), !this.activeTab?.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE) && ["top", "bottom"].includes(this.placement)) {
|
|
2538
|
+
if ($n(this.nav, this.activeTab, 10) || !t.paginate)
|
|
2539
2539
|
Zi(
|
|
2540
2540
|
this.activeTab,
|
|
2541
2541
|
this.nav,
|
|
@@ -2568,12 +2568,12 @@ let A = class extends Fn {
|
|
|
2568
2568
|
}
|
|
2569
2569
|
repositionIndicator() {
|
|
2570
2570
|
let o = this.getActiveTab();
|
|
2571
|
-
if (o?.hasAttribute(
|
|
2571
|
+
if (o?.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE) && (o = this.tabs.find((a) => a.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE))), !o)
|
|
2572
2572
|
return;
|
|
2573
|
-
const t = o.hasAttribute(
|
|
2574
|
-
(a,
|
|
2575
|
-
left: a.left +
|
|
2576
|
-
top: a.top +
|
|
2573
|
+
const t = o.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE) ? this.dropdownTrigger?.clientWidth ?? 0 : o.clientWidth, e = o.clientHeight, i = this.localize.dir() === "rtl", r = this.getAllTabs(), s = r.slice(0, r.indexOf(o)).reduce(
|
|
2574
|
+
(a, h) => ({
|
|
2575
|
+
left: a.left + h.clientWidth,
|
|
2576
|
+
top: a.top + h.clientHeight
|
|
2577
2577
|
}),
|
|
2578
2578
|
{ left: 0, top: 0 }
|
|
2579
2579
|
);
|
|
@@ -2593,42 +2593,42 @@ let A = class extends Fn {
|
|
|
2593
2593
|
*/
|
|
2594
2594
|
syncTabsAndPanels() {
|
|
2595
2595
|
if (this.tabs = this.getAllTabs(), this.focusableTabs = this.tabs.filter((o) => !o.disabled), this.panels = this.getAllPanels(), this.syncIndicator(), this.updateComplete.then(() => {
|
|
2596
|
-
this.updateScrollControls(), this.updatePagination(), this.variant === ue.Timeline && this.handleVariantChange(), this.hidePanelVariant ===
|
|
2596
|
+
this.updateScrollControls(), this.updatePagination(), this.variant === ue.Timeline && this.handleVariantChange(), this.hidePanelVariant === Ut.Absolute && (this.setupPanelResizeObserver(), this.calculateTabPanelHeight());
|
|
2597
2597
|
}), this.allowDropdownOverflow) {
|
|
2598
2598
|
this.overflowObserver?.disconnect();
|
|
2599
2599
|
const o = new IntersectionObserver(
|
|
2600
2600
|
(t) => {
|
|
2601
2601
|
o.disconnect();
|
|
2602
|
-
const e = getComputedStyle(this.tabButtons), i = parseFloat(e.paddingLeft || "0") + parseFloat(e.paddingRight || "0"), r = this.container.clientWidth - i, n = this.
|
|
2603
|
-
this.dropdownOffset = 0, this.isActiveTabHidden = !1, this.shouldShowDropdown = !1, this.tabs.forEach((
|
|
2604
|
-
|
|
2602
|
+
const e = getComputedStyle(this.tabButtons), i = parseFloat(e.paddingLeft || "0") + parseFloat(e.paddingRight || "0"), r = this.container.clientWidth - i, n = this.dropdownTrigger?.clientWidth ?? 0, s = t.length;
|
|
2603
|
+
this.dropdownOffset = 0, this.isActiveTabHidden = !1, this.shouldShowDropdown = !1, this.tabs.forEach((a) => {
|
|
2604
|
+
a.style.setProperty("--tab-max-width", "unset"), a.offsetWidth;
|
|
2605
2605
|
});
|
|
2606
|
-
for (const [
|
|
2607
|
-
const
|
|
2608
|
-
let
|
|
2609
|
-
if (
|
|
2610
|
-
let
|
|
2611
|
-
switch (
|
|
2606
|
+
for (const [a, h] of t.entries()) {
|
|
2607
|
+
const l = h.target, u = r - this.dropdownOffset, f = l.getBoundingClientRect().width;
|
|
2608
|
+
let d = a === t.length - 1 ? u : u - n;
|
|
2609
|
+
if (a === 0 || a === 1) {
|
|
2610
|
+
let p;
|
|
2611
|
+
switch (s) {
|
|
2612
2612
|
case 1:
|
|
2613
|
-
|
|
2613
|
+
p = r;
|
|
2614
2614
|
break;
|
|
2615
2615
|
case 2:
|
|
2616
|
-
|
|
2616
|
+
p = r / 2;
|
|
2617
2617
|
break;
|
|
2618
2618
|
default:
|
|
2619
|
-
|
|
2619
|
+
p = (r - n) / 2;
|
|
2620
2620
|
break;
|
|
2621
2621
|
}
|
|
2622
|
-
|
|
2622
|
+
d = a === 1 ? p + Math.max(0, p - this.tabs[0].getBoundingClientRect().width) : p;
|
|
2623
2623
|
}
|
|
2624
|
-
let
|
|
2625
|
-
if (
|
|
2626
|
-
|
|
2624
|
+
let _ = f > d;
|
|
2625
|
+
if (a >= 2 && (_ = _ && d > S.MIN_CLAMP_WIDTH), !this.shouldShowDropdown && _) {
|
|
2626
|
+
l.style.setProperty("--tab-max-width", `${d}px`), l.toggleAttribute(S.HIDDEN_TAB_ATTRIBUTE, !1), this.dropdownOffset += d;
|
|
2627
2627
|
continue;
|
|
2628
2628
|
}
|
|
2629
|
-
this.shouldShowDropdown ||
|
|
2629
|
+
this.shouldShowDropdown || f > d ? (l.active && (this.isActiveTabHidden = !0), l.toggleAttribute(S.HIDDEN_TAB_ATTRIBUTE, !0), this.shouldShowDropdown = !0) : (l.toggleAttribute(S.HIDDEN_TAB_ATTRIBUTE, !1), this.dropdownOffset += l.getBoundingClientRect().width);
|
|
2630
2630
|
}
|
|
2631
|
-
this.dropdownOffset = Math.floor(this.dropdownOffset), this.dropdownOffset +
|
|
2631
|
+
this.dropdownOffset = Math.floor(this.dropdownOffset), this.dropdownOffset + n > r && (this.dropdownOffset = r - n), this.tabAlignment !== Ke.Start ? (this.tabAlignmentIndent = r - this.dropdownOffset - (this.shouldShowDropdown ? n : 0), this.tabAlignment === Ke.Center && (this.tabAlignmentIndent = Math.floor(this.tabAlignmentIndent / 2))) : this.tabAlignmentIndent = 0;
|
|
2632
2632
|
},
|
|
2633
2633
|
{
|
|
2634
2634
|
root: this.nav,
|
|
@@ -2641,7 +2641,7 @@ let A = class extends Fn {
|
|
|
2641
2641
|
} else {
|
|
2642
2642
|
this.overflowObserver?.disconnect(), this.overflowObserver = void 0;
|
|
2643
2643
|
for (const o of this.tabs)
|
|
2644
|
-
o.
|
|
2644
|
+
o.toggleAttribute(S.HIDDEN_TAB_ATTRIBUTE, !1);
|
|
2645
2645
|
}
|
|
2646
2646
|
}
|
|
2647
2647
|
/**
|
|
@@ -2664,7 +2664,7 @@ let A = class extends Fn {
|
|
|
2664
2664
|
this.paginationCount = Math.ceil(this.tabButtons.scrollWidth / t);
|
|
2665
2665
|
let e = Math.round(o / t);
|
|
2666
2666
|
if (Math.ceil(o + t) >= Math.round(this.tabButtons.scrollWidth) && e < this.paginationCount - 1 && (e = this.paginationCount - 1), this.activePaginationIndex = e, this.tabsPerPage > 0) {
|
|
2667
|
-
const i = getComputedStyle(this.tabButtons).getPropertyValue("--tab-padding"), [, r, , n] =
|
|
2667
|
+
const i = getComputedStyle(this.tabButtons).getPropertyValue("--tab-padding"), [, r, , n] = Un(i), s = t / this.tabsPerPage, a = this.minTabWidth + Number.parseFloat(r) + Number.parseFloat(n);
|
|
2668
2668
|
s < a ? (this.tabWidth = a, this.clampedTabsPerPage = Math.max(
|
|
2669
2669
|
1,
|
|
2670
2670
|
Math.floor(t / this.tabWidth)
|
|
@@ -2732,7 +2732,7 @@ let A = class extends Fn {
|
|
|
2732
2732
|
this.syncTabsAndPanels();
|
|
2733
2733
|
}
|
|
2734
2734
|
handleAbsoluteHeightChange() {
|
|
2735
|
-
if (this.hidePanelVariant ===
|
|
2735
|
+
if (this.hidePanelVariant === Ut.Absolute)
|
|
2736
2736
|
this.setupPanelResizeObserver(), this.calculateTabPanelHeight();
|
|
2737
2737
|
else {
|
|
2738
2738
|
this.cleanupPanelResizeObserver(), this.tabPanelHeight = 0;
|
|
@@ -2750,7 +2750,7 @@ let A = class extends Fn {
|
|
|
2750
2750
|
* Setup ResizeObserver for all panels when keepHiddenHeight is enabled
|
|
2751
2751
|
*/
|
|
2752
2752
|
setupPanelResizeObserver() {
|
|
2753
|
-
if (this.hidePanelVariant !==
|
|
2753
|
+
if (this.hidePanelVariant !== Ut.Absolute) {
|
|
2754
2754
|
this.cleanupPanelResizeObserver();
|
|
2755
2755
|
return;
|
|
2756
2756
|
}
|
|
@@ -2783,7 +2783,7 @@ let A = class extends Fn {
|
|
|
2783
2783
|
const o = this.localize.dir() === "rtl", t = this.tabButtons ? getComputedStyle(this.tabButtons) : void 0, e = Number.parseFloat(
|
|
2784
2784
|
(o ? t?.paddingRight : t?.paddingLeft) || "0"
|
|
2785
2785
|
);
|
|
2786
|
-
return
|
|
2786
|
+
return Ve({
|
|
2787
2787
|
[o ? "right" : "left"]: `${this.dropdownOffset + e}px`
|
|
2788
2788
|
});
|
|
2789
2789
|
}
|
|
@@ -2819,14 +2819,14 @@ let A = class extends Fn {
|
|
|
2819
2819
|
}
|
|
2820
2820
|
renderPaginationDot(o) {
|
|
2821
2821
|
const t = o + 1;
|
|
2822
|
-
return
|
|
2822
|
+
return Nt`<button part="dot${this.activePaginationIndex === o ? " dot--active" : ""}" class=${Lt({
|
|
2823
2823
|
"tab-pagination__dot": !0,
|
|
2824
2824
|
"tab-pagination__dot--active": o === this.activePaginationIndex
|
|
2825
2825
|
})} role="tab" type="button" aria-selected=${o === this.activePaginationIndex ? "true" : "false"} aria-label=${this.localize.term("slideNum", t)} tabindex="0" data-index=${o} @click=${this.handlePaginationDotClick} @keydown=${this.handlePaginationDotKeyDown}></button>`;
|
|
2826
2826
|
}
|
|
2827
2827
|
render() {
|
|
2828
2828
|
const o = this.localize.dir() === "rtl", t = this.allowDropdownOverflow && this.isActiveTabHidden, e = this.overflowVariant === Tt.Pagination && this.paginationCount > 1 && Number.isFinite(this.paginationCount);
|
|
2829
|
-
return
|
|
2829
|
+
return Nt`<div part="base" class=${Lt({
|
|
2830
2830
|
"tab-group": !0,
|
|
2831
2831
|
"tab-group--bottom": this.placement === "bottom",
|
|
2832
2832
|
"tab-group--end": this.placement === "end",
|
|
@@ -2838,23 +2838,23 @@ let A = class extends Fn {
|
|
|
2838
2838
|
[`tab-group--${this.variant}`]: !0
|
|
2839
2839
|
})} @click=${this.handleClick} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleNavContainerResize}><div class="tab-group__nav-container" part="nav">${Pe(
|
|
2840
2840
|
this.overflowVariant === Tt.Scroll && this.hasScrollControls,
|
|
2841
|
-
() =>
|
|
2841
|
+
() => Nt`<cx-icon-button part="scroll-button scroll-button--start" exportparts="base:scroll-button__base" class=${Lt({
|
|
2842
2842
|
"tab-group__scroll-button": !0,
|
|
2843
2843
|
"tab-group__scroll-button--start": !0,
|
|
2844
2844
|
"tab-group__scroll-button--start--hidden": this.shouldHideScrollStartButton
|
|
2845
2845
|
})} name=${o ? "chevron_right" : "chevron_left"} tabindex="-1" aria-hidden="true" label=${this.localize.term("scrollToStart")} @click=${this.handleScrollToStart}></cx-icon-button>`
|
|
2846
|
-
)}<div part="tab-group" class="tab-group__nav" style=${
|
|
2846
|
+
)}<div part="tab-group" class="tab-group__nav" style=${Ve({
|
|
2847
2847
|
"--min-tab-width": `${this.minTabWidth}px`,
|
|
2848
2848
|
justifyContent: this.overflowVariant === Tt.Dropdown || this.shouldIgnoreAlignment ? "flex-start" : this.tabAlignment,
|
|
2849
2849
|
transform: `translateX(${this.tabAlignmentIndent}px)`
|
|
2850
2850
|
})} @scrollend=${this.handleScrollEnd}><div part="tabs" class="tab-group__tabs" role="tablist"><div part="active-tab-indicator" class="tab-group__indicator"></div>${Pe(
|
|
2851
2851
|
this.variant === ue.Timeline && this.clampedTabsPerPage > 1,
|
|
2852
|
-
() =>
|
|
2853
|
-
)}<cx-resize-observer @cx-resize=${this.handleIndicatorResize}><slot name="nav" @slotchange=${this.syncTabsAndPanels} style=${
|
|
2852
|
+
() => Nt`<div class="timeline-line"></div>`
|
|
2853
|
+
)}<cx-resize-observer @cx-resize=${this.handleIndicatorResize}><slot name="nav" @slotchange=${this.syncTabsAndPanels} style=${Ve(this.tabWidth > 0 ? {
|
|
2854
2854
|
"--width": `${this.tabWidth}px`
|
|
2855
2855
|
} : {})}></slot>${Pe(
|
|
2856
2856
|
this.allowDropdownOverflow,
|
|
2857
|
-
() =>
|
|
2857
|
+
() => Nt`<cx-dropdown class=${Lt({
|
|
2858
2858
|
"tab-group__dropdown": !0
|
|
2859
2859
|
})} style=${Ji(
|
|
2860
2860
|
[o, this.dropdownOffset],
|
|
@@ -2862,32 +2862,32 @@ let A = class extends Fn {
|
|
|
2862
2862
|
)} placement=${Ji(
|
|
2863
2863
|
[this.placement, o],
|
|
2864
2864
|
() => this.getDropdownPlacement()
|
|
2865
|
-
)} hoist ?disabled=${!this.shouldShowDropdown} ignored-keys="ArrowUp ArrowDown Home" @cx-after-show=${this.handleDropdownAfterShow}><cx-button slot="trigger" tabindex="-1" variant="custom" caret caret-direction=${this.caretDirection} class=${
|
|
2865
|
+
)} hoist ?disabled=${!this.shouldShowDropdown} ignored-keys="ArrowUp ArrowDown Home" @cx-after-show=${this.handleDropdownAfterShow}><cx-button slot="trigger" tabindex="-1" variant="custom" caret caret-direction=${this.caretDirection} class=${Lt({
|
|
2866
2866
|
"tab-group__dropdown__trigger": !0,
|
|
2867
2867
|
"tab-group__dropdown__trigger--active": t,
|
|
2868
2868
|
"tab-group__dropdown__trigger--hidden": !this.shouldShowDropdown
|
|
2869
|
-
})}>${this.dropdownLabel}</cx-button><cx-menu class=${
|
|
2869
|
+
})}>${this.dropdownLabel}</cx-button><cx-menu class=${Lt({
|
|
2870
2870
|
"tab-group__dropdown__menu": !0,
|
|
2871
2871
|
"tab-group__dropdown__menu--reverse": this.placement === "bottom"
|
|
2872
2872
|
})} ignored-keys="ArrowUp ArrowDown Home" bubble-keydown>${tr(
|
|
2873
2873
|
this.tabs.filter(
|
|
2874
|
-
(i) => i.hasAttribute(
|
|
2874
|
+
(i) => i.hasAttribute(S.HIDDEN_TAB_ATTRIBUTE)
|
|
2875
2875
|
),
|
|
2876
|
-
(i) =>
|
|
2876
|
+
(i) => Nt`<cx-menu-item class=${Lt({
|
|
2877
2877
|
"tab-group__dropdown__menu-item": !0,
|
|
2878
2878
|
"tab-group__dropdown__menu-item--active": i.active
|
|
2879
2879
|
})} aria-active=${i.ariaSelected} aria-disabled=${i.ariaDisabled} ?active=${i.active} ?disabled=${i.disabled} data-panel=${i.panel}>${i.textContent}</cx-menu-item>`
|
|
2880
2880
|
)}</cx-menu></cx-dropdown>`
|
|
2881
2881
|
)}</cx-resize-observer></div></div>${Pe(
|
|
2882
2882
|
this.overflowVariant === Tt.Scroll && this.hasScrollControls,
|
|
2883
|
-
() =>
|
|
2883
|
+
() => Nt`<cx-icon-button part="scroll-button scroll-button--end" exportparts="base:scroll-button__base" class=${Lt({
|
|
2884
2884
|
"tab-group__scroll-button": !0,
|
|
2885
2885
|
"tab-group__scroll-button--end": !0,
|
|
2886
2886
|
"tab-group__scroll-button--end--hidden": this.shouldHideScrollEndButton
|
|
2887
2887
|
})} name=${o ? "chevron_left" : "chevron_right"} tabindex="-1" aria-hidden="true" label=${this.localize.term("scrollToEnd")} @click=${this.handleScrollToEnd}></cx-icon-button>`
|
|
2888
|
-
)}</div></cx-resize-observer><slot part="body" class="tab-group__body" style=${
|
|
2888
|
+
)}</div></cx-resize-observer><slot part="body" class="tab-group__body" style=${Ve({ height: this.bodyHeight })} @slotchange=${this.syncTabsAndPanels}></slot>${Pe(
|
|
2889
2889
|
e,
|
|
2890
|
-
() =>
|
|
2890
|
+
() => Nt`<div class="tab-pagination">${tr(
|
|
2891
2891
|
Array.from(
|
|
2892
2892
|
{ length: this.paginationCount },
|
|
2893
2893
|
(i, r) => r
|
|
@@ -2897,164 +2897,165 @@ let A = class extends Fn {
|
|
|
2897
2897
|
)}</div>`;
|
|
2898
2898
|
}
|
|
2899
2899
|
};
|
|
2900
|
-
|
|
2901
|
-
|
|
2900
|
+
S.styles = [Fn, Co];
|
|
2901
|
+
S.dependencies = {
|
|
2902
2902
|
"cx-button": Yn,
|
|
2903
2903
|
"cx-dropdown": Xn,
|
|
2904
2904
|
"cx-icon-button": qn,
|
|
2905
2905
|
"cx-menu": Gn,
|
|
2906
2906
|
"cx-menu-item": Kn,
|
|
2907
|
-
"cx-resize-observer":
|
|
2907
|
+
"cx-resize-observer": zn,
|
|
2908
2908
|
"cx-tab": jn
|
|
2909
2909
|
};
|
|
2910
|
-
|
|
2910
|
+
S.MIN_CLAMP_WIDTH = 100;
|
|
2911
|
+
S.HIDDEN_TAB_ATTRIBUTE = "data-cx-tab-group__tab--hidden";
|
|
2911
2912
|
k([
|
|
2912
|
-
|
|
2913
|
-
],
|
|
2913
|
+
zt(".tab-group")
|
|
2914
|
+
], S.prototype, "tabGroup", 2);
|
|
2914
2915
|
k([
|
|
2915
|
-
|
|
2916
|
-
],
|
|
2916
|
+
zt(".tab-group__body")
|
|
2917
|
+
], S.prototype, "body", 2);
|
|
2917
2918
|
k([
|
|
2918
|
-
|
|
2919
|
-
],
|
|
2919
|
+
zt(".tab-group__nav-container")
|
|
2920
|
+
], S.prototype, "container", 2);
|
|
2920
2921
|
k([
|
|
2921
|
-
|
|
2922
|
-
],
|
|
2922
|
+
zt(".tab-group__nav")
|
|
2923
|
+
], S.prototype, "nav", 2);
|
|
2923
2924
|
k([
|
|
2924
|
-
|
|
2925
|
-
],
|
|
2925
|
+
zt(".tab-group__indicator")
|
|
2926
|
+
], S.prototype, "indicator", 2);
|
|
2926
2927
|
k([
|
|
2927
|
-
|
|
2928
|
-
],
|
|
2928
|
+
zt(".tab-group__dropdown")
|
|
2929
|
+
], S.prototype, "dropdown", 2);
|
|
2929
2930
|
k([
|
|
2930
|
-
|
|
2931
|
-
],
|
|
2931
|
+
zt(".tab-group__dropdown__menu")
|
|
2932
|
+
], S.prototype, "menu", 2);
|
|
2932
2933
|
k([
|
|
2933
|
-
|
|
2934
|
-
],
|
|
2934
|
+
zt(".tab-group__tabs")
|
|
2935
|
+
], S.prototype, "tabButtons", 2);
|
|
2935
2936
|
k([
|
|
2936
|
-
|
|
2937
|
-
],
|
|
2937
|
+
zt(".tab-group__dropdown__trigger")
|
|
2938
|
+
], S.prototype, "dropdownTrigger", 2);
|
|
2938
2939
|
k([
|
|
2939
2940
|
Hn(".tab-pagination__dot")
|
|
2940
|
-
],
|
|
2941
|
+
], S.prototype, "allDots", 2);
|
|
2941
2942
|
k([
|
|
2942
2943
|
at()
|
|
2943
|
-
],
|
|
2944
|
+
], S.prototype, "activeTab", 2);
|
|
2944
2945
|
k([
|
|
2945
2946
|
at()
|
|
2946
|
-
],
|
|
2947
|
+
], S.prototype, "hasScrollControls", 2);
|
|
2947
2948
|
k([
|
|
2948
2949
|
at()
|
|
2949
|
-
],
|
|
2950
|
+
], S.prototype, "shouldHideScrollStartButton", 2);
|
|
2950
2951
|
k([
|
|
2951
2952
|
at()
|
|
2952
|
-
],
|
|
2953
|
+
], S.prototype, "shouldHideScrollEndButton", 2);
|
|
2953
2954
|
k([
|
|
2954
2955
|
at()
|
|
2955
|
-
],
|
|
2956
|
+
], S.prototype, "dropdownOffset", 2);
|
|
2956
2957
|
k([
|
|
2957
2958
|
at()
|
|
2958
|
-
],
|
|
2959
|
+
], S.prototype, "tabPanelHeight", 2);
|
|
2959
2960
|
k([
|
|
2960
2961
|
at()
|
|
2961
|
-
],
|
|
2962
|
+
], S.prototype, "tabAlignmentIndent", 2);
|
|
2962
2963
|
k([
|
|
2963
2964
|
at()
|
|
2964
|
-
],
|
|
2965
|
+
], S.prototype, "shouldIgnoreAlignment", 2);
|
|
2965
2966
|
k([
|
|
2966
2967
|
at()
|
|
2967
|
-
],
|
|
2968
|
+
], S.prototype, "shouldShowDropdown", 2);
|
|
2968
2969
|
k([
|
|
2969
2970
|
at()
|
|
2970
|
-
],
|
|
2971
|
+
], S.prototype, "isActiveTabHidden", 2);
|
|
2971
2972
|
k([
|
|
2972
2973
|
at()
|
|
2973
|
-
],
|
|
2974
|
+
], S.prototype, "paginationCount", 2);
|
|
2974
2975
|
k([
|
|
2975
2976
|
at()
|
|
2976
|
-
],
|
|
2977
|
+
], S.prototype, "activePaginationIndex", 2);
|
|
2977
2978
|
k([
|
|
2978
2979
|
at()
|
|
2979
|
-
],
|
|
2980
|
+
], S.prototype, "tabWidth", 2);
|
|
2980
2981
|
k([
|
|
2981
2982
|
at()
|
|
2982
|
-
],
|
|
2983
|
+
], S.prototype, "clampedTabsPerPage", 2);
|
|
2983
2984
|
k([
|
|
2984
2985
|
wt()
|
|
2985
|
-
],
|
|
2986
|
+
], S.prototype, "placement", 2);
|
|
2986
2987
|
k([
|
|
2987
2988
|
wt()
|
|
2988
|
-
],
|
|
2989
|
+
], S.prototype, "activation", 2);
|
|
2989
2990
|
k([
|
|
2990
2991
|
wt({ attribute: "no-scroll-controls", type: Boolean })
|
|
2991
|
-
],
|
|
2992
|
+
], S.prototype, "noScrollControls", 2);
|
|
2992
2993
|
k([
|
|
2993
2994
|
wt({ attribute: "fixed-scroll-controls", type: Boolean })
|
|
2994
|
-
],
|
|
2995
|
+
], S.prototype, "fixedScrollControls", 2);
|
|
2995
2996
|
k([
|
|
2996
2997
|
wt({ attribute: "use-max-panel-height", type: Boolean })
|
|
2997
|
-
],
|
|
2998
|
+
], S.prototype, "useMaxPanelHeight", 2);
|
|
2998
2999
|
k([
|
|
2999
3000
|
wt({ reflect: !0, type: String })
|
|
3000
|
-
],
|
|
3001
|
+
], S.prototype, "variant", 2);
|
|
3001
3002
|
k([
|
|
3002
3003
|
wt({ attribute: "overflow-variant", reflect: !0, type: String })
|
|
3003
|
-
],
|
|
3004
|
+
], S.prototype, "overflowVariant", 2);
|
|
3004
3005
|
k([
|
|
3005
3006
|
wt({ attribute: "hide-panel-variant", reflect: !0, type: String })
|
|
3006
|
-
],
|
|
3007
|
+
], S.prototype, "hidePanelVariant", 2);
|
|
3007
3008
|
k([
|
|
3008
3009
|
wt({ attribute: "tab-alignment", reflect: !0, type: String })
|
|
3009
|
-
],
|
|
3010
|
+
], S.prototype, "tabAlignment", 2);
|
|
3010
3011
|
k([
|
|
3011
3012
|
wt({ attribute: "dropdown-label", type: String })
|
|
3012
|
-
],
|
|
3013
|
+
], S.prototype, "dropdownLabel", 2);
|
|
3013
3014
|
k([
|
|
3014
3015
|
wt({ attribute: "tabs-per-page", type: Number })
|
|
3015
|
-
],
|
|
3016
|
+
], S.prototype, "tabsPerPage", 2);
|
|
3016
3017
|
k([
|
|
3017
3018
|
wt({ attribute: "min-tab-width", type: Number })
|
|
3018
|
-
],
|
|
3019
|
+
], S.prototype, "minTabWidth", 2);
|
|
3019
3020
|
k([
|
|
3020
|
-
|
|
3021
|
-
],
|
|
3021
|
+
Vn({ passive: !0 })
|
|
3022
|
+
], S.prototype, "handleScrollEnd", 1);
|
|
3022
3023
|
k([
|
|
3023
3024
|
ft("noScrollControls", { waitUntilFirstUpdate: !0 })
|
|
3024
|
-
],
|
|
3025
|
+
], S.prototype, "updateScrollControls", 1);
|
|
3025
3026
|
k([
|
|
3026
3027
|
ft("placement", { waitUntilFirstUpdate: !0 })
|
|
3027
|
-
],
|
|
3028
|
+
], S.prototype, "syncIndicator", 1);
|
|
3028
3029
|
k([
|
|
3029
3030
|
ft("variant", { waitUntilFirstUpdate: !0 }),
|
|
3030
3031
|
ft("activePaginationIndex", { waitUntilFirstUpdate: !0 }),
|
|
3031
3032
|
ft("clampedTabsPerPage")
|
|
3032
|
-
],
|
|
3033
|
+
], S.prototype, "handleVariantChange", 1);
|
|
3033
3034
|
k([
|
|
3034
3035
|
ft("overflowVariant", { waitUntilFirstUpdate: !0 })
|
|
3035
|
-
],
|
|
3036
|
+
], S.prototype, "handleOverflowVariantChange", 1);
|
|
3036
3037
|
k([
|
|
3037
3038
|
ft("dropdownLabel", { waitUntilFirstUpdate: !0 })
|
|
3038
|
-
],
|
|
3039
|
+
], S.prototype, "handleDropdownLabelChange", 1);
|
|
3039
3040
|
k([
|
|
3040
3041
|
ft("hidePanelVariant", { waitUntilFirstUpdate: !0 }),
|
|
3041
3042
|
ft("useMaxPanelHeight", { waitUntilFirstUpdate: !0 })
|
|
3042
|
-
],
|
|
3043
|
+
], S.prototype, "handleAbsoluteHeightChange", 1);
|
|
3043
3044
|
k([
|
|
3044
3045
|
ft("tabAlignment", { waitUntilFirstUpdate: !0 })
|
|
3045
|
-
],
|
|
3046
|
+
], S.prototype, "handleTabAlignmentChange", 1);
|
|
3046
3047
|
k([
|
|
3047
3048
|
ft("tabsPerPage", { waitUntilFirstUpdate: !0 }),
|
|
3048
3049
|
ft("clampedTabsPerPage", { waitUntilFirstUpdate: !0 }),
|
|
3049
3050
|
ft("minTabWidth", { waitUntilFirstUpdate: !0 })
|
|
3050
|
-
],
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
],
|
|
3051
|
+
], S.prototype, "handleTabsPerPageChange", 1);
|
|
3052
|
+
S = k([
|
|
3053
|
+
Nn("cx-tab-group")
|
|
3054
|
+
], S);
|
|
3054
3055
|
export {
|
|
3055
|
-
|
|
3056
|
+
S as C,
|
|
3056
3057
|
Ke as T,
|
|
3057
3058
|
Tt as a,
|
|
3058
|
-
|
|
3059
|
+
Ut as b,
|
|
3059
3060
|
ie as g
|
|
3060
3061
|
};
|