zudoku 0.7.2-dev.13 → 0.7.2-dev.14

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.
Files changed (70) hide show
  1. package/lib/AuthenticationPlugin-BMjOjKqE.js +54 -0
  2. package/lib/{AuthenticationPlugin-Bx9FK124.js.map → AuthenticationPlugin-BMjOjKqE.js.map} +1 -1
  3. package/lib/CategoryHeading-BE8e6QdS.js +9 -0
  4. package/lib/{CategoryHeading-XnFqN2lJ.js.map → CategoryHeading-BE8e6QdS.js.map} +1 -1
  5. package/lib/DeveloperHint-Bl9gIdNI.js +12 -0
  6. package/lib/{DeveloperHint-FBb2uXJe.js.map → DeveloperHint-Bl9gIdNI.js.map} +1 -1
  7. package/lib/ErrorPage-CPR1XVKW.js +12 -0
  8. package/lib/{ErrorPage-knunPbKI.js.map → ErrorPage-CPR1XVKW.js.map} +1 -1
  9. package/lib/Input-BBlyeDuG.js +2192 -0
  10. package/lib/{Input-BEDZAKw0.js.map → Input-BBlyeDuG.js.map} +1 -1
  11. package/lib/{Markdown-B4aR03g6.js → Markdown-CCNihH_N.js} +2641 -2650
  12. package/lib/{Markdown-B4aR03g6.js.map → Markdown-CCNihH_N.js.map} +1 -1
  13. package/lib/MdxPage-BavkYqzi.js +140 -0
  14. package/lib/{MdxPage-BZyQsH8Z.js.map → MdxPage-BavkYqzi.js.map} +1 -1
  15. package/lib/OperationList-C6Ps2keZ.js +460 -0
  16. package/lib/{OperationList-2NeWEM0u.js.map → OperationList-C6Ps2keZ.js.map} +1 -1
  17. package/lib/Route-xRJ9mJgH.js +13 -0
  18. package/lib/{Route-BZPewmrN.js.map → Route-xRJ9mJgH.js.map} +1 -1
  19. package/lib/{SidebarBadge-COz0hgfa.js → SidebarBadge-2JcxswKF.js} +41 -41
  20. package/lib/{SidebarBadge-COz0hgfa.js.map → SidebarBadge-2JcxswKF.js.map} +1 -1
  21. package/lib/SlotletProvider-CuB3Ts8r.js +213 -0
  22. package/lib/{SlotletProvider-DJMaOUDs.js.map → SlotletProvider-CuB3Ts8r.js.map} +1 -1
  23. package/lib/Spinner-BlxzaFFF.js +6 -0
  24. package/lib/Spinner-BlxzaFFF.js.map +1 -0
  25. package/lib/{ZudokuContext-cr-pTRY1.js → ZudokuContext-JoyeA9dT.js} +65 -66
  26. package/lib/{ZudokuContext-cr-pTRY1.js.map → ZudokuContext-JoyeA9dT.js.map} +1 -1
  27. package/lib/{index-Dv2KZuEw.js → index-BF4cn28H.js} +1804 -1991
  28. package/lib/{index-Dv2KZuEw.js.map → index-BF4cn28H.js.map} +1 -1
  29. package/lib/{index-Zezcv0xb.js → index-BLvMkqjO.js} +5 -5
  30. package/lib/{index-Zezcv0xb.js.map → index-BLvMkqjO.js.map} +1 -1
  31. package/lib/{index-1EDgIO6b.js → index-G1-TGLO1.js} +4 -4
  32. package/lib/{index-1EDgIO6b.js.map → index-G1-TGLO1.js.map} +1 -1
  33. package/lib/jsx-runtime-lNnQYwFN.js +2403 -0
  34. package/lib/jsx-runtime-lNnQYwFN.js.map +1 -0
  35. package/lib/{utils-ByIc_KIM.js → utils-B8R4grFM.js} +97 -98
  36. package/lib/{utils-ByIc_KIM.js.map → utils-B8R4grFM.js.map} +1 -1
  37. package/lib/zudoku.auth-auth0.js +16 -21
  38. package/lib/zudoku.auth-auth0.js.map +1 -1
  39. package/lib/zudoku.auth-clerk.js +32 -37
  40. package/lib/zudoku.auth-clerk.js.map +1 -1
  41. package/lib/zudoku.auth-openid.js +485 -505
  42. package/lib/zudoku.auth-openid.js.map +1 -1
  43. package/lib/zudoku.components.js +1531 -1659
  44. package/lib/zudoku.components.js.map +1 -1
  45. package/lib/zudoku.plugin-api-keys.js +150 -214
  46. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  47. package/lib/zudoku.plugin-custom-page.js +5 -6
  48. package/lib/zudoku.plugin-custom-page.js.map +1 -1
  49. package/lib/zudoku.plugin-markdown.js +12 -13
  50. package/lib/zudoku.plugin-markdown.js.map +1 -1
  51. package/lib/zudoku.plugin-openapi.js +7 -8
  52. package/lib/zudoku.plugin-openapi.js.map +1 -1
  53. package/lib/zudoku.plugin-search-inkeep.js +20 -21
  54. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  55. package/package.json +1 -1
  56. package/lib/AuthenticationPlugin-Bx9FK124.js +0 -55
  57. package/lib/CategoryHeading-XnFqN2lJ.js +0 -10
  58. package/lib/DeveloperHint-FBb2uXJe.js +0 -16
  59. package/lib/ErrorPage-knunPbKI.js +0 -18
  60. package/lib/Input-BEDZAKw0.js +0 -2198
  61. package/lib/MdxPage-BZyQsH8Z.js +0 -172
  62. package/lib/OperationList-2NeWEM0u.js +0 -560
  63. package/lib/Route-BZPewmrN.js +0 -14
  64. package/lib/SlotletProvider-DJMaOUDs.js +0 -238
  65. package/lib/Spinner-3cQDBVGr.js +0 -7
  66. package/lib/Spinner-3cQDBVGr.js.map +0 -1
  67. package/lib/index-BG0g4WW0.js +0 -1771
  68. package/lib/index-BG0g4WW0.js.map +0 -1
  69. package/lib/jsx-runtime-B6kdoens.js +0 -635
  70. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
