react-lib-tools 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -3
- package/dist/{GettingStartedRoute-DmHalwMP.js → GettingStartedRoute-BqKgSm4z.js} +2 -2
- package/dist/{GettingStartedRoute-DmHalwMP.js.map → GettingStartedRoute-BqKgSm4z.js.map} +1 -1
- package/dist/{GettingStartedRoute-LGDNviy5.cjs → GettingStartedRoute-DSaANTOy.cjs} +2 -2
- package/dist/{GettingStartedRoute-LGDNviy5.cjs.map → GettingStartedRoute-DSaANTOy.cjs.map} +1 -1
- package/dist/{PageNotFound-DuD7brn5.js → PageNotFound-BOtcH9tJ.js} +2 -2
- package/dist/{PageNotFound-DuD7brn5.js.map → PageNotFound-BOtcH9tJ.js.map} +1 -1
- package/dist/{PageNotFound-DIt5wQ4x.cjs → PageNotFound-BPGCzBKX.cjs} +2 -2
- package/dist/{PageNotFound-DIt5wQ4x.cjs.map → PageNotFound-BPGCzBKX.cjs.map} +1 -1
- package/dist/{SupportRoute-B9n9OCoW.js → SupportRoute-D2h0cvHw.js} +2 -2
- package/dist/{SupportRoute-B9n9OCoW.js.map → SupportRoute-D2h0cvHw.js.map} +1 -1
- package/dist/{SupportRoute-DWEe-0A7.cjs → SupportRoute-DPwM7VJl.cjs} +2 -2
- package/dist/{SupportRoute-DWEe-0A7.cjs.map → SupportRoute-DPwM7VJl.cjs.map} +1 -1
- package/dist/{VersionsRoute-Br6RZivR.cjs → VersionsRoute-DTaE8zr5.cjs} +2 -2
- package/dist/{VersionsRoute-Br6RZivR.cjs.map → VersionsRoute-DTaE8zr5.cjs.map} +1 -1
- package/dist/{VersionsRoute-DOa8Yrmb.js → VersionsRoute-UBlVDqMh.js} +2 -2
- package/dist/{VersionsRoute-DOa8Yrmb.js.map → VersionsRoute-UBlVDqMh.js.map} +1 -1
- package/dist/{index-DleNtYr0.cjs → index-BFh5cQOB.cjs} +2 -2
- package/dist/index-BFh5cQOB.cjs.map +1 -0
- package/dist/{index-D1Hn63kY.js → index-Bh6LXsao.js} +412 -400
- package/dist/index-Bh6LXsao.js.map +1 -0
- package/dist/react-lib-tools.cjs +1 -1
- package/dist/react-lib-tools.d.ts +4 -3
- package/dist/react-lib-tools.js +1 -1
- package/package.json +7 -2
- package/scripts/compress-og-image.ts +38 -0
- package/dist/index-D1Hn63kY.js.map +0 -1
- package/dist/index-DleNtYr0.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as E, jsxs as
|
|
2
|
+
import { jsx as E, jsxs as q, Fragment as ft } from "react/jsx-runtime";
|
|
3
3
|
import * as h from "react";
|
|
4
|
-
import L, { createContext as ne, Component as da, createElement as er, useRef as I, useCallback as
|
|
4
|
+
import L, { createContext as ne, Component as da, createElement as er, useRef as I, useCallback as K, useEffect as oe, useState as X, useMemo as le, useLayoutEffect as gn, useContext as Y, forwardRef as fa, Fragment as Ne, isValidElement as yr, cloneElement as Xo, useId as je, useSyncExternalStore as pa, useReducer as ma, useTransition as ha, lazy as Wt } from "react";
|
|
5
5
|
import * as ln from "react-dom";
|
|
6
6
|
import { flushSync as an, createPortal as Jo } from "react-dom";
|
|
7
7
|
function ga({
|
|
@@ -162,7 +162,7 @@ function Ca({
|
|
|
162
162
|
}));
|
|
163
163
|
}
|
|
164
164
|
const Ra = /* @__PURE__ */ h.forwardRef(Ca);
|
|
165
|
-
function
|
|
165
|
+
function Oa({
|
|
166
166
|
title: e,
|
|
167
167
|
titleId: t,
|
|
168
168
|
...n
|
|
@@ -183,7 +183,7 @@ function Ta({
|
|
|
183
183
|
clipRule: "evenodd"
|
|
184
184
|
}));
|
|
185
185
|
}
|
|
186
|
-
const
|
|
186
|
+
const Ta = /* @__PURE__ */ h.forwardRef(Oa);
|
|
187
187
|
function Pa({
|
|
188
188
|
title: e,
|
|
189
189
|
titleId: t,
|
|
@@ -230,7 +230,7 @@ function J(e, t) {
|
|
|
230
230
|
if (e === !1 || e === null || typeof e > "u")
|
|
231
231
|
throw new Error(t);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Oe(e, t) {
|
|
234
234
|
if (!e) {
|
|
235
235
|
typeof console < "u" && console.warn(t);
|
|
236
236
|
try {
|
|
@@ -254,7 +254,7 @@ function tr(e, t, n = null, r) {
|
|
|
254
254
|
pathname: typeof e == "string" ? e : e.pathname,
|
|
255
255
|
search: "",
|
|
256
256
|
hash: "",
|
|
257
|
-
...typeof t == "string" ?
|
|
257
|
+
...typeof t == "string" ? ht(t) : t,
|
|
258
258
|
state: n,
|
|
259
259
|
// TODO: This could be cleaned up. push/replace should probably just take
|
|
260
260
|
// full Locations now and avoid the need to run through this flow at all
|
|
@@ -270,7 +270,7 @@ function Tt({
|
|
|
270
270
|
}) {
|
|
271
271
|
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function ht(e) {
|
|
274
274
|
let t = {};
|
|
275
275
|
if (e) {
|
|
276
276
|
let n = e.indexOf("#");
|
|
@@ -359,7 +359,7 @@ function ti(e, t, n = "/") {
|
|
|
359
359
|
return Ia(e, t, n, !1);
|
|
360
360
|
}
|
|
361
361
|
function Ia(e, t, n, r) {
|
|
362
|
-
let o = typeof t == "string" ?
|
|
362
|
+
let o = typeof t == "string" ? ht(t) : t, i = He(o.pathname || "/", n);
|
|
363
363
|
if (i == null)
|
|
364
364
|
return null;
|
|
365
365
|
let l = ni(e);
|
|
@@ -464,11 +464,11 @@ function Ua(e, t) {
|
|
|
464
464
|
function Ga(e, t, n = !1) {
|
|
465
465
|
let { routesMeta: r } = e, o = {}, i = "/", l = [];
|
|
466
466
|
for (let a = 0; a < r.length; ++a) {
|
|
467
|
-
let s = r[a], c = a === r.length - 1, u = i === "/" ? t : t.slice(i.length) || "/", d =
|
|
467
|
+
let s = r[a], c = a === r.length - 1, u = i === "/" ? t : t.slice(i.length) || "/", d = Pt(
|
|
468
468
|
{ path: s.relativePath, caseSensitive: s.caseSensitive, end: c },
|
|
469
469
|
u
|
|
470
470
|
), p = s.route;
|
|
471
|
-
if (!d && c && n && !r[r.length - 1].route.index && (d =
|
|
471
|
+
if (!d && c && n && !r[r.length - 1].route.index && (d = Pt(
|
|
472
472
|
{
|
|
473
473
|
path: s.relativePath,
|
|
474
474
|
caseSensitive: s.caseSensitive,
|
|
@@ -489,7 +489,7 @@ function Ga(e, t, n = !1) {
|
|
|
489
489
|
}
|
|
490
490
|
return l;
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function Pt(e, t) {
|
|
493
493
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
494
494
|
let [n, r] = qa(
|
|
495
495
|
e.path,
|
|
@@ -516,7 +516,7 @@ function Ot(e, t) {
|
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
518
|
function qa(e, t = !1, n = !0) {
|
|
519
|
-
|
|
519
|
+
Oe(
|
|
520
520
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
521
521
|
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
522
522
|
);
|
|
@@ -530,7 +530,7 @@ function oi(e) {
|
|
|
530
530
|
try {
|
|
531
531
|
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
532
532
|
} catch (t) {
|
|
533
|
-
return
|
|
533
|
+
return Oe(
|
|
534
534
|
!1,
|
|
535
535
|
`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`
|
|
536
536
|
), e;
|
|
@@ -549,14 +549,14 @@ function Za(e, t = "/") {
|
|
|
549
549
|
pathname: n,
|
|
550
550
|
search: r = "",
|
|
551
551
|
hash: o = ""
|
|
552
|
-
} = typeof e == "string" ?
|
|
552
|
+
} = typeof e == "string" ? ht(e) : e, i;
|
|
553
553
|
if (n)
|
|
554
554
|
if (Ya(n))
|
|
555
555
|
i = n;
|
|
556
556
|
else {
|
|
557
557
|
if (n.includes("//")) {
|
|
558
558
|
let l = n;
|
|
559
|
-
n = n.replace(/\/\/+/g, "/"),
|
|
559
|
+
n = n.replace(/\/\/+/g, "/"), Oe(
|
|
560
560
|
!1,
|
|
561
561
|
`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${n}`
|
|
562
562
|
);
|
|
@@ -595,7 +595,7 @@ function ii(e) {
|
|
|
595
595
|
}
|
|
596
596
|
function li(e, t, n, r = !1) {
|
|
597
597
|
let o;
|
|
598
|
-
typeof e == "string" ? o =
|
|
598
|
+
typeof e == "string" ? o = ht(e) : (o = { ...e }, J(
|
|
599
599
|
!o.pathname || !o.pathname.includes("?"),
|
|
600
600
|
In("?", "pathname", "search", o)
|
|
601
601
|
), J(
|
|
@@ -643,8 +643,8 @@ var rs = [
|
|
|
643
643
|
...ai
|
|
644
644
|
];
|
|
645
645
|
new Set(rs);
|
|
646
|
-
var
|
|
647
|
-
|
|
646
|
+
var gt = h.createContext(null);
|
|
647
|
+
gt.displayName = "DataRouter";
|
|
648
648
|
var vn = h.createContext(null);
|
|
649
649
|
vn.displayName = "DataRouterState";
|
|
650
650
|
h.createContext(!1);
|
|
@@ -676,7 +676,7 @@ var xr = h.createContext(null);
|
|
|
676
676
|
xr.displayName = "RouteError";
|
|
677
677
|
function ls(e, { relative: t } = {}) {
|
|
678
678
|
J(
|
|
679
|
-
|
|
679
|
+
vt(),
|
|
680
680
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
681
681
|
// router loaded. We can help them understand how to avoid that.
|
|
682
682
|
"useHref() may be used only in the context of a <Router> component."
|
|
@@ -684,12 +684,12 @@ function ls(e, { relative: t } = {}) {
|
|
|
684
684
|
let { basename: n, navigator: r } = h.useContext(Pe), { hash: o, pathname: i, search: l } = It(e, { relative: t }), a = i;
|
|
685
685
|
return n !== "/" && (a = i === "/" ? n : Be([n, i])), r.createHref({ pathname: a, search: l, hash: o });
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function vt() {
|
|
688
688
|
return h.useContext(Mt) != null;
|
|
689
689
|
}
|
|
690
690
|
function ze() {
|
|
691
691
|
return J(
|
|
692
|
-
|
|
692
|
+
vt(),
|
|
693
693
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
694
694
|
// router loaded. We can help them understand how to avoid that.
|
|
695
695
|
"useLocation() may be used only in the context of a <Router> component."
|
|
@@ -697,14 +697,14 @@ function ze() {
|
|
|
697
697
|
}
|
|
698
698
|
function as(e) {
|
|
699
699
|
J(
|
|
700
|
-
|
|
700
|
+
vt(),
|
|
701
701
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
702
702
|
// router loaded. We can help them understand how to avoid that.
|
|
703
703
|
"useMatch() may be used only in the context of a <Router> component."
|
|
704
704
|
);
|
|
705
705
|
let { pathname: t } = ze();
|
|
706
706
|
return h.useMemo(
|
|
707
|
-
() =>
|
|
707
|
+
() => Pt(e, oi(t)),
|
|
708
708
|
[t, e]
|
|
709
709
|
);
|
|
710
710
|
}
|
|
@@ -718,17 +718,17 @@ function di() {
|
|
|
718
718
|
}
|
|
719
719
|
function ss() {
|
|
720
720
|
J(
|
|
721
|
-
|
|
721
|
+
vt(),
|
|
722
722
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
723
723
|
// router loaded. We can help them understand how to avoid that.
|
|
724
724
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
725
725
|
);
|
|
726
|
-
let e = h.useContext(
|
|
726
|
+
let e = h.useContext(gt), { basename: t, navigator: n } = h.useContext(Pe), { matches: r } = h.useContext(Ve), { pathname: o } = ze(), i = JSON.stringify(ii(r)), l = h.useRef(!1);
|
|
727
727
|
return ui(() => {
|
|
728
728
|
l.current = !0;
|
|
729
729
|
}), h.useCallback(
|
|
730
730
|
(s, c = {}) => {
|
|
731
|
-
if (
|
|
731
|
+
if (Oe(l.current, ci), !l.current) return;
|
|
732
732
|
if (typeof s == "number") {
|
|
733
733
|
n.go(s);
|
|
734
734
|
return;
|
|
@@ -772,7 +772,7 @@ function cs(e, t) {
|
|
|
772
772
|
}
|
|
773
773
|
function fi(e, t, n, r, o) {
|
|
774
774
|
J(
|
|
775
|
-
|
|
775
|
+
vt(),
|
|
776
776
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
777
777
|
// router loaded. We can help them understand how to avoid that.
|
|
778
778
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
@@ -790,7 +790,7 @@ Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" :
|
|
|
790
790
|
}
|
|
791
791
|
let p = ze(), f;
|
|
792
792
|
if (t) {
|
|
793
|
-
let y = typeof t == "string" ?
|
|
793
|
+
let y = typeof t == "string" ? ht(t) : t;
|
|
794
794
|
J(
|
|
795
795
|
u === "/" || y.pathname?.startsWith(u),
|
|
796
796
|
`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${y.pathname}" was given in the \`location\` prop.`
|
|
@@ -803,10 +803,10 @@ Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" :
|
|
|
803
803
|
g = "/" + m.replace(/^\//, "").split("/").slice(y.length).join("/");
|
|
804
804
|
}
|
|
805
805
|
let v = ti(e, { pathname: g });
|
|
806
|
-
|
|
806
|
+
Oe(
|
|
807
807
|
d || v != null,
|
|
808
808
|
`No routes matched location "${f.pathname}${f.search}${f.hash}" `
|
|
809
|
-
),
|
|
809
|
+
), Oe(
|
|
810
810
|
v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0,
|
|
811
811
|
`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
812
812
|
);
|
|
@@ -906,7 +906,7 @@ var ds = /* @__PURE__ */ h.createElement(us, null), fs = class extends h.Compone
|
|
|
906
906
|
}
|
|
907
907
|
};
|
|
908
908
|
function ps({ routeContext: e, match: t, children: n }) {
|
|
909
|
-
let r = h.useContext(
|
|
909
|
+
let r = h.useContext(gt);
|
|
910
910
|
return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ h.createElement(Ve.Provider, { value: e }, n);
|
|
911
911
|
}
|
|
912
912
|
function ms(e, t = [], n = null, r = null, o = null) {
|
|
@@ -998,7 +998,7 @@ function Er(e) {
|
|
|
998
998
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
999
999
|
}
|
|
1000
1000
|
function hs(e) {
|
|
1001
|
-
let t = h.useContext(
|
|
1001
|
+
let t = h.useContext(gt);
|
|
1002
1002
|
return J(t, Er(e)), t;
|
|
1003
1003
|
}
|
|
1004
1004
|
function gs(e) {
|
|
@@ -1044,14 +1044,14 @@ function ys() {
|
|
|
1044
1044
|
n.current = !0;
|
|
1045
1045
|
}), h.useCallback(
|
|
1046
1046
|
async (o, i = {}) => {
|
|
1047
|
-
|
|
1047
|
+
Oe(n.current, ci), n.current && (typeof o == "number" ? await e.navigate(o) : await e.navigate(o, { fromRouteId: t, ...i }));
|
|
1048
1048
|
},
|
|
1049
1049
|
[e, t]
|
|
1050
1050
|
);
|
|
1051
1051
|
}
|
|
1052
1052
|
var to = {};
|
|
1053
1053
|
function pi(e, t, n) {
|
|
1054
|
-
!t && !to[e] && (to[e] = !0,
|
|
1054
|
+
!t && !to[e] && (to[e] = !0, Oe(!1, n));
|
|
1055
1055
|
}
|
|
1056
1056
|
h.memo(xs);
|
|
1057
1057
|
function xs({
|
|
@@ -1078,7 +1078,7 @@ function Es({
|
|
|
1078
1078
|
unstable_useTransitions: l
|
|
1079
1079
|
}) {
|
|
1080
1080
|
J(
|
|
1081
|
-
!
|
|
1081
|
+
!vt(),
|
|
1082
1082
|
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
1083
1083
|
);
|
|
1084
1084
|
let a = e.replace(/^\/*/, "/"), s = h.useMemo(
|
|
@@ -1091,7 +1091,7 @@ function Es({
|
|
|
1091
1091
|
}),
|
|
1092
1092
|
[a, o, i, l]
|
|
1093
1093
|
);
|
|
1094
|
-
typeof n == "string" && (n =
|
|
1094
|
+
typeof n == "string" && (n = ht(n));
|
|
1095
1095
|
let {
|
|
1096
1096
|
pathname: c = "/",
|
|
1097
1097
|
search: u = "",
|
|
@@ -1111,7 +1111,7 @@ function Es({
|
|
|
1111
1111
|
navigationType: r
|
|
1112
1112
|
};
|
|
1113
1113
|
}, [a, c, u, d, p, f, r]);
|
|
1114
|
-
return
|
|
1114
|
+
return Oe(
|
|
1115
1115
|
m != null,
|
|
1116
1116
|
`<Router basename="${a}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
1117
1117
|
), m == null ? null : /* @__PURE__ */ h.createElement(Pe.Provider, { value: s }, /* @__PURE__ */ h.createElement(Mt.Provider, { children: t, value: m }));
|
|
@@ -1183,13 +1183,13 @@ function Cs(e) {
|
|
|
1183
1183
|
function Rs(e) {
|
|
1184
1184
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function Os(e, t) {
|
|
1187
1187
|
return e.button === 0 && // Ignore everything but left clicks
|
|
1188
1188
|
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
1189
1189
|
!Rs(e);
|
|
1190
1190
|
}
|
|
1191
1191
|
var Ut = null;
|
|
1192
|
-
function
|
|
1192
|
+
function Ts() {
|
|
1193
1193
|
if (Ut === null)
|
|
1194
1194
|
try {
|
|
1195
1195
|
new FormData(
|
|
@@ -1208,7 +1208,7 @@ var Ps = /* @__PURE__ */ new Set([
|
|
|
1208
1208
|
"text/plain"
|
|
1209
1209
|
]);
|
|
1210
1210
|
function Dn(e) {
|
|
1211
|
-
return e != null && !Ps.has(e) ? (
|
|
1211
|
+
return e != null && !Ps.has(e) ? (Oe(
|
|
1212
1212
|
!1,
|
|
1213
1213
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${tn}"`
|
|
1214
1214
|
), null) : e;
|
|
@@ -1225,7 +1225,7 @@ function Ls(e, t) {
|
|
|
1225
1225
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1226
1226
|
);
|
|
1227
1227
|
let s = e.getAttribute("formaction") || a.getAttribute("action");
|
|
1228
|
-
if (r = s ? He(s, t) : null, n = e.getAttribute("formmethod") || a.getAttribute("method") || en, o = Dn(e.getAttribute("formenctype")) || Dn(a.getAttribute("enctype")) || tn, i = new FormData(a, e), !
|
|
1228
|
+
if (r = s ? He(s, t) : null, n = e.getAttribute("formmethod") || a.getAttribute("method") || en, o = Dn(e.getAttribute("formenctype")) || Dn(a.getAttribute("enctype")) || tn, i = new FormData(a, e), !Ts()) {
|
|
1229
1229
|
let { name: c, type: u, value: d } = e;
|
|
1230
1230
|
if (u === "image") {
|
|
1231
1231
|
let p = c ? `${c}.` : "";
|
|
@@ -1351,7 +1351,7 @@ function Bs(e, t) {
|
|
|
1351
1351
|
}, []);
|
|
1352
1352
|
}
|
|
1353
1353
|
function hi() {
|
|
1354
|
-
let e = h.useContext(
|
|
1354
|
+
let e = h.useContext(gt);
|
|
1355
1355
|
return Sr(
|
|
1356
1356
|
e,
|
|
1357
1357
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
@@ -1405,15 +1405,15 @@ function js(e, t) {
|
|
|
1405
1405
|
i,
|
|
1406
1406
|
p,
|
|
1407
1407
|
{
|
|
1408
|
-
onFocus:
|
|
1409
|
-
onBlur:
|
|
1410
|
-
onMouseEnter:
|
|
1411
|
-
onMouseLeave:
|
|
1412
|
-
onTouchStart:
|
|
1408
|
+
onFocus: $t(a, f),
|
|
1409
|
+
onBlur: $t(s, m),
|
|
1410
|
+
onMouseEnter: $t(c, f),
|
|
1411
|
+
onMouseLeave: $t(u, m),
|
|
1412
|
+
onTouchStart: $t(d, f)
|
|
1413
1413
|
}
|
|
1414
1414
|
] : [!1, p, {}];
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1416
|
+
function $t(e, t) {
|
|
1417
1417
|
return (n) => {
|
|
1418
1418
|
e && e(n), n.defaultPrevented || t(n);
|
|
1419
1419
|
};
|
|
@@ -1559,12 +1559,12 @@ var bi = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, wi = h.forwardRef(
|
|
|
1559
1559
|
let C = new URL(window.location.href), N = c.startsWith("//") ? new URL(C.protocol + c) : new URL(c), V = He(N.pathname, m);
|
|
1560
1560
|
N.origin === C.origin && V != null ? c = V + N.search + N.hash : y = !0;
|
|
1561
1561
|
} catch {
|
|
1562
|
-
|
|
1562
|
+
Oe(
|
|
1563
1563
|
!1,
|
|
1564
1564
|
`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
1565
1565
|
);
|
|
1566
1566
|
}
|
|
1567
|
-
let w = ls(c, { relative: o }), [$, x,
|
|
1567
|
+
let w = ls(c, { relative: o }), [$, x, O] = js(
|
|
1568
1568
|
r,
|
|
1569
1569
|
p
|
|
1570
1570
|
), R = Zs(c, {
|
|
@@ -1585,7 +1585,7 @@ var bi = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, wi = h.forwardRef(
|
|
|
1585
1585
|
"a",
|
|
1586
1586
|
{
|
|
1587
1587
|
...p,
|
|
1588
|
-
...
|
|
1588
|
+
...O,
|
|
1589
1589
|
href: b || w,
|
|
1590
1590
|
onClick: y || i ? t : k,
|
|
1591
1591
|
ref: Us(f, x),
|
|
@@ -1615,15 +1615,15 @@ var qs = h.forwardRef(
|
|
|
1615
1615
|
tc(d) && a === !0, b = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, y = p.pathname, w = f && f.navigation && f.navigation.location ? f.navigation.location.pathname : null;
|
|
1616
1616
|
n || (y = y.toLowerCase(), w = w ? w.toLowerCase() : null, b = b.toLowerCase()), w && g && (w = He(w, g) || w);
|
|
1617
1617
|
const $ = b !== "/" && b.endsWith("/") ? b.length - 1 : b.length;
|
|
1618
|
-
let x = y === b || !o && y.startsWith(b) && y.charAt($) === "/",
|
|
1618
|
+
let x = y === b || !o && y.startsWith(b) && y.charAt($) === "/", O = w != null && (w === b || !o && w.startsWith(b) && w.charAt(b.length) === "/"), R = {
|
|
1619
1619
|
isActive: x,
|
|
1620
|
-
isPending:
|
|
1620
|
+
isPending: O,
|
|
1621
1621
|
isTransitioning: v
|
|
1622
1622
|
}, k = x ? t : void 0, A;
|
|
1623
1623
|
typeof r == "function" ? A = r(R) : A = [
|
|
1624
1624
|
r,
|
|
1625
1625
|
x ? "active" : null,
|
|
1626
|
-
|
|
1626
|
+
O ? "pending" : null,
|
|
1627
1627
|
v ? "transitioning" : null
|
|
1628
1628
|
].filter(Boolean).join(" ");
|
|
1629
1629
|
let C = typeof i == "function" ? i(R) : i;
|
|
@@ -1662,9 +1662,9 @@ var Ks = h.forwardRef(
|
|
|
1662
1662
|
let { unstable_useTransitions: m } = h.useContext(Pe), g = Qs(), v = ec(a, { relative: c }), b = l.toLowerCase() === "get" ? "get" : "post", y = typeof a == "string" && bi.test(a), w = ($) => {
|
|
1663
1663
|
if (s && s($), $.defaultPrevented) return;
|
|
1664
1664
|
$.preventDefault();
|
|
1665
|
-
let x = $.nativeEvent.submitter,
|
|
1665
|
+
let x = $.nativeEvent.submitter, O = x?.getAttribute("formmethod") || l, R = () => g(x || $.currentTarget, {
|
|
1666
1666
|
fetcherKey: t,
|
|
1667
|
-
method:
|
|
1667
|
+
method: O,
|
|
1668
1668
|
navigate: n,
|
|
1669
1669
|
replace: o,
|
|
1670
1670
|
state: i,
|
|
@@ -1692,7 +1692,7 @@ function Ys(e) {
|
|
|
1692
1692
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1693
1693
|
}
|
|
1694
1694
|
function yi(e) {
|
|
1695
|
-
let t = h.useContext(
|
|
1695
|
+
let t = h.useContext(gt);
|
|
1696
1696
|
return J(t, Ys(e)), t;
|
|
1697
1697
|
}
|
|
1698
1698
|
function Zs(e, {
|
|
@@ -1707,7 +1707,7 @@ function Zs(e, {
|
|
|
1707
1707
|
let s = di(), c = ze(), u = It(e, { relative: i });
|
|
1708
1708
|
return h.useCallback(
|
|
1709
1709
|
(d) => {
|
|
1710
|
-
if (
|
|
1710
|
+
if (Os(d, t)) {
|
|
1711
1711
|
d.preventDefault();
|
|
1712
1712
|
let p = n !== void 0 ? n : Tt(c) === Tt(u), f = () => s(e, {
|
|
1713
1713
|
replace: p,
|
|
@@ -1801,7 +1801,7 @@ function tc(e, { relative: t } = {}) {
|
|
|
1801
1801
|
if (!n.isTransitioning)
|
|
1802
1802
|
return !1;
|
|
1803
1803
|
let i = He(n.currentLocation.pathname, r) || n.currentLocation.pathname, l = He(n.nextLocation.pathname, r) || n.nextLocation.pathname;
|
|
1804
|
-
return
|
|
1804
|
+
return Pt(o.pathname, l) != null || Pt(o.pathname, i) != null;
|
|
1805
1805
|
}
|
|
1806
1806
|
const nc = (e) => /* @__PURE__ */ h.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "currentColor", className: "bi bi-github", viewBox: "0 0 16 16", ...e }, /* @__PURE__ */ h.createElement("path", { d: "M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8" })), rc = (e) => /* @__PURE__ */ h.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 128 128", ...e }, /* @__PURE__ */ h.createElement("path", { fill: "currentColor", d: "M2 38.5h124v43.71H64v7.29H36.44v-7.29H2zm6.89 36.43h13.78V53.07h6.89v21.86h6.89V45.79H8.89zm34.44-29.14v36.42h13.78v-7.28h13.78V45.79zm13.78 7.29H64v14.56h-6.89zm20.67-7.29v29.14h13.78V53.07h6.89v21.86h6.89V53.07h6.89v21.86h6.89V45.79z" })), oc = (e) => /* @__PURE__ */ h.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 640 640", width: "24px", fill: "currentColor", ...e }, /* @__PURE__ */ h.createElement("path", { d: "M433.2 103.1L581.4 253.4C609.1 281.5 609.1 326.5 581.4 354.6L425 512.9C415.7 522.3 400.5 522.4 391.1 513.1C381.7 503.8 381.6 488.6 390.9 479.2L547.3 320.8C556.5 311.5 556.5 296.4 547.3 287.1L399 136.9C389.7 127.5 389.8 112.3 399.2 103C408.6 93.7 423.8 93.8 433.1 103.2zM64.1 293.5L64.1 160C64.1 124.7 92.8 96 128.1 96L261.6 96C278.6 96 294.9 102.7 306.9 114.7L450.9 258.7C475.9 283.7 475.9 324.2 450.9 349.2L317.4 482.7C292.4 507.7 251.9 507.7 226.9 482.7L82.9 338.7C70.9 326.7 64.2 310.4 64.2 293.4zM208.1 208C208.1 190.3 193.8 176 176.1 176C158.4 176 144.1 190.3 144.1 208C144.1 225.7 158.4 240 176.1 240C193.8 240 208.1 225.7 208.1 208z" })), xi = ne(null), ro = (e) => {
|
|
1807
1807
|
let t;
|
|
@@ -2046,7 +2046,7 @@ const uc = (e, t) => {
|
|
|
2046
2046
|
parseClassName: Sc(e),
|
|
2047
2047
|
sortModifiers: kc(e),
|
|
2048
2048
|
...pc(e)
|
|
2049
|
-
}), Rc = /\s+/,
|
|
2049
|
+
}), Rc = /\s+/, Oc = (e, t) => {
|
|
2050
2050
|
const {
|
|
2051
2051
|
parseClassName: n,
|
|
2052
2052
|
getClassGroupId: r,
|
|
@@ -2083,14 +2083,14 @@ const uc = (e, t) => {
|
|
|
2083
2083
|
continue;
|
|
2084
2084
|
l.push($);
|
|
2085
2085
|
const x = o(b, v);
|
|
2086
|
-
for (let
|
|
2087
|
-
const R = x[
|
|
2086
|
+
for (let O = 0; O < x.length; ++O) {
|
|
2087
|
+
const R = x[O];
|
|
2088
2088
|
l.push(w + R);
|
|
2089
2089
|
}
|
|
2090
2090
|
s = u + (s.length > 0 ? " " + s : s);
|
|
2091
2091
|
}
|
|
2092
2092
|
return s;
|
|
2093
|
-
},
|
|
2093
|
+
}, Tc = (...e) => {
|
|
2094
2094
|
let t = 0, n, r, o = "";
|
|
2095
2095
|
for (; t < e.length; )
|
|
2096
2096
|
(n = e[t++]) && (r = Ri(n)) && (o && (o += " "), o += r);
|
|
@@ -2111,23 +2111,23 @@ const uc = (e, t) => {
|
|
|
2111
2111
|
const c = r(s);
|
|
2112
2112
|
if (c)
|
|
2113
2113
|
return c;
|
|
2114
|
-
const u =
|
|
2114
|
+
const u = Oc(s, n);
|
|
2115
2115
|
return o(s, u), u;
|
|
2116
2116
|
};
|
|
2117
|
-
return i = l, (...s) => i(
|
|
2117
|
+
return i = l, (...s) => i(Tc(...s));
|
|
2118
2118
|
}, Lc = [], ie = (e) => {
|
|
2119
2119
|
const t = (n) => n[e] || Lc;
|
|
2120
2120
|
return t.isThemeGetter = !0, t;
|
|
2121
|
-
},
|
|
2121
|
+
}, Oi = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ti = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ac = /^\d+\/\d+$/, Fc = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Nc = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Mc = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ic = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Dc = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, st = (e) => Ac.test(e), _ = (e) => !!e && !Number.isNaN(Number(e)), Ge = (e) => !!e && Number.isInteger(Number(e)), _n = (e) => e.endsWith("%") && _(e.slice(0, -1)), De = (e) => Fc.test(e), _c = () => !0, Bc = (e) => (
|
|
2122
2122
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
2123
2123
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
2124
2124
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
2125
2125
|
Nc.test(e) && !Mc.test(e)
|
|
2126
|
-
), Pi = () => !1, Hc = (e) => Ic.test(e), jc = (e) => Dc.test(e), Vc = (e) => !
|
|
2127
|
-
const r = Ti.exec(e);
|
|
2128
|
-
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
2129
|
-
}, bt = (e, t, n = !1) => {
|
|
2126
|
+
), Pi = () => !1, Hc = (e) => Ic.test(e), jc = (e) => Dc.test(e), Vc = (e) => !T(e) && !P(e), zc = (e) => bt(e, Fi, Pi), T = (e) => Oi.test(e), et = (e) => bt(e, Ni, Bc), Bn = (e) => bt(e, Kc, _), so = (e) => bt(e, Li, Pi), Wc = (e) => bt(e, Ai, jc), Gt = (e) => bt(e, Mi, Hc), P = (e) => Ti.test(e), St = (e) => wt(e, Ni), Uc = (e) => wt(e, Yc), co = (e) => wt(e, Li), Gc = (e) => wt(e, Fi), qc = (e) => wt(e, Ai), qt = (e) => wt(e, Mi, !0), bt = (e, t, n) => {
|
|
2130
2127
|
const r = Oi.exec(e);
|
|
2128
|
+
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
2129
|
+
}, wt = (e, t, n = !1) => {
|
|
2130
|
+
const r = Ti.exec(e);
|
|
2131
2131
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
2132
2132
|
}, Li = (e) => e === "position" || e === "percentage", Ai = (e) => e === "image" || e === "url", Fi = (e) => e === "length" || e === "size" || e === "bg-size", Ni = (e) => e === "length", Kc = (e) => e === "number", Yc = (e) => e === "family-name", Mi = (e) => e === "shadow", Zc = () => {
|
|
2133
2133
|
const e = ie("color"), t = ie("font"), n = ie("text"), r = ie("font-weight"), o = ie("tracking"), i = ie("leading"), l = ie("breakpoint"), a = ie("container"), s = ie("spacing"), c = ie("radius"), u = ie("shadow"), d = ie("inset-shadow"), p = ie("text-shadow"), f = ie("drop-shadow"), m = ie("blur"), g = ie("perspective"), v = ie("aspect"), b = ie("ease"), y = ie("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], $ = () => [
|
|
@@ -2148,30 +2148,30 @@ const uc = (e, t) => {
|
|
|
2148
2148
|
"bottom-left",
|
|
2149
2149
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
2150
2150
|
"left-bottom"
|
|
2151
|
-
], x = () => [...$(), P,
|
|
2152
|
-
span: ["full", Ge, P,
|
|
2153
|
-
}, Ge, P,
|
|
2154
|
-
position: [P,
|
|
2151
|
+
], x = () => [...$(), P, T], O = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], k = () => [P, T, s], A = () => [st, "full", "auto", ...k()], C = () => [Ge, "none", "subgrid", P, T], N = () => ["auto", {
|
|
2152
|
+
span: ["full", Ge, P, T]
|
|
2153
|
+
}, Ge, P, T], V = () => [Ge, "auto", P, T], W = () => ["auto", "min", "max", "fr", P, T], j = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], F = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...k()], G = () => [st, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...k()], S = () => [e, P, T], z = () => [...$(), co, so, {
|
|
2154
|
+
position: [P, T]
|
|
2155
2155
|
}], Z = () => ["no-repeat", {
|
|
2156
2156
|
repeat: ["", "x", "y", "space", "round"]
|
|
2157
2157
|
}], xe = () => ["auto", "cover", "contain", Gc, zc, {
|
|
2158
|
-
size: [P,
|
|
2159
|
-
}], Q = () => [_n,
|
|
2158
|
+
size: [P, T]
|
|
2159
|
+
}], Q = () => [_n, St, et], H = () => [
|
|
2160
2160
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2161
2161
|
"",
|
|
2162
2162
|
"none",
|
|
2163
2163
|
"full",
|
|
2164
2164
|
c,
|
|
2165
2165
|
P,
|
|
2166
|
-
|
|
2167
|
-
], se = () => ["", _,
|
|
2166
|
+
T
|
|
2167
|
+
], se = () => ["", _, St, et], Ee = () => ["solid", "dashed", "dotted", "double"], M = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => [_, _n, co, so], Re = () => [
|
|
2168
2168
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2169
2169
|
"",
|
|
2170
2170
|
"none",
|
|
2171
2171
|
m,
|
|
2172
2172
|
P,
|
|
2173
|
-
|
|
2174
|
-
], $e = () => ["none", _, P,
|
|
2173
|
+
T
|
|
2174
|
+
], $e = () => ["none", _, P, T], Vt = () => ["none", _, P, T], Mn = () => [_, P, T], zt = () => [st, "full", ...k()];
|
|
2175
2175
|
return {
|
|
2176
2176
|
cacheSize: 500,
|
|
2177
2177
|
theme: {
|
|
@@ -2204,7 +2204,7 @@ const uc = (e, t) => {
|
|
|
2204
2204
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
2205
2205
|
*/
|
|
2206
2206
|
aspect: [{
|
|
2207
|
-
aspect: ["auto", "square", st,
|
|
2207
|
+
aspect: ["auto", "square", st, T, P, v]
|
|
2208
2208
|
}],
|
|
2209
2209
|
/**
|
|
2210
2210
|
* Container
|
|
@@ -2217,7 +2217,7 @@ const uc = (e, t) => {
|
|
|
2217
2217
|
* @see https://tailwindcss.com/docs/columns
|
|
2218
2218
|
*/
|
|
2219
2219
|
columns: [{
|
|
2220
|
-
columns: [_,
|
|
2220
|
+
columns: [_, T, P, a]
|
|
2221
2221
|
}],
|
|
2222
2222
|
/**
|
|
2223
2223
|
* Break After
|
|
@@ -2302,21 +2302,21 @@ const uc = (e, t) => {
|
|
|
2302
2302
|
* @see https://tailwindcss.com/docs/overflow
|
|
2303
2303
|
*/
|
|
2304
2304
|
overflow: [{
|
|
2305
|
-
overflow:
|
|
2305
|
+
overflow: O()
|
|
2306
2306
|
}],
|
|
2307
2307
|
/**
|
|
2308
2308
|
* Overflow X
|
|
2309
2309
|
* @see https://tailwindcss.com/docs/overflow
|
|
2310
2310
|
*/
|
|
2311
2311
|
"overflow-x": [{
|
|
2312
|
-
"overflow-x":
|
|
2312
|
+
"overflow-x": O()
|
|
2313
2313
|
}],
|
|
2314
2314
|
/**
|
|
2315
2315
|
* Overflow Y
|
|
2316
2316
|
* @see https://tailwindcss.com/docs/overflow
|
|
2317
2317
|
*/
|
|
2318
2318
|
"overflow-y": [{
|
|
2319
|
-
"overflow-y":
|
|
2319
|
+
"overflow-y": O()
|
|
2320
2320
|
}],
|
|
2321
2321
|
/**
|
|
2322
2322
|
* Overscroll Behavior
|
|
@@ -2417,7 +2417,7 @@ const uc = (e, t) => {
|
|
|
2417
2417
|
* @see https://tailwindcss.com/docs/z-index
|
|
2418
2418
|
*/
|
|
2419
2419
|
z: [{
|
|
2420
|
-
z: [Ge, "auto", P,
|
|
2420
|
+
z: [Ge, "auto", P, T]
|
|
2421
2421
|
}],
|
|
2422
2422
|
// ------------------------
|
|
2423
2423
|
// --- Flexbox and Grid ---
|
|
@@ -2448,28 +2448,28 @@ const uc = (e, t) => {
|
|
|
2448
2448
|
* @see https://tailwindcss.com/docs/flex
|
|
2449
2449
|
*/
|
|
2450
2450
|
flex: [{
|
|
2451
|
-
flex: [_, st, "auto", "initial", "none",
|
|
2451
|
+
flex: [_, st, "auto", "initial", "none", T]
|
|
2452
2452
|
}],
|
|
2453
2453
|
/**
|
|
2454
2454
|
* Flex Grow
|
|
2455
2455
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
2456
2456
|
*/
|
|
2457
2457
|
grow: [{
|
|
2458
|
-
grow: ["", _, P,
|
|
2458
|
+
grow: ["", _, P, T]
|
|
2459
2459
|
}],
|
|
2460
2460
|
/**
|
|
2461
2461
|
* Flex Shrink
|
|
2462
2462
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
2463
2463
|
*/
|
|
2464
2464
|
shrink: [{
|
|
2465
|
-
shrink: ["", _, P,
|
|
2465
|
+
shrink: ["", _, P, T]
|
|
2466
2466
|
}],
|
|
2467
2467
|
/**
|
|
2468
2468
|
* Order
|
|
2469
2469
|
* @see https://tailwindcss.com/docs/order
|
|
2470
2470
|
*/
|
|
2471
2471
|
order: [{
|
|
2472
|
-
order: [Ge, "first", "last", "none", P,
|
|
2472
|
+
order: [Ge, "first", "last", "none", P, T]
|
|
2473
2473
|
}],
|
|
2474
2474
|
/**
|
|
2475
2475
|
* Grid Template Columns
|
|
@@ -2864,7 +2864,7 @@ const uc = (e, t) => {
|
|
|
2864
2864
|
* @see https://tailwindcss.com/docs/font-size
|
|
2865
2865
|
*/
|
|
2866
2866
|
"font-size": [{
|
|
2867
|
-
text: ["base", n,
|
|
2867
|
+
text: ["base", n, St, et]
|
|
2868
2868
|
}],
|
|
2869
2869
|
/**
|
|
2870
2870
|
* Font Smoothing
|
|
@@ -2888,14 +2888,14 @@ const uc = (e, t) => {
|
|
|
2888
2888
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
2889
2889
|
*/
|
|
2890
2890
|
"font-stretch": [{
|
|
2891
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", _n,
|
|
2891
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", _n, T]
|
|
2892
2892
|
}],
|
|
2893
2893
|
/**
|
|
2894
2894
|
* Font Family
|
|
2895
2895
|
* @see https://tailwindcss.com/docs/font-family
|
|
2896
2896
|
*/
|
|
2897
2897
|
"font-family": [{
|
|
2898
|
-
font: [Uc,
|
|
2898
|
+
font: [Uc, T, t]
|
|
2899
2899
|
}],
|
|
2900
2900
|
/**
|
|
2901
2901
|
* Font Variant Numeric
|
|
@@ -2932,7 +2932,7 @@ const uc = (e, t) => {
|
|
|
2932
2932
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
2933
2933
|
*/
|
|
2934
2934
|
tracking: [{
|
|
2935
|
-
tracking: [o, P,
|
|
2935
|
+
tracking: [o, P, T]
|
|
2936
2936
|
}],
|
|
2937
2937
|
/**
|
|
2938
2938
|
* Line Clamp
|
|
@@ -2957,7 +2957,7 @@ const uc = (e, t) => {
|
|
|
2957
2957
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
2958
2958
|
*/
|
|
2959
2959
|
"list-image": [{
|
|
2960
|
-
"list-image": ["none", P,
|
|
2960
|
+
"list-image": ["none", P, T]
|
|
2961
2961
|
}],
|
|
2962
2962
|
/**
|
|
2963
2963
|
* List Style Position
|
|
@@ -2971,7 +2971,7 @@ const uc = (e, t) => {
|
|
|
2971
2971
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
2972
2972
|
*/
|
|
2973
2973
|
"list-style-type": [{
|
|
2974
|
-
list: ["disc", "decimal", "none", P,
|
|
2974
|
+
list: ["disc", "decimal", "none", P, T]
|
|
2975
2975
|
}],
|
|
2976
2976
|
/**
|
|
2977
2977
|
* Text Alignment
|
|
@@ -3026,7 +3026,7 @@ const uc = (e, t) => {
|
|
|
3026
3026
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
3027
3027
|
*/
|
|
3028
3028
|
"underline-offset": [{
|
|
3029
|
-
"underline-offset": [_, "auto", P,
|
|
3029
|
+
"underline-offset": [_, "auto", P, T]
|
|
3030
3030
|
}],
|
|
3031
3031
|
/**
|
|
3032
3032
|
* Text Transform
|
|
@@ -3057,7 +3057,7 @@ const uc = (e, t) => {
|
|
|
3057
3057
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
3058
3058
|
*/
|
|
3059
3059
|
"vertical-align": [{
|
|
3060
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", P,
|
|
3060
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", P, T]
|
|
3061
3061
|
}],
|
|
3062
3062
|
/**
|
|
3063
3063
|
* Whitespace
|
|
@@ -3092,7 +3092,7 @@ const uc = (e, t) => {
|
|
|
3092
3092
|
* @see https://tailwindcss.com/docs/content
|
|
3093
3093
|
*/
|
|
3094
3094
|
content: [{
|
|
3095
|
-
content: ["none", P,
|
|
3095
|
+
content: ["none", P, T]
|
|
3096
3096
|
}],
|
|
3097
3097
|
// -------------------
|
|
3098
3098
|
// --- Backgrounds ---
|
|
@@ -3147,9 +3147,9 @@ const uc = (e, t) => {
|
|
|
3147
3147
|
bg: ["none", {
|
|
3148
3148
|
linear: [{
|
|
3149
3149
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
3150
|
-
}, Ge, P,
|
|
3151
|
-
radial: ["", P,
|
|
3152
|
-
conic: [Ge, P,
|
|
3150
|
+
}, Ge, P, T],
|
|
3151
|
+
radial: ["", P, T],
|
|
3152
|
+
conic: [Ge, P, T]
|
|
3153
3153
|
}, qc, Wc]
|
|
3154
3154
|
}],
|
|
3155
3155
|
/**
|
|
@@ -3492,14 +3492,14 @@ const uc = (e, t) => {
|
|
|
3492
3492
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
3493
3493
|
*/
|
|
3494
3494
|
"outline-offset": [{
|
|
3495
|
-
"outline-offset": [_, P,
|
|
3495
|
+
"outline-offset": [_, P, T]
|
|
3496
3496
|
}],
|
|
3497
3497
|
/**
|
|
3498
3498
|
* Outline Width
|
|
3499
3499
|
* @see https://tailwindcss.com/docs/outline-width
|
|
3500
3500
|
*/
|
|
3501
3501
|
"outline-w": [{
|
|
3502
|
-
outline: ["", _,
|
|
3502
|
+
outline: ["", _, St, et]
|
|
3503
3503
|
}],
|
|
3504
3504
|
/**
|
|
3505
3505
|
* Outline Color
|
|
@@ -3618,7 +3618,7 @@ const uc = (e, t) => {
|
|
|
3618
3618
|
* @see https://tailwindcss.com/docs/opacity
|
|
3619
3619
|
*/
|
|
3620
3620
|
opacity: [{
|
|
3621
|
-
opacity: [_, P,
|
|
3621
|
+
opacity: [_, P, T]
|
|
3622
3622
|
}],
|
|
3623
3623
|
/**
|
|
3624
3624
|
* Mix Blend Mode
|
|
@@ -3740,7 +3740,7 @@ const uc = (e, t) => {
|
|
|
3740
3740
|
"mask-y-to": S()
|
|
3741
3741
|
}],
|
|
3742
3742
|
"mask-image-radial": [{
|
|
3743
|
-
"mask-radial": [P,
|
|
3743
|
+
"mask-radial": [P, T]
|
|
3744
3744
|
}],
|
|
3745
3745
|
"mask-image-radial-from-pos": [{
|
|
3746
3746
|
"mask-radial-from": U()
|
|
@@ -3828,7 +3828,7 @@ const uc = (e, t) => {
|
|
|
3828
3828
|
* @see https://tailwindcss.com/docs/mask-image
|
|
3829
3829
|
*/
|
|
3830
3830
|
"mask-image": [{
|
|
3831
|
-
mask: ["none", P,
|
|
3831
|
+
mask: ["none", P, T]
|
|
3832
3832
|
}],
|
|
3833
3833
|
// ---------------
|
|
3834
3834
|
// --- Filters ---
|
|
@@ -3843,7 +3843,7 @@ const uc = (e, t) => {
|
|
|
3843
3843
|
"",
|
|
3844
3844
|
"none",
|
|
3845
3845
|
P,
|
|
3846
|
-
|
|
3846
|
+
T
|
|
3847
3847
|
]
|
|
3848
3848
|
}],
|
|
3849
3849
|
/**
|
|
@@ -3858,14 +3858,14 @@ const uc = (e, t) => {
|
|
|
3858
3858
|
* @see https://tailwindcss.com/docs/brightness
|
|
3859
3859
|
*/
|
|
3860
3860
|
brightness: [{
|
|
3861
|
-
brightness: [_, P,
|
|
3861
|
+
brightness: [_, P, T]
|
|
3862
3862
|
}],
|
|
3863
3863
|
/**
|
|
3864
3864
|
* Contrast
|
|
3865
3865
|
* @see https://tailwindcss.com/docs/contrast
|
|
3866
3866
|
*/
|
|
3867
3867
|
contrast: [{
|
|
3868
|
-
contrast: [_, P,
|
|
3868
|
+
contrast: [_, P, T]
|
|
3869
3869
|
}],
|
|
3870
3870
|
/**
|
|
3871
3871
|
* Drop Shadow
|
|
@@ -3893,35 +3893,35 @@ const uc = (e, t) => {
|
|
|
3893
3893
|
* @see https://tailwindcss.com/docs/grayscale
|
|
3894
3894
|
*/
|
|
3895
3895
|
grayscale: [{
|
|
3896
|
-
grayscale: ["", _, P,
|
|
3896
|
+
grayscale: ["", _, P, T]
|
|
3897
3897
|
}],
|
|
3898
3898
|
/**
|
|
3899
3899
|
* Hue Rotate
|
|
3900
3900
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
3901
3901
|
*/
|
|
3902
3902
|
"hue-rotate": [{
|
|
3903
|
-
"hue-rotate": [_, P,
|
|
3903
|
+
"hue-rotate": [_, P, T]
|
|
3904
3904
|
}],
|
|
3905
3905
|
/**
|
|
3906
3906
|
* Invert
|
|
3907
3907
|
* @see https://tailwindcss.com/docs/invert
|
|
3908
3908
|
*/
|
|
3909
3909
|
invert: [{
|
|
3910
|
-
invert: ["", _, P,
|
|
3910
|
+
invert: ["", _, P, T]
|
|
3911
3911
|
}],
|
|
3912
3912
|
/**
|
|
3913
3913
|
* Saturate
|
|
3914
3914
|
* @see https://tailwindcss.com/docs/saturate
|
|
3915
3915
|
*/
|
|
3916
3916
|
saturate: [{
|
|
3917
|
-
saturate: [_, P,
|
|
3917
|
+
saturate: [_, P, T]
|
|
3918
3918
|
}],
|
|
3919
3919
|
/**
|
|
3920
3920
|
* Sepia
|
|
3921
3921
|
* @see https://tailwindcss.com/docs/sepia
|
|
3922
3922
|
*/
|
|
3923
3923
|
sepia: [{
|
|
3924
|
-
sepia: ["", _, P,
|
|
3924
|
+
sepia: ["", _, P, T]
|
|
3925
3925
|
}],
|
|
3926
3926
|
/**
|
|
3927
3927
|
* Backdrop Filter
|
|
@@ -3933,7 +3933,7 @@ const uc = (e, t) => {
|
|
|
3933
3933
|
"",
|
|
3934
3934
|
"none",
|
|
3935
3935
|
P,
|
|
3936
|
-
|
|
3936
|
+
T
|
|
3937
3937
|
]
|
|
3938
3938
|
}],
|
|
3939
3939
|
/**
|
|
@@ -3948,56 +3948,56 @@ const uc = (e, t) => {
|
|
|
3948
3948
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3949
3949
|
*/
|
|
3950
3950
|
"backdrop-brightness": [{
|
|
3951
|
-
"backdrop-brightness": [_, P,
|
|
3951
|
+
"backdrop-brightness": [_, P, T]
|
|
3952
3952
|
}],
|
|
3953
3953
|
/**
|
|
3954
3954
|
* Backdrop Contrast
|
|
3955
3955
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3956
3956
|
*/
|
|
3957
3957
|
"backdrop-contrast": [{
|
|
3958
|
-
"backdrop-contrast": [_, P,
|
|
3958
|
+
"backdrop-contrast": [_, P, T]
|
|
3959
3959
|
}],
|
|
3960
3960
|
/**
|
|
3961
3961
|
* Backdrop Grayscale
|
|
3962
3962
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3963
3963
|
*/
|
|
3964
3964
|
"backdrop-grayscale": [{
|
|
3965
|
-
"backdrop-grayscale": ["", _, P,
|
|
3965
|
+
"backdrop-grayscale": ["", _, P, T]
|
|
3966
3966
|
}],
|
|
3967
3967
|
/**
|
|
3968
3968
|
* Backdrop Hue Rotate
|
|
3969
3969
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3970
3970
|
*/
|
|
3971
3971
|
"backdrop-hue-rotate": [{
|
|
3972
|
-
"backdrop-hue-rotate": [_, P,
|
|
3972
|
+
"backdrop-hue-rotate": [_, P, T]
|
|
3973
3973
|
}],
|
|
3974
3974
|
/**
|
|
3975
3975
|
* Backdrop Invert
|
|
3976
3976
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3977
3977
|
*/
|
|
3978
3978
|
"backdrop-invert": [{
|
|
3979
|
-
"backdrop-invert": ["", _, P,
|
|
3979
|
+
"backdrop-invert": ["", _, P, T]
|
|
3980
3980
|
}],
|
|
3981
3981
|
/**
|
|
3982
3982
|
* Backdrop Opacity
|
|
3983
3983
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3984
3984
|
*/
|
|
3985
3985
|
"backdrop-opacity": [{
|
|
3986
|
-
"backdrop-opacity": [_, P,
|
|
3986
|
+
"backdrop-opacity": [_, P, T]
|
|
3987
3987
|
}],
|
|
3988
3988
|
/**
|
|
3989
3989
|
* Backdrop Saturate
|
|
3990
3990
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3991
3991
|
*/
|
|
3992
3992
|
"backdrop-saturate": [{
|
|
3993
|
-
"backdrop-saturate": [_, P,
|
|
3993
|
+
"backdrop-saturate": [_, P, T]
|
|
3994
3994
|
}],
|
|
3995
3995
|
/**
|
|
3996
3996
|
* Backdrop Sepia
|
|
3997
3997
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3998
3998
|
*/
|
|
3999
3999
|
"backdrop-sepia": [{
|
|
4000
|
-
"backdrop-sepia": ["", _, P,
|
|
4000
|
+
"backdrop-sepia": ["", _, P, T]
|
|
4001
4001
|
}],
|
|
4002
4002
|
// --------------
|
|
4003
4003
|
// --- Tables ---
|
|
@@ -4052,7 +4052,7 @@ const uc = (e, t) => {
|
|
|
4052
4052
|
* @see https://tailwindcss.com/docs/transition-property
|
|
4053
4053
|
*/
|
|
4054
4054
|
transition: [{
|
|
4055
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", P,
|
|
4055
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", P, T]
|
|
4056
4056
|
}],
|
|
4057
4057
|
/**
|
|
4058
4058
|
* Transition Behavior
|
|
@@ -4066,28 +4066,28 @@ const uc = (e, t) => {
|
|
|
4066
4066
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
4067
4067
|
*/
|
|
4068
4068
|
duration: [{
|
|
4069
|
-
duration: [_, "initial", P,
|
|
4069
|
+
duration: [_, "initial", P, T]
|
|
4070
4070
|
}],
|
|
4071
4071
|
/**
|
|
4072
4072
|
* Transition Timing Function
|
|
4073
4073
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
4074
4074
|
*/
|
|
4075
4075
|
ease: [{
|
|
4076
|
-
ease: ["linear", "initial", b, P,
|
|
4076
|
+
ease: ["linear", "initial", b, P, T]
|
|
4077
4077
|
}],
|
|
4078
4078
|
/**
|
|
4079
4079
|
* Transition Delay
|
|
4080
4080
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
4081
4081
|
*/
|
|
4082
4082
|
delay: [{
|
|
4083
|
-
delay: [_, P,
|
|
4083
|
+
delay: [_, P, T]
|
|
4084
4084
|
}],
|
|
4085
4085
|
/**
|
|
4086
4086
|
* Animation
|
|
4087
4087
|
* @see https://tailwindcss.com/docs/animation
|
|
4088
4088
|
*/
|
|
4089
4089
|
animate: [{
|
|
4090
|
-
animate: ["none", y, P,
|
|
4090
|
+
animate: ["none", y, P, T]
|
|
4091
4091
|
}],
|
|
4092
4092
|
// ------------------
|
|
4093
4093
|
// --- Transforms ---
|
|
@@ -4104,7 +4104,7 @@ const uc = (e, t) => {
|
|
|
4104
4104
|
* @see https://tailwindcss.com/docs/perspective
|
|
4105
4105
|
*/
|
|
4106
4106
|
perspective: [{
|
|
4107
|
-
perspective: [g, P,
|
|
4107
|
+
perspective: [g, P, T]
|
|
4108
4108
|
}],
|
|
4109
4109
|
/**
|
|
4110
4110
|
* Perspective Origin
|
|
@@ -4200,7 +4200,7 @@ const uc = (e, t) => {
|
|
|
4200
4200
|
* @see https://tailwindcss.com/docs/transform
|
|
4201
4201
|
*/
|
|
4202
4202
|
transform: [{
|
|
4203
|
-
transform: [P,
|
|
4203
|
+
transform: [P, T, "", "none", "gpu", "cpu"]
|
|
4204
4204
|
}],
|
|
4205
4205
|
/**
|
|
4206
4206
|
* Transform Origin
|
|
@@ -4285,7 +4285,7 @@ const uc = (e, t) => {
|
|
|
4285
4285
|
* @see https://tailwindcss.com/docs/cursor
|
|
4286
4286
|
*/
|
|
4287
4287
|
cursor: [{
|
|
4288
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", P,
|
|
4288
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", P, T]
|
|
4289
4289
|
}],
|
|
4290
4290
|
/**
|
|
4291
4291
|
* Field Sizing
|
|
@@ -4507,7 +4507,7 @@ const uc = (e, t) => {
|
|
|
4507
4507
|
* @see https://tailwindcss.com/docs/will-change
|
|
4508
4508
|
*/
|
|
4509
4509
|
"will-change": [{
|
|
4510
|
-
"will-change": ["auto", "scroll", "contents", "transform", P,
|
|
4510
|
+
"will-change": ["auto", "scroll", "contents", "transform", P, T]
|
|
4511
4511
|
}],
|
|
4512
4512
|
// -----------
|
|
4513
4513
|
// --- SVG ---
|
|
@@ -4524,7 +4524,7 @@ const uc = (e, t) => {
|
|
|
4524
4524
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
4525
4525
|
*/
|
|
4526
4526
|
"stroke-w": [{
|
|
4527
|
-
stroke: [_,
|
|
4527
|
+
stroke: [_, St, et, Bn]
|
|
4528
4528
|
}],
|
|
4529
4529
|
/**
|
|
4530
4530
|
* Stroke
|
|
@@ -4760,7 +4760,7 @@ function Ii({
|
|
|
4760
4760
|
switch (o) {
|
|
4761
4761
|
case "none":
|
|
4762
4762
|
case "primary": {
|
|
4763
|
-
a =
|
|
4763
|
+
a = Ta;
|
|
4764
4764
|
break;
|
|
4765
4765
|
}
|
|
4766
4766
|
case "success": {
|
|
@@ -4774,7 +4774,7 @@ function Ii({
|
|
|
4774
4774
|
className: `${r ? "w-fit" : "w-full"} rounded-md p-2 px-3 ${tu(o, !!i)} ${t}`,
|
|
4775
4775
|
role: "alert",
|
|
4776
4776
|
...l,
|
|
4777
|
-
children: /* @__PURE__ */
|
|
4777
|
+
children: /* @__PURE__ */ q("div", { className: "flex flex-row gap-2", children: [
|
|
4778
4778
|
/* @__PURE__ */ E(a, { className: "w-6 h-6 shrink-0" }),
|
|
4779
4779
|
n ? /* @__PURE__ */ E("div", { dangerouslySetInnerHTML: { __html: e } }) : /* @__PURE__ */ E("div", { children: e })
|
|
4780
4780
|
] })
|
|
@@ -4805,7 +4805,7 @@ function ru(e) {
|
|
|
4805
4805
|
t.current = e;
|
|
4806
4806
|
}, [
|
|
4807
4807
|
e
|
|
4808
|
-
]),
|
|
4808
|
+
]), K((...n) => {
|
|
4809
4809
|
const r = t.current;
|
|
4810
4810
|
return r?.(...n);
|
|
4811
4811
|
}, []);
|
|
@@ -4850,7 +4850,7 @@ function wn(e) {
|
|
|
4850
4850
|
let n = (t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands;
|
|
4851
4851
|
return Array.isArray(n) && n.some((r) => e.test(r.brand)) || e.test(window.navigator.userAgent);
|
|
4852
4852
|
}
|
|
4853
|
-
function
|
|
4853
|
+
function Or(e) {
|
|
4854
4854
|
var t;
|
|
4855
4855
|
return typeof window < "u" && window.navigator != null ? e.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1;
|
|
4856
4856
|
}
|
|
@@ -4859,18 +4859,18 @@ function We(e) {
|
|
|
4859
4859
|
let t = null;
|
|
4860
4860
|
return () => (t == null && (t = e()), t);
|
|
4861
4861
|
}
|
|
4862
|
-
const
|
|
4863
|
-
return
|
|
4862
|
+
const Tr = We(function() {
|
|
4863
|
+
return Or(/^Mac/i);
|
|
4864
4864
|
}), au = We(function() {
|
|
4865
|
-
return
|
|
4865
|
+
return Or(/^iPhone/i);
|
|
4866
4866
|
}), su = We(function() {
|
|
4867
|
-
return
|
|
4868
|
-
|
|
4867
|
+
return Or(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
4868
|
+
Tr() && navigator.maxTouchPoints > 1;
|
|
4869
4869
|
}), cu = We(function() {
|
|
4870
4870
|
return au() || su();
|
|
4871
4871
|
});
|
|
4872
4872
|
We(function() {
|
|
4873
|
-
return
|
|
4873
|
+
return Tr() || cu();
|
|
4874
4874
|
});
|
|
4875
4875
|
We(function() {
|
|
4876
4876
|
return wn(/AppleWebKit/i) && !uu();
|
|
@@ -4884,7 +4884,7 @@ We(function() {
|
|
|
4884
4884
|
return wn(/Firefox/i);
|
|
4885
4885
|
});
|
|
4886
4886
|
function Hi() {
|
|
4887
|
-
let e = I(/* @__PURE__ */ new Map()), t =
|
|
4887
|
+
let e = I(/* @__PURE__ */ new Map()), t = K((o, i, l, a) => {
|
|
4888
4888
|
let s = a?.once ? (...c) => {
|
|
4889
4889
|
e.current.delete(l), l(...c);
|
|
4890
4890
|
} : l;
|
|
@@ -4894,11 +4894,11 @@ function Hi() {
|
|
|
4894
4894
|
fn: s,
|
|
4895
4895
|
options: a
|
|
4896
4896
|
}), o.addEventListener(i, s, a);
|
|
4897
|
-
}, []), n =
|
|
4897
|
+
}, []), n = K((o, i, l, a) => {
|
|
4898
4898
|
var s;
|
|
4899
4899
|
let c = ((s = e.current.get(l)) === null || s === void 0 ? void 0 : s.fn) || l;
|
|
4900
4900
|
o.removeEventListener(i, c, a), e.current.delete(l);
|
|
4901
|
-
}, []), r =
|
|
4901
|
+
}, []), r = K(() => {
|
|
4902
4902
|
e.current.forEach((o, i) => {
|
|
4903
4903
|
n(o.eventTarget, o.type, i, o.options);
|
|
4904
4904
|
});
|
|
@@ -4942,7 +4942,7 @@ function Vi(e) {
|
|
|
4942
4942
|
let n = ru((r) => {
|
|
4943
4943
|
e?.(r);
|
|
4944
4944
|
});
|
|
4945
|
-
return
|
|
4945
|
+
return K((r) => {
|
|
4946
4946
|
if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
|
|
4947
4947
|
t.current.isFocused = !0;
|
|
4948
4948
|
let o = r.target, i = (l) => {
|
|
@@ -4977,7 +4977,7 @@ function Vi(e) {
|
|
|
4977
4977
|
n
|
|
4978
4978
|
]);
|
|
4979
4979
|
}
|
|
4980
|
-
let mu = !1, Dt = null, ir = /* @__PURE__ */ new Set(),
|
|
4980
|
+
let mu = !1, Dt = null, ir = /* @__PURE__ */ new Set(), Rt = /* @__PURE__ */ new Map(), rt = !1, lr = !1;
|
|
4981
4981
|
const hu = {
|
|
4982
4982
|
Tab: !0,
|
|
4983
4983
|
Escape: !0
|
|
@@ -4986,7 +4986,7 @@ function Pr(e, t) {
|
|
|
4986
4986
|
for (let n of ir) n(e, t);
|
|
4987
4987
|
}
|
|
4988
4988
|
function gu(e) {
|
|
4989
|
-
return !(e.metaKey || !
|
|
4989
|
+
return !(e.metaKey || !Tr() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
4990
4990
|
}
|
|
4991
4991
|
function cn(e) {
|
|
4992
4992
|
rt = !0, gu(e) && (Dt = "keyboard", Pr("keyboard", e));
|
|
@@ -5004,7 +5004,7 @@ function Ui() {
|
|
|
5004
5004
|
rt = !1, lr = !0;
|
|
5005
5005
|
}
|
|
5006
5006
|
function ar(e) {
|
|
5007
|
-
if (typeof window > "u" || typeof document > "u" ||
|
|
5007
|
+
if (typeof window > "u" || typeof document > "u" || Rt.get(tt(e))) return;
|
|
5008
5008
|
const t = tt(e), n = Qe(e);
|
|
5009
5009
|
let r = t.HTMLElement.prototype.focus;
|
|
5010
5010
|
t.HTMLElement.prototype.focus = function() {
|
|
@@ -5013,13 +5013,13 @@ function ar(e) {
|
|
|
5013
5013
|
Gi(e);
|
|
5014
5014
|
}, {
|
|
5015
5015
|
once: !0
|
|
5016
|
-
}),
|
|
5016
|
+
}), Rt.set(t, {
|
|
5017
5017
|
focus: r
|
|
5018
5018
|
});
|
|
5019
5019
|
}
|
|
5020
5020
|
const Gi = (e, t) => {
|
|
5021
5021
|
const n = tt(e), r = Qe(e);
|
|
5022
|
-
t && r.removeEventListener("DOMContentLoaded", t),
|
|
5022
|
+
t && r.removeEventListener("DOMContentLoaded", t), Rt.has(n) && (n.HTMLElement.prototype.focus = Rt.get(n).focus, r.removeEventListener("keydown", cn, !0), r.removeEventListener("keyup", cn, !0), r.removeEventListener("click", zi, !0), n.removeEventListener("focus", Wi, !0), n.removeEventListener("blur", Ui, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", ke, !0), r.removeEventListener("pointermove", ke, !0), r.removeEventListener("pointerup", ke, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", ke, !0), r.removeEventListener("mousemove", ke, !0), r.removeEventListener("mouseup", ke, !0)), Rt.delete(n));
|
|
5023
5023
|
};
|
|
5024
5024
|
function vu(e) {
|
|
5025
5025
|
const t = Qe(e);
|
|
@@ -5060,13 +5060,13 @@ function yu(e, t, n) {
|
|
|
5060
5060
|
}
|
|
5061
5061
|
function xu(e) {
|
|
5062
5062
|
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: o } = e;
|
|
5063
|
-
const i =
|
|
5063
|
+
const i = K((s) => {
|
|
5064
5064
|
if (s.target === s.currentTarget)
|
|
5065
5065
|
return r && r(s), o && o(!1), !0;
|
|
5066
5066
|
}, [
|
|
5067
5067
|
r,
|
|
5068
5068
|
o
|
|
5069
|
-
]), l = Vi(i), a =
|
|
5069
|
+
]), l = Vi(i), a = K((s) => {
|
|
5070
5070
|
const c = Qe(s.target), u = c ? or(c) : or();
|
|
5071
5071
|
s.target === s.currentTarget && u === Bi(s.nativeEvent) && (n && n(s), o && o(!0), l(s));
|
|
5072
5072
|
}, [
|
|
@@ -5084,14 +5084,14 @@ function xu(e) {
|
|
|
5084
5084
|
function Eu(e) {
|
|
5085
5085
|
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = I({
|
|
5086
5086
|
isFocusWithin: !1
|
|
5087
|
-
}), { addGlobalListener: l, removeAllGlobalListeners: a } = Hi(), s =
|
|
5087
|
+
}), { addGlobalListener: l, removeAllGlobalListeners: a } = Hi(), s = K((d) => {
|
|
5088
5088
|
d.currentTarget.contains(d.target) && i.current.isFocusWithin && !d.currentTarget.contains(d.relatedTarget) && (i.current.isFocusWithin = !1, a(), n && n(d), o && o(!1));
|
|
5089
5089
|
}, [
|
|
5090
5090
|
n,
|
|
5091
5091
|
o,
|
|
5092
5092
|
i,
|
|
5093
5093
|
a
|
|
5094
|
-
]), c = Vi(s), u =
|
|
5094
|
+
]), c = Vi(s), u = K((d) => {
|
|
5095
5095
|
if (!d.currentTarget.contains(d.target)) return;
|
|
5096
5096
|
const p = Qe(d.target), f = or(p);
|
|
5097
5097
|
if (!i.current.isFocusWithin && f === Bi(d.nativeEvent)) {
|
|
@@ -5213,7 +5213,7 @@ function Ar(e = {}) {
|
|
|
5213
5213
|
let { autoFocus: t = !1, isTextInput: n, within: r } = e, o = I({
|
|
5214
5214
|
isFocused: !1,
|
|
5215
5215
|
isFocusVisible: t || qi()
|
|
5216
|
-
}), [i, l] = X(!1), [a, s] = X(() => o.current.isFocused && o.current.isFocusVisible), c =
|
|
5216
|
+
}), [i, l] = X(!1), [a, s] = X(() => o.current.isFocused && o.current.isFocusVisible), c = K(() => s(o.current.isFocused && o.current.isFocusVisible), []), u = K((f) => {
|
|
5217
5217
|
o.current.isFocused = f, l(f), c();
|
|
5218
5218
|
}, [
|
|
5219
5219
|
c
|
|
@@ -5339,11 +5339,11 @@ let B = function(e) {
|
|
|
5339
5339
|
let t = at(e);
|
|
5340
5340
|
return L.useCallback((...n) => t.current(...n), [t]);
|
|
5341
5341
|
};
|
|
5342
|
-
function
|
|
5342
|
+
function Ou(e) {
|
|
5343
5343
|
let t = e.width / 2, n = e.height / 2;
|
|
5344
5344
|
return { top: e.clientY - n, right: e.clientX + t, bottom: e.clientY + n, left: e.clientX - t };
|
|
5345
5345
|
}
|
|
5346
|
-
function
|
|
5346
|
+
function Tu(e, t) {
|
|
5347
5347
|
return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
|
|
5348
5348
|
}
|
|
5349
5349
|
function Fr({ disabled: e = !1 } = {}) {
|
|
@@ -5356,8 +5356,8 @@ function Fr({ disabled: e = !1 } = {}) {
|
|
|
5356
5356
|
let s = _t(a.currentTarget);
|
|
5357
5357
|
o.addEventListener(s, "pointerup", i, !1), o.addEventListener(s, "pointermove", (c) => {
|
|
5358
5358
|
if (t.current) {
|
|
5359
|
-
let u =
|
|
5360
|
-
r(
|
|
5359
|
+
let u = Ou(c);
|
|
5360
|
+
r(Tu(u, t.current.getBoundingClientRect()));
|
|
5361
5361
|
}
|
|
5362
5362
|
}, !1), o.addEventListener(s, "pointercancel", i, !1);
|
|
5363
5363
|
}
|
|
@@ -5383,10 +5383,10 @@ function he(e, t, ...n) {
|
|
|
5383
5383
|
let r = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((o) => `"${o}"`).join(", ")}.`);
|
|
5384
5384
|
throw Error.captureStackTrace && Error.captureStackTrace(r, he), r;
|
|
5385
5385
|
}
|
|
5386
|
-
var
|
|
5386
|
+
var pt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(pt || {}), Ke = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Ke || {});
|
|
5387
5387
|
function ce() {
|
|
5388
5388
|
let e = Au();
|
|
5389
|
-
return
|
|
5389
|
+
return K((t) => Lu({ mergeRefs: e, ...t }), [e]);
|
|
5390
5390
|
}
|
|
5391
5391
|
function Lu({ ourProps: e, theirProps: t, slot: n, defaultTag: r, features: o, visible: i = !0, name: l, mergeRefs: a }) {
|
|
5392
5392
|
a = a ?? Fu;
|
|
@@ -5432,7 +5432,7 @@ function Yt(e, t = {}, n, r, o) {
|
|
|
5432
5432
|
return er(i, Object.assign({}, zn(s, ["ref"]), !ut(i) && c, !ut(i) && d), u);
|
|
5433
5433
|
}
|
|
5434
5434
|
function Au() {
|
|
5435
|
-
let e = I([]), t =
|
|
5435
|
+
let e = I([]), t = K((n) => {
|
|
5436
5436
|
for (let r of e.current) r != null && (typeof r == "function" ? r(n) : r.current = n);
|
|
5437
5437
|
}, []);
|
|
5438
5438
|
return (...n) => {
|
|
@@ -5462,7 +5462,7 @@ function Zi(...e) {
|
|
|
5462
5462
|
} });
|
|
5463
5463
|
return t;
|
|
5464
5464
|
}
|
|
5465
|
-
function
|
|
5465
|
+
function Lt(...e) {
|
|
5466
5466
|
if (e.length === 0) return {};
|
|
5467
5467
|
if (e.length === 1) return e[0];
|
|
5468
5468
|
let t = {}, n = {};
|
|
@@ -5499,7 +5499,7 @@ function Mu(e) {
|
|
|
5499
5499
|
let Iu = "button";
|
|
5500
5500
|
function Du(e, t) {
|
|
5501
5501
|
var n;
|
|
5502
|
-
let r = yn(), { disabled: o = r || !1, autoFocus: i = !1, ...l } = e, { isFocusVisible: a, focusProps: s } = Ar({ autoFocus: i }), { isHovered: c, hoverProps: u } = Lr({ isDisabled: o }), { pressed: d, pressProps: p } = Fr({ disabled: o }), f =
|
|
5502
|
+
let r = yn(), { disabled: o = r || !1, autoFocus: i = !1, ...l } = e, { isFocusVisible: a, focusProps: s } = Ar({ autoFocus: i }), { isHovered: c, hoverProps: u } = Lr({ isDisabled: o }), { pressed: d, pressProps: p } = Fr({ disabled: o }), f = Lt({ ref: t, type: (n = l.type) != null ? n : "button", disabled: o || void 0, autoFocus: i }, s, u, p), m = Ce({ disabled: o, hover: c, focus: a, active: d, autofocus: i });
|
|
5503
5503
|
return ce()({ ourProps: f, theirProps: l, slot: m, defaultTag: Iu, name: "Button" });
|
|
5504
5504
|
}
|
|
5505
5505
|
let _u = ae(Du);
|
|
@@ -5714,7 +5714,7 @@ function fd(e, t) {
|
|
|
5714
5714
|
return e !== null && t !== null && typeof e == "object" && typeof t == "object" && "id" in e && "id" in t ? e.id === t.id : e === t;
|
|
5715
5715
|
}
|
|
5716
5716
|
function pd(e = fd) {
|
|
5717
|
-
return
|
|
5717
|
+
return K((t, n) => {
|
|
5718
5718
|
if (typeof e == "string") {
|
|
5719
5719
|
let r = e;
|
|
5720
5720
|
return t?.[r] === n?.[r];
|
|
@@ -5765,10 +5765,10 @@ var gd = Object.defineProperty, vd = (e, t, n) => t in e ? gd(e, t, { enumerable
|
|
|
5765
5765
|
}, Se = (e, t, n) => (fl(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Wn = (e, t, n) => {
|
|
5766
5766
|
if (t.has(e)) throw TypeError("Cannot add the same private member more than once");
|
|
5767
5767
|
t instanceof WeakSet ? t.add(e) : t.set(e, n);
|
|
5768
|
-
}, mo = (e, t, n, r) => (fl(e, t, "write to private field"), t.set(e, n), n), Le,
|
|
5768
|
+
}, mo = (e, t, n, r) => (fl(e, t, "write to private field"), t.set(e, n), n), Le, kt, Ct;
|
|
5769
5769
|
let pl = class {
|
|
5770
5770
|
constructor(t) {
|
|
5771
|
-
Wn(this, Le, {}), Wn(this,
|
|
5771
|
+
Wn(this, Le, {}), Wn(this, kt, new dl(() => /* @__PURE__ */ new Set())), Wn(this, Ct, /* @__PURE__ */ new Set()), bd(this, "disposables", ye()), mo(this, Le, t), Ae.isServer && this.disposables.microTask(() => {
|
|
5772
5772
|
this.dispose();
|
|
5773
5773
|
});
|
|
5774
5774
|
}
|
|
@@ -5782,29 +5782,29 @@ let pl = class {
|
|
|
5782
5782
|
if (Ae.isServer) return () => {
|
|
5783
5783
|
};
|
|
5784
5784
|
let r = { selector: t, callback: n, current: t(Se(this, Le)) };
|
|
5785
|
-
return Se(this,
|
|
5786
|
-
Se(this,
|
|
5785
|
+
return Se(this, Ct).add(r), this.disposables.add(() => {
|
|
5786
|
+
Se(this, Ct).delete(r);
|
|
5787
5787
|
});
|
|
5788
5788
|
}
|
|
5789
5789
|
on(t, n) {
|
|
5790
5790
|
return Ae.isServer ? () => {
|
|
5791
|
-
} : (Se(this,
|
|
5792
|
-
Se(this,
|
|
5791
|
+
} : (Se(this, kt).get(t).add(n), this.disposables.add(() => {
|
|
5792
|
+
Se(this, kt).get(t).delete(n);
|
|
5793
5793
|
}));
|
|
5794
5794
|
}
|
|
5795
5795
|
send(t) {
|
|
5796
5796
|
let n = this.reduce(Se(this, Le), t);
|
|
5797
5797
|
if (n !== Se(this, Le)) {
|
|
5798
5798
|
mo(this, Le, n);
|
|
5799
|
-
for (let r of Se(this,
|
|
5799
|
+
for (let r of Se(this, Ct)) {
|
|
5800
5800
|
let o = r.selector(Se(this, Le));
|
|
5801
5801
|
ml(r.current, o) || (r.current = o, r.callback(o));
|
|
5802
5802
|
}
|
|
5803
|
-
for (let r of Se(this,
|
|
5803
|
+
for (let r of Se(this, kt).get(t.type)) r(Se(this, Le), t);
|
|
5804
5804
|
}
|
|
5805
5805
|
}
|
|
5806
5806
|
};
|
|
5807
|
-
Le = /* @__PURE__ */ new WeakMap(),
|
|
5807
|
+
Le = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap();
|
|
5808
5808
|
function ml(e, t) {
|
|
5809
5809
|
return Object.is(e, t) ? !0 : typeof e != "object" || e === null || typeof t != "object" || t === null ? !1 : Array.isArray(e) && Array.isArray(t) ? e.length !== t.length ? !1 : Un(e[Symbol.iterator](), t[Symbol.iterator]()) : e instanceof Map && t instanceof Map || e instanceof Set && t instanceof Set ? e.size !== t.size ? !1 : Un(e.entries(), t.entries()) : ho(e) && ho(t) ? Un(Object.entries(e)[Symbol.iterator](), Object.entries(t)[Symbol.iterator]()) : !1;
|
|
5810
5810
|
}
|
|
@@ -5872,15 +5872,15 @@ function $d() {
|
|
|
5872
5872
|
function v(x) {
|
|
5873
5873
|
if (!b) {
|
|
5874
5874
|
if (b = !0, y = x, x = d(x), p !== void 0 && m.hasValue) {
|
|
5875
|
-
var
|
|
5876
|
-
if (p(
|
|
5877
|
-
return w =
|
|
5875
|
+
var O = m.value;
|
|
5876
|
+
if (p(O, x))
|
|
5877
|
+
return w = O;
|
|
5878
5878
|
}
|
|
5879
5879
|
return w = x;
|
|
5880
5880
|
}
|
|
5881
|
-
if (
|
|
5881
|
+
if (O = w, n(y, x)) return O;
|
|
5882
5882
|
var R = d(x);
|
|
5883
|
-
return p !== void 0 && p(
|
|
5883
|
+
return p !== void 0 && p(O, R) ? (y = x, O) : (y = x, w = R);
|
|
5884
5884
|
}
|
|
5885
5885
|
var b = !1, y, w, $ = u === void 0 ? null : u;
|
|
5886
5886
|
return [
|
|
@@ -5923,16 +5923,16 @@ function Sd() {
|
|
|
5923
5923
|
function v(x) {
|
|
5924
5924
|
if (!b) {
|
|
5925
5925
|
if (b = !0, y = x, x = d(x), p !== void 0 && m.hasValue) {
|
|
5926
|
-
var
|
|
5927
|
-
if (p(
|
|
5928
|
-
return w =
|
|
5926
|
+
var O = m.value;
|
|
5927
|
+
if (p(O, x))
|
|
5928
|
+
return w = O;
|
|
5929
5929
|
}
|
|
5930
5930
|
return w = x;
|
|
5931
5931
|
}
|
|
5932
|
-
if (
|
|
5933
|
-
return
|
|
5932
|
+
if (O = w, n(y, x))
|
|
5933
|
+
return O;
|
|
5934
5934
|
var R = d(x);
|
|
5935
|
-
return p !== void 0 && p(
|
|
5935
|
+
return p !== void 0 && p(O, R) ? (y = x, O) : (y = x, w = R);
|
|
5936
5936
|
}
|
|
5937
5937
|
var b = !1, y, w, $ = u === void 0 ? null : u;
|
|
5938
5938
|
return [
|
|
@@ -5968,25 +5968,25 @@ function Rd(e) {
|
|
|
5968
5968
|
return e;
|
|
5969
5969
|
}
|
|
5970
5970
|
function vl(e, t) {
|
|
5971
|
-
let n = je(), r = Ir.get(t), [o, i] = ve(r,
|
|
5971
|
+
let n = je(), r = Ir.get(t), [o, i] = ve(r, K((l) => [r.selectors.isTop(l, n), r.selectors.inStack(l, n)], [r, n]));
|
|
5972
5972
|
return re(() => {
|
|
5973
5973
|
if (e) return r.actions.push(n), () => r.actions.pop(n);
|
|
5974
5974
|
}, [r, e, n]), e ? i ? o : !0 : !1;
|
|
5975
5975
|
}
|
|
5976
|
-
let dr = /* @__PURE__ */ new Map(),
|
|
5976
|
+
let dr = /* @__PURE__ */ new Map(), Ot = /* @__PURE__ */ new Map();
|
|
5977
5977
|
function yo(e) {
|
|
5978
5978
|
var t;
|
|
5979
|
-
let n = (t =
|
|
5980
|
-
return
|
|
5979
|
+
let n = (t = Ot.get(e)) != null ? t : 0;
|
|
5980
|
+
return Ot.set(e, n + 1), n !== 0 ? () => xo(e) : (dr.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => xo(e));
|
|
5981
5981
|
}
|
|
5982
5982
|
function xo(e) {
|
|
5983
5983
|
var t;
|
|
5984
|
-
let n = (t =
|
|
5985
|
-
if (n === 1 ?
|
|
5984
|
+
let n = (t = Ot.get(e)) != null ? t : 1;
|
|
5985
|
+
if (n === 1 ? Ot.delete(e) : Ot.set(e, n - 1), n !== 1) return;
|
|
5986
5986
|
let r = dr.get(e);
|
|
5987
5987
|
r && (r["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", r["aria-hidden"]), e.inert = r.inert, dr.delete(e));
|
|
5988
5988
|
}
|
|
5989
|
-
function
|
|
5989
|
+
function Od(e, { allowed: t, disallowed: n } = {}) {
|
|
5990
5990
|
let r = vl(e, "inert-others");
|
|
5991
5991
|
re(() => {
|
|
5992
5992
|
var o, i;
|
|
@@ -6007,7 +6007,7 @@ function Td(e, { allowed: t, disallowed: n } = {}) {
|
|
|
6007
6007
|
return l.dispose;
|
|
6008
6008
|
}, [r, t, n]);
|
|
6009
6009
|
}
|
|
6010
|
-
function
|
|
6010
|
+
function Td(e, t, n) {
|
|
6011
6011
|
let r = at((o) => {
|
|
6012
6012
|
let i = o.getBoundingClientRect();
|
|
6013
6013
|
i.x === 0 && i.y === 0 && i.width === 0 && i.height === 0 && n();
|
|
@@ -6129,7 +6129,7 @@ function Hd(e, t, n, r) {
|
|
|
6129
6129
|
}
|
|
6130
6130
|
const $o = 30;
|
|
6131
6131
|
function jd(e, t, n) {
|
|
6132
|
-
let r = at(n), o =
|
|
6132
|
+
let r = at(n), o = K(function(a, s) {
|
|
6133
6133
|
if (a.defaultPrevented) return;
|
|
6134
6134
|
let c = s(a);
|
|
6135
6135
|
if (c === null || !c.getRootNode().contains(c) || !c.isConnected) return;
|
|
@@ -6323,11 +6323,11 @@ function Jd() {
|
|
|
6323
6323
|
} };
|
|
6324
6324
|
}
|
|
6325
6325
|
function Qd(e = 0) {
|
|
6326
|
-
let [t, n] = X(e), r =
|
|
6326
|
+
let [t, n] = X(e), r = K((s) => n(s), []), o = K((s) => n((c) => c | s), []), i = K((s) => (t & s) === s, [t]), l = K((s) => n((c) => c & ~s), []), a = K((s) => n((c) => c ^ s), []);
|
|
6327
6327
|
return { flags: t, setFlag: r, addFlag: o, hasFlag: i, removeFlag: l, toggleFlag: a };
|
|
6328
6328
|
}
|
|
6329
|
-
var Ro,
|
|
6330
|
-
typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Ro = process == null ? void 0 : process.env) == null ? void 0 : Ro.NODE_ENV) === "test" && typeof ((
|
|
6329
|
+
var Ro, Oo;
|
|
6330
|
+
typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Ro = process == null ? void 0 : process.env) == null ? void 0 : Ro.NODE_ENV) === "test" && typeof ((Oo = Element?.prototype) == null ? void 0 : Oo.getAnimations) > "u" && (Element.prototype.getAnimations = function() {
|
|
6331
6331
|
return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.", "Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.", "", "Example usage:", "```js", "import { mockAnimationsApi } from 'jsdom-testing-mocks'", "mockAnimationsApi()", "```"].join(`
|
|
6332
6332
|
`)), [];
|
|
6333
6333
|
});
|
|
@@ -6393,7 +6393,7 @@ function of(e) {
|
|
|
6393
6393
|
function $n() {
|
|
6394
6394
|
return typeof window < "u";
|
|
6395
6395
|
}
|
|
6396
|
-
function
|
|
6396
|
+
function yt(e) {
|
|
6397
6397
|
return $l(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
6398
6398
|
}
|
|
6399
6399
|
function we(e) {
|
|
@@ -6413,7 +6413,7 @@ function fe(e) {
|
|
|
6413
6413
|
function Me(e) {
|
|
6414
6414
|
return $n() ? e instanceof HTMLElement || e instanceof we(e).HTMLElement : !1;
|
|
6415
6415
|
}
|
|
6416
|
-
function
|
|
6416
|
+
function To(e) {
|
|
6417
6417
|
return !$n() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof we(e).ShadowRoot;
|
|
6418
6418
|
}
|
|
6419
6419
|
const lf = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
@@ -6423,12 +6423,12 @@ function Bt(e) {
|
|
|
6423
6423
|
overflowX: n,
|
|
6424
6424
|
overflowY: r,
|
|
6425
6425
|
display: o
|
|
6426
|
-
} =
|
|
6426
|
+
} = Te(e);
|
|
6427
6427
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !lf.has(o);
|
|
6428
6428
|
}
|
|
6429
6429
|
const af = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
6430
6430
|
function sf(e) {
|
|
6431
|
-
return af.has(
|
|
6431
|
+
return af.has(yt(e));
|
|
6432
6432
|
}
|
|
6433
6433
|
const cf = [":popover-open", ":modal"];
|
|
6434
6434
|
function Sn(e) {
|
|
@@ -6442,12 +6442,12 @@ function Sn(e) {
|
|
|
6442
6442
|
}
|
|
6443
6443
|
const uf = ["transform", "translate", "scale", "rotate", "perspective"], df = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ff = ["paint", "layout", "strict", "content"];
|
|
6444
6444
|
function Hr(e) {
|
|
6445
|
-
const t = jr(), n = fe(e) ?
|
|
6445
|
+
const t = jr(), n = fe(e) ? Te(e) : e;
|
|
6446
6446
|
return uf.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || df.some((r) => (n.willChange || "").includes(r)) || ff.some((r) => (n.contain || "").includes(r));
|
|
6447
6447
|
}
|
|
6448
6448
|
function pf(e) {
|
|
6449
6449
|
let t = Xe(e);
|
|
6450
|
-
for (; Me(t) && !
|
|
6450
|
+
for (; Me(t) && !mt(t); ) {
|
|
6451
6451
|
if (Hr(t))
|
|
6452
6452
|
return t;
|
|
6453
6453
|
if (Sn(t))
|
|
@@ -6460,10 +6460,10 @@ function jr() {
|
|
|
6460
6460
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
6461
6461
|
}
|
|
6462
6462
|
const mf = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
6463
|
-
function
|
|
6464
|
-
return mf.has(
|
|
6463
|
+
function mt(e) {
|
|
6464
|
+
return mf.has(yt(e));
|
|
6465
6465
|
}
|
|
6466
|
-
function
|
|
6466
|
+
function Te(e) {
|
|
6467
6467
|
return we(e).getComputedStyle(e);
|
|
6468
6468
|
}
|
|
6469
6469
|
function kn(e) {
|
|
@@ -6476,30 +6476,30 @@ function kn(e) {
|
|
|
6476
6476
|
};
|
|
6477
6477
|
}
|
|
6478
6478
|
function Xe(e) {
|
|
6479
|
-
if (
|
|
6479
|
+
if (yt(e) === "html")
|
|
6480
6480
|
return e;
|
|
6481
6481
|
const t = (
|
|
6482
6482
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
6483
6483
|
e.assignedSlot || // DOM Element detected.
|
|
6484
6484
|
e.parentNode || // ShadowRoot detected.
|
|
6485
|
-
|
|
6485
|
+
To(e) && e.host || // Fallback.
|
|
6486
6486
|
Ie(e)
|
|
6487
6487
|
);
|
|
6488
|
-
return
|
|
6488
|
+
return To(t) ? t.host : t;
|
|
6489
6489
|
}
|
|
6490
6490
|
function Sl(e) {
|
|
6491
6491
|
const t = Xe(e);
|
|
6492
|
-
return
|
|
6492
|
+
return mt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Me(t) && Bt(t) ? t : Sl(t);
|
|
6493
6493
|
}
|
|
6494
|
-
function
|
|
6494
|
+
function At(e, t, n) {
|
|
6495
6495
|
var r;
|
|
6496
6496
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
6497
6497
|
const o = Sl(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), l = we(o);
|
|
6498
6498
|
if (i) {
|
|
6499
6499
|
const a = hr(l);
|
|
6500
|
-
return t.concat(l, l.visualViewport || [], Bt(o) ? o : [], a && n ?
|
|
6500
|
+
return t.concat(l, l.visualViewport || [], Bt(o) ? o : [], a && n ? At(a) : []);
|
|
6501
6501
|
}
|
|
6502
|
-
return t.concat(o,
|
|
6502
|
+
return t.concat(o, At(o, [], n));
|
|
6503
6503
|
}
|
|
6504
6504
|
function hr(e) {
|
|
6505
6505
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
@@ -6514,7 +6514,7 @@ function hf() {
|
|
|
6514
6514
|
return n + "/" + r;
|
|
6515
6515
|
}).join(" ") : navigator.userAgent;
|
|
6516
6516
|
}
|
|
6517
|
-
const ot = Math.min, ue = Math.max,
|
|
6517
|
+
const ot = Math.min, ue = Math.max, Ft = Math.round, Jt = Math.floor, Fe = (e) => ({
|
|
6518
6518
|
x: e,
|
|
6519
6519
|
y: e
|
|
6520
6520
|
}), gf = {
|
|
@@ -6529,7 +6529,7 @@ const ot = Math.min, ue = Math.max, At = Math.round, Jt = Math.floor, Fe = (e) =
|
|
|
6529
6529
|
function Po(e, t, n) {
|
|
6530
6530
|
return ue(e, ot(t, n));
|
|
6531
6531
|
}
|
|
6532
|
-
function
|
|
6532
|
+
function xt(e, t) {
|
|
6533
6533
|
return typeof e == "function" ? e(t) : e;
|
|
6534
6534
|
}
|
|
6535
6535
|
function Je(e) {
|
|
@@ -6745,7 +6745,7 @@ async function Cn(e, t) {
|
|
|
6745
6745
|
elementContext: d = "floating",
|
|
6746
6746
|
altBoundary: p = !1,
|
|
6747
6747
|
padding: f = 0
|
|
6748
|
-
} =
|
|
6748
|
+
} = xt(t, e), m = Cf(f), v = a[p ? d === "floating" ? "reference" : "floating" : d], b = pn(await i.getClippingRect({
|
|
6749
6749
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
6750
6750
|
boundary: c,
|
|
6751
6751
|
rootBoundary: u,
|
|
@@ -6774,7 +6774,7 @@ async function Cn(e, t) {
|
|
|
6774
6774
|
right: (x.right - b.right + m.right) / $.x
|
|
6775
6775
|
};
|
|
6776
6776
|
}
|
|
6777
|
-
const
|
|
6777
|
+
const Of = function(e) {
|
|
6778
6778
|
return e === void 0 && (e = {}), {
|
|
6779
6779
|
name: "flip",
|
|
6780
6780
|
options: e,
|
|
@@ -6795,11 +6795,11 @@ const Tf = function(e) {
|
|
|
6795
6795
|
fallbackAxisSideDirection: m = "none",
|
|
6796
6796
|
flipAlignment: g = !0,
|
|
6797
6797
|
...v
|
|
6798
|
-
} =
|
|
6798
|
+
} = xt(e, t);
|
|
6799
6799
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
6800
6800
|
return {};
|
|
6801
|
-
const b = Je(o), y = _e(a), w = Je(a) === a, $ = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), x = p || (w || !g ? [fn(a)] : yf(a)),
|
|
6802
|
-
!p &&
|
|
6801
|
+
const b = Je(o), y = _e(a), w = Je(a) === a, $ = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), x = p || (w || !g ? [fn(a)] : yf(a)), O = m !== "none";
|
|
6802
|
+
!p && O && x.push(...Sf(a, g, m, $));
|
|
6803
6803
|
const R = [a, ...x], k = await Cn(t, v), A = [];
|
|
6804
6804
|
let C = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
6805
6805
|
if (u && A.push(k[b]), d) {
|
|
@@ -6830,7 +6830,7 @@ const Tf = function(e) {
|
|
|
6830
6830
|
case "bestFit": {
|
|
6831
6831
|
var W;
|
|
6832
6832
|
const G = (W = C.filter((S) => {
|
|
6833
|
-
if (
|
|
6833
|
+
if (O) {
|
|
6834
6834
|
const z = _e(S.placement);
|
|
6835
6835
|
return z === y || // Create a bias to the `y` side axis due to horizontal
|
|
6836
6836
|
// reading directions favoring greater width.
|
|
@@ -6855,13 +6855,13 @@ const Tf = function(e) {
|
|
|
6855
6855
|
return {};
|
|
6856
6856
|
}
|
|
6857
6857
|
};
|
|
6858
|
-
},
|
|
6858
|
+
}, Tf = /* @__PURE__ */ new Set(["left", "top"]);
|
|
6859
6859
|
async function Pf(e, t) {
|
|
6860
6860
|
const {
|
|
6861
6861
|
placement: n,
|
|
6862
6862
|
platform: r,
|
|
6863
6863
|
elements: o
|
|
6864
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), l = Je(n), a = Ht(n), s = _e(n) === "y", c =
|
|
6864
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), l = Je(n), a = Ht(n), s = _e(n) === "y", c = Tf.has(l) ? -1 : 1, u = i && s ? -1 : 1, d = xt(t, e);
|
|
6865
6865
|
let {
|
|
6866
6866
|
mainAxis: p,
|
|
6867
6867
|
crossAxis: f,
|
|
@@ -6930,7 +6930,7 @@ const Lf = function(e) {
|
|
|
6930
6930
|
}
|
|
6931
6931
|
},
|
|
6932
6932
|
...s
|
|
6933
|
-
} =
|
|
6933
|
+
} = xt(e, t), c = {
|
|
6934
6934
|
x: n,
|
|
6935
6935
|
y: r
|
|
6936
6936
|
}, u = await Cn(t, s), d = _e(Je(o)), p = kl(d);
|
|
@@ -6976,15 +6976,15 @@ const Lf = function(e) {
|
|
|
6976
6976
|
apply: s = () => {
|
|
6977
6977
|
},
|
|
6978
6978
|
...c
|
|
6979
|
-
} =
|
|
6979
|
+
} = xt(e, t), u = await Cn(t, c), d = Je(o), p = Ht(o), f = _e(o) === "y", {
|
|
6980
6980
|
width: m,
|
|
6981
6981
|
height: g
|
|
6982
6982
|
} = i.floating;
|
|
6983
6983
|
let v, b;
|
|
6984
6984
|
d === "top" || d === "bottom" ? (v = d, b = p === (await (l.isRTL == null ? void 0 : l.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (b = d, v = p === "end" ? "top" : "bottom");
|
|
6985
|
-
const y = g - u.top - u.bottom, w = m - u.left - u.right, $ = ot(g - u[v], y), x = ot(m - u[b], w),
|
|
6985
|
+
const y = g - u.top - u.bottom, w = m - u.left - u.right, $ = ot(g - u[v], y), x = ot(m - u[b], w), O = !t.middlewareData.shift;
|
|
6986
6986
|
let R = $, k = x;
|
|
6987
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = w), (r = t.middlewareData.shift) != null && r.enabled.y && (R = y),
|
|
6987
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (k = w), (r = t.middlewareData.shift) != null && r.enabled.y && (R = y), O && !p) {
|
|
6988
6988
|
const C = ue(u.left, 0), N = ue(u.right, 0), V = ue(u.top, 0), W = ue(u.bottom, 0);
|
|
6989
6989
|
f ? k = m - 2 * (C !== 0 || N !== 0 ? C + N : ue(u.left, u.right)) : R = g - 2 * (V !== 0 || W !== 0 ? V + W : ue(u.top, u.bottom));
|
|
6990
6990
|
}
|
|
@@ -7002,10 +7002,10 @@ const Lf = function(e) {
|
|
|
7002
7002
|
}
|
|
7003
7003
|
};
|
|
7004
7004
|
};
|
|
7005
|
-
function
|
|
7006
|
-
const t =
|
|
7005
|
+
function Ol(e) {
|
|
7006
|
+
const t = Te(e);
|
|
7007
7007
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
7008
|
-
const o = Me(e), i = o ? e.offsetWidth : n, l = o ? e.offsetHeight : r, a =
|
|
7008
|
+
const o = Me(e), i = o ? e.offsetWidth : n, l = o ? e.offsetHeight : r, a = Ft(n) !== i || Ft(r) !== l;
|
|
7009
7009
|
return a && (n = i, r = l), {
|
|
7010
7010
|
width: n,
|
|
7011
7011
|
height: r,
|
|
@@ -7023,15 +7023,15 @@ function dt(e) {
|
|
|
7023
7023
|
width: r,
|
|
7024
7024
|
height: o,
|
|
7025
7025
|
$: i
|
|
7026
|
-
} =
|
|
7027
|
-
let l = (i ?
|
|
7026
|
+
} = Ol(t);
|
|
7027
|
+
let l = (i ? Ft(n.width) : n.width) / r, a = (i ? Ft(n.height) : n.height) / o;
|
|
7028
7028
|
return (!l || !Number.isFinite(l)) && (l = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
7029
7029
|
x: l,
|
|
7030
7030
|
y: a
|
|
7031
7031
|
};
|
|
7032
7032
|
}
|
|
7033
7033
|
const Nf = /* @__PURE__ */ Fe(0);
|
|
7034
|
-
function
|
|
7034
|
+
function Tl(e) {
|
|
7035
7035
|
const t = we(e);
|
|
7036
7036
|
return !jr() || !t.visualViewport ? Nf : {
|
|
7037
7037
|
x: t.visualViewport.offsetLeft,
|
|
@@ -7046,13 +7046,13 @@ function it(e, t, n, r) {
|
|
|
7046
7046
|
const o = e.getBoundingClientRect(), i = Vr(e);
|
|
7047
7047
|
let l = Fe(1);
|
|
7048
7048
|
t && (r ? fe(r) && (l = dt(r)) : l = dt(e));
|
|
7049
|
-
const a = Mf(i, n, r) ?
|
|
7049
|
+
const a = Mf(i, n, r) ? Tl(i) : Fe(0);
|
|
7050
7050
|
let s = (o.left + a.x) / l.x, c = (o.top + a.y) / l.y, u = o.width / l.x, d = o.height / l.y;
|
|
7051
7051
|
if (i) {
|
|
7052
7052
|
const p = we(i), f = r && fe(r) ? we(r) : r;
|
|
7053
7053
|
let m = p, g = hr(m);
|
|
7054
7054
|
for (; g && r && f !== m; ) {
|
|
7055
|
-
const v = dt(g), b = g.getBoundingClientRect(), y =
|
|
7055
|
+
const v = dt(g), b = g.getBoundingClientRect(), y = Te(g), w = b.left + (g.clientLeft + parseFloat(y.paddingLeft)) * v.x, $ = b.top + (g.clientTop + parseFloat(y.paddingTop)) * v.y;
|
|
7056
7056
|
s *= v.x, c *= v.y, u *= v.x, d *= v.y, s += w, c += $, m = we(g), g = hr(m);
|
|
7057
7057
|
}
|
|
7058
7058
|
}
|
|
@@ -7089,7 +7089,7 @@ function If(e) {
|
|
|
7089
7089
|
scrollTop: 0
|
|
7090
7090
|
}, c = Fe(1);
|
|
7091
7091
|
const u = Fe(0), d = Me(r);
|
|
7092
|
-
if ((d || !d && !i) && ((
|
|
7092
|
+
if ((d || !d && !i) && ((yt(r) !== "body" || Bt(l)) && (s = kn(r)), Me(r))) {
|
|
7093
7093
|
const f = it(r);
|
|
7094
7094
|
c = dt(r), u.x = f.x + r.clientLeft, u.y = f.y + r.clientTop;
|
|
7095
7095
|
}
|
|
@@ -7108,7 +7108,7 @@ function _f(e) {
|
|
|
7108
7108
|
const t = Ie(e), n = kn(e), r = e.ownerDocument.body, o = ue(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ue(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
7109
7109
|
let l = -n.scrollLeft + Rn(e);
|
|
7110
7110
|
const a = -n.scrollTop;
|
|
7111
|
-
return
|
|
7111
|
+
return Te(r).direction === "rtl" && (l += ue(t.clientWidth, r.clientWidth) - o), {
|
|
7112
7112
|
width: o,
|
|
7113
7113
|
height: i,
|
|
7114
7114
|
x: l,
|
|
@@ -7155,7 +7155,7 @@ function Mo(e, t, n) {
|
|
|
7155
7155
|
else if (fe(t))
|
|
7156
7156
|
r = jf(t, n);
|
|
7157
7157
|
else {
|
|
7158
|
-
const o =
|
|
7158
|
+
const o = Tl(e);
|
|
7159
7159
|
r = {
|
|
7160
7160
|
x: t.x - o.x,
|
|
7161
7161
|
y: t.y - o.y,
|
|
@@ -7167,17 +7167,17 @@ function Mo(e, t, n) {
|
|
|
7167
7167
|
}
|
|
7168
7168
|
function Ll(e, t) {
|
|
7169
7169
|
const n = Xe(e);
|
|
7170
|
-
return n === t || !fe(n) ||
|
|
7170
|
+
return n === t || !fe(n) || mt(n) ? !1 : Te(n).position === "fixed" || Ll(n, t);
|
|
7171
7171
|
}
|
|
7172
7172
|
function Vf(e, t) {
|
|
7173
7173
|
const n = t.get(e);
|
|
7174
7174
|
if (n)
|
|
7175
7175
|
return n;
|
|
7176
|
-
let r =
|
|
7177
|
-
const i =
|
|
7176
|
+
let r = At(e, [], !1).filter((a) => fe(a) && yt(a) !== "body"), o = null;
|
|
7177
|
+
const i = Te(e).position === "fixed";
|
|
7178
7178
|
let l = i ? Xe(e) : e;
|
|
7179
|
-
for (; fe(l) && !
|
|
7180
|
-
const a =
|
|
7179
|
+
for (; fe(l) && !mt(l); ) {
|
|
7180
|
+
const a = Te(l), s = Hr(l);
|
|
7181
7181
|
!s && a.position === "fixed" && (o = null), (i ? !s && !o : !s && a.position === "static" && !!o && Hf.has(o.position) || Bt(l) && !s && Ll(e, l)) ? r = r.filter((u) => u !== l) : o = a, l = Xe(l);
|
|
7182
7182
|
}
|
|
7183
7183
|
return t.set(e, r), r;
|
|
@@ -7204,7 +7204,7 @@ function Wf(e) {
|
|
|
7204
7204
|
const {
|
|
7205
7205
|
width: t,
|
|
7206
7206
|
height: n
|
|
7207
|
-
} =
|
|
7207
|
+
} = Ol(e);
|
|
7208
7208
|
return {
|
|
7209
7209
|
width: t,
|
|
7210
7210
|
height: n
|
|
@@ -7221,7 +7221,7 @@ function Uf(e, t, n) {
|
|
|
7221
7221
|
s.x = Rn(o);
|
|
7222
7222
|
}
|
|
7223
7223
|
if (r || !r && !i)
|
|
7224
|
-
if ((
|
|
7224
|
+
if ((yt(t) !== "body" || Bt(o)) && (a = kn(t)), r) {
|
|
7225
7225
|
const f = it(t, !0, i, t);
|
|
7226
7226
|
s.x = f.x + t.clientLeft, s.y = f.y + t.clientTop;
|
|
7227
7227
|
} else o && c();
|
|
@@ -7235,10 +7235,10 @@ function Uf(e, t, n) {
|
|
|
7235
7235
|
};
|
|
7236
7236
|
}
|
|
7237
7237
|
function Yn(e) {
|
|
7238
|
-
return
|
|
7238
|
+
return Te(e).position === "static";
|
|
7239
7239
|
}
|
|
7240
7240
|
function Io(e, t) {
|
|
7241
|
-
if (!Me(e) ||
|
|
7241
|
+
if (!Me(e) || Te(e).position === "fixed")
|
|
7242
7242
|
return null;
|
|
7243
7243
|
if (t)
|
|
7244
7244
|
return t(e);
|
|
@@ -7251,7 +7251,7 @@ function Al(e, t) {
|
|
|
7251
7251
|
return n;
|
|
7252
7252
|
if (!Me(e)) {
|
|
7253
7253
|
let o = Xe(e);
|
|
7254
|
-
for (; o && !
|
|
7254
|
+
for (; o && !mt(o); ) {
|
|
7255
7255
|
if (fe(o) && !Yn(o))
|
|
7256
7256
|
return o;
|
|
7257
7257
|
o = Xe(o);
|
|
@@ -7261,7 +7261,7 @@ function Al(e, t) {
|
|
|
7261
7261
|
let r = Io(e, t);
|
|
7262
7262
|
for (; r && sf(r) && Yn(r); )
|
|
7263
7263
|
r = Io(r, t);
|
|
7264
|
-
return r &&
|
|
7264
|
+
return r && mt(r) && Yn(r) && !Hr(r) ? n : r || pf(e) || n;
|
|
7265
7265
|
}
|
|
7266
7266
|
const Gf = async function(e) {
|
|
7267
7267
|
const t = this.getOffsetParent || Al, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -7276,7 +7276,7 @@ const Gf = async function(e) {
|
|
|
7276
7276
|
};
|
|
7277
7277
|
};
|
|
7278
7278
|
function qf(e) {
|
|
7279
|
-
return
|
|
7279
|
+
return Te(e).direction === "rtl";
|
|
7280
7280
|
}
|
|
7281
7281
|
const Kf = {
|
|
7282
7282
|
convertOffsetParentRelativeRectToViewportRelativeRect: If,
|
|
@@ -7315,8 +7315,8 @@ function Yf(e, t) {
|
|
|
7315
7315
|
threshold: ue(0, ot(1, s)) || 1
|
|
7316
7316
|
};
|
|
7317
7317
|
let $ = !0;
|
|
7318
|
-
function x(
|
|
7319
|
-
const R =
|
|
7318
|
+
function x(O) {
|
|
7319
|
+
const R = O[0].intersectionRatio;
|
|
7320
7320
|
if (R !== s) {
|
|
7321
7321
|
if (!$)
|
|
7322
7322
|
return l();
|
|
@@ -7347,7 +7347,7 @@ function Zf(e, t, n, r) {
|
|
|
7347
7347
|
elementResize: l = typeof ResizeObserver == "function",
|
|
7348
7348
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
7349
7349
|
animationFrame: s = !1
|
|
7350
|
-
} = r, c = Vr(e), u = o || i ? [...c ?
|
|
7350
|
+
} = r, c = Vr(e), u = o || i ? [...c ? At(c) : [], ...At(t)] : [];
|
|
7351
7351
|
u.forEach((b) => {
|
|
7352
7352
|
o && b.addEventListener("scroll", n, {
|
|
7353
7353
|
passive: !0
|
|
@@ -7375,7 +7375,7 @@ function Zf(e, t, n, r) {
|
|
|
7375
7375
|
}), d?.(), (b = f) == null || b.disconnect(), f = null, s && cancelAnimationFrame(m);
|
|
7376
7376
|
};
|
|
7377
7377
|
}
|
|
7378
|
-
const Zn = Cn, Xf = Lf, Jf = Af, Qf =
|
|
7378
|
+
const Zn = Cn, Xf = Lf, Jf = Af, Qf = Of, ep = Ff, tp = (e, t, n) => {
|
|
7379
7379
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
7380
7380
|
platform: Kf,
|
|
7381
7381
|
...n
|
|
@@ -7457,18 +7457,18 @@ function op(e) {
|
|
|
7457
7457
|
}), [p, f] = h.useState(r);
|
|
7458
7458
|
mn(p, r) || f(r);
|
|
7459
7459
|
const [m, g] = h.useState(null), [v, b] = h.useState(null), y = h.useCallback((S) => {
|
|
7460
|
-
S !==
|
|
7460
|
+
S !== O.current && (O.current = S, g(S));
|
|
7461
7461
|
}, []), w = h.useCallback((S) => {
|
|
7462
7462
|
S !== R.current && (R.current = S, b(S));
|
|
7463
|
-
}, []), $ = i || m, x = l || v,
|
|
7464
|
-
if (!
|
|
7463
|
+
}, []), $ = i || m, x = l || v, O = h.useRef(null), R = h.useRef(null), k = h.useRef(u), A = s != null, C = Xn(s), N = Xn(o), V = Xn(c), W = h.useCallback(() => {
|
|
7464
|
+
if (!O.current || !R.current)
|
|
7465
7465
|
return;
|
|
7466
7466
|
const S = {
|
|
7467
7467
|
placement: t,
|
|
7468
7468
|
strategy: n,
|
|
7469
7469
|
middleware: p
|
|
7470
7470
|
};
|
|
7471
|
-
N.current && (S.platform = N.current), tp(
|
|
7471
|
+
N.current && (S.platform = N.current), tp(O.current, R.current, S).then((z) => {
|
|
7472
7472
|
const Z = {
|
|
7473
7473
|
...z,
|
|
7474
7474
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -7492,14 +7492,14 @@ function op(e) {
|
|
|
7492
7492
|
nn(() => (j.current = !0, () => {
|
|
7493
7493
|
j.current = !1;
|
|
7494
7494
|
}), []), nn(() => {
|
|
7495
|
-
if ($ && (
|
|
7495
|
+
if ($ && (O.current = $), x && (R.current = x), $ && x) {
|
|
7496
7496
|
if (C.current)
|
|
7497
7497
|
return C.current($, x, W);
|
|
7498
7498
|
W();
|
|
7499
7499
|
}
|
|
7500
7500
|
}, [$, x, W, C, A]);
|
|
7501
7501
|
const F = h.useMemo(() => ({
|
|
7502
|
-
reference:
|
|
7502
|
+
reference: O,
|
|
7503
7503
|
floating: R,
|
|
7504
7504
|
setReference: y,
|
|
7505
7505
|
setFloating: w
|
|
@@ -7579,24 +7579,24 @@ function dp() {
|
|
|
7579
7579
|
}, []), e;
|
|
7580
7580
|
}
|
|
7581
7581
|
const fp = Il.useId, pp = fp || dp;
|
|
7582
|
-
let
|
|
7583
|
-
process.env.NODE_ENV !== "production" && (
|
|
7582
|
+
let Nt;
|
|
7583
|
+
process.env.NODE_ENV !== "production" && (Nt = /* @__PURE__ */ new Set());
|
|
7584
7584
|
function mp() {
|
|
7585
7585
|
for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
7586
7586
|
n[r] = arguments[r];
|
|
7587
7587
|
const o = "Floating UI: " + n.join(" ");
|
|
7588
|
-
if (!((e =
|
|
7588
|
+
if (!((e = Nt) != null && e.has(o))) {
|
|
7589
7589
|
var i;
|
|
7590
|
-
(i =
|
|
7590
|
+
(i = Nt) == null || i.add(o), console.warn(o);
|
|
7591
7591
|
}
|
|
7592
7592
|
}
|
|
7593
7593
|
function hp() {
|
|
7594
7594
|
for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
7595
7595
|
n[r] = arguments[r];
|
|
7596
7596
|
const o = "Floating UI: " + n.join(" ");
|
|
7597
|
-
if (!((e =
|
|
7597
|
+
if (!((e = Nt) != null && e.has(o))) {
|
|
7598
7598
|
var i;
|
|
7599
|
-
(i =
|
|
7599
|
+
(i = Nt) == null || i.add(o), console.error(o);
|
|
7600
7600
|
}
|
|
7601
7601
|
}
|
|
7602
7602
|
function gp() {
|
|
@@ -7798,7 +7798,7 @@ const kp = (e) => ({
|
|
|
7798
7798
|
referenceOverflowThreshold: s = 0,
|
|
7799
7799
|
scrollRef: c,
|
|
7800
7800
|
...u
|
|
7801
|
-
} =
|
|
7801
|
+
} = xt(e, t), {
|
|
7802
7802
|
rects: d,
|
|
7803
7803
|
elements: {
|
|
7804
7804
|
floating: p
|
|
@@ -7812,8 +7812,8 @@ const kp = (e) => ({
|
|
|
7812
7812
|
}, $ = await Zn(Vo(w, m.scrollHeight + g + p.clientTop), u), x = await Zn(w, {
|
|
7813
7813
|
...u,
|
|
7814
7814
|
elementContext: "reference"
|
|
7815
|
-
}),
|
|
7816
|
-
if (m.style.maxHeight = C + "px", m.scrollTop =
|
|
7815
|
+
}), O = ue(0, $.top), R = w.y + O, C = (m.scrollHeight > m.clientHeight ? (N) => N : Ft)(ue(0, m.scrollHeight + (v && y || b ? g * 2 : 0) - O - ue(0, $.bottom)));
|
|
7816
|
+
if (m.style.maxHeight = C + "px", m.scrollTop = O, o) {
|
|
7817
7817
|
const N = m.offsetHeight < f.offsetHeight * ot(a, n.current.length) - 1 || x.top >= -s || x.bottom >= -s;
|
|
7818
7818
|
ln.flushSync(() => o(N));
|
|
7819
7819
|
}
|
|
@@ -7842,7 +7842,7 @@ function Cp(e, t) {
|
|
|
7842
7842
|
return;
|
|
7843
7843
|
const v = g.deltaY, b = i.current.top >= -0.5, y = i.current.bottom >= -0.5, w = m.scrollHeight - m.clientHeight, $ = v < 0 ? -1 : 1, x = v < 0 ? "max" : "min";
|
|
7844
7844
|
m.scrollHeight <= m.clientHeight || (!b && v > 0 || !y && v < 0 ? (g.preventDefault(), ln.flushSync(() => {
|
|
7845
|
-
s((
|
|
7845
|
+
s((O) => O + Math[x](v, w * $));
|
|
7846
7846
|
})) : /firefox/i.test(hf()) && (m.scrollTop += v));
|
|
7847
7847
|
}
|
|
7848
7848
|
const m = l?.current || r.floating;
|
|
@@ -7882,24 +7882,24 @@ function Cp(e, t) {
|
|
|
7882
7882
|
floating: p
|
|
7883
7883
|
} : {}, [o, p]);
|
|
7884
7884
|
}
|
|
7885
|
-
let
|
|
7885
|
+
let Et = ne({ styles: void 0, setReference: () => {
|
|
7886
7886
|
}, setFloating: () => {
|
|
7887
7887
|
}, getReferenceProps: () => ({}), getFloatingProps: () => ({}), slot: {} });
|
|
7888
|
-
|
|
7888
|
+
Et.displayName = "FloatingContext";
|
|
7889
7889
|
let zr = ne(null);
|
|
7890
7890
|
zr.displayName = "PlacementContext";
|
|
7891
7891
|
function Rp(e) {
|
|
7892
7892
|
return le(() => e ? typeof e == "string" ? { to: e } : e : null, [e]);
|
|
7893
7893
|
}
|
|
7894
|
-
function Tp() {
|
|
7895
|
-
return Y(xt).setReference;
|
|
7896
|
-
}
|
|
7897
7894
|
function Op() {
|
|
7898
|
-
return Y(
|
|
7895
|
+
return Y(Et).setReference;
|
|
7896
|
+
}
|
|
7897
|
+
function Tp() {
|
|
7898
|
+
return Y(Et).getReferenceProps;
|
|
7899
7899
|
}
|
|
7900
7900
|
function Pp() {
|
|
7901
|
-
let { getFloatingProps: e, slot: t } = Y(
|
|
7902
|
-
return
|
|
7901
|
+
let { getFloatingProps: e, slot: t } = Y(Et);
|
|
7902
|
+
return K((...n) => Object.assign({}, e(...n), { "data-anchor": t.anchor }), [e, t]);
|
|
7903
7903
|
}
|
|
7904
7904
|
function Lp(e = null) {
|
|
7905
7905
|
e === !1 && (e = null), typeof e == "string" && (e = { to: e });
|
|
@@ -7910,7 +7910,7 @@ function Lp(e = null) {
|
|
|
7910
7910
|
re(() => {
|
|
7911
7911
|
t?.(n ?? null);
|
|
7912
7912
|
}, [t, n]);
|
|
7913
|
-
let r = Y(
|
|
7913
|
+
let r = Y(Et);
|
|
7914
7914
|
return le(() => [r.setFloating, e ? r.styles : {}], [r.setFloating, e, r.styles]);
|
|
7915
7915
|
}
|
|
7916
7916
|
let zo = 4;
|
|
@@ -7943,10 +7943,10 @@ function Ap({ children: e, enabled: t = !0 }) {
|
|
|
7943
7943
|
Object.assign(W.floating.style, { overflow: "auto", maxWidth: `${N}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${V}px)` });
|
|
7944
7944
|
} })].filter(Boolean), whileElementsMounted: Zf }), [$ = g, x = v] = w.placement.split("-");
|
|
7945
7945
|
g === "selection" && ($ = "selection");
|
|
7946
|
-
let
|
|
7946
|
+
let O = le(() => ({ anchor: [$, x].filter(Boolean).join(" ") }), [$, x]), R = Cp(w, { overflowRef: l, onChange: i }), { getReferenceProps: k, getFloatingProps: A } = Sp([R]), C = B((N) => {
|
|
7947
7947
|
s(N), b.setFloating(N);
|
|
7948
7948
|
});
|
|
7949
|
-
return h.createElement(zr.Provider, { value: r }, h.createElement(
|
|
7949
|
+
return h.createElement(zr.Provider, { value: r }, h.createElement(Et.Provider, { value: { setFloating: C, setReference: b.setReference, styles: y, getReferenceProps: k, getFloatingProps: A, slot: O } }, e));
|
|
7950
7950
|
}
|
|
7951
7951
|
function Fp(e) {
|
|
7952
7952
|
re(() => {
|
|
@@ -8028,17 +8028,17 @@ function Bl(e, t) {
|
|
|
8028
8028
|
let [n, r] = X(t);
|
|
8029
8029
|
return !e && n !== t && r(t), e ? n : t;
|
|
8030
8030
|
}
|
|
8031
|
-
let
|
|
8032
|
-
|
|
8031
|
+
let On = ne(null);
|
|
8032
|
+
On.displayName = "OpenClosedContext";
|
|
8033
8033
|
var pe = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(pe || {});
|
|
8034
|
-
function
|
|
8035
|
-
return Y(
|
|
8034
|
+
function Tn() {
|
|
8035
|
+
return Y(On);
|
|
8036
8036
|
}
|
|
8037
8037
|
function Wr({ value: e, children: t }) {
|
|
8038
|
-
return L.createElement(
|
|
8038
|
+
return L.createElement(On.Provider, { value: e }, t);
|
|
8039
8039
|
}
|
|
8040
8040
|
function Ip({ children: e }) {
|
|
8041
|
-
return L.createElement(
|
|
8041
|
+
return L.createElement(On.Provider, { value: null }, e);
|
|
8042
8042
|
}
|
|
8043
8043
|
function Dp(e) {
|
|
8044
8044
|
throw new Error("Unexpected object: " + e);
|
|
@@ -8208,19 +8208,19 @@ function Gl(e, t) {
|
|
|
8208
8208
|
});
|
|
8209
8209
|
return le(() => ({ children: r, register: a, unregister: l, onStart: d, onStop: p, wait: c, chains: u }), [a, l, r, d, p, u, c]);
|
|
8210
8210
|
}
|
|
8211
|
-
let ql = Ne, Kl =
|
|
8211
|
+
let ql = Ne, Kl = pt.RenderStrategy;
|
|
8212
8212
|
function tm(e, t) {
|
|
8213
8213
|
var n, r;
|
|
8214
|
-
let { transition: o = !0, beforeEnter: i, afterEnter: l, beforeLeave: a, afterLeave: s, enter: c, enterFrom: u, enterTo: d, entered: p, leave: f, leaveFrom: m, leaveTo: g, ...v } = e, [b, y] = X(null), w = I(null), $ = Ul(e), x = ge(...$ ? [w, t, y] : t === null ? [] : [t]),
|
|
8214
|
+
let { transition: o = !0, beforeEnter: i, afterEnter: l, beforeLeave: a, afterLeave: s, enter: c, enterFrom: u, enterTo: d, entered: p, leave: f, leaveFrom: m, leaveTo: g, ...v } = e, [b, y] = X(null), w = I(null), $ = Ul(e), x = ge(...$ ? [w, t, y] : t === null ? [] : [t]), O = (n = v.unmount) == null || n ? Ke.Unmount : Ke.Hidden, { show: R, appear: k, initial: A } = Qp(), [C, N] = X(R ? "visible" : "hidden"), V = em(), { register: W, unregister: j } = V;
|
|
8215
8215
|
re(() => W(w), [W, w]), re(() => {
|
|
8216
|
-
if (
|
|
8216
|
+
if (O === Ke.Hidden && w.current) {
|
|
8217
8217
|
if (R && C !== "visible") {
|
|
8218
8218
|
N("visible");
|
|
8219
8219
|
return;
|
|
8220
8220
|
}
|
|
8221
8221
|
return he(C, { hidden: () => j(w), visible: () => W(w) });
|
|
8222
8222
|
}
|
|
8223
|
-
}, [C, w, W, j, R,
|
|
8223
|
+
}, [C, w, W, j, R, O]);
|
|
8224
8224
|
let F = Wl();
|
|
8225
8225
|
re(() => {
|
|
8226
8226
|
if ($ && F && C === "visible" && w.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
@@ -8250,7 +8250,7 @@ function tm(e, t) {
|
|
|
8250
8250
|
function nm(e, t) {
|
|
8251
8251
|
let { show: n, appear: r = !1, unmount: o = !0, ...i } = e, l = I(null), a = Ul(e), s = ge(...a ? [l, t] : t === null ? [] : [t]);
|
|
8252
8252
|
Wl();
|
|
8253
|
-
let c =
|
|
8253
|
+
let c = Tn();
|
|
8254
8254
|
if (n === void 0 && c !== null && (n = (c & pe.Open) === pe.Open), n === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
8255
8255
|
let [u, d] = X(n ? "visible" : "hidden"), p = Gl(() => {
|
|
8256
8256
|
n || d("hidden");
|
|
@@ -8272,7 +8272,7 @@ function nm(e, t) {
|
|
|
8272
8272
|
return L.createElement(Ln.Provider, { value: p }, L.createElement(Pn.Provider, { value: v }, $({ ourProps: { ...b, as: Ne, children: L.createElement(Yl, { ref: s, ...b, ...i, beforeEnter: y, beforeLeave: w }) }, theirProps: {}, defaultTag: Ne, features: Kl, visible: u === "visible", name: "Transition" })));
|
|
8273
8273
|
}
|
|
8274
8274
|
function rm(e, t) {
|
|
8275
|
-
let n = Y(Pn) !== null, r =
|
|
8275
|
+
let n = Y(Pn) !== null, r = Tn() !== null;
|
|
8276
8276
|
return L.createElement(L.Fragment, null, !n && r ? L.createElement(br, { ref: t, ...e }) : L.createElement(Yl, { ref: t, ...e }));
|
|
8277
8277
|
}
|
|
8278
8278
|
let br = ae(nm), Yl = ae(tm), om = ae(rm), im = Object.assign(br, { Child: om, Root: br });
|
|
@@ -8361,10 +8361,10 @@ function hm(e, t) {
|
|
|
8361
8361
|
}), g = B((A) => {
|
|
8362
8362
|
var C;
|
|
8363
8363
|
ur(A.currentTarget) || o || (u ? (s({ type: 0 }), (C = a.buttonElement) == null || C.focus()) : s({ type: 0 }));
|
|
8364
|
-
}), { isFocusVisible: v, focusProps: b } = Ar({ autoFocus: i }), { isHovered: y, hoverProps: w } = Lr({ isDisabled: o }), { pressed: $, pressProps: x } = Fr({ disabled: o }),
|
|
8365
|
-
return ce()({ ourProps: k, theirProps: l, slot:
|
|
8364
|
+
}), { isFocusVisible: v, focusProps: b } = Ar({ autoFocus: i }), { isHovered: y, hoverProps: w } = Lr({ isDisabled: o }), { pressed: $, pressProps: x } = Fr({ disabled: o }), O = Ce({ open: a.disclosureState === 0, hover: y, active: $, disabled: o, focus: v, autofocus: i }), R = El(e, a.buttonElement), k = Lt(u ? { ref: p, type: R, disabled: o || void 0, autoFocus: i, onKeyDown: f, onClick: g } : { ref: p, id: r, type: R, "aria-expanded": a.disclosureState === 0, "aria-controls": a.panelElement ? a.panelId : void 0, disabled: o || void 0, autoFocus: i, onKeyDown: f, onKeyUp: m, onClick: g }, b, w, x);
|
|
8365
|
+
return ce()({ ourProps: k, theirProps: l, slot: O, defaultTag: mm, name: "Disclosure.Button" });
|
|
8366
8366
|
}
|
|
8367
|
-
let gm = "div", vm =
|
|
8367
|
+
let gm = "div", vm = pt.RenderStrategy | pt.Static;
|
|
8368
8368
|
function bm(e, t) {
|
|
8369
8369
|
let n = je(), { id: r = `headlessui-disclosure-panel-${n}`, transition: o = !1, ...i } = e, [l, a] = Gr("Disclosure.Panel"), { close: s } = Zl("Disclosure.Panel"), [c, u] = X(null), d = ge(t, B((y) => {
|
|
8370
8370
|
lm(() => a({ type: 5, element: y }));
|
|
@@ -8372,7 +8372,7 @@ function bm(e, t) {
|
|
|
8372
8372
|
oe(() => (a({ type: 3, panelId: r }), () => {
|
|
8373
8373
|
a({ type: 3, panelId: null });
|
|
8374
8374
|
}), [r, a]);
|
|
8375
|
-
let p =
|
|
8375
|
+
let p = Tn(), [f, m] = Br(o, c, p !== null ? (p & pe.Open) === pe.Open : l.disclosureState === 0), g = Ce({ open: l.disclosureState === 0, close: s }), v = { ref: d, id: r, ..._r(m) }, b = ce();
|
|
8376
8376
|
return L.createElement(Ip, null, L.createElement(Kr.Provider, { value: l.panelId }, b({ ourProps: v, theirProps: i, slot: g, defaultTag: gm, features: vm, visible: f, name: "Disclosure.Panel" })));
|
|
8377
8377
|
}
|
|
8378
8378
|
let wm = ae(pm), Xl = ae(hm), Jl = ae(bm), ym = Object.assign(wm, { Button: Xl, Panel: Jl }), Go = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
|
|
@@ -8598,23 +8598,23 @@ let Cm = Ne;
|
|
|
8598
8598
|
function Rm(e, t) {
|
|
8599
8599
|
let n = je(), r = yn(), { value: o, defaultValue: i, form: l, name: a, onChange: s, by: c, invalid: u = !1, disabled: d = r || !1, horizontal: p = !1, multiple: f = !1, __demoMode: m = !1, ...g } = e;
|
|
8600
8600
|
const v = p ? "horizontal" : "vertical";
|
|
8601
|
-
let b = ge(t), y = Hu(i), [w = f ? [] : void 0, $] = Bu(o, s, y), x = ta({ id: n, __demoMode: m }),
|
|
8601
|
+
let b = ge(t), y = Hu(i), [w = f ? [] : void 0, $] = Bu(o, s, y), x = ta({ id: n, __demoMode: m }), O = I({ static: !1, hold: !1 }), R = I(/* @__PURE__ */ new Map()), k = pd(c), A = K((Q) => he(C.mode, { [Ze.Multi]: () => w.some((H) => k(H, Q)), [Ze.Single]: () => k(w, Q) }), [w]), C = Ce({ value: w, disabled: d, invalid: u, mode: f ? Ze.Multi : Ze.Single, orientation: v, onChange: $, compare: k, isSelected: A, optionsPropsRef: O, listRef: R });
|
|
8602
8602
|
re(() => {
|
|
8603
8603
|
x.state.dataRef.current = C;
|
|
8604
8604
|
}, [C]);
|
|
8605
|
-
let N = ve(x, (Q) => Q.listboxState), V = Ir.get(null), W = ve(V,
|
|
8605
|
+
let N = ve(x, (Q) => Q.listboxState), V = Ir.get(null), W = ve(V, K((Q) => V.selectors.isTop(Q, n), [V, n])), [j, F] = ve(x, (Q) => [Q.buttonElement, Q.optionsElement]);
|
|
8606
8606
|
jd(W, [j, F], (Q, H) => {
|
|
8607
8607
|
x.send({ type: Ql.CloseListbox }), wl(H, Dr.Loose) || (Q.preventDefault(), j?.focus());
|
|
8608
8608
|
});
|
|
8609
|
-
let D = Ce({ open: N === de.Open, disabled: d, invalid: u, value: w }), [G, S] = id({ inherit: !0 }), z = { ref: b }, Z =
|
|
8609
|
+
let D = Ce({ open: N === de.Open, disabled: d, invalid: u, value: w }), [G, S] = id({ inherit: !0 }), z = { ref: b }, Z = K(() => {
|
|
8610
8610
|
if (y !== void 0) return $?.(y);
|
|
8611
8611
|
}, [$, y]), xe = ce();
|
|
8612
8612
|
return L.createElement(S, { value: G, props: { htmlFor: j?.id }, slot: { open: N === de.Open, disabled: d } }, L.createElement(Ap, null, L.createElement(ea.Provider, { value: x }, L.createElement(Fn.Provider, { value: C }, L.createElement(Wr, { value: he(N, { [de.Open]: pe.Open, [de.Closed]: pe.Closed }) }, a != null && w != null && L.createElement(qu, { disabled: d, data: { [a]: w }, form: l, onReset: Z }), xe({ ourProps: z, theirProps: g, slot: D, defaultTag: Cm, name: "Listbox" }))))));
|
|
8613
8613
|
}
|
|
8614
|
-
let
|
|
8615
|
-
function
|
|
8616
|
-
let n = je(), r = tl(), o = jt("Listbox.Button"), i = Zr("Listbox.Button"), { id: l = r || `headlessui-listbox-button-${n}`, disabled: a = o.disabled || !1, autoFocus: s = !1, ...c } = e, u = ge(t,
|
|
8617
|
-
Wd(g, { trigger: f, action:
|
|
8614
|
+
let Om = "button";
|
|
8615
|
+
function Tm(e, t) {
|
|
8616
|
+
let n = je(), r = tl(), o = jt("Listbox.Button"), i = Zr("Listbox.Button"), { id: l = r || `headlessui-listbox-button-${n}`, disabled: a = o.disabled || !1, autoFocus: s = !1, ...c } = e, u = ge(t, Op(), i.actions.setButtonElement), d = Tp(), [p, f, m] = ve(i, (F) => [F.listboxState, F.buttonElement, F.optionsElement]), g = p === de.Open;
|
|
8617
|
+
Wd(g, { trigger: f, action: K((F) => {
|
|
8618
8618
|
if (f != null && f.contains(F.target)) return Xt.Ignore;
|
|
8619
8619
|
let D = F.target.closest('[role="option"]:not([data-disabled])');
|
|
8620
8620
|
return Ue(D) ? Xt.Select(D) : m != null && m.contains(F.target) ? Xt.Ignore : Xt.Close;
|
|
@@ -8637,20 +8637,20 @@ function Om(e, t) {
|
|
|
8637
8637
|
}), y = hd((F) => {
|
|
8638
8638
|
var D;
|
|
8639
8639
|
i.state.listboxState === de.Open ? (an(() => i.actions.closeListbox()), (D = i.state.buttonElement) == null || D.focus({ preventScroll: !0 })) : (F.preventDefault(), i.actions.openListbox({ focus: te.Nothing }));
|
|
8640
|
-
}), w = B((F) => F.preventDefault()), $ = cl([l]), x = td(), { isFocusVisible:
|
|
8641
|
-
return ce()({ ourProps: j, theirProps: c, slot: V, defaultTag:
|
|
8640
|
+
}), w = B((F) => F.preventDefault()), $ = cl([l]), x = td(), { isFocusVisible: O, focusProps: R } = Ar({ autoFocus: s }), { isHovered: k, hoverProps: A } = Lr({ isDisabled: a }), { pressed: C, pressProps: N } = Fr({ disabled: a }), V = Ce({ open: p === de.Open, active: C || p === de.Open, disabled: a, invalid: o.invalid, value: o.value, hover: k, focus: O, autofocus: s }), W = ve(i, (F) => F.listboxState === de.Open), j = Lt(d(), { ref: u, id: l, type: El(e, f), "aria-haspopup": "listbox", "aria-controls": m?.id, "aria-expanded": W, "aria-labelledby": $, "aria-describedby": x, disabled: a || void 0, autoFocus: s, onKeyDown: v, onKeyUp: b, onKeyPress: w }, y, R, A, N);
|
|
8641
|
+
return ce()({ ourProps: j, theirProps: c, slot: V, defaultTag: Om, name: "Listbox.Button" });
|
|
8642
8642
|
}
|
|
8643
|
-
let na = ne(!1), Pm = "div", Lm =
|
|
8643
|
+
let na = ne(!1), Pm = "div", Lm = pt.RenderStrategy | pt.Static;
|
|
8644
8644
|
function Am(e, t) {
|
|
8645
8645
|
let n = je(), { id: r = `headlessui-listbox-options-${n}`, anchor: o, portal: i = !1, modal: l = !0, transition: a = !1, ...s } = e, c = Rp(o), [u, d] = X(null);
|
|
8646
8646
|
c && (i = !0);
|
|
8647
|
-
let p = jt("Listbox.Options"), f = Zr("Listbox.Options"), [m, g, v, b] = ve(f, (M) => [M.listboxState, M.buttonElement, M.optionsElement, M.__demoMode]), y = mr(g), w = mr(v), $ =
|
|
8648
|
-
|
|
8647
|
+
let p = jt("Listbox.Options"), f = Zr("Listbox.Options"), [m, g, v, b] = ve(f, (M) => [M.listboxState, M.buttonElement, M.optionsElement, M.__demoMode]), y = mr(g), w = mr(v), $ = Tn(), [x, O] = Br(a, u, $ !== null ? ($ & pe.Open) === pe.Open : m === de.Open);
|
|
8648
|
+
Td(x, g, f.actions.closeListbox);
|
|
8649
8649
|
let R = b ? !1 : l && m === de.Open;
|
|
8650
8650
|
Xd(R, w);
|
|
8651
8651
|
let k = b ? !1 : l && m === de.Open;
|
|
8652
|
-
|
|
8653
|
-
let A = ve(f, f.selectors.didButtonMove) ? !1 : x, C = ve(f, f.selectors.hasFrozenValue) && !e.static, N = Bl(C, p.value), V =
|
|
8652
|
+
Od(k, { allowed: K(() => [g, v], [g, v]) });
|
|
8653
|
+
let A = ve(f, f.selectors.didButtonMove) ? !1 : x, C = ve(f, f.selectors.hasFrozenValue) && !e.static, N = Bl(C, p.value), V = K((M) => p.compare(N, M), [p.compare, N]), W = ve(f, (M) => {
|
|
8654
8654
|
var U;
|
|
8655
8655
|
if (c == null || !((U = c?.to) != null && U.includes("selection"))) return null;
|
|
8656
8656
|
let Re = M.options.findIndex(($e) => V($e.dataRef.current.value));
|
|
@@ -8696,7 +8696,7 @@ function Am(e, t) {
|
|
|
8696
8696
|
}), xe = ve(f, (M) => {
|
|
8697
8697
|
var U;
|
|
8698
8698
|
return (U = M.buttonElement) == null ? void 0 : U.id;
|
|
8699
|
-
}), Q = Ce({ open: m === de.Open }), H =
|
|
8699
|
+
}), Q = Ce({ open: m === de.Open }), H = Lt(c ? G() : {}, { id: r, ref: S, "aria-activedescendant": ve(f, f.selectors.activeDescendantId), "aria-multiselectable": p.mode === Ze.Multi ? !0 : void 0, "aria-labelledby": xe, "aria-orientation": p.orientation, onKeyDown: Z, role: "listbox", tabIndex: m === de.Open ? 0 : void 0, style: { ...s.style, ...D, "--button-width": md(x, g, !0).width }, ..._r(O) }), se = ce(), Ee = le(() => p.mode === Ze.Multi ? p : { ...p, isSelected: V }, [p, V]);
|
|
8700
8700
|
return L.createElement(Kp, { enabled: i ? e.static || x : !1, ownerDocument: y }, L.createElement(Fn.Provider, { value: Ee }, se({ ourProps: H, theirProps: s, slot: Q, defaultTag: Pm, features: Lm, visible: A, name: "Listbox.Options" })));
|
|
8701
8701
|
}
|
|
8702
8702
|
let Fm = "div";
|
|
@@ -8722,9 +8722,9 @@ function Nm(e, t) {
|
|
|
8722
8722
|
c.actions.goToOption({ focus: te.Specific, id: r });
|
|
8723
8723
|
}), w = Jd(), $ = B((C) => w.update(C)), x = B((C) => {
|
|
8724
8724
|
w.wasMoved(C) && (o || u && c.state.activationTrigger === on.Pointer || c.actions.goToOption({ focus: te.Specific, id: r }, on.Pointer));
|
|
8725
|
-
}),
|
|
8725
|
+
}), O = B((C) => {
|
|
8726
8726
|
w.wasMoved(C) && (o || u && c.state.activationTrigger === on.Pointer && c.actions.goToOption({ focus: te.Nothing }));
|
|
8727
|
-
}), R = Ce({ active: u, focus: u, selected: d, disabled: o, selectedOption: d && a }), k = a ? {} : { id: r, ref: g, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": d, disabled: void 0, onClick: b, onFocus: y, onPointerEnter: $, onMouseEnter: $, onPointerMove: x, onMouseMove: x, onPointerLeave:
|
|
8727
|
+
}), R = Ce({ active: u, focus: u, selected: d, disabled: o, selectedOption: d && a }), k = a ? {} : { id: r, ref: g, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": d, disabled: void 0, onClick: b, onFocus: y, onPointerEnter: $, onMouseEnter: $, onPointerMove: x, onMouseMove: x, onPointerLeave: O, onMouseLeave: O }, A = ce();
|
|
8728
8728
|
return !d && a ? null : A({ ourProps: k, theirProps: l, slot: R, defaultTag: Fm, name: "Listbox.Option" });
|
|
8729
8729
|
}
|
|
8730
8730
|
let Mm = Ne;
|
|
@@ -8732,7 +8732,7 @@ function Im(e, t) {
|
|
|
8732
8732
|
let { options: n, placeholder: r, ...o } = e, i = { ref: ge(t) }, l = jt("ListboxSelectedOption"), a = Ce({}), s = l.value === void 0 || l.value === null || l.mode === Ze.Multi && Array.isArray(l.value) && l.value.length === 0, c = ce();
|
|
8733
8733
|
return L.createElement(na.Provider, { value: !0 }, c({ ourProps: i, theirProps: { ...o, children: L.createElement(L.Fragment, null, r && s ? r : n) }, slot: a, defaultTag: Mm, name: "ListboxSelectedOption" }));
|
|
8734
8734
|
}
|
|
8735
|
-
let Dm = ae(Rm), ra = ae(
|
|
8735
|
+
let Dm = ae(Rm), ra = ae(Tm), _m = cd, oa = ae(Am), ia = ae(Nm), Bm = ae(Im), Hm = Object.assign(Dm, { Button: ra, Label: _m, Options: oa, Option: ia, SelectedOption: Bm });
|
|
8736
8736
|
function jm({
|
|
8737
8737
|
children: e,
|
|
8738
8738
|
className: t,
|
|
@@ -8786,7 +8786,7 @@ function la({ children: e }) {
|
|
|
8786
8786
|
return /* @__PURE__ */ E(Qc, { FallbackComponent: zm, children: e });
|
|
8787
8787
|
}
|
|
8788
8788
|
function zm({ error: e, resetErrorBoundary: t }) {
|
|
8789
|
-
return /* @__PURE__ */ E(Ii, { intent: "danger", children: /* @__PURE__ */
|
|
8789
|
+
return /* @__PURE__ */ E(Ii, { intent: "danger", children: /* @__PURE__ */ q(me, { align: "start", direction: "column", gap: 2, children: [
|
|
8790
8790
|
/* @__PURE__ */ E("div", { className: "font-bold", children: "Something went wrong!" }),
|
|
8791
8791
|
/* @__PURE__ */ E("pre", { className: "text-sm font-monospace text-red-300", children: e.message }),
|
|
8792
8792
|
/* @__PURE__ */ E(jm, { intent: "danger", onClick: t, children: "Retry" })
|
|
@@ -8851,10 +8851,10 @@ function Um() {
|
|
|
8851
8851
|
}, [e, t]), null;
|
|
8852
8852
|
}
|
|
8853
8853
|
const Gm = {
|
|
8854
|
-
"*": Wt(() => import("./PageNotFound-
|
|
8855
|
-
"/": Wt(() => import("./GettingStartedRoute-
|
|
8856
|
-
"/support": Wt(() => import("./SupportRoute-
|
|
8857
|
-
"/versions": Wt(() => import("./VersionsRoute-
|
|
8854
|
+
"*": Wt(() => import("./PageNotFound-BOtcH9tJ.js")),
|
|
8855
|
+
"/": Wt(() => import("./GettingStartedRoute-BqKgSm4z.js")),
|
|
8856
|
+
"/support": Wt(() => import("./SupportRoute-D2h0cvHw.js")),
|
|
8857
|
+
"/versions": Wt(() => import("./VersionsRoute-UBlVDqMh.js"))
|
|
8858
8858
|
};
|
|
8859
8859
|
function uh({
|
|
8860
8860
|
navLinks: e,
|
|
@@ -8863,16 +8863,31 @@ function uh({
|
|
|
8863
8863
|
packageName: r,
|
|
8864
8864
|
routes: o,
|
|
8865
8865
|
showOpenCollectLink: i = !1,
|
|
8866
|
-
|
|
8866
|
+
url: l,
|
|
8867
|
+
versions: a
|
|
8867
8868
|
}) {
|
|
8868
|
-
const { toggle:
|
|
8869
|
-
() => ({
|
|
8870
|
-
|
|
8869
|
+
const { toggle: s, visible: c } = Ei(), u = le(
|
|
8870
|
+
() => ({
|
|
8871
|
+
overview: t,
|
|
8872
|
+
packageDescription: n,
|
|
8873
|
+
packageName: r,
|
|
8874
|
+
showOpenCollectLink: i,
|
|
8875
|
+
url: l,
|
|
8876
|
+
versions: a
|
|
8877
|
+
}),
|
|
8878
|
+
[
|
|
8879
|
+
t,
|
|
8880
|
+
n,
|
|
8881
|
+
r,
|
|
8882
|
+
i,
|
|
8883
|
+
l,
|
|
8884
|
+
a
|
|
8885
|
+
]
|
|
8871
8886
|
);
|
|
8872
|
-
return /* @__PURE__ */ E(xi.Provider, { value:
|
|
8887
|
+
return /* @__PURE__ */ E(xi.Provider, { value: u, children: /* @__PURE__ */ q(Gs, { children: [
|
|
8873
8888
|
/* @__PURE__ */ E(Um, {}),
|
|
8874
|
-
/* @__PURE__ */
|
|
8875
|
-
/* @__PURE__ */
|
|
8889
|
+
/* @__PURE__ */ q("div", { className: "h-full w-full max-w-350 mx-auto flex flex-col", children: [
|
|
8890
|
+
/* @__PURE__ */ q(
|
|
8876
8891
|
me,
|
|
8877
8892
|
{
|
|
8878
8893
|
align: "center",
|
|
@@ -8881,7 +8896,7 @@ function uh({
|
|
|
8881
8896
|
justify: "between",
|
|
8882
8897
|
gap: 4,
|
|
8883
8898
|
children: [
|
|
8884
|
-
/* @__PURE__ */
|
|
8899
|
+
/* @__PURE__ */ q(
|
|
8885
8900
|
me,
|
|
8886
8901
|
{
|
|
8887
8902
|
className: "overflow-hidden",
|
|
@@ -8901,8 +8916,8 @@ function uh({
|
|
|
8901
8916
|
]
|
|
8902
8917
|
}
|
|
8903
8918
|
),
|
|
8904
|
-
/* @__PURE__ */
|
|
8905
|
-
|
|
8919
|
+
/* @__PURE__ */ q(me, { align: "center", direction: "row", gap: 4, children: [
|
|
8920
|
+
a !== void 0 && /* @__PURE__ */ E(
|
|
8906
8921
|
wr,
|
|
8907
8922
|
{
|
|
8908
8923
|
"aria-label": "Documentation for other versions",
|
|
@@ -8937,25 +8952,25 @@ function uh({
|
|
|
8937
8952
|
{
|
|
8938
8953
|
"aria-label": "Site navigation menu",
|
|
8939
8954
|
className: be("block md:hidden cursor-pointer rounded-lg p-1", {
|
|
8940
|
-
"bg-black/40": !
|
|
8941
|
-
"bg-black/50 text-white":
|
|
8955
|
+
"bg-black/40": !c,
|
|
8956
|
+
"bg-black/50 text-white": c
|
|
8942
8957
|
}),
|
|
8943
|
-
onClick:
|
|
8944
|
-
children:
|
|
8958
|
+
onClick: s,
|
|
8959
|
+
children: c ? /* @__PURE__ */ E(La, { className: "w-6 h-6 fill-current drop-shadow-black/20 drop-shadow-xs" }) : /* @__PURE__ */ E(ya, { className: "w-6 h-6 fill-current drop-shadow-black/20 drop-shadow-xs" })
|
|
8945
8960
|
}
|
|
8946
8961
|
)
|
|
8947
8962
|
] })
|
|
8948
8963
|
]
|
|
8949
8964
|
}
|
|
8950
8965
|
),
|
|
8951
|
-
/* @__PURE__ */
|
|
8966
|
+
/* @__PURE__ */ q("div", { className: "grow shrink flex flex-row shadow-lg mx-2 rounded-t-3xl overflow-hidden", children: [
|
|
8952
8967
|
/* @__PURE__ */ E(
|
|
8953
8968
|
"section",
|
|
8954
8969
|
{
|
|
8955
8970
|
className: be(
|
|
8956
8971
|
"w-full bg-black/90 md:block md:w-80 md:bg-black/80 overflow-auto",
|
|
8957
8972
|
{
|
|
8958
|
-
hidden: !
|
|
8973
|
+
hidden: !c
|
|
8959
8974
|
}
|
|
8960
8975
|
),
|
|
8961
8976
|
children: /* @__PURE__ */ E(Wm, { children: e })
|
|
@@ -8965,7 +8980,7 @@ function uh({
|
|
|
8965
8980
|
"main",
|
|
8966
8981
|
{
|
|
8967
8982
|
className: be("w-full bg-black/90 relative overflow-auto", {
|
|
8968
|
-
hidden:
|
|
8983
|
+
hidden: c
|
|
8969
8984
|
}),
|
|
8970
8985
|
children: /* @__PURE__ */ E(
|
|
8971
8986
|
"div",
|
|
@@ -8975,13 +8990,13 @@ function uh({
|
|
|
8975
8990
|
children: /* @__PURE__ */ E($s, { children: Object.entries({
|
|
8976
8991
|
...Gm,
|
|
8977
8992
|
...o
|
|
8978
|
-
}).map(([
|
|
8993
|
+
}).map(([d, p]) => /* @__PURE__ */ E(
|
|
8979
8994
|
mi,
|
|
8980
8995
|
{
|
|
8981
|
-
element: /* @__PURE__ */ E(la, { children: /* @__PURE__ */ E(
|
|
8982
|
-
path:
|
|
8996
|
+
element: /* @__PURE__ */ E(la, { children: /* @__PURE__ */ E(p, {}) }, d),
|
|
8997
|
+
path: d
|
|
8983
8998
|
},
|
|
8984
|
-
|
|
8999
|
+
d
|
|
8985
9000
|
)) })
|
|
8986
9001
|
}
|
|
8987
9002
|
)
|
|
@@ -9015,7 +9030,7 @@ function fh({
|
|
|
9015
9030
|
...i
|
|
9016
9031
|
}) {
|
|
9017
9032
|
let l, a;
|
|
9018
|
-
return r ? (l = Km, a = "fill-white") : e ? (l = qm, a = "fill-blue-600") : (l = Ym, a = "fill-slate-600"), /* @__PURE__ */
|
|
9033
|
+
return r ? (l = Km, a = "fill-white") : e ? (l = qm, a = "fill-blue-600") : (l = Ym, a = "fill-slate-600"), /* @__PURE__ */ q(
|
|
9019
9034
|
"label",
|
|
9020
9035
|
{
|
|
9021
9036
|
className: `cursor-pointer rounded-lg flex flex-row items-center outline-none group ${n}`,
|
|
@@ -9034,7 +9049,7 @@ function fh({
|
|
|
9034
9049
|
}
|
|
9035
9050
|
),
|
|
9036
9051
|
/* @__PURE__ */ E(l, { className: a }),
|
|
9037
|
-
t && /* @__PURE__ */
|
|
9052
|
+
t && /* @__PURE__ */ q(ft, { children: [
|
|
9038
9053
|
" ",
|
|
9039
9054
|
t
|
|
9040
9055
|
] })
|
|
@@ -9085,26 +9100,32 @@ function ca({
|
|
|
9085
9100
|
section: e,
|
|
9086
9101
|
title: t
|
|
9087
9102
|
}) {
|
|
9088
|
-
const {
|
|
9089
|
-
return
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
/* @__PURE__ */ E("div", { className: "text-xl whitespace-nowrap", children: e }),
|
|
9097
|
-
/* @__PURE__ */ E(ei, { className: "size-4 text-slate-400" })
|
|
9103
|
+
const { packageDescription: n, packageName: r, url: o } = Xm(), i = `${r}: ${e ? `${e}: ${t}` : t}`;
|
|
9104
|
+
return /* @__PURE__ */ q(ft, { children: [
|
|
9105
|
+
/* @__PURE__ */ q(me, { align: "center", direction: "row", gap: 2, wrap: !0, children: [
|
|
9106
|
+
e && /* @__PURE__ */ q(ft, { children: [
|
|
9107
|
+
/* @__PURE__ */ E("div", { className: "text-xl whitespace-nowrap", children: e }),
|
|
9108
|
+
/* @__PURE__ */ E(ei, { className: "size-4 text-slate-400" })
|
|
9109
|
+
] }),
|
|
9110
|
+
/* @__PURE__ */ E("div", { className: "text-xl whitespace-nowrap", children: i })
|
|
9098
9111
|
] }),
|
|
9099
|
-
/* @__PURE__ */ E("
|
|
9112
|
+
/* @__PURE__ */ E("title", { children: i }),
|
|
9113
|
+
/* @__PURE__ */ E("meta", { property: "og:type", content: "website" }),
|
|
9114
|
+
/* @__PURE__ */ E("meta", { property: "og:url", content: o }),
|
|
9115
|
+
/* @__PURE__ */ E("meta", { property: "og:site_name", content: r }),
|
|
9116
|
+
/* @__PURE__ */ E("meta", { property: "og:title", content: i }),
|
|
9117
|
+
/* @__PURE__ */ E("meta", { property: "og:description", content: n }),
|
|
9118
|
+
/* @__PURE__ */ E("meta", { property: "og:image", content: `${o}og.png` }),
|
|
9119
|
+
/* @__PURE__ */ E("meta", { property: "og:image:width", content: "1200" }),
|
|
9120
|
+
/* @__PURE__ */ E("meta", { property: "og:image:height", content: "630" })
|
|
9100
9121
|
] });
|
|
9101
9122
|
}
|
|
9102
9123
|
function Jm({
|
|
9103
9124
|
method: e
|
|
9104
9125
|
}) {
|
|
9105
|
-
return /* @__PURE__ */
|
|
9126
|
+
return /* @__PURE__ */ q(ft, { children: [
|
|
9106
9127
|
/* @__PURE__ */ E("dd", { className: "[&_code]:text-sky-300 text-lg font-bold", children: e.name }),
|
|
9107
|
-
/* @__PURE__ */
|
|
9128
|
+
/* @__PURE__ */ q("dt", { className: "mt-2", children: [
|
|
9108
9129
|
/* @__PURE__ */ E(Nn, { sections: e.description }),
|
|
9109
9130
|
/* @__PURE__ */ E(aa, { className: "mt-2 p-2 flex flex-col", html: e.html })
|
|
9110
9131
|
] })
|
|
@@ -9114,8 +9135,8 @@ function ph({
|
|
|
9114
9135
|
json: e,
|
|
9115
9136
|
section: t
|
|
9116
9137
|
}) {
|
|
9117
|
-
return /* @__PURE__ */
|
|
9118
|
-
/* @__PURE__ */
|
|
9138
|
+
return /* @__PURE__ */ q(me, { direction: "column", gap: 4, children: [
|
|
9139
|
+
/* @__PURE__ */ q(me, { align: "center", direction: "row", gap: 2, wrap: !0, children: [
|
|
9119
9140
|
/* @__PURE__ */ E(ca, { section: t, title: `${e.name}` }),
|
|
9120
9141
|
/* @__PURE__ */ E(
|
|
9121
9142
|
hn,
|
|
@@ -9152,7 +9173,7 @@ function mh({
|
|
|
9152
9173
|
);
|
|
9153
9174
|
}
|
|
9154
9175
|
function hh() {
|
|
9155
|
-
return /* @__PURE__ */
|
|
9176
|
+
return /* @__PURE__ */ q(me, { align: "center", className: "text-slate-300", direction: "row", gap: 2, children: [
|
|
9156
9177
|
/* @__PURE__ */ E(va, { className: "size-4 animate-spin" }),
|
|
9157
9178
|
"Loading..."
|
|
9158
9179
|
] });
|
|
@@ -9201,8 +9222,8 @@ function vh({
|
|
|
9201
9222
|
children: e,
|
|
9202
9223
|
label: t
|
|
9203
9224
|
}) {
|
|
9204
|
-
return /* @__PURE__ */
|
|
9205
|
-
/* @__PURE__ */ E(Xl, { className: "w-full group border-none! data-focus:bg-white/10", children: /* @__PURE__ */
|
|
9225
|
+
return /* @__PURE__ */ q(ym, { as: "section", defaultOpen: !0, children: [
|
|
9226
|
+
/* @__PURE__ */ E(Xl, { className: "w-full group border-none! data-focus:bg-white/10", children: /* @__PURE__ */ q(ua, { children: [
|
|
9206
9227
|
/* @__PURE__ */ E("div", { className: "uppercase text-sm font-bold text-white/50", children: t }),
|
|
9207
9228
|
/* @__PURE__ */ E("div", { className: "grow" }),
|
|
9208
9229
|
/* @__PURE__ */ E(ei, { className: "size-4 fill-white/60 group-data-hover:fill-white/50 group-data-open:rotate-90" })
|
|
@@ -9217,7 +9238,7 @@ function Qm(e) {
|
|
|
9217
9238
|
}), t.sort((r, o) => r.name.localeCompare(o.name)), n.sort((r, o) => r.name.localeCompare(o.name)), { optionalProps: t, requiredProps: n };
|
|
9218
9239
|
}
|
|
9219
9240
|
function eh({ prop: e }) {
|
|
9220
|
-
return /* @__PURE__ */
|
|
9241
|
+
return /* @__PURE__ */ q(ft, { children: [
|
|
9221
9242
|
/* @__PURE__ */ E("dt", { className: "mt-6 pl-8 indent-[-1rem]", children: /* @__PURE__ */ E(
|
|
9222
9243
|
aa,
|
|
9223
9244
|
{
|
|
@@ -9232,7 +9253,7 @@ function Zo({
|
|
|
9232
9253
|
header: e,
|
|
9233
9254
|
props: t
|
|
9234
9255
|
}) {
|
|
9235
|
-
return t.length === 0 ? null : /* @__PURE__ */
|
|
9256
|
+
return t.length === 0 ? null : /* @__PURE__ */ q(me, { direction: "column", children: [
|
|
9236
9257
|
/* @__PURE__ */ E("div", { className: "text-lg font-bold", children: e }),
|
|
9237
9258
|
/* @__PURE__ */ E("dl", { children: t.map((n) => /* @__PURE__ */ E(eh, { prop: n }, n.name)) })
|
|
9238
9259
|
] });
|
|
@@ -9245,8 +9266,8 @@ function bh({
|
|
|
9245
9266
|
() => Qm(e),
|
|
9246
9267
|
[e]
|
|
9247
9268
|
);
|
|
9248
|
-
return /* @__PURE__ */
|
|
9249
|
-
/* @__PURE__ */
|
|
9269
|
+
return /* @__PURE__ */ q(me, { direction: "column", gap: 4, children: [
|
|
9270
|
+
/* @__PURE__ */ q(me, { align: "center", direction: "row", gap: 2, wrap: !0, children: [
|
|
9250
9271
|
/* @__PURE__ */ E(ca, { section: t, title: `${e.name} component` }),
|
|
9251
9272
|
/* @__PURE__ */ E(
|
|
9252
9273
|
hn,
|
|
@@ -9273,7 +9294,7 @@ function wh({
|
|
|
9273
9294
|
...l
|
|
9274
9295
|
}) {
|
|
9275
9296
|
let a, s;
|
|
9276
|
-
return e ? (a = th, s = "fill-blue-600") : (a = nh, s = "fill-slate-600"), /* @__PURE__ */
|
|
9297
|
+
return e ? (a = th, s = "fill-blue-600") : (a = nh, s = "fill-slate-600"), /* @__PURE__ */ q(
|
|
9277
9298
|
"label",
|
|
9278
9299
|
{
|
|
9279
9300
|
className: `cursor-pointer rounded-full flex flex-row items-center outline-none group ${n}`,
|
|
@@ -9294,7 +9315,7 @@ function wh({
|
|
|
9294
9315
|
}
|
|
9295
9316
|
),
|
|
9296
9317
|
/* @__PURE__ */ E(a, { className: s }),
|
|
9297
|
-
t && /* @__PURE__ */
|
|
9318
|
+
t && /* @__PURE__ */ q(ft, { children: [
|
|
9298
9319
|
" ",
|
|
9299
9320
|
t
|
|
9300
9321
|
] })
|
|
@@ -9310,8 +9331,8 @@ function yh({
|
|
|
9310
9331
|
placeholder: o = "",
|
|
9311
9332
|
value: i
|
|
9312
9333
|
}) {
|
|
9313
|
-
return /* @__PURE__ */ E(Hm, { value: i ?? t, onChange: n, children: /* @__PURE__ */
|
|
9314
|
-
/* @__PURE__ */
|
|
9334
|
+
return /* @__PURE__ */ E(Hm, { value: i ?? t, onChange: n, children: /* @__PURE__ */ q("div", { className: `relative ${e}`, children: [
|
|
9335
|
+
/* @__PURE__ */ q(
|
|
9315
9336
|
ra,
|
|
9316
9337
|
{
|
|
9317
9338
|
className: "w-full h-9 text-left rounded-md bg-black/30 border border-2 border-transparent py-1 px-2 outline-none focus:border-teal-300",
|
|
@@ -9328,36 +9349,27 @@ function yh({
|
|
|
9328
9349
|
]
|
|
9329
9350
|
}
|
|
9330
9351
|
),
|
|
9331
|
-
/* @__PURE__ */ E(
|
|
9332
|
-
|
|
9352
|
+
/* @__PURE__ */ E(im, { as: Ne, leaveFrom: "opacity-100", leaveTo: "opacity-0", children: /* @__PURE__ */ E(
|
|
9353
|
+
oa,
|
|
9333
9354
|
{
|
|
9334
|
-
|
|
9335
|
-
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
children: /* @__PURE__ */ E(
|
|
9339
|
-
oa,
|
|
9355
|
+
className: "absolute z-10 mt-1 max-h-50 w-full overflow-auto rounded-md py-1 bg-black/90",
|
|
9356
|
+
"data-focus": !0,
|
|
9357
|
+
children: r.map((l, a) => /* @__PURE__ */ E(
|
|
9358
|
+
ia,
|
|
9340
9359
|
{
|
|
9341
|
-
className:
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
value: l,
|
|
9353
|
-
children: l.label
|
|
9354
|
-
},
|
|
9355
|
-
a
|
|
9356
|
-
))
|
|
9357
|
-
}
|
|
9358
|
-
)
|
|
9360
|
+
className: be(
|
|
9361
|
+
"relative cursor-pointer select-none h-7 py-1 px-2 text-slate-300 border-none!",
|
|
9362
|
+
"data-focus:text-teal-300 data-focus:bg-black",
|
|
9363
|
+
"data-active:text-teal-300 data-active:bg-black",
|
|
9364
|
+
"data-selected:text-teal-300 data-selected:font-bold"
|
|
9365
|
+
),
|
|
9366
|
+
value: l,
|
|
9367
|
+
children: l.label
|
|
9368
|
+
},
|
|
9369
|
+
a
|
|
9370
|
+
))
|
|
9359
9371
|
}
|
|
9360
|
-
)
|
|
9372
|
+
) })
|
|
9361
9373
|
] }) });
|
|
9362
9374
|
}
|
|
9363
9375
|
function xh(e, t) {
|
|
@@ -9402,4 +9414,4 @@ export {
|
|
|
9402
9414
|
xh as n,
|
|
9403
9415
|
Xm as u
|
|
9404
9416
|
};
|
|
9405
|
-
//# sourceMappingURL=index-
|
|
9417
|
+
//# sourceMappingURL=index-Bh6LXsao.js.map
|