lumina-slides 8.0.0 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -84
- package/dist/layout-embedded.json +65 -0
- package/dist/lumina-slides.js +1208 -1061
- package/dist/lumina-slides.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +19 -5
package/dist/lumina-slides.js
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { reactive as
|
|
5
|
-
const
|
|
1
|
+
var cn = Object.defineProperty;
|
|
2
|
+
var hn = (o, t, e) => t in o ? cn(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var ze = (o, t, e) => hn(o, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { reactive as dn, readonly as _n, inject as qe, computed as dt, onMounted as ar, onUnmounted as or, defineComponent as Lt, ref as lr, createElementBlock as B, openBlock as A, createElementVNode as O, createCommentVNode as gt, createVNode as Li, normalizeStyle as ur, Transition as $i, withCtx as Ht, withModifiers as pn, toDisplayString as I, unref as kt, createBlock as Kt, resolveDynamicComponent as fr, normalizeClass as U, nextTick as mn, renderSlot as Ni, Fragment as Xe, renderList as je, createTextVNode as gn, createApp as yn } from "vue";
|
|
5
|
+
const Bi = {
|
|
6
|
+
// Icons
|
|
7
|
+
"i:s": "star",
|
|
8
|
+
"i:u": "users",
|
|
9
|
+
"i:c": "check",
|
|
10
|
+
"i:a": "arrow-right",
|
|
11
|
+
// Colors (Tailwind standard approximation)
|
|
12
|
+
"c:p": "#6366f1",
|
|
13
|
+
// Primary (Indigo)
|
|
14
|
+
"c:s": "#10b981",
|
|
15
|
+
// Success (Emerald)
|
|
16
|
+
"c:d": "#ef4444",
|
|
17
|
+
// Danger (Red)
|
|
18
|
+
// Variants
|
|
19
|
+
"v:g": "gradient",
|
|
20
|
+
"v:o": "outlined",
|
|
21
|
+
"v:s": "soft"
|
|
22
|
+
};
|
|
23
|
+
function vn(o) {
|
|
24
|
+
return o in Bi ? Bi[o] : o;
|
|
25
|
+
}
|
|
26
|
+
const Ce = Symbol("LuminaStore"), xn = {
|
|
6
27
|
loop: !1,
|
|
7
28
|
navigation: !0,
|
|
8
29
|
keyboard: !0,
|
|
@@ -28,60 +49,89 @@ const Oe = Symbol("LuminaStore"), pn = {
|
|
|
28
49
|
ease: "power3.out"
|
|
29
50
|
}
|
|
30
51
|
};
|
|
31
|
-
function
|
|
32
|
-
|
|
52
|
+
function ie(o) {
|
|
53
|
+
if (typeof o == "string") return vn(o);
|
|
54
|
+
if (Array.isArray(o)) return o.map(ie);
|
|
55
|
+
if (o && typeof o == "object") {
|
|
56
|
+
const t = {};
|
|
57
|
+
for (const e in o)
|
|
58
|
+
t[e] = ie(o[e]);
|
|
59
|
+
return t;
|
|
60
|
+
}
|
|
61
|
+
return o;
|
|
62
|
+
}
|
|
63
|
+
function cr(o, t) {
|
|
64
|
+
if (typeof o != "object" || o === null || typeof t != "object" || t === null) return t;
|
|
65
|
+
if (Array.isArray(t))
|
|
66
|
+
return t.map(ie);
|
|
67
|
+
const e = { ...o };
|
|
68
|
+
for (const i in t)
|
|
69
|
+
t[i] === Object(t[i]) ? i in o ? e[i] = cr(o[i], t[i]) : Object.assign(e, { [i]: ie(t[i]) }) : Object.assign(e, { [i]: ie(t[i]) });
|
|
70
|
+
return e;
|
|
71
|
+
}
|
|
72
|
+
function bn(o = {}) {
|
|
73
|
+
const t = dn({
|
|
33
74
|
deck: null,
|
|
34
75
|
currentIndex: 0,
|
|
35
|
-
options: { ...
|
|
36
|
-
isReady: !1
|
|
76
|
+
options: { ...xn, ...o },
|
|
77
|
+
isReady: !1,
|
|
78
|
+
actionHistory: []
|
|
37
79
|
}), e = () => !t.deck || t.deck.slides.length === 0 ? null : t.deck.slides[t.currentIndex] || null, i = () => t.deck ? t.options.loop ? !0 : t.currentIndex < t.deck.slides.length - 1 : !1, r = () => t.deck ? t.options.loop ? !0 : t.currentIndex > 0 : !1, n = () => !t.deck || t.deck.slides.length <= 1 ? 0 : t.currentIndex / (t.deck.slides.length - 1);
|
|
38
|
-
function s(
|
|
39
|
-
t.options = { ...t.options, ...
|
|
80
|
+
function s(d) {
|
|
81
|
+
t.options = { ...t.options, ...d }, d.theme && (d.theme, t.options.theme = d.theme), d.ui && (t.options.ui = { ...t.options.ui, ...d.ui }), d.keys && (t.options.keys = { ...t.options.keys, ...d.keys }), d.animation && (t.options.animation = { ...t.options.animation, ...d.animation });
|
|
40
82
|
}
|
|
41
|
-
function a(
|
|
42
|
-
if (!
|
|
83
|
+
function a(d) {
|
|
84
|
+
if (!d || !Array.isArray(d.slides)) {
|
|
43
85
|
console.error("[LuminaStore] Invalid deck format");
|
|
44
86
|
return;
|
|
45
87
|
}
|
|
46
|
-
t.deck =
|
|
88
|
+
t.deck = ie(d), t.currentIndex = 0, t.isReady = !0, t.actionHistory = [];
|
|
47
89
|
}
|
|
48
|
-
function l() {
|
|
49
|
-
|
|
90
|
+
function l(d) {
|
|
91
|
+
t.deck && (t.deck = cr(t.deck, d));
|
|
92
|
+
}
|
|
93
|
+
function u(d) {
|
|
94
|
+
t.actionHistory.push(d), t.actionHistory.length > 50 && t.actionHistory.shift();
|
|
95
|
+
}
|
|
96
|
+
function f() {
|
|
97
|
+
var p;
|
|
50
98
|
if (!i()) return;
|
|
51
|
-
const
|
|
52
|
-
t.options.loop ? t.currentIndex = (t.currentIndex + 1) %
|
|
99
|
+
const d = ((p = t.deck) == null ? void 0 : p.slides.length) || 0;
|
|
100
|
+
t.options.loop ? t.currentIndex = (t.currentIndex + 1) % d : t.currentIndex++;
|
|
53
101
|
}
|
|
54
|
-
function
|
|
55
|
-
var
|
|
102
|
+
function h() {
|
|
103
|
+
var p;
|
|
56
104
|
if (!r()) return;
|
|
57
|
-
const
|
|
58
|
-
t.options.loop ? t.currentIndex = (t.currentIndex - 1 +
|
|
105
|
+
const d = ((p = t.deck) == null ? void 0 : p.slides.length) || 0;
|
|
106
|
+
t.options.loop ? t.currentIndex = (t.currentIndex - 1 + d) % d : t.currentIndex--;
|
|
59
107
|
}
|
|
60
|
-
function
|
|
61
|
-
t.deck &&
|
|
108
|
+
function _(d) {
|
|
109
|
+
t.deck && d >= 0 && d < t.deck.slides.length && (t.currentIndex = d);
|
|
62
110
|
}
|
|
63
111
|
return {
|
|
64
|
-
state:
|
|
112
|
+
state: _n(t),
|
|
65
113
|
currentSlide: e,
|
|
66
114
|
hasNext: i,
|
|
67
115
|
hasPrev: r,
|
|
68
116
|
progress: n,
|
|
69
117
|
setOptions: s,
|
|
70
118
|
loadDeck: a,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
119
|
+
patchDeck: l,
|
|
120
|
+
recordAction: u,
|
|
121
|
+
next: f,
|
|
122
|
+
prev: h,
|
|
123
|
+
goto: _
|
|
74
124
|
};
|
|
75
125
|
}
|
|
76
|
-
function
|
|
77
|
-
const o =
|
|
126
|
+
function wn() {
|
|
127
|
+
const o = qe(Ce);
|
|
78
128
|
if (!o)
|
|
79
129
|
throw new Error("Lumina: Component must be used within a Lumina instance.");
|
|
80
130
|
return {
|
|
81
131
|
// State
|
|
82
|
-
slide:
|
|
83
|
-
index:
|
|
84
|
-
total:
|
|
132
|
+
slide: dt(() => o.currentSlide()),
|
|
133
|
+
index: dt(() => o.state.currentIndex),
|
|
134
|
+
total: dt(() => {
|
|
85
135
|
var t;
|
|
86
136
|
return ((t = o.state.deck) == null ? void 0 : t.slides.length) || 0;
|
|
87
137
|
}),
|
|
@@ -92,8 +142,8 @@ function gn() {
|
|
|
92
142
|
options: o.state.options
|
|
93
143
|
};
|
|
94
144
|
}
|
|
95
|
-
function
|
|
96
|
-
const o =
|
|
145
|
+
function Tn() {
|
|
146
|
+
const o = qe(Ce);
|
|
97
147
|
if (!o) return;
|
|
98
148
|
let t = 0;
|
|
99
149
|
const e = 300, i = (r) => {
|
|
@@ -105,15 +155,15 @@ function yn() {
|
|
|
105
155
|
const a = ((u = n.keys) == null ? void 0 : u.next) || [], l = ((f = n.keys) == null ? void 0 : f.prev) || [];
|
|
106
156
|
a.includes(r.key) ? (o.next(), t = s) : l.includes(r.key) && (o.prev(), t = s);
|
|
107
157
|
};
|
|
108
|
-
|
|
158
|
+
ar(() => {
|
|
109
159
|
window.addEventListener("keydown", i);
|
|
110
|
-
}),
|
|
160
|
+
}), or(() => {
|
|
111
161
|
window.removeEventListener("keydown", i);
|
|
112
162
|
});
|
|
113
163
|
}
|
|
114
|
-
class
|
|
164
|
+
class kn {
|
|
115
165
|
constructor() {
|
|
116
|
-
|
|
166
|
+
ze(this, "handlers", /* @__PURE__ */ new Map());
|
|
117
167
|
}
|
|
118
168
|
on(t, e) {
|
|
119
169
|
this.handlers.has(t) || this.handlers.set(t, /* @__PURE__ */ new Set()), this.handlers.get(t).add(e);
|
|
@@ -136,13 +186,13 @@ class vn {
|
|
|
136
186
|
this.handlers.clear();
|
|
137
187
|
}
|
|
138
188
|
}
|
|
139
|
-
const
|
|
140
|
-
function
|
|
189
|
+
const Zt = new kn();
|
|
190
|
+
function St(o) {
|
|
141
191
|
if (o === void 0)
|
|
142
192
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
143
193
|
return o;
|
|
144
194
|
}
|
|
145
|
-
function
|
|
195
|
+
function hr(o, t) {
|
|
146
196
|
o.prototype = Object.create(t.prototype), o.prototype.constructor = o, o.__proto__ = t;
|
|
147
197
|
}
|
|
148
198
|
/*!
|
|
@@ -153,195 +203,195 @@ function or(o, t) {
|
|
|
153
203
|
* Subject to the terms at https://gsap.com/standard-license
|
|
154
204
|
* @author: Jack Doyle, jack@greensock.com
|
|
155
205
|
*/
|
|
156
|
-
var
|
|
206
|
+
var ut = {
|
|
157
207
|
autoSleep: 120,
|
|
158
208
|
force3D: "auto",
|
|
159
209
|
nullTargetWarn: 1,
|
|
160
210
|
units: {
|
|
161
211
|
lineHeight: ""
|
|
162
212
|
}
|
|
163
|
-
},
|
|
213
|
+
}, ae = {
|
|
164
214
|
duration: 0.5,
|
|
165
215
|
overwrite: !1,
|
|
166
216
|
delay: 0
|
|
167
|
-
},
|
|
217
|
+
}, yi, K, F, _t = 1e8, E = 1 / _t, ni = Math.PI * 2, Sn = ni / 4, On = 0, dr = Math.sqrt, Pn = Math.cos, Cn = Math.sin, G = function(t) {
|
|
168
218
|
return typeof t == "string";
|
|
169
219
|
}, V = function(t) {
|
|
170
220
|
return typeof t == "function";
|
|
171
|
-
},
|
|
221
|
+
}, Pt = function(t) {
|
|
172
222
|
return typeof t == "number";
|
|
173
|
-
},
|
|
223
|
+
}, vi = function(t) {
|
|
174
224
|
return typeof t > "u";
|
|
175
|
-
},
|
|
225
|
+
}, wt = function(t) {
|
|
176
226
|
return typeof t == "object";
|
|
177
|
-
},
|
|
227
|
+
}, tt = function(t) {
|
|
178
228
|
return t !== !1;
|
|
179
|
-
},
|
|
229
|
+
}, xi = function() {
|
|
180
230
|
return typeof window < "u";
|
|
181
231
|
}, Ee = function(t) {
|
|
182
|
-
return V(t) ||
|
|
183
|
-
},
|
|
184
|
-
}, Q = Array.isArray,
|
|
185
|
-
return (
|
|
186
|
-
},
|
|
232
|
+
return V(t) || G(t);
|
|
233
|
+
}, _r = typeof ArrayBuffer == "function" && ArrayBuffer.isView || function() {
|
|
234
|
+
}, Q = Array.isArray, Mn = /random\([^)]+\)/g, Dn = /,\s*/g, Vi = /(?:-?\.?\d|\.)+/gi, pr = /[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g, te = /[-+=.]*\d+[.e-]*\d*[a-z%]*/g, Ke = /[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi, mr = /[+-]=-?[.\d]+/, An = /[^,'"\[\]\s]+/gi, zn = /^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i, $, vt, si, bi, ft = {}, Le = {}, gr, yr = function(t) {
|
|
235
|
+
return (Le = oe(t, ft)) && nt;
|
|
236
|
+
}, wi = function(t, e) {
|
|
187
237
|
return console.warn("Invalid property", t, "set to", e, "Missing plugin? gsap.registerPlugin()");
|
|
188
|
-
},
|
|
238
|
+
}, be = function(t, e) {
|
|
189
239
|
return !e && console.warn(t);
|
|
190
|
-
},
|
|
191
|
-
return t && (
|
|
192
|
-
},
|
|
240
|
+
}, vr = function(t, e) {
|
|
241
|
+
return t && (ft[t] = e) && Le && (Le[t] = e) || ft;
|
|
242
|
+
}, we = function() {
|
|
193
243
|
return 0;
|
|
194
|
-
},
|
|
244
|
+
}, En = {
|
|
195
245
|
suppressEvents: !0,
|
|
196
246
|
isStart: !0,
|
|
197
247
|
kill: !1
|
|
198
248
|
}, Re = {
|
|
199
249
|
suppressEvents: !0,
|
|
200
250
|
kill: !1
|
|
201
|
-
},
|
|
251
|
+
}, Rn = {
|
|
202
252
|
suppressEvents: !0
|
|
203
|
-
},
|
|
253
|
+
}, Ti = {}, zt = [], ai = {}, xr, st = {}, Je = {}, Ui = 30, Ie = [], ki = "", Si = function(t) {
|
|
204
254
|
var e = t[0], i, r;
|
|
205
|
-
if (
|
|
206
|
-
for (r =
|
|
255
|
+
if (wt(e) || V(e) || (t = [t]), !(i = (e._gsap || {}).harness)) {
|
|
256
|
+
for (r = Ie.length; r-- && !Ie[r].targetTest(e); )
|
|
207
257
|
;
|
|
208
|
-
i =
|
|
258
|
+
i = Ie[r];
|
|
209
259
|
}
|
|
210
260
|
for (r = t.length; r--; )
|
|
211
|
-
t[r] && (t[r]._gsap || (t[r]._gsap = new
|
|
261
|
+
t[r] && (t[r]._gsap || (t[r]._gsap = new qr(t[r], i))) || t.splice(r, 1);
|
|
212
262
|
return t;
|
|
213
|
-
},
|
|
214
|
-
return t._gsap ||
|
|
215
|
-
},
|
|
216
|
-
return (i = t[e]) && V(i) ? t[e]() :
|
|
217
|
-
},
|
|
263
|
+
}, Xt = function(t) {
|
|
264
|
+
return t._gsap || Si(pt(t))[0]._gsap;
|
|
265
|
+
}, br = function(t, e, i) {
|
|
266
|
+
return (i = t[e]) && V(i) ? t[e]() : vi(i) && t.getAttribute && t.getAttribute(e) || i;
|
|
267
|
+
}, et = function(t, e) {
|
|
218
268
|
return (t = t.split(",")).forEach(e) || t;
|
|
219
|
-
},
|
|
269
|
+
}, Y = function(t) {
|
|
220
270
|
return Math.round(t * 1e5) / 1e5 || 0;
|
|
221
271
|
}, L = function(t) {
|
|
222
272
|
return Math.round(t * 1e7) / 1e7 || 0;
|
|
223
|
-
},
|
|
273
|
+
}, re = function(t, e) {
|
|
224
274
|
var i = e.charAt(0), r = parseFloat(e.substr(2));
|
|
225
275
|
return t = parseFloat(t), i === "+" ? t + r : i === "-" ? t - r : i === "*" ? t * r : t / r;
|
|
226
|
-
},
|
|
276
|
+
}, In = function(t, e) {
|
|
227
277
|
for (var i = e.length, r = 0; t.indexOf(e[r]) < 0 && ++r < i; )
|
|
228
278
|
;
|
|
229
279
|
return r < i;
|
|
230
|
-
},
|
|
231
|
-
var t =
|
|
232
|
-
for (
|
|
280
|
+
}, $e = function() {
|
|
281
|
+
var t = zt.length, e = zt.slice(0), i, r;
|
|
282
|
+
for (ai = {}, zt.length = 0, i = 0; i < t; i++)
|
|
233
283
|
r = e[i], r && r._lazy && (r.render(r._lazy[0], r._lazy[1], !0)._lazy = 0);
|
|
234
|
-
},
|
|
284
|
+
}, Oi = function(t) {
|
|
235
285
|
return !!(t._initted || t._startAt || t.add);
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
},
|
|
286
|
+
}, wr = function(t, e, i, r) {
|
|
287
|
+
zt.length && !K && $e(), t.render(e, i, !!(K && e < 0 && Oi(t))), zt.length && !K && $e();
|
|
288
|
+
}, Tr = function(t) {
|
|
239
289
|
var e = parseFloat(t);
|
|
240
|
-
return (e || e === 0) && (t + "").match(
|
|
241
|
-
},
|
|
290
|
+
return (e || e === 0) && (t + "").match(An).length < 2 ? e : G(t) ? t.trim() : t;
|
|
291
|
+
}, kr = function(t) {
|
|
242
292
|
return t;
|
|
243
|
-
},
|
|
293
|
+
}, ct = function(t, e) {
|
|
244
294
|
for (var i in e)
|
|
245
295
|
i in t || (t[i] = e[i]);
|
|
246
296
|
return t;
|
|
247
|
-
},
|
|
297
|
+
}, Fn = function(t) {
|
|
248
298
|
return function(e, i) {
|
|
249
299
|
for (var r in i)
|
|
250
300
|
r in e || r === "duration" && t || r === "ease" || (e[r] = i[r]);
|
|
251
301
|
};
|
|
252
|
-
},
|
|
302
|
+
}, oe = function(t, e) {
|
|
253
303
|
for (var i in e)
|
|
254
304
|
t[i] = e[i];
|
|
255
305
|
return t;
|
|
256
|
-
},
|
|
306
|
+
}, Yi = function o(t, e) {
|
|
257
307
|
for (var i in e)
|
|
258
|
-
i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] =
|
|
308
|
+
i !== "__proto__" && i !== "constructor" && i !== "prototype" && (t[i] = wt(e[i]) ? o(t[i] || (t[i] = {}), e[i]) : e[i]);
|
|
259
309
|
return t;
|
|
260
|
-
},
|
|
310
|
+
}, Ne = function(t, e) {
|
|
261
311
|
var i = {}, r;
|
|
262
312
|
for (r in t)
|
|
263
313
|
r in e || (i[r] = t[r]);
|
|
264
314
|
return i;
|
|
265
|
-
},
|
|
266
|
-
var e = t.parent || $, i = t.keyframes ?
|
|
267
|
-
if (
|
|
315
|
+
}, ye = function(t) {
|
|
316
|
+
var e = t.parent || $, i = t.keyframes ? Fn(Q(t.keyframes)) : ct;
|
|
317
|
+
if (tt(t.inherit))
|
|
268
318
|
for (; e; )
|
|
269
319
|
i(t, e.vars.defaults), e = e.parent || e._dp;
|
|
270
320
|
return t;
|
|
271
|
-
},
|
|
321
|
+
}, Ln = function(t, e) {
|
|
272
322
|
for (var i = t.length, r = i === e.length; r && i-- && t[i] === e[i]; )
|
|
273
323
|
;
|
|
274
324
|
return i < 0;
|
|
275
|
-
},
|
|
325
|
+
}, Sr = function(t, e, i, r, n) {
|
|
276
326
|
var s = t[r], a;
|
|
277
327
|
if (n)
|
|
278
328
|
for (a = e[n]; s && s[n] > a; )
|
|
279
329
|
s = s._prev;
|
|
280
330
|
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;
|
|
281
|
-
},
|
|
331
|
+
}, We = function(t, e, i, r) {
|
|
282
332
|
i === void 0 && (i = "_first"), r === void 0 && (r = "_last");
|
|
283
333
|
var n = e._prev, s = e._next;
|
|
284
334
|
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;
|
|
285
|
-
},
|
|
335
|
+
}, Rt = function(t, e) {
|
|
286
336
|
t.parent && (!e || t.parent.autoRemoveChildren) && t.parent.remove && t.parent.remove(t), t._act = 0;
|
|
287
|
-
},
|
|
337
|
+
}, jt = function(t, e) {
|
|
288
338
|
if (t && (!e || e._end > t._dur || e._start < 0))
|
|
289
339
|
for (var i = t; i; )
|
|
290
340
|
i._dirty = 1, i = i.parent;
|
|
291
341
|
return t;
|
|
292
|
-
},
|
|
342
|
+
}, $n = function(t) {
|
|
293
343
|
for (var e = t.parent; e && e.parent; )
|
|
294
344
|
e._dirty = 1, e.totalDuration(), e = e.parent;
|
|
295
345
|
return t;
|
|
296
|
-
},
|
|
346
|
+
}, oi = function(t, e, i, r) {
|
|
297
347
|
return t._startAt && (K ? t._startAt.revert(Re) : t.vars.immediateRender && !t.vars.autoRevert || t._startAt.render(e, !0, r));
|
|
298
|
-
},
|
|
348
|
+
}, Nn = function o(t) {
|
|
299
349
|
return !t || t._ts && o(t.parent);
|
|
300
|
-
},
|
|
301
|
-
return t._repeat ?
|
|
302
|
-
},
|
|
350
|
+
}, qi = function(t) {
|
|
351
|
+
return t._repeat ? le(t._tTime, t = t.duration() + t._rDelay) * t : 0;
|
|
352
|
+
}, le = function(t, e) {
|
|
303
353
|
var i = Math.floor(t = L(t / e));
|
|
304
354
|
return t && i === t ? i - 1 : i;
|
|
305
|
-
},
|
|
355
|
+
}, Be = function(t, e) {
|
|
306
356
|
return (t - e._start) * e._ts + (e._ts >= 0 ? 0 : e._dirty ? e.totalDuration() : e._tDur);
|
|
307
|
-
},
|
|
308
|
-
return t._end = L(t._start + (t._tDur / Math.abs(t._ts || t._rts ||
|
|
309
|
-
},
|
|
357
|
+
}, Ge = function(t) {
|
|
358
|
+
return t._end = L(t._start + (t._tDur / Math.abs(t._ts || t._rts || E) || 0));
|
|
359
|
+
}, He = function(t, e) {
|
|
310
360
|
var i = t._dp;
|
|
311
|
-
return i && i.smoothChildTiming && t._ts && (t._start = L(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)),
|
|
312
|
-
},
|
|
361
|
+
return i && i.smoothChildTiming && t._ts && (t._start = L(i._time - (t._ts > 0 ? e / t._ts : ((t._dirty ? t.totalDuration() : t._tDur) - e) / -t._ts)), Ge(t), i._dirty || jt(i, t)), t;
|
|
362
|
+
}, Or = function(t, e) {
|
|
313
363
|
var i;
|
|
314
|
-
if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i =
|
|
364
|
+
if ((e._time || !e._dur && e._initted || e._start < t._time && (e._dur || !e.add)) && (i = Be(t.rawTime(), e), (!e._dur || Me(0, e.totalDuration(), i) - e._tTime > E) && e.render(i, !0)), jt(t, e)._dp && t._initted && t._time >= t._dur && t._ts) {
|
|
315
365
|
if (t._dur < t.duration())
|
|
316
366
|
for (i = t; i._dp; )
|
|
317
367
|
i.rawTime() >= 0 && i.totalTime(i._tTime), i = i._dp;
|
|
318
|
-
t._zTime = -
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
|
-
return e.parent &&
|
|
322
|
-
},
|
|
323
|
-
return (
|
|
324
|
-
},
|
|
325
|
-
if (
|
|
368
|
+
t._zTime = -E;
|
|
369
|
+
}
|
|
370
|
+
}, xt = function(t, e, i, r) {
|
|
371
|
+
return e.parent && Rt(e), e._start = L((Pt(i) ? i : i || t !== $ ? ht(t, i, e) : t._time) + e._delay), e._end = L(e._start + (e.totalDuration() / Math.abs(e.timeScale()) || 0)), Sr(t, e, "_first", "_last", t._sort ? "_start" : 0), li(e) || (t._recent = e), r || Or(t, e), t._ts < 0 && He(t, t._tTime), t;
|
|
372
|
+
}, Pr = function(t, e) {
|
|
373
|
+
return (ft.ScrollTrigger || wi("scrollTrigger", e)) && ft.ScrollTrigger.create(e, t);
|
|
374
|
+
}, Cr = function(t, e, i, r, n) {
|
|
375
|
+
if (Ci(t, e, n), !t._initted)
|
|
326
376
|
return 1;
|
|
327
|
-
if (!i && t._pt && !K && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) &&
|
|
328
|
-
return
|
|
329
|
-
},
|
|
377
|
+
if (!i && t._pt && !K && (t._dur && t.vars.lazy !== !1 || !t._dur && t.vars.lazy) && xr !== at.frame)
|
|
378
|
+
return zt.push(t), t._lazy = [n, r], 1;
|
|
379
|
+
}, Bn = function o(t) {
|
|
330
380
|
var e = t.parent;
|
|
331
381
|
return e && e._ts && e._initted && !e._lock && (e.rawTime() < 0 || o(e));
|
|
332
|
-
},
|
|
382
|
+
}, li = function(t) {
|
|
333
383
|
var e = t.data;
|
|
334
384
|
return e === "isFromStart" || e === "isStart";
|
|
335
|
-
},
|
|
336
|
-
var n = t.ratio, s = e < 0 || !e && (!t._start &&
|
|
337
|
-
if (a && t._repeat && (l =
|
|
338
|
-
if (!t._initted &&
|
|
385
|
+
}, Vn = function(t, e, i, r) {
|
|
386
|
+
var n = t.ratio, s = e < 0 || !e && (!t._start && Bn(t) && !(!t._initted && li(t)) || (t._ts < 0 || t._dp._ts < 0) && !li(t)) ? 0 : 1, a = t._rDelay, l = 0, u, f, h;
|
|
387
|
+
if (a && t._repeat && (l = Me(0, t._tDur, e), f = le(l, a), t._yoyo && f & 1 && (s = 1 - s), f !== le(t._tTime, a) && (n = 1 - s, t.vars.repeatRefresh && t._initted && t.invalidate())), s !== n || K || r || t._zTime === E || !e && t._zTime) {
|
|
388
|
+
if (!t._initted && Cr(t, e, r, i, l))
|
|
339
389
|
return;
|
|
340
|
-
for (h = t._zTime, t._zTime = e || (i ?
|
|
390
|
+
for (h = t._zTime, t._zTime = e || (i ? E : 0), i || (i = e && !h), t.ratio = s, t._from && (s = 1 - s), t._time = 0, t._tTime = l, u = t._pt; u; )
|
|
341
391
|
u.r(s, u.d), u = u._next;
|
|
342
|
-
e < 0 &&
|
|
392
|
+
e < 0 && oi(t, e, i, !0), t._onUpdate && !i && ot(t, "onUpdate"), l && t._repeat && !i && t.parent && ot(t, "onRepeat"), (e >= t._tDur || e < 0) && t.ratio === s && (s && Rt(t, 1), !i && !K && (ot(t, s ? "onComplete" : "onReverseComplete", !0), t._prom && t._prom()));
|
|
343
393
|
} else t._zTime || (t._zTime = e);
|
|
344
|
-
},
|
|
394
|
+
}, Un = function(t, e, i) {
|
|
345
395
|
var r;
|
|
346
396
|
if (i > e)
|
|
347
397
|
for (r = t._first; r && r._start <= i; ) {
|
|
@@ -355,98 +405,98 @@ var lt = {
|
|
|
355
405
|
return r;
|
|
356
406
|
r = r._prev;
|
|
357
407
|
}
|
|
358
|
-
},
|
|
408
|
+
}, ue = function(t, e, i, r) {
|
|
359
409
|
var n = t._repeat, s = L(e) || 0, a = t._tTime / t._tDur;
|
|
360
|
-
return a && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : L(s * (n + 1) + t._rDelay * n) : s, a > 0 && !r &&
|
|
361
|
-
},
|
|
362
|
-
return t instanceof Z ?
|
|
363
|
-
},
|
|
410
|
+
return a && !r && (t._time *= s / t._dur), t._dur = s, t._tDur = n ? n < 0 ? 1e10 : L(s * (n + 1) + t._rDelay * n) : s, a > 0 && !r && He(t, t._tTime = t._tDur * a), t.parent && Ge(t), i || jt(t.parent, t), t;
|
|
411
|
+
}, Xi = function(t) {
|
|
412
|
+
return t instanceof Z ? jt(t) : ue(t, t._dur);
|
|
413
|
+
}, Yn = {
|
|
364
414
|
_start: 0,
|
|
365
|
-
endTime:
|
|
366
|
-
totalDuration:
|
|
415
|
+
endTime: we,
|
|
416
|
+
totalDuration: we
|
|
367
417
|
}, ht = function o(t, e, i) {
|
|
368
|
-
var r = t.labels, n = t._recent ||
|
|
369
|
-
return
|
|
370
|
-
},
|
|
371
|
-
var r =
|
|
418
|
+
var r = t.labels, n = t._recent || Yn, s = t.duration() >= _t ? n.endTime(!1) : t._dur, a, l, u;
|
|
419
|
+
return G(e) && (isNaN(e) || e in r) ? (l = e.charAt(0), u = e.substr(-1) === "%", a = e.indexOf("="), l === "<" || l === ">" ? (a >= 0 && (e = e.replace(/=/, "")), (l === "<" ? n._start : n.endTime(n._repeat >= 0)) + (parseFloat(e.substr(1)) || 0) * (u ? (a < 0 ? n : i).totalDuration() / 100 : 1)) : a < 0 ? (e in r || (r[e] = s), r[e]) : (l = parseFloat(e.charAt(a - 1) + e.substr(a + 1)), u && i && (l = l / 100 * (Q(i) ? i[0] : i).totalDuration()), a > 1 ? o(t, e.substr(0, a - 1), i) + l : s + l)) : e == null ? s : +e;
|
|
420
|
+
}, ve = function(t, e, i) {
|
|
421
|
+
var r = Pt(e[1]), n = (r ? 2 : 1) + (t < 2 ? 0 : 1), s = e[n], a, l;
|
|
372
422
|
if (r && (s.duration = e[1]), s.parent = i, t) {
|
|
373
423
|
for (a = s, l = i; l && !("immediateRender" in a); )
|
|
374
|
-
a = l.vars.defaults || {}, l =
|
|
375
|
-
s.immediateRender =
|
|
424
|
+
a = l.vars.defaults || {}, l = tt(l.vars.inherit) && l.parent;
|
|
425
|
+
s.immediateRender = tt(a.immediateRender), t < 2 ? s.runBackwards = 1 : s.startAt = e[n - 1];
|
|
376
426
|
}
|
|
377
|
-
return new
|
|
378
|
-
},
|
|
427
|
+
return new X(e[0], s, e[n + 1]);
|
|
428
|
+
}, $t = function(t, e) {
|
|
379
429
|
return t || t === 0 ? e(t) : e;
|
|
380
|
-
},
|
|
430
|
+
}, Me = function(t, e, i) {
|
|
381
431
|
return i < t ? t : i > e ? e : i;
|
|
382
|
-
},
|
|
383
|
-
return !
|
|
384
|
-
},
|
|
385
|
-
return
|
|
386
|
-
return
|
|
432
|
+
}, J = function(t, e) {
|
|
433
|
+
return !G(t) || !(e = zn.exec(t)) ? "" : e[1];
|
|
434
|
+
}, qn = function(t, e, i) {
|
|
435
|
+
return $t(i, function(r) {
|
|
436
|
+
return Me(t, e, r);
|
|
387
437
|
});
|
|
388
|
-
},
|
|
389
|
-
return t &&
|
|
390
|
-
},
|
|
438
|
+
}, ui = [].slice, Mr = function(t, e) {
|
|
439
|
+
return t && wt(t) && "length" in t && (!e && !t.length || t.length - 1 in t && wt(t[0])) && !t.nodeType && t !== vt;
|
|
440
|
+
}, Xn = function(t, e, i) {
|
|
391
441
|
return i === void 0 && (i = []), t.forEach(function(r) {
|
|
392
442
|
var n;
|
|
393
|
-
return
|
|
443
|
+
return G(r) && !e || Mr(r, 1) ? (n = i).push.apply(n, pt(r)) : i.push(r);
|
|
394
444
|
}) || i;
|
|
395
|
-
},
|
|
396
|
-
return F && !e && F.selector ? F.selector(t) :
|
|
397
|
-
},
|
|
398
|
-
return t =
|
|
445
|
+
}, pt = function(t, e, i) {
|
|
446
|
+
return F && !e && F.selector ? F.selector(t) : G(t) && !i && (si || !fe()) ? ui.call((e || bi).querySelectorAll(t), 0) : Q(t) ? Xn(t, i) : Mr(t) ? ui.call(t, 0) : t ? [t] : [];
|
|
447
|
+
}, fi = function(t) {
|
|
448
|
+
return t = pt(t)[0] || be("Invalid scope") || {}, function(e) {
|
|
399
449
|
var i = t.current || t.nativeElement || t;
|
|
400
|
-
return
|
|
450
|
+
return pt(e, i.querySelectorAll ? i : i === t ? be("Invalid scope") || bi.createElement("div") : t);
|
|
401
451
|
};
|
|
402
|
-
},
|
|
452
|
+
}, Dr = function(t) {
|
|
403
453
|
return t.sort(function() {
|
|
404
454
|
return 0.5 - Math.random();
|
|
405
455
|
});
|
|
406
|
-
},
|
|
456
|
+
}, Ar = function(t) {
|
|
407
457
|
if (V(t))
|
|
408
458
|
return t;
|
|
409
|
-
var e =
|
|
459
|
+
var e = wt(t) ? t : {
|
|
410
460
|
each: t
|
|
411
|
-
}, i =
|
|
412
|
-
return
|
|
461
|
+
}, i = Wt(e.ease), r = e.from || 0, n = parseFloat(e.base) || 0, s = {}, a = r > 0 && r < 1, l = isNaN(r) || a, u = e.axis, f = r, h = r;
|
|
462
|
+
return G(r) ? f = h = {
|
|
413
463
|
center: 0.5,
|
|
414
464
|
edges: 0.5,
|
|
415
465
|
end: 1
|
|
416
|
-
}[r] || 0 : !a && l && (f = r[0], h = r[1]), function(
|
|
417
|
-
var c = (
|
|
418
|
-
if (!
|
|
419
|
-
if (b = e.grid === "auto" ? 0 : (e.grid || [1,
|
|
420
|
-
for (k = -
|
|
466
|
+
}[r] || 0 : !a && l && (f = r[0], h = r[1]), function(_, d, p) {
|
|
467
|
+
var c = (p || e).length, g = s[c], y, v, w, x, m, T, k, S, b;
|
|
468
|
+
if (!g) {
|
|
469
|
+
if (b = e.grid === "auto" ? 0 : (e.grid || [1, _t])[1], !b) {
|
|
470
|
+
for (k = -_t; k < (k = p[b++].getBoundingClientRect().left) && b < c; )
|
|
421
471
|
;
|
|
422
472
|
b < c && b--;
|
|
423
473
|
}
|
|
424
|
-
for (
|
|
425
|
-
w = T % b - y, x = v - (T / b | 0),
|
|
426
|
-
r === "random" &&
|
|
474
|
+
for (g = s[c] = [], y = l ? Math.min(b, c) * f - 0.5 : r % b, v = b === _t ? 0 : l ? c * h / b - 0.5 : r / b | 0, k = 0, S = _t, T = 0; T < c; T++)
|
|
475
|
+
w = T % b - y, x = v - (T / b | 0), g[T] = m = u ? Math.abs(u === "y" ? x : w) : dr(w * w + x * x), m > k && (k = m), m < S && (S = m);
|
|
476
|
+
r === "random" && Dr(g), g.max = k - S, g.min = S, g.v = c = (parseFloat(e.amount) || parseFloat(e.each) * (b > c ? c - 1 : u ? u === "y" ? c / b : b : Math.max(b, c / b)) || 0) * (r === "edges" ? -1 : 1), g.b = c < 0 ? n - c : n, g.u = J(e.amount || e.each) || 0, i = i && c < 0 ? Vr(i) : i;
|
|
427
477
|
}
|
|
428
|
-
return c = (
|
|
478
|
+
return c = (g[_] - g.min) / g.max || 0, L(g.b + (i ? i(c) : c) * g.v) + g.u;
|
|
429
479
|
};
|
|
430
|
-
},
|
|
480
|
+
}, ci = function(t) {
|
|
431
481
|
var e = Math.pow(10, ((t + "").split(".")[1] || "").length);
|
|
432
482
|
return function(i) {
|
|
433
483
|
var r = L(Math.round(parseFloat(i) / t) * t * e);
|
|
434
|
-
return (r - r % 1) / e + (
|
|
484
|
+
return (r - r % 1) / e + (Pt(i) ? 0 : J(i));
|
|
435
485
|
};
|
|
436
|
-
},
|
|
486
|
+
}, zr = function(t, e) {
|
|
437
487
|
var i = Q(t), r, n;
|
|
438
|
-
return !i &&
|
|
488
|
+
return !i && wt(t) && (r = i = t.radius || _t, t.values ? (t = pt(t.values), (n = !Pt(t[0])) && (r *= r)) : t = ci(t.increment)), $t(e, i ? V(t) ? function(s) {
|
|
439
489
|
return n = t(s), Math.abs(n - s) <= r ? n : s;
|
|
440
490
|
} : function(s) {
|
|
441
|
-
for (var a = parseFloat(n ? s.x : s), l = parseFloat(n ? s.y : 0), u =
|
|
442
|
-
n ? (
|
|
443
|
-
return f = !r || u <= r ? t[f] : s, n || f === s ||
|
|
444
|
-
} :
|
|
445
|
-
},
|
|
446
|
-
return
|
|
491
|
+
for (var a = parseFloat(n ? s.x : s), l = parseFloat(n ? s.y : 0), u = _t, f = 0, h = t.length, _, d; h--; )
|
|
492
|
+
n ? (_ = t[h].x - a, d = t[h].y - l, _ = _ * _ + d * d) : _ = Math.abs(t[h] - a), _ < u && (u = _, f = h);
|
|
493
|
+
return f = !r || u <= r ? t[f] : s, n || f === s || Pt(s) ? f : f + J(s);
|
|
494
|
+
} : ci(t));
|
|
495
|
+
}, Er = function(t, e, i, r) {
|
|
496
|
+
return $t(Q(t) ? !e : i === !0 ? !!(i = 0) : !r, function() {
|
|
447
497
|
return Q(t) ? t[~~(Math.random() * t.length)] : (i = i || 1e-5) && (r = i < 1 ? Math.pow(10, (i + "").length - 2) : 1) && Math.floor(Math.round((t - i / 2 + Math.random() * (e - t + i * 0.99)) / i) * i * r) / r;
|
|
448
498
|
});
|
|
449
|
-
},
|
|
499
|
+
}, jn = function() {
|
|
450
500
|
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
451
501
|
e[i] = arguments[i];
|
|
452
502
|
return function(r) {
|
|
@@ -454,42 +504,42 @@ var lt = {
|
|
|
454
504
|
return s(n);
|
|
455
505
|
}, r);
|
|
456
506
|
};
|
|
457
|
-
},
|
|
507
|
+
}, Wn = function(t, e) {
|
|
458
508
|
return function(i) {
|
|
459
|
-
return t(parseFloat(i)) + (e ||
|
|
509
|
+
return t(parseFloat(i)) + (e || J(i));
|
|
460
510
|
};
|
|
461
|
-
},
|
|
462
|
-
return
|
|
463
|
-
},
|
|
464
|
-
return
|
|
511
|
+
}, Gn = function(t, e, i) {
|
|
512
|
+
return Ir(t, e, 0, 1, i);
|
|
513
|
+
}, Rr = function(t, e, i) {
|
|
514
|
+
return $t(i, function(r) {
|
|
465
515
|
return t[~~e(r)];
|
|
466
516
|
});
|
|
467
|
-
},
|
|
517
|
+
}, Hn = function o(t, e, i) {
|
|
468
518
|
var r = e - t;
|
|
469
|
-
return Q(t) ?
|
|
519
|
+
return Q(t) ? Rr(t, o(0, t.length), e) : $t(i, function(n) {
|
|
470
520
|
return (r + (n - t) % r) % r + t;
|
|
471
521
|
});
|
|
472
|
-
},
|
|
522
|
+
}, Kn = function o(t, e, i) {
|
|
473
523
|
var r = e - t, n = r * 2;
|
|
474
|
-
return Q(t) ?
|
|
524
|
+
return Q(t) ? Rr(t, o(0, t.length - 1), e) : $t(i, function(s) {
|
|
475
525
|
return s = (n + (s - t) % n) % n || 0, t + (s > r ? n - s : s);
|
|
476
526
|
});
|
|
477
|
-
},
|
|
478
|
-
return t.replace(
|
|
479
|
-
var i = e.indexOf("[") + 1, r = e.substring(i || 7, i ? e.indexOf("]") : e.length - 1).split(
|
|
480
|
-
return
|
|
527
|
+
}, Te = function(t) {
|
|
528
|
+
return t.replace(Mn, function(e) {
|
|
529
|
+
var i = e.indexOf("[") + 1, r = e.substring(i || 7, i ? e.indexOf("]") : e.length - 1).split(Dn);
|
|
530
|
+
return Er(i ? r : +r[0], i ? 0 : +r[1], +r[2] || 1e-5);
|
|
481
531
|
});
|
|
482
|
-
},
|
|
532
|
+
}, Ir = function(t, e, i, r, n) {
|
|
483
533
|
var s = e - t, a = r - i;
|
|
484
|
-
return
|
|
534
|
+
return $t(n, function(l) {
|
|
485
535
|
return i + ((l - t) / s * a || 0);
|
|
486
536
|
});
|
|
487
|
-
},
|
|
488
|
-
var n = isNaN(t + e) ? 0 : function(
|
|
489
|
-
return (1 -
|
|
537
|
+
}, Jn = function o(t, e, i, r) {
|
|
538
|
+
var n = isNaN(t + e) ? 0 : function(d) {
|
|
539
|
+
return (1 - d) * t + d * e;
|
|
490
540
|
};
|
|
491
541
|
if (!n) {
|
|
492
|
-
var s =
|
|
542
|
+
var s = G(t), a = {}, l, u, f, h, _;
|
|
493
543
|
if (i === !0 && (r = 1) && (i = null), s)
|
|
494
544
|
t = {
|
|
495
545
|
p: t
|
|
@@ -497,193 +547,193 @@ var lt = {
|
|
|
497
547
|
p: e
|
|
498
548
|
};
|
|
499
549
|
else if (Q(t) && !Q(e)) {
|
|
500
|
-
for (f = [], h = t.length,
|
|
550
|
+
for (f = [], h = t.length, _ = h - 2, u = 1; u < h; u++)
|
|
501
551
|
f.push(o(t[u - 1], t[u]));
|
|
502
|
-
h--, n = function(
|
|
503
|
-
|
|
504
|
-
var c = Math.min(
|
|
505
|
-
return f[c](
|
|
552
|
+
h--, n = function(p) {
|
|
553
|
+
p *= h;
|
|
554
|
+
var c = Math.min(_, ~~p);
|
|
555
|
+
return f[c](p - c);
|
|
506
556
|
}, i = e;
|
|
507
|
-
} else r || (t =
|
|
557
|
+
} else r || (t = oe(Q(t) ? [] : {}, t));
|
|
508
558
|
if (!f) {
|
|
509
559
|
for (l in e)
|
|
510
560
|
Pi.call(a, t, l, "get", e[l]);
|
|
511
|
-
n = function(
|
|
512
|
-
return
|
|
561
|
+
n = function(p) {
|
|
562
|
+
return Ai(p, a) || (s ? t.p : t);
|
|
513
563
|
};
|
|
514
564
|
}
|
|
515
565
|
}
|
|
516
|
-
return
|
|
517
|
-
},
|
|
518
|
-
var r = t.labels, n =
|
|
566
|
+
return $t(i, n);
|
|
567
|
+
}, ji = function(t, e, i) {
|
|
568
|
+
var r = t.labels, n = _t, s, a, l;
|
|
519
569
|
for (s in r)
|
|
520
570
|
a = r[s] - e, a < 0 == !!i && a && n > (a = Math.abs(a)) && (l = s, n = a);
|
|
521
571
|
return l;
|
|
522
|
-
},
|
|
572
|
+
}, ot = function(t, e, i) {
|
|
523
573
|
var r = t.vars, n = r[e], s = F, a = t._ctx, l, u, f;
|
|
524
574
|
if (n)
|
|
525
|
-
return l = r[e + "Params"], u = r.callbackScope || t, i &&
|
|
526
|
-
},
|
|
527
|
-
return
|
|
528
|
-
},
|
|
575
|
+
return l = r[e + "Params"], u = r.callbackScope || t, i && zt.length && $e(), a && (F = a), f = l ? n.apply(u, l) : n.call(u), F = s, f;
|
|
576
|
+
}, me = function(t) {
|
|
577
|
+
return Rt(t), t.scrollTrigger && t.scrollTrigger.kill(!!K), t.progress() < 1 && ot(t, "onInterrupt"), t;
|
|
578
|
+
}, ee, Fr = [], Lr = function(t) {
|
|
529
579
|
if (t)
|
|
530
|
-
if (t = !t.name && t.default || t,
|
|
580
|
+
if (t = !t.name && t.default || t, xi() || t.headless) {
|
|
531
581
|
var e = t.name, i = V(t), r = e && !i && t.init ? function() {
|
|
532
582
|
this._props = [];
|
|
533
583
|
} : t, n = {
|
|
534
|
-
init:
|
|
535
|
-
render:
|
|
584
|
+
init: we,
|
|
585
|
+
render: Ai,
|
|
536
586
|
add: Pi,
|
|
537
|
-
kill:
|
|
538
|
-
modifier:
|
|
587
|
+
kill: ds,
|
|
588
|
+
modifier: hs,
|
|
539
589
|
rawVars: 0
|
|
540
590
|
}, s = {
|
|
541
591
|
targetTest: 0,
|
|
542
592
|
get: 0,
|
|
543
|
-
getSetter:
|
|
593
|
+
getSetter: Di,
|
|
544
594
|
aliases: {},
|
|
545
595
|
register: 0
|
|
546
596
|
};
|
|
547
|
-
if (
|
|
548
|
-
if (
|
|
597
|
+
if (fe(), t !== r) {
|
|
598
|
+
if (st[e])
|
|
549
599
|
return;
|
|
550
|
-
|
|
600
|
+
ct(r, ct(Ne(t, n), s)), oe(r.prototype, oe(n, Ne(t, s))), st[r.prop = e] = r, t.targetTest && (Ie.push(r), Ti[e] = 1), e = (e === "css" ? "CSS" : e.charAt(0).toUpperCase() + e.substr(1)) + "Plugin";
|
|
551
601
|
}
|
|
552
|
-
|
|
602
|
+
vr(e, r), t.register && t.register(nt, r, it);
|
|
553
603
|
} else
|
|
554
|
-
|
|
555
|
-
},
|
|
556
|
-
aqua: [0,
|
|
557
|
-
lime: [0,
|
|
604
|
+
Fr.push(t);
|
|
605
|
+
}, z = 255, ge = {
|
|
606
|
+
aqua: [0, z, z],
|
|
607
|
+
lime: [0, z, 0],
|
|
558
608
|
silver: [192, 192, 192],
|
|
559
609
|
black: [0, 0, 0],
|
|
560
610
|
maroon: [128, 0, 0],
|
|
561
611
|
teal: [0, 128, 128],
|
|
562
|
-
blue: [0, 0,
|
|
612
|
+
blue: [0, 0, z],
|
|
563
613
|
navy: [0, 0, 128],
|
|
564
|
-
white: [
|
|
614
|
+
white: [z, z, z],
|
|
565
615
|
olive: [128, 128, 0],
|
|
566
|
-
yellow: [
|
|
567
|
-
orange: [
|
|
616
|
+
yellow: [z, z, 0],
|
|
617
|
+
orange: [z, 165, 0],
|
|
568
618
|
gray: [128, 128, 128],
|
|
569
619
|
purple: [128, 0, 128],
|
|
570
620
|
green: [0, 128, 0],
|
|
571
|
-
red: [
|
|
572
|
-
pink: [
|
|
573
|
-
cyan: [0,
|
|
574
|
-
transparent: [
|
|
621
|
+
red: [z, 0, 0],
|
|
622
|
+
pink: [z, 192, 203],
|
|
623
|
+
cyan: [0, z, z],
|
|
624
|
+
transparent: [z, z, z, 0]
|
|
575
625
|
}, Qe = function(t, e, i) {
|
|
576
|
-
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) *
|
|
577
|
-
},
|
|
578
|
-
var r = t ?
|
|
626
|
+
return t += t < 0 ? 1 : t > 1 ? -1 : 0, (t * 6 < 1 ? e + (i - e) * t * 6 : t < 0.5 ? i : t * 3 < 2 ? e + (i - e) * (2 / 3 - t) * 6 : e) * z + 0.5 | 0;
|
|
627
|
+
}, $r = function(t, e, i) {
|
|
628
|
+
var r = t ? Pt(t) ? [t >> 16, t >> 8 & z, t & z] : 0 : ge.black, n, s, a, l, u, f, h, _, d, p;
|
|
579
629
|
if (!r) {
|
|
580
|
-
if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)),
|
|
581
|
-
r =
|
|
630
|
+
if (t.substr(-1) === "," && (t = t.substr(0, t.length - 1)), ge[t])
|
|
631
|
+
r = ge[t];
|
|
582
632
|
else if (t.charAt(0) === "#") {
|
|
583
633
|
if (t.length < 6 && (n = t.charAt(1), s = t.charAt(2), a = t.charAt(3), t = "#" + n + n + s + s + a + a + (t.length === 5 ? t.charAt(4) + t.charAt(4) : "")), t.length === 9)
|
|
584
|
-
return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 &
|
|
585
|
-
t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 &
|
|
634
|
+
return r = parseInt(t.substr(1, 6), 16), [r >> 16, r >> 8 & z, r & z, parseInt(t.substr(7), 16) / 255];
|
|
635
|
+
t = parseInt(t.substr(1), 16), r = [t >> 16, t >> 8 & z, t & z];
|
|
586
636
|
} else if (t.substr(0, 3) === "hsl") {
|
|
587
|
-
if (r =
|
|
637
|
+
if (r = p = t.match(Vi), !e)
|
|
588
638
|
l = +r[0] % 360 / 360, u = +r[1] / 100, f = +r[2] / 100, s = f <= 0.5 ? f * (u + 1) : f + u - f * u, n = f * 2 - s, r.length > 3 && (r[3] *= 1), r[0] = Qe(l + 1 / 3, n, s), r[1] = Qe(l, n, s), r[2] = Qe(l - 1 / 3, n, s);
|
|
589
639
|
else if (~t.indexOf("="))
|
|
590
|
-
return r = t.match(
|
|
640
|
+
return r = t.match(pr), i && r.length < 4 && (r[3] = 1), r;
|
|
591
641
|
} else
|
|
592
|
-
r = t.match(
|
|
642
|
+
r = t.match(Vi) || ge.transparent;
|
|
593
643
|
r = r.map(Number);
|
|
594
644
|
}
|
|
595
|
-
return e && !
|
|
596
|
-
},
|
|
645
|
+
return e && !p && (n = r[0] / z, s = r[1] / z, a = r[2] / z, h = Math.max(n, s, a), _ = Math.min(n, s, a), f = (h + _) / 2, h === _ ? l = u = 0 : (d = h - _, u = f > 0.5 ? d / (2 - h - _) : d / (h + _), l = h === n ? (s - a) / d + (s < a ? 6 : 0) : h === s ? (a - n) / d + 2 : (n - s) / d + 4, l *= 60), r[0] = ~~(l + 0.5), r[1] = ~~(u * 100 + 0.5), r[2] = ~~(f * 100 + 0.5)), i && r.length < 4 && (r[3] = 1), r;
|
|
646
|
+
}, Nr = function(t) {
|
|
597
647
|
var e = [], i = [], r = -1;
|
|
598
|
-
return t.split(
|
|
599
|
-
var s = n.match(
|
|
648
|
+
return t.split(Et).forEach(function(n) {
|
|
649
|
+
var s = n.match(te) || [];
|
|
600
650
|
e.push.apply(e, s), i.push(r += s.length + 1);
|
|
601
651
|
}), e.c = i, e;
|
|
602
|
-
},
|
|
603
|
-
var r = "", n = (t + r).match(
|
|
652
|
+
}, Wi = function(t, e, i) {
|
|
653
|
+
var r = "", n = (t + r).match(Et), s = e ? "hsla(" : "rgba(", a = 0, l, u, f, h;
|
|
604
654
|
if (!n)
|
|
605
655
|
return t;
|
|
606
|
-
if (n = n.map(function(
|
|
607
|
-
return (
|
|
608
|
-
}), i && (f =
|
|
609
|
-
for (u = t.replace(
|
|
656
|
+
if (n = n.map(function(_) {
|
|
657
|
+
return (_ = $r(_, e, 1)) && s + (e ? _[0] + "," + _[1] + "%," + _[2] + "%," + _[3] : _.join(",")) + ")";
|
|
658
|
+
}), i && (f = Nr(t), l = i.c, l.join(r) !== f.c.join(r)))
|
|
659
|
+
for (u = t.replace(Et, "1").split(te), h = u.length - 1; a < h; a++)
|
|
610
660
|
r += u[a] + (~l.indexOf(a) ? n.shift() || s + "0,0,0,0)" : (f.length ? f : n.length ? n : i).shift());
|
|
611
661
|
if (!u)
|
|
612
|
-
for (u = t.split(
|
|
662
|
+
for (u = t.split(Et), h = u.length - 1; a < h; a++)
|
|
613
663
|
r += u[a] + n[a];
|
|
614
664
|
return r + u[h];
|
|
615
|
-
},
|
|
665
|
+
}, Et = function() {
|
|
616
666
|
var o = "(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b", t;
|
|
617
|
-
for (t in
|
|
667
|
+
for (t in ge)
|
|
618
668
|
o += "|" + t + "\\b";
|
|
619
669
|
return new RegExp(o + ")", "gi");
|
|
620
|
-
}(),
|
|
670
|
+
}(), Qn = /hsl[a]?\(/, Br = function(t) {
|
|
621
671
|
var e = t.join(" "), i;
|
|
622
|
-
if (
|
|
623
|
-
return i =
|
|
624
|
-
},
|
|
625
|
-
var o = Date.now, t = 500, e = 33, i = o(), r = i, n = 1e3 / 240, s = n, a = [], l, u, f, h,
|
|
626
|
-
var y = o() - r, v =
|
|
627
|
-
if ((y > t || y < 0) && (i += y - e), r += y,
|
|
628
|
-
for (
|
|
629
|
-
a[
|
|
672
|
+
if (Et.lastIndex = 0, Et.test(e))
|
|
673
|
+
return i = Qn.test(e), t[1] = Wi(t[1], i), t[0] = Wi(t[0], i, Nr(t[1])), !0;
|
|
674
|
+
}, ke, at = function() {
|
|
675
|
+
var o = Date.now, t = 500, e = 33, i = o(), r = i, n = 1e3 / 240, s = n, a = [], l, u, f, h, _, d, p = function c(g) {
|
|
676
|
+
var y = o() - r, v = g === !0, w, x, m, T;
|
|
677
|
+
if ((y > t || y < 0) && (i += y - e), r += y, m = r - i, w = m - s, (w > 0 || v) && (T = ++h.frame, _ = m - h.time * 1e3, h.time = m = m / 1e3, s += w + (w >= n ? 4 : n - w), x = 1), v || (l = u(c)), x)
|
|
678
|
+
for (d = 0; d < a.length; d++)
|
|
679
|
+
a[d](m, _, T, g);
|
|
630
680
|
};
|
|
631
681
|
return h = {
|
|
632
682
|
time: 0,
|
|
633
683
|
frame: 0,
|
|
634
684
|
tick: function() {
|
|
635
|
-
|
|
685
|
+
p(!0);
|
|
636
686
|
},
|
|
637
|
-
deltaRatio: function(
|
|
638
|
-
return
|
|
687
|
+
deltaRatio: function(g) {
|
|
688
|
+
return _ / (1e3 / (g || 60));
|
|
639
689
|
},
|
|
640
690
|
wake: function() {
|
|
641
|
-
|
|
642
|
-
return setTimeout(
|
|
643
|
-
},
|
|
691
|
+
gr && (!si && xi() && (vt = si = window, bi = vt.document || {}, ft.gsap = nt, (vt.gsapVersions || (vt.gsapVersions = [])).push(nt.version), yr(Le || vt.GreenSockGlobals || !vt.gsap && vt || {}), Fr.forEach(Lr)), f = typeof requestAnimationFrame < "u" && requestAnimationFrame, l && h.sleep(), u = f || function(g) {
|
|
692
|
+
return setTimeout(g, s - h.time * 1e3 + 1 | 0);
|
|
693
|
+
}, ke = 1, p(2));
|
|
644
694
|
},
|
|
645
695
|
sleep: function() {
|
|
646
|
-
(f ? cancelAnimationFrame : clearTimeout)(l),
|
|
696
|
+
(f ? cancelAnimationFrame : clearTimeout)(l), ke = 0, u = we;
|
|
647
697
|
},
|
|
648
|
-
lagSmoothing: function(
|
|
649
|
-
t =
|
|
698
|
+
lagSmoothing: function(g, y) {
|
|
699
|
+
t = g || 1 / 0, e = Math.min(y || 33, t);
|
|
650
700
|
},
|
|
651
|
-
fps: function(
|
|
652
|
-
n = 1e3 / (
|
|
701
|
+
fps: function(g) {
|
|
702
|
+
n = 1e3 / (g || 240), s = h.time * 1e3 + n;
|
|
653
703
|
},
|
|
654
|
-
add: function(
|
|
655
|
-
var w = y ? function(x,
|
|
656
|
-
|
|
657
|
-
} :
|
|
658
|
-
return h.remove(
|
|
704
|
+
add: function(g, y, v) {
|
|
705
|
+
var w = y ? function(x, m, T, k) {
|
|
706
|
+
g(x, m, T, k), h.remove(w);
|
|
707
|
+
} : g;
|
|
708
|
+
return h.remove(g), a[v ? "unshift" : "push"](w), fe(), w;
|
|
659
709
|
},
|
|
660
|
-
remove: function(
|
|
661
|
-
~(y = a.indexOf(
|
|
710
|
+
remove: function(g, y) {
|
|
711
|
+
~(y = a.indexOf(g)) && a.splice(y, 1) && d >= y && d--;
|
|
662
712
|
},
|
|
663
713
|
_listeners: a
|
|
664
714
|
}, h;
|
|
665
|
-
}(),
|
|
666
|
-
return !
|
|
667
|
-
}, C = {},
|
|
715
|
+
}(), fe = function() {
|
|
716
|
+
return !ke && at.wake();
|
|
717
|
+
}, C = {}, Zn = /^[\d.\-M][\d.\-,\s]/, ts = /["']/g, es = function(t) {
|
|
668
718
|
for (var e = {}, i = t.substr(1, t.length - 3).split(":"), r = i[0], n = 1, s = i.length, a, l, u; n < s; n++)
|
|
669
|
-
l = i[n], a = n !== s - 1 ? l.lastIndexOf(",") : l.length, u = l.substr(0, a), e[r] = isNaN(u) ? u.replace(
|
|
719
|
+
l = i[n], a = n !== s - 1 ? l.lastIndexOf(",") : l.length, u = l.substr(0, a), e[r] = isNaN(u) ? u.replace(ts, "").trim() : +u, r = l.substr(a + 1).trim();
|
|
670
720
|
return e;
|
|
671
|
-
},
|
|
721
|
+
}, is = function(t) {
|
|
672
722
|
var e = t.indexOf("(") + 1, i = t.indexOf(")"), r = t.indexOf("(", e);
|
|
673
723
|
return t.substring(e, ~r && r < i ? t.indexOf(")", i + 1) : i);
|
|
674
|
-
},
|
|
724
|
+
}, rs = function(t) {
|
|
675
725
|
var e = (t + "").split("("), i = C[e[0]];
|
|
676
|
-
return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [
|
|
677
|
-
},
|
|
726
|
+
return i && e.length > 1 && i.config ? i.config.apply(null, ~t.indexOf("{") ? [es(e[1])] : is(t).split(",").map(Tr)) : C._CE && Zn.test(t) ? C._CE("", t) : i;
|
|
727
|
+
}, Vr = function(t) {
|
|
678
728
|
return function(e) {
|
|
679
729
|
return 1 - t(1 - e);
|
|
680
730
|
};
|
|
681
|
-
},
|
|
731
|
+
}, Ur = function o(t, e) {
|
|
682
732
|
for (var i = t._first, r; i; )
|
|
683
733
|
i instanceof Z ? o(i, e) : i.vars.yoyoEase && (!i._yoyo || !i._repeat) && i._yoyo !== e && (i.timeline ? o(i.timeline, e) : (r = i._ease, i._ease = i._yEase, i._yEase = r, i._yoyo = e)), i = i._next;
|
|
684
|
-
},
|
|
685
|
-
return t && (V(t) ? t : C[t] ||
|
|
686
|
-
},
|
|
734
|
+
}, Wt = function(t, e) {
|
|
735
|
+
return t && (V(t) ? t : C[t] || rs(t)) || e;
|
|
736
|
+
}, Jt = function(t, e, i, r) {
|
|
687
737
|
i === void 0 && (i = function(l) {
|
|
688
738
|
return 1 - e(1 - l);
|
|
689
739
|
}), r === void 0 && (r = function(l) {
|
|
@@ -694,38 +744,38 @@ var lt = {
|
|
|
694
744
|
easeOut: i,
|
|
695
745
|
easeInOut: r
|
|
696
746
|
}, s;
|
|
697
|
-
return
|
|
698
|
-
C[a] =
|
|
747
|
+
return et(t, function(a) {
|
|
748
|
+
C[a] = ft[a] = n, C[s = a.toLowerCase()] = i;
|
|
699
749
|
for (var l in n)
|
|
700
750
|
C[s + (l === "easeIn" ? ".in" : l === "easeOut" ? ".out" : ".inOut")] = C[a + "." + l] = n[l];
|
|
701
751
|
}), n;
|
|
702
|
-
},
|
|
752
|
+
}, Yr = function(t) {
|
|
703
753
|
return function(e) {
|
|
704
754
|
return e < 0.5 ? (1 - t(1 - e * 2)) / 2 : 0.5 + t((e - 0.5) * 2) / 2;
|
|
705
755
|
};
|
|
706
756
|
}, Ze = function o(t, e, i) {
|
|
707
|
-
var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n /
|
|
708
|
-
return f === 1 ? 1 : r * Math.pow(2, -10 * f) *
|
|
757
|
+
var r = e >= 1 ? e : 1, n = (i || (t ? 0.3 : 0.45)) / (e < 1 ? e : 1), s = n / ni * (Math.asin(1 / r) || 0), a = function(f) {
|
|
758
|
+
return f === 1 ? 1 : r * Math.pow(2, -10 * f) * Cn((f - s) * n) + 1;
|
|
709
759
|
}, l = t === "out" ? a : t === "in" ? function(u) {
|
|
710
760
|
return 1 - a(1 - u);
|
|
711
|
-
} :
|
|
712
|
-
return n =
|
|
761
|
+
} : Yr(a);
|
|
762
|
+
return n = ni / n, l.config = function(u, f) {
|
|
713
763
|
return o(t, u, f);
|
|
714
764
|
}, l;
|
|
715
|
-
},
|
|
765
|
+
}, ti = function o(t, e) {
|
|
716
766
|
e === void 0 && (e = 1.70158);
|
|
717
767
|
var i = function(s) {
|
|
718
768
|
return s ? --s * s * ((e + 1) * s + e) + 1 : 0;
|
|
719
769
|
}, r = t === "out" ? i : t === "in" ? function(n) {
|
|
720
770
|
return 1 - i(1 - n);
|
|
721
|
-
} :
|
|
771
|
+
} : Yr(i);
|
|
722
772
|
return r.config = function(n) {
|
|
723
773
|
return o(t, n);
|
|
724
774
|
}, r;
|
|
725
775
|
};
|
|
726
|
-
|
|
776
|
+
et("Linear,Quad,Cubic,Quart,Quint,Strong", function(o, t) {
|
|
727
777
|
var e = t < 5 ? t + 1 : t;
|
|
728
|
-
|
|
778
|
+
Jt(o + ",Power" + (e - 1), t ? function(i) {
|
|
729
779
|
return Math.pow(i, e);
|
|
730
780
|
} : function(i) {
|
|
731
781
|
return i;
|
|
@@ -736,43 +786,43 @@ tt("Linear,Quad,Cubic,Quart,Quint,Strong", function(o, t) {
|
|
|
736
786
|
});
|
|
737
787
|
});
|
|
738
788
|
C.Linear.easeNone = C.none = C.Linear.easeIn;
|
|
739
|
-
|
|
789
|
+
Jt("Elastic", Ze("in"), Ze("out"), Ze());
|
|
740
790
|
(function(o, t) {
|
|
741
791
|
var e = 1 / t, i = 2 * e, r = 2.5 * e, n = function(a) {
|
|
742
792
|
return a < e ? o * a * a : a < i ? o * Math.pow(a - 1.5 / t, 2) + 0.75 : a < r ? o * (a -= 2.25 / t) * a + 0.9375 : o * Math.pow(a - 2.625 / t, 2) + 0.984375;
|
|
743
793
|
};
|
|
744
|
-
|
|
794
|
+
Jt("Bounce", function(s) {
|
|
745
795
|
return 1 - n(1 - s);
|
|
746
796
|
}, n);
|
|
747
797
|
})(7.5625, 2.75);
|
|
748
|
-
|
|
798
|
+
Jt("Expo", function(o) {
|
|
749
799
|
return Math.pow(2, 10 * (o - 1)) * o + o * o * o * o * o * o * (1 - o);
|
|
750
800
|
});
|
|
751
|
-
|
|
752
|
-
return -(
|
|
801
|
+
Jt("Circ", function(o) {
|
|
802
|
+
return -(dr(1 - o * o) - 1);
|
|
753
803
|
});
|
|
754
|
-
|
|
755
|
-
return o === 1 ? 1 : -
|
|
804
|
+
Jt("Sine", function(o) {
|
|
805
|
+
return o === 1 ? 1 : -Pn(o * Sn) + 1;
|
|
756
806
|
});
|
|
757
|
-
|
|
758
|
-
C.SteppedEase = C.steps =
|
|
807
|
+
Jt("Back", ti("in"), ti("out"), ti());
|
|
808
|
+
C.SteppedEase = C.steps = ft.SteppedEase = {
|
|
759
809
|
config: function(t, e) {
|
|
760
810
|
t === void 0 && (t = 1);
|
|
761
|
-
var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 -
|
|
811
|
+
var i = 1 / t, r = t + (e ? 0 : 1), n = e ? 1 : 0, s = 1 - E;
|
|
762
812
|
return function(a) {
|
|
763
|
-
return ((r *
|
|
813
|
+
return ((r * Me(0, s, a) | 0) + n) * i;
|
|
764
814
|
};
|
|
765
815
|
}
|
|
766
816
|
};
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
return
|
|
817
|
+
ae.ease = C["quad.out"];
|
|
818
|
+
et("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt", function(o) {
|
|
819
|
+
return ki += o + "," + o + "Params,";
|
|
770
820
|
});
|
|
771
|
-
var
|
|
772
|
-
this.id =
|
|
773
|
-
},
|
|
821
|
+
var qr = function(t, e) {
|
|
822
|
+
this.id = On++, t._gsap = this, this.target = t, this.harness = e, this.get = e ? e.get : br, this.set = e ? e.getSetter : Di;
|
|
823
|
+
}, Se = /* @__PURE__ */ function() {
|
|
774
824
|
function o(e) {
|
|
775
|
-
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,
|
|
825
|
+
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, ue(this, +e.duration, 1, 1), this.data = e.data, F && (this._ctx = F, F.data.push(this)), ke || at.wake();
|
|
776
826
|
}
|
|
777
827
|
var t = o.prototype;
|
|
778
828
|
return t.delay = function(i) {
|
|
@@ -780,69 +830,69 @@ var Nr = function(t, e) {
|
|
|
780
830
|
}, t.duration = function(i) {
|
|
781
831
|
return arguments.length ? this.totalDuration(this._repeat > 0 ? i + (i + this._rDelay) * this._repeat : i) : this.totalDuration() && this._dur;
|
|
782
832
|
}, t.totalDuration = function(i) {
|
|
783
|
-
return arguments.length ? (this._dirty = 0,
|
|
833
|
+
return arguments.length ? (this._dirty = 0, ue(this, this._repeat < 0 ? i : (i - this._repeat * this._rDelay) / (this._repeat + 1))) : this._tDur;
|
|
784
834
|
}, t.totalTime = function(i, r) {
|
|
785
|
-
if (
|
|
835
|
+
if (fe(), !arguments.length)
|
|
786
836
|
return this._tTime;
|
|
787
837
|
var n = this._dp;
|
|
788
838
|
if (n && n.smoothChildTiming && this._ts) {
|
|
789
|
-
for (
|
|
839
|
+
for (He(this, i), !n._dp || n.parent || Or(n, this); n && n.parent; )
|
|
790
840
|
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;
|
|
791
|
-
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) &&
|
|
841
|
+
!this.parent && this._dp.autoRemoveChildren && (this._ts > 0 && i < this._tDur || this._ts < 0 && i > 0 || !this._tDur && !i) && xt(this._dp, this, this._start - this._delay);
|
|
792
842
|
}
|
|
793
|
-
return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) ===
|
|
843
|
+
return (this._tTime !== i || !this._dur && !r || this._initted && Math.abs(this._zTime) === E || !this._initted && this._dur && i || !i && !this._initted && (this.add || this._ptLookup)) && (this._ts || (this._pTime = i), wr(this, i, r)), this;
|
|
794
844
|
}, t.time = function(i, r) {
|
|
795
|
-
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i +
|
|
845
|
+
return arguments.length ? this.totalTime(Math.min(this.totalDuration(), i + qi(this)) % (this._dur + this._rDelay) || (i ? this._dur : 0), r) : this._time;
|
|
796
846
|
}, t.totalProgress = function(i, r) {
|
|
797
847
|
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;
|
|
798
848
|
}, t.progress = function(i, r) {
|
|
799
|
-
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) +
|
|
849
|
+
return arguments.length ? this.totalTime(this.duration() * (this._yoyo && !(this.iteration() & 1) ? 1 - i : i) + qi(this), r) : this.duration() ? Math.min(1, this._time / this._dur) : this.rawTime() > 0 ? 1 : 0;
|
|
800
850
|
}, t.iteration = function(i, r) {
|
|
801
851
|
var n = this.duration() + this._rDelay;
|
|
802
|
-
return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ?
|
|
852
|
+
return arguments.length ? this.totalTime(this._time + (i - 1) * n, r) : this._repeat ? le(this._tTime, n) + 1 : 1;
|
|
803
853
|
}, t.timeScale = function(i, r) {
|
|
804
854
|
if (!arguments.length)
|
|
805
|
-
return this._rts === -
|
|
855
|
+
return this._rts === -E ? 0 : this._rts;
|
|
806
856
|
if (this._rts === i)
|
|
807
857
|
return this;
|
|
808
|
-
var n = this.parent && this._ts ?
|
|
809
|
-
return this._rts = +i || 0, this._ts = this._ps || i === -
|
|
858
|
+
var n = this.parent && this._ts ? Be(this.parent._time, this) : this._tTime;
|
|
859
|
+
return this._rts = +i || 0, this._ts = this._ps || i === -E ? 0 : this._rts, this.totalTime(Me(-Math.abs(this._delay), this.totalDuration(), n), r !== !1), Ge(this), $n(this);
|
|
810
860
|
}, t.paused = function(i) {
|
|
811
|
-
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) : (
|
|
861
|
+
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) : (fe(), this._ts = this._rts, this.totalTime(this.parent && !this.parent.smoothChildTiming ? this.rawTime() : this._tTime || this._pTime, this.progress() === 1 && Math.abs(this._zTime) !== E && (this._tTime -= E)))), this) : this._ps;
|
|
812
862
|
}, t.startTime = function(i) {
|
|
813
863
|
if (arguments.length) {
|
|
814
864
|
this._start = L(i);
|
|
815
865
|
var r = this.parent || this._dp;
|
|
816
|
-
return r && (r._sort || !this.parent) &&
|
|
866
|
+
return r && (r._sort || !this.parent) && xt(r, this, this._start - this._delay), this;
|
|
817
867
|
}
|
|
818
868
|
return this._start;
|
|
819
869
|
}, t.endTime = function(i) {
|
|
820
|
-
return this._start + (
|
|
870
|
+
return this._start + (tt(i) ? this.totalDuration() : this.duration()) / Math.abs(this._ts || 1);
|
|
821
871
|
}, t.rawTime = function(i) {
|
|
822
872
|
var r = this.parent || this._dp;
|
|
823
|
-
return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ?
|
|
873
|
+
return r ? i && (!this._ts || this._repeat && this._time && this.totalProgress() < 1) ? this._tTime % (this._dur + this._rDelay) : this._ts ? Be(r.rawTime(i), this) : this._tTime : this._tTime;
|
|
824
874
|
}, t.revert = function(i) {
|
|
825
|
-
i === void 0 && (i =
|
|
875
|
+
i === void 0 && (i = Rn);
|
|
826
876
|
var r = K;
|
|
827
|
-
return K = i,
|
|
877
|
+
return K = i, Oi(this) && (this.timeline && this.timeline.revert(i), this.totalTime(-0.01, i.suppressEvents)), this.data !== "nested" && i.kill !== !1 && this.kill(), K = r, this;
|
|
828
878
|
}, t.globalTime = function(i) {
|
|
829
879
|
for (var r = this, n = arguments.length ? i : r.rawTime(); r; )
|
|
830
880
|
n = r._start + n / (Math.abs(r._ts) || 1), r = r._dp;
|
|
831
881
|
return !this.parent && this._sat ? this._sat.globalTime(i) : n;
|
|
832
882
|
}, t.repeat = function(i) {
|
|
833
|
-
return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i,
|
|
883
|
+
return arguments.length ? (this._repeat = i === 1 / 0 ? -2 : i, Xi(this)) : this._repeat === -2 ? 1 / 0 : this._repeat;
|
|
834
884
|
}, t.repeatDelay = function(i) {
|
|
835
885
|
if (arguments.length) {
|
|
836
886
|
var r = this._time;
|
|
837
|
-
return this._rDelay = i,
|
|
887
|
+
return this._rDelay = i, Xi(this), r ? this.time(r) : this;
|
|
838
888
|
}
|
|
839
889
|
return this._rDelay;
|
|
840
890
|
}, t.yoyo = function(i) {
|
|
841
891
|
return arguments.length ? (this._yoyo = i, this) : this._yoyo;
|
|
842
892
|
}, t.seek = function(i, r) {
|
|
843
|
-
return this.totalTime(ht(this, i),
|
|
893
|
+
return this.totalTime(ht(this, i), tt(r));
|
|
844
894
|
}, t.restart = function(i, r) {
|
|
845
|
-
return this.play().totalTime(i ? -this._delay : 0,
|
|
895
|
+
return this.play().totalTime(i ? -this._delay : 0, tt(r)), this._dur || (this._zTime = -E), this;
|
|
846
896
|
}, t.play = function(i, r) {
|
|
847
897
|
return i != null && this.seek(i, r), this.reversed(!1).paused(!1);
|
|
848
898
|
}, t.reverse = function(i, r) {
|
|
@@ -852,29 +902,29 @@ var Nr = function(t, e) {
|
|
|
852
902
|
}, t.resume = function() {
|
|
853
903
|
return this.paused(!1);
|
|
854
904
|
}, t.reversed = function(i) {
|
|
855
|
-
return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -
|
|
905
|
+
return arguments.length ? (!!i !== this.reversed() && this.timeScale(-this._rts || (i ? -E : 0)), this) : this._rts < 0;
|
|
856
906
|
}, t.invalidate = function() {
|
|
857
|
-
return this._initted = this._act = 0, this._zTime = -
|
|
907
|
+
return this._initted = this._act = 0, this._zTime = -E, this;
|
|
858
908
|
}, t.isActive = function() {
|
|
859
909
|
var i = this.parent || this._dp, r = this._start, n;
|
|
860
|
-
return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) -
|
|
910
|
+
return !!(!i || this._ts && this._initted && i.isActive() && (n = i.rawTime(!0)) >= r && n < this.endTime(!0) - E);
|
|
861
911
|
}, t.eventCallback = function(i, r, n) {
|
|
862
912
|
var s = this.vars;
|
|
863
913
|
return arguments.length > 1 ? (r ? (s[i] = r, n && (s[i + "Params"] = n), i === "onUpdate" && (this._onUpdate = r)) : delete s[i], this) : s[i];
|
|
864
914
|
}, t.then = function(i) {
|
|
865
915
|
var r = this, n = r._prom;
|
|
866
916
|
return new Promise(function(s) {
|
|
867
|
-
var a = V(i) ? i :
|
|
917
|
+
var a = V(i) ? i : kr, l = function() {
|
|
868
918
|
var f = r.then;
|
|
869
919
|
r.then = null, n && n(), V(a) && (a = a(r)) && (a.then || a === r) && (r.then = f), s(a), r.then = f;
|
|
870
920
|
};
|
|
871
921
|
r._initted && r.totalProgress() === 1 && r._ts >= 0 || !r._tTime && r._ts < 0 ? l() : r._prom = l;
|
|
872
922
|
});
|
|
873
923
|
}, t.kill = function() {
|
|
874
|
-
|
|
924
|
+
me(this);
|
|
875
925
|
}, o;
|
|
876
926
|
}();
|
|
877
|
-
|
|
927
|
+
ct(Se.prototype, {
|
|
878
928
|
_time: 0,
|
|
879
929
|
_start: 0,
|
|
880
930
|
_end: 0,
|
|
@@ -889,149 +939,149 @@ ft(ke.prototype, {
|
|
|
889
939
|
_ts: 1,
|
|
890
940
|
_dp: 0,
|
|
891
941
|
ratio: 0,
|
|
892
|
-
_zTime: -
|
|
942
|
+
_zTime: -E,
|
|
893
943
|
_prom: 0,
|
|
894
944
|
_ps: !1,
|
|
895
945
|
_rts: 1
|
|
896
946
|
});
|
|
897
947
|
var Z = /* @__PURE__ */ function(o) {
|
|
898
|
-
|
|
948
|
+
hr(t, o);
|
|
899
949
|
function t(i, r) {
|
|
900
950
|
var n;
|
|
901
|
-
return i === void 0 && (i = {}), n = o.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort =
|
|
951
|
+
return i === void 0 && (i = {}), n = o.call(this, i) || this, n.labels = {}, n.smoothChildTiming = !!i.smoothChildTiming, n.autoRemoveChildren = !!i.autoRemoveChildren, n._sort = tt(i.sortChildren), $ && xt(i.parent || $, St(n), r), i.reversed && n.reverse(), i.paused && n.paused(!0), i.scrollTrigger && Pr(St(n), i.scrollTrigger), n;
|
|
902
952
|
}
|
|
903
953
|
var e = t.prototype;
|
|
904
954
|
return e.to = function(r, n, s) {
|
|
905
|
-
return
|
|
955
|
+
return ve(0, arguments, this), this;
|
|
906
956
|
}, e.from = function(r, n, s) {
|
|
907
|
-
return
|
|
957
|
+
return ve(1, arguments, this), this;
|
|
908
958
|
}, e.fromTo = function(r, n, s, a) {
|
|
909
|
-
return
|
|
959
|
+
return ve(2, arguments, this), this;
|
|
910
960
|
}, e.set = function(r, n, s) {
|
|
911
|
-
return n.duration = 0, n.parent = this,
|
|
961
|
+
return n.duration = 0, n.parent = this, ye(n).repeatDelay || (n.repeat = 0), n.immediateRender = !!n.immediateRender, new X(r, n, ht(this, s), 1), this;
|
|
912
962
|
}, e.call = function(r, n, s) {
|
|
913
|
-
return
|
|
963
|
+
return xt(this, X.delayedCall(0, r, n), s);
|
|
914
964
|
}, e.staggerTo = function(r, n, s, a, l, u, f) {
|
|
915
|
-
return s.duration = n, s.stagger = s.stagger || a, s.onComplete = u, s.onCompleteParams = f, s.parent = this, new
|
|
965
|
+
return s.duration = n, s.stagger = s.stagger || a, s.onComplete = u, s.onCompleteParams = f, s.parent = this, new X(r, s, ht(this, l)), this;
|
|
916
966
|
}, e.staggerFrom = function(r, n, s, a, l, u, f) {
|
|
917
|
-
return s.runBackwards = 1,
|
|
967
|
+
return s.runBackwards = 1, ye(s).immediateRender = tt(s.immediateRender), this.staggerTo(r, n, s, a, l, u, f);
|
|
918
968
|
}, e.staggerFromTo = function(r, n, s, a, l, u, f, h) {
|
|
919
|
-
return a.startAt = s,
|
|
969
|
+
return a.startAt = s, ye(a).immediateRender = tt(a.immediateRender), this.staggerTo(r, n, a, l, u, f, h);
|
|
920
970
|
}, e.render = function(r, n, s) {
|
|
921
|
-
var a = this._time, l = this._dirty ? this.totalDuration() : this._tDur, u = this._dur, f = r <= 0 ? 0 : L(r), h = this._zTime < 0 != r < 0 && (this._initted || !u),
|
|
971
|
+
var a = this._time, l = this._dirty ? this.totalDuration() : this._tDur, u = this._dur, f = r <= 0 ? 0 : L(r), h = this._zTime < 0 != r < 0 && (this._initted || !u), _, d, p, c, g, y, v, w, x, m, T, k;
|
|
922
972
|
if (this !== $ && f > l && r >= 0 && (f = l), f !== this._tTime || s || h) {
|
|
923
|
-
if (a !== this._time && u && (f += this._time - a, r += this._time - a),
|
|
924
|
-
if (T = this._yoyo,
|
|
925
|
-
return this.totalTime(
|
|
926
|
-
if (
|
|
927
|
-
var S = T &&
|
|
928
|
-
if (c <
|
|
973
|
+
if (a !== this._time && u && (f += this._time - a, r += this._time - a), _ = f, x = this._start, w = this._ts, y = !w, h && (u || (a = this._zTime), (r || !n) && (this._zTime = r)), this._repeat) {
|
|
974
|
+
if (T = this._yoyo, g = u + this._rDelay, this._repeat < -1 && r < 0)
|
|
975
|
+
return this.totalTime(g * 100 + r, n, s);
|
|
976
|
+
if (_ = L(f % g), f === l ? (c = this._repeat, _ = u) : (m = L(f / g), c = ~~m, c && c === m && (_ = u, c--), _ > u && (_ = u)), m = le(this._tTime, g), !a && this._tTime && m !== c && this._tTime - m * g - this._dur <= 0 && (m = c), T && c & 1 && (_ = u - _, k = 1), c !== m && !this._lock) {
|
|
977
|
+
var S = T && m & 1, b = S === (T && c & 1);
|
|
978
|
+
if (c < m && (S = !S), a = S ? 0 : f % u ? u : f, this._lock = 1, this.render(a || (k ? 0 : L(c * g)), n, !u)._lock = 0, this._tTime = f, !n && this.parent && ot(this, "onRepeat"), this.vars.repeatRefresh && !k && (this.invalidate()._lock = 1, m = c), a && a !== this._time || y !== !this._ts || this.vars.onRepeat && !this.parent && !this._act)
|
|
929
979
|
return this;
|
|
930
980
|
if (u = this._dur, l = this._tDur, b && (this._lock = 2, a = S ? u : -1e-4, this.render(a, !0), this.vars.repeatRefresh && !k && this.invalidate()), this._lock = 0, !this._ts && !y)
|
|
931
981
|
return this;
|
|
932
|
-
|
|
982
|
+
Ur(this, k);
|
|
933
983
|
}
|
|
934
984
|
}
|
|
935
|
-
if (this._hasPause && !this._forcing && this._lock < 2 && (v =
|
|
985
|
+
if (this._hasPause && !this._forcing && this._lock < 2 && (v = Un(this, L(a), L(_)), v && (f -= _ - (_ = v._start))), this._tTime = f, this._time = _, this._act = !w, this._initted || (this._onUpdate = this.vars.onUpdate, this._initted = 1, this._zTime = r, a = 0), !a && f && u && !n && !m && (ot(this, "onStart"), this._tTime !== f))
|
|
936
986
|
return this;
|
|
937
|
-
if (
|
|
938
|
-
for (
|
|
939
|
-
if (
|
|
940
|
-
if (
|
|
987
|
+
if (_ >= a && r >= 0)
|
|
988
|
+
for (d = this._first; d; ) {
|
|
989
|
+
if (p = d._next, (d._act || _ >= d._start) && d._ts && v !== d) {
|
|
990
|
+
if (d.parent !== this)
|
|
941
991
|
return this.render(r, n, s);
|
|
942
|
-
if (
|
|
943
|
-
v = 0,
|
|
992
|
+
if (d.render(d._ts > 0 ? (_ - d._start) * d._ts : (d._dirty ? d.totalDuration() : d._tDur) + (_ - d._start) * d._ts, n, s), _ !== this._time || !this._ts && !y) {
|
|
993
|
+
v = 0, p && (f += this._zTime = -E);
|
|
944
994
|
break;
|
|
945
995
|
}
|
|
946
996
|
}
|
|
947
|
-
|
|
997
|
+
d = p;
|
|
948
998
|
}
|
|
949
999
|
else {
|
|
950
|
-
|
|
951
|
-
for (var
|
|
952
|
-
if (
|
|
953
|
-
if (
|
|
1000
|
+
d = this._last;
|
|
1001
|
+
for (var P = r < 0 ? r : _; d; ) {
|
|
1002
|
+
if (p = d._prev, (d._act || P <= d._end) && d._ts && v !== d) {
|
|
1003
|
+
if (d.parent !== this)
|
|
954
1004
|
return this.render(r, n, s);
|
|
955
|
-
if (
|
|
956
|
-
v = 0,
|
|
1005
|
+
if (d.render(d._ts > 0 ? (P - d._start) * d._ts : (d._dirty ? d.totalDuration() : d._tDur) + (P - d._start) * d._ts, n, s || K && Oi(d)), _ !== this._time || !this._ts && !y) {
|
|
1006
|
+
v = 0, p && (f += this._zTime = P ? -E : E);
|
|
957
1007
|
break;
|
|
958
1008
|
}
|
|
959
1009
|
}
|
|
960
|
-
|
|
1010
|
+
d = p;
|
|
961
1011
|
}
|
|
962
1012
|
}
|
|
963
|
-
if (v && !n && (this.pause(), v.render(
|
|
964
|
-
return this._start = x,
|
|
965
|
-
this._onUpdate && !n &&
|
|
1013
|
+
if (v && !n && (this.pause(), v.render(_ >= a ? 0 : -E)._zTime = _ >= a ? 1 : -1, this._ts))
|
|
1014
|
+
return this._start = x, Ge(this), this.render(r, n, s);
|
|
1015
|
+
this._onUpdate && !n && ot(this, "onUpdate", !0), (f === l && this._tTime >= this.totalDuration() || !f && a) && (x === this._start || Math.abs(w) !== Math.abs(this._ts)) && (this._lock || ((r || !u) && (f === l && this._ts > 0 || !f && this._ts < 0) && Rt(this, 1), !n && !(r < 0 && !a) && (f || a || !l) && (ot(this, f === l && r >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(f < l && this.timeScale() > 0) && this._prom())));
|
|
966
1016
|
}
|
|
967
1017
|
return this;
|
|
968
1018
|
}, e.add = function(r, n) {
|
|
969
1019
|
var s = this;
|
|
970
|
-
if (
|
|
1020
|
+
if (Pt(n) || (n = ht(this, n, r)), !(r instanceof Se)) {
|
|
971
1021
|
if (Q(r))
|
|
972
1022
|
return r.forEach(function(a) {
|
|
973
1023
|
return s.add(a, n);
|
|
974
1024
|
}), this;
|
|
975
|
-
if (
|
|
1025
|
+
if (G(r))
|
|
976
1026
|
return this.addLabel(r, n);
|
|
977
1027
|
if (V(r))
|
|
978
|
-
r =
|
|
1028
|
+
r = X.delayedCall(0, r);
|
|
979
1029
|
else
|
|
980
1030
|
return this;
|
|
981
1031
|
}
|
|
982
|
-
return this !== r ?
|
|
1032
|
+
return this !== r ? xt(this, r, n) : this;
|
|
983
1033
|
}, e.getChildren = function(r, n, s, a) {
|
|
984
|
-
r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -
|
|
1034
|
+
r === void 0 && (r = !0), n === void 0 && (n = !0), s === void 0 && (s = !0), a === void 0 && (a = -_t);
|
|
985
1035
|
for (var l = [], u = this._first; u; )
|
|
986
|
-
u._start >= a && (u instanceof
|
|
1036
|
+
u._start >= a && (u instanceof X ? n && l.push(u) : (s && l.push(u), r && l.push.apply(l, u.getChildren(!0, n, s)))), u = u._next;
|
|
987
1037
|
return l;
|
|
988
1038
|
}, e.getById = function(r) {
|
|
989
1039
|
for (var n = this.getChildren(1, 1, 1), s = n.length; s--; )
|
|
990
1040
|
if (n[s].vars.id === r)
|
|
991
1041
|
return n[s];
|
|
992
1042
|
}, e.remove = function(r) {
|
|
993
|
-
return
|
|
1043
|
+
return G(r) ? this.removeLabel(r) : V(r) ? this.killTweensOf(r) : (r.parent === this && We(this, r), r === this._recent && (this._recent = this._last), jt(this));
|
|
994
1044
|
}, e.totalTime = function(r, n) {
|
|
995
|
-
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = L(
|
|
1045
|
+
return arguments.length ? (this._forcing = 1, !this._dp && this._ts && (this._start = L(at.time - (this._ts > 0 ? r / this._ts : (this.totalDuration() - r) / -this._ts))), o.prototype.totalTime.call(this, r, n), this._forcing = 0, this) : this._tTime;
|
|
996
1046
|
}, e.addLabel = function(r, n) {
|
|
997
1047
|
return this.labels[r] = ht(this, n), this;
|
|
998
1048
|
}, e.removeLabel = function(r) {
|
|
999
1049
|
return delete this.labels[r], this;
|
|
1000
1050
|
}, e.addPause = function(r, n, s) {
|
|
1001
|
-
var a =
|
|
1002
|
-
return a.data = "isPause", this._hasPause = 1,
|
|
1051
|
+
var a = X.delayedCall(0, n || we, s);
|
|
1052
|
+
return a.data = "isPause", this._hasPause = 1, xt(this, a, ht(this, r));
|
|
1003
1053
|
}, e.removePause = function(r) {
|
|
1004
1054
|
var n = this._first;
|
|
1005
1055
|
for (r = ht(this, r); n; )
|
|
1006
|
-
n._start === r && n.data === "isPause" &&
|
|
1056
|
+
n._start === r && n.data === "isPause" && Rt(n), n = n._next;
|
|
1007
1057
|
}, e.killTweensOf = function(r, n, s) {
|
|
1008
1058
|
for (var a = this.getTweensOf(r, s), l = a.length; l--; )
|
|
1009
1059
|
Mt !== a[l] && a[l].kill(r, n);
|
|
1010
1060
|
return this;
|
|
1011
1061
|
}, e.getTweensOf = function(r, n) {
|
|
1012
|
-
for (var s = [], a =
|
|
1013
|
-
l instanceof
|
|
1062
|
+
for (var s = [], a = pt(r), l = this._first, u = Pt(n), f; l; )
|
|
1063
|
+
l instanceof X ? In(l._targets, a) && (u ? (!Mt || l._initted && l._ts) && l.globalTime(0) <= n && l.globalTime(l.totalDuration()) > n : !n || l.isActive()) && s.push(l) : (f = l.getTweensOf(a, n)).length && s.push.apply(s, f), l = l._next;
|
|
1014
1064
|
return s;
|
|
1015
1065
|
}, e.tweenTo = function(r, n) {
|
|
1016
1066
|
n = n || {};
|
|
1017
|
-
var s = this, a = ht(s, r), l = n, u = l.startAt, f = l.onStart, h = l.onStartParams,
|
|
1067
|
+
var s = this, a = ht(s, r), l = n, u = l.startAt, f = l.onStart, h = l.onStartParams, _ = l.immediateRender, d, p = X.to(s, ct({
|
|
1018
1068
|
ease: n.ease || "none",
|
|
1019
1069
|
lazy: !1,
|
|
1020
1070
|
immediateRender: !1,
|
|
1021
1071
|
time: a,
|
|
1022
1072
|
overwrite: "auto",
|
|
1023
|
-
duration: n.duration || Math.abs((a - (u && "time" in u ? u.time : s._time)) / s.timeScale()) ||
|
|
1073
|
+
duration: n.duration || Math.abs((a - (u && "time" in u ? u.time : s._time)) / s.timeScale()) || E,
|
|
1024
1074
|
onStart: function() {
|
|
1025
|
-
if (s.pause(), !
|
|
1026
|
-
var
|
|
1027
|
-
|
|
1075
|
+
if (s.pause(), !d) {
|
|
1076
|
+
var g = n.duration || Math.abs((a - (u && "time" in u ? u.time : s._time)) / s.timeScale());
|
|
1077
|
+
p._dur !== g && ue(p, g, 0, 1).render(p._time, !0, !0), d = 1;
|
|
1028
1078
|
}
|
|
1029
|
-
f && f.apply(
|
|
1079
|
+
f && f.apply(p, h || []);
|
|
1030
1080
|
}
|
|
1031
1081
|
}, n));
|
|
1032
|
-
return
|
|
1082
|
+
return _ ? p.render(0) : p;
|
|
1033
1083
|
}, e.tweenFromTo = function(r, n, s) {
|
|
1034
|
-
return this.tweenTo(n,
|
|
1084
|
+
return this.tweenTo(n, ct({
|
|
1035
1085
|
startAt: {
|
|
1036
1086
|
time: ht(this, r)
|
|
1037
1087
|
}
|
|
@@ -1039,11 +1089,11 @@ var Z = /* @__PURE__ */ function(o) {
|
|
|
1039
1089
|
}, e.recent = function() {
|
|
1040
1090
|
return this._recent;
|
|
1041
1091
|
}, e.nextLabel = function(r) {
|
|
1042
|
-
return r === void 0 && (r = this._time),
|
|
1092
|
+
return r === void 0 && (r = this._time), ji(this, ht(this, r));
|
|
1043
1093
|
}, e.previousLabel = function(r) {
|
|
1044
|
-
return r === void 0 && (r = this._time),
|
|
1094
|
+
return r === void 0 && (r = this._time), ji(this, ht(this, r), 1);
|
|
1045
1095
|
}, e.currentLabel = function(r) {
|
|
1046
|
-
return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time +
|
|
1096
|
+
return arguments.length ? this.seek(r, !0) : this.previousLabel(this._time + E);
|
|
1047
1097
|
}, e.shiftChildren = function(r, n, s) {
|
|
1048
1098
|
s === void 0 && (s = 0);
|
|
1049
1099
|
var a = this._first, l = this.labels, u;
|
|
@@ -1052,7 +1102,7 @@ var Z = /* @__PURE__ */ function(o) {
|
|
|
1052
1102
|
if (n)
|
|
1053
1103
|
for (u in l)
|
|
1054
1104
|
l[u] >= s && (l[u] += r);
|
|
1055
|
-
return
|
|
1105
|
+
return jt(this);
|
|
1056
1106
|
}, e.invalidate = function(r) {
|
|
1057
1107
|
var n = this._first;
|
|
1058
1108
|
for (this._lock = 0; n; )
|
|
@@ -1062,135 +1112,135 @@ var Z = /* @__PURE__ */ function(o) {
|
|
|
1062
1112
|
r === void 0 && (r = !0);
|
|
1063
1113
|
for (var n = this._first, s; n; )
|
|
1064
1114
|
s = n._next, this.remove(n), n = s;
|
|
1065
|
-
return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}),
|
|
1115
|
+
return this._dp && (this._time = this._tTime = this._pTime = 0), r && (this.labels = {}), jt(this);
|
|
1066
1116
|
}, e.totalDuration = function(r) {
|
|
1067
|
-
var n = 0, s = this, a = s._last, l =
|
|
1117
|
+
var n = 0, s = this, a = s._last, l = _t, u, f, h;
|
|
1068
1118
|
if (arguments.length)
|
|
1069
1119
|
return s.timeScale((s._repeat < 0 ? s.duration() : s.totalDuration()) / (s.reversed() ? -r : r));
|
|
1070
1120
|
if (s._dirty) {
|
|
1071
1121
|
for (h = s.parent; a; )
|
|
1072
|
-
u = a._prev, a._dirty && a.totalDuration(), f = a._start, f > l && s._sort && a._ts && !s._lock ? (s._lock = 1,
|
|
1073
|
-
|
|
1122
|
+
u = a._prev, a._dirty && a.totalDuration(), f = a._start, f > l && s._sort && a._ts && !s._lock ? (s._lock = 1, xt(s, a, f - a._delay, 1)._lock = 0) : l = f, f < 0 && a._ts && (n -= f, (!h && !s._dp || h && h.smoothChildTiming) && (s._start += L(f / s._ts), s._time -= f, s._tTime -= f), s.shiftChildren(-f, !1, -1 / 0), l = 0), a._end > n && a._ts && (n = a._end), a = u;
|
|
1123
|
+
ue(s, s === $ && s._time > n ? s._time : n, 1, 1), s._dirty = 0;
|
|
1074
1124
|
}
|
|
1075
1125
|
return s._tDur;
|
|
1076
1126
|
}, t.updateRoot = function(r) {
|
|
1077
|
-
if ($._ts && (
|
|
1078
|
-
|
|
1127
|
+
if ($._ts && (wr($, Be(r, $)), xr = at.frame), at.frame >= Ui) {
|
|
1128
|
+
Ui += ut.autoSleep || 120;
|
|
1079
1129
|
var n = $._first;
|
|
1080
|
-
if ((!n || !n._ts) &&
|
|
1130
|
+
if ((!n || !n._ts) && ut.autoSleep && at._listeners.length < 2) {
|
|
1081
1131
|
for (; n && !n._ts; )
|
|
1082
1132
|
n = n._next;
|
|
1083
|
-
n ||
|
|
1133
|
+
n || at.sleep();
|
|
1084
1134
|
}
|
|
1085
1135
|
}
|
|
1086
1136
|
}, t;
|
|
1087
|
-
}(
|
|
1088
|
-
|
|
1137
|
+
}(Se);
|
|
1138
|
+
ct(Z.prototype, {
|
|
1089
1139
|
_lock: 0,
|
|
1090
1140
|
_hasPause: 0,
|
|
1091
1141
|
_forcing: 0
|
|
1092
1142
|
});
|
|
1093
|
-
var
|
|
1094
|
-
var l = new
|
|
1095
|
-
for (l.b = i, l.e = r, i += "", r += "", (y = ~r.indexOf("random(")) && (r =
|
|
1096
|
-
|
|
1143
|
+
var ns = function(t, e, i, r, n, s, a) {
|
|
1144
|
+
var l = new it(this._pt, t, e, 0, 1, Kr, null, n), u = 0, f = 0, h, _, d, p, c, g, y, v;
|
|
1145
|
+
for (l.b = i, l.e = r, i += "", r += "", (y = ~r.indexOf("random(")) && (r = Te(r)), s && (v = [i, r], s(v, t, e), i = v[0], r = v[1]), _ = i.match(Ke) || []; h = Ke.exec(r); )
|
|
1146
|
+
p = h[0], c = r.substring(u, h.index), d ? d = (d + 1) % 5 : c.substr(-5) === "rgba(" && (d = 1), p !== _[f++] && (g = parseFloat(_[f - 1]) || 0, l._pt = {
|
|
1097
1147
|
_next: l._pt,
|
|
1098
1148
|
p: c || f === 1 ? c : ",",
|
|
1099
1149
|
//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.
|
|
1100
|
-
s:
|
|
1101
|
-
c:
|
|
1102
|
-
m:
|
|
1150
|
+
s: g,
|
|
1151
|
+
c: p.charAt(1) === "=" ? re(g, p) - g : parseFloat(p) - g,
|
|
1152
|
+
m: d && d < 4 ? Math.round : 0
|
|
1103
1153
|
}, u = Ke.lastIndex);
|
|
1104
|
-
return l.c = u < r.length ? r.substring(u, r.length) : "", l.fp = a, (
|
|
1154
|
+
return l.c = u < r.length ? r.substring(u, r.length) : "", l.fp = a, (mr.test(r) || y) && (l.e = 0), this._pt = l, l;
|
|
1105
1155
|
}, Pi = function(t, e, i, r, n, s, a, l, u, f) {
|
|
1106
1156
|
V(r) && (r = r(n || 0, t, s));
|
|
1107
|
-
var h = t[e],
|
|
1108
|
-
if (
|
|
1109
|
-
return !isNaN(
|
|
1110
|
-
},
|
|
1111
|
-
if (V(t) && (t =
|
|
1112
|
-
return
|
|
1157
|
+
var h = t[e], _ = i !== "get" ? i : V(h) ? u ? t[e.indexOf("set") || !V(t["get" + e.substr(3)]) ? e : "get" + e.substr(3)](u) : t[e]() : h, d = V(h) ? u ? us : Gr : Mi, p;
|
|
1158
|
+
if (G(r) && (~r.indexOf("random(") && (r = Te(r)), r.charAt(1) === "=" && (p = re(_, r) + (J(_) || 0), (p || p === 0) && (r = p))), !f || _ !== r || hi)
|
|
1159
|
+
return !isNaN(_ * r) && r !== "" ? (p = new it(this._pt, t, e, +_ || 0, r - (_ || 0), typeof h == "boolean" ? cs : Hr, 0, d), u && (p.fp = u), a && p.modifier(a, this, t), this._pt = p) : (!h && !(e in t) && wi(e, r), ns.call(this, t, e, _, r, d, l || ut.stringFilter, u));
|
|
1160
|
+
}, ss = function(t, e, i, r, n) {
|
|
1161
|
+
if (V(t) && (t = xe(t, n, e, i, r)), !wt(t) || t.style && t.nodeType || Q(t) || _r(t))
|
|
1162
|
+
return G(t) ? xe(t, n, e, i, r) : t;
|
|
1113
1163
|
var s = {}, a;
|
|
1114
1164
|
for (a in t)
|
|
1115
|
-
s[a] =
|
|
1165
|
+
s[a] = xe(t[a], n, e, i, r);
|
|
1116
1166
|
return s;
|
|
1117
|
-
},
|
|
1167
|
+
}, Xr = function(t, e, i, r, n, s) {
|
|
1118
1168
|
var a, l, u, f;
|
|
1119
|
-
if (
|
|
1169
|
+
if (st[t] && (a = new st[t]()).init(n, a.rawVars ? e[t] : ss(e[t], r, n, s, i), i, r, s) !== !1 && (i._pt = l = new it(i._pt, n, t, 0, 1, a.render, a, 0, a.priority), i !== ee))
|
|
1120
1170
|
for (u = i._ptLookup[i._targets.indexOf(n)], f = a._props.length; f--; )
|
|
1121
1171
|
u[a._props[f]] = l;
|
|
1122
1172
|
return a;
|
|
1123
|
-
}, Mt, hi,
|
|
1124
|
-
var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender, l = r.lazy, u = r.onUpdate, f = r.runBackwards, h = r.yoyoEase,
|
|
1125
|
-
if (x && (!
|
|
1126
|
-
if (D =
|
|
1127
|
-
if (
|
|
1173
|
+
}, Mt, hi, Ci = function o(t, e, i) {
|
|
1174
|
+
var r = t.vars, n = r.ease, s = r.startAt, a = r.immediateRender, l = r.lazy, u = r.onUpdate, f = r.runBackwards, h = r.yoyoEase, _ = r.keyframes, d = r.autoRevert, p = t._dur, c = t._startAt, g = t._targets, y = t.parent, v = y && y.data === "nested" ? y.vars.targets : g, w = t._overwrite === "auto" && !yi, x = t.timeline, m, T, k, S, b, P, M, D, R, H, j, q, W;
|
|
1175
|
+
if (x && (!_ || !n) && (n = "none"), t._ease = Wt(n, ae.ease), t._yEase = h ? Vr(Wt(h === !0 ? n : h, ae.ease)) : 0, h && t._yoyo && !t._repeat && (h = t._yEase, t._yEase = t._ease, t._ease = h), t._from = !x && !!r.runBackwards, !x || _ && !r.stagger) {
|
|
1176
|
+
if (D = g[0] ? Xt(g[0]).harness : 0, q = D && r[D.prop], m = Ne(r, Ti), c && (c._zTime < 0 && c.progress(1), e < 0 && f && a && !d ? c.render(-1, !0) : c.revert(f && p ? Re : En), c._lazy = 0), s) {
|
|
1177
|
+
if (Rt(t._startAt = X.set(g, ct({
|
|
1128
1178
|
data: "isStart",
|
|
1129
1179
|
overwrite: !1,
|
|
1130
1180
|
parent: y,
|
|
1131
1181
|
immediateRender: !0,
|
|
1132
|
-
lazy: !c &&
|
|
1182
|
+
lazy: !c && tt(l),
|
|
1133
1183
|
startAt: null,
|
|
1134
1184
|
delay: 0,
|
|
1135
1185
|
onUpdate: u && function() {
|
|
1136
|
-
return
|
|
1186
|
+
return ot(t, "onUpdate");
|
|
1137
1187
|
},
|
|
1138
1188
|
stagger: 0
|
|
1139
|
-
}, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (K || !a && !
|
|
1189
|
+
}, s))), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (K || !a && !d) && t._startAt.revert(Re), a && p && e <= 0 && i <= 0) {
|
|
1140
1190
|
e && (t._zTime = e);
|
|
1141
1191
|
return;
|
|
1142
1192
|
}
|
|
1143
|
-
} else if (f &&
|
|
1144
|
-
if (e && (a = !1), k =
|
|
1193
|
+
} else if (f && p && !c) {
|
|
1194
|
+
if (e && (a = !1), k = ct({
|
|
1145
1195
|
overwrite: !1,
|
|
1146
1196
|
data: "isFromStart",
|
|
1147
1197
|
//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.
|
|
1148
|
-
lazy: a && !c &&
|
|
1198
|
+
lazy: a && !c && tt(l),
|
|
1149
1199
|
immediateRender: a,
|
|
1150
1200
|
//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)
|
|
1151
1201
|
stagger: 0,
|
|
1152
1202
|
parent: y
|
|
1153
1203
|
//ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
|
|
1154
|
-
},
|
|
1155
|
-
o(t._startAt,
|
|
1204
|
+
}, m), q && (k[D.prop] = q), Rt(t._startAt = X.set(g, k)), t._startAt._dp = 0, t._startAt._sat = t, e < 0 && (K ? t._startAt.revert(Re) : t._startAt.render(-1, !0)), t._zTime = e, !a)
|
|
1205
|
+
o(t._startAt, E, E);
|
|
1156
1206
|
else if (!e)
|
|
1157
1207
|
return;
|
|
1158
1208
|
}
|
|
1159
|
-
for (t._pt = t._ptCache = 0, l =
|
|
1160
|
-
if (b =
|
|
1161
|
-
|
|
1162
|
-
}),
|
|
1163
|
-
for (k in
|
|
1164
|
-
|
|
1165
|
-
t._op && t._op[T] && t.kill(b, t._op[T]), w && t._pt && (Mt = t, $.killTweensOf(b,
|
|
1209
|
+
for (t._pt = t._ptCache = 0, l = p && tt(l) || l && !p, T = 0; T < g.length; T++) {
|
|
1210
|
+
if (b = g[T], M = b._gsap || Si(g)[T]._gsap, t._ptLookup[T] = H = {}, ai[M.id] && zt.length && $e(), j = v === g ? T : v.indexOf(b), D && (R = new D()).init(b, q || m, t, j, v) !== !1 && (t._pt = S = new it(t._pt, b, R.name, 0, 1, R.render, R, 0, R.priority), R._props.forEach(function(mt) {
|
|
1211
|
+
H[mt] = S;
|
|
1212
|
+
}), R.priority && (P = 1)), !D || q)
|
|
1213
|
+
for (k in m)
|
|
1214
|
+
st[k] && (R = Xr(k, m, t, j, b, v)) ? R.priority && (P = 1) : H[k] = S = Pi.call(t, b, k, "get", m[k], j, v, 0, r.stringFilter);
|
|
1215
|
+
t._op && t._op[T] && t.kill(b, t._op[T]), w && t._pt && (Mt = t, $.killTweensOf(b, H, t.globalTime(e)), W = !t.parent, Mt = 0), t._pt && l && (ai[M.id] = 1);
|
|
1166
1216
|
}
|
|
1167
|
-
|
|
1217
|
+
P && Jr(t), t._onInit && t._onInit(t);
|
|
1168
1218
|
}
|
|
1169
|
-
t._onUpdate = u, t._initted = (!t._op || t._pt) && !
|
|
1170
|
-
},
|
|
1171
|
-
var u = (t._pt && t._ptCache || (t._ptCache = {}))[e], f, h,
|
|
1219
|
+
t._onUpdate = u, t._initted = (!t._op || t._pt) && !W, _ && e <= 0 && x.render(_t, !0, !0);
|
|
1220
|
+
}, as = function(t, e, i, r, n, s, a, l) {
|
|
1221
|
+
var u = (t._pt && t._ptCache || (t._ptCache = {}))[e], f, h, _, d;
|
|
1172
1222
|
if (!u)
|
|
1173
|
-
for (u = t._ptCache[e] = [],
|
|
1174
|
-
if (f = d
|
|
1223
|
+
for (u = t._ptCache[e] = [], _ = t._ptLookup, d = t._targets.length; d--; ) {
|
|
1224
|
+
if (f = _[d][e], f && f.d && f.d._pt)
|
|
1175
1225
|
for (f = f.d._pt; f && f.p !== e && f.fp !== e; )
|
|
1176
1226
|
f = f._next;
|
|
1177
1227
|
if (!f)
|
|
1178
|
-
return hi = 1, t.vars[e] = "+=0",
|
|
1228
|
+
return hi = 1, t.vars[e] = "+=0", Ci(t, a), hi = 0, l ? be(e + " not eligible for reset") : 1;
|
|
1179
1229
|
u.push(f);
|
|
1180
1230
|
}
|
|
1181
|
-
for (
|
|
1182
|
-
h = u[
|
|
1183
|
-
},
|
|
1184
|
-
var i = t[0] ?
|
|
1231
|
+
for (d = u.length; d--; )
|
|
1232
|
+
h = u[d], f = h._pt || h, f.s = (r || r === 0) && !n ? r : f.s + (r || 0) + s * f.c, f.c = i - f.s, h.e && (h.e = Y(i) + J(h.e)), h.b && (h.b = f.s + J(h.b));
|
|
1233
|
+
}, os = function(t, e) {
|
|
1234
|
+
var i = t[0] ? Xt(t[0]).harness : 0, r = i && i.aliases, n, s, a, l;
|
|
1185
1235
|
if (!r)
|
|
1186
1236
|
return e;
|
|
1187
|
-
n =
|
|
1237
|
+
n = oe({}, e);
|
|
1188
1238
|
for (s in r)
|
|
1189
1239
|
if (s in n)
|
|
1190
1240
|
for (l = r[s].split(","), a = l.length; a--; )
|
|
1191
1241
|
n[l[a]] = n[s];
|
|
1192
1242
|
return n;
|
|
1193
|
-
},
|
|
1243
|
+
}, ls = function(t, e, i, r) {
|
|
1194
1244
|
var n = e.ease || r || "power1.inOut", s, a;
|
|
1195
1245
|
if (Q(e))
|
|
1196
1246
|
a = i[t] || (i[t] = []), e.forEach(function(l, u) {
|
|
@@ -1207,51 +1257,51 @@ var Jn = function(t, e, i, r, n, s, a) {
|
|
|
1207
1257
|
v: e[s],
|
|
1208
1258
|
e: n
|
|
1209
1259
|
});
|
|
1210
|
-
},
|
|
1211
|
-
return V(t) ? t.call(e, i, r, n) :
|
|
1212
|
-
},
|
|
1213
|
-
|
|
1214
|
-
return
|
|
1260
|
+
}, xe = function(t, e, i, r, n) {
|
|
1261
|
+
return V(t) ? t.call(e, i, r, n) : G(t) && ~t.indexOf("random(") ? Te(t) : t;
|
|
1262
|
+
}, jr = ki + "repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert", Wr = {};
|
|
1263
|
+
et(jr + ",id,stagger,delay,duration,paused,scrollTrigger", function(o) {
|
|
1264
|
+
return Wr[o] = 1;
|
|
1215
1265
|
});
|
|
1216
|
-
var
|
|
1217
|
-
|
|
1266
|
+
var X = /* @__PURE__ */ function(o) {
|
|
1267
|
+
hr(t, o);
|
|
1218
1268
|
function t(i, r, n, s) {
|
|
1219
1269
|
var a;
|
|
1220
|
-
typeof r == "number" && (n.duration = r, r = n, n = null), a = o.call(this, s ? r :
|
|
1221
|
-
var l = a.vars, u = l.duration, f = l.delay, h = l.immediateRender,
|
|
1222
|
-
if (a._targets = w.length ?
|
|
1270
|
+
typeof r == "number" && (n.duration = r, r = n, n = null), a = o.call(this, s ? r : ye(r)) || this;
|
|
1271
|
+
var l = a.vars, u = l.duration, f = l.delay, h = l.immediateRender, _ = l.stagger, d = l.overwrite, p = l.keyframes, c = l.defaults, g = l.scrollTrigger, y = l.yoyoEase, v = r.parent || $, w = (Q(i) || _r(i) ? Pt(i[0]) : "length" in r) ? [i] : pt(i), x, m, T, k, S, b, P, M;
|
|
1272
|
+
if (a._targets = w.length ? Si(w) : be("GSAP target " + i + " not found. https://gsap.com", !ut.nullTargetWarn) || [], a._ptLookup = [], a._overwrite = d, p || _ || Ee(u) || Ee(f)) {
|
|
1223
1273
|
if (r = a.vars, x = a.timeline = new Z({
|
|
1224
1274
|
data: "nested",
|
|
1225
1275
|
defaults: c || {},
|
|
1226
1276
|
targets: v && v.data === "nested" ? v.vars.targets : w
|
|
1227
|
-
}), x.kill(), x.parent = x._dp =
|
|
1228
|
-
if (k = w.length,
|
|
1229
|
-
for (S in
|
|
1230
|
-
~
|
|
1231
|
-
for (
|
|
1232
|
-
T =
|
|
1277
|
+
}), x.kill(), x.parent = x._dp = St(a), x._start = 0, _ || Ee(u) || Ee(f)) {
|
|
1278
|
+
if (k = w.length, P = _ && Ar(_), wt(_))
|
|
1279
|
+
for (S in _)
|
|
1280
|
+
~jr.indexOf(S) && (M || (M = {}), M[S] = _[S]);
|
|
1281
|
+
for (m = 0; m < k; m++)
|
|
1282
|
+
T = Ne(r, Wr), T.stagger = 0, y && (T.yoyoEase = y), M && oe(T, M), b = w[m], T.duration = +xe(u, St(a), m, b, w), T.delay = (+xe(f, St(a), m, b, w) || 0) - a._delay, !_ && k === 1 && T.delay && (a._delay = f = T.delay, a._start += f, T.delay = 0), x.to(b, T, P ? P(m, b, w) : 0), x._ease = C.none;
|
|
1233
1283
|
x.duration() ? u = f = 0 : a.timeline = 0;
|
|
1234
|
-
} else if (
|
|
1235
|
-
|
|
1284
|
+
} else if (p) {
|
|
1285
|
+
ye(ct(x.vars.defaults, {
|
|
1236
1286
|
ease: "none"
|
|
1237
|
-
})), x._ease =
|
|
1238
|
-
var D = 0,
|
|
1239
|
-
if (Q(
|
|
1240
|
-
|
|
1241
|
-
return x.to(w,
|
|
1287
|
+
})), x._ease = Wt(p.ease || r.ease || "none");
|
|
1288
|
+
var D = 0, R, H, j;
|
|
1289
|
+
if (Q(p))
|
|
1290
|
+
p.forEach(function(q) {
|
|
1291
|
+
return x.to(w, q, ">");
|
|
1242
1292
|
}), x.duration();
|
|
1243
1293
|
else {
|
|
1244
1294
|
T = {};
|
|
1245
|
-
for (S in
|
|
1246
|
-
S === "ease" || S === "easeEach" ||
|
|
1295
|
+
for (S in p)
|
|
1296
|
+
S === "ease" || S === "easeEach" || ls(S, p[S], T, p.easeEach);
|
|
1247
1297
|
for (S in T)
|
|
1248
|
-
for (
|
|
1249
|
-
return
|
|
1250
|
-
}), D = 0,
|
|
1251
|
-
|
|
1252
|
-
ease:
|
|
1253
|
-
duration: (
|
|
1254
|
-
},
|
|
1298
|
+
for (R = T[S].sort(function(q, W) {
|
|
1299
|
+
return q.t - W.t;
|
|
1300
|
+
}), D = 0, m = 0; m < R.length; m++)
|
|
1301
|
+
H = R[m], j = {
|
|
1302
|
+
ease: H.e,
|
|
1303
|
+
duration: (H.t - (m ? R[m - 1].t : 0)) / 100 * u
|
|
1304
|
+
}, j[S] = H.v, x.to(w, j, D), D += j.duration;
|
|
1255
1305
|
x.duration() < u && x.to({}, {
|
|
1256
1306
|
duration: u - x.duration()
|
|
1257
1307
|
});
|
|
@@ -1260,34 +1310,34 @@ var q = /* @__PURE__ */ function(o) {
|
|
|
1260
1310
|
u || a.duration(u = x.duration());
|
|
1261
1311
|
} else
|
|
1262
1312
|
a.timeline = 0;
|
|
1263
|
-
return
|
|
1313
|
+
return d === !0 && !yi && (Mt = St(a), $.killTweensOf(w), Mt = 0), xt(v, St(a), n), r.reversed && a.reverse(), r.paused && a.paused(!0), (h || !u && !p && a._start === L(v._time) && tt(h) && Nn(St(a)) && v.data !== "nested") && (a._tTime = -E, a.render(Math.max(0, -f) || 0)), g && Pr(St(a), g), a;
|
|
1264
1314
|
}
|
|
1265
1315
|
var e = t.prototype;
|
|
1266
1316
|
return e.render = function(r, n, s) {
|
|
1267
|
-
var a = this._time, l = this._tDur, u = this._dur, f = r < 0, h = r > l -
|
|
1317
|
+
var a = this._time, l = this._tDur, u = this._dur, f = r < 0, h = r > l - E && !f ? l : r < E ? 0 : r, _, d, p, c, g, y, v, w, x;
|
|
1268
1318
|
if (!u)
|
|
1269
|
-
|
|
1319
|
+
Vn(this, r, n, s);
|
|
1270
1320
|
else if (h !== this._tTime || !r || s || !this._initted && this._tTime || this._startAt && this._zTime < 0 !== f || this._lazy) {
|
|
1271
|
-
if (
|
|
1321
|
+
if (_ = h, w = this.timeline, this._repeat) {
|
|
1272
1322
|
if (c = u + this._rDelay, this._repeat < -1 && f)
|
|
1273
1323
|
return this.totalTime(c * 100 + r, n, s);
|
|
1274
|
-
if (
|
|
1324
|
+
if (_ = L(h % c), h === l ? (p = this._repeat, _ = u) : (g = L(h / c), p = ~~g, p && p === g ? (_ = u, p--) : _ > u && (_ = u)), y = this._yoyo && p & 1, y && (x = this._yEase, _ = u - _), g = le(this._tTime, c), _ === a && !s && this._initted && p === g)
|
|
1275
1325
|
return this._tTime = h, this;
|
|
1276
|
-
|
|
1326
|
+
p !== g && (w && this._yEase && Ur(w, y), this.vars.repeatRefresh && !y && !this._lock && _ !== c && this._initted && (this._lock = s = 1, this.render(L(c * p), !0).invalidate()._lock = 0));
|
|
1277
1327
|
}
|
|
1278
1328
|
if (!this._initted) {
|
|
1279
|
-
if (
|
|
1329
|
+
if (Cr(this, f ? r : _, s, n, h))
|
|
1280
1330
|
return this._tTime = 0, this;
|
|
1281
|
-
if (a !== this._time && !(s && this.vars.repeatRefresh &&
|
|
1331
|
+
if (a !== this._time && !(s && this.vars.repeatRefresh && p !== g))
|
|
1282
1332
|
return this;
|
|
1283
1333
|
if (u !== this._dur)
|
|
1284
1334
|
return this.render(r, n, s);
|
|
1285
1335
|
}
|
|
1286
|
-
if (this._tTime = h, this._time =
|
|
1336
|
+
if (this._tTime = h, this._time = _, !this._act && this._ts && (this._act = 1, this._lazy = 0), this.ratio = v = (x || this._ease)(_ / u), this._from && (this.ratio = v = 1 - v), !a && h && !n && !g && (ot(this, "onStart"), this._tTime !== h))
|
|
1287
1337
|
return this;
|
|
1288
|
-
for (
|
|
1289
|
-
|
|
1290
|
-
w && w.render(r < 0 ? r : w._dur * w._ease(
|
|
1338
|
+
for (d = this._pt; d; )
|
|
1339
|
+
d.r(v, d.d), d = d._next;
|
|
1340
|
+
w && w.render(r < 0 ? r : w._dur * w._ease(_ / this._dur), n, s) || this._startAt && (this._zTime = r), this._onUpdate && !n && (f && oi(this, r, n, s), ot(this, "onUpdate")), this._repeat && p !== g && this.vars.onRepeat && !n && this.parent && ot(this, "onRepeat"), (h === this._tDur || !h) && this._tTime === h && (f && !this._onUpdate && oi(this, r, !0, !0), (r || !u) && (h === this._tDur && this._ts > 0 || !h && this._ts < 0) && Rt(this, 1), !n && !(f && !a) && (h || a || y) && (ot(this, h === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(h < l && this.timeScale() > 0) && this._prom()));
|
|
1291
1341
|
}
|
|
1292
1342
|
return this;
|
|
1293
1343
|
}, e.targets = function() {
|
|
@@ -1295,32 +1345,32 @@ var q = /* @__PURE__ */ function(o) {
|
|
|
1295
1345
|
}, e.invalidate = function(r) {
|
|
1296
1346
|
return (!r || !this.vars.runBackwards) && (this._startAt = 0), this._pt = this._op = this._onUpdate = this._lazy = this.ratio = 0, this._ptLookup = [], this.timeline && this.timeline.invalidate(r), o.prototype.invalidate.call(this, r);
|
|
1297
1347
|
}, e.resetTo = function(r, n, s, a, l) {
|
|
1298
|
-
|
|
1348
|
+
ke || at.wake(), this._ts || this.play();
|
|
1299
1349
|
var u = Math.min(this._dur, (this._dp._time - this._start) * this._ts), f;
|
|
1300
|
-
return this._initted ||
|
|
1350
|
+
return this._initted || Ci(this, u), f = this._ease(u / this._dur), as(this, r, n, s, a, f, u, l) ? this.resetTo(r, n, s, a, 1) : (He(this, 0), this.parent || Sr(this._dp, this, "_first", "_last", this._dp._sort ? "_start" : 0), this.render(0));
|
|
1301
1351
|
}, e.kill = function(r, n) {
|
|
1302
1352
|
if (n === void 0 && (n = "all"), !r && (!n || n === "all"))
|
|
1303
|
-
return this._lazy = this._pt = 0, this.parent ?
|
|
1353
|
+
return this._lazy = this._pt = 0, this.parent ? me(this) : this.scrollTrigger && this.scrollTrigger.kill(!!K), this;
|
|
1304
1354
|
if (this.timeline) {
|
|
1305
1355
|
var s = this.timeline.totalDuration();
|
|
1306
|
-
return this.timeline.killTweensOf(r, n, Mt && Mt.vars.overwrite !== !0)._first ||
|
|
1356
|
+
return this.timeline.killTweensOf(r, n, Mt && Mt.vars.overwrite !== !0)._first || me(this), this.parent && s !== this.timeline.totalDuration() && ue(this, this._dur * this.timeline._tDur / s, 0, 1), this;
|
|
1307
1357
|
}
|
|
1308
|
-
var a = this._targets, l = r ?
|
|
1309
|
-
if ((!n || n === "all") &&
|
|
1310
|
-
return n === "all" && (this._pt = 0),
|
|
1311
|
-
for (h = this._op = this._op || [], n !== "all" && (
|
|
1358
|
+
var a = this._targets, l = r ? pt(r) : a, u = this._ptLookup, f = this._pt, h, _, d, p, c, g, y;
|
|
1359
|
+
if ((!n || n === "all") && Ln(a, l))
|
|
1360
|
+
return n === "all" && (this._pt = 0), me(this);
|
|
1361
|
+
for (h = this._op = this._op || [], n !== "all" && (G(n) && (c = {}, et(n, function(v) {
|
|
1312
1362
|
return c[v] = 1;
|
|
1313
|
-
}), n = c), n =
|
|
1363
|
+
}), n = c), n = os(a, n)), y = a.length; y--; )
|
|
1314
1364
|
if (~l.indexOf(a[y])) {
|
|
1315
|
-
|
|
1316
|
-
for (c in
|
|
1317
|
-
|
|
1365
|
+
_ = u[y], n === "all" ? (h[y] = n, p = _, d = {}) : (d = h[y] = h[y] || {}, p = n);
|
|
1366
|
+
for (c in p)
|
|
1367
|
+
g = _ && _[c], g && ((!("kill" in g.d) || g.d.kill(c) === !0) && We(this, g, "_pt"), delete _[c]), d !== "all" && (d[c] = 1);
|
|
1318
1368
|
}
|
|
1319
|
-
return this._initted && !this._pt && f &&
|
|
1369
|
+
return this._initted && !this._pt && f && me(this), this;
|
|
1320
1370
|
}, t.to = function(r, n) {
|
|
1321
1371
|
return new t(r, n, arguments[2]);
|
|
1322
1372
|
}, t.from = function(r, n) {
|
|
1323
|
-
return
|
|
1373
|
+
return ve(1, arguments);
|
|
1324
1374
|
}, t.delayedCall = function(r, n, s, a) {
|
|
1325
1375
|
return new t(n, 0, {
|
|
1326
1376
|
immediateRender: !1,
|
|
@@ -1334,41 +1384,41 @@ var q = /* @__PURE__ */ function(o) {
|
|
|
1334
1384
|
callbackScope: a
|
|
1335
1385
|
});
|
|
1336
1386
|
}, t.fromTo = function(r, n, s) {
|
|
1337
|
-
return
|
|
1387
|
+
return ve(2, arguments);
|
|
1338
1388
|
}, t.set = function(r, n) {
|
|
1339
1389
|
return n.duration = 0, n.repeatDelay || (n.repeat = 0), new t(r, n);
|
|
1340
1390
|
}, t.killTweensOf = function(r, n, s) {
|
|
1341
1391
|
return $.killTweensOf(r, n, s);
|
|
1342
1392
|
}, t;
|
|
1343
|
-
}(
|
|
1344
|
-
|
|
1393
|
+
}(Se);
|
|
1394
|
+
ct(X.prototype, {
|
|
1345
1395
|
_targets: [],
|
|
1346
1396
|
_lazy: 0,
|
|
1347
1397
|
_startAt: 0,
|
|
1348
1398
|
_op: 0,
|
|
1349
1399
|
_onInit: 0
|
|
1350
1400
|
});
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
var t = new Z(), e =
|
|
1401
|
+
et("staggerTo,staggerFrom,staggerFromTo", function(o) {
|
|
1402
|
+
X[o] = function() {
|
|
1403
|
+
var t = new Z(), e = ui.call(arguments, 0);
|
|
1354
1404
|
return e.splice(o === "staggerFromTo" ? 5 : 4, 0, 0), t[o].apply(t, e);
|
|
1355
1405
|
};
|
|
1356
1406
|
});
|
|
1357
|
-
var
|
|
1407
|
+
var Mi = function(t, e, i) {
|
|
1358
1408
|
return t[e] = i;
|
|
1359
|
-
},
|
|
1409
|
+
}, Gr = function(t, e, i) {
|
|
1360
1410
|
return t[e](i);
|
|
1361
|
-
},
|
|
1411
|
+
}, us = function(t, e, i, r) {
|
|
1362
1412
|
return t[e](r.fp, i);
|
|
1363
|
-
},
|
|
1413
|
+
}, fs = function(t, e, i) {
|
|
1364
1414
|
return t.setAttribute(e, i);
|
|
1365
|
-
},
|
|
1366
|
-
return V(t[e]) ?
|
|
1367
|
-
},
|
|
1415
|
+
}, Di = function(t, e) {
|
|
1416
|
+
return V(t[e]) ? Gr : vi(t[e]) && t.setAttribute ? fs : Mi;
|
|
1417
|
+
}, Hr = function(t, e) {
|
|
1368
1418
|
return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e6) / 1e6, e);
|
|
1369
|
-
},
|
|
1419
|
+
}, cs = function(t, e) {
|
|
1370
1420
|
return e.set(e.t, e.p, !!(e.s + e.c * t), e);
|
|
1371
|
-
},
|
|
1421
|
+
}, Kr = function(t, e) {
|
|
1372
1422
|
var i = e._pt, r = "";
|
|
1373
1423
|
if (!t && e.b)
|
|
1374
1424
|
r = e.b;
|
|
@@ -1380,73 +1430,73 @@ var Ci = function(t, e, i) {
|
|
|
1380
1430
|
r += e.c;
|
|
1381
1431
|
}
|
|
1382
1432
|
e.set(e.t, e.p, r, e);
|
|
1383
|
-
},
|
|
1433
|
+
}, Ai = function(t, e) {
|
|
1384
1434
|
for (var i = e._pt; i; )
|
|
1385
1435
|
i.r(t, i.d), i = i._next;
|
|
1386
|
-
},
|
|
1436
|
+
}, hs = function(t, e, i, r) {
|
|
1387
1437
|
for (var n = this._pt, s; n; )
|
|
1388
1438
|
s = n._next, n.p === r && n.modifier(t, e, i), n = s;
|
|
1389
|
-
},
|
|
1439
|
+
}, ds = function(t) {
|
|
1390
1440
|
for (var e = this._pt, i, r; e; )
|
|
1391
|
-
r = e._next, e.p === t && !e.op || e.op === t ?
|
|
1441
|
+
r = e._next, e.p === t && !e.op || e.op === t ? We(this, e, "_pt") : e.dep || (i = 1), e = r;
|
|
1392
1442
|
return !i;
|
|
1393
|
-
},
|
|
1443
|
+
}, _s = function(t, e, i, r) {
|
|
1394
1444
|
r.mSet(t, e, r.m.call(r.tween, i, r.mt), r);
|
|
1395
|
-
},
|
|
1445
|
+
}, Jr = function(t) {
|
|
1396
1446
|
for (var e = t._pt, i, r, n, s; e; ) {
|
|
1397
1447
|
for (i = e._next, r = n; r && r.pr > e.pr; )
|
|
1398
1448
|
r = r._next;
|
|
1399
1449
|
(e._prev = r ? r._prev : s) ? e._prev._next = e : n = e, (e._next = r) ? r._prev = e : s = e, e = i;
|
|
1400
1450
|
}
|
|
1401
1451
|
t._pt = n;
|
|
1402
|
-
},
|
|
1452
|
+
}, it = /* @__PURE__ */ function() {
|
|
1403
1453
|
function o(e, i, r, n, s, a, l, u, f) {
|
|
1404
|
-
this.t = i, this.s = n, this.c = s, this.p = r, this.r = a ||
|
|
1454
|
+
this.t = i, this.s = n, this.c = s, this.p = r, this.r = a || Hr, this.d = l || this, this.set = u || Mi, this.pr = f || 0, this._next = e, e && (e._prev = this);
|
|
1405
1455
|
}
|
|
1406
1456
|
var t = o.prototype;
|
|
1407
1457
|
return t.modifier = function(i, r, n) {
|
|
1408
|
-
this.mSet = this.mSet || this.set, this.set =
|
|
1458
|
+
this.mSet = this.mSet || this.set, this.set = _s, this.m = i, this.mt = n, this.tween = r;
|
|
1409
1459
|
}, o;
|
|
1410
1460
|
}();
|
|
1411
|
-
|
|
1412
|
-
return
|
|
1461
|
+
et(ki + "parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger", function(o) {
|
|
1462
|
+
return Ti[o] = 1;
|
|
1413
1463
|
});
|
|
1414
|
-
|
|
1415
|
-
|
|
1464
|
+
ft.TweenMax = ft.TweenLite = X;
|
|
1465
|
+
ft.TimelineLite = ft.TimelineMax = Z;
|
|
1416
1466
|
$ = new Z({
|
|
1417
1467
|
sortChildren: !1,
|
|
1418
|
-
defaults:
|
|
1468
|
+
defaults: ae,
|
|
1419
1469
|
autoRemoveChildren: !0,
|
|
1420
1470
|
id: "root",
|
|
1421
1471
|
smoothChildTiming: !0
|
|
1422
1472
|
});
|
|
1423
|
-
|
|
1424
|
-
var
|
|
1425
|
-
return (
|
|
1473
|
+
ut.stringFilter = Br;
|
|
1474
|
+
var Gt = [], Fe = {}, ps = [], Gi = 0, ms = 0, ei = function(t) {
|
|
1475
|
+
return (Fe[t] || ps).map(function(e) {
|
|
1426
1476
|
return e();
|
|
1427
1477
|
});
|
|
1428
|
-
},
|
|
1478
|
+
}, di = function() {
|
|
1429
1479
|
var t = Date.now(), e = [];
|
|
1430
|
-
t -
|
|
1480
|
+
t - Gi > 2 && (ei("matchMediaInit"), Gt.forEach(function(i) {
|
|
1431
1481
|
var r = i.queries, n = i.conditions, s, a, l, u;
|
|
1432
1482
|
for (a in r)
|
|
1433
|
-
s =
|
|
1483
|
+
s = vt.matchMedia(r[a]).matches, s && (l = 1), s !== n[a] && (n[a] = s, u = 1);
|
|
1434
1484
|
u && (i.revert(), l && e.push(i));
|
|
1435
|
-
}),
|
|
1485
|
+
}), ei("matchMediaRevert"), e.forEach(function(i) {
|
|
1436
1486
|
return i.onMatch(i, function(r) {
|
|
1437
1487
|
return i.add(null, r);
|
|
1438
1488
|
});
|
|
1439
|
-
}),
|
|
1440
|
-
},
|
|
1489
|
+
}), Gi = t, ei("matchMedia"));
|
|
1490
|
+
}, Qr = /* @__PURE__ */ function() {
|
|
1441
1491
|
function o(e, i) {
|
|
1442
|
-
this.selector = i &&
|
|
1492
|
+
this.selector = i && fi(i), this.data = [], this._r = [], this.isReverted = !1, this.id = ms++, e && this.add(e);
|
|
1443
1493
|
}
|
|
1444
1494
|
var t = o.prototype;
|
|
1445
1495
|
return t.add = function(i, r, n) {
|
|
1446
1496
|
V(i) && (n = r, r = i, i = V);
|
|
1447
1497
|
var s = this, a = function() {
|
|
1448
1498
|
var u = F, f = s.selector, h;
|
|
1449
|
-
return u && u !== s && u.data.push(s), n && (s.selector =
|
|
1499
|
+
return u && u !== s && u.data.push(s), n && (s.selector = fi(n)), F = s, h = r.apply(s, arguments), V(h) && s._r.push(h), F = u, s.selector = f, s.isReverted = !1, h;
|
|
1450
1500
|
};
|
|
1451
1501
|
return s.last = a, i === V ? a(s, function(l) {
|
|
1452
1502
|
return s.add(null, l);
|
|
@@ -1457,7 +1507,7 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1457
1507
|
}, t.getTweens = function() {
|
|
1458
1508
|
var i = [];
|
|
1459
1509
|
return this.data.forEach(function(r) {
|
|
1460
|
-
return r instanceof o ? i.push.apply(i, r.getTweens()) : r instanceof
|
|
1510
|
+
return r instanceof o ? i.push.apply(i, r.getTweens()) : r instanceof X && !(r.parent && r.parent.data === "nested") && i.push(r);
|
|
1461
1511
|
}), i;
|
|
1462
1512
|
}, t.clear = function() {
|
|
1463
1513
|
this._r.length = this.data.length = 0;
|
|
@@ -1478,31 +1528,31 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1478
1528
|
}).forEach(function(f) {
|
|
1479
1529
|
return f.t.revert(i);
|
|
1480
1530
|
}), l = n.data.length; l--; )
|
|
1481
|
-
u = n.data[l], u instanceof Z ? u.data !== "nested" && (u.scrollTrigger && u.scrollTrigger.revert(), u.kill()) : !(u instanceof
|
|
1531
|
+
u = n.data[l], u instanceof Z ? u.data !== "nested" && (u.scrollTrigger && u.scrollTrigger.revert(), u.kill()) : !(u instanceof X) && u.revert && u.revert(i);
|
|
1482
1532
|
n._r.forEach(function(f) {
|
|
1483
1533
|
return f(i, n);
|
|
1484
1534
|
}), n.isReverted = !0;
|
|
1485
1535
|
}() : this.data.forEach(function(a) {
|
|
1486
1536
|
return a.kill && a.kill();
|
|
1487
1537
|
}), this.clear(), r)
|
|
1488
|
-
for (var s =
|
|
1489
|
-
|
|
1538
|
+
for (var s = Gt.length; s--; )
|
|
1539
|
+
Gt[s].id === this.id && Gt.splice(s, 1);
|
|
1490
1540
|
}, t.revert = function(i) {
|
|
1491
1541
|
this.kill(i || {});
|
|
1492
1542
|
}, o;
|
|
1493
|
-
}(),
|
|
1543
|
+
}(), gs = /* @__PURE__ */ function() {
|
|
1494
1544
|
function o(e) {
|
|
1495
1545
|
this.contexts = [], this.scope = e, F && F.data.push(this);
|
|
1496
1546
|
}
|
|
1497
1547
|
var t = o.prototype;
|
|
1498
1548
|
return t.add = function(i, r, n) {
|
|
1499
|
-
|
|
1549
|
+
wt(i) || (i = {
|
|
1500
1550
|
matches: i
|
|
1501
1551
|
});
|
|
1502
|
-
var s = new
|
|
1552
|
+
var s = new Qr(0, n || this.scope), a = s.conditions = {}, l, u, f;
|
|
1503
1553
|
F && !s.selector && (s.selector = F.selector), this.contexts.push(s), r = s.add("onMatch", r), s.queries = i;
|
|
1504
1554
|
for (u in i)
|
|
1505
|
-
u === "all" ? f = 1 : (l =
|
|
1555
|
+
u === "all" ? f = 1 : (l = vt.matchMedia(i[u]), l && (Gt.indexOf(s) < 0 && Gt.push(s), (a[u] = l.matches) && (f = 1), l.addListener ? l.addListener(di) : l.addEventListener("change", di)));
|
|
1506
1556
|
return f && r(s, function(h) {
|
|
1507
1557
|
return s.add(null, h);
|
|
1508
1558
|
}), this;
|
|
@@ -1513,12 +1563,12 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1513
1563
|
return r.kill(i, !0);
|
|
1514
1564
|
});
|
|
1515
1565
|
}, o;
|
|
1516
|
-
}(),
|
|
1566
|
+
}(), Ve = {
|
|
1517
1567
|
registerPlugin: function() {
|
|
1518
1568
|
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
1519
1569
|
e[i] = arguments[i];
|
|
1520
1570
|
e.forEach(function(r) {
|
|
1521
|
-
return
|
|
1571
|
+
return Lr(r);
|
|
1522
1572
|
});
|
|
1523
1573
|
},
|
|
1524
1574
|
timeline: function(t) {
|
|
@@ -1528,16 +1578,16 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1528
1578
|
return $.getTweensOf(t, e);
|
|
1529
1579
|
},
|
|
1530
1580
|
getProperty: function(t, e, i, r) {
|
|
1531
|
-
|
|
1532
|
-
var n =
|
|
1533
|
-
return i === "native" && (i = ""), t && (e ? s((
|
|
1534
|
-
return s((
|
|
1581
|
+
G(t) && (t = pt(t)[0]);
|
|
1582
|
+
var n = Xt(t || {}).get, s = i ? kr : Tr;
|
|
1583
|
+
return i === "native" && (i = ""), t && (e ? s((st[e] && st[e].get || n)(t, e, i, r)) : function(a, l, u) {
|
|
1584
|
+
return s((st[a] && st[a].get || n)(t, a, l, u));
|
|
1535
1585
|
});
|
|
1536
1586
|
},
|
|
1537
1587
|
quickSetter: function(t, e, i) {
|
|
1538
|
-
if (t =
|
|
1588
|
+
if (t = pt(t), t.length > 1) {
|
|
1539
1589
|
var r = t.map(function(f) {
|
|
1540
|
-
return
|
|
1590
|
+
return nt.quickSetter(f, e, i);
|
|
1541
1591
|
}), n = r.length;
|
|
1542
1592
|
return function(f) {
|
|
1543
1593
|
for (var h = n; h--; )
|
|
@@ -1545,16 +1595,16 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1545
1595
|
};
|
|
1546
1596
|
}
|
|
1547
1597
|
t = t[0] || {};
|
|
1548
|
-
var s =
|
|
1598
|
+
var s = st[e], a = Xt(t), l = a.harness && (a.harness.aliases || {})[e] || e, u = s ? function(f) {
|
|
1549
1599
|
var h = new s();
|
|
1550
|
-
|
|
1600
|
+
ee._pt = 0, h.init(t, i ? f + i : f, ee, 0, [t]), h.render(1, h), ee._pt && Ai(1, ee);
|
|
1551
1601
|
} : a.set(t, l);
|
|
1552
1602
|
return s ? u : function(f) {
|
|
1553
1603
|
return u(t, l, i ? f + i : f, a, 1);
|
|
1554
1604
|
};
|
|
1555
1605
|
},
|
|
1556
1606
|
quickTo: function(t, e, i) {
|
|
1557
|
-
var r, n =
|
|
1607
|
+
var r, n = nt.to(t, ct((r = {}, r[e] = "+=0.1", r.paused = !0, r.stagger = 0, r), i || {})), s = function(l, u, f) {
|
|
1558
1608
|
return n.resetTo(e, l, u, f);
|
|
1559
1609
|
};
|
|
1560
1610
|
return s.tween = n, s;
|
|
@@ -1563,26 +1613,26 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1563
1613
|
return $.getTweensOf(t, !0).length > 0;
|
|
1564
1614
|
},
|
|
1565
1615
|
defaults: function(t) {
|
|
1566
|
-
return t && t.ease && (t.ease =
|
|
1616
|
+
return t && t.ease && (t.ease = Wt(t.ease, ae.ease)), Yi(ae, t || {});
|
|
1567
1617
|
},
|
|
1568
1618
|
config: function(t) {
|
|
1569
|
-
return
|
|
1619
|
+
return Yi(ut, t || {});
|
|
1570
1620
|
},
|
|
1571
1621
|
registerEffect: function(t) {
|
|
1572
1622
|
var e = t.name, i = t.effect, r = t.plugins, n = t.defaults, s = t.extendTimeline;
|
|
1573
1623
|
(r || "").split(",").forEach(function(a) {
|
|
1574
|
-
return a && !
|
|
1575
|
-
}),
|
|
1576
|
-
return i(
|
|
1624
|
+
return a && !st[a] && !ft[a] && be(e + " effect requires " + a + " plugin.");
|
|
1625
|
+
}), Je[e] = function(a, l, u) {
|
|
1626
|
+
return i(pt(a), ct(l || {}, n), u);
|
|
1577
1627
|
}, s && (Z.prototype[e] = function(a, l, u) {
|
|
1578
|
-
return this.add(
|
|
1628
|
+
return this.add(Je[e](a, wt(l) ? l : (u = l) && {}, this), u);
|
|
1579
1629
|
});
|
|
1580
1630
|
},
|
|
1581
1631
|
registerEase: function(t, e) {
|
|
1582
|
-
C[t] =
|
|
1632
|
+
C[t] = Wt(e);
|
|
1583
1633
|
},
|
|
1584
1634
|
parseEase: function(t, e) {
|
|
1585
|
-
return arguments.length ?
|
|
1635
|
+
return arguments.length ? Wt(t, e) : C;
|
|
1586
1636
|
},
|
|
1587
1637
|
getById: function(t) {
|
|
1588
1638
|
return $.getById(t);
|
|
@@ -1590,64 +1640,64 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1590
1640
|
exportRoot: function(t, e) {
|
|
1591
1641
|
t === void 0 && (t = {});
|
|
1592
1642
|
var i = new Z(t), r, n;
|
|
1593
|
-
for (i.smoothChildTiming =
|
|
1594
|
-
n = r._next, (e || !(!r._dur && r instanceof
|
|
1595
|
-
return
|
|
1643
|
+
for (i.smoothChildTiming = tt(t.smoothChildTiming), $.remove(i), i._dp = 0, i._time = i._tTime = $._time, r = $._first; r; )
|
|
1644
|
+
n = r._next, (e || !(!r._dur && r instanceof X && r.vars.onComplete === r._targets[0])) && xt(i, r, r._start - r._delay), r = n;
|
|
1645
|
+
return xt($, i, 0), i;
|
|
1596
1646
|
},
|
|
1597
1647
|
context: function(t, e) {
|
|
1598
|
-
return t ? new
|
|
1648
|
+
return t ? new Qr(t, e) : F;
|
|
1599
1649
|
},
|
|
1600
1650
|
matchMedia: function(t) {
|
|
1601
|
-
return new
|
|
1651
|
+
return new gs(t);
|
|
1602
1652
|
},
|
|
1603
1653
|
matchMediaRefresh: function() {
|
|
1604
|
-
return
|
|
1654
|
+
return Gt.forEach(function(t) {
|
|
1605
1655
|
var e = t.conditions, i, r;
|
|
1606
1656
|
for (r in e)
|
|
1607
1657
|
e[r] && (e[r] = !1, i = 1);
|
|
1608
1658
|
i && t.revert();
|
|
1609
|
-
}) ||
|
|
1659
|
+
}) || di();
|
|
1610
1660
|
},
|
|
1611
1661
|
addEventListener: function(t, e) {
|
|
1612
|
-
var i =
|
|
1662
|
+
var i = Fe[t] || (Fe[t] = []);
|
|
1613
1663
|
~i.indexOf(e) || i.push(e);
|
|
1614
1664
|
},
|
|
1615
1665
|
removeEventListener: function(t, e) {
|
|
1616
|
-
var i =
|
|
1666
|
+
var i = Fe[t], r = i && i.indexOf(e);
|
|
1617
1667
|
r >= 0 && i.splice(r, 1);
|
|
1618
1668
|
},
|
|
1619
1669
|
utils: {
|
|
1620
|
-
wrap:
|
|
1621
|
-
wrapYoyo:
|
|
1622
|
-
distribute:
|
|
1623
|
-
random:
|
|
1624
|
-
snap:
|
|
1625
|
-
normalize:
|
|
1626
|
-
getUnit:
|
|
1627
|
-
clamp:
|
|
1628
|
-
splitColor:
|
|
1629
|
-
toArray:
|
|
1630
|
-
selector:
|
|
1631
|
-
mapRange:
|
|
1632
|
-
pipe:
|
|
1633
|
-
unitize:
|
|
1634
|
-
interpolate:
|
|
1635
|
-
shuffle:
|
|
1670
|
+
wrap: Hn,
|
|
1671
|
+
wrapYoyo: Kn,
|
|
1672
|
+
distribute: Ar,
|
|
1673
|
+
random: Er,
|
|
1674
|
+
snap: zr,
|
|
1675
|
+
normalize: Gn,
|
|
1676
|
+
getUnit: J,
|
|
1677
|
+
clamp: qn,
|
|
1678
|
+
splitColor: $r,
|
|
1679
|
+
toArray: pt,
|
|
1680
|
+
selector: fi,
|
|
1681
|
+
mapRange: Ir,
|
|
1682
|
+
pipe: jn,
|
|
1683
|
+
unitize: Wn,
|
|
1684
|
+
interpolate: Jn,
|
|
1685
|
+
shuffle: Dr
|
|
1636
1686
|
},
|
|
1637
|
-
install:
|
|
1638
|
-
effects:
|
|
1639
|
-
ticker:
|
|
1687
|
+
install: yr,
|
|
1688
|
+
effects: Je,
|
|
1689
|
+
ticker: at,
|
|
1640
1690
|
updateRoot: Z.updateRoot,
|
|
1641
|
-
plugins:
|
|
1691
|
+
plugins: st,
|
|
1642
1692
|
globalTimeline: $,
|
|
1643
1693
|
core: {
|
|
1644
|
-
PropTween:
|
|
1645
|
-
globals:
|
|
1646
|
-
Tween:
|
|
1694
|
+
PropTween: it,
|
|
1695
|
+
globals: vr,
|
|
1696
|
+
Tween: X,
|
|
1647
1697
|
Timeline: Z,
|
|
1648
|
-
Animation:
|
|
1649
|
-
getCache:
|
|
1650
|
-
_removeLinkedListItem:
|
|
1698
|
+
Animation: Se,
|
|
1699
|
+
getCache: Xt,
|
|
1700
|
+
_removeLinkedListItem: We,
|
|
1651
1701
|
reverting: function() {
|
|
1652
1702
|
return K;
|
|
1653
1703
|
},
|
|
@@ -1655,27 +1705,27 @@ var Wt = [], Ie = {}, fs = [], ji = 0, hs = 0, ti = function(t) {
|
|
|
1655
1705
|
return t && F && (F.data.push(t), t._ctx = F), F;
|
|
1656
1706
|
},
|
|
1657
1707
|
suppressOverwrites: function(t) {
|
|
1658
|
-
return
|
|
1708
|
+
return yi = t;
|
|
1659
1709
|
}
|
|
1660
1710
|
}
|
|
1661
1711
|
};
|
|
1662
|
-
|
|
1663
|
-
return
|
|
1712
|
+
et("to,from,fromTo,delayedCall,set,killTweensOf", function(o) {
|
|
1713
|
+
return Ve[o] = X[o];
|
|
1664
1714
|
});
|
|
1665
|
-
|
|
1666
|
-
|
|
1715
|
+
at.add(Z.updateRoot);
|
|
1716
|
+
ee = Ve.to({}, {
|
|
1667
1717
|
duration: 0
|
|
1668
1718
|
});
|
|
1669
|
-
var
|
|
1719
|
+
var ys = function(t, e) {
|
|
1670
1720
|
for (var i = t._pt; i && i.p !== e && i.op !== e && i.fp !== e; )
|
|
1671
1721
|
i = i._next;
|
|
1672
1722
|
return i;
|
|
1673
|
-
},
|
|
1723
|
+
}, vs = function(t, e) {
|
|
1674
1724
|
var i = t._targets, r, n, s;
|
|
1675
1725
|
for (r in e)
|
|
1676
1726
|
for (n = i.length; n--; )
|
|
1677
|
-
s = t._ptLookup[n][r], s && (s = s.d) && (s._pt && (s =
|
|
1678
|
-
},
|
|
1727
|
+
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));
|
|
1728
|
+
}, ii = function(t, e) {
|
|
1679
1729
|
return {
|
|
1680
1730
|
name: t,
|
|
1681
1731
|
headless: 1,
|
|
@@ -1684,7 +1734,7 @@ var ds = function(t, e) {
|
|
|
1684
1734
|
init: function(r, n, s) {
|
|
1685
1735
|
s._onInit = function(a) {
|
|
1686
1736
|
var l, u;
|
|
1687
|
-
if (
|
|
1737
|
+
if (G(n) && (l = {}, et(n, function(f) {
|
|
1688
1738
|
return l[f] = 1;
|
|
1689
1739
|
}), n = l), e) {
|
|
1690
1740
|
l = {};
|
|
@@ -1692,11 +1742,11 @@ var ds = function(t, e) {
|
|
|
1692
1742
|
l[u] = e(n[u]);
|
|
1693
1743
|
n = l;
|
|
1694
1744
|
}
|
|
1695
|
-
|
|
1745
|
+
vs(a, n);
|
|
1696
1746
|
};
|
|
1697
1747
|
}
|
|
1698
1748
|
};
|
|
1699
|
-
},
|
|
1749
|
+
}, nt = Ve.registerPlugin({
|
|
1700
1750
|
name: "attr",
|
|
1701
1751
|
init: function(t, e, i, r, n) {
|
|
1702
1752
|
var s, a, l;
|
|
@@ -1715,10 +1765,10 @@ var ds = function(t, e) {
|
|
|
1715
1765
|
for (var i = e.length; i--; )
|
|
1716
1766
|
this.add(t, i, t[i] || 0, e[i], 0, 0, 0, 0, 0, 1);
|
|
1717
1767
|
}
|
|
1718
|
-
},
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1768
|
+
}, ii("roundProps", ci), ii("modifiers"), ii("snap", zr)) || Ve;
|
|
1769
|
+
X.version = Z.version = nt.version = "3.14.2";
|
|
1770
|
+
gr = 1;
|
|
1771
|
+
xi() && fe();
|
|
1722
1772
|
C.Power0;
|
|
1723
1773
|
C.Power1;
|
|
1724
1774
|
C.Power2;
|
|
@@ -1745,197 +1795,197 @@ C.Circ;
|
|
|
1745
1795
|
* Subject to the terms at https://gsap.com/standard-license
|
|
1746
1796
|
* @author: Jack Doyle, jack@greensock.com
|
|
1747
1797
|
*/
|
|
1748
|
-
var
|
|
1798
|
+
var Hi, Dt, ne, zi, qt, Ki, Ei, xs = function() {
|
|
1749
1799
|
return typeof window < "u";
|
|
1750
|
-
}, Ct = {},
|
|
1800
|
+
}, Ct = {}, Yt = 180 / Math.PI, se = Math.PI / 180, Qt = Math.atan2, Ji = 1e8, Ri = /([A-Z])/g, bs = /(left|right|width|margin|padding|x)/i, ws = /[\s,\(]\S/, bt = {
|
|
1751
1801
|
autoAlpha: "opacity,visibility",
|
|
1752
1802
|
scale: "scaleX,scaleY",
|
|
1753
1803
|
alpha: "opacity"
|
|
1754
|
-
},
|
|
1804
|
+
}, _i = function(t, e) {
|
|
1755
1805
|
return e.set(e.t, e.p, Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
|
|
1756
|
-
},
|
|
1806
|
+
}, Ts = function(t, e) {
|
|
1757
1807
|
return e.set(e.t, e.p, t === 1 ? e.e : Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u, e);
|
|
1758
|
-
},
|
|
1808
|
+
}, ks = function(t, e) {
|
|
1759
1809
|
return e.set(e.t, e.p, t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
|
|
1760
|
-
},
|
|
1810
|
+
}, Ss = function(t, e) {
|
|
1761
1811
|
return e.set(e.t, e.p, t === 1 ? e.e : t ? Math.round((e.s + e.c * t) * 1e4) / 1e4 + e.u : e.b, e);
|
|
1762
|
-
},
|
|
1812
|
+
}, Os = function(t, e) {
|
|
1763
1813
|
var i = e.s + e.c * t;
|
|
1764
1814
|
e.set(e.t, e.p, ~~(i + (i < 0 ? -0.5 : 0.5)) + e.u, e);
|
|
1765
|
-
},
|
|
1815
|
+
}, Zr = function(t, e) {
|
|
1766
1816
|
return e.set(e.t, e.p, t ? e.e : e.b, e);
|
|
1767
|
-
},
|
|
1817
|
+
}, tn = function(t, e) {
|
|
1768
1818
|
return e.set(e.t, e.p, t !== 1 ? e.b : e.e, e);
|
|
1769
|
-
},
|
|
1819
|
+
}, Ps = function(t, e, i) {
|
|
1770
1820
|
return t.style[e] = i;
|
|
1771
|
-
},
|
|
1821
|
+
}, Cs = function(t, e, i) {
|
|
1772
1822
|
return t.style.setProperty(e, i);
|
|
1773
|
-
},
|
|
1823
|
+
}, Ms = function(t, e, i) {
|
|
1774
1824
|
return t._gsap[e] = i;
|
|
1775
|
-
},
|
|
1825
|
+
}, Ds = function(t, e, i) {
|
|
1776
1826
|
return t._gsap.scaleX = t._gsap.scaleY = i;
|
|
1777
|
-
},
|
|
1827
|
+
}, As = function(t, e, i, r, n) {
|
|
1778
1828
|
var s = t._gsap;
|
|
1779
1829
|
s.scaleX = s.scaleY = i, s.renderTransform(n, s);
|
|
1780
|
-
},
|
|
1830
|
+
}, zs = function(t, e, i, r, n) {
|
|
1781
1831
|
var s = t._gsap;
|
|
1782
1832
|
s[e] = i, s.renderTransform(n, s);
|
|
1783
|
-
}, N = "transform",
|
|
1833
|
+
}, N = "transform", rt = N + "Origin", Es = function o(t, e) {
|
|
1784
1834
|
var i = this, r = this.target, n = r.style, s = r._gsap;
|
|
1785
1835
|
if (t in Ct && n) {
|
|
1786
1836
|
if (this.tfm = this.tfm || {}, t !== "transform")
|
|
1787
|
-
t =
|
|
1788
|
-
return i.tfm[a] =
|
|
1789
|
-
}) : this.tfm[t] = s.x ? s[t] :
|
|
1837
|
+
t = bt[t] || t, ~t.indexOf(",") ? t.split(",").forEach(function(a) {
|
|
1838
|
+
return i.tfm[a] = Ot(r, a);
|
|
1839
|
+
}) : this.tfm[t] = s.x ? s[t] : Ot(r, t), t === rt && (this.tfm.zOrigin = s.zOrigin);
|
|
1790
1840
|
else
|
|
1791
|
-
return
|
|
1841
|
+
return bt.transform.split(",").forEach(function(a) {
|
|
1792
1842
|
return o.call(i, a, e);
|
|
1793
1843
|
});
|
|
1794
1844
|
if (this.props.indexOf(N) >= 0)
|
|
1795
1845
|
return;
|
|
1796
|
-
s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(
|
|
1846
|
+
s.svg && (this.svgo = r.getAttribute("data-svg-origin"), this.props.push(rt, e, "")), t = N;
|
|
1797
1847
|
}
|
|
1798
1848
|
(n || e) && this.props.push(t, e, n[t]);
|
|
1799
|
-
},
|
|
1849
|
+
}, en = function(t) {
|
|
1800
1850
|
t.translate && (t.removeProperty("translate"), t.removeProperty("scale"), t.removeProperty("rotate"));
|
|
1801
|
-
},
|
|
1851
|
+
}, Rs = function() {
|
|
1802
1852
|
var t = this.props, e = this.target, i = e.style, r = e._gsap, n, s;
|
|
1803
1853
|
for (n = 0; n < t.length; n += 3)
|
|
1804
1854
|
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(Ri, "-$1").toLowerCase());
|
|
1805
1855
|
if (this.tfm) {
|
|
1806
1856
|
for (s in this.tfm)
|
|
1807
1857
|
r[s] = this.tfm[s];
|
|
1808
|
-
r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = Ei(), (!n || !n.isStart) && !i[N] && (
|
|
1858
|
+
r.svg && (r.renderTransform(), e.setAttribute("data-svg-origin", this.svgo || "")), n = Ei(), (!n || !n.isStart) && !i[N] && (en(i), r.zOrigin && i[rt] && (i[rt] += " " + r.zOrigin + "px", r.zOrigin = 0, r.renderTransform()), r.uncache = 1);
|
|
1809
1859
|
}
|
|
1810
|
-
},
|
|
1860
|
+
}, rn = function(t, e) {
|
|
1811
1861
|
var i = {
|
|
1812
1862
|
target: t,
|
|
1813
1863
|
props: [],
|
|
1814
|
-
revert:
|
|
1815
|
-
save:
|
|
1864
|
+
revert: Rs,
|
|
1865
|
+
save: Es
|
|
1816
1866
|
};
|
|
1817
|
-
return t._gsap ||
|
|
1867
|
+
return t._gsap || nt.core.getCache(t), e && t.style && t.nodeType && e.split(",").forEach(function(r) {
|
|
1818
1868
|
return i.save(r);
|
|
1819
1869
|
}), i;
|
|
1820
|
-
},
|
|
1870
|
+
}, nn, pi = function(t, e) {
|
|
1821
1871
|
var i = Dt.createElementNS ? Dt.createElementNS((e || "http://www.w3.org/1999/xhtml").replace(/^https/, "http"), t) : Dt.createElement(t);
|
|
1822
1872
|
return i && i.style ? i : Dt.createElement(t);
|
|
1823
|
-
},
|
|
1873
|
+
}, lt = function o(t, e, i) {
|
|
1824
1874
|
var r = getComputedStyle(t);
|
|
1825
|
-
return r[e] || r.getPropertyValue(e.replace(Ri, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && o(t,
|
|
1826
|
-
},
|
|
1827
|
-
var r = e ||
|
|
1875
|
+
return r[e] || r.getPropertyValue(e.replace(Ri, "-$1").toLowerCase()) || r.getPropertyValue(e) || !i && o(t, ce(e) || e, 1) || "";
|
|
1876
|
+
}, Qi = "O,Moz,ms,Ms,Webkit".split(","), ce = function(t, e, i) {
|
|
1877
|
+
var r = e || qt, n = r.style, s = 5;
|
|
1828
1878
|
if (t in n && !i)
|
|
1829
1879
|
return t;
|
|
1830
|
-
for (t = t.charAt(0).toUpperCase() + t.substr(1); s-- && !(
|
|
1880
|
+
for (t = t.charAt(0).toUpperCase() + t.substr(1); s-- && !(Qi[s] + t in n); )
|
|
1831
1881
|
;
|
|
1832
|
-
return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ?
|
|
1833
|
-
},
|
|
1834
|
-
|
|
1882
|
+
return s < 0 ? null : (s === 3 ? "ms" : s >= 0 ? Qi[s] : "") + t;
|
|
1883
|
+
}, mi = function() {
|
|
1884
|
+
xs() && window.document && (Hi = window, Dt = Hi.document, ne = Dt.documentElement, qt = pi("div") || {
|
|
1835
1885
|
style: {}
|
|
1836
|
-
},
|
|
1837
|
-
},
|
|
1838
|
-
var e = t.ownerSVGElement, i =
|
|
1839
|
-
r.style.display = "block", i.appendChild(r),
|
|
1886
|
+
}, pi("div"), N = ce(N), rt = N + "Origin", qt.style.cssText = "border-width:0;line-height:0;position:absolute;padding:0", nn = !!ce("perspective"), Ei = nt.core.reverting, zi = 1);
|
|
1887
|
+
}, Zi = function(t) {
|
|
1888
|
+
var e = t.ownerSVGElement, i = pi("svg", e && e.getAttribute("xmlns") || "http://www.w3.org/2000/svg"), r = t.cloneNode(!0), n;
|
|
1889
|
+
r.style.display = "block", i.appendChild(r), ne.appendChild(i);
|
|
1840
1890
|
try {
|
|
1841
1891
|
n = r.getBBox();
|
|
1842
1892
|
} catch {
|
|
1843
1893
|
}
|
|
1844
|
-
return i.removeChild(r),
|
|
1845
|
-
},
|
|
1894
|
+
return i.removeChild(r), ne.removeChild(i), n;
|
|
1895
|
+
}, tr = function(t, e) {
|
|
1846
1896
|
for (var i = e.length; i--; )
|
|
1847
1897
|
if (t.hasAttribute(e[i]))
|
|
1848
1898
|
return t.getAttribute(e[i]);
|
|
1849
|
-
},
|
|
1899
|
+
}, sn = function(t) {
|
|
1850
1900
|
var e, i;
|
|
1851
1901
|
try {
|
|
1852
1902
|
e = t.getBBox();
|
|
1853
1903
|
} catch {
|
|
1854
|
-
e =
|
|
1904
|
+
e = Zi(t), i = 1;
|
|
1855
1905
|
}
|
|
1856
|
-
return e && (e.width || e.height) || i || (e =
|
|
1857
|
-
x: +
|
|
1858
|
-
y: +
|
|
1906
|
+
return e && (e.width || e.height) || i || (e = Zi(t)), e && !e.width && !e.x && !e.y ? {
|
|
1907
|
+
x: +tr(t, ["x", "cx", "x1"]) || 0,
|
|
1908
|
+
y: +tr(t, ["y", "cy", "y1"]) || 0,
|
|
1859
1909
|
width: 0,
|
|
1860
1910
|
height: 0
|
|
1861
1911
|
} : e;
|
|
1862
|
-
},
|
|
1863
|
-
return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) &&
|
|
1912
|
+
}, an = function(t) {
|
|
1913
|
+
return !!(t.getCTM && (!t.parentNode || t.ownerSVGElement) && sn(t));
|
|
1864
1914
|
}, It = function(t, e) {
|
|
1865
1915
|
if (e) {
|
|
1866
1916
|
var i = t.style, r;
|
|
1867
|
-
e in Ct && e !==
|
|
1917
|
+
e in Ct && e !== rt && (e = N), i.removeProperty ? (r = e.substr(0, 2), (r === "ms" || e.substr(0, 6) === "webkit") && (e = "-" + e), i.removeProperty(r === "--" ? e : e.replace(Ri, "-$1").toLowerCase())) : i.removeAttribute(e);
|
|
1868
1918
|
}
|
|
1869
1919
|
}, At = function(t, e, i, r, n, s) {
|
|
1870
|
-
var a = new
|
|
1920
|
+
var a = new it(t._pt, e, i, 0, 1, s ? tn : Zr);
|
|
1871
1921
|
return t._pt = a, a.b = r, a.e = n, t._props.push(i), a;
|
|
1872
|
-
},
|
|
1922
|
+
}, er = {
|
|
1873
1923
|
deg: 1,
|
|
1874
1924
|
rad: 1,
|
|
1875
1925
|
turn: 1
|
|
1876
|
-
},
|
|
1926
|
+
}, Is = {
|
|
1877
1927
|
grid: 1,
|
|
1878
1928
|
flex: 1
|
|
1879
1929
|
}, Ft = function o(t, e, i, r) {
|
|
1880
|
-
var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a =
|
|
1881
|
-
if (r === s || !n ||
|
|
1930
|
+
var n = parseFloat(i) || 0, s = (i + "").trim().substr((n + "").length) || "px", a = qt.style, l = bs.test(e), u = t.tagName.toLowerCase() === "svg", f = (u ? "client" : "offset") + (l ? "Width" : "Height"), h = 100, _ = r === "px", d = r === "%", p, c, g, y;
|
|
1931
|
+
if (r === s || !n || er[r] || er[s])
|
|
1882
1932
|
return n;
|
|
1883
|
-
if (s !== "px" && !
|
|
1884
|
-
return
|
|
1885
|
-
if (a[l ? "width" : "height"] = h + (
|
|
1886
|
-
return
|
|
1887
|
-
if (
|
|
1933
|
+
if (s !== "px" && !_ && (n = o(t, e, i, "px")), y = t.getCTM && an(t), (d || s === "%") && (Ct[e] || ~e.indexOf("adius")))
|
|
1934
|
+
return p = y ? t.getBBox()[l ? "width" : "height"] : t[f], Y(d ? n / p * h : n / 100 * p);
|
|
1935
|
+
if (a[l ? "width" : "height"] = h + (_ ? s : r), c = r !== "rem" && ~e.indexOf("adius") || r === "em" && t.appendChild && !u ? t : t.parentNode, y && (c = (t.ownerSVGElement || {}).parentNode), (!c || c === Dt || !c.appendChild) && (c = Dt.body), g = c._gsap, g && d && g.width && l && g.time === at.time && !g.uncache)
|
|
1936
|
+
return Y(n / g.width * h);
|
|
1937
|
+
if (d && (e === "height" || e === "width")) {
|
|
1888
1938
|
var v = t.style[e];
|
|
1889
|
-
t.style[e] = h + r,
|
|
1939
|
+
t.style[e] = h + r, p = t[f], v ? t.style[e] = v : It(t, e);
|
|
1890
1940
|
} else
|
|
1891
|
-
(
|
|
1892
|
-
return l &&
|
|
1893
|
-
},
|
|
1941
|
+
(d || s === "%") && !Is[lt(c, "display")] && (a.position = lt(t, "position")), c === t && (a.position = "static"), c.appendChild(qt), p = qt[f], c.removeChild(qt), a.position = "absolute";
|
|
1942
|
+
return l && d && (g = Xt(c), g.time = at.time, g.width = c[f]), Y(_ ? p * n / h : p && n ? h / p * n : 0);
|
|
1943
|
+
}, Ot = function(t, e, i, r) {
|
|
1894
1944
|
var n;
|
|
1895
|
-
return
|
|
1896
|
-
},
|
|
1945
|
+
return zi || mi(), e in bt && e !== "transform" && (e = bt[e], ~e.indexOf(",") && (e = e.split(",")[0])), Ct[e] && e !== "transform" ? (n = Pe(t, r), n = e !== "transformOrigin" ? n[e] : n.svg ? n.origin : Ye(lt(t, rt)) + " " + n.zOrigin + "px") : (n = t.style[e], (!n || n === "auto" || r || ~(n + "").indexOf("calc(")) && (n = Ue[e] && Ue[e](t, e, i) || lt(t, e) || br(t, e) || (e === "opacity" ? 1 : 0))), i && !~(n + "").trim().indexOf(" ") ? Ft(t, e, n, i) + i : n;
|
|
1946
|
+
}, Fs = function(t, e, i, r) {
|
|
1897
1947
|
if (!i || i === "none") {
|
|
1898
|
-
var n =
|
|
1899
|
-
s && s !== i ? (e = n, i = s) : e === "borderColor" && (i =
|
|
1948
|
+
var n = ce(e, t, 1), s = n && lt(t, n, 1);
|
|
1949
|
+
s && s !== i ? (e = n, i = s) : e === "borderColor" && (i = lt(t, "borderTopColor"));
|
|
1900
1950
|
}
|
|
1901
|
-
var a = new
|
|
1902
|
-
if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r =
|
|
1903
|
-
for (; h =
|
|
1904
|
-
|
|
1951
|
+
var a = new it(this._pt, t.style, e, 0, 1, Kr), l = 0, u = 0, f, h, _, d, p, c, g, y, v, w, x, m;
|
|
1952
|
+
if (a.b = i, a.e = r, i += "", r += "", r.substring(0, 6) === "var(--" && (r = lt(t, r.substring(4, r.indexOf(")")))), r === "auto" && (c = t.style[e], t.style[e] = r, r = lt(t, e) || r, c ? t.style[e] = c : It(t, e)), f = [i, r], Br(f), i = f[0], r = f[1], _ = i.match(te) || [], m = r.match(te) || [], m.length) {
|
|
1953
|
+
for (; h = te.exec(r); )
|
|
1954
|
+
g = h[0], v = r.substring(l, h.index), p ? p = (p + 1) % 5 : (v.substr(-5) === "rgba(" || v.substr(-5) === "hsla(") && (p = 1), g !== (c = _[u++] || "") && (d = parseFloat(c) || 0, x = c.substr((d + "").length), g.charAt(1) === "=" && (g = re(d, g) + x), y = parseFloat(g), w = g.substr((y + "").length), l = te.lastIndex - w.length, w || (w = w || ut.units[e] || x, l === r.length && (r += w, a.e += w)), x !== w && (d = Ft(t, e, c, w) || 0), a._pt = {
|
|
1905
1955
|
_next: a._pt,
|
|
1906
1956
|
p: v || u === 1 ? v : ",",
|
|
1907
1957
|
//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.
|
|
1908
|
-
s:
|
|
1909
|
-
c: y -
|
|
1910
|
-
m:
|
|
1958
|
+
s: d,
|
|
1959
|
+
c: y - d,
|
|
1960
|
+
m: p && p < 4 || e === "zIndex" ? Math.round : 0
|
|
1911
1961
|
});
|
|
1912
1962
|
a.c = l < r.length ? r.substring(l, r.length) : "";
|
|
1913
1963
|
} else
|
|
1914
|
-
a.r = e === "display" && r === "none" ?
|
|
1915
|
-
return
|
|
1916
|
-
},
|
|
1964
|
+
a.r = e === "display" && r === "none" ? tn : Zr;
|
|
1965
|
+
return mr.test(r) && (a.e = 0), this._pt = a, a;
|
|
1966
|
+
}, ir = {
|
|
1917
1967
|
top: "0%",
|
|
1918
1968
|
bottom: "100%",
|
|
1919
1969
|
left: "0%",
|
|
1920
1970
|
right: "100%",
|
|
1921
1971
|
center: "50%"
|
|
1922
|
-
},
|
|
1972
|
+
}, Ls = function(t) {
|
|
1923
1973
|
var e = t.split(" "), i = e[0], r = e[1] || "50%";
|
|
1924
|
-
return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] =
|
|
1925
|
-
},
|
|
1974
|
+
return (i === "top" || i === "bottom" || r === "left" || r === "right") && (t = i, i = r, r = t), e[0] = ir[i] || i, e[1] = ir[r] || r, e.join(" ");
|
|
1975
|
+
}, $s = function(t, e) {
|
|
1926
1976
|
if (e.tween && e.tween._time === e.tween._dur) {
|
|
1927
1977
|
var i = e.t, r = i.style, n = e.u, s = i._gsap, a, l, u;
|
|
1928
1978
|
if (n === "all" || n === !0)
|
|
1929
1979
|
r.cssText = "", l = 1;
|
|
1930
1980
|
else
|
|
1931
1981
|
for (n = n.split(","), u = n.length; --u > -1; )
|
|
1932
|
-
a = n[u], Ct[a] && (l = 1, a = a === "transformOrigin" ?
|
|
1933
|
-
l && (It(i, N), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", Pe(i, 1), s.uncache = 1,
|
|
1982
|
+
a = n[u], Ct[a] && (l = 1, a = a === "transformOrigin" ? rt : N), It(i, a);
|
|
1983
|
+
l && (It(i, N), s && (s.svg && i.removeAttribute("transform"), r.scale = r.rotate = r.translate = "none", Pe(i, 1), s.uncache = 1, en(r)));
|
|
1934
1984
|
}
|
|
1935
|
-
},
|
|
1985
|
+
}, Ue = {
|
|
1936
1986
|
clearProps: function(t, e, i, r, n) {
|
|
1937
1987
|
if (n.data !== "isFromStart") {
|
|
1938
|
-
var s = t._pt = new
|
|
1988
|
+
var s = t._pt = new it(t._pt, e, i, 0, 0, $s);
|
|
1939
1989
|
return s.u = r, s.pr = -10, s.tween = n, t._props.push(i), 1;
|
|
1940
1990
|
}
|
|
1941
1991
|
}
|
|
@@ -2002,129 +2052,129 @@ var Wi, Dt, ee, Ai, Yt, Gi, Ei, ps = function() {
|
|
|
2002
2052
|
return 1;
|
|
2003
2053
|
}
|
|
2004
2054
|
*/
|
|
2005
|
-
},
|
|
2055
|
+
}, Oe = [1, 0, 0, 1, 0, 0], on = {}, ln = function(t) {
|
|
2006
2056
|
return t === "matrix(1, 0, 0, 1, 0, 0)" || t === "none" || !t;
|
|
2007
|
-
},
|
|
2008
|
-
var e =
|
|
2009
|
-
return
|
|
2010
|
-
},
|
|
2011
|
-
var i = t._gsap ||
|
|
2012
|
-
return i.svg && t.getAttribute("transform") ? (l = t.transform.baseVal.consolidate().matrix, n = [l.a, l.b, l.c, l.d, l.e, l.f], n.join(",") === "1,0,0,1,0,0" ?
|
|
2013
|
-
},
|
|
2014
|
-
var a = t._gsap, l = n ||
|
|
2015
|
-
i ? l !==
|
|
2057
|
+
}, rr = function(t) {
|
|
2058
|
+
var e = lt(t, N);
|
|
2059
|
+
return ln(e) ? Oe : e.substr(7).match(pr).map(Y);
|
|
2060
|
+
}, Ii = function(t, e) {
|
|
2061
|
+
var i = t._gsap || Xt(t), r = t.style, n = rr(t), s, a, l, u;
|
|
2062
|
+
return i.svg && t.getAttribute("transform") ? (l = t.transform.baseVal.consolidate().matrix, n = [l.a, l.b, l.c, l.d, l.e, l.f], n.join(",") === "1,0,0,1,0,0" ? Oe : n) : (n === Oe && !t.offsetParent && t !== ne && !i.svg && (l = r.display, r.display = "block", s = t.parentNode, (!s || !t.offsetParent && !t.getBoundingClientRect().width) && (u = 1, a = t.nextElementSibling, ne.appendChild(t)), n = rr(t), l ? r.display = l : It(t, "display"), u && (a ? s.insertBefore(t, a) : s ? s.appendChild(t) : ne.removeChild(t))), e && n.length > 6 ? [n[0], n[1], n[4], n[5], n[12], n[13]] : n);
|
|
2063
|
+
}, gi = function(t, e, i, r, n, s) {
|
|
2064
|
+
var a = t._gsap, l = n || Ii(t, !0), u = a.xOrigin || 0, f = a.yOrigin || 0, h = a.xOffset || 0, _ = a.yOffset || 0, d = l[0], p = l[1], c = l[2], g = l[3], y = l[4], v = l[5], w = e.split(" "), x = parseFloat(w[0]) || 0, m = parseFloat(w[1]) || 0, T, k, S, b;
|
|
2065
|
+
i ? l !== Oe && (k = d * g - p * c) && (S = x * (g / k) + m * (-c / k) + (c * v - g * y) / k, b = x * (-p / k) + m * (d / k) - (d * v - p * y) / k, x = S, m = b) : (T = sn(t), x = T.x + (~w[0].indexOf("%") ? x / 100 * T.width : x), m = T.y + (~(w[1] || w[0]).indexOf("%") ? m / 100 * T.height : m)), r || r !== !1 && a.smooth ? (y = x - u, v = m - f, a.xOffset = h + (y * d + v * c) - y, a.yOffset = _ + (y * p + v * g) - v) : a.xOffset = a.yOffset = 0, a.xOrigin = x, a.yOrigin = m, a.smooth = !!r, a.origin = e, a.originIsAbsolute = !!i, t.style[rt] = "0px 0px", s && (At(s, a, "xOrigin", u, x), At(s, a, "yOrigin", f, m), At(s, a, "xOffset", h, a.xOffset), At(s, a, "yOffset", _, a.yOffset)), t.setAttribute("data-svg-origin", x + " " + m);
|
|
2016
2066
|
}, Pe = function(t, e) {
|
|
2017
|
-
var i = t._gsap || new
|
|
2067
|
+
var i = t._gsap || new qr(t);
|
|
2018
2068
|
if ("x" in i && !e && !i.uncache)
|
|
2019
2069
|
return i;
|
|
2020
|
-
var r = t.style, n = i.scaleX < 0, s = "px", a = "deg", l = getComputedStyle(t), u =
|
|
2021
|
-
return f = h =
|
|
2022
|
-
},
|
|
2070
|
+
var r = t.style, n = i.scaleX < 0, s = "px", a = "deg", l = getComputedStyle(t), u = lt(t, rt) || "0", f, h, _, d, p, c, g, y, v, w, x, m, T, k, S, b, P, M, D, R, H, j, q, W, mt, Ae, he, de, Nt, Fi, Tt, Bt;
|
|
2071
|
+
return f = h = _ = c = g = y = v = w = x = 0, d = p = 1, i.svg = !!(t.getCTM && an(t)), l.translate && ((l.translate !== "none" || l.scale !== "none" || l.rotate !== "none") && (r[N] = (l.translate !== "none" ? "translate3d(" + (l.translate + " 0 0").split(" ").slice(0, 3).join(", ") + ") " : "") + (l.rotate !== "none" ? "rotate(" + l.rotate + ") " : "") + (l.scale !== "none" ? "scale(" + l.scale.split(" ").join(",") + ") " : "") + (l[N] !== "none" ? l[N] : "")), r.scale = r.rotate = r.translate = "none"), k = Ii(t, i.svg), i.svg && (i.uncache ? (mt = t.getBBox(), u = i.xOrigin - mt.x + "px " + (i.yOrigin - mt.y) + "px", W = "") : W = !e && t.getAttribute("data-svg-origin"), gi(t, W || u, !!W || i.originIsAbsolute, i.smooth !== !1, k)), m = i.xOrigin || 0, T = i.yOrigin || 0, k !== Oe && (M = k[0], D = k[1], R = k[2], H = k[3], f = j = k[4], h = q = k[5], k.length === 6 ? (d = Math.sqrt(M * M + D * D), p = Math.sqrt(H * H + R * R), c = M || D ? Qt(D, M) * Yt : 0, v = R || H ? Qt(R, H) * Yt + c : 0, v && (p *= Math.abs(Math.cos(v * se))), i.svg && (f -= m - (m * M + T * R), h -= T - (m * D + T * H))) : (Bt = k[6], Fi = k[7], he = k[8], de = k[9], Nt = k[10], Tt = k[11], f = k[12], h = k[13], _ = k[14], S = Qt(Bt, Nt), g = S * Yt, S && (b = Math.cos(-S), P = Math.sin(-S), W = j * b + he * P, mt = q * b + de * P, Ae = Bt * b + Nt * P, he = j * -P + he * b, de = q * -P + de * b, Nt = Bt * -P + Nt * b, Tt = Fi * -P + Tt * b, j = W, q = mt, Bt = Ae), S = Qt(-R, Nt), y = S * Yt, S && (b = Math.cos(-S), P = Math.sin(-S), W = M * b - he * P, mt = D * b - de * P, Ae = R * b - Nt * P, Tt = H * P + Tt * b, M = W, D = mt, R = Ae), S = Qt(D, M), c = S * Yt, S && (b = Math.cos(S), P = Math.sin(S), W = M * b + D * P, mt = j * b + q * P, D = D * b - M * P, q = q * b - j * P, M = W, j = mt), g && Math.abs(g) + Math.abs(c) > 359.9 && (g = c = 0, y = 180 - y), d = Y(Math.sqrt(M * M + D * D + R * R)), p = Y(Math.sqrt(q * q + Bt * Bt)), S = Qt(j, q), v = Math.abs(S) > 2e-4 ? S * Yt : 0, x = Tt ? 1 / (Tt < 0 ? -Tt : Tt) : 0), i.svg && (W = t.getAttribute("transform"), i.forceCSS = t.setAttribute("transform", "") || !ln(lt(t, N)), W && t.setAttribute("transform", W))), Math.abs(v) > 90 && Math.abs(v) < 270 && (n ? (d *= -1, v += c <= 0 ? 180 : -180, c += c <= 0 ? 180 : -180) : (p *= -1, v += v <= 0 ? 180 : -180)), e = e || i.uncache, i.x = f - ((i.xPercent = f && (!e && i.xPercent || (Math.round(t.offsetWidth / 2) === Math.round(-f) ? -50 : 0))) ? t.offsetWidth * i.xPercent / 100 : 0) + s, i.y = h - ((i.yPercent = h && (!e && i.yPercent || (Math.round(t.offsetHeight / 2) === Math.round(-h) ? -50 : 0))) ? t.offsetHeight * i.yPercent / 100 : 0) + s, i.z = _ + s, i.scaleX = Y(d), i.scaleY = Y(p), i.rotation = Y(c) + a, i.rotationX = Y(g) + a, i.rotationY = Y(y) + a, i.skewX = v + a, i.skewY = w + a, i.transformPerspective = x + s, (i.zOrigin = parseFloat(u.split(" ")[2]) || !e && i.zOrigin || 0) && (r[rt] = Ye(u)), i.xOffset = i.yOffset = 0, i.force3D = ut.force3D, i.renderTransform = i.svg ? Bs : nn ? un : Ns, i.uncache = 0, i;
|
|
2072
|
+
}, Ye = function(t) {
|
|
2023
2073
|
return (t = t.split(" "))[0] + " " + t[1];
|
|
2024
|
-
},
|
|
2025
|
-
var r =
|
|
2026
|
-
return
|
|
2027
|
-
},
|
|
2028
|
-
e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0,
|
|
2029
|
-
},
|
|
2030
|
-
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.z, u = i.rotation, f = i.rotationY, h = i.rotationX,
|
|
2031
|
-
if (w && (h !==
|
|
2032
|
-
var T = parseFloat(f) *
|
|
2033
|
-
T = parseFloat(h) *
|
|
2034
|
-
}
|
|
2035
|
-
|
|
2036
|
-
},
|
|
2037
|
-
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.rotation, u = i.skewX, f = i.skewY, h = i.scaleX,
|
|
2038
|
-
l = parseFloat(l), u = parseFloat(u), f = parseFloat(f), f && (f = parseFloat(f), u += f, l += f), l || u ? (l *=
|
|
2039
|
-
},
|
|
2040
|
-
var s = 360, a =
|
|
2041
|
-
return a && (h = n.split("_")[1], h === "short" && (u %= s, u !== u % (s / 2) && (u += u < 0 ? s : -s)), h === "cw" && u < 0 ? u = (u + s *
|
|
2042
|
-
},
|
|
2074
|
+
}, ri = function(t, e, i) {
|
|
2075
|
+
var r = J(e);
|
|
2076
|
+
return Y(parseFloat(e) + parseFloat(Ft(t, "x", i + "px", r))) + r;
|
|
2077
|
+
}, Ns = function(t, e) {
|
|
2078
|
+
e.z = "0px", e.rotationY = e.rotationX = "0deg", e.force3D = 0, un(t, e);
|
|
2079
|
+
}, Vt = "0deg", _e = "0px", Ut = ") ", un = function(t, e) {
|
|
2080
|
+
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.z, u = i.rotation, f = i.rotationY, h = i.rotationX, _ = i.skewX, d = i.skewY, p = i.scaleX, c = i.scaleY, g = i.transformPerspective, y = i.force3D, v = i.target, w = i.zOrigin, x = "", m = y === "auto" && t && t !== 1 || y === !0;
|
|
2081
|
+
if (w && (h !== Vt || f !== Vt)) {
|
|
2082
|
+
var T = parseFloat(f) * se, k = Math.sin(T), S = Math.cos(T), b;
|
|
2083
|
+
T = parseFloat(h) * se, b = Math.cos(T), s = ri(v, s, k * b * -w), a = ri(v, a, -Math.sin(T) * -w), l = ri(v, l, S * b * -w + w);
|
|
2084
|
+
}
|
|
2085
|
+
g !== _e && (x += "perspective(" + g + Ut), (r || n) && (x += "translate(" + r + "%, " + n + "%) "), (m || s !== _e || a !== _e || l !== _e) && (x += l !== _e || m ? "translate3d(" + s + ", " + a + ", " + l + ") " : "translate(" + s + ", " + a + Ut), u !== Vt && (x += "rotate(" + u + Ut), f !== Vt && (x += "rotateY(" + f + Ut), h !== Vt && (x += "rotateX(" + h + Ut), (_ !== Vt || d !== Vt) && (x += "skew(" + _ + ", " + d + Ut), (p !== 1 || c !== 1) && (x += "scale(" + p + ", " + c + Ut), v.style[N] = x || "translate(0, 0)";
|
|
2086
|
+
}, Bs = function(t, e) {
|
|
2087
|
+
var i = e || this, r = i.xPercent, n = i.yPercent, s = i.x, a = i.y, l = i.rotation, u = i.skewX, f = i.skewY, h = i.scaleX, _ = i.scaleY, d = i.target, p = i.xOrigin, c = i.yOrigin, g = i.xOffset, y = i.yOffset, v = i.forceCSS, w = parseFloat(s), x = parseFloat(a), m, T, k, S, b;
|
|
2088
|
+
l = parseFloat(l), u = parseFloat(u), f = parseFloat(f), f && (f = parseFloat(f), u += f, l += f), l || u ? (l *= se, u *= se, m = Math.cos(l) * h, T = Math.sin(l) * h, k = Math.sin(l - u) * -_, S = Math.cos(l - u) * _, u && (f *= se, b = Math.tan(u - f), b = Math.sqrt(1 + b * b), k *= b, S *= b, f && (b = Math.tan(f), b = Math.sqrt(1 + b * b), m *= b, T *= b)), m = Y(m), T = Y(T), k = Y(k), S = Y(S)) : (m = h, S = _, T = k = 0), (w && !~(s + "").indexOf("px") || x && !~(a + "").indexOf("px")) && (w = Ft(d, "x", s, "px"), x = Ft(d, "y", a, "px")), (p || c || g || y) && (w = Y(w + p - (p * m + c * k) + g), x = Y(x + c - (p * T + c * S) + y)), (r || n) && (b = d.getBBox(), w = Y(w + r / 100 * b.width), x = Y(x + n / 100 * b.height)), b = "matrix(" + m + "," + T + "," + k + "," + S + "," + w + "," + x + ")", d.setAttribute("transform", b), v && (d.style[N] = b);
|
|
2089
|
+
}, Vs = function(t, e, i, r, n) {
|
|
2090
|
+
var s = 360, a = G(n), l = parseFloat(n) * (a && ~n.indexOf("rad") ? Yt : 1), u = l - r, f = r + u + "deg", h, _;
|
|
2091
|
+
return a && (h = n.split("_")[1], h === "short" && (u %= s, u !== u % (s / 2) && (u += u < 0 ? s : -s)), h === "cw" && u < 0 ? u = (u + s * Ji) % s - ~~(u / s) * s : h === "ccw" && u > 0 && (u = (u - s * Ji) % s - ~~(u / s) * s)), t._pt = _ = new it(t._pt, e, i, r, u, Ts), _.e = f, _.u = "deg", t._props.push(i), _;
|
|
2092
|
+
}, nr = function(t, e) {
|
|
2043
2093
|
for (var i in e)
|
|
2044
2094
|
t[i] = e[i];
|
|
2045
2095
|
return t;
|
|
2046
|
-
},
|
|
2047
|
-
var r =
|
|
2096
|
+
}, Us = function(t, e, i) {
|
|
2097
|
+
var r = nr({}, i._gsap), n = "perspective,force3D,transformOrigin,svgOrigin", s = i.style, a, l, u, f, h, _, d, p;
|
|
2048
2098
|
r.svg ? (u = i.getAttribute("transform"), i.setAttribute("transform", ""), s[N] = e, a = Pe(i, 1), It(i, N), i.setAttribute("transform", u)) : (u = getComputedStyle(i)[N], s[N] = e, a = Pe(i, 1), s[N] = u);
|
|
2049
2099
|
for (l in Ct)
|
|
2050
|
-
u = r[l], f = a[l], u !== f && n.indexOf(l) < 0 && (
|
|
2051
|
-
|
|
2100
|
+
u = r[l], f = a[l], u !== f && n.indexOf(l) < 0 && (d = J(u), p = J(f), h = d !== p ? Ft(i, l, u, p) : parseFloat(u), _ = parseFloat(f), t._pt = new it(t._pt, a, l, h, _ - h, _i), t._pt.u = p || 0, t._props.push(l));
|
|
2101
|
+
nr(a, r);
|
|
2052
2102
|
};
|
|
2053
|
-
|
|
2103
|
+
et("padding,margin,Width,Radius", function(o, t) {
|
|
2054
2104
|
var e = "Top", i = "Right", r = "Bottom", n = "Left", s = (t < 3 ? [e, i, r, n] : [e + n, e + i, r + i, r + n]).map(function(a) {
|
|
2055
2105
|
return t < 2 ? o + a : "border" + a + o;
|
|
2056
2106
|
});
|
|
2057
|
-
|
|
2058
|
-
var
|
|
2107
|
+
Ue[t > 1 ? "border" + o : o] = function(a, l, u, f, h) {
|
|
2108
|
+
var _, d;
|
|
2059
2109
|
if (arguments.length < 4)
|
|
2060
|
-
return
|
|
2061
|
-
return
|
|
2062
|
-
}),
|
|
2063
|
-
|
|
2064
|
-
return
|
|
2065
|
-
}), a.init(l,
|
|
2110
|
+
return _ = s.map(function(p) {
|
|
2111
|
+
return Ot(a, p, u);
|
|
2112
|
+
}), d = _.join(" "), d.split(_[0]).length === 5 ? _[0] : d;
|
|
2113
|
+
_ = (f + "").split(" "), d = {}, s.forEach(function(p, c) {
|
|
2114
|
+
return d[p] = _[c] = _[c] || _[(c - 1) / 2 | 0];
|
|
2115
|
+
}), a.init(l, d, h);
|
|
2066
2116
|
};
|
|
2067
2117
|
});
|
|
2068
|
-
var
|
|
2118
|
+
var fn = {
|
|
2069
2119
|
name: "css",
|
|
2070
|
-
register:
|
|
2120
|
+
register: mi,
|
|
2071
2121
|
targetTest: function(t) {
|
|
2072
2122
|
return t.style && t.nodeType;
|
|
2073
2123
|
},
|
|
2074
2124
|
init: function(t, e, i, r, n) {
|
|
2075
|
-
var s = this._props, a = t.style, l = i.vars.startAt, u, f, h,
|
|
2076
|
-
|
|
2125
|
+
var s = this._props, a = t.style, l = i.vars.startAt, u, f, h, _, d, p, c, g, y, v, w, x, m, T, k, S, b;
|
|
2126
|
+
zi || mi(), this.styles = this.styles || rn(t), S = this.styles.props, this.tween = i;
|
|
2077
2127
|
for (c in e)
|
|
2078
|
-
if (c !== "autoRound" && (f = e[c], !(
|
|
2079
|
-
if (
|
|
2080
|
-
|
|
2128
|
+
if (c !== "autoRound" && (f = e[c], !(st[c] && Xr(c, e, i, r, t, n)))) {
|
|
2129
|
+
if (d = typeof f, p = Ue[c], d === "function" && (f = f.call(i, r, t, n), d = typeof f), d === "string" && ~f.indexOf("random(") && (f = Te(f)), p)
|
|
2130
|
+
p(this, t, c, f, i) && (k = 1);
|
|
2081
2131
|
else if (c.substr(0, 2) === "--")
|
|
2082
|
-
u = (getComputedStyle(t).getPropertyValue(c) + "").trim(), f += "",
|
|
2083
|
-
else if (
|
|
2084
|
-
if (l && c in l ? (u = typeof l[c] == "function" ? l[c].call(i, r, t, n) : l[c],
|
|
2085
|
-
if (this.styles.save(c), b = f,
|
|
2086
|
-
if (f =
|
|
2087
|
-
var
|
|
2088
|
-
t.style.perspective = f, f =
|
|
2132
|
+
u = (getComputedStyle(t).getPropertyValue(c) + "").trim(), f += "", Et.lastIndex = 0, Et.test(u) || (g = J(u), y = J(f), y ? g !== y && (u = Ft(t, c, u, y) + y) : g && (f += g)), this.add(a, "setProperty", u, f, r, n, 0, 0, c), s.push(c), S.push(c, 0, a[c]);
|
|
2133
|
+
else if (d !== "undefined") {
|
|
2134
|
+
if (l && c in l ? (u = typeof l[c] == "function" ? l[c].call(i, r, t, n) : l[c], G(u) && ~u.indexOf("random(") && (u = Te(u)), J(u + "") || u === "auto" || (u += ut.units[c] || J(Ot(t, c)) || ""), (u + "").charAt(1) === "=" && (u = Ot(t, c))) : u = Ot(t, c), _ = parseFloat(u), v = d === "string" && f.charAt(1) === "=" && f.substr(0, 2), v && (f = f.substr(2)), h = parseFloat(f), c in bt && (c === "autoAlpha" && (_ === 1 && Ot(t, "visibility") === "hidden" && h && (_ = 0), S.push("visibility", 0, a.visibility), At(this, a, "visibility", _ ? "inherit" : "hidden", h ? "inherit" : "hidden", !h)), c !== "scale" && c !== "transform" && (c = bt[c], ~c.indexOf(",") && (c = c.split(",")[0]))), w = c in Ct, w) {
|
|
2135
|
+
if (this.styles.save(c), b = f, d === "string" && f.substring(0, 6) === "var(--") {
|
|
2136
|
+
if (f = lt(t, f.substring(4, f.indexOf(")"))), f.substring(0, 5) === "calc(") {
|
|
2137
|
+
var P = t.style.perspective;
|
|
2138
|
+
t.style.perspective = f, f = lt(t, "perspective"), P ? t.style.perspective = P : It(t, "perspective");
|
|
2089
2139
|
}
|
|
2090
2140
|
h = parseFloat(f);
|
|
2091
2141
|
}
|
|
2092
|
-
if (x || (
|
|
2093
|
-
this._pt = new
|
|
2142
|
+
if (x || (m = t._gsap, m.renderTransform && !e.parseTransform || Pe(t, e.parseTransform), T = e.smoothOrigin !== !1 && m.smooth, x = this._pt = new it(this._pt, a, N, 0, 1, m.renderTransform, m, 0, -1), x.dep = 1), c === "scale")
|
|
2143
|
+
this._pt = new it(this._pt, m, "scaleY", m.scaleY, (v ? re(m.scaleY, v + h) : h) - m.scaleY || 0, _i), this._pt.u = 0, s.push("scaleY", c), c += "X";
|
|
2094
2144
|
else if (c === "transformOrigin") {
|
|
2095
|
-
S.push(
|
|
2145
|
+
S.push(rt, 0, a[rt]), f = Ls(f), m.svg ? gi(t, f, 0, T, 0, this) : (y = parseFloat(f.split(" ")[2]) || 0, y !== m.zOrigin && At(this, m, "zOrigin", m.zOrigin, y), At(this, a, c, Ye(u), Ye(f)));
|
|
2096
2146
|
continue;
|
|
2097
2147
|
} else if (c === "svgOrigin") {
|
|
2098
|
-
|
|
2148
|
+
gi(t, f, 1, T, 0, this);
|
|
2099
2149
|
continue;
|
|
2100
|
-
} else if (c in
|
|
2101
|
-
|
|
2150
|
+
} else if (c in on) {
|
|
2151
|
+
Vs(this, m, c, _, v ? re(_, v + f) : f);
|
|
2102
2152
|
continue;
|
|
2103
2153
|
} else if (c === "smoothOrigin") {
|
|
2104
|
-
At(this,
|
|
2154
|
+
At(this, m, "smooth", m.smooth, f);
|
|
2105
2155
|
continue;
|
|
2106
2156
|
} else if (c === "force3D") {
|
|
2107
|
-
|
|
2157
|
+
m[c] = f;
|
|
2108
2158
|
continue;
|
|
2109
2159
|
} else if (c === "transform") {
|
|
2110
|
-
|
|
2160
|
+
Us(this, f, t);
|
|
2111
2161
|
continue;
|
|
2112
2162
|
}
|
|
2113
|
-
} else c in a || (c =
|
|
2114
|
-
if (w || (h || h === 0) && (
|
|
2115
|
-
|
|
2163
|
+
} else c in a || (c = ce(c) || c);
|
|
2164
|
+
if (w || (h || h === 0) && (_ || _ === 0) && !ws.test(f) && c in a)
|
|
2165
|
+
g = (u + "").substr((_ + "").length), h || (h = 0), y = J(f) || (c in ut.units ? ut.units[c] : g), g !== y && (_ = Ft(t, c, u, y)), this._pt = new it(this._pt, w ? m : a, c, _, (v ? re(_, v + h) : h) - _, !w && (y === "px" || c === "zIndex") && e.autoRound !== !1 ? Os : _i), this._pt.u = y || 0, w && b !== f ? (this._pt.b = u, this._pt.e = b, this._pt.r = Ss) : g !== y && y !== "%" && (this._pt.b = u, this._pt.r = ks);
|
|
2116
2166
|
else if (c in a)
|
|
2117
|
-
|
|
2167
|
+
Fs.call(this, t, c, u, v ? v + f : f);
|
|
2118
2168
|
else if (c in t)
|
|
2119
2169
|
this.add(t, c, u || t[c], v ? v + f : f, r, n);
|
|
2120
2170
|
else if (c !== "parseTransform") {
|
|
2121
|
-
|
|
2171
|
+
wi(c, f);
|
|
2122
2172
|
continue;
|
|
2123
2173
|
}
|
|
2124
2174
|
w || (c in a ? S.push(c, 0, a[c]) : typeof t[c] == "function" ? S.push(c, 2, t[c]()) : S.push(c, 1, u || t[c])), s.push(c);
|
|
2125
2175
|
}
|
|
2126
2176
|
}
|
|
2127
|
-
k &&
|
|
2177
|
+
k && Jr(this);
|
|
2128
2178
|
},
|
|
2129
2179
|
render: function(t, e) {
|
|
2130
2180
|
if (e.tween._time || !Ei())
|
|
@@ -2133,87 +2183,84 @@ var sn = {
|
|
|
2133
2183
|
else
|
|
2134
2184
|
e.styles.revert();
|
|
2135
2185
|
},
|
|
2136
|
-
get:
|
|
2137
|
-
aliases:
|
|
2186
|
+
get: Ot,
|
|
2187
|
+
aliases: bt,
|
|
2138
2188
|
getSetter: function(t, e, i) {
|
|
2139
|
-
var r =
|
|
2140
|
-
return r && r.indexOf(",") < 0 && (e = r), e in Ct && e !==
|
|
2189
|
+
var r = bt[e];
|
|
2190
|
+
return r && r.indexOf(",") < 0 && (e = r), e in Ct && e !== rt && (t._gsap.x || Ot(t, "x")) ? i && Ki === i ? e === "scale" ? Ds : Ms : (Ki = i || {}) && (e === "scale" ? As : zs) : t.style && !vi(t.style[e]) ? Ps : ~e.indexOf("-") ? Cs : Di(t, e);
|
|
2141
2191
|
},
|
|
2142
2192
|
core: {
|
|
2143
2193
|
_removeProperty: It,
|
|
2144
|
-
_getMatrix:
|
|
2194
|
+
_getMatrix: Ii
|
|
2145
2195
|
}
|
|
2146
2196
|
};
|
|
2147
|
-
|
|
2148
|
-
|
|
2197
|
+
nt.utils.checkPrefix = ce;
|
|
2198
|
+
nt.core.getStyleSaver = rn;
|
|
2149
2199
|
(function(o, t, e, i) {
|
|
2150
|
-
var r =
|
|
2200
|
+
var r = et(o + "," + t + "," + e, function(n) {
|
|
2151
2201
|
Ct[n] = 1;
|
|
2152
2202
|
});
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
}),
|
|
2203
|
+
et(t, function(n) {
|
|
2204
|
+
ut.units[n] = "deg", on[n] = 1;
|
|
2205
|
+
}), bt[r[13]] = o + "," + t, et(i, function(n) {
|
|
2156
2206
|
var s = n.split(":");
|
|
2157
|
-
|
|
2207
|
+
bt[s[1]] = r[s[0]];
|
|
2158
2208
|
});
|
|
2159
2209
|
})("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");
|
|
2160
|
-
|
|
2161
|
-
|
|
2210
|
+
et("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective", function(o) {
|
|
2211
|
+
ut.units[o] = "px";
|
|
2162
2212
|
});
|
|
2163
|
-
|
|
2164
|
-
var
|
|
2165
|
-
|
|
2166
|
-
const
|
|
2213
|
+
nt.registerPlugin(fn);
|
|
2214
|
+
var yt = nt.registerPlugin(fn) || nt;
|
|
2215
|
+
yt.core.Tween;
|
|
2216
|
+
const Ys = { class: "h-full w-full relative flex flex-col bg-[#030303] text-white overflow-hidden" }, qs = { class: "absolute inset-0 z-0 overflow-hidden pointer-events-none" }, Xs = {
|
|
2167
2217
|
key: 0,
|
|
2168
2218
|
class: "absolute top-0 right-0 p-6 z-50 flex gap-4 pointer-events-auto"
|
|
2169
|
-
},
|
|
2170
|
-
key: 0,
|
|
2171
|
-
class: "fixed right-0 top-0 h-full w-full md:w-[450px] bg-[#0a0a0a]/95 backdrop-blur-2xl border-l border-white/10 z-[100] p-6 shadow-2xl overflow-auto text-left"
|
|
2172
|
-
}, Us = { class: "text-[10px] font-mono text-green-400 whitespace-pre-wrap" }, Ys = { class: "flex-1 w-full relative overflow-y-auto overflow-x-hidden z-10 scroll-smooth" }, qs = {
|
|
2219
|
+
}, js = { class: "relative h-full w-full md:w-[450px] bg-[#0a0a0a]/95 border-l border-white/10 shadow-2xl overflow-auto text-left flex flex-col transform transition-transform duration-300" }, Ws = { class: "p-6 pb-2 border-b border-white/5 flex items-center justify-between shrink-0" }, Gs = { class: "p-6" }, Hs = { class: "text-[10px] font-mono text-green-400 whitespace-pre-wrap" }, Ks = { class: "flex-1 w-full relative overflow-y-auto overflow-x-hidden z-10 scroll-smooth" }, Js = {
|
|
2173
2220
|
key: 1,
|
|
2174
|
-
class: "
|
|
2175
|
-
},
|
|
2221
|
+
class: "absolute bottom-0 left-0 w-full z-40 px-8 py-6 bg-gradient-to-t from-black via-black/80 to-transparent flex justify-between items-end pointer-events-none"
|
|
2222
|
+
}, Qs = {
|
|
2176
2223
|
key: 0,
|
|
2177
2224
|
class: "pointer-events-auto text-left"
|
|
2178
|
-
},
|
|
2225
|
+
}, Zs = { class: "text-[10px] font-bold text-gray-500 tracking-[0.2em] uppercase mb-1" }, ta = { class: "flex items-center gap-2 text-white/50 text-sm font-mono" }, ea = {
|
|
2179
2226
|
key: 0,
|
|
2180
2227
|
class: "h-px w-8 bg-white/20"
|
|
2181
|
-
},
|
|
2228
|
+
}, ia = {
|
|
2182
2229
|
key: 1,
|
|
2183
2230
|
class: "flex-1"
|
|
2184
|
-
},
|
|
2231
|
+
}, ra = {
|
|
2185
2232
|
key: 2,
|
|
2186
2233
|
class: "pointer-events-auto flex gap-3"
|
|
2187
|
-
},
|
|
2234
|
+
}, na = ["disabled"], sa = ["disabled"], aa = /* @__PURE__ */ Lt({
|
|
2188
2235
|
__name: "LuminaDeck",
|
|
2189
2236
|
setup(o) {
|
|
2190
|
-
const { slide: t, index: e, total: i, next: r, prev: n, options: s } =
|
|
2191
|
-
var x,
|
|
2192
|
-
return (
|
|
2193
|
-
}), h =
|
|
2194
|
-
|
|
2195
|
-
const
|
|
2196
|
-
var x,
|
|
2237
|
+
const { slide: t, index: e, total: i, next: r, prev: n, options: s } = wn(), a = qe(Ce), l = dt(() => a.hasNext()), u = dt(() => a.hasPrev()), f = dt(() => {
|
|
2238
|
+
var x, m;
|
|
2239
|
+
return (m = (x = a.state.deck) == null ? void 0 : x.meta) == null ? void 0 : m.title;
|
|
2240
|
+
}), h = dt(() => a.state.options.ui), _ = dt(() => a.state.options.navigation);
|
|
2241
|
+
Tn();
|
|
2242
|
+
const d = lr({ showJson: !1 }), p = dt(() => s.debug), c = dt(() => !t.value || !t.value.type ? null : `layout-${t.value.type}`), g = dt(() => {
|
|
2243
|
+
var x, m, T, k, S, b, P, M;
|
|
2197
2244
|
return {
|
|
2198
|
-
backgroundColor: ((
|
|
2245
|
+
backgroundColor: ((m = (x = t.value) == null ? void 0 : x.meta) == null ? void 0 : m.orbColor) || "#3b82f6",
|
|
2199
2246
|
width: "60vw",
|
|
2200
2247
|
height: "60vw",
|
|
2201
2248
|
top: ((S = (k = (T = t.value) == null ? void 0 : T.meta) == null ? void 0 : k.orbPos) == null ? void 0 : S.top) || "-20%",
|
|
2202
|
-
left: ((M = (
|
|
2249
|
+
left: ((M = (P = (b = t.value) == null ? void 0 : b.meta) == null ? void 0 : P.orbPos) == null ? void 0 : M.left) || "-10%"
|
|
2203
2250
|
};
|
|
2204
2251
|
}), y = (x) => {
|
|
2205
|
-
|
|
2206
|
-
}, v = (x,
|
|
2252
|
+
Zt.emit("action", x);
|
|
2253
|
+
}, v = (x, m) => {
|
|
2207
2254
|
const T = x;
|
|
2208
|
-
T.style.opacity = "1",
|
|
2209
|
-
}, w = (x,
|
|
2210
|
-
var
|
|
2255
|
+
T.style.opacity = "1", m();
|
|
2256
|
+
}, w = (x, m) => {
|
|
2257
|
+
var P, M, D;
|
|
2211
2258
|
const { options: T } = a.state;
|
|
2212
|
-
if (((
|
|
2213
|
-
|
|
2259
|
+
if (((P = T.animation) == null ? void 0 : P.enabled) === !1) {
|
|
2260
|
+
m();
|
|
2214
2261
|
return;
|
|
2215
2262
|
}
|
|
2216
|
-
const k = ((M = T.animation) == null ? void 0 : M.durationOut) || 0.5, S = ((D = T.animation) == null ? void 0 : D.type) || "cascade", b =
|
|
2263
|
+
const k = ((M = T.animation) == null ? void 0 : M.durationOut) || 0.5, S = ((D = T.animation) == null ? void 0 : D.type) || "cascade", b = yt.timeline({ onComplete: m });
|
|
2217
2264
|
S === "fade" ? b.to(x, { opacity: 0, duration: k }) : S === "zoom" ? b.to(x, { opacity: 0, scale: 1.1, duration: k }) : b.to(x, {
|
|
2218
2265
|
opacity: 0,
|
|
2219
2266
|
y: -20,
|
|
@@ -2222,95 +2269,116 @@ const $s = { class: "h-screen w-screen relative flex flex-col bg-[#030303] text-
|
|
|
2222
2269
|
ease: "power2.in"
|
|
2223
2270
|
});
|
|
2224
2271
|
};
|
|
2225
|
-
return (x,
|
|
2272
|
+
return (x, m) => {
|
|
2226
2273
|
var T, k, S, b;
|
|
2227
|
-
return A(), B("div",
|
|
2228
|
-
|
|
2229
|
-
|
|
2274
|
+
return A(), B("div", Ys, [
|
|
2275
|
+
O("div", qs, [
|
|
2276
|
+
O("div", {
|
|
2230
2277
|
class: "ambient-orb",
|
|
2231
|
-
style:
|
|
2278
|
+
style: ur(g.value)
|
|
2232
2279
|
}, null, 4),
|
|
2233
|
-
|
|
2280
|
+
m[6] || (m[6] = O("div", {
|
|
2234
2281
|
class: "absolute inset-0 opacity-[0.04]",
|
|
2235
2282
|
style: { "background-image": "url('https://grainy-gradients.vercel.app/noise.svg')" }
|
|
2236
2283
|
}, null, -1))
|
|
2237
2284
|
]),
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
onClick:
|
|
2285
|
+
p.value ? (A(), B("div", Xs, [
|
|
2286
|
+
O("button", {
|
|
2287
|
+
onClick: m[0] || (m[0] = (P) => d.value.showJson = !d.value.showJson),
|
|
2241
2288
|
class: "w-8 h-8 rounded-full glass-panel flex items-center justify-center text-gray-400 hover:text-white transition",
|
|
2242
2289
|
title: "JSON"
|
|
2243
|
-
}, [...
|
|
2244
|
-
|
|
2290
|
+
}, [...m[7] || (m[7] = [
|
|
2291
|
+
O("i", { class: "fa-solid fa-code text-xs" }, null, -1)
|
|
2245
2292
|
])])
|
|
2246
|
-
])) :
|
|
2247
|
-
|
|
2248
|
-
default:
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2293
|
+
])) : gt("", !0),
|
|
2294
|
+
Li($i, { name: "fade" }, {
|
|
2295
|
+
default: Ht(() => [
|
|
2296
|
+
d.value.showJson ? (A(), B("div", {
|
|
2297
|
+
key: 0,
|
|
2298
|
+
class: "fixed inset-0 z-[100] flex justify-end",
|
|
2299
|
+
onClick: m[3] || (m[3] = pn((P) => d.value.showJson = !1, ["self"]))
|
|
2300
|
+
}, [
|
|
2301
|
+
O("div", {
|
|
2302
|
+
class: "absolute inset-0 bg-black/20 backdrop-blur-sm transition-opacity",
|
|
2303
|
+
onClick: m[1] || (m[1] = (P) => d.value.showJson = !1)
|
|
2304
|
+
}),
|
|
2305
|
+
O("div", js, [
|
|
2306
|
+
O("div", Ws, [
|
|
2307
|
+
m[9] || (m[9] = O("span", { class: "text-xs font-bold text-gray-400 uppercase tracking-widest" }, "Slide Data", -1)),
|
|
2308
|
+
O("button", {
|
|
2309
|
+
onClick: m[2] || (m[2] = (P) => d.value.showJson = !1),
|
|
2310
|
+
class: "w-8 h-8 rounded-full bg-white/5 hover:bg-white/10 flex items-center justify-center text-white/50 hover:text-white transition"
|
|
2311
|
+
}, [...m[8] || (m[8] = [
|
|
2312
|
+
O("i", { class: "fa-solid fa-xmark" }, null, -1)
|
|
2313
|
+
])])
|
|
2314
|
+
]),
|
|
2315
|
+
O("div", Gs, [
|
|
2316
|
+
O("pre", Hs, I(JSON.stringify(kt(t), null, 2)), 1)
|
|
2317
|
+
])
|
|
2318
|
+
])
|
|
2319
|
+
])) : gt("", !0)
|
|
2252
2320
|
]),
|
|
2253
2321
|
_: 1
|
|
2254
2322
|
}),
|
|
2255
|
-
|
|
2256
|
-
|
|
2323
|
+
O("main", Ks, [
|
|
2324
|
+
Li($i, {
|
|
2257
2325
|
css: !1,
|
|
2258
2326
|
onLeave: w,
|
|
2259
2327
|
onEnter: v,
|
|
2260
2328
|
mode: "out-in"
|
|
2261
2329
|
}, {
|
|
2262
|
-
default:
|
|
2263
|
-
c.value ? (A(),
|
|
2264
|
-
key:
|
|
2265
|
-
data:
|
|
2330
|
+
default: Ht(() => [
|
|
2331
|
+
c.value ? (A(), Kt(fr(c.value), {
|
|
2332
|
+
key: kt(e),
|
|
2333
|
+
data: kt(t),
|
|
2266
2334
|
onAction: y,
|
|
2267
2335
|
class: "min-h-full w-full"
|
|
2268
|
-
}, null, 40, ["data"])) :
|
|
2336
|
+
}, null, 40, ["data"])) : gt("", !0)
|
|
2269
2337
|
]),
|
|
2270
2338
|
_: 1
|
|
2271
2339
|
})
|
|
2272
2340
|
]),
|
|
2273
|
-
(T = h.value) != null && T.visible ? (A(), B("div",
|
|
2274
|
-
(k = h.value) != null && k.showSlideCount ? (A(), B("div",
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
(S = h.value) != null && S.showProgressBar ? (A(), B("div",
|
|
2279
|
-
|
|
2341
|
+
(T = h.value) != null && T.visible ? (A(), B("div", Js, [
|
|
2342
|
+
(k = h.value) != null && k.showSlideCount ? (A(), B("div", Qs, [
|
|
2343
|
+
O("h2", Zs, I(f.value), 1),
|
|
2344
|
+
O("div", ta, [
|
|
2345
|
+
O("span", null, I((kt(e) + 1).toString().padStart(2, "0")), 1),
|
|
2346
|
+
(S = h.value) != null && S.showProgressBar ? (A(), B("div", ea)) : gt("", !0),
|
|
2347
|
+
O("span", null, I(kt(i).toString().padStart(2, "0")), 1)
|
|
2280
2348
|
])
|
|
2281
|
-
])) : (A(), B("div",
|
|
2282
|
-
(b = h.value) != null && b.showControls ? (A(), B("div",
|
|
2283
|
-
|
|
2284
|
-
onClick:
|
|
2285
|
-
(...
|
|
2286
|
-
class:
|
|
2287
|
-
disabled: !u.value || !
|
|
2288
|
-
}, [...
|
|
2289
|
-
|
|
2290
|
-
])], 10,
|
|
2291
|
-
|
|
2292
|
-
onClick:
|
|
2293
|
-
(...
|
|
2294
|
-
class:
|
|
2295
|
-
disabled: !l.value || !
|
|
2296
|
-
}, [...
|
|
2297
|
-
|
|
2298
|
-
])], 10,
|
|
2299
|
-
])) :
|
|
2300
|
-
])) :
|
|
2349
|
+
])) : (A(), B("div", ia)),
|
|
2350
|
+
(b = h.value) != null && b.showControls ? (A(), B("div", ra, [
|
|
2351
|
+
O("button", {
|
|
2352
|
+
onClick: m[4] || (m[4] = //@ts-ignore
|
|
2353
|
+
(...P) => kt(n) && kt(n)(...P)),
|
|
2354
|
+
class: U(["w-12 h-12 rounded-full glass-panel hover:bg-white/10 flex items-center justify-center transition active:scale-95", !u.value || !_.value ? "opacity-30 cursor-not-allowed" : ""]),
|
|
2355
|
+
disabled: !u.value || !_.value
|
|
2356
|
+
}, [...m[10] || (m[10] = [
|
|
2357
|
+
O("i", { class: "fa-solid fa-arrow-left" }, null, -1)
|
|
2358
|
+
])], 10, na),
|
|
2359
|
+
O("button", {
|
|
2360
|
+
onClick: m[5] || (m[5] = //@ts-ignore
|
|
2361
|
+
(...P) => kt(r) && kt(r)(...P)),
|
|
2362
|
+
class: U(["w-12 h-12 rounded-full bg-white text-black hover:scale-105 flex items-center justify-center transition shadow-lg active:scale-95", !l.value || !_.value ? "opacity-30 cursor-not-allowed" : ""]),
|
|
2363
|
+
disabled: !l.value || !_.value
|
|
2364
|
+
}, [...m[11] || (m[11] = [
|
|
2365
|
+
O("i", { class: "fa-solid fa-arrow-right" }, null, -1)
|
|
2366
|
+
])], 10, sa)
|
|
2367
|
+
])) : gt("", !0)
|
|
2368
|
+
])) : gt("", !0)
|
|
2301
2369
|
]);
|
|
2302
2370
|
};
|
|
2303
2371
|
}
|
|
2304
2372
|
});
|
|
2305
|
-
function
|
|
2306
|
-
const e =
|
|
2373
|
+
function oa(o, t) {
|
|
2374
|
+
const e = qe(Ce);
|
|
2307
2375
|
let i = null;
|
|
2308
2376
|
const r = () => {
|
|
2309
2377
|
if (!o.value || !e) return;
|
|
2310
2378
|
i == null || i.revert();
|
|
2311
2379
|
const { enabled: n, type: s, durationIn: a, stagger: l, ease: u } = e.state.options.animation || {};
|
|
2312
2380
|
if (n === !1) {
|
|
2313
|
-
|
|
2381
|
+
yt.set(o.value.querySelectorAll(".reveal-up, .reveal-zoom, .reveal-content > *, .reveal-card, .reveal-img"), {
|
|
2314
2382
|
opacity: 1,
|
|
2315
2383
|
y: 0,
|
|
2316
2384
|
scale: 1,
|
|
@@ -2318,43 +2386,43 @@ function ta(o, t) {
|
|
|
2318
2386
|
});
|
|
2319
2387
|
return;
|
|
2320
2388
|
}
|
|
2321
|
-
i =
|
|
2322
|
-
const f = o.value, h = s === "fade",
|
|
2323
|
-
|
|
2324
|
-
const
|
|
2389
|
+
i = yt.context(() => {
|
|
2390
|
+
const f = o.value, h = s === "fade", _ = s === "slide", d = s === "zoom", p = h ? 0 : _ ? 80 : 40, c = d ? 0.8 : s === "cascade" ? 0.95 : 1;
|
|
2391
|
+
yt.set(".reveal-up", { y: p, opacity: 0 }), yt.set(".reveal-zoom", { scale: c, opacity: 0 }), yt.set(".reveal-content > *", { y: h ? 0 : 30, opacity: 0 }), yt.set(".reveal-card", { y: h ? 0 : 50, opacity: 0, scale: c }), yt.set(".reveal-img", { scale: 1.1, opacity: 0 });
|
|
2392
|
+
const g = yt.timeline({
|
|
2325
2393
|
defaults: {
|
|
2326
2394
|
ease: u || "power3.out",
|
|
2327
2395
|
duration: a || 0.8
|
|
2328
2396
|
},
|
|
2329
2397
|
onComplete: t
|
|
2330
2398
|
});
|
|
2331
|
-
f.querySelector(".reveal-img") &&
|
|
2399
|
+
f.querySelector(".reveal-img") && g.to(".reveal-img", {
|
|
2332
2400
|
scale: 1,
|
|
2333
2401
|
opacity: 1,
|
|
2334
2402
|
duration: (a || 1) * 1.2,
|
|
2335
2403
|
ease: "expo.out"
|
|
2336
2404
|
}, 0);
|
|
2337
2405
|
const y = a || 0.8, v = l || 0.1;
|
|
2338
|
-
f.querySelectorAll(".reveal-card").length &&
|
|
2406
|
+
f.querySelectorAll(".reveal-card").length && g.to(".reveal-card", {
|
|
2339
2407
|
y: 0,
|
|
2340
2408
|
opacity: 1,
|
|
2341
2409
|
scale: 1,
|
|
2342
2410
|
duration: y,
|
|
2343
2411
|
stagger: v,
|
|
2344
|
-
ease:
|
|
2412
|
+
ease: _ ? "expo.out" : "back.out(1.2)"
|
|
2345
2413
|
}, 0.2);
|
|
2346
2414
|
const w = f.querySelectorAll(".reveal-content > *");
|
|
2347
|
-
w.length &&
|
|
2415
|
+
w.length && g.to(w, {
|
|
2348
2416
|
y: 0,
|
|
2349
2417
|
opacity: 1,
|
|
2350
2418
|
duration: y,
|
|
2351
2419
|
stagger: v / 2
|
|
2352
|
-
}, 0.3), f.querySelectorAll(".reveal-up").length &&
|
|
2420
|
+
}, 0.3), f.querySelectorAll(".reveal-up").length && g.to(".reveal-up", {
|
|
2353
2421
|
y: 0,
|
|
2354
2422
|
opacity: 1,
|
|
2355
2423
|
duration: y,
|
|
2356
2424
|
stagger: v
|
|
2357
|
-
}, 0.2), f.querySelector(".reveal-zoom") &&
|
|
2425
|
+
}, 0.2), f.querySelector(".reveal-zoom") && g.to(".reveal-zoom", {
|
|
2358
2426
|
scale: 1,
|
|
2359
2427
|
opacity: 1,
|
|
2360
2428
|
duration: y * 1.2,
|
|
@@ -2362,241 +2430,275 @@ function ta(o, t) {
|
|
|
2362
2430
|
}, 0.1);
|
|
2363
2431
|
}, o);
|
|
2364
2432
|
};
|
|
2365
|
-
return
|
|
2366
|
-
|
|
2433
|
+
return ar(() => {
|
|
2434
|
+
mn(() => {
|
|
2367
2435
|
r();
|
|
2368
2436
|
});
|
|
2369
|
-
}),
|
|
2437
|
+
}), or(() => {
|
|
2370
2438
|
i == null || i.revert();
|
|
2371
2439
|
}), { animateIn: r };
|
|
2372
2440
|
}
|
|
2373
|
-
const
|
|
2441
|
+
const la = { class: "absolute inset-0 z-0 pointer-events-none" }, ua = { class: "relative z-10 w-full h-full" }, De = /* @__PURE__ */ Lt({
|
|
2374
2442
|
__name: "BaseSlide",
|
|
2375
2443
|
props: {
|
|
2376
2444
|
data: {},
|
|
2377
2445
|
customClass: {}
|
|
2378
2446
|
},
|
|
2379
2447
|
setup(o) {
|
|
2380
|
-
const t =
|
|
2381
|
-
return
|
|
2448
|
+
const t = lr(null);
|
|
2449
|
+
return oa(t), (e, i) => (A(), B("div", {
|
|
2382
2450
|
ref_key: "container",
|
|
2383
2451
|
ref: t,
|
|
2384
|
-
class:
|
|
2452
|
+
class: U(["w-full min-h-full relative text-white", o.customClass])
|
|
2385
2453
|
}, [
|
|
2386
|
-
|
|
2387
|
-
|
|
2454
|
+
O("div", la, [
|
|
2455
|
+
Ni(e.$slots, "background")
|
|
2388
2456
|
]),
|
|
2389
|
-
|
|
2390
|
-
|
|
2457
|
+
O("div", ua, [
|
|
2458
|
+
Ni(e.$slots, "default")
|
|
2391
2459
|
])
|
|
2392
2460
|
], 2));
|
|
2393
2461
|
}
|
|
2394
|
-
}),
|
|
2462
|
+
}), fa = { class: "reveal-zoom max-w-5xl z-10" }, ca = {
|
|
2395
2463
|
key: 0,
|
|
2396
2464
|
class: "inline-block px-4 py-1 rounded-full border border-white/10 bg-white/5 text-sm font-medium tracking-widest uppercase mb-10 text-[var(--lumina-primary)]",
|
|
2397
2465
|
style: { color: "var(--lumina-colors-primary, #3b82f6)" }
|
|
2398
|
-
},
|
|
2399
|
-
class: "font-heading font-bold leading-[0.9] tracking-tight mb-8 text-transparent bg-clip-text bg-gradient-to-b from-white to-gray-500",
|
|
2400
|
-
style: { "font-size": "clamp(3rem, 10vw, 8rem)" }
|
|
2401
|
-
}, oa = {
|
|
2466
|
+
}, ha = {
|
|
2402
2467
|
key: 1,
|
|
2403
2468
|
class: "text-xl md:text-3xl font-light max-w-3xl mx-auto leading-normal",
|
|
2404
2469
|
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2405
|
-
},
|
|
2470
|
+
}, da = /* @__PURE__ */ Lt({
|
|
2406
2471
|
__name: "LayoutStatement",
|
|
2407
2472
|
props: {
|
|
2408
2473
|
data: {}
|
|
2409
2474
|
},
|
|
2410
2475
|
setup(o) {
|
|
2411
|
-
return (t, e) => (A(),
|
|
2412
|
-
default:
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
o.data.
|
|
2476
|
+
return (t, e) => (A(), Kt(De, { data: o.data }, {
|
|
2477
|
+
default: Ht(() => [
|
|
2478
|
+
O("div", {
|
|
2479
|
+
class: U(["flex flex-col justify-center items-center text-center p-8 relative", o.data.sizing === "container" ? "h-full" : "min-h-screen"])
|
|
2480
|
+
}, [
|
|
2481
|
+
O("div", fa, [
|
|
2482
|
+
o.data.tag ? (A(), B("span", ca, I(o.data.tag), 1)) : gt("", !0),
|
|
2483
|
+
O("h1", {
|
|
2484
|
+
class: "font-heading font-bold leading-[0.9] tracking-tight mb-8 text-transparent bg-clip-text bg-gradient-to-b from-white to-gray-500",
|
|
2485
|
+
style: ur(o.data.sizing === "container" ? "font-size: 3.5rem;" : "font-size: clamp(3rem, 10vw, 8rem);")
|
|
2486
|
+
}, I(o.data.title), 5),
|
|
2487
|
+
o.data.subtitle ? (A(), B("p", ha, I(o.data.subtitle), 1)) : gt("", !0)
|
|
2418
2488
|
])
|
|
2419
|
-
])
|
|
2489
|
+
], 2)
|
|
2420
2490
|
]),
|
|
2421
2491
|
_: 1
|
|
2422
2492
|
}, 8, ["data"]));
|
|
2423
2493
|
}
|
|
2424
|
-
}),
|
|
2494
|
+
}), _a = ["src"], pa = { class: "reveal-content max-w-xl" }, ma = {
|
|
2425
2495
|
class: "text-xs font-bold uppercase tracking-[0.2em] mb-6 block",
|
|
2426
2496
|
style: { color: "var(--lumina-colors-primary, #3b82f6)" }
|
|
2427
|
-
},
|
|
2497
|
+
}, ga = { class: "text-4xl lg:text-6xl font-heading font-bold leading-tight mb-8 text-white" }, ya = {
|
|
2428
2498
|
class: "space-y-6 text-lg leading-relaxed font-light mb-10",
|
|
2429
2499
|
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2430
|
-
},
|
|
2500
|
+
}, va = {
|
|
2431
2501
|
key: 0,
|
|
2432
2502
|
class: "pt-6 border-t border-white/10"
|
|
2433
|
-
},
|
|
2503
|
+
}, xa = /* @__PURE__ */ Lt({
|
|
2434
2504
|
__name: "LayoutHalf",
|
|
2435
2505
|
props: {
|
|
2436
2506
|
data: {}
|
|
2437
2507
|
},
|
|
2438
2508
|
emits: ["action"],
|
|
2439
2509
|
setup(o) {
|
|
2440
|
-
return (t, e) => (A(),
|
|
2510
|
+
return (t, e) => (A(), Kt(De, {
|
|
2441
2511
|
data: o.data,
|
|
2442
2512
|
customClass: "bg-[var(--lumina-bg)]"
|
|
2443
2513
|
}, {
|
|
2444
|
-
default:
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2514
|
+
default: Ht(() => [
|
|
2515
|
+
O("div", {
|
|
2516
|
+
class: U(["w-full flex flex-col lg:block relative", o.data.sizing === "container" ? "min-h-full" : "min-h-screen"])
|
|
2517
|
+
}, [
|
|
2518
|
+
O("div", {
|
|
2519
|
+
class: U(["relative h-[40vh] lg:h-full lg:w-1/2 overflow-hidden z-0", o.data.sizing === "container" ? "lg:absolute lg:top-0" : "lg:fixed lg:top-0", o.data.imageSide === "right" ? "lg:right-0 order-1" : "lg:left-0 order-1"])
|
|
2448
2520
|
}, [
|
|
2449
|
-
e[1] || (e[1] =
|
|
2450
|
-
|
|
2521
|
+
e[1] || (e[1] = O("div", { class: "absolute inset-0 bg-black/20 z-10" }, null, -1)),
|
|
2522
|
+
O("img", {
|
|
2451
2523
|
src: o.data.image,
|
|
2452
2524
|
class: "w-full h-full object-cover reveal-img scale-110 origin-center",
|
|
2453
2525
|
alt: "Slide Image"
|
|
2454
|
-
}, null, 8,
|
|
2526
|
+
}, null, 8, _a)
|
|
2455
2527
|
], 2),
|
|
2456
|
-
|
|
2457
|
-
class:
|
|
2528
|
+
O("div", {
|
|
2529
|
+
class: U(["relative z-10 w-full lg:w-1/2 min-h-[60vh] flex flex-col justify-center p-8 lg:p-24 order-2 bg-[#050505]", o.data.imageSide === "right" ? "lg:mr-[50%]" : "lg:ml-[50%]", o.data.sizing === "container" ? "lg:min-h-full" : "lg:min-h-screen"])
|
|
2458
2530
|
}, [
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
(A(!0), B(
|
|
2531
|
+
O("div", pa, [
|
|
2532
|
+
O("span", ma, I(o.data.tag), 1),
|
|
2533
|
+
O("h1", ga, I(o.data.title), 1),
|
|
2534
|
+
O("div", ya, [
|
|
2535
|
+
(A(!0), B(Xe, null, je(o.data.paragraphs, (i, r) => (A(), B("p", { key: r }, I(i), 1))), 128))
|
|
2464
2536
|
]),
|
|
2465
|
-
o.data.cta ? (A(), B("div",
|
|
2466
|
-
|
|
2537
|
+
o.data.cta ? (A(), B("div", va, [
|
|
2538
|
+
O("button", {
|
|
2467
2539
|
onClick: e[0] || (e[0] = (i) => t.$emit("action", { type: "cta", label: o.data.cta })),
|
|
2468
2540
|
class: "px-8 py-4 bg-white text-black font-bold rounded-lg hover:bg-gray-200 transition flex items-center gap-3"
|
|
2469
2541
|
}, [
|
|
2470
|
-
|
|
2471
|
-
e[2] || (e[2] =
|
|
2542
|
+
gn(I(o.data.cta) + " ", 1),
|
|
2543
|
+
e[2] || (e[2] = O("i", { class: "fa-solid fa-arrow-right" }, null, -1))
|
|
2472
2544
|
])
|
|
2473
|
-
])) :
|
|
2545
|
+
])) : gt("", !0)
|
|
2474
2546
|
])
|
|
2475
2547
|
], 2)
|
|
2476
|
-
])
|
|
2548
|
+
], 2)
|
|
2477
2549
|
]),
|
|
2478
2550
|
_: 1
|
|
2479
2551
|
}, 8, ["data"]));
|
|
2480
2552
|
}
|
|
2481
|
-
}),
|
|
2482
|
-
class: "text-xl",
|
|
2483
|
-
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2484
|
-
}, ba = { class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 w-full" }, wa = {
|
|
2485
|
-
class: "w-12 h-12 rounded-xl bg-white/5 flex items-center justify-center text-xl mb-6 group-hover:scale-110 transition duration-300",
|
|
2486
|
-
style: { color: "var(--lumina-colors-primary, #3b82f6)" }
|
|
2487
|
-
}, Ta = { class: "text-2xl font-bold mb-3 text-white" }, ka = {
|
|
2488
|
-
class: "leading-relaxed",
|
|
2489
|
-
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2490
|
-
}, Sa = /* @__PURE__ */ Kt({
|
|
2553
|
+
}), ba = { class: "mb-16 reveal-up text-center lg:text-left max-w-4xl" }, wa = /* @__PURE__ */ Lt({
|
|
2491
2554
|
__name: "LayoutFeatures",
|
|
2492
2555
|
props: {
|
|
2493
2556
|
data: {}
|
|
2494
2557
|
},
|
|
2495
2558
|
setup(o) {
|
|
2496
|
-
return (t, e) => (A(),
|
|
2497
|
-
default:
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2559
|
+
return (t, e) => (A(), Kt(De, { data: o.data }, {
|
|
2560
|
+
default: Ht(() => [
|
|
2561
|
+
O("div", {
|
|
2562
|
+
class: U(["w-full flex flex-col justify-center p-8 lg:p-24", o.data.sizing === "container" ? "min-h-full" : "min-h-screen"])
|
|
2563
|
+
}, [
|
|
2564
|
+
O("div", ba, [
|
|
2565
|
+
O("h2", {
|
|
2566
|
+
class: U(["font-heading font-bold mb-4", o.data.sizing === "container" ? "text-3xl" : "text-5xl"])
|
|
2567
|
+
}, I(o.data.title), 3),
|
|
2568
|
+
O("p", {
|
|
2569
|
+
class: U([o.data.sizing === "container" ? "text-sm" : "text-xl"]),
|
|
2570
|
+
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2571
|
+
}, I(o.data.description), 3)
|
|
2502
2572
|
]),
|
|
2503
|
-
|
|
2504
|
-
|
|
2573
|
+
O("div", {
|
|
2574
|
+
class: U(["grid w-full", o.data.sizing === "container" ? "grid-cols-1 gap-3" : "grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"])
|
|
2575
|
+
}, [
|
|
2576
|
+
(A(!0), B(Xe, null, je(o.data.features, (i, r) => (A(), B("div", {
|
|
2505
2577
|
key: r,
|
|
2506
|
-
class: "glass-panel
|
|
2578
|
+
class: U(["glass-panel rounded-3xl hover:bg-white/5 transition duration-500 reveal-card group border-t border-white/5 hover:border-blue-500/50", o.data.sizing === "container" ? "p-6" : "p-8"])
|
|
2507
2579
|
}, [
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2580
|
+
O("div", {
|
|
2581
|
+
class: U(["rounded-xl bg-white/5 flex items-center justify-center text-xl mb-6 group-hover:scale-110 transition duration-300", o.data.sizing === "container" ? "w-10 h-10 mb-4" : "w-12 h-12 mb-6"]),
|
|
2582
|
+
style: { color: "var(--lumina-colors-primary, #3b82f6)" }
|
|
2583
|
+
}, [
|
|
2584
|
+
O("i", {
|
|
2585
|
+
class: U(["fa-solid", i.icon.startsWith("fa-") ? i.icon : `fa-${i.icon}`])
|
|
2511
2586
|
}, null, 2)
|
|
2512
|
-
]),
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2587
|
+
], 2),
|
|
2588
|
+
O("h3", {
|
|
2589
|
+
class: U(["font-bold mb-3 text-white", o.data.sizing === "container" ? "text-lg" : "text-2xl"])
|
|
2590
|
+
}, I(i.title), 3),
|
|
2591
|
+
O("p", {
|
|
2592
|
+
class: U(["leading-relaxed", [o.data.sizing === "container" ? "text-sm" : ""]]),
|
|
2593
|
+
style: { color: "var(--lumina-colors-muted, #9ca3af)" }
|
|
2594
|
+
}, I(i.desc), 3)
|
|
2595
|
+
], 2))), 128))
|
|
2596
|
+
], 2)
|
|
2597
|
+
], 2)
|
|
2518
2598
|
]),
|
|
2519
2599
|
_: 1
|
|
2520
2600
|
}, 8, ["data"]));
|
|
2521
2601
|
}
|
|
2522
|
-
}),
|
|
2602
|
+
}), Ta = { class: "text-center mb-16 reveal-up" }, ka = { class: "text-5xl font-heading font-bold mb-4" }, Sa = {
|
|
2523
2603
|
key: 0,
|
|
2524
2604
|
class: "text-xl opacity-60"
|
|
2525
|
-
},
|
|
2605
|
+
}, Oa = { class: "relative max-w-4xl mx-auto w-full" }, Pa = { class: "space-y-12" }, Ca = { class: "text-sm font-bold tracking-widest uppercase text-blue-400 mb-1" }, Ma = { class: "text-2xl font-bold" }, Da = { class: "text-lg opacity-60 leading-relaxed" }, Aa = /* @__PURE__ */ Lt({
|
|
2526
2606
|
__name: "LayoutTimeline",
|
|
2527
2607
|
props: {
|
|
2528
2608
|
data: {}
|
|
2529
2609
|
},
|
|
2530
2610
|
setup(o) {
|
|
2531
|
-
return (t, e) => (A(),
|
|
2532
|
-
default:
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2611
|
+
return (t, e) => (A(), Kt(De, { data: o.data }, {
|
|
2612
|
+
default: Ht(() => [
|
|
2613
|
+
O("div", {
|
|
2614
|
+
class: U(["w-full flex flex-col justify-center p-8 lg:p-24", o.data.sizing === "container" ? "min-h-full py-12 lg:py-16" : "min-h-screen"])
|
|
2615
|
+
}, [
|
|
2616
|
+
O("div", Ta, [
|
|
2617
|
+
O("h2", ka, I(o.data.title), 1),
|
|
2618
|
+
o.data.subtitle ? (A(), B("p", Sa, I(o.data.subtitle), 1)) : gt("", !0)
|
|
2537
2619
|
]),
|
|
2538
|
-
|
|
2539
|
-
e[1] || (e[1] =
|
|
2540
|
-
|
|
2541
|
-
(A(!0), B(
|
|
2620
|
+
O("div", Oa, [
|
|
2621
|
+
e[1] || (e[1] = O("div", { class: "absolute left-4 md:left-1/2 top-0 bottom-0 w-0.5 bg-white/20 -translate-x-1/2 reveal-zoom origin-top" }, null, -1)),
|
|
2622
|
+
O("div", Pa, [
|
|
2623
|
+
(A(!0), B(Xe, null, je(o.data.timeline, (i, r) => (A(), B("div", {
|
|
2542
2624
|
key: r,
|
|
2543
|
-
class:
|
|
2625
|
+
class: U(["relative flex flex-col md:flex-row gap-8 md:gap-0 items-start md:items-center reveal-card", r % 2 === 0 ? "" : "md:flex-row-reverse"])
|
|
2544
2626
|
}, [
|
|
2545
|
-
|
|
2546
|
-
class:
|
|
2627
|
+
O("div", {
|
|
2628
|
+
class: U(["w-full md:w-1/2 pl-12 md:pl-0 flex flex-col justify-center", r % 2 === 0 ? "md:pr-12 md:text-right md:items-end" : "md:pl-12 md:text-left md:items-start"])
|
|
2547
2629
|
}, [
|
|
2548
|
-
|
|
2549
|
-
|
|
2630
|
+
O("span", Ca, I(i.date), 1),
|
|
2631
|
+
O("h3", Ma, I(i.title || i.t), 1)
|
|
2550
2632
|
], 2),
|
|
2551
|
-
e[0] || (e[0] =
|
|
2552
|
-
|
|
2553
|
-
class:
|
|
2633
|
+
e[0] || (e[0] = O("div", { class: "absolute left-4 md:left-1/2 -translate-x-1/2 w-4 h-4 rounded-full bg-blue-500 shadow-[0_0_20px_rgba(59,130,246,0.5)] border-4 border-[#030303] z-10" }, null, -1)),
|
|
2634
|
+
O("div", {
|
|
2635
|
+
class: U(["w-full md:w-1/2 pl-12 md:pl-0", r % 2 === 0 ? "md:pl-12" : "md:pr-12 md:text-right"])
|
|
2554
2636
|
}, [
|
|
2555
|
-
|
|
2637
|
+
O("p", Da, I(i.description || i.desc), 1)
|
|
2556
2638
|
], 2)
|
|
2557
2639
|
], 2))), 128))
|
|
2558
2640
|
])
|
|
2559
2641
|
])
|
|
2560
|
-
])
|
|
2642
|
+
], 2)
|
|
2561
2643
|
]),
|
|
2562
2644
|
_: 1
|
|
2563
2645
|
}, 8, ["data"]));
|
|
2564
2646
|
}
|
|
2565
|
-
}),
|
|
2647
|
+
}), za = { class: "mb-20 text-center reveal-up" }, Ea = { class: "text-5xl font-heading font-bold mb-4" }, Ra = {
|
|
2566
2648
|
key: 0,
|
|
2567
2649
|
class: "text-xl opacity-60 max-w-2xl mx-auto"
|
|
2568
|
-
},
|
|
2650
|
+
}, Ia = { class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 w-full max-w-7xl mx-auto relative" }, Fa = { class: "w-20 h-20 rounded-2xl bg-[#111] border border-white/10 flex items-center justify-center text-2xl font-bold mb-6 relative z-10 group-hover:scale-110 transition duration-300 shadow-2xl mx-auto lg:mx-0" }, La = { class: "text-transparent bg-clip-text bg-gradient-to-br from-white to-gray-600" }, $a = { class: "text-xl font-bold mb-3" }, Na = { class: "text-sm leading-relaxed opacity-60" }, Ba = /* @__PURE__ */ Lt({
|
|
2569
2651
|
__name: "LayoutSteps",
|
|
2570
2652
|
props: {
|
|
2571
2653
|
data: {}
|
|
2572
2654
|
},
|
|
2573
2655
|
setup(o) {
|
|
2574
|
-
return (t, e) => (A(),
|
|
2575
|
-
default:
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2656
|
+
return (t, e) => (A(), Kt(De, { data: o.data }, {
|
|
2657
|
+
default: Ht(() => [
|
|
2658
|
+
O("div", {
|
|
2659
|
+
class: U(["w-full flex flex-col justify-center p-8 lg:p-12", o.data.sizing === "container" ? "min-h-full" : "min-h-screen"])
|
|
2660
|
+
}, [
|
|
2661
|
+
O("div", za, [
|
|
2662
|
+
O("h2", Ea, I(o.data.title), 1),
|
|
2663
|
+
o.data.subtitle ? (A(), B("p", Ra, I(o.data.subtitle), 1)) : gt("", !0)
|
|
2580
2664
|
]),
|
|
2581
|
-
|
|
2582
|
-
e[0] || (e[0] =
|
|
2583
|
-
(A(!0), B(
|
|
2665
|
+
O("div", Ia, [
|
|
2666
|
+
e[0] || (e[0] = O("div", { class: "hidden lg:block absolute top-[2.5rem] left-0 right-0 h-0.5 bg-gradient-to-r from-transparent via-white/20 to-transparent reveal-zoom origin-left" }, null, -1)),
|
|
2667
|
+
(A(!0), B(Xe, null, je(o.data.steps, (i, r) => (A(), B("div", {
|
|
2584
2668
|
key: r,
|
|
2585
2669
|
class: "relative glass-panel p-8 rounded-2xl border border-white/5 reveal-card group hover:bg-white/5 transition duration-500"
|
|
2586
2670
|
}, [
|
|
2587
|
-
|
|
2588
|
-
|
|
2671
|
+
O("div", Fa, [
|
|
2672
|
+
O("span", La, I(i.step), 1)
|
|
2589
2673
|
]),
|
|
2590
|
-
|
|
2591
|
-
|
|
2674
|
+
O("h3", $a, I(i.title), 1),
|
|
2675
|
+
O("p", Na, I(i.description), 1)
|
|
2592
2676
|
]))), 128))
|
|
2593
2677
|
])
|
|
2594
|
-
])
|
|
2678
|
+
], 2)
|
|
2595
2679
|
]),
|
|
2596
2680
|
_: 1
|
|
2597
2681
|
}, 8, ["data"]));
|
|
2598
2682
|
}
|
|
2599
|
-
}),
|
|
2683
|
+
}), Va = /* @__PURE__ */ Lt({
|
|
2684
|
+
__name: "LayoutAuto",
|
|
2685
|
+
props: {
|
|
2686
|
+
data: {}
|
|
2687
|
+
},
|
|
2688
|
+
emits: ["action"],
|
|
2689
|
+
setup(o, { emit: t }) {
|
|
2690
|
+
const e = o, i = dt(() => {
|
|
2691
|
+
var f, h, _;
|
|
2692
|
+
const r = e.data || {}, n = Array.isArray(r.timeline) && r.timeline.length > 0, s = Array.isArray(r.steps) && r.steps.length > 0, a = Array.isArray(r.features) && r.features.length > 0, l = !!r.image;
|
|
2693
|
+
let u = "layout-statement";
|
|
2694
|
+
return n ? u = "layout-timeline" : s ? u = "layout-steps" : a ? u = "layout-features" : l ? u = "layout-half" : (((f = r.title) == null ? void 0 : f.length) || 0) + (((h = r.subtitle) == null ? void 0 : h.length) || 0) + (((_ = r.paragraphs) == null ? void 0 : _.join("").length) || 0), u;
|
|
2695
|
+
});
|
|
2696
|
+
return (r, n) => (A(), Kt(fr(i.value), {
|
|
2697
|
+
data: o.data,
|
|
2698
|
+
onAction: n[0] || (n[0] = (s) => r.$emit("action", s))
|
|
2699
|
+
}, null, 40, ["data"]));
|
|
2700
|
+
}
|
|
2701
|
+
}), pe = {
|
|
2600
2702
|
default: {
|
|
2601
2703
|
colors: {
|
|
2602
2704
|
primary: "#3b82f6",
|
|
@@ -2672,8 +2774,8 @@ const ea = { class: "absolute inset-0 z-0 pointer-events-none" }, ia = { class:
|
|
|
2672
2774
|
body: "Lato, sans-serif"
|
|
2673
2775
|
}
|
|
2674
2776
|
}
|
|
2675
|
-
},
|
|
2676
|
-
class
|
|
2777
|
+
}, sr = "lumina-theme-styles";
|
|
2778
|
+
class Ua {
|
|
2677
2779
|
/**
|
|
2678
2780
|
* Injects the requested theme into the document head.
|
|
2679
2781
|
* If a string is provided, it looks up the preset.
|
|
@@ -2683,9 +2785,9 @@ class ja {
|
|
|
2683
2785
|
*/
|
|
2684
2786
|
static inject(t) {
|
|
2685
2787
|
let e;
|
|
2686
|
-
typeof t == "string" ? e =
|
|
2687
|
-
let i = document.getElementById(
|
|
2688
|
-
i || (i = document.createElement("style"), i.id =
|
|
2788
|
+
typeof t == "string" ? e = pe[t] || pe.default : (e = { ...pe.default, ...t }, t.colors && (e.colors = { ...pe.default.colors, ...t.colors }), t.fonts && (e.fonts = { ...pe.default.fonts, ...t.fonts }));
|
|
2789
|
+
let i = document.getElementById(sr);
|
|
2790
|
+
i || (i = document.createElement("style"), i.id = sr, document.head.appendChild(i));
|
|
2689
2791
|
const r = this.generateVars(e);
|
|
2690
2792
|
i.innerHTML = `:root { ${r} }`;
|
|
2691
2793
|
}
|
|
@@ -2725,7 +2827,7 @@ class ja {
|
|
|
2725
2827
|
} : null;
|
|
2726
2828
|
}
|
|
2727
2829
|
}
|
|
2728
|
-
class
|
|
2830
|
+
class Xa {
|
|
2729
2831
|
/**
|
|
2730
2832
|
* Creates a new Lumina instance.
|
|
2731
2833
|
*
|
|
@@ -2733,9 +2835,11 @@ class Ka {
|
|
|
2733
2835
|
* @param options - Configuration options (theme, loop, keys, etc.).
|
|
2734
2836
|
*/
|
|
2735
2837
|
constructor(t, e = {}) {
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
this.selector = t, this.store =
|
|
2838
|
+
ze(this, "app");
|
|
2839
|
+
ze(this, "store");
|
|
2840
|
+
this.selector = t, this.store = bn(e), e.theme && Ua.inject(e.theme), this.app = yn(aa), this.app.provide(Ce, this.store), this.app.component("layout-statement", da), this.app.component("layout-half", xa), this.app.component("layout-features", wa), this.app.component("layout-timeline", Aa), this.app.component("layout-steps", Ba), this.app.component("layout-auto", Va), Zt.on("action", (i) => {
|
|
2841
|
+
this.store.recordAction(i);
|
|
2842
|
+
}), this.app.mount(this.selector);
|
|
2739
2843
|
}
|
|
2740
2844
|
/**
|
|
2741
2845
|
* Loads a Deck object into the engine.
|
|
@@ -2744,7 +2848,35 @@ class Ka {
|
|
|
2744
2848
|
* @param deckData - The Deck object containing meta and slides.
|
|
2745
2849
|
*/
|
|
2746
2850
|
load(t) {
|
|
2747
|
-
this.store.loadDeck(t),
|
|
2851
|
+
this.store.loadDeck(t), Zt.emit("ready", t);
|
|
2852
|
+
}
|
|
2853
|
+
/**
|
|
2854
|
+
* Feature: Diff Updates
|
|
2855
|
+
* Updates the existing deck with partial changes.
|
|
2856
|
+
*/
|
|
2857
|
+
patch(t) {
|
|
2858
|
+
this.store.patchDeck(t);
|
|
2859
|
+
}
|
|
2860
|
+
/**
|
|
2861
|
+
* Feature: Feedback Loop
|
|
2862
|
+
* Exports the current session state for LLM consumption.
|
|
2863
|
+
* Includes: Narrative Log, Context Window, and Interest "Heatmap".
|
|
2864
|
+
*/
|
|
2865
|
+
exportState() {
|
|
2866
|
+
const { currentIndex: t, deck: e, actionHistory: i } = this.store.state, r = e == null ? void 0 : e.slides[t], n = i.map((a) => `User ${a.type}ed on ${a.label || a.value}`).join(" -> "), s = i.length > 5 ? "High Engagement" : "Low Engagement";
|
|
2867
|
+
return Object.freeze({
|
|
2868
|
+
status: "active",
|
|
2869
|
+
currentSlide: {
|
|
2870
|
+
index: t,
|
|
2871
|
+
id: (r == null ? void 0 : r.id) || t,
|
|
2872
|
+
type: r == null ? void 0 : r.type,
|
|
2873
|
+
title: (r == null ? void 0 : r.title) || "(No Title)"
|
|
2874
|
+
},
|
|
2875
|
+
narrative: `User is currently on slide ${t + 1}. Session Flow: ${n || "Just started"}.`,
|
|
2876
|
+
engagementLevel: s,
|
|
2877
|
+
history: [...i]
|
|
2878
|
+
// Clone
|
|
2879
|
+
});
|
|
2748
2880
|
}
|
|
2749
2881
|
/**
|
|
2750
2882
|
* Subscribes to an engine event.
|
|
@@ -2754,7 +2886,7 @@ class Ka {
|
|
|
2754
2886
|
* @param handler - Callback function.
|
|
2755
2887
|
*/
|
|
2756
2888
|
on(t, e) {
|
|
2757
|
-
|
|
2889
|
+
Zt.on(t, e);
|
|
2758
2890
|
}
|
|
2759
2891
|
/**
|
|
2760
2892
|
* Unsubscribes from an engine event.
|
|
@@ -2763,14 +2895,29 @@ class Ka {
|
|
|
2763
2895
|
* @param handler - The callback function to remove.
|
|
2764
2896
|
*/
|
|
2765
2897
|
off(t, e) {
|
|
2766
|
-
|
|
2898
|
+
Zt.off(t, e);
|
|
2767
2899
|
}
|
|
2768
2900
|
destroy() {
|
|
2769
|
-
this.app && (this.app.unmount(), this.app = null),
|
|
2901
|
+
this.app && (this.app.unmount(), this.app = null), Zt.clear();
|
|
2902
|
+
}
|
|
2903
|
+
/**
|
|
2904
|
+
* Navigation API
|
|
2905
|
+
*/
|
|
2906
|
+
get currentSlideIndex() {
|
|
2907
|
+
return this.store.state.currentIndex;
|
|
2908
|
+
}
|
|
2909
|
+
goTo(t) {
|
|
2910
|
+
this.store.goto(t);
|
|
2911
|
+
}
|
|
2912
|
+
next() {
|
|
2913
|
+
this.store.next();
|
|
2914
|
+
}
|
|
2915
|
+
prev() {
|
|
2916
|
+
this.store.prev();
|
|
2770
2917
|
}
|
|
2771
2918
|
}
|
|
2772
2919
|
export {
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2920
|
+
Xa as Lumina,
|
|
2921
|
+
aa as LuminaDeck,
|
|
2922
|
+
Zt as bus
|
|
2776
2923
|
};
|