@@ -1,11 +1,9 @@
1
- var Oo = Object.defineProperty;
2
- var sn = (e) => {
1
+ var on = (e) => {
3
2
  throw TypeError(e);
4
3
  };
5
- var Io = (e, t, n) => t in e ? Oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var J = (e, t, n) => Io(e, typeof t != "symbol" ? t + "" : t, n), ln = (e, t, n) => t.has(e) || sn("Cannot " + n);
7
- var b = (e, t, n) => (ln(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ae = (e, t, n) => t.has(e) ? sn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), G = (e, t, n, r) => (ln(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
- var it = (e, t, n, r) => ({
4
+ var sn = (e, t, n) => t.has(e) || on("Cannot " + n);
5
+ var b = (e, t, n) => (sn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ae = (e, t, n) => t.has(e) ? on("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), G = (e, t, n, r) => (sn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
6
+ var st = (e, t, n, r) => ({
9
7
  set _(a) {
10
8
  G(e, t, a, n);
11
9
  },
@@ -13,30 +11,29 @@ var it = (e, t, n, r) => ({
13
11
  return b(e, t, r);
14
12
  }
15
13
  });
16
- import { c as Rn, H as _t, M as Ao, d as ko, A as $o, b as Lo } from "./utils-ByIc_KIM.js";
17
- import { e as Fo, f as Ho, R as Uo, N as We, L as Ot, g as Bo, O as Dn, u as zo, b as It } from "./index-BG0g4WW0.js";
18
- import { E as jn, S as Pe, a as Ko, R as Vo } from "./SlotletProvider-DJMaOUDs.js";
19
- import { j as o } from "./jsx-runtime-B6kdoens.js";
20
- import { M as Qo, f as qo, c as Nn, o as Pn, A as Go, d as Ze, i as Wo, b as A, j as Yo, F as Xo, D as Jo, C as Zo, P as He, h as At, p as ea, r as Tn, R as ta, S as na, s as ra, g as oa, q as _n, l as aa, a as ht, u as On, V as In, m as cn, B as Rt } from "./index-Zezcv0xb.js";
21
- import { a as O, c as An, b as sa, T as ia, d as la, V as ca, u as kt, e as ua, C as da } from "./Markdown-B4aR03g6.js";
22
- import * as h from "react";
23
- import g, { StrictMode as kn, createContext as $n, Component as fa, createElement as un, isValidElement as ha, useState as Te, useLayoutEffect as pa, useEffect as be, useCallback as Ln, Suspense as Fn, memo as Hn, useMemo as xt, useContext as ma, Fragment as ga, useRef as $t, forwardRef as va } from "react";
14
+ import { c as Sn, H as _t, M as _a, d as Oa, A as Ia, b as Aa } from "./utils-B8R4grFM.js";
15
+ import { e as ka, f as $a, R as La, j as g, N as Ge, L as Ot, g as ja, O as Cn, u as Fa, b as It } from "./jsx-runtime-lNnQYwFN.js";
16
+ import { E as Dn, S as Pe, a as Ha, R as Ua } from "./SlotletProvider-CuB3Ts8r.js";
17
+ import { M as Ba, f as za, c as Nn, o as Pn, A as Ka, d as Je, i as Va, b as k, j as Qa, F as qa, D as Ga, C as Wa, P as Fe, h as At, p as Ya, r as Tn, R as Xa, S as Ja, s as Za, g as eo, q as _n, l as to, a as ft, u as On, V as In, m as cn, B as St } from "./index-BLvMkqjO.js";
18
+ import { a as I, c as An, b as no, T as ro, d as ao, V as oo, u as kt, e as so, C as io } from "./Markdown-CCNihH_N.js";
19
+ import * as c from "react";
20
+ import h, { StrictMode as kn, createContext as $n, Component as co, createElement as ln, isValidElement as lo, useState as Te, useLayoutEffect as uo, useEffect as we, useCallback as Ln, Suspense as jn, memo as Fn, useMemo as bt, useContext as fo, Fragment as mo, useRef as $t, forwardRef as po } from "react";
24
21
  import { a as Lt } from "./_commonjsHelpers-BkfeUUK-.js";
25
- import { z as wa } from "./router-D2p7Olpn.js";
26
- import { a as Dt, R as ba, T as xa, C as ya } from "./index-1EDgIO6b.js";
27
- import { S as Un, f as Bn, Q as Ma, n as ee, m as dn, g as fn, i as ve, j as Sa, k as Ea, l as Ca, o as Ra, p as hn, r as pn, q as Da, h as mn, t as gn, v as ja, u as Ue, b as Na, Z as Pa, w as Ta, c as zn, x as _a } from "./ZudokuContext-cr-pTRY1.js";
28
- import { j as Ft } from "./joinPath-B7kNnUX4.js";
29
- import { ChevronRightIcon as Kn, CheckIcon as Oa, DotIcon as Ia, CircleXIcon as Aa, MenuIcon as ka, SearchIcon as $a, MoonStarIcon as La, SunIcon as Fa, ExternalLinkIcon as Ha, PanelLeftIcon as Ua } from "lucide-react";
30
- import { c as Vn, P as gt, R as Ba, I as za, O as Ka, C as Va, T as Qa, a as qa, b as Ga, d as Wa, D as Ya, e as Xa, S as yt } from "./SidebarBadge-COz0hgfa.js";
31
- import { S as Ja } from "./Spinner-3cQDBVGr.js";
32
- function Za({ error: e }) {
33
- return /* @__PURE__ */ o.jsx(jn, { error: e });
22
+ import { z as ho } from "./router-D2p7Olpn.js";
23
+ import { a as Ct, R as go, T as vo, C as wo } from "./index-G1-TGLO1.js";
24
+ import { S as Hn, f as Un, Q as bo, n as Z, m as un, g as dn, i as ge, j as yo, k as Eo, l as Ro, o as xo, p as fn, r as mn, q as Mo, h as pn, t as hn, v as So, u as He, b as Co, Z as Do, w as No, c as Bn, x as Po } from "./ZudokuContext-JoyeA9dT.js";
25
+ import { j as jt } from "./joinPath-B7kNnUX4.js";
26
+ import { ChevronRightIcon as zn, CheckIcon as To, DotIcon as _o, CircleXIcon as Oo, MenuIcon as Io, SearchIcon as Ao, MoonStarIcon as ko, SunIcon as $o, ExternalLinkIcon as Lo, PanelLeftIcon as jo } from "lucide-react";
27
+ import { c as Kn, P as ht, R as Fo, I as Ho, O as Uo, C as Bo, T as zo, a as Ko, b as Vo, d as Qo, D as qo, e as Go, S as yt } from "./SidebarBadge-2JcxswKF.js";
28
+ import { S as Wo } from "./Spinner-BlxzaFFF.js";
29
+ function Yo({ error: e }) {
30
+ return /* @__PURE__ */ React.createElement(Dn, { error: e });
34
31
  }
35
- var et = {};
36
- const es = /* @__PURE__ */ Lt(wa), ts = /* @__PURE__ */ Lt(Fo), ns = /* @__PURE__ */ Lt(Ho);
37
- Object.defineProperty(et, "__esModule", { value: !0 });
38
- var rs = g, fe = es, Ht = ts, we = ns;
39
- function os(e) {
32
+ var Ze = {};
33
+ const Xo = /* @__PURE__ */ Lt(ho), Jo = /* @__PURE__ */ Lt(ka), Zo = /* @__PURE__ */ Lt($a);
34
+ Object.defineProperty(Ze, "__esModule", { value: !0 });
35
+ var es = h, de = Xo, Ft = Jo, ve = Zo;
36
+ function ts(e) {
40
37
  if (e && e.__esModule) return e;
41
38
  var t = /* @__PURE__ */ Object.create(null);
42
39
  return e && Object.keys(e).forEach(function(n) {
@@ -51,99 +48,99 @@ function os(e) {
51
48
  }
52
49
  }), t.default = e, Object.freeze(t);
53
50
  }
54
- var ue = /* @__PURE__ */ os(rs);
55
- function as({
51
+ var le = /* @__PURE__ */ ts(es);
52
+ function ns({
56
53
  basename: e,
57
54
  children: t,
58
55
  location: n = "/",
59
56
  future: r
60
57
  }) {
61
- typeof n == "string" && (n = we.parsePath(n));
62
- let a = fe.Action.Pop, s = {
58
+ typeof n == "string" && (n = ve.parsePath(n));
59
+ let a = de.Action.Pop, o = {
63
60
  pathname: n.pathname || "/",
64
61
  search: n.search || "",
65
62
  hash: n.hash || "",
66
63
  state: n.state != null ? n.state : null,
67
64
  key: n.key || "default"
68
- }, i = Qn();
69
- return /* @__PURE__ */ ue.createElement(we.Router, {
65
+ }, s = Vn();
66
+ return /* @__PURE__ */ le.createElement(ve.Router, {
70
67
  basename: e,
71
68
  children: t,
72
- location: s,
69
+ location: o,
73
70
  navigationType: a,
74
- navigator: i,
71
+ navigator: s,
75
72
  future: r,
76
73
  static: !0
77
74
  });
78
75
  }
79
- function ss({
76
+ function rs({
80
77
  context: e,
81
78
  router: t,
82
79
  hydrate: n = !0,
83
80
  nonce: r
84
81
  }) {
85
- t && e || (process.env.NODE_ENV !== "production" ? fe.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : fe.UNSAFE_invariant(!1));
82
+ t && e || (process.env.NODE_ENV !== "production" ? de.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : de.UNSAFE_invariant(!1));
86
83
  let a = {
87
84
  router: t,
88
- navigator: Qn(),
85
+ navigator: Vn(),
89
86
  static: !0,
90
87
  staticContext: e,
91
88
  basename: e.basename || "/"
92
- }, s = /* @__PURE__ */ new Map(), i = "";
89
+ }, o = /* @__PURE__ */ new Map(), s = "";
93
90
  if (n !== !1) {
94
91
  let u = {
95
92
  loaderData: e.loaderData,
96
93
  actionData: e.actionData,
97
- errors: ls(e.errors)
94
+ errors: os(e.errors)
98
95
  };
99
- i = `window.__staticRouterHydrationData = JSON.parse(${ps(JSON.stringify(JSON.stringify(u)))});`;
96
+ s = `window.__staticRouterHydrationData = JSON.parse(${ds(JSON.stringify(JSON.stringify(u)))});`;
100
97
  }
101
98
  let {
102
- state: l
99
+ state: i
103
100
  } = a.router;
104
- return /* @__PURE__ */ ue.createElement(ue.Fragment, null, /* @__PURE__ */ ue.createElement(we.UNSAFE_DataRouterContext.Provider, {
101
+ return /* @__PURE__ */ le.createElement(le.Fragment, null, /* @__PURE__ */ le.createElement(ve.UNSAFE_DataRouterContext.Provider, {
105
102
  value: a
106
- }, /* @__PURE__ */ ue.createElement(we.UNSAFE_DataRouterStateContext.Provider, {
107
- value: l
108
- }, /* @__PURE__ */ ue.createElement(we.UNSAFE_FetchersContext.Provider, {
109
- value: s
110
- }, /* @__PURE__ */ ue.createElement(we.UNSAFE_ViewTransitionContext.Provider, {
103
+ }, /* @__PURE__ */ le.createElement(ve.UNSAFE_DataRouterStateContext.Provider, {
104
+ value: i
105
+ }, /* @__PURE__ */ le.createElement(ve.UNSAFE_FetchersContext.Provider, {
106
+ value: o
107
+ }, /* @__PURE__ */ le.createElement(ve.UNSAFE_ViewTransitionContext.Provider, {
111
108
  value: {
112
109
  isTransitioning: !1
113
110
  }
114
- }, /* @__PURE__ */ ue.createElement(we.Router, {
111
+ }, /* @__PURE__ */ le.createElement(ve.Router, {
115
112
  basename: a.basename,
116
- location: l.location,
117
- navigationType: l.historyAction,
113
+ location: i.location,
114
+ navigationType: i.historyAction,
118
115
  navigator: a.navigator,
119
116
  static: a.static,
120
117
  future: {
121
118
  v7_relativeSplatPath: t.future.v7_relativeSplatPath
122
119
  }
123
- }, /* @__PURE__ */ ue.createElement(is, {
120
+ }, /* @__PURE__ */ le.createElement(as, {
124
121
  routes: t.routes,
125
122
  future: t.future,
126
- state: l
127
- })))))), i ? /* @__PURE__ */ ue.createElement("script", {
123
+ state: i
124
+ })))))), s ? /* @__PURE__ */ le.createElement("script", {
128
125
  suppressHydrationWarning: !0,
129
126
  nonce: r,
130
127
  dangerouslySetInnerHTML: {
131
- __html: i
128
+ __html: s
132
129
  }
133
130
  }) : null);
134
131
  }
135
- function is({
132
+ function as({
136
133
  routes: e,
137
134
  future: t,
138
135
  state: n
139
136
  }) {
140
- return Ht.UNSAFE_useRoutesImpl(e, void 0, n, t);
137
+ return Ft.UNSAFE_useRoutesImpl(e, void 0, n, t);
141
138
  }
142
- function ls(e) {
139
+ function os(e) {
143
140
  if (!e) return null;
144
141
  let t = Object.entries(e), n = {};
145
142
  for (let [r, a] of t)
146
- fe.isRouteErrorResponse(a) ? n[r] = {
143
+ de.isRouteErrorResponse(a) ? n[r] = {
147
144
  ...a,
148
145
  __type: "RouteErrorResponse"
149
146
  } : a instanceof Error ? n[r] = {
@@ -157,10 +154,10 @@ function ls(e) {
157
154
  } : n[r] = a;
158
155
  return n;
159
156
  }
160
- function Qn() {
157
+ function Vn() {
161
158
  return {
162
- createHref: qn,
163
- encodeLocation: Gn,
159
+ createHref: Qn,
160
+ encodeLocation: qn,
164
161
  push(e) {
165
162
  throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
166
163
  },
@@ -178,30 +175,30 @@ function Qn() {
178
175
  }
179
176
  };
180
177
  }
181
- function cs(e, t) {
182
- return fe.createStaticHandler(e, {
178
+ function ss(e, t) {
179
+ return de.createStaticHandler(e, {
183
180
  ...t,
184
- mapRouteProperties: Ht.UNSAFE_mapRouteProperties
181
+ mapRouteProperties: Ft.UNSAFE_mapRouteProperties
185
182
  });
186
183
  }
187
- function us(e, t, n = {}) {
188
- let r = {}, a = fe.UNSAFE_convertRoutesToDataRoutes(e, Ht.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
189
- let u = r[l.route.id] || l.route;
184
+ function is(e, t, n = {}) {
185
+ let r = {}, a = de.UNSAFE_convertRoutesToDataRoutes(e, Ft.UNSAFE_mapRouteProperties, void 0, r), o = t.matches.map((i) => {
186
+ let u = r[i.route.id] || i.route;
190
187
  return {
191
- ...l,
188
+ ...i,
192
189
  route: u
193
190
  };
194
- }), i = (l) => `You cannot use router.${l}() on the server because it is a stateless environment`;
191
+ }), s = (i) => `You cannot use router.${i}() on the server because it is a stateless environment`;
195
192
  return {
196
193
  get basename() {
197
194
  return t.basename;
198
195
  },
199
196
  get future() {
200
- var l, u;
197
+ var i, u;
201
198
  return {
202
199
  v7_fetcherPersist: !1,
203
200
  v7_normalizeFormMethod: !1,
204
- v7_partialHydration: ((l = n.future) == null ? void 0 : l.v7_partialHydration) === !0,
201
+ v7_partialHydration: ((i = n.future) == null ? void 0 : i.v7_partialHydration) === !0,
205
202
  v7_prependBasename: !1,
206
203
  v7_relativeSplatPath: ((u = n.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
207
204
  v7_skipActionErrorRevalidation: !1
@@ -209,14 +206,14 @@ function us(e, t, n = {}) {
209
206
  },
210
207
  get state() {
211
208
  return {
212
- historyAction: fe.Action.Pop,
209
+ historyAction: de.Action.Pop,
213
210
  location: t.location,
214
- matches: s,
211
+ matches: o,
215
212
  loaderData: t.loaderData,
216
213
  actionData: t.actionData,
217
214
  errors: t.errors,
218
215
  initialized: !0,
219
- navigation: fe.IDLE_NAVIGATION,
216
+ navigation: de.IDLE_NAVIGATION,
220
217
  restoreScrollPosition: null,
221
218
  preventScrollReset: !1,
222
219
  revalidation: "idle",
@@ -230,217 +227,217 @@ function us(e, t, n = {}) {
230
227
  get window() {
231
228
  },
232
229
  initialize() {
233
- throw i("initialize");
230
+ throw s("initialize");
234
231
  },
235
232
  subscribe() {
236
- throw i("subscribe");
233
+ throw s("subscribe");
237
234
  },
238
235
  enableScrollRestoration() {
239
- throw i("enableScrollRestoration");
236
+ throw s("enableScrollRestoration");
240
237
  },
241
238
  navigate() {
242
- throw i("navigate");
239
+ throw s("navigate");
243
240
  },
244
241
  fetch() {
245
- throw i("fetch");
242
+ throw s("fetch");
246
243
  },
247
244
  revalidate() {
248
- throw i("revalidate");
245
+ throw s("revalidate");
249
246
  },
250
- createHref: qn,
251
- encodeLocation: Gn,
247
+ createHref: Qn,
248
+ encodeLocation: qn,
252
249
  getFetcher() {
253
- return fe.IDLE_FETCHER;
250
+ return de.IDLE_FETCHER;
254
251
  },
255
252
  deleteFetcher() {
256
- throw i("deleteFetcher");
253
+ throw s("deleteFetcher");
257
254
  },
258
255
  dispose() {
259
- throw i("dispose");
256
+ throw s("dispose");
260
257
  },
261
258
  getBlocker() {
262
- return fe.IDLE_BLOCKER;
259
+ return de.IDLE_BLOCKER;
263
260
  },
264
261
  deleteBlocker() {
265
- throw i("deleteBlocker");
262
+ throw s("deleteBlocker");
266
263
  },
267
264
  patchRoutes() {
268
- throw i("patchRoutes");
265
+ throw s("patchRoutes");
269
266
  },
270
267
  _internalFetchControllers: /* @__PURE__ */ new Map(),
271
268
  _internalActiveDeferreds: /* @__PURE__ */ new Map(),
272
269
  _internalSetRoutes() {
273
- throw i("_internalSetRoutes");
270
+ throw s("_internalSetRoutes");
274
271
  }
275
272
  };
276
273
  }
277
- function qn(e) {
278
- return typeof e == "string" ? e : we.createPath(e);
274
+ function Qn(e) {
275
+ return typeof e == "string" ? e : ve.createPath(e);
279
276
  }
280
- function Gn(e) {
281
- let t = typeof e == "string" ? e : we.createPath(e);
277
+ function qn(e) {
278
+ let t = typeof e == "string" ? e : ve.createPath(e);
282
279
  t = t.replace(/ $/, "%20");
283
- let n = ds.test(t) ? new URL(t) : new URL(t, "http://localhost");
280
+ let n = cs.test(t) ? new URL(t) : new URL(t, "http://localhost");
284
281
  return {
285
282
  pathname: n.pathname,
286
283
  search: n.search,
287
284
  hash: n.hash
288
285
  };
289
286
  }
290
- const ds = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, fs = {
287
+ const cs = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ls = {
291
288
  "&": "\\u0026",
292
289
  ">": "\\u003e",
293
290
  "<": "\\u003c",
294
291
  "\u2028": "\\u2028",
295
292
  "\u2029": "\\u2029"
296
- }, hs = /[&><\u2028\u2029]/g;
297
- function ps(e) {
298
- return e.replace(hs, (t) => fs[t]);
293
+ }, us = /[&><\u2028\u2029]/g;
294
+ function ds(e) {
295
+ return e.replace(us, (t) => ls[t]);
299
296
  }
300
- et.StaticRouter = as;
301
- var ms = et.StaticRouterProvider = ss;
302
- et.createStaticHandler = cs;
303
- et.createStaticRouter = us;
304
- const gs = ({
297
+ Ze.StaticRouter = ns;
298
+ var fs = Ze.StaticRouterProvider = rs;
299
+ Ze.createStaticHandler = ss;
300
+ Ze.createStaticRouter = is;
301
+ const ms = ({
305
302
  router: e,
306
303
  hydrate: t = !1
307
- }) => /* @__PURE__ */ o.jsx(kn, { children: /* @__PURE__ */ o.jsx(Rn, { children: /* @__PURE__ */ o.jsx(Dt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ o.jsx(Uo, { router: e }) }) }) }), vs = ({
304
+ }) => /* @__PURE__ */ React.createElement(kn, null, /* @__PURE__ */ React.createElement(Sn, null, /* @__PURE__ */ React.createElement(Ct.Provider, { value: { stagger: !t } }, /* @__PURE__ */ React.createElement(La, { router: e })))), ps = ({
308
305
  router: e,
309
306
  context: t,
310
307
  helmetContext: n
311
- }) => /* @__PURE__ */ o.jsx(kn, { children: /* @__PURE__ */ o.jsx(Rn, { context: n, children: /* @__PURE__ */ o.jsx(ms, { router: e, context: t }) }) });
312
- var de, Sn, ws = (Sn = class extends Un {
308
+ }) => /* @__PURE__ */ React.createElement(kn, null, /* @__PURE__ */ React.createElement(Sn, { context: n }, /* @__PURE__ */ React.createElement(fs, { router: e, context: t })));
309
+ var ue, Rn, hs = (Rn = class extends Hn {
313
310
  constructor(t = {}) {
314
311
  super();
315
- ae(this, de);
316
- this.config = t, G(this, de, /* @__PURE__ */ new Map());
312
+ ae(this, ue);
313
+ this.config = t, G(this, ue, /* @__PURE__ */ new Map());
317
314
  }
318
315
  build(t, n, r) {
319
- const a = n.queryKey, s = n.queryHash ?? Bn(a, n);
320
- let i = this.get(s);
321
- return i || (i = new Ma({
316
+ const a = n.queryKey, o = n.queryHash ?? Un(a, n);
317
+ let s = this.get(o);
318
+ return s || (s = new bo({
322
319
  cache: this,
323
320
  queryKey: a,
324
- queryHash: s,
321
+ queryHash: o,
325
322
  options: t.defaultQueryOptions(n),
326
323
  state: r,
327
324
  defaultOptions: t.getQueryDefaults(a)
328
- }), this.add(i)), i;
325
+ }), this.add(s)), s;
329
326
  }
330
327
  add(t) {
331
- b(this, de).has(t.queryHash) || (b(this, de).set(t.queryHash, t), this.notify({
328
+ b(this, ue).has(t.queryHash) || (b(this, ue).set(t.queryHash, t), this.notify({
332
329
  type: "added",
333
330
  query: t
334
331
  }));
335
332
  }
336
333
  remove(t) {
337
- const n = b(this, de).get(t.queryHash);
338
- n && (t.destroy(), n === t && b(this, de).delete(t.queryHash), this.notify({ type: "removed", query: t }));
334
+ const n = b(this, ue).get(t.queryHash);
335
+ n && (t.destroy(), n === t && b(this, ue).delete(t.queryHash), this.notify({ type: "removed", query: t }));
339
336
  }
340
337
  clear() {
341
- ee.batch(() => {
338
+ Z.batch(() => {
342
339
  this.getAll().forEach((t) => {
343
340
  this.remove(t);
344
341
  });
345
342
  });
346
343
  }
347
344
  get(t) {
348
- return b(this, de).get(t);
345
+ return b(this, ue).get(t);
349
346
  }
350
347
  getAll() {
351
- return [...b(this, de).values()];
348
+ return [...b(this, ue).values()];
352
349
  }
353
350
  find(t) {
354
351
  const n = { exact: !0, ...t };
355
352
  return this.getAll().find(
356
- (r) => dn(n, r)
353
+ (r) => un(n, r)
357
354
  );
358
355
  }
359
356
  findAll(t = {}) {
360
357
  const n = this.getAll();
361
- return Object.keys(t).length > 0 ? n.filter((r) => dn(t, r)) : n;
358
+ return Object.keys(t).length > 0 ? n.filter((r) => un(t, r)) : n;
362
359
  }
363
360
  notify(t) {
364
- ee.batch(() => {
361
+ Z.batch(() => {
365
362
  this.listeners.forEach((n) => {
366
363
  n(t);
367
364
  });
368
365
  });
369
366
  }
370
367
  onFocus() {
371
- ee.batch(() => {
368
+ Z.batch(() => {
372
369
  this.getAll().forEach((t) => {
373
370
  t.onFocus();
374
371
  });
375
372
  });
376
373
  }
377
374
  onOnline() {
378
- ee.batch(() => {
375
+ Z.batch(() => {
379
376
  this.getAll().forEach((t) => {
380
377
  t.onOnline();
381
378
  });
382
379
  });
383
380
  }
384
- }, de = new WeakMap(), Sn), Z, Je, En, bs = (En = class extends Un {
381
+ }, ue = new WeakMap(), Rn), J, Xe, xn, gs = (xn = class extends Hn {
385
382
  constructor(t = {}) {
386
383
  super();
387
- ae(this, Z);
388
- ae(this, Je);
389
- this.config = t, G(this, Z, /* @__PURE__ */ new Map()), G(this, Je, Date.now());
384
+ ae(this, J);
385
+ ae(this, Xe);
386
+ this.config = t, G(this, J, /* @__PURE__ */ new Map()), G(this, Xe, Date.now());
390
387
  }
391
388
  build(t, n, r) {
392
- const a = new Qo({
389
+ const a = new Ba({
393
390
  mutationCache: this,
394
- mutationId: ++it(this, Je)._,
391
+ mutationId: ++st(this, Xe)._,
395
392
  options: t.defaultMutationOptions(n),
396
393
  state: r
397
394
  });
398
395
  return this.add(a), a;
399
396
  }
400
397
  add(t) {
401
- const n = lt(t), r = b(this, Z).get(n) ?? [];
402
- r.push(t), b(this, Z).set(n, r), this.notify({ type: "added", mutation: t });
398
+ const n = it(t), r = b(this, J).get(n) ?? [];
399
+ r.push(t), b(this, J).set(n, r), this.notify({ type: "added", mutation: t });
403
400
  }
404
401
  remove(t) {
405
402
  var r;
406
- const n = lt(t);
407
- if (b(this, Z).has(n)) {
408
- const a = (r = b(this, Z).get(n)) == null ? void 0 : r.filter((s) => s !== t);
409
- a && (a.length === 0 ? b(this, Z).delete(n) : b(this, Z).set(n, a));
403
+ const n = it(t);
404
+ if (b(this, J).has(n)) {
405
+ const a = (r = b(this, J).get(n)) == null ? void 0 : r.filter((o) => o !== t);
406
+ a && (a.length === 0 ? b(this, J).delete(n) : b(this, J).set(n, a));
410
407
  }
411
408
  this.notify({ type: "removed", mutation: t });
412
409
  }
413
410
  canRun(t) {
414
411
  var r;
415
- const n = (r = b(this, Z).get(lt(t))) == null ? void 0 : r.find((a) => a.state.status === "pending");
412
+ const n = (r = b(this, J).get(it(t))) == null ? void 0 : r.find((a) => a.state.status === "pending");
416
413
  return !n || n === t;
417
414
  }
418
415
  runNext(t) {
419
416
  var r;
420
- const n = (r = b(this, Z).get(lt(t))) == null ? void 0 : r.find((a) => a !== t && a.state.isPaused);
417
+ const n = (r = b(this, J).get(it(t))) == null ? void 0 : r.find((a) => a !== t && a.state.isPaused);
421
418
  return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
422
419
  }
423
420
  clear() {
424
- ee.batch(() => {
421
+ Z.batch(() => {
425
422
  this.getAll().forEach((t) => {
426
423
  this.remove(t);
427
424
  });
428
425
  });
429
426
  }
430
427
  getAll() {
431
- return [...b(this, Z).values()].flat();
428
+ return [...b(this, J).values()].flat();
432
429
  }
433
430
  find(t) {
434
431
  const n = { exact: !0, ...t };
435
432
  return this.getAll().find(
436
- (r) => fn(n, r)
433
+ (r) => dn(n, r)
437
434
  );
438
435
  }
439
436
  findAll(t = {}) {
440
- return this.getAll().filter((n) => fn(t, n));
437
+ return this.getAll().filter((n) => dn(t, n));
441
438
  }
442
439
  notify(t) {
443
- ee.batch(() => {
440
+ Z.batch(() => {
444
441
  this.listeners.forEach((n) => {
445
442
  n(t);
446
443
  });
@@ -448,74 +445,74 @@ var de, Sn, ws = (Sn = class extends Un {
448
445
  }
449
446
  resumePausedMutations() {
450
447
  const t = this.getAll().filter((n) => n.state.isPaused);
451
- return ee.batch(
448
+ return Z.batch(
452
449
  () => Promise.all(
453
- t.map((n) => n.continue().catch(ve))
450
+ t.map((n) => n.continue().catch(ge))
454
451
  )
455
452
  );
456
453
  }
457
- }, Z = new WeakMap(), Je = new WeakMap(), En);
458
- function lt(e) {
454
+ }, J = new WeakMap(), Xe = new WeakMap(), xn);
455
+ function it(e) {
459
456
  var t;
460
457
  return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
461
458
  }
462
- function xs(e) {
459
+ function vs(e) {
463
460
  return {
464
461
  onFetch: (t, n) => {
465
462
  const r = async () => {
466
- var y, R, K, H, q;
467
- const a = t.options, s = (K = (R = (y = t.fetchOptions) == null ? void 0 : y.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : K.direction, i = ((H = t.state.data) == null ? void 0 : H.pages) || [], l = ((q = t.state.data) == null ? void 0 : q.pageParams) || [], u = { pages: [], pageParams: [] };
463
+ var E, C, K, H, q;
464
+ const a = t.options, o = (K = (C = (E = t.fetchOptions) == null ? void 0 : E.meta) == null ? void 0 : C.fetchMore) == null ? void 0 : K.direction, s = ((H = t.state.data) == null ? void 0 : H.pages) || [], i = ((q = t.state.data) == null ? void 0 : q.pageParams) || [], u = { pages: [], pageParams: [] };
468
465
  let v = !1;
469
- const m = (x) => {
470
- Object.defineProperty(x, "signal", {
466
+ const p = (y) => {
467
+ Object.defineProperty(y, "signal", {
471
468
  enumerable: !0,
472
469
  get: () => (t.signal.aborted ? v = !0 : t.signal.addEventListener("abort", () => {
473
470
  v = !0;
474
471
  }), t.signal)
475
472
  });
476
- }, c = Sa(t.options, t.fetchOptions), d = async (x, p, C) => {
473
+ }, l = yo(t.options, t.fetchOptions), d = async (y, m, S) => {
477
474
  if (v)
478
475
  return Promise.reject();
479
- if (p == null && x.pages.length)
480
- return Promise.resolve(x);
481
- const N = {
476
+ if (m == null && y.pages.length)
477
+ return Promise.resolve(y);
478
+ const P = {
482
479
  queryKey: t.queryKey,
483
- pageParam: p,
484
- direction: C ? "backward" : "forward",
480
+ pageParam: m,
481
+ direction: S ? "backward" : "forward",
485
482
  meta: t.options.meta
486
483
  };
487
- m(N);
488
- const P = await c(
489
- N
490
- ), { maxPages: _ } = t.options, w = C ? Ea : Ca;
484
+ p(P);
485
+ const T = await l(
486
+ P
487
+ ), { maxPages: O } = t.options, w = S ? Eo : Ro;
491
488
  return {
492
- pages: w(x.pages, P, _),
493
- pageParams: w(x.pageParams, p, _)
489
+ pages: w(y.pages, T, O),
490
+ pageParams: w(y.pageParams, m, O)
494
491
  };
495
492
  };
496
493
  let f;
497
- if (s && i.length) {
498
- const x = s === "backward", p = x ? ys : vn, C = {
499
- pages: i,
500
- pageParams: l
501
- }, N = p(a, C);
502
- f = await d(C, N, x);
494
+ if (o && s.length) {
495
+ const y = o === "backward", m = y ? ws : gn, S = {
496
+ pages: s,
497
+ pageParams: i
498
+ }, P = m(a, S);
499
+ f = await d(S, P, y);
503
500
  } else {
504
501
  f = await d(
505
502
  u,
506
- l[0] ?? a.initialPageParam
503
+ i[0] ?? a.initialPageParam
507
504
  );
508
- const x = e ?? i.length;
509
- for (let p = 1; p < x; p++) {
510
- const C = vn(a, f);
511
- f = await d(f, C);
505
+ const y = e ?? s.length;
506
+ for (let m = 1; m < y; m++) {
507
+ const S = gn(a, f);
508
+ f = await d(f, S);
512
509
  }
513
510
  }
514
511
  return f;
515
512
  };
516
513
  t.options.persister ? t.fetchFn = () => {
517
- var a, s;
518
- return (s = (a = t.options).persister) == null ? void 0 : s.call(
514
+ var a, o;
515
+ return (o = (a = t.options).persister) == null ? void 0 : o.call(
519
516
  a,
520
517
  r,
521
518
  {
@@ -529,7 +526,7 @@ function xs(e) {
529
526
  }
530
527
  };
531
528
  }
532
- function vn(e, { pages: t, pageParams: n }) {
529
+ function gn(e, { pages: t, pageParams: n }) {
533
530
  const r = t.length - 1;
534
531
  return e.getNextPageParam(
535
532
  t[r],
@@ -538,7 +535,7 @@ function vn(e, { pages: t, pageParams: n }) {
538
535
  n
539
536
  );
540
537
  }
541
- function ys(e, { pages: t, pageParams: n }) {
538
+ function ws(e, { pages: t, pageParams: n }) {
542
539
  var r;
543
540
  return (r = e.getPreviousPageParam) == null ? void 0 : r.call(
544
541
  e,
@@ -548,65 +545,65 @@ function ys(e, { pages: t, pageParams: n }) {
548
545
  n
549
546
  );
550
547
  }
551
- var $, Se, Ee, ke, $e, Ce, Le, Fe, Cn, Ms = (Cn = class {
548
+ var L, Re, xe, ke, $e, Me, Le, je, Mn, bs = (Mn = class {
552
549
  constructor(e = {}) {
553
- ae(this, $);
554
- ae(this, Se);
555
- ae(this, Ee);
550
+ ae(this, L);
551
+ ae(this, Re);
552
+ ae(this, xe);
556
553
  ae(this, ke);
557
554
  ae(this, $e);
558
- ae(this, Ce);
555
+ ae(this, Me);
559
556
  ae(this, Le);
560
- ae(this, Fe);
561
- G(this, $, e.queryCache || new ws()), G(this, Se, e.mutationCache || new bs()), G(this, Ee, e.defaultOptions || {}), G(this, ke, /* @__PURE__ */ new Map()), G(this, $e, /* @__PURE__ */ new Map()), G(this, Ce, 0);
557
+ ae(this, je);
558
+ G(this, L, e.queryCache || new hs()), G(this, Re, e.mutationCache || new gs()), G(this, xe, e.defaultOptions || {}), G(this, ke, /* @__PURE__ */ new Map()), G(this, $e, /* @__PURE__ */ new Map()), G(this, Me, 0);
562
559
  }
563
560
  mount() {
564
- it(this, Ce)._++, b(this, Ce) === 1 && (G(this, Le, Ra.subscribe(async (e) => {
565
- e && (await this.resumePausedMutations(), b(this, $).onFocus());
566
- })), G(this, Fe, hn.subscribe(async (e) => {
567
- e && (await this.resumePausedMutations(), b(this, $).onOnline());
561
+ st(this, Me)._++, b(this, Me) === 1 && (G(this, Le, xo.subscribe(async (e) => {
562
+ e && (await this.resumePausedMutations(), b(this, L).onFocus());
563
+ })), G(this, je, fn.subscribe(async (e) => {
564
+ e && (await this.resumePausedMutations(), b(this, L).onOnline());
568
565
  })));
569
566
  }
570
567
  unmount() {
571
568
  var e, t;
572
- it(this, Ce)._--, b(this, Ce) === 0 && ((e = b(this, Le)) == null || e.call(this), G(this, Le, void 0), (t = b(this, Fe)) == null || t.call(this), G(this, Fe, void 0));
569
+ st(this, Me)._--, b(this, Me) === 0 && ((e = b(this, Le)) == null || e.call(this), G(this, Le, void 0), (t = b(this, je)) == null || t.call(this), G(this, je, void 0));
573
570
  }
574
571
  isFetching(e) {
575
- return b(this, $).findAll({ ...e, fetchStatus: "fetching" }).length;
572
+ return b(this, L).findAll({ ...e, fetchStatus: "fetching" }).length;
576
573
  }
577
574
  isMutating(e) {
578
- return b(this, Se).findAll({ ...e, status: "pending" }).length;
575
+ return b(this, Re).findAll({ ...e, status: "pending" }).length;
579
576
  }
580
577
  getQueryData(e) {
581
578
  var n;
582
579
  const t = this.defaultQueryOptions({ queryKey: e });
583
- return (n = b(this, $).get(t.queryHash)) == null ? void 0 : n.state.data;
580
+ return (n = b(this, L).get(t.queryHash)) == null ? void 0 : n.state.data;
584
581
  }
585
582
  ensureQueryData(e) {
586
583
  const t = this.getQueryData(e.queryKey);
587
584
  if (t === void 0)
588
585
  return this.fetchQuery(e);
589
586
  {
590
- const n = this.defaultQueryOptions(e), r = b(this, $).build(this, n);
591
- return e.revalidateIfStale && r.isStaleByTime(pn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
587
+ const n = this.defaultQueryOptions(e), r = b(this, L).build(this, n);
588
+ return e.revalidateIfStale && r.isStaleByTime(mn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
592
589
  }
593
590
  }
594
591
  getQueriesData(e) {
595
- return b(this, $).findAll(e).map(({ queryKey: t, state: n }) => {
592
+ return b(this, L).findAll(e).map(({ queryKey: t, state: n }) => {
596
593
  const r = n.data;
597
594
  return [t, r];
598
595
  });
599
596
  }
600
597
  setQueryData(e, t, n) {
601
- const r = this.defaultQueryOptions({ queryKey: e }), a = b(this, $).get(
598
+ const r = this.defaultQueryOptions({ queryKey: e }), a = b(this, L).get(
602
599
  r.queryHash
603
- ), s = a == null ? void 0 : a.state.data, i = Da(t, s);
604
- if (i !== void 0)
605
- return b(this, $).build(this, r).setData(i, { ...n, manual: !0 });
600
+ ), o = a == null ? void 0 : a.state.data, s = Mo(t, o);
601
+ if (s !== void 0)
602
+ return b(this, L).build(this, r).setData(s, { ...n, manual: !0 });
606
603
  }
607
604
  setQueriesData(e, t, n) {
608
- return ee.batch(
609
- () => b(this, $).findAll(e).map(({ queryKey: r }) => [
605
+ return Z.batch(
606
+ () => b(this, L).findAll(e).map(({ queryKey: r }) => [
610
607
  r,
611
608
  this.setQueryData(r, t, n)
612
609
  ])
@@ -615,34 +612,34 @@ var $, Se, Ee, ke, $e, Ce, Le, Fe, Cn, Ms = (Cn = class {
615
612
  getQueryState(e) {
616
613
  var n;
617
614
  const t = this.defaultQueryOptions({ queryKey: e });
618
- return (n = b(this, $).get(t.queryHash)) == null ? void 0 : n.state;
615
+ return (n = b(this, L).get(t.queryHash)) == null ? void 0 : n.state;
619
616
  }
620
617
  removeQueries(e) {
621
- const t = b(this, $);
622
- ee.batch(() => {
618
+ const t = b(this, L);
619
+ Z.batch(() => {
623
620
  t.findAll(e).forEach((n) => {
624
621
  t.remove(n);
625
622
  });
626
623
  });
627
624
  }
628
625
  resetQueries(e, t) {
629
- const n = b(this, $), r = {
626
+ const n = b(this, L), r = {
630
627
  type: "active",
631
628
  ...e
632
629
  };
633
- return ee.batch(() => (n.findAll(e).forEach((a) => {
630
+ return Z.batch(() => (n.findAll(e).forEach((a) => {
634
631
  a.reset();
635
632
  }), this.refetchQueries(r, t)));
636
633
  }
637
634
  cancelQueries(e = {}, t = {}) {
638
- const n = { revert: !0, ...t }, r = ee.batch(
639
- () => b(this, $).findAll(e).map((a) => a.cancel(n))
635
+ const n = { revert: !0, ...t }, r = Z.batch(
636
+ () => b(this, L).findAll(e).map((a) => a.cancel(n))
640
637
  );
641
- return Promise.all(r).then(ve).catch(ve);
638
+ return Promise.all(r).then(ge).catch(ge);
642
639
  }
643
640
  invalidateQueries(e = {}, t = {}) {
644
- return ee.batch(() => {
645
- if (b(this, $).findAll(e).forEach((r) => {
641
+ return Z.batch(() => {
642
+ if (b(this, L).findAll(e).forEach((r) => {
646
643
  r.invalidate();
647
644
  }), e.refetchType === "none")
648
645
  return Promise.resolve();
@@ -657,48 +654,48 @@ var $, Se, Ee, ke, $e, Ce, Le, Fe, Cn, Ms = (Cn = class {
657
654
  const n = {
658
655
  ...t,
659
656
  cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
660
- }, r = ee.batch(
661
- () => b(this, $).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
662
- let s = a.fetch(void 0, n);
663
- return n.throwOnError || (s = s.catch(ve)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
657
+ }, r = Z.batch(
658
+ () => b(this, L).findAll(e).filter((a) => !a.isDisabled()).map((a) => {
659
+ let o = a.fetch(void 0, n);
660
+ return n.throwOnError || (o = o.catch(ge)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
664
661
  })
665
662
  );
666
- return Promise.all(r).then(ve);
663
+ return Promise.all(r).then(ge);
667
664
  }
668
665
  fetchQuery(e) {
669
666
  const t = this.defaultQueryOptions(e);
670
667
  t.retry === void 0 && (t.retry = !1);
671
- const n = b(this, $).build(this, t);
668
+ const n = b(this, L).build(this, t);
672
669
  return n.isStaleByTime(
673
- pn(t.staleTime, n)
670
+ mn(t.staleTime, n)
674
671
  ) ? n.fetch(t) : Promise.resolve(n.state.data);
675
672
  }
676
673
  prefetchQuery(e) {
677
- return this.fetchQuery(e).then(ve).catch(ve);
674
+ return this.fetchQuery(e).then(ge).catch(ge);
678
675
  }
679
676
  fetchInfiniteQuery(e) {
680
- return e.behavior = xs(e.pages), this.fetchQuery(e);
677
+ return e.behavior = vs(e.pages), this.fetchQuery(e);
681
678
  }
682
679
  prefetchInfiniteQuery(e) {
683
- return this.fetchInfiniteQuery(e).then(ve).catch(ve);
680
+ return this.fetchInfiniteQuery(e).then(ge).catch(ge);
684
681
  }
685
682
  resumePausedMutations() {
686
- return hn.isOnline() ? b(this, Se).resumePausedMutations() : Promise.resolve();
683
+ return fn.isOnline() ? b(this, Re).resumePausedMutations() : Promise.resolve();
687
684
  }
688
685
  getQueryCache() {
689
- return b(this, $);
686
+ return b(this, L);
690
687
  }
691
688
  getMutationCache() {
692
- return b(this, Se);
689
+ return b(this, Re);
693
690
  }
694
691
  getDefaultOptions() {
695
- return b(this, Ee);
692
+ return b(this, xe);
696
693
  }
697
694
  setDefaultOptions(e) {
698
- G(this, Ee, e);
695
+ G(this, xe, e);
699
696
  }
700
697
  setQueryDefaults(e, t) {
701
- b(this, ke).set(mn(e), {
698
+ b(this, ke).set(pn(e), {
702
699
  queryKey: e,
703
700
  defaultOptions: t
704
701
  });
@@ -707,11 +704,11 @@ var $, Se, Ee, ke, $e, Ce, Le, Fe, Cn, Ms = (Cn = class {
707
704
  const t = [...b(this, ke).values()];
708
705
  let n = {};
709
706
  return t.forEach((r) => {
710
- gn(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
707
+ hn(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
711
708
  }), n;
712
709
  }
713
710
  setMutationDefaults(e, t) {
714
- b(this, $e).set(mn(e), {
711
+ b(this, $e).set(pn(e), {
715
712
  mutationKey: e,
716
713
  defaultOptions: t
717
714
  });
@@ -720,42 +717,42 @@ var $, Se, Ee, ke, $e, Ce, Le, Fe, Cn, Ms = (Cn = class {
720
717
  const t = [...b(this, $e).values()];
721
718
  let n = {};
722
719
  return t.forEach((r) => {
723
- gn(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
720
+ hn(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
724
721
  }), n;
725
722
  }
726
723
  defaultQueryOptions(e) {
727
724
  if (e._defaulted)
728
725
  return e;
729
726
  const t = {
730
- ...b(this, Ee).queries,
727
+ ...b(this, xe).queries,
731
728
  ...this.getQueryDefaults(e.queryKey),
732
729
  ...e,
733
730
  _defaulted: !0
734
731
  };
735
- return t.queryHash || (t.queryHash = Bn(
732
+ return t.queryHash || (t.queryHash = Un(
736
733
  t.queryKey,
737
734
  t
738
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === ja && (t.enabled = !1), t;
735
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === So && (t.enabled = !1), t;
739
736
  }
740
737
  defaultMutationOptions(e) {
741
738
  return e != null && e._defaulted ? e : {
742
- ...b(this, Ee).mutations,
739
+ ...b(this, xe).mutations,
743
740
  ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
744
741
  ...e,
745
742
  _defaulted: !0
746
743
  };
747
744
  }
748
745
  clear() {
749
- b(this, $).clear(), b(this, Se).clear();
746
+ b(this, L).clear(), b(this, Re).clear();
750
747
  }
751
- }, $ = new WeakMap(), Se = new WeakMap(), Ee = new WeakMap(), ke = new WeakMap(), $e = new WeakMap(), Ce = new WeakMap(), Le = new WeakMap(), Fe = new WeakMap(), Cn);
752
- const Ss = $n(null), Mt = {
748
+ }, L = new WeakMap(), Re = new WeakMap(), xe = new WeakMap(), ke = new WeakMap(), $e = new WeakMap(), Me = new WeakMap(), Le = new WeakMap(), je = new WeakMap(), Mn);
749
+ const ys = $n(null), Et = {
753
750
  didCatch: !1,
754
751
  error: null
755
752
  };
756
- class Es extends fa {
753
+ class Es extends co {
757
754
  constructor(t) {
758
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Mt;
755
+ super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Et;
759
756
  }
760
757
  static getDerivedStateFromError(t) {
761
758
  return {
@@ -768,12 +765,12 @@ class Es extends fa {
768
765
  error: t
769
766
  } = this.state;
770
767
  if (t !== null) {
771
- for (var n, r, a = arguments.length, s = new Array(a), i = 0; i < a; i++)
772
- s[i] = arguments[i];
768
+ for (var n, r, a = arguments.length, o = new Array(a), s = 0; s < a; s++)
769
+ o[s] = arguments[s];
773
770
  (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
774
- args: s,
771
+ args: o,
775
772
  reason: "imperative-api"
776
- }), this.setState(Mt);
773
+ }), this.setState(Et);
777
774
  }
778
775
  }
779
776
  componentDidCatch(t, n) {
@@ -786,13 +783,13 @@ class Es extends fa {
786
783
  } = this.state, {
787
784
  resetKeys: a
788
785
  } = this.props;
789
- if (r && n.error !== null && Cs(t.resetKeys, a)) {
790
- var s, i;
791
- (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
786
+ if (r && n.error !== null && Rs(t.resetKeys, a)) {
787
+ var o, s;
788
+ (o = (s = this.props).onReset) === null || o === void 0 || o.call(s, {
792
789
  next: a,
793
790
  prev: t.resetKeys,
794
791
  reason: "keys"
795
- }), this.setState(Mt);
792
+ }), this.setState(Et);
796
793
  }
797
794
  }
798
795
  render() {
@@ -802,171 +799,159 @@ class Es extends fa {
802
799
  FallbackComponent: r,
803
800
  fallback: a
804
801
  } = this.props, {
805
- didCatch: s,
806
- error: i
802
+ didCatch: o,
803
+ error: s
807
804
  } = this.state;
808
- let l = t;
809
- if (s) {
805
+ let i = t;
806
+ if (o) {
810
807
  const u = {
811
- error: i,
808
+ error: s,
812
809
  resetErrorBoundary: this.resetErrorBoundary
813
810
  };
814
811
  if (typeof n == "function")
815
- l = n(u);
812
+ i = n(u);
816
813
  else if (r)
817
- l = un(r, u);
818
- else if (a === null || ha(a))
819
- l = a;
814
+ i = ln(r, u);
815
+ else if (a === null || lo(a))
816
+ i = a;
820
817
  else
821
- throw i;
818
+ throw s;
822
819
  }
823
- return un(Ss.Provider, {
820
+ return ln(ys.Provider, {
824
821
  value: {
825
- didCatch: s,
826
- error: i,
822
+ didCatch: o,
823
+ error: s,
827
824
  resetErrorBoundary: this.resetErrorBoundary
828
825
  }
829
- }, l);
826
+ }, i);
830
827
  }
831
828
  }
832
- function Cs() {
829
+ function Rs() {
833
830
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
834
831
  return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
835
832
  }
836
- const Rs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Ds = (e) => "getRoutes" in e && typeof e.getRoutes == "function", js = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Ns = (e) => "initialize" in e && typeof e.initialize == "function", Ps = (e) => "getHead" in e && typeof e.getHead == "function", Ts = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", _s = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Wn = new Ms();
837
- class Os {
833
+ const xs = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", Ms = (e) => "getRoutes" in e && typeof e.getRoutes == "function", Ss = (e) => "renderSearch" in e && typeof e.renderSearch == "function", Cs = (e) => "initialize" in e && typeof e.initialize == "function", Ds = (e) => "getHead" in e && typeof e.getHead == "function", Ns = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Ps = (e) => "getIdentities" in e && typeof e.getIdentities == "function", Gn = new bs();
834
+ class Ts {
838
835
  constructor(t) {
839
- J(this, "plugins");
840
- J(this, "sidebars");
841
- J(this, "topNavigation");
842
- J(this, "meta");
843
- J(this, "page");
844
- J(this, "authentication");
845
- J(this, "navigationPlugins");
846
- J(this, "initialize", async () => {
836
+ this.initialize = async () => {
847
837
  await Promise.all(
848
- this.plugins.filter(Ns).map((t) => {
849
- var n;
850
- return (n = t.initialize) == null ? void 0 : n.call(t, this);
838
+ this.plugins.filter(Cs).map((n) => {
839
+ var r;
840
+ return (r = n.initialize) == null ? void 0 : r.call(n, this);
851
841
  })
852
842
  );
853
- });
854
- J(this, "invalidateCache", async (t) => {
855
- await Wn.invalidateQueries({ queryKey: t });
856
- });
857
- J(this, "getApiIdentities", async () => (await Promise.all(
858
- this.plugins.filter(_s).map((n) => n.getIdentities(this))
859
- )).flat());
860
- J(this, "getPluginSidebar", async (t) => (await Promise.all(
843
+ }, this.invalidateCache = async (n) => {
844
+ await Gn.invalidateQueries({ queryKey: n });
845
+ }, this.getApiIdentities = async () => (await Promise.all(
846
+ this.plugins.filter(Ps).map((r) => r.getIdentities(this))
847
+ )).flat(), this.getPluginSidebar = async (n) => (await Promise.all(
861
848
  this.navigationPlugins.map(
862
- (r) => {
863
- var a;
864
- return (a = r.getSidebar) == null ? void 0 : a.call(r, Ft(t));
849
+ (a) => {
850
+ var o;
851
+ return (o = a.getSidebar) == null ? void 0 : o.call(a, jt(n));
865
852
  }
866
853
  )
867
- )).flatMap((r) => r ?? []));
868
- J(this, "signRequest", async (t) => {
854
+ )).flatMap((a) => a ?? []), this.signRequest = async (n) => {
869
855
  if (!this.authentication)
870
856
  throw new Error("No authentication provider configured");
871
- const n = await this.authentication.getAccessToken();
872
- return t.headers.set("Authorization", `Bearer ${n}`), t;
873
- });
874
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Ds), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
857
+ const r = await this.authentication.getAccessToken();
858
+ return n.headers.set("Authorization", `Bearer ${r}`), n;
859
+ }, this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(Ms), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
875
860
  }
876
861
  }
877
- function Is({ error: e, resetErrorBoundary: t }) {
878
- return /* @__PURE__ */ o.jsx(jn, { error: e });
862
+ function _s({ error: e, resetErrorBoundary: t }) {
863
+ return /* @__PURE__ */ React.createElement(Dn, { error: e });
879
864
  }
880
865
  const ct = globalThis;
881
866
  (!ct.requestIdleCallback || !ct.cancelIdleCallback) && (ct.requestIdleCallback = (e) => setTimeout(e, 1), ct.cancelIdleCallback = clearTimeout);
882
- var jt = ["Enter", " "], As = ["ArrowDown", "PageUp", "Home"], Yn = ["ArrowUp", "PageDown", "End"], ks = [...As, ...Yn], $s = {
883
- ltr: [...jt, "ArrowRight"],
884
- rtl: [...jt, "ArrowLeft"]
885
- }, Ls = {
867
+ var Dt = ["Enter", " "], Os = ["ArrowDown", "PageUp", "Home"], Wn = ["ArrowUp", "PageDown", "End"], Is = [...Os, ...Wn], As = {
868
+ ltr: [...Dt, "ArrowRight"],
869
+ rtl: [...Dt, "ArrowLeft"]
870
+ }, ks = {
886
871
  ltr: ["ArrowLeft"],
887
872
  rtl: ["ArrowRight"]
888
- }, tt = "Menu", [Ye, Fs, Hs] = qo(tt), [_e, Xn] = Nn(tt, [
889
- Hs,
873
+ }, et = "Menu", [We, $s, Ls] = za(et), [_e, Yn] = Nn(et, [
874
+ Ls,
890
875
  Pn,
891
- Vn
892
- ]), nt = Pn(), Jn = Vn(), [Zn, Re] = _e(tt), [Us, rt] = _e(tt), er = (e) => {
893
- const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = e, l = nt(t), [u, v] = h.useState(null), m = h.useRef(!1), c = At(s), d = oa(a);
894
- return h.useEffect(() => {
876
+ Kn
877
+ ]), tt = Pn(), Xn = Kn(), [Jn, Se] = _e(et), [js, nt] = _e(et), Zn = (e) => {
878
+ const { __scopeMenu: t, open: n = !1, children: r, dir: a, onOpenChange: o, modal: s = !0 } = e, i = tt(t), [u, v] = c.useState(null), p = c.useRef(!1), l = At(o), d = eo(a);
879
+ return c.useEffect(() => {
895
880
  const f = () => {
896
- m.current = !0, document.addEventListener("pointerdown", y, { capture: !0, once: !0 }), document.addEventListener("pointermove", y, { capture: !0, once: !0 });
897
- }, y = () => m.current = !1;
881
+ p.current = !0, document.addEventListener("pointerdown", E, { capture: !0, once: !0 }), document.addEventListener("pointermove", E, { capture: !0, once: !0 });
882
+ }, E = () => p.current = !1;
898
883
  return document.addEventListener("keydown", f, { capture: !0 }), () => {
899
- document.removeEventListener("keydown", f, { capture: !0 }), document.removeEventListener("pointerdown", y, { capture: !0 }), document.removeEventListener("pointermove", y, { capture: !0 });
884
+ document.removeEventListener("keydown", f, { capture: !0 }), document.removeEventListener("pointerdown", E, { capture: !0 }), document.removeEventListener("pointermove", E, { capture: !0 });
900
885
  };
901
- }, []), /* @__PURE__ */ o.jsx(_n, { ...l, children: /* @__PURE__ */ o.jsx(
902
- Zn,
886
+ }, []), /* @__PURE__ */ g.jsx(_n, { ...i, children: /* @__PURE__ */ g.jsx(
887
+ Jn,
903
888
  {
904
889
  scope: t,
905
890
  open: n,
906
- onOpenChange: c,
891
+ onOpenChange: l,
907
892
  content: u,
908
893
  onContentChange: v,
909
- children: /* @__PURE__ */ o.jsx(
910
- Us,
894
+ children: /* @__PURE__ */ g.jsx(
895
+ js,
911
896
  {
912
897
  scope: t,
913
- onClose: h.useCallback(() => c(!1), [c]),
914
- isUsingKeyboardRef: m,
898
+ onClose: c.useCallback(() => l(!1), [l]),
899
+ isUsingKeyboardRef: p,
915
900
  dir: d,
916
- modal: i,
901
+ modal: s,
917
902
  children: r
918
903
  }
919
904
  )
920
905
  }
921
906
  ) });
922
907
  };
923
- er.displayName = tt;
924
- var Bs = "MenuAnchor", Ut = h.forwardRef(
908
+ Zn.displayName = et;
909
+ var Fs = "MenuAnchor", Ht = c.forwardRef(
925
910
  (e, t) => {
926
- const { __scopeMenu: n, ...r } = e, a = nt(n);
927
- return /* @__PURE__ */ o.jsx(Go, { ...a, ...r, ref: t });
911
+ const { __scopeMenu: n, ...r } = e, a = tt(n);
912
+ return /* @__PURE__ */ g.jsx(Ka, { ...a, ...r, ref: t });
928
913
  }
929
914
  );
930
- Ut.displayName = Bs;
931
- var Bt = "MenuPortal", [zs, tr] = _e(Bt, {
915
+ Ht.displayName = Fs;
916
+ var Ut = "MenuPortal", [Hs, er] = _e(Ut, {
932
917
  forceMount: void 0
933
- }), nr = (e) => {
934
- const { __scopeMenu: t, forceMount: n, children: r, container: a } = e, s = Re(Bt, t);
935
- return /* @__PURE__ */ o.jsx(zs, { scope: t, forceMount: n, children: /* @__PURE__ */ o.jsx(gt, { present: n || s.open, children: /* @__PURE__ */ o.jsx(aa, { asChild: !0, container: a, children: r }) }) });
918
+ }), tr = (e) => {
919
+ const { __scopeMenu: t, forceMount: n, children: r, container: a } = e, o = Se(Ut, t);
920
+ return /* @__PURE__ */ g.jsx(Hs, { scope: t, forceMount: n, children: /* @__PURE__ */ g.jsx(ht, { present: n || o.open, children: /* @__PURE__ */ g.jsx(to, { asChild: !0, container: a, children: r }) }) });
936
921
  };
937
- nr.displayName = Bt;
938
- var se = "MenuContent", [Ks, zt] = _e(se), rr = h.forwardRef(
922
+ tr.displayName = Ut;
923
+ var oe = "MenuContent", [Us, Bt] = _e(oe), nr = c.forwardRef(
939
924
  (e, t) => {
940
- const n = tr(se, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = Re(se, e.__scopeMenu), i = rt(se, e.__scopeMenu);
941
- return /* @__PURE__ */ o.jsx(Ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(gt, { present: r || s.open, children: /* @__PURE__ */ o.jsx(Ye.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(Vs, { ...a, ref: t }) : /* @__PURE__ */ o.jsx(Qs, { ...a, ref: t }) }) }) });
925
+ const n = er(oe, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, o = Se(oe, e.__scopeMenu), s = nt(oe, e.__scopeMenu);
926
+ return /* @__PURE__ */ g.jsx(We.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ g.jsx(ht, { present: r || o.open, children: /* @__PURE__ */ g.jsx(We.Slot, { scope: e.__scopeMenu, children: s.modal ? /* @__PURE__ */ g.jsx(Bs, { ...a, ref: t }) : /* @__PURE__ */ g.jsx(zs, { ...a, ref: t }) }) }) });
942
927
  }
943
- ), Vs = h.forwardRef(
928
+ ), Bs = c.forwardRef(
944
929
  (e, t) => {
945
- const n = Re(se, e.__scopeMenu), r = h.useRef(null), a = Ze(t, r);
946
- return h.useEffect(() => {
947
- const s = r.current;
948
- if (s) return Wo(s);
949
- }, []), /* @__PURE__ */ o.jsx(
950
- Kt,
930
+ const n = Se(oe, e.__scopeMenu), r = c.useRef(null), a = Je(t, r);
931
+ return c.useEffect(() => {
932
+ const o = r.current;
933
+ if (o) return Va(o);
934
+ }, []), /* @__PURE__ */ g.jsx(
935
+ zt,
951
936
  {
952
937
  ...e,
953
938
  ref: a,
954
939
  trapFocus: n.open,
955
940
  disableOutsidePointerEvents: n.open,
956
941
  disableOutsideScroll: !0,
957
- onFocusOutside: A(
942
+ onFocusOutside: k(
958
943
  e.onFocusOutside,
959
- (s) => s.preventDefault(),
944
+ (o) => o.preventDefault(),
960
945
  { checkForDefaultPrevented: !1 }
961
946
  ),
962
947
  onDismiss: () => n.onOpenChange(!1)
963
948
  }
964
949
  );
965
950
  }
966
- ), Qs = h.forwardRef((e, t) => {
967
- const n = Re(se, e.__scopeMenu);
968
- return /* @__PURE__ */ o.jsx(
969
- Kt,
951
+ ), zs = c.forwardRef((e, t) => {
952
+ const n = Se(oe, e.__scopeMenu);
953
+ return /* @__PURE__ */ g.jsx(
954
+ zt,
970
955
  {
971
956
  ...e,
972
957
  ref: t,
@@ -976,128 +961,128 @@ var se = "MenuContent", [Ks, zt] = _e(se), rr = h.forwardRef(
976
961
  onDismiss: () => n.onOpenChange(!1)
977
962
  }
978
963
  );
979
- }), Kt = h.forwardRef(
964
+ }), zt = c.forwardRef(
980
965
  (e, t) => {
981
966
  const {
982
967
  __scopeMenu: n,
983
968
  loop: r = !1,
984
969
  trapFocus: a,
985
- onOpenAutoFocus: s,
986
- onCloseAutoFocus: i,
987
- disableOutsidePointerEvents: l,
970
+ onOpenAutoFocus: o,
971
+ onCloseAutoFocus: s,
972
+ disableOutsidePointerEvents: i,
988
973
  onEntryFocus: u,
989
974
  onEscapeKeyDown: v,
990
- onPointerDownOutside: m,
991
- onFocusOutside: c,
975
+ onPointerDownOutside: p,
976
+ onFocusOutside: l,
992
977
  onInteractOutside: d,
993
978
  onDismiss: f,
994
- disableOutsideScroll: y,
995
- ...R
996
- } = e, K = Re(se, n), H = rt(se, n), q = nt(n), x = Jn(n), p = Fs(n), [C, N] = h.useState(null), P = h.useRef(null), _ = Ze(t, P, K.onContentChange), w = h.useRef(0), L = h.useRef(""), te = h.useRef(0), Q = h.useRef(null), V = h.useRef("right"), X = h.useRef(0), Oe = y ? ta : h.Fragment, he = y ? { as: na, allowPinchZoom: !0 } : void 0, Be = (E) => {
997
- var le, ge;
998
- const U = L.current + E, Y = p().filter((re) => !re.disabled), ne = document.activeElement, De = (le = Y.find((re) => re.ref.current === ne)) == null ? void 0 : le.textValue, pe = Y.map((re) => re.textValue), ye = oi(pe, U, De), me = (ge = Y.find((re) => re.textValue === ye)) == null ? void 0 : ge.ref.current;
999
- (function re(M) {
1000
- L.current = M, window.clearTimeout(w.current), M !== "" && (w.current = window.setTimeout(() => re(""), 1e3));
1001
- })(U), me && setTimeout(() => me.focus());
979
+ disableOutsideScroll: E,
980
+ ...C
981
+ } = e, K = Se(oe, n), H = nt(oe, n), q = tt(n), y = Xn(n), m = $s(n), [S, P] = c.useState(null), T = c.useRef(null), O = Je(t, T, K.onContentChange), w = c.useRef(0), j = c.useRef(""), ee = c.useRef(0), Q = c.useRef(null), V = c.useRef("right"), X = c.useRef(0), Oe = E ? Xa : c.Fragment, fe = E ? { as: Ja, allowPinchZoom: !0 } : void 0, Ue = (M) => {
982
+ var ie, he;
983
+ const U = j.current + M, Y = m().filter((ne) => !ne.disabled), te = document.activeElement, Ce = (ie = Y.find((ne) => ne.ref.current === te)) == null ? void 0 : ie.textValue, me = Y.map((ne) => ne.textValue), ye = ti(me, U, Ce), pe = (he = Y.find((ne) => ne.textValue === ye)) == null ? void 0 : he.ref.current;
984
+ (function ne(R) {
985
+ j.current = R, window.clearTimeout(w.current), R !== "" && (w.current = window.setTimeout(() => ne(""), 1e3));
986
+ })(U), pe && setTimeout(() => pe.focus());
1002
987
  };
1003
- h.useEffect(() => () => window.clearTimeout(w.current), []), Yo();
1004
- const xe = h.useCallback((E) => {
1005
- var Y, ne;
1006
- return V.current === ((Y = Q.current) == null ? void 0 : Y.side) && si(E, (ne = Q.current) == null ? void 0 : ne.area);
988
+ c.useEffect(() => () => window.clearTimeout(w.current), []), Qa();
989
+ const be = c.useCallback((M) => {
990
+ var Y, te;
991
+ return V.current === ((Y = Q.current) == null ? void 0 : Y.side) && ri(M, (te = Q.current) == null ? void 0 : te.area);
1007
992
  }, []);
1008
- return /* @__PURE__ */ o.jsx(
1009
- Ks,
993
+ return /* @__PURE__ */ g.jsx(
994
+ Us,
1010
995
  {
1011
996
  scope: n,
1012
- searchRef: L,
1013
- onItemEnter: h.useCallback(
1014
- (E) => {
1015
- xe(E) && E.preventDefault();
997
+ searchRef: j,
998
+ onItemEnter: c.useCallback(
999
+ (M) => {
1000
+ be(M) && M.preventDefault();
1016
1001
  },
1017
- [xe]
1002
+ [be]
1018
1003
  ),
1019
- onItemLeave: h.useCallback(
1020
- (E) => {
1004
+ onItemLeave: c.useCallback(
1005
+ (M) => {
1021
1006
  var U;
1022
- xe(E) || ((U = P.current) == null || U.focus(), N(null));
1007
+ be(M) || ((U = T.current) == null || U.focus(), P(null));
1023
1008
  },
1024
- [xe]
1009
+ [be]
1025
1010
  ),
1026
- onTriggerLeave: h.useCallback(
1027
- (E) => {
1028
- xe(E) && E.preventDefault();
1011
+ onTriggerLeave: c.useCallback(
1012
+ (M) => {
1013
+ be(M) && M.preventDefault();
1029
1014
  },
1030
- [xe]
1015
+ [be]
1031
1016
  ),
1032
- pointerGraceTimerRef: te,
1033
- onPointerGraceIntentChange: h.useCallback((E) => {
1034
- Q.current = E;
1017
+ pointerGraceTimerRef: ee,
1018
+ onPointerGraceIntentChange: c.useCallback((M) => {
1019
+ Q.current = M;
1035
1020
  }, []),
1036
- children: /* @__PURE__ */ o.jsx(Oe, { ...he, children: /* @__PURE__ */ o.jsx(
1037
- Xo,
1021
+ children: /* @__PURE__ */ g.jsx(Oe, { ...fe, children: /* @__PURE__ */ g.jsx(
1022
+ qa,
1038
1023
  {
1039
1024
  asChild: !0,
1040
1025
  trapped: a,
1041
- onMountAutoFocus: A(s, (E) => {
1026
+ onMountAutoFocus: k(o, (M) => {
1042
1027
  var U;
1043
- E.preventDefault(), (U = P.current) == null || U.focus({ preventScroll: !0 });
1028
+ M.preventDefault(), (U = T.current) == null || U.focus({ preventScroll: !0 });
1044
1029
  }),
1045
- onUnmountAutoFocus: i,
1046
- children: /* @__PURE__ */ o.jsx(
1047
- Jo,
1030
+ onUnmountAutoFocus: s,
1031
+ children: /* @__PURE__ */ g.jsx(
1032
+ Ga,
1048
1033
  {
1049
1034
  asChild: !0,
1050
- disableOutsidePointerEvents: l,
1035
+ disableOutsidePointerEvents: i,
1051
1036
  onEscapeKeyDown: v,
1052
- onPointerDownOutside: m,
1053
- onFocusOutside: c,
1037
+ onPointerDownOutside: p,
1038
+ onFocusOutside: l,
1054
1039
  onInteractOutside: d,
1055
1040
  onDismiss: f,
1056
- children: /* @__PURE__ */ o.jsx(
1057
- Ba,
1041
+ children: /* @__PURE__ */ g.jsx(
1042
+ Fo,
1058
1043
  {
1059
1044
  asChild: !0,
1060
- ...x,
1045
+ ...y,
1061
1046
  dir: H.dir,
1062
1047
  orientation: "vertical",
1063
1048
  loop: r,
1064
- currentTabStopId: C,
1065
- onCurrentTabStopIdChange: N,
1066
- onEntryFocus: A(u, (E) => {
1067
- H.isUsingKeyboardRef.current || E.preventDefault();
1049
+ currentTabStopId: S,
1050
+ onCurrentTabStopIdChange: P,
1051
+ onEntryFocus: k(u, (M) => {
1052
+ H.isUsingKeyboardRef.current || M.preventDefault();
1068
1053
  }),
1069
1054
  preventScrollOnEntryFocus: !0,
1070
- children: /* @__PURE__ */ o.jsx(
1071
- Zo,
1055
+ children: /* @__PURE__ */ g.jsx(
1056
+ Wa,
1072
1057
  {
1073
1058
  role: "menu",
1074
1059
  "aria-orientation": "vertical",
1075
- "data-state": xr(K.open),
1060
+ "data-state": br(K.open),
1076
1061
  "data-radix-menu-content": "",
1077
1062
  dir: H.dir,
1078
1063
  ...q,
1079
- ...R,
1080
- ref: _,
1081
- style: { outline: "none", ...R.style },
1082
- onKeyDown: A(R.onKeyDown, (E) => {
1083
- const Y = E.target.closest("[data-radix-menu-content]") === E.currentTarget, ne = E.ctrlKey || E.altKey || E.metaKey, De = E.key.length === 1;
1084
- Y && (E.key === "Tab" && E.preventDefault(), !ne && De && Be(E.key));
1085
- const pe = P.current;
1086
- if (E.target !== pe || !ks.includes(E.key)) return;
1087
- E.preventDefault();
1088
- const me = p().filter((le) => !le.disabled).map((le) => le.ref.current);
1089
- Yn.includes(E.key) && me.reverse(), ni(me);
1064
+ ...C,
1065
+ ref: O,
1066
+ style: { outline: "none", ...C.style },
1067
+ onKeyDown: k(C.onKeyDown, (M) => {
1068
+ const Y = M.target.closest("[data-radix-menu-content]") === M.currentTarget, te = M.ctrlKey || M.altKey || M.metaKey, Ce = M.key.length === 1;
1069
+ Y && (M.key === "Tab" && M.preventDefault(), !te && Ce && Ue(M.key));
1070
+ const me = T.current;
1071
+ if (M.target !== me || !Is.includes(M.key)) return;
1072
+ M.preventDefault();
1073
+ const pe = m().filter((ie) => !ie.disabled).map((ie) => ie.ref.current);
1074
+ Wn.includes(M.key) && pe.reverse(), Zs(pe);
1090
1075
  }),
1091
- onBlur: A(e.onBlur, (E) => {
1092
- E.currentTarget.contains(E.target) || (window.clearTimeout(w.current), L.current = "");
1076
+ onBlur: k(e.onBlur, (M) => {
1077
+ M.currentTarget.contains(M.target) || (window.clearTimeout(w.current), j.current = "");
1093
1078
  }),
1094
- onPointerMove: A(
1079
+ onPointerMove: k(
1095
1080
  e.onPointerMove,
1096
- Xe((E) => {
1097
- const U = E.target, Y = X.current !== E.clientX;
1098
- if (E.currentTarget.contains(U) && Y) {
1099
- const ne = E.clientX > X.current ? "right" : "left";
1100
- V.current = ne, X.current = E.clientX;
1081
+ Ye((M) => {
1082
+ const U = M.target, Y = X.current !== M.clientX;
1083
+ if (M.currentTarget.contains(U) && Y) {
1084
+ const te = M.clientX > X.current ? "right" : "left";
1085
+ V.current = te, X.current = M.clientX;
1101
1086
  }
1102
1087
  })
1103
1088
  )
@@ -1113,140 +1098,140 @@ var se = "MenuContent", [Ks, zt] = _e(se), rr = h.forwardRef(
1113
1098
  );
1114
1099
  }
1115
1100
  );
1116
- rr.displayName = se;
1117
- var qs = "MenuGroup", Vt = h.forwardRef(
1101
+ nr.displayName = oe;
1102
+ var Ks = "MenuGroup", Kt = c.forwardRef(
1118
1103
  (e, t) => {
1119
1104
  const { __scopeMenu: n, ...r } = e;
1120
- return /* @__PURE__ */ o.jsx(He.div, { role: "group", ...r, ref: t });
1105
+ return /* @__PURE__ */ g.jsx(Fe.div, { role: "group", ...r, ref: t });
1121
1106
  }
1122
1107
  );
1123
- Vt.displayName = qs;
1124
- var Gs = "MenuLabel", or = h.forwardRef(
1108
+ Kt.displayName = Ks;
1109
+ var Vs = "MenuLabel", rr = c.forwardRef(
1125
1110
  (e, t) => {
1126
1111
  const { __scopeMenu: n, ...r } = e;
1127
- return /* @__PURE__ */ o.jsx(He.div, { ...r, ref: t });
1112
+ return /* @__PURE__ */ g.jsx(Fe.div, { ...r, ref: t });
1128
1113
  }
1129
1114
  );
1130
- or.displayName = Gs;
1131
- var pt = "MenuItem", wn = "menu.itemSelect", vt = h.forwardRef(
1115
+ rr.displayName = Vs;
1116
+ var mt = "MenuItem", vn = "menu.itemSelect", gt = c.forwardRef(
1132
1117
  (e, t) => {
1133
- const { disabled: n = !1, onSelect: r, ...a } = e, s = h.useRef(null), i = rt(pt, e.__scopeMenu), l = zt(pt, e.__scopeMenu), u = Ze(t, s), v = h.useRef(!1), m = () => {
1134
- const c = s.current;
1135
- if (!n && c) {
1136
- const d = new CustomEvent(wn, { bubbles: !0, cancelable: !0 });
1137
- c.addEventListener(wn, (f) => r == null ? void 0 : r(f), { once: !0 }), ra(c, d), d.defaultPrevented ? v.current = !1 : i.onClose();
1118
+ const { disabled: n = !1, onSelect: r, ...a } = e, o = c.useRef(null), s = nt(mt, e.__scopeMenu), i = Bt(mt, e.__scopeMenu), u = Je(t, o), v = c.useRef(!1), p = () => {
1119
+ const l = o.current;
1120
+ if (!n && l) {
1121
+ const d = new CustomEvent(vn, { bubbles: !0, cancelable: !0 });
1122
+ l.addEventListener(vn, (f) => r == null ? void 0 : r(f), { once: !0 }), Za(l, d), d.defaultPrevented ? v.current = !1 : s.onClose();
1138
1123
  }
1139
1124
  };
1140
- return /* @__PURE__ */ o.jsx(
1125
+ return /* @__PURE__ */ g.jsx(
1141
1126
  ar,
1142
1127
  {
1143
1128
  ...a,
1144
1129
  ref: u,
1145
1130
  disabled: n,
1146
- onClick: A(e.onClick, m),
1147
- onPointerDown: (c) => {
1131
+ onClick: k(e.onClick, p),
1132
+ onPointerDown: (l) => {
1148
1133
  var d;
1149
- (d = e.onPointerDown) == null || d.call(e, c), v.current = !0;
1134
+ (d = e.onPointerDown) == null || d.call(e, l), v.current = !0;
1150
1135
  },
1151
- onPointerUp: A(e.onPointerUp, (c) => {
1136
+ onPointerUp: k(e.onPointerUp, (l) => {
1152
1137
  var d;
1153
- v.current || (d = c.currentTarget) == null || d.click();
1138
+ v.current || (d = l.currentTarget) == null || d.click();
1154
1139
  }),
1155
- onKeyDown: A(e.onKeyDown, (c) => {
1156
- const d = l.searchRef.current !== "";
1157
- n || d && c.key === " " || jt.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1140
+ onKeyDown: k(e.onKeyDown, (l) => {
1141
+ const d = i.searchRef.current !== "";
1142
+ n || d && l.key === " " || Dt.includes(l.key) && (l.currentTarget.click(), l.preventDefault());
1158
1143
  })
1159
1144
  }
1160
1145
  );
1161
1146
  }
1162
1147
  );
1163
- vt.displayName = pt;
1164
- var ar = h.forwardRef(
1148
+ gt.displayName = mt;
1149
+ var ar = c.forwardRef(
1165
1150
  (e, t) => {
1166
- const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = e, i = zt(pt, n), l = Jn(n), u = h.useRef(null), v = Ze(t, u), [m, c] = h.useState(!1), [d, f] = h.useState("");
1167
- return h.useEffect(() => {
1168
- const y = u.current;
1169
- y && f((y.textContent ?? "").trim());
1170
- }, [s.children]), /* @__PURE__ */ o.jsx(
1171
- Ye.ItemSlot,
1151
+ const { __scopeMenu: n, disabled: r = !1, textValue: a, ...o } = e, s = Bt(mt, n), i = Xn(n), u = c.useRef(null), v = Je(t, u), [p, l] = c.useState(!1), [d, f] = c.useState("");
1152
+ return c.useEffect(() => {
1153
+ const E = u.current;
1154
+ E && f((E.textContent ?? "").trim());
1155
+ }, [o.children]), /* @__PURE__ */ g.jsx(
1156
+ We.ItemSlot,
1172
1157
  {
1173
1158
  scope: n,
1174
1159
  disabled: r,
1175
1160
  textValue: a ?? d,
1176
- children: /* @__PURE__ */ o.jsx(za, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ o.jsx(
1177
- He.div,
1161
+ children: /* @__PURE__ */ g.jsx(Ho, { asChild: !0, ...i, focusable: !r, children: /* @__PURE__ */ g.jsx(
1162
+ Fe.div,
1178
1163
  {
1179
1164
  role: "menuitem",
1180
- "data-highlighted": m ? "" : void 0,
1165
+ "data-highlighted": p ? "" : void 0,
1181
1166
  "aria-disabled": r || void 0,
1182
1167
  "data-disabled": r ? "" : void 0,
1183
- ...s,
1168
+ ...o,
1184
1169
  ref: v,
1185
- onPointerMove: A(
1170
+ onPointerMove: k(
1186
1171
  e.onPointerMove,
1187
- Xe((y) => {
1188
- r ? i.onItemLeave(y) : (i.onItemEnter(y), y.defaultPrevented || y.currentTarget.focus({ preventScroll: !0 }));
1172
+ Ye((E) => {
1173
+ r ? s.onItemLeave(E) : (s.onItemEnter(E), E.defaultPrevented || E.currentTarget.focus({ preventScroll: !0 }));
1189
1174
  })
1190
1175
  ),
1191
- onPointerLeave: A(
1176
+ onPointerLeave: k(
1192
1177
  e.onPointerLeave,
1193
- Xe((y) => i.onItemLeave(y))
1178
+ Ye((E) => s.onItemLeave(E))
1194
1179
  ),
1195
- onFocus: A(e.onFocus, () => c(!0)),
1196
- onBlur: A(e.onBlur, () => c(!1))
1180
+ onFocus: k(e.onFocus, () => l(!0)),
1181
+ onBlur: k(e.onBlur, () => l(!1))
1197
1182
  }
1198
1183
  ) })
1199
1184
  }
1200
1185
  );
1201
1186
  }
1202
- ), Ws = "MenuCheckboxItem", sr = h.forwardRef(
1187
+ ), Qs = "MenuCheckboxItem", or = c.forwardRef(
1203
1188
  (e, t) => {
1204
1189
  const { checked: n = !1, onCheckedChange: r, ...a } = e;
1205
- return /* @__PURE__ */ o.jsx(dr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
1206
- vt,
1190
+ return /* @__PURE__ */ g.jsx(ur, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ g.jsx(
1191
+ gt,
1207
1192
  {
1208
1193
  role: "menuitemcheckbox",
1209
- "aria-checked": mt(n) ? "mixed" : n,
1194
+ "aria-checked": pt(n) ? "mixed" : n,
1210
1195
  ...a,
1211
1196
  ref: t,
1212
- "data-state": Gt(n),
1213
- onSelect: A(
1197
+ "data-state": qt(n),
1198
+ onSelect: k(
1214
1199
  a.onSelect,
1215
- () => r == null ? void 0 : r(mt(n) ? !0 : !n),
1200
+ () => r == null ? void 0 : r(pt(n) ? !0 : !n),
1216
1201
  { checkForDefaultPrevented: !1 }
1217
1202
  )
1218
1203
  }
1219
1204
  ) });
1220
1205
  }
1221
1206
  );
1222
- sr.displayName = Ws;
1223
- var ir = "MenuRadioGroup", [Ys, Xs] = _e(
1224
- ir,
1207
+ or.displayName = Qs;
1208
+ var sr = "MenuRadioGroup", [qs, Gs] = _e(
1209
+ sr,
1225
1210
  { value: void 0, onValueChange: () => {
1226
1211
  } }
1227
- ), lr = h.forwardRef(
1212
+ ), ir = c.forwardRef(
1228
1213
  (e, t) => {
1229
- const { value: n, onValueChange: r, ...a } = e, s = At(r);
1230
- return /* @__PURE__ */ o.jsx(Ys, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(Vt, { ...a, ref: t }) });
1214
+ const { value: n, onValueChange: r, ...a } = e, o = At(r);
1215
+ return /* @__PURE__ */ g.jsx(qs, { scope: e.__scopeMenu, value: n, onValueChange: o, children: /* @__PURE__ */ g.jsx(Kt, { ...a, ref: t }) });
1231
1216
  }
1232
1217
  );
1233
- lr.displayName = ir;
1234
- var cr = "MenuRadioItem", ur = h.forwardRef(
1218
+ ir.displayName = sr;
1219
+ var cr = "MenuRadioItem", lr = c.forwardRef(
1235
1220
  (e, t) => {
1236
- const { value: n, ...r } = e, a = Xs(cr, e.__scopeMenu), s = n === a.value;
1237
- return /* @__PURE__ */ o.jsx(dr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
1238
- vt,
1221
+ const { value: n, ...r } = e, a = Gs(cr, e.__scopeMenu), o = n === a.value;
1222
+ return /* @__PURE__ */ g.jsx(ur, { scope: e.__scopeMenu, checked: o, children: /* @__PURE__ */ g.jsx(
1223
+ gt,
1239
1224
  {
1240
1225
  role: "menuitemradio",
1241
- "aria-checked": s,
1226
+ "aria-checked": o,
1242
1227
  ...r,
1243
1228
  ref: t,
1244
- "data-state": Gt(s),
1245
- onSelect: A(
1229
+ "data-state": qt(o),
1230
+ onSelect: k(
1246
1231
  r.onSelect,
1247
1232
  () => {
1248
- var i;
1249
- return (i = a.onValueChange) == null ? void 0 : i.call(a, n);
1233
+ var s;
1234
+ return (s = a.onValueChange) == null ? void 0 : s.call(a, n);
1250
1235
  },
1251
1236
  { checkForDefaultPrevented: !1 }
1252
1237
  )
@@ -1254,35 +1239,35 @@ var cr = "MenuRadioItem", ur = h.forwardRef(
1254
1239
  ) });
1255
1240
  }
1256
1241
  );
1257
- ur.displayName = cr;
1258
- var Qt = "MenuItemIndicator", [dr, Js] = _e(
1259
- Qt,
1242
+ lr.displayName = cr;
1243
+ var Vt = "MenuItemIndicator", [ur, Ws] = _e(
1244
+ Vt,
1260
1245
  { checked: !1 }
1261
- ), fr = h.forwardRef(
1246
+ ), dr = c.forwardRef(
1262
1247
  (e, t) => {
1263
- const { __scopeMenu: n, forceMount: r, ...a } = e, s = Js(Qt, n);
1264
- return /* @__PURE__ */ o.jsx(
1265
- gt,
1248
+ const { __scopeMenu: n, forceMount: r, ...a } = e, o = Ws(Vt, n);
1249
+ return /* @__PURE__ */ g.jsx(
1250
+ ht,
1266
1251
  {
1267
- present: r || mt(s.checked) || s.checked === !0,
1268
- children: /* @__PURE__ */ o.jsx(
1269
- He.span,
1252
+ present: r || pt(o.checked) || o.checked === !0,
1253
+ children: /* @__PURE__ */ g.jsx(
1254
+ Fe.span,
1270
1255
  {
1271
1256
  ...a,
1272
1257
  ref: t,
1273
- "data-state": Gt(s.checked)
1258
+ "data-state": qt(o.checked)
1274
1259
  }
1275
1260
  )
1276
1261
  }
1277
1262
  );
1278
1263
  }
1279
1264
  );
1280
- fr.displayName = Qt;
1281
- var Zs = "MenuSeparator", hr = h.forwardRef(
1265
+ dr.displayName = Vt;
1266
+ var Ys = "MenuSeparator", fr = c.forwardRef(
1282
1267
  (e, t) => {
1283
1268
  const { __scopeMenu: n, ...r } = e;
1284
- return /* @__PURE__ */ o.jsx(
1285
- He.div,
1269
+ return /* @__PURE__ */ g.jsx(
1270
+ Fe.div,
1286
1271
  {
1287
1272
  role: "separator",
1288
1273
  "aria-orientation": "horizontal",
@@ -1292,31 +1277,31 @@ var Zs = "MenuSeparator", hr = h.forwardRef(
1292
1277
  );
1293
1278
  }
1294
1279
  );
1295
- hr.displayName = Zs;
1296
- var ei = "MenuArrow", pr = h.forwardRef(
1280
+ fr.displayName = Ys;
1281
+ var Xs = "MenuArrow", mr = c.forwardRef(
1297
1282
  (e, t) => {
1298
- const { __scopeMenu: n, ...r } = e, a = nt(n);
1299
- return /* @__PURE__ */ o.jsx(ea, { ...a, ...r, ref: t });
1283
+ const { __scopeMenu: n, ...r } = e, a = tt(n);
1284
+ return /* @__PURE__ */ g.jsx(Ya, { ...a, ...r, ref: t });
1300
1285
  }
1301
1286
  );
1302
- pr.displayName = ei;
1303
- var qt = "MenuSub", [ti, mr] = _e(qt), gr = (e) => {
1304
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: a } = e, s = Re(qt, t), i = nt(t), [l, u] = h.useState(null), [v, m] = h.useState(null), c = At(a);
1305
- return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ o.jsx(_n, { ...i, children: /* @__PURE__ */ o.jsx(
1306
- Zn,
1287
+ mr.displayName = Xs;
1288
+ var Qt = "MenuSub", [Js, pr] = _e(Qt), hr = (e) => {
1289
+ const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: a } = e, o = Se(Qt, t), s = tt(t), [i, u] = c.useState(null), [v, p] = c.useState(null), l = At(a);
1290
+ return c.useEffect(() => (o.open === !1 && l(!1), () => l(!1)), [o.open, l]), /* @__PURE__ */ g.jsx(_n, { ...s, children: /* @__PURE__ */ g.jsx(
1291
+ Jn,
1307
1292
  {
1308
1293
  scope: t,
1309
1294
  open: r,
1310
- onOpenChange: c,
1295
+ onOpenChange: l,
1311
1296
  content: v,
1312
- onContentChange: m,
1313
- children: /* @__PURE__ */ o.jsx(
1314
- ti,
1297
+ onContentChange: p,
1298
+ children: /* @__PURE__ */ g.jsx(
1299
+ Js,
1315
1300
  {
1316
1301
  scope: t,
1317
- contentId: ht(),
1318
- triggerId: ht(),
1319
- trigger: l,
1302
+ contentId: ft(),
1303
+ triggerId: ft(),
1304
+ trigger: i,
1320
1305
  onTriggerChange: u,
1321
1306
  children: n
1322
1307
  }
@@ -1324,240 +1309,240 @@ var qt = "MenuSub", [ti, mr] = _e(qt), gr = (e) => {
1324
1309
  }
1325
1310
  ) });
1326
1311
  };
1327
- gr.displayName = qt;
1328
- var qe = "MenuSubTrigger", vr = h.forwardRef(
1312
+ hr.displayName = Qt;
1313
+ var Qe = "MenuSubTrigger", gr = c.forwardRef(
1329
1314
  (e, t) => {
1330
- const n = Re(qe, e.__scopeMenu), r = rt(qe, e.__scopeMenu), a = mr(qe, e.__scopeMenu), s = zt(qe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, v = { __scopeMenu: e.__scopeMenu }, m = h.useCallback(() => {
1331
- i.current && window.clearTimeout(i.current), i.current = null;
1315
+ const n = Se(Qe, e.__scopeMenu), r = nt(Qe, e.__scopeMenu), a = pr(Qe, e.__scopeMenu), o = Bt(Qe, e.__scopeMenu), s = c.useRef(null), { pointerGraceTimerRef: i, onPointerGraceIntentChange: u } = o, v = { __scopeMenu: e.__scopeMenu }, p = c.useCallback(() => {
1316
+ s.current && window.clearTimeout(s.current), s.current = null;
1332
1317
  }, []);
1333
- return h.useEffect(() => m, [m]), h.useEffect(() => {
1334
- const c = l.current;
1318
+ return c.useEffect(() => p, [p]), c.useEffect(() => {
1319
+ const l = i.current;
1335
1320
  return () => {
1336
- window.clearTimeout(c), u(null);
1321
+ window.clearTimeout(l), u(null);
1337
1322
  };
1338
- }, [l, u]), /* @__PURE__ */ o.jsx(Ut, { asChild: !0, ...v, children: /* @__PURE__ */ o.jsx(
1323
+ }, [i, u]), /* @__PURE__ */ g.jsx(Ht, { asChild: !0, ...v, children: /* @__PURE__ */ g.jsx(
1339
1324
  ar,
1340
1325
  {
1341
1326
  id: a.triggerId,
1342
1327
  "aria-haspopup": "menu",
1343
1328
  "aria-expanded": n.open,
1344
1329
  "aria-controls": a.contentId,
1345
- "data-state": xr(n.open),
1330
+ "data-state": br(n.open),
1346
1331
  ...e,
1347
1332
  ref: Tn(t, a.onTriggerChange),
1348
- onClick: (c) => {
1333
+ onClick: (l) => {
1349
1334
  var d;
1350
- (d = e.onClick) == null || d.call(e, c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
1335
+ (d = e.onClick) == null || d.call(e, l), !(e.disabled || l.defaultPrevented) && (l.currentTarget.focus(), n.open || n.onOpenChange(!0));
1351
1336
  },
1352
- onPointerMove: A(
1337
+ onPointerMove: k(
1353
1338
  e.onPointerMove,
1354
- Xe((c) => {
1355
- s.onItemEnter(c), !c.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1356
- n.onOpenChange(!0), m();
1339
+ Ye((l) => {
1340
+ o.onItemEnter(l), !l.defaultPrevented && !e.disabled && !n.open && !s.current && (o.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
1341
+ n.onOpenChange(!0), p();
1357
1342
  }, 100));
1358
1343
  })
1359
1344
  ),
1360
- onPointerLeave: A(
1345
+ onPointerLeave: k(
1361
1346
  e.onPointerLeave,
1362
- Xe((c) => {
1363
- var f, y;
1364
- m();
1347
+ Ye((l) => {
1348
+ var f, E;
1349
+ p();
1365
1350
  const d = (f = n.content) == null ? void 0 : f.getBoundingClientRect();
1366
1351
  if (d) {
1367
- const R = (y = n.content) == null ? void 0 : y.dataset.side, K = R === "right", H = K ? -5 : 5, q = d[K ? "left" : "right"], x = d[K ? "right" : "left"];
1368
- s.onPointerGraceIntentChange({
1352
+ const C = (E = n.content) == null ? void 0 : E.dataset.side, K = C === "right", H = K ? -5 : 5, q = d[K ? "left" : "right"], y = d[K ? "right" : "left"];
1353
+ o.onPointerGraceIntentChange({
1369
1354
  area: [
1370
1355
  // Apply a bleed on clientX to ensure that our exit point is
1371
1356
  // consistently within polygon bounds
1372
- { x: c.clientX + H, y: c.clientY },
1357
+ { x: l.clientX + H, y: l.clientY },
1373
1358
  { x: q, y: d.top },
1374
- { x, y: d.top },
1375
- { x, y: d.bottom },
1359
+ { x: y, y: d.top },
1360
+ { x: y, y: d.bottom },
1376
1361
  { x: q, y: d.bottom }
1377
1362
  ],
1378
- side: R
1379
- }), window.clearTimeout(l.current), l.current = window.setTimeout(
1380
- () => s.onPointerGraceIntentChange(null),
1363
+ side: C
1364
+ }), window.clearTimeout(i.current), i.current = window.setTimeout(
1365
+ () => o.onPointerGraceIntentChange(null),
1381
1366
  300
1382
1367
  );
1383
1368
  } else {
1384
- if (s.onTriggerLeave(c), c.defaultPrevented) return;
1385
- s.onPointerGraceIntentChange(null);
1369
+ if (o.onTriggerLeave(l), l.defaultPrevented) return;
1370
+ o.onPointerGraceIntentChange(null);
1386
1371
  }
1387
1372
  })
1388
1373
  ),
1389
- onKeyDown: A(e.onKeyDown, (c) => {
1374
+ onKeyDown: k(e.onKeyDown, (l) => {
1390
1375
  var f;
1391
- const d = s.searchRef.current !== "";
1392
- e.disabled || d && c.key === " " || $s[r.dir].includes(c.key) && (n.onOpenChange(!0), (f = n.content) == null || f.focus(), c.preventDefault());
1376
+ const d = o.searchRef.current !== "";
1377
+ e.disabled || d && l.key === " " || As[r.dir].includes(l.key) && (n.onOpenChange(!0), (f = n.content) == null || f.focus(), l.preventDefault());
1393
1378
  })
1394
1379
  }
1395
1380
  ) });
1396
1381
  }
1397
1382
  );
1398
- vr.displayName = qe;
1399
- var wr = "MenuSubContent", br = h.forwardRef(
1383
+ gr.displayName = Qe;
1384
+ var vr = "MenuSubContent", wr = c.forwardRef(
1400
1385
  (e, t) => {
1401
- const n = tr(se, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, s = Re(se, e.__scopeMenu), i = rt(se, e.__scopeMenu), l = mr(wr, e.__scopeMenu), u = h.useRef(null), v = Ze(t, u);
1402
- return /* @__PURE__ */ o.jsx(Ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(gt, { present: r || s.open, children: /* @__PURE__ */ o.jsx(Ye.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ o.jsx(
1403
- Kt,
1386
+ const n = er(oe, e.__scopeMenu), { forceMount: r = n.forceMount, ...a } = e, o = Se(oe, e.__scopeMenu), s = nt(oe, e.__scopeMenu), i = pr(vr, e.__scopeMenu), u = c.useRef(null), v = Je(t, u);
1387
+ return /* @__PURE__ */ g.jsx(We.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ g.jsx(ht, { present: r || o.open, children: /* @__PURE__ */ g.jsx(We.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ g.jsx(
1388
+ zt,
1404
1389
  {
1405
- id: l.contentId,
1406
- "aria-labelledby": l.triggerId,
1390
+ id: i.contentId,
1391
+ "aria-labelledby": i.triggerId,
1407
1392
  ...a,
1408
1393
  ref: v,
1409
1394
  align: "start",
1410
- side: i.dir === "rtl" ? "left" : "right",
1395
+ side: s.dir === "rtl" ? "left" : "right",
1411
1396
  disableOutsidePointerEvents: !1,
1412
1397
  disableOutsideScroll: !1,
1413
1398
  trapFocus: !1,
1414
- onOpenAutoFocus: (m) => {
1415
- var c;
1416
- i.isUsingKeyboardRef.current && ((c = u.current) == null || c.focus()), m.preventDefault();
1399
+ onOpenAutoFocus: (p) => {
1400
+ var l;
1401
+ s.isUsingKeyboardRef.current && ((l = u.current) == null || l.focus()), p.preventDefault();
1417
1402
  },
1418
- onCloseAutoFocus: (m) => m.preventDefault(),
1419
- onFocusOutside: A(e.onFocusOutside, (m) => {
1420
- m.target !== l.trigger && s.onOpenChange(!1);
1403
+ onCloseAutoFocus: (p) => p.preventDefault(),
1404
+ onFocusOutside: k(e.onFocusOutside, (p) => {
1405
+ p.target !== i.trigger && o.onOpenChange(!1);
1421
1406
  }),
1422
- onEscapeKeyDown: A(e.onEscapeKeyDown, (m) => {
1423
- i.onClose(), m.preventDefault();
1407
+ onEscapeKeyDown: k(e.onEscapeKeyDown, (p) => {
1408
+ s.onClose(), p.preventDefault();
1424
1409
  }),
1425
- onKeyDown: A(e.onKeyDown, (m) => {
1410
+ onKeyDown: k(e.onKeyDown, (p) => {
1426
1411
  var f;
1427
- const c = m.currentTarget.contains(m.target), d = Ls[i.dir].includes(m.key);
1428
- c && d && (s.onOpenChange(!1), (f = l.trigger) == null || f.focus(), m.preventDefault());
1412
+ const l = p.currentTarget.contains(p.target), d = ks[s.dir].includes(p.key);
1413
+ l && d && (o.onOpenChange(!1), (f = i.trigger) == null || f.focus(), p.preventDefault());
1429
1414
  })
1430
1415
  }
1431
1416
  ) }) }) });
1432
1417
  }
1433
1418
  );
1434
- br.displayName = wr;
1435
- function xr(e) {
1419
+ wr.displayName = vr;
1420
+ function br(e) {
1436
1421
  return e ? "open" : "closed";
1437
1422
  }
1438
- function mt(e) {
1423
+ function pt(e) {
1439
1424
  return e === "indeterminate";
1440
1425
  }
1441
- function Gt(e) {
1442
- return mt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1426
+ function qt(e) {
1427
+ return pt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1443
1428
  }
1444
- function ni(e) {
1429
+ function Zs(e) {
1445
1430
  const t = document.activeElement;
1446
1431
  for (const n of e)
1447
1432
  if (n === t || (n.focus(), document.activeElement !== t)) return;
1448
1433
  }
1449
- function ri(e, t) {
1434
+ function ei(e, t) {
1450
1435
  return e.map((n, r) => e[(t + r) % e.length]);
1451
1436
  }
1452
- function oi(e, t, n) {
1453
- const a = t.length > 1 && Array.from(t).every((v) => v === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1454
- let i = ri(e, Math.max(s, 0));
1455
- a.length === 1 && (i = i.filter((v) => v !== n));
1456
- const u = i.find(
1437
+ function ti(e, t, n) {
1438
+ const a = t.length > 1 && Array.from(t).every((v) => v === t[0]) ? t[0] : t, o = n ? e.indexOf(n) : -1;
1439
+ let s = ei(e, Math.max(o, 0));
1440
+ a.length === 1 && (s = s.filter((v) => v !== n));
1441
+ const u = s.find(
1457
1442
  (v) => v.toLowerCase().startsWith(a.toLowerCase())
1458
1443
  );
1459
1444
  return u !== n ? u : void 0;
1460
1445
  }
1461
- function ai(e, t) {
1446
+ function ni(e, t) {
1462
1447
  const { x: n, y: r } = e;
1463
1448
  let a = !1;
1464
- for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
1465
- const l = t[s].x, u = t[s].y, v = t[i].x, m = t[i].y;
1466
- u > r != m > r && n < (v - l) * (r - u) / (m - u) + l && (a = !a);
1449
+ for (let o = 0, s = t.length - 1; o < t.length; s = o++) {
1450
+ const i = t[o].x, u = t[o].y, v = t[s].x, p = t[s].y;
1451
+ u > r != p > r && n < (v - i) * (r - u) / (p - u) + i && (a = !a);
1467
1452
  }
1468
1453
  return a;
1469
1454
  }
1470
- function si(e, t) {
1455
+ function ri(e, t) {
1471
1456
  if (!t) return !1;
1472
1457
  const n = { x: e.clientX, y: e.clientY };
1473
- return ai(n, t);
1458
+ return ni(n, t);
1474
1459
  }
1475
- function Xe(e) {
1460
+ function Ye(e) {
1476
1461
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1477
1462
  }
1478
- var ii = er, li = Ut, ci = nr, ui = rr, di = Vt, fi = or, hi = vt, pi = sr, mi = lr, gi = ur, vi = fr, wi = hr, bi = pr, xi = gr, yi = vr, Mi = br, Wt = "DropdownMenu", [Si, Jl] = Nn(
1479
- Wt,
1480
- [Xn]
1481
- ), W = Xn(), [Ei, yr] = Si(Wt), Mr = (e) => {
1463
+ var ai = Zn, oi = Ht, si = tr, ii = nr, ci = Kt, li = rr, ui = gt, di = or, fi = ir, mi = lr, pi = dr, hi = fr, gi = mr, vi = hr, wi = gr, bi = wr, Gt = "DropdownMenu", [yi, Gc] = Nn(
1464
+ Gt,
1465
+ [Yn]
1466
+ ), W = Yn(), [Ei, yr] = yi(Gt), Er = (e) => {
1482
1467
  const {
1483
1468
  __scopeDropdownMenu: t,
1484
1469
  children: n,
1485
1470
  dir: r,
1486
1471
  open: a,
1487
- defaultOpen: s,
1488
- onOpenChange: i,
1489
- modal: l = !0
1490
- } = e, u = W(t), v = h.useRef(null), [m = !1, c] = On({
1472
+ defaultOpen: o,
1473
+ onOpenChange: s,
1474
+ modal: i = !0
1475
+ } = e, u = W(t), v = c.useRef(null), [p = !1, l] = On({
1491
1476
  prop: a,
1492
- defaultProp: s,
1493
- onChange: i
1477
+ defaultProp: o,
1478
+ onChange: s
1494
1479
  });
1495
- return /* @__PURE__ */ o.jsx(
1480
+ return /* @__PURE__ */ g.jsx(
1496
1481
  Ei,
1497
1482
  {
1498
1483
  scope: t,
1499
- triggerId: ht(),
1484
+ triggerId: ft(),
1500
1485
  triggerRef: v,
1501
- contentId: ht(),
1502
- open: m,
1503
- onOpenChange: c,
1504
- onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
1505
- modal: l,
1506
- children: /* @__PURE__ */ o.jsx(ii, { ...u, open: m, onOpenChange: c, dir: r, modal: l, children: n })
1486
+ contentId: ft(),
1487
+ open: p,
1488
+ onOpenChange: l,
1489
+ onOpenToggle: c.useCallback(() => l((d) => !d), [l]),
1490
+ modal: i,
1491
+ children: /* @__PURE__ */ g.jsx(ai, { ...u, open: p, onOpenChange: l, dir: r, modal: i, children: n })
1507
1492
  }
1508
1493
  );
1509
1494
  };
1510
- Mr.displayName = Wt;
1511
- var Sr = "DropdownMenuTrigger", Er = h.forwardRef(
1495
+ Er.displayName = Gt;
1496
+ var Rr = "DropdownMenuTrigger", xr = c.forwardRef(
1512
1497
  (e, t) => {
1513
- const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, s = yr(Sr, n), i = W(n);
1514
- return /* @__PURE__ */ o.jsx(li, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
1515
- He.button,
1498
+ const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, o = yr(Rr, n), s = W(n);
1499
+ return /* @__PURE__ */ g.jsx(oi, { asChild: !0, ...s, children: /* @__PURE__ */ g.jsx(
1500
+ Fe.button,
1516
1501
  {
1517
1502
  type: "button",
1518
- id: s.triggerId,
1503
+ id: o.triggerId,
1519
1504
  "aria-haspopup": "menu",
1520
- "aria-expanded": s.open,
1521
- "aria-controls": s.open ? s.contentId : void 0,
1522
- "data-state": s.open ? "open" : "closed",
1505
+ "aria-expanded": o.open,
1506
+ "aria-controls": o.open ? o.contentId : void 0,
1507
+ "data-state": o.open ? "open" : "closed",
1523
1508
  "data-disabled": r ? "" : void 0,
1524
1509
  disabled: r,
1525
1510
  ...a,
1526
- ref: Tn(t, s.triggerRef),
1527
- onPointerDown: A(e.onPointerDown, (l) => {
1528
- !r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
1511
+ ref: Tn(t, o.triggerRef),
1512
+ onPointerDown: k(e.onPointerDown, (i) => {
1513
+ !r && i.button === 0 && i.ctrlKey === !1 && (o.onOpenToggle(), o.open || i.preventDefault());
1529
1514
  }),
1530
- onKeyDown: A(e.onKeyDown, (l) => {
1531
- r || (["Enter", " "].includes(l.key) && s.onOpenToggle(), l.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(l.key) && l.preventDefault());
1515
+ onKeyDown: k(e.onKeyDown, (i) => {
1516
+ r || (["Enter", " "].includes(i.key) && o.onOpenToggle(), i.key === "ArrowDown" && o.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(i.key) && i.preventDefault());
1532
1517
  })
1533
1518
  }
1534
1519
  ) });
1535
1520
  }
1536
1521
  );
1537
- Er.displayName = Sr;
1538
- var Ci = "DropdownMenuPortal", Cr = (e) => {
1522
+ xr.displayName = Rr;
1523
+ var Ri = "DropdownMenuPortal", Mr = (e) => {
1539
1524
  const { __scopeDropdownMenu: t, ...n } = e, r = W(t);
1540
- return /* @__PURE__ */ o.jsx(ci, { ...r, ...n });
1525
+ return /* @__PURE__ */ g.jsx(si, { ...r, ...n });
1541
1526
  };
1542
- Cr.displayName = Ci;
1543
- var Rr = "DropdownMenuContent", Dr = h.forwardRef(
1527
+ Mr.displayName = Ri;
1528
+ var Sr = "DropdownMenuContent", Cr = c.forwardRef(
1544
1529
  (e, t) => {
1545
- const { __scopeDropdownMenu: n, ...r } = e, a = yr(Rr, n), s = W(n), i = h.useRef(!1);
1546
- return /* @__PURE__ */ o.jsx(
1547
- ui,
1530
+ const { __scopeDropdownMenu: n, ...r } = e, a = yr(Sr, n), o = W(n), s = c.useRef(!1);
1531
+ return /* @__PURE__ */ g.jsx(
1532
+ ii,
1548
1533
  {
1549
1534
  id: a.contentId,
1550
1535
  "aria-labelledby": a.triggerId,
1551
- ...s,
1536
+ ...o,
1552
1537
  ...r,
1553
1538
  ref: t,
1554
- onCloseAutoFocus: A(e.onCloseAutoFocus, (l) => {
1539
+ onCloseAutoFocus: k(e.onCloseAutoFocus, (i) => {
1555
1540
  var u;
1556
- i.current || (u = a.triggerRef.current) == null || u.focus(), i.current = !1, l.preventDefault();
1541
+ s.current || (u = a.triggerRef.current) == null || u.focus(), s.current = !1, i.preventDefault();
1557
1542
  }),
1558
- onInteractOutside: A(e.onInteractOutside, (l) => {
1559
- const u = l.detail.originalEvent, v = u.button === 0 && u.ctrlKey === !0, m = u.button === 2 || v;
1560
- (!a.modal || m) && (i.current = !0);
1543
+ onInteractOutside: k(e.onInteractOutside, (i) => {
1544
+ const u = i.detail.originalEvent, v = u.button === 0 && u.ctrlKey === !0, p = u.button === 2 || v;
1545
+ (!a.modal || p) && (s.current = !0);
1561
1546
  }),
1562
1547
  style: {
1563
1548
  ...e.style,
@@ -1571,76 +1556,76 @@ var Rr = "DropdownMenuContent", Dr = h.forwardRef(
1571
1556
  );
1572
1557
  }
1573
1558
  );
1574
- Dr.displayName = Rr;
1575
- var Ri = "DropdownMenuGroup", Di = h.forwardRef(
1559
+ Cr.displayName = Sr;
1560
+ var xi = "DropdownMenuGroup", Mi = c.forwardRef(
1576
1561
  (e, t) => {
1577
1562
  const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1578
- return /* @__PURE__ */ o.jsx(di, { ...a, ...r, ref: t });
1563
+ return /* @__PURE__ */ g.jsx(ci, { ...a, ...r, ref: t });
1579
1564
  }
1580
1565
  );
1581
- Di.displayName = Ri;
1582
- var ji = "DropdownMenuLabel", jr = h.forwardRef(
1566
+ Mi.displayName = xi;
1567
+ var Si = "DropdownMenuLabel", Dr = c.forwardRef(
1583
1568
  (e, t) => {
1584
1569
  const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1585
- return /* @__PURE__ */ o.jsx(fi, { ...a, ...r, ref: t });
1570
+ return /* @__PURE__ */ g.jsx(li, { ...a, ...r, ref: t });
1586
1571
  }
1587
1572
  );
1588
- jr.displayName = ji;
1589
- var Ni = "DropdownMenuItem", Nr = h.forwardRef(
1573
+ Dr.displayName = Si;
1574
+ var Ci = "DropdownMenuItem", Nr = c.forwardRef(
1590
1575
  (e, t) => {
1591
1576
  const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1592
- return /* @__PURE__ */ o.jsx(hi, { ...a, ...r, ref: t });
1577
+ return /* @__PURE__ */ g.jsx(ui, { ...a, ...r, ref: t });
1593
1578
  }
1594
1579
  );
1595
- Nr.displayName = Ni;
1596
- var Pi = "DropdownMenuCheckboxItem", Pr = h.forwardRef((e, t) => {
1580
+ Nr.displayName = Ci;
1581
+ var Di = "DropdownMenuCheckboxItem", Pr = c.forwardRef((e, t) => {
1597
1582
  const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1598
- return /* @__PURE__ */ o.jsx(pi, { ...a, ...r, ref: t });
1583
+ return /* @__PURE__ */ g.jsx(di, { ...a, ...r, ref: t });
1599
1584
  });
1600
- Pr.displayName = Pi;
1601
- var Ti = "DropdownMenuRadioGroup", _i = h.forwardRef((e, t) => {
1585
+ Pr.displayName = Di;
1586
+ var Ni = "DropdownMenuRadioGroup", Pi = c.forwardRef((e, t) => {
1602
1587
  const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1603
- return /* @__PURE__ */ o.jsx(mi, { ...a, ...r, ref: t });
1588
+ return /* @__PURE__ */ g.jsx(fi, { ...a, ...r, ref: t });
1604
1589
  });
1605
- _i.displayName = Ti;
1606
- var Oi = "DropdownMenuRadioItem", Tr = h.forwardRef((e, t) => {
1590
+ Pi.displayName = Ni;
1591
+ var Ti = "DropdownMenuRadioItem", Tr = c.forwardRef((e, t) => {
1607
1592
  const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1608
- return /* @__PURE__ */ o.jsx(gi, { ...a, ...r, ref: t });
1593
+ return /* @__PURE__ */ g.jsx(mi, { ...a, ...r, ref: t });
1609
1594
  });
1610
- Tr.displayName = Oi;
1611
- var Ii = "DropdownMenuItemIndicator", _r = h.forwardRef((e, t) => {
1595
+ Tr.displayName = Ti;
1596
+ var _i = "DropdownMenuItemIndicator", _r = c.forwardRef((e, t) => {
1612
1597
  const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1613
- return /* @__PURE__ */ o.jsx(vi, { ...a, ...r, ref: t });
1598
+ return /* @__PURE__ */ g.jsx(pi, { ...a, ...r, ref: t });
1614
1599
  });
1615
- _r.displayName = Ii;
1616
- var Ai = "DropdownMenuSeparator", Or = h.forwardRef((e, t) => {
1600
+ _r.displayName = _i;
1601
+ var Oi = "DropdownMenuSeparator", Or = c.forwardRef((e, t) => {
1617
1602
  const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1618
- return /* @__PURE__ */ o.jsx(wi, { ...a, ...r, ref: t });
1603
+ return /* @__PURE__ */ g.jsx(hi, { ...a, ...r, ref: t });
1619
1604
  });
1620
- Or.displayName = Ai;
1621
- var ki = "DropdownMenuArrow", $i = h.forwardRef(
1605
+ Or.displayName = Oi;
1606
+ var Ii = "DropdownMenuArrow", Ai = c.forwardRef(
1622
1607
  (e, t) => {
1623
1608
  const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1624
- return /* @__PURE__ */ o.jsx(bi, { ...a, ...r, ref: t });
1609
+ return /* @__PURE__ */ g.jsx(gi, { ...a, ...r, ref: t });
1625
1610
  }
1626
1611
  );
1627
- $i.displayName = ki;
1628
- var Li = (e) => {
1629
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: s } = e, i = W(t), [l = !1, u] = On({
1612
+ Ai.displayName = Ii;
1613
+ var ki = (e) => {
1614
+ const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: a, defaultOpen: o } = e, s = W(t), [i = !1, u] = On({
1630
1615
  prop: r,
1631
- defaultProp: s,
1616
+ defaultProp: o,
1632
1617
  onChange: a
1633
1618
  });
1634
- return /* @__PURE__ */ o.jsx(xi, { ...i, open: l, onOpenChange: u, children: n });
1635
- }, Fi = "DropdownMenuSubTrigger", Ir = h.forwardRef((e, t) => {
1619
+ return /* @__PURE__ */ g.jsx(vi, { ...s, open: i, onOpenChange: u, children: n });
1620
+ }, $i = "DropdownMenuSubTrigger", Ir = c.forwardRef((e, t) => {
1636
1621
  const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1637
- return /* @__PURE__ */ o.jsx(yi, { ...a, ...r, ref: t });
1622
+ return /* @__PURE__ */ g.jsx(wi, { ...a, ...r, ref: t });
1638
1623
  });
1639
- Ir.displayName = Fi;
1640
- var Hi = "DropdownMenuSubContent", Ar = h.forwardRef((e, t) => {
1624
+ Ir.displayName = $i;
1625
+ var Li = "DropdownMenuSubContent", Ar = c.forwardRef((e, t) => {
1641
1626
  const { __scopeDropdownMenu: n, ...r } = e, a = W(n);
1642
- return /* @__PURE__ */ o.jsx(
1643
- Mi,
1627
+ return /* @__PURE__ */ g.jsx(
1628
+ bi,
1644
1629
  {
1645
1630
  ...a,
1646
1631
  ...r,
@@ -1656,56 +1641,54 @@ var Hi = "DropdownMenuSubContent", Ar = h.forwardRef((e, t) => {
1656
1641
  }
1657
1642
  );
1658
1643
  });
1659
- Ar.displayName = Hi;
1660
- var Ui = Mr, Bi = Er, kr = Cr, $r = Dr, Lr = jr, Fr = Nr, Hr = Pr, Ur = Tr, Br = _r, zr = Or, zi = Li, Kr = Ir, Vr = Ar;
1661
- const Ki = Ui, Vi = Bi, Qi = kr, qi = zi, Qr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1662
- Kr,
1644
+ Ar.displayName = Li;
1645
+ var ji = Er, Fi = xr, kr = Mr, $r = Cr, Lr = Dr, jr = Nr, Fr = Pr, Hr = Tr, Ur = _r, Br = Or, Hi = ki, zr = Ir, Kr = Ar;
1646
+ const Ui = ji, Bi = Fi, zi = kr, Ki = Hi, Vr = c.forwardRef(({ className: e, inset: t, children: n, ...r }, a) => /* @__PURE__ */ c.createElement(
1647
+ zr,
1663
1648
  {
1664
1649
  ref: a,
1665
- className: O(
1650
+ className: I(
1666
1651
  "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1667
1652
  t && "pl-8",
1668
1653
  e
1669
1654
  ),
1670
- ...r,
1671
- children: [
1672
- n,
1673
- /* @__PURE__ */ o.jsx(Kn, { className: "ml-auto h-4 w-4" })
1674
- ]
1675
- }
1655
+ ...r
1656
+ },
1657
+ n,
1658
+ /* @__PURE__ */ c.createElement(zn, { className: "ml-auto h-4 w-4" })
1676
1659
  ));
1677
- Qr.displayName = Kr.displayName;
1678
- const qr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
1679
- Vr,
1660
+ Vr.displayName = zr.displayName;
1661
+ const Qr = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.createElement(
1662
+ Kr,
1680
1663
  {
1681
1664
  ref: n,
1682
- className: O(
1665
+ className: I(
1683
1666
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1684
1667
  e
1685
1668
  ),
1686
1669
  ...t
1687
1670
  }
1688
1671
  ));
1689
- qr.displayName = Vr.displayName;
1690
- const Gr = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ o.jsx(kr, { children: /* @__PURE__ */ o.jsx(
1672
+ Qr.displayName = Kr.displayName;
1673
+ const qr = c.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c.createElement(kr, null, /* @__PURE__ */ c.createElement(
1691
1674
  $r,
1692
1675
  {
1693
1676
  ref: r,
1694
1677
  sideOffset: t,
1695
- className: O(
1678
+ className: I(
1696
1679
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1697
1680
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1698
1681
  e
1699
1682
  ),
1700
1683
  ...n
1701
1684
  }
1702
- ) }));
1703
- Gr.displayName = $r.displayName;
1704
- const Wr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
1705
- Fr,
1685
+ )));
1686
+ qr.displayName = $r.displayName;
1687
+ const Gr = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ c.createElement(
1688
+ jr,
1706
1689
  {
1707
1690
  ref: r,
1708
- className: O(
1691
+ className: I(
1709
1692
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1710
1693
  t && "pl-8",
1711
1694
  e
@@ -1713,45 +1696,41 @@ const Wr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1713
1696
  ...n
1714
1697
  }
1715
1698
  ));
1716
- Wr.displayName = Fr.displayName;
1717
- const Gi = h.forwardRef(({ className: e, children: t, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1718
- Hr,
1699
+ Gr.displayName = jr.displayName;
1700
+ const Vi = c.forwardRef(({ className: e, children: t, checked: n, ...r }, a) => /* @__PURE__ */ c.createElement(
1701
+ Fr,
1719
1702
  {
1720
1703
  ref: a,
1721
- className: O(
1704
+ className: I(
1722
1705
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1723
1706
  e
1724
1707
  ),
1725
1708
  checked: n,
1726
- ...r,
1727
- children: [
1728
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Br, { children: /* @__PURE__ */ o.jsx(Oa, { className: "h-4 w-4" }) }) }),
1729
- t
1730
- ]
1731
- }
1709
+ ...r
1710
+ },
1711
+ /* @__PURE__ */ c.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ c.createElement(Ur, null, /* @__PURE__ */ c.createElement(To, { className: "h-4 w-4" }))),
1712
+ t
1732
1713
  ));
1733
- Gi.displayName = Hr.displayName;
1734
- const Wi = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ o.jsxs(
1735
- Ur,
1714
+ Vi.displayName = Fr.displayName;
1715
+ const Qi = c.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ c.createElement(
1716
+ Hr,
1736
1717
  {
1737
1718
  ref: r,
1738
- className: O(
1719
+ className: I(
1739
1720
  "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1740
1721
  e
1741
1722
  ),
1742
- ...n,
1743
- children: [
1744
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Br, { children: /* @__PURE__ */ o.jsx(Ia, { className: "h-4 w-4 fill-current" }) }) }),
1745
- t
1746
- ]
1747
- }
1723
+ ...n
1724
+ },
1725
+ /* @__PURE__ */ c.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, /* @__PURE__ */ c.createElement(Ur, null, /* @__PURE__ */ c.createElement(_o, { className: "h-4 w-4 fill-current" }))),
1726
+ t
1748
1727
  ));
1749
- Wi.displayName = Ur.displayName;
1750
- const Yr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ o.jsx(
1728
+ Qi.displayName = Hr.displayName;
1729
+ const Wr = c.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ c.createElement(
1751
1730
  Lr,
1752
1731
  {
1753
1732
  ref: r,
1754
- className: O(
1733
+ className: I(
1755
1734
  "px-2 py-1.5 text-sm font-semibold",
1756
1735
  t && "pl-8",
1757
1736
  e
@@ -1759,52 +1738,50 @@ const Yr = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
1759
1738
  ...n
1760
1739
  }
1761
1740
  ));
1762
- Yr.displayName = Lr.displayName;
1763
- const Xr = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
1764
- zr,
1741
+ Wr.displayName = Lr.displayName;
1742
+ const Yr = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.createElement(
1743
+ Br,
1765
1744
  {
1766
1745
  ref: n,
1767
- className: O("-mx-1 my-1 h-px bg-muted", e),
1746
+ className: I("-mx-1 my-1 h-px bg-muted", e),
1768
1747
  ...t
1769
1748
  }
1770
1749
  ));
1771
- Xr.displayName = zr.displayName;
1772
- const Yi = {
1750
+ Yr.displayName = Br.displayName;
1751
+ const qi = {
1773
1752
  info: "bg-blue-500",
1774
1753
  note: "bg-gray-500",
1775
1754
  tip: "bg-green-600",
1776
1755
  caution: "bg-orange-500",
1777
1756
  danger: "bg-rose-500"
1778
- }, Xi = () => {
1779
- const { page: e } = Ue(), [t, n] = Te(!0);
1780
- return !(e != null && e.banner) || !t ? /* @__PURE__ */ o.jsx("style", { children: ":root { --banner-height: 0px; }" }) : /* @__PURE__ */ o.jsxs(
1757
+ }, Gi = () => {
1758
+ const { page: e } = He(), [t, n] = Te(!0);
1759
+ return !(e != null && e.banner) || !t ? /* @__PURE__ */ React.createElement("style", null, ":root { --banner-height: 0px; }") : /* @__PURE__ */ React.createElement(
1781
1760
  "div",
1782
1761
  {
1783
- className: O(
1762
+ className: I(
1784
1763
  "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
1785
- e.banner.color ? Yi[e.banner.color] : "bg-primary"
1786
- ),
1787
- children: [
1788
- /* @__PURE__ */ o.jsx("div", { className: "w-full", children: e.banner.message }),
1789
- e.banner.dismissible && /* @__PURE__ */ o.jsx(
1790
- "button",
1791
- {
1792
- type: "button",
1793
- className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1794
- onClick: () => n(!1),
1795
- children: /* @__PURE__ */ o.jsx(Aa, { size: 16 })
1796
- }
1797
- )
1798
- ]
1799
- }
1764
+ e.banner.color ? qi[e.banner.color] : "bg-primary"
1765
+ )
1766
+ },
1767
+ /* @__PURE__ */ React.createElement("div", { className: "w-full" }, e.banner.message),
1768
+ e.banner.dismissible && /* @__PURE__ */ React.createElement(
1769
+ "button",
1770
+ {
1771
+ type: "button",
1772
+ className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1773
+ onClick: () => n(!1)
1774
+ },
1775
+ /* @__PURE__ */ React.createElement(Oo, { size: 16 })
1776
+ )
1800
1777
  );
1801
1778
  };
1802
- function Ji(e) {
1779
+ function Wi(e) {
1803
1780
  if (typeof document > "u") return;
1804
1781
  let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
1805
1782
  n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
1806
1783
  }
1807
- const Jr = g.createContext({
1784
+ const Xr = h.createContext({
1808
1785
  drawerRef: {
1809
1786
  current: null
1810
1787
  },
@@ -1848,47 +1825,47 @@ const Jr = g.createContext({
1848
1825
  setVisible: () => {
1849
1826
  },
1850
1827
  direction: "bottom"
1851
- }), wt = () => {
1852
- const e = g.useContext(Jr);
1828
+ }), vt = () => {
1829
+ const e = h.useContext(Xr);
1853
1830
  if (!e)
1854
1831
  throw new Error("useDrawerContext must be used within a Drawer.Root");
1855
1832
  return e;
1856
1833
  };
1857
- Ji("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");
1858
- const Zr = typeof window < "u" ? pa : be;
1834
+ Wi("[vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left]{overflow-x:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]::after{content:'';position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-handle]{display:block;position:relative;opacity:.8;margin-left:auto;margin-right:auto;height:5px;width:56px;border-radius:1rem;touch-action:pan-y;cursor:grab}[vaul-handle]:active,[vaul-handle]:hover{opacity:1}[vaul-handle]:active{cursor:grabbing}[vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible=false]){opacity:1}@media (hover:hover) and (pointer:fine){[vaul-drawer]{user-select:none}}@media (pointer:fine){[vaul-handle-hitarea]:{width:100%;height:100%}}");
1835
+ const Jr = typeof window < "u" ? uo : we;
1859
1836
  function Nt(...e) {
1860
1837
  return (...t) => {
1861
1838
  for (let n of e)
1862
1839
  typeof n == "function" && n(...t);
1863
1840
  };
1864
1841
  }
1865
- function Zi() {
1866
- return Yt(/^Mac/);
1842
+ function Yi() {
1843
+ return Wt(/^Mac/);
1867
1844
  }
1868
- function el() {
1869
- return Yt(/^iPhone/);
1845
+ function Xi() {
1846
+ return Wt(/^iPhone/);
1870
1847
  }
1871
- function tl() {
1872
- return Yt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1873
- Zi() && navigator.maxTouchPoints > 1;
1848
+ function Ji() {
1849
+ return Wt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1850
+ Yi() && navigator.maxTouchPoints > 1;
1874
1851
  }
1875
- function eo() {
1876
- return el() || tl();
1852
+ function Zr() {
1853
+ return Xi() || Ji();
1877
1854
  }
1878
- function Yt(e) {
1855
+ function Wt(e) {
1879
1856
  return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
1880
1857
  }
1881
- const St = typeof document < "u" && window.visualViewport;
1882
- function bn(e) {
1858
+ const Rt = typeof document < "u" && window.visualViewport;
1859
+ function wn(e) {
1883
1860
  let t = window.getComputedStyle(e);
1884
1861
  return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
1885
1862
  }
1886
- function to(e) {
1887
- for (bn(e) && (e = e.parentElement); e && !bn(e); )
1863
+ function ea(e) {
1864
+ for (wn(e) && (e = e.parentElement); e && !wn(e); )
1888
1865
  e = e.parentElement;
1889
1866
  return e || document.scrollingElement || document.documentElement;
1890
1867
  }
1891
- const nl = /* @__PURE__ */ new Set([
1868
+ const Zi = /* @__PURE__ */ new Set([
1892
1869
  "checkbox",
1893
1870
  "radio",
1894
1871
  "range",
@@ -1899,113 +1876,113 @@ const nl = /* @__PURE__ */ new Set([
1899
1876
  "submit",
1900
1877
  "reset"
1901
1878
  ]);
1902
- let ut = 0, Et;
1903
- function rl(e = {}) {
1879
+ let lt = 0, xt;
1880
+ function ec(e = {}) {
1904
1881
  let { isDisabled: t } = e;
1905
- Zr(() => {
1882
+ Jr(() => {
1906
1883
  if (!t)
1907
- return ut++, ut === 1 && (eo() ? Et = al() : Et = ol()), () => {
1908
- ut--, ut === 0 && Et();
1884
+ return lt++, lt === 1 && (Zr() ? xt = nc() : xt = tc()), () => {
1885
+ lt--, lt === 0 && xt();
1909
1886
  };
1910
1887
  }, [
1911
1888
  t
1912
1889
  ]);
1913
1890
  }
1914
- function ol() {
1915
- return Nt(no(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1891
+ function tc() {
1892
+ return Nt(ta(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1916
1893
  }
1917
- function al() {
1918
- let e, t = 0, n = (c) => {
1919
- e = to(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
1920
- }, r = (c) => {
1894
+ function nc() {
1895
+ let e, t = 0, n = (l) => {
1896
+ e = ea(l.target), !(e === document.documentElement && e === document.body) && (t = l.changedTouches[0].pageY);
1897
+ }, r = (l) => {
1921
1898
  if (!e || e === document.documentElement || e === document.body) {
1922
- c.preventDefault();
1899
+ l.preventDefault();
1923
1900
  return;
1924
1901
  }
1925
- let d = c.changedTouches[0].pageY, f = e.scrollTop, y = e.scrollHeight - e.clientHeight;
1926
- y !== 0 && ((f <= 0 && d > t || f >= y && d < t) && c.preventDefault(), t = d);
1927
- }, a = (c) => {
1928
- let d = c.target;
1929
- Pt(d) && d !== document.activeElement && (c.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
1902
+ let d = l.changedTouches[0].pageY, f = e.scrollTop, E = e.scrollHeight - e.clientHeight;
1903
+ E !== 0 && ((f <= 0 && d > t || f >= E && d < t) && l.preventDefault(), t = d);
1904
+ }, a = (l) => {
1905
+ let d = l.target;
1906
+ Pt(d) && d !== document.activeElement && (l.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
1930
1907
  d.style.transform = "";
1931
1908
  }));
1932
- }, s = (c) => {
1933
- let d = c.target;
1909
+ }, o = (l) => {
1910
+ let d = l.target;
1934
1911
  Pt(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1935
- d.style.transform = "", St && (St.height < window.innerHeight ? requestAnimationFrame(() => {
1936
- xn(d);
1937
- }) : St.addEventListener("resize", () => xn(d), {
1912
+ d.style.transform = "", Rt && (Rt.height < window.innerHeight ? requestAnimationFrame(() => {
1913
+ bn(d);
1914
+ }) : Rt.addEventListener("resize", () => bn(d), {
1938
1915
  once: !0
1939
1916
  }));
1940
1917
  }));
1941
- }, i = () => {
1918
+ }, s = () => {
1942
1919
  window.scrollTo(0, 0);
1943
- }, l = window.pageXOffset, u = window.pageYOffset, v = Nt(no(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1920
+ }, i = window.pageXOffset, u = window.pageYOffset, v = Nt(ta(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1944
1921
  window.scrollTo(0, 0);
1945
- let m = Nt(Ve(document, "touchstart", n, {
1922
+ let p = Nt(Ke(document, "touchstart", n, {
1946
1923
  passive: !1,
1947
1924
  capture: !0
1948
- }), Ve(document, "touchmove", r, {
1925
+ }), Ke(document, "touchmove", r, {
1949
1926
  passive: !1,
1950
1927
  capture: !0
1951
- }), Ve(document, "touchend", a, {
1928
+ }), Ke(document, "touchend", a, {
1952
1929
  passive: !1,
1953
1930
  capture: !0
1954
- }), Ve(document, "focus", s, !0), Ve(window, "scroll", i));
1931
+ }), Ke(document, "focus", o, !0), Ke(window, "scroll", s));
1955
1932
  return () => {
1956
- v(), m(), window.scrollTo(l, u);
1933
+ v(), p(), window.scrollTo(i, u);
1957
1934
  };
1958
1935
  }
1959
- function no(e, t, n) {
1936
+ function ta(e, t, n) {
1960
1937
  let r = e.style[t];
1961
1938
  return e.style[t] = n, () => {
1962
1939
  e.style[t] = r;
1963
1940
  };
1964
1941
  }
1965
- function Ve(e, t, n, r) {
1942
+ function Ke(e, t, n, r) {
1966
1943
  return e.addEventListener(t, n, r), () => {
1967
1944
  e.removeEventListener(t, n, r);
1968
1945
  };
1969
1946
  }
1970
- function xn(e) {
1947
+ function bn(e) {
1971
1948
  let t = document.scrollingElement || document.documentElement;
1972
1949
  for (; e && e !== t; ) {
1973
- let n = to(e);
1950
+ let n = ea(e);
1974
1951
  if (n !== document.documentElement && n !== document.body && n !== e) {
1975
- let r = n.getBoundingClientRect().top, a = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
1976
- const i = n.getBoundingClientRect().bottom;
1977
- s > i && (n.scrollTop += a - r);
1952
+ let r = n.getBoundingClientRect().top, a = e.getBoundingClientRect().top, o = e.getBoundingClientRect().bottom;
1953
+ const s = n.getBoundingClientRect().bottom;
1954
+ o > s && (n.scrollTop += a - r);
1978
1955
  }
1979
1956
  e = n.parentElement;
1980
1957
  }
1981
1958
  }
1982
1959
  function Pt(e) {
1983
- return e instanceof HTMLInputElement && !nl.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1960
+ return e instanceof HTMLInputElement && !Zi.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1984
1961
  }
1985
- function sl(e, t) {
1962
+ function rc(e, t) {
1986
1963
  typeof e == "function" ? e(t) : e != null && (e.current = t);
1987
1964
  }
1988
- function il(...e) {
1989
- return (t) => e.forEach((n) => sl(n, t));
1965
+ function ac(...e) {
1966
+ return (t) => e.forEach((n) => rc(n, t));
1990
1967
  }
1991
- function ro(...e) {
1992
- return h.useCallback(il(...e), e);
1968
+ function na(...e) {
1969
+ return c.useCallback(ac(...e), e);
1993
1970
  }
1994
- let Qe = null;
1995
- function ll({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: a, noBodyStyles: s }) {
1996
- const [i, l] = g.useState(() => typeof window < "u" ? window.location.href : ""), u = g.useRef(0), v = g.useCallback(() => {
1997
- if (Qe === null && e && !s) {
1998
- Qe = {
1971
+ let Ve = null;
1972
+ function oc({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: a, noBodyStyles: o }) {
1973
+ const [s, i] = h.useState(() => typeof window < "u" ? window.location.href : ""), u = h.useRef(0), v = h.useCallback(() => {
1974
+ if (Ve === null && e && !o) {
1975
+ Ve = {
1999
1976
  position: document.body.style.position,
2000
1977
  top: document.body.style.top,
2001
1978
  left: document.body.style.left,
2002
1979
  height: document.body.style.height,
2003
1980
  right: "unset"
2004
1981
  };
2005
- const { scrollX: c, innerHeight: d } = window;
1982
+ const { scrollX: l, innerHeight: d } = window;
2006
1983
  document.body.style.setProperty("position", "fixed", "important"), Object.assign(document.body.style, {
2007
1984
  top: `${-u.current}px`,
2008
- left: `${-c}px`,
1985
+ left: `${-l}px`,
2009
1986
  right: "0px",
2010
1987
  height: "auto"
2011
1988
  }), window.setTimeout(() => window.requestAnimationFrame(() => {
@@ -2015,58 +1992,58 @@ function ll({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
2015
1992
  }
2016
1993
  }, [
2017
1994
  e
2018
- ]), m = g.useCallback(() => {
2019
- if (Qe !== null && !s) {
2020
- const c = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
2021
- Object.assign(document.body.style, Qe), window.requestAnimationFrame(() => {
2022
- if (a && i !== window.location.href) {
2023
- l(window.location.href);
1995
+ ]), p = h.useCallback(() => {
1996
+ if (Ve !== null && !o) {
1997
+ const l = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
1998
+ Object.assign(document.body.style, Ve), window.requestAnimationFrame(() => {
1999
+ if (a && s !== window.location.href) {
2000
+ i(window.location.href);
2024
2001
  return;
2025
2002
  }
2026
- window.scrollTo(d, c);
2027
- }), Qe = null;
2003
+ window.scrollTo(d, l);
2004
+ }), Ve = null;
2028
2005
  }
2029
2006
  }, [
2030
- i
2007
+ s
2031
2008
  ]);
2032
- return g.useEffect(() => {
2033
- function c() {
2009
+ return h.useEffect(() => {
2010
+ function l() {
2034
2011
  u.current = window.scrollY;
2035
2012
  }
2036
- return c(), window.addEventListener("scroll", c), () => {
2037
- window.removeEventListener("scroll", c);
2013
+ return l(), window.addEventListener("scroll", l), () => {
2014
+ window.removeEventListener("scroll", l);
2038
2015
  };
2039
- }, []), g.useEffect(() => {
2016
+ }, []), h.useEffect(() => {
2040
2017
  n || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && v(), t || window.setTimeout(() => {
2041
- m();
2042
- }, 500)) : m());
2018
+ p();
2019
+ }, 500)) : p());
2043
2020
  }, [
2044
2021
  e,
2045
2022
  r,
2046
- i,
2023
+ s,
2047
2024
  t,
2048
2025
  n,
2049
2026
  v,
2050
- m
2027
+ p
2051
2028
  ]), {
2052
- restorePositionSetting: m
2029
+ restorePositionSetting: p
2053
2030
  };
2054
2031
  }
2055
- const oo = /* @__PURE__ */ new WeakMap();
2056
- function I(e, t, n = !1) {
2032
+ const ra = /* @__PURE__ */ new WeakMap();
2033
+ function A(e, t, n = !1) {
2057
2034
  if (!e || !(e instanceof HTMLElement)) return;
2058
2035
  let r = {};
2059
- Object.entries(t).forEach(([a, s]) => {
2036
+ Object.entries(t).forEach(([a, o]) => {
2060
2037
  if (a.startsWith("--")) {
2061
- e.style.setProperty(a, s);
2038
+ e.style.setProperty(a, o);
2062
2039
  return;
2063
2040
  }
2064
- r[a] = e.style[a], e.style[a] = s;
2065
- }), !n && oo.set(e, r);
2041
+ r[a] = e.style[a], e.style[a] = o;
2042
+ }), !n && ra.set(e, r);
2066
2043
  }
2067
- function dt(e, t) {
2044
+ function ut(e, t) {
2068
2045
  if (!e || !(e instanceof HTMLElement)) return;
2069
- let n = oo.get(e);
2046
+ let n = ra.get(e);
2070
2047
  n && (t ? e.style[t] = n[t] : Object.entries(n).forEach(([r, a]) => {
2071
2048
  e.style[r] = a;
2072
2049
  }));
@@ -2083,7 +2060,7 @@ const z = (e) => {
2083
2060
  return e;
2084
2061
  }
2085
2062
  };
2086
- function ft(e, t) {
2063
+ function dt(e, t) {
2087
2064
  if (!e)
2088
2065
  return null;
2089
2066
  const n = window.getComputedStyle(e), r = (
@@ -2093,10 +2070,10 @@ function ft(e, t) {
2093
2070
  let a = r.match(/^matrix3d\((.+)\)$/);
2094
2071
  return a ? parseFloat(a[1].split(", ")[z(t) ? 13 : 12]) : (a = r.match(/^matrix\((.+)\)$/), a ? parseFloat(a[1].split(", ")[z(t) ? 5 : 4]) : null);
2095
2072
  }
2096
- function cl(e) {
2073
+ function sc(e) {
2097
2074
  return 8 * (Math.log(e + 1) - 2);
2098
2075
  }
2099
- const T = {
2076
+ const _ = {
2100
2077
  DURATION: 0.5,
2101
2078
  EASE: [
2102
2079
  0.32,
@@ -2104,154 +2081,154 @@ const T = {
2104
2081
  0,
2105
2082
  1
2106
2083
  ]
2107
- }, ao = 0.4;
2108
- function so(e) {
2109
- const t = g.useRef(e);
2110
- return g.useEffect(() => {
2084
+ }, aa = 0.4;
2085
+ function oa(e) {
2086
+ const t = h.useRef(e);
2087
+ return h.useEffect(() => {
2111
2088
  t.current = e;
2112
- }), g.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
2089
+ }), h.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
2113
2090
  }
2114
- function ul({ defaultProp: e, onChange: t }) {
2115
- const n = g.useState(e), [r] = n, a = g.useRef(r), s = so(t);
2116
- return g.useEffect(() => {
2117
- a.current !== r && (s(r), a.current = r);
2091
+ function ic({ defaultProp: e, onChange: t }) {
2092
+ const n = h.useState(e), [r] = n, a = h.useRef(r), o = oa(t);
2093
+ return h.useEffect(() => {
2094
+ a.current !== r && (o(r), a.current = r);
2118
2095
  }, [
2119
2096
  r,
2120
2097
  a,
2121
- s
2098
+ o
2122
2099
  ]), n;
2123
2100
  }
2124
- function dl({ prop: e, defaultProp: t, onChange: n = () => {
2101
+ function cc({ prop: e, defaultProp: t, onChange: n = () => {
2125
2102
  } }) {
2126
- const [r, a] = ul({
2103
+ const [r, a] = ic({
2127
2104
  defaultProp: t,
2128
2105
  onChange: n
2129
- }), s = e !== void 0, i = s ? e : r, l = so(n), u = g.useCallback((v) => {
2130
- if (s) {
2131
- const c = typeof v == "function" ? v(e) : v;
2132
- c !== e && l(c);
2106
+ }), o = e !== void 0, s = o ? e : r, i = oa(n), u = h.useCallback((v) => {
2107
+ if (o) {
2108
+ const l = typeof v == "function" ? v(e) : v;
2109
+ l !== e && i(l);
2133
2110
  } else
2134
2111
  a(v);
2135
2112
  }, [
2136
- s,
2113
+ o,
2137
2114
  e,
2138
2115
  a,
2139
- l
2116
+ i
2140
2117
  ]);
2141
2118
  return [
2142
- i,
2119
+ s,
2143
2120
  u
2144
2121
  ];
2145
2122
  }
2146
- function fl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: a, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom" }) {
2147
- const [u, v] = dl({
2123
+ function lc({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: a, fadeFromIndex: o, onSnapPointChange: s, direction: i = "bottom" }) {
2124
+ const [u, v] = cc({
2148
2125
  prop: e,
2149
2126
  defaultProp: n == null ? void 0 : n[0],
2150
2127
  onChange: t
2151
- }), m = g.useMemo(() => u === (n == null ? void 0 : n[n.length - 1]) || null, [
2128
+ }), p = h.useMemo(() => u === (n == null ? void 0 : n[n.length - 1]) || null, [
2152
2129
  n,
2153
2130
  u
2154
- ]), c = n && n.length > 0 && (s || s === 0) && !Number.isNaN(s) && n[s] === u || !n, d = g.useMemo(() => n == null ? void 0 : n.findIndex((x) => x === u), [
2131
+ ]), l = n && n.length > 0 && (o || o === 0) && !Number.isNaN(o) && n[o] === u || !n, d = h.useMemo(() => n == null ? void 0 : n.findIndex((y) => y === u), [
2155
2132
  n,
2156
2133
  u
2157
- ]), f = g.useMemo(() => {
2158
- var x;
2159
- return (x = n == null ? void 0 : n.map((p) => {
2160
- const C = typeof window < "u", N = typeof p == "string";
2161
- let P = 0;
2162
- if (N && (P = parseInt(p, 10)), z(l)) {
2163
- const w = N ? P : C ? p * window.innerHeight : 0;
2164
- return C ? l === "bottom" ? window.innerHeight - w : -window.innerHeight + w : w;
2134
+ ]), f = h.useMemo(() => {
2135
+ var y;
2136
+ return (y = n == null ? void 0 : n.map((m) => {
2137
+ const S = typeof window < "u", P = typeof m == "string";
2138
+ let T = 0;
2139
+ if (P && (T = parseInt(m, 10)), z(i)) {
2140
+ const w = P ? T : S ? m * window.innerHeight : 0;
2141
+ return S ? i === "bottom" ? window.innerHeight - w : -window.innerHeight + w : w;
2165
2142
  }
2166
- const _ = N ? P : C ? p * window.innerWidth : 0;
2167
- return C ? l === "right" ? window.innerWidth - _ : -window.innerWidth + _ : _;
2168
- })) != null ? x : [];
2143
+ const O = P ? T : S ? m * window.innerWidth : 0;
2144
+ return S ? i === "right" ? window.innerWidth - O : -window.innerWidth + O : O;
2145
+ })) != null ? y : [];
2169
2146
  }, [
2170
2147
  n
2171
- ]), y = g.useMemo(() => d !== null ? f == null ? void 0 : f[d] : null, [
2148
+ ]), E = h.useMemo(() => d !== null ? f == null ? void 0 : f[d] : null, [
2172
2149
  f,
2173
2150
  d
2174
- ]), R = g.useCallback((x) => {
2175
- var p;
2176
- const C = (p = f == null ? void 0 : f.findIndex((N) => N === x)) != null ? p : null;
2177
- i(C), I(r.current, {
2178
- transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2179
- transform: z(l) ? `translate3d(0, ${x}px, 0)` : `translate3d(${x}px, 0, 0)`
2180
- }), f && C !== f.length - 1 && C !== s ? I(a.current, {
2181
- transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2151
+ ]), C = h.useCallback((y) => {
2152
+ var m;
2153
+ const S = (m = f == null ? void 0 : f.findIndex((P) => P === y)) != null ? m : null;
2154
+ s(S), A(r.current, {
2155
+ transition: `transform ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`,
2156
+ transform: z(i) ? `translate3d(0, ${y}px, 0)` : `translate3d(${y}px, 0, 0)`
2157
+ }), f && S !== f.length - 1 && S !== o ? A(a.current, {
2158
+ transition: `opacity ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`,
2182
2159
  opacity: "0"
2183
- }) : I(a.current, {
2184
- transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2160
+ }) : A(a.current, {
2161
+ transition: `opacity ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`,
2185
2162
  opacity: "1"
2186
- }), v(C !== null ? n == null ? void 0 : n[C] : null);
2163
+ }), v(S !== null ? n == null ? void 0 : n[S] : null);
2187
2164
  }, [
2188
2165
  r.current,
2189
2166
  n,
2190
2167
  f,
2191
- s,
2168
+ o,
2192
2169
  a,
2193
2170
  v
2194
2171
  ]);
2195
- g.useEffect(() => {
2172
+ h.useEffect(() => {
2196
2173
  if (u || e) {
2197
- var x;
2198
- const p = (x = n == null ? void 0 : n.findIndex((C) => C === e || C === u)) != null ? x : -1;
2199
- f && p !== -1 && typeof f[p] == "number" && R(f[p]);
2174
+ var y;
2175
+ const m = (y = n == null ? void 0 : n.findIndex((S) => S === e || S === u)) != null ? y : -1;
2176
+ f && m !== -1 && typeof f[m] == "number" && C(f[m]);
2200
2177
  }
2201
2178
  }, [
2202
2179
  u,
2203
2180
  e,
2204
2181
  n,
2205
2182
  f,
2206
- R
2183
+ C
2207
2184
  ]);
2208
- function K({ draggedDistance: x, closeDrawer: p, velocity: C, dismissible: N }) {
2209
- if (s === void 0) return;
2210
- const P = l === "bottom" || l === "right" ? (y ?? 0) - x : (y ?? 0) + x, _ = d === s - 1, w = d === 0, L = x > 0;
2211
- if (_ && I(a.current, {
2212
- transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
2213
- }), C > 2 && !L) {
2214
- N ? p() : R(f[0]);
2185
+ function K({ draggedDistance: y, closeDrawer: m, velocity: S, dismissible: P }) {
2186
+ if (o === void 0) return;
2187
+ const T = i === "bottom" || i === "right" ? (E ?? 0) - y : (E ?? 0) + y, O = d === o - 1, w = d === 0, j = y > 0;
2188
+ if (O && A(a.current, {
2189
+ transition: `opacity ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`
2190
+ }), S > 2 && !j) {
2191
+ P ? m() : C(f[0]);
2215
2192
  return;
2216
2193
  }
2217
- if (C > 2 && L && f && n) {
2218
- R(f[n.length - 1]);
2194
+ if (S > 2 && j && f && n) {
2195
+ C(f[n.length - 1]);
2219
2196
  return;
2220
2197
  }
2221
- const te = f == null ? void 0 : f.reduce((V, X) => typeof V != "number" || typeof X != "number" ? V : Math.abs(X - P) < Math.abs(V - P) ? X : V), Q = z(l) ? window.innerHeight : window.innerWidth;
2222
- if (C > ao && Math.abs(x) < Q * 0.4) {
2223
- const V = L ? 1 : -1;
2224
- if (V > 0 && m) {
2225
- R(f[n.length - 1]);
2198
+ const ee = f == null ? void 0 : f.reduce((V, X) => typeof V != "number" || typeof X != "number" ? V : Math.abs(X - T) < Math.abs(V - T) ? X : V), Q = z(i) ? window.innerHeight : window.innerWidth;
2199
+ if (S > aa && Math.abs(y) < Q * 0.4) {
2200
+ const V = j ? 1 : -1;
2201
+ if (V > 0 && p) {
2202
+ C(f[n.length - 1]);
2226
2203
  return;
2227
2204
  }
2228
- if (w && V < 0 && N && p(), d === null) return;
2229
- R(f[d + V]);
2205
+ if (w && V < 0 && P && m(), d === null) return;
2206
+ C(f[d + V]);
2230
2207
  return;
2231
2208
  }
2232
- R(te);
2209
+ C(ee);
2233
2210
  }
2234
- function H({ draggedDistance: x }) {
2235
- if (y === null) return;
2236
- const p = l === "bottom" || l === "right" ? y - x : y + x;
2237
- (l === "bottom" || l === "right") && p < f[f.length - 1] || (l === "top" || l === "left") && p > f[f.length - 1] || I(r.current, {
2238
- transform: z(l) ? `translate3d(0, ${p}px, 0)` : `translate3d(${p}px, 0, 0)`
2211
+ function H({ draggedDistance: y }) {
2212
+ if (E === null) return;
2213
+ const m = i === "bottom" || i === "right" ? E - y : E + y;
2214
+ (i === "bottom" || i === "right") && m < f[f.length - 1] || (i === "top" || i === "left") && m > f[f.length - 1] || A(r.current, {
2215
+ transform: z(i) ? `translate3d(0, ${m}px, 0)` : `translate3d(${m}px, 0, 0)`
2239
2216
  });
2240
2217
  }
2241
- function q(x, p) {
2242
- if (!n || typeof d != "number" || !f || s === void 0) return null;
2243
- const C = d === s - 1;
2244
- if (d >= s && p)
2218
+ function q(y, m) {
2219
+ if (!n || typeof d != "number" || !f || o === void 0) return null;
2220
+ const S = d === o - 1;
2221
+ if (d >= o && m)
2245
2222
  return 0;
2246
- if (C && !p) return 1;
2247
- if (!c && !C) return null;
2248
- const P = C ? d + 1 : d - 1, _ = C ? f[P] - f[P - 1] : f[P + 1] - f[P], w = x / Math.abs(_);
2249
- return C ? 1 - w : w;
2223
+ if (S && !m) return 1;
2224
+ if (!l && !S) return null;
2225
+ const T = S ? d + 1 : d - 1, O = S ? f[T] - f[T - 1] : f[T + 1] - f[T], w = y / Math.abs(O);
2226
+ return S ? 1 - w : w;
2250
2227
  }
2251
2228
  return {
2252
- isLastSnapPoint: m,
2229
+ isLastSnapPoint: p,
2253
2230
  activeSnapPoint: u,
2254
- shouldFade: c,
2231
+ shouldFade: l,
2255
2232
  getPercentageDragged: q,
2256
2233
  setActiveSnapPoint: v,
2257
2234
  activeSnapPointIndex: d,
@@ -2260,192 +2237,192 @@ function fl({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
2260
2237
  snapPointsOffset: f
2261
2238
  };
2262
2239
  }
2263
- const hl = 0.25, pl = 100, yn = 8, Ne = 16, Mn = 26, Ct = "vaul-dragging";
2264
- function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, onDrag: a, onRelease: s, snapPoints: i, nested: l = !1, setBackgroundColorOnScale: u = !0, closeThreshold: v = hl, scrollLockTimeout: m = pl, dismissible: c = !0, handleOnly: d = !1, fadeFromIndex: f = i && i.length - 1, activeSnapPoint: y, setActiveSnapPoint: R, fixed: K, modal: H = !0, onClose: q, noBodyStyles: x, direction: p = "bottom", preventScrollRestoration: C = !0, disablePreventScroll: N = !1 }) {
2265
- var P;
2266
- const [_ = !1, w] = g.useState(!1), [L, te] = g.useState(!1), [Q, V] = g.useState(!1), [X, Oe] = g.useState(!1), [he, Be] = g.useState(!1), [xe, E] = g.useState(!1), U = g.useRef(null), Y = g.useRef(null), ne = g.useRef(null), De = g.useRef(null), pe = g.useRef(null), ye = g.useRef(!1), me = g.useRef(null), le = g.useRef(0), ge = g.useRef(!1), re = g.useRef(0), M = g.useRef(null), en = g.useRef(((P = M.current) == null ? void 0 : P.getBoundingClientRect().height) || 0), bt = g.useRef(0), xo = g.useCallback((S) => {
2267
- i && S === Ke.length - 1 && (Y.current = /* @__PURE__ */ new Date());
2268
- }, []), { activeSnapPoint: yo, activeSnapPointIndex: ze, setActiveSnapPoint: tn, onRelease: Mo, snapPointsOffset: Ke, onDrag: So, shouldFade: nn, getPercentageDragged: Eo } = fl({
2269
- snapPoints: i,
2270
- activeSnapPointProp: y,
2271
- setActiveSnapPointProp: R,
2272
- drawerRef: M,
2240
+ const uc = 0.25, dc = 100, yn = 8, Ne = 16, En = 26, Mt = "vaul-dragging";
2241
+ function sa({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, onDrag: a, onRelease: o, snapPoints: s, nested: i = !1, setBackgroundColorOnScale: u = !0, closeThreshold: v = uc, scrollLockTimeout: p = dc, dismissible: l = !0, handleOnly: d = !1, fadeFromIndex: f = s && s.length - 1, activeSnapPoint: E, setActiveSnapPoint: C, fixed: K, modal: H = !0, onClose: q, noBodyStyles: y, direction: m = "bottom", preventScrollRestoration: S = !0, disablePreventScroll: P = !1 }) {
2242
+ var T;
2243
+ const [O = !1, w] = h.useState(!1), [j, ee] = h.useState(!1), [Q, V] = h.useState(!1), [X, Oe] = h.useState(!1), [fe, Ue] = h.useState(!1), [be, M] = h.useState(!1), U = h.useRef(null), Y = h.useRef(null), te = h.useRef(null), Ce = h.useRef(null), me = h.useRef(null), ye = h.useRef(!1), pe = h.useRef(null), ie = h.useRef(0), he = h.useRef(!1), ne = h.useRef(0), R = h.useRef(null), Zt = h.useRef(((T = R.current) == null ? void 0 : T.getBoundingClientRect().height) || 0), wt = h.useRef(0), wa = h.useCallback((x) => {
2244
+ s && x === ze.length - 1 && (Y.current = /* @__PURE__ */ new Date());
2245
+ }, []), { activeSnapPoint: ba, activeSnapPointIndex: Be, setActiveSnapPoint: en, onRelease: ya, snapPointsOffset: ze, onDrag: Ea, shouldFade: tn, getPercentageDragged: Ra } = lc({
2246
+ snapPoints: s,
2247
+ activeSnapPointProp: E,
2248
+ setActiveSnapPointProp: C,
2249
+ drawerRef: R,
2273
2250
  fadeFromIndex: f,
2274
2251
  overlayRef: U,
2275
- onSnapPointChange: xo,
2276
- direction: p
2252
+ onSnapPointChange: wa,
2253
+ direction: m
2277
2254
  });
2278
- rl({
2279
- isDisabled: !_ || he || !H || xe || !L || N
2255
+ ec({
2256
+ isDisabled: !O || fe || !H || be || !j || P
2280
2257
  });
2281
- const { restorePositionSetting: Co } = ll({
2282
- isOpen: _,
2258
+ const { restorePositionSetting: xa } = oc({
2259
+ isOpen: O,
2283
2260
  modal: H,
2284
- nested: l,
2285
- hasBeenOpened: L,
2286
- preventScrollRestoration: C,
2287
- noBodyStyles: x
2261
+ nested: i,
2262
+ hasBeenOpened: j,
2263
+ preventScrollRestoration: S,
2264
+ noBodyStyles: y
2288
2265
  });
2289
2266
  function Ie() {
2290
- return (window.innerWidth - Mn) / window.innerWidth;
2267
+ return (window.innerWidth - En) / window.innerWidth;
2291
2268
  }
2292
- function Ro(S) {
2269
+ function Ma(x) {
2293
2270
  var D;
2294
- !c && !i || M.current && !M.current.contains(S.target) || (en.current = ((D = M.current) == null ? void 0 : D.getBoundingClientRect().height) || 0, Be(!0), ne.current = /* @__PURE__ */ new Date(), eo() && window.addEventListener("touchend", () => ye.current = !1, {
2271
+ !l && !s || R.current && !R.current.contains(x.target) || (Zt.current = ((D = R.current) == null ? void 0 : D.getBoundingClientRect().height) || 0, Ue(!0), te.current = /* @__PURE__ */ new Date(), Zr() && window.addEventListener("touchend", () => ye.current = !1, {
2295
2272
  once: !0
2296
- }), S.target.setPointerCapture(S.pointerId), le.current = z(p) ? S.clientY : S.clientX);
2273
+ }), x.target.setPointerCapture(x.pointerId), ie.current = z(m) ? x.clientY : x.clientX);
2297
2274
  }
2298
- function rn(S, D) {
2299
- var k;
2300
- let j = S;
2301
- const F = (k = window.getSelection()) == null ? void 0 : k.toString(), B = M.current ? ft(M.current, p) : null, oe = /* @__PURE__ */ new Date();
2302
- if (j.hasAttribute("data-vaul-no-drag") || j.closest("[data-vaul-no-drag]"))
2275
+ function nn(x, D) {
2276
+ var $;
2277
+ let N = x;
2278
+ const F = ($ = window.getSelection()) == null ? void 0 : $.toString(), B = R.current ? dt(R.current, m) : null, re = /* @__PURE__ */ new Date();
2279
+ if (N.hasAttribute("data-vaul-no-drag") || N.closest("[data-vaul-no-drag]"))
2303
2280
  return !1;
2304
- if (p === "right" || p === "left")
2281
+ if (m === "right" || m === "left")
2305
2282
  return !0;
2306
- if (Y.current && oe.getTime() - Y.current.getTime() < 500)
2283
+ if (Y.current && re.getTime() - Y.current.getTime() < 500)
2307
2284
  return !1;
2308
- if (B !== null && (p === "bottom" ? B > 0 : B < 0))
2285
+ if (B !== null && (m === "bottom" ? B > 0 : B < 0))
2309
2286
  return !0;
2310
2287
  if (F && F.length > 0)
2311
2288
  return !1;
2312
- if (pe.current && oe.getTime() - pe.current.getTime() < m && B === 0 || D)
2313
- return pe.current = oe, !1;
2314
- for (; j; ) {
2315
- if (j.scrollHeight > j.clientHeight) {
2316
- if (j.scrollTop !== 0)
2317
- return pe.current = /* @__PURE__ */ new Date(), !1;
2318
- if (j.getAttribute("role") === "dialog")
2289
+ if (me.current && re.getTime() - me.current.getTime() < p && B === 0 || D)
2290
+ return me.current = re, !1;
2291
+ for (; N; ) {
2292
+ if (N.scrollHeight > N.clientHeight) {
2293
+ if (N.scrollTop !== 0)
2294
+ return me.current = /* @__PURE__ */ new Date(), !1;
2295
+ if (N.getAttribute("role") === "dialog")
2319
2296
  return !0;
2320
2297
  }
2321
- j = j.parentNode;
2298
+ N = N.parentNode;
2322
2299
  }
2323
2300
  return !0;
2324
2301
  }
2325
- function Do(S) {
2326
- if (M.current && he) {
2327
- const D = p === "bottom" || p === "right" ? 1 : -1, k = (le.current - (z(p) ? S.clientY : S.clientX)) * D, j = k > 0, F = i && !c && !j;
2328
- if (F && ze === 0) return;
2329
- const B = Math.abs(k), oe = document.querySelector("[vaul-drawer-wrapper]");
2330
- let ce = B / en.current;
2331
- const Me = Eo(B, j);
2332
- if (Me !== null && (ce = Me), F && ce >= 1 || !ye.current && !rn(S.target, j)) return;
2333
- if (M.current.classList.add(Ct), ye.current = !0, I(M.current, {
2302
+ function Sa(x) {
2303
+ if (R.current && fe) {
2304
+ const D = m === "bottom" || m === "right" ? 1 : -1, $ = (ie.current - (z(m) ? x.clientY : x.clientX)) * D, N = $ > 0, F = s && !l && !N;
2305
+ if (F && Be === 0) return;
2306
+ const B = Math.abs($), re = document.querySelector("[vaul-drawer-wrapper]");
2307
+ let ce = B / Zt.current;
2308
+ const Ee = Ra(B, N);
2309
+ if (Ee !== null && (ce = Ee), F && ce >= 1 || !ye.current && !nn(x.target, N)) return;
2310
+ if (R.current.classList.add(Mt), ye.current = !0, A(R.current, {
2334
2311
  transition: "none"
2335
- }), I(U.current, {
2312
+ }), A(U.current, {
2336
2313
  transition: "none"
2337
- }), i && So({
2338
- draggedDistance: k
2339
- }), j && !i) {
2340
- const je = cl(k), st = Math.min(je * -1, 0) * D;
2341
- I(M.current, {
2342
- transform: z(p) ? `translate3d(0, ${st}px, 0)` : `translate3d(${st}px, 0, 0)`
2314
+ }), s && Ea({
2315
+ draggedDistance: $
2316
+ }), N && !s) {
2317
+ const De = sc($), ot = Math.min(De * -1, 0) * D;
2318
+ A(R.current, {
2319
+ transform: z(m) ? `translate3d(0, ${ot}px, 0)` : `translate3d(${ot}px, 0, 0)`
2343
2320
  });
2344
2321
  return;
2345
2322
  }
2346
2323
  const at = 1 - ce;
2347
- if ((nn || f && ze === f - 1) && (a == null || a(S, ce), I(U.current, {
2324
+ if ((tn || f && Be === f - 1) && (a == null || a(x, ce), A(U.current, {
2348
2325
  opacity: `${at}`,
2349
2326
  transition: "none"
2350
- }, !0)), oe && U.current && r) {
2351
- const je = Math.min(Ie() + ce * (1 - Ie()), 1), st = 8 - ce * 8, an = Math.max(0, 14 - ce * 14);
2352
- I(oe, {
2353
- borderRadius: `${st}px`,
2354
- transform: z(p) ? `scale(${je}) translate3d(0, ${an}px, 0)` : `scale(${je}) translate3d(${an}px, 0, 0)`,
2327
+ }, !0)), re && U.current && r) {
2328
+ const De = Math.min(Ie() + ce * (1 - Ie()), 1), ot = 8 - ce * 8, an = Math.max(0, 14 - ce * 14);
2329
+ A(re, {
2330
+ borderRadius: `${ot}px`,
2331
+ transform: z(m) ? `scale(${De}) translate3d(0, ${an}px, 0)` : `scale(${De}) translate3d(${an}px, 0, 0)`,
2355
2332
  transition: "none"
2356
2333
  }, !0);
2357
2334
  }
2358
- if (!i) {
2359
- const je = B * D;
2360
- I(M.current, {
2361
- transform: z(p) ? `translate3d(0, ${je}px, 0)` : `translate3d(${je}px, 0, 0)`
2335
+ if (!s) {
2336
+ const De = B * D;
2337
+ A(R.current, {
2338
+ transform: z(m) ? `translate3d(0, ${De}px, 0)` : `translate3d(${De}px, 0, 0)`
2362
2339
  });
2363
2340
  }
2364
2341
  }
2365
2342
  }
2366
- g.useEffect(() => () => {
2367
- ot(!1), Co();
2368
- }, []), g.useEffect(() => {
2369
- var S;
2343
+ h.useEffect(() => () => {
2344
+ rt(!1), xa();
2345
+ }, []), h.useEffect(() => {
2346
+ var x;
2370
2347
  function D() {
2371
- if (!M.current) return;
2372
- const k = document.activeElement;
2373
- if (Pt(k) || ge.current) {
2374
- var j;
2375
- const F = ((j = window.visualViewport) == null ? void 0 : j.height) || 0;
2348
+ if (!R.current) return;
2349
+ const $ = document.activeElement;
2350
+ if (Pt($) || he.current) {
2351
+ var N;
2352
+ const F = ((N = window.visualViewport) == null ? void 0 : N.height) || 0;
2376
2353
  let B = window.innerHeight - F;
2377
- const oe = M.current.getBoundingClientRect().height || 0;
2378
- bt.current || (bt.current = oe);
2379
- const ce = M.current.getBoundingClientRect().top;
2380
- if (Math.abs(re.current - B) > 60 && (ge.current = !ge.current), i && i.length > 0 && Ke && ze) {
2381
- const Me = Ke[ze] || 0;
2382
- B += Me;
2354
+ const re = R.current.getBoundingClientRect().height || 0;
2355
+ wt.current || (wt.current = re);
2356
+ const ce = R.current.getBoundingClientRect().top;
2357
+ if (Math.abs(ne.current - B) > 60 && (he.current = !he.current), s && s.length > 0 && ze && Be) {
2358
+ const Ee = ze[Be] || 0;
2359
+ B += Ee;
2383
2360
  }
2384
- if (re.current = B, oe > F || ge.current) {
2385
- const Me = M.current.getBoundingClientRect().height;
2386
- let at = Me;
2387
- Me > F && (at = F - Mn), K ? M.current.style.height = `${Me - Math.max(B, 0)}px` : M.current.style.height = `${Math.max(at, F - ce)}px`;
2361
+ if (ne.current = B, re > F || he.current) {
2362
+ const Ee = R.current.getBoundingClientRect().height;
2363
+ let at = Ee;
2364
+ Ee > F && (at = F - En), K ? R.current.style.height = `${Ee - Math.max(B, 0)}px` : R.current.style.height = `${Math.max(at, F - ce)}px`;
2388
2365
  } else
2389
- M.current.style.height = `${bt.current}px`;
2390
- i && i.length > 0 && !ge.current ? M.current.style.bottom = "0px" : M.current.style.bottom = `${Math.max(B, 0)}px`;
2366
+ R.current.style.height = `${wt.current}px`;
2367
+ s && s.length > 0 && !he.current ? R.current.style.bottom = "0px" : R.current.style.bottom = `${Math.max(B, 0)}px`;
2391
2368
  }
2392
2369
  }
2393
- return (S = window.visualViewport) == null || S.addEventListener("resize", D), () => {
2394
- var k;
2395
- return (k = window.visualViewport) == null ? void 0 : k.removeEventListener("resize", D);
2370
+ return (x = window.visualViewport) == null || x.addEventListener("resize", D), () => {
2371
+ var $;
2372
+ return ($ = window.visualViewport) == null ? void 0 : $.removeEventListener("resize", D);
2396
2373
  };
2397
2374
  }, [
2398
- ze,
2399
- i,
2400
- Ke
2375
+ Be,
2376
+ s,
2377
+ ze
2401
2378
  ]);
2402
2379
  function Ae() {
2403
- M.current && (jo(), q == null || q(), I(M.current, {
2404
- transform: z(p) ? `translate3d(0, ${p === "bottom" ? "100%" : "-100%"}, 0)` : `translate3d(${p === "right" ? "100%" : "-100%"}, 0, 0)`,
2405
- transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
2406
- }), I(U.current, {
2380
+ R.current && (Ca(), q == null || q(), A(R.current, {
2381
+ transform: z(m) ? `translate3d(0, ${m === "bottom" ? "100%" : "-100%"}, 0)` : `translate3d(${m === "right" ? "100%" : "-100%"}, 0, 0)`,
2382
+ transition: `transform ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`
2383
+ }), A(U.current, {
2407
2384
  opacity: "0",
2408
- transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
2409
- }), ot(!1), setTimeout(() => {
2385
+ transition: `opacity ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`
2386
+ }), rt(!1), setTimeout(() => {
2410
2387
  V(!1), w(!1);
2411
2388
  }, 300), setTimeout(() => {
2412
- i && tn(i[0]);
2413
- }, T.DURATION * 1e3));
2389
+ s && en(s[0]);
2390
+ }, _.DURATION * 1e3));
2414
2391
  }
2415
- g.useEffect(() => {
2416
- if (!_ && r) {
2417
- const S = setTimeout(() => {
2418
- dt(document.body);
2392
+ h.useEffect(() => {
2393
+ if (!O && r) {
2394
+ const x = setTimeout(() => {
2395
+ ut(document.body);
2419
2396
  }, 200);
2420
- return () => clearTimeout(S);
2397
+ return () => clearTimeout(x);
2421
2398
  }
2422
2399
  }, [
2423
- _,
2400
+ O,
2424
2401
  r
2425
- ]), Zr(() => {
2426
- e ? (w(!0), te(!0)) : Ae();
2402
+ ]), Jr(() => {
2403
+ e ? (w(!0), ee(!0)) : Ae();
2427
2404
  }, [
2428
2405
  e
2429
- ]), g.useEffect(() => {
2430
- X && (t == null || t(_));
2406
+ ]), h.useEffect(() => {
2407
+ X && (t == null || t(O));
2431
2408
  }, [
2432
- _
2433
- ]), g.useEffect(() => {
2409
+ O
2410
+ ]), h.useEffect(() => {
2434
2411
  Oe(!0);
2435
2412
  }, []);
2436
- function on() {
2437
- if (!M.current) return;
2438
- const S = document.querySelector("[vaul-drawer-wrapper]"), D = ft(M.current, p);
2439
- I(M.current, {
2413
+ function rn() {
2414
+ if (!R.current) return;
2415
+ const x = document.querySelector("[vaul-drawer-wrapper]"), D = dt(R.current, m);
2416
+ A(R.current, {
2440
2417
  transform: "translate3d(0, 0, 0)",
2441
- transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`
2442
- }), I(U.current, {
2443
- transition: `opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2418
+ transition: `transform ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`
2419
+ }), A(U.current, {
2420
+ transition: `opacity ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`,
2444
2421
  opacity: "1"
2445
- }), r && D && D > 0 && _ && I(S, {
2422
+ }), r && D && D > 0 && O && A(x, {
2446
2423
  borderRadius: `${yn}px`,
2447
2424
  overflow: "hidden",
2448
- ...z(p) ? {
2425
+ ...z(m) ? {
2449
2426
  transform: `scale(${Ie()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
2450
2427
  transformOrigin: "top"
2451
2428
  } : {
@@ -2453,74 +2430,74 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
2453
2430
  transformOrigin: "left"
2454
2431
  },
2455
2432
  transitionProperty: "transform, border-radius",
2456
- transitionDuration: `${T.DURATION}s`,
2457
- transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
2433
+ transitionDuration: `${_.DURATION}s`,
2434
+ transitionTimingFunction: `cubic-bezier(${_.EASE.join(",")})`
2458
2435
  }, !0);
2459
2436
  }
2460
- function jo() {
2461
- !he || !M.current || (M.current.classList.remove(Ct), ye.current = !1, Be(!1), De.current = /* @__PURE__ */ new Date());
2462
- }
2463
- function No(S) {
2464
- if (!he || !M.current) return;
2465
- M.current.classList.remove(Ct), ye.current = !1, Be(!1), De.current = /* @__PURE__ */ new Date();
2466
- const D = ft(M.current, p);
2467
- if (!rn(S.target, !1) || !D || Number.isNaN(D) || ne.current === null) return;
2468
- const k = De.current.getTime() - ne.current.getTime(), j = le.current - (z(p) ? S.clientY : S.clientX), F = Math.abs(j) / k;
2469
- if (F > 0.05 && (E(!0), setTimeout(() => {
2470
- E(!1);
2471
- }, 200)), i) {
2472
- Mo({
2473
- draggedDistance: j * (p === "bottom" || p === "right" ? 1 : -1),
2437
+ function Ca() {
2438
+ !fe || !R.current || (R.current.classList.remove(Mt), ye.current = !1, Ue(!1), Ce.current = /* @__PURE__ */ new Date());
2439
+ }
2440
+ function Da(x) {
2441
+ if (!fe || !R.current) return;
2442
+ R.current.classList.remove(Mt), ye.current = !1, Ue(!1), Ce.current = /* @__PURE__ */ new Date();
2443
+ const D = dt(R.current, m);
2444
+ if (!nn(x.target, !1) || !D || Number.isNaN(D) || te.current === null) return;
2445
+ const $ = Ce.current.getTime() - te.current.getTime(), N = ie.current - (z(m) ? x.clientY : x.clientX), F = Math.abs(N) / $;
2446
+ if (F > 0.05 && (M(!0), setTimeout(() => {
2447
+ M(!1);
2448
+ }, 200)), s) {
2449
+ ya({
2450
+ draggedDistance: N * (m === "bottom" || m === "right" ? 1 : -1),
2474
2451
  closeDrawer: Ae,
2475
2452
  velocity: F,
2476
- dismissible: c
2477
- }), s == null || s(S, !0);
2453
+ dismissible: l
2454
+ }), o == null || o(x, !0);
2478
2455
  return;
2479
2456
  }
2480
- if (p === "bottom" || p === "right" ? j > 0 : j < 0) {
2481
- on(), s == null || s(S, !0);
2457
+ if (m === "bottom" || m === "right" ? N > 0 : N < 0) {
2458
+ rn(), o == null || o(x, !0);
2482
2459
  return;
2483
2460
  }
2484
- if (F > ao) {
2485
- Ae(), s == null || s(S, !1);
2461
+ if (F > aa) {
2462
+ Ae(), o == null || o(x, !1);
2486
2463
  return;
2487
2464
  }
2488
2465
  var B;
2489
- const oe = Math.min((B = M.current.getBoundingClientRect().height) != null ? B : 0, window.innerHeight);
2490
- if (D >= oe * v) {
2491
- Ae(), s == null || s(S, !1);
2466
+ const re = Math.min((B = R.current.getBoundingClientRect().height) != null ? B : 0, window.innerHeight);
2467
+ if (D >= re * v) {
2468
+ Ae(), o == null || o(x, !1);
2492
2469
  return;
2493
2470
  }
2494
- s == null || s(S, !0), on();
2471
+ o == null || o(x, !0), rn();
2495
2472
  }
2496
- g.useEffect(() => {
2497
- _ && (I(document.documentElement, {
2473
+ h.useEffect(() => {
2474
+ O && (A(document.documentElement, {
2498
2475
  scrollBehavior: "auto"
2499
- }), Y.current = /* @__PURE__ */ new Date(), ot(!0));
2476
+ }), Y.current = /* @__PURE__ */ new Date(), rt(!0));
2500
2477
  }, [
2501
- _
2502
- ]), g.useEffect(() => {
2503
- if (M.current && Q) {
2504
- var S;
2505
- const D = M == null || (S = M.current) == null ? void 0 : S.querySelectorAll("*");
2506
- D == null || D.forEach((k) => {
2507
- const j = k;
2508
- (j.scrollHeight > j.clientHeight || j.scrollWidth > j.clientWidth) && j.classList.add("vaul-scrollable");
2478
+ O
2479
+ ]), h.useEffect(() => {
2480
+ if (R.current && Q) {
2481
+ var x;
2482
+ const D = R == null || (x = R.current) == null ? void 0 : x.querySelectorAll("*");
2483
+ D == null || D.forEach(($) => {
2484
+ const N = $;
2485
+ (N.scrollHeight > N.clientHeight || N.scrollWidth > N.clientWidth) && N.classList.add("vaul-scrollable");
2509
2486
  });
2510
2487
  }
2511
2488
  }, [
2512
2489
  Q
2513
2490
  ]);
2514
- function ot(S) {
2491
+ function rt(x) {
2515
2492
  const D = document.querySelector("[vaul-drawer-wrapper]");
2516
- !D || !r || (S ? (u && (x || (I(document.body, {
2493
+ !D || !r || (x ? (u && (y || (A(document.body, {
2517
2494
  background: document.body.style.backgroundColor || document.body.style.background
2518
- }), I(document.body, {
2495
+ }), A(document.body, {
2519
2496
  background: "black"
2520
- }, !0))), I(D, {
2497
+ }, !0))), A(D, {
2521
2498
  borderRadius: `${yn}px`,
2522
2499
  overflow: "hidden",
2523
- ...z(p) ? {
2500
+ ...z(m) ? {
2524
2501
  transform: `scale(${Ie()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
2525
2502
  transformOrigin: "top"
2526
2503
  } : {
@@ -2528,131 +2505,131 @@ function io({ open: e, onOpenChange: t, children: n, shouldScaleBackground: r, o
2528
2505
  transformOrigin: "left"
2529
2506
  },
2530
2507
  transitionProperty: "transform, border-radius",
2531
- transitionDuration: `${T.DURATION}s`,
2532
- transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
2533
- })) : (dt(D, "overflow"), dt(D, "transform"), dt(D, "borderRadius"), I(D, {
2508
+ transitionDuration: `${_.DURATION}s`,
2509
+ transitionTimingFunction: `cubic-bezier(${_.EASE.join(",")})`
2510
+ })) : (ut(D, "overflow"), ut(D, "transform"), ut(D, "borderRadius"), A(D, {
2534
2511
  transitionProperty: "transform, border-radius",
2535
- transitionDuration: `${T.DURATION}s`,
2536
- transitionTimingFunction: `cubic-bezier(${T.EASE.join(",")})`
2512
+ transitionDuration: `${_.DURATION}s`,
2513
+ transitionTimingFunction: `cubic-bezier(${_.EASE.join(",")})`
2537
2514
  })));
2538
2515
  }
2539
- function Po(S) {
2540
- const D = S ? (window.innerWidth - Ne) / window.innerWidth : 1, k = S ? -Ne : 0;
2541
- me.current && window.clearTimeout(me.current), I(M.current, {
2542
- transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2543
- transform: `scale(${D}) translate3d(0, ${k}px, 0)`
2544
- }), !S && M.current && (me.current = setTimeout(() => {
2545
- const j = ft(M.current, p);
2546
- I(M.current, {
2516
+ function Na(x) {
2517
+ const D = x ? (window.innerWidth - Ne) / window.innerWidth : 1, $ = x ? -Ne : 0;
2518
+ pe.current && window.clearTimeout(pe.current), A(R.current, {
2519
+ transition: `transform ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`,
2520
+ transform: `scale(${D}) translate3d(0, ${$}px, 0)`
2521
+ }), !x && R.current && (pe.current = setTimeout(() => {
2522
+ const N = dt(R.current, m);
2523
+ A(R.current, {
2547
2524
  transition: "none",
2548
- transform: z(p) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
2525
+ transform: z(m) ? `translate3d(0, ${N}px, 0)` : `translate3d(${N}px, 0, 0)`
2549
2526
  });
2550
2527
  }, 500));
2551
2528
  }
2552
- function To(S, D) {
2529
+ function Pa(x, D) {
2553
2530
  if (D < 0) return;
2554
- const k = z(p) ? window.innerHeight : window.innerWidth, j = (k - Ne) / k, F = j + D * (1 - j), B = -Ne + D * Ne;
2555
- I(M.current, {
2556
- transform: z(p) ? `scale(${F}) translate3d(0, ${B}px, 0)` : `scale(${F}) translate3d(${B}px, 0, 0)`,
2531
+ const $ = z(m) ? window.innerHeight : window.innerWidth, N = ($ - Ne) / $, F = N + D * (1 - N), B = -Ne + D * Ne;
2532
+ A(R.current, {
2533
+ transform: z(m) ? `scale(${F}) translate3d(0, ${B}px, 0)` : `scale(${F}) translate3d(${B}px, 0, 0)`,
2557
2534
  transition: "none"
2558
2535
  });
2559
2536
  }
2560
- function _o(S, D) {
2561
- const k = z(p) ? window.innerHeight : window.innerWidth, j = D ? (k - Ne) / k : 1, F = D ? -Ne : 0;
2562
- D && I(M.current, {
2563
- transition: `transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,
2564
- transform: z(p) ? `scale(${j}) translate3d(0, ${F}px, 0)` : `scale(${j}) translate3d(${F}px, 0, 0)`
2537
+ function Ta(x, D) {
2538
+ const $ = z(m) ? window.innerHeight : window.innerWidth, N = D ? ($ - Ne) / $ : 1, F = D ? -Ne : 0;
2539
+ D && A(R.current, {
2540
+ transition: `transform ${_.DURATION}s cubic-bezier(${_.EASE.join(",")})`,
2541
+ transform: z(m) ? `scale(${N}) translate3d(0, ${F}px, 0)` : `scale(${N}) translate3d(${F}px, 0, 0)`
2565
2542
  });
2566
2543
  }
2567
- return /* @__PURE__ */ g.createElement(Xa, {
2544
+ return /* @__PURE__ */ h.createElement(Go, {
2568
2545
  modal: H,
2569
- onOpenChange: (S) => {
2546
+ onOpenChange: (x) => {
2570
2547
  if (e !== void 0) {
2571
- t == null || t(S);
2548
+ t == null || t(x);
2572
2549
  return;
2573
2550
  }
2574
- S ? (te(!0), w(S)) : Ae();
2551
+ x ? (ee(!0), w(x)) : Ae();
2575
2552
  },
2576
- open: _
2577
- }, /* @__PURE__ */ g.createElement(Jr.Provider, {
2553
+ open: O
2554
+ }, /* @__PURE__ */ h.createElement(Xr.Provider, {
2578
2555
  value: {
2579
2556
  visible: Q,
2580
- activeSnapPoint: yo,
2581
- snapPoints: i,
2582
- setActiveSnapPoint: tn,
2583
- drawerRef: M,
2557
+ activeSnapPoint: ba,
2558
+ snapPoints: s,
2559
+ setActiveSnapPoint: en,
2560
+ drawerRef: R,
2584
2561
  overlayRef: U,
2585
- scaleBackground: ot,
2562
+ scaleBackground: rt,
2586
2563
  onOpenChange: t,
2587
- onPress: Ro,
2564
+ onPress: Ma,
2588
2565
  setVisible: V,
2589
- onRelease: No,
2590
- onDrag: Do,
2591
- dismissible: c,
2566
+ onRelease: Da,
2567
+ onDrag: Sa,
2568
+ dismissible: l,
2592
2569
  handleOnly: d,
2593
- isOpen: _,
2594
- isDragging: he,
2595
- shouldFade: nn,
2570
+ isOpen: O,
2571
+ isDragging: fe,
2572
+ shouldFade: tn,
2596
2573
  closeDrawer: Ae,
2597
- onNestedDrag: To,
2598
- onNestedOpenChange: Po,
2599
- onNestedRelease: _o,
2600
- keyboardIsOpen: ge,
2574
+ onNestedDrag: Pa,
2575
+ onNestedOpenChange: Na,
2576
+ onNestedRelease: Ta,
2577
+ keyboardIsOpen: he,
2601
2578
  openProp: e,
2602
2579
  modal: H,
2603
- snapPointsOffset: Ke,
2604
- direction: p
2580
+ snapPointsOffset: ze,
2581
+ direction: m
2605
2582
  }
2606
2583
  }, n));
2607
2584
  }
2608
- const ml = 250, gl = 120, lo = /* @__PURE__ */ g.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2609
- const { visible: a, closeDrawer: s, isDragging: i, snapPoints: l, activeSnapPoint: u, setActiveSnapPoint: v, dismissible: m, handleOnly: c, onPress: d, onDrag: f } = wt(), y = g.useRef(null), R = g.useRef(!1);
2585
+ const fc = 250, mc = 120, ia = /* @__PURE__ */ h.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2586
+ const { visible: a, closeDrawer: o, isDragging: s, snapPoints: i, activeSnapPoint: u, setActiveSnapPoint: v, dismissible: p, handleOnly: l, onPress: d, onDrag: f } = vt(), E = h.useRef(null), C = h.useRef(!1);
2610
2587
  function K() {
2611
- if (R.current) {
2612
- x();
2588
+ if (C.current) {
2589
+ y();
2613
2590
  return;
2614
2591
  }
2615
2592
  window.setTimeout(() => {
2616
2593
  H();
2617
- }, gl);
2594
+ }, mc);
2618
2595
  }
2619
2596
  function H() {
2620
- if (i || e || R.current) {
2621
- x();
2597
+ if (s || e || C.current) {
2598
+ y();
2622
2599
  return;
2623
2600
  }
2624
- if (x(), (!l || l.length === 0) && m) {
2625
- s();
2601
+ if (y(), (!i || i.length === 0) && p) {
2602
+ o();
2626
2603
  return;
2627
2604
  }
2628
- if (u === l[l.length - 1] && m) {
2629
- s();
2605
+ if (u === i[i.length - 1] && p) {
2606
+ o();
2630
2607
  return;
2631
2608
  }
2632
- const C = l.findIndex((P) => P === u);
2633
- if (C === -1) return;
2634
- const N = l[C + 1];
2635
- v(N);
2609
+ const S = i.findIndex((T) => T === u);
2610
+ if (S === -1) return;
2611
+ const P = i[S + 1];
2612
+ v(P);
2636
2613
  }
2637
2614
  function q() {
2638
- y.current = window.setTimeout(() => {
2639
- R.current = !0;
2640
- }, ml);
2615
+ E.current = window.setTimeout(() => {
2616
+ C.current = !0;
2617
+ }, fc);
2641
2618
  }
2642
- function x() {
2643
- window.clearTimeout(y.current), R.current = !1;
2619
+ function y() {
2620
+ window.clearTimeout(E.current), C.current = !1;
2644
2621
  }
2645
- return /* @__PURE__ */ g.createElement("div", {
2622
+ return /* @__PURE__ */ h.createElement("div", {
2646
2623
  onClick: K,
2647
2624
  onDoubleClick: () => {
2648
- R.current = !0, s();
2625
+ C.current = !0, o();
2649
2626
  },
2650
- onPointerCancel: x,
2651
- onPointerDown: (p) => {
2652
- c && d(p), q();
2627
+ onPointerCancel: y,
2628
+ onPointerDown: (m) => {
2629
+ l && d(m), q();
2653
2630
  },
2654
- onPointerMove: (p) => {
2655
- c && f(p);
2631
+ onPointerMove: (m) => {
2632
+ l && f(m);
2656
2633
  },
2657
2634
  // onPointerUp is already handled by the content component
2658
2635
  ref: r,
@@ -2660,47 +2637,47 @@ const ml = 250, gl = 120, lo = /* @__PURE__ */ g.forwardRef(function({ preventCy
2660
2637
  "vaul-handle": "",
2661
2638
  "aria-hidden": "true",
2662
2639
  ...n
2663
- }, /* @__PURE__ */ g.createElement("span", {
2640
+ }, /* @__PURE__ */ h.createElement("span", {
2664
2641
  "vaul-handle-hitarea": "",
2665
2642
  "aria-hidden": "true"
2666
2643
  }, t));
2667
2644
  });
2668
- lo.displayName = "Drawer.Handle";
2669
- const co = /* @__PURE__ */ g.forwardRef(function({ children: e, ...t }, n) {
2670
- const { overlayRef: r, snapPoints: a, onRelease: s, shouldFade: i, isOpen: l, visible: u } = wt(), v = ro(n, r), m = a && a.length > 0;
2671
- return /* @__PURE__ */ g.createElement(Ka, {
2672
- onMouseUp: s,
2645
+ ia.displayName = "Drawer.Handle";
2646
+ const ca = /* @__PURE__ */ h.forwardRef(function({ children: e, ...t }, n) {
2647
+ const { overlayRef: r, snapPoints: a, onRelease: o, shouldFade: s, isOpen: i, visible: u } = vt(), v = na(n, r), p = a && a.length > 0;
2648
+ return /* @__PURE__ */ h.createElement(Uo, {
2649
+ onMouseUp: o,
2673
2650
  ref: v,
2674
2651
  "vaul-drawer-visible": u ? "true" : "false",
2675
2652
  "vaul-overlay": "",
2676
- "vaul-snap-points": l && m ? "true" : "false",
2677
- "vaul-snap-points-overlay": l && i ? "true" : "false",
2653
+ "vaul-snap-points": i && p ? "true" : "false",
2654
+ "vaul-snap-points-overlay": i && s ? "true" : "false",
2678
2655
  ...t
2679
2656
  });
2680
2657
  });
2681
- co.displayName = "Drawer.Overlay";
2682
- const uo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointerDownOutside: t, onAnimationEnd: n, style: r, ...a }, s) {
2683
- const { drawerRef: i, onPress: l, onRelease: u, onDrag: v, dismissible: m, keyboardIsOpen: c, snapPointsOffset: d, visible: f, closeDrawer: y, modal: R, openProp: K, onOpenChange: H, setVisible: q, handleOnly: x, direction: p } = wt(), C = ro(s, i), N = g.useRef(null), P = g.useRef(!1), _ = (w, L, te = 0) => {
2684
- if (P.current) return !0;
2658
+ ca.displayName = "Drawer.Overlay";
2659
+ const la = /* @__PURE__ */ h.forwardRef(function({ onOpenAutoFocus: e, onPointerDownOutside: t, onAnimationEnd: n, style: r, ...a }, o) {
2660
+ const { drawerRef: s, onPress: i, onRelease: u, onDrag: v, dismissible: p, keyboardIsOpen: l, snapPointsOffset: d, visible: f, closeDrawer: E, modal: C, openProp: K, onOpenChange: H, setVisible: q, handleOnly: y, direction: m } = vt(), S = na(o, s), P = h.useRef(null), T = h.useRef(!1), O = (w, j, ee = 0) => {
2661
+ if (T.current) return !0;
2685
2662
  const Q = Math.abs(w.y), V = Math.abs(w.x), X = V > Q, Oe = [
2686
2663
  "bottom",
2687
2664
  "right"
2688
- ].includes(L) ? 1 : -1;
2689
- if (L === "left" || L === "right") {
2690
- if (!(w.x * Oe < 0) && V >= 0 && V <= te)
2665
+ ].includes(j) ? 1 : -1;
2666
+ if (j === "left" || j === "right") {
2667
+ if (!(w.x * Oe < 0) && V >= 0 && V <= ee)
2691
2668
  return X;
2692
- } else if (!(w.y * Oe < 0) && Q >= 0 && Q <= te)
2669
+ } else if (!(w.y * Oe < 0) && Q >= 0 && Q <= ee)
2693
2670
  return !X;
2694
- return P.current = !0, !0;
2671
+ return T.current = !0, !0;
2695
2672
  };
2696
- return g.useEffect(() => {
2673
+ return h.useEffect(() => {
2697
2674
  q(!0);
2698
- }, []), /* @__PURE__ */ g.createElement(Va, {
2675
+ }, []), /* @__PURE__ */ h.createElement(Bo, {
2699
2676
  "vaul-drawer": "",
2700
- "vaul-drawer-direction": p,
2677
+ "vaul-drawer-direction": m,
2701
2678
  "vaul-drawer-visible": f ? "true" : "false",
2702
2679
  ...a,
2703
- ref: C,
2680
+ ref: S,
2704
2681
  style: d && d.length > 0 ? {
2705
2682
  "--snap-point-height": `${d[0]}px`,
2706
2683
  ...r
@@ -2709,433 +2686,369 @@ const uo = /* @__PURE__ */ g.forwardRef(function({ onOpenAutoFocus: e, onPointer
2709
2686
  if (e)
2710
2687
  e(w);
2711
2688
  else {
2712
- var L;
2713
- w.preventDefault(), (L = i.current) == null || L.focus();
2689
+ var j;
2690
+ w.preventDefault(), (j = s.current) == null || j.focus();
2714
2691
  }
2715
2692
  },
2716
2693
  onPointerDown: (w) => {
2717
- x || (a.onPointerDown == null || a.onPointerDown.call(a, w), N.current = {
2694
+ y || (a.onPointerDown == null || a.onPointerDown.call(a, w), P.current = {
2718
2695
  x: w.clientX,
2719
2696
  y: w.clientY
2720
- }, l(w));
2697
+ }, i(w));
2721
2698
  },
2722
2699
  onPointerDownOutside: (w) => {
2723
- if (t == null || t(w), !R || w.defaultPrevented) {
2700
+ if (t == null || t(w), !C || w.defaultPrevented) {
2724
2701
  w.preventDefault();
2725
2702
  return;
2726
2703
  }
2727
- c.current && (c.current = !1), w.preventDefault(), H == null || H(!1), !(!m || K !== void 0) && y();
2704
+ l.current && (l.current = !1), w.preventDefault(), H == null || H(!1), !(!p || K !== void 0) && E();
2728
2705
  },
2729
2706
  onFocusOutside: (w) => {
2730
- if (!R) {
2707
+ if (!C) {
2731
2708
  w.preventDefault();
2732
2709
  return;
2733
2710
  }
2734
2711
  },
2735
2712
  onEscapeKeyDown: (w) => {
2736
- if (!R) {
2713
+ if (!C) {
2737
2714
  w.preventDefault();
2738
2715
  return;
2739
2716
  }
2740
2717
  },
2741
2718
  onPointerMove: (w) => {
2742
- if (x || (a.onPointerMove == null || a.onPointerMove.call(a, w), !N.current)) return;
2743
- const L = w.clientY - N.current.y, te = w.clientX - N.current.x, Q = w.pointerType === "touch" ? 10 : 2;
2744
- _({
2745
- x: te,
2746
- y: L
2747
- }, p, Q) ? v(w) : (Math.abs(te) > Q || Math.abs(L) > Q) && (N.current = null);
2719
+ if (y || (a.onPointerMove == null || a.onPointerMove.call(a, w), !P.current)) return;
2720
+ const j = w.clientY - P.current.y, ee = w.clientX - P.current.x, Q = w.pointerType === "touch" ? 10 : 2;
2721
+ O({
2722
+ x: ee,
2723
+ y: j
2724
+ }, m, Q) ? v(w) : (Math.abs(ee) > Q || Math.abs(j) > Q) && (P.current = null);
2748
2725
  },
2749
2726
  onPointerUp: (w) => {
2750
- a.onPointerUp == null || a.onPointerUp.call(a, w), N.current = null, P.current = !1, u(w);
2727
+ a.onPointerUp == null || a.onPointerUp.call(a, w), P.current = null, T.current = !1, u(w);
2751
2728
  }
2752
2729
  });
2753
2730
  });
2754
- uo.displayName = "Drawer.Content";
2755
- function vl({ onDrag: e, onOpenChange: t, ...n }) {
2756
- const { onNestedDrag: r, onNestedOpenChange: a, onNestedRelease: s } = wt();
2731
+ la.displayName = "Drawer.Content";
2732
+ function pc({ onDrag: e, onOpenChange: t, ...n }) {
2733
+ const { onNestedDrag: r, onNestedOpenChange: a, onNestedRelease: o } = vt();
2757
2734
  if (!r)
2758
2735
  throw new Error("Drawer.NestedRoot must be placed in another drawer");
2759
- return /* @__PURE__ */ g.createElement(io, {
2736
+ return /* @__PURE__ */ h.createElement(sa, {
2760
2737
  nested: !0,
2761
2738
  onClose: () => {
2762
2739
  a(!1);
2763
2740
  },
2764
- onDrag: (i, l) => {
2765
- r(i, l), e == null || e(i, l);
2741
+ onDrag: (s, i) => {
2742
+ r(s, i), e == null || e(s, i);
2766
2743
  },
2767
- onOpenChange: (i) => {
2768
- i && a(i), t == null || t(i);
2744
+ onOpenChange: (s) => {
2745
+ s && a(s), t == null || t(s);
2769
2746
  },
2770
- onRelease: s,
2747
+ onRelease: o,
2771
2748
  ...n
2772
2749
  });
2773
2750
  }
2774
- const ie = {
2775
- Root: io,
2776
- NestedRoot: vl,
2777
- Content: uo,
2778
- Handle: lo,
2779
- Overlay: co,
2780
- Trigger: Qa,
2781
- Portal: qa,
2782
- Close: Ga,
2783
- Title: Wa,
2784
- Description: Ya
2785
- }, Xt = ({
2751
+ const se = {
2752
+ Root: sa,
2753
+ NestedRoot: pc,
2754
+ Content: la,
2755
+ Handle: ia,
2756
+ Overlay: ca,
2757
+ Trigger: zo,
2758
+ Portal: Ko,
2759
+ Close: Vo,
2760
+ Title: Qo,
2761
+ Description: qo
2762
+ }, Yt = ({
2786
2763
  shouldScaleBackground: e = !0,
2787
2764
  ...t
2788
- }) => /* @__PURE__ */ o.jsx(
2789
- ie.Root,
2765
+ }) => /* @__PURE__ */ c.createElement(
2766
+ se.Root,
2790
2767
  {
2791
2768
  shouldScaleBackground: e,
2792
2769
  ...t
2793
2770
  }
2794
2771
  );
2795
- Xt.displayName = "Drawer";
2796
- const fo = ie.Trigger, wl = ie.Portal, bl = ie.Close, ho = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
2797
- ie.Overlay,
2772
+ Yt.displayName = "Drawer";
2773
+ const ua = se.Trigger, hc = se.Portal, gc = se.Close, da = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.createElement(
2774
+ se.Overlay,
2798
2775
  {
2799
2776
  ref: n,
2800
- className: O("fixed inset-0 z-50 bg-black/80", e),
2777
+ className: I("fixed inset-0 z-50 bg-black/80", e),
2801
2778
  ...t
2802
2779
  }
2803
2780
  ));
2804
- ho.displayName = ie.Overlay.displayName;
2805
- const Jt = h.forwardRef(({ className: e, children: t, hideBar: n = !0, ...r }, a) => /* @__PURE__ */ o.jsxs(wl, { children: [
2806
- /* @__PURE__ */ o.jsx(ho, {}),
2807
- /* @__PURE__ */ o.jsxs(
2808
- ie.Content,
2809
- {
2810
- ref: a,
2811
- className: O(
2812
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2813
- e
2814
- ),
2815
- ...r,
2816
- children: [
2817
- !n && /* @__PURE__ */ o.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
2818
- t
2819
- ]
2820
- }
2821
- )
2822
- ] }));
2823
- Jt.displayName = "DrawerContent";
2824
- const Zt = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
2825
- ie.Title,
2781
+ da.displayName = se.Overlay.displayName;
2782
+ const Xt = c.forwardRef(({ className: e, children: t, hideBar: n = !0, ...r }, a) => /* @__PURE__ */ c.createElement(hc, null, /* @__PURE__ */ c.createElement(da, null), /* @__PURE__ */ c.createElement(
2783
+ se.Content,
2784
+ {
2785
+ ref: a,
2786
+ className: I(
2787
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2788
+ e
2789
+ ),
2790
+ ...r
2791
+ },
2792
+ !n && /* @__PURE__ */ c.createElement("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
2793
+ t
2794
+ )));
2795
+ Xt.displayName = "DrawerContent";
2796
+ const Jt = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.createElement(
2797
+ se.Title,
2826
2798
  {
2827
2799
  ref: n,
2828
- className: O(
2800
+ className: I(
2829
2801
  "text-lg font-semibold leading-none tracking-tight",
2830
2802
  e
2831
2803
  ),
2832
2804
  ...t
2833
2805
  }
2834
2806
  ));
2835
- Zt.displayName = ie.Title.displayName;
2836
- const xl = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o.jsx(
2837
- ie.Description,
2807
+ Jt.displayName = se.Title.displayName;
2808
+ const vc = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.createElement(
2809
+ se.Description,
2838
2810
  {
2839
2811
  ref: n,
2840
- className: O("text-sm text-muted-foreground", e),
2812
+ className: I("text-sm text-muted-foreground", e),
2841
2813
  ...t
2842
2814
  }
2843
2815
  ));
2844
- xl.displayName = ie.Description.displayName;
2845
- const yl = () => {
2846
- const { topNavigation: e } = Ue();
2847
- return /* @__PURE__ */ o.jsxs(Xt, { direction: "right", children: [
2848
- /* @__PURE__ */ o.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ o.jsx(fo, { className: "lg:hidden", children: /* @__PURE__ */ o.jsx(ka, { size: 22 }) }) }),
2849
- /* @__PURE__ */ o.jsxs(
2850
- Jt,
2816
+ vc.displayName = se.Description.displayName;
2817
+ const wc = () => {
2818
+ const { topNavigation: e } = He();
2819
+ return /* @__PURE__ */ React.createElement(Yt, { direction: "right" }, /* @__PURE__ */ React.createElement("div", { className: "flex lg:hidden justify-self-end" }, /* @__PURE__ */ React.createElement(ua, { className: "lg:hidden" }, /* @__PURE__ */ React.createElement(Io, { size: 22 }))), /* @__PURE__ */ React.createElement(
2820
+ Xt,
2821
+ {
2822
+ className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none",
2823
+ "aria-describedby": void 0
2824
+ },
2825
+ /* @__PURE__ */ React.createElement(In, null, /* @__PURE__ */ React.createElement(Jt, null, "Navigation")),
2826
+ /* @__PURE__ */ React.createElement("ul", { className: "flex flex-col items-center gap-4 p-4" }, e.map((t) => /* @__PURE__ */ React.createElement("li", { key: t.label }, /* @__PURE__ */ React.createElement(
2827
+ Ge,
2851
2828
  {
2852
- className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none",
2853
- "aria-describedby": void 0,
2854
- children: [
2855
- /* @__PURE__ */ o.jsx(In, { children: /* @__PURE__ */ o.jsx(Zt, { children: "Navigation" }) }),
2856
- /* @__PURE__ */ o.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.map((t) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
2857
- We,
2858
- {
2859
- className: ({ isActive: n }) => An(
2860
- "block font-medium border-b-2",
2861
- n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2862
- ),
2863
- to: t.id,
2864
- children: /* @__PURE__ */ o.jsx(bl, { children: t.label })
2865
- }
2866
- ) }, t.label)) })
2867
- ]
2868
- }
2869
- )
2870
- ] });
2871
- }, Ml = () => {
2872
- const e = Ue(), [t, n] = Te(!1), r = Ln(() => n(!1), []);
2873
- be(() => {
2829
+ className: ({ isActive: n }) => An(
2830
+ "block font-medium border-b-2",
2831
+ n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2832
+ ),
2833
+ to: t.id
2834
+ },
2835
+ /* @__PURE__ */ React.createElement(gc, null, t.label)
2836
+ ))))
2837
+ ));
2838
+ }, bc = () => {
2839
+ const e = He(), [t, n] = Te(!1), r = Ln(() => n(!1), []);
2840
+ we(() => {
2874
2841
  if (t)
2875
2842
  return;
2876
- function s(i) {
2877
- i.key === "k" && (i.metaKey || i.ctrlKey) && (i.preventDefault(), n(!0));
2843
+ function o(s) {
2844
+ s.key === "k" && (s.metaKey || s.ctrlKey) && (s.preventDefault(), n(!0));
2878
2845
  }
2879
- return window.addEventListener("keydown", s), () => {
2880
- window.removeEventListener("keydown", s);
2846
+ return window.addEventListener("keydown", o), () => {
2847
+ window.removeEventListener("keydown", o);
2881
2848
  };
2882
2849
  }, [t, n]);
2883
- const a = e.plugins.find(js);
2884
- return a ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2885
- /* @__PURE__ */ o.jsxs(
2886
- "button",
2887
- {
2888
- type: "button",
2889
- onClick: () => n(!0),
2890
- className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72",
2891
- children: [
2892
- /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
2893
- /* @__PURE__ */ o.jsx($a, { size: 14 }),
2894
- "Search"
2895
- ] }),
2896
- /* @__PURE__ */ o.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
2897
- ]
2898
- }
2899
- ),
2900
- /* @__PURE__ */ o.jsx(Fn, { fallback: null, children: a.renderSearch({
2901
- isOpen: t,
2902
- onClose: r
2903
- }) })
2904
- ] }) : null;
2905
- }, Sl = () => {
2906
- const { topNavigation: e } = Ue();
2907
- return e.length <= 1 ? /* @__PURE__ */ o.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ o.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
2908
- We,
2850
+ const a = e.plugins.find(Ss);
2851
+ return a ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
2852
+ "button",
2853
+ {
2854
+ type: "button",
2855
+ onClick: () => n(!0),
2856
+ className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72"
2857
+ },
2858
+ /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-2 flex-grow" }, /* @__PURE__ */ React.createElement(Ao, { size: 14 }), "Search"),
2859
+ /* @__PURE__ */ React.createElement("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex" }, "⌘K")
2860
+ ), /* @__PURE__ */ React.createElement(jn, { fallback: null }, a.renderSearch({
2861
+ isOpen: t,
2862
+ onClose: r
2863
+ }))) : null;
2864
+ }, yc = () => {
2865
+ const { topNavigation: e } = He();
2866
+ return e.length <= 1 ? /* @__PURE__ */ React.createElement("style", null, ":root { --top-nav-height: 0px; }") : /* @__PURE__ */ React.createElement("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]" }, /* @__PURE__ */ React.createElement("ul", { className: "flex flex-row items-center gap-8" }, e.map((t) => /* @__PURE__ */ React.createElement("li", { key: t.label }, /* @__PURE__ */ React.createElement(
2867
+ Ge,
2909
2868
  {
2910
2869
  className: ({ isActive: n }) => An(
2911
2870
  "block py-3.5 font-medium -mb-px border-b-2",
2912
2871
  n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2913
2872
  ),
2914
- to: t.id,
2915
- children: t.label
2873
+ to: t.id
2874
+ },
2875
+ t.label
2876
+ )))));
2877
+ }, fa = ({ item: e }) => e.children ? /* @__PURE__ */ React.createElement(Ki, { key: e.label }, /* @__PURE__ */ React.createElement(Vr, null, e.label), /* @__PURE__ */ React.createElement(zi, null, /* @__PURE__ */ React.createElement(Qr, null, e.children.map((t, n) => (
2878
+ // eslint-disable-next-line react/no-array-index-key
2879
+ /* @__PURE__ */ React.createElement(fa, { key: n, item: t })
2880
+ ))))) : /* @__PURE__ */ React.createElement(Ot, { to: e.path ?? "" }, /* @__PURE__ */ React.createElement(Gr, { key: e.label }, e.label)), ma = Fn(function() {
2881
+ const t = cn(), [n, r] = no(), { isAuthenticated: a, profile: o, isAuthEnabled: s } = cn(), i = He(), { page: u, plugins: v } = i, p = v.filter((d) => xs(d)).flatMap((d) => d.getProfileMenuItems(i)).map((d) => /* @__PURE__ */ React.createElement(fa, { key: d.label, item: d })), l = n ? ko : $o;
2882
+ return /* @__PURE__ */ React.createElement("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full" }, /* @__PURE__ */ React.createElement(Gi, null), /* @__PURE__ */ React.createElement("div", { className: "max-w-screen-2xl mx-auto" }, /* @__PURE__ */ React.createElement("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]" }, /* @__PURE__ */ React.createElement("div", { className: "flex" }, /* @__PURE__ */ React.createElement(Ot, { to: "/" }, /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-3.5" }, (u == null ? void 0 : u.logo) && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
2883
+ "img",
2884
+ {
2885
+ src: u.logo.src.light,
2886
+ alt: u.logo.alt ?? u.pageTitle,
2887
+ style: { width: u.logo.width },
2888
+ className: I("h-10", n && "hidden"),
2889
+ loading: "lazy"
2916
2890
  }
2917
- ) }, t.label)) }) });
2918
- }, po = ({ item: e }) => e.children ? /* @__PURE__ */ o.jsxs(qi, { children: [
2919
- /* @__PURE__ */ o.jsx(Qr, { children: e.label }),
2920
- /* @__PURE__ */ o.jsx(Qi, { children: /* @__PURE__ */ o.jsx(qr, { children: e.children.map((t, n) => (
2921
- // eslint-disable-next-line react/no-array-index-key
2922
- /* @__PURE__ */ o.jsx(po, { item: t }, n)
2923
- )) }) })
2924
- ] }, e.label) : /* @__PURE__ */ o.jsx(Ot, { to: e.path ?? "", children: /* @__PURE__ */ o.jsx(Wr, { children: e.label }, e.label) }), mo = Hn(function() {
2925
- const t = cn(), [n, r] = sa(), { isAuthenticated: a, profile: s, isAuthEnabled: i } = cn(), l = Ue(), { page: u, plugins: v } = l, m = v.filter((d) => Rs(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ o.jsx(po, { item: d }, d.label)), c = n ? La : Fa;
2926
- return /* @__PURE__ */ o.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
2927
- /* @__PURE__ */ o.jsx(Xi, {}),
2928
- /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
2929
- /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
2930
- /* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Ot, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
2931
- (u == null ? void 0 : u.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2932
- /* @__PURE__ */ o.jsx(
2933
- "img",
2934
- {
2935
- src: u.logo.src.light,
2936
- alt: u.logo.alt ?? u.pageTitle,
2937
- style: { width: u.logo.width },
2938
- className: O("h-10", n && "hidden"),
2939
- loading: "lazy"
2940
- }
2941
- ),
2942
- /* @__PURE__ */ o.jsx(
2943
- "img",
2944
- {
2945
- src: u.logo.src.dark,
2946
- alt: u.logo.alt ?? u.pageTitle,
2947
- style: { width: u.logo.width },
2948
- className: O("h-10", !n && "hidden"),
2949
- loading: "lazy"
2950
- }
2951
- )
2952
- ] }),
2953
- /* @__PURE__ */ o.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
2954
- ] }) }) }),
2955
- /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-2 md:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
2956
- /* @__PURE__ */ o.jsx("div", { className: "w-full justify-center flex", children: /* @__PURE__ */ o.jsx(Ml, {}) }),
2957
- /* @__PURE__ */ o.jsx(yl, {}),
2958
- /* @__PURE__ */ o.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
2959
- /* @__PURE__ */ o.jsx(Pe, { name: "head-navigation-start" }),
2960
- i && !a ? /* @__PURE__ */ o.jsx(Rt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : m.length > 0 && /* @__PURE__ */ o.jsxs(Ki, { modal: !1, children: [
2961
- /* @__PURE__ */ o.jsx(Vi, { asChild: !0, children: /* @__PURE__ */ o.jsx(Rt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
2962
- /* @__PURE__ */ o.jsxs(Gr, { className: "w-56", children: [
2963
- /* @__PURE__ */ o.jsx(Yr, { children: "My Account" }),
2964
- /* @__PURE__ */ o.jsx(Xr, {}),
2965
- m
2966
- ] })
2967
- ] }),
2968
- /* @__PURE__ */ o.jsx(
2969
- "button",
2970
- {
2971
- type: "button",
2972
- "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
2973
- className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
2974
- onClick: r,
2975
- children: /* @__PURE__ */ o.jsx(c, { size: 18 })
2976
- }
2977
- ),
2978
- /* @__PURE__ */ o.jsx(Pe, { name: "head-navigation-end" })
2979
- ] })
2980
- ] })
2981
- ] }),
2982
- /* @__PURE__ */ o.jsx(Sl, {})
2983
- ] })
2984
- ] });
2985
- }), go = {
2986
- Header: mo
2987
- }, El = $n(go), Cl = El.Provider, Rl = (e) => {
2891
+ ), /* @__PURE__ */ React.createElement(
2892
+ "img",
2893
+ {
2894
+ src: u.logo.src.dark,
2895
+ alt: u.logo.alt ?? u.pageTitle,
2896
+ style: { width: u.logo.width },
2897
+ className: I("h-10", !n && "hidden"),
2898
+ loading: "lazy"
2899
+ }
2900
+ )), /* @__PURE__ */ React.createElement("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide" }, u == null ? void 0 : u.pageTitle)))), /* @__PURE__ */ React.createElement("div", { className: "grid grid-cols-2 md:grid-cols-[--sidecar-grid-cols] items-center gap-8" }, /* @__PURE__ */ React.createElement("div", { className: "w-full justify-center flex" }, /* @__PURE__ */ React.createElement(bc, null)), /* @__PURE__ */ React.createElement(wc, null), /* @__PURE__ */ React.createElement("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2" }, /* @__PURE__ */ React.createElement(Pe, { name: "head-navigation-start" }), s && !a ? /* @__PURE__ */ React.createElement(St, { variant: "ghost", onClick: () => t.login() }, "Login") : p.length > 0 && /* @__PURE__ */ React.createElement(Ui, { modal: !1 }, /* @__PURE__ */ React.createElement(Bi, { asChild: !0 }, /* @__PURE__ */ React.createElement(St, { variant: "ghost" }, o != null && o.email ? `${o.email}` : "My Account")), /* @__PURE__ */ React.createElement(qr, { className: "w-56" }, /* @__PURE__ */ React.createElement(Wr, null, "My Account"), /* @__PURE__ */ React.createElement(Yr, null), p)), /* @__PURE__ */ React.createElement(
2901
+ "button",
2902
+ {
2903
+ type: "button",
2904
+ "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
2905
+ className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
2906
+ onClick: r
2907
+ },
2908
+ /* @__PURE__ */ React.createElement(l, { size: 18 })
2909
+ ), /* @__PURE__ */ React.createElement(Pe, { name: "head-navigation-end" })))), /* @__PURE__ */ React.createElement(yc, null)));
2910
+ }), pa = {
2911
+ Header: ma
2912
+ }, Ec = $n(pa), Rc = Ec.Provider, xc = (e) => {
2988
2913
  const [t, n] = Te(!1);
2989
- be(() => {
2990
- const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), l = s === "dark" || !s && i.matches;
2991
- n(l);
2914
+ we(() => {
2915
+ const o = localStorage.getItem("theme"), s = window.matchMedia("(prefers-color-scheme: dark)"), i = o === "dark" || !o && s.matches;
2916
+ n(i);
2992
2917
  }, [t]);
2993
2918
  const r = Ln(() => {
2994
- const s = !t;
2995
- document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
2919
+ const o = !t;
2920
+ document.documentElement.classList.toggle("dark", o), localStorage.setItem("theme", o ? "dark" : "light"), n(o);
2996
2921
  }, [t]), a = [t, r];
2997
- return /* @__PURE__ */ o.jsx(ia.Provider, { value: a, ...e });
2998
- }, Dl = ({
2922
+ return /* @__PURE__ */ React.createElement(ro.Provider, { value: a, ...e });
2923
+ }, Mc = ({
2999
2924
  children: e,
3000
2925
  context: t
3001
- }) => (Na({
2926
+ }) => (Co({
3002
2927
  queryFn: async () => (await t.initialize(), !0),
3003
2928
  queryKey: ["zudoku-initialize"]
3004
- }), /* @__PURE__ */ o.jsx(Pa.Provider, { value: t, children: e })), jl = ({
2929
+ }), /* @__PURE__ */ React.createElement(Do.Provider, { value: t }, e)), Sc = ({
3005
2930
  children: e,
3006
2931
  ...t
3007
2932
  }) => {
3008
- var c, d;
3009
- const n = xt(
3010
- () => ({ ...go, ...t.overrides }),
2933
+ var l, d;
2934
+ const n = bt(
2935
+ () => ({ ...pa, ...t.overrides }),
3011
2936
  [t.overrides]
3012
- ), r = xt(() => {
3013
- var y;
2937
+ ), r = bt(() => {
2938
+ var E;
3014
2939
  return {
3015
- ...(t.plugins ?? []).filter(Ts).flatMap(
3016
- (R) => R.getMdxComponents ? [R.getMdxComponents()] : []
3017
- ).reduce((R, K) => ({ ...R, ...K }), {}),
3018
- ...la,
3019
- ...(y = t.mdx) == null ? void 0 : y.components
2940
+ ...(t.plugins ?? []).filter(Ns).flatMap(
2941
+ (C) => C.getMdxComponents ? [C.getMdxComponents()] : []
2942
+ ).reduce((C, K) => ({ ...C, ...K }), {}),
2943
+ ...ao,
2944
+ ...(E = t.mdx) == null ? void 0 : E.components
3020
2945
  };
3021
- }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: a } = ma(Dt), [s, i] = Te(!1), l = xt(
3022
- () => s ? { stagger: !0 } : { stagger: a },
3023
- [a, s]
3024
- ), u = Bo();
3025
- be(() => {
3026
- s || i(!0);
3027
- }, [s, u.location]);
3028
- const [v] = Te(() => new Os(t)), m = (d = t.plugins) == null ? void 0 : d.filter(Ps).map((f, y) => {
3029
- var R;
3030
- return /* @__PURE__ */ o.jsx(ga, { children: (R = f.getHead) == null ? void 0 : R.call(f) }, y);
2946
+ }, [(l = t.mdx) == null ? void 0 : l.components, t.plugins]), { stagger: a } = fo(Ct), [o, s] = Te(!1), i = bt(
2947
+ () => o ? { stagger: !0 } : { stagger: a },
2948
+ [a, o]
2949
+ ), u = ja();
2950
+ we(() => {
2951
+ o || s(!0);
2952
+ }, [o, u.location]);
2953
+ const [v] = Te(() => new Ts(t)), p = (d = t.plugins) == null ? void 0 : d.filter(Ds).map((f, E) => {
2954
+ var C;
2955
+ return /* @__PURE__ */ React.createElement(mo, { key: E }, (C = f.getHead) == null ? void 0 : C.call(f));
3031
2956
  });
3032
- return /* @__PURE__ */ o.jsxs(Ta, { client: Wn, children: [
3033
- /* @__PURE__ */ o.jsx(_t, { children: m }),
3034
- /* @__PURE__ */ o.jsx(Dt.Provider, { value: l, children: /* @__PURE__ */ o.jsx(Dl, { context: v, children: /* @__PURE__ */ o.jsx(Ao, { components: r, children: /* @__PURE__ */ o.jsx(Rl, { children: /* @__PURE__ */ o.jsx(Cl, { value: n, children: /* @__PURE__ */ o.jsx(Ko, { slotlets: t.slotlets, children: /* @__PURE__ */ o.jsx(ca, { children: e ?? /* @__PURE__ */ o.jsx(Dn, {}) }) }) }) }) }) }) })
3035
- ] });
3036
- }, Nl = Hn(jl), vo = (e) => /* @__PURE__ */ o.jsx(Es, { FallbackComponent: Is, children: /* @__PURE__ */ o.jsx(Nl, { ...e }) });
3037
- vo.displayName = "DevPortal";
3038
- const Pl = ({
2957
+ return /* @__PURE__ */ React.createElement(No, { client: Gn }, /* @__PURE__ */ React.createElement(_t, null, p), /* @__PURE__ */ React.createElement(Ct.Provider, { value: i }, /* @__PURE__ */ React.createElement(Mc, { context: v }, /* @__PURE__ */ React.createElement(_a, { components: r }, /* @__PURE__ */ React.createElement(xc, null, /* @__PURE__ */ React.createElement(Rc, { value: n }, /* @__PURE__ */ React.createElement(Ha, { slotlets: t.slotlets }, /* @__PURE__ */ React.createElement(oo, null, e ?? /* @__PURE__ */ React.createElement(Cn, null)))))))));
2958
+ }, Cc = Fn(Sc), ha = (e) => /* @__PURE__ */ React.createElement(Es, { FallbackComponent: _s }, /* @__PURE__ */ React.createElement(Cc, { ...e }));
2959
+ ha.displayName = "DevPortal";
2960
+ const Dc = ({
3039
2961
  category: e,
3040
2962
  level: t
3041
2963
  }) => {
3042
2964
  var d;
3043
- const n = zn(), r = ko(e), [a, s] = Te(!1), i = e.collapsible ?? !0, l = e.collapsed ?? !0, u = !!(!i || !l || r), [v, m] = Te(u);
3044
- be(() => {
3045
- r && m(!0);
2965
+ const n = Bn(), r = Oa(e), [a, o] = Te(!1), s = e.collapsible ?? !0, i = e.collapsed ?? !0, u = !!(!s || !i || r), [v, p] = Te(u);
2966
+ we(() => {
2967
+ r && p(!0);
3046
2968
  }, [r]);
3047
- const c = i && /* @__PURE__ */ o.jsx(
2969
+ const l = s && /* @__PURE__ */ React.createElement(
3048
2970
  "button",
3049
2971
  {
3050
2972
  type: "button",
3051
2973
  onClick: (f) => {
3052
- f.preventDefault(), m((y) => !y), s(!0);
3053
- },
3054
- children: /* @__PURE__ */ o.jsx(
3055
- Kn,
3056
- {
3057
- size: 16,
3058
- className: O(
3059
- a && "transition",
3060
- "shrink-0 group-data-[state=open]:rotate-90"
3061
- )
3062
- }
3063
- )
3064
- }
2974
+ f.preventDefault(), p((E) => !E), o(!0);
2975
+ }
2976
+ },
2977
+ /* @__PURE__ */ React.createElement(
2978
+ zn,
2979
+ {
2980
+ size: 16,
2981
+ className: I(
2982
+ a && "transition",
2983
+ "shrink-0 group-data-[state=open]:rotate-90"
2984
+ )
2985
+ }
2986
+ )
3065
2987
  );
3066
- return /* @__PURE__ */ o.jsxs(
3067
- ba,
2988
+ return /* @__PURE__ */ React.createElement(
2989
+ go,
3068
2990
  {
3069
- className: O("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
2991
+ className: I("flex flex-col", t === 0 && "-mx-[--padding-nav-item]"),
3070
2992
  defaultOpen: u,
3071
2993
  open: v,
3072
- onOpenChange: () => m(!0),
3073
- children: [
3074
- /* @__PURE__ */ o.jsx(xa, { className: "group", asChild: !0, disabled: !i, children: /* @__PURE__ */ o.jsxs(
2994
+ onOpenChange: () => p(!0)
2995
+ },
2996
+ /* @__PURE__ */ React.createElement(vo, { className: "group", asChild: !0, disabled: !s }, /* @__PURE__ */ React.createElement(
2997
+ "div",
2998
+ {
2999
+ className: I(
3000
+ "text-start",
3001
+ qe({ isActive: !1, isTopLevel: t === 0 }),
3002
+ s ? "cursor-pointer" : "cursor-default hover:bg-transparent"
3003
+ )
3004
+ },
3005
+ e.icon && /* @__PURE__ */ React.createElement(
3006
+ e.icon,
3007
+ {
3008
+ size: 16,
3009
+ className: "align-[-0.125em] -translate-x-1"
3010
+ }
3011
+ ),
3012
+ ((d = e.link) == null ? void 0 : d.type) === "doc" ? /* @__PURE__ */ React.createElement(
3013
+ Ge,
3014
+ {
3015
+ to: jt(n == null ? void 0 : n.id, e.link.id),
3016
+ className: "flex-1",
3017
+ onClick: () => o(!0)
3018
+ },
3019
+ ({ isActive: f }) => /* @__PURE__ */ React.createElement(
3075
3020
  "div",
3076
3021
  {
3077
- className: O(
3078
- "text-start",
3079
- Ge({ isActive: !1, isTopLevel: t === 0 }),
3080
- i ? "cursor-pointer" : "cursor-default hover:bg-transparent"
3081
- ),
3082
- children: [
3083
- e.icon && /* @__PURE__ */ o.jsx(
3084
- e.icon,
3085
- {
3086
- size: 16,
3087
- className: "align-[-0.125em] -translate-x-1"
3088
- }
3089
- ),
3090
- ((d = e.link) == null ? void 0 : d.type) === "doc" ? /* @__PURE__ */ o.jsx(
3091
- We,
3092
- {
3093
- to: Ft(n == null ? void 0 : n.id, e.link.id),
3094
- className: "flex-1",
3095
- onClick: () => s(!0),
3096
- children: ({ isActive: f }) => /* @__PURE__ */ o.jsxs(
3097
- "div",
3098
- {
3099
- className: O(
3100
- "flex items-center gap-2 justify-between w-full",
3101
- f ? "text-primary font-medium" : "text-foreground/80"
3102
- ),
3103
- children: [
3104
- /* @__PURE__ */ o.jsx("div", { className: "truncate", children: e.label }),
3105
- c
3106
- ]
3107
- }
3108
- )
3109
- }
3110
- ) : /* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-between w-full", children: [
3111
- /* @__PURE__ */ o.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
3112
- c
3113
- ] })
3114
- ]
3115
- }
3116
- ) }),
3117
- /* @__PURE__ */ o.jsx(
3118
- ya,
3119
- {
3120
- className: O(
3121
- // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
3122
- a && "CollapsibleContent",
3123
- "ms-[calc(var(--padding-nav-item)*1.125)]"
3124
- ),
3125
- children: /* @__PURE__ */ o.jsx("ul", { className: "mt-1 border-l ps-2", children: e.items.map((f) => /* @__PURE__ */ o.jsx(
3126
- Tt,
3127
- {
3128
- level: t + 1,
3129
- item: f
3130
- },
3131
- ("id" in f ? f.id : "") + ("href" in f ? f.href : "") + f.label
3132
- )) })
3133
- }
3022
+ className: I(
3023
+ "flex items-center gap-2 justify-between w-full",
3024
+ f ? "text-primary font-medium" : "text-foreground/80"
3025
+ )
3026
+ },
3027
+ /* @__PURE__ */ React.createElement("div", { className: "truncate" }, e.label),
3028
+ l
3134
3029
  )
3135
- ]
3136
- }
3030
+ ) : /* @__PURE__ */ React.createElement("div", { className: "flex items-center justify-between w-full" }, /* @__PURE__ */ React.createElement("div", { className: "flex gap-2 truncate w-full" }, e.label), l)
3031
+ )),
3032
+ /* @__PURE__ */ React.createElement(
3033
+ wo,
3034
+ {
3035
+ className: I(
3036
+ // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
3037
+ a && "CollapsibleContent",
3038
+ "ms-[calc(var(--padding-nav-item)*1.125)]"
3039
+ )
3040
+ },
3041
+ /* @__PURE__ */ React.createElement("ul", { className: "mt-1 border-l ps-2" }, e.items.map((f) => /* @__PURE__ */ React.createElement(
3042
+ Tt,
3043
+ {
3044
+ key: ("id" in f ? f.id : "") + ("href" in f ? f.href : "") + f.label,
3045
+ level: t + 1,
3046
+ item: f
3047
+ }
3048
+ )))
3049
+ )
3137
3050
  );
3138
- }, Ge = ua(
3051
+ }, qe = so(
3139
3052
  "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
3140
3053
  {
3141
3054
  variants: {
@@ -3152,212 +3065,171 @@ const Pl = ({
3152
3065
  }
3153
3066
  }
3154
3067
  }
3155
- ), wo = "data-anchor", Tt = ({
3068
+ ), ga = "data-anchor", Tt = ({
3156
3069
  item: e,
3157
3070
  level: t = 0
3158
3071
  }) => {
3159
- const n = zn(), { activeAnchor: r } = kt(), [a] = zo();
3072
+ const n = Bn(), { activeAnchor: r } = kt(), [a] = Fa();
3160
3073
  switch (e.type) {
3161
3074
  case "category":
3162
- return /* @__PURE__ */ o.jsx(Pl, { category: e, level: t });
3075
+ return /* @__PURE__ */ React.createElement(Dc, { category: e, level: t });
3163
3076
  case "doc":
3164
- return /* @__PURE__ */ o.jsxs(
3165
- We,
3077
+ return /* @__PURE__ */ React.createElement(
3078
+ Ge,
3166
3079
  {
3167
- className: ({ isActive: s }) => Ge({ isActive: s, isTopLevel: t === 0 }),
3168
- to: Ft(n == null ? void 0 : n.id, e.id),
3169
- children: [
3170
- e.icon && /* @__PURE__ */ o.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
3171
- e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3172
- /* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3173
- /* @__PURE__ */ o.jsx(yt, { ...e.badge })
3174
- ] }) : e.label
3175
- ]
3176
- }
3080
+ className: ({ isActive: o }) => qe({ isActive: o, isTopLevel: t === 0 }),
3081
+ to: jt(n == null ? void 0 : n.id, e.id)
3082
+ },
3083
+ e.icon && /* @__PURE__ */ React.createElement(e.icon, { size: 16, className: "align-[-0.125em]" }),
3084
+ e.badge ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", { className: "truncate", title: e.label }, e.label), /* @__PURE__ */ React.createElement(yt, { ...e.badge })) : e.label
3177
3085
  );
3178
3086
  case "link":
3179
- return e.href.startsWith("#") ? /* @__PURE__ */ o.jsx(
3180
- $o,
3087
+ return e.href.startsWith("#") ? /* @__PURE__ */ React.createElement(
3088
+ Ia,
3181
3089
  {
3182
3090
  to: { hash: e.href, search: a.toString() },
3183
- [wo]: e.href.slice(1),
3184
- className: O(
3091
+ [ga]: e.href.slice(1),
3092
+ className: I(
3185
3093
  "flex gap-2.5 justify-between",
3186
3094
  t === 0 && "-mx-[--padding-nav-item]",
3187
- Ge({
3095
+ qe({
3188
3096
  isActive: e.href.slice(1) === r
3189
3097
  })
3190
- ),
3191
- children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3192
- /* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3193
- /* @__PURE__ */ o.jsx(yt, { ...e.badge })
3194
- ] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
3195
- }
3196
- ) : e.href.startsWith("http") ? /* @__PURE__ */ o.jsxs(
3098
+ )
3099
+ },
3100
+ e.badge ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", { className: "truncate", title: e.label }, e.label), /* @__PURE__ */ React.createElement(yt, { ...e.badge })) : /* @__PURE__ */ React.createElement("span", { className: "break-all" }, e.label)
3101
+ ) : e.href.startsWith("http") ? /* @__PURE__ */ React.createElement(
3197
3102
  "a",
3198
3103
  {
3199
- className: O(
3200
- Ge({ isTopLevel: t === 0 }),
3104
+ className: I(
3105
+ qe({ isTopLevel: t === 0 }),
3201
3106
  "block"
3202
3107
  ),
3203
3108
  href: e.href,
3204
3109
  target: "_blank",
3205
- rel: "noopener noreferrer",
3206
- children: [
3207
- /* @__PURE__ */ o.jsx("span", { className: "whitespace-normal", children: e.label }),
3208
- /* @__PURE__ */ o.jsxs("span", { className: "whitespace-nowrap", children: [
3209
- " ",
3210
- /* @__PURE__ */ o.jsx(Ha, { className: "inline ml-1", size: 12 })
3211
- ] })
3212
- ]
3213
- }
3214
- ) : /* @__PURE__ */ o.jsx(
3215
- We,
3110
+ rel: "noopener noreferrer"
3111
+ },
3112
+ /* @__PURE__ */ React.createElement("span", { className: "whitespace-normal" }, e.label),
3113
+ /* @__PURE__ */ React.createElement("span", { className: "whitespace-nowrap" }, " ", /* @__PURE__ */ React.createElement(Lo, { className: "inline ml-1", size: 12 }))
3114
+ ) : /* @__PURE__ */ React.createElement(
3115
+ Ge,
3216
3116
  {
3217
- className: O("flex gap-2.5 justify-between", Ge()),
3218
- to: e.href,
3219
- children: e.badge ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3220
- /* @__PURE__ */ o.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3221
- /* @__PURE__ */ o.jsx(yt, { ...e.badge })
3222
- ] }) : /* @__PURE__ */ o.jsx("span", { className: "break-all", children: e.label })
3223
- }
3117
+ className: I("flex gap-2.5 justify-between", qe()),
3118
+ to: e.href
3119
+ },
3120
+ e.badge ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("span", { className: "truncate", title: e.label }, e.label), /* @__PURE__ */ React.createElement(yt, { ...e.badge })) : /* @__PURE__ */ React.createElement("span", { className: "break-all" }, e.label)
3224
3121
  );
3225
3122
  }
3226
- }, Tl = (e, t = { block: "center" }) => {
3123
+ }, Nc = (e, t = { block: "center" }) => {
3227
3124
  if (!e) return;
3228
3125
  const n = e.getBoundingClientRect();
3229
3126
  n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
3230
- }, _l = () => {
3127
+ }, Pc = () => {
3231
3128
  const e = It(), { setActiveAnchor: t } = kt();
3232
- be(() => {
3129
+ we(() => {
3233
3130
  if (!e.hash) return;
3234
3131
  const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
3235
- const a = document.getElementById(n), s = document.querySelector(`[${wo}="${n}"]`);
3236
- return a ? (a.scrollIntoView(), Tl(s), requestIdleCallback(() => t(n)), !0) : !1;
3132
+ const a = document.getElementById(n), o = document.querySelector(`[${ga}="${n}"]`);
3133
+ return a ? (a.scrollIntoView(), Nc(o), requestIdleCallback(() => t(n)), !0) : !1;
3237
3134
  };
3238
3135
  if (!r()) {
3239
- const a = new MutationObserver((s, i) => {
3240
- r() && i.disconnect();
3136
+ const a = new MutationObserver((o, s) => {
3137
+ r() && s.disconnect();
3241
3138
  });
3242
3139
  return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
3243
3140
  }
3244
3141
  }, [e.hash, t]);
3245
- }, Ol = () => {
3142
+ }, Tc = () => {
3246
3143
  const e = It(), t = $t(e.pathname);
3247
- be(() => {
3144
+ we(() => {
3248
3145
  t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
3249
3146
  }, [e.pathname]);
3250
- }, bo = va(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ o.jsx(
3147
+ }, va = po(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ React.createElement(
3251
3148
  "nav",
3252
3149
  {
3253
3150
  "data-navigation": String(n),
3254
- className: O(
3151
+ className: I(
3255
3152
  "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
3256
3153
  "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
3257
3154
  "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
3258
3155
  t
3259
3156
  ),
3260
- ref: r,
3261
- children: e
3262
- }
3157
+ ref: r
3158
+ },
3159
+ e
3263
3160
  ));
3264
- bo.displayName = "SidebarWrapper";
3265
- const Il = () => {
3266
- const e = $t(null), t = _a();
3267
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3268
- /* @__PURE__ */ o.jsxs(
3269
- bo,
3270
- {
3271
- ref: e,
3272
- pushMainContent: t.data.items.length > 0,
3273
- children: [
3274
- /* @__PURE__ */ o.jsx(Pe, { name: "zudoku-before-navigation" }),
3275
- t.data.items.map((n) => /* @__PURE__ */ o.jsx(Tt, { item: n }, n.label)),
3276
- /* @__PURE__ */ o.jsx(Pe, { name: "zudoku-after-navigation" })
3277
- ]
3278
- }
3279
- ),
3280
- /* @__PURE__ */ o.jsxs(
3281
- Jt,
3161
+ va.displayName = "SidebarWrapper";
3162
+ const _c = () => {
3163
+ const e = $t(null), t = Po();
3164
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
3165
+ va,
3166
+ {
3167
+ ref: e,
3168
+ pushMainContent: t.data.items.length > 0
3169
+ },
3170
+ /* @__PURE__ */ React.createElement(Pe, { name: "zudoku-before-navigation" }),
3171
+ t.data.items.map((n) => /* @__PURE__ */ React.createElement(Tt, { key: n.label, item: n })),
3172
+ /* @__PURE__ */ React.createElement(Pe, { name: "zudoku-after-navigation" })
3173
+ ), /* @__PURE__ */ React.createElement(
3174
+ Xt,
3175
+ {
3176
+ className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none",
3177
+ "aria-describedby": void 0
3178
+ },
3179
+ /* @__PURE__ */ React.createElement(In, null, /* @__PURE__ */ React.createElement(Jt, null, "Sidebar")),
3180
+ t.data.items.map((n) => /* @__PURE__ */ React.createElement(Tt, { key: n.label, item: n }))
3181
+ ));
3182
+ }, Oc = ({ children: e }) => {
3183
+ const t = It(), { setActiveAnchor: n } = kt(), { meta: r, authentication: a } = He();
3184
+ Pc(), Tc();
3185
+ const o = $t(t.pathname);
3186
+ return we(() => {
3187
+ var s;
3188
+ (s = a == null ? void 0 : a.pageLoad) == null || s.call(a);
3189
+ }, [a]), we(() => {
3190
+ t.pathname !== o.current && n(""), o.current = t.pathname;
3191
+ }, [t.pathname, n]), /* @__PURE__ */ React.createElement(React.Fragment, null, !1, /* @__PURE__ */ React.createElement(_t, { titleTemplate: r == null ? void 0 : r.title }, (r == null ? void 0 : r.description) && /* @__PURE__ */ React.createElement("meta", { name: "description", content: r.description }), (r == null ? void 0 : r.favicon) && /* @__PURE__ */ React.createElement("link", { rel: "icon", href: r.favicon })), /* @__PURE__ */ React.createElement(Pe, { name: "layout-before-head" }), /* @__PURE__ */ React.createElement(ma, null), /* @__PURE__ */ React.createElement("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12" }, /* @__PURE__ */ React.createElement(
3192
+ jn,
3193
+ {
3194
+ fallback: /* @__PURE__ */ React.createElement("main", { className: "grid h-full place-items-center" }, /* @__PURE__ */ React.createElement(Wo, null))
3195
+ },
3196
+ /* @__PURE__ */ React.createElement(Yt, { direction: "left" }, /* @__PURE__ */ React.createElement(_c, null), /* @__PURE__ */ React.createElement(
3197
+ "div",
3282
3198
  {
3283
- className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none",
3284
- "aria-describedby": void 0,
3285
- children: [
3286
- /* @__PURE__ */ o.jsx(In, { children: /* @__PURE__ */ o.jsx(Zt, { children: "Sidebar" }) }),
3287
- t.data.items.map((n) => /* @__PURE__ */ o.jsx(Tt, { item: n }, n.label))
3288
- ]
3289
- }
3290
- )
3291
- ] });
3292
- }, Al = ({ children: e }) => {
3293
- const t = It(), { setActiveAnchor: n } = kt(), { meta: r, authentication: a } = Ue();
3294
- _l(), Ol();
3295
- const s = $t(t.pathname);
3296
- return be(() => {
3297
- var i;
3298
- (i = a == null ? void 0 : a.pageLoad) == null || i.call(a);
3299
- }, [a]), be(() => {
3300
- t.pathname !== s.current && n(""), s.current = t.pathname;
3301
- }, [t.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3302
- !1,
3303
- /* @__PURE__ */ o.jsxs(_t, { titleTemplate: r == null ? void 0 : r.title, children: [
3304
- (r == null ? void 0 : r.description) && /* @__PURE__ */ o.jsx("meta", { name: "description", content: r.description }),
3305
- (r == null ? void 0 : r.favicon) && /* @__PURE__ */ o.jsx("link", { rel: "icon", href: r.favicon })
3306
- ] }),
3307
- /* @__PURE__ */ o.jsx(Pe, { name: "layout-before-head" }),
3308
- /* @__PURE__ */ o.jsx(mo, {}),
3309
- /* @__PURE__ */ o.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ o.jsx(
3310
- Fn,
3199
+ className: I(
3200
+ "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
3201
+ "peer-data-[navigation=false]:hidden"
3202
+ )
3203
+ },
3204
+ /* @__PURE__ */ React.createElement(ua, { className: "flex items-center gap-2" }, /* @__PURE__ */ React.createElement(jo, { size: 16, strokeWidth: 1.5 }), /* @__PURE__ */ React.createElement("span", { className: "text-sm" }, "Menu"))
3205
+ ), /* @__PURE__ */ React.createElement(
3206
+ "main",
3311
3207
  {
3312
- fallback: /* @__PURE__ */ o.jsx("main", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(Ja, {}) }),
3313
- children: /* @__PURE__ */ o.jsxs(Xt, { direction: "left", children: [
3314
- /* @__PURE__ */ o.jsx(Il, {}),
3315
- /* @__PURE__ */ o.jsx(
3316
- "div",
3317
- {
3318
- className: O(
3319
- "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
3320
- "peer-data-[navigation=false]:hidden"
3321
- ),
3322
- children: /* @__PURE__ */ o.jsxs(fo, { className: "flex items-center gap-2", children: [
3323
- /* @__PURE__ */ o.jsx(Ua, { size: 16, strokeWidth: 1.5 }),
3324
- /* @__PURE__ */ o.jsx("span", { className: "text-sm", children: "Menu" })
3325
- ] })
3326
- }
3327
- ),
3328
- /* @__PURE__ */ o.jsxs(
3329
- "main",
3330
- {
3331
- className: O(
3332
- "h-full dark:border-white/10 translate-x-0",
3333
- "lg:overflow-visible",
3334
- // This works in tandem with the `SidebarWrapper` component
3335
- "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
3336
- "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
3337
- ),
3338
- children: [
3339
- /* @__PURE__ */ o.jsx(Pe, { name: "zudoku-before-content" }),
3340
- e ?? /* @__PURE__ */ o.jsx(Dn, {}),
3341
- /* @__PURE__ */ o.jsx(Pe, { name: "zudoku-after-content" })
3342
- ]
3343
- }
3344
- )
3345
- ] })
3346
- }
3347
- ) })
3348
- ] });
3349
- }, Zl = Lo, ec = da, tc = vo, nc = Al, rc = Ot, oc = Vo, ac = Za, sc = gs, ic = vs, lc = Rt, cc = _t;
3208
+ className: I(
3209
+ "h-full dark:border-white/10 translate-x-0",
3210
+ "lg:overflow-visible",
3211
+ // This works in tandem with the `SidebarWrapper` component
3212
+ "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
3213
+ "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
3214
+ )
3215
+ },
3216
+ /* @__PURE__ */ React.createElement(Pe, { name: "zudoku-before-content" }),
3217
+ e ?? /* @__PURE__ */ React.createElement(Cn, null),
3218
+ /* @__PURE__ */ React.createElement(Pe, { name: "zudoku-after-content" })
3219
+ ))
3220
+ )));
3221
+ }, Wc = Aa, Yc = io, Xc = ha, Jc = Oc, Zc = Ot, el = Ua, tl = Yo, nl = ms, rl = ps, al = St, ol = _t;
3350
3222
  export {
3351
- sc as Bootstrap,
3352
- ic as BootstrapStatic,
3353
- lc as Button,
3354
- ec as Callout,
3355
- tc as DevPortal,
3356
- cc as Head,
3357
- nc as Layout,
3358
- rc as Link,
3359
- oc as RouterError,
3360
- ac as ServerError,
3361
- Zl as useMDXComponents
3223
+ nl as Bootstrap,
3224
+ rl as BootstrapStatic,
3225
+ al as Button,
3226
+ Yc as Callout,
3227
+ Xc as DevPortal,
3228
+ ol as Head,
3229
+ Jc as Layout,
3230
+ Zc as Link,
3231
+ el as RouterError,
3232
+ tl as ServerError,
3233
+ Wc as useMDXComponents
3362
3234
  };
3363
3235
  //# sourceMappingURL=zudoku.components.js.map