zudoku 0.3.0-dev.74 → 0.3.0-dev.76

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 (66) hide show
  1. package/dist/lib/authentication/components/SignUp.js +1 -1
  2. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  3. package/dist/lib/authentication/providers/openid.d.ts +4 -4
  4. package/dist/lib/authentication/providers/openid.js +12 -11
  5. package/dist/lib/authentication/providers/openid.js.map +1 -1
  6. package/dist/lib/components/DevPortal.js +18 -2
  7. package/dist/lib/components/DevPortal.js.map +1 -1
  8. package/dist/lib/core/DevPortalContext.d.ts +4 -1
  9. package/dist/lib/core/DevPortalContext.js +4 -7
  10. package/dist/lib/core/DevPortalContext.js.map +1 -1
  11. package/dist/lib/core/plugins.d.ts +4 -2
  12. package/dist/lib/core/plugins.js.map +1 -1
  13. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  14. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  15. package/lib/{AnchorLink-DwUyvkrL.js → AnchorLink-BZcpTwOs.js} +3 -3
  16. package/lib/{AnchorLink-DwUyvkrL.js.map → AnchorLink-BZcpTwOs.js.map} +1 -1
  17. package/lib/{AuthenticationPlugin-BuCQtecV.js → AuthenticationPlugin-CngUn5DP.js} +9 -9
  18. package/lib/AuthenticationPlugin-CngUn5DP.js.map +1 -0
  19. package/lib/{CategoryHeading-8saHYD9L.js → CategoryHeading-D0V23fMT.js} +3 -3
  20. package/lib/{CategoryHeading-8saHYD9L.js.map → CategoryHeading-D0V23fMT.js.map} +1 -1
  21. package/lib/{Combination-BMJg4xHo.js → Combination-CgxP9BB4.js} +4 -4
  22. package/lib/{Combination-BMJg4xHo.js.map → Combination-CgxP9BB4.js.map} +1 -1
  23. package/lib/{DevPortalProvider-DMrk4yw1.js → DevPortalProvider-BTFqdAEL.js} +2 -2
  24. package/lib/{DevPortalProvider-DMrk4yw1.js.map → DevPortalProvider-BTFqdAEL.js.map} +1 -1
  25. package/lib/{Input-98JuH9ox.js → Input-BcZoDid4.js} +5 -5
  26. package/lib/{Input-98JuH9ox.js.map → Input-BcZoDid4.js.map} +1 -1
  27. package/lib/{Markdown-CSdXDuYx.js → Markdown-IsabnbGN.js} +3 -3
  28. package/lib/{Markdown-CSdXDuYx.js.map → Markdown-IsabnbGN.js.map} +1 -1
  29. package/lib/{MdxPage-7CszsIct.js → MdxPage-B1B2Inj5.js} +7 -7
  30. package/lib/{MdxPage-7CszsIct.js.map → MdxPage-B1B2Inj5.js.map} +1 -1
  31. package/lib/{OperationList-DbFAs7j0.js → OperationList-B2nsuf1v.js} +10 -10
  32. package/lib/{OperationList-DbFAs7j0.js.map → OperationList-B2nsuf1v.js.map} +1 -1
  33. package/lib/{Route-CueiECQ0.js → Route-D0Ub80Oa.js} +2 -2
  34. package/lib/{Route-CueiECQ0.js.map → Route-D0Ub80Oa.js.map} +1 -1
  35. package/lib/{SlotletProvider-ibdqvOie.js → SlotletProvider-CJXWb2gw.js} +7 -7
  36. package/lib/{SlotletProvider-ibdqvOie.js.map → SlotletProvider-CJXWb2gw.js.map} +1 -1
  37. package/lib/{Spinner-D0EmkS4m.js → Spinner-BhtSoFka.js} +4 -4
  38. package/lib/{Spinner-D0EmkS4m.js.map → Spinner-BhtSoFka.js.map} +1 -1
  39. package/lib/{index-C5qcuxqm.js → index-BC2Ob2BR.js} +7 -7
  40. package/lib/{index-C5qcuxqm.js.map → index-BC2Ob2BR.js.map} +1 -1
  41. package/lib/{index-CjHZiWvQ.js → index-Dt-pU7Vu.js} +2 -2
  42. package/lib/{index-CjHZiWvQ.js.map → index-Dt-pU7Vu.js.map} +1 -1
  43. package/lib/{jsx-runtime-D0NHp7nI.js → jsx-runtime-CJBdjYYx.js} +3 -3
  44. package/lib/{jsx-runtime-D0NHp7nI.js.map → jsx-runtime-CJBdjYYx.js.map} +1 -1
  45. package/lib/zudoku.auth-clerk.js +1 -1
  46. package/lib/zudoku.auth-openid.js +261 -287
  47. package/lib/zudoku.auth-openid.js.map +1 -1
  48. package/lib/zudoku.components.js +501 -493
  49. package/lib/zudoku.components.js.map +1 -1
  50. package/lib/zudoku.plugin-api-keys.js +19 -18
  51. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  52. package/lib/zudoku.plugin-custom-page.js +2 -2
  53. package/lib/zudoku.plugin-markdown.js +3 -3
  54. package/lib/zudoku.plugin-openapi.js +3 -3
  55. package/package.json +1 -1
  56. package/src/lib/authentication/components/SignUp.tsx +1 -1
  57. package/src/lib/authentication/providers/openid.tsx +13 -15
  58. package/src/lib/components/DevPortal.tsx +19 -1
  59. package/src/lib/core/DevPortalContext.ts +9 -6
  60. package/src/lib/core/plugins.ts +5 -2
  61. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +2 -0
  62. package/dist/lib/authentication/Callback.d.ts +0 -3
  63. package/dist/lib/authentication/Callback.js +0 -34
  64. package/dist/lib/authentication/Callback.js.map +0 -1
  65. package/lib/AuthenticationPlugin-BuCQtecV.js.map +0 -1
  66. package/src/lib/authentication/Callback.tsx +0 -60
@@ -3,9 +3,9 @@ var dt = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
5
  var cr = (t, e, n) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var j = (t, e, n) => cr(t, typeof e != "symbol" ? e + "" : e, n), ht = (t, e, n) => e.has(t) || dt("Cannot " + n);
