zudoku 0.1.1-dev.39 → 0.1.1-dev.40

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.
@@ -1,11 +1,11 @@
1
- var vt = Object.defineProperty;
2
- var Ce = (t) => {
1
+ var pt = Object.defineProperty;
2
+ var we = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var gt = (t, e, n) => e in t ? vt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var j = (t, e, n) => gt(t, typeof e != "symbol" ? e + "" : e, n), je = (t, e, n) => e.has(t) || Ce("Cannot " + n);
7
- var o = (t, e, n) => (je(t, e, "read from private field"), n ? n.call(t) : e.get(t)), M = (t, e, n) => e.has(t) ? Ce("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), P = (t, e, n, r) => (je(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
- var Y = (t, e, n, r) => ({
5
+ var vt = (t, e, n) => e in t ? pt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
+ var C = (t, e, n) => vt(t, typeof e != "symbol" ? e + "" : e, n), je = (t, e, n) => e.has(t) || we("Cannot " + n);
7
+ var o = (t, e, n) => (je(t, e, "read from private field"), n ? n.call(t) : e.get(t)), T = (t, e, n) => e.has(t) ? we("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), P = (t, e, n, r) => (je(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
8
+ var X = (t, e, n, r) => ({
9
9
  set _(s) {
10
10
  P(t, e, s, n);
11
11
  },
@@ -13,38 +13,20 @@ var Y = (t, e, n, r) => ({
13
13
  return o(t, e, r);
14
14
  }
15
15
  });
16
- import { S as Ue, h as Ge, Q as yt, n as D, m as Pe, M as xt, a as Ae, b as I, e as bt, c as St, d as Ot, f as _t, o as Ne, r as Re, g as Et, i as De, p as Me, s as wt, j as Ct, k as X, u as ye, l as a, N as fe, q as jt, t as Pt, v as W, w as xe, x as At, y as Nt, z as Rt, P as be, A as Dt, B as Mt, C as Tt, D as Lt, E as Se, F as pe, G as $e, H as It, I as ne, J as kt, K as qt, L as Qt, O as Vt, R as Ft, T as Ht, U as Kt, V as Bt, W as zt, X as Wt, Y as Ut, Z as Gt, _ as $t, $ as Xt } from "./util-DLaD2NYJ.js";
17
- import { a0 as Yn } from "./util-DLaD2NYJ.js";
18
- import * as T from "react";
19
- import k, { memo as Xe, createContext as Yt, useEffect as z, useRef as re, useState as Jt, forwardRef as Zt, Suspense as Ye, useMemo as te } from "react";
20
- const me = {}, Je = k.createContext(me);
21
- function en(t) {
22
- const e = k.useContext(Je);
23
- return k.useMemo(
24
- function() {
25
- return typeof t == "function" ? t(e) : { ...e, ...t };
26
- },
27
- [e, t]
28
- );
29
- }
30
- function tn(t) {
31
- let e;
32
- return t.disableParentContext ? e = typeof t.components == "function" ? t.components(me) : t.components || me : e = en(t.components), k.createElement(
33
- Je.Provider,
34
- { value: e },
35
- t.children
36
- );
37
- }
38
- var L, Be, nn = (Be = class extends Ue {
16
+ import { S as We, h as Ue, Q as mt, n as D, m as Ce, M as gt, a as Pe, b as I, e as yt, c as xt, d as bt, f as St, o as Ae, r as Ne, g as Ot, i as Re, p as De, s as _t, j as Et, k as $, u as ge, l as a, N as fe, q as wt, t as jt, v as z, w as ye, x as Ct, y as Pt, z as At, P as xe, A as Nt, B as Rt, C as Dt, D as Tt, E as be, F as pe, G as Ge, H as Mt, I as ne, J as Lt, K as It, L as kt, O as qt, R as Qt, T as Vt, U as Ft, V as Ht, W as Kt, X as Bt, Y as zt, Z as Wt, _ as Ut, $ as Gt, a0 as $t } from "./util-c0rdJnKP.js";
17
+ import { a1 as Gn } from "./util-c0rdJnKP.js";
18
+ import * as M from "react";
19
+ import Y, { memo as $e, createContext as Yt, useEffect as B, useRef as re, useState as Xt, forwardRef as Jt, Suspense as Ye, useMemo as te } from "react";
20
+ var L, Ke, Zt = (Ke = class extends We {
39
21
  constructor(e = {}) {
40
22
  super();
41
- M(this, L);
23
+ T(this, L);
42
24
  this.config = e, P(this, L, /* @__PURE__ */ new Map());
43
25
  }
44
26
  build(e, n, r) {
45
- const s = n.queryKey, i = n.queryHash ?? Ge(s, n);
27
+ const s = n.queryKey, i = n.queryHash ?? Ue(s, n);
46
28
  let c = this.get(i);
47
- return c || (c = new yt({
29
+ return c || (c = new mt({
48
30
  cache: this,
49
31
  queryKey: s,
50
32
  queryHash: i,
@@ -79,12 +61,12 @@ var L, Be, nn = (Be = class extends Ue {
79
61
  find(e) {
80
62
  const n = { exact: !0, ...e };
81
63
  return this.getAll().find(
82
- (r) => Pe(n, r)
64
+ (r) => Ce(n, r)
83
65
  );
84
66
  }
85
67
  findAll(e = {}) {
86
68
  const n = this.getAll();
87
- return Object.keys(e).length > 0 ? n.filter((r) => Pe(e, r)) : n;
69
+ return Object.keys(e).length > 0 ? n.filter((r) => Ce(e, r)) : n;
88
70
  }
89
71
  notify(e) {
90
72
  D.batch(() => {
@@ -107,17 +89,17 @@ var L, Be, nn = (Be = class extends Ue {
107
89
  });
108
90
  });
109
91
  }
110
- }, L = new WeakMap(), Be), R, $, ze, rn = (ze = class extends Ue {
92
+ }, L = new WeakMap(), Ke), R, G, Be, en = (Be = class extends We {
111
93
  constructor(e = {}) {
112
94
  super();
113
- M(this, R);
114
- M(this, $);
115
- this.config = e, P(this, R, /* @__PURE__ */ new Map()), P(this, $, Date.now());
95
+ T(this, R);
96
+ T(this, G);
97
+ this.config = e, P(this, R, /* @__PURE__ */ new Map()), P(this, G, Date.now());
116
98
  }
117
99
  build(e, n, r) {
118
- const s = new xt({
100
+ const s = new gt({
119
101
  mutationCache: this,
120
- mutationId: ++Y(this, $)._,
102
+ mutationId: ++X(this, G)._,
121
103
  options: e.defaultMutationOptions(n),
122
104
  state: r
123
105
  });
@@ -159,11 +141,11 @@ var L, Be, nn = (Be = class extends Ue {
159
141
  find(e) {
160
142
  const n = { exact: !0, ...e };
161
143
  return this.getAll().find(
162
- (r) => Ae(n, r)
144
+ (r) => Pe(n, r)
163
145
  );
164
146
  }
165
147
  findAll(e = {}) {
166
- return this.getAll().filter((n) => Ae(e, n));
148
+ return this.getAll().filter((n) => Pe(e, n));
167
149
  }
168
150
  notify(e) {
169
151
  D.batch(() => {
@@ -180,17 +162,17 @@ var L, Be, nn = (Be = class extends Ue {
180
162
  )
181
163
  );
182
164
  }
183
- }, R = new WeakMap(), $ = new WeakMap(), ze);
165
+ }, R = new WeakMap(), G = new WeakMap(), Be);
184
166
  function J(t) {
185
167
  var e;
186
168
  return ((e = t.options.scope) == null ? void 0 : e.id) ?? String(t.mutationId);
187
169
  }
188
- function sn(t) {
170
+ function tn(t) {
189
171
  return {
190
172
  onFetch: (e, n) => {
191
173
  const r = async () => {
192
174
  var x, y, b, A, E;
193
- const s = e.options, i = (b = (y = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : y.fetchMore) == null ? void 0 : b.direction, c = ((A = e.state.data) == null ? void 0 : A.pages) || [], v = ((E = e.state.data) == null ? void 0 : E.pageParams) || [], _ = { pages: [], pageParams: [] };
175
+ const s = e.options, i = (b = (y = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : y.fetchMore) == null ? void 0 : b.direction, c = ((A = e.state.data) == null ? void 0 : A.pages) || [], m = ((E = e.state.data) == null ? void 0 : E.pageParams) || [], _ = { pages: [], pageParams: [] };
194
176
  let g = !1;
195
177
  const l = (h) => {
196
178
  Object.defineProperty(h, "signal", {
@@ -199,37 +181,37 @@ function sn(t) {
199
181
  g = !0;
200
182
  }), e.signal)
201
183
  });
202
- }, d = bt(e.options, e.fetchOptions), f = async (h, u, S) => {
184
+ }, d = yt(e.options, e.fetchOptions), f = async (h, u, S) => {
203
185
  if (g)
204
186
  return Promise.reject();
205
187
  if (u == null && h.pages.length)
206
188
  return Promise.resolve(h);
207
- const m = {
189
+ const v = {
208
190
  queryKey: e.queryKey,
209
191
  pageParam: u,
210
192
  direction: S ? "backward" : "forward",
211
193
  meta: e.options.meta
212
194
  };
213
- l(m);
195
+ l(v);
214
196
  const w = await d(
215
- m
216
- ), { maxPages: N } = e.options, C = S ? St : Ot;
197
+ v
198
+ ), { maxPages: N } = e.options, j = S ? xt : bt;
217
199
  return {
218
- pages: C(h.pages, w, N),
219
- pageParams: C(h.pageParams, u, N)
200
+ pages: j(h.pages, w, N),
201
+ pageParams: j(h.pageParams, u, N)
220
202
  };
221
203
  };
222
204
  let p;
223
205
  if (i && c.length) {
224
- const h = i === "backward", u = h ? an : Te, S = {
206
+ const h = i === "backward", u = h ? nn : Te, S = {
225
207
  pages: c,
226
- pageParams: v
227
- }, m = u(s, S);
228
- p = await f(S, m, h);
208
+ pageParams: m
209
+ }, v = u(s, S);
210
+ p = await f(S, v, h);
229
211
  } else {
230
212
  p = await f(
231
213
  _,
232
- v[0] ?? s.initialPageParam
214
+ m[0] ?? s.initialPageParam
233
215
  );
234
216
  const h = t ?? c.length;
235
217
  for (let u = 1; u < h; u++) {
@@ -264,7 +246,7 @@ function Te(t, { pages: e, pageParams: n }) {
264
246
  n
265
247
  );
266
248
  }
267
- function an(t, { pages: e, pageParams: n }) {
249
+ function nn(t, { pages: e, pageParams: n }) {
268
250
  var r;
269
251
  return (r = t.getPreviousPageParam) == null ? void 0 : r.call(
270
252
  t,
@@ -274,34 +256,34 @@ function an(t, { pages: e, pageParams: n }) {
274
256
  n
275
257
  );
276
258
  }
277
- var O, q, Q, F, H, V, K, B, We, on = (We = class {
259
+ var O, k, q, V, F, Q, H, K, ze, rn = (ze = class {
278
260
  constructor(t = {}) {
279
- M(this, O);
280
- M(this, q);
281
- M(this, Q);
282
- M(this, F);
283
- M(this, H);
284
- M(this, V);
285
- M(this, K);
286
- M(this, B);
287
- P(this, O, t.queryCache || new nn()), P(this, q, t.mutationCache || new rn()), P(this, Q, t.defaultOptions || {}), P(this, F, /* @__PURE__ */ new Map()), P(this, H, /* @__PURE__ */ new Map()), P(this, V, 0);
261
+ T(this, O);
262
+ T(this, k);
263
+ T(this, q);
264
+ T(this, V);
265
+ T(this, F);
266
+ T(this, Q);
267
+ T(this, H);
268
+ T(this, K);
269
+ P(this, O, t.queryCache || new Zt()), P(this, k, t.mutationCache || new en()), P(this, q, t.defaultOptions || {}), P(this, V, /* @__PURE__ */ new Map()), P(this, F, /* @__PURE__ */ new Map()), P(this, Q, 0);
288
270
  }
289
271
  mount() {
290
- Y(this, V)._++, o(this, V) === 1 && (P(this, K, _t.subscribe(async (t) => {
272
+ X(this, Q)._++, o(this, Q) === 1 && (P(this, H, St.subscribe(async (t) => {
291
273
  t && (await this.resumePausedMutations(), o(this, O).onFocus());
292
- })), P(this, B, Ne.subscribe(async (t) => {
274
+ })), P(this, K, Ae.subscribe(async (t) => {
293
275
  t && (await this.resumePausedMutations(), o(this, O).onOnline());
294
276
  })));
295
277
  }
296
278
  unmount() {
297
279
  var t, e;
298
- Y(this, V)._--, o(this, V) === 0 && ((t = o(this, K)) == null || t.call(this), P(this, K, void 0), (e = o(this, B)) == null || e.call(this), P(this, B, void 0));
280
+ X(this, Q)._--, o(this, Q) === 0 && ((t = o(this, H)) == null || t.call(this), P(this, H, void 0), (e = o(this, K)) == null || e.call(this), P(this, K, void 0));
299
281
  }
300
282
  isFetching(t) {
301
283
  return o(this, O).findAll({ ...t, fetchStatus: "fetching" }).length;
302
284
  }
303
285
  isMutating(t) {
304
- return o(this, q).findAll({ ...t, status: "pending" }).length;
286
+ return o(this, k).findAll({ ...t, status: "pending" }).length;
305
287
  }
306
288
  getQueryData(t) {
307
289
  var n;
@@ -314,7 +296,7 @@ var O, q, Q, F, H, V, K, B, We, on = (We = class {
314
296
  return this.fetchQuery(t);
315
297
  {
316
298
  const n = this.defaultQueryOptions(t), r = o(this, O).build(this, n);
317
- return t.revalidateIfStale && r.isStaleByTime(Re(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
299
+ return t.revalidateIfStale && r.isStaleByTime(Ne(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(e);
318
300
  }
319
301
  }
320
302
  getQueriesData(t) {
@@ -326,7 +308,7 @@ var O, q, Q, F, H, V, K, B, We, on = (We = class {
326
308
  setQueryData(t, e, n) {
327
309
  const r = this.defaultQueryOptions({ queryKey: t }), s = o(this, O).get(
328
310
  r.queryHash
329
- ), i = s == null ? void 0 : s.state.data, c = Et(e, i);
311
+ ), i = s == null ? void 0 : s.state.data, c = Ot(e, i);
330
312
  if (c !== void 0)
331
313
  return o(this, O).build(this, r).setData(c, { ...n, manual: !0 });
332
314
  }
@@ -396,86 +378,86 @@ var O, q, Q, F, H, V, K, B, We, on = (We = class {
396
378
  e.retry === void 0 && (e.retry = !1);
397
379
  const n = o(this, O).build(this, e);
398
380
  return n.isStaleByTime(
399
- Re(e.staleTime, n)
381
+ Ne(e.staleTime, n)
400
382
  ) ? n.fetch(e) : Promise.resolve(n.state.data);
401
383
  }
402
384
  prefetchQuery(t) {
403
385
  return this.fetchQuery(t).then(I).catch(I);
404
386
  }
405
387
  fetchInfiniteQuery(t) {
406
- return t.behavior = sn(t.pages), this.fetchQuery(t);
388
+ return t.behavior = tn(t.pages), this.fetchQuery(t);
407
389
  }
408
390
  prefetchInfiniteQuery(t) {
409
391
  return this.fetchInfiniteQuery(t).then(I).catch(I);
410
392
  }
411
393
  resumePausedMutations() {
412
- return Ne.isOnline() ? o(this, q).resumePausedMutations() : Promise.resolve();
394
+ return Ae.isOnline() ? o(this, k).resumePausedMutations() : Promise.resolve();
413
395
  }
414
396
  getQueryCache() {
415
397
  return o(this, O);
416
398
  }
417
399
  getMutationCache() {
418
- return o(this, q);
400
+ return o(this, k);
419
401
  }
420
402
  getDefaultOptions() {
421
- return o(this, Q);
403
+ return o(this, q);
422
404
  }
423
405
  setDefaultOptions(t) {
424
- P(this, Q, t);
406
+ P(this, q, t);
425
407
  }
426
408
  setQueryDefaults(t, e) {
427
- o(this, F).set(De(t), {
409
+ o(this, V).set(Re(t), {
428
410
  queryKey: t,
429
411
  defaultOptions: e
430
412
  });
431
413
  }
432
414
  getQueryDefaults(t) {
433
- const e = [...o(this, F).values()];
415
+ const e = [...o(this, V).values()];
434
416
  let n = {};
435
417
  return e.forEach((r) => {
436
- Me(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
418
+ De(t, r.queryKey) && (n = { ...n, ...r.defaultOptions });
437
419
  }), n;
438
420
  }
439
421
  setMutationDefaults(t, e) {
440
- o(this, H).set(De(t), {
422
+ o(this, F).set(Re(t), {
441
423
  mutationKey: t,
442
424
  defaultOptions: e
443
425
  });
444
426
  }
445
427
  getMutationDefaults(t) {
446
- const e = [...o(this, H).values()];
428
+ const e = [...o(this, F).values()];
447
429
  let n = {};
448
430
  return e.forEach((r) => {
449
- Me(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
431
+ De(t, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
450
432
  }), n;
451
433
  }
452
434
  defaultQueryOptions(t) {
453
435
  if (t._defaulted)
454
436
  return t;
455
437
  const e = {
456
- ...o(this, Q).queries,
438
+ ...o(this, q).queries,
457
439
  ...this.getQueryDefaults(t.queryKey),
458
440
  ...t,
459
441
  _defaulted: !0
460
442
  };
461
- return e.queryHash || (e.queryHash = Ge(
443
+ return e.queryHash || (e.queryHash = Ue(
462
444
  e.queryKey,
463
445
  e
464
- )), 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 === wt && (e.enabled = !1), e;
446
+ )), 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 === _t && (e.enabled = !1), e;
465
447
  }
466
448
  defaultMutationOptions(t) {
467
449
  return t != null && t._defaulted ? t : {
468
- ...o(this, Q).mutations,
450
+ ...o(this, q).mutations,
469
451
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
470
452
  ...t,
471
453
  _defaulted: !0
472
454
  };
473
455
  }
474
456
  clear() {
475
- o(this, O).clear(), o(this, q).clear();
457
+ o(this, O).clear(), o(this, k).clear();
476
458
  }
477
- }, O = new WeakMap(), q = new WeakMap(), Q = new WeakMap(), F = new WeakMap(), H = new WeakMap(), V = new WeakMap(), K = new WeakMap(), B = new WeakMap(), We), cn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
478
- const Le = (t) => {
459
+ }, O = new WeakMap(), k = new WeakMap(), q = new WeakMap(), V = new WeakMap(), F = new WeakMap(), Q = new WeakMap(), H = new WeakMap(), K = new WeakMap(), ze), sn = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
460
+ const Me = (t) => {
479
461
  let e;
480
462
  const n = /* @__PURE__ */ new Set(), r = (l, d) => {
481
463
  const f = typeof l == "function" ? l(e) : l;
@@ -484,12 +466,12 @@ const Le = (t) => {
484
466
  e = d ?? (typeof f != "object" || f === null) ? f : Object.assign({}, e, f), n.forEach((x) => x(e, p));
485
467
  }
486
468
  }, s = () => e, _ = { setState: r, getState: s, getInitialState: () => g, subscribe: (l) => (n.add(l), () => n.delete(l)), destroy: () => {
487
- (cn ? "production" : void 0) !== "production" && console.warn(
469
+ (sn ? "production" : void 0) !== "production" && console.warn(
488
470
  "[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
489
471
  ), n.clear();
490
472
  } }, g = e = t(r, s, _);
491
473
  return _;
492
- }, ln = (t) => t ? Le(t) : Le;
474
+ }, an = (t) => t ? Me(t) : Me;
493
475
  var ve = { exports: {} }, le = {}, Z = { exports: {} }, ue = {};
494
476
  /**
495
477
  * @license React
@@ -500,16 +482,16 @@ var ve = { exports: {} }, le = {}, Z = { exports: {} }, ue = {};
500
482
  * This source code is licensed under the MIT license found in the
501
483
  * LICENSE file in the root directory of this source tree.
502
484
  */
503
- var Ie;
504
- function un() {
505
- if (Ie) return ue;
506
- Ie = 1;
507
- var t = k;
485
+ var Le;
486
+ function on() {
487
+ if (Le) return ue;
488
+ Le = 1;
489
+ var t = Y;
508
490
  function e(d, f) {
509
491
  return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
510
492
  }
511
493
  var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, s = t.useEffect, i = t.useLayoutEffect, c = t.useDebugValue;
512
- function v(d, f) {
494
+ function m(d, f) {
513
495
  var p = f(), x = r({ inst: { value: p, getSnapshot: f } }), y = x[0].inst, b = x[1];
514
496
  return i(function() {
515
497
  y.value = p, y.getSnapshot = f, _(y) && b({ inst: y });
@@ -532,7 +514,7 @@ function un() {
532
514
  function g(d, f) {
533
515
  return f();
534
516
  }
535
- var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? g : v;
517
+ var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? g : m;
536
518
  return ue.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : l, ue;
537
519
  }
538
520
  var de = {};
@@ -545,24 +527,24 @@ var de = {};
545
527
  * This source code is licensed under the MIT license found in the
546
528
  * LICENSE file in the root directory of this source tree.
547
529
  */
548
- var ke;
549
- function dn() {
550
- return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
530
+ var Ie;
531
+ function cn() {
532
+ return Ie || (Ie = 1, process.env.NODE_ENV !== "production" && function() {
551
533
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
552
- var t = k, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
534
+ var t = Y, e = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
553
535
  function n(h) {
554
536
  {
555
- for (var u = arguments.length, S = new Array(u > 1 ? u - 1 : 0), m = 1; m < u; m++)
556
- S[m - 1] = arguments[m];
537
+ for (var u = arguments.length, S = new Array(u > 1 ? u - 1 : 0), v = 1; v < u; v++)
538
+ S[v - 1] = arguments[v];
557
539
  r("error", h, S);
558
540
  }
559
541
  }
560
542
  function r(h, u, S) {
561
543
  {
562
- var m = e.ReactDebugCurrentFrame, w = m.getStackAddendum();
544
+ var v = e.ReactDebugCurrentFrame, w = v.getStackAddendum();
563
545
  w !== "" && (u += "%s", S = S.concat([w]));
564
- var N = S.map(function(C) {
565
- return String(C);
546
+ var N = S.map(function(j) {
547
+ return String(j);
566
548
  });
567
549
  N.unshift("Warning: " + u), Function.prototype.apply.call(console[h], console, N);
568
550
  }
@@ -570,41 +552,41 @@ function dn() {
570
552
  function s(h, u) {
571
553
  return h === u && (h !== 0 || 1 / h === 1 / u) || h !== h && u !== u;
572
554
  }
573
- var i = typeof Object.is == "function" ? Object.is : s, c = t.useState, v = t.useEffect, _ = t.useLayoutEffect, g = t.useDebugValue, l = !1, d = !1;
555
+ var i = typeof Object.is == "function" ? Object.is : s, c = t.useState, m = t.useEffect, _ = t.useLayoutEffect, g = t.useDebugValue, l = !1, d = !1;
574
556
  function f(h, u, S) {
575
557
  l || t.startTransition !== void 0 && (l = !0, n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
576
- var m = u();
558
+ var v = u();
577
559
  if (!d) {
578
560
  var w = u();
579
- i(m, w) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
561
+ i(v, w) || (n("The result of getSnapshot should be cached to avoid an infinite loop"), d = !0);
580
562
  }
581
563
  var N = c({
582
564
  inst: {
583
- value: m,
565
+ value: v,
584
566
  getSnapshot: u
585
567
  }
586
- }), C = N[0].inst, U = N[1];
568
+ }), j = N[0].inst, W = N[1];
587
569
  return _(function() {
588
- C.value = m, C.getSnapshot = u, p(C) && U({
589
- inst: C
570
+ j.value = v, j.getSnapshot = u, p(j) && W({
571
+ inst: j
590
572
  });
591
- }, [h, m, u]), v(function() {
592
- p(C) && U({
593
- inst: C
573
+ }, [h, v, u]), m(function() {
574
+ p(j) && W({
575
+ inst: j
594
576
  });
595
577
  var se = function() {
596
- p(C) && U({
597
- inst: C
578
+ p(j) && W({
579
+ inst: j
598
580
  });
599
581
  };
600
582
  return h(se);
601
- }, [h]), g(m), m;
583
+ }, [h]), g(v), v;
602
584
  }
603
585
  function p(h) {
604
586
  var u = h.getSnapshot, S = h.value;
605
587
  try {
606
- var m = u();
607
- return !i(S, m);
588
+ var v = u();
589
+ return !i(S, v);
608
590
  } catch {
609
591
  return !0;
610
592
  }
@@ -616,9 +598,9 @@ function dn() {
616
598
  de.useSyncExternalStore = E, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
617
599
  }()), de;
618
600
  }
619
- var qe;
620
- function Ze() {
621
- return qe || (qe = 1, process.env.NODE_ENV === "production" ? Z.exports = un() : Z.exports = dn()), Z.exports;
601
+ var ke;
602
+ function Xe() {
603
+ return ke || (ke = 1, process.env.NODE_ENV === "production" ? Z.exports = on() : Z.exports = cn()), Z.exports;
622
604
  }
623
605
  /**
624
606
  * @license React
@@ -629,33 +611,33 @@ function Ze() {
629
611
  * This source code is licensed under the MIT license found in the
630
612
  * LICENSE file in the root directory of this source tree.
631
613
  */
632
- var Qe;
633
- function hn() {
634
- if (Qe) return le;
635
- Qe = 1;
636
- var t = k, e = Ze();
614
+ var qe;
615
+ function ln() {
616
+ if (qe) return le;
617
+ qe = 1;
618
+ var t = Y, e = Xe();
637
619
  function n(g, l) {
638
620
  return g === l && (g !== 0 || 1 / g === 1 / l) || g !== g && l !== l;
639
621
  }
640
- var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, i = t.useRef, c = t.useEffect, v = t.useMemo, _ = t.useDebugValue;
622
+ var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, i = t.useRef, c = t.useEffect, m = t.useMemo, _ = t.useDebugValue;
641
623
  return le.useSyncExternalStoreWithSelector = function(g, l, d, f, p) {
642
624
  var x = i(null);
643
625
  if (x.current === null) {
644
626
  var y = { hasValue: !1, value: null };
645
627
  x.current = y;
646
628
  } else y = x.current;
647
- x = v(function() {
648
- function A(m) {
629
+ x = m(function() {
630
+ function A(v) {
649
631
  if (!E) {
650
- if (E = !0, h = m, m = f(m), p !== void 0 && y.hasValue) {
632
+ if (E = !0, h = v, v = f(v), p !== void 0 && y.hasValue) {
651
633
  var w = y.value;
652
- if (p(w, m)) return u = w;
634
+ if (p(w, v)) return u = w;
653
635
  }
654
- return u = m;
636
+ return u = v;
655
637
  }
656
- if (w = u, r(h, m)) return w;
657
- var N = f(m);
658
- return p !== void 0 && p(w, N) ? w : (h = m, u = N);
638
+ if (w = u, r(h, v)) return w;
639
+ var N = f(v);
640
+ return p !== void 0 && p(w, N) ? w : (h = v, u = N);
659
641
  }
660
642
  var E = !1, h, u, S = d === void 0 ? null : d;
661
643
  return [function() {
@@ -680,26 +662,26 @@ var he = {};
680
662
  * This source code is licensed under the MIT license found in the
681
663
  * LICENSE file in the root directory of this source tree.
682
664
  */
683
- var Ve;
684
- function fn() {
685
- return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
665
+ var Qe;
666
+ function un() {
667
+ return Qe || (Qe = 1, process.env.NODE_ENV !== "production" && function() {
686
668
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
687
- var t = k, e = Ze();
669
+ var t = Y, e = Xe();
688
670
  function n(l, d) {
689
671
  return l === d && (l !== 0 || 1 / l === 1 / d) || l !== l && d !== d;
690
672
  }
691
- var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, i = t.useRef, c = t.useEffect, v = t.useMemo, _ = t.useDebugValue;
673
+ var r = typeof Object.is == "function" ? Object.is : n, s = e.useSyncExternalStore, i = t.useRef, c = t.useEffect, m = t.useMemo, _ = t.useDebugValue;
692
674
  function g(l, d, f, p, x) {
693
675
  var y = i(null), b;
694
676
  y.current === null ? (b = {
695
677
  hasValue: !1,
696
678
  value: null
697
679
  }, y.current = b) : b = y.current;
698
- var A = v(function() {
699
- var S = !1, m, w, N = function(G) {
680
+ var A = m(function() {
681
+ var S = !1, v, w, N = function(U) {
700
682
  if (!S) {
701
- S = !0, m = G;
702
- var ae = p(G);
683
+ S = !0, v = U;
684
+ var ae = p(U);
703
685
  if (x !== void 0 && b.hasValue) {
704
686
  var ie = b.value;
705
687
  if (x(ie, ae))
@@ -707,17 +689,17 @@ function fn() {
707
689
  }
708
690
  return w = ae, ae;
709
691
  }
710
- var mt = m, oe = w;
711
- if (r(mt, G))
692
+ var ft = v, oe = w;
693
+ if (r(ft, U))
712
694
  return oe;
713
- var ce = p(G);
714
- return x !== void 0 && x(oe, ce) ? oe : (m = G, w = ce, ce);
715
- }, C = f === void 0 ? null : f, U = function() {
695
+ var ce = p(U);
696
+ return x !== void 0 && x(oe, ce) ? oe : (v = U, w = ce, ce);
697
+ }, j = f === void 0 ? null : f, W = function() {
716
698
  return N(d());
717
- }, se = C === null ? void 0 : function() {
718
- return N(C());
699
+ }, se = j === null ? void 0 : function() {
700
+ return N(j());
719
701
  };
720
- return [U, se];
702
+ return [W, se];
721
703
  }, [d, f, p, x]), E = A[0], h = A[1], u = s(l, E, h);
722
704
  return c(function() {
723
705
  b.hasValue = !0, b.value = u;
@@ -726,71 +708,71 @@ function fn() {
726
708
  he.useSyncExternalStoreWithSelector = g, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
727
709
  }()), he;
728
710
  }
729
- process.env.NODE_ENV === "production" ? ve.exports = hn() : ve.exports = fn();
730
- var pn = ve.exports;
731
- const mn = /* @__PURE__ */ Ct(pn);
732
- var et = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
733
- const { useDebugValue: vn } = k, { useSyncExternalStoreWithSelector: gn } = mn;
734
- let Fe = !1;
735
- const yn = (t) => t;
736
- function xn(t, e = yn, n) {
737
- (et ? "production" : void 0) !== "production" && n && !Fe && (console.warn(
711
+ process.env.NODE_ENV === "production" ? ve.exports = ln() : ve.exports = un();
712
+ var dn = ve.exports;
713
+ const hn = /* @__PURE__ */ Et(dn);
714
+ var Je = { BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
715
+ const { useDebugValue: fn } = Y, { useSyncExternalStoreWithSelector: pn } = hn;
716
+ let Ve = !1;
717
+ const vn = (t) => t;
718
+ function mn(t, e = vn, n) {
719
+ (Je ? "production" : void 0) !== "production" && n && !Ve && (console.warn(
738
720
  "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
739
- ), Fe = !0);
740
- const r = gn(
721
+ ), Ve = !0);
722
+ const r = pn(
741
723
  t.subscribe,
742
724
  t.getState,
743
725
  t.getServerState || t.getInitialState,
744
726
  e,
745
727
  n
746
728
  );
747
- return vn(r), r;
729
+ return fn(r), r;
748
730
  }
749
- const He = (t) => {
750
- (et ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
731
+ const Fe = (t) => {
732
+ (Je ? "production" : void 0) !== "production" && typeof t != "function" && console.warn(
751
733
  "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
752
734
  );
753
- const e = typeof t == "function" ? ln(t) : t, n = (r, s) => xn(e, r, s);
735
+ const e = typeof t == "function" ? an(t) : t, n = (r, s) => mn(e, r, s);
754
736
  return Object.assign(n, e), n;
755
- }, bn = (t) => t ? He(t) : He, tt = (t) => "getRoutes" in t && typeof t.getRoutes == "function", Sn = (t) => "initialize" in t && typeof t.initialize == "function", On = (t) => "getIdentities" in t && typeof t.getIdentities == "function", nt = new on(), ge = bn(
737
+ }, gn = (t) => t ? Fe(t) : Fe, Ze = (t) => "getRoutes" in t && typeof t.getRoutes == "function", yn = (t) => "initialize" in t && typeof t.initialize == "function", xn = (t) => "getIdentities" in t && typeof t.getIdentities == "function", et = new rn(), me = gn(
756
738
  () => ({
757
739
  isLoggedIn: !1
758
740
  })
759
741
  );
760
- class _n {
742
+ class bn {
761
743
  constructor(e) {
762
- j(this, "plugins", []);
763
- j(this, "navigationPlugins");
764
- j(this, "navigation");
765
- j(this, "meta");
766
- j(this, "authentication");
767
- j(this, "state");
768
- j(this, "initialize", async () => {
744
+ C(this, "plugins", []);
745
+ C(this, "navigationPlugins");
746
+ C(this, "navigation");
747
+ C(this, "meta");
748
+ C(this, "authentication");
749
+ C(this, "state");
750
+ C(this, "initialize", async () => {
769
751
  var e;
770
- this.plugins.filter(Sn).forEach((n) => n.initialize(this)), (e = this.authentication) == null || e.initialize(this);
752
+ this.plugins.filter(yn).forEach((n) => n.initialize(this)), (e = this.authentication) == null || e.initialize(this);
771
753
  });
772
- j(this, "setUserProfile", async (e) => ge.setState(e));
773
- j(this, "invalidateCache", async (e) => {
774
- nt.invalidateQueries({ queryKey: e });
754
+ C(this, "setUserProfile", async (e) => me.setState(e));
755
+ C(this, "invalidateCache", async (e) => {
756
+ et.invalidateQueries({ queryKey: e });
775
757
  });
776
- j(this, "getApiIdentities", async () => (await Promise.all(
777
- this.plugins.filter(On).map((n) => n.getIdentities(this))
758
+ C(this, "getApiIdentities", async () => (await Promise.all(
759
+ this.plugins.filter(xn).map((n) => n.getIdentities(this))
778
760
  )).flat());
779
- j(this, "login", async () => {
761
+ C(this, "login", async () => {
780
762
  if (!this.authentication)
781
763
  throw new Error("No authentication configured");
782
764
  return this.authentication.login(this);
783
765
  });
784
- j(this, "logout", async () => {
766
+ C(this, "logout", async () => {
785
767
  if (!this.authentication)
786
768
  throw new Error("No authentication configured");
787
769
  return this.authentication.signOut(this);
788
770
  });
789
- j(this, "handleAuthenticationResponse", async (e) => {
771
+ C(this, "handleAuthenticationResponse", async (e) => {
790
772
  var n, r;
791
773
  (r = (n = this.config.authentication) == null ? void 0 : n.handleAuthenticationResponse) == null || r.call(n, e, this);
792
774
  });
793
- j(this, "getNavigation", async (e) => (await Promise.all(
775
+ C(this, "getNavigation", async (e) => (await Promise.all(
794
776
  this.navigationPlugins.map(
795
777
  async (r) => {
796
778
  var s;
@@ -798,13 +780,13 @@ class _n {
798
780
  }
799
781
  )
800
782
  )).flatMap((r) => r ?? []));
801
- j(this, "sessionStorage", {
783
+ C(this, "sessionStorage", {
802
784
  get: async (e) => localStorage.getItem(`session-${e}`) ?? "",
803
785
  setProfile: async () => {
804
786
  },
805
787
  set: async (e, n) => localStorage.setItem(`session-${e}`, n)
806
788
  });
807
- this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(tt), this.authentication = e.authentication, this.meta = e.meta, this.state = ge;
789
+ this.config = e, this.plugins = e.plugins ?? [], this.navigation = e.navigation, this.navigationPlugins = this.plugins.filter(Ze), this.authentication = e.authentication, this.meta = e.meta, this.state = me;
808
790
  }
809
791
  }
810
792
  /**
@@ -813,7 +795,7 @@ class _n {
813
795
  * This source code is licensed under the ISC license.
814
796
  * See the LICENSE file in the root directory of this source tree.
815
797
  */
816
- const rt = X("ChevronRight", [
798
+ const tt = $("ChevronRight", [
817
799
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
818
800
  ]);
819
801
  /**
@@ -822,7 +804,7 @@ const rt = X("ChevronRight", [
822
804
  * This source code is licensed under the ISC license.
823
805
  * See the LICENSE file in the root directory of this source tree.
824
806
  */
825
- const En = X("ExternalLink", [
807
+ const Sn = $("ExternalLink", [
826
808
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
827
809
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
828
810
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
@@ -833,7 +815,7 @@ const En = X("ExternalLink", [
833
815
  * This source code is licensed under the ISC license.
834
816
  * See the LICENSE file in the root directory of this source tree.
835
817
  */
836
- const wn = X("MoonStar", [
818
+ const On = $("MoonStar", [
837
819
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9", key: "4ay0iu" }],
838
820
  ["path", { d: "M20 3v4", key: "1olli1" }],
839
821
  ["path", { d: "M22 5h-4", key: "1gvqau" }]
@@ -844,7 +826,7 @@ const wn = X("MoonStar", [
844
826
  * This source code is licensed under the ISC license.
845
827
  * See the LICENSE file in the root directory of this source tree.
846
828
  */
847
- const Cn = X("Search", [
829
+ const _n = $("Search", [
848
830
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
849
831
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
850
832
  ]);
@@ -854,7 +836,7 @@ const Cn = X("Search", [
854
836
  * This source code is licensed under the ISC license.
855
837
  * See the LICENSE file in the root directory of this source tree.
856
838
  */
857
- const jn = X("Sun", [
839
+ const En = $("Sun", [
858
840
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
859
841
  ["path", { d: "M12 2v2", key: "tus03m" }],
860
842
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -864,12 +846,12 @@ const jn = X("Sun", [
864
846
  ["path", { d: "M20 12h2", key: "1q8mjw" }],
865
847
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
866
848
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
867
- ]), Pn = () => {
868
- const { navigation: t } = ye();
849
+ ]), wn = () => {
850
+ const { navigation: t } = ge();
869
851
  return /* @__PURE__ */ a.jsx("nav", { className: "border-b border-border text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.map((e) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
870
852
  fe,
871
853
  {
872
- className: ({ isActive: n }) => jt(
854
+ className: ({ isActive: n }) => wt(
873
855
  "block py-3.5 font-medium -mb-px border-b-2",
874
856
  n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
875
857
  ),
@@ -877,8 +859,8 @@ const jn = X("Sun", [
877
859
  children: e.label
878
860
  }
879
861
  ) }, e.label)) }) });
880
- }, st = Xe(() => {
881
- const [t, e] = Pt(), { isLoggedIn: n, email: r } = ge(), { login: s, logout: i, meta: c } = ye(), v = t ? wn : jn;
862
+ }, nt = $e(() => {
863
+ const [t, e] = jt(), { isLoggedIn: n, email: r } = me(), { login: s, logout: i, meta: c } = ge(), m = t ? On : En;
882
864
  return /* @__PURE__ */ a.jsx("header", { className: "fixed top-0 w-full z-10 bg-background/80 backdrop-blur", children: /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
883
865
  /* @__PURE__ */ a.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: [
884
866
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
@@ -888,7 +870,7 @@ const jn = X("Sun", [
888
870
  /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
889
871
  /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-prose", children: /* @__PURE__ */ a.jsxs("button", { className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-40 sm:w-72", children: [
890
872
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
891
- /* @__PURE__ */ a.jsx(Cn, { size: 14 }),
873
+ /* @__PURE__ */ a.jsx(_n, { size: 14 }),
892
874
  "Search"
893
875
  ] }),
894
876
  /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border border-border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
@@ -917,19 +899,19 @@ const jn = X("Sun", [
917
899
  {
918
900
  className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
919
901
  onClick: e,
920
- children: /* @__PURE__ */ a.jsx(v, { size: 18 })
902
+ children: /* @__PURE__ */ a.jsx(m, { size: 18 })
921
903
  }
922
904
  )
923
905
  ] })
924
906
  ] })
925
907
  ] }),
926
- /* @__PURE__ */ a.jsx(Pn, {})
908
+ /* @__PURE__ */ a.jsx(wn, {})
927
909
  ] }) });
928
- }), at = {
929
- Header: st
930
- }, An = Yt(at), Nn = An.Provider, Rn = () => {
931
- const t = W(), { setActiveAnchor: e } = xe();
932
- z(() => {
910
+ }), rt = {
911
+ Header: nt
912
+ }, jn = Yt(rt), Cn = jn.Provider, Pn = () => {
913
+ const t = z(), { setActiveAnchor: e } = ye();
914
+ B(() => {
933
915
  if (!t.hash) return;
934
916
  const n = t.hash.split("/")[0].slice(1), r = document.getElementById(decodeURIComponent(n));
935
917
  if (r) {
@@ -939,18 +921,18 @@ const jn = X("Sun", [
939
921
  return;
940
922
  }
941
923
  const s = new MutationObserver((i, c) => {
942
- const v = document.getElementById(decodeURIComponent(n));
943
- v && (v.scrollIntoView(), requestIdleCallback(() => e(n)), c.disconnect());
924
+ const m = document.getElementById(decodeURIComponent(n));
925
+ m && (m.scrollIntoView(), requestIdleCallback(() => e(n)), c.disconnect());
944
926
  });
945
927
  return s.observe(document.body, { childList: !0, subtree: !0 }), () => s.disconnect();
946
928
  }, [t.hash, e]);
947
- }, Dn = () => {
948
- const t = W(), e = re(t.pathname);
949
- z(() => {
929
+ }, An = () => {
930
+ const t = z(), e = re(t.pathname);
931
+ B(() => {
950
932
  e.current !== t.pathname && (window.scrollTo(0, 0), e.current = t.pathname);
951
933
  }, [t.pathname]);
952
934
  };
953
- var Oe = "Collapsible", [Mn, Gn] = At(Oe), [Tn, _e] = Mn(Oe), it = T.forwardRef(
935
+ var Se = "Collapsible", [Nn, zn] = Ct(Se), [Rn, Oe] = Nn(Se), st = M.forwardRef(
954
936
  (t, e) => {
955
937
  const {
956
938
  __scopeCollapsible: n,
@@ -958,26 +940,26 @@ var Oe = "Collapsible", [Mn, Gn] = At(Oe), [Tn, _e] = Mn(Oe), it = T.forwardRef(
958
940
  defaultOpen: s,
959
941
  disabled: i,
960
942
  onOpenChange: c,
961
- ...v
962
- } = t, [_ = !1, g] = Nt({
943
+ ...m
944
+ } = t, [_ = !1, g] = Pt({
963
945
  prop: r,
964
946
  defaultProp: s,
965
947
  onChange: c
966
948
  });
967
949
  return /* @__PURE__ */ a.jsx(
968
- Tn,
950
+ Rn,
969
951
  {
970
952
  scope: n,
971
953
  disabled: i,
972
- contentId: Rt(),
954
+ contentId: At(),
973
955
  open: _,
974
- onOpenToggle: T.useCallback(() => g((l) => !l), [g]),
956
+ onOpenToggle: M.useCallback(() => g((l) => !l), [g]),
975
957
  children: /* @__PURE__ */ a.jsx(
976
- be.div,
958
+ xe.div,
977
959
  {
978
- "data-state": we(_),
960
+ "data-state": Ee(_),
979
961
  "data-disabled": i ? "" : void 0,
980
- ...v,
962
+ ...m,
981
963
  ref: e
982
964
  }
983
965
  )
@@ -985,40 +967,40 @@ var Oe = "Collapsible", [Mn, Gn] = At(Oe), [Tn, _e] = Mn(Oe), it = T.forwardRef(
985
967
  );
986
968
  }
987
969
  );
988
- it.displayName = Oe;
989
- var ot = "CollapsibleTrigger", ct = T.forwardRef(
970
+ st.displayName = Se;
971
+ var at = "CollapsibleTrigger", it = M.forwardRef(
990
972
  (t, e) => {
991
- const { __scopeCollapsible: n, ...r } = t, s = _e(ot, n);
973
+ const { __scopeCollapsible: n, ...r } = t, s = Oe(at, n);
992
974
  return /* @__PURE__ */ a.jsx(
993
- be.button,
975
+ xe.button,
994
976
  {
995
977
  type: "button",
996
978
  "aria-controls": s.contentId,
997
979
  "aria-expanded": s.open || !1,
998
- "data-state": we(s.open),
980
+ "data-state": Ee(s.open),
999
981
  "data-disabled": s.disabled ? "" : void 0,
1000
982
  disabled: s.disabled,
1001
983
  ...r,
1002
984
  ref: e,
1003
- onClick: Dt(t.onClick, s.onOpenToggle)
985
+ onClick: Nt(t.onClick, s.onOpenToggle)
1004
986
  }
1005
987
  );
1006
988
  }
1007
989
  );
1008
- ct.displayName = ot;
1009
- var Ee = "CollapsibleContent", lt = T.forwardRef(
990
+ it.displayName = at;
991
+ var _e = "CollapsibleContent", ot = M.forwardRef(
1010
992
  (t, e) => {
1011
- const { forceMount: n, ...r } = t, s = _e(Ee, t.__scopeCollapsible);
1012
- return /* @__PURE__ */ a.jsx(Mt, { present: n || s.open, children: ({ present: i }) => /* @__PURE__ */ a.jsx(Ln, { ...r, ref: e, present: i }) });
993
+ const { forceMount: n, ...r } = t, s = Oe(_e, t.__scopeCollapsible);
994
+ return /* @__PURE__ */ a.jsx(Rt, { present: n || s.open, children: ({ present: i }) => /* @__PURE__ */ a.jsx(Dn, { ...r, ref: e, present: i }) });
1013
995
  }
1014
996
  );
1015
- lt.displayName = Ee;
1016
- var Ln = T.forwardRef((t, e) => {
1017
- const { __scopeCollapsible: n, present: r, children: s, ...i } = t, c = _e(Ee, n), [v, _] = T.useState(r), g = T.useRef(null), l = Tt(e, g), d = T.useRef(0), f = d.current, p = T.useRef(0), x = p.current, y = c.open || v, b = T.useRef(y), A = T.useRef();
1018
- return T.useEffect(() => {
997
+ ot.displayName = _e;
998
+ var Dn = M.forwardRef((t, e) => {
999
+ const { __scopeCollapsible: n, present: r, children: s, ...i } = t, c = Oe(_e, n), [m, _] = M.useState(r), g = M.useRef(null), l = Dt(e, g), d = M.useRef(0), f = d.current, p = M.useRef(0), x = p.current, y = c.open || m, b = M.useRef(y), A = M.useRef();
1000
+ return M.useEffect(() => {
1019
1001
  const E = requestAnimationFrame(() => b.current = !1);
1020
1002
  return () => cancelAnimationFrame(E);
1021
- }, []), Lt(() => {
1003
+ }, []), Tt(() => {
1022
1004
  const E = g.current;
1023
1005
  if (E) {
1024
1006
  A.current = A.current || {
@@ -1029,9 +1011,9 @@ var Ln = T.forwardRef((t, e) => {
1029
1011
  d.current = h.height, p.current = h.width, b.current || (E.style.transitionDuration = A.current.transitionDuration, E.style.animationName = A.current.animationName), _(r);
1030
1012
  }
1031
1013
  }, [c.open, r]), /* @__PURE__ */ a.jsx(
1032
- be.div,
1014
+ xe.div,
1033
1015
  {
1034
- "data-state": we(c.open),
1016
+ "data-state": Ee(c.open),
1035
1017
  "data-disabled": c.disabled ? "" : void 0,
1036
1018
  id: c.contentId,
1037
1019
  hidden: !y,
@@ -1046,23 +1028,23 @@ var Ln = T.forwardRef((t, e) => {
1046
1028
  }
1047
1029
  );
1048
1030
  });
1049
- function we(t) {
1031
+ function Ee(t) {
1050
1032
  return t ? "open" : "closed";
1051
1033
  }
1052
- var ut = it, dt = ct, ht = lt;
1053
- function In(t) {
1034
+ var ct = st, lt = it, ut = ot;
1035
+ function Tn(t) {
1054
1036
  return !0;
1055
1037
  }
1056
- const kn = (t) => /* @__PURE__ */ a.jsx("div", {}), ft = ({
1038
+ const Mn = (t) => /* @__PURE__ */ a.jsx("div", {}), dt = ({
1057
1039
  item: t,
1058
1040
  defaultOpen: e,
1059
1041
  path: n
1060
1042
  }) => {
1061
- const [r, s] = Jt(e), i = W(), c = re(i.pathname);
1062
- return z(() => {
1063
- !r && c.current !== i.pathname && s(Se(t, i.pathname, n)), c.current = i.pathname;
1043
+ const [r, s] = Xt(e), i = z(), c = re(i.pathname);
1044
+ return B(() => {
1045
+ !r && c.current !== i.pathname && s(be(t, i.pathname, n)), c.current = i.pathname;
1064
1046
  }, [r, t, n, i.pathname]), [r, s];
1065
- }, ee = qt(
1047
+ }, ee = It(
1066
1048
  "flex px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
1067
1049
  {
1068
1050
  variants: {
@@ -1076,19 +1058,19 @@ const kn = (t) => /* @__PURE__ */ a.jsx("div", {}), ft = ({
1076
1058
  }
1077
1059
  }
1078
1060
  }
1079
- ), qn = "data-anchor", pt = ({
1061
+ ), Ln = "data-anchor", ht = ({
1080
1062
  category: t,
1081
1063
  item: e,
1082
1064
  activeAnchor: n,
1083
1065
  currentTopNavItem: r,
1084
1066
  basePath: s = ""
1085
1067
  }) => {
1086
- const i = pe(e) ? $e(s, e.path) : "", c = W(), [v, _] = ft({
1068
+ const i = pe(e) ? Ge(s, e.path) : "", c = z(), [m, _] = dt({
1087
1069
  item: e,
1088
1070
  path: i,
1089
- defaultOpen: () => Se(e, c.pathname, i)
1071
+ defaultOpen: () => be(e, c.pathname, i)
1090
1072
  });
1091
- if (It(e)) {
1073
+ if (Mt(e)) {
1092
1074
  const l = ne(
1093
1075
  "flex items-center gap-2",
1094
1076
  ee({
@@ -1104,18 +1086,18 @@ const kn = (t) => /* @__PURE__ */ a.jsx("div", {}), ft = ({
1104
1086
  rel: "noopener noreferrer",
1105
1087
  children: [
1106
1088
  e.label,
1107
- /* @__PURE__ */ a.jsx(En, { size: 14 })
1089
+ /* @__PURE__ */ a.jsx(Sn, { size: 14 })
1108
1090
  ]
1109
1091
  }
1110
1092
  ) : /* @__PURE__ */ a.jsx(fe, { className: l, to: e.href, children: e.label });
1111
1093
  }
1112
1094
  const g = /* @__PURE__ */ a.jsxs("div", { className: "flex justify-between w-full", children: [
1113
1095
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 truncate w-full", children: [
1114
- In(e.icon) && /* @__PURE__ */ a.jsx(kn, { name: e.icon, size: 16 }),
1096
+ Tn(e.icon) && /* @__PURE__ */ a.jsx(Mn, { name: e.icon, size: 16 }),
1115
1097
  typeof e.label != "string" ? e.label : /* @__PURE__ */ a.jsx("span", { className: "truncate", children: e.label })
1116
1098
  ] }),
1117
1099
  e.children && /* @__PURE__ */ a.jsx(
1118
- rt,
1100
+ tt,
1119
1101
  {
1120
1102
  size: 16,
1121
1103
  className: "transition shrink-0 group-data-[state=open]:rotate-90"
@@ -1123,14 +1105,14 @@ const kn = (t) => /* @__PURE__ */ a.jsx("div", {}), ft = ({
1123
1105
  )
1124
1106
  ] });
1125
1107
  return /* @__PURE__ */ a.jsx("li", { title: typeof e.label == "string" ? e.label : e.title, children: e.children ? /* @__PURE__ */ a.jsxs(
1126
- ut,
1108
+ ct,
1127
1109
  {
1128
- open: v,
1110
+ open: m,
1129
1111
  onOpenChange: () => _((l) => !l),
1130
1112
  className: "flex flex-col",
1131
1113
  children: [
1132
1114
  /* @__PURE__ */ a.jsx(
1133
- dt,
1115
+ lt,
1134
1116
  {
1135
1117
  className: ne(
1136
1118
  "group text-start",
@@ -1139,8 +1121,8 @@ const kn = (t) => /* @__PURE__ */ a.jsx("div", {}), ft = ({
1139
1121
  children: g
1140
1122
  }
1141
1123
  ),
1142
- /* @__PURE__ */ a.jsx(ht, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((l) => /* @__PURE__ */ a.jsx(
1143
- pt,
1124
+ /* @__PURE__ */ a.jsx(ut, { className: "CollapsibleContent ms-[calc(var(--padding-nav-item)*1.125)]", children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-border border-l ps-1.5", children: e.children.map((l) => /* @__PURE__ */ a.jsx(
1125
+ ht,
1144
1126
  {
1145
1127
  category: t,
1146
1128
  item: l,
@@ -1153,10 +1135,10 @@ const kn = (t) => /* @__PURE__ */ a.jsx("div", {}), ft = ({
1153
1135
  ]
1154
1136
  }
1155
1137
  ) : e.path.startsWith("#") ? /* @__PURE__ */ a.jsx(
1156
- kt,
1138
+ Lt,
1157
1139
  {
1158
1140
  to: e.path,
1159
- [qn]: e.path,
1141
+ [Ln]: e.path,
1160
1142
  className: ee({
1161
1143
  isActive: e.path.slice(1) === n,
1162
1144
  isMuted: e.muted
@@ -1171,21 +1153,21 @@ const kn = (t) => /* @__PURE__ */ a.jsx("div", {}), ft = ({
1171
1153
  children: g
1172
1154
  }
1173
1155
  ) });
1174
- }, Qn = ({
1156
+ }, In = ({
1175
1157
  category: t
1176
1158
  }) => {
1177
- const { activeAnchor: e } = xe(), n = Qt(), r = W(), s = t.collapsible ?? !0, [i, c] = ft({
1159
+ const { activeAnchor: e } = ye(), n = kt(), r = z(), s = t.collapsible ?? !0, [i, c] = dt({
1178
1160
  item: t,
1179
1161
  path: (n == null ? void 0 : n.path) ?? "",
1180
- defaultOpen: () => !s || t.expanded || Se(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
1162
+ defaultOpen: () => !s || t.expanded || be(t, r.pathname, (n == null ? void 0 : n.path) ?? "")
1181
1163
  });
1182
1164
  return /* @__PURE__ */ a.jsxs(
1183
- ut,
1165
+ ct,
1184
1166
  {
1185
1167
  open: i,
1186
- onOpenChange: () => c((v) => !v),
1168
+ onOpenChange: () => c((m) => !m),
1187
1169
  children: [
1188
- t.label.length > 0 ? /* @__PURE__ */ a.jsx(dt, { asChild: s, disabled: !s, children: /* @__PURE__ */ a.jsxs(
1170
+ t.label.length > 0 ? /* @__PURE__ */ a.jsx(lt, { asChild: s, disabled: !s, children: /* @__PURE__ */ a.jsxs(
1189
1171
  "h5",
1190
1172
  {
1191
1173
  className: ne(
@@ -1195,7 +1177,7 @@ const kn = (t) => /* @__PURE__ */ a.jsx("div", {}), ft = ({
1195
1177
  children: [
1196
1178
  t.label,
1197
1179
  s && /* @__PURE__ */ a.jsx(
1198
- rt,
1180
+ tt,
1199
1181
  {
1200
1182
  className: "group-data-[state=open]:rotate-90 transition",
1201
1183
  size: 16
@@ -1204,22 +1186,22 @@ const kn = (t) => /* @__PURE__ */ a.jsx("div", {}), ft = ({
1204
1186
  ]
1205
1187
  }
1206
1188
  ) }) : "Endpoints",
1207
- /* @__PURE__ */ a.jsx(ht, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ a.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((v) => /* @__PURE__ */ a.jsx(
1208
- pt,
1189
+ /* @__PURE__ */ a.jsx(ut, { className: "CollapsibleContent -mx-[--padding-nav-item]", children: /* @__PURE__ */ a.jsx("ul", { className: "space-y-0.5 mt-1.5 mb-4 ms-3", children: t.children.map((m) => /* @__PURE__ */ a.jsx(
1190
+ ht,
1209
1191
  {
1210
1192
  category: t,
1211
- item: v,
1193
+ item: m,
1212
1194
  activeAnchor: e,
1213
1195
  currentTopNavItem: n,
1214
- basePath: $e(n == null ? void 0 : n.path, t.path)
1196
+ basePath: Ge(n == null ? void 0 : n.path, t.path)
1215
1197
  },
1216
- pe(v) ? v.path + v.label : v.href
1198
+ pe(m) ? m.path + m.label : m.href
1217
1199
  )) }) })
1218
1200
  ]
1219
1201
  },
1220
1202
  t.label
1221
1203
  );
1222
- }, Vn = Zt(({ children: t, className: e, data: n }, r) => /* @__PURE__ */ a.jsx(
1204
+ }, kn = Jt(({ children: t, className: e, data: n }, r) => /* @__PURE__ */ a.jsx(
1223
1205
  "nav",
1224
1206
  {
1225
1207
  "data-navigation": n,
@@ -1230,33 +1212,33 @@ const kn = (t) => /* @__PURE__ */ a.jsx("div", {}), ft = ({
1230
1212
  ref: r,
1231
1213
  children: t
1232
1214
  }
1233
- )), Fn = () => {
1234
- const t = re(null), e = Vt();
1215
+ )), qn = () => {
1216
+ const t = re(null), e = qt();
1235
1217
  return /* @__PURE__ */ a.jsx(
1236
- Vn,
1218
+ kn,
1237
1219
  {
1238
1220
  ref: t,
1239
1221
  data: e.data.items.length > 0 ? "true" : "false",
1240
- children: e.data.items.map((n) => /* @__PURE__ */ a.jsx(Qn, { category: n }, n.label))
1222
+ children: e.data.items.map((n) => /* @__PURE__ */ a.jsx(In, { category: n }, n.label))
1241
1223
  }
1242
1224
  );
1243
- }, Ke = ({ children: t }) => {
1244
- const e = W(), { setActiveAnchor: n } = xe(), { meta: r, handleAuthenticationResponse: s } = ye();
1245
- z(() => {
1225
+ }, He = ({ children: t }) => {
1226
+ const e = z(), { setActiveAnchor: n } = ye(), { meta: r, handleAuthenticationResponse: s } = ge();
1227
+ B(() => {
1246
1228
  s(e);
1247
- }, [s, e]), Rn(), Dn();
1229
+ }, [s, e]), Pn(), An();
1248
1230
  const i = re(e.pathname);
1249
- return z(() => {
1231
+ return B(() => {
1250
1232
  e.pathname !== i.current && n(""), i.current = e.pathname;
1251
1233
  }, [e.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1252
- /* @__PURE__ */ a.jsxs(Ft, { titleTemplate: r == null ? void 0 : r.pageTitle, children: [
1234
+ /* @__PURE__ */ a.jsxs(Qt, { titleTemplate: r == null ? void 0 : r.pageTitle, children: [
1253
1235
  /* @__PURE__ */ a.jsx("title", { children: "Home" }),
1254
1236
  (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
1255
1237
  (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
1256
1238
  ] }),
1257
- /* @__PURE__ */ a.jsx(st, {}),
1239
+ /* @__PURE__ */ a.jsx(nt, {}),
1258
1240
  /* @__PURE__ */ a.jsx("div", { className: "max-w-screen-2xl mx-auto pt-[--header-height] px-10 lg:px-12", children: /* @__PURE__ */ a.jsxs(Ye, { fallback: /* @__PURE__ */ a.jsx("div", {}), children: [
1259
- /* @__PURE__ */ a.jsx(Fn, {}),
1241
+ /* @__PURE__ */ a.jsx(qn, {}),
1260
1242
  /* @__PURE__ */ a.jsx(
1261
1243
  "main",
1262
1244
  {
@@ -1264,49 +1246,49 @@ const kn = (t) => /* @__PURE__ */ a.jsx("div", {}), ft = ({
1264
1246
  lg:overflow-visible
1265
1247
  lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]
1266
1248
  lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] peer-data-[navigation=true]:pl-12`,
1267
- children: t ?? /* @__PURE__ */ a.jsx(Ht, {})
1249
+ children: t ?? /* @__PURE__ */ a.jsx(Vt, {})
1268
1250
  }
1269
1251
  )
1270
1252
  ] }) })
1271
1253
  ] });
1272
1254
  };
1273
- function Hn({ plugins: t }) {
1255
+ function Qn({ plugins: t }) {
1274
1256
  const e = te(() => {
1275
1257
  const n = (t ?? []).flatMap(
1276
- (r) => tt(r) ? r.getRoutes() : []
1258
+ (r) => Ze(r) ? r.getRoutes() : []
1277
1259
  );
1278
- return Kt([
1260
+ return Ft([
1279
1261
  {
1280
1262
  path: "/",
1281
- element: /* @__PURE__ */ a.jsx(Ke, {}),
1282
- errorElement: /* @__PURE__ */ a.jsx(Ke, { children: /* @__PURE__ */ a.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
1263
+ element: /* @__PURE__ */ a.jsx(He, {}),
1264
+ errorElement: /* @__PURE__ */ a.jsx(He, { children: /* @__PURE__ */ a.jsx("div", { className: "h-[75vh] flex items-center justify-center", children: "Error, look at the console" }) }),
1283
1265
  children: n
1284
1266
  }
1285
1267
  ]);
1286
1268
  }, [t]);
1287
- return /* @__PURE__ */ a.jsx(Bt, { router: e });
1269
+ return /* @__PURE__ */ a.jsx(Ht, { router: e });
1288
1270
  }
1289
- const Kn = (t) => {
1271
+ const Vn = (t) => {
1290
1272
  const e = te(
1291
- () => ({ ...at, ...t.overrides }),
1273
+ () => ({ ...rt, ...t.overrides }),
1292
1274
  [t.overrides]
1293
1275
  ), n = te(
1294
- () => ({ ...zt, ...t.mdxComponents }),
1276
+ () => ({ ...Kt, ...t.mdxComponents }),
1295
1277
  [t.mdxComponents]
1296
- ), r = te(() => new _n(t), [t]);
1297
- return z(() => {
1278
+ ), r = te(() => new bn(t), [t]);
1279
+ return B(() => {
1298
1280
  r.initialize();
1299
- }, [r]), /* @__PURE__ */ a.jsx(Wt, { client: nt, children: /* @__PURE__ */ a.jsx(Ut, { children: /* @__PURE__ */ a.jsx(Gt, { value: r, children: /* @__PURE__ */ a.jsx(tn, { components: n, children: /* @__PURE__ */ a.jsx($t, { children: /* @__PURE__ */ a.jsx(Nn, { value: e, children: /* @__PURE__ */ a.jsx(Xt, { children: /* @__PURE__ */ a.jsx(
1281
+ }, [r]), /* @__PURE__ */ a.jsx(Bt, { client: et, children: /* @__PURE__ */ a.jsx(zt, { children: /* @__PURE__ */ a.jsx(Wt, { value: r, children: /* @__PURE__ */ a.jsx(Ut, { components: n, children: /* @__PURE__ */ a.jsx(Gt, { children: /* @__PURE__ */ a.jsx(Cn, { value: e, children: /* @__PURE__ */ a.jsx($t, { children: /* @__PURE__ */ a.jsx(
1300
1282
  Ye,
1301
1283
  {
1302
1284
  fallback: /* @__PURE__ */ a.jsx("div", { className: "grid place-items-center h-full", children: "Loading..." }),
1303
- children: /* @__PURE__ */ a.jsx(Hn, { plugins: t.plugins })
1285
+ children: /* @__PURE__ */ a.jsx(Qn, { plugins: t.plugins })
1304
1286
  }
1305
1287
  ) }) }) }) }) }) }) });
1306
- }, Bn = Xe(Kn);
1307
- Bn.displayName = "DevPortal";
1288
+ }, Fn = $e(Vn);
1289
+ Fn.displayName = "DevPortal";
1308
1290
  export {
1309
- Bn as DevPortal,
1310
- kn as DynamicIcon,
1311
- Yn as Link
1291
+ Fn as DevPortal,
1292
+ Mn as DynamicIcon,
1293
+ Gn as Link
1312
1294
  };