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