@gsa-tts/graymatter-ui 0.1.0 → 0.2.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/assets/images/ai-icons/chevron-up-down.svg +4 -0
- package/dist/graymatter-ui.js +4281 -0
- package/dist/graymatter-ui.umd.cjs +40 -0
- package/index.ts +1 -0
- package/package.json +9 -5
- package/src/components/Button.svelte +11 -23
- package/src/components/Button.webcomponent.svelte +44 -0
- package/src/components/DesktopHeader.svelte +30 -18
- package/src/components/DesktopHeader.webcomponent.svelte +17 -0
- package/src/components/DesktopSideNav.svelte +332 -72
- package/src/components/DesktopSideNav.webcomponent.svelte +32 -0
- package/src/components/Logo.webcomponent.svelte +26 -0
- package/src/components/MobileBottomNav.svelte +67 -15
- package/src/components/MobileBottomNav.webcomponent.svelte +18 -0
- package/src/components/MobileSideMenu.svelte +69 -14
- package/src/components/MobileSideMenu.webcomponent.svelte +11 -0
- package/src/components/MobileTopNav.svelte +137 -3
- package/src/components/MobileTopNav.webcomponent.svelte +14 -0
- package/src/index.ts +16 -0
- package/src/layouts/GlobalAppLayout.astro +24 -19
- package/src/stores/navigationStore.ts +0 -15
- package/src/styles/base/global.css +1 -2
- package/src/styles/components/globalAppLayout.css +9 -12
- package/src/styles/components/globalAppNav.css +30 -483
- package/src/utils/getAppUrls.ts +26 -0
- package/src/utils/index.ts +1 -0
- package/src/layouts/AppLayout.astro +0 -88
|
@@ -0,0 +1,4281 @@
|
|
|
1
|
+
var fo = Object.defineProperty;
|
|
2
|
+
var gn = (e) => {
|
|
3
|
+
throw TypeError(e);
|
|
4
|
+
};
|
|
5
|
+
var vo = (e, t, r) => t in e ? fo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var te = (e, t, r) => vo(e, typeof t != "symbol" ? t + "" : t, r), mn = (e, t, r) => t.has(e) || gn("Cannot " + r);
|
|
7
|
+
var Q = (e, t, r) => (mn(e, t, "read from private field"), r ? r.call(e) : t.get(e)), dr = (e, t, r) => t.has(e) ? gn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), fr = (e, t, r, n) => (mn(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r);
|
|
8
|
+
const ho = "5";
|
|
9
|
+
var An;
|
|
10
|
+
typeof window < "u" && ((An = window.__svelte ?? (window.__svelte = {})).v ?? (An.v = /* @__PURE__ */ new Set())).add(ho);
|
|
11
|
+
const bo = 1, po = 2, go = 16, mo = 1, wo = 2, On = 4, _o = 8, ko = 16, qn = 1, yo = 2, Nr = "[", Ir = "[!", Tr = "]", at = {}, ee = Symbol(), xo = "http://www.w3.org/1999/xhtml", Eo = "@attach", wn = !1;
|
|
12
|
+
var Jt = Array.isArray, Co = Array.prototype.indexOf, zr = Array.from, Dt = Object.keys, kt = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, Pn = Object.getOwnPropertyDescriptors, So = Object.prototype, $o = Array.prototype, Mr = Object.getPrototypeOf, _n = Object.isExtensible;
|
|
13
|
+
function gt(e) {
|
|
14
|
+
return typeof e == "function";
|
|
15
|
+
}
|
|
16
|
+
const ve = () => {
|
|
17
|
+
};
|
|
18
|
+
function No(e) {
|
|
19
|
+
return e();
|
|
20
|
+
}
|
|
21
|
+
function yt(e) {
|
|
22
|
+
for (var t = 0; t < e.length; t++)
|
|
23
|
+
e[t]();
|
|
24
|
+
}
|
|
25
|
+
const he = 2, Lr = 4, It = 8, Ur = 16, De = 32, Qe = 64, Ar = 128, ne = 256, jt = 512, ie = 1024, qe = 2048, Je = 4096, Ae = 8192, Or = 16384, Dn = 32768, Tt = 65536, kn = 1 << 17, Io = 1 << 18, jn = 1 << 19, gr = 1 << 20, qr = 1 << 21, Te = Symbol("$state"), Pr = Symbol("legacy props"), To = Symbol(""), Hn = new class extends Error {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
te(this, "name", "StaleReactionError");
|
|
29
|
+
te(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
30
|
+
}
|
|
31
|
+
}(), Vn = 3, xt = 8;
|
|
32
|
+
function Rn(e) {
|
|
33
|
+
return e === this.v;
|
|
34
|
+
}
|
|
35
|
+
function Bn(e, t) {
|
|
36
|
+
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
37
|
+
}
|
|
38
|
+
function Fn(e) {
|
|
39
|
+
return !Bn(e, this.v);
|
|
40
|
+
}
|
|
41
|
+
function zo(e) {
|
|
42
|
+
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
43
|
+
}
|
|
44
|
+
function Mo() {
|
|
45
|
+
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
46
|
+
}
|
|
47
|
+
function Lo(e) {
|
|
48
|
+
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
49
|
+
}
|
|
50
|
+
function Uo() {
|
|
51
|
+
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
52
|
+
}
|
|
53
|
+
function Ao() {
|
|
54
|
+
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
55
|
+
}
|
|
56
|
+
function Oo(e) {
|
|
57
|
+
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
58
|
+
}
|
|
59
|
+
function qo() {
|
|
60
|
+
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
61
|
+
}
|
|
62
|
+
function Po() {
|
|
63
|
+
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
64
|
+
}
|
|
65
|
+
function Do() {
|
|
66
|
+
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
67
|
+
}
|
|
68
|
+
let ut = !1, jo = !1;
|
|
69
|
+
function Ho() {
|
|
70
|
+
ut = !0;
|
|
71
|
+
}
|
|
72
|
+
function Vo(e) {
|
|
73
|
+
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
74
|
+
}
|
|
75
|
+
let P = null;
|
|
76
|
+
function yn(e) {
|
|
77
|
+
P = e;
|
|
78
|
+
}
|
|
79
|
+
function B(e, t = !1, r) {
|
|
80
|
+
var n = P = {
|
|
81
|
+
p: P,
|
|
82
|
+
c: null,
|
|
83
|
+
d: !1,
|
|
84
|
+
e: null,
|
|
85
|
+
m: !1,
|
|
86
|
+
s: e,
|
|
87
|
+
x: null,
|
|
88
|
+
l: null
|
|
89
|
+
};
|
|
90
|
+
ut && !t && (P.l = {
|
|
91
|
+
s: null,
|
|
92
|
+
u: null,
|
|
93
|
+
r1: [],
|
|
94
|
+
r2: st(!1)
|
|
95
|
+
}), Xt(() => {
|
|
96
|
+
n.d = !0;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function F(e) {
|
|
100
|
+
const t = P;
|
|
101
|
+
if (t !== null) {
|
|
102
|
+
e !== void 0 && (t.x = e);
|
|
103
|
+
const s = t.e;
|
|
104
|
+
if (s !== null) {
|
|
105
|
+
var r = A, n = L;
|
|
106
|
+
t.e = null;
|
|
107
|
+
try {
|
|
108
|
+
for (var i = 0; i < s.length; i++) {
|
|
109
|
+
var o = s[i];
|
|
110
|
+
Ze(o.effect), ze(o.reaction), ni(o.fn);
|
|
111
|
+
}
|
|
112
|
+
} finally {
|
|
113
|
+
Ze(r), ze(n);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
P = t.p, t.m = !0;
|
|
117
|
+
}
|
|
118
|
+
return e || /** @type {T} */
|
|
119
|
+
{};
|
|
120
|
+
}
|
|
121
|
+
function Wt() {
|
|
122
|
+
return !ut || P !== null && P.l === null;
|
|
123
|
+
}
|
|
124
|
+
function ot(e) {
|
|
125
|
+
if (typeof e != "object" || e === null || Te in e)
|
|
126
|
+
return e;
|
|
127
|
+
const t = Mr(e);
|
|
128
|
+
if (t !== So && t !== $o)
|
|
129
|
+
return e;
|
|
130
|
+
var r = /* @__PURE__ */ new Map(), n = Jt(e), i = /* @__PURE__ */ ge(0), o = L, s = (a) => {
|
|
131
|
+
var l = L;
|
|
132
|
+
ze(o);
|
|
133
|
+
var u = a();
|
|
134
|
+
return ze(l), u;
|
|
135
|
+
};
|
|
136
|
+
return n && r.set("length", /* @__PURE__ */ ge(
|
|
137
|
+
/** @type {any[]} */
|
|
138
|
+
e.length
|
|
139
|
+
)), new Proxy(
|
|
140
|
+
/** @type {any} */
|
|
141
|
+
e,
|
|
142
|
+
{
|
|
143
|
+
defineProperty(a, l, u) {
|
|
144
|
+
(!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && qo();
|
|
145
|
+
var d = r.get(l);
|
|
146
|
+
return d === void 0 ? d = s(() => {
|
|
147
|
+
var f = /* @__PURE__ */ ge(u.value);
|
|
148
|
+
return r.set(l, f), f;
|
|
149
|
+
}) : O(d, u.value, !0), !0;
|
|
150
|
+
},
|
|
151
|
+
deleteProperty(a, l) {
|
|
152
|
+
var u = r.get(l);
|
|
153
|
+
if (u === void 0) {
|
|
154
|
+
if (l in a) {
|
|
155
|
+
const c = s(() => /* @__PURE__ */ ge(ee));
|
|
156
|
+
r.set(l, c), vr(i);
|
|
157
|
+
}
|
|
158
|
+
} else {
|
|
159
|
+
if (n && typeof l == "string") {
|
|
160
|
+
var d = (
|
|
161
|
+
/** @type {Source<number>} */
|
|
162
|
+
r.get("length")
|
|
163
|
+
), f = Number(l);
|
|
164
|
+
Number.isInteger(f) && f < d.v && O(d, f);
|
|
165
|
+
}
|
|
166
|
+
O(u, ee), vr(i);
|
|
167
|
+
}
|
|
168
|
+
return !0;
|
|
169
|
+
},
|
|
170
|
+
get(a, l, u) {
|
|
171
|
+
var v;
|
|
172
|
+
if (l === Te)
|
|
173
|
+
return e;
|
|
174
|
+
var d = r.get(l), f = l in a;
|
|
175
|
+
if (d === void 0 && (!f || (v = Ue(a, l)) != null && v.writable) && (d = s(() => {
|
|
176
|
+
var b = ot(f ? a[l] : ee), g = /* @__PURE__ */ ge(b);
|
|
177
|
+
return g;
|
|
178
|
+
}), r.set(l, d)), d !== void 0) {
|
|
179
|
+
var c = E(d);
|
|
180
|
+
return c === ee ? void 0 : c;
|
|
181
|
+
}
|
|
182
|
+
return Reflect.get(a, l, u);
|
|
183
|
+
},
|
|
184
|
+
getOwnPropertyDescriptor(a, l) {
|
|
185
|
+
var u = Reflect.getOwnPropertyDescriptor(a, l);
|
|
186
|
+
if (u && "value" in u) {
|
|
187
|
+
var d = r.get(l);
|
|
188
|
+
d && (u.value = E(d));
|
|
189
|
+
} else if (u === void 0) {
|
|
190
|
+
var f = r.get(l), c = f == null ? void 0 : f.v;
|
|
191
|
+
if (f !== void 0 && c !== ee)
|
|
192
|
+
return {
|
|
193
|
+
enumerable: !0,
|
|
194
|
+
configurable: !0,
|
|
195
|
+
value: c,
|
|
196
|
+
writable: !0
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
return u;
|
|
200
|
+
},
|
|
201
|
+
has(a, l) {
|
|
202
|
+
var c;
|
|
203
|
+
if (l === Te)
|
|
204
|
+
return !0;
|
|
205
|
+
var u = r.get(l), d = u !== void 0 && u.v !== ee || Reflect.has(a, l);
|
|
206
|
+
if (u !== void 0 || A !== null && (!d || (c = Ue(a, l)) != null && c.writable)) {
|
|
207
|
+
u === void 0 && (u = s(() => {
|
|
208
|
+
var v = d ? ot(a[l]) : ee, b = /* @__PURE__ */ ge(v);
|
|
209
|
+
return b;
|
|
210
|
+
}), r.set(l, u));
|
|
211
|
+
var f = E(u);
|
|
212
|
+
if (f === ee)
|
|
213
|
+
return !1;
|
|
214
|
+
}
|
|
215
|
+
return d;
|
|
216
|
+
},
|
|
217
|
+
set(a, l, u, d) {
|
|
218
|
+
var p;
|
|
219
|
+
var f = r.get(l), c = l in a;
|
|
220
|
+
if (n && l === "length")
|
|
221
|
+
for (var v = u; v < /** @type {Source<number>} */
|
|
222
|
+
f.v; v += 1) {
|
|
223
|
+
var b = r.get(v + "");
|
|
224
|
+
b !== void 0 ? O(b, ee) : v in a && (b = s(() => /* @__PURE__ */ ge(ee)), r.set(v + "", b));
|
|
225
|
+
}
|
|
226
|
+
if (f === void 0)
|
|
227
|
+
(!c || (p = Ue(a, l)) != null && p.writable) && (f = s(() => /* @__PURE__ */ ge(void 0)), O(f, ot(u)), r.set(l, f));
|
|
228
|
+
else {
|
|
229
|
+
c = f.v !== ee;
|
|
230
|
+
var g = s(() => ot(u));
|
|
231
|
+
O(f, g);
|
|
232
|
+
}
|
|
233
|
+
var _ = Reflect.getOwnPropertyDescriptor(a, l);
|
|
234
|
+
if (_ != null && _.set && _.set.call(d, u), !c) {
|
|
235
|
+
if (n && typeof l == "string") {
|
|
236
|
+
var m = (
|
|
237
|
+
/** @type {Source<number>} */
|
|
238
|
+
r.get("length")
|
|
239
|
+
), h = Number(l);
|
|
240
|
+
Number.isInteger(h) && h >= m.v && O(m, h + 1);
|
|
241
|
+
}
|
|
242
|
+
vr(i);
|
|
243
|
+
}
|
|
244
|
+
return !0;
|
|
245
|
+
},
|
|
246
|
+
ownKeys(a) {
|
|
247
|
+
E(i);
|
|
248
|
+
var l = Reflect.ownKeys(a).filter((f) => {
|
|
249
|
+
var c = r.get(f);
|
|
250
|
+
return c === void 0 || c.v !== ee;
|
|
251
|
+
});
|
|
252
|
+
for (var [u, d] of r)
|
|
253
|
+
d.v !== ee && !(u in a) && l.push(u);
|
|
254
|
+
return l;
|
|
255
|
+
},
|
|
256
|
+
setPrototypeOf() {
|
|
257
|
+
Po();
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
function vr(e, t = 1) {
|
|
263
|
+
O(e, e.v + t);
|
|
264
|
+
}
|
|
265
|
+
function xn(e) {
|
|
266
|
+
try {
|
|
267
|
+
if (e !== null && typeof e == "object" && Te in e)
|
|
268
|
+
return e[Te];
|
|
269
|
+
} catch {
|
|
270
|
+
}
|
|
271
|
+
return e;
|
|
272
|
+
}
|
|
273
|
+
function Ro(e, t) {
|
|
274
|
+
return Object.is(xn(e), xn(t));
|
|
275
|
+
}
|
|
276
|
+
// @__NO_SIDE_EFFECTS__
|
|
277
|
+
function ct(e) {
|
|
278
|
+
var t = he | qe, r = L !== null && (L.f & he) !== 0 ? (
|
|
279
|
+
/** @type {Derived} */
|
|
280
|
+
L
|
|
281
|
+
) : null;
|
|
282
|
+
return A === null || r !== null && (r.f & ne) !== 0 ? t |= ne : A.f |= jn, {
|
|
283
|
+
ctx: P,
|
|
284
|
+
deps: null,
|
|
285
|
+
effects: null,
|
|
286
|
+
equals: Rn,
|
|
287
|
+
f: t,
|
|
288
|
+
fn: e,
|
|
289
|
+
reactions: null,
|
|
290
|
+
rv: 0,
|
|
291
|
+
v: (
|
|
292
|
+
/** @type {V} */
|
|
293
|
+
null
|
|
294
|
+
),
|
|
295
|
+
wv: 0,
|
|
296
|
+
parent: r ?? A,
|
|
297
|
+
ac: null
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
// @__NO_SIDE_EFFECTS__
|
|
301
|
+
function J(e) {
|
|
302
|
+
const t = /* @__PURE__ */ ct(e);
|
|
303
|
+
return di(t), t;
|
|
304
|
+
}
|
|
305
|
+
// @__NO_SIDE_EFFECTS__
|
|
306
|
+
function Kt(e) {
|
|
307
|
+
const t = /* @__PURE__ */ ct(e);
|
|
308
|
+
return t.equals = Fn, t;
|
|
309
|
+
}
|
|
310
|
+
function Yn(e) {
|
|
311
|
+
var t = e.effects;
|
|
312
|
+
if (t !== null) {
|
|
313
|
+
e.effects = null;
|
|
314
|
+
for (var r = 0; r < t.length; r += 1)
|
|
315
|
+
oe(
|
|
316
|
+
/** @type {Effect} */
|
|
317
|
+
t[r]
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
function Bo(e) {
|
|
322
|
+
for (var t = e.parent; t !== null; ) {
|
|
323
|
+
if ((t.f & he) === 0)
|
|
324
|
+
return (
|
|
325
|
+
/** @type {Effect} */
|
|
326
|
+
t
|
|
327
|
+
);
|
|
328
|
+
t = t.parent;
|
|
329
|
+
}
|
|
330
|
+
return null;
|
|
331
|
+
}
|
|
332
|
+
function Zn(e) {
|
|
333
|
+
var t, r = A;
|
|
334
|
+
Ze(Bo(e));
|
|
335
|
+
try {
|
|
336
|
+
Yn(e), t = hi(e);
|
|
337
|
+
} finally {
|
|
338
|
+
Ze(r);
|
|
339
|
+
}
|
|
340
|
+
return t;
|
|
341
|
+
}
|
|
342
|
+
function Jn(e) {
|
|
343
|
+
var t = Zn(e);
|
|
344
|
+
if (e.equals(t) || (e.v = t, e.wv = fi()), !vt) {
|
|
345
|
+
var r = (Fe || (e.f & ne) !== 0) && e.deps !== null ? Je : ie;
|
|
346
|
+
ke(e, r);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
const Et = /* @__PURE__ */ new Map();
|
|
350
|
+
function st(e, t) {
|
|
351
|
+
var r = {
|
|
352
|
+
f: 0,
|
|
353
|
+
// TODO ideally we could skip this altogether, but it causes type errors
|
|
354
|
+
v: e,
|
|
355
|
+
reactions: null,
|
|
356
|
+
equals: Rn,
|
|
357
|
+
rv: 0,
|
|
358
|
+
wv: 0
|
|
359
|
+
};
|
|
360
|
+
return r;
|
|
361
|
+
}
|
|
362
|
+
// @__NO_SIDE_EFFECTS__
|
|
363
|
+
function ge(e, t) {
|
|
364
|
+
const r = st(e);
|
|
365
|
+
return di(r), r;
|
|
366
|
+
}
|
|
367
|
+
// @__NO_SIDE_EFFECTS__
|
|
368
|
+
function zt(e, t = !1, r = !0) {
|
|
369
|
+
var i;
|
|
370
|
+
const n = st(e);
|
|
371
|
+
return t || (n.equals = Fn), ut && r && P !== null && P.l !== null && ((i = P.l).s ?? (i.s = [])).push(n), n;
|
|
372
|
+
}
|
|
373
|
+
function O(e, t, r = !1) {
|
|
374
|
+
L !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
375
|
+
// to ensure we error if state is set inside an inspect effect
|
|
376
|
+
(!$e || (L.f & kn) !== 0) && Wt() && (L.f & (he | Ur | kn)) !== 0 && !((V == null ? void 0 : V.reaction) === L && V.sources.includes(e)) && Do();
|
|
377
|
+
let n = r ? ot(t) : t;
|
|
378
|
+
return Wn(e, n);
|
|
379
|
+
}
|
|
380
|
+
function Wn(e, t) {
|
|
381
|
+
if (!e.equals(t)) {
|
|
382
|
+
var r = e.v;
|
|
383
|
+
vt ? Et.set(e, t) : Et.set(e, r), e.v = t, (e.f & he) !== 0 && ((e.f & qe) !== 0 && Zn(
|
|
384
|
+
/** @type {Derived} */
|
|
385
|
+
e
|
|
386
|
+
), ke(e, (e.f & ne) === 0 ? ie : Je)), e.wv = fi(), Kn(e, qe), Wt() && A !== null && (A.f & ie) !== 0 && (A.f & (De | Qe)) === 0 && (se === null ? na([e]) : se.push(e));
|
|
387
|
+
}
|
|
388
|
+
return t;
|
|
389
|
+
}
|
|
390
|
+
function En(e, t = 1) {
|
|
391
|
+
var r = E(e), n = t === 1 ? r++ : r--;
|
|
392
|
+
return O(e, r), n;
|
|
393
|
+
}
|
|
394
|
+
function Kn(e, t) {
|
|
395
|
+
var r = e.reactions;
|
|
396
|
+
if (r !== null)
|
|
397
|
+
for (var n = Wt(), i = r.length, o = 0; o < i; o++) {
|
|
398
|
+
var s = r[o], a = s.f;
|
|
399
|
+
(a & qe) === 0 && (!n && s === A || (ke(s, t), (a & (ie | ne)) !== 0 && ((a & he) !== 0 ? Kn(
|
|
400
|
+
/** @type {Derived} */
|
|
401
|
+
s,
|
|
402
|
+
Je
|
|
403
|
+
) : rr(
|
|
404
|
+
/** @type {Effect} */
|
|
405
|
+
s
|
|
406
|
+
))));
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
function Gt(e) {
|
|
410
|
+
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
411
|
+
}
|
|
412
|
+
function Fo() {
|
|
413
|
+
console.warn("https://svelte.dev/e/select_multiple_invalid_value");
|
|
414
|
+
}
|
|
415
|
+
let z = !1;
|
|
416
|
+
function we(e) {
|
|
417
|
+
z = e;
|
|
418
|
+
}
|
|
419
|
+
let U;
|
|
420
|
+
function _e(e) {
|
|
421
|
+
if (e === null)
|
|
422
|
+
throw Gt(), at;
|
|
423
|
+
return U = e;
|
|
424
|
+
}
|
|
425
|
+
function dt() {
|
|
426
|
+
return _e(
|
|
427
|
+
/** @type {TemplateNode} */
|
|
428
|
+
/* @__PURE__ */ je(U)
|
|
429
|
+
);
|
|
430
|
+
}
|
|
431
|
+
function C(e) {
|
|
432
|
+
if (z) {
|
|
433
|
+
if (/* @__PURE__ */ je(U) !== null)
|
|
434
|
+
throw Gt(), at;
|
|
435
|
+
U = e;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
function Ne(e = 1) {
|
|
439
|
+
if (z) {
|
|
440
|
+
for (var t = e, r = U; t--; )
|
|
441
|
+
r = /** @type {TemplateNode} */
|
|
442
|
+
/* @__PURE__ */ je(r);
|
|
443
|
+
U = r;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
function mr() {
|
|
447
|
+
for (var e = 0, t = U; ; ) {
|
|
448
|
+
if (t.nodeType === xt) {
|
|
449
|
+
var r = (
|
|
450
|
+
/** @type {Comment} */
|
|
451
|
+
t.data
|
|
452
|
+
);
|
|
453
|
+
if (r === Tr) {
|
|
454
|
+
if (e === 0) return t;
|
|
455
|
+
e -= 1;
|
|
456
|
+
} else (r === Nr || r === Ir) && (e += 1);
|
|
457
|
+
}
|
|
458
|
+
var n = (
|
|
459
|
+
/** @type {TemplateNode} */
|
|
460
|
+
/* @__PURE__ */ je(t)
|
|
461
|
+
);
|
|
462
|
+
t.remove(), t = n;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
function Gn(e) {
|
|
466
|
+
if (!e || e.nodeType !== xt)
|
|
467
|
+
throw Gt(), at;
|
|
468
|
+
return (
|
|
469
|
+
/** @type {Comment} */
|
|
470
|
+
e.data
|
|
471
|
+
);
|
|
472
|
+
}
|
|
473
|
+
var Cn, Xn, Qn, ei;
|
|
474
|
+
function wr() {
|
|
475
|
+
if (Cn === void 0) {
|
|
476
|
+
Cn = window, Xn = /Firefox/.test(navigator.userAgent);
|
|
477
|
+
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
478
|
+
Qn = Ue(t, "firstChild").get, ei = Ue(t, "nextSibling").get, _n(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), _n(r) && (r.__t = void 0);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
function lt(e = "") {
|
|
482
|
+
return document.createTextNode(e);
|
|
483
|
+
}
|
|
484
|
+
// @__NO_SIDE_EFFECTS__
|
|
485
|
+
function ce(e) {
|
|
486
|
+
return Qn.call(e);
|
|
487
|
+
}
|
|
488
|
+
// @__NO_SIDE_EFFECTS__
|
|
489
|
+
function je(e) {
|
|
490
|
+
return ei.call(e);
|
|
491
|
+
}
|
|
492
|
+
function S(e, t) {
|
|
493
|
+
if (!z)
|
|
494
|
+
return /* @__PURE__ */ ce(e);
|
|
495
|
+
var r = (
|
|
496
|
+
/** @type {TemplateNode} */
|
|
497
|
+
/* @__PURE__ */ ce(U)
|
|
498
|
+
);
|
|
499
|
+
if (r === null)
|
|
500
|
+
r = U.appendChild(lt());
|
|
501
|
+
else if (t && r.nodeType !== Vn) {
|
|
502
|
+
var n = lt();
|
|
503
|
+
return r == null || r.before(n), _e(n), n;
|
|
504
|
+
}
|
|
505
|
+
return _e(r), r;
|
|
506
|
+
}
|
|
507
|
+
function Ye(e, t) {
|
|
508
|
+
if (!z) {
|
|
509
|
+
var r = (
|
|
510
|
+
/** @type {DocumentFragment} */
|
|
511
|
+
/* @__PURE__ */ ce(
|
|
512
|
+
/** @type {Node} */
|
|
513
|
+
e
|
|
514
|
+
)
|
|
515
|
+
);
|
|
516
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ je(r) : r;
|
|
517
|
+
}
|
|
518
|
+
return U;
|
|
519
|
+
}
|
|
520
|
+
function W(e, t = 1, r = !1) {
|
|
521
|
+
let n = z ? U : e;
|
|
522
|
+
for (var i; t--; )
|
|
523
|
+
i = n, n = /** @type {TemplateNode} */
|
|
524
|
+
/* @__PURE__ */ je(n);
|
|
525
|
+
if (!z)
|
|
526
|
+
return n;
|
|
527
|
+
if (r && (n == null ? void 0 : n.nodeType) !== Vn) {
|
|
528
|
+
var o = lt();
|
|
529
|
+
return n === null ? i == null || i.after(o) : n.before(o), _e(o), o;
|
|
530
|
+
}
|
|
531
|
+
return _e(n), /** @type {TemplateNode} */
|
|
532
|
+
n;
|
|
533
|
+
}
|
|
534
|
+
function ti(e) {
|
|
535
|
+
e.textContent = "";
|
|
536
|
+
}
|
|
537
|
+
function ri(e) {
|
|
538
|
+
A === null && L === null && Lo(), L !== null && (L.f & ne) !== 0 && A === null && Mo(), vt && zo();
|
|
539
|
+
}
|
|
540
|
+
function Yo(e, t) {
|
|
541
|
+
var r = t.last;
|
|
542
|
+
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
543
|
+
}
|
|
544
|
+
function He(e, t, r, n = !0) {
|
|
545
|
+
var i = A, o = {
|
|
546
|
+
ctx: P,
|
|
547
|
+
deps: null,
|
|
548
|
+
nodes_start: null,
|
|
549
|
+
nodes_end: null,
|
|
550
|
+
f: e | qe,
|
|
551
|
+
first: null,
|
|
552
|
+
fn: t,
|
|
553
|
+
last: null,
|
|
554
|
+
next: null,
|
|
555
|
+
parent: i,
|
|
556
|
+
b: i && i.b,
|
|
557
|
+
prev: null,
|
|
558
|
+
teardown: null,
|
|
559
|
+
transitions: null,
|
|
560
|
+
wv: 0,
|
|
561
|
+
ac: null
|
|
562
|
+
};
|
|
563
|
+
if (r)
|
|
564
|
+
try {
|
|
565
|
+
tr(o), o.f |= Dn;
|
|
566
|
+
} catch (l) {
|
|
567
|
+
throw oe(o), l;
|
|
568
|
+
}
|
|
569
|
+
else t !== null && rr(o);
|
|
570
|
+
var s = r && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (jn | Ar)) === 0;
|
|
571
|
+
if (!s && n && (i !== null && Yo(o, i), L !== null && (L.f & he) !== 0)) {
|
|
572
|
+
var a = (
|
|
573
|
+
/** @type {Derived} */
|
|
574
|
+
L
|
|
575
|
+
);
|
|
576
|
+
(a.effects ?? (a.effects = [])).push(o);
|
|
577
|
+
}
|
|
578
|
+
return o;
|
|
579
|
+
}
|
|
580
|
+
function Xt(e) {
|
|
581
|
+
const t = He(It, null, !1);
|
|
582
|
+
return ke(t, ie), t.teardown = e, t;
|
|
583
|
+
}
|
|
584
|
+
function _r(e) {
|
|
585
|
+
ri();
|
|
586
|
+
var t = A !== null && (A.f & De) !== 0 && P !== null && !P.m;
|
|
587
|
+
if (t) {
|
|
588
|
+
var r = (
|
|
589
|
+
/** @type {ComponentContext} */
|
|
590
|
+
P
|
|
591
|
+
);
|
|
592
|
+
(r.e ?? (r.e = [])).push({
|
|
593
|
+
fn: e,
|
|
594
|
+
effect: A,
|
|
595
|
+
reaction: L
|
|
596
|
+
});
|
|
597
|
+
} else
|
|
598
|
+
return ni(e);
|
|
599
|
+
}
|
|
600
|
+
function ni(e) {
|
|
601
|
+
return He(Lr | qr, e, !1);
|
|
602
|
+
}
|
|
603
|
+
function Zo(e) {
|
|
604
|
+
return ri(), He(It | qr, e, !0);
|
|
605
|
+
}
|
|
606
|
+
function Jo(e) {
|
|
607
|
+
const t = He(Qe, e, !0);
|
|
608
|
+
return () => {
|
|
609
|
+
oe(t);
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
function Wo(e) {
|
|
613
|
+
const t = He(Qe, e, !0);
|
|
614
|
+
return (r = {}) => new Promise((n) => {
|
|
615
|
+
r.outro ? Ct(t, () => {
|
|
616
|
+
oe(t), n(void 0);
|
|
617
|
+
}) : (oe(t), n(void 0));
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
function Dr(e) {
|
|
621
|
+
return He(Lr, e, !1);
|
|
622
|
+
}
|
|
623
|
+
function Ko(e, t) {
|
|
624
|
+
var r = (
|
|
625
|
+
/** @type {ComponentContextLegacy} */
|
|
626
|
+
P
|
|
627
|
+
), n = { effect: null, ran: !1 };
|
|
628
|
+
r.l.r1.push(n), n.effect = Qt(() => {
|
|
629
|
+
e(), !n.ran && (n.ran = !0, O(r.l.r2, !0), ht(t));
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
function Go() {
|
|
633
|
+
var e = (
|
|
634
|
+
/** @type {ComponentContextLegacy} */
|
|
635
|
+
P
|
|
636
|
+
);
|
|
637
|
+
Qt(() => {
|
|
638
|
+
if (E(e.l.r2)) {
|
|
639
|
+
for (var t of e.l.r1) {
|
|
640
|
+
var r = t.effect;
|
|
641
|
+
(r.f & ie) !== 0 && ke(r, Je), Mt(r) && tr(r), t.ran = !1;
|
|
642
|
+
}
|
|
643
|
+
e.l.r2.v = !1;
|
|
644
|
+
}
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
function Qt(e) {
|
|
648
|
+
return He(It, e, !0);
|
|
649
|
+
}
|
|
650
|
+
function ft(e, t = [], r = ct) {
|
|
651
|
+
const n = t.map(r);
|
|
652
|
+
return et(() => e(...n.map(E)));
|
|
653
|
+
}
|
|
654
|
+
function et(e, t = 0) {
|
|
655
|
+
var r = He(It | Ur | t, e, !0);
|
|
656
|
+
return r;
|
|
657
|
+
}
|
|
658
|
+
function Pe(e, t = !0) {
|
|
659
|
+
return He(It | De, e, !0, t);
|
|
660
|
+
}
|
|
661
|
+
function ii(e) {
|
|
662
|
+
var t = e.teardown;
|
|
663
|
+
if (t !== null) {
|
|
664
|
+
const r = vt, n = L;
|
|
665
|
+
Sn(!0), ze(null);
|
|
666
|
+
try {
|
|
667
|
+
t.call(null);
|
|
668
|
+
} finally {
|
|
669
|
+
Sn(r), ze(n);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
function oi(e, t = !1) {
|
|
674
|
+
var i;
|
|
675
|
+
var r = e.first;
|
|
676
|
+
for (e.first = e.last = null; r !== null; ) {
|
|
677
|
+
(i = r.ac) == null || i.abort(Hn);
|
|
678
|
+
var n = r.next;
|
|
679
|
+
(r.f & Qe) !== 0 ? r.parent = null : oe(r, t), r = n;
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
function Xo(e) {
|
|
683
|
+
for (var t = e.first; t !== null; ) {
|
|
684
|
+
var r = t.next;
|
|
685
|
+
(t.f & De) === 0 && oe(t), t = r;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
function oe(e, t = !0) {
|
|
689
|
+
var r = !1;
|
|
690
|
+
(t || (e.f & Io) !== 0) && e.nodes_start !== null && e.nodes_end !== null && (Qo(
|
|
691
|
+
e.nodes_start,
|
|
692
|
+
/** @type {TemplateNode} */
|
|
693
|
+
e.nodes_end
|
|
694
|
+
), r = !0), oi(e, t && !r), Bt(e, 0), ke(e, Or);
|
|
695
|
+
var n = e.transitions;
|
|
696
|
+
if (n !== null)
|
|
697
|
+
for (const o of n)
|
|
698
|
+
o.stop();
|
|
699
|
+
ii(e);
|
|
700
|
+
var i = e.parent;
|
|
701
|
+
i !== null && i.first !== null && ai(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = e.ac = null;
|
|
702
|
+
}
|
|
703
|
+
function Qo(e, t) {
|
|
704
|
+
for (; e !== null; ) {
|
|
705
|
+
var r = e === t ? null : (
|
|
706
|
+
/** @type {TemplateNode} */
|
|
707
|
+
/* @__PURE__ */ je(e)
|
|
708
|
+
);
|
|
709
|
+
e.remove(), e = r;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
function ai(e) {
|
|
713
|
+
var t = e.parent, r = e.prev, n = e.next;
|
|
714
|
+
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
715
|
+
}
|
|
716
|
+
function Ct(e, t) {
|
|
717
|
+
var r = [];
|
|
718
|
+
jr(e, r, !0), si(r, () => {
|
|
719
|
+
oe(e), t && t();
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
function si(e, t) {
|
|
723
|
+
var r = e.length;
|
|
724
|
+
if (r > 0) {
|
|
725
|
+
var n = () => --r || t();
|
|
726
|
+
for (var i of e)
|
|
727
|
+
i.out(n);
|
|
728
|
+
} else
|
|
729
|
+
t();
|
|
730
|
+
}
|
|
731
|
+
function jr(e, t, r) {
|
|
732
|
+
if ((e.f & Ae) === 0) {
|
|
733
|
+
if (e.f ^= Ae, e.transitions !== null)
|
|
734
|
+
for (const s of e.transitions)
|
|
735
|
+
(s.is_global || r) && t.push(s);
|
|
736
|
+
for (var n = e.first; n !== null; ) {
|
|
737
|
+
var i = n.next, o = (n.f & Tt) !== 0 || (n.f & De) !== 0;
|
|
738
|
+
jr(n, t, o ? r : !1), n = i;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
function Ht(e) {
|
|
743
|
+
li(e, !0);
|
|
744
|
+
}
|
|
745
|
+
function li(e, t) {
|
|
746
|
+
if ((e.f & Ae) !== 0) {
|
|
747
|
+
e.f ^= Ae;
|
|
748
|
+
for (var r = e.first; r !== null; ) {
|
|
749
|
+
var n = r.next, i = (r.f & Tt) !== 0 || (r.f & De) !== 0;
|
|
750
|
+
li(r, i ? t : !1), r = n;
|
|
751
|
+
}
|
|
752
|
+
if (e.transitions !== null)
|
|
753
|
+
for (const o of e.transitions)
|
|
754
|
+
(o.is_global || t) && o.in();
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
let St = [], kr = [];
|
|
758
|
+
function ui() {
|
|
759
|
+
var e = St;
|
|
760
|
+
St = [], yt(e);
|
|
761
|
+
}
|
|
762
|
+
function ea() {
|
|
763
|
+
var e = kr;
|
|
764
|
+
kr = [], yt(e);
|
|
765
|
+
}
|
|
766
|
+
function er(e) {
|
|
767
|
+
St.length === 0 && queueMicrotask(ui), St.push(e);
|
|
768
|
+
}
|
|
769
|
+
function ta() {
|
|
770
|
+
St.length > 0 && ui(), kr.length > 0 && ea();
|
|
771
|
+
}
|
|
772
|
+
function ra(e) {
|
|
773
|
+
var t = (
|
|
774
|
+
/** @type {Effect} */
|
|
775
|
+
A
|
|
776
|
+
);
|
|
777
|
+
if ((t.f & Dn) === 0) {
|
|
778
|
+
if ((t.f & Ar) === 0)
|
|
779
|
+
throw e;
|
|
780
|
+
t.fn(e);
|
|
781
|
+
} else
|
|
782
|
+
ci(e, t);
|
|
783
|
+
}
|
|
784
|
+
function ci(e, t) {
|
|
785
|
+
for (; t !== null; ) {
|
|
786
|
+
if ((t.f & Ar) !== 0)
|
|
787
|
+
try {
|
|
788
|
+
t.b.error(e);
|
|
789
|
+
return;
|
|
790
|
+
} catch {
|
|
791
|
+
}
|
|
792
|
+
t = t.parent;
|
|
793
|
+
}
|
|
794
|
+
throw e;
|
|
795
|
+
}
|
|
796
|
+
let $t = !1, Nt = null, Ge = !1, vt = !1;
|
|
797
|
+
function Sn(e) {
|
|
798
|
+
vt = e;
|
|
799
|
+
}
|
|
800
|
+
let _t = [];
|
|
801
|
+
let L = null, $e = !1;
|
|
802
|
+
function ze(e) {
|
|
803
|
+
L = e;
|
|
804
|
+
}
|
|
805
|
+
let A = null;
|
|
806
|
+
function Ze(e) {
|
|
807
|
+
A = e;
|
|
808
|
+
}
|
|
809
|
+
let V = null;
|
|
810
|
+
function di(e) {
|
|
811
|
+
L !== null && L.f & gr && (V === null ? V = { reaction: L, sources: [e] } : V.sources.push(e));
|
|
812
|
+
}
|
|
813
|
+
let X = null, re = 0, se = null;
|
|
814
|
+
function na(e) {
|
|
815
|
+
se = e;
|
|
816
|
+
}
|
|
817
|
+
let Vt = 1, Rt = 0, Fe = !1;
|
|
818
|
+
function fi() {
|
|
819
|
+
return ++Vt;
|
|
820
|
+
}
|
|
821
|
+
function Mt(e) {
|
|
822
|
+
var f;
|
|
823
|
+
var t = e.f;
|
|
824
|
+
if ((t & qe) !== 0)
|
|
825
|
+
return !0;
|
|
826
|
+
if ((t & Je) !== 0) {
|
|
827
|
+
var r = e.deps, n = (t & ne) !== 0;
|
|
828
|
+
if (r !== null) {
|
|
829
|
+
var i, o, s = (t & jt) !== 0, a = n && A !== null && !Fe, l = r.length;
|
|
830
|
+
if (s || a) {
|
|
831
|
+
var u = (
|
|
832
|
+
/** @type {Derived} */
|
|
833
|
+
e
|
|
834
|
+
), d = u.parent;
|
|
835
|
+
for (i = 0; i < l; i++)
|
|
836
|
+
o = r[i], (s || !((f = o == null ? void 0 : o.reactions) != null && f.includes(u))) && (o.reactions ?? (o.reactions = [])).push(u);
|
|
837
|
+
s && (u.f ^= jt), a && d !== null && (d.f & ne) === 0 && (u.f ^= ne);
|
|
838
|
+
}
|
|
839
|
+
for (i = 0; i < l; i++)
|
|
840
|
+
if (o = r[i], Mt(
|
|
841
|
+
/** @type {Derived} */
|
|
842
|
+
o
|
|
843
|
+
) && Jn(
|
|
844
|
+
/** @type {Derived} */
|
|
845
|
+
o
|
|
846
|
+
), o.wv > e.wv)
|
|
847
|
+
return !0;
|
|
848
|
+
}
|
|
849
|
+
(!n || A !== null && !Fe) && ke(e, ie);
|
|
850
|
+
}
|
|
851
|
+
return !1;
|
|
852
|
+
}
|
|
853
|
+
function vi(e, t, r = !0) {
|
|
854
|
+
var n = e.reactions;
|
|
855
|
+
if (n !== null)
|
|
856
|
+
for (var i = 0; i < n.length; i++) {
|
|
857
|
+
var o = n[i];
|
|
858
|
+
(V == null ? void 0 : V.reaction) === L && V.sources.includes(e) || ((o.f & he) !== 0 ? vi(
|
|
859
|
+
/** @type {Derived} */
|
|
860
|
+
o,
|
|
861
|
+
t,
|
|
862
|
+
!1
|
|
863
|
+
) : t === o && (r ? ke(o, qe) : (o.f & ie) !== 0 && ke(o, Je), rr(
|
|
864
|
+
/** @type {Effect} */
|
|
865
|
+
o
|
|
866
|
+
)));
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
function hi(e) {
|
|
870
|
+
var v;
|
|
871
|
+
var t = X, r = re, n = se, i = L, o = Fe, s = V, a = P, l = $e, u = e.f;
|
|
872
|
+
X = /** @type {null | Value[]} */
|
|
873
|
+
null, re = 0, se = null, Fe = (u & ne) !== 0 && ($e || !Ge || L === null), L = (u & (De | Qe)) === 0 ? e : null, V = null, yn(e.ctx), $e = !1, Rt++, e.f |= gr, e.ac !== null && (e.ac.abort(Hn), e.ac = null);
|
|
874
|
+
try {
|
|
875
|
+
var d = (
|
|
876
|
+
/** @type {Function} */
|
|
877
|
+
(0, e.fn)()
|
|
878
|
+
), f = e.deps;
|
|
879
|
+
if (X !== null) {
|
|
880
|
+
var c;
|
|
881
|
+
if (Bt(e, re), f !== null && re > 0)
|
|
882
|
+
for (f.length = re + X.length, c = 0; c < X.length; c++)
|
|
883
|
+
f[re + c] = X[c];
|
|
884
|
+
else
|
|
885
|
+
e.deps = f = X;
|
|
886
|
+
if (!Fe || // Deriveds that already have reactions can cleanup, so we still add them as reactions
|
|
887
|
+
(u & he) !== 0 && /** @type {import('#client').Derived} */
|
|
888
|
+
e.reactions !== null)
|
|
889
|
+
for (c = re; c < f.length; c++)
|
|
890
|
+
((v = f[c]).reactions ?? (v.reactions = [])).push(e);
|
|
891
|
+
} else f !== null && re < f.length && (Bt(e, re), f.length = re);
|
|
892
|
+
if (Wt() && se !== null && !$e && f !== null && (e.f & (he | Je | qe)) === 0)
|
|
893
|
+
for (c = 0; c < /** @type {Source[]} */
|
|
894
|
+
se.length; c++)
|
|
895
|
+
vi(
|
|
896
|
+
se[c],
|
|
897
|
+
/** @type {Effect} */
|
|
898
|
+
e
|
|
899
|
+
);
|
|
900
|
+
return i !== null && i !== e && (Rt++, se !== null && (n === null ? n = se : n.push(.../** @type {Source[]} */
|
|
901
|
+
se))), d;
|
|
902
|
+
} catch (b) {
|
|
903
|
+
ra(b);
|
|
904
|
+
} finally {
|
|
905
|
+
X = t, re = r, se = n, L = i, Fe = o, V = s, yn(a), $e = l, e.f ^= gr;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
function ia(e, t) {
|
|
909
|
+
let r = t.reactions;
|
|
910
|
+
if (r !== null) {
|
|
911
|
+
var n = Co.call(r, e);
|
|
912
|
+
if (n !== -1) {
|
|
913
|
+
var i = r.length - 1;
|
|
914
|
+
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
r === null && (t.f & he) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
918
|
+
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
919
|
+
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
920
|
+
(X === null || !X.includes(t)) && (ke(t, Je), (t.f & (ne | jt)) === 0 && (t.f ^= jt), Yn(
|
|
921
|
+
/** @type {Derived} **/
|
|
922
|
+
t
|
|
923
|
+
), Bt(
|
|
924
|
+
/** @type {Derived} **/
|
|
925
|
+
t,
|
|
926
|
+
0
|
|
927
|
+
));
|
|
928
|
+
}
|
|
929
|
+
function Bt(e, t) {
|
|
930
|
+
var r = e.deps;
|
|
931
|
+
if (r !== null)
|
|
932
|
+
for (var n = t; n < r.length; n++)
|
|
933
|
+
ia(e, r[n]);
|
|
934
|
+
}
|
|
935
|
+
function tr(e) {
|
|
936
|
+
var t = e.f;
|
|
937
|
+
if ((t & Or) === 0) {
|
|
938
|
+
ke(e, ie);
|
|
939
|
+
var r = A, n = Ge;
|
|
940
|
+
A = e, Ge = !0;
|
|
941
|
+
try {
|
|
942
|
+
(t & Ur) !== 0 ? Xo(e) : oi(e), ii(e);
|
|
943
|
+
var i = hi(e);
|
|
944
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = Vt;
|
|
945
|
+
var o;
|
|
946
|
+
wn && jo && (e.f & qe) !== 0 && e.deps;
|
|
947
|
+
} finally {
|
|
948
|
+
Ge = n, A = r;
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
function oa() {
|
|
953
|
+
try {
|
|
954
|
+
Uo();
|
|
955
|
+
} catch (e) {
|
|
956
|
+
if (Nt !== null)
|
|
957
|
+
ci(e, Nt);
|
|
958
|
+
else
|
|
959
|
+
throw e;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
function bi() {
|
|
963
|
+
var e = Ge;
|
|
964
|
+
try {
|
|
965
|
+
var t = 0;
|
|
966
|
+
for (Ge = !0; _t.length > 0; ) {
|
|
967
|
+
t++ > 1e3 && oa();
|
|
968
|
+
var r = _t, n = r.length;
|
|
969
|
+
_t = [];
|
|
970
|
+
for (var i = 0; i < n; i++) {
|
|
971
|
+
var o = sa(r[i]);
|
|
972
|
+
aa(o);
|
|
973
|
+
}
|
|
974
|
+
Et.clear();
|
|
975
|
+
}
|
|
976
|
+
} finally {
|
|
977
|
+
$t = !1, Ge = e, Nt = null;
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
function aa(e) {
|
|
981
|
+
var t = e.length;
|
|
982
|
+
if (t !== 0) {
|
|
983
|
+
for (var r = 0; r < t; r++) {
|
|
984
|
+
var n = e[r];
|
|
985
|
+
if ((n.f & (Or | Ae)) === 0 && Mt(n)) {
|
|
986
|
+
var i = Vt;
|
|
987
|
+
if (tr(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null ? ai(n) : n.fn = null), Vt > i && (n.f & qr) !== 0)
|
|
988
|
+
break;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
for (; r < t; r += 1)
|
|
992
|
+
rr(e[r]);
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
function rr(e) {
|
|
996
|
+
$t || ($t = !0, queueMicrotask(bi));
|
|
997
|
+
for (var t = Nt = e; t.parent !== null; ) {
|
|
998
|
+
t = t.parent;
|
|
999
|
+
var r = t.f;
|
|
1000
|
+
if ((r & (Qe | De)) !== 0) {
|
|
1001
|
+
if ((r & ie) === 0) return;
|
|
1002
|
+
t.f ^= ie;
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
_t.push(t);
|
|
1006
|
+
}
|
|
1007
|
+
function sa(e) {
|
|
1008
|
+
for (var t = [], r = e; r !== null; ) {
|
|
1009
|
+
var n = r.f, i = (n & (De | Qe)) !== 0, o = i && (n & ie) !== 0;
|
|
1010
|
+
if (!o && (n & Ae) === 0) {
|
|
1011
|
+
(n & Lr) !== 0 ? t.push(r) : i ? r.f ^= ie : Mt(r) && tr(r);
|
|
1012
|
+
var s = r.first;
|
|
1013
|
+
if (s !== null) {
|
|
1014
|
+
r = s;
|
|
1015
|
+
continue;
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
var a = r.parent;
|
|
1019
|
+
for (r = r.next; r === null && a !== null; )
|
|
1020
|
+
r = a.next, a = a.parent;
|
|
1021
|
+
}
|
|
1022
|
+
return t;
|
|
1023
|
+
}
|
|
1024
|
+
function k(e) {
|
|
1025
|
+
for (var t; ; ) {
|
|
1026
|
+
if (ta(), _t.length === 0)
|
|
1027
|
+
return $t = !1, Nt = null, /** @type {T} */
|
|
1028
|
+
t;
|
|
1029
|
+
$t = !0, bi();
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
function E(e) {
|
|
1033
|
+
var t = e.f, r = (t & he) !== 0;
|
|
1034
|
+
if (L !== null && !$e) {
|
|
1035
|
+
if ((V == null ? void 0 : V.reaction) !== L || !(V != null && V.sources.includes(e))) {
|
|
1036
|
+
var n = L.deps;
|
|
1037
|
+
e.rv < Rt && (e.rv = Rt, X === null && n !== null && n[re] === e ? re++ : X === null ? X = [e] : (!Fe || !X.includes(e)) && X.push(e));
|
|
1038
|
+
}
|
|
1039
|
+
} else if (r && /** @type {Derived} */
|
|
1040
|
+
e.deps === null && /** @type {Derived} */
|
|
1041
|
+
e.effects === null) {
|
|
1042
|
+
var i = (
|
|
1043
|
+
/** @type {Derived} */
|
|
1044
|
+
e
|
|
1045
|
+
), o = i.parent;
|
|
1046
|
+
o !== null && (o.f & ne) === 0 && (i.f ^= ne);
|
|
1047
|
+
}
|
|
1048
|
+
return r && (i = /** @type {Derived} */
|
|
1049
|
+
e, Mt(i) && Jn(i)), vt && Et.has(e) ? Et.get(e) : e.v;
|
|
1050
|
+
}
|
|
1051
|
+
function ht(e) {
|
|
1052
|
+
var t = $e;
|
|
1053
|
+
try {
|
|
1054
|
+
return $e = !0, e();
|
|
1055
|
+
} finally {
|
|
1056
|
+
$e = t;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
const la = -7169;
|
|
1060
|
+
function ke(e, t) {
|
|
1061
|
+
e.f = e.f & la | t;
|
|
1062
|
+
}
|
|
1063
|
+
function pi(e) {
|
|
1064
|
+
if (!(typeof e != "object" || !e || e instanceof EventTarget)) {
|
|
1065
|
+
if (Te in e)
|
|
1066
|
+
yr(e);
|
|
1067
|
+
else if (!Array.isArray(e))
|
|
1068
|
+
for (let t in e) {
|
|
1069
|
+
const r = e[t];
|
|
1070
|
+
typeof r == "object" && r && Te in r && yr(r);
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
function yr(e, t = /* @__PURE__ */ new Set()) {
|
|
1075
|
+
if (typeof e == "object" && e !== null && // We don't want to traverse DOM elements
|
|
1076
|
+
!(e instanceof EventTarget) && !t.has(e)) {
|
|
1077
|
+
t.add(e), e instanceof Date && e.getTime();
|
|
1078
|
+
for (let n in e)
|
|
1079
|
+
try {
|
|
1080
|
+
yr(e[n], t);
|
|
1081
|
+
} catch {
|
|
1082
|
+
}
|
|
1083
|
+
const r = Mr(e);
|
|
1084
|
+
if (r !== Object.prototype && r !== Array.prototype && r !== Map.prototype && r !== Set.prototype && r !== Date.prototype) {
|
|
1085
|
+
const n = Pn(r);
|
|
1086
|
+
for (let i in n) {
|
|
1087
|
+
const o = n[i].get;
|
|
1088
|
+
if (o)
|
|
1089
|
+
try {
|
|
1090
|
+
o.call(e);
|
|
1091
|
+
} catch {
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
function ua(e, t) {
|
|
1098
|
+
if (t) {
|
|
1099
|
+
const r = document.body;
|
|
1100
|
+
e.autofocus = !0, er(() => {
|
|
1101
|
+
document.activeElement === r && e.focus();
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
function ca(e) {
|
|
1106
|
+
var t = L, r = A;
|
|
1107
|
+
ze(null), Ze(null);
|
|
1108
|
+
try {
|
|
1109
|
+
return e();
|
|
1110
|
+
} finally {
|
|
1111
|
+
ze(t), Ze(r);
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
const gi = /* @__PURE__ */ new Set(), xr = /* @__PURE__ */ new Set();
|
|
1115
|
+
function mi(e, t, r, n = {}) {
|
|
1116
|
+
function i(o) {
|
|
1117
|
+
if (n.capture || wt.call(t, o), !o.cancelBubble)
|
|
1118
|
+
return ca(() => r == null ? void 0 : r.call(this, o));
|
|
1119
|
+
}
|
|
1120
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? er(() => {
|
|
1121
|
+
t.addEventListener(e, i, n);
|
|
1122
|
+
}) : t.addEventListener(e, i, n), i;
|
|
1123
|
+
}
|
|
1124
|
+
function Z(e, t, r, n, i) {
|
|
1125
|
+
var o = { capture: n, passive: i }, s = mi(e, t, r, o);
|
|
1126
|
+
(t === document.body || // @ts-ignore
|
|
1127
|
+
t === window || // @ts-ignore
|
|
1128
|
+
t === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
|
|
1129
|
+
t instanceof HTMLMediaElement) && Xt(() => {
|
|
1130
|
+
t.removeEventListener(e, s, o);
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
function Hr(e) {
|
|
1134
|
+
for (var t = 0; t < e.length; t++)
|
|
1135
|
+
gi.add(e[t]);
|
|
1136
|
+
for (var r of xr)
|
|
1137
|
+
r(e);
|
|
1138
|
+
}
|
|
1139
|
+
function wt(e) {
|
|
1140
|
+
var h;
|
|
1141
|
+
var t = this, r = (
|
|
1142
|
+
/** @type {Node} */
|
|
1143
|
+
t.ownerDocument
|
|
1144
|
+
), n = e.type, i = ((h = e.composedPath) == null ? void 0 : h.call(e)) || [], o = (
|
|
1145
|
+
/** @type {null | Element} */
|
|
1146
|
+
i[0] || e.target
|
|
1147
|
+
), s = 0, a = e.__root;
|
|
1148
|
+
if (a) {
|
|
1149
|
+
var l = i.indexOf(a);
|
|
1150
|
+
if (l !== -1 && (t === document || t === /** @type {any} */
|
|
1151
|
+
window)) {
|
|
1152
|
+
e.__root = t;
|
|
1153
|
+
return;
|
|
1154
|
+
}
|
|
1155
|
+
var u = i.indexOf(t);
|
|
1156
|
+
if (u === -1)
|
|
1157
|
+
return;
|
|
1158
|
+
l <= u && (s = l);
|
|
1159
|
+
}
|
|
1160
|
+
if (o = /** @type {Element} */
|
|
1161
|
+
i[s] || e.target, o !== t) {
|
|
1162
|
+
kt(e, "currentTarget", {
|
|
1163
|
+
configurable: !0,
|
|
1164
|
+
get() {
|
|
1165
|
+
return o || r;
|
|
1166
|
+
}
|
|
1167
|
+
});
|
|
1168
|
+
var d = L, f = A;
|
|
1169
|
+
ze(null), Ze(null);
|
|
1170
|
+
try {
|
|
1171
|
+
for (var c, v = []; o !== null; ) {
|
|
1172
|
+
var b = o.assignedSlot || o.parentNode || /** @type {any} */
|
|
1173
|
+
o.host || null;
|
|
1174
|
+
try {
|
|
1175
|
+
var g = o["__" + n];
|
|
1176
|
+
if (g != null && (!/** @type {any} */
|
|
1177
|
+
o.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1178
|
+
// -> the target could not have been disabled because it emits the event in the first place
|
|
1179
|
+
e.target === o))
|
|
1180
|
+
if (Jt(g)) {
|
|
1181
|
+
var [_, ...m] = g;
|
|
1182
|
+
_.apply(o, [e, ...m]);
|
|
1183
|
+
} else
|
|
1184
|
+
g.call(o, e);
|
|
1185
|
+
} catch (p) {
|
|
1186
|
+
c ? v.push(p) : c = p;
|
|
1187
|
+
}
|
|
1188
|
+
if (e.cancelBubble || b === t || b === null)
|
|
1189
|
+
break;
|
|
1190
|
+
o = b;
|
|
1191
|
+
}
|
|
1192
|
+
if (c) {
|
|
1193
|
+
for (let p of v)
|
|
1194
|
+
queueMicrotask(() => {
|
|
1195
|
+
throw p;
|
|
1196
|
+
});
|
|
1197
|
+
throw c;
|
|
1198
|
+
}
|
|
1199
|
+
} finally {
|
|
1200
|
+
e.__root = t, delete e.currentTarget, ze(d), Ze(f);
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
function wi(e) {
|
|
1205
|
+
var t = document.createElement("template");
|
|
1206
|
+
return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
|
|
1207
|
+
}
|
|
1208
|
+
function Oe(e, t) {
|
|
1209
|
+
var r = (
|
|
1210
|
+
/** @type {Effect} */
|
|
1211
|
+
A
|
|
1212
|
+
);
|
|
1213
|
+
r.nodes_start === null && (r.nodes_start = e, r.nodes_end = t);
|
|
1214
|
+
}
|
|
1215
|
+
// @__NO_SIDE_EFFECTS__
|
|
1216
|
+
function be(e, t) {
|
|
1217
|
+
var r = (t & qn) !== 0, n = (t & yo) !== 0, i, o = !e.startsWith("<!>");
|
|
1218
|
+
return () => {
|
|
1219
|
+
if (z)
|
|
1220
|
+
return Oe(U, null), U;
|
|
1221
|
+
i === void 0 && (i = wi(o ? e : "<!>" + e), r || (i = /** @type {Node} */
|
|
1222
|
+
/* @__PURE__ */ ce(i)));
|
|
1223
|
+
var s = (
|
|
1224
|
+
/** @type {TemplateNode} */
|
|
1225
|
+
n || Xn ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
1226
|
+
);
|
|
1227
|
+
if (r) {
|
|
1228
|
+
var a = (
|
|
1229
|
+
/** @type {TemplateNode} */
|
|
1230
|
+
/* @__PURE__ */ ce(s)
|
|
1231
|
+
), l = (
|
|
1232
|
+
/** @type {TemplateNode} */
|
|
1233
|
+
s.lastChild
|
|
1234
|
+
);
|
|
1235
|
+
Oe(a, l);
|
|
1236
|
+
} else
|
|
1237
|
+
Oe(s, s);
|
|
1238
|
+
return s;
|
|
1239
|
+
};
|
|
1240
|
+
}
|
|
1241
|
+
// @__NO_SIDE_EFFECTS__
|
|
1242
|
+
function da(e, t, r = "svg") {
|
|
1243
|
+
var n = !e.startsWith("<!>"), i = (t & qn) !== 0, o = `<${r}>${n ? e : "<!>" + e}</${r}>`, s;
|
|
1244
|
+
return () => {
|
|
1245
|
+
if (z)
|
|
1246
|
+
return Oe(U, null), U;
|
|
1247
|
+
if (!s) {
|
|
1248
|
+
var a = (
|
|
1249
|
+
/** @type {DocumentFragment} */
|
|
1250
|
+
wi(o)
|
|
1251
|
+
), l = (
|
|
1252
|
+
/** @type {Element} */
|
|
1253
|
+
/* @__PURE__ */ ce(a)
|
|
1254
|
+
);
|
|
1255
|
+
if (i)
|
|
1256
|
+
for (s = document.createDocumentFragment(); /* @__PURE__ */ ce(l); )
|
|
1257
|
+
s.appendChild(
|
|
1258
|
+
/** @type {Node} */
|
|
1259
|
+
/* @__PURE__ */ ce(l)
|
|
1260
|
+
);
|
|
1261
|
+
else
|
|
1262
|
+
s = /** @type {Element} */
|
|
1263
|
+
/* @__PURE__ */ ce(l);
|
|
1264
|
+
}
|
|
1265
|
+
var u = (
|
|
1266
|
+
/** @type {TemplateNode} */
|
|
1267
|
+
s.cloneNode(!0)
|
|
1268
|
+
);
|
|
1269
|
+
if (i) {
|
|
1270
|
+
var d = (
|
|
1271
|
+
/** @type {TemplateNode} */
|
|
1272
|
+
/* @__PURE__ */ ce(u)
|
|
1273
|
+
), f = (
|
|
1274
|
+
/** @type {TemplateNode} */
|
|
1275
|
+
u.lastChild
|
|
1276
|
+
);
|
|
1277
|
+
Oe(d, f);
|
|
1278
|
+
} else
|
|
1279
|
+
Oe(u, u);
|
|
1280
|
+
return u;
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1283
|
+
// @__NO_SIDE_EFFECTS__
|
|
1284
|
+
function j(e, t) {
|
|
1285
|
+
return /* @__PURE__ */ da(e, t, "svg");
|
|
1286
|
+
}
|
|
1287
|
+
function Lt() {
|
|
1288
|
+
if (z)
|
|
1289
|
+
return Oe(U, null), U;
|
|
1290
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = lt();
|
|
1291
|
+
return e.append(t, r), Oe(t, r), e;
|
|
1292
|
+
}
|
|
1293
|
+
function I(e, t) {
|
|
1294
|
+
if (z) {
|
|
1295
|
+
A.nodes_end = U, dt();
|
|
1296
|
+
return;
|
|
1297
|
+
}
|
|
1298
|
+
e !== null && e.before(
|
|
1299
|
+
/** @type {Node} */
|
|
1300
|
+
t
|
|
1301
|
+
);
|
|
1302
|
+
}
|
|
1303
|
+
function fa(e) {
|
|
1304
|
+
return e.endsWith("capture") && e !== "gotpointercapture" && e !== "lostpointercapture";
|
|
1305
|
+
}
|
|
1306
|
+
const va = [
|
|
1307
|
+
"beforeinput",
|
|
1308
|
+
"click",
|
|
1309
|
+
"change",
|
|
1310
|
+
"dblclick",
|
|
1311
|
+
"contextmenu",
|
|
1312
|
+
"focusin",
|
|
1313
|
+
"focusout",
|
|
1314
|
+
"input",
|
|
1315
|
+
"keydown",
|
|
1316
|
+
"keyup",
|
|
1317
|
+
"mousedown",
|
|
1318
|
+
"mousemove",
|
|
1319
|
+
"mouseout",
|
|
1320
|
+
"mouseover",
|
|
1321
|
+
"mouseup",
|
|
1322
|
+
"pointerdown",
|
|
1323
|
+
"pointermove",
|
|
1324
|
+
"pointerout",
|
|
1325
|
+
"pointerover",
|
|
1326
|
+
"pointerup",
|
|
1327
|
+
"touchend",
|
|
1328
|
+
"touchmove",
|
|
1329
|
+
"touchstart"
|
|
1330
|
+
];
|
|
1331
|
+
function ha(e) {
|
|
1332
|
+
return va.includes(e);
|
|
1333
|
+
}
|
|
1334
|
+
const ba = {
|
|
1335
|
+
// no `class: 'className'` because we handle that separately
|
|
1336
|
+
formnovalidate: "formNoValidate",
|
|
1337
|
+
ismap: "isMap",
|
|
1338
|
+
nomodule: "noModule",
|
|
1339
|
+
playsinline: "playsInline",
|
|
1340
|
+
readonly: "readOnly",
|
|
1341
|
+
defaultvalue: "defaultValue",
|
|
1342
|
+
defaultchecked: "defaultChecked",
|
|
1343
|
+
srcobject: "srcObject",
|
|
1344
|
+
novalidate: "noValidate",
|
|
1345
|
+
allowfullscreen: "allowFullscreen",
|
|
1346
|
+
disablepictureinpicture: "disablePictureInPicture",
|
|
1347
|
+
disableremoteplayback: "disableRemotePlayback"
|
|
1348
|
+
};
|
|
1349
|
+
function pa(e) {
|
|
1350
|
+
return e = e.toLowerCase(), ba[e] ?? e;
|
|
1351
|
+
}
|
|
1352
|
+
const ga = ["touchstart", "touchmove"];
|
|
1353
|
+
function ma(e) {
|
|
1354
|
+
return ga.includes(e);
|
|
1355
|
+
}
|
|
1356
|
+
function Vr(e, t) {
|
|
1357
|
+
var r = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1358
|
+
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = r + "");
|
|
1359
|
+
}
|
|
1360
|
+
function _i(e, t) {
|
|
1361
|
+
return ki(e, t);
|
|
1362
|
+
}
|
|
1363
|
+
function wa(e, t) {
|
|
1364
|
+
wr(), t.intro = t.intro ?? !1;
|
|
1365
|
+
const r = t.target, n = z, i = U;
|
|
1366
|
+
try {
|
|
1367
|
+
for (var o = (
|
|
1368
|
+
/** @type {TemplateNode} */
|
|
1369
|
+
/* @__PURE__ */ ce(r)
|
|
1370
|
+
); o && (o.nodeType !== xt || /** @type {Comment} */
|
|
1371
|
+
o.data !== Nr); )
|
|
1372
|
+
o = /** @type {TemplateNode} */
|
|
1373
|
+
/* @__PURE__ */ je(o);
|
|
1374
|
+
if (!o)
|
|
1375
|
+
throw at;
|
|
1376
|
+
we(!0), _e(
|
|
1377
|
+
/** @type {Comment} */
|
|
1378
|
+
o
|
|
1379
|
+
), dt();
|
|
1380
|
+
const s = ki(e, { ...t, anchor: o });
|
|
1381
|
+
if (U === null || U.nodeType !== xt || /** @type {Comment} */
|
|
1382
|
+
U.data !== Tr)
|
|
1383
|
+
throw Gt(), at;
|
|
1384
|
+
return we(!1), /** @type {Exports} */
|
|
1385
|
+
s;
|
|
1386
|
+
} catch (s) {
|
|
1387
|
+
if (s === at)
|
|
1388
|
+
return t.recover === !1 && Ao(), wr(), ti(r), we(!1), _i(e, t);
|
|
1389
|
+
throw s;
|
|
1390
|
+
} finally {
|
|
1391
|
+
we(n), _e(i);
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
const rt = /* @__PURE__ */ new Map();
|
|
1395
|
+
function ki(e, { target: t, anchor: r, props: n = {}, events: i, context: o, intro: s = !0 }) {
|
|
1396
|
+
wr();
|
|
1397
|
+
var a = /* @__PURE__ */ new Set(), l = (f) => {
|
|
1398
|
+
for (var c = 0; c < f.length; c++) {
|
|
1399
|
+
var v = f[c];
|
|
1400
|
+
if (!a.has(v)) {
|
|
1401
|
+
a.add(v);
|
|
1402
|
+
var b = ma(v);
|
|
1403
|
+
t.addEventListener(v, wt, { passive: b });
|
|
1404
|
+
var g = rt.get(v);
|
|
1405
|
+
g === void 0 ? (document.addEventListener(v, wt, { passive: b }), rt.set(v, 1)) : rt.set(v, g + 1);
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
};
|
|
1409
|
+
l(zr(gi)), xr.add(l);
|
|
1410
|
+
var u = void 0, d = Wo(() => {
|
|
1411
|
+
var f = r ?? t.appendChild(lt());
|
|
1412
|
+
return Pe(() => {
|
|
1413
|
+
if (o) {
|
|
1414
|
+
B({});
|
|
1415
|
+
var c = (
|
|
1416
|
+
/** @type {ComponentContext} */
|
|
1417
|
+
P
|
|
1418
|
+
);
|
|
1419
|
+
c.c = o;
|
|
1420
|
+
}
|
|
1421
|
+
i && (n.$$events = i), z && Oe(
|
|
1422
|
+
/** @type {TemplateNode} */
|
|
1423
|
+
f,
|
|
1424
|
+
null
|
|
1425
|
+
), u = e(f, n) || {}, z && (A.nodes_end = U), o && F();
|
|
1426
|
+
}), () => {
|
|
1427
|
+
var b;
|
|
1428
|
+
for (var c of a) {
|
|
1429
|
+
t.removeEventListener(c, wt);
|
|
1430
|
+
var v = (
|
|
1431
|
+
/** @type {number} */
|
|
1432
|
+
rt.get(c)
|
|
1433
|
+
);
|
|
1434
|
+
--v === 0 ? (document.removeEventListener(c, wt), rt.delete(c)) : rt.set(c, v);
|
|
1435
|
+
}
|
|
1436
|
+
xr.delete(l), f !== r && ((b = f.parentNode) == null || b.removeChild(f));
|
|
1437
|
+
};
|
|
1438
|
+
});
|
|
1439
|
+
return Er.set(u, d), u;
|
|
1440
|
+
}
|
|
1441
|
+
let Er = /* @__PURE__ */ new WeakMap();
|
|
1442
|
+
function _a(e, t) {
|
|
1443
|
+
const r = Er.get(e);
|
|
1444
|
+
return r ? (Er.delete(e), r(t)) : Promise.resolve();
|
|
1445
|
+
}
|
|
1446
|
+
function Cr(e, t, ...r) {
|
|
1447
|
+
var n = e, i = ve, o;
|
|
1448
|
+
et(() => {
|
|
1449
|
+
i !== (i = t()) && (o && (oe(o), o = null), o = Pe(() => (
|
|
1450
|
+
/** @type {SnippetFn} */
|
|
1451
|
+
i(n, ...r)
|
|
1452
|
+
)));
|
|
1453
|
+
}, Tt), z && (n = U);
|
|
1454
|
+
}
|
|
1455
|
+
function nr(e) {
|
|
1456
|
+
P === null && Vo(), ut && P.l !== null ? ka(P).m.push(e) : _r(() => {
|
|
1457
|
+
const t = ht(e);
|
|
1458
|
+
if (typeof t == "function") return (
|
|
1459
|
+
/** @type {() => void} */
|
|
1460
|
+
t
|
|
1461
|
+
);
|
|
1462
|
+
});
|
|
1463
|
+
}
|
|
1464
|
+
function ka(e) {
|
|
1465
|
+
var t = (
|
|
1466
|
+
/** @type {ComponentContextLegacy} */
|
|
1467
|
+
e.l
|
|
1468
|
+
);
|
|
1469
|
+
return t.u ?? (t.u = { a: [], b: [], m: [] });
|
|
1470
|
+
}
|
|
1471
|
+
function de(e, t, [r, n] = [0, 0]) {
|
|
1472
|
+
z && r === 0 && dt();
|
|
1473
|
+
var i = e, o = null, s = null, a = ee, l = r > 0 ? Tt : 0, u = !1;
|
|
1474
|
+
const d = (c, v = !0) => {
|
|
1475
|
+
u = !0, f(v, c);
|
|
1476
|
+
}, f = (c, v) => {
|
|
1477
|
+
if (a === (a = c)) return;
|
|
1478
|
+
let b = !1;
|
|
1479
|
+
if (z && n !== -1) {
|
|
1480
|
+
if (r === 0) {
|
|
1481
|
+
const _ = Gn(i);
|
|
1482
|
+
_ === Nr ? n = 0 : _ === Ir ? n = 1 / 0 : (n = parseInt(_.substring(1)), n !== n && (n = a ? 1 / 0 : -1));
|
|
1483
|
+
}
|
|
1484
|
+
const g = n > r;
|
|
1485
|
+
!!a === g && (i = mr(), _e(i), we(!1), b = !0, n = -1);
|
|
1486
|
+
}
|
|
1487
|
+
a ? (o ? Ht(o) : v && (o = Pe(() => v(i))), s && Ct(s, () => {
|
|
1488
|
+
s = null;
|
|
1489
|
+
})) : (s ? Ht(s) : v && (s = Pe(() => v(i, [r + 1, n]))), o && Ct(o, () => {
|
|
1490
|
+
o = null;
|
|
1491
|
+
})), b && we(!0);
|
|
1492
|
+
};
|
|
1493
|
+
et(() => {
|
|
1494
|
+
u = !1, t(d), u || f(null, null);
|
|
1495
|
+
}, l), z && (i = U);
|
|
1496
|
+
}
|
|
1497
|
+
function ya(e, t) {
|
|
1498
|
+
return t;
|
|
1499
|
+
}
|
|
1500
|
+
function xa(e, t, r, n) {
|
|
1501
|
+
for (var i = [], o = t.length, s = 0; s < o; s++)
|
|
1502
|
+
jr(t[s].e, i, !0);
|
|
1503
|
+
var a = o > 0 && i.length === 0 && r !== null;
|
|
1504
|
+
if (a) {
|
|
1505
|
+
var l = (
|
|
1506
|
+
/** @type {Element} */
|
|
1507
|
+
/** @type {Element} */
|
|
1508
|
+
r.parentNode
|
|
1509
|
+
);
|
|
1510
|
+
ti(l), l.append(
|
|
1511
|
+
/** @type {Element} */
|
|
1512
|
+
r
|
|
1513
|
+
), n.clear(), Be(e, t[0].prev, t[o - 1].next);
|
|
1514
|
+
}
|
|
1515
|
+
si(i, () => {
|
|
1516
|
+
for (var u = 0; u < o; u++) {
|
|
1517
|
+
var d = t[u];
|
|
1518
|
+
a || (n.delete(d.k), Be(e, d.prev, d.next)), oe(d.e, !a);
|
|
1519
|
+
}
|
|
1520
|
+
});
|
|
1521
|
+
}
|
|
1522
|
+
function Ea(e, t, r, n, i, o = null) {
|
|
1523
|
+
var s = e, a = { flags: t, items: /* @__PURE__ */ new Map(), first: null };
|
|
1524
|
+
{
|
|
1525
|
+
var l = (
|
|
1526
|
+
/** @type {Element} */
|
|
1527
|
+
e
|
|
1528
|
+
);
|
|
1529
|
+
s = z ? _e(
|
|
1530
|
+
/** @type {Comment | Text} */
|
|
1531
|
+
/* @__PURE__ */ ce(l)
|
|
1532
|
+
) : l.appendChild(lt());
|
|
1533
|
+
}
|
|
1534
|
+
z && dt();
|
|
1535
|
+
var u = null, d = !1, f = /* @__PURE__ */ Kt(() => {
|
|
1536
|
+
var c = r();
|
|
1537
|
+
return Jt(c) ? c : c == null ? [] : zr(c);
|
|
1538
|
+
});
|
|
1539
|
+
et(() => {
|
|
1540
|
+
var c = E(f), v = c.length;
|
|
1541
|
+
if (d && v === 0)
|
|
1542
|
+
return;
|
|
1543
|
+
d = v === 0;
|
|
1544
|
+
let b = !1;
|
|
1545
|
+
if (z) {
|
|
1546
|
+
var g = Gn(s) === Ir;
|
|
1547
|
+
g !== (v === 0) && (s = mr(), _e(s), we(!1), b = !0);
|
|
1548
|
+
}
|
|
1549
|
+
if (z) {
|
|
1550
|
+
for (var _ = null, m, h = 0; h < v; h++) {
|
|
1551
|
+
if (U.nodeType === xt && /** @type {Comment} */
|
|
1552
|
+
U.data === Tr) {
|
|
1553
|
+
s = /** @type {Comment} */
|
|
1554
|
+
U, b = !0, we(!1);
|
|
1555
|
+
break;
|
|
1556
|
+
}
|
|
1557
|
+
var p = c[h], w = n(p, h);
|
|
1558
|
+
m = yi(
|
|
1559
|
+
U,
|
|
1560
|
+
a,
|
|
1561
|
+
_,
|
|
1562
|
+
null,
|
|
1563
|
+
p,
|
|
1564
|
+
w,
|
|
1565
|
+
h,
|
|
1566
|
+
i,
|
|
1567
|
+
t,
|
|
1568
|
+
r
|
|
1569
|
+
), a.items.set(w, m), _ = m;
|
|
1570
|
+
}
|
|
1571
|
+
v > 0 && _e(mr());
|
|
1572
|
+
}
|
|
1573
|
+
z || Ca(c, a, s, i, t, n, r), o !== null && (v === 0 ? u ? Ht(u) : u = Pe(() => o(s)) : u !== null && Ct(u, () => {
|
|
1574
|
+
u = null;
|
|
1575
|
+
})), b && we(!0), E(f);
|
|
1576
|
+
}), z && (s = U);
|
|
1577
|
+
}
|
|
1578
|
+
function Ca(e, t, r, n, i, o, s) {
|
|
1579
|
+
var a = e.length, l = t.items, u = t.first, d = u, f, c = null, v = [], b = [], g, _, m, h;
|
|
1580
|
+
for (h = 0; h < a; h += 1) {
|
|
1581
|
+
if (g = e[h], _ = o(g, h), m = l.get(_), m === void 0) {
|
|
1582
|
+
var p = d ? (
|
|
1583
|
+
/** @type {TemplateNode} */
|
|
1584
|
+
d.e.nodes_start
|
|
1585
|
+
) : r;
|
|
1586
|
+
c = yi(
|
|
1587
|
+
p,
|
|
1588
|
+
t,
|
|
1589
|
+
c,
|
|
1590
|
+
c === null ? t.first : c.next,
|
|
1591
|
+
g,
|
|
1592
|
+
_,
|
|
1593
|
+
h,
|
|
1594
|
+
n,
|
|
1595
|
+
i,
|
|
1596
|
+
s
|
|
1597
|
+
), l.set(_, c), v = [], b = [], d = c.next;
|
|
1598
|
+
continue;
|
|
1599
|
+
}
|
|
1600
|
+
if (Sa(m, g, h), (m.e.f & Ae) !== 0 && Ht(m.e), m !== d) {
|
|
1601
|
+
if (f !== void 0 && f.has(m)) {
|
|
1602
|
+
if (v.length < b.length) {
|
|
1603
|
+
var w = b[0], x;
|
|
1604
|
+
c = w.prev;
|
|
1605
|
+
var M = v[0], $ = v[v.length - 1];
|
|
1606
|
+
for (x = 0; x < v.length; x += 1)
|
|
1607
|
+
$n(v[x], w, r);
|
|
1608
|
+
for (x = 0; x < b.length; x += 1)
|
|
1609
|
+
f.delete(b[x]);
|
|
1610
|
+
Be(t, M.prev, $.next), Be(t, c, M), Be(t, $, w), d = w, c = $, h -= 1, v = [], b = [];
|
|
1611
|
+
} else
|
|
1612
|
+
f.delete(m), $n(m, d, r), Be(t, m.prev, m.next), Be(t, m, c === null ? t.first : c.next), Be(t, c, m), c = m;
|
|
1613
|
+
continue;
|
|
1614
|
+
}
|
|
1615
|
+
for (v = [], b = []; d !== null && d.k !== _; )
|
|
1616
|
+
(d.e.f & Ae) === 0 && (f ?? (f = /* @__PURE__ */ new Set())).add(d), b.push(d), d = d.next;
|
|
1617
|
+
if (d === null)
|
|
1618
|
+
continue;
|
|
1619
|
+
m = d;
|
|
1620
|
+
}
|
|
1621
|
+
v.push(m), c = m, d = m.next;
|
|
1622
|
+
}
|
|
1623
|
+
if (d !== null || f !== void 0) {
|
|
1624
|
+
for (var T = f === void 0 ? [] : zr(f); d !== null; )
|
|
1625
|
+
(d.e.f & Ae) === 0 && T.push(d), d = d.next;
|
|
1626
|
+
var q = T.length;
|
|
1627
|
+
if (q > 0) {
|
|
1628
|
+
var H = a === 0 ? r : null;
|
|
1629
|
+
xa(t, T, H, l);
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
A.first = t.first && t.first.e, A.last = c && c.e;
|
|
1633
|
+
}
|
|
1634
|
+
function Sa(e, t, r, n) {
|
|
1635
|
+
Wn(e.v, t), e.i = r;
|
|
1636
|
+
}
|
|
1637
|
+
function yi(e, t, r, n, i, o, s, a, l, u) {
|
|
1638
|
+
var d = (l & bo) !== 0, f = (l & go) === 0, c = d ? f ? /* @__PURE__ */ zt(i, !1, !1) : st(i) : i, v = (l & po) === 0 ? s : st(s), b = {
|
|
1639
|
+
i: v,
|
|
1640
|
+
v: c,
|
|
1641
|
+
k: o,
|
|
1642
|
+
a: null,
|
|
1643
|
+
// @ts-expect-error
|
|
1644
|
+
e: null,
|
|
1645
|
+
prev: r,
|
|
1646
|
+
next: n
|
|
1647
|
+
};
|
|
1648
|
+
try {
|
|
1649
|
+
return b.e = Pe(() => a(e, c, v, u), z), b.e.prev = r && r.e, b.e.next = n && n.e, r === null ? t.first = b : (r.next = b, r.e.next = b.e), n !== null && (n.prev = b, n.e.prev = b.e), b;
|
|
1650
|
+
} finally {
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
function $n(e, t, r) {
|
|
1654
|
+
for (var n = e.next ? (
|
|
1655
|
+
/** @type {TemplateNode} */
|
|
1656
|
+
e.next.e.nodes_start
|
|
1657
|
+
) : r, i = t ? (
|
|
1658
|
+
/** @type {TemplateNode} */
|
|
1659
|
+
t.e.nodes_start
|
|
1660
|
+
) : r, o = (
|
|
1661
|
+
/** @type {TemplateNode} */
|
|
1662
|
+
e.e.nodes_start
|
|
1663
|
+
); o !== n; ) {
|
|
1664
|
+
var s = (
|
|
1665
|
+
/** @type {TemplateNode} */
|
|
1666
|
+
/* @__PURE__ */ je(o)
|
|
1667
|
+
);
|
|
1668
|
+
i.before(o), o = s;
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
function Be(e, t, r) {
|
|
1672
|
+
t === null ? e.first = r : (t.next = r, t.e.next = r && r.e), r !== null && (r.prev = t, r.e.prev = t && t.e);
|
|
1673
|
+
}
|
|
1674
|
+
function ir(e, t, r, n, i) {
|
|
1675
|
+
var a;
|
|
1676
|
+
z && dt();
|
|
1677
|
+
var o = (a = t.$$slots) == null ? void 0 : a[r], s = !1;
|
|
1678
|
+
o === !0 && (o = t.children, s = !0), o === void 0 || o(e, s ? () => n : n);
|
|
1679
|
+
}
|
|
1680
|
+
function $a(e, t, r) {
|
|
1681
|
+
z && dt();
|
|
1682
|
+
var n = e, i, o;
|
|
1683
|
+
et(() => {
|
|
1684
|
+
i !== (i = t()) && (o && (Ct(o), o = null), i && (o = Pe(() => r(n, i))));
|
|
1685
|
+
}, Tt), z && (n = U);
|
|
1686
|
+
}
|
|
1687
|
+
function bt(e, t) {
|
|
1688
|
+
er(() => {
|
|
1689
|
+
var r = e.getRootNode(), n = (
|
|
1690
|
+
/** @type {ShadowRoot} */
|
|
1691
|
+
r.host ? (
|
|
1692
|
+
/** @type {ShadowRoot} */
|
|
1693
|
+
r
|
|
1694
|
+
) : (
|
|
1695
|
+
/** @type {Document} */
|
|
1696
|
+
r.head ?? /** @type {Document} */
|
|
1697
|
+
r.ownerDocument.head
|
|
1698
|
+
)
|
|
1699
|
+
);
|
|
1700
|
+
if (!n.querySelector("#" + t.hash)) {
|
|
1701
|
+
const i = document.createElement("style");
|
|
1702
|
+
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
1703
|
+
}
|
|
1704
|
+
});
|
|
1705
|
+
}
|
|
1706
|
+
function Na(e, t) {
|
|
1707
|
+
var r = void 0, n;
|
|
1708
|
+
et(() => {
|
|
1709
|
+
r !== (r = t()) && (n && (oe(n), n = null), r && (n = Pe(() => {
|
|
1710
|
+
Dr(() => (
|
|
1711
|
+
/** @type {(node: Element) => void} */
|
|
1712
|
+
r(e)
|
|
1713
|
+
));
|
|
1714
|
+
})));
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
function xi(e) {
|
|
1718
|
+
var t, r, n = "";
|
|
1719
|
+
if (typeof e == "string" || typeof e == "number") n += e;
|
|
1720
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1721
|
+
var i = e.length;
|
|
1722
|
+
for (t = 0; t < i; t++) e[t] && (r = xi(e[t])) && (n && (n += " "), n += r);
|
|
1723
|
+
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
1724
|
+
return n;
|
|
1725
|
+
}
|
|
1726
|
+
function Ia() {
|
|
1727
|
+
for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = xi(e)) && (n && (n += " "), n += t);
|
|
1728
|
+
return n;
|
|
1729
|
+
}
|
|
1730
|
+
function Ta(e) {
|
|
1731
|
+
return typeof e == "object" ? Ia(e) : e ?? "";
|
|
1732
|
+
}
|
|
1733
|
+
const Nn = [...`
|
|
1734
|
+
\r\f \v\uFEFF`];
|
|
1735
|
+
function za(e, t, r) {
|
|
1736
|
+
var n = e == null ? "" : "" + e;
|
|
1737
|
+
if (t && (n = n ? n + " " + t : t), r) {
|
|
1738
|
+
for (var i in r)
|
|
1739
|
+
if (r[i])
|
|
1740
|
+
n = n ? n + " " + i : i;
|
|
1741
|
+
else if (n.length)
|
|
1742
|
+
for (var o = i.length, s = 0; (s = n.indexOf(i, s)) >= 0; ) {
|
|
1743
|
+
var a = s + o;
|
|
1744
|
+
(s === 0 || Nn.includes(n[s - 1])) && (a === n.length || Nn.includes(n[a])) ? n = (s === 0 ? "" : n.substring(0, s)) + n.substring(a + 1) : s = a;
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
return n === "" ? null : n;
|
|
1748
|
+
}
|
|
1749
|
+
function In(e, t = !1) {
|
|
1750
|
+
var r = t ? " !important;" : ";", n = "";
|
|
1751
|
+
for (var i in e) {
|
|
1752
|
+
var o = e[i];
|
|
1753
|
+
o != null && o !== "" && (n += " " + i + ": " + o + r);
|
|
1754
|
+
}
|
|
1755
|
+
return n;
|
|
1756
|
+
}
|
|
1757
|
+
function hr(e) {
|
|
1758
|
+
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1759
|
+
}
|
|
1760
|
+
function Ma(e, t) {
|
|
1761
|
+
if (t) {
|
|
1762
|
+
var r = "", n, i;
|
|
1763
|
+
if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
|
|
1764
|
+
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
1765
|
+
var o = !1, s = 0, a = !1, l = [];
|
|
1766
|
+
n && l.push(...Object.keys(n).map(hr)), i && l.push(...Object.keys(i).map(hr));
|
|
1767
|
+
var u = 0, d = -1;
|
|
1768
|
+
const g = e.length;
|
|
1769
|
+
for (var f = 0; f < g; f++) {
|
|
1770
|
+
var c = e[f];
|
|
1771
|
+
if (a ? c === "/" && e[f - 1] === "*" && (a = !1) : o ? o === c && (o = !1) : c === "/" && e[f + 1] === "*" ? a = !0 : c === '"' || c === "'" ? o = c : c === "(" ? s++ : c === ")" && s--, !a && o === !1 && s === 0) {
|
|
1772
|
+
if (c === ":" && d === -1)
|
|
1773
|
+
d = f;
|
|
1774
|
+
else if (c === ";" || f === g - 1) {
|
|
1775
|
+
if (d !== -1) {
|
|
1776
|
+
var v = hr(e.substring(u, d).trim());
|
|
1777
|
+
if (!l.includes(v)) {
|
|
1778
|
+
c !== ";" && f++;
|
|
1779
|
+
var b = e.substring(u, f).trim();
|
|
1780
|
+
r += " " + b + ";";
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
u = f + 1, d = -1;
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
return n && (r += In(n)), i && (r += In(i, !0)), r = r.trim(), r === "" ? null : r;
|
|
1789
|
+
}
|
|
1790
|
+
return e == null ? null : String(e);
|
|
1791
|
+
}
|
|
1792
|
+
function ue(e, t, r, n, i, o) {
|
|
1793
|
+
var s = e.__className;
|
|
1794
|
+
if (z || s !== r || s === void 0) {
|
|
1795
|
+
var a = za(r, n, o);
|
|
1796
|
+
(!z || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e.__className = r;
|
|
1797
|
+
} else if (o && i !== o)
|
|
1798
|
+
for (var l in o) {
|
|
1799
|
+
var u = !!o[l];
|
|
1800
|
+
(i == null || u !== !!i[l]) && e.classList.toggle(l, u);
|
|
1801
|
+
}
|
|
1802
|
+
return o;
|
|
1803
|
+
}
|
|
1804
|
+
function br(e, t = {}, r, n) {
|
|
1805
|
+
for (var i in r) {
|
|
1806
|
+
var o = r[i];
|
|
1807
|
+
t[i] !== o && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, n));
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
function La(e, t, r, n) {
|
|
1811
|
+
var i = e.__style;
|
|
1812
|
+
if (z || i !== t) {
|
|
1813
|
+
var o = Ma(t, n);
|
|
1814
|
+
(!z || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
|
|
1815
|
+
} else n && (Array.isArray(n) ? (br(e, r == null ? void 0 : r[0], n[0]), br(e, r == null ? void 0 : r[1], n[1], "important")) : br(e, r, n));
|
|
1816
|
+
return n;
|
|
1817
|
+
}
|
|
1818
|
+
function Sr(e, t, r = !1) {
|
|
1819
|
+
if (e.multiple) {
|
|
1820
|
+
if (t == null)
|
|
1821
|
+
return;
|
|
1822
|
+
if (!Jt(t))
|
|
1823
|
+
return Fo();
|
|
1824
|
+
for (var n of e.options)
|
|
1825
|
+
n.selected = t.includes(Tn(n));
|
|
1826
|
+
return;
|
|
1827
|
+
}
|
|
1828
|
+
for (n of e.options) {
|
|
1829
|
+
var i = Tn(n);
|
|
1830
|
+
if (Ro(i, t)) {
|
|
1831
|
+
n.selected = !0;
|
|
1832
|
+
return;
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
1836
|
+
}
|
|
1837
|
+
function Ua(e) {
|
|
1838
|
+
var t = new MutationObserver(() => {
|
|
1839
|
+
Sr(e, e.__value);
|
|
1840
|
+
});
|
|
1841
|
+
t.observe(e, {
|
|
1842
|
+
// Listen to option element changes
|
|
1843
|
+
childList: !0,
|
|
1844
|
+
subtree: !0,
|
|
1845
|
+
// because of <optgroup>
|
|
1846
|
+
// Listen to option element value attribute changes
|
|
1847
|
+
// (doesn't get notified of select value changes,
|
|
1848
|
+
// because that property is not reflected as an attribute)
|
|
1849
|
+
attributes: !0,
|
|
1850
|
+
attributeFilter: ["value"]
|
|
1851
|
+
}), Xt(() => {
|
|
1852
|
+
t.disconnect();
|
|
1853
|
+
});
|
|
1854
|
+
}
|
|
1855
|
+
function Tn(e) {
|
|
1856
|
+
return "__value" in e ? e.__value : e.value;
|
|
1857
|
+
}
|
|
1858
|
+
const it = Symbol("class"), mt = Symbol("style"), Ei = Symbol("is custom element"), Ci = Symbol("is html");
|
|
1859
|
+
function Aa(e, t) {
|
|
1860
|
+
t ? e.hasAttribute("selected") || e.setAttribute("selected", "") : e.removeAttribute("selected");
|
|
1861
|
+
}
|
|
1862
|
+
function G(e, t, r, n) {
|
|
1863
|
+
var i = Si(e);
|
|
1864
|
+
z && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || i[t] !== (i[t] = r) && (t === "loading" && (e[To] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && $i(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1865
|
+
}
|
|
1866
|
+
function Oa(e, t, r, n, i = !1) {
|
|
1867
|
+
var o = Si(e), s = o[Ei], a = !o[Ci];
|
|
1868
|
+
let l = z && s;
|
|
1869
|
+
l && we(!1);
|
|
1870
|
+
var u = t || {}, d = e.tagName === "OPTION";
|
|
1871
|
+
for (var f in t)
|
|
1872
|
+
f in r || (r[f] = null);
|
|
1873
|
+
r.class ? r.class = Ta(r.class) : (n || r[it]) && (r.class = null), r[mt] && (r.style ?? (r.style = null));
|
|
1874
|
+
var c = $i(e);
|
|
1875
|
+
for (const p in r) {
|
|
1876
|
+
let w = r[p];
|
|
1877
|
+
if (d && p === "value" && w == null) {
|
|
1878
|
+
e.value = e.__value = "", u[p] = w;
|
|
1879
|
+
continue;
|
|
1880
|
+
}
|
|
1881
|
+
if (p === "class") {
|
|
1882
|
+
var v = e.namespaceURI === "http://www.w3.org/1999/xhtml";
|
|
1883
|
+
ue(e, v, w, n, t == null ? void 0 : t[it], r[it]), u[p] = w, u[it] = r[it];
|
|
1884
|
+
continue;
|
|
1885
|
+
}
|
|
1886
|
+
if (p === "style") {
|
|
1887
|
+
La(e, w, t == null ? void 0 : t[mt], r[mt]), u[p] = w, u[mt] = r[mt];
|
|
1888
|
+
continue;
|
|
1889
|
+
}
|
|
1890
|
+
var b = u[p];
|
|
1891
|
+
if (!(w === b && !(w === void 0 && e.hasAttribute(p)))) {
|
|
1892
|
+
u[p] = w;
|
|
1893
|
+
var g = p[0] + p[1];
|
|
1894
|
+
if (g !== "$$")
|
|
1895
|
+
if (g === "on") {
|
|
1896
|
+
const x = {}, M = "$$" + p;
|
|
1897
|
+
let $ = p.slice(2);
|
|
1898
|
+
var _ = ha($);
|
|
1899
|
+
if (fa($) && ($ = $.slice(0, -7), x.capture = !0), !_ && b) {
|
|
1900
|
+
if (w != null) continue;
|
|
1901
|
+
e.removeEventListener($, u[M], x), u[M] = null;
|
|
1902
|
+
}
|
|
1903
|
+
if (w != null)
|
|
1904
|
+
if (_)
|
|
1905
|
+
e[`__${$}`] = w, Hr([$]);
|
|
1906
|
+
else {
|
|
1907
|
+
let T = function(q) {
|
|
1908
|
+
u[p].call(this, q);
|
|
1909
|
+
};
|
|
1910
|
+
u[M] = mi($, e, T, x);
|
|
1911
|
+
}
|
|
1912
|
+
else _ && (e[`__${$}`] = void 0);
|
|
1913
|
+
} else if (p === "style")
|
|
1914
|
+
G(e, p, w);
|
|
1915
|
+
else if (p === "autofocus")
|
|
1916
|
+
ua(
|
|
1917
|
+
/** @type {HTMLElement} */
|
|
1918
|
+
e,
|
|
1919
|
+
!!w
|
|
1920
|
+
);
|
|
1921
|
+
else if (!s && (p === "__value" || p === "value" && w != null))
|
|
1922
|
+
e.value = e.__value = w;
|
|
1923
|
+
else if (p === "selected" && d)
|
|
1924
|
+
Aa(
|
|
1925
|
+
/** @type {HTMLOptionElement} */
|
|
1926
|
+
e,
|
|
1927
|
+
w
|
|
1928
|
+
);
|
|
1929
|
+
else {
|
|
1930
|
+
var m = p;
|
|
1931
|
+
a || (m = pa(m));
|
|
1932
|
+
var h = m === "defaultValue" || m === "defaultChecked";
|
|
1933
|
+
if (w == null && !s && !h)
|
|
1934
|
+
if (o[p] = null, m === "value" || m === "checked") {
|
|
1935
|
+
let x = (
|
|
1936
|
+
/** @type {HTMLInputElement} */
|
|
1937
|
+
e
|
|
1938
|
+
);
|
|
1939
|
+
const M = t === void 0;
|
|
1940
|
+
if (m === "value") {
|
|
1941
|
+
let $ = x.defaultValue;
|
|
1942
|
+
x.removeAttribute(m), x.defaultValue = $, x.value = x.__value = M ? $ : null;
|
|
1943
|
+
} else {
|
|
1944
|
+
let $ = x.defaultChecked;
|
|
1945
|
+
x.removeAttribute(m), x.defaultChecked = $, x.checked = M ? $ : !1;
|
|
1946
|
+
}
|
|
1947
|
+
} else
|
|
1948
|
+
e.removeAttribute(p);
|
|
1949
|
+
else h || c.includes(m) && (s || typeof w != "string") ? e[m] = w : typeof w != "function" && G(e, m, w);
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
return l && we(!0), u;
|
|
1954
|
+
}
|
|
1955
|
+
function Ft(e, t, r = [], n, i = !1, o = ct) {
|
|
1956
|
+
const s = r.map(o);
|
|
1957
|
+
var a = void 0, l = {}, u = e.nodeName === "SELECT", d = !1;
|
|
1958
|
+
if (et(() => {
|
|
1959
|
+
var c = t(...s.map(E)), v = Oa(e, a, c, n, i);
|
|
1960
|
+
d && u && "value" in c && Sr(
|
|
1961
|
+
/** @type {HTMLSelectElement} */
|
|
1962
|
+
e,
|
|
1963
|
+
c.value
|
|
1964
|
+
);
|
|
1965
|
+
for (let g of Object.getOwnPropertySymbols(l))
|
|
1966
|
+
c[g] || oe(l[g]);
|
|
1967
|
+
for (let g of Object.getOwnPropertySymbols(c)) {
|
|
1968
|
+
var b = c[g];
|
|
1969
|
+
g.description === Eo && (!a || b !== a[g]) && (l[g] && oe(l[g]), l[g] = Pe(() => Na(e, () => b))), v[g] = b;
|
|
1970
|
+
}
|
|
1971
|
+
a = v;
|
|
1972
|
+
}), u) {
|
|
1973
|
+
var f = (
|
|
1974
|
+
/** @type {HTMLSelectElement} */
|
|
1975
|
+
e
|
|
1976
|
+
);
|
|
1977
|
+
Dr(() => {
|
|
1978
|
+
Sr(
|
|
1979
|
+
f,
|
|
1980
|
+
/** @type {Record<string | symbol, any>} */
|
|
1981
|
+
a.value,
|
|
1982
|
+
!0
|
|
1983
|
+
), Ua(f);
|
|
1984
|
+
});
|
|
1985
|
+
}
|
|
1986
|
+
d = !0;
|
|
1987
|
+
}
|
|
1988
|
+
function Si(e) {
|
|
1989
|
+
return (
|
|
1990
|
+
/** @type {Record<string | symbol, unknown>} **/
|
|
1991
|
+
// @ts-expect-error
|
|
1992
|
+
e.__attributes ?? (e.__attributes = {
|
|
1993
|
+
[Ei]: e.nodeName.includes("-"),
|
|
1994
|
+
[Ci]: e.namespaceURI === xo
|
|
1995
|
+
})
|
|
1996
|
+
);
|
|
1997
|
+
}
|
|
1998
|
+
var zn = /* @__PURE__ */ new Map();
|
|
1999
|
+
function $i(e) {
|
|
2000
|
+
var t = zn.get(e.nodeName);
|
|
2001
|
+
if (t) return t;
|
|
2002
|
+
zn.set(e.nodeName, t = []);
|
|
2003
|
+
for (var r, n = e, i = Element.prototype; i !== n; ) {
|
|
2004
|
+
r = Pn(n);
|
|
2005
|
+
for (var o in r)
|
|
2006
|
+
r[o].set && t.push(o);
|
|
2007
|
+
n = Mr(n);
|
|
2008
|
+
}
|
|
2009
|
+
return t;
|
|
2010
|
+
}
|
|
2011
|
+
function Mn(e, t) {
|
|
2012
|
+
return e === t || (e == null ? void 0 : e[Te]) === t;
|
|
2013
|
+
}
|
|
2014
|
+
function Ni(e = {}, t, r, n) {
|
|
2015
|
+
return Dr(() => {
|
|
2016
|
+
var i, o;
|
|
2017
|
+
return Qt(() => {
|
|
2018
|
+
i = o, o = [], ht(() => {
|
|
2019
|
+
e !== r(...o) && (t(e, ...o), i && Mn(r(...i), e) && t(null, ...i));
|
|
2020
|
+
});
|
|
2021
|
+
}), () => {
|
|
2022
|
+
er(() => {
|
|
2023
|
+
o && Mn(r(...o), e) && t(null, ...o);
|
|
2024
|
+
});
|
|
2025
|
+
};
|
|
2026
|
+
}), e;
|
|
2027
|
+
}
|
|
2028
|
+
function Ii(e = !1) {
|
|
2029
|
+
const t = (
|
|
2030
|
+
/** @type {ComponentContextLegacy} */
|
|
2031
|
+
P
|
|
2032
|
+
), r = t.l.u;
|
|
2033
|
+
if (!r) return;
|
|
2034
|
+
let n = () => pi(t.s);
|
|
2035
|
+
if (e) {
|
|
2036
|
+
let i = 0, o = (
|
|
2037
|
+
/** @type {Record<string, any>} */
|
|
2038
|
+
{}
|
|
2039
|
+
);
|
|
2040
|
+
const s = /* @__PURE__ */ ct(() => {
|
|
2041
|
+
let a = !1;
|
|
2042
|
+
const l = t.s;
|
|
2043
|
+
for (const u in l)
|
|
2044
|
+
l[u] !== o[u] && (o[u] = l[u], a = !0);
|
|
2045
|
+
return a && i++, i;
|
|
2046
|
+
});
|
|
2047
|
+
n = () => E(s);
|
|
2048
|
+
}
|
|
2049
|
+
r.b.length && Zo(() => {
|
|
2050
|
+
Ln(t, n), yt(r.b);
|
|
2051
|
+
}), _r(() => {
|
|
2052
|
+
const i = ht(() => r.m.map(No));
|
|
2053
|
+
return () => {
|
|
2054
|
+
for (const o of i)
|
|
2055
|
+
typeof o == "function" && o();
|
|
2056
|
+
};
|
|
2057
|
+
}), r.a.length && _r(() => {
|
|
2058
|
+
Ln(t, n), yt(r.a);
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
2061
|
+
function Ln(e, t) {
|
|
2062
|
+
if (e.l.s)
|
|
2063
|
+
for (const r of e.l.s) E(r);
|
|
2064
|
+
t();
|
|
2065
|
+
}
|
|
2066
|
+
function Rr(e, t, r) {
|
|
2067
|
+
if (e == null)
|
|
2068
|
+
return t(void 0), r && r(void 0), ve;
|
|
2069
|
+
const n = ht(
|
|
2070
|
+
() => e.subscribe(
|
|
2071
|
+
t,
|
|
2072
|
+
// @ts-expect-error
|
|
2073
|
+
r
|
|
2074
|
+
)
|
|
2075
|
+
);
|
|
2076
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
2077
|
+
}
|
|
2078
|
+
const nt = [];
|
|
2079
|
+
function qa(e, t) {
|
|
2080
|
+
return {
|
|
2081
|
+
subscribe: or(e, t).subscribe
|
|
2082
|
+
};
|
|
2083
|
+
}
|
|
2084
|
+
function or(e, t = ve) {
|
|
2085
|
+
let r = null;
|
|
2086
|
+
const n = /* @__PURE__ */ new Set();
|
|
2087
|
+
function i(a) {
|
|
2088
|
+
if (Bn(e, a) && (e = a, r)) {
|
|
2089
|
+
const l = !nt.length;
|
|
2090
|
+
for (const u of n)
|
|
2091
|
+
u[1](), nt.push(u, e);
|
|
2092
|
+
if (l) {
|
|
2093
|
+
for (let u = 0; u < nt.length; u += 2)
|
|
2094
|
+
nt[u][0](nt[u + 1]);
|
|
2095
|
+
nt.length = 0;
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
function o(a) {
|
|
2100
|
+
i(a(
|
|
2101
|
+
/** @type {T} */
|
|
2102
|
+
e
|
|
2103
|
+
));
|
|
2104
|
+
}
|
|
2105
|
+
function s(a, l = ve) {
|
|
2106
|
+
const u = [a, l];
|
|
2107
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || ve), a(
|
|
2108
|
+
/** @type {T} */
|
|
2109
|
+
e
|
|
2110
|
+
), () => {
|
|
2111
|
+
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
2112
|
+
};
|
|
2113
|
+
}
|
|
2114
|
+
return { set: i, update: o, subscribe: s };
|
|
2115
|
+
}
|
|
2116
|
+
function Pa(e, t, r) {
|
|
2117
|
+
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
2118
|
+
if (!i.every(Boolean))
|
|
2119
|
+
throw new Error("derived() expects stores as input, got a falsy value");
|
|
2120
|
+
const o = t.length < 2;
|
|
2121
|
+
return qa(r, (s, a) => {
|
|
2122
|
+
let l = !1;
|
|
2123
|
+
const u = [];
|
|
2124
|
+
let d = 0, f = ve;
|
|
2125
|
+
const c = () => {
|
|
2126
|
+
if (d)
|
|
2127
|
+
return;
|
|
2128
|
+
f();
|
|
2129
|
+
const b = t(n ? u[0] : u, s, a);
|
|
2130
|
+
o ? s(b) : f = typeof b == "function" ? b : ve;
|
|
2131
|
+
}, v = i.map(
|
|
2132
|
+
(b, g) => Rr(
|
|
2133
|
+
b,
|
|
2134
|
+
(_) => {
|
|
2135
|
+
u[g] = _, d &= ~(1 << g), l && c();
|
|
2136
|
+
},
|
|
2137
|
+
() => {
|
|
2138
|
+
d |= 1 << g;
|
|
2139
|
+
}
|
|
2140
|
+
)
|
|
2141
|
+
);
|
|
2142
|
+
return l = !0, c(), function() {
|
|
2143
|
+
yt(v), f(), l = !1;
|
|
2144
|
+
};
|
|
2145
|
+
});
|
|
2146
|
+
}
|
|
2147
|
+
function Da(e) {
|
|
2148
|
+
let t;
|
|
2149
|
+
return Rr(e, (r) => t = r)(), t;
|
|
2150
|
+
}
|
|
2151
|
+
let Ot = !1, $r = Symbol();
|
|
2152
|
+
function fe(e, t, r) {
|
|
2153
|
+
const n = r[t] ?? (r[t] = {
|
|
2154
|
+
store: null,
|
|
2155
|
+
source: /* @__PURE__ */ zt(void 0),
|
|
2156
|
+
unsubscribe: ve
|
|
2157
|
+
});
|
|
2158
|
+
if (n.store !== e && !($r in r))
|
|
2159
|
+
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
2160
|
+
n.source.v = void 0, n.unsubscribe = ve;
|
|
2161
|
+
else {
|
|
2162
|
+
var i = !0;
|
|
2163
|
+
n.unsubscribe = Rr(e, (o) => {
|
|
2164
|
+
i ? n.source.v = o : O(n.source, o);
|
|
2165
|
+
}), i = !1;
|
|
2166
|
+
}
|
|
2167
|
+
return e && $r in r ? Da(e) : E(n.source);
|
|
2168
|
+
}
|
|
2169
|
+
function Ut() {
|
|
2170
|
+
const e = {};
|
|
2171
|
+
function t() {
|
|
2172
|
+
Xt(() => {
|
|
2173
|
+
for (var r in e)
|
|
2174
|
+
e[r].unsubscribe();
|
|
2175
|
+
kt(e, $r, {
|
|
2176
|
+
enumerable: !1,
|
|
2177
|
+
value: !0
|
|
2178
|
+
});
|
|
2179
|
+
});
|
|
2180
|
+
}
|
|
2181
|
+
return [e, t];
|
|
2182
|
+
}
|
|
2183
|
+
function ja(e) {
|
|
2184
|
+
var t = Ot;
|
|
2185
|
+
try {
|
|
2186
|
+
return Ot = !1, [e(), Ot];
|
|
2187
|
+
} finally {
|
|
2188
|
+
Ot = t;
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
const Ha = {
|
|
2192
|
+
get(e, t) {
|
|
2193
|
+
if (!e.exclude.includes(t))
|
|
2194
|
+
return e.props[t];
|
|
2195
|
+
},
|
|
2196
|
+
set(e, t) {
|
|
2197
|
+
return !1;
|
|
2198
|
+
},
|
|
2199
|
+
getOwnPropertyDescriptor(e, t) {
|
|
2200
|
+
if (!e.exclude.includes(t) && t in e.props)
|
|
2201
|
+
return {
|
|
2202
|
+
enumerable: !0,
|
|
2203
|
+
configurable: !0,
|
|
2204
|
+
value: e.props[t]
|
|
2205
|
+
};
|
|
2206
|
+
},
|
|
2207
|
+
has(e, t) {
|
|
2208
|
+
return e.exclude.includes(t) ? !1 : t in e.props;
|
|
2209
|
+
},
|
|
2210
|
+
ownKeys(e) {
|
|
2211
|
+
return Reflect.ownKeys(e.props).filter((t) => !e.exclude.includes(t));
|
|
2212
|
+
}
|
|
2213
|
+
};
|
|
2214
|
+
// @__NO_SIDE_EFFECTS__
|
|
2215
|
+
function Br(e, t, r) {
|
|
2216
|
+
return new Proxy(
|
|
2217
|
+
{ props: e, exclude: t },
|
|
2218
|
+
Ha
|
|
2219
|
+
);
|
|
2220
|
+
}
|
|
2221
|
+
const Va = {
|
|
2222
|
+
get(e, t) {
|
|
2223
|
+
if (!e.exclude.includes(t))
|
|
2224
|
+
return E(e.version), t in e.special ? e.special[t]() : e.props[t];
|
|
2225
|
+
},
|
|
2226
|
+
set(e, t, r) {
|
|
2227
|
+
return t in e.special || (e.special[t] = y(
|
|
2228
|
+
{
|
|
2229
|
+
get [t]() {
|
|
2230
|
+
return e.props[t];
|
|
2231
|
+
}
|
|
2232
|
+
},
|
|
2233
|
+
/** @type {string} */
|
|
2234
|
+
t,
|
|
2235
|
+
On
|
|
2236
|
+
)), e.special[t](r), En(e.version), !0;
|
|
2237
|
+
},
|
|
2238
|
+
getOwnPropertyDescriptor(e, t) {
|
|
2239
|
+
if (!e.exclude.includes(t) && t in e.props)
|
|
2240
|
+
return {
|
|
2241
|
+
enumerable: !0,
|
|
2242
|
+
configurable: !0,
|
|
2243
|
+
value: e.props[t]
|
|
2244
|
+
};
|
|
2245
|
+
},
|
|
2246
|
+
deleteProperty(e, t) {
|
|
2247
|
+
return e.exclude.includes(t) || (e.exclude.push(t), En(e.version)), !0;
|
|
2248
|
+
},
|
|
2249
|
+
has(e, t) {
|
|
2250
|
+
return e.exclude.includes(t) ? !1 : t in e.props;
|
|
2251
|
+
},
|
|
2252
|
+
ownKeys(e) {
|
|
2253
|
+
return Reflect.ownKeys(e.props).filter((t) => !e.exclude.includes(t));
|
|
2254
|
+
}
|
|
2255
|
+
};
|
|
2256
|
+
function Yt(e, t) {
|
|
2257
|
+
return new Proxy({ props: e, exclude: t, special: {}, version: st(0) }, Va);
|
|
2258
|
+
}
|
|
2259
|
+
const Ra = {
|
|
2260
|
+
get(e, t) {
|
|
2261
|
+
let r = e.props.length;
|
|
2262
|
+
for (; r--; ) {
|
|
2263
|
+
let n = e.props[r];
|
|
2264
|
+
if (gt(n) && (n = n()), typeof n == "object" && n !== null && t in n) return n[t];
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2267
|
+
set(e, t, r) {
|
|
2268
|
+
let n = e.props.length;
|
|
2269
|
+
for (; n--; ) {
|
|
2270
|
+
let i = e.props[n];
|
|
2271
|
+
gt(i) && (i = i());
|
|
2272
|
+
const o = Ue(i, t);
|
|
2273
|
+
if (o && o.set)
|
|
2274
|
+
return o.set(r), !0;
|
|
2275
|
+
}
|
|
2276
|
+
return !1;
|
|
2277
|
+
},
|
|
2278
|
+
getOwnPropertyDescriptor(e, t) {
|
|
2279
|
+
let r = e.props.length;
|
|
2280
|
+
for (; r--; ) {
|
|
2281
|
+
let n = e.props[r];
|
|
2282
|
+
if (gt(n) && (n = n()), typeof n == "object" && n !== null && t in n) {
|
|
2283
|
+
const i = Ue(n, t);
|
|
2284
|
+
return i && !i.configurable && (i.configurable = !0), i;
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
},
|
|
2288
|
+
has(e, t) {
|
|
2289
|
+
if (t === Te || t === Pr) return !1;
|
|
2290
|
+
for (let r of e.props)
|
|
2291
|
+
if (gt(r) && (r = r()), r != null && t in r) return !0;
|
|
2292
|
+
return !1;
|
|
2293
|
+
},
|
|
2294
|
+
ownKeys(e) {
|
|
2295
|
+
const t = [];
|
|
2296
|
+
for (let r of e.props)
|
|
2297
|
+
if (gt(r) && (r = r()), !!r) {
|
|
2298
|
+
for (const n in r)
|
|
2299
|
+
t.includes(n) || t.push(n);
|
|
2300
|
+
for (const n of Object.getOwnPropertySymbols(r))
|
|
2301
|
+
t.includes(n) || t.push(n);
|
|
2302
|
+
}
|
|
2303
|
+
return t;
|
|
2304
|
+
}
|
|
2305
|
+
};
|
|
2306
|
+
function Ti(...e) {
|
|
2307
|
+
return new Proxy({ props: e }, Ra);
|
|
2308
|
+
}
|
|
2309
|
+
function Ba(e) {
|
|
2310
|
+
var t;
|
|
2311
|
+
return ((t = e.ctx) == null ? void 0 : t.d) ?? !1;
|
|
2312
|
+
}
|
|
2313
|
+
function y(e, t, r, n) {
|
|
2314
|
+
var m;
|
|
2315
|
+
var i = !ut || (r & wo) !== 0, o = (r & _o) !== 0, s = (r & ko) !== 0, a = (
|
|
2316
|
+
/** @type {V} */
|
|
2317
|
+
n
|
|
2318
|
+
), l = !0, u = () => (l && (l = !1, a = s ? ht(
|
|
2319
|
+
/** @type {() => V} */
|
|
2320
|
+
n
|
|
2321
|
+
) : (
|
|
2322
|
+
/** @type {V} */
|
|
2323
|
+
n
|
|
2324
|
+
)), a), d;
|
|
2325
|
+
if (o) {
|
|
2326
|
+
var f = Te in e || Pr in e;
|
|
2327
|
+
d = ((m = Ue(e, t)) == null ? void 0 : m.set) ?? (f && t in e ? (h) => e[t] = h : void 0);
|
|
2328
|
+
}
|
|
2329
|
+
var c, v = !1;
|
|
2330
|
+
o ? [c, v] = ja(() => (
|
|
2331
|
+
/** @type {V} */
|
|
2332
|
+
e[t]
|
|
2333
|
+
)) : c = /** @type {V} */
|
|
2334
|
+
e[t], c === void 0 && n !== void 0 && (c = u(), d && (i && Oo(), d(c)));
|
|
2335
|
+
var b;
|
|
2336
|
+
if (i ? b = () => {
|
|
2337
|
+
var h = (
|
|
2338
|
+
/** @type {V} */
|
|
2339
|
+
e[t]
|
|
2340
|
+
);
|
|
2341
|
+
return h === void 0 ? u() : (l = !0, h);
|
|
2342
|
+
} : b = () => {
|
|
2343
|
+
var h = (
|
|
2344
|
+
/** @type {V} */
|
|
2345
|
+
e[t]
|
|
2346
|
+
);
|
|
2347
|
+
return h !== void 0 && (a = /** @type {V} */
|
|
2348
|
+
void 0), h === void 0 ? a : h;
|
|
2349
|
+
}, i && (r & On) === 0)
|
|
2350
|
+
return b;
|
|
2351
|
+
if (d) {
|
|
2352
|
+
var g = e.$$legacy;
|
|
2353
|
+
return function(h, p) {
|
|
2354
|
+
return arguments.length > 0 ? ((!i || !p || g || v) && d(p ? b() : h), h) : b();
|
|
2355
|
+
};
|
|
2356
|
+
}
|
|
2357
|
+
var _ = ((r & mo) !== 0 ? ct : Kt)(b);
|
|
2358
|
+
return o && E(_), function(h, p) {
|
|
2359
|
+
if (arguments.length > 0) {
|
|
2360
|
+
const w = p ? E(_) : i && o ? ot(h) : h;
|
|
2361
|
+
return O(_, w), a !== void 0 && (a = w), h;
|
|
2362
|
+
}
|
|
2363
|
+
return Ba(_) ? _.v : E(_);
|
|
2364
|
+
};
|
|
2365
|
+
}
|
|
2366
|
+
function Fa(e) {
|
|
2367
|
+
return new Ya(e);
|
|
2368
|
+
}
|
|
2369
|
+
var Le, le;
|
|
2370
|
+
class Ya {
|
|
2371
|
+
/**
|
|
2372
|
+
* @param {ComponentConstructorOptions & {
|
|
2373
|
+
* component: any;
|
|
2374
|
+
* }} options
|
|
2375
|
+
*/
|
|
2376
|
+
constructor(t) {
|
|
2377
|
+
/** @type {any} */
|
|
2378
|
+
dr(this, Le);
|
|
2379
|
+
/** @type {Record<string, any>} */
|
|
2380
|
+
dr(this, le);
|
|
2381
|
+
var o;
|
|
2382
|
+
var r = /* @__PURE__ */ new Map(), n = (s, a) => {
|
|
2383
|
+
var l = /* @__PURE__ */ zt(a, !1, !1);
|
|
2384
|
+
return r.set(s, l), l;
|
|
2385
|
+
};
|
|
2386
|
+
const i = new Proxy(
|
|
2387
|
+
{ ...t.props || {}, $$events: {} },
|
|
2388
|
+
{
|
|
2389
|
+
get(s, a) {
|
|
2390
|
+
return E(r.get(a) ?? n(a, Reflect.get(s, a)));
|
|
2391
|
+
},
|
|
2392
|
+
has(s, a) {
|
|
2393
|
+
return a === Pr ? !0 : (E(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
|
|
2394
|
+
},
|
|
2395
|
+
set(s, a, l) {
|
|
2396
|
+
return O(r.get(a) ?? n(a, l), l), Reflect.set(s, a, l);
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
);
|
|
2400
|
+
fr(this, le, (t.hydrate ? wa : _i)(t.component, {
|
|
2401
|
+
target: t.target,
|
|
2402
|
+
anchor: t.anchor,
|
|
2403
|
+
props: i,
|
|
2404
|
+
context: t.context,
|
|
2405
|
+
intro: t.intro ?? !1,
|
|
2406
|
+
recover: t.recover
|
|
2407
|
+
})), (!((o = t == null ? void 0 : t.props) != null && o.$$host) || t.sync === !1) && k(), fr(this, Le, i.$$events);
|
|
2408
|
+
for (const s of Object.keys(Q(this, le)))
|
|
2409
|
+
s === "$set" || s === "$destroy" || s === "$on" || kt(this, s, {
|
|
2410
|
+
get() {
|
|
2411
|
+
return Q(this, le)[s];
|
|
2412
|
+
},
|
|
2413
|
+
/** @param {any} value */
|
|
2414
|
+
set(a) {
|
|
2415
|
+
Q(this, le)[s] = a;
|
|
2416
|
+
},
|
|
2417
|
+
enumerable: !0
|
|
2418
|
+
});
|
|
2419
|
+
Q(this, le).$set = /** @param {Record<string, any>} next */
|
|
2420
|
+
(s) => {
|
|
2421
|
+
Object.assign(i, s);
|
|
2422
|
+
}, Q(this, le).$destroy = () => {
|
|
2423
|
+
_a(Q(this, le));
|
|
2424
|
+
};
|
|
2425
|
+
}
|
|
2426
|
+
/** @param {Record<string, any>} props */
|
|
2427
|
+
$set(t) {
|
|
2428
|
+
Q(this, le).$set(t);
|
|
2429
|
+
}
|
|
2430
|
+
/**
|
|
2431
|
+
* @param {string} event
|
|
2432
|
+
* @param {(...args: any[]) => any} callback
|
|
2433
|
+
* @returns {any}
|
|
2434
|
+
*/
|
|
2435
|
+
$on(t, r) {
|
|
2436
|
+
Q(this, Le)[t] = Q(this, Le)[t] || [];
|
|
2437
|
+
const n = (...i) => r.call(this, ...i);
|
|
2438
|
+
return Q(this, Le)[t].push(n), () => {
|
|
2439
|
+
Q(this, Le)[t] = Q(this, Le)[t].filter(
|
|
2440
|
+
/** @param {any} fn */
|
|
2441
|
+
(i) => i !== n
|
|
2442
|
+
);
|
|
2443
|
+
};
|
|
2444
|
+
}
|
|
2445
|
+
$destroy() {
|
|
2446
|
+
Q(this, le).$destroy();
|
|
2447
|
+
}
|
|
2448
|
+
}
|
|
2449
|
+
Le = new WeakMap(), le = new WeakMap();
|
|
2450
|
+
let zi;
|
|
2451
|
+
typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
2452
|
+
/**
|
|
2453
|
+
* @param {*} $$componentCtor
|
|
2454
|
+
* @param {*} $$slots
|
|
2455
|
+
* @param {*} use_shadow_dom
|
|
2456
|
+
*/
|
|
2457
|
+
constructor(t, r, n) {
|
|
2458
|
+
super();
|
|
2459
|
+
/** The Svelte component constructor */
|
|
2460
|
+
te(this, "$$ctor");
|
|
2461
|
+
/** Slots */
|
|
2462
|
+
te(this, "$$s");
|
|
2463
|
+
/** @type {any} The Svelte component instance */
|
|
2464
|
+
te(this, "$$c");
|
|
2465
|
+
/** Whether or not the custom element is connected */
|
|
2466
|
+
te(this, "$$cn", !1);
|
|
2467
|
+
/** @type {Record<string, any>} Component props data */
|
|
2468
|
+
te(this, "$$d", {});
|
|
2469
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
2470
|
+
te(this, "$$r", !1);
|
|
2471
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
2472
|
+
te(this, "$$p_d", {});
|
|
2473
|
+
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
2474
|
+
te(this, "$$l", {});
|
|
2475
|
+
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
2476
|
+
te(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
2477
|
+
/** @type {any} The managed render effect for reflecting attributes */
|
|
2478
|
+
te(this, "$$me");
|
|
2479
|
+
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
2480
|
+
}
|
|
2481
|
+
/**
|
|
2482
|
+
* @param {string} type
|
|
2483
|
+
* @param {EventListenerOrEventListenerObject} listener
|
|
2484
|
+
* @param {boolean | AddEventListenerOptions} [options]
|
|
2485
|
+
*/
|
|
2486
|
+
addEventListener(t, r, n) {
|
|
2487
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
|
|
2488
|
+
const i = this.$$c.$on(t, r);
|
|
2489
|
+
this.$$l_u.set(r, i);
|
|
2490
|
+
}
|
|
2491
|
+
super.addEventListener(t, r, n);
|
|
2492
|
+
}
|
|
2493
|
+
/**
|
|
2494
|
+
* @param {string} type
|
|
2495
|
+
* @param {EventListenerOrEventListenerObject} listener
|
|
2496
|
+
* @param {boolean | AddEventListenerOptions} [options]
|
|
2497
|
+
*/
|
|
2498
|
+
removeEventListener(t, r, n) {
|
|
2499
|
+
if (super.removeEventListener(t, r, n), this.$$c) {
|
|
2500
|
+
const i = this.$$l_u.get(r);
|
|
2501
|
+
i && (i(), this.$$l_u.delete(r));
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
async connectedCallback() {
|
|
2505
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
2506
|
+
let t = function(i) {
|
|
2507
|
+
return (o) => {
|
|
2508
|
+
const s = document.createElement("slot");
|
|
2509
|
+
i !== "default" && (s.name = i), I(o, s);
|
|
2510
|
+
};
|
|
2511
|
+
};
|
|
2512
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2513
|
+
return;
|
|
2514
|
+
const r = {}, n = Za(this);
|
|
2515
|
+
for (const i of this.$$s)
|
|
2516
|
+
i in n && (i === "default" && !this.$$d.children ? (this.$$d.children = t(i), r.default = !0) : r[i] = t(i));
|
|
2517
|
+
for (const i of this.attributes) {
|
|
2518
|
+
const o = this.$$g_p(i.name);
|
|
2519
|
+
o in this.$$d || (this.$$d[o] = qt(o, i.value, this.$$p_d, "toProp"));
|
|
2520
|
+
}
|
|
2521
|
+
for (const i in this.$$p_d)
|
|
2522
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
2523
|
+
this.$$c = Fa({
|
|
2524
|
+
component: this.$$ctor,
|
|
2525
|
+
target: this.shadowRoot || this,
|
|
2526
|
+
props: {
|
|
2527
|
+
...this.$$d,
|
|
2528
|
+
$$slots: r,
|
|
2529
|
+
$$host: this
|
|
2530
|
+
}
|
|
2531
|
+
}), this.$$me = Jo(() => {
|
|
2532
|
+
Qt(() => {
|
|
2533
|
+
var i;
|
|
2534
|
+
this.$$r = !0;
|
|
2535
|
+
for (const o of Dt(this.$$c)) {
|
|
2536
|
+
if (!((i = this.$$p_d[o]) != null && i.reflect)) continue;
|
|
2537
|
+
this.$$d[o] = this.$$c[o];
|
|
2538
|
+
const s = qt(
|
|
2539
|
+
o,
|
|
2540
|
+
this.$$d[o],
|
|
2541
|
+
this.$$p_d,
|
|
2542
|
+
"toAttribute"
|
|
2543
|
+
);
|
|
2544
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
2545
|
+
}
|
|
2546
|
+
this.$$r = !1;
|
|
2547
|
+
});
|
|
2548
|
+
});
|
|
2549
|
+
for (const i in this.$$l)
|
|
2550
|
+
for (const o of this.$$l[i]) {
|
|
2551
|
+
const s = this.$$c.$on(i, o);
|
|
2552
|
+
this.$$l_u.set(o, s);
|
|
2553
|
+
}
|
|
2554
|
+
this.$$l = {};
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
2558
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
2559
|
+
/**
|
|
2560
|
+
* @param {string} attr
|
|
2561
|
+
* @param {string} _oldValue
|
|
2562
|
+
* @param {string} newValue
|
|
2563
|
+
*/
|
|
2564
|
+
attributeChangedCallback(t, r, n) {
|
|
2565
|
+
var i;
|
|
2566
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = qt(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
2567
|
+
}
|
|
2568
|
+
disconnectedCallback() {
|
|
2569
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
2570
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$me(), this.$$c = void 0);
|
|
2571
|
+
});
|
|
2572
|
+
}
|
|
2573
|
+
/**
|
|
2574
|
+
* @param {string} attribute_name
|
|
2575
|
+
*/
|
|
2576
|
+
$$g_p(t) {
|
|
2577
|
+
return Dt(this.$$p_d).find(
|
|
2578
|
+
(r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
|
|
2579
|
+
) || t;
|
|
2580
|
+
}
|
|
2581
|
+
});
|
|
2582
|
+
function qt(e, t, r, n) {
|
|
2583
|
+
var o;
|
|
2584
|
+
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
2585
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
2586
|
+
return t;
|
|
2587
|
+
if (n === "toAttribute")
|
|
2588
|
+
switch (i) {
|
|
2589
|
+
case "Object":
|
|
2590
|
+
case "Array":
|
|
2591
|
+
return t == null ? null : JSON.stringify(t);
|
|
2592
|
+
case "Boolean":
|
|
2593
|
+
return t ? "" : null;
|
|
2594
|
+
case "Number":
|
|
2595
|
+
return t ?? null;
|
|
2596
|
+
default:
|
|
2597
|
+
return t;
|
|
2598
|
+
}
|
|
2599
|
+
else
|
|
2600
|
+
switch (i) {
|
|
2601
|
+
case "Object":
|
|
2602
|
+
case "Array":
|
|
2603
|
+
return t && JSON.parse(t);
|
|
2604
|
+
case "Boolean":
|
|
2605
|
+
return t;
|
|
2606
|
+
// conversion already handled above
|
|
2607
|
+
case "Number":
|
|
2608
|
+
return t != null ? +t : t;
|
|
2609
|
+
default:
|
|
2610
|
+
return t;
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
function Za(e) {
|
|
2614
|
+
const t = {};
|
|
2615
|
+
return e.childNodes.forEach((r) => {
|
|
2616
|
+
t[
|
|
2617
|
+
/** @type {Element} node */
|
|
2618
|
+
r.slot || "default"
|
|
2619
|
+
] = !0;
|
|
2620
|
+
}), t;
|
|
2621
|
+
}
|
|
2622
|
+
function R(e, t, r, n, i, o) {
|
|
2623
|
+
let s = class extends zi {
|
|
2624
|
+
constructor() {
|
|
2625
|
+
super(e, r, i), this.$$p_d = t;
|
|
2626
|
+
}
|
|
2627
|
+
static get observedAttributes() {
|
|
2628
|
+
return Dt(t).map(
|
|
2629
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
2630
|
+
);
|
|
2631
|
+
}
|
|
2632
|
+
};
|
|
2633
|
+
return Dt(t).forEach((a) => {
|
|
2634
|
+
kt(s.prototype, a, {
|
|
2635
|
+
get() {
|
|
2636
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2637
|
+
},
|
|
2638
|
+
set(l) {
|
|
2639
|
+
var f;
|
|
2640
|
+
l = qt(a, l, t), this.$$d[a] = l;
|
|
2641
|
+
var u = this.$$c;
|
|
2642
|
+
if (u) {
|
|
2643
|
+
var d = (f = Ue(u, a)) == null ? void 0 : f.get;
|
|
2644
|
+
d ? u[a] = l : u.$set({ [a]: l });
|
|
2645
|
+
}
|
|
2646
|
+
}
|
|
2647
|
+
});
|
|
2648
|
+
}), n.forEach((a) => {
|
|
2649
|
+
kt(s.prototype, a, {
|
|
2650
|
+
get() {
|
|
2651
|
+
var l;
|
|
2652
|
+
return (l = this.$$c) == null ? void 0 : l[a];
|
|
2653
|
+
}
|
|
2654
|
+
});
|
|
2655
|
+
}), e.element = /** @type {any} */
|
|
2656
|
+
s, s;
|
|
2657
|
+
}
|
|
2658
|
+
var Ja = /* @__PURE__ */ be("<a><!></a>"), Wa = /* @__PURE__ */ be("<button><!></button>");
|
|
2659
|
+
const Ka = {
|
|
2660
|
+
hash: "svelte-zftwkm",
|
|
2661
|
+
code: `:root, :host {
|
|
2662
|
+
/* global button */--ai-button-radius: var(--ai-radius-round);--ai-button-padding-x: 2rem;--ai-button-padding-y: 0.75rem;--ai-button-height: 2.5rem;--ai-button-box-shadow: inset 0 0 0 1px;
|
|
2663
|
+
|
|
2664
|
+
/* primary button */--ai-button-background-primary-rest: var(--ai-color-black);--ai-button-background-primary-hover: var(
|
|
2665
|
+
--ai-color-neutral-900
|
|
2666
|
+
);--ai-button-background-primary-disabled: var(
|
|
2667
|
+
--ai-color-neutral-200
|
|
2668
|
+
);--ai-button-text-primary-rest: var(--ai-color-white);--ai-button-text-primary-hover: var(--ai-button-text-primary-rest);--ai-button-text-primary-disabled: var(--ai-color-neutral-800);
|
|
2669
|
+
|
|
2670
|
+
/* inverted button */--ai-button-background-inverted-rest: var(--ai-color-white);--ai-button-background-inverted-hover: var(--ai-color-neutral-200);--ai-button-background-inverted-disabled: var(--ai-color-neutral-500);--ai-button-text-inverted-rest: var(--ai-color-black);--ai-button-text-inverted-hover: var(--ai-color-black);--ai-button-text-inverted-disabled: var(--ai-color-neutral-900);--ai-button-border-inverted-rest: none;--ai-button-border-inverted-hover: none;
|
|
2671
|
+
|
|
2672
|
+
/* unstyled */--ai-button-text-unstyled-disabled: var(--ai-color-neutral-700);--ai-button-text-unstyled-inverted-disabled: var(--ai-color-neutral-700);
|
|
2673
|
+
|
|
2674
|
+
/* outline button */--ai-button-background-outline-hover: var(--ai-color-black);--ai-button-text-outline-rest: var(--ai-color-black);--ai-button-text-outline-hover: var(--ai-color-white);--ai-button-border-outline-rest: var(--ai-color-black);--ai-button-border-outline-hover: var(--ai-button-border-outline-rest);
|
|
2675
|
+
|
|
2676
|
+
/* outline inverted button */--ai-button-background-outline-inverted-hover: var(--ai-color-white);--ai-button-text-outline-inverted-rest: var(--ai-color-white);--ai-button-text-outline-inverted-hover: var(--ai-color-black);--ai-button-border-outline-inverted-rest: var(--ai-color-white);--ai-button-border-outline-inverted-hover: var(
|
|
2677
|
+
--ai-button-border-outline-inverted-rest
|
|
2678
|
+
);}.ai-button.svelte-zftwkm {background-color:var(--ai-button-background-primary-rest);border-radius:var(--ai-button-radius);color:var(--ai-button-text-primary-rest);font-weight:var(--ai-font-weight-medium);padding-inline:var(--ai-button-padding-x);padding-block:var(--ai-button-padding-y);margin:0;}.ai-button.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background-color:var(--ai-button-background-primary-hover);color:var(--ai-button-text-primary-hover);}.ai-button--small.svelte-zftwkm {--ai-button-padding-x: var(--ai-size-24);--ai-button-padding-y: var(--ai-size-8);font-size:var(--ai-size-12);}.ai-button--outline.svelte-zftwkm {background-color:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-rest);color:var(--ai-button-text-outline-rest);}.ai-button--outline.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background-color:var(--ai-button-background-outline-hover);box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-hover);color:var(--ai-button-text-outline-hover);}.ai-button--outline-inverted.svelte-zftwkm {background-color:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-inverted-rest);color:var(--ai-button-text-outline-inverted-rest);}.ai-button--outline-inverted.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background-color:var(--ai-button-background-outline-inverted-hover);box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-inverted-hover);color:var(--ai-button-text-outline-inverted-hover);}.ai-button--inverted.svelte-zftwkm {background-color:var(--ai-button-background-inverted-rest);color:var(--ai-button-text-inverted-rest);box-shadow:none;border:var(--ai-button-border-inverted-rest);}.ai-button--inverted.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background-color:var(--ai-button-background-inverted-hover);color:var(--ai-button-text-inverted-hover);border:var(--ai-button-border-inverted-hover);}.ai-button--unstyled.svelte-zftwkm {background:none;color:inherit;border:none;box-shadow:none;padding:0;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:var(--ai-font-underline-offset);}.ai-button--unstyled.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background:none;color:inherit;border:none;box-shadow:none;text-decoration:underline;}.ai-menu-buttons.svelte-zftwkm {display:flex;gap:var(--ai-size-16);}
|
|
2679
|
+
|
|
2680
|
+
/* disabled button styles */:is(.disabled.svelte-zftwkm, [disabled].svelte-zftwkm, [aria-disabled=true].svelte-zftwkm) {background:var(--ai-button-background-primary-disabled);color:var(--ai-button-text-primary-disabled);cursor:not-allowed;}.ai-button--inverted.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {background:var(--ai-button-background-inverted-disabled);color:var(--ai-button-text-inverted-disabled);}.ai-button--outline.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {background:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-700);color:var(--ai-color-neutral-700);}.ai-button--outline-inverted.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-200);color:var(--ai-color-neutral-600);}.ai-button--unstyled.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {background:none;color:inherit;opacity:0.75;}`
|
|
2681
|
+
};
|
|
2682
|
+
function Mi(e, t) {
|
|
2683
|
+
B(t, !0), bt(e, Ka);
|
|
2684
|
+
let r = y(t, "variant", 7, "primary"), n = y(t, "theme", 7, "default"), i = y(t, "href", 7, null), o = y(t, "disabled", 7, !1), s = y(t, "onclick", 7), a = y(t, "children", 7, null), l = y(t, "size", 7, "medium"), u = y(t, "type", 7, "button"), d = y(t, "class", 7, ""), f = /* @__PURE__ */ Br(t, [
|
|
2685
|
+
"$$slots",
|
|
2686
|
+
"$$events",
|
|
2687
|
+
"$$legacy",
|
|
2688
|
+
"$$host",
|
|
2689
|
+
"variant",
|
|
2690
|
+
"theme",
|
|
2691
|
+
"href",
|
|
2692
|
+
"disabled",
|
|
2693
|
+
"onclick",
|
|
2694
|
+
"children",
|
|
2695
|
+
"size",
|
|
2696
|
+
"type",
|
|
2697
|
+
"class"
|
|
2698
|
+
]);
|
|
2699
|
+
const c = /* @__PURE__ */ J(() => () => [
|
|
2700
|
+
"usa-button",
|
|
2701
|
+
"ai-button",
|
|
2702
|
+
l() === "small" ? "ai-button--small" : "",
|
|
2703
|
+
n() === "inverted" && r() === "primary" ? "ai-button--inverted" : "",
|
|
2704
|
+
n() === "inverted" && r() === "secondary" ? "ai-button--outline-inverted" : "",
|
|
2705
|
+
r() === "primary" ? "usa-button--primary" : "",
|
|
2706
|
+
r() === "secondary" ? "usa-button--outline ai-button--outline" : "",
|
|
2707
|
+
r() === "unstyled" ? "ai-button--unstyled" : ""
|
|
2708
|
+
].filter(Boolean).join(" ")), v = /* @__PURE__ */ J(() => () => `${E(c)()} ${d()}`.trim());
|
|
2709
|
+
var b = Lt(), g = Ye(b);
|
|
2710
|
+
{
|
|
2711
|
+
var _ = (h) => {
|
|
2712
|
+
var p = Ja();
|
|
2713
|
+
Ft(
|
|
2714
|
+
p,
|
|
2715
|
+
(x, M) => ({
|
|
2716
|
+
class: x,
|
|
2717
|
+
href: i(),
|
|
2718
|
+
onclick: s(),
|
|
2719
|
+
...f,
|
|
2720
|
+
[it]: M
|
|
2721
|
+
}),
|
|
2722
|
+
[
|
|
2723
|
+
() => E(v)(),
|
|
2724
|
+
() => ({ disabled: o() })
|
|
2725
|
+
],
|
|
2726
|
+
"svelte-zftwkm"
|
|
2727
|
+
);
|
|
2728
|
+
var w = S(p);
|
|
2729
|
+
Cr(w, () => a() ?? ve), C(p), I(h, p);
|
|
2730
|
+
}, m = (h) => {
|
|
2731
|
+
var p = Wa();
|
|
2732
|
+
Ft(
|
|
2733
|
+
p,
|
|
2734
|
+
(x) => ({
|
|
2735
|
+
class: x,
|
|
2736
|
+
type: u(),
|
|
2737
|
+
disabled: o(),
|
|
2738
|
+
onclick: s(),
|
|
2739
|
+
...f
|
|
2740
|
+
}),
|
|
2741
|
+
[() => E(v)()],
|
|
2742
|
+
"svelte-zftwkm"
|
|
2743
|
+
);
|
|
2744
|
+
var w = S(p);
|
|
2745
|
+
Cr(w, () => a() ?? ve), C(p), I(h, p);
|
|
2746
|
+
};
|
|
2747
|
+
de(g, (h) => {
|
|
2748
|
+
i() ? h(_) : h(m, !1);
|
|
2749
|
+
});
|
|
2750
|
+
}
|
|
2751
|
+
return I(e, b), F({
|
|
2752
|
+
get variant() {
|
|
2753
|
+
return r();
|
|
2754
|
+
},
|
|
2755
|
+
set variant(h = "primary") {
|
|
2756
|
+
r(h), k();
|
|
2757
|
+
},
|
|
2758
|
+
get theme() {
|
|
2759
|
+
return n();
|
|
2760
|
+
},
|
|
2761
|
+
set theme(h = "default") {
|
|
2762
|
+
n(h), k();
|
|
2763
|
+
},
|
|
2764
|
+
get href() {
|
|
2765
|
+
return i();
|
|
2766
|
+
},
|
|
2767
|
+
set href(h = null) {
|
|
2768
|
+
i(h), k();
|
|
2769
|
+
},
|
|
2770
|
+
get disabled() {
|
|
2771
|
+
return o();
|
|
2772
|
+
},
|
|
2773
|
+
set disabled(h = !1) {
|
|
2774
|
+
o(h), k();
|
|
2775
|
+
},
|
|
2776
|
+
get onclick() {
|
|
2777
|
+
return s();
|
|
2778
|
+
},
|
|
2779
|
+
set onclick(h) {
|
|
2780
|
+
s(h), k();
|
|
2781
|
+
},
|
|
2782
|
+
get children() {
|
|
2783
|
+
return a();
|
|
2784
|
+
},
|
|
2785
|
+
set children(h = null) {
|
|
2786
|
+
a(h), k();
|
|
2787
|
+
},
|
|
2788
|
+
get size() {
|
|
2789
|
+
return l();
|
|
2790
|
+
},
|
|
2791
|
+
set size(h = "medium") {
|
|
2792
|
+
l(h), k();
|
|
2793
|
+
},
|
|
2794
|
+
get type() {
|
|
2795
|
+
return u();
|
|
2796
|
+
},
|
|
2797
|
+
set type(h = "button") {
|
|
2798
|
+
u(h), k();
|
|
2799
|
+
},
|
|
2800
|
+
get class() {
|
|
2801
|
+
return d();
|
|
2802
|
+
},
|
|
2803
|
+
set class(h = "") {
|
|
2804
|
+
d(h), k();
|
|
2805
|
+
}
|
|
2806
|
+
});
|
|
2807
|
+
}
|
|
2808
|
+
R(
|
|
2809
|
+
Mi,
|
|
2810
|
+
{
|
|
2811
|
+
variant: {},
|
|
2812
|
+
theme: {},
|
|
2813
|
+
href: {},
|
|
2814
|
+
disabled: {},
|
|
2815
|
+
onclick: {},
|
|
2816
|
+
children: {},
|
|
2817
|
+
size: {},
|
|
2818
|
+
type: {},
|
|
2819
|
+
class: {}
|
|
2820
|
+
},
|
|
2821
|
+
[],
|
|
2822
|
+
[],
|
|
2823
|
+
!0
|
|
2824
|
+
);
|
|
2825
|
+
function Ga(e, t) {
|
|
2826
|
+
B(t, !0);
|
|
2827
|
+
let r = y(t, "variant", 7, "primary"), n = y(t, "theme", 7, "default"), i = y(t, "href", 7, null), o = y(t, "disabled", 7, !1), s = y(t, "size", 7, "medium"), a = y(t, "type", 7, "button"), l = y(t, "onclick", 7), u = y(t, "children", 7, null), d = y(t, "class", 7, ""), f = /* @__PURE__ */ Br(t, [
|
|
2828
|
+
"$$slots",
|
|
2829
|
+
"$$events",
|
|
2830
|
+
"$$legacy",
|
|
2831
|
+
"$$host",
|
|
2832
|
+
"variant",
|
|
2833
|
+
"theme",
|
|
2834
|
+
"href",
|
|
2835
|
+
"disabled",
|
|
2836
|
+
"size",
|
|
2837
|
+
"type",
|
|
2838
|
+
"onclick",
|
|
2839
|
+
"children",
|
|
2840
|
+
"class"
|
|
2841
|
+
]);
|
|
2842
|
+
return Mi(e, Ti(
|
|
2843
|
+
{
|
|
2844
|
+
get variant() {
|
|
2845
|
+
return r();
|
|
2846
|
+
},
|
|
2847
|
+
get theme() {
|
|
2848
|
+
return n();
|
|
2849
|
+
},
|
|
2850
|
+
get href() {
|
|
2851
|
+
return i();
|
|
2852
|
+
},
|
|
2853
|
+
get disabled() {
|
|
2854
|
+
return o();
|
|
2855
|
+
},
|
|
2856
|
+
get size() {
|
|
2857
|
+
return s();
|
|
2858
|
+
},
|
|
2859
|
+
get type() {
|
|
2860
|
+
return a();
|
|
2861
|
+
},
|
|
2862
|
+
get onclick() {
|
|
2863
|
+
return l();
|
|
2864
|
+
},
|
|
2865
|
+
get children() {
|
|
2866
|
+
return u();
|
|
2867
|
+
},
|
|
2868
|
+
get class() {
|
|
2869
|
+
return d();
|
|
2870
|
+
}
|
|
2871
|
+
},
|
|
2872
|
+
() => f,
|
|
2873
|
+
{
|
|
2874
|
+
$$slots: {
|
|
2875
|
+
default: (c, v) => {
|
|
2876
|
+
var b = Lt(), g = Ye(b);
|
|
2877
|
+
ir(g, t, "default", {}), I(c, b);
|
|
2878
|
+
}
|
|
2879
|
+
}
|
|
2880
|
+
}
|
|
2881
|
+
)), F({
|
|
2882
|
+
get variant() {
|
|
2883
|
+
return r();
|
|
2884
|
+
},
|
|
2885
|
+
set variant(c = "primary") {
|
|
2886
|
+
r(c), k();
|
|
2887
|
+
},
|
|
2888
|
+
get theme() {
|
|
2889
|
+
return n();
|
|
2890
|
+
},
|
|
2891
|
+
set theme(c = "default") {
|
|
2892
|
+
n(c), k();
|
|
2893
|
+
},
|
|
2894
|
+
get href() {
|
|
2895
|
+
return i();
|
|
2896
|
+
},
|
|
2897
|
+
set href(c = null) {
|
|
2898
|
+
i(c), k();
|
|
2899
|
+
},
|
|
2900
|
+
get disabled() {
|
|
2901
|
+
return o();
|
|
2902
|
+
},
|
|
2903
|
+
set disabled(c = !1) {
|
|
2904
|
+
o(c), k();
|
|
2905
|
+
},
|
|
2906
|
+
get size() {
|
|
2907
|
+
return s();
|
|
2908
|
+
},
|
|
2909
|
+
set size(c = "medium") {
|
|
2910
|
+
s(c), k();
|
|
2911
|
+
},
|
|
2912
|
+
get type() {
|
|
2913
|
+
return a();
|
|
2914
|
+
},
|
|
2915
|
+
set type(c = "button") {
|
|
2916
|
+
a(c), k();
|
|
2917
|
+
},
|
|
2918
|
+
get onclick() {
|
|
2919
|
+
return l();
|
|
2920
|
+
},
|
|
2921
|
+
set onclick(c) {
|
|
2922
|
+
l(c), k();
|
|
2923
|
+
},
|
|
2924
|
+
get children() {
|
|
2925
|
+
return u();
|
|
2926
|
+
},
|
|
2927
|
+
set children(c = null) {
|
|
2928
|
+
u(c), k();
|
|
2929
|
+
},
|
|
2930
|
+
get class() {
|
|
2931
|
+
return d();
|
|
2932
|
+
},
|
|
2933
|
+
set class(c = "") {
|
|
2934
|
+
d(c), k();
|
|
2935
|
+
}
|
|
2936
|
+
});
|
|
2937
|
+
}
|
|
2938
|
+
customElements.define("graymatter-button", R(
|
|
2939
|
+
Ga,
|
|
2940
|
+
{
|
|
2941
|
+
variant: { attribute: "variant", reflect: !0, type: "String" },
|
|
2942
|
+
theme: { attribute: "theme", reflect: !0, type: "String" },
|
|
2943
|
+
href: { attribute: "href", reflect: !0, type: "String" },
|
|
2944
|
+
disabled: { attribute: "disabled", reflect: !0, type: "Boolean" },
|
|
2945
|
+
size: { attribute: "size", reflect: !0, type: "String" },
|
|
2946
|
+
type: { attribute: "type", reflect: !0, type: "String" },
|
|
2947
|
+
onclick: {},
|
|
2948
|
+
children: {},
|
|
2949
|
+
class: {}
|
|
2950
|
+
},
|
|
2951
|
+
["default"],
|
|
2952
|
+
[],
|
|
2953
|
+
!0
|
|
2954
|
+
));
|
|
2955
|
+
const At = typeof window < "u";
|
|
2956
|
+
function Xa(e, t) {
|
|
2957
|
+
if (At && typeof sessionStorage < "u") {
|
|
2958
|
+
const r = sessionStorage.getItem(e);
|
|
2959
|
+
if (r !== null)
|
|
2960
|
+
try {
|
|
2961
|
+
return JSON.parse(r);
|
|
2962
|
+
} catch (n) {
|
|
2963
|
+
return console.warn(`Failed to parse stored value for ${e}:`, n), t;
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
return t;
|
|
2967
|
+
}
|
|
2968
|
+
function Li(e, t) {
|
|
2969
|
+
const r = Xa(e, t), n = or(r);
|
|
2970
|
+
return At && n.subscribe((i) => {
|
|
2971
|
+
try {
|
|
2972
|
+
sessionStorage.setItem(e, JSON.stringify(i));
|
|
2973
|
+
} catch (o) {
|
|
2974
|
+
console.warn(`Failed to persist ${e} to sessionStorage:`, o);
|
|
2975
|
+
}
|
|
2976
|
+
}), n;
|
|
2977
|
+
}
|
|
2978
|
+
Li(
|
|
2979
|
+
"subNav-selectedId",
|
|
2980
|
+
null
|
|
2981
|
+
);
|
|
2982
|
+
const Xe = Li("subNav-selectedTitle", "");
|
|
2983
|
+
function Ui(e, t) {
|
|
2984
|
+
if (At && typeof localStorage < "u") {
|
|
2985
|
+
const r = localStorage.getItem(e);
|
|
2986
|
+
if (r !== null)
|
|
2987
|
+
try {
|
|
2988
|
+
return JSON.parse(r);
|
|
2989
|
+
} catch (n) {
|
|
2990
|
+
return console.warn(`Failed to parse stored value for ${e}:`, n), t;
|
|
2991
|
+
}
|
|
2992
|
+
}
|
|
2993
|
+
return t;
|
|
2994
|
+
}
|
|
2995
|
+
function Ai(e, t) {
|
|
2996
|
+
const r = Ui(e, t), n = or(r);
|
|
2997
|
+
return At && n.subscribe((i) => {
|
|
2998
|
+
try {
|
|
2999
|
+
localStorage.setItem(e, JSON.stringify(i));
|
|
3000
|
+
} catch (o) {
|
|
3001
|
+
console.warn(`Failed to persist ${e} to localStorage:`, o);
|
|
3002
|
+
}
|
|
3003
|
+
}), n;
|
|
3004
|
+
}
|
|
3005
|
+
const me = Ai(
|
|
3006
|
+
"globalSideNav-isExpanded",
|
|
3007
|
+
!1
|
|
3008
|
+
), tt = Ai(
|
|
3009
|
+
"globalSideNav-selectedItem",
|
|
3010
|
+
null
|
|
3011
|
+
), Fr = Pa(
|
|
3012
|
+
tt,
|
|
3013
|
+
(e) => e === "discover"
|
|
3014
|
+
), Ie = {
|
|
3015
|
+
toggleExpanded: () => {
|
|
3016
|
+
me.update((e) => !e);
|
|
3017
|
+
},
|
|
3018
|
+
setExpanded: (e) => {
|
|
3019
|
+
me.set(e);
|
|
3020
|
+
},
|
|
3021
|
+
setSelectedItem: (e) => {
|
|
3022
|
+
tt.set(e), e === "discover" ? me.set(!1) : At && window.innerWidth > 640 && me.set(!0);
|
|
3023
|
+
},
|
|
3024
|
+
handleLayoutTransition: (e) => {
|
|
3025
|
+
if (e)
|
|
3026
|
+
me.set(!1);
|
|
3027
|
+
else {
|
|
3028
|
+
const t = Ui("globalSideNav-selectedItem", null);
|
|
3029
|
+
t && t !== "discover" ? (console.log(
|
|
3030
|
+
"[NavigationStore] Opening navigation for desktop (non-discover page)"
|
|
3031
|
+
), me.set(!0)) : me.set(!1);
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
}, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3035
|
+
__proto__: null,
|
|
3036
|
+
isExpanded: me,
|
|
3037
|
+
isMenuButtonDisabled: Fr,
|
|
3038
|
+
navigationStore: Ie,
|
|
3039
|
+
selectedItem: tt,
|
|
3040
|
+
selectedSubNavItemTitle: Xe
|
|
3041
|
+
}, Symbol.toStringTag, { value: "Module" })), Qa = or(!1);
|
|
3042
|
+
var es = /* @__PURE__ */ be('<div part="global-header"><div class="header-content svelte-1p8bjnn" part="header-content"><span class="header-text svelte-1p8bjnn"> </span></div></div>');
|
|
3043
|
+
const ts = {
|
|
3044
|
+
hash: "svelte-1p8bjnn",
|
|
3045
|
+
code: ".global-header.svelte-1p8bjnn {opacity:0;transition:opacity 0.2s;}.global-header.visible.svelte-1p8bjnn {opacity:1;transition:opacity 0.2s;}.header-content.svelte-1p8bjnn {display:flex;align-items:center;gap:var(--ai-size-16);background:var(--ai-color-white);height:var(--ai-size-56);padding:0 5.8rem;}.header-content.svelte-1p8bjnn {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-1p8bjnn {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"
|
|
3046
|
+
};
|
|
3047
|
+
function Oi(e, t) {
|
|
3048
|
+
B(t, !0), bt(e, ts);
|
|
3049
|
+
const [r, n] = Ut(), i = () => fe(tt, "$selectedItem", r), o = () => fe(me, "$isExpanded", r), s = () => fe(Qa, "$subNavReady", r), a = () => fe(Xe, "$selectedSubNavItemTitle", r), l = y(t, "customHeaderText", 7, "");
|
|
3050
|
+
let u = !1;
|
|
3051
|
+
const d = /* @__PURE__ */ J(() => () => i() && i() !== "discover" && !o() && !u && s()), f = /* @__PURE__ */ J(() => () => l() || a());
|
|
3052
|
+
nr(() => {
|
|
3053
|
+
const h = (w) => {
|
|
3054
|
+
if (typeof window < "u" && window.innerWidth <= 640)
|
|
3055
|
+
return;
|
|
3056
|
+
let x = null;
|
|
3057
|
+
if (typeof window < "u" && (x = sessionStorage.getItem("subNav-topLevelTitle"), x))
|
|
3058
|
+
try {
|
|
3059
|
+
x = JSON.parse(x);
|
|
3060
|
+
} catch {
|
|
3061
|
+
}
|
|
3062
|
+
if (typeof x == "string" && x.trim() !== "")
|
|
3063
|
+
Xe.set(x), sessionStorage.setItem("subNav-selectedTitle", JSON.stringify(x));
|
|
3064
|
+
else {
|
|
3065
|
+
const M = w;
|
|
3066
|
+
M.detail && M.detail.title && (Xe.set(M.detail.title), sessionStorage.setItem("subNav-selectedTitle", JSON.stringify(M.detail.title)));
|
|
3067
|
+
}
|
|
3068
|
+
}, p = (w) => {
|
|
3069
|
+
const x = w, { isMobile: M } = x.detail;
|
|
3070
|
+
M || (u = !0, setTimeout(
|
|
3071
|
+
() => {
|
|
3072
|
+
u = !1;
|
|
3073
|
+
},
|
|
3074
|
+
300
|
|
3075
|
+
));
|
|
3076
|
+
};
|
|
3077
|
+
return window.addEventListener("sectionVisible", h), window.addEventListener("layoutTransition", p), () => {
|
|
3078
|
+
window.removeEventListener("sectionVisible", h), window.removeEventListener("layoutTransition", p);
|
|
3079
|
+
};
|
|
3080
|
+
});
|
|
3081
|
+
var c = es();
|
|
3082
|
+
let v;
|
|
3083
|
+
var b = S(c), g = S(b), _ = S(g, !0);
|
|
3084
|
+
C(g), C(b), C(c), ft(
|
|
3085
|
+
(h, p) => {
|
|
3086
|
+
v = ue(c, 1, "global-header svelte-1p8bjnn", null, v, h), Vr(_, p);
|
|
3087
|
+
},
|
|
3088
|
+
[
|
|
3089
|
+
() => ({ visible: E(d)() }),
|
|
3090
|
+
() => E(f)()
|
|
3091
|
+
]
|
|
3092
|
+
), I(e, c);
|
|
3093
|
+
var m = F({
|
|
3094
|
+
get customHeaderText() {
|
|
3095
|
+
return l();
|
|
3096
|
+
},
|
|
3097
|
+
set customHeaderText(h = "") {
|
|
3098
|
+
l(h), k();
|
|
3099
|
+
}
|
|
3100
|
+
});
|
|
3101
|
+
return n(), m;
|
|
3102
|
+
}
|
|
3103
|
+
R(Oi, { customHeaderText: {} }, [], [], !0);
|
|
3104
|
+
function rs(e, t) {
|
|
3105
|
+
B(t, !0);
|
|
3106
|
+
let r = y(t, "customHeaderText", 7, "");
|
|
3107
|
+
return Oi(e, {
|
|
3108
|
+
get customHeaderText() {
|
|
3109
|
+
return r();
|
|
3110
|
+
}
|
|
3111
|
+
}), F({
|
|
3112
|
+
get customHeaderText() {
|
|
3113
|
+
return r();
|
|
3114
|
+
},
|
|
3115
|
+
set customHeaderText(n = "") {
|
|
3116
|
+
r(n), k();
|
|
3117
|
+
}
|
|
3118
|
+
});
|
|
3119
|
+
}
|
|
3120
|
+
customElements.define("graymatter-desktop-header", R(
|
|
3121
|
+
rs,
|
|
3122
|
+
{
|
|
3123
|
+
customHeaderText: {
|
|
3124
|
+
attribute: "custom-header-text",
|
|
3125
|
+
reflect: !0,
|
|
3126
|
+
type: "String"
|
|
3127
|
+
}
|
|
3128
|
+
},
|
|
3129
|
+
[],
|
|
3130
|
+
[],
|
|
3131
|
+
!0
|
|
3132
|
+
));
|
|
3133
|
+
Ho();
|
|
3134
|
+
var ns = /* @__PURE__ */ j('<path fill-rule="evenodd" clip-rule="evenodd" d="M10.7883 3.2108C11.2367 2.13286 12.7637 2.13286 13.212 3.2108L15.294 8.21652L20.6981 8.64976C21.8619 8.74306 22.3337 10.1953 21.4471 10.9549L17.3298 14.4818L18.5877 19.7553C18.8585 20.8909 17.6232 21.7884 16.6268 21.1799L12.0002 18.354L7.37353 21.1799C6.37721 21.7884 5.14182 20.8909 5.4127 19.7553L6.67062 14.4818L2.55328 10.9549C1.66664 10.1953 2.13851 8.74306 3.30224 8.64976L8.70633 8.21652L10.7883 3.2108Z" fill="black"></path>'), is = /* @__PURE__ */ j('<path d="M11.4807 3.49883C11.6729 3.03685 12.3273 3.03685 12.5195 3.49883L14.6454 8.61028C14.7264 8.80504 14.9096 8.93811 15.1199 8.95497L20.6381 9.39736C21.1369 9.43735 21.3391 10.0598 20.9591 10.3853L16.7548 13.9867C16.5946 14.1239 16.5246 14.3392 16.5736 14.5444L17.858 19.9293C17.9741 20.416 17.4447 20.8007 17.0177 20.5398L12.2933 17.6542C12.1133 17.5443 11.8869 17.5443 11.7069 17.6542L6.98251 20.5398C6.55551 20.8007 6.02606 20.416 6.14215 19.9293L7.42664 14.5444C7.47558 14.3392 7.40562 14.1239 7.24543 13.9867L3.04111 10.3853C2.66112 10.0598 2.86335 9.43735 3.36209 9.39736L8.88034 8.95497C9.0906 8.93811 9.27375 8.80504 9.35476 8.61028L11.4807 3.49883Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>'), os = /* @__PURE__ */ j('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');
|
|
3135
|
+
function Yr(e, t) {
|
|
3136
|
+
B(t, !1);
|
|
3137
|
+
let r = y(t, "isSelected", 12, !1);
|
|
3138
|
+
var n = os(), i = S(n);
|
|
3139
|
+
{
|
|
3140
|
+
var o = (a) => {
|
|
3141
|
+
var l = ns();
|
|
3142
|
+
I(a, l);
|
|
3143
|
+
}, s = (a) => {
|
|
3144
|
+
var l = is();
|
|
3145
|
+
I(a, l);
|
|
3146
|
+
};
|
|
3147
|
+
de(i, (a) => {
|
|
3148
|
+
r() ? a(o) : a(s, !1);
|
|
3149
|
+
});
|
|
3150
|
+
}
|
|
3151
|
+
return C(n), I(e, n), F({
|
|
3152
|
+
get isSelected() {
|
|
3153
|
+
return r();
|
|
3154
|
+
},
|
|
3155
|
+
set isSelected(a) {
|
|
3156
|
+
r(a), k();
|
|
3157
|
+
}
|
|
3158
|
+
});
|
|
3159
|
+
}
|
|
3160
|
+
R(Yr, { isSelected: {} }, [], [], !0);
|
|
3161
|
+
var as = /* @__PURE__ */ j('<path fill-rule="evenodd" clip-rule="evenodd" d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508Z" fill="black"></path>'), ss = /* @__PURE__ */ j('<path d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508ZM7.61816 4.45898C5.87327 4.4591 4.4591 5.87327 4.45898 7.61816V13.2832C4.4591 15.0281 5.87327 16.4432 7.61816 16.4434L8.24609 16.4424C8.64868 16.4424 8.97539 16.7693 8.97559 17.1719V19.958L12.4775 16.6426C12.6186 16.5091 12.7994 16.4443 12.9795 16.4443V16.4434H17.0508C18.7954 16.443 20.2099 15.0279 20.21 13.2832V7.61816C20.2098 5.87344 18.7954 4.45938 17.0508 4.45898H7.61816Z" fill="#585C63"></path>'), ls = /* @__PURE__ */ j('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');
|
|
3162
|
+
function Zr(e, t) {
|
|
3163
|
+
B(t, !1);
|
|
3164
|
+
let r = y(t, "isSelected", 12, !1);
|
|
3165
|
+
var n = ls(), i = S(n);
|
|
3166
|
+
{
|
|
3167
|
+
var o = (a) => {
|
|
3168
|
+
var l = as();
|
|
3169
|
+
I(a, l);
|
|
3170
|
+
}, s = (a) => {
|
|
3171
|
+
var l = ss();
|
|
3172
|
+
I(a, l);
|
|
3173
|
+
};
|
|
3174
|
+
de(i, (a) => {
|
|
3175
|
+
r() ? a(o) : a(s, !1);
|
|
3176
|
+
});
|
|
3177
|
+
}
|
|
3178
|
+
return C(n), I(e, n), F({
|
|
3179
|
+
get isSelected() {
|
|
3180
|
+
return r();
|
|
3181
|
+
},
|
|
3182
|
+
set isSelected(a) {
|
|
3183
|
+
r(a), k();
|
|
3184
|
+
}
|
|
3185
|
+
});
|
|
3186
|
+
}
|
|
3187
|
+
R(Zr, { isSelected: {} }, [], [], !0);
|
|
3188
|
+
var us = /* @__PURE__ */ j('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" fill="black" stroke="black" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="black" stroke-width="1.5" stroke-linecap="square"></path>', 1), cs = /* @__PURE__ */ j('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" stroke="#585C63" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" stroke="#585C63" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" stroke="#585C63" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="#585C63" stroke-width="1.5" stroke-linecap="square"></path>', 1), ds = /* @__PURE__ */ j('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');
|
|
3189
|
+
function Jr(e, t) {
|
|
3190
|
+
B(t, !1);
|
|
3191
|
+
let r = y(t, "isSelected", 12, !1);
|
|
3192
|
+
var n = ds(), i = S(n);
|
|
3193
|
+
{
|
|
3194
|
+
var o = (a) => {
|
|
3195
|
+
var l = us();
|
|
3196
|
+
Ne(3), I(a, l);
|
|
3197
|
+
}, s = (a) => {
|
|
3198
|
+
var l = cs();
|
|
3199
|
+
Ne(3), I(a, l);
|
|
3200
|
+
};
|
|
3201
|
+
de(i, (a) => {
|
|
3202
|
+
r() ? a(o) : a(s, !1);
|
|
3203
|
+
});
|
|
3204
|
+
}
|
|
3205
|
+
return C(n), I(e, n), F({
|
|
3206
|
+
get isSelected() {
|
|
3207
|
+
return r();
|
|
3208
|
+
},
|
|
3209
|
+
set isSelected(a) {
|
|
3210
|
+
r(a), k();
|
|
3211
|
+
}
|
|
3212
|
+
});
|
|
3213
|
+
}
|
|
3214
|
+
R(Jr, { isSelected: {} }, [], [], !0);
|
|
3215
|
+
var fs = /* @__PURE__ */ j('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="black" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4998L2 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4998L20.3335 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0005L2 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0005L20.3335 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.5L2 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.5L20.3335 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path></g><path d="M10.5 8.52856H13.7559C14.7224 8.52856 15.5059 9.31207 15.5059 10.2786V13.5344C15.5059 14.5009 14.7224 15.2844 13.7559 15.2844H10.5C9.5335 15.2844 8.75 14.5009 8.75 13.5344V10.2786C8.75 9.31207 9.5335 8.52856 10.5 8.52856Z" fill="black" stroke="black" stroke-width="1.5"></path>', 1), vs = /* @__PURE__ */ j('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4995L2 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4995L20.3335 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0002L2 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0002L20.3335 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.49976L2 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.49976L20.3335 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path></g><rect x="8.52881" y="8.52856" width="6.75594" height="6.75594" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect>', 1), hs = /* @__PURE__ */ j('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');
|
|
3216
|
+
function Wr(e, t) {
|
|
3217
|
+
B(t, !1);
|
|
3218
|
+
let r = y(t, "isSelected", 12, !1);
|
|
3219
|
+
var n = hs(), i = S(n);
|
|
3220
|
+
{
|
|
3221
|
+
var o = (a) => {
|
|
3222
|
+
var l = fs();
|
|
3223
|
+
Ne(2), I(a, l);
|
|
3224
|
+
}, s = (a) => {
|
|
3225
|
+
var l = vs();
|
|
3226
|
+
Ne(2), I(a, l);
|
|
3227
|
+
};
|
|
3228
|
+
de(i, (a) => {
|
|
3229
|
+
r() ? a(o) : a(s, !1);
|
|
3230
|
+
});
|
|
3231
|
+
}
|
|
3232
|
+
return C(n), I(e, n), F({
|
|
3233
|
+
get isSelected() {
|
|
3234
|
+
return r();
|
|
3235
|
+
},
|
|
3236
|
+
set isSelected(a) {
|
|
3237
|
+
r(a), k();
|
|
3238
|
+
}
|
|
3239
|
+
});
|
|
3240
|
+
}
|
|
3241
|
+
R(Wr, { isSelected: {} }, [], [], !0);
|
|
3242
|
+
var bs = /* @__PURE__ */ j('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#C7CDD6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path stroke="#C7CDD6" stroke-width="1.5"></path>', 1), ps = /* @__PURE__ */ j('<path d="M12.25 18L6 12M6 12L12.25 6M6 12L21 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>', 1), gs = /* @__PURE__ */ j('<path d="M11.75 18.25L18 12M18 12L11.75 5.75M18 12L3 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>', 1), ms = /* @__PURE__ */ j('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'), ws = /* @__PURE__ */ j('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'), _s = /* @__PURE__ */ j('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><!>', 1), ks = /* @__PURE__ */ j("<svg><!></svg>");
|
|
3243
|
+
function Kr(e, t) {
|
|
3244
|
+
const r = Yt(t, ["children", "$$slots", "$$events", "$$legacy", "$$host"]), n = Yt(r, ["isDisabled", "isHovered", "isOpen"]);
|
|
3245
|
+
B(t, !1);
|
|
3246
|
+
let i = y(t, "isDisabled", 12, !1), o = y(t, "isHovered", 12, !1), s = y(t, "isOpen", 12, !1);
|
|
3247
|
+
var a = ks();
|
|
3248
|
+
Ft(a, () => ({
|
|
3249
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3250
|
+
width: "24",
|
|
3251
|
+
height: "24",
|
|
3252
|
+
viewBox: "0 0 24 24",
|
|
3253
|
+
fill: "none",
|
|
3254
|
+
...n
|
|
3255
|
+
}));
|
|
3256
|
+
var l = S(a);
|
|
3257
|
+
{
|
|
3258
|
+
var u = (f) => {
|
|
3259
|
+
var c = bs(), v = W(Ye(c));
|
|
3260
|
+
ft(() => G(v, "d", `M${s() ? "8.18018" : "9.18018"} ${s() ? "5.45068" : "3.27222"}V${s() ? "18.5208" : "20.9203"}`)), I(f, c);
|
|
3261
|
+
}, d = (f, c) => {
|
|
3262
|
+
{
|
|
3263
|
+
var v = (g) => {
|
|
3264
|
+
var _ = Lt(), m = Ye(_);
|
|
3265
|
+
{
|
|
3266
|
+
var h = (w) => {
|
|
3267
|
+
var x = ps();
|
|
3268
|
+
Ne(), I(w, x);
|
|
3269
|
+
}, p = (w) => {
|
|
3270
|
+
var x = gs();
|
|
3271
|
+
Ne(), I(w, x);
|
|
3272
|
+
};
|
|
3273
|
+
de(m, (w) => {
|
|
3274
|
+
s() ? w(h) : w(p, !1);
|
|
3275
|
+
});
|
|
3276
|
+
}
|
|
3277
|
+
I(g, _);
|
|
3278
|
+
}, b = (g) => {
|
|
3279
|
+
var _ = _s(), m = W(Ye(_));
|
|
3280
|
+
{
|
|
3281
|
+
var h = (w) => {
|
|
3282
|
+
var x = ms();
|
|
3283
|
+
I(w, x);
|
|
3284
|
+
}, p = (w) => {
|
|
3285
|
+
var x = ws();
|
|
3286
|
+
I(w, x);
|
|
3287
|
+
};
|
|
3288
|
+
de(m, (w) => {
|
|
3289
|
+
s() ? w(h) : w(p, !1);
|
|
3290
|
+
});
|
|
3291
|
+
}
|
|
3292
|
+
I(g, _);
|
|
3293
|
+
};
|
|
3294
|
+
de(
|
|
3295
|
+
f,
|
|
3296
|
+
(g) => {
|
|
3297
|
+
o() ? g(v) : g(b, !1);
|
|
3298
|
+
},
|
|
3299
|
+
c
|
|
3300
|
+
);
|
|
3301
|
+
}
|
|
3302
|
+
};
|
|
3303
|
+
de(l, (f) => {
|
|
3304
|
+
i() ? f(u) : f(d, !1);
|
|
3305
|
+
});
|
|
3306
|
+
}
|
|
3307
|
+
return C(a), I(e, a), F({
|
|
3308
|
+
get isDisabled() {
|
|
3309
|
+
return i();
|
|
3310
|
+
},
|
|
3311
|
+
set isDisabled(f) {
|
|
3312
|
+
i(f), k();
|
|
3313
|
+
},
|
|
3314
|
+
get isHovered() {
|
|
3315
|
+
return o();
|
|
3316
|
+
},
|
|
3317
|
+
set isHovered(f) {
|
|
3318
|
+
o(f), k();
|
|
3319
|
+
},
|
|
3320
|
+
get isOpen() {
|
|
3321
|
+
return s();
|
|
3322
|
+
},
|
|
3323
|
+
set isOpen(f) {
|
|
3324
|
+
s(f), k();
|
|
3325
|
+
}
|
|
3326
|
+
});
|
|
3327
|
+
}
|
|
3328
|
+
R(Kr, { isDisabled: {}, isHovered: {}, isOpen: {} }, [], [], !0);
|
|
3329
|
+
const ys = {};
|
|
3330
|
+
function pr(e, t) {
|
|
3331
|
+
t || console.warn(`[getAppUrls] Environment variable for ${e} is missing!`);
|
|
3332
|
+
}
|
|
3333
|
+
function qi(e) {
|
|
3334
|
+
const t = ys, r = "#", n = t.PUBLIC_CHAT_URL, i = t.PUBLIC_CONSOLE_URL, o = t.PUBLIC_API_URL, s = t.PUBLIC_DISCOVER_URL;
|
|
3335
|
+
return pr("chat", n), pr("console", i), pr("api", o), {
|
|
3336
|
+
chat: n || r,
|
|
3337
|
+
console: i || r,
|
|
3338
|
+
api: o || "/api",
|
|
3339
|
+
discover: s || "/discover"
|
|
3340
|
+
};
|
|
3341
|
+
}
|
|
3342
|
+
function xs(e, t, r, n) {
|
|
3343
|
+
var i;
|
|
3344
|
+
t() || (Ie.toggleExpanded(), (i = r()) == null || i({ expanded: n() }));
|
|
3345
|
+
}
|
|
3346
|
+
var Es = (
|
|
3347
|
+
// Set navigation flag immediately to prevent header restoration
|
|
3348
|
+
// Clear header state for main navigation items (including discover)
|
|
3349
|
+
// Clear the store value immediately
|
|
3350
|
+
// Set default header from first submenu item after a short delay
|
|
3351
|
+
// Delay to ensure page content is loaded
|
|
3352
|
+
// Clear header state for Discover page
|
|
3353
|
+
(e, t) => t("discover")
|
|
3354
|
+
), Cs = (e, t) => t(e, "discover"), Ss = (e, t) => t("chat"), $s = (e, t) => t(e, "chat"), Ns = (e, t) => t("console"), Is = (e, t) => t(e, "console"), Ts = (e, t) => t("api"), zs = (e, t) => t(e, "api"), Ms = (e, t) => {
|
|
3355
|
+
var r;
|
|
3356
|
+
return (r = t()) == null ? void 0 : r();
|
|
3357
|
+
}, Ls = (e, t) => {
|
|
3358
|
+
var r;
|
|
3359
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), (r = t()) == null || r());
|
|
3360
|
+
}, Us = /* @__PURE__ */ be('<div class="drawer-content svelte-14q02bh" part="drawer-content"><div class="logo-placeholder svelte-14q02bh"></div> <nav aria-label="Sub navigation"><!></nav></div>'), As = /* @__PURE__ */ be('<div part="side-nav-container"><div class="nav-content svelte-14q02bh"><div class="nav-main svelte-14q02bh" part="nav-main"><div class="menu-section svelte-14q02bh"><button><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div></button></div> <div class="nav-items svelte-14q02bh" part="nav-items"><a part="discover-item"><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div> <span class="nav-text svelte-14q02bh">Discover</span></a> <a part="chat-item"><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div> <span class="nav-text svelte-14q02bh">Chat</span></a> <a part="console-item"><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div> <span class="nav-text svelte-14q02bh">Console</span></a> <a part="api-item"><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div> <span class="nav-text svelte-14q02bh">API</span></a></div></div> <div class="nav-footer svelte-14q02bh" part="nav-footer"><button class="user-profile-button svelte-14q02bh" tabindex="0"><div class="user-profile-container svelte-14q02bh"><div class="user-profile-icon svelte-14q02bh" part="user-profile-icon"><span class="user-initials svelte-14q02bh">ZW</span></div></div></button></div></div> <div part="expanded-content"><!></div></div>');
|
|
3361
|
+
const Os = {
|
|
3362
|
+
hash: "svelte-14q02bh",
|
|
3363
|
+
code: `.expanded-content.drawer-anim.svelte-14q02bh {max-width:0;overflow:hidden;pointer-events:none;transition:max-width 0.2s cubic-bezier(.4, 0, .2, 1);}.expanded-content.drawer-anim.open.svelte-14q02bh {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-14q02bh {width:12.5rem;height:100%;}.logo-placeholder.svelte-14q02bh {height:var(--ai-size-72);}.user-profile-container.svelte-14q02bh,
|
|
3364
|
+
.user-profile-icon.svelte-14q02bh {display:flex;align-items:center;justify-content:center;}.menu-button.svelte-14q02bh {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color 0.2s ease;}.menu-button.svelte-14q02bh:disabled,
|
|
3365
|
+
.menu-button.disabled.svelte-14q02bh {cursor:not-allowed;opacity:0.5;background-color:transparent;}.user-profile-icon.svelte-14q02bh {border-radius:var(--ai-size-6);background:var(--ai-color-steel-700);}.user-initials.svelte-14q02bh {color:var(--ai-color-white);text-align:center;font-weight:400;line-height:1.3;}.side-nav-container.svelte-14q02bh {display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-2);height:100%;}.side-nav-container.expanded.svelte-14q02bh {width:16.875rem;min-width:12.5rem;max-width:16.875rem;height:100%;}.expanded-content.svelte-14q02bh {display:flex;width:12.5rem;opacity:1;flex:none;height:100%;background:var(--ai-color-steel-100);border-right:0.0625rem solid var(--ai-color-steel-100);overflow:hidden;flex-direction:column;}.side-nav-container.expanded.svelte-14q02bh .expanded-content:where(.svelte-14q02bh) {width:12.5rem;opacity:1;overflow-y:auto;}.side-nav-container.svelte-14q02bh:not(.expanded) .expanded-content:where(.svelte-14q02bh) {width:0;opacity:0;}.nav-content.svelte-14q02bh {display:flex;width:var(--ai-size-72);height:100%;padding-bottom:var(--ai-size-16);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:none;background:var(--ai-color-steel-200);border-right:0.0625rem solid var(--ai-color-steel-200);}.nav-main.svelte-14q02bh {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-14q02bh {display:flex;padding:var(--ai-size-8) var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-4);align-self:stretch;margin-top:auto;}.user-profile-button.svelte-14q02bh {background:none;border:none;padding:0;cursor:pointer;display:flex;justify-content:center;align-items:center;}.user-profile-button.svelte-14q02bh:focus {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}.user-profile-container.svelte-14q02bh {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.user-profile-icon.svelte-14q02bh {padding:0.5556rem 0.4931rem 0.5694rem 0.3819rem;}.user-initials.svelte-14q02bh {font-size:var(--ai-size-16);font-style:normal;}.menu-section.svelte-14q02bh {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-14q02bh {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity 0.2s ease;will-change:opacity;}.menu-button.disabled.svelte-14q02bh {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-14q02bh:focus,
|
|
3366
|
+
.nav-item.svelte-14q02bh:focus {outline:none;}.menu-button.svelte-14q02bh:focus .icon-container:where(.svelte-14q02bh),
|
|
3367
|
+
.nav-item.svelte-14q02bh:focus .icon-container:where(.svelte-14q02bh) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}.nav-items.svelte-14q02bh {display:flex;width:var(--ai-size-72);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);}.nav-item.svelte-14q02bh {display:flex;height:4.125rem;padding:var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-2);align-self:stretch;cursor:pointer;text-decoration:none;color:inherit;position:relative;flex-shrink:0;}.icon-container.svelte-14q02bh {display:flex;width:var(--ai-size-40);height:var(--ai-size-40);padding:var(--ai-size-8);justify-content:center;align-items:center;flex-shrink:0;position:relative;contain:layout style;transition:background-color 0.3s ease,
|
|
3368
|
+
border-radius 0.3s ease;}.icon-wrapper.svelte-14q02bh {display:flex;width:var(--ai-size-28);height:var(--ai-size-28);justify-content:center;align-items:center;flex-shrink:0;aspect-ratio:1/1;position:relative;overflow:hidden;transition:transform 0.3s ease;}.icon-wrapper.svelte-14q02bh svg {width:var(--ai-size-24);height:var(--ai-size-24);flex-shrink:0;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);transition:all 0.3s ease;}.icon-wrapper.svelte-14q02bh svg path {stroke-width:1.5;vector-effect:non-scaling-stroke;transition:stroke 0.3s ease,
|
|
3369
|
+
fill 0.3s ease,
|
|
3370
|
+
stroke-width 0.3s ease;}.nav-text.svelte-14q02bh {font-size:var(--ai-size-12);text-align:center;color:var(--ai-color-neutral-900);line-height:1.3;}.menu-button.disabled.svelte-14q02bh:hover .icon-container:where(.svelte-14q02bh),
|
|
3371
|
+
.menu-button.svelte-14q02bh:disabled:hover .icon-container:where(.svelte-14q02bh) {background:none !important;border-radius:var(--ai-size-4);}.nav-item.hovered.svelte-14q02bh .icon-container:where(.svelte-14q02bh),
|
|
3372
|
+
.nav-item.svelte-14q02bh:active .icon-container:where(.svelte-14q02bh),
|
|
3373
|
+
.nav-item.selected.svelte-14q02bh .icon-container:where(.svelte-14q02bh),
|
|
3374
|
+
.nav-item.selected.hovered.svelte-14q02bh .icon-container:where(.svelte-14q02bh),
|
|
3375
|
+
.menu-button.svelte-14q02bh:hover .icon-container:where(.svelte-14q02bh),
|
|
3376
|
+
.menu-button.svelte-14q02bh:active .icon-container:where(.svelte-14q02bh) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-14q02bh {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color 0.2s ease;height:100%;}.nav-item.svelte-14q02bh:hover {color:var(--ai-color-neutral-700);}`
|
|
3377
|
+
};
|
|
3378
|
+
function Pi(e, t) {
|
|
3379
|
+
B(t, !0), bt(e, Os);
|
|
3380
|
+
const [r, n] = Ut(), i = () => fe(tt, "$selectedItem", r), o = () => fe(me, "$isExpanded", r), s = () => fe(Fr, "$isMenuButtonDisabled", r), a = qi(), l = y(t, "ssrSelectedItem", 7, void 0), u = y(t, "onNavToggle", 7, void 0), d = y(t, "onNavItemClick", 7, void 0), f = y(t, "onProfileClick", 7, void 0), c = y(t, "children", 7), v = y(t, "apiUrl", 7), b = y(t, "chatUrl", 7), g = y(t, "consoleUrl", 7), _ = y(t, "discoverUrl", 7);
|
|
3381
|
+
let m = !1, h, p = /* @__PURE__ */ ge(null), w = /* @__PURE__ */ ge(!1), x = /* @__PURE__ */ ge(!1);
|
|
3382
|
+
function M(N, K) {
|
|
3383
|
+
return m ? N : K;
|
|
3384
|
+
}
|
|
3385
|
+
function $(N) {
|
|
3386
|
+
return M(i() === N, l() === N);
|
|
3387
|
+
}
|
|
3388
|
+
function T(N) {
|
|
3389
|
+
return E(p) === N;
|
|
3390
|
+
}
|
|
3391
|
+
const q = /* @__PURE__ */ J(() => () => M(o(), l() ? l() !== "discover" : !0)), H = /* @__PURE__ */ J(() => () => M(s(), l() ? l() === "discover" : !1)), ae = /* @__PURE__ */ J(() => () => M(o(), l() ? l() !== "discover" : !0)), Ve = /* @__PURE__ */ J(() => () => E(x) && E(w) && !E(H)());
|
|
3392
|
+
nr(() => {
|
|
3393
|
+
if (m = !0, document.documentElement.classList.remove("nav-initially-expanded"), document.documentElement.style.removeProperty("--initial-main-top-padding"), h && h.classList.add("hydrated"), typeof window < "u") {
|
|
3394
|
+
const N = window.matchMedia("(hover: hover)");
|
|
3395
|
+
O(x, N.matches, !0), N.addEventListener("change", (D) => {
|
|
3396
|
+
O(x, D.matches, !0);
|
|
3397
|
+
});
|
|
3398
|
+
const K = (D) => {
|
|
3399
|
+
const Re = D, { isMobile: We } = Re.detail;
|
|
3400
|
+
if (We)
|
|
3401
|
+
Ie.setExpanded(!1);
|
|
3402
|
+
else {
|
|
3403
|
+
const Ke = i();
|
|
3404
|
+
Ke && Ke !== "discover" ? Ie.setExpanded(!0) : Ie.setExpanded(!1);
|
|
3405
|
+
}
|
|
3406
|
+
};
|
|
3407
|
+
return window.addEventListener("layoutTransition", K), () => {
|
|
3408
|
+
window.removeEventListener("layoutTransition", K);
|
|
3409
|
+
};
|
|
3410
|
+
}
|
|
3411
|
+
});
|
|
3412
|
+
function Y(N) {
|
|
3413
|
+
var K;
|
|
3414
|
+
if (N !== "discover" && typeof window < "u" && sessionStorage.setItem("navigatingToMainNav", "true"), Ie.setSelectedItem(N), N !== "discover")
|
|
3415
|
+
try {
|
|
3416
|
+
Promise.resolve().then(() => Zt).then(({ selectedSubNavItemTitle: D }) => {
|
|
3417
|
+
D.set(""), typeof window < "u" && (sessionStorage.removeItem("subNav-selectedTitle"), sessionStorage.removeItem("subNav-selectedId")), setTimeout(
|
|
3418
|
+
() => {
|
|
3419
|
+
const Re = document.getElementById("main-content");
|
|
3420
|
+
if (Re) {
|
|
3421
|
+
const We = Re.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");
|
|
3422
|
+
if (We && We.textContent) {
|
|
3423
|
+
const Ke = We.textContent.trim();
|
|
3424
|
+
D.set(Ke), typeof window < "u" && sessionStorage.setItem("subNav-selectedTitle", JSON.stringify(Ke));
|
|
3425
|
+
}
|
|
3426
|
+
}
|
|
3427
|
+
},
|
|
3428
|
+
200
|
|
3429
|
+
);
|
|
3430
|
+
}).catch((D) => {
|
|
3431
|
+
console.log("[DesktopSideNav] Error clearing header state:", D);
|
|
3432
|
+
});
|
|
3433
|
+
} catch (D) {
|
|
3434
|
+
console.log("[DesktopSideNav] Import failed for clearing state:", D);
|
|
3435
|
+
}
|
|
3436
|
+
else
|
|
3437
|
+
try {
|
|
3438
|
+
Promise.resolve().then(() => Zt).then(({ selectedSubNavItemTitle: D }) => {
|
|
3439
|
+
D.set(""), typeof window < "u" && (sessionStorage.removeItem("subNav-selectedTitle"), sessionStorage.removeItem("subNav-selectedId"));
|
|
3440
|
+
}).catch((D) => {
|
|
3441
|
+
console.log("[DesktopSideNav] Error clearing header state for Discover:", D);
|
|
3442
|
+
});
|
|
3443
|
+
} catch (D) {
|
|
3444
|
+
console.log("[DesktopSideNav] Import failed for clearing Discover state:", D);
|
|
3445
|
+
}
|
|
3446
|
+
(K = d()) == null || K({ item: N, expanded: o() });
|
|
3447
|
+
}
|
|
3448
|
+
function ye(N, K) {
|
|
3449
|
+
(N.key === "Enter" || N.key === " ") && (N.preventDefault(), Y(K));
|
|
3450
|
+
}
|
|
3451
|
+
var xe = As();
|
|
3452
|
+
let pt;
|
|
3453
|
+
var sr = S(xe), lr = S(sr), ur = S(lr), pe = S(ur);
|
|
3454
|
+
let Gr;
|
|
3455
|
+
pe.__click = [xs, s, u, o];
|
|
3456
|
+
var Xr = S(pe), Qr = S(Xr), Ri = S(Qr);
|
|
3457
|
+
const Bi = /* @__PURE__ */ J(() => E(Ve)()), Fi = /* @__PURE__ */ J(() => E(H)()), Yi = /* @__PURE__ */ J(() => E(ae)());
|
|
3458
|
+
Kr(Ri, {
|
|
3459
|
+
get isHovered() {
|
|
3460
|
+
return E(Bi);
|
|
3461
|
+
},
|
|
3462
|
+
get isDisabled() {
|
|
3463
|
+
return E(Fi);
|
|
3464
|
+
},
|
|
3465
|
+
get isOpen() {
|
|
3466
|
+
return E(Yi);
|
|
3467
|
+
}
|
|
3468
|
+
}), C(Qr), C(Xr), C(pe), C(ur);
|
|
3469
|
+
var en = W(ur, 2), Ee = S(en);
|
|
3470
|
+
let tn;
|
|
3471
|
+
Ee.__click = [Es, Y], Ee.__keydown = [Cs, ye];
|
|
3472
|
+
var rn = S(Ee), nn = S(rn), Zi = S(nn);
|
|
3473
|
+
const Ji = /* @__PURE__ */ J(() => $("discover"));
|
|
3474
|
+
Yr(Zi, {
|
|
3475
|
+
get isSelected() {
|
|
3476
|
+
return E(Ji);
|
|
3477
|
+
}
|
|
3478
|
+
}), C(nn), C(rn), Ne(2), C(Ee);
|
|
3479
|
+
var Ce = W(Ee, 2);
|
|
3480
|
+
let on;
|
|
3481
|
+
Ce.__click = [Ss, Y], Ce.__keydown = [$s, ye];
|
|
3482
|
+
var an = S(Ce), sn = S(an), Wi = S(sn);
|
|
3483
|
+
const Ki = /* @__PURE__ */ J(() => $("chat"));
|
|
3484
|
+
Zr(Wi, {
|
|
3485
|
+
get isSelected() {
|
|
3486
|
+
return E(Ki);
|
|
3487
|
+
}
|
|
3488
|
+
}), C(sn), C(an), Ne(2), C(Ce);
|
|
3489
|
+
var Se = W(Ce, 2);
|
|
3490
|
+
let ln;
|
|
3491
|
+
Se.__click = [Ns, Y], Se.__keydown = [Is, ye];
|
|
3492
|
+
var un = S(Se), cn = S(un), Gi = S(cn);
|
|
3493
|
+
const Xi = /* @__PURE__ */ J(() => $("console"));
|
|
3494
|
+
Jr(Gi, {
|
|
3495
|
+
get isSelected() {
|
|
3496
|
+
return E(Xi);
|
|
3497
|
+
}
|
|
3498
|
+
}), C(cn), C(un), Ne(2), C(Se);
|
|
3499
|
+
var Me = W(Se, 2);
|
|
3500
|
+
let dn;
|
|
3501
|
+
Me.__click = [Ts, Y], Me.__keydown = [zs, ye];
|
|
3502
|
+
var fn = S(Me), vn = S(fn), Qi = S(vn);
|
|
3503
|
+
const eo = /* @__PURE__ */ J(() => $("api"));
|
|
3504
|
+
Wr(Qi, {
|
|
3505
|
+
get isSelected() {
|
|
3506
|
+
return E(eo);
|
|
3507
|
+
}
|
|
3508
|
+
}), C(vn), C(fn), Ne(2), C(Me), C(en), C(lr);
|
|
3509
|
+
var hn = W(lr, 2), bn = S(hn);
|
|
3510
|
+
bn.__click = [Ms, f], bn.__keydown = [Ls, f], C(hn), C(sr);
|
|
3511
|
+
var cr = W(sr, 2);
|
|
3512
|
+
let pn;
|
|
3513
|
+
var to = S(cr);
|
|
3514
|
+
{
|
|
3515
|
+
var ro = (N) => {
|
|
3516
|
+
var K = Us(), D = W(S(K), 2), Re = S(D);
|
|
3517
|
+
Cr(Re, () => c() ?? ve), C(D), C(K), I(N, K);
|
|
3518
|
+
};
|
|
3519
|
+
de(to, (N) => {
|
|
3520
|
+
E(q)() && N(ro);
|
|
3521
|
+
});
|
|
3522
|
+
}
|
|
3523
|
+
C(cr), C(xe), Ni(xe, (N) => h = N, () => h), ft(
|
|
3524
|
+
(N, K, D, Re, We, Ke, io, oo, ao, so, lo, uo, co) => {
|
|
3525
|
+
pt = ue(xe, 1, "side-nav-container svelte-14q02bh", null, pt, N), Gr = ue(pe, 1, "menu-button svelte-14q02bh", null, Gr, K), pe.disabled = s(), G(pe, "aria-label", D), G(pe, "aria-expanded", Re), G(Ee, "href", _() || a.discover), tn = ue(Ee, 1, "nav-item discover-item svelte-14q02bh", null, tn, We), G(Ee, "aria-current", Ke), G(Ce, "href", b() || a.chat), on = ue(Ce, 1, "nav-item chat-item svelte-14q02bh", null, on, io), G(Ce, "aria-current", oo), G(Se, "href", g() || a.console), ln = ue(Se, 1, "nav-item console-item svelte-14q02bh", null, ln, ao), G(Se, "aria-current", so), G(Me, "href", v() || a.api), dn = ue(Me, 1, "nav-item api-item svelte-14q02bh", null, dn, lo), G(Me, "aria-current", uo), pn = ue(cr, 1, "expanded-content drawer-anim svelte-14q02bh", null, pn, co);
|
|
3526
|
+
},
|
|
3527
|
+
[
|
|
3528
|
+
() => ({ expanded: E(q)() }),
|
|
3529
|
+
() => ({ disabled: s() }),
|
|
3530
|
+
() => E(q)() ? "Close navigation menu" : "Open navigation menu",
|
|
3531
|
+
() => E(q)() ? "true" : "false",
|
|
3532
|
+
() => ({
|
|
3533
|
+
selected: $("discover"),
|
|
3534
|
+
hovered: T("discover")
|
|
3535
|
+
}),
|
|
3536
|
+
() => $("discover") ? "page" : void 0,
|
|
3537
|
+
() => ({
|
|
3538
|
+
selected: $("chat"),
|
|
3539
|
+
hovered: T("chat")
|
|
3540
|
+
}),
|
|
3541
|
+
() => $("chat") ? "page" : void 0,
|
|
3542
|
+
() => ({
|
|
3543
|
+
selected: $("console"),
|
|
3544
|
+
hovered: T("console")
|
|
3545
|
+
}),
|
|
3546
|
+
() => $("console") ? "page" : void 0,
|
|
3547
|
+
() => ({ selected: $("api"), hovered: T("api") }),
|
|
3548
|
+
() => $("api") ? "page" : void 0,
|
|
3549
|
+
() => ({ open: E(q)() })
|
|
3550
|
+
]
|
|
3551
|
+
), Z("mouseenter", pe, () => O(w, !0)), Z("mouseleave", pe, () => O(w, !1)), Z("focus", pe, () => O(w, !0)), Z("blur", pe, () => O(w, !1)), Z("mouseenter", Ee, () => O(p, "discover")), Z("mouseleave", Ee, () => O(p, null)), Z("mouseenter", Ce, () => O(p, "chat")), Z("mouseleave", Ce, () => O(p, null)), Z("mouseenter", Se, () => O(p, "console")), Z("mouseleave", Se, () => O(p, null)), Z("mouseenter", Me, () => O(p, "api")), Z("mouseleave", Me, () => O(p, null)), I(e, xe);
|
|
3552
|
+
var no = F({
|
|
3553
|
+
get ssrSelectedItem() {
|
|
3554
|
+
return l();
|
|
3555
|
+
},
|
|
3556
|
+
set ssrSelectedItem(N = void 0) {
|
|
3557
|
+
l(N), k();
|
|
3558
|
+
},
|
|
3559
|
+
get onNavToggle() {
|
|
3560
|
+
return u();
|
|
3561
|
+
},
|
|
3562
|
+
set onNavToggle(N = void 0) {
|
|
3563
|
+
u(N), k();
|
|
3564
|
+
},
|
|
3565
|
+
get onNavItemClick() {
|
|
3566
|
+
return d();
|
|
3567
|
+
},
|
|
3568
|
+
set onNavItemClick(N = void 0) {
|
|
3569
|
+
d(N), k();
|
|
3570
|
+
},
|
|
3571
|
+
get onProfileClick() {
|
|
3572
|
+
return f();
|
|
3573
|
+
},
|
|
3574
|
+
set onProfileClick(N = void 0) {
|
|
3575
|
+
f(N), k();
|
|
3576
|
+
},
|
|
3577
|
+
get children() {
|
|
3578
|
+
return c();
|
|
3579
|
+
},
|
|
3580
|
+
set children(N) {
|
|
3581
|
+
c(N), k();
|
|
3582
|
+
},
|
|
3583
|
+
get apiUrl() {
|
|
3584
|
+
return v();
|
|
3585
|
+
},
|
|
3586
|
+
set apiUrl(N) {
|
|
3587
|
+
v(N), k();
|
|
3588
|
+
},
|
|
3589
|
+
get chatUrl() {
|
|
3590
|
+
return b();
|
|
3591
|
+
},
|
|
3592
|
+
set chatUrl(N) {
|
|
3593
|
+
b(N), k();
|
|
3594
|
+
},
|
|
3595
|
+
get consoleUrl() {
|
|
3596
|
+
return g();
|
|
3597
|
+
},
|
|
3598
|
+
set consoleUrl(N) {
|
|
3599
|
+
g(N), k();
|
|
3600
|
+
},
|
|
3601
|
+
get discoverUrl() {
|
|
3602
|
+
return _();
|
|
3603
|
+
},
|
|
3604
|
+
set discoverUrl(N) {
|
|
3605
|
+
_(N), k();
|
|
3606
|
+
}
|
|
3607
|
+
});
|
|
3608
|
+
return n(), no;
|
|
3609
|
+
}
|
|
3610
|
+
Hr(["click", "keydown"]);
|
|
3611
|
+
R(
|
|
3612
|
+
Pi,
|
|
3613
|
+
{
|
|
3614
|
+
ssrSelectedItem: {},
|
|
3615
|
+
onNavToggle: {},
|
|
3616
|
+
onNavItemClick: {},
|
|
3617
|
+
onProfileClick: {},
|
|
3618
|
+
children: {},
|
|
3619
|
+
apiUrl: {},
|
|
3620
|
+
chatUrl: {},
|
|
3621
|
+
consoleUrl: {},
|
|
3622
|
+
discoverUrl: {}
|
|
3623
|
+
},
|
|
3624
|
+
[],
|
|
3625
|
+
[],
|
|
3626
|
+
!0
|
|
3627
|
+
);
|
|
3628
|
+
function qs(e, t) {
|
|
3629
|
+
B(t, !0);
|
|
3630
|
+
let r = y(t, "ssrSelectedItem", 7), n = y(t, "onNavToggle", 7), i = y(t, "onNavItemClick", 7), o = y(t, "onProfileClick", 7), s = y(t, "apiUrl", 7), a = y(t, "chatUrl", 7), l = y(t, "consoleUrl", 7), u = y(t, "discoverUrl", 7);
|
|
3631
|
+
return Pi(e, {
|
|
3632
|
+
get ssrSelectedItem() {
|
|
3633
|
+
return r();
|
|
3634
|
+
},
|
|
3635
|
+
get onNavToggle() {
|
|
3636
|
+
return n();
|
|
3637
|
+
},
|
|
3638
|
+
get onNavItemClick() {
|
|
3639
|
+
return i();
|
|
3640
|
+
},
|
|
3641
|
+
get onProfileClick() {
|
|
3642
|
+
return o();
|
|
3643
|
+
},
|
|
3644
|
+
get apiUrl() {
|
|
3645
|
+
return s();
|
|
3646
|
+
},
|
|
3647
|
+
get chatUrl() {
|
|
3648
|
+
return a();
|
|
3649
|
+
},
|
|
3650
|
+
get consoleUrl() {
|
|
3651
|
+
return l();
|
|
3652
|
+
},
|
|
3653
|
+
get discoverUrl() {
|
|
3654
|
+
return u();
|
|
3655
|
+
},
|
|
3656
|
+
children: (d, f) => {
|
|
3657
|
+
var c = Lt(), v = Ye(c);
|
|
3658
|
+
ir(v, t, "default", {}), I(d, c);
|
|
3659
|
+
},
|
|
3660
|
+
$$slots: { default: !0 }
|
|
3661
|
+
}), F({
|
|
3662
|
+
get ssrSelectedItem() {
|
|
3663
|
+
return r();
|
|
3664
|
+
},
|
|
3665
|
+
set ssrSelectedItem(d) {
|
|
3666
|
+
r(d), k();
|
|
3667
|
+
},
|
|
3668
|
+
get onNavToggle() {
|
|
3669
|
+
return n();
|
|
3670
|
+
},
|
|
3671
|
+
set onNavToggle(d) {
|
|
3672
|
+
n(d), k();
|
|
3673
|
+
},
|
|
3674
|
+
get onNavItemClick() {
|
|
3675
|
+
return i();
|
|
3676
|
+
},
|
|
3677
|
+
set onNavItemClick(d) {
|
|
3678
|
+
i(d), k();
|
|
3679
|
+
},
|
|
3680
|
+
get onProfileClick() {
|
|
3681
|
+
return o();
|
|
3682
|
+
},
|
|
3683
|
+
set onProfileClick(d) {
|
|
3684
|
+
o(d), k();
|
|
3685
|
+
},
|
|
3686
|
+
get apiUrl() {
|
|
3687
|
+
return s();
|
|
3688
|
+
},
|
|
3689
|
+
set apiUrl(d) {
|
|
3690
|
+
s(d), k();
|
|
3691
|
+
},
|
|
3692
|
+
get chatUrl() {
|
|
3693
|
+
return a();
|
|
3694
|
+
},
|
|
3695
|
+
set chatUrl(d) {
|
|
3696
|
+
a(d), k();
|
|
3697
|
+
},
|
|
3698
|
+
get consoleUrl() {
|
|
3699
|
+
return l();
|
|
3700
|
+
},
|
|
3701
|
+
set consoleUrl(d) {
|
|
3702
|
+
l(d), k();
|
|
3703
|
+
},
|
|
3704
|
+
get discoverUrl() {
|
|
3705
|
+
return u();
|
|
3706
|
+
},
|
|
3707
|
+
set discoverUrl(d) {
|
|
3708
|
+
u(d), k();
|
|
3709
|
+
}
|
|
3710
|
+
});
|
|
3711
|
+
}
|
|
3712
|
+
customElements.define("graymatter-desktop-side-nav", R(
|
|
3713
|
+
qs,
|
|
3714
|
+
{
|
|
3715
|
+
ssrSelectedItem: {},
|
|
3716
|
+
onNavToggle: {},
|
|
3717
|
+
onNavItemClick: {},
|
|
3718
|
+
onProfileClick: {},
|
|
3719
|
+
apiUrl: {},
|
|
3720
|
+
chatUrl: {},
|
|
3721
|
+
consoleUrl: {},
|
|
3722
|
+
discoverUrl: {}
|
|
3723
|
+
},
|
|
3724
|
+
["default"],
|
|
3725
|
+
[],
|
|
3726
|
+
!0
|
|
3727
|
+
));
|
|
3728
|
+
var Ps = /* @__PURE__ */ j('<svg><g><path d="M57.5791 20.4177C57.5791 15.5645 53.7309 11.6187 48.9988 11.6187H40.188C38.6688 11.6187 37.4304 10.3567 37.4304 8.80197C37.4304 7.24729 38.6658 5.98522 40.188 5.98522H56.2373V0H38.8757C34.1466 0 30.2983 3.94877 30.2983 8.80197C30.2983 13.6552 34.1466 17.6039 38.8757 17.6039H47.6865C49.2057 17.6039 50.4442 18.866 50.4442 20.4207C50.4442 21.9754 49.2087 23.2374 47.6865 23.2374H31.0284V29.2197H48.9988C53.7309 29.2197 57.5791 25.2709 57.5791 20.4207V20.4177Z"></path><path d="M82.1466 24.7153L82.188 24.7685L83.6747 29.2197H90.6914L80.917 0H68.3525L58.5781 29.2167H65.5949L67.0993 24.7153H82.1466ZM69.186 18.4818L73.3653 5.98522H75.9013L75.919 6.03547L80.1161 18.5793H69.1535L69.186 18.4818Z"></path><path d="M27.198 0H20.5626V15.8158C20.5626 21.4345 16.9626 23.4355 13.5961 23.4355C9.03842 23.4355 6.62956 20.799 6.62956 15.8158V0H0V17.0069C0 20.6985 1.46305 24.0532 4.11724 26.4532C6.64729 28.7409 10.0138 30 13.599 30C20.3586 30 27.198 25.5369 27.198 17.0039V0Z"></path><path d="M101.708 9.78915H93.8662V29.2197H101.708V9.78915Z"></path><path d="M101.823 0H93.8662V5.98227H101.823V0Z"></path></g></svg>');
|
|
3729
|
+
function ar(e, t) {
|
|
3730
|
+
const r = Yt(t, ["children", "$$slots", "$$events", "$$legacy", "$$host"]), n = Yt(r, ["isInverted", "width", "height"]);
|
|
3731
|
+
B(t, !1);
|
|
3732
|
+
const i = /* @__PURE__ */ zt();
|
|
3733
|
+
let o = y(t, "isInverted", 12, !1), s = y(t, "width", 12), a = y(t, "height", 12);
|
|
3734
|
+
const l = 102, u = 30;
|
|
3735
|
+
s(s() || l), a(a() || u), Ko(() => pi(o()), () => {
|
|
3736
|
+
O(i, o() ? "var(--ai-color-white)" : "var(--ai-color-black)");
|
|
3737
|
+
}), Go();
|
|
3738
|
+
var d = Ps();
|
|
3739
|
+
return Ft(d, () => ({
|
|
3740
|
+
width: s(),
|
|
3741
|
+
height: a(),
|
|
3742
|
+
viewBox: "0 0 102 30",
|
|
3743
|
+
fill: "none",
|
|
3744
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3745
|
+
style: `fill: ${E(i) ?? ""};`,
|
|
3746
|
+
...n
|
|
3747
|
+
})), I(e, d), F({
|
|
3748
|
+
get isInverted() {
|
|
3749
|
+
return o();
|
|
3750
|
+
},
|
|
3751
|
+
set isInverted(f) {
|
|
3752
|
+
o(f), k();
|
|
3753
|
+
},
|
|
3754
|
+
get width() {
|
|
3755
|
+
return s();
|
|
3756
|
+
},
|
|
3757
|
+
set width(f) {
|
|
3758
|
+
s(f), k();
|
|
3759
|
+
},
|
|
3760
|
+
get height() {
|
|
3761
|
+
return a();
|
|
3762
|
+
},
|
|
3763
|
+
set height(f) {
|
|
3764
|
+
a(f), k();
|
|
3765
|
+
}
|
|
3766
|
+
});
|
|
3767
|
+
}
|
|
3768
|
+
R(ar, { isInverted: {}, width: {}, height: {} }, [], [], !0);
|
|
3769
|
+
function Ds(e, t) {
|
|
3770
|
+
B(t, !0);
|
|
3771
|
+
let r = y(t, "isInverted", 7, !1), n = y(t, "width", 7, void 0), i = y(t, "height", 7, void 0), o = /* @__PURE__ */ Br(t, [
|
|
3772
|
+
"$$slots",
|
|
3773
|
+
"$$events",
|
|
3774
|
+
"$$legacy",
|
|
3775
|
+
"$$host",
|
|
3776
|
+
"isInverted",
|
|
3777
|
+
"width",
|
|
3778
|
+
"height"
|
|
3779
|
+
]);
|
|
3780
|
+
return ar(e, Ti(
|
|
3781
|
+
{
|
|
3782
|
+
get isInverted() {
|
|
3783
|
+
return r();
|
|
3784
|
+
},
|
|
3785
|
+
get width() {
|
|
3786
|
+
return n();
|
|
3787
|
+
},
|
|
3788
|
+
get height() {
|
|
3789
|
+
return i();
|
|
3790
|
+
}
|
|
3791
|
+
},
|
|
3792
|
+
() => o
|
|
3793
|
+
)), F({
|
|
3794
|
+
get isInverted() {
|
|
3795
|
+
return r();
|
|
3796
|
+
},
|
|
3797
|
+
set isInverted(s = !1) {
|
|
3798
|
+
r(s), k();
|
|
3799
|
+
},
|
|
3800
|
+
get width() {
|
|
3801
|
+
return n();
|
|
3802
|
+
},
|
|
3803
|
+
set width(s = void 0) {
|
|
3804
|
+
n(s), k();
|
|
3805
|
+
},
|
|
3806
|
+
get height() {
|
|
3807
|
+
return i();
|
|
3808
|
+
},
|
|
3809
|
+
set height(s = void 0) {
|
|
3810
|
+
i(s), k();
|
|
3811
|
+
}
|
|
3812
|
+
});
|
|
3813
|
+
}
|
|
3814
|
+
customElements.define("graymatter-logo", R(
|
|
3815
|
+
Ds,
|
|
3816
|
+
{
|
|
3817
|
+
isInverted: { attribute: "is-inverted", reflect: !0, type: "Boolean" },
|
|
3818
|
+
width: { attribute: "width", reflect: !0, type: "Number" },
|
|
3819
|
+
height: { attribute: "height", reflect: !0, type: "Number" }
|
|
3820
|
+
},
|
|
3821
|
+
[],
|
|
3822
|
+
[],
|
|
3823
|
+
!0
|
|
3824
|
+
));
|
|
3825
|
+
function js(e) {
|
|
3826
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3827
|
+
}
|
|
3828
|
+
var Pt = { exports: {} }, Hs = Pt.exports, Un;
|
|
3829
|
+
function Vs() {
|
|
3830
|
+
return Un || (Un = 1, function(e, t) {
|
|
3831
|
+
(function(r, n, i) {
|
|
3832
|
+
e.exports = i(), e.exports.default = i();
|
|
3833
|
+
})("slugify", Hs, function() {
|
|
3834
|
+
var r = JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`), n = JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');
|
|
3835
|
+
function i(o, s) {
|
|
3836
|
+
if (typeof o != "string")
|
|
3837
|
+
throw new Error("slugify: string argument expected");
|
|
3838
|
+
s = typeof s == "string" ? { replacement: s } : s || {};
|
|
3839
|
+
var a = n[s.locale] || {}, l = s.replacement === void 0 ? "-" : s.replacement, u = s.trim === void 0 ? !0 : s.trim, d = o.normalize().split("").reduce(function(f, c) {
|
|
3840
|
+
var v = a[c];
|
|
3841
|
+
return v === void 0 && (v = r[c]), v === void 0 && (v = c), v === l && (v = " "), f + v.replace(s.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
|
|
3842
|
+
}, "");
|
|
3843
|
+
return s.strict && (d = d.replace(/[^A-Za-z0-9\s]/g, "")), u && (d = d.trim()), d = d.replace(/\s+/g, l), s.lower && (d = d.toLowerCase()), d;
|
|
3844
|
+
}
|
|
3845
|
+
return i.extend = function(o) {
|
|
3846
|
+
Object.assign(r, o);
|
|
3847
|
+
}, i;
|
|
3848
|
+
});
|
|
3849
|
+
}(Pt)), Pt.exports;
|
|
3850
|
+
}
|
|
3851
|
+
var Rs = Vs();
|
|
3852
|
+
const Bs = /* @__PURE__ */ js(Rs);
|
|
3853
|
+
var Fs = (e, t, r) => t(E(r).id), Ys = /* @__PURE__ */ be('<a><div class="icon svelte-cugc62"><!></div> <span class="label svelte-cugc62"> </span></a>'), Zs = /* @__PURE__ */ be('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');
|
|
3854
|
+
const Js = {
|
|
3855
|
+
hash: "svelte-cugc62",
|
|
3856
|
+
code: ".nav-item.svelte-cugc62 {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color 0.2s ease;height:100%;}.nav-item.active.svelte-cugc62 {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-cugc62 .icon:where(.svelte-cugc62) {background-color:var(--ai-color-neutral-200);border-radius:var(--ai-size-8);}.nav-item.svelte-cugc62:hover {color:var(--ai-color-neutral-700);}.icon.svelte-cugc62 {width:var(--ai-size-24);height:var(--ai-size-24);margin-bottom:var(--ai-size-2);display:flex;align-items:center;justify-content:center;padding:var(--ai-size-2);transition:background-color 0.2s ease;}.label.svelte-cugc62 {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"
|
|
3857
|
+
};
|
|
3858
|
+
function Di(e, t) {
|
|
3859
|
+
B(t, !0), bt(e, Js);
|
|
3860
|
+
const [r, n] = Ut(), i = () => fe(tt, "$selectedItem", r);
|
|
3861
|
+
let o = y(t, "onNavItemClick", 7), s = y(t, "apiUrl", 7), a = y(t, "chatUrl", 7), l = y(t, "consoleUrl", 7), u = y(t, "discoverUrl", 7);
|
|
3862
|
+
const d = qi(), f = [
|
|
3863
|
+
{
|
|
3864
|
+
id: "discover",
|
|
3865
|
+
label: "Discover",
|
|
3866
|
+
icon: Yr,
|
|
3867
|
+
href: u() || d.discover
|
|
3868
|
+
},
|
|
3869
|
+
{
|
|
3870
|
+
id: "chat",
|
|
3871
|
+
label: "Chat",
|
|
3872
|
+
icon: Zr,
|
|
3873
|
+
href: a() || d.chat
|
|
3874
|
+
},
|
|
3875
|
+
{
|
|
3876
|
+
id: "console",
|
|
3877
|
+
label: "Console",
|
|
3878
|
+
icon: Jr,
|
|
3879
|
+
href: l() || d.console
|
|
3880
|
+
},
|
|
3881
|
+
{
|
|
3882
|
+
id: "api",
|
|
3883
|
+
label: "API",
|
|
3884
|
+
icon: Wr,
|
|
3885
|
+
href: s() || d.api
|
|
3886
|
+
}
|
|
3887
|
+
];
|
|
3888
|
+
function c(g) {
|
|
3889
|
+
var _;
|
|
3890
|
+
if (g !== "discover" && typeof window < "u" && sessionStorage.setItem("navigatingToMainNav", "true"), Ie.setSelectedItem(g), g !== "discover")
|
|
3891
|
+
try {
|
|
3892
|
+
Promise.resolve().then(() => Zt).then(({ selectedSubNavItemTitle: m }) => {
|
|
3893
|
+
m.set(""), typeof window < "u" && (sessionStorage.removeItem("subNav-selectedTitle"), sessionStorage.removeItem("subNav-selectedId")), setTimeout(
|
|
3894
|
+
() => {
|
|
3895
|
+
const h = document.getElementById("main-content");
|
|
3896
|
+
if (h) {
|
|
3897
|
+
const p = h.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");
|
|
3898
|
+
if (p && p.textContent) {
|
|
3899
|
+
const w = p.textContent.trim();
|
|
3900
|
+
m.set(w), typeof window < "u" && sessionStorage.setItem("subNav-selectedTitle", JSON.stringify(w));
|
|
3901
|
+
}
|
|
3902
|
+
}
|
|
3903
|
+
},
|
|
3904
|
+
200
|
|
3905
|
+
);
|
|
3906
|
+
}).catch((m) => {
|
|
3907
|
+
console.log("[MobileBottomNav] Error clearing header state:", m);
|
|
3908
|
+
});
|
|
3909
|
+
} catch (m) {
|
|
3910
|
+
console.log("[MobileBottomNav] Import failed for clearing state:", m);
|
|
3911
|
+
}
|
|
3912
|
+
else
|
|
3913
|
+
try {
|
|
3914
|
+
Promise.resolve().then(() => Zt).then(({ selectedSubNavItemTitle: m }) => {
|
|
3915
|
+
m.set(""), typeof window < "u" && (sessionStorage.removeItem("subNav-selectedTitle"), sessionStorage.removeItem("subNav-selectedId"));
|
|
3916
|
+
}).catch((m) => {
|
|
3917
|
+
console.log("[MobileBottomNav] Error clearing header state for Discover:", m);
|
|
3918
|
+
});
|
|
3919
|
+
} catch (m) {
|
|
3920
|
+
console.log("[MobileBottomNav] Import failed for clearing Discover state:", m);
|
|
3921
|
+
}
|
|
3922
|
+
(_ = o()) == null || _({ item: g, expanded: !1 });
|
|
3923
|
+
}
|
|
3924
|
+
var v = Zs();
|
|
3925
|
+
Ea(v, 21, () => f, ya, (g, _) => {
|
|
3926
|
+
var m = Ys();
|
|
3927
|
+
let h;
|
|
3928
|
+
m.__click = [Fs, c, _];
|
|
3929
|
+
var p = S(m), w = S(p);
|
|
3930
|
+
const x = /* @__PURE__ */ J(() => i() === E(_).id);
|
|
3931
|
+
$a(w, () => E(_).icon, (T, q) => {
|
|
3932
|
+
q(T, {
|
|
3933
|
+
get isSelected() {
|
|
3934
|
+
return E(x);
|
|
3935
|
+
}
|
|
3936
|
+
});
|
|
3937
|
+
}), C(p);
|
|
3938
|
+
var M = W(p, 2), $ = S(M, !0);
|
|
3939
|
+
C(M), C(m), ft(
|
|
3940
|
+
(T, q) => {
|
|
3941
|
+
G(m, "href", E(_).href), h = ue(m, 1, "nav-item svelte-cugc62", null, h, T), G(m, "part", q), Vr($, E(_).label);
|
|
3942
|
+
},
|
|
3943
|
+
[
|
|
3944
|
+
() => ({ active: i() === E(_).id }),
|
|
3945
|
+
() => `${Bs(E(_).id)}-item`
|
|
3946
|
+
]
|
|
3947
|
+
), I(g, m);
|
|
3948
|
+
}), C(v), I(e, v);
|
|
3949
|
+
var b = F({
|
|
3950
|
+
get onNavItemClick() {
|
|
3951
|
+
return o();
|
|
3952
|
+
},
|
|
3953
|
+
set onNavItemClick(g) {
|
|
3954
|
+
o(g), k();
|
|
3955
|
+
},
|
|
3956
|
+
get apiUrl() {
|
|
3957
|
+
return s();
|
|
3958
|
+
},
|
|
3959
|
+
set apiUrl(g) {
|
|
3960
|
+
s(g), k();
|
|
3961
|
+
},
|
|
3962
|
+
get chatUrl() {
|
|
3963
|
+
return a();
|
|
3964
|
+
},
|
|
3965
|
+
set chatUrl(g) {
|
|
3966
|
+
a(g), k();
|
|
3967
|
+
},
|
|
3968
|
+
get consoleUrl() {
|
|
3969
|
+
return l();
|
|
3970
|
+
},
|
|
3971
|
+
set consoleUrl(g) {
|
|
3972
|
+
l(g), k();
|
|
3973
|
+
},
|
|
3974
|
+
get discoverUrl() {
|
|
3975
|
+
return u();
|
|
3976
|
+
},
|
|
3977
|
+
set discoverUrl(g) {
|
|
3978
|
+
u(g), k();
|
|
3979
|
+
}
|
|
3980
|
+
});
|
|
3981
|
+
return n(), b;
|
|
3982
|
+
}
|
|
3983
|
+
Hr(["click"]);
|
|
3984
|
+
R(
|
|
3985
|
+
Di,
|
|
3986
|
+
{
|
|
3987
|
+
onNavItemClick: {},
|
|
3988
|
+
apiUrl: {},
|
|
3989
|
+
chatUrl: {},
|
|
3990
|
+
consoleUrl: {},
|
|
3991
|
+
discoverUrl: {}
|
|
3992
|
+
},
|
|
3993
|
+
[],
|
|
3994
|
+
[],
|
|
3995
|
+
!0
|
|
3996
|
+
);
|
|
3997
|
+
function Ws(e, t) {
|
|
3998
|
+
B(t, !0);
|
|
3999
|
+
let r = y(t, "onNavItemClick", 7), n = y(t, "apiUrl", 7), i = y(t, "chatUrl", 7), o = y(t, "consoleUrl", 7), s = y(t, "discoverUrl", 7);
|
|
4000
|
+
return Di(e, {
|
|
4001
|
+
get onNavItemClick() {
|
|
4002
|
+
return r();
|
|
4003
|
+
},
|
|
4004
|
+
get apiUrl() {
|
|
4005
|
+
return n();
|
|
4006
|
+
},
|
|
4007
|
+
get chatUrl() {
|
|
4008
|
+
return i();
|
|
4009
|
+
},
|
|
4010
|
+
get consoleUrl() {
|
|
4011
|
+
return o();
|
|
4012
|
+
},
|
|
4013
|
+
get discoverUrl() {
|
|
4014
|
+
return s();
|
|
4015
|
+
}
|
|
4016
|
+
}), F({
|
|
4017
|
+
get onNavItemClick() {
|
|
4018
|
+
return r();
|
|
4019
|
+
},
|
|
4020
|
+
set onNavItemClick(a) {
|
|
4021
|
+
r(a), k();
|
|
4022
|
+
},
|
|
4023
|
+
get apiUrl() {
|
|
4024
|
+
return n();
|
|
4025
|
+
},
|
|
4026
|
+
set apiUrl(a) {
|
|
4027
|
+
n(a), k();
|
|
4028
|
+
},
|
|
4029
|
+
get chatUrl() {
|
|
4030
|
+
return i();
|
|
4031
|
+
},
|
|
4032
|
+
set chatUrl(a) {
|
|
4033
|
+
i(a), k();
|
|
4034
|
+
},
|
|
4035
|
+
get consoleUrl() {
|
|
4036
|
+
return o();
|
|
4037
|
+
},
|
|
4038
|
+
set consoleUrl(a) {
|
|
4039
|
+
o(a), k();
|
|
4040
|
+
},
|
|
4041
|
+
get discoverUrl() {
|
|
4042
|
+
return s();
|
|
4043
|
+
},
|
|
4044
|
+
set discoverUrl(a) {
|
|
4045
|
+
s(a), k();
|
|
4046
|
+
}
|
|
4047
|
+
});
|
|
4048
|
+
}
|
|
4049
|
+
customElements.define("graymatter-mobile-bottom-nav", R(
|
|
4050
|
+
Ws,
|
|
4051
|
+
{
|
|
4052
|
+
onNavItemClick: {},
|
|
4053
|
+
apiUrl: {},
|
|
4054
|
+
chatUrl: {},
|
|
4055
|
+
consoleUrl: {},
|
|
4056
|
+
discoverUrl: {}
|
|
4057
|
+
},
|
|
4058
|
+
[],
|
|
4059
|
+
[],
|
|
4060
|
+
!0
|
|
4061
|
+
));
|
|
4062
|
+
var Ks = /* @__PURE__ */ j('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M6 18L18 6M6 6L18 18" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
|
|
4063
|
+
function ji(e) {
|
|
4064
|
+
var t = Ks();
|
|
4065
|
+
I(e, t);
|
|
4066
|
+
}
|
|
4067
|
+
R(ji, {}, [], [], !0);
|
|
4068
|
+
var Gs = /* @__PURE__ */ be('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'), Xs = /* @__PURE__ */ be('<div class="subnav-section svelte-1xj1twt" part="subnav-section"><!></div>'), Qs = /* @__PURE__ */ be('<div class="no-subnav-message svelte-1xj1twt" part="no-subnav-message"><p class="svelte-1xj1twt">Select a section from the bottom navigation</p></div>'), el = /* @__PURE__ */ be('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1xj1twt" part="menu-header"><div class="logo-container svelte-1xj1twt" part="logo-container"><!></div> <button class="close-button svelte-1xj1twt" aria-label="Close navigation menu" part="close-button"><!></button></div> <div class="menu-content svelte-1xj1twt" part="menu-content"><!></div></div>', 1);
|
|
4069
|
+
const tl = {
|
|
4070
|
+
hash: "svelte-1xj1twt",
|
|
4071
|
+
code: ".no-subnav-message.svelte-1xj1twt {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-1xj1twt p:where(.svelte-1xj1twt) {margin:0;}.mobile-side-menu.svelte-1xj1twt {position:fixed;top:0;left:0;bottom:0;width:15rem;max-width:85vw;background:var(--ai-color-white);transform:translateX(-100%);transition:transform 0.3s ease;z-index:var(--ai-layer-50);flex-direction:column;box-shadow:var(--ai-size-2) 0 var(--ai-size-10) #0000001a;}.mobile-side-menu.open.svelte-1xj1twt {transform:translateX(0);}.menu-header.svelte-1xj1twt {display:flex;align-items:center;justify-content:space-between;padding:var(--ai-size-16) var(--ai-size-20);border-bottom:0.0625rem solid var(--ai-color-neutral-200);}.mobile-side-menu.svelte-1xj1twt .logo-container:where(.svelte-1xj1twt) {display:flex;}.close-button.svelte-1xj1twt {display:flex;align-items:center;justify-content:center;width:var(--ai-size-32);height:var(--ai-size-32);border:none;background:none;color:var(--ai-color-neutral-700);cursor:pointer;border-radius:var(--ai-size-6);transition:background-color 0.2s ease;}.close-button.svelte-1xj1twt:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-1xj1twt {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-1xj1twt {padding:var(--ai-size-16) 0;overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"
|
|
4072
|
+
};
|
|
4073
|
+
function Hi(e, t) {
|
|
4074
|
+
B(t, !1), bt(e, tl);
|
|
4075
|
+
const [r, n] = Ut(), i = () => fe(me, "$isExpanded", r), o = () => fe(tt, "$selectedItem", r);
|
|
4076
|
+
let s = /* @__PURE__ */ zt(), a = null;
|
|
4077
|
+
function l(T) {
|
|
4078
|
+
if (a = T.detail.hash, u(), a) {
|
|
4079
|
+
const H = document.getElementById(a);
|
|
4080
|
+
if (H) {
|
|
4081
|
+
const ae = document.getElementById("main-content-mobile"), Ve = ae ? ae.querySelector(`[id="${a}"]`) : null;
|
|
4082
|
+
if (Ve && ae) {
|
|
4083
|
+
const Y = Ve.getBoundingClientRect(), ye = ae.getBoundingClientRect(), xe = ae.scrollTop + Y.top - ye.top;
|
|
4084
|
+
ae.scrollTo({ top: xe, behavior: "auto" }), setTimeout(
|
|
4085
|
+
() => {
|
|
4086
|
+
var pt;
|
|
4087
|
+
window.dispatchEvent(new CustomEvent("sectionVisible", {
|
|
4088
|
+
detail: { title: (pt = Ve.textContent) == null ? void 0 : pt.trim(), id: Ve.id }
|
|
4089
|
+
}));
|
|
4090
|
+
},
|
|
4091
|
+
100
|
|
4092
|
+
);
|
|
4093
|
+
} else {
|
|
4094
|
+
let Y = H.parentElement;
|
|
4095
|
+
for (; Y && Y !== document.body; ) {
|
|
4096
|
+
const ye = window.getComputedStyle(Y);
|
|
4097
|
+
if (ye.overflowY === "auto" || ye.overflowY === "scroll")
|
|
4098
|
+
break;
|
|
4099
|
+
Y = Y.parentElement;
|
|
4100
|
+
}
|
|
4101
|
+
Y && Y !== document.body ? document.getElementById("main-content") ? (H.scrollIntoView({ behavior: "auto", block: "start" }), setTimeout(
|
|
4102
|
+
() => {
|
|
4103
|
+
var xe;
|
|
4104
|
+
window.dispatchEvent(new CustomEvent("sectionVisible", { detail: { title: (xe = H.textContent) == null ? void 0 : xe.trim(), id: H.id } }));
|
|
4105
|
+
},
|
|
4106
|
+
100
|
|
4107
|
+
)) : H.scrollIntoView({ behavior: "auto", block: "start" }) : H.scrollIntoView({ behavior: "auto", block: "start" });
|
|
4108
|
+
}
|
|
4109
|
+
}
|
|
4110
|
+
a = null;
|
|
4111
|
+
}
|
|
4112
|
+
}
|
|
4113
|
+
nr(() => {
|
|
4114
|
+
window.addEventListener("mobileAnchorNavigate", l);
|
|
4115
|
+
const T = () => {
|
|
4116
|
+
u();
|
|
4117
|
+
};
|
|
4118
|
+
window.addEventListener("closeMobileMenu", T);
|
|
4119
|
+
const q = (ae) => {
|
|
4120
|
+
const Ve = ae, { isMobile: Y } = Ve.detail;
|
|
4121
|
+
Y && Ie.setExpanded(!1);
|
|
4122
|
+
};
|
|
4123
|
+
window.addEventListener("layoutTransition", q);
|
|
4124
|
+
const H = (ae) => {
|
|
4125
|
+
ae.key === "Escape" && i() && u();
|
|
4126
|
+
};
|
|
4127
|
+
return window.addEventListener("keydown", H), () => {
|
|
4128
|
+
window.removeEventListener("mobileAnchorNavigate", l), window.removeEventListener("closeMobileMenu", T), window.removeEventListener("layoutTransition", q), window.removeEventListener("keydown", H);
|
|
4129
|
+
};
|
|
4130
|
+
});
|
|
4131
|
+
function u() {
|
|
4132
|
+
Ie.setExpanded(!1);
|
|
4133
|
+
}
|
|
4134
|
+
Ii();
|
|
4135
|
+
var d = el(), f = Ye(d);
|
|
4136
|
+
{
|
|
4137
|
+
var c = (T) => {
|
|
4138
|
+
var q = Gs();
|
|
4139
|
+
Z("click", q, u), Z("keydown", q, (H) => {
|
|
4140
|
+
(H.key === "Enter" || H.key === " ") && u();
|
|
4141
|
+
}), I(T, q);
|
|
4142
|
+
};
|
|
4143
|
+
de(f, (T) => {
|
|
4144
|
+
i() && T(c);
|
|
4145
|
+
});
|
|
4146
|
+
}
|
|
4147
|
+
var v = W(f, 2);
|
|
4148
|
+
let b;
|
|
4149
|
+
var g = S(v), _ = S(g), m = S(_);
|
|
4150
|
+
ar(m, { width: 75, height: 22 }), C(_);
|
|
4151
|
+
var h = W(_, 2), p = S(h);
|
|
4152
|
+
ji(p), C(h), C(g);
|
|
4153
|
+
var w = W(g, 2), x = S(w);
|
|
4154
|
+
{
|
|
4155
|
+
var M = (T) => {
|
|
4156
|
+
var q = Xs(), H = S(q);
|
|
4157
|
+
ir(H, t, "default", {}), C(q), I(T, q);
|
|
4158
|
+
}, $ = (T) => {
|
|
4159
|
+
var q = Qs();
|
|
4160
|
+
I(T, q);
|
|
4161
|
+
};
|
|
4162
|
+
de(x, (T) => {
|
|
4163
|
+
o() && o() !== "discover" ? T(M) : T($, !1);
|
|
4164
|
+
});
|
|
4165
|
+
}
|
|
4166
|
+
C(w), C(v), Ni(v, (T) => O(s, T), () => E(s)), ft((T) => b = ue(v, 1, "mobile-side-menu svelte-1xj1twt", null, b, T), [() => ({ open: i() })], Kt), Z("click", h, u), I(e, d), F(), n();
|
|
4167
|
+
}
|
|
4168
|
+
R(Hi, {}, ["default"], [], !0);
|
|
4169
|
+
function rl(e, t) {
|
|
4170
|
+
Hi(e, {
|
|
4171
|
+
children: (r, n) => {
|
|
4172
|
+
var i = Lt(), o = Ye(i);
|
|
4173
|
+
ir(o, t, "default", {}), I(r, i);
|
|
4174
|
+
},
|
|
4175
|
+
$$slots: { default: !0 }
|
|
4176
|
+
});
|
|
4177
|
+
}
|
|
4178
|
+
customElements.define("graymatter-mobile-side-menu", R(rl, {}, ["default"], [], !0));
|
|
4179
|
+
var nl = /* @__PURE__ */ be('<nav class="mobile-top-nav svelte-1u5nbcr" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-1u5nbcr"><!> <span class="brand-text svelte-1u5nbcr"> </span></div> <button class="profile-button svelte-1u5nbcr" aria-label="Open profile menu" part="profile-button"><div class="user-profile-container svelte-1u5nbcr"><div class="user-profile-icon svelte-1u5nbcr" part="user-profile-icon"><span class="user-initials svelte-1u5nbcr">ZW</span></div></div></button></nav>');
|
|
4180
|
+
const il = {
|
|
4181
|
+
hash: "svelte-1u5nbcr",
|
|
4182
|
+
code: `.user-profile-container.svelte-1u5nbcr,
|
|
4183
|
+
.user-profile-icon.svelte-1u5nbcr {display:flex;align-items:center;justify-content:center;}.menu-button.svelte-1u5nbcr,
|
|
4184
|
+
.profile-button.svelte-1u5nbcr {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color 0.2s ease;}.menu-button.svelte-1u5nbcr:disabled,
|
|
4185
|
+
.menu-button.disabled.svelte-1u5nbcr {cursor:not-allowed;opacity:0.5;background-color:transparent;}.user-profile-icon.svelte-1u5nbcr {border-radius:var(--ai-size-6);background:var(--ai-color-steel-700);}.user-initials.svelte-1u5nbcr {color:var(--ai-color-white);text-align:center;font-weight:400;line-height:1.3;}.mobile-top-nav.svelte-1u5nbcr .menu-button:where(.svelte-1u5nbcr) {width:var(--ai-size-40);height:var(--ai-size-40);color:var(--ai-color-neutral-700);}.menu-button.svelte-1u5nbcr:hover {background-color:var(--ai-color-neutral-100);}
|
|
4186
|
+
|
|
4187
|
+
/* MobileTopNav specific disabled state */.mobile-top-nav.svelte-1u5nbcr .menu-button.disabled:where(.svelte-1u5nbcr),
|
|
4188
|
+
.mobile-top-nav.svelte-1u5nbcr .menu-button:where(.svelte-1u5nbcr):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-1u5nbcr {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-1u5nbcr {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.profile-button.svelte-1u5nbcr {width:var(--ai-size-40);height:var(--ai-size-40);}.profile-button.svelte-1u5nbcr:hover {background-color:var(--ai-color-neutral-100);}.mobile-top-nav.svelte-1u5nbcr .user-profile-icon:where(.svelte-1u5nbcr) {width:var(--ai-size-32);height:var(--ai-size-32);border-radius:0.3125rem;}.mobile-top-nav.svelte-1u5nbcr .user-initials:where(.svelte-1u5nbcr) {font-size:var(--ai-size-14);line-height:1;}.user-profile-container.svelte-1u5nbcr {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.user-profile-icon.svelte-1u5nbcr {padding:0.5556rem 0.4931rem 0.5694rem 0.3819rem;}.user-initials.svelte-1u5nbcr {font-size:var(--ai-size-16);font-style:normal;}.menu-button.svelte-1u5nbcr {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity 0.2s ease;will-change:opacity;}.menu-button.disabled.svelte-1u5nbcr {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1u5nbcr:focus {outline:none;}`
|
|
4189
|
+
};
|
|
4190
|
+
function Vi(e, t) {
|
|
4191
|
+
B(t, !1), bt(e, il);
|
|
4192
|
+
const [r, n] = Ut(), i = () => fe(Xe, "$selectedSubNavItemTitle", r), o = () => fe(Fr, "$isMenuButtonDisabled", r);
|
|
4193
|
+
let s = y(t, "onProfileClick", 12, void 0);
|
|
4194
|
+
nr(() => {
|
|
4195
|
+
const p = (M) => {
|
|
4196
|
+
if (window.innerWidth <= 640)
|
|
4197
|
+
return;
|
|
4198
|
+
const $ = M;
|
|
4199
|
+
$.detail && $.detail.title && (Xe.set($.detail.title), typeof window < "u" && sessionStorage.setItem("subNav-selectedTitle", JSON.stringify($.detail.title)));
|
|
4200
|
+
}, w = () => {
|
|
4201
|
+
if (typeof window > "u") return;
|
|
4202
|
+
const M = document.getElementById("main-content");
|
|
4203
|
+
if (!M) return;
|
|
4204
|
+
const $ = M.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");
|
|
4205
|
+
if ($ && $.textContent) {
|
|
4206
|
+
const T = $.textContent.trim();
|
|
4207
|
+
i() || (Xe.set(T), typeof window < "u" && sessionStorage.setItem("subNav-selectedTitle", JSON.stringify(T)));
|
|
4208
|
+
}
|
|
4209
|
+
};
|
|
4210
|
+
window.addEventListener("sectionVisible", p);
|
|
4211
|
+
const x = sessionStorage.getItem("subNav-selectedTitle");
|
|
4212
|
+
return (!x || x === '""' || x === "null") && setTimeout(
|
|
4213
|
+
() => {
|
|
4214
|
+
w();
|
|
4215
|
+
},
|
|
4216
|
+
100
|
|
4217
|
+
), () => {
|
|
4218
|
+
window.removeEventListener("sectionVisible", p);
|
|
4219
|
+
};
|
|
4220
|
+
});
|
|
4221
|
+
function a() {
|
|
4222
|
+
Ie.toggleExpanded();
|
|
4223
|
+
}
|
|
4224
|
+
function l() {
|
|
4225
|
+
var p;
|
|
4226
|
+
(p = s()) == null || p();
|
|
4227
|
+
}
|
|
4228
|
+
Ii();
|
|
4229
|
+
var u = nl(), d = S(u);
|
|
4230
|
+
let f;
|
|
4231
|
+
var c = S(d);
|
|
4232
|
+
Kr(c, {}), C(d);
|
|
4233
|
+
var v = W(d, 2), b = S(v);
|
|
4234
|
+
ar(b, { width: 75, height: 22 });
|
|
4235
|
+
var g = W(b, 2), _ = S(g, !0);
|
|
4236
|
+
C(g), C(v);
|
|
4237
|
+
var m = W(v, 2);
|
|
4238
|
+
C(u), ft(
|
|
4239
|
+
(p) => {
|
|
4240
|
+
f = ue(d, 1, "menu-button svelte-1u5nbcr", null, f, p), d.disabled = o(), Vr(_, i() || "");
|
|
4241
|
+
},
|
|
4242
|
+
[() => ({ disabled: o() })],
|
|
4243
|
+
Kt
|
|
4244
|
+
), Z("click", d, a), Z("click", m, l), I(e, u);
|
|
4245
|
+
var h = F({
|
|
4246
|
+
get onProfileClick() {
|
|
4247
|
+
return s();
|
|
4248
|
+
},
|
|
4249
|
+
set onProfileClick(p) {
|
|
4250
|
+
s(p), k();
|
|
4251
|
+
}
|
|
4252
|
+
});
|
|
4253
|
+
return n(), h;
|
|
4254
|
+
}
|
|
4255
|
+
R(Vi, { onProfileClick: {} }, [], [], !0);
|
|
4256
|
+
function ol(e, t) {
|
|
4257
|
+
B(t, !0);
|
|
4258
|
+
let r = y(t, "onMenuToggle", 7);
|
|
4259
|
+
return Vi(e, {
|
|
4260
|
+
get onMenuToggle() {
|
|
4261
|
+
return r();
|
|
4262
|
+
}
|
|
4263
|
+
}), F({
|
|
4264
|
+
get onMenuToggle() {
|
|
4265
|
+
return r();
|
|
4266
|
+
},
|
|
4267
|
+
set onMenuToggle(n) {
|
|
4268
|
+
r(n), k();
|
|
4269
|
+
}
|
|
4270
|
+
});
|
|
4271
|
+
}
|
|
4272
|
+
customElements.define("graymatter-mobile-top-nav", R(ol, { onMenuToggle: {} }, [], [], !0));
|
|
4273
|
+
export {
|
|
4274
|
+
Ga as Button,
|
|
4275
|
+
rs as DesktopHeader,
|
|
4276
|
+
qs as DesktopSideNav,
|
|
4277
|
+
Ds as Logo,
|
|
4278
|
+
Ws as MobileBottomNav,
|
|
4279
|
+
rl as MobileSideMenu,
|
|
4280
|
+
ol as MobileTopNav
|
|
4281
|
+
};
|