zudoku 0.3.0-dev.57 → 0.3.0-dev.59

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