@cliquify.me/elements-ui 9.0.10 → 9.0.12
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 +890 -879
- package/package.json +6 -6
package/dist/index.es.js
CHANGED
|
@@ -2,17 +2,17 @@ var to = Object.defineProperty;
|
|
|
2
2
|
var ro = (t, r, n) => r in t ? to(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
|
|
3
3
|
var Bt = (t, r, n) => ro(t, typeof r != "symbol" ? r + "" : r, n);
|
|
4
4
|
import { jsx as f, jsxs as gt, Fragment as kt } from "react/jsx-runtime";
|
|
5
|
-
import { Sequence as dn, AbsoluteFill as
|
|
6
|
-
import { TransitionSeries as
|
|
5
|
+
import { Sequence as dn, AbsoluteFill as Fr, Audio as un, Easing as I, interpolate as O, HtmlInCanvas as no, useCurrentFrame as Nt, OffthreadVideo as ar, Img as qt, useVideoConfig as ln, delayRender as oo, continueRender as Lr, cancelRender as eo, spring as Mt, random as so } from "remotion";
|
|
6
|
+
import { TransitionSeries as hn, Transitions as ao } from "@cliquify.me/transitions";
|
|
7
7
|
import { BoxAnim as Lt, ContentAnim as Ht, MaskAnim as Dt } from "@cliquify.me/animations";
|
|
8
|
-
import
|
|
9
|
-
import { css as
|
|
10
|
-
import
|
|
8
|
+
import pn from "@emotion/styled";
|
|
9
|
+
import { css as pr } from "@emotion/react";
|
|
10
|
+
import Wt, { Component as co, useState as fr, useEffect as sr, useMemo as yr, useRef as Wr } from "react";
|
|
11
11
|
import { chromaticAberration as io } from "@remotion/effects/chromatic-aberration";
|
|
12
12
|
import { noise as uo } from "@remotion/effects/noise";
|
|
13
13
|
import { pixelate as lo } from "@remotion/effects/pixelate";
|
|
14
|
-
import { ENTER_EDIT_MODE as
|
|
15
|
-
import { getAudioData as
|
|
14
|
+
import { ENTER_EDIT_MODE as ho } from "@cliquify.me/state";
|
|
15
|
+
import { getAudioData as po, visualizeAudio as fo } from "@remotion/media-utils";
|
|
16
16
|
import { isEqual as yo, cloneDeep as er } from "lodash";
|
|
17
17
|
import { Circle as bo, Triangle as vo, Star as go, Polygon as mo, Ellipse as xo } from "@remotion/shapes";
|
|
18
18
|
const wt = (t, r) => {
|
|
@@ -75,7 +75,7 @@ const wt = (t, r) => {
|
|
|
75
75
|
color: t.color || "#000000",
|
|
76
76
|
background: t.backgroundColor || "",
|
|
77
77
|
borderRadius: t != null && t.borderRadius && (t != null && t.borderRadius.toString().includes("px")) ? t == null ? void 0 : t.borderRadius : ((t == null ? void 0 : t.borderRadius) || 0) + "%"
|
|
78
|
-
}),
|
|
78
|
+
}), Ot = (t, r = {}, n = {}) => {
|
|
79
79
|
const s = t.brightness !== void 0 && t.brightness !== null ? t.brightness : 100, c = t.blur !== void 0 && t.blur !== null ? t.blur : 0, a = `brightness(${s}%) blur(${c}px)`;
|
|
80
80
|
return {
|
|
81
81
|
pointerEvents: "auto",
|
|
@@ -122,7 +122,7 @@ const wt = (t, r) => {
|
|
|
122
122
|
...a
|
|
123
123
|
},
|
|
124
124
|
children: /* @__PURE__ */ f(
|
|
125
|
-
|
|
125
|
+
Fr,
|
|
126
126
|
{
|
|
127
127
|
style: {
|
|
128
128
|
height: c.height + "px",
|
|
@@ -150,26 +150,26 @@ const wt = (t, r) => {
|
|
|
150
150
|
options: r,
|
|
151
151
|
children: n
|
|
152
152
|
}) => {
|
|
153
|
-
var y,
|
|
153
|
+
var y, m, g, M;
|
|
154
154
|
const { details: s } = t, { fps: c, isTransition: a } = r, { from: i, durationInFrames: e } = wt(
|
|
155
155
|
{
|
|
156
156
|
from: t.display.from,
|
|
157
157
|
to: t.display.to
|
|
158
158
|
},
|
|
159
159
|
c
|
|
160
|
-
),
|
|
160
|
+
), p = s.crop || {
|
|
161
161
|
width: t.details.width,
|
|
162
162
|
height: t.details.height
|
|
163
|
-
}, o = ((y = s == null ? void 0 : s.background) == null ? void 0 : y.type) === "color" ? (
|
|
164
|
-
let l =
|
|
163
|
+
}, o = ((y = s == null ? void 0 : s.background) == null ? void 0 : y.type) === "color" ? (m = s == null ? void 0 : s.background) == null ? void 0 : m.value : typeof (s == null ? void 0 : s.background) == "string" ? s == null ? void 0 : s.background : "transparent", h = ["template", "composition"].includes(t.type), d = ["image", "video"].includes(t.type), u = ["text", "caption"].includes(t.type);
|
|
164
|
+
let l = Ot(s, p, { background: o });
|
|
165
165
|
if (d) {
|
|
166
166
|
const { background: S, ...$ } = l;
|
|
167
167
|
l = $;
|
|
168
168
|
}
|
|
169
169
|
u && (delete l.boxShadow, delete l.filter);
|
|
170
|
-
const b =
|
|
170
|
+
const b = h ? "!pointer-events-auto" : "";
|
|
171
171
|
return a ? /* @__PURE__ */ gt(
|
|
172
|
-
|
|
172
|
+
hn.Sequence,
|
|
173
173
|
{
|
|
174
174
|
durationInFrames: e,
|
|
175
175
|
premountFor: t.type === "video" || t.type === "audio" || t.type === "image" ? 100 : void 0,
|
|
@@ -188,7 +188,7 @@ const wt = (t, r) => {
|
|
|
188
188
|
`${t.id}-main-background`
|
|
189
189
|
),
|
|
190
190
|
/* @__PURE__ */ f(
|
|
191
|
-
|
|
191
|
+
Fr,
|
|
192
192
|
{
|
|
193
193
|
id: t.id,
|
|
194
194
|
"data-track-item": "transition-element",
|
|
@@ -224,15 +224,15 @@ const wt = (t, r) => {
|
|
|
224
224
|
`${t.id}-main-background`
|
|
225
225
|
),
|
|
226
226
|
/* @__PURE__ */ f(
|
|
227
|
-
|
|
227
|
+
Fr,
|
|
228
228
|
{
|
|
229
229
|
id: t.id,
|
|
230
230
|
"data-track-item": "transition-element",
|
|
231
231
|
className: `designcombo-scene-item id-${t.id} designcombo-scene-item-type-${t.type} ${b}`,
|
|
232
232
|
style: {
|
|
233
233
|
...l,
|
|
234
|
+
overflow: u ? "visible" : !u && l.borderRadius && l.borderRadius !== "0px" ? "hidden" : "visible",
|
|
234
235
|
boxShadow: "",
|
|
235
|
-
overflow: "visible",
|
|
236
236
|
visibility: s.visibility,
|
|
237
237
|
background: t.type === "text" ? "transparent" : t.type === "template" && ((M = (g = t.details) == null ? void 0 : g.background) == null ? void 0 : M.value) || "transparent",
|
|
238
238
|
pointerEvents: t.type === "audio" ? "none" : "auto"
|
|
@@ -263,10 +263,10 @@ function bn({
|
|
|
263
263
|
);
|
|
264
264
|
return xt({ item: t, options: r, children: a });
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
let a = null, i = null, e = null,
|
|
266
|
+
const Rt = (t, r, n, s, c) => {
|
|
267
|
+
let a = null, i = null, e = null, p = null;
|
|
268
268
|
return c != null && c.isAnimationEditor || c != null && c.insideTemplate, t != null && t.in && (a = [], t.in.composition.forEach((o) => {
|
|
269
|
-
var b, y,
|
|
269
|
+
var b, y, m, g, M;
|
|
270
270
|
a.push({
|
|
271
271
|
id: o.id,
|
|
272
272
|
property: o.property,
|
|
@@ -278,7 +278,7 @@ const Ft = (t, r, n, s, c) => {
|
|
|
278
278
|
persist: o.persist,
|
|
279
279
|
details: o.details
|
|
280
280
|
}), o.property === "translateX" || o.property === "translateY" || o.property.toLowerCase().includes("slide");
|
|
281
|
-
const
|
|
281
|
+
const h = !!((b = o.details) != null && b.fade || o.fade), d = o.property === "moveScaleIn" || o.property === "moveScaleOut", u = o.property === "blurSlideV2In" || o.property === "blurSlideV2Out";
|
|
282
282
|
if (d) {
|
|
283
283
|
const S = ((y = o.details) == null ? void 0 : y.translateY) || 0;
|
|
284
284
|
a.push({
|
|
@@ -292,7 +292,7 @@ const Ft = (t, r, n, s, c) => {
|
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
if (u) {
|
|
295
|
-
const S = ((
|
|
295
|
+
const S = ((m = o.details) == null ? void 0 : m.translateX) || 0;
|
|
296
296
|
a.push({
|
|
297
297
|
property: "translateX",
|
|
298
298
|
from: S,
|
|
@@ -303,7 +303,7 @@ const Ft = (t, r, n, s, c) => {
|
|
|
303
303
|
persist: o.persist
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
-
if (
|
|
306
|
+
if (h && a.push({
|
|
307
307
|
property: "opacity",
|
|
308
308
|
from: 0,
|
|
309
309
|
to: 1,
|
|
@@ -334,7 +334,7 @@ const Ft = (t, r, n, s, c) => {
|
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
336
|
})), t != null && t.out && (i = [], t.out.composition.forEach((o) => {
|
|
337
|
-
var b, y,
|
|
337
|
+
var b, y, m, g, M;
|
|
338
338
|
i.push({
|
|
339
339
|
id: o.id,
|
|
340
340
|
property: o.property,
|
|
@@ -368,7 +368,7 @@ const Ft = (t, r, n, s, c) => {
|
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
370
|
if (l) {
|
|
371
|
-
const S = ((
|
|
371
|
+
const S = ((m = o.details) == null ? void 0 : m.translateX) || 0;
|
|
372
372
|
i.push({
|
|
373
373
|
property: "translateX",
|
|
374
374
|
from: 0,
|
|
@@ -413,10 +413,10 @@ const Ft = (t, r, n, s, c) => {
|
|
|
413
413
|
persist: o.persist,
|
|
414
414
|
details: o.details
|
|
415
415
|
});
|
|
416
|
-
})), t != null && t.timed && s !== void 0 && n !== void 0 && (
|
|
416
|
+
})), t != null && t.timed && s !== void 0 && n !== void 0 && (p = [], t.timed.composition.forEach((o) => {
|
|
417
417
|
var g;
|
|
418
|
-
const
|
|
419
|
-
|
|
418
|
+
const h = o.delay, d = r.display.from * s / 1e3, u = n - d - h, l = o.property === "hide-show" || o.property === "hide" || o.property === "show", b = l ? !0 : u >= 0;
|
|
419
|
+
p.push({
|
|
420
420
|
id: o.id,
|
|
421
421
|
property: l || b ? o.property : "none",
|
|
422
422
|
from: Number(o.from ?? 0),
|
|
@@ -427,8 +427,8 @@ const Ft = (t, r, n, s, c) => {
|
|
|
427
427
|
persist: o.persist,
|
|
428
428
|
details: o.details
|
|
429
429
|
});
|
|
430
|
-
const y = o.property === "translateX" || o.property === "translateY" || o.property.toLowerCase().includes("slide"),
|
|
431
|
-
y &&
|
|
430
|
+
const y = o.property === "translateX" || o.property === "translateY" || o.property.toLowerCase().includes("slide"), m = !!((g = o.details) != null && g.fade || o.fade);
|
|
431
|
+
y && m && p.push({
|
|
432
432
|
property: b ? "opacity" : "none",
|
|
433
433
|
from: 0,
|
|
434
434
|
to: 1,
|
|
@@ -441,7 +441,7 @@ const Ft = (t, r, n, s, c) => {
|
|
|
441
441
|
animationIn: a,
|
|
442
442
|
animationOut: i,
|
|
443
443
|
animationLoop: e,
|
|
444
|
-
animationTimed:
|
|
444
|
+
animationTimed: p
|
|
445
445
|
};
|
|
446
446
|
}, Mo = (t) => {
|
|
447
447
|
const c = t % 30;
|
|
@@ -456,7 +456,7 @@ const Ft = (t, r, n, s, c) => {
|
|
|
456
456
|
}, Ur = (t, r, n, s = 10) => {
|
|
457
457
|
const c = r / (1e3 * s), i = Math.min(t / n, c) / c;
|
|
458
458
|
return i >= 1 ? 1 : 0.5 + 0.5 * i;
|
|
459
|
-
}, wo =
|
|
459
|
+
}, wo = pn.span`
|
|
460
460
|
position: relative;
|
|
461
461
|
display: inline-block;
|
|
462
462
|
padding: 0 0.15em;
|
|
@@ -467,7 +467,7 @@ const Ft = (t, r, n, s, c) => {
|
|
|
467
467
|
transition: scale 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
468
468
|
vertical-align: baseline;
|
|
469
469
|
|
|
470
|
-
${(t) => t.animation === "letterPopline" && t.isActive &&
|
|
470
|
+
${(t) => t.animation === "letterPopline" && t.isActive && pr`
|
|
471
471
|
text-decoration: underline;
|
|
472
472
|
text-decoration-color: #9238ef;
|
|
473
473
|
text-decoration-thickness: 0.2em;
|
|
@@ -491,19 +491,19 @@ const Ft = (t, r, n, s, c) => {
|
|
|
491
491
|
-webkit-text-fill-color: unset !important;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
${(t) => t.isActive &&
|
|
494
|
+
${(t) => t.isActive && pr`
|
|
495
495
|
&::before {
|
|
496
496
|
opacity: 1;
|
|
497
497
|
background: ${t.activeFillColor};
|
|
498
498
|
}
|
|
499
499
|
`}
|
|
500
|
-
`, Io =
|
|
500
|
+
`, Io = pn.span`
|
|
501
501
|
display: inline-block;
|
|
502
502
|
position: relative;
|
|
503
503
|
margin: 0;
|
|
504
504
|
padding: 0;
|
|
505
505
|
|
|
506
|
-
${(t) => t.wordColor.includes("gradient") ?
|
|
506
|
+
${(t) => t.wordColor.includes("gradient") ? pr`
|
|
507
507
|
background: ${t.wordColor};
|
|
508
508
|
background-size: 100% 100%;
|
|
509
509
|
-webkit-background-clip: text;
|
|
@@ -518,10 +518,10 @@ const Ft = (t, r, n, s, c) => {
|
|
|
518
518
|
background: none !important;
|
|
519
519
|
text-shadow: none !important;
|
|
520
520
|
}
|
|
521
|
-
` :
|
|
521
|
+
` : pr`
|
|
522
522
|
color: ${t.wordColor};
|
|
523
523
|
`}
|
|
524
|
-
`, ko = ["letter", "letterUmi", "letterTracy"], No = ["letterKaraoke", "letterPopline"],
|
|
524
|
+
`, ko = ["letter", "letterUmi", "letterTracy"], No = ["letterKaraoke", "letterPopline"], Ro = ({
|
|
525
525
|
word: t,
|
|
526
526
|
offsetFrom: r,
|
|
527
527
|
activeColor: n,
|
|
@@ -530,13 +530,13 @@ const Ft = (t, r, n, s, c) => {
|
|
|
530
530
|
color: a,
|
|
531
531
|
animation: i,
|
|
532
532
|
currentFrame: e,
|
|
533
|
-
fps:
|
|
533
|
+
fps: p,
|
|
534
534
|
textDecoration: o,
|
|
535
|
-
fontStyle:
|
|
535
|
+
fontStyle: h,
|
|
536
536
|
fontFamily: d,
|
|
537
537
|
textShadow: u
|
|
538
538
|
}) => {
|
|
539
|
-
const { start: l, end: b } = t, y = (l + r) / 1e3 *
|
|
539
|
+
const { start: l, end: b } = t, y = (l + r) / 1e3 * p, m = (b + r) / 1e3 * p, g = e >= y && e < m, M = e >= y, S = g ? n : M ? c : a, $ = No.includes(i) && g ? 1.2 : 1, k = t.word.length, x = m - y;
|
|
540
540
|
return /* @__PURE__ */ f(
|
|
541
541
|
wo,
|
|
542
542
|
{
|
|
@@ -546,7 +546,7 @@ const Ft = (t, r, n, s, c) => {
|
|
|
546
546
|
animation: i,
|
|
547
547
|
textDecoration: o,
|
|
548
548
|
style: {
|
|
549
|
-
fontStyle:
|
|
549
|
+
fontStyle: h || "normal",
|
|
550
550
|
fontFamily: d || "inherit"
|
|
551
551
|
},
|
|
552
552
|
children: /* @__PURE__ */ f(
|
|
@@ -554,16 +554,16 @@ const Ft = (t, r, n, s, c) => {
|
|
|
554
554
|
{
|
|
555
555
|
wordColor: S,
|
|
556
556
|
style: {
|
|
557
|
-
fontStyle:
|
|
557
|
+
fontStyle: h || "normal",
|
|
558
558
|
fontFamily: d || "inherit",
|
|
559
559
|
textShadow: u || void 0
|
|
560
560
|
},
|
|
561
561
|
children: t.word.split("").map((v, w) => {
|
|
562
|
-
const N =
|
|
562
|
+
const N = x / k, R = y + w * N, V = R + N;
|
|
563
563
|
let P = 1, Y = !0;
|
|
564
|
-
return ko.includes(i) && (Y = e >=
|
|
564
|
+
return ko.includes(i) && (Y = e >= R), i === "letterTracy" && (P = O(
|
|
565
565
|
e,
|
|
566
|
-
[
|
|
566
|
+
[R, V],
|
|
567
567
|
[0, 1],
|
|
568
568
|
{
|
|
569
569
|
extrapolateLeft: "clamp",
|
|
@@ -595,27 +595,27 @@ function vn({
|
|
|
595
595
|
item: t,
|
|
596
596
|
options: r
|
|
597
597
|
}) {
|
|
598
|
-
const { fps: n, frame: s } = r, { details: c, display: a, animations: i } = t, { animationIn: e, animationOut:
|
|
598
|
+
const { fps: n, frame: s } = r, { details: c, display: a, animations: i } = t, { animationIn: e, animationOut: p, animationTimed: o } = Rt(
|
|
599
599
|
i,
|
|
600
600
|
t,
|
|
601
601
|
s,
|
|
602
602
|
n,
|
|
603
603
|
r
|
|
604
|
-
), { from:
|
|
605
|
-
let y = Math.max((s ?? 0) -
|
|
604
|
+
), { from: h, durationInFrames: d } = wt(t.display, n), u = Array.isArray(c.words) ? c.words : [], [l] = u, b = a.from - ((l == null ? void 0 : l.start) || 0);
|
|
605
|
+
let y = Math.max((s ?? 0) - h, 0), m = {};
|
|
606
606
|
switch (c == null ? void 0 : c.animation) {
|
|
607
607
|
case "letterElla":
|
|
608
|
-
|
|
608
|
+
m = Mo(y);
|
|
609
609
|
break;
|
|
610
610
|
case "letterHormozi":
|
|
611
|
-
|
|
611
|
+
m.scale = Ur(
|
|
612
612
|
y,
|
|
613
613
|
t.display.to,
|
|
614
614
|
n
|
|
615
615
|
);
|
|
616
616
|
break;
|
|
617
617
|
case "letterBeasty":
|
|
618
|
-
|
|
618
|
+
m.scale = Ur(
|
|
619
619
|
y,
|
|
620
620
|
t.display.to,
|
|
621
621
|
n,
|
|
@@ -624,13 +624,13 @@ function vn({
|
|
|
624
624
|
break;
|
|
625
625
|
}
|
|
626
626
|
const g = {
|
|
627
|
-
...
|
|
628
|
-
transform: `translate(${
|
|
627
|
+
...m.translateX !== void 0 && m.translateY !== void 0 && {
|
|
628
|
+
transform: `translate(${m.translateX}px, ${m.translateY}px)`
|
|
629
629
|
},
|
|
630
|
-
...
|
|
631
|
-
transform: `scale(${
|
|
630
|
+
...m.scale !== void 0 && {
|
|
631
|
+
transform: `scale(${m.scale})`
|
|
632
632
|
}
|
|
633
|
-
}, M = (s || 0) - t.display.from * n / 1e3, { boxShadow: S, ...$ } =
|
|
633
|
+
}, M = (s || 0) - t.display.from * n / 1e3, { boxShadow: S, ...$ } = Ot(c), { color: k, textShadow: x, ...v } = tr(c);
|
|
634
634
|
return xt({
|
|
635
635
|
item: t,
|
|
636
636
|
options: r,
|
|
@@ -639,7 +639,7 @@ function vn({
|
|
|
639
639
|
{
|
|
640
640
|
style: $,
|
|
641
641
|
animationIn: e,
|
|
642
|
-
animationOut:
|
|
642
|
+
animationOut: p,
|
|
643
643
|
frame: M,
|
|
644
644
|
durationInFrames: d,
|
|
645
645
|
children: /* @__PURE__ */ f(
|
|
@@ -659,26 +659,26 @@ function vn({
|
|
|
659
659
|
display: "block",
|
|
660
660
|
textAlign: c.textAlign || "center",
|
|
661
661
|
boxShadow: "none",
|
|
662
|
-
textShadow:
|
|
662
|
+
textShadow: x || "none",
|
|
663
663
|
transition: "transform 0.2s ease"
|
|
664
664
|
},
|
|
665
665
|
children: u.map((w, N) => {
|
|
666
666
|
var U;
|
|
667
|
-
const
|
|
668
|
-
let
|
|
669
|
-
if (
|
|
667
|
+
const R = c.animation === "letterEditorial", V = c.animation === "letterGaramondGlow", P = N === u.length - 1, W = (typeof c.captionGroupIndex == "number" ? c.captionGroupIndex : Math.floor((((U = t.display) == null ? void 0 : U.from) || 0) / 1e3)) % 2 === 0;
|
|
668
|
+
let F = c.color, C = c.appearedColor || c.color, X = c.activeColor || c.color, E = c.fontStyle || "normal", _ = R ? "Georgia, serif" : void 0, z;
|
|
669
|
+
if (R)
|
|
670
670
|
if (W) {
|
|
671
671
|
const L = P ? "#e9ef36" : "#ffffff";
|
|
672
|
-
|
|
672
|
+
F = L, C = L, X = L, E = P ? "italic" : "normal";
|
|
673
673
|
} else {
|
|
674
674
|
const L = P ? "#ffffff" : "#e9ef36";
|
|
675
|
-
|
|
675
|
+
F = L, C = L, X = L, E = P ? "normal" : "italic";
|
|
676
676
|
}
|
|
677
|
-
else V && (_ = "'EB Garamond', Garamond, serif", N % 5 === 0 ? (E = "italic",
|
|
677
|
+
else V && (_ = "'EB Garamond', Garamond, serif", N % 5 === 0 ? (E = "italic", F = "#ffffff", C = "#ffffff", X = "#ffffff", z = "0 0 8px rgba(255, 255, 255, 0.9), 0 0 16px rgba(255, 255, 255, 0.7), 0 0 24px rgba(255, 255, 255, 0.5)") : (E = "normal", F = "#ffffff", C = "#ffffff", X = "#ffffff", z = "2px 2px 4px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6)"));
|
|
678
678
|
return /* @__PURE__ */ f(
|
|
679
|
-
|
|
679
|
+
Ro,
|
|
680
680
|
{
|
|
681
|
-
color:
|
|
681
|
+
color: F,
|
|
682
682
|
appearedColor: C,
|
|
683
683
|
activeColor: X,
|
|
684
684
|
activeFillColor: c.activeFillColor || "transparent",
|
|
@@ -708,26 +708,26 @@ const gn = ({
|
|
|
708
708
|
options: r
|
|
709
709
|
}) => {
|
|
710
710
|
var u, l, b, y;
|
|
711
|
-
const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed:
|
|
711
|
+
const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: p } = Rt(
|
|
712
712
|
a,
|
|
713
713
|
t,
|
|
714
714
|
s,
|
|
715
715
|
n,
|
|
716
716
|
r
|
|
717
|
-
), { durationInFrames: o } = wt(t.display, n),
|
|
717
|
+
), { durationInFrames: o } = wt(t.display, n), h = (s || 0) - t.display.from * n / 1e3, d = /* @__PURE__ */ f(
|
|
718
718
|
Lt,
|
|
719
719
|
{
|
|
720
|
-
style:
|
|
720
|
+
style: Ot(c),
|
|
721
721
|
animationIn: i,
|
|
722
722
|
animationOut: e,
|
|
723
|
-
frame:
|
|
723
|
+
frame: h,
|
|
724
724
|
durationInFrames: o,
|
|
725
725
|
children: /* @__PURE__ */ f(
|
|
726
726
|
Ht,
|
|
727
727
|
{
|
|
728
|
-
animationTimed:
|
|
728
|
+
animationTimed: p,
|
|
729
729
|
durationInFrames: o,
|
|
730
|
-
frame:
|
|
730
|
+
frame: h,
|
|
731
731
|
style: c,
|
|
732
732
|
children: /* @__PURE__ */ f(
|
|
733
733
|
Dt,
|
|
@@ -740,9 +740,9 @@ const gn = ({
|
|
|
740
740
|
...((y = a == null ? void 0 : a.loop) == null ? void 0 : y.composition) || [],
|
|
741
741
|
...i || [],
|
|
742
742
|
...e || [],
|
|
743
|
-
...
|
|
743
|
+
...p || []
|
|
744
744
|
],
|
|
745
|
-
frame:
|
|
745
|
+
frame: h,
|
|
746
746
|
durationInFrames: o,
|
|
747
747
|
children: /* @__PURE__ */ f("div", { dangerouslySetInnerHTML: { __html: t.details.svgString } })
|
|
748
748
|
}
|
|
@@ -788,15 +788,15 @@ const mn = ({
|
|
|
788
788
|
from: a = 0,
|
|
789
789
|
to: i = 1,
|
|
790
790
|
width: e,
|
|
791
|
-
height:
|
|
791
|
+
height: p,
|
|
792
792
|
borderRadius: o,
|
|
793
|
-
borderWidth:
|
|
793
|
+
borderWidth: h,
|
|
794
794
|
borderColor: d,
|
|
795
795
|
boxShadow: u,
|
|
796
796
|
marqueeDetails: l,
|
|
797
797
|
effects: b
|
|
798
798
|
}) => {
|
|
799
|
-
const y = Nt(),
|
|
799
|
+
const y = Nt(), m = typeof n == "number" && !isNaN(n) ? n : y, g = Math.max(0, m - (s || 0)), M = Math.min(1, Math.max(0, g / (c || 1))), S = e || 300, $ = p || 300, k = (l == null ? void 0 : l.direction) || "horizontal", x = k === "static", v = Math.min(15, Math.max(1, Number((l == null ? void 0 : l.repeatX) ?? 5))), w = Math.min(15, Math.max(1, Number((l == null ? void 0 : l.repeatY) ?? 5))), N = (l == null ? void 0 : l.baseSpeed) !== void 0 ? Number(l.baseSpeed) : 2, R = (l == null ? void 0 : l.speedVariation) !== void 0 ? Number(l.speedVariation) : 0.5, V = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialBaseSpeed) !== void 0 ? Number(l.initialBaseSpeed) : N, P = l != null && l.hasInitialValue ? V + (N - V) * M : N, Y = x ? 0 : P * 400, W = x ? 0 : P * 400, F = (l == null ? void 0 : l.scaleFactor) !== void 0 ? Number(l.scaleFactor) : 1, C = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialScaleFactor) !== void 0 ? Number(l.initialScaleFactor) : F, X = l != null && l.hasInitialValue ? C + (F - C) * M : F, E = (l == null ? void 0 : l.lineOffset) !== void 0 ? Number(l.lineOffset) : 0.5, _ = (l == null ? void 0 : l.gapX) !== void 0 ? Number(l.gapX) : 60, z = (l == null ? void 0 : l.gapY) !== void 0 ? Number(l.gapY) : 60, U = _ / 100 * S, L = z / 100 * $, D = S, H = $, Z = D * X + U, j = H * X + L, pt = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0, Q = k === "vertical" || k === "up" || k === "down", T = k === "diagonal", ot = (v - 1) / 2, vt = (w - 1) / 2, nt = w, ut = v, it = Array.from({ length: nt }, (tt, st) => st - vt), mt = Array.from({ length: ut }, (tt, st) => st - ot), ht = (tt, st, et, ct) => /* @__PURE__ */ f(
|
|
800
800
|
"div",
|
|
801
801
|
{
|
|
802
802
|
style: {
|
|
@@ -808,7 +808,7 @@ const mn = ({
|
|
|
808
808
|
width: `${D}px`,
|
|
809
809
|
height: `${H}px`,
|
|
810
810
|
borderRadius: o || 0,
|
|
811
|
-
boxShadow:
|
|
811
|
+
boxShadow: pt,
|
|
812
812
|
opacity: ct ? 1 : 0.85
|
|
813
813
|
},
|
|
814
814
|
children: /* @__PURE__ */ gt(
|
|
@@ -843,14 +843,14 @@ const mn = ({
|
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
),
|
|
846
|
-
|
|
846
|
+
h && d ? /* @__PURE__ */ f(
|
|
847
847
|
"div",
|
|
848
848
|
{
|
|
849
849
|
style: {
|
|
850
850
|
position: "absolute",
|
|
851
851
|
inset: 0,
|
|
852
852
|
borderRadius: o || 0,
|
|
853
|
-
border: `${
|
|
853
|
+
border: `${h}px solid ${d}`,
|
|
854
854
|
boxSizing: "border-box",
|
|
855
855
|
pointerEvents: "none"
|
|
856
856
|
}
|
|
@@ -875,10 +875,10 @@ const mn = ({
|
|
|
875
875
|
children: mt.map((tt, st) => {
|
|
876
876
|
let et = st % 2 === 0 ? 1 : -1;
|
|
877
877
|
k === "up" && (et = -1), k === "down" && (et = 1);
|
|
878
|
-
const ct = 1 + st % 2 * (
|
|
878
|
+
const ct = 1 + st % 2 * (R * 0.5), dt = W > 0 && et !== 0 ? et * (g * W * 0.1 * ct) + tt * (j * E) : tt * (j * E), ft = W === 0 || et === 0 ? 0 : (dt % j + j) % j - j / 2;
|
|
879
879
|
return it.map((bt, $t) => {
|
|
880
880
|
const lt = tt * Z, A = bt * j + ft;
|
|
881
|
-
return
|
|
881
|
+
return ht(
|
|
882
882
|
`v-${st}-${$t}`,
|
|
883
883
|
lt,
|
|
884
884
|
A,
|
|
@@ -898,11 +898,11 @@ const mn = ({
|
|
|
898
898
|
borderRadius: o || 0
|
|
899
899
|
},
|
|
900
900
|
children: it.map((tt, st) => {
|
|
901
|
-
const et = st % 2 === 0 ? 1 : -1, ct = st % 2 === 0 ? 1 : -1, dt = 1 + st % 2 * (
|
|
902
|
-
return mt.map((A,
|
|
901
|
+
const et = st % 2 === 0 ? 1 : -1, ct = st % 2 === 0 ? 1 : -1, dt = 1 + st % 2 * (R * 0.5), ft = Y > 0 ? et * (g * Y * 0.1 * dt) + tt * (Z * E) : tt * (Z * E), bt = Y === 0 ? 0 : (ft % Z + Z) % Z - Z / 2, $t = W > 0 ? ct * (g * W * 0.1 * dt) + tt * (j * E) : tt * (j * E), lt = W === 0 ? 0 : ($t % j + j) % j - j / 2;
|
|
902
|
+
return mt.map((A, Ft) => {
|
|
903
903
|
const Yt = A * Z + bt, Xt = tt * j + lt;
|
|
904
|
-
return
|
|
905
|
-
`d-${st}-${
|
|
904
|
+
return ht(
|
|
905
|
+
`d-${st}-${Ft}`,
|
|
906
906
|
Yt,
|
|
907
907
|
Xt,
|
|
908
908
|
A === 0 && tt === 0
|
|
@@ -923,10 +923,10 @@ const mn = ({
|
|
|
923
923
|
children: it.map((tt, st) => {
|
|
924
924
|
let et = st % 2 === 0 ? 1 : -1;
|
|
925
925
|
k === "left" && (et = -1), k === "right" && (et = 1);
|
|
926
|
-
const ct = 1 + st % 2 * (
|
|
926
|
+
const ct = 1 + st % 2 * (R * 0.5), dt = Y > 0 && et !== 0 ? et * (g * Y * 0.1 * ct) + tt * (Z * E) : tt * (Z * E), ft = Y === 0 || et === 0 ? 0 : (dt % Z + Z) % Z - Z / 2;
|
|
927
927
|
return mt.map((bt, $t) => {
|
|
928
928
|
const lt = bt * Z + ft, A = tt * j;
|
|
929
|
-
return
|
|
929
|
+
return ht(
|
|
930
930
|
`h-${st}-${$t}`,
|
|
931
931
|
lt,
|
|
932
932
|
A,
|
|
@@ -945,18 +945,18 @@ const mn = ({
|
|
|
945
945
|
from: a = 0,
|
|
946
946
|
to: i = 1,
|
|
947
947
|
width: e,
|
|
948
|
-
height:
|
|
948
|
+
height: p,
|
|
949
949
|
borderRadius: o,
|
|
950
|
-
borderWidth:
|
|
950
|
+
borderWidth: h,
|
|
951
951
|
borderColor: d,
|
|
952
952
|
boxShadow: u,
|
|
953
953
|
echoesDetails: l,
|
|
954
954
|
effects: b
|
|
955
955
|
}) => {
|
|
956
|
-
const y = Nt(),
|
|
957
|
-
let
|
|
958
|
-
S === "initial" ?
|
|
959
|
-
const C = Math.max(1, Math.round(O(
|
|
956
|
+
const y = Nt(), m = typeof n == "number" && !isNaN(n) ? n : y, g = e || 300, M = p || 300, S = (l == null ? void 0 : l.keepStill) || "both", $ = Number((l == null ? void 0 : l.toRepeatCount) ?? 5), k = Number((l == null ? void 0 : l.toScaleDown) ?? 0.3), x = Number((l == null ? void 0 : l.toCenterX) ?? 0.5), v = Number((l == null ? void 0 : l.toCenterY) ?? 0.5), w = (l == null ? void 0 : l.initialRepeatCount) !== void 0 ? Number(l.initialRepeatCount) : $, N = (l == null ? void 0 : l.initialScaleDown) !== void 0 ? Number(l.initialScaleDown) : 1, R = (l == null ? void 0 : l.initialCenterX) !== void 0 ? Number(l.initialCenterX) : x, V = (l == null ? void 0 : l.initialCenterY) !== void 0 ? Number(l.initialCenterY) : v, P = Math.max(0, m - (s || 0)), Y = Math.min(1, Math.max(0, P / (c || 1)));
|
|
957
|
+
let F = a + (i - a) * Y;
|
|
958
|
+
S === "initial" ? F = 0 : S === "final" && (F = 1);
|
|
959
|
+
const C = Math.max(1, Math.round(O(F, [0, 1], [w, $]))), X = O(F, [0, 1], [N, k]), E = O(F, [0, 1], [R, x]), _ = O(F, [0, 1], [V, v]), z = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0, U = Array.from({ length: C }, (L, D) => D);
|
|
960
960
|
return /* @__PURE__ */ f(
|
|
961
961
|
"div",
|
|
962
962
|
{
|
|
@@ -1016,14 +1016,14 @@ const mn = ({
|
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
),
|
|
1019
|
-
|
|
1019
|
+
h && d ? /* @__PURE__ */ f(
|
|
1020
1020
|
"div",
|
|
1021
1021
|
{
|
|
1022
1022
|
style: {
|
|
1023
1023
|
position: "absolute",
|
|
1024
1024
|
inset: 0,
|
|
1025
1025
|
borderRadius: o || 0,
|
|
1026
|
-
border: `${
|
|
1026
|
+
border: `${h}px solid ${d}`,
|
|
1027
1027
|
boxSizing: "border-box",
|
|
1028
1028
|
pointerEvents: "none"
|
|
1029
1029
|
}
|
|
@@ -1047,15 +1047,15 @@ const mn = ({
|
|
|
1047
1047
|
from: a = 0,
|
|
1048
1048
|
to: i = 1,
|
|
1049
1049
|
width: e,
|
|
1050
|
-
height:
|
|
1050
|
+
height: p,
|
|
1051
1051
|
borderRadius: o,
|
|
1052
|
-
borderWidth:
|
|
1052
|
+
borderWidth: h,
|
|
1053
1053
|
borderColor: d,
|
|
1054
1054
|
boxShadow: u,
|
|
1055
1055
|
wiggleDetails: l,
|
|
1056
1056
|
effects: b
|
|
1057
1057
|
}) => {
|
|
1058
|
-
const y = Nt(),
|
|
1058
|
+
const y = Nt(), m = typeof n == "number" && !isNaN(n) ? n : y, g = e || 300, M = p || 300, S = Number((l == null ? void 0 : l.wiggleX) ?? 20), $ = Number((l == null ? void 0 : l.wiggleY) ?? 20), k = Number((l == null ? void 0 : l.speed) ?? 3), x = Number((l == null ? void 0 : l.angle) ?? 10), v = Number((l == null ? void 0 : l.seed) ?? 1), w = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialWiggleX) !== void 0 ? Number(l.initialWiggleX) : S, N = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialWiggleY) !== void 0 ? Number(l.initialWiggleY) : $, R = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialSpeed) !== void 0 ? Number(l.initialSpeed) : k, V = l != null && l.hasInitialValue && (l == null ? void 0 : l.initialAngle) !== void 0 ? Number(l.initialAngle) : x, P = Math.max(0, m - (s || 0)), Y = Math.min(1, Math.max(0, P / (c || 1))), W = l != null && l.hasInitialValue ? w + (S - w) * Y : S, F = l != null && l.hasInitialValue ? N + ($ - N) * Y : $, C = l != null && l.hasInitialValue ? R + (k - R) * Y : k, X = l != null && l.hasInitialValue ? V + (x - V) * Y : x, E = m * (C * 0.08), _ = v * 12.345, z = Math.sin(E + _) * Math.cos(E * 0.65 + _) * W, U = Math.cos(E * 0.85 + _) * Math.sin(E * 1.15 + _) * F, L = Math.sin(E * 0.9 + _ * 1.35) * X, D = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0;
|
|
1059
1059
|
return /* @__PURE__ */ f(
|
|
1060
1060
|
"div",
|
|
1061
1061
|
{
|
|
@@ -1102,14 +1102,14 @@ const mn = ({
|
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
1104
|
),
|
|
1105
|
-
|
|
1105
|
+
h && d ? /* @__PURE__ */ f(
|
|
1106
1106
|
"div",
|
|
1107
1107
|
{
|
|
1108
1108
|
style: {
|
|
1109
1109
|
position: "absolute",
|
|
1110
1110
|
inset: 0,
|
|
1111
1111
|
borderRadius: o || 0,
|
|
1112
|
-
border: `${
|
|
1112
|
+
border: `${h}px solid ${d}`,
|
|
1113
1113
|
boxSizing: "border-box",
|
|
1114
1114
|
pointerEvents: "none"
|
|
1115
1115
|
}
|
|
@@ -1129,28 +1129,28 @@ const mn = ({
|
|
|
1129
1129
|
width: a = 300,
|
|
1130
1130
|
height: i = 300,
|
|
1131
1131
|
borderRadius: e,
|
|
1132
|
-
boxShadow:
|
|
1132
|
+
boxShadow: p,
|
|
1133
1133
|
cardFlipDetails: o,
|
|
1134
|
-
children:
|
|
1134
|
+
children: h,
|
|
1135
1135
|
style: d = {}
|
|
1136
1136
|
}) => {
|
|
1137
|
-
const u = Nt(), l = typeof t == "number" && !isNaN(t) ? t : u, b = a || 300, y = i || 300,
|
|
1137
|
+
const u = Nt(), l = typeof t == "number" && !isNaN(t) ? t : u, b = a || 300, y = i || 300, m = (o == null ? void 0 : o.keepStill) || "both", g = Number((o == null ? void 0 : o.toRotationX) ?? 0), M = Number((o == null ? void 0 : o.toRotationY) ?? 360), S = Number((o == null ? void 0 : o.toRotationZ) ?? 0), $ = Number((o == null ? void 0 : o.toPivotX) ?? 0), k = Number((o == null ? void 0 : o.toPivotY) ?? 0), x = Number((o == null ? void 0 : o.toPerspective) ?? 0.45), v = !!(o != null && o.hasInitialValue), w = v ? Number((o == null ? void 0 : o.initialRotationX) ?? 0) : 0, N = v ? Number((o == null ? void 0 : o.initialRotationY) ?? 0) : 0, R = v ? Number((o == null ? void 0 : o.initialRotationZ) ?? 0) : 0, V = v ? Number((o == null ? void 0 : o.initialPivotX) ?? 0) : $, P = v ? Number((o == null ? void 0 : o.initialPivotY) ?? 0) : k, Y = v ? Number((o == null ? void 0 : o.initialPerspective) ?? 0.45) : x, W = (o == null ? void 0 : o.frontFace) ?? !0, F = (o == null ? void 0 : o.backFace) ?? !0, C = Math.max(0, l - (r || 0)), X = Math.min(1, Math.max(0, C / (n || 1)));
|
|
1138
1138
|
let _ = s + (c - s) * X;
|
|
1139
|
-
|
|
1140
|
-
const z = O(_, [0, 1], [w, g]), U = O(_, [0, 1], [N, M]), L = O(_, [0, 1], [
|
|
1139
|
+
m === "initial" ? _ = 0 : m === "final" && (_ = 1);
|
|
1140
|
+
const z = O(_, [0, 1], [w, g]), U = O(_, [0, 1], [N, M]), L = O(_, [0, 1], [R, S]), D = O(_, [0, 1], [V, $]), H = O(_, [0, 1], [P, k]), Z = O(_, [0, 1], [Y, x]), j = Math.max(b, y), pt = Math.max(
|
|
1141
1141
|
1200,
|
|
1142
1142
|
Math.round(j * 2.5 / Math.max(0.05, Z))
|
|
1143
1143
|
), Q = z * Math.PI / 180, T = U * Math.PI / 180, ot = Math.cos(Q) * Math.cos(T), vt = ot >= 0, nt = ot < 0;
|
|
1144
1144
|
let ut = !0;
|
|
1145
|
-
vt && !W && (ut = !1), nt && !
|
|
1146
|
-
const it =
|
|
1145
|
+
vt && !W && (ut = !1), nt && !F && (ut = !1);
|
|
1146
|
+
const it = p ? typeof p == "string" ? p : `${p.x ?? 0}px ${p.y ?? 0}px ${p.blur ?? 0}px ${p.color ?? ""}` : void 0;
|
|
1147
1147
|
return /* @__PURE__ */ f(
|
|
1148
1148
|
"div",
|
|
1149
1149
|
{
|
|
1150
1150
|
style: {
|
|
1151
1151
|
width: "100%",
|
|
1152
1152
|
height: "100%",
|
|
1153
|
-
perspective: `${
|
|
1153
|
+
perspective: `${pt}px`,
|
|
1154
1154
|
transformStyle: "preserve-3d",
|
|
1155
1155
|
position: "relative",
|
|
1156
1156
|
...d
|
|
@@ -1163,18 +1163,18 @@ const mn = ({
|
|
|
1163
1163
|
height: "100%",
|
|
1164
1164
|
transformOrigin: `${50 + D}% ${50 + H}%`,
|
|
1165
1165
|
transform: `rotateX(${z}deg) rotateY(${U}deg) rotateZ(${L}deg)`,
|
|
1166
|
-
backfaceVisibility:
|
|
1166
|
+
backfaceVisibility: F ? "visible" : "hidden",
|
|
1167
1167
|
visibility: ut ? "visible" : "hidden",
|
|
1168
1168
|
borderRadius: e || 0,
|
|
1169
1169
|
boxShadow: it,
|
|
1170
1170
|
position: "relative"
|
|
1171
1171
|
},
|
|
1172
|
-
children:
|
|
1172
|
+
children: h
|
|
1173
1173
|
}
|
|
1174
1174
|
)
|
|
1175
1175
|
}
|
|
1176
1176
|
);
|
|
1177
|
-
},
|
|
1177
|
+
}, Fo = ({
|
|
1178
1178
|
src: t,
|
|
1179
1179
|
frame: r,
|
|
1180
1180
|
delay: n = 0,
|
|
@@ -1183,15 +1183,15 @@ const mn = ({
|
|
|
1183
1183
|
to: a = 1,
|
|
1184
1184
|
width: i,
|
|
1185
1185
|
height: e,
|
|
1186
|
-
borderRadius:
|
|
1186
|
+
borderRadius: p,
|
|
1187
1187
|
borderWidth: o,
|
|
1188
|
-
borderColor:
|
|
1188
|
+
borderColor: h,
|
|
1189
1189
|
boxShadow: d,
|
|
1190
1190
|
cardFlipDetails: u,
|
|
1191
1191
|
activeEffects: l,
|
|
1192
1192
|
effects: b
|
|
1193
1193
|
}) => {
|
|
1194
|
-
const y = l == null ? void 0 : l.find((S) => S.type === "vignette"),
|
|
1194
|
+
const y = l == null ? void 0 : l.find((S) => S.type === "vignette"), m = (y == null ? void 0 : y.amount) ?? (y == null ? void 0 : y.intensity) ?? (y ? 0.7 : 0), g = [];
|
|
1195
1195
|
l == null || l.forEach((S) => {
|
|
1196
1196
|
S.type === "blur" && S.radius && g.push(`blur(${S.radius}px)`), S.type === "grayscale" && S.amount !== void 0 && g.push(`grayscale(${S.amount * 100}%)`), S.type === "contrast" && S.amount !== void 0 && g.push(`contrast(${S.amount * 100}%)`), S.type === "brightness" && S.amount !== void 0 && g.push(`brightness(${100 + S.amount * 100}%)`), S.type === "hue" && S.rotation !== void 0 && g.push(`hue-rotate(${S.rotation}deg)`), S.type === "saturation" && S.amount !== void 0 && g.push(`saturate(${S.amount * 100}%)`);
|
|
1197
1197
|
});
|
|
@@ -1206,7 +1206,7 @@ const mn = ({
|
|
|
1206
1206
|
to: a,
|
|
1207
1207
|
width: i,
|
|
1208
1208
|
height: e,
|
|
1209
|
-
borderRadius:
|
|
1209
|
+
borderRadius: p,
|
|
1210
1210
|
boxShadow: d,
|
|
1211
1211
|
cardFlipDetails: u,
|
|
1212
1212
|
children: /* @__PURE__ */ gt(
|
|
@@ -1215,7 +1215,7 @@ const mn = ({
|
|
|
1215
1215
|
style: {
|
|
1216
1216
|
width: "100%",
|
|
1217
1217
|
height: "100%",
|
|
1218
|
-
borderRadius:
|
|
1218
|
+
borderRadius: p || 0,
|
|
1219
1219
|
overflow: "hidden",
|
|
1220
1220
|
position: "relative"
|
|
1221
1221
|
},
|
|
@@ -1228,35 +1228,35 @@ const mn = ({
|
|
|
1228
1228
|
width: "100%",
|
|
1229
1229
|
height: "100%",
|
|
1230
1230
|
objectFit: "cover",
|
|
1231
|
-
borderRadius:
|
|
1231
|
+
borderRadius: p || 0,
|
|
1232
1232
|
filter: M
|
|
1233
1233
|
},
|
|
1234
1234
|
effects: b
|
|
1235
1235
|
}
|
|
1236
1236
|
),
|
|
1237
|
-
y &&
|
|
1237
|
+
y && m > 0 ? /* @__PURE__ */ f(
|
|
1238
1238
|
"div",
|
|
1239
1239
|
{
|
|
1240
1240
|
style: {
|
|
1241
1241
|
position: "absolute",
|
|
1242
1242
|
inset: 0,
|
|
1243
|
-
borderRadius:
|
|
1243
|
+
borderRadius: p || 0,
|
|
1244
1244
|
pointerEvents: "none",
|
|
1245
1245
|
zIndex: 2,
|
|
1246
1246
|
background: `radial-gradient(ellipse at center, transparent ${Math.round(
|
|
1247
1247
|
(y.radius ?? 0.5) * 80
|
|
1248
|
-
)}%, rgba(0, 0, 0, ${Math.min(1,
|
|
1248
|
+
)}%, rgba(0, 0, 0, ${Math.min(1, m)}) 100%)`
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
1251
|
) : null,
|
|
1252
|
-
o &&
|
|
1252
|
+
o && h ? /* @__PURE__ */ f(
|
|
1253
1253
|
"div",
|
|
1254
1254
|
{
|
|
1255
1255
|
style: {
|
|
1256
1256
|
position: "absolute",
|
|
1257
1257
|
inset: 0,
|
|
1258
|
-
borderRadius:
|
|
1259
|
-
border: `${o}px solid ${
|
|
1258
|
+
borderRadius: p || 0,
|
|
1259
|
+
border: `${o}px solid ${h}`,
|
|
1260
1260
|
boxSizing: "border-box",
|
|
1261
1261
|
pointerEvents: "none",
|
|
1262
1262
|
zIndex: 3
|
|
@@ -1297,21 +1297,21 @@ function Sn(t, r, n, s = 0) {
|
|
|
1297
1297
|
const i = new Array(512), e = new Array(512);
|
|
1298
1298
|
for (let nt = 0; nt < 512; nt++)
|
|
1299
1299
|
i[nt] = c[nt & 255], e[nt] = i[nt] % 12;
|
|
1300
|
-
const
|
|
1301
|
-
let
|
|
1302
|
-
const b = (t + r + n) *
|
|
1303
|
-
let N = 0,
|
|
1304
|
-
|
|
1305
|
-
const
|
|
1306
|
-
let
|
|
1307
|
-
|
|
1308
|
-
let Q = 0.6 -
|
|
1309
|
-
Q >= 0 && (Q *= Q, d = Q * Q * ur(dr[e[H + N + i[Z +
|
|
1300
|
+
const p = 1 / 3, o = 1 / 6;
|
|
1301
|
+
let h = 0, d = 0, u = 0, l = 0;
|
|
1302
|
+
const b = (t + r + n) * p, y = Math.floor(t + b), m = Math.floor(r + b), g = Math.floor(n + b), M = (y + m + g) * o, S = y - M, $ = m - M, k = g - M, x = t - S, v = r - $, w = n - k;
|
|
1303
|
+
let N = 0, R = 0, V = 0, P = 0, Y = 0, W = 0;
|
|
1304
|
+
x >= v ? v >= w ? (N = 1, R = 0, V = 0, P = 1, Y = 1, W = 0) : x >= w ? (N = 1, R = 0, V = 0, P = 1, Y = 0, W = 1) : (N = 0, R = 0, V = 1, P = 1, Y = 0, W = 1) : v < w ? (N = 0, R = 0, V = 1, P = 0, Y = 1, W = 1) : x < w ? (N = 0, R = 1, V = 0, P = 0, Y = 1, W = 1) : (N = 0, R = 1, V = 0, P = 1, Y = 1, W = 0);
|
|
1305
|
+
const F = x - N + o, C = v - R + o, X = w - V + o, E = x - P + 2 * o, _ = v - Y + 2 * o, z = w - W + 2 * o, U = x - 1 + 3 * o, L = v - 1 + 3 * o, D = w - 1 + 3 * o, H = y & 255, Z = m & 255, j = g & 255;
|
|
1306
|
+
let pt = 0.6 - x * x - v * v - w * w;
|
|
1307
|
+
pt >= 0 && (pt *= pt, h = pt * pt * ur(dr[e[H + i[Z + i[j]]]], x, v, w));
|
|
1308
|
+
let Q = 0.6 - F * F - C * C - X * X;
|
|
1309
|
+
Q >= 0 && (Q *= Q, d = Q * Q * ur(dr[e[H + N + i[Z + R + i[j + V]]]], F, C, X));
|
|
1310
1310
|
let T = 0.6 - E * E - _ * _ - z * z;
|
|
1311
1311
|
T >= 0 && (T *= T, u = T * T * ur(dr[e[H + P + i[Z + Y + i[j + W]]]], E, _, z));
|
|
1312
1312
|
let ot = 0.6 - U * U - L * L - D * D;
|
|
1313
1313
|
ot >= 0 && (ot *= ot, l = ot * ot * ur(dr[e[H + 1 + i[Z + 1 + i[j + 1]]]], U, L, D));
|
|
1314
|
-
const vt = 32 * (
|
|
1314
|
+
const vt = 32 * (h + d + u + l);
|
|
1315
1315
|
return Math.min(1, Math.max(0, (vt + 1) / 2));
|
|
1316
1316
|
}
|
|
1317
1317
|
const Yo = ({
|
|
@@ -1323,28 +1323,28 @@ const Yo = ({
|
|
|
1323
1323
|
to: a = 1,
|
|
1324
1324
|
width: i,
|
|
1325
1325
|
height: e,
|
|
1326
|
-
borderRadius:
|
|
1326
|
+
borderRadius: p,
|
|
1327
1327
|
borderWidth: o,
|
|
1328
|
-
borderColor:
|
|
1328
|
+
borderColor: h,
|
|
1329
1329
|
boxShadow: d,
|
|
1330
1330
|
noiseTileDetails: u
|
|
1331
1331
|
}) => {
|
|
1332
|
-
const l = Nt(), b = typeof r == "number" && !isNaN(r) ? r : l, y = i || 300,
|
|
1332
|
+
const l = Nt(), b = typeof r == "number" && !isNaN(r) ? r : l, y = i || 300, m = e || 300, g = (u == null ? void 0 : u.keepStill) || "both", M = Number((u == null ? void 0 : u.toXRepetitions) ?? (u == null ? void 0 : u.xRepetitions) ?? 5), S = Number((u == null ? void 0 : u.toYRepetitions) ?? (u == null ? void 0 : u.yRepetitions) ?? 5), $ = Number((u == null ? void 0 : u.toGapX) ?? (u == null ? void 0 : u.gapX) ?? 12), k = Number((u == null ? void 0 : u.toGapY) ?? (u == null ? void 0 : u.gapY) ?? 12), x = Number((u == null ? void 0 : u.toScale) ?? (u == null ? void 0 : u.scale) ?? 1), v = Number((u == null ? void 0 : u.toNoiseScale) ?? (u == null ? void 0 : u.noiseScale) ?? 1.5), w = Number((u == null ? void 0 : u.toNoiseMoveX) ?? (u == null ? void 0 : u.noiseMoveX) ?? 0.6), N = Number((u == null ? void 0 : u.toNoiseMoveY) ?? (u == null ? void 0 : u.noiseMoveY) ?? 0.4), R = Number((u == null ? void 0 : u.toFps) ?? (u == null ? void 0 : u.fps) ?? 12), V = Number((u == null ? void 0 : u.toThreshold) ?? (u == null ? void 0 : u.threshold) ?? 0.45), P = Number((u == null ? void 0 : u.toSeedOffset) ?? (u == null ? void 0 : u.seedOffset) ?? 0), Y = !!(u != null && u.hasInitialValue), W = Y ? Number((u == null ? void 0 : u.initialXRepetitions) ?? M) : M, F = Y ? Number((u == null ? void 0 : u.initialYRepetitions) ?? S) : S, C = Y ? Number((u == null ? void 0 : u.initialGapX) ?? $) : $, X = Y ? Number((u == null ? void 0 : u.initialGapY) ?? k) : k, E = Y ? Number((u == null ? void 0 : u.initialScale) ?? x) : x, _ = Y ? Number((u == null ? void 0 : u.initialNoiseScale) ?? v) : v, z = Y ? Number((u == null ? void 0 : u.initialNoiseMoveX) ?? w) : w, U = Y ? Number((u == null ? void 0 : u.initialNoiseMoveY) ?? N) : N, L = Y ? Number((u == null ? void 0 : u.initialFps) ?? R) : R, D = Y ? Number((u == null ? void 0 : u.initialThreshold) ?? V) : V, H = Y ? Number((u == null ? void 0 : u.initialSeedOffset) ?? P) : P, Z = Math.max(0, b - (n || 0)), j = Math.min(1, Math.max(0, Z / (s || 1)));
|
|
1333
1333
|
let Q = c + (a - c) * j;
|
|
1334
1334
|
g === "initial" ? Q = 0 : g === "final" && (Q = 1);
|
|
1335
|
-
const T = Math.max(1, Math.round(O(Q, [0, 1], [W, M]))), ot = Math.max(1, Math.round(O(Q, [0, 1], [
|
|
1335
|
+
const T = Math.max(1, Math.round(O(Q, [0, 1], [W, M]))), ot = Math.max(1, Math.round(O(Q, [0, 1], [F, S]))), vt = O(Q, [0, 1], [C, $]), nt = O(Q, [0, 1], [X, k]), ut = O(Q, [0, 1], [E, x]), it = O(Q, [0, 1], [_, v]), mt = O(Q, [0, 1], [z, w]), ht = O(Q, [0, 1], [U, N]), tt = Math.max(1, Math.round(O(Q, [0, 1], [L, R]))), st = O(Q, [0, 1], [D, V]), et = O(Q, [0, 1], [H, P]), ct = d ? typeof d == "string" ? d : `${d.x ?? 0}px ${d.y ?? 0}px ${d.blur ?? 0}px ${d.color ?? ""}` : void 0, dt = Math.floor(Z * (tt / 30)), ft = (T - 1) / 2, bt = (ot - 1) / 2, $t = [];
|
|
1336
1336
|
for (let lt = 0; lt < ot; lt++)
|
|
1337
1337
|
for (let A = 0; A < T; A++) {
|
|
1338
|
-
const
|
|
1339
|
-
|
|
1340
|
-
Yt + dt *
|
|
1338
|
+
const Ft = A / Math.max(1, T) * it, Yt = lt / Math.max(1, ot) * it, Xt = dt * 0.1 + et, Pt = Sn(
|
|
1339
|
+
Ft + dt * mt * 0.05,
|
|
1340
|
+
Yt + dt * ht * 0.05,
|
|
1341
1341
|
Xt,
|
|
1342
1342
|
et
|
|
1343
|
-
),
|
|
1343
|
+
), Et = A === Math.floor(ft) && lt === Math.floor(bt) || Pt >= st, _t = A - ft, Ut = lt - bt, Zt = vt / 100 * y, Qt = nt / 100 * m, Kt = _t * (y * ut + Zt), Jt = Ut * (m * ut + Qt);
|
|
1344
1344
|
$t.push({
|
|
1345
1345
|
col: A,
|
|
1346
1346
|
row: lt,
|
|
1347
|
-
visible:
|
|
1347
|
+
visible: Et,
|
|
1348
1348
|
posX: Kt,
|
|
1349
1349
|
posY: Jt
|
|
1350
1350
|
});
|
|
@@ -1366,10 +1366,10 @@ const Yo = ({
|
|
|
1366
1366
|
left: "50%",
|
|
1367
1367
|
top: "50%",
|
|
1368
1368
|
width: `${y}px`,
|
|
1369
|
-
height: `${
|
|
1369
|
+
height: `${m}px`,
|
|
1370
1370
|
transform: `translate(-50%, -50%) translate(${lt.posX}px, ${lt.posY}px) scale(${ut})`,
|
|
1371
1371
|
transformOrigin: "center center",
|
|
1372
|
-
borderRadius:
|
|
1372
|
+
borderRadius: p || 0,
|
|
1373
1373
|
boxShadow: ct
|
|
1374
1374
|
},
|
|
1375
1375
|
children: /* @__PURE__ */ gt(
|
|
@@ -1378,7 +1378,7 @@ const Yo = ({
|
|
|
1378
1378
|
style: {
|
|
1379
1379
|
width: "100%",
|
|
1380
1380
|
height: "100%",
|
|
1381
|
-
borderRadius:
|
|
1381
|
+
borderRadius: p || 0,
|
|
1382
1382
|
overflow: "hidden",
|
|
1383
1383
|
position: "relative"
|
|
1384
1384
|
},
|
|
@@ -1404,14 +1404,14 @@ const Yo = ({
|
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
1406
|
),
|
|
1407
|
-
o &&
|
|
1407
|
+
o && h ? /* @__PURE__ */ f(
|
|
1408
1408
|
"div",
|
|
1409
1409
|
{
|
|
1410
1410
|
style: {
|
|
1411
1411
|
position: "absolute",
|
|
1412
1412
|
inset: 0,
|
|
1413
|
-
borderRadius:
|
|
1414
|
-
border: `${o}px solid ${
|
|
1413
|
+
borderRadius: p || 0,
|
|
1414
|
+
border: `${o}px solid ${h}`,
|
|
1415
1415
|
boxSizing: "border-box",
|
|
1416
1416
|
pointerEvents: "none"
|
|
1417
1417
|
}
|
|
@@ -1449,7 +1449,7 @@ function Or(t) {
|
|
|
1449
1449
|
return r.length > 0 ? r : void 0;
|
|
1450
1450
|
}
|
|
1451
1451
|
function Gr(t, r, n = 0, s = 0) {
|
|
1452
|
-
var e,
|
|
1452
|
+
var e, p, o, h;
|
|
1453
1453
|
const c = [], a = /* @__PURE__ */ new Set(), i = [];
|
|
1454
1454
|
if (r) {
|
|
1455
1455
|
const d = [
|
|
@@ -1468,68 +1468,68 @@ function Gr(t, r, n = 0, s = 0) {
|
|
|
1468
1468
|
];
|
|
1469
1469
|
[
|
|
1470
1470
|
...(((e = r == null ? void 0 : r.in) == null ? void 0 : e.composition) || []).map((l) => ({ comp: l, type: "in" })),
|
|
1471
|
-
...(((
|
|
1471
|
+
...(((p = r == null ? void 0 : r.out) == null ? void 0 : p.composition) || []).map((l) => ({ comp: l, type: "out" })),
|
|
1472
1472
|
...(((o = r == null ? void 0 : r.timed) == null ? void 0 : o.composition) || []).map((l) => ({ comp: l, type: "timed" })),
|
|
1473
|
-
...(((
|
|
1473
|
+
...(((h = r == null ? void 0 : r.loop) == null ? void 0 : h.composition) || []).map((l) => ({ comp: l, type: "loop" }))
|
|
1474
1474
|
].forEach(({ comp: l, type: b }) => {
|
|
1475
1475
|
if (!l) return;
|
|
1476
1476
|
const y = l.property;
|
|
1477
1477
|
if (d.includes(y)) {
|
|
1478
|
-
const
|
|
1479
|
-
let k = !1,
|
|
1478
|
+
const m = l.delay ?? 0, g = Math.max(1, l.durationInFrames ?? 30), M = b === "out" ? Math.max(0, s - g - m) : m, S = M + g, $ = (v) => v === "contrast" || v === "brightness" || v === "saturation" ? 100 : v === "pixelate" ? 1 : 0;
|
|
1479
|
+
let k = !1, x = $(y);
|
|
1480
1480
|
if (n >= M && n <= S) {
|
|
1481
1481
|
k = !0;
|
|
1482
1482
|
const v = Math.min(
|
|
1483
1483
|
1,
|
|
1484
1484
|
Math.max(0, (n - M) / g)
|
|
1485
1485
|
), w = Number(l.from ?? $(y)), N = Number(l.to ?? $(y));
|
|
1486
|
-
|
|
1487
|
-
} else n > S && l.persist === !0 && (k = !0,
|
|
1486
|
+
x = w + (N - w) * v;
|
|
1487
|
+
} else n > S && l.persist === !0 && (k = !0, x = Number(l.to ?? $(y)));
|
|
1488
1488
|
if (!k) return;
|
|
1489
1489
|
switch (a.add(y), y) {
|
|
1490
1490
|
case "blur":
|
|
1491
|
-
i.push({ type: "blur", radius:
|
|
1491
|
+
i.push({ type: "blur", radius: x });
|
|
1492
1492
|
break;
|
|
1493
1493
|
case "vignette":
|
|
1494
1494
|
i.push({
|
|
1495
1495
|
type: "vignette",
|
|
1496
1496
|
radius: 0.5,
|
|
1497
|
-
amount:
|
|
1498
|
-
intensity:
|
|
1497
|
+
amount: x,
|
|
1498
|
+
intensity: x
|
|
1499
1499
|
});
|
|
1500
1500
|
break;
|
|
1501
1501
|
case "chromaticAberration":
|
|
1502
|
-
i.push({ type: "chromaticAberration", offset:
|
|
1502
|
+
i.push({ type: "chromaticAberration", offset: x });
|
|
1503
1503
|
break;
|
|
1504
1504
|
case "noise":
|
|
1505
|
-
i.push({ type: "noise", speed: 1, amount:
|
|
1505
|
+
i.push({ type: "noise", speed: 1, amount: x });
|
|
1506
1506
|
break;
|
|
1507
1507
|
case "pixelate":
|
|
1508
|
-
i.push({ type: "pixelate", size: Math.max(1,
|
|
1508
|
+
i.push({ type: "pixelate", size: Math.max(1, x) });
|
|
1509
1509
|
break;
|
|
1510
1510
|
case "grayscale":
|
|
1511
|
-
i.push({ type: "grayscale", amount:
|
|
1511
|
+
i.push({ type: "grayscale", amount: x / 100 });
|
|
1512
1512
|
break;
|
|
1513
1513
|
case "contrast":
|
|
1514
|
-
i.push({ type: "contrast", amount:
|
|
1514
|
+
i.push({ type: "contrast", amount: x / 100 });
|
|
1515
1515
|
break;
|
|
1516
1516
|
case "brightness":
|
|
1517
1517
|
i.push({
|
|
1518
1518
|
type: "brightness",
|
|
1519
|
-
amount: (
|
|
1519
|
+
amount: (x - 100) / 100
|
|
1520
1520
|
});
|
|
1521
1521
|
break;
|
|
1522
1522
|
case "hue":
|
|
1523
|
-
i.push({ type: "hue", rotation:
|
|
1523
|
+
i.push({ type: "hue", rotation: x });
|
|
1524
1524
|
break;
|
|
1525
1525
|
case "saturation":
|
|
1526
|
-
i.push({ type: "saturation", amount:
|
|
1526
|
+
i.push({ type: "saturation", amount: x / 100 });
|
|
1527
1527
|
break;
|
|
1528
1528
|
case "lightLeak":
|
|
1529
1529
|
i.push({
|
|
1530
1530
|
type: "lightLeak",
|
|
1531
|
-
progress:
|
|
1532
|
-
intensity:
|
|
1531
|
+
progress: x,
|
|
1532
|
+
intensity: x
|
|
1533
1533
|
});
|
|
1534
1534
|
break;
|
|
1535
1535
|
case "duotone": {
|
|
@@ -1629,11 +1629,11 @@ function Mn(t) {
|
|
|
1629
1629
|
overlays: n
|
|
1630
1630
|
};
|
|
1631
1631
|
}
|
|
1632
|
-
var Tt = {}, wn = {},
|
|
1633
|
-
Object.defineProperty(
|
|
1632
|
+
var Tt = {}, wn = {}, Vt = {};
|
|
1633
|
+
Object.defineProperty(Vt, "__esModule", {
|
|
1634
1634
|
value: !0
|
|
1635
1635
|
});
|
|
1636
|
-
|
|
1636
|
+
Vt.loop = Vt.conditional = Vt.parse = void 0;
|
|
1637
1637
|
var Xo = function t(r, n) {
|
|
1638
1638
|
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, c = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : s;
|
|
1639
1639
|
if (Array.isArray(n))
|
|
@@ -1648,25 +1648,25 @@ var Xo = function t(r, n) {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
return s;
|
|
1650
1650
|
};
|
|
1651
|
-
|
|
1651
|
+
Vt.parse = Xo;
|
|
1652
1652
|
var Bo = function(r, n) {
|
|
1653
1653
|
return function(s, c, a, i) {
|
|
1654
1654
|
n(s, c, a) && i(s, r, c, a);
|
|
1655
1655
|
};
|
|
1656
1656
|
};
|
|
1657
|
-
|
|
1657
|
+
Vt.conditional = Bo;
|
|
1658
1658
|
var Po = function(r, n) {
|
|
1659
1659
|
return function(s, c, a, i) {
|
|
1660
|
-
for (var e = [],
|
|
1660
|
+
for (var e = [], p = s.pos; n(s, c, a); ) {
|
|
1661
1661
|
var o = {};
|
|
1662
|
-
if (i(s, r, c, o), s.pos ===
|
|
1662
|
+
if (i(s, r, c, o), s.pos === p)
|
|
1663
1663
|
break;
|
|
1664
|
-
|
|
1664
|
+
p = s.pos, e.push(o);
|
|
1665
1665
|
}
|
|
1666
1666
|
return e;
|
|
1667
1667
|
};
|
|
1668
1668
|
};
|
|
1669
|
-
|
|
1669
|
+
Vt.loop = Po;
|
|
1670
1670
|
var St = {};
|
|
1671
1671
|
Object.defineProperty(St, "__esModule", {
|
|
1672
1672
|
value: !0
|
|
@@ -1721,9 +1721,9 @@ var Co = function(r) {
|
|
|
1721
1721
|
St.readUnsigned = Co;
|
|
1722
1722
|
var Oo = function(r, n) {
|
|
1723
1723
|
return function(s, c, a) {
|
|
1724
|
-
for (var i = typeof n == "function" ? n(s, c, a) : n, e = br(r),
|
|
1725
|
-
|
|
1726
|
-
return
|
|
1724
|
+
for (var i = typeof n == "function" ? n(s, c, a) : n, e = br(r), p = new Array(i), o = 0; o < i; o++)
|
|
1725
|
+
p[o] = e(s);
|
|
1726
|
+
return p;
|
|
1727
1727
|
};
|
|
1728
1728
|
};
|
|
1729
1729
|
St.readArray = Oo;
|
|
@@ -1736,8 +1736,8 @@ var Go = function(r, n, s) {
|
|
|
1736
1736
|
for (var s = In()(n), c = new Array(8), a = 0; a < 8; a++)
|
|
1737
1737
|
c[7 - a] = !!(s & 1 << a);
|
|
1738
1738
|
return Object.keys(r).reduce(function(i, e) {
|
|
1739
|
-
var
|
|
1740
|
-
return
|
|
1739
|
+
var p = r[e];
|
|
1740
|
+
return p.length ? i[e] = Go(c, p.index, p.length) : i[e] = c[p.index], i;
|
|
1741
1741
|
}, {});
|
|
1742
1742
|
};
|
|
1743
1743
|
};
|
|
@@ -1746,17 +1746,17 @@ St.readBits = zo;
|
|
|
1746
1746
|
Object.defineProperty(t, "__esModule", {
|
|
1747
1747
|
value: !0
|
|
1748
1748
|
}), t.default = void 0;
|
|
1749
|
-
var r =
|
|
1749
|
+
var r = Vt, n = St, s = {
|
|
1750
1750
|
blocks: function(u) {
|
|
1751
|
-
for (var l = 0, b = [], y = u.data.length,
|
|
1751
|
+
for (var l = 0, b = [], y = u.data.length, m = 0, g = (0, n.readByte)()(u); g !== l && g; g = (0, n.readByte)()(u)) {
|
|
1752
1752
|
if (u.pos + g >= y) {
|
|
1753
1753
|
var M = y - u.pos;
|
|
1754
|
-
b.push((0, n.readBytes)(M)(u)),
|
|
1754
|
+
b.push((0, n.readBytes)(M)(u)), m += M;
|
|
1755
1755
|
break;
|
|
1756
1756
|
}
|
|
1757
|
-
b.push((0, n.readBytes)(g)(u)),
|
|
1757
|
+
b.push((0, n.readBytes)(g)(u)), m += g;
|
|
1758
1758
|
}
|
|
1759
|
-
for (var S = new Uint8Array(
|
|
1759
|
+
for (var S = new Uint8Array(m), $ = 0, k = 0; k < b.length; k++)
|
|
1760
1760
|
S.set(b[k], $), $ += b[k].length;
|
|
1761
1761
|
return S;
|
|
1762
1762
|
}
|
|
@@ -1864,7 +1864,7 @@ St.readBits = zo;
|
|
|
1864
1864
|
}, function(d) {
|
|
1865
1865
|
var u = (0, n.peekBytes)(2)(d);
|
|
1866
1866
|
return u[0] === 33 && u[1] === 255;
|
|
1867
|
-
}),
|
|
1867
|
+
}), p = (0, r.conditional)({
|
|
1868
1868
|
comment: [{
|
|
1869
1869
|
codes: (0, n.readBytes)(2)
|
|
1870
1870
|
}, s]
|
|
@@ -1916,13 +1916,13 @@ St.readBits = zo;
|
|
|
1916
1916
|
}),
|
|
1917
1917
|
// content frames
|
|
1918
1918
|
{
|
|
1919
|
-
frames: (0, r.loop)([c, e,
|
|
1919
|
+
frames: (0, r.loop)([c, e, p, a, i], function(d) {
|
|
1920
1920
|
var u = (0, n.peekByte)()(d);
|
|
1921
1921
|
return u === 33 || u === 44;
|
|
1922
1922
|
})
|
|
1923
1923
|
}
|
|
1924
|
-
],
|
|
1925
|
-
t.default =
|
|
1924
|
+
], h = o;
|
|
1925
|
+
t.default = h;
|
|
1926
1926
|
})(wn);
|
|
1927
1927
|
var vr = {};
|
|
1928
1928
|
Object.defineProperty(vr, "__esModule", {
|
|
@@ -1933,9 +1933,9 @@ var jo = function(r, n) {
|
|
|
1933
1933
|
for (var s = new Array(r.length), c = r.length / n, a = function(u, l) {
|
|
1934
1934
|
var b = r.slice(l * n, (l + 1) * n);
|
|
1935
1935
|
s.splice.apply(s, [u * n, n].concat(b));
|
|
1936
|
-
}, i = [0, 4, 2, 1], e = [8, 8, 4, 2],
|
|
1937
|
-
for (var
|
|
1938
|
-
a(
|
|
1936
|
+
}, i = [0, 4, 2, 1], e = [8, 8, 4, 2], p = 0, o = 0; o < 4; o++)
|
|
1937
|
+
for (var h = i[o]; h < c; h += e[o])
|
|
1938
|
+
a(h, p), p++;
|
|
1939
1939
|
return s;
|
|
1940
1940
|
};
|
|
1941
1941
|
vr.deinterlace = jo;
|
|
@@ -1945,29 +1945,29 @@ Object.defineProperty(gr, "__esModule", {
|
|
|
1945
1945
|
});
|
|
1946
1946
|
gr.lzw = void 0;
|
|
1947
1947
|
var Ao = function(r, n, s) {
|
|
1948
|
-
var c = 4096, a = -1, i = s, e,
|
|
1949
|
-
for (
|
|
1948
|
+
var c = 4096, a = -1, i = s, e, p, o, h, d, u, l, x, b, y, k, m, v, w, R, N, g = new Array(s), M = new Array(c), S = new Array(c), $ = new Array(c + 1);
|
|
1949
|
+
for (m = r, p = 1 << m, d = p + 1, e = p + 2, l = a, h = m + 1, o = (1 << h) - 1, b = 0; b < p; b++)
|
|
1950
1950
|
M[b] = 0, S[b] = b;
|
|
1951
|
-
var k,
|
|
1952
|
-
for (k =
|
|
1951
|
+
var k, x, v, w, N, R;
|
|
1952
|
+
for (k = x = v = w = N = R = 0, y = 0; y < i; ) {
|
|
1953
1953
|
if (w === 0) {
|
|
1954
|
-
if (
|
|
1955
|
-
k += n[
|
|
1954
|
+
if (x < h) {
|
|
1955
|
+
k += n[R] << x, x += 8, R++;
|
|
1956
1956
|
continue;
|
|
1957
1957
|
}
|
|
1958
|
-
if (b = k & o, k >>=
|
|
1958
|
+
if (b = k & o, k >>= h, x -= h, b > e || b == d)
|
|
1959
1959
|
break;
|
|
1960
|
-
if (b ==
|
|
1961
|
-
|
|
1960
|
+
if (b == p) {
|
|
1961
|
+
h = m + 1, o = (1 << h) - 1, e = p + 2, l = a;
|
|
1962
1962
|
continue;
|
|
1963
1963
|
}
|
|
1964
1964
|
if (l == a) {
|
|
1965
1965
|
$[w++] = S[b], l = b, v = b;
|
|
1966
1966
|
continue;
|
|
1967
1967
|
}
|
|
1968
|
-
for (u = b, b == e && ($[w++] = v, b = l); b >
|
|
1968
|
+
for (u = b, b == e && ($[w++] = v, b = l); b > p; )
|
|
1969
1969
|
$[w++] = S[b], b = M[b];
|
|
1970
|
-
v = S[b] & 255, $[w++] = v, e < c && (M[e] = l, S[e] = v, e++, !(e & o) && e < c && (
|
|
1970
|
+
v = S[b] & 255, $[w++] = v, e < c && (M[e] = l, S[e] = v, e++, !(e & o) && e < c && (h++, o += e)), l = u;
|
|
1971
1971
|
}
|
|
1972
1972
|
w--, g[N++] = $[w], y++;
|
|
1973
1973
|
}
|
|
@@ -1979,7 +1979,7 @@ gr.lzw = Ao;
|
|
|
1979
1979
|
Object.defineProperty(Tt, "__esModule", {
|
|
1980
1980
|
value: !0
|
|
1981
1981
|
});
|
|
1982
|
-
var kn = Tt.decompressFrames = Tt.decompressFrame = Nn = Tt.parseGIF = void 0, Lo = Ko(wn), Ho =
|
|
1982
|
+
var kn = Tt.decompressFrames = Tt.decompressFrame = Nn = Tt.parseGIF = void 0, Lo = Ko(wn), Ho = Vt, Uo = St, Zo = vr, Qo = gr;
|
|
1983
1983
|
function Ko(t) {
|
|
1984
1984
|
return t && t.__esModule ? t : { default: t };
|
|
1985
1985
|
}
|
|
@@ -1992,7 +1992,7 @@ var Jo = function(r) {
|
|
|
1992
1992
|
s[a] = e[0], s[a + 1] = e[1], s[a + 2] = e[2], s[a + 3] = i !== r.transparentIndex ? 255 : 0;
|
|
1993
1993
|
}
|
|
1994
1994
|
return s;
|
|
1995
|
-
},
|
|
1995
|
+
}, Rn = function(r, n, s) {
|
|
1996
1996
|
if (!r.image) {
|
|
1997
1997
|
console.warn("gif frame does not have associated image.");
|
|
1998
1998
|
return;
|
|
@@ -2010,12 +2010,12 @@ var Jo = function(r) {
|
|
|
2010
2010
|
};
|
|
2011
2011
|
return c.descriptor.lct && c.descriptor.lct.exists ? e.colorTable = c.lct : e.colorTable = n, r.gce && (e.delay = (r.gce.delay || 10) * 10, e.disposalType = r.gce.extras.disposal, r.gce.extras.transparentColorGiven && (e.transparentIndex = r.gce.transparentColorIndex)), s && (e.patch = To(e)), e;
|
|
2012
2012
|
};
|
|
2013
|
-
Tt.decompressFrame =
|
|
2013
|
+
Tt.decompressFrame = Rn;
|
|
2014
2014
|
var qo = function(r, n) {
|
|
2015
2015
|
return r.frames.filter(function(s) {
|
|
2016
2016
|
return s.image;
|
|
2017
2017
|
}).map(function(s) {
|
|
2018
|
-
return
|
|
2018
|
+
return Rn(s, r.gct, n);
|
|
2019
2019
|
});
|
|
2020
2020
|
};
|
|
2021
2021
|
kn = Tt.decompressFrames = qo;
|
|
@@ -2028,28 +2028,28 @@ const Sr = /* @__PURE__ */ new Map(), Do = (t) => !!t && t.split("?")[0].toLower
|
|
|
2028
2028
|
throw new Error(`GIF has no frames: ${t}`);
|
|
2029
2029
|
const e = document.createElement("canvas");
|
|
2030
2030
|
e.width = a, e.height = i;
|
|
2031
|
-
const
|
|
2032
|
-
if (!h)
|
|
2033
|
-
throw new Error("Could not create GIF canvas context");
|
|
2034
|
-
const o = document.createElement("canvas"), p = o.getContext("2d");
|
|
2031
|
+
const p = e.getContext("2d");
|
|
2035
2032
|
if (!p)
|
|
2033
|
+
throw new Error("Could not create GIF canvas context");
|
|
2034
|
+
const o = document.createElement("canvas"), h = o.getContext("2d");
|
|
2035
|
+
if (!h)
|
|
2036
2036
|
throw new Error("Could not create temp GIF canvas context");
|
|
2037
|
-
|
|
2037
|
+
p.clearRect(0, 0, a, i);
|
|
2038
2038
|
const d = [], u = [];
|
|
2039
2039
|
return c.forEach((l) => {
|
|
2040
|
-
const b = l.disposalType === 3 ?
|
|
2040
|
+
const b = l.disposalType === 3 ? p.getImageData(0, 0, a, i) : null;
|
|
2041
2041
|
o.width = l.dims.width, o.height = l.dims.height;
|
|
2042
2042
|
const y = new ImageData(
|
|
2043
2043
|
new Uint8ClampedArray(l.patch),
|
|
2044
2044
|
l.dims.width,
|
|
2045
2045
|
l.dims.height
|
|
2046
2046
|
);
|
|
2047
|
-
|
|
2047
|
+
h.putImageData(y, 0, 0), p.drawImage(o, l.dims.left, l.dims.top), d.push(e.toDataURL("image/png")), u.push(te(l.delay || 0)), l.disposalType === 2 ? p.clearRect(
|
|
2048
2048
|
l.dims.left,
|
|
2049
2049
|
l.dims.top,
|
|
2050
2050
|
l.dims.width,
|
|
2051
2051
|
l.dims.height
|
|
2052
|
-
) : l.disposalType === 3 && b &&
|
|
2052
|
+
) : l.disposalType === 3 && b && p.putImageData(b, 0, 0);
|
|
2053
2053
|
}), {
|
|
2054
2054
|
width: a,
|
|
2055
2055
|
height: i,
|
|
@@ -2077,26 +2077,26 @@ const Sr = /* @__PURE__ */ new Map(), Do = (t) => !!t && t.split("?")[0].toLower
|
|
|
2077
2077
|
}, ee = ({ src: t, alt: r = "gif", style: n, playbackRate: s }) => {
|
|
2078
2078
|
const c = Nt(), { fps: a } = ln(), [i, e] = fr(null);
|
|
2079
2079
|
if (sr(() => {
|
|
2080
|
-
const
|
|
2080
|
+
const h = oo(`Decoding GIF ${t}`);
|
|
2081
2081
|
let d = !1;
|
|
2082
2082
|
return ne(t).then((u) => {
|
|
2083
|
-
d || (e(u), Lr(
|
|
2083
|
+
d || (e(u), Lr(h));
|
|
2084
2084
|
}).catch((u) => {
|
|
2085
2085
|
d || eo(u instanceof Error ? u : new Error(String(u)));
|
|
2086
2086
|
}), () => {
|
|
2087
|
-
d = !0, Lr(
|
|
2087
|
+
d = !0, Lr(h);
|
|
2088
2088
|
};
|
|
2089
2089
|
}, [t]), !i)
|
|
2090
2090
|
return null;
|
|
2091
|
-
const
|
|
2091
|
+
const p = c / a * 1e3 * s, o = oe(p, i);
|
|
2092
2092
|
return /* @__PURE__ */ f(qt, { src: i.frames[o], alt: r, style: n });
|
|
2093
2093
|
};
|
|
2094
|
-
function
|
|
2094
|
+
function Fn({
|
|
2095
2095
|
item: t,
|
|
2096
2096
|
options: r
|
|
2097
2097
|
}) {
|
|
2098
|
-
var nt, ut, it, mt,
|
|
2099
|
-
const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, e = t.playbackRate || 1, { animationIn:
|
|
2098
|
+
var nt, ut, it, mt, ht, tt, st, et, ct, dt, ft, bt, $t, lt;
|
|
2099
|
+
const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, e = t.playbackRate || 1, { animationIn: p, animationOut: o, animationTimed: h } = Rt(
|
|
2100
2100
|
i,
|
|
2101
2101
|
t,
|
|
2102
2102
|
s,
|
|
@@ -2107,27 +2107,27 @@ function Rn({
|
|
|
2107
2107
|
y: 0,
|
|
2108
2108
|
width: a.width,
|
|
2109
2109
|
height: a.height
|
|
2110
|
-
}, u = a.borderWidth || 0, l = a.width || 0, b = a.height || 0, y = (d.x || 0) + u,
|
|
2111
|
-
${
|
|
2110
|
+
}, u = a.borderWidth || 0, l = a.width || 0, b = a.height || 0, y = (d.x || 0) + u, m = (d.y || 0) + u, g = l - (d.x || 0) - (d.width || l) + u, M = b - (d.y || 0) - (d.height || b) + u, S = Math.min(d.width || l, d.height || b) * ((a.borderRadius || 0) / 100), $ = Math.max(0, S - u), k = `inset(
|
|
2111
|
+
${m}px
|
|
2112
2112
|
${g}px
|
|
2113
2113
|
${M}px
|
|
2114
2114
|
${y}px round ${$}px
|
|
2115
|
-
)`, { durationInFrames:
|
|
2115
|
+
)`, { durationInFrames: x } = wt(t.display, n), v = (s || 0) - t.display.from * n / 1e3, w = Ot(a, d, {}), { WebkitTextStroke: N } = w, R = fn(a, d), V = Gr(
|
|
2116
2116
|
a.effects,
|
|
2117
2117
|
i,
|
|
2118
2118
|
v,
|
|
2119
|
-
|
|
2120
|
-
), P = Or(V), { filter: Y, overlays: W } = Mn(V),
|
|
2119
|
+
x
|
|
2120
|
+
), P = Or(V), { filter: Y, overlays: W } = Mn(V), F = a.width || d.width || 300, C = a.height || d.height || 300, X = Do(a.src), E = (ut = (nt = i == null ? void 0 : i.loop) == null ? void 0 : nt.composition) == null ? void 0 : ut.find(
|
|
2121
2121
|
(A) => A.property === "textGridMarqueeTextAnimationLoop" || A.property === "textGridMarquee" || A.property === "imageGridMarqueeTextAnimationLoop" || A.property === "imageGridMarquee" || A.id === "textGridMarquee" || A.id === "imageGridMarquee"
|
|
2122
2122
|
), _ = !!(E && v >= (E.delay || 0) && v <= (E.delay || 0) + (E.durationInFrames || 60)), z = (mt = (it = i == null ? void 0 : i.loop) == null ? void 0 : it.composition) == null ? void 0 : mt.find(
|
|
2123
2123
|
(A) => A.property === "inwardEchoes" || A.id === "inwardEchoes"
|
|
2124
|
-
), U = !!(z && v >= (z.delay || 0) && v <= (z.delay || 0) + (z.durationInFrames || 120)), L = (tt = (
|
|
2124
|
+
), U = !!(z && v >= (z.delay || 0) && v <= (z.delay || 0) + (z.durationInFrames || 120)), L = (tt = (ht = i == null ? void 0 : i.loop) == null ? void 0 : ht.composition) == null ? void 0 : tt.find(
|
|
2125
2125
|
(A) => A.property === "wiggle" || A.id === "wiggle"
|
|
2126
2126
|
), D = !!(L && v >= (L.delay || 0) && v <= (L.delay || 0) + (L.durationInFrames || 120)), H = (et = (st = i == null ? void 0 : i.loop) == null ? void 0 : st.composition) == null ? void 0 : et.find(
|
|
2127
2127
|
(A) => A.property === "cardFlip" || A.id === "cardFlip"
|
|
2128
2128
|
), Z = !!(H && v >= (H.delay || 0) && v <= (H.delay || 0) + (H.durationInFrames || 120)), j = (dt = (ct = i == null ? void 0 : i.loop) == null ? void 0 : ct.composition) == null ? void 0 : dt.find(
|
|
2129
2129
|
(A) => A.property === "noiseTile" || A.id === "noiseTile"
|
|
2130
|
-
),
|
|
2130
|
+
), pt = !!(j && v >= (j.delay || 0) && v <= (j.delay || 0) + (j.durationInFrames || 120)), Q = [
|
|
2131
2131
|
...((ft = i == null ? void 0 : i.in) == null ? void 0 : ft.composition) || [],
|
|
2132
2132
|
...((bt = i == null ? void 0 : i.out) == null ? void 0 : bt.composition) || [],
|
|
2133
2133
|
...(($t = i == null ? void 0 : i.timed) == null ? void 0 : $t.composition) || [],
|
|
@@ -2141,9 +2141,9 @@ function Rn({
|
|
|
2141
2141
|
durationInFrames: E == null ? void 0 : E.durationInFrames,
|
|
2142
2142
|
from: E == null ? void 0 : E.from,
|
|
2143
2143
|
to: E == null ? void 0 : E.to,
|
|
2144
|
-
width:
|
|
2144
|
+
width: F,
|
|
2145
2145
|
height: C,
|
|
2146
|
-
borderRadius:
|
|
2146
|
+
borderRadius: R.borderRadius,
|
|
2147
2147
|
borderWidth: a.borderWidth,
|
|
2148
2148
|
borderColor: a.borderColor,
|
|
2149
2149
|
boxShadow: a.boxShadow,
|
|
@@ -2159,9 +2159,9 @@ function Rn({
|
|
|
2159
2159
|
durationInFrames: z == null ? void 0 : z.durationInFrames,
|
|
2160
2160
|
from: z == null ? void 0 : z.from,
|
|
2161
2161
|
to: z == null ? void 0 : z.to,
|
|
2162
|
-
width:
|
|
2162
|
+
width: F,
|
|
2163
2163
|
height: C,
|
|
2164
|
-
borderRadius:
|
|
2164
|
+
borderRadius: R.borderRadius,
|
|
2165
2165
|
borderWidth: a.borderWidth,
|
|
2166
2166
|
borderColor: a.borderColor,
|
|
2167
2167
|
boxShadow: a.boxShadow,
|
|
@@ -2177,9 +2177,9 @@ function Rn({
|
|
|
2177
2177
|
durationInFrames: L == null ? void 0 : L.durationInFrames,
|
|
2178
2178
|
from: L == null ? void 0 : L.from,
|
|
2179
2179
|
to: L == null ? void 0 : L.to,
|
|
2180
|
-
width:
|
|
2180
|
+
width: F,
|
|
2181
2181
|
height: C,
|
|
2182
|
-
borderRadius:
|
|
2182
|
+
borderRadius: R.borderRadius,
|
|
2183
2183
|
borderWidth: a.borderWidth,
|
|
2184
2184
|
borderColor: a.borderColor,
|
|
2185
2185
|
boxShadow: a.boxShadow,
|
|
@@ -2187,7 +2187,7 @@ function Rn({
|
|
|
2187
2187
|
wiggleDetails: L == null ? void 0 : L.details
|
|
2188
2188
|
}
|
|
2189
2189
|
) : Z ? /* @__PURE__ */ f(
|
|
2190
|
-
|
|
2190
|
+
Fo,
|
|
2191
2191
|
{
|
|
2192
2192
|
src: a.src,
|
|
2193
2193
|
frame: v,
|
|
@@ -2195,9 +2195,9 @@ function Rn({
|
|
|
2195
2195
|
durationInFrames: H == null ? void 0 : H.durationInFrames,
|
|
2196
2196
|
from: H == null ? void 0 : H.from,
|
|
2197
2197
|
to: H == null ? void 0 : H.to,
|
|
2198
|
-
width:
|
|
2198
|
+
width: F,
|
|
2199
2199
|
height: C,
|
|
2200
|
-
borderRadius:
|
|
2200
|
+
borderRadius: R.borderRadius,
|
|
2201
2201
|
borderWidth: a.borderWidth,
|
|
2202
2202
|
borderColor: a.borderColor,
|
|
2203
2203
|
boxShadow: a.boxShadow,
|
|
@@ -2206,7 +2206,7 @@ function Rn({
|
|
|
2206
2206
|
activeEffects: V,
|
|
2207
2207
|
effects: P
|
|
2208
2208
|
}
|
|
2209
|
-
) :
|
|
2209
|
+
) : pt ? /* @__PURE__ */ f(
|
|
2210
2210
|
Yo,
|
|
2211
2211
|
{
|
|
2212
2212
|
src: a.src,
|
|
@@ -2215,9 +2215,9 @@ function Rn({
|
|
|
2215
2215
|
durationInFrames: j == null ? void 0 : j.durationInFrames,
|
|
2216
2216
|
from: j == null ? void 0 : j.from,
|
|
2217
2217
|
to: j == null ? void 0 : j.to,
|
|
2218
|
-
width:
|
|
2218
|
+
width: F,
|
|
2219
2219
|
height: C,
|
|
2220
|
-
borderRadius:
|
|
2220
|
+
borderRadius: R.borderRadius,
|
|
2221
2221
|
borderWidth: a.borderWidth,
|
|
2222
2222
|
borderColor: a.borderColor,
|
|
2223
2223
|
boxShadow: a.boxShadow,
|
|
@@ -2230,7 +2230,7 @@ function Rn({
|
|
|
2230
2230
|
src: a.src,
|
|
2231
2231
|
playbackRate: e,
|
|
2232
2232
|
style: {
|
|
2233
|
-
borderRadius:
|
|
2233
|
+
borderRadius: R.borderRadius,
|
|
2234
2234
|
width: "100%",
|
|
2235
2235
|
height: "100%",
|
|
2236
2236
|
filter: Y || void 0
|
|
@@ -2245,12 +2245,12 @@ function Rn({
|
|
|
2245
2245
|
width: "100%",
|
|
2246
2246
|
height: "100%",
|
|
2247
2247
|
objectFit: "cover",
|
|
2248
|
-
borderRadius:
|
|
2248
|
+
borderRadius: R.borderRadius,
|
|
2249
2249
|
filter: Y || void 0,
|
|
2250
2250
|
clipPath: u > 0 || d.x || d.y ? k : void 0
|
|
2251
2251
|
}
|
|
2252
2252
|
}
|
|
2253
|
-
), ot = _ || U || D || Z ||
|
|
2253
|
+
), ot = _ || U || D || Z || pt, vt = /* @__PURE__ */ f(
|
|
2254
2254
|
Lt,
|
|
2255
2255
|
{
|
|
2256
2256
|
style: {
|
|
@@ -2259,16 +2259,16 @@ function Rn({
|
|
|
2259
2259
|
boxShadow: void 0,
|
|
2260
2260
|
WebkitTextStroke: N
|
|
2261
2261
|
},
|
|
2262
|
-
animationIn:
|
|
2262
|
+
animationIn: p,
|
|
2263
2263
|
animationOut: o,
|
|
2264
2264
|
frame: v,
|
|
2265
|
-
durationInFrames:
|
|
2265
|
+
durationInFrames: x,
|
|
2266
2266
|
isTransition: c,
|
|
2267
2267
|
children: /* @__PURE__ */ f(
|
|
2268
2268
|
Ht,
|
|
2269
2269
|
{
|
|
2270
|
-
animationTimed:
|
|
2271
|
-
durationInFrames:
|
|
2270
|
+
animationTimed: h,
|
|
2271
|
+
durationInFrames: x,
|
|
2272
2272
|
frame: v,
|
|
2273
2273
|
style: {
|
|
2274
2274
|
...w,
|
|
@@ -2281,7 +2281,7 @@ function Rn({
|
|
|
2281
2281
|
item: t,
|
|
2282
2282
|
keyframeAnimations: Q,
|
|
2283
2283
|
frame: v,
|
|
2284
|
-
durationInFrames:
|
|
2284
|
+
durationInFrames: x,
|
|
2285
2285
|
children: /* @__PURE__ */ gt(
|
|
2286
2286
|
"div",
|
|
2287
2287
|
{
|
|
@@ -2291,7 +2291,7 @@ function Rn({
|
|
|
2291
2291
|
height: "100%"
|
|
2292
2292
|
},
|
|
2293
2293
|
children: [
|
|
2294
|
-
!_ && !U && !D && !Z && !
|
|
2294
|
+
!_ && !U && !D && !Z && !pt && a.boxShadow && /* @__PURE__ */ f(
|
|
2295
2295
|
"div",
|
|
2296
2296
|
{
|
|
2297
2297
|
style: {
|
|
@@ -2300,7 +2300,7 @@ function Rn({
|
|
|
2300
2300
|
left: 0,
|
|
2301
2301
|
width: "100%",
|
|
2302
2302
|
height: "100%",
|
|
2303
|
-
borderRadius:
|
|
2303
|
+
borderRadius: R.borderRadius,
|
|
2304
2304
|
boxShadow: `${a.boxShadow.x}px ${a.boxShadow.y}px ${a.boxShadow.blur}px ${a.boxShadow.color}`,
|
|
2305
2305
|
pointerEvents: "none"
|
|
2306
2306
|
}
|
|
@@ -2319,22 +2319,22 @@ function Rn({
|
|
|
2319
2319
|
height: "100%",
|
|
2320
2320
|
position: "relative",
|
|
2321
2321
|
overflow: ot ? "visible" : "hidden",
|
|
2322
|
-
borderRadius:
|
|
2322
|
+
borderRadius: R.borderRadius
|
|
2323
2323
|
},
|
|
2324
2324
|
children: [
|
|
2325
2325
|
/* @__PURE__ */ gt(
|
|
2326
2326
|
"div",
|
|
2327
2327
|
{
|
|
2328
2328
|
style: {
|
|
2329
|
-
...
|
|
2329
|
+
...R,
|
|
2330
2330
|
overflow: "visible",
|
|
2331
|
-
boxShadow: _ ? "none" :
|
|
2331
|
+
boxShadow: _ ? "none" : R.boxShadow
|
|
2332
2332
|
},
|
|
2333
2333
|
children: [
|
|
2334
2334
|
P ? /* @__PURE__ */ f(
|
|
2335
2335
|
Vr,
|
|
2336
2336
|
{
|
|
2337
|
-
width:
|
|
2337
|
+
width: F,
|
|
2338
2338
|
height: C,
|
|
2339
2339
|
effects: P,
|
|
2340
2340
|
children: T()
|
|
@@ -2344,7 +2344,7 @@ function Rn({
|
|
|
2344
2344
|
]
|
|
2345
2345
|
}
|
|
2346
2346
|
),
|
|
2347
|
-
!_ && !U && !D && !Z && !
|
|
2347
|
+
!_ && !U && !D && !Z && !pt && !!a.borderWidth && /* @__PURE__ */ f(
|
|
2348
2348
|
"div",
|
|
2349
2349
|
{
|
|
2350
2350
|
style: {
|
|
@@ -2371,42 +2371,51 @@ const Yn = ({
|
|
|
2371
2371
|
item: t,
|
|
2372
2372
|
options: r
|
|
2373
2373
|
}) => {
|
|
2374
|
-
var
|
|
2375
|
-
const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed:
|
|
2374
|
+
var m, g, M, S;
|
|
2375
|
+
const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: p } = Rt(
|
|
2376
2376
|
a,
|
|
2377
2377
|
t,
|
|
2378
2378
|
s,
|
|
2379
2379
|
n,
|
|
2380
2380
|
r
|
|
2381
|
-
), { durationInFrames: o } = wt(t.display, n),
|
|
2381
|
+
), { durationInFrames: o } = wt(t.display, n), h = (s || 0) - t.display.from * n / 1e3, d = Ot(c), u = d.borderRadius, l = c.borderWidth || 0, b = c.borderColor || "transparent", y = /* @__PURE__ */ f(
|
|
2382
2382
|
Lt,
|
|
2383
2383
|
{
|
|
2384
|
-
style:
|
|
2384
|
+
style: {
|
|
2385
|
+
...d,
|
|
2386
|
+
borderRadius: u,
|
|
2387
|
+
overflow: "hidden",
|
|
2388
|
+
border: l ? `${l}px solid ${b}` : void 0
|
|
2389
|
+
},
|
|
2385
2390
|
animationIn: i,
|
|
2386
2391
|
animationOut: e,
|
|
2387
|
-
frame:
|
|
2392
|
+
frame: h,
|
|
2388
2393
|
durationInFrames: o,
|
|
2389
2394
|
children: /* @__PURE__ */ f(
|
|
2390
2395
|
Ht,
|
|
2391
2396
|
{
|
|
2392
|
-
animationTimed:
|
|
2397
|
+
animationTimed: p,
|
|
2393
2398
|
durationInFrames: o,
|
|
2394
|
-
frame:
|
|
2395
|
-
style:
|
|
2399
|
+
frame: h,
|
|
2400
|
+
style: {
|
|
2401
|
+
...d,
|
|
2402
|
+
borderRadius: u,
|
|
2403
|
+
overflow: "hidden"
|
|
2404
|
+
},
|
|
2396
2405
|
children: /* @__PURE__ */ f(
|
|
2397
2406
|
Dt,
|
|
2398
2407
|
{
|
|
2399
2408
|
item: t,
|
|
2400
2409
|
keyframeAnimations: [
|
|
2401
|
-
...((
|
|
2402
|
-
...((
|
|
2403
|
-
...((
|
|
2404
|
-
...((
|
|
2410
|
+
...((m = a == null ? void 0 : a.in) == null ? void 0 : m.composition) || [],
|
|
2411
|
+
...((g = a == null ? void 0 : a.out) == null ? void 0 : g.composition) || [],
|
|
2412
|
+
...((M = a == null ? void 0 : a.timed) == null ? void 0 : M.composition) || [],
|
|
2413
|
+
...((S = a == null ? void 0 : a.loop) == null ? void 0 : S.composition) || [],
|
|
2405
2414
|
...i || [],
|
|
2406
2415
|
...e || [],
|
|
2407
|
-
...
|
|
2416
|
+
...p || []
|
|
2408
2417
|
],
|
|
2409
|
-
frame:
|
|
2418
|
+
frame: h,
|
|
2410
2419
|
durationInFrames: o,
|
|
2411
2420
|
children: /* @__PURE__ */ f(
|
|
2412
2421
|
"div",
|
|
@@ -2414,6 +2423,8 @@ const Yn = ({
|
|
|
2414
2423
|
style: {
|
|
2415
2424
|
width: "100%",
|
|
2416
2425
|
height: "100%",
|
|
2426
|
+
borderRadius: u,
|
|
2427
|
+
overflow: "hidden",
|
|
2417
2428
|
WebkitMaskImage: `url(${c.src})`,
|
|
2418
2429
|
WebkitMaskSize: "cover",
|
|
2419
2430
|
WebkitMaskPosition: "center",
|
|
@@ -2428,7 +2439,7 @@ const Yn = ({
|
|
|
2428
2439
|
)
|
|
2429
2440
|
}
|
|
2430
2441
|
);
|
|
2431
|
-
return xt({ item: t, options: r, children:
|
|
2442
|
+
return xt({ item: t, options: r, children: y });
|
|
2432
2443
|
}, Zr = {
|
|
2433
2444
|
// Legacy Easings
|
|
2434
2445
|
linear: I.linear,
|
|
@@ -2462,20 +2473,20 @@ const Yn = ({
|
|
|
2462
2473
|
animationTextFrames: a,
|
|
2463
2474
|
property: i,
|
|
2464
2475
|
from: e,
|
|
2465
|
-
to:
|
|
2476
|
+
to: p,
|
|
2466
2477
|
easing: o,
|
|
2467
|
-
delay:
|
|
2478
|
+
delay: h,
|
|
2468
2479
|
details: d,
|
|
2469
2480
|
phase: u = "in",
|
|
2470
2481
|
fade: l = !1
|
|
2471
2482
|
}) => {
|
|
2472
|
-
const b = Math.max(1, a), y = e ===
|
|
2473
|
-
let
|
|
2474
|
-
c <= 1 ? (
|
|
2483
|
+
const b = Math.max(1, a), y = e === p;
|
|
2484
|
+
let m, g;
|
|
2485
|
+
c <= 1 ? (m = b, g = 0) : y ? (g = b / c, m = g) : (m = Math.min(
|
|
2475
2486
|
b * 0.45,
|
|
2476
2487
|
Math.max(2, b / c * 1.5)
|
|
2477
|
-
),
|
|
2478
|
-
const M =
|
|
2488
|
+
), m >= b && (m = b * 0.5), g = (b - m) / (c - 1));
|
|
2489
|
+
const M = h + r * g, S = n - M;
|
|
2479
2490
|
if (u === "in" && S < 0)
|
|
2480
2491
|
return /* @__PURE__ */ f(
|
|
2481
2492
|
"span",
|
|
@@ -2495,7 +2506,7 @@ const Yn = ({
|
|
|
2495
2506
|
},
|
|
2496
2507
|
r
|
|
2497
2508
|
);
|
|
2498
|
-
if (!y && S >=
|
|
2509
|
+
if (!y && S >= m)
|
|
2499
2510
|
return /* @__PURE__ */ f(
|
|
2500
2511
|
"span",
|
|
2501
2512
|
{
|
|
@@ -2505,21 +2516,21 @@ const Yn = ({
|
|
|
2505
2516
|
r
|
|
2506
2517
|
);
|
|
2507
2518
|
}
|
|
2508
|
-
const $ = y ? 1 : O(S, [0,
|
|
2519
|
+
const $ = y ? 1 : O(S, [0, m], [0, 1], {
|
|
2509
2520
|
extrapolateLeft: "clamp",
|
|
2510
2521
|
extrapolateRight: "clamp"
|
|
2511
|
-
}), k = se(o),
|
|
2522
|
+
}), k = se(o), x = y ? 1 : k($), v = e + (p - e) * x;
|
|
2512
2523
|
let w = {
|
|
2513
2524
|
display: "inline-block",
|
|
2514
2525
|
transformOrigin: "center"
|
|
2515
2526
|
};
|
|
2516
|
-
const N = [],
|
|
2517
|
-
const W = typeof (d == null ? void 0 : d.translateY) == "number" ? d.translateY : typeof (d == null ? void 0 : d.translateX) == "number" ? d.translateX : typeof (d == null ? void 0 : d.translate) == "number" ? d.translate : P,
|
|
2518
|
-
if (
|
|
2519
|
-
const _ =
|
|
2527
|
+
const N = [], R = [], V = (P = 50, Y = "down") => {
|
|
2528
|
+
const W = typeof (d == null ? void 0 : d.translateY) == "number" ? d.translateY : typeof (d == null ? void 0 : d.translateX) == "number" ? d.translateX : typeof (d == null ? void 0 : d.translate) == "number" ? d.translate : P, F = (d == null ? void 0 : d.direction) || Y, C = u === "out" ? 0 : W, E = C + ((u === "out" ? W : 0) - C) * x;
|
|
2529
|
+
if (F === "left" || F === "right") {
|
|
2530
|
+
const _ = F === "left" ? -1 : 1;
|
|
2520
2531
|
N.push(`translateX(${_ * E}%)`);
|
|
2521
2532
|
} else {
|
|
2522
|
-
const _ =
|
|
2533
|
+
const _ = F === "up" ? -1 : 1;
|
|
2523
2534
|
N.push(`translateY(${_ * E}%)`);
|
|
2524
2535
|
}
|
|
2525
2536
|
};
|
|
@@ -2534,25 +2545,25 @@ const Yn = ({
|
|
|
2534
2545
|
let P;
|
|
2535
2546
|
if ($ < 0.65) {
|
|
2536
2547
|
const Y = $ / 0.65, W = I.out(I.cubic)(Y);
|
|
2537
|
-
P = e + (
|
|
2548
|
+
P = e + (p + 0.1 - e) * W;
|
|
2538
2549
|
} else {
|
|
2539
2550
|
const Y = ($ - 0.65) / 0.35, W = I.out(I.quad)(Y);
|
|
2540
|
-
P =
|
|
2551
|
+
P = p + 0.1 - 0.1 * W;
|
|
2541
2552
|
}
|
|
2542
2553
|
N.push(`scale(${P})`), w.opacity = I.out(I.quad)($);
|
|
2543
2554
|
break;
|
|
2544
2555
|
}
|
|
2545
2556
|
case "growOut": {
|
|
2546
|
-
const P = I.out(I.cubic)($), Y = e + (
|
|
2557
|
+
const P = I.out(I.cubic)($), Y = e + (p - e) * P;
|
|
2547
2558
|
N.push(`scale(${Y})`), w.opacity = 1 - I.out(I.quad)($);
|
|
2548
2559
|
break;
|
|
2549
2560
|
}
|
|
2550
2561
|
case "shrinkIn": {
|
|
2551
|
-
N.push(`scale(${v})`), w.opacity =
|
|
2562
|
+
N.push(`scale(${v})`), w.opacity = x;
|
|
2552
2563
|
break;
|
|
2553
2564
|
}
|
|
2554
2565
|
case "shrinkOut": {
|
|
2555
|
-
N.push(`scale(${v})`), w.opacity = 1 -
|
|
2566
|
+
N.push(`scale(${v})`), w.opacity = 1 - x;
|
|
2556
2567
|
break;
|
|
2557
2568
|
}
|
|
2558
2569
|
case "maskUpIn": {
|
|
@@ -2575,31 +2586,31 @@ const Yn = ({
|
|
|
2575
2586
|
case "blurIn":
|
|
2576
2587
|
case "blurOut":
|
|
2577
2588
|
case "blurV2In": {
|
|
2578
|
-
|
|
2589
|
+
R.push(`blur(${v}px)`), ((d == null ? void 0 : d.translateY) !== void 0 || (d == null ? void 0 : d.translateX) !== void 0 || (d == null ? void 0 : d.translate) !== void 0) && V(50, (d == null ? void 0 : d.direction) || "down"), (l || d != null && d.fade) && (w.opacity = u === "out" ? 1 - x : x);
|
|
2579
2590
|
break;
|
|
2580
2591
|
}
|
|
2581
2592
|
case "blurSlide": {
|
|
2582
|
-
|
|
2593
|
+
R.push(`blur(${v}px)`), V(50, (d == null ? void 0 : d.direction) || "down"), (l || (d == null ? void 0 : d.fade) !== !1) && (w.opacity = u === "out" ? 1 - x : x);
|
|
2583
2594
|
break;
|
|
2584
2595
|
}
|
|
2585
2596
|
case "translateX": {
|
|
2586
2597
|
let P = 100, Y = !1;
|
|
2587
2598
|
if ((d == null ? void 0 : d.width) !== void 0) {
|
|
2588
|
-
const
|
|
2589
|
-
isNaN(
|
|
2599
|
+
const F = typeof d.width == "number" ? d.width : parseFloat(d.width);
|
|
2600
|
+
isNaN(F) || (P = F, Y = !0);
|
|
2590
2601
|
}
|
|
2591
2602
|
const W = Y ? `${v / 100 * P}px` : `${v}%`;
|
|
2592
|
-
N.push(`translateX(${W})`), (l || d != null && d.fade) && (w.opacity = u === "out" ? 1 -
|
|
2603
|
+
N.push(`translateX(${W})`), (l || d != null && d.fade) && (w.opacity = u === "out" ? 1 - x : x);
|
|
2593
2604
|
break;
|
|
2594
2605
|
}
|
|
2595
2606
|
case "translateY": {
|
|
2596
2607
|
let P = 100, Y = !1;
|
|
2597
2608
|
if ((d == null ? void 0 : d.height) !== void 0) {
|
|
2598
|
-
const
|
|
2599
|
-
isNaN(
|
|
2609
|
+
const F = typeof d.height == "number" ? d.height : parseFloat(d.height);
|
|
2610
|
+
isNaN(F) || (P = F, Y = !0);
|
|
2600
2611
|
}
|
|
2601
2612
|
const W = Y ? `${v / 100 * P}px` : `${v}%`;
|
|
2602
|
-
N.push(`translateY(${W})`), (l || d != null && d.fade) && (w.opacity = u === "out" ? 1 -
|
|
2613
|
+
N.push(`translateY(${W})`), (l || d != null && d.fade) && (w.opacity = u === "out" ? 1 - x : x);
|
|
2603
2614
|
break;
|
|
2604
2615
|
}
|
|
2605
2616
|
case "rotate":
|
|
@@ -2609,8 +2620,8 @@ const Yn = ({
|
|
|
2609
2620
|
case "spinIn":
|
|
2610
2621
|
case "spinOut": {
|
|
2611
2622
|
N.push(`rotate(${v}deg)`);
|
|
2612
|
-
const P = u === "out" ? 1 -
|
|
2613
|
-
N.push(`scale(${P})`), w.opacity = u === "out" ? 1 -
|
|
2623
|
+
const P = u === "out" ? 1 - x : x;
|
|
2624
|
+
N.push(`scale(${P})`), w.opacity = u === "out" ? 1 - x : x;
|
|
2614
2625
|
break;
|
|
2615
2626
|
}
|
|
2616
2627
|
case "rotateX":
|
|
@@ -2622,17 +2633,17 @@ const Yn = ({
|
|
|
2622
2633
|
case "brightness":
|
|
2623
2634
|
case "brightnessIn":
|
|
2624
2635
|
case "brightnessOut":
|
|
2625
|
-
|
|
2636
|
+
R.push(`brightness(${v}%)`);
|
|
2626
2637
|
break;
|
|
2627
2638
|
default:
|
|
2628
2639
|
w.opacity = v;
|
|
2629
2640
|
break;
|
|
2630
2641
|
}
|
|
2631
2642
|
if ((d == null ? void 0 : d.scale) !== void 0 && typeof d.scale == "number" && i !== "scale") {
|
|
2632
|
-
const P = (u === "out" ? d.scale : 1) + (1 - (u === "out" ? d.scale : 1)) * (1 -
|
|
2643
|
+
const P = (u === "out" ? d.scale : 1) + (1 - (u === "out" ? d.scale : 1)) * (1 - x);
|
|
2633
2644
|
N.push(`scale(${P})`);
|
|
2634
2645
|
}
|
|
2635
|
-
return N.length > 0 && (w.transform = N.join(" ")),
|
|
2646
|
+
return N.length > 0 && (w.transform = N.join(" ")), R.length > 0 && (w.filter = R.join(" ")), /* @__PURE__ */ f("span", { style: w, children: t === " " ? " " : t }, r);
|
|
2636
2647
|
}, ce = ({
|
|
2637
2648
|
char: t,
|
|
2638
2649
|
index: r,
|
|
@@ -2641,14 +2652,14 @@ const Yn = ({
|
|
|
2641
2652
|
textLength: c,
|
|
2642
2653
|
animationTextInFrames: a
|
|
2643
2654
|
}) => {
|
|
2644
|
-
const i = a, e = i / (c + 1),
|
|
2645
|
-
frame: n -
|
|
2655
|
+
const i = a, e = i / (c + 1), p = r * e, o = Mt({
|
|
2656
|
+
frame: n - p,
|
|
2646
2657
|
fps: s,
|
|
2647
2658
|
from: 4,
|
|
2648
2659
|
to: 1,
|
|
2649
2660
|
config: { mass: 1, damping: 10 }
|
|
2650
|
-
}),
|
|
2651
|
-
n -
|
|
2661
|
+
}), h = O(
|
|
2662
|
+
n - p,
|
|
2652
2663
|
[0, i / 2],
|
|
2653
2664
|
// Ensure opacity fades in within half the duration
|
|
2654
2665
|
[0, 1],
|
|
@@ -2660,7 +2671,7 @@ const Yn = ({
|
|
|
2660
2671
|
style: {
|
|
2661
2672
|
display: "inline-block",
|
|
2662
2673
|
transform: `scale(${o})`,
|
|
2663
|
-
opacity:
|
|
2674
|
+
opacity: h
|
|
2664
2675
|
},
|
|
2665
2676
|
children: t === " " ? " " : t
|
|
2666
2677
|
},
|
|
@@ -2674,8 +2685,8 @@ const Yn = ({
|
|
|
2674
2685
|
textLength: c,
|
|
2675
2686
|
animationTextInFrames: a
|
|
2676
2687
|
}) => {
|
|
2677
|
-
const e = a / c,
|
|
2678
|
-
frame: n -
|
|
2688
|
+
const e = a / c, p = r * e, o = Mt({
|
|
2689
|
+
frame: n - p,
|
|
2679
2690
|
fps: s,
|
|
2680
2691
|
from: -90,
|
|
2681
2692
|
to: 0,
|
|
@@ -2700,8 +2711,8 @@ const Yn = ({
|
|
|
2700
2711
|
textLength: c,
|
|
2701
2712
|
animationTextInFrames: a
|
|
2702
2713
|
}) => {
|
|
2703
|
-
const e = a / c,
|
|
2704
|
-
frame: n -
|
|
2714
|
+
const e = a / c, p = r * e, o = Mt({
|
|
2715
|
+
frame: n - p,
|
|
2705
2716
|
fps: s,
|
|
2706
2717
|
from: 0,
|
|
2707
2718
|
to: 1,
|
|
@@ -2726,13 +2737,13 @@ const Yn = ({
|
|
|
2726
2737
|
textLength: c,
|
|
2727
2738
|
animationTextInFrames: a
|
|
2728
2739
|
}) => {
|
|
2729
|
-
const i = a, e = i / c,
|
|
2730
|
-
frame: n -
|
|
2740
|
+
const i = a, e = i / c, p = r * e, o = Mt({
|
|
2741
|
+
frame: n - p,
|
|
2731
2742
|
fps: s,
|
|
2732
2743
|
from: 1.1,
|
|
2733
2744
|
to: 0,
|
|
2734
2745
|
config: { damping: 10 }
|
|
2735
|
-
}),
|
|
2746
|
+
}), h = O(n - p, [0, i / 2], [0, 1], {
|
|
2736
2747
|
extrapolateRight: "clamp",
|
|
2737
2748
|
extrapolateLeft: "clamp"
|
|
2738
2749
|
});
|
|
@@ -2742,7 +2753,7 @@ const Yn = ({
|
|
|
2742
2753
|
style: {
|
|
2743
2754
|
display: "inline-block",
|
|
2744
2755
|
transform: `translateY(${o}em)`,
|
|
2745
|
-
opacity:
|
|
2756
|
+
opacity: h
|
|
2746
2757
|
},
|
|
2747
2758
|
children: t === " " ? " " : t
|
|
2748
2759
|
},
|
|
@@ -2756,14 +2767,14 @@ const Yn = ({
|
|
|
2756
2767
|
textLength: c,
|
|
2757
2768
|
animationTextInFrames: a
|
|
2758
2769
|
}) => {
|
|
2759
|
-
const i = a, e = i / c,
|
|
2760
|
-
frame: n -
|
|
2770
|
+
const i = a, e = i / c, p = r * e, o = Mt({
|
|
2771
|
+
frame: n - p,
|
|
2761
2772
|
fps: s,
|
|
2762
2773
|
from: -100,
|
|
2763
2774
|
to: 0,
|
|
2764
2775
|
config: { damping: 20, stiffness: 120 }
|
|
2765
|
-
}),
|
|
2766
|
-
n -
|
|
2776
|
+
}), h = O(
|
|
2777
|
+
n - p,
|
|
2767
2778
|
[0, i / 2],
|
|
2768
2779
|
// Complete opacity ramp-up within half the duration
|
|
2769
2780
|
[0, 1],
|
|
@@ -2778,13 +2789,13 @@ const Yn = ({
|
|
|
2778
2789
|
style: {
|
|
2779
2790
|
display: "inline-block",
|
|
2780
2791
|
transform: `translateY(${o}px)`,
|
|
2781
|
-
opacity:
|
|
2792
|
+
opacity: h
|
|
2782
2793
|
},
|
|
2783
2794
|
children: t === " " ? " " : t
|
|
2784
2795
|
},
|
|
2785
2796
|
r
|
|
2786
2797
|
);
|
|
2787
|
-
},
|
|
2798
|
+
}, he = ({
|
|
2788
2799
|
char: t,
|
|
2789
2800
|
index: r,
|
|
2790
2801
|
frame: n,
|
|
@@ -2793,20 +2804,20 @@ const Yn = ({
|
|
|
2793
2804
|
animationTextOutFrames: a,
|
|
2794
2805
|
durationInFrames: i
|
|
2795
2806
|
}) => {
|
|
2796
|
-
const e = i - a,
|
|
2797
|
-
frame: n - e -
|
|
2807
|
+
const e = i - a, p = r / c * (i - e), o = Mt({
|
|
2808
|
+
frame: n - e - p,
|
|
2798
2809
|
fps: s,
|
|
2799
2810
|
from: 1,
|
|
2800
2811
|
to: 0,
|
|
2801
2812
|
config: { mass: 0.5, damping: 10 }
|
|
2802
|
-
}),
|
|
2803
|
-
frame: n - e -
|
|
2813
|
+
}), h = Mt({
|
|
2814
|
+
frame: n - e - p,
|
|
2804
2815
|
fps: s,
|
|
2805
2816
|
from: 0,
|
|
2806
2817
|
to: 50,
|
|
2807
2818
|
config: { mass: 0.5, damping: 10 }
|
|
2808
2819
|
}), d = Mt({
|
|
2809
|
-
frame: n - e -
|
|
2820
|
+
frame: n - e - p,
|
|
2810
2821
|
fps: s,
|
|
2811
2822
|
from: 0,
|
|
2812
2823
|
to: 180,
|
|
@@ -2818,13 +2829,13 @@ const Yn = ({
|
|
|
2818
2829
|
style: {
|
|
2819
2830
|
display: "inline-block",
|
|
2820
2831
|
opacity: o,
|
|
2821
|
-
transform: `translateY(${
|
|
2832
|
+
transform: `translateY(${h}px) rotate(${d}deg)`
|
|
2822
2833
|
},
|
|
2823
2834
|
children: t === " " ? " " : t
|
|
2824
2835
|
},
|
|
2825
2836
|
r
|
|
2826
2837
|
);
|
|
2827
|
-
},
|
|
2838
|
+
}, pe = ({
|
|
2828
2839
|
char: t,
|
|
2829
2840
|
index: r,
|
|
2830
2841
|
frame: n,
|
|
@@ -2833,13 +2844,13 @@ const Yn = ({
|
|
|
2833
2844
|
animationTextOutFrames: a,
|
|
2834
2845
|
durationInFrames: i
|
|
2835
2846
|
}) => {
|
|
2836
|
-
const e = i - a,
|
|
2837
|
-
frame:
|
|
2847
|
+
const e = i - a, p = a / c, o = e + r * p, h = n - o, d = Mt({
|
|
2848
|
+
frame: h,
|
|
2838
2849
|
fps: s,
|
|
2839
2850
|
from: 1,
|
|
2840
2851
|
to: 0,
|
|
2841
2852
|
config: { mass: 1, damping: 10 }
|
|
2842
|
-
}), u = O(
|
|
2853
|
+
}), u = O(h, [0, p], [1, 0], {
|
|
2843
2854
|
extrapolateLeft: "clamp",
|
|
2844
2855
|
extrapolateRight: "clamp"
|
|
2845
2856
|
});
|
|
@@ -2864,7 +2875,7 @@ const Yn = ({
|
|
|
2864
2875
|
animationTextOutFrames: a,
|
|
2865
2876
|
durationInFrames: i
|
|
2866
2877
|
}) => {
|
|
2867
|
-
const
|
|
2878
|
+
const p = a / c, h = i - a + r * p, d = n - h, u = Mt({
|
|
2868
2879
|
frame: d,
|
|
2869
2880
|
fps: s,
|
|
2870
2881
|
from: 0,
|
|
@@ -2891,13 +2902,13 @@ const Yn = ({
|
|
|
2891
2902
|
animationTextOutFrames: a,
|
|
2892
2903
|
durationInFrames: i
|
|
2893
2904
|
}) => {
|
|
2894
|
-
const
|
|
2905
|
+
const p = a / c, h = i - a + r * p, d = n - h, u = Mt({
|
|
2895
2906
|
frame: d,
|
|
2896
2907
|
fps: s,
|
|
2897
2908
|
from: 0,
|
|
2898
2909
|
to: 1.1,
|
|
2899
2910
|
config: { damping: 10 }
|
|
2900
|
-
}), l = O(d, [0,
|
|
2911
|
+
}), l = O(d, [0, p], [1, 0], {
|
|
2901
2912
|
extrapolateRight: "clamp",
|
|
2902
2913
|
extrapolateLeft: "clamp"
|
|
2903
2914
|
});
|
|
@@ -2921,27 +2932,27 @@ const Yn = ({
|
|
|
2921
2932
|
textLength: c,
|
|
2922
2933
|
animationTextInFrames: a
|
|
2923
2934
|
}) => {
|
|
2924
|
-
const e = a / c,
|
|
2925
|
-
frame: n -
|
|
2935
|
+
const e = a / c, p = r * e, o = Mt({
|
|
2936
|
+
frame: n - p,
|
|
2926
2937
|
fps: s,
|
|
2927
2938
|
from: 1.1,
|
|
2928
2939
|
to: 0,
|
|
2929
2940
|
config: { damping: 10 }
|
|
2930
|
-
}),
|
|
2931
|
-
frame: n -
|
|
2941
|
+
}), h = Mt({
|
|
2942
|
+
frame: n - p,
|
|
2932
2943
|
fps: s,
|
|
2933
2944
|
from: 0.55,
|
|
2934
2945
|
to: 0,
|
|
2935
2946
|
config: { damping: 10 }
|
|
2936
2947
|
}), d = Mt({
|
|
2937
|
-
frame: n -
|
|
2948
|
+
frame: n - p,
|
|
2938
2949
|
fps: s,
|
|
2939
2950
|
from: 180,
|
|
2940
2951
|
to: 0,
|
|
2941
2952
|
config: { damping: 10 }
|
|
2942
2953
|
}), u = O(
|
|
2943
2954
|
n,
|
|
2944
|
-
[
|
|
2955
|
+
[p, p + 15],
|
|
2945
2956
|
// Adjust for opacity ramp-up
|
|
2946
2957
|
[0, 1],
|
|
2947
2958
|
{
|
|
@@ -2955,7 +2966,7 @@ const Yn = ({
|
|
|
2955
2966
|
style: {
|
|
2956
2967
|
display: "inline-block",
|
|
2957
2968
|
transformOrigin: "0 100%",
|
|
2958
|
-
transform: `translateY(${o}em) translateX(${
|
|
2969
|
+
transform: `translateY(${o}em) translateX(${h}em) rotateZ(${d}deg)`,
|
|
2959
2970
|
opacity: u
|
|
2960
2971
|
},
|
|
2961
2972
|
children: t === " " ? " " : t
|
|
@@ -2971,16 +2982,16 @@ const Yn = ({
|
|
|
2971
2982
|
animationTextOutFrames: a,
|
|
2972
2983
|
durationInFrames: i
|
|
2973
2984
|
}) => {
|
|
2974
|
-
const e = i - a,
|
|
2975
|
-
frame:
|
|
2985
|
+
const e = i - a, p = a / c, o = e + r * p, h = n - o, d = Mt({
|
|
2986
|
+
frame: h,
|
|
2976
2987
|
fps: s,
|
|
2977
2988
|
from: 0,
|
|
2978
2989
|
to: 100,
|
|
2979
2990
|
// Move text out of view
|
|
2980
2991
|
config: { damping: 20, stiffness: 120 }
|
|
2981
2992
|
}), u = O(
|
|
2982
|
-
|
|
2983
|
-
[0,
|
|
2993
|
+
h,
|
|
2994
|
+
[0, p],
|
|
2984
2995
|
// Frames for opacity fade-out
|
|
2985
2996
|
[1, 0],
|
|
2986
2997
|
{
|
|
@@ -3009,25 +3020,25 @@ const Yn = ({
|
|
|
3009
3020
|
animationTextOutFrames: a,
|
|
3010
3021
|
durationInFrames: i
|
|
3011
3022
|
}) => {
|
|
3012
|
-
const e = i - a,
|
|
3013
|
-
frame:
|
|
3023
|
+
const e = i - a, p = a / c, o = e + r * p, h = n - o, d = Mt({
|
|
3024
|
+
frame: h,
|
|
3014
3025
|
fps: s,
|
|
3015
3026
|
from: 0,
|
|
3016
3027
|
to: 1,
|
|
3017
3028
|
config: { mass: 1, damping: 10 }
|
|
3018
3029
|
}), u = Mt({
|
|
3019
|
-
frame:
|
|
3030
|
+
frame: h,
|
|
3020
3031
|
fps: s,
|
|
3021
3032
|
from: 0,
|
|
3022
3033
|
to: 0.55,
|
|
3023
3034
|
config: { mass: 1, damping: 10 }
|
|
3024
3035
|
}), l = Mt({
|
|
3025
|
-
frame:
|
|
3036
|
+
frame: h,
|
|
3026
3037
|
fps: s,
|
|
3027
3038
|
from: 0,
|
|
3028
3039
|
to: 180,
|
|
3029
3040
|
config: { mass: 1, damping: 10 }
|
|
3030
|
-
}), b = O(
|
|
3041
|
+
}), b = O(h, [0, p], [1, 0], {
|
|
3031
3042
|
extrapolateLeft: "clamp",
|
|
3032
3043
|
extrapolateRight: "clamp"
|
|
3033
3044
|
});
|
|
@@ -3053,8 +3064,8 @@ const Yn = ({
|
|
|
3053
3064
|
animationTextOutFrames: a,
|
|
3054
3065
|
durationInFrames: i
|
|
3055
3066
|
}) => {
|
|
3056
|
-
const e = i - a,
|
|
3057
|
-
frame:
|
|
3067
|
+
const e = i - a, p = a / c, o = e + r * p, h = n - o, d = Mt({
|
|
3068
|
+
frame: h,
|
|
3058
3069
|
fps: s,
|
|
3059
3070
|
from: 1,
|
|
3060
3071
|
to: 0,
|
|
@@ -3128,13 +3139,13 @@ const Yn = ({
|
|
|
3128
3139
|
fps: s,
|
|
3129
3140
|
animationTextInFrames: c
|
|
3130
3141
|
}) => {
|
|
3131
|
-
const a = c / s, i = n / s, e = Math.min(Math.max(i / a, 0), 1),
|
|
3142
|
+
const a = c / s, i = n / s, e = Math.min(Math.max(i / a, 0), 1), p = 3 - e * 2, o = e;
|
|
3132
3143
|
return /* @__PURE__ */ f(
|
|
3133
3144
|
"span",
|
|
3134
3145
|
{
|
|
3135
3146
|
style: {
|
|
3136
3147
|
display: "inline-block",
|
|
3137
|
-
transform: `scale(${
|
|
3148
|
+
transform: `scale(${p})`,
|
|
3138
3149
|
opacity: o
|
|
3139
3150
|
},
|
|
3140
3151
|
children: t === " " ? " " : t
|
|
@@ -3148,13 +3159,13 @@ const Yn = ({
|
|
|
3148
3159
|
fps: s,
|
|
3149
3160
|
animationTextInFrames: c
|
|
3150
3161
|
}) => {
|
|
3151
|
-
const a = c / s, i = n / s, e = Math.min(Math.max(i / a, 0), 1),
|
|
3162
|
+
const a = c / s, i = n / s, e = Math.min(Math.max(i / a, 0), 1), p = 3 - e * 2, o = e;
|
|
3152
3163
|
return /* @__PURE__ */ f(
|
|
3153
3164
|
"span",
|
|
3154
3165
|
{
|
|
3155
3166
|
style: {
|
|
3156
3167
|
display: "inline-block",
|
|
3157
|
-
transform: `scaleX(${
|
|
3168
|
+
transform: `scaleX(${p})`,
|
|
3158
3169
|
opacity: o
|
|
3159
3170
|
},
|
|
3160
3171
|
children: t === " " ? " " : t
|
|
@@ -3169,16 +3180,16 @@ const Yn = ({
|
|
|
3169
3180
|
animationTextOutFrames: c,
|
|
3170
3181
|
durationInFrames: a
|
|
3171
3182
|
}) => {
|
|
3172
|
-
const i = (a - c) / s, e = a / s,
|
|
3173
|
-
Math.max((
|
|
3183
|
+
const i = (a - c) / s, e = a / s, p = n / s, o = Math.min(
|
|
3184
|
+
Math.max((p - i) / (e - i), 0),
|
|
3174
3185
|
1
|
|
3175
|
-
),
|
|
3186
|
+
), h = 1 + o, d = 1 - o;
|
|
3176
3187
|
return /* @__PURE__ */ f(
|
|
3177
3188
|
"span",
|
|
3178
3189
|
{
|
|
3179
3190
|
style: {
|
|
3180
3191
|
display: "inline-block",
|
|
3181
|
-
transform: `scaleX(${
|
|
3192
|
+
transform: `scaleX(${h})`,
|
|
3182
3193
|
opacity: d
|
|
3183
3194
|
},
|
|
3184
3195
|
children: t === " " ? " " : t
|
|
@@ -3193,16 +3204,16 @@ const Yn = ({
|
|
|
3193
3204
|
animationTextOutFrames: c,
|
|
3194
3205
|
durationInFrames: a
|
|
3195
3206
|
}) => {
|
|
3196
|
-
const i = (a - c) / s, e = a / s,
|
|
3197
|
-
Math.max((
|
|
3207
|
+
const i = (a - c) / s, e = a / s, p = n / s, o = Math.min(
|
|
3208
|
+
Math.max((p - i) / (e - i), 0),
|
|
3198
3209
|
1
|
|
3199
|
-
),
|
|
3210
|
+
), h = 1 + o, d = 1 - o;
|
|
3200
3211
|
return /* @__PURE__ */ f(
|
|
3201
3212
|
"span",
|
|
3202
3213
|
{
|
|
3203
3214
|
style: {
|
|
3204
3215
|
display: "inline-block",
|
|
3205
|
-
transform: `scale(${
|
|
3216
|
+
transform: `scale(${h})`,
|
|
3206
3217
|
opacity: d
|
|
3207
3218
|
},
|
|
3208
3219
|
children: t === " " ? " " : t
|
|
@@ -3226,7 +3237,7 @@ const Yn = ({
|
|
|
3226
3237
|
children: t
|
|
3227
3238
|
}
|
|
3228
3239
|
);
|
|
3229
|
-
},
|
|
3240
|
+
}, Re = ({
|
|
3230
3241
|
char: t,
|
|
3231
3242
|
frame: r,
|
|
3232
3243
|
fps: n,
|
|
@@ -3248,7 +3259,7 @@ function Mr(t) {
|
|
|
3248
3259
|
const r = Math.sin(t) * 1e4;
|
|
3249
3260
|
return r - Math.floor(r);
|
|
3250
3261
|
}
|
|
3251
|
-
const
|
|
3262
|
+
const Fe = ({
|
|
3252
3263
|
char: t,
|
|
3253
3264
|
index: r,
|
|
3254
3265
|
frame: n
|
|
@@ -3334,8 +3345,8 @@ function Xe({
|
|
|
3334
3345
|
if (i + e.length <= c)
|
|
3335
3346
|
return i += e.length + 1, e;
|
|
3336
3347
|
if (i < c) {
|
|
3337
|
-
const
|
|
3338
|
-
return i = c,
|
|
3348
|
+
const p = e.slice(0, c - i);
|
|
3349
|
+
return i = c, p;
|
|
3339
3350
|
}
|
|
3340
3351
|
return "";
|
|
3341
3352
|
}).join(" ");
|
|
@@ -3378,7 +3389,7 @@ const Be = ({
|
|
|
3378
3389
|
}) => {
|
|
3379
3390
|
const c = O(r, [0, s], [0, 1], {
|
|
3380
3391
|
extrapolateRight: "clamp"
|
|
3381
|
-
}), a = n.width, i = n.height, e = O(c, [0, 1], [0, a]),
|
|
3392
|
+
}), a = n.width, i = n.height, e = O(c, [0, 1], [0, a]), p = O(c, [0, 1], [a / 2, 0]);
|
|
3382
3393
|
return /* @__PURE__ */ f(
|
|
3383
3394
|
"div",
|
|
3384
3395
|
{
|
|
@@ -3416,7 +3427,7 @@ const Be = ({
|
|
|
3416
3427
|
width: n.width,
|
|
3417
3428
|
height: n.height,
|
|
3418
3429
|
color: n.color === "white" || n.color.includes("fff") ? "black" : n.color,
|
|
3419
|
-
transform: `translateX(${
|
|
3430
|
+
transform: `translateX(${p * 2}px)`
|
|
3420
3431
|
},
|
|
3421
3432
|
children: t
|
|
3422
3433
|
}
|
|
@@ -3433,7 +3444,7 @@ const Be = ({
|
|
|
3433
3444
|
}) => {
|
|
3434
3445
|
const c = n * 0.5, a = n, i = 8, e = O(r, [0, c], [0.5, 1], {
|
|
3435
3446
|
extrapolateRight: "clamp"
|
|
3436
|
-
}),
|
|
3447
|
+
}), p = e, o = 0, h = 1, d = O(r, [0, c], [2, 1], {
|
|
3437
3448
|
extrapolateRight: "clamp"
|
|
3438
3449
|
}), u = r < c ? O(r, [0, c], [20, 0], {
|
|
3439
3450
|
extrapolateRight: "clamp"
|
|
@@ -3447,13 +3458,13 @@ const Be = ({
|
|
|
3447
3458
|
extrapolateRight: "clamp"
|
|
3448
3459
|
}), b = [];
|
|
3449
3460
|
for (let y = i; y > 0; y--) {
|
|
3450
|
-
const
|
|
3451
|
-
|
|
3461
|
+
const m = Math.max(r - y * 2, 0), g = O(
|
|
3462
|
+
m,
|
|
3452
3463
|
[0, c],
|
|
3453
3464
|
[0.5, 1],
|
|
3454
3465
|
{ extrapolateRight: "clamp" }
|
|
3455
3466
|
), M = O(
|
|
3456
|
-
|
|
3467
|
+
m,
|
|
3457
3468
|
[0, c],
|
|
3458
3469
|
[0.15, 0],
|
|
3459
3470
|
{ extrapolateRight: "clamp" }
|
|
@@ -3494,7 +3505,7 @@ const Be = ({
|
|
|
3494
3505
|
width: s.width,
|
|
3495
3506
|
height: s.height,
|
|
3496
3507
|
background: "transparent",
|
|
3497
|
-
transform: `scale(${
|
|
3508
|
+
transform: `scale(${p})`
|
|
3498
3509
|
},
|
|
3499
3510
|
children: t
|
|
3500
3511
|
}
|
|
@@ -3517,9 +3528,9 @@ const Be = ({
|
|
|
3517
3528
|
"span",
|
|
3518
3529
|
{
|
|
3519
3530
|
style: {
|
|
3520
|
-
opacity:
|
|
3531
|
+
opacity: h,
|
|
3521
3532
|
filter: `blur(${o}px)`,
|
|
3522
|
-
transform: `scale(${
|
|
3533
|
+
transform: `scale(${p})`,
|
|
3523
3534
|
fontSize: parseFloat(s.fontSize.toString()),
|
|
3524
3535
|
position: "absolute",
|
|
3525
3536
|
width: s.width,
|
|
@@ -3548,12 +3559,12 @@ const Be = ({
|
|
|
3548
3559
|
details: s
|
|
3549
3560
|
}) => {
|
|
3550
3561
|
const c = n * 3 / 4, a = Math.floor(c / Qr.length);
|
|
3551
|
-
let i = "", e = 0,
|
|
3562
|
+
let i = "", e = 0, p = a, o = 2, h = 0.5, d = parseFloat(s.fontSize.toString());
|
|
3552
3563
|
if (r < c) {
|
|
3553
|
-
const
|
|
3554
|
-
i = Qr[
|
|
3555
|
-
} else r < n ? (i = t, e = r - c,
|
|
3556
|
-
const u = Math.min(e /
|
|
3564
|
+
const m = Math.floor(r / a);
|
|
3565
|
+
i = Qr[m], e = r - m * a, p = a, o = 2, h = 0.5, d = parseFloat(s.fontSize.toString());
|
|
3566
|
+
} else r < n ? (i = t, e = r - c, p = n - c, o = 2, h = 1, d = parseFloat(s.fontSize.toString())) : (i = t, e = p, o = 1, h = 1, d = parseFloat(s.fontSize.toString()));
|
|
3567
|
+
const u = Math.min(e / p, 1), l = O(u, [0, 1], [o, h]), b = O(u, [0, 1], [0.3, 1]), y = O(u, [0, 1], [8, 0]);
|
|
3557
3568
|
return /* @__PURE__ */ f(
|
|
3558
3569
|
"span",
|
|
3559
3570
|
{
|
|
@@ -3580,17 +3591,17 @@ const Be = ({
|
|
|
3580
3591
|
fps: c
|
|
3581
3592
|
}) => {
|
|
3582
3593
|
const a = (u, l, b) => {
|
|
3583
|
-
const
|
|
3584
|
-
if (!
|
|
3585
|
-
|
|
3594
|
+
const m = document.createElement("canvas").getContext("2d");
|
|
3595
|
+
if (!m) return [];
|
|
3596
|
+
m.font = `${b}px ${n.fontFamily || "Arial, sans-serif"}`;
|
|
3586
3597
|
const g = u.split(" ");
|
|
3587
3598
|
let M = [], S = "";
|
|
3588
3599
|
return g.forEach(($) => {
|
|
3589
3600
|
const k = S ? `${S} ${$}` : $;
|
|
3590
|
-
|
|
3601
|
+
m.measureText(k).width > l ? (M.push(S), S = $) : S = k;
|
|
3591
3602
|
}), S && M.push(S), M;
|
|
3592
|
-
}, i = n.width || 300, e = a(t, i, n.fontSize),
|
|
3593
|
-
const b = l *
|
|
3603
|
+
}, i = n.width || 300, e = a(t, i, n.fontSize), p = s / c, o = 0.3, h = p / e.length, d = e.map((u, l) => {
|
|
3604
|
+
const b = l * h * (1 - o) * 1.5, y = b + h, m = b * c, g = Math.max(y * c, p * c), M = O(r, [m, g], [0, 1], {
|
|
3594
3605
|
easing: I.out(I.cubic),
|
|
3595
3606
|
extrapolateLeft: "clamp",
|
|
3596
3607
|
extrapolateRight: "clamp"
|
|
@@ -3760,24 +3771,24 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
3760
3771
|
height: "100%",
|
|
3761
3772
|
position: "relative"
|
|
3762
3773
|
},
|
|
3763
|
-
children: Array.from({ length: i }).map((e,
|
|
3764
|
-
const o =
|
|
3774
|
+
children: Array.from({ length: i }).map((e, p) => {
|
|
3775
|
+
const o = p * 4, h = -p * 2, d = 1 / (i - p);
|
|
3765
3776
|
return /* @__PURE__ */ f(
|
|
3766
3777
|
"div",
|
|
3767
3778
|
{
|
|
3768
3779
|
style: {
|
|
3769
3780
|
position: "absolute",
|
|
3770
|
-
transform: `translate(${o * 4}px, ${
|
|
3781
|
+
transform: `translate(${o * 4}px, ${h * 4}px)`,
|
|
3771
3782
|
fontWeight: "bold",
|
|
3772
3783
|
fontSize: n.fontSize,
|
|
3773
|
-
zIndex:
|
|
3774
|
-
color: i !==
|
|
3784
|
+
zIndex: p,
|
|
3785
|
+
color: i !== p + 1 ? "red" : n.color,
|
|
3775
3786
|
background: "transparent",
|
|
3776
3787
|
opacity: d
|
|
3777
3788
|
},
|
|
3778
3789
|
children: t
|
|
3779
3790
|
},
|
|
3780
|
-
|
|
3791
|
+
p
|
|
3781
3792
|
);
|
|
3782
3793
|
})
|
|
3783
3794
|
}
|
|
@@ -3831,7 +3842,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
3831
3842
|
details: i,
|
|
3832
3843
|
marqueeDetails: e
|
|
3833
3844
|
}) => {
|
|
3834
|
-
const
|
|
3845
|
+
const p = Nt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = Math.max(0, o - (n || 0)), d = Math.min(1, Math.max(0, h / (s || 1))), u = i.width || 300, l = i.height || 100, b = (e == null ? void 0 : e.direction) || "horizontal", y = b === "static", m = Math.min(15, Math.max(1, Number((e == null ? void 0 : e.repeatX) ?? 5))), g = Math.min(15, Math.max(1, Number((e == null ? void 0 : e.repeatY) ?? 5))), M = (e == null ? void 0 : e.baseSpeed) !== void 0 ? Number(e.baseSpeed) : 2, S = (e == null ? void 0 : e.speedVariation) !== void 0 ? Number(e.speedVariation) : 0.5, $ = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialBaseSpeed) !== void 0 ? Number(e.initialBaseSpeed) : M, k = e != null && e.hasInitialValue ? $ + (M - $) * d : M, x = y ? 0 : k * 400, v = y ? 0 : k * 400, w = (e == null ? void 0 : e.scaleFactor) !== void 0 ? Number(e.scaleFactor) : 1, N = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialScaleFactor) !== void 0 ? Number(e.initialScaleFactor) : w, R = e != null && e.hasInitialValue ? N + (w - N) * d : w, V = (e == null ? void 0 : e.lineOffset) !== void 0 ? Number(e.lineOffset) : 0.5, P = (e == null ? void 0 : e.gapX) !== void 0 ? Number(e.gapX) : 60, Y = (e == null ? void 0 : e.gapY) !== void 0 ? Number(e.gapY) : 60, W = P / 100 * u, F = Y / 100 * l, C = u * R + W, X = l * R + F, E = tr(i), _ = b === "vertical" || b === "up" || b === "down", z = b === "diagonal", U = (m - 1) / 2, L = (g - 1) / 2, D = g, H = m, Z = Array.from({ length: D }, (Q, T) => T - L), j = Array.from({ length: H }, (Q, T) => T - U), pt = (Q, T, ot, vt) => /* @__PURE__ */ f(
|
|
3835
3846
|
"span",
|
|
3836
3847
|
{
|
|
3837
3848
|
style: {
|
|
@@ -3839,7 +3850,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
3839
3850
|
position: "absolute",
|
|
3840
3851
|
left: `calc(50% + ${T}px)`,
|
|
3841
3852
|
top: `calc(50% + ${ot}px)`,
|
|
3842
|
-
transform: `translate(-50%, -50%) scale(${
|
|
3853
|
+
transform: `translate(-50%, -50%) scale(${R})`,
|
|
3843
3854
|
transformOrigin: "center center",
|
|
3844
3855
|
opacity: vt ? 1 : 0.85,
|
|
3845
3856
|
whiteSpace: "nowrap"
|
|
@@ -3860,12 +3871,12 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
3860
3871
|
children: j.map((Q, T) => {
|
|
3861
3872
|
let ot = T % 2 === 0 ? 1 : -1;
|
|
3862
3873
|
b === "up" && (ot = -1), b === "down" && (ot = 1);
|
|
3863
|
-
const vt = 1 + T % 2 * (S * 0.5), nt = v > 0 && ot !== 0 ? ot * (
|
|
3874
|
+
const vt = 1 + T % 2 * (S * 0.5), nt = v > 0 && ot !== 0 ? ot * (h * v * 0.1 * vt) + Q * (X * V) : Q * (X * V), ut = v === 0 || ot === 0 ? 0 : (nt % X + X) % X - X / 2;
|
|
3864
3875
|
return Z.map((it, mt) => {
|
|
3865
|
-
const
|
|
3866
|
-
return
|
|
3876
|
+
const ht = Q * C, tt = it * X + ut;
|
|
3877
|
+
return pt(
|
|
3867
3878
|
`v-${T}-${mt}`,
|
|
3868
|
-
|
|
3879
|
+
ht,
|
|
3869
3880
|
tt,
|
|
3870
3881
|
Q === 0 && it === 0
|
|
3871
3882
|
);
|
|
@@ -3882,10 +3893,10 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
3882
3893
|
overflow: "visible"
|
|
3883
3894
|
},
|
|
3884
3895
|
children: Z.map((Q, T) => {
|
|
3885
|
-
const ot = T % 2 === 0 ? 1 : -1, vt = T % 2 === 0 ? 1 : -1, nt = 1 + T % 2 * (S * 0.5), ut =
|
|
3896
|
+
const ot = T % 2 === 0 ? 1 : -1, vt = T % 2 === 0 ? 1 : -1, nt = 1 + T % 2 * (S * 0.5), ut = x > 0 ? ot * (h * x * 0.1 * nt) + Q * (C * V) : Q * (C * V), it = x === 0 ? 0 : (ut % C + C) % C - C / 2, mt = v > 0 ? vt * (h * v * 0.1 * nt) + Q * (X * V) : Q * (X * V), ht = v === 0 ? 0 : (mt % X + X) % X - X / 2;
|
|
3886
3897
|
return j.map((tt, st) => {
|
|
3887
|
-
const et = tt * C + it, ct = Q * X +
|
|
3888
|
-
return
|
|
3898
|
+
const et = tt * C + it, ct = Q * X + ht;
|
|
3899
|
+
return pt(
|
|
3889
3900
|
`d-${T}-${st}`,
|
|
3890
3901
|
et,
|
|
3891
3902
|
ct,
|
|
@@ -3906,12 +3917,12 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
3906
3917
|
children: Z.map((Q, T) => {
|
|
3907
3918
|
let ot = T % 2 === 0 ? 1 : -1;
|
|
3908
3919
|
b === "left" && (ot = -1), b === "right" && (ot = 1);
|
|
3909
|
-
const vt = 1 + T % 2 * (S * 0.5), nt =
|
|
3920
|
+
const vt = 1 + T % 2 * (S * 0.5), nt = x > 0 && ot !== 0 ? ot * (h * x * 0.1 * vt) + Q * (C * V) : Q * (C * V), ut = x === 0 || ot === 0 ? 0 : (nt % C + C) % C - C / 2;
|
|
3910
3921
|
return j.map((it, mt) => {
|
|
3911
|
-
const
|
|
3912
|
-
return
|
|
3922
|
+
const ht = it * C + ut, tt = Q * X;
|
|
3923
|
+
return pt(
|
|
3913
3924
|
`h-${T}-${mt}`,
|
|
3914
|
-
|
|
3925
|
+
ht,
|
|
3915
3926
|
tt,
|
|
3916
3927
|
Q === 0 && it === 0
|
|
3917
3928
|
);
|
|
@@ -3929,13 +3940,13 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
3929
3940
|
details: i,
|
|
3930
3941
|
echoesDetails: e
|
|
3931
3942
|
}) => {
|
|
3932
|
-
const
|
|
3933
|
-
let w = c + (a - c) *
|
|
3943
|
+
const p = Nt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = i.width || 300, d = i.height || 100, u = (e == null ? void 0 : e.keepStill) || "both", l = Number((e == null ? void 0 : e.toRepeatCount) ?? 5), b = Number((e == null ? void 0 : e.toScaleDown) ?? 0.3), y = Number((e == null ? void 0 : e.toCenterX) ?? 0.5), m = Number((e == null ? void 0 : e.toCenterY) ?? 0.5), g = (e == null ? void 0 : e.initialRepeatCount) !== void 0 ? Number(e.initialRepeatCount) : l, M = (e == null ? void 0 : e.initialScaleDown) !== void 0 ? Number(e.initialScaleDown) : 1, S = (e == null ? void 0 : e.initialCenterX) !== void 0 ? Number(e.initialCenterX) : y, $ = (e == null ? void 0 : e.initialCenterY) !== void 0 ? Number(e.initialCenterY) : m, k = Math.max(0, o - (n || 0)), x = Math.min(1, Math.max(0, k / (s || 1)));
|
|
3944
|
+
let w = c + (a - c) * x;
|
|
3934
3945
|
u === "initial" ? w = 0 : u === "final" && (w = 1);
|
|
3935
3946
|
const N = Math.max(
|
|
3936
3947
|
1,
|
|
3937
3948
|
Math.round(O(w, [0, 1], [g, l]))
|
|
3938
|
-
),
|
|
3949
|
+
), R = O(
|
|
3939
3950
|
w,
|
|
3940
3951
|
[0, 1],
|
|
3941
3952
|
[M, b]
|
|
@@ -3946,8 +3957,8 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
3946
3957
|
), P = O(
|
|
3947
3958
|
w,
|
|
3948
3959
|
[0, 1],
|
|
3949
|
-
[$,
|
|
3950
|
-
), Y = tr(i), W = Array.from({ length: N }, (
|
|
3960
|
+
[$, m]
|
|
3961
|
+
), Y = tr(i), W = Array.from({ length: N }, (F, C) => C);
|
|
3951
3962
|
return /* @__PURE__ */ f(
|
|
3952
3963
|
"div",
|
|
3953
3964
|
{
|
|
@@ -3957,8 +3968,8 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
3957
3968
|
position: "relative",
|
|
3958
3969
|
overflow: "hidden"
|
|
3959
3970
|
},
|
|
3960
|
-
children: W.map((
|
|
3961
|
-
const C = N > 1 ?
|
|
3971
|
+
children: W.map((F) => {
|
|
3972
|
+
const C = N > 1 ? F / (N - 1) : 0, X = 1 - C * (1 - Math.max(0.01, R)), E = (V - 0.5) * h * C, _ = (P - 0.5) * d * C;
|
|
3962
3973
|
return /* @__PURE__ */ f(
|
|
3963
3974
|
"span",
|
|
3964
3975
|
{
|
|
@@ -3971,12 +3982,12 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
3971
3982
|
transformOrigin: "center center",
|
|
3972
3983
|
lineHeight: 1,
|
|
3973
3984
|
whiteSpace: "nowrap",
|
|
3974
|
-
zIndex:
|
|
3975
|
-
opacity:
|
|
3985
|
+
zIndex: F + 1,
|
|
3986
|
+
opacity: F === 0 ? 1 : 0.85
|
|
3976
3987
|
},
|
|
3977
3988
|
children: t
|
|
3978
3989
|
},
|
|
3979
|
-
`echo-${
|
|
3990
|
+
`echo-${F}`
|
|
3980
3991
|
);
|
|
3981
3992
|
})
|
|
3982
3993
|
}
|
|
@@ -3991,7 +4002,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
3991
4002
|
details: i,
|
|
3992
4003
|
wiggleDetails: e
|
|
3993
4004
|
}) => {
|
|
3994
|
-
const
|
|
4005
|
+
const p = Nt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = Number((e == null ? void 0 : e.wiggleX) ?? 20), d = Number((e == null ? void 0 : e.wiggleY) ?? 20), u = Number((e == null ? void 0 : e.speed) ?? 3), l = Number((e == null ? void 0 : e.angle) ?? 10), b = Number((e == null ? void 0 : e.seed) ?? 1), y = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialWiggleX) !== void 0 ? Number(e.initialWiggleX) : h, m = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialWiggleY) !== void 0 ? Number(e.initialWiggleY) : d, g = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialSpeed) !== void 0 ? Number(e.initialSpeed) : u, M = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialAngle) !== void 0 ? Number(e.initialAngle) : l, S = Math.max(0, o - (n || 0)), $ = Math.min(1, Math.max(0, S / (s || 1))), k = e != null && e.hasInitialValue ? y + (h - y) * $ : h, x = e != null && e.hasInitialValue ? m + (d - m) * $ : d, v = e != null && e.hasInitialValue ? g + (u - g) * $ : u, w = e != null && e.hasInitialValue ? M + (l - M) * $ : l, N = o * (v * 0.08), R = b * 12.345, V = Math.sin(N + R) * Math.cos(N * 0.65 + R) * k, P = Math.cos(N * 0.85 + R) * Math.sin(N * 1.15 + R) * x, Y = Math.sin(N * 0.9 + R * 1.35) * w, W = tr(i);
|
|
3995
4006
|
return /* @__PURE__ */ f(
|
|
3996
4007
|
"div",
|
|
3997
4008
|
{
|
|
@@ -4029,7 +4040,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4029
4040
|
details: i,
|
|
4030
4041
|
cardFlipDetails: e
|
|
4031
4042
|
}) => {
|
|
4032
|
-
const
|
|
4043
|
+
const p = tr(i);
|
|
4033
4044
|
return /* @__PURE__ */ f(
|
|
4034
4045
|
Cr,
|
|
4035
4046
|
{
|
|
@@ -4041,7 +4052,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4041
4052
|
width: i.width,
|
|
4042
4053
|
height: i.height,
|
|
4043
4054
|
cardFlipDetails: e,
|
|
4044
|
-
children: /* @__PURE__ */ f("span", { style:
|
|
4055
|
+
children: /* @__PURE__ */ f("span", { style: p, children: t })
|
|
4045
4056
|
}
|
|
4046
4057
|
);
|
|
4047
4058
|
}, Ue = ({
|
|
@@ -4054,24 +4065,24 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4054
4065
|
details: i,
|
|
4055
4066
|
noiseTileDetails: e
|
|
4056
4067
|
}) => {
|
|
4057
|
-
const
|
|
4068
|
+
const p = Nt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = i.width || 300, d = i.height || 100, u = (e == null ? void 0 : e.keepStill) || "both", l = Number((e == null ? void 0 : e.toXRepetitions) ?? (e == null ? void 0 : e.xRepetitions) ?? 5), b = Number((e == null ? void 0 : e.toYRepetitions) ?? (e == null ? void 0 : e.yRepetitions) ?? 5), y = Number((e == null ? void 0 : e.toGapX) ?? (e == null ? void 0 : e.gapX) ?? 12), m = Number((e == null ? void 0 : e.toGapY) ?? (e == null ? void 0 : e.gapY) ?? 12), g = Number((e == null ? void 0 : e.toScale) ?? (e == null ? void 0 : e.scale) ?? 1), M = Number((e == null ? void 0 : e.toNoiseScale) ?? (e == null ? void 0 : e.noiseScale) ?? 1.5), S = Number((e == null ? void 0 : e.toNoiseMoveX) ?? (e == null ? void 0 : e.noiseMoveX) ?? 0.6), $ = Number((e == null ? void 0 : e.toNoiseMoveY) ?? (e == null ? void 0 : e.noiseMoveY) ?? 0.4), k = Number((e == null ? void 0 : e.toFps) ?? (e == null ? void 0 : e.fps) ?? 12), x = Number((e == null ? void 0 : e.toThreshold) ?? (e == null ? void 0 : e.threshold) ?? 0.45), v = Number((e == null ? void 0 : e.toSeedOffset) ?? (e == null ? void 0 : e.seedOffset) ?? 0), w = !!(e != null && e.hasInitialValue), N = w ? Number((e == null ? void 0 : e.initialXRepetitions) ?? l) : l, R = w ? Number((e == null ? void 0 : e.initialYRepetitions) ?? b) : b, V = w ? Number((e == null ? void 0 : e.initialGapX) ?? y) : y, P = w ? Number((e == null ? void 0 : e.initialGapY) ?? m) : m, Y = w ? Number((e == null ? void 0 : e.initialScale) ?? g) : g, W = w ? Number((e == null ? void 0 : e.initialNoiseScale) ?? M) : M, F = w ? Number((e == null ? void 0 : e.initialNoiseMoveX) ?? S) : S, C = w ? Number((e == null ? void 0 : e.initialNoiseMoveY) ?? $) : $, X = w ? Number((e == null ? void 0 : e.initialFps) ?? k) : k, E = w ? Number((e == null ? void 0 : e.initialThreshold) ?? x) : x, _ = w ? Number((e == null ? void 0 : e.initialSeedOffset) ?? v) : v, z = Math.max(0, o - (n || 0)), U = Math.min(1, Math.max(0, z / (s || 1)));
|
|
4058
4069
|
let D = c + (a - c) * U;
|
|
4059
4070
|
u === "initial" ? D = 0 : u === "final" && (D = 1);
|
|
4060
|
-
const H = Math.max(1, Math.round(O(D, [0, 1], [N, l]))), Z = Math.max(1, Math.round(O(D, [0, 1], [
|
|
4071
|
+
const H = Math.max(1, Math.round(O(D, [0, 1], [N, l]))), Z = Math.max(1, Math.round(O(D, [0, 1], [R, b]))), j = O(D, [0, 1], [V, y]), pt = O(D, [0, 1], [P, m]), Q = O(D, [0, 1], [Y, g]), T = O(D, [0, 1], [W, M]), ot = O(D, [0, 1], [F, S]), vt = O(D, [0, 1], [C, $]), nt = Math.max(1, Math.round(O(D, [0, 1], [X, k]))), ut = O(D, [0, 1], [E, x]), it = O(D, [0, 1], [_, v]), mt = tr(i), ht = Math.floor(z * (nt / 30)), tt = (H - 1) / 2, st = (Z - 1) / 2, et = [];
|
|
4061
4072
|
for (let ct = 0; ct < Z; ct++)
|
|
4062
4073
|
for (let dt = 0; dt < H; dt++) {
|
|
4063
|
-
const ft = dt / Math.max(1, H) * T, bt = ct / Math.max(1, Z) * T, $t =
|
|
4064
|
-
ft +
|
|
4065
|
-
bt +
|
|
4074
|
+
const ft = dt / Math.max(1, H) * T, bt = ct / Math.max(1, Z) * T, $t = ht * 0.1 + it, lt = Sn(
|
|
4075
|
+
ft + ht * ot * 0.05,
|
|
4076
|
+
bt + ht * vt * 0.05,
|
|
4066
4077
|
$t,
|
|
4067
4078
|
it
|
|
4068
|
-
),
|
|
4079
|
+
), Ft = dt === Math.floor(tt) && ct === Math.floor(st) || lt >= ut, Yt = dt - tt, Xt = ct - st, Pt = j / 100 * h, Gt = pt / 100 * d, Et = Yt * (h * Q + Pt), _t = Xt * (d * Q + Gt);
|
|
4069
4080
|
et.push({
|
|
4070
4081
|
col: dt,
|
|
4071
4082
|
row: ct,
|
|
4072
|
-
visible:
|
|
4073
|
-
posX:
|
|
4074
|
-
posY:
|
|
4083
|
+
visible: Ft,
|
|
4084
|
+
posX: Et,
|
|
4085
|
+
posY: _t
|
|
4075
4086
|
});
|
|
4076
4087
|
}
|
|
4077
4088
|
return /* @__PURE__ */ f(
|
|
@@ -4118,11 +4129,11 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4118
4129
|
)
|
|
4119
4130
|
), i = yr(() => {
|
|
4120
4131
|
let e = 0;
|
|
4121
|
-
return r.split(" ").map((
|
|
4122
|
-
if (e +
|
|
4123
|
-
return e +=
|
|
4132
|
+
return r.split(" ").map((p) => {
|
|
4133
|
+
if (e + p.length <= a)
|
|
4134
|
+
return e += p.length + 1, p;
|
|
4124
4135
|
if (e < a) {
|
|
4125
|
-
const o =
|
|
4136
|
+
const o = p.slice(0, a - e);
|
|
4126
4137
|
return e = a, o;
|
|
4127
4138
|
}
|
|
4128
4139
|
return "";
|
|
@@ -4165,20 +4176,20 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4165
4176
|
fps: c,
|
|
4166
4177
|
durationInFrames: a
|
|
4167
4178
|
}) => {
|
|
4168
|
-
const i = (b, y,
|
|
4179
|
+
const i = (b, y, m) => {
|
|
4169
4180
|
const M = document.createElement("canvas").getContext("2d");
|
|
4170
4181
|
if (!M) return [];
|
|
4171
|
-
M.font = `${
|
|
4182
|
+
M.font = `${m}px ${n.fontFamily || "Arial, sans-serif"}`;
|
|
4172
4183
|
const S = b.split(" ");
|
|
4173
4184
|
let $ = [], k = "";
|
|
4174
|
-
return S.forEach((
|
|
4175
|
-
const v = k ? `${k} ${
|
|
4176
|
-
M.measureText(v).width > y ? ($.push(k), k =
|
|
4185
|
+
return S.forEach((x) => {
|
|
4186
|
+
const v = k ? `${k} ${x}` : x;
|
|
4187
|
+
M.measureText(v).width > y ? ($.push(k), k = x) : k = v;
|
|
4177
4188
|
}), k && $.push(k), $;
|
|
4178
|
-
}, e = (a - s) / c,
|
|
4179
|
-
const
|
|
4189
|
+
}, e = (a - s) / c, p = n.width || 300, o = i(t, p, n.fontSize), h = s / c, d = 0.5, u = h / o.length, l = o.map((b, y) => {
|
|
4190
|
+
const m = e + y * u * (1 - d) * 1.5, g = m + u, M = m * c, S = Math.min(
|
|
4180
4191
|
g * c,
|
|
4181
|
-
(e +
|
|
4192
|
+
(e + h) * c
|
|
4182
4193
|
), $ = O(r, [M, S], [0, 1], {
|
|
4183
4194
|
easing: I.in(I.cubic),
|
|
4184
4195
|
extrapolateLeft: "clamp",
|
|
@@ -4199,7 +4210,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4199
4210
|
flexDirection: "column",
|
|
4200
4211
|
alignItems: "center",
|
|
4201
4212
|
overflow: "hidden",
|
|
4202
|
-
width: `${
|
|
4213
|
+
width: `${p}px`
|
|
4203
4214
|
},
|
|
4204
4215
|
children: l.map((b, y) => /* @__PURE__ */ f(
|
|
4205
4216
|
"div",
|
|
@@ -4233,13 +4244,13 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4233
4244
|
durationInFrames: c,
|
|
4234
4245
|
fps: a
|
|
4235
4246
|
}) => {
|
|
4236
|
-
const i = c - n,
|
|
4247
|
+
const i = c - n, p = O(r, [i, i + n], [0, 1], {
|
|
4237
4248
|
extrapolateRight: "clamp"
|
|
4238
|
-
}), o = s.width,
|
|
4239
|
-
Math.round(
|
|
4249
|
+
}), o = s.width, h = s.height, d = O(
|
|
4250
|
+
Math.round(p * 100),
|
|
4240
4251
|
[0, 100 - a / 10],
|
|
4241
4252
|
[o, 0]
|
|
4242
|
-
), u = O(
|
|
4253
|
+
), u = O(p, [0, 1], [0, o * 2]);
|
|
4243
4254
|
return /* @__PURE__ */ f(
|
|
4244
4255
|
"div",
|
|
4245
4256
|
{
|
|
@@ -4257,7 +4268,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4257
4268
|
{
|
|
4258
4269
|
style: {
|
|
4259
4270
|
width: d,
|
|
4260
|
-
height:
|
|
4271
|
+
height: h,
|
|
4261
4272
|
overflow: "hidden",
|
|
4262
4273
|
display: "flex",
|
|
4263
4274
|
position: "relative",
|
|
@@ -4296,8 +4307,8 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4296
4307
|
dropTextAnimationIn: Me,
|
|
4297
4308
|
descompressTextAnimationIn: we
|
|
4298
4309
|
}, Te = {
|
|
4299
|
-
animatedTextOut:
|
|
4300
|
-
sunnyMorningsTextAnimationOut:
|
|
4310
|
+
animatedTextOut: he,
|
|
4311
|
+
sunnyMorningsTextAnimationOut: pe,
|
|
4301
4312
|
dominoDreamsTextAnimationOut: fe,
|
|
4302
4313
|
beautifulQuestionsTextAnimationOut: ye,
|
|
4303
4314
|
madeWithLoveTextAnimationOut: ve,
|
|
@@ -4310,8 +4321,8 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4310
4321
|
dragonFlyTextAnimationLoop: $e,
|
|
4311
4322
|
billboardTextAnimationLoop: Se,
|
|
4312
4323
|
heartbeatTextAnimationLoop: Ne,
|
|
4313
|
-
waveTextAnimationLoop:
|
|
4314
|
-
shakyLettersTextAnimationLoop:
|
|
4324
|
+
waveTextAnimationLoop: Re,
|
|
4325
|
+
shakyLettersTextAnimationLoop: Fe,
|
|
4315
4326
|
pulseTextAnimationLoop: Ye
|
|
4316
4327
|
}, De = ({
|
|
4317
4328
|
text: t,
|
|
@@ -4322,23 +4333,23 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4322
4333
|
textAnimationModeIn: a = "letter",
|
|
4323
4334
|
textAnimationModeOut: i = "letter",
|
|
4324
4335
|
textAnimationModeLoop: e = "letter",
|
|
4325
|
-
textAnimationModeTimed:
|
|
4336
|
+
textAnimationModeTimed: p = "all",
|
|
4326
4337
|
basicCharAnimationsIn: o,
|
|
4327
|
-
basicCharAnimationsOut:
|
|
4338
|
+
basicCharAnimationsOut: h,
|
|
4328
4339
|
basicCharAnimationsLoop: d,
|
|
4329
4340
|
basicCharAnimationsTimed: u,
|
|
4330
4341
|
loopComposition: l,
|
|
4331
4342
|
details: b,
|
|
4332
4343
|
frame: y,
|
|
4333
|
-
animationTextInFrames:
|
|
4344
|
+
animationTextInFrames: m,
|
|
4334
4345
|
animationTextOutFrames: g,
|
|
4335
4346
|
animationTextLoopFrames: M,
|
|
4336
4347
|
animationTextTimedFrames: S = 0,
|
|
4337
4348
|
durationInFrames: $,
|
|
4338
4349
|
animationFonts: k
|
|
4339
4350
|
}) => {
|
|
4340
|
-
var A,
|
|
4341
|
-
const
|
|
4351
|
+
var A, Ft, Yt, Xt, Pt, Gt, Et, _t, Ut, Zt, Qt, Kt, Jt, nr;
|
|
4352
|
+
const x = m, v = $ - g, w = n ? x >= y : !1, N = s ? y >= v : !1, R = o && o.length > 0, V = h && h.length > 0, P = d && d.length > 0, Y = u && u.length > 0, W = ((A = o == null ? void 0 : o[0]) == null ? void 0 : A.durationInFrames) || m, F = ((Ft = o == null ? void 0 : o[0]) == null ? void 0 : Ft.delay) || 0, C = W + F, X = ((Yt = h == null ? void 0 : h[0]) == null ? void 0 : Yt.durationInFrames) || g, E = ((Xt = h == null ? void 0 : h[0]) == null ? void 0 : Xt.delay) || 0, _ = X + E, z = Math.max(0, $ - _), U = ((Pt = u == null ? void 0 : u[0]) == null ? void 0 : Pt.delay) || 0, L = U, D = U + (((Gt = u == null ? void 0 : u[0]) == null ? void 0 : Gt.durationInFrames) || S), H = R && !n && (P ? y < C : y < z), Z = V && !s && y >= z, j = Y && !H && !Z && y >= L && y <= D, pt = P && !c && !H && !Z && !j, T = ((q, K, B, rt, yt, G) => {
|
|
4342
4353
|
const at = document.createElement("canvas").getContext("2d");
|
|
4343
4354
|
if (!at) return [];
|
|
4344
4355
|
at.font = `${G} ${yt} ${B}px ${rt}`;
|
|
@@ -4371,7 +4382,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4371
4382
|
Xe,
|
|
4372
4383
|
{
|
|
4373
4384
|
frame: y,
|
|
4374
|
-
durationInFrames:
|
|
4385
|
+
durationInFrames: m,
|
|
4375
4386
|
text: t,
|
|
4376
4387
|
style: b
|
|
4377
4388
|
}
|
|
@@ -4383,7 +4394,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4383
4394
|
text: t,
|
|
4384
4395
|
frame: y,
|
|
4385
4396
|
details: b,
|
|
4386
|
-
animationTextInFrames:
|
|
4397
|
+
animationTextInFrames: m
|
|
4387
4398
|
}
|
|
4388
4399
|
);
|
|
4389
4400
|
if (n === "soundWaveTextAnimationIn" && w)
|
|
@@ -4392,7 +4403,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4392
4403
|
{
|
|
4393
4404
|
text: t,
|
|
4394
4405
|
frame: y,
|
|
4395
|
-
animationTextInFrames:
|
|
4406
|
+
animationTextInFrames: m,
|
|
4396
4407
|
details: b
|
|
4397
4408
|
}
|
|
4398
4409
|
);
|
|
@@ -4402,7 +4413,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4402
4413
|
{
|
|
4403
4414
|
text: t,
|
|
4404
4415
|
frame: y,
|
|
4405
|
-
animationTextInFrames:
|
|
4416
|
+
animationTextInFrames: m,
|
|
4406
4417
|
details: b
|
|
4407
4418
|
}
|
|
4408
4419
|
);
|
|
@@ -4413,7 +4424,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4413
4424
|
text: t,
|
|
4414
4425
|
frame: y,
|
|
4415
4426
|
details: b,
|
|
4416
|
-
animationTextInFrames:
|
|
4427
|
+
animationTextInFrames: m,
|
|
4417
4428
|
fps: r
|
|
4418
4429
|
}
|
|
4419
4430
|
);
|
|
@@ -4619,7 +4630,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4619
4630
|
), vt = T.reduce(
|
|
4620
4631
|
(q, K) => q + (K.trim() === "" ? 0 : K.split(/\s+/).length),
|
|
4621
4632
|
0
|
|
4622
|
-
), nt = T.length, ut = Je[n], it = Te[s], mt = qe[c],
|
|
4633
|
+
), nt = T.length, ut = Je[n], it = Te[s], mt = qe[c], ht = ((Et = o == null ? void 0 : o[0]) == null ? void 0 : Et.textAnimationMode) || ((_t = h == null ? void 0 : h[0]) == null ? void 0 : _t.textAnimationMode) || ((Ut = d == null ? void 0 : d[0]) == null ? void 0 : Ut.textAnimationMode) || ((Zt = u == null ? void 0 : u[0]) == null ? void 0 : Zt.textAnimationMode) || (n ? a : void 0) || (s ? i : void 0) || (c ? e : void 0) || a || e || "letter", tt = w ? a : N ? i : H ? o[0].textAnimationMode || ht : Z ? h[0].textAnimationMode || ht : j ? u[0].textAnimationMode || ht : pt && d[0].textAnimationMode || ht, st = H ? o : Z ? h : j ? u : pt ? d : [], et = (q, K, B, rt) => {
|
|
4623
4634
|
var yt, G, J;
|
|
4624
4635
|
if (w && ut)
|
|
4625
4636
|
return /* @__PURE__ */ f(
|
|
@@ -4630,7 +4641,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4630
4641
|
frame: y,
|
|
4631
4642
|
textLength: B,
|
|
4632
4643
|
fps: r,
|
|
4633
|
-
animationTextInFrames:
|
|
4644
|
+
animationTextInFrames: m,
|
|
4634
4645
|
details: b
|
|
4635
4646
|
},
|
|
4636
4647
|
rt
|
|
@@ -4690,7 +4701,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4690
4701
|
return /* @__PURE__ */ f("span", { children: q === "" ? " " : q }, rt);
|
|
4691
4702
|
};
|
|
4692
4703
|
let dt = (b == null ? void 0 : b.textAlign) === "right";
|
|
4693
|
-
const ft = o && o.length > 0 ? o[0] :
|
|
4704
|
+
const ft = o && o.length > 0 ? o[0] : h && h.length > 0 ? h[0] : u && u.length > 0 ? u[0] : d && d.length > 0 ? d[0] : null, bt = ft != null && ft.order ? ft : (Qt = o == null ? void 0 : o[0]) != null && Qt.order ? o[0] : (Kt = h == null ? void 0 : h[0]) != null && Kt.order ? h[0] : (Jt = u == null ? void 0 : u[0]) != null && Jt.order ? u[0] : (nr = d == null ? void 0 : d[0]) != null && nr.order ? d[0] : null;
|
|
4694
4705
|
if (bt != null && bt.order)
|
|
4695
4706
|
dt = bt.order === "backward";
|
|
4696
4707
|
else if (ft && ft.property === "translateX") {
|
|
@@ -4764,25 +4775,25 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4764
4775
|
onBlur: a,
|
|
4765
4776
|
fps: i,
|
|
4766
4777
|
frame: e,
|
|
4767
|
-
textAnimationNameIn:
|
|
4778
|
+
textAnimationNameIn: p,
|
|
4768
4779
|
textAnimationNameOut: o,
|
|
4769
|
-
textAnimationNameLoop:
|
|
4780
|
+
textAnimationNameLoop: h,
|
|
4770
4781
|
textAnimationModeIn: d,
|
|
4771
4782
|
textAnimationModeOut: u,
|
|
4772
4783
|
textAnimationModeLoop: l,
|
|
4773
4784
|
textAnimationModeTimed: b,
|
|
4774
4785
|
basicCharAnimationsIn: y,
|
|
4775
|
-
basicCharAnimationsOut:
|
|
4786
|
+
basicCharAnimationsOut: m,
|
|
4776
4787
|
basicCharAnimationsLoop: g,
|
|
4777
4788
|
basicCharAnimationsTimed: M,
|
|
4778
4789
|
loopComposition: S,
|
|
4779
4790
|
details: $,
|
|
4780
4791
|
animationTextInFrames: k,
|
|
4781
|
-
animationTextOutFrames:
|
|
4792
|
+
animationTextOutFrames: x,
|
|
4782
4793
|
animationTextLoopFrames: v,
|
|
4783
4794
|
animationTextTimedFrames: w,
|
|
4784
4795
|
durationInFrames: N,
|
|
4785
|
-
animationFonts:
|
|
4796
|
+
animationFonts: R
|
|
4786
4797
|
}) => {
|
|
4787
4798
|
const [V, P] = fr(r), Y = Wr(null);
|
|
4788
4799
|
sr(() => {
|
|
@@ -4803,7 +4814,7 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4803
4814
|
const X = window.getSelection(), E = document.createRange();
|
|
4804
4815
|
E.selectNodeContents(Y.current), E.collapse(!1), X == null || X.removeAllRanges(), X == null || X.addRange(E);
|
|
4805
4816
|
}
|
|
4806
|
-
},
|
|
4817
|
+
}, F = (X) => {
|
|
4807
4818
|
var z;
|
|
4808
4819
|
X.stopPropagation();
|
|
4809
4820
|
const E = window.getSelection(), _ = Y.current;
|
|
@@ -4825,14 +4836,14 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4825
4836
|
"data-text-id": t,
|
|
4826
4837
|
ref: Y,
|
|
4827
4838
|
contentEditable: n,
|
|
4828
|
-
onClick:
|
|
4839
|
+
onClick: F,
|
|
4829
4840
|
onInput: (X) => {
|
|
4830
4841
|
const E = X.target, _ = C(E);
|
|
4831
4842
|
c(t, _);
|
|
4832
4843
|
},
|
|
4833
4844
|
onBlur: (X) => a(t, X.target.innerText),
|
|
4834
4845
|
style: {
|
|
4835
|
-
height: n ? "max-content" :
|
|
4846
|
+
height: n ? "max-content" : h === "textGridMarqueeTextAnimationLoop" || h === "textGridMarquee" ? $ != null && $.height ? `${$.height}px` : "100%" : "max-content",
|
|
4836
4847
|
boxShadow: "none",
|
|
4837
4848
|
outline: "none",
|
|
4838
4849
|
...s,
|
|
@@ -4847,15 +4858,15 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4847
4858
|
`) ? `${r}` : r : /* @__PURE__ */ f(
|
|
4848
4859
|
De,
|
|
4849
4860
|
{
|
|
4850
|
-
textAnimationNameIn:
|
|
4861
|
+
textAnimationNameIn: p,
|
|
4851
4862
|
textAnimationNameOut: o,
|
|
4852
|
-
textAnimationNameLoop:
|
|
4863
|
+
textAnimationNameLoop: h,
|
|
4853
4864
|
textAnimationModeIn: d,
|
|
4854
4865
|
textAnimationModeOut: u,
|
|
4855
4866
|
textAnimationModeLoop: l,
|
|
4856
4867
|
textAnimationModeTimed: b,
|
|
4857
4868
|
basicCharAnimationsIn: y,
|
|
4858
|
-
basicCharAnimationsOut:
|
|
4869
|
+
basicCharAnimationsOut: m,
|
|
4859
4870
|
basicCharAnimationsLoop: g,
|
|
4860
4871
|
basicCharAnimationsTimed: M,
|
|
4861
4872
|
loopComposition: S,
|
|
@@ -4864,11 +4875,11 @@ const Oe = ({ text: t, frame: r }) => {
|
|
|
4864
4875
|
details: $,
|
|
4865
4876
|
frame: e,
|
|
4866
4877
|
animationTextInFrames: k,
|
|
4867
|
-
animationTextOutFrames:
|
|
4878
|
+
animationTextOutFrames: x,
|
|
4868
4879
|
animationTextLoopFrames: v,
|
|
4869
4880
|
animationTextTimedFrames: w,
|
|
4870
4881
|
durationInFrames: N,
|
|
4871
|
-
animationFonts:
|
|
4882
|
+
animationFonts: R
|
|
4872
4883
|
}
|
|
4873
4884
|
)
|
|
4874
4885
|
}
|
|
@@ -4922,7 +4933,7 @@ function Pr(t, r, n) {
|
|
|
4922
4933
|
(a || !(s in r)) && (a || (a = Array.prototype.slice.call(r, 0, s)), a[s] = r[s]);
|
|
4923
4934
|
return t.concat(a || Array.prototype.slice.call(r));
|
|
4924
4935
|
}
|
|
4925
|
-
function
|
|
4936
|
+
function Ct(t) {
|
|
4926
4937
|
return typeof t == "function";
|
|
4927
4938
|
}
|
|
4928
4939
|
function Xn(t) {
|
|
@@ -4958,25 +4969,25 @@ var mr = function() {
|
|
|
4958
4969
|
if (i)
|
|
4959
4970
|
if (this._parentage = null, Array.isArray(i))
|
|
4960
4971
|
try {
|
|
4961
|
-
for (var e = Xr(i),
|
|
4962
|
-
var o =
|
|
4972
|
+
for (var e = Xr(i), p = e.next(); !p.done; p = e.next()) {
|
|
4973
|
+
var o = p.value;
|
|
4963
4974
|
o.remove(this);
|
|
4964
4975
|
}
|
|
4965
4976
|
} catch (y) {
|
|
4966
4977
|
r = { error: y };
|
|
4967
4978
|
} finally {
|
|
4968
4979
|
try {
|
|
4969
|
-
|
|
4980
|
+
p && !p.done && (n = e.return) && n.call(e);
|
|
4970
4981
|
} finally {
|
|
4971
4982
|
if (r) throw r.error;
|
|
4972
4983
|
}
|
|
4973
4984
|
}
|
|
4974
4985
|
else
|
|
4975
4986
|
i.remove(this);
|
|
4976
|
-
var
|
|
4977
|
-
if (
|
|
4987
|
+
var h = this.initialTeardown;
|
|
4988
|
+
if (Ct(h))
|
|
4978
4989
|
try {
|
|
4979
|
-
|
|
4990
|
+
h();
|
|
4980
4991
|
} catch (y) {
|
|
4981
4992
|
a = y instanceof Ir ? y.errors : [y];
|
|
4982
4993
|
}
|
|
@@ -5036,10 +5047,10 @@ var mr = function() {
|
|
|
5036
5047
|
}(), t;
|
|
5037
5048
|
}(), Bn = mr.EMPTY;
|
|
5038
5049
|
function Pn(t) {
|
|
5039
|
-
return t instanceof mr || t && "closed" in t &&
|
|
5050
|
+
return t instanceof mr || t && "closed" in t && Ct(t.remove) && Ct(t.add) && Ct(t.unsubscribe);
|
|
5040
5051
|
}
|
|
5041
5052
|
function Tr(t) {
|
|
5042
|
-
|
|
5053
|
+
Ct(t) ? t() : t.unsubscribe();
|
|
5043
5054
|
}
|
|
5044
5055
|
var ts = {
|
|
5045
5056
|
Promise: void 0
|
|
@@ -5061,7 +5072,7 @@ function ns(t) {
|
|
|
5061
5072
|
}
|
|
5062
5073
|
function qr() {
|
|
5063
5074
|
}
|
|
5064
|
-
function
|
|
5075
|
+
function hr(t) {
|
|
5065
5076
|
t();
|
|
5066
5077
|
}
|
|
5067
5078
|
var zr = function(t) {
|
|
@@ -5130,7 +5141,7 @@ var zr = function(t) {
|
|
|
5130
5141
|
cr(r, t);
|
|
5131
5142
|
function r(n, s, c) {
|
|
5132
5143
|
var a = t.call(this) || this, i;
|
|
5133
|
-
return
|
|
5144
|
+
return Ct(n) || !n ? i = {
|
|
5134
5145
|
next: n ?? void 0,
|
|
5135
5146
|
error: s ?? void 0,
|
|
5136
5147
|
complete: c ?? void 0
|
|
@@ -5171,9 +5182,9 @@ var Dr = function() {
|
|
|
5171
5182
|
return n.source = this, n.operator = r, n;
|
|
5172
5183
|
}, t.prototype.subscribe = function(r, n, s) {
|
|
5173
5184
|
var c = this, a = us(r) ? r : new _r(r, n, s);
|
|
5174
|
-
return
|
|
5175
|
-
var i = c, e = i.operator,
|
|
5176
|
-
a.add(e ? e.call(a,
|
|
5185
|
+
return hr(function() {
|
|
5186
|
+
var i = c, e = i.operator, p = i.source;
|
|
5187
|
+
a.add(e ? e.call(a, p) : p ? c._subscribe(a) : c._trySubscribe(a));
|
|
5177
5188
|
}), a;
|
|
5178
5189
|
}, t.prototype._trySubscribe = function(r) {
|
|
5179
5190
|
try {
|
|
@@ -5188,8 +5199,8 @@ var Dr = function() {
|
|
|
5188
5199
|
next: function(e) {
|
|
5189
5200
|
try {
|
|
5190
5201
|
r(e);
|
|
5191
|
-
} catch (
|
|
5192
|
-
a(
|
|
5202
|
+
} catch (p) {
|
|
5203
|
+
a(p), i.unsubscribe();
|
|
5193
5204
|
}
|
|
5194
5205
|
},
|
|
5195
5206
|
error: a,
|
|
@@ -5227,7 +5238,7 @@ function tn(t) {
|
|
|
5227
5238
|
return (r = t ?? ts.Promise) !== null && r !== void 0 ? r : Promise;
|
|
5228
5239
|
}
|
|
5229
5240
|
function ds(t) {
|
|
5230
|
-
return t &&
|
|
5241
|
+
return t && Ct(t.next) && Ct(t.error) && Ct(t.complete);
|
|
5231
5242
|
}
|
|
5232
5243
|
function us(t) {
|
|
5233
5244
|
return t && t instanceof zr || ds(t) && Pn(t);
|
|
@@ -5235,22 +5246,22 @@ function us(t) {
|
|
|
5235
5246
|
(function(t) {
|
|
5236
5247
|
cr(r, t);
|
|
5237
5248
|
function r(n, s, c, a, i, e) {
|
|
5238
|
-
var
|
|
5239
|
-
return
|
|
5249
|
+
var p = t.call(this, n) || this;
|
|
5250
|
+
return p.onFinalize = i, p.shouldUnsubscribe = e, p._next = s ? function(o) {
|
|
5240
5251
|
try {
|
|
5241
5252
|
s(o);
|
|
5242
|
-
} catch (
|
|
5243
|
-
n.error(
|
|
5253
|
+
} catch (h) {
|
|
5254
|
+
n.error(h);
|
|
5244
5255
|
}
|
|
5245
|
-
} : t.prototype._next,
|
|
5256
|
+
} : t.prototype._next, p._error = a ? function(o) {
|
|
5246
5257
|
try {
|
|
5247
5258
|
a(o);
|
|
5248
|
-
} catch (
|
|
5249
|
-
n.error(
|
|
5259
|
+
} catch (h) {
|
|
5260
|
+
n.error(h);
|
|
5250
5261
|
} finally {
|
|
5251
5262
|
this.unsubscribe();
|
|
5252
5263
|
}
|
|
5253
|
-
} : t.prototype._error,
|
|
5264
|
+
} : t.prototype._error, p._complete = c ? function() {
|
|
5254
5265
|
try {
|
|
5255
5266
|
c();
|
|
5256
5267
|
} catch (o) {
|
|
@@ -5258,7 +5269,7 @@ function us(t) {
|
|
|
5258
5269
|
} finally {
|
|
5259
5270
|
this.unsubscribe();
|
|
5260
5271
|
}
|
|
5261
|
-
} : t.prototype._complete,
|
|
5272
|
+
} : t.prototype._complete, p;
|
|
5262
5273
|
}
|
|
5263
5274
|
return r.prototype.unsubscribe = function() {
|
|
5264
5275
|
var n;
|
|
@@ -5286,14 +5297,14 @@ var ls = Xn(function(t) {
|
|
|
5286
5297
|
throw new ls();
|
|
5287
5298
|
}, r.prototype.next = function(n) {
|
|
5288
5299
|
var s = this;
|
|
5289
|
-
|
|
5300
|
+
hr(function() {
|
|
5290
5301
|
var c, a;
|
|
5291
5302
|
if (s._throwIfClosed(), !s.isStopped) {
|
|
5292
5303
|
s.currentObservers || (s.currentObservers = Array.from(s.observers));
|
|
5293
5304
|
try {
|
|
5294
5305
|
for (var i = Xr(s.currentObservers), e = i.next(); !e.done; e = i.next()) {
|
|
5295
|
-
var
|
|
5296
|
-
|
|
5306
|
+
var p = e.value;
|
|
5307
|
+
p.next(n);
|
|
5297
5308
|
}
|
|
5298
5309
|
} catch (o) {
|
|
5299
5310
|
c = { error: o };
|
|
@@ -5308,7 +5319,7 @@ var ls = Xn(function(t) {
|
|
|
5308
5319
|
});
|
|
5309
5320
|
}, r.prototype.error = function(n) {
|
|
5310
5321
|
var s = this;
|
|
5311
|
-
|
|
5322
|
+
hr(function() {
|
|
5312
5323
|
if (s._throwIfClosed(), !s.isStopped) {
|
|
5313
5324
|
s.hasError = s.isStopped = !0, s.thrownError = n;
|
|
5314
5325
|
for (var c = s.observers; c.length; )
|
|
@@ -5317,7 +5328,7 @@ var ls = Xn(function(t) {
|
|
|
5317
5328
|
});
|
|
5318
5329
|
}, r.prototype.complete = function() {
|
|
5319
5330
|
var n = this;
|
|
5320
|
-
|
|
5331
|
+
hr(function() {
|
|
5321
5332
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
5322
5333
|
n.isStopped = !0;
|
|
5323
5334
|
for (var s = n.observers; s.length; )
|
|
@@ -5372,20 +5383,20 @@ var ls = Xn(function(t) {
|
|
|
5372
5383
|
}, r;
|
|
5373
5384
|
}(En);
|
|
5374
5385
|
let kr = null;
|
|
5375
|
-
function
|
|
5386
|
+
function hs() {
|
|
5376
5387
|
if (!kr) {
|
|
5377
5388
|
const t = new En();
|
|
5378
5389
|
kr = { subject: t, dispatch: (r, n) => t.next({ key: r, value: n }) };
|
|
5379
5390
|
}
|
|
5380
5391
|
return kr;
|
|
5381
5392
|
}
|
|
5382
|
-
const { subject: ia, dispatch:
|
|
5393
|
+
const { subject: ia, dispatch: ps } = hs();
|
|
5383
5394
|
function _n({
|
|
5384
5395
|
item: t,
|
|
5385
5396
|
options: r
|
|
5386
5397
|
}) {
|
|
5387
|
-
var et, ct, dt, ft, bt, $t, lt, A,
|
|
5388
|
-
const { handleTextChange: n, onTextBlur: s, fps: c, editableTextId: a, frame: i } = r, { id: e, details:
|
|
5398
|
+
var et, ct, dt, ft, bt, $t, lt, A, Ft, Yt, Xt, Pt, Gt, Et, _t, Ut, Zt, Qt, Kt, Jt, nr, q, K, B, rt, yt;
|
|
5399
|
+
const { handleTextChange: n, onTextBlur: s, fps: c, editableTextId: a, frame: i } = r, { id: e, details: p, animations: o } = t, { durationInFrames: h } = wt(t.display, c), d = [
|
|
5389
5400
|
"opacity",
|
|
5390
5401
|
"scale",
|
|
5391
5402
|
"translateX",
|
|
@@ -5420,7 +5431,7 @@ function _n({
|
|
|
5420
5431
|
(G) => d.some((J) => G.property === J) && G.textAnimationMode && G.textAnimationMode !== "all"
|
|
5421
5432
|
), y = (((ft = o == null ? void 0 : o.timed) == null ? void 0 : ft.composition) || []).filter(
|
|
5422
5433
|
(G) => d.some((J) => G.property === J) && G.textAnimationMode && G.textAnimationMode !== "all"
|
|
5423
|
-
),
|
|
5434
|
+
), m = new Set(u.map((G) => G.id)), g = new Set(l.map((G) => G.id)), M = new Set(
|
|
5424
5435
|
b.map((G) => G.id)
|
|
5425
5436
|
), S = new Set(
|
|
5426
5437
|
y.map((G) => G.id)
|
|
@@ -5429,7 +5440,7 @@ function _n({
|
|
|
5429
5440
|
in: o != null && o.in ? {
|
|
5430
5441
|
...o.in,
|
|
5431
5442
|
composition: o.in.composition.filter(
|
|
5432
|
-
(G) => !
|
|
5443
|
+
(G) => !m.has(G.id)
|
|
5433
5444
|
)
|
|
5434
5445
|
} : void 0,
|
|
5435
5446
|
out: o != null && o.out ? {
|
|
@@ -5450,7 +5461,7 @@ function _n({
|
|
|
5450
5461
|
(G) => !S.has(G.id)
|
|
5451
5462
|
)
|
|
5452
5463
|
} : void 0
|
|
5453
|
-
}, { animationIn: k, animationOut:
|
|
5464
|
+
}, { animationIn: k, animationOut: x, animationTimed: v } = Rt(
|
|
5454
5465
|
$,
|
|
5455
5466
|
t,
|
|
5456
5467
|
i,
|
|
@@ -5460,9 +5471,9 @@ function _n({
|
|
|
5460
5471
|
(G) => !d.some((J) => G.property === J)
|
|
5461
5472
|
), N = ($t = o == null ? void 0 : o.out) == null ? void 0 : $t.composition.find(
|
|
5462
5473
|
(G) => !d.some((J) => G.property === J)
|
|
5463
|
-
),
|
|
5474
|
+
), R = (lt = o == null ? void 0 : o.loop) == null ? void 0 : lt.composition.find(
|
|
5464
5475
|
(G) => !d.some((J) => G.property === J)
|
|
5465
|
-
), V = (w == null ? void 0 : w.property) || "", P = (N == null ? void 0 : N.property) || "", Y = (
|
|
5476
|
+
), V = (w == null ? void 0 : w.property) || "", P = (N == null ? void 0 : N.property) || "", Y = (R == null ? void 0 : R.property) || "", W = (w == null ? void 0 : w.textAnimationMode) || ((A = u[0]) == null ? void 0 : A.textAnimationMode) || (w ? "letter" : "all"), F = (N == null ? void 0 : N.textAnimationMode) || ((Ft = l[0]) == null ? void 0 : Ft.textAnimationMode) || (N ? "letter" : "all"), C = (R == null ? void 0 : R.textAnimationMode) || ((Yt = b[0]) == null ? void 0 : Yt.textAnimationMode) || (R ? "letter" : "all"), X = ((Xt = y[0]) == null ? void 0 : Xt.textAnimationMode) || "all", E = (w == null ? void 0 : w.durationInFrames) || ((Gt = (Pt = o == null ? void 0 : o.in) == null ? void 0 : Pt.composition[0]) == null ? void 0 : Gt.durationInFrames) || 0, _ = (N == null ? void 0 : N.durationInFrames) || ((_t = (Et = o == null ? void 0 : o.out) == null ? void 0 : Et.composition[0]) == null ? void 0 : _t.durationInFrames) || 0, z = (R == null ? void 0 : R.durationInFrames) || ((Zt = (Ut = o == null ? void 0 : o.loop) == null ? void 0 : Ut.composition[0]) == null ? void 0 : Zt.durationInFrames) || 0, U = ((Qt = y[0]) == null ? void 0 : Qt.durationInFrames) || 0, L = [];
|
|
5466
5477
|
o != null && o.loop && o.loop.composition.forEach((G) => {
|
|
5467
5478
|
var J;
|
|
5468
5479
|
(J = G.details) != null && J.fonts && L.push(...G.details.fonts);
|
|
@@ -5473,7 +5484,7 @@ function _n({
|
|
|
5473
5484
|
var J;
|
|
5474
5485
|
(J = G.details) != null && J.fonts && L.push(...G.details.fonts);
|
|
5475
5486
|
});
|
|
5476
|
-
let D =
|
|
5487
|
+
let D = p.text;
|
|
5477
5488
|
if ((Jt = (Kt = t.animations) == null ? void 0 : Kt.timed) != null && Jt.composition) {
|
|
5478
5489
|
const G = (r.frame || 0) - t.display.from * c / 1e3;
|
|
5479
5490
|
if (G >= 0) {
|
|
@@ -5484,18 +5495,18 @@ function _n({
|
|
|
5484
5495
|
});
|
|
5485
5496
|
}
|
|
5486
5497
|
}
|
|
5487
|
-
const H = (i || 0) - t.display.from * c / 1e3, Z =
|
|
5488
|
-
G.stopPropagation(), G.preventDefault(),
|
|
5498
|
+
const H = (i || 0) - t.display.from * c / 1e3, Z = p || {}, { top: j, left: pt, transform: Q, position: T, boxShadow: ot, ...vt } = Z, nt = (G) => {
|
|
5499
|
+
G.stopPropagation(), G.preventDefault(), ps(ho, {
|
|
5489
5500
|
payload: {
|
|
5490
5501
|
id: e
|
|
5491
5502
|
}
|
|
5492
5503
|
});
|
|
5493
5504
|
}, ut = Gr(
|
|
5494
|
-
|
|
5505
|
+
p.effects,
|
|
5495
5506
|
t.animations,
|
|
5496
5507
|
H,
|
|
5497
|
-
|
|
5498
|
-
), it = Or(ut), mt = typeof
|
|
5508
|
+
h
|
|
5509
|
+
), it = Or(ut), mt = typeof p.width == "number" ? p.width : parseInt(String(p.width || 300), 10) || 300, ht = typeof p.height == "number" ? p.height : parseInt(String(p.height || 100), 10) || 100, tt = {
|
|
5499
5510
|
key: e,
|
|
5500
5511
|
id: e,
|
|
5501
5512
|
fps: c,
|
|
@@ -5507,7 +5518,7 @@ function _n({
|
|
|
5507
5518
|
textAnimationNameOut: P,
|
|
5508
5519
|
textAnimationNameLoop: Y,
|
|
5509
5520
|
textAnimationModeIn: W,
|
|
5510
|
-
textAnimationModeOut:
|
|
5521
|
+
textAnimationModeOut: F,
|
|
5511
5522
|
textAnimationModeLoop: C,
|
|
5512
5523
|
textAnimationModeTimed: X,
|
|
5513
5524
|
basicCharAnimationsIn: u,
|
|
@@ -5517,37 +5528,37 @@ function _n({
|
|
|
5517
5528
|
loopComposition: (q = o == null ? void 0 : o.loop) == null ? void 0 : q.composition,
|
|
5518
5529
|
onBlur: s,
|
|
5519
5530
|
onDoubleClick: nt,
|
|
5520
|
-
style: tr(
|
|
5521
|
-
details:
|
|
5531
|
+
style: tr(p),
|
|
5532
|
+
details: p,
|
|
5522
5533
|
animationTextInFrames: E,
|
|
5523
5534
|
animationTextOutFrames: _,
|
|
5524
5535
|
animationTextLoopFrames: z,
|
|
5525
5536
|
animationTextTimedFrames: U,
|
|
5526
|
-
durationInFrames:
|
|
5537
|
+
durationInFrames: h,
|
|
5527
5538
|
animationFonts: L
|
|
5528
5539
|
}, st = /* @__PURE__ */ f(
|
|
5529
5540
|
Lt,
|
|
5530
5541
|
{
|
|
5531
5542
|
animationIn: a === e ? null : k,
|
|
5532
|
-
animationOut: a === e ? null :
|
|
5543
|
+
animationOut: a === e ? null : x,
|
|
5533
5544
|
basicCharAnimationsIn: u,
|
|
5534
5545
|
basicCharAnimationsOut: l,
|
|
5535
5546
|
frame: H,
|
|
5536
|
-
durationInFrames:
|
|
5547
|
+
durationInFrames: h,
|
|
5537
5548
|
style: {
|
|
5538
|
-
transform:
|
|
5539
|
-
rotate:
|
|
5549
|
+
transform: p.transform,
|
|
5550
|
+
rotate: p == null ? void 0 : p.rotate,
|
|
5540
5551
|
display: "flex"
|
|
5541
5552
|
},
|
|
5542
5553
|
children: /* @__PURE__ */ f(
|
|
5543
5554
|
Ht,
|
|
5544
5555
|
{
|
|
5545
5556
|
animationTimed: a === e ? null : v,
|
|
5546
|
-
durationInFrames:
|
|
5557
|
+
durationInFrames: h,
|
|
5547
5558
|
frame: H,
|
|
5548
5559
|
style: {
|
|
5549
|
-
transform:
|
|
5550
|
-
rotate:
|
|
5560
|
+
transform: p.transform,
|
|
5561
|
+
rotate: p == null ? void 0 : p.rotate,
|
|
5551
5562
|
display: "flex"
|
|
5552
5563
|
},
|
|
5553
5564
|
children: /* @__PURE__ */ f(
|
|
@@ -5560,16 +5571,16 @@ function _n({
|
|
|
5560
5571
|
...((rt = o == null ? void 0 : o.timed) == null ? void 0 : rt.composition) || [],
|
|
5561
5572
|
...((yt = o == null ? void 0 : o.loop) == null ? void 0 : yt.composition) || [],
|
|
5562
5573
|
...k || [],
|
|
5563
|
-
...
|
|
5574
|
+
...x || [],
|
|
5564
5575
|
...v || []
|
|
5565
5576
|
],
|
|
5566
5577
|
frame: H,
|
|
5567
|
-
durationInFrames:
|
|
5578
|
+
durationInFrames: h,
|
|
5568
5579
|
children: it ? /* @__PURE__ */ f(
|
|
5569
5580
|
Vr,
|
|
5570
5581
|
{
|
|
5571
5582
|
width: mt,
|
|
5572
|
-
height:
|
|
5583
|
+
height: ht,
|
|
5573
5584
|
effects: it,
|
|
5574
5585
|
children: /* @__PURE__ */ f(Jr, { ...tt })
|
|
5575
5586
|
}
|
|
@@ -5586,8 +5597,8 @@ const Wn = ({
|
|
|
5586
5597
|
item: t,
|
|
5587
5598
|
options: r
|
|
5588
5599
|
}) => {
|
|
5589
|
-
var nt, ut, it, mt,
|
|
5590
|
-
const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, e = t.playbackRate || 1, { animationIn:
|
|
5600
|
+
var nt, ut, it, mt, ht, tt, st, et, ct, dt, ft, bt, $t, lt;
|
|
5601
|
+
const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, e = t.playbackRate || 1, { animationIn: p, animationOut: o, animationTimed: h } = Rt(
|
|
5591
5602
|
i,
|
|
5592
5603
|
t,
|
|
5593
5604
|
s,
|
|
@@ -5598,24 +5609,24 @@ const Wn = ({
|
|
|
5598
5609
|
y: 0,
|
|
5599
5610
|
width: a.width,
|
|
5600
5611
|
height: a.height
|
|
5601
|
-
}, u = a.borderWidth || 0, l = a.width || d.width || 300, b = a.height || d.height || 300, y = (d.x || 0) + u,
|
|
5612
|
+
}, u = a.borderWidth || 0, l = a.width || d.width || 300, b = a.height || d.height || 300, y = (d.x || 0) + u, m = (d.y || 0) + u, g = l - (d.x || 0) - (d.width || l) + u, M = b - (d.y || 0) - (d.height || b) + u, S = Math.min(
|
|
5602
5613
|
d.width || l,
|
|
5603
5614
|
d.height || b
|
|
5604
5615
|
) * ((a.borderRadius || 0) / 100), $ = Math.max(0, S - u), k = `inset(
|
|
5605
|
-
${
|
|
5616
|
+
${m}px
|
|
5606
5617
|
${g}px
|
|
5607
5618
|
${M}px
|
|
5608
5619
|
${y}px round ${$}px
|
|
5609
|
-
)`, { durationInFrames:
|
|
5620
|
+
)`, { durationInFrames: x } = wt(t.display, n), v = (s || 0) - t.display.from * n / 1e3, w = Ot(a, d, {}), { WebkitTextStroke: N } = w, R = fn(a, d), V = Gr(
|
|
5610
5621
|
a.effects,
|
|
5611
5622
|
i,
|
|
5612
5623
|
v,
|
|
5613
|
-
|
|
5614
|
-
), P = Or(V), { filter: Y, overlays: W } = Mn(V),
|
|
5624
|
+
x
|
|
5625
|
+
), P = Or(V), { filter: Y, overlays: W } = Mn(V), F = (ut = (nt = i == null ? void 0 : i.loop) == null ? void 0 : nt.composition) == null ? void 0 : ut.find(
|
|
5615
5626
|
(A) => A.property === "textGridMarqueeTextAnimationLoop" || A.property === "textGridMarquee" || A.property === "imageGridMarqueeTextAnimationLoop" || A.property === "imageGridMarquee" || A.id === "textGridMarquee" || A.id === "imageGridMarquee"
|
|
5616
|
-
), C = !!(
|
|
5627
|
+
), C = !!(F && v >= (F.delay || 0) && v <= (F.delay || 0) + (F.durationInFrames || 60)), X = (mt = (it = i == null ? void 0 : i.loop) == null ? void 0 : it.composition) == null ? void 0 : mt.find(
|
|
5617
5628
|
(A) => A.property === "inwardEchoes" || A.id === "inwardEchoes"
|
|
5618
|
-
), E = !!(X && v >= (X.delay || 0) && v <= (X.delay || 0) + (X.durationInFrames || 120)), _ = (tt = (
|
|
5629
|
+
), E = !!(X && v >= (X.delay || 0) && v <= (X.delay || 0) + (X.durationInFrames || 120)), _ = (tt = (ht = i == null ? void 0 : i.loop) == null ? void 0 : ht.composition) == null ? void 0 : tt.find(
|
|
5619
5630
|
(A) => A.property === "wiggle" || A.id === "wiggle"
|
|
5620
5631
|
), z = !!(_ && v >= (_.delay || 0) && v <= (_.delay || 0) + (_.durationInFrames || 120)), U = (et = (st = i == null ? void 0 : i.loop) == null ? void 0 : st.composition) == null ? void 0 : et.find(
|
|
5621
5632
|
(A) => A.property === "cardFlip" || A.id === "cardFlip"
|
|
@@ -5635,31 +5646,31 @@ const Wn = ({
|
|
|
5635
5646
|
volume: (a.volume || 0) / 100,
|
|
5636
5647
|
pauseWhenBuffering: !0,
|
|
5637
5648
|
style: {
|
|
5638
|
-
borderRadius:
|
|
5649
|
+
borderRadius: R.borderRadius,
|
|
5639
5650
|
width: "100%",
|
|
5640
5651
|
height: "100%",
|
|
5641
5652
|
filter: Y || void 0,
|
|
5642
5653
|
clipPath: u > 0 || d.x || d.y ? k : void 0
|
|
5643
5654
|
}
|
|
5644
5655
|
}
|
|
5645
|
-
),
|
|
5656
|
+
), pt = () => C ? /* @__PURE__ */ f(
|
|
5646
5657
|
mn,
|
|
5647
5658
|
{
|
|
5648
5659
|
src: a.src,
|
|
5649
5660
|
isVideo: !0,
|
|
5650
5661
|
frame: v,
|
|
5651
|
-
delay:
|
|
5652
|
-
durationInFrames:
|
|
5653
|
-
from:
|
|
5654
|
-
to:
|
|
5662
|
+
delay: F == null ? void 0 : F.delay,
|
|
5663
|
+
durationInFrames: F == null ? void 0 : F.durationInFrames,
|
|
5664
|
+
from: F == null ? void 0 : F.from,
|
|
5665
|
+
to: F == null ? void 0 : F.to,
|
|
5655
5666
|
width: a.width,
|
|
5656
5667
|
height: a.height,
|
|
5657
|
-
borderRadius:
|
|
5668
|
+
borderRadius: R.borderRadius,
|
|
5658
5669
|
borderWidth: a.borderWidth,
|
|
5659
5670
|
borderColor: a.borderColor,
|
|
5660
5671
|
boxShadow: a.boxShadow,
|
|
5661
5672
|
fps: n,
|
|
5662
|
-
marqueeDetails:
|
|
5673
|
+
marqueeDetails: F == null ? void 0 : F.details
|
|
5663
5674
|
}
|
|
5664
5675
|
) : E ? /* @__PURE__ */ f(
|
|
5665
5676
|
xn,
|
|
@@ -5673,7 +5684,7 @@ const Wn = ({
|
|
|
5673
5684
|
to: X == null ? void 0 : X.to,
|
|
5674
5685
|
width: a.width,
|
|
5675
5686
|
height: a.height,
|
|
5676
|
-
borderRadius:
|
|
5687
|
+
borderRadius: R.borderRadius,
|
|
5677
5688
|
borderWidth: a.borderWidth,
|
|
5678
5689
|
borderColor: a.borderColor,
|
|
5679
5690
|
boxShadow: a.boxShadow,
|
|
@@ -5692,7 +5703,7 @@ const Wn = ({
|
|
|
5692
5703
|
to: _ == null ? void 0 : _.to,
|
|
5693
5704
|
width: a.width,
|
|
5694
5705
|
height: a.height,
|
|
5695
|
-
borderRadius:
|
|
5706
|
+
borderRadius: R.borderRadius,
|
|
5696
5707
|
borderWidth: a.borderWidth,
|
|
5697
5708
|
borderColor: a.borderColor,
|
|
5698
5709
|
boxShadow: a.boxShadow,
|
|
@@ -5709,7 +5720,7 @@ const Wn = ({
|
|
|
5709
5720
|
to: U == null ? void 0 : U.to,
|
|
5710
5721
|
width: H,
|
|
5711
5722
|
height: Z,
|
|
5712
|
-
borderRadius:
|
|
5723
|
+
borderRadius: R.borderRadius,
|
|
5713
5724
|
boxShadow: a.boxShadow,
|
|
5714
5725
|
cardFlipDetails: U == null ? void 0 : U.details,
|
|
5715
5726
|
children: j
|
|
@@ -5727,16 +5738,16 @@ const Wn = ({
|
|
|
5727
5738
|
boxShadow: void 0,
|
|
5728
5739
|
WebkitTextStroke: N
|
|
5729
5740
|
},
|
|
5730
|
-
animationIn:
|
|
5741
|
+
animationIn: p,
|
|
5731
5742
|
animationOut: o,
|
|
5732
5743
|
frame: v,
|
|
5733
|
-
durationInFrames:
|
|
5744
|
+
durationInFrames: x,
|
|
5734
5745
|
isTransition: c,
|
|
5735
5746
|
children: /* @__PURE__ */ f(
|
|
5736
5747
|
Ht,
|
|
5737
5748
|
{
|
|
5738
|
-
animationTimed:
|
|
5739
|
-
durationInFrames:
|
|
5749
|
+
animationTimed: h,
|
|
5750
|
+
durationInFrames: x,
|
|
5740
5751
|
frame: v,
|
|
5741
5752
|
style: {
|
|
5742
5753
|
...w,
|
|
@@ -5749,7 +5760,7 @@ const Wn = ({
|
|
|
5749
5760
|
item: t,
|
|
5750
5761
|
keyframeAnimations: D,
|
|
5751
5762
|
frame: v,
|
|
5752
|
-
durationInFrames:
|
|
5763
|
+
durationInFrames: x,
|
|
5753
5764
|
children: /* @__PURE__ */ gt(
|
|
5754
5765
|
"div",
|
|
5755
5766
|
{
|
|
@@ -5768,7 +5779,7 @@ const Wn = ({
|
|
|
5768
5779
|
left: 0,
|
|
5769
5780
|
width: "100%",
|
|
5770
5781
|
height: "100%",
|
|
5771
|
-
borderRadius:
|
|
5782
|
+
borderRadius: R.borderRadius,
|
|
5772
5783
|
boxShadow: `${a.boxShadow.x}px ${a.boxShadow.y}px ${a.boxShadow.blur}px ${a.boxShadow.color}`,
|
|
5773
5784
|
pointerEvents: "none"
|
|
5774
5785
|
}
|
|
@@ -5787,16 +5798,16 @@ const Wn = ({
|
|
|
5787
5798
|
height: "100%",
|
|
5788
5799
|
position: "relative",
|
|
5789
5800
|
overflow: "hidden",
|
|
5790
|
-
borderRadius:
|
|
5801
|
+
borderRadius: R.borderRadius
|
|
5791
5802
|
},
|
|
5792
5803
|
children: [
|
|
5793
5804
|
/* @__PURE__ */ gt(
|
|
5794
5805
|
"div",
|
|
5795
5806
|
{
|
|
5796
5807
|
style: {
|
|
5797
|
-
...
|
|
5808
|
+
...R,
|
|
5798
5809
|
overflow: "visible",
|
|
5799
|
-
boxShadow: C ? "none" :
|
|
5810
|
+
boxShadow: C ? "none" : R.boxShadow
|
|
5800
5811
|
},
|
|
5801
5812
|
children: [
|
|
5802
5813
|
P ? /* @__PURE__ */ f(
|
|
@@ -5805,9 +5816,9 @@ const Wn = ({
|
|
|
5805
5816
|
width: H,
|
|
5806
5817
|
height: Z,
|
|
5807
5818
|
effects: P,
|
|
5808
|
-
children:
|
|
5819
|
+
children: pt()
|
|
5809
5820
|
}
|
|
5810
|
-
) :
|
|
5821
|
+
) : pt(),
|
|
5811
5822
|
W.map((A) => /* @__PURE__ */ f("div", { style: A.style }, A.id))
|
|
5812
5823
|
]
|
|
5813
5824
|
}
|
|
@@ -5846,13 +5857,13 @@ function Vn({
|
|
|
5846
5857
|
},
|
|
5847
5858
|
n
|
|
5848
5859
|
);
|
|
5849
|
-
let
|
|
5860
|
+
let p;
|
|
5850
5861
|
if (c.inverted) {
|
|
5851
|
-
const
|
|
5852
|
-
|
|
5862
|
+
const h = Math.max((s || 0) - i, 0);
|
|
5863
|
+
p = 100 - Math.min(h / e * 100, 100);
|
|
5853
5864
|
} else {
|
|
5854
|
-
const
|
|
5855
|
-
|
|
5865
|
+
const h = Math.max((s || 0) - i, 0);
|
|
5866
|
+
p = Math.min(h / e * 100, 100);
|
|
5856
5867
|
}
|
|
5857
5868
|
const o = /* @__PURE__ */ gt(kt, { children: [
|
|
5858
5869
|
/* @__PURE__ */ f(
|
|
@@ -5873,7 +5884,7 @@ function Vn({
|
|
|
5873
5884
|
{
|
|
5874
5885
|
style: {
|
|
5875
5886
|
position: "absolute",
|
|
5876
|
-
width: `${
|
|
5887
|
+
width: `${p}%`,
|
|
5877
5888
|
height: "100%",
|
|
5878
5889
|
backgroundColor: c.backgroundColors[1] || "rgba(128, 128, 128,1)"
|
|
5879
5890
|
}
|
|
@@ -5898,9 +5909,9 @@ const fs = (t) => {
|
|
|
5898
5909
|
minDb: c = -80
|
|
5899
5910
|
}) => {
|
|
5900
5911
|
const a = Math.floor(t / r), i = n, e = Math.floor(i.length / a);
|
|
5901
|
-
return Array.from({ length: a }).map((o,
|
|
5912
|
+
return Array.from({ length: a }).map((o, h) => {
|
|
5902
5913
|
const d = jr(
|
|
5903
|
-
i[
|
|
5914
|
+
i[h * e % i.length],
|
|
5904
5915
|
{ maxDb: s, minDb: c }
|
|
5905
5916
|
);
|
|
5906
5917
|
return Math.log(1 + d);
|
|
@@ -5914,11 +5925,11 @@ const fs = (t) => {
|
|
|
5914
5925
|
roundness: a = 4,
|
|
5915
5926
|
placement: i = "middle",
|
|
5916
5927
|
color: e = "white",
|
|
5917
|
-
maxAmplitude:
|
|
5928
|
+
maxAmplitude: p = 1
|
|
5918
5929
|
}) => {
|
|
5919
|
-
const o = r,
|
|
5920
|
-
return !t || t.length === 0 ? null : /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f("svg", { width: o, height:
|
|
5921
|
-
const l = d *
|
|
5930
|
+
const o = r, h = n;
|
|
5931
|
+
return !t || t.length === 0 ? null : /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f("svg", { width: o, height: h, viewBox: `0 0 ${o} ${h}`, children: t.map((d, u) => {
|
|
5932
|
+
const l = d * h / p, b = u * (s + c), y = i === "over" ? 0 : i === "under" ? h - l : 0.5 * (h - l);
|
|
5922
5933
|
return /* @__PURE__ */ f(
|
|
5923
5934
|
"rect",
|
|
5924
5935
|
{
|
|
@@ -5941,32 +5952,32 @@ const fs = (t) => {
|
|
|
5941
5952
|
roundness: a = 2,
|
|
5942
5953
|
color: i = "white",
|
|
5943
5954
|
placement: e = "middle",
|
|
5944
|
-
maxDb:
|
|
5955
|
+
maxDb: p,
|
|
5945
5956
|
minDb: o
|
|
5946
5957
|
}) => {
|
|
5947
|
-
const
|
|
5958
|
+
const h = Wr(null), d = Nt(), [u, l] = fr({ width: 400, height: 100 });
|
|
5948
5959
|
sr(() => {
|
|
5949
5960
|
l((g) => {
|
|
5950
5961
|
var M, S;
|
|
5951
5962
|
return {
|
|
5952
|
-
width: ((M =
|
|
5953
|
-
height: ((S =
|
|
5963
|
+
width: ((M = h.current) == null ? void 0 : M.offsetWidth) ?? g.width,
|
|
5964
|
+
height: ((S = h.current) == null ? void 0 : S.offsetHeight) ?? g.height
|
|
5954
5965
|
};
|
|
5955
5966
|
});
|
|
5956
5967
|
}, [d, l]);
|
|
5957
|
-
const { width: b, height: y } = u,
|
|
5968
|
+
const { width: b, height: y } = u, m = Cn({
|
|
5958
5969
|
totalWidth: b,
|
|
5959
5970
|
itemWidth: s + c,
|
|
5960
5971
|
frequencyData: n,
|
|
5961
|
-
maxDb:
|
|
5972
|
+
maxDb: p,
|
|
5962
5973
|
minDb: o
|
|
5963
5974
|
});
|
|
5964
|
-
return /* @__PURE__ */ f("div", { ref:
|
|
5975
|
+
return /* @__PURE__ */ f("div", { ref: h, style: { width: t, height: r }, children: /* @__PURE__ */ f(
|
|
5965
5976
|
xs,
|
|
5966
5977
|
{
|
|
5967
5978
|
width: b,
|
|
5968
5979
|
height: y,
|
|
5969
|
-
values:
|
|
5980
|
+
values: m,
|
|
5970
5981
|
lineThickness: s,
|
|
5971
5982
|
gapSize: c,
|
|
5972
5983
|
roundness: a,
|
|
@@ -5993,7 +6004,7 @@ class Ss {
|
|
|
5993
6004
|
}
|
|
5994
6005
|
async loadAudioData(r, n) {
|
|
5995
6006
|
try {
|
|
5996
|
-
const s = await
|
|
6007
|
+
const s = await po(r);
|
|
5997
6008
|
this.audioDatas[n] = {
|
|
5998
6009
|
data: s,
|
|
5999
6010
|
lastAccessed: Date.now()
|
|
@@ -6016,7 +6027,7 @@ class Ss {
|
|
|
6016
6027
|
(i) => !n.includes(i)
|
|
6017
6028
|
).forEach((i) => this.removeItem(i)), await Promise.all(
|
|
6018
6029
|
c.map(async (i) => {
|
|
6019
|
-
const e = r.find((
|
|
6030
|
+
const e = r.find((p) => p.id === i);
|
|
6020
6031
|
e != null && e.details.src && await this.loadAudioData(e.details.src, i);
|
|
6021
6032
|
})
|
|
6022
6033
|
), this.items = r, this.frameCache.clear();
|
|
@@ -6040,15 +6051,15 @@ class Ss {
|
|
|
6040
6051
|
if (n)
|
|
6041
6052
|
return n;
|
|
6042
6053
|
const s = this.items.map((a, i) => {
|
|
6043
|
-
var
|
|
6054
|
+
var h;
|
|
6044
6055
|
const e = this.audioDatas[a.id];
|
|
6045
6056
|
if (!e) return Array(this.numberOfSamples).fill(0);
|
|
6046
|
-
const
|
|
6057
|
+
const p = r - this.items[i].display.from * this.fps / 1e3 + (((h = this.items[i].trim) == null ? void 0 : h.from) || 0) * this.fps / 1e3;
|
|
6047
6058
|
if (this.items[i].display.from * this.fps / 1e3 > r || this.items[i].display.to * this.fps / 1e3 < r)
|
|
6048
6059
|
return Array(this.numberOfSamples).fill(0);
|
|
6049
6060
|
const o = fo({
|
|
6050
6061
|
audioData: e.data,
|
|
6051
|
-
frame:
|
|
6062
|
+
frame: p,
|
|
6052
6063
|
fps: this.fps,
|
|
6053
6064
|
numberOfSamples: this.numberOfSamples
|
|
6054
6065
|
});
|
|
@@ -6102,15 +6113,15 @@ function Gn({
|
|
|
6102
6113
|
},
|
|
6103
6114
|
n
|
|
6104
6115
|
);
|
|
6105
|
-
let
|
|
6116
|
+
let p;
|
|
6106
6117
|
if (c.inverted) {
|
|
6107
6118
|
const b = Math.max((s || 0) - i, 0);
|
|
6108
|
-
|
|
6119
|
+
p = 100 - Math.min(b / e * 100, 100);
|
|
6109
6120
|
} else {
|
|
6110
6121
|
const b = Math.max((s || 0) - i, 0);
|
|
6111
|
-
|
|
6122
|
+
p = Math.min(b / e * 100, 100);
|
|
6112
6123
|
}
|
|
6113
|
-
const o = c.width || 100,
|
|
6124
|
+
const o = c.width || 100, h = c.height || 100, u = Math.min(o, h) * c.barThickness / 100, l = /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
|
|
6114
6125
|
"div",
|
|
6115
6126
|
{
|
|
6116
6127
|
style: {
|
|
@@ -6148,8 +6159,8 @@ function Gn({
|
|
|
6148
6159
|
position: "absolute",
|
|
6149
6160
|
inset: 0,
|
|
6150
6161
|
backgroundColor: c.backgroundColors[1] || "rgba(128, 128, 128,1)",
|
|
6151
|
-
width: `${
|
|
6152
|
-
height: `${
|
|
6162
|
+
width: `${p}%`,
|
|
6163
|
+
height: `${p}%`
|
|
6153
6164
|
}
|
|
6154
6165
|
}
|
|
6155
6166
|
)
|
|
@@ -6172,15 +6183,15 @@ const ws = ({
|
|
|
6172
6183
|
}) => {
|
|
6173
6184
|
if (!t || t.length === 0)
|
|
6174
6185
|
return null;
|
|
6175
|
-
const
|
|
6176
|
-
return /* @__PURE__ */ f("div", { style: { width:
|
|
6186
|
+
const p = 2 * r;
|
|
6187
|
+
return /* @__PURE__ */ f("div", { style: { width: p, height: p }, children: /* @__PURE__ */ f(
|
|
6177
6188
|
"svg",
|
|
6178
6189
|
{
|
|
6179
|
-
width:
|
|
6180
|
-
height:
|
|
6181
|
-
viewBox: `0 0 ${
|
|
6182
|
-
children: t.map((o,
|
|
6183
|
-
const d = o * (r - e) / i, u = r, l = c === "outer" ? r - d : c === "inner" ? r : r - 0.5 * d, b = c === "outer" ? r : c === "inner" ? e : r - 0.5 * (r - e), y = `rotate(${360 *
|
|
6190
|
+
width: p,
|
|
6191
|
+
height: p,
|
|
6192
|
+
viewBox: `0 0 ${p} ${p}`,
|
|
6193
|
+
children: t.map((o, h) => {
|
|
6194
|
+
const d = o * (r - e) / i, u = r, l = c === "outer" ? r - d : c === "inner" ? r : r - 0.5 * d, b = c === "outer" ? r : c === "inner" ? e : r - 0.5 * (r - e), y = `rotate(${360 * h / t.length} ${r} ${r}) translate(0 ${b})`;
|
|
6184
6195
|
return /* @__PURE__ */ f(
|
|
6185
6196
|
"rect",
|
|
6186
6197
|
{
|
|
@@ -6192,7 +6203,7 @@ const ws = ({
|
|
|
6192
6203
|
rx: s,
|
|
6193
6204
|
transform: y
|
|
6194
6205
|
},
|
|
6195
|
-
|
|
6206
|
+
h
|
|
6196
6207
|
);
|
|
6197
6208
|
})
|
|
6198
6209
|
}
|
|
@@ -6206,13 +6217,13 @@ const ws = ({
|
|
|
6206
6217
|
roundness: a = 4,
|
|
6207
6218
|
barOrigin: i = "inner",
|
|
6208
6219
|
color: e = "white",
|
|
6209
|
-
maxAmplitude:
|
|
6220
|
+
maxAmplitude: p,
|
|
6210
6221
|
innerRadius: o = 0,
|
|
6211
|
-
gapSize:
|
|
6222
|
+
gapSize: h = 4
|
|
6212
6223
|
}) => {
|
|
6213
6224
|
const d = 0.5 * s, u = Cn({
|
|
6214
6225
|
totalWidth: 2 * Math.PI * o,
|
|
6215
|
-
itemWidth: c +
|
|
6226
|
+
itemWidth: c + h,
|
|
6216
6227
|
frequencyData: t,
|
|
6217
6228
|
maxDb: r,
|
|
6218
6229
|
minDb: n
|
|
@@ -6226,7 +6237,7 @@ const ws = ({
|
|
|
6226
6237
|
roundness: a,
|
|
6227
6238
|
barOrigin: i,
|
|
6228
6239
|
color: e,
|
|
6229
|
-
maxAmplitude:
|
|
6240
|
+
maxAmplitude: p,
|
|
6230
6241
|
innerRadius: o
|
|
6231
6242
|
}
|
|
6232
6243
|
);
|
|
@@ -6236,18 +6247,18 @@ const ws = ({
|
|
|
6236
6247
|
}) => {
|
|
6237
6248
|
const { fps: n, frame: s } = r, { details: c } = t, a = t.playbackRate || 1;
|
|
6238
6249
|
At.setAudioDataManager(n);
|
|
6239
|
-
const
|
|
6250
|
+
const p = At.getAudioDataForFrame(s || 0).slice(0, 0.7 * 512);
|
|
6240
6251
|
return /* @__PURE__ */ gt(kt, { children: [
|
|
6241
6252
|
/* @__PURE__ */ f(
|
|
6242
6253
|
Is,
|
|
6243
6254
|
{
|
|
6244
|
-
frequencyData:
|
|
6255
|
+
frequencyData: p,
|
|
6245
6256
|
diameter: c.width,
|
|
6246
6257
|
innerRadius: c.width / 4,
|
|
6247
6258
|
color: c.radialBarColor
|
|
6248
6259
|
}
|
|
6249
6260
|
),
|
|
6250
|
-
c.reproduceAudio && c.srcs.map((o,
|
|
6261
|
+
c.reproduceAudio && c.srcs.map((o, h) => /* @__PURE__ */ f(un, { playbackRate: a, src: o }, h))
|
|
6251
6262
|
] });
|
|
6252
6263
|
};
|
|
6253
6264
|
function zn({
|
|
@@ -6263,14 +6274,14 @@ const Ns = ({
|
|
|
6263
6274
|
width: s
|
|
6264
6275
|
}) => {
|
|
6265
6276
|
const c = 1 / t, a = n / s;
|
|
6266
|
-
return Array.from({ length: t }).map((i, e,
|
|
6267
|
-
const o = (e - 0.5) %
|
|
6268
|
-
let
|
|
6269
|
-
|
|
6277
|
+
return Array.from({ length: t }).map((i, e, p) => {
|
|
6278
|
+
const o = (e - 0.5) % p.length * c - a;
|
|
6279
|
+
let h = (o + 1) % 1;
|
|
6280
|
+
h = h * s;
|
|
6270
6281
|
let d = Math.sin(Math.abs(o) * Math.PI);
|
|
6271
|
-
return d = I.cubic(d), d = d * r, d = d * Math.sin((0.5 + e) * Math.PI), { x:
|
|
6282
|
+
return d = I.cubic(d), d = d * r, d = d * Math.sin((0.5 + e) * Math.PI), { x: h, y: d };
|
|
6272
6283
|
}).sort((i, e) => i.x > e.x ? 1 : -1);
|
|
6273
|
-
},
|
|
6284
|
+
}, Rs = ({
|
|
6274
6285
|
sections: t = 12,
|
|
6275
6286
|
offsetPixels: r,
|
|
6276
6287
|
amplitude: n,
|
|
@@ -6279,39 +6290,39 @@ const Ns = ({
|
|
|
6279
6290
|
lines: a = 2,
|
|
6280
6291
|
lineGap: i = 20,
|
|
6281
6292
|
lineColor: e = ["darkblue", "lightblue"],
|
|
6282
|
-
lineThickness:
|
|
6293
|
+
lineThickness: p = 2,
|
|
6283
6294
|
topRoundness: o = 0.4,
|
|
6284
|
-
bottomRoundness:
|
|
6295
|
+
bottomRoundness: h = 0.4
|
|
6285
6296
|
}) => {
|
|
6286
6297
|
const d = s, u = c, l = t, b = r % (2 * s / t), y = Array.from({ length: a }).map(($, k) => {
|
|
6287
|
-
const
|
|
6298
|
+
const x = k * i;
|
|
6288
6299
|
return Ns({
|
|
6289
6300
|
width: d,
|
|
6290
6301
|
numberOfPoints: l,
|
|
6291
|
-
offsetPixels:
|
|
6302
|
+
offsetPixels: x + b,
|
|
6292
6303
|
amplitude: 0.5 * n
|
|
6293
6304
|
});
|
|
6294
|
-
}),
|
|
6295
|
-
const
|
|
6296
|
-
return `C ${N} ${
|
|
6305
|
+
}), m = d / l, g = o * m, M = h * m, S = ($, k) => {
|
|
6306
|
+
const x = $.y <= 0, v = x ? g : M, w = x ? M : g, N = k.x + w, R = k.y, V = $.x - v, P = $.y, Y = $.x, W = $.y;
|
|
6307
|
+
return `C ${N} ${R}, ${V} ${P}, ${Y} ${W}`;
|
|
6297
6308
|
};
|
|
6298
6309
|
return /* @__PURE__ */ f("div", { style: { width: s, height: c }, children: /* @__PURE__ */ f("svg", { width: d, height: u, viewBox: `0 -${0.5 * u} ${d} ${u}`, children: y.map(($, k) => {
|
|
6299
|
-
const
|
|
6310
|
+
const x = $[$.length - 1], v = Array.isArray(e) ? e[k % e.length] : e;
|
|
6300
6311
|
return /* @__PURE__ */ f(
|
|
6301
6312
|
"path",
|
|
6302
6313
|
{
|
|
6303
|
-
d: `M 0 0, ${$.map((w, N,
|
|
6304
|
-
const V = N === 0 ? { x: 0, y: 0 } :
|
|
6314
|
+
d: `M 0 0, ${$.map((w, N, R) => {
|
|
6315
|
+
const V = N === 0 ? { x: 0, y: 0 } : R[N - 1];
|
|
6305
6316
|
return S(w, V);
|
|
6306
|
-
}).join(",")}, ${S({ x: d, y: 0 },
|
|
6317
|
+
}).join(",")}, ${S({ x: d, y: 0 }, x)}`,
|
|
6307
6318
|
stroke: v,
|
|
6308
|
-
strokeWidth:
|
|
6319
|
+
strokeWidth: p,
|
|
6309
6320
|
fill: "none"
|
|
6310
6321
|
},
|
|
6311
6322
|
`line-${k}`
|
|
6312
6323
|
);
|
|
6313
6324
|
}) }) });
|
|
6314
|
-
},
|
|
6325
|
+
}, Fs = ({
|
|
6315
6326
|
frequencyData: t,
|
|
6316
6327
|
width: r,
|
|
6317
6328
|
height: n,
|
|
@@ -6320,16 +6331,16 @@ const Ns = ({
|
|
|
6320
6331
|
minDb: a,
|
|
6321
6332
|
...i
|
|
6322
6333
|
}) => {
|
|
6323
|
-
const e = Nt(), { fps:
|
|
6334
|
+
const e = Nt(), { fps: p } = ln();
|
|
6324
6335
|
if (!t) return null;
|
|
6325
|
-
const o = t.slice(0.25 * t.length).map((u) => jr(u, { maxDb: c, minDb: a })),
|
|
6336
|
+
const o = t.slice(0.25 * t.length).map((u) => jr(u, { maxDb: c, minDb: a })), h = n * fs(o), d = e / p;
|
|
6326
6337
|
return /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f(
|
|
6327
|
-
|
|
6338
|
+
Rs,
|
|
6328
6339
|
{
|
|
6329
6340
|
width: r,
|
|
6330
6341
|
height: n,
|
|
6331
6342
|
offsetPixels: s * d,
|
|
6332
|
-
amplitude:
|
|
6343
|
+
amplitude: h,
|
|
6333
6344
|
...i
|
|
6334
6345
|
}
|
|
6335
6346
|
) });
|
|
@@ -6341,7 +6352,7 @@ const Ns = ({
|
|
|
6341
6352
|
At.setAudioDataManager(s);
|
|
6342
6353
|
const e = At.getAudioDataForFrame(n || 0).slice(0, 0.7 * 512);
|
|
6343
6354
|
return /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
|
|
6344
|
-
|
|
6355
|
+
Fs,
|
|
6345
6356
|
{
|
|
6346
6357
|
frequencyData: e,
|
|
6347
6358
|
width: c.width,
|
|
@@ -6372,9 +6383,9 @@ const Xs = (t, r) => {
|
|
|
6372
6383
|
maxDb: n = -30,
|
|
6373
6384
|
minDb: s = -80
|
|
6374
6385
|
}) => {
|
|
6375
|
-
const c = t, a = Math.floor(0.2 * r.length), i = Math.floor(0.6 * r.length), e = r.slice(a, i),
|
|
6376
|
-
return Array.from({ length: c }).map((
|
|
6377
|
-
e[d *
|
|
6386
|
+
const c = t, a = Math.floor(0.2 * r.length), i = Math.floor(0.6 * r.length), e = r.slice(a, i), p = Math.floor(e.length / c);
|
|
6387
|
+
return Array.from({ length: c }).map((h, d) => jr(
|
|
6388
|
+
e[d * p % e.length],
|
|
6378
6389
|
{ maxDb: n, minDb: s }
|
|
6379
6390
|
));
|
|
6380
6391
|
}, Ps = ({
|
|
@@ -6386,54 +6397,54 @@ const Xs = (t, r) => {
|
|
|
6386
6397
|
strokeColor: a = "none",
|
|
6387
6398
|
placement: i = "middle",
|
|
6388
6399
|
copies: e = 1,
|
|
6389
|
-
blendMode:
|
|
6400
|
+
blendMode: p = "normal"
|
|
6390
6401
|
}) => {
|
|
6391
|
-
const o = r,
|
|
6402
|
+
const o = r, h = n;
|
|
6392
6403
|
if (!t || t.length === 0)
|
|
6393
6404
|
return null;
|
|
6394
6405
|
const { scaling: d, viewBoxVerticalShift: u } = i === "over" ? {
|
|
6395
|
-
viewBoxVerticalShift: -
|
|
6406
|
+
viewBoxVerticalShift: -h,
|
|
6396
6407
|
scaling: 1
|
|
6397
6408
|
} : i === "under" ? {
|
|
6398
6409
|
viewBoxVerticalShift: 0,
|
|
6399
6410
|
scaling: 1
|
|
6400
6411
|
} : {
|
|
6401
|
-
viewBoxVerticalShift: -0.5 *
|
|
6412
|
+
viewBoxVerticalShift: -0.5 * h,
|
|
6402
6413
|
scaling: 0.5
|
|
6403
|
-
}, b = 0.15 * o, y = (o - 2 * b) / (t.length - 1),
|
|
6414
|
+
}, b = 0.15 * o, y = (o - 2 * b) / (t.length - 1), m = Array.from({ length: e }).map((g, M) => {
|
|
6404
6415
|
const S = 3 * M;
|
|
6405
|
-
return Xs(t, S).map((k,
|
|
6406
|
-
x: b +
|
|
6407
|
-
y: d *
|
|
6416
|
+
return Xs(t, S).map((k, x) => ({
|
|
6417
|
+
x: b + x * y,
|
|
6418
|
+
y: d * h * k * (1.2 - 0.5 * so(M * t.length + x))
|
|
6408
6419
|
}));
|
|
6409
6420
|
});
|
|
6410
|
-
return /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f("svg", { width: o, height:
|
|
6411
|
-
const S = g[g.length - 1], $ = Array.isArray(a) ? a[M % a.length] : a, k = Array.isArray(s) ? s[M % s.length] : s,
|
|
6421
|
+
return /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f("svg", { width: o, height: h, viewBox: `0 ${u} ${o} ${h}`, children: m.map((g, M) => {
|
|
6422
|
+
const S = g[g.length - 1], $ = Array.isArray(a) ? a[M % a.length] : a, k = Array.isArray(s) ? s[M % s.length] : s, x = {
|
|
6412
6423
|
stroke: $,
|
|
6413
6424
|
strokeWidth: c,
|
|
6414
6425
|
fill: k,
|
|
6415
6426
|
style: {
|
|
6416
|
-
mixBlendMode:
|
|
6427
|
+
mixBlendMode: p
|
|
6417
6428
|
}
|
|
6418
6429
|
};
|
|
6419
|
-
return /* @__PURE__ */ gt(
|
|
6430
|
+
return /* @__PURE__ */ gt(Wt.Fragment, { children: [
|
|
6420
6431
|
i !== "over" && /* @__PURE__ */ f(
|
|
6421
6432
|
"path",
|
|
6422
6433
|
{
|
|
6423
|
-
...
|
|
6434
|
+
...x,
|
|
6424
6435
|
d: `M 0 0, ${g.map((v, w, N) => {
|
|
6425
|
-
const
|
|
6426
|
-
return `C ${V} ${P}, ${Y} ${W}, ${
|
|
6436
|
+
const R = w === 0 ? { x: 0, y: 0 } : N[w - 1], V = R.x + 0.5 * y, P = R.y, Y = v.x - 0.5 * y, W = v.y, F = v.x, C = v.y;
|
|
6437
|
+
return `C ${V} ${P}, ${Y} ${W}, ${F} ${C}`;
|
|
6427
6438
|
}).join(",")}, C ${S.x + 0.5 * y} ${S.y}, ${o - 0.5 * y} 0, ${o} 0`
|
|
6428
6439
|
}
|
|
6429
6440
|
),
|
|
6430
6441
|
i !== "under" && /* @__PURE__ */ f(
|
|
6431
6442
|
"path",
|
|
6432
6443
|
{
|
|
6433
|
-
...
|
|
6444
|
+
...x,
|
|
6434
6445
|
d: `M 0 0, ${g.map((v, w, N) => {
|
|
6435
|
-
const
|
|
6436
|
-
return `C ${V} ${P}, ${Y} ${W}, ${
|
|
6446
|
+
const R = w === 0 ? { x: 0, y: 0 } : N[w - 1], V = R.x + 0.5 * y, P = -R.y, Y = v.x - 0.5 * y, W = -v.y, F = v.x, C = -v.y;
|
|
6447
|
+
return `C ${V} ${P}, ${Y} ${W}, ${F} ${C}`;
|
|
6437
6448
|
}).join(",")}, C ${S.x + 0.5 * y} ${-S.y}, ${o - 0.5 * y} 0, ${o} 0`
|
|
6438
6449
|
}
|
|
6439
6450
|
)
|
|
@@ -6448,26 +6459,26 @@ const Xs = (t, r) => {
|
|
|
6448
6459
|
copies: a,
|
|
6449
6460
|
blendMode: i,
|
|
6450
6461
|
strokeWidth: e,
|
|
6451
|
-
maxDb:
|
|
6462
|
+
maxDb: p,
|
|
6452
6463
|
minDb: o
|
|
6453
6464
|
}) => {
|
|
6454
|
-
const
|
|
6465
|
+
const h = Wr(null), d = Nt(), [u, l] = fr({ width: 400, height: 100 });
|
|
6455
6466
|
sr(() => {
|
|
6456
6467
|
l((g) => {
|
|
6457
6468
|
var M, S;
|
|
6458
6469
|
return {
|
|
6459
|
-
width: ((M =
|
|
6460
|
-
height: ((S =
|
|
6470
|
+
width: ((M = h.current) == null ? void 0 : M.offsetWidth) ?? g.width,
|
|
6471
|
+
height: ((S = h.current) == null ? void 0 : S.offsetHeight) ?? g.height
|
|
6461
6472
|
};
|
|
6462
6473
|
});
|
|
6463
6474
|
}, [d, l]);
|
|
6464
6475
|
const { width: b, height: y } = u;
|
|
6465
6476
|
if (!n) return null;
|
|
6466
|
-
const
|
|
6467
|
-
return /* @__PURE__ */ f("div", { ref:
|
|
6477
|
+
const m = Bs({ frequencyData: n, minDb: o, maxDb: p });
|
|
6478
|
+
return /* @__PURE__ */ f("div", { ref: h, style: { width: t, height: r }, children: /* @__PURE__ */ f(
|
|
6468
6479
|
Ps,
|
|
6469
6480
|
{
|
|
6470
|
-
values:
|
|
6481
|
+
values: m,
|
|
6471
6482
|
width: b,
|
|
6472
6483
|
height: y,
|
|
6473
6484
|
fillColor: c,
|
|
@@ -6483,7 +6494,7 @@ const Xs = (t, r) => {
|
|
|
6483
6494
|
}) => {
|
|
6484
6495
|
const { frame: n, fps: s } = r, { details: c } = t;
|
|
6485
6496
|
At.setAudioDataManager(s);
|
|
6486
|
-
const e = At.getAudioDataForFrame(n || 0).slice(0, 0.7 * 512),
|
|
6497
|
+
const e = At.getAudioDataForFrame(n || 0).slice(0, 0.7 * 512), p = (o) => [
|
|
6487
6498
|
"normal",
|
|
6488
6499
|
"multiply",
|
|
6489
6500
|
"screen",
|
|
@@ -6511,7 +6522,7 @@ const Xs = (t, r) => {
|
|
|
6511
6522
|
...c.fillColor != null ? { fillColor: c.fillColor } : {},
|
|
6512
6523
|
...c.copies != null ? { copies: c.copies } : {},
|
|
6513
6524
|
...c.strokeWidth != null ? { strokeWidth: c.strokeWidth } : {},
|
|
6514
|
-
...
|
|
6525
|
+
...p(c.blendMode) ? { blendMode: c.blendMode } : { blendMode: "normal" }
|
|
6515
6526
|
}
|
|
6516
6527
|
) });
|
|
6517
6528
|
};
|
|
@@ -6526,27 +6537,27 @@ const Ln = ({
|
|
|
6526
6537
|
options: r
|
|
6527
6538
|
}) => {
|
|
6528
6539
|
var u, l, b, y;
|
|
6529
|
-
const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed:
|
|
6540
|
+
const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: p } = Rt(
|
|
6530
6541
|
a,
|
|
6531
6542
|
t,
|
|
6532
6543
|
s,
|
|
6533
6544
|
n,
|
|
6534
6545
|
r
|
|
6535
|
-
), { durationInFrames: o } = wt(t.display, n),
|
|
6546
|
+
), { durationInFrames: o } = wt(t.display, n), h = (s || 0) - t.display.from * n / 1e3, d = /* @__PURE__ */ f(
|
|
6536
6547
|
Lt,
|
|
6537
6548
|
{
|
|
6538
|
-
style:
|
|
6549
|
+
style: Ot(c),
|
|
6539
6550
|
animationIn: i,
|
|
6540
6551
|
animationOut: e,
|
|
6541
|
-
frame:
|
|
6552
|
+
frame: h,
|
|
6542
6553
|
durationInFrames: o,
|
|
6543
6554
|
children: /* @__PURE__ */ f(
|
|
6544
6555
|
Ht,
|
|
6545
6556
|
{
|
|
6546
|
-
animationTimed:
|
|
6557
|
+
animationTimed: p,
|
|
6547
6558
|
durationInFrames: o,
|
|
6548
|
-
frame:
|
|
6549
|
-
style:
|
|
6559
|
+
frame: h,
|
|
6560
|
+
style: Ot(c),
|
|
6550
6561
|
children: /* @__PURE__ */ f(
|
|
6551
6562
|
Dt,
|
|
6552
6563
|
{
|
|
@@ -6558,9 +6569,9 @@ const Ln = ({
|
|
|
6558
6569
|
...((y = a == null ? void 0 : a.loop) == null ? void 0 : y.composition) || [],
|
|
6559
6570
|
...i || [],
|
|
6560
6571
|
...e || [],
|
|
6561
|
-
...
|
|
6572
|
+
...p || []
|
|
6562
6573
|
],
|
|
6563
|
-
frame:
|
|
6574
|
+
frame: h,
|
|
6564
6575
|
durationInFrames: o,
|
|
6565
6576
|
children: /* @__PURE__ */ f("div", { style: So(c) })
|
|
6566
6577
|
}
|
|
@@ -6602,22 +6613,22 @@ const Ln = ({
|
|
|
6602
6613
|
n.push(c * s + r);
|
|
6603
6614
|
return n;
|
|
6604
6615
|
}, Vs = (t, r, n, s = !1) => {
|
|
6605
|
-
const { from: c, to: a, ease: i } = r, e = r.durationInFrames || 30,
|
|
6606
|
-
if (isNaN(
|
|
6607
|
-
return
|
|
6616
|
+
const { from: c, to: a, ease: i } = r, e = r.durationInFrames || 30, p = Number(c), o = Number(a), h = Math.max(1, Number(e));
|
|
6617
|
+
if (isNaN(p) || isNaN(o))
|
|
6618
|
+
return p;
|
|
6608
6619
|
const d = r.delay || 0;
|
|
6609
6620
|
if (r.property === "hide-show" || r.property === "hide" || r.property === "show")
|
|
6610
|
-
return t < d ?
|
|
6611
|
-
const u = s ? [n -
|
|
6621
|
+
return t < d ? p : o;
|
|
6622
|
+
const u = s ? [n - h - d, n - d] : [d, d + h];
|
|
6612
6623
|
if (r.property.includes("shake")) {
|
|
6613
6624
|
const l = s ? nn(
|
|
6614
|
-
|
|
6615
|
-
n -
|
|
6616
|
-
) : nn(
|
|
6625
|
+
h,
|
|
6626
|
+
n - h - d
|
|
6627
|
+
) : nn(h, d);
|
|
6617
6628
|
return O(
|
|
6618
6629
|
t,
|
|
6619
6630
|
l,
|
|
6620
|
-
[0,
|
|
6631
|
+
[0, p, o, p, o, 0],
|
|
6621
6632
|
{
|
|
6622
6633
|
extrapolateLeft: "clamp",
|
|
6623
6634
|
extrapolateRight: "clamp",
|
|
@@ -6625,7 +6636,7 @@ const Ln = ({
|
|
|
6625
6636
|
}
|
|
6626
6637
|
);
|
|
6627
6638
|
}
|
|
6628
|
-
return O(t, u, [
|
|
6639
|
+
return O(t, u, [p, o], {
|
|
6629
6640
|
extrapolateLeft: "clamp",
|
|
6630
6641
|
extrapolateRight: "clamp",
|
|
6631
6642
|
easing: i
|
|
@@ -6658,33 +6669,33 @@ const Ln = ({
|
|
|
6658
6669
|
}
|
|
6659
6670
|
return 0;
|
|
6660
6671
|
}, on = (t, r, n, s, c) => {
|
|
6661
|
-
var
|
|
6672
|
+
var p, o, h, d, u;
|
|
6662
6673
|
const { property: a } = t;
|
|
6663
6674
|
if (a === "move") {
|
|
6664
6675
|
const l = Number(
|
|
6665
|
-
((
|
|
6666
|
-
), b = Number(((o = t.details) == null ? void 0 : o.toX) ?? t.to ?? 0), y = Number(((
|
|
6676
|
+
((p = t.details) == null ? void 0 : p.fromX) ?? t.from ?? 0
|
|
6677
|
+
), b = Number(((o = t.details) == null ? void 0 : o.toX) ?? t.to ?? 0), y = Number(((h = t.details) == null ? void 0 : h.fromY) ?? 0), m = Number(((d = t.details) == null ? void 0 : d.toY) ?? 0), g = Number(((u = t.details) == null ? void 0 : u.scale) || 1) || 1;
|
|
6667
6678
|
let M = c;
|
|
6668
6679
|
if (M == null || Number.isNaN(M)) {
|
|
6669
|
-
const
|
|
6670
|
-
M = Hn((
|
|
6680
|
+
const F = t.details;
|
|
6681
|
+
M = Hn((F == null ? void 0 : F.rotate) ?? (F == null ? void 0 : F.rotation) ?? (F == null ? void 0 : F.transform));
|
|
6671
6682
|
}
|
|
6672
|
-
const S = t.delay || 0, $ = t.durationInFrames || 30, k = s ? [n - $ - S, n - S] : [S, S + $],
|
|
6683
|
+
const S = t.delay || 0, $ = t.durationInFrames || 30, k = s ? [n - $ - S, n - S] : [S, S + $], x = O(r, k, [l, b], {
|
|
6673
6684
|
extrapolateLeft: "clamp",
|
|
6674
6685
|
extrapolateRight: "clamp",
|
|
6675
6686
|
easing: t.ease
|
|
6676
|
-
}), v = O(r, k, [y,
|
|
6687
|
+
}), v = O(r, k, [y, m], {
|
|
6677
6688
|
extrapolateLeft: "clamp",
|
|
6678
6689
|
extrapolateRight: "clamp",
|
|
6679
6690
|
easing: t.ease
|
|
6680
|
-
}), w = (M || 0) * Math.PI / 180, N = Math.cos(w),
|
|
6691
|
+
}), w = (M || 0) * Math.PI / 180, N = Math.cos(w), R = Math.sin(w), V = x * N + v * R, P = -x * R + v * N, Y = V / g, W = P / g;
|
|
6681
6692
|
return {
|
|
6682
6693
|
transform: `translateX(${Y}px) translateY(${W}px)`
|
|
6683
6694
|
};
|
|
6684
6695
|
}
|
|
6685
6696
|
const i = Vs(r, t, n, s), e = Ws();
|
|
6686
6697
|
return (e[a] || e.default)(i);
|
|
6687
|
-
}, en = (t, r, n, s = !1, c = !1, a) =>
|
|
6698
|
+
}, en = (t, r, n, s = !1, c = !1, a) => Wt.useMemo(() => {
|
|
6688
6699
|
if (t.length === 0) return {};
|
|
6689
6700
|
const i = t.filter(
|
|
6690
6701
|
(e) => e.from !== void 0 && e.to !== void 0
|
|
@@ -6692,25 +6703,25 @@ const Ln = ({
|
|
|
6692
6703
|
if (i.length !== t.length && console.error("Some animations are invalid and will be ignored"), c) {
|
|
6693
6704
|
const e = [];
|
|
6694
6705
|
return i.reverse().forEach((o) => {
|
|
6695
|
-
const
|
|
6706
|
+
const h = on(
|
|
6696
6707
|
o,
|
|
6697
6708
|
n,
|
|
6698
6709
|
r,
|
|
6699
6710
|
!1,
|
|
6700
6711
|
a
|
|
6701
6712
|
);
|
|
6702
|
-
e.push(
|
|
6713
|
+
e.push(h);
|
|
6703
6714
|
}), e.reduce(
|
|
6704
|
-
(o,
|
|
6705
|
-
d === "transform" || d === "filter" ? o[d] = o[d] ? `${o[d]} ${
|
|
6715
|
+
(o, h) => (Object.keys(h).forEach((d) => {
|
|
6716
|
+
d === "transform" || d === "filter" ? o[d] = o[d] ? `${o[d]} ${h[d]}` : h[d] : o[d] = h[d];
|
|
6706
6717
|
}), o),
|
|
6707
6718
|
{}
|
|
6708
6719
|
);
|
|
6709
6720
|
} else
|
|
6710
|
-
return i.map((
|
|
6711
|
-
(
|
|
6712
|
-
|
|
6713
|
-
}),
|
|
6721
|
+
return i.map((p) => on(p, n, r, s, a)).reduce(
|
|
6722
|
+
(p, o) => (Object.keys(o).forEach((h) => {
|
|
6723
|
+
h === "transform" ? p[h] = p[h] ? `${p[h]} ${o[h]}` : o[h] : p[h] = o[h];
|
|
6724
|
+
}), p),
|
|
6714
6725
|
{}
|
|
6715
6726
|
);
|
|
6716
6727
|
}, [t, n, r, s, a]), Nr = (t) => t ? Array.isArray(t) ? t : [t] : [], ir = ({
|
|
@@ -6730,34 +6741,34 @@ const Ln = ({
|
|
|
6730
6741
|
n,
|
|
6731
6742
|
a,
|
|
6732
6743
|
!0
|
|
6733
|
-
),
|
|
6734
|
-
const
|
|
6744
|
+
), p = Wt.useMemo(() => {
|
|
6745
|
+
const m = Object.keys(i).length > 0, g = t == null ? void 0 : t.reduce(
|
|
6735
6746
|
(S, $) => Math.min(S, $.delay || 0),
|
|
6736
6747
|
1 / 0
|
|
6737
6748
|
), M = a - (g || 0);
|
|
6738
|
-
return
|
|
6739
|
-
}, [i, a, t]), o =
|
|
6749
|
+
return m && M < 0 ? { visibility: "hidden" } : i;
|
|
6750
|
+
}, [i, a, t]), o = Wt.useMemo(() => {
|
|
6740
6751
|
if (a > n)
|
|
6741
6752
|
return { visibility: "hidden" };
|
|
6742
|
-
const
|
|
6743
|
-
if (!
|
|
6753
|
+
const m = Nr(r);
|
|
6754
|
+
if (!m || m.length === 0) return {};
|
|
6744
6755
|
let g = 0;
|
|
6745
|
-
|
|
6756
|
+
m.forEach((S) => {
|
|
6746
6757
|
const $ = (S.durationInFrames || 0) + (S.delay || 0);
|
|
6747
6758
|
$ > g && (g = $);
|
|
6748
6759
|
});
|
|
6749
6760
|
const M = Math.max(0, n - g);
|
|
6750
6761
|
return a < M ? {} : e;
|
|
6751
|
-
}, [e, a, r, n]), d = ((c == null ? void 0 : c.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), u = d ? parseFloat(d[1]) : 0, l =
|
|
6752
|
-
const
|
|
6753
|
-
...
|
|
6762
|
+
}, [e, a, r, n]), d = ((c == null ? void 0 : c.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), u = d ? parseFloat(d[1]) : 0, l = Wt.useMemo(() => {
|
|
6763
|
+
const m = {
|
|
6764
|
+
...p
|
|
6754
6765
|
// , ...timedStyle
|
|
6755
6766
|
};
|
|
6756
6767
|
return Object.entries(o).forEach(([g, M]) => {
|
|
6757
|
-
g === "transform" ?
|
|
6758
|
-
}),
|
|
6759
|
-
}, [
|
|
6760
|
-
const
|
|
6768
|
+
g === "transform" ? m[g] = `${m[g] || ""} ${M || ""}`.trim() : g in m && typeof m[g] == "number" && typeof M == "number" ? m[g] = m[g] * M : m[g] = M;
|
|
6769
|
+
}), m;
|
|
6770
|
+
}, [p, o]), b = yr(() => {
|
|
6771
|
+
const m = l.transform || "", { translateX: g, translateY: M, scale: S, rotation: $, rotateY: k } = Cs(m);
|
|
6761
6772
|
return `${$} ${g} ${M} ${S} ${k}`.trim();
|
|
6762
6773
|
}, [l]);
|
|
6763
6774
|
let y = i;
|
|
@@ -6765,7 +6776,7 @@ const Ln = ({
|
|
|
6765
6776
|
...y,
|
|
6766
6777
|
transform: y.transform.replace(
|
|
6767
6778
|
/translateX\(([^)]+)\)/g,
|
|
6768
|
-
(
|
|
6779
|
+
(m, g) => `translateX(${parseFloat(g)}%)`
|
|
6769
6780
|
)
|
|
6770
6781
|
}), /* @__PURE__ */ f(
|
|
6771
6782
|
"div",
|
|
@@ -6799,12 +6810,12 @@ const Ln = ({
|
|
|
6799
6810
|
i && (r = i[i.length - 1]);
|
|
6800
6811
|
const e = t.match(/translateY\([^)]+\)/g);
|
|
6801
6812
|
e && (n = e[e.length - 1]);
|
|
6802
|
-
const
|
|
6803
|
-
|
|
6813
|
+
const p = t.match(/scale\([^)]+\)/g);
|
|
6814
|
+
p && (s = p[p.length - 1]);
|
|
6804
6815
|
const o = t.match(/rotate\([^)]+\)/g);
|
|
6805
6816
|
o && (c = o[o.length - 1]);
|
|
6806
|
-
const
|
|
6807
|
-
return
|
|
6817
|
+
const h = t.match(/rotateY\([^)]+\)/g);
|
|
6818
|
+
return h && (a = h[h.length - 1]), { translateX: r, translateY: n, scale: s, rotation: c, rotateY: a };
|
|
6808
6819
|
};
|
|
6809
6820
|
I.linear;
|
|
6810
6821
|
I.linear;
|
|
@@ -6819,16 +6830,16 @@ const Un = ({
|
|
|
6819
6830
|
item: t,
|
|
6820
6831
|
options: r
|
|
6821
6832
|
}) => {
|
|
6822
|
-
const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn:
|
|
6833
|
+
const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn: p, animationOut: o } = Rt(
|
|
6823
6834
|
i,
|
|
6824
6835
|
t,
|
|
6825
6836
|
c,
|
|
6826
6837
|
n
|
|
6827
|
-
),
|
|
6838
|
+
), h = s == null ? void 0 : s[t.id], d = (h == null ? void 0 : h.width) ?? a.radius, u = /* @__PURE__ */ f(
|
|
6828
6839
|
ir,
|
|
6829
6840
|
{
|
|
6830
6841
|
durationInFrames: e,
|
|
6831
|
-
animationIn:
|
|
6842
|
+
animationIn: p,
|
|
6832
6843
|
animationOut: o,
|
|
6833
6844
|
style: a,
|
|
6834
6845
|
children: /* @__PURE__ */ f(
|
|
@@ -6845,19 +6856,19 @@ const Un = ({
|
|
|
6845
6856
|
item: t,
|
|
6846
6857
|
options: r
|
|
6847
6858
|
}) => {
|
|
6848
|
-
const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn:
|
|
6859
|
+
const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn: p, animationOut: o } = Rt(
|
|
6849
6860
|
i,
|
|
6850
6861
|
t,
|
|
6851
6862
|
c,
|
|
6852
6863
|
n
|
|
6853
|
-
),
|
|
6864
|
+
), h = s == null ? void 0 : s[t.id];
|
|
6854
6865
|
let d = a.length;
|
|
6855
|
-
|
|
6866
|
+
h != null && h.width ? d = h.width : h != null && h.height && (d = h.height * 2 / Math.sqrt(3));
|
|
6856
6867
|
const u = /* @__PURE__ */ f(
|
|
6857
6868
|
ir,
|
|
6858
6869
|
{
|
|
6859
6870
|
durationInFrames: e,
|
|
6860
|
-
animationIn:
|
|
6871
|
+
animationIn: p,
|
|
6861
6872
|
animationOut: o,
|
|
6862
6873
|
style: {},
|
|
6863
6874
|
children: /* @__PURE__ */ f(
|
|
@@ -6875,37 +6886,37 @@ const Un = ({
|
|
|
6875
6886
|
item: t,
|
|
6876
6887
|
options: r
|
|
6877
6888
|
}) => {
|
|
6878
|
-
const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn:
|
|
6889
|
+
const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn: p, animationOut: o } = Rt(
|
|
6879
6890
|
i,
|
|
6880
6891
|
t,
|
|
6881
6892
|
c,
|
|
6882
6893
|
n
|
|
6883
|
-
),
|
|
6894
|
+
), h = s == null ? void 0 : s[t.id], d = (y, m, g) => {
|
|
6884
6895
|
const M = g, S = g, $ = Math.PI * 2 / (y * 2);
|
|
6885
|
-
let k = Number.POSITIVE_INFINITY,
|
|
6896
|
+
let k = Number.POSITIVE_INFINITY, x = Number.NEGATIVE_INFINITY, v = Number.POSITIVE_INFINITY, w = Number.NEGATIVE_INFINITY;
|
|
6886
6897
|
for (let N = 0; N < y * 2; N++) {
|
|
6887
|
-
const
|
|
6888
|
-
k = Math.min(k, P),
|
|
6898
|
+
const R = N % 2 === 0 ? g : m, V = $ * N - Math.PI / 2, P = M + R * Math.cos(V), Y = S + R * Math.sin(V);
|
|
6899
|
+
k = Math.min(k, P), x = Math.max(x, P), v = Math.min(v, Y), w = Math.max(w, Y);
|
|
6889
6900
|
}
|
|
6890
6901
|
return {
|
|
6891
|
-
width:
|
|
6902
|
+
width: x - k,
|
|
6892
6903
|
height: w - v
|
|
6893
6904
|
};
|
|
6894
6905
|
};
|
|
6895
6906
|
let u = a.outerRadius, l = a.innerRadius;
|
|
6896
|
-
if (
|
|
6907
|
+
if (h != null && h.width || h != null && h.height) {
|
|
6897
6908
|
const y = d(
|
|
6898
6909
|
a.points || 5,
|
|
6899
6910
|
a.innerRadius || 0,
|
|
6900
6911
|
a.outerRadius || 0
|
|
6901
|
-
),
|
|
6912
|
+
), m = h != null && h.width ? h.width / y.width : 1, g = h != null && h.height ? h.height / y.height : 1, M = Math.max(m, g);
|
|
6902
6913
|
u = (a.outerRadius || 0) * M, l = (a.innerRadius || 0) * M;
|
|
6903
6914
|
}
|
|
6904
6915
|
const b = /* @__PURE__ */ f(
|
|
6905
6916
|
ir,
|
|
6906
6917
|
{
|
|
6907
6918
|
durationInFrames: e,
|
|
6908
|
-
animationIn:
|
|
6919
|
+
animationIn: p,
|
|
6909
6920
|
animationOut: o,
|
|
6910
6921
|
style: a,
|
|
6911
6922
|
children: /* @__PURE__ */ f(
|
|
@@ -6924,29 +6935,29 @@ const Un = ({
|
|
|
6924
6935
|
item: t,
|
|
6925
6936
|
options: r
|
|
6926
6937
|
}) => {
|
|
6927
|
-
const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { animationIn: e, animationOut:
|
|
6938
|
+
const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { animationIn: e, animationOut: p } = Rt(
|
|
6928
6939
|
i,
|
|
6929
6940
|
t,
|
|
6930
6941
|
c,
|
|
6931
6942
|
n
|
|
6932
|
-
), { durationInFrames: o } = wt(t.display, n),
|
|
6933
|
-
const
|
|
6934
|
-
let S = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY, k = Number.POSITIVE_INFINITY,
|
|
6943
|
+
), { durationInFrames: o } = wt(t.display, n), h = s == null ? void 0 : s[t.id], d = (b, y) => {
|
|
6944
|
+
const m = y, g = y, M = Math.PI * 2 / b;
|
|
6945
|
+
let S = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY, k = Number.POSITIVE_INFINITY, x = Number.NEGATIVE_INFINITY;
|
|
6935
6946
|
for (let v = 0; v < b; v++) {
|
|
6936
|
-
const w = M * v - Math.PI / 2, N =
|
|
6937
|
-
S = Math.min(S, N), $ = Math.max($, N), k = Math.min(k,
|
|
6947
|
+
const w = M * v - Math.PI / 2, N = m + y * Math.cos(w), R = g + y * Math.sin(w);
|
|
6948
|
+
S = Math.min(S, N), $ = Math.max($, N), k = Math.min(k, R), x = Math.max(x, R);
|
|
6938
6949
|
}
|
|
6939
6950
|
return {
|
|
6940
6951
|
width: $ - S,
|
|
6941
|
-
height:
|
|
6952
|
+
height: x - k
|
|
6942
6953
|
};
|
|
6943
6954
|
};
|
|
6944
6955
|
let u = a.radius;
|
|
6945
|
-
if (
|
|
6956
|
+
if (h != null && h.width || h != null && h.height) {
|
|
6946
6957
|
const b = d(
|
|
6947
6958
|
a.points || 3,
|
|
6948
6959
|
a.radius || 0
|
|
6949
|
-
), y =
|
|
6960
|
+
), y = h != null && h.width ? h.width / b.width : 1, m = h != null && h.height ? h.height / b.height : 1, g = Math.max(y, m);
|
|
6950
6961
|
u = (a.radius || 0) * g;
|
|
6951
6962
|
}
|
|
6952
6963
|
const l = /* @__PURE__ */ f(
|
|
@@ -6954,7 +6965,7 @@ const Un = ({
|
|
|
6954
6965
|
{
|
|
6955
6966
|
durationInFrames: o,
|
|
6956
6967
|
animationIn: e,
|
|
6957
|
-
animationOut:
|
|
6968
|
+
animationOut: p,
|
|
6958
6969
|
style: a,
|
|
6959
6970
|
children: /* @__PURE__ */ f(
|
|
6960
6971
|
mo,
|
|
@@ -6971,16 +6982,16 @@ const Un = ({
|
|
|
6971
6982
|
item: t,
|
|
6972
6983
|
options: r
|
|
6973
6984
|
}) => {
|
|
6974
|
-
const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn:
|
|
6985
|
+
const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn: p, animationOut: o } = Rt(
|
|
6975
6986
|
i,
|
|
6976
6987
|
t,
|
|
6977
6988
|
c,
|
|
6978
6989
|
n
|
|
6979
|
-
),
|
|
6990
|
+
), h = s == null ? void 0 : s[t.id], d = h != null && h.width ? h.width / 2 : a.rx, u = h != null && h.height ? h.height / 2 : a.ry, l = /* @__PURE__ */ f(
|
|
6980
6991
|
ir,
|
|
6981
6992
|
{
|
|
6982
6993
|
durationInFrames: e,
|
|
6983
|
-
animationIn:
|
|
6994
|
+
animationIn: p,
|
|
6984
6995
|
animationOut: o,
|
|
6985
6996
|
style: a,
|
|
6986
6997
|
children: /* @__PURE__ */ f(
|
|
@@ -7080,22 +7091,22 @@ const Un = ({
|
|
|
7080
7091
|
n.push(c * s + r);
|
|
7081
7092
|
return n;
|
|
7082
7093
|
}, Gs = (t, r, n, s = !1) => {
|
|
7083
|
-
const { from: c, to: a, ease: i } = r, e = r.durationInFrames || 30,
|
|
7084
|
-
if (isNaN(
|
|
7085
|
-
return
|
|
7094
|
+
const { from: c, to: a, ease: i } = r, e = r.durationInFrames || 30, p = Number(c), o = Number(a), h = Math.max(1, Number(e));
|
|
7095
|
+
if (isNaN(p) || isNaN(o))
|
|
7096
|
+
return p;
|
|
7086
7097
|
const d = r.delay || 0;
|
|
7087
7098
|
if (r.property === "hide-show" || r.property === "hide" || r.property === "show")
|
|
7088
|
-
return t < d ?
|
|
7089
|
-
const u = s ? [n -
|
|
7099
|
+
return t < d ? p : o;
|
|
7100
|
+
const u = s ? [n - h - d, n - d] : [d, d + h];
|
|
7090
7101
|
if (r.property.includes("shake")) {
|
|
7091
7102
|
const l = s ? sn(
|
|
7092
|
-
|
|
7093
|
-
n -
|
|
7094
|
-
) : sn(
|
|
7103
|
+
h,
|
|
7104
|
+
n - h - d
|
|
7105
|
+
) : sn(h, d);
|
|
7095
7106
|
return O(
|
|
7096
7107
|
t,
|
|
7097
7108
|
l,
|
|
7098
|
-
[0,
|
|
7109
|
+
[0, p, o, p, o, 0],
|
|
7099
7110
|
{
|
|
7100
7111
|
extrapolateLeft: "clamp",
|
|
7101
7112
|
extrapolateRight: "clamp",
|
|
@@ -7103,7 +7114,7 @@ const Un = ({
|
|
|
7103
7114
|
}
|
|
7104
7115
|
);
|
|
7105
7116
|
}
|
|
7106
|
-
return O(t, u, [
|
|
7117
|
+
return O(t, u, [p, o], {
|
|
7107
7118
|
extrapolateLeft: "clamp",
|
|
7108
7119
|
extrapolateRight: "clamp",
|
|
7109
7120
|
easing: i
|
|
@@ -7136,33 +7147,33 @@ const Un = ({
|
|
|
7136
7147
|
}
|
|
7137
7148
|
return 0;
|
|
7138
7149
|
}, an = (t, r, n, s, c) => {
|
|
7139
|
-
var
|
|
7150
|
+
var p, o, h, d, u;
|
|
7140
7151
|
const { property: a } = t;
|
|
7141
7152
|
if (a === "move") {
|
|
7142
7153
|
const l = Number(
|
|
7143
|
-
((
|
|
7144
|
-
), b = Number(((o = t.details) == null ? void 0 : o.toX) ?? t.to ?? 0), y = Number(((
|
|
7154
|
+
((p = t.details) == null ? void 0 : p.fromX) ?? t.from ?? 0
|
|
7155
|
+
), b = Number(((o = t.details) == null ? void 0 : o.toX) ?? t.to ?? 0), y = Number(((h = t.details) == null ? void 0 : h.fromY) ?? 0), m = Number(((d = t.details) == null ? void 0 : d.toY) ?? 0), g = Number(((u = t.details) == null ? void 0 : u.scale) || 1) || 1;
|
|
7145
7156
|
let M = c;
|
|
7146
7157
|
if (M == null || Number.isNaN(M)) {
|
|
7147
|
-
const
|
|
7148
|
-
M = Tn((
|
|
7158
|
+
const F = t.details;
|
|
7159
|
+
M = Tn((F == null ? void 0 : F.rotate) ?? (F == null ? void 0 : F.rotation) ?? (F == null ? void 0 : F.transform));
|
|
7149
7160
|
}
|
|
7150
|
-
const S = t.delay || 0, $ = t.durationInFrames || 30, k = s ? [n - $ - S, n - S] : [S, S + $],
|
|
7161
|
+
const S = t.delay || 0, $ = t.durationInFrames || 30, k = s ? [n - $ - S, n - S] : [S, S + $], x = O(r, k, [l, b], {
|
|
7151
7162
|
extrapolateLeft: "clamp",
|
|
7152
7163
|
extrapolateRight: "clamp",
|
|
7153
7164
|
easing: t.ease
|
|
7154
|
-
}), v = O(r, k, [y,
|
|
7165
|
+
}), v = O(r, k, [y, m], {
|
|
7155
7166
|
extrapolateLeft: "clamp",
|
|
7156
7167
|
extrapolateRight: "clamp",
|
|
7157
7168
|
easing: t.ease
|
|
7158
|
-
}), w = (M || 0) * Math.PI / 180, N = Math.cos(w),
|
|
7169
|
+
}), w = (M || 0) * Math.PI / 180, N = Math.cos(w), R = Math.sin(w), V = x * N + v * R, P = -x * R + v * N, Y = V / g, W = P / g;
|
|
7159
7170
|
return {
|
|
7160
7171
|
transform: `translateX(${Y}px) translateY(${W}px)`
|
|
7161
7172
|
};
|
|
7162
7173
|
}
|
|
7163
7174
|
const i = Gs(r, t, n, s), e = Os();
|
|
7164
7175
|
return (e[a] || e.default)(i);
|
|
7165
|
-
},
|
|
7176
|
+
}, Rr = (t, r, n, s = !1, c = !1, a) => Wt.useMemo(() => {
|
|
7166
7177
|
if (t.length === 0) return {};
|
|
7167
7178
|
const i = t.filter(
|
|
7168
7179
|
(e) => e.from !== void 0 && e.to !== void 0
|
|
@@ -7170,27 +7181,27 @@ const Un = ({
|
|
|
7170
7181
|
if (i.length !== t.length && console.error("Some animations are invalid and will be ignored"), c) {
|
|
7171
7182
|
const e = [];
|
|
7172
7183
|
return i.reverse().forEach((o) => {
|
|
7173
|
-
const
|
|
7184
|
+
const h = an(
|
|
7174
7185
|
o,
|
|
7175
7186
|
n,
|
|
7176
7187
|
r,
|
|
7177
7188
|
!1,
|
|
7178
7189
|
a
|
|
7179
7190
|
);
|
|
7180
|
-
e.push(
|
|
7191
|
+
e.push(h);
|
|
7181
7192
|
}), e.reduce(
|
|
7182
|
-
(o,
|
|
7183
|
-
d === "transform" || d === "filter" ? o[d] = o[d] ? `${o[d]} ${
|
|
7193
|
+
(o, h) => (Object.keys(h).forEach((d) => {
|
|
7194
|
+
d === "transform" || d === "filter" ? o[d] = o[d] ? `${o[d]} ${h[d]}` : h[d] : o[d] = h[d];
|
|
7184
7195
|
}), o),
|
|
7185
7196
|
{}
|
|
7186
7197
|
);
|
|
7187
7198
|
} else
|
|
7188
7199
|
return i.map(
|
|
7189
|
-
(
|
|
7200
|
+
(p) => an(p, n, r, s, a)
|
|
7190
7201
|
).reduce(
|
|
7191
|
-
(
|
|
7192
|
-
|
|
7193
|
-
}),
|
|
7202
|
+
(p, o) => (Object.keys(o).forEach((h) => {
|
|
7203
|
+
h === "transform" || h === "filter" ? p[h] = p[h] ? `${p[h]} ${o[h]}` : o[h] : p[h] = o[h];
|
|
7204
|
+
}), p),
|
|
7194
7205
|
{}
|
|
7195
7206
|
);
|
|
7196
7207
|
}, [t, n, r, s, a]), or = (t) => t ? Array.isArray(t) ? t : [t] : [], zs = ({
|
|
@@ -7203,30 +7214,30 @@ const Un = ({
|
|
|
7203
7214
|
children: i,
|
|
7204
7215
|
style: e = {}
|
|
7205
7216
|
}) => {
|
|
7206
|
-
const
|
|
7217
|
+
const p = Rr(
|
|
7207
7218
|
or(t),
|
|
7208
7219
|
s,
|
|
7209
7220
|
c,
|
|
7210
7221
|
!1
|
|
7211
|
-
), o =
|
|
7222
|
+
), o = Rr(
|
|
7212
7223
|
or(r),
|
|
7213
7224
|
s,
|
|
7214
7225
|
c,
|
|
7215
7226
|
!0
|
|
7216
|
-
),
|
|
7227
|
+
), h = Rr(
|
|
7217
7228
|
or(n),
|
|
7218
7229
|
s,
|
|
7219
7230
|
c,
|
|
7220
7231
|
!1,
|
|
7221
7232
|
!0
|
|
7222
|
-
), d =
|
|
7233
|
+
), d = Wt.useMemo(() => {
|
|
7223
7234
|
var v;
|
|
7224
|
-
const $ = Object.keys(
|
|
7235
|
+
const $ = Object.keys(p).length > 0, k = (v = or(t)) == null ? void 0 : v.reduce(
|
|
7225
7236
|
(w, N) => Math.min(w, N.delay || 0),
|
|
7226
7237
|
1 / 0
|
|
7227
|
-
),
|
|
7228
|
-
return $ &&
|
|
7229
|
-
}, [
|
|
7238
|
+
), x = c - (k || 0);
|
|
7239
|
+
return $ && x < 0 ? { visibility: a ? "visible" : "hidden" } : p;
|
|
7240
|
+
}, [p, c, t, a]), u = Wt.useMemo(() => {
|
|
7230
7241
|
const $ = or(r);
|
|
7231
7242
|
if (!$ || $.length === 0) return {};
|
|
7232
7243
|
let k = 0;
|
|
@@ -7234,22 +7245,22 @@ const Un = ({
|
|
|
7234
7245
|
const w = (v.durationInFrames || 0) + (v.delay || 0);
|
|
7235
7246
|
w > k && (k = w);
|
|
7236
7247
|
});
|
|
7237
|
-
const
|
|
7238
|
-
return c <
|
|
7239
|
-
}, [o, c, r, s, a]), l =
|
|
7248
|
+
const x = Math.max(0, s - k);
|
|
7249
|
+
return c < x ? {} : c > s ? { visibility: a ? "visible" : "hidden" } : o;
|
|
7250
|
+
}, [o, c, r, s, a]), l = Wt.useMemo(() => {
|
|
7240
7251
|
const $ = {
|
|
7241
7252
|
...d,
|
|
7242
|
-
...
|
|
7253
|
+
...h
|
|
7243
7254
|
};
|
|
7244
|
-
return Object.entries(u).forEach(([k,
|
|
7245
|
-
k === "transform" ? $[k] = `${$[k] || ""} ${
|
|
7255
|
+
return Object.entries(u).forEach(([k, x]) => {
|
|
7256
|
+
k === "transform" ? $[k] = `${$[k] || ""} ${x || ""}`.trim() : k in $ && typeof $[k] == "number" && typeof x == "number" ? $[k] = $[k] * x : $[k] = x;
|
|
7246
7257
|
}), $;
|
|
7247
|
-
}, [d,
|
|
7248
|
-
const $ = l.transform || "", { translateX: k, translateY:
|
|
7249
|
-
return `${w} ${k} ${
|
|
7258
|
+
}, [d, h, u]), b = yr(() => {
|
|
7259
|
+
const $ = l.transform || "", { translateX: k, translateY: x, scale: v, rotation: w, rotateY: N } = js($);
|
|
7260
|
+
return `${w} ${k} ${x} ${v} ${N}`.trim();
|
|
7250
7261
|
}, [l]), {
|
|
7251
7262
|
top: y,
|
|
7252
|
-
left:
|
|
7263
|
+
left: m,
|
|
7253
7264
|
position: g,
|
|
7254
7265
|
transform: M,
|
|
7255
7266
|
...S
|
|
@@ -7286,42 +7297,42 @@ const Un = ({
|
|
|
7286
7297
|
i && (r = i[i.length - 1]);
|
|
7287
7298
|
const e = t.match(/translateY\([^)]+\)/g);
|
|
7288
7299
|
e && (n = e[e.length - 1]);
|
|
7289
|
-
const
|
|
7290
|
-
|
|
7300
|
+
const p = t.match(/scale\([^)]+\)/g);
|
|
7301
|
+
p && (s = p[p.length - 1]);
|
|
7291
7302
|
const o = t.match(/rotate\([^)]+\)/g);
|
|
7292
7303
|
o && (c = o[o.length - 1]);
|
|
7293
|
-
const
|
|
7294
|
-
return
|
|
7304
|
+
const h = t.match(/rotateY\([^)]+\)/g);
|
|
7305
|
+
return h && (a = h[h.length - 1]), { translateX: r, translateY: n, scale: s, rotation: c, rotateY: a };
|
|
7295
7306
|
};
|
|
7296
7307
|
I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.linear, I.elastic(1), I.elastic(1), I.elastic(1), I.elastic(1), I.linear, I.linear, I.linear, I.linear, I.ease, I.ease, I.ease, I.ease, I.ease, I.ease, I.ease, I.ease, I.ease, I.ease;
|
|
7297
7308
|
function qn({
|
|
7298
7309
|
item: t,
|
|
7299
7310
|
options: r
|
|
7300
7311
|
}) {
|
|
7301
|
-
var
|
|
7302
|
-
const { fps: n, frame: s } = r, { details: c, animations: a } = t, { width: i, height: e, strokeWidth:
|
|
7303
|
-
let
|
|
7304
|
-
if (((
|
|
7305
|
-
const
|
|
7312
|
+
var R, V, P, Y, W;
|
|
7313
|
+
const { fps: n, frame: s } = r, { details: c, animations: a } = t, { width: i, height: e, strokeWidth: p, strokeBackground: o, strokeColors: h } = c, { animationIn: d, animationOut: u } = Rt(a, t), { durationInFrames: l } = wt(t.display, n), b = i, y = e, m = p, g = b, M = y, S = b, $ = y, k = g + M + S + $;
|
|
7314
|
+
let x = 0;
|
|
7315
|
+
if (((R = a == null ? void 0 : a.out) == null ? void 0 : R.name) === "progressSquareAnimationOut") {
|
|
7316
|
+
const F = (V = a == null ? void 0 : a.out) == null ? void 0 : V.composition[0].durationInFrames, C = Math.max(
|
|
7306
7317
|
t.display.to * n / 1e3 - (s || 0) - 1,
|
|
7307
7318
|
0
|
|
7308
7319
|
);
|
|
7309
|
-
|
|
7320
|
+
x = Math.min(C / F * 100, 100) / 100, C > F && (x = 1);
|
|
7310
7321
|
}
|
|
7311
7322
|
if (((P = a == null ? void 0 : a.in) == null ? void 0 : P.name) === "progressSquareAnimationIn") {
|
|
7312
|
-
const { from:
|
|
7323
|
+
const { from: F } = wt(
|
|
7313
7324
|
{
|
|
7314
7325
|
from: t.display.from,
|
|
7315
7326
|
to: t.display.to
|
|
7316
7327
|
},
|
|
7317
7328
|
n
|
|
7318
|
-
), C = (Y = a == null ? void 0 : a.in) == null ? void 0 : Y.composition[0].durationInFrames, X = Math.max((s || 0) -
|
|
7319
|
-
X < C ?
|
|
7329
|
+
), C = (Y = a == null ? void 0 : a.in) == null ? void 0 : Y.composition[0].durationInFrames, X = Math.max((s || 0) - F, 0);
|
|
7330
|
+
X < C ? x = Math.min(X / C * 100, 100) / 100 : ((W = a == null ? void 0 : a.out) == null ? void 0 : W.name) !== "progressSquareAnimationOut" && (x = 1);
|
|
7320
7331
|
}
|
|
7321
|
-
const v =
|
|
7332
|
+
const v = x * 100 / 100 * k, w = h[0] || "#4A90E2", N = /* @__PURE__ */ f(
|
|
7322
7333
|
zs,
|
|
7323
7334
|
{
|
|
7324
|
-
style:
|
|
7335
|
+
style: Ot(
|
|
7325
7336
|
c,
|
|
7326
7337
|
{},
|
|
7327
7338
|
{
|
|
@@ -7352,7 +7363,7 @@ function qn({
|
|
|
7352
7363
|
width: b,
|
|
7353
7364
|
height: y,
|
|
7354
7365
|
boxSizing: "border-box",
|
|
7355
|
-
border: `${
|
|
7366
|
+
border: `${m}px solid ${o}`,
|
|
7356
7367
|
borderRadius: 0,
|
|
7357
7368
|
pointerEvents: "none"
|
|
7358
7369
|
}
|
|
@@ -7367,7 +7378,7 @@ function qn({
|
|
|
7367
7378
|
top: 0,
|
|
7368
7379
|
left: 0,
|
|
7369
7380
|
width: Math.min(v, g),
|
|
7370
|
-
height:
|
|
7381
|
+
height: m,
|
|
7371
7382
|
backgroundColor: w
|
|
7372
7383
|
}
|
|
7373
7384
|
}
|
|
@@ -7379,7 +7390,7 @@ function qn({
|
|
|
7379
7390
|
position: "absolute",
|
|
7380
7391
|
top: 0,
|
|
7381
7392
|
right: 0,
|
|
7382
|
-
width:
|
|
7393
|
+
width: m,
|
|
7383
7394
|
height: Math.min(v - g, M),
|
|
7384
7395
|
backgroundColor: w
|
|
7385
7396
|
}
|
|
@@ -7396,7 +7407,7 @@ function qn({
|
|
|
7396
7407
|
v - g - M,
|
|
7397
7408
|
S
|
|
7398
7409
|
),
|
|
7399
|
-
height:
|
|
7410
|
+
height: m,
|
|
7400
7411
|
backgroundColor: w
|
|
7401
7412
|
}
|
|
7402
7413
|
}
|
|
@@ -7408,7 +7419,7 @@ function qn({
|
|
|
7408
7419
|
position: "absolute",
|
|
7409
7420
|
bottom: 0,
|
|
7410
7421
|
left: 0,
|
|
7411
|
-
width:
|
|
7422
|
+
width: m,
|
|
7412
7423
|
height: Math.min(
|
|
7413
7424
|
v - g - M - S,
|
|
7414
7425
|
$
|
|
@@ -7429,33 +7440,33 @@ const Dn = (t) => {
|
|
|
7429
7440
|
const { trackItemIds: r, transitionsMap: n, trackItemsMap: s } = t, c = /* @__PURE__ */ new Map();
|
|
7430
7441
|
Object.values(n).forEach((o) => {
|
|
7431
7442
|
var l, b;
|
|
7432
|
-
const { fromId:
|
|
7433
|
-
u !== "none" && (c.has(
|
|
7443
|
+
const { fromId: h, toId: d, kind: u } = o;
|
|
7444
|
+
u !== "none" && (c.has(h) || c.set(h, []), c.has(d) || c.set(d, []), (l = c.get(h)) == null || l.push(o), (b = c.get(d)) == null || b.push(o));
|
|
7434
7445
|
});
|
|
7435
7446
|
const a = [], i = /* @__PURE__ */ new Set(), e = (o) => {
|
|
7436
|
-
const
|
|
7447
|
+
const h = [];
|
|
7437
7448
|
let d = o;
|
|
7438
7449
|
for (; d && !i.has(d); ) {
|
|
7439
7450
|
i.add(d);
|
|
7440
7451
|
const u = s[d];
|
|
7441
|
-
|
|
7452
|
+
h.push(u);
|
|
7442
7453
|
const l = Object.values(n).find(
|
|
7443
7454
|
(b) => b.fromId === d && b.kind !== "none"
|
|
7444
7455
|
);
|
|
7445
7456
|
if (!l) break;
|
|
7446
|
-
|
|
7457
|
+
h.push(l), d = l.toId;
|
|
7447
7458
|
}
|
|
7448
|
-
return
|
|
7449
|
-
},
|
|
7459
|
+
return h;
|
|
7460
|
+
}, p = Object.values(n).filter(
|
|
7450
7461
|
(o) => o.kind !== "none"
|
|
7451
7462
|
);
|
|
7452
7463
|
for (const o of r)
|
|
7453
|
-
if (!i.has(o) && (!c.has(o) || !
|
|
7454
|
-
const
|
|
7455
|
-
|
|
7464
|
+
if (!i.has(o) && (!c.has(o) || !p.some((h) => h.toId === o))) {
|
|
7465
|
+
const h = e(o);
|
|
7466
|
+
h.length > 0 && a.push(h);
|
|
7456
7467
|
}
|
|
7457
7468
|
return a.forEach((o) => {
|
|
7458
|
-
o.sort((
|
|
7469
|
+
o.sort((h, d) => "display" in h && "display" in d ? h.display.from - d.display.from : 0);
|
|
7459
7470
|
}), a;
|
|
7460
7471
|
}, As = (t, r) => {
|
|
7461
7472
|
switch (t.type) {
|
|
@@ -7482,7 +7493,7 @@ const Dn = (t) => {
|
|
|
7482
7493
|
case "audio":
|
|
7483
7494
|
return bn({ item: t, options: r });
|
|
7484
7495
|
case "image":
|
|
7485
|
-
return
|
|
7496
|
+
return Fn({ item: t, options: r });
|
|
7486
7497
|
case "illustration":
|
|
7487
7498
|
return gn({ item: t, options: r });
|
|
7488
7499
|
case "progressBar":
|
|
@@ -7513,29 +7524,29 @@ function Ls({
|
|
|
7513
7524
|
onTextBlur: a,
|
|
7514
7525
|
handleTextChange: i,
|
|
7515
7526
|
itemsTemplateIds: e,
|
|
7516
|
-
transitionsTemplateMap:
|
|
7527
|
+
transitionsTemplateMap: p,
|
|
7517
7528
|
itemsTemplateMap: o,
|
|
7518
|
-
size:
|
|
7529
|
+
size: h,
|
|
7519
7530
|
fps: d,
|
|
7520
7531
|
structure: u,
|
|
7521
7532
|
frame: l,
|
|
7522
7533
|
mergedTrackItemsDeatilsMap: b
|
|
7523
|
-
} = r, y = er(o || {}), { trim:
|
|
7534
|
+
} = r, y = er(o || {}), { trim: m, display: g } = t, M = e && e.some((x) => !!y[x]) ? e : Object.keys(y), S = Dn({
|
|
7524
7535
|
trackItemIds: er(M),
|
|
7525
|
-
transitionsMap: er(
|
|
7536
|
+
transitionsMap: er(p || {}),
|
|
7526
7537
|
trackItemsMap: y || {}
|
|
7527
|
-
}), $ = (
|
|
7528
|
-
M.filter((
|
|
7529
|
-
const v = y[
|
|
7538
|
+
}), $ = (m == null ? void 0 : m.from) || 0;
|
|
7539
|
+
M.filter((x) => !!y[x]).forEach((x) => {
|
|
7540
|
+
const v = y[x];
|
|
7530
7541
|
v != null && v.display && (v.display.from = v.display.from - $, v.display.to = v.display.to - $);
|
|
7531
7542
|
});
|
|
7532
|
-
const k = S.map((
|
|
7533
|
-
var
|
|
7534
|
-
if (
|
|
7535
|
-
if (!
|
|
7536
|
-
const W = y[(
|
|
7543
|
+
const k = S.map((x, v) => {
|
|
7544
|
+
var R, V, P, Y;
|
|
7545
|
+
if (x.length === 1) {
|
|
7546
|
+
if (!x[0]) return null;
|
|
7547
|
+
const W = y[(R = x[0]) == null ? void 0 : R.id];
|
|
7537
7548
|
if (!W) return null;
|
|
7538
|
-
let
|
|
7549
|
+
let F = {}, C = {}, X = [];
|
|
7539
7550
|
if (W.type === "template") {
|
|
7540
7551
|
const _ = u == null ? void 0 : u.find((z) => z.id === W.id);
|
|
7541
7552
|
X = (_ == null ? void 0 : _.items) || [];
|
|
@@ -7550,7 +7561,7 @@ function Ls({
|
|
|
7550
7561
|
editableTextId: c,
|
|
7551
7562
|
itemsTemplateIds: X,
|
|
7552
7563
|
itemsTemplateMap: C,
|
|
7553
|
-
transitionsTemplateMap:
|
|
7564
|
+
transitionsTemplateMap: F,
|
|
7554
7565
|
itemStructure: u == null ? void 0 : u.find((z) => z.id === W.id),
|
|
7555
7566
|
frame: (l ?? 0) - g.from * d / 1e3,
|
|
7556
7567
|
size: {
|
|
@@ -7572,24 +7583,24 @@ function Ls({
|
|
|
7572
7583
|
active: !1,
|
|
7573
7584
|
itemsTemplateIds: e,
|
|
7574
7585
|
itemsTemplateMap: y,
|
|
7575
|
-
transitionsTemplateMap:
|
|
7586
|
+
transitionsTemplateMap: p,
|
|
7576
7587
|
isTransition: !1,
|
|
7577
7588
|
isAnimationEditor: r.isAnimationEditor,
|
|
7578
7589
|
insideTemplate: !0,
|
|
7579
|
-
size:
|
|
7590
|
+
size: h,
|
|
7580
7591
|
frame: (l ?? 0) - g.from * d / 1e3
|
|
7581
7592
|
});
|
|
7582
7593
|
}
|
|
7583
|
-
const w = y[
|
|
7584
|
-
return /* @__PURE__ */ f(
|
|
7594
|
+
const w = y[x[0].id], N = (((Y = w == null ? void 0 : w.display) == null ? void 0 : Y.from) || 0) / 1e3 * r.fps;
|
|
7595
|
+
return /* @__PURE__ */ f(hn, { from: N, children: x.map((W) => {
|
|
7585
7596
|
if (W.type === "transition") {
|
|
7586
|
-
const
|
|
7597
|
+
const F = W.duration / 1e3 * d, C = ao[W.kind];
|
|
7587
7598
|
return C ? C({
|
|
7588
|
-
durationInFrames:
|
|
7599
|
+
durationInFrames: F,
|
|
7589
7600
|
id: W.id,
|
|
7590
7601
|
direction: W.direction,
|
|
7591
|
-
width: (
|
|
7592
|
-
height: (
|
|
7602
|
+
width: (h == null ? void 0 : h.width) || 0,
|
|
7603
|
+
height: (h == null ? void 0 : h.height) || 0
|
|
7593
7604
|
}) : null;
|
|
7594
7605
|
}
|
|
7595
7606
|
return s(W, {
|
|
@@ -7598,7 +7609,7 @@ function Ls({
|
|
|
7598
7609
|
onTextBlur: a,
|
|
7599
7610
|
editableTextId: c,
|
|
7600
7611
|
isTransition: !0,
|
|
7601
|
-
size:
|
|
7612
|
+
size: h
|
|
7602
7613
|
});
|
|
7603
7614
|
}) }, v);
|
|
7604
7615
|
});
|
|
@@ -7609,39 +7620,39 @@ function Hs({
|
|
|
7609
7620
|
options: r,
|
|
7610
7621
|
renderSequenceItem: n
|
|
7611
7622
|
}) {
|
|
7612
|
-
var
|
|
7623
|
+
var x, v, w, N;
|
|
7613
7624
|
const {
|
|
7614
7625
|
editableTextId: s,
|
|
7615
7626
|
itemsTemplateIds: c,
|
|
7616
7627
|
itemsTemplateMap: a,
|
|
7617
7628
|
fps: i,
|
|
7618
7629
|
frame: e,
|
|
7619
|
-
onTextBlur:
|
|
7630
|
+
onTextBlur: p,
|
|
7620
7631
|
handleTextChange: o,
|
|
7621
|
-
itemStructure:
|
|
7622
|
-
} = r, { animations: d } = t, { durationInFrames: u } = wt(t.display, i), { animationIn: l, animationOut: b, animationTimed: y } =
|
|
7632
|
+
itemStructure: h
|
|
7633
|
+
} = r, { animations: d } = t, { durationInFrames: u } = wt(t.display, i), { animationIn: l, animationOut: b, animationTimed: y } = Rt(
|
|
7623
7634
|
d,
|
|
7624
7635
|
t,
|
|
7625
7636
|
e,
|
|
7626
7637
|
i,
|
|
7627
7638
|
r
|
|
7628
|
-
),
|
|
7639
|
+
), m = er(a || {}), M = Dn({
|
|
7629
7640
|
trackItemIds: er(c || []),
|
|
7630
7641
|
transitionsMap: {},
|
|
7631
|
-
trackItemsMap:
|
|
7632
|
-
}).map((
|
|
7633
|
-
if (
|
|
7634
|
-
const P =
|
|
7642
|
+
trackItemsMap: m
|
|
7643
|
+
}).map((R, V) => {
|
|
7644
|
+
if (R.length === 1) {
|
|
7645
|
+
const P = m[R[0].id];
|
|
7635
7646
|
if (!P) return null;
|
|
7636
7647
|
let Y = V;
|
|
7637
|
-
if (
|
|
7638
|
-
const { tracks: W } =
|
|
7639
|
-
Y = W.length - W.findIndex((
|
|
7648
|
+
if (h) {
|
|
7649
|
+
const { tracks: W } = h;
|
|
7650
|
+
Y = W.length - W.findIndex((F) => F.items.includes(P.id));
|
|
7640
7651
|
}
|
|
7641
7652
|
return n ? n(P, {
|
|
7642
7653
|
fps: i,
|
|
7643
7654
|
handleTextChange: o,
|
|
7644
|
-
onTextBlur:
|
|
7655
|
+
onTextBlur: p,
|
|
7645
7656
|
editableTextId: s,
|
|
7646
7657
|
zIndex: Y,
|
|
7647
7658
|
isAnimationEditor: r.isAnimationEditor,
|
|
@@ -7650,7 +7661,7 @@ function Hs({
|
|
|
7650
7661
|
}) : null;
|
|
7651
7662
|
}
|
|
7652
7663
|
return null;
|
|
7653
|
-
}), S = M && M.map((
|
|
7664
|
+
}), S = M && M.map((R) => R), $ = (e || 0) - t.display.from * i / 1e3, k = /* @__PURE__ */ f(
|
|
7654
7665
|
Lt,
|
|
7655
7666
|
{
|
|
7656
7667
|
animationIn: l,
|
|
@@ -7678,7 +7689,7 @@ function Hs({
|
|
|
7678
7689
|
{
|
|
7679
7690
|
item: t,
|
|
7680
7691
|
keyframeAnimations: [
|
|
7681
|
-
...((
|
|
7692
|
+
...((x = d == null ? void 0 : d.in) == null ? void 0 : x.composition) || [],
|
|
7682
7693
|
...((v = d == null ? void 0 : d.out) == null ? void 0 : v.composition) || [],
|
|
7683
7694
|
...((w = d == null ? void 0 : d.timed) == null ? void 0 : w.composition) || [],
|
|
7684
7695
|
...((N = d == null ? void 0 : d.loop) == null ? void 0 : N.composition) || [],
|
|
@@ -7709,7 +7720,7 @@ const cn = {
|
|
|
7709
7720
|
ellipse: (t, r) => Jn({ item: t, options: r }),
|
|
7710
7721
|
video: (t, r) => Wn({ item: t, options: r }),
|
|
7711
7722
|
audio: (t, r) => bn({ item: t, options: r }),
|
|
7712
|
-
image: (t, r) =>
|
|
7723
|
+
image: (t, r) => Fn({ item: t, options: r }),
|
|
7713
7724
|
template: (t, r) => Ls({
|
|
7714
7725
|
item: t,
|
|
7715
7726
|
options: r,
|
|
@@ -7738,7 +7749,7 @@ export {
|
|
|
7738
7749
|
Jn as Ellipse,
|
|
7739
7750
|
An as HillAudioBars,
|
|
7740
7751
|
gn as Illustration,
|
|
7741
|
-
|
|
7752
|
+
Fn as Image,
|
|
7742
7753
|
On as LinealAudioBars,
|
|
7743
7754
|
Kn as Polygon,
|
|
7744
7755
|
Vn as ProgressBar,
|
|
@@ -7757,12 +7768,12 @@ export {
|
|
|
7757
7768
|
jn as WaveAudioBars,
|
|
7758
7769
|
yn as calculateBorderOverlayStyles,
|
|
7759
7770
|
So as calculateContainerFigureStyles,
|
|
7760
|
-
|
|
7771
|
+
Ot as calculateContainerStyles,
|
|
7761
7772
|
$o as calculateCropStyles,
|
|
7762
7773
|
fn as calculateMediaStyles,
|
|
7763
7774
|
tr as calculateTextStyles,
|
|
7764
7775
|
Gr as getAnimatedRemotionEffects,
|
|
7765
|
-
|
|
7776
|
+
Rt as getAnimations,
|
|
7766
7777
|
Mn as getEffectsCssInfo,
|
|
7767
7778
|
Dn as groupTrackItems,
|
|
7768
7779
|
Or as mapRemotionEffects
|