zudoku 0.3.0-dev.30 → 0.3.0-dev.31

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 (80) hide show
  1. package/dist/app/demo.js +15 -11
  2. package/dist/app/demo.js.map +1 -1
  3. package/dist/app/main.js +4 -2
  4. package/dist/app/main.js.map +1 -1
  5. package/dist/app/standalone.js +14 -10
  6. package/dist/app/standalone.js.map +1 -1
  7. package/dist/app/tailwind.d.ts +1 -1
  8. package/dist/app/tailwind.js +0 -9
  9. package/dist/app/tailwind.js.map +1 -1
  10. package/dist/lib/components/DevPortal.d.ts +4 -1
  11. package/dist/lib/components/DevPortal.js +6 -1
  12. package/dist/lib/components/DevPortal.js.map +1 -1
  13. package/dist/lib/components/Router.js +2 -2
  14. package/dist/lib/components/Router.js.map +1 -1
  15. package/dist/lib/components/index.d.ts +4 -1
  16. package/dist/lib/errors/ErrorAlert.d.ts +3 -0
  17. package/dist/lib/errors/ErrorAlert.js +8 -0
  18. package/dist/lib/errors/ErrorAlert.js.map +1 -0
  19. package/dist/lib/errors/RouterError.d.ts +1 -0
  20. package/dist/lib/errors/RouterError.js +9 -0
  21. package/dist/lib/errors/RouterError.js.map +1 -0
  22. package/dist/lib/errors/TopLevelError.d.ts +2 -0
  23. package/dist/lib/errors/TopLevelError.js +7 -0
  24. package/dist/lib/errors/TopLevelError.js.map +1 -0
  25. package/dist/vite/config.d.ts +0 -1
  26. package/dist/vite/config.js +5 -3
  27. package/dist/vite/config.js.map +1 -1
  28. package/lib/{AnchorLink-BtVKbEwm.js → AnchorLink-ptdQk87q.js} +4 -4
  29. package/lib/{AnchorLink-BtVKbEwm.js.map → AnchorLink-ptdQk87q.js.map} +1 -1
  30. package/lib/{DevPortalProvider--xZTs0RJ.js → DevPortalProvider-BMk-RCE0.js} +3 -3
  31. package/lib/{DevPortalProvider--xZTs0RJ.js.map → DevPortalProvider-BMk-RCE0.js.map} +1 -1
  32. package/lib/{Markdown-oJFqm0uk.js → Markdown-DDmW47R9.js} +4 -4
  33. package/lib/{Markdown-oJFqm0uk.js.map → Markdown-DDmW47R9.js.map} +1 -1
  34. package/lib/{MdxComponents-CsU8yR42.js → MdxComponents-C0R6zobS.js} +4 -4
  35. package/lib/{MdxComponents-CsU8yR42.js.map → MdxComponents-C0R6zobS.js.map} +1 -1
  36. package/lib/{MdxPage-BV_9ncEk.js → MdxPage-DyJAHF9y.js} +9 -9
  37. package/lib/{MdxPage-BV_9ncEk.js.map → MdxPage-DyJAHF9y.js.map} +1 -1
  38. package/lib/{OperationList-DfG_E0Xa.js → OperationList-Dz9rHM9r.js} +10 -10
  39. package/lib/{OperationList-DfG_E0Xa.js.map → OperationList-Dz9rHM9r.js.map} +1 -1
  40. package/lib/{Route-CHqr53jb.js → Route-CN_7-e5r.js} +3 -3
  41. package/lib/{Route-CHqr53jb.js.map → Route-CN_7-e5r.js.map} +1 -1
  42. package/lib/{Select-CNmXi4JU.js → Select-D-Jtx53Q.js} +5 -5
  43. package/lib/{Select-CNmXi4JU.js.map → Select-D-Jtx53Q.js.map} +1 -1
  44. package/lib/{Spinner-By5opWs5.js → Spinner-BG1JnYy0.js} +4 -4
  45. package/lib/{Spinner-By5opWs5.js.map → Spinner-BG1JnYy0.js.map} +1 -1
  46. package/lib/{hook-kVJ4gpk5.js → hook-BzBeIPL4.js} +2 -2
  47. package/lib/{hook-kVJ4gpk5.js.map → hook-BzBeIPL4.js.map} +1 -1
  48. package/lib/{index-Cr3hgaqt.js → index-BaOOUFsA.js} +3 -3
  49. package/lib/{index-Cr3hgaqt.js.map → index-BaOOUFsA.js.map} +1 -1
  50. package/lib/{index-CUIxJAeE.js → index-CPvRaBBB.js} +12 -12
  51. package/lib/{index-CUIxJAeE.js.map → index-CPvRaBBB.js.map} +1 -1
  52. package/lib/{index-B2qLeglF.js → index-Cpdpun6t.js} +4 -4
  53. package/lib/{index-B2qLeglF.js.map → index-Cpdpun6t.js.map} +1 -1
  54. package/lib/{index-fXFJf9Ua.js → index-DLS6fPwU.js} +6 -6
  55. package/lib/{index-fXFJf9Ua.js.map → index-DLS6fPwU.js.map} +1 -1
  56. package/lib/{jsx-runtime-D7DwziLW.js → jsx-runtime-SV6hXQua.js} +4 -4
  57. package/lib/{jsx-runtime-D7DwziLW.js.map → jsx-runtime-SV6hXQua.js.map} +1 -1
  58. package/lib/{util-DnDPBx_j.js → util-CCWvaWo7.js} +2 -2
  59. package/lib/{util-DnDPBx_j.js.map → util-CCWvaWo7.js.map} +1 -1
  60. package/lib/zudoku.auth-openid.js +2 -2
  61. package/lib/zudoku.components.js +344 -246
  62. package/lib/zudoku.components.js.map +1 -1
  63. package/lib/zudoku.plugin-api-keys.js +6 -6
  64. package/lib/zudoku.plugin-markdown.js +5 -5
  65. package/lib/zudoku.plugin-openapi.js +2 -2
  66. package/lib/zudoku.plugin-redirect.js +2 -2
  67. package/package.json +2 -1
  68. package/src/app/demo.tsx +18 -13
  69. package/src/app/main.tsx +4 -2
  70. package/src/app/standalone.tsx +15 -11
  71. package/src/app/tailwind.ts +1 -11
  72. package/src/lib/components/DevPortal.tsx +10 -1
  73. package/src/lib/components/Router.tsx +3 -2
  74. package/src/lib/errors/ErrorAlert.tsx +21 -0
  75. package/src/lib/errors/RouterError.tsx +12 -0
  76. package/src/lib/errors/TopLevelError.tsx +8 -0
  77. package/dist/lib/components/Error.d.ts +0 -1
  78. package/dist/lib/components/Error.js +0 -10
  79. package/dist/lib/components/Error.js.map +0 -1
  80. package/src/lib/components/Error.tsx +0 -15
