@luna-park/plugin-motion 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/{runtime-BbYbqw-z.js → runtime-DRrnUtwZ.js} +390 -379
- package/dist/runtime.js +1 -1
- package/package.json +5 -4
- package/src/logo.svg +29 -0
|
@@ -81,13 +81,13 @@ var t = typeof window < "u", n = t ? window : null, r = t ? document : null, i =
|
|
|
81
81
|
t && (n.AnimeJS ||= [], n.AnimeJS.push(N));
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/core/helpers.js
|
|
84
|
-
var P = (e) => e.replace(ee, "$1-$2").toLowerCase(), F = (e, t) => e.indexOf(t) === 0, I = Date.now,
|
|
84
|
+
var P = (e) => e.replace(ee, "$1-$2").toLowerCase(), F = (e, t) => e.indexOf(t) === 0, I = Date.now, L = Array.isArray, re = (e) => e && e.constructor === Object, R = (e) => typeof e == "number" && !isNaN(e), z = (e) => typeof e == "string", B = (e) => typeof e == "function", V = (e) => e === void 0, ie = (e) => V(e) || e === null, ae = (e) => t && e instanceof SVGElement, oe = (e) => C.test(e), se = (e) => F(e, "rgb"), ce = (e) => F(e, "hsl"), le = (e) => oe(e) || (se(e) || ce(e)) && (e[e.length - 1] === ")" || !S.test(e)), ue = (e) => !M.defaults.hasOwnProperty(e), de = [
|
|
85
85
|
"opacity",
|
|
86
86
|
"rotate",
|
|
87
87
|
"overflow",
|
|
88
88
|
"color"
|
|
89
|
-
],
|
|
90
|
-
if (
|
|
89
|
+
], fe = (e, t) => {
|
|
90
|
+
if (de.includes(t)) return !1;
|
|
91
91
|
if (e.getAttribute(t) || t in e) {
|
|
92
92
|
if (t === "scale") {
|
|
93
93
|
let t = e.parentNode;
|
|
@@ -95,33 +95,33 @@ var P = (e) => e.replace(ee, "$1-$2").toLowerCase(), F = (e, t) => e.indexOf(t)
|
|
|
95
95
|
}
|
|
96
96
|
return !0;
|
|
97
97
|
}
|
|
98
|
-
},
|
|
98
|
+
}, H = (e) => z(e) ? parseFloat(e) : e, pe = Math.pow, me = Math.sqrt, he = Math.sin, ge = Math.cos, _e = Math.abs, ve = Math.floor, U = Math.asin, ye = Math.PI, be = Math.round, W = (e, t, n) => e < t ? t : e > n ? n : e, G = (e, t) => {
|
|
99
99
|
if (t < 0) return e;
|
|
100
|
-
if (!t) return
|
|
100
|
+
if (!t) return be(e);
|
|
101
101
|
let n = 10 ** t;
|
|
102
|
-
return
|
|
103
|
-
},
|
|
102
|
+
return be(e * n) / n;
|
|
103
|
+
}, xe = (e, t, n) => n === 1 ? t : n === 0 ? e : e + (t - e) * n, Se = (e) => e === Infinity ? m : e === -Infinity ? -m : e, Ce = (e) => e <= 1e-11 ? p : Se(G(e, 11)), K = (e) => L(e) ? [...e] : e, we = (e, t) => {
|
|
104
104
|
let n = { ...e };
|
|
105
105
|
for (let r in t) {
|
|
106
106
|
let i = e[r];
|
|
107
|
-
n[r] =
|
|
107
|
+
n[r] = V(i) ? t[r] : i;
|
|
108
108
|
}
|
|
109
109
|
return n;
|
|
110
|
-
},
|
|
110
|
+
}, q = (e, t, n, r = "_prev", i = "_next") => {
|
|
111
111
|
let a = e._head, o = i;
|
|
112
112
|
for (n && (a = e._tail, o = r); a;) {
|
|
113
113
|
let e = a[o];
|
|
114
114
|
t(a), a = e;
|
|
115
115
|
}
|
|
116
|
-
},
|
|
116
|
+
}, Te = (e, t, n = "_prev", r = "_next") => {
|
|
117
117
|
let i = t[n], a = t[r];
|
|
118
118
|
i ? i[r] = a : e._head = a, a ? a[n] = i : e._tail = i, t[n] = null, t[r] = null;
|
|
119
|
-
},
|
|
119
|
+
}, Ee = (e, t, n, r = "_prev", i = "_next") => {
|
|
120
120
|
let a = e._tail;
|
|
121
121
|
for (; a && n && n(a, t);) a = a[r];
|
|
122
122
|
let o = a ? a[i] : e._head;
|
|
123
123
|
a ? a[i] = t : e._head = t, o ? o[r] = t : e._tail = t, t[r] = a, t[i] = o;
|
|
124
|
-
},
|
|
124
|
+
}, De = (e, t, n) => {
|
|
125
125
|
let r = e.style.transform;
|
|
126
126
|
if (r) {
|
|
127
127
|
let i = e[d], a = 0, o = r.length, s;
|
|
@@ -141,10 +141,10 @@ var P = (e) => e.replace(ee, "$1-$2").toLowerCase(), F = (e, t) => e.indexOf(t)
|
|
|
141
141
|
}
|
|
142
142
|
if (t === "translate3d" && s) return n && (n[t] = s), s;
|
|
143
143
|
let c = i[t];
|
|
144
|
-
if (!
|
|
144
|
+
if (!V(c)) return n && (n[t] = c), c;
|
|
145
145
|
}
|
|
146
146
|
return t === "translate3d" ? "0px, 0px, 0px" : t === "rotate3d" ? "0, 0, 0, 0deg" : F(t, "scale") ? "1" : F(t, "rotate") || F(t, "skew") ? "0deg" : "0px";
|
|
147
|
-
},
|
|
147
|
+
}, Oe = (e) => {
|
|
148
148
|
let t = "";
|
|
149
149
|
for (let n = 0, r = v.length; n < r; n++) {
|
|
150
150
|
let r = v[n], i = e[r];
|
|
@@ -170,12 +170,12 @@ var P = (e) => e.replace(ee, "$1-$2").toLowerCase(), F = (e, t) => e.indexOf(t)
|
|
|
170
170
|
r === "rotateZ" && e.rotate3d !== void 0 && (t += `rotate3d(${e.rotate3d}) `);
|
|
171
171
|
}
|
|
172
172
|
return e.matrix !== void 0 && (t += `matrix(${e.matrix}) `), e.matrix3d !== void 0 && (t += `matrix3d(${e.matrix3d}) `), t;
|
|
173
|
-
},
|
|
174
|
-
function
|
|
173
|
+
}, ke = [];
|
|
174
|
+
function Ae(e, t) {
|
|
175
175
|
if (!e) return null;
|
|
176
|
-
let n =
|
|
176
|
+
let n = ke.length;
|
|
177
177
|
outer: for (let r = 0; r < n; r++) {
|
|
178
|
-
let n =
|
|
178
|
+
let n = ke[r];
|
|
179
179
|
if (n.detect && !n.detect(e)) continue;
|
|
180
180
|
let i = n.targetAdapters;
|
|
181
181
|
for (let n = 0, r = i.length; n < r; n++) {
|
|
@@ -188,7 +188,7 @@ function je(e, t) {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
for (let r = 0; r < n; r++) {
|
|
191
|
-
let n =
|
|
191
|
+
let n = ke[r];
|
|
192
192
|
if (n.detect && !n.detect(e)) continue;
|
|
193
193
|
let i = n.propertyResolvers;
|
|
194
194
|
for (let n = 0, r = i.length; n < r; n++) {
|
|
@@ -200,15 +200,15 @@ function je(e, t) {
|
|
|
200
200
|
}
|
|
201
201
|
//#endregion
|
|
202
202
|
//#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/core/colors.js
|
|
203
|
-
var
|
|
204
|
-
let t = w.exec(e) || T.exec(e), n =
|
|
203
|
+
var je = (e) => {
|
|
204
|
+
let t = w.exec(e) || T.exec(e), n = V(t[4]) ? 1 : +t[4];
|
|
205
205
|
return [
|
|
206
206
|
+t[1],
|
|
207
207
|
+t[2],
|
|
208
208
|
+t[3],
|
|
209
209
|
n
|
|
210
210
|
];
|
|
211
|
-
},
|
|
211
|
+
}, Me = (e) => {
|
|
212
212
|
let t = e.length, n = t === 4 || t === 5;
|
|
213
213
|
return [
|
|
214
214
|
+("0x" + e[1] + e[n ? 1 : 2]),
|
|
@@ -216,12 +216,12 @@ var Me = (e) => {
|
|
|
216
216
|
+("0x" + e[n ? 3 : 5] + e[n ? 3 : 6]),
|
|
217
217
|
t === 5 || t === 9 ? +(("0x" + e[n ? 4 : 7] + e[n ? 4 : 8]) / 255).toFixed(3) : 1
|
|
218
218
|
];
|
|
219
|
-
},
|
|
220
|
-
let t = E.exec(e) || D.exec(e), n = t[1] / 360, r = t[2] / 100, i = t[3] / 100, a =
|
|
219
|
+
}, Ne = (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e), Pe = (e) => {
|
|
220
|
+
let t = E.exec(e) || D.exec(e), n = t[1] / 360, r = t[2] / 100, i = t[3] / 100, a = V(t[4]) ? 1 : +t[4], o, s, c;
|
|
221
221
|
if (r === 0) o = s = c = i;
|
|
222
222
|
else {
|
|
223
223
|
let e = i < .5 ? i * (1 + r) : i + r - i * r, t = 2 * i - e;
|
|
224
|
-
o =
|
|
224
|
+
o = G(Ne(t, e, n + 1 / 3) * 255, 0), s = G(Ne(t, e, n) * 255, 0), c = G(Ne(t, e, n - 1 / 3) * 255, 0);
|
|
225
225
|
}
|
|
226
226
|
return [
|
|
227
227
|
o,
|
|
@@ -229,16 +229,16 @@ var Me = (e) => {
|
|
|
229
229
|
c,
|
|
230
230
|
a
|
|
231
231
|
];
|
|
232
|
-
},
|
|
232
|
+
}, Fe = (e) => se(e) ? je(e) : oe(e) ? Me(e) : ce(e) ? Pe(e) : [
|
|
233
233
|
0,
|
|
234
234
|
0,
|
|
235
235
|
0,
|
|
236
236
|
1
|
|
237
|
-
],
|
|
237
|
+
], J = (e, t) => V(e) ? t : e, Ie = (e, t) => {
|
|
238
238
|
let n = e.match(te), r = t[l] ? t : document.documentElement, i = getComputedStyle(r)?.getPropertyValue(n[1]);
|
|
239
239
|
return (!i || i.trim() === "") && n[2] && (i = n[2].trim()), i || 0;
|
|
240
|
-
},
|
|
241
|
-
if (
|
|
240
|
+
}, Le = (e, t, n, r, i, a) => {
|
|
241
|
+
if (B(e)) {
|
|
242
242
|
if (!i) {
|
|
243
243
|
let i = e(t, n, r, a);
|
|
244
244
|
return isNaN(+i) ? i || 0 : +i;
|
|
@@ -249,19 +249,19 @@ var Me = (e) => {
|
|
|
249
249
|
};
|
|
250
250
|
return i.func = o, o();
|
|
251
251
|
}
|
|
252
|
-
if (
|
|
253
|
-
if (!i) return
|
|
254
|
-
let n = () =>
|
|
252
|
+
if (z(e) && F(e, "var(")) {
|
|
253
|
+
if (!i) return Ie(e, t);
|
|
254
|
+
let n = () => Ie(e, t);
|
|
255
255
|
return i.func = n, n();
|
|
256
256
|
}
|
|
257
257
|
return e;
|
|
258
|
-
},
|
|
258
|
+
}, Re = (e, t) => e[l] ? e[u] && fe(e, t) ? i.ATTRIBUTE : v.includes(t) || _.get(t) ? i.TRANSFORM : F(t, "--") ? i.CSS_VAR : t in e.style ? i.CSS : t in e ? i.OBJECT : i.ATTRIBUTE : i.OBJECT, ze = (e, t, n) => {
|
|
259
259
|
let r = e.style[t];
|
|
260
260
|
r && n && (n[t] = r);
|
|
261
261
|
let i = r || getComputedStyle(e[f] || e).getPropertyValue(t);
|
|
262
262
|
return i === "auto" ? "0" : i;
|
|
263
|
-
},
|
|
264
|
-
let a =
|
|
263
|
+
}, Be = (e, t, n, r) => {
|
|
264
|
+
let a = V(n) ? Re(e, t) : n, o = Ae(e, t);
|
|
265
265
|
if (o) {
|
|
266
266
|
let n = o.get(e);
|
|
267
267
|
return n && r && (r[t] = n), n ?? 0;
|
|
@@ -274,15 +274,15 @@ var Me = (e) => {
|
|
|
274
274
|
let n = e.getAttribute(t);
|
|
275
275
|
return n && r && (r[t] = n), n;
|
|
276
276
|
}
|
|
277
|
-
return a === i.TRANSFORM ?
|
|
278
|
-
},
|
|
277
|
+
return a === i.TRANSFORM ? De(e, t, r) : a === i.CSS_VAR ? ze(e, t, r).trimStart() : ze(e, t, r);
|
|
278
|
+
}, Ve = (e, t, n) => n === "-" ? e - t : n === "+" ? e + t : e * t, He = () => ({
|
|
279
279
|
t: a.NUMBER,
|
|
280
280
|
n: 0,
|
|
281
281
|
u: null,
|
|
282
282
|
o: null,
|
|
283
283
|
d: null,
|
|
284
284
|
s: null
|
|
285
|
-
}),
|
|
285
|
+
}), Y = (e, t) => {
|
|
286
286
|
if (t.t = a.NUMBER, t.n = 0, t.u = null, t.o = null, t.d = null, t.s = null, !e) return t;
|
|
287
287
|
let n = +e;
|
|
288
288
|
if (!isNaN(n)) return t.n = n, t;
|
|
@@ -291,96 +291,96 @@ var Me = (e) => {
|
|
|
291
291
|
let i = !r.includes(" ") && k.exec(r);
|
|
292
292
|
if (i) return t.t = a.UNIT, t.n = +i[1], t.u = i[2], t;
|
|
293
293
|
if (t.o) return t.n = +r, t;
|
|
294
|
-
if (
|
|
294
|
+
if (le(r)) return t.t = a.COLOR, t.d = Fe(r), t;
|
|
295
295
|
{
|
|
296
296
|
let e = r.match(O);
|
|
297
297
|
return t.t = a.COMPLEX, t.d = e ? e.map(Number) : [], t.s = r.split(O) || [], t;
|
|
298
298
|
}
|
|
299
|
-
},
|
|
299
|
+
}, Ue = (e, t) => (t.t = e._valueType, t.n = e._toNumber, t.u = e._unit, t.o = null, t.d = K(e._toNumbers), t.s = K(e._strings), t), X = He(), We = (e, t, n) => {
|
|
300
300
|
let r = e._modifier, i = e._fromNumbers, a = e._toNumbers, o = e._strings, s = o[0];
|
|
301
301
|
for (let c = 0, l = a.length; c < l; c++) {
|
|
302
|
-
let l = r(
|
|
302
|
+
let l = r(G(xe(i[c], a[c], t), n)), u = o[c + 1];
|
|
303
303
|
s += `${u ? l + u : l}`, e._numbers[c] = l;
|
|
304
304
|
}
|
|
305
305
|
return s;
|
|
306
|
-
},
|
|
307
|
-
let l = e.parent, u = e.duration, f = e.completed, m = e.iterationDuration, h = e.iterationCount, g = e._currentIteration, _ = e._loopDelay, v = e._reversed, y = e._alternate, b = e._hasChildren, x = e._delay, S = e._currentTime, C = x + m, w = t - x, T =
|
|
306
|
+
}, Ge = (e, t, n, r, c) => {
|
|
307
|
+
let l = e.parent, u = e.duration, f = e.completed, m = e.iterationDuration, h = e.iterationCount, g = e._currentIteration, _ = e._loopDelay, v = e._reversed, y = e._alternate, b = e._hasChildren, x = e._delay, S = e._currentTime, C = x + m, w = t - x, T = W(S, -x, u), E = W(w, -x, u), D = w - S, O = E > 0, k = E >= u, ee = u <= p, A = c === o.FORCE, te = 0, ne = w, j = 0;
|
|
308
308
|
if (h > 1) {
|
|
309
309
|
let t = m + (k ? 0 : _), n = ~~(E / t);
|
|
310
|
-
e._currentIteration =
|
|
310
|
+
e._currentIteration = W(n, 0, h), k && e._currentIteration--, te = e._currentIteration % 2, ne = E - n * t || 0;
|
|
311
311
|
}
|
|
312
312
|
let N = v ^ (y && te), P = e._ease, F = k ? N ? 0 : u : N ? m - ne : ne;
|
|
313
313
|
P && (F = m * P(F / m) || 0);
|
|
314
314
|
let I = (l ? l.backwards : w < S) ? !N : !!N;
|
|
315
315
|
if (e._currentTime = w, e._iterationTime = F, e.backwards = I, O && !e.began ? (e.began = !0, !n && (!l || !I && l.began) && e.onBegin(e)) : w <= 0 && (e.began = !1), !n && !b && O && e._currentIteration !== g && e.onLoop(e), A || c === o.AUTO && (t >= (l && x > 0 ? 0 : x) && t <= C || t <= x && T > x || t >= C && T !== u) || F >= C && T !== u || F <= x && T > 0 && !k || t <= T && T === u && f || k && !f && ee) {
|
|
316
316
|
if (O && (e.computeDeltaTime(T), n || e.onBeforeUpdate(e)), !b) {
|
|
317
|
-
let t = A || (I ? D * -1 : D) >= M.tickThreshold, o =
|
|
317
|
+
let t = A || (I ? D * -1 : D) >= M.tickThreshold, o = G(e._offset + (l ? l._offset : 0) + x + F, 12), c = e._head, u, f, p, m, h = 0;
|
|
318
318
|
for (; c;) {
|
|
319
319
|
let e = c._composition, n = c._currentTime, l = c._changeDuration, g = c._absoluteStartTime + c._changeDuration, _ = c._nextRep, v = c._prevRep, y = e !== s.none, b = v ? v._absoluteStartTime + v._changeDuration : 0, x = v && v.parent !== c.parent, S = !_ || _._isOverridden ? g : _.parent === c.parent ? g + _._delay : _._absoluteStartTime < _._absoluteUpdateStartTime ? _._absoluteStartTime : _._absoluteUpdateStartTime;
|
|
320
320
|
if ((t || (n !== l || o <= S || v && !x && (!_ || _.parent !== c.parent)) && (n !== 0 || o >= c._absoluteStartTime || x && !c._hasFromValue && !v._isOverridden && o >= b || _ && !_._isOverridden && _.parent === c.parent && _._currentTime !== 0 && F < _._startTime)) && (!v || x || F >= c._startTime) && (!y || !c._isOverridden && (!c._isOverlapped || o <= g) && (!_ || _._isOverridden || o <= S) && (!v || v._isOverridden || (x ? o >= c._absoluteStartTime || !c._hasFromValue && o >= b : o >= b + c._delay)))) {
|
|
321
|
-
let t = c._currentTime =
|
|
322
|
-
if (b) S = C = o(
|
|
323
|
-
else if (g === a.UNIT) C = o(
|
|
321
|
+
let t = c._currentTime = W(F - c._startTime, 0, l), n = c._ease(t / c._updateDuration), o = c._modifier, g = c._valueType, _ = c._tweenType, v = _ === i.OBJECT, b = g === a.NUMBER, x = b && v || n === 0 || n === 1 ? -1 : M.precision, S, C;
|
|
322
|
+
if (b) S = C = o(G(xe(c._fromNumber, c._toNumber, n), x));
|
|
323
|
+
else if (g === a.UNIT) C = o(G(xe(c._fromNumber, c._toNumber, n), x)), S = `${C}${c._unit}`;
|
|
324
324
|
else if (g === a.COLOR) {
|
|
325
325
|
let e = c._numbers, t = c._fromNumbers, i = c._toNumbers, a = 1 - n, s = t[0], l = t[1], u = t[2], d = i[0], f = i[1], p = i[2];
|
|
326
|
-
e[0] = o(Math.sqrt(s * s * a + d * d * n)), e[1] = o(Math.sqrt(l * l * a + f * f * n)), e[2] = o(Math.sqrt(u * u * a + p * p * n)), e[3] = o(
|
|
327
|
-
} else g === a.COMPLEX && (S =
|
|
326
|
+
e[0] = o(Math.sqrt(s * s * a + d * d * n)), e[1] = o(Math.sqrt(l * l * a + f * f * n)), e[2] = o(Math.sqrt(u * u * a + p * p * n)), e[3] = o(xe(t[3], i[3], n)), (!c._setter || r) && (S = `rgba(${G(e[0], 0)},${G(e[1], 0)},${G(e[2], 0)},${e[3]})`);
|
|
327
|
+
} else g === a.COMPLEX && (S = We(c, n, x));
|
|
328
328
|
if (y && (c._number = C), !r && e !== s.blend) {
|
|
329
329
|
let e = c.property;
|
|
330
330
|
u = c.target, c._setter ? c._setter(u, C, c) : v ? u[e] = S : _ === i.ATTRIBUTE ? u.setAttribute(e, S) : (f = u.style, _ === i.TRANSFORM ? (u !== p && (p = u, m = u[d]), m[e] = S, h = 1) : _ === i.CSS ? f[e] = S : _ === i.CSS_VAR && f.setProperty(e, S)), O && (j = 1);
|
|
331
331
|
} else c._value = S;
|
|
332
332
|
} else n && v && !x && F < c._startTime && (c._currentTime = 0);
|
|
333
|
-
h && c._renderTransforms && (f.transform =
|
|
333
|
+
h && c._renderTransforms && (f.transform = Oe(m), h = 0), c = c._next;
|
|
334
334
|
}
|
|
335
335
|
!n && j && e.onRender(e);
|
|
336
336
|
}
|
|
337
337
|
!n && O && e.onUpdate(e);
|
|
338
338
|
}
|
|
339
339
|
return l && ee ? !n && (l.began && !I && w > 0 && !f || I && w <= 1e-11 && f) && (e.onComplete(e), e.completed = !I) : O && k ? h === Infinity ? e._startTime += e.duration : e._currentIteration >= h - 1 && (e.paused = !0, !f && !b && (e.completed = !0, !n && (!l || !I && l.began) && (e.onComplete(e), e._resolve(e)))) : e.completed = !1, j;
|
|
340
|
-
},
|
|
340
|
+
}, Ke = (e, t, n, r, i) => {
|
|
341
341
|
let a = e._currentIteration;
|
|
342
|
-
if (
|
|
342
|
+
if (Ge(e, t, n, r, i), e._hasChildren) {
|
|
343
343
|
let s = e, c = s.backwards, l = r ? t : s._iterationTime, u = I(), d = 0, f = !0;
|
|
344
344
|
if (!r && s._currentIteration !== a) {
|
|
345
345
|
let e = s.iterationDuration;
|
|
346
|
-
|
|
347
|
-
if (!c) !t.completed && !t.backwards && t._currentTime < t.iterationDuration &&
|
|
346
|
+
q(s, (t) => {
|
|
347
|
+
if (!c) !t.completed && !t.backwards && t._currentTime < t.iterationDuration && Ge(t, e, n, 1, o.FORCE), t.began = !1, t.completed = !1;
|
|
348
348
|
else {
|
|
349
349
|
let r = t.duration, i = t._offset + t._delay, a = i + r;
|
|
350
350
|
!n && r <= 1e-11 && (!i || a === e) && t.onComplete(t);
|
|
351
351
|
}
|
|
352
352
|
}), n || s.onLoop(s);
|
|
353
353
|
}
|
|
354
|
-
|
|
355
|
-
let t =
|
|
354
|
+
q(s, (e) => {
|
|
355
|
+
let t = G((l - e._offset) * e._speed, 12);
|
|
356
356
|
if (c && t > e._delay + e.duration) return;
|
|
357
357
|
let a = e._fps < s._fps ? e.requestTick(u) : i;
|
|
358
|
-
d +=
|
|
358
|
+
d += Ge(e, t, n, r, a), !e.completed && f && (f = !1);
|
|
359
359
|
}, c), !n && d && s.onRender(s), (f || c) && s._currentTime >= s.duration && (s.paused = !0, s.completed || (s.completed = !0, n || (s.onComplete(s), s._resolve(s))));
|
|
360
360
|
}
|
|
361
|
-
},
|
|
361
|
+
}, qe = {}, Je = (e, t, n) => {
|
|
362
362
|
if (n === i.TRANSFORM) return _.get(e) || e;
|
|
363
|
-
if (n === i.CSS || n === i.ATTRIBUTE &&
|
|
364
|
-
let t =
|
|
363
|
+
if (n === i.CSS || n === i.ATTRIBUTE && ae(t) && e in t.style) {
|
|
364
|
+
let t = qe[e];
|
|
365
365
|
if (t) return t;
|
|
366
366
|
{
|
|
367
367
|
let t = e && P(e);
|
|
368
|
-
return
|
|
368
|
+
return qe[e] = t, t;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
return e;
|
|
372
|
-
},
|
|
373
|
-
if (e._hasChildren)
|
|
372
|
+
}, Ye = (e, t = !1) => {
|
|
373
|
+
if (e._hasChildren) q(e, (e) => Ye(e, t), !0);
|
|
374
374
|
else {
|
|
375
375
|
let n = e;
|
|
376
|
-
n.pause(),
|
|
377
|
-
let r = e.property, a = e.target, o = e._tweenType, s = e._inlineValue, c =
|
|
376
|
+
n.pause(), q(n, (e) => {
|
|
377
|
+
let r = e.property, a = e.target, o = e._tweenType, s = e._inlineValue, c = ie(s) || s === "";
|
|
378
378
|
if (e._setter) {
|
|
379
379
|
if (!t && !c) {
|
|
380
|
-
if (
|
|
381
|
-
let t =
|
|
380
|
+
if (Y(s, X), X.d) {
|
|
381
|
+
let t = X.d, n = e._numbers;
|
|
382
382
|
for (let e = 0, r = t.length; e < r; e++) n[e] = t[e];
|
|
383
|
-
} else e._number =
|
|
383
|
+
} else e._number = X.n;
|
|
384
384
|
e._setter(e.target, e._number, e);
|
|
385
385
|
}
|
|
386
386
|
} else if (o === i.OBJECT) !t && !c && (a[r] = s);
|
|
@@ -390,7 +390,7 @@ var Me = (e) => {
|
|
|
390
390
|
let t = a.style;
|
|
391
391
|
if (o === i.TRANSFORM) {
|
|
392
392
|
let n = a[d];
|
|
393
|
-
c ? delete n[r] : n[r] = s, e._renderTransforms && (Object.keys(n).length ? t.transform =
|
|
393
|
+
c ? delete n[r] : n[r] = s, e._renderTransforms && (Object.keys(n).length ? t.transform = Oe(n) : t.removeProperty("transform"));
|
|
394
394
|
} else c ? t.removeProperty(P(r)) : t[r] = s;
|
|
395
395
|
}
|
|
396
396
|
}
|
|
@@ -400,7 +400,7 @@ var Me = (e) => {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
return e;
|
|
403
|
-
},
|
|
403
|
+
}, Xe = class {
|
|
404
404
|
constructor(e = 0) {
|
|
405
405
|
this.deltaTime = 0, this._currentTime = e, this._lastTickTime = e, this._startTime = e, this._lastTime = e, this._frameDuration = h / 240, this._fps = 240, this._speed = 1, this._hasChildren = !1, this._head = null, this._tail = null;
|
|
406
406
|
}
|
|
@@ -426,11 +426,11 @@ var Me = (e) => {
|
|
|
426
426
|
let t = e - this._lastTime;
|
|
427
427
|
return this.deltaTime = t, this._lastTime = e, t;
|
|
428
428
|
}
|
|
429
|
-
},
|
|
429
|
+
}, Ze = {
|
|
430
430
|
animation: null,
|
|
431
431
|
update: b
|
|
432
|
-
},
|
|
433
|
-
let t =
|
|
432
|
+
}, Qe = (e) => {
|
|
433
|
+
let t = Ze.animation;
|
|
434
434
|
return t || (t = {
|
|
435
435
|
duration: p,
|
|
436
436
|
computeDeltaTime: b,
|
|
@@ -438,12 +438,12 @@ var Me = (e) => {
|
|
|
438
438
|
_delay: 0,
|
|
439
439
|
_head: null,
|
|
440
440
|
_tail: null
|
|
441
|
-
},
|
|
441
|
+
}, Ze.animation = t, Ze.update = () => {
|
|
442
442
|
e.forEach((e) => {
|
|
443
443
|
for (let t in e) {
|
|
444
444
|
let n = e[t], r = n._head;
|
|
445
445
|
if (r) {
|
|
446
|
-
let e = r._valueType, t = e === a.COMPLEX || e === a.COLOR ?
|
|
446
|
+
let e = r._valueType, t = e === a.COMPLEX || e === a.COLOR ? K(r._fromNumbers) : null, i = r._fromNumber, o = n._tail;
|
|
447
447
|
for (; o && o !== r;) {
|
|
448
448
|
if (t) for (let e = 0, n = o._numbers.length; e < n; e++) t[e] += o._numbers[e];
|
|
449
449
|
else i += o._number;
|
|
@@ -452,9 +452,9 @@ var Me = (e) => {
|
|
|
452
452
|
r._toNumber = i, r._toNumbers = t;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
}),
|
|
455
|
+
}), Ge(t, 1, 1, 0, o.FORCE);
|
|
456
456
|
}), t;
|
|
457
|
-
},
|
|
457
|
+
}, $e = t ? requestAnimationFrame : setImmediate, et = t ? cancelAnimationFrame : clearImmediate, tt = class extends Xe {
|
|
458
458
|
constructor(e) {
|
|
459
459
|
super(e), this.useDefaultMainLoop = !0, this.pauseOnDocumentHidden = !0, this.defaults = ne, this.paused = !0, this.reqId = 0;
|
|
460
460
|
}
|
|
@@ -465,26 +465,26 @@ var Me = (e) => {
|
|
|
465
465
|
let t = this._speed, n = this._fps, r = this._head;
|
|
466
466
|
for (; r;) {
|
|
467
467
|
let i = r._next;
|
|
468
|
-
r.paused ? (
|
|
468
|
+
r.paused ? (Te(this, r), this._hasChildren = !!this._tail, r._running = !1, r.completed && !r._cancelled && r.cancel()) : Ke(r, (e - r._startTime) * r._speed * t, 0, 0, r._fps < n ? r.requestTick(e) : o.AUTO), r = i;
|
|
469
469
|
}
|
|
470
|
-
|
|
470
|
+
Ze.update();
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
wake() {
|
|
474
|
-
return this.useDefaultMainLoop && !this.reqId && (this.requestTick(I()), this.reqId =
|
|
474
|
+
return this.useDefaultMainLoop && !this.reqId && (this.requestTick(I()), this.reqId = $e(nt)), this;
|
|
475
475
|
}
|
|
476
476
|
pause() {
|
|
477
|
-
if (this.reqId) return this.paused = !0,
|
|
477
|
+
if (this.reqId) return this.paused = !0, rt();
|
|
478
478
|
}
|
|
479
479
|
resume() {
|
|
480
|
-
if (this.paused) return this.paused = !1,
|
|
480
|
+
if (this.paused) return this.paused = !1, q(this, (e) => e.resetTime()), this.wake();
|
|
481
481
|
}
|
|
482
482
|
get speed() {
|
|
483
483
|
return this._speed * (M.timeScale === 1 ? 1 : h);
|
|
484
484
|
}
|
|
485
485
|
set speed(e) {
|
|
486
486
|
let t = e * M.timeScale;
|
|
487
|
-
this._speed !== t && (this._speed = t,
|
|
487
|
+
this._speed !== t && (this._speed = t, q(this, (e) => e.speed = e._speed));
|
|
488
488
|
}
|
|
489
489
|
get timeUnit() {
|
|
490
490
|
return M.timeScale === 1 ? "ms" : "s";
|
|
@@ -503,53 +503,53 @@ var Me = (e) => {
|
|
|
503
503
|
set precision(e) {
|
|
504
504
|
M.precision = e;
|
|
505
505
|
}
|
|
506
|
-
},
|
|
507
|
-
let e = new
|
|
506
|
+
}, Z = /*#__PURE__*/ (() => {
|
|
507
|
+
let e = new tt(I());
|
|
508
508
|
return t && (N.engine = e, r.addEventListener("visibilitychange", () => {
|
|
509
509
|
e.pauseOnDocumentHidden && (r.hidden ? e.pause() : e.resume());
|
|
510
510
|
})), e;
|
|
511
|
-
})(),
|
|
512
|
-
|
|
513
|
-
},
|
|
511
|
+
})(), nt = () => {
|
|
512
|
+
Z._head ? (Z.reqId = $e(nt), Z.update()) : Z.reqId = 0;
|
|
513
|
+
}, rt = () => (et(Z.reqId), Z.reqId = 0, Z), it = {
|
|
514
514
|
_rep: /* @__PURE__ */ new WeakMap(),
|
|
515
515
|
_add: /* @__PURE__ */ new Map()
|
|
516
|
-
},
|
|
517
|
-
let r =
|
|
516
|
+
}, at = (e, t, n = "_rep") => {
|
|
517
|
+
let r = it[n], i = r.get(e);
|
|
518
518
|
return i || (i = {}, r.set(e, i)), i[t] ? i[t] : i[t] = {
|
|
519
519
|
_head: null,
|
|
520
520
|
_tail: null
|
|
521
521
|
};
|
|
522
|
-
},
|
|
522
|
+
}, ot = (e, t) => e._isOverridden || e._absoluteStartTime > t._absoluteStartTime, st = (e) => {
|
|
523
523
|
e._isOverlapped = 1, e._isOverridden = 1, e._changeDuration = p, e._currentTime = p;
|
|
524
|
-
},
|
|
524
|
+
}, ct = (e, t) => {
|
|
525
525
|
let n = e._composition;
|
|
526
526
|
if (n === s.replace) {
|
|
527
527
|
let n = e._absoluteStartTime;
|
|
528
|
-
|
|
528
|
+
Ee(t, e, ot, "_prevRep", "_nextRep");
|
|
529
529
|
let r = e._prevRep;
|
|
530
530
|
if (r) {
|
|
531
531
|
let t = r.parent, i = r._absoluteEndTime;
|
|
532
532
|
if (e.parent.id !== t.id && t.iterationCount > 1 && i + (t.duration - t.iterationDuration) > n) {
|
|
533
|
-
|
|
533
|
+
st(r);
|
|
534
534
|
let e = r._prevRep;
|
|
535
|
-
for (; e && e.parent.id === t.id;)
|
|
535
|
+
for (; e && e.parent.id === t.id;) st(e), e = e._prevRep;
|
|
536
536
|
}
|
|
537
537
|
let a = e._absoluteUpdateStartTime;
|
|
538
538
|
if (i > a) {
|
|
539
|
-
let e = r._startTime, t =
|
|
540
|
-
r._changeDuration = t, r._currentTime = t, r._isOverlapped = 1, t < 1e-11 &&
|
|
539
|
+
let e = r._startTime, t = G(a - (i - (e + r._updateDuration)) - e, 12);
|
|
540
|
+
r._changeDuration = t, r._currentTime = t, r._isOverlapped = 1, t < 1e-11 && st(r);
|
|
541
541
|
}
|
|
542
542
|
let o = e.parent.parent;
|
|
543
543
|
if (!o || o !== t.parent) {
|
|
544
544
|
let e = !0;
|
|
545
|
-
if (
|
|
545
|
+
if (q(t, (t) => {
|
|
546
546
|
t._isOverlapped || (e = !1);
|
|
547
547
|
}), e) {
|
|
548
548
|
let e = t.parent;
|
|
549
549
|
if (e) {
|
|
550
550
|
let n = !0;
|
|
551
|
-
|
|
552
|
-
e !== t &&
|
|
551
|
+
q(e, (e) => {
|
|
552
|
+
e !== t && q(e, (e) => {
|
|
553
553
|
e._isOverlapped || (n = !1);
|
|
554
554
|
});
|
|
555
555
|
}), n && e.cancel();
|
|
@@ -558,30 +558,30 @@ var Me = (e) => {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
} else if (n === s.blend) {
|
|
561
|
-
let t =
|
|
562
|
-
r || (r = { ...e }, r._composition = s.replace, r._updateDuration = p, r._startTime = 0, r._numbers =
|
|
561
|
+
let t = at(e.target, e.property, "_add"), n = Qe(it._add), r = t._head;
|
|
562
|
+
r || (r = { ...e }, r._composition = s.replace, r._updateDuration = p, r._startTime = 0, r._numbers = K(e._fromNumbers), r._number = 0, r._next = null, r._prev = null, Ee(t, r), Ee(n, r));
|
|
563
563
|
let i = e._toNumber;
|
|
564
|
-
if (e._fromNumber = r._fromNumber - i, e._toNumber = 0, e._numbers =
|
|
565
|
-
let t =
|
|
564
|
+
if (e._fromNumber = r._fromNumber - i, e._toNumber = 0, e._numbers = K(e._fromNumbers), e._number = 0, r._fromNumber = i, e._toNumbers.length) {
|
|
565
|
+
let t = K(e._toNumbers);
|
|
566
566
|
t.forEach((t, n) => {
|
|
567
567
|
e._fromNumbers[n] = r._fromNumbers[n] - t, e._toNumbers[n] = 0;
|
|
568
568
|
}), r._fromNumbers = t;
|
|
569
569
|
}
|
|
570
|
-
|
|
570
|
+
Ee(t, e, null, "_prevAdd", "_nextAdd");
|
|
571
571
|
}
|
|
572
572
|
return e;
|
|
573
|
-
},
|
|
573
|
+
}, lt = (e) => {
|
|
574
574
|
let t = e._composition;
|
|
575
575
|
if (t !== s.none) {
|
|
576
|
-
let n = e.target, r = e.property, i =
|
|
577
|
-
if (
|
|
578
|
-
let t =
|
|
576
|
+
let n = e.target, r = e.property, i = it._rep.get(n)[r];
|
|
577
|
+
if (Te(i, e, "_prevRep", "_nextRep"), t === s.blend) {
|
|
578
|
+
let t = it._add, i = t.get(n);
|
|
579
579
|
if (!i) return;
|
|
580
|
-
let a = i[r], o =
|
|
581
|
-
|
|
580
|
+
let a = i[r], o = Ze.animation;
|
|
581
|
+
Te(a, e, "_prevAdd", "_nextAdd");
|
|
582
582
|
let s = a._head;
|
|
583
583
|
if (s && s === a._tail) {
|
|
584
|
-
|
|
584
|
+
Te(a, s, "_prevAdd", "_nextAdd"), Te(o, s);
|
|
585
585
|
let e = !0;
|
|
586
586
|
for (let t in i) if (i[t]._head) {
|
|
587
587
|
e = !1;
|
|
@@ -592,15 +592,15 @@ var Me = (e) => {
|
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
return e;
|
|
595
|
-
},
|
|
596
|
-
e._composition !== s.none &&
|
|
597
|
-
}), e._cancelled = 0, e) : e,
|
|
595
|
+
}, ut = (e) => (e.paused = !0, e.began = !1, e.completed = !1, e), dt = (e) => e._cancelled ? (e._hasChildren ? q(e, dt) : q(e, (e) => {
|
|
596
|
+
e._composition !== s.none && ct(e, at(e.target, e.property));
|
|
597
|
+
}), e._cancelled = 0, e) : e, ft = 0, pt = (e, t) => e._priority > t._priority, mt = class extends Xe {
|
|
598
598
|
constructor(e = {}, t = null, n = 0) {
|
|
599
|
-
super(0), ++
|
|
599
|
+
super(0), ++ft;
|
|
600
600
|
let { id: r, delay: i, duration: a, reversed: o, alternate: s, loop: c, loopDelay: l, autoplay: u, frameRate: d, playbackRate: f, priority: p, onComplete: m, onLoop: h, onPause: g, onBegin: _, onBeforeUpdate: v, onUpdate: y } = e;
|
|
601
601
|
j.current && j.current.register(this);
|
|
602
|
-
let x = t ? 0 :
|
|
603
|
-
t ? O = n : (
|
|
602
|
+
let x = t ? 0 : Z._lastTickTime, S = t ? t.defaults : M.defaults, C = B(i) || V(i) ? S.delay : +i, w = B(a) || V(a) ? Infinity : +a, T = J(c, S.loop), E = J(l, S.loopDelay), D = T === !0 || T === Infinity || T < 0 ? Infinity : T + 1, O = 0;
|
|
603
|
+
t ? O = n : (Z.reqId || Z.requestTick(I()), O = (Z._lastTickTime - Z._startTime) * M.timeScale), this.id = V(r) ? ft : r, this.parent = t, this.duration = Se((w + E) * D - E) || 1e-11, this.backwards = !1, this.paused = !0, this.began = !1, this.completed = !1, this.onBegin = _ || S.onBegin, this.onBeforeUpdate = v || S.onBeforeUpdate, this.onUpdate = y || S.onUpdate, this.onLoop = h || S.onLoop, this.onPause = g || S.onPause, this.onComplete = m || S.onComplete, this.iterationDuration = w, this.iterationCount = D, this._autoplay = !t && J(u, S.autoplay), this._offset = O, this._delay = C, this._loopDelay = E, this._iterationTime = 0, this._currentIteration = 0, this._resolve = b, this._running = !1, this._reversed = +J(o, S.reversed), this._reverse = this._reversed, this._cancelled = 0, this._alternate = J(s, S.alternate), this._prev = null, this._next = null, this._lastTickTime = x, this._startTime = x, this._lastTime = x, this._fps = J(d, S.frameRate), this._speed = J(f, S.playbackRate), this._priority = +J(p, 1);
|
|
604
604
|
}
|
|
605
605
|
get cancelled() {
|
|
606
606
|
return !!this._cancelled;
|
|
@@ -609,26 +609,26 @@ var Me = (e) => {
|
|
|
609
609
|
e ? this.cancel() : this.reset(!0).play();
|
|
610
610
|
}
|
|
611
611
|
get currentTime() {
|
|
612
|
-
return
|
|
612
|
+
return W(G(this._currentTime, M.precision), -this._delay, this.duration);
|
|
613
613
|
}
|
|
614
614
|
set currentTime(e) {
|
|
615
615
|
let t = this.paused;
|
|
616
616
|
this.pause().seek(+e), t || this.resume();
|
|
617
617
|
}
|
|
618
618
|
get iterationCurrentTime() {
|
|
619
|
-
return
|
|
619
|
+
return W(G(this._iterationTime, M.precision), 0, this.iterationDuration);
|
|
620
620
|
}
|
|
621
621
|
set iterationCurrentTime(e) {
|
|
622
622
|
this.currentTime = this.iterationDuration * this._currentIteration + e;
|
|
623
623
|
}
|
|
624
624
|
get progress() {
|
|
625
|
-
return
|
|
625
|
+
return W(G(this._currentTime / this.duration, 10), 0, 1);
|
|
626
626
|
}
|
|
627
627
|
set progress(e) {
|
|
628
628
|
this.currentTime = this.duration * e;
|
|
629
629
|
}
|
|
630
630
|
get iterationProgress() {
|
|
631
|
-
return
|
|
631
|
+
return W(G(this._iterationTime / this.iterationDuration, 10), 0, 1);
|
|
632
632
|
}
|
|
633
633
|
set iterationProgress(e) {
|
|
634
634
|
let t = this.iterationDuration;
|
|
@@ -638,7 +638,7 @@ var Me = (e) => {
|
|
|
638
638
|
return this._currentIteration;
|
|
639
639
|
}
|
|
640
640
|
set currentIteration(e) {
|
|
641
|
-
this.currentTime = this.iterationDuration *
|
|
641
|
+
this.currentTime = this.iterationDuration * W(+e, 0, this.iterationCount - 1);
|
|
642
642
|
}
|
|
643
643
|
get reversed() {
|
|
644
644
|
return !!this._reversed;
|
|
@@ -653,33 +653,33 @@ var Me = (e) => {
|
|
|
653
653
|
super.speed = e, this.resetTime();
|
|
654
654
|
}
|
|
655
655
|
reset(e = !1) {
|
|
656
|
-
return
|
|
656
|
+
return dt(this), this._reversed && !this._reverse && (this.reversed = !1), this._iterationTime = this.iterationDuration, Ke(this, 0, 1, ~~e, o.FORCE), ut(this), this._hasChildren && q(this, ut), this;
|
|
657
657
|
}
|
|
658
658
|
init(e = !1) {
|
|
659
|
-
this.fps = this._fps, this.speed = this._speed, !e && this._hasChildren &&
|
|
659
|
+
this.fps = this._fps, this.speed = this._speed, !e && this._hasChildren && Ke(this, this.duration, 1, ~~e, o.FORCE), this.reset(e);
|
|
660
660
|
let t = this._autoplay;
|
|
661
|
-
return t === !0 ? this.resume() : t && !
|
|
661
|
+
return t === !0 ? this.resume() : t && !V(t.linked) && t.link(this), this;
|
|
662
662
|
}
|
|
663
663
|
resetTime() {
|
|
664
|
-
let e = 1 / (this._speed *
|
|
664
|
+
let e = 1 / (this._speed * Z._speed);
|
|
665
665
|
return this._startTime = I() - (this._currentTime + this._delay) * e, this;
|
|
666
666
|
}
|
|
667
667
|
pause() {
|
|
668
668
|
return this.paused ? this : (this.paused = !0, this.onPause(this), this);
|
|
669
669
|
}
|
|
670
670
|
resume() {
|
|
671
|
-
return this.paused ? (this.paused = !1, this.duration <= 1e-11 && !this._hasChildren ?
|
|
671
|
+
return this.paused ? (this.paused = !1, this.duration <= 1e-11 && !this._hasChildren ? Ke(this, p, 0, 0, o.FORCE) : (this._running ||= (Ee(Z, this, pt), Z._hasChildren = !0, !0), this.resetTime(), this._startTime -= 12, Z.wake()), this) : this;
|
|
672
672
|
}
|
|
673
673
|
restart() {
|
|
674
674
|
return this.reset().resume();
|
|
675
675
|
}
|
|
676
676
|
seek(e, t = 0, n = 0) {
|
|
677
|
-
|
|
677
|
+
dt(this), this.completed = !1;
|
|
678
678
|
let r = this.paused;
|
|
679
|
-
return this.paused = !0,
|
|
679
|
+
return this.paused = !0, Ke(this, e + this._delay, ~~t, ~~n, o.AUTO), r ? this : this.resume();
|
|
680
680
|
}
|
|
681
681
|
alternate() {
|
|
682
|
-
let e = this._reversed, t = this.iterationCount, n = this.iterationDuration, r = t === Infinity ?
|
|
682
|
+
let e = this._reversed, t = this.iterationCount, n = this.iterationDuration, r = t === Infinity ? ve(m / n) : t;
|
|
683
683
|
return this._reversed = +(this._alternate && !(r % 2) ? e : !e), t === Infinity ? this.iterationProgress = this._reversed ? 1 - this.iterationProgress : this.iterationProgress : this.seek(n * r - this._currentTime), this.resetTime(), this;
|
|
684
684
|
}
|
|
685
685
|
play() {
|
|
@@ -689,16 +689,16 @@ var Me = (e) => {
|
|
|
689
689
|
return this._reversed || this.alternate(), this.resume();
|
|
690
690
|
}
|
|
691
691
|
cancel() {
|
|
692
|
-
return this._hasChildren ?
|
|
692
|
+
return this._hasChildren ? q(this, (e) => e.cancel(), !0) : q(this, lt), this._cancelled = 1, this.pause();
|
|
693
693
|
}
|
|
694
694
|
stretch(e) {
|
|
695
|
-
let t = this.duration, n =
|
|
695
|
+
let t = this.duration, n = Ce(e);
|
|
696
696
|
if (t === n) return this;
|
|
697
697
|
let r = e / t, i = e <= p;
|
|
698
|
-
return this.duration = i ? p : n, this.iterationDuration = i ? p :
|
|
698
|
+
return this.duration = i ? p : n, this.iterationDuration = i ? p : Ce(this.iterationDuration * r), this._offset *= r, this._delay *= r, this._loopDelay *= r, this;
|
|
699
699
|
}
|
|
700
700
|
revert() {
|
|
701
|
-
|
|
701
|
+
Ke(this, 0, 1, 0, o.AUTO);
|
|
702
702
|
let e = this._autoplay;
|
|
703
703
|
return e && e.linked && e.linked === this && e.revert(), this.cancel();
|
|
704
704
|
}
|
|
@@ -714,22 +714,22 @@ var Me = (e) => {
|
|
|
714
714
|
};
|
|
715
715
|
//#endregion
|
|
716
716
|
//#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/core/targets.js
|
|
717
|
-
function
|
|
718
|
-
let t =
|
|
717
|
+
function ht(e) {
|
|
718
|
+
let t = z(e) ? j.root.querySelectorAll(e) : e;
|
|
719
719
|
if (t instanceof NodeList || t instanceof HTMLCollection) return t;
|
|
720
720
|
}
|
|
721
|
-
function
|
|
722
|
-
if (
|
|
723
|
-
if (!t) return
|
|
724
|
-
if (
|
|
721
|
+
function gt(e) {
|
|
722
|
+
if (ie(e)) return [];
|
|
723
|
+
if (!t) return L(e) && e.flat(Infinity) || [e];
|
|
724
|
+
if (L(e)) {
|
|
725
725
|
let t = e.flat(Infinity), n = [];
|
|
726
726
|
for (let e = 0, r = t.length; e < r; e++) {
|
|
727
727
|
let r = t[e];
|
|
728
|
-
if (!
|
|
729
|
-
let e =
|
|
728
|
+
if (!ie(r)) {
|
|
729
|
+
let e = ht(r);
|
|
730
730
|
if (e) for (let t = 0, r = e.length; t < r; t++) {
|
|
731
731
|
let r = e[t];
|
|
732
|
-
if (!
|
|
732
|
+
if (!ie(r)) {
|
|
733
733
|
let e = !1;
|
|
734
734
|
for (let t = 0, i = n.length; t < i; t++) if (n[t] === r) {
|
|
735
735
|
e = !0;
|
|
@@ -750,16 +750,16 @@ function _t(e) {
|
|
|
750
750
|
}
|
|
751
751
|
return n;
|
|
752
752
|
}
|
|
753
|
-
let n =
|
|
753
|
+
let n = ht(e);
|
|
754
754
|
return n ? Array.from(n) : [e];
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
let t =
|
|
756
|
+
function _t(e) {
|
|
757
|
+
let t = gt(e), n = t.length;
|
|
758
758
|
for (let e = 0; e < n; e++) {
|
|
759
759
|
let n = t[e];
|
|
760
760
|
if (!n[c]) {
|
|
761
761
|
n[c] = !0;
|
|
762
|
-
let e =
|
|
762
|
+
let e = ae(n);
|
|
763
763
|
(n.nodeType || e) && (n[l] = !0, n[u] = e, n[d] = {});
|
|
764
764
|
}
|
|
765
765
|
}
|
|
@@ -767,18 +767,18 @@ function vt(e) {
|
|
|
767
767
|
}
|
|
768
768
|
//#endregion
|
|
769
769
|
//#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/core/units.js
|
|
770
|
-
var
|
|
770
|
+
var vt = {
|
|
771
771
|
deg: 1,
|
|
772
|
-
rad: 180 /
|
|
772
|
+
rad: 180 / ye,
|
|
773
773
|
turn: 360
|
|
774
|
-
},
|
|
774
|
+
}, yt = {}, bt = (e, t, n, i = !1) => {
|
|
775
775
|
let o = t.u, s = t.n;
|
|
776
776
|
if (t.t === a.UNIT && o === n) return t;
|
|
777
|
-
let c = s + o + n, l =
|
|
778
|
-
if (!
|
|
777
|
+
let c = s + o + n, l = yt[c];
|
|
778
|
+
if (!V(l) && !i) t.n = l;
|
|
779
779
|
else {
|
|
780
780
|
let i;
|
|
781
|
-
if (o in
|
|
781
|
+
if (o in vt) i = s * vt[o] / vt[n];
|
|
782
782
|
else {
|
|
783
783
|
let t = e.cloneNode(), a = e.parentNode, c = a && a !== r ? a : r.body;
|
|
784
784
|
c.appendChild(t);
|
|
@@ -789,37 +789,37 @@ var yt = {
|
|
|
789
789
|
let d = u / (t.offsetWidth || 100);
|
|
790
790
|
c.removeChild(t), i = d * s;
|
|
791
791
|
}
|
|
792
|
-
t.n = i,
|
|
792
|
+
t.n = i, yt[c] = i;
|
|
793
793
|
}
|
|
794
794
|
return t.t, a.UNIT, t.u = n, t;
|
|
795
|
-
},
|
|
795
|
+
}, xt = (e) => e, St = (e = 1.68) => (t) => pe(t, +e), Ct = {
|
|
796
796
|
in: (e) => (t) => e(t),
|
|
797
797
|
out: (e) => (t) => 1 - e(1 - t),
|
|
798
798
|
inOut: (e) => (t) => t < .5 ? e(t * 2) / 2 : 1 - e(t * -2 + 2) / 2,
|
|
799
799
|
outIn: (e) => (t) => t < .5 ? (1 - e(1 - t * 2)) / 2 : (e(t * 2 - 1) + 1) / 2
|
|
800
|
-
}, wt =
|
|
800
|
+
}, wt = ye / 2, Tt = ye * 2, Et = {
|
|
801
801
|
"": St,
|
|
802
802
|
Quad: St(2),
|
|
803
803
|
Cubic: St(3),
|
|
804
804
|
Quart: St(4),
|
|
805
805
|
Quint: St(5),
|
|
806
|
-
Sine: (e) => 1 -
|
|
807
|
-
Circ: (e) => 1 -
|
|
808
|
-
Expo: (e) => e ?
|
|
806
|
+
Sine: (e) => 1 - ge(e * wt),
|
|
807
|
+
Circ: (e) => 1 - me(1 - e * e),
|
|
808
|
+
Expo: (e) => e ? pe(2, 10 * e - 10) : 0,
|
|
809
809
|
Bounce: (e) => {
|
|
810
810
|
let t, n = 4;
|
|
811
|
-
for (; e < ((t =
|
|
812
|
-
return 1 /
|
|
811
|
+
for (; e < ((t = pe(2, --n)) - 1) / 11;);
|
|
812
|
+
return 1 / pe(4, 3 - n) - 7.5625 * pe((t * 3 - 2) / 22 - e, 2);
|
|
813
813
|
},
|
|
814
814
|
Back: (e = 1.7) => (t) => (+e + 1) * t * t * t - +e * t * t,
|
|
815
815
|
Elastic: (e = 1, t = .3) => {
|
|
816
|
-
let n =
|
|
817
|
-
return (e) => e === 0 || e === 1 ? e : -n *
|
|
816
|
+
let n = W(+e, 1, 10), r = W(+t, p, 2), i = r / Tt * U(1 / n), a = Tt / r;
|
|
817
|
+
return (e) => e === 0 || e === 1 ? e : -n * pe(2, -10 * (1 - e)) * he((1 - e - i) * a);
|
|
818
818
|
}
|
|
819
819
|
}, Dt = /*#__PURE__ */ (() => {
|
|
820
820
|
let e = {
|
|
821
|
-
linear:
|
|
822
|
-
none:
|
|
821
|
+
linear: xt,
|
|
822
|
+
none: xt
|
|
823
823
|
};
|
|
824
824
|
for (let t in Ct) for (let n in Et) {
|
|
825
825
|
let r = Et[n], i = Ct[t];
|
|
@@ -827,17 +827,17 @@ var yt = {
|
|
|
827
827
|
}
|
|
828
828
|
return e;
|
|
829
829
|
})(), Ot = {
|
|
830
|
-
linear:
|
|
831
|
-
none:
|
|
830
|
+
linear: xt,
|
|
831
|
+
none: xt
|
|
832
832
|
}, kt = (e) => {
|
|
833
833
|
if (Ot[e]) return Ot[e];
|
|
834
834
|
if (e.indexOf("(") <= -1) {
|
|
835
835
|
let t = Ct[e] || e.includes("Back") || e.includes("Elastic") ? Dt[e]() : Dt[e];
|
|
836
|
-
return t ? Ot[e] = t :
|
|
836
|
+
return t ? Ot[e] = t : xt;
|
|
837
837
|
}
|
|
838
838
|
{
|
|
839
839
|
let t = e.slice(0, -1).split("("), n = Dt[t[0]];
|
|
840
|
-
return n ? Ot[e] = n(...t[1].split(",")) :
|
|
840
|
+
return n ? Ot[e] = n(...t[1].split(",")) : xt;
|
|
841
841
|
}
|
|
842
842
|
}, At = [
|
|
843
843
|
"steps(",
|
|
@@ -845,33 +845,33 @@ var yt = {
|
|
|
845
845
|
"linear(",
|
|
846
846
|
"cubicBezier("
|
|
847
847
|
], jt = (e) => {
|
|
848
|
-
if (
|
|
849
|
-
for (let t = 0, n = At.length; t < n; t++) if (F(e, At[t])) return console.warn(`String syntax for \`ease: "${e}"\` has been removed from the core and replaced by importing and passing the easing function directly: \`ease: ${e}\``),
|
|
848
|
+
if (z(e)) {
|
|
849
|
+
for (let t = 0, n = At.length; t < n; t++) if (F(e, At[t])) return console.warn(`String syntax for \`ease: "${e}"\` has been removed from the core and replaced by importing and passing the easing function directly: \`ease: ${e}\``), xt;
|
|
850
850
|
}
|
|
851
|
-
return
|
|
852
|
-
}, Q =
|
|
851
|
+
return B(e) ? e : z(e) ? kt(e) : xt;
|
|
852
|
+
}, Q = He(), $ = He(), Mt = {}, Nt = { func: null }, Pt = { func: null }, Ft = [null], It = [null, null], Lt = { to: null }, Rt = 0, zt = 0, Bt, Vt, Ht = (e, t) => {
|
|
853
853
|
let n = {};
|
|
854
|
-
if (
|
|
855
|
-
let t = [].concat(...e.map((e) => Object.keys(e))).filter(
|
|
854
|
+
if (L(e)) {
|
|
855
|
+
let t = [].concat(...e.map((e) => Object.keys(e))).filter(ue);
|
|
856
856
|
for (let r = 0, i = t.length; r < i; r++) {
|
|
857
857
|
let i = t[r];
|
|
858
858
|
n[i] = e.map((e) => {
|
|
859
859
|
let t = {};
|
|
860
860
|
for (let n in e) {
|
|
861
861
|
let r = e[n];
|
|
862
|
-
|
|
862
|
+
ue(n) ? n === i && (t.to = r) : t[n] = r;
|
|
863
863
|
}
|
|
864
864
|
return t;
|
|
865
865
|
});
|
|
866
866
|
}
|
|
867
867
|
} else {
|
|
868
|
-
let r =
|
|
868
|
+
let r = J(t.duration, M.defaults.duration);
|
|
869
869
|
Object.keys(e).map((t) => ({
|
|
870
870
|
o: parseFloat(t) / 100,
|
|
871
871
|
p: e[t]
|
|
872
872
|
})).sort((e, t) => e.o - t.o).forEach((e) => {
|
|
873
873
|
let t = e.o, i = e.p;
|
|
874
|
-
for (let e in i) if (
|
|
874
|
+
for (let e in i) if (ue(e)) {
|
|
875
875
|
let a = n[e];
|
|
876
876
|
a ||= n[e] = [];
|
|
877
877
|
let o = t * r, s = a.length, c = a[s - 1], l = { to: i[e] }, u = 0;
|
|
@@ -890,18 +890,18 @@ var yt = {
|
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
892
|
return n;
|
|
893
|
-
}, Ut = class extends
|
|
893
|
+
}, Ut = class extends mt {
|
|
894
894
|
constructor(e, t, n, r, o = !1, c = 0, l) {
|
|
895
895
|
super(t, n, r), this._head, this._tail, ++zt;
|
|
896
|
-
let u =
|
|
896
|
+
let u = _t(e), d = u.length, f = t.keyframes, m = f ? we(Ht(f, t), t) : t, { id: h, delay: _, duration: v, ease: y, playbackEase: b, modifier: x, composition: S, onRender: C } = m, w = n ? n.defaults : M.defaults, T = J(y, w.ease), E = J(b, w.playbackEase), D = E ? jt(E) : null, O = !V(T.ease), k = O ? T.ease : J(y, D ? "linear" : w.ease), ee = O ? T.settlingDuration : J(v, w.duration), A = J(_, w.delay), te = x || w.modifier, ne = V(S) && d >= 1e3 ? s.none : V(S) ? w.composition : S, j = this._offset + (n ? n._offset : 0);
|
|
897
897
|
O && (T.parent = this);
|
|
898
898
|
let N = NaN, P = NaN, F = 0, I = 0;
|
|
899
899
|
for (let e = 0; e < d; e++) {
|
|
900
900
|
let t = u[e], r = c || e, d = l || u, f = NaN, p = NaN;
|
|
901
|
-
for (let e in m) if (
|
|
902
|
-
let c =
|
|
901
|
+
for (let e in m) if (ue(e)) {
|
|
902
|
+
let c = Re(t, e), l = Ae(t, e), u = Je(e, t, c), h = m[e], _ = L(h);
|
|
903
903
|
if (o && !_ && (It[0] = h, It[1] = h, h = It), _) {
|
|
904
|
-
let e = h.length, t = !
|
|
904
|
+
let e = h.length, t = !re(h[0]);
|
|
905
905
|
e === 2 && t ? (Lt.to = h, Ft[0] = Lt, Bt = Ft) : e > 2 && t ? (Bt = [], h.forEach((e, t) => {
|
|
906
906
|
t ? t === 1 ? (It[1] = e, Bt.push(It)) : Bt.push(e) : It[0] = e;
|
|
907
907
|
})) : Bt = h;
|
|
@@ -909,27 +909,27 @@ var yt = {
|
|
|
909
909
|
let v = null, y = null, b = NaN, x = 0, S = 0;
|
|
910
910
|
for (let e = Bt.length; S < e; S++) {
|
|
911
911
|
let i = Bt[S];
|
|
912
|
-
|
|
913
|
-
let o =
|
|
914
|
-
!v && f !== s.none && (v =
|
|
915
|
-
let p = v ? v._tail : null, m = n && p && p.parent.parent === n ? p : y, h =
|
|
916
|
-
|
|
917
|
-
let C =
|
|
918
|
-
!I && (
|
|
919
|
-
let
|
|
912
|
+
re(i) ? Vt = i : (Lt.to = i, Vt = Lt), Nt.func = null, Pt.func = null;
|
|
913
|
+
let o = Le(J(Vt.composition, ne), t, r, d, null, null), f = R(o) ? o : s[o];
|
|
914
|
+
!v && f !== s.none && (v = at(t, u));
|
|
915
|
+
let p = v ? v._tail : null, m = n && p && p.parent.parent === n ? p : y, h = Le(Vt.to, t, r, d, Nt, m), _;
|
|
916
|
+
re(h) && !V(h.to) ? (Vt = h, _ = h.to) : _ = h;
|
|
917
|
+
let C = Le(Vt.from, t, r, d, Pt, m), w = Vt.ease || k, T = Le(w, t, r, d, null, m), E = B(T) || z(T) ? T : w, D = !V(E) && !V(E.ease), O = D ? E.ease : E, M = D ? E.settlingDuration : Le(J(Vt.duration, e > 1 ? Le(ee, t, r, d, null, m) / e : ee), t, r, d, null, m), N = Le(J(Vt.delay, S ? 0 : A), t, r, d, null, m), P = Vt.modifier || te, ae = !V(C), oe = !V(_), se = L(_), ce = se || ae && oe, le = y ? x : 0, ue = y ? x + N : N, de = G(j + ue, 12), fe = G(j + le, 12);
|
|
918
|
+
!I && (ae || se) && (I = 1);
|
|
919
|
+
let H = y;
|
|
920
920
|
if (f !== s.none) {
|
|
921
921
|
let e = v._head;
|
|
922
|
-
for (; e && e._absoluteStartTime <=
|
|
922
|
+
for (; e && e._absoluteStartTime <= de;) if (e._isOverridden || (H = e), e = e._nextRep, e && e._absoluteStartTime >= de) for (; e;) st(e), e = e._nextRep;
|
|
923
923
|
}
|
|
924
|
-
if (
|
|
925
|
-
|
|
926
|
-
let e =
|
|
927
|
-
Q.t === a.NUMBER && (
|
|
928
|
-
} else
|
|
929
|
-
if (Q.o && (Q.n =
|
|
924
|
+
if (ce) {
|
|
925
|
+
Y(se ? Le(_[0], t, r, d, Pt, m) : C, Q), Y(se ? Le(_[1], t, r, d, Nt, m) : _, $);
|
|
926
|
+
let e = Be(t, u, c, Mt);
|
|
927
|
+
Q.t === a.NUMBER && (H ? H._valueType === a.UNIT && (Q.t = a.UNIT, Q.u = H._unit) : (Y(e, X), X.t === a.UNIT && (Q.t = a.UNIT, Q.u = X.u)));
|
|
928
|
+
} else oe ? Y(_, $) : y ? Ue(y, $) : Y(n && H && H.parent.parent === n ? H._value : Be(t, u, c, Mt), $), ae ? Y(C, Q) : y ? Ue(y, Q) : Y(n && H && H.parent.parent === n ? H._value : Be(t, u, c, Mt), Q);
|
|
929
|
+
if (Q.o && (Q.n = Ve(H ? H._toNumber : Y(Be(t, u, c, Mt), X).n, Q.n, Q.o)), $.o && ($.n = Ve(Q.n, $.n, $.o)), Q.t !== $.t) {
|
|
930
930
|
if (Q.t === a.COMPLEX || $.t === a.COMPLEX) {
|
|
931
931
|
let e = Q.t === a.COMPLEX ? Q : $, t = Q.t === a.COMPLEX ? $ : Q;
|
|
932
|
-
t.t = a.COMPLEX, t.s =
|
|
932
|
+
t.t = a.COMPLEX, t.s = K(e.s), t.d = e.d.map(() => t.n);
|
|
933
933
|
} else if (Q.t === a.UNIT || $.t === a.UNIT) {
|
|
934
934
|
let e = Q.t === a.UNIT ? Q : $, t = Q.t === a.UNIT ? $ : Q;
|
|
935
935
|
t.t = a.UNIT, t.u = e.u;
|
|
@@ -940,17 +940,17 @@ var yt = {
|
|
|
940
940
|
}
|
|
941
941
|
if (Q.u !== $.u) {
|
|
942
942
|
let e = $.u ? Q : $;
|
|
943
|
-
e =
|
|
943
|
+
e = bt(t, e, $.u ? $.u : Q.u, !1);
|
|
944
944
|
}
|
|
945
945
|
if ($.d && Q.d && $.d.length !== Q.d.length) {
|
|
946
946
|
let e = Q.d.length > $.d.length ? Q : $, t = e === Q ? $ : Q;
|
|
947
|
-
t.d = e.d.map((e, n) =>
|
|
947
|
+
t.d = e.d.map((e, n) => V(t.d[n]) ? 0 : t.d[n]), t.s = K(e.s);
|
|
948
948
|
}
|
|
949
|
-
let
|
|
950
|
-
|
|
951
|
-
let
|
|
952
|
-
x =
|
|
953
|
-
let
|
|
949
|
+
let pe = G(+M || 1e-11, 12), me = Mt[u];
|
|
950
|
+
ie(me) || (Mt[u] = null);
|
|
951
|
+
let he = l ? l.set : null;
|
|
952
|
+
x = G(ue + pe, 12);
|
|
953
|
+
let ge = Q.d, _e = $.d, ve = $.s, U = {
|
|
954
954
|
parent: this,
|
|
955
955
|
id: Rt++,
|
|
956
956
|
property: u,
|
|
@@ -959,32 +959,32 @@ var yt = {
|
|
|
959
959
|
_toFunc: Nt.func,
|
|
960
960
|
_fromFunc: Pt.func,
|
|
961
961
|
_ease: jt(O),
|
|
962
|
-
_fromNumbers:
|
|
963
|
-
_toNumbers:
|
|
964
|
-
_strings:
|
|
962
|
+
_fromNumbers: ge ? K(ge) : g,
|
|
963
|
+
_toNumbers: _e ? K(_e) : g,
|
|
964
|
+
_strings: ve ? K(ve) : g,
|
|
965
965
|
_fromNumber: Q.n,
|
|
966
966
|
_toNumber: $.n,
|
|
967
|
-
_numbers:
|
|
967
|
+
_numbers: ge ? K(ge) : g,
|
|
968
968
|
_number: Q.n,
|
|
969
969
|
_unit: $.u,
|
|
970
970
|
_modifier: P,
|
|
971
971
|
_currentTime: 0,
|
|
972
|
-
_startTime:
|
|
972
|
+
_startTime: ue,
|
|
973
973
|
_delay: +N,
|
|
974
|
-
_updateDuration:
|
|
975
|
-
_changeDuration:
|
|
976
|
-
_absoluteStartTime:
|
|
977
|
-
_absoluteUpdateStartTime:
|
|
978
|
-
_absoluteEndTime:
|
|
979
|
-
_hasFromValue:
|
|
974
|
+
_updateDuration: pe,
|
|
975
|
+
_changeDuration: pe,
|
|
976
|
+
_absoluteStartTime: de,
|
|
977
|
+
_absoluteUpdateStartTime: fe,
|
|
978
|
+
_absoluteEndTime: G(j + x, 12),
|
|
979
|
+
_hasFromValue: ae || se ? 1 : 0,
|
|
980
980
|
_tweenType: c,
|
|
981
|
-
_setter:
|
|
981
|
+
_setter: he,
|
|
982
982
|
_valueType: $.t,
|
|
983
983
|
_composition: f,
|
|
984
984
|
_isOverlapped: 0,
|
|
985
985
|
_isOverridden: 0,
|
|
986
986
|
_renderTransforms: 0,
|
|
987
|
-
_inlineValue:
|
|
987
|
+
_inlineValue: me,
|
|
988
988
|
_prevRep: null,
|
|
989
989
|
_nextRep: null,
|
|
990
990
|
_prevAdd: null,
|
|
@@ -992,47 +992,47 @@ var yt = {
|
|
|
992
992
|
_prev: null,
|
|
993
993
|
_next: null
|
|
994
994
|
};
|
|
995
|
-
f !== s.none &&
|
|
996
|
-
let
|
|
997
|
-
if (
|
|
998
|
-
else if (
|
|
999
|
-
else if (
|
|
995
|
+
f !== s.none && ct(U, v);
|
|
996
|
+
let ye = U._valueType;
|
|
997
|
+
if (ye === a.COMPLEX) U._value = We(U, 1, -1);
|
|
998
|
+
else if (ye === a.UNIT) U._value = `${P(U._toNumber)}${U._unit}`;
|
|
999
|
+
else if (ye === a.COLOR) {
|
|
1000
1000
|
let e = $.d;
|
|
1001
|
-
|
|
1002
|
-
} else
|
|
1003
|
-
isNaN(b) && (b =
|
|
1001
|
+
U._value = `rgba(${G(e[0], 0)},${G(e[1], 0)},${G(e[2], 0)},${e[3]})`;
|
|
1002
|
+
} else U._value = P(U._toNumber);
|
|
1003
|
+
isNaN(b) && (b = U._startTime), y = U, F++, Ee(this, U);
|
|
1004
1004
|
}
|
|
1005
1005
|
(isNaN(P) || b < P) && (P = b), (isNaN(N) || x > N) && (N = x), c === i.TRANSFORM && (f = F - S, p = F);
|
|
1006
1006
|
}
|
|
1007
1007
|
if (!isNaN(f)) {
|
|
1008
1008
|
let e = 0;
|
|
1009
|
-
|
|
1010
|
-
e >= f && e < p && (t._renderTransforms = 1, t._composition === s.blend &&
|
|
1009
|
+
q(this, (t) => {
|
|
1010
|
+
e >= f && e < p && (t._renderTransforms = 1, t._composition === s.blend && q(Ze.animation, (e) => {
|
|
1011
1011
|
e.id === t.id && (e._renderTransforms = 1);
|
|
1012
1012
|
})), e++;
|
|
1013
1013
|
});
|
|
1014
1014
|
}
|
|
1015
1015
|
}
|
|
1016
|
-
d || console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."), P ? (
|
|
1016
|
+
d || console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."), P ? (q(this, (e) => {
|
|
1017
1017
|
e._startTime - e._delay || (e._delay -= P), e._startTime -= P;
|
|
1018
|
-
}), N -= P) : P = 0, N || (N = p, this.iterationCount = 0), this.targets = u, this.id =
|
|
1018
|
+
}), N -= P) : P = 0, N || (N = p, this.iterationCount = 0), this.targets = u, this.id = V(h) ? zt : h, this.duration = N === 1e-11 ? p : Se((N + this._loopDelay) * this.iterationCount - this._loopDelay) || 1e-11, this.onRender = C || w.onRender, this._ease = D, this._delay = P, this.iterationDuration = N, !this._autoplay && I && this.onRender(this);
|
|
1019
1019
|
}
|
|
1020
1020
|
stretch(e) {
|
|
1021
1021
|
let t = this.duration;
|
|
1022
|
-
if (t ===
|
|
1022
|
+
if (t === Ce(e)) return this;
|
|
1023
1023
|
let n = e / t;
|
|
1024
|
-
return
|
|
1025
|
-
e._updateDuration =
|
|
1024
|
+
return q(this, (e) => {
|
|
1025
|
+
e._updateDuration = Ce(e._updateDuration * n), e._changeDuration = Ce(e._changeDuration * n), e._currentTime *= n, e._delay *= n, e._startTime *= n, e._absoluteStartTime *= n, e._absoluteUpdateStartTime *= n, e._absoluteEndTime *= n;
|
|
1026
1026
|
}), super.stretch(e);
|
|
1027
1027
|
}
|
|
1028
1028
|
refresh() {
|
|
1029
|
-
return
|
|
1029
|
+
return q(this, (e) => {
|
|
1030
1030
|
let t = e._toFunc, n = e._fromFunc;
|
|
1031
|
-
(t || n) && (n ? (
|
|
1031
|
+
(t || n) && (n ? (Y(n(), Q), Q.u !== e._unit && e.target[l] && bt(e.target, Q, e._unit, !0), e._fromNumbers = K(Q.d), e._fromNumber = Q.n) : t && (Y(Be(e.target, e.property, e._tweenType), X), e._fromNumbers = K(X.d), e._fromNumber = X.n), t && (Y(t(), $), e._toNumbers = K($.d), e._strings = K($.s), e._toNumber = $.o ? Ve(e._fromNumber, $.n, $.o) : $.n));
|
|
1032
1032
|
}), this.duration === 1e-11 && this.restart(), this;
|
|
1033
1033
|
}
|
|
1034
1034
|
revert() {
|
|
1035
|
-
return super.revert(),
|
|
1035
|
+
return super.revert(), Ye(this);
|
|
1036
1036
|
}
|
|
1037
1037
|
then(e) {
|
|
1038
1038
|
return super.then(e);
|
|
@@ -1044,33 +1044,33 @@ var yt = {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
}, Kt = (e, t) => {
|
|
1046
1046
|
let n = e.iterationDuration;
|
|
1047
|
-
if (n === 1e-11 && (n = 0),
|
|
1048
|
-
if (
|
|
1049
|
-
let r = t, i = e ? e.labels : null, a = !
|
|
1047
|
+
if (n === 1e-11 && (n = 0), V(t)) return n;
|
|
1048
|
+
if (R(+t)) return +t;
|
|
1049
|
+
let r = t, i = e ? e.labels : null, a = !ie(i), o = Gt(e, r), s = !V(o), c = A.exec(r);
|
|
1050
1050
|
if (c) {
|
|
1051
1051
|
let e = c[0], t = r.split(e), l = a && t[0] ? i[t[0]] : n;
|
|
1052
|
-
return
|
|
1052
|
+
return Ve(s ? o : a ? l : n, +t[1], e[0]);
|
|
1053
1053
|
}
|
|
1054
|
-
return s ? o : a ?
|
|
1054
|
+
return s ? o : a ? V(i[r]) ? n : i[r] : n;
|
|
1055
1055
|
};
|
|
1056
1056
|
//#endregion
|
|
1057
1057
|
//#region node_modules/.pnpm/animejs@4.5.0/node_modules/animejs/dist/modules/utils/target.js
|
|
1058
1058
|
function qt(e, t, n) {
|
|
1059
|
-
let r =
|
|
1059
|
+
let r = _t(e);
|
|
1060
1060
|
if (!r.length) return;
|
|
1061
|
-
let [i] = r, o =
|
|
1062
|
-
if (
|
|
1063
|
-
if (
|
|
1064
|
-
if (n === !1) return
|
|
1061
|
+
let [i] = r, o = Be(i, Je(t, i, Re(i, t)));
|
|
1062
|
+
if (V(n)) return o;
|
|
1063
|
+
if (Y(o, X), X.t === a.NUMBER || X.t === a.UNIT) {
|
|
1064
|
+
if (n === !1) return X.n;
|
|
1065
1065
|
{
|
|
1066
|
-
let e =
|
|
1067
|
-
return `${
|
|
1066
|
+
let e = bt(i, X, n, !1);
|
|
1067
|
+
return `${G(e.n, M.precision)}${e.u}`;
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
1071
|
var Jt = (e, t) => {
|
|
1072
|
-
if (!
|
|
1073
|
-
}, Yt = (e = b) => new
|
|
1072
|
+
if (!V(t)) return M.editor && M.editor.addSet ? M.editor.addSet(e, t) : (t.duration = p, t.composition = J(t.composition, s.none), new Ut(e, t, null, 0, !0).resume());
|
|
1073
|
+
}, Yt = (e = b) => new mt({
|
|
1074
1074
|
duration: 1 * M.timeScale,
|
|
1075
1075
|
onComplete: e
|
|
1076
1076
|
}, null, 0).resume(), Xt = (e) => {
|
|
@@ -1079,37 +1079,37 @@ var Jt = (e, t) => {
|
|
|
1079
1079
|
let r, i, a, o, s;
|
|
1080
1080
|
t && (r = t.currentIteration, i = t.iterationProgress, a = t.reversed, o = t._alternate, s = t._startTime, t.revert());
|
|
1081
1081
|
let c = e(...n);
|
|
1082
|
-
return c && !
|
|
1082
|
+
return c && !B(c) && c.revert && (t = c), V(i) || (t.currentIteration = r, t.iterationProgress = (o && r % 2 ? !a : a) ? 1 - i : i, t._startTime = s), c || b;
|
|
1083
1083
|
});
|
|
1084
1084
|
}, Zt = () => {
|
|
1085
1085
|
let e = r.createElement("div");
|
|
1086
1086
|
r.body.appendChild(e), e.style.height = "100lvh";
|
|
1087
1087
|
let t = e.offsetHeight;
|
|
1088
1088
|
return r.body.removeChild(e), t;
|
|
1089
|
-
}, Qt = (e, t) => e &&
|
|
1089
|
+
}, Qt = (e, t) => e && B(e) ? e(t) : e, $t = /* @__PURE__ */ new Map(), en = class {
|
|
1090
1090
|
constructor(e) {
|
|
1091
|
-
this.element = e, this.useWin = this.element === r.body, this.winWidth = 0, this.winHeight = 0, this.width = 0, this.height = 0, this.left = 0, this.top = 0, this.scale = 1, this.zIndex = 0, this.scrollX = 0, this.scrollY = 0, this.prevScrollX = 0, this.prevScrollY = 0, this.scrollWidth = 0, this.scrollHeight = 0, this.velocity = 0, this.backwardX = !1, this.backwardY = !1, this.scrollTicker = new
|
|
1091
|
+
this.element = e, this.useWin = this.element === r.body, this.winWidth = 0, this.winHeight = 0, this.width = 0, this.height = 0, this.left = 0, this.top = 0, this.scale = 1, this.zIndex = 0, this.scrollX = 0, this.scrollY = 0, this.prevScrollX = 0, this.prevScrollY = 0, this.scrollWidth = 0, this.scrollHeight = 0, this.velocity = 0, this.backwardX = !1, this.backwardY = !1, this.scrollTicker = new mt({
|
|
1092
1092
|
autoplay: !1,
|
|
1093
1093
|
onBegin: () => this.dataTimer.resume(),
|
|
1094
1094
|
onUpdate: () => {
|
|
1095
1095
|
let e = this.backwardX || this.backwardY;
|
|
1096
|
-
|
|
1096
|
+
q(this, (e) => e.handleScroll(), e);
|
|
1097
1097
|
},
|
|
1098
1098
|
onComplete: () => this.dataTimer.pause()
|
|
1099
|
-
}).init(), this.dataTimer = new
|
|
1099
|
+
}).init(), this.dataTimer = new mt({
|
|
1100
1100
|
autoplay: !1,
|
|
1101
1101
|
frameRate: 30,
|
|
1102
1102
|
onUpdate: (e) => {
|
|
1103
1103
|
let t = e.deltaTime, n = this.prevScrollX, r = this.prevScrollY, i = this.scrollX, a = this.scrollY, o = n - i, s = r - a;
|
|
1104
|
-
this.prevScrollX = i, this.prevScrollY = a, o && (this.backwardX = n > i), s && (this.backwardY = r > a), this.velocity =
|
|
1104
|
+
this.prevScrollX = i, this.prevScrollY = a, o && (this.backwardX = n > i), s && (this.backwardY = r > a), this.velocity = G(t > 0 ? Math.sqrt(o * o + s * s) / t : 0, 5);
|
|
1105
1105
|
}
|
|
1106
|
-
}).init(), this.resizeTicker = new
|
|
1106
|
+
}).init(), this.resizeTicker = new mt({
|
|
1107
1107
|
autoplay: !1,
|
|
1108
1108
|
duration: 250 * M.timeScale,
|
|
1109
1109
|
onComplete: () => {
|
|
1110
1110
|
this.updateWindowBounds(), this.refreshScrollObservers(), this.handleScroll();
|
|
1111
1111
|
}
|
|
1112
|
-
}).init(), this.wakeTicker = new
|
|
1112
|
+
}).init(), this.wakeTicker = new mt({
|
|
1113
1113
|
autoplay: !1,
|
|
1114
1114
|
duration: 500 * M.timeScale,
|
|
1115
1115
|
onBegin: () => {
|
|
@@ -1122,7 +1122,7 @@ var Jt = (e, t) => {
|
|
|
1122
1122
|
}
|
|
1123
1123
|
updateScrollCoords() {
|
|
1124
1124
|
let e = this.useWin, t = this.element;
|
|
1125
|
-
this.scrollX =
|
|
1125
|
+
this.scrollX = G(e ? n.scrollX : t.scrollLeft, 0), this.scrollY = G(e ? n.scrollY : t.scrollTop, 0);
|
|
1126
1126
|
}
|
|
1127
1127
|
updateWindowBounds() {
|
|
1128
1128
|
this.winWidth = n.innerWidth, this.winHeight = Zt();
|
|
@@ -1139,9 +1139,9 @@ var Jt = (e, t) => {
|
|
|
1139
1139
|
this.width = n, this.height = r;
|
|
1140
1140
|
}
|
|
1141
1141
|
refreshScrollObservers() {
|
|
1142
|
-
|
|
1142
|
+
q(this, (e) => {
|
|
1143
1143
|
e.ready && e._debug && e.removeDebug();
|
|
1144
|
-
}), this.updateBounds(),
|
|
1144
|
+
}), this.updateBounds(), q(this, (e) => {
|
|
1145
1145
|
e.ready && (e.refresh(), e.onResize(e), e._debug && e.debug());
|
|
1146
1146
|
});
|
|
1147
1147
|
}
|
|
@@ -1158,27 +1158,27 @@ var Jt = (e, t) => {
|
|
|
1158
1158
|
this.scrollTicker.cancel(), this.dataTimer.cancel(), this.resizeTicker.cancel(), this.wakeTicker.cancel(), this.resizeObserver.disconnect(), (this.useWin ? n : this.element).removeEventListener("scroll", this), $t.delete(this.element);
|
|
1159
1159
|
}
|
|
1160
1160
|
}, tn = (e) => {
|
|
1161
|
-
let t = e &&
|
|
1161
|
+
let t = e && gt(e)[0] || r.body, n = $t.get(t);
|
|
1162
1162
|
return n || (n = new en(t), $t.set(t, n)), n;
|
|
1163
1163
|
}, nn = (e, t, n, r, i) => {
|
|
1164
|
-
let a = t === "min", o = t === "max", { n: s, u: c } =
|
|
1165
|
-
return c === "%" ? l = s / 100 * n : c && (l =
|
|
1164
|
+
let a = t === "min", o = t === "max", { n: s, u: c } = Y(t === "top" || t === "left" || t === "start" || a ? 0 : t === "bottom" || t === "right" || t === "end" || o ? "100%" : t === "center" ? "50%" : t, X), l = s;
|
|
1165
|
+
return c === "%" ? l = s / 100 * n : c && (l = bt(e, X, "px", !0).n), o && r < 0 && (l += r), a && i > 0 && (l += i), l;
|
|
1166
1166
|
}, rn = (e, t, n, r, i) => {
|
|
1167
1167
|
let a;
|
|
1168
|
-
if (
|
|
1168
|
+
if (z(t)) {
|
|
1169
1169
|
let o = A.exec(t);
|
|
1170
1170
|
if (o) {
|
|
1171
1171
|
let s = o[0], c = s[0], l = t.split(s), u = l[0] === "min", d = l[0] === "max", f = nn(e, l[0], n, r, i), p = nn(e, l[1], n, r, i);
|
|
1172
1172
|
if (u) {
|
|
1173
|
-
let t =
|
|
1173
|
+
let t = Ve(nn(e, "min", n), p, c);
|
|
1174
1174
|
a = t < f ? f : t;
|
|
1175
1175
|
} else if (d) {
|
|
1176
|
-
let t =
|
|
1176
|
+
let t = Ve(nn(e, "max", n), p, c);
|
|
1177
1177
|
a = t > f ? f : t;
|
|
1178
|
-
} else a =
|
|
1178
|
+
} else a = Ve(f, p, c);
|
|
1179
1179
|
} else a = nn(e, t, n, r, i);
|
|
1180
1180
|
} else a = t;
|
|
1181
|
-
return
|
|
1181
|
+
return G(a, 0);
|
|
1182
1182
|
}, an = (e) => {
|
|
1183
1183
|
let t, n = e.targets;
|
|
1184
1184
|
for (let e = 0, r = n.length; e < r; e++) {
|
|
@@ -1207,11 +1207,11 @@ var Jt = (e, t) => {
|
|
|
1207
1207
|
], cn = class {
|
|
1208
1208
|
constructor(e = {}) {
|
|
1209
1209
|
j.current && j.current.register(this);
|
|
1210
|
-
let t =
|
|
1210
|
+
let t = J(e.sync, "play pause"), n = t ? jt(t) : null, i = t && (t === "linear" || t === xt), a = t && !(n === xt && !i), o = t && (R(t) || t === !0 || i), s = t && z(t) && !a && !o, c = s ? t.split(" ").map((e) => () => {
|
|
1211
1211
|
let t = this.linked;
|
|
1212
1212
|
return t && t[e] ? t[e]() : null;
|
|
1213
1213
|
}) : null, l = s && c.length > 2;
|
|
1214
|
-
this.index = on++, this.id =
|
|
1214
|
+
this.index = on++, this.id = V(e.id) ? this.index : e.id, this.container = tn(e.container), this.target = null, this.linked = null, this.repeat = null, this.horizontal = null, this.enter = null, this.leave = null, this.sync = a || o || !!c, this.syncEase = a ? n : null, this.syncSmooth = o ? t === !0 || i ? 1 : t : null, this.onSyncEnter = c && !l && c[0] ? c[0] : b, this.onSyncLeave = c && !l && c[1] ? c[1] : b, this.onSyncEnterForward = c && l && c[0] ? c[0] : b, this.onSyncLeaveForward = c && l && c[1] ? c[1] : b, this.onSyncEnterBackward = c && l && c[2] ? c[2] : b, this.onSyncLeaveBackward = c && l && c[3] ? c[3] : b, this.onEnter = e.onEnter || b, this.onLeave = e.onLeave || b, this.onEnterForward = e.onEnterForward || b, this.onLeaveForward = e.onLeaveForward || b, this.onEnterBackward = e.onEnterBackward || b, this.onLeaveBackward = e.onLeaveBackward || b, this.onUpdate = e.onUpdate || b, this.onResize = e.onResize || b, this.onSyncComplete = e.onSyncComplete || b, this.reverted = !1, this.ready = !1, this.completed = !1, this.began = !1, this.isInView = !1, this.forceEnter = !1, this.hasEntered = !1, this.offset = 0, this.offsetStart = 0, this.offsetEnd = 0, this.distance = 0, this.prevProgress = 0, this.thresholds = [
|
|
1215
1215
|
"start",
|
|
1216
1216
|
"end",
|
|
1217
1217
|
"end",
|
|
@@ -1221,10 +1221,10 @@ var Jt = (e, t) => {
|
|
|
1221
1221
|
0,
|
|
1222
1222
|
0,
|
|
1223
1223
|
0
|
|
1224
|
-
], this.debugStyles = null, this.$debug = null, this._params = e, this._debug =
|
|
1224
|
+
], this.debugStyles = null, this.$debug = null, this._params = e, this._debug = J(e.debug, !1), this._next = null, this._prev = null, Ee(this.container, this), Yt(() => {
|
|
1225
1225
|
if (!this.reverted) {
|
|
1226
1226
|
if (!this.target) {
|
|
1227
|
-
let t =
|
|
1227
|
+
let t = gt(e.target)[0];
|
|
1228
1228
|
this.target = t || r.body, this.refresh();
|
|
1229
1229
|
}
|
|
1230
1230
|
this._debug && this.debug();
|
|
@@ -1232,9 +1232,9 @@ var Jt = (e, t) => {
|
|
|
1232
1232
|
});
|
|
1233
1233
|
}
|
|
1234
1234
|
link(e) {
|
|
1235
|
-
if (e && (e.pause(), this.linked = e, !
|
|
1235
|
+
if (e && (e.pause(), this.linked = e, !V(e) && !V(e.persist) && (e.persist = !0), !this._params.target)) {
|
|
1236
1236
|
let t;
|
|
1237
|
-
|
|
1237
|
+
V(e.targets) ? q(e, (e) => {
|
|
1238
1238
|
e.targets && !t && (t = an(e));
|
|
1239
1239
|
}) : t = an(e), this.target = t || r.body, this.refresh();
|
|
1240
1240
|
}
|
|
@@ -1251,12 +1251,12 @@ var Jt = (e, t) => {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
get progress() {
|
|
1253
1253
|
let e = (this.scroll - this.offsetStart) / this.distance;
|
|
1254
|
-
return e === Infinity || isNaN(e) ? 0 : W(
|
|
1254
|
+
return e === Infinity || isNaN(e) ? 0 : G(W(e, 0, 1), 6);
|
|
1255
1255
|
}
|
|
1256
1256
|
refresh() {
|
|
1257
1257
|
this.ready = !0, this.reverted = !1;
|
|
1258
1258
|
let e = this._params;
|
|
1259
|
-
return this.repeat =
|
|
1259
|
+
return this.repeat = J(Qt(e.repeat, this), !0), this.horizontal = J(Qt(e.axis, this), "y") === "x", this.enter = J(Qt(e.enter, this), "end start"), this.leave = J(Qt(e.leave, this), "start end"), this.updateBounds(), this.handleScroll(), this;
|
|
1260
1260
|
}
|
|
1261
1261
|
removeDebug() {
|
|
1262
1262
|
return this.$debug &&= (this.$debug.parentNode.removeChild(this.$debug), null), this.debugStyles && (this.debugStyles.revert(), this.$debug = null), this;
|
|
@@ -1318,20 +1318,20 @@ var Jt = (e, t) => {
|
|
|
1318
1318
|
s = s.parentElement, t && (e ||= [], e.push(t));
|
|
1319
1319
|
}
|
|
1320
1320
|
let c = t.getBoundingClientRect(), l = n.scale, u = (i ? c.left + n.scrollX - n.left : c.top + n.scrollY - n.top) * l, d = (i ? c.width : c.height) * l, f = i ? n.width : n.height, p = (i ? n.scrollWidth : n.scrollHeight) - f, m = this.enter, h = this.leave, g = "start", _ = "end", v = "end", y = "start";
|
|
1321
|
-
if (
|
|
1321
|
+
if (z(m)) {
|
|
1322
1322
|
let e = m.split(" ");
|
|
1323
1323
|
v = e[0], g = e.length > 1 ? e[1] : g;
|
|
1324
|
-
} else if (
|
|
1324
|
+
} else if (re(m)) {
|
|
1325
1325
|
let e = m;
|
|
1326
|
-
|
|
1327
|
-
} else
|
|
1328
|
-
if (
|
|
1326
|
+
V(e.container) || (v = e.container), V(e.target) || (g = e.target);
|
|
1327
|
+
} else R(m) && (v = m);
|
|
1328
|
+
if (z(h)) {
|
|
1329
1329
|
let e = h.split(" ");
|
|
1330
1330
|
y = e[0], _ = e.length > 1 ? e[1] : _;
|
|
1331
|
-
} else if (
|
|
1331
|
+
} else if (re(h)) {
|
|
1332
1332
|
let e = h;
|
|
1333
|
-
|
|
1334
|
-
} else
|
|
1333
|
+
V(e.container) || (y = e.container), V(e.target) || (_ = e.target);
|
|
1334
|
+
} else R(h) && (y = h);
|
|
1335
1335
|
let b = rn(t, g, d), x = rn(t, _, d), S = b + u - f, C = x + u - p, w = rn(t, v, f, S, C), T = rn(t, y, f, S, C), E = b + u - w, D = x + u - T, O = D - E;
|
|
1336
1336
|
this.offset = u, this.offsetStart = E, this.offsetEnd = D, this.distance = O <= 0 ? 0 : O, this.thresholds = [
|
|
1337
1337
|
g,
|
|
@@ -1350,10 +1350,10 @@ var Jt = (e, t) => {
|
|
|
1350
1350
|
let e = this.linked, t = this.sync, n = this.syncEase, r = this.syncSmooth, i = e && (n || r), a = this.horizontal, o = this.container, s = this.scroll, c = s <= this.offsetStart, l = s >= this.offsetEnd, u = !c && !l, d = s === this.offsetStart || s === this.offsetEnd, f = !this.hasEntered && d, p = this._debug && this.$debug, m = !1, h = !1, g = this.progress;
|
|
1351
1351
|
if (c && this.began && (this.began = !1), g > 0 && !this.began && (this.began = !0), i) {
|
|
1352
1352
|
let t = e.progress;
|
|
1353
|
-
if (r &&
|
|
1353
|
+
if (r && R(r)) {
|
|
1354
1354
|
if (r < 1) {
|
|
1355
1355
|
let e = t < g && g === 1 ? 1e-4 : t > g && !g ? -1e-4 : 0;
|
|
1356
|
-
g =
|
|
1356
|
+
g = G(xe(t, g, xe(.01, .2, r)) + e, 6);
|
|
1357
1357
|
}
|
|
1358
1358
|
} else n && (g = n(g));
|
|
1359
1359
|
m = g !== this.prevProgress, h = t === 1, m && !h && r && t && o.wakeTicker.restart();
|
|
@@ -1367,7 +1367,7 @@ var Jt = (e, t) => {
|
|
|
1367
1367
|
revert() {
|
|
1368
1368
|
if (this.reverted) return;
|
|
1369
1369
|
let e = this.container;
|
|
1370
|
-
return
|
|
1370
|
+
return Te(e, this), e._head || e.revert(), this._debug && this.removeDebug(), this.reverted = !0, this.ready = !1, this;
|
|
1371
1371
|
}
|
|
1372
1372
|
}, ln = (e = {}) => new cn(e), un = (e = 0, t = 1, n = 0) => {
|
|
1373
1373
|
let r = 10 ** n;
|
|
@@ -1384,20 +1384,20 @@ var Jt = (e, t) => {
|
|
|
1384
1384
|
for (; n;) i = t(0, --n), r = e[n], e[n] = e[i], e[i] = r;
|
|
1385
1385
|
return e;
|
|
1386
1386
|
}, mn = (e, t = {}) => {
|
|
1387
|
-
let n = [], r = 0, i, a = null, o = t.from, s = t.reversed, c = t.ease, l = !
|
|
1387
|
+
let n = [], r = 0, i, a = null, o = t.from, s = t.reversed, c = t.ease, l = !V(c), u = l && !V(c.ease) ? c.ease : l ? jt(c) : null, d = t.grid, f = d === !0, p = t.axis, m = t.total, h = V(o) || o === 0 || o === "first", g = o === "center", _ = o === "last", v = o === "random", y = L(o), b = L(e), x = t.use, S = H(b ? e[0] : e), C = b ? H(e[1]) : 0, w = k.exec((b ? e[1] : e) + ""), T = t.start || 0 + (b ? S : 0), E = t.seed, D = !V(E) && E !== !1 ? fn(E === !0 ? 0 : E) : un, O = t.jitter, ee = !V(O), A = L(O), te = A ? O[0] : O || 0, ne = A ? O[1] : O || 0, j = h ? 0 : R(o) ? o : 0;
|
|
1388
1388
|
return (e, c, l, h, E) => {
|
|
1389
|
-
let [O] =
|
|
1389
|
+
let [O] = _t(e), k = V(m) ? l.length : m, A = V(x) ? !1 : B(x) ? x(O, c, k) : Be(O, x), M = R(A) || z(A) && R(+A) ? +A : c, N = M >= 0 && M < k ? M : c;
|
|
1390
1390
|
if (g && (j = (k - 1) / 2), _ && (j = k - 1), !n.length) {
|
|
1391
1391
|
if (f) {
|
|
1392
1392
|
let e = !0, t = !1, r = Infinity, i = Infinity, a = Infinity, s = -Infinity, c = -Infinity, u = -Infinity, d = [], f = [], m = [];
|
|
1393
1393
|
for (let n = 0; n < k; n++) {
|
|
1394
1394
|
let o = l[n], p = 0, h = 0, g = 0, _ = !1;
|
|
1395
|
-
if (o &&
|
|
1395
|
+
if (o && B(o.getBoundingClientRect)) {
|
|
1396
1396
|
let e = o.getBoundingClientRect();
|
|
1397
1397
|
p = e.left + e.width / 2, h = e.top + e.height / 2, _ = !0;
|
|
1398
1398
|
} else {
|
|
1399
1399
|
let e = o;
|
|
1400
|
-
e &&
|
|
1400
|
+
e && R(e.x) && R(e.y) && (p = e.x, h = e.y, R(e.z) && (g = e.z, t = !0), _ = !0);
|
|
1401
1401
|
}
|
|
1402
1402
|
if (!_) {
|
|
1403
1403
|
e = !1;
|
|
@@ -1407,30 +1407,30 @@ var Jt = (e, t) => {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
if (e) {
|
|
1409
1409
|
let e = d[0], l = f[0], h = m[0];
|
|
1410
|
-
y ? (e = r + o[0] * (s - r), l = i + o[1] * (c - i), h = t ? a + (o.length >= 3 ? o[2] : .5) * (u - a) : 0) : g ? (e = (r + s) / 2, l = (i + c) / 2, h = (a + u) / 2) : _ ? (e = d[k - 1], l = f[k - 1], h = m[k - 1]) :
|
|
1410
|
+
y ? (e = r + o[0] * (s - r), l = i + o[1] * (c - i), h = t ? a + (o.length >= 3 ? o[2] : .5) * (u - a) : 0) : g ? (e = (r + s) / 2, l = (i + c) / 2, h = (a + u) / 2) : _ ? (e = d[k - 1], l = f[k - 1], h = m[k - 1]) : R(o) && (e = d[o], l = f[o], h = m[o]);
|
|
1411
1411
|
for (let r = 0; r < k; r++) {
|
|
1412
|
-
let i = e - d[r], a = l - f[r], o = h - m[r], s =
|
|
1412
|
+
let i = e - d[r], a = l - f[r], o = h - m[r], s = me(i * i + a * a + (t ? o * o : 0));
|
|
1413
1413
|
p === "x" && (s = -i), p === "y" && (s = -a), p === "z" && (s = -o), n.push(s);
|
|
1414
1414
|
}
|
|
1415
1415
|
let v = Infinity;
|
|
1416
1416
|
for (let e = 0; e < k; e++) {
|
|
1417
|
-
let t =
|
|
1417
|
+
let t = _e(n[e]);
|
|
1418
1418
|
t > 0 && t < v && (v = t);
|
|
1419
1419
|
}
|
|
1420
1420
|
if (v > 0 && v < Infinity) for (let e = 0; e < k; e++) n[e] = n[e] / v;
|
|
1421
|
-
} else for (let e = 0; e < k; e++) n.push(
|
|
1422
|
-
} else for (let e = 0; e < k; e++) if (!d) n.push(
|
|
1421
|
+
} else for (let e = 0; e < k; e++) n.push(_e(j - e));
|
|
1422
|
+
} else for (let e = 0; e < k; e++) if (!d) n.push(_e(j - e));
|
|
1423
1423
|
else {
|
|
1424
1424
|
let t = d.length, r = d[0] * d[1], i, a, s;
|
|
1425
|
-
y ? (i = o[0] * (d[0] - 1), a = o[1] * (d[1] - 1), s = t === 3 ? (o.length >= 3 ? o[2] : .5) * (d[2] - 1) : 0) : g ? (i = (d[0] - 1) / 2, a = (d[1] - 1) / 2, s = t === 3 ? (d[2] - 1) / 2 : 0) : (i = j % d[0], a =
|
|
1426
|
-
let c = e % d[0], l =
|
|
1425
|
+
y ? (i = o[0] * (d[0] - 1), a = o[1] * (d[1] - 1), s = t === 3 ? (o.length >= 3 ? o[2] : .5) * (d[2] - 1) : 0) : g ? (i = (d[0] - 1) / 2, a = (d[1] - 1) / 2, s = t === 3 ? (d[2] - 1) / 2 : 0) : (i = j % d[0], a = ve(j / d[0]) % d[1], s = t === 3 ? ve(j / r) : 0);
|
|
1426
|
+
let c = e % d[0], l = ve(e / d[0]) % d[1], u = t === 3 ? ve(e / r) : 0, f = i - c, m = a - l, h = s - u, _ = me(f * f + m * m + (t === 3 ? h * h : 0));
|
|
1427
1427
|
p === "x" && (_ = -f), p === "y" && (_ = -m), p === "z" && (_ = -h), n.push(_);
|
|
1428
1428
|
}
|
|
1429
1429
|
r = n[0];
|
|
1430
1430
|
for (let e = 1; e < k; e++) n[e] > r && (r = n[e]);
|
|
1431
1431
|
if (u || s) for (let e = 0; e < k; e++) {
|
|
1432
1432
|
let t = n[e];
|
|
1433
|
-
u && (t = u(t / r) * r), s && (t = p ? -t :
|
|
1433
|
+
u && (t = u(t / r) * r), s && (t = p ? -t : _e(r - t)), n[e] = t;
|
|
1434
1434
|
}
|
|
1435
1435
|
if (ee) {
|
|
1436
1436
|
a = Array(k);
|
|
@@ -1439,15 +1439,15 @@ var Jt = (e, t) => {
|
|
|
1439
1439
|
v && (n = pn(n, D));
|
|
1440
1440
|
}
|
|
1441
1441
|
let P = b ? (C - S) / r : S;
|
|
1442
|
-
|
|
1443
|
-
let F = i + (P *
|
|
1442
|
+
V(i) && (i = E ? Kt(E, V(t.start) ? E.iterationDuration : T) : T);
|
|
1443
|
+
let F = i + (P * G(n[N], 2) || 0);
|
|
1444
1444
|
if (ee) {
|
|
1445
1445
|
let e = r ? n[N] / r : 0, t = te + (ne - te) * e;
|
|
1446
1446
|
F += a[N] * t;
|
|
1447
1447
|
}
|
|
1448
1448
|
return t.modifier && (F = t.modifier(F)), w && (F = `${F}${w[2]}`), F;
|
|
1449
1449
|
};
|
|
1450
|
-
}, hn = typeof Intl < "u" && Intl.Segmenter, gn = /\{value\}/g, _n = /\{i\}/g, vn = /(\s+)/, yn = /^\s+$/, bn = "line", xn = "word", Sn = "char", Cn = "data-line", wn = null, Tn = null, En = null, Dn = (e) => e.isWordLike || e.segment === " " ||
|
|
1450
|
+
}, hn = typeof Intl < "u" && Intl.Segmenter, gn = /\{value\}/g, _n = /\{i\}/g, vn = /(\s+)/, yn = /^\s+$/, bn = "line", xn = "word", Sn = "char", Cn = "data-line", wn = null, Tn = null, En = null, Dn = (e) => e.isWordLike || e.segment === " " || R(+e.segment), On = (e) => e.setAttribute("aria-hidden", "true"), kn = (e, t) => [...e.querySelectorAll(`[data-${t}]:not([data-${t}] [data-${t}])`)], An = {
|
|
1451
1451
|
line: "#00D672",
|
|
1452
1452
|
word: "#FF4B4B",
|
|
1453
1453
|
char: "#5A87FF"
|
|
@@ -1469,14 +1469,14 @@ var Jt = (e, t) => {
|
|
|
1469
1469
|
}, Nn = (e, t = {}) => {
|
|
1470
1470
|
let n = "";
|
|
1471
1471
|
t ||= {};
|
|
1472
|
-
let r =
|
|
1472
|
+
let r = z(t.class) ? ` class="${t.class}"` : "", i = J(t.clone, !1), a = J(t.wrap, !1), o = a ? a === !0 ? "clip" : a : i ? "clip" : !1;
|
|
1473
1473
|
if (a && (n += `<span${o ? ` style="overflow:${o};"` : ""}>`), n += `<span${r}${i ? " style=\"position:relative;\"" : ""} data-${e}="{i}">`, i) {
|
|
1474
1474
|
let e = i === "left" ? "-100%" : i === "right" ? "100%" : "0", t = i === "top" ? "-100%" : i === "bottom" ? "100%" : "0";
|
|
1475
1475
|
n += "<span>{value}</span>", n += `<span inert style="position:absolute;top:${t};left:${e};white-space:nowrap;">{value}</span>`;
|
|
1476
1476
|
} else n += "{value}";
|
|
1477
1477
|
return n += "</span>", a && (n += "</span>"), n;
|
|
1478
1478
|
}, Pn = (e, t, n, r, i, a, o, s, c) => {
|
|
1479
|
-
let l = i === bn, u = i === Sn, d = `_${i}_`, f =
|
|
1479
|
+
let l = i === bn, u = i === Sn, d = `_${i}_`, f = B(e) ? e(n) : e, p = l ? "block" : "inline-block";
|
|
1480
1480
|
En.innerHTML = f.replace(gn, `<i class="${d}"></i>`).replace(_n, `${u ? c : l ? o : s}`);
|
|
1481
1481
|
let m = En.content, h = m.firstElementChild, g = m.querySelector(`[data-${i}]`) || h, _ = m.querySelectorAll(`i.${d}`), v = _.length;
|
|
1482
1482
|
if (v) {
|
|
@@ -1502,8 +1502,8 @@ var Jt = (e, t) => {
|
|
|
1502
1502
|
}
|
|
1503
1503
|
return t;
|
|
1504
1504
|
} }, Tn ||= hn ? new hn([], { granularity: "grapheme" }) : { segment: (e) => [...e].map((e) => ({ segment: e })) }, !En && t && (En = r.createElement("template")), j.current && j.current.register(this);
|
|
1505
|
-
let { words: i, chars: a, lines: o, accessible: s, includeSpaces: c, debug: l } = n, u = (e =
|
|
1506
|
-
this.debug =
|
|
1505
|
+
let { words: i, chars: a, lines: o, accessible: s, includeSpaces: c, debug: l } = n, u = (e = L(e) ? e[0] : e) && e.nodeType ? e : (ht(e) || [])[0], d = o === !0 ? {} : o, f = i === !0 || V(i) ? {} : i, p = a === !0 ? {} : a;
|
|
1506
|
+
this.debug = J(l, !1), this.includeSpaces = J(c, !1), this.accessible = J(s, !0), this.linesOnly = d && !f && !p, this.lineTemplate = re(d) ? Nn(bn, d) : d, this.wordTemplate = re(f) || this.linesOnly ? Nn(xn, f) : f, this.charTemplate = re(p) ? Nn(Sn, p) : p, this.$target = u, this.html = u && u.innerHTML, this.lines = [], this.words = [], this.chars = [], this.effects = [], this.effectsCleanups = [], this.cache = null, this.ready = !1, this.width = 0, this.resizeTimeout = null;
|
|
1507
1507
|
let m = () => this.html && (d || f || p) && this.split();
|
|
1508
1508
|
this.resizeObserver = new ResizeObserver(() => {
|
|
1509
1509
|
clearTimeout(this.resizeTimeout), this.resizeTimeout = setTimeout(() => {
|
|
@@ -1513,12 +1513,12 @@ var Jt = (e, t) => {
|
|
|
1513
1513
|
}), this.lineTemplate && !this.ready ? r.fonts.ready.then(m) : m(), u ? this.resizeObserver.observe(u) : console.warn("No Text Splitter target found.");
|
|
1514
1514
|
}
|
|
1515
1515
|
addEffect(e) {
|
|
1516
|
-
if (!
|
|
1516
|
+
if (!B(e)) return console.warn("Effect must return a function."), this;
|
|
1517
1517
|
let t = Xt(e);
|
|
1518
1518
|
return this.effects.push(t), this.ready && (this.effectsCleanups[this.effects.length - 1] = t(this)), this;
|
|
1519
1519
|
}
|
|
1520
1520
|
revert() {
|
|
1521
|
-
return clearTimeout(this.resizeTimeout), this.lines.length = this.words.length = this.chars.length = 0, this.resizeObserver.disconnect(), this.effectsCleanups.forEach((e) =>
|
|
1521
|
+
return clearTimeout(this.resizeTimeout), this.lines.length = this.words.length = this.chars.length = 0, this.resizeObserver.disconnect(), this.effectsCleanups.forEach((e) => B(e) ? e(this) : e.revert && e.revert()), this.$target.innerHTML = this.html, this;
|
|
1522
1522
|
}
|
|
1523
1523
|
splitNode(e) {
|
|
1524
1524
|
let t = this.wordTemplate, n = this.charTemplate, i = this.includeSpaces, a = this.debug, o = e.nodeType;
|
|
@@ -1561,11 +1561,11 @@ var Jt = (e, t) => {
|
|
|
1561
1561
|
}
|
|
1562
1562
|
split(e = !1) {
|
|
1563
1563
|
let t = this.$target, n = !!this.cache && !e, i = this.lineTemplate, a = this.wordTemplate, o = this.charTemplate, s = r.fonts.status !== "loading", c = i && s;
|
|
1564
|
-
this.ready = !i || s, (c || e) && this.effectsCleanups.forEach((e) =>
|
|
1564
|
+
this.ready = !i || s, (c || e) && this.effectsCleanups.forEach((e) => B(e) && e(this)), n || (e && (t.innerHTML = this.html, this.words.length = this.chars.length = 0), this.splitNode(t), this.cache = t.innerHTML), c && (n && (t.innerHTML = this.cache), this.lines.length = 0, a && (this.words = kn(t, xn))), o && (c || a) && (this.chars = kn(t, Sn));
|
|
1565
1565
|
let l = this.words.length ? this.words : this.chars, u, d = 0;
|
|
1566
1566
|
for (let e = 0, t = l.length; e < t; e++) {
|
|
1567
1567
|
let t = l[e], { top: n, height: r } = t.getBoundingClientRect();
|
|
1568
|
-
!
|
|
1568
|
+
!V(u) && n - u > r * .5 && d++, t.setAttribute(Cn, `${d}`);
|
|
1569
1569
|
let i = t.querySelectorAll(`[${Cn}]`), a = i.length;
|
|
1570
1570
|
for (; a--;) i[a].setAttribute(Cn, `${d}`);
|
|
1571
1571
|
u = n;
|
|
@@ -1809,21 +1809,28 @@ function Zn(e, t, n, r = e.options.delay ?? 0) {
|
|
|
1809
1809
|
default: return r + t * i;
|
|
1810
1810
|
}
|
|
1811
1811
|
}
|
|
1812
|
-
function Qn(e
|
|
1813
|
-
|
|
1812
|
+
function Qn(e) {
|
|
1813
|
+
for (let t = e.parentElement; t; t = t.parentElement) if (/auto|scroll|overlay/.test(getComputedStyle(t).overflowY) && t.scrollHeight > t.clientHeight) return t;
|
|
1814
|
+
}
|
|
1815
|
+
function $n({ controller: e, element: t, trigger: n }) {
|
|
1816
|
+
switch (n) {
|
|
1814
1817
|
case "mount": return !0;
|
|
1815
|
-
case "visible": return
|
|
1816
|
-
repeat: !1,
|
|
1817
|
-
target: e
|
|
1818
|
-
});
|
|
1818
|
+
case "visible": return e.revealed;
|
|
1819
1819
|
case "scroll": return ln({
|
|
1820
|
+
container: Qn(t),
|
|
1820
1821
|
sync: !0,
|
|
1821
|
-
target:
|
|
1822
|
+
target: t
|
|
1822
1823
|
});
|
|
1823
1824
|
default: return !1;
|
|
1824
1825
|
}
|
|
1825
1826
|
}
|
|
1826
|
-
function
|
|
1827
|
+
function er(e) {
|
|
1828
|
+
let t = new IntersectionObserver((n) => {
|
|
1829
|
+
n.some((e) => e.isIntersecting) && (t.disconnect(), e.controller.revealed = !0, gr(e.controller));
|
|
1830
|
+
});
|
|
1831
|
+
t.observe(e.element), e.controller.cleanups.push(() => t.disconnect());
|
|
1832
|
+
}
|
|
1833
|
+
function tr(e) {
|
|
1827
1834
|
return e instanceof HTMLElement && ![
|
|
1828
1835
|
"LINK",
|
|
1829
1836
|
"META",
|
|
@@ -1832,16 +1839,16 @@ function $n(e) {
|
|
|
1832
1839
|
"TEMPLATE"
|
|
1833
1840
|
].includes(e.tagName);
|
|
1834
1841
|
}
|
|
1835
|
-
function
|
|
1836
|
-
return [...e.children].filter(
|
|
1842
|
+
function nr(e) {
|
|
1843
|
+
return [...e.children].filter(tr);
|
|
1837
1844
|
}
|
|
1838
|
-
function
|
|
1845
|
+
function rr(e) {
|
|
1839
1846
|
return e.sort((e, t) => e.element.compareDocumentPosition(t.element) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);
|
|
1840
1847
|
}
|
|
1841
|
-
function
|
|
1848
|
+
function ir({ controller: e, element: t }) {
|
|
1842
1849
|
return Hn.get(t) === e;
|
|
1843
1850
|
}
|
|
1844
|
-
function
|
|
1851
|
+
function ar(e, t, n, r = $n(e)) {
|
|
1845
1852
|
let { controller: i, options: a, preset: o, reduced: s } = e, c = Wt(t, {
|
|
1846
1853
|
...o.params,
|
|
1847
1854
|
alternate: a.alternate ?? o.alternate ?? !1,
|
|
@@ -1851,96 +1858,100 @@ function rr(e, t, n, r = Qn(e.element, e.trigger)) {
|
|
|
1851
1858
|
ease: a.ease ?? o.ease ?? Rn.ease,
|
|
1852
1859
|
loop: Jn(e)
|
|
1853
1860
|
});
|
|
1854
|
-
return i.animations.push(c), c;
|
|
1861
|
+
return e.trigger === "visible" && !r && c.seek(0), i.animations.push(c), c;
|
|
1855
1862
|
}
|
|
1856
|
-
function
|
|
1863
|
+
function or({ controller: e, element: t }, n) {
|
|
1857
1864
|
let r = new MutationObserver((e) => {
|
|
1858
|
-
let t = e.flatMap((e) => [...e.addedNodes]).filter(
|
|
1859
|
-
(t.length || e.some((e) => [...e.removedNodes].some(
|
|
1865
|
+
let t = e.flatMap((e) => [...e.addedNodes]).filter(tr);
|
|
1866
|
+
(t.length || e.some((e) => [...e.removedNodes].some(tr))) && n(t);
|
|
1860
1867
|
});
|
|
1861
1868
|
r.observe(t, { childList: !0 }), e.cleanups.push(() => r.disconnect());
|
|
1862
1869
|
}
|
|
1863
|
-
function
|
|
1864
|
-
|
|
1865
|
-
t.length &&
|
|
1866
|
-
});
|
|
1870
|
+
function sr(e) {
|
|
1871
|
+
ar(e, nr(e.element), Xn(e)), or(e, (t) => {
|
|
1872
|
+
t.length && ar(e, t, Xn(e, 0));
|
|
1873
|
+
}), yr(e);
|
|
1867
1874
|
}
|
|
1868
|
-
function
|
|
1875
|
+
function cr(e) {
|
|
1869
1876
|
let t = new Map(e.map((e) => [e.element, e])), n = new IntersectionObserver((e) => {
|
|
1870
|
-
let r =
|
|
1877
|
+
let r = rr(e.filter((e) => e.isIntersecting).map((e) => t.get(e.target)).filter((e) => !!e && ir(e)));
|
|
1871
1878
|
r.forEach((e, t) => {
|
|
1872
1879
|
n.unobserve(e.element);
|
|
1873
|
-
let i = setTimeout(() =>
|
|
1880
|
+
let i = setTimeout(() => gr(e.controller), Zn(e, t, r.length, 0));
|
|
1874
1881
|
e.controller.cleanups.push(() => clearTimeout(i));
|
|
1875
1882
|
});
|
|
1876
1883
|
});
|
|
1877
|
-
for (let t of e)
|
|
1884
|
+
for (let t of e) ar(t, t.element, t.options.delay ?? 0, !1), n.observe(t.element), t.controller.cleanups.push(() => n.unobserve(t.element));
|
|
1878
1885
|
}
|
|
1879
|
-
var
|
|
1880
|
-
function
|
|
1881
|
-
return e ? (
|
|
1886
|
+
var lr = /* @__PURE__ */ new WeakMap(), ur = 0, dr = /* @__PURE__ */ new Map();
|
|
1887
|
+
function fr(e) {
|
|
1888
|
+
return e ? (lr.has(e) || lr.set(e, ur++), String(lr.get(e))) : "none";
|
|
1882
1889
|
}
|
|
1883
|
-
function
|
|
1884
|
-
|
|
1885
|
-
let t = `${
|
|
1886
|
-
|
|
1890
|
+
function pr(e) {
|
|
1891
|
+
dr.size || queueMicrotask(mr);
|
|
1892
|
+
let t = `${fr(e.element.parentElement)}/${e.controller.key}`;
|
|
1893
|
+
dr.set(t, [...dr.get(t) ?? [], e]);
|
|
1887
1894
|
}
|
|
1888
|
-
function
|
|
1889
|
-
let e = [...
|
|
1890
|
-
|
|
1895
|
+
function mr() {
|
|
1896
|
+
let e = [...dr.values()];
|
|
1897
|
+
dr = /* @__PURE__ */ new Map();
|
|
1891
1898
|
for (let t of e) {
|
|
1892
|
-
let e =
|
|
1893
|
-
e.length === 1 ?
|
|
1899
|
+
let e = rr(t.filter(ir));
|
|
1900
|
+
e.length === 1 ? sr(e[0]) : e[0]?.trigger === "visible" ? cr(e) : e.forEach((t, n) => ar(t, t.element, Zn(t, n, e.length)));
|
|
1894
1901
|
}
|
|
1895
1902
|
}
|
|
1896
|
-
function
|
|
1903
|
+
function hr({ controller: e, element: t }, n, r) {
|
|
1897
1904
|
for (let i of n) t.addEventListener(i, r), e.cleanups.push(() => t.removeEventListener(i, r));
|
|
1898
1905
|
}
|
|
1899
|
-
function
|
|
1906
|
+
function gr(e) {
|
|
1900
1907
|
e.animations.forEach((e) => e.play());
|
|
1901
1908
|
}
|
|
1902
|
-
function
|
|
1909
|
+
function _r(e) {
|
|
1903
1910
|
e.animations.forEach((t) => e.looping ? t.pause().seek(0) : t.reverse());
|
|
1904
1911
|
}
|
|
1905
|
-
function
|
|
1912
|
+
function vr(e, t, n) {
|
|
1906
1913
|
if (e.state !== t) {
|
|
1907
1914
|
if (e.state = t, n && !e.looping) {
|
|
1908
1915
|
e.animations.forEach((e) => e.seek(t ? e.duration : 0));
|
|
1909
1916
|
return;
|
|
1910
1917
|
}
|
|
1911
|
-
t ?
|
|
1918
|
+
t ? gr(e) : _r(e);
|
|
1912
1919
|
}
|
|
1913
1920
|
}
|
|
1914
|
-
function
|
|
1921
|
+
function yr(e) {
|
|
1915
1922
|
let { controller: t, options: n, trigger: r } = e;
|
|
1916
1923
|
switch (r) {
|
|
1917
1924
|
case "hover":
|
|
1918
|
-
|
|
1925
|
+
hr(e, ["pointerenter"], () => gr(t)), hr(e, ["pointerleave"], () => _r(t));
|
|
1919
1926
|
break;
|
|
1920
1927
|
case "press":
|
|
1921
|
-
|
|
1928
|
+
hr(e, ["pointerdown"], () => gr(t)), hr(e, [
|
|
1922
1929
|
"pointerup",
|
|
1923
1930
|
"pointerleave",
|
|
1924
1931
|
"pointercancel"
|
|
1925
|
-
], () =>
|
|
1932
|
+
], () => _r(t));
|
|
1926
1933
|
break;
|
|
1927
1934
|
case "focus":
|
|
1928
|
-
|
|
1935
|
+
hr(e, ["focusin"], () => gr(t)), hr(e, ["focusout"], () => _r(t));
|
|
1929
1936
|
break;
|
|
1930
1937
|
case "state":
|
|
1931
|
-
|
|
1938
|
+
vr(t, !!n.state, !0);
|
|
1939
|
+
return;
|
|
1940
|
+
case "visible":
|
|
1941
|
+
er(e);
|
|
1932
1942
|
return;
|
|
1933
1943
|
default: return;
|
|
1934
1944
|
}
|
|
1935
1945
|
t.animations.forEach((e) => e.seek(0));
|
|
1936
1946
|
}
|
|
1937
|
-
function
|
|
1938
|
-
|
|
1947
|
+
function br(e, t) {
|
|
1948
|
+
xr(e);
|
|
1939
1949
|
let n = {
|
|
1940
1950
|
animations: [],
|
|
1941
1951
|
cleanups: [],
|
|
1942
1952
|
key: qn(t),
|
|
1943
|
-
looping: !1
|
|
1953
|
+
looping: !1,
|
|
1954
|
+
revealed: !1
|
|
1944
1955
|
};
|
|
1945
1956
|
Hn.set(e, n);
|
|
1946
1957
|
let r = Gn(t), i = Kn();
|
|
@@ -1953,40 +1964,40 @@ function vr(e, t) {
|
|
|
1953
1964
|
reduced: i,
|
|
1954
1965
|
trigger: i && t.trigger === "visible" ? "mount" : t.trigger
|
|
1955
1966
|
};
|
|
1956
|
-
if (n.looping = Jn(a) === !0, t.split) n.splitter = In(e, { [t.split]: !0 }),
|
|
1957
|
-
else if (t.stagger === void 0)
|
|
1967
|
+
if (n.looping = Jn(a) === !0, t.split) n.splitter = In(e, { [t.split]: !0 }), ar(a, n.splitter[t.split], Xn(a));
|
|
1968
|
+
else if (t.stagger === void 0) ar(a, e, Xn(a));
|
|
1958
1969
|
else if (a.trigger === "mount" || a.trigger === "visible") {
|
|
1959
|
-
|
|
1970
|
+
pr(a);
|
|
1960
1971
|
return;
|
|
1961
|
-
} else
|
|
1962
|
-
|
|
1972
|
+
} else ar(a, nr(e), Xn(a)), or(a, () => br(e, t));
|
|
1973
|
+
yr(a);
|
|
1963
1974
|
}
|
|
1964
|
-
function
|
|
1975
|
+
function xr(e) {
|
|
1965
1976
|
let t = Hn.get(e);
|
|
1966
1977
|
t && (t.cleanups.forEach((e) => e()), t.animations.forEach((e) => e.revert()), t.splitter?.revert(), Hn.delete(e));
|
|
1967
1978
|
}
|
|
1968
|
-
function
|
|
1979
|
+
function Sr(e) {
|
|
1969
1980
|
for (let t of e) {
|
|
1970
1981
|
let e = Un.get(t);
|
|
1971
|
-
e &&
|
|
1982
|
+
e && br(t, e);
|
|
1972
1983
|
}
|
|
1973
1984
|
}
|
|
1974
|
-
var
|
|
1985
|
+
var Cr = {
|
|
1975
1986
|
mounted(e, { value: t }) {
|
|
1976
|
-
Un.set(e, t),
|
|
1987
|
+
Un.set(e, t), br(e, t);
|
|
1977
1988
|
},
|
|
1978
1989
|
updated(e, { value: t }) {
|
|
1979
1990
|
Un.set(e, t);
|
|
1980
1991
|
let n = Hn.get(e);
|
|
1981
1992
|
if (!n || n.key !== qn(t)) {
|
|
1982
|
-
|
|
1993
|
+
br(e, t);
|
|
1983
1994
|
return;
|
|
1984
1995
|
}
|
|
1985
|
-
t.trigger === "state" &&
|
|
1996
|
+
t.trigger === "state" && vr(n, !!t.state, !1);
|
|
1986
1997
|
},
|
|
1987
1998
|
unmounted(e) {
|
|
1988
|
-
Un.delete(e),
|
|
1999
|
+
Un.delete(e), xr(e);
|
|
1989
2000
|
}
|
|
1990
2001
|
};
|
|
1991
2002
|
//#endregion
|
|
1992
|
-
export {
|
|
2003
|
+
export { Sr as a, Bn as i, Ln as n, Cr as o, Rn as r, Dt as s, zn as t };
|