@orangelogic/design-system 3.50.0 → 3.51.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/{bicolor-picker.prO-_6Je.js → bicolor-picker.DKcKLKki.js} +1 -1
- package/library/chunks/{block-width.MJd4A-sP.js → block-width.BoB4DTSi.js} +8 -8
- package/library/chunks/{border-input-group.Cl0Cm8q9.js → border-input-group.Bo4n74DK.js} +1 -1
- package/library/chunks/{color-picker.NfX8mIq2.js → color-picker.DJWwlNQc.js} +2 -2
- package/library/chunks/{config-manager.BzHT9Ws9.js → config-manager.B17KFYlP.js} +7 -7
- package/library/chunks/{configs-controller.CtIB5Q8R.js → configs-controller.CiNEXlyV.js} +2 -2
- package/library/chunks/{file-on-demand.DVR8fBgK.js → file-on-demand.D7bLG0JA.js} +2 -2
- package/library/chunks/{header.qIpzHeNc.js → header.BaWpIXRz.js} +5 -5
- package/library/chunks/{shadow-input-group.xfWQsQH6.js → shadow-input-group.DaDZTOGa.js} +1 -1
- package/library/chunks/{src.C8E60TXK.js → src.CNvhakVg.js} +4 -4
- package/library/chunks/{tab-group.BVYwTGDS.js → tab-group._olfRqqQ.js} +676 -623
- package/library/chunks/{tab.BnFmdiPK.js → tab.CDVHHAgG.js} +14 -10
- package/library/components/atoms.js +5 -5
- package/library/components/bicolor-picker.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/color-picker.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/header.js +1 -1
- package/library/components/molecules.js +3 -3
- package/library/components/organisms.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/tab-group.js +1 -1
- package/library/components/tab.js +1 -1
- package/library/components/types.js +778 -757
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +97 -2
- package/library/packages/hybrid/rich-text/src/rich-text.d.ts +9 -0
- package/library/packages/molecules/src/data-tab-group/data-tab-group.d.ts +2 -0
- package/library/react-web-component.d.ts +12 -0
- package/package.json +1 -1
|
@@ -18,195 +18,196 @@ import { t as x } from "./dropdown.DUfiVpFI.js";
|
|
|
18
18
|
import { t as S } from "./menu.3akay3Bh.js";
|
|
19
19
|
import { t as C } from "./menu-item.D-IE19Jn.js";
|
|
20
20
|
import { n as w } from "./scroll.CEH_a4pm.js";
|
|
21
|
-
import { t as T } from "./tab.
|
|
21
|
+
import { t as T } from "./tab.CDVHHAgG.js";
|
|
22
22
|
import { t as E } from "./parse.CDrJ-NY7.js";
|
|
23
23
|
import { t as D } from "./guard.Cf17k6Vx.js";
|
|
24
24
|
import { t as O } from "./map.ByDuLduF.js";
|
|
25
|
+
import { t as k } from "./tab-panel.BxeoKuSv.js";
|
|
25
26
|
//#region ../../packages/types/src/tab-group.ts
|
|
26
|
-
var
|
|
27
|
+
var A = /* @__PURE__ */ function(e) {
|
|
27
28
|
return e.Bottom = "bottom", e.End = "end", e.Start = "start", e.Top = "top", e;
|
|
28
|
-
}({}), A = /* @__PURE__ */ function(e) {
|
|
29
|
-
return e.Center = "center", e.End = "flex-end", e.Start = "flex-start", e;
|
|
30
29
|
}({}), j = /* @__PURE__ */ function(e) {
|
|
31
|
-
return e.
|
|
30
|
+
return e.Center = "center", e.End = "flex-end", e.Start = "flex-start", e;
|
|
32
31
|
}({}), M = /* @__PURE__ */ function(e) {
|
|
33
|
-
return e.
|
|
32
|
+
return e.Auto = "auto", e.Manual = "manual", e;
|
|
34
33
|
}({}), N = /* @__PURE__ */ function(e) {
|
|
35
|
-
return e.
|
|
34
|
+
return e.Button = "button", e.Default = "default", e.Timeline = "timeline", e;
|
|
36
35
|
}({}), P = /* @__PURE__ */ function(e) {
|
|
36
|
+
return e.Dropdown = "dropdown", e.Pagination = "pagination", e.Scroll = "scroll", e;
|
|
37
|
+
}({}), F = /* @__PURE__ */ function(e) {
|
|
37
38
|
return e.Absolute = "absolute", e.DisplayNone = "display-none", e;
|
|
38
39
|
}({});
|
|
39
40
|
//#endregion
|
|
40
41
|
//#region ../../node_modules/gsap/gsap-core.js
|
|
41
|
-
function
|
|
42
|
+
function I(e) {
|
|
42
43
|
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
43
44
|
return e;
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
+
function L(e, t) {
|
|
46
47
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
47
48
|
}
|
|
48
|
-
var
|
|
49
|
+
var ee = {
|
|
49
50
|
autoSleep: 120,
|
|
50
51
|
force3D: "auto",
|
|
51
52
|
nullTargetWarn: 1,
|
|
52
53
|
units: { lineHeight: "" }
|
|
53
|
-
},
|
|
54
|
+
}, R = {
|
|
54
55
|
duration: .5,
|
|
55
56
|
overwrite: !1,
|
|
56
57
|
delay: 0
|
|
57
|
-
},
|
|
58
|
+
}, z, B, V, te = 1e8, H = 1 / te, ne = Math.PI * 2, re = ne / 4, ie = 0, ae = Math.sqrt, oe = Math.cos, se = Math.sin, U = function(e) {
|
|
58
59
|
return typeof e == "string";
|
|
59
|
-
},
|
|
60
|
+
}, W = function(e) {
|
|
60
61
|
return typeof e == "function";
|
|
61
|
-
},
|
|
62
|
+
}, ce = function(e) {
|
|
62
63
|
return typeof e == "number";
|
|
63
|
-
},
|
|
64
|
+
}, le = function(e) {
|
|
64
65
|
return e === void 0;
|
|
65
|
-
},
|
|
66
|
+
}, ue = function(e) {
|
|
66
67
|
return typeof e == "object";
|
|
67
|
-
},
|
|
68
|
+
}, de = function(e) {
|
|
68
69
|
return e !== !1;
|
|
69
|
-
},
|
|
70
|
+
}, fe = function() {
|
|
70
71
|
return typeof window < "u";
|
|
71
|
-
},
|
|
72
|
-
return
|
|
73
|
-
},
|
|
74
|
-
return (
|
|
75
|
-
},
|
|
72
|
+
}, pe = function(e) {
|
|
73
|
+
return W(e) || U(e);
|
|
74
|
+
}, me = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {}, he = Array.isArray, ge = /(?:-?\.?\d|\.)+/gi, _e = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, ve = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, ye = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, be = /[+-]=-?[.\d]+/, xe = /[^,'"\[\]\s]+/gi, Se = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, G, Ce, we, Te, Ee = {}, De = {}, Oe, ke = function(e) {
|
|
75
|
+
return (De = at(e, Ee)) && Cr;
|
|
76
|
+
}, Ae = function(e, t) {
|
|
76
77
|
return console.warn("Invalid property", e, "set to", t, "Missing plugin? gsap.registerPlugin()");
|
|
77
|
-
},
|
|
78
|
+
}, je = function(e, t) {
|
|
78
79
|
return !t && console.warn(e);
|
|
79
|
-
},
|
|
80
|
-
return e && (
|
|
81
|
-
},
|
|
80
|
+
}, Me = function(e, t) {
|
|
81
|
+
return e && (Ee[e] = t) && De && (De[e] = t) || Ee;
|
|
82
|
+
}, Ne = function() {
|
|
82
83
|
return 0;
|
|
83
|
-
},
|
|
84
|
+
}, Pe = {
|
|
84
85
|
suppressEvents: !0,
|
|
85
86
|
isStart: !0,
|
|
86
87
|
kill: !1
|
|
87
|
-
},
|
|
88
|
+
}, Fe = {
|
|
88
89
|
suppressEvents: !0,
|
|
89
90
|
kill: !1
|
|
90
|
-
},
|
|
91
|
+
}, Ie = { suppressEvents: !0 }, Le = {}, Re = [], ze = {}, Be, Ve = {}, He = {}, Ue = 30, We = [], Ge = "", Ke = function(e) {
|
|
91
92
|
var t = e[0], n, r;
|
|
92
|
-
if (
|
|
93
|
-
for (r =
|
|
94
|
-
n =
|
|
93
|
+
if (ue(t) || W(t) || (e = [e]), !(n = (t._gsap || {}).harness)) {
|
|
94
|
+
for (r = We.length; r-- && !We[r].targetTest(t););
|
|
95
|
+
n = We[r];
|
|
95
96
|
}
|
|
96
97
|
for (r = e.length; r--;) e[r] && (e[r]._gsap || (e[r]._gsap = new Pn(e[r], n))) || e.splice(r, 1);
|
|
97
98
|
return e;
|
|
98
|
-
},
|
|
99
|
-
return e._gsap ||
|
|
100
|
-
},
|
|
101
|
-
return (n = e[t]) &&
|
|
102
|
-
},
|
|
99
|
+
}, qe = function(e) {
|
|
100
|
+
return e._gsap || Ke(Ht(e))[0]._gsap;
|
|
101
|
+
}, Je = function(e, t, n) {
|
|
102
|
+
return (n = e[t]) && W(n) ? e[t]() : le(n) && e.getAttribute && e.getAttribute(t) || n;
|
|
103
|
+
}, Ye = function(e, t) {
|
|
103
104
|
return (e = e.split(",")).forEach(t) || e;
|
|
104
|
-
},
|
|
105
|
+
}, K = function(e) {
|
|
105
106
|
return Math.round(e * 1e5) / 1e5 || 0;
|
|
106
|
-
},
|
|
107
|
+
}, q = function(e) {
|
|
107
108
|
return Math.round(e * 1e7) / 1e7 || 0;
|
|
108
|
-
},
|
|
109
|
+
}, Xe = function(e, t) {
|
|
109
110
|
var n = t.charAt(0), r = parseFloat(t.substr(2));
|
|
110
111
|
return e = parseFloat(e), n === "+" ? e + r : n === "-" ? e - r : n === "*" ? e * r : e / r;
|
|
111
|
-
},
|
|
112
|
+
}, Ze = function(e, t) {
|
|
112
113
|
for (var n = t.length, r = 0; e.indexOf(t[r]) < 0 && ++r < n;);
|
|
113
114
|
return r < n;
|
|
114
|
-
},
|
|
115
|
-
var e =
|
|
116
|
-
for (
|
|
117
|
-
},
|
|
115
|
+
}, Qe = function() {
|
|
116
|
+
var e = Re.length, t = Re.slice(0), n, r;
|
|
117
|
+
for (ze = {}, Re.length = 0, n = 0; n < e; n++) r = t[n], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
|
|
118
|
+
}, $e = function(e) {
|
|
118
119
|
return !!(e._initted || e._startAt || e.add);
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
},
|
|
120
|
+
}, et = function(e, t, n, r) {
|
|
121
|
+
Re.length && !B && Qe(), e.render(t, n, r || !!(B && t < 0 && $e(e))), Re.length && !B && Qe();
|
|
122
|
+
}, tt = function(e) {
|
|
122
123
|
var t = parseFloat(e);
|
|
123
|
-
return (t || t === 0) && (e + "").match(
|
|
124
|
-
},
|
|
124
|
+
return (t || t === 0) && (e + "").match(xe).length < 2 ? t : U(e) ? e.trim() : e;
|
|
125
|
+
}, nt = function(e) {
|
|
125
126
|
return e;
|
|
126
|
-
},
|
|
127
|
+
}, rt = function(e, t) {
|
|
127
128
|
for (var n in t) n in e || (e[n] = t[n]);
|
|
128
129
|
return e;
|
|
129
|
-
},
|
|
130
|
+
}, it = function(e) {
|
|
130
131
|
return function(t, n) {
|
|
131
132
|
for (var r in n) r in t || r === "duration" && e || r === "ease" || (t[r] = n[r]);
|
|
132
133
|
};
|
|
133
|
-
},
|
|
134
|
+
}, at = function(e, t) {
|
|
134
135
|
for (var n in t) e[n] = t[n];
|
|
135
136
|
return e;
|
|
136
|
-
},
|
|
137
|
-
for (var r in n) r !== "__proto__" && r !== "constructor" && r !== "prototype" && (t[r] =
|
|
137
|
+
}, ot = function e(t, n) {
|
|
138
|
+
for (var r in n) r !== "__proto__" && r !== "constructor" && r !== "prototype" && (t[r] = ue(n[r]) ? e(t[r] || (t[r] = {}), n[r]) : n[r]);
|
|
138
139
|
return t;
|
|
139
|
-
},
|
|
140
|
+
}, st = function(e, t) {
|
|
140
141
|
var n = {}, r;
|
|
141
142
|
for (r in e) r in t || (n[r] = e[r]);
|
|
142
143
|
return n;
|
|
143
|
-
},
|
|
144
|
-
var t = e.parent ||
|
|
145
|
-
if (
|
|
144
|
+
}, ct = function(e) {
|
|
145
|
+
var t = e.parent || G, n = e.keyframes ? it(he(e.keyframes)) : rt;
|
|
146
|
+
if (de(e.inherit)) for (; t;) n(e, t.vars.defaults), t = t.parent || t._dp;
|
|
146
147
|
return e;
|
|
147
|
-
},
|
|
148
|
+
}, lt = function(e, t) {
|
|
148
149
|
for (var n = e.length, r = n === t.length; r && n-- && e[n] === t[n];);
|
|
149
150
|
return n < 0;
|
|
150
|
-
},
|
|
151
|
+
}, ut = function(e, t, n, r, i) {
|
|
151
152
|
n === void 0 && (n = "_first"), r === void 0 && (r = "_last");
|
|
152
153
|
var a = e[r], o;
|
|
153
154
|
if (i) for (o = t[i]; a && a[i] > o;) a = a._prev;
|
|
154
155
|
return a ? (t._next = a._next, a._next = t) : (t._next = e[n], e[n] = t), t._next ? t._next._prev = t : e[r] = t, t._prev = a, t.parent = t._dp = e, t;
|
|
155
|
-
},
|
|
156
|
+
}, dt = function(e, t, n, r) {
|
|
156
157
|
n === void 0 && (n = "_first"), r === void 0 && (r = "_last");
|
|
157
158
|
var i = t._prev, a = t._next;
|
|
158
159
|
i ? i._next = a : e[n] === t && (e[n] = a), a ? a._prev = i : e[r] === t && (e[r] = i), t._next = t._prev = t.parent = null;
|
|
159
|
-
},
|
|
160
|
+
}, ft = function(e, t) {
|
|
160
161
|
e.parent && (!t || e.parent.autoRemoveChildren) && e.parent.remove && e.parent.remove(e), e._act = 0;
|
|
161
|
-
},
|
|
162
|
+
}, pt = function(e, t) {
|
|
162
163
|
if (e && (!t || t._end > e._dur || t._start < 0)) for (var n = e; n;) n._dirty = 1, n = n.parent;
|
|
163
164
|
return e;
|
|
164
|
-
},
|
|
165
|
+
}, mt = function(e) {
|
|
165
166
|
for (var t = e.parent; t && t.parent;) t._dirty = 1, t.totalDuration(), t = t.parent;
|
|
166
167
|
return e;
|
|
167
|
-
},
|
|
168
|
-
return e._startAt && (
|
|
169
|
-
},
|
|
168
|
+
}, ht = function(e, t, n, r) {
|
|
169
|
+
return e._startAt && (B ? e._startAt.revert(Fe) : e.vars.immediateRender && !e.vars.autoRevert || e._startAt.render(t, !0, r));
|
|
170
|
+
}, gt = function e(t) {
|
|
170
171
|
return !t || t._ts && e(t.parent);
|
|
171
|
-
},
|
|
172
|
-
return e._repeat ?
|
|
173
|
-
},
|
|
174
|
-
var n = Math.floor(e =
|
|
172
|
+
}, _t = function(e) {
|
|
173
|
+
return e._repeat ? vt(e._tTime, e = e.duration() + e._rDelay) * e : 0;
|
|
174
|
+
}, vt = function(e, t) {
|
|
175
|
+
var n = Math.floor(e = q(e / t));
|
|
175
176
|
return e && n === e ? n - 1 : n;
|
|
176
|
-
},
|
|
177
|
+
}, yt = function(e, t) {
|
|
177
178
|
return (e - t._start) * t._ts + (t._ts >= 0 ? 0 : t._dirty ? t.totalDuration() : t._tDur);
|
|
178
|
-
},
|
|
179
|
-
return e._end =
|
|
180
|
-
},
|
|
179
|
+
}, bt = function(e) {
|
|
180
|
+
return e._end = q(e._start + (e._tDur / Math.abs(e._ts || e._rts || H) || 0));
|
|
181
|
+
}, xt = function(e, t) {
|
|
181
182
|
var n = e._dp;
|
|
182
|
-
return n && n.smoothChildTiming && e._ts && (e._start =
|
|
183
|
-
},
|
|
183
|
+
return n && n.smoothChildTiming && e._ts && (e._start = q(n._time - (e._ts > 0 ? t / e._ts : ((e._dirty ? e.totalDuration() : e._tDur) - t) / -e._ts)), bt(e), n._dirty || pt(n, e)), e;
|
|
184
|
+
}, St = function(e, t) {
|
|
184
185
|
var n;
|
|
185
|
-
if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (n =
|
|
186
|
+
if ((t._time || !t._dur && t._initted || t._start < e._time && (t._dur || !t.add)) && (n = yt(e.rawTime(), t), (!t._dur || It(0, t.totalDuration(), n) - t._tTime > H) && t.render(n, !0)), pt(e, t)._dp && e._initted && e._time >= e._dur && e._ts) {
|
|
186
187
|
if (e._dur < e.duration()) for (n = e; n._dp;) n.rawTime() >= 0 && n.totalTime(n._tTime), n = n._dp;
|
|
187
|
-
e._zTime = -
|
|
188
|
+
e._zTime = -H;
|
|
188
189
|
}
|
|
189
|
-
},
|
|
190
|
-
return t.parent &&
|
|
191
|
-
},
|
|
192
|
-
return (
|
|
193
|
-
},
|
|
190
|
+
}, Ct = function(e, t, n, r) {
|
|
191
|
+
return t.parent && ft(t), t._start = q((ce(n) ? n : n || e !== G ? Nt(e, n, t) : e._time) + t._delay), t._end = q(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), ut(e, t, "_first", "_last", e._sort ? "_start" : 0), Dt(t) || (e._recent = t), r || St(e, t), e._ts < 0 && xt(e, e._tTime), e;
|
|
192
|
+
}, wt = function(e, t) {
|
|
193
|
+
return (Ee.ScrollTrigger || Ae("scrollTrigger", t)) && Ee.ScrollTrigger.create(t, e);
|
|
194
|
+
}, Tt = function(e, t, n, r, i) {
|
|
194
195
|
if (Un(e, t, i), !e._initted) return 1;
|
|
195
|
-
if (!n && e._pt && !
|
|
196
|
-
},
|
|
196
|
+
if (!n && e._pt && !B && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && Be !== bn.frame) return Re.push(e), e._lazy = [i, r], 1;
|
|
197
|
+
}, Et = function e(t) {
|
|
197
198
|
var n = t.parent;
|
|
198
199
|
return n && n._ts && n._initted && !n._lock && (n.rawTime() < 0 || e(n));
|
|
199
|
-
},
|
|
200
|
+
}, Dt = function(e) {
|
|
200
201
|
var t = e.data;
|
|
201
202
|
return t === "isFromStart" || t === "isStart";
|
|
202
|
-
},
|
|
203
|
-
var i = e.ratio, a = t < 0 || !t && (!e._start &&
|
|
204
|
-
if (o && e._repeat && (s =
|
|
205
|
-
if (!e._initted &&
|
|
206
|
-
for (u = e._zTime, e._zTime = t || (n ?
|
|
207
|
-
t < 0 &&
|
|
203
|
+
}, Ot = function(e, t, n, r) {
|
|
204
|
+
var i = e.ratio, a = t < 0 || !t && (!e._start && Et(e) && (e._initted || !Dt(e)) || (e._ts < 0 || e._dp._ts < 0) && !Dt(e)) ? 0 : 1, o = e._rDelay, s = 0, c, l, u;
|
|
205
|
+
if (o && e._repeat && (s = It(0, e._tDur, t), l = vt(s, o), e._yoyo && l & 1 && (a = 1 - a), l !== vt(e._tTime, o) && (i = 1 - a, e.vars.repeatRefresh && e._initted && e.invalidate())), a !== i || B || r || e._zTime === H || !t && e._zTime) {
|
|
206
|
+
if (!e._initted && Tt(e, t, r, n, s)) return;
|
|
207
|
+
for (u = e._zTime, e._zTime = t || (n ? H : 0), n ||= t && !u, e.ratio = a, e._from && (a = 1 - a), e._time = 0, e._tTime = s, c = e._pt; c;) c.r(a, c.d), c = c._next;
|
|
208
|
+
t < 0 && ht(e, t, n, !0), e._onUpdate && !n && on(e, "onUpdate"), s && e._repeat && !n && e.parent && on(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === a && (a && ft(e, 1), !n && !B && (on(e, a ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
|
|
208
209
|
} else e._zTime ||= t;
|
|
209
|
-
},
|
|
210
|
+
}, kt = function(e, t, n) {
|
|
210
211
|
var r;
|
|
211
212
|
if (n > t) for (r = e._first; r && r._start <= n;) {
|
|
212
213
|
if (r.data === "isPause" && r._start > t) return r;
|
|
@@ -216,89 +217,89 @@ var I = {
|
|
|
216
217
|
if (r.data === "isPause" && r._start < t) return r;
|
|
217
218
|
r = r._prev;
|
|
218
219
|
}
|
|
219
|
-
},
|
|
220
|
-
var i = e._repeat, a =
|
|
221
|
-
return o && !r && (e._time *= a / e._dur), e._dur = a, e._tDur = i ? i < 0 ? 1e10 :
|
|
222
|
-
},
|
|
223
|
-
return e instanceof In ?
|
|
224
|
-
},
|
|
220
|
+
}, At = function(e, t, n, r) {
|
|
221
|
+
var i = e._repeat, a = q(t) || 0, o = e._tTime / e._tDur;
|
|
222
|
+
return o && !r && (e._time *= a / e._dur), e._dur = a, e._tDur = i ? i < 0 ? 1e10 : q(a * (i + 1) + e._rDelay * i) : a, o > 0 && !r && xt(e, e._tTime = e._tDur * o), e.parent && bt(e), n || pt(e.parent, e), e;
|
|
223
|
+
}, jt = function(e) {
|
|
224
|
+
return e instanceof In ? pt(e) : At(e, e._dur);
|
|
225
|
+
}, Mt = {
|
|
225
226
|
_start: 0,
|
|
226
|
-
endTime:
|
|
227
|
-
totalDuration:
|
|
228
|
-
},
|
|
229
|
-
var i = t.labels, a = t._recent ||
|
|
230
|
-
return
|
|
231
|
-
},
|
|
232
|
-
var r =
|
|
227
|
+
endTime: Ne,
|
|
228
|
+
totalDuration: Ne
|
|
229
|
+
}, Nt = function e(t, n, r) {
|
|
230
|
+
var i = t.labels, a = t._recent || Mt, o = t.duration() >= te ? a.endTime(!1) : t._dur, s, c, l;
|
|
231
|
+
return U(n) && (isNaN(n) || n in i) ? (c = n.charAt(0), l = n.substr(-1) === "%", s = n.indexOf("="), c === "<" || c === ">" ? (s >= 0 && (n = n.replace(/=/, "")), (c === "<" ? a._start : a.endTime(a._repeat >= 0)) + (parseFloat(n.substr(1)) || 0) * (l ? (s < 0 ? a : r).totalDuration() / 100 : 1)) : s < 0 ? (n in i || (i[n] = o), i[n]) : (c = parseFloat(n.charAt(s - 1) + n.substr(s + 1)), l && r && (c = c / 100 * (he(r) ? r[0] : r).totalDuration()), s > 1 ? e(t, n.substr(0, s - 1), r) + c : o + c)) : n == null ? o : +n;
|
|
232
|
+
}, Pt = function(e, t, n) {
|
|
233
|
+
var r = ce(t[1]), i = (r ? 2 : 1) + (e < 2 ? 0 : 1), a = t[i], o, s;
|
|
233
234
|
if (r && (a.duration = t[1]), a.parent = n, e) {
|
|
234
|
-
for (o = a, s = n; s && !("immediateRender" in o);) o = s.vars.defaults || {}, s =
|
|
235
|
-
a.immediateRender =
|
|
235
|
+
for (o = a, s = n; s && !("immediateRender" in o);) o = s.vars.defaults || {}, s = de(s.vars.inherit) && s.parent;
|
|
236
|
+
a.immediateRender = de(o.immediateRender), e < 2 ? a.runBackwards = 1 : a.startAt = t[i - 1];
|
|
236
237
|
}
|
|
237
|
-
return new
|
|
238
|
-
},
|
|
238
|
+
return new X(t[0], a, t[i + 1]);
|
|
239
|
+
}, Ft = function(e, t) {
|
|
239
240
|
return e || e === 0 ? t(e) : t;
|
|
240
|
-
},
|
|
241
|
+
}, It = function(e, t, n) {
|
|
241
242
|
return n < e ? e : n > t ? t : n;
|
|
242
|
-
},
|
|
243
|
-
return !
|
|
243
|
+
}, Lt = function(e, t) {
|
|
244
|
+
return !U(e) || !(t = Se.exec(e)) ? "" : t[1];
|
|
244
245
|
}, Rt = function(e, t, n) {
|
|
245
|
-
return
|
|
246
|
-
return
|
|
246
|
+
return Ft(n, function(n) {
|
|
247
|
+
return It(e, t, n);
|
|
247
248
|
});
|
|
248
249
|
}, zt = [].slice, Bt = function(e, t) {
|
|
249
|
-
return e &&
|
|
250
|
+
return e && ue(e) && "length" in e && (!t && !e.length || e.length - 1 in e && ue(e[0])) && !e.nodeType && e !== Ce;
|
|
250
251
|
}, Vt = function(e, t, n) {
|
|
251
252
|
return n === void 0 && (n = []), e.forEach(function(e) {
|
|
252
253
|
var r;
|
|
253
|
-
return
|
|
254
|
+
return U(e) && !t || Bt(e, 1) ? (r = n).push.apply(r, Ht(e)) : n.push(e);
|
|
254
255
|
}) || n;
|
|
255
256
|
}, Ht = function(e, t, n) {
|
|
256
|
-
return
|
|
257
|
+
return V && !t && V.selector ? V.selector(e) : U(e) && !n && (we || !xn()) ? zt.call((t || Te).querySelectorAll(e), 0) : he(e) ? Vt(e, n) : Bt(e) ? zt.call(e, 0) : e ? [e] : [];
|
|
257
258
|
}, Ut = function(e) {
|
|
258
|
-
return e = Ht(e)[0] ||
|
|
259
|
+
return e = Ht(e)[0] || je("Invalid scope") || {}, function(t) {
|
|
259
260
|
var n = e.current || e.nativeElement || e;
|
|
260
|
-
return Ht(t, n.querySelectorAll ? n : n === e ?
|
|
261
|
+
return Ht(t, n.querySelectorAll ? n : n === e ? je("Invalid scope") || Te.createElement("div") : e);
|
|
261
262
|
};
|
|
262
263
|
}, Wt = function(e) {
|
|
263
264
|
return e.sort(function() {
|
|
264
265
|
return .5 - Math.random();
|
|
265
266
|
});
|
|
266
267
|
}, Gt = function(e) {
|
|
267
|
-
if (
|
|
268
|
-
var t =
|
|
269
|
-
return
|
|
268
|
+
if (W(e)) return e;
|
|
269
|
+
var t = ue(e) ? e : { each: e }, n = kn(t.ease), r = t.from || 0, i = parseFloat(t.base) || 0, a = {}, o = r > 0 && r < 1, s = isNaN(r) || o, c = t.axis, l = r, u = r;
|
|
270
|
+
return U(r) ? l = u = {
|
|
270
271
|
center: .5,
|
|
271
272
|
edges: .5,
|
|
272
273
|
end: 1
|
|
273
274
|
}[r] || 0 : !o && s && (l = r[0], u = r[1]), function(e, o, d) {
|
|
274
275
|
var f = (d || t).length, p = a[f], m, h, g, _, v, y, b, x, S;
|
|
275
276
|
if (!p) {
|
|
276
|
-
if (S = t.grid === "auto" ? 0 : (t.grid || [1,
|
|
277
|
-
for (b = -
|
|
277
|
+
if (S = t.grid === "auto" ? 0 : (t.grid || [1, te])[1], !S) {
|
|
278
|
+
for (b = -te; b < (b = d[S++].getBoundingClientRect().left) && S < f;);
|
|
278
279
|
S < f && S--;
|
|
279
280
|
}
|
|
280
|
-
for (p = a[f] = [], m = s ? Math.min(S, f) * l - .5 : r % S, h = S ===
|
|
281
|
-
r === "random" && Wt(p), p.max = b - x, p.min = x, p.v = f = (parseFloat(t.amount) || parseFloat(t.each) * (S > f ? f - 1 : c ? c === "y" ? f / S : S : Math.max(S, f / S)) || 0) * (r === "edges" ? -1 : 1), p.b = f < 0 ? i - f : i, p.u =
|
|
281
|
+
for (p = a[f] = [], m = s ? Math.min(S, f) * l - .5 : r % S, h = S === te ? 0 : s ? f * u / S - .5 : r / S | 0, b = 0, x = te, y = 0; y < f; y++) g = y % S - m, _ = h - (y / S | 0), p[y] = v = c ? Math.abs(c === "y" ? _ : g) : ae(g * g + _ * _), v > b && (b = v), v < x && (x = v);
|
|
282
|
+
r === "random" && Wt(p), p.max = b - x, p.min = x, p.v = f = (parseFloat(t.amount) || parseFloat(t.each) * (S > f ? f - 1 : c ? c === "y" ? f / S : S : Math.max(S, f / S)) || 0) * (r === "edges" ? -1 : 1), p.b = f < 0 ? i - f : i, p.u = Lt(t.amount || t.each) || 0, n = n && f < 0 ? Dn(n) : n;
|
|
282
283
|
}
|
|
283
|
-
return f = (p[e] - p.min) / p.max || 0,
|
|
284
|
+
return f = (p[e] - p.min) / p.max || 0, q(p.b + (n ? n(f) : f) * p.v) + p.u;
|
|
284
285
|
};
|
|
285
286
|
}, Kt = function(e) {
|
|
286
287
|
var t = 10 ** ((e + "").split(".")[1] || "").length;
|
|
287
288
|
return function(n) {
|
|
288
|
-
var r =
|
|
289
|
-
return (r - r % 1) / t + (
|
|
289
|
+
var r = q(Math.round(parseFloat(n) / e) * e * t);
|
|
290
|
+
return (r - r % 1) / t + (ce(n) ? 0 : Lt(n));
|
|
290
291
|
};
|
|
291
292
|
}, qt = function(e, t) {
|
|
292
|
-
var n =
|
|
293
|
-
return !n &&
|
|
293
|
+
var n = he(e), r, i;
|
|
294
|
+
return !n && ue(e) && (r = n = e.radius || te, e.values ? (e = Ht(e.values), (i = !ce(e[0])) && (r *= r)) : e = Kt(e.increment)), Ft(t, n ? W(e) ? function(t) {
|
|
294
295
|
return i = e(t), Math.abs(i - t) <= r ? i : t;
|
|
295
296
|
} : function(t) {
|
|
296
|
-
for (var n = parseFloat(i ? t.x : t), a = parseFloat(i ? t.y : 0), o =
|
|
297
|
-
return s = !r || o <= r ? e[s] : t, i || s === t ||
|
|
297
|
+
for (var n = parseFloat(i ? t.x : t), a = parseFloat(i ? t.y : 0), o = te, s = 0, c = e.length, l, u; c--;) i ? (l = e[c].x - n, u = e[c].y - a, l = l * l + u * u) : l = Math.abs(e[c] - n), l < o && (o = l, s = c);
|
|
298
|
+
return s = !r || o <= r ? e[s] : t, i || s === t || ce(t) ? s : s + Lt(t);
|
|
298
299
|
} : Kt(e));
|
|
299
300
|
}, Jt = function(e, t, n, r) {
|
|
300
|
-
return
|
|
301
|
-
return
|
|
301
|
+
return Ft(he(e) ? !t : n === !0 ? !!(n = 0) : !r, function() {
|
|
302
|
+
return he(e) ? e[~~(Math.random() * e.length)] : (n ||= 1e-5) && (r = n < 1 ? 10 ** ((n + "").length - 2) : 1) && Math.floor(Math.round((e - n / 2 + Math.random() * (t - e + n * .99)) / n) * n * r) / r;
|
|
302
303
|
});
|
|
303
304
|
}, Yt = function() {
|
|
304
305
|
var e = [...arguments];
|
|
@@ -309,30 +310,30 @@ var I = {
|
|
|
309
310
|
};
|
|
310
311
|
}, Xt = function(e, t) {
|
|
311
312
|
return function(n) {
|
|
312
|
-
return e(parseFloat(n)) + (t ||
|
|
313
|
+
return e(parseFloat(n)) + (t || Lt(n));
|
|
313
314
|
};
|
|
314
315
|
}, Zt = function(e, t, n) {
|
|
315
316
|
return nn(e, t, 0, 1, n);
|
|
316
317
|
}, Qt = function(e, t, n) {
|
|
317
|
-
return
|
|
318
|
+
return Ft(n, function(n) {
|
|
318
319
|
return e[~~t(n)];
|
|
319
320
|
});
|
|
320
321
|
}, $t = function e(t, n, r) {
|
|
321
322
|
var i = n - t;
|
|
322
|
-
return
|
|
323
|
+
return he(t) ? Qt(t, e(0, t.length), n) : Ft(r, function(e) {
|
|
323
324
|
return (i + (e - t) % i) % i + t;
|
|
324
325
|
});
|
|
325
326
|
}, en = function e(t, n, r) {
|
|
326
327
|
var i = n - t, a = i * 2;
|
|
327
|
-
return
|
|
328
|
+
return he(t) ? Qt(t, e(0, t.length - 1), n) : Ft(r, function(e) {
|
|
328
329
|
return e = (a + (e - t) % a) % a || 0, t + (e > i ? a - e : e);
|
|
329
330
|
});
|
|
330
331
|
}, tn = function(e) {
|
|
331
|
-
for (var t = 0, n = "", r, i, a, o; ~(r = e.indexOf("random(", t));) a = e.indexOf(")", r), o = e.charAt(r + 7) === "[", i = e.substr(r + 7, a - r - 7).match(o ?
|
|
332
|
+
for (var t = 0, n = "", r, i, a, o; ~(r = e.indexOf("random(", t));) a = e.indexOf(")", r), o = e.charAt(r + 7) === "[", i = e.substr(r + 7, a - r - 7).match(o ? xe : ge), n += e.substr(t, r - t) + Jt(o ? i : +i[0], o ? 0 : +i[1], +i[2] || 1e-5), t = a + 1;
|
|
332
333
|
return n + e.substr(t, e.length - t);
|
|
333
334
|
}, nn = function(e, t, n, r, i) {
|
|
334
335
|
var a = t - e, o = r - n;
|
|
335
|
-
return
|
|
336
|
+
return Ft(i, function(t) {
|
|
336
337
|
return n + ((t - e) / a * o || 0);
|
|
337
338
|
});
|
|
338
339
|
}, rn = function e(t, n, r, i) {
|
|
@@ -340,16 +341,16 @@ var I = {
|
|
|
340
341
|
return (1 - e) * t + e * n;
|
|
341
342
|
};
|
|
342
343
|
if (!a) {
|
|
343
|
-
var o =
|
|
344
|
+
var o = U(t), s = {}, c, l, u, d, f;
|
|
344
345
|
if (r === !0 && (i = 1) && (r = null), o) t = { p: t }, n = { p: n };
|
|
345
|
-
else if (
|
|
346
|
+
else if (he(t) && !he(n)) {
|
|
346
347
|
for (u = [], d = t.length, f = d - 2, l = 1; l < d; l++) u.push(e(t[l - 1], t[l]));
|
|
347
348
|
d--, a = function(e) {
|
|
348
349
|
e *= d;
|
|
349
350
|
var t = Math.min(f, ~~e);
|
|
350
351
|
return u[t](e - t);
|
|
351
352
|
}, r = n;
|
|
352
|
-
} else i || (t =
|
|
353
|
+
} else i || (t = at(he(t) ? [] : {}, t));
|
|
353
354
|
if (!u) {
|
|
354
355
|
for (c in n) Rn.call(s, t, c, "get", n[c]);
|
|
355
356
|
a = function(e) {
|
|
@@ -357,23 +358,23 @@ var I = {
|
|
|
357
358
|
};
|
|
358
359
|
}
|
|
359
360
|
}
|
|
360
|
-
return
|
|
361
|
+
return Ft(r, a);
|
|
361
362
|
}, an = function(e, t, n) {
|
|
362
|
-
var r = e.labels, i =
|
|
363
|
+
var r = e.labels, i = te, a, o, s;
|
|
363
364
|
for (a in r) o = r[a] - t, o < 0 == !!n && o && i > (o = Math.abs(o)) && (s = a, i = o);
|
|
364
365
|
return s;
|
|
365
366
|
}, on = function(e, t, n) {
|
|
366
|
-
var r = e.vars, i = r[t], a =
|
|
367
|
-
if (i) return s = r[t + "Params"], c = r.callbackScope || e, n &&
|
|
367
|
+
var r = e.vars, i = r[t], a = V, o = e._ctx, s, c, l;
|
|
368
|
+
if (i) return s = r[t + "Params"], c = r.callbackScope || e, n && Re.length && Qe(), o && (V = o), l = s ? i.apply(c, s) : i.call(c), V = a, l;
|
|
368
369
|
}, sn = function(e) {
|
|
369
|
-
return
|
|
370
|
+
return ft(e), e.scrollTrigger && e.scrollTrigger.kill(!!B), e.progress() < 1 && on(e, "onInterrupt"), e;
|
|
370
371
|
}, cn, ln = [], un = function(e) {
|
|
371
372
|
if (e) {
|
|
372
|
-
if (e = !e.name && e.default || e,
|
|
373
|
-
var t = e.name, n =
|
|
373
|
+
if (e = !e.name && e.default || e, fe() || e.headless) {
|
|
374
|
+
var t = e.name, n = W(e), r = t && !n && e.init ? function() {
|
|
374
375
|
this._props = [];
|
|
375
376
|
} : e, i = {
|
|
376
|
-
init:
|
|
377
|
+
init: Ne,
|
|
377
378
|
render: ir,
|
|
378
379
|
add: Rn,
|
|
379
380
|
kill: or,
|
|
@@ -387,21 +388,21 @@ var I = {
|
|
|
387
388
|
register: 0
|
|
388
389
|
};
|
|
389
390
|
if (xn(), e !== r) {
|
|
390
|
-
if (
|
|
391
|
-
|
|
391
|
+
if (Ve[t]) return;
|
|
392
|
+
rt(r, rt(st(e, i), a)), at(r.prototype, at(i, st(e, a))), Ve[r.prop = t] = r, e.targetTest && (We.push(r), Le[t] = 1), t = (t === "css" ? "CSS" : t.charAt(0).toUpperCase() + t.substr(1)) + "Plugin";
|
|
392
393
|
}
|
|
393
|
-
|
|
394
|
+
Me(t, r), e.register && e.register(Cr, r, lr);
|
|
394
395
|
} else ln.push(e);
|
|
395
396
|
}
|
|
396
|
-
},
|
|
397
|
+
}, J = 255, dn = {
|
|
397
398
|
aqua: [
|
|
398
399
|
0,
|
|
399
|
-
|
|
400
|
-
|
|
400
|
+
J,
|
|
401
|
+
J
|
|
401
402
|
],
|
|
402
403
|
lime: [
|
|
403
404
|
0,
|
|
404
|
-
|
|
405
|
+
J,
|
|
405
406
|
0
|
|
406
407
|
],
|
|
407
408
|
silver: [
|
|
@@ -427,7 +428,7 @@ var I = {
|
|
|
427
428
|
blue: [
|
|
428
429
|
0,
|
|
429
430
|
0,
|
|
430
|
-
|
|
431
|
+
J
|
|
431
432
|
],
|
|
432
433
|
navy: [
|
|
433
434
|
0,
|
|
@@ -435,9 +436,9 @@ var I = {
|
|
|
435
436
|
128
|
|
436
437
|
],
|
|
437
438
|
white: [
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
439
|
+
J,
|
|
440
|
+
J,
|
|
441
|
+
J
|
|
441
442
|
],
|
|
442
443
|
olive: [
|
|
443
444
|
128,
|
|
@@ -445,12 +446,12 @@ var I = {
|
|
|
445
446
|
0
|
|
446
447
|
],
|
|
447
448
|
yellow: [
|
|
448
|
-
|
|
449
|
-
|
|
449
|
+
J,
|
|
450
|
+
J,
|
|
450
451
|
0
|
|
451
452
|
],
|
|
452
453
|
orange: [
|
|
453
|
-
|
|
454
|
+
J,
|
|
454
455
|
165,
|
|
455
456
|
0
|
|
456
457
|
],
|
|
@@ -470,59 +471,59 @@ var I = {
|
|
|
470
471
|
0
|
|
471
472
|
],
|
|
472
473
|
red: [
|
|
473
|
-
|
|
474
|
+
J,
|
|
474
475
|
0,
|
|
475
476
|
0
|
|
476
477
|
],
|
|
477
478
|
pink: [
|
|
478
|
-
|
|
479
|
+
J,
|
|
479
480
|
192,
|
|
480
481
|
203
|
|
481
482
|
],
|
|
482
483
|
cyan: [
|
|
483
484
|
0,
|
|
484
|
-
|
|
485
|
-
|
|
485
|
+
J,
|
|
486
|
+
J
|
|
486
487
|
],
|
|
487
488
|
transparent: [
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
489
|
+
J,
|
|
490
|
+
J,
|
|
491
|
+
J,
|
|
491
492
|
0
|
|
492
493
|
]
|
|
493
494
|
}, fn = function(e, t, n) {
|
|
494
|
-
return e += e < 0 ? 1 : e > 1 ? -1 : 0, (e * 6 < 1 ? t + (n - t) * e * 6 : e < .5 ? n : e * 3 < 2 ? t + (n - t) * (2 / 3 - e) * 6 : t) *
|
|
495
|
+
return e += e < 0 ? 1 : e > 1 ? -1 : 0, (e * 6 < 1 ? t + (n - t) * e * 6 : e < .5 ? n : e * 3 < 2 ? t + (n - t) * (2 / 3 - e) * 6 : t) * J + .5 | 0;
|
|
495
496
|
}, pn = function(e, t, n) {
|
|
496
|
-
var r = e ?
|
|
497
|
+
var r = e ? ce(e) ? [
|
|
497
498
|
e >> 16,
|
|
498
|
-
e >> 8 &
|
|
499
|
-
e &
|
|
499
|
+
e >> 8 & J,
|
|
500
|
+
e & J
|
|
500
501
|
] : 0 : dn.black, i, a, o, s, c, l, u, d, f, p;
|
|
501
502
|
if (!r) {
|
|
502
503
|
if (e.substr(-1) === "," && (e = e.substr(0, e.length - 1)), dn[e]) r = dn[e];
|
|
503
504
|
else if (e.charAt(0) === "#") {
|
|
504
505
|
if (e.length < 6 && (i = e.charAt(1), a = e.charAt(2), o = e.charAt(3), e = "#" + i + i + a + a + o + o + (e.length === 5 ? e.charAt(4) + e.charAt(4) : "")), e.length === 9) return r = parseInt(e.substr(1, 6), 16), [
|
|
505
506
|
r >> 16,
|
|
506
|
-
r >> 8 &
|
|
507
|
-
r &
|
|
507
|
+
r >> 8 & J,
|
|
508
|
+
r & J,
|
|
508
509
|
parseInt(e.substr(7), 16) / 255
|
|
509
510
|
];
|
|
510
511
|
e = parseInt(e.substr(1), 16), r = [
|
|
511
512
|
e >> 16,
|
|
512
|
-
e >> 8 &
|
|
513
|
-
e &
|
|
513
|
+
e >> 8 & J,
|
|
514
|
+
e & J
|
|
514
515
|
];
|
|
515
516
|
} else if (e.substr(0, 3) === "hsl") {
|
|
516
|
-
if (r = p = e.match(
|
|
517
|
-
else if (~e.indexOf("=")) return r = e.match(
|
|
518
|
-
} else r = e.match(
|
|
517
|
+
if (r = p = e.match(ge), !t) s = r[0] % 360 / 360, c = r[1] / 100, l = r[2] / 100, a = l <= .5 ? l * (c + 1) : l + c - l * c, i = l * 2 - a, r.length > 3 && (r[3] *= 1), r[0] = fn(s + 1 / 3, i, a), r[1] = fn(s, i, a), r[2] = fn(s - 1 / 3, i, a);
|
|
518
|
+
else if (~e.indexOf("=")) return r = e.match(_e), n && r.length < 4 && (r[3] = 1), r;
|
|
519
|
+
} else r = e.match(ge) || dn.transparent;
|
|
519
520
|
r = r.map(Number);
|
|
520
521
|
}
|
|
521
|
-
return t && !p && (i = r[0] /
|
|
522
|
+
return t && !p && (i = r[0] / J, a = r[1] / J, o = r[2] / J, u = Math.max(i, a, o), d = Math.min(i, a, o), l = (u + d) / 2, u === d ? s = c = 0 : (f = u - d, c = l > .5 ? f / (2 - u - d) : f / (u + d), s = u === i ? (a - o) / f + (a < o ? 6 : 0) : u === a ? (o - i) / f + 2 : (i - a) / f + 4, s *= 60), r[0] = ~~(s + .5), r[1] = ~~(c * 100 + .5), r[2] = ~~(l * 100 + .5)), n && r.length < 4 && (r[3] = 1), r;
|
|
522
523
|
}, mn = function(e) {
|
|
523
524
|
var t = [], n = [], r = -1;
|
|
524
525
|
return e.split(gn).forEach(function(e) {
|
|
525
|
-
var i = e.match(
|
|
526
|
+
var i = e.match(ve) || [];
|
|
526
527
|
t.push.apply(t, i), n.push(r += i.length + 1);
|
|
527
528
|
}), t.c = n, t;
|
|
528
529
|
}, hn = function(e, t, n) {
|
|
@@ -530,7 +531,7 @@ var I = {
|
|
|
530
531
|
if (!i) return e;
|
|
531
532
|
if (i = i.map(function(e) {
|
|
532
533
|
return (e = pn(e, t, 1)) && a + (t ? e[0] + "," + e[1] + "%," + e[2] + "%," + e[3] : e.join(",")) + ")";
|
|
533
|
-
}), n && (l = mn(e), s = n.c, s.join(r) !== l.c.join(r))) for (c = e.replace(gn, "1").split(
|
|
534
|
+
}), n && (l = mn(e), s = n.c, s.join(r) !== l.c.join(r))) for (c = e.replace(gn, "1").split(ve), u = c.length - 1; o < u; o++) r += c[o] + (~s.indexOf(o) ? i.shift() || a + "0,0,0,0)" : (l.length ? l : i.length ? i : n).shift());
|
|
534
535
|
if (!c) for (c = e.split(gn), u = c.length - 1; o < u; o++) r += c[o] + i[o];
|
|
535
536
|
return r + c[u];
|
|
536
537
|
}, gn = function() {
|
|
@@ -555,12 +556,12 @@ var I = {
|
|
|
555
556
|
return f / (1e3 / (e || 60));
|
|
556
557
|
},
|
|
557
558
|
wake: function() {
|
|
558
|
-
|
|
559
|
+
Oe && (!we && fe() && (Ce = we = window, Te = Ce.document || {}, Ee.gsap = Cr, (Ce.gsapVersions || (Ce.gsapVersions = [])).push(Cr.version), ke(De || Ce.GreenSockGlobals || !Ce.gsap && Ce || {}), ln.forEach(un)), u = typeof requestAnimationFrame < "u" && requestAnimationFrame, c && d.sleep(), l = u || function(e) {
|
|
559
560
|
return setTimeout(e, o - d.time * 1e3 + 1 | 0);
|
|
560
561
|
}, yn = 1, m(2));
|
|
561
562
|
},
|
|
562
563
|
sleep: function() {
|
|
563
|
-
(u ? cancelAnimationFrame : clearTimeout)(c), yn = 0, l =
|
|
564
|
+
(u ? cancelAnimationFrame : clearTimeout)(c), yn = 0, l = Ne;
|
|
564
565
|
},
|
|
565
566
|
lagSmoothing: function(e, r) {
|
|
566
567
|
t = e || Infinity, n = Math.min(r || 33, t);
|
|
@@ -581,15 +582,15 @@ var I = {
|
|
|
581
582
|
}, d;
|
|
582
583
|
}(), xn = function() {
|
|
583
584
|
return !yn && bn.wake();
|
|
584
|
-
},
|
|
585
|
+
}, Y = {}, Sn = /^[\d.\-M][\d.\-,\s]/, Cn = /["']/g, wn = function(e) {
|
|
585
586
|
for (var t = {}, n = e.substr(1, e.length - 3).split(":"), r = n[0], i = 1, a = n.length, o, s, c; i < a; i++) s = n[i], o = i === a - 1 ? s.length : s.lastIndexOf(","), c = s.substr(0, o), t[r] = isNaN(c) ? c.replace(Cn, "").trim() : +c, r = s.substr(o + 1).trim();
|
|
586
587
|
return t;
|
|
587
588
|
}, Tn = function(e) {
|
|
588
589
|
var t = e.indexOf("(") + 1, n = e.indexOf(")"), r = e.indexOf("(", t);
|
|
589
590
|
return e.substring(t, ~r && r < n ? e.indexOf(")", n + 1) : n);
|
|
590
591
|
}, En = function(e) {
|
|
591
|
-
var t = (e + "").split("("), n =
|
|
592
|
-
return n && t.length > 1 && n.config ? n.config.apply(null, ~e.indexOf("{") ? [wn(t[1])] : Tn(e).split(",").map(
|
|
592
|
+
var t = (e + "").split("("), n = Y[t[0]];
|
|
593
|
+
return n && t.length > 1 && n.config ? n.config.apply(null, ~e.indexOf("{") ? [wn(t[1])] : Tn(e).split(",").map(tt)) : Y._CE && Sn.test(e) ? Y._CE("", e) : n;
|
|
593
594
|
}, Dn = function(e) {
|
|
594
595
|
return function(t) {
|
|
595
596
|
return 1 - e(1 - t);
|
|
@@ -597,7 +598,7 @@ var I = {
|
|
|
597
598
|
}, On = function e(t, n) {
|
|
598
599
|
for (var r = t._first, i; r;) r instanceof In ? e(r, n) : r.vars.yoyoEase && (!r._yoyo || !r._repeat) && r._yoyo !== n && (r.timeline ? e(r.timeline, n) : (i = r._ease, r._ease = r._yEase, r._yEase = i, r._yoyo = n)), r = r._next;
|
|
599
600
|
}, kn = function(e, t) {
|
|
600
|
-
return e && (
|
|
601
|
+
return e && (W(e) ? e : Y[e] || En(e)) || t;
|
|
601
602
|
}, An = function(e, t, n, r) {
|
|
602
603
|
n === void 0 && (n = function(e) {
|
|
603
604
|
return 1 - t(1 - e);
|
|
@@ -609,20 +610,20 @@ var I = {
|
|
|
609
610
|
easeOut: n,
|
|
610
611
|
easeInOut: r
|
|
611
612
|
}, a;
|
|
612
|
-
return
|
|
613
|
-
for (var t in
|
|
613
|
+
return Ye(e, function(e) {
|
|
614
|
+
for (var t in Y[e] = Ee[e] = i, Y[a = e.toLowerCase()] = n, i) Y[a + (t === "easeIn" ? ".in" : t === "easeOut" ? ".out" : ".inOut")] = Y[e + "." + t] = i[t];
|
|
614
615
|
}), i;
|
|
615
616
|
}, jn = function(e) {
|
|
616
617
|
return function(t) {
|
|
617
618
|
return t < .5 ? (1 - e(1 - t * 2)) / 2 : .5 + e((t - .5) * 2) / 2;
|
|
618
619
|
};
|
|
619
620
|
}, Mn = function e(t, n, r) {
|
|
620
|
-
var i = n >= 1 ? n : 1, a = (r || (t ? .3 : .45)) / (n < 1 ? n : 1), o = a /
|
|
621
|
-
return e === 1 ? 1 : i * 2 ** (-10 * e) *
|
|
621
|
+
var i = n >= 1 ? n : 1, a = (r || (t ? .3 : .45)) / (n < 1 ? n : 1), o = a / ne * (Math.asin(1 / i) || 0), s = function(e) {
|
|
622
|
+
return e === 1 ? 1 : i * 2 ** (-10 * e) * se((e - o) * a) + 1;
|
|
622
623
|
}, c = t === "out" ? s : t === "in" ? function(e) {
|
|
623
624
|
return 1 - s(1 - e);
|
|
624
625
|
} : jn(s);
|
|
625
|
-
return a =
|
|
626
|
+
return a = ne / a, c.config = function(n, r) {
|
|
626
627
|
return e(t, n, r);
|
|
627
628
|
}, c;
|
|
628
629
|
}, Nn = function e(t, n) {
|
|
@@ -636,7 +637,7 @@ var I = {
|
|
|
636
637
|
return e(t, n);
|
|
637
638
|
}, i;
|
|
638
639
|
};
|
|
639
|
-
|
|
640
|
+
Ye("Linear,Quad,Cubic,Quart,Quint,Strong", function(e, t) {
|
|
640
641
|
var n = t < 5 ? t + 1 : t;
|
|
641
642
|
An(e + ",Power" + (n - 1), t ? function(e) {
|
|
642
643
|
return e ** +n;
|
|
@@ -647,7 +648,7 @@ Xe("Linear,Quad,Cubic,Quart,Quint,Strong", function(e, t) {
|
|
|
647
648
|
}, function(e) {
|
|
648
649
|
return e < .5 ? (e * 2) ** n / 2 : 1 - ((1 - e) * 2) ** n / 2;
|
|
649
650
|
});
|
|
650
|
-
}),
|
|
651
|
+
}), Y.Linear.easeNone = Y.none = Y.Linear.easeIn, An("Elastic", Mn("in"), Mn("out"), Mn()), (function(e, t) {
|
|
651
652
|
var n = 1 / t, r = 2 * n, i = 2.5 * n, a = function(a) {
|
|
652
653
|
return a < n ? e * a * a : a < r ? e * (a - 1.5 / t) ** 2 + .75 : a < i ? e * (a -= 2.25 / t) * a + .9375 : e * (a - 2.625 / t) ** 2 + .984375;
|
|
653
654
|
};
|
|
@@ -657,23 +658,23 @@ Xe("Linear,Quad,Cubic,Quart,Quint,Strong", function(e, t) {
|
|
|
657
658
|
})(7.5625, 2.75), An("Expo", function(e) {
|
|
658
659
|
return 2 ** (10 * (e - 1)) * e + e * e * e * e * e * e * (1 - e);
|
|
659
660
|
}), An("Circ", function(e) {
|
|
660
|
-
return -(
|
|
661
|
+
return -(ae(1 - e * e) - 1);
|
|
661
662
|
}), An("Sine", function(e) {
|
|
662
|
-
return e === 1 ? 1 : -
|
|
663
|
-
}), An("Back", Nn("in"), Nn("out"), Nn()),
|
|
663
|
+
return e === 1 ? 1 : -oe(e * re) + 1;
|
|
664
|
+
}), An("Back", Nn("in"), Nn("out"), Nn()), Y.SteppedEase = Y.steps = Ee.SteppedEase = { config: function(e, t) {
|
|
664
665
|
e === void 0 && (e = 1);
|
|
665
|
-
var n = 1 / e, r = e + +!t, i = +!!t, a = 1 -
|
|
666
|
+
var n = 1 / e, r = e + +!t, i = +!!t, a = 1 - H;
|
|
666
667
|
return function(e) {
|
|
667
|
-
return ((r *
|
|
668
|
+
return ((r * It(0, a, e) | 0) + i) * n;
|
|
668
669
|
};
|
|
669
|
-
} },
|
|
670
|
-
return
|
|
670
|
+
} }, R.ease = Y["quad.out"], Ye("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(e) {
|
|
671
|
+
return Ge += e + "," + e + "Params,";
|
|
671
672
|
});
|
|
672
673
|
var Pn = function(e, t) {
|
|
673
|
-
this.id =
|
|
674
|
+
this.id = ie++, e._gsap = this, this.target = e, this.harness = t, this.get = t ? t.get : Je, this.set = t ? t.getSetter : er;
|
|
674
675
|
}, Fn = /*#__PURE__*/ function() {
|
|
675
676
|
function e(e) {
|
|
676
|
-
this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === Infinity ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1,
|
|
677
|
+
this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === Infinity ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1, At(this, +e.duration, 1, 1), this.data = e.data, V && (this._ctx = V, V.data.push(this)), yn || bn.wake();
|
|
677
678
|
}
|
|
678
679
|
var t = e.prototype;
|
|
679
680
|
return t.delay = function(e) {
|
|
@@ -681,64 +682,64 @@ var Pn = function(e, t) {
|
|
|
681
682
|
}, t.duration = function(e) {
|
|
682
683
|
return arguments.length ? this.totalDuration(this._repeat > 0 ? e + (e + this._rDelay) * this._repeat : e) : this.totalDuration() && this._dur;
|
|
683
684
|
}, t.totalDuration = function(e) {
|
|
684
|
-
return arguments.length ? (this._dirty = 0,
|
|
685
|
+
return arguments.length ? (this._dirty = 0, At(this, this._repeat < 0 ? e : (e - this._repeat * this._rDelay) / (this._repeat + 1))) : this._tDur;
|
|
685
686
|
}, t.totalTime = function(e, t) {
|
|
686
687
|
if (xn(), !arguments.length) return this._tTime;
|
|
687
688
|
var n = this._dp;
|
|
688
689
|
if (n && n.smoothChildTiming && this._ts) {
|
|
689
|
-
for (
|
|
690
|
-
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && e < this._tDur || this._ts < 0 && e > 0 || !this._tDur && !e) &&
|
|
690
|
+
for (xt(this, e), !n._dp || n.parent || St(n, this); n && n.parent;) 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;
|
|
691
|
+
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && e < this._tDur || this._ts < 0 && e > 0 || !this._tDur && !e) && Ct(this._dp, this, this._start - this._delay);
|
|
691
692
|
}
|
|
692
|
-
return (this._tTime !== e || !this._dur && !t || this._initted && Math.abs(this._zTime) ===
|
|
693
|
+
return (this._tTime !== e || !this._dur && !t || this._initted && Math.abs(this._zTime) === H || !e && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = e), et(this, e, t)), this;
|
|
693
694
|
}, t.time = function(e, t) {
|
|
694
|
-
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), e +
|
|
695
|
+
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), e + _t(this)) % (this._dur + this._rDelay) || (e ? this._dur : 0), t) : this._time;
|
|
695
696
|
}, t.totalProgress = function(e, t) {
|
|
696
697
|
return arguments.length ? this.totalTime(this.totalDuration() * e, t) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;
|
|
697
698
|
}, t.progress = function(e, t) {
|
|
698
|
-
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - e : e) +
|
|
699
|
+
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - e : e) + _t(this), t) : this.duration() ? Math.min(1, this._time / this._dur) : +(this.rawTime() > 0);
|
|
699
700
|
}, t.iteration = function(e, t) {
|
|
700
701
|
var n = this.duration() + this._rDelay;
|
|
701
|
-
return arguments.length ? this.totalTime(this._time + (e - 1) * n, t) : this._repeat ?
|
|
702
|
+
return arguments.length ? this.totalTime(this._time + (e - 1) * n, t) : this._repeat ? vt(this._tTime, n) + 1 : 1;
|
|
702
703
|
}, t.timeScale = function(e, t) {
|
|
703
|
-
if (!arguments.length) return this._rts === -
|
|
704
|
+
if (!arguments.length) return this._rts === -H ? 0 : this._rts;
|
|
704
705
|
if (this._rts === e) return this;
|
|
705
|
-
var n = this.parent && this._ts ?
|
|
706
|
-
return this._rts = +e || 0, this._ts = this._ps || e === -
|
|
706
|
+
var n = this.parent && this._ts ? yt(this.parent._time, this) : this._tTime;
|
|
707
|
+
return this._rts = +e || 0, this._ts = this._ps || e === -H ? 0 : this._rts, this.totalTime(It(-Math.abs(this._delay), this.totalDuration(), n), t !== !1), bt(this), mt(this);
|
|
707
708
|
}, t.paused = function(e) {
|
|
708
|
-
return arguments.length ? (this._ps !== e && (this._ps = e, e ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (xn(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !==
|
|
709
|
+
return arguments.length ? (this._ps !== e && (this._ps = e, e ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (xn(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== H && (this._tTime -= H)))), this) : this._ps;
|
|
709
710
|
}, t.startTime = function(e) {
|
|
710
711
|
if (arguments.length) {
|
|
711
712
|
this._start = e;
|
|
712
713
|
var t = this.parent || this._dp;
|
|
713
|
-
return t && (t._sort || !this.parent) &&
|
|
714
|
+
return t && (t._sort || !this.parent) && Ct(t, this, e - this._delay), this;
|
|
714
715
|
}
|
|
715
716
|
return this._start;
|
|
716
717
|
}, t.endTime = function(e) {
|
|
717
|
-
return this._start + (
|
|
718
|
+
return this._start + (de(e) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
|
|
718
719
|
}, t.rawTime = function(e) {
|
|
719
720
|
var t = this.parent || this._dp;
|
|
720
|
-
return t ? e && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ?
|
|
721
|
+
return t ? e && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? yt(t.rawTime(e), this) : this._tTime : this._tTime;
|
|
721
722
|
}, t.revert = function(e) {
|
|
722
|
-
e === void 0 && (e =
|
|
723
|
-
var t =
|
|
724
|
-
return
|
|
723
|
+
e === void 0 && (e = Ie);
|
|
724
|
+
var t = B;
|
|
725
|
+
return B = e, $e(this) && (this.timeline && this.timeline.revert(e), this.totalTime(-.01, e.suppressEvents)), this.data !== "nested" && e.kill !== !1 && this.kill(), B = t, this;
|
|
725
726
|
}, t.globalTime = function(e) {
|
|
726
727
|
for (var t = this, n = arguments.length ? e : t.rawTime(); t;) n = t._start + n / (Math.abs(t._ts) || 1), t = t._dp;
|
|
727
728
|
return !this.parent && this._sat ? this._sat.globalTime(e) : n;
|
|
728
729
|
}, t.repeat = function(e) {
|
|
729
|
-
return arguments.length ? (this._repeat = e === Infinity ? -2 : e,
|
|
730
|
+
return arguments.length ? (this._repeat = e === Infinity ? -2 : e, jt(this)) : this._repeat === -2 ? Infinity : this._repeat;
|
|
730
731
|
}, t.repeatDelay = function(e) {
|
|
731
732
|
if (arguments.length) {
|
|
732
733
|
var t = this._time;
|
|
733
|
-
return this._rDelay = e,
|
|
734
|
+
return this._rDelay = e, jt(this), t ? this.time(t) : this;
|
|
734
735
|
}
|
|
735
736
|
return this._rDelay;
|
|
736
737
|
}, t.yoyo = function(e) {
|
|
737
738
|
return arguments.length ? (this._yoyo = e, this) : this._yoyo;
|
|
738
739
|
}, t.seek = function(e, t) {
|
|
739
|
-
return this.totalTime(
|
|
740
|
+
return this.totalTime(Nt(this, e), de(t));
|
|
740
741
|
}, t.restart = function(e, t) {
|
|
741
|
-
return this.play().totalTime(e ? -this._delay : 0,
|
|
742
|
+
return this.play().totalTime(e ? -this._delay : 0, de(t)), this._dur || (this._zTime = -H), this;
|
|
742
743
|
}, t.play = function(e, t) {
|
|
743
744
|
return e != null && this.seek(e, t), this.reversed(!1).paused(!1);
|
|
744
745
|
}, t.reverse = function(e, t) {
|
|
@@ -748,21 +749,21 @@ var Pn = function(e, t) {
|
|
|
748
749
|
}, t.resume = function() {
|
|
749
750
|
return this.paused(!1);
|
|
750
751
|
}, t.reversed = function(e) {
|
|
751
|
-
return arguments.length ? (!!e !== this.reversed() && this.timeScale(-this._rts || (e ? -
|
|
752
|
+
return arguments.length ? (!!e !== this.reversed() && this.timeScale(-this._rts || (e ? -H : 0)), this) : this._rts < 0;
|
|
752
753
|
}, t.invalidate = function() {
|
|
753
|
-
return this._initted = this._act = 0, this._zTime = -
|
|
754
|
+
return this._initted = this._act = 0, this._zTime = -H, this;
|
|
754
755
|
}, t.isActive = function() {
|
|
755
756
|
var e = this.parent || this._dp, t = this._start, n;
|
|
756
|
-
return !!(!e || this._ts && this._initted && e.isActive() && (n = e.rawTime(!0)) >= t && n < this.endTime(!0) -
|
|
757
|
+
return !!(!e || this._ts && this._initted && e.isActive() && (n = e.rawTime(!0)) >= t && n < this.endTime(!0) - H);
|
|
757
758
|
}, t.eventCallback = function(e, t, n) {
|
|
758
759
|
var r = this.vars;
|
|
759
760
|
return arguments.length > 1 ? (t ? (r[e] = t, n && (r[e + "Params"] = n), e === "onUpdate" && (this._onUpdate = t)) : delete r[e], this) : r[e];
|
|
760
761
|
}, t.then = function(e) {
|
|
761
762
|
var t = this;
|
|
762
763
|
return new Promise(function(n) {
|
|
763
|
-
var r =
|
|
764
|
+
var r = W(e) ? e : nt, i = function() {
|
|
764
765
|
var e = t.then;
|
|
765
|
-
t.then = null,
|
|
766
|
+
t.then = null, W(r) && (r = r(t)) && (r.then || r === t) && (t.then = e), n(r), t.then = e;
|
|
766
767
|
};
|
|
767
768
|
t._initted && t.totalProgress() === 1 && t._ts >= 0 || !t._tTime && t._ts < 0 ? i() : t._prom = i;
|
|
768
769
|
});
|
|
@@ -770,7 +771,7 @@ var Pn = function(e, t) {
|
|
|
770
771
|
sn(this);
|
|
771
772
|
}, e;
|
|
772
773
|
}();
|
|
773
|
-
|
|
774
|
+
rt(Fn.prototype, {
|
|
774
775
|
_time: 0,
|
|
775
776
|
_start: 0,
|
|
776
777
|
_end: 0,
|
|
@@ -785,51 +786,51 @@ it(Fn.prototype, {
|
|
|
785
786
|
_ts: 1,
|
|
786
787
|
_dp: 0,
|
|
787
788
|
ratio: 0,
|
|
788
|
-
_zTime: -
|
|
789
|
+
_zTime: -H,
|
|
789
790
|
_prom: 0,
|
|
790
791
|
_ps: !1,
|
|
791
792
|
_rts: 1
|
|
792
793
|
});
|
|
793
794
|
var In = /*#__PURE__*/ function(e) {
|
|
794
|
-
|
|
795
|
+
L(t, e);
|
|
795
796
|
function t(t, n) {
|
|
796
797
|
var r;
|
|
797
|
-
return t === void 0 && (t = {}), r = e.call(this, t) || this, r.labels = {}, r.smoothChildTiming = !!t.smoothChildTiming, r.autoRemoveChildren = !!t.autoRemoveChildren, r._sort =
|
|
798
|
+
return t === void 0 && (t = {}), r = e.call(this, t) || this, r.labels = {}, r.smoothChildTiming = !!t.smoothChildTiming, r.autoRemoveChildren = !!t.autoRemoveChildren, r._sort = de(t.sortChildren), G && Ct(t.parent || G, I(r), n), t.reversed && r.reverse(), t.paused && r.paused(!0), t.scrollTrigger && wt(I(r), t.scrollTrigger), r;
|
|
798
799
|
}
|
|
799
800
|
var n = t.prototype;
|
|
800
801
|
return n.to = function(e, t, n) {
|
|
801
|
-
return
|
|
802
|
+
return Pt(0, arguments, this), this;
|
|
802
803
|
}, n.from = function(e, t, n) {
|
|
803
|
-
return
|
|
804
|
+
return Pt(1, arguments, this), this;
|
|
804
805
|
}, n.fromTo = function(e, t, n, r) {
|
|
805
|
-
return
|
|
806
|
+
return Pt(2, arguments, this), this;
|
|
806
807
|
}, n.set = function(e, t, n) {
|
|
807
|
-
return t.duration = 0, t.parent = this,
|
|
808
|
+
return t.duration = 0, t.parent = this, ct(t).repeatDelay || (t.repeat = 0), t.immediateRender = !!t.immediateRender, new X(e, t, Nt(this, n), 1), this;
|
|
808
809
|
}, n.call = function(e, t, n) {
|
|
809
|
-
return
|
|
810
|
+
return Ct(this, X.delayedCall(0, e, t), n);
|
|
810
811
|
}, n.staggerTo = function(e, t, n, r, i, a, o) {
|
|
811
|
-
return n.duration = t, n.stagger = n.stagger || r, n.onComplete = a, n.onCompleteParams = o, n.parent = this, new
|
|
812
|
+
return n.duration = t, n.stagger = n.stagger || r, n.onComplete = a, n.onCompleteParams = o, n.parent = this, new X(e, n, Nt(this, i)), this;
|
|
812
813
|
}, n.staggerFrom = function(e, t, n, r, i, a, o) {
|
|
813
|
-
return n.runBackwards = 1,
|
|
814
|
+
return n.runBackwards = 1, ct(n).immediateRender = de(n.immediateRender), this.staggerTo(e, t, n, r, i, a, o);
|
|
814
815
|
}, n.staggerFromTo = function(e, t, n, r, i, a, o, s) {
|
|
815
|
-
return r.startAt = n,
|
|
816
|
+
return r.startAt = n, ct(r).immediateRender = de(r.immediateRender), this.staggerTo(e, t, r, i, a, o, s);
|
|
816
817
|
}, n.render = function(e, t, n) {
|
|
817
|
-
var r = this._time, i = this._dirty ? this.totalDuration() : this._tDur, a = this._dur, o = e <= 0 ? 0 :
|
|
818
|
-
if (this !==
|
|
818
|
+
var r = this._time, i = this._dirty ? this.totalDuration() : this._tDur, a = this._dur, o = e <= 0 ? 0 : q(e), s = this._zTime < 0 != e < 0 && (this._initted || !a), c, l, u, d, f, p, m, h, g, _, v, y;
|
|
819
|
+
if (this !== G && o > i && e >= 0 && (o = i), o !== this._tTime || n || s) {
|
|
819
820
|
if (r !== this._time && a && (o += this._time - r, e += this._time - r), c = o, g = this._start, h = this._ts, p = !h, s && (a || (r = this._zTime), (e || !t) && (this._zTime = e)), this._repeat) {
|
|
820
821
|
if (v = this._yoyo, f = a + this._rDelay, this._repeat < -1 && e < 0) return this.totalTime(f * 100 + e, t, n);
|
|
821
|
-
if (c =
|
|
822
|
+
if (c = q(o % f), o === i ? (d = this._repeat, c = a) : (_ = q(o / f), d = ~~_, d && d === _ && (c = a, d--), c > a && (c = a)), _ = vt(this._tTime, f), !r && this._tTime && _ !== d && this._tTime - _ * f - this._dur <= 0 && (_ = d), v && d & 1 && (c = a - c, y = 1), d !== _ && !this._lock) {
|
|
822
823
|
var b = v && _ & 1, x = b === (v && d & 1);
|
|
823
|
-
if (d < _ && (b = !b), r = b ? 0 : o % a ? a : o, this._lock = 1, this.render(r || (y ? 0 :
|
|
824
|
+
if (d < _ && (b = !b), r = b ? 0 : o % a ? a : o, this._lock = 1, this.render(r || (y ? 0 : q(d * f)), t, !a)._lock = 0, this._tTime = o, !t && this.parent && on(this, "onRepeat"), this.vars.repeatRefresh && !y && (this.invalidate()._lock = 1), r && r !== this._time || p !== !this._ts || this.vars.onRepeat && !this.parent && !this._act || (a = this._dur, i = this._tDur, x && (this._lock = 2, r = b ? a : -1e-4, this.render(r, !0), this.vars.repeatRefresh && !y && this.invalidate()), this._lock = 0, !this._ts && !p)) return this;
|
|
824
825
|
On(this, y);
|
|
825
826
|
}
|
|
826
827
|
}
|
|
827
|
-
if (this._hasPause && !this._forcing && this._lock < 2 && (m =
|
|
828
|
+
if (this._hasPause && !this._forcing && this._lock < 2 && (m = kt(this, q(r), q(c)), m && (o -= c - (c = m._start))), this._tTime = o, this._time = c, this._act = !h, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = e, r = 0), !r && o && !t && !_ && (on(this, "onStart"), this._tTime !== o)) return this;
|
|
828
829
|
if (c >= r && e >= 0) for (l = this._first; l;) {
|
|
829
830
|
if (u = l._next, (l._act || c >= l._start) && l._ts && m !== l) {
|
|
830
831
|
if (l.parent !== this) return this.render(e, t, n);
|
|
831
832
|
if (l.render(l._ts > 0 ? (c - l._start) * l._ts : (l._dirty ? l.totalDuration() : l._tDur) + (c - l._start) * l._ts, t, n), c !== this._time || !this._ts && !p) {
|
|
832
|
-
m = 0, u && (o += this._zTime = -
|
|
833
|
+
m = 0, u && (o += this._zTime = -H);
|
|
833
834
|
break;
|
|
834
835
|
}
|
|
835
836
|
}
|
|
@@ -840,88 +841,88 @@ var In = /*#__PURE__*/ function(e) {
|
|
|
840
841
|
for (var S = e < 0 ? e : c; l;) {
|
|
841
842
|
if (u = l._prev, (l._act || S <= l._end) && l._ts && m !== l) {
|
|
842
843
|
if (l.parent !== this) return this.render(e, t, n);
|
|
843
|
-
if (l.render(l._ts > 0 ? (S - l._start) * l._ts : (l._dirty ? l.totalDuration() : l._tDur) + (S - l._start) * l._ts, t, n ||
|
|
844
|
-
m = 0, u && (o += this._zTime = S ? -
|
|
844
|
+
if (l.render(l._ts > 0 ? (S - l._start) * l._ts : (l._dirty ? l.totalDuration() : l._tDur) + (S - l._start) * l._ts, t, n || B && $e(l)), c !== this._time || !this._ts && !p) {
|
|
845
|
+
m = 0, u && (o += this._zTime = S ? -H : H);
|
|
845
846
|
break;
|
|
846
847
|
}
|
|
847
848
|
}
|
|
848
849
|
l = u;
|
|
849
850
|
}
|
|
850
851
|
}
|
|
851
|
-
if (m && !t && (this.pause(), m.render(c >= r ? 0 : -
|
|
852
|
-
this._onUpdate && !t && on(this, "onUpdate", !0), (o === i && this._tTime >= this.totalDuration() || !o && r) && (g === this._start || Math.abs(h) !== Math.abs(this._ts)) && (this._lock || ((e || !a) && (o === i && this._ts > 0 || !o && this._ts < 0) &&
|
|
852
|
+
if (m && !t && (this.pause(), m.render(c >= r ? 0 : -H)._zTime = c >= r ? 1 : -1, this._ts)) return this._start = g, bt(this), this.render(e, t, n);
|
|
853
|
+
this._onUpdate && !t && on(this, "onUpdate", !0), (o === i && this._tTime >= this.totalDuration() || !o && r) && (g === this._start || Math.abs(h) !== Math.abs(this._ts)) && (this._lock || ((e || !a) && (o === i && this._ts > 0 || !o && this._ts < 0) && ft(this, 1), !t && !(e < 0 && !r) && (o || r || !i) && (on(this, o === i && e >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(o < i && this.timeScale() > 0) && this._prom())));
|
|
853
854
|
}
|
|
854
855
|
return this;
|
|
855
856
|
}, n.add = function(e, t) {
|
|
856
857
|
var n = this;
|
|
857
|
-
if (
|
|
858
|
-
if (
|
|
858
|
+
if (ce(t) || (t = Nt(this, t, e)), !(e instanceof Fn)) {
|
|
859
|
+
if (he(e)) return e.forEach(function(e) {
|
|
859
860
|
return n.add(e, t);
|
|
860
861
|
}), this;
|
|
861
|
-
if (
|
|
862
|
-
if (
|
|
862
|
+
if (U(e)) return this.addLabel(e, t);
|
|
863
|
+
if (W(e)) e = X.delayedCall(0, e);
|
|
863
864
|
else return this;
|
|
864
865
|
}
|
|
865
|
-
return this === e ? this :
|
|
866
|
+
return this === e ? this : Ct(this, e, t);
|
|
866
867
|
}, n.getChildren = function(e, t, n, r) {
|
|
867
|
-
e === void 0 && (e = !0), t === void 0 && (t = !0), n === void 0 && (n = !0), r === void 0 && (r = -
|
|
868
|
-
for (var i = [], a = this._first; a;) a._start >= r && (a instanceof
|
|
868
|
+
e === void 0 && (e = !0), t === void 0 && (t = !0), n === void 0 && (n = !0), r === void 0 && (r = -te);
|
|
869
|
+
for (var i = [], a = this._first; a;) a._start >= r && (a instanceof X ? t && i.push(a) : (n && i.push(a), e && i.push.apply(i, a.getChildren(!0, t, n)))), a = a._next;
|
|
869
870
|
return i;
|
|
870
871
|
}, n.getById = function(e) {
|
|
871
872
|
for (var t = this.getChildren(1, 1, 1), n = t.length; n--;) if (t[n].vars.id === e) return t[n];
|
|
872
873
|
}, n.remove = function(e) {
|
|
873
|
-
return
|
|
874
|
+
return U(e) ? this.removeLabel(e) : W(e) ? this.killTweensOf(e) : (e.parent === this && dt(this, e), e === this._recent && (this._recent = this._last), pt(this));
|
|
874
875
|
}, n.totalTime = function(t, n) {
|
|
875
|
-
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start =
|
|
876
|
+
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = q(bn.time - (this._ts > 0 ? t / this._ts : (this.totalDuration() - t) / -this._ts))), e.prototype.totalTime.call(this, t, n), this._forcing = 0, this) : this._tTime;
|
|
876
877
|
}, n.addLabel = function(e, t) {
|
|
877
|
-
return this.labels[e] =
|
|
878
|
+
return this.labels[e] = Nt(this, t), this;
|
|
878
879
|
}, n.removeLabel = function(e) {
|
|
879
880
|
return delete this.labels[e], this;
|
|
880
881
|
}, n.addPause = function(e, t, n) {
|
|
881
|
-
var r =
|
|
882
|
-
return r.data = "isPause", this._hasPause = 1,
|
|
882
|
+
var r = X.delayedCall(0, t || Ne, n);
|
|
883
|
+
return r.data = "isPause", this._hasPause = 1, Ct(this, r, Nt(this, e));
|
|
883
884
|
}, n.removePause = function(e) {
|
|
884
885
|
var t = this._first;
|
|
885
|
-
for (e =
|
|
886
|
+
for (e = Nt(this, e); t;) t._start === e && t.data === "isPause" && ft(t), t = t._next;
|
|
886
887
|
}, n.killTweensOf = function(e, t, n) {
|
|
887
888
|
for (var r = this.getTweensOf(e, n), i = r.length; i--;) Vn !== r[i] && r[i].kill(e, t);
|
|
888
889
|
return this;
|
|
889
890
|
}, n.getTweensOf = function(e, t) {
|
|
890
|
-
for (var n = [], r = Ht(e), i = this._first, a =
|
|
891
|
+
for (var n = [], r = Ht(e), i = this._first, a = ce(t), o; i;) i instanceof X ? Ze(i._targets, r) && (a ? (!Vn || i._initted && i._ts) && i.globalTime(0) <= t && i.globalTime(i.totalDuration()) > t : !t || i.isActive()) && n.push(i) : (o = i.getTweensOf(r, t)).length && n.push.apply(n, o), i = i._next;
|
|
891
892
|
return n;
|
|
892
893
|
}, n.tweenTo = function(e, t) {
|
|
893
894
|
t ||= {};
|
|
894
|
-
var n = this, r =
|
|
895
|
+
var n = this, r = Nt(n, e), i = t, a = i.startAt, o = i.onStart, s = i.onStartParams, c = i.immediateRender, l, u = X.to(n, rt({
|
|
895
896
|
ease: t.ease || "none",
|
|
896
897
|
lazy: !1,
|
|
897
898
|
immediateRender: !1,
|
|
898
899
|
time: r,
|
|
899
900
|
overwrite: "auto",
|
|
900
|
-
duration: t.duration || Math.abs((r - (a && "time" in a ? a.time : n._time)) / n.timeScale()) ||
|
|
901
|
+
duration: t.duration || Math.abs((r - (a && "time" in a ? a.time : n._time)) / n.timeScale()) || H,
|
|
901
902
|
onStart: function() {
|
|
902
903
|
if (n.pause(), !l) {
|
|
903
904
|
var e = t.duration || Math.abs((r - (a && "time" in a ? a.time : n._time)) / n.timeScale());
|
|
904
|
-
u._dur !== e &&
|
|
905
|
+
u._dur !== e && At(u, e, 0, 1).render(u._time, !0, !0), l = 1;
|
|
905
906
|
}
|
|
906
907
|
o && o.apply(u, s || []);
|
|
907
908
|
}
|
|
908
909
|
}, t));
|
|
909
910
|
return c ? u.render(0) : u;
|
|
910
911
|
}, n.tweenFromTo = function(e, t, n) {
|
|
911
|
-
return this.tweenTo(t,
|
|
912
|
+
return this.tweenTo(t, rt({ startAt: { time: Nt(this, e) } }, n));
|
|
912
913
|
}, n.recent = function() {
|
|
913
914
|
return this._recent;
|
|
914
915
|
}, n.nextLabel = function(e) {
|
|
915
|
-
return e === void 0 && (e = this._time), an(this,
|
|
916
|
+
return e === void 0 && (e = this._time), an(this, Nt(this, e));
|
|
916
917
|
}, n.previousLabel = function(e) {
|
|
917
|
-
return e === void 0 && (e = this._time), an(this,
|
|
918
|
+
return e === void 0 && (e = this._time), an(this, Nt(this, e), 1);
|
|
918
919
|
}, n.currentLabel = function(e) {
|
|
919
|
-
return arguments.length ? this.seek(e, !0) : this.previousLabel(this._time +
|
|
920
|
+
return arguments.length ? this.seek(e, !0) : this.previousLabel(this._time + H);
|
|
920
921
|
}, n.shiftChildren = function(e, t, n) {
|
|
921
922
|
n === void 0 && (n = 0);
|
|
922
923
|
for (var r = this._first, i = this.labels, a; r;) r._start >= n && (r._start += e, r._end += e), r = r._next;
|
|
923
924
|
if (t) for (a in i) i[a] >= n && (i[a] += e);
|
|
924
|
-
return
|
|
925
|
+
return pt(this);
|
|
925
926
|
}, n.invalidate = function(t) {
|
|
926
927
|
var n = this._first;
|
|
927
928
|
for (this._lock = 0; n;) n.invalidate(t), n = n._next;
|
|
@@ -929,110 +930,110 @@ var In = /*#__PURE__*/ function(e) {
|
|
|
929
930
|
}, n.clear = function(e) {
|
|
930
931
|
e === void 0 && (e = !0);
|
|
931
932
|
for (var t = this._first, n; t;) n = t._next, this.remove(t), t = n;
|
|
932
|
-
return this._dp && (this._time = this._tTime = this._pTime = 0), e && (this.labels = {}),
|
|
933
|
+
return this._dp && (this._time = this._tTime = this._pTime = 0), e && (this.labels = {}), pt(this);
|
|
933
934
|
}, n.totalDuration = function(e) {
|
|
934
|
-
var t = 0, n = this, r = n._last, i =
|
|
935
|
+
var t = 0, n = this, r = n._last, i = te, a, o, s;
|
|
935
936
|
if (arguments.length) return n.timeScale((n._repeat < 0 ? n.duration() : n.totalDuration()) / (n.reversed() ? -e : e));
|
|
936
937
|
if (n._dirty) {
|
|
937
|
-
for (s = n.parent; r;) a = r._prev, r._dirty && r.totalDuration(), o = r._start, o > i && n._sort && r._ts && !n._lock ? (n._lock = 1,
|
|
938
|
-
|
|
938
|
+
for (s = n.parent; r;) a = r._prev, r._dirty && r.totalDuration(), o = r._start, o > i && n._sort && r._ts && !n._lock ? (n._lock = 1, Ct(n, r, o - r._delay, 1)._lock = 0) : i = o, o < 0 && r._ts && (t -= o, (!s && !n._dp || s && s.smoothChildTiming) && (n._start += o / n._ts, n._time -= o, n._tTime -= o), n.shiftChildren(-o, !1, -Infinity), i = 0), r._end > t && r._ts && (t = r._end), r = a;
|
|
939
|
+
At(n, n === G && n._time > t ? n._time : t, 1, 1), n._dirty = 0;
|
|
939
940
|
}
|
|
940
941
|
return n._tDur;
|
|
941
942
|
}, t.updateRoot = function(e) {
|
|
942
|
-
if (
|
|
943
|
-
|
|
944
|
-
var t =
|
|
945
|
-
if ((!t || !t._ts) &&
|
|
943
|
+
if (G._ts && (et(G, yt(e, G)), Be = bn.frame), bn.frame >= Ue) {
|
|
944
|
+
Ue += ee.autoSleep || 120;
|
|
945
|
+
var t = G._first;
|
|
946
|
+
if ((!t || !t._ts) && ee.autoSleep && bn._listeners.length < 2) {
|
|
946
947
|
for (; t && !t._ts;) t = t._next;
|
|
947
948
|
t || bn.sleep();
|
|
948
949
|
}
|
|
949
950
|
}
|
|
950
951
|
}, t;
|
|
951
952
|
}(Fn);
|
|
952
|
-
|
|
953
|
+
rt(In.prototype, {
|
|
953
954
|
_lock: 0,
|
|
954
955
|
_hasPause: 0,
|
|
955
956
|
_forcing: 0
|
|
956
957
|
});
|
|
957
958
|
var Ln = function(e, t, n, r, i, a, o) {
|
|
958
959
|
var s = new lr(this._pt, e, t, 0, 1, rr, null, i), c = 0, l = 0, u, d, f, p, m, h, g, _;
|
|
959
|
-
for (s.b = n, s.e = r, n += "", r += "", (g = ~r.indexOf("random(")) && (r = tn(r)), a && (_ = [n, r], a(_, e, t), n = _[0], r = _[1]), d = n.match(
|
|
960
|
+
for (s.b = n, s.e = r, n += "", r += "", (g = ~r.indexOf("random(")) && (r = tn(r)), a && (_ = [n, r], a(_, e, t), n = _[0], r = _[1]), d = n.match(ye) || []; u = ye.exec(r);) p = u[0], m = r.substring(c, u.index), f ? f = (f + 1) % 5 : m.substr(-5) === "rgba(" && (f = 1), p !== d[l++] && (h = parseFloat(d[l - 1]) || 0, s._pt = {
|
|
960
961
|
_next: s._pt,
|
|
961
962
|
p: m || l === 1 ? m : ",",
|
|
962
963
|
s: h,
|
|
963
|
-
c: p.charAt(1) === "=" ?
|
|
964
|
+
c: p.charAt(1) === "=" ? Xe(h, p) - h : parseFloat(p) - h,
|
|
964
965
|
m: f && f < 4 ? Math.round : 0
|
|
965
|
-
}, c =
|
|
966
|
-
return s.c = c < r.length ? r.substring(c, r.length) : "", s.fp = o, (
|
|
966
|
+
}, c = ye.lastIndex);
|
|
967
|
+
return s.c = c < r.length ? r.substring(c, r.length) : "", s.fp = o, (be.test(r) || g) && (s.e = 0), this._pt = s, s;
|
|
967
968
|
}, Rn = function(e, t, n, r, i, a, o, s, c, l) {
|
|
968
|
-
|
|
969
|
-
var u = e[t], d = n === "get" ?
|
|
970
|
-
if (
|
|
969
|
+
W(r) && (r = r(i || 0, e, a));
|
|
970
|
+
var u = e[t], d = n === "get" ? W(u) ? c ? e[t.indexOf("set") || !W(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](c) : e[t]() : u : n, f = W(u) ? c ? Qn : Zn : Xn, p;
|
|
971
|
+
if (U(r) && (~r.indexOf("random(") && (r = tn(r)), r.charAt(1) === "=" && (p = Xe(d, r) + (Lt(d) || 0), (p || p === 0) && (r = p))), !l || d !== r || Hn) return !isNaN(d * r) && r !== "" ? (p = new lr(this._pt, e, t, +d || 0, r - (d || 0), typeof u == "boolean" ? nr : tr, 0, f), c && (p.fp = c), o && p.modifier(o, this, e), this._pt = p) : (!u && !(t in e) && Ae(t, r), Ln.call(this, e, t, d, r, f, s || ee.stringFilter, c));
|
|
971
972
|
}, zn = function(e, t, n, r, i) {
|
|
972
|
-
if (
|
|
973
|
+
if (W(e) && (e = qn(e, i, t, n, r)), !ue(e) || e.style && e.nodeType || he(e) || me(e)) return U(e) ? qn(e, i, t, n, r) : e;
|
|
973
974
|
var a = {}, o;
|
|
974
975
|
for (o in e) a[o] = qn(e[o], i, t, n, r);
|
|
975
976
|
return a;
|
|
976
977
|
}, Bn = function(e, t, n, r, i, a) {
|
|
977
978
|
var o, s, c, l;
|
|
978
|
-
if (
|
|
979
|
+
if (Ve[e] && (o = new Ve[e]()).init(i, o.rawVars ? t[e] : zn(t[e], r, i, a, n), n, r, a) !== !1 && (n._pt = s = new lr(n._pt, i, e, 0, 1, o.render, o, 0, o.priority), n !== cn)) for (c = n._ptLookup[n._targets.indexOf(i)], l = o._props.length; l--;) c[o._props[l]] = s;
|
|
979
980
|
return o;
|
|
980
981
|
}, Vn, Hn, Un = function e(t, n, r) {
|
|
981
|
-
var i = t.vars, a = i.ease, o = i.startAt, s = i.immediateRender, c = i.lazy, l = i.onUpdate, u = i.runBackwards, d = i.yoyoEase, f = i.keyframes, p = i.autoRevert, m = t._dur, h = t._startAt, g = t._targets, _ = t.parent, v = _ && _.data === "nested" ? _.vars.targets : g, y = t._overwrite === "auto" && !
|
|
982
|
-
if (b && (!f || !a) && (a = "none"), t._ease = kn(a,
|
|
983
|
-
if (O = g[0] ?
|
|
984
|
-
if (
|
|
982
|
+
var i = t.vars, a = i.ease, o = i.startAt, s = i.immediateRender, c = i.lazy, l = i.onUpdate, u = i.runBackwards, d = i.yoyoEase, f = i.keyframes, p = i.autoRevert, m = t._dur, h = t._startAt, g = t._targets, _ = t.parent, v = _ && _.data === "nested" ? _.vars.targets : g, y = t._overwrite === "auto" && !z, b = t.timeline, x, S, C, w, T, E, D, O, k, A, j, M, N;
|
|
983
|
+
if (b && (!f || !a) && (a = "none"), t._ease = kn(a, R.ease), t._yEase = d ? Dn(kn(d === !0 ? a : d, R.ease)) : 0, d && t._yoyo && !t._repeat && (d = t._yEase, t._yEase = t._ease, t._ease = d), t._from = !b && !!i.runBackwards, !b || f && !i.stagger) {
|
|
984
|
+
if (O = g[0] ? qe(g[0]).harness : 0, M = O && i[O.prop], x = st(i, Le), h && (h._zTime < 0 && h.progress(1), n < 0 && u && s && !p ? h.render(-1, !0) : h.revert(u && m ? Fe : Pe), h._lazy = 0), o) {
|
|
985
|
+
if (ft(t._startAt = X.set(g, rt({
|
|
985
986
|
data: "isStart",
|
|
986
987
|
overwrite: !1,
|
|
987
988
|
parent: _,
|
|
988
989
|
immediateRender: !0,
|
|
989
|
-
lazy: !h &&
|
|
990
|
+
lazy: !h && de(c),
|
|
990
991
|
startAt: null,
|
|
991
992
|
delay: 0,
|
|
992
993
|
onUpdate: l && function() {
|
|
993
994
|
return on(t, "onUpdate");
|
|
994
995
|
},
|
|
995
996
|
stagger: 0
|
|
996
|
-
}, o))), t._startAt._dp = 0, t._startAt._sat = t, n < 0 && (
|
|
997
|
+
}, o))), t._startAt._dp = 0, t._startAt._sat = t, n < 0 && (B || !s && !p) && t._startAt.revert(Fe), s && m && n <= 0 && r <= 0) {
|
|
997
998
|
n && (t._zTime = n);
|
|
998
999
|
return;
|
|
999
1000
|
}
|
|
1000
1001
|
} else if (u && m && !h) {
|
|
1001
|
-
if (n && (s = !1), C =
|
|
1002
|
+
if (n && (s = !1), C = rt({
|
|
1002
1003
|
overwrite: !1,
|
|
1003
1004
|
data: "isFromStart",
|
|
1004
|
-
lazy: s && !h &&
|
|
1005
|
+
lazy: s && !h && de(c),
|
|
1005
1006
|
immediateRender: s,
|
|
1006
1007
|
stagger: 0,
|
|
1007
1008
|
parent: _
|
|
1008
|
-
}, x), M && (C[O.prop] = M),
|
|
1009
|
+
}, x), M && (C[O.prop] = M), ft(t._startAt = X.set(g, C)), t._startAt._dp = 0, t._startAt._sat = t, n < 0 && (B ? t._startAt.revert(Fe) : t._startAt.render(-1, !0)), t._zTime = n, !s) e(t._startAt, H, H);
|
|
1009
1010
|
else if (!n) return;
|
|
1010
1011
|
}
|
|
1011
|
-
for (t._pt = t._ptCache = 0, c = m &&
|
|
1012
|
-
if (T = g[S], D = T._gsap ||
|
|
1012
|
+
for (t._pt = t._ptCache = 0, c = m && de(c) || c && !m, S = 0; S < g.length; S++) {
|
|
1013
|
+
if (T = g[S], D = T._gsap || Ke(g)[S]._gsap, t._ptLookup[S] = A = {}, ze[D.id] && Re.length && Qe(), j = v === g ? S : v.indexOf(T), O && (k = new O()).init(T, M || x, t, j, v) !== !1 && (t._pt = w = new lr(t._pt, T, k.name, 0, 1, k.render, k, 0, k.priority), k._props.forEach(function(e) {
|
|
1013
1014
|
A[e] = w;
|
|
1014
|
-
}), k.priority && (E = 1)), !O || M) for (C in x)
|
|
1015
|
-
t._op && t._op[S] && t.kill(T, t._op[S]), y && t._pt && (Vn = t,
|
|
1015
|
+
}), k.priority && (E = 1)), !O || M) for (C in x) Ve[C] && (k = Bn(C, x, t, j, T, v)) ? k.priority && (E = 1) : A[C] = w = Rn.call(t, T, C, "get", x[C], j, v, 0, i.stringFilter);
|
|
1016
|
+
t._op && t._op[S] && t.kill(T, t._op[S]), y && t._pt && (Vn = t, G.killTweensOf(T, A, t.globalTime(n)), N = !t.parent, Vn = 0), t._pt && c && (ze[D.id] = 1);
|
|
1016
1017
|
}
|
|
1017
1018
|
E && cr(t), t._onInit && t._onInit(t);
|
|
1018
1019
|
}
|
|
1019
|
-
t._onUpdate = l, t._initted = (!t._op || t._pt) && !N, f && n <= 0 && b.render(
|
|
1020
|
+
t._onUpdate = l, t._initted = (!t._op || t._pt) && !N, f && n <= 0 && b.render(te, !0, !0);
|
|
1020
1021
|
}, Wn = function(e, t, n, r, i, a, o, s) {
|
|
1021
1022
|
var c = (e._pt && e._ptCache || (e._ptCache = {}))[t], l, u, d, f;
|
|
1022
1023
|
if (!c) for (c = e._ptCache[t] = [], d = e._ptLookup, f = e._targets.length; f--;) {
|
|
1023
1024
|
if (l = d[f][t], l && l.d && l.d._pt) for (l = l.d._pt; l && l.p !== t && l.fp !== t;) l = l._next;
|
|
1024
|
-
if (!l) return Hn = 1, e.vars[t] = "+=0", Un(e, o), Hn = 0, s ?
|
|
1025
|
+
if (!l) return Hn = 1, e.vars[t] = "+=0", Un(e, o), Hn = 0, s ? je(t + " not eligible for reset") : 1;
|
|
1025
1026
|
c.push(l);
|
|
1026
1027
|
}
|
|
1027
|
-
for (f = c.length; f--;) u = c[f], l = u._pt || u, l.s = (r || r === 0) && !i ? r : l.s + (r || 0) + a * l.c, l.c = n - l.s, u.e && (u.e =
|
|
1028
|
+
for (f = c.length; f--;) u = c[f], l = u._pt || u, l.s = (r || r === 0) && !i ? r : l.s + (r || 0) + a * l.c, l.c = n - l.s, u.e && (u.e = K(n) + Lt(u.e)), u.b && (u.b = l.s + Lt(u.b));
|
|
1028
1029
|
}, Gn = function(e, t) {
|
|
1029
|
-
var n = e[0] ?
|
|
1030
|
+
var n = e[0] ? qe(e[0]).harness : 0, r = n && n.aliases, i, a, o, s;
|
|
1030
1031
|
if (!r) return t;
|
|
1031
|
-
for (a in i =
|
|
1032
|
+
for (a in i = at({}, t), r) if (a in i) for (s = r[a].split(","), o = s.length; o--;) i[s[o]] = i[a];
|
|
1032
1033
|
return i;
|
|
1033
1034
|
}, Kn = function(e, t, n, r) {
|
|
1034
1035
|
var i = t.ease || r || "power1.inOut", a, o;
|
|
1035
|
-
if (
|
|
1036
|
+
if (he(t)) o = n[e] || (n[e] = []), t.forEach(function(e, n) {
|
|
1036
1037
|
return o.push({
|
|
1037
1038
|
t: n / (t.length - 1) * 100,
|
|
1038
1039
|
v: e,
|
|
@@ -1045,30 +1046,30 @@ var Ln = function(e, t, n, r, i, a, o) {
|
|
|
1045
1046
|
e: i
|
|
1046
1047
|
});
|
|
1047
1048
|
}, qn = function(e, t, n, r, i) {
|
|
1048
|
-
return
|
|
1049
|
-
}, Jn =
|
|
1050
|
-
|
|
1049
|
+
return W(e) ? e.call(t, n, r, i) : U(e) && ~e.indexOf("random(") ? tn(e) : e;
|
|
1050
|
+
}, Jn = Ge + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", Yn = {};
|
|
1051
|
+
Ye(Jn + ",id,stagger,delay,duration,paused,scrollTrigger", function(e) {
|
|
1051
1052
|
return Yn[e] = 1;
|
|
1052
1053
|
});
|
|
1053
|
-
var
|
|
1054
|
-
|
|
1054
|
+
var X = /*#__PURE__*/ function(e) {
|
|
1055
|
+
L(t, e);
|
|
1055
1056
|
function t(t, n, r, i) {
|
|
1056
1057
|
var a;
|
|
1057
|
-
typeof n == "number" && (r.duration = n, n = r, r = null), a = e.call(this, i ? n :
|
|
1058
|
-
var o = a.vars, s = o.duration, c = o.delay, l = o.immediateRender, u = o.stagger, d = o.overwrite, f = o.keyframes, p = o.defaults, m = o.scrollTrigger, h = o.yoyoEase, g = n.parent ||
|
|
1059
|
-
if (a._targets = _.length ?
|
|
1058
|
+
typeof n == "number" && (r.duration = n, n = r, r = null), a = e.call(this, i ? n : ct(n)) || this;
|
|
1059
|
+
var o = a.vars, s = o.duration, c = o.delay, l = o.immediateRender, u = o.stagger, d = o.overwrite, f = o.keyframes, p = o.defaults, m = o.scrollTrigger, h = o.yoyoEase, g = n.parent || G, _ = (he(t) || me(t) ? ce(t[0]) : "length" in n) ? [t] : Ht(t), v, y, b, x, S, C, w, T;
|
|
1060
|
+
if (a._targets = _.length ? Ke(_) : je("GSAP target " + t + " not found. https://gsap.com", !ee.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = d, f || u || pe(s) || pe(c)) {
|
|
1060
1061
|
if (n = a.vars, v = a.timeline = new In({
|
|
1061
1062
|
data: "nested",
|
|
1062
1063
|
defaults: p || {},
|
|
1063
1064
|
targets: g && g.data === "nested" ? g.vars.targets : _
|
|
1064
|
-
}), v.kill(), v.parent = v._dp =
|
|
1065
|
-
if (x = _.length, w = u && Gt(u),
|
|
1066
|
-
for (y = 0; y < x; y++) b =
|
|
1065
|
+
}), v.kill(), v.parent = v._dp = I(a), v._start = 0, u || pe(s) || pe(c)) {
|
|
1066
|
+
if (x = _.length, w = u && Gt(u), ue(u)) for (S in u) ~Jn.indexOf(S) && (T ||= {}, T[S] = u[S]);
|
|
1067
|
+
for (y = 0; y < x; y++) b = st(n, Yn), b.stagger = 0, h && (b.yoyoEase = h), T && at(b, T), C = _[y], b.duration = +qn(s, I(a), y, C, _), b.delay = (+qn(c, I(a), y, C, _) || 0) - a._delay, !u && x === 1 && b.delay && (a._delay = c = b.delay, a._start += c, b.delay = 0), v.to(C, b, w ? w(y, C, _) : 0), v._ease = Y.none;
|
|
1067
1068
|
v.duration() ? s = c = 0 : a.timeline = 0;
|
|
1068
1069
|
} else if (f) {
|
|
1069
|
-
|
|
1070
|
+
ct(rt(v.vars.defaults, { ease: "none" })), v._ease = kn(f.ease || n.ease || "none");
|
|
1070
1071
|
var E = 0, D, O, k;
|
|
1071
|
-
if (
|
|
1072
|
+
if (he(f)) f.forEach(function(e) {
|
|
1072
1073
|
return v.to(_, e, ">");
|
|
1073
1074
|
}), v.duration();
|
|
1074
1075
|
else {
|
|
@@ -1084,26 +1085,26 @@ var Y = /*#__PURE__*/ function(e) {
|
|
|
1084
1085
|
}
|
|
1085
1086
|
s || a.duration(s = v.duration());
|
|
1086
1087
|
} else a.timeline = 0;
|
|
1087
|
-
return d === !0 && !
|
|
1088
|
+
return d === !0 && !z && (Vn = I(a), G.killTweensOf(_), Vn = 0), Ct(g, I(a), r), n.reversed && a.reverse(), n.paused && a.paused(!0), (l || !s && !f && a._start === q(g._time) && de(l) && gt(I(a)) && g.data !== "nested") && (a._tTime = -H, a.render(Math.max(0, -c) || 0)), m && wt(I(a), m), a;
|
|
1088
1089
|
}
|
|
1089
1090
|
var n = t.prototype;
|
|
1090
1091
|
return n.render = function(e, t, n) {
|
|
1091
|
-
var r = this._time, i = this._tDur, a = this._dur, o = e < 0, s = e > i -
|
|
1092
|
-
if (!a)
|
|
1092
|
+
var r = this._time, i = this._tDur, a = this._dur, o = e < 0, s = e > i - H && !o ? i : e < H ? 0 : e, c, l, u, d, f, p, m, h, g;
|
|
1093
|
+
if (!a) Ot(this, e, t, n);
|
|
1093
1094
|
else if (s !== this._tTime || !e || n || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== o || this._lazy) {
|
|
1094
1095
|
if (c = s, h = this.timeline, this._repeat) {
|
|
1095
1096
|
if (d = a + this._rDelay, this._repeat < -1 && o) return this.totalTime(d * 100 + e, t, n);
|
|
1096
|
-
if (c =
|
|
1097
|
-
u !== f && (h && this._yEase && On(h, p), this.vars.repeatRefresh && !p && !this._lock && c !== d && this._initted && (this._lock = n = 1, this.render(
|
|
1097
|
+
if (c = q(s % d), s === i ? (u = this._repeat, c = a) : (f = q(s / d), u = ~~f, u && u === f ? (c = a, u--) : c > a && (c = a)), p = this._yoyo && u & 1, p && (g = this._yEase, c = a - c), f = vt(this._tTime, d), c === r && !n && this._initted && u === f) return this._tTime = s, this;
|
|
1098
|
+
u !== f && (h && this._yEase && On(h, p), this.vars.repeatRefresh && !p && !this._lock && c !== d && this._initted && (this._lock = n = 1, this.render(q(d * u), !0).invalidate()._lock = 0));
|
|
1098
1099
|
}
|
|
1099
1100
|
if (!this._initted) {
|
|
1100
|
-
if (
|
|
1101
|
+
if (Tt(this, o ? e : c, n, t, s)) return this._tTime = 0, this;
|
|
1101
1102
|
if (r !== this._time && !(n && this.vars.repeatRefresh && u !== f)) return this;
|
|
1102
1103
|
if (a !== this._dur) return this.render(e, t, n);
|
|
1103
1104
|
}
|
|
1104
1105
|
if (this._tTime = s, this._time = c, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = m = (g || this._ease)(c / a), this._from && (this.ratio = m = 1 - m), !r && s && !t && !f && (on(this, "onStart"), this._tTime !== s)) return this;
|
|
1105
1106
|
for (l = this._pt; l;) l.r(m, l.d), l = l._next;
|
|
1106
|
-
h && h.render(e < 0 ? e : h._dur * h._ease(c / this._dur), t, n) || this._startAt && (this._zTime = e), this._onUpdate && !t && (o &&
|
|
1107
|
+
h && h.render(e < 0 ? e : h._dur * h._ease(c / this._dur), t, n) || this._startAt && (this._zTime = e), this._onUpdate && !t && (o && ht(this, e, t, n), on(this, "onUpdate")), this._repeat && u !== f && this.vars.onRepeat && !t && this.parent && on(this, "onRepeat"), (s === this._tDur || !s) && this._tTime === s && (o && !this._onUpdate && ht(this, e, !0, !0), (e || !a) && (s === this._tDur && this._ts > 0 || !s && this._ts < 0) && ft(this, 1), !t && (!o || r) && (s || r || p) && (on(this, s === i ? "onComplete" : "onReverseComplete", !0), this._prom && !(s < i && this.timeScale() > 0) && this._prom()));
|
|
1107
1108
|
}
|
|
1108
1109
|
return this;
|
|
1109
1110
|
}, n.targets = function() {
|
|
@@ -1113,23 +1114,23 @@ var Y = /*#__PURE__*/ function(e) {
|
|
|
1113
1114
|
}, n.resetTo = function(e, t, n, r, i) {
|
|
1114
1115
|
yn || bn.wake(), this._ts || this.play();
|
|
1115
1116
|
var a = Math.min(this._dur, (this._dp._time - this._start) * this._ts), o;
|
|
1116
|
-
return this._initted || Un(this, a), o = this._ease(a / this._dur), Wn(this, e, t, n, r, o, a, i) ? this.resetTo(e, t, n, r, 1) : (
|
|
1117
|
+
return this._initted || Un(this, a), o = this._ease(a / this._dur), Wn(this, e, t, n, r, o, a, i) ? this.resetTo(e, t, n, r, 1) : (xt(this, 0), this.parent || ut(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
|
|
1117
1118
|
}, n.kill = function(e, t) {
|
|
1118
|
-
if (t === void 0 && (t = "all"), !e && (!t || t === "all")) return this._lazy = this._pt = 0, this.parent ? sn(this) : this.scrollTrigger && this.scrollTrigger.kill(!!
|
|
1119
|
+
if (t === void 0 && (t = "all"), !e && (!t || t === "all")) return this._lazy = this._pt = 0, this.parent ? sn(this) : this.scrollTrigger && this.scrollTrigger.kill(!!B), this;
|
|
1119
1120
|
if (this.timeline) {
|
|
1120
1121
|
var n = this.timeline.totalDuration();
|
|
1121
|
-
return this.timeline.killTweensOf(e, t, Vn && Vn.vars.overwrite !== !0)._first || sn(this), this.parent && n !== this.timeline.totalDuration() &&
|
|
1122
|
+
return this.timeline.killTweensOf(e, t, Vn && Vn.vars.overwrite !== !0)._first || sn(this), this.parent && n !== this.timeline.totalDuration() && At(this, this._dur * this.timeline._tDur / n, 0, 1), this;
|
|
1122
1123
|
}
|
|
1123
1124
|
var r = this._targets, i = e ? Ht(e) : r, a = this._ptLookup, o = this._pt, s, c, l, u, d, f, p;
|
|
1124
|
-
if ((!t || t === "all") &&
|
|
1125
|
-
for (s = this._op = this._op || [], t !== "all" && (
|
|
1125
|
+
if ((!t || t === "all") && lt(r, i)) return t === "all" && (this._pt = 0), sn(this);
|
|
1126
|
+
for (s = this._op = this._op || [], t !== "all" && (U(t) && (d = {}, Ye(t, function(e) {
|
|
1126
1127
|
return d[e] = 1;
|
|
1127
|
-
}), t = d), t = Gn(r, t)), p = r.length; p--;) if (~i.indexOf(r[p])) for (d in c = a[p], t === "all" ? (s[p] = t, u = c, l = {}) : (l = s[p] = s[p] || {}, u = t), u) f = c && c[d], f && ((!("kill" in f.d) || f.d.kill(d) === !0) &&
|
|
1128
|
+
}), t = d), t = Gn(r, t)), p = r.length; p--;) if (~i.indexOf(r[p])) for (d in c = a[p], t === "all" ? (s[p] = t, u = c, l = {}) : (l = s[p] = s[p] || {}, u = t), u) f = c && c[d], f && ((!("kill" in f.d) || f.d.kill(d) === !0) && dt(this, f, "_pt"), delete c[d]), l !== "all" && (l[d] = 1);
|
|
1128
1129
|
return this._initted && !this._pt && o && sn(this), this;
|
|
1129
1130
|
}, t.to = function(e, n) {
|
|
1130
1131
|
return new t(e, n, arguments[2]);
|
|
1131
1132
|
}, t.from = function(e, t) {
|
|
1132
|
-
return
|
|
1133
|
+
return Pt(1, arguments);
|
|
1133
1134
|
}, t.delayedCall = function(e, n, r, i) {
|
|
1134
1135
|
return new t(n, 0, {
|
|
1135
1136
|
immediateRender: !1,
|
|
@@ -1143,21 +1144,21 @@ var Y = /*#__PURE__*/ function(e) {
|
|
|
1143
1144
|
callbackScope: i
|
|
1144
1145
|
});
|
|
1145
1146
|
}, t.fromTo = function(e, t, n) {
|
|
1146
|
-
return
|
|
1147
|
+
return Pt(2, arguments);
|
|
1147
1148
|
}, t.set = function(e, n) {
|
|
1148
1149
|
return n.duration = 0, n.repeatDelay || (n.repeat = 0), new t(e, n);
|
|
1149
1150
|
}, t.killTweensOf = function(e, t, n) {
|
|
1150
|
-
return
|
|
1151
|
+
return G.killTweensOf(e, t, n);
|
|
1151
1152
|
}, t;
|
|
1152
1153
|
}(Fn);
|
|
1153
|
-
|
|
1154
|
+
rt(X.prototype, {
|
|
1154
1155
|
_targets: [],
|
|
1155
1156
|
_lazy: 0,
|
|
1156
1157
|
_startAt: 0,
|
|
1157
1158
|
_op: 0,
|
|
1158
1159
|
_onInit: 0
|
|
1159
|
-
}),
|
|
1160
|
-
|
|
1160
|
+
}), Ye("staggerTo,staggerFrom,staggerFromTo", function(e) {
|
|
1161
|
+
X[e] = function() {
|
|
1161
1162
|
var t = new In(), n = zt.call(arguments, 0);
|
|
1162
1163
|
return n.splice(e === "staggerFromTo" ? 5 : 4, 0, 0), t[e].apply(t, n);
|
|
1163
1164
|
};
|
|
@@ -1171,7 +1172,7 @@ var Xn = function(e, t, n) {
|
|
|
1171
1172
|
}, $n = function(e, t, n) {
|
|
1172
1173
|
return e.setAttribute(t, n);
|
|
1173
1174
|
}, er = function(e, t) {
|
|
1174
|
-
return
|
|
1175
|
+
return W(e[t]) ? Zn : le(e[t]) && e.setAttribute ? $n : Xn;
|
|
1175
1176
|
}, tr = function(e, t) {
|
|
1176
1177
|
return t.set(t.t, t.p, Math.round((t.s + t.c * e) * 1e6) / 1e6, t);
|
|
1177
1178
|
}, nr = function(e, t) {
|
|
@@ -1190,7 +1191,7 @@ var Xn = function(e, t, n) {
|
|
|
1190
1191
|
}, ar = function(e, t, n, r) {
|
|
1191
1192
|
for (var i = this._pt, a; i;) a = i._next, i.p === r && i.modifier(e, t, n), i = a;
|
|
1192
1193
|
}, or = function(e) {
|
|
1193
|
-
for (var t = this._pt, n, r; t;) r = t._next, t.p === e && !t.op || t.op === e ?
|
|
1194
|
+
for (var t = this._pt, n, r; t;) r = t._next, t.p === e && !t.op || t.op === e ? dt(this, t, "_pt") : t.dep || (n = 1), t = r;
|
|
1194
1195
|
return !n;
|
|
1195
1196
|
}, sr = function(e, t, n, r) {
|
|
1196
1197
|
r.mSet(e, t, r.m.call(r.tween, n, r.mt), r);
|
|
@@ -1209,15 +1210,15 @@ var Xn = function(e, t, n) {
|
|
|
1209
1210
|
this.mSet = this.mSet || this.set, this.set = sr, this.m = e, this.mt = n, this.tween = t;
|
|
1210
1211
|
}, e;
|
|
1211
1212
|
}();
|
|
1212
|
-
|
|
1213
|
-
return
|
|
1214
|
-
}),
|
|
1213
|
+
Ye(Ge + "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(e) {
|
|
1214
|
+
return Le[e] = 1;
|
|
1215
|
+
}), Ee.TweenMax = Ee.TweenLite = X, Ee.TimelineLite = Ee.TimelineMax = In, G = new In({
|
|
1215
1216
|
sortChildren: !1,
|
|
1216
|
-
defaults:
|
|
1217
|
+
defaults: R,
|
|
1217
1218
|
autoRemoveChildren: !0,
|
|
1218
1219
|
id: "root",
|
|
1219
1220
|
smoothChildTiming: !0
|
|
1220
|
-
}),
|
|
1221
|
+
}), ee.stringFilter = vn;
|
|
1221
1222
|
var ur = [], dr = {}, fr = [], pr = 0, mr = 0, hr = function(e) {
|
|
1222
1223
|
return (dr[e] || fr).map(function(e) {
|
|
1223
1224
|
return e();
|
|
@@ -1226,7 +1227,7 @@ var ur = [], dr = {}, fr = [], pr = 0, mr = 0, hr = function(e) {
|
|
|
1226
1227
|
var e = Date.now(), t = [];
|
|
1227
1228
|
e - pr > 2 && (hr("matchMediaInit"), ur.forEach(function(e) {
|
|
1228
1229
|
var n = e.queries, r = e.conditions, i, a, o, s;
|
|
1229
|
-
for (a in n) i =
|
|
1230
|
+
for (a in n) i = Ce.matchMedia(n[a]).matches, i && (o = 1), i !== r[a] && (r[a] = i, s = 1);
|
|
1230
1231
|
s && (e.revert(), o && t.push(e));
|
|
1231
1232
|
}), hr("matchMediaRevert"), t.forEach(function(e) {
|
|
1232
1233
|
return e.onMatch(e, function(t) {
|
|
@@ -1239,21 +1240,21 @@ var ur = [], dr = {}, fr = [], pr = 0, mr = 0, hr = function(e) {
|
|
|
1239
1240
|
}
|
|
1240
1241
|
var t = e.prototype;
|
|
1241
1242
|
return t.add = function(e, t, n) {
|
|
1242
|
-
|
|
1243
|
+
W(e) && (n = t, t = e, e = W);
|
|
1243
1244
|
var r = this, i = function() {
|
|
1244
|
-
var e =
|
|
1245
|
-
return e && e !== r && e.data.push(r), n && (r.selector = Ut(n)),
|
|
1245
|
+
var e = V, i = r.selector, a;
|
|
1246
|
+
return e && e !== r && e.data.push(r), n && (r.selector = Ut(n)), V = r, a = t.apply(r, arguments), W(a) && r._r.push(a), V = e, r.selector = i, r.isReverted = !1, a;
|
|
1246
1247
|
};
|
|
1247
|
-
return r.last = i, e ===
|
|
1248
|
+
return r.last = i, e === W ? i(r, function(e) {
|
|
1248
1249
|
return r.add(null, e);
|
|
1249
1250
|
}) : e ? r[e] = i : i;
|
|
1250
1251
|
}, t.ignore = function(e) {
|
|
1251
|
-
var t =
|
|
1252
|
-
|
|
1252
|
+
var t = V;
|
|
1253
|
+
V = null, e(this), V = t;
|
|
1253
1254
|
}, t.getTweens = function() {
|
|
1254
1255
|
var t = [];
|
|
1255
1256
|
return this.data.forEach(function(n) {
|
|
1256
|
-
return n instanceof e ? t.push.apply(t, n.getTweens()) : n instanceof
|
|
1257
|
+
return n instanceof e ? t.push.apply(t, n.getTweens()) : n instanceof X && !(n.parent && n.parent.data === "nested") && t.push(n);
|
|
1257
1258
|
}), t;
|
|
1258
1259
|
}, t.clear = function() {
|
|
1259
1260
|
this._r.length = this.data.length = 0;
|
|
@@ -1272,7 +1273,7 @@ var ur = [], dr = {}, fr = [], pr = 0, mr = 0, hr = function(e) {
|
|
|
1272
1273
|
return t.g - e.g || -Infinity;
|
|
1273
1274
|
}).forEach(function(t) {
|
|
1274
1275
|
return t.t.revert(e);
|
|
1275
|
-
}), r = n.data.length; r--;) i = n.data[r], i instanceof In ? i.data !== "nested" && (i.scrollTrigger && i.scrollTrigger.revert(), i.kill()) : !(i instanceof
|
|
1276
|
+
}), r = n.data.length; r--;) i = n.data[r], i instanceof In ? i.data !== "nested" && (i.scrollTrigger && i.scrollTrigger.revert(), i.kill()) : !(i instanceof X) && i.revert && i.revert(e);
|
|
1276
1277
|
n._r.forEach(function(t) {
|
|
1277
1278
|
return t(e, n);
|
|
1278
1279
|
}), n.isReverted = !0;
|
|
@@ -1284,13 +1285,13 @@ var ur = [], dr = {}, fr = [], pr = 0, mr = 0, hr = function(e) {
|
|
|
1284
1285
|
}, e;
|
|
1285
1286
|
}(), vr = /*#__PURE__*/ function() {
|
|
1286
1287
|
function e(e) {
|
|
1287
|
-
this.contexts = [], this.scope = e,
|
|
1288
|
+
this.contexts = [], this.scope = e, V && V.data.push(this);
|
|
1288
1289
|
}
|
|
1289
1290
|
var t = e.prototype;
|
|
1290
1291
|
return t.add = function(e, t, n) {
|
|
1291
|
-
|
|
1292
|
+
ue(e) || (e = { matches: e });
|
|
1292
1293
|
var r = new _r(0, n || this.scope), i = r.conditions = {}, a, o, s;
|
|
1293
|
-
for (o in
|
|
1294
|
+
for (o in V && !r.selector && (r.selector = V.selector), this.contexts.push(r), t = r.add("onMatch", t), r.queries = e, e) o === "all" ? s = 1 : (a = Ce.matchMedia(e[o]), a && (ur.indexOf(r) < 0 && ur.push(r), (i[o] = a.matches) && (s = 1), a.addListener ? a.addListener(gr) : a.addEventListener("change", gr)));
|
|
1294
1295
|
return s && t(r, function(e) {
|
|
1295
1296
|
return r.add(null, e);
|
|
1296
1297
|
}), this;
|
|
@@ -1311,13 +1312,13 @@ var ur = [], dr = {}, fr = [], pr = 0, mr = 0, hr = function(e) {
|
|
|
1311
1312
|
return new In(e);
|
|
1312
1313
|
},
|
|
1313
1314
|
getTweensOf: function(e, t) {
|
|
1314
|
-
return
|
|
1315
|
+
return G.getTweensOf(e, t);
|
|
1315
1316
|
},
|
|
1316
1317
|
getProperty: function(e, t, n, r) {
|
|
1317
|
-
|
|
1318
|
-
var i =
|
|
1319
|
-
return n === "native" && (n = ""), e && (t ? a((
|
|
1320
|
-
return a((
|
|
1318
|
+
U(e) && (e = Ht(e)[0]);
|
|
1319
|
+
var i = qe(e || {}).get, a = n ? nt : tt;
|
|
1320
|
+
return n === "native" && (n = ""), e && (t ? a((Ve[t] && Ve[t].get || i)(e, t, n, r)) : function(t, n, r) {
|
|
1321
|
+
return a((Ve[t] && Ve[t].get || i)(e, t, n, r));
|
|
1321
1322
|
});
|
|
1322
1323
|
},
|
|
1323
1324
|
quickSetter: function(e, t, n) {
|
|
@@ -1330,7 +1331,7 @@ var ur = [], dr = {}, fr = [], pr = 0, mr = 0, hr = function(e) {
|
|
|
1330
1331
|
};
|
|
1331
1332
|
}
|
|
1332
1333
|
e = e[0] || {};
|
|
1333
|
-
var a =
|
|
1334
|
+
var a = Ve[t], o = qe(e), s = o.harness && (o.harness.aliases || {})[t] || t, c = a ? function(t) {
|
|
1334
1335
|
var r = new a();
|
|
1335
1336
|
cn._pt = 0, r.init(e, n ? t + n : t, cn, 0, [e]), r.render(1, r), cn._pt && ir(1, cn);
|
|
1336
1337
|
} : o.set(e, s);
|
|
@@ -1339,47 +1340,47 @@ var ur = [], dr = {}, fr = [], pr = 0, mr = 0, hr = function(e) {
|
|
|
1339
1340
|
};
|
|
1340
1341
|
},
|
|
1341
1342
|
quickTo: function(e, t, n) {
|
|
1342
|
-
var r, i = Cr.to(e,
|
|
1343
|
+
var r, i = Cr.to(e, rt((r = {}, r[t] = "+=0.1", r.paused = !0, r.stagger = 0, r), n || {})), a = function(e, n, r) {
|
|
1343
1344
|
return i.resetTo(t, e, n, r);
|
|
1344
1345
|
};
|
|
1345
1346
|
return a.tween = i, a;
|
|
1346
1347
|
},
|
|
1347
1348
|
isTweening: function(e) {
|
|
1348
|
-
return
|
|
1349
|
+
return G.getTweensOf(e, !0).length > 0;
|
|
1349
1350
|
},
|
|
1350
1351
|
defaults: function(e) {
|
|
1351
|
-
return e && e.ease && (e.ease = kn(e.ease,
|
|
1352
|
+
return e && e.ease && (e.ease = kn(e.ease, R.ease)), ot(R, e || {});
|
|
1352
1353
|
},
|
|
1353
1354
|
config: function(e) {
|
|
1354
|
-
return
|
|
1355
|
+
return ot(ee, e || {});
|
|
1355
1356
|
},
|
|
1356
1357
|
registerEffect: function(e) {
|
|
1357
1358
|
var t = e.name, n = e.effect, r = e.plugins, i = e.defaults, a = e.extendTimeline;
|
|
1358
1359
|
(r || "").split(",").forEach(function(e) {
|
|
1359
|
-
return e && !
|
|
1360
|
-
}),
|
|
1361
|
-
return n(Ht(e),
|
|
1360
|
+
return e && !Ve[e] && !Ee[e] && je(t + " effect requires " + e + " plugin.");
|
|
1361
|
+
}), He[t] = function(e, t, r) {
|
|
1362
|
+
return n(Ht(e), rt(t || {}, i), r);
|
|
1362
1363
|
}, a && (In.prototype[t] = function(e, n, r) {
|
|
1363
|
-
return this.add(
|
|
1364
|
+
return this.add(He[t](e, ue(n) ? n : (r = n) && {}, this), r);
|
|
1364
1365
|
});
|
|
1365
1366
|
},
|
|
1366
1367
|
registerEase: function(e, t) {
|
|
1367
|
-
|
|
1368
|
+
Y[e] = kn(t);
|
|
1368
1369
|
},
|
|
1369
1370
|
parseEase: function(e, t) {
|
|
1370
|
-
return arguments.length ? kn(e, t) :
|
|
1371
|
+
return arguments.length ? kn(e, t) : Y;
|
|
1371
1372
|
},
|
|
1372
1373
|
getById: function(e) {
|
|
1373
|
-
return
|
|
1374
|
+
return G.getById(e);
|
|
1374
1375
|
},
|
|
1375
1376
|
exportRoot: function(e, t) {
|
|
1376
1377
|
e === void 0 && (e = {});
|
|
1377
1378
|
var n = new In(e), r, i;
|
|
1378
|
-
for (n.smoothChildTiming =
|
|
1379
|
-
return
|
|
1379
|
+
for (n.smoothChildTiming = de(e.smoothChildTiming), G.remove(n), n._dp = 0, n._time = n._tTime = G._time, r = G._first; r;) i = r._next, (t || !(!r._dur && r instanceof X && r.vars.onComplete === r._targets[0])) && Ct(n, r, r._start - r._delay), r = i;
|
|
1380
|
+
return Ct(G, n, 0), n;
|
|
1380
1381
|
},
|
|
1381
1382
|
context: function(e, t) {
|
|
1382
|
-
return e ? new _r(e, t) :
|
|
1383
|
+
return e ? new _r(e, t) : V;
|
|
1383
1384
|
},
|
|
1384
1385
|
matchMedia: function(e) {
|
|
1385
1386
|
return new vr(e);
|
|
@@ -1406,7 +1407,7 @@ var ur = [], dr = {}, fr = [], pr = 0, mr = 0, hr = function(e) {
|
|
|
1406
1407
|
random: Jt,
|
|
1407
1408
|
snap: qt,
|
|
1408
1409
|
normalize: Zt,
|
|
1409
|
-
getUnit:
|
|
1410
|
+
getUnit: Lt,
|
|
1410
1411
|
clamp: Rt,
|
|
1411
1412
|
splitColor: pn,
|
|
1412
1413
|
toArray: Ht,
|
|
@@ -1417,33 +1418,33 @@ var ur = [], dr = {}, fr = [], pr = 0, mr = 0, hr = function(e) {
|
|
|
1417
1418
|
interpolate: rn,
|
|
1418
1419
|
shuffle: Wt
|
|
1419
1420
|
},
|
|
1420
|
-
install:
|
|
1421
|
-
effects:
|
|
1421
|
+
install: ke,
|
|
1422
|
+
effects: He,
|
|
1422
1423
|
ticker: bn,
|
|
1423
1424
|
updateRoot: In.updateRoot,
|
|
1424
|
-
plugins:
|
|
1425
|
-
globalTimeline:
|
|
1425
|
+
plugins: Ve,
|
|
1426
|
+
globalTimeline: G,
|
|
1426
1427
|
core: {
|
|
1427
1428
|
PropTween: lr,
|
|
1428
|
-
globals:
|
|
1429
|
-
Tween:
|
|
1429
|
+
globals: Me,
|
|
1430
|
+
Tween: X,
|
|
1430
1431
|
Timeline: In,
|
|
1431
1432
|
Animation: Fn,
|
|
1432
|
-
getCache:
|
|
1433
|
-
_removeLinkedListItem:
|
|
1433
|
+
getCache: qe,
|
|
1434
|
+
_removeLinkedListItem: dt,
|
|
1434
1435
|
reverting: function() {
|
|
1435
|
-
return
|
|
1436
|
+
return B;
|
|
1436
1437
|
},
|
|
1437
1438
|
context: function(e) {
|
|
1438
|
-
return e &&
|
|
1439
|
+
return e && V && (V.data.push(e), e._ctx = V), V;
|
|
1439
1440
|
},
|
|
1440
1441
|
suppressOverwrites: function(e) {
|
|
1441
|
-
return
|
|
1442
|
+
return z = e;
|
|
1442
1443
|
}
|
|
1443
1444
|
}
|
|
1444
1445
|
};
|
|
1445
|
-
|
|
1446
|
-
return yr[e] =
|
|
1446
|
+
Ye("to,from,fromTo,delayedCall,set,killTweensOf", function(e) {
|
|
1447
|
+
return yr[e] = X[e];
|
|
1447
1448
|
}), bn.add(In.updateRoot), cn = yr.to({}, { duration: 0 });
|
|
1448
1449
|
var br = function(e, t) {
|
|
1449
1450
|
for (var n = e._pt; n && n.p !== t && n.op !== t && n.fp !== t;) n = n._next;
|
|
@@ -1459,7 +1460,7 @@ var br = function(e, t) {
|
|
|
1459
1460
|
init: function(e, n, r) {
|
|
1460
1461
|
r._onInit = function(e) {
|
|
1461
1462
|
var r, i;
|
|
1462
|
-
if (
|
|
1463
|
+
if (U(n) && (r = {}, Ye(n, function(e) {
|
|
1463
1464
|
return r[e] = 1;
|
|
1464
1465
|
}), n = r), t) {
|
|
1465
1466
|
for (i in r = {}, n) r[i] = t(n[i]);
|
|
@@ -1476,7 +1477,7 @@ var br = function(e, t) {
|
|
|
1476
1477
|
for (a in this.tween = n, t) s = e.getAttribute(a) || "", o = this.add(e, "setAttribute", (s || 0) + "", t[a], r, i, 0, 0, a), o.op = a, o.b = s, this._props.push(a);
|
|
1477
1478
|
},
|
|
1478
1479
|
render: function(e, t) {
|
|
1479
|
-
for (var n = t._pt; n;)
|
|
1480
|
+
for (var n = t._pt; n;) B ? n.set(n.t, n.p, n.b, n) : n.r(e, n.d), n = n._next;
|
|
1480
1481
|
}
|
|
1481
1482
|
}, {
|
|
1482
1483
|
name: "endArray",
|
|
@@ -1485,7 +1486,7 @@ var br = function(e, t) {
|
|
|
1485
1486
|
for (var n = t.length; n--;) this.add(e, n, e[n] || 0, t[n], 0, 0, 0, 0, 0, 1);
|
|
1486
1487
|
}
|
|
1487
1488
|
}, Sr("roundProps", Kt), Sr("modifiers"), Sr("snap", qt)) || yr;
|
|
1488
|
-
|
|
1489
|
+
X.version = In.version = Cr.version = "3.13.0", Oe = 1, fe() && xn(), Y.Power0, Y.Power1, Y.Power2, Y.Power3, Y.Power4, Y.Linear, Y.Quad, Y.Cubic, Y.Quart, Y.Quint, Y.Strong, Y.Elastic, Y.Back, Y.SteppedEase, Y.Bounce, Y.Sine, Y.Expo, Y.Circ;
|
|
1489
1490
|
//#endregion
|
|
1490
1491
|
//#region ../../node_modules/gsap/CSSPlugin.js
|
|
1491
1492
|
var wr, Tr, Er, Dr, Or, kr, Ar, jr = function() {
|
|
@@ -1521,7 +1522,7 @@ var wr, Tr, Er, Dr, Or, kr, Ar, jr = function() {
|
|
|
1521
1522
|
}, Qr = function(e, t, n, r, i) {
|
|
1522
1523
|
var a = e._gsap;
|
|
1523
1524
|
a[t] = n, a.renderTransform(i, a);
|
|
1524
|
-
},
|
|
1525
|
+
}, Z = "transform", $r = Z + "Origin", ei = function e(t, n) {
|
|
1525
1526
|
var r = this, i = this.target, a = i.style, o = i._gsap;
|
|
1526
1527
|
if (t in Mr && a) {
|
|
1527
1528
|
if (this.tfm = this.tfm || {}, t !== "transform") t = Br[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(e) {
|
|
@@ -1530,8 +1531,8 @@ var wr, Tr, Er, Dr, Or, kr, Ar, jr = function() {
|
|
|
1530
1531
|
else return Br.transform.split(",").forEach(function(t) {
|
|
1531
1532
|
return e.call(r, t, n);
|
|
1532
1533
|
});
|
|
1533
|
-
if (this.props.indexOf(
|
|
1534
|
-
o.svg && (this.svgo = i.getAttribute("data-svg-origin"), this.props.push($r, n, "")), t =
|
|
1534
|
+
if (this.props.indexOf(Z) >= 0) return;
|
|
1535
|
+
o.svg && (this.svgo = i.getAttribute("data-svg-origin"), this.props.push($r, n, "")), t = Z;
|
|
1535
1536
|
}
|
|
1536
1537
|
(a || n) && this.props.push(t, n, a[t]);
|
|
1537
1538
|
}, ti = function(e) {
|
|
@@ -1540,7 +1541,7 @@ var wr, Tr, Er, Dr, Or, kr, Ar, jr = function() {
|
|
|
1540
1541
|
for (var e = this.props, t = this.target, n = t.style, r = t._gsap, i = 0, a; i < e.length; i += 3) e[i + 1] ? e[i + 1] === 2 ? t[e[i]](e[i + 2]) : t[e[i]] = e[i + 2] : e[i + 2] ? n[e[i]] = e[i + 2] : n.removeProperty(e[i].substr(0, 2) === "--" ? e[i] : e[i].replace(Lr, "-$1").toLowerCase());
|
|
1541
1542
|
if (this.tfm) {
|
|
1542
1543
|
for (a in this.tfm) r[a] = this.tfm[a];
|
|
1543
|
-
r.svg && (r.renderTransform(), t.setAttribute("data-svg-origin", this.svgo || "")), i = Ar(), (!i || !i.isStart) && !n[
|
|
1544
|
+
r.svg && (r.renderTransform(), t.setAttribute("data-svg-origin", this.svgo || "")), i = Ar(), (!i || !i.isStart) && !n[Z] && (ti(n), r.zOrigin && n[$r] && (n[$r] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
|
|
1544
1545
|
}
|
|
1545
1546
|
}, ri = function(e, t) {
|
|
1546
1547
|
var n = {
|
|
@@ -1564,7 +1565,7 @@ var wr, Tr, Er, Dr, Or, kr, Ar, jr = function() {
|
|
|
1564
1565
|
for (e = e.charAt(0).toUpperCase() + e.substr(1); i-- && !(si[i] + e in r););
|
|
1565
1566
|
return i < 0 ? null : (i === 3 ? "ms" : i >= 0 ? si[i] : "") + e;
|
|
1566
1567
|
}, li = function() {
|
|
1567
|
-
jr() && window.document && (wr = window, Tr = wr.document, Er = Tr.documentElement, Or = ai("div") || { style: {} }, ai("div"),
|
|
1568
|
+
jr() && window.document && (wr = window, Tr = wr.document, Er = Tr.documentElement, Or = ai("div") || { style: {} }, ai("div"), Z = ci(Z), $r = Z + "Origin", Or.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", ii = !!ci("perspective"), Ar = Cr.core.reverting, Dr = 1);
|
|
1568
1569
|
}, ui = function(e) {
|
|
1569
1570
|
var t = e.ownerSVGElement, n = ai("svg", t && t.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = e.cloneNode(!0), i;
|
|
1570
1571
|
r.style.display = "block", n.appendChild(r), Er.appendChild(n);
|
|
@@ -1600,7 +1601,7 @@ var wr, Tr, Er, Dr, Or, kr, Ar, jr = function() {
|
|
|
1600
1601
|
}, mi = function(e, t) {
|
|
1601
1602
|
if (t) {
|
|
1602
1603
|
var n = e.style, r;
|
|
1603
|
-
t in Mr && t !== $r && (t =
|
|
1604
|
+
t in Mr && t !== $r && (t = Z), n.removeProperty ? (r = t.substr(0, 2), (r === "ms" || t.substr(0, 6) === "webkit") && (t = "-" + t), n.removeProperty(r === "--" ? t : t.replace(Lr, "-$1").toLowerCase())) : n.removeAttribute(t);
|
|
1604
1605
|
}
|
|
1605
1606
|
}, hi = function(e, t, n, r, i, a) {
|
|
1606
1607
|
var o = new lr(e._pt, t, n, 0, 1, a ? Kr : Gr);
|
|
@@ -1615,24 +1616,24 @@ var wr, Tr, Er, Dr, Or, kr, Ar, jr = function() {
|
|
|
1615
1616
|
}, vi = function e(t, n, r, i) {
|
|
1616
1617
|
var a = parseFloat(r) || 0, o = (r + "").trim().substr((a + "").length) || "px", s = Or.style, c = Rr.test(n), l = t.tagName.toLowerCase() === "svg", u = (l ? "client" : "offset") + (c ? "Width" : "Height"), d = 100, f = i === "px", p = i === "%", m, h, g, _;
|
|
1617
1618
|
if (i === o || !a || gi[i] || gi[o]) return a;
|
|
1618
|
-
if (o !== "px" && !f && (a = e(t, n, r, "px")), _ = t.getCTM && pi(t), (p || o === "%") && (Mr[n] || ~n.indexOf("adius"))) return m = _ ? t.getBBox()[c ? "width" : "height"] : t[u],
|
|
1619
|
-
if (s[c ? "width" : "height"] = d + (f ? o : i), h = i !== "rem" && ~n.indexOf("adius") || i === "em" && t.appendChild && !l ? t : t.parentNode, _ && (h = (t.ownerSVGElement || {}).parentNode), (!h || h === Tr || !h.appendChild) && (h = Tr.body), g = h._gsap, g && p && g.width && c && g.time === bn.time && !g.uncache) return
|
|
1619
|
+
if (o !== "px" && !f && (a = e(t, n, r, "px")), _ = t.getCTM && pi(t), (p || o === "%") && (Mr[n] || ~n.indexOf("adius"))) return m = _ ? t.getBBox()[c ? "width" : "height"] : t[u], K(p ? a / m * d : a / 100 * m);
|
|
1620
|
+
if (s[c ? "width" : "height"] = d + (f ? o : i), h = i !== "rem" && ~n.indexOf("adius") || i === "em" && t.appendChild && !l ? t : t.parentNode, _ && (h = (t.ownerSVGElement || {}).parentNode), (!h || h === Tr || !h.appendChild) && (h = Tr.body), g = h._gsap, g && p && g.width && c && g.time === bn.time && !g.uncache) return K(a / g.width * d);
|
|
1620
1621
|
if (p && (n === "height" || n === "width")) {
|
|
1621
1622
|
var v = t.style[n];
|
|
1622
1623
|
t.style[n] = d + i, m = t[u], v ? t.style[n] = v : mi(t, n);
|
|
1623
1624
|
} else (p || o === "%") && !_i[oi(h, "display")] && (s.position = oi(t, "position")), h === t && (s.position = "static"), h.appendChild(Or), m = Or[u], h.removeChild(Or), s.position = "absolute";
|
|
1624
|
-
return c && p && (g =
|
|
1625
|
+
return c && p && (g = qe(h), g.time = bn.time, g.width = h[u]), K(f ? m * a / d : m && a ? d / m * a : 0);
|
|
1625
1626
|
}, yi = function(e, t, n, r) {
|
|
1626
1627
|
var i;
|
|
1627
|
-
return Dr || li(), t in Br && t !== "transform" && (t = Br[t], ~t.indexOf(",") && (t = t.split(",")[0])), Mr[t] && t !== "transform" ? (i = ji(e, r), i = t === "transformOrigin" ? i.svg ? i.origin : Mi(oi(e, $r)) + " " + i.zOrigin + "px" : i[t]) : (i = e.style[t], (!i || i === "auto" || r || ~(i + "").indexOf("calc(")) && (i = wi[t] && wi[t](e, t, n) || oi(e, t) ||
|
|
1628
|
+
return Dr || li(), t in Br && t !== "transform" && (t = Br[t], ~t.indexOf(",") && (t = t.split(",")[0])), Mr[t] && t !== "transform" ? (i = ji(e, r), i = t === "transformOrigin" ? i.svg ? i.origin : Mi(oi(e, $r)) + " " + i.zOrigin + "px" : i[t]) : (i = e.style[t], (!i || i === "auto" || r || ~(i + "").indexOf("calc(")) && (i = wi[t] && wi[t](e, t, n) || oi(e, t) || Je(e, t) || +(t === "opacity"))), n && !~(i + "").trim().indexOf(" ") ? vi(e, t, i, n) + n : i;
|
|
1628
1629
|
}, bi = function(e, t, n, r) {
|
|
1629
1630
|
if (!n || n === "none") {
|
|
1630
1631
|
var i = ci(t, e, 1), a = i && oi(e, i, 1);
|
|
1631
1632
|
a && a !== n ? (t = i, n = a) : t === "borderColor" && (n = oi(e, "borderTopColor"));
|
|
1632
1633
|
}
|
|
1633
1634
|
var o = new lr(this._pt, e.style, t, 0, 1, rr), s = 0, c = 0, l, u, d, f, p, m, h, g, _, v, y, b;
|
|
1634
|
-
if (o.b = n, o.e = r, n += "", r += "", r.substring(0, 6) === "var(--" && (r = oi(e, r.substring(4, r.indexOf(")")))), r === "auto" && (m = e.style[t], e.style[t] = r, r = oi(e, t) || r, m ? e.style[t] = m : mi(e, t)), l = [n, r], vn(l), n = l[0], r = l[1], d = n.match(
|
|
1635
|
-
for (; u =
|
|
1635
|
+
if (o.b = n, o.e = r, n += "", r += "", r.substring(0, 6) === "var(--" && (r = oi(e, r.substring(4, r.indexOf(")")))), r === "auto" && (m = e.style[t], e.style[t] = r, r = oi(e, t) || r, m ? e.style[t] = m : mi(e, t)), l = [n, r], vn(l), n = l[0], r = l[1], d = n.match(ve) || [], b = r.match(ve) || [], b.length) {
|
|
1636
|
+
for (; u = ve.exec(r);) h = u[0], _ = r.substring(s, u.index), p ? p = (p + 1) % 5 : (_.substr(-5) === "rgba(" || _.substr(-5) === "hsla(") && (p = 1), h !== (m = d[c++] || "") && (f = parseFloat(m) || 0, y = m.substr((f + "").length), h.charAt(1) === "=" && (h = Xe(f, h) + y), g = parseFloat(h), v = h.substr((g + "").length), s = ve.lastIndex - v.length, v || (v = v || ee.units[t] || y, s === r.length && (r += v, o.e += v)), y !== v && (f = vi(e, t, m, v) || 0), o._pt = {
|
|
1636
1637
|
_next: o._pt,
|
|
1637
1638
|
p: _ || c === 1 ? _ : ",",
|
|
1638
1639
|
s: f,
|
|
@@ -1641,7 +1642,7 @@ var wr, Tr, Er, Dr, Or, kr, Ar, jr = function() {
|
|
|
1641
1642
|
});
|
|
1642
1643
|
o.c = s < r.length ? r.substring(s, r.length) : "";
|
|
1643
1644
|
} else o.r = t === "display" && r === "none" ? Kr : Gr;
|
|
1644
|
-
return
|
|
1645
|
+
return be.test(r) && (o.e = 0), this._pt = o, o;
|
|
1645
1646
|
}, xi = {
|
|
1646
1647
|
top: "0%",
|
|
1647
1648
|
bottom: "100%",
|
|
@@ -1655,8 +1656,8 @@ var wr, Tr, Er, Dr, Or, kr, Ar, jr = function() {
|
|
|
1655
1656
|
if (t.tween && t.tween._time === t.tween._dur) {
|
|
1656
1657
|
var n = t.t, r = n.style, i = t.u, a = n._gsap, o, s, c;
|
|
1657
1658
|
if (i === "all" || i === !0) r.cssText = "", s = 1;
|
|
1658
|
-
else for (i = i.split(","), c = i.length; --c > -1;) o = i[c], Mr[o] && (s = 1, o = o === "transformOrigin" ? $r :
|
|
1659
|
-
s && (mi(n,
|
|
1659
|
+
else for (i = i.split(","), c = i.length; --c > -1;) o = i[c], Mr[o] && (s = 1, o = o === "transformOrigin" ? $r : Z), mi(n, o);
|
|
1660
|
+
s && (mi(n, Z), a && (a.svg && n.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", ji(n, 1), a.uncache = 1, ti(r)));
|
|
1660
1661
|
}
|
|
1661
1662
|
}, wi = { clearProps: function(e, t, n, r, i) {
|
|
1662
1663
|
if (i.data !== "isFromStart") {
|
|
@@ -1673,10 +1674,10 @@ var wr, Tr, Er, Dr, Or, kr, Ar, jr = function() {
|
|
|
1673
1674
|
], Ei = {}, Di = function(e) {
|
|
1674
1675
|
return e === "matrix(1, 0, 0, 1, 0, 0)" || e === "none" || !e;
|
|
1675
1676
|
}, Oi = function(e) {
|
|
1676
|
-
var t = oi(e,
|
|
1677
|
-
return Di(t) ? Ti : t.substr(7).match(
|
|
1677
|
+
var t = oi(e, Z);
|
|
1678
|
+
return Di(t) ? Ti : t.substr(7).match(_e).map(K);
|
|
1678
1679
|
}, ki = function(e, t) {
|
|
1679
|
-
var n = e._gsap ||
|
|
1680
|
+
var n = e._gsap || qe(e), r = e.style, i = Oi(e), a, o, s, c;
|
|
1680
1681
|
return n.svg && e.getAttribute("transform") ? (s = e.transform.baseVal.consolidate().matrix, i = [
|
|
1681
1682
|
s.a,
|
|
1682
1683
|
s.b,
|
|
@@ -1698,13 +1699,13 @@ var wr, Tr, Er, Dr, Or, kr, Ar, jr = function() {
|
|
|
1698
1699
|
}, ji = function(e, t) {
|
|
1699
1700
|
var n = e._gsap || new Pn(e);
|
|
1700
1701
|
if ("x" in n && !t && !n.uncache) return n;
|
|
1701
|
-
var r = e.style, i = n.scaleX < 0, a = "px", o = "deg", s = getComputedStyle(e), c = oi(e, $r) || "0", l = u = d = m = h = g = _ = v = y = 0, u, d, f = p = 1, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, N, P, F,
|
|
1702
|
-
return n.svg = !!(e.getCTM && pi(e)), s.translate && ((s.translate !== "none" || s.scale !== "none" || s.rotate !== "none") && (r[
|
|
1702
|
+
var r = e.style, i = n.scaleX < 0, a = "px", o = "deg", s = getComputedStyle(e), c = oi(e, $r) || "0", l = u = d = m = h = g = _ = v = y = 0, u, d, f = p = 1, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, N, P, F, I, L, R, z, B;
|
|
1703
|
+
return n.svg = !!(e.getCTM && pi(e)), s.translate && ((s.translate !== "none" || s.scale !== "none" || s.rotate !== "none") && (r[Z] = (s.translate === "none" ? "" : "translate3d(" + (s.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") ") + (s.rotate === "none" ? "" : "rotate(" + s.rotate + ") ") + (s.scale === "none" ? "" : "scale(" + s.scale.split(" ").join(",") + ") ") + (s[Z] === "none" ? "" : s[Z])), r.scale = r.rotate = r.translate = "none"), S = ki(e, n.svg), n.svg && (n.uncache ? (N = e.getBBox(), c = n.xOrigin - N.x + "px " + (n.yOrigin - N.y) + "px", M = "") : M = !t && e.getAttribute("data-svg-origin"), Ai(e, M || c, !!M || n.originIsAbsolute, n.smooth !== !1, S)), b = n.xOrigin || 0, x = n.yOrigin || 0, S !== Ti && (E = S[0], D = S[1], O = S[2], k = S[3], l = A = S[4], u = j = S[5], S.length === 6 ? (f = Math.sqrt(E * E + D * D), p = Math.sqrt(k * k + O * O), m = E || D ? Fr(D, E) * Nr : 0, _ = O || k ? Fr(O, k) * Nr + m : 0, _ && (p *= Math.abs(Math.cos(_ * Pr))), n.svg && (l -= b - (b * E + x * O), u -= x - (b * D + x * k))) : (B = S[6], R = S[7], F = S[8], I = S[9], L = S[10], z = S[11], l = S[12], u = S[13], d = S[14], C = Fr(B, L), h = C * Nr, C && (w = Math.cos(-C), T = Math.sin(-C), M = A * w + F * T, N = j * w + I * T, P = B * w + L * T, F = A * -T + F * w, I = j * -T + I * w, L = B * -T + L * w, z = R * -T + z * w, A = M, j = N, B = P), C = Fr(-O, L), g = C * Nr, C && (w = Math.cos(-C), T = Math.sin(-C), M = E * w - F * T, N = D * w - I * T, P = O * w - L * T, z = k * T + z * w, E = M, D = N, O = P), C = Fr(D, E), m = C * Nr, C && (w = Math.cos(C), T = Math.sin(C), M = E * w + D * T, N = A * w + j * T, D = D * w - E * T, j = j * w - A * T, E = M, A = N), h && Math.abs(h) + Math.abs(m) > 359.9 && (h = m = 0, g = 180 - g), f = K(Math.sqrt(E * E + D * D + O * O)), p = K(Math.sqrt(j * j + B * B)), C = Fr(A, j), _ = Math.abs(C) > 2e-4 ? C * Nr : 0, y = z ? 1 / (z < 0 ? -z : z) : 0), n.svg && (M = e.getAttribute("transform"), n.forceCSS = e.setAttribute("transform", "") || !Di(oi(e, Z)), M && e.setAttribute("transform", M))), Math.abs(_) > 90 && Math.abs(_) < 270 && (i ? (f *= -1, _ += m <= 0 ? 180 : -180, m += m <= 0 ? 180 : -180) : (p *= -1, _ += _ <= 0 ? 180 : -180)), t ||= n.uncache, n.x = l - ((n.xPercent = l && (!t && n.xPercent || (Math.round(e.offsetWidth / 2) === Math.round(-l) ? -50 : 0))) ? e.offsetWidth * n.xPercent / 100 : 0) + a, n.y = u - ((n.yPercent = u && (!t && n.yPercent || (Math.round(e.offsetHeight / 2) === Math.round(-u) ? -50 : 0))) ? e.offsetHeight * n.yPercent / 100 : 0) + a, n.z = d + a, n.scaleX = K(f), n.scaleY = K(p), n.rotation = K(m) + o, n.rotationX = K(h) + o, n.rotationY = K(g) + o, n.skewX = _ + o, n.skewY = v + o, n.transformPerspective = y + a, (n.zOrigin = parseFloat(c.split(" ")[2]) || !t && n.zOrigin || 0) && (r[$r] = Mi(c)), n.xOffset = n.yOffset = 0, n.force3D = ee.force3D, n.renderTransform = n.svg ? zi : ii ? Ri : Pi, n.uncache = 0, n;
|
|
1703
1704
|
}, Mi = function(e) {
|
|
1704
1705
|
return (e = e.split(" "))[0] + " " + e[1];
|
|
1705
1706
|
}, Ni = function(e, t, n) {
|
|
1706
|
-
var r =
|
|
1707
|
-
return
|
|
1707
|
+
var r = Lt(t);
|
|
1708
|
+
return K(parseFloat(t) + parseFloat(vi(e, "x", n + "px", r))) + r;
|
|
1708
1709
|
}, Pi = function(e, t) {
|
|
1709
1710
|
t.z = "0px", t.rotationY = t.rotationX = "0deg", t.force3D = 0, Ri(e, t);
|
|
1710
1711
|
}, Fi = "0deg", Ii = "0px", Li = ") ", Ri = function(e, t) {
|
|
@@ -1713,22 +1714,22 @@ var wr, Tr, Er, Dr, Or, kr, Ar, jr = function() {
|
|
|
1713
1714
|
var x = parseFloat(l) * Pr, S = Math.sin(x), C = Math.cos(x), w;
|
|
1714
1715
|
x = parseFloat(u) * Pr, w = Math.cos(x), a = Ni(_, a, S * w * -v), o = Ni(_, o, -Math.sin(x) * -v), s = Ni(_, s, C * w * -v + v);
|
|
1715
1716
|
}
|
|
1716
|
-
h !== Ii && (y += "perspective(" + h + Li), (r || i) && (y += "translate(" + r + "%, " + i + "%) "), (b || a !== Ii || o !== Ii || s !== Ii) && (y += s !== Ii || b ? "translate3d(" + a + ", " + o + ", " + s + ") " : "translate(" + a + ", " + o + Li), c !== Fi && (y += "rotate(" + c + Li), l !== Fi && (y += "rotateY(" + l + Li), u !== Fi && (y += "rotateX(" + u + Li), (d !== Fi || f !== Fi) && (y += "skew(" + d + ", " + f + Li), (p !== 1 || m !== 1) && (y += "scale(" + p + ", " + m + Li), _.style[
|
|
1717
|
+
h !== Ii && (y += "perspective(" + h + Li), (r || i) && (y += "translate(" + r + "%, " + i + "%) "), (b || a !== Ii || o !== Ii || s !== Ii) && (y += s !== Ii || b ? "translate3d(" + a + ", " + o + ", " + s + ") " : "translate(" + a + ", " + o + Li), c !== Fi && (y += "rotate(" + c + Li), l !== Fi && (y += "rotateY(" + l + Li), u !== Fi && (y += "rotateX(" + u + Li), (d !== Fi || f !== Fi) && (y += "skew(" + d + ", " + f + Li), (p !== 1 || m !== 1) && (y += "scale(" + p + ", " + m + Li), _.style[Z] = y || "translate(0, 0)";
|
|
1717
1718
|
}, zi = function(e, t) {
|
|
1718
1719
|
var n = t || this, r = n.xPercent, i = n.yPercent, a = n.x, o = n.y, s = n.rotation, c = n.skewX, l = n.skewY, u = n.scaleX, d = n.scaleY, f = n.target, p = n.xOrigin, m = n.yOrigin, h = n.xOffset, g = n.yOffset, _ = n.forceCSS, v = parseFloat(a), y = parseFloat(o), b, x, S, C, w;
|
|
1719
|
-
s = parseFloat(s), c = parseFloat(c), l = parseFloat(l), l && (l = parseFloat(l), c += l, s += l), s || c ? (s *= Pr, c *= Pr, b = Math.cos(s) * u, x = Math.sin(s) * u, S = Math.sin(s - c) * -d, C = Math.cos(s - c) * d, c && (l *= Pr, w = Math.tan(c - l), w = Math.sqrt(1 + w * w), S *= w, C *= w, l && (w = Math.tan(l), w = Math.sqrt(1 + w * w), b *= w, x *= w)), b =
|
|
1720
|
+
s = parseFloat(s), c = parseFloat(c), l = parseFloat(l), l && (l = parseFloat(l), c += l, s += l), s || c ? (s *= Pr, c *= Pr, b = Math.cos(s) * u, x = Math.sin(s) * u, S = Math.sin(s - c) * -d, C = Math.cos(s - c) * d, c && (l *= Pr, w = Math.tan(c - l), w = Math.sqrt(1 + w * w), S *= w, C *= w, l && (w = Math.tan(l), w = Math.sqrt(1 + w * w), b *= w, x *= w)), b = K(b), x = K(x), S = K(S), C = K(C)) : (b = u, C = d, x = S = 0), (v && !~(a + "").indexOf("px") || y && !~(o + "").indexOf("px")) && (v = vi(f, "x", a, "px"), y = vi(f, "y", o, "px")), (p || m || h || g) && (v = K(v + p - (p * b + m * S) + h), y = K(y + m - (p * x + m * C) + g)), (r || i) && (w = f.getBBox(), v = K(v + r / 100 * w.width), y = K(y + i / 100 * w.height)), w = "matrix(" + b + "," + x + "," + S + "," + C + "," + v + "," + y + ")", f.setAttribute("transform", w), _ && (f.style[Z] = w);
|
|
1720
1721
|
}, Bi = function(e, t, n, r, i) {
|
|
1721
|
-
var a = 360, o =
|
|
1722
|
+
var a = 360, o = U(i), s = parseFloat(i) * (o && ~i.indexOf("rad") ? Nr : 1) - r, c = r + s + "deg", l, u;
|
|
1722
1723
|
return o && (l = i.split("_")[1], l === "short" && (s %= a, s !== s % (a / 2) && (s += s < 0 ? a : -a)), l === "cw" && s < 0 ? s = (s + a * Ir) % a - ~~(s / a) * a : l === "ccw" && s > 0 && (s = (s - a * Ir) % a - ~~(s / a) * a)), e._pt = u = new lr(e._pt, t, n, r, s, Hr), u.e = c, u.u = "deg", e._props.push(n), u;
|
|
1723
1724
|
}, Vi = function(e, t) {
|
|
1724
1725
|
for (var n in t) e[n] = t[n];
|
|
1725
1726
|
return e;
|
|
1726
1727
|
}, Hi = function(e, t, n) {
|
|
1727
1728
|
var r = Vi({}, n._gsap), i = "perspective,force3D,transformOrigin,svgOrigin", a = n.style, o, s, c, l, u, d, f, p;
|
|
1728
|
-
for (s in r.svg ? (c = n.getAttribute("transform"), n.setAttribute("transform", ""), a[
|
|
1729
|
+
for (s in r.svg ? (c = n.getAttribute("transform"), n.setAttribute("transform", ""), a[Z] = t, o = ji(n, 1), mi(n, Z), n.setAttribute("transform", c)) : (c = getComputedStyle(n)[Z], a[Z] = t, o = ji(n, 1), a[Z] = c), Mr) c = r[s], l = o[s], c !== l && i.indexOf(s) < 0 && (f = Lt(c), p = Lt(l), u = f === p ? parseFloat(c) : vi(n, s, c, p), d = parseFloat(l), e._pt = new lr(e._pt, o, s, u, d - u, Vr), e._pt.u = p || 0, e._props.push(s));
|
|
1729
1730
|
Vi(o, r);
|
|
1730
1731
|
};
|
|
1731
|
-
|
|
1732
|
+
Ye("padding,margin,Width,Radius", function(e, t) {
|
|
1732
1733
|
var n = "Top", r = "Right", i = "Bottom", a = "Left", o = (t < 3 ? [
|
|
1733
1734
|
n,
|
|
1734
1735
|
r,
|
|
@@ -1760,12 +1761,12 @@ var Ui = {
|
|
|
1760
1761
|
},
|
|
1761
1762
|
init: function(e, t, n, r, i) {
|
|
1762
1763
|
var a = this._props, o = e.style, s = n.vars.startAt, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C;
|
|
1763
|
-
for (m in Dr || li(), this.styles = this.styles || ri(e), C = this.styles.props, this.tween = n, t) if (m !== "autoRound" && (l = t[m], !(
|
|
1764
|
+
for (m in Dr || li(), this.styles = this.styles || ri(e), C = this.styles.props, this.tween = n, t) if (m !== "autoRound" && (l = t[m], !(Ve[m] && Bn(m, t, n, r, e, i)))) {
|
|
1764
1765
|
if (f = typeof l, p = wi[m], f === "function" && (l = l.call(n, r, e, i), f = typeof l), f === "string" && ~l.indexOf("random(") && (l = tn(l)), p) p(this, e, m, l, n) && (S = 1);
|
|
1765
|
-
else if (m.substr(0, 2) === "--") c = (getComputedStyle(e).getPropertyValue(m) + "").trim(), l += "", gn.lastIndex = 0, gn.test(c) || (h =
|
|
1766
|
+
else if (m.substr(0, 2) === "--") c = (getComputedStyle(e).getPropertyValue(m) + "").trim(), l += "", gn.lastIndex = 0, gn.test(c) || (h = Lt(c), g = Lt(l)), g ? h !== g && (c = vi(e, m, c, g) + g) : h && (l += h), this.add(o, "setProperty", c, l, r, i, 0, 0, m), a.push(m), C.push(m, 0, o[m]);
|
|
1766
1767
|
else if (f !== "undefined") {
|
|
1767
|
-
if (s && m in s ? (c = typeof s[m] == "function" ? s[m].call(n, r, e, i) : s[m],
|
|
1768
|
-
if (this.styles.save(m), f === "string" && l.substring(0, 6) === "var(--" && (l = oi(e, l.substring(4, l.indexOf(")"))), u = parseFloat(l)), y || (b = e._gsap, b.renderTransform && !t.parseTransform || ji(e, t.parseTransform), x = t.smoothOrigin !== !1 && b.smooth, y = this._pt = new lr(this._pt, o,
|
|
1768
|
+
if (s && m in s ? (c = typeof s[m] == "function" ? s[m].call(n, r, e, i) : s[m], U(c) && ~c.indexOf("random(") && (c = tn(c)), Lt(c + "") || c === "auto" || (c += ee.units[m] || Lt(yi(e, m)) || ""), (c + "").charAt(1) === "=" && (c = yi(e, m))) : c = yi(e, m), d = parseFloat(c), _ = f === "string" && l.charAt(1) === "=" && l.substr(0, 2), _ && (l = l.substr(2)), u = parseFloat(l), m in Br && (m === "autoAlpha" && (d === 1 && yi(e, "visibility") === "hidden" && u && (d = 0), C.push("visibility", 0, o.visibility), hi(this, o, "visibility", d ? "inherit" : "hidden", u ? "inherit" : "hidden", !u)), m !== "scale" && m !== "transform" && (m = Br[m], ~m.indexOf(",") && (m = m.split(",")[0]))), v = m in Mr, v) {
|
|
1769
|
+
if (this.styles.save(m), f === "string" && l.substring(0, 6) === "var(--" && (l = oi(e, l.substring(4, l.indexOf(")"))), u = parseFloat(l)), y || (b = e._gsap, b.renderTransform && !t.parseTransform || ji(e, t.parseTransform), x = t.smoothOrigin !== !1 && b.smooth, y = this._pt = new lr(this._pt, o, Z, 0, 1, b.renderTransform, b, 0, -1), y.dep = 1), m === "scale") this._pt = new lr(this._pt, b, "scaleY", b.scaleY, (_ ? Xe(b.scaleY, _ + u) : u) - b.scaleY || 0, Vr), this._pt.u = 0, a.push("scaleY", m), m += "X";
|
|
1769
1770
|
else if (m === "transformOrigin") {
|
|
1770
1771
|
C.push($r, 0, o[$r]), l = Si(l), b.svg ? Ai(e, l, 0, x, 0, this) : (g = parseFloat(l.split(" ")[2]) || 0, g !== b.zOrigin && hi(this, b, "zOrigin", b.zOrigin, g), hi(this, o, m, Mi(c), Mi(l)));
|
|
1771
1772
|
continue;
|
|
@@ -1773,7 +1774,7 @@ var Ui = {
|
|
|
1773
1774
|
Ai(e, l, 1, x, 0, this);
|
|
1774
1775
|
continue;
|
|
1775
1776
|
} else if (m in Ei) {
|
|
1776
|
-
Bi(this, b, m, d, _ ?
|
|
1777
|
+
Bi(this, b, m, d, _ ? Xe(d, _ + l) : l);
|
|
1777
1778
|
continue;
|
|
1778
1779
|
} else if (m === "smoothOrigin") {
|
|
1779
1780
|
hi(this, b, "smooth", b.smooth, l);
|
|
@@ -1786,11 +1787,11 @@ var Ui = {
|
|
|
1786
1787
|
continue;
|
|
1787
1788
|
}
|
|
1788
1789
|
} else m in o || (m = ci(m) || m);
|
|
1789
|
-
if (v || (u || u === 0) && (d || d === 0) && !zr.test(l) && m in o) h = (c + "").substr((d + "").length), u ||= 0, g =
|
|
1790
|
+
if (v || (u || u === 0) && (d || d === 0) && !zr.test(l) && m in o) h = (c + "").substr((d + "").length), u ||= 0, g = Lt(l) || (m in ee.units ? ee.units[m] : h), h !== g && (d = vi(e, m, c, g)), this._pt = new lr(this._pt, v ? b : o, m, d, (_ ? Xe(d, _ + u) : u) - d, !v && (g === "px" || m === "zIndex") && t.autoRound !== !1 ? Wr : Vr), this._pt.u = g || 0, h !== g && g !== "%" && (this._pt.b = c, this._pt.r = Ur);
|
|
1790
1791
|
else if (m in o) bi.call(this, e, m, c, _ ? _ + l : l);
|
|
1791
1792
|
else if (m in e) this.add(e, m, c || e[m], _ ? _ + l : l, r, i);
|
|
1792
1793
|
else if (m !== "parseTransform") {
|
|
1793
|
-
|
|
1794
|
+
Ae(m, l);
|
|
1794
1795
|
continue;
|
|
1795
1796
|
}
|
|
1796
1797
|
v || (m in o ? C.push(m, 0, o[m]) : typeof e[m] == "function" ? C.push(m, 2, e[m]()) : C.push(m, 1, c || e[m])), a.push(m);
|
|
@@ -1806,7 +1807,7 @@ var Ui = {
|
|
|
1806
1807
|
aliases: Br,
|
|
1807
1808
|
getSetter: function(e, t, n) {
|
|
1808
1809
|
var r = Br[t];
|
|
1809
|
-
return r && r.indexOf(",") < 0 && (t = r), t in Mr && t !== $r && (e._gsap.x || yi(e, "x")) ? n && kr === n ? t === "scale" ? Xr : Yr : (kr = n || {}) && (t === "scale" ? Zr : Qr) : e.style && !
|
|
1810
|
+
return r && r.indexOf(",") < 0 && (t = r), t in Mr && t !== $r && (e._gsap.x || yi(e, "x")) ? n && kr === n ? t === "scale" ? Xr : Yr : (kr = n || {}) && (t === "scale" ? Zr : Qr) : e.style && !le(e.style[t]) ? qr : ~t.indexOf("-") ? Jr : er(e, t);
|
|
1810
1811
|
},
|
|
1811
1812
|
core: {
|
|
1812
1813
|
_removeProperty: mi,
|
|
@@ -1814,17 +1815,17 @@ var Ui = {
|
|
|
1814
1815
|
}
|
|
1815
1816
|
};
|
|
1816
1817
|
Cr.utils.checkPrefix = ci, Cr.core.getStyleSaver = ri, (function(e, t, n, r) {
|
|
1817
|
-
var i =
|
|
1818
|
+
var i = Ye(e + "," + t + "," + n, function(e) {
|
|
1818
1819
|
Mr[e] = 1;
|
|
1819
1820
|
});
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
}), Br[i[13]] = e + "," + t,
|
|
1821
|
+
Ye(t, function(e) {
|
|
1822
|
+
ee.units[e] = "deg", Ei[e] = 1;
|
|
1823
|
+
}), Br[i[13]] = e + "," + t, Ye(r, function(e) {
|
|
1823
1824
|
var t = e.split(":");
|
|
1824
1825
|
Br[t[1]] = i[t[0]];
|
|
1825
1826
|
});
|
|
1826
|
-
})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent", "rotation,rotationX,rotationY,skewX,skewY", "transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective", "0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),
|
|
1827
|
-
|
|
1827
|
+
})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent", "rotation,rotationX,rotationY,skewX,skewY", "transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective", "0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"), Ye("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(e) {
|
|
1828
|
+
ee.units[e] = "px";
|
|
1828
1829
|
}), Cr.registerPlugin(Ui);
|
|
1829
1830
|
//#endregion
|
|
1830
1831
|
//#region ../../node_modules/gsap/index.js
|
|
@@ -1848,11 +1849,11 @@ function na(e, t, n, r, i, a, o, s, c) {
|
|
|
1848
1849
|
b > 1 && (n = Zi(b) * n, r = Zi(b) * r);
|
|
1849
1850
|
var x = n * n, S = r * r, C = (x * S - x * y - S * v) / (x * y + S * v);
|
|
1850
1851
|
C < 0 && (C = 0);
|
|
1851
|
-
var w = (a === o ? -1 : 1) * Zi(C), T = w * (n * _ / r), E = w * -(r * g / n), D = (e + s) / 2, O = (t + c) / 2, k = D + (u * T - d * E), A = O + (d * T + u * E), j = (g - T) / n, M = (_ - E) / r, N = (-g - T) / n, P = (-_ - E) / r, F = j * j + M * M,
|
|
1852
|
-
isNaN(
|
|
1853
|
-
for (var
|
|
1854
|
-
for (
|
|
1855
|
-
return
|
|
1852
|
+
var w = (a === o ? -1 : 1) * Zi(C), T = w * (n * _ / r), E = w * -(r * g / n), D = (e + s) / 2, O = (t + c) / 2, k = D + (u * T - d * E), A = O + (d * T + u * E), j = (g - T) / n, M = (_ - E) / r, N = (-g - T) / n, P = (-_ - E) / r, F = j * j + M * M, I = (M < 0 ? -1 : 1) * Math.acos(j / Zi(F)), L = (j * P - M * N < 0 ? -1 : 1) * Math.acos((j * N + M * P) / Zi(F * (N * N + P * P)));
|
|
1853
|
+
isNaN(L) && (L = f), !o && L > 0 ? L -= p : o && L < 0 && (L += p), I %= p, L %= p;
|
|
1854
|
+
for (var ee = Math.ceil(Xi(L) / (p / 4)), R = [], z = L / ee, B = 4 / 3 * Ji(z / 2) / (1 + Yi(z / 2)), V = u * n, te = d * n, H = d * -r, ne = u * r, re = 0; re < ee; re++) i = I + re * z, g = Yi(i), _ = Ji(i), j = Yi(i += z), M = Ji(i), R.push(g - B * _, _ + B * g, j + B * M, M - B * j, j, M);
|
|
1855
|
+
for (re = 0; re < R.length; re += 2) g = R[re], _ = R[re + 1], R[re] = g * V + _ * H + k, R[re + 1] = g * te + _ * ne + A;
|
|
1856
|
+
return R[re - 2] = s, R[re - 1] = c, R;
|
|
1856
1857
|
}
|
|
1857
1858
|
}
|
|
1858
1859
|
function ra(e) {
|
|
@@ -1969,24 +1970,24 @@ var aa, oa, sa = function() {
|
|
|
1969
1970
|
_a.version = "3.13.0", _a.headless = !0, sa() && aa.registerPlugin(_a);
|
|
1970
1971
|
//#endregion
|
|
1971
1972
|
//#region ../../node_modules/gsap/ScrollToPlugin.js
|
|
1972
|
-
var
|
|
1973
|
+
var va, ya, ba, xa, Sa, Ca, wa, Ta, Ea = function() {
|
|
1973
1974
|
return typeof window < "u";
|
|
1974
|
-
},
|
|
1975
|
-
return
|
|
1976
|
-
}, Da = function(e) {
|
|
1977
|
-
return typeof e == "string";
|
|
1975
|
+
}, Da = function() {
|
|
1976
|
+
return va || Ea() && (va = window.gsap) && va.registerPlugin && va;
|
|
1978
1977
|
}, Oa = function(e) {
|
|
1978
|
+
return typeof e == "string";
|
|
1979
|
+
}, ka = function(e) {
|
|
1979
1980
|
return typeof e == "function";
|
|
1980
|
-
}, ka = function(e, t) {
|
|
1981
|
-
var n = t === "x" ? "Width" : "Height", r = "scroll" + n, i = "client" + n;
|
|
1982
|
-
return e === ya || e === ba || e === xa ? Math.max(ba[r], xa[r]) - (ya["inner" + n] || ba[i] || xa[i]) : e[r] - e["offset" + n];
|
|
1983
1981
|
}, Aa = function(e, t) {
|
|
1982
|
+
var n = t === "x" ? "Width" : "Height", r = "scroll" + n, i = "client" + n;
|
|
1983
|
+
return e === ba || e === xa || e === Sa ? Math.max(xa[r], Sa[r]) - (ba["inner" + n] || xa[i] || Sa[i]) : e[r] - e["offset" + n];
|
|
1984
|
+
}, ja = function(e, t) {
|
|
1984
1985
|
var n = "scroll" + (t === "x" ? "Left" : "Top");
|
|
1985
|
-
return e ===
|
|
1986
|
+
return e === ba && (e.pageXOffset == null ? e = xa[n] == null ? Sa : xa : n = "page" + t.toUpperCase() + "Offset"), function() {
|
|
1986
1987
|
return e[n];
|
|
1987
1988
|
};
|
|
1988
|
-
},
|
|
1989
|
-
if (
|
|
1989
|
+
}, Ma = function(e, t, n, r) {
|
|
1990
|
+
if (ka(e) && (e = e(t, n, r)), typeof e != "object") return Oa(e) && e !== "max" && e.charAt(1) !== "=" ? {
|
|
1990
1991
|
x: e,
|
|
1991
1992
|
y: e
|
|
1992
1993
|
} : { y: e };
|
|
@@ -1995,57 +1996,57 @@ var Z, va, ya, ba, xa, Sa, Ca, wa, Ta = function() {
|
|
|
1995
1996
|
x: e
|
|
1996
1997
|
};
|
|
1997
1998
|
var i = {}, a;
|
|
1998
|
-
for (a in e) i[a] = a !== "onAutoKill" &&
|
|
1999
|
+
for (a in e) i[a] = a !== "onAutoKill" && ka(e[a]) ? e[a](t, n, r) : e[a];
|
|
1999
2000
|
return i;
|
|
2000
|
-
},
|
|
2001
|
-
if (e =
|
|
2001
|
+
}, Na = function(e, t) {
|
|
2002
|
+
if (e = Ca(e)[0], !e || !e.getBoundingClientRect) return console.warn("scrollTo target doesn't exist. Using 0") || {
|
|
2002
2003
|
x: 0,
|
|
2003
2004
|
y: 0
|
|
2004
2005
|
};
|
|
2005
|
-
var n = e.getBoundingClientRect(), r = !t || t ===
|
|
2006
|
-
top:
|
|
2007
|
-
left:
|
|
2006
|
+
var n = e.getBoundingClientRect(), r = !t || t === ba || t === Sa, i = r ? {
|
|
2007
|
+
top: xa.clientTop - (ba.pageYOffset || xa.scrollTop || Sa.scrollTop || 0),
|
|
2008
|
+
left: xa.clientLeft - (ba.pageXOffset || xa.scrollLeft || Sa.scrollLeft || 0)
|
|
2008
2009
|
} : t.getBoundingClientRect(), a = {
|
|
2009
2010
|
x: n.left - i.left,
|
|
2010
2011
|
y: n.top - i.top
|
|
2011
2012
|
};
|
|
2012
|
-
return !r && t && (a.x +=
|
|
2013
|
-
},
|
|
2014
|
-
return !isNaN(e) && typeof e != "object" ? parseFloat(e) - i :
|
|
2015
|
-
},
|
|
2016
|
-
|
|
2017
|
-
},
|
|
2013
|
+
return !r && t && (a.x += ja(t, "x")(), a.y += ja(t, "y")()), a;
|
|
2014
|
+
}, Pa = function(e, t, n, r, i) {
|
|
2015
|
+
return !isNaN(e) && typeof e != "object" ? parseFloat(e) - i : Oa(e) && e.charAt(1) === "=" ? parseFloat(e.substr(2)) * (e.charAt(0) === "-" ? -1 : 1) + r - i : e === "max" ? Aa(t, n) - i : Math.min(Aa(t, n), Na(e, t)[n] - i);
|
|
2016
|
+
}, Fa = function() {
|
|
2017
|
+
va = Da(), Ea() && va && typeof document < "u" && document.body && (ba = window, Sa = document.body, xa = document.documentElement, Ca = va.utils.toArray, va.config({ autoKillThreshold: 7 }), wa = va.config(), ya = 1);
|
|
2018
|
+
}, Ia = {
|
|
2018
2019
|
version: "3.13.0",
|
|
2019
2020
|
name: "scrollTo",
|
|
2020
2021
|
rawVars: 1,
|
|
2021
2022
|
register: function(e) {
|
|
2022
|
-
|
|
2023
|
+
va = e, Fa();
|
|
2023
2024
|
},
|
|
2024
2025
|
init: function(e, t, n, r, i) {
|
|
2025
|
-
|
|
2026
|
-
var a = this, o =
|
|
2027
|
-
a.isWin = e ===
|
|
2026
|
+
ya || Fa();
|
|
2027
|
+
var a = this, o = va.getProperty(e, "scrollSnapType");
|
|
2028
|
+
a.isWin = e === ba, a.target = e, a.tween = n, t = Ma(t, r, e, i), a.vars = t, a.autoKill = !!("autoKill" in t ? t : wa).autoKill, a.getX = ja(e, "x"), a.getY = ja(e, "y"), a.x = a.xPrev = a.getX(), a.y = a.yPrev = a.getY(), Ta ||= va.core.globals().ScrollTrigger, va.getProperty(e, "scrollBehavior") === "smooth" && va.set(e, { scrollBehavior: "auto" }), o && o !== "none" && (a.snap = 1, a.snapInline = e.style.scrollSnapType, e.style.scrollSnapType = "none"), t.x == null ? a.skipX = 1 : (a.add(a, "x", a.x, Pa(t.x, e, "x", a.x, t.offsetX || 0), r, i), a._props.push("scrollTo_x")), t.y == null ? a.skipY = 1 : (a.add(a, "y", a.y, Pa(t.y, e, "y", a.y, t.offsetY || 0), r, i), a._props.push("scrollTo_y"));
|
|
2028
2029
|
},
|
|
2029
2030
|
render: function(e, t) {
|
|
2030
2031
|
for (var n = t._pt, r = t.target, i = t.tween, a = t.autoKill, o = t.xPrev, s = t.yPrev, c = t.isWin, l = t.snap, u = t.snapInline, d, f, p, m, h; n;) n.r(e, n.d), n = n._next;
|
|
2031
|
-
d = c || !t.skipX ? t.getX() : o, f = c || !t.skipY ? t.getY() : s, p = f - s, m = d - o, h =
|
|
2032
|
+
d = c || !t.skipX ? t.getX() : o, f = c || !t.skipY ? t.getY() : s, p = f - s, m = d - o, h = wa.autoKillThreshold, t.x < 0 && (t.x = 0), t.y < 0 && (t.y = 0), a && (!t.skipX && (m > h || m < -h) && d < Aa(r, "x") && (t.skipX = 1), !t.skipY && (p > h || p < -h) && f < Aa(r, "y") && (t.skipY = 1), t.skipX && t.skipY && (i.kill(), t.vars.onAutoKill && t.vars.onAutoKill.apply(i, t.vars.onAutoKillParams || []))), c ? ba.scrollTo(t.skipX ? d : t.x, t.skipY ? f : t.y) : (t.skipY || (r.scrollTop = t.y), t.skipX || (r.scrollLeft = t.x)), l && (e === 1 || e === 0) && (f = r.scrollTop, d = r.scrollLeft, u ? r.style.scrollSnapType = u : r.style.removeProperty("scroll-snap-type"), r.scrollTop = f + 1, r.scrollLeft = d + 1, r.scrollTop = f, r.scrollLeft = d), t.xPrev = t.x, t.yPrev = t.y, Ta && Ta.update();
|
|
2032
2033
|
},
|
|
2033
2034
|
kill: function(e) {
|
|
2034
2035
|
var t = e === "scrollTo", n = this._props.indexOf(e);
|
|
2035
2036
|
return (t || e === "scrollTo_x") && (this.skipX = 1), (t || e === "scrollTo_y") && (this.skipY = 1), n > -1 && this._props.splice(n, 1), !this._props.length;
|
|
2036
2037
|
}
|
|
2037
2038
|
};
|
|
2038
|
-
|
|
2039
|
-
for (var t in
|
|
2040
|
-
},
|
|
2039
|
+
Ia.max = Aa, Ia.getOffset = Na, Ia.buildGetter = ja, Ia.config = function(e) {
|
|
2040
|
+
for (var t in wa || Fa() || (wa = va.config()), e) wa[t] = e[t];
|
|
2041
|
+
}, Da() && va.registerPlugin(Ia), Wi.registerPlugin(Ia), Wi.registerPlugin(_a), _a.create("cubic", "0.65, 0, 0.35, 1"), _a.create("expo", "0.87, 0, 0.13, 1"), _a.create("quad", "0.45, 0, 0.55, 1"), _a.create("linear", "0.42, 0, 0.58, 1");
|
|
2041
2042
|
//#endregion
|
|
2042
2043
|
//#region ../../packages/atoms/src/components/tab-group/tab-group.styles.ts
|
|
2043
|
-
var
|
|
2044
|
+
var La = t`: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{column-gap:var(--tab-group-tabs-gap,normal);display:flex;position:relative}.tab-group--button .tab-group__tabs{background-color:var(--cx-color-neutral-100);padding:var(--tab-group-tabs-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::part(base):focus-visible{outline-offset:calc(-1 * var(--cx-focus-ring-width) - var(--cx-focus-ring-offset))}.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-item{max-width:var(--tab-dropdown-menu-max-width,300px);--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;position:relative}.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{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{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%)}`, Q, $ = class extends o {
|
|
2044
2045
|
static #e = Q = this;
|
|
2045
2046
|
constructor(...e) {
|
|
2046
|
-
super(...e), this.localize = new f(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 =
|
|
2047
|
+
super(...e), this.localize = new f(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 = A.Top, this.activation = M.Auto, this.noScrollControls = !1, this.fixedScrollControls = !1, this.useMaxPanelHeight = !1, this.variant = N.Default, this.overflowVariant = P.Scroll, this.hidePanelVariant = F.DisplayNone, this.tabAlignment = j.Start, this.dropdownLabel = "", this.tabsPerPage = 0, this.minTabWidth = 120, this.promoteActiveOverflowTab = !1, this.forceOnChange = !1, this.scrollOffset = 1;
|
|
2047
2048
|
}
|
|
2048
|
-
static #t = this.styles = [u,
|
|
2049
|
+
static #t = this.styles = [u, La];
|
|
2049
2050
|
static #n = this.dependencies = {
|
|
2050
2051
|
"cx-button": v,
|
|
2051
2052
|
"cx-dropdown": x,
|
|
@@ -2053,7 +2054,8 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2053
2054
|
"cx-menu": S,
|
|
2054
2055
|
"cx-menu-item": C,
|
|
2055
2056
|
"cx-resize-observer": b,
|
|
2056
|
-
"cx-tab": T
|
|
2057
|
+
"cx-tab": T,
|
|
2058
|
+
"cx-tab-panel": k
|
|
2057
2059
|
};
|
|
2058
2060
|
static #r = this.MIN_CLAMP_WIDTH = 100;
|
|
2059
2061
|
static #i = this.HIDDEN_TAB_ATTRIBUTE = "data-cx-tab-group__tab--hidden";
|
|
@@ -2061,37 +2063,41 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2061
2063
|
let e = Promise.all([customElements.whenDefined("cx-tab"), customElements.whenDefined("cx-tab-panel")]);
|
|
2062
2064
|
super.connectedCallback(), this.resizeObserver = new ResizeObserver(() => {
|
|
2063
2065
|
if (this.repositionIndicator(), this.updateScrollControls(), this.updatePagination(), this.allowDropdownOverflow) {
|
|
2064
|
-
let e =
|
|
2066
|
+
let e = this.getTabGap();
|
|
2065
2067
|
e !== this.lastTabGap && (this.lastTabGap = e, this.syncTabsAndPanels());
|
|
2066
2068
|
}
|
|
2067
2069
|
}), this.mutationObserver = new MutationObserver((e) => {
|
|
2068
2070
|
e.some((e) => !["aria-labelledby", "aria-controls"].includes(e.attributeName)) && setTimeout(() => this.setAriaLabels()), e.some((e) => e.attributeName === "disabled") && this.syncTabsAndPanels();
|
|
2069
2071
|
}), this.updateComplete.then(() => {
|
|
2070
|
-
this.syncTabsAndPanels(), this.syncScrollPosition(), this.mutationObserver.observe(this, {
|
|
2072
|
+
this.isConnected && (this.promoteInitialActiveTab(), this.syncTabsAndPanels(), this.syncScrollPosition(), this.mutationObserver.observe(this, {
|
|
2071
2073
|
attributes: !0,
|
|
2072
2074
|
childList: !0,
|
|
2073
2075
|
subtree: !0
|
|
2074
|
-
}), this.resizeObserver.observe(this.nav), this.resizeObserver.observe(this.tabButtons), this.hidePanelVariant ===
|
|
2075
|
-
new IntersectionObserver((e, t) => {
|
|
2076
|
-
e[0].intersectionRatio > 0
|
|
2077
|
-
|
|
2078
|
-
|
|
2076
|
+
}), this.resizeObserver.observe(this.nav), this.resizeObserver.observe(this.tabButtons), this.hidePanelVariant === F.Absolute && (this.setupPanelResizeObserver(), this.calculateTabPanelHeight()), e.then(() => {
|
|
2077
|
+
this.isConnected && (this.initialTabObserver ??= new IntersectionObserver((e, t) => {
|
|
2078
|
+
if (e[0].intersectionRatio > 0) {
|
|
2079
|
+
this.setAriaLabels();
|
|
2080
|
+
let e = this.findInitialTab(this.tabs);
|
|
2081
|
+
e && this.setActiveTab(e, { emitEvents: !1 }), t.disconnect();
|
|
2082
|
+
}
|
|
2083
|
+
}), this.initialTabObserver.observe(this.tabGroup));
|
|
2084
|
+
}));
|
|
2079
2085
|
});
|
|
2080
2086
|
}
|
|
2081
2087
|
disconnectedCallback() {
|
|
2082
|
-
super.disconnectedCallback(), this.mutationObserver?.disconnect(), this.overflowObserver?.disconnect(), this.cleanupPanelResizeObserver(), this.resizeObserver?.
|
|
2088
|
+
super.disconnectedCallback(), this.mutationObserver?.disconnect(), this.overflowObserver?.disconnect(), this.initialTabObserver?.disconnect(), this.promotedTabPendingFocus = void 0, this.cleanupPanelResizeObserver(), this.nav && this.resizeObserver?.unobserve(this.nav), this.tabButtons && this.resizeObserver?.unobserve(this.tabButtons);
|
|
2083
2089
|
}
|
|
2084
2090
|
nextTab(e) {
|
|
2085
2091
|
let t = this.getActiveTab();
|
|
2086
2092
|
if (!t) return;
|
|
2087
2093
|
let n = this.getAllTabs().indexOf(t), r = this.findNextFocusableTab(n, "forward");
|
|
2088
|
-
r && this.
|
|
2094
|
+
r && this.activateTab(r, e);
|
|
2089
2095
|
}
|
|
2090
2096
|
previousTab(e) {
|
|
2091
2097
|
let t = this.getActiveTab();
|
|
2092
2098
|
if (!t) return;
|
|
2093
2099
|
let n = this.getAllTabs().indexOf(t), r = this.findNextFocusableTab(n, "backward");
|
|
2094
|
-
r && this.
|
|
2100
|
+
r && this.activateTab(r, e);
|
|
2095
2101
|
}
|
|
2096
2102
|
getAllTabs() {
|
|
2097
2103
|
return this.shadowRoot.querySelector("slot[name=\"nav\"]").assignedElements();
|
|
@@ -2102,11 +2108,20 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2102
2108
|
getActiveTab() {
|
|
2103
2109
|
return this.tabs.find((e) => e.active);
|
|
2104
2110
|
}
|
|
2111
|
+
getTabGap(e = getComputedStyle(this.tabButtons)) {
|
|
2112
|
+
return Number.parseFloat(e.columnGap || "0") || 0;
|
|
2113
|
+
}
|
|
2105
2114
|
get allowDropdownOverflow() {
|
|
2106
|
-
return this.overflowVariant ===
|
|
2115
|
+
return this.overflowVariant === P.Dropdown && !["start", "end"].includes(this.placement);
|
|
2116
|
+
}
|
|
2117
|
+
get activePromotedTab() {
|
|
2118
|
+
if (this.isPromotionEnabled) return this.promotedTab;
|
|
2119
|
+
}
|
|
2120
|
+
get isPromotionEnabled() {
|
|
2121
|
+
return this.promoteActiveOverflowTab && this.allowDropdownOverflow;
|
|
2107
2122
|
}
|
|
2108
2123
|
get bodyHeight() {
|
|
2109
|
-
return this.hidePanelVariant ===
|
|
2124
|
+
return this.hidePanelVariant === F.Absolute && this.tabPanelHeight > 0 ? `${this.tabPanelHeight}px` : "";
|
|
2110
2125
|
}
|
|
2111
2126
|
get caretDirection() {
|
|
2112
2127
|
return this.placement === "bottom" ? "up" : "down";
|
|
@@ -2117,7 +2132,11 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2117
2132
|
let e = t.closest("[data-panel]")?.getAttribute("data-panel");
|
|
2118
2133
|
n = this.tabs.find((t) => t.panel === e) ?? null;
|
|
2119
2134
|
}
|
|
2120
|
-
n?.closest("cx-tab-group") === this && n !== null &&
|
|
2135
|
+
n?.closest("cx-tab-group") === this && n !== null && this.activateTab(n, {
|
|
2136
|
+
isUserSelection: !0,
|
|
2137
|
+
restoreFocus: !0,
|
|
2138
|
+
scrollBehavior: "smooth"
|
|
2139
|
+
});
|
|
2121
2140
|
}
|
|
2122
2141
|
handleKeyDown(e) {
|
|
2123
2142
|
let t = e.target, n = t.closest("cx-tab");
|
|
@@ -2125,56 +2144,40 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2125
2144
|
let e = t.closest("[data-panel]")?.getAttribute("data-panel");
|
|
2126
2145
|
n = this.tabs.find((t) => t.panel === e) ?? null;
|
|
2127
2146
|
}
|
|
2128
|
-
if (n?.closest("cx-tab-group") === this
|
|
2129
|
-
"
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
"
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
let t = this.tabs.find((e) => e.matches(":focus")), n = this.localize.dir() === "rtl", r = null;
|
|
2137
|
-
if (["cx-tab"].includes(String(t?.tagName).toLowerCase())) {
|
|
2138
|
-
switch (e.key) {
|
|
2139
|
-
case "Home":
|
|
2140
|
-
r = this.focusableTabs[0];
|
|
2141
|
-
break;
|
|
2142
|
-
case "End":
|
|
2143
|
-
r = this.focusableTabs[this.focusableTabs.length - 1];
|
|
2144
|
-
break;
|
|
2145
|
-
default: if (["top", "bottom"].includes(this.placement) && e.key === (n ? "ArrowRight" : "ArrowLeft") || ["start", "end"].includes(this.placement) && e.key === "ArrowUp") {
|
|
2146
|
-
let e = this.tabs.findIndex((e) => e === t);
|
|
2147
|
-
r = this.findNextFocusableTab(e, "backward");
|
|
2148
|
-
} else if (["top", "bottom"].includes(this.placement) && e.key === (n ? "ArrowLeft" : "ArrowRight") || ["start", "end"].includes(this.placement) && e.key === "ArrowDown") {
|
|
2149
|
-
let e = this.tabs.findIndex((e) => e === t);
|
|
2150
|
-
r = this.findNextFocusableTab(e, "forward");
|
|
2151
|
-
}
|
|
2152
|
-
}
|
|
2153
|
-
if (!r) return;
|
|
2154
|
-
if (r.tabIndex = 0, r.focus({ preventScroll: !0 }), this.allowDropdownOverflow && this.dropdown !== null && r.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE) && this.dropdown.show(), this.activation === "auto") this.setActiveTab(r, { scrollBehavior: "smooth" }), this.isActiveTabHidden = r.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE);
|
|
2155
|
-
else for (let e of this.tabs) e.tabIndex = e === r ? 0 : -1;
|
|
2156
|
-
!r.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE) && ["top", "bottom"].includes(this.placement) && w(r, this.nav, "horizontal"), e.preventDefault();
|
|
2147
|
+
if (n?.closest("cx-tab-group") === this) {
|
|
2148
|
+
if (["Enter", " "].includes(e.key) && n !== null && (this.activateTab(n, {
|
|
2149
|
+
isUserSelection: !0,
|
|
2150
|
+
restoreFocus: !0,
|
|
2151
|
+
scrollBehavior: "smooth"
|
|
2152
|
+
}), e.preventDefault()), e.key === "Tab" && this.dropdown?.open && this.menu?.contains(t)) {
|
|
2153
|
+
this.dropdown.hide();
|
|
2154
|
+
return;
|
|
2157
2155
|
}
|
|
2158
|
-
if (
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
break;
|
|
2172
|
-
case "ArrowDown": n === t.length - 1 ? (this.dropdown.hide(), this.tabs[0].focus(), r = 0) : (this.menu.setCurrentItem(t[n + 1]), t[n + 1].focus(), r = i + n + 1);
|
|
2173
|
-
}
|
|
2174
|
-
this.activation === "auto" && r >= 0 && (this.setActiveTab(this.tabs[r], { scrollBehavior: "smooth" }), this.isActiveTabHidden = this.tabs[r].hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE));
|
|
2156
|
+
if ([
|
|
2157
|
+
"ArrowLeft",
|
|
2158
|
+
"ArrowRight",
|
|
2159
|
+
"ArrowUp",
|
|
2160
|
+
"ArrowDown",
|
|
2161
|
+
"Home",
|
|
2162
|
+
"End"
|
|
2163
|
+
].includes(e.key)) {
|
|
2164
|
+
let t = this.tabs.find((e) => e.matches(":focus"));
|
|
2165
|
+
if (!t) return;
|
|
2166
|
+
let n = this.getKeyboardTargetTab(t, e.key);
|
|
2167
|
+
if (!n) return;
|
|
2168
|
+
n.focus({ preventScroll: !0 }), this.activation === "auto" && this.activateTab(n, { scrollBehavior: "smooth" }), ["top", "bottom"].includes(this.placement) && w(n, this.nav, "horizontal"), e.preventDefault();
|
|
2175
2169
|
}
|
|
2176
2170
|
}
|
|
2177
2171
|
}
|
|
2172
|
+
getKeyboardTargetTab(e, t) {
|
|
2173
|
+
let n = this.focusableTabs.filter((e) => !e.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE));
|
|
2174
|
+
if (n.length === 0) return;
|
|
2175
|
+
let r = this.localize.dir() === "rtl", i = ["top", "bottom"].includes(this.placement), a = i ? r ? "ArrowRight" : "ArrowLeft" : "ArrowUp", o = i ? r ? "ArrowLeft" : "ArrowRight" : "ArrowDown", s = n.indexOf(e);
|
|
2176
|
+
if (t === "Home") return n[0];
|
|
2177
|
+
if (t === "End") return n.at(-1);
|
|
2178
|
+
if (t === o) return n[(s + 1) % n.length];
|
|
2179
|
+
if (t === a) return n.at(s <= 0 ? -1 : s - 1);
|
|
2180
|
+
}
|
|
2178
2181
|
handleScrollToStart() {
|
|
2179
2182
|
this.nav.scroll({
|
|
2180
2183
|
behavior: "smooth",
|
|
@@ -2187,14 +2190,33 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2187
2190
|
left: this.localize.dir() === "rtl" ? this.nav.scrollLeft - this.nav.clientWidth : this.nav.scrollLeft + this.nav.clientWidth
|
|
2188
2191
|
});
|
|
2189
2192
|
}
|
|
2190
|
-
|
|
2191
|
-
this.
|
|
2192
|
-
let e = this.
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2193
|
+
promoteInitialActiveTab() {
|
|
2194
|
+
if (!this.isPromotionEnabled) return;
|
|
2195
|
+
let e = this.getAllTabs().find((e) => e.active && !e.disabled);
|
|
2196
|
+
e && (this.promotedTab = e);
|
|
2197
|
+
}
|
|
2198
|
+
findInitialTab(e) {
|
|
2199
|
+
return e.find((e) => e.active && !e.disabled) ?? e.find((e) => !e.disabled);
|
|
2200
|
+
}
|
|
2201
|
+
promoteHiddenActiveTab(e) {
|
|
2202
|
+
if (this.isPromotionEnabled && !e.disabled) {
|
|
2203
|
+
if (e === this.promotedTab) {
|
|
2204
|
+
this.promotedTabPendingFocus = void 0;
|
|
2205
|
+
return;
|
|
2206
|
+
}
|
|
2207
|
+
this.promotedTab = e, this.syncTabsAndPanels();
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
restorePromotedTabFocus(e) {
|
|
2211
|
+
this.isPromotionEnabled && !e.disabled && e.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE) && (this.promotedTabPendingFocus = e);
|
|
2212
|
+
}
|
|
2213
|
+
activateTab(e, t) {
|
|
2214
|
+
let { isUserSelection: n = !1, restoreFocus: r = !1, ...i } = t ?? {}, a = e === this.activeTab;
|
|
2215
|
+
r && this.restorePromotedTabFocus(e), this.promoteHiddenActiveTab(e), this.setActiveTab(e, i), this.isActiveTabHidden = e.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE), a && n && this.forceOnChange && !e.disabled && this.emit("cx-tab-show", { detail: { name: e.panel } });
|
|
2216
|
+
}
|
|
2217
|
+
syncTabStop() {
|
|
2218
|
+
let e = (e) => !e.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE), t = this.activeTab && e(this.activeTab) ? this.activeTab : this.focusableTabs.find(e);
|
|
2219
|
+
for (let e of this.tabs) e.tabIndex = e === t ? 0 : -1;
|
|
2198
2220
|
}
|
|
2199
2221
|
setActiveTab(e, t) {
|
|
2200
2222
|
if (t = {
|
|
@@ -2205,8 +2227,9 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2205
2227
|
}, e && e !== this.activeTab && !e.disabled) {
|
|
2206
2228
|
let n = this.activeTab;
|
|
2207
2229
|
this.activeTab = e;
|
|
2208
|
-
for (let e of this.tabs) e.active = e === this.activeTab
|
|
2209
|
-
|
|
2230
|
+
for (let e of this.tabs) e.active = e === this.activeTab;
|
|
2231
|
+
this.syncTabStop();
|
|
2232
|
+
for (let e of this.panels) e.active = e.name === this.activeTab?.panel, this.hidePanelVariant === F.Absolute && (e.inert = e.name !== this.activeTab?.panel);
|
|
2210
2233
|
if (this.syncIndicator(), this.calculateTabPanelHeight(), !this.activeTab?.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE) && ["top", "bottom"].includes(this.placement)) {
|
|
2211
2234
|
if (y(this.nav, this.activeTab, 10) || !t.paginate) w(this.activeTab, this.nav, "horizontal", t.scrollBehavior);
|
|
2212
2235
|
else if (t.paginate) {
|
|
@@ -2220,7 +2243,7 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2220
2243
|
});
|
|
2221
2244
|
}
|
|
2222
2245
|
}
|
|
2223
|
-
t.emitEvents && (n && this.emit("cx-tab-hide", { detail: { name: n.panel } }), this.emit("cx-tab-show", { detail: { name: this.activeTab.panel } })), this.variant ===
|
|
2246
|
+
t.emitEvents && (n && this.emit("cx-tab-hide", { detail: { name: n.panel } }), this.emit("cx-tab-show", { detail: { name: this.activeTab.panel } })), this.variant === N.Timeline && this.handleVariantChange();
|
|
2224
2247
|
}
|
|
2225
2248
|
}
|
|
2226
2249
|
setAriaLabels() {
|
|
@@ -2231,61 +2254,74 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2231
2254
|
}
|
|
2232
2255
|
repositionIndicator() {
|
|
2233
2256
|
let e = this.getActiveTab();
|
|
2234
|
-
if (
|
|
2235
|
-
let t = e.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE) ? this.dropdownTrigger?.clientWidth ?? 0 : e.clientWidth,
|
|
2236
|
-
left: e.left + t.clientWidth,
|
|
2257
|
+
if (!e) return;
|
|
2258
|
+
let t = e.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE), n = t ? this.dropdownTrigger?.clientWidth ?? 0 : e.clientWidth, r = e.clientHeight, i = this.localize.dir() === "rtl", a = this.getAllTabs(), o = a.slice(0, a.indexOf(e)), s = this.getTabGap(), c = o.reduce((e, t) => ({
|
|
2259
|
+
left: e.left + t.clientWidth + (t.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE) ? 0 : s),
|
|
2237
2260
|
top: e.top + t.clientHeight
|
|
2238
2261
|
}), {
|
|
2239
2262
|
left: 0,
|
|
2240
2263
|
top: 0
|
|
2241
|
-
});
|
|
2264
|
+
}), l = t ? this.dropdownOffset : c.left;
|
|
2242
2265
|
switch (this.placement) {
|
|
2243
2266
|
case "top":
|
|
2244
2267
|
case "bottom":
|
|
2245
|
-
this.indicator.style.width = `${
|
|
2268
|
+
this.indicator.style.width = `${n}px`, this.indicator.style.height = "auto", this.indicator.style.translate = i ? `${-1 * l}px` : `${l}px`;
|
|
2246
2269
|
break;
|
|
2247
2270
|
case "start":
|
|
2248
|
-
case "end": this.indicator.style.width = "auto", this.indicator.style.height = `${
|
|
2271
|
+
case "end": this.indicator.style.width = "auto", this.indicator.style.height = `${r}px`, this.indicator.style.translate = `0 ${c.top}px`;
|
|
2249
2272
|
}
|
|
2250
2273
|
}
|
|
2274
|
+
buildPriorityOrder() {
|
|
2275
|
+
let e = this.activePromotedTab, t = this.tabs.slice(0, 2);
|
|
2276
|
+
if (!e || t.includes(e)) return this.tabs;
|
|
2277
|
+
let n = this.tabs.slice(2).filter((t) => t !== e);
|
|
2278
|
+
return [
|
|
2279
|
+
...t,
|
|
2280
|
+
e,
|
|
2281
|
+
...n
|
|
2282
|
+
];
|
|
2283
|
+
}
|
|
2251
2284
|
syncTabsAndPanels() {
|
|
2252
|
-
if (this.tabs = this.getAllTabs(), this.focusableTabs = this.tabs.filter((e) => !e.disabled), this.panels = this.getAllPanels(), this.syncIndicator(), this.updateComplete.then(() => {
|
|
2253
|
-
this.updateScrollControls(), this.updatePagination(), this.variant ===
|
|
2285
|
+
if (this.tabs = this.getAllTabs(), this.promotedTab && (!this.tabs.includes(this.promotedTab) || this.promotedTab.disabled) && (this.promotedTab = void 0), this.focusableTabs = this.tabs.filter((e) => !e.disabled), this.panels = this.getAllPanels(), this.syncIndicator(), this.updateComplete.then(() => {
|
|
2286
|
+
this.updateScrollControls(), this.updatePagination(), this.variant === N.Timeline && this.handleVariantChange(), this.hidePanelVariant === F.Absolute && (this.setupPanelResizeObserver(), this.calculateTabPanelHeight());
|
|
2254
2287
|
}), this.allowDropdownOverflow) {
|
|
2255
2288
|
this.overflowObserver?.disconnect();
|
|
2256
|
-
let e = new IntersectionObserver((
|
|
2289
|
+
let e = new IntersectionObserver(() => {
|
|
2257
2290
|
e.disconnect();
|
|
2258
|
-
let
|
|
2259
|
-
this.lastTabGap =
|
|
2260
|
-
let
|
|
2261
|
-
this.dropdownOffset = 0, this.isActiveTabHidden = !1, this.shouldShowDropdown = !1
|
|
2262
|
-
|
|
2291
|
+
let t = getComputedStyle(this.tabButtons), n = parseFloat(t.paddingLeft || "0") + parseFloat(t.paddingRight || "0"), r = this.getTabGap(t);
|
|
2292
|
+
this.lastTabGap = r;
|
|
2293
|
+
let i = this.container.clientWidth - n, a = this.dropdownTrigger?.clientWidth ?? 0;
|
|
2294
|
+
this.dropdownOffset = 0, this.isActiveTabHidden = !1, this.shouldShowDropdown = !1;
|
|
2295
|
+
let o = !1;
|
|
2296
|
+
this.tabs.forEach((e) => {
|
|
2297
|
+
e.toggleAttribute(Q.HIDDEN_TAB_ATTRIBUTE, !1), e.style.setProperty("--tab-max-width", "unset");
|
|
2263
2298
|
});
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
e > 0
|
|
2267
|
-
let c = a - this.dropdownOffset, l = r.getBoundingClientRect().width, u = e === t.length - 1 ? c : c - o - i;
|
|
2299
|
+
let s = this.buildPriorityOrder(), c = s.length, l = this.activePromotedTab;
|
|
2300
|
+
for (let [e, t] of s.entries()) {
|
|
2301
|
+
let n = t === l, s = e > 0 ? r : 0, u = i - this.dropdownOffset - s, d = t.getBoundingClientRect().width, f = !this.shouldShowDropdown && e === c - 1 ? u : u - a - r;
|
|
2268
2302
|
if (e === 0 || e === 1) {
|
|
2269
2303
|
let t;
|
|
2270
|
-
switch (
|
|
2304
|
+
switch (c) {
|
|
2271
2305
|
case 1:
|
|
2272
|
-
t =
|
|
2306
|
+
t = i;
|
|
2273
2307
|
break;
|
|
2274
2308
|
case 2:
|
|
2275
|
-
t = (
|
|
2309
|
+
t = (i - r) / 2;
|
|
2276
2310
|
break;
|
|
2277
|
-
default: t = (
|
|
2311
|
+
default: t = (i - a - 2 * r) / 2;
|
|
2278
2312
|
}
|
|
2279
|
-
|
|
2313
|
+
f = e === 1 ? t + Math.max(0, t - this.tabs[0].getBoundingClientRect().width) : t;
|
|
2280
2314
|
}
|
|
2281
|
-
let
|
|
2282
|
-
if (e >= 2 && (
|
|
2283
|
-
|
|
2315
|
+
let p = d > f;
|
|
2316
|
+
if (e >= 2 && (p &&= f > Q.MIN_CLAMP_WIDTH), !o && p) {
|
|
2317
|
+
t.style.setProperty("--tab-max-width", `${f}px`), t.toggleAttribute(Q.HIDDEN_TAB_ATTRIBUTE, !1), this.dropdownOffset += s + f;
|
|
2284
2318
|
continue;
|
|
2285
2319
|
}
|
|
2286
|
-
|
|
2320
|
+
o || d > f ? (t.active && (this.isActiveTabHidden = !0), t.toggleAttribute(Q.HIDDEN_TAB_ATTRIBUTE, !0), this.shouldShowDropdown = !0, n || (o = !0)) : (t.toggleAttribute(Q.HIDDEN_TAB_ATTRIBUTE, !1), this.dropdownOffset += s + t.getBoundingClientRect().width);
|
|
2287
2321
|
}
|
|
2288
|
-
this.dropdownOffset = Math.floor(this.dropdownOffset), this.dropdownOffset +
|
|
2322
|
+
this.shouldShowDropdown && this.tabs.some((e) => !e.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE)) && (this.dropdownOffset += r), this.dropdownOffset = Math.floor(this.dropdownOffset), this.dropdownOffset + a > i && (this.dropdownOffset = i - a), this.tabAlignment === j.Start ? this.tabAlignmentIndent = 0 : (this.tabAlignmentIndent = i - this.dropdownOffset - (this.shouldShowDropdown ? a : 0), this.tabAlignment === j.Center && (this.tabAlignmentIndent = Math.floor(this.tabAlignmentIndent / 2))), this.syncTabStop();
|
|
2323
|
+
let u = this.promotedTabPendingFocus;
|
|
2324
|
+
u && (this.promotedTabPendingFocus = void 0, !u.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE) && !u.disabled && this.tabs.includes(u) && u.focus({ preventScroll: !0 }));
|
|
2289
2325
|
}, {
|
|
2290
2326
|
root: this.nav,
|
|
2291
2327
|
threshold: 1
|
|
@@ -2295,6 +2331,7 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2295
2331
|
} else {
|
|
2296
2332
|
this.overflowObserver?.disconnect(), this.overflowObserver = void 0;
|
|
2297
2333
|
for (let e of this.tabs) e.toggleAttribute(Q.HIDDEN_TAB_ATTRIBUTE, !1);
|
|
2334
|
+
this.syncTabStop();
|
|
2298
2335
|
}
|
|
2299
2336
|
}
|
|
2300
2337
|
calculateTabPanelHeight() {
|
|
@@ -2317,19 +2354,20 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2317
2354
|
} else this.tabWidth = 0, this.clampedTabsPerPage = 0;
|
|
2318
2355
|
}
|
|
2319
2356
|
syncScrollPosition() {
|
|
2320
|
-
this.overflowVariant ===
|
|
2357
|
+
this.overflowVariant === P.Dropdown && this.nav && (this.localize.dir() === "rtl" ? this.nav.scrollLeft = this.nav.scrollWidth : this.nav.scrollLeft = 0);
|
|
2321
2358
|
}
|
|
2322
2359
|
findNextFocusableTab(e, t) {
|
|
2323
|
-
let n =
|
|
2360
|
+
let n = t === "forward" ? 1 : -1, r = e + n, i = null;
|
|
2324
2361
|
for (; e < this.tabs.length;) {
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2362
|
+
let e = this.tabs[r] || null;
|
|
2363
|
+
if (e === null) return t === "forward" ? this.allowDropdownOverflow && this.shouldShowDropdown ? null : this.focusableTabs[0] : i ?? this.focusableTabs[this.focusableTabs.length - 1];
|
|
2364
|
+
if (!e.disabled) {
|
|
2365
|
+
if (!e.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE)) return e;
|
|
2366
|
+
i ??= e;
|
|
2328
2367
|
}
|
|
2329
|
-
|
|
2330
|
-
i += r;
|
|
2368
|
+
r += n;
|
|
2331
2369
|
}
|
|
2332
|
-
return
|
|
2370
|
+
return null;
|
|
2333
2371
|
}
|
|
2334
2372
|
handleScrollEnd() {
|
|
2335
2373
|
this.updateScrollButtons();
|
|
@@ -2353,7 +2391,7 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2353
2391
|
await this.updateComplete;
|
|
2354
2392
|
let e = this.clampedTabsPerPage > 0 ? this.clampedTabsPerPage : this.tabsPerPage, t = this.tabs.length - this.activePaginationIndex * e;
|
|
2355
2393
|
this.tabs.forEach((n, r) => {
|
|
2356
|
-
n.single = this.variant ===
|
|
2394
|
+
n.single = this.variant === N.Timeline && e === 1, n.first = r === 0, n.last = r === this.tabs.length - 1;
|
|
2357
2395
|
let i = e > 0 ? r % e : r;
|
|
2358
2396
|
e > 0 && t < e && (i = (r + (e - t)) % e), n.style.setProperty("--i", i.toString()), n.style.setProperty("--n", e.toString()), n.requestUpdate();
|
|
2359
2397
|
});
|
|
@@ -2364,8 +2402,11 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2364
2402
|
handleDropdownLabelChange() {
|
|
2365
2403
|
this.syncTabsAndPanels();
|
|
2366
2404
|
}
|
|
2405
|
+
handlePromoteActiveOverflowTabChange() {
|
|
2406
|
+
this.promotedTab = this.promoteActiveOverflowTab ? this.activeTab : void 0, this.syncTabsAndPanels();
|
|
2407
|
+
}
|
|
2367
2408
|
handleAbsoluteHeightChange() {
|
|
2368
|
-
if (this.hidePanelVariant ===
|
|
2409
|
+
if (this.hidePanelVariant === F.Absolute) this.setupPanelResizeObserver(), this.calculateTabPanelHeight();
|
|
2369
2410
|
else {
|
|
2370
2411
|
this.cleanupPanelResizeObserver(), this.tabPanelHeight = 0;
|
|
2371
2412
|
for (let e of this.panels) e.inert = !1;
|
|
@@ -2378,7 +2419,7 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2378
2419
|
await this.updateComplete, this.updatePagination();
|
|
2379
2420
|
}
|
|
2380
2421
|
setupPanelResizeObserver() {
|
|
2381
|
-
if (this.hidePanelVariant !==
|
|
2422
|
+
if (this.hidePanelVariant !== F.Absolute) {
|
|
2382
2423
|
this.cleanupPanelResizeObserver();
|
|
2383
2424
|
return;
|
|
2384
2425
|
}
|
|
@@ -2392,11 +2433,11 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2392
2433
|
}
|
|
2393
2434
|
show(e) {
|
|
2394
2435
|
let t = this.tabs.find((t) => t.panel === e);
|
|
2395
|
-
t && this.
|
|
2436
|
+
t && this.activateTab(t, { scrollBehavior: "smooth" });
|
|
2396
2437
|
}
|
|
2397
2438
|
handleNavContainerResize() {
|
|
2398
2439
|
let e = this.container.clientWidth, t = this.tabButtons.clientWidth;
|
|
2399
|
-
this.shouldIgnoreAlignment = e < t, this.overflowVariant ===
|
|
2440
|
+
this.shouldIgnoreAlignment = e < t, this.overflowVariant === P.Dropdown && (this.syncTabsAndPanels(), this.syncScrollPosition()), this.overflowVariant === P.Pagination && this.updatePagination();
|
|
2400
2441
|
}
|
|
2401
2442
|
handleIndicatorResize(e) {
|
|
2402
2443
|
e.stopPropagation(), this.syncIndicator(), this.updatePagination();
|
|
@@ -2436,44 +2477,45 @@ var Ia = t`:host{--indicator-color:var(--cx-color-primary);--indicator-width:2px
|
|
|
2436
2477
|
"tab-pagination__dot--active": t === this.activePaginationIndex
|
|
2437
2478
|
})} role="tab" type="button" aria-selected=${t === this.activePaginationIndex ? "true" : "false"} aria-label=${this.localize.term("slideNum", n)} tabindex="0" data-index=${t} @click=${this.handlePaginationDotClick} @keydown=${this.handlePaginationDotKeyDown}></button>`;
|
|
2438
2479
|
}
|
|
2480
|
+
renderDropdown(t, n) {
|
|
2481
|
+
let r = this.tabs.filter((e) => e.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE));
|
|
2482
|
+
return this.placement === A.Bottom && r.reverse(), e`<cx-dropdown class="tab-group__dropdown" style=${D([t, this.dropdownOffset], () => this.getDropdownStyle())} placement=${D([this.placement, t], () => this.getDropdownPlacement())} hoist ?disabled=${!this.shouldShowDropdown}><cx-button slot="trigger" label=${this.dropdownLabel || this.localize.term("more")} variant="custom" caret caret-direction=${this.caretDirection} class=${m({
|
|
2483
|
+
"tab-group__dropdown__trigger": !0,
|
|
2484
|
+
"tab-group__dropdown__trigger--active": n,
|
|
2485
|
+
"tab-group__dropdown__trigger--hidden": !this.shouldShowDropdown
|
|
2486
|
+
})}>${this.dropdownLabel}</cx-button><cx-menu class="tab-group__dropdown__menu">${O(r, (t) => e`<cx-menu-item class=${m({
|
|
2487
|
+
"tab-group__dropdown__menu-item": !0,
|
|
2488
|
+
"tab-group__dropdown__menu-item--active": t.active
|
|
2489
|
+
})} aria-disabled=${t.ariaDisabled} ?active=${t.active} ?disabled=${t.disabled} data-panel=${t.panel}>${t.textContent}</cx-menu-item>`)}</cx-menu></cx-dropdown>`;
|
|
2490
|
+
}
|
|
2439
2491
|
render() {
|
|
2440
|
-
let t = this.localize.dir() === "rtl", n = this.allowDropdownOverflow && this.isActiveTabHidden, r = this.overflowVariant ===
|
|
2492
|
+
let t = this.localize.dir() === "rtl", n = this.allowDropdownOverflow && this.isActiveTabHidden, r = this.overflowVariant === P.Pagination && this.paginationCount > 1 && Number.isFinite(this.paginationCount);
|
|
2441
2493
|
return e`<div part="base" class=${m({
|
|
2442
2494
|
"tab-group": !0,
|
|
2443
2495
|
"tab-group--bottom": this.placement === "bottom",
|
|
2444
2496
|
"tab-group--end": this.placement === "end",
|
|
2445
2497
|
"tab-group--has-hidden-tabs": this.allowDropdownOverflow && this.shouldShowDropdown,
|
|
2446
|
-
"tab-group--has-scroll-controls": this.hasScrollControls && this.overflowVariant !==
|
|
2498
|
+
"tab-group--has-scroll-controls": this.hasScrollControls && this.overflowVariant !== P.Dropdown,
|
|
2447
2499
|
"tab-group--rtl": t,
|
|
2448
2500
|
"tab-group--start": this.placement === "start",
|
|
2449
2501
|
"tab-group--top": this.placement === "top",
|
|
2450
2502
|
[`tab-group--${this.variant}`]: !0
|
|
2451
|
-
})} @click=${this.handleClick} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleNavContainerResize}><div class="tab-group__nav-container" part="nav">${g(this.overflowVariant ===
|
|
2503
|
+
})} @click=${this.handleClick} @keydown=${this.handleKeyDown}><cx-resize-observer @cx-resize=${this.handleNavContainerResize}><div class="tab-group__nav-container" part="nav">${g(this.overflowVariant === P.Scroll && this.hasScrollControls, () => e`<cx-icon-button part="scroll-button scroll-button--start" exportparts="base:scroll-button__base" class=${m({
|
|
2452
2504
|
"tab-group__scroll-button": !0,
|
|
2453
2505
|
"tab-group__scroll-button--start": !0,
|
|
2454
2506
|
"tab-group__scroll-button--start--hidden": this.shouldHideScrollStartButton
|
|
2455
2507
|
})} name=${t ? "chevron_right" : "chevron_left"} tabindex="-1" aria-hidden="true" label=${this.localize.term("scrollToStart")} @click=${this.handleScrollToStart}></cx-icon-button>`)}<div part="tab-group" class="tab-group__nav" style=${_({
|
|
2456
2508
|
"--min-tab-width": `${this.minTabWidth}px`,
|
|
2457
|
-
justifyContent: this.overflowVariant ===
|
|
2509
|
+
justifyContent: this.overflowVariant === P.Dropdown || this.shouldIgnoreAlignment ? "flex-start" : this.tabAlignment,
|
|
2458
2510
|
transform: `translateX(${this.tabAlignmentIndent}px)`
|
|
2459
|
-
})} @scrollend=${this.handleScrollEnd}><div part="tabs" class="tab-group__tabs" role="tablist"><div part="active-tab-indicator" class="tab-group__indicator"></div>${g(this.variant ===
|
|
2460
|
-
"tab-group__dropdown__trigger": !0,
|
|
2461
|
-
"tab-group__dropdown__trigger--active": n,
|
|
2462
|
-
"tab-group__dropdown__trigger--hidden": !this.shouldShowDropdown
|
|
2463
|
-
})}>${this.dropdownLabel}</cx-button><cx-menu class=${m({
|
|
2464
|
-
"tab-group__dropdown__menu": !0,
|
|
2465
|
-
"tab-group__dropdown__menu--reverse": this.placement === "bottom"
|
|
2466
|
-
})} ignored-keys="ArrowUp ArrowDown Home" bubble-keydown>${O(this.tabs.filter((e) => e.hasAttribute(Q.HIDDEN_TAB_ATTRIBUTE)), (t) => e`<cx-menu-item class=${m({
|
|
2467
|
-
"tab-group__dropdown__menu-item": !0,
|
|
2468
|
-
"tab-group__dropdown__menu-item--active": t.active
|
|
2469
|
-
})} aria-active=${t.ariaSelected} aria-disabled=${t.ariaDisabled} ?active=${t.active} ?disabled=${t.disabled} data-panel=${t.panel}>${t.textContent}</cx-menu-item>`)}</cx-menu></cx-dropdown>`)}</cx-resize-observer></div></div>${g(this.overflowVariant === N.Scroll && this.hasScrollControls, () => e`<cx-icon-button part="scroll-button scroll-button--end" exportparts="base:scroll-button__base" class=${m({
|
|
2511
|
+
})} @scrollend=${this.handleScrollEnd}><div part="tabs" class="tab-group__tabs" role="tablist"><div part="active-tab-indicator" class="tab-group__indicator"></div>${g(this.variant === N.Timeline && this.clampedTabsPerPage > 1, () => e`<div class="timeline-line"></div>`)}<cx-resize-observer @cx-resize=${this.handleIndicatorResize}><slot name="nav" @slotchange=${this.syncTabsAndPanels} style=${_(this.tabWidth > 0 ? { "--width": `${this.tabWidth}px` } : {})}></slot></cx-resize-observer></div>${g(this.allowDropdownOverflow, () => this.renderDropdown(t, n))}</div>${g(this.overflowVariant === P.Scroll && this.hasScrollControls, () => e`<cx-icon-button part="scroll-button scroll-button--end" exportparts="base:scroll-button__base" class=${m({
|
|
2470
2512
|
"tab-group__scroll-button": !0,
|
|
2471
2513
|
"tab-group__scroll-button--end": !0,
|
|
2472
2514
|
"tab-group__scroll-button--end--hidden": this.shouldHideScrollEndButton
|
|
2473
2515
|
})} name=${t ? "chevron_left" : "chevron_right"} tabindex="-1" aria-hidden="true" label=${this.localize.term("scrollToEnd")} @click=${this.handleScrollToEnd}></cx-icon-button>`)}</div></cx-resize-observer><slot part="body" class="tab-group__body" style=${_({ height: this.bodyHeight })} @slotchange=${this.syncTabsAndPanels}></slot>${g(r, () => e`<div class="tab-pagination">${O(Array.from({ length: this.paginationCount }, (e, t) => t), (e) => this.renderPaginationDot(e))}</div>`)}</div>`;
|
|
2474
2516
|
}
|
|
2475
2517
|
};
|
|
2476
|
-
i([c(".tab-group"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], $.prototype, "tabGroup", void 0), i([c(".tab-group__body"), a("design:type", typeof HTMLSlotElement > "u" ? Object : HTMLSlotElement)], $.prototype, "body", void 0), i([c(".tab-group__nav-container"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], $.prototype, "container", void 0), i([c(".tab-group__nav"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], $.prototype, "nav", void 0), i([c(".tab-group__indicator"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], $.prototype, "indicator", void 0), i([c(".tab-group__dropdown"), a("design:type", x === void 0 ? Object : x)], $.prototype, "dropdown", void 0), i([c(".tab-group__dropdown__menu"), a("design:type", S === void 0 ? Object : S)], $.prototype, "menu", void 0), i([c(".tab-group__tabs"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], $.prototype, "tabButtons", void 0), i([c(".tab-group__dropdown__trigger"), a("design:type", v === void 0 ? Object : v)], $.prototype, "dropdownTrigger", void 0), i([l(".tab-pagination__dot"), a("design:type", typeof NodeListOf > "u" ? Object : NodeListOf)], $.prototype, "allDots", void 0), i([r(), a("design:type", T === void 0 ? Object : T)], $.prototype, "activeTab", void 0), i([r(), a("design:type", Object)], $.prototype, "hasScrollControls", void 0), i([r(), a("design:type", Object)], $.prototype, "shouldHideScrollStartButton", void 0), i([r(), a("design:type", Object)], $.prototype, "shouldHideScrollEndButton", void 0), i([r(), a("design:type", Number)], $.prototype, "dropdownOffset", void 0), i([r(), a("design:type", Number)], $.prototype, "tabPanelHeight", void 0), i([r(), a("design:type", Number)], $.prototype, "tabAlignmentIndent", void 0), i([r(), a("design:type", Object)], $.prototype, "shouldIgnoreAlignment", void 0), i([r(), a("design:type", Object)], $.prototype, "shouldShowDropdown", void 0), i([r(), a("design:type", Object)], $.prototype, "isActiveTabHidden", void 0), i([r(), a("design:type", Number)], $.prototype, "paginationCount", void 0), i([r(), a("design:type", Number)], $.prototype, "activePaginationIndex", void 0), i([r(), a("design:type", Number)], $.prototype, "tabWidth", void 0), i([r(), a("design:type", Object)], $.prototype, "clampedTabsPerPage", void 0), i([n(), a("design:type",
|
|
2518
|
+
i([c(".tab-group"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], $.prototype, "tabGroup", void 0), i([c(".tab-group__body"), a("design:type", typeof HTMLSlotElement > "u" ? Object : HTMLSlotElement)], $.prototype, "body", void 0), i([c(".tab-group__nav-container"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], $.prototype, "container", void 0), i([c(".tab-group__nav"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], $.prototype, "nav", void 0), i([c(".tab-group__indicator"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], $.prototype, "indicator", void 0), i([c(".tab-group__dropdown"), a("design:type", x === void 0 ? Object : x)], $.prototype, "dropdown", void 0), i([c(".tab-group__dropdown__menu"), a("design:type", S === void 0 ? Object : S)], $.prototype, "menu", void 0), i([c(".tab-group__tabs"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], $.prototype, "tabButtons", void 0), i([c(".tab-group__dropdown__trigger"), a("design:type", v === void 0 ? Object : v)], $.prototype, "dropdownTrigger", void 0), i([l(".tab-pagination__dot"), a("design:type", typeof NodeListOf > "u" ? Object : NodeListOf)], $.prototype, "allDots", void 0), i([r(), a("design:type", T === void 0 ? Object : T)], $.prototype, "activeTab", void 0), i([r(), a("design:type", Object)], $.prototype, "hasScrollControls", void 0), i([r(), a("design:type", Object)], $.prototype, "shouldHideScrollStartButton", void 0), i([r(), a("design:type", Object)], $.prototype, "shouldHideScrollEndButton", void 0), i([r(), a("design:type", Number)], $.prototype, "dropdownOffset", void 0), i([r(), a("design:type", Number)], $.prototype, "tabPanelHeight", void 0), i([r(), a("design:type", Number)], $.prototype, "tabAlignmentIndent", void 0), i([r(), a("design:type", Object)], $.prototype, "shouldIgnoreAlignment", void 0), i([r(), a("design:type", Object)], $.prototype, "shouldShowDropdown", void 0), i([r(), a("design:type", Object)], $.prototype, "isActiveTabHidden", void 0), i([r(), a("design:type", Number)], $.prototype, "paginationCount", void 0), i([r(), a("design:type", Number)], $.prototype, "activePaginationIndex", void 0), i([r(), a("design:type", Number)], $.prototype, "tabWidth", void 0), i([r(), a("design:type", Object)], $.prototype, "clampedTabsPerPage", void 0), i([n(), a("design:type", A === void 0 ? Object : A)], $.prototype, "placement", void 0), i([n(), a("design:type", M === void 0 ? Object : M)], $.prototype, "activation", void 0), i([n({
|
|
2477
2519
|
attribute: "no-scroll-controls",
|
|
2478
2520
|
type: Boolean
|
|
2479
2521
|
}), a("design:type", Object)], $.prototype, "noScrollControls", void 0), i([n({
|
|
@@ -2485,19 +2527,19 @@ i([c(".tab-group"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLEle
|
|
|
2485
2527
|
}), a("design:type", Object)], $.prototype, "useMaxPanelHeight", void 0), i([n({
|
|
2486
2528
|
reflect: !0,
|
|
2487
2529
|
type: String
|
|
2488
|
-
}), a("design:type",
|
|
2530
|
+
}), a("design:type", N === void 0 ? Object : N)], $.prototype, "variant", void 0), i([n({
|
|
2489
2531
|
attribute: "overflow-variant",
|
|
2490
2532
|
reflect: !0,
|
|
2491
2533
|
type: String
|
|
2492
|
-
}), a("design:type",
|
|
2534
|
+
}), a("design:type", P === void 0 ? Object : P)], $.prototype, "overflowVariant", void 0), i([n({
|
|
2493
2535
|
attribute: "hide-panel-variant",
|
|
2494
2536
|
reflect: !0,
|
|
2495
2537
|
type: String
|
|
2496
|
-
}), a("design:type",
|
|
2538
|
+
}), a("design:type", F === void 0 ? Object : F)], $.prototype, "hidePanelVariant", void 0), i([n({
|
|
2497
2539
|
attribute: "tab-alignment",
|
|
2498
2540
|
reflect: !0,
|
|
2499
2541
|
type: String
|
|
2500
|
-
}), a("design:type",
|
|
2542
|
+
}), a("design:type", j === void 0 ? Object : j)], $.prototype, "tabAlignment", void 0), i([n({
|
|
2501
2543
|
attribute: "dropdown-label",
|
|
2502
2544
|
type: String
|
|
2503
2545
|
}), a("design:type", String)], $.prototype, "dropdownLabel", void 0), i([n({
|
|
@@ -2506,7 +2548,13 @@ i([c(".tab-group"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLEle
|
|
|
2506
2548
|
}), a("design:type", Object)], $.prototype, "tabsPerPage", void 0), i([n({
|
|
2507
2549
|
attribute: "min-tab-width",
|
|
2508
2550
|
type: Number
|
|
2509
|
-
}), a("design:type", Object)], $.prototype, "minTabWidth", void 0), i([
|
|
2551
|
+
}), a("design:type", Object)], $.prototype, "minTabWidth", void 0), i([n({
|
|
2552
|
+
attribute: "promote-active-overflow-tab",
|
|
2553
|
+
type: Boolean
|
|
2554
|
+
}), a("design:type", Object)], $.prototype, "promoteActiveOverflowTab", void 0), i([n({
|
|
2555
|
+
attribute: "force-on-change",
|
|
2556
|
+
type: Boolean
|
|
2557
|
+
}), a("design:type", Object)], $.prototype, "forceOnChange", void 0), i([
|
|
2510
2558
|
s({ passive: !0 }),
|
|
2511
2559
|
a("design:type", Function),
|
|
2512
2560
|
a("design:paramtypes", []),
|
|
@@ -2539,6 +2587,11 @@ i([c(".tab-group"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLEle
|
|
|
2539
2587
|
a("design:paramtypes", []),
|
|
2540
2588
|
a("design:returntype", void 0)
|
|
2541
2589
|
], $.prototype, "handleDropdownLabelChange", null), i([
|
|
2590
|
+
p("promoteActiveOverflowTab", { waitUntilFirstUpdate: !0 }),
|
|
2591
|
+
a("design:type", Function),
|
|
2592
|
+
a("design:paramtypes", []),
|
|
2593
|
+
a("design:returntype", void 0)
|
|
2594
|
+
], $.prototype, "handlePromoteActiveOverflowTabChange", null), i([
|
|
2542
2595
|
p("hidePanelVariant", { waitUntilFirstUpdate: !0 }),
|
|
2543
2596
|
p("useMaxPanelHeight", { waitUntilFirstUpdate: !0 }),
|
|
2544
2597
|
a("design:type", Function),
|
|
@@ -2557,6 +2610,6 @@ i([c(".tab-group"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLEle
|
|
|
2557
2610
|
a("design:paramtypes", []),
|
|
2558
2611
|
a("design:returntype", Promise)
|
|
2559
2612
|
], $.prototype, "handleTabsPerPageChange", null), $ = Q = i([d("cx-tab-group")], $);
|
|
2560
|
-
var
|
|
2613
|
+
var Ra = $;
|
|
2561
2614
|
//#endregion
|
|
2562
|
-
export {
|
|
2615
|
+
export { P as a, F as i, Wi as n, j as r, Ra as t };
|