@zydon/common 1.1.77 → 1.1.78
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/components/animate/index.d.ts +0 -1
- package/dist/components/animate/index.d.ts.map +1 -1
- package/dist/{features-e3ff8180.js → features-1203c748.js} +1 -1
- package/dist/{index-8759a880.js → index-e197ae14.js} +2214 -2214
- package/dist/index.js +40 -41
- package/dist/index.umd.cjs +24 -24
- package/package.json +1 -1
|
@@ -497,2218 +497,2219 @@ const _y = {
|
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
}), Gs = ja({}), Bc = ja(null), eg = typeof document < "u", qs = eg ? Us : Ze, zc = ja({ strict: !1 });
|
|
505
|
-
function ky(e, t, r, n) {
|
|
506
|
-
const { visualElement: a } = qt(Gs), i = qt(zc), o = qt(Bc), s = qt(J1).reducedMotion, u = Oe();
|
|
507
|
-
n = n || i.renderer, !u.current && n && (u.current = n(e, {
|
|
508
|
-
visualState: t,
|
|
509
|
-
parent: a,
|
|
510
|
-
props: r,
|
|
511
|
-
presenceContext: o,
|
|
512
|
-
blockInitialAnimation: o ? o.initial === !1 : !1,
|
|
513
|
-
reducedMotionConfig: s
|
|
514
|
-
}));
|
|
515
|
-
const l = u.current;
|
|
516
|
-
j1(() => {
|
|
517
|
-
l && l.update(r, o);
|
|
518
|
-
});
|
|
519
|
-
const c = Oe(!!window.HandoffAppearAnimations);
|
|
520
|
-
return qs(() => {
|
|
521
|
-
l && (l.render(), c.current && l.animationState && l.animationState.animateChanges());
|
|
522
|
-
}), Ze(() => {
|
|
523
|
-
l && (l.updateFeatures(), !c.current && l.animationState && l.animationState.animateChanges(), window.HandoffAppearAnimations = void 0, c.current = !1);
|
|
524
|
-
}), l;
|
|
525
|
-
}
|
|
526
|
-
function Ty(e) {
|
|
527
|
-
return typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
528
|
-
}
|
|
529
|
-
function Oy(e, t, r) {
|
|
530
|
-
return xt(
|
|
531
|
-
(n) => {
|
|
532
|
-
n && e.mount && e.mount(n), t && (n ? t.mount(n) : t.unmount()), r && (typeof r == "function" ? r(n) : Ty(r) && (r.current = n));
|
|
533
|
-
},
|
|
534
|
-
/**
|
|
535
|
-
* Only pass a new ref callback to React if we've received a visual element
|
|
536
|
-
* factory. Otherwise we'll be mounting/remounting every time externalRef
|
|
537
|
-
* or other dependencies change.
|
|
538
|
-
*/
|
|
539
|
-
[t]
|
|
540
|
-
);
|
|
541
|
-
}
|
|
542
|
-
function Pu(e) {
|
|
543
|
-
return typeof e == "string" || Array.isArray(e);
|
|
544
|
-
}
|
|
545
|
-
function tg(e) {
|
|
546
|
-
return typeof e == "object" && typeof e.start == "function";
|
|
547
|
-
}
|
|
548
|
-
const My = [
|
|
549
|
-
"animate",
|
|
550
|
-
"whileInView",
|
|
551
|
-
"whileFocus",
|
|
552
|
-
"whileHover",
|
|
553
|
-
"whileTap",
|
|
554
|
-
"whileDrag",
|
|
555
|
-
"exit"
|
|
556
|
-
], $y = ["initial", ...My];
|
|
557
|
-
function Wc(e) {
|
|
558
|
-
return tg(e.animate) || $y.some((t) => Pu(e[t]));
|
|
559
|
-
}
|
|
560
|
-
function Ay(e) {
|
|
561
|
-
return !!(Wc(e) || e.variants);
|
|
500
|
+
};
|
|
501
|
+
var Ei = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
502
|
+
function Sn(e) {
|
|
503
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
562
504
|
}
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
505
|
+
var Pu = { exports: {} }, si = {};
|
|
506
|
+
/**
|
|
507
|
+
* @license React
|
|
508
|
+
* react-jsx-runtime.production.min.js
|
|
509
|
+
*
|
|
510
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
511
|
+
*
|
|
512
|
+
* This source code is licensed under the MIT license found in the
|
|
513
|
+
* LICENSE file in the root directory of this source tree.
|
|
514
|
+
*/
|
|
515
|
+
var jd;
|
|
516
|
+
function ky() {
|
|
517
|
+
if (jd)
|
|
518
|
+
return si;
|
|
519
|
+
jd = 1;
|
|
520
|
+
var e = y, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
521
|
+
function o(s, u, l) {
|
|
522
|
+
var c, f = {}, d = null, h = null;
|
|
523
|
+
l !== void 0 && (d = "" + l), u.key !== void 0 && (d = "" + u.key), u.ref !== void 0 && (h = u.ref);
|
|
524
|
+
for (c in u)
|
|
525
|
+
n.call(u, c) && !i.hasOwnProperty(c) && (f[c] = u[c]);
|
|
526
|
+
if (s && s.defaultProps)
|
|
527
|
+
for (c in u = s.defaultProps, u)
|
|
528
|
+
f[c] === void 0 && (f[c] = u[c]);
|
|
529
|
+
return { $$typeof: t, type: s, key: d, ref: h, props: f, _owner: a.current };
|
|
570
530
|
}
|
|
571
|
-
return
|
|
572
|
-
}
|
|
573
|
-
function Ry(e) {
|
|
574
|
-
const { initial: t, animate: r } = Py(e, qt(Gs));
|
|
575
|
-
return _t(() => ({ initial: t, animate: r }), [jd(t), jd(r)]);
|
|
576
|
-
}
|
|
577
|
-
function jd(e) {
|
|
578
|
-
return Array.isArray(e) ? e.join(" ") : e;
|
|
579
|
-
}
|
|
580
|
-
const Ld = {
|
|
581
|
-
animation: [
|
|
582
|
-
"animate",
|
|
583
|
-
"variants",
|
|
584
|
-
"whileHover",
|
|
585
|
-
"whileTap",
|
|
586
|
-
"exit",
|
|
587
|
-
"whileInView",
|
|
588
|
-
"whileFocus",
|
|
589
|
-
"whileDrag"
|
|
590
|
-
],
|
|
591
|
-
exit: ["exit"],
|
|
592
|
-
drag: ["drag", "dragControls"],
|
|
593
|
-
focus: ["whileFocus"],
|
|
594
|
-
hover: ["whileHover", "onHoverStart", "onHoverEnd"],
|
|
595
|
-
tap: ["whileTap", "onTap", "onTapStart", "onTapCancel"],
|
|
596
|
-
pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
|
|
597
|
-
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
598
|
-
layout: ["layout", "layoutId"]
|
|
599
|
-
}, Ru = {};
|
|
600
|
-
for (const e in Ld)
|
|
601
|
-
Ru[e] = {
|
|
602
|
-
isEnabled: (t) => Ld[e].some((r) => !!t[r])
|
|
603
|
-
};
|
|
604
|
-
function Du(e) {
|
|
605
|
-
for (const t in e)
|
|
606
|
-
Ru[t] = {
|
|
607
|
-
...Ru[t],
|
|
608
|
-
...e[t]
|
|
609
|
-
};
|
|
531
|
+
return si.Fragment = r, si.jsx = o, si.jsxs = o, si;
|
|
610
532
|
}
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
));
|
|
533
|
+
var li = {};
|
|
534
|
+
/**
|
|
535
|
+
* @license React
|
|
536
|
+
* react-jsx-runtime.development.js
|
|
537
|
+
*
|
|
538
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
539
|
+
*
|
|
540
|
+
* This source code is licensed under the MIT license found in the
|
|
541
|
+
* LICENSE file in the root directory of this source tree.
|
|
542
|
+
*/
|
|
543
|
+
var Ld;
|
|
544
|
+
function Ty() {
|
|
545
|
+
return Ld || (Ld = 1, process.env.NODE_ENV !== "production" && function() {
|
|
546
|
+
var e = y, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), v = Symbol.iterator, p = "@@iterator";
|
|
547
|
+
function m(C) {
|
|
548
|
+
if (C === null || typeof C != "object")
|
|
549
|
+
return null;
|
|
550
|
+
var P = v && C[v] || C[p];
|
|
551
|
+
return typeof P == "function" ? P : null;
|
|
631
552
|
}
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
{
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
const o = Ot(i);
|
|
640
|
-
return o[Fy] = a, o;
|
|
641
|
-
}
|
|
642
|
-
function jy({ layoutId: e }) {
|
|
643
|
-
const t = qt(rg).id;
|
|
644
|
-
return t && e !== void 0 ? t + "-" + e : e;
|
|
645
|
-
}
|
|
646
|
-
function Ly(e) {
|
|
647
|
-
function t(n, a = {}) {
|
|
648
|
-
return Iy(e(n, a));
|
|
649
|
-
}
|
|
650
|
-
if (typeof Proxy > "u")
|
|
651
|
-
return t;
|
|
652
|
-
const r = /* @__PURE__ */ new Map();
|
|
653
|
-
return new Proxy(t, {
|
|
654
|
-
/**
|
|
655
|
-
* Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
|
|
656
|
-
* The prop name is passed through as `key` and we can use that to generate a `motion`
|
|
657
|
-
* DOM component with that name.
|
|
658
|
-
*/
|
|
659
|
-
get: (n, a) => (r.has(a) || r.set(a, t(a)), r.get(a))
|
|
660
|
-
});
|
|
661
|
-
}
|
|
662
|
-
const Ny = [
|
|
663
|
-
"animate",
|
|
664
|
-
"circle",
|
|
665
|
-
"defs",
|
|
666
|
-
"desc",
|
|
667
|
-
"ellipse",
|
|
668
|
-
"g",
|
|
669
|
-
"image",
|
|
670
|
-
"line",
|
|
671
|
-
"filter",
|
|
672
|
-
"marker",
|
|
673
|
-
"mask",
|
|
674
|
-
"metadata",
|
|
675
|
-
"path",
|
|
676
|
-
"pattern",
|
|
677
|
-
"polygon",
|
|
678
|
-
"polyline",
|
|
679
|
-
"rect",
|
|
680
|
-
"stop",
|
|
681
|
-
"switch",
|
|
682
|
-
"symbol",
|
|
683
|
-
"svg",
|
|
684
|
-
"text",
|
|
685
|
-
"tspan",
|
|
686
|
-
"use",
|
|
687
|
-
"view"
|
|
688
|
-
];
|
|
689
|
-
function ng(e) {
|
|
690
|
-
return (
|
|
691
|
-
/**
|
|
692
|
-
* If it's not a string, it's a custom React component. Currently we only support
|
|
693
|
-
* HTML custom React components.
|
|
694
|
-
*/
|
|
695
|
-
typeof e != "string" || /**
|
|
696
|
-
* If it contains a dash, the element is a custom HTML webcomponent.
|
|
697
|
-
*/
|
|
698
|
-
e.includes("-") ? !1 : (
|
|
699
|
-
/**
|
|
700
|
-
* If it's in our list of lowercase SVG tags, it's an SVG component
|
|
701
|
-
*/
|
|
702
|
-
!!(Ny.indexOf(e) > -1 || /**
|
|
703
|
-
* If it contains a capital letter, it's an SVG component
|
|
704
|
-
*/
|
|
705
|
-
/[A-Z]/.test(e))
|
|
706
|
-
)
|
|
707
|
-
);
|
|
708
|
-
}
|
|
709
|
-
const ag = {};
|
|
710
|
-
function RK(e) {
|
|
711
|
-
Object.assign(ag, e);
|
|
712
|
-
}
|
|
713
|
-
const Ks = [
|
|
714
|
-
"transformPerspective",
|
|
715
|
-
"x",
|
|
716
|
-
"y",
|
|
717
|
-
"z",
|
|
718
|
-
"translateX",
|
|
719
|
-
"translateY",
|
|
720
|
-
"translateZ",
|
|
721
|
-
"scale",
|
|
722
|
-
"scaleX",
|
|
723
|
-
"scaleY",
|
|
724
|
-
"rotate",
|
|
725
|
-
"rotateX",
|
|
726
|
-
"rotateY",
|
|
727
|
-
"rotateZ",
|
|
728
|
-
"skew",
|
|
729
|
-
"skewX",
|
|
730
|
-
"skewY"
|
|
731
|
-
], ig = new Set(Ks);
|
|
732
|
-
function og(e, { layout: t, layoutId: r }) {
|
|
733
|
-
return ig.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!ag[e] || e === "opacity");
|
|
734
|
-
}
|
|
735
|
-
const mn = (e) => !!(e && e.getVelocity), By = {
|
|
736
|
-
x: "translateX",
|
|
737
|
-
y: "translateY",
|
|
738
|
-
z: "translateZ",
|
|
739
|
-
transformPerspective: "perspective"
|
|
740
|
-
}, zy = Ks.length;
|
|
741
|
-
function Wy(e, { enableHardwareAcceleration: t = !0, allowTransformNone: r = !0 }, n, a) {
|
|
742
|
-
let i = "";
|
|
743
|
-
for (let o = 0; o < zy; o++) {
|
|
744
|
-
const s = Ks[o];
|
|
745
|
-
if (e[s] !== void 0) {
|
|
746
|
-
const u = By[s] || s;
|
|
747
|
-
i += `${u}(${e[s]}) `;
|
|
553
|
+
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
554
|
+
function x(C) {
|
|
555
|
+
{
|
|
556
|
+
for (var P = arguments.length, z = new Array(P > 1 ? P - 1 : 0), he = 1; he < P; he++)
|
|
557
|
+
z[he - 1] = arguments[he];
|
|
558
|
+
E("error", C, z);
|
|
559
|
+
}
|
|
748
560
|
}
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
transform: (e) => Vc(0, 1, e)
|
|
759
|
-
}, Co = {
|
|
760
|
-
...Zi,
|
|
761
|
-
default: 1
|
|
762
|
-
}, Oi = (e) => Math.round(e * 1e5) / 1e5, Hc = /(-)?([\d]*\.?[\d])+/g, lg = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, Yy = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
|
|
763
|
-
function Qi(e) {
|
|
764
|
-
return typeof e == "string";
|
|
765
|
-
}
|
|
766
|
-
const Ji = (e) => ({
|
|
767
|
-
test: (t) => Qi(t) && t.endsWith(e) && t.split(" ").length === 1,
|
|
768
|
-
parse: parseFloat,
|
|
769
|
-
transform: (t) => `${t}${e}`
|
|
770
|
-
}), rn = Ji("deg"), Mi = Ji("%"), ge = Ji("px"), FK = Ji("vh"), IK = Ji("vw"), Nd = {
|
|
771
|
-
...Mi,
|
|
772
|
-
parse: (e) => Mi.parse(e) / 100,
|
|
773
|
-
transform: (e) => Mi.transform(e * 100)
|
|
774
|
-
}, Bd = {
|
|
775
|
-
...Zi,
|
|
776
|
-
transform: Math.round
|
|
777
|
-
}, Gy = {
|
|
778
|
-
// Border props
|
|
779
|
-
borderWidth: ge,
|
|
780
|
-
borderTopWidth: ge,
|
|
781
|
-
borderRightWidth: ge,
|
|
782
|
-
borderBottomWidth: ge,
|
|
783
|
-
borderLeftWidth: ge,
|
|
784
|
-
borderRadius: ge,
|
|
785
|
-
radius: ge,
|
|
786
|
-
borderTopLeftRadius: ge,
|
|
787
|
-
borderTopRightRadius: ge,
|
|
788
|
-
borderBottomRightRadius: ge,
|
|
789
|
-
borderBottomLeftRadius: ge,
|
|
790
|
-
// Positioning props
|
|
791
|
-
width: ge,
|
|
792
|
-
maxWidth: ge,
|
|
793
|
-
height: ge,
|
|
794
|
-
maxHeight: ge,
|
|
795
|
-
size: ge,
|
|
796
|
-
top: ge,
|
|
797
|
-
right: ge,
|
|
798
|
-
bottom: ge,
|
|
799
|
-
left: ge,
|
|
800
|
-
// Spacing props
|
|
801
|
-
padding: ge,
|
|
802
|
-
paddingTop: ge,
|
|
803
|
-
paddingRight: ge,
|
|
804
|
-
paddingBottom: ge,
|
|
805
|
-
paddingLeft: ge,
|
|
806
|
-
margin: ge,
|
|
807
|
-
marginTop: ge,
|
|
808
|
-
marginRight: ge,
|
|
809
|
-
marginBottom: ge,
|
|
810
|
-
marginLeft: ge,
|
|
811
|
-
// Transform props
|
|
812
|
-
rotate: rn,
|
|
813
|
-
rotateX: rn,
|
|
814
|
-
rotateY: rn,
|
|
815
|
-
rotateZ: rn,
|
|
816
|
-
scale: Co,
|
|
817
|
-
scaleX: Co,
|
|
818
|
-
scaleY: Co,
|
|
819
|
-
scaleZ: Co,
|
|
820
|
-
skew: rn,
|
|
821
|
-
skewX: rn,
|
|
822
|
-
skewY: rn,
|
|
823
|
-
distance: ge,
|
|
824
|
-
translateX: ge,
|
|
825
|
-
translateY: ge,
|
|
826
|
-
translateZ: ge,
|
|
827
|
-
x: ge,
|
|
828
|
-
y: ge,
|
|
829
|
-
z: ge,
|
|
830
|
-
perspective: ge,
|
|
831
|
-
transformPerspective: ge,
|
|
832
|
-
opacity: Ti,
|
|
833
|
-
originX: Nd,
|
|
834
|
-
originY: Nd,
|
|
835
|
-
originZ: ge,
|
|
836
|
-
// Misc
|
|
837
|
-
zIndex: Bd,
|
|
838
|
-
// SVG
|
|
839
|
-
fillOpacity: Ti,
|
|
840
|
-
strokeOpacity: Ti,
|
|
841
|
-
numOctaves: Bd
|
|
842
|
-
};
|
|
843
|
-
function ug(e, t, r, n) {
|
|
844
|
-
const { style: a, vars: i, transform: o, transformOrigin: s } = e;
|
|
845
|
-
let u = !1, l = !1, c = !0;
|
|
846
|
-
for (const f in t) {
|
|
847
|
-
const d = t[f];
|
|
848
|
-
if (Vy(f)) {
|
|
849
|
-
i[f] = d;
|
|
850
|
-
continue;
|
|
561
|
+
function E(C, P, z) {
|
|
562
|
+
{
|
|
563
|
+
var he = b.ReactDebugCurrentFrame, Re = he.getStackAddendum();
|
|
564
|
+
Re !== "" && (P += "%s", z = z.concat([Re]));
|
|
565
|
+
var qe = z.map(function(Te) {
|
|
566
|
+
return String(Te);
|
|
567
|
+
});
|
|
568
|
+
qe.unshift("Warning: " + P), Function.prototype.apply.call(console[C], console, qe);
|
|
569
|
+
}
|
|
851
570
|
}
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
if (t.transform || (u || n ? a.transform = Wy(e.transform, r, c, n) : a.transform && (a.transform = "none")), l) {
|
|
861
|
-
const { originX: f = "50%", originY: d = "50%", originZ: h = 0 } = s;
|
|
862
|
-
a.transformOrigin = `${f} ${d} ${h}`;
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
const Uc = () => ({
|
|
866
|
-
style: {},
|
|
867
|
-
transform: {},
|
|
868
|
-
transformOrigin: {},
|
|
869
|
-
vars: {}
|
|
870
|
-
});
|
|
871
|
-
function cg(e, t, r) {
|
|
872
|
-
for (const n in t)
|
|
873
|
-
!mn(t[n]) && !og(n, r) && (e[n] = t[n]);
|
|
874
|
-
}
|
|
875
|
-
function qy({ transformTemplate: e }, t, r) {
|
|
876
|
-
return _t(() => {
|
|
877
|
-
const n = Uc();
|
|
878
|
-
return ug(n, t, { enableHardwareAcceleration: !r }, e), Object.assign({}, n.vars, n.style);
|
|
879
|
-
}, [t]);
|
|
880
|
-
}
|
|
881
|
-
function Ky(e, t, r) {
|
|
882
|
-
const n = e.style || {}, a = {};
|
|
883
|
-
return cg(a, n, e), Object.assign(a, qy(e, t, r)), e.transformValues ? e.transformValues(a) : a;
|
|
884
|
-
}
|
|
885
|
-
function Xy(e, t, r) {
|
|
886
|
-
const n = {}, a = Ky(e, t, r);
|
|
887
|
-
return e.drag && e.dragListener !== !1 && (n.draggable = !1, a.userSelect = a.WebkitUserSelect = a.WebkitTouchCallout = "none", a.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = a, n;
|
|
888
|
-
}
|
|
889
|
-
const Zy = /* @__PURE__ */ new Set([
|
|
890
|
-
"animate",
|
|
891
|
-
"exit",
|
|
892
|
-
"variants",
|
|
893
|
-
"initial",
|
|
894
|
-
"style",
|
|
895
|
-
"values",
|
|
896
|
-
"variants",
|
|
897
|
-
"transition",
|
|
898
|
-
"transformTemplate",
|
|
899
|
-
"transformValues",
|
|
900
|
-
"custom",
|
|
901
|
-
"inherit",
|
|
902
|
-
"onLayoutAnimationStart",
|
|
903
|
-
"onLayoutAnimationComplete",
|
|
904
|
-
"onLayoutMeasure",
|
|
905
|
-
"onBeforeLayoutMeasure",
|
|
906
|
-
"onAnimationStart",
|
|
907
|
-
"onAnimationComplete",
|
|
908
|
-
"onUpdate",
|
|
909
|
-
"onDragStart",
|
|
910
|
-
"onDrag",
|
|
911
|
-
"onDragEnd",
|
|
912
|
-
"onMeasureDragConstraints",
|
|
913
|
-
"onDirectionLock",
|
|
914
|
-
"onDragTransitionEnd",
|
|
915
|
-
"_dragX",
|
|
916
|
-
"_dragY",
|
|
917
|
-
"onHoverStart",
|
|
918
|
-
"onHoverEnd",
|
|
919
|
-
"onViewportEnter",
|
|
920
|
-
"onViewportLeave",
|
|
921
|
-
"ignoreStrict",
|
|
922
|
-
"viewport"
|
|
923
|
-
]);
|
|
924
|
-
function hs(e) {
|
|
925
|
-
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || Zy.has(e);
|
|
926
|
-
}
|
|
927
|
-
let fg = (e) => !hs(e);
|
|
928
|
-
function Qy(e) {
|
|
929
|
-
e && (fg = (t) => t.startsWith("on") ? !hs(t) : e(t));
|
|
930
|
-
}
|
|
931
|
-
try {
|
|
932
|
-
Qy(require("@emotion/is-prop-valid").default);
|
|
933
|
-
} catch {
|
|
934
|
-
}
|
|
935
|
-
function Jy(e, t, r) {
|
|
936
|
-
const n = {};
|
|
937
|
-
for (const a in e)
|
|
938
|
-
a === "values" && typeof e.values == "object" || (fg(a) || r === !0 && hs(a) || !t && !hs(a) || // If trying to use native HTML drag events, forward drag listeners
|
|
939
|
-
e.draggable && a.startsWith("onDrag")) && (n[a] = e[a]);
|
|
940
|
-
return n;
|
|
941
|
-
}
|
|
942
|
-
function zd(e, t, r) {
|
|
943
|
-
return typeof e == "string" ? e : ge.transform(t + r * e);
|
|
944
|
-
}
|
|
945
|
-
function ex(e, t, r) {
|
|
946
|
-
const n = zd(t, e.x, e.width), a = zd(r, e.y, e.height);
|
|
947
|
-
return `${n} ${a}`;
|
|
948
|
-
}
|
|
949
|
-
const tx = {
|
|
950
|
-
offset: "stroke-dashoffset",
|
|
951
|
-
array: "stroke-dasharray"
|
|
952
|
-
}, rx = {
|
|
953
|
-
offset: "strokeDashoffset",
|
|
954
|
-
array: "strokeDasharray"
|
|
955
|
-
};
|
|
956
|
-
function nx(e, t, r = 1, n = 0, a = !0) {
|
|
957
|
-
e.pathLength = 1;
|
|
958
|
-
const i = a ? tx : rx;
|
|
959
|
-
e[i.offset] = ge.transform(-n);
|
|
960
|
-
const o = ge.transform(t), s = ge.transform(r);
|
|
961
|
-
e[i.array] = `${o} ${s}`;
|
|
962
|
-
}
|
|
963
|
-
function dg(e, {
|
|
964
|
-
attrX: t,
|
|
965
|
-
attrY: r,
|
|
966
|
-
attrScale: n,
|
|
967
|
-
originX: a,
|
|
968
|
-
originY: i,
|
|
969
|
-
pathLength: o,
|
|
970
|
-
pathSpacing: s = 1,
|
|
971
|
-
pathOffset: u = 0,
|
|
972
|
-
// This is object creation, which we try to avoid per-frame.
|
|
973
|
-
...l
|
|
974
|
-
}, c, f, d) {
|
|
975
|
-
if (ug(e, l, c, d), f) {
|
|
976
|
-
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
|
|
977
|
-
return;
|
|
978
|
-
}
|
|
979
|
-
e.attrs = e.style, e.style = {};
|
|
980
|
-
const { attrs: h, style: v, dimensions: p } = e;
|
|
981
|
-
h.transform && (p && (v.transform = h.transform), delete h.transform), p && (a !== void 0 || i !== void 0 || v.transform) && (v.transformOrigin = ex(p, a !== void 0 ? a : 0.5, i !== void 0 ? i : 0.5)), t !== void 0 && (h.x = t), r !== void 0 && (h.y = r), n !== void 0 && (h.scale = n), o !== void 0 && nx(h, o, s, u, !1);
|
|
982
|
-
}
|
|
983
|
-
const hg = () => ({
|
|
984
|
-
...Uc(),
|
|
985
|
-
attrs: {}
|
|
986
|
-
}), pg = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
987
|
-
function ax(e, t, r, n) {
|
|
988
|
-
const a = _t(() => {
|
|
989
|
-
const i = hg();
|
|
990
|
-
return dg(i, t, { enableHardwareAcceleration: !1 }, pg(n), e.transformTemplate), {
|
|
991
|
-
...i.attrs,
|
|
992
|
-
style: { ...i.style }
|
|
993
|
-
};
|
|
994
|
-
}, [t]);
|
|
995
|
-
if (e.style) {
|
|
996
|
-
const i = {};
|
|
997
|
-
cg(i, e.style, e), a.style = { ...i, ...a.style };
|
|
998
|
-
}
|
|
999
|
-
return a;
|
|
1000
|
-
}
|
|
1001
|
-
function ix(e = !1) {
|
|
1002
|
-
return (r, n, a, { latestValues: i }, o) => {
|
|
1003
|
-
const u = (ng(r) ? ax : Xy)(n, i, o, r), c = {
|
|
1004
|
-
...Jy(n, typeof r == "string", e),
|
|
1005
|
-
...u,
|
|
1006
|
-
ref: a
|
|
1007
|
-
}, { children: f } = n, d = _t(() => mn(f) ? f.get() : f, [f]);
|
|
1008
|
-
return $r(r, {
|
|
1009
|
-
...c,
|
|
1010
|
-
children: d
|
|
1011
|
-
});
|
|
1012
|
-
};
|
|
1013
|
-
}
|
|
1014
|
-
const ox = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1015
|
-
function sx(e, { style: t, vars: r }, n, a) {
|
|
1016
|
-
Object.assign(e.style, t, a && a.getProjectionStyles(n));
|
|
1017
|
-
for (const i in r)
|
|
1018
|
-
e.style.setProperty(i, r[i]);
|
|
1019
|
-
}
|
|
1020
|
-
const lx = /* @__PURE__ */ new Set([
|
|
1021
|
-
"baseFrequency",
|
|
1022
|
-
"diffuseConstant",
|
|
1023
|
-
"kernelMatrix",
|
|
1024
|
-
"kernelUnitLength",
|
|
1025
|
-
"keySplines",
|
|
1026
|
-
"keyTimes",
|
|
1027
|
-
"limitingConeAngle",
|
|
1028
|
-
"markerHeight",
|
|
1029
|
-
"markerWidth",
|
|
1030
|
-
"numOctaves",
|
|
1031
|
-
"targetX",
|
|
1032
|
-
"targetY",
|
|
1033
|
-
"surfaceScale",
|
|
1034
|
-
"specularConstant",
|
|
1035
|
-
"specularExponent",
|
|
1036
|
-
"stdDeviation",
|
|
1037
|
-
"tableValues",
|
|
1038
|
-
"viewBox",
|
|
1039
|
-
"gradientTransform",
|
|
1040
|
-
"pathLength",
|
|
1041
|
-
"startOffset",
|
|
1042
|
-
"textLength",
|
|
1043
|
-
"lengthAdjust"
|
|
1044
|
-
]);
|
|
1045
|
-
function ux(e, t, r, n) {
|
|
1046
|
-
sx(e, t, void 0, n);
|
|
1047
|
-
for (const a in t.attrs)
|
|
1048
|
-
e.setAttribute(lx.has(a) ? a : ox(a), t.attrs[a]);
|
|
1049
|
-
}
|
|
1050
|
-
function gg(e, t) {
|
|
1051
|
-
const { style: r } = e, n = {};
|
|
1052
|
-
for (const a in r)
|
|
1053
|
-
(mn(r[a]) || t.style && mn(t.style[a]) || og(a, e)) && (n[a] = r[a]);
|
|
1054
|
-
return n;
|
|
1055
|
-
}
|
|
1056
|
-
function cx(e, t) {
|
|
1057
|
-
const r = gg(e, t);
|
|
1058
|
-
for (const n in e)
|
|
1059
|
-
if (mn(e[n]) || mn(t[n])) {
|
|
1060
|
-
const a = Ks.indexOf(n) !== -1 ? "attr" + n.charAt(0).toUpperCase() + n.substring(1) : n;
|
|
1061
|
-
r[a] = e[n];
|
|
571
|
+
var T = !1, w = !1, _ = !1, k = !1, O = !1, $;
|
|
572
|
+
$ = Symbol.for("react.module.reference");
|
|
573
|
+
function R(C) {
|
|
574
|
+
return !!(typeof C == "string" || typeof C == "function" || C === n || C === i || O || C === a || C === l || C === c || k || C === h || T || w || _ || typeof C == "object" && C !== null && (C.$$typeof === d || C.$$typeof === f || C.$$typeof === o || C.$$typeof === s || C.$$typeof === u || // This needs to include all possible module reference object
|
|
575
|
+
// types supported by any Flight configuration anywhere since
|
|
576
|
+
// we don't know which Flight build this will end up being used
|
|
577
|
+
// with.
|
|
578
|
+
C.$$typeof === $ || C.getModuleId !== void 0));
|
|
1062
579
|
}
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
function
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
const u = Wc(e), l = Ay(e);
|
|
1094
|
-
t && l && !u && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
|
|
1095
|
-
let c = r ? r.initial === !1 : !1;
|
|
1096
|
-
c = c || o === !1;
|
|
1097
|
-
const f = c ? s : o;
|
|
1098
|
-
return f && typeof f != "boolean" && !tg(f) && (Array.isArray(f) ? f : [f]).forEach((h) => {
|
|
1099
|
-
const v = fx(e, h);
|
|
1100
|
-
if (!v)
|
|
1101
|
-
return;
|
|
1102
|
-
const { transitionEnd: p, transition: m, ...b } = v;
|
|
1103
|
-
for (const x in b) {
|
|
1104
|
-
let E = b[x];
|
|
1105
|
-
if (Array.isArray(E)) {
|
|
1106
|
-
const T = c ? E.length - 1 : 0;
|
|
1107
|
-
E = E[T];
|
|
580
|
+
function ee(C, P, z) {
|
|
581
|
+
var he = C.displayName;
|
|
582
|
+
if (he)
|
|
583
|
+
return he;
|
|
584
|
+
var Re = P.displayName || P.name || "";
|
|
585
|
+
return Re !== "" ? z + "(" + Re + ")" : z;
|
|
586
|
+
}
|
|
587
|
+
function Me(C) {
|
|
588
|
+
return C.displayName || "Context";
|
|
589
|
+
}
|
|
590
|
+
function le(C) {
|
|
591
|
+
if (C == null)
|
|
592
|
+
return null;
|
|
593
|
+
if (typeof C.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof C == "function")
|
|
594
|
+
return C.displayName || C.name || null;
|
|
595
|
+
if (typeof C == "string")
|
|
596
|
+
return C;
|
|
597
|
+
switch (C) {
|
|
598
|
+
case n:
|
|
599
|
+
return "Fragment";
|
|
600
|
+
case r:
|
|
601
|
+
return "Portal";
|
|
602
|
+
case i:
|
|
603
|
+
return "Profiler";
|
|
604
|
+
case a:
|
|
605
|
+
return "StrictMode";
|
|
606
|
+
case l:
|
|
607
|
+
return "Suspense";
|
|
608
|
+
case c:
|
|
609
|
+
return "SuspenseList";
|
|
1108
610
|
}
|
|
1109
|
-
|
|
611
|
+
if (typeof C == "object")
|
|
612
|
+
switch (C.$$typeof) {
|
|
613
|
+
case s:
|
|
614
|
+
var P = C;
|
|
615
|
+
return Me(P) + ".Consumer";
|
|
616
|
+
case o:
|
|
617
|
+
var z = C;
|
|
618
|
+
return Me(z._context) + ".Provider";
|
|
619
|
+
case u:
|
|
620
|
+
return ee(C, C.render, "ForwardRef");
|
|
621
|
+
case f:
|
|
622
|
+
var he = C.displayName || null;
|
|
623
|
+
return he !== null ? he : le(C.type) || "Memo";
|
|
624
|
+
case d: {
|
|
625
|
+
var Re = C, qe = Re._payload, Te = Re._init;
|
|
626
|
+
try {
|
|
627
|
+
return le(Te(qe));
|
|
628
|
+
} catch {
|
|
629
|
+
return null;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
return null;
|
|
1110
634
|
}
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
* Schedule a process to run on the next frame.
|
|
1137
|
-
*/
|
|
1138
|
-
schedule: (u, l = !1, c = !1) => {
|
|
1139
|
-
const f = c && a, d = f ? t : r;
|
|
1140
|
-
return l && o.add(u), d.add(u) && f && a && (n = t.order.length), u;
|
|
1141
|
-
},
|
|
1142
|
-
/**
|
|
1143
|
-
* Cancel the provided callback from running on the next frame.
|
|
1144
|
-
*/
|
|
1145
|
-
cancel: (u) => {
|
|
1146
|
-
r.remove(u), o.delete(u);
|
|
1147
|
-
},
|
|
1148
|
-
/**
|
|
1149
|
-
* Execute all schedule callbacks.
|
|
1150
|
-
*/
|
|
1151
|
-
process: (u) => {
|
|
1152
|
-
if (a) {
|
|
1153
|
-
i = !0;
|
|
1154
|
-
return;
|
|
635
|
+
var ce = Object.assign, ne = 0, B, Y, ye, fe, M, A, V;
|
|
636
|
+
function re() {
|
|
637
|
+
}
|
|
638
|
+
re.__reactDisabledLog = !0;
|
|
639
|
+
function G() {
|
|
640
|
+
{
|
|
641
|
+
if (ne === 0) {
|
|
642
|
+
B = console.log, Y = console.info, ye = console.warn, fe = console.error, M = console.group, A = console.groupCollapsed, V = console.groupEnd;
|
|
643
|
+
var C = {
|
|
644
|
+
configurable: !0,
|
|
645
|
+
enumerable: !0,
|
|
646
|
+
value: re,
|
|
647
|
+
writable: !0
|
|
648
|
+
};
|
|
649
|
+
Object.defineProperties(console, {
|
|
650
|
+
info: C,
|
|
651
|
+
log: C,
|
|
652
|
+
warn: C,
|
|
653
|
+
error: C,
|
|
654
|
+
group: C,
|
|
655
|
+
groupCollapsed: C,
|
|
656
|
+
groupEnd: C
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
ne++;
|
|
1155
660
|
}
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
661
|
+
}
|
|
662
|
+
function ue() {
|
|
663
|
+
{
|
|
664
|
+
if (ne--, ne === 0) {
|
|
665
|
+
var C = {
|
|
666
|
+
configurable: !0,
|
|
667
|
+
enumerable: !0,
|
|
668
|
+
writable: !0
|
|
669
|
+
};
|
|
670
|
+
Object.defineProperties(console, {
|
|
671
|
+
log: ce({}, C, {
|
|
672
|
+
value: B
|
|
673
|
+
}),
|
|
674
|
+
info: ce({}, C, {
|
|
675
|
+
value: Y
|
|
676
|
+
}),
|
|
677
|
+
warn: ce({}, C, {
|
|
678
|
+
value: ye
|
|
679
|
+
}),
|
|
680
|
+
error: ce({}, C, {
|
|
681
|
+
value: fe
|
|
682
|
+
}),
|
|
683
|
+
group: ce({}, C, {
|
|
684
|
+
value: M
|
|
685
|
+
}),
|
|
686
|
+
groupCollapsed: ce({}, C, {
|
|
687
|
+
value: A
|
|
688
|
+
}),
|
|
689
|
+
groupEnd: ce({}, C, {
|
|
690
|
+
value: V
|
|
691
|
+
})
|
|
692
|
+
});
|
|
1160
693
|
}
|
|
1161
|
-
|
|
694
|
+
ne < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
695
|
+
}
|
|
1162
696
|
}
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
r.dimensions = {
|
|
1201
|
-
x: 0,
|
|
1202
|
-
y: 0,
|
|
1203
|
-
width: 0,
|
|
1204
|
-
height: 0
|
|
697
|
+
var te = b.ReactCurrentDispatcher, ie;
|
|
698
|
+
function K(C, P, z) {
|
|
699
|
+
{
|
|
700
|
+
if (ie === void 0)
|
|
701
|
+
try {
|
|
702
|
+
throw Error();
|
|
703
|
+
} catch (Re) {
|
|
704
|
+
var he = Re.stack.trim().match(/\n( *(at )?)/);
|
|
705
|
+
ie = he && he[1] || "";
|
|
706
|
+
}
|
|
707
|
+
return `
|
|
708
|
+
` + ie + C;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
var U = !1, J;
|
|
712
|
+
{
|
|
713
|
+
var je = typeof WeakMap == "function" ? WeakMap : Map;
|
|
714
|
+
J = new je();
|
|
715
|
+
}
|
|
716
|
+
function D(C, P) {
|
|
717
|
+
if (!C || U)
|
|
718
|
+
return "";
|
|
719
|
+
{
|
|
720
|
+
var z = J.get(C);
|
|
721
|
+
if (z !== void 0)
|
|
722
|
+
return z;
|
|
723
|
+
}
|
|
724
|
+
var he;
|
|
725
|
+
U = !0;
|
|
726
|
+
var Re = Error.prepareStackTrace;
|
|
727
|
+
Error.prepareStackTrace = void 0;
|
|
728
|
+
var qe;
|
|
729
|
+
qe = te.current, te.current = null, G();
|
|
730
|
+
try {
|
|
731
|
+
if (P) {
|
|
732
|
+
var Te = function() {
|
|
733
|
+
throw Error();
|
|
1205
734
|
};
|
|
735
|
+
if (Object.defineProperty(Te.prototype, "props", {
|
|
736
|
+
set: function() {
|
|
737
|
+
throw Error();
|
|
738
|
+
}
|
|
739
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
740
|
+
try {
|
|
741
|
+
Reflect.construct(Te, []);
|
|
742
|
+
} catch (Sr) {
|
|
743
|
+
he = Sr;
|
|
744
|
+
}
|
|
745
|
+
Reflect.construct(C, [], Te);
|
|
746
|
+
} else {
|
|
747
|
+
try {
|
|
748
|
+
Te.call();
|
|
749
|
+
} catch (Sr) {
|
|
750
|
+
he = Sr;
|
|
751
|
+
}
|
|
752
|
+
C.call(Te.prototype);
|
|
753
|
+
}
|
|
754
|
+
} else {
|
|
755
|
+
try {
|
|
756
|
+
throw Error();
|
|
757
|
+
} catch (Sr) {
|
|
758
|
+
he = Sr;
|
|
759
|
+
}
|
|
760
|
+
C();
|
|
1206
761
|
}
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
|
|
762
|
+
} catch (Sr) {
|
|
763
|
+
if (Sr && he && typeof Sr.stack == "string") {
|
|
764
|
+
for (var we = Sr.stack.split(`
|
|
765
|
+
`), Dt = he.stack.split(`
|
|
766
|
+
`), gt = we.length - 1, yt = Dt.length - 1; gt >= 1 && yt >= 0 && we[gt] !== Dt[yt]; )
|
|
767
|
+
yt--;
|
|
768
|
+
for (; gt >= 1 && yt >= 0; gt--, yt--)
|
|
769
|
+
if (we[gt] !== Dt[yt]) {
|
|
770
|
+
if (gt !== 1 || yt !== 1)
|
|
771
|
+
do
|
|
772
|
+
if (gt--, yt--, yt < 0 || we[gt] !== Dt[yt]) {
|
|
773
|
+
var tr = `
|
|
774
|
+
` + we[gt].replace(" at new ", " at ");
|
|
775
|
+
return C.displayName && tr.includes("<anonymous>") && (tr = tr.replace("<anonymous>", C.displayName)), typeof C == "function" && J.set(C, tr), tr;
|
|
776
|
+
}
|
|
777
|
+
while (gt >= 1 && yt >= 0);
|
|
778
|
+
break;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
} finally {
|
|
782
|
+
U = !1, te.current = qe, ue(), Error.prepareStackTrace = Re;
|
|
783
|
+
}
|
|
784
|
+
var In = C ? C.displayName || C.name : "", Fd = In ? K(In) : "";
|
|
785
|
+
return typeof C == "function" && J.set(C, Fd), Fd;
|
|
1210
786
|
}
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
useVisualState: vg({
|
|
1214
|
-
scrapeMotionValuesFromProps: gg,
|
|
1215
|
-
createRenderState: Uc
|
|
1216
|
-
})
|
|
1217
|
-
};
|
|
1218
|
-
function Ex(e, { forwardMotionProps: t = !1 }, r, n) {
|
|
1219
|
-
return {
|
|
1220
|
-
...ng(e) ? wx : Cx,
|
|
1221
|
-
preloadedFeatures: r,
|
|
1222
|
-
useRender: ix(t),
|
|
1223
|
-
createVisualElement: n,
|
|
1224
|
-
Component: e
|
|
1225
|
-
};
|
|
1226
|
-
}
|
|
1227
|
-
const Sx = (e, t) => (r) => t(e(r)), bg = (...e) => e.reduce(Sx);
|
|
1228
|
-
let Gc = eo, to = eo;
|
|
1229
|
-
process.env.NODE_ENV !== "production" && (Gc = (e, t) => {
|
|
1230
|
-
!e && typeof console < "u" && console.warn(t);
|
|
1231
|
-
}, to = (e, t) => {
|
|
1232
|
-
if (!e)
|
|
1233
|
-
throw new Error(t);
|
|
1234
|
-
});
|
|
1235
|
-
const qc = (e, t) => (r) => !!(Qi(r) && Yy.test(r) && r.startsWith(e) || t && Object.prototype.hasOwnProperty.call(r, t)), yg = (e, t, r) => (n) => {
|
|
1236
|
-
if (!Qi(n))
|
|
1237
|
-
return n;
|
|
1238
|
-
const [a, i, o, s] = n.match(Hc);
|
|
1239
|
-
return {
|
|
1240
|
-
[e]: parseFloat(a),
|
|
1241
|
-
[t]: parseFloat(i),
|
|
1242
|
-
[r]: parseFloat(o),
|
|
1243
|
-
alpha: s !== void 0 ? parseFloat(s) : 1
|
|
1244
|
-
};
|
|
1245
|
-
}, _x = (e) => Vc(0, 255, e), Bl = {
|
|
1246
|
-
...Zi,
|
|
1247
|
-
transform: (e) => Math.round(_x(e))
|
|
1248
|
-
}, dn = {
|
|
1249
|
-
test: qc("rgb", "red"),
|
|
1250
|
-
parse: yg("red", "green", "blue"),
|
|
1251
|
-
transform: ({ red: e, green: t, blue: r, alpha: n = 1 }) => "rgba(" + Bl.transform(e) + ", " + Bl.transform(t) + ", " + Bl.transform(r) + ", " + Oi(Ti.transform(n)) + ")"
|
|
1252
|
-
};
|
|
1253
|
-
function kx(e) {
|
|
1254
|
-
let t = "", r = "", n = "", a = "";
|
|
1255
|
-
return e.length > 5 ? (t = e.substring(1, 3), r = e.substring(3, 5), n = e.substring(5, 7), a = e.substring(7, 9)) : (t = e.substring(1, 2), r = e.substring(2, 3), n = e.substring(3, 4), a = e.substring(4, 5), t += t, r += r, n += n, a += a), {
|
|
1256
|
-
red: parseInt(t, 16),
|
|
1257
|
-
green: parseInt(r, 16),
|
|
1258
|
-
blue: parseInt(n, 16),
|
|
1259
|
-
alpha: a ? parseInt(a, 16) / 255 : 1
|
|
1260
|
-
};
|
|
1261
|
-
}
|
|
1262
|
-
const Fu = {
|
|
1263
|
-
test: qc("#"),
|
|
1264
|
-
parse: kx,
|
|
1265
|
-
transform: dn.transform
|
|
1266
|
-
}, ba = {
|
|
1267
|
-
test: qc("hsl", "hue"),
|
|
1268
|
-
parse: yg("hue", "saturation", "lightness"),
|
|
1269
|
-
transform: ({ hue: e, saturation: t, lightness: r, alpha: n = 1 }) => "hsla(" + Math.round(e) + ", " + Mi.transform(Oi(t)) + ", " + Mi.transform(Oi(r)) + ", " + Oi(Ti.transform(n)) + ")"
|
|
1270
|
-
}, Xs = {
|
|
1271
|
-
test: (e) => dn.test(e) || Fu.test(e) || ba.test(e),
|
|
1272
|
-
parse: (e) => dn.test(e) ? dn.parse(e) : ba.test(e) ? ba.parse(e) : Fu.parse(e),
|
|
1273
|
-
transform: (e) => Qi(e) ? e : e.hasOwnProperty("red") ? dn.transform(e) : ba.transform(e)
|
|
1274
|
-
}, Zs = (e, t, r) => -r * e + r * t + e;
|
|
1275
|
-
function zl(e, t, r) {
|
|
1276
|
-
return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
|
|
1277
|
-
}
|
|
1278
|
-
function Tx({ hue: e, saturation: t, lightness: r, alpha: n }) {
|
|
1279
|
-
e /= 360, t /= 100, r /= 100;
|
|
1280
|
-
let a = 0, i = 0, o = 0;
|
|
1281
|
-
if (!t)
|
|
1282
|
-
a = i = o = r;
|
|
1283
|
-
else {
|
|
1284
|
-
const s = r < 0.5 ? r * (1 + t) : r + t - r * t, u = 2 * r - s;
|
|
1285
|
-
a = zl(u, s, e + 1 / 3), i = zl(u, s, e), o = zl(u, s, e - 1 / 3);
|
|
1286
|
-
}
|
|
1287
|
-
return {
|
|
1288
|
-
red: Math.round(a * 255),
|
|
1289
|
-
green: Math.round(i * 255),
|
|
1290
|
-
blue: Math.round(o * 255),
|
|
1291
|
-
alpha: n
|
|
1292
|
-
};
|
|
1293
|
-
}
|
|
1294
|
-
const Wl = (e, t, r) => {
|
|
1295
|
-
const n = e * e;
|
|
1296
|
-
return Math.sqrt(Math.max(0, r * (t * t - n) + n));
|
|
1297
|
-
}, Ox = [Fu, dn, ba], Mx = (e) => Ox.find((t) => t.test(e));
|
|
1298
|
-
function Vd(e) {
|
|
1299
|
-
const t = Mx(e);
|
|
1300
|
-
to(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`);
|
|
1301
|
-
let r = t.parse(e);
|
|
1302
|
-
return t === ba && (r = Tx(r)), r;
|
|
1303
|
-
}
|
|
1304
|
-
const xg = (e, t) => {
|
|
1305
|
-
const r = Vd(e), n = Vd(t), a = { ...r };
|
|
1306
|
-
return (i) => (a.red = Wl(r.red, n.red, i), a.green = Wl(r.green, n.green, i), a.blue = Wl(r.blue, n.blue, i), a.alpha = Zs(r.alpha, n.alpha, i), dn.transform(a));
|
|
1307
|
-
};
|
|
1308
|
-
function $x(e) {
|
|
1309
|
-
var t, r;
|
|
1310
|
-
return isNaN(e) && Qi(e) && (((t = e.match(Hc)) === null || t === void 0 ? void 0 : t.length) || 0) + (((r = e.match(lg)) === null || r === void 0 ? void 0 : r.length) || 0) > 0;
|
|
1311
|
-
}
|
|
1312
|
-
const wg = {
|
|
1313
|
-
regex: Hy,
|
|
1314
|
-
countKey: "Vars",
|
|
1315
|
-
token: "${v}",
|
|
1316
|
-
parse: eo
|
|
1317
|
-
}, Cg = {
|
|
1318
|
-
regex: lg,
|
|
1319
|
-
countKey: "Colors",
|
|
1320
|
-
token: "${c}",
|
|
1321
|
-
parse: Xs.parse
|
|
1322
|
-
}, Eg = {
|
|
1323
|
-
regex: Hc,
|
|
1324
|
-
countKey: "Numbers",
|
|
1325
|
-
token: "${n}",
|
|
1326
|
-
parse: Zi.parse
|
|
1327
|
-
};
|
|
1328
|
-
function Vl(e, { regex: t, countKey: r, token: n, parse: a }) {
|
|
1329
|
-
const i = e.tokenised.match(t);
|
|
1330
|
-
i && (e["num" + r] = i.length, e.tokenised = e.tokenised.replace(t, n), e.values.push(...i.map(a)));
|
|
1331
|
-
}
|
|
1332
|
-
function ps(e) {
|
|
1333
|
-
const t = e.toString(), r = {
|
|
1334
|
-
value: t,
|
|
1335
|
-
tokenised: t,
|
|
1336
|
-
values: [],
|
|
1337
|
-
numVars: 0,
|
|
1338
|
-
numColors: 0,
|
|
1339
|
-
numNumbers: 0
|
|
1340
|
-
};
|
|
1341
|
-
return r.value.includes("var(--") && Vl(r, wg), Vl(r, Cg), Vl(r, Eg), r;
|
|
1342
|
-
}
|
|
1343
|
-
function Sg(e) {
|
|
1344
|
-
return ps(e).values;
|
|
1345
|
-
}
|
|
1346
|
-
function _g(e) {
|
|
1347
|
-
const { values: t, numColors: r, numVars: n, tokenised: a } = ps(e), i = t.length;
|
|
1348
|
-
return (o) => {
|
|
1349
|
-
let s = a;
|
|
1350
|
-
for (let u = 0; u < i; u++)
|
|
1351
|
-
u < n ? s = s.replace(wg.token, o[u]) : u < n + r ? s = s.replace(Cg.token, Xs.transform(o[u])) : s = s.replace(Eg.token, Oi(o[u]));
|
|
1352
|
-
return s;
|
|
1353
|
-
};
|
|
1354
|
-
}
|
|
1355
|
-
const Ax = (e) => typeof e == "number" ? 0 : e;
|
|
1356
|
-
function Px(e) {
|
|
1357
|
-
const t = Sg(e);
|
|
1358
|
-
return _g(e)(t.map(Ax));
|
|
1359
|
-
}
|
|
1360
|
-
const Rx = {
|
|
1361
|
-
test: $x,
|
|
1362
|
-
parse: Sg,
|
|
1363
|
-
createTransformer: _g,
|
|
1364
|
-
getAnimatableNone: Px
|
|
1365
|
-
}, kg = (e, t) => (r) => `${r > 0 ? t : e}`;
|
|
1366
|
-
function Tg(e, t) {
|
|
1367
|
-
return typeof e == "number" ? (r) => Zs(e, t, r) : Xs.test(e) ? xg(e, t) : e.startsWith("var(") ? kg(e, t) : Mg(e, t);
|
|
1368
|
-
}
|
|
1369
|
-
const Og = (e, t) => {
|
|
1370
|
-
const r = [...e], n = r.length, a = e.map((i, o) => Tg(i, t[o]));
|
|
1371
|
-
return (i) => {
|
|
1372
|
-
for (let o = 0; o < n; o++)
|
|
1373
|
-
r[o] = a[o](i);
|
|
1374
|
-
return r;
|
|
1375
|
-
};
|
|
1376
|
-
}, Dx = (e, t) => {
|
|
1377
|
-
const r = { ...e, ...t }, n = {};
|
|
1378
|
-
for (const a in r)
|
|
1379
|
-
e[a] !== void 0 && t[a] !== void 0 && (n[a] = Tg(e[a], t[a]));
|
|
1380
|
-
return (a) => {
|
|
1381
|
-
for (const i in n)
|
|
1382
|
-
r[i] = n[i](a);
|
|
1383
|
-
return r;
|
|
1384
|
-
};
|
|
1385
|
-
}, Mg = (e, t) => {
|
|
1386
|
-
const r = Rx.createTransformer(t), n = ps(e), a = ps(t);
|
|
1387
|
-
return n.numVars === a.numVars && n.numColors === a.numColors && n.numNumbers >= a.numNumbers ? bg(Og(n.values, a.values), r) : (Gc(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), kg(e, t));
|
|
1388
|
-
}, Kc = (e, t, r) => {
|
|
1389
|
-
const n = t - e;
|
|
1390
|
-
return n === 0 ? 1 : (r - e) / n;
|
|
1391
|
-
}, Hd = (e, t) => (r) => Zs(e, t, r);
|
|
1392
|
-
function Fx(e) {
|
|
1393
|
-
return typeof e == "number" ? Hd : typeof e == "string" ? Xs.test(e) ? xg : Mg : Array.isArray(e) ? Og : typeof e == "object" ? Dx : Hd;
|
|
1394
|
-
}
|
|
1395
|
-
function Ix(e, t, r) {
|
|
1396
|
-
const n = [], a = r || Fx(e[0]), i = e.length - 1;
|
|
1397
|
-
for (let o = 0; o < i; o++) {
|
|
1398
|
-
let s = a(e[o], e[o + 1]);
|
|
1399
|
-
if (t) {
|
|
1400
|
-
const u = Array.isArray(t) ? t[o] || eo : t;
|
|
1401
|
-
s = bg(u, s);
|
|
787
|
+
function nt(C, P, z) {
|
|
788
|
+
return D(C, !1);
|
|
1402
789
|
}
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
}
|
|
1407
|
-
function
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
790
|
+
function q(C) {
|
|
791
|
+
var P = C.prototype;
|
|
792
|
+
return !!(P && P.isReactComponent);
|
|
793
|
+
}
|
|
794
|
+
function L(C, P, z) {
|
|
795
|
+
if (C == null)
|
|
796
|
+
return "";
|
|
797
|
+
if (typeof C == "function")
|
|
798
|
+
return D(C, q(C));
|
|
799
|
+
if (typeof C == "string")
|
|
800
|
+
return K(C);
|
|
801
|
+
switch (C) {
|
|
802
|
+
case l:
|
|
803
|
+
return K("Suspense");
|
|
804
|
+
case c:
|
|
805
|
+
return K("SuspenseList");
|
|
806
|
+
}
|
|
807
|
+
if (typeof C == "object")
|
|
808
|
+
switch (C.$$typeof) {
|
|
809
|
+
case u:
|
|
810
|
+
return nt(C.render);
|
|
811
|
+
case f:
|
|
812
|
+
return L(C.type, P, z);
|
|
813
|
+
case d: {
|
|
814
|
+
var he = C, Re = he._payload, qe = he._init;
|
|
815
|
+
try {
|
|
816
|
+
return L(qe(Re), P, z);
|
|
817
|
+
} catch {
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
return "";
|
|
822
|
+
}
|
|
823
|
+
var X = Object.prototype.hasOwnProperty, oe = {}, Ge = b.ReactDebugCurrentFrame;
|
|
824
|
+
function Le(C) {
|
|
825
|
+
if (C) {
|
|
826
|
+
var P = C._owner, z = L(C.type, C._source, P ? P.type : null);
|
|
827
|
+
Ge.setExtraStackFrame(z);
|
|
828
|
+
} else
|
|
829
|
+
Ge.setExtraStackFrame(null);
|
|
830
|
+
}
|
|
831
|
+
function Ne(C, P, z, he, Re) {
|
|
832
|
+
{
|
|
833
|
+
var qe = Function.call.bind(X);
|
|
834
|
+
for (var Te in C)
|
|
835
|
+
if (qe(C, Te)) {
|
|
836
|
+
var we = void 0;
|
|
837
|
+
try {
|
|
838
|
+
if (typeof C[Te] != "function") {
|
|
839
|
+
var Dt = Error((he || "React class") + ": " + z + " type `" + Te + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof C[Te] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
840
|
+
throw Dt.name = "Invariant Violation", Dt;
|
|
841
|
+
}
|
|
842
|
+
we = C[Te](P, Te, he, z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
843
|
+
} catch (gt) {
|
|
844
|
+
we = gt;
|
|
845
|
+
}
|
|
846
|
+
we && !(we instanceof Error) && (Le(Re), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", he || "React class", z, Te, typeof we), Le(null)), we instanceof Error && !(we.message in oe) && (oe[we.message] = !0, Le(Re), x("Failed %s type: %s", z, we.message), Le(null));
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
var ut = Array.isArray;
|
|
851
|
+
function ct(C) {
|
|
852
|
+
return ut(C);
|
|
853
|
+
}
|
|
854
|
+
function Cr(C) {
|
|
855
|
+
{
|
|
856
|
+
var P = typeof Symbol == "function" && Symbol.toStringTag, z = P && C[Symbol.toStringTag] || C.constructor.name || "Object";
|
|
857
|
+
return z;
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
function N(C) {
|
|
861
|
+
try {
|
|
862
|
+
return se(C), !1;
|
|
863
|
+
} catch {
|
|
864
|
+
return !0;
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
function se(C) {
|
|
868
|
+
return "" + C;
|
|
869
|
+
}
|
|
870
|
+
function at(C) {
|
|
871
|
+
if (N(C))
|
|
872
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Cr(C)), se(C);
|
|
873
|
+
}
|
|
874
|
+
var it = b.ReactCurrentOwner, Rt = {
|
|
875
|
+
key: !0,
|
|
876
|
+
ref: !0,
|
|
877
|
+
__self: !0,
|
|
878
|
+
__source: !0
|
|
879
|
+
}, Lr, Er, tn;
|
|
880
|
+
tn = {};
|
|
881
|
+
function ei(C) {
|
|
882
|
+
if (X.call(C, "ref")) {
|
|
883
|
+
var P = Object.getOwnPropertyDescriptor(C, "ref").get;
|
|
884
|
+
if (P && P.isReactWarning)
|
|
885
|
+
return !1;
|
|
886
|
+
}
|
|
887
|
+
return C.ref !== void 0;
|
|
888
|
+
}
|
|
889
|
+
function ti(C) {
|
|
890
|
+
if (X.call(C, "key")) {
|
|
891
|
+
var P = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
892
|
+
if (P && P.isReactWarning)
|
|
893
|
+
return !1;
|
|
894
|
+
}
|
|
895
|
+
return C.key !== void 0;
|
|
896
|
+
}
|
|
897
|
+
function Dn(C, P) {
|
|
898
|
+
if (typeof C.ref == "string" && it.current && P && it.current.stateNode !== P) {
|
|
899
|
+
var z = le(it.current.type);
|
|
900
|
+
tn[z] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', le(it.current.type), C.ref), tn[z] = !0);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
function ri(C, P) {
|
|
904
|
+
{
|
|
905
|
+
var z = function() {
|
|
906
|
+
Lr || (Lr = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", P));
|
|
907
|
+
};
|
|
908
|
+
z.isReactWarning = !0, Object.defineProperty(C, "key", {
|
|
909
|
+
get: z,
|
|
910
|
+
configurable: !0
|
|
911
|
+
});
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
function ni(C, P) {
|
|
915
|
+
{
|
|
916
|
+
var z = function() {
|
|
917
|
+
Er || (Er = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", P));
|
|
918
|
+
};
|
|
919
|
+
z.isReactWarning = !0, Object.defineProperty(C, "ref", {
|
|
920
|
+
get: z,
|
|
921
|
+
configurable: !0
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
var ai = function(C, P, z, he, Re, qe, Te) {
|
|
926
|
+
var we = {
|
|
927
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
928
|
+
$$typeof: t,
|
|
929
|
+
// Built-in properties that belong on the element
|
|
930
|
+
type: C,
|
|
931
|
+
key: P,
|
|
932
|
+
ref: z,
|
|
933
|
+
props: Te,
|
|
934
|
+
// Record the component responsible for creating this element.
|
|
935
|
+
_owner: qe
|
|
936
|
+
};
|
|
937
|
+
return we._store = {}, Object.defineProperty(we._store, "validated", {
|
|
938
|
+
configurable: !1,
|
|
939
|
+
enumerable: !1,
|
|
940
|
+
writable: !0,
|
|
941
|
+
value: !1
|
|
942
|
+
}), Object.defineProperty(we, "_self", {
|
|
943
|
+
configurable: !1,
|
|
944
|
+
enumerable: !1,
|
|
945
|
+
writable: !1,
|
|
946
|
+
value: he
|
|
947
|
+
}), Object.defineProperty(we, "_source", {
|
|
948
|
+
configurable: !1,
|
|
949
|
+
enumerable: !1,
|
|
950
|
+
writable: !1,
|
|
951
|
+
value: Re
|
|
952
|
+
}), Object.freeze && (Object.freeze(we.props), Object.freeze(we)), we;
|
|
953
|
+
};
|
|
954
|
+
function ii(C, P, z, he, Re) {
|
|
955
|
+
{
|
|
956
|
+
var qe, Te = {}, we = null, Dt = null;
|
|
957
|
+
z !== void 0 && (at(z), we = "" + z), ti(P) && (at(P.key), we = "" + P.key), ei(P) && (Dt = P.ref, Dn(P, Re));
|
|
958
|
+
for (qe in P)
|
|
959
|
+
X.call(P, qe) && !Rt.hasOwnProperty(qe) && (Te[qe] = P[qe]);
|
|
960
|
+
if (C && C.defaultProps) {
|
|
961
|
+
var gt = C.defaultProps;
|
|
962
|
+
for (qe in gt)
|
|
963
|
+
Te[qe] === void 0 && (Te[qe] = gt[qe]);
|
|
964
|
+
}
|
|
965
|
+
if (we || Dt) {
|
|
966
|
+
var yt = typeof C == "function" ? C.displayName || C.name || "Unknown" : C;
|
|
967
|
+
we && ri(Te, yt), Dt && ni(Te, yt);
|
|
968
|
+
}
|
|
969
|
+
return ai(C, we, Dt, Re, he, it.current, Te);
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
var oi = b.ReactCurrentOwner, Md = b.ReactDebugCurrentFrame;
|
|
973
|
+
function Fn(C) {
|
|
974
|
+
if (C) {
|
|
975
|
+
var P = C._owner, z = L(C.type, C._source, P ? P.type : null);
|
|
976
|
+
Md.setExtraStackFrame(z);
|
|
977
|
+
} else
|
|
978
|
+
Md.setExtraStackFrame(null);
|
|
979
|
+
}
|
|
980
|
+
var Ll;
|
|
981
|
+
Ll = !1;
|
|
982
|
+
function Nl(C) {
|
|
983
|
+
return typeof C == "object" && C !== null && C.$$typeof === t;
|
|
984
|
+
}
|
|
985
|
+
function $d() {
|
|
986
|
+
{
|
|
987
|
+
if (oi.current) {
|
|
988
|
+
var C = le(oi.current.type);
|
|
989
|
+
if (C)
|
|
990
|
+
return `
|
|
991
|
+
|
|
992
|
+
Check the render method of \`` + C + "`.";
|
|
993
|
+
}
|
|
994
|
+
return "";
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
function $b(C) {
|
|
998
|
+
{
|
|
999
|
+
if (C !== void 0) {
|
|
1000
|
+
var P = C.fileName.replace(/^.*[\\\/]/, ""), z = C.lineNumber;
|
|
1001
|
+
return `
|
|
1002
|
+
|
|
1003
|
+
Check your code at ` + P + ":" + z + ".";
|
|
1004
|
+
}
|
|
1005
|
+
return "";
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
var Ad = {};
|
|
1009
|
+
function Ab(C) {
|
|
1010
|
+
{
|
|
1011
|
+
var P = $d();
|
|
1012
|
+
if (!P) {
|
|
1013
|
+
var z = typeof C == "string" ? C : C.displayName || C.name;
|
|
1014
|
+
z && (P = `
|
|
1015
|
+
|
|
1016
|
+
Check the top-level render call using <` + z + ">.");
|
|
1017
|
+
}
|
|
1018
|
+
return P;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
function Pd(C, P) {
|
|
1022
|
+
{
|
|
1023
|
+
if (!C._store || C._store.validated || C.key != null)
|
|
1024
|
+
return;
|
|
1025
|
+
C._store.validated = !0;
|
|
1026
|
+
var z = Ab(P);
|
|
1027
|
+
if (Ad[z])
|
|
1028
|
+
return;
|
|
1029
|
+
Ad[z] = !0;
|
|
1030
|
+
var he = "";
|
|
1031
|
+
C && C._owner && C._owner !== oi.current && (he = " It was passed a child from " + le(C._owner.type) + "."), Fn(C), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', z, he), Fn(null);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
function Rd(C, P) {
|
|
1035
|
+
{
|
|
1036
|
+
if (typeof C != "object")
|
|
1037
|
+
return;
|
|
1038
|
+
if (ct(C))
|
|
1039
|
+
for (var z = 0; z < C.length; z++) {
|
|
1040
|
+
var he = C[z];
|
|
1041
|
+
Nl(he) && Pd(he, P);
|
|
1042
|
+
}
|
|
1043
|
+
else if (Nl(C))
|
|
1044
|
+
C._store && (C._store.validated = !0);
|
|
1045
|
+
else if (C) {
|
|
1046
|
+
var Re = m(C);
|
|
1047
|
+
if (typeof Re == "function" && Re !== C.entries)
|
|
1048
|
+
for (var qe = Re.call(C), Te; !(Te = qe.next()).done; )
|
|
1049
|
+
Nl(Te.value) && Pd(Te.value, P);
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
function Pb(C) {
|
|
1054
|
+
{
|
|
1055
|
+
var P = C.type;
|
|
1056
|
+
if (P == null || typeof P == "string")
|
|
1057
|
+
return;
|
|
1058
|
+
var z;
|
|
1059
|
+
if (typeof P == "function")
|
|
1060
|
+
z = P.propTypes;
|
|
1061
|
+
else if (typeof P == "object" && (P.$$typeof === u || // Note: Memo only checks outer props here.
|
|
1062
|
+
// Inner props are checked in the reconciler.
|
|
1063
|
+
P.$$typeof === f))
|
|
1064
|
+
z = P.propTypes;
|
|
1065
|
+
else
|
|
1066
|
+
return;
|
|
1067
|
+
if (z) {
|
|
1068
|
+
var he = le(P);
|
|
1069
|
+
Ne(z, C.props, "prop", he, C);
|
|
1070
|
+
} else if (P.PropTypes !== void 0 && !Ll) {
|
|
1071
|
+
Ll = !0;
|
|
1072
|
+
var Re = le(P);
|
|
1073
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Re || "Unknown");
|
|
1074
|
+
}
|
|
1075
|
+
typeof P.getDefaultProps == "function" && !P.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
function Rb(C) {
|
|
1079
|
+
{
|
|
1080
|
+
for (var P = Object.keys(C.props), z = 0; z < P.length; z++) {
|
|
1081
|
+
var he = P[z];
|
|
1082
|
+
if (he !== "children" && he !== "key") {
|
|
1083
|
+
Fn(C), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", he), Fn(null);
|
|
1084
|
+
break;
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
C.ref !== null && (Fn(C), x("Invalid attribute `ref` supplied to `React.Fragment`."), Fn(null));
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
function Dd(C, P, z, he, Re, qe) {
|
|
1091
|
+
{
|
|
1092
|
+
var Te = R(C);
|
|
1093
|
+
if (!Te) {
|
|
1094
|
+
var we = "";
|
|
1095
|
+
(C === void 0 || typeof C == "object" && C !== null && Object.keys(C).length === 0) && (we += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1096
|
+
var Dt = $b(Re);
|
|
1097
|
+
Dt ? we += Dt : we += $d();
|
|
1098
|
+
var gt;
|
|
1099
|
+
C === null ? gt = "null" : ct(C) ? gt = "array" : C !== void 0 && C.$$typeof === t ? (gt = "<" + (le(C.type) || "Unknown") + " />", we = " Did you accidentally export a JSX literal instead of a component?") : gt = typeof C, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", gt, we);
|
|
1100
|
+
}
|
|
1101
|
+
var yt = ii(C, P, z, Re, qe);
|
|
1102
|
+
if (yt == null)
|
|
1103
|
+
return yt;
|
|
1104
|
+
if (Te) {
|
|
1105
|
+
var tr = P.children;
|
|
1106
|
+
if (tr !== void 0)
|
|
1107
|
+
if (he)
|
|
1108
|
+
if (ct(tr)) {
|
|
1109
|
+
for (var In = 0; In < tr.length; In++)
|
|
1110
|
+
Rd(tr[In], C);
|
|
1111
|
+
Object.freeze && Object.freeze(tr);
|
|
1112
|
+
} else
|
|
1113
|
+
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1114
|
+
else
|
|
1115
|
+
Rd(tr, C);
|
|
1116
|
+
}
|
|
1117
|
+
return C === n ? Rb(yt) : Pb(yt), yt;
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
function Db(C, P, z) {
|
|
1121
|
+
return Dd(C, P, z, !0);
|
|
1122
|
+
}
|
|
1123
|
+
function Fb(C, P, z) {
|
|
1124
|
+
return Dd(C, P, z, !1);
|
|
1125
|
+
}
|
|
1126
|
+
var Ib = Fb, jb = Db;
|
|
1127
|
+
li.Fragment = n, li.jsx = Ib, li.jsxs = jb;
|
|
1128
|
+
}()), li;
|
|
1421
1129
|
}
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1130
|
+
process.env.NODE_ENV === "production" ? Pu.exports = ky() : Pu.exports = Ty();
|
|
1131
|
+
var g = Pu.exports;
|
|
1132
|
+
const J1 = ja({
|
|
1133
|
+
transformPagePoint: (e) => e,
|
|
1134
|
+
isStatic: !1,
|
|
1135
|
+
reducedMotion: "never"
|
|
1136
|
+
}), Gs = ja({}), Bc = ja(null), eg = typeof document < "u", qs = eg ? Us : Ze, zc = ja({ strict: !1 });
|
|
1137
|
+
function Oy(e, t, r, n) {
|
|
1138
|
+
const { visualElement: a } = qt(Gs), i = qt(zc), o = qt(Bc), s = qt(J1).reducedMotion, u = Oe();
|
|
1139
|
+
n = n || i.renderer, !u.current && n && (u.current = n(e, {
|
|
1140
|
+
visualState: t,
|
|
1141
|
+
parent: a,
|
|
1142
|
+
props: r,
|
|
1143
|
+
presenceContext: o,
|
|
1144
|
+
blockInitialAnimation: o ? o.initial === !1 : !1,
|
|
1145
|
+
reducedMotionConfig: s
|
|
1146
|
+
}));
|
|
1147
|
+
const l = u.current;
|
|
1148
|
+
j1(() => {
|
|
1149
|
+
l && l.update(r, o);
|
|
1150
|
+
});
|
|
1151
|
+
const c = Oe(!!window.HandoffAppearAnimations);
|
|
1152
|
+
return qs(() => {
|
|
1153
|
+
l && (l.render(), c.current && l.animationState && l.animationState.animateChanges());
|
|
1154
|
+
}), Ze(() => {
|
|
1155
|
+
l && (l.updateFeatures(), !c.current && l.animationState && l.animationState.animateChanges(), window.HandoffAppearAnimations = void 0, c.current = !1);
|
|
1156
|
+
}), l;
|
|
1428
1157
|
}
|
|
1429
|
-
function
|
|
1430
|
-
|
|
1431
|
-
return Lx(t, e.length - 1), t;
|
|
1158
|
+
function My(e) {
|
|
1159
|
+
return typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
1432
1160
|
}
|
|
1433
|
-
function $
|
|
1434
|
-
return
|
|
1161
|
+
function $y(e, t, r) {
|
|
1162
|
+
return xt(
|
|
1163
|
+
(n) => {
|
|
1164
|
+
n && e.mount && e.mount(n), t && (n ? t.mount(n) : t.unmount()), r && (typeof r == "function" ? r(n) : My(r) && (r.current = n));
|
|
1165
|
+
},
|
|
1166
|
+
/**
|
|
1167
|
+
* Only pass a new ref callback to React if we've received a visual element
|
|
1168
|
+
* factory. Otherwise we'll be mounting/remounting every time externalRef
|
|
1169
|
+
* or other dependencies change.
|
|
1170
|
+
*/
|
|
1171
|
+
[t]
|
|
1172
|
+
);
|
|
1435
1173
|
}
|
|
1436
|
-
function
|
|
1437
|
-
e
|
|
1174
|
+
function Ru(e) {
|
|
1175
|
+
return typeof e == "string" || Array.isArray(e);
|
|
1438
1176
|
}
|
|
1439
|
-
function
|
|
1440
|
-
|
|
1441
|
-
r > -1 && e.splice(r, 1);
|
|
1177
|
+
function tg(e) {
|
|
1178
|
+
return typeof e == "object" && typeof e.start == "function";
|
|
1442
1179
|
}
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1180
|
+
const Ay = [
|
|
1181
|
+
"animate",
|
|
1182
|
+
"whileInView",
|
|
1183
|
+
"whileFocus",
|
|
1184
|
+
"whileHover",
|
|
1185
|
+
"whileTap",
|
|
1186
|
+
"whileDrag",
|
|
1187
|
+
"exit"
|
|
1188
|
+
], Py = ["initial", ...Ay];
|
|
1189
|
+
function Wc(e) {
|
|
1190
|
+
return tg(e.animate) || Py.some((t) => Ru(e[t]));
|
|
1191
|
+
}
|
|
1192
|
+
function Ry(e) {
|
|
1193
|
+
return !!(Wc(e) || e.variants);
|
|
1194
|
+
}
|
|
1195
|
+
function Dy(e, t) {
|
|
1196
|
+
if (Wc(e)) {
|
|
1197
|
+
const { initial: r, animate: n } = e;
|
|
1198
|
+
return {
|
|
1199
|
+
initial: r === !1 || Ru(r) ? r : void 0,
|
|
1200
|
+
animate: Ru(n) ? n : void 0
|
|
1201
|
+
};
|
|
1463
1202
|
}
|
|
1464
|
-
|
|
1465
|
-
|
|
1203
|
+
return e.inherit !== !1 ? t : {};
|
|
1204
|
+
}
|
|
1205
|
+
function Fy(e) {
|
|
1206
|
+
const { initial: t, animate: r } = Dy(e, qt(Gs));
|
|
1207
|
+
return _t(() => ({ initial: t, animate: r }), [Nd(t), Nd(r)]);
|
|
1208
|
+
}
|
|
1209
|
+
function Nd(e) {
|
|
1210
|
+
return Array.isArray(e) ? e.join(" ") : e;
|
|
1211
|
+
}
|
|
1212
|
+
const Bd = {
|
|
1213
|
+
animation: [
|
|
1214
|
+
"animate",
|
|
1215
|
+
"variants",
|
|
1216
|
+
"whileHover",
|
|
1217
|
+
"whileTap",
|
|
1218
|
+
"exit",
|
|
1219
|
+
"whileInView",
|
|
1220
|
+
"whileFocus",
|
|
1221
|
+
"whileDrag"
|
|
1222
|
+
],
|
|
1223
|
+
exit: ["exit"],
|
|
1224
|
+
drag: ["drag", "dragControls"],
|
|
1225
|
+
focus: ["whileFocus"],
|
|
1226
|
+
hover: ["whileHover", "onHoverStart", "onHoverEnd"],
|
|
1227
|
+
tap: ["whileTap", "onTap", "onTapStart", "onTapCancel"],
|
|
1228
|
+
pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"],
|
|
1229
|
+
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
1230
|
+
layout: ["layout", "layoutId"]
|
|
1231
|
+
}, Du = {};
|
|
1232
|
+
for (const e in Bd)
|
|
1233
|
+
Du[e] = {
|
|
1234
|
+
isEnabled: (t) => Bd[e].some((r) => !!t[r])
|
|
1235
|
+
};
|
|
1236
|
+
function Fu(e) {
|
|
1237
|
+
for (const t in e)
|
|
1238
|
+
Du[t] = {
|
|
1239
|
+
...Du[t],
|
|
1240
|
+
...e[t]
|
|
1241
|
+
};
|
|
1242
|
+
}
|
|
1243
|
+
const rg = ja({}), Iy = ja({}), jy = Symbol.for("motionComponentSymbol");
|
|
1244
|
+
function Ly({ preloadedFeatures: e, createVisualElement: t, useRender: r, useVisualState: n, Component: a }) {
|
|
1245
|
+
e && Fu(e);
|
|
1246
|
+
function i(s, u) {
|
|
1247
|
+
let l;
|
|
1248
|
+
const c = {
|
|
1249
|
+
...qt(J1),
|
|
1250
|
+
...s,
|
|
1251
|
+
layoutId: Ny(s)
|
|
1252
|
+
}, { isStatic: f } = c, d = Fy(s), h = n(s, f);
|
|
1253
|
+
if (!f && eg) {
|
|
1254
|
+
d.visualElement = Oy(a, h, c, t);
|
|
1255
|
+
const v = qt(Iy), p = qt(zc).strict;
|
|
1256
|
+
d.visualElement && (l = d.visualElement.loadFeatures(
|
|
1257
|
+
// Note: Pass the full new combined props to correctly re-render dynamic feature components.
|
|
1258
|
+
c,
|
|
1259
|
+
p,
|
|
1260
|
+
e,
|
|
1261
|
+
v
|
|
1262
|
+
));
|
|
1263
|
+
}
|
|
1264
|
+
return de.createElement(
|
|
1265
|
+
Gs.Provider,
|
|
1266
|
+
{ value: d },
|
|
1267
|
+
l && d.visualElement ? de.createElement(l, { visualElement: d.visualElement, ...c }) : null,
|
|
1268
|
+
r(a, s, $y(h, d.visualElement, u), h, f, d.visualElement)
|
|
1269
|
+
);
|
|
1466
1270
|
}
|
|
1271
|
+
const o = Ot(i);
|
|
1272
|
+
return o[jy] = a, o;
|
|
1467
1273
|
}
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
e
|
|
1274
|
+
function Ny({ layoutId: e }) {
|
|
1275
|
+
const t = qt(rg).id;
|
|
1276
|
+
return t && e !== void 0 ? t + "-" + e : e;
|
|
1471
1277
|
}
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
* @param init - The initiating value
|
|
1476
|
-
* @param config - Optional configuration options
|
|
1477
|
-
*
|
|
1478
|
-
* - `transformer`: A function to transform incoming values with.
|
|
1479
|
-
*
|
|
1480
|
-
* @internal
|
|
1481
|
-
*/
|
|
1482
|
-
constructor(t, r = {}) {
|
|
1483
|
-
this.version = "10.16.4", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (n, a = !0) => {
|
|
1484
|
-
this.prev = this.current, this.current = n;
|
|
1485
|
-
const { delta: i, timestamp: o } = mg;
|
|
1486
|
-
this.lastUpdated !== o && (this.timeDelta = i, this.lastUpdated = o, br.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), a && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
|
1487
|
-
}, this.scheduleVelocityCheck = () => br.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: n }) => {
|
|
1488
|
-
n !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
|
|
1489
|
-
}, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = Hx(this.current), this.owner = r.owner;
|
|
1278
|
+
function By(e) {
|
|
1279
|
+
function t(n, a = {}) {
|
|
1280
|
+
return Ly(e(n, a));
|
|
1490
1281
|
}
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
* export const MyComponent = () => {
|
|
1502
|
-
* const x = useMotionValue(0)
|
|
1503
|
-
* const y = useMotionValue(0)
|
|
1504
|
-
* const opacity = useMotionValue(1)
|
|
1505
|
-
*
|
|
1506
|
-
* useEffect(() => {
|
|
1507
|
-
* function updateOpacity() {
|
|
1508
|
-
* const maxXY = Math.max(x.get(), y.get())
|
|
1509
|
-
* const newOpacity = transform(maxXY, [0, 100], [1, 0])
|
|
1510
|
-
* opacity.set(newOpacity)
|
|
1511
|
-
* }
|
|
1512
|
-
*
|
|
1513
|
-
* const unsubscribeX = x.on("change", updateOpacity)
|
|
1514
|
-
* const unsubscribeY = y.on("change", updateOpacity)
|
|
1515
|
-
*
|
|
1516
|
-
* return () => {
|
|
1517
|
-
* unsubscribeX()
|
|
1518
|
-
* unsubscribeY()
|
|
1519
|
-
* }
|
|
1520
|
-
* }, [])
|
|
1521
|
-
*
|
|
1522
|
-
* return <motion.div style={{ x }} />
|
|
1523
|
-
* }
|
|
1524
|
-
* ```
|
|
1525
|
-
*
|
|
1526
|
-
* @param subscriber - A function that receives the latest value.
|
|
1527
|
-
* @returns A function that, when called, will cancel this subscription.
|
|
1528
|
-
*
|
|
1529
|
-
* @deprecated
|
|
1530
|
-
*/
|
|
1531
|
-
onChange(t) {
|
|
1532
|
-
return process.env.NODE_ENV !== "production" && Vx(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
|
|
1533
|
-
}
|
|
1534
|
-
on(t, r) {
|
|
1535
|
-
this.events[t] || (this.events[t] = new Wx());
|
|
1536
|
-
const n = this.events[t].add(r);
|
|
1537
|
-
return t === "change" ? () => {
|
|
1538
|
-
n(), br.read(() => {
|
|
1539
|
-
this.events.change.getSize() || this.stop();
|
|
1540
|
-
});
|
|
1541
|
-
} : n;
|
|
1542
|
-
}
|
|
1543
|
-
clearListeners() {
|
|
1544
|
-
for (const t in this.events)
|
|
1545
|
-
this.events[t].clear();
|
|
1546
|
-
}
|
|
1547
|
-
/**
|
|
1548
|
-
* Attaches a passive effect to the `MotionValue`.
|
|
1549
|
-
*
|
|
1550
|
-
* @internal
|
|
1551
|
-
*/
|
|
1552
|
-
attach(t, r) {
|
|
1553
|
-
this.passiveEffect = t, this.stopPassiveEffect = r;
|
|
1554
|
-
}
|
|
1555
|
-
/**
|
|
1556
|
-
* Sets the state of the `MotionValue`.
|
|
1557
|
-
*
|
|
1558
|
-
* @remarks
|
|
1559
|
-
*
|
|
1560
|
-
* ```jsx
|
|
1561
|
-
* const x = useMotionValue(0)
|
|
1562
|
-
* x.set(10)
|
|
1563
|
-
* ```
|
|
1564
|
-
*
|
|
1565
|
-
* @param latest - Latest value to set.
|
|
1566
|
-
* @param render - Whether to notify render subscribers. Defaults to `true`
|
|
1567
|
-
*
|
|
1568
|
-
* @public
|
|
1569
|
-
*/
|
|
1570
|
-
set(t, r = !0) {
|
|
1571
|
-
!r || !this.passiveEffect ? this.updateAndNotify(t, r) : this.passiveEffect(t, this.updateAndNotify);
|
|
1572
|
-
}
|
|
1573
|
-
setWithVelocity(t, r, n) {
|
|
1574
|
-
this.set(r), this.prev = t, this.timeDelta = n;
|
|
1575
|
-
}
|
|
1576
|
-
/**
|
|
1577
|
-
* Set the state of the `MotionValue`, stopping any active animations,
|
|
1578
|
-
* effects, and resets velocity to `0`.
|
|
1579
|
-
*/
|
|
1580
|
-
jump(t) {
|
|
1581
|
-
this.updateAndNotify(t), this.prev = t, this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1582
|
-
}
|
|
1583
|
-
/**
|
|
1584
|
-
* Returns the latest state of `MotionValue`
|
|
1585
|
-
*
|
|
1586
|
-
* @returns - The latest state of `MotionValue`
|
|
1587
|
-
*
|
|
1588
|
-
* @public
|
|
1589
|
-
*/
|
|
1590
|
-
get() {
|
|
1591
|
-
return this.current;
|
|
1592
|
-
}
|
|
1593
|
-
/**
|
|
1594
|
-
* @public
|
|
1595
|
-
*/
|
|
1596
|
-
getPrevious() {
|
|
1597
|
-
return this.prev;
|
|
1598
|
-
}
|
|
1599
|
-
/**
|
|
1600
|
-
* Returns the latest velocity of `MotionValue`
|
|
1601
|
-
*
|
|
1602
|
-
* @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.
|
|
1603
|
-
*
|
|
1604
|
-
* @public
|
|
1605
|
-
*/
|
|
1606
|
-
getVelocity() {
|
|
1607
|
-
return this.canTrackVelocity ? (
|
|
1608
|
-
// These casts could be avoided if parseFloat would be typed better
|
|
1609
|
-
$g(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
|
|
1610
|
-
) : 0;
|
|
1611
|
-
}
|
|
1612
|
-
/**
|
|
1613
|
-
* Registers a new animation to control this `MotionValue`. Only one
|
|
1614
|
-
* animation can drive a `MotionValue` at one time.
|
|
1615
|
-
*
|
|
1616
|
-
* ```jsx
|
|
1617
|
-
* value.start()
|
|
1618
|
-
* ```
|
|
1619
|
-
*
|
|
1620
|
-
* @param animation - A function that starts the provided animation
|
|
1621
|
-
*
|
|
1622
|
-
* @internal
|
|
1623
|
-
*/
|
|
1624
|
-
start(t) {
|
|
1625
|
-
return this.stop(), new Promise((r) => {
|
|
1626
|
-
this.hasAnimated = !0, this.animation = t(r), this.events.animationStart && this.events.animationStart.notify();
|
|
1627
|
-
}).then(() => {
|
|
1628
|
-
this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
|
|
1629
|
-
});
|
|
1630
|
-
}
|
|
1631
|
-
/**
|
|
1632
|
-
* Stop the currently active animation.
|
|
1633
|
-
*
|
|
1634
|
-
* @public
|
|
1635
|
-
*/
|
|
1636
|
-
stop() {
|
|
1637
|
-
this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
|
|
1638
|
-
}
|
|
1639
|
-
/**
|
|
1640
|
-
* Returns `true` if this value is currently animating.
|
|
1641
|
-
*
|
|
1642
|
-
* @public
|
|
1643
|
-
*/
|
|
1644
|
-
isAnimating() {
|
|
1645
|
-
return !!this.animation;
|
|
1646
|
-
}
|
|
1647
|
-
clearAnimation() {
|
|
1648
|
-
delete this.animation;
|
|
1649
|
-
}
|
|
1650
|
-
/**
|
|
1651
|
-
* Destroy and clean up subscribers to this `MotionValue`.
|
|
1652
|
-
*
|
|
1653
|
-
* The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically
|
|
1654
|
-
* handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually
|
|
1655
|
-
* created a `MotionValue` via the `motionValue` function.
|
|
1656
|
-
*
|
|
1657
|
-
* @public
|
|
1658
|
-
*/
|
|
1659
|
-
destroy() {
|
|
1660
|
-
this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1661
|
-
}
|
|
1662
|
-
}
|
|
1663
|
-
function So(e, t) {
|
|
1664
|
-
return new Ux(e, t);
|
|
1665
|
-
}
|
|
1666
|
-
const sr = Ly(Ex);
|
|
1667
|
-
function Ag() {
|
|
1668
|
-
const e = Oe(!1);
|
|
1669
|
-
return qs(() => (e.current = !0, () => {
|
|
1670
|
-
e.current = !1;
|
|
1671
|
-
}), []), e;
|
|
1672
|
-
}
|
|
1673
|
-
function Yx() {
|
|
1674
|
-
const e = Ag(), [t, r] = bt(0), n = xt(() => {
|
|
1675
|
-
e.current && r(t + 1);
|
|
1676
|
-
}, [t]);
|
|
1677
|
-
return [xt(() => br.postRender(n), [n]), t];
|
|
1678
|
-
}
|
|
1679
|
-
class Gx extends de.Component {
|
|
1680
|
-
getSnapshotBeforeUpdate(t) {
|
|
1681
|
-
const r = this.props.childRef.current;
|
|
1682
|
-
if (r && t.isPresent && !this.props.isPresent) {
|
|
1683
|
-
const n = this.props.sizeRef.current;
|
|
1684
|
-
n.height = r.offsetHeight || 0, n.width = r.offsetWidth || 0, n.top = r.offsetTop, n.left = r.offsetLeft;
|
|
1685
|
-
}
|
|
1686
|
-
return null;
|
|
1687
|
-
}
|
|
1688
|
-
/**
|
|
1689
|
-
* Required with getSnapshotBeforeUpdate to stop React complaining.
|
|
1690
|
-
*/
|
|
1691
|
-
componentDidUpdate() {
|
|
1692
|
-
}
|
|
1693
|
-
render() {
|
|
1694
|
-
return this.props.children;
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1697
|
-
function qx({ children: e, isPresent: t }) {
|
|
1698
|
-
const r = Ic(), n = Oe(null), a = Oe({
|
|
1699
|
-
width: 0,
|
|
1700
|
-
height: 0,
|
|
1701
|
-
top: 0,
|
|
1702
|
-
left: 0
|
|
1282
|
+
if (typeof Proxy > "u")
|
|
1283
|
+
return t;
|
|
1284
|
+
const r = /* @__PURE__ */ new Map();
|
|
1285
|
+
return new Proxy(t, {
|
|
1286
|
+
/**
|
|
1287
|
+
* Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
|
|
1288
|
+
* The prop name is passed through as `key` and we can use that to generate a `motion`
|
|
1289
|
+
* DOM component with that name.
|
|
1290
|
+
*/
|
|
1291
|
+
get: (n, a) => (r.has(a) || r.set(a, t(a)), r.get(a))
|
|
1703
1292
|
});
|
|
1704
|
-
return j1(() => {
|
|
1705
|
-
const { width: i, height: o, top: s, left: u } = a.current;
|
|
1706
|
-
if (t || !n.current || !i || !o)
|
|
1707
|
-
return;
|
|
1708
|
-
n.current.dataset.motionPopId = r;
|
|
1709
|
-
const l = document.createElement("style");
|
|
1710
|
-
return document.head.appendChild(l), l.sheet && l.sheet.insertRule(`
|
|
1711
|
-
[data-motion-pop-id="${r}"] {
|
|
1712
|
-
position: absolute !important;
|
|
1713
|
-
width: ${i}px !important;
|
|
1714
|
-
height: ${o}px !important;
|
|
1715
|
-
top: ${s}px !important;
|
|
1716
|
-
left: ${u}px !important;
|
|
1717
|
-
}
|
|
1718
|
-
`), () => {
|
|
1719
|
-
document.head.removeChild(l);
|
|
1720
|
-
};
|
|
1721
|
-
}, [t]), de.createElement(Gx, { isPresent: t, childRef: n, sizeRef: a }, de.cloneElement(e, { ref: n }));
|
|
1722
1293
|
}
|
|
1723
|
-
const
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1294
|
+
const zy = [
|
|
1295
|
+
"animate",
|
|
1296
|
+
"circle",
|
|
1297
|
+
"defs",
|
|
1298
|
+
"desc",
|
|
1299
|
+
"ellipse",
|
|
1300
|
+
"g",
|
|
1301
|
+
"image",
|
|
1302
|
+
"line",
|
|
1303
|
+
"filter",
|
|
1304
|
+
"marker",
|
|
1305
|
+
"mask",
|
|
1306
|
+
"metadata",
|
|
1307
|
+
"path",
|
|
1308
|
+
"pattern",
|
|
1309
|
+
"polygon",
|
|
1310
|
+
"polyline",
|
|
1311
|
+
"rect",
|
|
1312
|
+
"stop",
|
|
1313
|
+
"switch",
|
|
1314
|
+
"symbol",
|
|
1315
|
+
"svg",
|
|
1316
|
+
"text",
|
|
1317
|
+
"tspan",
|
|
1318
|
+
"use",
|
|
1319
|
+
"view"
|
|
1320
|
+
];
|
|
1321
|
+
function ng(e) {
|
|
1322
|
+
return (
|
|
1739
1323
|
/**
|
|
1740
|
-
* If
|
|
1741
|
-
*
|
|
1742
|
-
* so they can detect that layout change.
|
|
1324
|
+
* If it's not a string, it's a custom React component. Currently we only support
|
|
1325
|
+
* HTML custom React components.
|
|
1743
1326
|
*/
|
|
1744
|
-
|
|
1327
|
+
typeof e != "string" || /**
|
|
1328
|
+
* If it contains a dash, the element is a custom HTML webcomponent.
|
|
1329
|
+
*/
|
|
1330
|
+
e.includes("-") ? !1 : (
|
|
1331
|
+
/**
|
|
1332
|
+
* If it's in our list of lowercase SVG tags, it's an SVG component
|
|
1333
|
+
*/
|
|
1334
|
+
!!(zy.indexOf(e) > -1 || /**
|
|
1335
|
+
* If it contains a capital letter, it's an SVG component
|
|
1336
|
+
*/
|
|
1337
|
+
/[A-Z]/.test(e))
|
|
1338
|
+
)
|
|
1745
1339
|
);
|
|
1746
|
-
return _t(() => {
|
|
1747
|
-
s.forEach((c, f) => s.set(f, !1));
|
|
1748
|
-
}, [r]), de.useEffect(() => {
|
|
1749
|
-
!r && !s.size && n && n();
|
|
1750
|
-
}, [r]), o === "popLayout" && (e = de.createElement(qx, { isPresent: r }, e)), de.createElement(Bc.Provider, { value: l }, e);
|
|
1751
|
-
};
|
|
1752
|
-
function Kx() {
|
|
1753
|
-
return /* @__PURE__ */ new Map();
|
|
1754
|
-
}
|
|
1755
|
-
function Xx(e) {
|
|
1756
|
-
return Ze(() => () => e(), []);
|
|
1757
1340
|
}
|
|
1758
|
-
const
|
|
1759
|
-
function
|
|
1760
|
-
|
|
1761
|
-
const n = qn(r);
|
|
1762
|
-
t.set(n, r);
|
|
1763
|
-
});
|
|
1341
|
+
const ag = {};
|
|
1342
|
+
function RK(e) {
|
|
1343
|
+
Object.assign(ag, e);
|
|
1764
1344
|
}
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1345
|
+
const Ks = [
|
|
1346
|
+
"transformPerspective",
|
|
1347
|
+
"x",
|
|
1348
|
+
"y",
|
|
1349
|
+
"z",
|
|
1350
|
+
"translateX",
|
|
1351
|
+
"translateY",
|
|
1352
|
+
"translateZ",
|
|
1353
|
+
"scale",
|
|
1354
|
+
"scaleX",
|
|
1355
|
+
"scaleY",
|
|
1356
|
+
"rotate",
|
|
1357
|
+
"rotateX",
|
|
1358
|
+
"rotateY",
|
|
1359
|
+
"rotateZ",
|
|
1360
|
+
"skew",
|
|
1361
|
+
"skewX",
|
|
1362
|
+
"skewY"
|
|
1363
|
+
], ig = new Set(Ks);
|
|
1364
|
+
function og(e, { layout: t, layoutId: r }) {
|
|
1365
|
+
return ig.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!ag[e] || e === "opacity");
|
|
1770
1366
|
}
|
|
1771
|
-
const
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
for (let x = 0; x < b; x++) {
|
|
1785
|
-
const E = p[x];
|
|
1786
|
-
m.indexOf(E) === -1 && !f.has(E) && f.set(E, void 0);
|
|
1787
|
-
}
|
|
1788
|
-
return o === "wait" && f.size && (c = []), f.forEach((x, E) => {
|
|
1789
|
-
if (m.indexOf(E) !== -1)
|
|
1790
|
-
return;
|
|
1791
|
-
const T = h.get(E);
|
|
1792
|
-
if (!T)
|
|
1793
|
-
return;
|
|
1794
|
-
const w = p.indexOf(E);
|
|
1795
|
-
let _ = x;
|
|
1796
|
-
if (!_) {
|
|
1797
|
-
const k = () => {
|
|
1798
|
-
h.delete(E), f.delete(E);
|
|
1799
|
-
const O = d.current.findIndex(($) => $.key === E);
|
|
1800
|
-
if (d.current.splice(O, 1), !f.size) {
|
|
1801
|
-
if (d.current = l, u.current === !1)
|
|
1802
|
-
return;
|
|
1803
|
-
s(), n && n();
|
|
1804
|
-
}
|
|
1805
|
-
};
|
|
1806
|
-
_ = de.createElement(Hl, { key: qn(T), isPresent: !1, onExitComplete: k, custom: t, presenceAffectsLayout: i, mode: o }, T), f.set(E, _);
|
|
1367
|
+
const mn = (e) => !!(e && e.getVelocity), Wy = {
|
|
1368
|
+
x: "translateX",
|
|
1369
|
+
y: "translateY",
|
|
1370
|
+
z: "translateZ",
|
|
1371
|
+
transformPerspective: "perspective"
|
|
1372
|
+
}, Vy = Ks.length;
|
|
1373
|
+
function Hy(e, { enableHardwareAcceleration: t = !0, allowTransformNone: r = !0 }, n, a) {
|
|
1374
|
+
let i = "";
|
|
1375
|
+
for (let o = 0; o < Vy; o++) {
|
|
1376
|
+
const s = Ks[o];
|
|
1377
|
+
if (e[s] !== void 0) {
|
|
1378
|
+
const u = Wy[s] || s;
|
|
1379
|
+
i += `${u}(${e[s]}) `;
|
|
1807
1380
|
}
|
|
1808
|
-
c.splice(w, 0, _);
|
|
1809
|
-
}), c = c.map((x) => {
|
|
1810
|
-
const E = x.key;
|
|
1811
|
-
return f.has(E) ? x : de.createElement(Hl, { key: qn(x), isPresent: !0, presenceAffectsLayout: i, mode: o }, x);
|
|
1812
|
-
}), process.env.NODE_ENV !== "production" && o === "wait" && c.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`), de.createElement(de.Fragment, null, f.size ? c : c.map((x) => L1(x)));
|
|
1813
|
-
};
|
|
1814
|
-
function Jx({ children: e, features: t, strict: r = !1 }) {
|
|
1815
|
-
const [, n] = bt(!Ul(t)), a = Oe(void 0);
|
|
1816
|
-
if (!Ul(t)) {
|
|
1817
|
-
const { renderer: i, ...o } = t;
|
|
1818
|
-
a.current = i, Du(o);
|
|
1819
1381
|
}
|
|
1820
|
-
return
|
|
1821
|
-
Ul(t) && t().then(({ renderer: i, ...o }) => {
|
|
1822
|
-
Du(o), a.current = i, n(!0);
|
|
1823
|
-
});
|
|
1824
|
-
}, []), de.createElement(zc.Provider, { value: { renderer: a.current, strict: r } }, e);
|
|
1382
|
+
return t && !e.z && (i += "translateZ(0)"), i = i.trim(), a ? i = a(e, n ? "" : i) : r && n && (i = "none"), i;
|
|
1825
1383
|
}
|
|
1826
|
-
|
|
1827
|
-
|
|
1384
|
+
const sg = (e) => (t) => typeof t == "string" && t.startsWith(e), Uy = sg("--"), DK = sg("var(--"), Yy = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, Gy = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Vc = (e, t, r) => Math.min(Math.max(r, e), t), Zi = {
|
|
1385
|
+
test: (e) => typeof e == "number",
|
|
1386
|
+
parse: parseFloat,
|
|
1387
|
+
transform: (e) => e
|
|
1388
|
+
}, Ti = {
|
|
1389
|
+
...Zi,
|
|
1390
|
+
transform: (e) => Vc(0, 1, e)
|
|
1391
|
+
}, Co = {
|
|
1392
|
+
...Zi,
|
|
1393
|
+
default: 1
|
|
1394
|
+
}, Oi = (e) => Math.round(e * 1e5) / 1e5, Hc = /(-)?([\d]*\.?[\d])+/g, lg = /(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi, qy = /^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
|
|
1395
|
+
function Qi(e) {
|
|
1396
|
+
return typeof e == "string";
|
|
1828
1397
|
}
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1398
|
+
const Ji = (e) => ({
|
|
1399
|
+
test: (t) => Qi(t) && t.endsWith(e) && t.split(" ").length === 1,
|
|
1400
|
+
parse: parseFloat,
|
|
1401
|
+
transform: (t) => `${t}${e}`
|
|
1402
|
+
}), rn = Ji("deg"), Mi = Ji("%"), ge = Ji("px"), FK = Ji("vh"), IK = Ji("vw"), zd = {
|
|
1403
|
+
...Mi,
|
|
1404
|
+
parse: (e) => Mi.parse(e) / 100,
|
|
1405
|
+
transform: (e) => Mi.transform(e * 100)
|
|
1406
|
+
}, Wd = {
|
|
1407
|
+
...Zi,
|
|
1408
|
+
transform: Math.round
|
|
1409
|
+
}, Ky = {
|
|
1410
|
+
// Border props
|
|
1411
|
+
borderWidth: ge,
|
|
1412
|
+
borderTopWidth: ge,
|
|
1413
|
+
borderRightWidth: ge,
|
|
1414
|
+
borderBottomWidth: ge,
|
|
1415
|
+
borderLeftWidth: ge,
|
|
1416
|
+
borderRadius: ge,
|
|
1417
|
+
radius: ge,
|
|
1418
|
+
borderTopLeftRadius: ge,
|
|
1419
|
+
borderTopRightRadius: ge,
|
|
1420
|
+
borderBottomRightRadius: ge,
|
|
1421
|
+
borderBottomLeftRadius: ge,
|
|
1422
|
+
// Positioning props
|
|
1423
|
+
width: ge,
|
|
1424
|
+
maxWidth: ge,
|
|
1425
|
+
height: ge,
|
|
1426
|
+
maxHeight: ge,
|
|
1427
|
+
size: ge,
|
|
1428
|
+
top: ge,
|
|
1429
|
+
right: ge,
|
|
1430
|
+
bottom: ge,
|
|
1431
|
+
left: ge,
|
|
1432
|
+
// Spacing props
|
|
1433
|
+
padding: ge,
|
|
1434
|
+
paddingTop: ge,
|
|
1435
|
+
paddingRight: ge,
|
|
1436
|
+
paddingBottom: ge,
|
|
1437
|
+
paddingLeft: ge,
|
|
1438
|
+
margin: ge,
|
|
1439
|
+
marginTop: ge,
|
|
1440
|
+
marginRight: ge,
|
|
1441
|
+
marginBottom: ge,
|
|
1442
|
+
marginLeft: ge,
|
|
1443
|
+
// Transform props
|
|
1444
|
+
rotate: rn,
|
|
1445
|
+
rotateX: rn,
|
|
1446
|
+
rotateY: rn,
|
|
1447
|
+
rotateZ: rn,
|
|
1448
|
+
scale: Co,
|
|
1449
|
+
scaleX: Co,
|
|
1450
|
+
scaleY: Co,
|
|
1451
|
+
scaleZ: Co,
|
|
1452
|
+
skew: rn,
|
|
1453
|
+
skewX: rn,
|
|
1454
|
+
skewY: rn,
|
|
1455
|
+
distance: ge,
|
|
1456
|
+
translateX: ge,
|
|
1457
|
+
translateY: ge,
|
|
1458
|
+
translateZ: ge,
|
|
1459
|
+
x: ge,
|
|
1460
|
+
y: ge,
|
|
1461
|
+
z: ge,
|
|
1462
|
+
perspective: ge,
|
|
1463
|
+
transformPerspective: ge,
|
|
1464
|
+
opacity: Ti,
|
|
1465
|
+
originX: zd,
|
|
1466
|
+
originY: zd,
|
|
1467
|
+
originZ: ge,
|
|
1468
|
+
// Misc
|
|
1469
|
+
zIndex: Wd,
|
|
1470
|
+
// SVG
|
|
1471
|
+
fillOpacity: Ti,
|
|
1472
|
+
strokeOpacity: Ti,
|
|
1473
|
+
numOctaves: Wd
|
|
1474
|
+
};
|
|
1475
|
+
function ug(e, t, r, n) {
|
|
1476
|
+
const { style: a, vars: i, transform: o, transformOrigin: s } = e;
|
|
1477
|
+
let u = !1, l = !1, c = !0;
|
|
1478
|
+
for (const f in t) {
|
|
1479
|
+
const d = t[f];
|
|
1480
|
+
if (Uy(f)) {
|
|
1481
|
+
i[f] = d;
|
|
1482
|
+
continue;
|
|
1483
|
+
}
|
|
1484
|
+
const h = Ky[f], v = Gy(d, h);
|
|
1485
|
+
if (ig.has(f)) {
|
|
1486
|
+
if (u = !0, o[f] = v, !c)
|
|
1487
|
+
continue;
|
|
1488
|
+
d !== (h.default || 0) && (c = !1);
|
|
1489
|
+
} else
|
|
1490
|
+
f.startsWith("origin") ? (l = !0, s[f] = v) : a[f] = v;
|
|
1491
|
+
}
|
|
1492
|
+
if (t.transform || (u || n ? a.transform = Hy(e.transform, r, c, n) : a.transform && (a.transform = "none")), l) {
|
|
1493
|
+
const { originX: f = "50%", originY: d = "50%", originZ: h = 0 } = s;
|
|
1494
|
+
a.transformOrigin = `${f} ${d} ${h}`;
|
|
1495
|
+
}
|
|
1837
1496
|
}
|
|
1838
|
-
const
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
height: e.offsetHeight
|
|
1848
|
-
};
|
|
1497
|
+
const Uc = () => ({
|
|
1498
|
+
style: {},
|
|
1499
|
+
transform: {},
|
|
1500
|
+
transformOrigin: {},
|
|
1501
|
+
vars: {}
|
|
1502
|
+
});
|
|
1503
|
+
function cg(e, t, r) {
|
|
1504
|
+
for (const n in t)
|
|
1505
|
+
!mn(t[n]) && !og(n, r) && (e[n] = t[n]);
|
|
1849
1506
|
}
|
|
1850
|
-
function
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
contentSize: t,
|
|
1856
|
-
get size() {
|
|
1857
|
-
return t5(e, r);
|
|
1858
|
-
}
|
|
1859
|
-
});
|
|
1860
|
-
});
|
|
1507
|
+
function Xy({ transformTemplate: e }, t, r) {
|
|
1508
|
+
return _t(() => {
|
|
1509
|
+
const n = Uc();
|
|
1510
|
+
return ug(n, t, { enableHardwareAcceleration: !r }, e), Object.assign({}, n.vars, n.style);
|
|
1511
|
+
}, [t]);
|
|
1861
1512
|
}
|
|
1862
|
-
function
|
|
1863
|
-
e.
|
|
1513
|
+
function Zy(e, t, r) {
|
|
1514
|
+
const n = e.style || {}, a = {};
|
|
1515
|
+
return cg(a, n, e), Object.assign(a, Xy(e, t, r)), e.transformValues ? e.transformValues(a) : a;
|
|
1864
1516
|
}
|
|
1865
|
-
function
|
|
1866
|
-
|
|
1517
|
+
function Qy(e, t, r) {
|
|
1518
|
+
const n = {}, a = Zy(e, t, r);
|
|
1519
|
+
return e.drag && e.dragListener !== !1 && (n.draggable = !1, a.userSelect = a.WebkitUserSelect = a.WebkitTouchCallout = "none", a.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = a, n;
|
|
1867
1520
|
}
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1521
|
+
const Jy = /* @__PURE__ */ new Set([
|
|
1522
|
+
"animate",
|
|
1523
|
+
"exit",
|
|
1524
|
+
"variants",
|
|
1525
|
+
"initial",
|
|
1526
|
+
"style",
|
|
1527
|
+
"values",
|
|
1528
|
+
"variants",
|
|
1529
|
+
"transition",
|
|
1530
|
+
"transformTemplate",
|
|
1531
|
+
"transformValues",
|
|
1532
|
+
"custom",
|
|
1533
|
+
"inherit",
|
|
1534
|
+
"onLayoutAnimationStart",
|
|
1535
|
+
"onLayoutAnimationComplete",
|
|
1536
|
+
"onLayoutMeasure",
|
|
1537
|
+
"onBeforeLayoutMeasure",
|
|
1538
|
+
"onAnimationStart",
|
|
1539
|
+
"onAnimationComplete",
|
|
1540
|
+
"onUpdate",
|
|
1541
|
+
"onDragStart",
|
|
1542
|
+
"onDrag",
|
|
1543
|
+
"onDragEnd",
|
|
1544
|
+
"onMeasureDragConstraints",
|
|
1545
|
+
"onDirectionLock",
|
|
1546
|
+
"onDragTransitionEnd",
|
|
1547
|
+
"_dragX",
|
|
1548
|
+
"_dragY",
|
|
1549
|
+
"onHoverStart",
|
|
1550
|
+
"onHoverEnd",
|
|
1551
|
+
"onViewportEnter",
|
|
1552
|
+
"onViewportLeave",
|
|
1553
|
+
"ignoreStrict",
|
|
1554
|
+
"viewport"
|
|
1555
|
+
]);
|
|
1556
|
+
function hs(e) {
|
|
1557
|
+
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || Jy.has(e);
|
|
1880
1558
|
}
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1559
|
+
let fg = (e) => !hs(e);
|
|
1560
|
+
function ex(e) {
|
|
1561
|
+
e && (fg = (t) => t.startsWith("on") ? !hs(t) : e(t));
|
|
1562
|
+
}
|
|
1563
|
+
try {
|
|
1564
|
+
ex(require("@emotion/is-prop-valid").default);
|
|
1565
|
+
} catch {
|
|
1566
|
+
}
|
|
1567
|
+
function tx(e, t, r) {
|
|
1568
|
+
const n = {};
|
|
1569
|
+
for (const a in e)
|
|
1570
|
+
a === "values" && typeof e.values == "object" || (fg(a) || r === !0 && hs(a) || !t && !hs(a) || // If trying to use native HTML drag events, forward drag listeners
|
|
1571
|
+
e.draggable && a.startsWith("onDrag")) && (n[a] = e[a]);
|
|
1572
|
+
return n;
|
|
1573
|
+
}
|
|
1574
|
+
function Vd(e, t, r) {
|
|
1575
|
+
return typeof e == "string" ? e : ge.transform(t + r * e);
|
|
1576
|
+
}
|
|
1577
|
+
function rx(e, t, r) {
|
|
1578
|
+
const n = Vd(t, e.x, e.width), a = Vd(r, e.y, e.height);
|
|
1579
|
+
return `${n} ${a}`;
|
|
1580
|
+
}
|
|
1581
|
+
const nx = {
|
|
1582
|
+
offset: "stroke-dashoffset",
|
|
1583
|
+
array: "stroke-dasharray"
|
|
1584
|
+
}, ax = {
|
|
1585
|
+
offset: "strokeDashoffset",
|
|
1586
|
+
array: "strokeDasharray"
|
|
1587
|
+
};
|
|
1588
|
+
function ix(e, t, r = 1, n = 0, a = !0) {
|
|
1589
|
+
e.pathLength = 1;
|
|
1590
|
+
const i = a ? nx : ax;
|
|
1591
|
+
e[i.offset] = ge.transform(-n);
|
|
1592
|
+
const o = ge.transform(t), s = ge.transform(r);
|
|
1593
|
+
e[i.array] = `${o} ${s}`;
|
|
1594
|
+
}
|
|
1595
|
+
function dg(e, {
|
|
1596
|
+
attrX: t,
|
|
1597
|
+
attrY: r,
|
|
1598
|
+
attrScale: n,
|
|
1599
|
+
originX: a,
|
|
1600
|
+
originY: i,
|
|
1601
|
+
pathLength: o,
|
|
1602
|
+
pathSpacing: s = 1,
|
|
1603
|
+
pathOffset: u = 0,
|
|
1604
|
+
// This is object creation, which we try to avoid per-frame.
|
|
1605
|
+
...l
|
|
1606
|
+
}, c, f, d) {
|
|
1607
|
+
if (ug(e, l, c, d), f) {
|
|
1608
|
+
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
|
|
1609
|
+
return;
|
|
1610
|
+
}
|
|
1611
|
+
e.attrs = e.style, e.style = {};
|
|
1612
|
+
const { attrs: h, style: v, dimensions: p } = e;
|
|
1613
|
+
h.transform && (p && (v.transform = h.transform), delete h.transform), p && (a !== void 0 || i !== void 0 || v.transform) && (v.transformOrigin = rx(p, a !== void 0 ? a : 0.5, i !== void 0 ? i : 0.5)), t !== void 0 && (h.x = t), r !== void 0 && (h.y = r), n !== void 0 && (h.scale = n), o !== void 0 && ix(h, o, s, u, !1);
|
|
1614
|
+
}
|
|
1615
|
+
const hg = () => ({
|
|
1616
|
+
...Uc(),
|
|
1617
|
+
attrs: {}
|
|
1618
|
+
}), pg = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
1619
|
+
function ox(e, t, r, n) {
|
|
1620
|
+
const a = _t(() => {
|
|
1621
|
+
const i = hg();
|
|
1622
|
+
return dg(i, t, { enableHardwareAcceleration: !1 }, pg(n), e.transformTemplate), {
|
|
1623
|
+
...i.attrs,
|
|
1624
|
+
style: { ...i.style }
|
|
1892
1625
|
};
|
|
1893
|
-
|
|
1894
|
-
|
|
1626
|
+
}, [t]);
|
|
1627
|
+
if (e.style) {
|
|
1628
|
+
const i = {};
|
|
1629
|
+
cg(i, e.style, e), a.style = { ...i, ...a.style };
|
|
1630
|
+
}
|
|
1631
|
+
return a;
|
|
1895
1632
|
}
|
|
1896
|
-
function
|
|
1897
|
-
return
|
|
1898
|
-
|
|
1633
|
+
function sx(e = !1) {
|
|
1634
|
+
return (r, n, a, { latestValues: i }, o) => {
|
|
1635
|
+
const u = (ng(r) ? ox : Qy)(n, i, o, r), c = {
|
|
1636
|
+
...tx(n, typeof r == "string", e),
|
|
1637
|
+
...u,
|
|
1638
|
+
ref: a
|
|
1639
|
+
}, { children: f } = n, d = _t(() => mn(f) ? f.get() : f, [f]);
|
|
1640
|
+
return $r(r, {
|
|
1641
|
+
...c,
|
|
1642
|
+
children: d
|
|
1643
|
+
});
|
|
1899
1644
|
};
|
|
1900
1645
|
}
|
|
1901
|
-
|
|
1902
|
-
|
|
1646
|
+
const lx = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1647
|
+
function ux(e, { style: t, vars: r }, n, a) {
|
|
1648
|
+
Object.assign(e.style, t, a && a.getProjectionStyles(n));
|
|
1649
|
+
for (const i in r)
|
|
1650
|
+
e.style.setProperty(i, r[i]);
|
|
1903
1651
|
}
|
|
1904
|
-
const
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1652
|
+
const cx = /* @__PURE__ */ new Set([
|
|
1653
|
+
"baseFrequency",
|
|
1654
|
+
"diffuseConstant",
|
|
1655
|
+
"kernelMatrix",
|
|
1656
|
+
"kernelUnitLength",
|
|
1657
|
+
"keySplines",
|
|
1658
|
+
"keyTimes",
|
|
1659
|
+
"limitingConeAngle",
|
|
1660
|
+
"markerHeight",
|
|
1661
|
+
"markerWidth",
|
|
1662
|
+
"numOctaves",
|
|
1663
|
+
"targetX",
|
|
1664
|
+
"targetY",
|
|
1665
|
+
"surfaceScale",
|
|
1666
|
+
"specularConstant",
|
|
1667
|
+
"specularExponent",
|
|
1668
|
+
"stdDeviation",
|
|
1669
|
+
"tableValues",
|
|
1670
|
+
"viewBox",
|
|
1671
|
+
"gradientTransform",
|
|
1672
|
+
"pathLength",
|
|
1673
|
+
"startOffset",
|
|
1674
|
+
"textLength",
|
|
1675
|
+
"lengthAdjust"
|
|
1676
|
+
]);
|
|
1677
|
+
function fx(e, t, r, n) {
|
|
1678
|
+
ux(e, t, void 0, n);
|
|
1679
|
+
for (const a in t.attrs)
|
|
1680
|
+
e.setAttribute(cx.has(a) ? a : lx(a), t.attrs[a]);
|
|
1932
1681
|
}
|
|
1933
|
-
function
|
|
1934
|
-
|
|
1682
|
+
function gg(e, t) {
|
|
1683
|
+
const { style: r } = e, n = {};
|
|
1684
|
+
for (const a in r)
|
|
1685
|
+
(mn(r[a]) || t.style && mn(t.style[a]) || og(a, e)) && (n[a] = r[a]);
|
|
1686
|
+
return n;
|
|
1935
1687
|
}
|
|
1936
|
-
function
|
|
1937
|
-
const r =
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
r
|
|
1942
|
-
|
|
1943
|
-
const a = n.getBoundingClientRect();
|
|
1944
|
-
n = n.parentElement;
|
|
1945
|
-
const i = n.getBoundingClientRect();
|
|
1946
|
-
r.x += a.left - i.left, r.y += a.top - i.top;
|
|
1947
|
-
} else if (n instanceof SVGGraphicsElement) {
|
|
1948
|
-
const { x: a, y: i } = n.getBBox();
|
|
1949
|
-
r.x += a, r.y += i;
|
|
1950
|
-
let o = null, s = n.parentNode;
|
|
1951
|
-
for (; !o; )
|
|
1952
|
-
s.tagName === "svg" && (o = s), s = n.parentNode;
|
|
1953
|
-
n = o;
|
|
1954
|
-
} else
|
|
1955
|
-
break;
|
|
1688
|
+
function dx(e, t) {
|
|
1689
|
+
const r = gg(e, t);
|
|
1690
|
+
for (const n in e)
|
|
1691
|
+
if (mn(e[n]) || mn(t[n])) {
|
|
1692
|
+
const a = Ks.indexOf(n) !== -1 ? "attr" + n.charAt(0).toUpperCase() + n.substring(1) : n;
|
|
1693
|
+
r[a] = e[n];
|
|
1694
|
+
}
|
|
1956
1695
|
return r;
|
|
1957
1696
|
}
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
[0, 1],
|
|
1961
|
-
[1, 1]
|
|
1962
|
-
],
|
|
1963
|
-
Exit: [
|
|
1964
|
-
[0, 0],
|
|
1965
|
-
[1, 0]
|
|
1966
|
-
],
|
|
1967
|
-
Any: [
|
|
1968
|
-
[1, 0],
|
|
1969
|
-
[0, 1]
|
|
1970
|
-
],
|
|
1971
|
-
All: [
|
|
1972
|
-
[0, 0],
|
|
1973
|
-
[1, 1]
|
|
1974
|
-
]
|
|
1975
|
-
}, Iu = {
|
|
1976
|
-
start: 0,
|
|
1977
|
-
center: 0.5,
|
|
1978
|
-
end: 1
|
|
1979
|
-
};
|
|
1980
|
-
function qd(e, t, r = 0) {
|
|
1981
|
-
let n = 0;
|
|
1982
|
-
if (Iu[e] !== void 0 && (e = Iu[e]), typeof e == "string") {
|
|
1983
|
-
const a = parseFloat(e);
|
|
1984
|
-
e.endsWith("px") ? n = a : e.endsWith("%") ? e = a / 100 : e.endsWith("vw") ? n = a / 100 * document.documentElement.clientWidth : e.endsWith("vh") ? n = a / 100 * document.documentElement.clientHeight : e = a;
|
|
1985
|
-
}
|
|
1986
|
-
return typeof e == "number" && (n = t * e), r + n;
|
|
1697
|
+
function hx(e, t, r, n = {}, a = {}) {
|
|
1698
|
+
return typeof t == "function" && (t = t(r !== void 0 ? r : e.custom, n, a)), typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function" && (t = t(r !== void 0 ? r : e.custom, n, a)), t;
|
|
1987
1699
|
}
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
return typeof e == "number" ? a = [e, e] : typeof e == "string" && (e = e.trim(), e.includes(" ") ? a = e.split(" ") : a = [e, Iu[e] ? e : "0"]), i = qd(a[0], r, n), o = qd(a[1], t), i - o;
|
|
1700
|
+
function Yc(e) {
|
|
1701
|
+
const t = Oe(null);
|
|
1702
|
+
return t.current === null && (t.current = e()), t.current;
|
|
1992
1703
|
}
|
|
1993
|
-
const
|
|
1994
|
-
function
|
|
1995
|
-
|
|
1704
|
+
const px = (e) => Array.isArray(e), gx = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), jK = (e) => px(e) ? e[e.length - 1] || 0 : e;
|
|
1705
|
+
function vx(e) {
|
|
1706
|
+
const t = mn(e) ? e.get() : e;
|
|
1707
|
+
return gx(t) ? t.toValue() : t;
|
|
1996
1708
|
}
|
|
1997
|
-
function
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
height: e.clientHeight
|
|
1709
|
+
function mx({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: r }, n, a, i) {
|
|
1710
|
+
const o = {
|
|
1711
|
+
latestValues: bx(n, a, i, e),
|
|
1712
|
+
renderState: t()
|
|
2002
1713
|
};
|
|
2003
|
-
|
|
2004
|
-
let c = !t[i].interpolate;
|
|
2005
|
-
const f = n.length;
|
|
2006
|
-
for (let d = 0; d < f; d++) {
|
|
2007
|
-
const h = v5(n[d], l[o], u[o], s[i]);
|
|
2008
|
-
!c && h !== t[i].interpolatorOffsets[d] && (c = !0), t[i].offset[d] = h;
|
|
2009
|
-
}
|
|
2010
|
-
c && (t[i].interpolate = jx(t[i].offset, Nx(n)), t[i].interpolatorOffsets = [...t[i].offset]), t[i].progress = t[i].interpolate(t[i].current);
|
|
1714
|
+
return r && (o.mount = (s) => r(n, s, o)), o;
|
|
2011
1715
|
}
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
1716
|
+
const vg = (e) => (t, r) => {
|
|
1717
|
+
const n = qt(Gs), a = qt(Bc), i = () => mx(e, t, n, a);
|
|
1718
|
+
return r ? i() : Yc(i);
|
|
1719
|
+
};
|
|
1720
|
+
function bx(e, t, r, n) {
|
|
1721
|
+
const a = {}, i = n(e, {});
|
|
1722
|
+
for (const d in i)
|
|
1723
|
+
a[d] = vx(i[d]);
|
|
1724
|
+
let { initial: o, animate: s } = e;
|
|
1725
|
+
const u = Wc(e), l = Ry(e);
|
|
1726
|
+
t && l && !u && e.inherit !== !1 && (o === void 0 && (o = t.initial), s === void 0 && (s = t.animate));
|
|
1727
|
+
let c = r ? r.initial === !1 : !1;
|
|
1728
|
+
c = c || o === !1;
|
|
1729
|
+
const f = c ? s : o;
|
|
1730
|
+
return f && typeof f != "boolean" && !tg(f) && (Array.isArray(f) ? f : [f]).forEach((h) => {
|
|
1731
|
+
const v = hx(e, h);
|
|
1732
|
+
if (!v)
|
|
1733
|
+
return;
|
|
1734
|
+
const { transitionEnd: p, transition: m, ...b } = v;
|
|
1735
|
+
for (const x in b) {
|
|
1736
|
+
let E = b[x];
|
|
1737
|
+
if (Array.isArray(E)) {
|
|
1738
|
+
const T = c ? E.length - 1 : 0;
|
|
1739
|
+
E = E[T];
|
|
1740
|
+
}
|
|
1741
|
+
E !== null && (a[x] = E);
|
|
1742
|
+
}
|
|
1743
|
+
for (const x in p)
|
|
1744
|
+
a[x] = p[x];
|
|
1745
|
+
}), a;
|
|
1746
|
+
}
|
|
1747
|
+
const eo = (e) => e;
|
|
1748
|
+
class Hd {
|
|
1749
|
+
constructor() {
|
|
1750
|
+
this.order = [], this.scheduled = /* @__PURE__ */ new Set();
|
|
1751
|
+
}
|
|
1752
|
+
add(t) {
|
|
1753
|
+
if (!this.scheduled.has(t))
|
|
1754
|
+
return this.scheduled.add(t), this.order.push(t), !0;
|
|
1755
|
+
}
|
|
1756
|
+
remove(t) {
|
|
1757
|
+
const r = this.order.indexOf(t);
|
|
1758
|
+
r !== -1 && (this.order.splice(r, 1), this.scheduled.delete(t));
|
|
1759
|
+
}
|
|
1760
|
+
clear() {
|
|
1761
|
+
this.order.length = 0, this.scheduled.clear();
|
|
2017
1762
|
}
|
|
2018
|
-
r.x.targetLength = t === e ? t.scrollWidth : t.clientWidth, r.y.targetLength = t === e ? t.scrollHeight : t.clientHeight, r.x.containerLength = e.clientWidth, r.y.containerLength = e.clientHeight;
|
|
2019
1763
|
}
|
|
2020
|
-
function
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
1764
|
+
function yx(e) {
|
|
1765
|
+
let t = new Hd(), r = new Hd(), n = 0, a = !1, i = !1;
|
|
1766
|
+
const o = /* @__PURE__ */ new WeakSet(), s = {
|
|
1767
|
+
/**
|
|
1768
|
+
* Schedule a process to run on the next frame.
|
|
1769
|
+
*/
|
|
1770
|
+
schedule: (u, l = !1, c = !1) => {
|
|
1771
|
+
const f = c && a, d = f ? t : r;
|
|
1772
|
+
return l && o.add(u), d.add(u) && f && a && (n = t.order.length), u;
|
|
2025
1773
|
},
|
|
2026
|
-
|
|
1774
|
+
/**
|
|
1775
|
+
* Cancel the provided callback from running on the next frame.
|
|
1776
|
+
*/
|
|
1777
|
+
cancel: (u) => {
|
|
1778
|
+
r.remove(u), o.delete(u);
|
|
1779
|
+
},
|
|
1780
|
+
/**
|
|
1781
|
+
* Execute all schedule callbacks.
|
|
1782
|
+
*/
|
|
1783
|
+
process: (u) => {
|
|
1784
|
+
if (a) {
|
|
1785
|
+
i = !0;
|
|
1786
|
+
return;
|
|
1787
|
+
}
|
|
1788
|
+
if (a = !0, [t, r] = [r, t], r.clear(), n = t.order.length, n)
|
|
1789
|
+
for (let l = 0; l < n; l++) {
|
|
1790
|
+
const c = t.order[l];
|
|
1791
|
+
c(u), o.has(c) && (s.schedule(c), e());
|
|
1792
|
+
}
|
|
1793
|
+
a = !1, i && (i = !1, s.process(u));
|
|
1794
|
+
}
|
|
2027
1795
|
};
|
|
1796
|
+
return s;
|
|
2028
1797
|
}
|
|
2029
|
-
const
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
const f = Xd(t);
|
|
2049
|
-
window.addEventListener("resize", c, { passive: !0 }), t !== document.documentElement && Kd.set(t, l5(t, c)), f.addEventListener("scroll", c, { passive: !0 });
|
|
2050
|
-
}
|
|
2051
|
-
const o = si.get(t);
|
|
2052
|
-
return br.read(o, !1, !0), () => {
|
|
2053
|
-
var s;
|
|
2054
|
-
xx(o);
|
|
2055
|
-
const u = Yl.get(t);
|
|
2056
|
-
if (!u || (u.delete(i), u.size))
|
|
2057
|
-
return;
|
|
2058
|
-
const l = si.get(t);
|
|
2059
|
-
si.delete(t), l && (Xd(t).removeEventListener("scroll", l), (s = Kd.get(t)) === null || s === void 0 || s(), window.removeEventListener("resize", l));
|
|
1798
|
+
const Eo = [
|
|
1799
|
+
"prepare",
|
|
1800
|
+
"read",
|
|
1801
|
+
"update",
|
|
1802
|
+
"preRender",
|
|
1803
|
+
"render",
|
|
1804
|
+
"postRender"
|
|
1805
|
+
], xx = 40;
|
|
1806
|
+
function wx(e, t) {
|
|
1807
|
+
let r = !1, n = !0;
|
|
1808
|
+
const a = {
|
|
1809
|
+
delta: 0,
|
|
1810
|
+
timestamp: 0,
|
|
1811
|
+
isProcessing: !1
|
|
1812
|
+
}, i = Eo.reduce((f, d) => (f[d] = yx(() => r = !0), f), {}), o = (f) => i[f].process(a), s = () => {
|
|
1813
|
+
const f = performance.now();
|
|
1814
|
+
r = !1, a.delta = n ? 1e3 / 60 : Math.max(Math.min(f - a.timestamp, xx), 1), a.timestamp = f, a.isProcessing = !0, Eo.forEach(o), a.isProcessing = !1, r && t && (n = !1, e(s));
|
|
1815
|
+
}, u = () => {
|
|
1816
|
+
r = !0, n = !0, a.isProcessing || e(s);
|
|
2060
1817
|
};
|
|
1818
|
+
return { schedule: Eo.reduce((f, d) => {
|
|
1819
|
+
const h = i[d];
|
|
1820
|
+
return f[d] = (v, p = !1, m = !1) => (r || u(), h.schedule(v, p, m)), f;
|
|
1821
|
+
}, {}), cancel: (f) => Eo.forEach((d) => i[d].cancel(f)), state: a, steps: i };
|
|
2061
1822
|
}
|
|
2062
|
-
|
|
2063
|
-
|
|
1823
|
+
const { schedule: br, cancel: Cx, state: mg, steps: LK } = wx(typeof requestAnimationFrame < "u" ? requestAnimationFrame : eo, !0), Ex = {
|
|
1824
|
+
useVisualState: vg({
|
|
1825
|
+
scrapeMotionValuesFromProps: dx,
|
|
1826
|
+
createRenderState: hg,
|
|
1827
|
+
onMount: (e, t, { renderState: r, latestValues: n }) => {
|
|
1828
|
+
br.read(() => {
|
|
1829
|
+
try {
|
|
1830
|
+
r.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect();
|
|
1831
|
+
} catch {
|
|
1832
|
+
r.dimensions = {
|
|
1833
|
+
x: 0,
|
|
1834
|
+
y: 0,
|
|
1835
|
+
width: 0,
|
|
1836
|
+
height: 0
|
|
1837
|
+
};
|
|
1838
|
+
}
|
|
1839
|
+
}), br.render(() => {
|
|
1840
|
+
dg(r, n, { enableHardwareAcceleration: !1 }, pg(t.tagName), e.transformTemplate), fx(t, r);
|
|
1841
|
+
});
|
|
1842
|
+
}
|
|
1843
|
+
})
|
|
1844
|
+
}, Sx = {
|
|
1845
|
+
useVisualState: vg({
|
|
1846
|
+
scrapeMotionValuesFromProps: gg,
|
|
1847
|
+
createRenderState: Uc
|
|
1848
|
+
})
|
|
1849
|
+
};
|
|
1850
|
+
function _x(e, { forwardMotionProps: t = !1 }, r, n) {
|
|
1851
|
+
return {
|
|
1852
|
+
...ng(e) ? Ex : Sx,
|
|
1853
|
+
preloadedFeatures: r,
|
|
1854
|
+
useRender: sx(t),
|
|
1855
|
+
createVisualElement: n,
|
|
1856
|
+
Component: e
|
|
1857
|
+
};
|
|
2064
1858
|
}
|
|
2065
|
-
const
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
1859
|
+
const kx = (e, t) => (r) => t(e(r)), bg = (...e) => e.reduce(kx);
|
|
1860
|
+
let Gc = eo, to = eo;
|
|
1861
|
+
process.env.NODE_ENV !== "production" && (Gc = (e, t) => {
|
|
1862
|
+
!e && typeof console < "u" && console.warn(t);
|
|
1863
|
+
}, to = (e, t) => {
|
|
1864
|
+
if (!e)
|
|
1865
|
+
throw new Error(t);
|
|
2070
1866
|
});
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
1867
|
+
const qc = (e, t) => (r) => !!(Qi(r) && qy.test(r) && r.startsWith(e) || t && Object.prototype.hasOwnProperty.call(r, t)), yg = (e, t, r) => (n) => {
|
|
1868
|
+
if (!Qi(n))
|
|
1869
|
+
return n;
|
|
1870
|
+
const [a, i, o, s] = n.match(Hc);
|
|
1871
|
+
return {
|
|
1872
|
+
[e]: parseFloat(a),
|
|
1873
|
+
[t]: parseFloat(i),
|
|
1874
|
+
[r]: parseFloat(o),
|
|
1875
|
+
alpha: s !== void 0 ? parseFloat(s) : 1
|
|
1876
|
+
};
|
|
1877
|
+
}, Tx = (e) => Vc(0, 255, e), Bl = {
|
|
1878
|
+
...Zi,
|
|
1879
|
+
transform: (e) => Math.round(Tx(e))
|
|
1880
|
+
}, dn = {
|
|
1881
|
+
test: qc("rgb", "red"),
|
|
1882
|
+
parse: yg("red", "green", "blue"),
|
|
1883
|
+
transform: ({ red: e, green: t, blue: r, alpha: n = 1 }) => "rgba(" + Bl.transform(e) + ", " + Bl.transform(t) + ", " + Bl.transform(r) + ", " + Oi(Ti.transform(n)) + ")"
|
|
1884
|
+
};
|
|
1885
|
+
function Ox(e) {
|
|
1886
|
+
let t = "", r = "", n = "", a = "";
|
|
1887
|
+
return e.length > 5 ? (t = e.substring(1, 3), r = e.substring(3, 5), n = e.substring(5, 7), a = e.substring(7, 9)) : (t = e.substring(1, 2), r = e.substring(2, 3), n = e.substring(3, 4), a = e.substring(4, 5), t += t, r += r, n += n, a += a), {
|
|
1888
|
+
red: parseInt(t, 16),
|
|
1889
|
+
green: parseInt(r, 16),
|
|
1890
|
+
blue: parseInt(n, 16),
|
|
1891
|
+
alpha: a ? parseInt(a, 16) / 255 : 1
|
|
1892
|
+
};
|
|
2080
1893
|
}
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
1894
|
+
const Iu = {
|
|
1895
|
+
test: qc("#"),
|
|
1896
|
+
parse: Ox,
|
|
1897
|
+
transform: dn.transform
|
|
1898
|
+
}, ba = {
|
|
1899
|
+
test: qc("hsl", "hue"),
|
|
1900
|
+
parse: yg("hue", "saturation", "lightness"),
|
|
1901
|
+
transform: ({ hue: e, saturation: t, lightness: r, alpha: n = 1 }) => "hsla(" + Math.round(e) + ", " + Mi.transform(Oi(t)) + ", " + Mi.transform(Oi(r)) + ", " + Oi(Ti.transform(n)) + ")"
|
|
1902
|
+
}, Xs = {
|
|
1903
|
+
test: (e) => dn.test(e) || Iu.test(e) || ba.test(e),
|
|
1904
|
+
parse: (e) => dn.test(e) ? dn.parse(e) : ba.test(e) ? ba.parse(e) : Iu.parse(e),
|
|
1905
|
+
transform: (e) => Qi(e) ? e : e.hasOwnProperty("red") ? dn.transform(e) : ba.transform(e)
|
|
1906
|
+
}, Zs = (e, t, r) => -r * e + r * t + e;
|
|
1907
|
+
function zl(e, t, r) {
|
|
1908
|
+
return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * 6 * r : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e;
|
|
2084
1909
|
}
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
*
|
|
2092
|
-
|
|
2093
|
-
* LICENSE file in the root directory of this source tree.
|
|
2094
|
-
*/
|
|
2095
|
-
var Qd;
|
|
2096
|
-
function _5() {
|
|
2097
|
-
if (Qd)
|
|
2098
|
-
return li;
|
|
2099
|
-
Qd = 1;
|
|
2100
|
-
var e = y, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
2101
|
-
function o(s, u, l) {
|
|
2102
|
-
var c, f = {}, d = null, h = null;
|
|
2103
|
-
l !== void 0 && (d = "" + l), u.key !== void 0 && (d = "" + u.key), u.ref !== void 0 && (h = u.ref);
|
|
2104
|
-
for (c in u)
|
|
2105
|
-
n.call(u, c) && !i.hasOwnProperty(c) && (f[c] = u[c]);
|
|
2106
|
-
if (s && s.defaultProps)
|
|
2107
|
-
for (c in u = s.defaultProps, u)
|
|
2108
|
-
f[c] === void 0 && (f[c] = u[c]);
|
|
2109
|
-
return { $$typeof: t, type: s, key: d, ref: h, props: f, _owner: a.current };
|
|
1910
|
+
function Mx({ hue: e, saturation: t, lightness: r, alpha: n }) {
|
|
1911
|
+
e /= 360, t /= 100, r /= 100;
|
|
1912
|
+
let a = 0, i = 0, o = 0;
|
|
1913
|
+
if (!t)
|
|
1914
|
+
a = i = o = r;
|
|
1915
|
+
else {
|
|
1916
|
+
const s = r < 0.5 ? r * (1 + t) : r + t - r * t, u = 2 * r - s;
|
|
1917
|
+
a = zl(u, s, e + 1 / 3), i = zl(u, s, e), o = zl(u, s, e - 1 / 3);
|
|
2110
1918
|
}
|
|
2111
|
-
return
|
|
1919
|
+
return {
|
|
1920
|
+
red: Math.round(a * 255),
|
|
1921
|
+
green: Math.round(i * 255),
|
|
1922
|
+
blue: Math.round(o * 255),
|
|
1923
|
+
alpha: n
|
|
1924
|
+
};
|
|
2112
1925
|
}
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
*
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
return
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
if (ne === 0) {
|
|
2222
|
-
B = console.log, Y = console.info, ye = console.warn, fe = console.error, M = console.group, A = console.groupCollapsed, V = console.groupEnd;
|
|
2223
|
-
var C = {
|
|
2224
|
-
configurable: !0,
|
|
2225
|
-
enumerable: !0,
|
|
2226
|
-
value: re,
|
|
2227
|
-
writable: !0
|
|
2228
|
-
};
|
|
2229
|
-
Object.defineProperties(console, {
|
|
2230
|
-
info: C,
|
|
2231
|
-
log: C,
|
|
2232
|
-
warn: C,
|
|
2233
|
-
error: C,
|
|
2234
|
-
group: C,
|
|
2235
|
-
groupCollapsed: C,
|
|
2236
|
-
groupEnd: C
|
|
2237
|
-
});
|
|
2238
|
-
}
|
|
2239
|
-
ne++;
|
|
2240
|
-
}
|
|
2241
|
-
}
|
|
2242
|
-
function ue() {
|
|
2243
|
-
{
|
|
2244
|
-
if (ne--, ne === 0) {
|
|
2245
|
-
var C = {
|
|
2246
|
-
configurable: !0,
|
|
2247
|
-
enumerable: !0,
|
|
2248
|
-
writable: !0
|
|
2249
|
-
};
|
|
2250
|
-
Object.defineProperties(console, {
|
|
2251
|
-
log: ce({}, C, {
|
|
2252
|
-
value: B
|
|
2253
|
-
}),
|
|
2254
|
-
info: ce({}, C, {
|
|
2255
|
-
value: Y
|
|
2256
|
-
}),
|
|
2257
|
-
warn: ce({}, C, {
|
|
2258
|
-
value: ye
|
|
2259
|
-
}),
|
|
2260
|
-
error: ce({}, C, {
|
|
2261
|
-
value: fe
|
|
2262
|
-
}),
|
|
2263
|
-
group: ce({}, C, {
|
|
2264
|
-
value: M
|
|
2265
|
-
}),
|
|
2266
|
-
groupCollapsed: ce({}, C, {
|
|
2267
|
-
value: A
|
|
2268
|
-
}),
|
|
2269
|
-
groupEnd: ce({}, C, {
|
|
2270
|
-
value: V
|
|
2271
|
-
})
|
|
2272
|
-
});
|
|
2273
|
-
}
|
|
2274
|
-
ne < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
2275
|
-
}
|
|
2276
|
-
}
|
|
2277
|
-
var te = b.ReactCurrentDispatcher, ie;
|
|
2278
|
-
function K(C, P, z) {
|
|
2279
|
-
{
|
|
2280
|
-
if (ie === void 0)
|
|
2281
|
-
try {
|
|
2282
|
-
throw Error();
|
|
2283
|
-
} catch (Re) {
|
|
2284
|
-
var he = Re.stack.trim().match(/\n( *(at )?)/);
|
|
2285
|
-
ie = he && he[1] || "";
|
|
2286
|
-
}
|
|
2287
|
-
return `
|
|
2288
|
-
` + ie + C;
|
|
2289
|
-
}
|
|
2290
|
-
}
|
|
2291
|
-
var U = !1, J;
|
|
2292
|
-
{
|
|
2293
|
-
var je = typeof WeakMap == "function" ? WeakMap : Map;
|
|
2294
|
-
J = new je();
|
|
2295
|
-
}
|
|
2296
|
-
function D(C, P) {
|
|
2297
|
-
if (!C || U)
|
|
2298
|
-
return "";
|
|
2299
|
-
{
|
|
2300
|
-
var z = J.get(C);
|
|
2301
|
-
if (z !== void 0)
|
|
2302
|
-
return z;
|
|
2303
|
-
}
|
|
2304
|
-
var he;
|
|
2305
|
-
U = !0;
|
|
2306
|
-
var Re = Error.prepareStackTrace;
|
|
2307
|
-
Error.prepareStackTrace = void 0;
|
|
2308
|
-
var qe;
|
|
2309
|
-
qe = te.current, te.current = null, G();
|
|
2310
|
-
try {
|
|
2311
|
-
if (P) {
|
|
2312
|
-
var Te = function() {
|
|
2313
|
-
throw Error();
|
|
2314
|
-
};
|
|
2315
|
-
if (Object.defineProperty(Te.prototype, "props", {
|
|
2316
|
-
set: function() {
|
|
2317
|
-
throw Error();
|
|
2318
|
-
}
|
|
2319
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
2320
|
-
try {
|
|
2321
|
-
Reflect.construct(Te, []);
|
|
2322
|
-
} catch (Sr) {
|
|
2323
|
-
he = Sr;
|
|
2324
|
-
}
|
|
2325
|
-
Reflect.construct(C, [], Te);
|
|
2326
|
-
} else {
|
|
2327
|
-
try {
|
|
2328
|
-
Te.call();
|
|
2329
|
-
} catch (Sr) {
|
|
2330
|
-
he = Sr;
|
|
2331
|
-
}
|
|
2332
|
-
C.call(Te.prototype);
|
|
2333
|
-
}
|
|
2334
|
-
} else {
|
|
2335
|
-
try {
|
|
2336
|
-
throw Error();
|
|
2337
|
-
} catch (Sr) {
|
|
2338
|
-
he = Sr;
|
|
2339
|
-
}
|
|
2340
|
-
C();
|
|
2341
|
-
}
|
|
2342
|
-
} catch (Sr) {
|
|
2343
|
-
if (Sr && he && typeof Sr.stack == "string") {
|
|
2344
|
-
for (var we = Sr.stack.split(`
|
|
2345
|
-
`), Dt = he.stack.split(`
|
|
2346
|
-
`), gt = we.length - 1, yt = Dt.length - 1; gt >= 1 && yt >= 0 && we[gt] !== Dt[yt]; )
|
|
2347
|
-
yt--;
|
|
2348
|
-
for (; gt >= 1 && yt >= 0; gt--, yt--)
|
|
2349
|
-
if (we[gt] !== Dt[yt]) {
|
|
2350
|
-
if (gt !== 1 || yt !== 1)
|
|
2351
|
-
do
|
|
2352
|
-
if (gt--, yt--, yt < 0 || we[gt] !== Dt[yt]) {
|
|
2353
|
-
var tr = `
|
|
2354
|
-
` + we[gt].replace(" at new ", " at ");
|
|
2355
|
-
return C.displayName && tr.includes("<anonymous>") && (tr = tr.replace("<anonymous>", C.displayName)), typeof C == "function" && J.set(C, tr), tr;
|
|
2356
|
-
}
|
|
2357
|
-
while (gt >= 1 && yt >= 0);
|
|
2358
|
-
break;
|
|
2359
|
-
}
|
|
2360
|
-
}
|
|
2361
|
-
} finally {
|
|
2362
|
-
U = !1, te.current = qe, ue(), Error.prepareStackTrace = Re;
|
|
2363
|
-
}
|
|
2364
|
-
var In = C ? C.displayName || C.name : "", Fd = In ? K(In) : "";
|
|
2365
|
-
return typeof C == "function" && J.set(C, Fd), Fd;
|
|
2366
|
-
}
|
|
2367
|
-
function nt(C, P, z) {
|
|
2368
|
-
return D(C, !1);
|
|
2369
|
-
}
|
|
2370
|
-
function q(C) {
|
|
2371
|
-
var P = C.prototype;
|
|
2372
|
-
return !!(P && P.isReactComponent);
|
|
2373
|
-
}
|
|
2374
|
-
function L(C, P, z) {
|
|
2375
|
-
if (C == null)
|
|
2376
|
-
return "";
|
|
2377
|
-
if (typeof C == "function")
|
|
2378
|
-
return D(C, q(C));
|
|
2379
|
-
if (typeof C == "string")
|
|
2380
|
-
return K(C);
|
|
2381
|
-
switch (C) {
|
|
2382
|
-
case l:
|
|
2383
|
-
return K("Suspense");
|
|
2384
|
-
case c:
|
|
2385
|
-
return K("SuspenseList");
|
|
2386
|
-
}
|
|
2387
|
-
if (typeof C == "object")
|
|
2388
|
-
switch (C.$$typeof) {
|
|
2389
|
-
case u:
|
|
2390
|
-
return nt(C.render);
|
|
2391
|
-
case f:
|
|
2392
|
-
return L(C.type, P, z);
|
|
2393
|
-
case d: {
|
|
2394
|
-
var he = C, Re = he._payload, qe = he._init;
|
|
2395
|
-
try {
|
|
2396
|
-
return L(qe(Re), P, z);
|
|
2397
|
-
} catch {
|
|
2398
|
-
}
|
|
2399
|
-
}
|
|
2400
|
-
}
|
|
2401
|
-
return "";
|
|
2402
|
-
}
|
|
2403
|
-
var X = Object.prototype.hasOwnProperty, oe = {}, Ge = b.ReactDebugCurrentFrame;
|
|
2404
|
-
function Le(C) {
|
|
2405
|
-
if (C) {
|
|
2406
|
-
var P = C._owner, z = L(C.type, C._source, P ? P.type : null);
|
|
2407
|
-
Ge.setExtraStackFrame(z);
|
|
2408
|
-
} else
|
|
2409
|
-
Ge.setExtraStackFrame(null);
|
|
2410
|
-
}
|
|
2411
|
-
function Ne(C, P, z, he, Re) {
|
|
2412
|
-
{
|
|
2413
|
-
var qe = Function.call.bind(X);
|
|
2414
|
-
for (var Te in C)
|
|
2415
|
-
if (qe(C, Te)) {
|
|
2416
|
-
var we = void 0;
|
|
2417
|
-
try {
|
|
2418
|
-
if (typeof C[Te] != "function") {
|
|
2419
|
-
var Dt = Error((he || "React class") + ": " + z + " type `" + Te + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof C[Te] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
2420
|
-
throw Dt.name = "Invariant Violation", Dt;
|
|
2421
|
-
}
|
|
2422
|
-
we = C[Te](P, Te, he, z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
2423
|
-
} catch (gt) {
|
|
2424
|
-
we = gt;
|
|
2425
|
-
}
|
|
2426
|
-
we && !(we instanceof Error) && (Le(Re), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", he || "React class", z, Te, typeof we), Le(null)), we instanceof Error && !(we.message in oe) && (oe[we.message] = !0, Le(Re), x("Failed %s type: %s", z, we.message), Le(null));
|
|
2427
|
-
}
|
|
2428
|
-
}
|
|
2429
|
-
}
|
|
2430
|
-
var ut = Array.isArray;
|
|
2431
|
-
function ct(C) {
|
|
2432
|
-
return ut(C);
|
|
2433
|
-
}
|
|
2434
|
-
function Cr(C) {
|
|
2435
|
-
{
|
|
2436
|
-
var P = typeof Symbol == "function" && Symbol.toStringTag, z = P && C[Symbol.toStringTag] || C.constructor.name || "Object";
|
|
2437
|
-
return z;
|
|
2438
|
-
}
|
|
2439
|
-
}
|
|
2440
|
-
function N(C) {
|
|
2441
|
-
try {
|
|
2442
|
-
return se(C), !1;
|
|
2443
|
-
} catch {
|
|
2444
|
-
return !0;
|
|
2445
|
-
}
|
|
2446
|
-
}
|
|
2447
|
-
function se(C) {
|
|
2448
|
-
return "" + C;
|
|
2449
|
-
}
|
|
2450
|
-
function at(C) {
|
|
2451
|
-
if (N(C))
|
|
2452
|
-
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Cr(C)), se(C);
|
|
2453
|
-
}
|
|
2454
|
-
var it = b.ReactCurrentOwner, Rt = {
|
|
2455
|
-
key: !0,
|
|
2456
|
-
ref: !0,
|
|
2457
|
-
__self: !0,
|
|
2458
|
-
__source: !0
|
|
2459
|
-
}, Lr, Er, tn;
|
|
2460
|
-
tn = {};
|
|
2461
|
-
function ei(C) {
|
|
2462
|
-
if (X.call(C, "ref")) {
|
|
2463
|
-
var P = Object.getOwnPropertyDescriptor(C, "ref").get;
|
|
2464
|
-
if (P && P.isReactWarning)
|
|
2465
|
-
return !1;
|
|
2466
|
-
}
|
|
2467
|
-
return C.ref !== void 0;
|
|
2468
|
-
}
|
|
2469
|
-
function ti(C) {
|
|
2470
|
-
if (X.call(C, "key")) {
|
|
2471
|
-
var P = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
2472
|
-
if (P && P.isReactWarning)
|
|
2473
|
-
return !1;
|
|
2474
|
-
}
|
|
2475
|
-
return C.key !== void 0;
|
|
2476
|
-
}
|
|
2477
|
-
function Dn(C, P) {
|
|
2478
|
-
if (typeof C.ref == "string" && it.current && P && it.current.stateNode !== P) {
|
|
2479
|
-
var z = le(it.current.type);
|
|
2480
|
-
tn[z] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', le(it.current.type), C.ref), tn[z] = !0);
|
|
2481
|
-
}
|
|
2482
|
-
}
|
|
2483
|
-
function ri(C, P) {
|
|
2484
|
-
{
|
|
2485
|
-
var z = function() {
|
|
2486
|
-
Lr || (Lr = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", P));
|
|
2487
|
-
};
|
|
2488
|
-
z.isReactWarning = !0, Object.defineProperty(C, "key", {
|
|
2489
|
-
get: z,
|
|
2490
|
-
configurable: !0
|
|
2491
|
-
});
|
|
2492
|
-
}
|
|
2493
|
-
}
|
|
2494
|
-
function ni(C, P) {
|
|
2495
|
-
{
|
|
2496
|
-
var z = function() {
|
|
2497
|
-
Er || (Er = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", P));
|
|
2498
|
-
};
|
|
2499
|
-
z.isReactWarning = !0, Object.defineProperty(C, "ref", {
|
|
2500
|
-
get: z,
|
|
2501
|
-
configurable: !0
|
|
2502
|
-
});
|
|
2503
|
-
}
|
|
2504
|
-
}
|
|
2505
|
-
var ai = function(C, P, z, he, Re, qe, Te) {
|
|
2506
|
-
var we = {
|
|
2507
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
2508
|
-
$$typeof: t,
|
|
2509
|
-
// Built-in properties that belong on the element
|
|
2510
|
-
type: C,
|
|
2511
|
-
key: P,
|
|
2512
|
-
ref: z,
|
|
2513
|
-
props: Te,
|
|
2514
|
-
// Record the component responsible for creating this element.
|
|
2515
|
-
_owner: qe
|
|
2516
|
-
};
|
|
2517
|
-
return we._store = {}, Object.defineProperty(we._store, "validated", {
|
|
2518
|
-
configurable: !1,
|
|
2519
|
-
enumerable: !1,
|
|
2520
|
-
writable: !0,
|
|
2521
|
-
value: !1
|
|
2522
|
-
}), Object.defineProperty(we, "_self", {
|
|
2523
|
-
configurable: !1,
|
|
2524
|
-
enumerable: !1,
|
|
2525
|
-
writable: !1,
|
|
2526
|
-
value: he
|
|
2527
|
-
}), Object.defineProperty(we, "_source", {
|
|
2528
|
-
configurable: !1,
|
|
2529
|
-
enumerable: !1,
|
|
2530
|
-
writable: !1,
|
|
2531
|
-
value: Re
|
|
2532
|
-
}), Object.freeze && (Object.freeze(we.props), Object.freeze(we)), we;
|
|
2533
|
-
};
|
|
2534
|
-
function ii(C, P, z, he, Re) {
|
|
2535
|
-
{
|
|
2536
|
-
var qe, Te = {}, we = null, Dt = null;
|
|
2537
|
-
z !== void 0 && (at(z), we = "" + z), ti(P) && (at(P.key), we = "" + P.key), ei(P) && (Dt = P.ref, Dn(P, Re));
|
|
2538
|
-
for (qe in P)
|
|
2539
|
-
X.call(P, qe) && !Rt.hasOwnProperty(qe) && (Te[qe] = P[qe]);
|
|
2540
|
-
if (C && C.defaultProps) {
|
|
2541
|
-
var gt = C.defaultProps;
|
|
2542
|
-
for (qe in gt)
|
|
2543
|
-
Te[qe] === void 0 && (Te[qe] = gt[qe]);
|
|
2544
|
-
}
|
|
2545
|
-
if (we || Dt) {
|
|
2546
|
-
var yt = typeof C == "function" ? C.displayName || C.name || "Unknown" : C;
|
|
2547
|
-
we && ri(Te, yt), Dt && ni(Te, yt);
|
|
2548
|
-
}
|
|
2549
|
-
return ai(C, we, Dt, Re, he, it.current, Te);
|
|
2550
|
-
}
|
|
2551
|
-
}
|
|
2552
|
-
var oi = b.ReactCurrentOwner, Md = b.ReactDebugCurrentFrame;
|
|
2553
|
-
function Fn(C) {
|
|
2554
|
-
if (C) {
|
|
2555
|
-
var P = C._owner, z = L(C.type, C._source, P ? P.type : null);
|
|
2556
|
-
Md.setExtraStackFrame(z);
|
|
2557
|
-
} else
|
|
2558
|
-
Md.setExtraStackFrame(null);
|
|
2559
|
-
}
|
|
2560
|
-
var Ll;
|
|
2561
|
-
Ll = !1;
|
|
2562
|
-
function Nl(C) {
|
|
2563
|
-
return typeof C == "object" && C !== null && C.$$typeof === t;
|
|
2564
|
-
}
|
|
2565
|
-
function $d() {
|
|
2566
|
-
{
|
|
2567
|
-
if (oi.current) {
|
|
2568
|
-
var C = le(oi.current.type);
|
|
2569
|
-
if (C)
|
|
2570
|
-
return `
|
|
2571
|
-
|
|
2572
|
-
Check the render method of \`` + C + "`.";
|
|
2573
|
-
}
|
|
2574
|
-
return "";
|
|
2575
|
-
}
|
|
2576
|
-
}
|
|
2577
|
-
function $b(C) {
|
|
2578
|
-
{
|
|
2579
|
-
if (C !== void 0) {
|
|
2580
|
-
var P = C.fileName.replace(/^.*[\\\/]/, ""), z = C.lineNumber;
|
|
2581
|
-
return `
|
|
2582
|
-
|
|
2583
|
-
Check your code at ` + P + ":" + z + ".";
|
|
2584
|
-
}
|
|
2585
|
-
return "";
|
|
2586
|
-
}
|
|
2587
|
-
}
|
|
2588
|
-
var Ad = {};
|
|
2589
|
-
function Ab(C) {
|
|
2590
|
-
{
|
|
2591
|
-
var P = $d();
|
|
2592
|
-
if (!P) {
|
|
2593
|
-
var z = typeof C == "string" ? C : C.displayName || C.name;
|
|
2594
|
-
z && (P = `
|
|
2595
|
-
|
|
2596
|
-
Check the top-level render call using <` + z + ">.");
|
|
2597
|
-
}
|
|
2598
|
-
return P;
|
|
2599
|
-
}
|
|
2600
|
-
}
|
|
2601
|
-
function Pd(C, P) {
|
|
2602
|
-
{
|
|
2603
|
-
if (!C._store || C._store.validated || C.key != null)
|
|
2604
|
-
return;
|
|
2605
|
-
C._store.validated = !0;
|
|
2606
|
-
var z = Ab(P);
|
|
2607
|
-
if (Ad[z])
|
|
2608
|
-
return;
|
|
2609
|
-
Ad[z] = !0;
|
|
2610
|
-
var he = "";
|
|
2611
|
-
C && C._owner && C._owner !== oi.current && (he = " It was passed a child from " + le(C._owner.type) + "."), Fn(C), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', z, he), Fn(null);
|
|
2612
|
-
}
|
|
2613
|
-
}
|
|
2614
|
-
function Rd(C, P) {
|
|
2615
|
-
{
|
|
2616
|
-
if (typeof C != "object")
|
|
2617
|
-
return;
|
|
2618
|
-
if (ct(C))
|
|
2619
|
-
for (var z = 0; z < C.length; z++) {
|
|
2620
|
-
var he = C[z];
|
|
2621
|
-
Nl(he) && Pd(he, P);
|
|
2622
|
-
}
|
|
2623
|
-
else if (Nl(C))
|
|
2624
|
-
C._store && (C._store.validated = !0);
|
|
2625
|
-
else if (C) {
|
|
2626
|
-
var Re = m(C);
|
|
2627
|
-
if (typeof Re == "function" && Re !== C.entries)
|
|
2628
|
-
for (var qe = Re.call(C), Te; !(Te = qe.next()).done; )
|
|
2629
|
-
Nl(Te.value) && Pd(Te.value, P);
|
|
2630
|
-
}
|
|
2631
|
-
}
|
|
1926
|
+
const Wl = (e, t, r) => {
|
|
1927
|
+
const n = e * e;
|
|
1928
|
+
return Math.sqrt(Math.max(0, r * (t * t - n) + n));
|
|
1929
|
+
}, $x = [Iu, dn, ba], Ax = (e) => $x.find((t) => t.test(e));
|
|
1930
|
+
function Ud(e) {
|
|
1931
|
+
const t = Ax(e);
|
|
1932
|
+
to(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`);
|
|
1933
|
+
let r = t.parse(e);
|
|
1934
|
+
return t === ba && (r = Mx(r)), r;
|
|
1935
|
+
}
|
|
1936
|
+
const xg = (e, t) => {
|
|
1937
|
+
const r = Ud(e), n = Ud(t), a = { ...r };
|
|
1938
|
+
return (i) => (a.red = Wl(r.red, n.red, i), a.green = Wl(r.green, n.green, i), a.blue = Wl(r.blue, n.blue, i), a.alpha = Zs(r.alpha, n.alpha, i), dn.transform(a));
|
|
1939
|
+
};
|
|
1940
|
+
function Px(e) {
|
|
1941
|
+
var t, r;
|
|
1942
|
+
return isNaN(e) && Qi(e) && (((t = e.match(Hc)) === null || t === void 0 ? void 0 : t.length) || 0) + (((r = e.match(lg)) === null || r === void 0 ? void 0 : r.length) || 0) > 0;
|
|
1943
|
+
}
|
|
1944
|
+
const wg = {
|
|
1945
|
+
regex: Yy,
|
|
1946
|
+
countKey: "Vars",
|
|
1947
|
+
token: "${v}",
|
|
1948
|
+
parse: eo
|
|
1949
|
+
}, Cg = {
|
|
1950
|
+
regex: lg,
|
|
1951
|
+
countKey: "Colors",
|
|
1952
|
+
token: "${c}",
|
|
1953
|
+
parse: Xs.parse
|
|
1954
|
+
}, Eg = {
|
|
1955
|
+
regex: Hc,
|
|
1956
|
+
countKey: "Numbers",
|
|
1957
|
+
token: "${n}",
|
|
1958
|
+
parse: Zi.parse
|
|
1959
|
+
};
|
|
1960
|
+
function Vl(e, { regex: t, countKey: r, token: n, parse: a }) {
|
|
1961
|
+
const i = e.tokenised.match(t);
|
|
1962
|
+
i && (e["num" + r] = i.length, e.tokenised = e.tokenised.replace(t, n), e.values.push(...i.map(a)));
|
|
1963
|
+
}
|
|
1964
|
+
function ps(e) {
|
|
1965
|
+
const t = e.toString(), r = {
|
|
1966
|
+
value: t,
|
|
1967
|
+
tokenised: t,
|
|
1968
|
+
values: [],
|
|
1969
|
+
numVars: 0,
|
|
1970
|
+
numColors: 0,
|
|
1971
|
+
numNumbers: 0
|
|
1972
|
+
};
|
|
1973
|
+
return r.value.includes("var(--") && Vl(r, wg), Vl(r, Cg), Vl(r, Eg), r;
|
|
1974
|
+
}
|
|
1975
|
+
function Sg(e) {
|
|
1976
|
+
return ps(e).values;
|
|
1977
|
+
}
|
|
1978
|
+
function _g(e) {
|
|
1979
|
+
const { values: t, numColors: r, numVars: n, tokenised: a } = ps(e), i = t.length;
|
|
1980
|
+
return (o) => {
|
|
1981
|
+
let s = a;
|
|
1982
|
+
for (let u = 0; u < i; u++)
|
|
1983
|
+
u < n ? s = s.replace(wg.token, o[u]) : u < n + r ? s = s.replace(Cg.token, Xs.transform(o[u])) : s = s.replace(Eg.token, Oi(o[u]));
|
|
1984
|
+
return s;
|
|
1985
|
+
};
|
|
1986
|
+
}
|
|
1987
|
+
const Rx = (e) => typeof e == "number" ? 0 : e;
|
|
1988
|
+
function Dx(e) {
|
|
1989
|
+
const t = Sg(e);
|
|
1990
|
+
return _g(e)(t.map(Rx));
|
|
1991
|
+
}
|
|
1992
|
+
const Fx = {
|
|
1993
|
+
test: Px,
|
|
1994
|
+
parse: Sg,
|
|
1995
|
+
createTransformer: _g,
|
|
1996
|
+
getAnimatableNone: Dx
|
|
1997
|
+
}, kg = (e, t) => (r) => `${r > 0 ? t : e}`;
|
|
1998
|
+
function Tg(e, t) {
|
|
1999
|
+
return typeof e == "number" ? (r) => Zs(e, t, r) : Xs.test(e) ? xg(e, t) : e.startsWith("var(") ? kg(e, t) : Mg(e, t);
|
|
2000
|
+
}
|
|
2001
|
+
const Og = (e, t) => {
|
|
2002
|
+
const r = [...e], n = r.length, a = e.map((i, o) => Tg(i, t[o]));
|
|
2003
|
+
return (i) => {
|
|
2004
|
+
for (let o = 0; o < n; o++)
|
|
2005
|
+
r[o] = a[o](i);
|
|
2006
|
+
return r;
|
|
2007
|
+
};
|
|
2008
|
+
}, Ix = (e, t) => {
|
|
2009
|
+
const r = { ...e, ...t }, n = {};
|
|
2010
|
+
for (const a in r)
|
|
2011
|
+
e[a] !== void 0 && t[a] !== void 0 && (n[a] = Tg(e[a], t[a]));
|
|
2012
|
+
return (a) => {
|
|
2013
|
+
for (const i in n)
|
|
2014
|
+
r[i] = n[i](a);
|
|
2015
|
+
return r;
|
|
2016
|
+
};
|
|
2017
|
+
}, Mg = (e, t) => {
|
|
2018
|
+
const r = Fx.createTransformer(t), n = ps(e), a = ps(t);
|
|
2019
|
+
return n.numVars === a.numVars && n.numColors === a.numColors && n.numNumbers >= a.numNumbers ? bg(Og(n.values, a.values), r) : (Gc(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), kg(e, t));
|
|
2020
|
+
}, Kc = (e, t, r) => {
|
|
2021
|
+
const n = t - e;
|
|
2022
|
+
return n === 0 ? 1 : (r - e) / n;
|
|
2023
|
+
}, Yd = (e, t) => (r) => Zs(e, t, r);
|
|
2024
|
+
function jx(e) {
|
|
2025
|
+
return typeof e == "number" ? Yd : typeof e == "string" ? Xs.test(e) ? xg : Mg : Array.isArray(e) ? Og : typeof e == "object" ? Ix : Yd;
|
|
2026
|
+
}
|
|
2027
|
+
function Lx(e, t, r) {
|
|
2028
|
+
const n = [], a = r || jx(e[0]), i = e.length - 1;
|
|
2029
|
+
for (let o = 0; o < i; o++) {
|
|
2030
|
+
let s = a(e[o], e[o + 1]);
|
|
2031
|
+
if (t) {
|
|
2032
|
+
const u = Array.isArray(t) ? t[o] || eo : t;
|
|
2033
|
+
s = bg(u, s);
|
|
2632
2034
|
}
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2035
|
+
n.push(s);
|
|
2036
|
+
}
|
|
2037
|
+
return n;
|
|
2038
|
+
}
|
|
2039
|
+
function Nx(e, t, { clamp: r = !0, ease: n, mixer: a } = {}) {
|
|
2040
|
+
const i = e.length;
|
|
2041
|
+
if (to(i === t.length, "Both input and output ranges must be the same length"), i === 1)
|
|
2042
|
+
return () => t[0];
|
|
2043
|
+
e[0] > e[i - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
2044
|
+
const o = Lx(t, n, a), s = o.length, u = (l) => {
|
|
2045
|
+
let c = 0;
|
|
2046
|
+
if (s > 1)
|
|
2047
|
+
for (; c < e.length - 2 && !(l < e[c + 1]); c++)
|
|
2048
|
+
;
|
|
2049
|
+
const f = Kc(e[c], e[c + 1], l);
|
|
2050
|
+
return o[c](f);
|
|
2051
|
+
};
|
|
2052
|
+
return r ? (l) => u(Vc(e[0], e[i - 1], l)) : u;
|
|
2053
|
+
}
|
|
2054
|
+
function Bx(e, t) {
|
|
2055
|
+
const r = e[e.length - 1];
|
|
2056
|
+
for (let n = 1; n <= t; n++) {
|
|
2057
|
+
const a = Kc(0, t, n);
|
|
2058
|
+
e.push(Zs(r, 1, a));
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
function zx(e) {
|
|
2062
|
+
const t = [0];
|
|
2063
|
+
return Bx(t, e.length - 1), t;
|
|
2064
|
+
}
|
|
2065
|
+
function $g(e, t) {
|
|
2066
|
+
return t ? e * (1e3 / t) : 0;
|
|
2067
|
+
}
|
|
2068
|
+
function Wx(e, t) {
|
|
2069
|
+
e.indexOf(t) === -1 && e.push(t);
|
|
2070
|
+
}
|
|
2071
|
+
function Vx(e, t) {
|
|
2072
|
+
const r = e.indexOf(t);
|
|
2073
|
+
r > -1 && e.splice(r, 1);
|
|
2074
|
+
}
|
|
2075
|
+
class Hx {
|
|
2076
|
+
constructor() {
|
|
2077
|
+
this.subscriptions = [];
|
|
2078
|
+
}
|
|
2079
|
+
add(t) {
|
|
2080
|
+
return Wx(this.subscriptions, t), () => Vx(this.subscriptions, t);
|
|
2081
|
+
}
|
|
2082
|
+
notify(t, r, n) {
|
|
2083
|
+
const a = this.subscriptions.length;
|
|
2084
|
+
if (a)
|
|
2085
|
+
if (a === 1)
|
|
2086
|
+
this.subscriptions[0](t, r, n);
|
|
2087
|
+
else
|
|
2088
|
+
for (let i = 0; i < a; i++) {
|
|
2089
|
+
const o = this.subscriptions[i];
|
|
2090
|
+
o && o(t, r, n);
|
|
2654
2091
|
}
|
|
2655
|
-
|
|
2656
|
-
|
|
2092
|
+
}
|
|
2093
|
+
getSize() {
|
|
2094
|
+
return this.subscriptions.length;
|
|
2095
|
+
}
|
|
2096
|
+
clear() {
|
|
2097
|
+
this.subscriptions.length = 0;
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
const Gd = /* @__PURE__ */ new Set();
|
|
2101
|
+
function Ux(e, t, r) {
|
|
2102
|
+
e || Gd.has(t) || (console.warn(t), r && console.warn(r), Gd.add(t));
|
|
2103
|
+
}
|
|
2104
|
+
const Yx = (e) => !isNaN(parseFloat(e));
|
|
2105
|
+
class Gx {
|
|
2106
|
+
/**
|
|
2107
|
+
* @param init - The initiating value
|
|
2108
|
+
* @param config - Optional configuration options
|
|
2109
|
+
*
|
|
2110
|
+
* - `transformer`: A function to transform incoming values with.
|
|
2111
|
+
*
|
|
2112
|
+
* @internal
|
|
2113
|
+
*/
|
|
2114
|
+
constructor(t, r = {}) {
|
|
2115
|
+
this.version = "10.16.4", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (n, a = !0) => {
|
|
2116
|
+
this.prev = this.current, this.current = n;
|
|
2117
|
+
const { delta: i, timestamp: o } = mg;
|
|
2118
|
+
this.lastUpdated !== o && (this.timeDelta = i, this.lastUpdated = o, br.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), a && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
|
2119
|
+
}, this.scheduleVelocityCheck = () => br.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: n }) => {
|
|
2120
|
+
n !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
|
|
2121
|
+
}, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = Yx(this.current), this.owner = r.owner;
|
|
2122
|
+
}
|
|
2123
|
+
/**
|
|
2124
|
+
* Adds a function that will be notified when the `MotionValue` is updated.
|
|
2125
|
+
*
|
|
2126
|
+
* It returns a function that, when called, will cancel the subscription.
|
|
2127
|
+
*
|
|
2128
|
+
* When calling `onChange` inside a React component, it should be wrapped with the
|
|
2129
|
+
* `useEffect` hook. As it returns an unsubscribe function, this should be returned
|
|
2130
|
+
* from the `useEffect` function to ensure you don't add duplicate subscribers..
|
|
2131
|
+
*
|
|
2132
|
+
* ```jsx
|
|
2133
|
+
* export const MyComponent = () => {
|
|
2134
|
+
* const x = useMotionValue(0)
|
|
2135
|
+
* const y = useMotionValue(0)
|
|
2136
|
+
* const opacity = useMotionValue(1)
|
|
2137
|
+
*
|
|
2138
|
+
* useEffect(() => {
|
|
2139
|
+
* function updateOpacity() {
|
|
2140
|
+
* const maxXY = Math.max(x.get(), y.get())
|
|
2141
|
+
* const newOpacity = transform(maxXY, [0, 100], [1, 0])
|
|
2142
|
+
* opacity.set(newOpacity)
|
|
2143
|
+
* }
|
|
2144
|
+
*
|
|
2145
|
+
* const unsubscribeX = x.on("change", updateOpacity)
|
|
2146
|
+
* const unsubscribeY = y.on("change", updateOpacity)
|
|
2147
|
+
*
|
|
2148
|
+
* return () => {
|
|
2149
|
+
* unsubscribeX()
|
|
2150
|
+
* unsubscribeY()
|
|
2151
|
+
* }
|
|
2152
|
+
* }, [])
|
|
2153
|
+
*
|
|
2154
|
+
* return <motion.div style={{ x }} />
|
|
2155
|
+
* }
|
|
2156
|
+
* ```
|
|
2157
|
+
*
|
|
2158
|
+
* @param subscriber - A function that receives the latest value.
|
|
2159
|
+
* @returns A function that, when called, will cancel this subscription.
|
|
2160
|
+
*
|
|
2161
|
+
* @deprecated
|
|
2162
|
+
*/
|
|
2163
|
+
onChange(t) {
|
|
2164
|
+
return process.env.NODE_ENV !== "production" && Ux(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
|
|
2165
|
+
}
|
|
2166
|
+
on(t, r) {
|
|
2167
|
+
this.events[t] || (this.events[t] = new Hx());
|
|
2168
|
+
const n = this.events[t].add(r);
|
|
2169
|
+
return t === "change" ? () => {
|
|
2170
|
+
n(), br.read(() => {
|
|
2171
|
+
this.events.change.getSize() || this.stop();
|
|
2172
|
+
});
|
|
2173
|
+
} : n;
|
|
2174
|
+
}
|
|
2175
|
+
clearListeners() {
|
|
2176
|
+
for (const t in this.events)
|
|
2177
|
+
this.events[t].clear();
|
|
2178
|
+
}
|
|
2179
|
+
/**
|
|
2180
|
+
* Attaches a passive effect to the `MotionValue`.
|
|
2181
|
+
*
|
|
2182
|
+
* @internal
|
|
2183
|
+
*/
|
|
2184
|
+
attach(t, r) {
|
|
2185
|
+
this.passiveEffect = t, this.stopPassiveEffect = r;
|
|
2186
|
+
}
|
|
2187
|
+
/**
|
|
2188
|
+
* Sets the state of the `MotionValue`.
|
|
2189
|
+
*
|
|
2190
|
+
* @remarks
|
|
2191
|
+
*
|
|
2192
|
+
* ```jsx
|
|
2193
|
+
* const x = useMotionValue(0)
|
|
2194
|
+
* x.set(10)
|
|
2195
|
+
* ```
|
|
2196
|
+
*
|
|
2197
|
+
* @param latest - Latest value to set.
|
|
2198
|
+
* @param render - Whether to notify render subscribers. Defaults to `true`
|
|
2199
|
+
*
|
|
2200
|
+
* @public
|
|
2201
|
+
*/
|
|
2202
|
+
set(t, r = !0) {
|
|
2203
|
+
!r || !this.passiveEffect ? this.updateAndNotify(t, r) : this.passiveEffect(t, this.updateAndNotify);
|
|
2204
|
+
}
|
|
2205
|
+
setWithVelocity(t, r, n) {
|
|
2206
|
+
this.set(r), this.prev = t, this.timeDelta = n;
|
|
2207
|
+
}
|
|
2208
|
+
/**
|
|
2209
|
+
* Set the state of the `MotionValue`, stopping any active animations,
|
|
2210
|
+
* effects, and resets velocity to `0`.
|
|
2211
|
+
*/
|
|
2212
|
+
jump(t) {
|
|
2213
|
+
this.updateAndNotify(t), this.prev = t, this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
2214
|
+
}
|
|
2215
|
+
/**
|
|
2216
|
+
* Returns the latest state of `MotionValue`
|
|
2217
|
+
*
|
|
2218
|
+
* @returns - The latest state of `MotionValue`
|
|
2219
|
+
*
|
|
2220
|
+
* @public
|
|
2221
|
+
*/
|
|
2222
|
+
get() {
|
|
2223
|
+
return this.current;
|
|
2224
|
+
}
|
|
2225
|
+
/**
|
|
2226
|
+
* @public
|
|
2227
|
+
*/
|
|
2228
|
+
getPrevious() {
|
|
2229
|
+
return this.prev;
|
|
2230
|
+
}
|
|
2231
|
+
/**
|
|
2232
|
+
* Returns the latest velocity of `MotionValue`
|
|
2233
|
+
*
|
|
2234
|
+
* @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.
|
|
2235
|
+
*
|
|
2236
|
+
* @public
|
|
2237
|
+
*/
|
|
2238
|
+
getVelocity() {
|
|
2239
|
+
return this.canTrackVelocity ? (
|
|
2240
|
+
// These casts could be avoided if parseFloat would be typed better
|
|
2241
|
+
$g(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
|
|
2242
|
+
) : 0;
|
|
2243
|
+
}
|
|
2244
|
+
/**
|
|
2245
|
+
* Registers a new animation to control this `MotionValue`. Only one
|
|
2246
|
+
* animation can drive a `MotionValue` at one time.
|
|
2247
|
+
*
|
|
2248
|
+
* ```jsx
|
|
2249
|
+
* value.start()
|
|
2250
|
+
* ```
|
|
2251
|
+
*
|
|
2252
|
+
* @param animation - A function that starts the provided animation
|
|
2253
|
+
*
|
|
2254
|
+
* @internal
|
|
2255
|
+
*/
|
|
2256
|
+
start(t) {
|
|
2257
|
+
return this.stop(), new Promise((r) => {
|
|
2258
|
+
this.hasAnimated = !0, this.animation = t(r), this.events.animationStart && this.events.animationStart.notify();
|
|
2259
|
+
}).then(() => {
|
|
2260
|
+
this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
|
|
2261
|
+
});
|
|
2262
|
+
}
|
|
2263
|
+
/**
|
|
2264
|
+
* Stop the currently active animation.
|
|
2265
|
+
*
|
|
2266
|
+
* @public
|
|
2267
|
+
*/
|
|
2268
|
+
stop() {
|
|
2269
|
+
this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
|
|
2270
|
+
}
|
|
2271
|
+
/**
|
|
2272
|
+
* Returns `true` if this value is currently animating.
|
|
2273
|
+
*
|
|
2274
|
+
* @public
|
|
2275
|
+
*/
|
|
2276
|
+
isAnimating() {
|
|
2277
|
+
return !!this.animation;
|
|
2278
|
+
}
|
|
2279
|
+
clearAnimation() {
|
|
2280
|
+
delete this.animation;
|
|
2281
|
+
}
|
|
2282
|
+
/**
|
|
2283
|
+
* Destroy and clean up subscribers to this `MotionValue`.
|
|
2284
|
+
*
|
|
2285
|
+
* The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically
|
|
2286
|
+
* handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually
|
|
2287
|
+
* created a `MotionValue` via the `motionValue` function.
|
|
2288
|
+
*
|
|
2289
|
+
* @public
|
|
2290
|
+
*/
|
|
2291
|
+
destroy() {
|
|
2292
|
+
this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
function So(e, t) {
|
|
2296
|
+
return new Gx(e, t);
|
|
2297
|
+
}
|
|
2298
|
+
const sr = By(_x);
|
|
2299
|
+
function Ag() {
|
|
2300
|
+
const e = Oe(!1);
|
|
2301
|
+
return qs(() => (e.current = !0, () => {
|
|
2302
|
+
e.current = !1;
|
|
2303
|
+
}), []), e;
|
|
2304
|
+
}
|
|
2305
|
+
function qx() {
|
|
2306
|
+
const e = Ag(), [t, r] = bt(0), n = xt(() => {
|
|
2307
|
+
e.current && r(t + 1);
|
|
2308
|
+
}, [t]);
|
|
2309
|
+
return [xt(() => br.postRender(n), [n]), t];
|
|
2310
|
+
}
|
|
2311
|
+
class Kx extends de.Component {
|
|
2312
|
+
getSnapshotBeforeUpdate(t) {
|
|
2313
|
+
const r = this.props.childRef.current;
|
|
2314
|
+
if (r && t.isPresent && !this.props.isPresent) {
|
|
2315
|
+
const n = this.props.sizeRef.current;
|
|
2316
|
+
n.height = r.offsetHeight || 0, n.width = r.offsetWidth || 0, n.top = r.offsetTop, n.left = r.offsetLeft;
|
|
2657
2317
|
}
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2318
|
+
return null;
|
|
2319
|
+
}
|
|
2320
|
+
/**
|
|
2321
|
+
* Required with getSnapshotBeforeUpdate to stop React complaining.
|
|
2322
|
+
*/
|
|
2323
|
+
componentDidUpdate() {
|
|
2324
|
+
}
|
|
2325
|
+
render() {
|
|
2326
|
+
return this.props.children;
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
function Xx({ children: e, isPresent: t }) {
|
|
2330
|
+
const r = Ic(), n = Oe(null), a = Oe({
|
|
2331
|
+
width: 0,
|
|
2332
|
+
height: 0,
|
|
2333
|
+
top: 0,
|
|
2334
|
+
left: 0
|
|
2335
|
+
});
|
|
2336
|
+
return j1(() => {
|
|
2337
|
+
const { width: i, height: o, top: s, left: u } = a.current;
|
|
2338
|
+
if (t || !n.current || !i || !o)
|
|
2339
|
+
return;
|
|
2340
|
+
n.current.dataset.motionPopId = r;
|
|
2341
|
+
const l = document.createElement("style");
|
|
2342
|
+
return document.head.appendChild(l), l.sheet && l.sheet.insertRule(`
|
|
2343
|
+
[data-motion-pop-id="${r}"] {
|
|
2344
|
+
position: absolute !important;
|
|
2345
|
+
width: ${i}px !important;
|
|
2346
|
+
height: ${o}px !important;
|
|
2347
|
+
top: ${s}px !important;
|
|
2348
|
+
left: ${u}px !important;
|
|
2665
2349
|
}
|
|
2350
|
+
`), () => {
|
|
2351
|
+
document.head.removeChild(l);
|
|
2352
|
+
};
|
|
2353
|
+
}, [t]), de.createElement(Kx, { isPresent: t, childRef: n, sizeRef: a }, de.cloneElement(e, { ref: n }));
|
|
2354
|
+
}
|
|
2355
|
+
const Hl = ({ children: e, initial: t, isPresent: r, onExitComplete: n, custom: a, presenceAffectsLayout: i, mode: o }) => {
|
|
2356
|
+
const s = Yc(Zx), u = Ic(), l = _t(
|
|
2357
|
+
() => ({
|
|
2358
|
+
id: u,
|
|
2359
|
+
initial: t,
|
|
2360
|
+
isPresent: r,
|
|
2361
|
+
custom: a,
|
|
2362
|
+
onExitComplete: (c) => {
|
|
2363
|
+
s.set(c, !0);
|
|
2364
|
+
for (const f of s.values())
|
|
2365
|
+
if (!f)
|
|
2366
|
+
return;
|
|
2367
|
+
n && n();
|
|
2368
|
+
},
|
|
2369
|
+
register: (c) => (s.set(c, !1), () => s.delete(c))
|
|
2370
|
+
}),
|
|
2371
|
+
/**
|
|
2372
|
+
* If the presence of a child affects the layout of the components around it,
|
|
2373
|
+
* we want to make a new context value to ensure they get re-rendered
|
|
2374
|
+
* so they can detect that layout change.
|
|
2375
|
+
*/
|
|
2376
|
+
i ? void 0 : [r]
|
|
2377
|
+
);
|
|
2378
|
+
return _t(() => {
|
|
2379
|
+
s.forEach((c, f) => s.set(f, !1));
|
|
2380
|
+
}, [r]), de.useEffect(() => {
|
|
2381
|
+
!r && !s.size && n && n();
|
|
2382
|
+
}, [r]), o === "popLayout" && (e = de.createElement(Xx, { isPresent: r }, e)), de.createElement(Bc.Provider, { value: l }, e);
|
|
2383
|
+
};
|
|
2384
|
+
function Zx() {
|
|
2385
|
+
return /* @__PURE__ */ new Map();
|
|
2386
|
+
}
|
|
2387
|
+
function Qx(e) {
|
|
2388
|
+
return Ze(() => () => e(), []);
|
|
2389
|
+
}
|
|
2390
|
+
const qn = (e) => e.key || "";
|
|
2391
|
+
function Jx(e, t) {
|
|
2392
|
+
e.forEach((r) => {
|
|
2393
|
+
const n = qn(r);
|
|
2394
|
+
t.set(n, r);
|
|
2395
|
+
});
|
|
2396
|
+
}
|
|
2397
|
+
function e5(e) {
|
|
2398
|
+
const t = [];
|
|
2399
|
+
return Lb.forEach(e, (r) => {
|
|
2400
|
+
jc(r) && t.push(r);
|
|
2401
|
+
}), t;
|
|
2402
|
+
}
|
|
2403
|
+
const Pg = ({ children: e, custom: t, initial: r = !0, onExitComplete: n, exitBeforeEnter: a, presenceAffectsLayout: i = !0, mode: o = "sync" }) => {
|
|
2404
|
+
to(!a, "Replace exitBeforeEnter with mode='wait'");
|
|
2405
|
+
const s = qt(rg).forceRender || qx()[0], u = Ag(), l = e5(e);
|
|
2406
|
+
let c = l;
|
|
2407
|
+
const f = Oe(/* @__PURE__ */ new Map()).current, d = Oe(c), h = Oe(/* @__PURE__ */ new Map()).current, v = Oe(!0);
|
|
2408
|
+
if (qs(() => {
|
|
2409
|
+
v.current = !1, Jx(l, h), d.current = c;
|
|
2410
|
+
}), Qx(() => {
|
|
2411
|
+
v.current = !0, h.clear(), f.clear();
|
|
2412
|
+
}), v.current)
|
|
2413
|
+
return de.createElement(de.Fragment, null, c.map((x) => de.createElement(Hl, { key: qn(x), isPresent: !0, initial: r ? void 0 : !1, presenceAffectsLayout: i, mode: o }, x)));
|
|
2414
|
+
c = [...c];
|
|
2415
|
+
const p = d.current.map(qn), m = l.map(qn), b = p.length;
|
|
2416
|
+
for (let x = 0; x < b; x++) {
|
|
2417
|
+
const E = p[x];
|
|
2418
|
+
m.indexOf(E) === -1 && !f.has(E) && f.set(E, void 0);
|
|
2419
|
+
}
|
|
2420
|
+
return o === "wait" && f.size && (c = []), f.forEach((x, E) => {
|
|
2421
|
+
if (m.indexOf(E) !== -1)
|
|
2422
|
+
return;
|
|
2423
|
+
const T = h.get(E);
|
|
2424
|
+
if (!T)
|
|
2425
|
+
return;
|
|
2426
|
+
const w = p.indexOf(E);
|
|
2427
|
+
let _ = x;
|
|
2428
|
+
if (!_) {
|
|
2429
|
+
const k = () => {
|
|
2430
|
+
h.delete(E), f.delete(E);
|
|
2431
|
+
const O = d.current.findIndex(($) => $.key === E);
|
|
2432
|
+
if (d.current.splice(O, 1), !f.size) {
|
|
2433
|
+
if (d.current = l, u.current === !1)
|
|
2434
|
+
return;
|
|
2435
|
+
s(), n && n();
|
|
2666
2436
|
}
|
|
2667
|
-
|
|
2668
|
-
}
|
|
2437
|
+
};
|
|
2438
|
+
_ = de.createElement(Hl, { key: qn(T), isPresent: !1, onExitComplete: k, custom: t, presenceAffectsLayout: i, mode: o }, T), f.set(E, _);
|
|
2669
2439
|
}
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2440
|
+
c.splice(w, 0, _);
|
|
2441
|
+
}), c = c.map((x) => {
|
|
2442
|
+
const E = x.key;
|
|
2443
|
+
return f.has(E) ? x : de.createElement(Hl, { key: qn(x), isPresent: !0, presenceAffectsLayout: i, mode: o }, x);
|
|
2444
|
+
}), process.env.NODE_ENV !== "production" && o === "wait" && c.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`), de.createElement(de.Fragment, null, f.size ? c : c.map((x) => L1(x)));
|
|
2445
|
+
};
|
|
2446
|
+
function t5({ children: e, features: t, strict: r = !1 }) {
|
|
2447
|
+
const [, n] = bt(!Ul(t)), a = Oe(void 0);
|
|
2448
|
+
if (!Ul(t)) {
|
|
2449
|
+
const { renderer: i, ...o } = t;
|
|
2450
|
+
a.current = i, Fu(o);
|
|
2451
|
+
}
|
|
2452
|
+
return Ze(() => {
|
|
2453
|
+
Ul(t) && t().then(({ renderer: i, ...o }) => {
|
|
2454
|
+
Fu(o), a.current = i, n(!0);
|
|
2455
|
+
});
|
|
2456
|
+
}, []), de.createElement(zc.Provider, { value: { renderer: a.current, strict: r } }, e);
|
|
2457
|
+
}
|
|
2458
|
+
function Ul(e) {
|
|
2459
|
+
return typeof e == "function";
|
|
2460
|
+
}
|
|
2461
|
+
function r5(e, t, r) {
|
|
2462
|
+
var n;
|
|
2463
|
+
if (typeof e == "string") {
|
|
2464
|
+
let a = document;
|
|
2465
|
+
t && (to(!!t.current, "Scope provided, but no element detected."), a = t.current), r ? ((n = r[e]) !== null && n !== void 0 || (r[e] = a.querySelectorAll(e)), e = r[e]) : e = a.querySelectorAll(e);
|
|
2466
|
+
} else
|
|
2467
|
+
e instanceof Element && (e = [e]);
|
|
2468
|
+
return Array.from(e || []);
|
|
2469
|
+
}
|
|
2470
|
+
const Xo = /* @__PURE__ */ new WeakMap();
|
|
2471
|
+
let Hr;
|
|
2472
|
+
function n5(e, t) {
|
|
2473
|
+
if (t) {
|
|
2474
|
+
const { inlineSize: r, blockSize: n } = t[0];
|
|
2475
|
+
return { width: r, height: n };
|
|
2476
|
+
} else
|
|
2477
|
+
return e instanceof SVGElement && "getBBox" in e ? e.getBBox() : {
|
|
2478
|
+
width: e.offsetWidth,
|
|
2479
|
+
height: e.offsetHeight
|
|
2480
|
+
};
|
|
2481
|
+
}
|
|
2482
|
+
function a5({ target: e, contentRect: t, borderBoxSize: r }) {
|
|
2483
|
+
var n;
|
|
2484
|
+
(n = Xo.get(e)) === null || n === void 0 || n.forEach((a) => {
|
|
2485
|
+
a({
|
|
2486
|
+
target: e,
|
|
2487
|
+
contentSize: t,
|
|
2488
|
+
get size() {
|
|
2489
|
+
return n5(e, r);
|
|
2698
2490
|
}
|
|
2699
|
-
}
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2491
|
+
});
|
|
2492
|
+
});
|
|
2493
|
+
}
|
|
2494
|
+
function i5(e) {
|
|
2495
|
+
e.forEach(a5);
|
|
2496
|
+
}
|
|
2497
|
+
function o5() {
|
|
2498
|
+
typeof ResizeObserver > "u" || (Hr = new ResizeObserver(i5));
|
|
2499
|
+
}
|
|
2500
|
+
function s5(e, t) {
|
|
2501
|
+
Hr || o5();
|
|
2502
|
+
const r = r5(e);
|
|
2503
|
+
return r.forEach((n) => {
|
|
2504
|
+
let a = Xo.get(n);
|
|
2505
|
+
a || (a = /* @__PURE__ */ new Set(), Xo.set(n, a)), a.add(t), Hr == null || Hr.observe(n);
|
|
2506
|
+
}), () => {
|
|
2507
|
+
r.forEach((n) => {
|
|
2508
|
+
const a = Xo.get(n);
|
|
2509
|
+
a == null || a.delete(t), a != null && a.size || Hr == null || Hr.unobserve(n);
|
|
2510
|
+
});
|
|
2511
|
+
};
|
|
2512
|
+
}
|
|
2513
|
+
const Zo = /* @__PURE__ */ new Set();
|
|
2514
|
+
let $i;
|
|
2515
|
+
function l5() {
|
|
2516
|
+
$i = () => {
|
|
2517
|
+
const e = {
|
|
2518
|
+
width: window.innerWidth,
|
|
2519
|
+
height: window.innerHeight
|
|
2520
|
+
}, t = {
|
|
2521
|
+
target: window,
|
|
2522
|
+
size: e,
|
|
2523
|
+
contentSize: e
|
|
2524
|
+
};
|
|
2525
|
+
Zo.forEach((r) => r(t));
|
|
2526
|
+
}, window.addEventListener("resize", $i);
|
|
2527
|
+
}
|
|
2528
|
+
function u5(e) {
|
|
2529
|
+
return Zo.add(e), $i || l5(), () => {
|
|
2530
|
+
Zo.delete(e), !Zo.size && $i && ($i = void 0);
|
|
2531
|
+
};
|
|
2532
|
+
}
|
|
2533
|
+
function c5(e, t) {
|
|
2534
|
+
return typeof e == "function" ? u5(e) : s5(e, t);
|
|
2535
|
+
}
|
|
2536
|
+
const f5 = 50, qd = () => ({
|
|
2537
|
+
current: 0,
|
|
2538
|
+
offset: [],
|
|
2539
|
+
progress: 0,
|
|
2540
|
+
scrollLength: 0,
|
|
2541
|
+
targetOffset: 0,
|
|
2542
|
+
targetLength: 0,
|
|
2543
|
+
containerLength: 0,
|
|
2544
|
+
velocity: 0
|
|
2545
|
+
}), d5 = () => ({
|
|
2546
|
+
time: 0,
|
|
2547
|
+
x: qd(),
|
|
2548
|
+
y: qd()
|
|
2549
|
+
}), h5 = {
|
|
2550
|
+
x: {
|
|
2551
|
+
length: "Width",
|
|
2552
|
+
position: "Left"
|
|
2553
|
+
},
|
|
2554
|
+
y: {
|
|
2555
|
+
length: "Height",
|
|
2556
|
+
position: "Top"
|
|
2557
|
+
}
|
|
2558
|
+
};
|
|
2559
|
+
function Kd(e, t, r, n) {
|
|
2560
|
+
const a = r[t], { length: i, position: o } = h5[t], s = a.current, u = r.time;
|
|
2561
|
+
a.current = e["scroll" + o], a.scrollLength = e["scroll" + i] - e["client" + i], a.offset.length = 0, a.offset[0] = 0, a.offset[1] = a.scrollLength, a.progress = Kc(0, a.scrollLength, a.current);
|
|
2562
|
+
const l = n - u;
|
|
2563
|
+
a.velocity = l > f5 ? 0 : $g(a.current - s, l);
|
|
2564
|
+
}
|
|
2565
|
+
function p5(e, t, r) {
|
|
2566
|
+
Kd(e, "x", t, r), Kd(e, "y", t, r), t.time = r;
|
|
2567
|
+
}
|
|
2568
|
+
function g5(e, t) {
|
|
2569
|
+
const r = { x: 0, y: 0 };
|
|
2570
|
+
let n = e;
|
|
2571
|
+
for (; n && n !== t; )
|
|
2572
|
+
if (n instanceof HTMLElement)
|
|
2573
|
+
r.x += n.offsetLeft, r.y += n.offsetTop, n = n.offsetParent;
|
|
2574
|
+
else if (n.tagName === "svg") {
|
|
2575
|
+
const a = n.getBoundingClientRect();
|
|
2576
|
+
n = n.parentElement;
|
|
2577
|
+
const i = n.getBoundingClientRect();
|
|
2578
|
+
r.x += a.left - i.left, r.y += a.top - i.top;
|
|
2579
|
+
} else if (n instanceof SVGGraphicsElement) {
|
|
2580
|
+
const { x: a, y: i } = n.getBBox();
|
|
2581
|
+
r.x += a, r.y += i;
|
|
2582
|
+
let o = null, s = n.parentNode;
|
|
2583
|
+
for (; !o; )
|
|
2584
|
+
s.tagName === "svg" && (o = s), s = n.parentNode;
|
|
2585
|
+
n = o;
|
|
2586
|
+
} else
|
|
2587
|
+
break;
|
|
2588
|
+
return r;
|
|
2589
|
+
}
|
|
2590
|
+
const v5 = {
|
|
2591
|
+
Enter: [
|
|
2592
|
+
[0, 1],
|
|
2593
|
+
[1, 1]
|
|
2594
|
+
],
|
|
2595
|
+
Exit: [
|
|
2596
|
+
[0, 0],
|
|
2597
|
+
[1, 0]
|
|
2598
|
+
],
|
|
2599
|
+
Any: [
|
|
2600
|
+
[1, 0],
|
|
2601
|
+
[0, 1]
|
|
2602
|
+
],
|
|
2603
|
+
All: [
|
|
2604
|
+
[0, 0],
|
|
2605
|
+
[1, 1]
|
|
2606
|
+
]
|
|
2607
|
+
}, ju = {
|
|
2608
|
+
start: 0,
|
|
2609
|
+
center: 0.5,
|
|
2610
|
+
end: 1
|
|
2611
|
+
};
|
|
2612
|
+
function Xd(e, t, r = 0) {
|
|
2613
|
+
let n = 0;
|
|
2614
|
+
if (ju[e] !== void 0 && (e = ju[e]), typeof e == "string") {
|
|
2615
|
+
const a = parseFloat(e);
|
|
2616
|
+
e.endsWith("px") ? n = a : e.endsWith("%") ? e = a / 100 : e.endsWith("vw") ? n = a / 100 * document.documentElement.clientWidth : e.endsWith("vh") ? n = a / 100 * document.documentElement.clientHeight : e = a;
|
|
2617
|
+
}
|
|
2618
|
+
return typeof e == "number" && (n = t * e), r + n;
|
|
2619
|
+
}
|
|
2620
|
+
const m5 = [0, 0];
|
|
2621
|
+
function b5(e, t, r, n) {
|
|
2622
|
+
let a = Array.isArray(e) ? e : m5, i = 0, o = 0;
|
|
2623
|
+
return typeof e == "number" ? a = [e, e] : typeof e == "string" && (e = e.trim(), e.includes(" ") ? a = e.split(" ") : a = [e, ju[e] ? e : "0"]), i = Xd(a[0], r, n), o = Xd(a[1], t), i - o;
|
|
2624
|
+
}
|
|
2625
|
+
const y5 = { x: 0, y: 0 };
|
|
2626
|
+
function x5(e) {
|
|
2627
|
+
return "getBBox" in e && e.tagName !== "svg" ? e.getBBox() : { width: e.clientWidth, height: e.clientHeight };
|
|
2628
|
+
}
|
|
2629
|
+
function w5(e, t, r) {
|
|
2630
|
+
let { offset: n = v5.All } = r;
|
|
2631
|
+
const { target: a = e, axis: i = "y" } = r, o = i === "y" ? "height" : "width", s = a !== e ? g5(a, e) : y5, u = a === e ? { width: e.scrollWidth, height: e.scrollHeight } : x5(a), l = {
|
|
2632
|
+
width: e.clientWidth,
|
|
2633
|
+
height: e.clientHeight
|
|
2634
|
+
};
|
|
2635
|
+
t[i].offset.length = 0;
|
|
2636
|
+
let c = !t[i].interpolate;
|
|
2637
|
+
const f = n.length;
|
|
2638
|
+
for (let d = 0; d < f; d++) {
|
|
2639
|
+
const h = b5(n[d], l[o], u[o], s[i]);
|
|
2640
|
+
!c && h !== t[i].interpolatorOffsets[d] && (c = !0), t[i].offset[d] = h;
|
|
2641
|
+
}
|
|
2642
|
+
c && (t[i].interpolate = Nx(t[i].offset, zx(n)), t[i].interpolatorOffsets = [...t[i].offset]), t[i].progress = t[i].interpolate(t[i].current);
|
|
2643
|
+
}
|
|
2644
|
+
function C5(e, t = e, r) {
|
|
2645
|
+
if (r.x.targetOffset = 0, r.y.targetOffset = 0, t !== e) {
|
|
2646
|
+
let n = t;
|
|
2647
|
+
for (; n && n !== e; )
|
|
2648
|
+
r.x.targetOffset += n.offsetLeft, r.y.targetOffset += n.offsetTop, n = n.offsetParent;
|
|
2649
|
+
}
|
|
2650
|
+
r.x.targetLength = t === e ? t.scrollWidth : t.clientWidth, r.y.targetLength = t === e ? t.scrollHeight : t.clientHeight, r.x.containerLength = e.clientWidth, r.y.containerLength = e.clientHeight;
|
|
2651
|
+
}
|
|
2652
|
+
function E5(e, t, r, n = {}) {
|
|
2653
|
+
return {
|
|
2654
|
+
measure: () => C5(e, n.target, r),
|
|
2655
|
+
update: (a) => {
|
|
2656
|
+
p5(e, r, a), (n.offset || n.target) && w5(e, r, n);
|
|
2657
|
+
},
|
|
2658
|
+
notify: () => t(r)
|
|
2659
|
+
};
|
|
2660
|
+
}
|
|
2661
|
+
const ui = /* @__PURE__ */ new WeakMap(), Zd = /* @__PURE__ */ new WeakMap(), Yl = /* @__PURE__ */ new WeakMap(), Qd = (e) => e === document.documentElement ? window : e;
|
|
2662
|
+
function S5(e, { container: t = document.documentElement, ...r } = {}) {
|
|
2663
|
+
let n = Yl.get(t);
|
|
2664
|
+
n || (n = /* @__PURE__ */ new Set(), Yl.set(t, n));
|
|
2665
|
+
const a = d5(), i = E5(t, e, a, r);
|
|
2666
|
+
if (n.add(i), !ui.has(t)) {
|
|
2667
|
+
const s = () => {
|
|
2668
|
+
for (const d of n)
|
|
2669
|
+
d.measure();
|
|
2670
|
+
}, u = () => {
|
|
2671
|
+
for (const d of n)
|
|
2672
|
+
d.update(mg.timestamp);
|
|
2673
|
+
}, l = () => {
|
|
2674
|
+
for (const d of n)
|
|
2675
|
+
d.notify();
|
|
2676
|
+
}, c = () => {
|
|
2677
|
+
br.read(s, !1, !0), br.update(u, !1, !0), br.update(l, !1, !0);
|
|
2678
|
+
};
|
|
2679
|
+
ui.set(t, c);
|
|
2680
|
+
const f = Qd(t);
|
|
2681
|
+
window.addEventListener("resize", c, { passive: !0 }), t !== document.documentElement && Zd.set(t, c5(t, c)), f.addEventListener("scroll", c, { passive: !0 });
|
|
2682
|
+
}
|
|
2683
|
+
const o = ui.get(t);
|
|
2684
|
+
return br.read(o, !1, !0), () => {
|
|
2685
|
+
var s;
|
|
2686
|
+
Cx(o);
|
|
2687
|
+
const u = Yl.get(t);
|
|
2688
|
+
if (!u || (u.delete(i), u.size))
|
|
2689
|
+
return;
|
|
2690
|
+
const l = ui.get(t);
|
|
2691
|
+
ui.delete(t), l && (Qd(t).removeEventListener("scroll", l), (s = Zd.get(t)) === null || s === void 0 || s(), window.removeEventListener("resize", l));
|
|
2692
|
+
};
|
|
2693
|
+
}
|
|
2694
|
+
function Jd(e, t) {
|
|
2695
|
+
Gc(!!(!t || t.current), `You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`);
|
|
2696
|
+
}
|
|
2697
|
+
const _5 = () => ({
|
|
2698
|
+
scrollX: So(0),
|
|
2699
|
+
scrollY: So(0),
|
|
2700
|
+
scrollXProgress: So(0),
|
|
2701
|
+
scrollYProgress: So(0)
|
|
2702
|
+
});
|
|
2703
|
+
function k5({ container: e, target: t, layoutEffect: r = !0, ...n } = {}) {
|
|
2704
|
+
const a = Yc(_5);
|
|
2705
|
+
return (r ? qs : Ze)(() => (Jd("target", t), Jd("container", e), S5(({ x: o, y: s }) => {
|
|
2706
|
+
a.scrollX.set(o.current), a.scrollXProgress.set(o.progress), a.scrollY.set(s.current), a.scrollYProgress.set(s.progress);
|
|
2707
|
+
}, {
|
|
2708
|
+
...n,
|
|
2709
|
+
container: (e == null ? void 0 : e.current) || void 0,
|
|
2710
|
+
target: (t == null ? void 0 : t.current) || void 0
|
|
2711
|
+
})), [e, t, JSON.stringify(n.offset)]), a;
|
|
2709
2712
|
}
|
|
2710
|
-
process.env.NODE_ENV === "production" ? ju.exports = _5() : ju.exports = k5();
|
|
2711
|
-
var g = ju.exports;
|
|
2712
2713
|
const NK = ({
|
|
2713
2714
|
open: e = !1,
|
|
2714
2715
|
variants: t,
|
|
@@ -6294,7 +6295,7 @@ const z4 = (e, t, r) => {
|
|
|
6294
6295
|
...n,
|
|
6295
6296
|
children: r
|
|
6296
6297
|
}
|
|
6297
|
-
), W4 = () => import("./features-
|
|
6298
|
+
), W4 = () => import("./features-1203c748.js").then((e) => e.default), V4 = ({ children: e }) => /* @__PURE__ */ g.jsx(t5, { strict: !0, features: W4, children: /* @__PURE__ */ g.jsxs(sr.div, { style: { height: "100%" }, children: [
|
|
6298
6299
|
" ",
|
|
6299
6300
|
e,
|
|
6300
6301
|
" "
|
|
@@ -33975,7 +33976,7 @@ const PX = (e, t, r = "mousedown") => {
|
|
|
33975
33976
|
!a || a.contains(n.target) || t(n);
|
|
33976
33977
|
});
|
|
33977
33978
|
}, RX = (e = 100, t) => {
|
|
33978
|
-
const { scrollY: r } =
|
|
33979
|
+
const { scrollY: r } = k5(t), [n, a] = bt(!1);
|
|
33979
33980
|
return Ze(
|
|
33980
33981
|
() => r.onChange((i) => {
|
|
33981
33982
|
i > e ? a(!0) : a(!1);
|
|
@@ -34121,39 +34122,39 @@ export {
|
|
|
34121
34122
|
ug as $,
|
|
34122
34123
|
jK as A,
|
|
34123
34124
|
tg as B,
|
|
34124
|
-
|
|
34125
|
-
|
|
34126
|
-
|
|
34125
|
+
px as C,
|
|
34126
|
+
Ay as D,
|
|
34127
|
+
Ru as E,
|
|
34127
34128
|
Zs as F,
|
|
34128
34129
|
Kc as G,
|
|
34129
|
-
|
|
34130
|
+
My as H,
|
|
34130
34131
|
RK as I,
|
|
34131
|
-
|
|
34132
|
-
|
|
34132
|
+
Wx as J,
|
|
34133
|
+
Vx as K,
|
|
34133
34134
|
rg as L,
|
|
34134
|
-
|
|
34135
|
+
Hx as M,
|
|
34135
34136
|
LK as N,
|
|
34136
|
-
|
|
34137
|
+
vx as O,
|
|
34137
34138
|
Bc as P,
|
|
34138
34139
|
ag as Q,
|
|
34139
34140
|
DK as R,
|
|
34140
|
-
|
|
34141
|
+
Iy as S,
|
|
34141
34142
|
Ks as T,
|
|
34142
34143
|
eg as U,
|
|
34143
|
-
|
|
34144
|
+
Ux as V,
|
|
34144
34145
|
Wc as W,
|
|
34145
|
-
|
|
34146
|
-
|
|
34147
|
-
|
|
34148
|
-
|
|
34149
|
-
|
|
34150
|
-
|
|
34146
|
+
Ry as X,
|
|
34147
|
+
Du as Y,
|
|
34148
|
+
Py as Z,
|
|
34149
|
+
Uy as _,
|
|
34150
|
+
Nx as a,
|
|
34151
|
+
I5 as a$,
|
|
34151
34152
|
gg as a0,
|
|
34152
|
-
|
|
34153
|
-
|
|
34154
|
-
|
|
34153
|
+
ux as a1,
|
|
34154
|
+
cx as a2,
|
|
34155
|
+
dx as a3,
|
|
34155
34156
|
dg as a4,
|
|
34156
|
-
|
|
34157
|
+
fx as a5,
|
|
34157
34158
|
pg as a6,
|
|
34158
34159
|
ng as a7,
|
|
34159
34160
|
Iv as a8,
|
|
@@ -34182,9 +34183,9 @@ export {
|
|
|
34182
34183
|
CX as aV,
|
|
34183
34184
|
EX as aW,
|
|
34184
34185
|
SX as aX,
|
|
34185
|
-
|
|
34186
|
-
|
|
34187
|
-
|
|
34186
|
+
NK as aY,
|
|
34187
|
+
BK as aZ,
|
|
34188
|
+
T5 as a_,
|
|
34188
34189
|
HK as aa,
|
|
34189
34190
|
UK as ab,
|
|
34190
34191
|
YK as ac,
|
|
@@ -34212,73 +34213,72 @@ export {
|
|
|
34212
34213
|
iX as ay,
|
|
34213
34214
|
fU as az,
|
|
34214
34215
|
Vc as b,
|
|
34215
|
-
|
|
34216
|
-
|
|
34217
|
-
|
|
34218
|
-
|
|
34219
|
-
|
|
34220
|
-
|
|
34221
|
-
|
|
34222
|
-
|
|
34223
|
-
|
|
34224
|
-
|
|
34225
|
-
|
|
34226
|
-
|
|
34227
|
-
|
|
34228
|
-
|
|
34229
|
-
|
|
34230
|
-
|
|
34231
|
-
|
|
34232
|
-
|
|
34233
|
-
|
|
34234
|
-
|
|
34235
|
-
|
|
34236
|
-
|
|
34237
|
-
|
|
34238
|
-
|
|
34239
|
-
|
|
34240
|
-
|
|
34241
|
-
|
|
34242
|
-
|
|
34243
|
-
|
|
34244
|
-
|
|
34245
|
-
|
|
34246
|
-
|
|
34247
|
-
|
|
34248
|
-
|
|
34249
|
-
|
|
34250
|
-
|
|
34251
|
-
|
|
34252
|
-
|
|
34253
|
-
|
|
34254
|
-
|
|
34255
|
-
|
|
34256
|
-
|
|
34257
|
-
|
|
34258
|
-
|
|
34259
|
-
|
|
34260
|
-
|
|
34261
|
-
|
|
34262
|
-
|
|
34263
|
-
|
|
34264
|
-
|
|
34265
|
-
|
|
34266
|
-
|
|
34267
|
-
|
|
34268
|
-
xx as e,
|
|
34216
|
+
zK as b0,
|
|
34217
|
+
WK as b1,
|
|
34218
|
+
V4 as b2,
|
|
34219
|
+
_y as b3,
|
|
34220
|
+
wK as b4,
|
|
34221
|
+
ds as b5,
|
|
34222
|
+
EK as b6,
|
|
34223
|
+
SK as b7,
|
|
34224
|
+
_K as b8,
|
|
34225
|
+
kK as b9,
|
|
34226
|
+
AX as bA,
|
|
34227
|
+
PX as bB,
|
|
34228
|
+
RX as bC,
|
|
34229
|
+
DX as bD,
|
|
34230
|
+
ZK as bE,
|
|
34231
|
+
FX as bF,
|
|
34232
|
+
oX as bG,
|
|
34233
|
+
IX as bH,
|
|
34234
|
+
jX as bI,
|
|
34235
|
+
tX as bJ,
|
|
34236
|
+
XK as bK,
|
|
34237
|
+
LX as bL,
|
|
34238
|
+
NX as bM,
|
|
34239
|
+
BX as bN,
|
|
34240
|
+
TK as ba,
|
|
34241
|
+
OK as bb,
|
|
34242
|
+
MK as bc,
|
|
34243
|
+
Au as bd,
|
|
34244
|
+
CK as be,
|
|
34245
|
+
me as bf,
|
|
34246
|
+
Ee as bg,
|
|
34247
|
+
$K as bh,
|
|
34248
|
+
AK as bi,
|
|
34249
|
+
PK as bj,
|
|
34250
|
+
h6 as bk,
|
|
34251
|
+
dv as bl,
|
|
34252
|
+
E6 as bm,
|
|
34253
|
+
hf as bn,
|
|
34254
|
+
C6 as bo,
|
|
34255
|
+
w6 as bp,
|
|
34256
|
+
VK as bq,
|
|
34257
|
+
_X as br,
|
|
34258
|
+
kX as bs,
|
|
34259
|
+
TX as bt,
|
|
34260
|
+
OX as bu,
|
|
34261
|
+
Ob as bv,
|
|
34262
|
+
MX as bw,
|
|
34263
|
+
z4 as bx,
|
|
34264
|
+
$X as by,
|
|
34265
|
+
Dq as bz,
|
|
34266
|
+
lx as c,
|
|
34267
|
+
zx as d,
|
|
34268
|
+
Cx as e,
|
|
34269
34269
|
br as f,
|
|
34270
34270
|
mg as g,
|
|
34271
|
-
|
|
34271
|
+
Fx as h,
|
|
34272
34272
|
to as i,
|
|
34273
34273
|
Hc as j,
|
|
34274
|
-
|
|
34274
|
+
Ky as k,
|
|
34275
34275
|
Xs as l,
|
|
34276
34276
|
mn as m,
|
|
34277
34277
|
eo as n,
|
|
34278
34278
|
Zi as o,
|
|
34279
34279
|
bg as p,
|
|
34280
34280
|
ge as q,
|
|
34281
|
-
|
|
34281
|
+
hx as r,
|
|
34282
34282
|
Mi as s,
|
|
34283
34283
|
ig as t,
|
|
34284
34284
|
rn as u,
|