@cliquify.me/elements-ui 8.0.3 → 8.0.4
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.es.js +1098 -1073
- package/package.json +6 -6
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var Uo = (t, n, r) => n in t ?
|
|
3
|
-
var
|
|
4
|
-
import { jsx as f, jsxs as
|
|
5
|
-
import { Sequence as Po, AbsoluteFill as po, Audio as Wo, Easing as w, interpolate as W, HtmlInCanvas as Ko, useCurrentFrame as
|
|
6
|
-
import { TransitionSeries as
|
|
7
|
-
import { BoxAnim as
|
|
1
|
+
var Qo = Object.defineProperty;
|
|
2
|
+
var Uo = (t, n, r) => n in t ? Qo(t, n, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[n] = r;
|
|
3
|
+
var Wt = (t, n, r) => Uo(t, typeof n != "symbol" ? n + "" : n, r);
|
|
4
|
+
import { jsx as f, jsxs as vt, Fragment as kt } from "react/jsx-runtime";
|
|
5
|
+
import { Sequence as Po, AbsoluteFill as po, Audio as Wo, Easing as w, interpolate as W, HtmlInCanvas as Ko, useCurrentFrame as Yt, OffthreadVideo as Dt, Img as Qt, spring as St, useVideoConfig as Jo, random as qo } from "remotion";
|
|
6
|
+
import { TransitionSeries as Eo, Transitions as To } from "@cliquify.me/transitions";
|
|
7
|
+
import { BoxAnim as At, ContentAnim as Ut, MaskAnim as co } from "@cliquify.me/animations";
|
|
8
8
|
import Do from "@emotion/styled";
|
|
9
9
|
import { css as tn } from "@emotion/react";
|
|
10
|
-
import
|
|
10
|
+
import Et, { useCallback as on, useSyncExternalStore as nn, Component as rn, useMemo as to, useState as fo, useRef as mo, useEffect as eo } from "react";
|
|
11
11
|
import { blur as en } from "@remotion/effects/blur";
|
|
12
12
|
import { vignette as cn } from "@remotion/effects/vignette";
|
|
13
13
|
import { chromaticAberration as sn } from "@remotion/effects/chromatic-aberration";
|
|
@@ -23,7 +23,7 @@ import { lightLeak as yn } from "@remotion/effects/light-leak";
|
|
|
23
23
|
import { getAudioData as bn, visualizeAudio as gn } from "@remotion/media-utils";
|
|
24
24
|
import { isEqual as vn, cloneDeep as Tt } from "lodash";
|
|
25
25
|
import { Rect as xn, Circle as $n, Triangle as Mn, Star as Sn, Polygon as In, Ellipse as kn } from "@remotion/shapes";
|
|
26
|
-
const
|
|
26
|
+
const It = (t, n) => {
|
|
27
27
|
const r = t.from / 1e3 * n, s = t.to / 1e3 * n - r;
|
|
28
28
|
return { from: r, durationInFrames: s };
|
|
29
29
|
}, wn = (t, n) => ({
|
|
@@ -32,7 +32,7 @@ const $t = (t, n) => {
|
|
|
32
32
|
top: -(n.y || 0),
|
|
33
33
|
left: -(n.x || 0),
|
|
34
34
|
position: "absolute"
|
|
35
|
-
}),
|
|
35
|
+
}), Vo = (t, n, r = {}) => {
|
|
36
36
|
const s = `${Math.min(
|
|
37
37
|
n.width || t.width || 0,
|
|
38
38
|
n.height || t.height || 0
|
|
@@ -63,7 +63,7 @@ const $t = (t, n) => {
|
|
|
63
63
|
pointerEvents: "none",
|
|
64
64
|
zIndex: 10
|
|
65
65
|
};
|
|
66
|
-
},
|
|
66
|
+
}, Gt = (t) => ({
|
|
67
67
|
position: "relative",
|
|
68
68
|
textDecoration: t.textDecoration || "none",
|
|
69
69
|
WebkitTextStroke: `${t.borderWidth}px ${t.borderColor}`,
|
|
@@ -153,13 +153,13 @@ const $t = (t, n) => {
|
|
|
153
153
|
}
|
|
154
154
|
)
|
|
155
155
|
}
|
|
156
|
-
),
|
|
156
|
+
), gt = ({
|
|
157
157
|
item: t,
|
|
158
158
|
options: n,
|
|
159
159
|
children: r
|
|
160
160
|
}) => {
|
|
161
161
|
var m, v;
|
|
162
|
-
const { details: s } = t, { fps: e, isTransition: a } = n, { from: d, durationInFrames: o } =
|
|
162
|
+
const { details: s } = t, { fps: e, isTransition: a } = n, { from: d, durationInFrames: o } = It(
|
|
163
163
|
{
|
|
164
164
|
from: t.display.from,
|
|
165
165
|
to: t.display.to
|
|
@@ -168,18 +168,18 @@ const $t = (t, n) => {
|
|
|
168
168
|
), p = s.crop || {
|
|
169
169
|
width: t.details.width,
|
|
170
170
|
height: t.details.height
|
|
171
|
-
}, c = ((m = s == null ? void 0 : s.background) == null ? void 0 : m.type) === "color" ? (v = s == null ? void 0 : s.background) == null ? void 0 : v.value : typeof (s == null ? void 0 : s.background) == "string" ? s == null ? void 0 : s.background : "transparent",
|
|
171
|
+
}, c = ((m = s == null ? void 0 : s.background) == null ? void 0 : m.type) === "color" ? (v = s == null ? void 0 : s.background) == null ? void 0 : v.value : typeof (s == null ? void 0 : s.background) == "string" ? s == null ? void 0 : s.background : "transparent", h = ["template", "composition"].includes(t.type), l = ["image", "video"].includes(t.type), i = ["text", "caption"].includes(t.type);
|
|
172
172
|
let u = Kt(s, p, { background: c });
|
|
173
173
|
if (l) {
|
|
174
|
-
const { background: b,
|
|
175
|
-
u =
|
|
174
|
+
const { background: b, ...x } = u;
|
|
175
|
+
u = x;
|
|
176
176
|
}
|
|
177
|
-
|
|
178
|
-
const y =
|
|
179
|
-
return a ? /* @__PURE__ */
|
|
180
|
-
|
|
177
|
+
i && delete u.boxShadow;
|
|
178
|
+
const y = h ? "!pointer-events-auto" : "";
|
|
179
|
+
return a ? /* @__PURE__ */ vt(
|
|
180
|
+
Eo.Sequence,
|
|
181
181
|
{
|
|
182
|
-
durationInFrames: o,
|
|
182
|
+
durationInFrames: o + 1,
|
|
183
183
|
premountFor: t.type === "video" || t.type === "audio" || t.type === "image" ? 100 : void 0,
|
|
184
184
|
style: { pointerEvents: "none" },
|
|
185
185
|
children: [
|
|
@@ -211,7 +211,7 @@ const $t = (t, n) => {
|
|
|
211
211
|
]
|
|
212
212
|
},
|
|
213
213
|
t.id
|
|
214
|
-
) : /* @__PURE__ */
|
|
214
|
+
) : /* @__PURE__ */ vt(
|
|
215
215
|
Po,
|
|
216
216
|
{
|
|
217
217
|
from: d,
|
|
@@ -265,9 +265,9 @@ function Re({
|
|
|
265
265
|
volume: s.volume / 100
|
|
266
266
|
}
|
|
267
267
|
);
|
|
268
|
-
return
|
|
268
|
+
return gt({ item: t, options: n, children: a });
|
|
269
269
|
}
|
|
270
|
-
const
|
|
270
|
+
const Nt = (t, n, r, s) => {
|
|
271
271
|
let e = null, a = null, d = null, o = null;
|
|
272
272
|
return t != null && t.in && (e = [], t.in.composition.forEach((p) => {
|
|
273
273
|
e.push({
|
|
@@ -297,9 +297,9 @@ const It = (t, n, r, s) => {
|
|
|
297
297
|
delay: p.delay
|
|
298
298
|
});
|
|
299
299
|
})), t != null && t.timed && s !== void 0 && r !== void 0 && (o = [], t.timed.composition.forEach((p) => {
|
|
300
|
-
const c = p.delay,
|
|
300
|
+
const c = p.delay, h = n.display.from * s / 1e3, i = r - h - c >= 0;
|
|
301
301
|
o.push({
|
|
302
|
-
property:
|
|
302
|
+
property: i ? p.property : "none",
|
|
303
303
|
from: Number(p.from || 0),
|
|
304
304
|
to: Number(p.to || 0),
|
|
305
305
|
durationInFrames: p.durationInFrames,
|
|
@@ -398,15 +398,15 @@ const It = (t, n, r, s) => {
|
|
|
398
398
|
animation: d,
|
|
399
399
|
playerRef: o
|
|
400
400
|
}) => {
|
|
401
|
-
const p = Yn(o || null), { start: c, end:
|
|
401
|
+
const p = Yn(o || null), { start: c, end: h } = t, l = (c + n) / 1e3 * 30, i = (h + n) / 1e3 * 30, u = p > l && p < i, y = p > l, m = u ? r : y ? e : a, v = Pn.includes(d) ? u ? 1.2 : 0.9 : 1, b = t.word.length, x = i - l, g = Math.min(
|
|
402
402
|
b,
|
|
403
403
|
Math.floor(
|
|
404
|
-
(p - l) /
|
|
404
|
+
(p - l) / x * b
|
|
405
405
|
)
|
|
406
|
-
), M = d === "letteeTracy" ? W(p, [l,
|
|
406
|
+
), M = d === "letteeTracy" ? W(p, [l, i], [0, 1], {
|
|
407
407
|
extrapolateLeft: "clamp",
|
|
408
408
|
extrapolateRight: "clamp"
|
|
409
|
-
}) : 1,
|
|
409
|
+
}) : 1, $ = Xn.includes(d) ? t.word.slice(0, g) : t.word;
|
|
410
410
|
return /* @__PURE__ */ f(
|
|
411
411
|
Rn,
|
|
412
412
|
{
|
|
@@ -416,7 +416,7 @@ const It = (t, n, r, s) => {
|
|
|
416
416
|
scale: v,
|
|
417
417
|
animation: d,
|
|
418
418
|
style: { opacity: M },
|
|
419
|
-
children:
|
|
419
|
+
children: $
|
|
420
420
|
}
|
|
421
421
|
);
|
|
422
422
|
};
|
|
@@ -424,13 +424,13 @@ function Xe({
|
|
|
424
424
|
item: t,
|
|
425
425
|
options: n
|
|
426
426
|
}) {
|
|
427
|
-
const { fps: r, frame: s } = n, { details: e, display: a, animations: d } = t, { animationIn: o, animationOut: p, animationTimed: c } =
|
|
427
|
+
const { fps: r, frame: s } = n, { details: e, display: a, animations: d } = t, { animationIn: o, animationOut: p, animationTimed: c } = Nt(
|
|
428
428
|
d,
|
|
429
429
|
t,
|
|
430
430
|
s,
|
|
431
431
|
r
|
|
432
|
-
), { from:
|
|
433
|
-
let y = Math.max((s ?? 0) -
|
|
432
|
+
), { from: h, durationInFrames: l } = It(t.display, r), [i] = e.words, u = a.from - i.start;
|
|
433
|
+
let y = Math.max((s ?? 0) - h, 0), m = {};
|
|
434
434
|
switch (e == null ? void 0 : e.animation) {
|
|
435
435
|
case "letterElla":
|
|
436
436
|
m = Fn(y);
|
|
@@ -458,8 +458,8 @@ function Xe({
|
|
|
458
458
|
...m.scale !== void 0 && {
|
|
459
459
|
transform: `scale(${m.scale})`
|
|
460
460
|
}
|
|
461
|
-
}, b = (s || 0) - t.display.from * r / 1e3,
|
|
462
|
-
|
|
461
|
+
}, b = (s || 0) - t.display.from * r / 1e3, x = /* @__PURE__ */ f(
|
|
462
|
+
At,
|
|
463
463
|
{
|
|
464
464
|
style: Kt(e),
|
|
465
465
|
animationIn: o,
|
|
@@ -476,7 +476,7 @@ function Xe({
|
|
|
476
476
|
"div",
|
|
477
477
|
{
|
|
478
478
|
style: {
|
|
479
|
-
...
|
|
479
|
+
...Gt(e),
|
|
480
480
|
...v,
|
|
481
481
|
transition: "transform 0.2s ease"
|
|
482
482
|
},
|
|
@@ -500,43 +500,43 @@ function Xe({
|
|
|
500
500
|
)
|
|
501
501
|
}
|
|
502
502
|
);
|
|
503
|
-
return
|
|
503
|
+
return gt({ item: t, options: n, children: x });
|
|
504
504
|
}
|
|
505
505
|
const Pe = ({
|
|
506
506
|
item: t,
|
|
507
507
|
options: n
|
|
508
508
|
}) => {
|
|
509
|
-
var
|
|
510
|
-
const { fps: r, frame: s } = n, { details: e, animations: a } = t, { animationIn: d, animationOut: o, animationTimed: p } =
|
|
509
|
+
var i, u, y;
|
|
510
|
+
const { fps: r, frame: s } = n, { details: e, animations: a } = t, { animationIn: d, animationOut: o, animationTimed: p } = Nt(
|
|
511
511
|
a,
|
|
512
512
|
t,
|
|
513
513
|
s,
|
|
514
514
|
r
|
|
515
|
-
), { durationInFrames: c } =
|
|
516
|
-
|
|
515
|
+
), { durationInFrames: c } = It(t.display, r), h = (s || 0) - t.display.from * r / 1e3, l = /* @__PURE__ */ f(
|
|
516
|
+
At,
|
|
517
517
|
{
|
|
518
518
|
style: Kt(e),
|
|
519
519
|
animationIn: d,
|
|
520
520
|
animationOut: o,
|
|
521
|
-
frame:
|
|
521
|
+
frame: h,
|
|
522
522
|
durationInFrames: c,
|
|
523
523
|
children: /* @__PURE__ */ f(
|
|
524
524
|
Ut,
|
|
525
525
|
{
|
|
526
526
|
animationTimed: p,
|
|
527
527
|
durationInFrames: c,
|
|
528
|
-
frame:
|
|
528
|
+
frame: h,
|
|
529
529
|
style: e,
|
|
530
530
|
children: /* @__PURE__ */ f(
|
|
531
531
|
co,
|
|
532
532
|
{
|
|
533
533
|
item: t,
|
|
534
534
|
keyframeAnimations: [
|
|
535
|
-
...((
|
|
535
|
+
...((i = a == null ? void 0 : a.in) == null ? void 0 : i.composition) || [],
|
|
536
536
|
...((u = a == null ? void 0 : a.timed) == null ? void 0 : u.composition) || [],
|
|
537
537
|
...((y = a == null ? void 0 : a.loop) == null ? void 0 : y.composition) || []
|
|
538
538
|
],
|
|
539
|
-
frame:
|
|
539
|
+
frame: h,
|
|
540
540
|
children: /* @__PURE__ */ f("div", { dangerouslySetInnerHTML: { __html: t.details.svgString } })
|
|
541
541
|
}
|
|
542
542
|
)
|
|
@@ -544,7 +544,7 @@ const Pe = ({
|
|
|
544
544
|
)
|
|
545
545
|
}
|
|
546
546
|
);
|
|
547
|
-
return
|
|
547
|
+
return gt({ item: t, options: n, children: l });
|
|
548
548
|
};
|
|
549
549
|
class yo extends rn {
|
|
550
550
|
constructor(n) {
|
|
@@ -561,7 +561,7 @@ class yo extends rn {
|
|
|
561
561
|
);
|
|
562
562
|
}
|
|
563
563
|
render() {
|
|
564
|
-
return this.state.hasError || !this.props.effects ? /* @__PURE__ */ f(
|
|
564
|
+
return this.state.hasError || !this.props.effects ? /* @__PURE__ */ f(kt, { children: this.props.children }) : /* @__PURE__ */ f(
|
|
565
565
|
Ko,
|
|
566
566
|
{
|
|
567
567
|
width: this.props.width,
|
|
@@ -583,33 +583,33 @@ const Oo = ({
|
|
|
583
583
|
width: o,
|
|
584
584
|
height: p,
|
|
585
585
|
borderRadius: c,
|
|
586
|
-
borderWidth:
|
|
586
|
+
borderWidth: h,
|
|
587
587
|
borderColor: l,
|
|
588
|
-
boxShadow:
|
|
588
|
+
boxShadow: i,
|
|
589
589
|
marqueeDetails: u,
|
|
590
590
|
effects: y
|
|
591
591
|
}) => {
|
|
592
|
-
const m =
|
|
592
|
+
const m = Yt(), v = typeof r == "number" && !isNaN(r) ? r : m, b = Math.max(0, v - (s || 0)), x = Math.min(1, Math.max(0, b / (e || 1))), g = o || 300, M = p || 300, $ = (u == null ? void 0 : u.direction) || "horizontal", I = $ === "static", k = Math.min(12, Math.max(1, Number((u == null ? void 0 : u.repeatX) ?? 5))), S = Math.min(12, Math.max(1, Number((u == null ? void 0 : u.repeatY) ?? 5))), Y = (u == null ? void 0 : u.baseSpeed) !== void 0 ? Number(u.baseSpeed) : 0.25, N = (u == null ? void 0 : u.speedVariation) !== void 0 ? Number(u.speedVariation) : 0.5, V = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialBaseSpeed) !== void 0 ? Number(u.initialBaseSpeed) : Y, F = u != null && u.hasInitialValue ? V + (Y - V) * x : Y, X = I ? 0 : F * 80, P = I ? 0 : F * 80, G = (u == null ? void 0 : u.scaleFactor) !== void 0 ? Number(u.scaleFactor) : 1, E = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialScaleFactor) !== void 0 ? Number(u.initialScaleFactor) : G, O = u != null && u.hasInitialValue ? E + (G - E) * x : G, C = (u == null ? void 0 : u.lineOffset) !== void 0 ? Number(u.lineOffset) : 0.5, B = g / k, z = M / S, et = (u == null ? void 0 : u.gapX) !== void 0 ? Number(u.gapX) : 60, T = (u == null ? void 0 : u.gapY) !== void 0 ? Number(u.gapY) : 60, Z = et / 60 * Math.min(20, B * 0.2), J = T / 60 * Math.min(20, z * 0.2), D = Math.max(
|
|
593
593
|
10,
|
|
594
594
|
(B - Z) * Math.max(0.1, O)
|
|
595
|
-
),
|
|
595
|
+
), st = Math.max(
|
|
596
596
|
10,
|
|
597
|
-
(z -
|
|
598
|
-
),
|
|
597
|
+
(z - J) * Math.max(0.1, O)
|
|
598
|
+
), mt = i ? typeof i == "string" ? i : `${i.x ?? 0}px ${i.y ?? 0}px ${i.blur ?? 0}px ${i.color ?? ""}` : void 0, L = $ === "vertical" || $ === "up" || $ === "down", tt = $ === "diagonal", U = S + ((L || tt) && P > 0 ? 2 : 0), ot = k + ((!L || tt) && X > 0 ? 2 : 0), A = (U - 1) / 2, Q = (ot - 1) / 2, lt = Array.from({ length: U }, (q, rt) => rt - A), Mt = Array.from({ length: ot }, (q, rt) => rt - Q), pt = (q, rt, nt, dt) => /* @__PURE__ */ f(
|
|
599
599
|
"div",
|
|
600
600
|
{
|
|
601
601
|
style: {
|
|
602
602
|
position: "absolute",
|
|
603
|
-
left: `calc(50% + ${
|
|
604
|
-
top: `calc(50% + ${
|
|
603
|
+
left: `calc(50% + ${rt}px)`,
|
|
604
|
+
top: `calc(50% + ${nt}px)`,
|
|
605
605
|
transform: "translate(-50%, -50%)",
|
|
606
|
-
width: `${
|
|
607
|
-
height: `${
|
|
606
|
+
width: `${D}px`,
|
|
607
|
+
height: `${st}px`,
|
|
608
608
|
borderRadius: c || 0,
|
|
609
|
-
boxShadow:
|
|
610
|
-
opacity:
|
|
609
|
+
boxShadow: mt,
|
|
610
|
+
opacity: dt ? 1 : 0.85
|
|
611
611
|
},
|
|
612
|
-
children: /* @__PURE__ */
|
|
612
|
+
children: /* @__PURE__ */ vt(
|
|
613
613
|
"div",
|
|
614
614
|
{
|
|
615
615
|
style: {
|
|
@@ -631,7 +631,7 @@ const Oo = ({
|
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
633
|
) : /* @__PURE__ */ f(
|
|
634
|
-
|
|
634
|
+
Qt,
|
|
635
635
|
{
|
|
636
636
|
src: t,
|
|
637
637
|
style: {
|
|
@@ -641,14 +641,14 @@ const Oo = ({
|
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
),
|
|
644
|
-
|
|
644
|
+
h && l ? /* @__PURE__ */ f(
|
|
645
645
|
"div",
|
|
646
646
|
{
|
|
647
647
|
style: {
|
|
648
648
|
position: "absolute",
|
|
649
649
|
inset: 0,
|
|
650
650
|
borderRadius: c || 0,
|
|
651
|
-
border: `${
|
|
651
|
+
border: `${h}px solid ${l}`,
|
|
652
652
|
boxSizing: "border-box",
|
|
653
653
|
pointerEvents: "none"
|
|
654
654
|
}
|
|
@@ -658,9 +658,9 @@ const Oo = ({
|
|
|
658
658
|
}
|
|
659
659
|
)
|
|
660
660
|
},
|
|
661
|
-
|
|
661
|
+
q
|
|
662
662
|
);
|
|
663
|
-
return
|
|
663
|
+
return L ? /* @__PURE__ */ f(
|
|
664
664
|
"div",
|
|
665
665
|
{
|
|
666
666
|
style: {
|
|
@@ -670,22 +670,22 @@ const Oo = ({
|
|
|
670
670
|
overflow: "hidden",
|
|
671
671
|
borderRadius: c || 0
|
|
672
672
|
},
|
|
673
|
-
children:
|
|
674
|
-
let
|
|
675
|
-
|
|
676
|
-
const
|
|
677
|
-
return
|
|
678
|
-
const
|
|
679
|
-
return
|
|
680
|
-
`v-${
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
673
|
+
children: Mt.map((q, rt) => {
|
|
674
|
+
let nt = rt % 2 === 0 ? 1 : -1;
|
|
675
|
+
$ === "up" && (nt = -1), $ === "down" && (nt = 1);
|
|
676
|
+
const dt = 1 + rt % 2 * (N * 0.5), it = P > 0 && nt !== 0 ? nt * (v * P * dt) + q * (z * C) : q * (z * C), yt = P === 0 || nt === 0 ? 0 : (it % z + z) % z;
|
|
677
|
+
return lt.map((xt, wt) => {
|
|
678
|
+
const ft = q * B, $t = xt * z + yt;
|
|
679
|
+
return pt(
|
|
680
|
+
`v-${rt}-${wt}`,
|
|
681
|
+
ft,
|
|
682
|
+
$t,
|
|
683
|
+
xt === 0 && q === 0
|
|
684
684
|
);
|
|
685
685
|
});
|
|
686
686
|
})
|
|
687
687
|
}
|
|
688
|
-
) :
|
|
688
|
+
) : tt ? /* @__PURE__ */ f(
|
|
689
689
|
"div",
|
|
690
690
|
{
|
|
691
691
|
style: {
|
|
@@ -695,15 +695,15 @@ const Oo = ({
|
|
|
695
695
|
overflow: "hidden",
|
|
696
696
|
borderRadius: c || 0
|
|
697
697
|
},
|
|
698
|
-
children:
|
|
699
|
-
const
|
|
700
|
-
return
|
|
701
|
-
const
|
|
702
|
-
return
|
|
703
|
-
`d-${
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
698
|
+
children: lt.map((q, rt) => {
|
|
699
|
+
const nt = rt % 2 === 0 ? 1 : -1, dt = rt % 2 === 0 ? 1 : -1, it = 1 + rt % 2 * (N * 0.5), yt = X > 0 ? nt * (v * X * it) + q * (B * C) : q * (B * C), xt = X === 0 ? 0 : (yt % B + B) % B, wt = P > 0 ? dt * (v * P * it) + q * (z * C) : q * (z * C), ft = P === 0 ? 0 : (wt % z + z) % z;
|
|
700
|
+
return Mt.map(($t, Ft) => {
|
|
701
|
+
const Rt = $t * B + xt, Xt = q * z + ft;
|
|
702
|
+
return pt(
|
|
703
|
+
`d-${rt}-${Ft}`,
|
|
704
|
+
Rt,
|
|
705
|
+
Xt,
|
|
706
|
+
q === 0 && $t === 0
|
|
707
707
|
);
|
|
708
708
|
});
|
|
709
709
|
})
|
|
@@ -718,17 +718,17 @@ const Oo = ({
|
|
|
718
718
|
overflow: "hidden",
|
|
719
719
|
borderRadius: c || 0
|
|
720
720
|
},
|
|
721
|
-
children:
|
|
722
|
-
let
|
|
723
|
-
|
|
724
|
-
const
|
|
725
|
-
return
|
|
726
|
-
const
|
|
727
|
-
return
|
|
728
|
-
`h-${
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
721
|
+
children: lt.map((q, rt) => {
|
|
722
|
+
let nt = rt % 2 === 0 ? 1 : -1;
|
|
723
|
+
$ === "left" && (nt = -1), $ === "right" && (nt = 1);
|
|
724
|
+
const dt = 1 + rt % 2 * (N * 0.5), it = X > 0 && nt !== 0 ? nt * (v * X * dt) + q * (B * C) : q * (B * C), yt = X === 0 || nt === 0 ? 0 : (it % B + B) % B;
|
|
725
|
+
return Mt.map((xt, wt) => {
|
|
726
|
+
const ft = xt * B + yt, $t = q * z;
|
|
727
|
+
return pt(
|
|
728
|
+
`h-${rt}-${wt}`,
|
|
729
|
+
ft,
|
|
730
|
+
$t,
|
|
731
|
+
q === 0 && xt === 0
|
|
732
732
|
);
|
|
733
733
|
});
|
|
734
734
|
})
|
|
@@ -745,16 +745,16 @@ const Oo = ({
|
|
|
745
745
|
width: o,
|
|
746
746
|
height: p,
|
|
747
747
|
borderRadius: c,
|
|
748
|
-
borderWidth:
|
|
748
|
+
borderWidth: h,
|
|
749
749
|
borderColor: l,
|
|
750
|
-
boxShadow:
|
|
750
|
+
boxShadow: i,
|
|
751
751
|
echoesDetails: u,
|
|
752
752
|
effects: y
|
|
753
753
|
}) => {
|
|
754
|
-
const m =
|
|
755
|
-
let
|
|
756
|
-
g === "initial" ?
|
|
757
|
-
const
|
|
754
|
+
const m = Yt(), v = typeof r == "number" && !isNaN(r) ? r : m, b = o || 300, x = p || 300, g = (u == null ? void 0 : u.keepStill) || "both", M = Number((u == null ? void 0 : u.toRepeatCount) ?? 5), $ = Number((u == null ? void 0 : u.toScaleDown) ?? 0.3), I = Number((u == null ? void 0 : u.toCenterX) ?? 0.5), k = Number((u == null ? void 0 : u.toCenterY) ?? 0.5), S = (u == null ? void 0 : u.initialRepeatCount) !== void 0 ? Number(u.initialRepeatCount) : M, Y = (u == null ? void 0 : u.initialScaleDown) !== void 0 ? Number(u.initialScaleDown) : 1, N = (u == null ? void 0 : u.initialCenterX) !== void 0 ? Number(u.initialCenterX) : I, V = (u == null ? void 0 : u.initialCenterY) !== void 0 ? Number(u.initialCenterY) : k, F = Math.max(0, v - (s || 0)), X = Math.min(1, Math.max(0, F / (e || 1)));
|
|
755
|
+
let G = a + (d - a) * X;
|
|
756
|
+
g === "initial" ? G = 0 : g === "final" && (G = 1);
|
|
757
|
+
const E = Math.max(1, Math.round(W(G, [0, 1], [S, M]))), O = W(G, [0, 1], [Y, $]), C = W(G, [0, 1], [N, I]), B = W(G, [0, 1], [V, k]), z = i ? typeof i == "string" ? i : `${i.x ?? 0}px ${i.y ?? 0}px ${i.blur ?? 0}px ${i.color ?? ""}` : void 0, et = Array.from({ length: E }, (T, Z) => Z);
|
|
758
758
|
return /* @__PURE__ */ f(
|
|
759
759
|
"div",
|
|
760
760
|
{
|
|
@@ -765,8 +765,8 @@ const Oo = ({
|
|
|
765
765
|
overflow: "hidden",
|
|
766
766
|
borderRadius: c || 0
|
|
767
767
|
},
|
|
768
|
-
children: et.map((
|
|
769
|
-
const Z =
|
|
768
|
+
children: et.map((T) => {
|
|
769
|
+
const Z = E > 1 ? T / (E - 1) : 0, J = 1 - Z * (1 - Math.max(0.01, O)), D = (C - 0.5) * b * Z, st = (B - 0.5) * x * Z;
|
|
770
770
|
return /* @__PURE__ */ f(
|
|
771
771
|
"div",
|
|
772
772
|
{
|
|
@@ -775,14 +775,14 @@ const Oo = ({
|
|
|
775
775
|
left: "50%",
|
|
776
776
|
top: "50%",
|
|
777
777
|
width: `${b}px`,
|
|
778
|
-
height: `${
|
|
779
|
-
transform: `translate(-50%, -50%) translate(${
|
|
778
|
+
height: `${x}px`,
|
|
779
|
+
transform: `translate(-50%, -50%) translate(${D}px, ${st}px) scale(${J})`,
|
|
780
780
|
transformOrigin: "center center",
|
|
781
781
|
borderRadius: c || 0,
|
|
782
782
|
boxShadow: z,
|
|
783
|
-
zIndex:
|
|
783
|
+
zIndex: T + 1
|
|
784
784
|
},
|
|
785
|
-
children: /* @__PURE__ */
|
|
785
|
+
children: /* @__PURE__ */ vt(
|
|
786
786
|
"div",
|
|
787
787
|
{
|
|
788
788
|
style: {
|
|
@@ -804,7 +804,7 @@ const Oo = ({
|
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
806
|
) : /* @__PURE__ */ f(
|
|
807
|
-
|
|
807
|
+
Qt,
|
|
808
808
|
{
|
|
809
809
|
src: t,
|
|
810
810
|
style: {
|
|
@@ -814,14 +814,14 @@ const Oo = ({
|
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
816
|
),
|
|
817
|
-
|
|
817
|
+
h && l ? /* @__PURE__ */ f(
|
|
818
818
|
"div",
|
|
819
819
|
{
|
|
820
820
|
style: {
|
|
821
821
|
position: "absolute",
|
|
822
822
|
inset: 0,
|
|
823
823
|
borderRadius: c || 0,
|
|
824
|
-
border: `${
|
|
824
|
+
border: `${h}px solid ${l}`,
|
|
825
825
|
boxSizing: "border-box",
|
|
826
826
|
pointerEvents: "none"
|
|
827
827
|
}
|
|
@@ -831,12 +831,12 @@ const Oo = ({
|
|
|
831
831
|
}
|
|
832
832
|
)
|
|
833
833
|
},
|
|
834
|
-
`echo-${
|
|
834
|
+
`echo-${T}`
|
|
835
835
|
);
|
|
836
836
|
})
|
|
837
837
|
}
|
|
838
838
|
);
|
|
839
|
-
},
|
|
839
|
+
}, Go = ({
|
|
840
840
|
src: t,
|
|
841
841
|
isVideo: n,
|
|
842
842
|
frame: r,
|
|
@@ -847,13 +847,13 @@ const Oo = ({
|
|
|
847
847
|
width: o,
|
|
848
848
|
height: p,
|
|
849
849
|
borderRadius: c,
|
|
850
|
-
borderWidth:
|
|
850
|
+
borderWidth: h,
|
|
851
851
|
borderColor: l,
|
|
852
|
-
boxShadow:
|
|
852
|
+
boxShadow: i,
|
|
853
853
|
wiggleDetails: u,
|
|
854
854
|
effects: y
|
|
855
855
|
}) => {
|
|
856
|
-
const m =
|
|
856
|
+
const m = Yt(), v = typeof r == "number" && !isNaN(r) ? r : m, b = o || 300, x = p || 300, g = Number((u == null ? void 0 : u.wiggleX) ?? 20), M = Number((u == null ? void 0 : u.wiggleY) ?? 20), $ = Number((u == null ? void 0 : u.speed) ?? 3), I = Number((u == null ? void 0 : u.angle) ?? 10), k = Number((u == null ? void 0 : u.seed) ?? 1), S = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialWiggleX) !== void 0 ? Number(u.initialWiggleX) : g, Y = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialWiggleY) !== void 0 ? Number(u.initialWiggleY) : M, N = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialSpeed) !== void 0 ? Number(u.initialSpeed) : $, V = u != null && u.hasInitialValue && (u == null ? void 0 : u.initialAngle) !== void 0 ? Number(u.initialAngle) : I, F = Math.max(0, v - (s || 0)), X = Math.min(1, Math.max(0, F / (e || 1))), P = u != null && u.hasInitialValue ? S + (g - S) * X : g, G = u != null && u.hasInitialValue ? Y + (M - Y) * X : M, E = u != null && u.hasInitialValue ? N + ($ - N) * X : $, O = u != null && u.hasInitialValue ? V + (I - V) * X : I, C = v * (E * 0.08), B = k * 12.345, z = Math.sin(C + B) * Math.cos(C * 0.65 + B) * P, et = Math.cos(C * 0.85 + B) * Math.sin(C * 1.15 + B) * G, T = Math.sin(C * 0.9 + B * 1.35) * O, Z = i ? typeof i == "string" ? i : `${i.x ?? 0}px ${i.y ?? 0}px ${i.blur ?? 0}px ${i.color ?? ""}` : void 0;
|
|
857
857
|
return /* @__PURE__ */ f(
|
|
858
858
|
"div",
|
|
859
859
|
{
|
|
@@ -863,16 +863,16 @@ const Oo = ({
|
|
|
863
863
|
position: "relative",
|
|
864
864
|
overflow: "visible"
|
|
865
865
|
},
|
|
866
|
-
children: /* @__PURE__ */
|
|
866
|
+
children: /* @__PURE__ */ vt(
|
|
867
867
|
"div",
|
|
868
868
|
{
|
|
869
869
|
style: {
|
|
870
870
|
width: `${b}px`,
|
|
871
|
-
height: `${
|
|
871
|
+
height: `${x}px`,
|
|
872
872
|
position: "absolute",
|
|
873
873
|
left: "50%",
|
|
874
874
|
top: "50%",
|
|
875
|
-
transform: `translate(-50%, -50%) translate(${z}px, ${et}px) rotate(${
|
|
875
|
+
transform: `translate(-50%, -50%) translate(${z}px, ${et}px) rotate(${T}deg)`,
|
|
876
876
|
transformOrigin: "center center",
|
|
877
877
|
borderRadius: c || 0,
|
|
878
878
|
boxShadow: Z,
|
|
@@ -890,7 +890,7 @@ const Oo = ({
|
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
892
|
) : /* @__PURE__ */ f(
|
|
893
|
-
|
|
893
|
+
Qt,
|
|
894
894
|
{
|
|
895
895
|
src: t,
|
|
896
896
|
style: {
|
|
@@ -900,14 +900,14 @@ const Oo = ({
|
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
902
|
),
|
|
903
|
-
|
|
903
|
+
h && l ? /* @__PURE__ */ f(
|
|
904
904
|
"div",
|
|
905
905
|
{
|
|
906
906
|
style: {
|
|
907
907
|
position: "absolute",
|
|
908
908
|
inset: 0,
|
|
909
909
|
borderRadius: c || 0,
|
|
910
|
-
border: `${
|
|
910
|
+
border: `${h}px solid ${l}`,
|
|
911
911
|
boxSizing: "border-box",
|
|
912
912
|
pointerEvents: "none"
|
|
913
913
|
}
|
|
@@ -929,26 +929,26 @@ const Oo = ({
|
|
|
929
929
|
borderRadius: o,
|
|
930
930
|
boxShadow: p,
|
|
931
931
|
cardFlipDetails: c,
|
|
932
|
-
children:
|
|
932
|
+
children: h,
|
|
933
933
|
style: l = {}
|
|
934
934
|
}) => {
|
|
935
|
-
const
|
|
935
|
+
const i = Yt(), u = typeof t == "number" && !isNaN(t) ? t : i, y = a || 300, m = d || 300, v = (c == null ? void 0 : c.keepStill) || "both", b = Number((c == null ? void 0 : c.toRotationX) ?? 0), x = Number((c == null ? void 0 : c.toRotationY) ?? 360), g = Number((c == null ? void 0 : c.toRotationZ) ?? 0), M = Number((c == null ? void 0 : c.toPivotX) ?? 0), $ = Number((c == null ? void 0 : c.toPivotY) ?? 0), I = Number((c == null ? void 0 : c.toPerspective) ?? 0.45), k = !!(c != null && c.hasInitialValue), S = k ? Number((c == null ? void 0 : c.initialRotationX) ?? 0) : 0, Y = k ? Number((c == null ? void 0 : c.initialRotationY) ?? 0) : 0, N = k ? Number((c == null ? void 0 : c.initialRotationZ) ?? 0) : 0, V = k ? Number((c == null ? void 0 : c.initialPivotX) ?? 0) : M, F = k ? Number((c == null ? void 0 : c.initialPivotY) ?? 0) : $, X = k ? Number((c == null ? void 0 : c.initialPerspective) ?? 0.45) : I, P = (c == null ? void 0 : c.frontFace) ?? !0, G = (c == null ? void 0 : c.backFace) ?? !0, E = Math.max(0, u - (n || 0)), O = Math.min(1, Math.max(0, E / (r || 1)));
|
|
936
936
|
let B = s + (e - s) * O;
|
|
937
937
|
v === "initial" ? B = 0 : v === "final" && (B = 1);
|
|
938
|
-
const z = W(B, [0, 1], [S, b]), et = W(B, [0, 1], [Y,
|
|
938
|
+
const z = W(B, [0, 1], [S, b]), et = W(B, [0, 1], [Y, x]), T = W(B, [0, 1], [N, g]), Z = W(B, [0, 1], [V, M]), J = W(B, [0, 1], [F, $]), D = W(B, [0, 1], [X, I]), st = Math.max(y, m), mt = Math.max(
|
|
939
939
|
1200,
|
|
940
|
-
Math.round(
|
|
941
|
-
),
|
|
942
|
-
let
|
|
943
|
-
|
|
944
|
-
const
|
|
940
|
+
Math.round(st * 2.5 / Math.max(0.05, D))
|
|
941
|
+
), L = z * Math.PI / 180, tt = et * Math.PI / 180, U = Math.cos(L) * Math.cos(tt), ot = U >= 0, A = U < 0;
|
|
942
|
+
let Q = !0;
|
|
943
|
+
ot && !P && (Q = !1), A && !G && (Q = !1);
|
|
944
|
+
const lt = p ? typeof p == "string" ? p : `${p.x ?? 0}px ${p.y ?? 0}px ${p.blur ?? 0}px ${p.color ?? ""}` : void 0;
|
|
945
945
|
return /* @__PURE__ */ f(
|
|
946
946
|
"div",
|
|
947
947
|
{
|
|
948
948
|
style: {
|
|
949
949
|
width: "100%",
|
|
950
950
|
height: "100%",
|
|
951
|
-
perspective: `${
|
|
951
|
+
perspective: `${mt}px`,
|
|
952
952
|
transformStyle: "preserve-3d",
|
|
953
953
|
position: "relative",
|
|
954
954
|
...l
|
|
@@ -959,20 +959,20 @@ const Oo = ({
|
|
|
959
959
|
style: {
|
|
960
960
|
width: "100%",
|
|
961
961
|
height: "100%",
|
|
962
|
-
transformOrigin: `${50 + Z}% ${50 +
|
|
963
|
-
transform: `rotateX(${z}deg) rotateY(${et}deg) rotateZ(${
|
|
964
|
-
backfaceVisibility:
|
|
965
|
-
visibility:
|
|
962
|
+
transformOrigin: `${50 + Z}% ${50 + J}%`,
|
|
963
|
+
transform: `rotateX(${z}deg) rotateY(${et}deg) rotateZ(${T}deg)`,
|
|
964
|
+
backfaceVisibility: G ? "visible" : "hidden",
|
|
965
|
+
visibility: Q ? "visible" : "hidden",
|
|
966
966
|
borderRadius: o || 0,
|
|
967
|
-
boxShadow:
|
|
967
|
+
boxShadow: lt,
|
|
968
968
|
position: "relative"
|
|
969
969
|
},
|
|
970
|
-
children:
|
|
970
|
+
children: h
|
|
971
971
|
}
|
|
972
972
|
)
|
|
973
973
|
}
|
|
974
974
|
);
|
|
975
|
-
},
|
|
975
|
+
}, En = ({
|
|
976
976
|
src: t,
|
|
977
977
|
frame: n,
|
|
978
978
|
delay: r = 0,
|
|
@@ -983,9 +983,9 @@ const Oo = ({
|
|
|
983
983
|
height: o,
|
|
984
984
|
borderRadius: p,
|
|
985
985
|
borderWidth: c,
|
|
986
|
-
borderColor:
|
|
986
|
+
borderColor: h,
|
|
987
987
|
boxShadow: l,
|
|
988
|
-
cardFlipDetails:
|
|
988
|
+
cardFlipDetails: i,
|
|
989
989
|
activeEffects: u,
|
|
990
990
|
effects: y
|
|
991
991
|
}) => {
|
|
@@ -993,7 +993,7 @@ const Oo = ({
|
|
|
993
993
|
u == null || u.forEach((g) => {
|
|
994
994
|
g.type === "blur" && g.radius && b.push(`blur(${g.radius}px)`), g.type === "grayscale" && g.amount !== void 0 && b.push(`grayscale(${g.amount * 100}%)`), g.type === "contrast" && g.amount !== void 0 && b.push(`contrast(${g.amount * 100}%)`), g.type === "brightness" && g.amount !== void 0 && b.push(`brightness(${100 + g.amount * 100}%)`), g.type === "hue" && g.rotation !== void 0 && b.push(`hue-rotate(${g.rotation}deg)`), g.type === "saturation" && g.amount !== void 0 && b.push(`saturate(${g.amount * 100}%)`);
|
|
995
995
|
});
|
|
996
|
-
const
|
|
996
|
+
const x = b.length > 0 ? b.join(" ") : void 0;
|
|
997
997
|
return /* @__PURE__ */ f(
|
|
998
998
|
bo,
|
|
999
999
|
{
|
|
@@ -1006,8 +1006,8 @@ const Oo = ({
|
|
|
1006
1006
|
height: o,
|
|
1007
1007
|
borderRadius: p,
|
|
1008
1008
|
boxShadow: l,
|
|
1009
|
-
cardFlipDetails:
|
|
1010
|
-
children: /* @__PURE__ */
|
|
1009
|
+
cardFlipDetails: i,
|
|
1010
|
+
children: /* @__PURE__ */ vt(
|
|
1011
1011
|
"div",
|
|
1012
1012
|
{
|
|
1013
1013
|
style: {
|
|
@@ -1019,7 +1019,7 @@ const Oo = ({
|
|
|
1019
1019
|
},
|
|
1020
1020
|
children: [
|
|
1021
1021
|
/* @__PURE__ */ f(
|
|
1022
|
-
|
|
1022
|
+
Qt,
|
|
1023
1023
|
{
|
|
1024
1024
|
src: t,
|
|
1025
1025
|
style: {
|
|
@@ -1027,7 +1027,7 @@ const Oo = ({
|
|
|
1027
1027
|
height: "100%",
|
|
1028
1028
|
objectFit: "cover",
|
|
1029
1029
|
borderRadius: p || 0,
|
|
1030
|
-
filter:
|
|
1030
|
+
filter: x
|
|
1031
1031
|
},
|
|
1032
1032
|
effects: y
|
|
1033
1033
|
}
|
|
@@ -1047,14 +1047,14 @@ const Oo = ({
|
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
) : null,
|
|
1050
|
-
c &&
|
|
1050
|
+
c && h ? /* @__PURE__ */ f(
|
|
1051
1051
|
"div",
|
|
1052
1052
|
{
|
|
1053
1053
|
style: {
|
|
1054
1054
|
position: "absolute",
|
|
1055
1055
|
inset: 0,
|
|
1056
1056
|
borderRadius: p || 0,
|
|
1057
|
-
border: `${c}px solid ${
|
|
1057
|
+
border: `${c}px solid ${h}`,
|
|
1058
1058
|
boxSizing: "border-box",
|
|
1059
1059
|
pointerEvents: "none",
|
|
1060
1060
|
zIndex: 3
|
|
@@ -1083,36 +1083,36 @@ const Oo = ({
|
|
|
1083
1083
|
function no(t, n, r, s) {
|
|
1084
1084
|
return t[0] * n + t[1] * r + t[2] * s;
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function Lo(t, n, r, s = 0) {
|
|
1087
1087
|
const e = [];
|
|
1088
|
-
for (let
|
|
1088
|
+
for (let A = 0; A < 256; A++) e[A] = A;
|
|
1089
1089
|
let a = Math.floor(Math.abs(s) * 1e3) % 2147483647 + 1;
|
|
1090
|
-
for (let
|
|
1090
|
+
for (let A = 255; A > 0; A--) {
|
|
1091
1091
|
a = a * 16807 % 2147483647;
|
|
1092
|
-
const
|
|
1093
|
-
e[
|
|
1092
|
+
const Q = Math.floor(a / 2147483647 * (A + 1)), lt = e[A];
|
|
1093
|
+
e[A] = e[Q], e[Q] = lt;
|
|
1094
1094
|
}
|
|
1095
1095
|
const d = new Array(512), o = new Array(512);
|
|
1096
|
-
for (let
|
|
1097
|
-
d[
|
|
1096
|
+
for (let A = 0; A < 512; A++)
|
|
1097
|
+
d[A] = e[A & 255], o[A] = d[A] % 12;
|
|
1098
1098
|
const p = 1 / 3, c = 1 / 6;
|
|
1099
|
-
let
|
|
1100
|
-
const y = (t + n + r) * p, m = Math.floor(t + y), v = Math.floor(n + y), b = Math.floor(r + y),
|
|
1101
|
-
let Y = 0, N = 0,
|
|
1102
|
-
I >= k ? k >= S ? (Y = 1, N = 0,
|
|
1103
|
-
const
|
|
1104
|
-
let
|
|
1105
|
-
|
|
1106
|
-
let
|
|
1107
|
-
|
|
1108
|
-
let
|
|
1109
|
-
|
|
1110
|
-
let U = 0.6 - et * et -
|
|
1111
|
-
U >= 0 && (U *= U, u = U * U * no(oo[o[
|
|
1112
|
-
const
|
|
1113
|
-
return Math.min(1, Math.max(0, (
|
|
1099
|
+
let h = 0, l = 0, i = 0, u = 0;
|
|
1100
|
+
const y = (t + n + r) * p, m = Math.floor(t + y), v = Math.floor(n + y), b = Math.floor(r + y), x = (m + v + b) * c, g = m - x, M = v - x, $ = b - x, I = t - g, k = n - M, S = r - $;
|
|
1101
|
+
let Y = 0, N = 0, V = 0, F = 0, X = 0, P = 0;
|
|
1102
|
+
I >= k ? k >= S ? (Y = 1, N = 0, V = 0, F = 1, X = 1, P = 0) : I >= S ? (Y = 1, N = 0, V = 0, F = 1, X = 0, P = 1) : (Y = 0, N = 0, V = 1, F = 1, X = 0, P = 1) : k < S ? (Y = 0, N = 0, V = 1, F = 0, X = 1, P = 1) : I < S ? (Y = 0, N = 1, V = 0, F = 0, X = 1, P = 1) : (Y = 0, N = 1, V = 0, F = 1, X = 1, P = 0);
|
|
1103
|
+
const G = I - Y + c, E = k - N + c, O = S - V + c, C = I - F + 2 * c, B = k - X + 2 * c, z = S - P + 2 * c, et = I - 1 + 3 * c, T = k - 1 + 3 * c, Z = S - 1 + 3 * c, J = m & 255, D = v & 255, st = b & 255;
|
|
1104
|
+
let mt = 0.6 - I * I - k * k - S * S;
|
|
1105
|
+
mt >= 0 && (mt *= mt, h = mt * mt * no(oo[o[J + d[D + d[st]]]], I, k, S));
|
|
1106
|
+
let L = 0.6 - G * G - E * E - O * O;
|
|
1107
|
+
L >= 0 && (L *= L, l = L * L * no(oo[o[J + Y + d[D + N + d[st + V]]]], G, E, O));
|
|
1108
|
+
let tt = 0.6 - C * C - B * B - z * z;
|
|
1109
|
+
tt >= 0 && (tt *= tt, i = tt * tt * no(oo[o[J + F + d[D + X + d[st + P]]]], C, B, z));
|
|
1110
|
+
let U = 0.6 - et * et - T * T - Z * Z;
|
|
1111
|
+
U >= 0 && (U *= U, u = U * U * no(oo[o[J + 1 + d[D + 1 + d[st + 1]]]], et, T, Z));
|
|
1112
|
+
const ot = 32 * (h + l + i + u);
|
|
1113
|
+
return Math.min(1, Math.max(0, (ot + 1) / 2));
|
|
1114
1114
|
}
|
|
1115
|
-
const
|
|
1115
|
+
const Vn = ({
|
|
1116
1116
|
src: t,
|
|
1117
1117
|
frame: n,
|
|
1118
1118
|
delay: r = 0,
|
|
@@ -1123,27 +1123,27 @@ const En = ({
|
|
|
1123
1123
|
height: o,
|
|
1124
1124
|
borderRadius: p,
|
|
1125
1125
|
borderWidth: c,
|
|
1126
|
-
borderColor:
|
|
1126
|
+
borderColor: h,
|
|
1127
1127
|
boxShadow: l,
|
|
1128
|
-
noiseTileDetails:
|
|
1128
|
+
noiseTileDetails: i
|
|
1129
1129
|
}) => {
|
|
1130
|
-
const u =
|
|
1131
|
-
let
|
|
1132
|
-
b === "initial" ?
|
|
1133
|
-
const
|
|
1134
|
-
for (let
|
|
1135
|
-
for (let
|
|
1136
|
-
const
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
),
|
|
1142
|
-
|
|
1143
|
-
col:
|
|
1144
|
-
row:
|
|
1145
|
-
visible:
|
|
1146
|
-
posX:
|
|
1130
|
+
const u = Yt(), y = typeof n == "number" && !isNaN(n) ? n : u, m = d || 300, v = o || 300, b = (i == null ? void 0 : i.keepStill) || "both", x = Number((i == null ? void 0 : i.toXRepetitions) ?? (i == null ? void 0 : i.xRepetitions) ?? 5), g = Number((i == null ? void 0 : i.toYRepetitions) ?? (i == null ? void 0 : i.yRepetitions) ?? 5), M = Number((i == null ? void 0 : i.toGapX) ?? (i == null ? void 0 : i.gapX) ?? 12), $ = Number((i == null ? void 0 : i.toGapY) ?? (i == null ? void 0 : i.gapY) ?? 12), I = Number((i == null ? void 0 : i.toScale) ?? (i == null ? void 0 : i.scale) ?? 1), k = Number((i == null ? void 0 : i.toNoiseScale) ?? (i == null ? void 0 : i.noiseScale) ?? 1.5), S = Number((i == null ? void 0 : i.toNoiseMoveX) ?? (i == null ? void 0 : i.noiseMoveX) ?? 0.6), Y = Number((i == null ? void 0 : i.toNoiseMoveY) ?? (i == null ? void 0 : i.noiseMoveY) ?? 0.4), N = Number((i == null ? void 0 : i.toFps) ?? (i == null ? void 0 : i.fps) ?? 12), V = Number((i == null ? void 0 : i.toThreshold) ?? (i == null ? void 0 : i.threshold) ?? 0.45), F = Number((i == null ? void 0 : i.toSeedOffset) ?? (i == null ? void 0 : i.seedOffset) ?? 0), X = !!(i != null && i.hasInitialValue), P = X ? Number((i == null ? void 0 : i.initialXRepetitions) ?? x) : x, G = X ? Number((i == null ? void 0 : i.initialYRepetitions) ?? g) : g, E = X ? Number((i == null ? void 0 : i.initialGapX) ?? M) : M, O = X ? Number((i == null ? void 0 : i.initialGapY) ?? $) : $, C = X ? Number((i == null ? void 0 : i.initialScale) ?? I) : I, B = X ? Number((i == null ? void 0 : i.initialNoiseScale) ?? k) : k, z = X ? Number((i == null ? void 0 : i.initialNoiseMoveX) ?? S) : S, et = X ? Number((i == null ? void 0 : i.initialNoiseMoveY) ?? Y) : Y, T = X ? Number((i == null ? void 0 : i.initialFps) ?? N) : N, Z = X ? Number((i == null ? void 0 : i.initialThreshold) ?? V) : V, J = X ? Number((i == null ? void 0 : i.initialSeedOffset) ?? F) : F, D = Math.max(0, y - (r || 0)), st = Math.min(1, Math.max(0, D / (s || 1)));
|
|
1131
|
+
let L = e + (a - e) * st;
|
|
1132
|
+
b === "initial" ? L = 0 : b === "final" && (L = 1);
|
|
1133
|
+
const tt = Math.max(1, Math.round(W(L, [0, 1], [P, x]))), U = Math.max(1, Math.round(W(L, [0, 1], [G, g]))), ot = W(L, [0, 1], [E, M]), A = W(L, [0, 1], [O, $]), Q = W(L, [0, 1], [C, I]), lt = W(L, [0, 1], [B, k]), Mt = W(L, [0, 1], [z, S]), pt = W(L, [0, 1], [et, Y]), q = Math.max(1, Math.round(W(L, [0, 1], [T, N]))), rt = W(L, [0, 1], [Z, V]), nt = W(L, [0, 1], [J, F]), dt = l ? typeof l == "string" ? l : `${l.x ?? 0}px ${l.y ?? 0}px ${l.blur ?? 0}px ${l.color ?? ""}` : void 0, it = Math.floor(D * (q / 30)), yt = (tt - 1) / 2, xt = (U - 1) / 2, wt = [];
|
|
1134
|
+
for (let ft = 0; ft < U; ft++)
|
|
1135
|
+
for (let $t = 0; $t < tt; $t++) {
|
|
1136
|
+
const Ft = $t / Math.max(1, tt) * lt, Rt = ft / Math.max(1, U) * lt, Xt = it * 0.1 + nt, Vt = Lo(
|
|
1137
|
+
Ft + it * Mt * 0.05,
|
|
1138
|
+
Rt + it * pt * 0.05,
|
|
1139
|
+
Xt,
|
|
1140
|
+
nt
|
|
1141
|
+
), Bt = $t === Math.floor(yt) && ft === Math.floor(xt) || Vt >= rt, Ot = $t - yt, zt = ft - xt, jt = ot / 100 * m, Ht = A / 100 * v, _t = Ot * (m * Q + jt), j = zt * (v * Q + Ht);
|
|
1142
|
+
wt.push({
|
|
1143
|
+
col: $t,
|
|
1144
|
+
row: ft,
|
|
1145
|
+
visible: Bt,
|
|
1146
|
+
posX: _t,
|
|
1147
1147
|
posY: j
|
|
1148
1148
|
});
|
|
1149
1149
|
}
|
|
@@ -1156,7 +1156,7 @@ const En = ({
|
|
|
1156
1156
|
position: "relative",
|
|
1157
1157
|
overflow: "visible"
|
|
1158
1158
|
},
|
|
1159
|
-
children:
|
|
1159
|
+
children: wt.map((ft) => ft.visible ? /* @__PURE__ */ f(
|
|
1160
1160
|
"div",
|
|
1161
1161
|
{
|
|
1162
1162
|
style: {
|
|
@@ -1165,12 +1165,12 @@ const En = ({
|
|
|
1165
1165
|
top: "50%",
|
|
1166
1166
|
width: `${m}px`,
|
|
1167
1167
|
height: `${v}px`,
|
|
1168
|
-
transform: `translate(-50%, -50%) translate(${
|
|
1168
|
+
transform: `translate(-50%, -50%) translate(${ft.posX}px, ${ft.posY}px) scale(${Q})`,
|
|
1169
1169
|
transformOrigin: "center center",
|
|
1170
1170
|
borderRadius: p || 0,
|
|
1171
|
-
boxShadow:
|
|
1171
|
+
boxShadow: dt
|
|
1172
1172
|
},
|
|
1173
|
-
children: /* @__PURE__ */
|
|
1173
|
+
children: /* @__PURE__ */ vt(
|
|
1174
1174
|
"div",
|
|
1175
1175
|
{
|
|
1176
1176
|
style: {
|
|
@@ -1192,7 +1192,7 @@ const En = ({
|
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
1194
|
) : /* @__PURE__ */ f(
|
|
1195
|
-
|
|
1195
|
+
Qt,
|
|
1196
1196
|
{
|
|
1197
1197
|
src: t,
|
|
1198
1198
|
style: {
|
|
@@ -1202,14 +1202,14 @@ const En = ({
|
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
1204
|
),
|
|
1205
|
-
c &&
|
|
1205
|
+
c && h ? /* @__PURE__ */ f(
|
|
1206
1206
|
"div",
|
|
1207
1207
|
{
|
|
1208
1208
|
style: {
|
|
1209
1209
|
position: "absolute",
|
|
1210
1210
|
inset: 0,
|
|
1211
1211
|
borderRadius: p || 0,
|
|
1212
|
-
border: `${c}px solid ${
|
|
1212
|
+
border: `${c}px solid ${h}`,
|
|
1213
1213
|
boxSizing: "border-box",
|
|
1214
1214
|
pointerEvents: "none"
|
|
1215
1215
|
}
|
|
@@ -1219,7 +1219,7 @@ const En = ({
|
|
|
1219
1219
|
}
|
|
1220
1220
|
)
|
|
1221
1221
|
},
|
|
1222
|
-
`tile-${
|
|
1222
|
+
`tile-${ft.col}-${ft.row}`
|
|
1223
1223
|
) : null)
|
|
1224
1224
|
}
|
|
1225
1225
|
);
|
|
@@ -1297,20 +1297,20 @@ function vo(t, n, r = 0) {
|
|
|
1297
1297
|
"duotone",
|
|
1298
1298
|
"lightLeak"
|
|
1299
1299
|
];
|
|
1300
|
-
p.forEach((
|
|
1301
|
-
if (!
|
|
1302
|
-
const l =
|
|
1300
|
+
p.forEach((h) => {
|
|
1301
|
+
if (!h) return;
|
|
1302
|
+
const l = h.property;
|
|
1303
1303
|
if (c.includes(l)) {
|
|
1304
|
-
const
|
|
1304
|
+
const i = h.delay ?? 0, u = Math.max(1, h.durationInFrames ?? 30), y = i + u, m = (x) => x === "contrast" || x === "brightness" || x === "saturation" ? 100 : x === "pixelate" ? 1 : 0;
|
|
1305
1305
|
let v = !1, b = m(l);
|
|
1306
|
-
if (r >=
|
|
1306
|
+
if (r >= i && r <= y) {
|
|
1307
1307
|
v = !0;
|
|
1308
|
-
const
|
|
1308
|
+
const x = Math.min(
|
|
1309
1309
|
1,
|
|
1310
|
-
Math.max(0, (r -
|
|
1311
|
-
), g = Number(
|
|
1312
|
-
b = g + (M - g) *
|
|
1313
|
-
} else r > y &&
|
|
1310
|
+
Math.max(0, (r - i) / u)
|
|
1311
|
+
), g = Number(h.from ?? m(l)), M = Number(h.to ?? m(l));
|
|
1312
|
+
b = g + (M - g) * x;
|
|
1313
|
+
} else r > y && h.persist === !0 && (v = !0, b = Number(h.to ?? m(l)));
|
|
1314
1314
|
if (!v) return;
|
|
1315
1315
|
switch (l) {
|
|
1316
1316
|
case "blur":
|
|
@@ -1452,40 +1452,40 @@ function We({
|
|
|
1452
1452
|
item: t,
|
|
1453
1453
|
options: n
|
|
1454
1454
|
}) {
|
|
1455
|
-
var z, et,
|
|
1456
|
-
const { fps: r, frame: s, isTransition: e } = n, { details: a, animations: d } = t, { animationIn: o, animationOut: p, animationTimed: c } =
|
|
1455
|
+
var z, et, T, Z, J, D, st, mt, L, tt, U, ot, A;
|
|
1456
|
+
const { fps: r, frame: s, isTransition: e } = n, { details: a, animations: d } = t, { animationIn: o, animationOut: p, animationTimed: c } = Nt(
|
|
1457
1457
|
d,
|
|
1458
1458
|
t,
|
|
1459
1459
|
s,
|
|
1460
1460
|
r
|
|
1461
|
-
),
|
|
1461
|
+
), h = (a == null ? void 0 : a.crop) || {
|
|
1462
1462
|
x: 0,
|
|
1463
1463
|
y: 0,
|
|
1464
1464
|
width: a.width,
|
|
1465
1465
|
height: a.height
|
|
1466
|
-
}, { durationInFrames: l } =
|
|
1466
|
+
}, { durationInFrames: l } = It(t.display, r), i = (s || 0) - t.display.from * r / 1e3, u = Kt(a, h, {}), { WebkitTextStroke: y } = u, m = Vo(a, h), v = vo(
|
|
1467
1467
|
a.effects,
|
|
1468
1468
|
d,
|
|
1469
|
-
|
|
1470
|
-
), b = go(v), { filter:
|
|
1471
|
-
(
|
|
1472
|
-
), k = !!(I &&
|
|
1473
|
-
(
|
|
1474
|
-
), Y = !!(S &&
|
|
1475
|
-
(
|
|
1476
|
-
),
|
|
1477
|
-
(
|
|
1478
|
-
), X = !!(F &&
|
|
1479
|
-
(
|
|
1480
|
-
),
|
|
1469
|
+
i
|
|
1470
|
+
), b = go(v), { filter: x, overlays: g } = zo(v), M = a.width || h.width || 300, $ = a.height || h.height || 300, I = (et = (z = d == null ? void 0 : d.loop) == null ? void 0 : z.composition) == null ? void 0 : et.find(
|
|
1471
|
+
(Q) => Q.property === "textGridMarqueeTextAnimationLoop" || Q.property === "textGridMarquee" || Q.property === "imageGridMarqueeTextAnimationLoop" || Q.property === "imageGridMarquee" || Q.id === "textGridMarquee" || Q.id === "imageGridMarquee"
|
|
1472
|
+
), k = !!(I && i >= (I.delay || 0) && i <= (I.delay || 0) + (I.durationInFrames || 60)), S = (Z = (T = d == null ? void 0 : d.loop) == null ? void 0 : T.composition) == null ? void 0 : Z.find(
|
|
1473
|
+
(Q) => Q.property === "inwardEchoes" || Q.id === "inwardEchoes"
|
|
1474
|
+
), Y = !!(S && i >= (S.delay || 0) && i <= (S.delay || 0) + (S.durationInFrames || 120)), N = (D = (J = d == null ? void 0 : d.loop) == null ? void 0 : J.composition) == null ? void 0 : D.find(
|
|
1475
|
+
(Q) => Q.property === "wiggle" || Q.id === "wiggle"
|
|
1476
|
+
), V = !!(N && i >= (N.delay || 0) && i <= (N.delay || 0) + (N.durationInFrames || 120)), F = (mt = (st = d == null ? void 0 : d.loop) == null ? void 0 : st.composition) == null ? void 0 : mt.find(
|
|
1477
|
+
(Q) => Q.property === "cardFlip" || Q.id === "cardFlip"
|
|
1478
|
+
), X = !!(F && i >= (F.delay || 0) && i <= (F.delay || 0) + (F.durationInFrames || 120)), P = (tt = (L = d == null ? void 0 : d.loop) == null ? void 0 : L.composition) == null ? void 0 : tt.find(
|
|
1479
|
+
(Q) => Q.property === "noiseTile" || Q.id === "noiseTile"
|
|
1480
|
+
), G = !!(P && i >= (P.delay || 0) && i <= (P.delay || 0) + (P.durationInFrames || 120)), E = [
|
|
1481
1481
|
...((U = d == null ? void 0 : d.in) == null ? void 0 : U.composition) || [],
|
|
1482
|
-
...((
|
|
1483
|
-
...((
|
|
1482
|
+
...((ot = d == null ? void 0 : d.timed) == null ? void 0 : ot.composition) || [],
|
|
1483
|
+
...((A = d == null ? void 0 : d.loop) == null ? void 0 : A.composition) || []
|
|
1484
1484
|
], O = () => k ? /* @__PURE__ */ f(
|
|
1485
1485
|
Oo,
|
|
1486
1486
|
{
|
|
1487
1487
|
src: a.src,
|
|
1488
|
-
frame:
|
|
1488
|
+
frame: i,
|
|
1489
1489
|
delay: I == null ? void 0 : I.delay,
|
|
1490
1490
|
durationInFrames: I == null ? void 0 : I.durationInFrames,
|
|
1491
1491
|
from: I == null ? void 0 : I.from,
|
|
@@ -1503,7 +1503,7 @@ function We({
|
|
|
1503
1503
|
Co,
|
|
1504
1504
|
{
|
|
1505
1505
|
src: a.src,
|
|
1506
|
-
frame:
|
|
1506
|
+
frame: i,
|
|
1507
1507
|
delay: S == null ? void 0 : S.delay,
|
|
1508
1508
|
durationInFrames: S == null ? void 0 : S.durationInFrames,
|
|
1509
1509
|
from: S == null ? void 0 : S.from,
|
|
@@ -1517,11 +1517,11 @@ function We({
|
|
|
1517
1517
|
fps: r,
|
|
1518
1518
|
echoesDetails: S == null ? void 0 : S.details
|
|
1519
1519
|
}
|
|
1520
|
-
) :
|
|
1521
|
-
|
|
1520
|
+
) : V ? /* @__PURE__ */ f(
|
|
1521
|
+
Go,
|
|
1522
1522
|
{
|
|
1523
1523
|
src: a.src,
|
|
1524
|
-
frame:
|
|
1524
|
+
frame: i,
|
|
1525
1525
|
delay: N == null ? void 0 : N.delay,
|
|
1526
1526
|
durationInFrames: N == null ? void 0 : N.durationInFrames,
|
|
1527
1527
|
from: N == null ? void 0 : N.from,
|
|
@@ -1536,10 +1536,10 @@ function We({
|
|
|
1536
1536
|
wiggleDetails: N == null ? void 0 : N.details
|
|
1537
1537
|
}
|
|
1538
1538
|
) : X ? /* @__PURE__ */ f(
|
|
1539
|
-
|
|
1539
|
+
En,
|
|
1540
1540
|
{
|
|
1541
1541
|
src: a.src,
|
|
1542
|
-
frame:
|
|
1542
|
+
frame: i,
|
|
1543
1543
|
delay: F == null ? void 0 : F.delay,
|
|
1544
1544
|
durationInFrames: F == null ? void 0 : F.durationInFrames,
|
|
1545
1545
|
from: F == null ? void 0 : F.from,
|
|
@@ -1555,11 +1555,11 @@ function We({
|
|
|
1555
1555
|
activeEffects: v,
|
|
1556
1556
|
effects: b
|
|
1557
1557
|
}
|
|
1558
|
-
) :
|
|
1559
|
-
|
|
1558
|
+
) : G ? /* @__PURE__ */ f(
|
|
1559
|
+
Vn,
|
|
1560
1560
|
{
|
|
1561
1561
|
src: a.src,
|
|
1562
|
-
frame:
|
|
1562
|
+
frame: i,
|
|
1563
1563
|
delay: P == null ? void 0 : P.delay,
|
|
1564
1564
|
durationInFrames: P == null ? void 0 : P.durationInFrames,
|
|
1565
1565
|
from: P == null ? void 0 : P.from,
|
|
@@ -1574,15 +1574,15 @@ function We({
|
|
|
1574
1574
|
noiseTileDetails: P == null ? void 0 : P.details
|
|
1575
1575
|
}
|
|
1576
1576
|
) : /* @__PURE__ */ f(
|
|
1577
|
-
|
|
1577
|
+
Qt,
|
|
1578
1578
|
{
|
|
1579
1579
|
"data-id": t.id,
|
|
1580
1580
|
src: a.src,
|
|
1581
|
-
style: { borderRadius: m.borderRadius, filter:
|
|
1581
|
+
style: { borderRadius: m.borderRadius, filter: x || void 0 },
|
|
1582
1582
|
effects: b
|
|
1583
1583
|
}
|
|
1584
|
-
), C = k || Y ||
|
|
1585
|
-
|
|
1584
|
+
), C = k || Y || V || X || G, B = /* @__PURE__ */ f(
|
|
1585
|
+
At,
|
|
1586
1586
|
{
|
|
1587
1587
|
style: {
|
|
1588
1588
|
...a,
|
|
@@ -1592,7 +1592,7 @@ function We({
|
|
|
1592
1592
|
},
|
|
1593
1593
|
animationIn: o,
|
|
1594
1594
|
animationOut: p,
|
|
1595
|
-
frame:
|
|
1595
|
+
frame: i,
|
|
1596
1596
|
durationInFrames: l,
|
|
1597
1597
|
isTransition: e,
|
|
1598
1598
|
children: /* @__PURE__ */ f(
|
|
@@ -1600,14 +1600,14 @@ function We({
|
|
|
1600
1600
|
{
|
|
1601
1601
|
animationTimed: c,
|
|
1602
1602
|
durationInFrames: l,
|
|
1603
|
-
frame:
|
|
1603
|
+
frame: i,
|
|
1604
1604
|
children: /* @__PURE__ */ f(
|
|
1605
1605
|
co,
|
|
1606
1606
|
{
|
|
1607
1607
|
item: t,
|
|
1608
|
-
keyframeAnimations:
|
|
1609
|
-
frame:
|
|
1610
|
-
children: /* @__PURE__ */
|
|
1608
|
+
keyframeAnimations: E,
|
|
1609
|
+
frame: i,
|
|
1610
|
+
children: /* @__PURE__ */ vt(
|
|
1611
1611
|
"div",
|
|
1612
1612
|
{
|
|
1613
1613
|
id: `${t.id}-reveal-mask`,
|
|
@@ -1621,17 +1621,17 @@ function We({
|
|
|
1621
1621
|
yo,
|
|
1622
1622
|
{
|
|
1623
1623
|
width: M,
|
|
1624
|
-
height:
|
|
1624
|
+
height: $,
|
|
1625
1625
|
effects: b,
|
|
1626
1626
|
children: O()
|
|
1627
1627
|
}
|
|
1628
1628
|
) : O(),
|
|
1629
|
-
g.map((
|
|
1630
|
-
!k && !Y && !
|
|
1629
|
+
g.map((Q) => /* @__PURE__ */ f("div", { style: Q.style }, Q.id)),
|
|
1630
|
+
!k && !Y && !V && !X && !G && /* @__PURE__ */ f(
|
|
1631
1631
|
"div",
|
|
1632
1632
|
{
|
|
1633
1633
|
style: {
|
|
1634
|
-
...Bo(a,
|
|
1634
|
+
...Bo(a, h),
|
|
1635
1635
|
backgroundColor: "transparent"
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
@@ -1645,25 +1645,25 @@ function We({
|
|
|
1645
1645
|
)
|
|
1646
1646
|
}
|
|
1647
1647
|
);
|
|
1648
|
-
return
|
|
1648
|
+
return gt({ item: t, options: n, children: B });
|
|
1649
1649
|
}
|
|
1650
|
-
const
|
|
1650
|
+
const Ee = ({
|
|
1651
1651
|
item: t,
|
|
1652
1652
|
options: n
|
|
1653
1653
|
}) => {
|
|
1654
|
-
const { fps: r, frame: s } = n, { details: e, animations: a } = t, { durationInFrames: d } =
|
|
1654
|
+
const { fps: r, frame: s } = n, { details: e, animations: a } = t, { durationInFrames: d } = It(t.display, r), { animationIn: o, animationOut: p, animationTimed: c } = Nt(
|
|
1655
1655
|
a,
|
|
1656
1656
|
t,
|
|
1657
1657
|
s,
|
|
1658
1658
|
r
|
|
1659
|
-
),
|
|
1660
|
-
|
|
1659
|
+
), h = (s || 0) - t.display.from * r / 1e3, { backgroundColor: l, ...i } = e, u = /* @__PURE__ */ f(
|
|
1660
|
+
At,
|
|
1661
1661
|
{
|
|
1662
1662
|
animationIn: o,
|
|
1663
1663
|
animationOut: p,
|
|
1664
|
-
frame:
|
|
1664
|
+
frame: h,
|
|
1665
1665
|
durationInFrames: d,
|
|
1666
|
-
style:
|
|
1666
|
+
style: i,
|
|
1667
1667
|
children: /* @__PURE__ */ f(
|
|
1668
1668
|
"div",
|
|
1669
1669
|
{
|
|
@@ -1680,7 +1680,7 @@ const Ve = ({
|
|
|
1680
1680
|
)
|
|
1681
1681
|
}
|
|
1682
1682
|
);
|
|
1683
|
-
return
|
|
1683
|
+
return gt({ item: t, options: n, children: u });
|
|
1684
1684
|
}, Io = {
|
|
1685
1685
|
// Legacy Easings
|
|
1686
1686
|
linear: w.linear,
|
|
@@ -1716,12 +1716,12 @@ const Ve = ({
|
|
|
1716
1716
|
from: o,
|
|
1717
1717
|
to: p,
|
|
1718
1718
|
easing: c,
|
|
1719
|
-
delay:
|
|
1719
|
+
delay: h,
|
|
1720
1720
|
details: l,
|
|
1721
|
-
phase:
|
|
1721
|
+
phase: i = "in"
|
|
1722
1722
|
}) => {
|
|
1723
|
-
const u = a, y = e > 1 ? u * 0.6 : u, m = e > 1 ? u * 0.4 / (e - 1) : 0, v =
|
|
1724
|
-
if (
|
|
1723
|
+
const u = a, y = e > 1 ? u * 0.6 : u, m = e > 1 ? u * 0.4 / (e - 1) : 0, v = h + n * m, b = r - v;
|
|
1724
|
+
if (i === "in" && b < 0)
|
|
1725
1725
|
return /* @__PURE__ */ f(
|
|
1726
1726
|
"span",
|
|
1727
1727
|
{
|
|
@@ -1730,7 +1730,7 @@ const Ve = ({
|
|
|
1730
1730
|
},
|
|
1731
1731
|
n
|
|
1732
1732
|
);
|
|
1733
|
-
if (
|
|
1733
|
+
if (i === "out" && b >= y)
|
|
1734
1734
|
return /* @__PURE__ */ f(
|
|
1735
1735
|
"span",
|
|
1736
1736
|
{
|
|
@@ -1739,20 +1739,20 @@ const Ve = ({
|
|
|
1739
1739
|
},
|
|
1740
1740
|
n
|
|
1741
1741
|
);
|
|
1742
|
-
const
|
|
1742
|
+
const x = W(b, [0, y], [0, 1], {
|
|
1743
1743
|
extrapolateLeft: "clamp",
|
|
1744
1744
|
extrapolateRight: "clamp"
|
|
1745
|
-
}), M = Bn(c)(
|
|
1745
|
+
}), M = Bn(c)(x), $ = o + (p - o) * M;
|
|
1746
1746
|
let I = {
|
|
1747
1747
|
display: "inline-block",
|
|
1748
1748
|
transformOrigin: "center"
|
|
1749
1749
|
};
|
|
1750
1750
|
switch (d) {
|
|
1751
1751
|
case "opacity":
|
|
1752
|
-
I.opacity =
|
|
1752
|
+
I.opacity = $;
|
|
1753
1753
|
break;
|
|
1754
1754
|
case "scale":
|
|
1755
|
-
I.transform = `scale(${
|
|
1755
|
+
I.transform = `scale(${$})`;
|
|
1756
1756
|
break;
|
|
1757
1757
|
case "translateX": {
|
|
1758
1758
|
let k = 100, S = !1;
|
|
@@ -1760,7 +1760,7 @@ const Ve = ({
|
|
|
1760
1760
|
const N = typeof l.width == "number" ? l.width : parseFloat(l.width);
|
|
1761
1761
|
isNaN(N) || (k = N, S = !0);
|
|
1762
1762
|
}
|
|
1763
|
-
const Y = S ? `${
|
|
1763
|
+
const Y = S ? `${$ / 100 * k}px` : `${$}%`;
|
|
1764
1764
|
I.transform = `translateX(${Y})`;
|
|
1765
1765
|
break;
|
|
1766
1766
|
}
|
|
@@ -1770,18 +1770,18 @@ const Ve = ({
|
|
|
1770
1770
|
const N = typeof l.height == "number" ? l.height : parseFloat(l.height);
|
|
1771
1771
|
isNaN(N) || (k = N, S = !0);
|
|
1772
1772
|
}
|
|
1773
|
-
const Y = S ? `${
|
|
1773
|
+
const Y = S ? `${$ / 100 * k}px` : `${$}%`;
|
|
1774
1774
|
I.transform = `translateY(${Y})`;
|
|
1775
1775
|
break;
|
|
1776
1776
|
}
|
|
1777
1777
|
case "rotate":
|
|
1778
|
-
I.transform = `rotate(${
|
|
1778
|
+
I.transform = `rotate(${$}deg)`;
|
|
1779
1779
|
break;
|
|
1780
1780
|
case "rotateY":
|
|
1781
|
-
I.transform = `rotateY(${
|
|
1781
|
+
I.transform = `rotateY(${$}deg)`;
|
|
1782
1782
|
break;
|
|
1783
1783
|
default:
|
|
1784
|
-
I.opacity =
|
|
1784
|
+
I.opacity = $;
|
|
1785
1785
|
break;
|
|
1786
1786
|
}
|
|
1787
1787
|
return /* @__PURE__ */ f("span", { style: I, children: t === " " ? " " : t }, n);
|
|
@@ -1793,13 +1793,13 @@ const Ve = ({
|
|
|
1793
1793
|
textLength: e,
|
|
1794
1794
|
animationTextInFrames: a
|
|
1795
1795
|
}) => {
|
|
1796
|
-
const d = a, o = d / (e + 1), p = n * o, c =
|
|
1796
|
+
const d = a, o = d / (e + 1), p = n * o, c = St({
|
|
1797
1797
|
frame: r - p,
|
|
1798
1798
|
fps: s,
|
|
1799
1799
|
from: 4,
|
|
1800
1800
|
to: 1,
|
|
1801
1801
|
config: { mass: 1, damping: 10 }
|
|
1802
|
-
}),
|
|
1802
|
+
}), h = W(
|
|
1803
1803
|
r - p,
|
|
1804
1804
|
[0, d / 2],
|
|
1805
1805
|
// Ensure opacity fades in within half the duration
|
|
@@ -1812,13 +1812,13 @@ const Ve = ({
|
|
|
1812
1812
|
style: {
|
|
1813
1813
|
display: "inline-block",
|
|
1814
1814
|
transform: `scale(${c})`,
|
|
1815
|
-
opacity:
|
|
1815
|
+
opacity: h
|
|
1816
1816
|
},
|
|
1817
1817
|
children: t === " " ? " " : t
|
|
1818
1818
|
},
|
|
1819
1819
|
n
|
|
1820
1820
|
);
|
|
1821
|
-
},
|
|
1821
|
+
}, Gn = ({
|
|
1822
1822
|
char: t,
|
|
1823
1823
|
index: n,
|
|
1824
1824
|
frame: r,
|
|
@@ -1826,7 +1826,7 @@ const Ve = ({
|
|
|
1826
1826
|
textLength: e,
|
|
1827
1827
|
animationTextInFrames: a
|
|
1828
1828
|
}) => {
|
|
1829
|
-
const o = a / e, p = n * o, c =
|
|
1829
|
+
const o = a / e, p = n * o, c = St({
|
|
1830
1830
|
frame: r - p,
|
|
1831
1831
|
fps: s,
|
|
1832
1832
|
from: -90,
|
|
@@ -1844,7 +1844,7 @@ const Ve = ({
|
|
|
1844
1844
|
},
|
|
1845
1845
|
n
|
|
1846
1846
|
);
|
|
1847
|
-
},
|
|
1847
|
+
}, Ln = ({
|
|
1848
1848
|
char: t,
|
|
1849
1849
|
index: n,
|
|
1850
1850
|
frame: r,
|
|
@@ -1852,7 +1852,7 @@ const Ve = ({
|
|
|
1852
1852
|
textLength: e,
|
|
1853
1853
|
animationTextInFrames: a
|
|
1854
1854
|
}) => {
|
|
1855
|
-
const o = a / e, p = n * o, c =
|
|
1855
|
+
const o = a / e, p = n * o, c = St({
|
|
1856
1856
|
frame: r - p,
|
|
1857
1857
|
fps: s,
|
|
1858
1858
|
from: 0,
|
|
@@ -1878,13 +1878,13 @@ const Ve = ({
|
|
|
1878
1878
|
textLength: e,
|
|
1879
1879
|
animationTextInFrames: a
|
|
1880
1880
|
}) => {
|
|
1881
|
-
const d = a, o = d / e, p = n * o, c =
|
|
1881
|
+
const d = a, o = d / e, p = n * o, c = St({
|
|
1882
1882
|
frame: r - p,
|
|
1883
1883
|
fps: s,
|
|
1884
1884
|
from: 1.1,
|
|
1885
1885
|
to: 0,
|
|
1886
1886
|
config: { damping: 10 }
|
|
1887
|
-
}),
|
|
1887
|
+
}), h = W(r - p, [0, d / 2], [0, 1], {
|
|
1888
1888
|
extrapolateRight: "clamp",
|
|
1889
1889
|
extrapolateLeft: "clamp"
|
|
1890
1890
|
});
|
|
@@ -1894,7 +1894,7 @@ const Ve = ({
|
|
|
1894
1894
|
style: {
|
|
1895
1895
|
display: "inline-block",
|
|
1896
1896
|
transform: `translateY(${c}em)`,
|
|
1897
|
-
opacity:
|
|
1897
|
+
opacity: h
|
|
1898
1898
|
},
|
|
1899
1899
|
children: t === " " ? " " : t
|
|
1900
1900
|
},
|
|
@@ -1908,13 +1908,13 @@ const Ve = ({
|
|
|
1908
1908
|
textLength: e,
|
|
1909
1909
|
animationTextInFrames: a
|
|
1910
1910
|
}) => {
|
|
1911
|
-
const d = a, o = d / e, p = n * o, c =
|
|
1911
|
+
const d = a, o = d / e, p = n * o, c = St({
|
|
1912
1912
|
frame: r - p,
|
|
1913
1913
|
fps: s,
|
|
1914
1914
|
from: -100,
|
|
1915
1915
|
to: 0,
|
|
1916
1916
|
config: { damping: 20, stiffness: 120 }
|
|
1917
|
-
}),
|
|
1917
|
+
}), h = W(
|
|
1918
1918
|
r - p,
|
|
1919
1919
|
[0, d / 2],
|
|
1920
1920
|
// Complete opacity ramp-up within half the duration
|
|
@@ -1930,7 +1930,7 @@ const Ve = ({
|
|
|
1930
1930
|
style: {
|
|
1931
1931
|
display: "inline-block",
|
|
1932
1932
|
transform: `translateY(${c}px)`,
|
|
1933
|
-
opacity:
|
|
1933
|
+
opacity: h
|
|
1934
1934
|
},
|
|
1935
1935
|
children: t === " " ? " " : t
|
|
1936
1936
|
},
|
|
@@ -1945,19 +1945,19 @@ const Ve = ({
|
|
|
1945
1945
|
animationTextOutFrames: a,
|
|
1946
1946
|
durationInFrames: d
|
|
1947
1947
|
}) => {
|
|
1948
|
-
const o = d - a, p = n / e * (d - o), c =
|
|
1948
|
+
const o = d - a, p = n / e * (d - o), c = St({
|
|
1949
1949
|
frame: r - o - p,
|
|
1950
1950
|
fps: s,
|
|
1951
1951
|
from: 1,
|
|
1952
1952
|
to: 0,
|
|
1953
1953
|
config: { mass: 0.5, damping: 10 }
|
|
1954
|
-
}),
|
|
1954
|
+
}), h = St({
|
|
1955
1955
|
frame: r - o - p,
|
|
1956
1956
|
fps: s,
|
|
1957
1957
|
from: 0,
|
|
1958
1958
|
to: 50,
|
|
1959
1959
|
config: { mass: 0.5, damping: 10 }
|
|
1960
|
-
}), l =
|
|
1960
|
+
}), l = St({
|
|
1961
1961
|
frame: r - o - p,
|
|
1962
1962
|
fps: s,
|
|
1963
1963
|
from: 0,
|
|
@@ -1970,7 +1970,7 @@ const Ve = ({
|
|
|
1970
1970
|
style: {
|
|
1971
1971
|
display: "inline-block",
|
|
1972
1972
|
opacity: c,
|
|
1973
|
-
transform: `translateY(${
|
|
1973
|
+
transform: `translateY(${h}px) rotate(${l}deg)`
|
|
1974
1974
|
},
|
|
1975
1975
|
children: t === " " ? " " : t
|
|
1976
1976
|
},
|
|
@@ -1985,13 +1985,13 @@ const Ve = ({
|
|
|
1985
1985
|
animationTextOutFrames: a,
|
|
1986
1986
|
durationInFrames: d
|
|
1987
1987
|
}) => {
|
|
1988
|
-
const o = d - a, p = a / e, c = o + n * p,
|
|
1989
|
-
frame:
|
|
1988
|
+
const o = d - a, p = a / e, c = o + n * p, h = r - c, l = St({
|
|
1989
|
+
frame: h,
|
|
1990
1990
|
fps: s,
|
|
1991
1991
|
from: 1,
|
|
1992
1992
|
to: 0,
|
|
1993
1993
|
config: { mass: 1, damping: 10 }
|
|
1994
|
-
}),
|
|
1994
|
+
}), i = W(h, [0, p], [1, 0], {
|
|
1995
1995
|
extrapolateLeft: "clamp",
|
|
1996
1996
|
extrapolateRight: "clamp"
|
|
1997
1997
|
});
|
|
@@ -2001,7 +2001,7 @@ const Ve = ({
|
|
|
2001
2001
|
style: {
|
|
2002
2002
|
display: "inline-block",
|
|
2003
2003
|
transform: `scale(${l})`,
|
|
2004
|
-
opacity:
|
|
2004
|
+
opacity: i
|
|
2005
2005
|
},
|
|
2006
2006
|
children: t === " " ? " " : t
|
|
2007
2007
|
},
|
|
@@ -2016,7 +2016,7 @@ const Ve = ({
|
|
|
2016
2016
|
animationTextOutFrames: a,
|
|
2017
2017
|
durationInFrames: d
|
|
2018
2018
|
}) => {
|
|
2019
|
-
const p = a / e,
|
|
2019
|
+
const p = a / e, h = d - a + n * p, l = r - h, i = St({
|
|
2020
2020
|
frame: l,
|
|
2021
2021
|
fps: s,
|
|
2022
2022
|
from: 0,
|
|
@@ -2028,13 +2028,13 @@ const Ve = ({
|
|
|
2028
2028
|
{
|
|
2029
2029
|
style: {
|
|
2030
2030
|
display: "inline-block",
|
|
2031
|
-
transform: `rotateY(${
|
|
2031
|
+
transform: `rotateY(${i}deg)`
|
|
2032
2032
|
},
|
|
2033
2033
|
children: t === " " ? " " : t
|
|
2034
2034
|
},
|
|
2035
2035
|
n
|
|
2036
2036
|
);
|
|
2037
|
-
},
|
|
2037
|
+
}, An = ({
|
|
2038
2038
|
char: t,
|
|
2039
2039
|
index: n,
|
|
2040
2040
|
frame: r,
|
|
@@ -2043,7 +2043,7 @@ const Ve = ({
|
|
|
2043
2043
|
animationTextOutFrames: a,
|
|
2044
2044
|
durationInFrames: d
|
|
2045
2045
|
}) => {
|
|
2046
|
-
const p = a / e,
|
|
2046
|
+
const p = a / e, h = d - a + n * p, l = r - h, i = St({
|
|
2047
2047
|
frame: l,
|
|
2048
2048
|
fps: s,
|
|
2049
2049
|
from: 0,
|
|
@@ -2058,14 +2058,14 @@ const Ve = ({
|
|
|
2058
2058
|
{
|
|
2059
2059
|
style: {
|
|
2060
2060
|
display: "inline-block",
|
|
2061
|
-
transform: `translateY(${
|
|
2061
|
+
transform: `translateY(${i}em)`,
|
|
2062
2062
|
opacity: u
|
|
2063
2063
|
},
|
|
2064
2064
|
children: t === " " ? " " : t
|
|
2065
2065
|
},
|
|
2066
2066
|
n
|
|
2067
2067
|
);
|
|
2068
|
-
},
|
|
2068
|
+
}, Qn = ({
|
|
2069
2069
|
char: t,
|
|
2070
2070
|
index: n,
|
|
2071
2071
|
frame: r,
|
|
@@ -2073,25 +2073,25 @@ const Ve = ({
|
|
|
2073
2073
|
textLength: e,
|
|
2074
2074
|
animationTextInFrames: a
|
|
2075
2075
|
}) => {
|
|
2076
|
-
const o = a / e, p = n * o, c =
|
|
2076
|
+
const o = a / e, p = n * o, c = St({
|
|
2077
2077
|
frame: r - p,
|
|
2078
2078
|
fps: s,
|
|
2079
2079
|
from: 1.1,
|
|
2080
2080
|
to: 0,
|
|
2081
2081
|
config: { damping: 10 }
|
|
2082
|
-
}),
|
|
2082
|
+
}), h = St({
|
|
2083
2083
|
frame: r - p,
|
|
2084
2084
|
fps: s,
|
|
2085
2085
|
from: 0.55,
|
|
2086
2086
|
to: 0,
|
|
2087
2087
|
config: { damping: 10 }
|
|
2088
|
-
}), l =
|
|
2088
|
+
}), l = St({
|
|
2089
2089
|
frame: r - p,
|
|
2090
2090
|
fps: s,
|
|
2091
2091
|
from: 180,
|
|
2092
2092
|
to: 0,
|
|
2093
2093
|
config: { damping: 10 }
|
|
2094
|
-
}),
|
|
2094
|
+
}), i = W(
|
|
2095
2095
|
r,
|
|
2096
2096
|
[p, p + 15],
|
|
2097
2097
|
// Adjust for opacity ramp-up
|
|
@@ -2107,8 +2107,8 @@ const Ve = ({
|
|
|
2107
2107
|
style: {
|
|
2108
2108
|
display: "inline-block",
|
|
2109
2109
|
transformOrigin: "0 100%",
|
|
2110
|
-
transform: `translateY(${c}em) translateX(${
|
|
2111
|
-
opacity:
|
|
2110
|
+
transform: `translateY(${c}em) translateX(${h}em) rotateZ(${l}deg)`,
|
|
2111
|
+
opacity: i
|
|
2112
2112
|
},
|
|
2113
2113
|
children: t === " " ? " " : t
|
|
2114
2114
|
},
|
|
@@ -2123,15 +2123,15 @@ const Ve = ({
|
|
|
2123
2123
|
animationTextOutFrames: a,
|
|
2124
2124
|
durationInFrames: d
|
|
2125
2125
|
}) => {
|
|
2126
|
-
const o = d - a, p = a / e, c = o + n * p,
|
|
2127
|
-
frame:
|
|
2126
|
+
const o = d - a, p = a / e, c = o + n * p, h = r - c, l = St({
|
|
2127
|
+
frame: h,
|
|
2128
2128
|
fps: s,
|
|
2129
2129
|
from: 0,
|
|
2130
2130
|
to: 100,
|
|
2131
2131
|
// Move text out of view
|
|
2132
2132
|
config: { damping: 20, stiffness: 120 }
|
|
2133
|
-
}),
|
|
2134
|
-
|
|
2133
|
+
}), i = W(
|
|
2134
|
+
h,
|
|
2135
2135
|
[0, p],
|
|
2136
2136
|
// Frames for opacity fade-out
|
|
2137
2137
|
[1, 0],
|
|
@@ -2146,7 +2146,7 @@ const Ve = ({
|
|
|
2146
2146
|
style: {
|
|
2147
2147
|
display: "inline-block",
|
|
2148
2148
|
transform: `translateY(${l}px)`,
|
|
2149
|
-
opacity:
|
|
2149
|
+
opacity: i
|
|
2150
2150
|
},
|
|
2151
2151
|
children: t === " " ? " " : t
|
|
2152
2152
|
},
|
|
@@ -2161,25 +2161,25 @@ const Ve = ({
|
|
|
2161
2161
|
animationTextOutFrames: a,
|
|
2162
2162
|
durationInFrames: d
|
|
2163
2163
|
}) => {
|
|
2164
|
-
const o = d - a, p = a / e, c = o + n * p,
|
|
2165
|
-
frame:
|
|
2164
|
+
const o = d - a, p = a / e, c = o + n * p, h = r - c, l = St({
|
|
2165
|
+
frame: h,
|
|
2166
2166
|
fps: s,
|
|
2167
2167
|
from: 0,
|
|
2168
2168
|
to: 1,
|
|
2169
2169
|
config: { mass: 1, damping: 10 }
|
|
2170
|
-
}),
|
|
2171
|
-
frame:
|
|
2170
|
+
}), i = St({
|
|
2171
|
+
frame: h,
|
|
2172
2172
|
fps: s,
|
|
2173
2173
|
from: 0,
|
|
2174
2174
|
to: 0.55,
|
|
2175
2175
|
config: { mass: 1, damping: 10 }
|
|
2176
|
-
}), u =
|
|
2177
|
-
frame:
|
|
2176
|
+
}), u = St({
|
|
2177
|
+
frame: h,
|
|
2178
2178
|
fps: s,
|
|
2179
2179
|
from: 0,
|
|
2180
2180
|
to: 180,
|
|
2181
2181
|
config: { mass: 1, damping: 10 }
|
|
2182
|
-
}), y = W(
|
|
2182
|
+
}), y = W(h, [0, p], [1, 0], {
|
|
2183
2183
|
extrapolateLeft: "clamp",
|
|
2184
2184
|
extrapolateRight: "clamp"
|
|
2185
2185
|
});
|
|
@@ -2189,7 +2189,7 @@ const Ve = ({
|
|
|
2189
2189
|
style: {
|
|
2190
2190
|
display: "inline-block",
|
|
2191
2191
|
transformOrigin: "0 100%",
|
|
2192
|
-
transform: `translateY(${l}em) translateX(${
|
|
2192
|
+
transform: `translateY(${l}em) translateX(${i}em) rotateZ(${u}deg)`,
|
|
2193
2193
|
opacity: y
|
|
2194
2194
|
},
|
|
2195
2195
|
children: t === " " ? " " : t
|
|
@@ -2205,8 +2205,8 @@ const Ve = ({
|
|
|
2205
2205
|
animationTextOutFrames: a,
|
|
2206
2206
|
durationInFrames: d
|
|
2207
2207
|
}) => {
|
|
2208
|
-
const o = d - a, p = a / e, c = o + n * p,
|
|
2209
|
-
frame:
|
|
2208
|
+
const o = d - a, p = a / e, c = o + n * p, h = r - c, l = St({
|
|
2209
|
+
frame: h,
|
|
2210
2210
|
fps: s,
|
|
2211
2211
|
from: 1,
|
|
2212
2212
|
to: 0,
|
|
@@ -2324,13 +2324,13 @@ const Ve = ({
|
|
|
2324
2324
|
const d = (a - e) / s, o = a / s, p = r / s, c = Math.min(
|
|
2325
2325
|
Math.max((p - d) / (o - d), 0),
|
|
2326
2326
|
1
|
|
2327
|
-
),
|
|
2327
|
+
), h = 1 + c, l = 1 - c;
|
|
2328
2328
|
return /* @__PURE__ */ f(
|
|
2329
2329
|
"span",
|
|
2330
2330
|
{
|
|
2331
2331
|
style: {
|
|
2332
2332
|
display: "inline-block",
|
|
2333
|
-
transform: `scaleX(${
|
|
2333
|
+
transform: `scaleX(${h})`,
|
|
2334
2334
|
opacity: l
|
|
2335
2335
|
},
|
|
2336
2336
|
children: t === " " ? " " : t
|
|
@@ -2348,13 +2348,13 @@ const Ve = ({
|
|
|
2348
2348
|
const d = (a - e) / s, o = a / s, p = r / s, c = Math.min(
|
|
2349
2349
|
Math.max((p - d) / (o - d), 0),
|
|
2350
2350
|
1
|
|
2351
|
-
),
|
|
2351
|
+
), h = 1 + c, l = 1 - c;
|
|
2352
2352
|
return /* @__PURE__ */ f(
|
|
2353
2353
|
"span",
|
|
2354
2354
|
{
|
|
2355
2355
|
style: {
|
|
2356
2356
|
display: "inline-block",
|
|
2357
|
-
transform: `scale(${
|
|
2357
|
+
transform: `scale(${h})`,
|
|
2358
2358
|
opacity: l
|
|
2359
2359
|
},
|
|
2360
2360
|
children: t === " " ? " " : t
|
|
@@ -2438,7 +2438,7 @@ const sr = ({
|
|
|
2438
2438
|
extrapolateRight: "clamp"
|
|
2439
2439
|
}
|
|
2440
2440
|
);
|
|
2441
|
-
return /* @__PURE__ */
|
|
2441
|
+
return /* @__PURE__ */ vt(
|
|
2442
2442
|
"span",
|
|
2443
2443
|
{
|
|
2444
2444
|
style: {
|
|
@@ -2492,7 +2492,7 @@ function dr({
|
|
|
2492
2492
|
return "";
|
|
2493
2493
|
}).join(" ");
|
|
2494
2494
|
}, [e]);
|
|
2495
|
-
return /* @__PURE__ */
|
|
2495
|
+
return /* @__PURE__ */ vt(
|
|
2496
2496
|
"div",
|
|
2497
2497
|
{
|
|
2498
2498
|
style: {
|
|
@@ -2522,7 +2522,7 @@ function dr({
|
|
|
2522
2522
|
}
|
|
2523
2523
|
);
|
|
2524
2524
|
}
|
|
2525
|
-
const
|
|
2525
|
+
const ir = ({
|
|
2526
2526
|
text: t,
|
|
2527
2527
|
frame: n,
|
|
2528
2528
|
details: r,
|
|
@@ -2577,7 +2577,7 @@ const hr = ({
|
|
|
2577
2577
|
)
|
|
2578
2578
|
}
|
|
2579
2579
|
);
|
|
2580
|
-
},
|
|
2580
|
+
}, hr = ({
|
|
2581
2581
|
text: t,
|
|
2582
2582
|
frame: n,
|
|
2583
2583
|
animationTextInFrames: r,
|
|
@@ -2585,9 +2585,9 @@ const hr = ({
|
|
|
2585
2585
|
}) => {
|
|
2586
2586
|
const e = r * 0.5, a = r, d = 8, o = W(n, [0, e], [0.5, 1], {
|
|
2587
2587
|
extrapolateRight: "clamp"
|
|
2588
|
-
}), p = o, c = 0,
|
|
2588
|
+
}), p = o, c = 0, h = 1, l = W(n, [0, e], [2, 1], {
|
|
2589
2589
|
extrapolateRight: "clamp"
|
|
2590
|
-
}),
|
|
2590
|
+
}), i = n < e ? W(n, [0, e], [20, 0], {
|
|
2591
2591
|
extrapolateRight: "clamp"
|
|
2592
2592
|
}) : W(n, [e, a], [0, 40], {
|
|
2593
2593
|
extrapolateLeft: "clamp",
|
|
@@ -2604,7 +2604,7 @@ const hr = ({
|
|
|
2604
2604
|
[0, e],
|
|
2605
2605
|
[0.5, 1],
|
|
2606
2606
|
{ extrapolateRight: "clamp" }
|
|
2607
|
-
),
|
|
2607
|
+
), x = W(
|
|
2608
2608
|
v,
|
|
2609
2609
|
[0, e],
|
|
2610
2610
|
[0.15, 0],
|
|
@@ -2618,7 +2618,7 @@ const hr = ({
|
|
|
2618
2618
|
position: "absolute",
|
|
2619
2619
|
top: 0,
|
|
2620
2620
|
left: 0,
|
|
2621
|
-
opacity:
|
|
2621
|
+
opacity: x,
|
|
2622
2622
|
transform: `scale(${b * 2})`,
|
|
2623
2623
|
pointerEvents: "none"
|
|
2624
2624
|
},
|
|
@@ -2628,7 +2628,7 @@ const hr = ({
|
|
|
2628
2628
|
)
|
|
2629
2629
|
);
|
|
2630
2630
|
}
|
|
2631
|
-
return /* @__PURE__ */
|
|
2631
|
+
return /* @__PURE__ */ vt(
|
|
2632
2632
|
"div",
|
|
2633
2633
|
{
|
|
2634
2634
|
style: {
|
|
@@ -2660,7 +2660,7 @@ const hr = ({
|
|
|
2660
2660
|
width: s.width,
|
|
2661
2661
|
height: s.height,
|
|
2662
2662
|
transform: `scaleX(${l})`,
|
|
2663
|
-
filter: `blur(${
|
|
2663
|
+
filter: `blur(${i * 3}px)`
|
|
2664
2664
|
},
|
|
2665
2665
|
children: t
|
|
2666
2666
|
}
|
|
@@ -2669,7 +2669,7 @@ const hr = ({
|
|
|
2669
2669
|
"span",
|
|
2670
2670
|
{
|
|
2671
2671
|
style: {
|
|
2672
|
-
opacity:
|
|
2672
|
+
opacity: h,
|
|
2673
2673
|
filter: `blur(${c}px)`,
|
|
2674
2674
|
transform: `scale(${p})`,
|
|
2675
2675
|
fontSize: parseFloat(s.fontSize.toString()),
|
|
@@ -2700,12 +2700,12 @@ const hr = ({
|
|
|
2700
2700
|
details: s
|
|
2701
2701
|
}) => {
|
|
2702
2702
|
const e = r * 3 / 4, a = Math.floor(e / ko.length);
|
|
2703
|
-
let d = "", o = 0, p = a, c = 2,
|
|
2703
|
+
let d = "", o = 0, p = a, c = 2, h = 0.5, l = parseFloat(s.fontSize.toString());
|
|
2704
2704
|
if (n < e) {
|
|
2705
2705
|
const v = Math.floor(n / a);
|
|
2706
|
-
d = ko[v], o = n - v * a, p = a, c = 2,
|
|
2707
|
-
} else n < r ? (d = t, o = n - e, p = r - e, c = 2,
|
|
2708
|
-
const
|
|
2706
|
+
d = ko[v], o = n - v * a, p = a, c = 2, h = 0.5, l = parseFloat(s.fontSize.toString());
|
|
2707
|
+
} else n < r ? (d = t, o = n - e, p = r - e, c = 2, h = 1, l = parseFloat(s.fontSize.toString())) : (d = t, o = p, c = 1, h = 1, l = parseFloat(s.fontSize.toString()));
|
|
2708
|
+
const i = Math.min(o / p, 1), u = W(i, [0, 1], [c, h]), y = W(i, [0, 1], [0.3, 1]), m = W(i, [0, 1], [8, 0]);
|
|
2709
2709
|
return /* @__PURE__ */ f(
|
|
2710
2710
|
"span",
|
|
2711
2711
|
{
|
|
@@ -2731,27 +2731,27 @@ const hr = ({
|
|
|
2731
2731
|
animationTextInFrames: s,
|
|
2732
2732
|
fps: e
|
|
2733
2733
|
}) => {
|
|
2734
|
-
const a = (
|
|
2734
|
+
const a = (i, u, y) => {
|
|
2735
2735
|
const v = document.createElement("canvas").getContext("2d");
|
|
2736
2736
|
if (!v) return [];
|
|
2737
2737
|
v.font = `${y}px ${r.fontFamily || "Arial, sans-serif"}`;
|
|
2738
|
-
const b =
|
|
2739
|
-
let
|
|
2738
|
+
const b = i.split(" ");
|
|
2739
|
+
let x = [], g = "";
|
|
2740
2740
|
return b.forEach((M) => {
|
|
2741
|
-
const
|
|
2742
|
-
v.measureText(
|
|
2743
|
-
}), g &&
|
|
2744
|
-
}, d = r.width || 300, o = a(t, d, r.fontSize), p = s / e, c = 0.3,
|
|
2745
|
-
const y = u *
|
|
2741
|
+
const $ = g ? `${g} ${M}` : M;
|
|
2742
|
+
v.measureText($).width > u ? (x.push(g), g = M) : g = $;
|
|
2743
|
+
}), g && x.push(g), x;
|
|
2744
|
+
}, d = r.width || 300, o = a(t, d, r.fontSize), p = s / e, c = 0.3, h = p / o.length, l = o.map((i, u) => {
|
|
2745
|
+
const y = u * h * (1 - c) * 1.5, m = y + h, v = y * e, b = Math.max(m * e, p * e), x = W(n, [v, b], [0, 1], {
|
|
2746
2746
|
easing: w.out(w.cubic),
|
|
2747
2747
|
extrapolateLeft: "clamp",
|
|
2748
2748
|
extrapolateRight: "clamp"
|
|
2749
|
-
}), g = W(
|
|
2749
|
+
}), g = W(x, [0, 1], [-r.fontSize, 0]);
|
|
2750
2750
|
return {
|
|
2751
|
-
text:
|
|
2752
|
-
progress:
|
|
2751
|
+
text: i,
|
|
2752
|
+
progress: x,
|
|
2753
2753
|
y: g,
|
|
2754
|
-
opacity:
|
|
2754
|
+
opacity: x
|
|
2755
2755
|
};
|
|
2756
2756
|
});
|
|
2757
2757
|
return /* @__PURE__ */ f(
|
|
@@ -2764,7 +2764,7 @@ const hr = ({
|
|
|
2764
2764
|
overflow: "hidden",
|
|
2765
2765
|
width: `${d}px`
|
|
2766
2766
|
},
|
|
2767
|
-
children: l.map((
|
|
2767
|
+
children: l.map((i, u) => /* @__PURE__ */ f(
|
|
2768
2768
|
"div",
|
|
2769
2769
|
{
|
|
2770
2770
|
style: {
|
|
@@ -2777,10 +2777,10 @@ const hr = ({
|
|
|
2777
2777
|
"div",
|
|
2778
2778
|
{
|
|
2779
2779
|
style: {
|
|
2780
|
-
transform: `translateY(${
|
|
2781
|
-
opacity:
|
|
2780
|
+
transform: `translateY(${i.y}px)`,
|
|
2781
|
+
opacity: i.opacity
|
|
2782
2782
|
},
|
|
2783
|
-
children:
|
|
2783
|
+
children: i.text
|
|
2784
2784
|
}
|
|
2785
2785
|
)
|
|
2786
2786
|
},
|
|
@@ -2810,7 +2810,7 @@ const hr = ({
|
|
|
2810
2810
|
text: r
|
|
2811
2811
|
}) => {
|
|
2812
2812
|
const s = W(t, [0, n / 2], [0, 360]), e = s - 90;
|
|
2813
|
-
return /* @__PURE__ */
|
|
2813
|
+
return /* @__PURE__ */ vt(
|
|
2814
2814
|
"div",
|
|
2815
2815
|
{
|
|
2816
2816
|
style: {
|
|
@@ -2879,12 +2879,12 @@ const hr = ({
|
|
|
2879
2879
|
}
|
|
2880
2880
|
);
|
|
2881
2881
|
};
|
|
2882
|
-
function
|
|
2882
|
+
function io(t) {
|
|
2883
2883
|
const n = Math.sin(t) * 1e4;
|
|
2884
2884
|
return n - Math.floor(n);
|
|
2885
2885
|
}
|
|
2886
2886
|
const yr = ({ text: t, frame: n }) => {
|
|
2887
|
-
const r = (
|
|
2887
|
+
const r = (io(n) - 0.5) * 8, s = (io(n + 999) - 0.5) * 8, e = (io(n + 500) - 0.5) * 6;
|
|
2888
2888
|
return /* @__PURE__ */ f(
|
|
2889
2889
|
"span",
|
|
2890
2890
|
{
|
|
@@ -2913,13 +2913,13 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
2913
2913
|
position: "relative"
|
|
2914
2914
|
},
|
|
2915
2915
|
children: Array.from({ length: d }).map((o, p) => {
|
|
2916
|
-
const c = p * 4,
|
|
2916
|
+
const c = p * 4, h = -p * 2, l = 1 / (d - p);
|
|
2917
2917
|
return /* @__PURE__ */ f(
|
|
2918
2918
|
"div",
|
|
2919
2919
|
{
|
|
2920
2920
|
style: {
|
|
2921
2921
|
position: "absolute",
|
|
2922
|
-
transform: `translate(${c * 4}px, ${
|
|
2922
|
+
transform: `translate(${c * 4}px, ${h * 4}px)`,
|
|
2923
2923
|
fontWeight: "bold",
|
|
2924
2924
|
fontSize: r.fontSize,
|
|
2925
2925
|
zIndex: p,
|
|
@@ -2936,7 +2936,7 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
2936
2936
|
);
|
|
2937
2937
|
}, gr = ({ text: t, frame: n }) => {
|
|
2938
2938
|
const r = Math.sin(n / 10) * 10, s = Math.sin(n / 5) * 10;
|
|
2939
|
-
return /* @__PURE__ */
|
|
2939
|
+
return /* @__PURE__ */ vt(
|
|
2940
2940
|
"span",
|
|
2941
2941
|
{
|
|
2942
2942
|
style: {
|
|
@@ -2983,11 +2983,11 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
2983
2983
|
details: d,
|
|
2984
2984
|
marqueeDetails: o
|
|
2985
2985
|
}) => {
|
|
2986
|
-
const p =
|
|
2986
|
+
const p = Yt(), c = typeof n == "number" && !isNaN(n) ? n : p, h = Math.max(0, c - (r || 0)), l = Math.min(1, Math.max(0, h / (s || 1))), i = Math.min(12, Math.max(1, Number((o == null ? void 0 : o.repeatX) ?? 5))), u = Math.min(12, Math.max(1, Number((o == null ? void 0 : o.repeatY) ?? 5))), y = d.width || 300, m = d.height || 100, v = y / i, b = m / u, x = (o == null ? void 0 : o.scaleFactor) !== void 0 ? Number(o.scaleFactor) : 1, g = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialScaleFactor) !== void 0 ? Number(o.initialScaleFactor) : x, M = o != null && o.hasInitialValue ? g + (x - g) * l : x, $ = (o == null ? void 0 : o.gapX) !== void 0 ? Number(o.gapX) : 60, I = (o == null ? void 0 : o.gapY) !== void 0 ? Number(o.gapY) : 60, k = 0.55, S = Math.max(8, b * 0.7 - I * 0.1), Y = Math.max(
|
|
2987
2987
|
8,
|
|
2988
|
-
(v -
|
|
2989
|
-
), N = Math.min(S, Y),
|
|
2990
|
-
return
|
|
2988
|
+
(v - $ * 0.2) / Math.max(1, t.length * k)
|
|
2989
|
+
), N = Math.min(S, Y), V = Math.max(8, N * M), F = (o == null ? void 0 : o.direction) || "horizontal", X = F === "static", P = (o == null ? void 0 : o.baseSpeed) !== void 0 ? Number(o.baseSpeed) : 0.25, G = (o == null ? void 0 : o.speedVariation) !== void 0 ? Number(o.speedVariation) : 0.5, E = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialBaseSpeed) !== void 0 ? Number(o.initialBaseSpeed) : P, O = o != null && o.hasInitialValue ? E + (P - E) * l : P, C = X ? 0 : O * 80, B = X ? 0 : O * 80, z = (o == null ? void 0 : o.lineOffset) !== void 0 ? Number(o.lineOffset) : 0.5, et = Gt(d), T = F === "vertical" || F === "up" || F === "down", Z = F === "diagonal", J = u + ((T || Z) && B > 0 ? 2 : 0), D = i + ((!T || Z) && C > 0 ? 2 : 0), st = (J - 1) / 2, mt = (D - 1) / 2, L = Array.from({ length: J }, (U, ot) => ot - st), tt = Array.from({ length: D }, (U, ot) => ot - mt);
|
|
2990
|
+
return T ? /* @__PURE__ */ f(
|
|
2991
2991
|
"div",
|
|
2992
2992
|
{
|
|
2993
2993
|
style: {
|
|
@@ -2996,29 +2996,29 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
2996
2996
|
position: "relative",
|
|
2997
2997
|
overflow: "hidden"
|
|
2998
2998
|
},
|
|
2999
|
-
children:
|
|
3000
|
-
let
|
|
3001
|
-
F === "up" && (
|
|
3002
|
-
const
|
|
3003
|
-
return
|
|
3004
|
-
const
|
|
2999
|
+
children: tt.map((U, ot) => {
|
|
3000
|
+
let A = ot % 2 === 0 ? 1 : -1;
|
|
3001
|
+
F === "up" && (A = -1), F === "down" && (A = 1);
|
|
3002
|
+
const Q = 1 + ot % 2 * (G * 0.5), lt = B > 0 && A !== 0 ? A * (c * B * Q) + U * (b * z) : U * (b * z), Mt = B === 0 || A === 0 ? 0 : (lt % b + b) % b;
|
|
3003
|
+
return L.map((pt, q) => {
|
|
3004
|
+
const rt = U * v, nt = pt * b + Mt;
|
|
3005
3005
|
return /* @__PURE__ */ f(
|
|
3006
3006
|
"span",
|
|
3007
3007
|
{
|
|
3008
3008
|
style: {
|
|
3009
3009
|
...et,
|
|
3010
3010
|
position: "absolute",
|
|
3011
|
-
left: `calc(50% + ${
|
|
3012
|
-
top: `calc(50% + ${
|
|
3011
|
+
left: `calc(50% + ${rt}px)`,
|
|
3012
|
+
top: `calc(50% + ${nt}px)`,
|
|
3013
3013
|
transform: "translate(-50%, -50%)",
|
|
3014
|
-
fontSize: `${
|
|
3014
|
+
fontSize: `${V}px`,
|
|
3015
3015
|
lineHeight: 1,
|
|
3016
|
-
opacity:
|
|
3016
|
+
opacity: pt === 0 && U === 0 ? 1 : 0.85,
|
|
3017
3017
|
whiteSpace: "nowrap"
|
|
3018
3018
|
},
|
|
3019
3019
|
children: t
|
|
3020
3020
|
},
|
|
3021
|
-
`v-${
|
|
3021
|
+
`v-${ot}-${q}`
|
|
3022
3022
|
);
|
|
3023
3023
|
});
|
|
3024
3024
|
})
|
|
@@ -3032,27 +3032,27 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3032
3032
|
position: "relative",
|
|
3033
3033
|
overflow: "hidden"
|
|
3034
3034
|
},
|
|
3035
|
-
children:
|
|
3036
|
-
const
|
|
3037
|
-
return
|
|
3038
|
-
const
|
|
3035
|
+
children: L.map((U, ot) => {
|
|
3036
|
+
const A = ot % 2 === 0 ? 1 : -1, Q = ot % 2 === 0 ? 1 : -1, lt = 1 + ot % 2 * (G * 0.5), Mt = C > 0 ? A * (c * C * lt) + U * (v * z) : U * (v * z), pt = C === 0 ? 0 : (Mt % v + v) % v, q = B > 0 ? Q * (c * B * lt) + U * (b * z) : U * (b * z), rt = B === 0 ? 0 : (q % b + b) % b;
|
|
3037
|
+
return tt.map((nt, dt) => {
|
|
3038
|
+
const it = nt * v + pt, yt = U * b + rt;
|
|
3039
3039
|
return /* @__PURE__ */ f(
|
|
3040
3040
|
"span",
|
|
3041
3041
|
{
|
|
3042
3042
|
style: {
|
|
3043
3043
|
...et,
|
|
3044
3044
|
position: "absolute",
|
|
3045
|
-
left: `calc(50% + ${
|
|
3046
|
-
top: `calc(50% + ${
|
|
3045
|
+
left: `calc(50% + ${it}px)`,
|
|
3046
|
+
top: `calc(50% + ${yt}px)`,
|
|
3047
3047
|
transform: "translate(-50%, -50%)",
|
|
3048
|
-
fontSize: `${
|
|
3048
|
+
fontSize: `${V}px`,
|
|
3049
3049
|
lineHeight: 1,
|
|
3050
|
-
opacity: U === 0 &&
|
|
3050
|
+
opacity: U === 0 && nt === 0 ? 1 : 0.85,
|
|
3051
3051
|
whiteSpace: "nowrap"
|
|
3052
3052
|
},
|
|
3053
3053
|
children: t
|
|
3054
3054
|
},
|
|
3055
|
-
`d-${
|
|
3055
|
+
`d-${ot}-${dt}`
|
|
3056
3056
|
);
|
|
3057
3057
|
});
|
|
3058
3058
|
})
|
|
@@ -3066,29 +3066,29 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3066
3066
|
position: "relative",
|
|
3067
3067
|
overflow: "hidden"
|
|
3068
3068
|
},
|
|
3069
|
-
children:
|
|
3070
|
-
let
|
|
3071
|
-
F === "left" && (
|
|
3072
|
-
const
|
|
3073
|
-
return
|
|
3074
|
-
const
|
|
3069
|
+
children: L.map((U, ot) => {
|
|
3070
|
+
let A = ot % 2 === 0 ? 1 : -1;
|
|
3071
|
+
F === "left" && (A = -1), F === "right" && (A = 1);
|
|
3072
|
+
const Q = 1 + ot % 2 * (G * 0.5), lt = C > 0 && A !== 0 ? A * (c * C * Q) + U * (v * z) : U * (v * z), Mt = C === 0 || A === 0 ? 0 : (lt % v + v) % v;
|
|
3073
|
+
return tt.map((pt, q) => {
|
|
3074
|
+
const rt = pt * v + Mt, nt = U * b;
|
|
3075
3075
|
return /* @__PURE__ */ f(
|
|
3076
3076
|
"span",
|
|
3077
3077
|
{
|
|
3078
3078
|
style: {
|
|
3079
3079
|
...et,
|
|
3080
3080
|
position: "absolute",
|
|
3081
|
-
left: `calc(50% + ${
|
|
3082
|
-
top: `calc(50% + ${
|
|
3081
|
+
left: `calc(50% + ${rt}px)`,
|
|
3082
|
+
top: `calc(50% + ${nt}px)`,
|
|
3083
3083
|
transform: "translate(-50%, -50%)",
|
|
3084
|
-
fontSize: `${
|
|
3084
|
+
fontSize: `${V}px`,
|
|
3085
3085
|
lineHeight: 1,
|
|
3086
|
-
opacity: U === 0 &&
|
|
3086
|
+
opacity: U === 0 && pt === 0 ? 1 : 0.85,
|
|
3087
3087
|
whiteSpace: "nowrap"
|
|
3088
3088
|
},
|
|
3089
3089
|
children: t
|
|
3090
3090
|
},
|
|
3091
|
-
`h-${
|
|
3091
|
+
`h-${ot}-${q}`
|
|
3092
3092
|
);
|
|
3093
3093
|
});
|
|
3094
3094
|
})
|
|
@@ -3104,17 +3104,17 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3104
3104
|
details: d,
|
|
3105
3105
|
echoesDetails: o
|
|
3106
3106
|
}) => {
|
|
3107
|
-
const p =
|
|
3107
|
+
const p = Yt(), c = typeof n == "number" && !isNaN(n) ? n : p, h = d.width || 300, l = d.height || 100, i = (o == null ? void 0 : o.keepStill) || "both", u = Number((o == null ? void 0 : o.toRepeatCount) ?? 5), y = Number((o == null ? void 0 : o.toScaleDown) ?? 0.3), m = Number((o == null ? void 0 : o.toCenterX) ?? 0.5), v = Number((o == null ? void 0 : o.toCenterY) ?? 0.5), b = (o == null ? void 0 : o.initialRepeatCount) !== void 0 ? Number(o.initialRepeatCount) : u, x = (o == null ? void 0 : o.initialScaleDown) !== void 0 ? Number(o.initialScaleDown) : 1, g = (o == null ? void 0 : o.initialCenterX) !== void 0 ? Number(o.initialCenterX) : m, M = (o == null ? void 0 : o.initialCenterY) !== void 0 ? Number(o.initialCenterY) : v, $ = Math.max(0, c - (r || 0)), I = Math.min(1, Math.max(0, $ / (s || 1)));
|
|
3108
3108
|
let S = e + (a - e) * I;
|
|
3109
|
-
|
|
3109
|
+
i === "initial" ? S = 0 : i === "final" && (S = 1);
|
|
3110
3110
|
const Y = Math.max(
|
|
3111
3111
|
1,
|
|
3112
3112
|
Math.round(W(S, [0, 1], [b, u]))
|
|
3113
3113
|
), N = W(
|
|
3114
3114
|
S,
|
|
3115
3115
|
[0, 1],
|
|
3116
|
-
[
|
|
3117
|
-
),
|
|
3116
|
+
[x, y]
|
|
3117
|
+
), V = W(
|
|
3118
3118
|
S,
|
|
3119
3119
|
[0, 1],
|
|
3120
3120
|
[g, m]
|
|
@@ -3122,7 +3122,7 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3122
3122
|
S,
|
|
3123
3123
|
[0, 1],
|
|
3124
3124
|
[M, v]
|
|
3125
|
-
), X =
|
|
3125
|
+
), X = Gt(d), P = Array.from({ length: Y }, (G, E) => E);
|
|
3126
3126
|
return /* @__PURE__ */ f(
|
|
3127
3127
|
"div",
|
|
3128
3128
|
{
|
|
@@ -3132,8 +3132,8 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3132
3132
|
position: "relative",
|
|
3133
3133
|
overflow: "hidden"
|
|
3134
3134
|
},
|
|
3135
|
-
children: P.map((
|
|
3136
|
-
const
|
|
3135
|
+
children: P.map((G) => {
|
|
3136
|
+
const E = Y > 1 ? G / (Y - 1) : 0, O = 1 - E * (1 - Math.max(0.01, N)), C = (V - 0.5) * h * E, B = (F - 0.5) * l * E;
|
|
3137
3137
|
return /* @__PURE__ */ f(
|
|
3138
3138
|
"span",
|
|
3139
3139
|
{
|
|
@@ -3146,12 +3146,12 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3146
3146
|
transformOrigin: "center center",
|
|
3147
3147
|
lineHeight: 1,
|
|
3148
3148
|
whiteSpace: "nowrap",
|
|
3149
|
-
zIndex:
|
|
3150
|
-
opacity:
|
|
3149
|
+
zIndex: G + 1,
|
|
3150
|
+
opacity: G === 0 ? 1 : 0.85
|
|
3151
3151
|
},
|
|
3152
3152
|
children: t
|
|
3153
3153
|
},
|
|
3154
|
-
`echo-${
|
|
3154
|
+
`echo-${G}`
|
|
3155
3155
|
);
|
|
3156
3156
|
})
|
|
3157
3157
|
}
|
|
@@ -3166,7 +3166,7 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3166
3166
|
details: d,
|
|
3167
3167
|
wiggleDetails: o
|
|
3168
3168
|
}) => {
|
|
3169
|
-
const p =
|
|
3169
|
+
const p = Yt(), c = typeof n == "number" && !isNaN(n) ? n : p, h = Number((o == null ? void 0 : o.wiggleX) ?? 20), l = Number((o == null ? void 0 : o.wiggleY) ?? 20), i = Number((o == null ? void 0 : o.speed) ?? 3), u = Number((o == null ? void 0 : o.angle) ?? 10), y = Number((o == null ? void 0 : o.seed) ?? 1), m = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialWiggleX) !== void 0 ? Number(o.initialWiggleX) : h, v = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialWiggleY) !== void 0 ? Number(o.initialWiggleY) : l, b = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialSpeed) !== void 0 ? Number(o.initialSpeed) : i, x = o != null && o.hasInitialValue && (o == null ? void 0 : o.initialAngle) !== void 0 ? Number(o.initialAngle) : u, g = Math.max(0, c - (r || 0)), M = Math.min(1, Math.max(0, g / (s || 1))), $ = o != null && o.hasInitialValue ? m + (h - m) * M : h, I = o != null && o.hasInitialValue ? v + (l - v) * M : l, k = o != null && o.hasInitialValue ? b + (i - b) * M : i, S = o != null && o.hasInitialValue ? x + (u - x) * M : u, Y = c * (k * 0.08), N = y * 12.345, V = Math.sin(Y + N) * Math.cos(Y * 0.65 + N) * $, F = Math.cos(Y * 0.85 + N) * Math.sin(Y * 1.15 + N) * I, X = Math.sin(Y * 0.9 + N * 1.35) * S, P = Gt(d);
|
|
3170
3170
|
return /* @__PURE__ */ f(
|
|
3171
3171
|
"div",
|
|
3172
3172
|
{
|
|
@@ -3182,7 +3182,7 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3182
3182
|
style: {
|
|
3183
3183
|
...P,
|
|
3184
3184
|
position: "absolute",
|
|
3185
|
-
left: `calc(50% + ${
|
|
3185
|
+
left: `calc(50% + ${V}px)`,
|
|
3186
3186
|
top: `calc(50% + ${F}px)`,
|
|
3187
3187
|
transform: `translate(-50%, -50%) rotate(${X}deg)`,
|
|
3188
3188
|
transformOrigin: "center center",
|
|
@@ -3204,7 +3204,7 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3204
3204
|
details: d,
|
|
3205
3205
|
cardFlipDetails: o
|
|
3206
3206
|
}) => {
|
|
3207
|
-
const p =
|
|
3207
|
+
const p = Gt(d);
|
|
3208
3208
|
return /* @__PURE__ */ f(
|
|
3209
3209
|
bo,
|
|
3210
3210
|
{
|
|
@@ -3229,24 +3229,24 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3229
3229
|
details: d,
|
|
3230
3230
|
noiseTileDetails: o
|
|
3231
3231
|
}) => {
|
|
3232
|
-
const p =
|
|
3232
|
+
const p = Yt(), c = typeof n == "number" && !isNaN(n) ? n : p, h = d.width || 300, l = d.height || 100, i = (o == null ? void 0 : o.keepStill) || "both", u = Number((o == null ? void 0 : o.toXRepetitions) ?? (o == null ? void 0 : o.xRepetitions) ?? 5), y = Number((o == null ? void 0 : o.toYRepetitions) ?? (o == null ? void 0 : o.yRepetitions) ?? 5), m = Number((o == null ? void 0 : o.toGapX) ?? (o == null ? void 0 : o.gapX) ?? 12), v = Number((o == null ? void 0 : o.toGapY) ?? (o == null ? void 0 : o.gapY) ?? 12), b = Number((o == null ? void 0 : o.toScale) ?? (o == null ? void 0 : o.scale) ?? 1), x = Number((o == null ? void 0 : o.toNoiseScale) ?? (o == null ? void 0 : o.noiseScale) ?? 1.5), g = Number((o == null ? void 0 : o.toNoiseMoveX) ?? (o == null ? void 0 : o.noiseMoveX) ?? 0.6), M = Number((o == null ? void 0 : o.toNoiseMoveY) ?? (o == null ? void 0 : o.noiseMoveY) ?? 0.4), $ = Number((o == null ? void 0 : o.toFps) ?? (o == null ? void 0 : o.fps) ?? 12), I = Number((o == null ? void 0 : o.toThreshold) ?? (o == null ? void 0 : o.threshold) ?? 0.45), k = Number((o == null ? void 0 : o.toSeedOffset) ?? (o == null ? void 0 : o.seedOffset) ?? 0), S = !!(o != null && o.hasInitialValue), Y = S ? Number((o == null ? void 0 : o.initialXRepetitions) ?? u) : u, N = S ? Number((o == null ? void 0 : o.initialYRepetitions) ?? y) : y, V = S ? Number((o == null ? void 0 : o.initialGapX) ?? m) : m, F = S ? Number((o == null ? void 0 : o.initialGapY) ?? v) : v, X = S ? Number((o == null ? void 0 : o.initialScale) ?? b) : b, P = S ? Number((o == null ? void 0 : o.initialNoiseScale) ?? x) : x, G = S ? Number((o == null ? void 0 : o.initialNoiseMoveX) ?? g) : g, E = S ? Number((o == null ? void 0 : o.initialNoiseMoveY) ?? M) : M, O = S ? Number((o == null ? void 0 : o.initialFps) ?? $) : $, C = S ? Number((o == null ? void 0 : o.initialThreshold) ?? I) : I, B = S ? Number((o == null ? void 0 : o.initialSeedOffset) ?? k) : k, z = Math.max(0, c - (r || 0)), et = Math.min(1, Math.max(0, z / (s || 1)));
|
|
3233
3233
|
let Z = e + (a - e) * et;
|
|
3234
|
-
|
|
3235
|
-
const
|
|
3236
|
-
for (let
|
|
3237
|
-
for (let
|
|
3238
|
-
const
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
),
|
|
3244
|
-
|
|
3245
|
-
col:
|
|
3246
|
-
row:
|
|
3247
|
-
visible:
|
|
3248
|
-
posX:
|
|
3249
|
-
posY:
|
|
3234
|
+
i === "initial" ? Z = 0 : i === "final" && (Z = 1);
|
|
3235
|
+
const J = Math.max(1, Math.round(W(Z, [0, 1], [Y, u]))), D = Math.max(1, Math.round(W(Z, [0, 1], [N, y]))), st = W(Z, [0, 1], [V, m]), mt = W(Z, [0, 1], [F, v]), L = W(Z, [0, 1], [X, b]), tt = W(Z, [0, 1], [P, x]), U = W(Z, [0, 1], [G, g]), ot = W(Z, [0, 1], [E, M]), A = Math.max(1, Math.round(W(Z, [0, 1], [O, $]))), Q = W(Z, [0, 1], [C, I]), lt = W(Z, [0, 1], [B, k]), Mt = Gt(d), pt = Math.floor(z * (A / 30)), q = (J - 1) / 2, rt = (D - 1) / 2, nt = [];
|
|
3236
|
+
for (let dt = 0; dt < D; dt++)
|
|
3237
|
+
for (let it = 0; it < J; it++) {
|
|
3238
|
+
const yt = it / Math.max(1, J) * tt, xt = dt / Math.max(1, D) * tt, wt = pt * 0.1 + lt, ft = Lo(
|
|
3239
|
+
yt + pt * U * 0.05,
|
|
3240
|
+
xt + pt * ot * 0.05,
|
|
3241
|
+
wt,
|
|
3242
|
+
lt
|
|
3243
|
+
), Ft = it === Math.floor(q) && dt === Math.floor(rt) || ft >= Q, Rt = it - q, Xt = dt - rt, Vt = st / 100 * h, Ct = mt / 100 * l, Bt = Rt * (h * L + Vt), Ot = Xt * (l * L + Ct);
|
|
3244
|
+
nt.push({
|
|
3245
|
+
col: it,
|
|
3246
|
+
row: dt,
|
|
3247
|
+
visible: Ft,
|
|
3248
|
+
posX: Bt,
|
|
3249
|
+
posY: Ot
|
|
3250
3250
|
});
|
|
3251
3251
|
}
|
|
3252
3252
|
return /* @__PURE__ */ f(
|
|
@@ -3258,22 +3258,22 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3258
3258
|
position: "relative",
|
|
3259
3259
|
overflow: "visible"
|
|
3260
3260
|
},
|
|
3261
|
-
children:
|
|
3261
|
+
children: nt.map((dt) => dt.visible ? /* @__PURE__ */ f(
|
|
3262
3262
|
"span",
|
|
3263
3263
|
{
|
|
3264
3264
|
style: {
|
|
3265
|
-
...
|
|
3265
|
+
...Mt,
|
|
3266
3266
|
position: "absolute",
|
|
3267
|
-
left: `calc(50% + ${
|
|
3268
|
-
top: `calc(50% + ${
|
|
3269
|
-
transform: `translate(-50%, -50%) scale(${
|
|
3267
|
+
left: `calc(50% + ${dt.posX}px)`,
|
|
3268
|
+
top: `calc(50% + ${dt.posY}px)`,
|
|
3269
|
+
transform: `translate(-50%, -50%) scale(${L})`,
|
|
3270
3270
|
transformOrigin: "center center",
|
|
3271
3271
|
lineHeight: 1,
|
|
3272
3272
|
whiteSpace: "nowrap"
|
|
3273
3273
|
},
|
|
3274
3274
|
children: t
|
|
3275
3275
|
},
|
|
3276
|
-
`text-tile-${
|
|
3276
|
+
`text-tile-${dt.col}-${dt.row}`
|
|
3277
3277
|
) : null)
|
|
3278
3278
|
}
|
|
3279
3279
|
);
|
|
@@ -3303,7 +3303,7 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3303
3303
|
return "";
|
|
3304
3304
|
}).join(" ");
|
|
3305
3305
|
}, [a]);
|
|
3306
|
-
return /* @__PURE__ */
|
|
3306
|
+
return /* @__PURE__ */ vt(
|
|
3307
3307
|
"div",
|
|
3308
3308
|
{
|
|
3309
3309
|
style: {
|
|
@@ -3341,28 +3341,28 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3341
3341
|
durationInFrames: a
|
|
3342
3342
|
}) => {
|
|
3343
3343
|
const d = (y, m, v) => {
|
|
3344
|
-
const
|
|
3345
|
-
if (
|
|
3346
|
-
|
|
3344
|
+
const x = document.createElement("canvas").getContext("2d");
|
|
3345
|
+
if (!x) return [];
|
|
3346
|
+
x.font = `${v}px ${r.fontFamily || "Arial, sans-serif"}`;
|
|
3347
3347
|
const g = y.split(" ");
|
|
3348
|
-
let M = [],
|
|
3348
|
+
let M = [], $ = "";
|
|
3349
3349
|
return g.forEach((I) => {
|
|
3350
|
-
const k =
|
|
3351
|
-
|
|
3352
|
-
}),
|
|
3353
|
-
}, o = (a - s) / e, p = r.width || 300, c = d(t, p, r.fontSize),
|
|
3354
|
-
const v = o + m *
|
|
3350
|
+
const k = $ ? `${$} ${I}` : I;
|
|
3351
|
+
x.measureText(k).width > m ? (M.push($), $ = I) : $ = k;
|
|
3352
|
+
}), $ && M.push($), M;
|
|
3353
|
+
}, o = (a - s) / e, p = r.width || 300, c = d(t, p, r.fontSize), h = s / e, l = 0.5, i = h / c.length, u = c.map((y, m) => {
|
|
3354
|
+
const v = o + m * i * (1 - l) * 1.5, b = v + i, x = v * e, g = Math.min(
|
|
3355
3355
|
b * e,
|
|
3356
|
-
(o +
|
|
3357
|
-
), M = W(n, [
|
|
3356
|
+
(o + h) * e
|
|
3357
|
+
), M = W(n, [x, g], [0, 1], {
|
|
3358
3358
|
easing: w.in(w.cubic),
|
|
3359
3359
|
extrapolateLeft: "clamp",
|
|
3360
3360
|
extrapolateRight: "clamp"
|
|
3361
|
-
}),
|
|
3361
|
+
}), $ = W(M, [0, 1], [0, -r.fontSize]);
|
|
3362
3362
|
return {
|
|
3363
3363
|
text: y,
|
|
3364
3364
|
progress: M,
|
|
3365
|
-
y:
|
|
3365
|
+
y: $,
|
|
3366
3366
|
opacity: 1 - M
|
|
3367
3367
|
};
|
|
3368
3368
|
});
|
|
@@ -3410,11 +3410,11 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3410
3410
|
}) => {
|
|
3411
3411
|
const d = e - r, p = W(n, [d, d + r], [0, 1], {
|
|
3412
3412
|
extrapolateRight: "clamp"
|
|
3413
|
-
}), c = s.width,
|
|
3413
|
+
}), c = s.width, h = s.height, l = W(
|
|
3414
3414
|
Math.round(p * 100),
|
|
3415
3415
|
[0, 100 - a / 10],
|
|
3416
3416
|
[c, 0]
|
|
3417
|
-
),
|
|
3417
|
+
), i = W(p, [0, 1], [0, c * 2]);
|
|
3418
3418
|
return /* @__PURE__ */ f(
|
|
3419
3419
|
"div",
|
|
3420
3420
|
{
|
|
@@ -3432,7 +3432,7 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3432
3432
|
{
|
|
3433
3433
|
style: {
|
|
3434
3434
|
width: l,
|
|
3435
|
-
height:
|
|
3435
|
+
height: h,
|
|
3436
3436
|
overflow: "hidden",
|
|
3437
3437
|
display: "flex",
|
|
3438
3438
|
position: "relative",
|
|
@@ -3452,7 +3452,7 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3452
3452
|
width: s.width,
|
|
3453
3453
|
height: s.height,
|
|
3454
3454
|
color: s.color === "white" || s.color.includes("fff") ? "black" : s.color,
|
|
3455
|
-
transform: `translateX(${
|
|
3455
|
+
transform: `translateX(${i}px)`
|
|
3456
3456
|
},
|
|
3457
3457
|
children: t
|
|
3458
3458
|
}
|
|
@@ -3463,18 +3463,18 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3463
3463
|
);
|
|
3464
3464
|
}, Nr = {
|
|
3465
3465
|
sunnyMorningsTextAnimationIn: Cn,
|
|
3466
|
-
dominoDreamsTextAnimationIn:
|
|
3467
|
-
greatThinkersTextAnimationIn:
|
|
3466
|
+
dominoDreamsTextAnimationIn: Gn,
|
|
3467
|
+
greatThinkersTextAnimationIn: Ln,
|
|
3468
3468
|
beautifulQuestionsTextAnimationIn: zn,
|
|
3469
3469
|
madeWithLoveTextAnimationIn: jn,
|
|
3470
|
-
realityIsBrokenTextAnimationIn:
|
|
3470
|
+
realityIsBrokenTextAnimationIn: Qn,
|
|
3471
3471
|
dropTextAnimationIn: tr,
|
|
3472
3472
|
descompressTextAnimationIn: or
|
|
3473
3473
|
}, Yr = {
|
|
3474
3474
|
animatedTextOut: Hn,
|
|
3475
3475
|
sunnyMorningsTextAnimationOut: _n,
|
|
3476
3476
|
dominoDreamsTextAnimationOut: Zn,
|
|
3477
|
-
beautifulQuestionsTextAnimationOut:
|
|
3477
|
+
beautifulQuestionsTextAnimationOut: An,
|
|
3478
3478
|
madeWithLoveTextAnimationOut: Un,
|
|
3479
3479
|
realityIsBrokenTextAnimationOut: Kn,
|
|
3480
3480
|
greatThinkersTextAnimationOut: Jn,
|
|
@@ -3499,40 +3499,40 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3499
3499
|
textAnimationModeLoop: o = "letter",
|
|
3500
3500
|
textAnimationModeTimed: p = "all",
|
|
3501
3501
|
basicCharAnimationsIn: c,
|
|
3502
|
-
basicCharAnimationsOut:
|
|
3502
|
+
basicCharAnimationsOut: h,
|
|
3503
3503
|
basicCharAnimationsLoop: l,
|
|
3504
|
-
basicCharAnimationsTimed:
|
|
3504
|
+
basicCharAnimationsTimed: i,
|
|
3505
3505
|
loopComposition: u,
|
|
3506
3506
|
details: y,
|
|
3507
3507
|
frame: m,
|
|
3508
3508
|
animationTextInFrames: v,
|
|
3509
3509
|
animationTextOutFrames: b,
|
|
3510
|
-
animationTextLoopFrames:
|
|
3510
|
+
animationTextLoopFrames: x,
|
|
3511
3511
|
animationTextTimedFrames: g = 0,
|
|
3512
3512
|
durationInFrames: M,
|
|
3513
|
-
animationFonts:
|
|
3513
|
+
animationFonts: $
|
|
3514
3514
|
}) => {
|
|
3515
|
-
var
|
|
3516
|
-
const I = v, k = M - b, S = r ? I >= m : !1, Y = s ? m >= k : !1, N = c && c.length > 0,
|
|
3517
|
-
const
|
|
3518
|
-
if (!
|
|
3519
|
-
|
|
3520
|
-
const
|
|
3515
|
+
var $t, Ft, Rt, Xt, Vt, Ct, Bt, Ot, zt, jt, Ht, _t, j, ht;
|
|
3516
|
+
const I = v, k = M - b, S = r ? I >= m : !1, Y = s ? m >= k : !1, N = c && c.length > 0, V = h && h.length > 0, F = l && l.length > 0, X = i && i.length > 0, P = (($t = c == null ? void 0 : c[0]) == null ? void 0 : $t.durationInFrames) || v, G = ((Ft = c == null ? void 0 : c[0]) == null ? void 0 : Ft.delay) || 0, E = P + G, O = ((Rt = h == null ? void 0 : h[0]) == null ? void 0 : Rt.durationInFrames) || b, C = ((Xt = h == null ? void 0 : h[0]) == null ? void 0 : Xt.delay) || 0, B = O + C, z = Math.max(0, M - B), et = ((Vt = i == null ? void 0 : i[0]) == null ? void 0 : Vt.delay) || 0, T = et, Z = et + (((Ct = i == null ? void 0 : i[0]) == null ? void 0 : Ct.durationInFrames) || g), J = N && !r && (F ? m < E : m < z), D = V && !s && m >= z, st = X && !J && !D && m >= T && m <= Z, mt = F && !e && !J && !D && !st, tt = ((H, _, R) => {
|
|
3517
|
+
const at = document.createElement("canvas").getContext("2d");
|
|
3518
|
+
if (!at) return [];
|
|
3519
|
+
at.font = `${R}px Arial`;
|
|
3520
|
+
const ut = [], bt = H.split(`
|
|
3521
3521
|
`);
|
|
3522
|
-
for (const
|
|
3523
|
-
if (
|
|
3524
|
-
|
|
3522
|
+
for (const ct of bt) {
|
|
3523
|
+
if (ct.trim() === "") {
|
|
3524
|
+
ut.push("");
|
|
3525
3525
|
continue;
|
|
3526
3526
|
}
|
|
3527
|
-
const
|
|
3528
|
-
let
|
|
3529
|
-
for (const so of
|
|
3530
|
-
const $o =
|
|
3531
|
-
|
|
3527
|
+
const Zt = ct.split(" ");
|
|
3528
|
+
let Pt = "";
|
|
3529
|
+
for (const so of Zt) {
|
|
3530
|
+
const $o = Pt ? `${Pt} ${so}` : so;
|
|
3531
|
+
at.measureText($o).width > _ ? (Pt && ut.push(Pt), Pt = so) : Pt = $o;
|
|
3532
3532
|
}
|
|
3533
|
-
|
|
3533
|
+
Pt && ut.push(Pt);
|
|
3534
3534
|
}
|
|
3535
|
-
return
|
|
3535
|
+
return ut;
|
|
3536
3536
|
})(t, y.width, y.fontSize);
|
|
3537
3537
|
if (r === "typeWriterTextAnimationIn" && S)
|
|
3538
3538
|
return /* @__PURE__ */ f(
|
|
@@ -3546,7 +3546,7 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3546
3546
|
);
|
|
3547
3547
|
if (r === "backgroundTextAnimationIn" && S)
|
|
3548
3548
|
return /* @__PURE__ */ f(
|
|
3549
|
-
|
|
3549
|
+
ir,
|
|
3550
3550
|
{
|
|
3551
3551
|
text: t,
|
|
3552
3552
|
frame: m,
|
|
@@ -3556,7 +3556,7 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3556
3556
|
);
|
|
3557
3557
|
if (r === "soundWaveTextAnimationIn" && S)
|
|
3558
3558
|
return /* @__PURE__ */ f(
|
|
3559
|
-
|
|
3559
|
+
hr,
|
|
3560
3560
|
{
|
|
3561
3561
|
text: t,
|
|
3562
3562
|
frame: m,
|
|
@@ -3604,7 +3604,7 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3604
3604
|
text: t,
|
|
3605
3605
|
frame: m,
|
|
3606
3606
|
details: y,
|
|
3607
|
-
animationFonts:
|
|
3607
|
+
animationFonts: $
|
|
3608
3608
|
}
|
|
3609
3609
|
);
|
|
3610
3610
|
if (e === "shakeTextAnimationLoop")
|
|
@@ -3615,66 +3615,81 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3615
3615
|
return /* @__PURE__ */ f(gr, { text: t, frame: m });
|
|
3616
3616
|
if (e === "textGridMarqueeTextAnimationLoop" || e === "textGridMarquee") {
|
|
3617
3617
|
const R = (u == null ? void 0 : u.find(
|
|
3618
|
-
(
|
|
3618
|
+
(ct) => ct.property === "textGridMarqueeTextAnimationLoop" || ct.property === "textGridMarquee" || ct.id === "textGridMarquee"
|
|
3619
3619
|
)) || (l == null ? void 0 : l.find(
|
|
3620
|
-
(
|
|
3621
|
-
)),
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3620
|
+
(ct) => ct.property === "textGridMarqueeTextAnimationLoop" || ct.property === "textGridMarquee" || ct.id === "textGridMarquee"
|
|
3621
|
+
)), K = (R == null ? void 0 : R.delay) || 0, at = (R == null ? void 0 : R.durationInFrames) || (x > 0 ? x : M), ut = K + at, bt = m >= K && m <= ut;
|
|
3622
|
+
if (console.log(
|
|
3623
|
+
`[SpecialEffect Marquee] frame: ${m.toFixed(2)}, range: [${K}, ${ut}], active: ${bt}`
|
|
3624
|
+
), bt) {
|
|
3625
|
+
const ct = R == null ? void 0 : R.details;
|
|
3626
|
+
return /* @__PURE__ */ f(
|
|
3627
|
+
vr,
|
|
3628
|
+
{
|
|
3629
|
+
text: t,
|
|
3630
|
+
frame: m,
|
|
3631
|
+
delay: K,
|
|
3632
|
+
durationInFrames: at,
|
|
3633
|
+
from: R == null ? void 0 : R.from,
|
|
3634
|
+
to: R == null ? void 0 : R.to,
|
|
3635
|
+
details: y,
|
|
3636
|
+
fps: n,
|
|
3637
|
+
marqueeDetails: ct
|
|
3638
|
+
}
|
|
3639
|
+
);
|
|
3640
|
+
}
|
|
3636
3641
|
}
|
|
3637
3642
|
if (e === "inwardEchoes") {
|
|
3638
3643
|
const R = (u == null ? void 0 : u.find(
|
|
3639
|
-
(
|
|
3644
|
+
(ct) => ct.property === "inwardEchoes" || ct.id === "inwardEchoes"
|
|
3640
3645
|
)) || (l == null ? void 0 : l.find(
|
|
3641
|
-
(
|
|
3642
|
-
)),
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3646
|
+
(ct) => ct.property === "inwardEchoes" || ct.id === "inwardEchoes"
|
|
3647
|
+
)), K = (R == null ? void 0 : R.delay) || 0, at = (R == null ? void 0 : R.durationInFrames) || (x > 0 ? x : M), ut = K + at, bt = m >= K && m <= ut;
|
|
3648
|
+
if (console.log(
|
|
3649
|
+
`[SpecialEffect InwardEchoes] frame: ${m.toFixed(2)}, range: [${K}, ${ut}], active: ${bt}`
|
|
3650
|
+
), bt) {
|
|
3651
|
+
const ct = R == null ? void 0 : R.details;
|
|
3652
|
+
return /* @__PURE__ */ f(
|
|
3653
|
+
xr,
|
|
3654
|
+
{
|
|
3655
|
+
text: t,
|
|
3656
|
+
frame: m,
|
|
3657
|
+
delay: K,
|
|
3658
|
+
durationInFrames: at,
|
|
3659
|
+
from: R == null ? void 0 : R.from,
|
|
3660
|
+
to: R == null ? void 0 : R.to,
|
|
3661
|
+
details: y,
|
|
3662
|
+
fps: n,
|
|
3663
|
+
echoesDetails: ct
|
|
3664
|
+
}
|
|
3665
|
+
);
|
|
3666
|
+
}
|
|
3657
3667
|
}
|
|
3658
3668
|
if (e === "wiggle") {
|
|
3659
3669
|
const R = (u == null ? void 0 : u.find(
|
|
3660
|
-
(
|
|
3670
|
+
(ct) => ct.property === "wiggle" || ct.id === "wiggle"
|
|
3661
3671
|
)) || (l == null ? void 0 : l.find(
|
|
3662
|
-
(
|
|
3663
|
-
)),
|
|
3664
|
-
|
|
3665
|
-
$
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3672
|
+
(ct) => ct.property === "wiggle" || ct.id === "wiggle"
|
|
3673
|
+
)), K = (R == null ? void 0 : R.delay) || 0, at = (R == null ? void 0 : R.durationInFrames) || (x > 0 ? x : M), ut = K + at, bt = m >= K && m <= ut;
|
|
3674
|
+
if (console.log(
|
|
3675
|
+
`[SpecialEffect Wiggle] frame: ${m.toFixed(2)}, range: [${K}, ${ut}], active: ${bt}`
|
|
3676
|
+
), bt) {
|
|
3677
|
+
const ct = R == null ? void 0 : R.details;
|
|
3678
|
+
return /* @__PURE__ */ f(
|
|
3679
|
+
$r,
|
|
3680
|
+
{
|
|
3681
|
+
text: t,
|
|
3682
|
+
frame: m,
|
|
3683
|
+
delay: K,
|
|
3684
|
+
durationInFrames: at,
|
|
3685
|
+
from: R == null ? void 0 : R.from,
|
|
3686
|
+
to: R == null ? void 0 : R.to,
|
|
3687
|
+
details: y,
|
|
3688
|
+
fps: n,
|
|
3689
|
+
wiggleDetails: ct
|
|
3690
|
+
}
|
|
3691
|
+
);
|
|
3692
|
+
}
|
|
3678
3693
|
}
|
|
3679
3694
|
const H = (u == null ? void 0 : u.find(
|
|
3680
3695
|
(R) => R.property === "cardFlip" || R.id === "cardFlip"
|
|
@@ -3682,21 +3697,26 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3682
3697
|
(R) => R.property === "cardFlip" || R.id === "cardFlip"
|
|
3683
3698
|
));
|
|
3684
3699
|
if (e === "cardFlip" || H) {
|
|
3685
|
-
const R = H == null ? void 0 : H.
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
+
const R = (H == null ? void 0 : H.delay) || 0, K = (H == null ? void 0 : H.durationInFrames) || (x > 0 ? x : M), at = R + K, ut = m >= R && m <= at;
|
|
3701
|
+
if (console.log(
|
|
3702
|
+
`[SpecialEffect CardFlip] frame: ${m.toFixed(2)}, range: [${R}, ${at}], active: ${ut}`
|
|
3703
|
+
), ut) {
|
|
3704
|
+
const bt = H == null ? void 0 : H.details;
|
|
3705
|
+
return /* @__PURE__ */ f(
|
|
3706
|
+
Mr,
|
|
3707
|
+
{
|
|
3708
|
+
text: t,
|
|
3709
|
+
frame: m,
|
|
3710
|
+
delay: R,
|
|
3711
|
+
durationInFrames: K,
|
|
3712
|
+
from: H == null ? void 0 : H.from,
|
|
3713
|
+
to: H == null ? void 0 : H.to,
|
|
3714
|
+
details: y,
|
|
3715
|
+
fps: n,
|
|
3716
|
+
cardFlipDetails: bt
|
|
3717
|
+
}
|
|
3718
|
+
);
|
|
3719
|
+
}
|
|
3700
3720
|
}
|
|
3701
3721
|
const _ = (u == null ? void 0 : u.find(
|
|
3702
3722
|
(R) => R.property === "noiseTile" || R.id === "noiseTile"
|
|
@@ -3704,21 +3724,26 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3704
3724
|
(R) => R.property === "noiseTile" || R.id === "noiseTile"
|
|
3705
3725
|
));
|
|
3706
3726
|
if (e === "noiseTile" || _) {
|
|
3707
|
-
const R = _ == null ? void 0 : _.
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3727
|
+
const R = (_ == null ? void 0 : _.delay) || 0, K = (_ == null ? void 0 : _.durationInFrames) || (x > 0 ? x : M), at = R + K, ut = m >= R && m <= at;
|
|
3728
|
+
if (console.log(
|
|
3729
|
+
`[SpecialEffect NoiseTile] frame: ${m.toFixed(2)}, range: [${R}, ${at}], active: ${ut}`
|
|
3730
|
+
), ut) {
|
|
3731
|
+
const bt = _ == null ? void 0 : _.details;
|
|
3732
|
+
return /* @__PURE__ */ f(
|
|
3733
|
+
Sr,
|
|
3734
|
+
{
|
|
3735
|
+
text: t,
|
|
3736
|
+
frame: m,
|
|
3737
|
+
delay: R,
|
|
3738
|
+
durationInFrames: K,
|
|
3739
|
+
from: _ == null ? void 0 : _.from,
|
|
3740
|
+
to: _ == null ? void 0 : _.to,
|
|
3741
|
+
details: y,
|
|
3742
|
+
fps: n,
|
|
3743
|
+
noiseTileDetails: bt
|
|
3744
|
+
}
|
|
3745
|
+
);
|
|
3746
|
+
}
|
|
3722
3747
|
}
|
|
3723
3748
|
}
|
|
3724
3749
|
if (s === "typeWriterTextAnimationOut" && Y)
|
|
@@ -3756,17 +3781,17 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3756
3781
|
fps: n
|
|
3757
3782
|
}
|
|
3758
3783
|
);
|
|
3759
|
-
const U =
|
|
3784
|
+
const U = tt.reduce(
|
|
3760
3785
|
(H, _) => H + (_ === "" ? 1 : _.length),
|
|
3761
3786
|
0
|
|
3762
|
-
),
|
|
3787
|
+
), ot = tt.reduce(
|
|
3763
3788
|
(H, _) => H + (_.trim() === "" ? 0 : _.split(/\s+/).length),
|
|
3764
3789
|
0
|
|
3765
|
-
),
|
|
3766
|
-
var
|
|
3767
|
-
if (S &&
|
|
3790
|
+
), A = tt.length, Q = Nr[r], lt = Yr[s], Mt = Fr[e], pt = ((Bt = c == null ? void 0 : c[0]) == null ? void 0 : Bt.textAnimationMode) || ((Ot = h == null ? void 0 : h[0]) == null ? void 0 : Ot.textAnimationMode) || ((zt = l == null ? void 0 : l[0]) == null ? void 0 : zt.textAnimationMode) || ((jt = i == null ? void 0 : i[0]) == null ? void 0 : jt.textAnimationMode) || (r ? a : void 0) || (s ? d : void 0) || (e ? o : void 0) || a || o || "letter", q = S ? a : Y ? d : J ? c[0].textAnimationMode || pt : D ? h[0].textAnimationMode || pt : st ? i[0].textAnimationMode || pt : mt && l[0].textAnimationMode || pt, rt = J ? c : D ? h : st ? i : mt ? l : [], nt = (H, _, R, K) => {
|
|
3791
|
+
var at, ut;
|
|
3792
|
+
if (S && Q)
|
|
3768
3793
|
return /* @__PURE__ */ f(
|
|
3769
|
-
|
|
3794
|
+
Q,
|
|
3770
3795
|
{
|
|
3771
3796
|
char: H,
|
|
3772
3797
|
index: _,
|
|
@@ -3776,11 +3801,11 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3776
3801
|
animationTextInFrames: v,
|
|
3777
3802
|
details: y
|
|
3778
3803
|
},
|
|
3779
|
-
|
|
3804
|
+
K
|
|
3780
3805
|
);
|
|
3781
|
-
if (Y &&
|
|
3806
|
+
if (Y && lt)
|
|
3782
3807
|
return /* @__PURE__ */ f(
|
|
3783
|
-
|
|
3808
|
+
lt,
|
|
3784
3809
|
{
|
|
3785
3810
|
char: H,
|
|
3786
3811
|
index: _,
|
|
@@ -3791,110 +3816,110 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3791
3816
|
durationInFrames: M,
|
|
3792
3817
|
details: y
|
|
3793
3818
|
},
|
|
3794
|
-
|
|
3819
|
+
K
|
|
3795
3820
|
);
|
|
3796
|
-
if (e && !S && !Y &&
|
|
3821
|
+
if (e && !S && !Y && Mt)
|
|
3797
3822
|
return /* @__PURE__ */ f(
|
|
3798
|
-
|
|
3823
|
+
Mt,
|
|
3799
3824
|
{
|
|
3800
3825
|
char: H,
|
|
3801
3826
|
index: _,
|
|
3802
3827
|
frame: m,
|
|
3803
3828
|
textLength: R,
|
|
3804
3829
|
fps: n,
|
|
3805
|
-
animationTextLoopFrames:
|
|
3830
|
+
animationTextLoopFrames: x,
|
|
3806
3831
|
details: y
|
|
3807
3832
|
},
|
|
3808
|
-
|
|
3833
|
+
K
|
|
3809
3834
|
);
|
|
3810
|
-
if (
|
|
3811
|
-
const
|
|
3835
|
+
if (rt.length > 0) {
|
|
3836
|
+
const bt = J ? P : D ? O : st ? ((at = i == null ? void 0 : i[0]) == null ? void 0 : at.durationInFrames) || g : ((ut = l == null ? void 0 : l[0]) == null ? void 0 : ut.durationInFrames) || x, ct = D ? m - z : st ? m - T : m, Zt = rt[0], Pt = J ? "in" : D ? "out" : st ? "timed" : "loop";
|
|
3812
3837
|
return /* @__PURE__ */ f(
|
|
3813
3838
|
On,
|
|
3814
3839
|
{
|
|
3815
3840
|
char: H,
|
|
3816
3841
|
index: _,
|
|
3817
|
-
frame:
|
|
3842
|
+
frame: ct,
|
|
3818
3843
|
fps: n,
|
|
3819
3844
|
textLength: R,
|
|
3820
|
-
animationTextFrames:
|
|
3821
|
-
property:
|
|
3822
|
-
from:
|
|
3823
|
-
to:
|
|
3824
|
-
easing:
|
|
3825
|
-
delay:
|
|
3845
|
+
animationTextFrames: bt,
|
|
3846
|
+
property: Zt.property,
|
|
3847
|
+
from: Zt.from,
|
|
3848
|
+
to: Zt.to,
|
|
3849
|
+
easing: Zt.easing,
|
|
3850
|
+
delay: D ? 0 : Zt.delay,
|
|
3826
3851
|
details: y,
|
|
3827
|
-
phase:
|
|
3852
|
+
phase: Pt
|
|
3828
3853
|
},
|
|
3829
|
-
|
|
3854
|
+
K
|
|
3830
3855
|
);
|
|
3831
3856
|
}
|
|
3832
|
-
return /* @__PURE__ */ f("span", { children: H === "" ? " " : H },
|
|
3857
|
+
return /* @__PURE__ */ f("span", { children: H === "" ? " " : H }, K);
|
|
3833
3858
|
};
|
|
3834
|
-
let
|
|
3835
|
-
const
|
|
3836
|
-
if (
|
|
3837
|
-
|
|
3838
|
-
else if (
|
|
3839
|
-
const H = Number(
|
|
3840
|
-
!isNaN(H) && !isNaN(_) && (
|
|
3859
|
+
let it = (y == null ? void 0 : y.textAlign) === "right";
|
|
3860
|
+
const yt = c && c.length > 0 ? c[0] : h && h.length > 0 ? h[0] : i && i.length > 0 ? i[0] : l && l.length > 0 ? l[0] : null, xt = yt != null && yt.order ? yt : (Ht = c == null ? void 0 : c[0]) != null && Ht.order ? c[0] : (_t = h == null ? void 0 : h[0]) != null && _t.order ? h[0] : (j = i == null ? void 0 : i[0]) != null && j.order ? i[0] : (ht = l == null ? void 0 : l[0]) != null && ht.order ? l[0] : null;
|
|
3861
|
+
if (xt != null && xt.order)
|
|
3862
|
+
it = xt.order === "backward";
|
|
3863
|
+
else if (yt && yt.property === "translateX") {
|
|
3864
|
+
const H = Number(yt.from), _ = Number(yt.to);
|
|
3865
|
+
!isNaN(H) && !isNaN(_) && (it = H < _);
|
|
3841
3866
|
}
|
|
3842
|
-
if (
|
|
3843
|
-
return /* @__PURE__ */ f(
|
|
3844
|
-
(R,
|
|
3867
|
+
if (q === "all")
|
|
3868
|
+
return /* @__PURE__ */ f(kt, { children: tt.map((H, _) => /* @__PURE__ */ f("div", { children: (H === "" ? [" "] : H.split("")).map(
|
|
3869
|
+
(R, K) => nt(R, 0, 1, `${_}-${K}`)
|
|
3845
3870
|
) }, _)) });
|
|
3846
|
-
if (
|
|
3871
|
+
if (q === "word") {
|
|
3847
3872
|
let H = 0;
|
|
3848
|
-
const _ =
|
|
3873
|
+
const _ = tt.map((R, K) => {
|
|
3849
3874
|
if (R.trim() === "")
|
|
3850
3875
|
return {
|
|
3851
|
-
rowIndex:
|
|
3876
|
+
rowIndex: K,
|
|
3852
3877
|
tokens: []
|
|
3853
3878
|
};
|
|
3854
|
-
const
|
|
3855
|
-
return { rowIndex:
|
|
3879
|
+
const ut = R.split(/(\s+)/).map((bt) => /^\s+$/.test(bt) ? { token: bt, wordIndex: null } : { token: bt, wordIndex: H++ });
|
|
3880
|
+
return { rowIndex: K, tokens: ut };
|
|
3856
3881
|
});
|
|
3857
|
-
return /* @__PURE__ */ f(
|
|
3858
|
-
if (
|
|
3882
|
+
return /* @__PURE__ */ f(kt, { children: _.map(({ rowIndex: R, tokens: K }) => K.length === 0 ? /* @__PURE__ */ f("div", { children: " " }, R) : /* @__PURE__ */ f("div", { children: K.map(({ token: at, wordIndex: ut }, bt) => {
|
|
3883
|
+
if (ut === null)
|
|
3859
3884
|
return /* @__PURE__ */ f(
|
|
3860
3885
|
"span",
|
|
3861
3886
|
{
|
|
3862
3887
|
style: { display: "inline-block" },
|
|
3863
|
-
children:
|
|
3888
|
+
children: at.replace(/ /g, " ")
|
|
3864
3889
|
},
|
|
3865
|
-
`space-${R}-${
|
|
3890
|
+
`space-${R}-${bt}`
|
|
3866
3891
|
);
|
|
3867
|
-
const
|
|
3868
|
-
return
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
`word-${R}-${
|
|
3892
|
+
const ct = it ? ot - 1 - ut : ut;
|
|
3893
|
+
return nt(
|
|
3894
|
+
at,
|
|
3895
|
+
ct,
|
|
3896
|
+
ot,
|
|
3897
|
+
`word-${R}-${bt}`
|
|
3873
3898
|
);
|
|
3874
3899
|
}) }, R)) });
|
|
3875
3900
|
}
|
|
3876
|
-
if (
|
|
3877
|
-
return /* @__PURE__ */ f(
|
|
3878
|
-
const R =
|
|
3879
|
-
return /* @__PURE__ */ f("div", { children:
|
|
3901
|
+
if (q === "line")
|
|
3902
|
+
return /* @__PURE__ */ f(kt, { children: tt.map((H, _) => {
|
|
3903
|
+
const R = it ? A - 1 - _ : _;
|
|
3904
|
+
return /* @__PURE__ */ f("div", { children: nt(
|
|
3880
3905
|
H === "" ? " " : H,
|
|
3881
3906
|
R,
|
|
3882
|
-
|
|
3907
|
+
A,
|
|
3883
3908
|
`line-${_}`
|
|
3884
3909
|
) }, _);
|
|
3885
3910
|
}) });
|
|
3886
|
-
let
|
|
3887
|
-
const
|
|
3888
|
-
char:
|
|
3889
|
-
globalIndex:
|
|
3911
|
+
let wt = 0;
|
|
3912
|
+
const ft = tt.map((H) => (H === "" ? [" "] : H.split("")).map((K) => ({
|
|
3913
|
+
char: K,
|
|
3914
|
+
globalIndex: wt++
|
|
3890
3915
|
})));
|
|
3891
|
-
return /* @__PURE__ */ f(
|
|
3892
|
-
const
|
|
3893
|
-
return
|
|
3916
|
+
return /* @__PURE__ */ f(kt, { children: ft.map((H, _) => /* @__PURE__ */ f("div", { children: H.map(({ char: R, globalIndex: K }) => {
|
|
3917
|
+
const at = it ? U - 1 - K : K;
|
|
3918
|
+
return nt(
|
|
3894
3919
|
R,
|
|
3895
|
-
|
|
3920
|
+
at,
|
|
3896
3921
|
U,
|
|
3897
|
-
`${_}-${
|
|
3922
|
+
`${_}-${K}`
|
|
3898
3923
|
);
|
|
3899
3924
|
}) }, _)) });
|
|
3900
3925
|
}, No = ({
|
|
@@ -3908,42 +3933,42 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3908
3933
|
frame: o,
|
|
3909
3934
|
textAnimationNameIn: p,
|
|
3910
3935
|
textAnimationNameOut: c,
|
|
3911
|
-
textAnimationNameLoop:
|
|
3936
|
+
textAnimationNameLoop: h,
|
|
3912
3937
|
textAnimationModeIn: l,
|
|
3913
|
-
textAnimationModeOut:
|
|
3938
|
+
textAnimationModeOut: i,
|
|
3914
3939
|
textAnimationModeLoop: u,
|
|
3915
3940
|
textAnimationModeTimed: y,
|
|
3916
3941
|
basicCharAnimationsIn: m,
|
|
3917
3942
|
basicCharAnimationsOut: v,
|
|
3918
3943
|
basicCharAnimationsLoop: b,
|
|
3919
|
-
basicCharAnimationsTimed:
|
|
3944
|
+
basicCharAnimationsTimed: x,
|
|
3920
3945
|
loopComposition: g,
|
|
3921
3946
|
details: M,
|
|
3922
|
-
animationTextInFrames:
|
|
3947
|
+
animationTextInFrames: $,
|
|
3923
3948
|
animationTextOutFrames: I,
|
|
3924
3949
|
animationTextLoopFrames: k,
|
|
3925
3950
|
animationTextTimedFrames: S,
|
|
3926
3951
|
durationInFrames: Y,
|
|
3927
3952
|
animationFonts: N
|
|
3928
3953
|
}) => {
|
|
3929
|
-
const [
|
|
3954
|
+
const [V, F] = fo(n), X = mo(null);
|
|
3930
3955
|
eo(() => {
|
|
3931
3956
|
if (r && X.current) {
|
|
3932
|
-
const
|
|
3933
|
-
|
|
3957
|
+
const E = X.current;
|
|
3958
|
+
E.focus();
|
|
3934
3959
|
const O = window.getSelection(), C = document.createRange();
|
|
3935
|
-
C.selectNodeContents(
|
|
3960
|
+
C.selectNodeContents(E), O == null || O.removeAllRanges(), O == null || O.addRange(C);
|
|
3936
3961
|
} else {
|
|
3937
|
-
const
|
|
3938
|
-
|
|
3962
|
+
const E = window.getSelection();
|
|
3963
|
+
E == null || E.removeAllRanges();
|
|
3939
3964
|
}
|
|
3940
3965
|
}, [r]), eo(() => {
|
|
3941
|
-
|
|
3966
|
+
V !== n && F(n);
|
|
3942
3967
|
}, [n]);
|
|
3943
3968
|
const P = () => {
|
|
3944
3969
|
if (X.current) {
|
|
3945
|
-
const
|
|
3946
|
-
O.selectNodeContents(X.current), O.collapse(!1),
|
|
3970
|
+
const E = window.getSelection(), O = document.createRange();
|
|
3971
|
+
O.selectNodeContents(X.current), O.collapse(!1), E == null || E.removeAllRanges(), E == null || E.addRange(O);
|
|
3947
3972
|
}
|
|
3948
3973
|
};
|
|
3949
3974
|
return /* @__PURE__ */ f(
|
|
@@ -3952,19 +3977,19 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3952
3977
|
"data-text-id": t,
|
|
3953
3978
|
ref: X,
|
|
3954
3979
|
contentEditable: r,
|
|
3955
|
-
onClick: (
|
|
3980
|
+
onClick: (E) => {
|
|
3956
3981
|
var B;
|
|
3957
|
-
|
|
3982
|
+
E.stopPropagation();
|
|
3958
3983
|
const O = window.getSelection(), C = X.current;
|
|
3959
3984
|
if (O != null && O.rangeCount && C) {
|
|
3960
3985
|
const z = O.getRangeAt(0);
|
|
3961
3986
|
z.endOffset - z.startOffset === ((B = C.textContent) == null ? void 0 : B.length) && P();
|
|
3962
3987
|
}
|
|
3963
3988
|
},
|
|
3964
|
-
onInput: (
|
|
3965
|
-
onBlur: (
|
|
3989
|
+
onInput: (E) => e(t, E.target.innerText),
|
|
3990
|
+
onBlur: (E) => a(t, E.target.innerText),
|
|
3966
3991
|
style: {
|
|
3967
|
-
height:
|
|
3992
|
+
height: h === "textGridMarqueeTextAnimationLoop" || h === "textGridMarquee" ? M != null && M.height ? `${M.height}px` : "100%" : "max-content",
|
|
3968
3993
|
boxShadow: "none",
|
|
3969
3994
|
outline: "none",
|
|
3970
3995
|
...s,
|
|
@@ -3979,21 +4004,21 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
3979
4004
|
{
|
|
3980
4005
|
textAnimationNameIn: p,
|
|
3981
4006
|
textAnimationNameOut: c,
|
|
3982
|
-
textAnimationNameLoop:
|
|
4007
|
+
textAnimationNameLoop: h,
|
|
3983
4008
|
textAnimationModeIn: l,
|
|
3984
|
-
textAnimationModeOut:
|
|
4009
|
+
textAnimationModeOut: i,
|
|
3985
4010
|
textAnimationModeLoop: u,
|
|
3986
4011
|
textAnimationModeTimed: y,
|
|
3987
4012
|
basicCharAnimationsIn: m,
|
|
3988
4013
|
basicCharAnimationsOut: v,
|
|
3989
4014
|
basicCharAnimationsLoop: b,
|
|
3990
|
-
basicCharAnimationsTimed:
|
|
4015
|
+
basicCharAnimationsTimed: x,
|
|
3991
4016
|
loopComposition: g,
|
|
3992
4017
|
text: n,
|
|
3993
4018
|
fps: d,
|
|
3994
4019
|
details: M,
|
|
3995
4020
|
frame: o,
|
|
3996
|
-
animationTextInFrames:
|
|
4021
|
+
animationTextInFrames: $,
|
|
3997
4022
|
animationTextOutFrames: I,
|
|
3998
4023
|
animationTextLoopFrames: k,
|
|
3999
4024
|
animationTextTimedFrames: S,
|
|
@@ -4004,27 +4029,27 @@ const yr = ({ text: t, frame: n }) => {
|
|
|
4004
4029
|
}
|
|
4005
4030
|
);
|
|
4006
4031
|
};
|
|
4007
|
-
function
|
|
4032
|
+
function Ve({
|
|
4008
4033
|
item: t,
|
|
4009
4034
|
options: n
|
|
4010
4035
|
}) {
|
|
4011
|
-
var
|
|
4012
|
-
const { handleTextChange: r, onTextBlur: s, fps: e, editableTextId: a, frame: d } = n, { id: o, details: p, animations: c } = t, { durationInFrames:
|
|
4036
|
+
var Mt, pt, q, rt, nt, dt, it, yt, xt, wt, ft, $t, Ft, Rt, Xt, Vt, Ct, Bt, Ot, zt, jt, Ht, _t;
|
|
4037
|
+
const { handleTextChange: r, onTextBlur: s, fps: e, editableTextId: a, frame: d } = n, { id: o, details: p, animations: c } = t, { durationInFrames: h } = It(t.display, e), l = [
|
|
4013
4038
|
"opacity",
|
|
4014
4039
|
"scale",
|
|
4015
4040
|
"translateX",
|
|
4016
4041
|
"translateY",
|
|
4017
4042
|
"rotateY",
|
|
4018
4043
|
"rotate"
|
|
4019
|
-
],
|
|
4020
|
-
(j) => l.some((
|
|
4021
|
-
), u = (((
|
|
4022
|
-
(j) => l.some((
|
|
4023
|
-
), y = (((
|
|
4024
|
-
(j) => l.some((
|
|
4025
|
-
), m = (((
|
|
4026
|
-
(j) => l.some((
|
|
4027
|
-
), v = new Set(
|
|
4044
|
+
], i = (((Mt = c == null ? void 0 : c.in) == null ? void 0 : Mt.composition) || []).filter(
|
|
4045
|
+
(j) => l.some((ht) => j.property === ht) && j.textAnimationMode && j.textAnimationMode !== "all"
|
|
4046
|
+
), u = (((pt = c == null ? void 0 : c.out) == null ? void 0 : pt.composition) || []).filter(
|
|
4047
|
+
(j) => l.some((ht) => j.property === ht) && j.textAnimationMode && j.textAnimationMode !== "all"
|
|
4048
|
+
), y = (((q = c == null ? void 0 : c.loop) == null ? void 0 : q.composition) || []).filter(
|
|
4049
|
+
(j) => l.some((ht) => j.property === ht) && j.textAnimationMode && j.textAnimationMode !== "all"
|
|
4050
|
+
), m = (((rt = c == null ? void 0 : c.timed) == null ? void 0 : rt.composition) || []).filter(
|
|
4051
|
+
(j) => l.some((ht) => j.property === ht) && j.textAnimationMode && j.textAnimationMode !== "all"
|
|
4052
|
+
), v = new Set(i.map((j) => j.id)), b = new Set(u.map((j) => j.id)), x = new Set(
|
|
4028
4053
|
y.map((j) => j.id)
|
|
4029
4054
|
), g = new Set(
|
|
4030
4055
|
m.map((j) => j.id)
|
|
@@ -4045,7 +4070,7 @@ function Ee({
|
|
|
4045
4070
|
loop: c != null && c.loop ? {
|
|
4046
4071
|
...c.loop,
|
|
4047
4072
|
composition: c.loop.composition.filter(
|
|
4048
|
-
(j) =>
|
|
4073
|
+
(j) => !x.has(j.id)
|
|
4049
4074
|
)
|
|
4050
4075
|
} : void 0,
|
|
4051
4076
|
timed: c != null && c.timed ? {
|
|
@@ -4054,106 +4079,106 @@ function Ee({
|
|
|
4054
4079
|
(j) => !g.has(j.id)
|
|
4055
4080
|
)
|
|
4056
4081
|
} : void 0
|
|
4057
|
-
}, { animationIn:
|
|
4082
|
+
}, { animationIn: $, animationOut: I, animationTimed: k } = Nt(
|
|
4058
4083
|
M,
|
|
4059
4084
|
t,
|
|
4060
4085
|
d,
|
|
4061
4086
|
e
|
|
4062
|
-
), S = (
|
|
4063
|
-
(j) => !l.some((
|
|
4064
|
-
), Y = (
|
|
4065
|
-
(j) => !l.some((
|
|
4066
|
-
), N = (
|
|
4067
|
-
(j) => !l.some((
|
|
4068
|
-
),
|
|
4087
|
+
), S = (nt = c == null ? void 0 : c.in) == null ? void 0 : nt.composition.find(
|
|
4088
|
+
(j) => !l.some((ht) => j.property === ht)
|
|
4089
|
+
), Y = (dt = c == null ? void 0 : c.out) == null ? void 0 : dt.composition.find(
|
|
4090
|
+
(j) => !l.some((ht) => j.property === ht)
|
|
4091
|
+
), N = (it = c == null ? void 0 : c.loop) == null ? void 0 : it.composition.find(
|
|
4092
|
+
(j) => !l.some((ht) => j.property === ht)
|
|
4093
|
+
), V = (S == null ? void 0 : S.property) || "", F = (Y == null ? void 0 : Y.property) || "", X = (N == null ? void 0 : N.property) || "", P = (S == null ? void 0 : S.textAnimationMode) || ((yt = i[0]) == null ? void 0 : yt.textAnimationMode) || (S ? "letter" : "all"), G = (Y == null ? void 0 : Y.textAnimationMode) || ((xt = u[0]) == null ? void 0 : xt.textAnimationMode) || (Y ? "letter" : "all"), E = (N == null ? void 0 : N.textAnimationMode) || ((wt = y[0]) == null ? void 0 : wt.textAnimationMode) || (N ? "letter" : "all"), O = ((ft = m[0]) == null ? void 0 : ft.textAnimationMode) || "all", C = (S == null ? void 0 : S.durationInFrames) || ((Ft = ($t = c == null ? void 0 : c.in) == null ? void 0 : $t.composition[0]) == null ? void 0 : Ft.durationInFrames) || 0, B = (Y == null ? void 0 : Y.durationInFrames) || ((Xt = (Rt = c == null ? void 0 : c.out) == null ? void 0 : Rt.composition[0]) == null ? void 0 : Xt.durationInFrames) || 0, z = (N == null ? void 0 : N.durationInFrames) || ((Ct = (Vt = c == null ? void 0 : c.loop) == null ? void 0 : Vt.composition[0]) == null ? void 0 : Ct.durationInFrames) || 0, et = ((Bt = m[0]) == null ? void 0 : Bt.durationInFrames) || 0, T = [];
|
|
4069
4094
|
c != null && c.loop && c.loop.composition.forEach((j) => {
|
|
4070
|
-
var
|
|
4071
|
-
(
|
|
4095
|
+
var ht;
|
|
4096
|
+
(ht = j.details) != null && ht.fonts && T.push(...j.details.fonts);
|
|
4072
4097
|
}), c != null && c.in && c.in.composition.forEach((j) => {
|
|
4073
|
-
var
|
|
4074
|
-
(
|
|
4098
|
+
var ht;
|
|
4099
|
+
(ht = j.details) != null && ht.fonts && T.push(...j.details.fonts);
|
|
4075
4100
|
}), c != null && c.out && c.out.composition.forEach((j) => {
|
|
4076
|
-
var
|
|
4077
|
-
(
|
|
4101
|
+
var ht;
|
|
4102
|
+
(ht = j.details) != null && ht.fonts && T.push(...j.details.fonts);
|
|
4078
4103
|
});
|
|
4079
4104
|
let Z = p.text;
|
|
4080
|
-
if ((
|
|
4105
|
+
if ((zt = (Ot = t.animations) == null ? void 0 : Ot.timed) != null && zt.composition) {
|
|
4081
4106
|
const j = (n.frame || 0) - t.display.from * e / 1e3;
|
|
4082
4107
|
if (j >= 0) {
|
|
4083
|
-
const
|
|
4084
|
-
|
|
4085
|
-
const R =
|
|
4108
|
+
const ht = (jt = t.animations) == null ? void 0 : jt.timed.composition;
|
|
4109
|
+
ht.forEach((H, _) => {
|
|
4110
|
+
const R = ht.slice(0, _).reduce((K, at) => K + at.durationInFrames, 0);
|
|
4086
4111
|
j >= R && H.text && (Z = H.text);
|
|
4087
4112
|
});
|
|
4088
4113
|
}
|
|
4089
4114
|
}
|
|
4090
|
-
const
|
|
4115
|
+
const J = (d || 0) - t.display.from * e / 1e3, { top: D, left: st, transform: mt, position: L, ...tt } = p, U = vo(
|
|
4091
4116
|
p.effects,
|
|
4092
4117
|
t.animations,
|
|
4093
|
-
|
|
4094
|
-
),
|
|
4095
|
-
|
|
4118
|
+
J
|
|
4119
|
+
), ot = go(U), A = typeof p.width == "number" ? p.width : parseInt(String(p.width || 300), 10) || 300, Q = typeof p.height == "number" ? p.height : parseInt(String(p.height || 100), 10) || 100, lt = /* @__PURE__ */ f(
|
|
4120
|
+
At,
|
|
4096
4121
|
{
|
|
4097
|
-
animationIn: a === o ? null :
|
|
4122
|
+
animationIn: a === o ? null : $,
|
|
4098
4123
|
animationOut: a === o ? null : I,
|
|
4099
|
-
frame:
|
|
4100
|
-
durationInFrames:
|
|
4124
|
+
frame: J,
|
|
4125
|
+
durationInFrames: h,
|
|
4101
4126
|
style: {
|
|
4102
|
-
...
|
|
4127
|
+
...tt,
|
|
4103
4128
|
display: "flex"
|
|
4104
4129
|
},
|
|
4105
4130
|
children: /* @__PURE__ */ f(
|
|
4106
4131
|
Ut,
|
|
4107
4132
|
{
|
|
4108
4133
|
animationTimed: a === o ? null : k,
|
|
4109
|
-
durationInFrames:
|
|
4110
|
-
frame:
|
|
4134
|
+
durationInFrames: h,
|
|
4135
|
+
frame: J,
|
|
4111
4136
|
style: {
|
|
4112
|
-
...
|
|
4137
|
+
...tt,
|
|
4113
4138
|
display: "flex"
|
|
4114
4139
|
},
|
|
4115
4140
|
children: /* @__PURE__ */ f(
|
|
4116
4141
|
co,
|
|
4117
4142
|
{
|
|
4118
4143
|
item: t,
|
|
4119
|
-
keyframeAnimations:
|
|
4120
|
-
frame:
|
|
4121
|
-
children:
|
|
4144
|
+
keyframeAnimations: $,
|
|
4145
|
+
frame: J,
|
|
4146
|
+
children: ot ? /* @__PURE__ */ f(
|
|
4122
4147
|
yo,
|
|
4123
4148
|
{
|
|
4124
|
-
width:
|
|
4125
|
-
height:
|
|
4126
|
-
effects:
|
|
4149
|
+
width: A,
|
|
4150
|
+
height: Q,
|
|
4151
|
+
effects: ot,
|
|
4127
4152
|
children: /* @__PURE__ */ f(
|
|
4128
4153
|
No,
|
|
4129
4154
|
{
|
|
4130
4155
|
id: o,
|
|
4131
4156
|
fps: e,
|
|
4132
|
-
frame:
|
|
4157
|
+
frame: J,
|
|
4133
4158
|
content: Z,
|
|
4134
4159
|
editable: a === o,
|
|
4135
4160
|
onChange: r,
|
|
4136
|
-
textAnimationNameIn:
|
|
4161
|
+
textAnimationNameIn: V,
|
|
4137
4162
|
textAnimationNameOut: F,
|
|
4138
4163
|
textAnimationNameLoop: X,
|
|
4139
4164
|
textAnimationModeIn: P,
|
|
4140
|
-
textAnimationModeOut:
|
|
4141
|
-
textAnimationModeLoop:
|
|
4165
|
+
textAnimationModeOut: G,
|
|
4166
|
+
textAnimationModeLoop: E,
|
|
4142
4167
|
textAnimationModeTimed: O,
|
|
4143
|
-
basicCharAnimationsIn:
|
|
4168
|
+
basicCharAnimationsIn: i,
|
|
4144
4169
|
basicCharAnimationsOut: u,
|
|
4145
4170
|
basicCharAnimationsLoop: y,
|
|
4146
4171
|
basicCharAnimationsTimed: m,
|
|
4147
|
-
loopComposition: (
|
|
4172
|
+
loopComposition: (Ht = c == null ? void 0 : c.loop) == null ? void 0 : Ht.composition,
|
|
4148
4173
|
onBlur: s,
|
|
4149
|
-
style:
|
|
4174
|
+
style: Gt(p),
|
|
4150
4175
|
details: p,
|
|
4151
4176
|
animationTextInFrames: C,
|
|
4152
4177
|
animationTextOutFrames: B,
|
|
4153
4178
|
animationTextLoopFrames: z,
|
|
4154
4179
|
animationTextTimedFrames: et,
|
|
4155
|
-
durationInFrames:
|
|
4156
|
-
animationFonts:
|
|
4180
|
+
durationInFrames: h,
|
|
4181
|
+
animationFonts: T
|
|
4157
4182
|
},
|
|
4158
4183
|
o
|
|
4159
4184
|
)
|
|
@@ -4163,31 +4188,31 @@ function Ee({
|
|
|
4163
4188
|
{
|
|
4164
4189
|
id: o,
|
|
4165
4190
|
fps: e,
|
|
4166
|
-
frame:
|
|
4191
|
+
frame: J,
|
|
4167
4192
|
content: Z,
|
|
4168
4193
|
editable: a === o,
|
|
4169
4194
|
onChange: r,
|
|
4170
|
-
textAnimationNameIn:
|
|
4195
|
+
textAnimationNameIn: V,
|
|
4171
4196
|
textAnimationNameOut: F,
|
|
4172
4197
|
textAnimationNameLoop: X,
|
|
4173
4198
|
textAnimationModeIn: P,
|
|
4174
|
-
textAnimationModeOut:
|
|
4175
|
-
textAnimationModeLoop:
|
|
4199
|
+
textAnimationModeOut: G,
|
|
4200
|
+
textAnimationModeLoop: E,
|
|
4176
4201
|
textAnimationModeTimed: O,
|
|
4177
|
-
basicCharAnimationsIn:
|
|
4202
|
+
basicCharAnimationsIn: i,
|
|
4178
4203
|
basicCharAnimationsOut: u,
|
|
4179
4204
|
basicCharAnimationsLoop: y,
|
|
4180
4205
|
basicCharAnimationsTimed: m,
|
|
4181
|
-
loopComposition: (
|
|
4206
|
+
loopComposition: (_t = c == null ? void 0 : c.loop) == null ? void 0 : _t.composition,
|
|
4182
4207
|
onBlur: s,
|
|
4183
|
-
style:
|
|
4208
|
+
style: Gt(p),
|
|
4184
4209
|
details: p,
|
|
4185
4210
|
animationTextInFrames: C,
|
|
4186
4211
|
animationTextOutFrames: B,
|
|
4187
4212
|
animationTextLoopFrames: z,
|
|
4188
4213
|
animationTextTimedFrames: et,
|
|
4189
|
-
durationInFrames:
|
|
4190
|
-
animationFonts:
|
|
4214
|
+
durationInFrames: h,
|
|
4215
|
+
animationFonts: T
|
|
4191
4216
|
},
|
|
4192
4217
|
o
|
|
4193
4218
|
)
|
|
@@ -4197,40 +4222,40 @@ function Ee({
|
|
|
4197
4222
|
)
|
|
4198
4223
|
}
|
|
4199
4224
|
);
|
|
4200
|
-
return
|
|
4225
|
+
return gt({ item: t, options: n, children: lt });
|
|
4201
4226
|
}
|
|
4202
4227
|
const Be = ({
|
|
4203
4228
|
item: t,
|
|
4204
4229
|
options: n
|
|
4205
4230
|
}) => {
|
|
4206
|
-
var
|
|
4207
|
-
const { fps: r, frame: s } = n, { details: e, animations: a } = t, d = t.playbackRate || 1, { animationIn: o, animationOut: p, animationTimed: c } =
|
|
4231
|
+
var G, E, O, C, B, z, et, T, Z, J, D, st, mt;
|
|
4232
|
+
const { fps: r, frame: s } = n, { details: e, animations: a } = t, d = t.playbackRate || 1, { animationIn: o, animationOut: p, animationTimed: c } = Nt(
|
|
4208
4233
|
a,
|
|
4209
4234
|
t,
|
|
4210
4235
|
s,
|
|
4211
4236
|
r
|
|
4212
|
-
),
|
|
4237
|
+
), h = (e == null ? void 0 : e.crop) || {
|
|
4213
4238
|
x: 0,
|
|
4214
4239
|
y: 0,
|
|
4215
4240
|
width: e.width,
|
|
4216
4241
|
height: e.height
|
|
4217
|
-
}, { durationInFrames: l } =
|
|
4242
|
+
}, { durationInFrames: l } = It(t.display, r), i = (s || 0) - t.display.from * r / 1e3, u = vo(
|
|
4218
4243
|
e.effects,
|
|
4219
4244
|
a,
|
|
4220
|
-
|
|
4221
|
-
), y = go(u), { filter: m, overlays: v } = zo(u), b = (
|
|
4222
|
-
(
|
|
4223
|
-
),
|
|
4224
|
-
(
|
|
4225
|
-
), M = !!(g &&
|
|
4226
|
-
(
|
|
4227
|
-
), I = !!(
|
|
4228
|
-
(
|
|
4229
|
-
), S = !!(k &&
|
|
4245
|
+
i
|
|
4246
|
+
), y = go(u), { filter: m, overlays: v } = zo(u), b = (E = (G = a == null ? void 0 : a.loop) == null ? void 0 : G.composition) == null ? void 0 : E.find(
|
|
4247
|
+
(L) => L.property === "textGridMarqueeTextAnimationLoop" || L.property === "textGridMarquee" || L.property === "imageGridMarqueeTextAnimationLoop" || L.property === "imageGridMarquee" || L.id === "textGridMarquee" || L.id === "imageGridMarquee"
|
|
4248
|
+
), x = !!(b && i >= (b.delay || 0) && i <= (b.delay || 0) + (b.durationInFrames || 60)), g = (C = (O = a == null ? void 0 : a.loop) == null ? void 0 : O.composition) == null ? void 0 : C.find(
|
|
4249
|
+
(L) => L.property === "inwardEchoes" || L.id === "inwardEchoes"
|
|
4250
|
+
), M = !!(g && i >= (g.delay || 0) && i <= (g.delay || 0) + (g.durationInFrames || 120)), $ = (z = (B = a == null ? void 0 : a.loop) == null ? void 0 : B.composition) == null ? void 0 : z.find(
|
|
4251
|
+
(L) => L.property === "wiggle" || L.id === "wiggle"
|
|
4252
|
+
), I = !!($ && i >= ($.delay || 0) && i <= ($.delay || 0) + ($.durationInFrames || 120)), k = (T = (et = a == null ? void 0 : a.loop) == null ? void 0 : et.composition) == null ? void 0 : T.find(
|
|
4253
|
+
(L) => L.property === "cardFlip" || L.id === "cardFlip"
|
|
4254
|
+
), S = !!(k && i >= (k.delay || 0) && i <= (k.delay || 0) + (k.durationInFrames || 120)), Y = e.width || h.width || 300, N = e.height || h.height || 300, V = /* @__PURE__ */ f(
|
|
4230
4255
|
Dt,
|
|
4231
4256
|
{
|
|
4232
4257
|
startFrom: ((Z = t.trim) == null ? void 0 : Z.from) / 1e3 * r,
|
|
4233
|
-
endAt: ((
|
|
4258
|
+
endAt: ((J = t.trim) == null ? void 0 : J.to) / 1e3 * r || 1 / r,
|
|
4234
4259
|
playbackRate: d,
|
|
4235
4260
|
src: e.src,
|
|
4236
4261
|
volume: (e.volume ?? 100) / 100,
|
|
@@ -4246,14 +4271,14 @@ const Be = ({
|
|
|
4246
4271
|
width: Y,
|
|
4247
4272
|
height: N,
|
|
4248
4273
|
effects: y,
|
|
4249
|
-
children:
|
|
4274
|
+
children: V
|
|
4250
4275
|
}
|
|
4251
|
-
) :
|
|
4276
|
+
) : V, X = () => x ? /* @__PURE__ */ f(
|
|
4252
4277
|
Oo,
|
|
4253
4278
|
{
|
|
4254
4279
|
src: e.src,
|
|
4255
4280
|
isVideo: !0,
|
|
4256
|
-
frame:
|
|
4281
|
+
frame: i,
|
|
4257
4282
|
delay: b == null ? void 0 : b.delay,
|
|
4258
4283
|
durationInFrames: b == null ? void 0 : b.durationInFrames,
|
|
4259
4284
|
from: b == null ? void 0 : b.from,
|
|
@@ -4272,7 +4297,7 @@ const Be = ({
|
|
|
4272
4297
|
{
|
|
4273
4298
|
src: e.src,
|
|
4274
4299
|
isVideo: !0,
|
|
4275
|
-
frame:
|
|
4300
|
+
frame: i,
|
|
4276
4301
|
delay: g == null ? void 0 : g.delay,
|
|
4277
4302
|
durationInFrames: g == null ? void 0 : g.durationInFrames,
|
|
4278
4303
|
from: g == null ? void 0 : g.from,
|
|
@@ -4287,15 +4312,15 @@ const Be = ({
|
|
|
4287
4312
|
echoesDetails: g == null ? void 0 : g.details
|
|
4288
4313
|
}
|
|
4289
4314
|
) : I ? /* @__PURE__ */ f(
|
|
4290
|
-
|
|
4315
|
+
Go,
|
|
4291
4316
|
{
|
|
4292
4317
|
src: e.src,
|
|
4293
4318
|
isVideo: !0,
|
|
4294
|
-
frame:
|
|
4295
|
-
delay:
|
|
4296
|
-
durationInFrames:
|
|
4297
|
-
from:
|
|
4298
|
-
to:
|
|
4319
|
+
frame: i,
|
|
4320
|
+
delay: $ == null ? void 0 : $.delay,
|
|
4321
|
+
durationInFrames: $ == null ? void 0 : $.durationInFrames,
|
|
4322
|
+
from: $ == null ? void 0 : $.from,
|
|
4323
|
+
to: $ == null ? void 0 : $.to,
|
|
4299
4324
|
width: e.width,
|
|
4300
4325
|
height: e.height,
|
|
4301
4326
|
borderRadius: e.borderRadius,
|
|
@@ -4303,12 +4328,12 @@ const Be = ({
|
|
|
4303
4328
|
borderColor: e.borderColor,
|
|
4304
4329
|
boxShadow: e.boxShadow,
|
|
4305
4330
|
fps: r,
|
|
4306
|
-
wiggleDetails:
|
|
4331
|
+
wiggleDetails: $ == null ? void 0 : $.details
|
|
4307
4332
|
}
|
|
4308
4333
|
) : S ? /* @__PURE__ */ f(
|
|
4309
4334
|
bo,
|
|
4310
4335
|
{
|
|
4311
|
-
frame:
|
|
4336
|
+
frame: i,
|
|
4312
4337
|
delay: k == null ? void 0 : k.delay,
|
|
4313
4338
|
durationInFrames: k == null ? void 0 : k.durationInFrames,
|
|
4314
4339
|
from: k == null ? void 0 : k.from,
|
|
@@ -4321,39 +4346,39 @@ const Be = ({
|
|
|
4321
4346
|
children: F
|
|
4322
4347
|
}
|
|
4323
4348
|
) : F, P = /* @__PURE__ */ f(
|
|
4324
|
-
|
|
4349
|
+
At,
|
|
4325
4350
|
{
|
|
4326
|
-
style: Kt(e,
|
|
4351
|
+
style: Kt(e, h, {
|
|
4327
4352
|
overflow: "hidden"
|
|
4328
4353
|
}),
|
|
4329
4354
|
animationIn: o,
|
|
4330
4355
|
animationOut: p,
|
|
4331
|
-
frame:
|
|
4356
|
+
frame: i,
|
|
4332
4357
|
durationInFrames: l,
|
|
4333
4358
|
children: /* @__PURE__ */ f(
|
|
4334
4359
|
Ut,
|
|
4335
4360
|
{
|
|
4336
4361
|
animationTimed: c,
|
|
4337
4362
|
durationInFrames: l,
|
|
4338
|
-
frame:
|
|
4363
|
+
frame: i,
|
|
4339
4364
|
children: /* @__PURE__ */ f(
|
|
4340
4365
|
co,
|
|
4341
4366
|
{
|
|
4342
4367
|
item: t,
|
|
4343
4368
|
keyframeAnimations: [
|
|
4344
|
-
...((
|
|
4345
|
-
...((
|
|
4346
|
-
...((
|
|
4369
|
+
...((D = a == null ? void 0 : a.in) == null ? void 0 : D.composition) || [],
|
|
4370
|
+
...((st = a == null ? void 0 : a.timed) == null ? void 0 : st.composition) || [],
|
|
4371
|
+
...((mt = a == null ? void 0 : a.loop) == null ? void 0 : mt.composition) || []
|
|
4347
4372
|
],
|
|
4348
|
-
frame:
|
|
4349
|
-
children: /* @__PURE__ */
|
|
4373
|
+
frame: i,
|
|
4374
|
+
children: /* @__PURE__ */ vt("div", { style: Vo(e, h), children: [
|
|
4350
4375
|
X(),
|
|
4351
|
-
v.map((
|
|
4376
|
+
v.map((L) => /* @__PURE__ */ f("div", { style: L.style }, L.id)),
|
|
4352
4377
|
/* @__PURE__ */ f(
|
|
4353
4378
|
"div",
|
|
4354
4379
|
{
|
|
4355
4380
|
style: {
|
|
4356
|
-
...Bo(e,
|
|
4381
|
+
...Bo(e, h),
|
|
4357
4382
|
backgroundColor: "transparent"
|
|
4358
4383
|
}
|
|
4359
4384
|
}
|
|
@@ -4365,13 +4390,13 @@ const Be = ({
|
|
|
4365
4390
|
)
|
|
4366
4391
|
}
|
|
4367
4392
|
);
|
|
4368
|
-
return
|
|
4393
|
+
return gt({ item: t, options: n, children: P });
|
|
4369
4394
|
};
|
|
4370
4395
|
function Oe({
|
|
4371
4396
|
item: t,
|
|
4372
4397
|
options: n
|
|
4373
4398
|
}) {
|
|
4374
|
-
const { fps: r, frame: s } = n, { details: e } = t, a = t.playbackRate || 1, { from: d, durationInFrames: o } =
|
|
4399
|
+
const { fps: r, frame: s } = n, { details: e } = t, a = t.playbackRate || 1, { from: d, durationInFrames: o } = It(
|
|
4375
4400
|
{
|
|
4376
4401
|
from: t.display.from / a,
|
|
4377
4402
|
to: t.display.to / a
|
|
@@ -4380,13 +4405,13 @@ function Oe({
|
|
|
4380
4405
|
);
|
|
4381
4406
|
let p;
|
|
4382
4407
|
if (e.inverted) {
|
|
4383
|
-
const
|
|
4384
|
-
p = 100 - Math.min(
|
|
4408
|
+
const h = Math.max((s || 0) - d, 0);
|
|
4409
|
+
p = 100 - Math.min(h / o * 100, 100);
|
|
4385
4410
|
} else {
|
|
4386
|
-
const
|
|
4387
|
-
p = Math.min(
|
|
4411
|
+
const h = Math.max((s || 0) - d, 0);
|
|
4412
|
+
p = Math.min(h / o * 100, 100);
|
|
4388
4413
|
}
|
|
4389
|
-
const c = /* @__PURE__ */
|
|
4414
|
+
const c = /* @__PURE__ */ vt(kt, { children: [
|
|
4390
4415
|
/* @__PURE__ */ f(
|
|
4391
4416
|
"div",
|
|
4392
4417
|
{
|
|
@@ -4412,16 +4437,16 @@ function Oe({
|
|
|
4412
4437
|
}
|
|
4413
4438
|
)
|
|
4414
4439
|
] });
|
|
4415
|
-
return
|
|
4440
|
+
return gt({ item: t, options: n, children: c });
|
|
4416
4441
|
}
|
|
4417
4442
|
const Xr = (t) => {
|
|
4418
4443
|
let n = 0;
|
|
4419
4444
|
for (let r = 0; r < t.length; r++)
|
|
4420
4445
|
n += t[r] * t[r];
|
|
4421
4446
|
return n = n / t.length, n = Math.sqrt(n), n;
|
|
4422
|
-
}, Pr = (t) => 20 * Math.log10(t), Wr = (t, n, r) => (t - n) / (r - n),
|
|
4423
|
-
const { minDb: r =
|
|
4424
|
-
return
|
|
4447
|
+
}, Pr = (t) => 20 * Math.log10(t), Wr = (t, n, r) => (t - n) / (r - n), Er = (t, n, r) => Math.max(Math.min(t, r), n), Vr = -100, Br = -30, xo = (t, n = {}) => {
|
|
4448
|
+
const { minDb: r = Vr, maxDb: s = Br } = n, e = Pr(t);
|
|
4449
|
+
return Er(Wr(e, r, s), 0, 1);
|
|
4425
4450
|
}, jo = ({
|
|
4426
4451
|
totalWidth: t,
|
|
4427
4452
|
itemWidth: n,
|
|
@@ -4430,9 +4455,9 @@ const Xr = (t) => {
|
|
|
4430
4455
|
minDb: e = -80
|
|
4431
4456
|
}) => {
|
|
4432
4457
|
const a = Math.floor(t / n), d = r, o = Math.floor(d.length / a);
|
|
4433
|
-
return Array.from({ length: a }).map((c,
|
|
4458
|
+
return Array.from({ length: a }).map((c, h) => {
|
|
4434
4459
|
const l = xo(
|
|
4435
|
-
d[
|
|
4460
|
+
d[h * o % d.length],
|
|
4436
4461
|
{ maxDb: s, minDb: e }
|
|
4437
4462
|
);
|
|
4438
4463
|
return Math.log(1 + l);
|
|
@@ -4448,9 +4473,9 @@ const Xr = (t) => {
|
|
|
4448
4473
|
color: o = "white",
|
|
4449
4474
|
maxAmplitude: p = 1
|
|
4450
4475
|
}) => {
|
|
4451
|
-
const c = n,
|
|
4452
|
-
return !t || t.length === 0 ? null : /* @__PURE__ */ f("div", { style: { width: n, height: r }, children: /* @__PURE__ */ f("svg", { width: c, height:
|
|
4453
|
-
const u = l *
|
|
4476
|
+
const c = n, h = r;
|
|
4477
|
+
return !t || t.length === 0 ? null : /* @__PURE__ */ f("div", { style: { width: n, height: r }, children: /* @__PURE__ */ f("svg", { width: c, height: h, viewBox: `0 0 ${c} ${h}`, children: t.map((l, i) => {
|
|
4478
|
+
const u = l * h / p, y = i * (s + e), m = d === "over" ? 0 : d === "under" ? h - u : 0.5 * (h - u);
|
|
4454
4479
|
return /* @__PURE__ */ f(
|
|
4455
4480
|
"rect",
|
|
4456
4481
|
{
|
|
@@ -4461,7 +4486,7 @@ const Xr = (t) => {
|
|
|
4461
4486
|
height: u || 0,
|
|
4462
4487
|
rx: a || 0
|
|
4463
4488
|
},
|
|
4464
|
-
|
|
4489
|
+
i
|
|
4465
4490
|
);
|
|
4466
4491
|
}) }) });
|
|
4467
4492
|
}, Cr = ({
|
|
@@ -4476,24 +4501,24 @@ const Xr = (t) => {
|
|
|
4476
4501
|
maxDb: p,
|
|
4477
4502
|
minDb: c
|
|
4478
4503
|
}) => {
|
|
4479
|
-
const
|
|
4504
|
+
const h = mo(null), l = Yt(), [i, u] = fo({ width: 400, height: 100 });
|
|
4480
4505
|
eo(() => {
|
|
4481
4506
|
u((b) => {
|
|
4482
|
-
var
|
|
4507
|
+
var x, g;
|
|
4483
4508
|
return {
|
|
4484
|
-
width: ((
|
|
4485
|
-
height: ((g =
|
|
4509
|
+
width: ((x = h.current) == null ? void 0 : x.offsetWidth) ?? b.width,
|
|
4510
|
+
height: ((g = h.current) == null ? void 0 : g.offsetHeight) ?? b.height
|
|
4486
4511
|
};
|
|
4487
4512
|
});
|
|
4488
4513
|
}, [l, u]);
|
|
4489
|
-
const { width: y, height: m } =
|
|
4514
|
+
const { width: y, height: m } = i, v = jo({
|
|
4490
4515
|
totalWidth: y,
|
|
4491
4516
|
itemWidth: s + e,
|
|
4492
4517
|
frequencyData: r,
|
|
4493
4518
|
maxDb: p,
|
|
4494
4519
|
minDb: c
|
|
4495
4520
|
});
|
|
4496
|
-
return /* @__PURE__ */ f("div", { ref:
|
|
4521
|
+
return /* @__PURE__ */ f("div", { ref: h, style: { width: t, height: n }, children: /* @__PURE__ */ f(
|
|
4497
4522
|
Or,
|
|
4498
4523
|
{
|
|
4499
4524
|
width: y,
|
|
@@ -4507,17 +4532,17 @@ const Xr = (t) => {
|
|
|
4507
4532
|
}
|
|
4508
4533
|
) });
|
|
4509
4534
|
};
|
|
4510
|
-
class
|
|
4535
|
+
class Gr {
|
|
4511
4536
|
constructor() {
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4537
|
+
Wt(this, "fps", 30);
|
|
4538
|
+
Wt(this, "numberOfSamples", 512);
|
|
4539
|
+
Wt(this, "dataBars", []);
|
|
4540
|
+
Wt(this, "items", []);
|
|
4541
|
+
Wt(this, "audioDatas", {});
|
|
4542
|
+
Wt(this, "MAX_CACHE_SIZE", 10);
|
|
4543
|
+
Wt(this, "frameCache", /* @__PURE__ */ new Map());
|
|
4544
|
+
Wt(this, "CACHE_TTL", 1e3 * 60 * 5);
|
|
4545
|
+
Wt(this, "combineValues", (n, r) => Array.from({ length: n }).map((s, e) => r.reduce((a, d) => Math.max(a, d[e]), 0)));
|
|
4521
4546
|
}
|
|
4522
4547
|
// 5 minutes
|
|
4523
4548
|
setAudioDataManager(n) {
|
|
@@ -4572,10 +4597,10 @@ class Lr {
|
|
|
4572
4597
|
if (r)
|
|
4573
4598
|
return r;
|
|
4574
4599
|
const s = this.items.map((a, d) => {
|
|
4575
|
-
var
|
|
4600
|
+
var h;
|
|
4576
4601
|
const o = this.audioDatas[a.id];
|
|
4577
4602
|
if (!o) return Array(this.numberOfSamples).fill(0);
|
|
4578
|
-
const p = n - this.items[d].display.from * this.fps / 1e3 + (((
|
|
4603
|
+
const p = n - this.items[d].display.from * this.fps / 1e3 + (((h = this.items[d].trim) == null ? void 0 : h.from) || 0) * this.fps / 1e3;
|
|
4579
4604
|
if (this.items[d].display.from * this.fps / 1e3 > n || this.items[d].display.to * this.fps / 1e3 < n)
|
|
4580
4605
|
return Array(this.numberOfSamples).fill(0);
|
|
4581
4606
|
const c = gn({
|
|
@@ -4596,14 +4621,14 @@ class Lr {
|
|
|
4596
4621
|
return e;
|
|
4597
4622
|
}
|
|
4598
4623
|
}
|
|
4599
|
-
const Lt = new
|
|
4624
|
+
const Lt = new Gr(), Lr = ({
|
|
4600
4625
|
item: t,
|
|
4601
4626
|
options: n
|
|
4602
4627
|
}) => {
|
|
4603
4628
|
const { frame: r, fps: s } = n, { details: e } = t;
|
|
4604
4629
|
Lt.setAudioDataManager(s);
|
|
4605
4630
|
const o = Lt.getAudioDataForFrame(r || 0).slice(0, 0.7 * 512), c = ["middle", "over", "under"].includes(e.placement);
|
|
4606
|
-
return /* @__PURE__ */ f(
|
|
4631
|
+
return /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
|
|
4607
4632
|
Cr,
|
|
4608
4633
|
{
|
|
4609
4634
|
frequencyData: o,
|
|
@@ -4621,13 +4646,13 @@ function Ce({
|
|
|
4621
4646
|
item: t,
|
|
4622
4647
|
options: n
|
|
4623
4648
|
}) {
|
|
4624
|
-
return
|
|
4649
|
+
return gt({ item: t, options: n, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Lr, { item: t, options: n }) }) });
|
|
4625
4650
|
}
|
|
4626
|
-
function
|
|
4651
|
+
function Ge({
|
|
4627
4652
|
item: t,
|
|
4628
4653
|
options: n
|
|
4629
4654
|
}) {
|
|
4630
|
-
const { fps: r, frame: s } = n, { details: e } = t, a = t.playbackRate || 1, { from: d, durationInFrames: o } =
|
|
4655
|
+
const { fps: r, frame: s } = n, { details: e } = t, a = t.playbackRate || 1, { from: d, durationInFrames: o } = It(
|
|
4631
4656
|
{
|
|
4632
4657
|
from: t.display.from / a,
|
|
4633
4658
|
to: t.display.to / a
|
|
@@ -4642,7 +4667,7 @@ function Le({
|
|
|
4642
4667
|
const y = Math.max((s || 0) - d, 0);
|
|
4643
4668
|
p = Math.min(y / o * 100, 100);
|
|
4644
4669
|
}
|
|
4645
|
-
const c = e.width || 100,
|
|
4670
|
+
const c = e.width || 100, h = e.height || 100, i = Math.min(c, h) * e.barThickness / 100, u = /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
|
|
4646
4671
|
"div",
|
|
4647
4672
|
{
|
|
4648
4673
|
style: {
|
|
@@ -4652,13 +4677,13 @@ function Le({
|
|
|
4652
4677
|
backgroundColor: "transparent",
|
|
4653
4678
|
scale: `${e.flipX ? -1 : 1} ${e.flipY ? -1 : 1}`
|
|
4654
4679
|
},
|
|
4655
|
-
children: /* @__PURE__ */
|
|
4680
|
+
children: /* @__PURE__ */ vt(
|
|
4656
4681
|
"div",
|
|
4657
4682
|
{
|
|
4658
4683
|
style: {
|
|
4659
4684
|
position: "absolute",
|
|
4660
4685
|
inset: 0,
|
|
4661
|
-
clipPath: `polygon(0 0, 100% 0, 100% ${
|
|
4686
|
+
clipPath: `polygon(0 0, 100% 0, 100% ${i}px, ${i}px ${i}px, ${i}px 100%, 0 100%)`
|
|
4662
4687
|
},
|
|
4663
4688
|
children: [
|
|
4664
4689
|
/* @__PURE__ */ f(
|
|
@@ -4690,7 +4715,7 @@ function Le({
|
|
|
4690
4715
|
)
|
|
4691
4716
|
}
|
|
4692
4717
|
) });
|
|
4693
|
-
return
|
|
4718
|
+
return gt({ item: t, options: n, children: u });
|
|
4694
4719
|
}
|
|
4695
4720
|
const zr = ({
|
|
4696
4721
|
values: t,
|
|
@@ -4711,20 +4736,20 @@ const zr = ({
|
|
|
4711
4736
|
width: p,
|
|
4712
4737
|
height: p,
|
|
4713
4738
|
viewBox: `0 0 ${p} ${p}`,
|
|
4714
|
-
children: t.map((c,
|
|
4715
|
-
const l = c * (n - o) / d,
|
|
4739
|
+
children: t.map((c, h) => {
|
|
4740
|
+
const l = c * (n - o) / d, i = n, u = e === "outer" ? n - l : e === "inner" ? n : n - 0.5 * l, y = e === "outer" ? n : e === "inner" ? o : n - 0.5 * (n - o), m = `rotate(${360 * h / t.length} ${n} ${n}) translate(0 ${y})`;
|
|
4716
4741
|
return /* @__PURE__ */ f(
|
|
4717
4742
|
"rect",
|
|
4718
4743
|
{
|
|
4719
4744
|
fill: a,
|
|
4720
|
-
x:
|
|
4745
|
+
x: i,
|
|
4721
4746
|
y: u,
|
|
4722
4747
|
width: r,
|
|
4723
4748
|
height: l,
|
|
4724
4749
|
rx: s,
|
|
4725
4750
|
transform: m
|
|
4726
4751
|
},
|
|
4727
|
-
|
|
4752
|
+
h
|
|
4728
4753
|
);
|
|
4729
4754
|
})
|
|
4730
4755
|
}
|
|
@@ -4740,15 +4765,15 @@ const zr = ({
|
|
|
4740
4765
|
color: o = "white",
|
|
4741
4766
|
maxAmplitude: p,
|
|
4742
4767
|
innerRadius: c = 0,
|
|
4743
|
-
gapSize:
|
|
4768
|
+
gapSize: h = 4
|
|
4744
4769
|
}) => {
|
|
4745
|
-
const l = 0.5 * s,
|
|
4770
|
+
const l = 0.5 * s, i = jo({
|
|
4746
4771
|
totalWidth: 2 * Math.PI * c,
|
|
4747
|
-
itemWidth: e +
|
|
4772
|
+
itemWidth: e + h,
|
|
4748
4773
|
frequencyData: t,
|
|
4749
4774
|
maxDb: n,
|
|
4750
4775
|
minDb: r
|
|
4751
|
-
}), u =
|
|
4776
|
+
}), u = i.slice(Math.floor(0.5 * i.length)), y = [...u, ...u.slice().reverse()];
|
|
4752
4777
|
return /* @__PURE__ */ f(
|
|
4753
4778
|
zr,
|
|
4754
4779
|
{
|
|
@@ -4769,7 +4794,7 @@ const zr = ({
|
|
|
4769
4794
|
const { fps: r, frame: s } = n, { details: e } = t, a = t.playbackRate || 1;
|
|
4770
4795
|
Lt.setAudioDataManager(r);
|
|
4771
4796
|
const p = Lt.getAudioDataForFrame(s || 0).slice(0, 0.7 * 512);
|
|
4772
|
-
return /* @__PURE__ */
|
|
4797
|
+
return /* @__PURE__ */ vt(kt, { children: [
|
|
4773
4798
|
/* @__PURE__ */ f(
|
|
4774
4799
|
jr,
|
|
4775
4800
|
{
|
|
@@ -4779,14 +4804,14 @@ const zr = ({
|
|
|
4779
4804
|
color: e.radialBarColor
|
|
4780
4805
|
}
|
|
4781
4806
|
),
|
|
4782
|
-
e.reproduceAudio && e.srcs.map((c,
|
|
4807
|
+
e.reproduceAudio && e.srcs.map((c, h) => /* @__PURE__ */ f(Wo, { playbackRate: a, src: c }, h))
|
|
4783
4808
|
] });
|
|
4784
4809
|
};
|
|
4785
|
-
function
|
|
4810
|
+
function Le({
|
|
4786
4811
|
item: t,
|
|
4787
4812
|
options: n
|
|
4788
4813
|
}) {
|
|
4789
|
-
return
|
|
4814
|
+
return gt({ item: t, options: n, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Hr, { item: t, options: n }) }) });
|
|
4790
4815
|
}
|
|
4791
4816
|
const _r = ({
|
|
4792
4817
|
numberOfPoints: t,
|
|
@@ -4797,10 +4822,10 @@ const _r = ({
|
|
|
4797
4822
|
const e = 1 / t, a = r / s;
|
|
4798
4823
|
return Array.from({ length: t }).map((d, o, p) => {
|
|
4799
4824
|
const c = (o - 0.5) % p.length * e - a;
|
|
4800
|
-
let
|
|
4801
|
-
|
|
4825
|
+
let h = (c + 1) % 1;
|
|
4826
|
+
h = h * s;
|
|
4802
4827
|
let l = Math.sin(Math.abs(c) * Math.PI);
|
|
4803
|
-
return l = w.cubic(l), l = l * n, l = l * Math.sin((0.5 + o) * Math.PI), { x:
|
|
4828
|
+
return l = w.cubic(l), l = l * n, l = l * Math.sin((0.5 + o) * Math.PI), { x: h, y: l };
|
|
4804
4829
|
}).sort((d, o) => d.x > o.x ? 1 : -1);
|
|
4805
4830
|
}, Zr = ({
|
|
4806
4831
|
sections: t = 12,
|
|
@@ -4813,37 +4838,37 @@ const _r = ({
|
|
|
4813
4838
|
lineColor: o = ["darkblue", "lightblue"],
|
|
4814
4839
|
lineThickness: p = 2,
|
|
4815
4840
|
topRoundness: c = 0.4,
|
|
4816
|
-
bottomRoundness:
|
|
4841
|
+
bottomRoundness: h = 0.4
|
|
4817
4842
|
}) => {
|
|
4818
|
-
const l = s,
|
|
4819
|
-
const I =
|
|
4843
|
+
const l = s, i = e, u = t, y = n % (2 * s / t), m = Array.from({ length: a }).map((M, $) => {
|
|
4844
|
+
const I = $ * d;
|
|
4820
4845
|
return _r({
|
|
4821
4846
|
width: l,
|
|
4822
4847
|
numberOfPoints: u,
|
|
4823
4848
|
offsetPixels: I + y,
|
|
4824
4849
|
amplitude: 0.5 * r
|
|
4825
4850
|
});
|
|
4826
|
-
}), v = l / u, b = c * v,
|
|
4827
|
-
const I = M.y <= 0, k = I ? b :
|
|
4828
|
-
return `C ${Y} ${N}, ${
|
|
4851
|
+
}), v = l / u, b = c * v, x = h * v, g = (M, $) => {
|
|
4852
|
+
const I = M.y <= 0, k = I ? b : x, S = I ? x : b, Y = $.x + S, N = $.y, V = M.x - k, F = M.y, X = M.x, P = M.y;
|
|
4853
|
+
return `C ${Y} ${N}, ${V} ${F}, ${X} ${P}`;
|
|
4829
4854
|
};
|
|
4830
|
-
return /* @__PURE__ */ f("div", { style: { width: s, height: e }, children: /* @__PURE__ */ f("svg", { width: l, height:
|
|
4831
|
-
const I = M[M.length - 1], k = Array.isArray(o) ? o[
|
|
4855
|
+
return /* @__PURE__ */ f("div", { style: { width: s, height: e }, children: /* @__PURE__ */ f("svg", { width: l, height: i, viewBox: `0 -${0.5 * i} ${l} ${i}`, children: m.map((M, $) => {
|
|
4856
|
+
const I = M[M.length - 1], k = Array.isArray(o) ? o[$ % o.length] : o;
|
|
4832
4857
|
return /* @__PURE__ */ f(
|
|
4833
4858
|
"path",
|
|
4834
4859
|
{
|
|
4835
4860
|
d: `M 0 0, ${M.map((S, Y, N) => {
|
|
4836
|
-
const
|
|
4837
|
-
return g(S,
|
|
4861
|
+
const V = Y === 0 ? { x: 0, y: 0 } : N[Y - 1];
|
|
4862
|
+
return g(S, V);
|
|
4838
4863
|
}).join(",")}, ${g({ x: l, y: 0 }, I)}`,
|
|
4839
4864
|
stroke: k,
|
|
4840
4865
|
strokeWidth: p,
|
|
4841
4866
|
fill: "none"
|
|
4842
4867
|
},
|
|
4843
|
-
`line-${
|
|
4868
|
+
`line-${$}`
|
|
4844
4869
|
);
|
|
4845
4870
|
}) }) });
|
|
4846
|
-
},
|
|
4871
|
+
}, Ar = ({
|
|
4847
4872
|
frequencyData: t,
|
|
4848
4873
|
width: n,
|
|
4849
4874
|
height: r,
|
|
@@ -4852,28 +4877,28 @@ const _r = ({
|
|
|
4852
4877
|
minDb: a,
|
|
4853
4878
|
...d
|
|
4854
4879
|
}) => {
|
|
4855
|
-
const o =
|
|
4880
|
+
const o = Yt(), { fps: p } = Jo();
|
|
4856
4881
|
if (!t) return null;
|
|
4857
|
-
const c = t.slice(0.25 * t.length).map((
|
|
4882
|
+
const c = t.slice(0.25 * t.length).map((i) => xo(i, { maxDb: e, minDb: a })), h = r * Xr(c), l = o / p;
|
|
4858
4883
|
return /* @__PURE__ */ f("div", { style: { width: n, height: r }, children: /* @__PURE__ */ f(
|
|
4859
4884
|
Zr,
|
|
4860
4885
|
{
|
|
4861
4886
|
width: n,
|
|
4862
4887
|
height: r,
|
|
4863
4888
|
offsetPixels: s * l,
|
|
4864
|
-
amplitude:
|
|
4889
|
+
amplitude: h,
|
|
4865
4890
|
...d
|
|
4866
4891
|
}
|
|
4867
4892
|
) });
|
|
4868
|
-
},
|
|
4893
|
+
}, Qr = ({
|
|
4869
4894
|
item: t,
|
|
4870
4895
|
options: n
|
|
4871
4896
|
}) => {
|
|
4872
4897
|
const { frame: r, fps: s } = n, { details: e } = t;
|
|
4873
4898
|
Lt.setAudioDataManager(s);
|
|
4874
4899
|
const o = Lt.getAudioDataForFrame(r || 0).slice(0, 0.7 * 512);
|
|
4875
|
-
return /* @__PURE__ */ f(
|
|
4876
|
-
|
|
4900
|
+
return /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
|
|
4901
|
+
Ar,
|
|
4877
4902
|
{
|
|
4878
4903
|
frequencyData: o,
|
|
4879
4904
|
width: e.width,
|
|
@@ -4892,7 +4917,7 @@ function ze({
|
|
|
4892
4917
|
item: t,
|
|
4893
4918
|
options: n
|
|
4894
4919
|
}) {
|
|
4895
|
-
return
|
|
4920
|
+
return gt({ item: t, options: n, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Qr, { item: t, options: n }) }) });
|
|
4896
4921
|
}
|
|
4897
4922
|
const Ur = (t, n) => {
|
|
4898
4923
|
if (!n || n === t.length) return [...t];
|
|
@@ -4905,7 +4930,7 @@ const Ur = (t, n) => {
|
|
|
4905
4930
|
minDb: s = -80
|
|
4906
4931
|
}) => {
|
|
4907
4932
|
const e = t, a = Math.floor(0.2 * n.length), d = Math.floor(0.6 * n.length), o = n.slice(a, d), p = Math.floor(o.length / e);
|
|
4908
|
-
return Array.from({ length: e }).map((
|
|
4933
|
+
return Array.from({ length: e }).map((h, l) => xo(
|
|
4909
4934
|
o[l * p % o.length],
|
|
4910
4935
|
{ maxDb: r, minDb: s }
|
|
4911
4936
|
));
|
|
@@ -4920,42 +4945,42 @@ const Ur = (t, n) => {
|
|
|
4920
4945
|
copies: o = 1,
|
|
4921
4946
|
blendMode: p = "normal"
|
|
4922
4947
|
}) => {
|
|
4923
|
-
const c = n,
|
|
4948
|
+
const c = n, h = r;
|
|
4924
4949
|
if (!t || t.length === 0)
|
|
4925
4950
|
return null;
|
|
4926
|
-
const { scaling: l, viewBoxVerticalShift:
|
|
4927
|
-
viewBoxVerticalShift: -
|
|
4951
|
+
const { scaling: l, viewBoxVerticalShift: i } = d === "over" ? {
|
|
4952
|
+
viewBoxVerticalShift: -h,
|
|
4928
4953
|
scaling: 1
|
|
4929
4954
|
} : d === "under" ? {
|
|
4930
4955
|
viewBoxVerticalShift: 0,
|
|
4931
4956
|
scaling: 1
|
|
4932
4957
|
} : {
|
|
4933
|
-
viewBoxVerticalShift: -0.5 *
|
|
4958
|
+
viewBoxVerticalShift: -0.5 * h,
|
|
4934
4959
|
scaling: 0.5
|
|
4935
|
-
}, y = 0.15 * c, m = (c - 2 * y) / (t.length - 1), v = Array.from({ length: o }).map((b,
|
|
4936
|
-
const g = 3 *
|
|
4937
|
-
return Ur(t, g).map((
|
|
4960
|
+
}, y = 0.15 * c, m = (c - 2 * y) / (t.length - 1), v = Array.from({ length: o }).map((b, x) => {
|
|
4961
|
+
const g = 3 * x;
|
|
4962
|
+
return Ur(t, g).map(($, I) => ({
|
|
4938
4963
|
x: y + I * m,
|
|
4939
|
-
y: l *
|
|
4964
|
+
y: l * h * $ * (1.2 - 0.5 * qo(x * t.length + I))
|
|
4940
4965
|
}));
|
|
4941
4966
|
});
|
|
4942
|
-
return /* @__PURE__ */ f("div", { style: { width: n, height: r }, children: /* @__PURE__ */ f("svg", { width: c, height:
|
|
4943
|
-
const g = b[b.length - 1], M = Array.isArray(a) ? a[
|
|
4967
|
+
return /* @__PURE__ */ f("div", { style: { width: n, height: r }, children: /* @__PURE__ */ f("svg", { width: c, height: h, viewBox: `0 ${i} ${c} ${h}`, children: v.map((b, x) => {
|
|
4968
|
+
const g = b[b.length - 1], M = Array.isArray(a) ? a[x % a.length] : a, $ = Array.isArray(s) ? s[x % s.length] : s, I = {
|
|
4944
4969
|
stroke: M,
|
|
4945
4970
|
strokeWidth: e,
|
|
4946
|
-
fill:
|
|
4971
|
+
fill: $,
|
|
4947
4972
|
style: {
|
|
4948
4973
|
mixBlendMode: p
|
|
4949
4974
|
}
|
|
4950
4975
|
};
|
|
4951
|
-
return /* @__PURE__ */
|
|
4976
|
+
return /* @__PURE__ */ vt(Et.Fragment, { children: [
|
|
4952
4977
|
d !== "over" && /* @__PURE__ */ f(
|
|
4953
4978
|
"path",
|
|
4954
4979
|
{
|
|
4955
4980
|
...I,
|
|
4956
4981
|
d: `M 0 0, ${b.map((k, S, Y) => {
|
|
4957
|
-
const N = S === 0 ? { x: 0, y: 0 } : Y[S - 1],
|
|
4958
|
-
return `C ${
|
|
4982
|
+
const N = S === 0 ? { x: 0, y: 0 } : Y[S - 1], V = N.x + 0.5 * m, F = N.y, X = k.x - 0.5 * m, P = k.y, G = k.x, E = k.y;
|
|
4983
|
+
return `C ${V} ${F}, ${X} ${P}, ${G} ${E}`;
|
|
4959
4984
|
}).join(",")}, C ${g.x + 0.5 * m} ${g.y}, ${c - 0.5 * m} 0, ${c} 0`
|
|
4960
4985
|
}
|
|
4961
4986
|
),
|
|
@@ -4964,12 +4989,12 @@ const Ur = (t, n) => {
|
|
|
4964
4989
|
{
|
|
4965
4990
|
...I,
|
|
4966
4991
|
d: `M 0 0, ${b.map((k, S, Y) => {
|
|
4967
|
-
const N = S === 0 ? { x: 0, y: 0 } : Y[S - 1],
|
|
4968
|
-
return `C ${
|
|
4992
|
+
const N = S === 0 ? { x: 0, y: 0 } : Y[S - 1], V = N.x + 0.5 * m, F = -N.y, X = k.x - 0.5 * m, P = -k.y, G = k.x, E = -k.y;
|
|
4993
|
+
return `C ${V} ${F}, ${X} ${P}, ${G} ${E}`;
|
|
4969
4994
|
}).join(",")}, C ${g.x + 0.5 * m} ${-g.y}, ${c - 0.5 * m} 0, ${c} 0`
|
|
4970
4995
|
}
|
|
4971
4996
|
)
|
|
4972
|
-
] },
|
|
4997
|
+
] }, x);
|
|
4973
4998
|
}) }) });
|
|
4974
4999
|
}, qr = ({
|
|
4975
5000
|
width: t,
|
|
@@ -4983,20 +5008,20 @@ const Ur = (t, n) => {
|
|
|
4983
5008
|
maxDb: p,
|
|
4984
5009
|
minDb: c
|
|
4985
5010
|
}) => {
|
|
4986
|
-
const
|
|
5011
|
+
const h = mo(null), l = Yt(), [i, u] = fo({ width: 400, height: 100 });
|
|
4987
5012
|
eo(() => {
|
|
4988
5013
|
u((b) => {
|
|
4989
|
-
var
|
|
5014
|
+
var x, g;
|
|
4990
5015
|
return {
|
|
4991
|
-
width: ((
|
|
4992
|
-
height: ((g =
|
|
5016
|
+
width: ((x = h.current) == null ? void 0 : x.offsetWidth) ?? b.width,
|
|
5017
|
+
height: ((g = h.current) == null ? void 0 : g.offsetHeight) ?? b.height
|
|
4993
5018
|
};
|
|
4994
5019
|
});
|
|
4995
5020
|
}, [l, u]);
|
|
4996
|
-
const { width: y, height: m } =
|
|
5021
|
+
const { width: y, height: m } = i;
|
|
4997
5022
|
if (!r) return null;
|
|
4998
5023
|
const v = Kr({ frequencyData: r, minDb: c, maxDb: p });
|
|
4999
|
-
return /* @__PURE__ */ f("div", { ref:
|
|
5024
|
+
return /* @__PURE__ */ f("div", { ref: h, style: { width: t, height: n }, children: /* @__PURE__ */ f(
|
|
5000
5025
|
Jr,
|
|
5001
5026
|
{
|
|
5002
5027
|
values: v,
|
|
@@ -5033,7 +5058,7 @@ const Ur = (t, n) => {
|
|
|
5033
5058
|
"color",
|
|
5034
5059
|
"luminosity"
|
|
5035
5060
|
].includes(c);
|
|
5036
|
-
return /* @__PURE__ */ f(
|
|
5061
|
+
return /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
|
|
5037
5062
|
qr,
|
|
5038
5063
|
{
|
|
5039
5064
|
frequencyData: o,
|
|
@@ -5051,7 +5076,7 @@ function je({
|
|
|
5051
5076
|
item: t,
|
|
5052
5077
|
options: n
|
|
5053
5078
|
}) {
|
|
5054
|
-
return
|
|
5079
|
+
return gt({ item: t, options: n, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Tr, { item: t, options: n }) }) });
|
|
5055
5080
|
}
|
|
5056
5081
|
const Ho = () => ({
|
|
5057
5082
|
scale: (t) => ({ transform: `scale(${t})` }),
|
|
@@ -5066,7 +5091,7 @@ const Ho = () => ({
|
|
|
5066
5091
|
r.push(e * s + n);
|
|
5067
5092
|
return r;
|
|
5068
5093
|
}, Dr = (t, n, r, s = !1) => {
|
|
5069
|
-
const { from: e, to: a, ease: d } = n, o = n.durationInFrames || 30, p = Number(e), c = Number(a),
|
|
5094
|
+
const { from: e, to: a, ease: d } = n, o = n.durationInFrames || 30, p = Number(e), c = Number(a), h = Math.max(1, Number(o));
|
|
5070
5095
|
if (isNaN(p) || isNaN(c))
|
|
5071
5096
|
return console.log(
|
|
5072
5097
|
"[useAnimation interpolate] NaN safeFrom:",
|
|
@@ -5080,12 +5105,12 @@ const Ho = () => ({
|
|
|
5080
5105
|
"durationInFrames:",
|
|
5081
5106
|
r
|
|
5082
5107
|
), p;
|
|
5083
|
-
const l = n.delay || 0,
|
|
5108
|
+
const l = n.delay || 0, i = s ? [r - h - l, r - l] : [l, l + h];
|
|
5084
5109
|
if (n.property.includes("shake")) {
|
|
5085
5110
|
const u = s ? Yo(
|
|
5086
|
-
|
|
5087
|
-
r -
|
|
5088
|
-
) : Yo(
|
|
5111
|
+
h,
|
|
5112
|
+
r - h - l
|
|
5113
|
+
) : Yo(h, l);
|
|
5089
5114
|
return W(
|
|
5090
5115
|
t,
|
|
5091
5116
|
u,
|
|
@@ -5097,7 +5122,7 @@ const Ho = () => ({
|
|
|
5097
5122
|
}
|
|
5098
5123
|
);
|
|
5099
5124
|
}
|
|
5100
|
-
return W(t,
|
|
5125
|
+
return W(t, i, [p, c], {
|
|
5101
5126
|
extrapolateLeft: "clamp",
|
|
5102
5127
|
extrapolateRight: "clamp",
|
|
5103
5128
|
easing: d
|
|
@@ -5105,17 +5130,17 @@ const Ho = () => ({
|
|
|
5105
5130
|
}, Fo = (t, n, r, s) => {
|
|
5106
5131
|
const { property: e } = t, a = Dr(n, t, r, s), d = Ho();
|
|
5107
5132
|
return (d[e] || d.default)(a);
|
|
5108
|
-
}, lo = (t, n, r, s = !1, e = !1) =>
|
|
5133
|
+
}, lo = (t, n, r, s = !1, e = !1) => Et.useMemo(() => {
|
|
5109
5134
|
if (t.length === 0) return {};
|
|
5110
5135
|
const a = t.filter(
|
|
5111
5136
|
(d) => d.from !== void 0 && d.to !== void 0
|
|
5112
5137
|
);
|
|
5113
5138
|
if (a.length !== t.length && console.error("Some animations are invalid and will be ignored"), e) {
|
|
5114
5139
|
const d = [], o = {};
|
|
5115
|
-
a.reverse().forEach((
|
|
5116
|
-
const l = Fo(
|
|
5117
|
-
if (
|
|
5118
|
-
const u =
|
|
5140
|
+
a.reverse().forEach((h) => {
|
|
5141
|
+
const l = Fo(h, r, n, !1);
|
|
5142
|
+
if (h.persist === !0 && r - (h.delay || 0) >= h.durationInFrames) {
|
|
5143
|
+
const u = h.to, y = Ho(), m = (y[h.property] || y.default)(u);
|
|
5119
5144
|
Object.keys(m).forEach((v) => {
|
|
5120
5145
|
v === "transform" ? o[v] = o[v] ? {
|
|
5121
5146
|
[v]: `${o[v][v]} ${m[v]}`
|
|
@@ -5125,14 +5150,14 @@ const Ho = () => ({
|
|
|
5125
5150
|
d.push(l);
|
|
5126
5151
|
});
|
|
5127
5152
|
const c = { ...d.reduce(
|
|
5128
|
-
(
|
|
5129
|
-
|
|
5130
|
-
}),
|
|
5153
|
+
(h, l) => (Object.keys(l).forEach((i) => {
|
|
5154
|
+
i === "transform" ? h[i] = h[i] ? `${h[i]} ${l[i]}` : l[i] : h[i] = l[i];
|
|
5155
|
+
}), h),
|
|
5131
5156
|
{}
|
|
5132
5157
|
) };
|
|
5133
|
-
return Object.keys(o).forEach((
|
|
5134
|
-
const l = o[
|
|
5135
|
-
|
|
5158
|
+
return Object.keys(o).forEach((h) => {
|
|
5159
|
+
const l = o[h];
|
|
5160
|
+
h === "transform" && l.transform ? c.transform = c.transform ? `${c.transform} ${l.transform}` : l.transform : l[h] !== void 0 && (c[h] = l[h]);
|
|
5136
5161
|
}), c;
|
|
5137
5162
|
} else
|
|
5138
5163
|
return a.map((o) => Fo(o, r, n, s)).reduce(
|
|
@@ -5149,7 +5174,7 @@ const Ho = () => ({
|
|
|
5149
5174
|
style: e = {}
|
|
5150
5175
|
}) => {
|
|
5151
5176
|
var b;
|
|
5152
|
-
const a =
|
|
5177
|
+
const a = Yt(), d = lo(
|
|
5153
5178
|
ro(t),
|
|
5154
5179
|
r,
|
|
5155
5180
|
a,
|
|
@@ -5159,50 +5184,50 @@ const Ho = () => ({
|
|
|
5159
5184
|
r,
|
|
5160
5185
|
a,
|
|
5161
5186
|
!0
|
|
5162
|
-
), p =
|
|
5163
|
-
const
|
|
5164
|
-
(
|
|
5187
|
+
), p = Et.useMemo(() => {
|
|
5188
|
+
const x = Object.keys(d).length > 0, g = t == null ? void 0 : t.reduce(
|
|
5189
|
+
($, I) => Math.min($, I.delay || 0),
|
|
5165
5190
|
1 / 0
|
|
5166
5191
|
), M = a - (g || 0);
|
|
5167
|
-
return
|
|
5168
|
-
}, [d, a, t]), c =
|
|
5169
|
-
if (a
|
|
5192
|
+
return x && M < 0 ? { visibility: "hidden" } : d;
|
|
5193
|
+
}, [d, a, t]), c = Et.useMemo(() => {
|
|
5194
|
+
if (a > r)
|
|
5170
5195
|
return { visibility: "hidden" };
|
|
5171
|
-
const
|
|
5172
|
-
if (
|
|
5196
|
+
const x = ro(n);
|
|
5197
|
+
if (!x || x.length === 0) return {};
|
|
5173
5198
|
let g = 0;
|
|
5174
|
-
|
|
5175
|
-
const I = (
|
|
5199
|
+
x.forEach(($) => {
|
|
5200
|
+
const I = ($.durationInFrames || 0) + ($.delay || 0);
|
|
5176
5201
|
I > g && (g = I);
|
|
5177
5202
|
});
|
|
5178
5203
|
const M = Math.max(0, r - g);
|
|
5179
5204
|
return a < M ? {} : o;
|
|
5180
|
-
}, [o, a, n, r]), l = ((e == null ? void 0 : e.transform) || "").match(/rotate\((-?[\d.]+)deg\)/),
|
|
5181
|
-
const
|
|
5205
|
+
}, [o, a, n, r]), l = ((e == null ? void 0 : e.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), i = l ? parseFloat(l[1]) : 0, u = -i, y = Et.useMemo(() => {
|
|
5206
|
+
const x = {
|
|
5182
5207
|
...p
|
|
5183
5208
|
// , ...timedStyle
|
|
5184
5209
|
};
|
|
5185
5210
|
return Object.entries(c).forEach(([g, M]) => {
|
|
5186
|
-
g === "transform" ?
|
|
5187
|
-
}),
|
|
5211
|
+
g === "transform" ? x[g] = `${x[g] || ""} ${M || ""}`.trim() : g in x && typeof x[g] == "number" && typeof M == "number" ? x[g] = x[g] * M : x[g] = M;
|
|
5212
|
+
}), x;
|
|
5188
5213
|
}, [p, c]);
|
|
5189
5214
|
if ((b = y.transform) != null && b.includes("rotate")) {
|
|
5190
|
-
const
|
|
5191
|
-
y.transform =
|
|
5215
|
+
const x = y.transform;
|
|
5216
|
+
y.transform = x.replace(
|
|
5192
5217
|
/rotate\(([^)]+)deg\)/,
|
|
5193
5218
|
(g, M) => `rotate(${parseFloat(M) - u}deg)`
|
|
5194
5219
|
);
|
|
5195
5220
|
}
|
|
5196
5221
|
const m = to(() => {
|
|
5197
|
-
const
|
|
5198
|
-
return `${g} ${M} ${
|
|
5199
|
-
}, [y,
|
|
5222
|
+
const x = y.transform || "", { translateX: g, translateY: M, scale: $, rotation: I, rotateY: k } = _o(x);
|
|
5223
|
+
return `${g} ${M} ${$} ${I || `rotate(${i}deg)`} ${k}`.trim();
|
|
5224
|
+
}, [y, i]);
|
|
5200
5225
|
let v = d;
|
|
5201
|
-
return
|
|
5226
|
+
return i > 0 && v.transform && v.transform.includes("translateX") && (v = {
|
|
5202
5227
|
...v,
|
|
5203
5228
|
transform: v.transform.replace(
|
|
5204
5229
|
/translateX\(([^)]+)\)/g,
|
|
5205
|
-
(
|
|
5230
|
+
(x, g) => `translateX(${parseFloat(g)}px)`
|
|
5206
5231
|
)
|
|
5207
5232
|
}), /* @__PURE__ */ f(
|
|
5208
5233
|
"div",
|
|
@@ -5241,8 +5266,8 @@ const Ho = () => ({
|
|
|
5241
5266
|
p && (s = p[p.length - 1]);
|
|
5242
5267
|
const c = t.match(/rotate\([^)]+\)/g);
|
|
5243
5268
|
c && (e = c[c.length - 1]);
|
|
5244
|
-
const
|
|
5245
|
-
return
|
|
5269
|
+
const h = t.match(/rotateY\([^)]+\)/g);
|
|
5270
|
+
return h && (a = h[h.length - 1]), { translateX: n, translateY: r, scale: s, rotation: e, rotateY: a };
|
|
5246
5271
|
};
|
|
5247
5272
|
w.linear;
|
|
5248
5273
|
w.linear;
|
|
@@ -5260,28 +5285,28 @@ const te = ({
|
|
|
5260
5285
|
children: s,
|
|
5261
5286
|
style: e = {}
|
|
5262
5287
|
}) => {
|
|
5263
|
-
var
|
|
5288
|
+
var i;
|
|
5264
5289
|
const a = lo(
|
|
5265
5290
|
ro(t),
|
|
5266
5291
|
n,
|
|
5267
5292
|
r,
|
|
5268
5293
|
!1,
|
|
5269
5294
|
!0
|
|
5270
|
-
), o = ((e == null ? void 0 : e.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), p = o ? parseFloat(o[1]) : 0, c = -p,
|
|
5295
|
+
), o = ((e == null ? void 0 : e.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), p = o ? parseFloat(o[1]) : 0, c = -p, h = Et.useMemo(() => ({
|
|
5271
5296
|
...a
|
|
5272
5297
|
}), [a]);
|
|
5273
|
-
if ((
|
|
5274
|
-
const u =
|
|
5275
|
-
|
|
5298
|
+
if ((i = h.transform) != null && i.includes("rotate")) {
|
|
5299
|
+
const u = h.transform;
|
|
5300
|
+
h.transform = u.replace(
|
|
5276
5301
|
/rotate\(([^)]+)deg\)/,
|
|
5277
5302
|
(y, m) => `rotate(${parseFloat(m) - c}deg)`
|
|
5278
5303
|
);
|
|
5279
5304
|
}
|
|
5280
5305
|
to(() => {
|
|
5281
|
-
const u =
|
|
5282
|
-
return `${y} ${m} ${v} ${b || `rotate(${p}deg)`} ${
|
|
5283
|
-
}, [
|
|
5284
|
-
let l =
|
|
5306
|
+
const u = h.transform || "", { translateX: y, translateY: m, scale: v, rotation: b, rotateY: x } = _o(u);
|
|
5307
|
+
return `${y} ${m} ${v} ${b || `rotate(${p}deg)`} ${x}`.trim();
|
|
5308
|
+
}, [h, p]);
|
|
5309
|
+
let l = h;
|
|
5285
5310
|
return p > 0 && l.transform && l.transform.includes("translateX") && (l = {
|
|
5286
5311
|
...l,
|
|
5287
5312
|
transform: l.transform.replace(
|
|
@@ -5292,7 +5317,7 @@ const te = ({
|
|
|
5292
5317
|
"div",
|
|
5293
5318
|
{
|
|
5294
5319
|
style: {
|
|
5295
|
-
overflow:
|
|
5320
|
+
overflow: h.overflow || "visible",
|
|
5296
5321
|
pointerEvents: "none",
|
|
5297
5322
|
...l
|
|
5298
5323
|
},
|
|
@@ -5300,7 +5325,7 @@ const te = ({
|
|
|
5300
5325
|
"div",
|
|
5301
5326
|
{
|
|
5302
5327
|
style: {
|
|
5303
|
-
...
|
|
5328
|
+
...h,
|
|
5304
5329
|
overflow: "visible",
|
|
5305
5330
|
pointerEvents: "none",
|
|
5306
5331
|
height: "max-content"
|
|
@@ -5310,7 +5335,7 @@ const te = ({
|
|
|
5310
5335
|
)
|
|
5311
5336
|
}
|
|
5312
5337
|
);
|
|
5313
|
-
},
|
|
5338
|
+
}, ho = (t) => {
|
|
5314
5339
|
if (typeof (t == null ? void 0 : t.ease) == "function") return t.ease;
|
|
5315
5340
|
switch (t == null ? void 0 : t.easing) {
|
|
5316
5341
|
case "ease-in":
|
|
@@ -5332,8 +5357,8 @@ const te = ({
|
|
|
5332
5357
|
keyframeAnimations: a
|
|
5333
5358
|
}) => {
|
|
5334
5359
|
const d = a ? [...a].reverse().find((y) => y.property.includes("maskReveal")) : void 0;
|
|
5335
|
-
let o = 1, p = o, c = r,
|
|
5336
|
-
return (s || 0) - e.display.from >= 0 && (d == null ? void 0 : d.property) === "maskRevealIn" ? (o = Math.min((s || 0) / d.durationInFrames, 1), p = Math.max(0, Math.min(1,
|
|
5360
|
+
let o = 1, p = o, c = r, h = 0, l = 0, i = n, u;
|
|
5361
|
+
return (s || 0) - e.display.from >= 0 && (d == null ? void 0 : d.property) === "maskRevealIn" ? (o = Math.min((s || 0) / d.durationInFrames, 1), p = Math.max(0, Math.min(1, ho(d)(o))), c = r * p) : (s || 0) - e.display.from >= 0 && (d == null ? void 0 : d.property) === "maskRevealCenterIn" ? (o = Math.min((s || 0) / d.durationInFrames, 1), p = Math.max(0, Math.min(1, ho(d)(o))), i = n, c = r, h = 0, l = 0, u = `circle(${Math.max(n, r) * p}px at 50% 50%)`) : (s || 0) - e.display.from >= 0 && (d == null ? void 0 : d.property) === "maskRevealCornerIn" && (o = Math.min((s || 0) / d.durationInFrames, 1), p = Math.max(0, Math.min(1, ho(d)(o))), i = n * p, c = r * p, h = n - i, l = 0), d ? /* @__PURE__ */ f(
|
|
5337
5362
|
"div",
|
|
5338
5363
|
{
|
|
5339
5364
|
style: {
|
|
@@ -5347,9 +5372,9 @@ const te = ({
|
|
|
5347
5372
|
{
|
|
5348
5373
|
style: {
|
|
5349
5374
|
position: "absolute",
|
|
5350
|
-
left:
|
|
5375
|
+
left: h,
|
|
5351
5376
|
top: l,
|
|
5352
|
-
width:
|
|
5377
|
+
width: i,
|
|
5353
5378
|
height: c,
|
|
5354
5379
|
overflow: "hidden",
|
|
5355
5380
|
clipPath: u
|
|
@@ -5358,33 +5383,33 @@ const te = ({
|
|
|
5358
5383
|
}
|
|
5359
5384
|
)
|
|
5360
5385
|
}
|
|
5361
|
-
) : /* @__PURE__ */ f(
|
|
5386
|
+
) : /* @__PURE__ */ f(kt, { children: t });
|
|
5362
5387
|
}, He = ({
|
|
5363
5388
|
item: t,
|
|
5364
5389
|
options: n
|
|
5365
5390
|
}) => {
|
|
5366
5391
|
var b;
|
|
5367
|
-
const { fps: r, resizeState: s, frame: e } = n, { id: a, details: d, animations: o } = t, { durationInFrames: p } =
|
|
5392
|
+
const { fps: r, resizeState: s, frame: e } = n, { id: a, details: d, animations: o } = t, { durationInFrames: p } = It(t.display, r), { animationIn: c, animationOut: h, animationTimed: l } = Nt(
|
|
5368
5393
|
o,
|
|
5369
5394
|
t,
|
|
5370
5395
|
e,
|
|
5371
5396
|
r
|
|
5372
|
-
),
|
|
5373
|
-
o != null && o.loop && o.loop.composition.forEach((
|
|
5397
|
+
), i = [];
|
|
5398
|
+
o != null && o.loop && o.loop.composition.forEach((x) => {
|
|
5374
5399
|
var g;
|
|
5375
|
-
(g =
|
|
5376
|
-
}), o != null && o.in && o.in.composition.forEach((
|
|
5400
|
+
(g = x.details) != null && g.fonts && i.push(...x.details.fonts);
|
|
5401
|
+
}), o != null && o.in && o.in.composition.forEach((x) => {
|
|
5377
5402
|
var g;
|
|
5378
|
-
(g =
|
|
5379
|
-
}), o != null && o.out && o.out.composition.forEach((
|
|
5403
|
+
(g = x.details) != null && g.fonts && i.push(...x.details.fonts);
|
|
5404
|
+
}), o != null && o.out && o.out.composition.forEach((x) => {
|
|
5380
5405
|
var g;
|
|
5381
|
-
(g =
|
|
5406
|
+
(g = x.details) != null && g.fonts && i.push(...x.details.fonts);
|
|
5382
5407
|
});
|
|
5383
5408
|
const u = s == null ? void 0 : s[t.id], y = (u == null ? void 0 : u.width) ?? d.width, m = (u == null ? void 0 : u.height) ?? d.height, v = /* @__PURE__ */ f(
|
|
5384
5409
|
Jt,
|
|
5385
5410
|
{
|
|
5386
5411
|
animationIn: c,
|
|
5387
|
-
animationOut:
|
|
5412
|
+
animationOut: h,
|
|
5388
5413
|
durationInFrames: p,
|
|
5389
5414
|
style: d,
|
|
5390
5415
|
children: /* @__PURE__ */ f(
|
|
@@ -5416,17 +5441,17 @@ const te = ({
|
|
|
5416
5441
|
)
|
|
5417
5442
|
}
|
|
5418
5443
|
);
|
|
5419
|
-
return
|
|
5444
|
+
return gt({ item: t, options: n, children: v });
|
|
5420
5445
|
}, _e = ({
|
|
5421
5446
|
item: t,
|
|
5422
5447
|
options: n
|
|
5423
5448
|
}) => {
|
|
5424
|
-
const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } =
|
|
5449
|
+
const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } = It(t.display, r), { animationIn: p, animationOut: c } = Nt(
|
|
5425
5450
|
d,
|
|
5426
5451
|
t,
|
|
5427
5452
|
e,
|
|
5428
5453
|
r
|
|
5429
|
-
),
|
|
5454
|
+
), h = s == null ? void 0 : s[t.id], l = (h == null ? void 0 : h.width) ?? a.radius, i = /* @__PURE__ */ f(
|
|
5430
5455
|
Jt,
|
|
5431
5456
|
{
|
|
5432
5457
|
durationInFrames: o,
|
|
@@ -5442,20 +5467,20 @@ const te = ({
|
|
|
5442
5467
|
)
|
|
5443
5468
|
}
|
|
5444
5469
|
);
|
|
5445
|
-
return
|
|
5470
|
+
return gt({ item: t, options: n, children: i });
|
|
5446
5471
|
}, Ze = ({
|
|
5447
5472
|
item: t,
|
|
5448
5473
|
options: n
|
|
5449
5474
|
}) => {
|
|
5450
|
-
const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } =
|
|
5475
|
+
const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } = It(t.display, r), { animationIn: p, animationOut: c } = Nt(
|
|
5451
5476
|
d,
|
|
5452
5477
|
t,
|
|
5453
5478
|
e,
|
|
5454
5479
|
r
|
|
5455
|
-
),
|
|
5480
|
+
), h = s == null ? void 0 : s[t.id];
|
|
5456
5481
|
let l = a.length;
|
|
5457
|
-
|
|
5458
|
-
const
|
|
5482
|
+
h != null && h.width ? l = h.width : h != null && h.height && (l = h.height * 2 / Math.sqrt(3));
|
|
5483
|
+
const i = /* @__PURE__ */ f(
|
|
5459
5484
|
Jt,
|
|
5460
5485
|
{
|
|
5461
5486
|
durationInFrames: o,
|
|
@@ -5472,36 +5497,36 @@ const te = ({
|
|
|
5472
5497
|
)
|
|
5473
5498
|
}
|
|
5474
5499
|
);
|
|
5475
|
-
return
|
|
5476
|
-
},
|
|
5500
|
+
return gt({ item: t, options: n, children: i });
|
|
5501
|
+
}, Ae = ({
|
|
5477
5502
|
item: t,
|
|
5478
5503
|
options: n
|
|
5479
5504
|
}) => {
|
|
5480
|
-
const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } =
|
|
5505
|
+
const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } = It(t.display, r), { animationIn: p, animationOut: c } = Nt(
|
|
5481
5506
|
d,
|
|
5482
5507
|
t,
|
|
5483
5508
|
e,
|
|
5484
5509
|
r
|
|
5485
|
-
),
|
|
5486
|
-
const
|
|
5487
|
-
let
|
|
5510
|
+
), h = s == null ? void 0 : s[t.id], l = (m, v, b) => {
|
|
5511
|
+
const x = b, g = b, M = Math.PI * 2 / (m * 2);
|
|
5512
|
+
let $ = Number.POSITIVE_INFINITY, I = Number.NEGATIVE_INFINITY, k = Number.POSITIVE_INFINITY, S = Number.NEGATIVE_INFINITY;
|
|
5488
5513
|
for (let Y = 0; Y < m * 2; Y++) {
|
|
5489
|
-
const N = Y % 2 === 0 ? b : v,
|
|
5490
|
-
|
|
5514
|
+
const N = Y % 2 === 0 ? b : v, V = M * Y - Math.PI / 2, F = x + N * Math.cos(V), X = g + N * Math.sin(V);
|
|
5515
|
+
$ = Math.min($, F), I = Math.max(I, F), k = Math.min(k, X), S = Math.max(S, X);
|
|
5491
5516
|
}
|
|
5492
5517
|
return {
|
|
5493
|
-
width: I -
|
|
5518
|
+
width: I - $,
|
|
5494
5519
|
height: S - k
|
|
5495
5520
|
};
|
|
5496
5521
|
};
|
|
5497
|
-
let
|
|
5498
|
-
if (
|
|
5522
|
+
let i = a.outerRadius, u = a.innerRadius;
|
|
5523
|
+
if (h != null && h.width || h != null && h.height) {
|
|
5499
5524
|
const m = l(
|
|
5500
5525
|
a.points || 5,
|
|
5501
5526
|
a.innerRadius || 0,
|
|
5502
5527
|
a.outerRadius || 0
|
|
5503
|
-
), v =
|
|
5504
|
-
|
|
5528
|
+
), v = h != null && h.width ? h.width / m.width : 1, b = h != null && h.height ? h.height / m.height : 1, x = Math.max(v, b);
|
|
5529
|
+
i = (a.outerRadius || 0) * x, u = (a.innerRadius || 0) * x;
|
|
5505
5530
|
}
|
|
5506
5531
|
const y = /* @__PURE__ */ f(
|
|
5507
5532
|
Jt,
|
|
@@ -5515,41 +5540,41 @@ const te = ({
|
|
|
5515
5540
|
{
|
|
5516
5541
|
points: a.points || 5,
|
|
5517
5542
|
innerRadius: u ?? 0,
|
|
5518
|
-
outerRadius:
|
|
5543
|
+
outerRadius: i ?? 0,
|
|
5519
5544
|
fill: a.backgroundColor
|
|
5520
5545
|
}
|
|
5521
5546
|
)
|
|
5522
5547
|
}
|
|
5523
5548
|
);
|
|
5524
|
-
return
|
|
5525
|
-
},
|
|
5549
|
+
return gt({ item: t, options: n, children: y });
|
|
5550
|
+
}, Qe = ({
|
|
5526
5551
|
item: t,
|
|
5527
5552
|
options: n
|
|
5528
5553
|
}) => {
|
|
5529
|
-
const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { animationIn: o, animationOut: p } =
|
|
5554
|
+
const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { animationIn: o, animationOut: p } = Nt(
|
|
5530
5555
|
d,
|
|
5531
5556
|
t,
|
|
5532
5557
|
e,
|
|
5533
5558
|
r
|
|
5534
|
-
), { durationInFrames: c } =
|
|
5535
|
-
const v = m, b = m,
|
|
5536
|
-
let g = Number.POSITIVE_INFINITY, M = Number.NEGATIVE_INFINITY,
|
|
5559
|
+
), { durationInFrames: c } = It(t.display, r), h = s == null ? void 0 : s[t.id], l = (y, m) => {
|
|
5560
|
+
const v = m, b = m, x = Math.PI * 2 / y;
|
|
5561
|
+
let g = Number.POSITIVE_INFINITY, M = Number.NEGATIVE_INFINITY, $ = Number.POSITIVE_INFINITY, I = Number.NEGATIVE_INFINITY;
|
|
5537
5562
|
for (let k = 0; k < y; k++) {
|
|
5538
|
-
const S =
|
|
5539
|
-
g = Math.min(g, Y), M = Math.max(M, Y),
|
|
5563
|
+
const S = x * k - Math.PI / 2, Y = v + m * Math.cos(S), N = b + m * Math.sin(S);
|
|
5564
|
+
g = Math.min(g, Y), M = Math.max(M, Y), $ = Math.min($, N), I = Math.max(I, N);
|
|
5540
5565
|
}
|
|
5541
5566
|
return {
|
|
5542
5567
|
width: M - g,
|
|
5543
|
-
height: I -
|
|
5568
|
+
height: I - $
|
|
5544
5569
|
};
|
|
5545
5570
|
};
|
|
5546
|
-
let
|
|
5547
|
-
if (
|
|
5571
|
+
let i = a.radius;
|
|
5572
|
+
if (h != null && h.width || h != null && h.height) {
|
|
5548
5573
|
const y = l(
|
|
5549
5574
|
a.points || 3,
|
|
5550
5575
|
a.radius || 0
|
|
5551
|
-
), m =
|
|
5552
|
-
|
|
5576
|
+
), m = h != null && h.width ? h.width / y.width : 1, v = h != null && h.height ? h.height / y.height : 1, b = Math.max(m, v);
|
|
5577
|
+
i = (a.radius || 0) * b;
|
|
5553
5578
|
}
|
|
5554
5579
|
const u = /* @__PURE__ */ f(
|
|
5555
5580
|
Jt,
|
|
@@ -5562,23 +5587,23 @@ const te = ({
|
|
|
5562
5587
|
In,
|
|
5563
5588
|
{
|
|
5564
5589
|
points: a.points || 3,
|
|
5565
|
-
radius:
|
|
5590
|
+
radius: i ?? 0,
|
|
5566
5591
|
fill: a.backgroundColor
|
|
5567
5592
|
}
|
|
5568
5593
|
)
|
|
5569
5594
|
}
|
|
5570
5595
|
);
|
|
5571
|
-
return
|
|
5596
|
+
return gt({ item: t, options: n, children: u });
|
|
5572
5597
|
}, Ue = ({
|
|
5573
5598
|
item: t,
|
|
5574
5599
|
options: n
|
|
5575
5600
|
}) => {
|
|
5576
|
-
const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } =
|
|
5601
|
+
const { fps: r, resizeState: s, frame: e } = n, { details: a, animations: d } = t, { durationInFrames: o } = It(t.display, r), { animationIn: p, animationOut: c } = Nt(
|
|
5577
5602
|
d,
|
|
5578
5603
|
t,
|
|
5579
5604
|
e,
|
|
5580
5605
|
r
|
|
5581
|
-
),
|
|
5606
|
+
), h = s == null ? void 0 : s[t.id], l = h != null && h.width ? h.width / 2 : a.rx, i = h != null && h.height ? h.height / 2 : a.ry, u = /* @__PURE__ */ f(
|
|
5582
5607
|
Jt,
|
|
5583
5608
|
{
|
|
5584
5609
|
durationInFrames: o,
|
|
@@ -5589,7 +5614,7 @@ const te = ({
|
|
|
5589
5614
|
kn,
|
|
5590
5615
|
{
|
|
5591
5616
|
rx: l ?? 0,
|
|
5592
|
-
ry:
|
|
5617
|
+
ry: i ?? 0,
|
|
5593
5618
|
fill: a.backgroundColor,
|
|
5594
5619
|
stroke: a.stroke,
|
|
5595
5620
|
strokeWidth: a.strokeWidth
|
|
@@ -5597,7 +5622,7 @@ const te = ({
|
|
|
5597
5622
|
)
|
|
5598
5623
|
}
|
|
5599
5624
|
);
|
|
5600
|
-
return
|
|
5625
|
+
return gt({ item: t, options: n, children: u });
|
|
5601
5626
|
}, Zo = () => ({
|
|
5602
5627
|
scale: (t) => ({ transform: `scale(${t})` }),
|
|
5603
5628
|
opacity: (t) => ({ opacity: t }),
|
|
@@ -5650,15 +5675,15 @@ const te = ({
|
|
|
5650
5675
|
r.push(e * s + n);
|
|
5651
5676
|
return r;
|
|
5652
5677
|
}, ne = (t, n, r, s = !1) => {
|
|
5653
|
-
const { from: e, to: a, ease: d } = n, o = n.durationInFrames || 30, p = Number(e), c = Number(a),
|
|
5678
|
+
const { from: e, to: a, ease: d } = n, o = n.durationInFrames || 30, p = Number(e), c = Number(a), h = Math.max(1, Number(o));
|
|
5654
5679
|
if (isNaN(p) || isNaN(c))
|
|
5655
5680
|
return p;
|
|
5656
|
-
const l = n.delay || 0,
|
|
5681
|
+
const l = n.delay || 0, i = s ? [r - h - l, r - l] : [l, l + h];
|
|
5657
5682
|
if (n.property.includes("shake")) {
|
|
5658
5683
|
const u = s ? Ro(
|
|
5659
|
-
|
|
5660
|
-
r -
|
|
5661
|
-
) : Ro(
|
|
5684
|
+
h,
|
|
5685
|
+
r - h - l
|
|
5686
|
+
) : Ro(h, l);
|
|
5662
5687
|
return W(
|
|
5663
5688
|
t,
|
|
5664
5689
|
u,
|
|
@@ -5670,7 +5695,7 @@ const te = ({
|
|
|
5670
5695
|
}
|
|
5671
5696
|
);
|
|
5672
5697
|
}
|
|
5673
|
-
return W(t,
|
|
5698
|
+
return W(t, i, [p, c], {
|
|
5674
5699
|
extrapolateLeft: "clamp",
|
|
5675
5700
|
extrapolateRight: "clamp",
|
|
5676
5701
|
easing: d
|
|
@@ -5678,17 +5703,17 @@ const te = ({
|
|
|
5678
5703
|
}, Xo = (t, n, r, s) => {
|
|
5679
5704
|
const { property: e } = t, a = ne(n, t, r, s), d = Zo();
|
|
5680
5705
|
return (d[e] || d.default)(a);
|
|
5681
|
-
}, uo = (t, n, r, s = !1, e = !1) =>
|
|
5706
|
+
}, uo = (t, n, r, s = !1, e = !1) => Et.useMemo(() => {
|
|
5682
5707
|
if (t.length === 0) return {};
|
|
5683
5708
|
const a = t.filter(
|
|
5684
5709
|
(d) => d.from !== void 0 && d.to !== void 0
|
|
5685
5710
|
);
|
|
5686
5711
|
if (a.length !== t.length && console.error("Some animations are invalid and will be ignored"), e) {
|
|
5687
5712
|
const d = [], o = {};
|
|
5688
|
-
a.reverse().forEach((
|
|
5689
|
-
const l = Xo(
|
|
5690
|
-
if (
|
|
5691
|
-
const u =
|
|
5713
|
+
a.reverse().forEach((h) => {
|
|
5714
|
+
const l = Xo(h, r, n, !1);
|
|
5715
|
+
if (h.persist === !0 && r - (h.delay || 0) >= h.durationInFrames) {
|
|
5716
|
+
const u = h.to, y = Zo(), m = (y[h.property] || y.default)(u);
|
|
5692
5717
|
Object.keys(m).forEach((v) => {
|
|
5693
5718
|
v === "transform" ? o[v] = o[v] ? {
|
|
5694
5719
|
[v]: `${o[v][v]} ${m[v]}`
|
|
@@ -5698,14 +5723,14 @@ const te = ({
|
|
|
5698
5723
|
d.push(l);
|
|
5699
5724
|
});
|
|
5700
5725
|
const c = { ...d.reduce(
|
|
5701
|
-
(
|
|
5702
|
-
|
|
5703
|
-
}),
|
|
5726
|
+
(h, l) => (Object.keys(l).forEach((i) => {
|
|
5727
|
+
i === "transform" || i === "filter" ? h[i] = h[i] ? `${h[i]} ${l[i]}` : l[i] : h[i] = l[i];
|
|
5728
|
+
}), h),
|
|
5704
5729
|
{}
|
|
5705
5730
|
) };
|
|
5706
|
-
return Object.keys(o).forEach((
|
|
5707
|
-
const l = o[
|
|
5708
|
-
|
|
5731
|
+
return Object.keys(o).forEach((h) => {
|
|
5732
|
+
const l = o[h];
|
|
5733
|
+
h === "transform" && l.transform ? c.transform = c.transform ? `${c.transform} ${l.transform}` : l.transform : l[h] !== void 0 && (c[h] = l[h]);
|
|
5709
5734
|
}), c;
|
|
5710
5735
|
} else
|
|
5711
5736
|
return a.map(
|
|
@@ -5737,48 +5762,48 @@ const te = ({
|
|
|
5737
5762
|
s,
|
|
5738
5763
|
e,
|
|
5739
5764
|
!0
|
|
5740
|
-
),
|
|
5765
|
+
), h = uo(
|
|
5741
5766
|
qt(r),
|
|
5742
5767
|
s,
|
|
5743
5768
|
e,
|
|
5744
5769
|
!1,
|
|
5745
5770
|
!0
|
|
5746
|
-
), l =
|
|
5771
|
+
), l = Et.useMemo(() => {
|
|
5747
5772
|
var k;
|
|
5748
|
-
const M = Object.keys(p).length > 0,
|
|
5773
|
+
const M = Object.keys(p).length > 0, $ = (k = qt(t)) == null ? void 0 : k.reduce(
|
|
5749
5774
|
(S, Y) => Math.min(S, Y.delay || 0),
|
|
5750
5775
|
1 / 0
|
|
5751
|
-
), I = e - (
|
|
5776
|
+
), I = e - ($ || 0);
|
|
5752
5777
|
return M && I < 0 ? { visibility: a ? "visible" : "hidden" } : p;
|
|
5753
|
-
}, [p, e, t, a]),
|
|
5778
|
+
}, [p, e, t, a]), i = Et.useMemo(() => {
|
|
5754
5779
|
const M = qt(n);
|
|
5755
5780
|
if (!M || M.length === 0) return {};
|
|
5756
|
-
let
|
|
5781
|
+
let $ = 0;
|
|
5757
5782
|
M.forEach((k) => {
|
|
5758
5783
|
const S = (k.durationInFrames || 0) + (k.delay || 0);
|
|
5759
|
-
S >
|
|
5784
|
+
S > $ && ($ = S);
|
|
5760
5785
|
});
|
|
5761
|
-
const I = Math.max(0, s -
|
|
5762
|
-
return e < I ? {} : e
|
|
5763
|
-
}, [c, e, n, s, a]), y = ((o == null ? void 0 : o.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), m = y ? parseFloat(y[1]) : 0, v = -m, b =
|
|
5786
|
+
const I = Math.max(0, s - $);
|
|
5787
|
+
return e < I ? {} : e > s ? { visibility: a ? "visible" : "hidden" } : c;
|
|
5788
|
+
}, [c, e, n, s, a]), y = ((o == null ? void 0 : o.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), m = y ? parseFloat(y[1]) : 0, v = -m, b = Et.useMemo(() => {
|
|
5764
5789
|
const M = {
|
|
5765
5790
|
...l,
|
|
5766
|
-
...
|
|
5791
|
+
...h
|
|
5767
5792
|
};
|
|
5768
|
-
return Object.entries(
|
|
5769
|
-
|
|
5793
|
+
return Object.entries(i).forEach(([$, I]) => {
|
|
5794
|
+
$ === "transform" ? M[$] = `${M[$] || ""} ${I || ""}`.trim() : $ in M && typeof M[$] == "number" && typeof I == "number" ? M[$] = M[$] * I : M[$] = I;
|
|
5770
5795
|
}), M;
|
|
5771
|
-
}, [l,
|
|
5796
|
+
}, [l, h, i]);
|
|
5772
5797
|
if ((g = b.transform) != null && g.includes("rotate")) {
|
|
5773
5798
|
const M = b.transform;
|
|
5774
5799
|
b.transform = M.replace(
|
|
5775
5800
|
/rotate\(([^)]+)deg\)/,
|
|
5776
|
-
(
|
|
5801
|
+
($, I) => `rotate(${parseFloat(I) - v}deg)`
|
|
5777
5802
|
);
|
|
5778
5803
|
}
|
|
5779
|
-
const
|
|
5780
|
-
const M = b.transform || "", { translateX:
|
|
5781
|
-
return `${
|
|
5804
|
+
const x = to(() => {
|
|
5805
|
+
const M = b.transform || "", { translateX: $, translateY: I, scale: k, rotation: S, rotateY: Y } = ee(M);
|
|
5806
|
+
return `${$} ${I} ${k} ${S || `rotate(${m}deg)`} ${Y}`.trim();
|
|
5782
5807
|
}, [b, m]);
|
|
5783
5808
|
return /* @__PURE__ */ f(
|
|
5784
5809
|
"div",
|
|
@@ -5796,7 +5821,7 @@ const te = ({
|
|
|
5796
5821
|
...b,
|
|
5797
5822
|
rotate: `${v}deg`,
|
|
5798
5823
|
overflow: "visible",
|
|
5799
|
-
transform:
|
|
5824
|
+
transform: x,
|
|
5800
5825
|
pointerEvents: "none"
|
|
5801
5826
|
},
|
|
5802
5827
|
children: d
|
|
@@ -5814,35 +5839,35 @@ const te = ({
|
|
|
5814
5839
|
p && (s = p[p.length - 1]);
|
|
5815
5840
|
const c = t.match(/rotate\([^)]+\)/g);
|
|
5816
5841
|
c && (e = c[c.length - 1]);
|
|
5817
|
-
const
|
|
5818
|
-
return
|
|
5842
|
+
const h = t.match(/rotateY\([^)]+\)/g);
|
|
5843
|
+
return h && (a = h[h.length - 1]), { translateX: n, translateY: r, scale: s, rotation: e, rotateY: a };
|
|
5819
5844
|
};
|
|
5820
5845
|
w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.linear, w.elastic(1), w.elastic(1), w.elastic(1), w.elastic(1), w.linear, w.linear, w.linear, w.linear, w.ease, w.ease, w.ease, w.ease, w.ease, w.ease, w.ease, w.ease, w.ease, w.ease;
|
|
5821
5846
|
function Ke({
|
|
5822
5847
|
item: t,
|
|
5823
5848
|
options: n
|
|
5824
5849
|
}) {
|
|
5825
|
-
var N,
|
|
5826
|
-
const { fps: r, frame: s } = n, { details: e, animations: a } = t, { width: d, height: o, strokeWidth: p, strokeBackground: c, strokeColors:
|
|
5850
|
+
var N, V, F, X, P;
|
|
5851
|
+
const { fps: r, frame: s } = n, { details: e, animations: a } = t, { width: d, height: o, strokeWidth: p, strokeBackground: c, strokeColors: h } = e, { animationIn: l, animationOut: i } = Nt(a, t), { durationInFrames: u } = It(t.display, r), y = d, m = o, v = p, b = y, x = m, g = y, M = m, $ = b + x + g + M;
|
|
5827
5852
|
let I = 0;
|
|
5828
5853
|
if (((N = a == null ? void 0 : a.out) == null ? void 0 : N.name) === "progressSquareAnimationOut") {
|
|
5829
|
-
const
|
|
5854
|
+
const G = (V = a == null ? void 0 : a.out) == null ? void 0 : V.composition[0].durationInFrames, E = Math.max(
|
|
5830
5855
|
t.display.to * r / 1e3 - (s || 0) - 1,
|
|
5831
5856
|
0
|
|
5832
5857
|
);
|
|
5833
|
-
I = Math.min(
|
|
5858
|
+
I = Math.min(E / G * 100, 100) / 100, E > G && (I = 1);
|
|
5834
5859
|
}
|
|
5835
5860
|
if (((F = a == null ? void 0 : a.in) == null ? void 0 : F.name) === "progressSquareAnimationIn") {
|
|
5836
|
-
const { from:
|
|
5861
|
+
const { from: G } = It(
|
|
5837
5862
|
{
|
|
5838
5863
|
from: t.display.from,
|
|
5839
5864
|
to: t.display.to
|
|
5840
5865
|
},
|
|
5841
5866
|
r
|
|
5842
|
-
),
|
|
5843
|
-
O <
|
|
5867
|
+
), E = (X = a == null ? void 0 : a.in) == null ? void 0 : X.composition[0].durationInFrames, O = Math.max((s || 0) - G, 0);
|
|
5868
|
+
O < E ? I = Math.min(O / E * 100, 100) / 100 : ((P = a == null ? void 0 : a.out) == null ? void 0 : P.name) !== "progressSquareAnimationOut" && (I = 1);
|
|
5844
5869
|
}
|
|
5845
|
-
const k = I * 100 / 100 *
|
|
5870
|
+
const k = I * 100 / 100 * $, S = h[0] || "#4A90E2", Y = /* @__PURE__ */ f(
|
|
5846
5871
|
re,
|
|
5847
5872
|
{
|
|
5848
5873
|
style: Kt(
|
|
@@ -5853,9 +5878,9 @@ function Ke({
|
|
|
5853
5878
|
}
|
|
5854
5879
|
),
|
|
5855
5880
|
animationIn: l,
|
|
5856
|
-
animationOut:
|
|
5881
|
+
animationOut: i,
|
|
5857
5882
|
durationInFrames: u,
|
|
5858
|
-
children: /* @__PURE__ */
|
|
5883
|
+
children: /* @__PURE__ */ vt(
|
|
5859
5884
|
"div",
|
|
5860
5885
|
{
|
|
5861
5886
|
style: {
|
|
@@ -5882,7 +5907,7 @@ function Ke({
|
|
|
5882
5907
|
}
|
|
5883
5908
|
}
|
|
5884
5909
|
),
|
|
5885
|
-
/* @__PURE__ */
|
|
5910
|
+
/* @__PURE__ */ vt("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
|
|
5886
5911
|
/* @__PURE__ */ f(
|
|
5887
5912
|
"div",
|
|
5888
5913
|
{
|
|
@@ -5904,12 +5929,12 @@ function Ke({
|
|
|
5904
5929
|
top: 0,
|
|
5905
5930
|
right: 0,
|
|
5906
5931
|
width: v,
|
|
5907
|
-
height: Math.min(k - b,
|
|
5932
|
+
height: Math.min(k - b, x),
|
|
5908
5933
|
backgroundColor: S
|
|
5909
5934
|
}
|
|
5910
5935
|
}
|
|
5911
5936
|
),
|
|
5912
|
-
k > b +
|
|
5937
|
+
k > b + x && /* @__PURE__ */ f(
|
|
5913
5938
|
"div",
|
|
5914
5939
|
{
|
|
5915
5940
|
style: {
|
|
@@ -5917,7 +5942,7 @@ function Ke({
|
|
|
5917
5942
|
bottom: 0,
|
|
5918
5943
|
right: 0,
|
|
5919
5944
|
width: Math.min(
|
|
5920
|
-
k - b -
|
|
5945
|
+
k - b - x,
|
|
5921
5946
|
g
|
|
5922
5947
|
),
|
|
5923
5948
|
height: v,
|
|
@@ -5925,7 +5950,7 @@ function Ke({
|
|
|
5925
5950
|
}
|
|
5926
5951
|
}
|
|
5927
5952
|
),
|
|
5928
|
-
k > b +
|
|
5953
|
+
k > b + x + g && /* @__PURE__ */ f(
|
|
5929
5954
|
"div",
|
|
5930
5955
|
{
|
|
5931
5956
|
style: {
|
|
@@ -5934,7 +5959,7 @@ function Ke({
|
|
|
5934
5959
|
left: 0,
|
|
5935
5960
|
width: v,
|
|
5936
5961
|
height: Math.min(
|
|
5937
|
-
k - b -
|
|
5962
|
+
k - b - x - g,
|
|
5938
5963
|
M
|
|
5939
5964
|
),
|
|
5940
5965
|
backgroundColor: S
|
|
@@ -5947,39 +5972,39 @@ function Ke({
|
|
|
5947
5972
|
)
|
|
5948
5973
|
}
|
|
5949
5974
|
);
|
|
5950
|
-
return
|
|
5975
|
+
return gt({ item: t, options: n, children: Y });
|
|
5951
5976
|
}
|
|
5952
|
-
const
|
|
5977
|
+
const Ao = (t) => {
|
|
5953
5978
|
const { trackItemIds: n, transitionsMap: r, trackItemsMap: s } = t, e = /* @__PURE__ */ new Map();
|
|
5954
5979
|
Object.values(r).forEach((c) => {
|
|
5955
5980
|
var u, y;
|
|
5956
|
-
const { fromId:
|
|
5957
|
-
|
|
5981
|
+
const { fromId: h, toId: l, kind: i } = c;
|
|
5982
|
+
i !== "none" && (e.has(h) || e.set(h, []), e.has(l) || e.set(l, []), (u = e.get(h)) == null || u.push(c), (y = e.get(l)) == null || y.push(c));
|
|
5958
5983
|
});
|
|
5959
5984
|
const a = [], d = /* @__PURE__ */ new Set(), o = (c) => {
|
|
5960
|
-
const
|
|
5985
|
+
const h = [];
|
|
5961
5986
|
let l = c;
|
|
5962
5987
|
for (; l && !d.has(l); ) {
|
|
5963
5988
|
d.add(l);
|
|
5964
|
-
const
|
|
5965
|
-
|
|
5989
|
+
const i = s[l];
|
|
5990
|
+
h.push(i);
|
|
5966
5991
|
const u = Object.values(r).find(
|
|
5967
5992
|
(y) => y.fromId === l && y.kind !== "none"
|
|
5968
5993
|
);
|
|
5969
5994
|
if (!u) break;
|
|
5970
|
-
|
|
5995
|
+
h.push(u), l = u.toId;
|
|
5971
5996
|
}
|
|
5972
|
-
return
|
|
5997
|
+
return h;
|
|
5973
5998
|
}, p = Object.values(r).filter(
|
|
5974
5999
|
(c) => c.kind !== "none"
|
|
5975
6000
|
);
|
|
5976
6001
|
for (const c of n)
|
|
5977
|
-
if (!d.has(c) && (!e.has(c) || !p.some((
|
|
5978
|
-
const
|
|
5979
|
-
|
|
6002
|
+
if (!d.has(c) && (!e.has(c) || !p.some((h) => h.toId === c))) {
|
|
6003
|
+
const h = o(c);
|
|
6004
|
+
h.length > 0 && a.push(h);
|
|
5980
6005
|
}
|
|
5981
6006
|
return a.forEach((c) => {
|
|
5982
|
-
c.sort((
|
|
6007
|
+
c.sort((h, l) => "display" in h && "display" in l ? h.display.from - l.display.from : 0);
|
|
5983
6008
|
}), a;
|
|
5984
6009
|
};
|
|
5985
6010
|
function Je({
|
|
@@ -5995,44 +6020,44 @@ function Je({
|
|
|
5995
6020
|
transitionsTemplateMap: o,
|
|
5996
6021
|
itemsTemplateMap: p,
|
|
5997
6022
|
size: c,
|
|
5998
|
-
fps:
|
|
6023
|
+
fps: h,
|
|
5999
6024
|
structure: l,
|
|
6000
|
-
frame:
|
|
6025
|
+
frame: i,
|
|
6001
6026
|
mergedTrackItemsDeatilsMap: u
|
|
6002
|
-
} = n, y = Tt(p || {}), { trim: m, display: v } = t, b =
|
|
6027
|
+
} = n, y = Tt(p || {}), { trim: m, display: v } = t, b = Ao({
|
|
6003
6028
|
trackItemIds: Tt(d || []),
|
|
6004
6029
|
transitionsMap: Tt(o || {}),
|
|
6005
6030
|
trackItemsMap: y || {}
|
|
6006
|
-
}),
|
|
6031
|
+
}), x = (m == null ? void 0 : m.from) || 0;
|
|
6007
6032
|
d == null || d.filter((M) => !!y[M]).forEach((M) => {
|
|
6008
|
-
const
|
|
6009
|
-
|
|
6033
|
+
const $ = y[M];
|
|
6034
|
+
$ != null && $.display && ($.display.from = $.display.from - x, $.display.to = $.display.to - x);
|
|
6010
6035
|
});
|
|
6011
|
-
const g = b.map((M,
|
|
6012
|
-
var S, Y, N,
|
|
6036
|
+
const g = b.map((M, $) => {
|
|
6037
|
+
var S, Y, N, V;
|
|
6013
6038
|
if (M.length === 1) {
|
|
6014
6039
|
if (!M[0]) return null;
|
|
6015
6040
|
const F = y[(S = M[0]) == null ? void 0 : S.id];
|
|
6016
6041
|
if (!F) return null;
|
|
6017
|
-
let X = {}, P = {},
|
|
6042
|
+
let X = {}, P = {}, G = [];
|
|
6018
6043
|
if (F.type === "template") {
|
|
6019
6044
|
const O = l == null ? void 0 : l.find((C) => C.id === F.id);
|
|
6020
|
-
|
|
6045
|
+
G = (O == null ? void 0 : O.items) || [];
|
|
6021
6046
|
for (const C in u)
|
|
6022
6047
|
O != null && O.items.includes(C) && (P[C] = {
|
|
6023
6048
|
...u[C]
|
|
6024
6049
|
});
|
|
6025
6050
|
if (r)
|
|
6026
6051
|
return r(F, {
|
|
6027
|
-
fps:
|
|
6052
|
+
fps: h,
|
|
6028
6053
|
handleTextChange: a,
|
|
6029
6054
|
onTextBlur: e,
|
|
6030
6055
|
editableTextId: s,
|
|
6031
|
-
itemsTemplateIds:
|
|
6056
|
+
itemsTemplateIds: G,
|
|
6032
6057
|
itemsTemplateMap: P,
|
|
6033
6058
|
transitionsTemplateMap: X,
|
|
6034
6059
|
itemStructure: l == null ? void 0 : l.find((C) => C.id === F.id),
|
|
6035
|
-
frame: (
|
|
6060
|
+
frame: (i ?? 0) - v.from * h / 1e3,
|
|
6036
6061
|
size: {
|
|
6037
6062
|
width: ((Y = F.details) == null ? void 0 : Y.width) || 0,
|
|
6038
6063
|
height: ((N = F.details) == null ? void 0 : N.height) || 0
|
|
@@ -6042,25 +6067,25 @@ function Je({
|
|
|
6042
6067
|
mergedTrackItemsDeatilsMap: u
|
|
6043
6068
|
});
|
|
6044
6069
|
}
|
|
6045
|
-
let
|
|
6070
|
+
let E = !1;
|
|
6046
6071
|
return r ? r(F, {
|
|
6047
6072
|
onTextBlur: e,
|
|
6048
6073
|
handleTextChange: a,
|
|
6049
6074
|
fps: n.fps,
|
|
6050
6075
|
editableTextId: s,
|
|
6051
|
-
active:
|
|
6076
|
+
active: E,
|
|
6052
6077
|
itemsTemplateIds: d,
|
|
6053
6078
|
itemsTemplateMap: y,
|
|
6054
6079
|
transitionsTemplateMap: o,
|
|
6055
6080
|
isTransition: !1,
|
|
6056
6081
|
size: c,
|
|
6057
|
-
frame: (
|
|
6082
|
+
frame: (i ?? 0) - v.from * h / 1e3
|
|
6058
6083
|
}) : null;
|
|
6059
6084
|
}
|
|
6060
|
-
const I = y[M[0].id], k = (((
|
|
6061
|
-
return /* @__PURE__ */ f(
|
|
6085
|
+
const I = y[M[0].id], k = (((V = I == null ? void 0 : I.display) == null ? void 0 : V.from) || 0) / 1e3 * n.fps;
|
|
6086
|
+
return /* @__PURE__ */ f(Eo, { from: k, children: M.map((F) => {
|
|
6062
6087
|
if (F.type === "transition") {
|
|
6063
|
-
const X = F.duration / 1e3 *
|
|
6088
|
+
const X = F.duration / 1e3 * h, P = To[F.kind];
|
|
6064
6089
|
return P ? P({
|
|
6065
6090
|
durationInFrames: X,
|
|
6066
6091
|
id: F.id,
|
|
@@ -6070,16 +6095,16 @@ function Je({
|
|
|
6070
6095
|
}) : null;
|
|
6071
6096
|
}
|
|
6072
6097
|
return r ? r(F, {
|
|
6073
|
-
fps:
|
|
6098
|
+
fps: h,
|
|
6074
6099
|
handleTextChange: a,
|
|
6075
6100
|
onTextBlur: e,
|
|
6076
6101
|
editableTextId: s,
|
|
6077
6102
|
isTransition: !0,
|
|
6078
6103
|
size: c
|
|
6079
6104
|
}) : null;
|
|
6080
|
-
}) },
|
|
6105
|
+
}) }, $);
|
|
6081
6106
|
});
|
|
6082
|
-
return
|
|
6107
|
+
return gt({ children: g, item: t, options: n });
|
|
6083
6108
|
}
|
|
6084
6109
|
function qe({
|
|
6085
6110
|
item: t,
|
|
@@ -6094,13 +6119,13 @@ function qe({
|
|
|
6094
6119
|
frame: o,
|
|
6095
6120
|
onTextBlur: p,
|
|
6096
6121
|
handleTextChange: c,
|
|
6097
|
-
itemStructure:
|
|
6098
|
-
} = n, { animations: l } = t, { durationInFrames:
|
|
6122
|
+
itemStructure: h
|
|
6123
|
+
} = n, { animations: l } = t, { durationInFrames: i } = It(t.display, d), { animationIn: u, animationOut: y, animationTimed: m } = Nt(
|
|
6099
6124
|
l,
|
|
6100
6125
|
t,
|
|
6101
6126
|
o,
|
|
6102
6127
|
d
|
|
6103
|
-
), v = Tt(a || {}),
|
|
6128
|
+
), v = Tt(a || {}), x = Ao({
|
|
6104
6129
|
trackItemIds: Tt(e || []),
|
|
6105
6130
|
transitionsMap: {},
|
|
6106
6131
|
trackItemsMap: v
|
|
@@ -6109,9 +6134,9 @@ function qe({
|
|
|
6109
6134
|
const S = v[I[0].id];
|
|
6110
6135
|
if (!S) return null;
|
|
6111
6136
|
let Y = k;
|
|
6112
|
-
if (
|
|
6113
|
-
const { tracks: N } =
|
|
6114
|
-
Y = N.length - N.findIndex((
|
|
6137
|
+
if (h) {
|
|
6138
|
+
const { tracks: N } = h;
|
|
6139
|
+
Y = N.length - N.findIndex((V) => V.items.includes(S.id));
|
|
6115
6140
|
}
|
|
6116
6141
|
return r ? r(S, {
|
|
6117
6142
|
fps: d,
|
|
@@ -6123,13 +6148,13 @@ function qe({
|
|
|
6123
6148
|
}) : null;
|
|
6124
6149
|
}
|
|
6125
6150
|
return null;
|
|
6126
|
-
}), g =
|
|
6127
|
-
|
|
6151
|
+
}), g = x && x.map((I) => I), M = (o || 0) - t.display.from * d / 1e3, $ = /* @__PURE__ */ f(
|
|
6152
|
+
At,
|
|
6128
6153
|
{
|
|
6129
6154
|
animationIn: u,
|
|
6130
6155
|
animationOut: y,
|
|
6131
6156
|
frame: M,
|
|
6132
|
-
durationInFrames:
|
|
6157
|
+
durationInFrames: i,
|
|
6133
6158
|
style: {
|
|
6134
6159
|
width: t.details.width,
|
|
6135
6160
|
height: t.details.height
|
|
@@ -6138,7 +6163,7 @@ function qe({
|
|
|
6138
6163
|
Ut,
|
|
6139
6164
|
{
|
|
6140
6165
|
animationTimed: m,
|
|
6141
|
-
durationInFrames:
|
|
6166
|
+
durationInFrames: i,
|
|
6142
6167
|
frame: M,
|
|
6143
6168
|
style: {
|
|
6144
6169
|
width: t.details.width,
|
|
@@ -6149,11 +6174,11 @@ function qe({
|
|
|
6149
6174
|
)
|
|
6150
6175
|
}
|
|
6151
6176
|
);
|
|
6152
|
-
return
|
|
6177
|
+
return gt({ item: t, options: n, children: $ });
|
|
6153
6178
|
}
|
|
6154
6179
|
export {
|
|
6155
6180
|
Re as Audio,
|
|
6156
|
-
|
|
6181
|
+
gt as BaseSequence,
|
|
6157
6182
|
Xe as Caption,
|
|
6158
6183
|
_e as Circle,
|
|
6159
6184
|
qe as Composition,
|
|
@@ -6162,17 +6187,17 @@ export {
|
|
|
6162
6187
|
Pe as Illustration,
|
|
6163
6188
|
We as Image,
|
|
6164
6189
|
Ce as LinealAudioBars,
|
|
6165
|
-
|
|
6190
|
+
Qe as Polygon,
|
|
6166
6191
|
Oe as ProgressBar,
|
|
6167
|
-
|
|
6192
|
+
Ge as ProgressFrame,
|
|
6168
6193
|
Ke as ProgressSquare,
|
|
6169
|
-
|
|
6194
|
+
Le as RadialAudioBars,
|
|
6170
6195
|
He as Rect,
|
|
6171
6196
|
yo as SafeHtmlInCanvas,
|
|
6172
|
-
|
|
6173
|
-
|
|
6197
|
+
Ee as Shape,
|
|
6198
|
+
Ae as Star,
|
|
6174
6199
|
Je as Template,
|
|
6175
|
-
|
|
6200
|
+
Ve as Text,
|
|
6176
6201
|
Ze as Triangle,
|
|
6177
6202
|
Be as Video,
|
|
6178
6203
|
ze as WaveAudioBars,
|
|
@@ -6180,11 +6205,11 @@ export {
|
|
|
6180
6205
|
Fe as calculateContainerFigureStyles,
|
|
6181
6206
|
Kt as calculateContainerStyles,
|
|
6182
6207
|
wn as calculateCropStyles,
|
|
6183
|
-
|
|
6184
|
-
|
|
6208
|
+
Vo as calculateMediaStyles,
|
|
6209
|
+
Gt as calculateTextStyles,
|
|
6185
6210
|
vo as getAnimatedRemotionEffects,
|
|
6186
|
-
|
|
6211
|
+
Nt as getAnimations,
|
|
6187
6212
|
zo as getEffectsCssInfo,
|
|
6188
|
-
|
|
6213
|
+
Ao as groupTrackItems,
|
|
6189
6214
|
go as mapRemotionEffects
|
|
6190
6215
|
};
|