@ukpc-lib/react 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +4 -4
- package/dist/components/index.js +772 -774
- package/dist/index.css +1 -1
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.cjs +8 -8
- package/web-components-bundle/global-menu/index.js +264 -265
- package/web-components-bundle/global-topbar/index.cjs +2 -2
- package/web-components-bundle/global-topbar/index.js +16 -17
- package/web-components-bundle/{index-1cd1b97d.cjs → index-8efa71fb.cjs} +1 -1
- package/web-components-bundle/{index-64e870d7.js → index-8f10a282.js} +25 -27
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as S, R as cn, j as V, g as fl, a as Vo, L as dl, b as hl, s as pl } from "../index-8f10a282.js";
|
|
2
2
|
var Ur = {}, Mo = { exports: {} };
|
|
3
3
|
(function(e) {
|
|
4
4
|
function t(n) {
|
|
@@ -75,7 +75,7 @@ function yl(e, t) {
|
|
|
75
75
|
}
|
|
76
76
|
function bl(e, t) {
|
|
77
77
|
var n, r;
|
|
78
|
-
return /* @__PURE__ */
|
|
78
|
+
return /* @__PURE__ */ S.isValidElement(e) && t.indexOf(
|
|
79
79
|
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
80
80
|
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
81
81
|
// eslint-disable-next-line no-underscore-dangle
|
|
@@ -94,11 +94,11 @@ function xl(e, t) {
|
|
|
94
94
|
function jo(e, t) {
|
|
95
95
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const Sl = typeof window < "u" ? S.useLayoutEffect : S.useEffect, Bo = Sl;
|
|
98
98
|
let Is = 0;
|
|
99
|
-
function
|
|
100
|
-
const [t, n] =
|
|
101
|
-
return
|
|
99
|
+
function wl(e) {
|
|
100
|
+
const [t, n] = S.useState(e), r = e || t;
|
|
101
|
+
return S.useEffect(() => {
|
|
102
102
|
t == null && (Is += 1, n(`mui-${Is}`));
|
|
103
103
|
}, [t]), r;
|
|
104
104
|
}
|
|
@@ -108,7 +108,7 @@ function Pl(e) {
|
|
|
108
108
|
const t = _s();
|
|
109
109
|
return e ?? t;
|
|
110
110
|
}
|
|
111
|
-
return
|
|
111
|
+
return wl(e);
|
|
112
112
|
}
|
|
113
113
|
function Tl(e, t, n, r, s) {
|
|
114
114
|
return null;
|
|
@@ -121,22 +121,22 @@ function Cl({
|
|
|
121
121
|
}) {
|
|
122
122
|
const {
|
|
123
123
|
current: s
|
|
124
|
-
} =
|
|
124
|
+
} = S.useRef(e !== void 0), [o, i] = S.useState(t), a = s ? e : o, c = S.useCallback((l) => {
|
|
125
125
|
s || i(l);
|
|
126
126
|
}, []);
|
|
127
127
|
return [a, c];
|
|
128
128
|
}
|
|
129
129
|
function Al(e) {
|
|
130
|
-
const t =
|
|
130
|
+
const t = S.useRef(e);
|
|
131
131
|
return Bo(() => {
|
|
132
132
|
t.current = e;
|
|
133
|
-
}),
|
|
133
|
+
}), S.useRef((...n) => (
|
|
134
134
|
// @ts-expect-error hide `this`
|
|
135
135
|
(0, t.current)(...n)
|
|
136
136
|
)).current;
|
|
137
137
|
}
|
|
138
138
|
function Rl(...e) {
|
|
139
|
-
return
|
|
139
|
+
return S.useMemo(() => e.every((t) => t == null) ? null : (t) => {
|
|
140
140
|
e.forEach((n) => {
|
|
141
141
|
jo(n, t);
|
|
142
142
|
});
|
|
@@ -188,9 +188,9 @@ function Dl(e) {
|
|
|
188
188
|
return Tn || Ol(t);
|
|
189
189
|
}
|
|
190
190
|
function Ll() {
|
|
191
|
-
const e =
|
|
191
|
+
const e = S.useCallback((s) => {
|
|
192
192
|
s != null && Ml(s.ownerDocument);
|
|
193
|
-
}, []), t =
|
|
193
|
+
}, []), t = S.useRef(!1);
|
|
194
194
|
function n() {
|
|
195
195
|
return t.current ? (br = !0, window.clearTimeout($s), $s = window.setTimeout(() => {
|
|
196
196
|
br = !1;
|
|
@@ -494,7 +494,7 @@ function iu(e) {
|
|
|
494
494
|
return Go(Qt("", null, null, null, [""], e = Ko(e), 0, [0], e));
|
|
495
495
|
}
|
|
496
496
|
function Qt(e, t, n, r, s, o, i, a, c) {
|
|
497
|
-
for (var l = 0, f = 0, u = i, d = 0, m = 0, p = 0, h = 1, g = 1, b = 1, v = 0, y = "",
|
|
497
|
+
for (var l = 0, f = 0, u = i, d = 0, m = 0, p = 0, h = 1, g = 1, b = 1, v = 0, y = "", w = s, P = o, C = r, T = y; g; )
|
|
498
498
|
switch (p = v, v = se()) {
|
|
499
499
|
case 40:
|
|
500
500
|
if (p != 108 && Y(T, u - 1) == 58) {
|
|
@@ -540,16 +540,16 @@ function Qt(e, t, n, r, s, o, i, a, c) {
|
|
|
540
540
|
case 59:
|
|
541
541
|
T += ";";
|
|
542
542
|
default:
|
|
543
|
-
if (Kt(C = Us(T, t, n, l, f, s, a, y,
|
|
543
|
+
if (Kt(C = Us(T, t, n, l, f, s, a, y, w = [], P = [], u), o), v === 123)
|
|
544
544
|
if (f === 0)
|
|
545
|
-
Qt(T, t, C, C,
|
|
545
|
+
Qt(T, t, C, C, w, o, u, a, P);
|
|
546
546
|
else
|
|
547
547
|
switch (d === 99 && Y(T, 3) === 110 ? 100 : d) {
|
|
548
548
|
case 100:
|
|
549
549
|
case 108:
|
|
550
550
|
case 109:
|
|
551
551
|
case 115:
|
|
552
|
-
Qt(e, C, C, r && Kt(Us(e, C, C, 0, 0, s, a, y, s,
|
|
552
|
+
Qt(e, C, C, r && Kt(Us(e, C, C, 0, 0, s, a, y, s, w = [], u), P), s, P, u, a, r ? w : P);
|
|
553
553
|
break;
|
|
554
554
|
default:
|
|
555
555
|
Qt(T, C, C, C, [""], P, 0, a, P);
|
|
@@ -898,7 +898,7 @@ var Xo = function(t, n, r) {
|
|
|
898
898
|
while (o !== void 0);
|
|
899
899
|
}
|
|
900
900
|
};
|
|
901
|
-
function
|
|
901
|
+
function Su(e) {
|
|
902
902
|
for (var t = 0, n, r = 0, s = e.length; s >= 4; ++r, s -= 4)
|
|
903
903
|
n = e.charCodeAt(r) & 255 | (e.charCodeAt(++r) & 255) << 8 | (e.charCodeAt(++r) & 255) << 16 | (e.charCodeAt(++r) & 255) << 24, n = /* Math.imul(k, m): */
|
|
904
904
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
@@ -917,7 +917,7 @@ function wu(e) {
|
|
|
917
917
|
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
918
918
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
919
919
|
}
|
|
920
|
-
var
|
|
920
|
+
var wu = {
|
|
921
921
|
animationIterationCount: 1,
|
|
922
922
|
aspectRatio: 1,
|
|
923
923
|
borderImageOutset: 1,
|
|
@@ -984,7 +984,7 @@ var Su = {
|
|
|
984
984
|
}, s;
|
|
985
985
|
});
|
|
986
986
|
}
|
|
987
|
-
return
|
|
987
|
+
return wu[t] !== 1 && !Yo(t) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
988
988
|
};
|
|
989
989
|
function Ot(e, t, n) {
|
|
990
990
|
if (n == null)
|
|
@@ -1069,7 +1069,7 @@ var Gs = /label:\s*([^\s;\n{]+)\s*(;|$)/g, me, Au = function(t, n, r) {
|
|
|
1069
1069
|
for (var c = "", l; (l = Gs.exec(o)) !== null; )
|
|
1070
1070
|
c += "-" + // $FlowFixMe we know it's not null
|
|
1071
1071
|
l[1];
|
|
1072
|
-
var f =
|
|
1072
|
+
var f = Su(o) + c;
|
|
1073
1073
|
return {
|
|
1074
1074
|
name: f,
|
|
1075
1075
|
styles: o,
|
|
@@ -1077,7 +1077,7 @@ var Gs = /label:\s*([^\s;\n{]+)\s*(;|$)/g, me, Au = function(t, n, r) {
|
|
|
1077
1077
|
};
|
|
1078
1078
|
}, Ru = function(t) {
|
|
1079
1079
|
return t();
|
|
1080
|
-
}, Eu = cn["useInsertionEffect"] ? cn["useInsertionEffect"] : !1, Ou = Eu || Ru, Jo = /* @__PURE__ */
|
|
1080
|
+
}, Eu = cn["useInsertionEffect"] ? cn["useInsertionEffect"] : !1, Ou = Eu || Ru, Jo = /* @__PURE__ */ S.createContext(
|
|
1081
1081
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1082
1082
|
// because this module is primarily intended for the browser and node
|
|
1083
1083
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -1090,11 +1090,11 @@ var Gs = /label:\s*([^\s;\n{]+)\s*(;|$)/g, me, Au = function(t, n, r) {
|
|
|
1090
1090
|
);
|
|
1091
1091
|
Jo.Provider;
|
|
1092
1092
|
var ku = function(t) {
|
|
1093
|
-
return /* @__PURE__ */
|
|
1094
|
-
var s =
|
|
1093
|
+
return /* @__PURE__ */ S.forwardRef(function(n, r) {
|
|
1094
|
+
var s = S.useContext(Jo);
|
|
1095
1095
|
return t(n, s, r);
|
|
1096
1096
|
});
|
|
1097
|
-
}, Zo = /* @__PURE__ */
|
|
1097
|
+
}, Zo = /* @__PURE__ */ S.createContext({}), Vu = Ul, Mu = function(t) {
|
|
1098
1098
|
return t !== "theme";
|
|
1099
1099
|
}, qs = function(t) {
|
|
1100
1100
|
return typeof t == "string" && // 96 is one less than the char code
|
|
@@ -1129,25 +1129,25 @@ var ku = function(t) {
|
|
|
1129
1129
|
u.push(f[m], f[0][m]);
|
|
1130
1130
|
}
|
|
1131
1131
|
var p = ku(function(h, g, b) {
|
|
1132
|
-
var v = l && h.as || s, y = "",
|
|
1132
|
+
var v = l && h.as || s, y = "", w = [], P = h;
|
|
1133
1133
|
if (h.theme == null) {
|
|
1134
1134
|
P = {};
|
|
1135
1135
|
for (var C in h)
|
|
1136
1136
|
P[C] = h[C];
|
|
1137
|
-
P.theme =
|
|
1137
|
+
P.theme = S.useContext(Zo);
|
|
1138
1138
|
}
|
|
1139
|
-
typeof h.className == "string" ? y = vu(g.registered,
|
|
1140
|
-
var T = Au(u.concat(
|
|
1139
|
+
typeof h.className == "string" ? y = vu(g.registered, w, h.className) : h.className != null && (y = h.className + " ");
|
|
1140
|
+
var T = Au(u.concat(w), g.registered, P);
|
|
1141
1141
|
y += g.key + "-" + T.name, i !== void 0 && (y += " " + i);
|
|
1142
1142
|
var E = l && a === void 0 ? qs(v) : c, L = {};
|
|
1143
1143
|
for (var R in h)
|
|
1144
1144
|
l && R === "as" || // $FlowFixMe
|
|
1145
1145
|
E(R) && (L[R] = h[R]);
|
|
1146
|
-
return L.className = y, L.ref = b, /* @__PURE__ */
|
|
1146
|
+
return L.className = y, L.ref = b, /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(Du, {
|
|
1147
1147
|
cache: g,
|
|
1148
1148
|
serialized: T,
|
|
1149
1149
|
isStringTag: typeof v == "string"
|
|
1150
|
-
}), /* @__PURE__ */
|
|
1150
|
+
}), /* @__PURE__ */ S.createElement(v, L));
|
|
1151
1151
|
});
|
|
1152
1152
|
return p.displayName = o !== void 0 ? o : "Styled(" + (typeof s == "string" ? s : s.displayName || s.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = s, p.__emotion_styles = u, p.__emotion_forwardProp = a, Object.defineProperty(p, "toString", {
|
|
1153
1153
|
value: function() {
|
|
@@ -1295,9 +1295,9 @@ var ku = function(t) {
|
|
|
1295
1295
|
"svg",
|
|
1296
1296
|
"text",
|
|
1297
1297
|
"tspan"
|
|
1298
|
-
],
|
|
1298
|
+
], Sr = Lu.bind();
|
|
1299
1299
|
ju.forEach(function(e) {
|
|
1300
|
-
|
|
1300
|
+
Sr[e] = Sr(e);
|
|
1301
1301
|
});
|
|
1302
1302
|
/**
|
|
1303
1303
|
* @mui/styled-engine v5.15.4
|
|
@@ -1307,7 +1307,7 @@ ju.forEach(function(e) {
|
|
|
1307
1307
|
* LICENSE file in the root directory of this source tree.
|
|
1308
1308
|
*/
|
|
1309
1309
|
function Bu(e, t) {
|
|
1310
|
-
return
|
|
1310
|
+
return Sr(e, t);
|
|
1311
1311
|
}
|
|
1312
1312
|
const Fu = (e, t) => {
|
|
1313
1313
|
Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
|
|
@@ -1370,7 +1370,7 @@ function $u(e) {
|
|
|
1370
1370
|
const Nu = {
|
|
1371
1371
|
borderRadius: 4
|
|
1372
1372
|
}, Uu = Nu;
|
|
1373
|
-
function
|
|
1373
|
+
function wt(e, t) {
|
|
1374
1374
|
return t ? de(e, t, {
|
|
1375
1375
|
clone: !1
|
|
1376
1376
|
// No need to clone deep, it's way faster.
|
|
@@ -1515,7 +1515,7 @@ function Yu(e, t, n, r) {
|
|
|
1515
1515
|
}
|
|
1516
1516
|
function ea(e, t) {
|
|
1517
1517
|
const n = Qo(e.theme);
|
|
1518
|
-
return Object.keys(e).map((r) => Yu(e, t, r, n)).reduce(
|
|
1518
|
+
return Object.keys(e).map((r) => Yu(e, t, r, n)).reduce(wt, {});
|
|
1519
1519
|
}
|
|
1520
1520
|
function N(e) {
|
|
1521
1521
|
return ea(e, qr);
|
|
@@ -1541,7 +1541,7 @@ function Ju(e = 8) {
|
|
|
1541
1541
|
function On(...e) {
|
|
1542
1542
|
const t = e.reduce((r, s) => (s.filterProps.forEach((o) => {
|
|
1543
1543
|
r[o] = s;
|
|
1544
|
-
}), r), {}), n = (r) => Object.keys(r).reduce((s, o) => t[o] ?
|
|
1544
|
+
}), r), {}), n = (r) => Object.keys(r).reduce((s, o) => t[o] ? wt(s, t[o](r)) : s, {});
|
|
1545
1545
|
return n.propTypes = {}, n.filterProps = e.reduce((r, s) => r.concat(s.filterProps), []), n;
|
|
1546
1546
|
}
|
|
1547
1547
|
function ce(e) {
|
|
@@ -1626,17 +1626,17 @@ const xf = H({
|
|
|
1626
1626
|
prop: "color",
|
|
1627
1627
|
themeKey: "palette",
|
|
1628
1628
|
transform: rt
|
|
1629
|
-
}),
|
|
1629
|
+
}), Sf = H({
|
|
1630
1630
|
prop: "bgcolor",
|
|
1631
1631
|
cssProperty: "backgroundColor",
|
|
1632
1632
|
themeKey: "palette",
|
|
1633
1633
|
transform: rt
|
|
1634
|
-
}),
|
|
1634
|
+
}), wf = H({
|
|
1635
1635
|
prop: "backgroundColor",
|
|
1636
1636
|
themeKey: "palette",
|
|
1637
1637
|
transform: rt
|
|
1638
1638
|
});
|
|
1639
|
-
On(xf,
|
|
1639
|
+
On(xf, Sf, wf);
|
|
1640
1640
|
function re(e) {
|
|
1641
1641
|
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
1642
1642
|
}
|
|
@@ -2034,7 +2034,7 @@ function Mf() {
|
|
|
2034
2034
|
if (p != null)
|
|
2035
2035
|
if (typeof p == "object")
|
|
2036
2036
|
if (i[m])
|
|
2037
|
-
d =
|
|
2037
|
+
d = wt(d, e(m, p, o, i));
|
|
2038
2038
|
else {
|
|
2039
2039
|
const h = Ce({
|
|
2040
2040
|
theme: o
|
|
@@ -2044,10 +2044,10 @@ function Mf() {
|
|
|
2044
2044
|
kf(h, p) ? d[m] = t({
|
|
2045
2045
|
sx: p,
|
|
2046
2046
|
theme: o
|
|
2047
|
-
}) : d =
|
|
2047
|
+
}) : d = wt(d, h);
|
|
2048
2048
|
}
|
|
2049
2049
|
else
|
|
2050
|
-
d =
|
|
2050
|
+
d = wt(d, e(m, p, o, i));
|
|
2051
2051
|
}), Hu(u, d);
|
|
2052
2052
|
}
|
|
2053
2053
|
return Array.isArray(s) ? s.map(a) : a(s);
|
|
@@ -2086,7 +2086,7 @@ function Lf(e) {
|
|
|
2086
2086
|
return Object.keys(e).length === 0;
|
|
2087
2087
|
}
|
|
2088
2088
|
function jf(e = null) {
|
|
2089
|
-
const t =
|
|
2089
|
+
const t = S.useContext(Zo);
|
|
2090
2090
|
return !t || Lf(t) ? e : t;
|
|
2091
2091
|
}
|
|
2092
2092
|
const Bf = Qr();
|
|
@@ -2193,7 +2193,7 @@ function qf(e = {}) {
|
|
|
2193
2193
|
}))
|
|
2194
2194
|
}));
|
|
2195
2195
|
return o.__mui_systemSx = !0, (i, a = {}) => {
|
|
2196
|
-
Fu(i, (
|
|
2196
|
+
Fu(i, (w) => w.filter((P) => !(P != null && P.__mui_systemSx)));
|
|
2197
2197
|
const {
|
|
2198
2198
|
name: c,
|
|
2199
2199
|
slot: l,
|
|
@@ -2212,7 +2212,7 @@ function qf(e = {}) {
|
|
|
2212
2212
|
const v = Bu(i, O({
|
|
2213
2213
|
shouldForwardProp: b,
|
|
2214
2214
|
label: g
|
|
2215
|
-
}, m)), y = (
|
|
2215
|
+
}, m)), y = (w, ...P) => {
|
|
2216
2216
|
const C = P ? P.map((R) => {
|
|
2217
2217
|
if (typeof R == "function" && R.__emotion_real !== R)
|
|
2218
2218
|
return (W) => Qs({
|
|
@@ -2232,21 +2232,21 @@ function qf(e = {}) {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
return R;
|
|
2234
2234
|
}) : [];
|
|
2235
|
-
let T =
|
|
2236
|
-
if (Me(
|
|
2235
|
+
let T = w;
|
|
2236
|
+
if (Me(w)) {
|
|
2237
2237
|
let R;
|
|
2238
|
-
|
|
2239
|
-
let $ =
|
|
2238
|
+
w && w.variants && (R = w.variants, delete T.variants, T = (W) => {
|
|
2239
|
+
let $ = w;
|
|
2240
2240
|
return dn(W, fn(R), R).forEach((F) => {
|
|
2241
2241
|
$ = de($, F);
|
|
2242
2242
|
}), $;
|
|
2243
2243
|
});
|
|
2244
2244
|
} else
|
|
2245
|
-
typeof
|
|
2245
|
+
typeof w == "function" && // On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
2246
2246
|
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
2247
2247
|
// which are basically components used as a selectors.
|
|
2248
|
-
|
|
2249
|
-
styledArg:
|
|
2248
|
+
w.__emotion_real !== w && (T = (R) => Qs({
|
|
2249
|
+
styledArg: w,
|
|
2250
2250
|
props: R,
|
|
2251
2251
|
defaultTheme: n,
|
|
2252
2252
|
themeId: t
|
|
@@ -2273,9 +2273,9 @@ function qf(e = {}) {
|
|
|
2273
2273
|
return Hf(R, zf(c, W), W, c);
|
|
2274
2274
|
}), h || C.push(o);
|
|
2275
2275
|
const E = C.length - P.length;
|
|
2276
|
-
if (Array.isArray(
|
|
2276
|
+
if (Array.isArray(w) && E > 0) {
|
|
2277
2277
|
const R = new Array(E).fill("");
|
|
2278
|
-
T = [...
|
|
2278
|
+
T = [...w, ...R], T.raw = [...w.raw, ...R];
|
|
2279
2279
|
}
|
|
2280
2280
|
const L = v(T, ...C);
|
|
2281
2281
|
return i.muiName && (L.muiName = i.muiName), L;
|
|
@@ -2720,13 +2720,13 @@ function vd(e) {
|
|
|
2720
2720
|
}, m[t]), s);
|
|
2721
2721
|
}
|
|
2722
2722
|
const xd = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
2723
|
-
function
|
|
2723
|
+
function Sd(e) {
|
|
2724
2724
|
return Math.round(e * 1e5) / 1e5;
|
|
2725
2725
|
}
|
|
2726
2726
|
const ri = {
|
|
2727
2727
|
textTransform: "uppercase"
|
|
2728
2728
|
}, si = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
2729
|
-
function
|
|
2729
|
+
function wd(e, t) {
|
|
2730
2730
|
const n = typeof t == "function" ? t(e) : t, {
|
|
2731
2731
|
fontFamily: r = si,
|
|
2732
2732
|
// The default font size of the Material Specification.
|
|
@@ -2742,14 +2742,14 @@ function Sd(e, t) {
|
|
|
2742
2742
|
// Apply the CSS properties to all the variants.
|
|
2743
2743
|
allVariants: f,
|
|
2744
2744
|
pxToRem: u
|
|
2745
|
-
} = n, d = Re(n, xd), m = s / 14, p = u || ((b) => `${b / l * m}rem`), h = (b, v, y,
|
|
2745
|
+
} = n, d = Re(n, xd), m = s / 14, p = u || ((b) => `${b / l * m}rem`), h = (b, v, y, w, P) => O({
|
|
2746
2746
|
fontFamily: r,
|
|
2747
2747
|
fontWeight: b,
|
|
2748
2748
|
fontSize: p(v),
|
|
2749
2749
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
2750
2750
|
lineHeight: y
|
|
2751
2751
|
}, r === si ? {
|
|
2752
|
-
letterSpacing: `${
|
|
2752
|
+
letterSpacing: `${Sd(w / v)}em`
|
|
2753
2753
|
} : {}, P, f), g = {
|
|
2754
2754
|
h1: h(o, 96, 1.167, -1.5),
|
|
2755
2755
|
h2: h(o, 60, 1.2, -0.5),
|
|
@@ -2865,7 +2865,7 @@ function Bd(e = {}, ...t) {
|
|
|
2865
2865
|
palette: a,
|
|
2866
2866
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
2867
2867
|
shadows: Rd.slice(),
|
|
2868
|
-
typography:
|
|
2868
|
+
typography: wd(a, o),
|
|
2869
2869
|
transitions: Md(s),
|
|
2870
2870
|
zIndex: O({}, Ld)
|
|
2871
2871
|
});
|
|
@@ -2945,7 +2945,7 @@ const zd = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
2945
2945
|
inherit: void 0
|
|
2946
2946
|
}[t.color]
|
|
2947
2947
|
};
|
|
2948
|
-
}), oa = /* @__PURE__ */
|
|
2948
|
+
}), oa = /* @__PURE__ */ S.forwardRef(function(t, n) {
|
|
2949
2949
|
const r = Id({
|
|
2950
2950
|
props: t,
|
|
2951
2951
|
name: "MuiSvgIcon"
|
|
@@ -2959,7 +2959,7 @@ const zd = ["children", "className", "color", "component", "fontSize", "htmlColo
|
|
|
2959
2959
|
inheritViewBox: f = !1,
|
|
2960
2960
|
titleAccess: u,
|
|
2961
2961
|
viewBox: d = "0 0 24 24"
|
|
2962
|
-
} = r, m = Re(r, zd), p = /* @__PURE__ */
|
|
2962
|
+
} = r, m = Re(r, zd), p = /* @__PURE__ */ S.isValidElement(s) && s.type === "svg", h = O({}, r, {
|
|
2963
2963
|
color: i,
|
|
2964
2964
|
component: a,
|
|
2965
2965
|
fontSize: c,
|
|
@@ -2996,7 +2996,7 @@ function Kd(e, t) {
|
|
|
2996
2996
|
children: e
|
|
2997
2997
|
}));
|
|
2998
2998
|
}
|
|
2999
|
-
return n.muiName = oi.muiName, /* @__PURE__ */
|
|
2999
|
+
return n.muiName = oi.muiName, /* @__PURE__ */ S.memo(/* @__PURE__ */ S.forwardRef(n));
|
|
3000
3000
|
}
|
|
3001
3001
|
const Gd = {
|
|
3002
3002
|
configure: (e) => {
|
|
@@ -3062,13 +3062,13 @@ var la = rs.default = void 0, rh = nh(ts()), sh = V;
|
|
|
3062
3062
|
la = rs.default = (0, rh.default)(/* @__PURE__ */ (0, sh.jsx)("path", {
|
|
3063
3063
|
d: "M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1m0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1M3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1"
|
|
3064
3064
|
}), "MenuRounded");
|
|
3065
|
-
const ua =
|
|
3065
|
+
const ua = S.createContext({
|
|
3066
3066
|
transformPagePoint: (e) => e,
|
|
3067
3067
|
isStatic: !1,
|
|
3068
3068
|
reducedMotion: "never"
|
|
3069
|
-
}), Ln =
|
|
3069
|
+
}), Ln = S.createContext({}), ss = S.createContext(null), jn = typeof document < "u", ih = jn ? S.useLayoutEffect : S.useEffect, fa = S.createContext({ strict: !1 }), is = (e) => e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), oh = "framerAppearId", da = "data-" + is(oh);
|
|
3070
3070
|
function ah(e, t, n, r) {
|
|
3071
|
-
const { visualElement: s } =
|
|
3071
|
+
const { visualElement: s } = S.useContext(Ln), o = S.useContext(fa), i = S.useContext(ss), a = S.useContext(ua).reducedMotion, c = S.useRef();
|
|
3072
3072
|
r = r || o.renderer, !c.current && r && (c.current = r(e, {
|
|
3073
3073
|
visualState: t,
|
|
3074
3074
|
parent: s,
|
|
@@ -3078,13 +3078,13 @@ function ah(e, t, n, r) {
|
|
|
3078
3078
|
reducedMotionConfig: a
|
|
3079
3079
|
}));
|
|
3080
3080
|
const l = c.current;
|
|
3081
|
-
|
|
3081
|
+
S.useInsertionEffect(() => {
|
|
3082
3082
|
l && l.update(n, i);
|
|
3083
3083
|
});
|
|
3084
|
-
const f =
|
|
3084
|
+
const f = S.useRef(!!(n[da] && !window.HandoffComplete));
|
|
3085
3085
|
return ih(() => {
|
|
3086
3086
|
l && (l.render(), f.current && l.animationState && l.animationState.animateChanges());
|
|
3087
|
-
}),
|
|
3087
|
+
}), S.useEffect(() => {
|
|
3088
3088
|
l && (l.updateFeatures(), !f.current && l.animationState && l.animationState.animateChanges(), f.current && (f.current = !1, window.HandoffComplete = !0));
|
|
3089
3089
|
}), l;
|
|
3090
3090
|
}
|
|
@@ -3092,7 +3092,7 @@ function Ze(e) {
|
|
|
3092
3092
|
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
3093
3093
|
}
|
|
3094
3094
|
function ch(e, t, n) {
|
|
3095
|
-
return
|
|
3095
|
+
return S.useCallback(
|
|
3096
3096
|
(r) => {
|
|
3097
3097
|
r && e.mount && e.mount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : Ze(n) && (n.current = r));
|
|
3098
3098
|
},
|
|
@@ -3136,8 +3136,8 @@ function lh(e, t) {
|
|
|
3136
3136
|
return e.inherit !== !1 ? t : {};
|
|
3137
3137
|
}
|
|
3138
3138
|
function uh(e) {
|
|
3139
|
-
const { initial: t, animate: n } = lh(e,
|
|
3140
|
-
return
|
|
3139
|
+
const { initial: t, animate: n } = lh(e, S.useContext(Ln));
|
|
3140
|
+
return S.useMemo(() => ({ initial: t, animate: n }), [ci(t), ci(n)]);
|
|
3141
3141
|
}
|
|
3142
3142
|
function ci(e) {
|
|
3143
3143
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
@@ -3173,19 +3173,19 @@ function fh(e) {
|
|
|
3173
3173
|
...e[t]
|
|
3174
3174
|
};
|
|
3175
3175
|
}
|
|
3176
|
-
const pa =
|
|
3176
|
+
const pa = S.createContext({}), ma = S.createContext({}), dh = Symbol.for("motionComponentSymbol");
|
|
3177
3177
|
function hh({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: s }) {
|
|
3178
3178
|
e && fh(e);
|
|
3179
3179
|
function o(a, c) {
|
|
3180
3180
|
let l;
|
|
3181
3181
|
const f = {
|
|
3182
|
-
...
|
|
3182
|
+
...S.useContext(ua),
|
|
3183
3183
|
...a,
|
|
3184
3184
|
layoutId: ph(a)
|
|
3185
3185
|
}, { isStatic: u } = f, d = uh(a), m = r(a, u);
|
|
3186
3186
|
if (!u && jn) {
|
|
3187
3187
|
d.visualElement = ah(s, m, f, t);
|
|
3188
|
-
const p =
|
|
3188
|
+
const p = S.useContext(ma), h = S.useContext(fa).strict;
|
|
3189
3189
|
d.visualElement && (l = d.visualElement.loadFeatures(
|
|
3190
3190
|
// Note: Pass the full new combined props to correctly re-render dynamic feature components.
|
|
3191
3191
|
f,
|
|
@@ -3194,18 +3194,18 @@ function hh({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
|
|
|
3194
3194
|
p
|
|
3195
3195
|
));
|
|
3196
3196
|
}
|
|
3197
|
-
return
|
|
3197
|
+
return S.createElement(
|
|
3198
3198
|
Ln.Provider,
|
|
3199
3199
|
{ value: d },
|
|
3200
|
-
l && d.visualElement ?
|
|
3200
|
+
l && d.visualElement ? S.createElement(l, { visualElement: d.visualElement, ...f }) : null,
|
|
3201
3201
|
n(s, a, ch(m, d.visualElement, c), m, u, d.visualElement)
|
|
3202
3202
|
);
|
|
3203
3203
|
}
|
|
3204
|
-
const i =
|
|
3204
|
+
const i = S.forwardRef(o);
|
|
3205
3205
|
return i[dh] = s, i;
|
|
3206
3206
|
}
|
|
3207
3207
|
function ph({ layoutId: e }) {
|
|
3208
|
-
const t =
|
|
3208
|
+
const t = S.useContext(pa).id;
|
|
3209
3209
|
return t && e !== void 0 ? t + "-" + e : e;
|
|
3210
3210
|
}
|
|
3211
3211
|
function mh(e) {
|
|
@@ -3314,7 +3314,7 @@ function xh(e, { enableHardwareAcceleration: t = !0, allowTransformNone: n = !0
|
|
|
3314
3314
|
}
|
|
3315
3315
|
return t && !e.z && (o += "translateZ(0)"), o = o.trim(), s ? o = s(e, r ? "" : o) : n && r && (o = "none"), o;
|
|
3316
3316
|
}
|
|
3317
|
-
const ya = (e) => (t) => typeof t == "string" && t.startsWith(e), ba = ya("--"),
|
|
3317
|
+
const ya = (e) => (t) => typeof t == "string" && t.startsWith(e), ba = ya("--"), wr = ya("var(--"), Sh = /var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g, wh = (e, t) => t && typeof e == "number" ? t.transform(e) : e, je = (e, t, n) => Math.min(Math.max(n, e), t), We = {
|
|
3318
3318
|
test: (e) => typeof e == "number",
|
|
3319
3319
|
parse: parseFloat,
|
|
3320
3320
|
transform: (e) => e
|
|
@@ -3414,7 +3414,7 @@ function ls(e, t, n, r) {
|
|
|
3414
3414
|
o[u] = d;
|
|
3415
3415
|
continue;
|
|
3416
3416
|
}
|
|
3417
|
-
const m = xa[u], p =
|
|
3417
|
+
const m = xa[u], p = wh(d, m);
|
|
3418
3418
|
if (He.has(u)) {
|
|
3419
3419
|
if (c = !0, i[u] = p, !f)
|
|
3420
3420
|
continue;
|
|
@@ -3433,19 +3433,19 @@ const us = () => ({
|
|
|
3433
3433
|
transformOrigin: {},
|
|
3434
3434
|
vars: {}
|
|
3435
3435
|
});
|
|
3436
|
-
function
|
|
3436
|
+
function Sa(e, t, n) {
|
|
3437
3437
|
for (const r in t)
|
|
3438
3438
|
!ne(t[r]) && !ga(r, n) && (e[r] = t[r]);
|
|
3439
3439
|
}
|
|
3440
3440
|
function Ah({ transformTemplate: e }, t, n) {
|
|
3441
|
-
return
|
|
3441
|
+
return S.useMemo(() => {
|
|
3442
3442
|
const r = us();
|
|
3443
3443
|
return ls(r, t, { enableHardwareAcceleration: !n }, e), Object.assign({}, r.vars, r.style);
|
|
3444
3444
|
}, [t]);
|
|
3445
3445
|
}
|
|
3446
3446
|
function Rh(e, t, n) {
|
|
3447
3447
|
const r = e.style || {}, s = {};
|
|
3448
|
-
return
|
|
3448
|
+
return Sa(s, r, e), Object.assign(s, Ah(e, t, n)), e.transformValues ? e.transformValues(s) : s;
|
|
3449
3449
|
}
|
|
3450
3450
|
function Eh(e, t, n) {
|
|
3451
3451
|
const r = {}, s = Rh(e, t, n);
|
|
@@ -3487,9 +3487,9 @@ const Oh = /* @__PURE__ */ new Set([
|
|
|
3487
3487
|
function pn(e) {
|
|
3488
3488
|
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || Oh.has(e);
|
|
3489
3489
|
}
|
|
3490
|
-
let
|
|
3490
|
+
let wa = (e) => !pn(e);
|
|
3491
3491
|
function kh(e) {
|
|
3492
|
-
e && (
|
|
3492
|
+
e && (wa = (t) => t.startsWith("on") ? !pn(t) : e(t));
|
|
3493
3493
|
}
|
|
3494
3494
|
try {
|
|
3495
3495
|
kh(require("@emotion/is-prop-valid").default);
|
|
@@ -3498,7 +3498,7 @@ try {
|
|
|
3498
3498
|
function Vh(e, t, n) {
|
|
3499
3499
|
const r = {};
|
|
3500
3500
|
for (const s in e)
|
|
3501
|
-
s === "values" && typeof e.values == "object" || (
|
|
3501
|
+
s === "values" && typeof e.values == "object" || (wa(s) || n === !0 && pn(s) || !t && !pn(s) || // If trying to use native HTML drag events, forward drag listeners
|
|
3502
3502
|
e.draggable && s.startsWith("onDrag")) && (r[s] = e[s]);
|
|
3503
3503
|
return r;
|
|
3504
3504
|
}
|
|
@@ -3548,7 +3548,7 @@ const Pa = () => ({
|
|
|
3548
3548
|
attrs: {}
|
|
3549
3549
|
}), ds = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
3550
3550
|
function Bh(e, t, n, r) {
|
|
3551
|
-
const s =
|
|
3551
|
+
const s = S.useMemo(() => {
|
|
3552
3552
|
const o = Pa();
|
|
3553
3553
|
return fs(o, t, { enableHardwareAcceleration: !1 }, ds(r), e.transformTemplate), {
|
|
3554
3554
|
...o.attrs,
|
|
@@ -3557,7 +3557,7 @@ function Bh(e, t, n, r) {
|
|
|
3557
3557
|
}, [t]);
|
|
3558
3558
|
if (e.style) {
|
|
3559
3559
|
const o = {};
|
|
3560
|
-
|
|
3560
|
+
Sa(o, e.style, e), s.style = { ...o, ...s.style };
|
|
3561
3561
|
}
|
|
3562
3562
|
return s;
|
|
3563
3563
|
}
|
|
@@ -3567,8 +3567,8 @@ function Fh(e = !1) {
|
|
|
3567
3567
|
...Vh(r, typeof n == "string", e),
|
|
3568
3568
|
...c,
|
|
3569
3569
|
ref: s
|
|
3570
|
-
}, { children: u } = r, d =
|
|
3571
|
-
return
|
|
3570
|
+
}, { children: u } = r, d = S.useMemo(() => ne(u) ? u.get() : u, [u]);
|
|
3571
|
+
return S.createElement(n, {
|
|
3572
3572
|
...f,
|
|
3573
3573
|
children: d
|
|
3574
3574
|
});
|
|
@@ -3628,7 +3628,7 @@ function ps(e, t, n, r = {}, s = {}) {
|
|
|
3628
3628
|
return typeof t == "function" && (t = t(n !== void 0 ? n : e.custom, r, s)), typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function" && (t = t(n !== void 0 ? n : e.custom, r, s)), t;
|
|
3629
3629
|
}
|
|
3630
3630
|
function Ih(e) {
|
|
3631
|
-
const t =
|
|
3631
|
+
const t = S.useRef(null);
|
|
3632
3632
|
return t.current === null && (t.current = e()), t.current;
|
|
3633
3633
|
}
|
|
3634
3634
|
const mn = (e) => Array.isArray(e), _h = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), $h = (e) => mn(e) ? e[e.length - 1] || 0 : e;
|
|
@@ -3644,7 +3644,7 @@ function Nh({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: n }
|
|
|
3644
3644
|
return n && (i.mount = (a) => n(r, a, i)), i;
|
|
3645
3645
|
}
|
|
3646
3646
|
const Ea = (e) => (t, n) => {
|
|
3647
|
-
const r =
|
|
3647
|
+
const r = S.useContext(Ln), s = S.useContext(ss), o = () => Nh(e, t, r, s);
|
|
3648
3648
|
return n ? o() : Ih(o);
|
|
3649
3649
|
};
|
|
3650
3650
|
function Uh(e, t, n, r) {
|
|
@@ -3665,8 +3665,8 @@ function Uh(e, t, n, r) {
|
|
|
3665
3665
|
for (const v in b) {
|
|
3666
3666
|
let y = b[v];
|
|
3667
3667
|
if (Array.isArray(y)) {
|
|
3668
|
-
const
|
|
3669
|
-
y = y[
|
|
3668
|
+
const w = f ? y.length - 1 : 0;
|
|
3669
|
+
y = y[w];
|
|
3670
3670
|
}
|
|
3671
3671
|
y !== null && (s[v] = y);
|
|
3672
3672
|
}
|
|
@@ -3786,7 +3786,7 @@ function qh(e, { forwardMotionProps: t = !1 }, n, r) {
|
|
|
3786
3786
|
Component: e
|
|
3787
3787
|
};
|
|
3788
3788
|
}
|
|
3789
|
-
function
|
|
3789
|
+
function Se(e, t, n, r = { passive: !0 }) {
|
|
3790
3790
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n);
|
|
3791
3791
|
}
|
|
3792
3792
|
const Oa = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1;
|
|
@@ -3799,8 +3799,8 @@ function _n(e, t = "page") {
|
|
|
3799
3799
|
};
|
|
3800
3800
|
}
|
|
3801
3801
|
const Xh = (e) => (t) => Oa(t) && e(t, _n(t));
|
|
3802
|
-
function
|
|
3803
|
-
return
|
|
3802
|
+
function we(e, t, n, r) {
|
|
3803
|
+
return Se(e, t, Xh(n), r);
|
|
3804
3804
|
}
|
|
3805
3805
|
const Yh = (e, t) => (n) => t(e(n)), De = (...e) => e.reduce(Yh);
|
|
3806
3806
|
function ka(e) {
|
|
@@ -3845,7 +3845,7 @@ function gi(e, t) {
|
|
|
3845
3845
|
const a = e.getProps();
|
|
3846
3846
|
e.animationState && a.whileHover && e.animationState.setActive("whileHover", t), a[r] && j.update(() => a[r](o, i));
|
|
3847
3847
|
};
|
|
3848
|
-
return
|
|
3848
|
+
return we(e.current, n, s, {
|
|
3849
3849
|
passive: !e.getProps()[r]
|
|
3850
3850
|
});
|
|
3851
3851
|
}
|
|
@@ -3873,7 +3873,7 @@ class Zh extends Fe {
|
|
|
3873
3873
|
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
|
|
3874
3874
|
}
|
|
3875
3875
|
mount() {
|
|
3876
|
-
this.unmount = De(
|
|
3876
|
+
this.unmount = De(Se(this.node.current, "focus", () => this.onFocus()), Se(this.node.current, "blur", () => this.onBlur()));
|
|
3877
3877
|
}
|
|
3878
3878
|
unmount() {
|
|
3879
3879
|
}
|
|
@@ -3891,14 +3891,14 @@ class Qh extends Fe {
|
|
|
3891
3891
|
if (this.isPressing)
|
|
3892
3892
|
return;
|
|
3893
3893
|
this.removeEndListeners();
|
|
3894
|
-
const r = this.node.getProps(), o =
|
|
3894
|
+
const r = this.node.getProps(), o = we(window, "pointerup", (a, c) => {
|
|
3895
3895
|
if (!this.checkPressEnd())
|
|
3896
3896
|
return;
|
|
3897
3897
|
const { onTap: l, onTapCancel: f, globalTapTarget: u } = this.node.getProps();
|
|
3898
3898
|
j.update(() => {
|
|
3899
3899
|
!u && !Da(this.node.current, a.target) ? f && f(a, c) : l && l(a, c);
|
|
3900
3900
|
});
|
|
3901
|
-
}, { passive: !(r.onTap || r.onPointerUp) }), i =
|
|
3901
|
+
}, { passive: !(r.onTap || r.onPointerUp) }), i = we(window, "pointercancel", (a, c) => this.cancelPress(a, c), { passive: !(r.onTapCancel || r.onPointerCancel) });
|
|
3902
3902
|
this.removeEndListeners = De(o, i), this.startPress(t, n);
|
|
3903
3903
|
}, this.startAccessiblePress = () => {
|
|
3904
3904
|
const t = (o) => {
|
|
@@ -3910,12 +3910,12 @@ class Qh extends Fe {
|
|
|
3910
3910
|
f && j.update(() => f(c, l));
|
|
3911
3911
|
});
|
|
3912
3912
|
};
|
|
3913
|
-
this.removeEndListeners(), this.removeEndListeners =
|
|
3913
|
+
this.removeEndListeners(), this.removeEndListeners = Se(this.node.current, "keyup", i), nr("down", (a, c) => {
|
|
3914
3914
|
this.startPress(a, c);
|
|
3915
3915
|
});
|
|
3916
|
-
}, n =
|
|
3916
|
+
}, n = Se(this.node.current, "keydown", t), r = () => {
|
|
3917
3917
|
this.isPressing && nr("cancel", (o, i) => this.cancelPress(o, i));
|
|
3918
|
-
}, s =
|
|
3918
|
+
}, s = Se(this.node.current, "blur", r);
|
|
3919
3919
|
this.removeAccessibleListeners = De(n, s);
|
|
3920
3920
|
};
|
|
3921
3921
|
}
|
|
@@ -3934,7 +3934,7 @@ class Qh extends Fe {
|
|
|
3934
3934
|
r && j.update(() => r(t, n));
|
|
3935
3935
|
}
|
|
3936
3936
|
mount() {
|
|
3937
|
-
const t = this.node.getProps(), n =
|
|
3937
|
+
const t = this.node.getProps(), n = we(t.globalTapTarget ? window : this.node.current, "pointerdown", this.startPointerPress, { passive: !(t.onTapStart || t.onPointerStart) }), r = Se(this.node.current, "focus", this.startAccessiblePress);
|
|
3938
3938
|
this.removeStartListeners = De(n, r);
|
|
3939
3939
|
}
|
|
3940
3940
|
unmount() {
|
|
@@ -4042,20 +4042,20 @@ const Le = (e) => e * 1e3, Pe = (e) => e / 1e3, fp = {
|
|
|
4042
4042
|
function Ba(e) {
|
|
4043
4043
|
return !!(!e || typeof e == "string" && Fa[e] || ja(e) || Array.isArray(e) && e.every(Ba));
|
|
4044
4044
|
}
|
|
4045
|
-
const
|
|
4045
|
+
const St = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, Fa = {
|
|
4046
4046
|
linear: "linear",
|
|
4047
4047
|
ease: "ease",
|
|
4048
4048
|
easeIn: "ease-in",
|
|
4049
4049
|
easeOut: "ease-out",
|
|
4050
4050
|
easeInOut: "ease-in-out",
|
|
4051
|
-
circIn:
|
|
4052
|
-
circOut:
|
|
4053
|
-
backIn:
|
|
4054
|
-
backOut:
|
|
4051
|
+
circIn: St([0, 0.65, 0.55, 1]),
|
|
4052
|
+
circOut: St([0.55, 0, 1, 0.45]),
|
|
4053
|
+
backIn: St([0.31, 0.01, 0.66, -0.59]),
|
|
4054
|
+
backOut: St([0.33, 1.53, 0.69, 0.99])
|
|
4055
4055
|
};
|
|
4056
4056
|
function Ia(e) {
|
|
4057
4057
|
if (e)
|
|
4058
|
-
return ja(e) ?
|
|
4058
|
+
return ja(e) ? St(e) : Array.isArray(e) ? e.map(Ia) : Fa[e];
|
|
4059
4059
|
}
|
|
4060
4060
|
function dp(e, t, n, { delay: r = 0, duration: s, repeat: o = 0, repeatType: i = "loop", ease: a, times: c } = {}) {
|
|
4061
4061
|
const l = { [t]: n };
|
|
@@ -4088,7 +4088,7 @@ function Ut(e, t, n, r) {
|
|
|
4088
4088
|
const s = (o) => gp(o, 0, 1, e, n);
|
|
4089
4089
|
return (o) => o === 0 || o === 1 ? o : _a(s(o), t, r);
|
|
4090
4090
|
}
|
|
4091
|
-
const yp = Ut(0.42, 0, 1, 1), bp = Ut(0, 0, 0.58, 1), $a = Ut(0.42, 0, 0.58, 1), vp = (e) => Array.isArray(e) && typeof e[0] != "number", Na = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Ua = (e) => (t) => 1 - e(1 - t), gs = (e) => 1 - Math.sin(Math.acos(e)), za = Ua(gs), xp = Na(gs), Ha = Ut(0.33, 1.53, 0.69, 0.99), ys = Ua(Ha),
|
|
4091
|
+
const yp = Ut(0.42, 0, 1, 1), bp = Ut(0, 0, 0.58, 1), $a = Ut(0.42, 0, 0.58, 1), vp = (e) => Array.isArray(e) && typeof e[0] != "number", Na = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Ua = (e) => (t) => 1 - e(1 - t), gs = (e) => 1 - Math.sin(Math.acos(e)), za = Ua(gs), xp = Na(gs), Ha = Ut(0.33, 1.53, 0.69, 0.99), ys = Ua(Ha), Sp = Na(ys), wp = (e) => (e *= 2) < 1 ? 0.5 * ys(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), Pp = {
|
|
4092
4092
|
linear: z,
|
|
4093
4093
|
easeIn: yp,
|
|
4094
4094
|
easeInOut: $a,
|
|
@@ -4097,9 +4097,9 @@ const yp = Ut(0.42, 0, 1, 1), bp = Ut(0, 0, 0.58, 1), $a = Ut(0.42, 0, 0.58, 1),
|
|
|
4097
4097
|
circInOut: xp,
|
|
4098
4098
|
circOut: za,
|
|
4099
4099
|
backIn: ys,
|
|
4100
|
-
backInOut:
|
|
4100
|
+
backInOut: Sp,
|
|
4101
4101
|
backOut: Ha,
|
|
4102
|
-
anticipate:
|
|
4102
|
+
anticipate: wp
|
|
4103
4103
|
}, yi = (e) => {
|
|
4104
4104
|
if (Array.isArray(e)) {
|
|
4105
4105
|
ms(e.length === 4);
|
|
@@ -4185,7 +4185,7 @@ function Op(e) {
|
|
|
4185
4185
|
return isNaN(e) && $t(e) && (((t = e.match(In)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(va)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
4186
4186
|
}
|
|
4187
4187
|
const Ga = {
|
|
4188
|
-
regex:
|
|
4188
|
+
regex: Sh,
|
|
4189
4189
|
countKey: "Vars",
|
|
4190
4190
|
token: "${v}",
|
|
4191
4191
|
parse: z
|
|
@@ -4381,7 +4381,7 @@ function Cr(e, t) {
|
|
|
4381
4381
|
return e * Math.sqrt(1 - t * t);
|
|
4382
4382
|
}
|
|
4383
4383
|
const Kp = ["duration", "bounce"], Gp = ["stiffness", "damping", "mass"];
|
|
4384
|
-
function
|
|
4384
|
+
function Si(e, t) {
|
|
4385
4385
|
return t.some((n) => e[n] !== void 0);
|
|
4386
4386
|
}
|
|
4387
4387
|
function qp(e) {
|
|
@@ -4393,7 +4393,7 @@ function qp(e) {
|
|
|
4393
4393
|
isResolvedFromDuration: !1,
|
|
4394
4394
|
...e
|
|
4395
4395
|
};
|
|
4396
|
-
if (!
|
|
4396
|
+
if (!Si(e, Gp) && Si(e, Kp)) {
|
|
4397
4397
|
const n = zp(e);
|
|
4398
4398
|
t = {
|
|
4399
4399
|
...t,
|
|
@@ -4412,36 +4412,36 @@ function ic({ keyframes: e, restDelta: t, restSpeed: n, ...r }) {
|
|
|
4412
4412
|
let v;
|
|
4413
4413
|
if (p < 1) {
|
|
4414
4414
|
const y = Cr(g, p);
|
|
4415
|
-
v = (
|
|
4416
|
-
const P = Math.exp(-p * g *
|
|
4417
|
-
return o - P * ((m + p * g * h) / y * Math.sin(y *
|
|
4415
|
+
v = (w) => {
|
|
4416
|
+
const P = Math.exp(-p * g * w);
|
|
4417
|
+
return o - P * ((m + p * g * h) / y * Math.sin(y * w) + h * Math.cos(y * w));
|
|
4418
4418
|
};
|
|
4419
4419
|
} else if (p === 1)
|
|
4420
4420
|
v = (y) => o - Math.exp(-g * y) * (h + (m + g * h) * y);
|
|
4421
4421
|
else {
|
|
4422
4422
|
const y = g * Math.sqrt(p * p - 1);
|
|
4423
|
-
v = (
|
|
4424
|
-
const P = Math.exp(-p * g *
|
|
4423
|
+
v = (w) => {
|
|
4424
|
+
const P = Math.exp(-p * g * w), C = Math.min(y * w, 300);
|
|
4425
4425
|
return o - P * ((m + p * g * h) * Math.sinh(C) + y * h * Math.cosh(C)) / y;
|
|
4426
4426
|
};
|
|
4427
4427
|
}
|
|
4428
4428
|
return {
|
|
4429
4429
|
calculatedDuration: d && f || null,
|
|
4430
4430
|
next: (y) => {
|
|
4431
|
-
const
|
|
4431
|
+
const w = v(y);
|
|
4432
4432
|
if (d)
|
|
4433
4433
|
i.done = y >= f;
|
|
4434
4434
|
else {
|
|
4435
4435
|
let P = m;
|
|
4436
|
-
y !== 0 && (p < 1 ? P = sc(v, y,
|
|
4437
|
-
const C = Math.abs(P) <= n, T = Math.abs(o -
|
|
4436
|
+
y !== 0 && (p < 1 ? P = sc(v, y, w) : P = 0);
|
|
4437
|
+
const C = Math.abs(P) <= n, T = Math.abs(o - w) <= t;
|
|
4438
4438
|
i.done = C && T;
|
|
4439
4439
|
}
|
|
4440
|
-
return i.value = i.done ? o :
|
|
4440
|
+
return i.value = i.done ? o : w, i;
|
|
4441
4441
|
}
|
|
4442
4442
|
};
|
|
4443
4443
|
}
|
|
4444
|
-
function
|
|
4444
|
+
function wi({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: s = 10, bounceStiffness: o = 500, modifyTarget: i, min: a, max: c, restDelta: l = 0.5, restSpeed: f }) {
|
|
4445
4445
|
const u = e[0], d = {
|
|
4446
4446
|
done: !1,
|
|
4447
4447
|
value: u
|
|
@@ -4449,7 +4449,7 @@ function Si({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
4449
4449
|
let h = n * t;
|
|
4450
4450
|
const g = u + h, b = i === void 0 ? g : i(g);
|
|
4451
4451
|
b !== g && (h = b - u);
|
|
4452
|
-
const v = (E) => -h * Math.exp(-E / r), y = (E) => b + v(E),
|
|
4452
|
+
const v = (E) => -h * Math.exp(-E / r), y = (E) => b + v(E), w = (E) => {
|
|
4453
4453
|
const L = v(E), R = y(E);
|
|
4454
4454
|
d.done = Math.abs(L) <= l, d.value = d.done ? b : R;
|
|
4455
4455
|
};
|
|
@@ -4468,7 +4468,7 @@ function Si({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
4468
4468
|
calculatedDuration: null,
|
|
4469
4469
|
next: (E) => {
|
|
4470
4470
|
let L = !1;
|
|
4471
|
-
return !C && P === void 0 && (L = !0,
|
|
4471
|
+
return !C && P === void 0 && (L = !0, w(E), T(E)), P !== void 0 && E > P ? C.next(E - P) : (!L && w(E), d);
|
|
4472
4472
|
}
|
|
4473
4473
|
};
|
|
4474
4474
|
}
|
|
@@ -4493,8 +4493,8 @@ function Ti(e) {
|
|
|
4493
4493
|
return t >= Pi ? 1 / 0 : t;
|
|
4494
4494
|
}
|
|
4495
4495
|
const Yp = {
|
|
4496
|
-
decay:
|
|
4497
|
-
inertia:
|
|
4496
|
+
decay: wi,
|
|
4497
|
+
inertia: wi,
|
|
4498
4498
|
tween: yn,
|
|
4499
4499
|
keyframes: yn,
|
|
4500
4500
|
spring: ic
|
|
@@ -4509,8 +4509,8 @@ function bn({ autoplay: e = !0, delay: t = 0, driver: n = Xp, keyframes: r, type
|
|
|
4509
4509
|
b();
|
|
4510
4510
|
let v;
|
|
4511
4511
|
const y = Yp[s] || yn;
|
|
4512
|
-
let
|
|
4513
|
-
y !== yn && typeof r[0] != "number" && (
|
|
4512
|
+
let w;
|
|
4513
|
+
y !== yn && typeof r[0] != "number" && (w = nc([0, 100], r, {
|
|
4514
4514
|
clamp: !1
|
|
4515
4515
|
}), r = [0, 100]);
|
|
4516
4516
|
const P = y({ ...d, keyframes: r });
|
|
@@ -4539,7 +4539,7 @@ function bn({ autoplay: e = !0, delay: t = 0, driver: n = Xp, keyframes: r, type
|
|
|
4539
4539
|
!Ie && Yn >= 1 && (Ie = 1), Ie === 1 && Wt--, Wt = Math.min(Wt, o + 1), !!(Wt % 2) && (a === "reverse" ? (Ie = 1 - Ie, i && (Ie -= i / $)) : a === "mirror" && (Bs = C)), js = je(0, 1, Ie) * $;
|
|
4540
4540
|
}
|
|
4541
4541
|
const mt = Ls ? { done: !1, value: r[0] } : Bs.next(js);
|
|
4542
|
-
|
|
4542
|
+
w && (mt.value = w(mt.value));
|
|
4543
4543
|
let { done: Fs } = mt;
|
|
4544
4544
|
!Ls && W !== null && (Fs = m >= 0 ? F >= Q : F <= 0);
|
|
4545
4545
|
const ul = E === null && (T === "finished" || T === "running" && Fs);
|
|
@@ -4626,11 +4626,11 @@ function nm(e, t, { onUpdate: n, onComplete: r, ...s }) {
|
|
|
4626
4626
|
repeat: 0,
|
|
4627
4627
|
delay: 0
|
|
4628
4628
|
});
|
|
4629
|
-
let
|
|
4629
|
+
let w = { done: !1, value: u[0] };
|
|
4630
4630
|
const P = [];
|
|
4631
4631
|
let C = 0;
|
|
4632
|
-
for (; !
|
|
4633
|
-
|
|
4632
|
+
for (; !w.done && C < em; )
|
|
4633
|
+
w = y.sample(C), P.push(w.value), C += Xt;
|
|
4634
4634
|
p = void 0, u = P, d = C - Xt, m = "linear";
|
|
4635
4635
|
}
|
|
4636
4636
|
const h = dp(e.owner.current, t, u, {
|
|
@@ -4654,8 +4654,8 @@ function nm(e, t, { onUpdate: n, onComplete: r, ...s }) {
|
|
|
4654
4654
|
return h.onfinish = () => {
|
|
4655
4655
|
l || (e.set(hp(u, s)), r && r(), b());
|
|
4656
4656
|
}, {
|
|
4657
|
-
then(y,
|
|
4658
|
-
return c.then(y,
|
|
4657
|
+
then(y, w) {
|
|
4658
|
+
return c.then(y, w);
|
|
4659
4659
|
},
|
|
4660
4660
|
attachTimeline(y) {
|
|
4661
4661
|
return h.timeline = y, h.onfinish = null, z;
|
|
@@ -4684,11 +4684,11 @@ function nm(e, t, { onUpdate: n, onComplete: r, ...s }) {
|
|
|
4684
4684
|
return;
|
|
4685
4685
|
const { currentTime: y } = h;
|
|
4686
4686
|
if (y) {
|
|
4687
|
-
const
|
|
4687
|
+
const w = bn({
|
|
4688
4688
|
...s,
|
|
4689
4689
|
autoplay: !1
|
|
4690
4690
|
});
|
|
4691
|
-
e.setWithVelocity(
|
|
4691
|
+
e.setWithVelocity(w.sample(y - Xt).value, w.sample(y).value, Xt);
|
|
4692
4692
|
}
|
|
4693
4693
|
b();
|
|
4694
4694
|
},
|
|
@@ -4806,7 +4806,7 @@ function xs(e, t) {
|
|
|
4806
4806
|
}
|
|
4807
4807
|
const gm = {
|
|
4808
4808
|
skipAnimations: !1
|
|
4809
|
-
},
|
|
4809
|
+
}, Ss = (e, t, n, r = {}) => (s) => {
|
|
4810
4810
|
const o = xs(r, e) || {}, i = o.delay || r.delay || 0;
|
|
4811
4811
|
let { elapsed: a = 0 } = r;
|
|
4812
4812
|
a = a - Le(i);
|
|
@@ -4851,7 +4851,7 @@ function vn(e) {
|
|
|
4851
4851
|
return !!(ne(e) && e.add);
|
|
4852
4852
|
}
|
|
4853
4853
|
const cc = (e) => /^\-?\d*\.?\d+$/.test(e);
|
|
4854
|
-
function
|
|
4854
|
+
function ws(e, t) {
|
|
4855
4855
|
e.indexOf(t) === -1 && e.push(t);
|
|
4856
4856
|
}
|
|
4857
4857
|
function Ps(e, t) {
|
|
@@ -4863,7 +4863,7 @@ class Ts {
|
|
|
4863
4863
|
this.subscriptions = [];
|
|
4864
4864
|
}
|
|
4865
4865
|
add(t) {
|
|
4866
|
-
return
|
|
4866
|
+
return ws(this.subscriptions, t), () => Ps(this.subscriptions, t);
|
|
4867
4867
|
}
|
|
4868
4868
|
notify(t, n, r) {
|
|
4869
4869
|
const s = this.subscriptions.length;
|
|
@@ -5080,8 +5080,8 @@ function at(e, t) {
|
|
|
5080
5080
|
const lc = (e) => (t) => t.test(e), vm = {
|
|
5081
5081
|
test: (e) => e === "auto",
|
|
5082
5082
|
parse: (e) => e
|
|
5083
|
-
}, uc = [We, A, ve, ke, Ch, Th, vm], bt = (e) => uc.find(lc(e)), xm = [...uc, ee, Be],
|
|
5084
|
-
function
|
|
5083
|
+
}, uc = [We, A, ve, ke, Ch, Th, vm], bt = (e) => uc.find(lc(e)), xm = [...uc, ee, Be], Sm = (e) => xm.find(lc(e));
|
|
5084
|
+
function wm(e, t, n) {
|
|
5085
5085
|
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, at(n));
|
|
5086
5086
|
}
|
|
5087
5087
|
function Pm(e, t) {
|
|
@@ -5090,7 +5090,7 @@ function Pm(e, t) {
|
|
|
5090
5090
|
o = { ...o, ...r };
|
|
5091
5091
|
for (const i in o) {
|
|
5092
5092
|
const a = $h(o[i]);
|
|
5093
|
-
|
|
5093
|
+
wm(e, i, a);
|
|
5094
5094
|
}
|
|
5095
5095
|
}
|
|
5096
5096
|
function Tm(e, t, n) {
|
|
@@ -5100,7 +5100,7 @@ function Tm(e, t, n) {
|
|
|
5100
5100
|
for (let a = 0; a < i; a++) {
|
|
5101
5101
|
const c = o[a], l = t[c];
|
|
5102
5102
|
let f = null;
|
|
5103
|
-
Array.isArray(l) && (f = l[0]), f === null && (f = (s = (r = n[c]) !== null && r !== void 0 ? r : e.readValue(c)) !== null && s !== void 0 ? s : t[c]), f != null && (typeof f == "string" && (cc(f) || ac(f)) ? f = parseFloat(f) : !
|
|
5103
|
+
Array.isArray(l) && (f = l[0]), f === null && (f = (s = (r = n[c]) !== null && r !== void 0 ? r : e.readValue(c)) !== null && s !== void 0 ? s : t[c]), f != null && (typeof f == "string" && (cc(f) || ac(f)) ? f = parseFloat(f) : !Sm(f) && Be.test(l) && (f = oc(c, l)), e.addValue(c, at(f, { owner: e })), n[c] === void 0 && (n[c] = f), f !== null && e.setBaseTarget(c, f));
|
|
5104
5104
|
}
|
|
5105
5105
|
}
|
|
5106
5106
|
function Cm(e, t) {
|
|
@@ -5156,7 +5156,7 @@ function fc(e, t, { delay: n = 0, transitionOverride: r, type: s } = {}) {
|
|
|
5156
5156
|
let h = !p.isHandoff && !Em(d, m);
|
|
5157
5157
|
if (p.type === "spring" && (d.getVelocity() || p.velocity) && (h = !1), d.animation && (h = !1), h)
|
|
5158
5158
|
continue;
|
|
5159
|
-
d.start(
|
|
5159
|
+
d.start(Ss(u, d, m, e.shouldReduceMotion && He.has(u) ? { type: !1 } : p));
|
|
5160
5160
|
const g = d.animation;
|
|
5161
5161
|
vn(c) && (c.add(u), g.then(() => c.remove(u))), l.push(g);
|
|
5162
5162
|
}
|
|
@@ -5227,18 +5227,18 @@ function jm(e) {
|
|
|
5227
5227
|
const f = e.getProps(), u = e.getVariantContext(!0) || {}, d = [], m = /* @__PURE__ */ new Set();
|
|
5228
5228
|
let p = {}, h = 1 / 0;
|
|
5229
5229
|
for (let b = 0; b < Dm; b++) {
|
|
5230
|
-
const v = Mm[b], y = n[v],
|
|
5230
|
+
const v = Mm[b], y = n[v], w = f[v] !== void 0 ? f[v] : u[v], P = Vt(w), C = v === l ? y.isActive : null;
|
|
5231
5231
|
C === !1 && (h = b);
|
|
5232
|
-
let T =
|
|
5232
|
+
let T = w === u[v] && w !== f[v] && P;
|
|
5233
5233
|
if (T && r && e.manuallyAnimateOnMount && (T = !1), y.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
5234
5234
|
!y.isActive && C === null || // If we didn't and don't have any defined prop for this animation type
|
|
5235
|
-
!
|
|
5236
|
-
Bn(
|
|
5235
|
+
!w && !y.prevProp || // Or if the prop doesn't define an animation
|
|
5236
|
+
Bn(w) || typeof w == "boolean")
|
|
5237
5237
|
continue;
|
|
5238
|
-
let L = Bm(y.prevProp,
|
|
5238
|
+
let L = Bm(y.prevProp, w) || // If we're making this variant active, we want to always make it active
|
|
5239
5239
|
v === l && y.isActive && !T && P || // If we removed a higher-priority variant (i is in reverse order)
|
|
5240
5240
|
b > h && P, R = !1;
|
|
5241
|
-
const W = Array.isArray(
|
|
5241
|
+
const W = Array.isArray(w) ? w : [w];
|
|
5242
5242
|
let $ = W.reduce(s, {});
|
|
5243
5243
|
C === !1 && ($ = {});
|
|
5244
5244
|
const { prevResolvedValues: Q = {} } = y, F = {
|
|
@@ -5254,7 +5254,7 @@ function jm(e) {
|
|
|
5254
5254
|
let Ke = !1;
|
|
5255
5255
|
mn(Ee) && mn(ht) ? Ke = !La(Ee, ht) : Ke = Ee !== ht, Ke ? Ee !== void 0 ? fe(X) : m.add(X) : Ee !== void 0 && m.has(X) ? fe(X) : y.protectedKeys[X] = !0;
|
|
5256
5256
|
}
|
|
5257
|
-
y.prevProp =
|
|
5257
|
+
y.prevProp = w, y.prevResolvedValues = $, y.isActive && (p = { ...p, ...$ }), r && e.blockInitialAnimation && (L = !1), L && (!T || R) && d.push(...W.map((X) => ({
|
|
5258
5258
|
animation: X,
|
|
5259
5259
|
options: { type: v, ...c }
|
|
5260
5260
|
})));
|
|
@@ -5397,7 +5397,7 @@ class dc {
|
|
|
5397
5397
|
const i = _n(t), a = lr(i, this.transformPagePoint), { point: c } = a, { timestamp: l } = Z;
|
|
5398
5398
|
this.history = [{ ...c, timestamp: l }];
|
|
5399
5399
|
const { onSessionStart: f } = n;
|
|
5400
|
-
f && f(t, ur(a, this.history)), this.removeListeners = De(
|
|
5400
|
+
f && f(t, ur(a, this.history)), this.removeListeners = De(we(this.contextWindow, "pointermove", this.handlePointerMove), we(this.contextWindow, "pointerup", this.handlePointerUp), we(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
5401
5401
|
}
|
|
5402
5402
|
updateHandlers(t) {
|
|
5403
5403
|
this.handlers = t;
|
|
@@ -5742,7 +5742,7 @@ class ig {
|
|
|
5742
5742
|
}
|
|
5743
5743
|
startAxisValueAnimation(t, n) {
|
|
5744
5744
|
const r = this.getAxisMotionValue(t);
|
|
5745
|
-
return r.start(
|
|
5745
|
+
return r.start(Ss(t, r, 0, n));
|
|
5746
5746
|
}
|
|
5747
5747
|
stopAnimation() {
|
|
5748
5748
|
ae((t) => this.getAxisMotionValue(t).stop());
|
|
@@ -5811,7 +5811,7 @@ class ig {
|
|
|
5811
5811
|
if (!this.visualElement.current)
|
|
5812
5812
|
return;
|
|
5813
5813
|
sg.set(this.visualElement, this);
|
|
5814
|
-
const t = this.visualElement.current, n =
|
|
5814
|
+
const t = this.visualElement.current, n = we(t, "pointerdown", (c) => {
|
|
5815
5815
|
const { drag: l, dragListener: f = !0 } = this.getProps();
|
|
5816
5816
|
l && f && this.start(c);
|
|
5817
5817
|
}), r = () => {
|
|
@@ -5819,7 +5819,7 @@ class ig {
|
|
|
5819
5819
|
Ze(c) && (this.constraints = this.resolveRefConstraints());
|
|
5820
5820
|
}, { projection: s } = this.visualElement, o = s.addEventListener("measure", r);
|
|
5821
5821
|
s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), r();
|
|
5822
|
-
const i =
|
|
5822
|
+
const i = Se(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: l }) => {
|
|
5823
5823
|
this.isDragging && l && (ae((f) => {
|
|
5824
5824
|
const u = this.getAxisMotionValue(f);
|
|
5825
5825
|
u && (this.originPoint[f] += c[f].translate, u.set(u.get() + c[f].translate));
|
|
@@ -5886,7 +5886,7 @@ class cg extends Fe {
|
|
|
5886
5886
|
};
|
|
5887
5887
|
}
|
|
5888
5888
|
mount() {
|
|
5889
|
-
this.removePointerDownListener =
|
|
5889
|
+
this.removePointerDownListener = we(this.node.current, "pointerdown", (t) => this.onPointerDown(t));
|
|
5890
5890
|
}
|
|
5891
5891
|
update() {
|
|
5892
5892
|
this.session && this.session.updateHandlers(this.createPanHandlers());
|
|
@@ -5896,11 +5896,11 @@ class cg extends Fe {
|
|
|
5896
5896
|
}
|
|
5897
5897
|
}
|
|
5898
5898
|
function lg() {
|
|
5899
|
-
const e =
|
|
5899
|
+
const e = S.useContext(ss);
|
|
5900
5900
|
if (e === null)
|
|
5901
5901
|
return [!0, null];
|
|
5902
|
-
const { isPresent: t, onExitComplete: n, register: r } = e, s =
|
|
5903
|
-
return
|
|
5902
|
+
const { isPresent: t, onExitComplete: n, register: r } = e, s = S.useId();
|
|
5903
|
+
return S.useEffect(() => r(s), []), !t && n ? [!1, () => n && n(s)] : [!0];
|
|
5904
5904
|
}
|
|
5905
5905
|
const rn = {
|
|
5906
5906
|
/**
|
|
@@ -5981,8 +5981,8 @@ class fg extends Vo.Component {
|
|
|
5981
5981
|
}
|
|
5982
5982
|
}
|
|
5983
5983
|
function vc(e) {
|
|
5984
|
-
const [t, n] = lg(), r =
|
|
5985
|
-
return Vo.createElement(fg, { ...e, layoutGroup: r, switchLayoutGroup:
|
|
5984
|
+
const [t, n] = lg(), r = S.useContext(pa);
|
|
5985
|
+
return Vo.createElement(fg, { ...e, layoutGroup: r, switchLayoutGroup: S.useContext(ma), isPresent: t, safeToRemove: n });
|
|
5986
5986
|
}
|
|
5987
5987
|
const dg = {
|
|
5988
5988
|
borderRadius: {
|
|
@@ -6019,8 +6019,8 @@ function pg(e, t, n, r, s, o) {
|
|
|
6019
6019
|
function Hi(e, t) {
|
|
6020
6020
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
6021
6021
|
}
|
|
6022
|
-
const mg =
|
|
6023
|
-
function
|
|
6022
|
+
const mg = Sc(0, 0.5, za), gg = Sc(0.5, 0.95, z);
|
|
6023
|
+
function Sc(e, t, n) {
|
|
6024
6024
|
return (r) => r < e ? 0 : r > t ? 1 : n(Dt(e, t, r));
|
|
6025
6025
|
}
|
|
6026
6026
|
function Wi(e, t) {
|
|
@@ -6048,7 +6048,7 @@ function qi(e, t, n, r) {
|
|
|
6048
6048
|
function Xi(e) {
|
|
6049
6049
|
return e.translate === 0 && e.scale === 1;
|
|
6050
6050
|
}
|
|
6051
|
-
function
|
|
6051
|
+
function wc(e) {
|
|
6052
6052
|
return Xi(e.x) && Xi(e.y);
|
|
6053
6053
|
}
|
|
6054
6054
|
function xg(e, t) {
|
|
@@ -6060,12 +6060,12 @@ function Pc(e, t) {
|
|
|
6060
6060
|
function Yi(e) {
|
|
6061
6061
|
return ie(e.x) / ie(e.y);
|
|
6062
6062
|
}
|
|
6063
|
-
class
|
|
6063
|
+
class Sg {
|
|
6064
6064
|
constructor() {
|
|
6065
6065
|
this.members = [];
|
|
6066
6066
|
}
|
|
6067
6067
|
add(t) {
|
|
6068
|
-
|
|
6068
|
+
ws(this.members, t), t.scheduleRender();
|
|
6069
6069
|
}
|
|
6070
6070
|
remove(t) {
|
|
6071
6071
|
if (Ps(this.members, t), t === this.prevLead && (this.prevLead = void 0), t === this.lead) {
|
|
@@ -6124,19 +6124,19 @@ function Ji(e, t, n) {
|
|
|
6124
6124
|
const i = e.x.scale * t.x, a = e.y.scale * t.y;
|
|
6125
6125
|
return (i !== 1 || a !== 1) && (r += `scale(${i}, ${a})`), r || "none";
|
|
6126
6126
|
}
|
|
6127
|
-
const
|
|
6127
|
+
const wg = (e, t) => e.depth - t.depth;
|
|
6128
6128
|
class Pg {
|
|
6129
6129
|
constructor() {
|
|
6130
6130
|
this.children = [], this.isDirty = !1;
|
|
6131
6131
|
}
|
|
6132
6132
|
add(t) {
|
|
6133
|
-
|
|
6133
|
+
ws(this.children, t), this.isDirty = !0;
|
|
6134
6134
|
}
|
|
6135
6135
|
remove(t) {
|
|
6136
6136
|
Ps(this.children, t), this.isDirty = !0;
|
|
6137
6137
|
}
|
|
6138
6138
|
forEach(t) {
|
|
6139
|
-
this.isDirty && this.children.sort(
|
|
6139
|
+
this.isDirty && this.children.sort(wg), this.isDirty = !1, this.children.forEach(t);
|
|
6140
6140
|
}
|
|
6141
6141
|
}
|
|
6142
6142
|
function Tg(e, t) {
|
|
@@ -6154,7 +6154,7 @@ function Ag(e) {
|
|
|
6154
6154
|
}
|
|
6155
6155
|
function Rg(e, t, n) {
|
|
6156
6156
|
const r = ne(e) ? e : at(e);
|
|
6157
|
-
return r.start(
|
|
6157
|
+
return r.start(Ss("", r, t, n)), r.animation;
|
|
6158
6158
|
}
|
|
6159
6159
|
const Zi = ["", "X", "Y", "Z"], Eg = { visibility: "hidden" }, Qi = 1e3;
|
|
6160
6160
|
let Og = 0;
|
|
@@ -6209,12 +6209,12 @@ function Tc({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6209
6209
|
const h = this.options.transition || f.getDefaultTransition() || zg, { onLayoutAnimationStart: g, onLayoutAnimationComplete: b } = f.getProps(), v = !this.targetLayout || !Pc(this.targetLayout, p) || m, y = !d && m;
|
|
6210
6210
|
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || y || d && (v || !this.currentAnimation)) {
|
|
6211
6211
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(u, y);
|
|
6212
|
-
const
|
|
6212
|
+
const w = {
|
|
6213
6213
|
...xs(h, "layout"),
|
|
6214
6214
|
onPlay: g,
|
|
6215
6215
|
onComplete: b
|
|
6216
6216
|
};
|
|
6217
|
-
(f.shouldReduceMotion || this.options.layoutRoot) && (
|
|
6217
|
+
(f.shouldReduceMotion || this.options.layoutRoot) && (w.delay = 0, w.type = !1), this.startAnimation(w);
|
|
6218
6218
|
} else
|
|
6219
6219
|
d || to(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
6220
6220
|
this.targetLayout = p;
|
|
@@ -6316,7 +6316,7 @@ function Tc({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6316
6316
|
resetTransform() {
|
|
6317
6317
|
if (!s)
|
|
6318
6318
|
return;
|
|
6319
|
-
const i = this.isLayoutDirty || this.shouldResetTransform, a = this.projectionDelta && !
|
|
6319
|
+
const i = this.isLayoutDirty || this.shouldResetTransform, a = this.projectionDelta && !wc(this.projectionDelta), c = this.getTransformTemplate(), l = c ? c(this.latestValues, "") : void 0, f = l !== this.prevTransformTemplateValue;
|
|
6320
6320
|
i && (a || $e(this.latestValues) || f) && (s(this.instance, l), this.shouldResetTransform = !1, this.scheduleRender());
|
|
6321
6321
|
}
|
|
6322
6322
|
measure(i = !0) {
|
|
@@ -6464,8 +6464,8 @@ function Tc({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6464
6464
|
const d = K(), m = c ? c.source : void 0, p = this.layout ? this.layout.source : void 0, h = m !== p, g = this.getStack(), b = !g || g.members.length <= 1, v = !!(h && !b && this.options.crossfade === !0 && !this.path.some(Ug));
|
|
6465
6465
|
this.animationProgress = 0;
|
|
6466
6466
|
let y;
|
|
6467
|
-
this.mixTargetDelta = (
|
|
6468
|
-
const P =
|
|
6467
|
+
this.mixTargetDelta = (w) => {
|
|
6468
|
+
const P = w / 1e3;
|
|
6469
6469
|
no(u.x, i.x, P), no(u.y, i.y, P), this.setTargetDelta(u), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (At(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Ng(this.relativeTarget, this.relativeTargetOrigin, d, P), y && xg(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = K()), oe(y, this.relativeTarget)), h && (this.animationValues = f, pg(f, l, this.latestValues, P, v, b)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = P;
|
|
6470
6470
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
6471
6471
|
}
|
|
@@ -6505,7 +6505,7 @@ function Tc({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6505
6505
|
}
|
|
6506
6506
|
}
|
|
6507
6507
|
registerSharedNode(i, a) {
|
|
6508
|
-
this.sharedNodes.has(i) || this.sharedNodes.set(i, new
|
|
6508
|
+
this.sharedNodes.has(i) || this.sharedNodes.set(i, new Sg()), this.sharedNodes.get(i).add(a);
|
|
6509
6509
|
const l = a.options.initialPromotionConfig;
|
|
6510
6510
|
a.promote({
|
|
6511
6511
|
transition: l ? l.transition : void 0,
|
|
@@ -6583,8 +6583,8 @@ function Tc({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
6583
6583
|
const { correct: g, applyTo: b } = hn[h], v = l.transform === "none" ? d[h] : g(d[h], u);
|
|
6584
6584
|
if (b) {
|
|
6585
6585
|
const y = b.length;
|
|
6586
|
-
for (let
|
|
6587
|
-
l[b[
|
|
6586
|
+
for (let w = 0; w < y; w++)
|
|
6587
|
+
l[b[w]] = v;
|
|
6588
6588
|
} else
|
|
6589
6589
|
l[h] = v;
|
|
6590
6590
|
}
|
|
@@ -6621,7 +6621,7 @@ function Vg(e) {
|
|
|
6621
6621
|
Ct(a, r, n.layoutBox);
|
|
6622
6622
|
const c = et();
|
|
6623
6623
|
i ? Ct(c, e.applyTransform(s, !0), n.measuredBox) : Ct(c, r, n.layoutBox);
|
|
6624
|
-
const l = !
|
|
6624
|
+
const l = !wc(a);
|
|
6625
6625
|
let f = !1;
|
|
6626
6626
|
if (!e.resumeFrom) {
|
|
6627
6627
|
const u = e.getClosestProjectingParent();
|
|
@@ -6709,7 +6709,7 @@ function Cc(e, t, n) {
|
|
|
6709
6709
|
return e === "position" || e === "preserve-aspect" && !Or(Yi(t), Yi(n), 0.2);
|
|
6710
6710
|
}
|
|
6711
6711
|
const Wg = Tc({
|
|
6712
|
-
attachResizeListener: (e, t) =>
|
|
6712
|
+
attachResizeListener: (e, t) => Se(e, "resize", t),
|
|
6713
6713
|
measureScroll: () => ({
|
|
6714
6714
|
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
6715
6715
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
@@ -6759,7 +6759,7 @@ function Dr(e, t, n = 1) {
|
|
|
6759
6759
|
const i = o.trim();
|
|
6760
6760
|
return cc(i) ? parseFloat(i) : i;
|
|
6761
6761
|
} else
|
|
6762
|
-
return
|
|
6762
|
+
return wr(s) ? Dr(s, t, n + 1) : s;
|
|
6763
6763
|
}
|
|
6764
6764
|
function Xg(e, { ...t }, n) {
|
|
6765
6765
|
const r = e.current;
|
|
@@ -6767,14 +6767,14 @@ function Xg(e, { ...t }, n) {
|
|
|
6767
6767
|
return { target: t, transitionEnd: n };
|
|
6768
6768
|
n && (n = { ...n }), e.values.forEach((s) => {
|
|
6769
6769
|
const o = s.get();
|
|
6770
|
-
if (!
|
|
6770
|
+
if (!wr(o))
|
|
6771
6771
|
return;
|
|
6772
6772
|
const i = Dr(o, r);
|
|
6773
6773
|
i && s.set(i);
|
|
6774
6774
|
});
|
|
6775
6775
|
for (const s in t) {
|
|
6776
6776
|
const o = t[s];
|
|
6777
|
-
if (!
|
|
6777
|
+
if (!wr(o))
|
|
6778
6778
|
continue;
|
|
6779
6779
|
const i = Dr(o, r);
|
|
6780
6780
|
i && (t[s] = i, n || (n = {}), n[s] === void 0 && (n[s] = o));
|
|
@@ -7285,7 +7285,7 @@ function gy(e) {
|
|
|
7285
7285
|
);
|
|
7286
7286
|
}
|
|
7287
7287
|
function n(r, s) {
|
|
7288
|
-
return typeof s == "string" ? s :
|
|
7288
|
+
return typeof s == "string" ? s : Sn(s);
|
|
7289
7289
|
}
|
|
7290
7290
|
return by(t, n, null, e);
|
|
7291
7291
|
}
|
|
@@ -7317,7 +7317,7 @@ function jr(e, t, n, r) {
|
|
|
7317
7317
|
key: t && t.key || r || yy()
|
|
7318
7318
|
});
|
|
7319
7319
|
}
|
|
7320
|
-
function
|
|
7320
|
+
function Sn(e) {
|
|
7321
7321
|
let {
|
|
7322
7322
|
pathname: t = "/",
|
|
7323
7323
|
search: n = "",
|
|
@@ -7362,13 +7362,13 @@ function by(e, t, n, r) {
|
|
|
7362
7362
|
a = ze.Push;
|
|
7363
7363
|
let v = jr(h.location, g, b);
|
|
7364
7364
|
n && n(v, g), l = f() + 1;
|
|
7365
|
-
let y = po(v, l),
|
|
7365
|
+
let y = po(v, l), w = h.createHref(v);
|
|
7366
7366
|
try {
|
|
7367
|
-
i.pushState(y, "",
|
|
7367
|
+
i.pushState(y, "", w);
|
|
7368
7368
|
} catch (P) {
|
|
7369
7369
|
if (P instanceof DOMException && P.name === "DataCloneError")
|
|
7370
7370
|
throw P;
|
|
7371
|
-
s.location.assign(
|
|
7371
|
+
s.location.assign(w);
|
|
7372
7372
|
}
|
|
7373
7373
|
o && c && c({
|
|
7374
7374
|
action: a,
|
|
@@ -7380,15 +7380,15 @@ function by(e, t, n, r) {
|
|
|
7380
7380
|
a = ze.Replace;
|
|
7381
7381
|
let v = jr(h.location, g, b);
|
|
7382
7382
|
n && n(v, g), l = f();
|
|
7383
|
-
let y = po(v, l),
|
|
7384
|
-
i.replaceState(y, "",
|
|
7383
|
+
let y = po(v, l), w = h.createHref(v);
|
|
7384
|
+
i.replaceState(y, "", w), o && c && c({
|
|
7385
7385
|
action: a,
|
|
7386
7386
|
location: h.location,
|
|
7387
7387
|
delta: 0
|
|
7388
7388
|
});
|
|
7389
7389
|
}
|
|
7390
7390
|
function p(g) {
|
|
7391
|
-
let b = s.location.origin !== "null" ? s.location.origin : s.location.href, v = typeof g == "string" ? g :
|
|
7391
|
+
let b = s.location.origin !== "null" ? s.location.origin : s.location.href, v = typeof g == "string" ? g : Sn(g);
|
|
7392
7392
|
return he(b, "No window.location.(origin|href) available to create URL for href: " + v), new URL(v, b);
|
|
7393
7393
|
}
|
|
7394
7394
|
let h = {
|
|
@@ -7446,7 +7446,7 @@ function vy(e, t) {
|
|
|
7446
7446
|
} = typeof e == "string" ? Nn(e) : e;
|
|
7447
7447
|
return {
|
|
7448
7448
|
pathname: n ? n.startsWith("/") ? n : xy(n, t) : t,
|
|
7449
|
-
search:
|
|
7449
|
+
search: wy(r),
|
|
7450
7450
|
hash: Py(s)
|
|
7451
7451
|
};
|
|
7452
7452
|
}
|
|
@@ -7459,11 +7459,11 @@ function xy(e, t) {
|
|
|
7459
7459
|
function hr(e, t, n, r) {
|
|
7460
7460
|
return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + t + "` field [" + JSON.stringify(r) + "]. Please separate it out to the ") + ("`to." + n + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
|
|
7461
7461
|
}
|
|
7462
|
-
function
|
|
7462
|
+
function Sy(e) {
|
|
7463
7463
|
return e.filter((t, n) => n === 0 || t.route.path && t.route.path.length > 0);
|
|
7464
7464
|
}
|
|
7465
7465
|
function Mc(e, t) {
|
|
7466
|
-
let n =
|
|
7466
|
+
let n = Sy(e);
|
|
7467
7467
|
return t ? n.map((r, s) => s === e.length - 1 ? r.pathname : r.pathnameBase) : n.map((r) => r.pathnameBase);
|
|
7468
7468
|
}
|
|
7469
7469
|
function Dc(e, t, n, r) {
|
|
@@ -7486,7 +7486,7 @@ function Dc(e, t, n, r) {
|
|
|
7486
7486
|
let c = vy(s, a), l = i && i !== "/" && i.endsWith("/"), f = (o || i === ".") && n.endsWith("/");
|
|
7487
7487
|
return !c.pathname.endsWith("/") && (l || f) && (c.pathname += "/"), c;
|
|
7488
7488
|
}
|
|
7489
|
-
const Lc = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
7489
|
+
const Lc = (e) => e.join("/").replace(/\/\/+/g, "/"), wy = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Py = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, jc = ["post", "put", "patch", "delete"];
|
|
7490
7490
|
new Set(jc);
|
|
7491
7491
|
const Ty = ["get", ...jc];
|
|
7492
7492
|
new Set(Ty);
|
|
@@ -7500,17 +7500,17 @@ new Set(Ty);
|
|
|
7500
7500
|
*
|
|
7501
7501
|
* @license MIT
|
|
7502
7502
|
*/
|
|
7503
|
-
function
|
|
7504
|
-
return
|
|
7503
|
+
function wn() {
|
|
7504
|
+
return wn = Object.assign ? Object.assign.bind() : function(e) {
|
|
7505
7505
|
for (var t = 1; t < arguments.length; t++) {
|
|
7506
7506
|
var n = arguments[t];
|
|
7507
7507
|
for (var r in n)
|
|
7508
7508
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
7509
7509
|
}
|
|
7510
7510
|
return e;
|
|
7511
|
-
},
|
|
7511
|
+
}, wn.apply(this, arguments);
|
|
7512
7512
|
}
|
|
7513
|
-
const Bc = /* @__PURE__ */
|
|
7513
|
+
const Bc = /* @__PURE__ */ S.createContext(null), ft = /* @__PURE__ */ S.createContext(null), As = /* @__PURE__ */ S.createContext(null), Un = /* @__PURE__ */ S.createContext({
|
|
7514
7514
|
outlet: null,
|
|
7515
7515
|
matches: [],
|
|
7516
7516
|
isDataRoute: !1
|
|
@@ -7523,7 +7523,7 @@ function Cy(e, t) {
|
|
|
7523
7523
|
let {
|
|
7524
7524
|
basename: r,
|
|
7525
7525
|
navigator: s
|
|
7526
|
-
} =
|
|
7526
|
+
} = S.useContext(ft), {
|
|
7527
7527
|
hash: o,
|
|
7528
7528
|
pathname: i,
|
|
7529
7529
|
search: a
|
|
@@ -7537,34 +7537,34 @@ function Cy(e, t) {
|
|
|
7537
7537
|
});
|
|
7538
7538
|
}
|
|
7539
7539
|
function zn() {
|
|
7540
|
-
return
|
|
7540
|
+
return S.useContext(As) != null;
|
|
7541
7541
|
}
|
|
7542
7542
|
function Hn() {
|
|
7543
|
-
return zn() || he(!1),
|
|
7543
|
+
return zn() || he(!1), S.useContext(As).location;
|
|
7544
7544
|
}
|
|
7545
7545
|
function Fc(e) {
|
|
7546
|
-
|
|
7546
|
+
S.useContext(ft).static || S.useLayoutEffect(e);
|
|
7547
7547
|
}
|
|
7548
7548
|
function Ay() {
|
|
7549
7549
|
let {
|
|
7550
7550
|
isDataRoute: e
|
|
7551
|
-
} =
|
|
7551
|
+
} = S.useContext(Un);
|
|
7552
7552
|
return e ? Vy() : Ry();
|
|
7553
7553
|
}
|
|
7554
7554
|
function Ry() {
|
|
7555
7555
|
zn() || he(!1);
|
|
7556
|
-
let e =
|
|
7556
|
+
let e = S.useContext(Bc), {
|
|
7557
7557
|
basename: t,
|
|
7558
7558
|
future: n,
|
|
7559
7559
|
navigator: r
|
|
7560
|
-
} =
|
|
7560
|
+
} = S.useContext(ft), {
|
|
7561
7561
|
matches: s
|
|
7562
|
-
} =
|
|
7562
|
+
} = S.useContext(Un), {
|
|
7563
7563
|
pathname: o
|
|
7564
|
-
} = Hn(), i = JSON.stringify(Mc(s, n.v7_relativeSplatPath)), a =
|
|
7564
|
+
} = Hn(), i = JSON.stringify(Mc(s, n.v7_relativeSplatPath)), a = S.useRef(!1);
|
|
7565
7565
|
return Fc(() => {
|
|
7566
7566
|
a.current = !0;
|
|
7567
|
-
}),
|
|
7567
|
+
}), S.useCallback(function(l, f) {
|
|
7568
7568
|
if (f === void 0 && (f = {}), !a.current)
|
|
7569
7569
|
return;
|
|
7570
7570
|
if (typeof l == "number") {
|
|
@@ -7580,12 +7580,12 @@ function Ic(e, t) {
|
|
|
7580
7580
|
relative: n
|
|
7581
7581
|
} = t === void 0 ? {} : t, {
|
|
7582
7582
|
future: r
|
|
7583
|
-
} =
|
|
7583
|
+
} = S.useContext(ft), {
|
|
7584
7584
|
matches: s
|
|
7585
|
-
} =
|
|
7585
|
+
} = S.useContext(Un), {
|
|
7586
7586
|
pathname: o
|
|
7587
7587
|
} = Hn(), i = JSON.stringify(Mc(s, r.v7_relativeSplatPath));
|
|
7588
|
-
return
|
|
7588
|
+
return S.useMemo(() => Dc(e, JSON.parse(i), o, n === "path"), [e, i, o, n]);
|
|
7589
7589
|
}
|
|
7590
7590
|
var _c = /* @__PURE__ */ function(e) {
|
|
7591
7591
|
return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
|
|
@@ -7593,11 +7593,11 @@ var _c = /* @__PURE__ */ function(e) {
|
|
|
7593
7593
|
return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
|
|
7594
7594
|
}($c || {});
|
|
7595
7595
|
function Ey(e) {
|
|
7596
|
-
let t =
|
|
7596
|
+
let t = S.useContext(Bc);
|
|
7597
7597
|
return t || he(!1), t;
|
|
7598
7598
|
}
|
|
7599
7599
|
function Oy(e) {
|
|
7600
|
-
let t =
|
|
7600
|
+
let t = S.useContext(Un);
|
|
7601
7601
|
return t || he(!1), t;
|
|
7602
7602
|
}
|
|
7603
7603
|
function ky(e) {
|
|
@@ -7607,11 +7607,11 @@ function ky(e) {
|
|
|
7607
7607
|
function Vy() {
|
|
7608
7608
|
let {
|
|
7609
7609
|
router: e
|
|
7610
|
-
} = Ey(_c.UseNavigateStable), t = ky($c.UseNavigateStable), n =
|
|
7610
|
+
} = Ey(_c.UseNavigateStable), t = ky($c.UseNavigateStable), n = S.useRef(!1);
|
|
7611
7611
|
return Fc(() => {
|
|
7612
7612
|
n.current = !0;
|
|
7613
|
-
}),
|
|
7614
|
-
o === void 0 && (o = {}), n.current && (typeof s == "number" ? e.navigate(s) : e.navigate(s,
|
|
7613
|
+
}), S.useCallback(function(s, o) {
|
|
7614
|
+
o === void 0 && (o = {}), n.current && (typeof s == "number" ? e.navigate(s) : e.navigate(s, wn({
|
|
7615
7615
|
fromRouteId: t
|
|
7616
7616
|
}, o)));
|
|
7617
7617
|
}, [e, t]);
|
|
@@ -7627,11 +7627,11 @@ function My(e) {
|
|
|
7627
7627
|
future: a
|
|
7628
7628
|
} = e;
|
|
7629
7629
|
zn() && he(!1);
|
|
7630
|
-
let c = t.replace(/^\/*/, "/"), l =
|
|
7630
|
+
let c = t.replace(/^\/*/, "/"), l = S.useMemo(() => ({
|
|
7631
7631
|
basename: c,
|
|
7632
7632
|
navigator: o,
|
|
7633
7633
|
static: i,
|
|
7634
|
-
future:
|
|
7634
|
+
future: wn({
|
|
7635
7635
|
v7_relativeSplatPath: !1
|
|
7636
7636
|
}, a)
|
|
7637
7637
|
}), [c, a, o, i]);
|
|
@@ -7642,7 +7642,7 @@ function My(e) {
|
|
|
7642
7642
|
hash: d = "",
|
|
7643
7643
|
state: m = null,
|
|
7644
7644
|
key: p = "default"
|
|
7645
|
-
} = r, h =
|
|
7645
|
+
} = r, h = S.useMemo(() => {
|
|
7646
7646
|
let g = Vc(f, c);
|
|
7647
7647
|
return g == null ? null : {
|
|
7648
7648
|
location: {
|
|
@@ -7655,9 +7655,9 @@ function My(e) {
|
|
|
7655
7655
|
navigationType: s
|
|
7656
7656
|
};
|
|
7657
7657
|
}, [c, f, u, d, m, p, s]);
|
|
7658
|
-
return h == null ? null : /* @__PURE__ */
|
|
7658
|
+
return h == null ? null : /* @__PURE__ */ S.createElement(ft.Provider, {
|
|
7659
7659
|
value: l
|
|
7660
|
-
}, /* @__PURE__ */
|
|
7660
|
+
}, /* @__PURE__ */ S.createElement(As.Provider, {
|
|
7661
7661
|
children: n,
|
|
7662
7662
|
value: h
|
|
7663
7663
|
}));
|
|
@@ -7707,20 +7707,20 @@ function Iy(e) {
|
|
|
7707
7707
|
children: n,
|
|
7708
7708
|
future: r,
|
|
7709
7709
|
window: s
|
|
7710
|
-
} = e, o =
|
|
7710
|
+
} = e, o = S.useRef();
|
|
7711
7711
|
o.current == null && (o.current = gy({
|
|
7712
7712
|
window: s,
|
|
7713
7713
|
v5Compat: !0
|
|
7714
7714
|
}));
|
|
7715
|
-
let i = o.current, [a, c] =
|
|
7715
|
+
let i = o.current, [a, c] = S.useState({
|
|
7716
7716
|
action: i.action,
|
|
7717
7717
|
location: i.location
|
|
7718
7718
|
}), {
|
|
7719
7719
|
v7_startTransition: l
|
|
7720
|
-
} = r || {}, f =
|
|
7720
|
+
} = r || {}, f = S.useCallback((u) => {
|
|
7721
7721
|
l && go ? go(() => c(u)) : c(u);
|
|
7722
7722
|
}, [c, l]);
|
|
7723
|
-
return
|
|
7723
|
+
return S.useLayoutEffect(() => i.listen(f), [i, f]), /* @__PURE__ */ S.createElement(My, {
|
|
7724
7724
|
basename: t,
|
|
7725
7725
|
children: n,
|
|
7726
7726
|
location: a.location,
|
|
@@ -7729,7 +7729,7 @@ function Iy(e) {
|
|
|
7729
7729
|
future: r
|
|
7730
7730
|
});
|
|
7731
7731
|
}
|
|
7732
|
-
const _y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", $y = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ny = /* @__PURE__ */
|
|
7732
|
+
const _y = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", $y = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ny = /* @__PURE__ */ S.forwardRef(function(t, n) {
|
|
7733
7733
|
let {
|
|
7734
7734
|
onClick: r,
|
|
7735
7735
|
relative: s,
|
|
@@ -7742,11 +7742,11 @@ const _y = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
7742
7742
|
unstable_viewTransition: u
|
|
7743
7743
|
} = t, d = Dy(t, By), {
|
|
7744
7744
|
basename: m
|
|
7745
|
-
} =
|
|
7745
|
+
} = S.useContext(ft), p, h = !1;
|
|
7746
7746
|
if (typeof l == "string" && $y.test(l) && (p = l, _y))
|
|
7747
7747
|
try {
|
|
7748
|
-
let y = new URL(window.location.href),
|
|
7749
|
-
|
|
7748
|
+
let y = new URL(window.location.href), w = l.startsWith("//") ? new URL(y.protocol + l) : new URL(l), P = Vc(w.pathname, m);
|
|
7749
|
+
w.origin === y.origin && P != null ? l = P + w.search + w.hash : h = !0;
|
|
7750
7750
|
} catch {
|
|
7751
7751
|
}
|
|
7752
7752
|
let g = Cy(l, {
|
|
@@ -7764,7 +7764,7 @@ const _y = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
7764
7764
|
}
|
|
7765
7765
|
return (
|
|
7766
7766
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
7767
|
-
/* @__PURE__ */
|
|
7767
|
+
/* @__PURE__ */ S.createElement("a", Br({}, d, {
|
|
7768
7768
|
href: p || g,
|
|
7769
7769
|
onClick: h || o ? r : v,
|
|
7770
7770
|
ref: n,
|
|
@@ -7791,10 +7791,10 @@ function Uy(e, t) {
|
|
|
7791
7791
|
} = t === void 0 ? {} : t, c = Ay(), l = Hn(), f = Ic(e, {
|
|
7792
7792
|
relative: i
|
|
7793
7793
|
});
|
|
7794
|
-
return
|
|
7794
|
+
return S.useCallback((u) => {
|
|
7795
7795
|
if (jy(u, n)) {
|
|
7796
7796
|
u.preventDefault();
|
|
7797
|
-
let d = r !== void 0 ? r :
|
|
7797
|
+
let d = r !== void 0 ? r : Sn(l) === Sn(f);
|
|
7798
7798
|
c(e, {
|
|
7799
7799
|
replace: d,
|
|
7800
7800
|
state: s,
|
|
@@ -7984,10 +7984,10 @@ const r0 = (e, t, n, { allOwnKeys: r } = {}) => (zt(t, (s, o) => {
|
|
|
7984
7984
|
};
|
|
7985
7985
|
return dt(e) ? r(e) : r(String(e).split(t)), n;
|
|
7986
7986
|
}, y0 = () => {
|
|
7987
|
-
}, b0 = (e, t) => (e = +e, Number.isFinite(e) ? e : t), pr = "abcdefghijklmnopqrstuvwxyz",
|
|
7988
|
-
DIGIT:
|
|
7987
|
+
}, b0 = (e, t) => (e = +e, Number.isFinite(e) ? e : t), pr = "abcdefghijklmnopqrstuvwxyz", So = "0123456789", Xc = {
|
|
7988
|
+
DIGIT: So,
|
|
7989
7989
|
ALPHA: pr,
|
|
7990
|
-
ALPHA_DIGIT: pr + pr.toUpperCase() +
|
|
7990
|
+
ALPHA_DIGIT: pr + pr.toUpperCase() + So
|
|
7991
7991
|
}, v0 = (e = 16, t = Xc.ALPHA_DIGIT) => {
|
|
7992
7992
|
let n = "";
|
|
7993
7993
|
const { length: r } = t;
|
|
@@ -7998,7 +7998,7 @@ const r0 = (e, t, n, { allOwnKeys: r } = {}) => (zt(t, (s, o) => {
|
|
|
7998
7998
|
function x0(e) {
|
|
7999
7999
|
return !!(e && le(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
8000
8000
|
}
|
|
8001
|
-
const
|
|
8001
|
+
const S0 = (e) => {
|
|
8002
8002
|
const t = new Array(10), n = (r, s) => {
|
|
8003
8003
|
if (Gn(r)) {
|
|
8004
8004
|
if (t.indexOf(r) >= 0)
|
|
@@ -8015,7 +8015,7 @@ const w0 = (e) => {
|
|
|
8015
8015
|
return r;
|
|
8016
8016
|
};
|
|
8017
8017
|
return n(e, 0);
|
|
8018
|
-
},
|
|
8018
|
+
}, w0 = xe("AsyncFunction"), P0 = (e) => e && (Gn(e) || le(e)) && le(e.then) && le(e.catch), x = {
|
|
8019
8019
|
isArray: dt,
|
|
8020
8020
|
isArrayBuffer: zc,
|
|
8021
8021
|
isBuffer: Wy,
|
|
@@ -8065,8 +8065,8 @@ const w0 = (e) => {
|
|
|
8065
8065
|
ALPHABET: Xc,
|
|
8066
8066
|
generateString: v0,
|
|
8067
8067
|
isSpecCompliantForm: x0,
|
|
8068
|
-
toJSONObject:
|
|
8069
|
-
isAsyncFn:
|
|
8068
|
+
toJSONObject: S0,
|
|
8069
|
+
isAsyncFn: w0,
|
|
8070
8070
|
isThenable: P0
|
|
8071
8071
|
};
|
|
8072
8072
|
function k(e, t, n, r, s) {
|
|
@@ -8126,7 +8126,7 @@ function Ir(e) {
|
|
|
8126
8126
|
function Zc(e) {
|
|
8127
8127
|
return x.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
8128
8128
|
}
|
|
8129
|
-
function
|
|
8129
|
+
function wo(e, t, n) {
|
|
8130
8130
|
return e ? e.concat(t).map(function(s, o) {
|
|
8131
8131
|
return s = Zc(s), !n && o ? "[" + s + "]" : s;
|
|
8132
8132
|
}).join(n ? "." : "") : t;
|
|
@@ -8165,15 +8165,15 @@ function qn(e, t, n) {
|
|
|
8165
8165
|
if (x.endsWith(h, "{}"))
|
|
8166
8166
|
h = r ? h : h.slice(0, -2), p = JSON.stringify(p);
|
|
8167
8167
|
else if (x.isArray(p) && C0(p) || (x.isFileList(p) || x.endsWith(h, "[]")) && (b = x.toArray(p)))
|
|
8168
|
-
return h = Zc(h), b.forEach(function(y,
|
|
8168
|
+
return h = Zc(h), b.forEach(function(y, w) {
|
|
8169
8169
|
!(x.isUndefined(y) || y === null) && t.append(
|
|
8170
8170
|
// eslint-disable-next-line no-nested-ternary
|
|
8171
|
-
i === !0 ?
|
|
8171
|
+
i === !0 ? wo([h], w, o) : i === null ? h : h + "[]",
|
|
8172
8172
|
l(y)
|
|
8173
8173
|
);
|
|
8174
8174
|
}), !1;
|
|
8175
8175
|
}
|
|
8176
|
-
return Ir(p) ? !0 : (t.append(
|
|
8176
|
+
return Ir(p) ? !0 : (t.append(wo(g, h, o), l(p)), !1);
|
|
8177
8177
|
}
|
|
8178
8178
|
const u = [], d = Object.assign(A0, {
|
|
8179
8179
|
defaultVisitor: f,
|
|
@@ -9286,7 +9286,7 @@ function lb(e) {
|
|
|
9286
9286
|
console.log("baseUrl:", t);
|
|
9287
9287
|
const r = Hn();
|
|
9288
9288
|
console.log("location:", r);
|
|
9289
|
-
const [s, o] =
|
|
9289
|
+
const [s, o] = S.useState([]), [i, a] = S.useState(!0), c = (Nc(s, r.pathname) || []).filter((v) => v.parentKey !== 0), [l, f] = S.useState({}), u = (v) => {
|
|
9290
9290
|
f({
|
|
9291
9291
|
...l,
|
|
9292
9292
|
[v]: !l[v]
|
|
@@ -9296,17 +9296,17 @@ function lb(e) {
|
|
|
9296
9296
|
const d = () => {
|
|
9297
9297
|
a(!i);
|
|
9298
9298
|
};
|
|
9299
|
-
|
|
9299
|
+
S.useEffect(() => {
|
|
9300
9300
|
(async () => {
|
|
9301
|
-
const y = t + (n || "/global-menu-config/api/v1/menu-items"),
|
|
9301
|
+
const y = t + (n || "/global-menu-config/api/v1/menu-items"), w = await ab.get(y, {
|
|
9302
9302
|
withCredentials: !0
|
|
9303
9303
|
}).then((C) => C.data), P = {};
|
|
9304
|
-
|
|
9304
|
+
w.forEach((C) => {
|
|
9305
9305
|
C.children && (P[C.id] = !0);
|
|
9306
|
-
}), f(P), o(
|
|
9306
|
+
}), f(P), o(w.map((C) => ({ ...C, parentKey: 0 })));
|
|
9307
9307
|
})();
|
|
9308
9308
|
}, [t, n]);
|
|
9309
|
-
const [m, p] =
|
|
9309
|
+
const [m, p] = S.useState(!1), h = () => {
|
|
9310
9310
|
window.location.href = `${t}/authentication/logout?callbackUrl=${window.location.origin}`;
|
|
9311
9311
|
}, g = i ? "collapsed" : "expanded", b = (v) => `${v} ${g}`;
|
|
9312
9312
|
return /* @__PURE__ */ V.jsxs(
|
|
@@ -9325,14 +9325,14 @@ function lb(e) {
|
|
|
9325
9325
|
id: "menu-items",
|
|
9326
9326
|
className: "mt-6 overflow-y-auto overflow-x-hidden flex-1",
|
|
9327
9327
|
children: s.map((v) => {
|
|
9328
|
-
const y = (
|
|
9328
|
+
const y = (w) => c.some((P) => P.id === w);
|
|
9329
9329
|
return /* @__PURE__ */ V.jsx(
|
|
9330
9330
|
ll,
|
|
9331
9331
|
{
|
|
9332
9332
|
item: v,
|
|
9333
9333
|
isActive: y,
|
|
9334
9334
|
isCollapsed: i,
|
|
9335
|
-
expanded: (
|
|
9335
|
+
expanded: (w) => l[w],
|
|
9336
9336
|
toggleExpand: u
|
|
9337
9337
|
},
|
|
9338
9338
|
v.id
|
|
@@ -9367,14 +9367,14 @@ function lb(e) {
|
|
|
9367
9367
|
}
|
|
9368
9368
|
function ll({ item: e, level: t = 0, ...n }) {
|
|
9369
9369
|
var g;
|
|
9370
|
-
const { isActive: r, isCollapsed: s, expanded: o, toggleExpand: i } = n, a = `level-${t}`, c = s ? "collapsed" : "expanded", l = r(e.id) ? "active" : "", f = (b, v = a) => `${b} ${v} ${c} ${l}`, u = !!((g = e.children) != null && g.length), [d, m] =
|
|
9370
|
+
const { isActive: r, isCollapsed: s, expanded: o, toggleExpand: i } = n, a = `level-${t}`, c = s ? "collapsed" : "expanded", l = r(e.id) ? "active" : "", f = (b, v = a) => `${b} ${v} ${c} ${l}`, u = !!((g = e.children) != null && g.length), [d, m] = S.useState(!1), p = S.useRef();
|
|
9371
9371
|
function h(b) {
|
|
9372
9372
|
var P;
|
|
9373
|
-
const { level: v, hovered: y, parentRef:
|
|
9373
|
+
const { level: v, hovered: y, parentRef: w } = b;
|
|
9374
9374
|
return !u || s && v >= 2 && !y ? null : /* @__PURE__ */ V.jsx(
|
|
9375
9375
|
ub,
|
|
9376
9376
|
{
|
|
9377
|
-
parentRef:
|
|
9377
|
+
parentRef: w,
|
|
9378
9378
|
onlyChild: !s || s && v < 2,
|
|
9379
9379
|
children: /* @__PURE__ */ V.jsx(
|
|
9380
9380
|
Cs.div,
|
|
@@ -9385,7 +9385,7 @@ function ll({ item: e, level: t = 0, ...n }) {
|
|
|
9385
9385
|
height: s || o(e.id) ? "auto" : 0
|
|
9386
9386
|
},
|
|
9387
9387
|
transition: { duration: 0.2 },
|
|
9388
|
-
children: (P = e.children) == null ? void 0 : P.map((C) => /* @__PURE__ */
|
|
9388
|
+
children: (P = e.children) == null ? void 0 : P.map((C) => /* @__PURE__ */ S.createElement(ll, { ...n, key: C.id, item: C, level: v }))
|
|
9389
9389
|
},
|
|
9390
9390
|
+s
|
|
9391
9391
|
)
|
|
@@ -9444,8 +9444,8 @@ function ll({ item: e, level: t = 0, ...n }) {
|
|
|
9444
9444
|
);
|
|
9445
9445
|
}
|
|
9446
9446
|
function ub(e) {
|
|
9447
|
-
const { children: t, parentRef: n, onlyChild: r } = e, [s, o] =
|
|
9448
|
-
return
|
|
9447
|
+
const { children: t, parentRef: n, onlyChild: r } = e, [s, o] = S.useState({ top: 0, left: 0 });
|
|
9448
|
+
return S.useLayoutEffect(() => {
|
|
9449
9449
|
if (n.current) {
|
|
9450
9450
|
const i = n.current.getBoundingClientRect();
|
|
9451
9451
|
o({
|
|
@@ -9469,7 +9469,6 @@ function ub(e) {
|
|
|
9469
9469
|
);
|
|
9470
9470
|
}
|
|
9471
9471
|
const fb = pl(cb, {
|
|
9472
|
-
shadow: "open",
|
|
9473
9472
|
props: {
|
|
9474
9473
|
baseUrl: "string",
|
|
9475
9474
|
menuPath: "string"
|