@@ -1,38 +1,38 @@
1
- var Ie = Object.defineProperty;
2
- var se = (t) => {
1
+ var Re = Object.defineProperty;
2
+ var ae = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var Ee = (t, e, s) => e in t ? Ie(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var g = (t, e, s) => Ee(t, typeof e != "symbol" ? e + "" : e, s), ae = (t, e, s) => e.has(t) || se("Cannot " + s);
7
- var i = (t, e, s) => (ae(t, e, "read from private field"), s ? s.call(t) : e.get(t)), v = (t, e, s) => e.has(t) ? se("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), u = (t, e, s, a) => (ae(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
8
- var S = (t, e, s, a) => ({
5
+ var He = (t, e, s) => e in t ? Re(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
+ var g = (t, e, s) => He(t, typeof e != "symbol" ? e + "" : e, s), ne = (t, e, s) => e.has(t) || ae("Cannot " + s);
7
+ var i = (t, e, s) => (ne(t, e, "read from private field"), s ? s.call(t) : e.get(t)), v = (t, e, s) => e.has(t) ? ae("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), d = (t, e, s, a) => (ne(t, e, "write to private field"), a ? a.call(t, s) : e.set(t, s), s);
8
+ var I = (t, e, s, a) => ({
9
9
  set _(r) {
10
- u(t, e, r, s);
10
+ d(t, e, r, s);
11
11
  },
12
12
  get _() {
13
13
  return i(t, e, a);
14
14
  }
15
15
  });
16
- import { c as z, N as B, a as Se, b as Re, d as Fe, R as He, L as Le } from "./index-CUIxJAeE.js";
17
- import { u as ze, a as $, M as Ke, T as _e, V as Be, C as Ve } from "./MdxComponents-CsU8yR42.js";
18
- import { j as n } from "./jsx-runtime-D7DwziLW.js";
19
- import { S as pe, h as me, Q as $e, n as m, m as ne, a as re, b as j, e as Ue, c as We, d as Xe, f as Ge, o as ie, r as oe, g as Je, i as le, p as ce, s as Ye, u as U, j as Ze, k as et, l as tt, D as st } from "./DevPortalProvider--xZTs0RJ.js";
20
- import { memo as ge, createContext as at, useEffect as I, useRef as K, useState as nt, forwardRef as rt, Suspense as ve, useMemo as H, Fragment as it } from "react";
21
- import { A as ot, H as ye, a as lt, M as ct, u as ht } from "./AnchorLink-BtVKbEwm.js";
22
- import { c as ut } from "./state-Ds_OxRHP.js";
23
- import { M as dt } from "./index-Cr3hgaqt.js";
24
- import { u as ft } from "./hook-kVJ4gpk5.js";
25
- import { u as T, O as pt, a as mt } from "./index-fXFJf9Ua.js";
26
- import { R as xe, T as be, C as je, S as gt } from "./Spinner-By5opWs5.js";
16
+ import { c as B, N as U, a as Le, b as Be, d as Ke, R as ze, L as Ve } from "./index-CPvRaBBB.js";
17
+ import { u as Ue, a as X, M as We, T as Xe, V as _e, C as Ge } from "./MdxComponents-C0R6zobS.js";
18
+ import { j as n } from "./jsx-runtime-SV6hXQua.js";
19
+ import { S as ge, h as ve, Q as Je, n as p, m as re, a as ie, b as j, e as Ye, c as Ze, d as $e, f as et, o as oe, r as le, g as tt, i as ce, p as ue, s as st, u as _, j as at, k as nt, l as rt, D as it } from "./DevPortalProvider-BMk-RCE0.js";
20
+ import { createContext as xe, Component as ot, createElement as he, isValidElement as lt, memo as ye, useEffect as T, useRef as K, useState as ct, forwardRef as ut, Suspense as be, useMemo as H, Fragment as ht } from "react";
21
+ import { A as dt, H as je, a as ft, M as mt, u as pt } from "./AnchorLink-ptdQk87q.js";
22
+ import { c as gt } from "./state-Ds_OxRHP.js";
23
+ import { M as vt } from "./index-BaOOUFsA.js";
24
+ import { u as xt } from "./hook-BzBeIPL4.js";
25
+ import { u as D, O as yt, a as bt } from "./index-DLS6fPwU.js";
26
+ import { R as Pe, T as we, C as Ce, S as jt } from "./Spinner-BG1JnYy0.js";
27
27
  import { c as L } from "./cn-DpqTslo9.js";
28
- import { c as W, i as V, j as Pe, a as vt } from "./util-DnDPBx_j.js";
28
+ import { c as G, i as W, j as Ne, a as Pt } from "./util-CCWvaWo7.js";
29
29
  /**
30
30
  * @license lucide-react v0.378.0 - ISC
31
31
  *
32
32
  * This source code is licensed under the ISC license.
33
33
  * See the LICENSE file in the root directory of this source tree.
34
34
  */
35
- const we = z("ChevronRight", [
35
+ const ke = B("ChevronRight", [
36
36
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
37
37
  ]);
38
38
  /**
@@ -41,7 +41,7 @@ const we = z("ChevronRight", [
41
41
  * This source code is licensed under the ISC license.
42
42
  * See the LICENSE file in the root directory of this source tree.
43
43
  */
44
- const yt = z("ExternalLink", [
44
+ const wt = B("ExternalLink", [
45
45
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
46
46
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
47
47
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -52,7 +52,7 @@ const yt = z("ExternalLink", [
52
52
  * This source code is licensed under the ISC license.
53
53
  * See the LICENSE file in the root directory of this source tree.
54
54
  */
55
- const xt = z("MoonStar", [
55
+ const Ct = B("MoonStar", [
56
56
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
57
57
  ["path", { d: "M20 3v4", key: "1olli1" }],
58
58
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -63,7 +63,7 @@ const xt = z("MoonStar", [
63
63
  * This source code is licensed under the ISC license.
64
64
  * See the LICENSE file in the root directory of this source tree.
65
65
  */
66
- const bt = z("Sun", [
66
+ const Nt = B("Sun", [
67
67
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
68
68
  ["path", { d: "M12 2v2", key: "tus03m" }],
69
69
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -74,16 +74,16 @@ const bt = z("Sun", [
74
74
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
75
75
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
76
76
  ]);
77
- var x, ue, jt = (ue = class extends pe {
77
+ var y, fe, kt = (fe = class extends ge {
78
78
  constructor(e = {}) {
79
79
  super();
80
- v(this, x);
81
- this.config = e, u(this, x, /* @__PURE__ */ new Map());
80
+ v(this, y);
81
+ this.config = e, d(this, y, /* @__PURE__ */ new Map());
82
82
  }
83
83
  build(e, s, a) {
84
- const r = s.queryKey, o = s.queryHash ?? me(r, s);
84
+ const r = s.queryKey, o = s.queryHash ?? ve(r, s);
85
85
  let l = this.get(o);
86
- return l || (l = new $e({
86
+ return l || (l = new Je({
87
87
  cache: this,
88
88
  queryKey: r,
89
89
  queryHash: o,
@@ -93,119 +93,119 @@ var x, ue, jt = (ue = class extends pe {
93
93
  }), this.add(l)), l;
94
94
  }
95
95
  add(e) {
96
- i(this, x).has(e.queryHash) || (i(this, x).set(e.queryHash, e), this.notify({
96
+ i(this, y).has(e.queryHash) || (i(this, y).set(e.queryHash, e), this.notify({
97
97
  type: "added",
98
98
  query: e
99
99
  }));
100
100
  }
101
101
  remove(e) {
102
- const s = i(this, x).get(e.queryHash);
103
- s && (e.destroy(), s === e && i(this, x).delete(e.queryHash), this.notify({ type: "removed", query: e }));
102
+ const s = i(this, y).get(e.queryHash);
103
+ s && (e.destroy(), s === e && i(this, y).delete(e.queryHash), this.notify({ type: "removed", query: e }));
104
104
  }
105
105
  clear() {
106
- m.batch(() => {
106
+ p.batch(() => {
107
107
  this.getAll().forEach((e) => {
108
108
  this.remove(e);
109
109
  });
110
110
  });
111
111
  }
112
112
  get(e) {
113
- return i(this, x).get(e);
113
+ return i(this, y).get(e);
114
114
  }
115
115
  getAll() {
116
- return [...i(this, x).values()];
116
+ return [...i(this, y).values()];
117
117
  }
118
118
  find(e) {
119
119
  const s = { exact: !0, ...e };
120
120
  return this.getAll().find(
121
- (a) => ne(s, a)
121
+ (a) => re(s, a)
122
122
  );
123
123
  }
124
124
  findAll(e = {}) {
125
125
  const s = this.getAll();
126
- return Object.keys(e).length > 0 ? s.filter((a) => ne(e, a)) : s;
126
+ return Object.keys(e).length > 0 ? s.filter((a) => re(e, a)) : s;
127
127
  }
128
128
  notify(e) {
129
- m.batch(() => {
129
+ p.batch(() => {
130
130
  this.listeners.forEach((s) => {
131
131
  s(e);
132
132
  });
133
133
  });
134
134
  }
135
135
  onFocus() {
136
- m.batch(() => {
136
+ p.batch(() => {
137
137
  this.getAll().forEach((e) => {
138
138
  e.onFocus();
139
139
  });
140
140
  });
141
141
  }
142
142
  onOnline() {
143
- m.batch(() => {
143
+ p.batch(() => {
144
144
  this.getAll().forEach((e) => {
145
145
  e.onOnline();
146
146
  });
147
147
  });
148
148
  }
149
- }, x = new WeakMap(), ue), p, q, de, Pt = (de = class extends pe {
149
+ }, y = new WeakMap(), fe), m, S, me, Mt = (me = class extends ge {
150
150
  constructor(e = {}) {
151
151
  super();
152
- v(this, p);
153
- v(this, q);
154
- this.config = e, u(this, p, /* @__PURE__ */ new Map()), u(this, q, Date.now());
152
+ v(this, m);
153
+ v(this, S);
154
+ this.config = e, d(this, m, /* @__PURE__ */ new Map()), d(this, S, Date.now());
155
155
  }
156
156
  build(e, s, a) {
157
- const r = new dt({
157
+ const r = new vt({
158
158
  mutationCache: this,
159
- mutationId: ++S(this, q)._,
159
+ mutationId: ++I(this, S)._,
160
160
  options: e.defaultMutationOptions(s),
161
161
  state: a
162
162
  });
163
163
  return this.add(r), r;
164
164
  }
165
165
  add(e) {
166
- const s = R(e), a = i(this, p).get(s) ?? [];
167
- a.push(e), i(this, p).set(s, a), this.notify({ type: "added", mutation: e });
166
+ const s = F(e), a = i(this, m).get(s) ?? [];
167
+ a.push(e), i(this, m).set(s, a), this.notify({ type: "added", mutation: e });
168
168
  }
169
169
  remove(e) {
170
170
  var a;
171
- const s = R(e);
172
- if (i(this, p).has(s)) {
173
- const r = (a = i(this, p).get(s)) == null ? void 0 : a.filter((o) => o !== e);
174
- r && (r.length === 0 ? i(this, p).delete(s) : i(this, p).set(s, r));
171
+ const s = F(e);
172
+ if (i(this, m).has(s)) {
173
+ const r = (a = i(this, m).get(s)) == null ? void 0 : a.filter((o) => o !== e);
174
+ r && (r.length === 0 ? i(this, m).delete(s) : i(this, m).set(s, r));
175
175
  }
176
176
  this.notify({ type: "removed", mutation: e });
177
177
  }
178
178
  canRun(e) {
179
179
  var a;
180
- const s = (a = i(this, p).get(R(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
180
+ const s = (a = i(this, m).get(F(e))) == null ? void 0 : a.find((r) => r.state.status === "pending");
181
181
  return !s || s === e;
182
182
  }
183
183
  runNext(e) {
184
184
  var a;
185
- const s = (a = i(this, p).get(R(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
185
+ const s = (a = i(this, m).get(F(e))) == null ? void 0 : a.find((r) => r !== e && r.state.isPaused);
186
186
  return (s == null ? void 0 : s.continue()) ?? Promise.resolve();
187
187
  }
188
188
  clear() {
189
- m.batch(() => {
189
+ p.batch(() => {
190
190
  this.getAll().forEach((e) => {
191
191
  this.remove(e);
192
192
  });
193
193
  });
194
194
  }
195
195
  getAll() {
196
- return [...i(this, p).values()].flat();
196
+ return [...i(this, m).values()].flat();
197
197
  }
198
198
  find(e) {
199
199
  const s = { exact: !0, ...e };
200
200
  return this.getAll().find(
201
- (a) => re(s, a)
201
+ (a) => ie(s, a)
202
202
  );
203
203
  }
204
204
  findAll(e = {}) {
205
- return this.getAll().filter((s) => re(e, s));
205
+ return this.getAll().filter((s) => ie(e, s));
206
206
  }
207
207
  notify(e) {
208
- m.batch(() => {
208
+ p.batch(() => {
209
209
  this.listeners.forEach((s) => {
210
210
  s(e);
211
211
  });
@@ -213,67 +213,67 @@ var x, ue, jt = (ue = class extends pe {
213
213
  }
214
214
  resumePausedMutations() {
215
215
  const e = this.getAll().filter((s) => s.state.isPaused);
216
- return m.batch(
216
+ return p.batch(
217
217
  () => Promise.all(
218
218
  e.map((s) => s.continue().catch(j))
219
219
  )
220
220
  );
221
221
  }
222
- }, p = new WeakMap(), q = new WeakMap(), de);
223
- function R(t) {
222
+ }, m = new WeakMap(), S = new WeakMap(), me);
223
+ function F(t) {
224
224
  var e;
225
225
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
226
226
  }
227
- function wt(t) {
227
+ function Ot(t) {
228
228
  return {
229
229
  onFetch: (e, s) => {
230
230
  const a = async () => {
231
- var X, G, J, Y, Z;
232
- const r = e.options, o = (J = (G = (X = e.fetchOptions) == null ? void 0 : X.meta) == null ? void 0 : G.fetchMore) == null ? void 0 : J.direction, l = ((Y = e.state.data) == null ? void 0 : Y.pages) || [], h = ((Z = e.state.data) == null ? void 0 : Z.pageParams) || [], d = { pages: [], pageParams: [] };
231
+ var J, Y, Z, $, ee;
232
+ const r = e.options, o = (Z = (Y = (J = e.fetchOptions) == null ? void 0 : J.meta) == null ? void 0 : Y.fetchMore) == null ? void 0 : Z.direction, l = (($ = e.state.data) == null ? void 0 : $.pages) || [], c = ((ee = e.state.data) == null ? void 0 : ee.pageParams) || [], h = { pages: [], pageParams: [] };
233
233
  let b = !1;
234
- const f = (y) => {
235
- Object.defineProperty(y, "signal", {
234
+ const f = (x) => {
235
+ Object.defineProperty(x, "signal", {
236
236
  enumerable: !0,
237
237
  get: () => (e.signal.aborted ? b = !0 : e.signal.addEventListener("abort", () => {
238
238
  b = !0;
239
239
  }), e.signal)
240
240
  });
241
- }, Te = Ue(e.options, e.fetchOptions), _ = async (y, P, k) => {
241
+ }, Ie = Ye(e.options, e.fetchOptions), z = async (x, P, k) => {
242
242
  if (b)
243
243
  return Promise.reject();
244
- if (P == null && y.pages.length)
245
- return Promise.resolve(y);
246
- const E = {
244
+ if (P == null && x.pages.length)
245
+ return Promise.resolve(x);
246
+ const q = {
247
247
  queryKey: e.queryKey,
248
248
  pageParam: P,
249
249
  direction: k ? "backward" : "forward",
250
250
  meta: e.options.meta
251
251
  };
252
- f(E);
253
- const qe = await Te(
254
- E
255
- ), { maxPages: ee } = e.options, te = k ? We : Xe;
252
+ f(q);
253
+ const Fe = await Ie(
254
+ q
255
+ ), { maxPages: te } = e.options, se = k ? Ze : $e;
256
256
  return {
257
- pages: te(y.pages, qe, ee),
258
- pageParams: te(y.pageParams, P, ee)
257
+ pages: se(x.pages, Fe, te),
258
+ pageParams: se(x.pageParams, P, te)
259
259
  };
260
260
  };
261
261
  let M;
262
262
  if (o && l.length) {
263
- const y = o === "backward", P = y ? Nt : he, k = {
263
+ const x = o === "backward", P = x ? At : de, k = {
264
264
  pages: l,
265
- pageParams: h
266
- }, E = P(r, k);
267
- M = await _(k, E, y);
265
+ pageParams: c
266
+ }, q = P(r, k);
267
+ M = await z(k, q, x);
268
268
  } else {
269
- M = await _(
270
- d,
271
- h[0] ?? r.initialPageParam
269
+ M = await z(
270
+ h,
271
+ c[0] ?? r.initialPageParam
272
272
  );
273
- const y = t ?? l.length;
274
- for (let P = 1; P < y; P++) {
275
- const k = he(r, M);
276
- M = await _(M, k);
273
+ const x = t ?? l.length;
274
+ for (let P = 1; P < x; P++) {
275
+ const k = de(r, M);
276
+ M = await z(M, k);
277
277
  }
278
278
  }
279
279
  return M;
@@ -294,7 +294,7 @@ function wt(t) {
294
294
  }
295
295
  };
296
296
  }
297
- function he(t, { pages: e, pageParams: s }) {
297
+ function de(t, { pages: e, pageParams: s }) {
298
298
  const a = e.length - 1;
299
299
  return t.getNextPageParam(
300
300
  e[a],
@@ -303,7 +303,7 @@ function he(t, { pages: e, pageParams: s }) {
303
303
  s
304
304
  );
305
305
  }
306
- function Nt(t, { pages: e, pageParams: s }) {
306
+ function At(t, { pages: e, pageParams: s }) {
307
307
  var a;
308
308
  return (a = t.getPreviousPageParam) == null ? void 0 : a.call(
309
309
  t,
@@ -313,31 +313,31 @@ function Nt(t, { pages: e, pageParams: s }) {
313
313
  s
314
314
  );
315
315
  }
316
- var c, w, N, O, A, C, Q, D, fe, Ct = (fe = class {
316
+ var u, w, C, O, A, N, E, Q, pe, Et = (pe = class {
317
317
  constructor(t = {}) {
318
- v(this, c);
318
+ v(this, u);
319
319
  v(this, w);
320
- v(this, N);
320
+ v(this, C);
321
321
  v(this, O);
322
322
  v(this, A);
323
- v(this, C);
323
+ v(this, N);
324
+ v(this, E);
324
325
  v(this, Q);
325
- v(this, D);
326
- u(this, c, t.queryCache || new jt()), u(this, w, t.mutationCache || new Pt()), u(this, N, t.defaultOptions || {}), u(this, O, /* @__PURE__ */ new Map()), u(this, A, /* @__PURE__ */ new Map()), u(this, C, 0);
326
+ d(this, u, t.queryCache || new kt()), d(this, w, t.mutationCache || new Mt()), d(this, C, t.defaultOptions || {}), d(this, O, /* @__PURE__ */ new Map()), d(this, A, /* @__PURE__ */ new Map()), d(this, N, 0);
327
327
  }
328
328
  mount() {
329
- S(this, C)._++, i(this, C) === 1 && (u(this, Q, Ge.subscribe(async (t) => {
330
- t && (await this.resumePausedMutations(), i(this, c).onFocus());
331
- })), u(this, D, ie.subscribe(async (t) => {
332
- t && (await this.resumePausedMutations(), i(this, c).onOnline());
329
+ I(this, N)._++, i(this, N) === 1 && (d(this, E, et.subscribe(async (t) => {
330
+ t && (await this.resumePausedMutations(), i(this, u).onFocus());
331
+ })), d(this, Q, oe.subscribe(async (t) => {
332
+ t && (await this.resumePausedMutations(), i(this, u).onOnline());
333
333
  })));
334
334
  }
335
335
  unmount() {
336
336
  var t, e;
337
- S(this, C)._--, i(this, C) === 0 && ((t = i(this, Q)) == null || t.call(this), u(this, Q, void 0), (e = i(this, D)) == null || e.call(this), u(this, D, void 0));
337
+ I(this, N)._--, i(this, N) === 0 && ((t = i(this, E)) == null || t.call(this), d(this, E, void 0), (e = i(this, Q)) == null || e.call(this), d(this, Q, void 0));
338
338
  }
339
339
  isFetching(t) {
340
- return i(this, c).findAll({ ...t, fetchStatus: "fetching" }).length;
340
+ return i(this, u).findAll({ ...t, fetchStatus: "fetching" }).length;
341
341
  }
342
342
  isMutating(t) {
343
343
  return i(this, w).findAll({ ...t, status: "pending" }).length;
@@ -345,33 +345,33 @@ var c, w, N, O, A, C, Q, D, fe, Ct = (fe = class {
345
345
  getQueryData(t) {
346
346
  var s;
347
347
  const e = this.defaultQueryOptions({ queryKey: t });
348
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state.data;
348
+ return (s = i(this, u).get(e.queryHash)) == null ? void 0 : s.state.data;
349
349
  }
350
350
  ensureQueryData(t) {
351
351
  const e = this.getQueryData(t.queryKey);
352
352
  if (e === void 0)
353
353
  return this.fetchQuery(t);
354
354
  {
355
- const s = this.defaultQueryOptions(t), a = i(this, c).build(this, s);
356
- return t.revalidateIfStale && a.isStaleByTime(oe(s.staleTime, a)) && this.prefetchQuery(s), Promise.resolve(e);
355
+ const s = this.defaultQueryOptions(t), a = i(this, u).build(this, s);
356
+ return t.revalidateIfStale && a.isStaleByTime(le(s.staleTime, a)) && this.prefetchQuery(s), Promise.resolve(e);
357
357
  }
358
358
  }
359
359
  getQueriesData(t) {
360
- return i(this, c).findAll(t).map(({ queryKey: e, state: s }) => {
360
+ return i(this, u).findAll(t).map(({ queryKey: e, state: s }) => {
361
361
  const a = s.data;
362
362
  return [e, a];
363
363
  });
364
364
  }
365
365
  setQueryData(t, e, s) {
366
- const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, c).get(
366
+ const a = this.defaultQueryOptions({ queryKey: t }), r = i(this, u).get(
367
367
  a.queryHash
368
- ), o = r == null ? void 0 : r.state.data, l = Je(e, o);
368
+ ), o = r == null ? void 0 : r.state.data, l = tt(e, o);
369
369
  if (l !== void 0)
370
- return i(this, c).build(this, a).setData(l, { ...s, manual: !0 });
370
+ return i(this, u).build(this, a).setData(l, { ...s, manual: !0 });
371
371
  }
372
372
  setQueriesData(t, e, s) {
373
- return m.batch(
374
- () => i(this, c).findAll(t).map(({ queryKey: a }) => [
373
+ return p.batch(
374
+ () => i(this, u).findAll(t).map(({ queryKey: a }) => [
375
375
  a,
376
376
  this.setQueryData(a, e, s)
377
377
  ])
@@ -380,34 +380,34 @@ var c, w, N, O, A, C, Q, D, fe, Ct = (fe = class {
380
380
  getQueryState(t) {
381
381
  var s;
382
382
  const e = this.defaultQueryOptions({ queryKey: t });
383
- return (s = i(this, c).get(e.queryHash)) == null ? void 0 : s.state;
383
+ return (s = i(this, u).get(e.queryHash)) == null ? void 0 : s.state;
384
384
  }
385
385
  removeQueries(t) {
386
- const e = i(this, c);
387
- m.batch(() => {
386
+ const e = i(this, u);
387
+ p.batch(() => {
388
388
  e.findAll(t).forEach((s) => {
389
389
  e.remove(s);
390
390
  });
391
391
  });
392
392
  }
393
393
  resetQueries(t, e) {
394
- const s = i(this, c), a = {
394
+ const s = i(this, u), a = {
395
395
  type: "active",
396
396
  ...t
397
397
  };
398
- return m.batch(() => (s.findAll(t).forEach((r) => {
398
+ return p.batch(() => (s.findAll(t).forEach((r) => {
399
399
  r.reset();
400
400
  }), this.refetchQueries(a, e)));
401
401
  }
402
402
  cancelQueries(t = {}, e = {}) {
403
- const s = { revert: !0, ...e }, a = m.batch(
404
- () => i(this, c).findAll(t).map((r) => r.cancel(s))
403
+ const s = { revert: !0, ...e }, a = p.batch(
404
+ () => i(this, u).findAll(t).map((r) => r.cancel(s))
405
405
  );
406
406
  return Promise.all(a).then(j).catch(j);
407
407
  }
408
408
  invalidateQueries(t = {}, e = {}) {
409
- return m.batch(() => {
410
- if (i(this, c).findAll(t).forEach((a) => {
409
+ return p.batch(() => {
410
+ if (i(this, u).findAll(t).forEach((a) => {
411
411
  a.invalidate();
412
412
  }), t.refetchType === "none")
413
413
  return Promise.resolve();
@@ -422,8 +422,8 @@ var c, w, N, O, A, C, Q, D, fe, Ct = (fe = class {
422
422
  const s = {
423
423
  ...e,
424
424
  cancelRefetch: (e == null ? void 0 : e.cancelRefetch) ?? !0
425
- }, a = m.batch(
426
- () => i(this, c).findAll(t).filter((r) => !r.isDisabled()).map((r) => {
425
+ }, a = p.batch(
426
+ () => i(this, u).findAll(t).filter((r) => !r.isDisabled()).map((r) => {
427
427
  let o = r.fetch(void 0, s);
428
428
  return s.throwOnError || (o = o.catch(j)), r.state.fetchStatus === "paused" ? Promise.resolve() : o;
429
429
  })
@@ -433,37 +433,37 @@ var c, w, N, O, A, C, Q, D, fe, Ct = (fe = class {
433
433
  fetchQuery(t) {
434
434
  const e = this.defaultQueryOptions(t);
435
435
  e.retry === void 0 && (e.retry = !1);
436
- const s = i(this, c).build(this, e);
436
+ const s = i(this, u).build(this, e);
437
437
  return s.isStaleByTime(
438
- oe(e.staleTime, s)
438
+ le(e.staleTime, s)
439
439
  ) ? s.fetch(e) : Promise.resolve(s.state.data);
440
440
  }
441
441
  prefetchQuery(t) {
442
442
  return this.fetchQuery(t).then(j).catch(j);
443
443
  }
444
444
  fetchInfiniteQuery(t) {
445
- return t.behavior = wt(t.pages), this.fetchQuery(t);
445
+ return t.behavior = Ot(t.pages), this.fetchQuery(t);
446
446
  }
447
447
  prefetchInfiniteQuery(t) {
448
448
  return this.fetchInfiniteQuery(t).then(j).catch(j);
449
449
  }
450
450
  resumePausedMutations() {
451
- return ie.isOnline() ? i(this, w).resumePausedMutations() : Promise.resolve();
451
+ return oe.isOnline() ? i(this, w).resumePausedMutations() : Promise.resolve();
452
452
  }
453
453
  getQueryCache() {
454
- return i(this, c);
454
+ return i(this, u);
455
455
  }
456
456
  getMutationCache() {
457
457
  return i(this, w);
458
458
  }
459
459
  getDefaultOptions() {
460
- return i(this, N);
460
+ return i(this, C);
461
461
  }
462
462
  setDefaultOptions(t) {
463
- u(this, N, t);
463
+ d(this, C, t);
464
464
  }
465
465
  setQueryDefaults(t, e) {
466
- i(this, O).set(le(t), {
466
+ i(this, O).set(ce(t), {
467
467
  queryKey: t,
468
468
  defaultOptions: e
469
469
  });
@@ -472,11 +472,11 @@ var c, w, N, O, A, C, Q, D, fe, Ct = (fe = class {
472
472
  const e = [...i(this, O).values()];
473
473
  let s = {};
474
474
  return e.forEach((a) => {
475
- ce(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
475
+ ue(t, a.queryKey) && (s = { ...s, ...a.defaultOptions });
476
476
  }), s;
477
477
  }
478
478
  setMutationDefaults(t, e) {
479
- i(this, A).set(le(t), {
479
+ i(this, A).set(ce(t), {
480
480
  mutationKey: t,
481
481
  defaultOptions: e
482
482
  });
@@ -485,37 +485,121 @@ var c, w, N, O, A, C, Q, D, fe, Ct = (fe = class {
485
485
  const e = [...i(this, A).values()];
486
486
  let s = {};
487
487
  return e.forEach((a) => {
488
- ce(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
488
+ ue(t, a.mutationKey) && (s = { ...s, ...a.defaultOptions });
489
489
  }), s;
490
490
  }
491
491
  defaultQueryOptions(t) {
492
492
  if (t._defaulted)
493
493
  return t;
494
494
  const e = {
495
- ...i(this, N).queries,
495
+ ...i(this, C).queries,
496
496
  ...this.getQueryDefaults(t.queryKey),
497
497
  ...t,
498
498
  _defaulted: !0
499
499
  };
500
- return e.queryHash || (e.queryHash = me(
500
+ return e.queryHash || (e.queryHash = ve(
501
501
  e.queryKey,
502
502
  e
503
- )), 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 === Ye && (e.enabled = !1), e;
503
+ )), 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;
504
504
  }
505
505
  defaultMutationOptions(t) {
506
506
  return t != null && t._defaulted ? t : {
507
- ...i(this, N).mutations,
507
+ ...i(this, C).mutations,
508
508
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
509
509
  ...t,
510
510
  _defaulted: !0
511
511
  };
512
512
  }
513
513
  clear() {
514
- i(this, c).clear(), i(this, w).clear();
514
+ i(this, u).clear(), i(this, w).clear();
515
515
  }
516
- }, c = new WeakMap(), w = new WeakMap(), N = new WeakMap(), O = new WeakMap(), A = new WeakMap(), C = new WeakMap(), Q = new WeakMap(), D = new WeakMap(), fe);
517
- const Ne = (t) => "getRoutes" in t && typeof t.getRoutes == "function", kt = (t) => "initialize" in t && typeof t.initialize == "function", Mt = (t) => "getHead" in t && typeof t.getHead == "function", Ot = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Ce = new Ct(), At = ut(() => ({}));
518
- class Qt {
516
+ }, u = new WeakMap(), w = new WeakMap(), C = new WeakMap(), O = new WeakMap(), A = new WeakMap(), N = new WeakMap(), E = new WeakMap(), Q = new WeakMap(), pe);
517
+ const Qt = xe(null), V = {
518
+ didCatch: !1,
519
+ error: null
520
+ };
521
+ class Dt extends ot {
522
+ constructor(e) {
523
+ super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = V;
524
+ }
525
+ static getDerivedStateFromError(e) {
526
+ return {
527
+ didCatch: !0,
528
+ error: e
529
+ };
530
+ }
531
+ resetErrorBoundary() {
532
+ const {
533
+ error: e
534
+ } = this.state;
535
+ if (e !== null) {
536
+ for (var s, a, r = arguments.length, o = new Array(r), l = 0; l < r; l++)
537
+ o[l] = arguments[l];
538
+ (s = (a = this.props).onReset) === null || s === void 0 || s.call(a, {
539
+ args: o,
540
+ reason: "imperative-api"
541
+ }), this.setState(V);
542
+ }
543
+ }
544
+ componentDidCatch(e, s) {
545
+ var a, r;
546
+ (a = (r = this.props).onError) === null || a === void 0 || a.call(r, e, s);
547
+ }
548
+ componentDidUpdate(e, s) {
549
+ const {
550
+ didCatch: a
551
+ } = this.state, {
552
+ resetKeys: r
553
+ } = this.props;
554
+ if (a && s.error !== null && St(e.resetKeys, r)) {
555
+ var o, l;
556
+ (o = (l = this.props).onReset) === null || o === void 0 || o.call(l, {
557
+ next: r,
558
+ prev: e.resetKeys,
559
+ reason: "keys"
560
+ }), this.setState(V);
561
+ }
562
+ }
563
+ render() {
564
+ const {
565
+ children: e,
566
+ fallbackRender: s,
567
+ FallbackComponent: a,
568
+ fallback: r
569
+ } = this.props, {
570
+ didCatch: o,
571
+ error: l
572
+ } = this.state;
573
+ let c = e;
574
+ if (o) {
575
+ const h = {
576
+ error: l,
577
+ resetErrorBoundary: this.resetErrorBoundary
578
+ };
579
+ if (typeof s == "function")
580
+ c = s(h);
581
+ else if (a)
582
+ c = he(a, h);
583
+ else if (r === null || lt(r))
584
+ c = r;
585
+ else
586
+ throw l;
587
+ }
588
+ return he(Qt.Provider, {
589
+ value: {
590
+ didCatch: o,
591
+ error: l,
592
+ resetErrorBoundary: this.resetErrorBoundary
593
+ }
594
+ }, c);
595
+ }
596
+ }
597
+ function St() {
598
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
599
+ return t.length !== e.length || t.some((s, a) => !Object.is(s, e[a]));
600
+ }
601
+ const Me = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Tt = (t) => "initialize" in t && typeof t.initialize == "function", qt = (t) => "getHead" in t && typeof t.getHead == "function", It = (t) => "getIdentities" in t && typeof t.getIdentities == "function", Oe = new Et(), Ft = gt(() => ({}));
602
+ class Rt {
519
603
  constructor(e) {
520
604
  g(this, "plugins", []);
521
605
  g(this, "navigationPlugins");
@@ -526,17 +610,17 @@ class Qt {
526
610
  g(this, "state");
527
611
  g(this, "initialize", async () => {
528
612
  await Promise.all([
529
- this.plugins.filter(kt).map((e) => {
613
+ this.plugins.filter(Tt).map((e) => {
530
614
  var s;
531
615
  return (s = e.initialize) == null ? void 0 : s.call(e, this);
532
616
  })
533
617
  ]);
534
618
  });
535
619
  g(this, "invalidateCache", async (e) => {
536
- await Ce.invalidateQueries({ queryKey: e });
620
+ await Oe.invalidateQueries({ queryKey: e });
537
621
  });
538
622
  g(this, "getApiIdentities", async () => (await Promise.all(
539
- this.plugins.filter(Ot).map((s) => s.getIdentities(this))
623
+ this.plugins.filter(It).map((s) => s.getIdentities(this))
540
624
  )).flat());
541
625
  g(this, "getNavigation", async (e) => (await Promise.all(
542
626
  this.navigationPlugins.map(
@@ -546,7 +630,7 @@ class Qt {
546
630
  }
547
631
  )
548
632
  )).flatMap((a) => a ?? []));
549
- this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ne), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = At;
633
+ this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Me), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.state = Ft;
550
634
  }
551
635
  async signRequest(e) {
552
636
  if (!this.authentication)
@@ -555,12 +639,23 @@ class Qt {
555
639
  return e.headers.set("Authorization", `Bearer ${s}`), e;
556
640
  }
557
641
  }
558
- const Dt = () => {
559
- const { navigation: t } = U();
642
+ function Ae({ error: t }) {
643
+ const e = (t == null ? void 0 : t.message) ?? "Something went wrong", s = t == null ? void 0 : t.stack;
644
+ return /* @__PURE__ */ n.jsx("div", { className: "flex h-screen max-h-screen min-h-full items-center justify-center bg-primary-background px-4 py-16 lg:px-8", children: /* @__PURE__ */ n.jsxs("div", { className: "mx-auto max-w-[85%] sm:max-w-[50%]", children: [
645
+ /* @__PURE__ */ n.jsx("h1", { className: "text-4xl font-bold tracking-tight text-h1-text sm:text-5xl", children: "Something went wrong" }),
646
+ /* @__PURE__ */ n.jsx("p", { className: "mt-5 text-h1-text", children: e }),
647
+ s ? /* @__PURE__ */ n.jsx("pre", { className: "mt-5 max-h-[400px] w-full overflow-scroll rounded-md border border-input-border bg-input-background p-3 text-property-name-text text-red-700", children: s }) : null
648
+ ] }) });
649
+ }
650
+ function Ht({ error: t, resetErrorBoundary: e }) {
651
+ return /* @__PURE__ */ n.jsx(Ae, { error: t });
652
+ }
653
+ const Lt = () => {
654
+ const { navigation: t } = _();
560
655
  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(
561
- B,
656
+ U,
562
657
  {
563
- className: ({ isActive: s }) => Se(
658
+ className: ({ isActive: s }) => Le(
564
659
  "block py-3.5 font-medium -mb-px border-b-2",
565
660
  s ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
566
661
  ),
@@ -568,13 +663,13 @@ const Dt = () => {
568
663
  children: e.label
569
664
  }
570
665
  ) }, e.label)) }) });
571
- }, ke = ge(function() {
572
- const [e, s] = ze(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: h } = ft(), { page: d } = U(), b = e ? xt : bt;
666
+ }, Ee = ye(function() {
667
+ const [e, s] = Ue(), { isAuthenticated: a, profile: r, isAuthEnabled: o, login: l, logout: c } = xt(), { page: h } = _(), b = e ? Ct : Nt;
573
668
  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: [
574
669
  /* @__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: [
575
670
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-3.5", children: [
576
- (d == null ? void 0 : d.logo) && /* @__PURE__ */ n.jsx("img", { src: d.logo, alt: d.pageTitle, className: "h-10" }),
577
- /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: d == null ? void 0 : d.pageTitle })
671
+ (h == null ? void 0 : h.logo) && /* @__PURE__ */ n.jsx("img", { src: h.logo, alt: h.pageTitle, className: "h-10" }),
672
+ /* @__PURE__ */ n.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: h == null ? void 0 : h.pageTitle })
578
673
  ] }),
579
674
  /* @__PURE__ */ n.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
580
675
  /* @__PURE__ */ n.jsx("div", { className: "w-full max-w-prose" }),
@@ -583,7 +678,7 @@ const Dt = () => {
583
678
  "button",
584
679
  {
585
680
  className: "cursor-pointer hover:bg-secondary p-1 px-2 mx-2 rounded text-nowrap",
586
- onClick: h,
681
+ onClick: c,
587
682
  children: [
588
683
  "Logout ",
589
684
  r != null && r.email ? `(${r.email})` : null
@@ -608,13 +703,13 @@ const Dt = () => {
608
703
  ] })
609
704
  ] })
610
705
  ] }),
611
- /* @__PURE__ */ n.jsx(Dt, {})
706
+ /* @__PURE__ */ n.jsx(Lt, {})
612
707
  ] }) });
613
- }), Me = {
614
- Header: ke
615
- }, Tt = at(Me), qt = Tt.Provider, It = () => {
616
- const t = T(), { setActiveAnchor: e } = $();
617
- I(() => {
708
+ }), Qe = {
709
+ Header: Ee
710
+ }, Bt = xe(Qe), Kt = Bt.Provider, zt = () => {
711
+ const t = D(), { setActiveAnchor: e } = X();
712
+ T(() => {
618
713
  if (!t.hash) return;
619
714
  const s = t.hash.split("/")[0].slice(1), a = document.getElementById(decodeURIComponent(s));
620
715
  if (a) {
@@ -624,26 +719,26 @@ const Dt = () => {
624
719
  return;
625
720
  }
626
721
  const r = new MutationObserver((o, l) => {
627
- const h = document.getElementById(decodeURIComponent(s));
628
- h && (h.scrollIntoView(), requestIdleCallback(() => e(s)), l.disconnect());
722
+ const c = document.getElementById(decodeURIComponent(s));
723
+ c && (c.scrollIntoView(), requestIdleCallback(() => e(s)), l.disconnect());
629
724
  });
630
725
  return r.observe(document.body, { childList: !0, subtree: !0 }), () => r.disconnect();
631
726
  }, [t.hash, e]);
632
- }, Et = () => {
633
- const t = T(), e = K(t.pathname);
634
- I(() => {
727
+ }, Vt = () => {
728
+ const t = D(), e = K(t.pathname);
729
+ T(() => {
635
730
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
636
731
  }, [t.pathname]);
637
- }, Oe = ({
732
+ }, De = ({
638
733
  item: t,
639
734
  defaultOpen: e,
640
735
  path: s
641
736
  }) => {
642
- const [a, r] = nt(e), o = T(), l = K(o.pathname);
643
- return I(() => {
644
- !a && l.current !== o.pathname && r(W(t, o.pathname, s)), l.current = o.pathname;
737
+ const [a, r] = ct(e), o = D(), l = K(o.pathname);
738
+ return T(() => {
739
+ !a && l.current !== o.pathname && r(G(t, o.pathname, s)), l.current = o.pathname;
645
740
  }, [a, t, s, o.pathname]), [a, r];
646
- }, F = Re(
741
+ }, R = Be(
647
742
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
648
743
  {
649
744
  variants: {
@@ -657,22 +752,22 @@ const Dt = () => {
657
752
  }
658
753
  }
659
754
  }
660
- ), St = "data-anchor", Ae = ({
755
+ ), Ut = "data-anchor", Se = ({
661
756
  category: t,
662
757
  item: e,
663
758
  activeAnchor: s,
664
759
  currentTopNavItem: a,
665
760
  basePath: r = ""
666
761
  }) => {
667
- const o = V(e) ? Pe(r, e.path) : "", l = T(), [h, d] = Oe({
762
+ const o = W(e) ? Ne(r, e.path) : "", l = D(), [c, h] = De({
668
763
  item: e,
669
764
  path: o,
670
- defaultOpen: () => W(e, l.pathname, o)
765
+ defaultOpen: () => G(e, l.pathname, o)
671
766
  });
672
- if (vt(e)) {
767
+ if (Pt(e)) {
673
768
  const f = L(
674
769
  "flex items-center gap-2",
675
- F({
770
+ R({
676
771
  isActive: e.href === l.pathname
677
772
  })
678
773
  );
@@ -685,10 +780,10 @@ const Dt = () => {
685
780
  rel: "noopener noreferrer",
686
781
  children: [
687
782
  e.label,
688
- /* @__PURE__ */ n.jsx(yt, { size: 14 })
783
+ /* @__PURE__ */ n.jsx(wt, { size: 14 })
689
784
  ]
690
785
  }
691
- ) : /* @__PURE__ */ n.jsx(B, { className: f, to: e.href, children: e.label });
786
+ ) : /* @__PURE__ */ n.jsx(U, { className: f, to: e.href, children: e.label });
692
787
  }
693
788
  const b = /* @__PURE__ */ n.jsxs("div", { className: "flex justify-between w-full", children: [
694
789
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
@@ -696,7 +791,7 @@ const Dt = () => {
696
791
  typeof e.label != "string" ? e.label : /* @__PURE__ */ n.jsx("span", { className: "truncate", children: e.label })
697
792
  ] }),
698
793
  e.children && /* @__PURE__ */ n.jsx(
699
- we,
794
+ ke,
700
795
  {
701
796
  size: 16,
702
797
  className: "transition shrink-0 group-data-[state=open]:rotate-90"
@@ -704,24 +799,24 @@ const Dt = () => {
704
799
  )
705
800
  ] });
706
801
  return /* @__PURE__ */ n.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ n.jsxs(
707
- xe,
802
+ Pe,
708
803
  {
709
- open: h,
710
- onOpenChange: () => d((f) => !f),
804
+ open: c,
805
+ onOpenChange: () => h((f) => !f),
711
806
  className: "flex flex-col",
712
807
  children: [
713
808
  /* @__PURE__ */ n.jsx(
714
- be,
809
+ we,
715
810
  {
716
811
  className: L(
717
812
  "group text-start",
718
- F({ isActive: !1 })
813
+ R({ isActive: !1 })
719
814
  ),
720
815
  children: b
721
816
  }
722
817
  ),
723
- /* @__PURE__ */ n.jsx(je, { 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((f) => /* @__PURE__ */ n.jsx(
724
- Ae,
818
+ /* @__PURE__ */ n.jsx(Ce, { 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((f) => /* @__PURE__ */ n.jsx(
819
+ Se,
725
820
  {
726
821
  category: t,
727
822
  item: f,
@@ -729,44 +824,44 @@ const Dt = () => {
729
824
  currentTopNavItem: a,
730
825
  basePath: o
731
826
  },
732
- V(f) ? f.path : f.href
827
+ W(f) ? f.path : f.href
733
828
  )) }) })
734
829
  ]
735
830
  }
736
831
  ) : e.path.startsWith("#") ? /* @__PURE__ */ n.jsx(
737
- ot,
832
+ dt,
738
833
  {
739
834
  to: e.path,
740
- [St]: e.path,
741
- className: F({
835
+ [Ut]: e.path,
836
+ className: R({
742
837
  isActive: e.path.slice(1) === s,
743
838
  isMuted: e.muted
744
839
  }),
745
840
  children: b
746
841
  }
747
842
  ) : /* @__PURE__ */ n.jsx(
748
- B,
843
+ U,
749
844
  {
750
- className: ({ isActive: f }) => F({ isActive: f }),
845
+ className: ({ isActive: f }) => R({ isActive: f }),
751
846
  to: o,
752
847
  children: b
753
848
  }
754
849
  ) });
755
- }, Rt = ({
850
+ }, Wt = ({
756
851
  category: t
757
852
  }) => {
758
- const { activeAnchor: e } = $(), s = Ze(), a = T(), r = t.collapsible ?? !0, [o, l] = Oe({
853
+ const { activeAnchor: e } = X(), s = at(), a = D(), r = t.collapsible ?? !0, [o, l] = De({
759
854
  item: t,
760
855
  path: (s == null ? void 0 : s.path) ?? "",
761
- defaultOpen: () => !r || t.expanded || W(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
856
+ defaultOpen: () => !r || t.expanded || G(t, a.pathname, (s == null ? void 0 : s.path) ?? "")
762
857
  });
763
858
  return /* @__PURE__ */ n.jsxs(
764
- xe,
859
+ Pe,
765
860
  {
766
861
  open: o,
767
- onOpenChange: () => l((h) => !h),
862
+ onOpenChange: () => l((c) => !c),
768
863
  children: [
769
- t.label.length > 0 ? /* @__PURE__ */ n.jsx(be, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
864
+ t.label.length > 0 ? /* @__PURE__ */ n.jsx(we, { asChild: r, disabled: !r, children: /* @__PURE__ */ n.jsxs(
770
865
  "h5",
771
866
  {
772
867
  className: L(
@@ -776,7 +871,7 @@ const Dt = () => {
776
871
  children: [
777
872
  t.label,
778
873
  r && /* @__PURE__ */ n.jsx(
779
- we,
874
+ ke,
780
875
  {
781
876
  className: "group-data-[state=open]:rotate-90 transition",
782
877
  size: 16
@@ -785,22 +880,22 @@ const Dt = () => {
785
880
  ]
786
881
  }
787
882
  ) }) : "Endpoints",
788
- /* @__PURE__ */ n.jsx(je, { 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((h) => /* @__PURE__ */ n.jsx(
789
- Ae,
883
+ /* @__PURE__ */ n.jsx(Ce, { 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) => /* @__PURE__ */ n.jsx(
884
+ Se,
790
885
  {
791
886
  category: t,
792
- item: h,
887
+ item: c,
793
888
  activeAnchor: e,
794
889
  currentTopNavItem: s,
795
- basePath: Pe(s == null ? void 0 : s.path, t.path)
890
+ basePath: Ne(s == null ? void 0 : s.path, t.path)
796
891
  },
797
- V(h) ? h.path + h.label : h.href
892
+ W(c) ? c.path + c.label : c.href
798
893
  )) }) })
799
894
  ]
800
895
  },
801
896
  t.label
802
897
  );
803
- }, Ft = rt(function({ children: e, className: s, pushMainContent: a }, r) {
898
+ }, Xt = ut(function({ children: e, className: s, pushMainContent: a }, r) {
804
899
  return /* @__PURE__ */ n.jsx(
805
900
  "nav",
806
901
  {
@@ -813,34 +908,34 @@ const Dt = () => {
813
908
  children: e
814
909
  }
815
910
  );
816
- }), Ht = () => {
817
- const t = K(null), e = et();
911
+ }), _t = () => {
912
+ const t = K(null), e = nt();
818
913
  return /* @__PURE__ */ n.jsx(
819
- Ft,
914
+ Xt,
820
915
  {
821
916
  ref: t,
822
917
  pushMainContent: e.data.items.length > 0,
823
- children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Rt, { category: s }, s.label))
918
+ children: e.data.items.map((s) => /* @__PURE__ */ n.jsx(Wt, { category: s }, s.label))
824
919
  }
825
920
  );
826
- }, Qe = ({ children: t }) => {
827
- const e = T(), { setActiveAnchor: s } = $(), { meta: a } = U();
828
- It(), Et();
921
+ }, Te = ({ children: t }) => {
922
+ const e = D(), { setActiveAnchor: s } = X(), { meta: a } = _();
923
+ zt(), Vt();
829
924
  const r = K(e.pathname);
830
- return I(() => {
925
+ return T(() => {
831
926
  e.pathname !== r.current && s(""), r.current = e.pathname;
832
927
  }, [e.pathname, s]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
833
- /* @__PURE__ */ n.jsxs(ye, { titleTemplate: a == null ? void 0 : a.title, children: [
928
+ /* @__PURE__ */ n.jsxs(je, { titleTemplate: a == null ? void 0 : a.title, children: [
834
929
  (a == null ? void 0 : a.description) && /* @__PURE__ */ n.jsx("meta", { name: "description", content: a.description }),
835
930
  (a == null ? void 0 : a.favicon) && /* @__PURE__ */ n.jsx("link", { rel: "icon", href: a.favicon })
836
931
  ] }),
837
- /* @__PURE__ */ n.jsx(ke, {}),
932
+ /* @__PURE__ */ n.jsx(Ee, {}),
838
933
  /* @__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(
839
- ve,
934
+ be,
840
935
  {
841
- fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(gt, {}) }),
936
+ fallback: /* @__PURE__ */ n.jsx("div", { className: "grid h-full place-items-center", children: /* @__PURE__ */ n.jsx(jt, {}) }),
842
937
  children: [
843
- /* @__PURE__ */ n.jsx(Ht, {}),
938
+ /* @__PURE__ */ n.jsx(_t, {}),
844
939
  /* @__PURE__ */ n.jsx(
845
940
  "main",
846
941
  {
@@ -848,7 +943,7 @@ const Dt = () => {
848
943
  lg:overflow-visible
849
944
  lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
850
945
  lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
851
- children: t ?? /* @__PURE__ */ n.jsx(pt, {})
946
+ children: t ?? /* @__PURE__ */ n.jsx(yt, {})
852
947
  }
853
948
  )
854
949
  ]
@@ -856,50 +951,50 @@ const Dt = () => {
856
951
  ) })
857
952
  ] });
858
953
  };
859
- function Lt() {
860
- const t = mt();
861
- return console.error(t), /* @__PURE__ */ n.jsx(Qe, { children: /* @__PURE__ */ n.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) });
954
+ function Gt() {
955
+ const t = bt();
956
+ return /* @__PURE__ */ n.jsx(Te, { children: /* @__PURE__ */ n.jsx(Ae, { error: t }) });
862
957
  }
863
- function zt({ plugins: t }) {
958
+ function Jt({ plugins: t }) {
864
959
  const e = H(() => {
865
960
  const s = (t ?? []).flatMap(
866
- (a) => Ne(a) ? a.getRoutes() : []
961
+ (a) => Me(a) ? a.getRoutes() : []
867
962
  );
868
- return Fe([
963
+ return Ke([
869
964
  {
870
965
  path: "/",
871
- element: /* @__PURE__ */ n.jsx(Qe, {}),
872
- errorElement: /* @__PURE__ */ n.jsx(Lt, {}),
966
+ element: /* @__PURE__ */ n.jsx(Te, {}),
967
+ errorElement: /* @__PURE__ */ n.jsx(Gt, {}),
873
968
  children: s
874
969
  }
875
970
  ]);
876
971
  }, [t]);
877
- return /* @__PURE__ */ n.jsx(He, { router: e });
972
+ return /* @__PURE__ */ n.jsx(ze, { router: e });
878
973
  }
879
- const Kt = (t) => {
974
+ const Yt = (t) => {
880
975
  var o;
881
976
  const e = H(
882
- () => ({ ...Me, ...t.overrides }),
977
+ () => ({ ...Qe, ...t.overrides }),
883
978
  [t.overrides]
884
979
  ), s = H(
885
- () => ({ ...Ke, ...t.mdxComponents }),
980
+ () => ({ ...We, ...t.mdxComponents }),
886
981
  [t.mdxComponents]
887
- ), a = H(() => new Qt(t), [t]);
888
- I(() => {
982
+ ), a = H(() => new Rt(t), [t]);
983
+ T(() => {
889
984
  a.initialize();
890
985
  }, [a]);
891
- const r = (o = t.plugins) == null ? void 0 : o.filter(Mt).map((l, h) => {
892
- var d;
893
- return /* @__PURE__ */ n.jsx(it, { children: (d = l.getHead) == null ? void 0 : d.call(l) }, h);
986
+ const r = (o = t.plugins) == null ? void 0 : o.filter(qt).map((l, c) => {
987
+ var h;
988
+ return /* @__PURE__ */ n.jsx(ht, { children: (h = l.getHead) == null ? void 0 : h.call(l) }, c);
894
989
  });
895
- return /* @__PURE__ */ n.jsx(tt, { client: Ce, children: /* @__PURE__ */ n.jsxs(lt, { children: [
896
- /* @__PURE__ */ n.jsx(ye, { children: r }),
897
- /* @__PURE__ */ n.jsx(st, { value: a, children: /* @__PURE__ */ n.jsx(ct, { components: s, children: /* @__PURE__ */ n.jsx(_e, { children: /* @__PURE__ */ n.jsx(qt, { value: e, children: /* @__PURE__ */ n.jsx(Be, { children: /* @__PURE__ */ n.jsx(
898
- ve,
990
+ return /* @__PURE__ */ n.jsx(rt, { client: Oe, children: /* @__PURE__ */ n.jsxs(ft, { children: [
991
+ /* @__PURE__ */ n.jsx(je, { children: r }),
992
+ /* @__PURE__ */ n.jsx(it, { value: a, children: /* @__PURE__ */ n.jsx(mt, { components: s, children: /* @__PURE__ */ n.jsx(Xe, { children: /* @__PURE__ */ n.jsx(Kt, { value: e, children: /* @__PURE__ */ n.jsx(_e, { children: /* @__PURE__ */ n.jsx(
993
+ be,
899
994
  {
900
995
  fallback: /* @__PURE__ */ n.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
901
996
  children: /* @__PURE__ */ n.jsx(
902
- zt,
997
+ Jt,
903
998
  {
904
999
  plugins: [
905
1000
  ...t.plugins ?? [],
@@ -910,13 +1005,16 @@ const Kt = (t) => {
910
1005
  }
911
1006
  ) }) }) }) }) })
912
1007
  ] }) });
913
- }, De = ge(Kt);
914
- De.displayName = "DevPortal";
915
- const as = ht, ns = Ve, rs = De, is = Le;
1008
+ }, qe = (t) => {
1009
+ const e = ye(Yt);
1010
+ return /* @__PURE__ */ n.jsx(Dt, { FallbackComponent: Ht, children: /* @__PURE__ */ n.jsx(e, { ...t }) });
1011
+ };
1012
+ qe.displayName = "DevPortal";
1013
+ const ds = pt, fs = Ge, ms = qe, ps = Ve;
916
1014
  export {
917
- ns as Callout,
918
- rs as DevPortal,
919
- is as Link,
920
- as as useMDXComponents
1015
+ fs as Callout,
1016
+ ms as DevPortal,
1017
+ ps as Link,
1018
+ ds as useMDXComponents
921
1019
  };
922
1020
  //# sourceMappingURL=zudoku.components.js.map