zabi-components 3.0.2 → 4.0.0
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/README.md +50 -28
- package/dist/CodeBlock-Bbv6JfD2.js +422 -0
- package/dist/ThemeToggle-Z2Ndc0if.js +42 -0
- package/dist/atoms/index.js +662 -18
- package/dist/index/index.js +45 -41
- package/dist/molecules/index.js +403 -391
- package/dist/organisms/index.js +102 -3
- package/dist/props-BKbHJRuR.js +2213 -0
- package/dist/zabi-components.css +1 -1
- package/package.json +3 -4
- package/dist/Navigation-BxP-osMQ.js +0 -78
- package/dist/OptimizedImage-Dio4ZB9h.js +0 -593
- package/dist/Textarea-DP1BihDh.js +0 -259
- package/dist/ThemeToggle-Cm25ThjX.js +0 -42
- package/dist/props-B4BdFk2B.js +0 -2339
|
@@ -0,0 +1,2213 @@
|
|
|
1
|
+
var $r = Object.defineProperty;
|
|
2
|
+
var jt = (e) => {
|
|
3
|
+
throw TypeError(e);
|
|
4
|
+
};
|
|
5
|
+
var Hr = (e, t, r) => t in e ? $r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var Pe = (e, t, r) => Hr(e, typeof t != "symbol" ? t + "" : t, r), _t = (e, t, r) => t.has(e) || jt("Cannot " + r);
|
|
7
|
+
var O = (e, t, r) => (_t(e, t, "read from private field"), r ? r.call(e) : t.get(e)), F = (e, t, r) => t.has(e) ? jt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), J = (e, t, r, n) => (_t(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), X = (e, t, r) => (_t(e, t, "access private method"), r);
|
|
8
|
+
var Xt;
|
|
9
|
+
typeof window < "u" && ((Xt = window.__svelte ?? (window.__svelte = {})).v ?? (Xt.v = /* @__PURE__ */ new Set())).add("5");
|
|
10
|
+
const et = 1, tt = 2, Qt = 4, Yr = 8, Kr = 16, Wr = 1, Gr = 4, zr = 8, Zr = 16, Jr = 1, Xr = 2, C = Symbol(), Qr = "http://www.w3.org/1999/xhtml", en = "@attach", er = !1;
|
|
11
|
+
var rt = Array.isArray, tn = Array.prototype.indexOf, tr = Array.from, gt = Object.defineProperty, We = Object.getOwnPropertyDescriptor, rn = Object.getOwnPropertyDescriptors, nn = Object.prototype, fn = Array.prototype, rr = Object.getPrototypeOf;
|
|
12
|
+
const nr = () => {
|
|
13
|
+
};
|
|
14
|
+
function un(e) {
|
|
15
|
+
for (var t = 0; t < e.length; t++)
|
|
16
|
+
e[t]();
|
|
17
|
+
}
|
|
18
|
+
function ir() {
|
|
19
|
+
var e, t, r = new Promise((n, i) => {
|
|
20
|
+
e = n, t = i;
|
|
21
|
+
});
|
|
22
|
+
return { promise: r, resolve: e, reject: t };
|
|
23
|
+
}
|
|
24
|
+
const D = 2, Tt = 4, St = 8, de = 16, z = 32, Ne = 64, fr = 128, j = 256, ze = 512, I = 1024, M = 2048, le = 4096, B = 8192, he = 16384, Ot = 32768, nt = 65536, qt = 1 << 17, ln = 1 << 18, it = 1 << 19, an = 1 << 20, bt = 1 << 21, ft = 1 << 22, oe = 1 << 23, me = Symbol("$state"), sn = Symbol("legacy props"), on = Symbol(""), De = new class extends Error {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
Pe(this, "name", "StaleReactionError");
|
|
28
|
+
Pe(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
29
|
+
}
|
|
30
|
+
}();
|
|
31
|
+
function cn() {
|
|
32
|
+
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
33
|
+
}
|
|
34
|
+
function vn(e) {
|
|
35
|
+
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
36
|
+
}
|
|
37
|
+
function _n() {
|
|
38
|
+
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
39
|
+
}
|
|
40
|
+
function dn(e) {
|
|
41
|
+
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
42
|
+
}
|
|
43
|
+
function hn() {
|
|
44
|
+
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
45
|
+
}
|
|
46
|
+
function pn(e) {
|
|
47
|
+
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
48
|
+
}
|
|
49
|
+
function wn() {
|
|
50
|
+
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
51
|
+
}
|
|
52
|
+
function gn() {
|
|
53
|
+
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
54
|
+
}
|
|
55
|
+
function bn() {
|
|
56
|
+
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
57
|
+
}
|
|
58
|
+
function En() {
|
|
59
|
+
console.warn("https://svelte.dev/e/select_multiple_invalid_value");
|
|
60
|
+
}
|
|
61
|
+
let mn = !1;
|
|
62
|
+
function ur(e) {
|
|
63
|
+
return e === this.v;
|
|
64
|
+
}
|
|
65
|
+
function An(e, t) {
|
|
66
|
+
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
67
|
+
}
|
|
68
|
+
function lr(e) {
|
|
69
|
+
return !An(e, this.v);
|
|
70
|
+
}
|
|
71
|
+
let yn = !1, K = null;
|
|
72
|
+
function Ze(e) {
|
|
73
|
+
K = e;
|
|
74
|
+
}
|
|
75
|
+
function mi(e, t = !1, r) {
|
|
76
|
+
K = {
|
|
77
|
+
p: K,
|
|
78
|
+
c: null,
|
|
79
|
+
e: null,
|
|
80
|
+
s: e,
|
|
81
|
+
x: null,
|
|
82
|
+
l: null
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function Ai(e) {
|
|
86
|
+
var t = (
|
|
87
|
+
/** @type {ComponentContext} */
|
|
88
|
+
K
|
|
89
|
+
), r = t.e;
|
|
90
|
+
if (r !== null) {
|
|
91
|
+
t.e = null;
|
|
92
|
+
for (var n of r)
|
|
93
|
+
br(n);
|
|
94
|
+
}
|
|
95
|
+
return K = t.p, /** @type {T} */
|
|
96
|
+
{};
|
|
97
|
+
}
|
|
98
|
+
function ar() {
|
|
99
|
+
return !0;
|
|
100
|
+
}
|
|
101
|
+
let ge = [];
|
|
102
|
+
function Tn() {
|
|
103
|
+
var e = ge;
|
|
104
|
+
ge = [], un(e);
|
|
105
|
+
}
|
|
106
|
+
function ut(e) {
|
|
107
|
+
if (ge.length === 0) {
|
|
108
|
+
var t = ge;
|
|
109
|
+
queueMicrotask(() => {
|
|
110
|
+
t === ge && Tn();
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
ge.push(e);
|
|
114
|
+
}
|
|
115
|
+
const Sn = /* @__PURE__ */ new WeakMap();
|
|
116
|
+
function On(e) {
|
|
117
|
+
var t = T;
|
|
118
|
+
if (t === null)
|
|
119
|
+
return A.f |= oe, e;
|
|
120
|
+
if ((t.f & Ot) === 0) {
|
|
121
|
+
if ((t.f & fr) === 0)
|
|
122
|
+
throw !t.parent && e instanceof Error && sr(e), e;
|
|
123
|
+
t.b.error(e);
|
|
124
|
+
} else
|
|
125
|
+
Je(e, t);
|
|
126
|
+
}
|
|
127
|
+
function Je(e, t) {
|
|
128
|
+
for (; t !== null; ) {
|
|
129
|
+
if ((t.f & fr) !== 0)
|
|
130
|
+
try {
|
|
131
|
+
t.b.error(e);
|
|
132
|
+
return;
|
|
133
|
+
} catch (r) {
|
|
134
|
+
e = r;
|
|
135
|
+
}
|
|
136
|
+
t = t.parent;
|
|
137
|
+
}
|
|
138
|
+
throw e instanceof Error && sr(e), e;
|
|
139
|
+
}
|
|
140
|
+
function sr(e) {
|
|
141
|
+
const t = Sn.get(e);
|
|
142
|
+
t && (gt(e, "message", {
|
|
143
|
+
value: t.message
|
|
144
|
+
}), gt(e, "stack", {
|
|
145
|
+
value: t.stack
|
|
146
|
+
}));
|
|
147
|
+
}
|
|
148
|
+
const Ye = /* @__PURE__ */ new Set();
|
|
149
|
+
let N = null, Ut = /* @__PURE__ */ new Set(), te = [], Ct = null, Et = !1;
|
|
150
|
+
var ye, Te, re, qe, Se, Oe, se, Ce, Ue, Ve, q, mt, Ge, At;
|
|
151
|
+
const Ee = class Ee {
|
|
152
|
+
constructor() {
|
|
153
|
+
F(this, q);
|
|
154
|
+
/**
|
|
155
|
+
* The current values of any sources that are updated in this batch
|
|
156
|
+
* They keys of this map are identical to `this.#previous`
|
|
157
|
+
* @type {Map<Source, any>}
|
|
158
|
+
*/
|
|
159
|
+
Pe(this, "current", /* @__PURE__ */ new Map());
|
|
160
|
+
/**
|
|
161
|
+
* The values of any sources that are updated in this batch _before_ those updates took place.
|
|
162
|
+
* They keys of this map are identical to `this.#current`
|
|
163
|
+
* @type {Map<Source, any>}
|
|
164
|
+
*/
|
|
165
|
+
F(this, ye, /* @__PURE__ */ new Map());
|
|
166
|
+
/**
|
|
167
|
+
* When the batch is committed (and the DOM is updated), we need to remove old branches
|
|
168
|
+
* and append new ones by calling the functions added inside (if/each/key/etc) blocks
|
|
169
|
+
* @type {Set<() => void>}
|
|
170
|
+
*/
|
|
171
|
+
F(this, Te, /* @__PURE__ */ new Set());
|
|
172
|
+
/**
|
|
173
|
+
* The number of async effects that are currently in flight
|
|
174
|
+
*/
|
|
175
|
+
F(this, re, 0);
|
|
176
|
+
/**
|
|
177
|
+
* A deferred that resolves when the batch is committed, used with `settled()`
|
|
178
|
+
* TODO replace with Promise.withResolvers once supported widely enough
|
|
179
|
+
* @type {{ promise: Promise<void>, resolve: (value?: any) => void, reject: (reason: unknown) => void } | null}
|
|
180
|
+
*/
|
|
181
|
+
F(this, qe, null);
|
|
182
|
+
/**
|
|
183
|
+
* Async effects inside a newly-created `<svelte:boundary>`
|
|
184
|
+
* — these do not prevent the batch from committing
|
|
185
|
+
* @type {Effect[]}
|
|
186
|
+
*/
|
|
187
|
+
F(this, Se, []);
|
|
188
|
+
/**
|
|
189
|
+
* Template effects and `$effect.pre` effects, which run when
|
|
190
|
+
* a batch is committed
|
|
191
|
+
* @type {Effect[]}
|
|
192
|
+
*/
|
|
193
|
+
F(this, Oe, []);
|
|
194
|
+
/**
|
|
195
|
+
* The same as `#render_effects`, but for `$effect` (which runs after)
|
|
196
|
+
* @type {Effect[]}
|
|
197
|
+
*/
|
|
198
|
+
F(this, se, []);
|
|
199
|
+
/**
|
|
200
|
+
* Block effects, which may need to re-run on subsequent flushes
|
|
201
|
+
* in order to update internal sources (e.g. each block items)
|
|
202
|
+
* @type {Effect[]}
|
|
203
|
+
*/
|
|
204
|
+
F(this, Ce, []);
|
|
205
|
+
/**
|
|
206
|
+
* Deferred effects (which run after async work has completed) that are DIRTY
|
|
207
|
+
* @type {Effect[]}
|
|
208
|
+
*/
|
|
209
|
+
F(this, Ue, []);
|
|
210
|
+
/**
|
|
211
|
+
* Deferred effects that are MAYBE_DIRTY
|
|
212
|
+
* @type {Effect[]}
|
|
213
|
+
*/
|
|
214
|
+
F(this, Ve, []);
|
|
215
|
+
/**
|
|
216
|
+
* A set of branches that still exist, but will be destroyed when this batch
|
|
217
|
+
* is committed — we skip over these during `process`
|
|
218
|
+
* @type {Set<Effect>}
|
|
219
|
+
*/
|
|
220
|
+
Pe(this, "skipped_effects", /* @__PURE__ */ new Set());
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @param {Effect[]} root_effects
|
|
225
|
+
*/
|
|
226
|
+
process(t) {
|
|
227
|
+
var f;
|
|
228
|
+
te = [];
|
|
229
|
+
var r = Ee.apply(this);
|
|
230
|
+
for (const u of t)
|
|
231
|
+
X(this, q, mt).call(this, u);
|
|
232
|
+
if (O(this, re) === 0) {
|
|
233
|
+
X(this, q, At).call(this);
|
|
234
|
+
var n = O(this, Oe), i = O(this, se);
|
|
235
|
+
J(this, Oe, []), J(this, se, []), J(this, Ce, []), N = null, Vt(n), Vt(i), (f = O(this, qe)) == null || f.resolve();
|
|
236
|
+
} else
|
|
237
|
+
X(this, q, Ge).call(this, O(this, Oe)), X(this, q, Ge).call(this, O(this, se)), X(this, q, Ge).call(this, O(this, Ce));
|
|
238
|
+
r();
|
|
239
|
+
for (const u of O(this, Se))
|
|
240
|
+
xe(u);
|
|
241
|
+
J(this, Se, []);
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Associate a change to a given source with the current
|
|
245
|
+
* batch, noting its previous and current values
|
|
246
|
+
* @param {Source} source
|
|
247
|
+
* @param {any} value
|
|
248
|
+
*/
|
|
249
|
+
capture(t, r) {
|
|
250
|
+
O(this, ye).has(t) || O(this, ye).set(t, r), this.current.set(t, t.v);
|
|
251
|
+
}
|
|
252
|
+
activate() {
|
|
253
|
+
N = this;
|
|
254
|
+
}
|
|
255
|
+
deactivate() {
|
|
256
|
+
N = null;
|
|
257
|
+
for (const t of Ut)
|
|
258
|
+
if (Ut.delete(t), t(), N !== null)
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
flush() {
|
|
262
|
+
if (te.length > 0) {
|
|
263
|
+
if (this.activate(), Cn(), N !== null && N !== this)
|
|
264
|
+
return;
|
|
265
|
+
} else O(this, re) === 0 && X(this, q, At).call(this);
|
|
266
|
+
this.deactivate();
|
|
267
|
+
}
|
|
268
|
+
increment() {
|
|
269
|
+
J(this, re, O(this, re) + 1);
|
|
270
|
+
}
|
|
271
|
+
decrement() {
|
|
272
|
+
if (J(this, re, O(this, re) - 1), O(this, re) === 0) {
|
|
273
|
+
for (const t of O(this, Ue))
|
|
274
|
+
R(t, M), ve(t);
|
|
275
|
+
for (const t of O(this, Ve))
|
|
276
|
+
R(t, le), ve(t);
|
|
277
|
+
this.flush();
|
|
278
|
+
} else
|
|
279
|
+
this.deactivate();
|
|
280
|
+
}
|
|
281
|
+
/** @param {() => void} fn */
|
|
282
|
+
add_callback(t) {
|
|
283
|
+
O(this, Te).add(t);
|
|
284
|
+
}
|
|
285
|
+
settled() {
|
|
286
|
+
return (O(this, qe) ?? J(this, qe, ir())).promise;
|
|
287
|
+
}
|
|
288
|
+
static ensure() {
|
|
289
|
+
if (N === null) {
|
|
290
|
+
const t = N = new Ee();
|
|
291
|
+
Ye.add(N), Ee.enqueue(() => {
|
|
292
|
+
N === t && t.flush();
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
return N;
|
|
296
|
+
}
|
|
297
|
+
/** @param {() => void} task */
|
|
298
|
+
static enqueue(t) {
|
|
299
|
+
ut(t);
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* @param {Batch} current_batch
|
|
303
|
+
*/
|
|
304
|
+
static apply(t) {
|
|
305
|
+
return nr;
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
ye = new WeakMap(), Te = new WeakMap(), re = new WeakMap(), qe = new WeakMap(), Se = new WeakMap(), Oe = new WeakMap(), se = new WeakMap(), Ce = new WeakMap(), Ue = new WeakMap(), Ve = new WeakMap(), q = new WeakSet(), /**
|
|
309
|
+
* Traverse the effect tree, executing effects or stashing
|
|
310
|
+
* them for later execution as appropriate
|
|
311
|
+
* @param {Effect} root
|
|
312
|
+
*/
|
|
313
|
+
mt = function(t) {
|
|
314
|
+
var a;
|
|
315
|
+
t.f ^= I;
|
|
316
|
+
for (var r = t.first; r !== null; ) {
|
|
317
|
+
var n = r.f, i = (n & (z | Ne)) !== 0, f = i && (n & I) !== 0, u = f || (n & B) !== 0 || this.skipped_effects.has(r);
|
|
318
|
+
if (!u && r.fn !== null) {
|
|
319
|
+
i ? r.f ^= I : (n & Tt) !== 0 ? O(this, se).push(r) : (n & I) === 0 && ((n & ft) !== 0 && ((a = r.b) != null && a.is_pending()) ? O(this, Se).push(r) : st(r) && ((r.f & de) !== 0 && O(this, Ce).push(r), xe(r)));
|
|
320
|
+
var s = r.first;
|
|
321
|
+
if (s !== null) {
|
|
322
|
+
r = s;
|
|
323
|
+
continue;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
var l = r.parent;
|
|
327
|
+
for (r = r.next; r === null && l !== null; )
|
|
328
|
+
r = l.next, l = l.parent;
|
|
329
|
+
}
|
|
330
|
+
}, /**
|
|
331
|
+
* @param {Effect[]} effects
|
|
332
|
+
*/
|
|
333
|
+
Ge = function(t) {
|
|
334
|
+
for (const r of t)
|
|
335
|
+
((r.f & M) !== 0 ? O(this, Ue) : O(this, Ve)).push(r), R(r, I);
|
|
336
|
+
t.length = 0;
|
|
337
|
+
}, /**
|
|
338
|
+
* Append and remove branches to/from the DOM
|
|
339
|
+
*/
|
|
340
|
+
At = function() {
|
|
341
|
+
var t;
|
|
342
|
+
for (const r of O(this, Te))
|
|
343
|
+
r();
|
|
344
|
+
if (O(this, Te).clear(), Ye.size > 1) {
|
|
345
|
+
O(this, ye).clear();
|
|
346
|
+
let r = !0;
|
|
347
|
+
for (const n of Ye) {
|
|
348
|
+
if (n === this) {
|
|
349
|
+
r = !1;
|
|
350
|
+
continue;
|
|
351
|
+
}
|
|
352
|
+
for (const [i, f] of this.current) {
|
|
353
|
+
if (n.current.has(i))
|
|
354
|
+
if (r)
|
|
355
|
+
n.current.set(i, f);
|
|
356
|
+
else
|
|
357
|
+
continue;
|
|
358
|
+
or(i);
|
|
359
|
+
}
|
|
360
|
+
if (te.length > 0) {
|
|
361
|
+
N = n;
|
|
362
|
+
const i = Ee.apply(n);
|
|
363
|
+
for (const f of te)
|
|
364
|
+
X(t = n, q, mt).call(t, f);
|
|
365
|
+
te = [], i();
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
N = null;
|
|
369
|
+
}
|
|
370
|
+
Ye.delete(this);
|
|
371
|
+
};
|
|
372
|
+
let Xe = Ee;
|
|
373
|
+
function Cn() {
|
|
374
|
+
var e = Ae;
|
|
375
|
+
Et = !0;
|
|
376
|
+
try {
|
|
377
|
+
var t = 0;
|
|
378
|
+
for ($t(!0); te.length > 0; ) {
|
|
379
|
+
var r = Xe.ensure();
|
|
380
|
+
if (t++ > 1e3) {
|
|
381
|
+
var n, i;
|
|
382
|
+
Nn();
|
|
383
|
+
}
|
|
384
|
+
r.process(te), fe.clear();
|
|
385
|
+
}
|
|
386
|
+
} finally {
|
|
387
|
+
Et = !1, $t(e), Ct = null;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
function Nn() {
|
|
391
|
+
try {
|
|
392
|
+
hn();
|
|
393
|
+
} catch (e) {
|
|
394
|
+
Je(e, Ct);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
let G = null;
|
|
398
|
+
function Vt(e) {
|
|
399
|
+
var t = e.length;
|
|
400
|
+
if (t !== 0) {
|
|
401
|
+
for (var r = 0; r < t; ) {
|
|
402
|
+
var n = e[r++];
|
|
403
|
+
if ((n.f & (he | B)) === 0 && st(n) && (G = [], xe(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null && n.ac === null ? yr(n) : n.fn = null), (G == null ? void 0 : G.length) > 0)) {
|
|
404
|
+
fe.clear();
|
|
405
|
+
for (const i of G)
|
|
406
|
+
xe(i);
|
|
407
|
+
G = [];
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
G = null;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
function or(e) {
|
|
414
|
+
if (e.reactions !== null)
|
|
415
|
+
for (const t of e.reactions) {
|
|
416
|
+
const r = t.f;
|
|
417
|
+
(r & D) !== 0 ? or(
|
|
418
|
+
/** @type {Derived} */
|
|
419
|
+
t
|
|
420
|
+
) : (r & (ft | de)) !== 0 && (R(t, M), ve(
|
|
421
|
+
/** @type {Effect} */
|
|
422
|
+
t
|
|
423
|
+
));
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
function ve(e) {
|
|
427
|
+
for (var t = Ct = e; t.parent !== null; ) {
|
|
428
|
+
t = t.parent;
|
|
429
|
+
var r = t.f;
|
|
430
|
+
if (Et && t === T && (r & de) !== 0)
|
|
431
|
+
return;
|
|
432
|
+
if ((r & (Ne | z)) !== 0) {
|
|
433
|
+
if ((r & I) === 0) return;
|
|
434
|
+
t.f ^= I;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
te.push(t);
|
|
438
|
+
}
|
|
439
|
+
function cr(e, t, r) {
|
|
440
|
+
const n = lt;
|
|
441
|
+
if (t.length === 0) {
|
|
442
|
+
r(e.map(n));
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
var i = N, f = (
|
|
446
|
+
/** @type {Effect} */
|
|
447
|
+
T
|
|
448
|
+
), u = In();
|
|
449
|
+
Promise.all(t.map((s) => /* @__PURE__ */ Pn(s))).then((s) => {
|
|
450
|
+
i == null || i.activate(), u();
|
|
451
|
+
try {
|
|
452
|
+
r([...e.map(n), ...s]);
|
|
453
|
+
} catch (l) {
|
|
454
|
+
(f.f & he) === 0 && Je(l, f);
|
|
455
|
+
}
|
|
456
|
+
i == null || i.deactivate(), vr();
|
|
457
|
+
}).catch((s) => {
|
|
458
|
+
Je(s, f);
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
function In() {
|
|
462
|
+
var e = T, t = A, r = K, n = N;
|
|
463
|
+
return function() {
|
|
464
|
+
ue(e), W(t), Ze(r), n == null || n.activate();
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
function vr() {
|
|
468
|
+
ue(null), W(null), Ze(null);
|
|
469
|
+
}
|
|
470
|
+
// @__NO_SIDE_EFFECTS__
|
|
471
|
+
function lt(e) {
|
|
472
|
+
var t = D | M, r = A !== null && (A.f & D) !== 0 ? (
|
|
473
|
+
/** @type {Derived} */
|
|
474
|
+
A
|
|
475
|
+
) : null;
|
|
476
|
+
return T === null || r !== null && (r.f & j) !== 0 ? t |= j : T.f |= it, {
|
|
477
|
+
ctx: K,
|
|
478
|
+
deps: null,
|
|
479
|
+
effects: null,
|
|
480
|
+
equals: ur,
|
|
481
|
+
f: t,
|
|
482
|
+
fn: e,
|
|
483
|
+
reactions: null,
|
|
484
|
+
rv: 0,
|
|
485
|
+
v: (
|
|
486
|
+
/** @type {V} */
|
|
487
|
+
C
|
|
488
|
+
),
|
|
489
|
+
wv: 0,
|
|
490
|
+
parent: r ?? T,
|
|
491
|
+
ac: null
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
// @__NO_SIDE_EFFECTS__
|
|
495
|
+
function Pn(e, t) {
|
|
496
|
+
let r = (
|
|
497
|
+
/** @type {Effect | null} */
|
|
498
|
+
T
|
|
499
|
+
);
|
|
500
|
+
r === null && cn();
|
|
501
|
+
var n = (
|
|
502
|
+
/** @type {Boundary} */
|
|
503
|
+
r.b
|
|
504
|
+
), i = (
|
|
505
|
+
/** @type {Promise<V>} */
|
|
506
|
+
/** @type {unknown} */
|
|
507
|
+
void 0
|
|
508
|
+
), f = Le(
|
|
509
|
+
/** @type {V} */
|
|
510
|
+
C
|
|
511
|
+
), u = !A, s = /* @__PURE__ */ new Map();
|
|
512
|
+
return Vn(() => {
|
|
513
|
+
var h;
|
|
514
|
+
var l = ir();
|
|
515
|
+
i = l.promise;
|
|
516
|
+
try {
|
|
517
|
+
Promise.resolve(e()).then(l.resolve, l.reject);
|
|
518
|
+
} catch (d) {
|
|
519
|
+
l.reject(d);
|
|
520
|
+
}
|
|
521
|
+
var a = (
|
|
522
|
+
/** @type {Batch} */
|
|
523
|
+
N
|
|
524
|
+
), c = n.is_pending();
|
|
525
|
+
u && (n.update_pending_count(1), c || (a.increment(), (h = s.get(a)) == null || h.reject(De), s.set(a, l)));
|
|
526
|
+
const v = (d, o = void 0) => {
|
|
527
|
+
c || a.activate(), o ? o !== De && (f.f |= oe, Me(f, o)) : ((f.f & oe) !== 0 && (f.f ^= oe), Me(f, d)), u && (n.update_pending_count(-1), c || a.decrement()), vr();
|
|
528
|
+
};
|
|
529
|
+
l.promise.then(v, (d) => v(null, d || "unknown"));
|
|
530
|
+
}), gr(() => {
|
|
531
|
+
for (const l of s.values())
|
|
532
|
+
l.reject(De);
|
|
533
|
+
}), new Promise((l) => {
|
|
534
|
+
function a(c) {
|
|
535
|
+
function v() {
|
|
536
|
+
c === i ? l(f) : a(i);
|
|
537
|
+
}
|
|
538
|
+
c.then(v, v);
|
|
539
|
+
}
|
|
540
|
+
a(i);
|
|
541
|
+
});
|
|
542
|
+
}
|
|
543
|
+
// @__NO_SIDE_EFFECTS__
|
|
544
|
+
function yi(e) {
|
|
545
|
+
const t = /* @__PURE__ */ lt(e);
|
|
546
|
+
return Cr(t), t;
|
|
547
|
+
}
|
|
548
|
+
// @__NO_SIDE_EFFECTS__
|
|
549
|
+
function _r(e) {
|
|
550
|
+
const t = /* @__PURE__ */ lt(e);
|
|
551
|
+
return t.equals = lr, t;
|
|
552
|
+
}
|
|
553
|
+
function dr(e) {
|
|
554
|
+
var t = e.effects;
|
|
555
|
+
if (t !== null) {
|
|
556
|
+
e.effects = null;
|
|
557
|
+
for (var r = 0; r < t.length; r += 1)
|
|
558
|
+
$(
|
|
559
|
+
/** @type {Effect} */
|
|
560
|
+
t[r]
|
|
561
|
+
);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
function kn(e) {
|
|
565
|
+
for (var t = e.parent; t !== null; ) {
|
|
566
|
+
if ((t.f & D) === 0)
|
|
567
|
+
return (
|
|
568
|
+
/** @type {Effect} */
|
|
569
|
+
t
|
|
570
|
+
);
|
|
571
|
+
t = t.parent;
|
|
572
|
+
}
|
|
573
|
+
return null;
|
|
574
|
+
}
|
|
575
|
+
function Nt(e) {
|
|
576
|
+
var t, r = T;
|
|
577
|
+
ue(kn(e));
|
|
578
|
+
try {
|
|
579
|
+
dr(e), t = kr(e);
|
|
580
|
+
} finally {
|
|
581
|
+
ue(r);
|
|
582
|
+
}
|
|
583
|
+
return t;
|
|
584
|
+
}
|
|
585
|
+
function hr(e) {
|
|
586
|
+
var t = Nt(e);
|
|
587
|
+
if (e.equals(t) || (e.v = t, e.wv = Ir()), !pe) {
|
|
588
|
+
var r = (ie || (e.f & j) !== 0) && e.deps !== null ? le : I;
|
|
589
|
+
R(e, r);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
const fe = /* @__PURE__ */ new Map();
|
|
593
|
+
function Le(e, t) {
|
|
594
|
+
var r = {
|
|
595
|
+
f: 0,
|
|
596
|
+
// TODO ideally we could skip this altogether, but it causes type errors
|
|
597
|
+
v: e,
|
|
598
|
+
reactions: null,
|
|
599
|
+
equals: ur,
|
|
600
|
+
rv: 0,
|
|
601
|
+
wv: 0
|
|
602
|
+
};
|
|
603
|
+
return r;
|
|
604
|
+
}
|
|
605
|
+
// @__NO_SIDE_EFFECTS__
|
|
606
|
+
function Q(e, t) {
|
|
607
|
+
const r = Le(e);
|
|
608
|
+
return Cr(r), r;
|
|
609
|
+
}
|
|
610
|
+
// @__NO_SIDE_EFFECTS__
|
|
611
|
+
function Rn(e, t = !1, r = !0) {
|
|
612
|
+
const n = Le(e);
|
|
613
|
+
return t || (n.equals = lr), n;
|
|
614
|
+
}
|
|
615
|
+
function ee(e, t, r = !1) {
|
|
616
|
+
A !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
617
|
+
// to ensure we error if state is set inside an inspect effect
|
|
618
|
+
(!Y || (A.f & qt) !== 0) && ar() && (A.f & (D | de | ft | qt)) !== 0 && !(k != null && k.includes(e)) && bn();
|
|
619
|
+
let n = r ? be(t) : t;
|
|
620
|
+
return Me(e, n);
|
|
621
|
+
}
|
|
622
|
+
function Me(e, t) {
|
|
623
|
+
if (!e.equals(t)) {
|
|
624
|
+
var r = e.v;
|
|
625
|
+
pe ? fe.set(e, t) : fe.set(e, r), e.v = t;
|
|
626
|
+
var n = Xe.ensure();
|
|
627
|
+
n.capture(e, r), (e.f & D) !== 0 && ((e.f & M) !== 0 && Nt(
|
|
628
|
+
/** @type {Derived} */
|
|
629
|
+
e
|
|
630
|
+
), R(e, (e.f & j) === 0 ? I : le)), e.wv = Ir(), pr(e, M), T !== null && (T.f & I) !== 0 && (T.f & (z | Ne)) === 0 && (x === null ? Hn([e]) : x.push(e));
|
|
631
|
+
}
|
|
632
|
+
return t;
|
|
633
|
+
}
|
|
634
|
+
function dt(e) {
|
|
635
|
+
ee(e, e.v + 1);
|
|
636
|
+
}
|
|
637
|
+
function pr(e, t) {
|
|
638
|
+
var r = e.reactions;
|
|
639
|
+
if (r !== null)
|
|
640
|
+
for (var n = r.length, i = 0; i < n; i++) {
|
|
641
|
+
var f = r[i], u = f.f, s = (u & M) === 0;
|
|
642
|
+
s && R(f, t), (u & D) !== 0 ? pr(
|
|
643
|
+
/** @type {Derived} */
|
|
644
|
+
f,
|
|
645
|
+
le
|
|
646
|
+
) : s && ((u & de) !== 0 && G !== null && G.push(
|
|
647
|
+
/** @type {Effect} */
|
|
648
|
+
f
|
|
649
|
+
), ve(
|
|
650
|
+
/** @type {Effect} */
|
|
651
|
+
f
|
|
652
|
+
));
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
function be(e) {
|
|
656
|
+
if (typeof e != "object" || e === null || me in e)
|
|
657
|
+
return e;
|
|
658
|
+
const t = rr(e);
|
|
659
|
+
if (t !== nn && t !== fn)
|
|
660
|
+
return e;
|
|
661
|
+
var r = /* @__PURE__ */ new Map(), n = rt(e), i = /* @__PURE__ */ Q(0), f = ce, u = (s) => {
|
|
662
|
+
if (ce === f)
|
|
663
|
+
return s();
|
|
664
|
+
var l = A, a = ce;
|
|
665
|
+
W(null), Yt(f);
|
|
666
|
+
var c = s();
|
|
667
|
+
return W(l), Yt(a), c;
|
|
668
|
+
};
|
|
669
|
+
return n && r.set("length", /* @__PURE__ */ Q(
|
|
670
|
+
/** @type {any[]} */
|
|
671
|
+
e.length
|
|
672
|
+
)), new Proxy(
|
|
673
|
+
/** @type {any} */
|
|
674
|
+
e,
|
|
675
|
+
{
|
|
676
|
+
defineProperty(s, l, a) {
|
|
677
|
+
(!("value" in a) || a.configurable === !1 || a.enumerable === !1 || a.writable === !1) && wn();
|
|
678
|
+
var c = r.get(l);
|
|
679
|
+
return c === void 0 ? c = u(() => {
|
|
680
|
+
var v = /* @__PURE__ */ Q(a.value);
|
|
681
|
+
return r.set(l, v), v;
|
|
682
|
+
}) : ee(c, a.value, !0), !0;
|
|
683
|
+
},
|
|
684
|
+
deleteProperty(s, l) {
|
|
685
|
+
var a = r.get(l);
|
|
686
|
+
if (a === void 0) {
|
|
687
|
+
if (l in s) {
|
|
688
|
+
const c = u(() => /* @__PURE__ */ Q(C));
|
|
689
|
+
r.set(l, c), dt(i);
|
|
690
|
+
}
|
|
691
|
+
} else
|
|
692
|
+
ee(a, C), dt(i);
|
|
693
|
+
return !0;
|
|
694
|
+
},
|
|
695
|
+
get(s, l, a) {
|
|
696
|
+
var d;
|
|
697
|
+
if (l === me)
|
|
698
|
+
return e;
|
|
699
|
+
var c = r.get(l), v = l in s;
|
|
700
|
+
if (c === void 0 && (!v || (d = We(s, l)) != null && d.writable) && (c = u(() => {
|
|
701
|
+
var o = be(v ? s[l] : C), w = /* @__PURE__ */ Q(o);
|
|
702
|
+
return w;
|
|
703
|
+
}), r.set(l, c)), c !== void 0) {
|
|
704
|
+
var h = V(c);
|
|
705
|
+
return h === C ? void 0 : h;
|
|
706
|
+
}
|
|
707
|
+
return Reflect.get(s, l, a);
|
|
708
|
+
},
|
|
709
|
+
getOwnPropertyDescriptor(s, l) {
|
|
710
|
+
var a = Reflect.getOwnPropertyDescriptor(s, l);
|
|
711
|
+
if (a && "value" in a) {
|
|
712
|
+
var c = r.get(l);
|
|
713
|
+
c && (a.value = V(c));
|
|
714
|
+
} else if (a === void 0) {
|
|
715
|
+
var v = r.get(l), h = v == null ? void 0 : v.v;
|
|
716
|
+
if (v !== void 0 && h !== C)
|
|
717
|
+
return {
|
|
718
|
+
enumerable: !0,
|
|
719
|
+
configurable: !0,
|
|
720
|
+
value: h,
|
|
721
|
+
writable: !0
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
return a;
|
|
725
|
+
},
|
|
726
|
+
has(s, l) {
|
|
727
|
+
var h;
|
|
728
|
+
if (l === me)
|
|
729
|
+
return !0;
|
|
730
|
+
var a = r.get(l), c = a !== void 0 && a.v !== C || Reflect.has(s, l);
|
|
731
|
+
if (a !== void 0 || T !== null && (!c || (h = We(s, l)) != null && h.writable)) {
|
|
732
|
+
a === void 0 && (a = u(() => {
|
|
733
|
+
var d = c ? be(s[l]) : C, o = /* @__PURE__ */ Q(d);
|
|
734
|
+
return o;
|
|
735
|
+
}), r.set(l, a));
|
|
736
|
+
var v = V(a);
|
|
737
|
+
if (v === C)
|
|
738
|
+
return !1;
|
|
739
|
+
}
|
|
740
|
+
return c;
|
|
741
|
+
},
|
|
742
|
+
set(s, l, a, c) {
|
|
743
|
+
var _;
|
|
744
|
+
var v = r.get(l), h = l in s;
|
|
745
|
+
if (n && l === "length")
|
|
746
|
+
for (var d = a; d < /** @type {Source<number>} */
|
|
747
|
+
v.v; d += 1) {
|
|
748
|
+
var o = r.get(d + "");
|
|
749
|
+
o !== void 0 ? ee(o, C) : d in s && (o = u(() => /* @__PURE__ */ Q(C)), r.set(d + "", o));
|
|
750
|
+
}
|
|
751
|
+
if (v === void 0)
|
|
752
|
+
(!h || (_ = We(s, l)) != null && _.writable) && (v = u(() => /* @__PURE__ */ Q(void 0)), ee(v, be(a)), r.set(l, v));
|
|
753
|
+
else {
|
|
754
|
+
h = v.v !== C;
|
|
755
|
+
var w = u(() => be(a));
|
|
756
|
+
ee(v, w);
|
|
757
|
+
}
|
|
758
|
+
var p = Reflect.getOwnPropertyDescriptor(s, l);
|
|
759
|
+
if (p != null && p.set && p.set.call(c, a), !h) {
|
|
760
|
+
if (n && typeof l == "string") {
|
|
761
|
+
var b = (
|
|
762
|
+
/** @type {Source<number>} */
|
|
763
|
+
r.get("length")
|
|
764
|
+
), S = Number(l);
|
|
765
|
+
Number.isInteger(S) && S >= b.v && ee(b, S + 1);
|
|
766
|
+
}
|
|
767
|
+
dt(i);
|
|
768
|
+
}
|
|
769
|
+
return !0;
|
|
770
|
+
},
|
|
771
|
+
ownKeys(s) {
|
|
772
|
+
V(i);
|
|
773
|
+
var l = Reflect.ownKeys(s).filter((v) => {
|
|
774
|
+
var h = r.get(v);
|
|
775
|
+
return h === void 0 || h.v !== C;
|
|
776
|
+
});
|
|
777
|
+
for (var [a, c] of r)
|
|
778
|
+
c.v !== C && !(a in s) && l.push(a);
|
|
779
|
+
return l;
|
|
780
|
+
},
|
|
781
|
+
setPrototypeOf() {
|
|
782
|
+
gn();
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
);
|
|
786
|
+
}
|
|
787
|
+
function Bt(e) {
|
|
788
|
+
try {
|
|
789
|
+
if (e !== null && typeof e == "object" && me in e)
|
|
790
|
+
return e[me];
|
|
791
|
+
} catch {
|
|
792
|
+
}
|
|
793
|
+
return e;
|
|
794
|
+
}
|
|
795
|
+
function Dn(e, t) {
|
|
796
|
+
return Object.is(Bt(e), Bt(t));
|
|
797
|
+
}
|
|
798
|
+
var Ln, Mn, Fn;
|
|
799
|
+
function Be(e = "") {
|
|
800
|
+
return document.createTextNode(e);
|
|
801
|
+
}
|
|
802
|
+
// @__NO_SIDE_EFFECTS__
|
|
803
|
+
function ne(e) {
|
|
804
|
+
return Mn.call(e);
|
|
805
|
+
}
|
|
806
|
+
// @__NO_SIDE_EFFECTS__
|
|
807
|
+
function at(e) {
|
|
808
|
+
return Fn.call(e);
|
|
809
|
+
}
|
|
810
|
+
function Ti(e, t) {
|
|
811
|
+
return /* @__PURE__ */ ne(e);
|
|
812
|
+
}
|
|
813
|
+
function Si(e, t = !1) {
|
|
814
|
+
{
|
|
815
|
+
var r = (
|
|
816
|
+
/** @type {DocumentFragment} */
|
|
817
|
+
/* @__PURE__ */ ne(
|
|
818
|
+
/** @type {Node} */
|
|
819
|
+
e
|
|
820
|
+
)
|
|
821
|
+
);
|
|
822
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ at(r) : r;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
function Oi(e, t = 1, r = !1) {
|
|
826
|
+
let n = e;
|
|
827
|
+
for (; t--; )
|
|
828
|
+
n = /** @type {TemplateNode} */
|
|
829
|
+
/* @__PURE__ */ at(n);
|
|
830
|
+
return n;
|
|
831
|
+
}
|
|
832
|
+
function xn(e) {
|
|
833
|
+
e.textContent = "";
|
|
834
|
+
}
|
|
835
|
+
function wr() {
|
|
836
|
+
return !1;
|
|
837
|
+
}
|
|
838
|
+
function jn(e, t) {
|
|
839
|
+
if (t) {
|
|
840
|
+
const r = document.body;
|
|
841
|
+
e.autofocus = !0, ut(() => {
|
|
842
|
+
document.activeElement === r && e.focus();
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
function It(e) {
|
|
847
|
+
var t = A, r = T;
|
|
848
|
+
W(null), ue(null);
|
|
849
|
+
try {
|
|
850
|
+
return e();
|
|
851
|
+
} finally {
|
|
852
|
+
W(t), ue(r);
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
function qn(e) {
|
|
856
|
+
T === null && A === null && dn(), A !== null && (A.f & j) !== 0 && T === null && _n(), pe && vn();
|
|
857
|
+
}
|
|
858
|
+
function Un(e, t) {
|
|
859
|
+
var r = t.last;
|
|
860
|
+
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
861
|
+
}
|
|
862
|
+
function ae(e, t, r, n = !0) {
|
|
863
|
+
var i = T;
|
|
864
|
+
i !== null && (i.f & B) !== 0 && (e |= B);
|
|
865
|
+
var f = {
|
|
866
|
+
ctx: K,
|
|
867
|
+
deps: null,
|
|
868
|
+
nodes_start: null,
|
|
869
|
+
nodes_end: null,
|
|
870
|
+
f: e | M,
|
|
871
|
+
first: null,
|
|
872
|
+
fn: t,
|
|
873
|
+
last: null,
|
|
874
|
+
next: null,
|
|
875
|
+
parent: i,
|
|
876
|
+
b: i && i.b,
|
|
877
|
+
prev: null,
|
|
878
|
+
teardown: null,
|
|
879
|
+
transitions: null,
|
|
880
|
+
wv: 0,
|
|
881
|
+
ac: null
|
|
882
|
+
};
|
|
883
|
+
if (r)
|
|
884
|
+
try {
|
|
885
|
+
xe(f), f.f |= Ot;
|
|
886
|
+
} catch (l) {
|
|
887
|
+
throw $(f), l;
|
|
888
|
+
}
|
|
889
|
+
else t !== null && ve(f);
|
|
890
|
+
if (n) {
|
|
891
|
+
var u = f;
|
|
892
|
+
if (r && u.deps === null && u.teardown === null && u.nodes_start === null && u.first === u.last && // either `null`, or a singular child
|
|
893
|
+
(u.f & it) === 0 && (u = u.first), u !== null && (u.parent = i, i !== null && Un(u, i), A !== null && (A.f & D) !== 0 && (e & Ne) === 0)) {
|
|
894
|
+
var s = (
|
|
895
|
+
/** @type {Derived} */
|
|
896
|
+
A
|
|
897
|
+
);
|
|
898
|
+
(s.effects ?? (s.effects = [])).push(u);
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
return f;
|
|
902
|
+
}
|
|
903
|
+
function gr(e) {
|
|
904
|
+
const t = ae(St, null, !1);
|
|
905
|
+
return R(t, I), t.teardown = e, t;
|
|
906
|
+
}
|
|
907
|
+
function Ci(e) {
|
|
908
|
+
qn();
|
|
909
|
+
var t = (
|
|
910
|
+
/** @type {Effect} */
|
|
911
|
+
T.f
|
|
912
|
+
), r = !A && (t & z) !== 0 && (t & Ot) === 0;
|
|
913
|
+
if (r) {
|
|
914
|
+
var n = (
|
|
915
|
+
/** @type {ComponentContext} */
|
|
916
|
+
K
|
|
917
|
+
);
|
|
918
|
+
(n.e ?? (n.e = [])).push(e);
|
|
919
|
+
} else
|
|
920
|
+
return br(e);
|
|
921
|
+
}
|
|
922
|
+
function br(e) {
|
|
923
|
+
return ae(Tt | an, e, !1);
|
|
924
|
+
}
|
|
925
|
+
function Er(e) {
|
|
926
|
+
return ae(Tt, e, !1);
|
|
927
|
+
}
|
|
928
|
+
function Vn(e) {
|
|
929
|
+
return ae(ft | it, e, !0);
|
|
930
|
+
}
|
|
931
|
+
function Ni(e, t = 0) {
|
|
932
|
+
return ae(St | t, e, !0);
|
|
933
|
+
}
|
|
934
|
+
function Ii(e, t = [], r = []) {
|
|
935
|
+
cr(t, r, (n) => {
|
|
936
|
+
ae(St, () => e(...n.map(V)), !0);
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
function $e(e, t = 0) {
|
|
940
|
+
var r = ae(de | t, e, !0);
|
|
941
|
+
return r;
|
|
942
|
+
}
|
|
943
|
+
function _e(e, t = !0) {
|
|
944
|
+
return ae(z | it, e, !0, t);
|
|
945
|
+
}
|
|
946
|
+
function mr(e) {
|
|
947
|
+
var t = e.teardown;
|
|
948
|
+
if (t !== null) {
|
|
949
|
+
const r = pe, n = A;
|
|
950
|
+
Ht(!0), W(null);
|
|
951
|
+
try {
|
|
952
|
+
t.call(null);
|
|
953
|
+
} finally {
|
|
954
|
+
Ht(r), W(n);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
function Ar(e, t = !1) {
|
|
959
|
+
var r = e.first;
|
|
960
|
+
for (e.first = e.last = null; r !== null; ) {
|
|
961
|
+
const i = r.ac;
|
|
962
|
+
i !== null && It(() => {
|
|
963
|
+
i.abort(De);
|
|
964
|
+
});
|
|
965
|
+
var n = r.next;
|
|
966
|
+
(r.f & Ne) !== 0 ? r.parent = null : $(r, t), r = n;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
function Bn(e) {
|
|
970
|
+
for (var t = e.first; t !== null; ) {
|
|
971
|
+
var r = t.next;
|
|
972
|
+
(t.f & z) === 0 && $(t), t = r;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
function $(e, t = !0) {
|
|
976
|
+
var r = !1;
|
|
977
|
+
(t || (e.f & ln) !== 0) && e.nodes_start !== null && e.nodes_end !== null && ($n(
|
|
978
|
+
e.nodes_start,
|
|
979
|
+
/** @type {TemplateNode} */
|
|
980
|
+
e.nodes_end
|
|
981
|
+
), r = !0), Ar(e, t && !r), Qe(e, 0), R(e, he);
|
|
982
|
+
var n = e.transitions;
|
|
983
|
+
if (n !== null)
|
|
984
|
+
for (const f of n)
|
|
985
|
+
f.stop();
|
|
986
|
+
mr(e);
|
|
987
|
+
var i = e.parent;
|
|
988
|
+
i !== null && i.first !== null && yr(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = e.ac = null;
|
|
989
|
+
}
|
|
990
|
+
function $n(e, t) {
|
|
991
|
+
for (; e !== null; ) {
|
|
992
|
+
var r = e === t ? null : (
|
|
993
|
+
/** @type {TemplateNode} */
|
|
994
|
+
/* @__PURE__ */ at(e)
|
|
995
|
+
);
|
|
996
|
+
e.remove(), e = r;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
function yr(e) {
|
|
1000
|
+
var t = e.parent, r = e.prev, n = e.next;
|
|
1001
|
+
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1002
|
+
}
|
|
1003
|
+
function Tr(e, t) {
|
|
1004
|
+
var r = [];
|
|
1005
|
+
Pt(e, r, !0), Sr(r, () => {
|
|
1006
|
+
$(e), t && t();
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
function Sr(e, t) {
|
|
1010
|
+
var r = e.length;
|
|
1011
|
+
if (r > 0) {
|
|
1012
|
+
var n = () => --r || t();
|
|
1013
|
+
for (var i of e)
|
|
1014
|
+
i.out(n);
|
|
1015
|
+
} else
|
|
1016
|
+
t();
|
|
1017
|
+
}
|
|
1018
|
+
function Pt(e, t, r) {
|
|
1019
|
+
if ((e.f & B) === 0) {
|
|
1020
|
+
if (e.f ^= B, e.transitions !== null)
|
|
1021
|
+
for (const u of e.transitions)
|
|
1022
|
+
(u.is_global || r) && t.push(u);
|
|
1023
|
+
for (var n = e.first; n !== null; ) {
|
|
1024
|
+
var i = n.next, f = (n.f & nt) !== 0 || (n.f & z) !== 0;
|
|
1025
|
+
Pt(n, t, f ? r : !1), n = i;
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
function kt(e) {
|
|
1030
|
+
Or(e, !0);
|
|
1031
|
+
}
|
|
1032
|
+
function Or(e, t) {
|
|
1033
|
+
if ((e.f & B) !== 0) {
|
|
1034
|
+
e.f ^= B, (e.f & I) === 0 && (R(e, M), ve(e));
|
|
1035
|
+
for (var r = e.first; r !== null; ) {
|
|
1036
|
+
var n = r.next, i = (r.f & nt) !== 0 || (r.f & z) !== 0;
|
|
1037
|
+
Or(r, i ? t : !1), r = n;
|
|
1038
|
+
}
|
|
1039
|
+
if (e.transitions !== null)
|
|
1040
|
+
for (const f of e.transitions)
|
|
1041
|
+
(f.is_global || t) && f.in();
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
let Ae = !1;
|
|
1045
|
+
function $t(e) {
|
|
1046
|
+
Ae = e;
|
|
1047
|
+
}
|
|
1048
|
+
let pe = !1;
|
|
1049
|
+
function Ht(e) {
|
|
1050
|
+
pe = e;
|
|
1051
|
+
}
|
|
1052
|
+
let A = null, Y = !1;
|
|
1053
|
+
function W(e) {
|
|
1054
|
+
A = e;
|
|
1055
|
+
}
|
|
1056
|
+
let T = null;
|
|
1057
|
+
function ue(e) {
|
|
1058
|
+
T = e;
|
|
1059
|
+
}
|
|
1060
|
+
let k = null;
|
|
1061
|
+
function Cr(e) {
|
|
1062
|
+
A !== null && (k === null ? k = [e] : k.push(e));
|
|
1063
|
+
}
|
|
1064
|
+
let P = null, L = 0, x = null;
|
|
1065
|
+
function Hn(e) {
|
|
1066
|
+
x = e;
|
|
1067
|
+
}
|
|
1068
|
+
let Nr = 1, Fe = 0, ce = Fe;
|
|
1069
|
+
function Yt(e) {
|
|
1070
|
+
ce = e;
|
|
1071
|
+
}
|
|
1072
|
+
let ie = !1;
|
|
1073
|
+
function Ir() {
|
|
1074
|
+
return ++Nr;
|
|
1075
|
+
}
|
|
1076
|
+
function st(e) {
|
|
1077
|
+
var v;
|
|
1078
|
+
var t = e.f;
|
|
1079
|
+
if ((t & M) !== 0)
|
|
1080
|
+
return !0;
|
|
1081
|
+
if ((t & le) !== 0) {
|
|
1082
|
+
var r = e.deps, n = (t & j) !== 0;
|
|
1083
|
+
if (r !== null) {
|
|
1084
|
+
var i, f, u = (t & ze) !== 0, s = n && T !== null && !ie, l = r.length;
|
|
1085
|
+
if ((u || s) && (T === null || (T.f & he) === 0)) {
|
|
1086
|
+
var a = (
|
|
1087
|
+
/** @type {Derived} */
|
|
1088
|
+
e
|
|
1089
|
+
), c = a.parent;
|
|
1090
|
+
for (i = 0; i < l; i++)
|
|
1091
|
+
f = r[i], (u || !((v = f == null ? void 0 : f.reactions) != null && v.includes(a))) && (f.reactions ?? (f.reactions = [])).push(a);
|
|
1092
|
+
u && (a.f ^= ze), s && c !== null && (c.f & j) === 0 && (a.f ^= j);
|
|
1093
|
+
}
|
|
1094
|
+
for (i = 0; i < l; i++)
|
|
1095
|
+
if (f = r[i], st(
|
|
1096
|
+
/** @type {Derived} */
|
|
1097
|
+
f
|
|
1098
|
+
) && hr(
|
|
1099
|
+
/** @type {Derived} */
|
|
1100
|
+
f
|
|
1101
|
+
), f.wv > e.wv)
|
|
1102
|
+
return !0;
|
|
1103
|
+
}
|
|
1104
|
+
(!n || T !== null && !ie) && R(e, I);
|
|
1105
|
+
}
|
|
1106
|
+
return !1;
|
|
1107
|
+
}
|
|
1108
|
+
function Pr(e, t, r = !0) {
|
|
1109
|
+
var n = e.reactions;
|
|
1110
|
+
if (n !== null && !(k != null && k.includes(e)))
|
|
1111
|
+
for (var i = 0; i < n.length; i++) {
|
|
1112
|
+
var f = n[i];
|
|
1113
|
+
(f.f & D) !== 0 ? Pr(
|
|
1114
|
+
/** @type {Derived} */
|
|
1115
|
+
f,
|
|
1116
|
+
t,
|
|
1117
|
+
!1
|
|
1118
|
+
) : t === f && (r ? R(f, M) : (f.f & I) !== 0 && R(f, le), ve(
|
|
1119
|
+
/** @type {Effect} */
|
|
1120
|
+
f
|
|
1121
|
+
));
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
function kr(e) {
|
|
1125
|
+
var w;
|
|
1126
|
+
var t = P, r = L, n = x, i = A, f = ie, u = k, s = K, l = Y, a = ce, c = e.f;
|
|
1127
|
+
P = /** @type {null | Value[]} */
|
|
1128
|
+
null, L = 0, x = null, ie = (c & j) !== 0 && (Y || !Ae || A === null), A = (c & (z | Ne)) === 0 ? e : null, k = null, Ze(e.ctx), Y = !1, ce = ++Fe, e.ac !== null && (It(() => {
|
|
1129
|
+
e.ac.abort(De);
|
|
1130
|
+
}), e.ac = null);
|
|
1131
|
+
try {
|
|
1132
|
+
e.f |= bt;
|
|
1133
|
+
var v = (
|
|
1134
|
+
/** @type {Function} */
|
|
1135
|
+
e.fn
|
|
1136
|
+
), h = v(), d = e.deps;
|
|
1137
|
+
if (P !== null) {
|
|
1138
|
+
var o;
|
|
1139
|
+
if (Qe(e, L), d !== null && L > 0)
|
|
1140
|
+
for (d.length = L + P.length, o = 0; o < P.length; o++)
|
|
1141
|
+
d[L + o] = P[o];
|
|
1142
|
+
else
|
|
1143
|
+
e.deps = d = P;
|
|
1144
|
+
if (!ie || // Deriveds that already have reactions can cleanup, so we still add them as reactions
|
|
1145
|
+
(c & D) !== 0 && /** @type {import('#client').Derived} */
|
|
1146
|
+
e.reactions !== null)
|
|
1147
|
+
for (o = L; o < d.length; o++)
|
|
1148
|
+
((w = d[o]).reactions ?? (w.reactions = [])).push(e);
|
|
1149
|
+
} else d !== null && L < d.length && (Qe(e, L), d.length = L);
|
|
1150
|
+
if (ar() && x !== null && !Y && d !== null && (e.f & (D | le | M)) === 0)
|
|
1151
|
+
for (o = 0; o < /** @type {Source[]} */
|
|
1152
|
+
x.length; o++)
|
|
1153
|
+
Pr(
|
|
1154
|
+
x[o],
|
|
1155
|
+
/** @type {Effect} */
|
|
1156
|
+
e
|
|
1157
|
+
);
|
|
1158
|
+
return i !== null && i !== e && (Fe++, x !== null && (n === null ? n = x : n.push(.../** @type {Source[]} */
|
|
1159
|
+
x))), (e.f & oe) !== 0 && (e.f ^= oe), h;
|
|
1160
|
+
} catch (p) {
|
|
1161
|
+
return On(p);
|
|
1162
|
+
} finally {
|
|
1163
|
+
e.f ^= bt, P = t, L = r, x = n, A = i, ie = f, k = u, Ze(s), Y = l, ce = a;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
function Yn(e, t) {
|
|
1167
|
+
let r = t.reactions;
|
|
1168
|
+
if (r !== null) {
|
|
1169
|
+
var n = tn.call(r, e);
|
|
1170
|
+
if (n !== -1) {
|
|
1171
|
+
var i = r.length - 1;
|
|
1172
|
+
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
r === null && (t.f & D) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1176
|
+
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1177
|
+
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1178
|
+
(P === null || !P.includes(t)) && (R(t, le), (t.f & (j | ze)) === 0 && (t.f ^= ze), dr(
|
|
1179
|
+
/** @type {Derived} **/
|
|
1180
|
+
t
|
|
1181
|
+
), Qe(
|
|
1182
|
+
/** @type {Derived} **/
|
|
1183
|
+
t,
|
|
1184
|
+
0
|
|
1185
|
+
));
|
|
1186
|
+
}
|
|
1187
|
+
function Qe(e, t) {
|
|
1188
|
+
var r = e.deps;
|
|
1189
|
+
if (r !== null)
|
|
1190
|
+
for (var n = t; n < r.length; n++)
|
|
1191
|
+
Yn(e, r[n]);
|
|
1192
|
+
}
|
|
1193
|
+
function xe(e) {
|
|
1194
|
+
var t = e.f;
|
|
1195
|
+
if ((t & he) === 0) {
|
|
1196
|
+
R(e, I);
|
|
1197
|
+
var r = T, n = Ae;
|
|
1198
|
+
T = e, Ae = !0;
|
|
1199
|
+
try {
|
|
1200
|
+
(t & de) !== 0 ? Bn(e) : Ar(e), mr(e);
|
|
1201
|
+
var i = kr(e);
|
|
1202
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = Nr;
|
|
1203
|
+
var f;
|
|
1204
|
+
er && yn && (e.f & M) !== 0 && e.deps;
|
|
1205
|
+
} finally {
|
|
1206
|
+
Ae = n, T = r;
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
function V(e) {
|
|
1211
|
+
var t = e.f, r = (t & D) !== 0;
|
|
1212
|
+
if (A !== null && !Y) {
|
|
1213
|
+
var n = T !== null && (T.f & he) !== 0;
|
|
1214
|
+
if (!n && !(k != null && k.includes(e))) {
|
|
1215
|
+
var i = A.deps;
|
|
1216
|
+
if ((A.f & bt) !== 0)
|
|
1217
|
+
e.rv < Fe && (e.rv = Fe, P === null && i !== null && i[L] === e ? L++ : P === null ? P = [e] : (!ie || !P.includes(e)) && P.push(e));
|
|
1218
|
+
else {
|
|
1219
|
+
(A.deps ?? (A.deps = [])).push(e);
|
|
1220
|
+
var f = e.reactions;
|
|
1221
|
+
f === null ? e.reactions = [A] : f.includes(A) || f.push(A);
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
} else if (r && /** @type {Derived} */
|
|
1225
|
+
e.deps === null && /** @type {Derived} */
|
|
1226
|
+
e.effects === null) {
|
|
1227
|
+
var u = (
|
|
1228
|
+
/** @type {Derived} */
|
|
1229
|
+
e
|
|
1230
|
+
), s = u.parent;
|
|
1231
|
+
s !== null && (s.f & j) === 0 && (u.f ^= j);
|
|
1232
|
+
}
|
|
1233
|
+
if (pe) {
|
|
1234
|
+
if (fe.has(e))
|
|
1235
|
+
return fe.get(e);
|
|
1236
|
+
if (r) {
|
|
1237
|
+
u = /** @type {Derived} */
|
|
1238
|
+
e;
|
|
1239
|
+
var l = u.v;
|
|
1240
|
+
return ((u.f & I) === 0 && u.reactions !== null || Rr(u)) && (l = Nt(u)), fe.set(u, l), l;
|
|
1241
|
+
}
|
|
1242
|
+
} else r && (u = /** @type {Derived} */
|
|
1243
|
+
e, st(u) && hr(u));
|
|
1244
|
+
if ((e.f & oe) !== 0)
|
|
1245
|
+
throw e.v;
|
|
1246
|
+
return e.v;
|
|
1247
|
+
}
|
|
1248
|
+
function Rr(e) {
|
|
1249
|
+
if (e.v === C) return !0;
|
|
1250
|
+
if (e.deps === null) return !1;
|
|
1251
|
+
for (const t of e.deps)
|
|
1252
|
+
if (fe.has(t) || (t.f & D) !== 0 && Rr(
|
|
1253
|
+
/** @type {Derived} */
|
|
1254
|
+
t
|
|
1255
|
+
))
|
|
1256
|
+
return !0;
|
|
1257
|
+
return !1;
|
|
1258
|
+
}
|
|
1259
|
+
function Kn(e) {
|
|
1260
|
+
var t = Y;
|
|
1261
|
+
try {
|
|
1262
|
+
return Y = !0, e();
|
|
1263
|
+
} finally {
|
|
1264
|
+
Y = t;
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
const Wn = -7169;
|
|
1268
|
+
function R(e, t) {
|
|
1269
|
+
e.f = e.f & Wn | t;
|
|
1270
|
+
}
|
|
1271
|
+
const Gn = /* @__PURE__ */ new Set(), zn = /* @__PURE__ */ new Set();
|
|
1272
|
+
function Zn(e, t, r, n = {}) {
|
|
1273
|
+
function i(f) {
|
|
1274
|
+
if (n.capture || Xn.call(t, f), !f.cancelBubble)
|
|
1275
|
+
return It(() => r == null ? void 0 : r.call(this, f));
|
|
1276
|
+
}
|
|
1277
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? ut(() => {
|
|
1278
|
+
t.addEventListener(e, i, n);
|
|
1279
|
+
}) : t.addEventListener(e, i, n), i;
|
|
1280
|
+
}
|
|
1281
|
+
function Jn(e) {
|
|
1282
|
+
for (var t = 0; t < e.length; t++)
|
|
1283
|
+
Gn.add(e[t]);
|
|
1284
|
+
for (var r of zn)
|
|
1285
|
+
r(e);
|
|
1286
|
+
}
|
|
1287
|
+
let Kt = null;
|
|
1288
|
+
function Xn(e) {
|
|
1289
|
+
var S;
|
|
1290
|
+
var t = this, r = (
|
|
1291
|
+
/** @type {Node} */
|
|
1292
|
+
t.ownerDocument
|
|
1293
|
+
), n = e.type, i = ((S = e.composedPath) == null ? void 0 : S.call(e)) || [], f = (
|
|
1294
|
+
/** @type {null | Element} */
|
|
1295
|
+
i[0] || e.target
|
|
1296
|
+
);
|
|
1297
|
+
Kt = e;
|
|
1298
|
+
var u = 0, s = Kt === e && e.__root;
|
|
1299
|
+
if (s) {
|
|
1300
|
+
var l = i.indexOf(s);
|
|
1301
|
+
if (l !== -1 && (t === document || t === /** @type {any} */
|
|
1302
|
+
window)) {
|
|
1303
|
+
e.__root = t;
|
|
1304
|
+
return;
|
|
1305
|
+
}
|
|
1306
|
+
var a = i.indexOf(t);
|
|
1307
|
+
if (a === -1)
|
|
1308
|
+
return;
|
|
1309
|
+
l <= a && (u = l);
|
|
1310
|
+
}
|
|
1311
|
+
if (f = /** @type {Element} */
|
|
1312
|
+
i[u] || e.target, f !== t) {
|
|
1313
|
+
gt(e, "currentTarget", {
|
|
1314
|
+
configurable: !0,
|
|
1315
|
+
get() {
|
|
1316
|
+
return f || r;
|
|
1317
|
+
}
|
|
1318
|
+
});
|
|
1319
|
+
var c = A, v = T;
|
|
1320
|
+
W(null), ue(null);
|
|
1321
|
+
try {
|
|
1322
|
+
for (var h, d = []; f !== null; ) {
|
|
1323
|
+
var o = f.assignedSlot || f.parentNode || /** @type {any} */
|
|
1324
|
+
f.host || null;
|
|
1325
|
+
try {
|
|
1326
|
+
var w = f["__" + n];
|
|
1327
|
+
if (w != null && (!/** @type {any} */
|
|
1328
|
+
f.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1329
|
+
// -> the target could not have been disabled because it emits the event in the first place
|
|
1330
|
+
e.target === f))
|
|
1331
|
+
if (rt(w)) {
|
|
1332
|
+
var [p, ...b] = w;
|
|
1333
|
+
p.apply(f, [e, ...b]);
|
|
1334
|
+
} else
|
|
1335
|
+
w.call(f, e);
|
|
1336
|
+
} catch (_) {
|
|
1337
|
+
h ? d.push(_) : h = _;
|
|
1338
|
+
}
|
|
1339
|
+
if (e.cancelBubble || o === t || o === null)
|
|
1340
|
+
break;
|
|
1341
|
+
f = o;
|
|
1342
|
+
}
|
|
1343
|
+
if (h) {
|
|
1344
|
+
for (let _ of d)
|
|
1345
|
+
queueMicrotask(() => {
|
|
1346
|
+
throw _;
|
|
1347
|
+
});
|
|
1348
|
+
throw h;
|
|
1349
|
+
}
|
|
1350
|
+
} finally {
|
|
1351
|
+
e.__root = t, delete e.currentTarget, W(c), ue(v);
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
function Dr(e) {
|
|
1356
|
+
var t = document.createElement("template");
|
|
1357
|
+
return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
|
|
1358
|
+
}
|
|
1359
|
+
function je(e, t) {
|
|
1360
|
+
var r = (
|
|
1361
|
+
/** @type {Effect} */
|
|
1362
|
+
T
|
|
1363
|
+
);
|
|
1364
|
+
r.nodes_start === null && (r.nodes_start = e, r.nodes_end = t);
|
|
1365
|
+
}
|
|
1366
|
+
// @__NO_SIDE_EFFECTS__
|
|
1367
|
+
function Pi(e, t) {
|
|
1368
|
+
var r = (t & Jr) !== 0, n = (t & Xr) !== 0, i, f = !e.startsWith("<!>");
|
|
1369
|
+
return () => {
|
|
1370
|
+
i === void 0 && (i = Dr(f ? e : "<!>" + e), r || (i = /** @type {Node} */
|
|
1371
|
+
/* @__PURE__ */ ne(i)));
|
|
1372
|
+
var u = (
|
|
1373
|
+
/** @type {TemplateNode} */
|
|
1374
|
+
n || Ln ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
1375
|
+
);
|
|
1376
|
+
if (r) {
|
|
1377
|
+
var s = (
|
|
1378
|
+
/** @type {TemplateNode} */
|
|
1379
|
+
/* @__PURE__ */ ne(u)
|
|
1380
|
+
), l = (
|
|
1381
|
+
/** @type {TemplateNode} */
|
|
1382
|
+
u.lastChild
|
|
1383
|
+
);
|
|
1384
|
+
je(s, l);
|
|
1385
|
+
} else
|
|
1386
|
+
je(u, u);
|
|
1387
|
+
return u;
|
|
1388
|
+
};
|
|
1389
|
+
}
|
|
1390
|
+
// @__NO_SIDE_EFFECTS__
|
|
1391
|
+
function Qn(e, t, r = "svg") {
|
|
1392
|
+
var n = !e.startsWith("<!>"), i = `<${r}>${n ? e : "<!>" + e}</${r}>`, f;
|
|
1393
|
+
return () => {
|
|
1394
|
+
if (!f) {
|
|
1395
|
+
var u = (
|
|
1396
|
+
/** @type {DocumentFragment} */
|
|
1397
|
+
Dr(i)
|
|
1398
|
+
), s = (
|
|
1399
|
+
/** @type {Element} */
|
|
1400
|
+
/* @__PURE__ */ ne(u)
|
|
1401
|
+
);
|
|
1402
|
+
for (f = document.createDocumentFragment(); /* @__PURE__ */ ne(s); )
|
|
1403
|
+
f.appendChild(
|
|
1404
|
+
/** @type {Node} */
|
|
1405
|
+
/* @__PURE__ */ ne(s)
|
|
1406
|
+
);
|
|
1407
|
+
}
|
|
1408
|
+
var l = (
|
|
1409
|
+
/** @type {TemplateNode} */
|
|
1410
|
+
f.cloneNode(!0)
|
|
1411
|
+
);
|
|
1412
|
+
{
|
|
1413
|
+
var a = (
|
|
1414
|
+
/** @type {TemplateNode} */
|
|
1415
|
+
/* @__PURE__ */ ne(l)
|
|
1416
|
+
), c = (
|
|
1417
|
+
/** @type {TemplateNode} */
|
|
1418
|
+
l.lastChild
|
|
1419
|
+
);
|
|
1420
|
+
je(a, c);
|
|
1421
|
+
}
|
|
1422
|
+
return l;
|
|
1423
|
+
};
|
|
1424
|
+
}
|
|
1425
|
+
// @__NO_SIDE_EFFECTS__
|
|
1426
|
+
function ki(e, t) {
|
|
1427
|
+
return /* @__PURE__ */ Qn(e, t, "svg");
|
|
1428
|
+
}
|
|
1429
|
+
function Ri(e = "") {
|
|
1430
|
+
{
|
|
1431
|
+
var t = Be(e + "");
|
|
1432
|
+
return je(t, t), t;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
function Di() {
|
|
1436
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = Be();
|
|
1437
|
+
return e.append(t, r), je(t, r), e;
|
|
1438
|
+
}
|
|
1439
|
+
function Li(e, t) {
|
|
1440
|
+
e !== null && e.before(
|
|
1441
|
+
/** @type {Node} */
|
|
1442
|
+
t
|
|
1443
|
+
);
|
|
1444
|
+
}
|
|
1445
|
+
function ei(e) {
|
|
1446
|
+
return e.endsWith("capture") && e !== "gotpointercapture" && e !== "lostpointercapture";
|
|
1447
|
+
}
|
|
1448
|
+
const ti = [
|
|
1449
|
+
"beforeinput",
|
|
1450
|
+
"click",
|
|
1451
|
+
"change",
|
|
1452
|
+
"dblclick",
|
|
1453
|
+
"contextmenu",
|
|
1454
|
+
"focusin",
|
|
1455
|
+
"focusout",
|
|
1456
|
+
"input",
|
|
1457
|
+
"keydown",
|
|
1458
|
+
"keyup",
|
|
1459
|
+
"mousedown",
|
|
1460
|
+
"mousemove",
|
|
1461
|
+
"mouseout",
|
|
1462
|
+
"mouseover",
|
|
1463
|
+
"mouseup",
|
|
1464
|
+
"pointerdown",
|
|
1465
|
+
"pointermove",
|
|
1466
|
+
"pointerout",
|
|
1467
|
+
"pointerover",
|
|
1468
|
+
"pointerup",
|
|
1469
|
+
"touchend",
|
|
1470
|
+
"touchmove",
|
|
1471
|
+
"touchstart"
|
|
1472
|
+
];
|
|
1473
|
+
function ri(e) {
|
|
1474
|
+
return ti.includes(e);
|
|
1475
|
+
}
|
|
1476
|
+
const ni = {
|
|
1477
|
+
// no `class: 'className'` because we handle that separately
|
|
1478
|
+
formnovalidate: "formNoValidate",
|
|
1479
|
+
ismap: "isMap",
|
|
1480
|
+
nomodule: "noModule",
|
|
1481
|
+
playsinline: "playsInline",
|
|
1482
|
+
readonly: "readOnly",
|
|
1483
|
+
defaultvalue: "defaultValue",
|
|
1484
|
+
defaultchecked: "defaultChecked",
|
|
1485
|
+
srcobject: "srcObject",
|
|
1486
|
+
novalidate: "noValidate",
|
|
1487
|
+
allowfullscreen: "allowFullscreen",
|
|
1488
|
+
disablepictureinpicture: "disablePictureInPicture",
|
|
1489
|
+
disableremoteplayback: "disableRemotePlayback"
|
|
1490
|
+
};
|
|
1491
|
+
function ii(e) {
|
|
1492
|
+
return e = e.toLowerCase(), ni[e] ?? e;
|
|
1493
|
+
}
|
|
1494
|
+
function Mi(e, t) {
|
|
1495
|
+
var r = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1496
|
+
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = r + "");
|
|
1497
|
+
}
|
|
1498
|
+
function Fi(e, t, ...r) {
|
|
1499
|
+
var n = e, i = nr, f;
|
|
1500
|
+
$e(() => {
|
|
1501
|
+
i !== (i = t()) && (f && ($(f), f = null), f = _e(() => (
|
|
1502
|
+
/** @type {SnippetFn} */
|
|
1503
|
+
i(n, ...r)
|
|
1504
|
+
)));
|
|
1505
|
+
}, nt);
|
|
1506
|
+
}
|
|
1507
|
+
function xi(e, t, r = !1) {
|
|
1508
|
+
var n = e, i = null, f = null, u = C, s = r ? nt : 0, l = !1;
|
|
1509
|
+
const a = (d, o = !0) => {
|
|
1510
|
+
l = !0, h(o, d);
|
|
1511
|
+
};
|
|
1512
|
+
var c = null;
|
|
1513
|
+
function v() {
|
|
1514
|
+
c !== null && (c.lastChild.remove(), n.before(c), c = null);
|
|
1515
|
+
var d = u ? i : f, o = u ? f : i;
|
|
1516
|
+
d && kt(d), o && Tr(o, () => {
|
|
1517
|
+
u ? f = null : i = null;
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1520
|
+
const h = (d, o) => {
|
|
1521
|
+
if (u !== (u = d)) {
|
|
1522
|
+
var w = wr(), p = n;
|
|
1523
|
+
if (w && (c = document.createDocumentFragment(), c.append(p = Be())), u ? i ?? (i = o && _e(() => o(p))) : f ?? (f = o && _e(() => o(p))), w) {
|
|
1524
|
+
var b = (
|
|
1525
|
+
/** @type {Batch} */
|
|
1526
|
+
N
|
|
1527
|
+
), S = u ? i : f, _ = u ? f : i;
|
|
1528
|
+
S && b.skipped_effects.delete(S), _ && b.skipped_effects.add(_), b.add_callback(v);
|
|
1529
|
+
} else
|
|
1530
|
+
v();
|
|
1531
|
+
}
|
|
1532
|
+
};
|
|
1533
|
+
$e(() => {
|
|
1534
|
+
l = !1, t(a), l || h(null, null);
|
|
1535
|
+
}, s);
|
|
1536
|
+
}
|
|
1537
|
+
function ji(e, t) {
|
|
1538
|
+
return t;
|
|
1539
|
+
}
|
|
1540
|
+
function fi(e, t, r) {
|
|
1541
|
+
for (var n = e.items, i = [], f = t.length, u = 0; u < f; u++)
|
|
1542
|
+
Pt(t[u].e, i, !0);
|
|
1543
|
+
var s = f > 0 && i.length === 0 && r !== null;
|
|
1544
|
+
if (s) {
|
|
1545
|
+
var l = (
|
|
1546
|
+
/** @type {Element} */
|
|
1547
|
+
/** @type {Element} */
|
|
1548
|
+
r.parentNode
|
|
1549
|
+
);
|
|
1550
|
+
xn(l), l.append(
|
|
1551
|
+
/** @type {Element} */
|
|
1552
|
+
r
|
|
1553
|
+
), n.clear(), H(e, t[0].prev, t[f - 1].next);
|
|
1554
|
+
}
|
|
1555
|
+
Sr(i, () => {
|
|
1556
|
+
for (var a = 0; a < f; a++) {
|
|
1557
|
+
var c = t[a];
|
|
1558
|
+
s || (n.delete(c.k), H(e, c.prev, c.next)), $(c.e, !s);
|
|
1559
|
+
}
|
|
1560
|
+
});
|
|
1561
|
+
}
|
|
1562
|
+
function qi(e, t, r, n, i, f = null) {
|
|
1563
|
+
var u = e, s = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, l = (t & Qt) !== 0;
|
|
1564
|
+
if (l) {
|
|
1565
|
+
var a = (
|
|
1566
|
+
/** @type {Element} */
|
|
1567
|
+
e
|
|
1568
|
+
);
|
|
1569
|
+
u = a.appendChild(Be());
|
|
1570
|
+
}
|
|
1571
|
+
var c = null, v = !1, h = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ _r(() => {
|
|
1572
|
+
var b = r();
|
|
1573
|
+
return rt(b) ? b : b == null ? [] : tr(b);
|
|
1574
|
+
}), o, w;
|
|
1575
|
+
function p() {
|
|
1576
|
+
ui(
|
|
1577
|
+
w,
|
|
1578
|
+
o,
|
|
1579
|
+
s,
|
|
1580
|
+
h,
|
|
1581
|
+
u,
|
|
1582
|
+
i,
|
|
1583
|
+
t,
|
|
1584
|
+
n,
|
|
1585
|
+
r
|
|
1586
|
+
), f !== null && (o.length === 0 ? c ? kt(c) : c = _e(() => f(u)) : c !== null && Tr(c, () => {
|
|
1587
|
+
c = null;
|
|
1588
|
+
}));
|
|
1589
|
+
}
|
|
1590
|
+
$e(() => {
|
|
1591
|
+
w ?? (w = /** @type {Effect} */
|
|
1592
|
+
T), o = /** @type {V[]} */
|
|
1593
|
+
V(d);
|
|
1594
|
+
var b = o.length;
|
|
1595
|
+
if (!(v && b === 0)) {
|
|
1596
|
+
v = b === 0;
|
|
1597
|
+
var S, _, E, y;
|
|
1598
|
+
if (wr()) {
|
|
1599
|
+
var m = /* @__PURE__ */ new Set(), g = (
|
|
1600
|
+
/** @type {Batch} */
|
|
1601
|
+
N
|
|
1602
|
+
);
|
|
1603
|
+
for (_ = 0; _ < b; _ += 1) {
|
|
1604
|
+
E = o[_], y = n(E, _);
|
|
1605
|
+
var U = s.items.get(y) ?? h.get(y);
|
|
1606
|
+
U ? (t & (et | tt)) !== 0 && Lr(U, E, _, t) : (S = Mr(
|
|
1607
|
+
null,
|
|
1608
|
+
s,
|
|
1609
|
+
null,
|
|
1610
|
+
null,
|
|
1611
|
+
E,
|
|
1612
|
+
y,
|
|
1613
|
+
_,
|
|
1614
|
+
i,
|
|
1615
|
+
t,
|
|
1616
|
+
r,
|
|
1617
|
+
!0
|
|
1618
|
+
), h.set(y, S)), m.add(y);
|
|
1619
|
+
}
|
|
1620
|
+
for (const [we, ot] of s.items)
|
|
1621
|
+
m.has(we) || g.skipped_effects.add(ot.e);
|
|
1622
|
+
g.add_callback(p);
|
|
1623
|
+
} else
|
|
1624
|
+
p();
|
|
1625
|
+
V(d);
|
|
1626
|
+
}
|
|
1627
|
+
});
|
|
1628
|
+
}
|
|
1629
|
+
function ui(e, t, r, n, i, f, u, s, l) {
|
|
1630
|
+
var Dt, Lt, Mt, Ft;
|
|
1631
|
+
var a = (u & Yr) !== 0, c = (u & (et | tt)) !== 0, v = t.length, h = r.items, d = r.first, o = d, w, p = null, b, S = [], _ = [], E, y, m, g;
|
|
1632
|
+
if (a)
|
|
1633
|
+
for (g = 0; g < v; g += 1)
|
|
1634
|
+
E = t[g], y = s(E, g), m = h.get(y), m !== void 0 && ((Dt = m.a) == null || Dt.measure(), (b ?? (b = /* @__PURE__ */ new Set())).add(m));
|
|
1635
|
+
for (g = 0; g < v; g += 1) {
|
|
1636
|
+
if (E = t[g], y = s(E, g), m = h.get(y), m === void 0) {
|
|
1637
|
+
var U = n.get(y);
|
|
1638
|
+
if (U !== void 0) {
|
|
1639
|
+
n.delete(y), h.set(y, U);
|
|
1640
|
+
var we = p ? p.next : o;
|
|
1641
|
+
H(r, p, U), H(r, U, we), ht(U, we, i), p = U;
|
|
1642
|
+
} else {
|
|
1643
|
+
var ot = o ? (
|
|
1644
|
+
/** @type {TemplateNode} */
|
|
1645
|
+
o.e.nodes_start
|
|
1646
|
+
) : i;
|
|
1647
|
+
p = Mr(
|
|
1648
|
+
ot,
|
|
1649
|
+
r,
|
|
1650
|
+
p,
|
|
1651
|
+
p === null ? r.first : p.next,
|
|
1652
|
+
E,
|
|
1653
|
+
y,
|
|
1654
|
+
g,
|
|
1655
|
+
f,
|
|
1656
|
+
u,
|
|
1657
|
+
l
|
|
1658
|
+
);
|
|
1659
|
+
}
|
|
1660
|
+
h.set(y, p), S = [], _ = [], o = p.next;
|
|
1661
|
+
continue;
|
|
1662
|
+
}
|
|
1663
|
+
if (c && Lr(m, E, g, u), (m.e.f & B) !== 0 && (kt(m.e), a && ((Lt = m.a) == null || Lt.unfix(), (b ?? (b = /* @__PURE__ */ new Set())).delete(m))), m !== o) {
|
|
1664
|
+
if (w !== void 0 && w.has(m)) {
|
|
1665
|
+
if (S.length < _.length) {
|
|
1666
|
+
var He = _[0], Z;
|
|
1667
|
+
p = He.prev;
|
|
1668
|
+
var Rt = S[0], ct = S[S.length - 1];
|
|
1669
|
+
for (Z = 0; Z < S.length; Z += 1)
|
|
1670
|
+
ht(S[Z], He, i);
|
|
1671
|
+
for (Z = 0; Z < _.length; Z += 1)
|
|
1672
|
+
w.delete(_[Z]);
|
|
1673
|
+
H(r, Rt.prev, ct.next), H(r, p, Rt), H(r, ct, He), o = He, p = ct, g -= 1, S = [], _ = [];
|
|
1674
|
+
} else
|
|
1675
|
+
w.delete(m), ht(m, o, i), H(r, m.prev, m.next), H(r, m, p === null ? r.first : p.next), H(r, p, m), p = m;
|
|
1676
|
+
continue;
|
|
1677
|
+
}
|
|
1678
|
+
for (S = [], _ = []; o !== null && o.k !== y; )
|
|
1679
|
+
(o.e.f & B) === 0 && (w ?? (w = /* @__PURE__ */ new Set())).add(o), _.push(o), o = o.next;
|
|
1680
|
+
if (o === null)
|
|
1681
|
+
continue;
|
|
1682
|
+
m = o;
|
|
1683
|
+
}
|
|
1684
|
+
S.push(m), p = m, o = m.next;
|
|
1685
|
+
}
|
|
1686
|
+
if (o !== null || w !== void 0) {
|
|
1687
|
+
for (var Ie = w === void 0 ? [] : tr(w); o !== null; )
|
|
1688
|
+
(o.e.f & B) === 0 && Ie.push(o), o = o.next;
|
|
1689
|
+
var vt = Ie.length;
|
|
1690
|
+
if (vt > 0) {
|
|
1691
|
+
var Vr = (u & Qt) !== 0 && v === 0 ? i : null;
|
|
1692
|
+
if (a) {
|
|
1693
|
+
for (g = 0; g < vt; g += 1)
|
|
1694
|
+
(Mt = Ie[g].a) == null || Mt.measure();
|
|
1695
|
+
for (g = 0; g < vt; g += 1)
|
|
1696
|
+
(Ft = Ie[g].a) == null || Ft.fix();
|
|
1697
|
+
}
|
|
1698
|
+
fi(r, Ie, Vr);
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
a && ut(() => {
|
|
1702
|
+
var xt;
|
|
1703
|
+
if (b !== void 0)
|
|
1704
|
+
for (m of b)
|
|
1705
|
+
(xt = m.a) == null || xt.apply();
|
|
1706
|
+
}), e.first = r.first && r.first.e, e.last = p && p.e;
|
|
1707
|
+
for (var Br of n.values())
|
|
1708
|
+
$(Br.e);
|
|
1709
|
+
n.clear();
|
|
1710
|
+
}
|
|
1711
|
+
function Lr(e, t, r, n) {
|
|
1712
|
+
(n & et) !== 0 && Me(e.v, t), (n & tt) !== 0 ? Me(
|
|
1713
|
+
/** @type {Value<number>} */
|
|
1714
|
+
e.i,
|
|
1715
|
+
r
|
|
1716
|
+
) : e.i = r;
|
|
1717
|
+
}
|
|
1718
|
+
function Mr(e, t, r, n, i, f, u, s, l, a, c) {
|
|
1719
|
+
var v = (l & et) !== 0, h = (l & Kr) === 0, d = v ? h ? /* @__PURE__ */ Rn(i, !1, !1) : Le(i) : i, o = (l & tt) === 0 ? u : Le(u), w = {
|
|
1720
|
+
i: o,
|
|
1721
|
+
v: d,
|
|
1722
|
+
k: f,
|
|
1723
|
+
a: null,
|
|
1724
|
+
// @ts-expect-error
|
|
1725
|
+
e: null,
|
|
1726
|
+
prev: r,
|
|
1727
|
+
next: n
|
|
1728
|
+
};
|
|
1729
|
+
try {
|
|
1730
|
+
if (e === null) {
|
|
1731
|
+
var p = document.createDocumentFragment();
|
|
1732
|
+
p.append(e = Be());
|
|
1733
|
+
}
|
|
1734
|
+
return w.e = _e(() => s(
|
|
1735
|
+
/** @type {Node} */
|
|
1736
|
+
e,
|
|
1737
|
+
d,
|
|
1738
|
+
o,
|
|
1739
|
+
a
|
|
1740
|
+
), mn), w.e.prev = r && r.e, w.e.next = n && n.e, r === null ? c || (t.first = w) : (r.next = w, r.e.next = w.e), n !== null && (n.prev = w, n.e.prev = w.e), w;
|
|
1741
|
+
} finally {
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
function ht(e, t, r) {
|
|
1745
|
+
for (var n = e.next ? (
|
|
1746
|
+
/** @type {TemplateNode} */
|
|
1747
|
+
e.next.e.nodes_start
|
|
1748
|
+
) : r, i = t ? (
|
|
1749
|
+
/** @type {TemplateNode} */
|
|
1750
|
+
t.e.nodes_start
|
|
1751
|
+
) : r, f = (
|
|
1752
|
+
/** @type {TemplateNode} */
|
|
1753
|
+
e.e.nodes_start
|
|
1754
|
+
); f !== null && f !== n; ) {
|
|
1755
|
+
var u = (
|
|
1756
|
+
/** @type {TemplateNode} */
|
|
1757
|
+
/* @__PURE__ */ at(f)
|
|
1758
|
+
);
|
|
1759
|
+
i.before(f), f = u;
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
function H(e, t, r) {
|
|
1763
|
+
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);
|
|
1764
|
+
}
|
|
1765
|
+
function li(e, t) {
|
|
1766
|
+
var r = void 0, n;
|
|
1767
|
+
$e(() => {
|
|
1768
|
+
r !== (r = t()) && (n && ($(n), n = null), r && (n = _e(() => {
|
|
1769
|
+
Er(() => (
|
|
1770
|
+
/** @type {(node: Element) => void} */
|
|
1771
|
+
r(e)
|
|
1772
|
+
));
|
|
1773
|
+
})));
|
|
1774
|
+
});
|
|
1775
|
+
}
|
|
1776
|
+
function Fr(e) {
|
|
1777
|
+
var t, r, n = "";
|
|
1778
|
+
if (typeof e == "string" || typeof e == "number") n += e;
|
|
1779
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1780
|
+
var i = e.length;
|
|
1781
|
+
for (t = 0; t < i; t++) e[t] && (r = Fr(e[t])) && (n && (n += " "), n += r);
|
|
1782
|
+
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
1783
|
+
return n;
|
|
1784
|
+
}
|
|
1785
|
+
function ai() {
|
|
1786
|
+
for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = Fr(e)) && (n && (n += " "), n += t);
|
|
1787
|
+
return n;
|
|
1788
|
+
}
|
|
1789
|
+
function si(e) {
|
|
1790
|
+
return typeof e == "object" ? ai(e) : e ?? "";
|
|
1791
|
+
}
|
|
1792
|
+
const Wt = [...`
|
|
1793
|
+
\r\f \v\uFEFF`];
|
|
1794
|
+
function oi(e, t, r) {
|
|
1795
|
+
var n = e == null ? "" : "" + e;
|
|
1796
|
+
if (t && (n = n ? n + " " + t : t), r) {
|
|
1797
|
+
for (var i in r)
|
|
1798
|
+
if (r[i])
|
|
1799
|
+
n = n ? n + " " + i : i;
|
|
1800
|
+
else if (n.length)
|
|
1801
|
+
for (var f = i.length, u = 0; (u = n.indexOf(i, u)) >= 0; ) {
|
|
1802
|
+
var s = u + f;
|
|
1803
|
+
(u === 0 || Wt.includes(n[u - 1])) && (s === n.length || Wt.includes(n[s])) ? n = (u === 0 ? "" : n.substring(0, u)) + n.substring(s + 1) : u = s;
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
return n === "" ? null : n;
|
|
1807
|
+
}
|
|
1808
|
+
function Gt(e, t = !1) {
|
|
1809
|
+
var r = t ? " !important;" : ";", n = "";
|
|
1810
|
+
for (var i in e) {
|
|
1811
|
+
var f = e[i];
|
|
1812
|
+
f != null && f !== "" && (n += " " + i + ": " + f + r);
|
|
1813
|
+
}
|
|
1814
|
+
return n;
|
|
1815
|
+
}
|
|
1816
|
+
function pt(e) {
|
|
1817
|
+
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1818
|
+
}
|
|
1819
|
+
function ci(e, t) {
|
|
1820
|
+
if (t) {
|
|
1821
|
+
var r = "", n, i;
|
|
1822
|
+
if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
|
|
1823
|
+
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
1824
|
+
var f = !1, u = 0, s = !1, l = [];
|
|
1825
|
+
n && l.push(...Object.keys(n).map(pt)), i && l.push(...Object.keys(i).map(pt));
|
|
1826
|
+
var a = 0, c = -1;
|
|
1827
|
+
const w = e.length;
|
|
1828
|
+
for (var v = 0; v < w; v++) {
|
|
1829
|
+
var h = e[v];
|
|
1830
|
+
if (s ? h === "/" && e[v - 1] === "*" && (s = !1) : f ? f === h && (f = !1) : h === "/" && e[v + 1] === "*" ? s = !0 : h === '"' || h === "'" ? f = h : h === "(" ? u++ : h === ")" && u--, !s && f === !1 && u === 0) {
|
|
1831
|
+
if (h === ":" && c === -1)
|
|
1832
|
+
c = v;
|
|
1833
|
+
else if (h === ";" || v === w - 1) {
|
|
1834
|
+
if (c !== -1) {
|
|
1835
|
+
var d = pt(e.substring(a, c).trim());
|
|
1836
|
+
if (!l.includes(d)) {
|
|
1837
|
+
h !== ";" && v++;
|
|
1838
|
+
var o = e.substring(a, v).trim();
|
|
1839
|
+
r += " " + o + ";";
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
a = v + 1, c = -1;
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
return n && (r += Gt(n)), i && (r += Gt(i, !0)), r = r.trim(), r === "" ? null : r;
|
|
1848
|
+
}
|
|
1849
|
+
return e == null ? null : String(e);
|
|
1850
|
+
}
|
|
1851
|
+
function vi(e, t, r, n, i, f) {
|
|
1852
|
+
var u = e.__className;
|
|
1853
|
+
if (u !== r || u === void 0) {
|
|
1854
|
+
var s = oi(r, n, f);
|
|
1855
|
+
s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s), e.__className = r;
|
|
1856
|
+
} else if (f && i !== f)
|
|
1857
|
+
for (var l in f) {
|
|
1858
|
+
var a = !!f[l];
|
|
1859
|
+
(i == null || a !== !!i[l]) && e.classList.toggle(l, a);
|
|
1860
|
+
}
|
|
1861
|
+
return f;
|
|
1862
|
+
}
|
|
1863
|
+
function wt(e, t = {}, r, n) {
|
|
1864
|
+
for (var i in r) {
|
|
1865
|
+
var f = r[i];
|
|
1866
|
+
t[i] !== f && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, f, n));
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
function _i(e, t, r, n) {
|
|
1870
|
+
var i = e.__style;
|
|
1871
|
+
if (i !== t) {
|
|
1872
|
+
var f = ci(t, n);
|
|
1873
|
+
f == null ? e.removeAttribute("style") : e.style.cssText = f, e.__style = t;
|
|
1874
|
+
} else n && (Array.isArray(n) ? (wt(e, r == null ? void 0 : r[0], n[0]), wt(e, r == null ? void 0 : r[1], n[1], "important")) : wt(e, r, n));
|
|
1875
|
+
return n;
|
|
1876
|
+
}
|
|
1877
|
+
function yt(e, t, r = !1) {
|
|
1878
|
+
if (e.multiple) {
|
|
1879
|
+
if (t == null)
|
|
1880
|
+
return;
|
|
1881
|
+
if (!rt(t))
|
|
1882
|
+
return En();
|
|
1883
|
+
for (var n of e.options)
|
|
1884
|
+
n.selected = t.includes(zt(n));
|
|
1885
|
+
return;
|
|
1886
|
+
}
|
|
1887
|
+
for (n of e.options) {
|
|
1888
|
+
var i = zt(n);
|
|
1889
|
+
if (Dn(i, t)) {
|
|
1890
|
+
n.selected = !0;
|
|
1891
|
+
return;
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
(!r || t !== void 0) && (e.selectedIndex = -1);
|
|
1895
|
+
}
|
|
1896
|
+
function di(e) {
|
|
1897
|
+
var t = new MutationObserver(() => {
|
|
1898
|
+
yt(e, e.__value);
|
|
1899
|
+
});
|
|
1900
|
+
t.observe(e, {
|
|
1901
|
+
// Listen to option element changes
|
|
1902
|
+
childList: !0,
|
|
1903
|
+
subtree: !0,
|
|
1904
|
+
// because of <optgroup>
|
|
1905
|
+
// Listen to option element value attribute changes
|
|
1906
|
+
// (doesn't get notified of select value changes,
|
|
1907
|
+
// because that property is not reflected as an attribute)
|
|
1908
|
+
attributes: !0,
|
|
1909
|
+
attributeFilter: ["value"]
|
|
1910
|
+
}), gr(() => {
|
|
1911
|
+
t.disconnect();
|
|
1912
|
+
});
|
|
1913
|
+
}
|
|
1914
|
+
function zt(e) {
|
|
1915
|
+
return "__value" in e ? e.__value : e.value;
|
|
1916
|
+
}
|
|
1917
|
+
const ke = Symbol("class"), Re = Symbol("style"), xr = Symbol("is custom element"), jr = Symbol("is html");
|
|
1918
|
+
function hi(e, t) {
|
|
1919
|
+
t ? e.hasAttribute("selected") || e.setAttribute("selected", "") : e.removeAttribute("selected");
|
|
1920
|
+
}
|
|
1921
|
+
function Zt(e, t, r, n) {
|
|
1922
|
+
var i = qr(e);
|
|
1923
|
+
i[t] !== (i[t] = r) && (t === "loading" && (e[on] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Ur(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1924
|
+
}
|
|
1925
|
+
function pi(e, t, r, n, i = !1, f = !1) {
|
|
1926
|
+
var u = qr(e), s = u[xr], l = !u[jr], a = t || {}, c = e.tagName === "OPTION";
|
|
1927
|
+
for (var v in t)
|
|
1928
|
+
v in r || (r[v] = null);
|
|
1929
|
+
r.class ? r.class = si(r.class) : (n || r[ke]) && (r.class = null), r[Re] && (r.style ?? (r.style = null));
|
|
1930
|
+
var h = Ur(e);
|
|
1931
|
+
for (const _ in r) {
|
|
1932
|
+
let E = r[_];
|
|
1933
|
+
if (c && _ === "value" && E == null) {
|
|
1934
|
+
e.value = e.__value = "", a[_] = E;
|
|
1935
|
+
continue;
|
|
1936
|
+
}
|
|
1937
|
+
if (_ === "class") {
|
|
1938
|
+
var d = e.namespaceURI === "http://www.w3.org/1999/xhtml";
|
|
1939
|
+
vi(e, d, E, n, t == null ? void 0 : t[ke], r[ke]), a[_] = E, a[ke] = r[ke];
|
|
1940
|
+
continue;
|
|
1941
|
+
}
|
|
1942
|
+
if (_ === "style") {
|
|
1943
|
+
_i(e, E, t == null ? void 0 : t[Re], r[Re]), a[_] = E, a[Re] = r[Re];
|
|
1944
|
+
continue;
|
|
1945
|
+
}
|
|
1946
|
+
var o = a[_];
|
|
1947
|
+
if (!(E === o && !(E === void 0 && e.hasAttribute(_)))) {
|
|
1948
|
+
a[_] = E;
|
|
1949
|
+
var w = _[0] + _[1];
|
|
1950
|
+
if (w !== "$$")
|
|
1951
|
+
if (w === "on") {
|
|
1952
|
+
const y = {}, m = "$$" + _;
|
|
1953
|
+
let g = _.slice(2);
|
|
1954
|
+
var p = ri(g);
|
|
1955
|
+
if (ei(g) && (g = g.slice(0, -7), y.capture = !0), !p && o) {
|
|
1956
|
+
if (E != null) continue;
|
|
1957
|
+
e.removeEventListener(g, a[m], y), a[m] = null;
|
|
1958
|
+
}
|
|
1959
|
+
if (E != null)
|
|
1960
|
+
if (p)
|
|
1961
|
+
e[`__${g}`] = E, Jn([g]);
|
|
1962
|
+
else {
|
|
1963
|
+
let U = function(we) {
|
|
1964
|
+
a[_].call(this, we);
|
|
1965
|
+
};
|
|
1966
|
+
a[m] = Zn(g, e, U, y);
|
|
1967
|
+
}
|
|
1968
|
+
else p && (e[`__${g}`] = void 0);
|
|
1969
|
+
} else if (_ === "style")
|
|
1970
|
+
Zt(e, _, E);
|
|
1971
|
+
else if (_ === "autofocus")
|
|
1972
|
+
jn(
|
|
1973
|
+
/** @type {HTMLElement} */
|
|
1974
|
+
e,
|
|
1975
|
+
!!E
|
|
1976
|
+
);
|
|
1977
|
+
else if (!s && (_ === "__value" || _ === "value" && E != null))
|
|
1978
|
+
e.value = e.__value = E;
|
|
1979
|
+
else if (_ === "selected" && c)
|
|
1980
|
+
hi(
|
|
1981
|
+
/** @type {HTMLOptionElement} */
|
|
1982
|
+
e,
|
|
1983
|
+
E
|
|
1984
|
+
);
|
|
1985
|
+
else {
|
|
1986
|
+
var b = _;
|
|
1987
|
+
l || (b = ii(b));
|
|
1988
|
+
var S = b === "defaultValue" || b === "defaultChecked";
|
|
1989
|
+
if (E == null && !s && !S)
|
|
1990
|
+
if (u[_] = null, b === "value" || b === "checked") {
|
|
1991
|
+
let y = (
|
|
1992
|
+
/** @type {HTMLInputElement} */
|
|
1993
|
+
e
|
|
1994
|
+
);
|
|
1995
|
+
const m = t === void 0;
|
|
1996
|
+
if (b === "value") {
|
|
1997
|
+
let g = y.defaultValue;
|
|
1998
|
+
y.removeAttribute(b), y.defaultValue = g, y.value = y.__value = m ? g : null;
|
|
1999
|
+
} else {
|
|
2000
|
+
let g = y.defaultChecked;
|
|
2001
|
+
y.removeAttribute(b), y.defaultChecked = g, y.checked = m ? g : !1;
|
|
2002
|
+
}
|
|
2003
|
+
} else
|
|
2004
|
+
e.removeAttribute(_);
|
|
2005
|
+
else S || h.includes(b) && (s || typeof E != "string") ? (e[b] = E, b in u && (u[b] = C)) : typeof E != "function" && Zt(e, b, E);
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
return a;
|
|
2010
|
+
}
|
|
2011
|
+
function Ui(e, t, r = [], n = [], i, f = !1, u = !1) {
|
|
2012
|
+
cr(r, n, (s) => {
|
|
2013
|
+
var l = void 0, a = {}, c = e.nodeName === "SELECT", v = !1;
|
|
2014
|
+
if ($e(() => {
|
|
2015
|
+
var d = t(...s.map(V)), o = pi(
|
|
2016
|
+
e,
|
|
2017
|
+
l,
|
|
2018
|
+
d,
|
|
2019
|
+
i,
|
|
2020
|
+
f,
|
|
2021
|
+
u
|
|
2022
|
+
);
|
|
2023
|
+
v && c && "value" in d && yt(
|
|
2024
|
+
/** @type {HTMLSelectElement} */
|
|
2025
|
+
e,
|
|
2026
|
+
d.value
|
|
2027
|
+
);
|
|
2028
|
+
for (let p of Object.getOwnPropertySymbols(a))
|
|
2029
|
+
d[p] || $(a[p]);
|
|
2030
|
+
for (let p of Object.getOwnPropertySymbols(d)) {
|
|
2031
|
+
var w = d[p];
|
|
2032
|
+
p.description === en && (!l || w !== l[p]) && (a[p] && $(a[p]), a[p] = _e(() => li(e, () => w))), o[p] = w;
|
|
2033
|
+
}
|
|
2034
|
+
l = o;
|
|
2035
|
+
}), c) {
|
|
2036
|
+
var h = (
|
|
2037
|
+
/** @type {HTMLSelectElement} */
|
|
2038
|
+
e
|
|
2039
|
+
);
|
|
2040
|
+
Er(() => {
|
|
2041
|
+
yt(
|
|
2042
|
+
h,
|
|
2043
|
+
/** @type {Record<string | symbol, any>} */
|
|
2044
|
+
l.value,
|
|
2045
|
+
!0
|
|
2046
|
+
), di(h);
|
|
2047
|
+
});
|
|
2048
|
+
}
|
|
2049
|
+
v = !0;
|
|
2050
|
+
});
|
|
2051
|
+
}
|
|
2052
|
+
function qr(e) {
|
|
2053
|
+
return (
|
|
2054
|
+
/** @type {Record<string | symbol, unknown>} **/
|
|
2055
|
+
// @ts-expect-error
|
|
2056
|
+
e.__attributes ?? (e.__attributes = {
|
|
2057
|
+
[xr]: e.nodeName.includes("-"),
|
|
2058
|
+
[jr]: e.namespaceURI === Qr
|
|
2059
|
+
})
|
|
2060
|
+
);
|
|
2061
|
+
}
|
|
2062
|
+
var Jt = /* @__PURE__ */ new Map();
|
|
2063
|
+
function Ur(e) {
|
|
2064
|
+
var t = e.getAttribute("is") || e.nodeName, r = Jt.get(t);
|
|
2065
|
+
if (r) return r;
|
|
2066
|
+
Jt.set(t, r = []);
|
|
2067
|
+
for (var n, i = e, f = Element.prototype; f !== i; ) {
|
|
2068
|
+
n = rn(i);
|
|
2069
|
+
for (var u in n)
|
|
2070
|
+
n[u].set && r.push(u);
|
|
2071
|
+
i = rr(i);
|
|
2072
|
+
}
|
|
2073
|
+
return r;
|
|
2074
|
+
}
|
|
2075
|
+
let Ke = !1;
|
|
2076
|
+
function wi(e) {
|
|
2077
|
+
var t = Ke;
|
|
2078
|
+
try {
|
|
2079
|
+
return Ke = !1, [e(), Ke];
|
|
2080
|
+
} finally {
|
|
2081
|
+
Ke = t;
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
const gi = {
|
|
2085
|
+
get(e, t) {
|
|
2086
|
+
if (!e.exclude.includes(t))
|
|
2087
|
+
return e.props[t];
|
|
2088
|
+
},
|
|
2089
|
+
set(e, t) {
|
|
2090
|
+
return !1;
|
|
2091
|
+
},
|
|
2092
|
+
getOwnPropertyDescriptor(e, t) {
|
|
2093
|
+
if (!e.exclude.includes(t) && t in e.props)
|
|
2094
|
+
return {
|
|
2095
|
+
enumerable: !0,
|
|
2096
|
+
configurable: !0,
|
|
2097
|
+
value: e.props[t]
|
|
2098
|
+
};
|
|
2099
|
+
},
|
|
2100
|
+
has(e, t) {
|
|
2101
|
+
return e.exclude.includes(t) ? !1 : t in e.props;
|
|
2102
|
+
},
|
|
2103
|
+
ownKeys(e) {
|
|
2104
|
+
return Reflect.ownKeys(e.props).filter((t) => !e.exclude.includes(t));
|
|
2105
|
+
}
|
|
2106
|
+
};
|
|
2107
|
+
// @__NO_SIDE_EFFECTS__
|
|
2108
|
+
function Vi(e, t, r) {
|
|
2109
|
+
return new Proxy(
|
|
2110
|
+
{ props: e, exclude: t },
|
|
2111
|
+
gi
|
|
2112
|
+
);
|
|
2113
|
+
}
|
|
2114
|
+
function Bi(e, t, r, n) {
|
|
2115
|
+
var S;
|
|
2116
|
+
var i = (r & zr) !== 0, f = (r & Zr) !== 0, u = (
|
|
2117
|
+
/** @type {V} */
|
|
2118
|
+
n
|
|
2119
|
+
), s = !0, l = () => (s && (s = !1, u = f ? Kn(
|
|
2120
|
+
/** @type {() => V} */
|
|
2121
|
+
n
|
|
2122
|
+
) : (
|
|
2123
|
+
/** @type {V} */
|
|
2124
|
+
n
|
|
2125
|
+
)), u), a;
|
|
2126
|
+
if (i) {
|
|
2127
|
+
var c = me in e || sn in e;
|
|
2128
|
+
a = ((S = We(e, t)) == null ? void 0 : S.set) ?? (c && t in e ? (_) => e[t] = _ : void 0);
|
|
2129
|
+
}
|
|
2130
|
+
var v, h = !1;
|
|
2131
|
+
i ? [v, h] = wi(() => (
|
|
2132
|
+
/** @type {V} */
|
|
2133
|
+
e[t]
|
|
2134
|
+
)) : v = /** @type {V} */
|
|
2135
|
+
e[t], v === void 0 && n !== void 0 && (v = l(), a && (pn(), a(v)));
|
|
2136
|
+
var d;
|
|
2137
|
+
if (d = () => {
|
|
2138
|
+
var _ = (
|
|
2139
|
+
/** @type {V} */
|
|
2140
|
+
e[t]
|
|
2141
|
+
);
|
|
2142
|
+
return _ === void 0 ? l() : (s = !0, _);
|
|
2143
|
+
}, (r & Gr) === 0)
|
|
2144
|
+
return d;
|
|
2145
|
+
if (a) {
|
|
2146
|
+
var o = e.$$legacy;
|
|
2147
|
+
return (
|
|
2148
|
+
/** @type {() => V} */
|
|
2149
|
+
(function(_, E) {
|
|
2150
|
+
return arguments.length > 0 ? ((!E || o || h) && a(E ? d() : _), _) : d();
|
|
2151
|
+
})
|
|
2152
|
+
);
|
|
2153
|
+
}
|
|
2154
|
+
var w = !1, p = ((r & Wr) !== 0 ? lt : _r)(() => (w = !1, d()));
|
|
2155
|
+
i && V(p);
|
|
2156
|
+
var b = (
|
|
2157
|
+
/** @type {Effect} */
|
|
2158
|
+
T
|
|
2159
|
+
);
|
|
2160
|
+
return (
|
|
2161
|
+
/** @type {() => V} */
|
|
2162
|
+
(function(_, E) {
|
|
2163
|
+
if (arguments.length > 0) {
|
|
2164
|
+
const y = E ? V(p) : i ? be(_) : _;
|
|
2165
|
+
return ee(p, y), w = !0, u !== void 0 && (u = y), _;
|
|
2166
|
+
}
|
|
2167
|
+
return pe && w || (b.f & he) !== 0 ? p.v : V(p);
|
|
2168
|
+
})
|
|
2169
|
+
);
|
|
2170
|
+
}
|
|
2171
|
+
export {
|
|
2172
|
+
si as A,
|
|
2173
|
+
Zt as B,
|
|
2174
|
+
Mi as C,
|
|
2175
|
+
Jn as D,
|
|
2176
|
+
ki as E,
|
|
2177
|
+
qi as F,
|
|
2178
|
+
ji as G,
|
|
2179
|
+
Di as H,
|
|
2180
|
+
Si as I,
|
|
2181
|
+
_i as J,
|
|
2182
|
+
Ni as K,
|
|
2183
|
+
ut as L,
|
|
2184
|
+
Kn as M,
|
|
2185
|
+
Ri as N,
|
|
2186
|
+
me as S,
|
|
2187
|
+
Ui as a,
|
|
2188
|
+
Li as b,
|
|
2189
|
+
Ai as c,
|
|
2190
|
+
mi as d,
|
|
2191
|
+
Q as e,
|
|
2192
|
+
Pi as f,
|
|
2193
|
+
V as g,
|
|
2194
|
+
Ti as h,
|
|
2195
|
+
xi as i,
|
|
2196
|
+
T as j,
|
|
2197
|
+
$n as k,
|
|
2198
|
+
Dr as l,
|
|
2199
|
+
je as m,
|
|
2200
|
+
ne as n,
|
|
2201
|
+
Er as o,
|
|
2202
|
+
Bi as p,
|
|
2203
|
+
Fi as q,
|
|
2204
|
+
Vi as r,
|
|
2205
|
+
ee as s,
|
|
2206
|
+
Ii as t,
|
|
2207
|
+
Ci as u,
|
|
2208
|
+
yi as v,
|
|
2209
|
+
nr as w,
|
|
2210
|
+
be as x,
|
|
2211
|
+
Oi as y,
|
|
2212
|
+
vi as z
|
|
2213
|
+
};
|