@1024pix/epreuves-components 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4049 +0,0 @@
1
- /**
2
- * @vue/shared v3.5.14
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/
6
- /*! #__NO_SIDE_EFFECTS__ */
7
- // @__NO_SIDE_EFFECTS__
8
- function Ui(t) {
9
- const e = /* @__PURE__ */ Object.create(null);
10
- for (const s of t.split(",")) e[s] = 1;
11
- return (s) => s in e;
12
- }
13
- const Vi = {}, Bi = () => {
14
- }, Wi = Object.assign, qi = (t, e) => {
15
- const s = t.indexOf(e);
16
- s > -1 && t.splice(s, 1);
17
- }, Gi = Object.prototype.hasOwnProperty, He = (t, e) => Gi.call(t, e), Nt = Array.isArray, fe = (t) => ze(t) === "[object Map]", Ji = (t) => ze(t) === "[object Set]", _s = (t) => typeof t == "function", zi = (t) => typeof t == "string", ve = (t) => typeof t == "symbol", Se = (t) => t !== null && typeof t == "object", Yi = Object.prototype.toString, ze = (t) => Yi.call(t), Zi = (t) => ze(t).slice(8, -1), Xi = (t) => ze(t) === "[object Object]", As = (t) => zi(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, Dt = (t, e) => !Object.is(t, e), Qi = (t, e, s, n = !1) => {
18
- Object.defineProperty(t, e, {
19
- configurable: !0,
20
- enumerable: !1,
21
- writable: n,
22
- value: s
23
- });
24
- };
25
- /**
26
- * @vue/reactivity v3.5.14
27
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
28
- * @license MIT
29
- **/
30
- let st;
31
- class ki {
32
- constructor(e = !1) {
33
- this.detached = e, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.parent = st, !e && st && (this.index = (st.scopes || (st.scopes = [])).push(
34
- this
35
- ) - 1);
36
- }
37
- get active() {
38
- return this._active;
39
- }
40
- pause() {
41
- if (this._active) {
42
- this._isPaused = !0;
43
- let e, s;
44
- if (this.scopes)
45
- for (e = 0, s = this.scopes.length; e < s; e++)
46
- this.scopes[e].pause();
47
- for (e = 0, s = this.effects.length; e < s; e++)
48
- this.effects[e].pause();
49
- }
50
- }
51
- /**
52
- * Resumes the effect scope, including all child scopes and effects.
53
- */
54
- resume() {
55
- if (this._active && this._isPaused) {
56
- this._isPaused = !1;
57
- let e, s;
58
- if (this.scopes)
59
- for (e = 0, s = this.scopes.length; e < s; e++)
60
- this.scopes[e].resume();
61
- for (e = 0, s = this.effects.length; e < s; e++)
62
- this.effects[e].resume();
63
- }
64
- }
65
- run(e) {
66
- if (this._active) {
67
- const s = st;
68
- try {
69
- return st = this, e();
70
- } finally {
71
- st = s;
72
- }
73
- }
74
- }
75
- /**
76
- * This should only be called on non-detached scopes
77
- * @internal
78
- */
79
- on() {
80
- ++this._on === 1 && (this.prevScope = st, st = this);
81
- }
82
- /**
83
- * This should only be called on non-detached scopes
84
- * @internal
85
- */
86
- off() {
87
- this._on > 0 && --this._on === 0 && (st = this.prevScope, this.prevScope = void 0);
88
- }
89
- stop(e) {
90
- if (this._active) {
91
- this._active = !1;
92
- let s, n;
93
- for (s = 0, n = this.effects.length; s < n; s++)
94
- this.effects[s].stop();
95
- for (this.effects.length = 0, s = 0, n = this.cleanups.length; s < n; s++)
96
- this.cleanups[s]();
97
- if (this.cleanups.length = 0, this.scopes) {
98
- for (s = 0, n = this.scopes.length; s < n; s++)
99
- this.scopes[s].stop(!0);
100
- this.scopes.length = 0;
101
- }
102
- if (!this.detached && this.parent && !e) {
103
- const i = this.parent.scopes.pop();
104
- i && i !== this && (this.parent.scopes[this.index] = i, i.index = this.index);
105
- }
106
- this.parent = void 0;
107
- }
108
- }
109
- }
110
- function tr() {
111
- return st;
112
- }
113
- let L;
114
- const is = /* @__PURE__ */ new WeakSet();
115
- class Mn {
116
- constructor(e) {
117
- this.fn = e, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, st && st.active && st.effects.push(this);
118
- }
119
- pause() {
120
- this.flags |= 64;
121
- }
122
- resume() {
123
- this.flags & 64 && (this.flags &= -65, is.has(this) && (is.delete(this), this.trigger()));
124
- }
125
- /**
126
- * @internal
127
- */
128
- notify() {
129
- this.flags & 2 && !(this.flags & 32) || this.flags & 8 || $n(this);
130
- }
131
- run() {
132
- if (!(this.flags & 1))
133
- return this.fn();
134
- this.flags |= 2, tn(this), jn(this);
135
- const e = L, s = ut;
136
- L = this, ut = !0;
137
- try {
138
- return this.fn();
139
- } finally {
140
- Fn(this), L = e, ut = s, this.flags &= -3;
141
- }
142
- }
143
- stop() {
144
- if (this.flags & 1) {
145
- for (let e = this.deps; e; e = e.nextDep)
146
- Rs(e);
147
- this.deps = this.depsTail = void 0, tn(this), this.onStop && this.onStop(), this.flags &= -2;
148
- }
149
- }
150
- trigger() {
151
- this.flags & 64 ? is.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
152
- }
153
- /**
154
- * @internal
155
- */
156
- runIfDirty() {
157
- ms(this) && this.run();
158
- }
159
- get dirty() {
160
- return ms(this);
161
- }
162
- }
163
- let In = 0, ue, ae;
164
- function $n(t, e = !1) {
165
- if (t.flags |= 8, e) {
166
- t.next = ae, ae = t;
167
- return;
168
- }
169
- t.next = ue, ue = t;
170
- }
171
- function Es() {
172
- In++;
173
- }
174
- function Ps() {
175
- if (--In > 0)
176
- return;
177
- if (ae) {
178
- let e = ae;
179
- for (ae = void 0; e; ) {
180
- const s = e.next;
181
- e.next = void 0, e.flags &= -9, e = s;
182
- }
183
- }
184
- let t;
185
- for (; ue; ) {
186
- let e = ue;
187
- for (ue = void 0; e; ) {
188
- const s = e.next;
189
- if (e.next = void 0, e.flags &= -9, e.flags & 1)
190
- try {
191
- e.trigger();
192
- } catch (n) {
193
- t || (t = n);
194
- }
195
- e = s;
196
- }
197
- }
198
- if (t) throw t;
199
- }
200
- function jn(t) {
201
- for (let e = t.deps; e; e = e.nextDep)
202
- e.version = -1, e.prevActiveLink = e.dep.activeLink, e.dep.activeLink = e;
203
- }
204
- function Fn(t) {
205
- let e, s = t.depsTail, n = s;
206
- for (; n; ) {
207
- const i = n.prevDep;
208
- n.version === -1 ? (n === s && (s = i), Rs(n), er(n)) : e = n, n.dep.activeLink = n.prevActiveLink, n.prevActiveLink = void 0, n = i;
209
- }
210
- t.deps = e, t.depsTail = s;
211
- }
212
- function ms(t) {
213
- for (let e = t.deps; e; e = e.nextDep)
214
- if (e.dep.version !== e.version || e.dep.computed && (Nn(e.dep.computed) || e.dep.version !== e.version))
215
- return !0;
216
- return !!t._dirty;
217
- }
218
- function Nn(t) {
219
- if (t.flags & 4 && !(t.flags & 16) || (t.flags &= -17, t.globalVersion === _e) || (t.globalVersion = _e, !t.isSSR && t.flags & 128 && (!t.deps && !t._dirty || !ms(t))))
220
- return;
221
- t.flags |= 2;
222
- const e = t.dep, s = L, n = ut;
223
- L = t, ut = !0;
224
- try {
225
- jn(t);
226
- const i = t.fn(t._value);
227
- (e.version === 0 || Dt(i, t._value)) && (t.flags |= 128, t._value = i, e.version++);
228
- } catch (i) {
229
- throw e.version++, i;
230
- } finally {
231
- L = s, ut = n, Fn(t), t.flags &= -3;
232
- }
233
- }
234
- function Rs(t, e = !1) {
235
- const { dep: s, prevSub: n, nextSub: i } = t;
236
- if (n && (n.nextSub = i, t.prevSub = void 0), i && (i.prevSub = n, t.nextSub = void 0), s.subs === t && (s.subs = n, !n && s.computed)) {
237
- s.computed.flags &= -5;
238
- for (let r = s.computed.deps; r; r = r.nextDep)
239
- Rs(r, !0);
240
- }
241
- !e && !--s.sc && s.map && s.map.delete(s.key);
242
- }
243
- function er(t) {
244
- const { prevDep: e, nextDep: s } = t;
245
- e && (e.nextDep = s, t.prevDep = void 0), s && (s.prevDep = e, t.nextDep = void 0);
246
- }
247
- let ut = !0;
248
- const Dn = [];
249
- function At() {
250
- Dn.push(ut), ut = !1;
251
- }
252
- function Et() {
253
- const t = Dn.pop();
254
- ut = t === void 0 ? !0 : t;
255
- }
256
- function tn(t) {
257
- const { cleanup: e } = t;
258
- if (t.cleanup = void 0, e) {
259
- const s = L;
260
- L = void 0;
261
- try {
262
- e();
263
- } finally {
264
- L = s;
265
- }
266
- }
267
- }
268
- let _e = 0;
269
- class sr {
270
- constructor(e, s) {
271
- this.sub = e, this.dep = s, this.version = s.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
272
- }
273
- }
274
- class Ms {
275
- constructor(e) {
276
- this.computed = e, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0;
277
- }
278
- track(e) {
279
- if (!L || !ut || L === this.computed)
280
- return;
281
- let s = this.activeLink;
282
- if (s === void 0 || s.sub !== L)
283
- s = this.activeLink = new sr(L, this), L.deps ? (s.prevDep = L.depsTail, L.depsTail.nextDep = s, L.depsTail = s) : L.deps = L.depsTail = s, Hn(s);
284
- else if (s.version === -1 && (s.version = this.version, s.nextDep)) {
285
- const n = s.nextDep;
286
- n.prevDep = s.prevDep, s.prevDep && (s.prevDep.nextDep = n), s.prevDep = L.depsTail, s.nextDep = void 0, L.depsTail.nextDep = s, L.depsTail = s, L.deps === s && (L.deps = n);
287
- }
288
- return s;
289
- }
290
- trigger(e) {
291
- this.version++, _e++, this.notify(e);
292
- }
293
- notify(e) {
294
- Es();
295
- try {
296
- for (let s = this.subs; s; s = s.prevSub)
297
- s.sub.notify() && s.sub.dep.notify();
298
- } finally {
299
- Ps();
300
- }
301
- }
302
- }
303
- function Hn(t) {
304
- if (t.dep.sc++, t.sub.flags & 4) {
305
- const e = t.dep.computed;
306
- if (e && !t.dep.subs) {
307
- e.flags |= 20;
308
- for (let n = e.deps; n; n = n.nextDep)
309
- Hn(n);
310
- }
311
- const s = t.dep.subs;
312
- s !== t && (t.prevSub = s, s && (s.nextSub = t)), t.dep.subs = t;
313
- }
314
- }
315
- const bs = /* @__PURE__ */ new WeakMap(), Gt = Symbol(
316
- ""
317
- ), ys = Symbol(
318
- ""
319
- ), me = Symbol(
320
- ""
321
- );
322
- function Y(t, e, s) {
323
- if (ut && L) {
324
- let n = bs.get(t);
325
- n || bs.set(t, n = /* @__PURE__ */ new Map());
326
- let i = n.get(s);
327
- i || (n.set(s, i = new Ms()), i.map = n, i.key = s), i.track();
328
- }
329
- }
330
- function Ot(t, e, s, n, i, r) {
331
- const o = bs.get(t);
332
- if (!o) {
333
- _e++;
334
- return;
335
- }
336
- const l = (f) => {
337
- f && f.trigger();
338
- };
339
- if (Es(), e === "clear")
340
- o.forEach(l);
341
- else {
342
- const f = Nt(t), d = f && As(s);
343
- if (f && s === "length") {
344
- const a = Number(n);
345
- o.forEach((p, w) => {
346
- (w === "length" || w === me || !ve(w) && w >= a) && l(p);
347
- });
348
- } else
349
- switch ((s !== void 0 || o.has(void 0)) && l(o.get(s)), d && l(o.get(me)), e) {
350
- case "add":
351
- f ? d && l(o.get("length")) : (l(o.get(Gt)), fe(t) && l(o.get(ys)));
352
- break;
353
- case "delete":
354
- f || (l(o.get(Gt)), fe(t) && l(o.get(ys)));
355
- break;
356
- case "set":
357
- fe(t) && l(o.get(Gt));
358
- break;
359
- }
360
- }
361
- Ps();
362
- }
363
- function zt(t) {
364
- const e = j(t);
365
- return e === t ? e : (Y(e, "iterate", me), ft(t) ? e : e.map(J));
366
- }
367
- function Ye(t) {
368
- return Y(t = j(t), "iterate", me), t;
369
- }
370
- const nr = {
371
- __proto__: null,
372
- [Symbol.iterator]() {
373
- return rs(this, Symbol.iterator, J);
374
- },
375
- concat(...t) {
376
- return zt(this).concat(
377
- ...t.map((e) => Nt(e) ? zt(e) : e)
378
- );
379
- },
380
- entries() {
381
- return rs(this, "entries", (t) => (t[1] = J(t[1]), t));
382
- },
383
- every(t, e) {
384
- return St(this, "every", t, e, void 0, arguments);
385
- },
386
- filter(t, e) {
387
- return St(this, "filter", t, e, (s) => s.map(J), arguments);
388
- },
389
- find(t, e) {
390
- return St(this, "find", t, e, J, arguments);
391
- },
392
- findIndex(t, e) {
393
- return St(this, "findIndex", t, e, void 0, arguments);
394
- },
395
- findLast(t, e) {
396
- return St(this, "findLast", t, e, J, arguments);
397
- },
398
- findLastIndex(t, e) {
399
- return St(this, "findLastIndex", t, e, void 0, arguments);
400
- },
401
- // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
402
- forEach(t, e) {
403
- return St(this, "forEach", t, e, void 0, arguments);
404
- },
405
- includes(...t) {
406
- return os(this, "includes", t);
407
- },
408
- indexOf(...t) {
409
- return os(this, "indexOf", t);
410
- },
411
- join(t) {
412
- return zt(this).join(t);
413
- },
414
- // keys() iterator only reads `length`, no optimisation required
415
- lastIndexOf(...t) {
416
- return os(this, "lastIndexOf", t);
417
- },
418
- map(t, e) {
419
- return St(this, "map", t, e, void 0, arguments);
420
- },
421
- pop() {
422
- return oe(this, "pop");
423
- },
424
- push(...t) {
425
- return oe(this, "push", t);
426
- },
427
- reduce(t, ...e) {
428
- return en(this, "reduce", t, e);
429
- },
430
- reduceRight(t, ...e) {
431
- return en(this, "reduceRight", t, e);
432
- },
433
- shift() {
434
- return oe(this, "shift");
435
- },
436
- // slice could use ARRAY_ITERATE but also seems to beg for range tracking
437
- some(t, e) {
438
- return St(this, "some", t, e, void 0, arguments);
439
- },
440
- splice(...t) {
441
- return oe(this, "splice", t);
442
- },
443
- toReversed() {
444
- return zt(this).toReversed();
445
- },
446
- toSorted(t) {
447
- return zt(this).toSorted(t);
448
- },
449
- toSpliced(...t) {
450
- return zt(this).toSpliced(...t);
451
- },
452
- unshift(...t) {
453
- return oe(this, "unshift", t);
454
- },
455
- values() {
456
- return rs(this, "values", J);
457
- }
458
- };
459
- function rs(t, e, s) {
460
- const n = Ye(t), i = n[e]();
461
- return n !== t && !ft(t) && (i._next = i.next, i.next = () => {
462
- const r = i._next();
463
- return r.value && (r.value = s(r.value)), r;
464
- }), i;
465
- }
466
- const ir = Array.prototype;
467
- function St(t, e, s, n, i, r) {
468
- const o = Ye(t), l = o !== t && !ft(t), f = o[e];
469
- if (f !== ir[e]) {
470
- const p = f.apply(t, r);
471
- return l ? J(p) : p;
472
- }
473
- let d = s;
474
- o !== t && (l ? d = function(p, w) {
475
- return s.call(this, J(p), w, t);
476
- } : s.length > 2 && (d = function(p, w) {
477
- return s.call(this, p, w, t);
478
- }));
479
- const a = f.call(o, d, n);
480
- return l && i ? i(a) : a;
481
- }
482
- function en(t, e, s, n) {
483
- const i = Ye(t);
484
- let r = s;
485
- return i !== t && (ft(t) ? s.length > 3 && (r = function(o, l, f) {
486
- return s.call(this, o, l, f, t);
487
- }) : r = function(o, l, f) {
488
- return s.call(this, o, J(l), f, t);
489
- }), i[e](r, ...n);
490
- }
491
- function os(t, e, s) {
492
- const n = j(t);
493
- Y(n, "iterate", me);
494
- const i = n[e](...s);
495
- return (i === -1 || i === !1) && Fs(s[0]) ? (s[0] = j(s[0]), n[e](...s)) : i;
496
- }
497
- function oe(t, e, s = []) {
498
- At(), Es();
499
- const n = j(t)[e].apply(t, s);
500
- return Ps(), Et(), n;
501
- }
502
- const rr = /* @__PURE__ */ Ui("__proto__,__v_isRef,__isVue"), Ln = new Set(
503
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(ve)
504
- );
505
- function or(t) {
506
- ve(t) || (t = String(t));
507
- const e = j(this);
508
- return Y(e, "has", t), e.hasOwnProperty(t);
509
- }
510
- class Kn {
511
- constructor(e = !1, s = !1) {
512
- this._isReadonly = e, this._isShallow = s;
513
- }
514
- get(e, s, n) {
515
- if (s === "__v_skip") return e.__v_skip;
516
- const i = this._isReadonly, r = this._isShallow;
517
- if (s === "__v_isReactive")
518
- return !i;
519
- if (s === "__v_isReadonly")
520
- return i;
521
- if (s === "__v_isShallow")
522
- return r;
523
- if (s === "__v_raw")
524
- return n === (i ? r ? _r : Wn : r ? Bn : Vn).get(e) || // receiver is not the reactive proxy, but has the same prototype
525
- // this means the receiver is a user proxy of the reactive proxy
526
- Object.getPrototypeOf(e) === Object.getPrototypeOf(n) ? e : void 0;
527
- const o = Nt(e);
528
- if (!i) {
529
- let f;
530
- if (o && (f = nr[s]))
531
- return f;
532
- if (s === "hasOwnProperty")
533
- return or;
534
- }
535
- const l = Reflect.get(
536
- e,
537
- s,
538
- // if this is a proxy wrapping a ref, return methods using the raw ref
539
- // as receiver so that we don't have to call `toRaw` on the ref in all
540
- // its class methods
541
- Z(e) ? e : n
542
- );
543
- return (ve(s) ? Ln.has(s) : rr(s)) || (i || Y(e, "get", s), r) ? l : Z(l) ? o && As(s) ? l : l.value : Se(l) ? i ? qn(l) : $s(l) : l;
544
- }
545
- }
546
- class Un extends Kn {
547
- constructor(e = !1) {
548
- super(!1, e);
549
- }
550
- set(e, s, n, i) {
551
- let r = e[s];
552
- if (!this._isShallow) {
553
- const f = Ht(r);
554
- if (!ft(n) && !Ht(n) && (r = j(r), n = j(n)), !Nt(e) && Z(r) && !Z(n))
555
- return f ? !1 : (r.value = n, !0);
556
- }
557
- const o = Nt(e) && As(s) ? Number(s) < e.length : He(e, s), l = Reflect.set(
558
- e,
559
- s,
560
- n,
561
- Z(e) ? e : i
562
- );
563
- return e === j(i) && (o ? Dt(n, r) && Ot(e, "set", s, n) : Ot(e, "add", s, n)), l;
564
- }
565
- deleteProperty(e, s) {
566
- const n = He(e, s);
567
- e[s];
568
- const i = Reflect.deleteProperty(e, s);
569
- return i && n && Ot(e, "delete", s, void 0), i;
570
- }
571
- has(e, s) {
572
- const n = Reflect.has(e, s);
573
- return (!ve(s) || !Ln.has(s)) && Y(e, "has", s), n;
574
- }
575
- ownKeys(e) {
576
- return Y(
577
- e,
578
- "iterate",
579
- Nt(e) ? "length" : Gt
580
- ), Reflect.ownKeys(e);
581
- }
582
- }
583
- class lr extends Kn {
584
- constructor(e = !1) {
585
- super(!0, e);
586
- }
587
- set(e, s) {
588
- return !0;
589
- }
590
- deleteProperty(e, s) {
591
- return !0;
592
- }
593
- }
594
- const cr = /* @__PURE__ */ new Un(), fr = /* @__PURE__ */ new lr(), ur = /* @__PURE__ */ new Un(!0);
595
- const xs = (t) => t, Me = (t) => Reflect.getPrototypeOf(t);
596
- function ar(t, e, s) {
597
- return function(...n) {
598
- const i = this.__v_raw, r = j(i), o = fe(r), l = t === "entries" || t === Symbol.iterator && o, f = t === "keys" && o, d = i[t](...n), a = s ? xs : e ? Le : J;
599
- return !e && Y(
600
- r,
601
- "iterate",
602
- f ? ys : Gt
603
- ), {
604
- // iterator protocol
605
- next() {
606
- const { value: p, done: w } = d.next();
607
- return w ? { value: p, done: w } : {
608
- value: l ? [a(p[0]), a(p[1])] : a(p),
609
- done: w
610
- };
611
- },
612
- // iterable protocol
613
- [Symbol.iterator]() {
614
- return this;
615
- }
616
- };
617
- };
618
- }
619
- function Ie(t) {
620
- return function(...e) {
621
- return t === "delete" ? !1 : t === "clear" ? void 0 : this;
622
- };
623
- }
624
- function hr(t, e) {
625
- const s = {
626
- get(i) {
627
- const r = this.__v_raw, o = j(r), l = j(i);
628
- t || (Dt(i, l) && Y(o, "get", i), Y(o, "get", l));
629
- const { has: f } = Me(o), d = e ? xs : t ? Le : J;
630
- if (f.call(o, i))
631
- return d(r.get(i));
632
- if (f.call(o, l))
633
- return d(r.get(l));
634
- r !== o && r.get(i);
635
- },
636
- get size() {
637
- const i = this.__v_raw;
638
- return !t && Y(j(i), "iterate", Gt), Reflect.get(i, "size", i);
639
- },
640
- has(i) {
641
- const r = this.__v_raw, o = j(r), l = j(i);
642
- return t || (Dt(i, l) && Y(o, "has", i), Y(o, "has", l)), i === l ? r.has(i) : r.has(i) || r.has(l);
643
- },
644
- forEach(i, r) {
645
- const o = this, l = o.__v_raw, f = j(l), d = e ? xs : t ? Le : J;
646
- return !t && Y(f, "iterate", Gt), l.forEach((a, p) => i.call(r, d(a), d(p), o));
647
- }
648
- };
649
- return Wi(
650
- s,
651
- t ? {
652
- add: Ie("add"),
653
- set: Ie("set"),
654
- delete: Ie("delete"),
655
- clear: Ie("clear")
656
- } : {
657
- add(i) {
658
- !e && !ft(i) && !Ht(i) && (i = j(i));
659
- const r = j(this);
660
- return Me(r).has.call(r, i) || (r.add(i), Ot(r, "add", i, i)), this;
661
- },
662
- set(i, r) {
663
- !e && !ft(r) && !Ht(r) && (r = j(r));
664
- const o = j(this), { has: l, get: f } = Me(o);
665
- let d = l.call(o, i);
666
- d || (i = j(i), d = l.call(o, i));
667
- const a = f.call(o, i);
668
- return o.set(i, r), d ? Dt(r, a) && Ot(o, "set", i, r) : Ot(o, "add", i, r), this;
669
- },
670
- delete(i) {
671
- const r = j(this), { has: o, get: l } = Me(r);
672
- let f = o.call(r, i);
673
- f || (i = j(i), f = o.call(r, i)), l && l.call(r, i);
674
- const d = r.delete(i);
675
- return f && Ot(r, "delete", i, void 0), d;
676
- },
677
- clear() {
678
- const i = j(this), r = i.size !== 0, o = i.clear();
679
- return r && Ot(
680
- i,
681
- "clear",
682
- void 0,
683
- void 0
684
- ), o;
685
- }
686
- }
687
- ), [
688
- "keys",
689
- "values",
690
- "entries",
691
- Symbol.iterator
692
- ].forEach((i) => {
693
- s[i] = ar(i, t, e);
694
- }), s;
695
- }
696
- function Is(t, e) {
697
- const s = hr(t, e);
698
- return (n, i, r) => i === "__v_isReactive" ? !t : i === "__v_isReadonly" ? t : i === "__v_raw" ? n : Reflect.get(
699
- He(s, i) && i in n ? s : n,
700
- i,
701
- r
702
- );
703
- }
704
- const dr = {
705
- get: /* @__PURE__ */ Is(!1, !1)
706
- }, pr = {
707
- get: /* @__PURE__ */ Is(!1, !0)
708
- }, gr = {
709
- get: /* @__PURE__ */ Is(!0, !1)
710
- };
711
- const Vn = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap();
712
- function mr(t) {
713
- switch (t) {
714
- case "Object":
715
- case "Array":
716
- return 1;
717
- case "Map":
718
- case "Set":
719
- case "WeakMap":
720
- case "WeakSet":
721
- return 2;
722
- default:
723
- return 0;
724
- }
725
- }
726
- function br(t) {
727
- return t.__v_skip || !Object.isExtensible(t) ? 0 : mr(Zi(t));
728
- }
729
- function $s(t) {
730
- return Ht(t) ? t : js(
731
- t,
732
- !1,
733
- cr,
734
- dr,
735
- Vn
736
- );
737
- }
738
- function yr(t) {
739
- return js(
740
- t,
741
- !1,
742
- ur,
743
- pr,
744
- Bn
745
- );
746
- }
747
- function qn(t) {
748
- return js(
749
- t,
750
- !0,
751
- fr,
752
- gr,
753
- Wn
754
- );
755
- }
756
- function js(t, e, s, n, i) {
757
- if (!Se(t) || t.__v_raw && !(e && t.__v_isReactive))
758
- return t;
759
- const r = br(t);
760
- if (r === 0)
761
- return t;
762
- const o = i.get(t);
763
- if (o)
764
- return o;
765
- const l = new Proxy(
766
- t,
767
- r === 2 ? n : s
768
- );
769
- return i.set(t, l), l;
770
- }
771
- function Zt(t) {
772
- return Ht(t) ? Zt(t.__v_raw) : !!(t && t.__v_isReactive);
773
- }
774
- function Ht(t) {
775
- return !!(t && t.__v_isReadonly);
776
- }
777
- function ft(t) {
778
- return !!(t && t.__v_isShallow);
779
- }
780
- function Fs(t) {
781
- return t ? !!t.__v_raw : !1;
782
- }
783
- function j(t) {
784
- const e = t && t.__v_raw;
785
- return e ? j(e) : t;
786
- }
787
- function xr(t) {
788
- return !He(t, "__v_skip") && Object.isExtensible(t) && Qi(t, "__v_skip", !0), t;
789
- }
790
- const J = (t) => Se(t) ? $s(t) : t, Le = (t) => Se(t) ? qn(t) : t;
791
- function Z(t) {
792
- return t ? t.__v_isRef === !0 : !1;
793
- }
794
- function Wl(t) {
795
- return Gn(t, !1);
796
- }
797
- function ql(t) {
798
- return Gn(t, !0);
799
- }
800
- function Gn(t, e) {
801
- return Z(t) ? t : new vr(t, e);
802
- }
803
- class vr {
804
- constructor(e, s) {
805
- this.dep = new Ms(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = s ? e : j(e), this._value = s ? e : J(e), this.__v_isShallow = s;
806
- }
807
- get value() {
808
- return this.dep.track(), this._value;
809
- }
810
- set value(e) {
811
- const s = this._rawValue, n = this.__v_isShallow || ft(e) || Ht(e);
812
- e = n ? e : j(e), Dt(e, s) && (this._rawValue = e, this._value = n ? e : J(e), this.dep.trigger());
813
- }
814
- }
815
- function Jn(t) {
816
- return Z(t) ? t.value : t;
817
- }
818
- const Sr = {
819
- get: (t, e, s) => e === "__v_raw" ? t : Jn(Reflect.get(t, e, s)),
820
- set: (t, e, s, n) => {
821
- const i = t[e];
822
- return Z(i) && !Z(s) ? (i.value = s, !0) : Reflect.set(t, e, s, n);
823
- }
824
- };
825
- function zn(t) {
826
- return Zt(t) ? t : new Proxy(t, Sr);
827
- }
828
- class wr {
829
- constructor(e, s, n) {
830
- this.fn = e, this.setter = s, this._value = void 0, this.dep = new Ms(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = _e - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !s, this.isSSR = n;
831
- }
832
- /**
833
- * @internal
834
- */
835
- notify() {
836
- if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
837
- L !== this)
838
- return $n(this, !0), !0;
839
- }
840
- get value() {
841
- const e = this.dep.track();
842
- return Nn(this), e && (e.version = this.dep.version), this._value;
843
- }
844
- set value(e) {
845
- this.setter && this.setter(e);
846
- }
847
- }
848
- function Cr(t, e, s = !1) {
849
- let n, i;
850
- return _s(t) ? n = t : (n = t.get, i = t.set), new wr(n, i, s);
851
- }
852
- const $e = {}, Ke = /* @__PURE__ */ new WeakMap();
853
- let qt;
854
- function Or(t, e = !1, s = qt) {
855
- if (s) {
856
- let n = Ke.get(s);
857
- n || Ke.set(s, n = []), n.push(t);
858
- }
859
- }
860
- function Tr(t, e, s = Vi) {
861
- const { immediate: n, deep: i, once: r, scheduler: o, augmentJob: l, call: f } = s, d = (A) => i ? A : ft(A) || i === !1 || i === 0 ? jt(A, 1) : jt(A);
862
- let a, p, w, C, $ = !1, I = !1;
863
- if (Z(t) ? (p = () => t.value, $ = ft(t)) : Zt(t) ? (p = () => d(t), $ = !0) : Nt(t) ? (I = !0, $ = t.some((A) => Zt(A) || ft(A)), p = () => t.map((A) => {
864
- if (Z(A))
865
- return A.value;
866
- if (Zt(A))
867
- return d(A);
868
- if (_s(A))
869
- return f ? f(A, 2) : A();
870
- })) : _s(t) ? e ? p = f ? () => f(t, 2) : t : p = () => {
871
- if (w) {
872
- At();
873
- try {
874
- w();
875
- } finally {
876
- Et();
877
- }
878
- }
879
- const A = qt;
880
- qt = a;
881
- try {
882
- return f ? f(t, 3, [C]) : t(C);
883
- } finally {
884
- qt = A;
885
- }
886
- } : p = Bi, e && i) {
887
- const A = p, q = i === !0 ? 1 / 0 : i;
888
- p = () => jt(A(), q);
889
- }
890
- const z = tr(), N = () => {
891
- a.stop(), z && z.active && qi(z.effects, a);
892
- };
893
- if (r && e) {
894
- const A = e;
895
- e = (...q) => {
896
- A(...q), N();
897
- };
898
- }
899
- let B = I ? new Array(t.length).fill($e) : $e;
900
- const W = (A) => {
901
- if (!(!(a.flags & 1) || !a.dirty && !A))
902
- if (e) {
903
- const q = a.run();
904
- if (i || $ || (I ? q.some((Rt, at) => Dt(Rt, B[at])) : Dt(q, B))) {
905
- w && w();
906
- const Rt = qt;
907
- qt = a;
908
- try {
909
- const at = [
910
- q,
911
- // pass undefined as the old value when it's changed for the first time
912
- B === $e ? void 0 : I && B[0] === $e ? [] : B,
913
- C
914
- ];
915
- f ? f(e, 3, at) : (
916
- // @ts-expect-error
917
- e(...at)
918
- ), B = q;
919
- } finally {
920
- qt = Rt;
921
- }
922
- }
923
- } else
924
- a.run();
925
- };
926
- return l && l(W), a = new Mn(p), a.scheduler = o ? () => o(W, !1) : W, C = (A) => Or(A, !1, a), w = a.onStop = () => {
927
- const A = Ke.get(a);
928
- if (A) {
929
- if (f)
930
- f(A, 4);
931
- else
932
- for (const q of A) q();
933
- Ke.delete(a);
934
- }
935
- }, e ? n ? W(!0) : B = a.run() : o ? o(W.bind(null, !0), !0) : a.run(), N.pause = a.pause.bind(a), N.resume = a.resume.bind(a), N.stop = N, N;
936
- }
937
- function jt(t, e = 1 / 0, s) {
938
- if (e <= 0 || !Se(t) || t.__v_skip || (s = s || /* @__PURE__ */ new Set(), s.has(t)))
939
- return t;
940
- if (s.add(t), e--, Z(t))
941
- jt(t.value, e, s);
942
- else if (Nt(t))
943
- for (let n = 0; n < t.length; n++)
944
- jt(t[n], e, s);
945
- else if (Ji(t) || fe(t))
946
- t.forEach((n) => {
947
- jt(n, e, s);
948
- });
949
- else if (Xi(t)) {
950
- for (const n in t)
951
- jt(t[n], e, s);
952
- for (const n of Object.getOwnPropertySymbols(t))
953
- Object.prototype.propertyIsEnumerable.call(t, n) && jt(t[n], e, s);
954
- }
955
- return t;
956
- }
957
- /**
958
- * @vue/shared v3.5.14
959
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
960
- * @license MIT
961
- **/
962
- /*! #__NO_SIDE_EFFECTS__ */
963
- // @__NO_SIDE_EFFECTS__
964
- function Ar(t) {
965
- const e = /* @__PURE__ */ Object.create(null);
966
- for (const s of t.split(",")) e[s] = 1;
967
- return (s) => s in e;
968
- }
969
- const U = {}, Xt = [], Tt = () => {
970
- }, Er = () => !1, Ns = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
971
- (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), Yn = (t) => t.startsWith("onUpdate:"), nt = Object.assign, Zn = (t, e) => {
972
- const s = t.indexOf(e);
973
- s > -1 && t.splice(s, 1);
974
- }, Pr = Object.prototype.hasOwnProperty, K = (t, e) => Pr.call(t, e), M = Array.isArray, Rr = (t) => Ds(t) === "[object Map]", Mr = (t) => Ds(t) === "[object Set]", P = (t) => typeof t == "function", it = (t) => typeof t == "string", Xn = (t) => typeof t == "symbol", G = (t) => t !== null && typeof t == "object", Qn = (t) => (G(t) || P(t)) && P(t.then) && P(t.catch), kn = Object.prototype.toString, Ds = (t) => kn.call(t), Ir = (t) => Ds(t) === "[object Object]", he = /* @__PURE__ */ Ar(
975
- // the leading comma is intentional so empty string "" is also included
976
- ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
977
- ), Ze = (t) => {
978
- const e = /* @__PURE__ */ Object.create(null);
979
- return (s) => e[s] || (e[s] = t(s));
980
- }, $r = /-(\w)/g, Jt = Ze(
981
- (t) => t.replace($r, (e, s) => s ? s.toUpperCase() : "")
982
- ), jr = /\B([A-Z])/g, we = Ze(
983
- (t) => t.replace(jr, "-$1").toLowerCase()
984
- ), Fr = Ze((t) => t.charAt(0).toUpperCase() + t.slice(1)), ls = Ze(
985
- (t) => t ? `on${Fr(t)}` : ""
986
- ), cs = (t, ...e) => {
987
- for (let s = 0; s < t.length; s++)
988
- t[s](...e);
989
- }, Nr = (t, e, s, n = !1) => {
990
- Object.defineProperty(t, e, {
991
- configurable: !0,
992
- enumerable: !1,
993
- writable: n,
994
- value: s
995
- });
996
- }, Dr = (t) => {
997
- const e = parseFloat(t);
998
- return isNaN(e) ? t : e;
999
- };
1000
- let sn;
1001
- const Xe = () => sn || (sn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
1002
- function Hs(t) {
1003
- if (M(t)) {
1004
- const e = {};
1005
- for (let s = 0; s < t.length; s++) {
1006
- const n = t[s], i = it(n) ? Ur(n) : Hs(n);
1007
- if (i)
1008
- for (const r in i)
1009
- e[r] = i[r];
1010
- }
1011
- return e;
1012
- } else if (it(t) || G(t))
1013
- return t;
1014
- }
1015
- const Hr = /;(?![^(]*\))/g, Lr = /:([^]+)/, Kr = /\/\*[^]*?\*\//g;
1016
- function Ur(t) {
1017
- const e = {};
1018
- return t.replace(Kr, "").split(Hr).forEach((s) => {
1019
- if (s) {
1020
- const n = s.split(Lr);
1021
- n.length > 1 && (e[n[0].trim()] = n[1].trim());
1022
- }
1023
- }), e;
1024
- }
1025
- function Ls(t) {
1026
- let e = "";
1027
- if (it(t))
1028
- e = t;
1029
- else if (M(t))
1030
- for (let s = 0; s < t.length; s++) {
1031
- const n = Ls(t[s]);
1032
- n && (e += n + " ");
1033
- }
1034
- else if (G(t))
1035
- for (const s in t)
1036
- t[s] && (e += s + " ");
1037
- return e.trim();
1038
- }
1039
- const ti = (t) => !!(t && t.__v_isRef === !0), Vr = (t) => it(t) ? t : t == null ? "" : M(t) || G(t) && (t.toString === kn || !P(t.toString)) ? ti(t) ? Vr(t.value) : JSON.stringify(t, ei, 2) : String(t), ei = (t, e) => ti(e) ? ei(t, e.value) : Rr(e) ? {
1040
- [`Map(${e.size})`]: [...e.entries()].reduce(
1041
- (s, [n, i], r) => (s[fs(n, r) + " =>"] = i, s),
1042
- {}
1043
- )
1044
- } : Mr(e) ? {
1045
- [`Set(${e.size})`]: [...e.values()].map((s) => fs(s))
1046
- } : Xn(e) ? fs(e) : G(e) && !M(e) && !Ir(e) ? String(e) : e, fs = (t, e = "") => {
1047
- var s;
1048
- return (
1049
- // Symbol.description in es2019+ so we need to cast here to pass
1050
- // the lib: es2016 check
1051
- Xn(t) ? `Symbol(${(s = t.description) != null ? s : e})` : t
1052
- );
1053
- };
1054
- /**
1055
- * @vue/runtime-core v3.5.14
1056
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
1057
- * @license MIT
1058
- **/
1059
- function Ce(t, e, s, n) {
1060
- try {
1061
- return n ? t(...n) : t();
1062
- } catch (i) {
1063
- Qe(i, e, s);
1064
- }
1065
- }
1066
- function vt(t, e, s, n) {
1067
- if (P(t)) {
1068
- const i = Ce(t, e, s, n);
1069
- return i && Qn(i) && i.catch((r) => {
1070
- Qe(r, e, s);
1071
- }), i;
1072
- }
1073
- if (M(t)) {
1074
- const i = [];
1075
- for (let r = 0; r < t.length; r++)
1076
- i.push(vt(t[r], e, s, n));
1077
- return i;
1078
- }
1079
- }
1080
- function Qe(t, e, s, n = !0) {
1081
- const i = e ? e.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: o } = e && e.appContext.config || U;
1082
- if (e) {
1083
- let l = e.parent;
1084
- const f = e.proxy, d = `https://vuejs.org/error-reference/#runtime-${s}`;
1085
- for (; l; ) {
1086
- const a = l.ec;
1087
- if (a) {
1088
- for (let p = 0; p < a.length; p++)
1089
- if (a[p](t, f, d) === !1)
1090
- return;
1091
- }
1092
- l = l.parent;
1093
- }
1094
- if (r) {
1095
- At(), Ce(r, null, 10, [
1096
- t,
1097
- f,
1098
- d
1099
- ]), Et();
1100
- return;
1101
- }
1102
- }
1103
- Br(t, s, i, n, o);
1104
- }
1105
- function Br(t, e, s, n = !0, i = !1) {
1106
- if (i)
1107
- throw t;
1108
- console.error(t);
1109
- }
1110
- const k = [];
1111
- let mt = -1;
1112
- const Qt = [];
1113
- let It = null, Yt = 0;
1114
- const si = /* @__PURE__ */ Promise.resolve();
1115
- let Ue = null;
1116
- function ni(t) {
1117
- const e = Ue || si;
1118
- return t ? e.then(this ? t.bind(this) : t) : e;
1119
- }
1120
- function Wr(t) {
1121
- let e = mt + 1, s = k.length;
1122
- for (; e < s; ) {
1123
- const n = e + s >>> 1, i = k[n], r = be(i);
1124
- r < t || r === t && i.flags & 2 ? e = n + 1 : s = n;
1125
- }
1126
- return e;
1127
- }
1128
- function Ks(t) {
1129
- if (!(t.flags & 1)) {
1130
- const e = be(t), s = k[k.length - 1];
1131
- !s || // fast path when the job id is larger than the tail
1132
- !(t.flags & 2) && e >= be(s) ? k.push(t) : k.splice(Wr(e), 0, t), t.flags |= 1, ii();
1133
- }
1134
- }
1135
- function ii() {
1136
- Ue || (Ue = si.then(oi));
1137
- }
1138
- function qr(t) {
1139
- M(t) ? Qt.push(...t) : It && t.id === -1 ? It.splice(Yt + 1, 0, t) : t.flags & 1 || (Qt.push(t), t.flags |= 1), ii();
1140
- }
1141
- function nn(t, e, s = mt + 1) {
1142
- for (; s < k.length; s++) {
1143
- const n = k[s];
1144
- if (n && n.flags & 2) {
1145
- if (t && n.id !== t.uid)
1146
- continue;
1147
- k.splice(s, 1), s--, n.flags & 4 && (n.flags &= -2), n(), n.flags & 4 || (n.flags &= -2);
1148
- }
1149
- }
1150
- }
1151
- function ri(t) {
1152
- if (Qt.length) {
1153
- const e = [...new Set(Qt)].sort(
1154
- (s, n) => be(s) - be(n)
1155
- );
1156
- if (Qt.length = 0, It) {
1157
- It.push(...e);
1158
- return;
1159
- }
1160
- for (It = e, Yt = 0; Yt < It.length; Yt++) {
1161
- const s = It[Yt];
1162
- s.flags & 4 && (s.flags &= -2), s.flags & 8 || s(), s.flags &= -2;
1163
- }
1164
- It = null, Yt = 0;
1165
- }
1166
- }
1167
- const be = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
1168
- function oi(t) {
1169
- try {
1170
- for (mt = 0; mt < k.length; mt++) {
1171
- const e = k[mt];
1172
- e && !(e.flags & 8) && (e.flags & 4 && (e.flags &= -2), Ce(
1173
- e,
1174
- e.i,
1175
- e.i ? 15 : 14
1176
- ), e.flags & 4 || (e.flags &= -2));
1177
- }
1178
- } finally {
1179
- for (; mt < k.length; mt++) {
1180
- const e = k[mt];
1181
- e && (e.flags &= -2);
1182
- }
1183
- mt = -1, k.length = 0, ri(), Ue = null, (k.length || Qt.length) && oi();
1184
- }
1185
- }
1186
- let yt = null, li = null;
1187
- function Ve(t) {
1188
- const e = yt;
1189
- return yt = t, li = t && t.type.__scopeId || null, e;
1190
- }
1191
- function Gr(t, e = yt, s) {
1192
- if (!e || t._n)
1193
- return t;
1194
- const n = (...i) => {
1195
- n._d && dn(-1);
1196
- const r = Ve(e);
1197
- let o;
1198
- try {
1199
- o = t(...i);
1200
- } finally {
1201
- Ve(r), n._d && dn(1);
1202
- }
1203
- return o;
1204
- };
1205
- return n._n = !0, n._c = !0, n._d = !0, n;
1206
- }
1207
- function Bt(t, e, s, n) {
1208
- const i = t.dirs, r = e && e.dirs;
1209
- for (let o = 0; o < i.length; o++) {
1210
- const l = i[o];
1211
- r && (l.oldValue = r[o].value);
1212
- let f = l.dir[n];
1213
- f && (At(), vt(f, s, 8, [
1214
- t.el,
1215
- l,
1216
- t,
1217
- e
1218
- ]), Et());
1219
- }
1220
- }
1221
- const Jr = Symbol("_vte"), zr = (t) => t.__isTeleport;
1222
- function Us(t, e) {
1223
- t.shapeFlag & 6 && t.component ? (t.transition = e, Us(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
1224
- }
1225
- /*! #__NO_SIDE_EFFECTS__ */
1226
- // @__NO_SIDE_EFFECTS__
1227
- function Yr(t, e) {
1228
- return P(t) ? (
1229
- // #8236: extend call and options.name access are considered side-effects
1230
- // by Rollup, so we have to wrap it in a pure-annotated IIFE.
1231
- nt({ name: t.name }, e, { setup: t })
1232
- ) : t;
1233
- }
1234
- function ci(t) {
1235
- t.ids = [t.ids[0] + t.ids[2]++ + "-", 0, 0];
1236
- }
1237
- function Be(t, e, s, n, i = !1) {
1238
- if (M(t)) {
1239
- t.forEach(
1240
- ($, I) => Be(
1241
- $,
1242
- e && (M(e) ? e[I] : e),
1243
- s,
1244
- n,
1245
- i
1246
- )
1247
- );
1248
- return;
1249
- }
1250
- if (de(n) && !i) {
1251
- n.shapeFlag & 512 && n.type.__asyncResolved && n.component.subTree.component && Be(t, e, s, n.component.subTree);
1252
- return;
1253
- }
1254
- const r = n.shapeFlag & 4 ? Gs(n.component) : n.el, o = i ? null : r, { i: l, r: f } = t, d = e && e.r, a = l.refs === U ? l.refs = {} : l.refs, p = l.setupState, w = j(p), C = p === U ? () => !1 : ($) => K(w, $);
1255
- if (d != null && d !== f && (it(d) ? (a[d] = null, C(d) && (p[d] = null)) : Z(d) && (d.value = null)), P(f))
1256
- Ce(f, l, 12, [o, a]);
1257
- else {
1258
- const $ = it(f), I = Z(f);
1259
- if ($ || I) {
1260
- const z = () => {
1261
- if (t.f) {
1262
- const N = $ ? C(f) ? p[f] : a[f] : f.value;
1263
- i ? M(N) && Zn(N, r) : M(N) ? N.includes(r) || N.push(r) : $ ? (a[f] = [r], C(f) && (p[f] = a[f])) : (f.value = [r], t.k && (a[t.k] = f.value));
1264
- } else $ ? (a[f] = o, C(f) && (p[f] = o)) : I && (f.value = o, t.k && (a[t.k] = o));
1265
- };
1266
- o ? (z.id = -1, lt(z, s)) : z();
1267
- }
1268
- }
1269
- }
1270
- Xe().requestIdleCallback;
1271
- Xe().cancelIdleCallback;
1272
- const de = (t) => !!t.type.__asyncLoader, fi = (t) => t.type.__isKeepAlive;
1273
- function Zr(t, e) {
1274
- ui(t, "a", e);
1275
- }
1276
- function Xr(t, e) {
1277
- ui(t, "da", e);
1278
- }
1279
- function ui(t, e, s = tt) {
1280
- const n = t.__wdc || (t.__wdc = () => {
1281
- let i = s;
1282
- for (; i; ) {
1283
- if (i.isDeactivated)
1284
- return;
1285
- i = i.parent;
1286
- }
1287
- return t();
1288
- });
1289
- if (ke(e, n, s), s) {
1290
- let i = s.parent;
1291
- for (; i && i.parent; )
1292
- fi(i.parent.vnode) && Qr(n, e, s, i), i = i.parent;
1293
- }
1294
- }
1295
- function Qr(t, e, s, n) {
1296
- const i = ke(
1297
- e,
1298
- t,
1299
- n,
1300
- !0
1301
- /* prepend */
1302
- );
1303
- ai(() => {
1304
- Zn(n[e], i);
1305
- }, s);
1306
- }
1307
- function ke(t, e, s = tt, n = !1) {
1308
- if (s) {
1309
- const i = s[t] || (s[t] = []), r = e.__weh || (e.__weh = (...o) => {
1310
- At();
1311
- const l = Oe(s), f = vt(e, s, t, o);
1312
- return l(), Et(), f;
1313
- });
1314
- return n ? i.unshift(r) : i.push(r), r;
1315
- }
1316
- }
1317
- const Pt = (t) => (e, s = tt) => {
1318
- (!xe || t === "sp") && ke(t, (...n) => e(...n), s);
1319
- }, kr = Pt("bm"), to = Pt("m"), eo = Pt(
1320
- "bu"
1321
- ), so = Pt("u"), no = Pt(
1322
- "bum"
1323
- ), ai = Pt("um"), io = Pt(
1324
- "sp"
1325
- ), ro = Pt("rtg"), oo = Pt("rtc");
1326
- function lo(t, e = tt) {
1327
- ke("ec", t, e);
1328
- }
1329
- const co = Symbol.for("v-ndc");
1330
- function Gl(t, e, s, n) {
1331
- let i;
1332
- const r = s, o = M(t);
1333
- if (o || it(t)) {
1334
- const l = o && Zt(t);
1335
- let f = !1, d = !1;
1336
- l && (f = !ft(t), d = Ht(t), t = Ye(t)), i = new Array(t.length);
1337
- for (let a = 0, p = t.length; a < p; a++)
1338
- i[a] = e(
1339
- f ? d ? Le(J(t[a])) : J(t[a]) : t[a],
1340
- a,
1341
- void 0,
1342
- r
1343
- );
1344
- } else if (typeof t == "number") {
1345
- i = new Array(t);
1346
- for (let l = 0; l < t; l++)
1347
- i[l] = e(l + 1, l, void 0, r);
1348
- } else if (G(t))
1349
- if (t[Symbol.iterator])
1350
- i = Array.from(
1351
- t,
1352
- (l, f) => e(l, f, void 0, r)
1353
- );
1354
- else {
1355
- const l = Object.keys(t);
1356
- i = new Array(l.length);
1357
- for (let f = 0, d = l.length; f < d; f++) {
1358
- const a = l[f];
1359
- i[f] = e(t[a], a, f, r);
1360
- }
1361
- }
1362
- else
1363
- i = [];
1364
- return i;
1365
- }
1366
- const vs = (t) => t ? Ii(t) ? Gs(t) : vs(t.parent) : null, pe = (
1367
- // Move PURE marker to new line to workaround compiler discarding it
1368
- // due to type annotation
1369
- /* @__PURE__ */ nt(/* @__PURE__ */ Object.create(null), {
1370
- $: (t) => t,
1371
- $el: (t) => t.vnode.el,
1372
- $data: (t) => t.data,
1373
- $props: (t) => t.props,
1374
- $attrs: (t) => t.attrs,
1375
- $slots: (t) => t.slots,
1376
- $refs: (t) => t.refs,
1377
- $parent: (t) => vs(t.parent),
1378
- $root: (t) => vs(t.root),
1379
- $host: (t) => t.ce,
1380
- $emit: (t) => t.emit,
1381
- $options: (t) => di(t),
1382
- $forceUpdate: (t) => t.f || (t.f = () => {
1383
- Ks(t.update);
1384
- }),
1385
- $nextTick: (t) => t.n || (t.n = ni.bind(t.proxy)),
1386
- $watch: (t) => Mo.bind(t)
1387
- })
1388
- ), us = (t, e) => t !== U && !t.__isScriptSetup && K(t, e), fo = {
1389
- get({ _: t }, e) {
1390
- if (e === "__v_skip")
1391
- return !0;
1392
- const { ctx: s, setupState: n, data: i, props: r, accessCache: o, type: l, appContext: f } = t;
1393
- let d;
1394
- if (e[0] !== "$") {
1395
- const C = o[e];
1396
- if (C !== void 0)
1397
- switch (C) {
1398
- case 1:
1399
- return n[e];
1400
- case 2:
1401
- return i[e];
1402
- case 4:
1403
- return s[e];
1404
- case 3:
1405
- return r[e];
1406
- }
1407
- else {
1408
- if (us(n, e))
1409
- return o[e] = 1, n[e];
1410
- if (i !== U && K(i, e))
1411
- return o[e] = 2, i[e];
1412
- if (
1413
- // only cache other properties when instance has declared (thus stable)
1414
- // props
1415
- (d = t.propsOptions[0]) && K(d, e)
1416
- )
1417
- return o[e] = 3, r[e];
1418
- if (s !== U && K(s, e))
1419
- return o[e] = 4, s[e];
1420
- Ss && (o[e] = 0);
1421
- }
1422
- }
1423
- const a = pe[e];
1424
- let p, w;
1425
- if (a)
1426
- return e === "$attrs" && Y(t.attrs, "get", ""), a(t);
1427
- if (
1428
- // css module (injected by vue-loader)
1429
- (p = l.__cssModules) && (p = p[e])
1430
- )
1431
- return p;
1432
- if (s !== U && K(s, e))
1433
- return o[e] = 4, s[e];
1434
- if (
1435
- // global properties
1436
- w = f.config.globalProperties, K(w, e)
1437
- )
1438
- return w[e];
1439
- },
1440
- set({ _: t }, e, s) {
1441
- const { data: n, setupState: i, ctx: r } = t;
1442
- return us(i, e) ? (i[e] = s, !0) : n !== U && K(n, e) ? (n[e] = s, !0) : K(t.props, e) || e[0] === "$" && e.slice(1) in t ? !1 : (r[e] = s, !0);
1443
- },
1444
- has({
1445
- _: { data: t, setupState: e, accessCache: s, ctx: n, appContext: i, propsOptions: r }
1446
- }, o) {
1447
- let l;
1448
- return !!s[o] || t !== U && K(t, o) || us(e, o) || (l = r[0]) && K(l, o) || K(n, o) || K(pe, o) || K(i.config.globalProperties, o);
1449
- },
1450
- defineProperty(t, e, s) {
1451
- return s.get != null ? t._.accessCache[e] = 0 : K(s, "value") && this.set(t, e, s.value, null), Reflect.defineProperty(t, e, s);
1452
- }
1453
- };
1454
- function rn(t) {
1455
- return M(t) ? t.reduce(
1456
- (e, s) => (e[s] = null, e),
1457
- {}
1458
- ) : t;
1459
- }
1460
- let Ss = !0;
1461
- function uo(t) {
1462
- const e = di(t), s = t.proxy, n = t.ctx;
1463
- Ss = !1, e.beforeCreate && on(e.beforeCreate, t, "bc");
1464
- const {
1465
- // state
1466
- data: i,
1467
- computed: r,
1468
- methods: o,
1469
- watch: l,
1470
- provide: f,
1471
- inject: d,
1472
- // lifecycle
1473
- created: a,
1474
- beforeMount: p,
1475
- mounted: w,
1476
- beforeUpdate: C,
1477
- updated: $,
1478
- activated: I,
1479
- deactivated: z,
1480
- beforeDestroy: N,
1481
- beforeUnmount: B,
1482
- destroyed: W,
1483
- unmounted: A,
1484
- render: q,
1485
- renderTracked: Rt,
1486
- renderTriggered: at,
1487
- errorCaptured: Mt,
1488
- serverPrefetch: Te,
1489
- // public API
1490
- expose: Kt,
1491
- inheritAttrs: se,
1492
- // assets
1493
- components: Ae,
1494
- directives: Ee,
1495
- filters: ss
1496
- } = e;
1497
- if (d && ao(d, n, null), o)
1498
- for (const V in o) {
1499
- const D = o[V];
1500
- P(D) && (n[V] = D.bind(s));
1501
- }
1502
- if (i) {
1503
- const V = i.call(s, s);
1504
- G(V) && (t.data = $s(V));
1505
- }
1506
- if (Ss = !0, r)
1507
- for (const V in r) {
1508
- const D = r[V], Ut = P(D) ? D.bind(s, s) : P(D.get) ? D.get.bind(s, s) : Tt, Pe = !P(D) && P(D.set) ? D.set.bind(s) : Tt, Vt = tl({
1509
- get: Ut,
1510
- set: Pe
1511
- });
1512
- Object.defineProperty(n, V, {
1513
- enumerable: !0,
1514
- configurable: !0,
1515
- get: () => Vt.value,
1516
- set: (ht) => Vt.value = ht
1517
- });
1518
- }
1519
- if (l)
1520
- for (const V in l)
1521
- hi(l[V], n, s, V);
1522
- if (f) {
1523
- const V = P(f) ? f.call(s) : f;
1524
- Reflect.ownKeys(V).forEach((D) => {
1525
- bo(D, V[D]);
1526
- });
1527
- }
1528
- a && on(a, t, "c");
1529
- function X(V, D) {
1530
- M(D) ? D.forEach((Ut) => V(Ut.bind(s))) : D && V(D.bind(s));
1531
- }
1532
- if (X(kr, p), X(to, w), X(eo, C), X(so, $), X(Zr, I), X(Xr, z), X(lo, Mt), X(oo, Rt), X(ro, at), X(no, B), X(ai, A), X(io, Te), M(Kt))
1533
- if (Kt.length) {
1534
- const V = t.exposed || (t.exposed = {});
1535
- Kt.forEach((D) => {
1536
- Object.defineProperty(V, D, {
1537
- get: () => s[D],
1538
- set: (Ut) => s[D] = Ut
1539
- });
1540
- });
1541
- } else t.exposed || (t.exposed = {});
1542
- q && t.render === Tt && (t.render = q), se != null && (t.inheritAttrs = se), Ae && (t.components = Ae), Ee && (t.directives = Ee), Te && ci(t);
1543
- }
1544
- function ao(t, e, s = Tt) {
1545
- M(t) && (t = ws(t));
1546
- for (const n in t) {
1547
- const i = t[n];
1548
- let r;
1549
- G(i) ? "default" in i ? r = je(
1550
- i.from || n,
1551
- i.default,
1552
- !0
1553
- ) : r = je(i.from || n) : r = je(i), Z(r) ? Object.defineProperty(e, n, {
1554
- enumerable: !0,
1555
- configurable: !0,
1556
- get: () => r.value,
1557
- set: (o) => r.value = o
1558
- }) : e[n] = r;
1559
- }
1560
- }
1561
- function on(t, e, s) {
1562
- vt(
1563
- M(t) ? t.map((n) => n.bind(e.proxy)) : t.bind(e.proxy),
1564
- e,
1565
- s
1566
- );
1567
- }
1568
- function hi(t, e, s, n) {
1569
- let i = n.includes(".") ? Oi(s, n) : () => s[n];
1570
- if (it(t)) {
1571
- const r = e[t];
1572
- P(r) && hs(i, r);
1573
- } else if (P(t))
1574
- hs(i, t.bind(s));
1575
- else if (G(t))
1576
- if (M(t))
1577
- t.forEach((r) => hi(r, e, s, n));
1578
- else {
1579
- const r = P(t.handler) ? t.handler.bind(s) : e[t.handler];
1580
- P(r) && hs(i, r, t);
1581
- }
1582
- }
1583
- function di(t) {
1584
- const e = t.type, { mixins: s, extends: n } = e, {
1585
- mixins: i,
1586
- optionsCache: r,
1587
- config: { optionMergeStrategies: o }
1588
- } = t.appContext, l = r.get(e);
1589
- let f;
1590
- return l ? f = l : !i.length && !s && !n ? f = e : (f = {}, i.length && i.forEach(
1591
- (d) => We(f, d, o, !0)
1592
- ), We(f, e, o)), G(e) && r.set(e, f), f;
1593
- }
1594
- function We(t, e, s, n = !1) {
1595
- const { mixins: i, extends: r } = e;
1596
- r && We(t, r, s, !0), i && i.forEach(
1597
- (o) => We(t, o, s, !0)
1598
- );
1599
- for (const o in e)
1600
- if (!(n && o === "expose")) {
1601
- const l = ho[o] || s && s[o];
1602
- t[o] = l ? l(t[o], e[o]) : e[o];
1603
- }
1604
- return t;
1605
- }
1606
- const ho = {
1607
- data: ln,
1608
- props: cn,
1609
- emits: cn,
1610
- // objects
1611
- methods: ce,
1612
- computed: ce,
1613
- // lifecycle
1614
- beforeCreate: Q,
1615
- created: Q,
1616
- beforeMount: Q,
1617
- mounted: Q,
1618
- beforeUpdate: Q,
1619
- updated: Q,
1620
- beforeDestroy: Q,
1621
- beforeUnmount: Q,
1622
- destroyed: Q,
1623
- unmounted: Q,
1624
- activated: Q,
1625
- deactivated: Q,
1626
- errorCaptured: Q,
1627
- serverPrefetch: Q,
1628
- // assets
1629
- components: ce,
1630
- directives: ce,
1631
- // watch
1632
- watch: go,
1633
- // provide / inject
1634
- provide: ln,
1635
- inject: po
1636
- };
1637
- function ln(t, e) {
1638
- return e ? t ? function() {
1639
- return nt(
1640
- P(t) ? t.call(this, this) : t,
1641
- P(e) ? e.call(this, this) : e
1642
- );
1643
- } : e : t;
1644
- }
1645
- function po(t, e) {
1646
- return ce(ws(t), ws(e));
1647
- }
1648
- function ws(t) {
1649
- if (M(t)) {
1650
- const e = {};
1651
- for (let s = 0; s < t.length; s++)
1652
- e[t[s]] = t[s];
1653
- return e;
1654
- }
1655
- return t;
1656
- }
1657
- function Q(t, e) {
1658
- return t ? [...new Set([].concat(t, e))] : e;
1659
- }
1660
- function ce(t, e) {
1661
- return t ? nt(/* @__PURE__ */ Object.create(null), t, e) : e;
1662
- }
1663
- function cn(t, e) {
1664
- return t ? M(t) && M(e) ? [.../* @__PURE__ */ new Set([...t, ...e])] : nt(
1665
- /* @__PURE__ */ Object.create(null),
1666
- rn(t),
1667
- rn(e ?? {})
1668
- ) : e;
1669
- }
1670
- function go(t, e) {
1671
- if (!t) return e;
1672
- if (!e) return t;
1673
- const s = nt(/* @__PURE__ */ Object.create(null), t);
1674
- for (const n in e)
1675
- s[n] = Q(t[n], e[n]);
1676
- return s;
1677
- }
1678
- function pi() {
1679
- return {
1680
- app: null,
1681
- config: {
1682
- isNativeTag: Er,
1683
- performance: !1,
1684
- globalProperties: {},
1685
- optionMergeStrategies: {},
1686
- errorHandler: void 0,
1687
- warnHandler: void 0,
1688
- compilerOptions: {}
1689
- },
1690
- mixins: [],
1691
- components: {},
1692
- directives: {},
1693
- provides: /* @__PURE__ */ Object.create(null),
1694
- optionsCache: /* @__PURE__ */ new WeakMap(),
1695
- propsCache: /* @__PURE__ */ new WeakMap(),
1696
- emitsCache: /* @__PURE__ */ new WeakMap()
1697
- };
1698
- }
1699
- let _o = 0;
1700
- function mo(t, e) {
1701
- return function(n, i = null) {
1702
- P(n) || (n = nt({}, n)), i != null && !G(i) && (i = null);
1703
- const r = pi(), o = /* @__PURE__ */ new WeakSet(), l = [];
1704
- let f = !1;
1705
- const d = r.app = {
1706
- _uid: _o++,
1707
- _component: n,
1708
- _props: i,
1709
- _container: null,
1710
- _context: r,
1711
- _instance: null,
1712
- version: el,
1713
- get config() {
1714
- return r.config;
1715
- },
1716
- set config(a) {
1717
- },
1718
- use(a, ...p) {
1719
- return o.has(a) || (a && P(a.install) ? (o.add(a), a.install(d, ...p)) : P(a) && (o.add(a), a(d, ...p))), d;
1720
- },
1721
- mixin(a) {
1722
- return r.mixins.includes(a) || r.mixins.push(a), d;
1723
- },
1724
- component(a, p) {
1725
- return p ? (r.components[a] = p, d) : r.components[a];
1726
- },
1727
- directive(a, p) {
1728
- return p ? (r.directives[a] = p, d) : r.directives[a];
1729
- },
1730
- mount(a, p, w) {
1731
- if (!f) {
1732
- const C = d._ceVNode || xt(n, i);
1733
- return C.appContext = r, w === !0 ? w = "svg" : w === !1 && (w = void 0), t(C, a, w), f = !0, d._container = a, a.__vue_app__ = d, Gs(C.component);
1734
- }
1735
- },
1736
- onUnmount(a) {
1737
- l.push(a);
1738
- },
1739
- unmount() {
1740
- f && (vt(
1741
- l,
1742
- d._instance,
1743
- 16
1744
- ), t(null, d._container), delete d._container.__vue_app__);
1745
- },
1746
- provide(a, p) {
1747
- return r.provides[a] = p, d;
1748
- },
1749
- runWithContext(a) {
1750
- const p = kt;
1751
- kt = d;
1752
- try {
1753
- return a();
1754
- } finally {
1755
- kt = p;
1756
- }
1757
- }
1758
- };
1759
- return d;
1760
- };
1761
- }
1762
- let kt = null;
1763
- function bo(t, e) {
1764
- if (tt) {
1765
- let s = tt.provides;
1766
- const n = tt.parent && tt.parent.provides;
1767
- n === s && (s = tt.provides = Object.create(n)), s[t] = e;
1768
- }
1769
- }
1770
- function je(t, e, s = !1) {
1771
- const n = tt || yt;
1772
- if (n || kt) {
1773
- const i = kt ? kt._context.provides : n ? n.parent == null ? n.vnode.appContext && n.vnode.appContext.provides : n.parent.provides : void 0;
1774
- if (i && t in i)
1775
- return i[t];
1776
- if (arguments.length > 1)
1777
- return s && P(e) ? e.call(n && n.proxy) : e;
1778
- }
1779
- }
1780
- const gi = {}, _i = () => Object.create(gi), mi = (t) => Object.getPrototypeOf(t) === gi;
1781
- function yo(t, e, s, n = !1) {
1782
- const i = {}, r = _i();
1783
- t.propsDefaults = /* @__PURE__ */ Object.create(null), bi(t, e, i, r);
1784
- for (const o in t.propsOptions[0])
1785
- o in i || (i[o] = void 0);
1786
- s ? t.props = n ? i : yr(i) : t.type.props ? t.props = i : t.props = r, t.attrs = r;
1787
- }
1788
- function xo(t, e, s, n) {
1789
- const {
1790
- props: i,
1791
- attrs: r,
1792
- vnode: { patchFlag: o }
1793
- } = t, l = j(i), [f] = t.propsOptions;
1794
- let d = !1;
1795
- if (
1796
- // always force full diff in dev
1797
- // - #1942 if hmr is enabled with sfc component
1798
- // - vite#872 non-sfc component used by sfc component
1799
- (n || o > 0) && !(o & 16)
1800
- ) {
1801
- if (o & 8) {
1802
- const a = t.vnode.dynamicProps;
1803
- for (let p = 0; p < a.length; p++) {
1804
- let w = a[p];
1805
- if (ts(t.emitsOptions, w))
1806
- continue;
1807
- const C = e[w];
1808
- if (f)
1809
- if (K(r, w))
1810
- C !== r[w] && (r[w] = C, d = !0);
1811
- else {
1812
- const $ = Jt(w);
1813
- i[$] = Cs(
1814
- f,
1815
- l,
1816
- $,
1817
- C,
1818
- t,
1819
- !1
1820
- );
1821
- }
1822
- else
1823
- C !== r[w] && (r[w] = C, d = !0);
1824
- }
1825
- }
1826
- } else {
1827
- bi(t, e, i, r) && (d = !0);
1828
- let a;
1829
- for (const p in l)
1830
- (!e || // for camelCase
1831
- !K(e, p) && // it's possible the original props was passed in as kebab-case
1832
- // and converted to camelCase (#955)
1833
- ((a = we(p)) === p || !K(e, a))) && (f ? s && // for camelCase
1834
- (s[p] !== void 0 || // for kebab-case
1835
- s[a] !== void 0) && (i[p] = Cs(
1836
- f,
1837
- l,
1838
- p,
1839
- void 0,
1840
- t,
1841
- !0
1842
- )) : delete i[p]);
1843
- if (r !== l)
1844
- for (const p in r)
1845
- (!e || !K(e, p)) && (delete r[p], d = !0);
1846
- }
1847
- d && Ot(t.attrs, "set", "");
1848
- }
1849
- function bi(t, e, s, n) {
1850
- const [i, r] = t.propsOptions;
1851
- let o = !1, l;
1852
- if (e)
1853
- for (let f in e) {
1854
- if (he(f))
1855
- continue;
1856
- const d = e[f];
1857
- let a;
1858
- i && K(i, a = Jt(f)) ? !r || !r.includes(a) ? s[a] = d : (l || (l = {}))[a] = d : ts(t.emitsOptions, f) || (!(f in n) || d !== n[f]) && (n[f] = d, o = !0);
1859
- }
1860
- if (r) {
1861
- const f = j(s), d = l || U;
1862
- for (let a = 0; a < r.length; a++) {
1863
- const p = r[a];
1864
- s[p] = Cs(
1865
- i,
1866
- f,
1867
- p,
1868
- d[p],
1869
- t,
1870
- !K(d, p)
1871
- );
1872
- }
1873
- }
1874
- return o;
1875
- }
1876
- function Cs(t, e, s, n, i, r) {
1877
- const o = t[s];
1878
- if (o != null) {
1879
- const l = K(o, "default");
1880
- if (l && n === void 0) {
1881
- const f = o.default;
1882
- if (o.type !== Function && !o.skipFactory && P(f)) {
1883
- const { propsDefaults: d } = i;
1884
- if (s in d)
1885
- n = d[s];
1886
- else {
1887
- const a = Oe(i);
1888
- n = d[s] = f.call(
1889
- null,
1890
- e
1891
- ), a();
1892
- }
1893
- } else
1894
- n = f;
1895
- i.ce && i.ce._setProp(s, n);
1896
- }
1897
- o[
1898
- 0
1899
- /* shouldCast */
1900
- ] && (r && !l ? n = !1 : o[
1901
- 1
1902
- /* shouldCastTrue */
1903
- ] && (n === "" || n === we(s)) && (n = !0));
1904
- }
1905
- return n;
1906
- }
1907
- const vo = /* @__PURE__ */ new WeakMap();
1908
- function yi(t, e, s = !1) {
1909
- const n = s ? vo : e.propsCache, i = n.get(t);
1910
- if (i)
1911
- return i;
1912
- const r = t.props, o = {}, l = [];
1913
- let f = !1;
1914
- if (!P(t)) {
1915
- const a = (p) => {
1916
- f = !0;
1917
- const [w, C] = yi(p, e, !0);
1918
- nt(o, w), C && l.push(...C);
1919
- };
1920
- !s && e.mixins.length && e.mixins.forEach(a), t.extends && a(t.extends), t.mixins && t.mixins.forEach(a);
1921
- }
1922
- if (!r && !f)
1923
- return G(t) && n.set(t, Xt), Xt;
1924
- if (M(r))
1925
- for (let a = 0; a < r.length; a++) {
1926
- const p = Jt(r[a]);
1927
- fn(p) && (o[p] = U);
1928
- }
1929
- else if (r)
1930
- for (const a in r) {
1931
- const p = Jt(a);
1932
- if (fn(p)) {
1933
- const w = r[a], C = o[p] = M(w) || P(w) ? { type: w } : nt({}, w), $ = C.type;
1934
- let I = !1, z = !0;
1935
- if (M($))
1936
- for (let N = 0; N < $.length; ++N) {
1937
- const B = $[N], W = P(B) && B.name;
1938
- if (W === "Boolean") {
1939
- I = !0;
1940
- break;
1941
- } else W === "String" && (z = !1);
1942
- }
1943
- else
1944
- I = P($) && $.name === "Boolean";
1945
- C[
1946
- 0
1947
- /* shouldCast */
1948
- ] = I, C[
1949
- 1
1950
- /* shouldCastTrue */
1951
- ] = z, (I || K(C, "default")) && l.push(p);
1952
- }
1953
- }
1954
- const d = [o, l];
1955
- return G(t) && n.set(t, d), d;
1956
- }
1957
- function fn(t) {
1958
- return t[0] !== "$" && !he(t);
1959
- }
1960
- const Vs = (t) => t[0] === "_" || t === "$stable", Bs = (t) => M(t) ? t.map(bt) : [bt(t)], So = (t, e, s) => {
1961
- if (e._n)
1962
- return e;
1963
- const n = Gr((...i) => Bs(e(...i)), s);
1964
- return n._c = !1, n;
1965
- }, xi = (t, e, s) => {
1966
- const n = t._ctx;
1967
- for (const i in t) {
1968
- if (Vs(i)) continue;
1969
- const r = t[i];
1970
- if (P(r))
1971
- e[i] = So(i, r, n);
1972
- else if (r != null) {
1973
- const o = Bs(r);
1974
- e[i] = () => o;
1975
- }
1976
- }
1977
- }, vi = (t, e) => {
1978
- const s = Bs(e);
1979
- t.slots.default = () => s;
1980
- }, Si = (t, e, s) => {
1981
- for (const n in e)
1982
- (s || !Vs(n)) && (t[n] = e[n]);
1983
- }, wo = (t, e, s) => {
1984
- const n = t.slots = _i();
1985
- if (t.vnode.shapeFlag & 32) {
1986
- const i = e._;
1987
- i ? (Si(n, e, s), s && Nr(n, "_", i, !0)) : xi(e, n);
1988
- } else e && vi(t, e);
1989
- }, Co = (t, e, s) => {
1990
- const { vnode: n, slots: i } = t;
1991
- let r = !0, o = U;
1992
- if (n.shapeFlag & 32) {
1993
- const l = e._;
1994
- l ? s && l === 1 ? r = !1 : Si(i, e, s) : (r = !e.$stable, xi(e, i)), o = e;
1995
- } else e && (vi(t, e), o = { default: 1 });
1996
- if (r)
1997
- for (const l in i)
1998
- !Vs(l) && o[l] == null && delete i[l];
1999
- }, lt = Ho;
2000
- function Oo(t) {
2001
- return To(t);
2002
- }
2003
- function To(t, e) {
2004
- const s = Xe();
2005
- s.__VUE__ = !0;
2006
- const {
2007
- insert: n,
2008
- remove: i,
2009
- patchProp: r,
2010
- createElement: o,
2011
- createText: l,
2012
- createComment: f,
2013
- setText: d,
2014
- setElementText: a,
2015
- parentNode: p,
2016
- nextSibling: w,
2017
- setScopeId: C = Tt,
2018
- insertStaticContent: $
2019
- } = t, I = (c, u, h, m = null, g = null, _ = null, v = void 0, x = null, y = !!u.dynamicChildren) => {
2020
- if (c === u)
2021
- return;
2022
- c && !le(c, u) && (m = Re(c), ht(c, g, _, !0), c = null), u.patchFlag === -2 && (y = !1, u.dynamicChildren = null);
2023
- const { type: b, ref: T, shapeFlag: S } = u;
2024
- switch (b) {
2025
- case es:
2026
- z(c, u, h, m);
2027
- break;
2028
- case Lt:
2029
- N(c, u, h, m);
2030
- break;
2031
- case ds:
2032
- c == null && B(u, h, m, v);
2033
- break;
2034
- case Ct:
2035
- Ae(
2036
- c,
2037
- u,
2038
- h,
2039
- m,
2040
- g,
2041
- _,
2042
- v,
2043
- x,
2044
- y
2045
- );
2046
- break;
2047
- default:
2048
- S & 1 ? q(
2049
- c,
2050
- u,
2051
- h,
2052
- m,
2053
- g,
2054
- _,
2055
- v,
2056
- x,
2057
- y
2058
- ) : S & 6 ? Ee(
2059
- c,
2060
- u,
2061
- h,
2062
- m,
2063
- g,
2064
- _,
2065
- v,
2066
- x,
2067
- y
2068
- ) : (S & 64 || S & 128) && b.process(
2069
- c,
2070
- u,
2071
- h,
2072
- m,
2073
- g,
2074
- _,
2075
- v,
2076
- x,
2077
- y,
2078
- ie
2079
- );
2080
- }
2081
- T != null && g && Be(T, c && c.ref, _, u || c, !u);
2082
- }, z = (c, u, h, m) => {
2083
- if (c == null)
2084
- n(
2085
- u.el = l(u.children),
2086
- h,
2087
- m
2088
- );
2089
- else {
2090
- const g = u.el = c.el;
2091
- u.children !== c.children && d(g, u.children);
2092
- }
2093
- }, N = (c, u, h, m) => {
2094
- c == null ? n(
2095
- u.el = f(u.children || ""),
2096
- h,
2097
- m
2098
- ) : u.el = c.el;
2099
- }, B = (c, u, h, m) => {
2100
- [c.el, c.anchor] = $(
2101
- c.children,
2102
- u,
2103
- h,
2104
- m,
2105
- c.el,
2106
- c.anchor
2107
- );
2108
- }, W = ({ el: c, anchor: u }, h, m) => {
2109
- let g;
2110
- for (; c && c !== u; )
2111
- g = w(c), n(c, h, m), c = g;
2112
- n(u, h, m);
2113
- }, A = ({ el: c, anchor: u }) => {
2114
- let h;
2115
- for (; c && c !== u; )
2116
- h = w(c), i(c), c = h;
2117
- i(u);
2118
- }, q = (c, u, h, m, g, _, v, x, y) => {
2119
- u.type === "svg" ? v = "svg" : u.type === "math" && (v = "mathml"), c == null ? Rt(
2120
- u,
2121
- h,
2122
- m,
2123
- g,
2124
- _,
2125
- v,
2126
- x,
2127
- y
2128
- ) : Te(
2129
- c,
2130
- u,
2131
- g,
2132
- _,
2133
- v,
2134
- x,
2135
- y
2136
- );
2137
- }, Rt = (c, u, h, m, g, _, v, x) => {
2138
- let y, b;
2139
- const { props: T, shapeFlag: S, transition: O, dirs: E } = c;
2140
- if (y = c.el = o(
2141
- c.type,
2142
- _,
2143
- T && T.is,
2144
- T
2145
- ), S & 8 ? a(y, c.children) : S & 16 && Mt(
2146
- c.children,
2147
- y,
2148
- null,
2149
- m,
2150
- g,
2151
- as(c, _),
2152
- v,
2153
- x
2154
- ), E && Bt(c, null, m, "created"), at(y, c, c.scopeId, v, m), T) {
2155
- for (const H in T)
2156
- H !== "value" && !he(H) && r(y, H, null, T[H], _, m);
2157
- "value" in T && r(y, "value", null, T.value, _), (b = T.onVnodeBeforeMount) && _t(b, m, c);
2158
- }
2159
- E && Bt(c, null, m, "beforeMount");
2160
- const R = Ao(g, O);
2161
- R && O.beforeEnter(y), n(y, u, h), ((b = T && T.onVnodeMounted) || R || E) && lt(() => {
2162
- b && _t(b, m, c), R && O.enter(y), E && Bt(c, null, m, "mounted");
2163
- }, g);
2164
- }, at = (c, u, h, m, g) => {
2165
- if (h && C(c, h), m)
2166
- for (let _ = 0; _ < m.length; _++)
2167
- C(c, m[_]);
2168
- if (g) {
2169
- let _ = g.subTree;
2170
- if (u === _ || Ai(_.type) && (_.ssContent === u || _.ssFallback === u)) {
2171
- const v = g.vnode;
2172
- at(
2173
- c,
2174
- v,
2175
- v.scopeId,
2176
- v.slotScopeIds,
2177
- g.parent
2178
- );
2179
- }
2180
- }
2181
- }, Mt = (c, u, h, m, g, _, v, x, y = 0) => {
2182
- for (let b = y; b < c.length; b++) {
2183
- const T = c[b] = x ? $t(c[b]) : bt(c[b]);
2184
- I(
2185
- null,
2186
- T,
2187
- u,
2188
- h,
2189
- m,
2190
- g,
2191
- _,
2192
- v,
2193
- x
2194
- );
2195
- }
2196
- }, Te = (c, u, h, m, g, _, v) => {
2197
- const x = u.el = c.el;
2198
- let { patchFlag: y, dynamicChildren: b, dirs: T } = u;
2199
- y |= c.patchFlag & 16;
2200
- const S = c.props || U, O = u.props || U;
2201
- let E;
2202
- if (h && Wt(h, !1), (E = O.onVnodeBeforeUpdate) && _t(E, h, u, c), T && Bt(u, c, h, "beforeUpdate"), h && Wt(h, !0), (S.innerHTML && O.innerHTML == null || S.textContent && O.textContent == null) && a(x, ""), b ? Kt(
2203
- c.dynamicChildren,
2204
- b,
2205
- x,
2206
- h,
2207
- m,
2208
- as(u, g),
2209
- _
2210
- ) : v || D(
2211
- c,
2212
- u,
2213
- x,
2214
- null,
2215
- h,
2216
- m,
2217
- as(u, g),
2218
- _,
2219
- !1
2220
- ), y > 0) {
2221
- if (y & 16)
2222
- se(x, S, O, h, g);
2223
- else if (y & 2 && S.class !== O.class && r(x, "class", null, O.class, g), y & 4 && r(x, "style", S.style, O.style, g), y & 8) {
2224
- const R = u.dynamicProps;
2225
- for (let H = 0; H < R.length; H++) {
2226
- const F = R[H], rt = S[F], et = O[F];
2227
- (et !== rt || F === "value") && r(x, F, rt, et, g, h);
2228
- }
2229
- }
2230
- y & 1 && c.children !== u.children && a(x, u.children);
2231
- } else !v && b == null && se(x, S, O, h, g);
2232
- ((E = O.onVnodeUpdated) || T) && lt(() => {
2233
- E && _t(E, h, u, c), T && Bt(u, c, h, "updated");
2234
- }, m);
2235
- }, Kt = (c, u, h, m, g, _, v) => {
2236
- for (let x = 0; x < u.length; x++) {
2237
- const y = c[x], b = u[x], T = (
2238
- // oldVNode may be an errored async setup() component inside Suspense
2239
- // which will not have a mounted element
2240
- y.el && // - In the case of a Fragment, we need to provide the actual parent
2241
- // of the Fragment itself so it can move its children.
2242
- (y.type === Ct || // - In the case of different nodes, there is going to be a replacement
2243
- // which also requires the correct parent container
2244
- !le(y, b) || // - In the case of a component, it could contain anything.
2245
- y.shapeFlag & 70) ? p(y.el) : (
2246
- // In other cases, the parent container is not actually used so we
2247
- // just pass the block element here to avoid a DOM parentNode call.
2248
- h
2249
- )
2250
- );
2251
- I(
2252
- y,
2253
- b,
2254
- T,
2255
- null,
2256
- m,
2257
- g,
2258
- _,
2259
- v,
2260
- !0
2261
- );
2262
- }
2263
- }, se = (c, u, h, m, g) => {
2264
- if (u !== h) {
2265
- if (u !== U)
2266
- for (const _ in u)
2267
- !he(_) && !(_ in h) && r(
2268
- c,
2269
- _,
2270
- u[_],
2271
- null,
2272
- g,
2273
- m
2274
- );
2275
- for (const _ in h) {
2276
- if (he(_)) continue;
2277
- const v = h[_], x = u[_];
2278
- v !== x && _ !== "value" && r(c, _, x, v, g, m);
2279
- }
2280
- "value" in h && r(c, "value", u.value, h.value, g);
2281
- }
2282
- }, Ae = (c, u, h, m, g, _, v, x, y) => {
2283
- const b = u.el = c ? c.el : l(""), T = u.anchor = c ? c.anchor : l("");
2284
- let { patchFlag: S, dynamicChildren: O, slotScopeIds: E } = u;
2285
- E && (x = x ? x.concat(E) : E), c == null ? (n(b, h, m), n(T, h, m), Mt(
2286
- // #10007
2287
- // such fragment like `<></>` will be compiled into
2288
- // a fragment which doesn't have a children.
2289
- // In this case fallback to an empty array
2290
- u.children || [],
2291
- h,
2292
- T,
2293
- g,
2294
- _,
2295
- v,
2296
- x,
2297
- y
2298
- )) : S > 0 && S & 64 && O && // #2715 the previous fragment could've been a BAILed one as a result
2299
- // of renderSlot() with no valid children
2300
- c.dynamicChildren ? (Kt(
2301
- c.dynamicChildren,
2302
- O,
2303
- h,
2304
- g,
2305
- _,
2306
- v,
2307
- x
2308
- ), // #2080 if the stable fragment has a key, it's a <template v-for> that may
2309
- // get moved around. Make sure all root level vnodes inherit el.
2310
- // #2134 or if it's a component root, it may also get moved around
2311
- // as the component is being moved.
2312
- (u.key != null || g && u === g.subTree) && wi(
2313
- c,
2314
- u,
2315
- !0
2316
- /* shallow */
2317
- )) : D(
2318
- c,
2319
- u,
2320
- h,
2321
- T,
2322
- g,
2323
- _,
2324
- v,
2325
- x,
2326
- y
2327
- );
2328
- }, Ee = (c, u, h, m, g, _, v, x, y) => {
2329
- u.slotScopeIds = x, c == null ? u.shapeFlag & 512 ? g.ctx.activate(
2330
- u,
2331
- h,
2332
- m,
2333
- v,
2334
- y
2335
- ) : ss(
2336
- u,
2337
- h,
2338
- m,
2339
- g,
2340
- _,
2341
- v,
2342
- y
2343
- ) : Ys(c, u, y);
2344
- }, ss = (c, u, h, m, g, _, v) => {
2345
- const x = c.component = zo(
2346
- c,
2347
- m,
2348
- g
2349
- );
2350
- if (fi(c) && (x.ctx.renderer = ie), Yo(x, !1, v), x.asyncDep) {
2351
- if (g && g.registerDep(x, X, v), !c.el) {
2352
- const y = x.subTree = xt(Lt);
2353
- N(null, y, u, h);
2354
- }
2355
- } else
2356
- X(
2357
- x,
2358
- c,
2359
- u,
2360
- h,
2361
- g,
2362
- _,
2363
- v
2364
- );
2365
- }, Ys = (c, u, h) => {
2366
- const m = u.component = c.component;
2367
- if (No(c, u, h))
2368
- if (m.asyncDep && !m.asyncResolved) {
2369
- V(m, u, h);
2370
- return;
2371
- } else
2372
- m.next = u, m.update();
2373
- else
2374
- u.el = c.el, m.vnode = u;
2375
- }, X = (c, u, h, m, g, _, v) => {
2376
- const x = () => {
2377
- if (c.isMounted) {
2378
- let { next: S, bu: O, u: E, parent: R, vnode: H } = c;
2379
- {
2380
- const pt = Ci(c);
2381
- if (pt) {
2382
- S && (S.el = H.el, V(c, S, v)), pt.asyncDep.then(() => {
2383
- c.isUnmounted || x();
2384
- });
2385
- return;
2386
- }
2387
- }
2388
- let F = S, rt;
2389
- Wt(c, !1), S ? (S.el = H.el, V(c, S, v)) : S = H, O && cs(O), (rt = S.props && S.props.onVnodeBeforeUpdate) && _t(rt, R, S, H), Wt(c, !0);
2390
- const et = an(c), dt = c.subTree;
2391
- c.subTree = et, I(
2392
- dt,
2393
- et,
2394
- // parent may have changed if it's in a teleport
2395
- p(dt.el),
2396
- // anchor may have changed if it's in a fragment
2397
- Re(dt),
2398
- c,
2399
- g,
2400
- _
2401
- ), S.el = et.el, F === null && Do(c, et.el), E && lt(E, g), (rt = S.props && S.props.onVnodeUpdated) && lt(
2402
- () => _t(rt, R, S, H),
2403
- g
2404
- );
2405
- } else {
2406
- let S;
2407
- const { el: O, props: E } = u, { bm: R, m: H, parent: F, root: rt, type: et } = c, dt = de(u);
2408
- Wt(c, !1), R && cs(R), !dt && (S = E && E.onVnodeBeforeMount) && _t(S, F, u), Wt(c, !0);
2409
- {
2410
- rt.ce && rt.ce._injectChildStyle(et);
2411
- const pt = c.subTree = an(c);
2412
- I(
2413
- null,
2414
- pt,
2415
- h,
2416
- m,
2417
- c,
2418
- g,
2419
- _
2420
- ), u.el = pt.el;
2421
- }
2422
- if (H && lt(H, g), !dt && (S = E && E.onVnodeMounted)) {
2423
- const pt = u;
2424
- lt(
2425
- () => _t(S, F, pt),
2426
- g
2427
- );
2428
- }
2429
- (u.shapeFlag & 256 || F && de(F.vnode) && F.vnode.shapeFlag & 256) && c.a && lt(c.a, g), c.isMounted = !0, u = h = m = null;
2430
- }
2431
- };
2432
- c.scope.on();
2433
- const y = c.effect = new Mn(x);
2434
- c.scope.off();
2435
- const b = c.update = y.run.bind(y), T = c.job = y.runIfDirty.bind(y);
2436
- T.i = c, T.id = c.uid, y.scheduler = () => Ks(T), Wt(c, !0), b();
2437
- }, V = (c, u, h) => {
2438
- u.component = c;
2439
- const m = c.vnode.props;
2440
- c.vnode = u, c.next = null, xo(c, u.props, m, h), Co(c, u.children, h), At(), nn(c), Et();
2441
- }, D = (c, u, h, m, g, _, v, x, y = !1) => {
2442
- const b = c && c.children, T = c ? c.shapeFlag : 0, S = u.children, { patchFlag: O, shapeFlag: E } = u;
2443
- if (O > 0) {
2444
- if (O & 128) {
2445
- Pe(
2446
- b,
2447
- S,
2448
- h,
2449
- m,
2450
- g,
2451
- _,
2452
- v,
2453
- x,
2454
- y
2455
- );
2456
- return;
2457
- } else if (O & 256) {
2458
- Ut(
2459
- b,
2460
- S,
2461
- h,
2462
- m,
2463
- g,
2464
- _,
2465
- v,
2466
- x,
2467
- y
2468
- );
2469
- return;
2470
- }
2471
- }
2472
- E & 8 ? (T & 16 && ne(b, g, _), S !== b && a(h, S)) : T & 16 ? E & 16 ? Pe(
2473
- b,
2474
- S,
2475
- h,
2476
- m,
2477
- g,
2478
- _,
2479
- v,
2480
- x,
2481
- y
2482
- ) : ne(b, g, _, !0) : (T & 8 && a(h, ""), E & 16 && Mt(
2483
- S,
2484
- h,
2485
- m,
2486
- g,
2487
- _,
2488
- v,
2489
- x,
2490
- y
2491
- ));
2492
- }, Ut = (c, u, h, m, g, _, v, x, y) => {
2493
- c = c || Xt, u = u || Xt;
2494
- const b = c.length, T = u.length, S = Math.min(b, T);
2495
- let O;
2496
- for (O = 0; O < S; O++) {
2497
- const E = u[O] = y ? $t(u[O]) : bt(u[O]);
2498
- I(
2499
- c[O],
2500
- E,
2501
- h,
2502
- null,
2503
- g,
2504
- _,
2505
- v,
2506
- x,
2507
- y
2508
- );
2509
- }
2510
- b > T ? ne(
2511
- c,
2512
- g,
2513
- _,
2514
- !0,
2515
- !1,
2516
- S
2517
- ) : Mt(
2518
- u,
2519
- h,
2520
- m,
2521
- g,
2522
- _,
2523
- v,
2524
- x,
2525
- y,
2526
- S
2527
- );
2528
- }, Pe = (c, u, h, m, g, _, v, x, y) => {
2529
- let b = 0;
2530
- const T = u.length;
2531
- let S = c.length - 1, O = T - 1;
2532
- for (; b <= S && b <= O; ) {
2533
- const E = c[b], R = u[b] = y ? $t(u[b]) : bt(u[b]);
2534
- if (le(E, R))
2535
- I(
2536
- E,
2537
- R,
2538
- h,
2539
- null,
2540
- g,
2541
- _,
2542
- v,
2543
- x,
2544
- y
2545
- );
2546
- else
2547
- break;
2548
- b++;
2549
- }
2550
- for (; b <= S && b <= O; ) {
2551
- const E = c[S], R = u[O] = y ? $t(u[O]) : bt(u[O]);
2552
- if (le(E, R))
2553
- I(
2554
- E,
2555
- R,
2556
- h,
2557
- null,
2558
- g,
2559
- _,
2560
- v,
2561
- x,
2562
- y
2563
- );
2564
- else
2565
- break;
2566
- S--, O--;
2567
- }
2568
- if (b > S) {
2569
- if (b <= O) {
2570
- const E = O + 1, R = E < T ? u[E].el : m;
2571
- for (; b <= O; )
2572
- I(
2573
- null,
2574
- u[b] = y ? $t(u[b]) : bt(u[b]),
2575
- h,
2576
- R,
2577
- g,
2578
- _,
2579
- v,
2580
- x,
2581
- y
2582
- ), b++;
2583
- }
2584
- } else if (b > O)
2585
- for (; b <= S; )
2586
- ht(c[b], g, _, !0), b++;
2587
- else {
2588
- const E = b, R = b, H = /* @__PURE__ */ new Map();
2589
- for (b = R; b <= O; b++) {
2590
- const ot = u[b] = y ? $t(u[b]) : bt(u[b]);
2591
- ot.key != null && H.set(ot.key, b);
2592
- }
2593
- let F, rt = 0;
2594
- const et = O - R + 1;
2595
- let dt = !1, pt = 0;
2596
- const re = new Array(et);
2597
- for (b = 0; b < et; b++) re[b] = 0;
2598
- for (b = E; b <= S; b++) {
2599
- const ot = c[b];
2600
- if (rt >= et) {
2601
- ht(ot, g, _, !0);
2602
- continue;
2603
- }
2604
- let gt;
2605
- if (ot.key != null)
2606
- gt = H.get(ot.key);
2607
- else
2608
- for (F = R; F <= O; F++)
2609
- if (re[F - R] === 0 && le(ot, u[F])) {
2610
- gt = F;
2611
- break;
2612
- }
2613
- gt === void 0 ? ht(ot, g, _, !0) : (re[gt - R] = b + 1, gt >= pt ? pt = gt : dt = !0, I(
2614
- ot,
2615
- u[gt],
2616
- h,
2617
- null,
2618
- g,
2619
- _,
2620
- v,
2621
- x,
2622
- y
2623
- ), rt++);
2624
- }
2625
- const Qs = dt ? Eo(re) : Xt;
2626
- for (F = Qs.length - 1, b = et - 1; b >= 0; b--) {
2627
- const ot = R + b, gt = u[ot], ks = ot + 1 < T ? u[ot + 1].el : m;
2628
- re[b] === 0 ? I(
2629
- null,
2630
- gt,
2631
- h,
2632
- ks,
2633
- g,
2634
- _,
2635
- v,
2636
- x,
2637
- y
2638
- ) : dt && (F < 0 || b !== Qs[F] ? Vt(gt, h, ks, 2) : F--);
2639
- }
2640
- }
2641
- }, Vt = (c, u, h, m, g = null) => {
2642
- const { el: _, type: v, transition: x, children: y, shapeFlag: b } = c;
2643
- if (b & 6) {
2644
- Vt(c.component.subTree, u, h, m);
2645
- return;
2646
- }
2647
- if (b & 128) {
2648
- c.suspense.move(u, h, m);
2649
- return;
2650
- }
2651
- if (b & 64) {
2652
- v.move(c, u, h, ie);
2653
- return;
2654
- }
2655
- if (v === Ct) {
2656
- n(_, u, h);
2657
- for (let S = 0; S < y.length; S++)
2658
- Vt(y[S], u, h, m);
2659
- n(c.anchor, u, h);
2660
- return;
2661
- }
2662
- if (v === ds) {
2663
- W(c, u, h);
2664
- return;
2665
- }
2666
- if (m !== 2 && b & 1 && x)
2667
- if (m === 0)
2668
- x.beforeEnter(_), n(_, u, h), lt(() => x.enter(_), g);
2669
- else {
2670
- const { leave: S, delayLeave: O, afterLeave: E } = x, R = () => {
2671
- c.ctx.isUnmounted ? i(_) : n(_, u, h);
2672
- }, H = () => {
2673
- S(_, () => {
2674
- R(), E && E();
2675
- });
2676
- };
2677
- O ? O(_, R, H) : H();
2678
- }
2679
- else
2680
- n(_, u, h);
2681
- }, ht = (c, u, h, m = !1, g = !1) => {
2682
- const {
2683
- type: _,
2684
- props: v,
2685
- ref: x,
2686
- children: y,
2687
- dynamicChildren: b,
2688
- shapeFlag: T,
2689
- patchFlag: S,
2690
- dirs: O,
2691
- cacheIndex: E
2692
- } = c;
2693
- if (S === -2 && (g = !1), x != null && (At(), Be(x, null, h, c, !0), Et()), E != null && (u.renderCache[E] = void 0), T & 256) {
2694
- u.ctx.deactivate(c);
2695
- return;
2696
- }
2697
- const R = T & 1 && O, H = !de(c);
2698
- let F;
2699
- if (H && (F = v && v.onVnodeBeforeUnmount) && _t(F, u, c), T & 6)
2700
- Ki(c.component, h, m);
2701
- else {
2702
- if (T & 128) {
2703
- c.suspense.unmount(h, m);
2704
- return;
2705
- }
2706
- R && Bt(c, null, u, "beforeUnmount"), T & 64 ? c.type.remove(
2707
- c,
2708
- u,
2709
- h,
2710
- ie,
2711
- m
2712
- ) : b && // #5154
2713
- // when v-once is used inside a block, setBlockTracking(-1) marks the
2714
- // parent block with hasOnce: true
2715
- // so that it doesn't take the fast path during unmount - otherwise
2716
- // components nested in v-once are never unmounted.
2717
- !b.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
2718
- (_ !== Ct || S > 0 && S & 64) ? ne(
2719
- b,
2720
- u,
2721
- h,
2722
- !1,
2723
- !0
2724
- ) : (_ === Ct && S & 384 || !g && T & 16) && ne(y, u, h), m && Zs(c);
2725
- }
2726
- (H && (F = v && v.onVnodeUnmounted) || R) && lt(() => {
2727
- F && _t(F, u, c), R && Bt(c, null, u, "unmounted");
2728
- }, h);
2729
- }, Zs = (c) => {
2730
- const { type: u, el: h, anchor: m, transition: g } = c;
2731
- if (u === Ct) {
2732
- Li(h, m);
2733
- return;
2734
- }
2735
- if (u === ds) {
2736
- A(c);
2737
- return;
2738
- }
2739
- const _ = () => {
2740
- i(h), g && !g.persisted && g.afterLeave && g.afterLeave();
2741
- };
2742
- if (c.shapeFlag & 1 && g && !g.persisted) {
2743
- const { leave: v, delayLeave: x } = g, y = () => v(h, _);
2744
- x ? x(c.el, _, y) : y();
2745
- } else
2746
- _();
2747
- }, Li = (c, u) => {
2748
- let h;
2749
- for (; c !== u; )
2750
- h = w(c), i(c), c = h;
2751
- i(u);
2752
- }, Ki = (c, u, h) => {
2753
- const {
2754
- bum: m,
2755
- scope: g,
2756
- job: _,
2757
- subTree: v,
2758
- um: x,
2759
- m: y,
2760
- a: b,
2761
- parent: T,
2762
- slots: { __: S }
2763
- } = c;
2764
- un(y), un(b), m && cs(m), T && M(S) && S.forEach((O) => {
2765
- T.renderCache[O] = void 0;
2766
- }), g.stop(), _ && (_.flags |= 8, ht(v, c, u, h)), x && lt(x, u), lt(() => {
2767
- c.isUnmounted = !0;
2768
- }, u), u && u.pendingBranch && !u.isUnmounted && c.asyncDep && !c.asyncResolved && c.suspenseId === u.pendingId && (u.deps--, u.deps === 0 && u.resolve());
2769
- }, ne = (c, u, h, m = !1, g = !1, _ = 0) => {
2770
- for (let v = _; v < c.length; v++)
2771
- ht(c[v], u, h, m, g);
2772
- }, Re = (c) => {
2773
- if (c.shapeFlag & 6)
2774
- return Re(c.component.subTree);
2775
- if (c.shapeFlag & 128)
2776
- return c.suspense.next();
2777
- const u = w(c.anchor || c.el), h = u && u[Jr];
2778
- return h ? w(h) : u;
2779
- };
2780
- let ns = !1;
2781
- const Xs = (c, u, h) => {
2782
- c == null ? u._vnode && ht(u._vnode, null, null, !0) : I(
2783
- u._vnode || null,
2784
- c,
2785
- u,
2786
- null,
2787
- null,
2788
- null,
2789
- h
2790
- ), u._vnode = c, ns || (ns = !0, nn(), ri(), ns = !1);
2791
- }, ie = {
2792
- p: I,
2793
- um: ht,
2794
- m: Vt,
2795
- r: Zs,
2796
- mt: ss,
2797
- mc: Mt,
2798
- pc: D,
2799
- pbc: Kt,
2800
- n: Re,
2801
- o: t
2802
- };
2803
- return {
2804
- render: Xs,
2805
- hydrate: void 0,
2806
- createApp: mo(Xs)
2807
- };
2808
- }
2809
- function as({ type: t, props: e }, s) {
2810
- return s === "svg" && t === "foreignObject" || s === "mathml" && t === "annotation-xml" && e && e.encoding && e.encoding.includes("html") ? void 0 : s;
2811
- }
2812
- function Wt({ effect: t, job: e }, s) {
2813
- s ? (t.flags |= 32, e.flags |= 4) : (t.flags &= -33, e.flags &= -5);
2814
- }
2815
- function Ao(t, e) {
2816
- return (!t || t && !t.pendingBranch) && e && !e.persisted;
2817
- }
2818
- function wi(t, e, s = !1) {
2819
- const n = t.children, i = e.children;
2820
- if (M(n) && M(i))
2821
- for (let r = 0; r < n.length; r++) {
2822
- const o = n[r];
2823
- let l = i[r];
2824
- l.shapeFlag & 1 && !l.dynamicChildren && ((l.patchFlag <= 0 || l.patchFlag === 32) && (l = i[r] = $t(i[r]), l.el = o.el), !s && l.patchFlag !== -2 && wi(o, l)), l.type === es && (l.el = o.el), l.type === Lt && !l.el && (l.el = o.el);
2825
- }
2826
- }
2827
- function Eo(t) {
2828
- const e = t.slice(), s = [0];
2829
- let n, i, r, o, l;
2830
- const f = t.length;
2831
- for (n = 0; n < f; n++) {
2832
- const d = t[n];
2833
- if (d !== 0) {
2834
- if (i = s[s.length - 1], t[i] < d) {
2835
- e[n] = i, s.push(n);
2836
- continue;
2837
- }
2838
- for (r = 0, o = s.length - 1; r < o; )
2839
- l = r + o >> 1, t[s[l]] < d ? r = l + 1 : o = l;
2840
- d < t[s[r]] && (r > 0 && (e[n] = s[r - 1]), s[r] = n);
2841
- }
2842
- }
2843
- for (r = s.length, o = s[r - 1]; r-- > 0; )
2844
- s[r] = o, o = e[o];
2845
- return s;
2846
- }
2847
- function Ci(t) {
2848
- const e = t.subTree.component;
2849
- if (e)
2850
- return e.asyncDep && !e.asyncResolved ? e : Ci(e);
2851
- }
2852
- function un(t) {
2853
- if (t)
2854
- for (let e = 0; e < t.length; e++)
2855
- t[e].flags |= 8;
2856
- }
2857
- const Po = Symbol.for("v-scx"), Ro = () => je(Po);
2858
- function Jl(t, e) {
2859
- return Ws(t, null, e);
2860
- }
2861
- function hs(t, e, s) {
2862
- return Ws(t, e, s);
2863
- }
2864
- function Ws(t, e, s = U) {
2865
- const { immediate: n, deep: i, flush: r, once: o } = s, l = nt({}, s), f = e && n || !e && r !== "post";
2866
- let d;
2867
- if (xe) {
2868
- if (r === "sync") {
2869
- const C = Ro();
2870
- d = C.__watcherHandles || (C.__watcherHandles = []);
2871
- } else if (!f) {
2872
- const C = () => {
2873
- };
2874
- return C.stop = Tt, C.resume = Tt, C.pause = Tt, C;
2875
- }
2876
- }
2877
- const a = tt;
2878
- l.call = (C, $, I) => vt(C, a, $, I);
2879
- let p = !1;
2880
- r === "post" ? l.scheduler = (C) => {
2881
- lt(C, a && a.suspense);
2882
- } : r !== "sync" && (p = !0, l.scheduler = (C, $) => {
2883
- $ ? C() : Ks(C);
2884
- }), l.augmentJob = (C) => {
2885
- e && (C.flags |= 4), p && (C.flags |= 2, a && (C.id = a.uid, C.i = a));
2886
- };
2887
- const w = Tr(t, e, l);
2888
- return xe && (d ? d.push(w) : f && w()), w;
2889
- }
2890
- function Mo(t, e, s) {
2891
- const n = this.proxy, i = it(t) ? t.includes(".") ? Oi(n, t) : () => n[t] : t.bind(n, n);
2892
- let r;
2893
- P(e) ? r = e : (r = e.handler, s = e);
2894
- const o = Oe(this), l = Ws(i, r.bind(n), s);
2895
- return o(), l;
2896
- }
2897
- function Oi(t, e) {
2898
- const s = e.split(".");
2899
- return () => {
2900
- let n = t;
2901
- for (let i = 0; i < s.length && n; i++)
2902
- n = n[s[i]];
2903
- return n;
2904
- };
2905
- }
2906
- const Io = (t, e) => e === "modelValue" || e === "model-value" ? t.modelModifiers : t[`${e}Modifiers`] || t[`${Jt(e)}Modifiers`] || t[`${we(e)}Modifiers`];
2907
- function $o(t, e, ...s) {
2908
- if (t.isUnmounted) return;
2909
- const n = t.vnode.props || U;
2910
- let i = s;
2911
- const r = e.startsWith("update:"), o = r && Io(n, e.slice(7));
2912
- o && (o.trim && (i = s.map((a) => it(a) ? a.trim() : a)), o.number && (i = s.map(Dr)));
2913
- let l, f = n[l = ls(e)] || // also try camelCase event handler (#2249)
2914
- n[l = ls(Jt(e))];
2915
- !f && r && (f = n[l = ls(we(e))]), f && vt(
2916
- f,
2917
- t,
2918
- 6,
2919
- i
2920
- );
2921
- const d = n[l + "Once"];
2922
- if (d) {
2923
- if (!t.emitted)
2924
- t.emitted = {};
2925
- else if (t.emitted[l])
2926
- return;
2927
- t.emitted[l] = !0, vt(
2928
- d,
2929
- t,
2930
- 6,
2931
- i
2932
- );
2933
- }
2934
- }
2935
- function Ti(t, e, s = !1) {
2936
- const n = e.emitsCache, i = n.get(t);
2937
- if (i !== void 0)
2938
- return i;
2939
- const r = t.emits;
2940
- let o = {}, l = !1;
2941
- if (!P(t)) {
2942
- const f = (d) => {
2943
- const a = Ti(d, e, !0);
2944
- a && (l = !0, nt(o, a));
2945
- };
2946
- !s && e.mixins.length && e.mixins.forEach(f), t.extends && f(t.extends), t.mixins && t.mixins.forEach(f);
2947
- }
2948
- return !r && !l ? (G(t) && n.set(t, null), null) : (M(r) ? r.forEach((f) => o[f] = null) : nt(o, r), G(t) && n.set(t, o), o);
2949
- }
2950
- function ts(t, e) {
2951
- return !t || !Ns(e) ? !1 : (e = e.slice(2).replace(/Once$/, ""), K(t, e[0].toLowerCase() + e.slice(1)) || K(t, we(e)) || K(t, e));
2952
- }
2953
- function an(t) {
2954
- const {
2955
- type: e,
2956
- vnode: s,
2957
- proxy: n,
2958
- withProxy: i,
2959
- propsOptions: [r],
2960
- slots: o,
2961
- attrs: l,
2962
- emit: f,
2963
- render: d,
2964
- renderCache: a,
2965
- props: p,
2966
- data: w,
2967
- setupState: C,
2968
- ctx: $,
2969
- inheritAttrs: I
2970
- } = t, z = Ve(t);
2971
- let N, B;
2972
- try {
2973
- if (s.shapeFlag & 4) {
2974
- const A = i || n, q = A;
2975
- N = bt(
2976
- d.call(
2977
- q,
2978
- A,
2979
- a,
2980
- p,
2981
- C,
2982
- w,
2983
- $
2984
- )
2985
- ), B = l;
2986
- } else {
2987
- const A = e;
2988
- N = bt(
2989
- A.length > 1 ? A(
2990
- p,
2991
- { attrs: l, slots: o, emit: f }
2992
- ) : A(
2993
- p,
2994
- null
2995
- )
2996
- ), B = e.props ? l : jo(l);
2997
- }
2998
- } catch (A) {
2999
- ge.length = 0, Qe(A, t, 1), N = xt(Lt);
3000
- }
3001
- let W = N;
3002
- if (B && I !== !1) {
3003
- const A = Object.keys(B), { shapeFlag: q } = W;
3004
- A.length && q & 7 && (r && A.some(Yn) && (B = Fo(
3005
- B,
3006
- r
3007
- )), W = te(W, B, !1, !0));
3008
- }
3009
- return s.dirs && (W = te(W, null, !1, !0), W.dirs = W.dirs ? W.dirs.concat(s.dirs) : s.dirs), s.transition && Us(W, s.transition), N = W, Ve(z), N;
3010
- }
3011
- const jo = (t) => {
3012
- let e;
3013
- for (const s in t)
3014
- (s === "class" || s === "style" || Ns(s)) && ((e || (e = {}))[s] = t[s]);
3015
- return e;
3016
- }, Fo = (t, e) => {
3017
- const s = {};
3018
- for (const n in t)
3019
- (!Yn(n) || !(n.slice(9) in e)) && (s[n] = t[n]);
3020
- return s;
3021
- };
3022
- function No(t, e, s) {
3023
- const { props: n, children: i, component: r } = t, { props: o, children: l, patchFlag: f } = e, d = r.emitsOptions;
3024
- if (e.dirs || e.transition)
3025
- return !0;
3026
- if (s && f >= 0) {
3027
- if (f & 1024)
3028
- return !0;
3029
- if (f & 16)
3030
- return n ? hn(n, o, d) : !!o;
3031
- if (f & 8) {
3032
- const a = e.dynamicProps;
3033
- for (let p = 0; p < a.length; p++) {
3034
- const w = a[p];
3035
- if (o[w] !== n[w] && !ts(d, w))
3036
- return !0;
3037
- }
3038
- }
3039
- } else
3040
- return (i || l) && (!l || !l.$stable) ? !0 : n === o ? !1 : n ? o ? hn(n, o, d) : !0 : !!o;
3041
- return !1;
3042
- }
3043
- function hn(t, e, s) {
3044
- const n = Object.keys(e);
3045
- if (n.length !== Object.keys(t).length)
3046
- return !0;
3047
- for (let i = 0; i < n.length; i++) {
3048
- const r = n[i];
3049
- if (e[r] !== t[r] && !ts(s, r))
3050
- return !0;
3051
- }
3052
- return !1;
3053
- }
3054
- function Do({ vnode: t, parent: e }, s) {
3055
- for (; e; ) {
3056
- const n = e.subTree;
3057
- if (n.suspense && n.suspense.activeBranch === t && (n.el = t.el), n === t)
3058
- (t = e.vnode).el = s, e = e.parent;
3059
- else
3060
- break;
3061
- }
3062
- }
3063
- const Ai = (t) => t.__isSuspense;
3064
- function Ho(t, e) {
3065
- e && e.pendingBranch ? M(t) ? e.effects.push(...t) : e.effects.push(t) : qr(t);
3066
- }
3067
- const Ct = Symbol.for("v-fgt"), es = Symbol.for("v-txt"), Lt = Symbol.for("v-cmt"), ds = Symbol.for("v-stc"), ge = [];
3068
- let ct = null;
3069
- function Lo(t = !1) {
3070
- ge.push(ct = t ? null : []);
3071
- }
3072
- function Ko() {
3073
- ge.pop(), ct = ge[ge.length - 1] || null;
3074
- }
3075
- let ye = 1;
3076
- function dn(t, e = !1) {
3077
- ye += t, t < 0 && ct && e && (ct.hasOnce = !0);
3078
- }
3079
- function Ei(t) {
3080
- return t.dynamicChildren = ye > 0 ? ct || Xt : null, Ko(), ye > 0 && ct && ct.push(t), t;
3081
- }
3082
- function zl(t, e, s, n, i, r) {
3083
- return Ei(
3084
- Mi(
3085
- t,
3086
- e,
3087
- s,
3088
- n,
3089
- i,
3090
- r,
3091
- !0
3092
- )
3093
- );
3094
- }
3095
- function Uo(t, e, s, n, i) {
3096
- return Ei(
3097
- xt(
3098
- t,
3099
- e,
3100
- s,
3101
- n,
3102
- i,
3103
- !0
3104
- )
3105
- );
3106
- }
3107
- function Pi(t) {
3108
- return t ? t.__v_isVNode === !0 : !1;
3109
- }
3110
- function le(t, e) {
3111
- return t.type === e.type && t.key === e.key;
3112
- }
3113
- const Ri = ({ key: t }) => t ?? null, Fe = ({
3114
- ref: t,
3115
- ref_key: e,
3116
- ref_for: s
3117
- }) => (typeof t == "number" && (t = "" + t), t != null ? it(t) || Z(t) || P(t) ? { i: yt, r: t, k: e, f: !!s } : t : null);
3118
- function Mi(t, e = null, s = null, n = 0, i = null, r = t === Ct ? 0 : 1, o = !1, l = !1) {
3119
- const f = {
3120
- __v_isVNode: !0,
3121
- __v_skip: !0,
3122
- type: t,
3123
- props: e,
3124
- key: e && Ri(e),
3125
- ref: e && Fe(e),
3126
- scopeId: li,
3127
- slotScopeIds: null,
3128
- children: s,
3129
- component: null,
3130
- suspense: null,
3131
- ssContent: null,
3132
- ssFallback: null,
3133
- dirs: null,
3134
- transition: null,
3135
- el: null,
3136
- anchor: null,
3137
- target: null,
3138
- targetStart: null,
3139
- targetAnchor: null,
3140
- staticCount: 0,
3141
- shapeFlag: r,
3142
- patchFlag: n,
3143
- dynamicProps: i,
3144
- dynamicChildren: null,
3145
- appContext: null,
3146
- ctx: yt
3147
- };
3148
- return l ? (qs(f, s), r & 128 && t.normalize(f)) : s && (f.shapeFlag |= it(s) ? 8 : 16), ye > 0 && // avoid a block node from tracking itself
3149
- !o && // has current parent block
3150
- ct && // presence of a patch flag indicates this node needs patching on updates.
3151
- // component nodes also should always be patched, because even if the
3152
- // component doesn't need to update, it needs to persist the instance on to
3153
- // the next vnode so that it can be properly unmounted later.
3154
- (f.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
3155
- // vnode should not be considered dynamic due to handler caching.
3156
- f.patchFlag !== 32 && ct.push(f), f;
3157
- }
3158
- const xt = Vo;
3159
- function Vo(t, e = null, s = null, n = 0, i = null, r = !1) {
3160
- if ((!t || t === co) && (t = Lt), Pi(t)) {
3161
- const l = te(
3162
- t,
3163
- e,
3164
- !0
3165
- /* mergeRef: true */
3166
- );
3167
- return s && qs(l, s), ye > 0 && !r && ct && (l.shapeFlag & 6 ? ct[ct.indexOf(t)] = l : ct.push(l)), l.patchFlag = -2, l;
3168
- }
3169
- if (ko(t) && (t = t.__vccOpts), e) {
3170
- e = Bo(e);
3171
- let { class: l, style: f } = e;
3172
- l && !it(l) && (e.class = Ls(l)), G(f) && (Fs(f) && !M(f) && (f = nt({}, f)), e.style = Hs(f));
3173
- }
3174
- const o = it(t) ? 1 : Ai(t) ? 128 : zr(t) ? 64 : G(t) ? 4 : P(t) ? 2 : 0;
3175
- return Mi(
3176
- t,
3177
- e,
3178
- s,
3179
- n,
3180
- i,
3181
- o,
3182
- r,
3183
- !0
3184
- );
3185
- }
3186
- function Bo(t) {
3187
- return t ? Fs(t) || mi(t) ? nt({}, t) : t : null;
3188
- }
3189
- function te(t, e, s = !1, n = !1) {
3190
- const { props: i, ref: r, patchFlag: o, children: l, transition: f } = t, d = e ? qo(i || {}, e) : i, a = {
3191
- __v_isVNode: !0,
3192
- __v_skip: !0,
3193
- type: t.type,
3194
- props: d,
3195
- key: d && Ri(d),
3196
- ref: e && e.ref ? (
3197
- // #2078 in the case of <component :is="vnode" ref="extra"/>
3198
- // if the vnode itself already has a ref, cloneVNode will need to merge
3199
- // the refs so the single vnode can be set on multiple refs
3200
- s && r ? M(r) ? r.concat(Fe(e)) : [r, Fe(e)] : Fe(e)
3201
- ) : r,
3202
- scopeId: t.scopeId,
3203
- slotScopeIds: t.slotScopeIds,
3204
- children: l,
3205
- target: t.target,
3206
- targetStart: t.targetStart,
3207
- targetAnchor: t.targetAnchor,
3208
- staticCount: t.staticCount,
3209
- shapeFlag: t.shapeFlag,
3210
- // if the vnode is cloned with extra props, we can no longer assume its
3211
- // existing patch flag to be reliable and need to add the FULL_PROPS flag.
3212
- // note: preserve flag for fragments since they use the flag for children
3213
- // fast paths only.
3214
- patchFlag: e && t.type !== Ct ? o === -1 ? 16 : o | 16 : o,
3215
- dynamicProps: t.dynamicProps,
3216
- dynamicChildren: t.dynamicChildren,
3217
- appContext: t.appContext,
3218
- dirs: t.dirs,
3219
- transition: f,
3220
- // These should technically only be non-null on mounted VNodes. However,
3221
- // they *should* be copied for kept-alive vnodes. So we just always copy
3222
- // them since them being non-null during a mount doesn't affect the logic as
3223
- // they will simply be overwritten.
3224
- component: t.component,
3225
- suspense: t.suspense,
3226
- ssContent: t.ssContent && te(t.ssContent),
3227
- ssFallback: t.ssFallback && te(t.ssFallback),
3228
- el: t.el,
3229
- anchor: t.anchor,
3230
- ctx: t.ctx,
3231
- ce: t.ce
3232
- };
3233
- return f && n && Us(
3234
- a,
3235
- f.clone(a)
3236
- ), a;
3237
- }
3238
- function Wo(t = " ", e = 0) {
3239
- return xt(es, null, t, e);
3240
- }
3241
- function Yl(t = "", e = !1) {
3242
- return e ? (Lo(), Uo(Lt, null, t)) : xt(Lt, null, t);
3243
- }
3244
- function bt(t) {
3245
- return t == null || typeof t == "boolean" ? xt(Lt) : M(t) ? xt(
3246
- Ct,
3247
- null,
3248
- // #3666, avoid reference pollution when reusing vnode
3249
- t.slice()
3250
- ) : Pi(t) ? $t(t) : xt(es, null, String(t));
3251
- }
3252
- function $t(t) {
3253
- return t.el === null && t.patchFlag !== -1 || t.memo ? t : te(t);
3254
- }
3255
- function qs(t, e) {
3256
- let s = 0;
3257
- const { shapeFlag: n } = t;
3258
- if (e == null)
3259
- e = null;
3260
- else if (M(e))
3261
- s = 16;
3262
- else if (typeof e == "object")
3263
- if (n & 65) {
3264
- const i = e.default;
3265
- i && (i._c && (i._d = !1), qs(t, i()), i._c && (i._d = !0));
3266
- return;
3267
- } else {
3268
- s = 32;
3269
- const i = e._;
3270
- !i && !mi(e) ? e._ctx = yt : i === 3 && yt && (yt.slots._ === 1 ? e._ = 1 : (e._ = 2, t.patchFlag |= 1024));
3271
- }
3272
- else P(e) ? (e = { default: e, _ctx: yt }, s = 32) : (e = String(e), n & 64 ? (s = 16, e = [Wo(e)]) : s = 8);
3273
- t.children = e, t.shapeFlag |= s;
3274
- }
3275
- function qo(...t) {
3276
- const e = {};
3277
- for (let s = 0; s < t.length; s++) {
3278
- const n = t[s];
3279
- for (const i in n)
3280
- if (i === "class")
3281
- e.class !== n.class && (e.class = Ls([e.class, n.class]));
3282
- else if (i === "style")
3283
- e.style = Hs([e.style, n.style]);
3284
- else if (Ns(i)) {
3285
- const r = e[i], o = n[i];
3286
- o && r !== o && !(M(r) && r.includes(o)) && (e[i] = r ? [].concat(r, o) : o);
3287
- } else i !== "" && (e[i] = n[i]);
3288
- }
3289
- return e;
3290
- }
3291
- function _t(t, e, s, n = null) {
3292
- vt(t, e, 7, [
3293
- s,
3294
- n
3295
- ]);
3296
- }
3297
- const Go = pi();
3298
- let Jo = 0;
3299
- function zo(t, e, s) {
3300
- const n = t.type, i = (e ? e.appContext : t.appContext) || Go, r = {
3301
- uid: Jo++,
3302
- vnode: t,
3303
- type: n,
3304
- parent: e,
3305
- appContext: i,
3306
- root: null,
3307
- // to be immediately set
3308
- next: null,
3309
- subTree: null,
3310
- // will be set synchronously right after creation
3311
- effect: null,
3312
- update: null,
3313
- // will be set synchronously right after creation
3314
- job: null,
3315
- scope: new ki(
3316
- !0
3317
- /* detached */
3318
- ),
3319
- render: null,
3320
- proxy: null,
3321
- exposed: null,
3322
- exposeProxy: null,
3323
- withProxy: null,
3324
- provides: e ? e.provides : Object.create(i.provides),
3325
- ids: e ? e.ids : ["", 0, 0],
3326
- accessCache: null,
3327
- renderCache: [],
3328
- // local resolved assets
3329
- components: null,
3330
- directives: null,
3331
- // resolved props and emits options
3332
- propsOptions: yi(n, i),
3333
- emitsOptions: Ti(n, i),
3334
- // emit
3335
- emit: null,
3336
- // to be set immediately
3337
- emitted: null,
3338
- // props default value
3339
- propsDefaults: U,
3340
- // inheritAttrs
3341
- inheritAttrs: n.inheritAttrs,
3342
- // state
3343
- ctx: U,
3344
- data: U,
3345
- props: U,
3346
- attrs: U,
3347
- slots: U,
3348
- refs: U,
3349
- setupState: U,
3350
- setupContext: null,
3351
- // suspense related
3352
- suspense: s,
3353
- suspenseId: s ? s.pendingId : 0,
3354
- asyncDep: null,
3355
- asyncResolved: !1,
3356
- // lifecycle hooks
3357
- // not using enums here because it results in computed properties
3358
- isMounted: !1,
3359
- isUnmounted: !1,
3360
- isDeactivated: !1,
3361
- bc: null,
3362
- c: null,
3363
- bm: null,
3364
- m: null,
3365
- bu: null,
3366
- u: null,
3367
- um: null,
3368
- bum: null,
3369
- da: null,
3370
- a: null,
3371
- rtg: null,
3372
- rtc: null,
3373
- ec: null,
3374
- sp: null
3375
- };
3376
- return r.ctx = { _: r }, r.root = e ? e.root : r, r.emit = $o.bind(null, r), t.ce && t.ce(r), r;
3377
- }
3378
- let tt = null, qe, Os;
3379
- {
3380
- const t = Xe(), e = (s, n) => {
3381
- let i;
3382
- return (i = t[s]) || (i = t[s] = []), i.push(n), (r) => {
3383
- i.length > 1 ? i.forEach((o) => o(r)) : i[0](r);
3384
- };
3385
- };
3386
- qe = e(
3387
- "__VUE_INSTANCE_SETTERS__",
3388
- (s) => tt = s
3389
- ), Os = e(
3390
- "__VUE_SSR_SETTERS__",
3391
- (s) => xe = s
3392
- );
3393
- }
3394
- const Oe = (t) => {
3395
- const e = tt;
3396
- return qe(t), t.scope.on(), () => {
3397
- t.scope.off(), qe(e);
3398
- };
3399
- }, pn = () => {
3400
- tt && tt.scope.off(), qe(null);
3401
- };
3402
- function Ii(t) {
3403
- return t.vnode.shapeFlag & 4;
3404
- }
3405
- let xe = !1;
3406
- function Yo(t, e = !1, s = !1) {
3407
- e && Os(e);
3408
- const { props: n, children: i } = t.vnode, r = Ii(t);
3409
- yo(t, n, r, e), wo(t, i, s || e);
3410
- const o = r ? Zo(t, e) : void 0;
3411
- return e && Os(!1), o;
3412
- }
3413
- function Zo(t, e) {
3414
- const s = t.type;
3415
- t.accessCache = /* @__PURE__ */ Object.create(null), t.proxy = new Proxy(t.ctx, fo);
3416
- const { setup: n } = s;
3417
- if (n) {
3418
- At();
3419
- const i = t.setupContext = n.length > 1 ? Qo(t) : null, r = Oe(t), o = Ce(
3420
- n,
3421
- t,
3422
- 0,
3423
- [
3424
- t.props,
3425
- i
3426
- ]
3427
- ), l = Qn(o);
3428
- if (Et(), r(), (l || t.sp) && !de(t) && ci(t), l) {
3429
- if (o.then(pn, pn), e)
3430
- return o.then((f) => {
3431
- gn(t, f);
3432
- }).catch((f) => {
3433
- Qe(f, t, 0);
3434
- });
3435
- t.asyncDep = o;
3436
- } else
3437
- gn(t, o);
3438
- } else
3439
- $i(t);
3440
- }
3441
- function gn(t, e, s) {
3442
- P(e) ? t.type.__ssrInlineRender ? t.ssrRender = e : t.render = e : G(e) && (t.setupState = zn(e)), $i(t);
3443
- }
3444
- function $i(t, e, s) {
3445
- const n = t.type;
3446
- t.render || (t.render = n.render || Tt);
3447
- {
3448
- const i = Oe(t);
3449
- At();
3450
- try {
3451
- uo(t);
3452
- } finally {
3453
- Et(), i();
3454
- }
3455
- }
3456
- }
3457
- const Xo = {
3458
- get(t, e) {
3459
- return Y(t, "get", ""), t[e];
3460
- }
3461
- };
3462
- function Qo(t) {
3463
- const e = (s) => {
3464
- t.exposed = s || {};
3465
- };
3466
- return {
3467
- attrs: new Proxy(t.attrs, Xo),
3468
- slots: t.slots,
3469
- emit: t.emit,
3470
- expose: e
3471
- };
3472
- }
3473
- function Gs(t) {
3474
- return t.exposed ? t.exposeProxy || (t.exposeProxy = new Proxy(zn(xr(t.exposed)), {
3475
- get(e, s) {
3476
- if (s in e)
3477
- return e[s];
3478
- if (s in pe)
3479
- return pe[s](t);
3480
- },
3481
- has(e, s) {
3482
- return s in e || s in pe;
3483
- }
3484
- })) : t.proxy;
3485
- }
3486
- function ko(t) {
3487
- return P(t) && "__vccOpts" in t;
3488
- }
3489
- const tl = (t, e) => Cr(t, e, xe), el = "3.5.14";
3490
- /**
3491
- * @vue/shared v3.5.14
3492
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
3493
- * @license MIT
3494
- **/
3495
- /*! #__NO_SIDE_EFFECTS__ */
3496
- // @__NO_SIDE_EFFECTS__
3497
- function sl(t) {
3498
- const e = /* @__PURE__ */ Object.create(null);
3499
- for (const s of t.split(",")) e[s] = 1;
3500
- return (s) => s in e;
3501
- }
3502
- const nl = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
3503
- (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), il = (t) => t.startsWith("onUpdate:"), Ge = Object.assign, rl = Object.prototype.hasOwnProperty, ol = (t, e) => rl.call(t, e), Je = Array.isArray, ji = (t) => typeof t == "function", ee = (t) => typeof t == "string", ll = (t) => typeof t == "symbol", cl = Object.prototype.toString, fl = (t) => cl.call(t), Fi = (t) => fl(t) === "[object Object]", Js = (t) => {
3504
- const e = /* @__PURE__ */ Object.create(null);
3505
- return (s) => e[s] || (e[s] = t(s));
3506
- }, ul = /-(\w)/g, Ne = Js(
3507
- (t) => t.replace(ul, (e, s) => s ? s.toUpperCase() : "")
3508
- ), al = /\B([A-Z])/g, Ft = Js(
3509
- (t) => t.replace(al, "-$1").toLowerCase()
3510
- ), hl = Js((t) => t.charAt(0).toUpperCase() + t.slice(1)), _n = (t) => {
3511
- const e = ee(t) ? Number(t) : NaN;
3512
- return isNaN(e) ? t : e;
3513
- }, dl = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", pl = /* @__PURE__ */ sl(dl);
3514
- function Ni(t) {
3515
- return !!t || t === "";
3516
- }
3517
- /**
3518
- * @vue/runtime-dom v3.5.14
3519
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
3520
- * @license MIT
3521
- **/
3522
- let Ts;
3523
- const mn = typeof window < "u" && window.trustedTypes;
3524
- if (mn)
3525
- try {
3526
- Ts = /* @__PURE__ */ mn.createPolicy("vue", {
3527
- createHTML: (t) => t
3528
- });
3529
- } catch {
3530
- }
3531
- const Di = Ts ? (t) => Ts.createHTML(t) : (t) => t, gl = "http://www.w3.org/2000/svg", _l = "http://www.w3.org/1998/Math/MathML", wt = typeof document < "u" ? document : null, bn = wt && /* @__PURE__ */ wt.createElement("template"), ml = {
3532
- insert: (t, e, s) => {
3533
- e.insertBefore(t, s || null);
3534
- },
3535
- remove: (t) => {
3536
- const e = t.parentNode;
3537
- e && e.removeChild(t);
3538
- },
3539
- createElement: (t, e, s, n) => {
3540
- const i = e === "svg" ? wt.createElementNS(gl, t) : e === "mathml" ? wt.createElementNS(_l, t) : s ? wt.createElement(t, { is: s }) : wt.createElement(t);
3541
- return t === "select" && n && n.multiple != null && i.setAttribute("multiple", n.multiple), i;
3542
- },
3543
- createText: (t) => wt.createTextNode(t),
3544
- createComment: (t) => wt.createComment(t),
3545
- setText: (t, e) => {
3546
- t.nodeValue = e;
3547
- },
3548
- setElementText: (t, e) => {
3549
- t.textContent = e;
3550
- },
3551
- parentNode: (t) => t.parentNode,
3552
- nextSibling: (t) => t.nextSibling,
3553
- querySelector: (t) => wt.querySelector(t),
3554
- setScopeId(t, e) {
3555
- t.setAttribute(e, "");
3556
- },
3557
- // __UNSAFE__
3558
- // Reason: innerHTML.
3559
- // Static content here can only come from compiled templates.
3560
- // As long as the user only uses trusted templates, this is safe.
3561
- insertStaticContent(t, e, s, n, i, r) {
3562
- const o = s ? s.previousSibling : e.lastChild;
3563
- if (i && (i === r || i.nextSibling))
3564
- for (; e.insertBefore(i.cloneNode(!0), s), !(i === r || !(i = i.nextSibling)); )
3565
- ;
3566
- else {
3567
- bn.innerHTML = Di(
3568
- n === "svg" ? `<svg>${t}</svg>` : n === "mathml" ? `<math>${t}</math>` : t
3569
- );
3570
- const l = bn.content;
3571
- if (n === "svg" || n === "mathml") {
3572
- const f = l.firstChild;
3573
- for (; f.firstChild; )
3574
- l.appendChild(f.firstChild);
3575
- l.removeChild(f);
3576
- }
3577
- e.insertBefore(l, s);
3578
- }
3579
- return [
3580
- // first
3581
- o ? o.nextSibling : e.firstChild,
3582
- // last
3583
- s ? s.previousSibling : e.lastChild
3584
- ];
3585
- }
3586
- }, bl = Symbol("_vtc");
3587
- function yl(t, e, s) {
3588
- const n = t[bl];
3589
- n && (e = (e ? [e, ...n] : [...n]).join(" ")), e == null ? t.removeAttribute("class") : s ? t.setAttribute("class", e) : t.className = e;
3590
- }
3591
- const yn = Symbol("_vod"), xl = Symbol("_vsh"), vl = Symbol(""), Sl = /(^|;)\s*display\s*:/;
3592
- function wl(t, e, s) {
3593
- const n = t.style, i = ee(s);
3594
- let r = !1;
3595
- if (s && !i) {
3596
- if (e)
3597
- if (ee(e))
3598
- for (const o of e.split(";")) {
3599
- const l = o.slice(0, o.indexOf(":")).trim();
3600
- s[l] == null && De(n, l, "");
3601
- }
3602
- else
3603
- for (const o in e)
3604
- s[o] == null && De(n, o, "");
3605
- for (const o in s)
3606
- o === "display" && (r = !0), De(n, o, s[o]);
3607
- } else if (i) {
3608
- if (e !== s) {
3609
- const o = n[vl];
3610
- o && (s += ";" + o), n.cssText = s, r = Sl.test(s);
3611
- }
3612
- } else e && t.removeAttribute("style");
3613
- yn in t && (t[yn] = r ? n.display : "", t[xl] && (n.display = "none"));
3614
- }
3615
- const xn = /\s*!important$/;
3616
- function De(t, e, s) {
3617
- if (Je(s))
3618
- s.forEach((n) => De(t, e, n));
3619
- else if (s == null && (s = ""), e.startsWith("--"))
3620
- t.setProperty(e, s);
3621
- else {
3622
- const n = Cl(t, e);
3623
- xn.test(s) ? t.setProperty(
3624
- Ft(n),
3625
- s.replace(xn, ""),
3626
- "important"
3627
- ) : t[n] = s;
3628
- }
3629
- }
3630
- const vn = ["Webkit", "Moz", "ms"], ps = {};
3631
- function Cl(t, e) {
3632
- const s = ps[e];
3633
- if (s)
3634
- return s;
3635
- let n = Jt(e);
3636
- if (n !== "filter" && n in t)
3637
- return ps[e] = n;
3638
- n = hl(n);
3639
- for (let i = 0; i < vn.length; i++) {
3640
- const r = vn[i] + n;
3641
- if (r in t)
3642
- return ps[e] = r;
3643
- }
3644
- return e;
3645
- }
3646
- const Sn = "http://www.w3.org/1999/xlink";
3647
- function wn(t, e, s, n, i, r = pl(e)) {
3648
- n && e.startsWith("xlink:") ? s == null ? t.removeAttributeNS(Sn, e.slice(6, e.length)) : t.setAttributeNS(Sn, e, s) : s == null || r && !Ni(s) ? t.removeAttribute(e) : t.setAttribute(
3649
- e,
3650
- r ? "" : ll(s) ? String(s) : s
3651
- );
3652
- }
3653
- function Cn(t, e, s, n, i) {
3654
- if (e === "innerHTML" || e === "textContent") {
3655
- s != null && (t[e] = e === "innerHTML" ? Di(s) : s);
3656
- return;
3657
- }
3658
- const r = t.tagName;
3659
- if (e === "value" && r !== "PROGRESS" && // custom elements may use _value internally
3660
- !r.includes("-")) {
3661
- const l = r === "OPTION" ? t.getAttribute("value") || "" : t.value, f = s == null ? (
3662
- // #11647: value should be set as empty string for null and undefined,
3663
- // but <input type="checkbox"> should be set as 'on'.
3664
- t.type === "checkbox" ? "on" : ""
3665
- ) : String(s);
3666
- (l !== f || !("_value" in t)) && (t.value = f), s == null && t.removeAttribute(e), t._value = s;
3667
- return;
3668
- }
3669
- let o = !1;
3670
- if (s === "" || s == null) {
3671
- const l = typeof t[e];
3672
- l === "boolean" ? s = Ni(s) : s == null && l === "string" ? (s = "", o = !0) : l === "number" && (s = 0, o = !0);
3673
- }
3674
- try {
3675
- t[e] = s;
3676
- } catch {
3677
- }
3678
- o && t.removeAttribute(i || e);
3679
- }
3680
- function Ol(t, e, s, n) {
3681
- t.addEventListener(e, s, n);
3682
- }
3683
- function Tl(t, e, s, n) {
3684
- t.removeEventListener(e, s, n);
3685
- }
3686
- const On = Symbol("_vei");
3687
- function Al(t, e, s, n, i = null) {
3688
- const r = t[On] || (t[On] = {}), o = r[e];
3689
- if (n && o)
3690
- o.value = n;
3691
- else {
3692
- const [l, f] = El(e);
3693
- if (n) {
3694
- const d = r[e] = Ml(
3695
- n,
3696
- i
3697
- );
3698
- Ol(t, l, d, f);
3699
- } else o && (Tl(t, l, o, f), r[e] = void 0);
3700
- }
3701
- }
3702
- const Tn = /(?:Once|Passive|Capture)$/;
3703
- function El(t) {
3704
- let e;
3705
- if (Tn.test(t)) {
3706
- e = {};
3707
- let n;
3708
- for (; n = t.match(Tn); )
3709
- t = t.slice(0, t.length - n[0].length), e[n[0].toLowerCase()] = !0;
3710
- }
3711
- return [t[2] === ":" ? t.slice(3) : Ft(t.slice(2)), e];
3712
- }
3713
- let gs = 0;
3714
- const Pl = /* @__PURE__ */ Promise.resolve(), Rl = () => gs || (Pl.then(() => gs = 0), gs = Date.now());
3715
- function Ml(t, e) {
3716
- const s = (n) => {
3717
- if (!n._vts)
3718
- n._vts = Date.now();
3719
- else if (n._vts <= s.attached)
3720
- return;
3721
- vt(
3722
- Il(n, s.value),
3723
- e,
3724
- 5,
3725
- [n]
3726
- );
3727
- };
3728
- return s.value = t, s.attached = Rl(), s;
3729
- }
3730
- function Il(t, e) {
3731
- if (Je(e)) {
3732
- const s = t.stopImmediatePropagation;
3733
- return t.stopImmediatePropagation = () => {
3734
- s.call(t), t._stopped = !0;
3735
- }, e.map(
3736
- (n) => (i) => !i._stopped && n && n(i)
3737
- );
3738
- } else
3739
- return e;
3740
- }
3741
- const An = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // lowercase letter
3742
- t.charCodeAt(2) > 96 && t.charCodeAt(2) < 123, $l = (t, e, s, n, i, r) => {
3743
- const o = i === "svg";
3744
- e === "class" ? yl(t, n, o) : e === "style" ? wl(t, s, n) : nl(e) ? il(e) || Al(t, e, s, n, r) : (e[0] === "." ? (e = e.slice(1), !0) : e[0] === "^" ? (e = e.slice(1), !1) : jl(t, e, n, o)) ? (Cn(t, e, n), !t.tagName.includes("-") && (e === "value" || e === "checked" || e === "selected") && wn(t, e, n, o, r, e !== "value")) : /* #11081 force set props for possible async custom element */ t._isVueCE && (/[A-Z]/.test(e) || !ee(n)) ? Cn(t, Ne(e), n, r, e) : (e === "true-value" ? t._trueValue = n : e === "false-value" && (t._falseValue = n), wn(t, e, n, o));
3745
- };
3746
- function jl(t, e, s, n) {
3747
- if (n)
3748
- return !!(e === "innerHTML" || e === "textContent" || e in t && An(e) && ji(s));
3749
- if (e === "spellcheck" || e === "draggable" || e === "translate" || e === "autocorrect" || e === "form" || e === "list" && t.tagName === "INPUT" || e === "type" && t.tagName === "TEXTAREA")
3750
- return !1;
3751
- if (e === "width" || e === "height") {
3752
- const i = t.tagName;
3753
- if (i === "IMG" || i === "VIDEO" || i === "CANVAS" || i === "SOURCE")
3754
- return !1;
3755
- }
3756
- return An(e) && ee(s) ? !1 : e in t;
3757
- }
3758
- const En = {};
3759
- /*! #__NO_SIDE_EFFECTS__ */
3760
- // @__NO_SIDE_EFFECTS__
3761
- function Zl(t, e, s) {
3762
- const n = /* @__PURE__ */ Yr(t, e);
3763
- Fi(n) && Ge(n, e);
3764
- class i extends zs {
3765
- constructor(o) {
3766
- super(n, o, s);
3767
- }
3768
- }
3769
- return i.def = n, i;
3770
- }
3771
- const Fl = typeof HTMLElement < "u" ? HTMLElement : class {
3772
- };
3773
- class zs extends Fl {
3774
- constructor(e, s = {}, n = Rn) {
3775
- super(), this._def = e, this._props = s, this._createApp = n, this._isVueCE = !0, this._instance = null, this._app = null, this._nonce = this._def.nonce, this._connected = !1, this._resolved = !1, this._numberProps = null, this._styleChildren = /* @__PURE__ */ new WeakSet(), this._ob = null, this.shadowRoot && n !== Rn ? this._root = this.shadowRoot : e.shadowRoot !== !1 ? (this.attachShadow({ mode: "open" }), this._root = this.shadowRoot) : this._root = this, this._def.__asyncLoader || this._resolveProps(this._def);
3776
- }
3777
- connectedCallback() {
3778
- if (!this.isConnected) return;
3779
- this.shadowRoot || this._parseSlots(), this._connected = !0;
3780
- let e = this;
3781
- for (; e = e && (e.parentNode || e.host); )
3782
- if (e instanceof zs) {
3783
- this._parent = e;
3784
- break;
3785
- }
3786
- this._instance || (this._resolved ? (this._setParent(), this._update()) : e && e._pendingResolve ? this._pendingResolve = e._pendingResolve.then(() => {
3787
- this._pendingResolve = void 0, this._resolveDef();
3788
- }) : this._resolveDef());
3789
- }
3790
- _setParent(e = this._parent) {
3791
- e && (this._instance.parent = e._instance, this._instance.provides = e._instance.provides);
3792
- }
3793
- disconnectedCallback() {
3794
- this._connected = !1, ni(() => {
3795
- this._connected || (this._ob && (this._ob.disconnect(), this._ob = null), this._app && this._app.unmount(), this._instance && (this._instance.ce = void 0), this._app = this._instance = null);
3796
- });
3797
- }
3798
- /**
3799
- * resolve inner component definition (handle possible async component)
3800
- */
3801
- _resolveDef() {
3802
- if (this._pendingResolve)
3803
- return;
3804
- for (let n = 0; n < this.attributes.length; n++)
3805
- this._setAttr(this.attributes[n].name);
3806
- this._ob = new MutationObserver((n) => {
3807
- for (const i of n)
3808
- this._setAttr(i.attributeName);
3809
- }), this._ob.observe(this, { attributes: !0 });
3810
- const e = (n, i = !1) => {
3811
- this._resolved = !0, this._pendingResolve = void 0;
3812
- const { props: r, styles: o } = n;
3813
- let l;
3814
- if (r && !Je(r))
3815
- for (const f in r) {
3816
- const d = r[f];
3817
- (d === Number || d && d.type === Number) && (f in this._props && (this._props[f] = _n(this._props[f])), (l || (l = /* @__PURE__ */ Object.create(null)))[Ne(f)] = !0);
3818
- }
3819
- this._numberProps = l, i && this._resolveProps(n), this.shadowRoot && this._applyStyles(o), this._mount(n);
3820
- }, s = this._def.__asyncLoader;
3821
- s ? this._pendingResolve = s().then(
3822
- (n) => e(this._def = n, !0)
3823
- ) : e(this._def);
3824
- }
3825
- _mount(e) {
3826
- this._app = this._createApp(e), e.configureApp && e.configureApp(this._app), this._app._ceVNode = this._createVNode(), this._app.mount(this._root);
3827
- const s = this._instance && this._instance.exposed;
3828
- if (s)
3829
- for (const n in s)
3830
- ol(this, n) || Object.defineProperty(this, n, {
3831
- // unwrap ref to be consistent with public instance behavior
3832
- get: () => Jn(s[n])
3833
- });
3834
- }
3835
- _resolveProps(e) {
3836
- const { props: s } = e, n = Je(s) ? s : Object.keys(s || {});
3837
- for (const i of Object.keys(this))
3838
- i[0] !== "_" && n.includes(i) && this._setProp(i, this[i]);
3839
- for (const i of n.map(Ne))
3840
- Object.defineProperty(this, i, {
3841
- get() {
3842
- return this._getProp(i);
3843
- },
3844
- set(r) {
3845
- this._setProp(i, r, !0, !0);
3846
- }
3847
- });
3848
- }
3849
- _setAttr(e) {
3850
- if (e.startsWith("data-v-")) return;
3851
- const s = this.hasAttribute(e);
3852
- let n = s ? this.getAttribute(e) : En;
3853
- const i = Ne(e);
3854
- s && this._numberProps && this._numberProps[i] && (n = _n(n)), this._setProp(i, n, !1, !0);
3855
- }
3856
- /**
3857
- * @internal
3858
- */
3859
- _getProp(e) {
3860
- return this._props[e];
3861
- }
3862
- /**
3863
- * @internal
3864
- */
3865
- _setProp(e, s, n = !0, i = !1) {
3866
- if (s !== this._props[e] && (s === En ? delete this._props[e] : (this._props[e] = s, e === "key" && this._app && (this._app._ceVNode.key = s)), i && this._instance && this._update(), n)) {
3867
- const r = this._ob;
3868
- r && r.disconnect(), s === !0 ? this.setAttribute(Ft(e), "") : typeof s == "string" || typeof s == "number" ? this.setAttribute(Ft(e), s + "") : s || this.removeAttribute(Ft(e)), r && r.observe(this, { attributes: !0 });
3869
- }
3870
- }
3871
- _update() {
3872
- Kl(this._createVNode(), this._root);
3873
- }
3874
- _createVNode() {
3875
- const e = {};
3876
- this.shadowRoot || (e.onVnodeMounted = e.onVnodeUpdated = this._renderSlots.bind(this));
3877
- const s = xt(this._def, Ge(e, this._props));
3878
- return this._instance || (s.ce = (n) => {
3879
- this._instance = n, n.ce = this, n.isCE = !0;
3880
- const i = (r, o) => {
3881
- this.dispatchEvent(
3882
- new CustomEvent(
3883
- r,
3884
- Fi(o[0]) ? Ge({ detail: o }, o[0]) : { detail: o }
3885
- )
3886
- );
3887
- };
3888
- n.emit = (r, ...o) => {
3889
- i(r, o), Ft(r) !== r && i(Ft(r), o);
3890
- }, this._setParent();
3891
- }), s;
3892
- }
3893
- _applyStyles(e, s) {
3894
- if (!e) return;
3895
- if (s) {
3896
- if (s === this._def || this._styleChildren.has(s))
3897
- return;
3898
- this._styleChildren.add(s);
3899
- }
3900
- const n = this._nonce;
3901
- for (let i = e.length - 1; i >= 0; i--) {
3902
- const r = document.createElement("style");
3903
- n && r.setAttribute("nonce", n), r.textContent = e[i], this.shadowRoot.prepend(r);
3904
- }
3905
- }
3906
- /**
3907
- * Only called when shadowRoot is false
3908
- */
3909
- _parseSlots() {
3910
- const e = this._slots = {};
3911
- let s;
3912
- for (; s = this.firstChild; ) {
3913
- const n = s.nodeType === 1 && s.getAttribute("slot") || "default";
3914
- (e[n] || (e[n] = [])).push(s), this.removeChild(s);
3915
- }
3916
- }
3917
- /**
3918
- * Only called when shadowRoot is false
3919
- */
3920
- _renderSlots() {
3921
- const e = (this._teleportTarget || this).querySelectorAll("slot"), s = this._instance.type.__scopeId;
3922
- for (let n = 0; n < e.length; n++) {
3923
- const i = e[n], r = i.getAttribute("name") || "default", o = this._slots[r], l = i.parentNode;
3924
- if (o)
3925
- for (const f of o) {
3926
- if (s && f.nodeType === 1) {
3927
- const d = s + "-s", a = document.createTreeWalker(f, 1);
3928
- f.setAttribute(d, "");
3929
- let p;
3930
- for (; p = a.nextNode(); )
3931
- p.setAttribute(d, "");
3932
- }
3933
- l.insertBefore(f, i);
3934
- }
3935
- else
3936
- for (; i.firstChild; ) l.insertBefore(i.firstChild, i);
3937
- l.removeChild(i);
3938
- }
3939
- }
3940
- /**
3941
- * @internal
3942
- */
3943
- _injectChildStyle(e) {
3944
- this._applyStyles(e.styles, e);
3945
- }
3946
- /**
3947
- * @internal
3948
- */
3949
- _removeChildStyle(e) {
3950
- }
3951
- }
3952
- const Nl = ["ctrl", "shift", "alt", "meta"], Dl = {
3953
- stop: (t) => t.stopPropagation(),
3954
- prevent: (t) => t.preventDefault(),
3955
- self: (t) => t.target !== t.currentTarget,
3956
- ctrl: (t) => !t.ctrlKey,
3957
- shift: (t) => !t.shiftKey,
3958
- alt: (t) => !t.altKey,
3959
- meta: (t) => !t.metaKey,
3960
- left: (t) => "button" in t && t.button !== 0,
3961
- middle: (t) => "button" in t && t.button !== 1,
3962
- right: (t) => "button" in t && t.button !== 2,
3963
- exact: (t, e) => Nl.some((s) => t[`${s}Key`] && !e.includes(s))
3964
- }, Xl = (t, e) => {
3965
- const s = t._withMods || (t._withMods = {}), n = e.join(".");
3966
- return s[n] || (s[n] = (i, ...r) => {
3967
- for (let o = 0; o < e.length; o++) {
3968
- const l = Dl[e[o]];
3969
- if (l && l(i, e)) return;
3970
- }
3971
- return t(i, ...r);
3972
- });
3973
- }, Hl = {
3974
- esc: "escape",
3975
- space: " ",
3976
- up: "arrow-up",
3977
- left: "arrow-left",
3978
- right: "arrow-right",
3979
- down: "arrow-down",
3980
- delete: "backspace"
3981
- }, Ql = (t, e) => {
3982
- const s = t._withKeys || (t._withKeys = {}), n = e.join(".");
3983
- return s[n] || (s[n] = (i) => {
3984
- if (!("key" in i))
3985
- return;
3986
- const r = Ft(i.key);
3987
- if (e.some(
3988
- (o) => o === r || Hl[o] === r
3989
- ))
3990
- return t(i);
3991
- });
3992
- }, Ll = /* @__PURE__ */ Ge({ patchProp: $l }, ml);
3993
- let Pn;
3994
- function Hi() {
3995
- return Pn || (Pn = Oo(Ll));
3996
- }
3997
- const Kl = (...t) => {
3998
- Hi().render(...t);
3999
- }, Rn = (...t) => {
4000
- const e = Hi().createApp(...t), { mount: s } = e;
4001
- return e.mount = (n) => {
4002
- const i = Vl(n);
4003
- if (!i) return;
4004
- const r = e._component;
4005
- !ji(r) && !r.render && !r.template && (r.template = i.innerHTML), i.nodeType === 1 && (i.textContent = "");
4006
- const o = s(i, !1, Ul(i));
4007
- return i instanceof Element && (i.removeAttribute("v-cloak"), i.setAttribute("data-v-app", "")), o;
4008
- }, e;
4009
- };
4010
- function Ul(t) {
4011
- if (t instanceof SVGElement)
4012
- return "svg";
4013
- if (typeof MathMLElement == "function" && t instanceof MathMLElement)
4014
- return "mathml";
4015
- }
4016
- function Vl(t) {
4017
- return ee(t) ? document.querySelector(t) : t;
4018
- }
4019
- const kl = (t, e) => {
4020
- const s = t.__vccOpts || t;
4021
- for (const [n, i] of e)
4022
- s[n] = i;
4023
- return s;
4024
- };
4025
- export {
4026
- Ct as F,
4027
- kl as _,
4028
- Mi as a,
4029
- Hs as b,
4030
- zl as c,
4031
- Yr as d,
4032
- Gl as e,
4033
- Uo as f,
4034
- Zl as g,
4035
- tl as h,
4036
- to as i,
4037
- Yl as j,
4038
- Wo as k,
4039
- xt as l,
4040
- Ql as m,
4041
- Ls as n,
4042
- Lo as o,
4043
- Xl as p,
4044
- qo as q,
4045
- Wl as r,
4046
- ql as s,
4047
- Vr as t,
4048
- Jl as w
4049
- };