zudoku 0.37.0 → 0.37.1
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.
- package/dist/lib/components/Zudoku.js +3 -2
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +7 -5
- package/dist/vite/api/schema-codegen.d.ts +1 -1
- package/dist/vite/api/schema-codegen.js +8 -4
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/plugin-api.js +1 -1
- package/dist/vite/plugin-api.js.map +1 -1
- package/lib/zudoku.components.js +237 -235
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugins.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/components/Zudoku.tsx +5 -2
- package/src/lib/core/plugins.ts +8 -8
package/lib/zudoku.components.js
CHANGED
|
@@ -3,8 +3,8 @@ var ye = (t) => {
|
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
5
|
var dt = (t, e, s) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
6
|
-
var
|
|
7
|
-
var l = (t, e, s) => (ve(t, e, "read from private field"), s ? s.call(t) : e.get(t)),
|
|
6
|
+
var j = (t, e, s) => dt(t, typeof e != "symbol" ? e + "" : e, s), ve = (t, e, s) => e.has(t) || ye("Cannot " + s);
|
|
7
|
+
var l = (t, e, s) => (ve(t, e, "read from private field"), s ? s.call(t) : e.get(t)), w = (t, e, s) => e.has(t) ? ye("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), v = (t, e, s, n) => (ve(t, e, "write to private field"), n ? n.call(t, s) : e.set(t, s), s);
|
|
8
8
|
var W = (t, e, s, n) => ({
|
|
9
9
|
set _(a) {
|
|
10
10
|
v(t, e, a, s);
|
|
@@ -13,12 +13,12 @@ var W = (t, e, s, n) => ({
|
|
|
13
13
|
return l(t, e, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { a as Fe, H as
|
|
16
|
+
import { a as Fe, H as le, M as ht, u as ft } from "./index.esm-CltAN0Tf.js";
|
|
17
17
|
import { z as ze, J as mt } from "./index-DwT-v3zK.js";
|
|
18
|
-
import { a as gt, u as
|
|
19
|
-
import { e as
|
|
18
|
+
import { a as gt, u as se, m as pt, O as ce, R as xt, S as yt, g as ue, h as vt, L as de } from "./chunk-HA7DTUK3-ZGg2W6yV.js";
|
|
19
|
+
import { e as $, a as O, f as Be, t as bt, j as jt, b as wt, Z as Pt, g as Ct, C as Nt } from "./hook-DzQC8PzJ.js";
|
|
20
20
|
import { j as r } from "./jsx-runtime-CYK1ROHF.js";
|
|
21
|
-
import { S as He, i as Le, l as Dt, n as
|
|
21
|
+
import { S as He, i as Le, l as Dt, n as P, m as be, o as je, p as T, q as kt, r as St, t as Et, v as Ot, w as we, x as Pe, y as Mt, h as Ce, z as Ne, e as At, u as Ke, d as Tt, A as $e, j as V } from "./joinUrl-BjDooT-T.js";
|
|
22
22
|
import { D as qt, a as It, c as Qt, b as Rt, d as Ft } from "./Dialog-sbgekbjb.js";
|
|
23
23
|
import { Z as zt } from "./invariant-Caa8-XvF.js";
|
|
24
24
|
import { u as Bt, o as Ht } from "./objectEntries-BS7aAgOm.js";
|
|
@@ -26,15 +26,15 @@ import { E as Ue, S as D, a as Lt, R as Kt } from "./SlotletProvider-D8OBnr77.js
|
|
|
26
26
|
import { Button as $t } from "./ui/Button.js";
|
|
27
27
|
import { Callout as Ut } from "./ui/Callout.js";
|
|
28
28
|
import { M as Zt } from "./mutation-_Z5C2wFZ.js";
|
|
29
|
-
import * as
|
|
30
|
-
import Yt, { createContext as he, StrictMode as Ze, useRef as fe, useEffect as
|
|
29
|
+
import * as I from "react";
|
|
30
|
+
import Yt, { createContext as he, StrictMode as Ze, useRef as fe, useEffect as Z, useState as U, useCallback as Xt, Suspense as me, memo as Ye, Component as Vt, createElement as De, useMemo as re, useContext as _t } from "react";
|
|
31
31
|
import * as Gt from "react-dom";
|
|
32
32
|
import { C as ge } from "./ClientOnly-E7hGysn1.js";
|
|
33
33
|
import { s as Wt, S as ke, a as Jt, H as es, P as ts, b as ss, V as rs, M as ns } from "./Markdown-DT5Rrq8_.js";
|
|
34
|
-
import { B as
|
|
34
|
+
import { B as ie } from "./Button-Fp19CMUr.js";
|
|
35
35
|
import { c as E } from "./cn-qaFjX9_3.js";
|
|
36
36
|
import { isSearchPlugin as as, isProfileMenuPlugin as is, isNavigationPlugin as os, isEventConsumerPlugin as ls, needsInitialization as cs, isApiIdentityPlugin as us, isMdxProviderPlugin as ds, hasHead as hs } from "./zudoku.plugins.js";
|
|
37
|
-
import { DropdownMenu as fs, DropdownMenuTrigger as ms, DropdownMenuContent as gs, DropdownMenuLabel as ps, DropdownMenuSeparator as
|
|
37
|
+
import { DropdownMenu as fs, DropdownMenuTrigger as ms, DropdownMenuContent as gs, DropdownMenuLabel as ps, DropdownMenuSeparator as ne, DropdownMenuSub as xs, DropdownMenuSubTrigger as ys, DropdownMenuPortal as vs, DropdownMenuSubContent as bs, DropdownMenuItem as js } from "./ui/DropdownMenu.js";
|
|
38
38
|
import { CircleXIcon as ws, SearchIcon as Ps, SunIcon as Cs, MoonIcon as Ns, MenuIcon as Ds, PanelLeftIcon as ks } from "lucide-react";
|
|
39
39
|
import { VisuallyHidden as Xe } from "@radix-ui/react-visually-hidden";
|
|
40
40
|
import { D as Ss, a as Es, b as Ve, c as _e, d as M } from "./Drawer-kDAfOq_2.js";
|
|
@@ -44,20 +44,20 @@ import { C as Ms } from "./CategoryHeading-DpB47wvk.js";
|
|
|
44
44
|
var S, Ie, As = (Ie = class extends He {
|
|
45
45
|
constructor(e = {}) {
|
|
46
46
|
super();
|
|
47
|
-
|
|
47
|
+
w(this, S);
|
|
48
48
|
this.config = e, v(this, S, /* @__PURE__ */ new Map());
|
|
49
49
|
}
|
|
50
50
|
build(e, s, n) {
|
|
51
|
-
const a = s.queryKey,
|
|
52
|
-
let
|
|
53
|
-
return
|
|
51
|
+
const a = s.queryKey, o = s.queryHash ?? Le(a, s);
|
|
52
|
+
let i = this.get(o);
|
|
53
|
+
return i || (i = new Dt({
|
|
54
54
|
client: e,
|
|
55
55
|
queryKey: a,
|
|
56
|
-
queryHash:
|
|
56
|
+
queryHash: o,
|
|
57
57
|
options: e.defaultQueryOptions(s),
|
|
58
58
|
state: n,
|
|
59
59
|
defaultOptions: e.getQueryDefaults(a)
|
|
60
|
-
}), this.add(
|
|
60
|
+
}), this.add(i)), i;
|
|
61
61
|
}
|
|
62
62
|
add(e) {
|
|
63
63
|
l(this, S).has(e.queryHash) || (l(this, S).set(e.queryHash, e), this.notify({
|
|
@@ -70,7 +70,7 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
70
70
|
s && (e.destroy(), s === e && l(this, S).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
71
71
|
}
|
|
72
72
|
clear() {
|
|
73
|
-
|
|
73
|
+
P.batch(() => {
|
|
74
74
|
this.getAll().forEach((e) => {
|
|
75
75
|
this.remove(e);
|
|
76
76
|
});
|
|
@@ -93,33 +93,33 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
93
93
|
return Object.keys(e).length > 0 ? s.filter((n) => be(e, n)) : s;
|
|
94
94
|
}
|
|
95
95
|
notify(e) {
|
|
96
|
-
|
|
96
|
+
P.batch(() => {
|
|
97
97
|
this.listeners.forEach((s) => {
|
|
98
98
|
s(e);
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
onFocus() {
|
|
103
|
-
|
|
103
|
+
P.batch(() => {
|
|
104
104
|
this.getAll().forEach((e) => {
|
|
105
105
|
e.onFocus();
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
onOnline() {
|
|
110
|
-
|
|
110
|
+
P.batch(() => {
|
|
111
111
|
this.getAll().forEach((e) => {
|
|
112
112
|
e.onOnline();
|
|
113
113
|
});
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
}, S = new WeakMap(), Ie),
|
|
116
|
+
}, S = new WeakMap(), Ie), q, N, _, Qe, Ts = (Qe = class extends He {
|
|
117
117
|
constructor(e = {}) {
|
|
118
118
|
super();
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
this.config = e, v(this,
|
|
119
|
+
w(this, q);
|
|
120
|
+
w(this, N);
|
|
121
|
+
w(this, _);
|
|
122
|
+
this.config = e, v(this, q, /* @__PURE__ */ new Set()), v(this, N, /* @__PURE__ */ new Map()), v(this, _, 0);
|
|
123
123
|
}
|
|
124
124
|
build(e, s, n) {
|
|
125
125
|
const a = new Zt({
|
|
@@ -131,7 +131,7 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
131
131
|
return this.add(a), a;
|
|
132
132
|
}
|
|
133
133
|
add(e) {
|
|
134
|
-
l(this,
|
|
134
|
+
l(this, q).add(e);
|
|
135
135
|
const s = J(e);
|
|
136
136
|
if (typeof s == "string") {
|
|
137
137
|
const n = l(this, N).get(s);
|
|
@@ -140,7 +140,7 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
140
140
|
this.notify({ type: "added", mutation: e });
|
|
141
141
|
}
|
|
142
142
|
remove(e) {
|
|
143
|
-
if (l(this,
|
|
143
|
+
if (l(this, q).delete(e)) {
|
|
144
144
|
const s = J(e);
|
|
145
145
|
if (typeof s == "string") {
|
|
146
146
|
const n = l(this, N).get(s);
|
|
@@ -157,7 +157,7 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
157
157
|
const s = J(e);
|
|
158
158
|
if (typeof s == "string") {
|
|
159
159
|
const n = l(this, N).get(s), a = n == null ? void 0 : n.find(
|
|
160
|
-
(
|
|
160
|
+
(o) => o.state.status === "pending"
|
|
161
161
|
);
|
|
162
162
|
return !a || a === e;
|
|
163
163
|
} else
|
|
@@ -167,20 +167,20 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
167
167
|
var n;
|
|
168
168
|
const s = J(e);
|
|
169
169
|
if (typeof s == "string") {
|
|
170
|
-
const a = (n = l(this, N).get(s)) == null ? void 0 : n.find((
|
|
170
|
+
const a = (n = l(this, N).get(s)) == null ? void 0 : n.find((o) => o !== e && o.state.isPaused);
|
|
171
171
|
return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
|
|
172
172
|
} else
|
|
173
173
|
return Promise.resolve();
|
|
174
174
|
}
|
|
175
175
|
clear() {
|
|
176
|
-
|
|
177
|
-
l(this,
|
|
176
|
+
P.batch(() => {
|
|
177
|
+
l(this, q).forEach((e) => {
|
|
178
178
|
this.notify({ type: "removed", mutation: e });
|
|
179
|
-
}), l(this,
|
|
179
|
+
}), l(this, q).clear(), l(this, N).clear();
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
getAll() {
|
|
183
|
-
return Array.from(l(this,
|
|
183
|
+
return Array.from(l(this, q));
|
|
184
184
|
}
|
|
185
185
|
find(e) {
|
|
186
186
|
const s = { exact: !0, ...e };
|
|
@@ -192,7 +192,7 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
192
192
|
return this.getAll().filter((s) => je(e, s));
|
|
193
193
|
}
|
|
194
194
|
notify(e) {
|
|
195
|
-
|
|
195
|
+
P.batch(() => {
|
|
196
196
|
this.listeners.forEach((s) => {
|
|
197
197
|
s(e);
|
|
198
198
|
});
|
|
@@ -200,13 +200,13 @@ var S, Ie, As = (Ie = class extends He {
|
|
|
200
200
|
}
|
|
201
201
|
resumePausedMutations() {
|
|
202
202
|
const e = this.getAll().filter((s) => s.state.isPaused);
|
|
203
|
-
return
|
|
203
|
+
return P.batch(
|
|
204
204
|
() => Promise.all(
|
|
205
|
-
e.map((s) => s.continue().catch(
|
|
205
|
+
e.map((s) => s.continue().catch(T))
|
|
206
206
|
)
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
|
-
},
|
|
209
|
+
}, q = new WeakMap(), N = new WeakMap(), _ = new WeakMap(), Qe);
|
|
210
210
|
function J(t) {
|
|
211
211
|
var e;
|
|
212
212
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
@@ -214,23 +214,23 @@ function J(t) {
|
|
|
214
214
|
function Se(t) {
|
|
215
215
|
return {
|
|
216
216
|
onFetch: (e, s) => {
|
|
217
|
-
var x, f, h, p,
|
|
218
|
-
const n = e.options, a = (h = (f = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction,
|
|
217
|
+
var x, f, h, p, C;
|
|
218
|
+
const n = e.options, a = (h = (f = (x = e.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : h.direction, o = ((p = e.state.data) == null ? void 0 : p.pages) || [], i = ((C = e.state.data) == null ? void 0 : C.pageParams) || [];
|
|
219
219
|
let u = { pages: [], pageParams: [] }, d = 0;
|
|
220
220
|
const c = async () => {
|
|
221
221
|
let m = !1;
|
|
222
|
-
const
|
|
223
|
-
Object.defineProperty(
|
|
222
|
+
const y = (b) => {
|
|
223
|
+
Object.defineProperty(b, "signal", {
|
|
224
224
|
enumerable: !0,
|
|
225
225
|
get: () => (e.signal.aborted ? m = !0 : e.signal.addEventListener("abort", () => {
|
|
226
226
|
m = !0;
|
|
227
227
|
}), e.signal)
|
|
228
228
|
});
|
|
229
|
-
},
|
|
229
|
+
}, A = kt(e.options, e.fetchOptions), z = async (b, k, Y) => {
|
|
230
230
|
if (m)
|
|
231
231
|
return Promise.reject();
|
|
232
|
-
if (k == null &&
|
|
233
|
-
return Promise.resolve(
|
|
232
|
+
if (k == null && b.pages.length)
|
|
233
|
+
return Promise.resolve(b);
|
|
234
234
|
const G = {
|
|
235
235
|
client: e.client,
|
|
236
236
|
queryKey: e.queryKey,
|
|
@@ -238,35 +238,35 @@ function Se(t) {
|
|
|
238
238
|
direction: Y ? "backward" : "forward",
|
|
239
239
|
meta: e.options.meta
|
|
240
240
|
};
|
|
241
|
-
|
|
242
|
-
const ct = await
|
|
241
|
+
y(G);
|
|
242
|
+
const ct = await A(
|
|
243
243
|
G
|
|
244
244
|
), { maxPages: pe } = e.options, xe = Y ? St : Et;
|
|
245
245
|
return {
|
|
246
|
-
pages: xe(
|
|
247
|
-
pageParams: xe(
|
|
246
|
+
pages: xe(b.pages, ct, pe),
|
|
247
|
+
pageParams: xe(b.pageParams, k, pe)
|
|
248
248
|
};
|
|
249
249
|
};
|
|
250
|
-
if (a &&
|
|
251
|
-
const
|
|
252
|
-
pages:
|
|
253
|
-
pageParams:
|
|
250
|
+
if (a && o.length) {
|
|
251
|
+
const b = a === "backward", k = b ? qs : Ee, Y = {
|
|
252
|
+
pages: o,
|
|
253
|
+
pageParams: i
|
|
254
254
|
}, G = k(n, Y);
|
|
255
|
-
u = await
|
|
255
|
+
u = await z(Y, G, b);
|
|
256
256
|
} else {
|
|
257
|
-
const
|
|
257
|
+
const b = t ?? o.length;
|
|
258
258
|
do {
|
|
259
|
-
const k = d === 0 ?
|
|
259
|
+
const k = d === 0 ? i[0] ?? n.initialPageParam : Ee(n, u);
|
|
260
260
|
if (d > 0 && k == null)
|
|
261
261
|
break;
|
|
262
|
-
u = await
|
|
263
|
-
} while (d <
|
|
262
|
+
u = await z(u, k), d++;
|
|
263
|
+
} while (d < b);
|
|
264
264
|
}
|
|
265
265
|
return u;
|
|
266
266
|
};
|
|
267
267
|
e.options.persister ? e.fetchFn = () => {
|
|
268
|
-
var m,
|
|
269
|
-
return (
|
|
268
|
+
var m, y;
|
|
269
|
+
return (y = (m = e.options).persister) == null ? void 0 : y.call(
|
|
270
270
|
m,
|
|
271
271
|
c,
|
|
272
272
|
{
|
|
@@ -294,34 +294,34 @@ function qs(t, { pages: e, pageParams: s }) {
|
|
|
294
294
|
var n;
|
|
295
295
|
return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, s[0], s) : void 0;
|
|
296
296
|
}
|
|
297
|
-
var g,
|
|
297
|
+
var g, Q, R, B, H, F, L, K, Re, Is = (Re = class {
|
|
298
298
|
constructor(t = {}) {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
v(this, g, t.queryCache || new As()), v(this,
|
|
299
|
+
w(this, g);
|
|
300
|
+
w(this, Q);
|
|
301
|
+
w(this, R);
|
|
302
|
+
w(this, B);
|
|
303
|
+
w(this, H);
|
|
304
|
+
w(this, F);
|
|
305
|
+
w(this, L);
|
|
306
|
+
w(this, K);
|
|
307
|
+
v(this, g, t.queryCache || new As()), v(this, Q, t.mutationCache || new Ts()), v(this, R, t.defaultOptions || {}), v(this, B, /* @__PURE__ */ new Map()), v(this, H, /* @__PURE__ */ new Map()), v(this, F, 0);
|
|
308
308
|
}
|
|
309
309
|
mount() {
|
|
310
|
-
W(this,
|
|
310
|
+
W(this, F)._++, l(this, F) === 1 && (v(this, L, Ot.subscribe(async (t) => {
|
|
311
311
|
t && (await this.resumePausedMutations(), l(this, g).onFocus());
|
|
312
|
-
})), v(this,
|
|
312
|
+
})), v(this, K, we.subscribe(async (t) => {
|
|
313
313
|
t && (await this.resumePausedMutations(), l(this, g).onOnline());
|
|
314
314
|
})));
|
|
315
315
|
}
|
|
316
316
|
unmount() {
|
|
317
317
|
var t, e;
|
|
318
|
-
W(this,
|
|
318
|
+
W(this, F)._--, l(this, F) === 0 && ((t = l(this, L)) == null || t.call(this), v(this, L, void 0), (e = l(this, K)) == null || e.call(this), v(this, K, void 0));
|
|
319
319
|
}
|
|
320
320
|
isFetching(t) {
|
|
321
321
|
return l(this, g).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
322
322
|
}
|
|
323
323
|
isMutating(t) {
|
|
324
|
-
return l(this,
|
|
324
|
+
return l(this, Q).findAll({ ...t, status: "pending" }).length;
|
|
325
325
|
}
|
|
326
326
|
getQueryData(t) {
|
|
327
327
|
var s;
|
|
@@ -341,12 +341,12 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
|
|
|
341
341
|
setQueryData(t, e, s) {
|
|
342
342
|
const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, g).get(
|
|
343
343
|
n.queryHash
|
|
344
|
-
),
|
|
345
|
-
if (
|
|
346
|
-
return l(this, g).build(this, n).setData(
|
|
344
|
+
), o = a == null ? void 0 : a.state.data, i = Mt(e, o);
|
|
345
|
+
if (i !== void 0)
|
|
346
|
+
return l(this, g).build(this, n).setData(i, { ...s, manual: !0 });
|
|
347
347
|
}
|
|
348
348
|
setQueriesData(t, e, s) {
|
|
349
|
-
return
|
|
349
|
+
return P.batch(
|
|
350
350
|
() => l(this, g).findAll(t).map(({ queryKey: n }) => [
|
|
351
351
|
n,
|
|
352
352
|
this.setQueryData(n, e, s)
|
|
@@ -362,7 +362,7 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
|
|
|
362
362
|
}
|
|
363
363
|
removeQueries(t) {
|
|
364
364
|
const e = l(this, g);
|
|
365
|
-
|
|
365
|
+
P.batch(() => {
|
|
366
366
|
e.findAll(t).forEach((s) => {
|
|
367
367
|
e.remove(s);
|
|
368
368
|
});
|
|
@@ -373,18 +373,18 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
|
|
|
373
373
|
type: "active",
|
|
374
374
|
...t
|
|
375
375
|
};
|
|
376
|
-
return
|
|
376
|
+
return P.batch(() => (s.findAll(t).forEach((a) => {
|
|
377
377
|
a.reset();
|
|
378
378
|
}), this.refetchQueries(n, e)));
|
|
379
379
|
}
|
|
380
380
|
cancelQueries(t, e = {}) {
|
|
381
|
-
const s = { revert: !0, ...e }, n =
|
|
381
|
+
const s = { revert: !0, ...e }, n = P.batch(
|
|
382
382
|
() => l(this, g).findAll(t).map((a) => a.cancel(s))
|
|
383
383
|
);
|
|
384
|
-
return Promise.all(n).then(
|
|
384
|
+
return Promise.all(n).then(T).catch(T);
|
|
385
385
|
}
|
|
386
386
|
invalidateQueries(t, e = {}) {
|
|
387
|
-
return
|
|
387
|
+
return P.batch(() => {
|
|
388
388
|
if (l(this, g).findAll(t).forEach((n) => {
|
|
389
389
|
n.invalidate();
|
|
390
390
|
}), (t == null ? void 0 : t.refetchType) === "none")
|
|
@@ -400,13 +400,13 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
|
|
|
400
400
|
const s = {
|
|
401
401
|
...e,
|
|
402
402
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
403
|
-
}, n =
|
|
403
|
+
}, n = P.batch(
|
|
404
404
|
() => l(this, g).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
|
|
405
|
-
let
|
|
406
|
-
return s.throwOnError || (
|
|
405
|
+
let o = a.fetch(void 0, s);
|
|
406
|
+
return s.throwOnError || (o = o.catch(T)), a.state.fetchStatus === "paused" ? Promise.resolve() : o;
|
|
407
407
|
})
|
|
408
408
|
);
|
|
409
|
-
return Promise.all(n).then(
|
|
409
|
+
return Promise.all(n).then(T);
|
|
410
410
|
}
|
|
411
411
|
fetchQuery(t) {
|
|
412
412
|
const e = this.defaultQueryOptions(t);
|
|
@@ -417,52 +417,52 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
|
|
|
417
417
|
) ? s.fetch(e) : Promise.resolve(s.state.data);
|
|
418
418
|
}
|
|
419
419
|
prefetchQuery(t) {
|
|
420
|
-
return this.fetchQuery(t).then(
|
|
420
|
+
return this.fetchQuery(t).then(T).catch(T);
|
|
421
421
|
}
|
|
422
422
|
fetchInfiniteQuery(t) {
|
|
423
423
|
return t.behavior = Se(t.pages), this.fetchQuery(t);
|
|
424
424
|
}
|
|
425
425
|
prefetchInfiniteQuery(t) {
|
|
426
|
-
return this.fetchInfiniteQuery(t).then(
|
|
426
|
+
return this.fetchInfiniteQuery(t).then(T).catch(T);
|
|
427
427
|
}
|
|
428
428
|
ensureInfiniteQueryData(t) {
|
|
429
429
|
return t.behavior = Se(t.pages), this.ensureQueryData(t);
|
|
430
430
|
}
|
|
431
431
|
resumePausedMutations() {
|
|
432
|
-
return we.isOnline() ? l(this,
|
|
432
|
+
return we.isOnline() ? l(this, Q).resumePausedMutations() : Promise.resolve();
|
|
433
433
|
}
|
|
434
434
|
getQueryCache() {
|
|
435
435
|
return l(this, g);
|
|
436
436
|
}
|
|
437
437
|
getMutationCache() {
|
|
438
|
-
return l(this,
|
|
438
|
+
return l(this, Q);
|
|
439
439
|
}
|
|
440
440
|
getDefaultOptions() {
|
|
441
|
-
return l(this,
|
|
441
|
+
return l(this, R);
|
|
442
442
|
}
|
|
443
443
|
setDefaultOptions(t) {
|
|
444
|
-
v(this,
|
|
444
|
+
v(this, R, t);
|
|
445
445
|
}
|
|
446
446
|
setQueryDefaults(t, e) {
|
|
447
|
-
l(this,
|
|
447
|
+
l(this, B).set(Ce(t), {
|
|
448
448
|
queryKey: t,
|
|
449
449
|
defaultOptions: e
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
getQueryDefaults(t) {
|
|
453
|
-
const e = [...l(this,
|
|
453
|
+
const e = [...l(this, B).values()], s = {};
|
|
454
454
|
return e.forEach((n) => {
|
|
455
455
|
Ne(t, n.queryKey) && Object.assign(s, n.defaultOptions);
|
|
456
456
|
}), s;
|
|
457
457
|
}
|
|
458
458
|
setMutationDefaults(t, e) {
|
|
459
|
-
l(this,
|
|
459
|
+
l(this, H).set(Ce(t), {
|
|
460
460
|
mutationKey: t,
|
|
461
461
|
defaultOptions: e
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
getMutationDefaults(t) {
|
|
465
|
-
const e = [...l(this,
|
|
465
|
+
const e = [...l(this, H).values()];
|
|
466
466
|
let s = {};
|
|
467
467
|
return e.forEach((n) => {
|
|
468
468
|
Ne(t, n.mutationKey) && (s = { ...s, ...n.defaultOptions });
|
|
@@ -472,7 +472,7 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
|
|
|
472
472
|
if (t._defaulted)
|
|
473
473
|
return t;
|
|
474
474
|
const e = {
|
|
475
|
-
...l(this,
|
|
475
|
+
...l(this, R).queries,
|
|
476
476
|
...this.getQueryDefaults(t.queryKey),
|
|
477
477
|
...t,
|
|
478
478
|
_defaulted: !0
|
|
@@ -484,16 +484,16 @@ var g, I, Q, z, B, R, H, L, Re, Is = (Re = class {
|
|
|
484
484
|
}
|
|
485
485
|
defaultMutationOptions(t) {
|
|
486
486
|
return t != null && t._defaulted ? t : {
|
|
487
|
-
...l(this,
|
|
487
|
+
...l(this, R).mutations,
|
|
488
488
|
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
489
489
|
...t,
|
|
490
490
|
_defaulted: !0
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
493
|
clear() {
|
|
494
|
-
l(this, g).clear(), l(this,
|
|
494
|
+
l(this, g).clear(), l(this, Q).clear();
|
|
495
495
|
}
|
|
496
|
-
}, g = new WeakMap(),
|
|
496
|
+
}, g = new WeakMap(), Q = new WeakMap(), R = new WeakMap(), B = new WeakMap(), H = new WeakMap(), F = new WeakMap(), L = new WeakMap(), K = new WeakMap(), Re);
|
|
497
497
|
function Qs(t) {
|
|
498
498
|
return t;
|
|
499
499
|
}
|
|
@@ -501,8 +501,8 @@ function Oe(t, e, s) {
|
|
|
501
501
|
var d, c;
|
|
502
502
|
if (typeof e != "object" || e === null)
|
|
503
503
|
return;
|
|
504
|
-
const n = t.getMutationCache(), a = t.getQueryCache(),
|
|
505
|
-
|
|
504
|
+
const n = t.getMutationCache(), a = t.getQueryCache(), o = ((d = s == null ? void 0 : s.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? Qs, i = e.mutations || [], u = e.queries || [];
|
|
505
|
+
i.forEach(({ state: x, ...f }) => {
|
|
506
506
|
var h, p;
|
|
507
507
|
n.build(
|
|
508
508
|
t,
|
|
@@ -513,24 +513,24 @@ function Oe(t, e, s) {
|
|
|
513
513
|
},
|
|
514
514
|
x
|
|
515
515
|
);
|
|
516
|
-
}), u.forEach(({ queryKey: x, state: f, queryHash: h, meta: p, promise:
|
|
517
|
-
var
|
|
516
|
+
}), u.forEach(({ queryKey: x, state: f, queryHash: h, meta: p, promise: C }) => {
|
|
517
|
+
var A, z;
|
|
518
518
|
let m = a.get(h);
|
|
519
|
-
const
|
|
519
|
+
const y = f.data === void 0 ? f.data : o(f.data);
|
|
520
520
|
if (m) {
|
|
521
521
|
if (m.state.dataUpdatedAt < f.dataUpdatedAt) {
|
|
522
|
-
const { fetchStatus:
|
|
522
|
+
const { fetchStatus: b, ...k } = f;
|
|
523
523
|
m.setState({
|
|
524
524
|
...k,
|
|
525
|
-
data:
|
|
525
|
+
data: y
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
} else
|
|
529
529
|
m = a.build(
|
|
530
530
|
t,
|
|
531
531
|
{
|
|
532
|
-
...(
|
|
533
|
-
...(
|
|
532
|
+
...(A = t.getDefaultOptions().hydrate) == null ? void 0 : A.queries,
|
|
533
|
+
...(z = s == null ? void 0 : s.defaultOptions) == null ? void 0 : z.queries,
|
|
534
534
|
queryKey: x,
|
|
535
535
|
queryHash: h,
|
|
536
536
|
meta: p
|
|
@@ -539,13 +539,13 @@ function Oe(t, e, s) {
|
|
|
539
539
|
// query being stuck in fetching state upon hydration
|
|
540
540
|
{
|
|
541
541
|
...f,
|
|
542
|
-
data:
|
|
542
|
+
data: y,
|
|
543
543
|
fetchStatus: "idle"
|
|
544
544
|
}
|
|
545
545
|
);
|
|
546
|
-
if (
|
|
547
|
-
const
|
|
548
|
-
m.fetch(void 0, { initialPromise:
|
|
546
|
+
if (C) {
|
|
547
|
+
const b = Promise.resolve(C).then(o);
|
|
548
|
+
m.fetch(void 0, { initialPromise: b });
|
|
549
549
|
}
|
|
550
550
|
});
|
|
551
551
|
}
|
|
@@ -555,8 +555,8 @@ var Me = (t, e) => typeof t == "object" && t !== null && e in t, Rs = ({
|
|
|
555
555
|
state: s,
|
|
556
556
|
queryClient: n
|
|
557
557
|
}) => {
|
|
558
|
-
const a = Ke(n), [
|
|
559
|
-
return u.current = e,
|
|
558
|
+
const a = Ke(n), [o, i] = I.useState(), u = I.useRef(e);
|
|
559
|
+
return u.current = e, I.useMemo(() => {
|
|
560
560
|
if (s) {
|
|
561
561
|
if (typeof s != "object")
|
|
562
562
|
return;
|
|
@@ -566,23 +566,23 @@ var Me = (t, e) => typeof t == "object" && t !== null && e in t, Rs = ({
|
|
|
566
566
|
if (!p)
|
|
567
567
|
x.push(h);
|
|
568
568
|
else {
|
|
569
|
-
const
|
|
570
|
-
Me(h.promise, "status") && Me(p.promise, "status") && h.promise.status !== p.promise.status, m =
|
|
571
|
-
(
|
|
569
|
+
const C = h.state.dataUpdatedAt > p.state.dataUpdatedAt || // RSC special serialized then-able chunks
|
|
570
|
+
Me(h.promise, "status") && Me(p.promise, "status") && h.promise.status !== p.promise.status, m = o == null ? void 0 : o.find(
|
|
571
|
+
(y) => y.queryHash === h.queryHash
|
|
572
572
|
);
|
|
573
|
-
|
|
573
|
+
C && (!m || h.state.dataUpdatedAt > m.state.dataUpdatedAt) && f.push(h);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
x.length > 0 && Oe(a, { queries: x }, u.current), f.length > 0 &&
|
|
576
|
+
x.length > 0 && Oe(a, { queries: x }, u.current), f.length > 0 && i(
|
|
577
577
|
(h) => h ? [...h, ...f] : f
|
|
578
578
|
);
|
|
579
579
|
}
|
|
580
|
-
}, [a,
|
|
581
|
-
|
|
582
|
-
}, [a,
|
|
580
|
+
}, [a, o, s]), I.useEffect(() => {
|
|
581
|
+
o && (Oe(a, { queries: o }, u.current), i(void 0));
|
|
582
|
+
}, [a, o]), t;
|
|
583
583
|
};
|
|
584
584
|
const Fs = () => {
|
|
585
|
-
const t =
|
|
585
|
+
const t = $(), e = O(), s = gt(), n = se(), a = Bt(n.pathname), { protectedRoutes: o = [] } = e.options, i = o.some(
|
|
586
586
|
(u) => pt({ path: u, end: !0 }, n.pathname)
|
|
587
587
|
);
|
|
588
588
|
if (Tt({
|
|
@@ -593,8 +593,8 @@ const Fs = () => {
|
|
|
593
593
|
redirectTo: a.current
|
|
594
594
|
})), !0;
|
|
595
595
|
},
|
|
596
|
-
enabled: typeof window < "u" &&
|
|
597
|
-
}),
|
|
596
|
+
enabled: typeof window < "u" && i && !t.isPending && !t.isAuthenticated
|
|
597
|
+
}), i && !t.isAuthenticated)
|
|
598
598
|
return /* @__PURE__ */ r.jsx(
|
|
599
599
|
qt,
|
|
600
600
|
{
|
|
@@ -608,7 +608,7 @@ const Fs = () => {
|
|
|
608
608
|
] })
|
|
609
609
|
}
|
|
610
610
|
);
|
|
611
|
-
if (
|
|
611
|
+
if (i && !t.isAuthEnabled)
|
|
612
612
|
throw new zt("Authentication is not enabled", {
|
|
613
613
|
title: "Authentication is not enabled",
|
|
614
614
|
developerHint: "To use protectedRoutes you need authentication to be enabled"
|
|
@@ -629,9 +629,9 @@ function zs({ error: t }) {
|
|
|
629
629
|
* @license MIT
|
|
630
630
|
*/
|
|
631
631
|
function Bs(t) {
|
|
632
|
-
return /* @__PURE__ */
|
|
632
|
+
return /* @__PURE__ */ I.createElement(xt, { flushSync: Gt.flushSync, ...t });
|
|
633
633
|
}
|
|
634
|
-
const
|
|
634
|
+
const oe = he({ stagger: !1 }), Hs = new Is({
|
|
635
635
|
defaultOptions: {
|
|
636
636
|
queries: {
|
|
637
637
|
staleTime: 1e3 * 60 * 5
|
|
@@ -640,7 +640,7 @@ const ie = he({ stagger: !1 }), Hs = new Is({
|
|
|
640
640
|
}), Ls = ({
|
|
641
641
|
router: t,
|
|
642
642
|
hydrate: e = !1
|
|
643
|
-
}) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx($e, { client: Hs, children: /* @__PURE__ */ r.jsx(Rs, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Fe, { children: /* @__PURE__ */ r.jsx(
|
|
643
|
+
}) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx($e, { client: Hs, children: /* @__PURE__ */ r.jsx(Rs, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Fe, { children: /* @__PURE__ */ r.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(Bs, { router: t }) }) }) }) }) }), Ks = ({
|
|
644
644
|
router: t,
|
|
645
645
|
context: e,
|
|
646
646
|
queryClient: s,
|
|
@@ -657,38 +657,38 @@ function Us() {
|
|
|
657
657
|
minDuration: 200,
|
|
658
658
|
ssr: !0
|
|
659
659
|
};
|
|
660
|
-
function
|
|
660
|
+
function o() {
|
|
661
661
|
const [u, d] = n.useState(!0);
|
|
662
662
|
return n.useEffect(() => {
|
|
663
663
|
d(!1);
|
|
664
664
|
}, []), u;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function i(u, d) {
|
|
667
667
|
d = Object.assign({}, a, d);
|
|
668
|
-
const c =
|
|
668
|
+
const c = o() && d.ssr, x = c && u ? "DISPLAY" : "IDLE", [f, h] = n.useState(x), p = n.useRef(null);
|
|
669
669
|
return n.useEffect(() => {
|
|
670
670
|
if (u && (f === "IDLE" || c)) {
|
|
671
671
|
clearTimeout(p.current);
|
|
672
|
-
const
|
|
672
|
+
const C = c ? 0 : d.delay;
|
|
673
673
|
p.current = setTimeout(() => {
|
|
674
674
|
if (!u)
|
|
675
675
|
return h("IDLE");
|
|
676
676
|
p.current = setTimeout(() => {
|
|
677
677
|
h("EXPIRE");
|
|
678
678
|
}, d.minDuration), h("DISPLAY");
|
|
679
|
-
},
|
|
679
|
+
}, C), c || h("DELAY");
|
|
680
680
|
}
|
|
681
681
|
!u && f !== "DISPLAY" && (clearTimeout(p.current), h("IDLE"));
|
|
682
682
|
}, [u, f, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(p.current), []), f === "DISPLAY" || f === "EXPIRE";
|
|
683
683
|
}
|
|
684
|
-
s.defaultOptions = a, s.useSpinDelay =
|
|
684
|
+
s.defaultOptions = a, s.useSpinDelay = i;
|
|
685
685
|
});
|
|
686
686
|
}(X, X.exports)), X.exports;
|
|
687
687
|
}
|
|
688
688
|
var Zs = Us();
|
|
689
689
|
const Ys = () => {
|
|
690
|
-
const t =
|
|
691
|
-
|
|
690
|
+
const t = se(), e = fe(t.pathname);
|
|
691
|
+
Z(() => {
|
|
692
692
|
const s = e.current !== t.pathname, n = t.hash !== "";
|
|
693
693
|
s && !n && window.scrollTo(0, 0), e.current = t.pathname;
|
|
694
694
|
}, [t.pathname, t.hash]);
|
|
@@ -712,7 +712,7 @@ const Te = {
|
|
|
712
712
|
caution: "bg-orange-500",
|
|
713
713
|
danger: "bg-rose-500"
|
|
714
714
|
}, Vs = () => {
|
|
715
|
-
const { page: t } = O(), [e, s] =
|
|
715
|
+
const { page: t } = O(), [e, s] = U(!0);
|
|
716
716
|
if (!(t != null && t.banner) || !e)
|
|
717
717
|
return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
718
718
|
const n = t.banner.color && t.banner.color in Te ? Te[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
|
|
@@ -740,19 +740,19 @@ const Te = {
|
|
|
740
740
|
}
|
|
741
741
|
);
|
|
742
742
|
}, We = ({ className: t }) => {
|
|
743
|
-
const e = O(), [s, n] =
|
|
744
|
-
|
|
743
|
+
const e = O(), [s, n] = U(!1), a = Xt(() => n(!1), []);
|
|
744
|
+
Z(() => {
|
|
745
745
|
if (s)
|
|
746
746
|
return;
|
|
747
|
-
function
|
|
747
|
+
function i(u) {
|
|
748
748
|
u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
|
|
749
749
|
}
|
|
750
|
-
return window.addEventListener("keydown",
|
|
751
|
-
window.removeEventListener("keydown",
|
|
750
|
+
return window.addEventListener("keydown", i), () => {
|
|
751
|
+
window.removeEventListener("keydown", i);
|
|
752
752
|
};
|
|
753
753
|
}, [s, n]);
|
|
754
|
-
const
|
|
755
|
-
return
|
|
754
|
+
const o = e.plugins.find(as);
|
|
755
|
+
return o ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
|
|
756
756
|
/* @__PURE__ */ r.jsxs(
|
|
757
757
|
"button",
|
|
758
758
|
{
|
|
@@ -768,14 +768,14 @@ const Te = {
|
|
|
768
768
|
]
|
|
769
769
|
}
|
|
770
770
|
),
|
|
771
|
-
/* @__PURE__ */ r.jsx(me, { fallback: null, children:
|
|
771
|
+
/* @__PURE__ */ r.jsx(me, { fallback: null, children: o.renderSearch({
|
|
772
772
|
isOpen: s,
|
|
773
773
|
onClose: a
|
|
774
774
|
}) })
|
|
775
775
|
] }) : null;
|
|
776
776
|
}, Je = () => {
|
|
777
777
|
const { resolvedTheme: t, setTheme: e } = ze();
|
|
778
|
-
return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(
|
|
778
|
+
return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(ie, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ r.jsxs(
|
|
779
779
|
"button",
|
|
780
780
|
{
|
|
781
781
|
type: "button",
|
|
@@ -809,7 +809,7 @@ const Te = {
|
|
|
809
809
|
}
|
|
810
810
|
) });
|
|
811
811
|
}, et = (t) => (e) => e.display === "hide" ? !1 : e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", _s = () => {
|
|
812
|
-
const { topNavigation: t } = O(), { isAuthenticated: e } =
|
|
812
|
+
const { topNavigation: t } = O(), { isAuthenticated: e } = $(), s = t.filter(et(e));
|
|
813
813
|
return s.length === 0 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(me, { children: /* @__PURE__ */ r.jsxs("div", { className: "items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm", children: [
|
|
814
814
|
/* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: s.map((n) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(tt, { ...n }) }, n.id)) }) }),
|
|
815
815
|
/* @__PURE__ */ r.jsx(D, { name: "top-navigation-side" })
|
|
@@ -820,7 +820,7 @@ const Te = {
|
|
|
820
820
|
default: s
|
|
821
821
|
}) => {
|
|
822
822
|
var c;
|
|
823
|
-
const { sidebars: n } = O(), a = n[t],
|
|
823
|
+
const { sidebars: n } = O(), a = n[t], o = Be(), i = !!ue().location, u = ((c = o.topNavItem) == null ? void 0 : c.id) === t && !i, d = s ?? (a ? bt(a, (x) => {
|
|
824
824
|
if (x.type === "doc") return V(x.id);
|
|
825
825
|
}) : V(t)) ?? V(t);
|
|
826
826
|
return (
|
|
@@ -839,7 +839,7 @@ const Te = {
|
|
|
839
839
|
)
|
|
840
840
|
);
|
|
841
841
|
}, Gs = () => {
|
|
842
|
-
const { topNavigation: t } = O(), { isAuthenticated: e } =
|
|
842
|
+
const { topNavigation: t } = O(), { isAuthenticated: e } = $(), [s, n] = U(!1);
|
|
843
843
|
return /* @__PURE__ */ r.jsxs(
|
|
844
844
|
Ss,
|
|
845
845
|
{
|
|
@@ -876,21 +876,21 @@ const Te = {
|
|
|
876
876
|
t.icon && /* @__PURE__ */ r.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
877
877
|
t.label
|
|
878
878
|
] }, t.label) }), st = Ye(function() {
|
|
879
|
-
const e =
|
|
879
|
+
const e = $(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = $(), o = O(), { page: i, plugins: u } = o, d = u.filter((c) => is(c)).flatMap((c) => c.getProfileMenuItems(o)).sort((c) => c.weight ?? 0);
|
|
880
880
|
return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
|
|
881
881
|
/* @__PURE__ */ r.jsx(Vs, {}),
|
|
882
882
|
/* @__PURE__ */ r.jsx("div", { className: "border-b", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl 2xl:border-x mx-auto flex relative items-center justify-between px-4 lg:px-8 h-[--top-header-height]", children: [
|
|
883
883
|
/* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(de, { to: "/", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
884
|
-
(
|
|
884
|
+
(i == null ? void 0 : i.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
885
885
|
/* @__PURE__ */ r.jsx(
|
|
886
886
|
"img",
|
|
887
887
|
{
|
|
888
|
-
src: /https?:\/\//.test(
|
|
888
|
+
src: /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : V(
|
|
889
889
|
"/",
|
|
890
|
-
|
|
890
|
+
i.logo.src.light
|
|
891
891
|
),
|
|
892
|
-
alt:
|
|
893
|
-
style: { width:
|
|
892
|
+
alt: i.logo.alt ?? i.pageTitle,
|
|
893
|
+
style: { width: i.logo.width },
|
|
894
894
|
className: "h-10 dark:hidden",
|
|
895
895
|
loading: "lazy"
|
|
896
896
|
}
|
|
@@ -898,18 +898,18 @@ const Te = {
|
|
|
898
898
|
/* @__PURE__ */ r.jsx(
|
|
899
899
|
"img",
|
|
900
900
|
{
|
|
901
|
-
src: /https?:\/\//.test(
|
|
901
|
+
src: /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : V(
|
|
902
902
|
"/",
|
|
903
|
-
|
|
903
|
+
i.logo.src.dark
|
|
904
904
|
),
|
|
905
|
-
alt:
|
|
906
|
-
style: { width:
|
|
905
|
+
alt: i.logo.alt ?? i.pageTitle,
|
|
906
|
+
style: { width: i.logo.width },
|
|
907
907
|
className: "h-10 hidden dark:block",
|
|
908
908
|
loading: "lazy"
|
|
909
909
|
}
|
|
910
910
|
)
|
|
911
911
|
] }),
|
|
912
|
-
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children:
|
|
912
|
+
/* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: i == null ? void 0 : i.pageTitle })
|
|
913
913
|
] }) }) }),
|
|
914
914
|
/* @__PURE__ */ r.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ r.jsx(We, { className: "pointer-events-auto" }) }),
|
|
915
915
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
@@ -921,24 +921,24 @@ const Te = {
|
|
|
921
921
|
{
|
|
922
922
|
fallback: /* @__PURE__ */ r.jsx(Xs, { className: "rounded h-5 w-24 mr-4" }),
|
|
923
923
|
children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(fs, { modal: !1, children: [
|
|
924
|
-
/* @__PURE__ */ r.jsx(ms, { asChild: !0, children: /* @__PURE__ */ r.jsx(
|
|
924
|
+
/* @__PURE__ */ r.jsx(ms, { asChild: !0, children: /* @__PURE__ */ r.jsx(ie, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
|
|
925
925
|
/* @__PURE__ */ r.jsxs(gs, { className: "w-56", children: [
|
|
926
926
|
/* @__PURE__ */ r.jsxs(ps, { children: [
|
|
927
927
|
n != null && n.name ? `${n.name}` : "My Account",
|
|
928
928
|
(n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
929
929
|
] }),
|
|
930
|
-
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(
|
|
930
|
+
d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
931
931
|
d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(te, { item: c }, c.label)),
|
|
932
932
|
d.filter(
|
|
933
933
|
(c) => !c.category || c.category === "middle"
|
|
934
|
-
).length > 0 && /* @__PURE__ */ r.jsx(
|
|
934
|
+
).length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
935
935
|
d.filter(
|
|
936
936
|
(c) => !c.category || c.category === "middle"
|
|
937
937
|
).map((c) => /* @__PURE__ */ r.jsx(te, { item: c }, c.label)),
|
|
938
|
-
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(
|
|
938
|
+
d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(ne, {}),
|
|
939
939
|
d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(te, { item: c }, c.label))
|
|
940
940
|
] })
|
|
941
|
-
] }) : /* @__PURE__ */ r.jsx(
|
|
941
|
+
] }) : /* @__PURE__ */ r.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" })
|
|
942
942
|
}
|
|
943
943
|
),
|
|
944
944
|
/* @__PURE__ */ r.jsx(D, { name: "head-navigation-end" }),
|
|
@@ -963,7 +963,7 @@ const Te = {
|
|
|
963
963
|
}
|
|
964
964
|
);
|
|
965
965
|
rt.displayName = "Drawer";
|
|
966
|
-
const Ws = M.Trigger, Js = M.Portal, nt =
|
|
966
|
+
const Ws = M.Trigger, Js = M.Portal, nt = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
967
967
|
M.Overlay,
|
|
968
968
|
{
|
|
969
969
|
ref: s,
|
|
@@ -972,7 +972,7 @@ const Ws = M.Trigger, Js = M.Portal, nt = q.forwardRef(({ className: t, ...e },
|
|
|
972
972
|
}
|
|
973
973
|
));
|
|
974
974
|
nt.displayName = M.Overlay.displayName;
|
|
975
|
-
const er =
|
|
975
|
+
const er = I.forwardRef(
|
|
976
976
|
({ className: t, children: e, hideBar: s = !0, ...n }, a) => /* @__PURE__ */ r.jsxs(Js, { children: [
|
|
977
977
|
/* @__PURE__ */ r.jsx(nt, {}),
|
|
978
978
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -993,7 +993,7 @@ const er = q.forwardRef(
|
|
|
993
993
|
] })
|
|
994
994
|
);
|
|
995
995
|
er.displayName = "DrawerContent";
|
|
996
|
-
const tr =
|
|
996
|
+
const tr = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
997
997
|
M.Title,
|
|
998
998
|
{
|
|
999
999
|
ref: s,
|
|
@@ -1005,7 +1005,7 @@ const tr = q.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
|
1005
1005
|
}
|
|
1006
1006
|
));
|
|
1007
1007
|
tr.displayName = M.Title.displayName;
|
|
1008
|
-
const sr =
|
|
1008
|
+
const sr = I.forwardRef(({ className: t, ...e }, s) => /* @__PURE__ */ r.jsx(
|
|
1009
1009
|
M.Description,
|
|
1010
1010
|
{
|
|
1011
1011
|
ref: s,
|
|
@@ -1037,7 +1037,7 @@ const rr = ({
|
|
|
1037
1037
|
sidebar: e
|
|
1038
1038
|
}) => {
|
|
1039
1039
|
const s = fe(null);
|
|
1040
|
-
return
|
|
1040
|
+
return Z(() => {
|
|
1041
1041
|
var a;
|
|
1042
1042
|
const n = (a = s.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
|
|
1043
1043
|
Wt(n ?? null);
|
|
@@ -1067,13 +1067,13 @@ const rr = ({
|
|
|
1067
1067
|
)
|
|
1068
1068
|
] });
|
|
1069
1069
|
}, nr = ({ children: t }) => {
|
|
1070
|
-
const [e, s] =
|
|
1070
|
+
const [e, s] = U(!1), { sidebar: n } = Be(), a = n.length > 0;
|
|
1071
1071
|
return /* @__PURE__ */ r.jsxs(
|
|
1072
1072
|
rt,
|
|
1073
1073
|
{
|
|
1074
1074
|
direction: "left",
|
|
1075
1075
|
open: e,
|
|
1076
|
-
onOpenChange: (
|
|
1076
|
+
onOpenChange: (o) => s(o),
|
|
1077
1077
|
children: [
|
|
1078
1078
|
a && /* @__PURE__ */ r.jsx(
|
|
1079
1079
|
rr,
|
|
@@ -1106,9 +1106,9 @@ const rr = ({
|
|
|
1106
1106
|
);
|
|
1107
1107
|
}, qe = () => /* @__PURE__ */ r.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ r.jsx(Ge, {}) }), ar = ({ children: t }) => {
|
|
1108
1108
|
const { meta: e, authentication: s } = O();
|
|
1109
|
-
Jt(), Ys(),
|
|
1110
|
-
var
|
|
1111
|
-
(
|
|
1109
|
+
Jt(), Ys(), Z(() => {
|
|
1110
|
+
var o;
|
|
1111
|
+
(o = s == null ? void 0 : s.onPageLoad) == null || o.call(s);
|
|
1112
1112
|
}, [s]);
|
|
1113
1113
|
const n = !!ue().location, a = Zs.useSpinDelay(n, {
|
|
1114
1114
|
delay: 300,
|
|
@@ -1116,7 +1116,7 @@ const rr = ({
|
|
|
1116
1116
|
});
|
|
1117
1117
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1118
1118
|
!1,
|
|
1119
|
-
/* @__PURE__ */ r.jsxs(
|
|
1119
|
+
/* @__PURE__ */ r.jsxs(le, { titleTemplate: e == null ? void 0 : e.title, children: [
|
|
1120
1120
|
(e == null ? void 0 : e.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: e.description }),
|
|
1121
1121
|
(e == null ? void 0 : e.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: e.favicon })
|
|
1122
1122
|
] }),
|
|
@@ -1206,13 +1206,13 @@ const rr = ({
|
|
|
1206
1206
|
category: t
|
|
1207
1207
|
}
|
|
1208
1208
|
);
|
|
1209
|
-
}, cr = he(null),
|
|
1209
|
+
}, cr = he(null), ae = {
|
|
1210
1210
|
didCatch: !1,
|
|
1211
1211
|
error: null
|
|
1212
1212
|
};
|
|
1213
1213
|
class ur extends Vt {
|
|
1214
1214
|
constructor(e) {
|
|
1215
|
-
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state =
|
|
1215
|
+
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ae;
|
|
1216
1216
|
}
|
|
1217
1217
|
static getDerivedStateFromError(e) {
|
|
1218
1218
|
return {
|
|
@@ -1225,12 +1225,12 @@ class ur extends Vt {
|
|
|
1225
1225
|
error: e
|
|
1226
1226
|
} = this.state;
|
|
1227
1227
|
if (e !== null) {
|
|
1228
|
-
for (var s, n, a = arguments.length,
|
|
1229
|
-
i
|
|
1228
|
+
for (var s, n, a = arguments.length, o = new Array(a), i = 0; i < a; i++)
|
|
1229
|
+
o[i] = arguments[i];
|
|
1230
1230
|
(s = (n = this.props).onReset) === null || s === void 0 || s.call(n, {
|
|
1231
|
-
args:
|
|
1231
|
+
args: o,
|
|
1232
1232
|
reason: "imperative-api"
|
|
1233
|
-
}), this.setState(
|
|
1233
|
+
}), this.setState(ae);
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
1236
|
componentDidCatch(e, s) {
|
|
@@ -1244,12 +1244,12 @@ class ur extends Vt {
|
|
|
1244
1244
|
resetKeys: a
|
|
1245
1245
|
} = this.props;
|
|
1246
1246
|
if (n && s.error !== null && dr(e.resetKeys, a)) {
|
|
1247
|
-
var
|
|
1248
|
-
(
|
|
1247
|
+
var o, i;
|
|
1248
|
+
(o = (i = this.props).onReset) === null || o === void 0 || o.call(i, {
|
|
1249
1249
|
next: a,
|
|
1250
1250
|
prev: e.resetKeys,
|
|
1251
1251
|
reason: "keys"
|
|
1252
|
-
}), this.setState(
|
|
1252
|
+
}), this.setState(ae);
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
render() {
|
|
@@ -1259,13 +1259,13 @@ class ur extends Vt {
|
|
|
1259
1259
|
FallbackComponent: n,
|
|
1260
1260
|
fallback: a
|
|
1261
1261
|
} = this.props, {
|
|
1262
|
-
didCatch:
|
|
1263
|
-
error:
|
|
1262
|
+
didCatch: o,
|
|
1263
|
+
error: i
|
|
1264
1264
|
} = this.state;
|
|
1265
1265
|
let u = e;
|
|
1266
|
-
if (
|
|
1266
|
+
if (o) {
|
|
1267
1267
|
const d = {
|
|
1268
|
-
error:
|
|
1268
|
+
error: i,
|
|
1269
1269
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1270
1270
|
};
|
|
1271
1271
|
if (typeof s == "function")
|
|
@@ -1275,12 +1275,12 @@ class ur extends Vt {
|
|
|
1275
1275
|
else if (a !== void 0)
|
|
1276
1276
|
u = a;
|
|
1277
1277
|
else
|
|
1278
|
-
throw
|
|
1278
|
+
throw i;
|
|
1279
1279
|
}
|
|
1280
1280
|
return De(cr.Provider, {
|
|
1281
1281
|
value: {
|
|
1282
|
-
didCatch:
|
|
1283
|
-
error:
|
|
1282
|
+
didCatch: o,
|
|
1283
|
+
error: i,
|
|
1284
1284
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1285
1285
|
}
|
|
1286
1286
|
}, u);
|
|
@@ -1306,15 +1306,15 @@ let hr = () => ({
|
|
|
1306
1306
|
});
|
|
1307
1307
|
class fr {
|
|
1308
1308
|
constructor(e, s) {
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1309
|
+
j(this, "plugins");
|
|
1310
|
+
j(this, "sidebars");
|
|
1311
|
+
j(this, "topNavigation");
|
|
1312
|
+
j(this, "meta");
|
|
1313
|
+
j(this, "page");
|
|
1314
|
+
j(this, "authentication");
|
|
1315
|
+
j(this, "navigationPlugins");
|
|
1316
|
+
j(this, "emitter", hr());
|
|
1317
|
+
j(this, "initialize", async () => {
|
|
1318
1318
|
await Promise.all(
|
|
1319
1319
|
this.plugins.filter(cs).map((e) => {
|
|
1320
1320
|
var s;
|
|
@@ -1322,11 +1322,11 @@ class fr {
|
|
|
1322
1322
|
})
|
|
1323
1323
|
);
|
|
1324
1324
|
});
|
|
1325
|
-
|
|
1325
|
+
j(this, "getApiIdentities", async () => (await Promise.all(
|
|
1326
1326
|
this.plugins.filter(us).map((s) => s.getIdentities(this))
|
|
1327
1327
|
)).flat());
|
|
1328
|
-
|
|
1329
|
-
|
|
1328
|
+
j(this, "emitEvent", (e, ...s) => this.emitter.emit(e, ...s));
|
|
1329
|
+
j(this, "getPluginSidebar", async (e) => (await Promise.all(
|
|
1330
1330
|
this.navigationPlugins.map(
|
|
1331
1331
|
(n) => {
|
|
1332
1332
|
var a;
|
|
@@ -1334,15 +1334,15 @@ class fr {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
)
|
|
1336
1336
|
)).flatMap((n) => n ?? []));
|
|
1337
|
-
|
|
1337
|
+
j(this, "signRequest", async (e) => {
|
|
1338
1338
|
if (!this.authentication)
|
|
1339
1339
|
throw new Error("No authentication provider configured");
|
|
1340
1340
|
const s = await this.authentication.getAccessToken();
|
|
1341
1341
|
return e.headers.set("Authorization", `Bearer ${s}`), e;
|
|
1342
1342
|
});
|
|
1343
1343
|
this.options = e, this.queryClient = s, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(os), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((n) => {
|
|
1344
|
-
ls(n) && Ht(n.events).forEach(([a,
|
|
1345
|
-
this.emitter.on(a,
|
|
1344
|
+
ls(n) && Ht(n.events).forEach(([a, o]) => {
|
|
1345
|
+
this.emitter.on(a, o);
|
|
1346
1346
|
});
|
|
1347
1347
|
});
|
|
1348
1348
|
}
|
|
@@ -1358,8 +1358,8 @@ const ee = globalThis;
|
|
|
1358
1358
|
const it = {
|
|
1359
1359
|
Header: st
|
|
1360
1360
|
}, gr = he(it), pr = gr.Provider, xr = () => {
|
|
1361
|
-
const t =
|
|
1362
|
-
return
|
|
1361
|
+
const t = se(), e = O(), s = fe(void 0);
|
|
1362
|
+
return Z(() => {
|
|
1363
1363
|
e.emitEvent("location", {
|
|
1364
1364
|
from: s.current,
|
|
1365
1365
|
to: t
|
|
@@ -1373,40 +1373,42 @@ const it = {
|
|
|
1373
1373
|
queryKey: ["zudoku-initialize"]
|
|
1374
1374
|
}), /* @__PURE__ */ r.jsx(Pt.Provider, { value: e, children: t })), ot = Ye(
|
|
1375
1375
|
({ children: t, ...e }) => {
|
|
1376
|
-
var
|
|
1377
|
-
const s =
|
|
1376
|
+
var p, C;
|
|
1377
|
+
const s = re(
|
|
1378
1378
|
() => ({ ...it, ...e.overrides }),
|
|
1379
1379
|
[e.overrides]
|
|
1380
|
-
), n = se(() => {
|
|
1381
|
-
var
|
|
1380
|
+
), n = se(), a = re(() => {
|
|
1381
|
+
var y;
|
|
1382
1382
|
return {
|
|
1383
1383
|
...(e.plugins ?? []).filter(ds).flatMap(
|
|
1384
|
-
(
|
|
1384
|
+
(A) => A.getMdxComponents ? [A.getMdxComponents()] : []
|
|
1385
1385
|
).reduce(
|
|
1386
|
-
(
|
|
1386
|
+
(A, z) => ({ ...A, ...z }),
|
|
1387
1387
|
{}
|
|
1388
1388
|
),
|
|
1389
1389
|
...ss,
|
|
1390
|
-
...(
|
|
1390
|
+
...(y = e.mdx) == null ? void 0 : y.components
|
|
1391
1391
|
};
|
|
1392
|
-
}, [(
|
|
1393
|
-
() => i ? { stagger: !0 } : { stagger:
|
|
1394
|
-
[
|
|
1395
|
-
),
|
|
1396
|
-
|
|
1397
|
-
i ||
|
|
1398
|
-
}, [i,
|
|
1399
|
-
const [
|
|
1400
|
-
() => new fr(e,
|
|
1401
|
-
),
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1392
|
+
}, [(p = e.mdx) == null ? void 0 : p.components, e.plugins]), { stagger: o } = _t(oe), [i, u] = U(!1), d = re(
|
|
1393
|
+
() => i ? { stagger: !0 } : { stagger: o },
|
|
1394
|
+
[o, i]
|
|
1395
|
+
), c = ue(), x = Ke();
|
|
1396
|
+
Z(() => {
|
|
1397
|
+
i || u(!0);
|
|
1398
|
+
}, [i, c.location]);
|
|
1399
|
+
const [f] = U(
|
|
1400
|
+
() => new fr(e, x)
|
|
1401
|
+
), h = (C = e.plugins) == null ? void 0 : C.flatMap(
|
|
1402
|
+
(m) => {
|
|
1403
|
+
var y;
|
|
1404
|
+
return hs(m) ? ((y = m.getHead) == null ? void 0 : y.call(m, { location: n })) ?? [] : [];
|
|
1405
|
+
}
|
|
1406
|
+
).map((m, y) => /* @__PURE__ */ r.jsx(le, { children: m }, y));
|
|
1405
1407
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1406
|
-
|
|
1407
|
-
/* @__PURE__ */ r.jsx(
|
|
1408
|
+
h,
|
|
1409
|
+
/* @__PURE__ */ r.jsx(oe.Provider, { value: d, children: /* @__PURE__ */ r.jsxs(yr, { context: f, children: [
|
|
1408
1410
|
/* @__PURE__ */ r.jsx(xr, {}),
|
|
1409
|
-
/* @__PURE__ */ r.jsx(ht, { components:
|
|
1411
|
+
/* @__PURE__ */ r.jsx(ht, { components: a, children: /* @__PURE__ */ r.jsx(mt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(pr, { value: s, children: /* @__PURE__ */ r.jsx(Lt, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(rs, { children: t ?? /* @__PURE__ */ r.jsx(ce, {}) }) }) }) }) })
|
|
1410
1412
|
] }) })
|
|
1411
1413
|
] });
|
|
1412
1414
|
}
|
|
@@ -1414,7 +1416,7 @@ const it = {
|
|
|
1414
1416
|
ot.displayName = "ZudokoInner";
|
|
1415
1417
|
const lt = (t) => /* @__PURE__ */ r.jsx(ur, { FallbackComponent: mr, children: /* @__PURE__ */ r.jsx(ot, { ...t }) });
|
|
1416
1418
|
lt.displayName = "Zudoku";
|
|
1417
|
-
const Zr = ft, Yr = ar, Xr = Kt, Vr = zs, _r = Ls, Gr = Ks, Wr = Fs, Jr =
|
|
1419
|
+
const Zr = ft, Yr = ar, Xr = Kt, Vr = zs, _r = Ls, Gr = Ks, Wr = Fs, Jr = le, en = O, tn = $, sn = Ct, rn = Nt, nn = lt, an = lr, on = Ut, ln = ns, cn = Ge, un = ge, dn = $t, hn = de, fn = ze;
|
|
1418
1420
|
export {
|
|
1419
1421
|
_r as Bootstrap,
|
|
1420
1422
|
Gr as BootstrapStatic,
|