react-pro-messenger 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +131 -122
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,13 +2,13 @@ var Ma = Object.defineProperty;
|
|
|
2
2
|
var Oa = (e, t, n) => t in e ? Ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var je = (e, t, n) => (Oa(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import * as Qn from "react";
|
|
5
|
-
import we, { useCallback as Qt, createContext as ct, useRef as pe, useId as er, useContext as me, useInsertionEffect as Vs, useMemo as He, useEffect as
|
|
5
|
+
import we, { useCallback as Qt, createContext as ct, useRef as pe, useId as er, useContext as me, useInsertionEffect as Vs, useMemo as He, useEffect as ut, Children as La, isValidElement as ka, useLayoutEffect as _a, useState as xe, forwardRef as Ot, Fragment as Ms, createElement as Ia, Component as Fa } from "react";
|
|
6
6
|
import Na from "react-dom";
|
|
7
|
-
var g = { exports: {} },
|
|
7
|
+
var g = { exports: {} }, mt = {};
|
|
8
8
|
var ni;
|
|
9
9
|
function Ba() {
|
|
10
10
|
if (ni)
|
|
11
|
-
return
|
|
11
|
+
return mt;
|
|
12
12
|
ni = 1;
|
|
13
13
|
var e = we, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
14
14
|
function o(l, a, u) {
|
|
@@ -21,9 +21,9 @@ function Ba() {
|
|
|
21
21
|
f[c] === void 0 && (f[c] = a[c]);
|
|
22
22
|
return { $$typeof: t, type: l, key: h, ref: m, props: f, _owner: i.current };
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return mt.Fragment = n, mt.jsx = o, mt.jsxs = o, mt;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var gt = {};
|
|
27
27
|
var ri;
|
|
28
28
|
function $a() {
|
|
29
29
|
return ri || (ri = 1, process.env.NODE_ENV !== "production" && function() {
|
|
@@ -351,7 +351,7 @@ function $a() {
|
|
|
351
351
|
if (ma(d))
|
|
352
352
|
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pa(d)), Yr(d);
|
|
353
353
|
}
|
|
354
|
-
var
|
|
354
|
+
var pt = x.ReactCurrentOwner, ga = {
|
|
355
355
|
key: !0,
|
|
356
356
|
ref: !0,
|
|
357
357
|
__self: !0,
|
|
@@ -375,9 +375,9 @@ function $a() {
|
|
|
375
375
|
return d.key !== void 0;
|
|
376
376
|
}
|
|
377
377
|
function xa(d, T) {
|
|
378
|
-
if (typeof d.ref == "string" &&
|
|
379
|
-
var E = ce(
|
|
380
|
-
ln[E] || (P('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', ce(
|
|
378
|
+
if (typeof d.ref == "string" && pt.current && T && pt.current.stateNode !== T) {
|
|
379
|
+
var E = ce(pt.current.type);
|
|
380
|
+
ln[E] || (P('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', ce(pt.current.type), d.ref), ln[E] = !0);
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
function ba(d, T) {
|
|
@@ -443,7 +443,7 @@ function $a() {
|
|
|
443
443
|
var le = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
444
444
|
Y && ba(G, le), ve && Ta(G, le);
|
|
445
445
|
}
|
|
446
|
-
return wa(d, Y, ve, H, O,
|
|
446
|
+
return wa(d, Y, ve, H, O, pt.current, G);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
var cn = x.ReactCurrentOwner, Hr = x.ReactDebugCurrentFrame;
|
|
@@ -599,8 +599,8 @@ Check the top-level render call using <` + E + ">.");
|
|
|
599
599
|
return ei(d, T, E, !1);
|
|
600
600
|
}
|
|
601
601
|
var Da = ja, Va = Aa;
|
|
602
|
-
|
|
603
|
-
}()),
|
|
602
|
+
gt.Fragment = r, gt.jsx = Da, gt.jsxs = Va;
|
|
603
|
+
}()), gt;
|
|
604
604
|
}
|
|
605
605
|
(function(e) {
|
|
606
606
|
process.env.NODE_ENV === "production" ? e.exports = Ba() : e.exports = $a();
|
|
@@ -727,7 +727,7 @@ function Os(e = !0) {
|
|
|
727
727
|
if (t === null)
|
|
728
728
|
return [!0, null];
|
|
729
729
|
const { isPresent: n, onExitComplete: r, register: i } = t, s = er();
|
|
730
|
-
|
|
730
|
+
ut(() => {
|
|
731
731
|
if (e)
|
|
732
732
|
return i(s);
|
|
733
733
|
}, [e]);
|
|
@@ -741,7 +741,7 @@ function ii(e) {
|
|
|
741
741
|
ka(n) && t.push(n);
|
|
742
742
|
}), t;
|
|
743
743
|
}
|
|
744
|
-
const ir = typeof window < "u", Ls = ir ? _a :
|
|
744
|
+
const ir = typeof window < "u", Ls = ir ? _a : ut, ks = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: s = "sync", propagate: o = !1, anchorX: l = "left" }) => {
|
|
745
745
|
const [a, u] = Os(o), c = He(() => ii(e), [e]), f = o && !a ? [] : c.map(Bt), h = pe(!0), m = pe(c), v = nr(() => /* @__PURE__ */ new Map()), [y, w] = xe(c), [x, P] = xe(c);
|
|
746
746
|
Ls(() => {
|
|
747
747
|
h.current = !1, m.current = c;
|
|
@@ -775,8 +775,8 @@ const ir = typeof window < "u", Ls = ir ? _a : Mt, ks = ({ children: e, custom:
|
|
|
775
775
|
return g.exports.jsx(za, { isPresent: $, initial: !h.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: s, onExitComplete: $ ? void 0 : D, anchorX: l, children: p }, A);
|
|
776
776
|
}) });
|
|
777
777
|
}, Pe = (e) => e;
|
|
778
|
-
let
|
|
779
|
-
process.env.NODE_ENV !== "production" && (
|
|
778
|
+
let ft = Pe, Fe = Pe;
|
|
779
|
+
process.env.NODE_ENV !== "production" && (ft = (e, t) => {
|
|
780
780
|
!e && typeof console < "u" && console.warn(t);
|
|
781
781
|
}, Fe = (e, t) => {
|
|
782
782
|
if (!e)
|
|
@@ -949,7 +949,7 @@ const nn = /* @__PURE__ */ ct({});
|
|
|
949
949
|
function rn(e) {
|
|
950
950
|
return e !== null && typeof e == "object" && typeof e.start == "function";
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function Et(e) {
|
|
953
953
|
return typeof e == "string" || Array.isArray(e);
|
|
954
954
|
}
|
|
955
955
|
const or = [
|
|
@@ -962,7 +962,7 @@ const or = [
|
|
|
962
962
|
"exit"
|
|
963
963
|
], ar = ["initial", ...or];
|
|
964
964
|
function sn(e) {
|
|
965
|
-
return rn(e.animate) || ar.some((t) =>
|
|
965
|
+
return rn(e.animate) || ar.some((t) => Et(e[t]));
|
|
966
966
|
}
|
|
967
967
|
function Bs(e) {
|
|
968
968
|
return Boolean(sn(e) || e.variants);
|
|
@@ -971,8 +971,8 @@ function Qa(e, t) {
|
|
|
971
971
|
if (sn(e)) {
|
|
972
972
|
const { initial: n, animate: r } = e;
|
|
973
973
|
return {
|
|
974
|
-
initial: n === !1 ||
|
|
975
|
-
animate:
|
|
974
|
+
initial: n === !1 || Et(n) ? n : void 0,
|
|
975
|
+
animate: Et(r) ? r : void 0
|
|
976
976
|
};
|
|
977
977
|
}
|
|
978
978
|
return e.inherit !== !1 ? t : {};
|
|
@@ -1017,7 +1017,7 @@ function il(e, t, n, r, i) {
|
|
|
1017
1017
|
const y = n[$s], w = pe(Boolean(y) && !(!((s = window.MotionHandoffIsComplete) === null || s === void 0) && s.call(window, y)) && ((o = window.MotionHasOptimisedAnimation) === null || o === void 0 ? void 0 : o.call(window, y)));
|
|
1018
1018
|
return Ls(() => {
|
|
1019
1019
|
h && (v.current = !0, window.MotionIsMounted = !0, h.updateFeatures(), cr.render(h.render), w.current && h.animationState && h.animationState.animateChanges());
|
|
1020
|
-
}),
|
|
1020
|
+
}), ut(() => {
|
|
1021
1021
|
h && (!w.current && h.animationState && h.animationState.animateChanges(), w.current && (queueMicrotask(() => {
|
|
1022
1022
|
var x;
|
|
1023
1023
|
(x = window.MotionHandoffMarkAsComplete) === null || x === void 0 || x.call(window, y);
|
|
@@ -1070,7 +1070,7 @@ function ll(e, t) {
|
|
|
1070
1070
|
const n = me(Fs).strict;
|
|
1071
1071
|
if (process.env.NODE_ENV !== "production" && t && n) {
|
|
1072
1072
|
const r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
1073
|
-
e.ignoreStrict ?
|
|
1073
|
+
e.ignoreStrict ? ft(!1, r) : Fe(!1, r);
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
1076
|
function cl(e) {
|
|
@@ -1083,12 +1083,12 @@ function cl(e) {
|
|
|
1083
1083
|
ProjectionNode: r.ProjectionNode
|
|
1084
1084
|
};
|
|
1085
1085
|
}
|
|
1086
|
-
const zs = (e) => (t) => typeof t == "string" && t.startsWith(e), ur = /* @__PURE__ */ zs("--"), ul = /* @__PURE__ */ zs("var(--"), fr = (e) => ul(e) ? fl.test(e.split("/*")[0].trim()) : !1, fl = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,
|
|
1086
|
+
const zs = (e) => (t) => typeof t == "string" && t.startsWith(e), ur = /* @__PURE__ */ zs("--"), ul = /* @__PURE__ */ zs("var(--"), fr = (e) => ul(e) ? fl.test(e.split("/*")[0].trim()) : !1, fl = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Rt = {};
|
|
1087
1087
|
function dl(e) {
|
|
1088
1088
|
for (const t in e)
|
|
1089
|
-
|
|
1089
|
+
Rt[t] = e[t], ur(t) && (Rt[t].isCSSVariable = !0);
|
|
1090
1090
|
}
|
|
1091
|
-
const
|
|
1091
|
+
const dt = [
|
|
1092
1092
|
"transformPerspective",
|
|
1093
1093
|
"x",
|
|
1094
1094
|
"y",
|
|
@@ -1106,19 +1106,19 @@ const ft = [
|
|
|
1106
1106
|
"skew",
|
|
1107
1107
|
"skewX",
|
|
1108
1108
|
"skewY"
|
|
1109
|
-
], Xe = new Set(
|
|
1109
|
+
], Xe = new Set(dt);
|
|
1110
1110
|
function Ys(e, { layout: t, layoutId: n }) {
|
|
1111
|
-
return Xe.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!
|
|
1111
|
+
return Xe.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Rt[e] || e === "opacity");
|
|
1112
1112
|
}
|
|
1113
|
-
const ge = (e) => Boolean(e && e.getVelocity), Ks = (e, t) => t && typeof e == "number" ? t.transform(e) : e, ke = (e, t, n) => n > t ? t : n < e ? e : n,
|
|
1113
|
+
const ge = (e) => Boolean(e && e.getVelocity), Ks = (e, t) => t && typeof e == "number" ? t.transform(e) : e, ke = (e, t, n) => n > t ? t : n < e ? e : n, ht = {
|
|
1114
1114
|
test: (e) => typeof e == "number",
|
|
1115
1115
|
parse: parseFloat,
|
|
1116
1116
|
transform: (e) => e
|
|
1117
|
-
},
|
|
1118
|
-
...
|
|
1117
|
+
}, At = {
|
|
1118
|
+
...ht,
|
|
1119
1119
|
transform: (e) => ke(0, 1, e)
|
|
1120
1120
|
}, Ut = {
|
|
1121
|
-
...
|
|
1121
|
+
...ht,
|
|
1122
1122
|
default: 1
|
|
1123
1123
|
}, Lt = (e) => ({
|
|
1124
1124
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
@@ -1181,31 +1181,31 @@ const ge = (e) => Boolean(e && e.getVelocity), Ks = (e, t) => t && typeof e == "
|
|
|
1181
1181
|
z: M,
|
|
1182
1182
|
perspective: M,
|
|
1183
1183
|
transformPerspective: M,
|
|
1184
|
-
opacity:
|
|
1184
|
+
opacity: At,
|
|
1185
1185
|
originX: li,
|
|
1186
1186
|
originY: li,
|
|
1187
1187
|
originZ: M
|
|
1188
1188
|
}, ci = {
|
|
1189
|
-
...
|
|
1189
|
+
...ht,
|
|
1190
1190
|
transform: Math.round
|
|
1191
1191
|
}, dr = {
|
|
1192
1192
|
...ml,
|
|
1193
1193
|
...gl,
|
|
1194
1194
|
zIndex: ci,
|
|
1195
1195
|
size: M,
|
|
1196
|
-
fillOpacity:
|
|
1197
|
-
strokeOpacity:
|
|
1196
|
+
fillOpacity: At,
|
|
1197
|
+
strokeOpacity: At,
|
|
1198
1198
|
numOctaves: ci
|
|
1199
1199
|
}, yl = {
|
|
1200
1200
|
x: "translateX",
|
|
1201
1201
|
y: "translateY",
|
|
1202
1202
|
z: "translateZ",
|
|
1203
1203
|
transformPerspective: "perspective"
|
|
1204
|
-
}, vl =
|
|
1204
|
+
}, vl = dt.length;
|
|
1205
1205
|
function xl(e, t, n) {
|
|
1206
1206
|
let r = "", i = !0;
|
|
1207
1207
|
for (let s = 0; s < vl; s++) {
|
|
1208
|
-
const o =
|
|
1208
|
+
const o = dt[s], l = e[o];
|
|
1209
1209
|
if (l === void 0)
|
|
1210
1210
|
continue;
|
|
1211
1211
|
let a = !0;
|
|
@@ -1491,7 +1491,7 @@ function eo(e, t, n) {
|
|
|
1491
1491
|
const r = xr(e, t, n);
|
|
1492
1492
|
for (const i in e)
|
|
1493
1493
|
if (ge(e[i]) || ge(t[i])) {
|
|
1494
|
-
const s =
|
|
1494
|
+
const s = dt.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
|
|
1495
1495
|
r[s] = e[i];
|
|
1496
1496
|
}
|
|
1497
1497
|
return r;
|
|
@@ -1539,7 +1539,7 @@ function _l(e, t) {
|
|
|
1539
1539
|
return ol(o);
|
|
1540
1540
|
};
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function jt(e, t, n) {
|
|
1543
1543
|
const r = e.getProps();
|
|
1544
1544
|
return vr(r, t, n !== void 0 ? n : r.custom, e);
|
|
1545
1545
|
}
|
|
@@ -1661,20 +1661,20 @@ const qt = /* @__PURE__ */ $l(() => {
|
|
|
1661
1661
|
function ro(e) {
|
|
1662
1662
|
return Boolean(typeof e == "function" && qt() || !e || typeof e == "string" && (e in kn || qt()) || wr(e) || Array.isArray(e) && e.every(ro));
|
|
1663
1663
|
}
|
|
1664
|
-
const
|
|
1664
|
+
const xt = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, kn = {
|
|
1665
1665
|
linear: "linear",
|
|
1666
1666
|
ease: "ease",
|
|
1667
1667
|
easeIn: "ease-in",
|
|
1668
1668
|
easeOut: "ease-out",
|
|
1669
1669
|
easeInOut: "ease-in-out",
|
|
1670
|
-
circIn: /* @__PURE__ */
|
|
1671
|
-
circOut: /* @__PURE__ */
|
|
1672
|
-
backIn: /* @__PURE__ */
|
|
1673
|
-
backOut: /* @__PURE__ */
|
|
1670
|
+
circIn: /* @__PURE__ */ xt([0, 0.65, 0.55, 1]),
|
|
1671
|
+
circOut: /* @__PURE__ */ xt([0.55, 0, 1, 0.45]),
|
|
1672
|
+
backIn: /* @__PURE__ */ xt([0.31, 0.01, 0.66, -0.59]),
|
|
1673
|
+
backOut: /* @__PURE__ */ xt([0.33, 1.53, 0.69, 0.99])
|
|
1674
1674
|
};
|
|
1675
1675
|
function io(e, t) {
|
|
1676
1676
|
if (e)
|
|
1677
|
-
return typeof e == "function" && qt() ? no(e, t) : wr(e) ?
|
|
1677
|
+
return typeof e == "function" && qt() ? no(e, t) : wr(e) ? xt(e) : Array.isArray(e) ? e.map((n) => io(n, t) || kn.easeOut) : kn[e];
|
|
1678
1678
|
}
|
|
1679
1679
|
const Ae = {
|
|
1680
1680
|
x: !1,
|
|
@@ -1740,7 +1740,7 @@ const ao = (e, t) => t ? e === t ? !0 : ao(e, t.parentElement) : !1, Pr = (e) =>
|
|
|
1740
1740
|
function Yl(e) {
|
|
1741
1741
|
return zl.has(e.tagName) || e.tabIndex !== -1;
|
|
1742
1742
|
}
|
|
1743
|
-
const
|
|
1743
|
+
const bt = /* @__PURE__ */ new WeakSet();
|
|
1744
1744
|
function mi(e) {
|
|
1745
1745
|
return (t) => {
|
|
1746
1746
|
t.key === "Enter" && e(t);
|
|
@@ -1754,7 +1754,7 @@ const Kl = (e, t) => {
|
|
|
1754
1754
|
if (!n)
|
|
1755
1755
|
return;
|
|
1756
1756
|
const r = mi(() => {
|
|
1757
|
-
if (
|
|
1757
|
+
if (bt.has(n))
|
|
1758
1758
|
return;
|
|
1759
1759
|
pn(n, "down");
|
|
1760
1760
|
const i = mi(() => {
|
|
@@ -1770,11 +1770,11 @@ function gi(e) {
|
|
|
1770
1770
|
function Gl(e, t, n = {}) {
|
|
1771
1771
|
const [r, i, s] = oo(e, n), o = (l) => {
|
|
1772
1772
|
const a = l.currentTarget;
|
|
1773
|
-
if (!a || !gi(l) ||
|
|
1773
|
+
if (!a || !gi(l) || bt.has(a))
|
|
1774
1774
|
return;
|
|
1775
|
-
|
|
1775
|
+
bt.add(a), Ht(l, "set");
|
|
1776
1776
|
const u = t(a, l), c = (m, v) => {
|
|
1777
|
-
a.removeEventListener("pointerup", f), a.removeEventListener("pointercancel", h), Ht(m, "release"), !(!gi(m) || !
|
|
1777
|
+
a.removeEventListener("pointerup", f), a.removeEventListener("pointercancel", h), Ht(m, "release"), !(!gi(m) || !bt.has(a)) && (bt.delete(a), typeof u == "function" && u(m, { success: v }));
|
|
1778
1778
|
}, f = (m) => {
|
|
1779
1779
|
(m.isTrusted ? ql(m, a instanceof Element ? a.getBoundingClientRect() : {
|
|
1780
1780
|
left: 0,
|
|
@@ -1810,7 +1810,7 @@ const lo = /* @__PURE__ */ new Set([
|
|
|
1810
1810
|
"left",
|
|
1811
1811
|
"right",
|
|
1812
1812
|
"bottom",
|
|
1813
|
-
...
|
|
1813
|
+
...dt
|
|
1814
1814
|
]);
|
|
1815
1815
|
let Yt;
|
|
1816
1816
|
function Xl() {
|
|
@@ -1932,14 +1932,14 @@ class Jl {
|
|
|
1932
1932
|
this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1935
|
+
function Dt(e, t) {
|
|
1936
1936
|
return new Jl(e, t);
|
|
1937
1937
|
}
|
|
1938
1938
|
function Ql(e, t, n) {
|
|
1939
|
-
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t,
|
|
1939
|
+
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Dt(n));
|
|
1940
1940
|
}
|
|
1941
1941
|
function ec(e, t) {
|
|
1942
|
-
const n =
|
|
1942
|
+
const n = jt(e, t);
|
|
1943
1943
|
let { transitionEnd: r = {}, transition: i = {}, ...s } = n || {};
|
|
1944
1944
|
s = { ...s, ...r };
|
|
1945
1945
|
for (const o in s) {
|
|
@@ -1978,7 +1978,7 @@ const ho = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, po
|
|
|
1978
1978
|
function oc(e) {
|
|
1979
1979
|
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || bo(e) : !0;
|
|
1980
1980
|
}
|
|
1981
|
-
const
|
|
1981
|
+
const Tt = (e) => Math.round(e * 1e5) / 1e5, jr = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
1982
1982
|
function ac(e) {
|
|
1983
1983
|
return e == null;
|
|
1984
1984
|
}
|
|
@@ -1993,12 +1993,12 @@ const lc = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
1993
1993
|
alpha: l !== void 0 ? parseFloat(l) : 1
|
|
1994
1994
|
};
|
|
1995
1995
|
}, cc = (e) => ke(0, 255, e), mn = {
|
|
1996
|
-
...
|
|
1996
|
+
...ht,
|
|
1997
1997
|
transform: (e) => Math.round(cc(e))
|
|
1998
1998
|
}, Ke = {
|
|
1999
1999
|
test: /* @__PURE__ */ Dr("rgb", "red"),
|
|
2000
2000
|
parse: /* @__PURE__ */ To("red", "green", "blue"),
|
|
2001
|
-
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + mn.transform(e) + ", " + mn.transform(t) + ", " + mn.transform(n) + ", " +
|
|
2001
|
+
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + mn.transform(e) + ", " + mn.transform(t) + ", " + mn.transform(n) + ", " + Tt(At.transform(r)) + ")"
|
|
2002
2002
|
};
|
|
2003
2003
|
function uc(e) {
|
|
2004
2004
|
let t = "", n = "", r = "", i = "";
|
|
@@ -2016,7 +2016,7 @@ const In = {
|
|
|
2016
2016
|
}, tt = {
|
|
2017
2017
|
test: /* @__PURE__ */ Dr("hsl", "hue"),
|
|
2018
2018
|
parse: /* @__PURE__ */ To("hue", "saturation", "lightness"),
|
|
2019
|
-
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Ve.transform(
|
|
2019
|
+
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Ve.transform(Tt(t)) + ", " + Ve.transform(Tt(n)) + ", " + Tt(At.transform(r)) + ")"
|
|
2020
2020
|
}, he = {
|
|
2021
2021
|
test: (e) => Ke.test(e) || In.test(e) || tt.test(e),
|
|
2022
2022
|
parse: (e) => Ke.test(e) ? Ke.parse(e) : tt.test(e) ? tt.parse(e) : In.parse(e),
|
|
@@ -2027,7 +2027,7 @@ function dc(e) {
|
|
|
2027
2027
|
return isNaN(e) && typeof e == "string" && (((t = e.match(jr)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(fc)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
2028
2028
|
}
|
|
2029
2029
|
const wo = "number", Po = "color", hc = "var", pc = "var(", vi = "${}", mc = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
2030
|
-
function
|
|
2030
|
+
function Vt(e) {
|
|
2031
2031
|
const t = e.toString(), n = [], r = {
|
|
2032
2032
|
color: [],
|
|
2033
2033
|
number: [],
|
|
@@ -2038,16 +2038,16 @@ function Dt(e) {
|
|
|
2038
2038
|
return { values: n, split: l, indexes: r, types: i };
|
|
2039
2039
|
}
|
|
2040
2040
|
function So(e) {
|
|
2041
|
-
return
|
|
2041
|
+
return Vt(e).values;
|
|
2042
2042
|
}
|
|
2043
2043
|
function Co(e) {
|
|
2044
|
-
const { split: t, types: n } =
|
|
2044
|
+
const { split: t, types: n } = Vt(e), r = t.length;
|
|
2045
2045
|
return (i) => {
|
|
2046
2046
|
let s = "";
|
|
2047
2047
|
for (let o = 0; o < r; o++)
|
|
2048
2048
|
if (s += t[o], i[o] !== void 0) {
|
|
2049
2049
|
const l = n[o];
|
|
2050
|
-
l === wo ? s +=
|
|
2050
|
+
l === wo ? s += Tt(i[o]) : l === Po ? s += he.transform(i[o]) : s += i[o];
|
|
2051
2051
|
}
|
|
2052
2052
|
return s;
|
|
2053
2053
|
};
|
|
@@ -2104,13 +2104,13 @@ function Pc(e, t, n) {
|
|
|
2104
2104
|
let r = 0, i;
|
|
2105
2105
|
for (; r < e.length && !i; ) {
|
|
2106
2106
|
const s = e[r];
|
|
2107
|
-
typeof s == "string" && !wc.has(s) &&
|
|
2107
|
+
typeof s == "string" && !wc.has(s) && Vt(s).values.length && (i = e[r]), r++;
|
|
2108
2108
|
}
|
|
2109
2109
|
if (i && n)
|
|
2110
2110
|
for (const s of t)
|
|
2111
2111
|
e[s] = Eo(n, i);
|
|
2112
2112
|
}
|
|
2113
|
-
const xi = (e) => e ===
|
|
2113
|
+
const xi = (e) => e === ht || e === M, bi = (e, t) => parseFloat(e.split(", ")[t]), Ti = (e, t) => (n, { transform: r }) => {
|
|
2114
2114
|
if (r === "none" || !r)
|
|
2115
2115
|
return 0;
|
|
2116
2116
|
const i = r.match(/^matrix3d\((.+)\)$/u);
|
|
@@ -2120,7 +2120,7 @@ const xi = (e) => e === dt || e === M, bi = (e, t) => parseFloat(e.split(", ")[t
|
|
|
2120
2120
|
const s = r.match(/^matrix\((.+)\)$/u);
|
|
2121
2121
|
return s ? bi(s[1], e) : 0;
|
|
2122
2122
|
}
|
|
2123
|
-
}, Sc = /* @__PURE__ */ new Set(["x", "y", "z"]), Cc =
|
|
2123
|
+
}, Sc = /* @__PURE__ */ new Set(["x", "y", "z"]), Cc = dt.filter((e) => !Sc.has(e));
|
|
2124
2124
|
function Ec(e) {
|
|
2125
2125
|
const t = [];
|
|
2126
2126
|
return Cc.forEach((n) => {
|
|
@@ -2234,7 +2234,7 @@ function Do(e, t, n = 1) {
|
|
|
2234
2234
|
const Vo = (e) => (t) => t.test(e), Vc = {
|
|
2235
2235
|
test: (e) => e === "auto",
|
|
2236
2236
|
parse: (e) => e
|
|
2237
|
-
}, Mo = [
|
|
2237
|
+
}, Mo = [ht, M, Ve, _e, pl, hl, Vc], wi = (e) => Mo.find(Vo(e));
|
|
2238
2238
|
class Oo extends Mr {
|
|
2239
2239
|
constructor(t, n, r, i, s) {
|
|
2240
2240
|
super(t, n, r, i, s, !0);
|
|
@@ -2306,7 +2306,7 @@ function Oc(e, t, n, r) {
|
|
|
2306
2306
|
if (t === "display" || t === "visibility")
|
|
2307
2307
|
return !0;
|
|
2308
2308
|
const s = e[e.length - 1], o = Pi(i, t), l = Pi(s, t);
|
|
2309
|
-
return
|
|
2309
|
+
return ft(o === l, `You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`), !o || !l ? !1 : Mc(e) || (n === "spring" || Tr(n)) && r;
|
|
2310
2310
|
}
|
|
2311
2311
|
const Lc = (e) => e !== null;
|
|
2312
2312
|
function on(e, { repeat: t, repeatType: n = "loop" }, r) {
|
|
@@ -2363,7 +2363,7 @@ class Lo {
|
|
|
2363
2363
|
});
|
|
2364
2364
|
}
|
|
2365
2365
|
}
|
|
2366
|
-
const
|
|
2366
|
+
const wt = {
|
|
2367
2367
|
layout: 0,
|
|
2368
2368
|
mainThread: 0,
|
|
2369
2369
|
waapi: 0
|
|
@@ -2396,7 +2396,7 @@ const yn = (e, t, n) => {
|
|
|
2396
2396
|
}, Ic = [In, Ke, tt], Fc = (e) => Ic.find((t) => t.test(e));
|
|
2397
2397
|
function Si(e) {
|
|
2398
2398
|
const t = Fc(e);
|
|
2399
|
-
if (
|
|
2399
|
+
if (ft(Boolean(t), `'${e}' is not an animatable color. Use the equivalent color code instead.`), !Boolean(t))
|
|
2400
2400
|
return !1;
|
|
2401
2401
|
let n = t.parse(e);
|
|
2402
2402
|
return t === tt && (n = _c(n)), n;
|
|
@@ -2445,8 +2445,8 @@ function Wc(e, t) {
|
|
|
2445
2445
|
return r;
|
|
2446
2446
|
}
|
|
2447
2447
|
const zc = (e, t) => {
|
|
2448
|
-
const n = Be.createTransformer(t), r =
|
|
2449
|
-
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? $n.has(e) && !i.values.length || $n.has(t) && !r.values.length ? Bc(e, t) : _t(ko(Wc(r, i), i.values), n) : (
|
|
2448
|
+
const n = Be.createTransformer(t), r = Vt(e), i = Vt(t);
|
|
2449
|
+
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? $n.has(e) && !i.values.length || $n.has(t) && !r.values.length ? Bc(e, t) : _t(ko(Wc(r, i), i.values), n) : (ft(!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.`), Xt(e, t));
|
|
2450
2450
|
};
|
|
2451
2451
|
function _o(e, t, n) {
|
|
2452
2452
|
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? ne(e, t, n) : Or(e)(e, t);
|
|
@@ -2479,7 +2479,7 @@ const te = {
|
|
|
2479
2479
|
}, vn = 1e-3;
|
|
2480
2480
|
function Kc({ duration: e = te.duration, bounce: t = te.bounce, velocity: n = te.velocity, mass: r = te.mass }) {
|
|
2481
2481
|
let i, s;
|
|
2482
|
-
|
|
2482
|
+
ft(e <= De(te.maxDuration), "Spring duration must be 10 seconds or less");
|
|
2483
2483
|
let o = 1 - t;
|
|
2484
2484
|
o = ke(te.minDamping, te.maxDamping, o), e = ke(te.minDuration, te.maxDuration, Le(e)), o < 1 ? (i = (u) => {
|
|
2485
2485
|
const c = u * o, f = c * e, h = c - n, m = Un(u, o), v = Math.exp(-f);
|
|
@@ -2702,7 +2702,7 @@ function su(e, t) {
|
|
|
2702
2702
|
function ou(e, t) {
|
|
2703
2703
|
return e.map(() => t || No).splice(0, e.length - 1);
|
|
2704
2704
|
}
|
|
2705
|
-
function
|
|
2705
|
+
function Pt({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
|
|
2706
2706
|
const i = eu(r) ? r.map(ji) : ji(r), s = {
|
|
2707
2707
|
done: !1,
|
|
2708
2708
|
value: t[0]
|
|
@@ -2727,8 +2727,8 @@ const au = (e) => {
|
|
|
2727
2727
|
}, lu = {
|
|
2728
2728
|
decay: Ri,
|
|
2729
2729
|
inertia: Ri,
|
|
2730
|
-
tween:
|
|
2731
|
-
keyframes:
|
|
2730
|
+
tween: Pt,
|
|
2731
|
+
keyframes: Pt,
|
|
2732
2732
|
spring: Fo
|
|
2733
2733
|
}, cu = (e) => e / 100;
|
|
2734
2734
|
class Lr extends Lo {
|
|
@@ -2747,9 +2747,9 @@ class Lr extends Lo {
|
|
|
2747
2747
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
2748
2748
|
}
|
|
2749
2749
|
initPlayback(t) {
|
|
2750
|
-
const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, l = Tr(n) ? n : lu[n] ||
|
|
2750
|
+
const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, l = Tr(n) ? n : lu[n] || Pt;
|
|
2751
2751
|
let a, u;
|
|
2752
|
-
process.env.NODE_ENV !== "production" && l !==
|
|
2752
|
+
process.env.NODE_ENV !== "production" && l !== Pt && Fe(t.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), l !== Pt && typeof t[0] != "number" && (a = _t(cu, _o(t[0], t[1])), t = [0, 100]);
|
|
2753
2753
|
const c = l({ ...this.options, keyframes: t });
|
|
2754
2754
|
s === "mirror" && (u = l({
|
|
2755
2755
|
...this.options,
|
|
@@ -2768,7 +2768,7 @@ class Lr extends Lo {
|
|
|
2768
2768
|
}
|
|
2769
2769
|
onPostResolved() {
|
|
2770
2770
|
const { autoplay: t = !0 } = this.options;
|
|
2771
|
-
|
|
2771
|
+
wt.mainThread++, this.play(), this.pendingPlayState === "paused" || !t ? this.pause() : this.state = this.pendingPlayState;
|
|
2772
2772
|
}
|
|
2773
2773
|
tick(t, n = !1) {
|
|
2774
2774
|
const { resolved: r } = this;
|
|
@@ -2845,7 +2845,7 @@ class Lr extends Lo {
|
|
|
2845
2845
|
this.cancelTime !== null && this.tick(this.cancelTime), this.teardown(), this.updateFinishedPromise();
|
|
2846
2846
|
}
|
|
2847
2847
|
teardown() {
|
|
2848
|
-
this.state = "idle", this.stopDriver(), this.resolveFinishedPromise(), this.updateFinishedPromise(), this.startTime = this.cancelTime = null, this.resolver.cancel(),
|
|
2848
|
+
this.state = "idle", this.stopDriver(), this.resolveFinishedPromise(), this.updateFinishedPromise(), this.startTime = this.cancelTime = null, this.resolver.cancel(), wt.mainThread--;
|
|
2849
2849
|
}
|
|
2850
2850
|
stopDriver() {
|
|
2851
2851
|
this.driver && (this.driver.stop(), this.driver = void 0);
|
|
@@ -3142,7 +3142,7 @@ function $o(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
3142
3142
|
}
|
|
3143
3143
|
function Wn(e, t, n = {}) {
|
|
3144
3144
|
var r;
|
|
3145
|
-
const i =
|
|
3145
|
+
const i = jt(e, t, n.type === "exit" ? (r = e.presenceContext) === null || r === void 0 ? void 0 : r.custom : void 0);
|
|
3146
3146
|
let { transition: s = e.getDefaultTransition() || {} } = i || {};
|
|
3147
3147
|
n.transitionOverride && (s = n.transitionOverride);
|
|
3148
3148
|
const o = i ? () => Promise.all($o(e, i, n)) : () => Promise.resolve(), l = e.variantChildren && e.variantChildren.size ? (u = 0) => {
|
|
@@ -3176,7 +3176,7 @@ function Eu(e, t, n = {}) {
|
|
|
3176
3176
|
} else if (typeof t == "string")
|
|
3177
3177
|
r = Wn(e, t, n);
|
|
3178
3178
|
else {
|
|
3179
|
-
const i = typeof t == "function" ?
|
|
3179
|
+
const i = typeof t == "function" ? jt(e, t, n.custom) : t;
|
|
3180
3180
|
r = Promise.all($o(e, i, n));
|
|
3181
3181
|
}
|
|
3182
3182
|
return r.then(() => {
|
|
@@ -3205,7 +3205,7 @@ function Wo(e) {
|
|
|
3205
3205
|
const t = {};
|
|
3206
3206
|
for (let n = 0; n < Ru; n++) {
|
|
3207
3207
|
const r = ar[n], i = e.props[r];
|
|
3208
|
-
(
|
|
3208
|
+
(Et(i) || i === !1) && (t[r] = i);
|
|
3209
3209
|
}
|
|
3210
3210
|
return t;
|
|
3211
3211
|
}
|
|
@@ -3217,7 +3217,7 @@ function Vu(e) {
|
|
|
3217
3217
|
let t = Du(e), n = Vi(), r = !0;
|
|
3218
3218
|
const i = (a) => (u, c) => {
|
|
3219
3219
|
var f;
|
|
3220
|
-
const h =
|
|
3220
|
+
const h = jt(e, c, a === "exit" ? (f = e.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
|
|
3221
3221
|
if (h) {
|
|
3222
3222
|
const { transition: m, transitionEnd: v, ...y } = h;
|
|
3223
3223
|
u = { ...u, ...y, ...v };
|
|
@@ -3231,7 +3231,7 @@ function Vu(e) {
|
|
|
3231
3231
|
const { props: u } = e, c = Wo(e.parent) || {}, f = [], h = /* @__PURE__ */ new Set();
|
|
3232
3232
|
let m = {}, v = 1 / 0;
|
|
3233
3233
|
for (let w = 0; w < ju; w++) {
|
|
3234
|
-
const x = Au[w], P = n[x], S = u[x] !== void 0 ? u[x] : c[x], j =
|
|
3234
|
+
const x = Au[w], P = n[x], S = u[x] !== void 0 ? u[x] : c[x], j = Et(S), p = x === a ? P.isActive : null;
|
|
3235
3235
|
p === !1 && (v = w);
|
|
3236
3236
|
let A = S === c[x] && S !== u[x] && j;
|
|
3237
3237
|
if (A && r && e.manuallyAnimateOnMount && (A = !1), P.protectedKeys = { ...m }, !P.isActive && p === null || !S && !P.prevProp || rn(S) || typeof S == "boolean")
|
|
@@ -3264,7 +3264,7 @@ function Vu(e) {
|
|
|
3264
3264
|
if (h.size) {
|
|
3265
3265
|
const w = {};
|
|
3266
3266
|
if (typeof u.initial != "boolean") {
|
|
3267
|
-
const x =
|
|
3267
|
+
const x = jt(e, Array.isArray(u.initial) ? u.initial[0] : u.initial);
|
|
3268
3268
|
x && x.transition && (w.transition = x.transition);
|
|
3269
3269
|
}
|
|
3270
3270
|
h.forEach((x) => {
|
|
@@ -3378,7 +3378,7 @@ const _u = {
|
|
|
3378
3378
|
Feature: ku
|
|
3379
3379
|
}
|
|
3380
3380
|
};
|
|
3381
|
-
function
|
|
3381
|
+
function Mt(e, t, n, r = { passive: !0 }) {
|
|
3382
3382
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n);
|
|
3383
3383
|
}
|
|
3384
3384
|
function It(e) {
|
|
@@ -3391,7 +3391,7 @@ function It(e) {
|
|
|
3391
3391
|
}
|
|
3392
3392
|
const Iu = (e) => (t) => Pr(t) && e(t, It(t));
|
|
3393
3393
|
function nt(e, t, n, r) {
|
|
3394
|
-
return
|
|
3394
|
+
return Mt(e, t, Iu(n), r);
|
|
3395
3395
|
}
|
|
3396
3396
|
function zo({ top: e, left: t, right: n, bottom: r }) {
|
|
3397
3397
|
return {
|
|
@@ -3423,7 +3423,7 @@ function zu(e, t, n) {
|
|
|
3423
3423
|
function Mi(e, t, n, r = 0.5) {
|
|
3424
3424
|
e.origin = r, e.originPoint = ne(t.min, t.max, e.origin), e.scale = be(n) / be(t), e.translate = ne(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Bu && e.scale <= $u || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Uu && e.translate <= Wu || isNaN(e.translate)) && (e.translate = 0);
|
|
3425
3425
|
}
|
|
3426
|
-
function
|
|
3426
|
+
function St(e, t, n, r) {
|
|
3427
3427
|
Mi(e.x, t.x, n.x, r ? r.originX : void 0), Mi(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
3428
3428
|
}
|
|
3429
3429
|
function Oi(e, t, n) {
|
|
@@ -3435,7 +3435,7 @@ function Yu(e, t, n) {
|
|
|
3435
3435
|
function Li(e, t, n) {
|
|
3436
3436
|
e.min = t.min - n.min, e.max = e.min + be(t);
|
|
3437
3437
|
}
|
|
3438
|
-
function
|
|
3438
|
+
function Ct(e, t, n) {
|
|
3439
3439
|
Li(e.x, t.x, n.x), Li(e.y, t.y, n.y);
|
|
3440
3440
|
}
|
|
3441
3441
|
const ki = () => ({
|
|
@@ -3841,7 +3841,7 @@ class sf {
|
|
|
3841
3841
|
et(a) && a.current && (this.constraints = this.resolveRefConstraints());
|
|
3842
3842
|
}, { projection: i } = this.visualElement, s = i.addEventListener("measure", r);
|
|
3843
3843
|
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), ee.read(r);
|
|
3844
|
-
const o =
|
|
3844
|
+
const o = Mt(window, "resize", () => this.scalePositionWithinConstraints()), l = i.addEventListener("didUpdate", ({ delta: a, hasLayoutChanged: u }) => {
|
|
3845
3845
|
this.isDragging && u && (Re((c) => {
|
|
3846
3846
|
const f = this.getAxisMotionValue(c);
|
|
3847
3847
|
f && (this.originPoint[c] += a[c].translate, f.set(f.get() + a[c].translate));
|
|
@@ -3923,7 +3923,7 @@ const Kt = {
|
|
|
3923
3923
|
function Hi(e, t) {
|
|
3924
3924
|
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
|
|
3925
3925
|
}
|
|
3926
|
-
const
|
|
3926
|
+
const yt = {
|
|
3927
3927
|
correct: (e, t) => {
|
|
3928
3928
|
if (!t.target)
|
|
3929
3929
|
return e;
|
|
@@ -3987,7 +3987,7 @@ function Jo(e) {
|
|
|
3987
3987
|
}
|
|
3988
3988
|
const ff = {
|
|
3989
3989
|
borderRadius: {
|
|
3990
|
-
...
|
|
3990
|
+
...yt,
|
|
3991
3991
|
applyTo: [
|
|
3992
3992
|
"borderTopLeftRadius",
|
|
3993
3993
|
"borderTopRightRadius",
|
|
@@ -3995,14 +3995,14 @@ const ff = {
|
|
|
3995
3995
|
"borderBottomRightRadius"
|
|
3996
3996
|
]
|
|
3997
3997
|
},
|
|
3998
|
-
borderTopLeftRadius:
|
|
3999
|
-
borderTopRightRadius:
|
|
4000
|
-
borderBottomLeftRadius:
|
|
4001
|
-
borderBottomRightRadius:
|
|
3998
|
+
borderTopLeftRadius: yt,
|
|
3999
|
+
borderTopRightRadius: yt,
|
|
4000
|
+
borderBottomLeftRadius: yt,
|
|
4001
|
+
borderBottomRightRadius: yt,
|
|
4002
4002
|
boxShadow: cf
|
|
4003
4003
|
};
|
|
4004
4004
|
function df(e, t, n) {
|
|
4005
|
-
const r = ge(e) ? e :
|
|
4005
|
+
const r = ge(e) ? e : Dt(e);
|
|
4006
4006
|
return r.start(kr("", r, t, n)), r.animation;
|
|
4007
4007
|
}
|
|
4008
4008
|
function hf(e) {
|
|
@@ -4423,13 +4423,13 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4423
4423
|
if (!(!this.layout || !(f || h))) {
|
|
4424
4424
|
if (this.resolvedRelativeTargetAt = fe.timestamp, !this.targetDelta && !this.relativeTarget) {
|
|
4425
4425
|
const m = this.getClosestProjectingParent();
|
|
4426
|
-
m && m.layout && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = se(), this.relativeTargetOrigin = se(),
|
|
4426
|
+
m && m.layout && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = se(), this.relativeTargetOrigin = se(), Ct(this.relativeTargetOrigin, this.layout.layoutBox, m.layout.layoutBox), Ee(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4427
4427
|
}
|
|
4428
4428
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
4429
4429
|
if (this.target || (this.target = se(), this.targetWithTransforms = se()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Yu(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (Boolean(this.resumingFrom) ? this.target = this.applyTransform(this.layout.layoutBox) : Ee(this.target, this.layout.layoutBox), qo(this.target, this.targetDelta)) : Ee(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
4430
4430
|
this.attemptToResolveRelativeTarget = !1;
|
|
4431
4431
|
const m = this.getClosestProjectingParent();
|
|
4432
|
-
m && Boolean(m.resumingFrom) === Boolean(this.resumingFrom) && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = se(), this.relativeTargetOrigin = se(),
|
|
4432
|
+
m && Boolean(m.resumingFrom) === Boolean(this.resumingFrom) && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = se(), this.relativeTargetOrigin = se(), Ct(this.relativeTargetOrigin, this.target, m.target), Ee(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
4433
4433
|
}
|
|
4434
4434
|
Ie.value && Ye.calculatedTargetDeltas++;
|
|
4435
4435
|
}
|
|
@@ -4459,7 +4459,7 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4459
4459
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
4460
4460
|
return;
|
|
4461
4461
|
}
|
|
4462
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (es(this.prevProjectionDelta.x, this.projectionDelta.x), es(this.prevProjectionDelta.y, this.projectionDelta.y)),
|
|
4462
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (es(this.prevProjectionDelta.x, this.projectionDelta.x), es(this.prevProjectionDelta.y, this.projectionDelta.y)), St(this.projectionDelta, this.layoutCorrected, v, this.latestValues), (this.treeScale.x !== h || this.treeScale.y !== m || !ls(this.projectionDelta.x, this.prevProjectionDelta.x) || !ls(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", v)), Ie.value && Ye.calculatedProjections++;
|
|
4463
4463
|
}
|
|
4464
4464
|
hide() {
|
|
4465
4465
|
this.isVisible = !1;
|
|
@@ -4486,21 +4486,21 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4486
4486
|
let S;
|
|
4487
4487
|
this.mixTargetDelta = (j) => {
|
|
4488
4488
|
const p = j / 1e3;
|
|
4489
|
-
ds(f.x, o.x, p), ds(f.y, o.y, p), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (
|
|
4489
|
+
ds(f.x, o.x, p), ds(f.y, o.y, p), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Ct(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Bf(this.relativeTarget, this.relativeTargetOrigin, h, p), S && Sf(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = se()), Ee(S, this.relativeTarget)), y && (this.animationValues = c, vf(c, u, this.latestValues, p, P, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = p;
|
|
4490
4490
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
4491
4491
|
}
|
|
4492
4492
|
startAnimation(o) {
|
|
4493
4493
|
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Ne(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = ee.update(() => {
|
|
4494
|
-
Kt.hasAnimatedSinceResize = !0,
|
|
4494
|
+
Kt.hasAnimatedSinceResize = !0, wt.layout++, this.currentAnimation = df(0, cs, {
|
|
4495
4495
|
...o,
|
|
4496
4496
|
onUpdate: (l) => {
|
|
4497
4497
|
this.mixTargetDelta(l), o.onUpdate && o.onUpdate(l);
|
|
4498
4498
|
},
|
|
4499
4499
|
onStop: () => {
|
|
4500
|
-
|
|
4500
|
+
wt.layout--;
|
|
4501
4501
|
},
|
|
4502
4502
|
onComplete: () => {
|
|
4503
|
-
|
|
4503
|
+
wt.layout--, o.onComplete && o.onComplete(), this.completeAnimation();
|
|
4504
4504
|
}
|
|
4505
4505
|
}), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
|
|
4506
4506
|
});
|
|
@@ -4524,7 +4524,7 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4524
4524
|
const h = be(this.layout.layoutBox.y);
|
|
4525
4525
|
a.y.min = o.target.y.min, a.y.max = a.y.min + h;
|
|
4526
4526
|
}
|
|
4527
|
-
Ee(l, a), st(l, c),
|
|
4527
|
+
Ee(l, a), st(l, c), St(this.projectionDeltaWithTransform, this.layoutCorrected, l, c);
|
|
4528
4528
|
}
|
|
4529
4529
|
}
|
|
4530
4530
|
registerSharedNode(o, l) {
|
|
@@ -4599,10 +4599,10 @@ function ia({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
4599
4599
|
this.applyTransformsToTarget(), u.transform = Ef(this.projectionDeltaWithTransform, this.treeScale, h), c && (u.transform = c(h, u.transform));
|
|
4600
4600
|
const { x: m, y: v } = this.projectionDelta;
|
|
4601
4601
|
u.transformOrigin = `${m.origin * 100}% ${v.origin * 100}% 0`, f.animationValues ? u.opacity = f === this ? (a = (l = h.opacity) !== null && l !== void 0 ? l : this.latestValues.opacity) !== null && a !== void 0 ? a : 1 : this.preserveOpacity ? this.latestValues.opacity : h.opacityExit : u.opacity = f === this ? h.opacity !== void 0 ? h.opacity : "" : h.opacityExit !== void 0 ? h.opacityExit : 0;
|
|
4602
|
-
for (const y in
|
|
4602
|
+
for (const y in Rt) {
|
|
4603
4603
|
if (h[y] === void 0)
|
|
4604
4604
|
continue;
|
|
4605
|
-
const { correct: w, applyTo: x, isCSSVariable: P } =
|
|
4605
|
+
const { correct: w, applyTo: x, isCSSVariable: P } = Rt[y], S = u.transform === "none" ? h[y] : w(h[y], f);
|
|
4606
4606
|
if (x) {
|
|
4607
4607
|
const j = x.length;
|
|
4608
4608
|
for (let p = 0; p < j; p++)
|
|
@@ -4639,9 +4639,9 @@ function Df(e) {
|
|
|
4639
4639
|
h.max = h.min + m, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[f].max = e.relativeTarget[f].min + m);
|
|
4640
4640
|
});
|
|
4641
4641
|
const l = rt();
|
|
4642
|
-
|
|
4642
|
+
St(l, r, n.layoutBox);
|
|
4643
4643
|
const a = rt();
|
|
4644
|
-
o ?
|
|
4644
|
+
o ? St(a, e.applyTransform(i, !0), n.measuredBox) : St(a, r, n.layoutBox);
|
|
4645
4645
|
const u = !ta(l);
|
|
4646
4646
|
let c = !1;
|
|
4647
4647
|
if (!e.resumeFrom) {
|
|
@@ -4650,9 +4650,9 @@ function Df(e) {
|
|
|
4650
4650
|
const { snapshot: h, layout: m } = f;
|
|
4651
4651
|
if (h && m) {
|
|
4652
4652
|
const v = se();
|
|
4653
|
-
|
|
4653
|
+
Ct(v, n.layoutBox, h.layoutBox);
|
|
4654
4654
|
const y = se();
|
|
4655
|
-
|
|
4655
|
+
Ct(y, r, m.layoutBox), na(v, y) || (c = !0), f.options.layoutRoot && (e.relativeTarget = y, e.relativeTargetOrigin = v, e.relativeParent = f);
|
|
4656
4656
|
}
|
|
4657
4657
|
}
|
|
4658
4658
|
}
|
|
@@ -4734,7 +4734,7 @@ function zf(e) {
|
|
|
4734
4734
|
return e !== e.root && ((t = e.scroll) === null || t === void 0 ? void 0 : t.wasRoot);
|
|
4735
4735
|
}
|
|
4736
4736
|
const Yf = ia({
|
|
4737
|
-
attachResizeListener: (e, t) =>
|
|
4737
|
+
attachResizeListener: (e, t) => Mt(e, "resize", t),
|
|
4738
4738
|
measureScroll: () => ({
|
|
4739
4739
|
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
4740
4740
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
@@ -4799,7 +4799,7 @@ class qf extends $e {
|
|
|
4799
4799
|
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
|
|
4800
4800
|
}
|
|
4801
4801
|
mount() {
|
|
4802
|
-
this.unmount = _t(
|
|
4802
|
+
this.unmount = _t(Mt(this.node.current, "focus", () => this.onFocus()), Mt(this.node.current, "blur", () => this.onBlur()));
|
|
4803
4803
|
}
|
|
4804
4804
|
unmount() {
|
|
4805
4805
|
}
|
|
@@ -4911,14 +4911,14 @@ function cd(e, t, n) {
|
|
|
4911
4911
|
if (ge(i))
|
|
4912
4912
|
e.addValue(r, i), process.env.NODE_ENV === "development" && tn(i.version === "12.4.7", `Attempting to mix Motion versions ${i.version} with 12.4.7 may not work as expected.`);
|
|
4913
4913
|
else if (ge(s))
|
|
4914
|
-
e.addValue(r,
|
|
4914
|
+
e.addValue(r, Dt(i, { owner: e }));
|
|
4915
4915
|
else if (s !== i)
|
|
4916
4916
|
if (e.hasValue(r)) {
|
|
4917
4917
|
const o = e.getValue(r);
|
|
4918
4918
|
o.liveStyle === !0 ? o.jump(i) : o.hasAnimated || o.set(i);
|
|
4919
4919
|
} else {
|
|
4920
4920
|
const o = e.getStaticValue(r);
|
|
4921
|
-
e.addValue(r,
|
|
4921
|
+
e.addValue(r, Dt(o !== void 0 ? o : i, { owner: e }));
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
4924
4924
|
for (const r in n)
|
|
@@ -5052,7 +5052,7 @@ class ud {
|
|
|
5052
5052
|
if (this.props.values && this.props.values[t])
|
|
5053
5053
|
return this.props.values[t];
|
|
5054
5054
|
let r = this.values.get(t);
|
|
5055
|
-
return r === void 0 && n !== void 0 && (r =
|
|
5055
|
+
return r === void 0 && n !== void 0 && (r = Dt(n === null ? void 0 : n, { owner: this }), this.addValue(t, r)), r;
|
|
5056
5056
|
}
|
|
5057
5057
|
readValue(t, n) {
|
|
5058
5058
|
var r;
|
|
@@ -5255,7 +5255,7 @@ const pd = (e, t) => mr(e) ? new hd(t) : new dd(t, {
|
|
|
5255
5255
|
isCurrentUserMessage: i
|
|
5256
5256
|
}) => {
|
|
5257
5257
|
const s = pe(null), [o, l] = xe(!1);
|
|
5258
|
-
return
|
|
5258
|
+
return ut(() => (s.current || (s.current = document.createElement("div"), s.current.style.zIndex = "1500", s.current.style.position = "fixed", s.current.style.top = "0", s.current.style.left = "0", s.current.style.width = "100%", s.current.style.height = "100%", s.current.style.pointerEvents = "none", document.body.appendChild(s.current)), l(!0), () => {
|
|
5259
5259
|
s.current && !t && (document.body.removeChild(s.current), s.current = null);
|
|
5260
5260
|
}), [t]), !s.current || !o ? null : Na.createPortal(
|
|
5261
5261
|
/* @__PURE__ */ g.exports.jsx(ks, { children: t && /* @__PURE__ */ g.exports.jsx(
|
|
@@ -5265,7 +5265,7 @@ const pd = (e, t) => mr(e) ? new hd(t) : new dd(t, {
|
|
|
5265
5265
|
animate: { opacity: 1, scale: 1, y: 0 },
|
|
5266
5266
|
exit: { opacity: 0, scale: 0.8, y: -10 },
|
|
5267
5267
|
transition: { duration: 0.2, ease: "easeOut" },
|
|
5268
|
-
className: "absolute z-50 bg-white shadow-lg rounded-md p-2 px-1 w-42",
|
|
5268
|
+
className: "absolute z-50 bg-white shadow-lg rounded-md p-2 px-1 w-42 pointer-events-auto",
|
|
5269
5269
|
style: {
|
|
5270
5270
|
top: n.y,
|
|
5271
5271
|
left: n.x
|
|
@@ -5619,10 +5619,10 @@ const Ts = ({
|
|
|
5619
5619
|
]
|
|
5620
5620
|
}
|
|
5621
5621
|
);
|
|
5622
|
-
let
|
|
5622
|
+
let vt = null;
|
|
5623
5623
|
const Pd = ({ src: e, className: t }) => {
|
|
5624
5624
|
const [n, r] = xe(!1), [i, s] = xe(0), o = pe(null);
|
|
5625
|
-
|
|
5625
|
+
ut(() => {
|
|
5626
5626
|
const a = o.current;
|
|
5627
5627
|
if (!a)
|
|
5628
5628
|
return;
|
|
@@ -5637,7 +5637,7 @@ const Pd = ({ src: e, className: t }) => {
|
|
|
5637
5637
|
}, []);
|
|
5638
5638
|
const l = () => {
|
|
5639
5639
|
const a = o.current;
|
|
5640
|
-
a && (n ? a.pause() : (
|
|
5640
|
+
a && (n ? a.pause() : (vt && vt !== a && (vt.pause(), vt.currentTime = 0), a.play(), vt = a));
|
|
5641
5641
|
};
|
|
5642
5642
|
return /* @__PURE__ */ g.exports.jsxs(
|
|
5643
5643
|
"div",
|
|
@@ -6700,7 +6700,16 @@ const Gd = Ur, qd = ({
|
|
|
6700
6700
|
setTimeout(() => {
|
|
6701
6701
|
o.current && (o.current.scrollTop = o.current.scrollHeight);
|
|
6702
6702
|
}, 100);
|
|
6703
|
-
}
|
|
6703
|
+
};
|
|
6704
|
+
ut(() => {
|
|
6705
|
+
const p = () => {
|
|
6706
|
+
h(null);
|
|
6707
|
+
};
|
|
6708
|
+
return window.addEventListener("scroll", p, !0), () => {
|
|
6709
|
+
window.removeEventListener("scroll", p, !0);
|
|
6710
|
+
};
|
|
6711
|
+
}, [h]);
|
|
6712
|
+
const v = (p, A) => {
|
|
6704
6713
|
p.preventDefault();
|
|
6705
6714
|
const $ = window.scrollX, D = window.scrollY;
|
|
6706
6715
|
h({
|