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