reacthub-pixitweenjs 0.2.107-alpha.109 → 0.2.107-alpha.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/PixiTextSprite/PixiTextSprite.d.ts +1 -0
- package/dist/hocs/AbstractContainer.d.ts +3 -1
- package/dist/index.es.js +553 -436
- package/dist/index.umd.js +15 -15
- package/dist/providers/GsapPixieContextProvider.d.ts +1 -0
- package/dist/types/BaseProps.d.ts +10 -2
- package/dist/types/transformation.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -108,7 +108,8 @@ const GsapPixieContext = React.createContext({}), Events = {
|
|
|
108
108
|
TRANSFORMER_DRAG_START: "TRANSFORMER_DRAG_START",
|
|
109
109
|
TRANSFORMER_DRAG_END: "TRANSFORMER_DRAG_END",
|
|
110
110
|
REVERSE_MODE_START: "REVERSE_MODE_START",
|
|
111
|
-
REVERSE_MODE_END: "REVERSE_MODE_END"
|
|
111
|
+
REVERSE_MODE_END: "REVERSE_MODE_END",
|
|
112
|
+
FONTS_LOADED: "FONTS_LOADED"
|
|
112
113
|
}, GsapPixieContextProvider = ({
|
|
113
114
|
children: C
|
|
114
115
|
}) => {
|
|
@@ -223,7 +224,7 @@ const GsapPixieContext = React.createContext({}), Events = {
|
|
|
223
224
|
isDragging: !1
|
|
224
225
|
}), _e = useApp(), Se = _e.screen.width, Ee = _e.screen.height, Ae = React.useMemo(() => {
|
|
225
226
|
const Le = Math.min(Se, Ee) / 800;
|
|
226
|
-
return 1.5 * Le <
|
|
227
|
+
return 1.5 * Le < 6 ? 6 : 1.5 * Le;
|
|
227
228
|
}, [Se, Ee]), Ie = 300, Te = React.useRef(0), we = React.useCallback(() => {
|
|
228
229
|
V && !Z.current.isDragging && V(!0);
|
|
229
230
|
}, [V]), Pe = React.useCallback(() => {
|
|
@@ -971,11 +972,11 @@ function arcToSegment(C, E, I, B, U, V, X, Y, K) {
|
|
|
971
972
|
Le < 0 && (Le = 0);
|
|
972
973
|
var De = (V === X ? -1 : 1) * _sqrt(Le), Ve = De * (I * Te / B), Xe = De * -(B * Ie / I), Ue = (C + Y) / 2, We = (E + K) / 2, je = Ue + (xe * Ve - Z * Xe), ze = We + (Z * Ve + xe * Xe), He = (Ie - Ve) / I, $e = (Te - Xe) / B, Ne = (-Ie - Ve) / I, Me = (-Te - Xe) / B, ke = He * He + $e * $e, Ge = ($e < 0 ? -1 : 1) * Math.acos(He / _sqrt(ke)), Be = (He * Me - $e * Ne < 0 ? -1 : 1) * Math.acos((He * Ne + $e * Me) / _sqrt(ke * (Ne * Ne + Me * Me)));
|
|
973
974
|
isNaN(Be) && (Be = _e), !X && Be > 0 ? Be -= Se : X && Be < 0 && (Be += Se), Ge %= Se, Be %= Se;
|
|
974
|
-
var qe = Math.ceil(_abs(Be) / (Se / 4)), Ke = [], Ye = Be / qe,
|
|
975
|
+
var qe = Math.ceil(_abs(Be) / (Se / 4)), Ke = [], Ye = Be / qe, tt = 4 / 3 * _sin(Ye / 2) / (1 + _cos(Ye / 2)), et = xe * I, it = Z * I, nt = Z * -B, ot = xe * B, Ze;
|
|
975
976
|
for (Ze = 0; Ze < qe; Ze++)
|
|
976
|
-
U = Ge + Ze * Ye, Ie = _cos(U), Te = _sin(U), He = _cos(U += Ye), $e = _sin(U), Ke.push(Ie -
|
|
977
|
+
U = Ge + Ze * Ye, Ie = _cos(U), Te = _sin(U), He = _cos(U += Ye), $e = _sin(U), Ke.push(Ie - tt * Te, Te + tt * Ie, He + tt * $e, $e - tt * He, He, $e);
|
|
977
978
|
for (Ze = 0; Ze < Ke.length; Ze += 2)
|
|
978
|
-
Ie = Ke[Ze], Te = Ke[Ze + 1], Ke[Ze] = Ie *
|
|
979
|
+
Ie = Ke[Ze], Te = Ke[Ze + 1], Ke[Ze] = Ie * et + Te * nt + je, Ke[Ze + 1] = Ie * it + Te * ot + ze;
|
|
979
980
|
return Ke[Ze - 2] = Y, Ke[Ze - 1] = K, Ke;
|
|
980
981
|
}
|
|
981
982
|
}
|
|
@@ -1602,9 +1603,12 @@ const CYAN = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], inita
|
|
|
1602
1603
|
scale: 1,
|
|
1603
1604
|
rotation: 0,
|
|
1604
1605
|
effect: Effects.Normal,
|
|
1605
|
-
overlay: OverlayTypes.NONE
|
|
1606
|
+
overlay: OverlayTypes.NONE,
|
|
1607
|
+
fontSize: 10
|
|
1606
1608
|
}, AbstractContainer = React.forwardRef((C, E) => {
|
|
1607
|
-
const [I, B] = React.useState(!1), [U
|
|
1609
|
+
const [I, B] = React.useState(!1), [U] = useState(!1), [V, X] = useState(!1), [Y, K] = useState(), J = useDebounce(Y, 300), xe = useRef(null), Z = useRef(null), _e = useRef(null), Se = useRef(null), Ee = useRef(null), Ae = useRef(null), Ie = useRef({
|
|
1610
|
+
isDragging: !1
|
|
1611
|
+
}), { tl: Te } = useContext(GsapPixieContext), we = useApp(), Pe = we.screen.width, Re = we.screen.height, {
|
|
1608
1612
|
uniqueId: Fe,
|
|
1609
1613
|
visible: Oe,
|
|
1610
1614
|
startAt: Le,
|
|
@@ -1618,89 +1622,117 @@ const CYAN = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], inita
|
|
|
1618
1622
|
isDragging: He,
|
|
1619
1623
|
isGif: $e,
|
|
1620
1624
|
onDoubleClick: Ne,
|
|
1621
|
-
isTextEditMode: Me
|
|
1625
|
+
isTextEditMode: Me,
|
|
1626
|
+
handleDragFontSize: ke,
|
|
1627
|
+
handleDragWordWrap: Ge
|
|
1622
1628
|
} = C, {
|
|
1623
|
-
x:
|
|
1624
|
-
y:
|
|
1625
|
-
width:
|
|
1626
|
-
height:
|
|
1627
|
-
scale:
|
|
1628
|
-
rotation:
|
|
1629
|
-
effect:
|
|
1630
|
-
overlay:
|
|
1631
|
-
animation:
|
|
1632
|
-
|
|
1629
|
+
x: Be = 0,
|
|
1630
|
+
y: qe = 0,
|
|
1631
|
+
width: Ke,
|
|
1632
|
+
height: Ye,
|
|
1633
|
+
scale: tt = [1, 1],
|
|
1634
|
+
rotation: et = 0,
|
|
1635
|
+
effect: it,
|
|
1636
|
+
overlay: nt,
|
|
1637
|
+
animation: ot = Animations.NONE,
|
|
1638
|
+
fontSize: Ze = 16
|
|
1639
|
+
} = De, Je = useGsapEffect();
|
|
1633
1640
|
useCustomEventListener(Events.COMPLETE, () => {
|
|
1634
|
-
|
|
1641
|
+
xe.current;
|
|
1635
1642
|
}), React.useImperativeHandle(
|
|
1636
1643
|
E,
|
|
1637
1644
|
() => ({
|
|
1638
1645
|
getIsTransformerDragging: () => U,
|
|
1639
|
-
getIsMouseOverTransformer: () =>
|
|
1646
|
+
getIsMouseOverTransformer: () => V
|
|
1640
1647
|
}),
|
|
1641
|
-
[U,
|
|
1648
|
+
[U, V]
|
|
1642
1649
|
), React.useEffect(() => {
|
|
1643
|
-
|
|
1650
|
+
xe.current && B(!0);
|
|
1644
1651
|
}, []), React.useEffect(() => {
|
|
1645
|
-
|
|
1646
|
-
x:
|
|
1647
|
-
y:
|
|
1648
|
-
width:
|
|
1649
|
-
height:
|
|
1650
|
-
animation:
|
|
1652
|
+
K({
|
|
1653
|
+
x: Be,
|
|
1654
|
+
y: qe,
|
|
1655
|
+
width: Ke,
|
|
1656
|
+
height: Ye,
|
|
1657
|
+
animation: ot,
|
|
1651
1658
|
maxX: Pe,
|
|
1652
1659
|
maxY: Re
|
|
1653
1660
|
});
|
|
1654
|
-
}, [
|
|
1655
|
-
if (!
|
|
1661
|
+
}, [ot, Be, qe, Ke, Ye, Pe, Re]), React.useEffect(() => {
|
|
1662
|
+
if (!Z.current)
|
|
1656
1663
|
return;
|
|
1657
|
-
const
|
|
1658
|
-
if (Te.current &&
|
|
1659
|
-
const { x:
|
|
1660
|
-
|
|
1661
|
-
|
|
1664
|
+
const ct = gsap$2.context(() => {
|
|
1665
|
+
if (Te.current && J) {
|
|
1666
|
+
const { x: ft, y: xt, animation: pt, maxX: mt, maxY: bt } = J || {}, _t = Te.current.progress(), vt = Je.updateEffect(
|
|
1667
|
+
xe.current,
|
|
1668
|
+
pt,
|
|
1662
1669
|
{
|
|
1663
1670
|
immediateRender: !1,
|
|
1664
|
-
x:
|
|
1665
|
-
y:
|
|
1671
|
+
x: ft,
|
|
1672
|
+
y: xt,
|
|
1666
1673
|
overwrite: !0,
|
|
1667
1674
|
maxX: mt,
|
|
1668
|
-
maxY:
|
|
1675
|
+
maxY: bt
|
|
1669
1676
|
}
|
|
1670
1677
|
);
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
}),
|
|
1678
|
+
Ee.current && (Te.current.remove(Ee.current), Ee.current.progress(0).kill()), _t > 0.1 ? (vt.eventCallback("onComplete", () => {
|
|
1679
|
+
vt.remove("onComplete"), Te.current.add(vt, Le), Ee.current = vt;
|
|
1680
|
+
}), vt.play()) : (vt.progress(1), Te.current.add(vt, Le), Ee.current = vt);
|
|
1674
1681
|
} else
|
|
1675
|
-
|
|
1676
|
-
},
|
|
1682
|
+
Ee.current && Ee.current.progress(0).kill();
|
|
1683
|
+
}, Z.current);
|
|
1677
1684
|
return () => {
|
|
1678
|
-
|
|
1685
|
+
ct.revert();
|
|
1686
|
+
};
|
|
1687
|
+
}, [Le, J]);
|
|
1688
|
+
const st = React.useCallback(() => {
|
|
1689
|
+
X(!0), je && !Ie.current.isDragging && je();
|
|
1690
|
+
}, []), rt = (ct) => parseFloat(ct.toFixed(2)), Qe = React.useCallback(() => {
|
|
1691
|
+
var xt, pt;
|
|
1692
|
+
Ie.current.isDragging = !0;
|
|
1693
|
+
const { width: ct } = xe.current, ft = {
|
|
1694
|
+
x: rt(Number((xt = xe.current) == null ? void 0 : xt.scale.x)),
|
|
1695
|
+
y: rt(Number((pt = xe.current) == null ? void 0 : pt.scale.y))
|
|
1679
1696
|
};
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1697
|
+
if (ze) {
|
|
1698
|
+
if (ft.x !== 1 && ft.y !== 1 && _e.current) {
|
|
1699
|
+
const mt = Ze * ft.x;
|
|
1700
|
+
ke && ke(ct, mt, ft);
|
|
1701
|
+
} else if (ft.x !== 1)
|
|
1702
|
+
Ge && Ge(ct, ft);
|
|
1703
|
+
else if (ft.y !== 1) {
|
|
1704
|
+
const mt = Ze * ft.x;
|
|
1705
|
+
ke && ke(ct, mt, ft);
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
}, [ze, Ze, ke, Ge]), at = React.useCallback(
|
|
1709
|
+
(ct) => {
|
|
1710
|
+
var Rt, At;
|
|
1711
|
+
const { x: ft, y: xt, width: pt, height: mt, rotation: bt } = xe.current, _t = {
|
|
1712
|
+
x: rt(Number((Rt = xe.current) == null ? void 0 : Rt.scale.x)),
|
|
1713
|
+
y: rt(Number((At = xe.current) == null ? void 0 : At.scale.y))
|
|
1714
|
+
};
|
|
1715
|
+
let vt = Ze;
|
|
1716
|
+
ze && _t.x !== 1 && _t.y !== 1 ? (vt = Ze * _t.x, ke && ke(pt, vt, _t)) : ze && _t.x !== 1 && Ge && Ge(pt, _t), C.onAnchorTransformationEnd && C.onAnchorTransformationEnd({
|
|
1717
|
+
uniqueId: Fe,
|
|
1718
|
+
transformation: { ...ct.transformation, fontSize: vt }
|
|
1719
|
+
}), Ie.current.isDragging = !1;
|
|
1688
1720
|
},
|
|
1689
|
-
[]
|
|
1690
|
-
),
|
|
1721
|
+
[ze, Fe, Ze, ke, Ge]
|
|
1722
|
+
), ht = withFilters(Container$1, {
|
|
1691
1723
|
matrix: PIXI.filters.ColorMatrixFilter
|
|
1692
1724
|
});
|
|
1693
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$1, { ref:
|
|
1725
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$1, { ref: Z, children: [
|
|
1694
1726
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1695
1727
|
Container$1,
|
|
1696
1728
|
{
|
|
1697
|
-
ref:
|
|
1698
|
-
position: [
|
|
1699
|
-
pivot: [
|
|
1700
|
-
width:
|
|
1701
|
-
height:
|
|
1702
|
-
scale:
|
|
1703
|
-
rotation:
|
|
1729
|
+
ref: xe,
|
|
1730
|
+
position: [Be, qe],
|
|
1731
|
+
pivot: [Be, qe],
|
|
1732
|
+
width: Ke,
|
|
1733
|
+
height: Ye,
|
|
1734
|
+
scale: tt,
|
|
1735
|
+
rotation: et,
|
|
1704
1736
|
...!Xe && Oe && !U && !He && {
|
|
1705
1737
|
interactive: !0,
|
|
1706
1738
|
buttonMode: !0,
|
|
@@ -1708,31 +1740,44 @@ const CYAN = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], inita
|
|
|
1708
1740
|
pointerover: je,
|
|
1709
1741
|
pointerout: We
|
|
1710
1742
|
},
|
|
1711
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$1, { ref:
|
|
1743
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Container$1, { ref: Ae, children: [
|
|
1712
1744
|
!$e && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1713
|
-
|
|
1745
|
+
ht,
|
|
1714
1746
|
{
|
|
1715
1747
|
scale: 1,
|
|
1716
|
-
apply: ({ matrix:
|
|
1717
|
-
|
|
1748
|
+
apply: ({ matrix: ct }) => {
|
|
1749
|
+
it === Effects.BlackAndWhite ? ct.desaturate() : it === Effects.Sepia ? ct.sepia() : it === Effects.RetroVintage || it === Effects.NightVision ? ct.negative() : it === Effects.Normal && ct.reset();
|
|
1718
1750
|
},
|
|
1719
1751
|
matrix: {
|
|
1720
1752
|
enabled: !0,
|
|
1721
1753
|
// @ts-ignore
|
|
1722
1754
|
matrix: CYAN
|
|
1723
1755
|
},
|
|
1724
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref:
|
|
1756
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: _e, children: C.children })
|
|
1725
1757
|
}
|
|
1726
1758
|
),
|
|
1727
|
-
$e && /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref:
|
|
1728
|
-
!isEmpty$1(
|
|
1759
|
+
$e && /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { ref: _e, children: C.children }),
|
|
1760
|
+
!isEmpty$1(nt) && nt !== OverlayTypes.NONE && nt !== OverlayTypes.NORMAL && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1729
1761
|
PixiOverlayTilingSprite,
|
|
1730
1762
|
{
|
|
1731
|
-
overlay:
|
|
1732
|
-
width:
|
|
1733
|
-
height:
|
|
1734
|
-
x:
|
|
1735
|
-
y:
|
|
1763
|
+
overlay: nt,
|
|
1764
|
+
width: Ke,
|
|
1765
|
+
height: Ye,
|
|
1766
|
+
x: Be,
|
|
1767
|
+
y: qe
|
|
1768
|
+
}
|
|
1769
|
+
),
|
|
1770
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1771
|
+
Sprite,
|
|
1772
|
+
{
|
|
1773
|
+
texture: PIXI.Texture.WHITE,
|
|
1774
|
+
alpha: 0,
|
|
1775
|
+
x: Be,
|
|
1776
|
+
y: qe,
|
|
1777
|
+
width: Ke,
|
|
1778
|
+
height: Ye,
|
|
1779
|
+
scale: tt,
|
|
1780
|
+
rotation: et
|
|
1736
1781
|
}
|
|
1737
1782
|
)
|
|
1738
1783
|
] })
|
|
@@ -1741,12 +1786,12 @@ const CYAN = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], inita
|
|
|
1741
1786
|
Ve && Oe && !Me && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1742
1787
|
PixiTransformer,
|
|
1743
1788
|
{
|
|
1744
|
-
pixiTransformerRef:
|
|
1745
|
-
imageRef:
|
|
1789
|
+
pixiTransformerRef: Se,
|
|
1790
|
+
imageRef: xe,
|
|
1746
1791
|
isMounted: I,
|
|
1747
|
-
transformCommit:
|
|
1748
|
-
transformChange:
|
|
1749
|
-
mouseoverEvent:
|
|
1792
|
+
transformCommit: at,
|
|
1793
|
+
transformChange: Qe,
|
|
1794
|
+
mouseoverEvent: st,
|
|
1750
1795
|
uniqueId: Fe,
|
|
1751
1796
|
isText: ze,
|
|
1752
1797
|
onDoubleClick: Ne
|
|
@@ -2246,12 +2291,12 @@ punycode$1.exports;
|
|
|
2246
2291
|
function Xe(Ge, Be) {
|
|
2247
2292
|
var qe = Ge.split("@"), Ke = "";
|
|
2248
2293
|
qe.length > 1 && (Ke = qe[0] + "@", Ge = qe[1]), Ge = Ge.replace(we, ".");
|
|
2249
|
-
var Ye = Ge.split("."),
|
|
2250
|
-
return Ke +
|
|
2294
|
+
var Ye = Ge.split("."), tt = Ve(Ye, Be).join(".");
|
|
2295
|
+
return Ke + tt;
|
|
2251
2296
|
}
|
|
2252
2297
|
function Ue(Ge) {
|
|
2253
|
-
for (var Be = [], qe = 0, Ke = Ge.length, Ye,
|
|
2254
|
-
Ye = Ge.charCodeAt(qe++), Ye >= 55296 && Ye <= 56319 && qe < Ke ? (
|
|
2298
|
+
for (var Be = [], qe = 0, Ke = Ge.length, Ye, tt; qe < Ke; )
|
|
2299
|
+
Ye = Ge.charCodeAt(qe++), Ye >= 55296 && Ye <= 56319 && qe < Ke ? (tt = Ge.charCodeAt(qe++), (tt & 64512) == 56320 ? Be.push(((Ye & 1023) << 10) + (tt & 1023) + 65536) : (Be.push(Ye), qe--)) : Be.push(Ye);
|
|
2255
2300
|
return Be;
|
|
2256
2301
|
}
|
|
2257
2302
|
function We(Ge) {
|
|
@@ -2273,30 +2318,30 @@ punycode$1.exports;
|
|
|
2273
2318
|
return Fe(Ke + (Re + 1) * Ge / (Ge + Z));
|
|
2274
2319
|
}
|
|
2275
2320
|
function $e(Ge) {
|
|
2276
|
-
var Be = [], qe = Ge.length, Ke, Ye = 0,
|
|
2321
|
+
var Be = [], qe = Ge.length, Ke, Ye = 0, tt = Ee, et = Se, it, nt, ot, Ze, Je, st, rt, Qe, at;
|
|
2277
2322
|
for (it = Ge.lastIndexOf(Ae), it < 0 && (it = 0), nt = 0; nt < it; ++nt)
|
|
2278
2323
|
Ge.charCodeAt(nt) >= 128 && De("not-basic"), Be.push(Ge.charCodeAt(nt));
|
|
2279
2324
|
for (ot = it > 0 ? it + 1 : 0; ot < qe; ) {
|
|
2280
|
-
for (Ze = Ye, Je = 1, st = K; ot >= qe && De("invalid-input"), rt = je(Ge.charCodeAt(ot++)), (rt >= K || rt > Fe((Y - Ye) / Je)) && De("overflow"), Ye += rt * Je,
|
|
2281
|
-
at = K -
|
|
2282
|
-
Ke = Be.length + 1,
|
|
2325
|
+
for (Ze = Ye, Je = 1, st = K; ot >= qe && De("invalid-input"), rt = je(Ge.charCodeAt(ot++)), (rt >= K || rt > Fe((Y - Ye) / Je)) && De("overflow"), Ye += rt * Je, Qe = st <= et ? J : st >= et + xe ? xe : st - et, !(rt < Qe); st += K)
|
|
2326
|
+
at = K - Qe, Je > Fe(Y / at) && De("overflow"), Je *= at;
|
|
2327
|
+
Ke = Be.length + 1, et = He(Ye - Ze, Ke, Ze == 0), Fe(Ye / Ke) > Y - tt && De("overflow"), tt += Fe(Ye / Ke), Ye %= Ke, Be.splice(Ye++, 0, tt);
|
|
2283
2328
|
}
|
|
2284
2329
|
return We(Be);
|
|
2285
2330
|
}
|
|
2286
2331
|
function Ne(Ge) {
|
|
2287
|
-
var Be, qe, Ke, Ye,
|
|
2288
|
-
for (Ge = Ue(Ge), rt = Ge.length, Be = Ee, qe = 0,
|
|
2289
|
-
Je = Ge[
|
|
2332
|
+
var Be, qe, Ke, Ye, tt, et, it, nt, ot, Ze, Je, st = [], rt, Qe, at, ht;
|
|
2333
|
+
for (Ge = Ue(Ge), rt = Ge.length, Be = Ee, qe = 0, tt = Se, et = 0; et < rt; ++et)
|
|
2334
|
+
Je = Ge[et], Je < 128 && st.push(Oe(Je));
|
|
2290
2335
|
for (Ke = Ye = st.length, Ye && st.push(Ae); Ke < rt; ) {
|
|
2291
|
-
for (it = Y,
|
|
2292
|
-
Je = Ge[
|
|
2293
|
-
for (
|
|
2294
|
-
if (Je = Ge[
|
|
2295
|
-
for (nt = qe, ot = K; Ze = ot <=
|
|
2296
|
-
|
|
2297
|
-
Oe(ze(Ze +
|
|
2298
|
-
), nt = Fe(
|
|
2299
|
-
st.push(Oe(ze(nt, 0))),
|
|
2336
|
+
for (it = Y, et = 0; et < rt; ++et)
|
|
2337
|
+
Je = Ge[et], Je >= Be && Je < it && (it = Je);
|
|
2338
|
+
for (Qe = Ke + 1, it - Be > Fe((Y - qe) / Qe) && De("overflow"), qe += (it - Be) * Qe, Be = it, et = 0; et < rt; ++et)
|
|
2339
|
+
if (Je = Ge[et], Je < Be && ++qe > Y && De("overflow"), Je == Be) {
|
|
2340
|
+
for (nt = qe, ot = K; Ze = ot <= tt ? J : ot >= tt + xe ? xe : ot - tt, !(nt < Ze); ot += K)
|
|
2341
|
+
ht = nt - Ze, at = K - Ze, st.push(
|
|
2342
|
+
Oe(ze(Ze + ht % at, 0))
|
|
2343
|
+
), nt = Fe(ht / at);
|
|
2344
|
+
st.push(Oe(ze(nt, 0))), tt = He(qe, Qe, Ke == Ye), qe = 0, ++Ke;
|
|
2300
2345
|
}
|
|
2301
2346
|
++qe, ++Be;
|
|
2302
2347
|
}
|
|
@@ -12472,10 +12517,10 @@ function buildNonNativeLine(C, E) {
|
|
|
12472
12517
|
xe.push(Pe - Le * je, Re - De * je, Pe + Le * ze, Re + De * ze), qe >= 0 && (V.join === LINE_JOIN.ROUND ? _e += round(Pe, Re, Pe - Le * je, Re - De * je, Pe - Ve * je, Re - Xe * je, xe, !1) + 4 : _e += 2, xe.push(Pe - Ve * ze, Re - Xe * ze, Pe + Ve * je, Re + Xe * je));
|
|
12473
12518
|
continue;
|
|
12474
12519
|
}
|
|
12475
|
-
const
|
|
12476
|
-
let
|
|
12477
|
-
if (
|
|
12478
|
-
switch (
|
|
12520
|
+
const tt = (-Le + Te) * (-De + Re) - (-Le + Pe) * (-De + we), et = (-Ve + Fe) * (-Xe + Re) - (-Ve + Pe) * (-Xe + Oe), it = (Me * et - Ge * tt) / Ke, nt = (Be * tt - ke * et) / Ke, ot = (it - Pe) * (it - Pe) + (nt - Re) * (nt - Re), Ze = Pe + (it - Pe) * je, Je = Re + (nt - Re) * je, st = Pe - (it - Pe) * ze, rt = Re - (nt - Re) * ze, Qe = Math.min(Me * Me + ke * ke, Ge * Ge + Be * Be), at = Ye ? je : ze, ht = Qe + at * at * Ae, ct = ot <= ht;
|
|
12521
|
+
let ft = V.join;
|
|
12522
|
+
if (ft === LINE_JOIN.MITER && ot / Ae > Ie && (ft = LINE_JOIN.BEVEL), ct)
|
|
12523
|
+
switch (ft) {
|
|
12479
12524
|
case LINE_JOIN.MITER: {
|
|
12480
12525
|
xe.push(Ze, Je, st, rt);
|
|
12481
12526
|
break;
|
|
@@ -12490,7 +12535,7 @@ function buildNonNativeLine(C, E) {
|
|
|
12490
12535
|
}
|
|
12491
12536
|
}
|
|
12492
12537
|
else {
|
|
12493
|
-
switch (xe.push(Pe - Le * je, Re - De * je, Pe + Le * ze, Re + De * ze),
|
|
12538
|
+
switch (xe.push(Pe - Le * je, Re - De * je, Pe + Le * ze, Re + De * ze), ft) {
|
|
12494
12539
|
case LINE_JOIN.MITER: {
|
|
12495
12540
|
Ye ? xe.push(st, rt, st, rt) : xe.push(Ze, Je, Ze, Je), _e += 2;
|
|
12496
12541
|
break;
|
|
@@ -17076,51 +17121,51 @@ class AudioMotionAnalyzer {
|
|
|
17076
17121
|
return;
|
|
17077
17122
|
}
|
|
17078
17123
|
const { _ansiBands: I, _barSpace: B, canvas: U, _chLayout: V, _maxFreq: X, _minFreq: Y, _mirror: K, _mode: J, _radial: xe, _reflexRatio: Z } = this, _e = U.width >> 1, Se = U.height >> 1, Ee = V == CHANNEL_VERTICAL && !xe, Ae = V == CHANNEL_HORIZONTAL, Ie = J % 10 != 0, Te = Ie && this._frequencyScale == SCALE_LOG, we = this._showLeds && Ie && !xe, Pe = this._lumiBars && Ie && !xe, Re = this._alphaBars && !Pe && J != MODE_GRAPH, Fe = this._outlineBars && Ie && !Pe && !we, Oe = this._roundBars && Ie && !Pe && !we, Le = V != CHANNEL_VERTICAL || Z > 0 && !Pe, De = U.height - (Ee && !we ? 0.5 : 0) >> Ee, Ve = De * (Pe || xe ? 1 : 1 - Z) | 0, Xe = U.width - _e * (Ae || K != 0), Ue = Ee ? U.height - De * 2 : 0, We = _e * (K == -1 && !Ae && !xe), je = Math.min(U.width, U.height) * (V == CHANNEL_VERTICAL ? 0.375 : 0.125) | 0, ze = Math.min(_e, Se), He = (Ye) => E.push({ ...Ye, peak: [0, 0], hold: [0], value: [0] }), $e = (Ye) => {
|
|
17079
|
-
const
|
|
17080
|
-
return [
|
|
17124
|
+
const tt = this._freqToBin(Ye, "floor"), et = this._binToFreq(tt), it = this._binToFreq(tt + 1), nt = Math.log2(Ye / et) / Math.log2(it / et);
|
|
17125
|
+
return [tt, nt];
|
|
17081
17126
|
};
|
|
17082
17127
|
let Ne, Me, ke;
|
|
17083
17128
|
if (Te) {
|
|
17084
|
-
const Ye = (st, rt,
|
|
17085
|
-
const rt = [1, 1.12, 1.25, 1.4, 1.6, 1.8, 2, 2.24, 2.5, 2.8, 3.15, 3.55, 4, 4.5, 5, 5.6, 6.3, 7.1, 8, 9, 10],
|
|
17086
|
-
let
|
|
17087
|
-
for (;
|
|
17088
|
-
|
|
17089
|
-
return at - rt[
|
|
17090
|
-
},
|
|
17091
|
-
let ot = I ? 7.94328235 / (
|
|
17129
|
+
const Ye = (st, rt, Qe) => +st.toPrecision(Qe ? Math.max(rt, 1 + Math.log10(st) | 0) : rt), tt = (st) => {
|
|
17130
|
+
const rt = [1, 1.12, 1.25, 1.4, 1.6, 1.8, 2, 2.24, 2.5, 2.8, 3.15, 3.55, 4, 4.5, 5, 5.6, 6.3, 7.1, 8, 9, 10], Qe = Math.log10(st) | 0, at = st / 10 ** Qe;
|
|
17131
|
+
let ht = 1;
|
|
17132
|
+
for (; ht < rt.length && at > rt[ht]; )
|
|
17133
|
+
ht++;
|
|
17134
|
+
return at - rt[ht - 1] < rt[ht] - at && ht--, (rt[ht] * 10 ** (Qe + 5) | 0) / 1e5;
|
|
17135
|
+
}, et = [0, 24, 12, 8, 6, 4, 3, 2, 1][J], it = I ? 10 ** (3 / (et * 10)) : 2 ** (1 / et), nt = it ** 0.5;
|
|
17136
|
+
let ot = I ? 7.94328235 / (et % 2 ? 1 : nt) : C_1;
|
|
17092
17137
|
do {
|
|
17093
17138
|
let st = ot;
|
|
17094
|
-
const rt = Ye(st / nt, 4, !0),
|
|
17095
|
-
I ? st =
|
|
17139
|
+
const rt = Ye(st / nt, 4, !0), Qe = Ye(st * nt, 4, !0), [at, ht] = $e(rt), [ct, ft] = $e(Qe);
|
|
17140
|
+
I ? st = et < 4 ? tt(st) : Ye(st, st.toString()[0] < 5 ? 3 : 2) : st = Ye(st, 4, !0), st >= Y && He({ posX: 0, freq: st, freqLo: rt, freqHi: Qe, binLo: at, binHi: ct, ratioLo: ht, ratioHi: ft }), ot *= it;
|
|
17096
17141
|
} while (ot <= X);
|
|
17097
17142
|
Ne = Xe / E.length, E.forEach((st, rt) => st.posX = We + rt * Ne);
|
|
17098
17143
|
const Ze = E[0], Je = E[E.length - 1];
|
|
17099
17144
|
Me = this._freqScaling(Ze.freqLo), ke = Xe / (this._freqScaling(Je.freqHi) - Me), Ze.freqLo < Y && (Ze.freqLo = Y, [Ze.binLo, Ze.ratioLo] = $e(Y)), Je.freqHi > X && (Je.freqHi = X, [Je.binHi, Je.ratioHi] = $e(X));
|
|
17100
17145
|
} else if (Ie) {
|
|
17101
|
-
const Ye = [0, 24, 12, 8, 6, 4, 3, 2, 1][J] * 10,
|
|
17146
|
+
const Ye = [0, 24, 12, 8, 6, 4, 3, 2, 1][J] * 10, tt = (et) => {
|
|
17102
17147
|
switch (this._frequencyScale) {
|
|
17103
17148
|
case SCALE_BARK:
|
|
17104
|
-
return 1960 / (26.81 / (
|
|
17149
|
+
return 1960 / (26.81 / (et + 0.53) - 1);
|
|
17105
17150
|
case SCALE_MEL:
|
|
17106
|
-
return 700 * (2 **
|
|
17151
|
+
return 700 * (2 ** et - 1);
|
|
17107
17152
|
case SCALE_LINEAR:
|
|
17108
|
-
return
|
|
17153
|
+
return et;
|
|
17109
17154
|
}
|
|
17110
17155
|
};
|
|
17111
17156
|
Ne = Xe / Ye, Me = this._freqScaling(Y), ke = Xe / (this._freqScaling(X) - Me);
|
|
17112
|
-
for (let
|
|
17113
|
-
const nt =
|
|
17114
|
-
He({ posX: We + it, freq: ot, freqLo: nt, freqHi: Ze, binLo: Je, binHi: rt, ratioLo: st, ratioHi:
|
|
17157
|
+
for (let et = 0, it = 0; et < Ye; et++, it += Ne) {
|
|
17158
|
+
const nt = tt(Me + it / ke), ot = tt(Me + (it + Ne / 2) / ke), Ze = tt(Me + (it + Ne) / ke), [Je, st] = $e(nt), [rt, Qe] = $e(Ze);
|
|
17159
|
+
He({ posX: We + it, freq: ot, freqLo: nt, freqHi: Ze, binLo: Je, binHi: rt, ratioLo: st, ratioHi: Qe });
|
|
17115
17160
|
}
|
|
17116
17161
|
} else {
|
|
17117
17162
|
Ne = 1, Me = this._freqScaling(Y), ke = Xe / (this._freqScaling(X) - Me);
|
|
17118
|
-
const Ye = this._freqToBin(Y, "floor"),
|
|
17119
|
-
let
|
|
17120
|
-
for (let it = Ye; it <=
|
|
17163
|
+
const Ye = this._freqToBin(Y, "floor"), tt = this._freqToBin(X);
|
|
17164
|
+
let et = -999;
|
|
17165
|
+
for (let it = Ye; it <= tt; it++) {
|
|
17121
17166
|
const nt = this._binToFreq(it), ot = We + Math.round(ke * (this._freqScaling(nt) - Me));
|
|
17122
|
-
if (ot >
|
|
17123
|
-
He({ posX: ot, freq: nt, freqLo: nt, freqHi: nt, binLo: it, binHi: it, ratioLo: 0, ratioHi: 0 }),
|
|
17167
|
+
if (ot > et)
|
|
17168
|
+
He({ posX: ot, freq: nt, freqLo: nt, freqHi: nt, binLo: it, binHi: it, ratioLo: 0, ratioHi: 0 }), et = ot;
|
|
17124
17169
|
else if (E.length) {
|
|
17125
17170
|
const Ze = E[E.length - 1];
|
|
17126
17171
|
Ze.binHi = it, Ze.freqHi = nt, Ze.freq = (Ze.freqLo * nt) ** 0.5;
|
|
@@ -17129,7 +17174,7 @@ class AudioMotionAnalyzer {
|
|
|
17129
17174
|
}
|
|
17130
17175
|
let Ge = 0, Be = 0;
|
|
17131
17176
|
if (we) {
|
|
17132
|
-
const Ye = this._pixelRatio / (window.devicePixelRatio > 1 && window.screen.height <= 540 ? 2 : 1),
|
|
17177
|
+
const Ye = this._pixelRatio / (window.devicePixelRatio > 1 && window.screen.height <= 540 ? 2 : 1), tt = [
|
|
17133
17178
|
[],
|
|
17134
17179
|
[128, 3, 0.45],
|
|
17135
17180
|
// mode 1
|
|
@@ -17147,9 +17192,9 @@ class AudioMotionAnalyzer {
|
|
|
17147
17192
|
// mode 7
|
|
17148
17193
|
[24, 16, 0.125]
|
|
17149
17194
|
// mode 8
|
|
17150
|
-
],
|
|
17195
|
+
], et = this._ledParams, [it, nt, ot] = et || tt[J];
|
|
17151
17196
|
let Ze, Je = Ve;
|
|
17152
|
-
if (
|
|
17197
|
+
if (et) {
|
|
17153
17198
|
const st = 2 * Ye;
|
|
17154
17199
|
let rt;
|
|
17155
17200
|
Ze = it + 1;
|
|
@@ -17160,7 +17205,7 @@ class AudioMotionAnalyzer {
|
|
|
17160
17205
|
const st = 540 / nt;
|
|
17161
17206
|
Be = Math.min(nt * Ye, Math.max(2, Je / st + 0.1 | 0));
|
|
17162
17207
|
}
|
|
17163
|
-
Le && (Je += Be),
|
|
17208
|
+
Le && (Je += Be), et || (Ze = Math.min(it, Je / (Be * 2) | 0)), Ge = ot >= 1 ? ot : Ne * ot, this._leds = [
|
|
17164
17209
|
Ze,
|
|
17165
17210
|
Ge,
|
|
17166
17211
|
Be,
|
|
@@ -17169,14 +17214,14 @@ class AudioMotionAnalyzer {
|
|
|
17169
17214
|
];
|
|
17170
17215
|
}
|
|
17171
17216
|
const qe = Math.min(Ne - 1, B * (B > 0 && B < 1 ? Ne : 1));
|
|
17172
|
-
Ie && (Ne -= Math.max(we ? Ge : 0, qe)), E.forEach((Ye,
|
|
17173
|
-
let
|
|
17174
|
-
Ie && (B == 0 && !we ? (
|
|
17217
|
+
Ie && (Ne -= Math.max(we ? Ge : 0, qe)), E.forEach((Ye, tt) => {
|
|
17218
|
+
let et = Ye.posX, it = Ne;
|
|
17219
|
+
Ie && (B == 0 && !we ? (et |= 0, it |= 0, tt > 0 && et > E[tt - 1].posX + E[tt - 1].width && (et--, it++)) : et += Math.max(we ? Ge : 0, qe) / 2, Ye.posX = et), Ye.barCenter = et + (Ne == 1 ? 0 : it / 2), Ye.width = it;
|
|
17175
17220
|
});
|
|
17176
17221
|
const Ke = [];
|
|
17177
17222
|
for (const Ye of [0, 1]) {
|
|
17178
|
-
const
|
|
17179
|
-
Ke.push({ channelTop:
|
|
17223
|
+
const tt = V == CHANNEL_VERTICAL ? (De + Ue) * Ye : 0, et = tt + De, it = tt + Ve - (!we || Le ? 0 : Be);
|
|
17224
|
+
Ke.push({ channelTop: tt, channelBottom: et, analyzerBottom: it });
|
|
17180
17225
|
}
|
|
17181
17226
|
this._aux = { analyzerHeight: Ve, analyzerWidth: Xe, centerX: _e, centerY: Se, channelCoords: Ke, channelHeight: De, channelGap: Ue, initialX: We, innerRadius: je, outerRadius: ze, scaleMin: Me, unitWidth: ke }, this._flg = { isAlpha: Re, isBands: Ie, isLeds: we, isLumi: Pe, isOctaves: Te, isOutline: Fe, isRound: Oe, noLedGap: Le }, this._createScales();
|
|
17182
17227
|
}
|
|
@@ -17267,195 +17312,195 @@ class AudioMotionAnalyzer {
|
|
|
17267
17312
|
_radial: qe,
|
|
17268
17313
|
showBgColor: Ke,
|
|
17269
17314
|
showPeaks: Ye,
|
|
17270
|
-
useCanvas:
|
|
17271
|
-
_weightingFilter:
|
|
17272
|
-
} = this, it = this._scaleX.canvas, nt = this._scaleR.canvas, ot = ze >> 1, Ze = Ve == CHANNEL_COMBINED, Je = Ve == CHANNEL_HORIZONTAL, st = Ve == CHANNEL_VERTICAL, rt = Ve == CHANNEL_SINGLE,
|
|
17315
|
+
useCanvas: tt,
|
|
17316
|
+
_weightingFilter: et
|
|
17317
|
+
} = this, it = this._scaleX.canvas, nt = this._scaleR.canvas, ot = ze >> 1, Ze = Ve == CHANNEL_COMBINED, Je = Ve == CHANNEL_HORIZONTAL, st = Ve == CHANNEL_VERTICAL, rt = Ve == CHANNEL_SINGLE, Qe = Y && this._trueLeds && Xe == COLOR_GRADIENT, at = qe ? Le.width : this._aux.analyzerWidth, ht = Pe + at, ct = Ye && this._peakLine && Ge == MODE_GRAPH, ft = qe ? Fe - Re : Se, [xt, pt, mt, bt] = this._leds || [];
|
|
17273
17318
|
We.val > 0 && (this._spinAngle += this._spinSpeed * TAU / (60 * ze));
|
|
17274
|
-
const
|
|
17319
|
+
const _t = (lt) => {
|
|
17275
17320
|
if (this._reflexRatio > 0 && !K && !qe) {
|
|
17276
|
-
let
|
|
17277
|
-
this.reflexFit || st ? (
|
|
17321
|
+
let yt, $t;
|
|
17322
|
+
this.reflexFit || st ? (yt = st && lt == 0 ? Te + we : 0, $t = Te - Se) : (yt = Le.height - Se * 2, $t = Se), Ue.save(), Ue.globalAlpha = this.reflexAlpha, this.reflexBright != 1 && (Ue.filter = `brightness(${this.reflexBright})`), Ue.setTransform(1, 0, 0, -1, 0, Le.height), Ue.drawImage(Le, 0, Ie[lt].channelTop, Le.width, Se, 0, yt, Le.width, $t), Ue.restore();
|
|
17278
17323
|
}
|
|
17279
|
-
},
|
|
17324
|
+
}, vt = () => {
|
|
17280
17325
|
this.showScaleX && (qe ? (Ue.save(), Ue.translate(Ee, Ae), this._spinSpeed && Ue.rotate(this._spinAngle + HALF_PI), Ue.drawImage(nt, -nt.width >> 1, -nt.width >> 1), Ue.restore()) : Ue.drawImage(it, 0, Le.height - it.height));
|
|
17281
|
-
},
|
|
17282
|
-
const
|
|
17283
|
-
switch (
|
|
17326
|
+
}, Rt = (lt) => {
|
|
17327
|
+
const yt = lt ** 2, $t = 424.36, Ct = 11599.29, Qt = 25122.25, Bt = 544496.41, Nt = 148693636, zt = (Ht) => 20 * Math.log10(Ht);
|
|
17328
|
+
switch (et) {
|
|
17284
17329
|
case FILTER_A:
|
|
17285
|
-
const Ht = Nt *
|
|
17330
|
+
const Ht = Nt * yt ** 2 / ((yt + $t) * Math.sqrt((yt + Ct) * (yt + Bt)) * (yt + Nt));
|
|
17286
17331
|
return 2 + zt(Ht);
|
|
17287
17332
|
case FILTER_B:
|
|
17288
|
-
const jt = Nt *
|
|
17333
|
+
const jt = Nt * yt * lt / ((yt + $t) * Math.sqrt(yt + Qt) * (yt + Nt));
|
|
17289
17334
|
return 0.17 + zt(jt);
|
|
17290
17335
|
case FILTER_C:
|
|
17291
|
-
const rr = Nt *
|
|
17336
|
+
const rr = Nt * yt / ((yt + $t) * (yt + Nt));
|
|
17292
17337
|
return 0.06 + zt(rr);
|
|
17293
17338
|
case FILTER_D:
|
|
17294
|
-
const Jt = ((103791848e-2 -
|
|
17339
|
+
const Jt = ((103791848e-2 - yt) ** 2 + 108076816e-2 * yt) / ((9837328 - yt) ** 2 + 11723776 * yt), ir = lt / 68966888496476e-18 * Math.sqrt(Jt / ((yt + 79919.29) * (yt + 1345600)));
|
|
17295
17340
|
return zt(ir);
|
|
17296
17341
|
case FILTER_468:
|
|
17297
|
-
const er = -4737338981378384e-39 * lt ** 6 + 2043828333606125e-30 * lt ** 4 - 1363894795463638e-22 *
|
|
17298
|
-
return 18.2 + zt(
|
|
17342
|
+
const er = -4737338981378384e-39 * lt ** 6 + 2043828333606125e-30 * lt ** 4 - 1363894795463638e-22 * yt + 1, Xt = 1306612257412824e-34 * lt ** 5 - 2118150887518656e-26 * lt ** 3 + 5559488023498642e-19 * lt, Mt = 1246332637532143e-19 * lt / Math.hypot(er, Xt);
|
|
17343
|
+
return 18.2 + zt(Mt);
|
|
17299
17344
|
}
|
|
17300
17345
|
return 0;
|
|
17301
|
-
}, At = (lt,
|
|
17302
|
-
Ue.beginPath(), Ue.moveTo(lt,
|
|
17303
|
-
},
|
|
17346
|
+
}, At = (lt, yt, $t) => {
|
|
17347
|
+
Ue.beginPath(), Ue.moveTo(lt, yt), Ue.lineTo(lt, $t), Ue.stroke();
|
|
17348
|
+
}, Ft = (lt) => {
|
|
17304
17349
|
if (lt && $e) {
|
|
17305
|
-
const
|
|
17306
|
-
Ue.globalAlpha = 1, Ue.stroke(), Ue.globalAlpha =
|
|
17350
|
+
const yt = Ue.globalAlpha;
|
|
17351
|
+
Ue.globalAlpha = 1, Ue.stroke(), Ue.globalAlpha = yt;
|
|
17307
17352
|
}
|
|
17308
|
-
},
|
|
17353
|
+
}, kt = (lt) => Math.max(0, (lt * xt | 0) * (bt + mt) - mt), qt = (lt) => {
|
|
17309
17354
|
We.val = lt, We.peak > 0 && (We.hold--, We.hold < 0 && (We.peak += We.hold / (ot * ot / 2))), lt >= We.peak && (We.peak = lt, We.hold = ot);
|
|
17310
17355
|
};
|
|
17311
17356
|
Be && Ue.clearRect(0, 0, Le.width, Le.height);
|
|
17312
17357
|
let Vt = 0;
|
|
17313
17358
|
const ar = Oe.length, or = rt ? 1 : 2;
|
|
17314
17359
|
for (let lt = 0; lt < or; lt++) {
|
|
17315
|
-
const { channelTop:
|
|
17316
|
-
const
|
|
17317
|
-
Ue.save(), Ue.fillStyle = SCALEY_LABEL_COLOR, Ue.font = `${
|
|
17318
|
-
for (let Ut =
|
|
17319
|
-
const Yt =
|
|
17320
|
-
if (
|
|
17321
|
-
const
|
|
17322
|
-
Dt && Ue.fillText(Ut,
|
|
17360
|
+
const { channelTop: yt, channelBottom: $t, analyzerBottom: Ct } = Ie[lt], Qt = this._gradients[this._selectedGrads[lt]], Bt = Qt.colorStops, Nt = Bt.length, zt = !Ke || Y && !Be ? "#000" : Qt.bgColor, Ht = st && qe && lt ? -1 : 1, jt = !lt && ke == -1 || lt && ke == 1, rr = !Je || lt && ke != 1 ? 0 : at >> (lt || !jt), Jt = Je && jt ? -1 : 1, ir = () => {
|
|
17361
|
+
const ut = it.height, gt = ut >> 1, dt = He ? 100 : Ne, St = He ? 0 : Me, Tt = He ? 20 : 5, It = Se / (dt - St), Dt = ke != -1 && (!Je || lt == 0 || ke == 1), Gt = ke != 1 && (!Je || lt != ke);
|
|
17362
|
+
Ue.save(), Ue.fillStyle = SCALEY_LABEL_COLOR, Ue.font = `${gt}px ${FONT_FAMILY}`, Ue.textAlign = "right", Ue.lineWidth = 1;
|
|
17363
|
+
for (let Ut = dt; Ut > St; Ut -= Tt) {
|
|
17364
|
+
const Yt = yt + (dt - Ut) * It, Pt = Ut % 2 == 0 | 0;
|
|
17365
|
+
if (Pt) {
|
|
17366
|
+
const wt = Yt + gt * (Yt == yt ? 0.8 : 0.35);
|
|
17367
|
+
Dt && Ue.fillText(Ut, ut * 0.85, wt), Gt && Ue.fillText(Ut, (Je ? at : Le.width) - ut * 0.1, wt), Ue.strokeStyle = SCALEY_LABEL_COLOR, Ue.setLineDash([2, 4]), Ue.lineDashOffset = 0;
|
|
17323
17368
|
} else
|
|
17324
17369
|
Ue.strokeStyle = SCALEY_MIDLINE_COLOR, Ue.setLineDash([2, 8]), Ue.lineDashOffset = 1;
|
|
17325
|
-
Ue.beginPath(), Ue.moveTo(Pe +
|
|
17370
|
+
Ue.beginPath(), Ue.moveTo(Pe + ut * Pt * Dt, ~~Yt + 0.5), Ue.lineTo(ht - ut * Pt * Gt, ~~Yt + 0.5), Ue.stroke();
|
|
17326
17371
|
}
|
|
17327
17372
|
Ue.restore();
|
|
17328
|
-
}, er = (
|
|
17329
|
-
const
|
|
17330
|
-
return isNaN(
|
|
17331
|
-
}, Xt = (
|
|
17332
|
-
const
|
|
17333
|
-
return [Ee +
|
|
17334
|
-
}, sr = (
|
|
17373
|
+
}, er = (ut, gt) => {
|
|
17374
|
+
const dt = Lt[ut] + (ut < Lt.length - 1 ? (Lt[ut + 1] - Lt[ut]) * gt : 0);
|
|
17375
|
+
return isNaN(dt) ? -1 / 0 : dt;
|
|
17376
|
+
}, Xt = (ut, gt = Jt) => gt * TAU * ((ut + rr) / Le.width) + this._spinAngle, Mt = (ut, gt, dt) => {
|
|
17377
|
+
const St = Re + gt * Ht, Tt = Xt(ut, dt);
|
|
17378
|
+
return [Ee + St * Math.cos(Tt), Ae + St * Math.sin(Tt)];
|
|
17379
|
+
}, sr = (ut, gt, dt, St, Tt) => {
|
|
17335
17380
|
Ue.beginPath();
|
|
17336
|
-
for (const
|
|
17337
|
-
const [Dt, Gt] = Z ? [Xt(
|
|
17338
|
-
Ue.moveTo(...
|
|
17339
|
-
}
|
|
17340
|
-
|
|
17341
|
-
}, nr = (
|
|
17342
|
-
let
|
|
17343
|
-
if (Xe == COLOR_GRADIENT && !
|
|
17344
|
-
|
|
17381
|
+
for (const It of ke && !Je ? [1, -1] : [Jt]) {
|
|
17382
|
+
const [Dt, Gt] = Z ? [Xt(ut, It), Xt(ut + dt, It)] : [];
|
|
17383
|
+
Ue.moveTo(...Mt(ut, gt, It)), Ue.lineTo(...Mt(ut, gt + St, It)), Z ? Ue.arc(Ee, Ae, Re + (gt + St) * Ht, Dt, Gt, It != 1) : Ue.lineTo(...Mt(ut + dt, gt + St, It)), Ue.lineTo(...Mt(ut + dt, gt, It)), Z && !Tt && Ue.arc(Ee, Ae, Re + gt * Ht, Gt, Dt, It == 1);
|
|
17384
|
+
}
|
|
17385
|
+
Ft(Tt), Ue.fill();
|
|
17386
|
+
}, nr = (ut = 0, gt = 0) => {
|
|
17387
|
+
let dt;
|
|
17388
|
+
if (Xe == COLOR_GRADIENT && !Qe || Ge == MODE_GRAPH)
|
|
17389
|
+
dt = De[lt];
|
|
17345
17390
|
else {
|
|
17346
|
-
const
|
|
17347
|
-
|
|
17391
|
+
const St = Xe == COLOR_BAR_INDEX ? gt % Nt : Bt.findLastIndex((Tt) => Y ? kt(ut) <= kt(Tt.level) : ut <= Tt.level);
|
|
17392
|
+
dt = Bt[St].color;
|
|
17348
17393
|
}
|
|
17349
|
-
Ue.fillStyle = Ue.strokeStyle =
|
|
17394
|
+
Ue.fillStyle = Ue.strokeStyle = dt;
|
|
17350
17395
|
};
|
|
17351
|
-
if (
|
|
17396
|
+
if (tt) {
|
|
17352
17397
|
if (Je && !qe) {
|
|
17353
|
-
const
|
|
17354
|
-
Ue.setTransform(
|
|
17398
|
+
const ut = at * (lt + jt), gt = jt ? -1 : 1;
|
|
17399
|
+
Ue.setTransform(gt, 0, 0, 1, ut, 0);
|
|
17355
17400
|
}
|
|
17356
|
-
if ((!Be || Ke) && (Be && (Ue.globalAlpha = this.bgAlpha), Ue.fillStyle = zt, (lt == 0 || !qe && !Ze) && Ue.fillRect(Pe,
|
|
17357
|
-
const
|
|
17358
|
-
|
|
17401
|
+
if ((!Be || Ke) && (Be && (Ue.globalAlpha = this.bgAlpha), Ue.fillStyle = zt, (lt == 0 || !qe && !Ze) && Ue.fillRect(Pe, yt - we, at, (Be && this.reflexAlpha == 1 ? Se : Te) + we), Ue.globalAlpha = 1), this.showScaleY && !K && !qe && (lt == 0 || !Ze) && ir(), Y ? (Ue.setLineDash([bt, mt]), Ue.lineWidth = Oe[0].width) : Ue.lineWidth = xe ? Math.min($e, Oe[0].width / 2) : $e, Ue.save(), !qe) {
|
|
17402
|
+
const ut = new Path2D();
|
|
17403
|
+
ut.rect(0, yt, Le.width, Se), Ue.clip(ut);
|
|
17359
17404
|
}
|
|
17360
17405
|
}
|
|
17361
|
-
let
|
|
17362
|
-
this._analyzer[lt].getFloatFrequencyData(
|
|
17406
|
+
let Lt = this._fftData[lt];
|
|
17407
|
+
this._analyzer[lt].getFloatFrequencyData(Lt), et && (Lt = Lt.map((ut, gt) => ut + Rt(this._binToFreq(gt)))), Ue.beginPath();
|
|
17363
17408
|
let Zt = [];
|
|
17364
|
-
for (let
|
|
17365
|
-
const
|
|
17366
|
-
let
|
|
17367
|
-
for (let
|
|
17368
|
-
|
|
17369
|
-
if (
|
|
17409
|
+
for (let ut = 0; ut < ar; ut++) {
|
|
17410
|
+
const gt = Oe[ut], { posX: dt, barCenter: St, width: Tt, freq: It, binLo: Dt, binHi: Gt, ratioLo: Ut, ratioHi: Yt } = gt;
|
|
17411
|
+
let Pt = Math.max(er(Dt, Ut), er(Gt, Yt));
|
|
17412
|
+
for (let Et = Dt + 1; Et < Gt; Et++)
|
|
17413
|
+
Lt[Et] > Pt && (Pt = Lt[Et]);
|
|
17414
|
+
if (Pt = this._normalizedB(Pt), gt.value[lt] = Pt, Vt += Pt, gt.peak[lt] > 0 && (gt.hold[lt]--, gt.hold[lt] < 0 && (gt.peak[lt] += gt.hold[lt] / (ot * ot / 2))), Pt >= gt.peak[lt] && (gt.peak[lt] = Pt, gt.hold[lt] = ot), !tt)
|
|
17370
17415
|
continue;
|
|
17371
|
-
K || V ? Ue.globalAlpha =
|
|
17372
|
-
const
|
|
17416
|
+
K || V ? Ue.globalAlpha = Pt : xe && (Ue.globalAlpha = je), nr(Pt, ut);
|
|
17417
|
+
const wt = K ? ft : Y ? kt(Pt) : Pt * ft | 0;
|
|
17373
17418
|
if (Ge == MODE_GRAPH) {
|
|
17374
|
-
const
|
|
17419
|
+
const Et = ut ? 0 : (this._normalizedB(Lt[Oe[1].binLo]) * ft + wt) / 2;
|
|
17375
17420
|
if (qe) {
|
|
17376
|
-
if (
|
|
17377
|
-
const
|
|
17378
|
-
Ue.lineTo(...
|
|
17421
|
+
if (ut == 0 && (Je && Ue.moveTo(...Mt(0, 0)), Ue.lineTo(...Mt(0, dt < 0 ? Et : wt))), dt >= 0) {
|
|
17422
|
+
const Ot = [dt, wt];
|
|
17423
|
+
Ue.lineTo(...Mt(...Ot)), Zt.push(Ot);
|
|
17379
17424
|
}
|
|
17380
17425
|
} else {
|
|
17381
|
-
if (
|
|
17426
|
+
if (ut == 0)
|
|
17382
17427
|
if (ke == -1 && !Je)
|
|
17383
|
-
Ue.moveTo(Pe,
|
|
17428
|
+
Ue.moveTo(Pe, Ct - (dt < Pe ? Et : wt));
|
|
17384
17429
|
else {
|
|
17385
|
-
const
|
|
17386
|
-
Ue.moveTo(Pe - $e,
|
|
17430
|
+
const Ot = Dt ? this._normalizedB(Lt[Dt - 1]) * ft : wt;
|
|
17431
|
+
Ue.moveTo(Pe - $e, Ct - Ot);
|
|
17387
17432
|
}
|
|
17388
|
-
(Je || ke != -1 ||
|
|
17433
|
+
(Je || ke != -1 || dt >= Pe) && Ue.lineTo(dt, Ct - wt);
|
|
17389
17434
|
}
|
|
17390
17435
|
} else if (Y) {
|
|
17391
17436
|
if (Ke && !Be && (lt == 0 || !Ze)) {
|
|
17392
|
-
const
|
|
17393
|
-
Ue.strokeStyle = LEDS_UNLIT_COLOR, Ue.globalAlpha = 1, At(
|
|
17437
|
+
const Et = Ue.globalAlpha;
|
|
17438
|
+
Ue.strokeStyle = LEDS_UNLIT_COLOR, Ue.globalAlpha = 1, At(St, yt, Ct), Ue.strokeStyle = Ue.fillStyle, Ue.globalAlpha = Et;
|
|
17394
17439
|
}
|
|
17395
|
-
if (
|
|
17396
|
-
const
|
|
17397
|
-
let
|
|
17398
|
-
for (let Wt = Nt - 1; Wt >=
|
|
17440
|
+
if (Qe) {
|
|
17441
|
+
const Et = K ? 0 : Bt.findLastIndex((Wt) => kt(Pt) <= kt(Wt.level));
|
|
17442
|
+
let Ot = Ct;
|
|
17443
|
+
for (let Wt = Nt - 1; Wt >= Et; Wt--) {
|
|
17399
17444
|
Ue.strokeStyle = Bt[Wt].color;
|
|
17400
|
-
let lr =
|
|
17401
|
-
At(
|
|
17445
|
+
let lr = Ct - (Wt == Et ? wt : kt(Bt[Wt].level));
|
|
17446
|
+
At(St, Ot, lr), Ot = lr - mt;
|
|
17402
17447
|
}
|
|
17403
17448
|
} else
|
|
17404
|
-
At(
|
|
17405
|
-
} else if (
|
|
17449
|
+
At(St, Ct, Ct - wt);
|
|
17450
|
+
} else if (dt >= Pe)
|
|
17406
17451
|
if (qe)
|
|
17407
|
-
sr(
|
|
17452
|
+
sr(dt, 0, Tt, wt, xe);
|
|
17408
17453
|
else if (Z) {
|
|
17409
|
-
const
|
|
17410
|
-
Ue.beginPath(), Ue.moveTo(
|
|
17454
|
+
const Et = Tt / 2, Ot = Ct + Et;
|
|
17455
|
+
Ue.beginPath(), Ue.moveTo(dt, Ot), Ue.lineTo(dt, Ot - wt), Ue.arc(St, Ot - wt, Et, PI, TAU), Ue.lineTo(dt + Tt, Ot), Ft(xe), Ue.fill();
|
|
17411
17456
|
} else {
|
|
17412
|
-
const
|
|
17413
|
-
Ue.beginPath(), Ue.rect(
|
|
17457
|
+
const Et = xe ? Ue.lineWidth : 0;
|
|
17458
|
+
Ue.beginPath(), Ue.rect(dt, Ct + Et, Tt, -wt - Et), Ft(xe), Ue.fill();
|
|
17414
17459
|
}
|
|
17415
|
-
const Kt =
|
|
17416
|
-
if (Kt > 0 && Ye && !
|
|
17417
|
-
if (xe && $e > 0 ? Ue.globalAlpha = 1 : V && (Ue.globalAlpha = Kt), (Xe == COLOR_BAR_LEVEL ||
|
|
17418
|
-
const
|
|
17419
|
-
|
|
17460
|
+
const Kt = gt.peak[lt];
|
|
17461
|
+
if (Kt > 0 && Ye && !ct && !K && dt >= Pe && dt < ht)
|
|
17462
|
+
if (xe && $e > 0 ? Ue.globalAlpha = 1 : V && (Ue.globalAlpha = Kt), (Xe == COLOR_BAR_LEVEL || Qe) && nr(Kt), Y) {
|
|
17463
|
+
const Et = kt(Kt);
|
|
17464
|
+
Et >= mt && Ue.fillRect(dt, Ct - Et, Tt, bt);
|
|
17420
17465
|
} else
|
|
17421
|
-
qe ? Ge != MODE_GRAPH && sr(
|
|
17466
|
+
qe ? Ge != MODE_GRAPH && sr(dt, Kt * ft, Tt, -2) : Ue.fillRect(dt, Ct - Kt * ft, Tt, 2);
|
|
17422
17467
|
}
|
|
17423
|
-
if (
|
|
17468
|
+
if (tt) {
|
|
17424
17469
|
if (Ue.globalAlpha = 1, Ge == MODE_GRAPH) {
|
|
17425
17470
|
if (nr(), qe && !Je) {
|
|
17426
17471
|
if (ke) {
|
|
17427
|
-
let
|
|
17428
|
-
for (;
|
|
17429
|
-
Ue.lineTo(...
|
|
17472
|
+
let ut;
|
|
17473
|
+
for (; ut = Zt.pop(); )
|
|
17474
|
+
Ue.lineTo(...Mt(...ut, -1));
|
|
17430
17475
|
}
|
|
17431
17476
|
Ue.closePath();
|
|
17432
17477
|
}
|
|
17433
17478
|
if ($e > 0 && Ue.stroke(), je > 0) {
|
|
17434
17479
|
if (qe) {
|
|
17435
|
-
const
|
|
17436
|
-
Ue.moveTo(...
|
|
17480
|
+
const ut = Je ? Xt(at >> 1) : 0, gt = Je ? Xt(at) : TAU;
|
|
17481
|
+
Ue.moveTo(...Mt(Je ? at >> 1 : 0, 0)), Ue.arc(Ee, Ae, Re, ut, gt, Je ? !jt : !0);
|
|
17437
17482
|
} else
|
|
17438
|
-
Ue.lineTo(
|
|
17483
|
+
Ue.lineTo(ht, Ct), Ue.lineTo(Pe, Ct);
|
|
17439
17484
|
Ue.globalAlpha = je, Ue.fill(), Ue.globalAlpha = 1;
|
|
17440
17485
|
}
|
|
17441
|
-
if ((
|
|
17442
|
-
let
|
|
17443
|
-
if (qe &&
|
|
17444
|
-
const
|
|
17445
|
-
|
|
17486
|
+
if ((ct || qe && Ye) && (Zt = [], Ue.beginPath(), Oe.forEach((ut, gt) => {
|
|
17487
|
+
let dt = ut.posX, St = ut.peak[lt], Tt = gt ? "lineTo" : "moveTo";
|
|
17488
|
+
if (qe && dt < 0) {
|
|
17489
|
+
const It = Oe[gt + 1];
|
|
17490
|
+
St = findY(dt, St, It.posX, It.peak[lt], 0), dt = 0;
|
|
17446
17491
|
}
|
|
17447
|
-
|
|
17448
|
-
}),
|
|
17449
|
-
let
|
|
17450
|
-
for (;
|
|
17451
|
-
Ue.lineTo(...
|
|
17492
|
+
St *= ft, ct ? (Ue[Tt](...qe ? Mt(dt, St) : [dt, Ct - St]), qe && ke && !Je && Zt.push([dt, St])) : St > 0 && sr(dt, St, 1, -2);
|
|
17493
|
+
}), ct)) {
|
|
17494
|
+
let ut;
|
|
17495
|
+
for (; ut = Zt.pop(); )
|
|
17496
|
+
Ue.lineTo(...Mt(...ut, -1));
|
|
17452
17497
|
Ue.lineWidth = 1, Ue.stroke();
|
|
17453
17498
|
}
|
|
17454
17499
|
}
|
|
17455
|
-
Ue.restore(), Je && !qe && Ue.setTransform(1, 0, 0, 1, 0, 0), (!Je && !Ze || lt) &&
|
|
17500
|
+
Ue.restore(), Je && !qe && Ue.setTransform(1, 0, 0, 1, 0, 0), (!Je && !Ze || lt) && _t(lt);
|
|
17456
17501
|
}
|
|
17457
17502
|
}
|
|
17458
|
-
if (qt(Vt / (ar << or - 1)),
|
|
17503
|
+
if (qt(Vt / (ar << or - 1)), tt && (ke && !qe && !Je && (Ue.setTransform(-1, 0, 0, 1, Le.width - Pe, 0), Ue.drawImage(Le, Pe, 0, Ee, Le.height, 0, 0, Ee, Le.height), Ue.setTransform(1, 0, 0, 1, 0, 0)), Ue.setLineDash([]), vt()), this.showFPS) {
|
|
17459
17504
|
const lt = it.height;
|
|
17460
17505
|
Ue.font = `bold ${lt}px ${FONT_FAMILY}`, Ue.fillStyle = FPS_COLOR, Ue.textAlign = "right", Ue.fillText(Math.round(ze), Le.width - lt, lt * 2);
|
|
17461
17506
|
}
|
|
@@ -18663,12 +18708,12 @@ const genearate = (C) => ({
|
|
|
18663
18708
|
adjustmentFilter: ke,
|
|
18664
18709
|
vignetteFilter: Ge,
|
|
18665
18710
|
noiseFilter: Be
|
|
18666
|
-
} = withFiltersHook(Ue), { blurRadius: qe = 0, vignette: Ke = 0, noise: Ye = 0 } = Ue,
|
|
18711
|
+
} = withFiltersHook(Ue), { blurRadius: qe = 0, vignette: Ke = 0, noise: Ye = 0 } = Ue, tt = 0.1;
|
|
18667
18712
|
React.useEffect(() => {
|
|
18668
18713
|
if (!isEmpty$1(je)) {
|
|
18669
18714
|
const Ze = map$1(je, (st) => {
|
|
18670
|
-
const { data: rt, width:
|
|
18671
|
-
return PIXI.Texture.fromBuffer(
|
|
18715
|
+
const { data: rt, width: Qe, height: at } = st, ht = new Uint8Array(rt);
|
|
18716
|
+
return PIXI.Texture.fromBuffer(ht, Qe, at);
|
|
18672
18717
|
}).map(
|
|
18673
18718
|
(st, rt) => ({
|
|
18674
18719
|
texture: st,
|
|
@@ -18682,12 +18727,12 @@ const genearate = (C) => ({
|
|
|
18682
18727
|
}), B(Je / 1e3), J.current.totalDuration = Je, J.current.totalFrames = je.length;
|
|
18683
18728
|
}
|
|
18684
18729
|
}, [Ae, je, ze]);
|
|
18685
|
-
const
|
|
18730
|
+
const et = () => {
|
|
18686
18731
|
Y.current && (Y.current.stop(), J.current.isPlaying = !1);
|
|
18687
18732
|
}, it = () => {
|
|
18688
18733
|
if (Y.current && xe.current) {
|
|
18689
18734
|
const ot = xe.current.time();
|
|
18690
|
-
let Ze = ot === 0 ? 0 : ot /
|
|
18735
|
+
let Ze = ot === 0 ? 0 : ot / tt;
|
|
18691
18736
|
Ze = isNaN(Ze) ? 0 : Ze;
|
|
18692
18737
|
const Je = J.current.totalFrames;
|
|
18693
18738
|
Ze = Ze > Je ? Je : Ze, Ze = Math.round(Ze), Ze >= Je ? (Y.current.gotoAndStop(0), J.current.isPlaying = !1) : (Y.current.currentFrame = Ze, J.current.isPlaying = !0);
|
|
@@ -18701,7 +18746,7 @@ const genearate = (C) => ({
|
|
|
18701
18746
|
if (K.current && Se.current && I > 0) {
|
|
18702
18747
|
const Ze = {
|
|
18703
18748
|
duration: Number(I),
|
|
18704
|
-
onInterrupt:
|
|
18749
|
+
onInterrupt: et,
|
|
18705
18750
|
onUpdate: it,
|
|
18706
18751
|
onUpdateParams: [we, Pe]
|
|
18707
18752
|
}, Je = Number(Te) - Number(Ie), st = Math.max(
|
|
@@ -18768,155 +18813,227 @@ const genearate = (C) => ({
|
|
|
18768
18813
|
}
|
|
18769
18814
|
);
|
|
18770
18815
|
}), PixiTextSprite = React.forwardRef((C, E) => {
|
|
18771
|
-
const B = useRef(
|
|
18816
|
+
const B = useRef(0), U = useRef(null), V = useRef(16), X = useRef(null), Y = useRef(null), K = useApp(), {
|
|
18772
18817
|
visible: J,
|
|
18773
18818
|
text: xe,
|
|
18774
18819
|
disabled: Z,
|
|
18775
18820
|
transformation: _e,
|
|
18776
18821
|
pointerdown: Se,
|
|
18777
|
-
onDobuleClick: Ee
|
|
18822
|
+
onDobuleClick: Ee,
|
|
18823
|
+
uniqueId: Ae,
|
|
18824
|
+
startAt: Ie,
|
|
18825
|
+
endAt: Te
|
|
18778
18826
|
} = C, {
|
|
18779
|
-
x:
|
|
18780
|
-
y:
|
|
18827
|
+
x: we,
|
|
18828
|
+
y: Pe,
|
|
18781
18829
|
/// font
|
|
18782
|
-
fontFamily:
|
|
18783
|
-
fontWeight:
|
|
18784
|
-
fontStyle:
|
|
18785
|
-
fontSize:
|
|
18786
|
-
fontVariant:
|
|
18830
|
+
fontFamily: Re = "Arial",
|
|
18831
|
+
fontWeight: Fe = "normal",
|
|
18832
|
+
fontStyle: Oe = "normal",
|
|
18833
|
+
fontSize: Le = 16,
|
|
18834
|
+
fontVariant: De = "normal",
|
|
18787
18835
|
// fill
|
|
18788
|
-
fill:
|
|
18836
|
+
fill: Ve = "black",
|
|
18789
18837
|
// stroke
|
|
18790
|
-
stroke:
|
|
18791
|
-
strokeThickness:
|
|
18838
|
+
stroke: Xe,
|
|
18839
|
+
strokeThickness: Ue = 0,
|
|
18792
18840
|
// drop shadow
|
|
18793
|
-
blurRadius:
|
|
18794
|
-
blurEnabled:
|
|
18795
|
-
dropShadowColor:
|
|
18796
|
-
dropShadow:
|
|
18797
|
-
dropShadowBlur:
|
|
18841
|
+
blurRadius: We = 0,
|
|
18842
|
+
blurEnabled: je = !1,
|
|
18843
|
+
dropShadowColor: ze = null,
|
|
18844
|
+
dropShadow: He = !1,
|
|
18845
|
+
dropShadowBlur: $e = 0,
|
|
18798
18846
|
// multiline
|
|
18799
|
-
wordWrapWidth:
|
|
18800
|
-
leading:
|
|
18801
|
-
letterSpacing:
|
|
18802
|
-
colorCorrection:
|
|
18847
|
+
wordWrapWidth: Ne = 5e7,
|
|
18848
|
+
leading: Me = 0,
|
|
18849
|
+
letterSpacing: ke,
|
|
18850
|
+
colorCorrection: Ge = {},
|
|
18851
|
+
backgroundColor: Be = "transparent",
|
|
18852
|
+
width: qe,
|
|
18853
|
+
height: Ke
|
|
18803
18854
|
} = _e, {
|
|
18804
|
-
temperatureFilter:
|
|
18805
|
-
sharpnessFilter:
|
|
18806
|
-
hueFilter:
|
|
18807
|
-
blurFilter:
|
|
18808
|
-
adjustmentFilter:
|
|
18809
|
-
} = withFiltersHook(
|
|
18810
|
-
|
|
18811
|
-
|
|
18812
|
-
},
|
|
18813
|
-
|
|
18855
|
+
temperatureFilter: Ye,
|
|
18856
|
+
sharpnessFilter: tt,
|
|
18857
|
+
hueFilter: et,
|
|
18858
|
+
blurFilter: it,
|
|
18859
|
+
adjustmentFilter: nt
|
|
18860
|
+
} = withFiltersHook(Ge), { blurRadius: ot = 0 } = Ge;
|
|
18861
|
+
useCustomEventListener(Events.FONTS_LOADED, () => {
|
|
18862
|
+
U.current && U.current.updateText && U.current.updateText(!0);
|
|
18863
|
+
}), React.useEffect(() => {
|
|
18864
|
+
V.current = Number(Le);
|
|
18865
|
+
}, [Le]);
|
|
18866
|
+
const Ze = ["italic", "oblique"].includes(Oe) ? Oe : void 0, Je = ["small-caps"].includes(De), st = [
|
|
18814
18867
|
"bold",
|
|
18815
18868
|
"bolder",
|
|
18816
18869
|
"lighter",
|
|
18817
18870
|
"100",
|
|
18818
18871
|
"200",
|
|
18819
18872
|
"300"
|
|
18820
|
-
].includes(
|
|
18821
|
-
fontFamily:
|
|
18822
|
-
fontSize:
|
|
18823
|
-
fill:
|
|
18873
|
+
].includes(Fe) ? Fe : void 0, rt = Number(ke) > 0 ? ke : void 0, Qe = Be === "transparent" ? null : PIXI.utils.string2hex(Be), at = React.useMemo(() => new PIXI.TextStyle({
|
|
18874
|
+
fontFamily: Re,
|
|
18875
|
+
fontSize: Le,
|
|
18876
|
+
fill: Ve || "white",
|
|
18824
18877
|
//[color, '#00ff99'], // gradient
|
|
18825
|
-
...
|
|
18826
|
-
stroke:
|
|
18827
|
-
strokeThickness:
|
|
18878
|
+
...Xe && Ue > 0 && {
|
|
18879
|
+
stroke: Xe,
|
|
18880
|
+
strokeThickness: Ue
|
|
18828
18881
|
},
|
|
18829
|
-
...
|
|
18830
|
-
fontStyle:
|
|
18882
|
+
...Ze && {
|
|
18883
|
+
fontStyle: Ze
|
|
18831
18884
|
},
|
|
18832
|
-
...
|
|
18833
|
-
fontVariant:
|
|
18885
|
+
...Je && {
|
|
18886
|
+
fontVariant: Je
|
|
18834
18887
|
},
|
|
18835
|
-
...
|
|
18836
|
-
fontWeight:
|
|
18888
|
+
...st && {
|
|
18889
|
+
fontWeight: st
|
|
18837
18890
|
},
|
|
18838
|
-
...
|
|
18839
|
-
...
|
|
18891
|
+
...rt && { letterSpacing: rt },
|
|
18892
|
+
...je && {
|
|
18840
18893
|
dropShadow: !0,
|
|
18841
|
-
dropShadowBlur: Number(
|
|
18842
|
-
dropShadowColor: (
|
|
18894
|
+
dropShadowBlur: Number(We),
|
|
18895
|
+
dropShadowColor: (ze == null ? void 0 : ze.toString()) || "black",
|
|
18843
18896
|
dropShadowAngle: 0.5235987755982988,
|
|
18844
18897
|
dropShadowDistance: 5
|
|
18845
18898
|
},
|
|
18846
|
-
...
|
|
18899
|
+
...He && {
|
|
18847
18900
|
dropShadow: !0,
|
|
18848
|
-
dropShadowBlur: Number(
|
|
18849
|
-
dropShadowColor: (
|
|
18901
|
+
dropShadowBlur: Number($e),
|
|
18902
|
+
dropShadowColor: (ze == null ? void 0 : ze.toString()) || "black",
|
|
18850
18903
|
dropShadowAngle: 0.5235987755982988,
|
|
18851
18904
|
dropShadowDistance: 5
|
|
18852
18905
|
},
|
|
18853
18906
|
wordWrap: !0,
|
|
18854
18907
|
breakWords: !0,
|
|
18855
|
-
wordWrapWidth:
|
|
18856
|
-
leading:
|
|
18908
|
+
wordWrapWidth: Ne || 500,
|
|
18909
|
+
leading: Me || 0
|
|
18857
18910
|
// lineHeight: lineHeight,
|
|
18858
18911
|
}), [
|
|
18859
|
-
|
|
18912
|
+
je,
|
|
18913
|
+
We,
|
|
18860
18914
|
Ve,
|
|
18861
|
-
Oe,
|
|
18862
|
-
Te,
|
|
18863
18915
|
Re,
|
|
18864
|
-
Pe,
|
|
18865
|
-
He,
|
|
18866
|
-
Ye,
|
|
18867
|
-
Qe,
|
|
18868
|
-
et,
|
|
18869
|
-
it,
|
|
18870
|
-
Ue,
|
|
18871
18916
|
Le,
|
|
18872
|
-
|
|
18917
|
+
Oe,
|
|
18918
|
+
Me,
|
|
18919
|
+
Ze,
|
|
18920
|
+
st,
|
|
18921
|
+
Je,
|
|
18922
|
+
rt,
|
|
18873
18923
|
ze,
|
|
18874
|
-
|
|
18875
|
-
|
|
18924
|
+
Xe,
|
|
18925
|
+
Ue,
|
|
18926
|
+
Ne,
|
|
18927
|
+
He,
|
|
18928
|
+
$e
|
|
18876
18929
|
]);
|
|
18877
18930
|
React.useEffect(() => {
|
|
18878
|
-
|
|
18931
|
+
X.current = {
|
|
18879
18932
|
..._e
|
|
18880
18933
|
};
|
|
18881
|
-
}, [_e])
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
|
|
18885
|
-
|
|
18934
|
+
}, [_e]), React.useImperativeHandle(
|
|
18935
|
+
E,
|
|
18936
|
+
() => ({
|
|
18937
|
+
setWordWrap: (pt, mt = { x: 1, y: 1 }) => {
|
|
18938
|
+
if (U.current) {
|
|
18939
|
+
U.current.style.wordWrapWidth = pt, U.current.dirty = !0;
|
|
18940
|
+
const bt = 1 / mt.x, _t = 1 / mt.y;
|
|
18941
|
+
U.current.scale.set(bt, _t), U.current.updateText(!0);
|
|
18942
|
+
}
|
|
18943
|
+
},
|
|
18944
|
+
setFontSizeAndTransform: (pt, mt, bt = { x: 1, y: 1 }) => {
|
|
18945
|
+
if (U.current) {
|
|
18946
|
+
U.current.style.wordWrapWidth = pt, U.current.style.fontSize = mt, U.current.dirty = !0;
|
|
18947
|
+
const _t = 1 / bt.x, vt = 1 / bt.y;
|
|
18948
|
+
U.current.scale.set(_t, vt), U.current.updateText(!0);
|
|
18949
|
+
}
|
|
18950
|
+
},
|
|
18951
|
+
resetScale: () => {
|
|
18952
|
+
U.current && U.current.scale.set(1, 1);
|
|
18953
|
+
}
|
|
18954
|
+
}),
|
|
18955
|
+
[Ae, Ie, Te]
|
|
18956
|
+
);
|
|
18957
|
+
const ht = React.useCallback(
|
|
18958
|
+
(pt, mt = { x: 1, y: 1 }) => {
|
|
18959
|
+
if (U.current) {
|
|
18960
|
+
U.current.style.wordWrapWidth = pt, U.current.dirty = !0;
|
|
18961
|
+
const bt = 1 / mt.x, _t = 1 / mt.y;
|
|
18962
|
+
U.current.scale.set(bt, _t), U.current.updateText(!0);
|
|
18963
|
+
}
|
|
18964
|
+
},
|
|
18965
|
+
[U.current]
|
|
18966
|
+
), ct = React.useCallback(
|
|
18967
|
+
(pt, mt, bt = { x: 1, y: 1 }) => {
|
|
18968
|
+
if (U.current) {
|
|
18969
|
+
U.current.style.wordWrapWidth = pt, U.current.style.fontSize = mt, U.current.dirty = !0;
|
|
18970
|
+
const _t = 1 / bt.x, vt = 1 / bt.y;
|
|
18971
|
+
U.current.scale.set(_t, vt), U.current.updateText(!0);
|
|
18972
|
+
}
|
|
18973
|
+
},
|
|
18974
|
+
[U.current, X.current]
|
|
18975
|
+
);
|
|
18976
|
+
React.useEffect(() => {
|
|
18977
|
+
if (Qe === null || Qe === 0)
|
|
18978
|
+
return;
|
|
18979
|
+
const pt = new PIXI.Graphics();
|
|
18980
|
+
pt.beginFill(Qe || 16724736), pt.drawRect(0, 0, qe, Ke), pt.endFill(), Y.current && (Y.current.texture = K.renderer.generateTexture(pt), Y.current.texture.update());
|
|
18981
|
+
}, [Qe, qe, Ke]);
|
|
18982
|
+
const ft = () => {
|
|
18983
|
+
const pt = (/* @__PURE__ */ new Date()).getTime();
|
|
18984
|
+
pt - B.current < 300 && Ee ? Ee() : Se && Se(), B.current = pt;
|
|
18985
|
+
}, xt = () => {
|
|
18886
18986
|
!Z && Ee && Ee();
|
|
18887
18987
|
};
|
|
18888
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
18988
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
18889
18989
|
AbstractContainer,
|
|
18890
18990
|
{
|
|
18891
18991
|
...C,
|
|
18892
18992
|
ref: E,
|
|
18893
18993
|
isText: !0,
|
|
18894
|
-
onDoubleClick:
|
|
18895
|
-
|
|
18896
|
-
|
|
18897
|
-
|
|
18898
|
-
|
|
18899
|
-
|
|
18900
|
-
|
|
18901
|
-
|
|
18902
|
-
|
|
18903
|
-
|
|
18904
|
-
|
|
18905
|
-
|
|
18906
|
-
|
|
18907
|
-
|
|
18908
|
-
|
|
18909
|
-
|
|
18910
|
-
|
|
18911
|
-
|
|
18912
|
-
|
|
18913
|
-
|
|
18914
|
-
|
|
18915
|
-
|
|
18916
|
-
|
|
18917
|
-
|
|
18918
|
-
|
|
18919
|
-
|
|
18994
|
+
onDoubleClick: xt,
|
|
18995
|
+
handleDragWordWrap: ht,
|
|
18996
|
+
handleDragFontSize: ct,
|
|
18997
|
+
children: [
|
|
18998
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
18999
|
+
Sprite,
|
|
19000
|
+
{
|
|
19001
|
+
texture: PIXI.Texture.WHITE,
|
|
19002
|
+
x: we,
|
|
19003
|
+
y: Pe,
|
|
19004
|
+
width: qe || 100,
|
|
19005
|
+
height: Ke || 100,
|
|
19006
|
+
anchor: 0.5,
|
|
19007
|
+
alpha: J && Qe ? 1 : 0,
|
|
19008
|
+
ref: Y
|
|
19009
|
+
}
|
|
19010
|
+
),
|
|
19011
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19012
|
+
Text,
|
|
19013
|
+
{
|
|
19014
|
+
style: at,
|
|
19015
|
+
x: we,
|
|
19016
|
+
y: Pe,
|
|
19017
|
+
anchor: 0.5,
|
|
19018
|
+
text: xe,
|
|
19019
|
+
alpha: J ? 1 : 0,
|
|
19020
|
+
...J && !Z && {
|
|
19021
|
+
interactive: !0,
|
|
19022
|
+
buttonMode: !0,
|
|
19023
|
+
pointerdown: ft
|
|
19024
|
+
},
|
|
19025
|
+
ref: U,
|
|
19026
|
+
filters: [
|
|
19027
|
+
Ye,
|
|
19028
|
+
tt,
|
|
19029
|
+
et,
|
|
19030
|
+
nt,
|
|
19031
|
+
// conditionally add blur filter
|
|
19032
|
+
...ot > 0 ? [it] : []
|
|
19033
|
+
]
|
|
19034
|
+
}
|
|
19035
|
+
)
|
|
19036
|
+
]
|
|
18920
19037
|
}
|
|
18921
19038
|
);
|
|
18922
19039
|
});
|
|
@@ -19053,8 +19170,8 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
|
|
|
19053
19170
|
temperatureFilter: qe,
|
|
19054
19171
|
sharpnessFilter: Ke,
|
|
19055
19172
|
hueFilter: Ye,
|
|
19056
|
-
blurFilter:
|
|
19057
|
-
adjustmentFilter:
|
|
19173
|
+
blurFilter: tt,
|
|
19174
|
+
adjustmentFilter: et,
|
|
19058
19175
|
vignetteFilter: it,
|
|
19059
19176
|
noiseFilter: nt
|
|
19060
19177
|
} = withFiltersHook(De), ot = _e || "", Ze = React.useMemo(() => {
|
|
@@ -19071,8 +19188,8 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
|
|
|
19071
19188
|
const Je = (at) => {
|
|
19072
19189
|
if (Y.current) {
|
|
19073
19190
|
if (Y.current.currentTime = Number(at), !ze.current) {
|
|
19074
|
-
const
|
|
19075
|
-
je.current && je.current.isActive() && J.current && J.current.isActive() && (
|
|
19191
|
+
const ht = Y.current, ct = ht.currentTime > 0 && !ht.paused && !ht.ended && ht.readyState > ht.HAVE_CURRENT_DATA;
|
|
19192
|
+
je.current && je.current.isActive() && J.current && J.current.isActive() && (ct || Y.current.play(), K.current.isPlaying = !0);
|
|
19076
19193
|
}
|
|
19077
19194
|
K.current.progress = 0;
|
|
19078
19195
|
}
|
|
@@ -19082,27 +19199,27 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
|
|
|
19082
19199
|
at.currentTime > 0 && !at.paused && !at.ended && at.readyState > at.HAVE_CURRENT_DATA && Y.current.pause(), K.current.isPlaying = !1, J.current && (K.current.progress = J.current.progress());
|
|
19083
19200
|
}
|
|
19084
19201
|
}, rt = () => {
|
|
19085
|
-
},
|
|
19086
|
-
var at,
|
|
19202
|
+
}, Qe = () => {
|
|
19203
|
+
var at, ht;
|
|
19087
19204
|
if (J.current && (K.current.progress = J.current.progress()), Y.current && J.current) {
|
|
19088
|
-
const
|
|
19089
|
-
Y.current.currentTime -
|
|
19090
|
-
),
|
|
19091
|
-
ze.current && U.current ? (Y.current.currentTime =
|
|
19205
|
+
const ct = Ae + ((at = J == null ? void 0 : J.current) == null ? void 0 : at.time()), ft = Math.abs(
|
|
19206
|
+
Y.current.currentTime - ct
|
|
19207
|
+
), xt = Y.current, pt = xt.currentTime > 0 && !xt.paused && !xt.ended && xt.readyState > xt.HAVE_CURRENT_DATA;
|
|
19208
|
+
ze.current && U.current ? (Y.current.currentTime = ct, U.current.update(), K.current.isPlaying = !1) : (pt !== K.current.isPlaying || !pt) && K.current.progress > 0.01 && K.current.progress < 0.99 ? (ht = je.current) != null && ht.isActive() && J.current && J.current.isActive() && (pt || Y.current.play(), K.current.isPlaying = !0) : ft > 0.3 && K.current.progress > 0.01 && K.current.progress < 0.99 && (Y.current.currentTime = ct);
|
|
19092
19209
|
}
|
|
19093
19210
|
};
|
|
19094
19211
|
return useEffect(() => {
|
|
19095
19212
|
let at = gsap$2.context(() => {
|
|
19096
19213
|
});
|
|
19097
19214
|
if (X.current && je.current) {
|
|
19098
|
-
const
|
|
19215
|
+
const ht = {
|
|
19099
19216
|
duration: Number(Ee) - Number(Se),
|
|
19100
19217
|
onStart: Je,
|
|
19101
19218
|
onComplete: st,
|
|
19102
19219
|
onStartParams: [Ae, Ie],
|
|
19103
19220
|
onCompleteParams: [],
|
|
19104
19221
|
onInterrupt: rt,
|
|
19105
|
-
onUpdate:
|
|
19222
|
+
onUpdate: Qe,
|
|
19106
19223
|
onUpdateParams: [Ae, Ie],
|
|
19107
19224
|
onPause: () => {
|
|
19108
19225
|
console.log("onPause video sprite pause", xe);
|
|
@@ -19124,7 +19241,7 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
|
|
|
19124
19241
|
J.current = gsap$2.to(
|
|
19125
19242
|
X.current,
|
|
19126
19243
|
// @ts-ignore
|
|
19127
|
-
|
|
19244
|
+
ht,
|
|
19128
19245
|
Ae
|
|
19129
19246
|
), je.current.add(J.current, Se);
|
|
19130
19247
|
});
|
|
@@ -19141,31 +19258,31 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
|
|
|
19141
19258
|
clearTimeout(at);
|
|
19142
19259
|
};
|
|
19143
19260
|
}, [Z]), React.useEffect(() => {
|
|
19144
|
-
const at = Math.round((Number(Ae) + Number.EPSILON) * 100) / 100,
|
|
19261
|
+
const at = Math.round((Number(Ae) + Number.EPSILON) * 100) / 100, ht = function() {
|
|
19145
19262
|
Y.current && (Y.current.currentTime = at, Y.current.muted = Z);
|
|
19146
|
-
},
|
|
19263
|
+
}, ct = function() {
|
|
19147
19264
|
K.current.isWaiting = !1, K.current.isStalled = !1;
|
|
19148
|
-
},
|
|
19265
|
+
}, ft = function() {
|
|
19149
19266
|
K.current.isWaiting = !0, K.current.isStalled = !1;
|
|
19150
|
-
},
|
|
19267
|
+
}, xt = function() {
|
|
19151
19268
|
K.current.isWaiting = !1, K.current.isStalled = !1;
|
|
19152
|
-
},
|
|
19269
|
+
}, pt = function() {
|
|
19153
19270
|
K.current.isWaiting = !1, K.current.isStalled = !0;
|
|
19154
|
-
},
|
|
19155
|
-
return PIXI.Texture.fromLoader(Ze,
|
|
19271
|
+
}, mt = Math.round((Number(Ae) + Number.EPSILON) * 100) / 100, bt = Math.round((Number(Ie) + Number.EPSILON) * 100) / 100, _t = `${ot}#t=${mt},${bt}`;
|
|
19272
|
+
return PIXI.Texture.fromLoader(Ze, _t, xe, {
|
|
19156
19273
|
pixiIdPrefix: xe,
|
|
19157
19274
|
resourceOptions: {
|
|
19158
19275
|
autoPlay: !1,
|
|
19159
19276
|
crossorigin: "Anonymus",
|
|
19160
19277
|
updateFPS: We ? Math.max(120, Number(We)) : 30
|
|
19161
19278
|
}
|
|
19162
|
-
}).then((
|
|
19163
|
-
|
|
19279
|
+
}).then((vt) => {
|
|
19280
|
+
vt && (U.current = vt, B(!0), Y.current = vt.baseTexture.resource.source, Y.current.id = xe, Y.current.addEventListener("loadedmetadata", ht), Y.current.addEventListener("ended", ct), Y.current.addEventListener("loadstart", ft), Y.current.addEventListener("canplaythrough", xt), Y.current.addEventListener("stalled", pt));
|
|
19164
19281
|
}), () => {
|
|
19165
|
-
Y.current && (Y.current.pause(), Y.current.removeEventListener("loadedmetadata",
|
|
19282
|
+
Y.current && (Y.current.pause(), Y.current.removeEventListener("loadedmetadata", ht), Y.current.removeEventListener("ended", ct), Y.current.removeEventListener("loadstart", ft), Y.current.removeEventListener(
|
|
19166
19283
|
"canplaythrough",
|
|
19167
|
-
|
|
19168
|
-
), Y.current.removeEventListener("stalled",
|
|
19284
|
+
xt
|
|
19285
|
+
), Y.current.removeEventListener("stalled", pt));
|
|
19169
19286
|
};
|
|
19170
19287
|
}, [ot, xe, Ae, Ie, Ze]), React.useEffect(() => {
|
|
19171
19288
|
const at = setTimeout(() => {
|
|
@@ -19199,9 +19316,9 @@ const debounce$1 = /* @__PURE__ */ getDefaultExportFromCjs(debounce_1), useDebou
|
|
|
19199
19316
|
qe,
|
|
19200
19317
|
Ke,
|
|
19201
19318
|
Ye,
|
|
19202
|
-
|
|
19319
|
+
et,
|
|
19203
19320
|
// conditionally add blur filter
|
|
19204
|
-
...ke > 0 ? [
|
|
19321
|
+
...ke > 0 ? [tt] : [],
|
|
19205
19322
|
// conditionally add vignette filter
|
|
19206
19323
|
...Ge > 0 ? [it] : [],
|
|
19207
19324
|
// conditionally add noise filter
|
|
@@ -19900,16 +20017,16 @@ var lottie$1 = { exports: {} };
|
|
|
19900
20017
|
Me[ke].ty === "gr" && $e(Me[ke].it);
|
|
19901
20018
|
}
|
|
19902
20019
|
function Ne(Me) {
|
|
19903
|
-
var ke, Ge, Be = Me.length, qe, Ke, Ye,
|
|
20020
|
+
var ke, Ge, Be = Me.length, qe, Ke, Ye, tt;
|
|
19904
20021
|
for (Ge = 0; Ge < Be; Ge += 1) {
|
|
19905
20022
|
if (ke = Me[Ge], ke.hasMask) {
|
|
19906
|
-
var
|
|
19907
|
-
for (Ke =
|
|
19908
|
-
if (
|
|
19909
|
-
|
|
20023
|
+
var et = ke.masksProperties;
|
|
20024
|
+
for (Ke = et.length, qe = 0; qe < Ke; qe += 1)
|
|
20025
|
+
if (et[qe].pt.k.i)
|
|
20026
|
+
et[qe].pt.k.c = et[qe].cl;
|
|
19910
20027
|
else
|
|
19911
|
-
for (
|
|
19912
|
-
|
|
20028
|
+
for (tt = et[qe].pt.k.length, Ye = 0; Ye < tt; Ye += 1)
|
|
20029
|
+
et[qe].pt.k[Ye].s && (et[qe].pt.k[Ye].s[0].c = et[qe].cl), et[qe].pt.k[Ye].e && (et[qe].pt.k[Ye].e[0].c = et[qe].cl);
|
|
19913
20030
|
}
|
|
19914
20031
|
ke.ty === 4 && $e(ke.shapes);
|
|
19915
20032
|
}
|
|
@@ -21296,18 +21413,18 @@ var lottie$1 = { exports: {} };
|
|
|
21296
21413
|
function _e(Me, ke, Ge) {
|
|
21297
21414
|
return !Ge && Ge !== 0 && (Ge = 1), Me === 1 && ke === 1 && Ge === 1 ? this : this._t(Me, 0, 0, 0, 0, ke, 0, 0, 0, 0, Ge, 0, 0, 0, 0, 1);
|
|
21298
21415
|
}
|
|
21299
|
-
function Se(Me, ke, Ge, Be, qe, Ke, Ye,
|
|
21300
|
-
return this.props[0] = Me, this.props[1] = ke, this.props[2] = Ge, this.props[3] = Be, this.props[4] = qe, this.props[5] = Ke, this.props[6] = Ye, this.props[7] =
|
|
21416
|
+
function Se(Me, ke, Ge, Be, qe, Ke, Ye, tt, et, it, nt, ot, Ze, Je, st, rt) {
|
|
21417
|
+
return this.props[0] = Me, this.props[1] = ke, this.props[2] = Ge, this.props[3] = Be, this.props[4] = qe, this.props[5] = Ke, this.props[6] = Ye, this.props[7] = tt, this.props[8] = et, this.props[9] = it, this.props[10] = nt, this.props[11] = ot, this.props[12] = Ze, this.props[13] = Je, this.props[14] = st, this.props[15] = rt, this;
|
|
21301
21418
|
}
|
|
21302
21419
|
function Ee(Me, ke, Ge) {
|
|
21303
21420
|
return Ge = Ge || 0, Me !== 0 || ke !== 0 || Ge !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, Me, ke, Ge, 1) : this;
|
|
21304
21421
|
}
|
|
21305
|
-
function Ae(Me, ke, Ge, Be, qe, Ke, Ye,
|
|
21306
|
-
var
|
|
21307
|
-
if (Me === 1 && ke === 0 && Ge === 0 && Be === 0 && qe === 0 && Ke === 1 && Ye === 0 &&
|
|
21308
|
-
return
|
|
21309
|
-
var at =
|
|
21310
|
-
return
|
|
21422
|
+
function Ae(Me, ke, Ge, Be, qe, Ke, Ye, tt, et, it, nt, ot, Ze, Je, st, rt) {
|
|
21423
|
+
var Qe = this.props;
|
|
21424
|
+
if (Me === 1 && ke === 0 && Ge === 0 && Be === 0 && qe === 0 && Ke === 1 && Ye === 0 && tt === 0 && et === 0 && it === 0 && nt === 1 && ot === 0)
|
|
21425
|
+
return Qe[12] = Qe[12] * Me + Qe[15] * Ze, Qe[13] = Qe[13] * Ke + Qe[15] * Je, Qe[14] = Qe[14] * nt + Qe[15] * st, Qe[15] *= rt, this._identityCalculated = !1, this;
|
|
21426
|
+
var at = Qe[0], ht = Qe[1], ct = Qe[2], ft = Qe[3], xt = Qe[4], pt = Qe[5], mt = Qe[6], bt = Qe[7], _t = Qe[8], vt = Qe[9], Rt = Qe[10], At = Qe[11], Ft = Qe[12], kt = Qe[13], qt = Qe[14], Vt = Qe[15];
|
|
21427
|
+
return Qe[0] = at * Me + ht * qe + ct * et + ft * Ze, Qe[1] = at * ke + ht * Ke + ct * it + ft * Je, Qe[2] = at * Ge + ht * Ye + ct * nt + ft * st, Qe[3] = at * Be + ht * tt + ct * ot + ft * rt, Qe[4] = xt * Me + pt * qe + mt * et + bt * Ze, Qe[5] = xt * ke + pt * Ke + mt * it + bt * Je, Qe[6] = xt * Ge + pt * Ye + mt * nt + bt * st, Qe[7] = xt * Be + pt * tt + mt * ot + bt * rt, Qe[8] = _t * Me + vt * qe + Rt * et + At * Ze, Qe[9] = _t * ke + vt * Ke + Rt * it + At * Je, Qe[10] = _t * Ge + vt * Ye + Rt * nt + At * st, Qe[11] = _t * Be + vt * tt + Rt * ot + At * rt, Qe[12] = Ft * Me + kt * qe + qt * et + Vt * Ze, Qe[13] = Ft * ke + kt * Ke + qt * it + Vt * Je, Qe[14] = Ft * Ge + kt * Ye + qt * nt + Vt * st, Qe[15] = Ft * Be + kt * tt + qt * ot + Vt * rt, this._identityCalculated = !1, this;
|
|
21311
21428
|
}
|
|
21312
21429
|
function Ie(Me) {
|
|
21313
21430
|
var ke = Me.props;
|
|
@@ -21352,8 +21469,8 @@ var lottie$1 = { exports: {} };
|
|
|
21352
21469
|
return Me * this.props[2] + ke * this.props[6] + Ge * this.props[10] + this.props[14];
|
|
21353
21470
|
}
|
|
21354
21471
|
function Ve() {
|
|
21355
|
-
var Me = this.props[0] * this.props[5] - this.props[1] * this.props[4], ke = this.props[5] / Me, Ge = -this.props[1] / Me, Be = -this.props[4] / Me, qe = this.props[0] / Me, Ke = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / Me, Ye = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / Me,
|
|
21356
|
-
return
|
|
21472
|
+
var Me = this.props[0] * this.props[5] - this.props[1] * this.props[4], ke = this.props[5] / Me, Ge = -this.props[1] / Me, Be = -this.props[4] / Me, qe = this.props[0] / Me, Ke = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / Me, Ye = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / Me, tt = new Matrix();
|
|
21473
|
+
return tt.props[0] = ke, tt.props[1] = Ge, tt.props[4] = Be, tt.props[5] = qe, tt.props[12] = Ke, tt.props[13] = Ye, tt;
|
|
21357
21474
|
}
|
|
21358
21475
|
function Xe(Me) {
|
|
21359
21476
|
var ke = this.getInverseMatrix();
|
|
@@ -21370,8 +21487,8 @@ var lottie$1 = { exports: {} };
|
|
|
21370
21487
|
if (this.isIdentity())
|
|
21371
21488
|
Be[0] = Me[0], Be[1] = Me[1], Be[2] = ke[0], Be[3] = ke[1], Be[4] = Ge[0], Be[5] = Ge[1];
|
|
21372
21489
|
else {
|
|
21373
|
-
var qe = this.props[0], Ke = this.props[1], Ye = this.props[4],
|
|
21374
|
-
Be[0] = Me[0] * qe + Me[1] * Ye +
|
|
21490
|
+
var qe = this.props[0], Ke = this.props[1], Ye = this.props[4], tt = this.props[5], et = this.props[12], it = this.props[13];
|
|
21491
|
+
Be[0] = Me[0] * qe + Me[1] * Ye + et, Be[1] = Me[0] * Ke + Me[1] * tt + it, Be[2] = ke[0] * qe + ke[1] * Ye + et, Be[3] = ke[0] * Ke + ke[1] * tt + it, Be[4] = Ge[0] * qe + Ge[1] * Ye + et, Be[5] = Ge[0] * Ke + Ge[1] * tt + it;
|
|
21375
21492
|
}
|
|
21376
21493
|
return Be;
|
|
21377
21494
|
}
|
|
@@ -22294,15 +22411,15 @@ var lottie$1 = { exports: {} };
|
|
|
22294
22411
|
Me[ke].loaded = !0, Be -= 1;
|
|
22295
22412
|
else if (Me[ke].fOrigin === "p" || Me[ke].origin === 3) {
|
|
22296
22413
|
if (Ke = document.querySelectorAll('style[f-forigin="p"][f-family="' + Me[ke].fFamily + '"], style[f-origin="3"][f-family="' + Me[ke].fFamily + '"]'), Ke.length > 0 && (qe = !1), qe) {
|
|
22297
|
-
var
|
|
22298
|
-
|
|
22414
|
+
var tt = createTag("style");
|
|
22415
|
+
tt.setAttribute("f-forigin", Me[ke].fOrigin), tt.setAttribute("f-origin", Me[ke].origin), tt.setAttribute("f-family", Me[ke].fFamily), tt.type = "text/css", tt.innerText = "@font-face {font-family: " + Me[ke].fFamily + "; font-style: normal; src: url('" + Me[ke].fPath + "');}", Ne.appendChild(tt);
|
|
22299
22416
|
}
|
|
22300
22417
|
} else if (Me[ke].fOrigin === "g" || Me[ke].origin === 1) {
|
|
22301
22418
|
for (Ke = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), Ye = 0; Ye < Ke.length; Ye += 1)
|
|
22302
22419
|
Ke[Ye].href.indexOf(Me[ke].fPath) !== -1 && (qe = !1);
|
|
22303
22420
|
if (qe) {
|
|
22304
|
-
var
|
|
22305
|
-
|
|
22421
|
+
var et = createTag("link");
|
|
22422
|
+
et.setAttribute("f-forigin", Me[ke].fOrigin), et.setAttribute("f-origin", Me[ke].origin), et.type = "text/css", et.rel = "stylesheet", et.href = Me[ke].fPath, document.body.appendChild(et);
|
|
22306
22423
|
}
|
|
22307
22424
|
} else if (Me[ke].fOrigin === "t" || Me[ke].origin === 2) {
|
|
22308
22425
|
for (Ke = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), Ye = 0; Ye < Ke.length; Ye += 1)
|
|
@@ -23815,25 +23932,25 @@ var lottie$1 = { exports: {} };
|
|
|
23815
23932
|
Z = _e.length, K = 0, J = 0;
|
|
23816
23933
|
var ze = C.finalSize * 1.2 * 0.714, He = !0, $e, Ne, Me, ke, Ge;
|
|
23817
23934
|
ke = B.length;
|
|
23818
|
-
var Be, qe = -1, Ke, Ye,
|
|
23935
|
+
var Be, qe = -1, Ke, Ye, tt, et = Ee, it = Pe, nt = we, ot = -1, Ze, Je, st, rt, Qe, at, ht, ct, ft = "", xt = this.defaultPropsArray, pt;
|
|
23819
23936
|
if (C.j === 2 || C.j === 1) {
|
|
23820
|
-
var
|
|
23937
|
+
var mt = 0, bt = 0, _t = C.j === 2 ? -0.5 : -1, vt = 0, Rt = !0;
|
|
23821
23938
|
for (xe = 0; xe < Z; xe += 1)
|
|
23822
23939
|
if (_e[xe].n) {
|
|
23823
|
-
for (
|
|
23824
|
-
_e[
|
|
23825
|
-
|
|
23940
|
+
for (mt && (mt += bt); vt < xe; )
|
|
23941
|
+
_e[vt].animatorJustifyOffset = mt, vt += 1;
|
|
23942
|
+
mt = 0, Rt = !0;
|
|
23826
23943
|
} else {
|
|
23827
23944
|
for (Me = 0; Me < ke; Me += 1)
|
|
23828
|
-
$e = B[Me].a, $e.t.propType && (
|
|
23829
|
-
|
|
23945
|
+
$e = B[Me].a, $e.t.propType && (Rt && C.j === 2 && (bt += $e.t.v * _t), Ne = B[Me].s, Be = Ne.getMult(_e[xe].anIndexes[Me], U.a[Me].s.totalChars), Be.length ? mt += $e.t.v * Be[0] * _t : mt += $e.t.v * Be * _t);
|
|
23946
|
+
Rt = !1;
|
|
23830
23947
|
}
|
|
23831
|
-
for (
|
|
23832
|
-
_e[
|
|
23948
|
+
for (mt && (mt += bt); vt < xe; )
|
|
23949
|
+
_e[vt].animatorJustifyOffset = mt, vt += 1;
|
|
23833
23950
|
}
|
|
23834
23951
|
for (xe = 0; xe < Z; xe += 1) {
|
|
23835
23952
|
if (V.reset(), Ze = 1, _e[xe].n)
|
|
23836
|
-
K = 0, J += C.yOffset, J += He ? 1 : 0, Ee =
|
|
23953
|
+
K = 0, J += C.yOffset, J += He ? 1 : 0, Ee = et, He = !1, this._hasMaskedPath && (Pe = it, we = nt, Fe = Oe[Pe].points, Re = Fe[we - 1], Ae = Fe[we], Le = Ae.partialLength, Ie = 0), ft = "", ct = "", at = "", pt = "", xt = this.defaultPropsArray;
|
|
23837
23954
|
else {
|
|
23838
23955
|
if (this._hasMaskedPath) {
|
|
23839
23956
|
if (ot !== _e[xe].line) {
|
|
@@ -23852,7 +23969,7 @@ var lottie$1 = { exports: {} };
|
|
|
23852
23969
|
for (Me = 0; Me < ke; Me += 1)
|
|
23853
23970
|
$e = B[Me].a, $e.p.propType && (Ne = B[Me].s, Be = Ne.getMult(_e[xe].anIndexes[Me], U.a[Me].s.totalChars), Be.length ? At += $e.p.v[0] * Be[0] : At += $e.p.v[0] * Be), $e.a.propType && (Ne = B[Me].s, Be = Ne.getMult(_e[xe].anIndexes[Me], U.a[Me].s.totalChars), Be.length ? At += $e.a.v[0] * Be[0] : At += $e.a.v[0] * Be);
|
|
23854
23971
|
for (Te = !0, this._pathData.a.v && (Ee = _e[0].an * 0.5 + (De - this._pathData.f.v - _e[0].an * 0.5 - _e[_e.length - 1].an * 0.5) * qe / (Z - 1), Ee += this._pathData.f.v); Te; )
|
|
23855
|
-
Ie + Le >= Ee + At || !Fe ? (Ve = (Ee + At - Ie) / Ae.partialLength, Ye = Re.point[0] + (Ae.point[0] - Re.point[0]) * Ve,
|
|
23972
|
+
Ie + Le >= Ee + At || !Fe ? (Ve = (Ee + At - Ie) / Ae.partialLength, Ye = Re.point[0] + (Ae.point[0] - Re.point[0]) * Ve, tt = Re.point[1] + (Ae.point[1] - Re.point[1]) * Ve, V.translate(-I[0] * _e[xe].an * 5e-3, -(I[1] * ze) * 0.01), Te = !1) : Fe && (Ie += Ae.partialLength, we += 1, we >= Fe.length && (we = 0, Pe += 1, Oe[Pe] ? Fe = Oe[Pe].points : Ue.v.c ? (we = 0, Pe = 0, Fe = Oe[Pe].points) : (Ie -= Ae.partialLength, Fe = null)), Fe && (Re = Ae, Ae = Fe[we], Le = Ae.partialLength));
|
|
23856
23973
|
Ke = _e[xe].an / 2 - _e[xe].add, V.translate(-Ke, 0, 0);
|
|
23857
23974
|
} else
|
|
23858
23975
|
Ke = _e[xe].an / 2 - _e[xe].add, V.translate(-Ke, 0, 0), V.translate(-I[0] * _e[xe].an * 5e-3, -I[1] * ze * 0.01, 0);
|
|
@@ -23864,24 +23981,24 @@ var lottie$1 = { exports: {} };
|
|
|
23864
23981
|
$e = B[Me].a, $e.s.propType && (Ne = B[Me].s, Be = Ne.getMult(_e[xe].anIndexes[Me], U.a[Me].s.totalChars), Be.length ? V.scale(1 + ($e.s.v[0] - 1) * Be[0], 1 + ($e.s.v[1] - 1) * Be[1], 1) : V.scale(1 + ($e.s.v[0] - 1) * Be, 1 + ($e.s.v[1] - 1) * Be, 1));
|
|
23865
23982
|
for (Me = 0; Me < ke; Me += 1) {
|
|
23866
23983
|
if ($e = B[Me].a, Ne = B[Me].s, Be = Ne.getMult(_e[xe].anIndexes[Me], U.a[Me].s.totalChars), $e.sk.propType && (Be.length ? V.skewFromAxis(-$e.sk.v * Be[0], $e.sa.v * Be[1]) : V.skewFromAxis(-$e.sk.v * Be, $e.sa.v * Be)), $e.r.propType && (Be.length ? V.rotateZ(-$e.r.v * Be[2]) : V.rotateZ(-$e.r.v * Be)), $e.ry.propType && (Be.length ? V.rotateY($e.ry.v * Be[1]) : V.rotateY($e.ry.v * Be)), $e.rx.propType && (Be.length ? V.rotateX($e.rx.v * Be[0]) : V.rotateX($e.rx.v * Be)), $e.o.propType && (Be.length ? Ze += ($e.o.v * Be[0] - Ze) * Be[0] : Ze += ($e.o.v * Be - Ze) * Be), C.strokeWidthAnim && $e.sw.propType && (Be.length ? st += $e.sw.v * Be[0] : st += $e.sw.v * Be), C.strokeColorAnim && $e.sc.propType)
|
|
23867
|
-
for (
|
|
23868
|
-
Be.length ? Je[
|
|
23984
|
+
for (Qe = 0; Qe < 3; Qe += 1)
|
|
23985
|
+
Be.length ? Je[Qe] += ($e.sc.v[Qe] - Je[Qe]) * Be[0] : Je[Qe] += ($e.sc.v[Qe] - Je[Qe]) * Be;
|
|
23869
23986
|
if (C.fillColorAnim && C.fc) {
|
|
23870
23987
|
if ($e.fc.propType)
|
|
23871
|
-
for (
|
|
23872
|
-
Be.length ? rt[
|
|
23988
|
+
for (Qe = 0; Qe < 3; Qe += 1)
|
|
23989
|
+
Be.length ? rt[Qe] += ($e.fc.v[Qe] - rt[Qe]) * Be[0] : rt[Qe] += ($e.fc.v[Qe] - rt[Qe]) * Be;
|
|
23873
23990
|
$e.fh.propType && (Be.length ? rt = addHueToRGB(rt, $e.fh.v * Be[0]) : rt = addHueToRGB(rt, $e.fh.v * Be)), $e.fs.propType && (Be.length ? rt = addSaturationToRGB(rt, $e.fs.v * Be[0]) : rt = addSaturationToRGB(rt, $e.fs.v * Be)), $e.fb.propType && (Be.length ? rt = addBrightnessToRGB(rt, $e.fb.v * Be[0]) : rt = addBrightnessToRGB(rt, $e.fb.v * Be));
|
|
23874
23991
|
}
|
|
23875
23992
|
}
|
|
23876
23993
|
for (Me = 0; Me < ke; Me += 1)
|
|
23877
23994
|
$e = B[Me].a, $e.p.propType && (Ne = B[Me].s, Be = Ne.getMult(_e[xe].anIndexes[Me], U.a[Me].s.totalChars), this._hasMaskedPath ? Be.length ? V.translate(0, $e.p.v[1] * Be[0], -$e.p.v[2] * Be[1]) : V.translate(0, $e.p.v[1] * Be, -$e.p.v[2] * Be) : Be.length ? V.translate($e.p.v[0] * Be[0], $e.p.v[1] * Be[1], -$e.p.v[2] * Be[2]) : V.translate($e.p.v[0] * Be, $e.p.v[1] * Be, -$e.p.v[2] * Be));
|
|
23878
|
-
if (C.strokeWidthAnim && (at = st < 0 ? 0 : st), C.strokeColorAnim && (
|
|
23995
|
+
if (C.strokeWidthAnim && (at = st < 0 ? 0 : st), C.strokeColorAnim && (ht = "rgb(" + Math.round(Je[0] * 255) + "," + Math.round(Je[1] * 255) + "," + Math.round(Je[2] * 255) + ")"), C.fillColorAnim && C.fc && (ct = "rgb(" + Math.round(rt[0] * 255) + "," + Math.round(rt[1] * 255) + "," + Math.round(rt[2] * 255) + ")"), this._hasMaskedPath) {
|
|
23879
23996
|
if (V.translate(0, -C.ls), V.translate(0, I[1] * ze * 0.01 + J, 0), this._pathData.p.v) {
|
|
23880
23997
|
Xe = (Ae.point[1] - Re.point[1]) / (Ae.point[0] - Re.point[0]);
|
|
23881
|
-
var
|
|
23882
|
-
Ae.point[0] < Re.point[0] && (
|
|
23998
|
+
var Ft = Math.atan(Xe) * 180 / Math.PI;
|
|
23999
|
+
Ae.point[0] < Re.point[0] && (Ft += 180), V.rotate(-Ft * Math.PI / 180);
|
|
23883
24000
|
}
|
|
23884
|
-
V.translate(Ye,
|
|
24001
|
+
V.translate(Ye, tt, 0), Ee -= I[0] * _e[xe].an * 5e-3, _e[xe + 1] && qe !== _e[xe + 1].ind && (Ee += _e[xe].an / 2, Ee += C.tr * 1e-3 * C.finalSize);
|
|
23885
24002
|
} else {
|
|
23886
24003
|
switch (V.translate(K, J, 0), C.ps && V.translate(C.ps[0], C.ps[1] + C.ascent, 0), C.j) {
|
|
23887
24004
|
case 1:
|
|
@@ -23893,9 +24010,9 @@ var lottie$1 = { exports: {} };
|
|
|
23893
24010
|
}
|
|
23894
24011
|
V.translate(0, -C.ls), V.translate(Ke, 0, 0), V.translate(I[0] * _e[xe].an * 5e-3, I[1] * ze * 0.01, 0), K += _e[xe].l + C.tr * 1e-3 * C.finalSize;
|
|
23895
24012
|
}
|
|
23896
|
-
X === "html" ?
|
|
24013
|
+
X === "html" ? ft = V.toCSS() : X === "svg" ? ft = V.to2dCSS() : xt = [V.props[0], V.props[1], V.props[2], V.props[3], V.props[4], V.props[5], V.props[6], V.props[7], V.props[8], V.props[9], V.props[10], V.props[11], V.props[12], V.props[13], V.props[14], V.props[15]], pt = Ze;
|
|
23897
24014
|
}
|
|
23898
|
-
Y <= xe ? (Ge = new LetterProps(
|
|
24015
|
+
Y <= xe ? (Ge = new LetterProps(pt, at, ht, ct, ft, xt), this.renderedLetters.push(Ge), Y += 1, this.lettersChangedFlag = !0) : (Ge = this.renderedLetters[xe], this.lettersChangedFlag = Ge.update(pt, at, ht, ct, ft, xt) || this.lettersChangedFlag);
|
|
23899
24016
|
}
|
|
23900
24017
|
}
|
|
23901
24018
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -27107,8 +27224,8 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
|
|
|
27107
27224
|
temperatureFilter: qe,
|
|
27108
27225
|
sharpnessFilter: Ke,
|
|
27109
27226
|
hueFilter: Ye,
|
|
27110
|
-
blurFilter:
|
|
27111
|
-
adjustmentFilter:
|
|
27227
|
+
blurFilter: tt,
|
|
27228
|
+
adjustmentFilter: et,
|
|
27112
27229
|
vignetteFilter: it,
|
|
27113
27230
|
noiseFilter: nt
|
|
27114
27231
|
} = withFiltersHook(Ue);
|
|
@@ -27140,8 +27257,8 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
|
|
|
27140
27257
|
Z.current.totalFrames = Je;
|
|
27141
27258
|
const st = J.current.getDuration();
|
|
27142
27259
|
Z.current.totalDuration = st;
|
|
27143
|
-
const rt = J.current.renderer.canvasContext.canvas,
|
|
27144
|
-
_e.current =
|
|
27260
|
+
const rt = J.current.renderer.canvasContext.canvas, Qe = PIXI.Texture.from(rt);
|
|
27261
|
+
_e.current = Qe, V(!0), B(st);
|
|
27145
27262
|
}
|
|
27146
27263
|
}), J.current.addEventListener("loaded_images", () => {
|
|
27147
27264
|
}), J.current.addEventListener("complete", () => {
|
|
@@ -27161,8 +27278,8 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
|
|
|
27161
27278
|
const ot = (Ze) => {
|
|
27162
27279
|
if (J.current && X.current && xe.current) {
|
|
27163
27280
|
const st = Ze(xe.current.time()) / xe.current.duration() * Z.current.totalFrames, rt = Z.current.totalFrames;
|
|
27164
|
-
let
|
|
27165
|
-
|
|
27281
|
+
let Qe = st;
|
|
27282
|
+
Qe = Math.round(Math.floor(Qe)), Qe >= rt ? (J.current.goToAndStop(0, !0), _e.current && _e.current.update(), Z.current.isPlaying = !1) : (J.current.goToAndStop(Qe, !0), _e.current && _e.current.update(), Z.current.isPlaying = !0);
|
|
27166
27283
|
}
|
|
27167
27284
|
};
|
|
27168
27285
|
return React.useEffect(() => {
|
|
@@ -27219,9 +27336,9 @@ const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports), initialSt
|
|
|
27219
27336
|
qe,
|
|
27220
27337
|
Ke,
|
|
27221
27338
|
Ye,
|
|
27222
|
-
|
|
27339
|
+
et,
|
|
27223
27340
|
// conditionally add blur filter
|
|
27224
|
-
...ke > 0 ? [
|
|
27341
|
+
...ke > 0 ? [tt] : [],
|
|
27225
27342
|
// conditionally add vignette filter
|
|
27226
27343
|
...Ge > 0 ? [it] : [],
|
|
27227
27344
|
// conditionally add noise filter
|