7
- var h = (t, e, n) => (ht(t, e, "read from private field"), n ? n.call(t) : e.get(t)), N = (t, e, n) => e.has(t) ? dt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), M = (t, e, n, r) => (ht(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
- var be = (t, e, n, r) => ({
6
+ var D = (t, e, n) => cr(t, typeof e != "symbol" ? e + "" : e, n), ht = (t, e, n) => e.has(t) || dt("Cannot " + n);
7
+ var h = (t, e, n) => (ht(t, e, "read from private field"), n ? n.call(t) : e.get(t)), I = (t, e, n) => e.has(t) ? dt("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), M = (t, e, n, r) => (ht(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
+ var Ce = (t, e, n, r) => ({
9
9
  set _(a) {
10
10
  M(t, e, a, n);
11
11
  },
@@ -13,25 +13,25 @@ var be = (t, e, n, r) => ({
13
13
  return h(t, e, r);
14
14
  }
15
15
  });
16
- import { H as _t, a as Ge, M as ur, A as lr, u as dr } from "./AnchorLink-DwUyvkrL.js";
17
- import { d as hr, R as pr, N as $e, L as Re } from "./index-CjHZiWvQ.js";
18
- import { E as Et, u as fr, S as mr, a as _e, R as gr } from "./SlotletProvider-ibdqvOie.js";
19
- import { j as o, d as vr, u as W, a as xr, O as St } from "./jsx-runtime-D0NHp7nI.js";
20
- import { M as yr, c as wr, a as jt, b as Nt, A as br, u as pe, h as Mr, d as y, e as Cr, F as Pr, D as Rr, C as _r, P as ie, f as qe, g as Er, i as Dt, R as Sr, S as jr, j as Nr, k as Dr, l as It, m as Ir, n as Ee, o as At, B as Be } from "./Combination-BMJg4xHo.js";
21
- import { c as fe, a as P, C as Ar, b as Or, u as Tr, M as kr, T as Fr, V as Lr, d as He, e as Kr, f as $r } from "./Markdown-CSdXDuYx.js";
16
+ import { H as _t, a as Ge, M as ur, A as lr, u as dr } from "./AnchorLink-BZcpTwOs.js";
17
+ import { d as hr, R as pr, N as $e, L as Ee } from "./index-Dt-pU7Vu.js";
18
+ import { E as Et, u as fr, S as mr, a as Se, R as gr } from "./SlotletProvider-CJXWb2gw.js";
19
+ import { j as o, d as vr, u as J, a as xr, b as yr, O as St } from "./jsx-runtime-CJBdjYYx.js";
20
+ import { M as wr, c as br, a as jt, b as Nt, A as Mr, u as fe, h as Cr, d as y, e as Pr, F as Rr, D as _r, C as Er, P as ie, f as qe, g as Sr, i as Dt, R as jr, S as Nr, j as Dr, k as Ir, l as It, m as Ar, n as je, o as At, B as Be } from "./Combination-CgxP9BB4.js";
21
+ import { c as me, a as R, C as Or, b as Tr, u as kr, M as Fr, T as Lr, V as Kr, d as He, e as $r, f as Br } from "./Markdown-IsabnbGN.js";
22
22
  import * as u from "react";
23
- import Br, { StrictMode as Ot, createContext as Tt, Component as Qr, createElement as pt, isValidElement as Ur, memo as kt, useMemo as Le, useContext as Gr, useState as Se, useEffect as se, Fragment as qr, useRef as De, forwardRef as Hr, Suspense as zr } from "react";
23
+ import Qr, { StrictMode as Ot, createContext as Tt, Component as Ur, createElement as pt, isValidElement as Gr, memo as kt, useMemo as Le, useState as le, useContext as qr, useRef as ge, useEffect as W, Fragment as Hr, forwardRef as zr, Suspense as Vr } from "react";
24
24
  import { g as ze } from "./_commonjsHelpers-BVfed4GL.js";
25
- import { r as Vr } from "./router-BiRCp01d.js";
26
- import { S as Qe, c as Ft, P as Ie, R as Yr, I as Xr, a as Lt, T as Kt, C as $t, b as Wr } from "./Spinner-D0EmkS4m.js";
27
- import { S as Bt, h as Qt, Q as Jr, n as E, m as ft, a as mt, b as $, e as Zr, c as ea, d as ta, f as na, o as gt, r as vt, g as ra, i as xt, p as yt, s as aa, u as Ve, j as oa, D as sa, k as Ye, l as wt, q as Ut, t as ia, v as ca, w as ua } from "./DevPortalProvider-DMrk4yw1.js";
25
+ import { r as Yr } from "./router-BiRCp01d.js";
26
+ import { S as Qe, c as Ft, P as Ie, R as Xr, I as Wr, a as Lt, T as Kt, C as $t, b as Jr } from "./Spinner-BhtSoFka.js";
27
+ import { S as Bt, h as Qt, Q as Zr, n as S, m as ft, a as mt, b as Q, e as ea, c as ta, d as na, f as ra, o as gt, r as vt, g as aa, i as xt, p as yt, s as oa, u as Ve, j as sa, D as ia, k as Ye, l as wt, q as Ut, t as ca, v as ua, w as la } from "./DevPortalProvider-BTFqdAEL.js";
28
28
  /**
29
29
  * @license lucide-react v0.378.0 - ISC
30
30
  *
31
31
  * This source code is licensed under the ISC license.
32
32
  * See the LICENSE file in the root directory of this source tree.
33
33
  */
34
- const Xe = fe("ChevronRight", [
34
+ const Xe = me("ChevronRight", [
35
35
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
36
36
  ]);
37
37
  /**
@@ -40,7 +40,7 @@ const Xe = fe("ChevronRight", [
40
40
  * This source code is licensed under the ISC license.
41
41
  * See the LICENSE file in the root directory of this source tree.
42
42
  */
43
- const la = fe("Dot", [
43
+ const da = me("Dot", [
44
44
  ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
45
45
  ]);
46
46
  /**
@@ -49,7 +49,7 @@ const la = fe("Dot", [
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
51
  */
52
- const da = fe("ExternalLink", [
52
+ const ha = me("ExternalLink", [
53
53
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
54
54
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
55
55
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -60,7 +60,7 @@ const da = fe("ExternalLink", [
60
60
  * This source code is licensed under the ISC license.
61
61
  * See the LICENSE file in the root directory of this source tree.
62
62
  */
63
- const ha = fe("MoonStar", [
63
+ const pa = me("MoonStar", [
64
64
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
65
65
  ["path", { d: "M20 3v4", key: "1olli1" }],
66
66
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -71,7 +71,7 @@ const ha = fe("MoonStar", [
71
71
  * This source code is licensed under the ISC license.
72
72
  * See the LICENSE file in the root directory of this source tree.
73
73
  */
74
- const pa = fe("Sun", [
74
+ const fa = me("Sun", [
75
75
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
76
76
  ["path", { d: "M12 2v2", key: "tus03m" }],
77
77
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -82,14 +82,14 @@ const pa = fe("Sun", [
82
82
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
83
83
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
84
84
  ]);
85
- function fa({ error: t }) {
85
+ function ma({ error: t }) {
86
86
  return /* @__PURE__ */ o.jsx(Et, { error: t });
87
87
  }
88
- var me = {};
89
- const ma = /* @__PURE__ */ ze(Vr), ga = /* @__PURE__ */ ze(vr), va = /* @__PURE__ */ ze(hr);
90
- Object.defineProperty(me, "__esModule", { value: !0 });
91
- var xa = Br, k = ma, We = ga, B = va;
92
- function ya(t) {
88
+ var ve = {};
89
+ const ga = /* @__PURE__ */ ze(Yr), va = /* @__PURE__ */ ze(vr), xa = /* @__PURE__ */ ze(hr);
90
+ Object.defineProperty(ve, "__esModule", { value: !0 });
91
+ var ya = Qr, L = ga, We = va, U = xa;
92
+ function wa(t) {
93
93
  if (t && t.__esModule) return t;
94
94
  var e = /* @__PURE__ */ Object.create(null);
95
95
  return t && Object.keys(t).forEach(function(n) {
@@ -104,22 +104,22 @@ function ya(t) {
104
104
  }
105
105
  }), e.default = t, Object.freeze(e);
106
106
  }
107
- var O = /* @__PURE__ */ ya(xa);
108
- function wa({
107
+ var k = /* @__PURE__ */ wa(ya);
108
+ function ba({
109
109
  basename: t,
110
110
  children: e,
111
111
  location: n = "/",
112
112
  future: r
113
113
  }) {
114
- typeof n == "string" && (n = B.parsePath(n));
115
- let a = k.Action.Pop, s = {
114
+ typeof n == "string" && (n = U.parsePath(n));
115
+ let a = L.Action.Pop, s = {
116
116
  pathname: n.pathname || "/",
117
117
  search: n.search || "",
118
118
  hash: n.hash || "",
119
119
  state: n.state != null ? n.state : null,
120
120
  key: n.key || "default"
121
121
  }, i = Gt();
122
- return /* @__PURE__ */ O.createElement(B.Router, {
122
+ return /* @__PURE__ */ k.createElement(U.Router, {
123
123
  basename: t,
124
124
  children: e,
125
125
  location: s,
@@ -129,13 +129,13 @@ function wa({
129
129
  static: !0
130
130
  });
131
131
  }
132
- function ba({
132
+ function Ma({
133
133
  context: t,
134
134
  router: e,
135
135
  hydrate: n = !0,
136
136
  nonce: r
137
137
  }) {
138
- e && t || (process.env.NODE_ENV !== "production" ? k.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : k.UNSAFE_invariant(!1));
138
+ e && t || (process.env.NODE_ENV !== "production" ? L.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : L.UNSAFE_invariant(!1));
139
139
  let a = {
140
140
  router: e,
141
141
  navigator: Gt(),
@@ -147,24 +147,24 @@ function ba({
147
147
  let l = {
148
148
  loaderData: t.loaderData,
149
149
  actionData: t.actionData,
150
- errors: Ca(t.errors)
150
+ errors: Pa(t.errors)
151
151
  };
152
- i = `window.__staticRouterHydrationData = JSON.parse(${ja(JSON.stringify(JSON.stringify(l)))});`;
152
+ i = `window.__staticRouterHydrationData = JSON.parse(${Na(JSON.stringify(JSON.stringify(l)))});`;
153
153
  }
154
154
  let {
155
155
  state: c
156
156
  } = a.router;
157
- return /* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterContext.Provider, {
157
+ return /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement(U.UNSAFE_DataRouterContext.Provider, {
158
158
  value: a
159
- }, /* @__PURE__ */ O.createElement(B.UNSAFE_DataRouterStateContext.Provider, {
159
+ }, /* @__PURE__ */ k.createElement(U.UNSAFE_DataRouterStateContext.Provider, {
160
160
  value: c
161
- }, /* @__PURE__ */ O.createElement(B.UNSAFE_FetchersContext.Provider, {
161
+ }, /* @__PURE__ */ k.createElement(U.UNSAFE_FetchersContext.Provider, {
162
162
  value: s
163
- }, /* @__PURE__ */ O.createElement(B.UNSAFE_ViewTransitionContext.Provider, {
163
+ }, /* @__PURE__ */ k.createElement(U.UNSAFE_ViewTransitionContext.Provider, {
164
164
  value: {
165
165
  isTransitioning: !1
166
166
  }
167
- }, /* @__PURE__ */ O.createElement(B.Router, {
167
+ }, /* @__PURE__ */ k.createElement(U.Router, {
168
168
  basename: a.basename,
169
169
  location: c.location,
170
170
  navigationType: c.historyAction,
@@ -173,11 +173,11 @@ function ba({
173
173
  future: {
174
174
  v7_relativeSplatPath: e.future.v7_relativeSplatPath
175
175
  }
176
- }, /* @__PURE__ */ O.createElement(Ma, {
176
+ }, /* @__PURE__ */ k.createElement(Ca, {
177
177
  routes: e.routes,
178
178
  future: e.future,
179
179
  state: c
180
- })))))), i ? /* @__PURE__ */ O.createElement("script", {
180
+ })))))), i ? /* @__PURE__ */ k.createElement("script", {
181
181
  suppressHydrationWarning: !0,
182
182
  nonce: r,
183
183
  dangerouslySetInnerHTML: {
@@ -185,18 +185,18 @@ function ba({
185
185
  }
186
186
  }) : null);
187
187
  }
188
- function Ma({
188
+ function Ca({
189
189
  routes: t,
190
190
  future: e,
191
191
  state: n
192
192
  }) {
193
193
  return We.UNSAFE_useRoutesImpl(t, void 0, n, e);
194
194
  }
195
- function Ca(t) {
195
+ function Pa(t) {
196
196
  if (!t) return null;
197
197
  let e = Object.entries(t), n = {};
198
198
  for (let [r, a] of e)
199
- k.isRouteErrorResponse(a) ? n[r] = {
199
+ L.isRouteErrorResponse(a) ? n[r] = {
200
200
  ...a,
201
201
  __type: "RouteErrorResponse"
202
202
  } : a instanceof Error ? n[r] = {
@@ -231,14 +231,14 @@ function Gt() {
231
231
  }
232
232
  };
233
233
  }
234
- function Pa(t, e) {
235
- return k.createStaticHandler(t, {
234
+ function Ra(t, e) {
235
+ return L.createStaticHandler(t, {
236
236
  ...e,
237
237
  mapRouteProperties: We.UNSAFE_mapRouteProperties
238
238
  });
239
239
  }
240
- function Ra(t, e, n = {}) {
241
- let r = {}, a = k.UNSAFE_convertRoutesToDataRoutes(t, We.UNSAFE_mapRouteProperties, void 0, r), s = e.matches.map((c) => {
240
+ function _a(t, e, n = {}) {
241
+ let r = {}, a = L.UNSAFE_convertRoutesToDataRoutes(t, We.UNSAFE_mapRouteProperties, void 0, r), s = e.matches.map((c) => {
242
242
  let l = r[c.route.id] || c.route;
243
243
  return {
244
244
  ...c,
@@ -262,14 +262,14 @@ function Ra(t, e, n = {}) {
262
262
  },
263
263
  get state() {
264
264
  return {
265
- historyAction: k.Action.Pop,
265
+ historyAction: L.Action.Pop,
266
266
  location: e.location,
267
267
  matches: s,
268
268
  loaderData: e.loaderData,
269
269
  actionData: e.actionData,
270
270
  errors: e.errors,
271
271
  initialized: !0,
272
- navigation: k.IDLE_NAVIGATION,
272
+ navigation: L.IDLE_NAVIGATION,
273
273
  restoreScrollPosition: null,
274
274
  preventScrollReset: !1,
275
275
  revalidation: "idle",
@@ -303,7 +303,7 @@ function Ra(t, e, n = {}) {
303
303
  createHref: qt,
304
304
  encodeLocation: Ht,
305
305
  getFetcher() {
306
- return k.IDLE_FETCHER;
306
+ return L.IDLE_FETCHER;
307
307
  },
308
308
  deleteFetcher() {
309
309
  throw i("deleteFetcher");
@@ -312,7 +312,7 @@ function Ra(t, e, n = {}) {
312
312
  throw i("dispose");
313
313
  },
314
314
  getBlocker() {
315
- return k.IDLE_BLOCKER;
315
+ return L.IDLE_BLOCKER;
316
316
  },
317
317
  deleteBlocker() {
318
318
  throw i("deleteBlocker");
@@ -328,50 +328,50 @@ function Ra(t, e, n = {}) {
328
328
  };
329
329
  }
330
330
  function qt(t) {
331
- return typeof t == "string" ? t : B.createPath(t);
331
+ return typeof t == "string" ? t : U.createPath(t);
332
332
  }
333
333
  function Ht(t) {
334
- let e = typeof t == "string" ? t : B.createPath(t);
334
+ let e = typeof t == "string" ? t : U.createPath(t);
335
335
  e = e.replace(/ $/, "%20");
336
- let n = _a.test(e) ? new URL(e) : new URL(e, "http://localhost");
336
+ let n = Ea.test(e) ? new URL(e) : new URL(e, "http://localhost");
337
337
  return {
338
338
  pathname: n.pathname,
339
339
  search: n.search,
340
340
  hash: n.hash
341
341
  };
342
342
  }
343
- const _a = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ea = {
343
+ const Ea = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Sa = {
344
344
  "&": "\\u0026",
345
345
  ">": "\\u003e",
346
346
  "<": "\\u003c",
347
347
  "\u2028": "\\u2028",
348
348
  "\u2029": "\\u2029"
349
- }, Sa = /[&><\u2028\u2029]/g;
350
- function ja(t) {
351
- return t.replace(Sa, (e) => Ea[e]);
349
+ }, ja = /[&><\u2028\u2029]/g;
350
+ function Na(t) {
351
+ return t.replace(ja, (e) => Sa[e]);
352
352
  }
353
- me.StaticRouter = wa;
354
- var Na = me.StaticRouterProvider = ba;
355
- me.createStaticHandler = Pa;
356
- me.createStaticRouter = Ra;
357
- const Da = ({
353
+ ve.StaticRouter = ba;
354
+ var Da = ve.StaticRouterProvider = Ma;
355
+ ve.createStaticHandler = Ra;
356
+ ve.createStaticRouter = _a;
357
+ const Ia = ({
358
358
  router: t,
359
359
  hydrate: e = !1
360
- }) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { children: /* @__PURE__ */ o.jsx(Qe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ o.jsx(pr, { router: t }) }) }) }), Ia = ({
360
+ }) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { children: /* @__PURE__ */ o.jsx(Qe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ o.jsx(pr, { router: t }) }) }) }), Aa = ({
361
361
  router: t,
362
362
  context: e,
363
363
  helmetContext: n
364
- }) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { context: n, children: /* @__PURE__ */ o.jsx(Na, { router: t, context: e }) }) });
365
- var T, Ct, Aa = (Ct = class extends Bt {
364
+ }) => /* @__PURE__ */ o.jsx(Ot, { children: /* @__PURE__ */ o.jsx(_t, { context: n, children: /* @__PURE__ */ o.jsx(Da, { router: t, context: e }) }) });
365
+ var F, Ct, Oa = (Ct = class extends Bt {
366
366
  constructor(e = {}) {
367
367
  super();
368
- N(this, T);
369
- this.config = e, M(this, T, /* @__PURE__ */ new Map());
368
+ I(this, F);
369
+ this.config = e, M(this, F, /* @__PURE__ */ new Map());
370
370
  }
371
371
  build(e, n, r) {
372
372
  const a = n.queryKey, s = n.queryHash ?? Qt(a, n);
373
373
  let i = this.get(s);
374
- return i || (i = new Jr({
374
+ return i || (i = new Zr({
375
375
  cache: this,
376
376
  queryKey: a,
377
377
  queryHash: s,
@@ -381,27 +381,27 @@ var T, Ct, Aa = (Ct = class extends Bt {
381
381
  }), this.add(i)), i;
382
382
  }
383
383
  add(e) {
384
- h(this, T).has(e.queryHash) || (h(this, T).set(e.queryHash, e), this.notify({
384
+ h(this, F).has(e.queryHash) || (h(this, F).set(e.queryHash, e), this.notify({
385
385
  type: "added",
386
386
  query: e
387
387
  }));
388
388
  }
389
389
  remove(e) {
390
- const n = h(this, T).get(e.queryHash);
391
- n && (e.destroy(), n === e && h(this, T).delete(e.queryHash), this.notify({ type: "removed", query: e }));
390
+ const n = h(this, F).get(e.queryHash);
391
+ n && (e.destroy(), n === e && h(this, F).delete(e.queryHash), this.notify({ type: "removed", query: e }));
392
392
  }
393
393
  clear() {
394
- E.batch(() => {
394
+ S.batch(() => {
395
395
  this.getAll().forEach((e) => {
396
396
  this.remove(e);
397
397
  });
398
398
  });
399
399
  }
400
400
  get(e) {
401
- return h(this, T).get(e);
401
+ return h(this, F).get(e);
402
402
  }
403
403
  getAll() {
404
- return [...h(this, T).values()];
404
+ return [...h(this, F).values()];
405
405
  }
406
406
  find(e) {
407
407
  const n = { exact: !0, ...e };
@@ -414,74 +414,74 @@ var T, Ct, Aa = (Ct = class extends Bt {
414
414
  return Object.keys(e).length > 0 ? n.filter((r) => ft(e, r)) : n;
415
415
  }
416
416
  notify(e) {
417
- E.batch(() => {
417
+ S.batch(() => {
418
418
  this.listeners.forEach((n) => {
419
419
  n(e);
420
420
  });
421
421
  });
422
422
  }
423
423
  onFocus() {
424
- E.batch(() => {
424
+ S.batch(() => {
425
425
  this.getAll().forEach((e) => {
426
426
  e.onFocus();
427
427
  });
428
428
  });
429
429
  }
430
430
  onOnline() {
431
- E.batch(() => {
431
+ S.batch(() => {
432
432
  this.getAll().forEach((e) => {
433
433
  e.onOnline();
434
434
  });
435
435
  });
436
436
  }
437
- }, T = new WeakMap(), Ct), _, he, Pt, Oa = (Pt = class extends Bt {
437
+ }, F = new WeakMap(), Ct), E, pe, Pt, Ta = (Pt = class extends Bt {
438
438
  constructor(e = {}) {
439
439
  super();
440
- N(this, _);
441
- N(this, he);
442
- this.config = e, M(this, _, /* @__PURE__ */ new Map()), M(this, he, Date.now());
440
+ I(this, E);
441
+ I(this, pe);
442
+ this.config = e, M(this, E, /* @__PURE__ */ new Map()), M(this, pe, Date.now());
443
443
  }
444
444
  build(e, n, r) {
445
- const a = new yr({
445
+ const a = new wr({
446
446
  mutationCache: this,
447
- mutationId: ++be(this, he)._,
447
+ mutationId: ++Ce(this, pe)._,
448
448
  options: e.defaultMutationOptions(n),
449
449
  state: r
450
450
  });
451
451
  return this.add(a), a;
452
452
  }
453
453
  add(e) {
454
- const n = Me(e), r = h(this, _).get(n) ?? [];
455
- r.push(e), h(this, _).set(n, r), this.notify({ type: "added", mutation: e });
454
+ const n = Pe(e), r = h(this, E).get(n) ?? [];
455
+ r.push(e), h(this, E).set(n, r), this.notify({ type: "added", mutation: e });
456
456
  }
457
457
  remove(e) {
458
458
  var r;
459
- const n = Me(e);
460
- if (h(this, _).has(n)) {
461
- const a = (r = h(this, _).get(n)) == null ? void 0 : r.filter((s) => s !== e);
462
- a && (a.length === 0 ? h(this, _).delete(n) : h(this, _).set(n, a));
459
+ const n = Pe(e);
460
+ if (h(this, E).has(n)) {
461
+ const a = (r = h(this, E).get(n)) == null ? void 0 : r.filter((s) => s !== e);
462
+ a && (a.length === 0 ? h(this, E).delete(n) : h(this, E).set(n, a));
463
463
  }
464
464
  this.notify({ type: "removed", mutation: e });
465
465
  }
466
466
  canRun(e) {
467
467
  var r;
468
- const n = (r = h(this, _).get(Me(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
468
+ const n = (r = h(this, E).get(Pe(e))) == null ? void 0 : r.find((a) => a.state.status === "pending");
469
469
  return !n || n === e;
470
470
  }
471
471
  runNext(e) {
472
472
  var r;
473
- const n = (r = h(this, _).get(Me(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
473
+ const n = (r = h(this, E).get(Pe(e))) == null ? void 0 : r.find((a) => a !== e && a.state.isPaused);
474
474
  return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
475
475
  }
476
476
  clear() {
477
- E.batch(() => {
477
+ S.batch(() => {
478
478
  this.getAll().forEach((e) => {
479
479
  this.remove(e);
480
480
  });
481
481
  });
482
482
  }
483
483
  getAll() {
484
- return [...h(this, _).values()].flat();
484
+ return [...h(this, E).values()].flat();
485
485
  }
486
486
  find(e) {
487
487
  const n = { exact: !0, ...e };
@@ -493,7 +493,7 @@ var T, Ct, Aa = (Ct = class extends Bt {
493
493
  return this.getAll().filter((n) => mt(e, n));
494
494
  }
495
495
  notify(e) {
496
- E.batch(() => {
496
+ S.batch(() => {
497
497
  this.listeners.forEach((n) => {
498
498
  n(e);
499
499
  });
@@ -501,23 +501,23 @@ var T, Ct, Aa = (Ct = class extends Bt {
501
501
  }
502
502
  resumePausedMutations() {
503
503
  const e = this.getAll().filter((n) => n.state.isPaused);
504
- return E.batch(
504
+ return S.batch(
505
505
  () => Promise.all(
506
- e.map((n) => n.continue().catch($))
506
+ e.map((n) => n.continue().catch(Q))
507
507
  )
508
508
  );
509
509
  }
510
- }, _ = new WeakMap(), he = new WeakMap(), Pt);
511
- function Me(t) {
510
+ }, E = new WeakMap(), pe = new WeakMap(), Pt);
511
+ function Pe(t) {
512
512
  var e;
513
513
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
514
514
  }
515
- function Ta(t) {
515
+ function ka(t) {
516
516
  return {
517
517
  onFetch: (e, n) => {
518
518
  const r = async () => {
519
- var x, R, F, Q, V;
520
- const a = e.options, s = (F = (R = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : R.fetchMore) == null ? void 0 : F.direction, i = ((Q = e.state.data) == null ? void 0 : Q.pages) || [], c = ((V = e.state.data) == null ? void 0 : V.pageParams) || [], l = { pages: [], pageParams: [] };
519
+ var x, _, j, P, K;
520
+ const a = e.options, s = (j = (_ = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : _.fetchMore) == null ? void 0 : j.direction, i = ((P = e.state.data) == null ? void 0 : P.pages) || [], c = ((K = e.state.data) == null ? void 0 : K.pageParams) || [], l = { pages: [], pageParams: [] };
521
521
  let p = !1;
522
522
  const f = (b) => {
523
523
  Object.defineProperty(b, "signal", {
@@ -526,42 +526,42 @@ function Ta(t) {
526
526
  p = !0;
527
527
  }), e.signal)
528
528
  });
529
- }, d = Zr(e.options, e.fetchOptions), m = async (b, I, L) => {
529
+ }, d = ea(e.options, e.fetchOptions), g = async (b, O, $) => {
530
530
  if (p)
531
531
  return Promise.reject();
532
- if (I == null && b.pages.length)
532
+ if (O == null && b.pages.length)
533
533
  return Promise.resolve(b);
534
534
  const Y = {
535
535
  queryKey: e.queryKey,
536
- pageParam: I,
537
- direction: L ? "backward" : "forward",
536
+ pageParam: O,
537
+ direction: $ ? "backward" : "forward",
538
538
  meta: e.options.meta
539
539
  };
540
540
  f(Y);
541
- const Z = await d(
541
+ const ee = await d(
542
542
  Y
543
- ), { maxPages: ye } = e.options, X = L ? ea : ta;
543
+ ), { maxPages: be } = e.options, X = $ ? ta : na;
544
544
  return {
545
- pages: X(b.pages, Z, ye),
546
- pageParams: X(b.pageParams, I, ye)
545
+ pages: X(b.pages, ee, be),
546
+ pageParams: X(b.pageParams, O, be)
547
547
  };
548
548
  };
549
549
  let v;
550
550
  if (s && i.length) {
551
- const b = s === "backward", I = b ? ka : bt, L = {
551
+ const b = s === "backward", O = b ? Fa : bt, $ = {
552
552
  pages: i,
553
553
  pageParams: c
554
- }, Y = I(a, L);
555
- v = await m(L, Y, b);
554
+ }, Y = O(a, $);
555
+ v = await g($, Y, b);
556
556
  } else {
557
- v = await m(
557
+ v = await g(
558
558
  l,
559
559
  c[0] ?? a.initialPageParam
560
560
  );
561
561
  const b = t ?? i.length;
562
- for (let I = 1; I < b; I++) {
563
- const L = bt(a, v);
564
- v = await m(v, L);
562
+ for (let O = 1; O < b; O++) {
563
+ const $ = bt(a, v);
564
+ v = await g(v, $);
565
565
  }
566
566
  }
567
567
  return v;
@@ -591,7 +591,7 @@ function bt(t, { pages: e, pageParams: n }) {
591
591
  n
592
592
  );
593
593
  }
594
- function ka(t, { pages: e, pageParams: n }) {
594
+ function Fa(t, { pages: e, pageParams: n }) {
595
595
  var r;
596
596
  return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
597
597
  t,
@@ -601,34 +601,34 @@ function ka(t, { pages: e, pageParams: n }) {
601
601
  n
602
602
  );
603
603
  }
604
- var w, G, q, ne, re, H, ae, oe, Rt, Fa = (Rt = class {
604
+ var w, q, H, re, ae, z, oe, se, Rt, La = (Rt = class {
605
605
  constructor(t = {}) {
606
- N(this, w);
607
- N(this, G);
608
- N(this, q);
609
- N(this, ne);
610
- N(this, re);
611
- N(this, H);
612
- N(this, ae);
613
- N(this, oe);
614
- M(this, w, t.queryCache || new Aa()), M(this, G, t.mutationCache || new Oa()), M(this, q, t.defaultOptions || {}), M(this, ne, /* @__PURE__ */ new Map()), M(this, re, /* @__PURE__ */ new Map()), M(this, H, 0);
606
+ I(this, w);
607
+ I(this, q);
608
+ I(this, H);
609
+ I(this, re);
610
+ I(this, ae);
611
+ I(this, z);
612
+ I(this, oe);
613
+ I(this, se);
614
+ M(this, w, t.queryCache || new Oa()), M(this, q, t.mutationCache || new Ta()), M(this, H, t.defaultOptions || {}), M(this, re, /* @__PURE__ */ new Map()), M(this, ae, /* @__PURE__ */ new Map()), M(this, z, 0);
615
615
  }
616
616
  mount() {
617
- be(this, H)._++, h(this, H) === 1 && (M(this, ae, na.subscribe(async (t) => {
617
+ Ce(this, z)._++, h(this, z) === 1 && (M(this, oe, ra.subscribe(async (t) => {
618
618
  t && (await this.resumePausedMutations(), h(this, w).onFocus());
619
- })), M(this, oe, gt.subscribe(async (t) => {
619
+ })), M(this, se, gt.subscribe(async (t) => {
620
620
  t && (await this.resumePausedMutations(), h(this, w).onOnline());
621
621
  })));
622
622
  }
623
623
  unmount() {
624
624
  var t, e;
625
- be(this, H)._--, h(this, H) === 0 && ((t = h(this, ae)) == null || t.call(this), M(this, ae, void 0), (e = h(this, oe)) == null || e.call(this), M(this, oe, void 0));
625
+ Ce(this, z)._--, h(this, z) === 0 && ((t = h(this, oe)) == null || t.call(this), M(this, oe, void 0), (e = h(this, se)) == null || e.call(this), M(this, se, void 0));
626
626
  }
627
627
  isFetching(t) {
628
628
  return h(this, w).findAll({ ...t, fetchStatus: "fetching" }).length;
629
629
  }
630
630
  isMutating(t) {
631
- return h(this, G).findAll({ ...t, status: "pending" }).length;
631
+ return h(this, q).findAll({ ...t, status: "pending" }).length;
632
632
  }
633
633
  getQueryData(t) {
634
634
  var n;
@@ -653,12 +653,12 @@ var w, G, q, ne, re, H, ae, oe, Rt, Fa = (Rt = class {
653
653
  setQueryData(t, e, n) {
654
654
  const r = this.defaultQueryOptions({ queryKey: t }), a = h(this, w).get(
655
655
  r.queryHash
656
- ), s = a == null ? void 0 : a.state.data, i = ra(e, s);
656
+ ), s = a == null ? void 0 : a.state.data, i = aa(e, s);
657
657
  if (i !== void 0)
658
658
  return h(this, w).build(this, r).setData(i, { ...n, manual: !0 });
659
659
  }
660
660
  setQueriesData(t, e, n) {
661
- return E.batch(
661
+ return S.batch(
662
662
  () => h(this, w).findAll(t).map(({ queryKey: r }) => [
663
663
  r,
664
664
  this.setQueryData(r, e, n)
@@ -672,7 +672,7 @@ var w, G, q, ne, re, H, ae, oe, Rt, Fa = (Rt = class {
672
672
  }
673
673
  removeQueries(t) {
674
674
  const e = h(this, w);
675
- E.batch(() => {
675
+ S.batch(() => {
676
676
  e.findAll(t).forEach((n) => {
677
677
  e.remove(n);
678
678
  });
@@ -683,18 +683,18 @@ var w, G, q, ne, re, H, ae, oe, Rt, Fa = (Rt = class {
683
683
  type: "active",
684
684
  ...t
685
685
  };
686
- return E.batch(() => (n.findAll(t).forEach((a) => {
686
+ return S.batch(() => (n.findAll(t).forEach((a) => {
687
687
  a.reset();
688
688
  }), this.refetchQueries(r, e)));
689
689
  }
690
690
  cancelQueries(t = {}, e = {}) {
691
- const n = { revert: !0, ...e }, r = E.batch(
691
+ const n = { revert: !0, ...e }, r = S.batch(
692
692
  () => h(this, w).findAll(t).map((a) => a.cancel(n))
693
693
  );
694
- return Promise.all(r).then($).catch($);
694
+ return Promise.all(r).then(Q).catch(Q);
695
695
  }
696
696
  invalidateQueries(t = {}, e = {}) {
697
- return E.batch(() => {
697
+ return S.batch(() => {
698
698
  if (h(this, w).findAll(t).forEach((r) => {
699
699
  r.invalidate();
700
700
  }), t.refetchType === "none")
@@ -710,13 +710,13 @@ var w, G, q, ne, re, H, ae, oe, Rt, Fa = (Rt = class {
710
710
  const n = {
711
711
  ...e,
712
712
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
713
- }, r = E.batch(
713
+ }, r = S.batch(
714
714
  () => h(this, w).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
715
715
  let s = a.fetch(void 0, n);
716
- return n.throwOnError || (s = s.catch($)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
716
+ return n.throwOnError || (s = s.catch(Q)), a.state.fetchStatus === "paused" ? Promise.resolve() : s;
717
717
  })
718
718
  );
719
- return Promise.all(r).then($);
719
+ return Promise.all(r).then(Q);
720
720
  }
721
721
  fetchQuery(t) {
722
722
  const e = this.defaultQueryOptions(t);
@@ -727,50 +727,50 @@ var w, G, q, ne, re, H, ae, oe, Rt, Fa = (Rt = class {
727
727
  ) ? n.fetch(e) : Promise.resolve(n.state.data);
728
728
  }
729
729
  prefetchQuery(t) {
730
- return this.fetchQuery(t).then($).catch($);
730
+ return this.fetchQuery(t).then(Q).catch(Q);
731
731
  }
732
732
  fetchInfiniteQuery(t) {
733
- return t.behavior = Ta(t.pages), this.fetchQuery(t);
733
+ return t.behavior = ka(t.pages), this.fetchQuery(t);
734
734
  }
735
735
  prefetchInfiniteQuery(t) {
736
- return this.fetchInfiniteQuery(t).then($).catch($);
736
+ return this.fetchInfiniteQuery(t).then(Q).catch(Q);
737
737
  }
738
738
  resumePausedMutations() {
739
- return gt.isOnline() ? h(this, G).resumePausedMutations() : Promise.resolve();
739
+ return gt.isOnline() ? h(this, q).resumePausedMutations() : Promise.resolve();
740
740
  }
741
741
  getQueryCache() {
742
742
  return h(this, w);
743
743
  }
744
744
  getMutationCache() {
745
- return h(this, G);
745
+ return h(this, q);
746
746
  }
747
747
  getDefaultOptions() {
748
- return h(this, q);
748
+ return h(this, H);
749
749
  }
750
750
  setDefaultOptions(t) {
751
- M(this, q, t);
751
+ M(this, H, t);
752
752
  }
753
753
  setQueryDefaults(t, e) {
754
- h(this, ne).set(xt(t), {
754
+ h(this, re).set(xt(t), {
755
755
  queryKey: t,
756
756
  defaultOptions: e
757
757
  });
758
758
  }
759
759
  getQueryDefaults(t) {
760
- const e = [...h(this, ne).values()];
760
+ const e = [...h(this, re).values()];
761
761
  let n = {};
762
762
  return e.forEach((r) => {
763
763
  yt(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
764
764
  }), n;
765
765
  }
766
766
  setMutationDefaults(t, e) {
767
- h(this, re).set(xt(t), {
767
+ h(this, ae).set(xt(t), {
768
768
  mutationKey: t,
769
769
  defaultOptions: e
770
770
  });
771
771
  }
772
772
  getMutationDefaults(t) {
773
- const e = [...h(this, re).values()];
773
+ const e = [...h(this, ae).values()];
774
774
  let n = {};
775
775
  return e.forEach((r) => {
776
776
  yt(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
@@ -780,7 +780,7 @@ var w, G, q, ne, re, H, ae, oe, Rt, Fa = (Rt = class {
780
780
  if (t._defaulted)
781
781
  return t;
782
782
  const e = {
783
- ...h(this, q).queries,
783
+ ...h(this, H).queries,
784
784
  ...this.getQueryDefaults(t.queryKey),
785
785
  ...t,
786
786
  _defaulted: !0
@@ -788,25 +788,25 @@ var w, G, q, ne, re, H, ae, oe, Rt, Fa = (Rt = class {
788
788
  return e.queryHash || (e.queryHash = Qt(
789
789
  e.queryKey,
790
790
  e
791
- )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === aa && (e.enabled = !1), e;
791
+ )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.enabled !== !0 && e.queryFn === oa && (e.enabled = !1), e;
792
792
  }
793
793
  defaultMutationOptions(t) {
794
794
  return t != null && t._defaulted ? t : {
795
- ...h(this, q).mutations,
795
+ ...h(this, H).mutations,
796
796
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
797
797
  ...t,
798
798
  _defaulted: !0
799
799
  };
800
800
  }
801
801
  clear() {
802
- h(this, w).clear(), h(this, G).clear();
802
+ h(this, w).clear(), h(this, q).clear();
803
803
  }
804
- }, w = new WeakMap(), G = new WeakMap(), q = new WeakMap(), ne = new WeakMap(), re = new WeakMap(), H = new WeakMap(), ae = new WeakMap(), oe = new WeakMap(), Rt);
805
- const La = Tt(null), Ke = {
804
+ }, w = new WeakMap(), q = new WeakMap(), H = new WeakMap(), re = new WeakMap(), ae = new WeakMap(), z = new WeakMap(), oe = new WeakMap(), se = new WeakMap(), Rt);
805
+ const Ka = Tt(null), Ke = {
806
806
  didCatch: !1,
807
807
  error: null
808
808
  };
809
- class Ka extends Qr {
809
+ class $a extends Ur {
810
810
  constructor(e) {
811
811
  super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ke;
812
812
  }
@@ -839,7 +839,7 @@ class Ka extends Qr {
839
839
  } = this.state, {
840
840
  resetKeys: a
841
841
  } = this.props;
842
- if (r && n.error !== null && $a(e.resetKeys, a)) {
842
+ if (r && n.error !== null && Ba(e.resetKeys, a)) {
843
843
  var s, i;
844
844
  (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
845
845
  next: a,
@@ -868,12 +868,12 @@ class Ka extends Qr {
868
868
  c = n(l);
869
869
  else if (r)
870
870
  c = pt(r, l);
871
- else if (a === null || Ur(a))
871
+ else if (a === null || Gr(a))
872
872
  c = a;
873
873
  else
874
874
  throw i;
875
875
  }
876
- return pt(La.Provider, {
876
+ return pt(Ka.Provider, {
877
877
  value: {
878
878
  didCatch: s,
879
879
  error: i,
@@ -882,34 +882,36 @@ class Ka extends Qr {
882
882
  }, c);
883
883
  }
884
884
  }
885
- function $a() {
885
+ function Ba() {
886
886
  let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
887
887
  return t.length !== e.length || t.some((n, r) => !Object.is(n, e[r]));
888
888
  }
889
- const Ba = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Qa = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Ua = (t) => "initialize" in t && typeof t.initialize == "function", Ga = (t) => "getHead" in t && typeof t.getHead == "function", qa = (t) => "getIdentities" in t && typeof t.getIdentities == "function", zt = new Fa();
890
- class Ha {
889
+ const Qa = (t) => "getProfileMenuItems" in t && typeof t.getProfileMenuItems == "function", Ua = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Ga = (t) => "initialize" in t && typeof t.initialize == "function", qa = (t) => "getHead" in t && typeof t.getHead == "function", Ha = (t) => "getIdentities" in t && typeof t.getIdentities == "function", zt = new La();
890
+ class za {
891
891
  constructor(e) {
892
- j(this, "plugins", []);
893
- j(this, "navigation");
894
- j(this, "meta");
895
- j(this, "page");
896
- j(this, "authentication");
897
- j(this, "navigationPlugins");
898
- j(this, "initialize", async () => {
899
- await Promise.all([
900
- this.plugins.filter(Ua).map((e) => {
901
- var n;
902
- return (n = e.initialize) == null ? void 0 : n.call(e, this);
892
+ D(this, "plugins", []);
893
+ D(this, "navigation");
894
+ D(this, "meta");
895
+ D(this, "page");
896
+ D(this, "authentication");
897
+ D(this, "navigationPlugins");
898
+ D(this, "initialize", async ({
899
+ navigate: e
900
+ }) => {
901
+ await Promise.all(
902
+ this.plugins.filter(Ga).map((n) => {
903
+ var r;
904
+ return (r = n.initialize) == null ? void 0 : r.call(n, this, { navigate: e });
903
905
  })
904
- ]);
906
+ );
905
907
  });
906
- j(this, "invalidateCache", async (e) => {
908
+ D(this, "invalidateCache", async (e) => {
907
909
  await zt.invalidateQueries({ queryKey: e });
908
910
  });
909
- j(this, "getApiIdentities", async () => (await Promise.all(
910
- this.plugins.filter(qa).map((n) => n.getIdentities(this))
911
+ D(this, "getApiIdentities", async () => (await Promise.all(
912
+ this.plugins.filter(Ha).map((n) => n.getIdentities(this))
911
913
  )).flat());
912
- j(this, "getNavigation", async (e) => (await Promise.all(
914
+ D(this, "getNavigation", async (e) => (await Promise.all(
913
915
  this.navigationPlugins.map(
914
916
  async (r) => {
915
917
  var a;
@@ -917,32 +919,32 @@ class Ha {
917
919
  }
918
920
  )
919
921
  )).flatMap((r) => r ?? []));
920
- j(this, "signRequest", async (e) => {
922
+ D(this, "signRequest", async (e) => {
921
923
  if (!this.authentication)
922
924
  throw new Error("No authentication provider configured");
923
925
  const n = await this.authentication.getAccessToken();
924
926
  return e.headers.set("Authorization", `Bearer ${n}`), e;
925
927
  });
926
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Qa), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.initialize();
928
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ua), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page;
927
929
  }
928
930
  }
929
- function za({ error: t, resetErrorBoundary: e }) {
931
+ function Va({ error: t, resetErrorBoundary: e }) {
930
932
  return /* @__PURE__ */ o.jsx(Et, { error: t });
931
933
  }
932
- const Ce = globalThis;
933
- (!Ce.requestIdleCallback || !Ce.cancelIdleCallback) && (Ce.requestIdleCallback = (t) => setTimeout(t, 1), Ce.cancelIdleCallback = clearTimeout);
934
- var Ue = ["Enter", " "], Va = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp", "PageDown", "End"], Ya = [...Va, ...Vt], Xa = {
934
+ const Re = globalThis;
935
+ (!Re.requestIdleCallback || !Re.cancelIdleCallback) && (Re.requestIdleCallback = (t) => setTimeout(t, 1), Re.cancelIdleCallback = clearTimeout);
936
+ var Ue = ["Enter", " "], Ya = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp", "PageDown", "End"], Xa = [...Ya, ...Vt], Wa = {
935
937
  ltr: [...Ue, "ArrowRight"],
936
938
  rtl: [...Ue, "ArrowLeft"]
937
- }, Wa = {
939
+ }, Ja = {
938
940
  ltr: ["ArrowLeft"],
939
941
  rtl: ["ArrowRight"]
940
- }, ge = "Menu", [le, Ja, Za] = wr(ge), [J, Yt] = jt(ge, [
941
- Za,
942
+ }, xe = "Menu", [de, Za, eo] = br(xe), [Z, Yt] = jt(xe, [
943
+ eo,
942
944
  Nt,
943
945
  Ft
944
- ]), ve = Nt(), Xt = Ft(), [Wt, z] = J(ge), [eo, xe] = J(ge), Jt = (t) => {
945
- const { __scopeMenu: e, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = t, c = ve(e), [l, p] = u.useState(null), f = u.useRef(!1), d = qe(s), m = Dr(a);
946
+ ]), ye = Nt(), Xt = Ft(), [Wt, V] = Z(xe), [to, we] = Z(xe), Jt = (t) => {
947
+ const { __scopeMenu: e, open: n = !1, children: r, dir: a, onOpenChange: s, modal: i = !0 } = t, c = ye(e), [l, p] = u.useState(null), f = u.useRef(!1), d = qe(s), g = Ir(a);
946
948
  return u.useEffect(() => {
947
949
  const v = () => {
948
950
  f.current = !0, document.addEventListener("pointerdown", x, { capture: !0, once: !0 }), document.addEventListener("pointermove", x, { capture: !0, once: !0 });
@@ -959,12 +961,12 @@ var Ue = ["Enter", " "], Va = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp",
959
961
  content: l,
960
962
  onContentChange: p,
961
963
  children: /* @__PURE__ */ o.jsx(
962
- eo,
964
+ to,
963
965
  {
964
966
  scope: e,
965
967
  onClose: u.useCallback(() => d(!1), [d]),
966
968
  isUsingKeyboardRef: f,
967
- dir: m,
969
+ dir: g,
968
970
  modal: i,
969
971
  children: r
970
972
  }
@@ -972,32 +974,32 @@ var Ue = ["Enter", " "], Va = ["ArrowDown", "PageUp", "Home"], Vt = ["ArrowUp",
972
974
  }
973
975
  ) });
974
976
  };
975
- Jt.displayName = ge;
976
- var to = "MenuAnchor", Je = u.forwardRef(
977
+ Jt.displayName = xe;
978
+ var no = "MenuAnchor", Je = u.forwardRef(
977
979
  (t, e) => {
978
- const { __scopeMenu: n, ...r } = t, a = ve(n);
979
- return /* @__PURE__ */ o.jsx(br, { ...a, ...r, ref: e });
980
+ const { __scopeMenu: n, ...r } = t, a = ye(n);
981
+ return /* @__PURE__ */ o.jsx(Mr, { ...a, ...r, ref: e });
980
982
  }
981
983
  );
982
- Je.displayName = to;
983
- var Ze = "MenuPortal", [no, Zt] = J(Ze, {
984
+ Je.displayName = no;
985
+ var Ze = "MenuPortal", [ro, Zt] = Z(Ze, {
984
986
  forceMount: void 0
985
987
  }), en = (t) => {
986
- const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = z(Ze, e);
987
- return /* @__PURE__ */ o.jsx(no, { scope: e, forceMount: n, children: /* @__PURE__ */ o.jsx(Ie, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Ir, { asChild: !0, container: a, children: r }) }) });
988
+ const { __scopeMenu: e, forceMount: n, children: r, container: a } = t, s = V(Ze, e);
989
+ return /* @__PURE__ */ o.jsx(ro, { scope: e, forceMount: n, children: /* @__PURE__ */ o.jsx(Ie, { present: n || s.open, children: /* @__PURE__ */ o.jsx(Ar, { asChild: !0, container: a, children: r }) }) });
988
990
  };
989
991
  en.displayName = Ze;
990
- var D = "MenuContent", [ro, et] = J(D), tn = u.forwardRef(
992
+ var A = "MenuContent", [ao, et] = Z(A), tn = u.forwardRef(
991
993
  (t, e) => {
992
- const n = Zt(D, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = z(D, t.__scopeMenu), i = xe(D, t.__scopeMenu);
993
- return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(le.Slot, { scope: t.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(ao, { ...a, ref: e }) : /* @__PURE__ */ o.jsx(oo, { ...a, ref: e }) }) }) });
994
+ const n = Zt(A, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(A, t.__scopeMenu), i = we(A, t.__scopeMenu);
995
+ return /* @__PURE__ */ o.jsx(de.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(de.Slot, { scope: t.__scopeMenu, children: i.modal ? /* @__PURE__ */ o.jsx(oo, { ...a, ref: e }) : /* @__PURE__ */ o.jsx(so, { ...a, ref: e }) }) }) });
994
996
  }
995
- ), ao = u.forwardRef(
997
+ ), oo = u.forwardRef(
996
998
  (t, e) => {
997
- const n = z(D, t.__scopeMenu), r = u.useRef(null), a = pe(e, r);
999
+ const n = V(A, t.__scopeMenu), r = u.useRef(null), a = fe(e, r);
998
1000
  return u.useEffect(() => {
999
1001
  const s = r.current;
1000
- if (s) return Mr(s);
1002
+ if (s) return Cr(s);
1001
1003
  }, []), /* @__PURE__ */ o.jsx(
1002
1004
  tt,
1003
1005
  {
@@ -1015,8 +1017,8 @@ var D = "MenuContent", [ro, et] = J(D), tn = u.forwardRef(
1015
1017
  }
1016
1018
  );
1017
1019
  }
1018
- ), oo = u.forwardRef((t, e) => {
1019
- const n = z(D, t.__scopeMenu);
1020
+ ), so = u.forwardRef((t, e) => {
1021
+ const n = V(A, t.__scopeMenu);
1020
1022
  return /* @__PURE__ */ o.jsx(
1021
1023
  tt,
1022
1024
  {
@@ -1041,115 +1043,115 @@ var D = "MenuContent", [ro, et] = J(D), tn = u.forwardRef(
1041
1043
  onEscapeKeyDown: p,
1042
1044
  onPointerDownOutside: f,
1043
1045
  onFocusOutside: d,
1044
- onInteractOutside: m,
1046
+ onInteractOutside: g,
1045
1047
  onDismiss: v,
1046
1048
  disableOutsideScroll: x,
1047
- ...R
1048
- } = t, F = z(D, n), Q = xe(D, n), V = ve(n), b = Xt(n), I = Ja(n), [L, Y] = u.useState(null), Z = u.useRef(null), ye = pe(e, Z, F.onContentChange), X = u.useRef(0), we = u.useRef(""), rr = u.useRef(0), Oe = u.useRef(null), it = u.useRef("right"), Te = u.useRef(0), ar = x ? Sr : u.Fragment, or = x ? { as: jr, allowPinchZoom: !0 } : void 0, sr = (g) => {
1049
- var te, ut;
1050
- const S = we.current + g, A = I().filter((K) => !K.disabled), U = document.activeElement, ke = (te = A.find((K) => K.ref.current === U)) == null ? void 0 : te.textValue, Fe = A.map((K) => K.textValue), ct = xo(Fe, S, ke), ce = (ut = A.find((K) => K.textValue === ct)) == null ? void 0 : ut.ref.current;
1051
- (function K(lt) {
1052
- we.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => K(""), 1e3));
1053
- })(S), ce && setTimeout(() => ce.focus());
1049
+ ..._
1050
+ } = t, j = V(A, n), P = we(A, n), K = ye(n), b = Xt(n), O = Za(n), [$, Y] = u.useState(null), ee = u.useRef(null), be = fe(e, ee, j.onContentChange), X = u.useRef(0), Me = u.useRef(""), rr = u.useRef(0), Oe = u.useRef(null), it = u.useRef("right"), Te = u.useRef(0), ar = x ? jr : u.Fragment, or = x ? { as: Nr, allowPinchZoom: !0 } : void 0, sr = (m) => {
1051
+ var ne, ut;
1052
+ const N = Me.current + m, T = O().filter((B) => !B.disabled), G = document.activeElement, ke = (ne = T.find((B) => B.ref.current === G)) == null ? void 0 : ne.textValue, Fe = T.map((B) => B.textValue), ct = yo(Fe, N, ke), ce = (ut = T.find((B) => B.textValue === ct)) == null ? void 0 : ut.ref.current;
1053
+ (function B(lt) {
1054
+ Me.current = lt, window.clearTimeout(X.current), lt !== "" && (X.current = window.setTimeout(() => B(""), 1e3));
1055
+ })(N), ce && setTimeout(() => ce.focus());
1054
1056
  };
1055
- u.useEffect(() => () => window.clearTimeout(X.current), []), Cr();
1056
- const ee = u.useCallback((g) => {
1057
- var A, U;
1058
- return it.current === ((A = Oe.current) == null ? void 0 : A.side) && wo(g, (U = Oe.current) == null ? void 0 : U.area);
1057
+ u.useEffect(() => () => window.clearTimeout(X.current), []), Pr();
1058
+ const te = u.useCallback((m) => {
1059
+ var T, G;
1060
+ return it.current === ((T = Oe.current) == null ? void 0 : T.side) && bo(m, (G = Oe.current) == null ? void 0 : G.area);
1059
1061
  }, []);
1060
1062
  return /* @__PURE__ */ o.jsx(
1061
- ro,
1063
+ ao,
1062
1064
  {
1063
1065
  scope: n,
1064
- searchRef: we,
1066
+ searchRef: Me,
1065
1067
  onItemEnter: u.useCallback(
1066
- (g) => {
1067
- ee(g) && g.preventDefault();
1068
+ (m) => {
1069
+ te(m) && m.preventDefault();
1068
1070
  },
1069
- [ee]
1071
+ [te]
1070
1072
  ),
1071
1073
  onItemLeave: u.useCallback(
1072
- (g) => {
1073
- var S;
1074
- ee(g) || ((S = Z.current) == null || S.focus(), Y(null));
1074
+ (m) => {
1075
+ var N;
1076
+ te(m) || ((N = ee.current) == null || N.focus(), Y(null));
1075
1077
  },
1076
- [ee]
1078
+ [te]
1077
1079
  ),
1078
1080
  onTriggerLeave: u.useCallback(
1079
- (g) => {
1080
- ee(g) && g.preventDefault();
1081
+ (m) => {
1082
+ te(m) && m.preventDefault();
1081
1083
  },
1082
- [ee]
1084
+ [te]
1083
1085
  ),
1084
1086
  pointerGraceTimerRef: rr,
1085
- onPointerGraceIntentChange: u.useCallback((g) => {
1086
- Oe.current = g;
1087
+ onPointerGraceIntentChange: u.useCallback((m) => {
1088
+ Oe.current = m;
1087
1089
  }, []),
1088
1090
  children: /* @__PURE__ */ o.jsx(ar, { ...or, children: /* @__PURE__ */ o.jsx(
1089
- Pr,
1091
+ Rr,
1090
1092
  {
1091
1093
  asChild: !0,
1092
1094
  trapped: a,
1093
- onMountAutoFocus: y(s, (g) => {
1094
- var S;
1095
- g.preventDefault(), (S = Z.current) == null || S.focus({ preventScroll: !0 });
1095
+ onMountAutoFocus: y(s, (m) => {
1096
+ var N;
1097
+ m.preventDefault(), (N = ee.current) == null || N.focus({ preventScroll: !0 });
1096
1098
  }),
1097
1099
  onUnmountAutoFocus: i,
1098
1100
  children: /* @__PURE__ */ o.jsx(
1099
- Rr,
1101
+ _r,
1100
1102
  {
1101
1103
  asChild: !0,
1102
1104
  disableOutsidePointerEvents: c,
1103
1105
  onEscapeKeyDown: p,
1104
1106
  onPointerDownOutside: f,
1105
1107
  onFocusOutside: d,
1106
- onInteractOutside: m,
1108
+ onInteractOutside: g,
1107
1109
  onDismiss: v,
1108
1110
  children: /* @__PURE__ */ o.jsx(
1109
- Yr,
1111
+ Xr,
1110
1112
  {
1111
1113
  asChild: !0,
1112
1114
  ...b,
1113
- dir: Q.dir,
1115
+ dir: P.dir,
1114
1116
  orientation: "vertical",
1115
1117
  loop: r,
1116
- currentTabStopId: L,
1118
+ currentTabStopId: $,
1117
1119
  onCurrentTabStopIdChange: Y,
1118
- onEntryFocus: y(l, (g) => {
1119
- Q.isUsingKeyboardRef.current || g.preventDefault();
1120
+ onEntryFocus: y(l, (m) => {
1121
+ P.isUsingKeyboardRef.current || m.preventDefault();
1120
1122
  }),
1121
1123
  preventScrollOnEntryFocus: !0,
1122
1124
  children: /* @__PURE__ */ o.jsx(
1123
- _r,
1125
+ Er,
1124
1126
  {
1125
1127
  role: "menu",
1126
1128
  "aria-orientation": "vertical",
1127
- "data-state": yn(F.open),
1129
+ "data-state": yn(j.open),
1128
1130
  "data-radix-menu-content": "",
1129
- dir: Q.dir,
1130
- ...V,
1131
- ...R,
1132
- ref: ye,
1133
- style: { outline: "none", ...R.style },
1134
- onKeyDown: y(R.onKeyDown, (g) => {
1135
- const A = g.target.closest("[data-radix-menu-content]") === g.currentTarget, U = g.ctrlKey || g.altKey || g.metaKey, ke = g.key.length === 1;
1136
- A && (g.key === "Tab" && g.preventDefault(), !U && ke && sr(g.key));
1137
- const Fe = Z.current;
1138
- if (g.target !== Fe || !Ya.includes(g.key)) return;
1139
- g.preventDefault();
1140
- const ce = I().filter((te) => !te.disabled).map((te) => te.ref.current);
1141
- Vt.includes(g.key) && ce.reverse(), go(ce);
1131
+ dir: P.dir,
1132
+ ...K,
1133
+ ..._,
1134
+ ref: be,
1135
+ style: { outline: "none", ..._.style },
1136
+ onKeyDown: y(_.onKeyDown, (m) => {
1137
+ const T = m.target.closest("[data-radix-menu-content]") === m.currentTarget, G = m.ctrlKey || m.altKey || m.metaKey, ke = m.key.length === 1;
1138
+ T && (m.key === "Tab" && m.preventDefault(), !G && ke && sr(m.key));
1139
+ const Fe = ee.current;
1140
+ if (m.target !== Fe || !Xa.includes(m.key)) return;
1141
+ m.preventDefault();
1142
+ const ce = O().filter((ne) => !ne.disabled).map((ne) => ne.ref.current);
1143
+ Vt.includes(m.key) && ce.reverse(), vo(ce);
1142
1144
  }),
1143
- onBlur: y(t.onBlur, (g) => {
1144
- g.currentTarget.contains(g.target) || (window.clearTimeout(X.current), we.current = "");
1145
+ onBlur: y(t.onBlur, (m) => {
1146
+ m.currentTarget.contains(m.target) || (window.clearTimeout(X.current), Me.current = "");
1145
1147
  }),
1146
1148
  onPointerMove: y(
1147
1149
  t.onPointerMove,
1148
- de((g) => {
1149
- const S = g.target, A = Te.current !== g.clientX;
1150
- if (g.currentTarget.contains(S) && A) {
1151
- const U = g.clientX > Te.current ? "right" : "left";
1152
- it.current = U, Te.current = g.clientX;
1150
+ he((m) => {
1151
+ const N = m.target, T = Te.current !== m.clientX;
1152
+ if (m.currentTarget.contains(N) && T) {
1153
+ const G = m.clientX > Te.current ? "right" : "left";
1154
+ it.current = G, Te.current = m.clientX;
1153
1155
  }
1154
1156
  })
1155
1157
  )
@@ -1165,28 +1167,28 @@ var D = "MenuContent", [ro, et] = J(D), tn = u.forwardRef(
1165
1167
  );
1166
1168
  }
1167
1169
  );
1168
- tn.displayName = D;
1169
- var so = "MenuGroup", nt = u.forwardRef(
1170
+ tn.displayName = A;
1171
+ var io = "MenuGroup", nt = u.forwardRef(
1170
1172
  (t, e) => {
1171
1173
  const { __scopeMenu: n, ...r } = t;
1172
1174
  return /* @__PURE__ */ o.jsx(ie.div, { role: "group", ...r, ref: e });
1173
1175
  }
1174
1176
  );
1175
- nt.displayName = so;
1176
- var io = "MenuLabel", nn = u.forwardRef(
1177
+ nt.displayName = io;
1178
+ var co = "MenuLabel", nn = u.forwardRef(
1177
1179
  (t, e) => {
1178
1180
  const { __scopeMenu: n, ...r } = t;
1179
1181
  return /* @__PURE__ */ o.jsx(ie.div, { ...r, ref: e });
1180
1182
  }
1181
1183
  );
1182
- nn.displayName = io;
1183
- var je = "MenuItem", Mt = "menu.itemSelect", Ae = u.forwardRef(
1184
+ nn.displayName = co;
1185
+ var Ne = "MenuItem", Mt = "menu.itemSelect", Ae = u.forwardRef(
1184
1186
  (t, e) => {
1185
- const { disabled: n = !1, onSelect: r, ...a } = t, s = u.useRef(null), i = xe(je, t.__scopeMenu), c = et(je, t.__scopeMenu), l = pe(e, s), p = u.useRef(!1), f = () => {
1187
+ const { disabled: n = !1, onSelect: r, ...a } = t, s = u.useRef(null), i = we(Ne, t.__scopeMenu), c = et(Ne, t.__scopeMenu), l = fe(e, s), p = u.useRef(!1), f = () => {
1186
1188
  const d = s.current;
1187
1189
  if (!n && d) {
1188
- const m = new CustomEvent(Mt, { bubbles: !0, cancelable: !0 });
1189
- d.addEventListener(Mt, (v) => r == null ? void 0 : r(v), { once: !0 }), Nr(d, m), m.defaultPrevented ? p.current = !1 : i.onClose();
1190
+ const g = new CustomEvent(Mt, { bubbles: !0, cancelable: !0 });
1191
+ d.addEventListener(Mt, (v) => r == null ? void 0 : r(v), { once: !0 }), Dr(d, g), g.defaultPrevented ? p.current = !1 : i.onClose();
1190
1192
  }
1191
1193
  };
1192
1194
  return /* @__PURE__ */ o.jsx(
@@ -1197,35 +1199,35 @@ var je = "MenuItem", Mt = "menu.itemSelect", Ae = u.forwardRef(
1197
1199
  disabled: n,
1198
1200
  onClick: y(t.onClick, f),
1199
1201
  onPointerDown: (d) => {
1200
- var m;
1201
- (m = t.onPointerDown) == null || m.call(t, d), p.current = !0;
1202
+ var g;
1203
+ (g = t.onPointerDown) == null || g.call(t, d), p.current = !0;
1202
1204
  },
1203
1205
  onPointerUp: y(t.onPointerUp, (d) => {
1204
- var m;
1205
- p.current || (m = d.currentTarget) == null || m.click();
1206
+ var g;
1207
+ p.current || (g = d.currentTarget) == null || g.click();
1206
1208
  }),
1207
1209
  onKeyDown: y(t.onKeyDown, (d) => {
1208
- const m = c.searchRef.current !== "";
1209
- n || m && d.key === " " || Ue.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
1210
+ const g = c.searchRef.current !== "";
1211
+ n || g && d.key === " " || Ue.includes(d.key) && (d.currentTarget.click(), d.preventDefault());
1210
1212
  })
1211
1213
  }
1212
1214
  );
1213
1215
  }
1214
1216
  );
1215
- Ae.displayName = je;
1217
+ Ae.displayName = Ne;
1216
1218
  var rn = u.forwardRef(
1217
1219
  (t, e) => {
1218
- const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = et(je, n), c = Xt(n), l = u.useRef(null), p = pe(e, l), [f, d] = u.useState(!1), [m, v] = u.useState("");
1220
+ const { __scopeMenu: n, disabled: r = !1, textValue: a, ...s } = t, i = et(Ne, n), c = Xt(n), l = u.useRef(null), p = fe(e, l), [f, d] = u.useState(!1), [g, v] = u.useState("");
1219
1221
  return u.useEffect(() => {
1220
1222
  const x = l.current;
1221
1223
  x && v((x.textContent ?? "").trim());
1222
1224
  }, [s.children]), /* @__PURE__ */ o.jsx(
1223
- le.ItemSlot,
1225
+ de.ItemSlot,
1224
1226
  {
1225
1227
  scope: n,
1226
1228
  disabled: r,
1227
- textValue: a ?? m,
1228
- children: /* @__PURE__ */ o.jsx(Xr, { asChild: !0, ...c, focusable: !r, children: /* @__PURE__ */ o.jsx(
1229
+ textValue: a ?? g,
1230
+ children: /* @__PURE__ */ o.jsx(Wr, { asChild: !0, ...c, focusable: !r, children: /* @__PURE__ */ o.jsx(
1229
1231
  ie.div,
1230
1232
  {
1231
1233
  role: "menuitem",
@@ -1236,13 +1238,13 @@ var rn = u.forwardRef(
1236
1238
  ref: p,
1237
1239
  onPointerMove: y(
1238
1240
  t.onPointerMove,
1239
- de((x) => {
1241
+ he((x) => {
1240
1242
  r ? i.onItemLeave(x) : (i.onItemEnter(x), x.defaultPrevented || x.currentTarget.focus({ preventScroll: !0 }));
1241
1243
  })
1242
1244
  ),
1243
1245
  onPointerLeave: y(
1244
1246
  t.onPointerLeave,
1245
- de((x) => i.onItemLeave(x))
1247
+ he((x) => i.onItemLeave(x))
1246
1248
  ),
1247
1249
  onFocus: y(t.onFocus, () => d(!0)),
1248
1250
  onBlur: y(t.onBlur, () => d(!1))
@@ -1251,41 +1253,41 @@ var rn = u.forwardRef(
1251
1253
  }
1252
1254
  );
1253
1255
  }
1254
- ), co = "MenuCheckboxItem", an = u.forwardRef(
1256
+ ), uo = "MenuCheckboxItem", an = u.forwardRef(
1255
1257
  (t, e) => {
1256
1258
  const { checked: n = !1, onCheckedChange: r, ...a } = t;
1257
1259
  return /* @__PURE__ */ o.jsx(ln, { scope: t.__scopeMenu, checked: n, children: /* @__PURE__ */ o.jsx(
1258
1260
  Ae,
1259
1261
  {
1260
1262
  role: "menuitemcheckbox",
1261
- "aria-checked": Ne(n) ? "mixed" : n,
1263
+ "aria-checked": De(n) ? "mixed" : n,
1262
1264
  ...a,
1263
1265
  ref: e,
1264
1266
  "data-state": ot(n),
1265
1267
  onSelect: y(
1266
1268
  a.onSelect,
1267
- () => r == null ? void 0 : r(Ne(n) ? !0 : !n),
1269
+ () => r == null ? void 0 : r(De(n) ? !0 : !n),
1268
1270
  { checkForDefaultPrevented: !1 }
1269
1271
  )
1270
1272
  }
1271
1273
  ) });
1272
1274
  }
1273
1275
  );
1274
- an.displayName = co;
1275
- var on = "MenuRadioGroup", [uo, lo] = J(
1276
+ an.displayName = uo;
1277
+ var on = "MenuRadioGroup", [lo, ho] = Z(
1276
1278
  on,
1277
1279
  { value: void 0, onValueChange: () => {
1278
1280
  } }
1279
1281
  ), sn = u.forwardRef(
1280
1282
  (t, e) => {
1281
1283
  const { value: n, onValueChange: r, ...a } = t, s = qe(r);
1282
- return /* @__PURE__ */ o.jsx(uo, { scope: t.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(nt, { ...a, ref: e }) });
1284
+ return /* @__PURE__ */ o.jsx(lo, { scope: t.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ o.jsx(nt, { ...a, ref: e }) });
1283
1285
  }
1284
1286
  );
1285
1287
  sn.displayName = on;
1286
1288
  var cn = "MenuRadioItem", un = u.forwardRef(
1287
1289
  (t, e) => {
1288
- const { value: n, ...r } = t, a = lo(cn, t.__scopeMenu), s = n === a.value;
1290
+ const { value: n, ...r } = t, a = ho(cn, t.__scopeMenu), s = n === a.value;
1289
1291
  return /* @__PURE__ */ o.jsx(ln, { scope: t.__scopeMenu, checked: s, children: /* @__PURE__ */ o.jsx(
1290
1292
  Ae,
1291
1293
  {
@@ -1307,16 +1309,16 @@ var cn = "MenuRadioItem", un = u.forwardRef(
1307
1309
  }
1308
1310
  );
1309
1311
  un.displayName = cn;
1310
- var rt = "MenuItemIndicator", [ln, ho] = J(
1312
+ var rt = "MenuItemIndicator", [ln, po] = Z(
1311
1313
  rt,
1312
1314
  { checked: !1 }
1313
1315
  ), dn = u.forwardRef(
1314
1316
  (t, e) => {
1315
- const { __scopeMenu: n, forceMount: r, ...a } = t, s = ho(rt, n);
1317
+ const { __scopeMenu: n, forceMount: r, ...a } = t, s = po(rt, n);
1316
1318
  return /* @__PURE__ */ o.jsx(
1317
1319
  Ie,
1318
1320
  {
1319
- present: r || Ne(s.checked) || s.checked === !0,
1321
+ present: r || De(s.checked) || s.checked === !0,
1320
1322
  children: /* @__PURE__ */ o.jsx(
1321
1323
  ie.span,
1322
1324
  {
@@ -1330,7 +1332,7 @@ var rt = "MenuItemIndicator", [ln, ho] = J(
1330
1332
  }
1331
1333
  );
1332
1334
  dn.displayName = rt;
1333
- var po = "MenuSeparator", hn = u.forwardRef(
1335
+ var fo = "MenuSeparator", hn = u.forwardRef(
1334
1336
  (t, e) => {
1335
1337
  const { __scopeMenu: n, ...r } = t;
1336
1338
  return /* @__PURE__ */ o.jsx(
@@ -1344,16 +1346,16 @@ var po = "MenuSeparator", hn = u.forwardRef(
1344
1346
  );
1345
1347
  }
1346
1348
  );
1347
- hn.displayName = po;
1348
- var fo = "MenuArrow", pn = u.forwardRef(
1349
+ hn.displayName = fo;
1350
+ var mo = "MenuArrow", pn = u.forwardRef(
1349
1351
  (t, e) => {
1350
- const { __scopeMenu: n, ...r } = t, a = ve(n);
1351
- return /* @__PURE__ */ o.jsx(Er, { ...a, ...r, ref: e });
1352
+ const { __scopeMenu: n, ...r } = t, a = ye(n);
1353
+ return /* @__PURE__ */ o.jsx(Sr, { ...a, ...r, ref: e });
1352
1354
  }
1353
1355
  );
1354
- pn.displayName = fo;
1355
- var at = "MenuSub", [mo, fn] = J(at), mn = (t) => {
1356
- const { __scopeMenu: e, children: n, open: r = !1, onOpenChange: a } = t, s = z(at, e), i = ve(e), [c, l] = u.useState(null), [p, f] = u.useState(null), d = qe(a);
1356
+ pn.displayName = mo;
1357
+ var at = "MenuSub", [go, fn] = Z(at), mn = (t) => {
1358
+ const { __scopeMenu: e, children: n, open: r = !1, onOpenChange: a } = t, s = V(at, e), i = ye(e), [c, l] = u.useState(null), [p, f] = u.useState(null), d = qe(a);
1357
1359
  return u.useEffect(() => (s.open === !1 && d(!1), () => d(!1)), [s.open, d]), /* @__PURE__ */ o.jsx(It, { ...i, children: /* @__PURE__ */ o.jsx(
1358
1360
  Wt,
1359
1361
  {
@@ -1363,11 +1365,11 @@ var at = "MenuSub", [mo, fn] = J(at), mn = (t) => {
1363
1365
  content: p,
1364
1366
  onContentChange: f,
1365
1367
  children: /* @__PURE__ */ o.jsx(
1366
- mo,
1368
+ go,
1367
1369
  {
1368
1370
  scope: e,
1369
- contentId: Ee(),
1370
- triggerId: Ee(),
1371
+ contentId: je(),
1372
+ triggerId: je(),
1371
1373
  trigger: c,
1372
1374
  onTriggerChange: l,
1373
1375
  children: n
@@ -1379,7 +1381,7 @@ var at = "MenuSub", [mo, fn] = J(at), mn = (t) => {
1379
1381
  mn.displayName = at;
1380
1382
  var ue = "MenuSubTrigger", gn = u.forwardRef(
1381
1383
  (t, e) => {
1382
- const n = z(ue, t.__scopeMenu), r = xe(ue, t.__scopeMenu), a = fn(ue, t.__scopeMenu), s = et(ue, t.__scopeMenu), i = u.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = s, p = { __scopeMenu: t.__scopeMenu }, f = u.useCallback(() => {
1384
+ const n = V(ue, t.__scopeMenu), r = we(ue, t.__scopeMenu), a = fn(ue, t.__scopeMenu), s = et(ue, t.__scopeMenu), i = u.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = s, p = { __scopeMenu: t.__scopeMenu }, f = u.useCallback(() => {
1383
1385
  i.current && window.clearTimeout(i.current), i.current = null;
1384
1386
  }, []);
1385
1387
  return u.useEffect(() => f, [f]), u.useEffect(() => {
@@ -1398,12 +1400,12 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
1398
1400
  ...t,
1399
1401
  ref: Dt(e, a.onTriggerChange),
1400
1402
  onClick: (d) => {
1401
- var m;
1402
- (m = t.onClick) == null || m.call(t, d), !(t.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
1403
+ var g;
1404
+ (g = t.onClick) == null || g.call(t, d), !(t.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
1403
1405
  },
1404
1406
  onPointerMove: y(
1405
1407
  t.onPointerMove,
1406
- de((d) => {
1408
+ he((d) => {
1407
1409
  s.onItemEnter(d), !d.defaultPrevented && !t.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1408
1410
  n.onOpenChange(!0), f();
1409
1411
  }, 100));
@@ -1411,23 +1413,23 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
1411
1413
  ),
1412
1414
  onPointerLeave: y(
1413
1415
  t.onPointerLeave,
1414
- de((d) => {
1416
+ he((d) => {
1415
1417
  var v, x;
1416
1418
  f();
1417
- const m = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1418
- if (m) {
1419
- const R = (x = n.content) == null ? void 0 : x.dataset.side, F = R === "right", Q = F ? -5 : 5, V = m[F ? "left" : "right"], b = m[F ? "right" : "left"];
1419
+ const g = (v = n.content) == null ? void 0 : v.getBoundingClientRect();
1420
+ if (g) {
1421
+ const _ = (x = n.content) == null ? void 0 : x.dataset.side, j = _ === "right", P = j ? -5 : 5, K = g[j ? "left" : "right"], b = g[j ? "right" : "left"];
1420
1422
  s.onPointerGraceIntentChange({
1421
1423
  area: [
1422
1424
  // Apply a bleed on clientX to ensure that our exit point is
1423
1425
  // consistently within polygon bounds
1424
- { x: d.clientX + Q, y: d.clientY },
1425
- { x: V, y: m.top },
1426
- { x: b, y: m.top },
1427
- { x: b, y: m.bottom },
1428
- { x: V, y: m.bottom }
1426
+ { x: d.clientX + P, y: d.clientY },
1427
+ { x: K, y: g.top },
1428
+ { x: b, y: g.top },
1429
+ { x: b, y: g.bottom },
1430
+ { x: K, y: g.bottom }
1429
1431
  ],
1430
- side: R
1432
+ side: _
1431
1433
  }), window.clearTimeout(c.current), c.current = window.setTimeout(
1432
1434
  () => s.onPointerGraceIntentChange(null),
1433
1435
  300
@@ -1440,8 +1442,8 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
1440
1442
  ),
1441
1443
  onKeyDown: y(t.onKeyDown, (d) => {
1442
1444
  var v;
1443
- const m = s.searchRef.current !== "";
1444
- t.disabled || m && d.key === " " || Xa[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
1445
+ const g = s.searchRef.current !== "";
1446
+ t.disabled || g && d.key === " " || Wa[r.dir].includes(d.key) && (n.onOpenChange(!0), (v = n.content) == null || v.focus(), d.preventDefault());
1445
1447
  })
1446
1448
  }
1447
1449
  ) });
@@ -1450,8 +1452,8 @@ var ue = "MenuSubTrigger", gn = u.forwardRef(
1450
1452
  gn.displayName = ue;
1451
1453
  var vn = "MenuSubContent", xn = u.forwardRef(
1452
1454
  (t, e) => {
1453
- const n = Zt(D, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = z(D, t.__scopeMenu), i = xe(D, t.__scopeMenu), c = fn(vn, t.__scopeMenu), l = u.useRef(null), p = pe(e, l);
1454
- return /* @__PURE__ */ o.jsx(le.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(le.Slot, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
1455
+ const n = Zt(A, t.__scopeMenu), { forceMount: r = n.forceMount, ...a } = t, s = V(A, t.__scopeMenu), i = we(A, t.__scopeMenu), c = fn(vn, t.__scopeMenu), l = u.useRef(null), p = fe(e, l);
1456
+ return /* @__PURE__ */ o.jsx(de.Provider, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(Ie, { present: r || s.open, children: /* @__PURE__ */ o.jsx(de.Slot, { scope: t.__scopeMenu, children: /* @__PURE__ */ o.jsx(
1455
1457
  tt,
1456
1458
  {
1457
1459
  id: c.contentId,
@@ -1476,8 +1478,8 @@ var vn = "MenuSubContent", xn = u.forwardRef(
1476
1478
  }),
1477
1479
  onKeyDown: y(t.onKeyDown, (f) => {
1478
1480
  var v;
1479
- const d = f.currentTarget.contains(f.target), m = Wa[i.dir].includes(f.key);
1480
- d && m && (s.onOpenChange(!1), (v = c.trigger) == null || v.focus(), f.preventDefault());
1481
+ const d = f.currentTarget.contains(f.target), g = Ja[i.dir].includes(f.key);
1482
+ d && g && (s.onOpenChange(!1), (v = c.trigger) == null || v.focus(), f.preventDefault());
1481
1483
  })
1482
1484
  }
1483
1485
  ) }) }) });
@@ -1487,30 +1489,30 @@ xn.displayName = vn;
1487
1489
  function yn(t) {
1488
1490
  return t ? "open" : "closed";
1489
1491
  }
1490
- function Ne(t) {
1492
+ function De(t) {
1491
1493
  return t === "indeterminate";
1492
1494
  }
1493
1495
  function ot(t) {
1494
- return Ne(t) ? "indeterminate" : t ? "checked" : "unchecked";
1496
+ return De(t) ? "indeterminate" : t ? "checked" : "unchecked";
1495
1497
  }
1496
- function go(t) {
1498
+ function vo(t) {
1497
1499
  const e = document.activeElement;
1498
1500
  for (const n of t)
1499
1501
  if (n === e || (n.focus(), document.activeElement !== e)) return;
1500
1502
  }
1501
- function vo(t, e) {
1503
+ function xo(t, e) {
1502
1504
  return t.map((n, r) => t[(e + r) % t.length]);
1503
1505
  }
1504
- function xo(t, e, n) {
1506
+ function yo(t, e, n) {
1505
1507
  const a = e.length > 1 && Array.from(e).every((p) => p === e[0]) ? e[0] : e, s = n ? t.indexOf(n) : -1;
1506
- let i = vo(t, Math.max(s, 0));
1508
+ let i = xo(t, Math.max(s, 0));
1507
1509
  a.length === 1 && (i = i.filter((p) => p !== n));
1508
1510
  const l = i.find(
1509
1511
  (p) => p.toLowerCase().startsWith(a.toLowerCase())
1510
1512
  );
1511
1513
  return l !== n ? l : void 0;
1512
1514
  }
1513
- function yo(t, e) {
1515
+ function wo(t, e) {
1514
1516
  const { x: n, y: r } = t;
1515
1517
  let a = !1;
1516
1518
  for (let s = 0, i = e.length - 1; s < e.length; i = s++) {
@@ -1519,18 +1521,18 @@ function yo(t, e) {
1519
1521
  }
1520
1522
  return a;
1521
1523
  }
1522
- function wo(t, e) {
1524
+ function bo(t, e) {
1523
1525
  if (!e) return !1;
1524
1526
  const n = { x: t.clientX, y: t.clientY };
1525
- return yo(n, e);
1527
+ return wo(n, e);
1526
1528
  }
1527
- function de(t) {
1529
+ function he(t) {
1528
1530
  return (e) => e.pointerType === "mouse" ? t(e) : void 0;
1529
1531
  }
1530
- var bo = Jt, Mo = Je, Co = en, Po = tn, Ro = nt, _o = nn, Eo = Ae, So = an, jo = sn, No = un, Do = dn, Io = hn, Ao = pn, Oo = mn, To = gn, ko = xn, st = "DropdownMenu", [Fo, Os] = jt(
1532
+ var Mo = Jt, Co = Je, Po = en, Ro = tn, _o = nt, Eo = nn, So = Ae, jo = an, No = sn, Do = un, Io = dn, Ao = hn, Oo = pn, To = mn, ko = gn, Fo = xn, st = "DropdownMenu", [Lo, Ts] = jt(
1531
1533
  st,
1532
1534
  [Yt]
1533
- ), C = Yt(), [Lo, wn] = Fo(st), bn = (t) => {
1535
+ ), C = Yt(), [Ko, wn] = Lo(st), bn = (t) => {
1534
1536
  const {
1535
1537
  __scopeDropdownMenu: e,
1536
1538
  children: n,
@@ -1545,17 +1547,17 @@ var bo = Jt, Mo = Je, Co = en, Po = tn, Ro = nt, _o = nn, Eo = Ae, So = an, jo =
1545
1547
  onChange: i
1546
1548
  });
1547
1549
  return /* @__PURE__ */ o.jsx(
1548
- Lo,
1550
+ Ko,
1549
1551
  {
1550
1552
  scope: e,
1551
- triggerId: Ee(),
1553
+ triggerId: je(),
1552
1554
  triggerRef: p,
1553
- contentId: Ee(),
1555
+ contentId: je(),
1554
1556
  open: f,
1555
1557
  onOpenChange: d,
1556
- onOpenToggle: u.useCallback(() => d((m) => !m), [d]),
1558
+ onOpenToggle: u.useCallback(() => d((g) => !g), [d]),
1557
1559
  modal: c,
1558
- children: /* @__PURE__ */ o.jsx(bo, { ...l, open: f, onOpenChange: d, dir: r, modal: c, children: n })
1560
+ children: /* @__PURE__ */ o.jsx(Mo, { ...l, open: f, onOpenChange: d, dir: r, modal: c, children: n })
1559
1561
  }
1560
1562
  );
1561
1563
  };
@@ -1563,7 +1565,7 @@ bn.displayName = st;
1563
1565
  var Mn = "DropdownMenuTrigger", Cn = u.forwardRef(
1564
1566
  (t, e) => {
1565
1567
  const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = t, s = wn(Mn, n), i = C(n);
1566
- return /* @__PURE__ */ o.jsx(Mo, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
1568
+ return /* @__PURE__ */ o.jsx(Co, { asChild: !0, ...i, children: /* @__PURE__ */ o.jsx(
1567
1569
  ie.button,
1568
1570
  {
1569
1571
  type: "button",
@@ -1587,16 +1589,16 @@ var Mn = "DropdownMenuTrigger", Cn = u.forwardRef(
1587
1589
  }
1588
1590
  );
1589
1591
  Cn.displayName = Mn;
1590
- var Ko = "DropdownMenuPortal", Pn = (t) => {
1592
+ var $o = "DropdownMenuPortal", Pn = (t) => {
1591
1593
  const { __scopeDropdownMenu: e, ...n } = t, r = C(e);
1592
- return /* @__PURE__ */ o.jsx(Co, { ...r, ...n });
1594
+ return /* @__PURE__ */ o.jsx(Po, { ...r, ...n });
1593
1595
  };
1594
- Pn.displayName = Ko;
1596
+ Pn.displayName = $o;
1595
1597
  var Rn = "DropdownMenuContent", _n = u.forwardRef(
1596
1598
  (t, e) => {
1597
1599
  const { __scopeDropdownMenu: n, ...r } = t, a = wn(Rn, n), s = C(n), i = u.useRef(!1);
1598
1600
  return /* @__PURE__ */ o.jsx(
1599
- Po,
1601
+ Ro,
1600
1602
  {
1601
1603
  id: a.contentId,
1602
1604
  "aria-labelledby": a.triggerId,
@@ -1624,75 +1626,75 @@ var Rn = "DropdownMenuContent", _n = u.forwardRef(
1624
1626
  }
1625
1627
  );
1626
1628
  _n.displayName = Rn;
1627
- var $o = "DropdownMenuGroup", Bo = u.forwardRef(
1629
+ var Bo = "DropdownMenuGroup", Qo = u.forwardRef(
1628
1630
  (t, e) => {
1629
1631
  const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1630
- return /* @__PURE__ */ o.jsx(Ro, { ...a, ...r, ref: e });
1632
+ return /* @__PURE__ */ o.jsx(_o, { ...a, ...r, ref: e });
1631
1633
  }
1632
1634
  );
1633
- Bo.displayName = $o;
1634
- var Qo = "DropdownMenuLabel", En = u.forwardRef(
1635
+ Qo.displayName = Bo;
1636
+ var Uo = "DropdownMenuLabel", En = u.forwardRef(
1635
1637
  (t, e) => {
1636
1638
  const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1637
- return /* @__PURE__ */ o.jsx(_o, { ...a, ...r, ref: e });
1639
+ return /* @__PURE__ */ o.jsx(Eo, { ...a, ...r, ref: e });
1638
1640
  }
1639
1641
  );
1640
- En.displayName = Qo;
1641
- var Uo = "DropdownMenuItem", Sn = u.forwardRef(
1642
+ En.displayName = Uo;
1643
+ var Go = "DropdownMenuItem", Sn = u.forwardRef(
1642
1644
  (t, e) => {
1643
1645
  const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1644
- return /* @__PURE__ */ o.jsx(Eo, { ...a, ...r, ref: e });
1646
+ return /* @__PURE__ */ o.jsx(So, { ...a, ...r, ref: e });
1645
1647
  }
1646
1648
  );
1647
- Sn.displayName = Uo;
1648
- var Go = "DropdownMenuCheckboxItem", jn = u.forwardRef((t, e) => {
1649
- const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1650
- return /* @__PURE__ */ o.jsx(So, { ...a, ...r, ref: e });
1651
- });
1652
- jn.displayName = Go;
1653
- var qo = "DropdownMenuRadioGroup", Ho = u.forwardRef((t, e) => {
1649
+ Sn.displayName = Go;
1650
+ var qo = "DropdownMenuCheckboxItem", jn = u.forwardRef((t, e) => {
1654
1651
  const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1655
1652
  return /* @__PURE__ */ o.jsx(jo, { ...a, ...r, ref: e });
1656
1653
  });
1657
- Ho.displayName = qo;
1658
- var zo = "DropdownMenuRadioItem", Nn = u.forwardRef((t, e) => {
1654
+ jn.displayName = qo;
1655
+ var Ho = "DropdownMenuRadioGroup", zo = u.forwardRef((t, e) => {
1659
1656
  const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1660
1657
  return /* @__PURE__ */ o.jsx(No, { ...a, ...r, ref: e });
1661
1658
  });
1662
- Nn.displayName = zo;
1663
- var Vo = "DropdownMenuItemIndicator", Dn = u.forwardRef((t, e) => {
1659
+ zo.displayName = Ho;
1660
+ var Vo = "DropdownMenuRadioItem", Nn = u.forwardRef((t, e) => {
1664
1661
  const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1665
1662
  return /* @__PURE__ */ o.jsx(Do, { ...a, ...r, ref: e });
1666
1663
  });
1667
- Dn.displayName = Vo;
1668
- var Yo = "DropdownMenuSeparator", In = u.forwardRef((t, e) => {
1664
+ Nn.displayName = Vo;
1665
+ var Yo = "DropdownMenuItemIndicator", Dn = u.forwardRef((t, e) => {
1669
1666
  const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1670
1667
  return /* @__PURE__ */ o.jsx(Io, { ...a, ...r, ref: e });
1671
1668
  });
1672
- In.displayName = Yo;
1673
- var Xo = "DropdownMenuArrow", Wo = u.forwardRef(
1669
+ Dn.displayName = Yo;
1670
+ var Xo = "DropdownMenuSeparator", In = u.forwardRef((t, e) => {
1671
+ const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1672
+ return /* @__PURE__ */ o.jsx(Ao, { ...a, ...r, ref: e });
1673
+ });
1674
+ In.displayName = Xo;
1675
+ var Wo = "DropdownMenuArrow", Jo = u.forwardRef(
1674
1676
  (t, e) => {
1675
1677
  const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1676
- return /* @__PURE__ */ o.jsx(Ao, { ...a, ...r, ref: e });
1678
+ return /* @__PURE__ */ o.jsx(Oo, { ...a, ...r, ref: e });
1677
1679
  }
1678
1680
  );
1679
- Wo.displayName = Xo;
1680
- var Jo = (t) => {
1681
+ Jo.displayName = Wo;
1682
+ var Zo = (t) => {
1681
1683
  const { __scopeDropdownMenu: e, children: n, open: r, onOpenChange: a, defaultOpen: s } = t, i = C(e), [c = !1, l] = At({
1682
1684
  prop: r,
1683
1685
  defaultProp: s,
1684
1686
  onChange: a
1685
1687
  });
1686
- return /* @__PURE__ */ o.jsx(Oo, { ...i, open: c, onOpenChange: l, children: n });
1687
- }, Zo = "DropdownMenuSubTrigger", An = u.forwardRef((t, e) => {
1688
+ return /* @__PURE__ */ o.jsx(To, { ...i, open: c, onOpenChange: l, children: n });
1689
+ }, es = "DropdownMenuSubTrigger", An = u.forwardRef((t, e) => {
1688
1690
  const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1689
- return /* @__PURE__ */ o.jsx(To, { ...a, ...r, ref: e });
1691
+ return /* @__PURE__ */ o.jsx(ko, { ...a, ...r, ref: e });
1690
1692
  });
1691
- An.displayName = Zo;
1692
- var es = "DropdownMenuSubContent", On = u.forwardRef((t, e) => {
1693
+ An.displayName = es;
1694
+ var ts = "DropdownMenuSubContent", On = u.forwardRef((t, e) => {
1693
1695
  const { __scopeDropdownMenu: n, ...r } = t, a = C(n);
1694
1696
  return /* @__PURE__ */ o.jsx(
1695
- ko,
1697
+ Fo,
1696
1698
  {
1697
1699
  ...a,
1698
1700
  ...r,
@@ -1708,13 +1710,13 @@ var es = "DropdownMenuSubContent", On = u.forwardRef((t, e) => {
1708
1710
  }
1709
1711
  );
1710
1712
  });
1711
- On.displayName = es;
1712
- var ts = bn, ns = Cn, Tn = Pn, kn = _n, Fn = En, Ln = Sn, Kn = jn, $n = Nn, Bn = Dn, Qn = In, rs = Jo, Un = An, Gn = On;
1713
- const as = ts, os = ns, ss = Tn, is = rs, qn = u.forwardRef(({ className: t, inset: e, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1713
+ On.displayName = ts;
1714
+ var ns = bn, rs = Cn, Tn = Pn, kn = _n, Fn = En, Ln = Sn, Kn = jn, $n = Nn, Bn = Dn, Qn = In, as = Zo, Un = An, Gn = On;
1715
+ const os = ns, ss = rs, is = Tn, cs = as, qn = u.forwardRef(({ className: t, inset: e, children: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1714
1716
  Un,
1715
1717
  {
1716
1718
  ref: a,
1717
- className: P(
1719
+ className: R(
1718
1720
  "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",
1719
1721
  e && "pl-8",
1720
1722
  t
@@ -1731,7 +1733,7 @@ const Hn = u.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
1731
1733
  Gn,
1732
1734
  {
1733
1735
  ref: n,
1734
- className: P(
1736
+ className: R(
1735
1737
  "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",
1736
1738
  t
1737
1739
  ),
@@ -1744,7 +1746,7 @@ const zn = u.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__
1744
1746
  {
1745
1747
  ref: r,
1746
1748
  sideOffset: e,
1747
- className: P(
1749
+ className: R(
1748
1750
  "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1749
1751
  "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",
1750
1752
  t
@@ -1757,7 +1759,7 @@ const Vn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */
1757
1759
  Ln,
1758
1760
  {
1759
1761
  ref: r,
1760
- className: P(
1762
+ className: R(
1761
1763
  "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",
1762
1764
  e && "pl-8",
1763
1765
  t
@@ -1766,44 +1768,44 @@ const Vn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */
1766
1768
  }
1767
1769
  ));
1768
1770
  Vn.displayName = Ln.displayName;
1769
- const cs = u.forwardRef(({ className: t, children: e, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1771
+ const us = u.forwardRef(({ className: t, children: e, checked: n, ...r }, a) => /* @__PURE__ */ o.jsxs(
1770
1772
  Kn,
1771
1773
  {
1772
1774
  ref: a,
1773
- className: P(
1775
+ className: R(
1774
1776
  "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",
1775
1777
  t
1776
1778
  ),
1777
1779
  checked: n,
1778
1780
  ...r,
1779
1781
  children: [
1780
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(Ar, { className: "h-4 w-4" }) }) }),
1782
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(Or, { className: "h-4 w-4" }) }) }),
1781
1783
  e
1782
1784
  ]
1783
1785
  }
1784
1786
  ));
1785
- cs.displayName = Kn.displayName;
1786
- const us = u.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ o.jsxs(
1787
+ us.displayName = Kn.displayName;
1788
+ const ls = u.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ o.jsxs(
1787
1789
  $n,
1788
1790
  {
1789
1791
  ref: r,
1790
- className: P(
1792
+ className: R(
1791
1793
  "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",
1792
1794
  t
1793
1795
  ),
1794
1796
  ...n,
1795
1797
  children: [
1796
- /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(la, { className: "h-4 w-4 fill-current" }) }) }),
1798
+ /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(Bn, { children: /* @__PURE__ */ o.jsx(da, { className: "h-4 w-4 fill-current" }) }) }),
1797
1799
  e
1798
1800
  ]
1799
1801
  }
1800
1802
  ));
1801
- us.displayName = $n.displayName;
1803
+ ls.displayName = $n.displayName;
1802
1804
  const Yn = u.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */ o.jsx(
1803
1805
  Fn,
1804
1806
  {
1805
1807
  ref: r,
1806
- className: P(
1808
+ className: R(
1807
1809
  "px-2 py-1.5 text-sm font-semibold",
1808
1810
  e && "pl-8",
1809
1811
  t
@@ -1816,17 +1818,17 @@ const Xn = u.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ o.jsx(
1816
1818
  Qn,
1817
1819
  {
1818
1820
  ref: n,
1819
- className: P("-mx-1 my-1 h-px bg-muted", t),
1821
+ className: R("-mx-1 my-1 h-px bg-muted", t),
1820
1822
  ...e
1821
1823
  }
1822
1824
  ));
1823
1825
  Xn.displayName = Qn.displayName;
1824
- const ls = () => {
1826
+ const ds = () => {
1825
1827
  const { navigation: t } = Ve();
1826
1828
  return t.length <= 1 ? null : /* @__PURE__ */ o.jsx("nav", { className: "border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ o.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
1827
1829
  $e,
1828
1830
  {
1829
- className: ({ isActive: n }) => Or(
1831
+ className: ({ isActive: n }) => Tr(
1830
1832
  "block py-3.5 font-medium -mb-px border-b-2",
1831
1833
  n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
1832
1834
  ),
@@ -1834,17 +1836,17 @@ const ls = () => {
1834
1836
  children: e.label
1835
1837
  }
1836
1838
  ) }, e.label)) }) });
1837
- }, Wn = ({ item: t }) => t.children ? /* @__PURE__ */ o.jsxs(is, { children: [
1839
+ }, Wn = ({ item: t }) => t.children ? /* @__PURE__ */ o.jsxs(cs, { children: [
1838
1840
  /* @__PURE__ */ o.jsx(qn, { children: t.label }),
1839
- /* @__PURE__ */ o.jsx(ss, { children: /* @__PURE__ */ o.jsx(Hn, { children: t.children.map((e, n) => (
1841
+ /* @__PURE__ */ o.jsx(is, { children: /* @__PURE__ */ o.jsx(Hn, { children: t.children.map((e, n) => (
1840
1842
  // eslint-disable-next-line react/no-array-index-key
1841
1843
  /* @__PURE__ */ o.jsx(Wn, { item: e }, n)
1842
1844
  )) }) })
1843
- ] }, t.label) : /* @__PURE__ */ o.jsx(Re, { to: t.path ?? "", children: /* @__PURE__ */ o.jsx(Vn, { children: t.label }, t.label) }), Jn = kt(function() {
1844
- const [e, n] = Tr(), { isAuthenticated: r, profile: a, isAuthEnabled: s } = fr(), { pathname: i } = W(), c = Ve(), { page: l, plugins: p } = c, f = e ? ha : pa;
1845
+ ] }, t.label) : /* @__PURE__ */ o.jsx(Ee, { to: t.path ?? "", children: /* @__PURE__ */ o.jsx(Vn, { children: t.label }, t.label) }), Jn = kt(function() {
1846
+ const [e, n] = kr(), { isAuthenticated: r, profile: a, isAuthEnabled: s } = fr(), { pathname: i } = J(), c = Ve(), { page: l, plugins: p } = c, f = e ? pa : fa;
1845
1847
  return /* @__PURE__ */ o.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ o.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
1846
1848
  /* @__PURE__ */ o.jsxs("div", { className: "grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]", children: [
1847
- /* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Re, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
1849
+ /* @__PURE__ */ o.jsx("div", { className: "flex", children: /* @__PURE__ */ o.jsx(Ee, { to: "/", children: /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-3.5", children: [
1848
1850
  (l == null ? void 0 : l.logo) && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1849
1851
  /* @__PURE__ */ o.jsx(
1850
1852
  "img",
@@ -1852,7 +1854,7 @@ const ls = () => {
1852
1854
  src: l.logo.src.light,
1853
1855
  alt: l.logo.alt ?? l.pageTitle,
1854
1856
  style: { width: l.logo.width },
1855
- className: P("h-10", e && "hidden"),
1857
+ className: R("h-10", e && "hidden"),
1856
1858
  loading: "lazy"
1857
1859
  }
1858
1860
  ),
@@ -1862,7 +1864,7 @@ const ls = () => {
1862
1864
  src: l.logo.src.dark,
1863
1865
  alt: l.logo.alt ?? l.pageTitle,
1864
1866
  style: { width: l.logo.width },
1865
- className: P("h-10", !e && "hidden"),
1867
+ className: R("h-10", !e && "hidden"),
1866
1868
  loading: "lazy"
1867
1869
  }
1868
1870
  )
@@ -1873,7 +1875,7 @@ const ls = () => {
1873
1875
  /* @__PURE__ */ o.jsx("div", { className: "w-full max-w-prose" }),
1874
1876
  /* @__PURE__ */ o.jsxs("div", { className: "items-center justify-self-end text-sm hidden lg:flex gap-2", children: [
1875
1877
  s && !r ? /* @__PURE__ */ o.jsx(Be, { variant: "ghost", asChild: !0, children: /* @__PURE__ */ o.jsx(
1876
- Re,
1878
+ Ee,
1877
1879
  {
1878
1880
  to: {
1879
1881
  pathname: "/signin",
@@ -1881,12 +1883,12 @@ const ls = () => {
1881
1883
  },
1882
1884
  children: "Login"
1883
1885
  }
1884
- ) }) : /* @__PURE__ */ o.jsxs(as, { children: [
1885
- /* @__PURE__ */ o.jsx(os, { asChild: !0, children: /* @__PURE__ */ o.jsx(Be, { variant: "ghost", children: a != null && a.email ? `${a.email}` : "My Account" }) }),
1886
+ ) }) : /* @__PURE__ */ o.jsxs(os, { children: [
1887
+ /* @__PURE__ */ o.jsx(ss, { asChild: !0, children: /* @__PURE__ */ o.jsx(Be, { variant: "ghost", children: a != null && a.email ? `${a.email}` : "My Account" }) }),
1886
1888
  /* @__PURE__ */ o.jsxs(zn, { className: "w-56", children: [
1887
1889
  /* @__PURE__ */ o.jsx(Yn, { children: "My Account" }),
1888
1890
  /* @__PURE__ */ o.jsx(Xn, {}),
1889
- p.filter((d) => Ba(d)).flatMap((d) => d.getProfileMenuItems(c)).map((d) => /* @__PURE__ */ o.jsx(Wn, { item: d }, d.label))
1891
+ p.filter((d) => Qa(d)).flatMap((d) => d.getProfileMenuItems(c)).map((d) => /* @__PURE__ */ o.jsx(Wn, { item: d }, d.label))
1890
1892
  ] })
1891
1893
  ] }),
1892
1894
  /* @__PURE__ */ o.jsx(
@@ -1902,44 +1904,50 @@ const ls = () => {
1902
1904
  ] })
1903
1905
  ] })
1904
1906
  ] }),
1905
- /* @__PURE__ */ o.jsx(ls, {})
1907
+ /* @__PURE__ */ o.jsx(ds, {})
1906
1908
  ] }) });
1907
1909
  }), Zn = {
1908
1910
  Header: Jn
1909
- }, ds = Tt(Zn), hs = ds.Provider, ps = ({
1911
+ }, hs = Tt(Zn), ps = hs.Provider, fs = ({
1910
1912
  children: t,
1911
1913
  ...e
1912
1914
  }) => {
1913
- var d, m;
1915
+ var _, j;
1914
1916
  const n = Le(
1915
1917
  () => ({ ...Zn, ...e.overrides }),
1916
1918
  [e.overrides]
1917
1919
  ), r = Le(
1918
1920
  () => {
1919
- var v;
1920
- return { ...kr, ...(v = e.mdx) == null ? void 0 : v.components };
1921
+ var P;
1922
+ return { ...Fr, ...(P = e.mdx) == null ? void 0 : P.components };
1921
1923
  },
1922
- [(d = e.mdx) == null ? void 0 : d.components]
1923
- ), { stagger: a } = Gr(Qe), [s, i] = Se(!1), c = Le(
1924
- () => s ? { stagger: !0 } : { stagger: a },
1925
- [a, s]
1926
- ), l = xr();
1927
- se(() => {
1928
- s || i(!0);
1929
- }, [s, l.location]);
1930
- const [p] = Se(() => new Ha(e)), f = (m = e.plugins) == null ? void 0 : m.filter(Ga).map((v, x) => {
1931
- var R;
1932
- return /* @__PURE__ */ o.jsx(qr, { children: (R = v.getHead) == null ? void 0 : R.call(v) }, x);
1924
+ [(_ = e.mdx) == null ? void 0 : _.components]
1925
+ ), [a, s] = le(!1), { stagger: i } = qr(Qe), [c, l] = le(!1), p = xr(), f = ge("idle"), d = Le(
1926
+ () => c ? { stagger: !0 } : { stagger: i },
1927
+ [i, c]
1928
+ ), g = yr();
1929
+ W(() => {
1930
+ c || l(!0);
1931
+ }, [c, g.location]);
1932
+ const [v] = le(() => new za(e));
1933
+ W(() => {
1934
+ f.current !== "pending" && (f.current = "pending", v.initialize({ navigate: p }).then(() => {
1935
+ f.current = "done", s(!0);
1936
+ }));
1937
+ }, [v, p]);
1938
+ const x = (j = e.plugins) == null ? void 0 : j.filter(qa).map((P, K) => {
1939
+ var b;
1940
+ return /* @__PURE__ */ o.jsx(Hr, { children: (b = P.getHead) == null ? void 0 : b.call(P) }, K);
1933
1941
  });
1934
- return /* @__PURE__ */ o.jsxs(oa, { client: zt, children: [
1935
- /* @__PURE__ */ o.jsx(Ge, { children: f }),
1936
- /* @__PURE__ */ o.jsx(Qe.Provider, { value: c, children: /* @__PURE__ */ o.jsx(sa, { value: p, children: /* @__PURE__ */ o.jsx(ur, { components: r, children: /* @__PURE__ */ o.jsx(Fr, { children: /* @__PURE__ */ o.jsx(hs, { value: n, children: /* @__PURE__ */ o.jsx(mr, { slotlets: e.slotlets, children: /* @__PURE__ */ o.jsx(Lr, { children: t ?? /* @__PURE__ */ o.jsx(St, {}) }) }) }) }) }) }) })
1937
- ] });
1938
- }, fs = kt(ps), er = (t) => /* @__PURE__ */ o.jsx(Ka, { FallbackComponent: za, children: /* @__PURE__ */ o.jsx(fs, { ...t }) });
1942
+ return a ? /* @__PURE__ */ o.jsxs(sa, { client: zt, children: [
1943
+ /* @__PURE__ */ o.jsx(Ge, { children: x }),
1944
+ /* @__PURE__ */ o.jsx(Qe.Provider, { value: d, children: /* @__PURE__ */ o.jsx(ia, { value: v, children: /* @__PURE__ */ o.jsx(ur, { components: r, children: /* @__PURE__ */ o.jsx(Lr, { children: /* @__PURE__ */ o.jsx(ps, { value: n, children: /* @__PURE__ */ o.jsx(mr, { slotlets: e.slotlets, children: /* @__PURE__ */ o.jsx(Kr, { children: t ?? /* @__PURE__ */ o.jsx(St, {}) }) }) }) }) }) }) })
1945
+ ] }) : null;
1946
+ }, ms = kt(fs), er = (t) => /* @__PURE__ */ o.jsx($a, { FallbackComponent: Va, children: /* @__PURE__ */ o.jsx(ms, { ...t }) });
1939
1947
  er.displayName = "DevPortal";
1940
- const ms = () => {
1941
- const t = W(), { setActiveAnchor: e } = He();
1942
- se(() => {
1948
+ const gs = () => {
1949
+ const t = J(), { setActiveAnchor: e } = He();
1950
+ W(() => {
1943
1951
  if (!t.hash) return;
1944
1952
  const n = t.hash.split("/")[0].slice(1), r = document.getElementById(decodeURIComponent(n));
1945
1953
  if (r) {
@@ -1954,9 +1962,9 @@ const ms = () => {
1954
1962
  });
1955
1963
  return a.observe(document.body, { childList: !0, subtree: !0 }), () => a.disconnect();
1956
1964
  }, [t.hash, e]);
1957
- }, gs = () => {
1958
- const t = W(), e = De(t.pathname);
1959
- se(() => {
1965
+ }, vs = () => {
1966
+ const t = J(), e = ge(t.pathname);
1967
+ W(() => {
1960
1968
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
1961
1969
  }, [t.pathname]);
1962
1970
  }, tr = ({
@@ -1964,21 +1972,21 @@ const ms = () => {
1964
1972
  defaultOpen: e,
1965
1973
  path: n
1966
1974
  }) => {
1967
- const [r, a] = Se(e), s = W(), i = De(s.pathname), [c, l] = Se(!1);
1968
- se(() => {
1975
+ const [r, a] = le(e), s = J(), i = ge(s.pathname), [c, l] = le(!1);
1976
+ W(() => {
1969
1977
  !r && i.current !== s.pathname && a(Ye(t, s.pathname, n)), i.current = s.pathname;
1970
1978
  }, [r, t, n, s.pathname]);
1971
1979
  const p = () => {
1972
1980
  l(!0), a((f) => !f);
1973
1981
  };
1974
- return se(() => {
1982
+ return W(() => {
1975
1983
  l(!1);
1976
1984
  }, []), {
1977
1985
  open: r,
1978
1986
  onOpenChange: p,
1979
1987
  "data-animate": c
1980
1988
  };
1981
- }, Pe = Kr(
1989
+ }, _e = $r(
1982
1990
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1983
1991
  {
1984
1992
  variants: {
@@ -1992,22 +2000,22 @@ const ms = () => {
1992
2000
  }
1993
2001
  }
1994
2002
  }
1995
- ), vs = "data-anchor", nr = ({
2003
+ ), xs = "data-anchor", nr = ({
1996
2004
  category: t,
1997
2005
  item: e,
1998
2006
  activeAnchor: n,
1999
2007
  currentTopNavItem: r,
2000
2008
  basePath: a = ""
2001
2009
  }) => {
2002
- const s = wt(e) ? Ut(a, e.path) : "", i = W(), c = tr({
2010
+ const s = wt(e) ? Ut(a, e.path) : "", i = J(), c = tr({
2003
2011
  item: e,
2004
2012
  path: s,
2005
2013
  defaultOpen: () => Ye(e, i.pathname, a)
2006
2014
  });
2007
- if (ia(e)) {
2008
- const p = P(
2015
+ if (ca(e)) {
2016
+ const p = R(
2009
2017
  "flex items-center gap-2",
2010
- Pe({
2018
+ _e({
2011
2019
  isActive: e.href === i.pathname
2012
2020
  })
2013
2021
  );
@@ -2020,7 +2028,7 @@ const ms = () => {
2020
2028
  rel: "noopener noreferrer",
2021
2029
  children: [
2022
2030
  e.label,
2023
- /* @__PURE__ */ o.jsx(da, { size: 14 })
2031
+ /* @__PURE__ */ o.jsx(ha, { size: 14 })
2024
2032
  ]
2025
2033
  }
2026
2034
  ) : /* @__PURE__ */ o.jsx($e, { className: p, to: e.href, children: e.label });
@@ -2042,9 +2050,9 @@ const ms = () => {
2042
2050
  /* @__PURE__ */ o.jsx(
2043
2051
  Kt,
2044
2052
  {
2045
- className: P(
2053
+ className: R(
2046
2054
  "group text-start",
2047
- Pe({ isActive: !1 })
2055
+ _e({ isActive: !1 })
2048
2056
  ),
2049
2057
  children: l
2050
2058
  }
@@ -2064,8 +2072,8 @@ const ms = () => {
2064
2072
  lr,
2065
2073
  {
2066
2074
  to: e.path,
2067
- [vs]: e.path,
2068
- className: Pe({
2075
+ [xs]: e.path,
2076
+ className: _e({
2069
2077
  isActive: e.path.slice(1) === n,
2070
2078
  isMuted: e.muted
2071
2079
  }),
@@ -2074,15 +2082,15 @@ const ms = () => {
2074
2082
  ) : /* @__PURE__ */ o.jsx(
2075
2083
  $e,
2076
2084
  {
2077
- className: ({ isActive: p }) => Pe({ isActive: p }),
2085
+ className: ({ isActive: p }) => _e({ isActive: p }),
2078
2086
  to: s,
2079
2087
  children: l
2080
2088
  }
2081
2089
  ) });
2082
- }, xs = ({
2090
+ }, ys = ({
2083
2091
  category: t
2084
2092
  }) => {
2085
- const { activeAnchor: e } = He(), n = ca(), r = W(), a = t.collapsible ?? !0, s = tr({
2093
+ const { activeAnchor: e } = He(), n = ua(), r = J(), a = t.collapsible ?? !0, s = tr({
2086
2094
  item: t,
2087
2095
  path: (n == null ? void 0 : n.path) ?? "",
2088
2096
  defaultOpen: () => !a || t.expanded || Ye(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
@@ -2091,7 +2099,7 @@ const ms = () => {
2091
2099
  t.label.length > 0 ? /* @__PURE__ */ o.jsx(Kt, { asChild: a, disabled: !a, children: /* @__PURE__ */ o.jsxs(
2092
2100
  "h5",
2093
2101
  {
2094
- className: P(
2102
+ className: R(
2095
2103
  "flex group items-center justify-between cursor-pointer font-semibold text-foreground/90 px-[--padding-nav-item] py-1.5 rounded-lg transition-colors duration-300 -mx-[--padding-nav-item]",
2096
2104
  a ? "hover:bg-accent" : "cursor-auto"
2097
2105
  ),
@@ -2119,12 +2127,12 @@ const ms = () => {
2119
2127
  c
2120
2128
  )) }) })
2121
2129
  ] }, t.label);
2122
- }, ys = Hr(function({ children: e, className: n, pushMainContent: r }, a) {
2130
+ }, ws = zr(function({ children: e, className: n, pushMainContent: r }, a) {
2123
2131
  return /* @__PURE__ */ o.jsx(
2124
2132
  "nav",
2125
2133
  {
2126
2134
  "data-navigation": String(r),
2127
- className: P(
2135
+ className: R(
2128
2136
  "peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 p-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 pt-[--padding-content-top] w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
2129
2137
  n
2130
2138
  ),
@@ -2132,25 +2140,25 @@ const ms = () => {
2132
2140
  children: e
2133
2141
  }
2134
2142
  );
2135
- }), ws = () => {
2136
- const t = De(null), e = ua();
2143
+ }), bs = () => {
2144
+ const t = ge(null), e = la();
2137
2145
  return /* @__PURE__ */ o.jsxs(
2138
- ys,
2146
+ ws,
2139
2147
  {
2140
2148
  ref: t,
2141
2149
  pushMainContent: e.data.items.length > 0,
2142
2150
  children: [
2143
- /* @__PURE__ */ o.jsx(_e, { name: "zudoku-before-navigation" }),
2144
- e.data.items.map((n) => /* @__PURE__ */ o.jsx(xs, { category: n }, n.label)),
2145
- /* @__PURE__ */ o.jsx(_e, { name: "zudoku-after-navigation" })
2151
+ /* @__PURE__ */ o.jsx(Se, { name: "zudoku-before-navigation" }),
2152
+ e.data.items.map((n) => /* @__PURE__ */ o.jsx(ys, { category: n }, n.label)),
2153
+ /* @__PURE__ */ o.jsx(Se, { name: "zudoku-after-navigation" })
2146
2154
  ]
2147
2155
  }
2148
2156
  );
2149
- }, bs = ({ children: t }) => {
2150
- const e = W(), { setActiveAnchor: n } = He(), { meta: r } = Ve();
2151
- ms(), gs();
2152
- const a = De(e.pathname);
2153
- return se(() => {
2157
+ }, Ms = ({ children: t }) => {
2158
+ const e = J(), { setActiveAnchor: n } = He(), { meta: r } = Ve();
2159
+ gs(), vs();
2160
+ const a = ge(e.pathname);
2161
+ return W(() => {
2154
2162
  e.pathname !== a.current && n(""), a.current = e.pathname;
2155
2163
  }, [e.pathname, n]), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2156
2164
  /* @__PURE__ */ o.jsxs(Ge, { titleTemplate: r == null ? void 0 : r.title, children: [
@@ -2159,24 +2167,24 @@ const ms = () => {
2159
2167
  ] }),
2160
2168
  /* @__PURE__ */ o.jsx(Jn, {}),
2161
2169
  /* @__PURE__ */ o.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12 h-full", children: /* @__PURE__ */ o.jsxs(
2162
- zr,
2170
+ Vr,
2163
2171
  {
2164
- fallback: /* @__PURE__ */ o.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(Wr, {}) }),
2172
+ fallback: /* @__PURE__ */ o.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ o.jsx(Jr, {}) }),
2165
2173
  children: [
2166
- /* @__PURE__ */ o.jsx(ws, {}),
2174
+ /* @__PURE__ */ o.jsx(bs, {}),
2167
2175
  /* @__PURE__ */ o.jsxs(
2168
2176
  "main",
2169
2177
  {
2170
- className: P(
2178
+ className: R(
2171
2179
  "dark:border-white/10 translate-x-0 h-full",
2172
2180
  "lg:overflow-visible",
2173
2181
  "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
2174
2182
  "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
2175
2183
  ),
2176
2184
  children: [
2177
- /* @__PURE__ */ o.jsx(_e, { name: "zudoku-before-content" }),
2185
+ /* @__PURE__ */ o.jsx(Se, { name: "zudoku-before-content" }),
2178
2186
  t ?? /* @__PURE__ */ o.jsx(St, {}),
2179
- /* @__PURE__ */ o.jsx(_e, { name: "zudoku-after-content" })
2187
+ /* @__PURE__ */ o.jsx(Se, { name: "zudoku-after-content" })
2180
2188
  ]
2181
2189
  }
2182
2190
  )
@@ -2184,18 +2192,18 @@ const ms = () => {
2184
2192
  }
2185
2193
  ) })
2186
2194
  ] });
2187
- }, Ts = dr, ks = $r, Fs = er, Ls = bs, Ks = Re, $s = gr, Bs = fa, Qs = Da, Us = Ia, Gs = Be, qs = Ge;
2195
+ }, ks = dr, Fs = Br, Ls = er, Ks = Ms, $s = Ee, Bs = gr, Qs = ma, Us = Ia, Gs = Aa, qs = Be, Hs = Ge;
2188
2196
  export {
2189
- Qs as Bootstrap,
2190
- Us as BootstrapStatic,
2191
- Gs as Button,
2192
- ks as Callout,
2193
- Fs as DevPortal,
2194
- qs as Head,
2195
- Ls as Layout,
2196
- Ks as Link,
2197
- $s as RouterError,
2198
- Bs as ServerError,
2199
- Ts as useMDXComponents
2197
+ Us as Bootstrap,
2198
+ Gs as BootstrapStatic,
2199
+ qs as Button,
2200
+ Fs as Callout,
2201
+ Ls as DevPortal,
2202
+ Hs as Head,
2203
+ Ks as Layout,
2204
+ $s as Link,
2205
+ Bs as RouterError,
2206
+ Qs as ServerError,
2207
+ ks as useMDXComponents
2200
2208
  };
2201
2209
  //# sourceMappingURL=zudoku.components.js.map