@truelab/truengine 0.1.0 → 0.1.2-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gsap-chunk.js +1601 -994
- package/dist/libs/gsap.js +22 -20
- package/dist/libs/pixi.js +1 -1
- package/dist/pixi-chunk.js +54 -54
- package/dist/truengine.js +5335 -3895
- package/dist/types/src/classes/bitmap.text.class.d.ts +2 -2
- package/dist/types/src/classes/bitmap.text.class.d.ts.map +1 -1
- package/dist/types/src/classes/container.class.d.ts +1 -1
- package/dist/types/src/classes/container.class.d.ts.map +1 -1
- package/dist/types/src/classes/logger.d.ts +10 -0
- package/dist/types/src/classes/logger.d.ts.map +1 -0
- package/dist/types/src/components/retrigger.component.d.ts +7 -7
- package/dist/types/src/components/retrigger.component.d.ts.map +1 -1
- package/dist/types/src/components/slot/frames/frames.component.d.ts +1 -1
- package/dist/types/src/functions/engine.funcs.d.ts +2 -15
- package/dist/types/src/functions/engine.funcs.d.ts.map +1 -1
- package/dist/types/src/functions/object/deepMerge.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +52 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/libs/gsap.d.ts +2 -0
- package/dist/types/src/libs/gsap.d.ts.map +1 -1
- package/dist/types/src/services/langs.service.d.ts.map +1 -1
- package/dist/types/src/singletones/logger.d.ts +3 -0
- package/dist/types/src/singletones/logger.d.ts.map +1 -0
- package/package.json +7 -5
- package/dist/types/src/plugins/dragon.bones/functions.d.ts +0 -19
- package/dist/types/src/plugins/dragon.bones/functions.d.ts.map +0 -1
- package/dist/types/src/plugins/dragon.bones/library.d.ts +0 -876
- package/dist/types/src/plugins/dragon.bones/library.d.ts.map +0 -1
package/dist/gsap-chunk.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function
|
|
2
|
-
if (
|
|
1
|
+
function Mt(a) {
|
|
2
|
+
if (a === void 0)
|
|
3
3
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
-
return
|
|
4
|
+
return a;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
|
|
6
|
+
function Er(a, t) {
|
|
7
|
+
a.prototype = Object.create(t.prototype), a.prototype.constructor = a, a.__proto__ = t;
|
|
8
8
|
}
|
|
9
9
|
/*!
|
|
10
10
|
* GSAP 3.13.0
|
|
@@ -14,195 +14,195 @@ function Li(u, t) {
|
|
|
14
14
|
* Subject to the terms at https://gsap.com/standard-license
|
|
15
15
|
* @author: Jack Doyle, jack@greensock.com
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
17
|
+
var ut = {
|
|
18
18
|
autoSleep: 120,
|
|
19
19
|
force3D: "auto",
|
|
20
20
|
nullTargetWarn: 1,
|
|
21
21
|
units: {
|
|
22
22
|
lineHeight: ""
|
|
23
23
|
}
|
|
24
|
-
},
|
|
24
|
+
}, he = {
|
|
25
25
|
duration: 0.5,
|
|
26
26
|
overwrite: !1,
|
|
27
27
|
delay: 0
|
|
28
|
-
},
|
|
28
|
+
}, Ii, G, z, Pt = 1e8, Q = 1 / Pt, mi = Math.PI * 2, Hn = mi / 4, Kn = 0, Lr = Math.sqrt, Jn = Math.cos, ts = Math.sin, $ = function(t) {
|
|
29
29
|
return typeof t == "string";
|
|
30
|
-
},
|
|
30
|
+
}, V = function(t) {
|
|
31
31
|
return typeof t == "function";
|
|
32
|
-
},
|
|
32
|
+
}, At = function(t) {
|
|
33
33
|
return typeof t == "number";
|
|
34
|
-
},
|
|
34
|
+
}, Bi = function(t) {
|
|
35
35
|
return typeof t > "u";
|
|
36
|
-
},
|
|
36
|
+
}, St = function(t) {
|
|
37
37
|
return typeof t == "object";
|
|
38
|
-
},
|
|
38
|
+
}, tt = function(t) {
|
|
39
39
|
return t !== !1;
|
|
40
|
-
},
|
|
40
|
+
}, Vi = function() {
|
|
41
41
|
return typeof window < "u";
|
|
42
|
-
},
|
|
43
|
-
return
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
return (
|
|
47
|
-
},
|
|
42
|
+
}, Fe = function(t) {
|
|
43
|
+
return V(t) || $(t);
|
|
44
|
+
}, zr = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
|
|
45
|
+
}, Z = Array.isArray, yi = /(?:-?\.?\d|\.)+/gi, Nr = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, ie = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, oi = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, Fr = /[+-]=-?[.\d]+/, Ir = /[^,'"\[\]\s]+/gi, es = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, I, Tt, xi, Yi, ht = {}, Ge = {}, Br, Vr = function(t) {
|
|
46
|
+
return (Ge = le(t, ht)) && nt;
|
|
47
|
+
}, Xi = function(t, e) {
|
|
48
48
|
return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()");
|
|
49
|
-
},
|
|
49
|
+
}, Se = function(t, e) {
|
|
50
50
|
return !e && console.warn(t);
|
|
51
|
-
},
|
|
52
|
-
return t && (
|
|
53
|
-
},
|
|
51
|
+
}, Yr = function(t, e) {
|
|
52
|
+
return t && (ht[t] = e) && Ge && (Ge[t] = e) || ht;
|
|
53
|
+
}, Me = function() {
|
|
54
54
|
return 0;
|
|
55
|
-
},
|
|
55
|
+
}, is = {
|
|
56
56
|
suppressEvents: !0,
|
|
57
57
|
isStart: !0,
|
|
58
58
|
kill: !1
|
|
59
|
-
},
|
|
59
|
+
}, Ye = {
|
|
60
60
|
suppressEvents: !0,
|
|
61
61
|
kill: !1
|
|
62
|
-
},
|
|
62
|
+
}, rs = {
|
|
63
63
|
suppressEvents: !0
|
|
64
|
-
},
|
|
64
|
+
}, Ui = {}, Nt = [], vi = {}, Xr, ot = {}, ai = {}, or = 30, Xe = [], $i = "", qi = function(t) {
|
|
65
65
|
var e = t[0], i, r;
|
|
66
|
-
if (
|
|
67
|
-
for (r =
|
|
66
|
+
if (St(e) || V(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
|
|
67
|
+
for (r = Xe.length; r-- && !Xe[r].targetTest(e); )
|
|
68
68
|
;
|
|
69
|
-
i =
|
|
69
|
+
i = Xe[r];
|
|
70
70
|
}
|
|
71
71
|
for (r = t.length; r--; )
|
|
72
|
-
t[r] && (t[r]._gsap || (t[r]._gsap = new
|
|
72
|
+
t[r] && (t[r]._gsap || (t[r]._gsap = new cn(t[r], i))) || t.splice(r, 1);
|
|
73
73
|
return t;
|
|
74
|
-
},
|
|
75
|
-
return t._gsap ||
|
|
76
|
-
},
|
|
77
|
-
return (i = t[e]) &&
|
|
78
|
-
},
|
|
74
|
+
}, Gt = function(t) {
|
|
75
|
+
return t._gsap || qi(gt(t))[0]._gsap;
|
|
76
|
+
}, Ur = function(t, e, i) {
|
|
77
|
+
return (i = t[e]) && V(i) ? t[e]() : Bi(i) && t.getAttribute && t.getAttribute(e) || i;
|
|
78
|
+
}, et = function(t, e) {
|
|
79
79
|
return (t = t.split(",")).forEach(e) || t;
|
|
80
|
-
},
|
|
80
|
+
}, Y = function(t) {
|
|
81
81
|
return Math.round(t * 1e5) / 1e5 || 0;
|
|
82
|
-
},
|
|
82
|
+
}, U = function(t) {
|
|
83
83
|
return Math.round(t * 1e7) / 1e7 || 0;
|
|
84
|
-
},
|
|
84
|
+
}, oe = function(t, e) {
|
|
85
85
|
var i = e.charAt(0), r = parseFloat(e.substr(2));
|
|
86
86
|
return t = parseFloat(t), i === "+" ? t + r : i === "-" ? t - r : i === "*" ? t * r : t / r;
|
|
87
|
-
},
|
|
87
|
+
}, ns = function(t, e) {
|
|
88
88
|
for (var i = e.length, r = 0; t.indexOf(e[r]) < 0 && ++r < i; )
|
|
89
89
|
;
|
|
90
90
|
return r < i;
|
|
91
|
-
},
|
|
92
|
-
var t =
|
|
93
|
-
for (
|
|
91
|
+
}, We = function() {
|
|
92
|
+
var t = Nt.length, e = Nt.slice(0), i, r;
|
|
93
|
+
for (vi = {}, Nt.length = 0, i = 0; i < t; i++)
|
|
94
94
|
r = e[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
|
|
95
|
-
},
|
|
95
|
+
}, Gi = function(t) {
|
|
96
96
|
return !!(t._initted || t._startAt || t.add);
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
},
|
|
97
|
+
}, $r = function(t, e, i, r) {
|
|
98
|
+
Nt.length && !G && We(), t.render(e, i, !!(G && e < 0 && Gi(t))), Nt.length && !G && We();
|
|
99
|
+
}, qr = function(t) {
|
|
100
100
|
var e = parseFloat(t);
|
|
101
|
-
return (e || e === 0) && (t + "").match(
|
|
102
|
-
},
|
|
101
|
+
return (e || e === 0) && (t + "").match(Ir).length < 2 ? e : $(t) ? t.trim() : t;
|
|
102
|
+
}, Gr = function(t) {
|
|
103
103
|
return t;
|
|
104
|
-
},
|
|
104
|
+
}, lt = function(t, e) {
|
|
105
105
|
for (var i in e)
|
|
106
106
|
i in t || (t[i] = e[i]);
|
|
107
107
|
return t;
|
|
108
|
-
},
|
|
108
|
+
}, ss = function(t) {
|
|
109
109
|
return function(e, i) {
|
|
110
110
|
for (var r in i)
|
|
111
111
|
r in e || r === "duration" && t || r === "ease" || (e[r] = i[r]);
|
|
112
112
|
};
|
|
113
|
-
},
|
|
113
|
+
}, le = function(t, e) {
|
|
114
114
|
for (var i in e)
|
|
115
115
|
t[i] = e[i];
|
|
116
116
|
return t;
|
|
117
|
-
},
|
|
117
|
+
}, ar = function a(t, e) {
|
|
118
118
|
for (var i in e)
|
|
119
|
-
i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] =
|
|
119
|
+
i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] = St(e[i]) ? a(t[i] || (t[i] = {}), e[i]) : e[i]);
|
|
120
120
|
return t;
|
|
121
|
-
},
|
|
121
|
+
}, je = function(t, e) {
|
|
122
122
|
var i = {}, r;
|
|
123
123
|
for (r in t)
|
|
124
124
|
r in e || (i[r] = t[r]);
|
|
125
125
|
return i;
|
|
126
|
-
},
|
|
127
|
-
var e = t.parent ||
|
|
128
|
-
if (
|
|
126
|
+
}, Te = function(t) {
|
|
127
|
+
var e = t.parent || I, i = t.keyframes ? ss(Z(t.keyframes)) : lt;
|
|
128
|
+
if (tt(t.inherit))
|
|
129
129
|
for (; e; )
|
|
130
130
|
i(t, e.vars.defaults), e = e.parent || e._dp;
|
|
131
131
|
return t;
|
|
132
|
-
},
|
|
132
|
+
}, os = function(t, e) {
|
|
133
133
|
for (var i = t.length, r = i === e.length; r && i-- && t[i] === e[i]; )
|
|
134
134
|
;
|
|
135
135
|
return i < 0;
|
|
136
|
-
},
|
|
137
|
-
var s = t[r],
|
|
136
|
+
}, Wr = function(t, e, i, r, n) {
|
|
137
|
+
var s = t[r], o;
|
|
138
138
|
if (n)
|
|
139
|
-
for (
|
|
139
|
+
for (o = e[n]; s && s[n] > o; )
|
|
140
140
|
s = s._prev;
|
|
141
141
|
return s ? (e._next = s._next, s._next = e) : (e._next = t[i], t[i] = e), e._next ? e._next._prev = e : t[r] = e, e._prev = s, e.parent = e._dp = t, e;
|
|
142
|
-
},
|
|
142
|
+
}, ii = function(t, e, i, r) {
|
|
143
143
|
i === void 0 && (i = "_first"), r === void 0 && (r = "_last");
|
|
144
144
|
var n = e._prev, s = e._next;
|
|
145
145
|
n ? n._next = s : t[i] === e && (t[i] = s), s ? s._prev = n : t[r] === e && (t[r] = n), e._next = e._prev = e.parent = null;
|
|
146
|
-
},
|
|
146
|
+
}, It = function(t, e) {
|
|
147
147
|
t.parent && (!e || t.parent.autoRemoveChildren) && t.parent.remove && t.parent.remove(t), t._act = 0;
|
|
148
|
-
},
|
|
148
|
+
}, Wt = function(t, e) {
|
|
149
149
|
if (t && (!e || e._end > t._dur || e._start < 0))
|
|
150
150
|
for (var i = t; i; )
|
|
151
151
|
i._dirty = 1, i = i.parent;
|
|
152
152
|
return t;
|
|
153
|
-
},
|
|
153
|
+
}, as = function(t) {
|
|
154
154
|
for (var e = t.parent; e && e.parent; )
|
|
155
155
|
e._dirty = 1, e.totalDuration(), e = e.parent;
|
|
156
156
|
return t;
|
|
157
|
-
},
|
|
158
|
-
return t._startAt && (
|
|
159
|
-
},
|
|
160
|
-
return !t || t._ts &&
|
|
161
|
-
},
|
|
162
|
-
return t._repeat ?
|
|
163
|
-
},
|
|
164
|
-
var i = Math.floor(t =
|
|
157
|
+
}, Ti = function(t, e, i, r) {
|
|
158
|
+
return t._startAt && (G ? t._startAt.revert(Ye) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, r));
|
|
159
|
+
}, fs = function a(t) {
|
|
160
|
+
return !t || t._ts && a(t.parent);
|
|
161
|
+
}, fr = function(t) {
|
|
162
|
+
return t._repeat ? _e(t._tTime, t = t.duration() + t._rDelay) * t : 0;
|
|
163
|
+
}, _e = function(t, e) {
|
|
164
|
+
var i = Math.floor(t = U(t / e));
|
|
165
165
|
return t && i === t ? i - 1 : i;
|
|
166
|
-
},
|
|
166
|
+
}, Qe = function(t, e) {
|
|
167
167
|
return (t - e._start) * e._ts + (e._ts >= 0 ? 0 : e._dirty ? e.totalDuration() : e._tDur);
|
|
168
|
-
},
|
|
169
|
-
return t._end =
|
|
170
|
-
},
|
|
168
|
+
}, ri = function(t) {
|
|
169
|
+
return t._end = U(t._start + (t._tDur / Math.abs(t._ts || t._rts || Q) || 0));
|
|
170
|
+
}, ni = function(t, e) {
|
|
171
171
|
var i = t._dp;
|
|
172
|
-
return i && i.smoothChildTiming && t._ts && (t._start =
|
|
173
|
-
},
|
|
172
|
+
return i && i.smoothChildTiming && t._ts && (t._start = U(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), ri(t), i._dirty || Wt(i, t)), t;
|
|
173
|
+
}, jr = function(t, e) {
|
|
174
174
|
var i;
|
|
175
|
-
if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i =
|
|
175
|
+
if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = Qe(t.rawTime(), e), (!e._dur || ze(0, e.totalDuration(), i) - e._tTime > Q) && e.render(i, !0)), Wt(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
|
|
176
176
|
if (t._dur < t.duration())
|
|
177
177
|
for (i = t; i._dp; )
|
|
178
178
|
i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
|
|
179
179
|
t._zTime = -1e-8;
|
|
180
180
|
}
|
|
181
|
-
},
|
|
182
|
-
return e.parent &&
|
|
183
|
-
},
|
|
184
|
-
return (
|
|
185
|
-
},
|
|
186
|
-
if (
|
|
181
|
+
}, bt = function(t, e, i, r) {
|
|
182
|
+
return e.parent && It(e), e._start = U((At(i) ? i : i || t !== I ? dt(t, i, e) : t._time) + e._delay), e._end = U(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), Wr(t, e, "_first", "_last", t._sort ? "_start" : 0), bi(e) || (t._recent = e), r || jr(t, e), t._ts < 0 && ni(t, t._tTime), t;
|
|
183
|
+
}, Qr = function(t, e) {
|
|
184
|
+
return (ht.ScrollTrigger || Xi("scrollTrigger", e)) && ht.ScrollTrigger.create(e, t);
|
|
185
|
+
}, Zr = function(t, e, i, r, n) {
|
|
186
|
+
if (ji(t, e, n), !t._initted)
|
|
187
187
|
return 1;
|
|
188
|
-
if (!i && t._pt && !
|
|
189
|
-
return
|
|
190
|
-
},
|
|
188
|
+
if (!i && t._pt && !G && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && Xr !== at.frame)
|
|
189
|
+
return Nt.push(t), t._lazy = [n, r], 1;
|
|
190
|
+
}, us = function a(t) {
|
|
191
191
|
var e = t.parent;
|
|
192
|
-
return e && e._ts && e._initted && !e._lock && (e.rawTime() < 0 ||
|
|
193
|
-
},
|
|
192
|
+
return e && e._ts && e._initted && !e._lock && (e.rawTime() < 0 || a(e));
|
|
193
|
+
}, bi = function(t) {
|
|
194
194
|
var e = t.data;
|
|
195
195
|
return e === "isFromStart" || e === "isStart";
|
|
196
|
-
},
|
|
197
|
-
var n = t.ratio, s = e < 0 || !e && (!t._start &&
|
|
198
|
-
if (
|
|
199
|
-
if (!t._initted &&
|
|
196
|
+
}, hs = function(t, e, i, r) {
|
|
197
|
+
var n = t.ratio, s = e < 0 || !e && (!t._start && us(t) && !(!t._initted && bi(t)) || (t._ts < 0 || t._dp._ts < 0) && !bi(t)) ? 0 : 1, o = t._rDelay, u = 0, f, h, l;
|
|
198
|
+
if (o && t._repeat && (u = ze(0, t._tDur, e), h = _e(u, o), t._yoyo && h & 1 && (s = 1 - s), h !== _e(t._tTime, o) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || G || r || t._zTime === Q || !e && t._zTime) {
|
|
199
|
+
if (!t._initted && Zr(t, e, r, i, u))
|
|
200
200
|
return;
|
|
201
|
-
for (l = t._zTime, t._zTime = e || (i ? Q : 0), i || (i = e && !l), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime =
|
|
201
|
+
for (l = t._zTime, t._zTime = e || (i ? Q : 0), i || (i = e && !l), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = u, f = t._pt; f; )
|
|
202
202
|
f.r(s, f.d), f = f._next;
|
|
203
|
-
e < 0 &&
|
|
203
|
+
e < 0 && Ti(t, e, i, !0), t._onUpdate && !i && ft(t, "onUpdate"), u && t._repeat && !i && t.parent && ft(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && It(t, 1), !i && !G && (ft(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
|
|
204
204
|
} else t._zTime || (t._zTime = e);
|
|
205
|
-
},
|
|
205
|
+
}, ls = function(t, e, i) {
|
|
206
206
|
var r;
|
|
207
207
|
if (i > e)
|
|
208
208
|
for (r = t._first; r && r._start <= i; ) {
|
|
@@ -216,98 +216,98 @@ var rt = {
|
|
|
216
216
|
return r;
|
|
217
217
|
r = r._prev;
|
|
218
218
|
}
|
|
219
|
-
},
|
|
220
|
-
var n = t._repeat, s =
|
|
221
|
-
return
|
|
222
|
-
},
|
|
223
|
-
return t instanceof q ?
|
|
224
|
-
},
|
|
219
|
+
}, ce = function(t, e, i, r) {
|
|
220
|
+
var n = t._repeat, s = U(e) || 0, o = t._tTime / t._tDur;
|
|
221
|
+
return o && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : U(s * (n + 1) + t._rDelay * n) : s, o > 0 && !r && ni(t, t._tTime = t._tDur * o), t.parent && ri(t), i || Wt(t.parent, t), t;
|
|
222
|
+
}, ur = function(t) {
|
|
223
|
+
return t instanceof q ? Wt(t) : ce(t, t._dur);
|
|
224
|
+
}, _s = {
|
|
225
225
|
_start: 0,
|
|
226
|
-
endTime:
|
|
227
|
-
totalDuration:
|
|
228
|
-
},
|
|
229
|
-
var r = t.labels, n = t._recent ||
|
|
230
|
-
return
|
|
231
|
-
},
|
|
232
|
-
var r =
|
|
226
|
+
endTime: Me,
|
|
227
|
+
totalDuration: Me
|
|
228
|
+
}, dt = function a(t, e, i) {
|
|
229
|
+
var r = t.labels, n = t._recent || _s, s = t.duration() >= Pt ? n.endTime(!1) : t._dur, o, u, f;
|
|
230
|
+
return $(e) && (isNaN(e) || e in r) ? (u = e.charAt(0), f = e.substr(-1) === "%", o = e.indexOf("="), u === "<" || u === ">" ? (o >= 0 && (e = e.replace(/=/, "")), (u === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(e.substr(1)) || 0) * (f ? (o < 0 ? n : i).totalDuration() / 100 : 1)) : o < 0 ? (e in r || (r[e] = s), r[e]) : (u = parseFloat(e.charAt(o - 1) + e.substr(o + 1)), f && i && (u = u / 100 * (Z(i) ? i[0] : i).totalDuration()), o > 1 ? a(t, e.substr(0, o - 1), i) + u : s + u)) : e == null ? s : +e;
|
|
231
|
+
}, be = function(t, e, i) {
|
|
232
|
+
var r = At(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], o, u;
|
|
233
233
|
if (r && (s.duration = e[1]), s.parent = i, t) {
|
|
234
|
-
for (
|
|
235
|
-
|
|
236
|
-
s.immediateRender =
|
|
234
|
+
for (o = s, u = i; u && !("immediateRender" in o); )
|
|
235
|
+
o = u.vars.defaults || {}, u = tt(u.vars.inherit) && u.parent;
|
|
236
|
+
s.immediateRender = tt(o.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
|
|
237
237
|
}
|
|
238
|
-
return new
|
|
239
|
-
},
|
|
238
|
+
return new X(e[0], s, e[n + 1]);
|
|
239
|
+
}, Vt = function(t, e) {
|
|
240
240
|
return t || t === 0 ? e(t) : e;
|
|
241
|
-
},
|
|
241
|
+
}, ze = function(t, e, i) {
|
|
242
242
|
return i < t ? t : i > e ? e : i;
|
|
243
|
-
},
|
|
244
|
-
return
|
|
245
|
-
},
|
|
246
|
-
return
|
|
247
|
-
return
|
|
243
|
+
}, j = function(t, e) {
|
|
244
|
+
return !$(t) || !(e = es.exec(t)) ? "" : e[1];
|
|
245
|
+
}, cs = function(t, e, i) {
|
|
246
|
+
return Vt(i, function(r) {
|
|
247
|
+
return ze(t, e, r);
|
|
248
248
|
});
|
|
249
|
-
},
|
|
250
|
-
return t &&
|
|
251
|
-
},
|
|
249
|
+
}, wi = [].slice, Hr = function(t, e) {
|
|
250
|
+
return t && St(t) && "length" in t && (!e && !t.length || t.length - 1 in t && St(t[0])) && !t.nodeType && t !== Tt;
|
|
251
|
+
}, ds = function(t, e, i) {
|
|
252
252
|
return i === void 0 && (i = []), t.forEach(function(r) {
|
|
253
253
|
var n;
|
|
254
|
-
return
|
|
254
|
+
return $(r) && !e || Hr(r, 1) ? (n = i).push.apply(n, gt(r)) : i.push(r);
|
|
255
255
|
}) || i;
|
|
256
|
-
},
|
|
257
|
-
return
|
|
258
|
-
},
|
|
259
|
-
return t =
|
|
256
|
+
}, gt = function(t, e, i) {
|
|
257
|
+
return z && !e && z.selector ? z.selector(t) : $(t) && !i && (xi || !de()) ? wi.call((e || Yi).querySelectorAll(t), 0) : Z(t) ? ds(t, i) : Hr(t) ? wi.call(t, 0) : t ? [t] : [];
|
|
258
|
+
}, Pi = function(t) {
|
|
259
|
+
return t = gt(t)[0] || Se("Invalid scope") || {}, function(e) {
|
|
260
260
|
var i = t.current || t.nativeElement || t;
|
|
261
|
-
return
|
|
261
|
+
return gt(e, i.querySelectorAll ? i : i === t ? Se("Invalid scope") || Yi.createElement("div") : t);
|
|
262
262
|
};
|
|
263
|
-
},
|
|
263
|
+
}, Kr = function(t) {
|
|
264
264
|
return t.sort(function() {
|
|
265
265
|
return 0.5 - Math.random();
|
|
266
266
|
});
|
|
267
|
-
},
|
|
268
|
-
if (
|
|
267
|
+
}, Jr = function(t) {
|
|
268
|
+
if (V(t))
|
|
269
269
|
return t;
|
|
270
|
-
var e =
|
|
270
|
+
var e = St(t) ? t : {
|
|
271
271
|
each: t
|
|
272
|
-
}, i =
|
|
273
|
-
return
|
|
272
|
+
}, i = jt(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, o = r > 0 && r < 1, u = isNaN(r) || o, f = e.axis, h = r, l = r;
|
|
273
|
+
return $(r) ? h = l = {
|
|
274
274
|
center: 0.5,
|
|
275
275
|
edges: 0.5,
|
|
276
276
|
end: 1
|
|
277
|
-
}[r] || 0 : !
|
|
278
|
-
var _ = (p || e).length,
|
|
279
|
-
if (!
|
|
280
|
-
if (b = e.grid === "auto" ? 0 : (e.grid || [1,
|
|
277
|
+
}[r] || 0 : !o && u && (h = r[0], l = r[1]), function(c, d, p) {
|
|
278
|
+
var _ = (p || e).length, g = s[_], m, y, x, T, v, w, P, S, b;
|
|
279
|
+
if (!g) {
|
|
280
|
+
if (b = e.grid === "auto" ? 0 : (e.grid || [1, Pt])[1], !b) {
|
|
281
281
|
for (P = -1e8; P < (P = p[b++].getBoundingClientRect().left) && b < _; )
|
|
282
282
|
;
|
|
283
283
|
b < _ && b--;
|
|
284
284
|
}
|
|
285
|
-
for (
|
|
286
|
-
|
|
287
|
-
r === "random" &&
|
|
285
|
+
for (g = s[_] = [], m = u ? Math.min(b, _) * h - 0.5 : r % b, y = b === Pt ? 0 : u ? _ * l / b - 0.5 : r / b | 0, P = 0, S = Pt, w = 0; w < _; w++)
|
|
286
|
+
x = w % b - m, T = y - (w / b | 0), g[w] = v = f ? Math.abs(f === "y" ? T : x) : Lr(x * x + T * T), v > P && (P = v), v < S && (S = v);
|
|
287
|
+
r === "random" && Kr(g), g.max = P - S, g.min = S, g.v = _ = (parseFloat(e.amount) || parseFloat(e.each) * (b > _ ? _ - 1 : f ? f === "y" ? _ / b : b : Math.max(b, _ / b)) || 0) * (r === "edges" ? -1 : 1), g.b = _ < 0 ? n - _ : n, g.u = j(e.amount || e.each) || 0, i = i && _ < 0 ? hn(i) : i;
|
|
288
288
|
}
|
|
289
|
-
return _ = (
|
|
289
|
+
return _ = (g[c] - g.min) / g.max || 0, U(g.b + (i ? i(_) : _) * g.v) + g.u;
|
|
290
290
|
};
|
|
291
|
-
},
|
|
291
|
+
}, Si = function(t) {
|
|
292
292
|
var e = Math.pow(10, ((t + "").split(".")[1] || "").length);
|
|
293
293
|
return function(i) {
|
|
294
|
-
var r =
|
|
295
|
-
return (r - r % 1) / e + (
|
|
294
|
+
var r = U(Math.round(parseFloat(i) / t) * t * e);
|
|
295
|
+
return (r - r % 1) / e + (At(i) ? 0 : j(i));
|
|
296
296
|
};
|
|
297
|
-
},
|
|
298
|
-
var i =
|
|
299
|
-
return !i &&
|
|
297
|
+
}, tn = function(t, e) {
|
|
298
|
+
var i = Z(t), r, n;
|
|
299
|
+
return !i && St(t) && (r = i = t.radius || Pt, t.values ? (t = gt(t.values), (n = !At(t[0])) && (r *= r)) : t = Si(t.increment)), Vt(e, i ? V(t) ? function(s) {
|
|
300
300
|
return n = t(s), Math.abs(n - s) <= r ? n : s;
|
|
301
301
|
} : function(s) {
|
|
302
|
-
for (var
|
|
303
|
-
n ? (c = t[l].x -
|
|
304
|
-
return h = !r || f <= r ? t[h] : s, n || h === s ||
|
|
305
|
-
} :
|
|
306
|
-
},
|
|
307
|
-
return
|
|
308
|
-
return
|
|
302
|
+
for (var o = parseFloat(n ? s.x : s), u = parseFloat(n ? s.y : 0), f = Pt, h = 0, l = t.length, c, d; l--; )
|
|
303
|
+
n ? (c = t[l].x - o, d = t[l].y - u, c = c * c + d * d) : c = Math.abs(t[l] - o), c < f && (f = c, h = l);
|
|
304
|
+
return h = !r || f <= r ? t[h] : s, n || h === s || At(s) ? h : h + j(s);
|
|
305
|
+
} : Si(t));
|
|
306
|
+
}, en = function(t, e, i, r) {
|
|
307
|
+
return Vt(Z(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
|
|
308
|
+
return Z(t) ? t[~~(Math.random() * t.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((t - i / 2 + Math.random() * (e - t + i * 0.99)) / i) * i * r) / r;
|
|
309
309
|
});
|
|
310
|
-
},
|
|
310
|
+
}, ps = function() {
|
|
311
311
|
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
312
312
|
e[i] = arguments[i];
|
|
313
313
|
return function(r) {
|
|
@@ -315,178 +315,178 @@ var rt = {
|
|
|
315
315
|
return s(n);
|
|
316
316
|
}, r);
|
|
317
317
|
};
|
|
318
|
-
},
|
|
318
|
+
}, gs = function(t, e) {
|
|
319
319
|
return function(i) {
|
|
320
|
-
return t(parseFloat(i)) + (e ||
|
|
320
|
+
return t(parseFloat(i)) + (e || j(i));
|
|
321
321
|
};
|
|
322
|
-
},
|
|
323
|
-
return
|
|
324
|
-
},
|
|
325
|
-
return
|
|
322
|
+
}, ms = function(t, e, i) {
|
|
323
|
+
return nn(t, e, 0, 1, i);
|
|
324
|
+
}, rn = function(t, e, i) {
|
|
325
|
+
return Vt(i, function(r) {
|
|
326
326
|
return t[~~e(r)];
|
|
327
327
|
});
|
|
328
|
-
},
|
|
328
|
+
}, ys = function a(t, e, i) {
|
|
329
329
|
var r = e - t;
|
|
330
|
-
return
|
|
330
|
+
return Z(t) ? rn(t, a(0, t.length), e) : Vt(i, function(n) {
|
|
331
331
|
return (r + (n - t) % r) % r + t;
|
|
332
332
|
});
|
|
333
|
-
},
|
|
333
|
+
}, xs = function a(t, e, i) {
|
|
334
334
|
var r = e - t, n = r * 2;
|
|
335
|
-
return
|
|
335
|
+
return Z(t) ? rn(t, a(0, t.length - 1), e) : Vt(i, function(s) {
|
|
336
336
|
return s = (n + (s - t) % n) % n || 0, t + (s > r ? n - s : s);
|
|
337
337
|
});
|
|
338
|
-
},
|
|
339
|
-
for (var e = 0, i = "", r, n, s,
|
|
340
|
-
s = t.indexOf(")", r),
|
|
338
|
+
}, Ce = function(t) {
|
|
339
|
+
for (var e = 0, i = "", r, n, s, o; ~(r = t.indexOf("random(", e)); )
|
|
340
|
+
s = t.indexOf(")", r), o = t.charAt(r + 7) === "[", n = t.substr(r + 7, s - r - 7).match(o ? Ir : yi), i += t.substr(e, r - e) + en(o ? n : +n[0], o ? 0 : +n[1], +n[2] || 1e-5), e = s + 1;
|
|
341
341
|
return i + t.substr(e, t.length - e);
|
|
342
|
-
},
|
|
343
|
-
var s = e - t,
|
|
344
|
-
return
|
|
345
|
-
return i + ((
|
|
342
|
+
}, nn = function(t, e, i, r, n) {
|
|
343
|
+
var s = e - t, o = r - i;
|
|
344
|
+
return Vt(n, function(u) {
|
|
345
|
+
return i + ((u - t) / s * o || 0);
|
|
346
346
|
});
|
|
347
|
-
},
|
|
347
|
+
}, vs = function a(t, e, i, r) {
|
|
348
348
|
var n = isNaN(t + e) ? 0 : function(d) {
|
|
349
349
|
return (1 - d) * t + d * e;
|
|
350
350
|
};
|
|
351
351
|
if (!n) {
|
|
352
|
-
var s =
|
|
352
|
+
var s = $(t), o = {}, u, f, h, l, c;
|
|
353
353
|
if (i === !0 && (r = 1) && (i = null), s)
|
|
354
354
|
t = {
|
|
355
355
|
p: t
|
|
356
356
|
}, e = {
|
|
357
357
|
p: e
|
|
358
358
|
};
|
|
359
|
-
else if (
|
|
359
|
+
else if (Z(t) && !Z(e)) {
|
|
360
360
|
for (h = [], l = t.length, c = l - 2, f = 1; f < l; f++)
|
|
361
|
-
h.push(
|
|
361
|
+
h.push(a(t[f - 1], t[f]));
|
|
362
362
|
l--, n = function(p) {
|
|
363
363
|
p *= l;
|
|
364
364
|
var _ = Math.min(c, ~~p);
|
|
365
365
|
return h[_](p - _);
|
|
366
366
|
}, i = e;
|
|
367
|
-
} else r || (t =
|
|
367
|
+
} else r || (t = le(Z(t) ? [] : {}, t));
|
|
368
368
|
if (!h) {
|
|
369
|
-
for (
|
|
370
|
-
|
|
369
|
+
for (u in e)
|
|
370
|
+
Wi.call(o, t, u, "get", e[u]);
|
|
371
371
|
n = function(p) {
|
|
372
|
-
return
|
|
372
|
+
return Hi(p, o) || (s ? t.p : t);
|
|
373
373
|
};
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
return
|
|
377
|
-
},
|
|
378
|
-
var r = t.labels, n =
|
|
376
|
+
return Vt(i, n);
|
|
377
|
+
}, hr = function(t, e, i) {
|
|
378
|
+
var r = t.labels, n = Pt, s, o, u;
|
|
379
379
|
for (s in r)
|
|
380
|
-
|
|
381
|
-
return
|
|
382
|
-
},
|
|
383
|
-
var r = t.vars, n = r[e], s =
|
|
380
|
+
o = r[s] - e, o < 0 == !!i && o && n > (o = Math.abs(o)) && (u = s, n = o);
|
|
381
|
+
return u;
|
|
382
|
+
}, ft = function(t, e, i) {
|
|
383
|
+
var r = t.vars, n = r[e], s = z, o = t._ctx, u, f, h;
|
|
384
384
|
if (n)
|
|
385
|
-
return
|
|
386
|
-
},
|
|
387
|
-
return
|
|
388
|
-
},
|
|
385
|
+
return u = r[e + "Params"], f = r.callbackScope || t, i && Nt.length && We(), o && (z = o), h = u ? n.apply(f, u) : n.call(f), z = s, h;
|
|
386
|
+
}, ye = function(t) {
|
|
387
|
+
return It(t), t.scrollTrigger && t.scrollTrigger.kill(!!G), t.progress() < 1 && ft(t, "onInterrupt"), t;
|
|
388
|
+
}, re, sn = [], on = function(t) {
|
|
389
389
|
if (t)
|
|
390
|
-
if (t = !t.name && t.default || t,
|
|
391
|
-
var e = t.name, i =
|
|
390
|
+
if (t = !t.name && t.default || t, Vi() || t.headless) {
|
|
391
|
+
var e = t.name, i = V(t), r = e && !i && t.init ? function() {
|
|
392
392
|
this._props = [];
|
|
393
393
|
} : t, n = {
|
|
394
|
-
init:
|
|
395
|
-
render:
|
|
396
|
-
add:
|
|
397
|
-
kill:
|
|
398
|
-
modifier:
|
|
394
|
+
init: Me,
|
|
395
|
+
render: Hi,
|
|
396
|
+
add: Wi,
|
|
397
|
+
kill: Ns,
|
|
398
|
+
modifier: zs,
|
|
399
399
|
rawVars: 0
|
|
400
400
|
}, s = {
|
|
401
401
|
targetTest: 0,
|
|
402
402
|
get: 0,
|
|
403
|
-
getSetter:
|
|
403
|
+
getSetter: Zi,
|
|
404
404
|
aliases: {},
|
|
405
405
|
register: 0
|
|
406
406
|
};
|
|
407
|
-
if (
|
|
408
|
-
if (
|
|
407
|
+
if (de(), t !== r) {
|
|
408
|
+
if (ot[e])
|
|
409
409
|
return;
|
|
410
|
-
|
|
410
|
+
lt(r, lt(je(t, n), s)), le(r.prototype, le(n, je(t, s))), ot[r.prop = e] = r, t.targetTest && (Xe.push(r), Ui[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
|
|
411
411
|
}
|
|
412
|
-
|
|
412
|
+
Yr(e, r), t.register && t.register(nt, r, it);
|
|
413
413
|
} else
|
|
414
|
-
|
|
415
|
-
},
|
|
416
|
-
aqua: [0,
|
|
417
|
-
lime: [0,
|
|
414
|
+
sn.push(t);
|
|
415
|
+
}, L = 255, xe = {
|
|
416
|
+
aqua: [0, L, L],
|
|
417
|
+
lime: [0, L, 0],
|
|
418
418
|
silver: [192, 192, 192],
|
|
419
419
|
black: [0, 0, 0],
|
|
420
420
|
maroon: [128, 0, 0],
|
|
421
421
|
teal: [0, 128, 128],
|
|
422
|
-
blue: [0, 0,
|
|
422
|
+
blue: [0, 0, L],
|
|
423
423
|
navy: [0, 0, 128],
|
|
424
|
-
white: [
|
|
424
|
+
white: [L, L, L],
|
|
425
425
|
olive: [128, 128, 0],
|
|
426
|
-
yellow: [
|
|
427
|
-
orange: [
|
|
426
|
+
yellow: [L, L, 0],
|
|
427
|
+
orange: [L, 165, 0],
|
|
428
428
|
gray: [128, 128, 128],
|
|
429
429
|
purple: [128, 0, 128],
|
|
430
430
|
green: [0, 128, 0],
|
|
431
|
-
red: [
|
|
432
|
-
pink: [
|
|
433
|
-
cyan: [0,
|
|
434
|
-
transparent: [
|
|
435
|
-
},
|
|
436
|
-
return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) *
|
|
437
|
-
},
|
|
438
|
-
var r = t ?
|
|
431
|
+
red: [L, 0, 0],
|
|
432
|
+
pink: [L, 192, 203],
|
|
433
|
+
cyan: [0, L, L],
|
|
434
|
+
transparent: [L, L, L, 0]
|
|
435
|
+
}, fi = function(t, e, i) {
|
|
436
|
+
return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) * L + 0.5 | 0;
|
|
437
|
+
}, an = function(t, e, i) {
|
|
438
|
+
var r = t ? At(t) ? [t >> 16, t >> 8 & L, t & L] : 0 : xe.black, n, s, o, u, f, h, l, c, d, p;
|
|
439
439
|
if (!r) {
|
|
440
|
-
if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)),
|
|
441
|
-
r =
|
|
440
|
+
if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), xe[t])
|
|
441
|
+
r = xe[t];
|
|
442
442
|
else if (t.charAt(0) === "#") {
|
|
443
|
-
if (t.length < 6 && (n = t.charAt(1), s = t.charAt(2),
|
|
444
|
-
return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 &
|
|
445
|
-
t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 &
|
|
443
|
+
if (t.length < 6 && (n = t.charAt(1), s = t.charAt(2), o = t.charAt(3), t = "#" + n + n + s + s + o + o + (t.length === 5 ? t.charAt(4) + t.charAt(4) : "")), t.length === 9)
|
|
444
|
+
return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 & L, r & L, parseInt(t.substr(7), 16) / 255];
|
|
445
|
+
t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 & L, t & L];
|
|
446
446
|
} else if (t.substr(0, 3) === "hsl") {
|
|
447
|
-
if (r = p = t.match(
|
|
448
|
-
|
|
447
|
+
if (r = p = t.match(yi), !e)
|
|
448
|
+
u = +r[0] % 360 / 360, f = +r[1] / 100, h = +r[2] / 100, s = h <= 0.5 ? h * (f + 1) : h + f - h * f, n = h * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = fi(u + 1 / 3, n, s), r[1] = fi(u, n, s), r[2] = fi(u - 1 / 3, n, s);
|
|
449
449
|
else if (~t.indexOf("="))
|
|
450
|
-
return r = t.match(
|
|
450
|
+
return r = t.match(Nr), i && r.length < 4 && (r[3] = 1), r;
|
|
451
451
|
} else
|
|
452
|
-
r = t.match(
|
|
452
|
+
r = t.match(yi) || xe.transparent;
|
|
453
453
|
r = r.map(Number);
|
|
454
454
|
}
|
|
455
|
-
return e && !p && (n = r[0] /
|
|
456
|
-
},
|
|
455
|
+
return e && !p && (n = r[0] / L, s = r[1] / L, o = r[2] / L, l = Math.max(n, s, o), c = Math.min(n, s, o), h = (l + c) / 2, l === c ? u = f = 0 : (d = l - c, f = h > 0.5 ? d / (2 - l - c) : d / (l + c), u = l === n ? (s - o) / d + (s < o ? 6 : 0) : l === s ? (o - n) / d + 2 : (n - s) / d + 4, u *= 60), r[0] = ~~(u + 0.5), r[1] = ~~(f * 100 + 0.5), r[2] = ~~(h * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
|
|
456
|
+
}, fn = function(t) {
|
|
457
457
|
var e = [], i = [], r = -1;
|
|
458
|
-
return t.split(
|
|
459
|
-
var s = n.match(
|
|
458
|
+
return t.split(Ft).forEach(function(n) {
|
|
459
|
+
var s = n.match(ie) || [];
|
|
460
460
|
e.push.apply(e, s), i.push(r += s.length + 1);
|
|
461
461
|
}), e.c = i, e;
|
|
462
|
-
},
|
|
463
|
-
var r = "", n = (t + r).match(
|
|
462
|
+
}, lr = function(t, e, i) {
|
|
463
|
+
var r = "", n = (t + r).match(Ft), s = e ? "hsla(" : "rgba(", o = 0, u, f, h, l;
|
|
464
464
|
if (!n)
|
|
465
465
|
return t;
|
|
466
466
|
if (n = n.map(function(c) {
|
|
467
|
-
return (c =
|
|
468
|
-
}), i && (h =
|
|
469
|
-
for (f = t.replace(
|
|
470
|
-
r += f[
|
|
467
|
+
return (c = an(c, e, 1)) && s + (e ? c[0] + "," + c[1] + "%," + c[2] + "%," + c[3] : c.join(",")) + ")";
|
|
468
|
+
}), i && (h = fn(t), u = i.c, u.join(r) !== h.c.join(r)))
|
|
469
|
+
for (f = t.replace(Ft, "1").split(ie), l = f.length - 1; o < l; o++)
|
|
470
|
+
r += f[o] + (~u.indexOf(o) ? n.shift() || s + "0,0,0,0)" : (h.length ? h : n.length ? n : i).shift());
|
|
471
471
|
if (!f)
|
|
472
|
-
for (f = t.split(
|
|
473
|
-
r += f[
|
|
472
|
+
for (f = t.split(Ft), l = f.length - 1; o < l; o++)
|
|
473
|
+
r += f[o] + n[o];
|
|
474
474
|
return r + f[l];
|
|
475
|
-
},
|
|
476
|
-
var
|
|
477
|
-
for (t in
|
|
478
|
-
|
|
479
|
-
return new RegExp(
|
|
480
|
-
}(),
|
|
475
|
+
}, Ft = function() {
|
|
476
|
+
var a = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", t;
|
|
477
|
+
for (t in xe)
|
|
478
|
+
a += "|" + t + "\\b";
|
|
479
|
+
return new RegExp(a + ")", "gi");
|
|
480
|
+
}(), Ts = /hsl[a]?\(/, un = function(t) {
|
|
481
481
|
var e = t.join(" "), i;
|
|
482
|
-
if (
|
|
483
|
-
return i =
|
|
484
|
-
},
|
|
485
|
-
var
|
|
486
|
-
var
|
|
487
|
-
if ((
|
|
488
|
-
for (d = 0; d <
|
|
489
|
-
|
|
482
|
+
if (Ft.lastIndex = 0, Ft.test(e))
|
|
483
|
+
return i = Ts.test(e), t[1] = lr(t[1], i), t[0] = lr(t[0], i, fn(t[1])), !0;
|
|
484
|
+
}, Oe, at = function() {
|
|
485
|
+
var a = Date.now, t = 500, e = 33, i = a(), r = i, n = 1e3 / 240, s = n, o = [], u, f, h, l, c, d, p = function _(g) {
|
|
486
|
+
var m = a() - r, y = g === !0, x, T, v, w;
|
|
487
|
+
if ((m > t || m < 0) && (i += m - e), r += m, v = r - i, x = v - s, (x > 0 || y) && (w = ++l.frame, c = v - l.time * 1e3, l.time = v = v / 1e3, s += x + (x >= n ? 4 : n - x), T = 1), y || (u = f(_)), T)
|
|
488
|
+
for (d = 0; d < o.length; d++)
|
|
489
|
+
o[d](v, c, w, g);
|
|
490
490
|
};
|
|
491
491
|
return l = {
|
|
492
492
|
time: 0,
|
|
@@ -494,98 +494,98 @@ var rt = {
|
|
|
494
494
|
tick: function() {
|
|
495
495
|
p(!0);
|
|
496
496
|
},
|
|
497
|
-
deltaRatio: function(
|
|
498
|
-
return c / (1e3 / (
|
|
497
|
+
deltaRatio: function(g) {
|
|
498
|
+
return c / (1e3 / (g || 60));
|
|
499
499
|
},
|
|
500
500
|
wake: function() {
|
|
501
|
-
|
|
502
|
-
return setTimeout(
|
|
503
|
-
},
|
|
501
|
+
Br && (!xi && Vi() && (Tt = xi = window, Yi = Tt.document || {}, ht.gsap = nt, (Tt.gsapVersions || (Tt.gsapVersions = [])).push(nt.version), Vr(Ge || Tt.GreenSockGlobals || !Tt.gsap && Tt || {}), sn.forEach(on)), h = typeof requestAnimationFrame < "u" && requestAnimationFrame, u && l.sleep(), f = h || function(g) {
|
|
502
|
+
return setTimeout(g, s - l.time * 1e3 + 1 | 0);
|
|
503
|
+
}, Oe = 1, p(2));
|
|
504
504
|
},
|
|
505
505
|
sleep: function() {
|
|
506
|
-
(h ? cancelAnimationFrame : clearTimeout)(
|
|
506
|
+
(h ? cancelAnimationFrame : clearTimeout)(u), Oe = 0, f = Me;
|
|
507
507
|
},
|
|
508
|
-
lagSmoothing: function(
|
|
509
|
-
t =
|
|
508
|
+
lagSmoothing: function(g, m) {
|
|
509
|
+
t = g || 1 / 0, e = Math.min(m || 33, t);
|
|
510
510
|
},
|
|
511
|
-
fps: function(
|
|
512
|
-
n = 1e3 / (
|
|
511
|
+
fps: function(g) {
|
|
512
|
+
n = 1e3 / (g || 240), s = l.time * 1e3 + n;
|
|
513
513
|
},
|
|
514
|
-
add: function(m, y
|
|
515
|
-
var
|
|
516
|
-
|
|
517
|
-
} :
|
|
518
|
-
return l.remove(
|
|
514
|
+
add: function(g, m, y) {
|
|
515
|
+
var x = m ? function(T, v, w, P) {
|
|
516
|
+
g(T, v, w, P), l.remove(x);
|
|
517
|
+
} : g;
|
|
518
|
+
return l.remove(g), o[y ? "unshift" : "push"](x), de(), x;
|
|
519
519
|
},
|
|
520
|
-
remove: function(
|
|
521
|
-
~(
|
|
520
|
+
remove: function(g, m) {
|
|
521
|
+
~(m = o.indexOf(g)) && o.splice(m, 1) && d >= m && d--;
|
|
522
522
|
},
|
|
523
|
-
_listeners:
|
|
523
|
+
_listeners: o
|
|
524
524
|
}, l;
|
|
525
|
-
}(),
|
|
526
|
-
return !
|
|
527
|
-
},
|
|
528
|
-
for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length,
|
|
529
|
-
|
|
525
|
+
}(), de = function() {
|
|
526
|
+
return !Oe && at.wake();
|
|
527
|
+
}, A = {}, bs = /^[\d.\-M][\d.\-,\s]/, ws = /["']/g, Ps = function(t) {
|
|
528
|
+
for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, o, u, f; n < s; n++)
|
|
529
|
+
u = i[n], o = n !== s - 1 ? u.lastIndexOf(",") : u.length, f = u.substr(0, o), e[r] = isNaN(f) ? f.replace(ws, "").trim() : +f, r = u.substr(o + 1).trim();
|
|
530
530
|
return e;
|
|
531
|
-
},
|
|
531
|
+
}, Ss = function(t) {
|
|
532
532
|
var e = t.indexOf("(") + 1, i = t.indexOf(")"), r = t.indexOf("(", e);
|
|
533
533
|
return t.substring(e, ~r && r < i ? t.indexOf(")", i + 1) : i);
|
|
534
|
+
}, Ms = function(t) {
|
|
535
|
+
var e = (t + "").split("("), i = A[e[0]];
|
|
536
|
+
return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [Ps(e[1])] : Ss(t).split(",").map(qr)) : A._CE && bs.test(t) ? A._CE("", t) : i;
|
|
534
537
|
}, hn = function(t) {
|
|
535
|
-
var e = (t + "").split("("), i = O[e[0]];
|
|
536
|
-
return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [un(e[1])] : fn(t).split(",").map($i)) : O._CE && an.test(t) ? O._CE("", t) : i;
|
|
537
|
-
}, lr = function(t) {
|
|
538
538
|
return function(e) {
|
|
539
539
|
return 1 - t(1 - e);
|
|
540
540
|
};
|
|
541
|
-
},
|
|
541
|
+
}, ln = function a(t, e) {
|
|
542
542
|
for (var i = t._first, r; i; )
|
|
543
|
-
i instanceof q ?
|
|
544
|
-
},
|
|
545
|
-
return t && (
|
|
546
|
-
},
|
|
547
|
-
i === void 0 && (i = function(
|
|
548
|
-
return 1 - e(1 -
|
|
549
|
-
}), r === void 0 && (r = function(
|
|
550
|
-
return
|
|
543
|
+
i instanceof q ? a(i, e) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== e && (i.timeline ? a(i.timeline, e) : (r = i._ease, i._ease = i._yEase, i._yEase = r, i._yoyo = e)), i = i._next;
|
|
544
|
+
}, jt = function(t, e) {
|
|
545
|
+
return t && (V(t) ? t : A[t] || Ms(t)) || e;
|
|
546
|
+
}, Jt = function(t, e, i, r) {
|
|
547
|
+
i === void 0 && (i = function(u) {
|
|
548
|
+
return 1 - e(1 - u);
|
|
549
|
+
}), r === void 0 && (r = function(u) {
|
|
550
|
+
return u < 0.5 ? e(u * 2) / 2 : 1 - e((1 - u) * 2) / 2;
|
|
551
551
|
});
|
|
552
552
|
var n = {
|
|
553
553
|
easeIn: e,
|
|
554
554
|
easeOut: i,
|
|
555
555
|
easeInOut: r
|
|
556
556
|
}, s;
|
|
557
|
-
return
|
|
558
|
-
|
|
559
|
-
for (var
|
|
560
|
-
|
|
557
|
+
return et(t, function(o) {
|
|
558
|
+
A[o] = ht[o] = n, A[s = o.toLowerCase()] = i;
|
|
559
|
+
for (var u in n)
|
|
560
|
+
A[s + (u === "easeIn" ? ".in" : u === "easeOut" ? ".out" : ".inOut")] = A[o + "." + u] = n[u];
|
|
561
561
|
}), n;
|
|
562
|
-
},
|
|
562
|
+
}, _n = function(t) {
|
|
563
563
|
return function(e) {
|
|
564
564
|
return e < 0.5 ? (1 - t(1 - e * 2)) / 2 : 0.5 + t((e - 0.5) * 2) / 2;
|
|
565
565
|
};
|
|
566
|
-
},
|
|
567
|
-
var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n /
|
|
568
|
-
return h === 1 ? 1 : r * Math.pow(2, -10 * h) *
|
|
569
|
-
},
|
|
570
|
-
return 1 -
|
|
571
|
-
} :
|
|
572
|
-
return n =
|
|
573
|
-
return
|
|
574
|
-
},
|
|
575
|
-
},
|
|
566
|
+
}, ui = function a(t, e, i) {
|
|
567
|
+
var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / mi * (Math.asin(1 / r) || 0), o = function(h) {
|
|
568
|
+
return h === 1 ? 1 : r * Math.pow(2, -10 * h) * ts((h - s) * n) + 1;
|
|
569
|
+
}, u = t === "out" ? o : t === "in" ? function(f) {
|
|
570
|
+
return 1 - o(1 - f);
|
|
571
|
+
} : _n(o);
|
|
572
|
+
return n = mi / n, u.config = function(f, h) {
|
|
573
|
+
return a(t, f, h);
|
|
574
|
+
}, u;
|
|
575
|
+
}, hi = function a(t, e) {
|
|
576
576
|
e === void 0 && (e = 1.70158);
|
|
577
577
|
var i = function(s) {
|
|
578
578
|
return s ? --s * s * ((e + 1) * s + e) + 1 : 0;
|
|
579
579
|
}, r = t === "out" ? i : t === "in" ? function(n) {
|
|
580
580
|
return 1 - i(1 - n);
|
|
581
|
-
} :
|
|
581
|
+
} : _n(i);
|
|
582
582
|
return r.config = function(n) {
|
|
583
|
-
return
|
|
583
|
+
return a(t, n);
|
|
584
584
|
}, r;
|
|
585
585
|
};
|
|
586
|
-
|
|
586
|
+
et("Linear,Quad,Cubic,Quart,Quint,Strong", function(a, t) {
|
|
587
587
|
var e = t < 5 ? t + 1 : t;
|
|
588
|
-
|
|
588
|
+
Jt(a + ",Power" + (e - 1), t ? function(i) {
|
|
589
589
|
return Math.pow(i, e);
|
|
590
590
|
} : function(i) {
|
|
591
591
|
return i;
|
|
@@ -595,114 +595,114 @@ K("Linear,Quad,Cubic,Quart,Quint,Strong", function(u, t) {
|
|
|
595
595
|
return i < 0.5 ? Math.pow(i * 2, e) / 2 : 1 - Math.pow((1 - i) * 2, e) / 2;
|
|
596
596
|
});
|
|
597
597
|
});
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
(function(
|
|
601
|
-
var e = 1 / t, i = 2 * e, r = 2.5 * e, n = function(
|
|
602
|
-
return
|
|
598
|
+
A.Linear.easeNone = A.none = A.Linear.easeIn;
|
|
599
|
+
Jt("Elastic", ui("in"), ui("out"), ui());
|
|
600
|
+
(function(a, t) {
|
|
601
|
+
var e = 1 / t, i = 2 * e, r = 2.5 * e, n = function(o) {
|
|
602
|
+
return o < e ? a * o * o : o < i ? a * Math.pow(o - 1.5 / t, 2) + 0.75 : o < r ? a * (o -= 2.25 / t) * o + 0.9375 : a * Math.pow(o - 2.625 / t, 2) + 0.984375;
|
|
603
603
|
};
|
|
604
|
-
|
|
604
|
+
Jt("Bounce", function(s) {
|
|
605
605
|
return 1 - n(1 - s);
|
|
606
606
|
}, n);
|
|
607
607
|
})(7.5625, 2.75);
|
|
608
|
-
|
|
609
|
-
return Math.pow(2, 10 * (
|
|
608
|
+
Jt("Expo", function(a) {
|
|
609
|
+
return Math.pow(2, 10 * (a - 1)) * a + a * a * a * a * a * a * (1 - a);
|
|
610
610
|
});
|
|
611
|
-
|
|
612
|
-
return -(
|
|
611
|
+
Jt("Circ", function(a) {
|
|
612
|
+
return -(Lr(1 - a * a) - 1);
|
|
613
613
|
});
|
|
614
|
-
|
|
615
|
-
return
|
|
614
|
+
Jt("Sine", function(a) {
|
|
615
|
+
return a === 1 ? 1 : -Jn(a * Hn) + 1;
|
|
616
616
|
});
|
|
617
|
-
|
|
618
|
-
|
|
617
|
+
Jt("Back", hi("in"), hi("out"), hi());
|
|
618
|
+
A.SteppedEase = A.steps = ht.SteppedEase = {
|
|
619
619
|
config: function(t, e) {
|
|
620
620
|
t === void 0 && (t = 1);
|
|
621
621
|
var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - Q;
|
|
622
|
-
return function(
|
|
623
|
-
return ((r *
|
|
622
|
+
return function(o) {
|
|
623
|
+
return ((r * ze(0, s, o) | 0) + n) * i;
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
};
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
return
|
|
627
|
+
he.ease = A["quad.out"];
|
|
628
|
+
et("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(a) {
|
|
629
|
+
return $i += a + "," + a + "Params,";
|
|
630
630
|
});
|
|
631
|
-
var
|
|
632
|
-
this.id =
|
|
633
|
-
},
|
|
634
|
-
function
|
|
635
|
-
this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === 1 / 0 ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1,
|
|
631
|
+
var cn = function(t, e) {
|
|
632
|
+
this.id = Kn++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : Ur, this.set = e ? e.getSetter : Zi;
|
|
633
|
+
}, ke = /* @__PURE__ */ function() {
|
|
634
|
+
function a(e) {
|
|
635
|
+
this.vars = e, this._delay = +e.delay || 0, (this._repeat = e.repeat === 1 / 0 ? -2 : e.repeat || 0) && (this._rDelay = e.repeatDelay || 0, this._yoyo = !!e.yoyo || !!e.yoyoEase), this._ts = 1, ce(this, +e.duration, 1, 1), this.data = e.data, z && (this._ctx = z, z.data.push(this)), Oe || at.wake();
|
|
636
636
|
}
|
|
637
|
-
var t =
|
|
637
|
+
var t = a.prototype;
|
|
638
638
|
return t.delay = function(i) {
|
|
639
639
|
return i || i === 0 ? (this.parent && this.parent.smoothChildTiming && this.startTime(this._start + i - this._delay), this._delay = i, this) : this._delay;
|
|
640
640
|
}, t.duration = function(i) {
|
|
641
641
|
return arguments.length ? this.totalDuration(this._repeat > 0 ? i + (i + this._rDelay) * this._repeat : i) : this.totalDuration() && this._dur;
|
|
642
642
|
}, t.totalDuration = function(i) {
|
|
643
|
-
return arguments.length ? (this._dirty = 0,
|
|
643
|
+
return arguments.length ? (this._dirty = 0, ce(this, this._repeat < 0 ? i : (i - this._repeat * this._rDelay) / (this._repeat + 1))) : this._tDur;
|
|
644
644
|
}, t.totalTime = function(i, r) {
|
|
645
|
-
if (
|
|
645
|
+
if (de(), !arguments.length)
|
|
646
646
|
return this._tTime;
|
|
647
647
|
var n = this._dp;
|
|
648
648
|
if (n && n.smoothChildTiming && this._ts) {
|
|
649
|
-
for (
|
|
649
|
+
for (ni(this, i), !n._dp || n.parent || jr(n, this); n && n.parent; )
|
|
650
650
|
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;
|
|
651
|
-
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) &&
|
|
651
|
+
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && bt(this._dp, this, this._start - this._delay);
|
|
652
652
|
}
|
|
653
|
-
return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === Q || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i),
|
|
653
|
+
return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === Q || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), $r(this, i, r)), this;
|
|
654
654
|
}, t.time = function(i, r) {
|
|
655
|
-
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i +
|
|
655
|
+
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + fr(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
|
|
656
656
|
}, t.totalProgress = function(i, r) {
|
|
657
657
|
return arguments.length ? this.totalTime(this.totalDuration() * i, r) : this.totalDuration() ? Math.min(1, this._tTime / this._tDur) : this.rawTime() >= 0 && this._initted ? 1 : 0;
|
|
658
658
|
}, t.progress = function(i, r) {
|
|
659
|
-
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) +
|
|
659
|
+
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + fr(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
|
|
660
660
|
}, t.iteration = function(i, r) {
|
|
661
661
|
var n = this.duration() + this._rDelay;
|
|
662
|
-
return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ?
|
|
662
|
+
return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? _e(this._tTime, n) + 1 : 1;
|
|
663
663
|
}, t.timeScale = function(i, r) {
|
|
664
664
|
if (!arguments.length)
|
|
665
665
|
return this._rts === -1e-8 ? 0 : this._rts;
|
|
666
666
|
if (this._rts === i)
|
|
667
667
|
return this;
|
|
668
|
-
var n = this.parent && this._ts ?
|
|
669
|
-
return this._rts = +i || 0, this._ts = this._ps || i === -1e-8 ? 0 : this._rts, this.totalTime(
|
|
668
|
+
var n = this.parent && this._ts ? Qe(this.parent._time, this) : this._tTime;
|
|
669
|
+
return this._rts = +i || 0, this._ts = this._ps || i === -1e-8 ? 0 : this._rts, this.totalTime(ze(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), ri(this), as(this);
|
|
670
670
|
}, t.paused = function(i) {
|
|
671
|
-
return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (
|
|
671
|
+
return arguments.length ? (this._ps !== i && (this._ps = i, i ? (this._pTime = this._tTime || Math.max(-this._delay, this.rawTime()), this._ts = this._act = 0) : (de(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== Q && (this._tTime -= Q)))), this) : this._ps;
|
|
672
672
|
}, t.startTime = function(i) {
|
|
673
673
|
if (arguments.length) {
|
|
674
674
|
this._start = i;
|
|
675
675
|
var r = this.parent || this._dp;
|
|
676
|
-
return r && (r._sort || !this.parent) &&
|
|
676
|
+
return r && (r._sort || !this.parent) && bt(r, this, i - this._delay), this;
|
|
677
677
|
}
|
|
678
678
|
return this._start;
|
|
679
679
|
}, t.endTime = function(i) {
|
|
680
|
-
return this._start + (
|
|
680
|
+
return this._start + (tt(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
|
|
681
681
|
}, t.rawTime = function(i) {
|
|
682
682
|
var r = this.parent || this._dp;
|
|
683
|
-
return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ?
|
|
683
|
+
return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Qe(r.rawTime(i), this) : this._tTime : this._tTime;
|
|
684
684
|
}, t.revert = function(i) {
|
|
685
|
-
i === void 0 && (i =
|
|
686
|
-
var r =
|
|
687
|
-
return
|
|
685
|
+
i === void 0 && (i = rs);
|
|
686
|
+
var r = G;
|
|
687
|
+
return G = i, Gi(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), G = r, this;
|
|
688
688
|
}, t.globalTime = function(i) {
|
|
689
689
|
for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
|
|
690
690
|
n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
|
|
691
691
|
return !this.parent && this._sat ? this._sat.globalTime(i) : n;
|
|
692
692
|
}, t.repeat = function(i) {
|
|
693
|
-
return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i,
|
|
693
|
+
return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i, ur(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
|
|
694
694
|
}, t.repeatDelay = function(i) {
|
|
695
695
|
if (arguments.length) {
|
|
696
696
|
var r = this._time;
|
|
697
|
-
return this._rDelay = i,
|
|
697
|
+
return this._rDelay = i, ur(this), r ? this.time(r) : this;
|
|
698
698
|
}
|
|
699
699
|
return this._rDelay;
|
|
700
700
|
}, t.yoyo = function(i) {
|
|
701
701
|
return arguments.length ? (this._yoyo = i, this) : this._yoyo;
|
|
702
702
|
}, t.seek = function(i, r) {
|
|
703
|
-
return this.totalTime(
|
|
703
|
+
return this.totalTime(dt(this, i), tt(r));
|
|
704
704
|
}, t.restart = function(i, r) {
|
|
705
|
-
return this.play().totalTime(i ? -this._delay : 0,
|
|
705
|
+
return this.play().totalTime(i ? -this._delay : 0, tt(r)), this._dur || (this._zTime = -1e-8), this;
|
|
706
706
|
}, t.play = function(i, r) {
|
|
707
707
|
return i != null && this.seek(i, r), this.reversed(!1).paused(!1);
|
|
708
708
|
}, t.reverse = function(i, r) {
|
|
@@ -724,17 +724,17 @@ var pr = function(t, e) {
|
|
|
724
724
|
}, t.then = function(i) {
|
|
725
725
|
var r = this;
|
|
726
726
|
return new Promise(function(n) {
|
|
727
|
-
var s =
|
|
727
|
+
var s = V(i) ? i : Gr, o = function() {
|
|
728
728
|
var f = r.then;
|
|
729
|
-
r.then = null,
|
|
729
|
+
r.then = null, V(s) && (s = s(r)) && (s.then || s === r) && (r.then = f), n(s), r.then = f;
|
|
730
730
|
};
|
|
731
|
-
r._initted && r.totalProgress() === 1 && r._ts >= 0 || !r._tTime && r._ts < 0 ?
|
|
731
|
+
r._initted && r.totalProgress() === 1 && r._ts >= 0 || !r._tTime && r._ts < 0 ? o() : r._prom = o;
|
|
732
732
|
});
|
|
733
733
|
}, t.kill = function() {
|
|
734
|
-
|
|
735
|
-
},
|
|
734
|
+
ye(this);
|
|
735
|
+
}, a;
|
|
736
736
|
}();
|
|
737
|
-
|
|
737
|
+
lt(ke.prototype, {
|
|
738
738
|
_time: 0,
|
|
739
739
|
_start: 0,
|
|
740
740
|
_end: 0,
|
|
@@ -754,53 +754,53 @@ st(he.prototype, {
|
|
|
754
754
|
_ps: !1,
|
|
755
755
|
_rts: 1
|
|
756
756
|
});
|
|
757
|
-
var q = /* @__PURE__ */ function(
|
|
758
|
-
|
|
757
|
+
var q = /* @__PURE__ */ function(a) {
|
|
758
|
+
Er(t, a);
|
|
759
759
|
function t(i, r) {
|
|
760
760
|
var n;
|
|
761
|
-
return i === void 0 && (i = {}), n =
|
|
761
|
+
return i === void 0 && (i = {}), n = a.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = tt(i.sortChildren), I && bt(i.parent || I, Mt(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && Qr(Mt(n), i.scrollTrigger), n;
|
|
762
762
|
}
|
|
763
763
|
var e = t.prototype;
|
|
764
764
|
return e.to = function(r, n, s) {
|
|
765
|
-
return
|
|
765
|
+
return be(0, arguments, this), this;
|
|
766
766
|
}, e.from = function(r, n, s) {
|
|
767
|
-
return
|
|
768
|
-
}, e.fromTo = function(r, n, s,
|
|
769
|
-
return
|
|
767
|
+
return be(1, arguments, this), this;
|
|
768
|
+
}, e.fromTo = function(r, n, s, o) {
|
|
769
|
+
return be(2, arguments, this), this;
|
|
770
770
|
}, e.set = function(r, n, s) {
|
|
771
|
-
return n.duration = 0, n.parent = this,
|
|
771
|
+
return n.duration = 0, n.parent = this, Te(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new X(r, n, dt(this, s), 1), this;
|
|
772
772
|
}, e.call = function(r, n, s) {
|
|
773
|
-
return
|
|
774
|
-
}, e.staggerTo = function(r, n, s,
|
|
775
|
-
return s.duration = n, s.stagger = s.stagger ||
|
|
776
|
-
}, e.staggerFrom = function(r, n, s,
|
|
777
|
-
return s.runBackwards = 1,
|
|
778
|
-
}, e.staggerFromTo = function(r, n, s,
|
|
779
|
-
return
|
|
773
|
+
return bt(this, X.delayedCall(0, r, n), s);
|
|
774
|
+
}, e.staggerTo = function(r, n, s, o, u, f, h) {
|
|
775
|
+
return s.duration = n, s.stagger = s.stagger || o, s.onComplete = f, s.onCompleteParams = h, s.parent = this, new X(r, s, dt(this, u)), this;
|
|
776
|
+
}, e.staggerFrom = function(r, n, s, o, u, f, h) {
|
|
777
|
+
return s.runBackwards = 1, Te(s).immediateRender = tt(s.immediateRender), this.staggerTo(r, n, s, o, u, f, h);
|
|
778
|
+
}, e.staggerFromTo = function(r, n, s, o, u, f, h, l) {
|
|
779
|
+
return o.startAt = s, Te(o).immediateRender = tt(o.immediateRender), this.staggerTo(r, n, o, u, f, h, l);
|
|
780
780
|
}, e.render = function(r, n, s) {
|
|
781
|
-
var
|
|
782
|
-
if (this !==
|
|
783
|
-
if (
|
|
784
|
-
if (w = this._yoyo,
|
|
785
|
-
return this.totalTime(
|
|
786
|
-
if (c =
|
|
787
|
-
var S = w &&
|
|
788
|
-
if (_ <
|
|
781
|
+
var o = this._time, u = this._dirty ? this.totalDuration() : this._tDur, f = this._dur, h = r <= 0 ? 0 : U(r), l = this._zTime < 0 != r < 0 && (this._initted || !f), c, d, p, _, g, m, y, x, T, v, w, P;
|
|
782
|
+
if (this !== I && h > u && r >= 0 && (h = u), h !== this._tTime || s || l) {
|
|
783
|
+
if (o !== this._time && f && (h += this._time - o, r += this._time - o), c = h, T = this._start, x = this._ts, m = !x, l && (f || (o = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
|
|
784
|
+
if (w = this._yoyo, g = f + this._rDelay, this._repeat < -1 && r < 0)
|
|
785
|
+
return this.totalTime(g * 100 + r, n, s);
|
|
786
|
+
if (c = U(h % g), h === u ? (_ = this._repeat, c = f) : (v = U(h / g), _ = ~~v, _ && _ === v && (c = f, _--), c > f && (c = f)), v = _e(this._tTime, g), !o && this._tTime && v !== _ && this._tTime - v * g - this._dur <= 0 && (v = _), w && _ & 1 && (c = f - c, P = 1), _ !== v && !this._lock) {
|
|
787
|
+
var S = w && v & 1, b = S === (w && _ & 1);
|
|
788
|
+
if (_ < v && (S = !S), o = S ? 0 : h % f ? f : h, this._lock = 1, this.render(o || (P ? 0 : U(_ * g)), n, !f)._lock = 0, this._tTime = h, !n && this.parent && ft(this, "onRepeat"), this.vars.repeatRefresh && !P && (this.invalidate()._lock = 1), o && o !== this._time || m !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
|
|
789
789
|
return this;
|
|
790
|
-
if (f = this._dur,
|
|
790
|
+
if (f = this._dur, u = this._tDur, b && (this._lock = 2, o = S ? f : -1e-4, this.render(o, !0), this.vars.repeatRefresh && !P && this.invalidate()), this._lock = 0, !this._ts && !m)
|
|
791
791
|
return this;
|
|
792
|
-
|
|
792
|
+
ln(this, P);
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
|
-
if (this._hasPause && !this._forcing && this._lock < 2 && (
|
|
795
|
+
if (this._hasPause && !this._forcing && this._lock < 2 && (y = ls(this, U(o), U(c)), y && (h -= c - (c = y._start))), this._tTime = h, this._time = c, this._act = !x, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, o = 0), !o && h && !n && !v && (ft(this, "onStart"), this._tTime !== h))
|
|
796
796
|
return this;
|
|
797
|
-
if (c >=
|
|
797
|
+
if (c >= o && r >= 0)
|
|
798
798
|
for (d = this._first; d; ) {
|
|
799
|
-
if (p = d._next, (d._act || c >= d._start) && d._ts &&
|
|
799
|
+
if (p = d._next, (d._act || c >= d._start) && d._ts && y !== d) {
|
|
800
800
|
if (d.parent !== this)
|
|
801
801
|
return this.render(r, n, s);
|
|
802
|
-
if (d.render(d._ts > 0 ? (c - d._start) * d._ts : (d._dirty ? d.totalDuration() : d._tDur) + (c - d._start) * d._ts, n, s), c !== this._time || !this._ts && !
|
|
803
|
-
|
|
802
|
+
if (d.render(d._ts > 0 ? (c - d._start) * d._ts : (d._dirty ? d.totalDuration() : d._tDur) + (c - d._start) * d._ts, n, s), c !== this._time || !this._ts && !m) {
|
|
803
|
+
y = 0, p && (h += this._zTime = -1e-8);
|
|
804
804
|
break;
|
|
805
805
|
}
|
|
806
806
|
}
|
|
@@ -808,225 +808,225 @@ var q = /* @__PURE__ */ function(u) {
|
|
|
808
808
|
}
|
|
809
809
|
else {
|
|
810
810
|
d = this._last;
|
|
811
|
-
for (var
|
|
812
|
-
if (p = d._prev, (d._act ||
|
|
811
|
+
for (var M = r < 0 ? r : c; d; ) {
|
|
812
|
+
if (p = d._prev, (d._act || M <= d._end) && d._ts && y !== d) {
|
|
813
813
|
if (d.parent !== this)
|
|
814
814
|
return this.render(r, n, s);
|
|
815
|
-
if (d.render(d._ts > 0 ? (
|
|
816
|
-
|
|
815
|
+
if (d.render(d._ts > 0 ? (M - d._start) * d._ts : (d._dirty ? d.totalDuration() : d._tDur) + (M - d._start) * d._ts, n, s || G && Gi(d)), c !== this._time || !this._ts && !m) {
|
|
816
|
+
y = 0, p && (h += this._zTime = M ? -1e-8 : Q);
|
|
817
817
|
break;
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
d = p;
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
|
-
if (
|
|
824
|
-
return this._start = T,
|
|
825
|
-
this._onUpdate && !n &&
|
|
823
|
+
if (y && !n && (this.pause(), y.render(c >= o ? 0 : -1e-8)._zTime = c >= o ? 1 : -1, this._ts))
|
|
824
|
+
return this._start = T, ri(this), this.render(r, n, s);
|
|
825
|
+
this._onUpdate && !n && ft(this, "onUpdate", !0), (h === u && this._tTime >= this.totalDuration() || !h && o) && (T === this._start || Math.abs(x) !== Math.abs(this._ts)) && (this._lock || ((r || !f) && (h === u && this._ts > 0 || !h && this._ts < 0) && It(this, 1), !n && !(r < 0 && !o) && (h || o || !u) && (ft(this, h === u && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < u && this.timeScale() > 0) && this._prom())));
|
|
826
826
|
}
|
|
827
827
|
return this;
|
|
828
828
|
}, e.add = function(r, n) {
|
|
829
829
|
var s = this;
|
|
830
|
-
if (
|
|
831
|
-
if (
|
|
832
|
-
return r.forEach(function(
|
|
833
|
-
return s.add(
|
|
830
|
+
if (At(n) || (n = dt(this, n, r)), !(r instanceof ke)) {
|
|
831
|
+
if (Z(r))
|
|
832
|
+
return r.forEach(function(o) {
|
|
833
|
+
return s.add(o, n);
|
|
834
834
|
}), this;
|
|
835
|
-
if (
|
|
835
|
+
if ($(r))
|
|
836
836
|
return this.addLabel(r, n);
|
|
837
|
-
if (
|
|
838
|
-
r =
|
|
837
|
+
if (V(r))
|
|
838
|
+
r = X.delayedCall(0, r);
|
|
839
839
|
else
|
|
840
840
|
return this;
|
|
841
841
|
}
|
|
842
|
-
return this !== r ?
|
|
843
|
-
}, e.getChildren = function(r, n, s,
|
|
844
|
-
r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0),
|
|
845
|
-
for (var
|
|
846
|
-
f._start >=
|
|
847
|
-
return
|
|
842
|
+
return this !== r ? bt(this, r, n) : this;
|
|
843
|
+
}, e.getChildren = function(r, n, s, o) {
|
|
844
|
+
r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), o === void 0 && (o = -1e8);
|
|
845
|
+
for (var u = [], f = this._first; f; )
|
|
846
|
+
f._start >= o && (f instanceof X ? n && u.push(f) : (s && u.push(f), r && u.push.apply(u, f.getChildren(!0, n, s)))), f = f._next;
|
|
847
|
+
return u;
|
|
848
848
|
}, e.getById = function(r) {
|
|
849
849
|
for (var n = this.getChildren(1, 1, 1), s = n.length; s--; )
|
|
850
850
|
if (n[s].vars.id === r)
|
|
851
851
|
return n[s];
|
|
852
852
|
}, e.remove = function(r) {
|
|
853
|
-
return
|
|
853
|
+
return $(r) ? this.removeLabel(r) : V(r) ? this.killTweensOf(r) : (r.parent === this && ii(this, r), r === this._recent && (this._recent = this._last), Wt(this));
|
|
854
854
|
}, e.totalTime = function(r, n) {
|
|
855
|
-
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start =
|
|
855
|
+
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = U(at.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), a.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
|
|
856
856
|
}, e.addLabel = function(r, n) {
|
|
857
|
-
return this.labels[r] =
|
|
857
|
+
return this.labels[r] = dt(this, n), this;
|
|
858
858
|
}, e.removeLabel = function(r) {
|
|
859
859
|
return delete this.labels[r], this;
|
|
860
860
|
}, e.addPause = function(r, n, s) {
|
|
861
|
-
var
|
|
862
|
-
return
|
|
861
|
+
var o = X.delayedCall(0, n || Me, s);
|
|
862
|
+
return o.data = "isPause", this._hasPause = 1, bt(this, o, dt(this, r));
|
|
863
863
|
}, e.removePause = function(r) {
|
|
864
864
|
var n = this._first;
|
|
865
|
-
for (r =
|
|
866
|
-
n._start === r && n.data === "isPause" &&
|
|
865
|
+
for (r = dt(this, r); n; )
|
|
866
|
+
n._start === r && n.data === "isPause" && It(n), n = n._next;
|
|
867
867
|
}, e.killTweensOf = function(r, n, s) {
|
|
868
|
-
for (var
|
|
869
|
-
|
|
868
|
+
for (var o = this.getTweensOf(r, s), u = o.length; u--; )
|
|
869
|
+
Et !== o[u] && o[u].kill(r, n);
|
|
870
870
|
return this;
|
|
871
871
|
}, e.getTweensOf = function(r, n) {
|
|
872
|
-
for (var s = [],
|
|
873
|
-
|
|
872
|
+
for (var s = [], o = gt(r), u = this._first, f = At(n), h; u; )
|
|
873
|
+
u instanceof X ? ns(u._targets, o) && (f ? (!Et || u._initted && u._ts) && u.globalTime(0) <= n && u.globalTime(u.totalDuration()) > n : !n || u.isActive()) && s.push(u) : (h = u.getTweensOf(o, n)).length && s.push.apply(s, h), u = u._next;
|
|
874
874
|
return s;
|
|
875
875
|
}, e.tweenTo = function(r, n) {
|
|
876
876
|
n = n || {};
|
|
877
|
-
var s = this,
|
|
877
|
+
var s = this, o = dt(s, r), u = n, f = u.startAt, h = u.onStart, l = u.onStartParams, c = u.immediateRender, d, p = X.to(s, lt({
|
|
878
878
|
ease: n.ease || "none",
|
|
879
879
|
lazy: !1,
|
|
880
880
|
immediateRender: !1,
|
|
881
|
-
time:
|
|
881
|
+
time: o,
|
|
882
882
|
overwrite: "auto",
|
|
883
|
-
duration: n.duration || Math.abs((
|
|
883
|
+
duration: n.duration || Math.abs((o - (f && "time" in f ? f.time : s._time)) / s.timeScale()) || Q,
|
|
884
884
|
onStart: function() {
|
|
885
885
|
if (s.pause(), !d) {
|
|
886
|
-
var
|
|
887
|
-
p._dur !==
|
|
886
|
+
var g = n.duration || Math.abs((o - (f && "time" in f ? f.time : s._time)) / s.timeScale());
|
|
887
|
+
p._dur !== g && ce(p, g, 0, 1).render(p._time, !0, !0), d = 1;
|
|
888
888
|
}
|
|
889
889
|
h && h.apply(p, l || []);
|
|
890
890
|
}
|
|
891
891
|
}, n));
|
|
892
892
|
return c ? p.render(0) : p;
|
|
893
893
|
}, e.tweenFromTo = function(r, n, s) {
|
|
894
|
-
return this.tweenTo(n,
|
|
894
|
+
return this.tweenTo(n, lt({
|
|
895
895
|
startAt: {
|
|
896
|
-
time:
|
|
896
|
+
time: dt(this, r)
|
|
897
897
|
}
|
|
898
898
|
}, s));
|
|
899
899
|
}, e.recent = function() {
|
|
900
900
|
return this._recent;
|
|
901
901
|
}, e.nextLabel = function(r) {
|
|
902
|
-
return r === void 0 && (r = this._time),
|
|
902
|
+
return r === void 0 && (r = this._time), hr(this, dt(this, r));
|
|
903
903
|
}, e.previousLabel = function(r) {
|
|
904
|
-
return r === void 0 && (r = this._time),
|
|
904
|
+
return r === void 0 && (r = this._time), hr(this, dt(this, r), 1);
|
|
905
905
|
}, e.currentLabel = function(r) {
|
|
906
906
|
return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + Q);
|
|
907
907
|
}, e.shiftChildren = function(r, n, s) {
|
|
908
908
|
s === void 0 && (s = 0);
|
|
909
|
-
for (var
|
|
910
|
-
|
|
909
|
+
for (var o = this._first, u = this.labels, f; o; )
|
|
910
|
+
o._start >= s && (o._start += r, o._end += r), o = o._next;
|
|
911
911
|
if (n)
|
|
912
|
-
for (f in
|
|
913
|
-
|
|
914
|
-
return
|
|
912
|
+
for (f in u)
|
|
913
|
+
u[f] >= s && (u[f] += r);
|
|
914
|
+
return Wt(this);
|
|
915
915
|
}, e.invalidate = function(r) {
|
|
916
916
|
var n = this._first;
|
|
917
917
|
for (this._lock = 0; n; )
|
|
918
918
|
n.invalidate(r), n = n._next;
|
|
919
|
-
return
|
|
919
|
+
return a.prototype.invalidate.call(this, r);
|
|
920
920
|
}, e.clear = function(r) {
|
|
921
921
|
r === void 0 && (r = !0);
|
|
922
922
|
for (var n = this._first, s; n; )
|
|
923
923
|
s = n._next, this.remove(n), n = s;
|
|
924
|
-
return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}),
|
|
924
|
+
return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), Wt(this);
|
|
925
925
|
}, e.totalDuration = function(r) {
|
|
926
|
-
var n = 0, s = this,
|
|
926
|
+
var n = 0, s = this, o = s._last, u = Pt, f, h, l;
|
|
927
927
|
if (arguments.length)
|
|
928
928
|
return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -r : r));
|
|
929
929
|
if (s._dirty) {
|
|
930
|
-
for (l = s.parent;
|
|
931
|
-
f =
|
|
932
|
-
|
|
930
|
+
for (l = s.parent; o; )
|
|
931
|
+
f = o._prev, o._dirty && o.totalDuration(), h = o._start, h > u && s._sort && o._ts && !s._lock ? (s._lock = 1, bt(s, o, h - o._delay, 1)._lock = 0) : u = h, h < 0 && o._ts && (n -= h, (!l && !s._dp || l && l.smoothChildTiming) && (s._start += h / s._ts, s._time -= h, s._tTime -= h), s.shiftChildren(-h, !1, -1 / 0), u = 0), o._end > n && o._ts && (n = o._end), o = f;
|
|
932
|
+
ce(s, s === I && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
|
|
933
933
|
}
|
|
934
934
|
return s._tDur;
|
|
935
935
|
}, t.updateRoot = function(r) {
|
|
936
|
-
if (
|
|
937
|
-
|
|
938
|
-
var n =
|
|
939
|
-
if ((!n || !n._ts) &&
|
|
936
|
+
if (I._ts && ($r(I, Qe(r, I)), Xr = at.frame), at.frame >= or) {
|
|
937
|
+
or += ut.autoSleep || 120;
|
|
938
|
+
var n = I._first;
|
|
939
|
+
if ((!n || !n._ts) && ut.autoSleep && at._listeners.length < 2) {
|
|
940
940
|
for (; n && !n._ts; )
|
|
941
941
|
n = n._next;
|
|
942
|
-
n ||
|
|
942
|
+
n || at.sleep();
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
}, t;
|
|
946
|
-
}(
|
|
947
|
-
|
|
946
|
+
}(ke);
|
|
947
|
+
lt(q.prototype, {
|
|
948
948
|
_lock: 0,
|
|
949
949
|
_hasPause: 0,
|
|
950
950
|
_forcing: 0
|
|
951
951
|
});
|
|
952
|
-
var
|
|
953
|
-
var
|
|
954
|
-
for (
|
|
955
|
-
p = l[0], _ = r.substring(f, l.index), d ? d = (d + 1) % 5 : _.substr(-5) === "rgba(" && (d = 1), p !== c[h++] && (
|
|
956
|
-
_next:
|
|
952
|
+
var Cs = function(t, e, i, r, n, s, o) {
|
|
953
|
+
var u = new it(this._pt, t, e, 0, 1, xn, null, n), f = 0, h = 0, l, c, d, p, _, g, m, y;
|
|
954
|
+
for (u.b = i, u.e = r, i += "", r += "", (m = ~r.indexOf("random(")) && (r = Ce(r)), s && (y = [i, r], s(y, t, e), i = y[0], r = y[1]), c = i.match(oi) || []; l = oi.exec(r); )
|
|
955
|
+
p = l[0], _ = r.substring(f, l.index), d ? d = (d + 1) % 5 : _.substr(-5) === "rgba(" && (d = 1), p !== c[h++] && (g = parseFloat(c[h - 1]) || 0, u._pt = {
|
|
956
|
+
_next: u._pt,
|
|
957
957
|
p: _ || h === 1 ? _ : ",",
|
|
958
958
|
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
959
|
-
s:
|
|
960
|
-
c: p.charAt(1) === "=" ?
|
|
959
|
+
s: g,
|
|
960
|
+
c: p.charAt(1) === "=" ? oe(g, p) - g : parseFloat(p) - g,
|
|
961
961
|
m: d && d < 4 ? Math.round : 0
|
|
962
|
-
}, f =
|
|
963
|
-
return
|
|
964
|
-
},
|
|
965
|
-
|
|
966
|
-
var l = t[e], c = i !== "get" ? i :
|
|
967
|
-
if (
|
|
968
|
-
return !isNaN(c * r) && r !== "" ? (p = new
|
|
969
|
-
},
|
|
970
|
-
if (
|
|
971
|
-
return
|
|
972
|
-
var s = {},
|
|
973
|
-
for (
|
|
974
|
-
s[
|
|
962
|
+
}, f = oi.lastIndex);
|
|
963
|
+
return u.c = f < r.length ? r.substring(f, r.length) : "", u.fp = o, (Fr.test(r) || m) && (u.e = 0), this._pt = u, u;
|
|
964
|
+
}, Wi = function(t, e, i, r, n, s, o, u, f, h) {
|
|
965
|
+
V(r) && (r = r(n || 0, t, s));
|
|
966
|
+
var l = t[e], c = i !== "get" ? i : V(l) ? f ? t[e.indexOf("set") || !V(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](f) : t[e]() : l, d = V(l) ? f ? Rs : mn : Qi, p;
|
|
967
|
+
if ($(r) && (~r.indexOf("random(") && (r = Ce(r)), r.charAt(1) === "=" && (p = oe(c, r) + (j(c) || 0), (p || p === 0) && (r = p))), !h || c !== r || Mi)
|
|
968
|
+
return !isNaN(c * r) && r !== "" ? (p = new it(this._pt, t, e, +c || 0, r - (c || 0), typeof l == "boolean" ? Ls : yn, 0, d), f && (p.fp = f), o && p.modifier(o, this, t), this._pt = p) : (!l && !(e in t) && Xi(e, r), Cs.call(this, t, e, c, r, d, u || ut.stringFilter, f));
|
|
969
|
+
}, Os = function(t, e, i, r, n) {
|
|
970
|
+
if (V(t) && (t = we(t, n, e, i, r)), !St(t) || t.style && t.nodeType || Z(t) || zr(t))
|
|
971
|
+
return $(t) ? we(t, n, e, i, r) : t;
|
|
972
|
+
var s = {}, o;
|
|
973
|
+
for (o in t)
|
|
974
|
+
s[o] = we(t[o], n, e, i, r);
|
|
975
975
|
return s;
|
|
976
|
-
},
|
|
977
|
-
var
|
|
978
|
-
if (
|
|
979
|
-
for (f = i._ptLookup[i._targets.indexOf(n)], h =
|
|
980
|
-
f[
|
|
981
|
-
return
|
|
982
|
-
},
|
|
983
|
-
var r = t.vars, n = r.ease, s = r.startAt,
|
|
984
|
-
if (T && (!c || !n) && (n = "none"), t._ease =
|
|
985
|
-
if (
|
|
986
|
-
if (
|
|
976
|
+
}, dn = function(t, e, i, r, n, s) {
|
|
977
|
+
var o, u, f, h;
|
|
978
|
+
if (ot[t] && (o = new ot[t]()).init(n, o.rawVars ? e[t] : Os(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = u = new it(i._pt, n, t, 0, 1, o.render, o, 0, o.priority), i !== re))
|
|
979
|
+
for (f = i._ptLookup[i._targets.indexOf(n)], h = o._props.length; h--; )
|
|
980
|
+
f[o._props[h]] = u;
|
|
981
|
+
return o;
|
|
982
|
+
}, Et, Mi, ji = function a(t, e, i) {
|
|
983
|
+
var r = t.vars, n = r.ease, s = r.startAt, o = r.immediateRender, u = r.lazy, f = r.onUpdate, h = r.runBackwards, l = r.yoyoEase, c = r.keyframes, d = r.autoRevert, p = t._dur, _ = t._startAt, g = t._targets, m = t.parent, y = m && m.data === "nested" ? m.vars.targets : g, x = t._overwrite === "auto" && !Ii, T = t.timeline, v, w, P, S, b, M, C, O, k, N, E, R, F;
|
|
984
|
+
if (T && (!c || !n) && (n = "none"), t._ease = jt(n, he.ease), t._yEase = l ? hn(jt(l === !0 ? n : l, he.ease)) : 0, l && t._yoyo && !t._repeat && (l = t._yEase, t._yEase = t._ease, t._ease = l), t._from = !T && !!r.runBackwards, !T || c && !r.stagger) {
|
|
985
|
+
if (O = g[0] ? Gt(g[0]).harness : 0, R = O && r[O.prop], v = je(r, Ui), _ && (_._zTime < 0 && _.progress(1), e < 0 && h && o && !d ? _.render(-1, !0) : _.revert(h && p ? Ye : is), _._lazy = 0), s) {
|
|
986
|
+
if (It(t._startAt = X.set(g, lt({
|
|
987
987
|
data: "isStart",
|
|
988
988
|
overwrite: !1,
|
|
989
|
-
parent:
|
|
989
|
+
parent: m,
|
|
990
990
|
immediateRender: !0,
|
|
991
|
-
lazy: !_ &&
|
|
991
|
+
lazy: !_ && tt(u),
|
|
992
992
|
startAt: null,
|
|
993
993
|
delay: 0,
|
|
994
994
|
onUpdate: f && function() {
|
|
995
|
-
return
|
|
995
|
+
return ft(t, "onUpdate");
|
|
996
996
|
},
|
|
997
997
|
stagger: 0
|
|
998
|
-
}, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (
|
|
998
|
+
}, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (G || !o && !d) && t._startAt.revert(Ye), o && p && e <= 0 && i <= 0) {
|
|
999
999
|
e && (t._zTime = e);
|
|
1000
1000
|
return;
|
|
1001
1001
|
}
|
|
1002
1002
|
} else if (h && p && !_) {
|
|
1003
|
-
if (e && (
|
|
1003
|
+
if (e && (o = !1), P = lt({
|
|
1004
1004
|
overwrite: !1,
|
|
1005
1005
|
data: "isFromStart",
|
|
1006
1006
|
//we tag the tween with as "isFromStart" so that if [inside a plugin] we need to only do something at the very END of a tween, we have a way of identifying this tween as merely the one that's setting the beginning values for a "from()" tween. For example, clearProps in CSSPlugin should only get applied at the very END of a tween and without this tag, from(...{height:100, clearProps:"height", delay:1}) would wipe the height at the beginning of the tween and after 1 second, it'd kick back in.
|
|
1007
|
-
lazy:
|
|
1008
|
-
immediateRender:
|
|
1007
|
+
lazy: o && !_ && tt(u),
|
|
1008
|
+
immediateRender: o,
|
|
1009
1009
|
//zero-duration tweens render immediately by default, but if we're not specifically instructed to render this tween immediately, we should skip this and merely _init() to record the starting values (rendering them immediately would push them to completion which is wasteful in that case - we'd have to render(-1) immediately after)
|
|
1010
1010
|
stagger: 0,
|
|
1011
|
-
parent:
|
|
1011
|
+
parent: m
|
|
1012
1012
|
//ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
|
|
1013
|
-
},
|
|
1014
|
-
|
|
1013
|
+
}, v), R && (P[O.prop] = R), It(t._startAt = X.set(g, P)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (G ? t._startAt.revert(Ye) : t._startAt.render(-1, !0)), t._zTime = e, !o)
|
|
1014
|
+
a(t._startAt, Q, Q);
|
|
1015
1015
|
else if (!e)
|
|
1016
1016
|
return;
|
|
1017
1017
|
}
|
|
1018
|
-
for (t._pt = t._ptCache = 0,
|
|
1019
|
-
if (b =
|
|
1020
|
-
|
|
1021
|
-
}),
|
|
1022
|
-
for (P in
|
|
1023
|
-
|
|
1024
|
-
t._op && t._op[w] && t.kill(b, t._op[w]),
|
|
1018
|
+
for (t._pt = t._ptCache = 0, u = p && tt(u) || u && !p, w = 0; w < g.length; w++) {
|
|
1019
|
+
if (b = g[w], C = b._gsap || qi(g)[w]._gsap, t._ptLookup[w] = N = {}, vi[C.id] && Nt.length && We(), E = y === g ? w : y.indexOf(b), O && (k = new O()).init(b, R || v, t, E, y) !== !1 && (t._pt = S = new it(t._pt, b, k.name, 0, 1, k.render, k, 0, k.priority), k._props.forEach(function(W) {
|
|
1020
|
+
N[W] = S;
|
|
1021
|
+
}), k.priority && (M = 1)), !O || R)
|
|
1022
|
+
for (P in v)
|
|
1023
|
+
ot[P] && (k = dn(P, v, t, E, b, y)) ? k.priority && (M = 1) : N[P] = S = Wi.call(t, b, P, "get", v[P], E, y, 0, r.stringFilter);
|
|
1024
|
+
t._op && t._op[w] && t.kill(b, t._op[w]), x && t._pt && (Et = t, I.killTweensOf(b, N, t.globalTime(e)), F = !t.parent, Et = 0), t._pt && u && (vi[C.id] = 1);
|
|
1025
1025
|
}
|
|
1026
|
-
|
|
1026
|
+
M && vn(t), t._onInit && t._onInit(t);
|
|
1027
1027
|
}
|
|
1028
|
-
t._onUpdate = f, t._initted = (!t._op || t._pt) && !
|
|
1029
|
-
},
|
|
1028
|
+
t._onUpdate = f, t._initted = (!t._op || t._pt) && !F, c && e <= 0 && T.render(Pt, !0, !0);
|
|
1029
|
+
}, ks = function(t, e, i, r, n, s, o, u) {
|
|
1030
1030
|
var f = (t._pt && t._ptCache || (t._ptCache = {}))[e], h, l, c, d;
|
|
1031
1031
|
if (!f)
|
|
1032
1032
|
for (f = t._ptCache[e] = [], c = t._ptLookup, d = t._targets.length; d--; ) {
|
|
@@ -1034,153 +1034,153 @@ var _n = function(t, e, i, r, n, s, a) {
|
|
|
1034
1034
|
for (h = h.d._pt; h && h.p !== e && h.fp !== e; )
|
|
1035
1035
|
h = h._next;
|
|
1036
1036
|
if (!h)
|
|
1037
|
-
return
|
|
1037
|
+
return Mi = 1, t.vars[e] = "+=0", ji(t, o), Mi = 0, u ? Se(e + " not eligible for reset") : 1;
|
|
1038
1038
|
f.push(h);
|
|
1039
1039
|
}
|
|
1040
1040
|
for (d = f.length; d--; )
|
|
1041
|
-
l = f[d], h = l._pt || l, h.s = (r || r === 0) && !n ? r : h.s + (r || 0) + s * h.c, h.c = i - h.s, l.e && (l.e =
|
|
1042
|
-
},
|
|
1043
|
-
var i = t[0] ?
|
|
1041
|
+
l = f[d], h = l._pt || l, h.s = (r || r === 0) && !n ? r : h.s + (r || 0) + s * h.c, h.c = i - h.s, l.e && (l.e = Y(i) + j(l.e)), l.b && (l.b = h.s + j(l.b));
|
|
1042
|
+
}, As = function(t, e) {
|
|
1043
|
+
var i = t[0] ? Gt(t[0]).harness : 0, r = i && i.aliases, n, s, o, u;
|
|
1044
1044
|
if (!r)
|
|
1045
1045
|
return e;
|
|
1046
|
-
n =
|
|
1046
|
+
n = le({}, e);
|
|
1047
1047
|
for (s in r)
|
|
1048
1048
|
if (s in n)
|
|
1049
|
-
for (
|
|
1050
|
-
n[o
|
|
1049
|
+
for (u = r[s].split(","), o = u.length; o--; )
|
|
1050
|
+
n[u[o]] = n[s];
|
|
1051
1051
|
return n;
|
|
1052
|
-
},
|
|
1053
|
-
var n = e.ease || r || "power1.inOut", s,
|
|
1054
|
-
if (
|
|
1055
|
-
|
|
1056
|
-
return
|
|
1052
|
+
}, Ds = function(t, e, i, r) {
|
|
1053
|
+
var n = e.ease || r || "power1.inOut", s, o;
|
|
1054
|
+
if (Z(e))
|
|
1055
|
+
o = i[t] || (i[t] = []), e.forEach(function(u, f) {
|
|
1056
|
+
return o.push({
|
|
1057
1057
|
t: f / (e.length - 1) * 100,
|
|
1058
|
-
v:
|
|
1058
|
+
v: u,
|
|
1059
1059
|
e: n
|
|
1060
1060
|
});
|
|
1061
1061
|
});
|
|
1062
1062
|
else
|
|
1063
1063
|
for (s in e)
|
|
1064
|
-
|
|
1064
|
+
o = i[s] || (i[s] = []), s === "ease" || o.push({
|
|
1065
1065
|
t: parseFloat(t),
|
|
1066
1066
|
v: e[s],
|
|
1067
1067
|
e: n
|
|
1068
1068
|
});
|
|
1069
|
-
},
|
|
1070
|
-
return
|
|
1071
|
-
},
|
|
1072
|
-
|
|
1073
|
-
return
|
|
1069
|
+
}, we = function(t, e, i, r, n) {
|
|
1070
|
+
return V(t) ? t.call(e, i, r, n) : $(t) && ~t.indexOf("random(") ? Ce(t) : t;
|
|
1071
|
+
}, pn = $i + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", gn = {};
|
|
1072
|
+
et(pn + ",id,stagger,delay,duration,paused,scrollTrigger", function(a) {
|
|
1073
|
+
return gn[a] = 1;
|
|
1074
1074
|
});
|
|
1075
|
-
var
|
|
1076
|
-
|
|
1075
|
+
var X = /* @__PURE__ */ function(a) {
|
|
1076
|
+
Er(t, a);
|
|
1077
1077
|
function t(i, r, n, s) {
|
|
1078
|
-
var
|
|
1079
|
-
typeof r == "number" && (n.duration = r, r = n, n = null),
|
|
1080
|
-
var
|
|
1081
|
-
if (
|
|
1082
|
-
if (r =
|
|
1078
|
+
var o;
|
|
1079
|
+
typeof r == "number" && (n.duration = r, r = n, n = null), o = a.call(this, s ? r : Te(r)) || this;
|
|
1080
|
+
var u = o.vars, f = u.duration, h = u.delay, l = u.immediateRender, c = u.stagger, d = u.overwrite, p = u.keyframes, _ = u.defaults, g = u.scrollTrigger, m = u.yoyoEase, y = r.parent || I, x = (Z(i) || zr(i) ? At(i[0]) : "length" in r) ? [i] : gt(i), T, v, w, P, S, b, M, C;
|
|
1081
|
+
if (o._targets = x.length ? qi(x) : Se("GSAP target " + i + " not found. https://gsap.com", !ut.nullTargetWarn) || [], o._ptLookup = [], o._overwrite = d, p || c || Fe(f) || Fe(h)) {
|
|
1082
|
+
if (r = o.vars, T = o.timeline = new q({
|
|
1083
1083
|
data: "nested",
|
|
1084
1084
|
defaults: _ || {},
|
|
1085
|
-
targets:
|
|
1086
|
-
}), T.kill(), T.parent = T._dp =
|
|
1087
|
-
if (P =
|
|
1085
|
+
targets: y && y.data === "nested" ? y.vars.targets : x
|
|
1086
|
+
}), T.kill(), T.parent = T._dp = Mt(o), T._start = 0, c || Fe(f) || Fe(h)) {
|
|
1087
|
+
if (P = x.length, M = c && Jr(c), St(c))
|
|
1088
1088
|
for (S in c)
|
|
1089
|
-
~
|
|
1090
|
-
for (
|
|
1091
|
-
w =
|
|
1092
|
-
T.duration() ? f = h = 0 :
|
|
1089
|
+
~pn.indexOf(S) && (C || (C = {}), C[S] = c[S]);
|
|
1090
|
+
for (v = 0; v < P; v++)
|
|
1091
|
+
w = je(r, gn), w.stagger = 0, m && (w.yoyoEase = m), C && le(w, C), b = x[v], w.duration = +we(f, Mt(o), v, b, x), w.delay = (+we(h, Mt(o), v, b, x) || 0) - o._delay, !c && P === 1 && w.delay && (o._delay = h = w.delay, o._start += h, w.delay = 0), T.to(b, w, M ? M(v, b, x) : 0), T._ease = A.none;
|
|
1092
|
+
T.duration() ? f = h = 0 : o.timeline = 0;
|
|
1093
1093
|
} else if (p) {
|
|
1094
|
-
|
|
1094
|
+
Te(lt(T.vars.defaults, {
|
|
1095
1095
|
ease: "none"
|
|
1096
|
-
})), T._ease =
|
|
1097
|
-
var
|
|
1098
|
-
if (
|
|
1099
|
-
p.forEach(function(
|
|
1100
|
-
return T.to(
|
|
1096
|
+
})), T._ease = jt(p.ease || r.ease || "none");
|
|
1097
|
+
var O = 0, k, N, E;
|
|
1098
|
+
if (Z(p))
|
|
1099
|
+
p.forEach(function(R) {
|
|
1100
|
+
return T.to(x, R, ">");
|
|
1101
1101
|
}), T.duration();
|
|
1102
1102
|
else {
|
|
1103
1103
|
w = {};
|
|
1104
1104
|
for (S in p)
|
|
1105
|
-
S === "ease" || S === "easeEach" ||
|
|
1105
|
+
S === "ease" || S === "easeEach" || Ds(S, p[S], w, p.easeEach);
|
|
1106
1106
|
for (S in w)
|
|
1107
|
-
for (
|
|
1108
|
-
return
|
|
1109
|
-
}),
|
|
1110
|
-
|
|
1111
|
-
ease:
|
|
1112
|
-
duration: (
|
|
1113
|
-
},
|
|
1107
|
+
for (k = w[S].sort(function(R, F) {
|
|
1108
|
+
return R.t - F.t;
|
|
1109
|
+
}), O = 0, v = 0; v < k.length; v++)
|
|
1110
|
+
N = k[v], E = {
|
|
1111
|
+
ease: N.e,
|
|
1112
|
+
duration: (N.t - (v ? k[v - 1].t : 0)) / 100 * f
|
|
1113
|
+
}, E[S] = N.v, T.to(x, E, O), O += E.duration;
|
|
1114
1114
|
T.duration() < f && T.to({}, {
|
|
1115
1115
|
duration: f - T.duration()
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
|
-
f ||
|
|
1119
|
+
f || o.duration(f = T.duration());
|
|
1120
1120
|
} else
|
|
1121
|
-
|
|
1122
|
-
return d === !0 && !
|
|
1121
|
+
o.timeline = 0;
|
|
1122
|
+
return d === !0 && !Ii && (Et = Mt(o), I.killTweensOf(x), Et = 0), bt(y, Mt(o), n), r.reversed && o.reverse(), r.paused && o.paused(!0), (l || !f && !p && o._start === U(y._time) && tt(l) && fs(Mt(o)) && y.data !== "nested") && (o._tTime = -1e-8, o.render(Math.max(0, -h) || 0)), g && Qr(Mt(o), g), o;
|
|
1123
1123
|
}
|
|
1124
1124
|
var e = t.prototype;
|
|
1125
1125
|
return e.render = function(r, n, s) {
|
|
1126
|
-
var
|
|
1126
|
+
var o = this._time, u = this._tDur, f = this._dur, h = r < 0, l = r > u - Q && !h ? u : r < Q ? 0 : r, c, d, p, _, g, m, y, x, T;
|
|
1127
1127
|
if (!f)
|
|
1128
|
-
|
|
1128
|
+
hs(this, r, n, s);
|
|
1129
1129
|
else if (l !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== h || this._lazy) {
|
|
1130
|
-
if (c = l,
|
|
1130
|
+
if (c = l, x = this.timeline, this._repeat) {
|
|
1131
1131
|
if (_ = f + this._rDelay, this._repeat < -1 && h)
|
|
1132
1132
|
return this.totalTime(_ * 100 + r, n, s);
|
|
1133
|
-
if (c =
|
|
1133
|
+
if (c = U(l % _), l === u ? (p = this._repeat, c = f) : (g = U(l / _), p = ~~g, p && p === g ? (c = f, p--) : c > f && (c = f)), m = this._yoyo && p & 1, m && (T = this._yEase, c = f - c), g = _e(this._tTime, _), c === o && !s && this._initted && p === g)
|
|
1134
1134
|
return this._tTime = l, this;
|
|
1135
|
-
p !==
|
|
1135
|
+
p !== g && (x && this._yEase && ln(x, m), this.vars.repeatRefresh && !m && !this._lock && c !== _ && this._initted && (this._lock = s = 1, this.render(U(_ * p), !0).invalidate()._lock = 0));
|
|
1136
1136
|
}
|
|
1137
1137
|
if (!this._initted) {
|
|
1138
|
-
if (
|
|
1138
|
+
if (Zr(this, h ? r : c, s, n, l))
|
|
1139
1139
|
return this._tTime = 0, this;
|
|
1140
|
-
if (
|
|
1140
|
+
if (o !== this._time && !(s && this.vars.repeatRefresh && p !== g))
|
|
1141
1141
|
return this;
|
|
1142
1142
|
if (f !== this._dur)
|
|
1143
1143
|
return this.render(r, n, s);
|
|
1144
1144
|
}
|
|
1145
|
-
if (this._tTime = l, this._time = c, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio =
|
|
1145
|
+
if (this._tTime = l, this._time = c, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = y = (T || this._ease)(c / f), this._from && (this.ratio = y = 1 - y), !o && l && !n && !g && (ft(this, "onStart"), this._tTime !== l))
|
|
1146
1146
|
return this;
|
|
1147
1147
|
for (d = this._pt; d; )
|
|
1148
|
-
d.r(
|
|
1149
|
-
|
|
1148
|
+
d.r(y, d.d), d = d._next;
|
|
1149
|
+
x && x.render(r < 0 ? r : x._dur * x._ease(c / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (h && Ti(this, r, n, s), ft(this, "onUpdate")), this._repeat && p !== g && this.vars.onRepeat && !n && this.parent && ft(this, "onRepeat"), (l === this._tDur || !l) && this._tTime === l && (h && !this._onUpdate && Ti(this, r, !0, !0), (r || !f) && (l === this._tDur && this._ts > 0 || !l && this._ts < 0) && It(this, 1), !n && !(h && !o) && (l || o || m) && (ft(this, l === u ? "onComplete" : "onReverseComplete", !0), this._prom && !(l < u && this.timeScale() > 0) && this._prom()));
|
|
1150
1150
|
}
|
|
1151
1151
|
return this;
|
|
1152
1152
|
}, e.targets = function() {
|
|
1153
1153
|
return this._targets;
|
|
1154
1154
|
}, e.invalidate = function(r) {
|
|
1155
|
-
return (!r || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(r),
|
|
1156
|
-
}, e.resetTo = function(r, n, s,
|
|
1157
|
-
|
|
1155
|
+
return (!r || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(r), a.prototype.invalidate.call(this, r);
|
|
1156
|
+
}, e.resetTo = function(r, n, s, o, u) {
|
|
1157
|
+
Oe || at.wake(), this._ts || this.play();
|
|
1158
1158
|
var f = Math.min(this._dur, (this._dp._time - this._start) * this._ts), h;
|
|
1159
|
-
return this._initted ||
|
|
1159
|
+
return this._initted || ji(this, f), h = this._ease(f / this._dur), ks(this, r, n, s, o, h, f, u) ? this.resetTo(r, n, s, o, 1) : (ni(this, 0), this.parent || Wr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
|
|
1160
1160
|
}, e.kill = function(r, n) {
|
|
1161
1161
|
if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
|
|
1162
|
-
return this._lazy = this._pt = 0, this.parent ?
|
|
1162
|
+
return this._lazy = this._pt = 0, this.parent ? ye(this) : this.scrollTrigger && this.scrollTrigger.kill(!!G), this;
|
|
1163
1163
|
if (this.timeline) {
|
|
1164
1164
|
var s = this.timeline.totalDuration();
|
|
1165
|
-
return this.timeline.killTweensOf(r, n,
|
|
1165
|
+
return this.timeline.killTweensOf(r, n, Et && Et.vars.overwrite !== !0)._first || ye(this), this.parent && s !== this.timeline.totalDuration() && ce(this, this._dur * this.timeline._tDur / s, 0, 1), this;
|
|
1166
1166
|
}
|
|
1167
|
-
var
|
|
1168
|
-
if ((!n || n === "all") &&
|
|
1169
|
-
return n === "all" && (this._pt = 0),
|
|
1170
|
-
for (l = this._op = this._op || [], n !== "all" && (
|
|
1171
|
-
return _[
|
|
1172
|
-
}), n = _), n =
|
|
1173
|
-
if (~
|
|
1174
|
-
c = f[
|
|
1167
|
+
var o = this._targets, u = r ? gt(r) : o, f = this._ptLookup, h = this._pt, l, c, d, p, _, g, m;
|
|
1168
|
+
if ((!n || n === "all") && os(o, u))
|
|
1169
|
+
return n === "all" && (this._pt = 0), ye(this);
|
|
1170
|
+
for (l = this._op = this._op || [], n !== "all" && ($(n) && (_ = {}, et(n, function(y) {
|
|
1171
|
+
return _[y] = 1;
|
|
1172
|
+
}), n = _), n = As(o, n)), m = o.length; m--; )
|
|
1173
|
+
if (~u.indexOf(o[m])) {
|
|
1174
|
+
c = f[m], n === "all" ? (l[m] = n, p = c, d = {}) : (d = l[m] = l[m] || {}, p = n);
|
|
1175
1175
|
for (_ in p)
|
|
1176
|
-
|
|
1176
|
+
g = c && c[_], g && ((!("kill" in g.d) || g.d.kill(_) === !0) && ii(this, g, "_pt"), delete c[_]), d !== "all" && (d[_] = 1);
|
|
1177
1177
|
}
|
|
1178
|
-
return this._initted && !this._pt && h &&
|
|
1178
|
+
return this._initted && !this._pt && h && ye(this), this;
|
|
1179
1179
|
}, t.to = function(r, n) {
|
|
1180
1180
|
return new t(r, n, arguments[2]);
|
|
1181
1181
|
}, t.from = function(r, n) {
|
|
1182
|
-
return
|
|
1183
|
-
}, t.delayedCall = function(r, n, s,
|
|
1182
|
+
return be(1, arguments);
|
|
1183
|
+
}, t.delayedCall = function(r, n, s, o) {
|
|
1184
1184
|
return new t(n, 0, {
|
|
1185
1185
|
immediateRender: !1,
|
|
1186
1186
|
lazy: !1,
|
|
@@ -1190,44 +1190,44 @@ var I = /* @__PURE__ */ function(u) {
|
|
|
1190
1190
|
onReverseComplete: n,
|
|
1191
1191
|
onCompleteParams: s,
|
|
1192
1192
|
onReverseCompleteParams: s,
|
|
1193
|
-
callbackScope:
|
|
1193
|
+
callbackScope: o
|
|
1194
1194
|
});
|
|
1195
1195
|
}, t.fromTo = function(r, n, s) {
|
|
1196
|
-
return
|
|
1196
|
+
return be(2, arguments);
|
|
1197
1197
|
}, t.set = function(r, n) {
|
|
1198
1198
|
return n.duration = 0, n.repeatDelay || (n.repeat = 0), new t(r, n);
|
|
1199
1199
|
}, t.killTweensOf = function(r, n, s) {
|
|
1200
|
-
return
|
|
1200
|
+
return I.killTweensOf(r, n, s);
|
|
1201
1201
|
}, t;
|
|
1202
|
-
}(
|
|
1203
|
-
|
|
1202
|
+
}(ke);
|
|
1203
|
+
lt(X.prototype, {
|
|
1204
1204
|
_targets: [],
|
|
1205
1205
|
_lazy: 0,
|
|
1206
1206
|
_startAt: 0,
|
|
1207
1207
|
_op: 0,
|
|
1208
1208
|
_onInit: 0
|
|
1209
1209
|
});
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
var t = new q(), e =
|
|
1213
|
-
return e.splice(
|
|
1210
|
+
et("staggerTo,staggerFrom,staggerFromTo", function(a) {
|
|
1211
|
+
X[a] = function() {
|
|
1212
|
+
var t = new q(), e = wi.call(arguments, 0);
|
|
1213
|
+
return e.splice(a === "staggerFromTo" ? 5 : 4, 0, 0), t[a].apply(t, e);
|
|
1214
1214
|
};
|
|
1215
1215
|
});
|
|
1216
|
-
var
|
|
1216
|
+
var Qi = function(t, e, i) {
|
|
1217
1217
|
return t[e] = i;
|
|
1218
|
-
},
|
|
1218
|
+
}, mn = function(t, e, i) {
|
|
1219
1219
|
return t[e](i);
|
|
1220
|
-
},
|
|
1220
|
+
}, Rs = function(t, e, i, r) {
|
|
1221
1221
|
return t[e](r.fp, i);
|
|
1222
|
-
},
|
|
1222
|
+
}, Es = function(t, e, i) {
|
|
1223
1223
|
return t.setAttribute(e, i);
|
|
1224
|
-
},
|
|
1225
|
-
return
|
|
1226
|
-
}, vr = function(t, e) {
|
|
1227
|
-
return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
|
|
1224
|
+
}, Zi = function(t, e) {
|
|
1225
|
+
return V(t[e]) ? mn : Bi(t[e]) && t.setAttribute ? Es : Qi;
|
|
1228
1226
|
}, yn = function(t, e) {
|
|
1227
|
+
return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
|
|
1228
|
+
}, Ls = function(t, e) {
|
|
1229
1229
|
return e.set(e.t, e.p, !!(e.s + e.c * t), e);
|
|
1230
|
-
},
|
|
1230
|
+
}, xn = function(t, e) {
|
|
1231
1231
|
var i = e._pt, r = "";
|
|
1232
1232
|
if (!t && e.b)
|
|
1233
1233
|
r = e.b;
|
|
@@ -1239,95 +1239,95 @@ var hi = function(t, e, i) {
|
|
|
1239
1239
|
r += e.c;
|
|
1240
1240
|
}
|
|
1241
1241
|
e.set(e.t, e.p, r, e);
|
|
1242
|
-
},
|
|
1242
|
+
}, Hi = function(t, e) {
|
|
1243
1243
|
for (var i = e._pt; i; )
|
|
1244
1244
|
i.r(t, i.d), i = i._next;
|
|
1245
|
-
},
|
|
1245
|
+
}, zs = function(t, e, i, r) {
|
|
1246
1246
|
for (var n = this._pt, s; n; )
|
|
1247
1247
|
s = n._next, n.p === r && n.modifier(t, e, i), n = s;
|
|
1248
|
-
},
|
|
1248
|
+
}, Ns = function(t) {
|
|
1249
1249
|
for (var e = this._pt, i, r; e; )
|
|
1250
|
-
r = e._next, e.p === t && !e.op || e.op === t ?
|
|
1250
|
+
r = e._next, e.p === t && !e.op || e.op === t ? ii(this, e, "_pt") : e.dep || (i = 1), e = r;
|
|
1251
1251
|
return !i;
|
|
1252
|
-
},
|
|
1252
|
+
}, Fs = function(t, e, i, r) {
|
|
1253
1253
|
r.mSet(t, e, r.m.call(r.tween, i, r.mt), r);
|
|
1254
|
-
},
|
|
1254
|
+
}, vn = function(t) {
|
|
1255
1255
|
for (var e = t._pt, i, r, n, s; e; ) {
|
|
1256
1256
|
for (i = e._next, r = n; r && r.pr > e.pr; )
|
|
1257
1257
|
r = r._next;
|
|
1258
1258
|
(e._prev = r ? r._prev : s) ? e._prev._next = e : n = e, (e._next = r) ? r._prev = e : s = e, e = i;
|
|
1259
1259
|
}
|
|
1260
1260
|
t._pt = n;
|
|
1261
|
-
},
|
|
1262
|
-
function
|
|
1263
|
-
this.t = i, this.s = n, this.c = s, this.p = r, this.r =
|
|
1261
|
+
}, it = /* @__PURE__ */ function() {
|
|
1262
|
+
function a(e, i, r, n, s, o, u, f, h) {
|
|
1263
|
+
this.t = i, this.s = n, this.c = s, this.p = r, this.r = o || yn, this.d = u || this, this.set = f || Qi, this.pr = h || 0, this._next = e, e && (e._prev = this);
|
|
1264
1264
|
}
|
|
1265
|
-
var t =
|
|
1265
|
+
var t = a.prototype;
|
|
1266
1266
|
return t.modifier = function(i, r, n) {
|
|
1267
|
-
this.mSet = this.mSet || this.set, this.set =
|
|
1268
|
-
},
|
|
1267
|
+
this.mSet = this.mSet || this.set, this.set = Fs, this.m = i, this.mt = n, this.tween = r;
|
|
1268
|
+
}, a;
|
|
1269
1269
|
}();
|
|
1270
|
-
|
|
1271
|
-
return
|
|
1270
|
+
et($i + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(a) {
|
|
1271
|
+
return Ui[a] = 1;
|
|
1272
1272
|
});
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1273
|
+
ht.TweenMax = ht.TweenLite = X;
|
|
1274
|
+
ht.TimelineLite = ht.TimelineMax = q;
|
|
1275
|
+
I = new q({
|
|
1276
1276
|
sortChildren: !1,
|
|
1277
|
-
defaults:
|
|
1277
|
+
defaults: he,
|
|
1278
1278
|
autoRemoveChildren: !0,
|
|
1279
1279
|
id: "root",
|
|
1280
1280
|
smoothChildTiming: !0
|
|
1281
1281
|
});
|
|
1282
|
-
|
|
1283
|
-
var
|
|
1284
|
-
return (
|
|
1282
|
+
ut.stringFilter = un;
|
|
1283
|
+
var Qt = [], Ue = {}, Is = [], _r = 0, Bs = 0, li = function(t) {
|
|
1284
|
+
return (Ue[t] || Is).map(function(e) {
|
|
1285
1285
|
return e();
|
|
1286
1286
|
});
|
|
1287
|
-
},
|
|
1287
|
+
}, Ci = function() {
|
|
1288
1288
|
var t = Date.now(), e = [];
|
|
1289
|
-
t -
|
|
1290
|
-
var r = i.queries, n = i.conditions, s,
|
|
1291
|
-
for (
|
|
1292
|
-
s =
|
|
1293
|
-
f && (i.revert(),
|
|
1294
|
-
}),
|
|
1289
|
+
t - _r > 2 && (li("matchMediaInit"), Qt.forEach(function(i) {
|
|
1290
|
+
var r = i.queries, n = i.conditions, s, o, u, f;
|
|
1291
|
+
for (o in r)
|
|
1292
|
+
s = Tt.matchMedia(r[o]).matches, s && (u = 1), s !== n[o] && (n[o] = s, f = 1);
|
|
1293
|
+
f && (i.revert(), u && e.push(i));
|
|
1294
|
+
}), li("matchMediaRevert"), e.forEach(function(i) {
|
|
1295
1295
|
return i.onMatch(i, function(r) {
|
|
1296
1296
|
return i.add(null, r);
|
|
1297
1297
|
});
|
|
1298
|
-
}),
|
|
1299
|
-
},
|
|
1300
|
-
function
|
|
1301
|
-
this.selector = i &&
|
|
1298
|
+
}), _r = t, li("matchMedia"));
|
|
1299
|
+
}, Tn = /* @__PURE__ */ function() {
|
|
1300
|
+
function a(e, i) {
|
|
1301
|
+
this.selector = i && Pi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = Bs++, e && this.add(e);
|
|
1302
1302
|
}
|
|
1303
|
-
var t =
|
|
1303
|
+
var t = a.prototype;
|
|
1304
1304
|
return t.add = function(i, r, n) {
|
|
1305
|
-
|
|
1306
|
-
var s = this,
|
|
1307
|
-
var f =
|
|
1308
|
-
return f && f !== s && f.data.push(s), n && (s.selector =
|
|
1305
|
+
V(i) && (n = r, r = i, i = V);
|
|
1306
|
+
var s = this, o = function() {
|
|
1307
|
+
var f = z, h = s.selector, l;
|
|
1308
|
+
return f && f !== s && f.data.push(s), n && (s.selector = Pi(n)), z = s, l = r.apply(s, arguments), V(l) && s._r.push(l), z = f, s.selector = h, s.isReverted = !1, l;
|
|
1309
1309
|
};
|
|
1310
|
-
return s.last =
|
|
1311
|
-
return s.add(null,
|
|
1312
|
-
}) : i ? s[i] =
|
|
1310
|
+
return s.last = o, i === V ? o(s, function(u) {
|
|
1311
|
+
return s.add(null, u);
|
|
1312
|
+
}) : i ? s[i] = o : o;
|
|
1313
1313
|
}, t.ignore = function(i) {
|
|
1314
|
-
var r =
|
|
1315
|
-
|
|
1314
|
+
var r = z;
|
|
1315
|
+
z = null, i(this), z = r;
|
|
1316
1316
|
}, t.getTweens = function() {
|
|
1317
1317
|
var i = [];
|
|
1318
1318
|
return this.data.forEach(function(r) {
|
|
1319
|
-
return r instanceof
|
|
1319
|
+
return r instanceof a ? i.push.apply(i, r.getTweens()) : r instanceof X && !(r.parent && r.parent.data === "nested") && i.push(r);
|
|
1320
1320
|
}), i;
|
|
1321
1321
|
}, t.clear = function() {
|
|
1322
1322
|
this._r.length = this.data.length = 0;
|
|
1323
1323
|
}, t.kill = function(i, r) {
|
|
1324
1324
|
var n = this;
|
|
1325
1325
|
if (i ? function() {
|
|
1326
|
-
for (var
|
|
1327
|
-
f = n.data[
|
|
1328
|
-
return
|
|
1326
|
+
for (var o = n.getTweens(), u = n.data.length, f; u--; )
|
|
1327
|
+
f = n.data[u], f.data === "isFlip" && (f.revert(), f.getChildren(!0, !0, !1).forEach(function(h) {
|
|
1328
|
+
return o.splice(o.indexOf(h), 1);
|
|
1329
1329
|
}));
|
|
1330
|
-
for (
|
|
1330
|
+
for (o.map(function(h) {
|
|
1331
1331
|
return {
|
|
1332
1332
|
g: h._dur || h._delay || h._sat && !h._sat.vars.immediateRender ? h.globalTime(0) : -1 / 0,
|
|
1333
1333
|
t: h
|
|
@@ -1336,32 +1336,32 @@ var It = [], ye = {}, bn = [], Si = 0, wn = 0, ze = function(t) {
|
|
|
1336
1336
|
return l.g - h.g || -1 / 0;
|
|
1337
1337
|
}).forEach(function(h) {
|
|
1338
1338
|
return h.t.revert(i);
|
|
1339
|
-
}),
|
|
1340
|
-
f = n.data[
|
|
1339
|
+
}), u = n.data.length; u--; )
|
|
1340
|
+
f = n.data[u], f instanceof q ? f.data !== "nested" && (f.scrollTrigger && f.scrollTrigger.revert(), f.kill()) : !(f instanceof X) && f.revert && f.revert(i);
|
|
1341
1341
|
n._r.forEach(function(h) {
|
|
1342
1342
|
return h(i, n);
|
|
1343
1343
|
}), n.isReverted = !0;
|
|
1344
|
-
}() : this.data.forEach(function(
|
|
1345
|
-
return
|
|
1344
|
+
}() : this.data.forEach(function(o) {
|
|
1345
|
+
return o.kill && o.kill();
|
|
1346
1346
|
}), this.clear(), r)
|
|
1347
|
-
for (var s =
|
|
1348
|
-
|
|
1347
|
+
for (var s = Qt.length; s--; )
|
|
1348
|
+
Qt[s].id === this.id && Qt.splice(s, 1);
|
|
1349
1349
|
}, t.revert = function(i) {
|
|
1350
1350
|
this.kill(i || {});
|
|
1351
|
-
},
|
|
1352
|
-
}(),
|
|
1353
|
-
function
|
|
1354
|
-
this.contexts = [], this.scope = e,
|
|
1351
|
+
}, a;
|
|
1352
|
+
}(), Vs = /* @__PURE__ */ function() {
|
|
1353
|
+
function a(e) {
|
|
1354
|
+
this.contexts = [], this.scope = e, z && z.data.push(this);
|
|
1355
1355
|
}
|
|
1356
|
-
var t =
|
|
1356
|
+
var t = a.prototype;
|
|
1357
1357
|
return t.add = function(i, r, n) {
|
|
1358
|
-
|
|
1358
|
+
St(i) || (i = {
|
|
1359
1359
|
matches: i
|
|
1360
1360
|
});
|
|
1361
|
-
var s = new
|
|
1362
|
-
|
|
1361
|
+
var s = new Tn(0, n || this.scope), o = s.conditions = {}, u, f, h;
|
|
1362
|
+
z && !s.selector && (s.selector = z.selector), this.contexts.push(s), r = s.add("onMatch", r), s.queries = i;
|
|
1363
1363
|
for (f in i)
|
|
1364
|
-
f === "all" ? h = 1 : (
|
|
1364
|
+
f === "all" ? h = 1 : (u = Tt.matchMedia(i[f]), u && (Qt.indexOf(s) < 0 && Qt.push(s), (o[f] = u.matches) && (h = 1), u.addListener ? u.addListener(Ci) : u.addEventListener("change", Ci)));
|
|
1365
1365
|
return h && r(s, function(l) {
|
|
1366
1366
|
return s.add(null, l);
|
|
1367
1367
|
}), this;
|
|
@@ -1371,32 +1371,32 @@ var It = [], ye = {}, bn = [], Si = 0, wn = 0, ze = function(t) {
|
|
|
1371
1371
|
this.contexts.forEach(function(r) {
|
|
1372
1372
|
return r.kill(i, !0);
|
|
1373
1373
|
});
|
|
1374
|
-
},
|
|
1375
|
-
}(),
|
|
1374
|
+
}, a;
|
|
1375
|
+
}(), Ze = {
|
|
1376
1376
|
registerPlugin: function() {
|
|
1377
1377
|
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
1378
1378
|
e[i] = arguments[i];
|
|
1379
1379
|
e.forEach(function(r) {
|
|
1380
|
-
return
|
|
1380
|
+
return on(r);
|
|
1381
1381
|
});
|
|
1382
1382
|
},
|
|
1383
1383
|
timeline: function(t) {
|
|
1384
1384
|
return new q(t);
|
|
1385
1385
|
},
|
|
1386
1386
|
getTweensOf: function(t, e) {
|
|
1387
|
-
return
|
|
1387
|
+
return I.getTweensOf(t, e);
|
|
1388
1388
|
},
|
|
1389
1389
|
getProperty: function(t, e, i, r) {
|
|
1390
|
-
|
|
1391
|
-
var n =
|
|
1392
|
-
return i === "native" && (i = ""), t && (e ? s((
|
|
1393
|
-
return s((
|
|
1390
|
+
$(t) && (t = gt(t)[0]);
|
|
1391
|
+
var n = Gt(t || {}).get, s = i ? Gr : qr;
|
|
1392
|
+
return i === "native" && (i = ""), t && (e ? s((ot[e] && ot[e].get || n)(t, e, i, r)) : function(o, u, f) {
|
|
1393
|
+
return s((ot[o] && ot[o].get || n)(t, o, u, f));
|
|
1394
1394
|
});
|
|
1395
1395
|
},
|
|
1396
1396
|
quickSetter: function(t, e, i) {
|
|
1397
|
-
if (t =
|
|
1397
|
+
if (t = gt(t), t.length > 1) {
|
|
1398
1398
|
var r = t.map(function(h) {
|
|
1399
|
-
return
|
|
1399
|
+
return nt.quickSetter(h, e, i);
|
|
1400
1400
|
}), n = r.length;
|
|
1401
1401
|
return function(h) {
|
|
1402
1402
|
for (var l = n; l--; )
|
|
@@ -1404,168 +1404,168 @@ var It = [], ye = {}, bn = [], Si = 0, wn = 0, ze = function(t) {
|
|
|
1404
1404
|
};
|
|
1405
1405
|
}
|
|
1406
1406
|
t = t[0] || {};
|
|
1407
|
-
var s =
|
|
1407
|
+
var s = ot[e], o = Gt(t), u = o.harness && (o.harness.aliases || {})[e] || e, f = s ? function(h) {
|
|
1408
1408
|
var l = new s();
|
|
1409
|
-
|
|
1410
|
-
} :
|
|
1409
|
+
re._pt = 0, l.init(t, i ? h + i : h, re, 0, [t]), l.render(1, l), re._pt && Hi(1, re);
|
|
1410
|
+
} : o.set(t, u);
|
|
1411
1411
|
return s ? f : function(h) {
|
|
1412
|
-
return f(t,
|
|
1412
|
+
return f(t, u, i ? h + i : h, o, 1);
|
|
1413
1413
|
};
|
|
1414
1414
|
},
|
|
1415
1415
|
quickTo: function(t, e, i) {
|
|
1416
|
-
var r, n =
|
|
1417
|
-
return n.resetTo(e,
|
|
1416
|
+
var r, n = nt.to(t, lt((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(u, f, h) {
|
|
1417
|
+
return n.resetTo(e, u, f, h);
|
|
1418
1418
|
};
|
|
1419
1419
|
return s.tween = n, s;
|
|
1420
1420
|
},
|
|
1421
1421
|
isTweening: function(t) {
|
|
1422
|
-
return
|
|
1422
|
+
return I.getTweensOf(t, !0).length > 0;
|
|
1423
1423
|
},
|
|
1424
1424
|
defaults: function(t) {
|
|
1425
|
-
return t && t.ease && (t.ease =
|
|
1425
|
+
return t && t.ease && (t.ease = jt(t.ease, he.ease)), ar(he, t || {});
|
|
1426
1426
|
},
|
|
1427
1427
|
config: function(t) {
|
|
1428
|
-
return
|
|
1428
|
+
return ar(ut, t || {});
|
|
1429
1429
|
},
|
|
1430
1430
|
registerEffect: function(t) {
|
|
1431
1431
|
var e = t.name, i = t.effect, r = t.plugins, n = t.defaults, s = t.extendTimeline;
|
|
1432
|
-
(r || "").split(",").forEach(function(
|
|
1433
|
-
return
|
|
1434
|
-
}),
|
|
1435
|
-
return i(
|
|
1436
|
-
}, s && (q.prototype[e] = function(
|
|
1437
|
-
return this.add(
|
|
1432
|
+
(r || "").split(",").forEach(function(o) {
|
|
1433
|
+
return o && !ot[o] && !ht[o] && Se(e + " effect requires " + o + " plugin.");
|
|
1434
|
+
}), ai[e] = function(o, u, f) {
|
|
1435
|
+
return i(gt(o), lt(u || {}, n), f);
|
|
1436
|
+
}, s && (q.prototype[e] = function(o, u, f) {
|
|
1437
|
+
return this.add(ai[e](o, St(u) ? u : (f = u) && {}, this), f);
|
|
1438
1438
|
});
|
|
1439
1439
|
},
|
|
1440
1440
|
registerEase: function(t, e) {
|
|
1441
|
-
|
|
1441
|
+
A[t] = jt(e);
|
|
1442
1442
|
},
|
|
1443
1443
|
parseEase: function(t, e) {
|
|
1444
|
-
return arguments.length ?
|
|
1444
|
+
return arguments.length ? jt(t, e) : A;
|
|
1445
1445
|
},
|
|
1446
1446
|
getById: function(t) {
|
|
1447
|
-
return
|
|
1447
|
+
return I.getById(t);
|
|
1448
1448
|
},
|
|
1449
1449
|
exportRoot: function(t, e) {
|
|
1450
1450
|
t === void 0 && (t = {});
|
|
1451
1451
|
var i = new q(t), r, n;
|
|
1452
|
-
for (i.smoothChildTiming =
|
|
1453
|
-
n = r._next, (e || !(!r._dur && r instanceof
|
|
1454
|
-
return
|
|
1452
|
+
for (i.smoothChildTiming = tt(t.smoothChildTiming), I.remove(i), i._dp = 0, i._time = i._tTime = I._time, r = I._first; r; )
|
|
1453
|
+
n = r._next, (e || !(!r._dur && r instanceof X && r.vars.onComplete === r._targets[0])) && bt(i, r, r._start - r._delay), r = n;
|
|
1454
|
+
return bt(I, i, 0), i;
|
|
1455
1455
|
},
|
|
1456
1456
|
context: function(t, e) {
|
|
1457
|
-
return t ? new
|
|
1457
|
+
return t ? new Tn(t, e) : z;
|
|
1458
1458
|
},
|
|
1459
1459
|
matchMedia: function(t) {
|
|
1460
|
-
return new
|
|
1460
|
+
return new Vs(t);
|
|
1461
1461
|
},
|
|
1462
1462
|
matchMediaRefresh: function() {
|
|
1463
|
-
return
|
|
1463
|
+
return Qt.forEach(function(t) {
|
|
1464
1464
|
var e = t.conditions, i, r;
|
|
1465
1465
|
for (r in e)
|
|
1466
1466
|
e[r] && (e[r] = !1, i = 1);
|
|
1467
1467
|
i && t.revert();
|
|
1468
|
-
}) ||
|
|
1468
|
+
}) || Ci();
|
|
1469
1469
|
},
|
|
1470
1470
|
addEventListener: function(t, e) {
|
|
1471
|
-
var i =
|
|
1471
|
+
var i = Ue[t] || (Ue[t] = []);
|
|
1472
1472
|
~i.indexOf(e) || i.push(e);
|
|
1473
1473
|
},
|
|
1474
1474
|
removeEventListener: function(t, e) {
|
|
1475
|
-
var i =
|
|
1475
|
+
var i = Ue[t], r = i && i.indexOf(e);
|
|
1476
1476
|
r >= 0 && i.splice(r, 1);
|
|
1477
1477
|
},
|
|
1478
1478
|
utils: {
|
|
1479
|
-
wrap:
|
|
1480
|
-
wrapYoyo:
|
|
1481
|
-
distribute:
|
|
1482
|
-
random:
|
|
1483
|
-
snap:
|
|
1484
|
-
normalize:
|
|
1485
|
-
getUnit:
|
|
1486
|
-
clamp:
|
|
1487
|
-
splitColor:
|
|
1488
|
-
toArray:
|
|
1489
|
-
selector:
|
|
1490
|
-
mapRange:
|
|
1491
|
-
pipe:
|
|
1492
|
-
unitize:
|
|
1493
|
-
interpolate:
|
|
1494
|
-
shuffle:
|
|
1479
|
+
wrap: ys,
|
|
1480
|
+
wrapYoyo: xs,
|
|
1481
|
+
distribute: Jr,
|
|
1482
|
+
random: en,
|
|
1483
|
+
snap: tn,
|
|
1484
|
+
normalize: ms,
|
|
1485
|
+
getUnit: j,
|
|
1486
|
+
clamp: cs,
|
|
1487
|
+
splitColor: an,
|
|
1488
|
+
toArray: gt,
|
|
1489
|
+
selector: Pi,
|
|
1490
|
+
mapRange: nn,
|
|
1491
|
+
pipe: ps,
|
|
1492
|
+
unitize: gs,
|
|
1493
|
+
interpolate: vs,
|
|
1494
|
+
shuffle: Kr
|
|
1495
1495
|
},
|
|
1496
|
-
install:
|
|
1497
|
-
effects:
|
|
1498
|
-
ticker:
|
|
1496
|
+
install: Vr,
|
|
1497
|
+
effects: ai,
|
|
1498
|
+
ticker: at,
|
|
1499
1499
|
updateRoot: q.updateRoot,
|
|
1500
|
-
plugins:
|
|
1501
|
-
globalTimeline:
|
|
1500
|
+
plugins: ot,
|
|
1501
|
+
globalTimeline: I,
|
|
1502
1502
|
core: {
|
|
1503
|
-
PropTween:
|
|
1504
|
-
globals:
|
|
1505
|
-
Tween:
|
|
1503
|
+
PropTween: it,
|
|
1504
|
+
globals: Yr,
|
|
1505
|
+
Tween: X,
|
|
1506
1506
|
Timeline: q,
|
|
1507
|
-
Animation:
|
|
1508
|
-
getCache:
|
|
1509
|
-
_removeLinkedListItem:
|
|
1507
|
+
Animation: ke,
|
|
1508
|
+
getCache: Gt,
|
|
1509
|
+
_removeLinkedListItem: ii,
|
|
1510
1510
|
reverting: function() {
|
|
1511
|
-
return
|
|
1511
|
+
return G;
|
|
1512
1512
|
},
|
|
1513
1513
|
context: function(t) {
|
|
1514
|
-
return t &&
|
|
1514
|
+
return t && z && (z.data.push(t), t._ctx = z), z;
|
|
1515
1515
|
},
|
|
1516
1516
|
suppressOverwrites: function(t) {
|
|
1517
|
-
return
|
|
1517
|
+
return Ii = t;
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
1520
|
};
|
|
1521
|
-
|
|
1522
|
-
return
|
|
1521
|
+
et("to,from,fromTo,delayedCall,set,killTweensOf", function(a) {
|
|
1522
|
+
return Ze[a] = X[a];
|
|
1523
1523
|
});
|
|
1524
|
-
|
|
1525
|
-
|
|
1524
|
+
at.add(q.updateRoot);
|
|
1525
|
+
re = Ze.to({}, {
|
|
1526
1526
|
duration: 0
|
|
1527
1527
|
});
|
|
1528
|
-
var
|
|
1528
|
+
var Ys = function(t, e) {
|
|
1529
1529
|
for (var i = t._pt; i && i.p !== e && i.op !== e && i.fp !== e; )
|
|
1530
1530
|
i = i._next;
|
|
1531
1531
|
return i;
|
|
1532
|
-
},
|
|
1532
|
+
}, Xs = function(t, e) {
|
|
1533
1533
|
var i = t._targets, r, n, s;
|
|
1534
1534
|
for (r in e)
|
|
1535
1535
|
for (n = i.length; n--; )
|
|
1536
|
-
s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s =
|
|
1537
|
-
},
|
|
1536
|
+
s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s = Ys(s, r)), s && s.modifier && s.modifier(e[r], t, i[n], r));
|
|
1537
|
+
}, _i = function(t, e) {
|
|
1538
1538
|
return {
|
|
1539
1539
|
name: t,
|
|
1540
1540
|
headless: 1,
|
|
1541
1541
|
rawVars: 1,
|
|
1542
1542
|
//don't pre-process function-based values or "random()" strings.
|
|
1543
1543
|
init: function(r, n, s) {
|
|
1544
|
-
s._onInit = function(
|
|
1545
|
-
var
|
|
1546
|
-
if (
|
|
1547
|
-
return
|
|
1548
|
-
}), n =
|
|
1549
|
-
|
|
1544
|
+
s._onInit = function(o) {
|
|
1545
|
+
var u, f;
|
|
1546
|
+
if ($(n) && (u = {}, et(n, function(h) {
|
|
1547
|
+
return u[h] = 1;
|
|
1548
|
+
}), n = u), e) {
|
|
1549
|
+
u = {};
|
|
1550
1550
|
for (f in n)
|
|
1551
|
-
|
|
1552
|
-
n =
|
|
1551
|
+
u[f] = e(n[f]);
|
|
1552
|
+
n = u;
|
|
1553
1553
|
}
|
|
1554
|
-
|
|
1554
|
+
Xs(o, n);
|
|
1555
1555
|
};
|
|
1556
1556
|
}
|
|
1557
1557
|
};
|
|
1558
|
-
},
|
|
1558
|
+
}, nt = Ze.registerPlugin({
|
|
1559
1559
|
name: "attr",
|
|
1560
1560
|
init: function(t, e, i, r, n) {
|
|
1561
|
-
var s,
|
|
1561
|
+
var s, o, u;
|
|
1562
1562
|
this.tween = i;
|
|
1563
1563
|
for (s in e)
|
|
1564
|
-
|
|
1564
|
+
u = t.getAttribute(s) || "", o = this.add(t, "setAttribute", (u || 0) + "", e[s], r, n, 0, 0, s), o.op = s, o.b = u, this._props.push(s);
|
|
1565
1565
|
},
|
|
1566
1566
|
render: function(t, e) {
|
|
1567
1567
|
for (var i = e._pt; i; )
|
|
1568
|
-
|
|
1568
|
+
G ? i.set(i.t, i.p, i.b, i) : i.r(t, i.d), i = i._next;
|
|
1569
1569
|
}
|
|
1570
1570
|
}, {
|
|
1571
1571
|
name: "endArray",
|
|
@@ -1574,11 +1574,11 @@ var Sn = function(t, e) {
|
|
|
1574
1574
|
for (var i = e.length; i--; )
|
|
1575
1575
|
this.add(t, i, t[i] || 0, e[i], 0, 0, 0, 0, 0, 1);
|
|
1576
1576
|
}
|
|
1577
|
-
},
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
var
|
|
1577
|
+
}, _i("roundProps", Si), _i("modifiers"), _i("snap", tn)) || Ze;
|
|
1578
|
+
X.version = q.version = nt.version = "3.13.0";
|
|
1579
|
+
Br = 1;
|
|
1580
|
+
Vi() && de();
|
|
1581
|
+
var Us = A.Power0, $s = A.Power1, qs = A.Power2, Gs = A.Power3, Ws = A.Power4, js = A.Linear, Qs = A.Quad, Zs = A.Cubic, Hs = A.Quart, Ks = A.Quint, Js = A.Strong, to = A.Elastic, eo = A.Back, io = A.SteppedEase, ro = A.Bounce, no = A.Sine, so = A.Expo, oo = A.Circ;
|
|
1582
1582
|
/*!
|
|
1583
1583
|
* CSSPlugin 3.13.0
|
|
1584
1584
|
* https://gsap.com
|
|
@@ -1587,195 +1587,195 @@ var kn = O.Power0, Cn = O.Power1, Mn = O.Power2, Dn = O.Power3, An = O.Power4, R
|
|
|
1587
1587
|
* Subject to the terms at https://gsap.com/standard-license
|
|
1588
1588
|
* @author: Jack Doyle, jack@greensock.com
|
|
1589
1589
|
*/
|
|
1590
|
-
var
|
|
1590
|
+
var cr, Lt, ae, Ki, qt, dr, Ji, ao = function() {
|
|
1591
1591
|
return typeof window < "u";
|
|
1592
|
-
},
|
|
1592
|
+
}, Dt = {}, $t = 180 / Math.PI, fe = Math.PI / 180, te = Math.atan2, pr = 1e8, tr = /([A-Z])/g, fo = /(left|right|width|margin|padding|x)/i, uo = /[\s,\(]\S/, wt = {
|
|
1593
1593
|
autoAlpha: "opacity,visibility",
|
|
1594
1594
|
scale: "scaleX,scaleY",
|
|
1595
1595
|
alpha: "opacity"
|
|
1596
|
-
},
|
|
1596
|
+
}, Oi = function(t, e) {
|
|
1597
1597
|
return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
|
|
1598
|
-
},
|
|
1598
|
+
}, ho = function(t, e) {
|
|
1599
1599
|
return e.set(e.t, e.p, t === 1 ? e.e : Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
|
|
1600
|
-
},
|
|
1600
|
+
}, lo = function(t, e) {
|
|
1601
1601
|
return e.set(e.t, e.p, t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
|
|
1602
|
-
},
|
|
1602
|
+
}, _o = function(t, e) {
|
|
1603
1603
|
var i = e.s + e.c * t;
|
|
1604
1604
|
e.set(e.t, e.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + e.u, e);
|
|
1605
|
-
},
|
|
1605
|
+
}, bn = function(t, e) {
|
|
1606
1606
|
return e.set(e.t, e.p, t ? e.e : e.b, e);
|
|
1607
|
-
},
|
|
1607
|
+
}, wn = function(t, e) {
|
|
1608
1608
|
return e.set(e.t, e.p, t !== 1 ? e.b : e.e, e);
|
|
1609
|
-
},
|
|
1609
|
+
}, co = function(t, e, i) {
|
|
1610
1610
|
return t.style[e] = i;
|
|
1611
|
-
},
|
|
1611
|
+
}, po = function(t, e, i) {
|
|
1612
1612
|
return t.style.setProperty(e, i);
|
|
1613
|
-
},
|
|
1613
|
+
}, go = function(t, e, i) {
|
|
1614
1614
|
return t._gsap[e] = i;
|
|
1615
|
-
},
|
|
1615
|
+
}, mo = function(t, e, i) {
|
|
1616
1616
|
return t._gsap.scaleX = t._gsap.scaleY = i;
|
|
1617
|
-
},
|
|
1617
|
+
}, yo = function(t, e, i, r, n) {
|
|
1618
1618
|
var s = t._gsap;
|
|
1619
1619
|
s.scaleX = s.scaleY = i, s.renderTransform(n, s);
|
|
1620
|
-
},
|
|
1620
|
+
}, xo = function(t, e, i, r, n) {
|
|
1621
1621
|
var s = t._gsap;
|
|
1622
1622
|
s[e] = i, s.renderTransform(n, s);
|
|
1623
|
-
},
|
|
1623
|
+
}, B = "transform", rt = B + "Origin", vo = function a(t, e) {
|
|
1624
1624
|
var i = this, r = this.target, n = r.style, s = r._gsap;
|
|
1625
|
-
if (t in
|
|
1625
|
+
if (t in Dt && n) {
|
|
1626
1626
|
if (this.tfm = this.tfm || {}, t !== "transform")
|
|
1627
|
-
t =
|
|
1628
|
-
return i.tfm[
|
|
1629
|
-
}) : this.tfm[t] = s.x ? s[t] :
|
|
1627
|
+
t = wt[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(o) {
|
|
1628
|
+
return i.tfm[o] = Ct(r, o);
|
|
1629
|
+
}) : this.tfm[t] = s.x ? s[t] : Ct(r, t), t === rt && (this.tfm.zOrigin = s.zOrigin);
|
|
1630
1630
|
else
|
|
1631
|
-
return
|
|
1632
|
-
return
|
|
1631
|
+
return wt.transform.split(",").forEach(function(o) {
|
|
1632
|
+
return a.call(i, o, e);
|
|
1633
1633
|
});
|
|
1634
|
-
if (this.props.indexOf(
|
|
1634
|
+
if (this.props.indexOf(B) >= 0)
|
|
1635
1635
|
return;
|
|
1636
|
-
s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(
|
|
1636
|
+
s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(rt, e, "")), t = B;
|
|
1637
1637
|
}
|
|
1638
1638
|
(n || e) && this.props.push(t, e, n[t]);
|
|
1639
|
-
},
|
|
1639
|
+
}, Pn = function(t) {
|
|
1640
1640
|
t.translate && (t.removeProperty("translate"), t.removeProperty("scale"), t.removeProperty("rotate"));
|
|
1641
|
-
},
|
|
1641
|
+
}, To = function() {
|
|
1642
1642
|
var t = this.props, e = this.target, i = e.style, r = e._gsap, n, s;
|
|
1643
1643
|
for (n = 0; n < t.length; n += 3)
|
|
1644
|
-
t[n + 1] ? t[n + 1] === 2 ? e[t[n]](t[n + 2]) : e[t[n]] = t[n + 2] : t[n + 2] ? i[t[n]] = t[n + 2] : i.removeProperty(t[n].substr(0, 2) === "--" ? t[n] : t[n].replace(
|
|
1644
|
+
t[n + 1] ? t[n + 1] === 2 ? e[t[n]](t[n + 2]) : e[t[n]] = t[n + 2] : t[n + 2] ? i[t[n]] = t[n + 2] : i.removeProperty(t[n].substr(0, 2) === "--" ? t[n] : t[n].replace(tr, "-$1").toLowerCase());
|
|
1645
1645
|
if (this.tfm) {
|
|
1646
1646
|
for (s in this.tfm)
|
|
1647
1647
|
r[s] = this.tfm[s];
|
|
1648
|
-
r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n =
|
|
1648
|
+
r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = Ji(), (!n || !n.isStart) && !i[B] && (Pn(i), r.zOrigin && i[rt] && (i[rt] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
|
|
1649
1649
|
}
|
|
1650
|
-
},
|
|
1650
|
+
}, Sn = function(t, e) {
|
|
1651
1651
|
var i = {
|
|
1652
1652
|
target: t,
|
|
1653
1653
|
props: [],
|
|
1654
|
-
revert:
|
|
1655
|
-
save:
|
|
1654
|
+
revert: To,
|
|
1655
|
+
save: vo
|
|
1656
1656
|
};
|
|
1657
|
-
return t._gsap ||
|
|
1657
|
+
return t._gsap || nt.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(r) {
|
|
1658
1658
|
return i.save(r);
|
|
1659
1659
|
}), i;
|
|
1660
|
-
},
|
|
1661
|
-
var i =
|
|
1662
|
-
return i && i.style ? i :
|
|
1663
|
-
},
|
|
1660
|
+
}, Mn, ki = function(t, e) {
|
|
1661
|
+
var i = Lt.createElementNS ? Lt.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : Lt.createElement(t);
|
|
1662
|
+
return i && i.style ? i : Lt.createElement(t);
|
|
1663
|
+
}, mt = function a(t, e, i) {
|
|
1664
1664
|
var r = getComputedStyle(t);
|
|
1665
|
-
return r[e] || r.getPropertyValue(e.replace(
|
|
1666
|
-
},
|
|
1667
|
-
var r = e ||
|
|
1665
|
+
return r[e] || r.getPropertyValue(e.replace(tr, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && a(t, pe(e) || e, 1) || "";
|
|
1666
|
+
}, gr = "O,Moz,ms,Ms,Webkit".split(","), pe = function(t, e, i) {
|
|
1667
|
+
var r = e || qt, n = r.style, s = 5;
|
|
1668
1668
|
if (t in n && !i)
|
|
1669
1669
|
return t;
|
|
1670
|
-
for (t = t.charAt(0).toUpperCase() + t.substr(1); s-- && !(
|
|
1670
|
+
for (t = t.charAt(0).toUpperCase() + t.substr(1); s-- && !(gr[s] + t in n); )
|
|
1671
1671
|
;
|
|
1672
|
-
return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ?
|
|
1673
|
-
},
|
|
1674
|
-
|
|
1672
|
+
return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? gr[s] : "") + t;
|
|
1673
|
+
}, Ai = function() {
|
|
1674
|
+
ao() && window.document && (cr = window, Lt = cr.document, ae = Lt.documentElement, qt = ki("div") || {
|
|
1675
1675
|
style: {}
|
|
1676
|
-
},
|
|
1677
|
-
},
|
|
1678
|
-
var e = t.ownerSVGElement, i =
|
|
1679
|
-
r.style.display = "block", i.appendChild(r),
|
|
1676
|
+
}, ki("div"), B = pe(B), rt = B + "Origin", qt.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", Mn = !!pe("perspective"), Ji = nt.core.reverting, Ki = 1);
|
|
1677
|
+
}, mr = function(t) {
|
|
1678
|
+
var e = t.ownerSVGElement, i = ki("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = t.cloneNode(!0), n;
|
|
1679
|
+
r.style.display = "block", i.appendChild(r), ae.appendChild(i);
|
|
1680
1680
|
try {
|
|
1681
1681
|
n = r.getBBox();
|
|
1682
1682
|
} catch {
|
|
1683
1683
|
}
|
|
1684
|
-
return i.removeChild(r),
|
|
1685
|
-
},
|
|
1684
|
+
return i.removeChild(r), ae.removeChild(i), n;
|
|
1685
|
+
}, yr = function(t, e) {
|
|
1686
1686
|
for (var i = e.length; i--; )
|
|
1687
1687
|
if (t.hasAttribute(e[i]))
|
|
1688
1688
|
return t.getAttribute(e[i]);
|
|
1689
|
-
},
|
|
1689
|
+
}, Cn = function(t) {
|
|
1690
1690
|
var e, i;
|
|
1691
1691
|
try {
|
|
1692
1692
|
e = t.getBBox();
|
|
1693
1693
|
} catch {
|
|
1694
|
-
e =
|
|
1694
|
+
e = mr(t), i = 1;
|
|
1695
1695
|
}
|
|
1696
|
-
return e && (e.width || e.height) || i || (e =
|
|
1697
|
-
x: +
|
|
1698
|
-
y: +
|
|
1696
|
+
return e && (e.width || e.height) || i || (e = mr(t)), e && !e.width && !e.x && !e.y ? {
|
|
1697
|
+
x: +yr(t, ["x", "cx", "x1"]) || 0,
|
|
1698
|
+
y: +yr(t, ["y", "cy", "y1"]) || 0,
|
|
1699
1699
|
width: 0,
|
|
1700
1700
|
height: 0
|
|
1701
1701
|
} : e;
|
|
1702
|
-
},
|
|
1703
|
-
return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) &&
|
|
1704
|
-
},
|
|
1702
|
+
}, On = function(t) {
|
|
1703
|
+
return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) && Cn(t));
|
|
1704
|
+
}, Kt = function(t, e) {
|
|
1705
1705
|
if (e) {
|
|
1706
1706
|
var i = t.style, r;
|
|
1707
|
-
e in
|
|
1707
|
+
e in Dt && e !== rt && (e = B), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(tr, "-$1").toLowerCase())) : i.removeAttribute(e);
|
|
1708
1708
|
}
|
|
1709
|
-
},
|
|
1710
|
-
var
|
|
1711
|
-
return t._pt =
|
|
1712
|
-
},
|
|
1709
|
+
}, zt = function(t, e, i, r, n, s) {
|
|
1710
|
+
var o = new it(t._pt, e, i, 0, 1, s ? wn : bn);
|
|
1711
|
+
return t._pt = o, o.b = r, o.e = n, t._props.push(i), o;
|
|
1712
|
+
}, xr = {
|
|
1713
1713
|
deg: 1,
|
|
1714
1714
|
rad: 1,
|
|
1715
1715
|
turn: 1
|
|
1716
|
-
},
|
|
1716
|
+
}, bo = {
|
|
1717
1717
|
grid: 1,
|
|
1718
1718
|
flex: 1
|
|
1719
|
-
},
|
|
1720
|
-
var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px",
|
|
1721
|
-
if (r === s || !n ||
|
|
1719
|
+
}, Bt = function a(t, e, i, r) {
|
|
1720
|
+
var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", o = qt.style, u = fo.test(e), f = t.tagName.toLowerCase() === "svg", h = (f ? "client" : "offset") + (u ? "Width" : "Height"), l = 100, c = r === "px", d = r === "%", p, _, g, m;
|
|
1721
|
+
if (r === s || !n || xr[r] || xr[s])
|
|
1722
1722
|
return n;
|
|
1723
|
-
if (s !== "px" && !c && (n =
|
|
1724
|
-
return p =
|
|
1725
|
-
if (
|
|
1726
|
-
return
|
|
1723
|
+
if (s !== "px" && !c && (n = a(t, e, i, "px")), m = t.getCTM && On(t), (d || s === "%") && (Dt[e] || ~e.indexOf("adius")))
|
|
1724
|
+
return p = m ? t.getBBox()[u ? "width" : "height"] : t[h], Y(d ? n / p * l : n / 100 * p);
|
|
1725
|
+
if (o[u ? "width" : "height"] = l + (c ? s : r), _ = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !f ? t : t.parentNode, m && (_ = (t.ownerSVGElement || {}).parentNode), (!_ || _ === Lt || !_.appendChild) && (_ = Lt.body), g = _._gsap, g && d && g.width && u && g.time === at.time && !g.uncache)
|
|
1726
|
+
return Y(n / g.width * l);
|
|
1727
1727
|
if (d && (e === "height" || e === "width")) {
|
|
1728
|
-
var
|
|
1729
|
-
t.style[e] = l + r, p = t[h],
|
|
1728
|
+
var y = t.style[e];
|
|
1729
|
+
t.style[e] = l + r, p = t[h], y ? t.style[e] = y : Kt(t, e);
|
|
1730
1730
|
} else
|
|
1731
|
-
(d || s === "%") && !
|
|
1732
|
-
return
|
|
1733
|
-
},
|
|
1731
|
+
(d || s === "%") && !bo[mt(_, "display")] && (o.position = mt(t, "position")), _ === t && (o.position = "static"), _.appendChild(qt), p = qt[h], _.removeChild(qt), o.position = "absolute";
|
|
1732
|
+
return u && d && (g = Gt(_), g.time = at.time, g.width = _[h]), Y(c ? p * n / l : p && n ? l / p * n : 0);
|
|
1733
|
+
}, Ct = function(t, e, i, r) {
|
|
1734
1734
|
var n;
|
|
1735
|
-
return
|
|
1736
|
-
},
|
|
1735
|
+
return Ki || Ai(), e in wt && e !== "transform" && (e = wt[e], ~e.indexOf(",") && (e = e.split(",")[0])), Dt[e] && e !== "transform" ? (n = De(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : Ke(mt(t, rt)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = He[e] && He[e](t, e, i) || mt(t, e) || Ur(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? Bt(t, e, n, i) + i : n;
|
|
1736
|
+
}, wo = function(t, e, i, r) {
|
|
1737
1737
|
if (!i || i === "none") {
|
|
1738
|
-
var n =
|
|
1739
|
-
s && s !== i ? (e = n, i = s) : e === "borderColor" && (i =
|
|
1738
|
+
var n = pe(e, t, 1), s = n && mt(t, n, 1);
|
|
1739
|
+
s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = mt(t, "borderTopColor"));
|
|
1740
1740
|
}
|
|
1741
|
-
var
|
|
1742
|
-
if (
|
|
1743
|
-
for (; l =
|
|
1744
|
-
|
|
1745
|
-
_next:
|
|
1746
|
-
p:
|
|
1741
|
+
var o = new it(this._pt, t.style, e, 0, 1, xn), u = 0, f = 0, h, l, c, d, p, _, g, m, y, x, T, v;
|
|
1742
|
+
if (o.b = i, o.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = mt(t, r.substring(4, r.indexOf(")")))), r === "auto" && (_ = t.style[e], t.style[e] = r, r = mt(t, e) || r, _ ? t.style[e] = _ : Kt(t, e)), h = [i, r], un(h), i = h[0], r = h[1], c = i.match(ie) || [], v = r.match(ie) || [], v.length) {
|
|
1743
|
+
for (; l = ie.exec(r); )
|
|
1744
|
+
g = l[0], y = r.substring(u, l.index), p ? p = (p + 1) % 5 : (y.substr(-5) === "rgba(" || y.substr(-5) === "hsla(") && (p = 1), g !== (_ = c[f++] || "") && (d = parseFloat(_) || 0, T = _.substr((d + "").length), g.charAt(1) === "=" && (g = oe(d, g) + T), m = parseFloat(g), x = g.substr((m + "").length), u = ie.lastIndex - x.length, x || (x = x || ut.units[e] || T, u === r.length && (r += x, o.e += x)), T !== x && (d = Bt(t, e, _, x) || 0), o._pt = {
|
|
1745
|
+
_next: o._pt,
|
|
1746
|
+
p: y || f === 1 ? y : ",",
|
|
1747
1747
|
//note: SVG spec allows omission of comma/space when a negative sign is wedged between two numbers, like 2.5-5.3 instead of 2.5,-5.3 but when tweening, the negative value may switch to positive, so we insert the comma just in case.
|
|
1748
1748
|
s: d,
|
|
1749
|
-
c:
|
|
1749
|
+
c: m - d,
|
|
1750
1750
|
m: p && p < 4 || e === "zIndex" ? Math.round : 0
|
|
1751
1751
|
});
|
|
1752
|
-
|
|
1752
|
+
o.c = u < r.length ? r.substring(u, r.length) : "";
|
|
1753
1753
|
} else
|
|
1754
|
-
|
|
1755
|
-
return
|
|
1756
|
-
},
|
|
1754
|
+
o.r = e === "display" && r === "none" ? wn : bn;
|
|
1755
|
+
return Fr.test(r) && (o.e = 0), this._pt = o, o;
|
|
1756
|
+
}, vr = {
|
|
1757
1757
|
top: "0%",
|
|
1758
1758
|
bottom: "100%",
|
|
1759
1759
|
left: "0%",
|
|
1760
1760
|
right: "100%",
|
|
1761
1761
|
center: "50%"
|
|
1762
|
-
},
|
|
1762
|
+
}, Po = function(t) {
|
|
1763
1763
|
var e = t.split(" "), i = e[0], r = e[1] || "50%";
|
|
1764
|
-
return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] =
|
|
1765
|
-
},
|
|
1764
|
+
return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = vr[i] || i, e[1] = vr[r] || r, e.join(" ");
|
|
1765
|
+
}, So = function(t, e) {
|
|
1766
1766
|
if (e.tween && e.tween._time === e.tween._dur) {
|
|
1767
|
-
var i = e.t, r = i.style, n = e.u, s = i._gsap,
|
|
1767
|
+
var i = e.t, r = i.style, n = e.u, s = i._gsap, o, u, f;
|
|
1768
1768
|
if (n === "all" || n === !0)
|
|
1769
|
-
r.cssText = "",
|
|
1769
|
+
r.cssText = "", u = 1;
|
|
1770
1770
|
else
|
|
1771
1771
|
for (n = n.split(","), f = n.length; --f > -1; )
|
|
1772
|
-
|
|
1773
|
-
|
|
1772
|
+
o = n[f], Dt[o] && (u = 1, o = o === "transformOrigin" ? rt : B), Kt(i, o);
|
|
1773
|
+
u && (Kt(i, B), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", De(i, 1), s.uncache = 1, Pn(r)));
|
|
1774
1774
|
}
|
|
1775
|
-
},
|
|
1775
|
+
}, He = {
|
|
1776
1776
|
clearProps: function(t, e, i, r, n) {
|
|
1777
1777
|
if (n.data !== "isFromStart") {
|
|
1778
|
-
var s = t._pt = new
|
|
1778
|
+
var s = t._pt = new it(t._pt, e, i, 0, 0, So);
|
|
1779
1779
|
return s.u = r, s.pr = -10, s.tween = n, t._props.push(i), 1;
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
@@ -1842,210 +1842,817 @@ var Oi, Tt, qt, ci, Et, ki, di, Wn = function() {
|
|
|
1842
1842
|
return 1;
|
|
1843
1843
|
}
|
|
1844
1844
|
*/
|
|
1845
|
-
},
|
|
1845
|
+
}, Ae = [1, 0, 0, 1, 0, 0], kn = {}, An = function(t) {
|
|
1846
1846
|
return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
|
|
1847
|
-
},
|
|
1848
|
-
var e =
|
|
1849
|
-
return
|
|
1850
|
-
},
|
|
1851
|
-
var i = t._gsap ||
|
|
1852
|
-
return i.svg && t.getAttribute("transform") ? (
|
|
1853
|
-
},
|
|
1854
|
-
var
|
|
1855
|
-
i ?
|
|
1856
|
-
},
|
|
1857
|
-
var i = t._gsap || new
|
|
1847
|
+
}, Tr = function(t) {
|
|
1848
|
+
var e = mt(t, B);
|
|
1849
|
+
return An(e) ? Ae : e.substr(7).match(Nr).map(Y);
|
|
1850
|
+
}, er = function(t, e) {
|
|
1851
|
+
var i = t._gsap || Gt(t), r = t.style, n = Tr(t), s, o, u, f;
|
|
1852
|
+
return i.svg && t.getAttribute("transform") ? (u = t.transform.baseVal.consolidate().matrix, n = [u.a, u.b, u.c, u.d, u.e, u.f], n.join(",") === "1,0,0,1,0,0" ? Ae : n) : (n === Ae && !t.offsetParent && t !== ae && !i.svg && (u = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (f = 1, o = t.nextElementSibling, ae.appendChild(t)), n = Tr(t), u ? r.display = u : Kt(t, "display"), f && (o ? s.insertBefore(t, o) : s ? s.appendChild(t) : ae.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
|
|
1853
|
+
}, Di = function(t, e, i, r, n, s) {
|
|
1854
|
+
var o = t._gsap, u = n || er(t, !0), f = o.xOrigin || 0, h = o.yOrigin || 0, l = o.xOffset || 0, c = o.yOffset || 0, d = u[0], p = u[1], _ = u[2], g = u[3], m = u[4], y = u[5], x = e.split(" "), T = parseFloat(x[0]) || 0, v = parseFloat(x[1]) || 0, w, P, S, b;
|
|
1855
|
+
i ? u !== Ae && (P = d * g - p * _) && (S = T * (g / P) + v * (-_ / P) + (_ * y - g * m) / P, b = T * (-p / P) + v * (d / P) - (d * y - p * m) / P, T = S, v = b) : (w = Cn(t), T = w.x + (~x[0].indexOf("%") ? T / 100 * w.width : T), v = w.y + (~(x[1] || x[0]).indexOf("%") ? v / 100 * w.height : v)), r || r !== !1 && o.smooth ? (m = T - f, y = v - h, o.xOffset = l + (m * d + y * _) - m, o.yOffset = c + (m * p + y * g) - y) : o.xOffset = o.yOffset = 0, o.xOrigin = T, o.yOrigin = v, o.smooth = !!r, o.origin = e, o.originIsAbsolute = !!i, t.style[rt] = "0px 0px", s && (zt(s, o, "xOrigin", f, T), zt(s, o, "yOrigin", h, v), zt(s, o, "xOffset", l, o.xOffset), zt(s, o, "yOffset", c, o.yOffset)), t.setAttribute("data-svg-origin", T + " " + v);
|
|
1856
|
+
}, De = function(t, e) {
|
|
1857
|
+
var i = t._gsap || new cn(t);
|
|
1858
1858
|
if ("x" in i && !e && !i.uncache)
|
|
1859
1859
|
return i;
|
|
1860
|
-
var r = t.style, n = i.scaleX < 0, s = "px",
|
|
1861
|
-
return h = l = c = _ = m = y = x =
|
|
1862
|
-
},
|
|
1860
|
+
var r = t.style, n = i.scaleX < 0, s = "px", o = "deg", u = getComputedStyle(t), f = mt(t, rt) || "0", h, l, c, d, p, _, g, m, y, x, T, v, w, P, S, b, M, C, O, k, N, E, R, F, W, Yt, Rt, H, vt, _t, K, ct;
|
|
1861
|
+
return h = l = c = _ = g = m = y = x = T = 0, d = p = 1, i.svg = !!(t.getCTM && On(t)), u.translate && ((u.translate !== "none" || u.scale !== "none" || u.rotate !== "none") && (r[B] = (u.translate !== "none" ? "translate3d(" + (u.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (u.rotate !== "none" ? "rotate(" + u.rotate + ") " : "") + (u.scale !== "none" ? "scale(" + u.scale.split(" ").join(",") + ") " : "") + (u[B] !== "none" ? u[B] : "")), r.scale = r.rotate = r.translate = "none"), P = er(t, i.svg), i.svg && (i.uncache ? (W = t.getBBox(), f = i.xOrigin - W.x + "px " + (i.yOrigin - W.y) + "px", F = "") : F = !e && t.getAttribute("data-svg-origin"), Di(t, F || f, !!F || i.originIsAbsolute, i.smooth !== !1, P)), v = i.xOrigin || 0, w = i.yOrigin || 0, P !== Ae && (C = P[0], O = P[1], k = P[2], N = P[3], h = E = P[4], l = R = P[5], P.length === 6 ? (d = Math.sqrt(C * C + O * O), p = Math.sqrt(N * N + k * k), _ = C || O ? te(O, C) * $t : 0, y = k || N ? te(k, N) * $t + _ : 0, y && (p *= Math.abs(Math.cos(y * fe))), i.svg && (h -= v - (v * C + w * k), l -= w - (v * O + w * N))) : (ct = P[6], _t = P[7], Rt = P[8], H = P[9], vt = P[10], K = P[11], h = P[12], l = P[13], c = P[14], S = te(ct, vt), g = S * $t, S && (b = Math.cos(-S), M = Math.sin(-S), F = E * b + Rt * M, W = R * b + H * M, Yt = ct * b + vt * M, Rt = E * -M + Rt * b, H = R * -M + H * b, vt = ct * -M + vt * b, K = _t * -M + K * b, E = F, R = W, ct = Yt), S = te(-k, vt), m = S * $t, S && (b = Math.cos(-S), M = Math.sin(-S), F = C * b - Rt * M, W = O * b - H * M, Yt = k * b - vt * M, K = N * M + K * b, C = F, O = W, k = Yt), S = te(O, C), _ = S * $t, S && (b = Math.cos(S), M = Math.sin(S), F = C * b + O * M, W = E * b + R * M, O = O * b - C * M, R = R * b - E * M, C = F, E = W), g && Math.abs(g) + Math.abs(_) > 359.9 && (g = _ = 0, m = 180 - m), d = Y(Math.sqrt(C * C + O * O + k * k)), p = Y(Math.sqrt(R * R + ct * ct)), S = te(E, R), y = Math.abs(S) > 2e-4 ? S * $t : 0, T = K ? 1 / (K < 0 ? -K : K) : 0), i.svg && (F = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !An(mt(t, B)), F && t.setAttribute("transform", F))), Math.abs(y) > 90 && Math.abs(y) < 270 && (n ? (d *= -1, y += _ <= 0 ? 180 : -180, _ += _ <= 0 ? 180 : -180) : (p *= -1, y += y <= 0 ? 180 : -180)), e = e || i.uncache, i.x = h - ((i.xPercent = h && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-h) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = l - ((i.yPercent = l && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-l) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = c + s, i.scaleX = Y(d), i.scaleY = Y(p), i.rotation = Y(_) + o, i.rotationX = Y(g) + o, i.rotationY = Y(m) + o, i.skewX = y + o, i.skewY = x + o, i.transformPerspective = T + s, (i.zOrigin = parseFloat(f.split(" ")[2]) || !e && i.zOrigin || 0) && (r[rt] = Ke(f)), i.xOffset = i.yOffset = 0, i.force3D = ut.force3D, i.renderTransform = i.svg ? Co : Mn ? Dn : Mo, i.uncache = 0, i;
|
|
1862
|
+
}, Ke = function(t) {
|
|
1863
1863
|
return (t = t.split(" "))[0] + " " + t[1];
|
|
1864
|
-
},
|
|
1865
|
-
var r =
|
|
1866
|
-
return
|
|
1867
|
-
},
|
|
1868
|
-
e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0,
|
|
1869
|
-
},
|
|
1870
|
-
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x,
|
|
1871
|
-
if (
|
|
1872
|
-
var w = parseFloat(h) *
|
|
1873
|
-
w = parseFloat(l) *
|
|
1864
|
+
}, ci = function(t, e, i) {
|
|
1865
|
+
var r = j(e);
|
|
1866
|
+
return Y(parseFloat(e) + parseFloat(Bt(t, "x", i + "px", r))) + r;
|
|
1867
|
+
}, Mo = function(t, e) {
|
|
1868
|
+
e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, Dn(t, e);
|
|
1869
|
+
}, Xt = "0deg", ge = "0px", Ut = ") ", Dn = function(t, e) {
|
|
1870
|
+
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, o = i.y, u = i.z, f = i.rotation, h = i.rotationY, l = i.rotationX, c = i.skewX, d = i.skewY, p = i.scaleX, _ = i.scaleY, g = i.transformPerspective, m = i.force3D, y = i.target, x = i.zOrigin, T = "", v = m === "auto" && t && t !== 1 || m === !0;
|
|
1871
|
+
if (x && (l !== Xt || h !== Xt)) {
|
|
1872
|
+
var w = parseFloat(h) * fe, P = Math.sin(w), S = Math.cos(w), b;
|
|
1873
|
+
w = parseFloat(l) * fe, b = Math.cos(w), s = ci(y, s, P * b * -x), o = ci(y, o, -Math.sin(w) * -x), u = ci(y, u, S * b * -x + x);
|
|
1874
1874
|
}
|
|
1875
|
-
|
|
1876
|
-
},
|
|
1877
|
-
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x,
|
|
1878
|
-
|
|
1879
|
-
},
|
|
1880
|
-
var s = 360,
|
|
1881
|
-
return
|
|
1882
|
-
},
|
|
1875
|
+
g !== ge && (T += "perspective(" + g + Ut), (r || n) && (T += "translate(" + r + "%, " + n + "%) "), (v || s !== ge || o !== ge || u !== ge) && (T += u !== ge || v ? "translate3d(" + s + ", " + o + ", " + u + ") " : "translate(" + s + ", " + o + Ut), f !== Xt && (T += "rotate(" + f + Ut), h !== Xt && (T += "rotateY(" + h + Ut), l !== Xt && (T += "rotateX(" + l + Ut), (c !== Xt || d !== Xt) && (T += "skew(" + c + ", " + d + Ut), (p !== 1 || _ !== 1) && (T += "scale(" + p + ", " + _ + Ut), y.style[B] = T || "translate(0, 0)";
|
|
1876
|
+
}, Co = function(t, e) {
|
|
1877
|
+
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, o = i.y, u = i.rotation, f = i.skewX, h = i.skewY, l = i.scaleX, c = i.scaleY, d = i.target, p = i.xOrigin, _ = i.yOrigin, g = i.xOffset, m = i.yOffset, y = i.forceCSS, x = parseFloat(s), T = parseFloat(o), v, w, P, S, b;
|
|
1878
|
+
u = parseFloat(u), f = parseFloat(f), h = parseFloat(h), h && (h = parseFloat(h), f += h, u += h), u || f ? (u *= fe, f *= fe, v = Math.cos(u) * l, w = Math.sin(u) * l, P = Math.sin(u - f) * -c, S = Math.cos(u - f) * c, f && (h *= fe, b = Math.tan(f - h), b = Math.sqrt(1 + b * b), P *= b, S *= b, h && (b = Math.tan(h), b = Math.sqrt(1 + b * b), v *= b, w *= b)), v = Y(v), w = Y(w), P = Y(P), S = Y(S)) : (v = l, S = c, w = P = 0), (x && !~(s + "").indexOf("px") || T && !~(o + "").indexOf("px")) && (x = Bt(d, "x", s, "px"), T = Bt(d, "y", o, "px")), (p || _ || g || m) && (x = Y(x + p - (p * v + _ * P) + g), T = Y(T + _ - (p * w + _ * S) + m)), (r || n) && (b = d.getBBox(), x = Y(x + r / 100 * b.width), T = Y(T + n / 100 * b.height)), b = "matrix(" + v + "," + w + "," + P + "," + S + "," + x + "," + T + ")", d.setAttribute("transform", b), y && (d.style[B] = b);
|
|
1879
|
+
}, Oo = function(t, e, i, r, n) {
|
|
1880
|
+
var s = 360, o = $(n), u = parseFloat(n) * (o && ~n.indexOf("rad") ? $t : 1), f = u - r, h = r + f + "deg", l, c;
|
|
1881
|
+
return o && (l = n.split("_")[1], l === "short" && (f %= s, f !== f % (s / 2) && (f += f < 0 ? s : -360)), l === "cw" && f < 0 ? f = (f + s * pr) % s - ~~(f / s) * s : l === "ccw" && f > 0 && (f = (f - s * pr) % s - ~~(f / s) * s)), t._pt = c = new it(t._pt, e, i, r, f, ho), c.e = h, c.u = "deg", t._props.push(i), c;
|
|
1882
|
+
}, br = function(t, e) {
|
|
1883
1883
|
for (var i in e)
|
|
1884
1884
|
t[i] = e[i];
|
|
1885
1885
|
return t;
|
|
1886
|
-
},
|
|
1887
|
-
var r =
|
|
1888
|
-
r.svg ? (f = i.getAttribute("transform"), i.setAttribute("transform", ""), s[
|
|
1889
|
-
for (
|
|
1890
|
-
f = r[
|
|
1891
|
-
|
|
1886
|
+
}, ko = function(t, e, i) {
|
|
1887
|
+
var r = br({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, o, u, f, h, l, c, d, p;
|
|
1888
|
+
r.svg ? (f = i.getAttribute("transform"), i.setAttribute("transform", ""), s[B] = e, o = De(i, 1), Kt(i, B), i.setAttribute("transform", f)) : (f = getComputedStyle(i)[B], s[B] = e, o = De(i, 1), s[B] = f);
|
|
1889
|
+
for (u in Dt)
|
|
1890
|
+
f = r[u], h = o[u], f !== h && n.indexOf(u) < 0 && (d = j(f), p = j(h), l = d !== p ? Bt(i, u, f, p) : parseFloat(f), c = parseFloat(h), t._pt = new it(t._pt, o, u, l, c - l, Oi), t._pt.u = p || 0, t._props.push(u));
|
|
1891
|
+
br(o, r);
|
|
1892
1892
|
};
|
|
1893
|
-
|
|
1894
|
-
var e = "Top", i = "Right", r = "Bottom", n = "Left", s = (t < 3 ? [e, i, r, n] : [e + n, e + i, r + i, r + n]).map(function(
|
|
1895
|
-
return t < 2 ?
|
|
1893
|
+
et("padding,margin,Width,Radius", function(a, t) {
|
|
1894
|
+
var e = "Top", i = "Right", r = "Bottom", n = "Left", s = (t < 3 ? [e, i, r, n] : [e + n, e + i, r + i, r + n]).map(function(o) {
|
|
1895
|
+
return t < 2 ? a + o : "border" + o + a;
|
|
1896
1896
|
});
|
|
1897
|
-
|
|
1897
|
+
He[t > 1 ? "border" + a : a] = function(o, u, f, h, l) {
|
|
1898
1898
|
var c, d;
|
|
1899
1899
|
if (arguments.length < 4)
|
|
1900
1900
|
return c = s.map(function(p) {
|
|
1901
|
-
return
|
|
1901
|
+
return Ct(o, p, f);
|
|
1902
1902
|
}), d = c.join(" "), d.split(c[0]).length === 5 ? c[0] : d;
|
|
1903
1903
|
c = (h + "").split(" "), d = {}, s.forEach(function(p, _) {
|
|
1904
1904
|
return d[p] = c[_] = c[_] || c[(_ - 1) / 2 | 0];
|
|
1905
|
-
}),
|
|
1905
|
+
}), o.init(u, d, l);
|
|
1906
1906
|
};
|
|
1907
1907
|
});
|
|
1908
|
-
var
|
|
1908
|
+
var ir = {
|
|
1909
1909
|
name: "css",
|
|
1910
|
-
register:
|
|
1910
|
+
register: Ai,
|
|
1911
1911
|
targetTest: function(t) {
|
|
1912
1912
|
return t.style && t.nodeType;
|
|
1913
1913
|
},
|
|
1914
1914
|
init: function(t, e, i, r, n) {
|
|
1915
|
-
var s = this._props,
|
|
1916
|
-
|
|
1915
|
+
var s = this._props, o = t.style, u = i.vars.startAt, f, h, l, c, d, p, _, g, m, y, x, T, v, w, P, S;
|
|
1916
|
+
Ki || Ai(), this.styles = this.styles || Sn(t), S = this.styles.props, this.tween = i;
|
|
1917
1917
|
for (_ in e)
|
|
1918
|
-
if (_ !== "autoRound" && (h = e[_], !(
|
|
1919
|
-
if (d = typeof h, p =
|
|
1918
|
+
if (_ !== "autoRound" && (h = e[_], !(ot[_] && dn(_, e, i, r, t, n)))) {
|
|
1919
|
+
if (d = typeof h, p = He[_], d === "function" && (h = h.call(i, r, t, n), d = typeof h), d === "string" && ~h.indexOf("random(") && (h = Ce(h)), p)
|
|
1920
1920
|
p(this, t, _, h, i) && (P = 1);
|
|
1921
1921
|
else if (_.substr(0, 2) === "--")
|
|
1922
|
-
f = (getComputedStyle(t).getPropertyValue(_) + "").trim(), h += "",
|
|
1922
|
+
f = (getComputedStyle(t).getPropertyValue(_) + "").trim(), h += "", Ft.lastIndex = 0, Ft.test(f) || (g = j(f), m = j(h)), m ? g !== m && (f = Bt(t, _, f, m) + m) : g && (h += g), this.add(o, "setProperty", f, h, r, n, 0, 0, _), s.push(_), S.push(_, 0, o[_]);
|
|
1923
1923
|
else if (d !== "undefined") {
|
|
1924
|
-
if (
|
|
1925
|
-
if (this.styles.save(_), d === "string" && h.substring(0, 6) === "var(--" && (h =
|
|
1926
|
-
this._pt = new
|
|
1924
|
+
if (u && _ in u ? (f = typeof u[_] == "function" ? u[_].call(i, r, t, n) : u[_], $(f) && ~f.indexOf("random(") && (f = Ce(f)), j(f + "") || f === "auto" || (f += ut.units[_] || j(Ct(t, _)) || ""), (f + "").charAt(1) === "=" && (f = Ct(t, _))) : f = Ct(t, _), c = parseFloat(f), y = d === "string" && h.charAt(1) === "=" && h.substr(0, 2), y && (h = h.substr(2)), l = parseFloat(h), _ in wt && (_ === "autoAlpha" && (c === 1 && Ct(t, "visibility") === "hidden" && l && (c = 0), S.push("visibility", 0, o.visibility), zt(this, o, "visibility", c ? "inherit" : "hidden", l ? "inherit" : "hidden", !l)), _ !== "scale" && _ !== "transform" && (_ = wt[_], ~_.indexOf(",") && (_ = _.split(",")[0]))), x = _ in Dt, x) {
|
|
1925
|
+
if (this.styles.save(_), d === "string" && h.substring(0, 6) === "var(--" && (h = mt(t, h.substring(4, h.indexOf(")"))), l = parseFloat(h)), T || (v = t._gsap, v.renderTransform && !e.parseTransform || De(t, e.parseTransform), w = e.smoothOrigin !== !1 && v.smooth, T = this._pt = new it(this._pt, o, B, 0, 1, v.renderTransform, v, 0, -1), T.dep = 1), _ === "scale")
|
|
1926
|
+
this._pt = new it(this._pt, v, "scaleY", v.scaleY, (y ? oe(v.scaleY, y + l) : l) - v.scaleY || 0, Oi), this._pt.u = 0, s.push("scaleY", _), _ += "X";
|
|
1927
1927
|
else if (_ === "transformOrigin") {
|
|
1928
|
-
S.push(
|
|
1928
|
+
S.push(rt, 0, o[rt]), h = Po(h), v.svg ? Di(t, h, 0, w, 0, this) : (m = parseFloat(h.split(" ")[2]) || 0, m !== v.zOrigin && zt(this, v, "zOrigin", v.zOrigin, m), zt(this, o, _, Ke(f), Ke(h)));
|
|
1929
1929
|
continue;
|
|
1930
1930
|
} else if (_ === "svgOrigin") {
|
|
1931
|
-
|
|
1931
|
+
Di(t, h, 1, w, 0, this);
|
|
1932
1932
|
continue;
|
|
1933
|
-
} else if (_ in
|
|
1934
|
-
|
|
1933
|
+
} else if (_ in kn) {
|
|
1934
|
+
Oo(this, v, _, c, y ? oe(c, y + h) : h);
|
|
1935
1935
|
continue;
|
|
1936
1936
|
} else if (_ === "smoothOrigin") {
|
|
1937
|
-
|
|
1937
|
+
zt(this, v, "smooth", v.smooth, h);
|
|
1938
1938
|
continue;
|
|
1939
1939
|
} else if (_ === "force3D") {
|
|
1940
|
-
|
|
1940
|
+
v[_] = h;
|
|
1941
1941
|
continue;
|
|
1942
1942
|
} else if (_ === "transform") {
|
|
1943
|
-
|
|
1943
|
+
ko(this, h, t);
|
|
1944
1944
|
continue;
|
|
1945
1945
|
}
|
|
1946
|
-
} else _ in
|
|
1947
|
-
if (
|
|
1948
|
-
|
|
1949
|
-
else if (_ in
|
|
1950
|
-
|
|
1946
|
+
} else _ in o || (_ = pe(_) || _);
|
|
1947
|
+
if (x || (l || l === 0) && (c || c === 0) && !uo.test(h) && _ in o)
|
|
1948
|
+
g = (f + "").substr((c + "").length), l || (l = 0), m = j(h) || (_ in ut.units ? ut.units[_] : g), g !== m && (c = Bt(t, _, f, m)), this._pt = new it(this._pt, x ? v : o, _, c, (y ? oe(c, y + l) : l) - c, !x && (m === "px" || _ === "zIndex") && e.autoRound !== !1 ? _o : Oi), this._pt.u = m || 0, g !== m && m !== "%" && (this._pt.b = f, this._pt.r = lo);
|
|
1949
|
+
else if (_ in o)
|
|
1950
|
+
wo.call(this, t, _, f, y ? y + h : h);
|
|
1951
1951
|
else if (_ in t)
|
|
1952
|
-
this.add(t, _, f || t[_],
|
|
1952
|
+
this.add(t, _, f || t[_], y ? y + h : h, r, n);
|
|
1953
1953
|
else if (_ !== "parseTransform") {
|
|
1954
|
-
|
|
1954
|
+
Xi(_, h);
|
|
1955
1955
|
continue;
|
|
1956
1956
|
}
|
|
1957
|
-
|
|
1957
|
+
x || (_ in o ? S.push(_, 0, o[_]) : typeof t[_] == "function" ? S.push(_, 2, t[_]()) : S.push(_, 1, f || t[_])), s.push(_);
|
|
1958
1958
|
}
|
|
1959
1959
|
}
|
|
1960
|
-
P &&
|
|
1960
|
+
P && vn(this);
|
|
1961
1961
|
},
|
|
1962
1962
|
render: function(t, e) {
|
|
1963
|
-
if (e.tween._time || !
|
|
1963
|
+
if (e.tween._time || !Ji())
|
|
1964
1964
|
for (var i = e._pt; i; )
|
|
1965
1965
|
i.r(t, i.d), i = i._next;
|
|
1966
1966
|
else
|
|
1967
1967
|
e.styles.revert();
|
|
1968
1968
|
},
|
|
1969
|
-
get:
|
|
1970
|
-
aliases:
|
|
1969
|
+
get: Ct,
|
|
1970
|
+
aliases: wt,
|
|
1971
1971
|
getSetter: function(t, e, i) {
|
|
1972
|
-
var r =
|
|
1973
|
-
return r && r.indexOf(",") < 0 && (e = r), e in
|
|
1972
|
+
var r = wt[e];
|
|
1973
|
+
return r && r.indexOf(",") < 0 && (e = r), e in Dt && e !== rt && (t._gsap.x || Ct(t, "x")) ? i && dr === i ? e === "scale" ? mo : go : (dr = i || {}) && (e === "scale" ? yo : xo) : t.style && !Bi(t.style[e]) ? co : ~e.indexOf("-") ? po : Zi(t, e);
|
|
1974
1974
|
},
|
|
1975
1975
|
core: {
|
|
1976
|
-
_removeProperty:
|
|
1977
|
-
_getMatrix:
|
|
1976
|
+
_removeProperty: Kt,
|
|
1977
|
+
_getMatrix: er
|
|
1978
1978
|
}
|
|
1979
1979
|
};
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
(function(
|
|
1983
|
-
var r =
|
|
1984
|
-
|
|
1980
|
+
nt.utils.checkPrefix = pe;
|
|
1981
|
+
nt.core.getStyleSaver = Sn;
|
|
1982
|
+
(function(a, t, e, i) {
|
|
1983
|
+
var r = et(a + "," + t + "," + e, function(n) {
|
|
1984
|
+
Dt[n] = 1;
|
|
1985
1985
|
});
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
}),
|
|
1986
|
+
et(t, function(n) {
|
|
1987
|
+
ut.units[n] = "deg", kn[n] = 1;
|
|
1988
|
+
}), wt[r[13]] = a + "," + t, et(i, function(n) {
|
|
1989
1989
|
var s = n.split(":");
|
|
1990
|
-
|
|
1990
|
+
wt[s[1]] = r[s[0]];
|
|
1991
1991
|
});
|
|
1992
1992
|
})("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");
|
|
1993
|
-
|
|
1994
|
-
|
|
1993
|
+
et("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(a) {
|
|
1994
|
+
ut.units[a] = "px";
|
|
1995
1995
|
});
|
|
1996
|
-
|
|
1997
|
-
var
|
|
1998
|
-
const
|
|
1996
|
+
nt.registerPlugin(ir);
|
|
1997
|
+
var Re = nt.registerPlugin(ir) || nt, Ao = Re.core.Tween;
|
|
1998
|
+
const ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1999
1999
|
__proto__: null,
|
|
2000
|
-
Back:
|
|
2001
|
-
Bounce:
|
|
2002
|
-
CSSPlugin:
|
|
2003
|
-
Circ:
|
|
2004
|
-
Cubic:
|
|
2005
|
-
Elastic:
|
|
2006
|
-
Expo:
|
|
2007
|
-
Linear:
|
|
2008
|
-
Power0:
|
|
2009
|
-
Power1:
|
|
2010
|
-
Power2:
|
|
2011
|
-
Power3:
|
|
2012
|
-
Power4:
|
|
2013
|
-
Quad:
|
|
2014
|
-
Quart:
|
|
2015
|
-
Quint:
|
|
2016
|
-
Sine:
|
|
2017
|
-
SteppedEase:
|
|
2018
|
-
Strong:
|
|
2000
|
+
Back: eo,
|
|
2001
|
+
Bounce: ro,
|
|
2002
|
+
CSSPlugin: ir,
|
|
2003
|
+
Circ: oo,
|
|
2004
|
+
Cubic: Zs,
|
|
2005
|
+
Elastic: to,
|
|
2006
|
+
Expo: so,
|
|
2007
|
+
Linear: js,
|
|
2008
|
+
Power0: Us,
|
|
2009
|
+
Power1: $s,
|
|
2010
|
+
Power2: qs,
|
|
2011
|
+
Power3: Gs,
|
|
2012
|
+
Power4: Ws,
|
|
2013
|
+
Quad: Qs,
|
|
2014
|
+
Quart: Hs,
|
|
2015
|
+
Quint: Ks,
|
|
2016
|
+
Sine: no,
|
|
2017
|
+
SteppedEase: io,
|
|
2018
|
+
Strong: Js,
|
|
2019
2019
|
TimelineLite: q,
|
|
2020
2020
|
TimelineMax: q,
|
|
2021
|
-
TweenLite:
|
|
2022
|
-
TweenMax:
|
|
2023
|
-
default:
|
|
2024
|
-
gsap:
|
|
2021
|
+
TweenLite: X,
|
|
2022
|
+
TweenMax: Ao,
|
|
2023
|
+
default: Re,
|
|
2024
|
+
gsap: Re
|
|
2025
2025
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2026
|
+
/*!
|
|
2027
|
+
* paths 3.13.0
|
|
2028
|
+
* https://gsap.com
|
|
2029
|
+
*
|
|
2030
|
+
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
2031
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
2032
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
2033
|
+
*/
|
|
2034
|
+
var Do = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, Ro = /(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, Eo = /[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig, Lo = /(^[#\.][a-z]|[a-y][a-z])/i, zo = Math.PI / 180, No = 180 / Math.PI, Ie = Math.sin, Be = Math.cos, yt = Math.abs, Ot = Math.sqrt, Fo = Math.atan2, Ri = 1e8, wr = function(t) {
|
|
2035
|
+
return typeof t == "string";
|
|
2036
|
+
}, Rn = function(t) {
|
|
2037
|
+
return typeof t == "number";
|
|
2038
|
+
}, Io = function(t) {
|
|
2039
|
+
return typeof t > "u";
|
|
2040
|
+
}, Bo = {}, Vo = {}, Je = 1e5, En = function(t) {
|
|
2041
|
+
return Math.round((t + Ri) % 1 * Je) / Je || (t < 0 ? 0 : 1);
|
|
2042
|
+
}, D = function(t) {
|
|
2043
|
+
return Math.round(t * Je) / Je || 0;
|
|
2044
|
+
}, Pr = function(t) {
|
|
2045
|
+
return Math.round(t * 1e10) / 1e10 || 0;
|
|
2046
|
+
}, Sr = function(t, e, i, r) {
|
|
2047
|
+
var n = t[e], s = r === 1 ? 6 : Ei(n, i, r);
|
|
2048
|
+
if ((s || !r) && s + i + 2 < n.length)
|
|
2049
|
+
return t.splice(e, 0, n.slice(0, i + s + 2)), n.splice(0, i + s), 1;
|
|
2050
|
+
}, Ln = function(t, e, i) {
|
|
2051
|
+
var r = t.length, n = ~~(i * r);
|
|
2052
|
+
if (t[n] > e) {
|
|
2053
|
+
for (; --n && t[n] > e; )
|
|
2054
|
+
;
|
|
2055
|
+
n < 0 && (n = 0);
|
|
2056
|
+
} else
|
|
2057
|
+
for (; t[++n] < e && n < r; )
|
|
2058
|
+
;
|
|
2059
|
+
return n < r ? n : r - 1;
|
|
2060
|
+
}, Yo = function(t, e) {
|
|
2061
|
+
var i = t.length;
|
|
2062
|
+
for (t.reverse(); i--; )
|
|
2063
|
+
t[i].reversed || $o(t[i]);
|
|
2064
|
+
}, Mr = function(t, e) {
|
|
2065
|
+
return e.totalLength = t.totalLength, t.samples ? (e.samples = t.samples.slice(0), e.lookup = t.lookup.slice(0), e.minLength = t.minLength, e.resolution = t.resolution) : t.totalPoints && (e.totalPoints = t.totalPoints), e;
|
|
2066
|
+
}, Xo = function(t, e) {
|
|
2067
|
+
var i = t.length, r = t[i - 1] || [], n = r.length;
|
|
2068
|
+
i && e[0] === r[n - 2] && e[1] === r[n - 1] && (e = r.concat(e.slice(2)), i--), t[i] = e;
|
|
2069
|
+
};
|
|
2070
|
+
function $e(a) {
|
|
2071
|
+
a = wr(a) && Lo.test(a) && document.querySelector(a) || a;
|
|
2072
|
+
var t = a.getAttribute ? a : 0, e;
|
|
2073
|
+
return t && (a = a.getAttribute("d")) ? (t._gsPath || (t._gsPath = {}), e = t._gsPath[a], e && !e._dirty ? e : t._gsPath[a] = Ee(a)) : a ? wr(a) ? Ee(a) : Rn(a[0]) ? [a] : a : console.warn("Expecting a <path> element or an SVG path data string");
|
|
2074
|
+
}
|
|
2075
|
+
function Uo(a) {
|
|
2076
|
+
for (var t = [], e = 0; e < a.length; e++)
|
|
2077
|
+
t[e] = Mr(a[e], a[e].slice(0));
|
|
2078
|
+
return Mr(a, t);
|
|
2079
|
+
}
|
|
2080
|
+
function $o(a) {
|
|
2081
|
+
var t = 0, e;
|
|
2082
|
+
for (a.reverse(); t < a.length; t += 2)
|
|
2083
|
+
e = a[t], a[t] = a[t + 1], a[t + 1] = e;
|
|
2084
|
+
a.reversed = !a.reversed;
|
|
2085
|
+
}
|
|
2086
|
+
var qo = function(t, e) {
|
|
2087
|
+
var i = document.createElementNS("http://www.w3.org/2000/svg", "path"), r = [].slice.call(t.attributes), n = r.length, s;
|
|
2088
|
+
for (e = "," + e + ","; --n > -1; )
|
|
2089
|
+
s = r[n].nodeName.toLowerCase(), e.indexOf("," + s + ",") < 0 && i.setAttributeNS(null, s, r[n].nodeValue);
|
|
2090
|
+
return i;
|
|
2091
|
+
}, Go = {
|
|
2092
|
+
rect: "rx,ry,x,y,width,height",
|
|
2093
|
+
circle: "r,cx,cy",
|
|
2094
|
+
ellipse: "rx,ry,cx,cy",
|
|
2095
|
+
line: "x1,x2,y1,y2"
|
|
2096
|
+
}, Wo = function(t, e) {
|
|
2097
|
+
for (var i = e ? e.split(",") : [], r = {}, n = i.length; --n > -1; )
|
|
2098
|
+
r[i[n]] = +t.getAttribute(i[n]) || 0;
|
|
2099
|
+
return r;
|
|
2100
|
+
};
|
|
2101
|
+
function jo(a, t) {
|
|
2102
|
+
var e = a.tagName.toLowerCase(), i = 0.552284749831, r, n, s, o, u, f, h, l, c, d, p, _, g, m, y, x, T, v, w, P, S, b;
|
|
2103
|
+
return e === "path" || !a.getBBox ? a : (f = qo(a, "x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"), b = Wo(a, Go[e]), e === "rect" ? (o = b.rx, u = b.ry || o, n = b.x, s = b.y, d = b.width - o * 2, p = b.height - u * 2, o || u ? (_ = n + o * (1 - i), g = n + o, m = g + d, y = m + o * i, x = m + o, T = s + u * (1 - i), v = s + u, w = v + p, P = w + u * i, S = w + u, r = "M" + x + "," + v + " V" + w + " C" + [x, P, y, S, m, S, m - (m - g) / 3, S, g + (m - g) / 3, S, g, S, _, S, n, P, n, w, n, w - (w - v) / 3, n, v + (w - v) / 3, n, v, n, T, _, s, g, s, g + (m - g) / 3, s, m - (m - g) / 3, s, m, s, y, s, x, T, x, v].join(",") + "z") : r = "M" + (n + d) + "," + s + " v" + p + " h" + -d + " v" + -p + " h" + d + "z") : e === "circle" || e === "ellipse" ? (e === "circle" ? (o = u = b.r, l = o * i) : (o = b.rx, u = b.ry, l = u * i), n = b.cx, s = b.cy, h = o * i, r = "M" + (n + o) + "," + s + " C" + [n + o, s + l, n + h, s + u, n, s + u, n - h, s + u, n - o, s + l, n - o, s, n - o, s - l, n - h, s - u, n, s - u, n + h, s - u, n + o, s - l, n + o, s].join(",") + "z") : e === "line" ? r = "M" + b.x1 + "," + b.y1 + " L" + b.x2 + "," + b.y2 : (e === "polyline" || e === "polygon") && (c = (a.getAttribute("points") + "").match(Ro) || [], n = c.shift(), s = c.shift(), r = "M" + n + "," + s + " L" + c.join(","), e === "polygon" && (r += "," + n + "," + s + "z")), f.setAttribute("d", rr(f._gsRawPath = Ee(r))), t && a.parentNode && (a.parentNode.insertBefore(f, a), a.parentNode.removeChild(a)), f);
|
|
2104
|
+
}
|
|
2105
|
+
function zn(a, t, e) {
|
|
2106
|
+
var i = a[t], r = a[t + 2], n = a[t + 4], s;
|
|
2107
|
+
return i += (r - i) * e, r += (n - r) * e, i += (r - i) * e, s = r + (n + (a[t + 6] - n) * e - r) * e - i, i = a[t + 1], r = a[t + 3], n = a[t + 5], i += (r - i) * e, r += (n - r) * e, i += (r - i) * e, D(Fo(r + (n + (a[t + 7] - n) * e - r) * e - i, s) * No);
|
|
2108
|
+
}
|
|
2109
|
+
function Nn(a, t, e) {
|
|
2110
|
+
e = Io(e) ? 1 : Pr(e) || 0, t = Pr(t) || 0;
|
|
2111
|
+
var i = Math.max(0, ~~(yt(e - t) - 1e-8)), r = Uo(a);
|
|
2112
|
+
if (t > e && (t = 1 - t, e = 1 - e, Yo(r), r.totalLength = 0), t < 0 || e < 0) {
|
|
2113
|
+
var n = Math.abs(~~Math.min(t, e)) + 1;
|
|
2114
|
+
t += n, e += n;
|
|
2115
|
+
}
|
|
2116
|
+
r.totalLength || Zt(r);
|
|
2117
|
+
var s = e > 1, o = Cr(r, t, Bo, !0), u = Cr(r, e, Vo), f = u.segment, h = o.segment, l = u.segIndex, c = o.segIndex, d = u.i, p = o.i, _ = c === l, g = d === p && _, m, y, x, T, v, w, P, S;
|
|
2118
|
+
if (s || i) {
|
|
2119
|
+
for (m = l < c || _ && d < p || g && u.t < o.t, Sr(r, c, p, o.t) && (c++, m || (l++, g ? (u.t = (u.t - o.t) / (1 - o.t), d = 0) : _ && (d -= p))), Math.abs(1 - (e - t)) < 1e-5 ? l = c - 1 : !u.t && l ? l-- : Sr(r, l, d, u.t) && m && c++, o.t === 1 && (c = (c + 1) % r.length), v = [], w = r.length, P = 1 + w * i, S = c, P += (w - c + l) % w, T = 0; T < P; T++)
|
|
2120
|
+
Xo(v, r[S++ % w]);
|
|
2121
|
+
r = v;
|
|
2122
|
+
} else if (x = u.t === 1 ? 6 : Ei(f, d, u.t), t !== e)
|
|
2123
|
+
for (y = Ei(h, p, g ? o.t / u.t : o.t), _ && (x += y), f.splice(d + x + 2), (y || p) && h.splice(0, p + y), T = r.length; T--; )
|
|
2124
|
+
(T < c || T > l) && r.splice(T, 1);
|
|
2125
|
+
else
|
|
2126
|
+
f.angle = zn(f, d + x, 0), d += x, o = f[d], u = f[d + 1], f.length = f.totalLength = 0, f.totalPoints = r.totalPoints = 8, f.push(o, u, o, u, o, u, o, u);
|
|
2127
|
+
return r.totalLength = 0, r;
|
|
2128
|
+
}
|
|
2129
|
+
function Qo(a, t, e) {
|
|
2130
|
+
t = t || 0, a.samples || (a.samples = [], a.lookup = []);
|
|
2131
|
+
var i = ~~a.resolution || 12, r = 1 / i, n = a.length, s = a[t], o = a[t + 1], u = t ? t / 6 * i : 0, f = a.samples, h = a.lookup, l = (t ? a.minLength : Ri) || Ri, c = f[u + e * i - 1], d = t ? f[u - 1] : 0, p, _, g, m, y, x, T, v, w, P, S, b, M, C, O, k, N;
|
|
2132
|
+
for (f.length = h.length = 0, _ = t + 2; _ < n; _ += 6) {
|
|
2133
|
+
if (g = a[_ + 4] - s, m = a[_ + 2] - s, y = a[_] - s, v = a[_ + 5] - o, w = a[_ + 3] - o, P = a[_ + 1] - o, x = T = S = b = 0, yt(g) < 0.01 && yt(v) < 0.01 && yt(y) + yt(P) < 0.01)
|
|
2134
|
+
a.length > 8 && (a.splice(_, 6), _ -= 6, n -= 6);
|
|
2135
|
+
else
|
|
2136
|
+
for (p = 1; p <= i; p++)
|
|
2137
|
+
C = r * p, M = 1 - C, x = T - (T = (C * C * g + 3 * M * (C * m + M * y)) * C), S = b - (b = (C * C * v + 3 * M * (C * w + M * P)) * C), k = Ot(S * S + x * x), k < l && (l = k), d += k, f[u++] = d;
|
|
2138
|
+
s += g, o += v;
|
|
2139
|
+
}
|
|
2140
|
+
if (c)
|
|
2141
|
+
for (c -= d; u < f.length; u++)
|
|
2142
|
+
f[u] += c;
|
|
2143
|
+
if (f.length && l) {
|
|
2144
|
+
if (a.totalLength = N = f[f.length - 1] || 0, a.minLength = l, N / l < 9999)
|
|
2145
|
+
for (k = O = 0, p = 0; p < N; p += l)
|
|
2146
|
+
h[k++] = f[O] < p ? ++O : O;
|
|
2147
|
+
} else
|
|
2148
|
+
a.totalLength = f[0] = 0;
|
|
2149
|
+
return t ? d - f[t / 2 - 1] : d;
|
|
2150
|
+
}
|
|
2151
|
+
function Zt(a, t) {
|
|
2152
|
+
var e, i, r;
|
|
2153
|
+
for (r = e = i = 0; r < a.length; r++)
|
|
2154
|
+
a[r].resolution = ~~t || 12, i += a[r].length, e += Qo(a[r]);
|
|
2155
|
+
return a.totalPoints = i, a.totalLength = e, a;
|
|
2156
|
+
}
|
|
2157
|
+
function Ei(a, t, e) {
|
|
2158
|
+
if (e <= 0 || e >= 1)
|
|
2159
|
+
return 0;
|
|
2160
|
+
var i = a[t], r = a[t + 1], n = a[t + 2], s = a[t + 3], o = a[t + 4], u = a[t + 5], f = a[t + 6], h = a[t + 7], l = i + (n - i) * e, c = n + (o - n) * e, d = r + (s - r) * e, p = s + (u - s) * e, _ = l + (c - l) * e, g = d + (p - d) * e, m = o + (f - o) * e, y = u + (h - u) * e;
|
|
2161
|
+
return c += (m - c) * e, p += (y - p) * e, a.splice(
|
|
2162
|
+
t + 2,
|
|
2163
|
+
4,
|
|
2164
|
+
D(l),
|
|
2165
|
+
//first control point
|
|
2166
|
+
D(d),
|
|
2167
|
+
D(_),
|
|
2168
|
+
//second control point
|
|
2169
|
+
D(g),
|
|
2170
|
+
D(_ + (c - _) * e),
|
|
2171
|
+
//new fabricated anchor on line
|
|
2172
|
+
D(g + (p - g) * e),
|
|
2173
|
+
D(c),
|
|
2174
|
+
//third control point
|
|
2175
|
+
D(p),
|
|
2176
|
+
D(m),
|
|
2177
|
+
//fourth control point
|
|
2178
|
+
D(y)
|
|
2179
|
+
), a.samples && a.samples.splice(t / 6 * a.resolution | 0, 0, 0, 0, 0, 0, 0, 0), 6;
|
|
2180
|
+
}
|
|
2181
|
+
function Cr(a, t, e, i) {
|
|
2182
|
+
e = e || {}, a.totalLength || Zt(a), (t < 0 || t > 1) && (t = En(t));
|
|
2183
|
+
var r = 0, n = a[0], s, o, u, f, h, l, c;
|
|
2184
|
+
if (!t)
|
|
2185
|
+
c = l = r = 0, n = a[0];
|
|
2186
|
+
else if (t === 1)
|
|
2187
|
+
c = 1, r = a.length - 1, n = a[r], l = n.length - 8;
|
|
2188
|
+
else {
|
|
2189
|
+
if (a.length > 1) {
|
|
2190
|
+
for (u = a.totalLength * t, h = l = 0; (h += a[l++].totalLength) < u; )
|
|
2191
|
+
r = l;
|
|
2192
|
+
n = a[r], f = h - n.totalLength, t = (u - f) / (h - f) || 0;
|
|
2193
|
+
}
|
|
2194
|
+
s = n.samples, o = n.resolution, u = n.totalLength * t, l = n.lookup.length ? n.lookup[~~(u / n.minLength)] || 0 : Ln(s, u, t), f = l ? s[l - 1] : 0, h = s[l], h < u && (f = h, h = s[++l]), c = 1 / o * ((u - f) / (h - f) + l % o), l = ~~(l / o) * 6, i && c === 1 && (l + 6 < n.length ? (l += 6, c = 0) : r + 1 < a.length && (l = c = 0, n = a[++r]));
|
|
2195
|
+
}
|
|
2196
|
+
return e.t = c, e.i = l, e.path = a, e.segment = n, e.segIndex = r, e;
|
|
2197
|
+
}
|
|
2198
|
+
function Or(a, t, e, i) {
|
|
2199
|
+
var r = a[0], n = i || {}, s, o, u, f, h, l, c, d, p;
|
|
2200
|
+
if ((t < 0 || t > 1) && (t = En(t)), r.lookup || Zt(a), a.length > 1) {
|
|
2201
|
+
for (u = a.totalLength * t, h = l = 0; (h += a[l++].totalLength) < u; )
|
|
2202
|
+
r = a[l];
|
|
2203
|
+
f = h - r.totalLength, t = (u - f) / (h - f) || 0;
|
|
2204
|
+
}
|
|
2205
|
+
return s = r.samples, o = r.resolution, u = r.totalLength * t, l = r.lookup.length ? r.lookup[t < 1 ? ~~(u / r.minLength) : r.lookup.length - 1] || 0 : Ln(s, u, t), f = l ? s[l - 1] : 0, h = s[l], h < u && (f = h, h = s[++l]), c = 1 / o * ((u - f) / (h - f) + l % o) || 0, p = 1 - c, l = ~~(l / o) * 6, d = r[l], n.x = D((c * c * (r[l + 6] - d) + 3 * p * (c * (r[l + 4] - d) + p * (r[l + 2] - d))) * c + d), n.y = D((c * c * (r[l + 7] - (d = r[l + 1])) + 3 * p * (c * (r[l + 5] - d) + p * (r[l + 3] - d))) * c + d), e && (n.angle = r.totalLength ? zn(r, l, c >= 1 ? 1 - 1e-9 : c || 1e-9) : r.angle || 0), n;
|
|
2206
|
+
}
|
|
2207
|
+
function ne(a, t, e, i, r, n, s) {
|
|
2208
|
+
for (var o = a.length, u, f, h, l, c; --o > -1; )
|
|
2209
|
+
for (u = a[o], f = u.length, h = 0; h < f; h += 2)
|
|
2210
|
+
l = u[h], c = u[h + 1], u[h] = l * t + c * i + n, u[h + 1] = l * e + c * r + s;
|
|
2211
|
+
return a._dirty = 1, a;
|
|
2212
|
+
}
|
|
2213
|
+
function Zo(a, t, e, i, r, n, s, o, u) {
|
|
2214
|
+
if (!(a === o && t === u)) {
|
|
2215
|
+
e = yt(e), i = yt(i);
|
|
2216
|
+
var f = r % 360 * zo, h = Be(f), l = Ie(f), c = Math.PI, d = c * 2, p = (a - o) / 2, _ = (t - u) / 2, g = h * p + l * _, m = -l * p + h * _, y = g * g, x = m * m, T = y / (e * e) + x / (i * i);
|
|
2217
|
+
T > 1 && (e = Ot(T) * e, i = Ot(T) * i);
|
|
2218
|
+
var v = e * e, w = i * i, P = (v * w - v * x - w * y) / (v * x + w * y);
|
|
2219
|
+
P < 0 && (P = 0);
|
|
2220
|
+
var S = (n === s ? -1 : 1) * Ot(P), b = S * (e * m / i), M = S * -(i * g / e), C = (a + o) / 2, O = (t + u) / 2, k = C + (h * b - l * M), N = O + (l * b + h * M), E = (g - b) / e, R = (m - M) / i, F = (-g - b) / e, W = (-m - M) / i, Yt = E * E + R * R, Rt = (R < 0 ? -1 : 1) * Math.acos(E / Ot(Yt)), H = (E * W - R * F < 0 ? -1 : 1) * Math.acos((E * F + R * W) / Ot(Yt * (F * F + W * W)));
|
|
2221
|
+
isNaN(H) && (H = c), !s && H > 0 ? H -= d : s && H < 0 && (H += d), Rt %= d, H %= d;
|
|
2222
|
+
var vt = Math.ceil(yt(H) / (d / 4)), _t = [], K = H / vt, ct = 4 / 3 * Ie(K / 2) / (1 + Be(K / 2)), Wn = h * e, jn = l * e, Qn = l * -i, Zn = h * i, st;
|
|
2223
|
+
for (st = 0; st < vt; st++)
|
|
2224
|
+
r = Rt + st * K, g = Be(r), m = Ie(r), E = Be(r += K), R = Ie(r), _t.push(g - ct * m, m + ct * g, E + ct * R, R - ct * E, E, R);
|
|
2225
|
+
for (st = 0; st < _t.length; st += 2)
|
|
2226
|
+
g = _t[st], m = _t[st + 1], _t[st] = g * Wn + m * Qn + k, _t[st + 1] = g * jn + m * Zn + N;
|
|
2227
|
+
return _t[st - 2] = o, _t[st - 1] = u, _t;
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
function Ee(a) {
|
|
2231
|
+
var t = (a + "").replace(Eo, function(b) {
|
|
2232
|
+
var M = +b;
|
|
2233
|
+
return M < 1e-4 && M > -1e-4 ? 0 : M;
|
|
2234
|
+
}).match(Do) || [], e = [], i = 0, r = 0, n = 2 / 3, s = t.length, o = 0, u = "ERROR: malformed path: " + a, f, h, l, c, d, p, _, g, m, y, x, T, v, w, P, S = function(M, C, O, k) {
|
|
2235
|
+
y = (O - M) / 3, x = (k - C) / 3, _.push(M + y, C + x, O - y, k - x, O, k);
|
|
2236
|
+
};
|
|
2237
|
+
if (!a || !isNaN(t[0]) || isNaN(t[1]))
|
|
2238
|
+
return console.log(u), e;
|
|
2239
|
+
for (f = 0; f < s; f++)
|
|
2240
|
+
if (v = d, isNaN(t[f]) ? (d = t[f].toUpperCase(), p = d !== t[f]) : f--, l = +t[f + 1], c = +t[f + 2], p && (l += i, c += r), f || (g = l, m = c), d === "M")
|
|
2241
|
+
_ && (_.length < 8 ? e.length -= 1 : o += _.length), i = g = l, r = m = c, _ = [l, c], e.push(_), f += 2, d = "L";
|
|
2242
|
+
else if (d === "C")
|
|
2243
|
+
_ || (_ = [0, 0]), p || (i = r = 0), _.push(l, c, i + t[f + 3] * 1, r + t[f + 4] * 1, i += t[f + 5] * 1, r += t[f + 6] * 1), f += 6;
|
|
2244
|
+
else if (d === "S")
|
|
2245
|
+
y = i, x = r, (v === "C" || v === "S") && (y += i - _[_.length - 4], x += r - _[_.length - 3]), p || (i = r = 0), _.push(y, x, l, c, i += t[f + 3] * 1, r += t[f + 4] * 1), f += 4;
|
|
2246
|
+
else if (d === "Q")
|
|
2247
|
+
y = i + (l - i) * n, x = r + (c - r) * n, p || (i = r = 0), i += t[f + 3] * 1, r += t[f + 4] * 1, _.push(y, x, i + (l - i) * n, r + (c - r) * n, i, r), f += 4;
|
|
2248
|
+
else if (d === "T")
|
|
2249
|
+
y = i - _[_.length - 4], x = r - _[_.length - 3], _.push(i + y, r + x, l + (i + y * 1.5 - l) * n, c + (r + x * 1.5 - c) * n, i = l, r = c), f += 2;
|
|
2250
|
+
else if (d === "H")
|
|
2251
|
+
S(i, r, i = l, r), f += 1;
|
|
2252
|
+
else if (d === "V")
|
|
2253
|
+
S(i, r, i, r = l + (p ? r - i : 0)), f += 1;
|
|
2254
|
+
else if (d === "L" || d === "Z")
|
|
2255
|
+
d === "Z" && (l = g, c = m, _.closed = !0), (d === "L" || yt(i - l) > 0.5 || yt(r - c) > 0.5) && (S(i, r, l, c), d === "L" && (f += 2)), i = l, r = c;
|
|
2256
|
+
else if (d === "A") {
|
|
2257
|
+
if (w = t[f + 4], P = t[f + 5], y = t[f + 6], x = t[f + 7], h = 7, w.length > 1 && (w.length < 3 ? (x = y, y = P, h--) : (x = P, y = w.substr(2), h -= 2), P = w.charAt(1), w = w.charAt(0)), T = Zo(i, r, +t[f + 1], +t[f + 2], +t[f + 3], +w, +P, (p ? i : 0) + y * 1, (p ? r : 0) + x * 1), f += h, T)
|
|
2258
|
+
for (h = 0; h < T.length; h++)
|
|
2259
|
+
_.push(T[h]);
|
|
2260
|
+
i = _[_.length - 2], r = _[_.length - 1];
|
|
2261
|
+
} else
|
|
2262
|
+
console.log(u);
|
|
2263
|
+
return f = _.length, f < 6 ? (e.pop(), f = 0) : _[0] === _[f - 2] && _[1] === _[f - 1] && (_.closed = !0), e.totalPoints = o + f, e;
|
|
2264
|
+
}
|
|
2265
|
+
function Ho(a, t) {
|
|
2266
|
+
t === void 0 && (t = 1);
|
|
2267
|
+
for (var e = a[0], i = 0, r = [e, i], n = 2; n < a.length; n += 2)
|
|
2268
|
+
r.push(e, i, a[n], i = (a[n] - e) * t / 2, e = a[n], -i);
|
|
2269
|
+
return r;
|
|
2270
|
+
}
|
|
2271
|
+
function Li(a, t) {
|
|
2272
|
+
yt(a[0] - a[2]) < 1e-4 && yt(a[1] - a[3]) < 1e-4 && (a = a.slice(2));
|
|
2273
|
+
var e = a.length - 2, i = +a[0], r = +a[1], n = +a[2], s = +a[3], o = [i, r, i, r], u = n - i, f = s - r, h = Math.abs(a[e] - i) < 1e-3 && Math.abs(a[e + 1] - r) < 1e-3, l, c, d, p, _, g, m, y, x, T, v, w, P, S, b;
|
|
2274
|
+
for (h && (a.push(n, s), n = i, s = r, i = a[e - 2], r = a[e - 1], a.unshift(i, r), e += 4), t = t || t === 0 ? +t : 1, d = 2; d < e; d += 2)
|
|
2275
|
+
l = i, c = r, i = n, r = s, n = +a[d + 2], s = +a[d + 3], !(i === n && r === s) && (p = u, _ = f, u = n - i, f = s - r, g = Ot(p * p + _ * _), m = Ot(u * u + f * f), y = Ot(Math.pow(u / m + p / g, 2) + Math.pow(f / m + _ / g, 2)), x = (g + m) * t * 0.25 / y, T = i - (i - l) * (g ? x / g : 0), v = i + (n - i) * (m ? x / m : 0), w = i - (T + ((v - T) * (g * 3 / (g + m) + 0.5) / 4 || 0)), P = r - (r - c) * (g ? x / g : 0), S = r + (s - r) * (m ? x / m : 0), b = r - (P + ((S - P) * (g * 3 / (g + m) + 0.5) / 4 || 0)), (i !== l || r !== c) && o.push(
|
|
2276
|
+
D(T + w),
|
|
2277
|
+
// first control point
|
|
2278
|
+
D(P + b),
|
|
2279
|
+
D(i),
|
|
2280
|
+
// anchor
|
|
2281
|
+
D(r),
|
|
2282
|
+
D(v + w),
|
|
2283
|
+
// second control point
|
|
2284
|
+
D(S + b)
|
|
2285
|
+
));
|
|
2286
|
+
return i !== n || r !== s || o.length < 4 ? o.push(D(n), D(s), D(n), D(s)) : o.length -= 2, o.length === 2 ? o.push(i, r, i, r, i, r) : h && (o.splice(0, 6), o.length = o.length - 6), o;
|
|
2287
|
+
}
|
|
2288
|
+
function rr(a) {
|
|
2289
|
+
Rn(a[0]) && (a = [a]);
|
|
2290
|
+
var t = "", e = a.length, i, r, n, s;
|
|
2291
|
+
for (r = 0; r < e; r++) {
|
|
2292
|
+
for (s = a[r], t += "M" + D(s[0]) + "," + D(s[1]) + " C", i = s.length, n = 2; n < i; n++)
|
|
2293
|
+
t += D(s[n++]) + "," + D(s[n++]) + " " + D(s[n++]) + "," + D(s[n++]) + " " + D(s[n++]) + "," + D(s[n]) + " ";
|
|
2294
|
+
s.closed && (t += "z");
|
|
2295
|
+
}
|
|
2296
|
+
return t;
|
|
2297
|
+
}
|
|
2298
|
+
/*!
|
|
2299
|
+
* CustomEase 3.13.0
|
|
2300
|
+
* https://gsap.com
|
|
2301
|
+
*
|
|
2302
|
+
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
2303
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
2304
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
2305
|
+
*/
|
|
2306
|
+
var J, Fn, In = function() {
|
|
2307
|
+
return J || typeof window < "u" && (J = window.gsap) && J.registerPlugin && J;
|
|
2308
|
+
}, kr = function() {
|
|
2309
|
+
J = In(), J ? (J.registerEase("_CE", Ne.create), Fn = 1) : console.warn("Please gsap.registerPlugin(CustomEase)");
|
|
2310
|
+
}, Ko = 1e20, Ve = function(t) {
|
|
2311
|
+
return ~~(t * 1e3 + (t < 0 ? -0.5 : 0.5)) / 1e3;
|
|
2312
|
+
}, Jo = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi, ta = /[cLlsSaAhHvVtTqQ]/g, ea = function(t) {
|
|
2313
|
+
var e = t.length, i = Ko, r;
|
|
2314
|
+
for (r = 1; r < e; r += 6)
|
|
2315
|
+
+t[r] < i && (i = +t[r]);
|
|
2316
|
+
return i;
|
|
2317
|
+
}, ia = function(t, e, i) {
|
|
2318
|
+
!i && i !== 0 && (i = Math.max(+t[t.length - 1], +t[1]));
|
|
2319
|
+
var r = +t[0] * -1, n = -i, s = t.length, o = 1 / (+t[s - 2] + r), u = -e || (Math.abs(+t[s - 1] - +t[1]) < 0.01 * (+t[s - 2] - +t[0]) ? ea(t) + n : +t[s - 1] + n), f;
|
|
2320
|
+
for (u ? u = 1 / u : u = -o, f = 0; f < s; f += 2)
|
|
2321
|
+
t[f] = (+t[f] + r) * o, t[f + 1] = (+t[f + 1] + n) * u;
|
|
2322
|
+
}, ra = function a(t, e, i, r, n, s, o, u, f, h, l) {
|
|
2323
|
+
var c = (t + i) / 2, d = (e + r) / 2, p = (i + n) / 2, _ = (r + s) / 2, g = (n + o) / 2, m = (s + u) / 2, y = (c + p) / 2, x = (d + _) / 2, T = (p + g) / 2, v = (_ + m) / 2, w = (y + T) / 2, P = (x + v) / 2, S = o - t, b = u - e, M = Math.abs((i - o) * b - (r - u) * S), C = Math.abs((n - o) * b - (s - u) * S), O;
|
|
2324
|
+
return h || (h = [{
|
|
2325
|
+
x: t,
|
|
2326
|
+
y: e
|
|
2327
|
+
}, {
|
|
2328
|
+
x: o,
|
|
2329
|
+
y: u
|
|
2330
|
+
}], l = 1), h.splice(l || h.length - 1, 0, {
|
|
2331
|
+
x: w,
|
|
2332
|
+
y: P
|
|
2333
|
+
}), (M + C) * (M + C) > f * (S * S + b * b) && (O = h.length, a(t, e, c, d, y, x, w, P, f, h, l), a(w, P, T, v, g, m, o, u, f, h, l + 1 + (h.length - O))), h;
|
|
2334
|
+
}, Ne = /* @__PURE__ */ function() {
|
|
2335
|
+
function a(e, i, r) {
|
|
2336
|
+
Fn || kr(), this.id = e, this.setData(i, r);
|
|
2337
|
+
}
|
|
2338
|
+
var t = a.prototype;
|
|
2339
|
+
return t.setData = function(i, r) {
|
|
2340
|
+
r = r || {}, i = i || "0,0,1,1";
|
|
2341
|
+
var n = i.match(Jo), s = 1, o = [], u = [], f = r.precision || 1, h = f <= 1, l, c, d, p, _, g, m, y, x;
|
|
2342
|
+
if (this.data = i, (ta.test(i) || ~i.indexOf("M") && i.indexOf("C") < 0) && (n = Ee(i)[0]), l = n.length, l === 4)
|
|
2343
|
+
n.unshift(0, 0), n.push(1, 1), l = 8;
|
|
2344
|
+
else if ((l - 2) % 6)
|
|
2345
|
+
throw "Invalid CustomEase";
|
|
2346
|
+
for ((+n[0] != 0 || +n[l - 2] != 1) && ia(n, r.height, r.originY), this.segment = n, p = 2; p < l; p += 6)
|
|
2347
|
+
c = {
|
|
2348
|
+
x: +n[p - 2],
|
|
2349
|
+
y: +n[p - 1]
|
|
2350
|
+
}, d = {
|
|
2351
|
+
x: +n[p + 4],
|
|
2352
|
+
y: +n[p + 5]
|
|
2353
|
+
}, o.push(c, d), ra(c.x, c.y, +n[p], +n[p + 1], +n[p + 2], +n[p + 3], d.x, d.y, 1 / (f * 2e5), o, o.length - 1);
|
|
2354
|
+
for (l = o.length, p = 0; p < l; p++)
|
|
2355
|
+
m = o[p], y = o[p - 1] || m, (m.x > y.x || y.y !== m.y && y.x === m.x || m === y) && m.x <= 1 ? (y.cx = m.x - y.x, y.cy = m.y - y.y, y.n = m, y.nx = m.x, h && p > 1 && Math.abs(y.cy / y.cx - o[p - 2].cy / o[p - 2].cx) > 2 && (h = 0), y.cx < s && (y.cx ? s = y.cx : (y.cx = 1e-3, p === l - 1 && (y.x -= 1e-3, s = Math.min(s, 1e-3), h = 0)))) : (o.splice(p--, 1), l--);
|
|
2356
|
+
if (l = 1 / s + 1 | 0, _ = 1 / l, g = 0, m = o[0], h) {
|
|
2357
|
+
for (p = 0; p < l; p++)
|
|
2358
|
+
x = p * _, m.nx < x && (m = o[++g]), c = m.y + (x - m.x) / m.cx * m.cy, u[p] = {
|
|
2359
|
+
x,
|
|
2360
|
+
cx: _,
|
|
2361
|
+
y: c,
|
|
2362
|
+
cy: 0,
|
|
2363
|
+
nx: 9
|
|
2364
|
+
}, p && (u[p - 1].cy = c - u[p - 1].y);
|
|
2365
|
+
g = o[o.length - 1], u[l - 1].cy = g.y - c, u[l - 1].cx = g.x - u[u.length - 1].x;
|
|
2366
|
+
} else {
|
|
2367
|
+
for (p = 0; p < l; p++)
|
|
2368
|
+
m.nx < p * _ && (m = o[++g]), u[p] = m;
|
|
2369
|
+
g < o.length - 1 && (u[p - 1] = o[o.length - 2]);
|
|
2370
|
+
}
|
|
2371
|
+
return this.ease = function(T) {
|
|
2372
|
+
var v = u[T * l | 0] || u[l - 1];
|
|
2373
|
+
return v.nx < T && (v = v.n), v.y + (T - v.x) / v.cx * v.cy;
|
|
2374
|
+
}, this.ease.custom = this, this.id && J && J.registerEase(this.id, this.ease), this;
|
|
2375
|
+
}, t.getSVGData = function(i) {
|
|
2376
|
+
return a.getSVGData(this, i);
|
|
2377
|
+
}, a.create = function(i, r, n) {
|
|
2378
|
+
return new a(i, r, n).ease;
|
|
2379
|
+
}, a.register = function(i) {
|
|
2380
|
+
J = i, kr();
|
|
2381
|
+
}, a.get = function(i) {
|
|
2382
|
+
return J.parseEase(i);
|
|
2383
|
+
}, a.getSVGData = function(i, r) {
|
|
2384
|
+
r = r || {};
|
|
2385
|
+
var n = r.width || 100, s = r.height || 100, o = r.x || 0, u = (r.y || 0) + s, f = J.utils.toArray(r.path)[0], h, l, c, d, p, _, g, m, y, x;
|
|
2386
|
+
if (r.invert && (s = -s, u = 0), typeof i == "string" && (i = J.parseEase(i)), i.custom && (i = i.custom), i instanceof a)
|
|
2387
|
+
h = rr(ne([i.segment], n, 0, 0, -s, o, u));
|
|
2388
|
+
else {
|
|
2389
|
+
for (h = [o, u], g = Math.max(5, (r.precision || 1) * 200), d = 1 / g, g += 2, m = 5 / g, y = Ve(o + d * n), x = Ve(u + i(d) * -s), l = (x - u) / (y - o), c = 2; c < g; c++)
|
|
2390
|
+
p = Ve(o + c * d * n), _ = Ve(u + i(c * d) * -s), (Math.abs((_ - x) / (p - y) - l) > m || c === g - 1) && (h.push(y, x), l = (_ - x) / (p - y)), y = p, x = _;
|
|
2391
|
+
h = "M" + h.join(",");
|
|
2392
|
+
}
|
|
2393
|
+
return f && f.setAttribute("d", h), h;
|
|
2394
|
+
}, a;
|
|
2395
|
+
}();
|
|
2396
|
+
Ne.version = "3.13.0";
|
|
2397
|
+
Ne.headless = !0;
|
|
2398
|
+
In() && J.registerPlugin(Ne);
|
|
2399
|
+
Re.registerPlugin(Ne);
|
|
2400
|
+
/*!
|
|
2401
|
+
* matrix 3.13.0
|
|
2402
|
+
* https://gsap.com
|
|
2403
|
+
*
|
|
2404
|
+
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
2405
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
2406
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
2407
|
+
*/
|
|
2408
|
+
var kt, Ht, nr, si, ve, qe, ti, Pe, xt = "transform", zi = xt + "Origin", Bn, Vn = function(t) {
|
|
2409
|
+
var e = t.ownerDocument || t;
|
|
2410
|
+
for (!(xt in t.style) && ("msTransform" in t.style) && (xt = "msTransform", zi = xt + "Origin"); e.parentNode && (e = e.parentNode); )
|
|
2411
|
+
;
|
|
2412
|
+
if (Ht = window, ti = new Le(), e) {
|
|
2413
|
+
kt = e, nr = e.documentElement, si = e.body, Pe = kt.createElementNS("http://www.w3.org/2000/svg", "g"), Pe.style.transform = "none";
|
|
2414
|
+
var i = e.createElement("div"), r = e.createElement("div"), n = e && (e.body || e.firstElementChild);
|
|
2415
|
+
n && n.appendChild && (n.appendChild(i), i.appendChild(r), i.setAttribute("style", "position:static;transform:translate3d(0,0,1px)"), Bn = r.offsetParent !== i, n.removeChild(i));
|
|
2416
|
+
}
|
|
2417
|
+
return e;
|
|
2418
|
+
}, na = function(t) {
|
|
2419
|
+
for (var e, i; t && t !== si; )
|
|
2420
|
+
i = t._gsap, i && i.uncache && i.get(t, "x"), i && !i.scaleX && !i.scaleY && i.renderTransform && (i.scaleX = i.scaleY = 1e-4, i.renderTransform(1, i), e ? e.push(i) : e = [i]), t = t.parentNode;
|
|
2421
|
+
return e;
|
|
2422
|
+
}, Yn = [], Xn = [], sa = function() {
|
|
2423
|
+
return Ht.pageYOffset || kt.scrollTop || nr.scrollTop || si.scrollTop || 0;
|
|
2424
|
+
}, oa = function() {
|
|
2425
|
+
return Ht.pageXOffset || kt.scrollLeft || nr.scrollLeft || si.scrollLeft || 0;
|
|
2426
|
+
}, sr = function(t) {
|
|
2427
|
+
return t.ownerSVGElement || ((t.tagName + "").toLowerCase() === "svg" ? t : null);
|
|
2428
|
+
}, aa = function a(t) {
|
|
2429
|
+
if (Ht.getComputedStyle(t).position === "fixed")
|
|
2430
|
+
return !0;
|
|
2431
|
+
if (t = t.parentNode, t && t.nodeType === 1)
|
|
2432
|
+
return a(t);
|
|
2433
|
+
}, di = function a(t, e) {
|
|
2434
|
+
if (t.parentNode && (kt || Vn(t))) {
|
|
2435
|
+
var i = sr(t), r = i ? i.getAttribute("xmlns") || "http://www.w3.org/2000/svg" : "http://www.w3.org/1999/xhtml", n = i ? e ? "rect" : "g" : "div", s = e !== 2 ? 0 : 100, o = e === 3 ? 100 : 0, u = "position:absolute;display:block;pointer-events:none;margin:0;padding:0;", f = kt.createElementNS ? kt.createElementNS(r.replace(/^https/, "http"), n) : kt.createElement(n);
|
|
2436
|
+
return e && (i ? (qe || (qe = a(t)), f.setAttribute("width", 0.01), f.setAttribute("height", 0.01), f.setAttribute("transform", "translate(" + s + "," + o + ")"), qe.appendChild(f)) : (ve || (ve = a(t), ve.style.cssText = u), f.style.cssText = u + "width:0.1px;height:0.1px;top:" + o + "px;left:" + s + "px", ve.appendChild(f))), f;
|
|
2437
|
+
}
|
|
2438
|
+
throw "Need document and parent.";
|
|
2439
|
+
}, fa = function(t) {
|
|
2440
|
+
for (var e = new Le(), i = 0; i < t.numberOfItems; i++)
|
|
2441
|
+
e.multiply(t.getItem(i).matrix);
|
|
2442
|
+
return e;
|
|
2443
|
+
}, ua = function(t) {
|
|
2444
|
+
var e = t.getCTM(), i;
|
|
2445
|
+
return e || (i = t.style[xt], t.style[xt] = "none", t.appendChild(Pe), e = Pe.getCTM(), t.removeChild(Pe), i ? t.style[xt] = i : t.style.removeProperty(xt.replace(/([A-Z])/g, "-$1").toLowerCase())), e || ti.clone();
|
|
2446
|
+
}, ha = function(t, e) {
|
|
2447
|
+
var i = sr(t), r = t === i, n = i ? Yn : Xn, s = t.parentNode, o = s && !i && s.shadowRoot && s.shadowRoot.appendChild ? s.shadowRoot : s, u, f, h, l, c, d;
|
|
2448
|
+
if (t === Ht)
|
|
2449
|
+
return t;
|
|
2450
|
+
if (n.length || n.push(di(t, 1), di(t, 2), di(t, 3)), u = i ? qe : ve, i)
|
|
2451
|
+
r ? (h = ua(t), l = -h.e / h.a, c = -h.f / h.d, f = ti) : t.getBBox ? (h = t.getBBox(), f = t.transform ? t.transform.baseVal : {}, f = f.numberOfItems ? f.numberOfItems > 1 ? fa(f) : f.getItem(0).matrix : ti, l = f.a * h.x + f.c * h.y, c = f.b * h.x + f.d * h.y) : (f = new Le(), l = c = 0), e && t.tagName.toLowerCase() === "g" && (l = c = 0), (r ? i : s).appendChild(u), u.setAttribute("transform", "matrix(" + f.a + "," + f.b + "," + f.c + "," + f.d + "," + (f.e + l) + "," + (f.f + c) + ")");
|
|
2452
|
+
else {
|
|
2453
|
+
if (l = c = 0, Bn)
|
|
2454
|
+
for (f = t.offsetParent, h = t; h && (h = h.parentNode) && h !== f && h.parentNode; )
|
|
2455
|
+
(Ht.getComputedStyle(h)[xt] + "").length > 4 && (l = h.offsetLeft, c = h.offsetTop, h = 0);
|
|
2456
|
+
if (d = Ht.getComputedStyle(t), d.position !== "absolute" && d.position !== "fixed")
|
|
2457
|
+
for (f = t.offsetParent; s && s !== f; )
|
|
2458
|
+
l += s.scrollLeft || 0, c += s.scrollTop || 0, s = s.parentNode;
|
|
2459
|
+
h = u.style, h.top = t.offsetTop - c + "px", h.left = t.offsetLeft - l + "px", h[xt] = d[xt], h[zi] = d[zi], h.position = d.position === "fixed" ? "fixed" : "absolute", o.appendChild(u);
|
|
2460
|
+
}
|
|
2461
|
+
return u;
|
|
2462
|
+
}, pi = function(t, e, i, r, n, s, o) {
|
|
2463
|
+
return t.a = e, t.b = i, t.c = r, t.d = n, t.e = s, t.f = o, t;
|
|
2464
|
+
}, Le = /* @__PURE__ */ function() {
|
|
2465
|
+
function a(e, i, r, n, s, o) {
|
|
2466
|
+
e === void 0 && (e = 1), i === void 0 && (i = 0), r === void 0 && (r = 0), n === void 0 && (n = 1), s === void 0 && (s = 0), o === void 0 && (o = 0), pi(this, e, i, r, n, s, o);
|
|
2467
|
+
}
|
|
2468
|
+
var t = a.prototype;
|
|
2469
|
+
return t.inverse = function() {
|
|
2470
|
+
var i = this.a, r = this.b, n = this.c, s = this.d, o = this.e, u = this.f, f = i * s - r * n || 1e-10;
|
|
2471
|
+
return pi(this, s / f, -r / f, -n / f, i / f, (n * u - s * o) / f, -(i * u - r * o) / f);
|
|
2472
|
+
}, t.multiply = function(i) {
|
|
2473
|
+
var r = this.a, n = this.b, s = this.c, o = this.d, u = this.e, f = this.f, h = i.a, l = i.c, c = i.b, d = i.d, p = i.e, _ = i.f;
|
|
2474
|
+
return pi(this, h * r + c * s, h * n + c * o, l * r + d * s, l * n + d * o, u + p * r + _ * s, f + p * n + _ * o);
|
|
2475
|
+
}, t.clone = function() {
|
|
2476
|
+
return new a(this.a, this.b, this.c, this.d, this.e, this.f);
|
|
2477
|
+
}, t.equals = function(i) {
|
|
2478
|
+
var r = this.a, n = this.b, s = this.c, o = this.d, u = this.e, f = this.f;
|
|
2479
|
+
return r === i.a && n === i.b && s === i.c && o === i.d && u === i.e && f === i.f;
|
|
2480
|
+
}, t.apply = function(i, r) {
|
|
2481
|
+
r === void 0 && (r = {});
|
|
2482
|
+
var n = i.x, s = i.y, o = this.a, u = this.b, f = this.c, h = this.d, l = this.e, c = this.f;
|
|
2483
|
+
return r.x = n * o + s * f + l || 0, r.y = n * u + s * h + c || 0, r;
|
|
2484
|
+
}, a;
|
|
2485
|
+
}();
|
|
2486
|
+
function ue(a, t, e, i) {
|
|
2487
|
+
if (!a || !a.parentNode || (kt || Vn(a)).documentElement === a)
|
|
2488
|
+
return new Le();
|
|
2489
|
+
var r = na(a), n = sr(a), s = n ? Yn : Xn, o = ha(a, e), u = s[0].getBoundingClientRect(), f = s[1].getBoundingClientRect(), h = s[2].getBoundingClientRect(), l = o.parentNode, c = !i && aa(a), d = new Le((f.left - u.left) / 100, (f.top - u.top) / 100, (h.left - u.left) / 100, (h.top - u.top) / 100, u.left + (c ? 0 : oa()), u.top + (c ? 0 : sa()));
|
|
2490
|
+
if (l.removeChild(o), r)
|
|
2491
|
+
for (u = r.length; u--; )
|
|
2492
|
+
f = r[u], f.scaleX = f.scaleY = 0, f.renderTransform(1, f);
|
|
2493
|
+
return t ? d.inverse() : d;
|
|
2494
|
+
}
|
|
2495
|
+
/*!
|
|
2496
|
+
* MotionPathPlugin 3.13.0
|
|
2497
|
+
* https://gsap.com
|
|
2498
|
+
*
|
|
2499
|
+
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
2500
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
2501
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
2502
|
+
*/
|
|
2503
|
+
var la = "x,translateX,left,marginLeft,xPercent".split(","), _a = "y,translateY,top,marginTop,yPercent".split(","), ca = Math.PI / 180, pt, Un, ee, Ni, gi, Ar, da = function() {
|
|
2504
|
+
return pt || typeof window < "u" && (pt = window.gsap) && pt.registerPlugin && pt;
|
|
2505
|
+
}, me = function(t, e, i, r) {
|
|
2506
|
+
for (var n = e.length, s = r === 2 ? 0 : r, o = 0; o < n; o++)
|
|
2507
|
+
t[s] = parseFloat(e[o][i]), r === 2 && (t[s + 1] = 0), s += 2;
|
|
2508
|
+
return t;
|
|
2509
|
+
}, se = function(t, e, i) {
|
|
2510
|
+
return parseFloat(t._gsap.get(t, e, i || "px")) || 0;
|
|
2511
|
+
}, $n = function(t) {
|
|
2512
|
+
var e = t[0], i = t[1], r;
|
|
2513
|
+
for (r = 2; r < t.length; r += 2)
|
|
2514
|
+
e = t[r] += e, i = t[r + 1] += i;
|
|
2515
|
+
}, Dr = function(t, e, i, r, n, s, o, u, f) {
|
|
2516
|
+
if (o.type === "cubic")
|
|
2517
|
+
e = [e];
|
|
2518
|
+
else {
|
|
2519
|
+
o.fromCurrent !== !1 && e.unshift(se(i, r, u), n ? se(i, n, f) : 0), o.relative && $n(e);
|
|
2520
|
+
var h = n ? Li : Ho;
|
|
2521
|
+
e = [h(e, o.curviness)];
|
|
2522
|
+
}
|
|
2523
|
+
return e = s(qn(e, i, o)), ei(t, i, r, e, "x", u), n && ei(t, i, n, e, "y", f), Zt(e, o.resolution || (o.curviness === 0 ? 20 : 12));
|
|
2524
|
+
}, pa = function(t) {
|
|
2525
|
+
return t;
|
|
2526
|
+
}, ga = /[-+\.]*\d+\.?(?:e-|e\+)?\d*/g, Rr = function(t, e, i) {
|
|
2527
|
+
var r = ue(t), n = 0, s = 0, o;
|
|
2528
|
+
return (t.tagName + "").toLowerCase() === "svg" ? (o = t.viewBox.baseVal, o.width || (o = {
|
|
2529
|
+
width: +t.getAttribute("width"),
|
|
2530
|
+
height: +t.getAttribute("height")
|
|
2531
|
+
})) : o = e && t.getBBox && t.getBBox(), e && e !== "auto" && (n = e.push ? e[0] * (o ? o.width : t.offsetWidth || 0) : e.x, s = e.push ? e[1] * (o ? o.height : t.offsetHeight || 0) : e.y), i.apply(n || s ? r.apply({
|
|
2532
|
+
x: n,
|
|
2533
|
+
y: s
|
|
2534
|
+
}) : {
|
|
2535
|
+
x: r.e,
|
|
2536
|
+
y: r.f
|
|
2537
|
+
});
|
|
2538
|
+
}, Fi = function(t, e, i, r) {
|
|
2539
|
+
var n = ue(t.parentNode, !0, !0), s = n.clone().multiply(ue(e)), o = Rr(t, i, n), u = Rr(e, r, n), f = u.x, h = u.y, l;
|
|
2540
|
+
return s.e = s.f = 0, r === "auto" && e.getTotalLength && e.tagName.toLowerCase() === "path" && (l = e.getAttribute("d").match(ga) || [], l = s.apply({
|
|
2541
|
+
x: +l[0],
|
|
2542
|
+
y: +l[1]
|
|
2543
|
+
}), f += l.x, h += l.y), l && (l = s.apply(e.getBBox()), f -= l.x, h -= l.y), s.e = f - o.x, s.f = h - o.y, s;
|
|
2544
|
+
}, qn = function(t, e, i) {
|
|
2545
|
+
var r = i.align, n = i.matrix, s = i.offsetX, o = i.offsetY, u = i.alignOrigin, f = t[0][0], h = t[0][1], l = se(e, "x"), c = se(e, "y"), d, p, _;
|
|
2546
|
+
return !t || !t.length ? $e("M0,0L0,0") : (r && (r === "self" || (d = Ni(r)[0] || e) === e ? ne(t, 1, 0, 0, 1, l - f, c - h) : (u && u[2] !== !1 ? pt.set(e, {
|
|
2547
|
+
transformOrigin: u[0] * 100 + "% " + u[1] * 100 + "%"
|
|
2548
|
+
}) : u = [se(e, "xPercent") / -100, se(e, "yPercent") / -100], p = Fi(e, d, u, "auto"), _ = p.apply({
|
|
2549
|
+
x: f,
|
|
2550
|
+
y: h
|
|
2551
|
+
}), ne(t, p.a, p.b, p.c, p.d, l + p.e - (_.x - p.e), c + p.f - (_.y - p.f)))), n ? ne(t, n.a, n.b, n.c, n.d, n.e, n.f) : (s || o) && ne(t, 1, 0, 0, 1, s || 0, o || 0), t);
|
|
2552
|
+
}, ei = function(t, e, i, r, n, s) {
|
|
2553
|
+
var o = e._gsap, u = o.harness, f = u && u.aliases && u.aliases[i], h = f && f.indexOf(",") < 0 ? f : i, l = t._pt = new Un(t._pt, e, h, 0, 0, pa, 0, o.set(e, h, t));
|
|
2554
|
+
l.u = ee(o.get(e, h, s)) || 0, l.path = r, l.pp = n, t._props.push(h);
|
|
2555
|
+
}, ma = function(t, e) {
|
|
2556
|
+
return function(i) {
|
|
2557
|
+
return t || e !== 1 ? Nn(i, t, e) : i;
|
|
2558
|
+
};
|
|
2559
|
+
}, Gn = {
|
|
2560
|
+
version: "3.13.0",
|
|
2561
|
+
name: "motionPath",
|
|
2562
|
+
register: function(t, e, i) {
|
|
2563
|
+
pt = t, ee = pt.utils.getUnit, Ni = pt.utils.toArray, gi = pt.core.getStyleSaver, Ar = pt.core.reverting || function() {
|
|
2564
|
+
}, Un = i;
|
|
2565
|
+
},
|
|
2566
|
+
init: function(t, e, i) {
|
|
2567
|
+
if (!pt)
|
|
2568
|
+
return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"), !1;
|
|
2569
|
+
(!(typeof e == "object" && !e.style) || !e.path) && (e = {
|
|
2570
|
+
path: e
|
|
2571
|
+
});
|
|
2572
|
+
var r = [], n = e, s = n.path, o = n.autoRotate, u = n.unitX, f = n.unitY, h = n.x, l = n.y, c = s[0], d = ma(e.start, "end" in e ? e.end : 1), p, _;
|
|
2573
|
+
if (this.rawPaths = r, this.target = t, this.tween = i, this.styles = gi && gi(t, "transform"), (this.rotate = o || o === 0) && (this.rOffset = parseFloat(o) || 0, this.radians = !!e.useRadians, this.rProp = e.rotation || "rotation", this.rSet = t._gsap.set(t, this.rProp, this), this.ru = ee(t._gsap.get(t, this.rProp)) || 0), Array.isArray(s) && !("closed" in s) && typeof c != "number") {
|
|
2574
|
+
for (_ in c)
|
|
2575
|
+
!h && ~la.indexOf(_) ? h = _ : !l && ~_a.indexOf(_) && (l = _);
|
|
2576
|
+
h && l ? r.push(Dr(this, me(me([], s, h, 0), s, l, 1), t, h, l, d, e, u || ee(s[0][h]), f || ee(s[0][l]))) : h = l = 0;
|
|
2577
|
+
for (_ in c)
|
|
2578
|
+
_ !== h && _ !== l && r.push(Dr(this, me([], s, _, 2), t, _, 0, d, e, ee(s[0][_])));
|
|
2579
|
+
} else
|
|
2580
|
+
p = d(qn($e(e.path), t, e)), Zt(p, e.resolution), r.push(p), ei(this, t, e.x || "x", p, "x", e.unitX || "px"), ei(this, t, e.y || "y", p, "y", e.unitY || "px");
|
|
2581
|
+
i.vars.immediateRender && this.render(i.progress(), this);
|
|
2582
|
+
},
|
|
2583
|
+
render: function(t, e) {
|
|
2584
|
+
var i = e.rawPaths, r = i.length, n = e._pt;
|
|
2585
|
+
if (e.tween._time || !Ar()) {
|
|
2586
|
+
for (t > 1 ? t = 1 : t < 0 && (t = 0); r--; )
|
|
2587
|
+
Or(i[r], t, !r && e.rotate, i[r]);
|
|
2588
|
+
for (; n; )
|
|
2589
|
+
n.set(n.t, n.p, n.path[n.pp] + n.u, n.d, t), n = n._next;
|
|
2590
|
+
e.rotate && e.rSet(e.target, e.rProp, i[0].angle * (e.radians ? ca : 1) + e.rOffset + e.ru, e, t);
|
|
2591
|
+
} else
|
|
2592
|
+
e.styles.revert();
|
|
2593
|
+
},
|
|
2594
|
+
getLength: function(t) {
|
|
2595
|
+
return Zt($e(t)).totalLength;
|
|
2596
|
+
},
|
|
2597
|
+
sliceRawPath: Nn,
|
|
2598
|
+
getRawPath: $e,
|
|
2599
|
+
pointsToSegment: Li,
|
|
2600
|
+
stringToRawPath: Ee,
|
|
2601
|
+
rawPathToString: rr,
|
|
2602
|
+
transformRawPath: ne,
|
|
2603
|
+
getGlobalMatrix: ue,
|
|
2604
|
+
getPositionOnPath: Or,
|
|
2605
|
+
cacheRawPathMeasurements: Zt,
|
|
2606
|
+
convertToPath: function(t, e) {
|
|
2607
|
+
return Ni(t).map(function(i) {
|
|
2608
|
+
return jo(i, e !== !1);
|
|
2609
|
+
});
|
|
2610
|
+
},
|
|
2611
|
+
convertCoordinates: function(t, e, i) {
|
|
2612
|
+
var r = ue(e, !0, !0).multiply(ue(t));
|
|
2613
|
+
return i ? r.apply(i) : r;
|
|
2614
|
+
},
|
|
2615
|
+
getAlignMatrix: Fi,
|
|
2616
|
+
getRelativePosition: function(t, e, i, r) {
|
|
2617
|
+
var n = Fi(t, e, i, r);
|
|
2618
|
+
return {
|
|
2619
|
+
x: n.e,
|
|
2620
|
+
y: n.f
|
|
2621
|
+
};
|
|
2622
|
+
},
|
|
2623
|
+
arrayToRawPath: function(t, e) {
|
|
2624
|
+
e = e || {};
|
|
2625
|
+
var i = me(me([], t, e.x || "x", 0), t, e.y || "y", 1);
|
|
2626
|
+
return e.relative && $n(i), [e.type === "cubic" ? i : Li(i, e.curviness)];
|
|
2627
|
+
}
|
|
2628
|
+
};
|
|
2629
|
+
da() && pt.registerPlugin(Gn);
|
|
2630
|
+
Re.registerPlugin(Gn);
|
|
2026
2631
|
export {
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2632
|
+
eo as B,
|
|
2633
|
+
Ne as C,
|
|
2634
|
+
to as E,
|
|
2635
|
+
js as L,
|
|
2636
|
+
Gn as M,
|
|
2637
|
+
Us as P,
|
|
2638
|
+
Qs as Q,
|
|
2639
|
+
no as S,
|
|
2640
|
+
Ao as T,
|
|
2641
|
+
ir as a,
|
|
2642
|
+
X as b,
|
|
2643
|
+
q as c,
|
|
2644
|
+
$s as d,
|
|
2645
|
+
qs as e,
|
|
2646
|
+
Gs as f,
|
|
2647
|
+
Re as g,
|
|
2648
|
+
Ws as h,
|
|
2649
|
+
ya as i,
|
|
2650
|
+
Zs as j,
|
|
2651
|
+
Hs as k,
|
|
2652
|
+
Ks as l,
|
|
2653
|
+
Js as m,
|
|
2654
|
+
io as n,
|
|
2655
|
+
ro as o,
|
|
2656
|
+
so as p,
|
|
2657
|
+
oo as q
|
|
2051
2658
|
};
|