@phoenix-cg/v-tabs 0.2.0-beta.1 → 0.2.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/v-tabs.es.js CHANGED
@@ -1,1927 +1,10 @@
1
- /**
2
- * @vue/shared v3.5.13
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/
6
- /*! #__NO_SIDE_EFFECTS__ */
7
- // @__NO_SIDE_EFFECTS__
8
- function hn(e) {
9
- const t = /* @__PURE__ */ Object.create(null);
10
- for (const n of e.split(",")) t[n] = 1;
11
- return (n) => n in t;
12
- }
13
- const $ = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, _n = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], ie = () => {
14
- }, gn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
15
- (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), M = Object.assign, mn = Object.prototype.hasOwnProperty, Je = (e, t) => mn.call(e, t), v = Array.isArray, G = (e) => Ce(e) === "[object Map]", bt = (e) => Ce(e) === "[object Set]", b = (e) => typeof e == "function", I = (e) => typeof e == "string", U = (e) => typeof e == "symbol", S = (e) => e !== null && typeof e == "object", yn = (e) => (S(e) || b(e)) && b(e.then) && b(e.catch), St = Object.prototype.toString, Ce = (e) => St.call(e), Nt = (e) => Ce(e).slice(8, -1), Ot = (e) => Ce(e) === "[object Object]", rt = (e) => I(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, $e = (e) => {
16
- const t = /* @__PURE__ */ Object.create(null);
17
- return (n) => t[n] || (t[n] = e(n));
18
- }, vn = /-(\w)/g, Dt = $e(
19
- (e) => e.replace(vn, (t, n) => n ? n.toUpperCase() : "")
20
- ), En = /\B([A-Z])/g, Rt = $e(
21
- (e) => e.replace(En, "-$1").toLowerCase()
22
- ), Vt = $e((e) => e.charAt(0).toUpperCase() + e.slice(1)), wn = $e(
23
- (e) => e ? `on${Vt(e)}` : ""
24
- ), O = (e, t) => !Object.is(e, t);
25
- let ht;
26
- const Ae = () => ht || (ht = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
27
- function Me(e) {
28
- if (v(e)) {
29
- const t = {};
30
- for (let n = 0; n < e.length; n++) {
31
- const s = e[n], r = I(s) ? On(s) : Me(s);
32
- if (r)
33
- for (const i in r)
34
- t[i] = r[i];
35
- }
36
- return t;
37
- } else if (I(e) || S(e))
38
- return e;
39
- }
40
- const bn = /;(?![^(]*\))/g, Sn = /:([^]+)/, Nn = /\/\*[^]*?\*\//g;
41
- function On(e) {
42
- const t = {};
43
- return e.replace(Nn, "").split(bn).forEach((n) => {
44
- if (n) {
45
- const s = n.split(Sn);
46
- s.length > 1 && (t[s[0].trim()] = s[1].trim());
47
- }
48
- }), t;
49
- }
50
- function fe(e) {
51
- let t = "";
52
- if (I(e))
53
- t = e;
54
- else if (v(e))
55
- for (let n = 0; n < e.length; n++) {
56
- const s = fe(e[n]);
57
- s && (t += s + " ");
58
- }
59
- else if (S(e))
60
- for (const n in e)
61
- e[n] && (t += n + " ");
62
- return t.trim();
63
- }
64
- const xt = (e) => !!(e && e.__v_isRef === !0), Ye = (e) => I(e) ? e : e == null ? "" : v(e) || S(e) && (e.toString === St || !b(e.toString)) ? xt(e) ? Ye(e.value) : JSON.stringify(e, Tt, 2) : String(e), Tt = (e, t) => xt(t) ? Tt(e, t.value) : G(t) ? {
65
- [`Map(${t.size})`]: [...t.entries()].reduce(
66
- (n, [s, r], i) => (n[Le(s, i) + " =>"] = r, n),
67
- {}
68
- )
69
- } : bt(t) ? {
70
- [`Set(${t.size})`]: [...t.values()].map((n) => Le(n))
71
- } : U(t) ? Le(t) : S(t) && !v(t) && !Ot(t) ? String(t) : t, Le = (e, t = "") => {
72
- var n;
73
- return (
74
- // Symbol.description in es2019+ so we need to cast here to pass
75
- // the lib: es2016 check
76
- U(e) ? `Symbol(${(n = e.description) != null ? n : t})` : e
77
- );
78
- };
79
- /**
80
- * @vue/reactivity v3.5.13
81
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
82
- * @license MIT
83
- **/
84
- function z(e, ...t) {
85
- console.warn(`[Vue warn] ${e}`, ...t);
86
- }
87
- let y;
88
- const je = /* @__PURE__ */ new WeakSet();
89
- class Dn {
90
- constructor(t) {
91
- this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0;
92
- }
93
- pause() {
94
- this.flags |= 64;
95
- }
96
- resume() {
97
- this.flags & 64 && (this.flags &= -65, je.has(this) && (je.delete(this), this.trigger()));
98
- }
99
- /**
100
- * @internal
101
- */
102
- notify() {
103
- this.flags & 2 && !(this.flags & 32) || this.flags & 8 || Rn(this);
104
- }
105
- run() {
106
- if (!(this.flags & 1))
107
- return this.fn();
108
- this.flags |= 2, _t(this), Ct(this);
109
- const t = y, n = T;
110
- y = this, T = !0;
111
- try {
112
- return this.fn();
113
- } finally {
114
- process.env.NODE_ENV !== "production" && y !== this && z(
115
- "Active effect was not restored correctly - this is likely a Vue internal bug."
116
- ), $t(this), y = t, T = n, this.flags &= -3;
117
- }
118
- }
119
- stop() {
120
- if (this.flags & 1) {
121
- for (let t = this.deps; t; t = t.nextDep)
122
- ot(t);
123
- this.deps = this.depsTail = void 0, _t(this), this.onStop && this.onStop(), this.flags &= -2;
124
- }
125
- }
126
- trigger() {
127
- this.flags & 64 ? je.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
128
- }
129
- /**
130
- * @internal
131
- */
132
- runIfDirty() {
133
- qe(this) && this.run();
134
- }
135
- get dirty() {
136
- return qe(this);
137
- }
138
- }
139
- let It = 0, ae, ue;
140
- function Rn(e, t = !1) {
141
- if (e.flags |= 8, t) {
142
- e.next = ue, ue = e;
143
- return;
144
- }
145
- e.next = ae, ae = e;
146
- }
147
- function st() {
148
- It++;
149
- }
150
- function it() {
151
- if (--It > 0)
152
- return;
153
- if (ue) {
154
- let t = ue;
155
- for (ue = void 0; t; ) {
156
- const n = t.next;
157
- t.next = void 0, t.flags &= -9, t = n;
158
- }
159
- }
160
- let e;
161
- for (; ae; ) {
162
- let t = ae;
163
- for (ae = void 0; t; ) {
164
- const n = t.next;
165
- if (t.next = void 0, t.flags &= -9, t.flags & 1)
166
- try {
167
- t.trigger();
168
- } catch (s) {
169
- e || (e = s);
170
- }
171
- t = n;
172
- }
173
- }
174
- if (e) throw e;
175
- }
176
- function Ct(e) {
177
- for (let t = e.deps; t; t = t.nextDep)
178
- t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
179
- }
180
- function $t(e) {
181
- let t, n = e.depsTail, s = n;
182
- for (; s; ) {
183
- const r = s.prevDep;
184
- s.version === -1 ? (s === n && (n = r), ot(s), xn(s)) : t = s, s.dep.activeLink = s.prevActiveLink, s.prevActiveLink = void 0, s = r;
185
- }
186
- e.deps = t, e.depsTail = n;
187
- }
188
- function qe(e) {
189
- for (let t = e.deps; t; t = t.nextDep)
190
- if (t.dep.version !== t.version || t.dep.computed && (Vn(t.dep.computed) || t.dep.version !== t.version))
191
- return !0;
192
- return !!e._dirty;
193
- }
194
- function Vn(e) {
195
- if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Se))
196
- return;
197
- e.globalVersion = Se;
198
- const t = e.dep;
199
- if (e.flags |= 2, t.version > 0 && !e.isSSR && e.deps && !qe(e)) {
200
- e.flags &= -3;
201
- return;
202
- }
203
- const n = y, s = T;
204
- y = e, T = !0;
205
- try {
206
- Ct(e);
207
- const r = e.fn(e._value);
208
- (t.version === 0 || O(r, e._value)) && (e._value = r, t.version++);
209
- } catch (r) {
210
- throw t.version++, r;
211
- } finally {
212
- y = n, T = s, $t(e), e.flags &= -3;
213
- }
214
- }
215
- function ot(e, t = !1) {
216
- const { dep: n, prevSub: s, nextSub: r } = e;
217
- if (s && (s.nextSub = r, e.prevSub = void 0), r && (r.prevSub = s, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = r), n.subs === e && (n.subs = s, !s && n.computed)) {
218
- n.computed.flags &= -5;
219
- for (let i = n.computed.deps; i; i = i.nextDep)
220
- ot(i, !0);
221
- }
222
- !t && !--n.sc && n.map && n.map.delete(n.key);
223
- }
224
- function xn(e) {
225
- const { prevDep: t, nextDep: n } = e;
226
- t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
227
- }
228
- let T = !0;
229
- const At = [];
230
- function he() {
231
- At.push(T), T = !1;
232
- }
233
- function _e() {
234
- const e = At.pop();
235
- T = e === void 0 ? !0 : e;
236
- }
237
- function _t(e) {
238
- const { cleanup: t } = e;
239
- if (e.cleanup = void 0, t) {
240
- const n = y;
241
- y = void 0;
242
- try {
243
- t();
244
- } finally {
245
- y = n;
246
- }
247
- }
248
- }
249
- let Se = 0;
250
- class Tn {
251
- constructor(t, n) {
252
- this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
253
- }
254
- }
255
- class ct {
256
- constructor(t) {
257
- this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
258
- }
259
- track(t) {
260
- if (!y || !T || y === this.computed)
261
- return;
262
- let n = this.activeLink;
263
- if (n === void 0 || n.sub !== y)
264
- n = this.activeLink = new Tn(y, this), y.deps ? (n.prevDep = y.depsTail, y.depsTail.nextDep = n, y.depsTail = n) : y.deps = y.depsTail = n, Mt(n);
265
- else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
266
- const s = n.nextDep;
267
- s.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = s), n.prevDep = y.depsTail, n.nextDep = void 0, y.depsTail.nextDep = n, y.depsTail = n, y.deps === n && (y.deps = s);
268
- }
269
- return process.env.NODE_ENV !== "production" && y.onTrack && y.onTrack(
270
- M(
271
- {
272
- effect: y
273
- },
274
- t
275
- )
276
- ), n;
277
- }
278
- trigger(t) {
279
- this.version++, Se++, this.notify(t);
280
- }
281
- notify(t) {
282
- st();
283
- try {
284
- if (process.env.NODE_ENV !== "production")
285
- for (let n = this.subsHead; n; n = n.nextSub)
286
- n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
287
- M(
288
- {
289
- effect: n.sub
290
- },
291
- t
292
- )
293
- );
294
- for (let n = this.subs; n; n = n.prevSub)
295
- n.sub.notify() && n.sub.dep.notify();
296
- } finally {
297
- it();
298
- }
299
- }
300
- }
301
- function Mt(e) {
302
- if (e.dep.sc++, e.sub.flags & 4) {
303
- const t = e.dep.computed;
304
- if (t && !e.dep.subs) {
305
- t.flags |= 20;
306
- for (let s = t.deps; s; s = s.nextDep)
307
- Mt(s);
308
- }
309
- const n = e.dep.subs;
310
- n !== e && (e.prevSub = n, n && (n.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
311
- }
312
- }
313
- const Ge = /* @__PURE__ */ new WeakMap(), Q = Symbol(
314
- process.env.NODE_ENV !== "production" ? "Object iterate" : ""
315
- ), Qe = Symbol(
316
- process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
317
- ), de = Symbol(
318
- process.env.NODE_ENV !== "production" ? "Array iterate" : ""
319
- );
320
- function D(e, t, n) {
321
- if (T && y) {
322
- let s = Ge.get(e);
323
- s || Ge.set(e, s = /* @__PURE__ */ new Map());
324
- let r = s.get(n);
325
- r || (s.set(n, r = new ct()), r.map = s, r.key = n), process.env.NODE_ENV !== "production" ? r.track({
326
- target: e,
327
- type: t,
328
- key: n
329
- }) : r.track();
330
- }
331
- }
332
- function K(e, t, n, s, r, i) {
333
- const c = Ge.get(e);
334
- if (!c) {
335
- Se++;
336
- return;
337
- }
338
- const o = (a) => {
339
- a && (process.env.NODE_ENV !== "production" ? a.trigger({
340
- target: e,
341
- type: t,
342
- key: n,
343
- newValue: s,
344
- oldValue: r,
345
- oldTarget: i
346
- }) : a.trigger());
347
- };
348
- if (st(), t === "clear")
349
- c.forEach(o);
350
- else {
351
- const a = v(e), d = a && rt(n);
352
- if (a && n === "length") {
353
- const p = Number(s);
354
- c.forEach((l, f) => {
355
- (f === "length" || f === de || !U(f) && f >= p) && o(l);
356
- });
357
- } else
358
- switch ((n !== void 0 || c.has(void 0)) && o(c.get(n)), d && o(c.get(de)), t) {
359
- case "add":
360
- a ? d && o(c.get("length")) : (o(c.get(Q)), G(e) && o(c.get(Qe)));
361
- break;
362
- case "delete":
363
- a || (o(c.get(Q)), G(e) && o(c.get(Qe)));
364
- break;
365
- case "set":
366
- G(e) && o(c.get(Q));
367
- break;
368
- }
369
- }
370
- it();
371
- }
372
- function te(e) {
373
- const t = h(e);
374
- return t === e ? t : (D(t, "iterate", de), N(e) ? t : t.map(w));
375
- }
376
- function Pe(e) {
377
- return D(e = h(e), "iterate", de), e;
378
- }
379
- const In = {
380
- __proto__: null,
381
- [Symbol.iterator]() {
382
- return We(this, Symbol.iterator, w);
383
- },
384
- concat(...e) {
385
- return te(this).concat(
386
- ...e.map((t) => v(t) ? te(t) : t)
387
- );
388
- },
389
- entries() {
390
- return We(this, "entries", (e) => (e[1] = w(e[1]), e));
391
- },
392
- every(e, t) {
393
- return k(this, "every", e, t, void 0, arguments);
394
- },
395
- filter(e, t) {
396
- return k(this, "filter", e, t, (n) => n.map(w), arguments);
397
- },
398
- find(e, t) {
399
- return k(this, "find", e, t, w, arguments);
400
- },
401
- findIndex(e, t) {
402
- return k(this, "findIndex", e, t, void 0, arguments);
403
- },
404
- findLast(e, t) {
405
- return k(this, "findLast", e, t, w, arguments);
406
- },
407
- findLastIndex(e, t) {
408
- return k(this, "findLastIndex", e, t, void 0, arguments);
409
- },
410
- // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
411
- forEach(e, t) {
412
- return k(this, "forEach", e, t, void 0, arguments);
413
- },
414
- includes(...e) {
415
- return Ke(this, "includes", e);
416
- },
417
- indexOf(...e) {
418
- return Ke(this, "indexOf", e);
419
- },
420
- join(e) {
421
- return te(this).join(e);
422
- },
423
- // keys() iterator only reads `length`, no optimisation required
424
- lastIndexOf(...e) {
425
- return Ke(this, "lastIndexOf", e);
426
- },
427
- map(e, t) {
428
- return k(this, "map", e, t, void 0, arguments);
429
- },
430
- pop() {
431
- return le(this, "pop");
432
- },
433
- push(...e) {
434
- return le(this, "push", e);
435
- },
436
- reduce(e, ...t) {
437
- return gt(this, "reduce", e, t);
438
- },
439
- reduceRight(e, ...t) {
440
- return gt(this, "reduceRight", e, t);
441
- },
442
- shift() {
443
- return le(this, "shift");
444
- },
445
- // slice could use ARRAY_ITERATE but also seems to beg for range tracking
446
- some(e, t) {
447
- return k(this, "some", e, t, void 0, arguments);
448
- },
449
- splice(...e) {
450
- return le(this, "splice", e);
451
- },
452
- toReversed() {
453
- return te(this).toReversed();
454
- },
455
- toSorted(e) {
456
- return te(this).toSorted(e);
457
- },
458
- toSpliced(...e) {
459
- return te(this).toSpliced(...e);
460
- },
461
- unshift(...e) {
462
- return le(this, "unshift", e);
463
- },
464
- values() {
465
- return We(this, "values", w);
466
- }
467
- };
468
- function We(e, t, n) {
469
- const s = Pe(e), r = s[t]();
470
- return s !== e && !N(e) && (r._next = r.next, r.next = () => {
471
- const i = r._next();
472
- return i.value && (i.value = n(i.value)), i;
473
- }), r;
474
- }
475
- const Cn = Array.prototype;
476
- function k(e, t, n, s, r, i) {
477
- const c = Pe(e), o = c !== e && !N(e), a = c[t];
478
- if (a !== Cn[t]) {
479
- const l = a.apply(e, i);
480
- return o ? w(l) : l;
481
- }
482
- let d = n;
483
- c !== e && (o ? d = function(l, f) {
484
- return n.call(this, w(l), f, e);
485
- } : n.length > 2 && (d = function(l, f) {
486
- return n.call(this, l, f, e);
487
- }));
488
- const p = a.call(c, d, s);
489
- return o && r ? r(p) : p;
490
- }
491
- function gt(e, t, n, s) {
492
- const r = Pe(e);
493
- let i = n;
494
- return r !== e && (N(e) ? n.length > 3 && (i = function(c, o, a) {
495
- return n.call(this, c, o, a, e);
496
- }) : i = function(c, o, a) {
497
- return n.call(this, c, w(o), a, e);
498
- }), r[t](i, ...s);
499
- }
500
- function Ke(e, t, n) {
501
- const s = h(e);
502
- D(s, "iterate", de);
503
- const r = s[t](...n);
504
- return (r === -1 || r === !1) && Ne(n[0]) ? (n[0] = h(n[0]), s[t](...n)) : r;
505
- }
506
- function le(e, t, n = []) {
507
- he(), st();
508
- const s = h(e)[t].apply(e, n);
509
- return it(), _e(), s;
510
- }
511
- const $n = /* @__PURE__ */ hn("__proto__,__v_isRef,__isVue"), Pt = new Set(
512
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(U)
513
- );
514
- function An(e) {
515
- U(e) || (e = String(e));
516
- const t = h(this);
517
- return D(t, "has", e), t.hasOwnProperty(e);
518
- }
519
- class kt {
520
- constructor(t = !1, n = !1) {
521
- this._isReadonly = t, this._isShallow = n;
522
- }
523
- get(t, n, s) {
524
- if (n === "__v_skip") return t.__v_skip;
525
- const r = this._isReadonly, i = this._isShallow;
526
- if (n === "__v_isReactive")
527
- return !r;
528
- if (n === "__v_isReadonly")
529
- return r;
530
- if (n === "__v_isShallow")
531
- return i;
532
- if (n === "__v_raw")
533
- return s === (r ? i ? Bn : Lt : i ? Kn : Ht).get(t) || // receiver is not the reactive proxy, but has the same prototype
534
- // this means the receiver is a user proxy of the reactive proxy
535
- Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0;
536
- const c = v(t);
537
- if (!r) {
538
- let a;
539
- if (c && (a = In[n]))
540
- return a;
541
- if (n === "hasOwnProperty")
542
- return An;
543
- }
544
- const o = Reflect.get(
545
- t,
546
- n,
547
- // if this is a proxy wrapping a ref, return methods using the raw ref
548
- // as receiver so that we don't have to call `toRaw` on the ref in all
549
- // its class methods
550
- V(t) ? t : s
551
- );
552
- return (U(n) ? Pt.has(n) : $n(n)) || (r || D(t, "get", n), i) ? o : V(o) ? c && rt(n) ? o : o.value : S(o) ? r ? lt(o) : jt(o) : o;
553
- }
554
- }
555
- class Mn extends kt {
556
- constructor(t = !1) {
557
- super(!1, t);
558
- }
559
- set(t, n, s, r) {
560
- let i = t[n];
561
- if (!this._isShallow) {
562
- const a = L(i);
563
- if (!N(s) && !L(s) && (i = h(i), s = h(s)), !v(t) && V(i) && !V(s))
564
- return a ? !1 : (i.value = s, !0);
565
- }
566
- const c = v(t) && rt(n) ? Number(n) < t.length : Je(t, n), o = Reflect.set(
567
- t,
568
- n,
569
- s,
570
- V(t) ? t : r
571
- );
572
- return t === h(r) && (c ? O(s, i) && K(t, "set", n, s, i) : K(t, "add", n, s)), o;
573
- }
574
- deleteProperty(t, n) {
575
- const s = Je(t, n), r = t[n], i = Reflect.deleteProperty(t, n);
576
- return i && s && K(t, "delete", n, void 0, r), i;
577
- }
578
- has(t, n) {
579
- const s = Reflect.has(t, n);
580
- return (!U(n) || !Pt.has(n)) && D(t, "has", n), s;
581
- }
582
- ownKeys(t) {
583
- return D(
584
- t,
585
- "iterate",
586
- v(t) ? "length" : Q
587
- ), Reflect.ownKeys(t);
588
- }
589
- }
590
- class Pn extends kt {
591
- constructor(t = !1) {
592
- super(!0, t);
593
- }
594
- set(t, n) {
595
- return process.env.NODE_ENV !== "production" && z(
596
- `Set operation on key "${String(n)}" failed: target is readonly.`,
597
- t
598
- ), !0;
599
- }
600
- deleteProperty(t, n) {
601
- return process.env.NODE_ENV !== "production" && z(
602
- `Delete operation on key "${String(n)}" failed: target is readonly.`,
603
- t
604
- ), !0;
605
- }
606
- }
607
- const kn = /* @__PURE__ */ new Mn(), Fn = /* @__PURE__ */ new Pn(), Xe = (e) => e, me = (e) => Reflect.getPrototypeOf(e);
608
- function Hn(e, t, n) {
609
- return function(...s) {
610
- const r = this.__v_raw, i = h(r), c = G(i), o = e === "entries" || e === Symbol.iterator && c, a = e === "keys" && c, d = r[e](...s), p = n ? Xe : t ? Ze : w;
611
- return !t && D(
612
- i,
613
- "iterate",
614
- a ? Qe : Q
615
- ), {
616
- // iterator protocol
617
- next() {
618
- const { value: l, done: f } = d.next();
619
- return f ? { value: l, done: f } : {
620
- value: o ? [p(l[0]), p(l[1])] : p(l),
621
- done: f
622
- };
623
- },
624
- // iterable protocol
625
- [Symbol.iterator]() {
626
- return this;
627
- }
628
- };
629
- };
630
- }
631
- function ye(e) {
632
- return function(...t) {
633
- if (process.env.NODE_ENV !== "production") {
634
- const n = t[0] ? `on key "${t[0]}" ` : "";
635
- z(
636
- `${Vt(e)} operation ${n}failed: target is readonly.`,
637
- h(this)
638
- );
639
- }
640
- return e === "delete" ? !1 : e === "clear" ? void 0 : this;
641
- };
642
- }
643
- function Ln(e, t) {
644
- const n = {
645
- get(r) {
646
- const i = this.__v_raw, c = h(i), o = h(r);
647
- e || (O(r, o) && D(c, "get", r), D(c, "get", o));
648
- const { has: a } = me(c), d = t ? Xe : e ? Ze : w;
649
- if (a.call(c, r))
650
- return d(i.get(r));
651
- if (a.call(c, o))
652
- return d(i.get(o));
653
- i !== c && i.get(r);
654
- },
655
- get size() {
656
- const r = this.__v_raw;
657
- return !e && D(h(r), "iterate", Q), Reflect.get(r, "size", r);
658
- },
659
- has(r) {
660
- const i = this.__v_raw, c = h(i), o = h(r);
661
- return e || (O(r, o) && D(c, "has", r), D(c, "has", o)), r === o ? i.has(r) : i.has(r) || i.has(o);
662
- },
663
- forEach(r, i) {
664
- const c = this, o = c.__v_raw, a = h(o), d = t ? Xe : e ? Ze : w;
665
- return !e && D(a, "iterate", Q), o.forEach((p, l) => r.call(i, d(p), d(l), c));
666
- }
667
- };
668
- return M(
669
- n,
670
- e ? {
671
- add: ye("add"),
672
- set: ye("set"),
673
- delete: ye("delete"),
674
- clear: ye("clear")
675
- } : {
676
- add(r) {
677
- !t && !N(r) && !L(r) && (r = h(r));
678
- const i = h(this);
679
- return me(i).has.call(i, r) || (i.add(r), K(i, "add", r, r)), this;
680
- },
681
- set(r, i) {
682
- !t && !N(i) && !L(i) && (i = h(i));
683
- const c = h(this), { has: o, get: a } = me(c);
684
- let d = o.call(c, r);
685
- d ? process.env.NODE_ENV !== "production" && mt(c, o, r) : (r = h(r), d = o.call(c, r));
686
- const p = a.call(c, r);
687
- return c.set(r, i), d ? O(i, p) && K(c, "set", r, i, p) : K(c, "add", r, i), this;
688
- },
689
- delete(r) {
690
- const i = h(this), { has: c, get: o } = me(i);
691
- let a = c.call(i, r);
692
- a ? process.env.NODE_ENV !== "production" && mt(i, c, r) : (r = h(r), a = c.call(i, r));
693
- const d = o ? o.call(i, r) : void 0, p = i.delete(r);
694
- return a && K(i, "delete", r, void 0, d), p;
695
- },
696
- clear() {
697
- const r = h(this), i = r.size !== 0, c = process.env.NODE_ENV !== "production" ? G(r) ? new Map(r) : new Set(r) : void 0, o = r.clear();
698
- return i && K(
699
- r,
700
- "clear",
701
- void 0,
702
- void 0,
703
- c
704
- ), o;
705
- }
706
- }
707
- ), [
708
- "keys",
709
- "values",
710
- "entries",
711
- Symbol.iterator
712
- ].forEach((r) => {
713
- n[r] = Hn(r, e, t);
714
- }), n;
715
- }
716
- function Ft(e, t) {
717
- const n = Ln(e, t);
718
- return (s, r, i) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? s : Reflect.get(
719
- Je(n, r) && r in s ? n : s,
720
- r,
721
- i
722
- );
723
- }
724
- const jn = {
725
- get: /* @__PURE__ */ Ft(!1, !1)
726
- }, Wn = {
727
- get: /* @__PURE__ */ Ft(!0, !1)
728
- };
729
- function mt(e, t, n) {
730
- const s = h(n);
731
- if (s !== n && t.call(e, s)) {
732
- const r = Nt(e);
733
- z(
734
- `Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
735
- );
736
- }
737
- }
738
- const Ht = /* @__PURE__ */ new WeakMap(), Kn = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap();
739
- function zn(e) {
740
- switch (e) {
741
- case "Object":
742
- case "Array":
743
- return 1;
744
- case "Map":
745
- case "Set":
746
- case "WeakMap":
747
- case "WeakSet":
748
- return 2;
749
- default:
750
- return 0;
751
- }
752
- }
753
- function Un(e) {
754
- return e.__v_skip || !Object.isExtensible(e) ? 0 : zn(Nt(e));
755
- }
756
- function jt(e) {
757
- return L(e) ? e : Wt(
758
- e,
759
- !1,
760
- kn,
761
- jn,
762
- Ht
763
- );
764
- }
765
- function lt(e) {
766
- return Wt(
767
- e,
768
- !0,
769
- Fn,
770
- Wn,
771
- Lt
772
- );
773
- }
774
- function Wt(e, t, n, s, r) {
775
- if (!S(e))
776
- return process.env.NODE_ENV !== "production" && z(
777
- `value cannot be made ${t ? "readonly" : "reactive"}: ${String(
778
- e
779
- )}`
780
- ), e;
781
- if (e.__v_raw && !(t && e.__v_isReactive))
782
- return e;
783
- const i = r.get(e);
784
- if (i)
785
- return i;
786
- const c = Un(e);
787
- if (c === 0)
788
- return e;
789
- const o = new Proxy(
790
- e,
791
- c === 2 ? s : n
792
- );
793
- return r.set(e, o), o;
794
- }
795
- function oe(e) {
796
- return L(e) ? oe(e.__v_raw) : !!(e && e.__v_isReactive);
797
- }
798
- function L(e) {
799
- return !!(e && e.__v_isReadonly);
800
- }
801
- function N(e) {
802
- return !!(e && e.__v_isShallow);
803
- }
804
- function Ne(e) {
805
- return e ? !!e.__v_raw : !1;
806
- }
807
- function h(e) {
808
- const t = e && e.__v_raw;
809
- return t ? h(t) : e;
810
- }
811
- const w = (e) => S(e) ? jt(e) : e, Ze = (e) => S(e) ? lt(e) : e;
812
- function V(e) {
813
- return e ? e.__v_isRef === !0 : !1;
814
- }
815
- function et(e) {
816
- return Kt(e, !1);
817
- }
818
- function Jn(e) {
819
- return Kt(e, !0);
820
- }
821
- function Kt(e, t) {
822
- return V(e) ? e : new Yn(e, t);
823
- }
824
- class Yn {
825
- constructor(t, n) {
826
- this.dep = new ct(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : h(t), this._value = n ? t : w(t), this.__v_isShallow = n;
827
- }
828
- get value() {
829
- return process.env.NODE_ENV !== "production" ? this.dep.track({
830
- target: this,
831
- type: "get",
832
- key: "value"
833
- }) : this.dep.track(), this._value;
834
- }
835
- set value(t) {
836
- const n = this._rawValue, s = this.__v_isShallow || N(t) || L(t);
837
- t = s ? t : h(t), O(t, n) && (this._rawValue = t, this._value = s ? t : w(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
838
- target: this,
839
- type: "set",
840
- key: "value",
841
- newValue: t,
842
- oldValue: n
843
- }) : this.dep.trigger());
844
- }
845
- }
846
- class qn {
847
- constructor(t) {
848
- this.__v_isRef = !0, this._value = void 0;
849
- const n = this.dep = new ct(), { get: s, set: r } = t(n.track.bind(n), n.trigger.bind(n));
850
- this._get = s, this._set = r;
851
- }
852
- get value() {
853
- return this._value = this._get();
854
- }
855
- set value(t) {
856
- this._set(t);
857
- }
858
- }
859
- function Gn(e) {
860
- return new qn(e);
861
- }
862
- const ve = {}, Oe = /* @__PURE__ */ new WeakMap();
863
- let q;
864
- function Qn(e, t = !1, n = q) {
865
- if (n) {
866
- let s = Oe.get(n);
867
- s || Oe.set(n, s = []), s.push(e);
868
- } else process.env.NODE_ENV !== "production" && !t && z(
869
- "onWatcherCleanup() was called when there was no active watcher to associate with."
870
- );
871
- }
872
- function Xn(e, t, n = $) {
873
- const { immediate: s, deep: r, once: i, scheduler: c, augmentJob: o, call: a } = n, d = (g) => {
874
- (n.onWarn || z)(
875
- "Invalid watch source: ",
876
- g,
877
- "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
878
- );
879
- }, p = (g) => r ? g : N(g) || r === !1 || r === 0 ? B(g, 1) : B(g);
880
- let l, f, u, m, _ = !1, J = !1;
881
- if (V(e) ? (f = () => e.value, _ = N(e)) : oe(e) ? (f = () => p(e), _ = !0) : v(e) ? (J = !0, _ = e.some((g) => oe(g) || N(g)), f = () => e.map((g) => {
882
- if (V(g))
883
- return g.value;
884
- if (oe(g))
885
- return p(g);
886
- if (b(g))
887
- return a ? a(g, 2) : g();
888
- process.env.NODE_ENV !== "production" && d(g);
889
- })) : b(e) ? t ? f = a ? () => a(e, 2) : e : f = () => {
890
- if (u) {
891
- he();
892
- try {
893
- u();
894
- } finally {
895
- _e();
896
- }
897
- }
898
- const g = q;
899
- q = l;
900
- try {
901
- return a ? a(e, 3, [m]) : e(m);
902
- } finally {
903
- q = g;
904
- }
905
- } : (f = ie, process.env.NODE_ENV !== "production" && d(e)), t && r) {
906
- const g = f, C = r === !0 ? 1 / 0 : r;
907
- f = () => B(g(), C);
908
- }
909
- const j = () => {
910
- l.stop();
911
- };
912
- if (i && t) {
913
- const g = t;
914
- t = (...C) => {
915
- g(...C), j();
916
- };
917
- }
918
- let P = J ? new Array(e.length).fill(ve) : ve;
919
- const Y = (g) => {
920
- if (!(!(l.flags & 1) || !l.dirty && !g))
921
- if (t) {
922
- const C = l.run();
923
- if (r || _ || (J ? C.some((He, ge) => O(He, P[ge])) : O(C, P))) {
924
- u && u();
925
- const He = q;
926
- q = l;
927
- try {
928
- const ge = [
929
- C,
930
- // pass undefined as the old value when it's changed for the first time
931
- P === ve ? void 0 : J && P[0] === ve ? [] : P,
932
- m
933
- ];
934
- a ? a(t, 3, ge) : (
935
- // @ts-expect-error
936
- t(...ge)
937
- ), P = C;
938
- } finally {
939
- q = He;
940
- }
941
- }
942
- } else
943
- l.run();
944
- };
945
- return o && o(Y), l = new Dn(f), l.scheduler = c ? () => c(Y, !1) : Y, m = (g) => Qn(g, !1, l), u = l.onStop = () => {
946
- const g = Oe.get(l);
947
- if (g) {
948
- if (a)
949
- a(g, 4);
950
- else
951
- for (const C of g) C();
952
- Oe.delete(l);
953
- }
954
- }, process.env.NODE_ENV !== "production" && (l.onTrack = n.onTrack, l.onTrigger = n.onTrigger), t ? s ? Y(!0) : P = l.run() : c ? c(Y.bind(null, !0), !0) : l.run(), j.pause = l.pause.bind(l), j.resume = l.resume.bind(l), j.stop = j, j;
955
- }
956
- function B(e, t = 1 / 0, n) {
957
- if (t <= 0 || !S(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
958
- return e;
959
- if (n.add(e), t--, V(e))
960
- B(e.value, t, n);
961
- else if (v(e))
962
- for (let s = 0; s < e.length; s++)
963
- B(e[s], t, n);
964
- else if (bt(e) || G(e))
965
- e.forEach((s) => {
966
- B(s, t, n);
967
- });
968
- else if (Ot(e)) {
969
- for (const s in e)
970
- B(e[s], t, n);
971
- for (const s of Object.getOwnPropertySymbols(e))
972
- Object.prototype.propertyIsEnumerable.call(e, s) && B(e[s], t, n);
973
- }
974
- return e;
975
- }
976
- /**
977
- * @vue/runtime-core v3.5.13
978
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
979
- * @license MIT
980
- **/
981
- const X = [];
982
- function Zn(e) {
983
- X.push(e);
984
- }
985
- function er() {
986
- X.pop();
987
- }
988
- let Be = !1;
989
- function E(e, ...t) {
990
- if (Be) return;
991
- Be = !0, he();
992
- const n = X.length ? X[X.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = tr();
993
- if (s)
994
- ke(
995
- s,
996
- n,
997
- 11,
998
- [
999
- // eslint-disable-next-line no-restricted-syntax
1000
- e + t.map((i) => {
1001
- var c, o;
1002
- return (o = (c = i.toString) == null ? void 0 : c.call(i)) != null ? o : JSON.stringify(i);
1003
- }).join(""),
1004
- n && n.proxy,
1005
- r.map(
1006
- ({ vnode: i }) => `at <${dn(n, i.type)}>`
1007
- ).join(`
1008
- `),
1009
- r
1010
- ]
1011
- );
1012
- else {
1013
- const i = [`[Vue warn]: ${e}`, ...t];
1014
- r.length && i.push(`
1015
- `, ...nr(r)), console.warn(...i);
1016
- }
1017
- _e(), Be = !1;
1018
- }
1019
- function tr() {
1020
- let e = X[X.length - 1];
1021
- if (!e)
1022
- return [];
1023
- const t = [];
1024
- for (; e; ) {
1025
- const n = t[0];
1026
- n && n.vnode === e ? n.recurseCount++ : t.push({
1027
- vnode: e,
1028
- recurseCount: 0
1029
- });
1030
- const s = e.component && e.component.parent;
1031
- e = s && s.vnode;
1032
- }
1033
- return t;
1034
- }
1035
- function nr(e) {
1036
- const t = [];
1037
- return e.forEach((n, s) => {
1038
- t.push(...s === 0 ? [] : [`
1039
- `], ...rr(n));
1040
- }), t;
1041
- }
1042
- function rr({ vnode: e, recurseCount: t }) {
1043
- const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${dn(
1044
- e.component,
1045
- e.type,
1046
- s
1047
- )}`, i = ">" + n;
1048
- return e.props ? [r, ...sr(e.props), i] : [r + i];
1049
- }
1050
- function sr(e) {
1051
- const t = [], n = Object.keys(e);
1052
- return n.slice(0, 3).forEach((s) => {
1053
- t.push(...Bt(s, e[s]));
1054
- }), n.length > 3 && t.push(" ..."), t;
1055
- }
1056
- function Bt(e, t, n) {
1057
- return I(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : V(t) ? (t = Bt(e, h(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : b(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = h(t), n ? t : [`${e}=`, t]);
1058
- }
1059
- const at = {
1060
- sp: "serverPrefetch hook",
1061
- bc: "beforeCreate hook",
1062
- c: "created hook",
1063
- bm: "beforeMount hook",
1064
- m: "mounted hook",
1065
- bu: "beforeUpdate hook",
1066
- u: "updated",
1067
- bum: "beforeUnmount hook",
1068
- um: "unmounted hook",
1069
- a: "activated hook",
1070
- da: "deactivated hook",
1071
- ec: "errorCaptured hook",
1072
- rtc: "renderTracked hook",
1073
- rtg: "renderTriggered hook",
1074
- 0: "setup function",
1075
- 1: "render function",
1076
- 2: "watcher getter",
1077
- 3: "watcher callback",
1078
- 4: "watcher cleanup function",
1079
- 5: "native event handler",
1080
- 6: "component event handler",
1081
- 7: "vnode hook",
1082
- 8: "directive hook",
1083
- 9: "transition hook",
1084
- 10: "app errorHandler",
1085
- 11: "app warnHandler",
1086
- 12: "ref function",
1087
- 13: "async component loader",
1088
- 14: "scheduler flush",
1089
- 15: "component update",
1090
- 16: "app unmount cleanup function"
1091
- };
1092
- function ke(e, t, n, s) {
1093
- try {
1094
- return s ? e(...s) : e();
1095
- } catch (r) {
1096
- ft(r, t, n);
1097
- }
1098
- }
1099
- function ut(e, t, n, s) {
1100
- if (b(e)) {
1101
- const r = ke(e, t, n, s);
1102
- return r && yn(r) && r.catch((i) => {
1103
- ft(i, t, n);
1104
- }), r;
1105
- }
1106
- if (v(e)) {
1107
- const r = [];
1108
- for (let i = 0; i < e.length; i++)
1109
- r.push(ut(e[i], t, n, s));
1110
- return r;
1111
- } else process.env.NODE_ENV !== "production" && E(
1112
- `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
1113
- );
1114
- }
1115
- function ft(e, t, n, s = !0) {
1116
- const r = t ? t.vnode : null, { errorHandler: i, throwUnhandledErrorInProduction: c } = t && t.appContext.config || $;
1117
- if (t) {
1118
- let o = t.parent;
1119
- const a = t.proxy, d = process.env.NODE_ENV !== "production" ? at[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1120
- for (; o; ) {
1121
- const p = o.ec;
1122
- if (p) {
1123
- for (let l = 0; l < p.length; l++)
1124
- if (p[l](e, a, d) === !1)
1125
- return;
1126
- }
1127
- o = o.parent;
1128
- }
1129
- if (i) {
1130
- he(), ke(i, null, 10, [
1131
- e,
1132
- a,
1133
- d
1134
- ]), _e();
1135
- return;
1136
- }
1137
- }
1138
- ir(e, n, r, s, c);
1139
- }
1140
- function ir(e, t, n, s = !0, r = !1) {
1141
- if (process.env.NODE_ENV !== "production") {
1142
- const i = at[t];
1143
- if (n && Zn(n), E(`Unhandled error${i ? ` during execution of ${i}` : ""}`), n && er(), s)
1144
- throw e;
1145
- console.error(e);
1146
- } else {
1147
- if (r)
1148
- throw e;
1149
- console.error(e);
1150
- }
1151
- }
1152
- const R = [];
1153
- let F = -1;
1154
- const ce = [];
1155
- let W = null, re = 0;
1156
- const zt = /* @__PURE__ */ Promise.resolve();
1157
- let De = null;
1158
- const or = 100;
1159
- function cr(e) {
1160
- const t = De || zt;
1161
- return e ? t.then(this ? e.bind(this) : e) : t;
1162
- }
1163
- function lr(e) {
1164
- let t = F + 1, n = R.length;
1165
- for (; t < n; ) {
1166
- const s = t + n >>> 1, r = R[s], i = pe(r);
1167
- i < e || i === e && r.flags & 2 ? t = s + 1 : n = s;
1168
- }
1169
- return t;
1170
- }
1171
- function Ut(e) {
1172
- if (!(e.flags & 1)) {
1173
- const t = pe(e), n = R[R.length - 1];
1174
- !n || // fast path when the job id is larger than the tail
1175
- !(e.flags & 2) && t >= pe(n) ? R.push(e) : R.splice(lr(t), 0, e), e.flags |= 1, Jt();
1176
- }
1177
- }
1178
- function Jt() {
1179
- De || (De = zt.then(qt));
1180
- }
1181
- function Yt(e) {
1182
- v(e) ? ce.push(...e) : W && e.id === -1 ? W.splice(re + 1, 0, e) : e.flags & 1 || (ce.push(e), e.flags |= 1), Jt();
1183
- }
1184
- function ar(e) {
1185
- if (ce.length) {
1186
- const t = [...new Set(ce)].sort(
1187
- (n, s) => pe(n) - pe(s)
1188
- );
1189
- if (ce.length = 0, W) {
1190
- W.push(...t);
1191
- return;
1192
- }
1193
- for (W = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), re = 0; re < W.length; re++) {
1194
- const n = W[re];
1195
- process.env.NODE_ENV !== "production" && Gt(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1196
- }
1197
- W = null, re = 0;
1198
- }
1199
- }
1200
- const pe = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
1201
- function qt(e) {
1202
- process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
1203
- const t = process.env.NODE_ENV !== "production" ? (n) => Gt(e, n) : ie;
1204
- try {
1205
- for (F = 0; F < R.length; F++) {
1206
- const n = R[F];
1207
- if (n && !(n.flags & 8)) {
1208
- if (process.env.NODE_ENV !== "production" && t(n))
1209
- continue;
1210
- n.flags & 4 && (n.flags &= -2), ke(
1211
- n,
1212
- n.i,
1213
- n.i ? 15 : 14
1214
- ), n.flags & 4 || (n.flags &= -2);
1215
- }
1216
- }
1217
- } finally {
1218
- for (; F < R.length; F++) {
1219
- const n = R[F];
1220
- n && (n.flags &= -2);
1221
- }
1222
- F = -1, R.length = 0, ar(e), De = null, (R.length || ce.length) && qt(e);
1223
- }
1224
- }
1225
- function Gt(e, t) {
1226
- const n = e.get(t) || 0;
1227
- if (n > or) {
1228
- const s = t.i, r = s && fn(s.type);
1229
- return ft(
1230
- `Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
1231
- null,
1232
- 10
1233
- ), !0;
1234
- }
1235
- return e.set(t, n + 1), !1;
1236
- }
1237
- const ze = /* @__PURE__ */ new Map();
1238
- process.env.NODE_ENV !== "production" && (Ae().__VUE_HMR_RUNTIME__ = {
1239
- createRecord: Ue(ur),
1240
- rerender: Ue(fr),
1241
- reload: Ue(dr)
1242
- });
1243
- const Re = /* @__PURE__ */ new Map();
1244
- function ur(e, t) {
1245
- return Re.has(e) ? !1 : (Re.set(e, {
1246
- initialDef: Ve(t),
1247
- instances: /* @__PURE__ */ new Set()
1248
- }), !0);
1249
- }
1250
- function Ve(e) {
1251
- return pn(e) ? e.__vccOpts : e;
1252
- }
1253
- function fr(e, t) {
1254
- const n = Re.get(e);
1255
- n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
1256
- t && (s.render = t, Ve(s.type).render = t), s.renderCache = [], s.update();
1257
- }));
1258
- }
1259
- function dr(e, t) {
1260
- const n = Re.get(e);
1261
- if (!n) return;
1262
- t = Ve(t), yt(n.initialDef, t);
1263
- const s = [...n.instances];
1264
- for (let r = 0; r < s.length; r++) {
1265
- const i = s[r], c = Ve(i.type);
1266
- let o = ze.get(c);
1267
- o || (c !== n.initialDef && yt(c, t), ze.set(c, o = /* @__PURE__ */ new Set())), o.add(i), i.appContext.propsCache.delete(i.type), i.appContext.emitsCache.delete(i.type), i.appContext.optionsCache.delete(i.type), i.ceReload ? (o.add(i), i.ceReload(t.styles), o.delete(i)) : i.parent ? Ut(() => {
1268
- i.parent.update(), o.delete(i);
1269
- }) : i.appContext.reload ? i.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1270
- "[HMR] Root or manually mounted instance modified. Full reload required."
1271
- ), i.root.ce && i !== i.root && i.root.ce._removeChildStyle(c);
1272
- }
1273
- Yt(() => {
1274
- ze.clear();
1275
- });
1276
- }
1277
- function yt(e, t) {
1278
- M(e, t);
1279
- for (const n in e)
1280
- n !== "__file" && !(n in t) && delete e[n];
1281
- }
1282
- function Ue(e) {
1283
- return (t, n) => {
1284
- try {
1285
- return e(t, n);
1286
- } catch (s) {
1287
- console.error(s), console.warn(
1288
- "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
1289
- );
1290
- }
1291
- };
1292
- }
1293
- let se, Ee = [];
1294
- function Qt(e, t) {
1295
- var n, s;
1296
- se = e, se ? (se.enabled = !0, Ee.forEach(({ event: r, args: i }) => se.emit(r, ...i)), Ee = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
1297
- window.HTMLElement && // also exclude jsdom
1298
- // eslint-disable-next-line no-restricted-syntax
1299
- !((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((i) => {
1300
- Qt(i, t);
1301
- }), setTimeout(() => {
1302
- se || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Ee = []);
1303
- }, 3e3)) : Ee = [];
1304
- }
1305
- let A = null, pr = null;
1306
- const hr = (e) => e.__isTeleport;
1307
- function Xt(e, t) {
1308
- e.shapeFlag & 6 && e.component ? (e.transition = t, Xt(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
1309
- }
1310
- const _r = /* @__PURE__ */ new WeakSet();
1311
- function vt(e) {
1312
- const t = un(), n = Jn(null);
1313
- if (t) {
1314
- const r = t.refs === $ ? t.refs = {} : t.refs;
1315
- let i;
1316
- process.env.NODE_ENV !== "production" && (i = Object.getOwnPropertyDescriptor(r, e)) && !i.configurable ? E(`useTemplateRef('${e}') already exists.`) : Object.defineProperty(r, e, {
1317
- enumerable: !0,
1318
- get: () => n.value,
1319
- set: (c) => n.value = c
1320
- });
1321
- } else process.env.NODE_ENV !== "production" && E(
1322
- "useTemplateRef() is called when there is no active component instance to be associated with."
1323
- );
1324
- const s = process.env.NODE_ENV !== "production" ? lt(n) : n;
1325
- return process.env.NODE_ENV !== "production" && _r.add(s), s;
1326
- }
1327
- Ae().requestIdleCallback;
1328
- Ae().cancelIdleCallback;
1329
- const gr = (e) => !!e.type.__asyncLoader;
1330
- function mr(e, t, n = ee, s = !1) {
1331
- if (n) {
1332
- const r = n[e] || (n[e] = []), i = t.__weh || (t.__weh = (...c) => {
1333
- he();
1334
- const o = Wr(n), a = ut(t, n, e, c);
1335
- return o(), _e(), a;
1336
- });
1337
- return s ? r.unshift(i) : r.push(i), i;
1338
- } else if (process.env.NODE_ENV !== "production") {
1339
- const r = wn(at[e].replace(/ hook$/, ""));
1340
- E(
1341
- `${r} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
1342
- );
1343
- }
1344
- }
1345
- const Zt = (e) => (t, n = ee) => {
1346
- (!Ie || e === "sp") && mr(e, (...s) => t(...s), n);
1347
- }, yr = Zt("m"), vr = Zt(
1348
- "bum"
1349
- ), Er = Symbol.for("v-ndc");
1350
- function wr(e, t, n, s) {
1351
- let r;
1352
- const i = n, c = v(e);
1353
- if (c || I(e)) {
1354
- const o = c && oe(e);
1355
- let a = !1;
1356
- o && (a = !N(e), e = Pe(e)), r = new Array(e.length);
1357
- for (let d = 0, p = e.length; d < p; d++)
1358
- r[d] = t(
1359
- a ? w(e[d]) : e[d],
1360
- d,
1361
- void 0,
1362
- i
1363
- );
1364
- } else if (typeof e == "number") {
1365
- process.env.NODE_ENV !== "production" && !Number.isInteger(e) && E(`The v-for range expect an integer value but got ${e}.`), r = new Array(e);
1366
- for (let o = 0; o < e; o++)
1367
- r[o] = t(o + 1, o, void 0, i);
1368
- } else if (S(e))
1369
- if (e[Symbol.iterator])
1370
- r = Array.from(
1371
- e,
1372
- (o, a) => t(o, a, void 0, i)
1373
- );
1374
- else {
1375
- const o = Object.keys(e);
1376
- r = new Array(o.length);
1377
- for (let a = 0, d = o.length; a < d; a++) {
1378
- const p = o[a];
1379
- r[a] = t(e[p], p, a, i);
1380
- }
1381
- }
1382
- else
1383
- r = [];
1384
- return r;
1385
- }
1386
- function br(e, t, n = {}, s, r) {
1387
- if (A.ce || A.parent && gr(A.parent) && A.parent.ce)
1388
- return n.name = t, H(), tt(
1389
- Z,
1390
- null,
1391
- [Fe("slot", n, s && s())],
1392
- 64
1393
- );
1394
- let i = e[t];
1395
- process.env.NODE_ENV !== "production" && i && i.length > 1 && (E(
1396
- "SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."
1397
- ), i = () => []), i && i._c && (i._d = !1), H();
1398
- const c = i && en(i(n)), o = n.key || // slot content array of a dynamic conditional slot may have a branch
1399
- // key attached in the `createSlots` helper, respect that
1400
- c && c.key, a = tt(
1401
- Z,
1402
- {
1403
- key: (o && !U(o) ? o : `_${t}`) + // #7256 force differentiate fallback content from actual content
1404
- (!c && s ? "_fb" : "")
1405
- },
1406
- c || (s ? s() : []),
1407
- c && e._ === 1 ? 64 : -2
1408
- );
1409
- return a.scopeId && (a.slotScopeIds = [a.scopeId + "-s"]), i && i._c && (i._d = !0), a;
1410
- }
1411
- function en(e) {
1412
- return e.some((t) => sn(t) ? !(t.type === xe || t.type === Z && !en(t.children)) : !0) ? e : null;
1413
- }
1414
- const Sr = {};
1415
- process.env.NODE_ENV !== "production" && (Sr.ownKeys = (e) => (E(
1416
- "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1417
- ), Reflect.ownKeys(e)));
1418
- function Et(e) {
1419
- return v(e) ? e.reduce(
1420
- (t, n) => (t[n] = null, t),
1421
- {}
1422
- ) : e;
1423
- }
1424
- function wt(e, t) {
1425
- return !e || !t ? e || t : v(e) && v(t) ? e.concat(t) : M({}, Et(e), Et(t));
1426
- }
1427
- let Nr = null;
1428
- function Or(e, t, n = !1) {
1429
- const s = ee || A;
1430
- if (s || Nr) {
1431
- const r = s ? s.parent == null ? s.vnode.appContext && s.vnode.appContext.provides : s.parent.provides : void 0;
1432
- if (r && e in r)
1433
- return r[e];
1434
- if (arguments.length > 1)
1435
- return n && b(t) ? t.call(s && s.proxy) : t;
1436
- process.env.NODE_ENV !== "production" && E(`injection "${String(e)}" not found.`);
1437
- } else process.env.NODE_ENV !== "production" && E("inject() can only be used inside setup() or functional components.");
1438
- }
1439
- const Dr = {}, tn = (e) => Object.getPrototypeOf(e) === Dr, Rr = Mr, Vr = Symbol.for("v-scx"), xr = () => {
1440
- {
1441
- const e = Or(Vr);
1442
- return e || process.env.NODE_ENV !== "production" && E(
1443
- "Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
1444
- ), e;
1445
- }
1446
- };
1447
- function Tr(e, t) {
1448
- return nn(
1449
- e,
1450
- null,
1451
- process.env.NODE_ENV !== "production" ? M({}, t, { flush: "sync" }) : { flush: "sync" }
1452
- );
1453
- }
1454
- function Ir(e, t, n) {
1455
- return process.env.NODE_ENV !== "production" && !b(t) && E(
1456
- "`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
1457
- ), nn(e, t, n);
1458
- }
1459
- function nn(e, t, n = $) {
1460
- const { immediate: s, deep: r, flush: i, once: c } = n;
1461
- process.env.NODE_ENV !== "production" && !t && (s !== void 0 && E(
1462
- 'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
1463
- ), r !== void 0 && E(
1464
- 'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
1465
- ), c !== void 0 && E(
1466
- 'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
1467
- ));
1468
- const o = M({}, n);
1469
- process.env.NODE_ENV !== "production" && (o.onWarn = E);
1470
- const a = t && s || !t && i !== "post";
1471
- let d;
1472
- if (Ie) {
1473
- if (i === "sync") {
1474
- const u = xr();
1475
- d = u.__watcherHandles || (u.__watcherHandles = []);
1476
- } else if (!a) {
1477
- const u = () => {
1478
- };
1479
- return u.stop = ie, u.resume = ie, u.pause = ie, u;
1480
- }
1481
- }
1482
- const p = ee;
1483
- o.call = (u, m, _) => ut(u, p, m, _);
1484
- let l = !1;
1485
- i === "post" ? o.scheduler = (u) => {
1486
- Rr(u, p && p.suspense);
1487
- } : i !== "sync" && (l = !0, o.scheduler = (u, m) => {
1488
- m ? u() : Ut(u);
1489
- }), o.augmentJob = (u) => {
1490
- t && (u.flags |= 4), l && (u.flags |= 2, p && (u.id = p.uid, u.i = p));
1491
- };
1492
- const f = Xn(e, t, o);
1493
- return Ie && (d ? d.push(f) : a && f()), f;
1494
- }
1495
- function Cr(e, t, n = $) {
1496
- const s = un();
1497
- if (process.env.NODE_ENV !== "production" && !s)
1498
- return E("useModel() called without active instance."), et();
1499
- const r = Dt(t);
1500
- if (process.env.NODE_ENV !== "production" && !s.propsOptions[0][r])
1501
- return E(`useModel() called with prop "${t}" which is not declared.`), et();
1502
- const i = Rt(t), c = $r(e, r), o = Gn((a, d) => {
1503
- let p, l = $, f;
1504
- return Tr(() => {
1505
- const u = e[r];
1506
- O(p, u) && (p = u, d());
1507
- }), {
1508
- get() {
1509
- return a(), n.get ? n.get(p) : p;
1510
- },
1511
- set(u) {
1512
- const m = n.set ? n.set(u) : u;
1513
- if (!O(m, p) && !(l !== $ && O(u, l)))
1514
- return;
1515
- const _ = s.vnode.props;
1516
- _ && // check if parent has passed v-model
1517
- (t in _ || r in _ || i in _) && (`onUpdate:${t}` in _ || `onUpdate:${r}` in _ || `onUpdate:${i}` in _) || (p = u, d()), s.emit(`update:${t}`, m), O(u, m) && O(u, l) && !O(m, f) && d(), l = u, f = m;
1518
- }
1519
- };
1520
- });
1521
- return o[Symbol.iterator] = () => {
1522
- let a = 0;
1523
- return {
1524
- next() {
1525
- return a < 2 ? { value: a++ ? c || $ : o, done: !1 } : { done: !0 };
1526
- }
1527
- };
1528
- }, o;
1529
- }
1530
- const $r = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${Dt(t)}Modifiers`] || e[`${Rt(t)}Modifiers`], Ar = (e) => e.__isSuspense;
1531
- function Mr(e, t) {
1532
- t && t.pendingBranch ? v(e) ? t.effects.push(...e) : t.effects.push(e) : Yt(e);
1533
- }
1534
- const Z = Symbol.for("v-fgt"), Pr = Symbol.for("v-txt"), xe = Symbol.for("v-cmt"), we = [];
1535
- let x = null;
1536
- function H(e = !1) {
1537
- we.push(x = e ? null : []);
1538
- }
1539
- function kr() {
1540
- we.pop(), x = we[we.length - 1] || null;
1541
- }
1542
- function rn(e) {
1543
- return e.dynamicChildren = x || _n, kr(), x && x.push(e), e;
1544
- }
1545
- function ne(e, t, n, s, r, i) {
1546
- return rn(
1547
- dt(
1548
- e,
1549
- t,
1550
- n,
1551
- s,
1552
- r,
1553
- i,
1554
- !0
1555
- )
1556
- );
1557
- }
1558
- function tt(e, t, n, s, r) {
1559
- return rn(
1560
- Fe(
1561
- e,
1562
- t,
1563
- n,
1564
- s,
1565
- r,
1566
- !0
1567
- )
1568
- );
1569
- }
1570
- function sn(e) {
1571
- return e ? e.__v_isVNode === !0 : !1;
1572
- }
1573
- const Fr = (...e) => cn(
1574
- ...e
1575
- ), on = ({ key: e }) => e ?? null, be = ({
1576
- ref: e,
1577
- ref_key: t,
1578
- ref_for: n
1579
- }) => (typeof e == "number" && (e = "" + e), e != null ? I(e) || V(e) || b(e) ? { i: A, r: e, k: t, f: !!n } : e : null);
1580
- function dt(e, t = null, n = null, s = 0, r = null, i = e === Z ? 0 : 1, c = !1, o = !1) {
1581
- const a = {
1582
- __v_isVNode: !0,
1583
- __v_skip: !0,
1584
- type: e,
1585
- props: t,
1586
- key: t && on(t),
1587
- ref: t && be(t),
1588
- scopeId: pr,
1589
- slotScopeIds: null,
1590
- children: n,
1591
- component: null,
1592
- suspense: null,
1593
- ssContent: null,
1594
- ssFallback: null,
1595
- dirs: null,
1596
- transition: null,
1597
- el: null,
1598
- anchor: null,
1599
- target: null,
1600
- targetStart: null,
1601
- targetAnchor: null,
1602
- staticCount: 0,
1603
- shapeFlag: i,
1604
- patchFlag: s,
1605
- dynamicProps: r,
1606
- dynamicChildren: null,
1607
- appContext: null,
1608
- ctx: A
1609
- };
1610
- return o ? (pt(a, n), i & 128 && e.normalize(a)) : n && (a.shapeFlag |= I(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && E("VNode created with invalid key (NaN). VNode type:", a.type), // avoid a block node from tracking itself
1611
- !c && // has current parent block
1612
- x && // presence of a patch flag indicates this node needs patching on updates.
1613
- // component nodes also should always be patched, because even if the
1614
- // component doesn't need to update, it needs to persist the instance on to
1615
- // the next vnode so that it can be properly unmounted later.
1616
- (a.patchFlag > 0 || i & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
1617
- // vnode should not be considered dynamic due to handler caching.
1618
- a.patchFlag !== 32 && x.push(a), a;
1619
- }
1620
- const Fe = process.env.NODE_ENV !== "production" ? Fr : cn;
1621
- function cn(e, t = null, n = null, s = 0, r = null, i = !1) {
1622
- if ((!e || e === Er) && (process.env.NODE_ENV !== "production" && !e && E(`Invalid vnode type when creating vnode: ${e}.`), e = xe), sn(e)) {
1623
- const o = Te(
1624
- e,
1625
- t,
1626
- !0
1627
- /* mergeRef: true */
1628
- );
1629
- return n && pt(o, n), !i && x && (o.shapeFlag & 6 ? x[x.indexOf(e)] = o : x.push(o)), o.patchFlag = -2, o;
1630
- }
1631
- if (pn(e) && (e = e.__vccOpts), t) {
1632
- t = Hr(t);
1633
- let { class: o, style: a } = t;
1634
- o && !I(o) && (t.class = fe(o)), S(a) && (Ne(a) && !v(a) && (a = M({}, a)), t.style = Me(a));
1635
- }
1636
- const c = I(e) ? 1 : Ar(e) ? 128 : hr(e) ? 64 : S(e) ? 4 : b(e) ? 2 : 0;
1637
- return process.env.NODE_ENV !== "production" && c & 4 && Ne(e) && (e = h(e), E(
1638
- "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
1639
- `
1640
- Component that was made reactive: `,
1641
- e
1642
- )), dt(
1643
- e,
1644
- t,
1645
- n,
1646
- s,
1647
- r,
1648
- c,
1649
- i,
1650
- !0
1651
- );
1652
- }
1653
- function Hr(e) {
1654
- return e ? Ne(e) || tn(e) ? M({}, e) : e : null;
1655
- }
1656
- function Te(e, t, n = !1, s = !1) {
1657
- const { props: r, ref: i, patchFlag: c, children: o, transition: a } = e, d = t ? jr(r || {}, t) : r, p = {
1658
- __v_isVNode: !0,
1659
- __v_skip: !0,
1660
- type: e.type,
1661
- props: d,
1662
- key: d && on(d),
1663
- ref: t && t.ref ? (
1664
- // #2078 in the case of <component :is="vnode" ref="extra"/>
1665
- // if the vnode itself already has a ref, cloneVNode will need to merge
1666
- // the refs so the single vnode can be set on multiple refs
1667
- n && i ? v(i) ? i.concat(be(t)) : [i, be(t)] : be(t)
1668
- ) : i,
1669
- scopeId: e.scopeId,
1670
- slotScopeIds: e.slotScopeIds,
1671
- children: process.env.NODE_ENV !== "production" && c === -1 && v(o) ? o.map(ln) : o,
1672
- target: e.target,
1673
- targetStart: e.targetStart,
1674
- targetAnchor: e.targetAnchor,
1675
- staticCount: e.staticCount,
1676
- shapeFlag: e.shapeFlag,
1677
- // if the vnode is cloned with extra props, we can no longer assume its
1678
- // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1679
- // note: preserve flag for fragments since they use the flag for children
1680
- // fast paths only.
1681
- patchFlag: t && e.type !== Z ? c === -1 ? 16 : c | 16 : c,
1682
- dynamicProps: e.dynamicProps,
1683
- dynamicChildren: e.dynamicChildren,
1684
- appContext: e.appContext,
1685
- dirs: e.dirs,
1686
- transition: a,
1687
- // These should technically only be non-null on mounted VNodes. However,
1688
- // they *should* be copied for kept-alive vnodes. So we just always copy
1689
- // them since them being non-null during a mount doesn't affect the logic as
1690
- // they will simply be overwritten.
1691
- component: e.component,
1692
- suspense: e.suspense,
1693
- ssContent: e.ssContent && Te(e.ssContent),
1694
- ssFallback: e.ssFallback && Te(e.ssFallback),
1695
- el: e.el,
1696
- anchor: e.anchor,
1697
- ctx: e.ctx,
1698
- ce: e.ce
1699
- };
1700
- return a && s && Xt(
1701
- p,
1702
- a.clone(p)
1703
- ), p;
1704
- }
1705
- function ln(e) {
1706
- const t = Te(e);
1707
- return v(e.children) && (t.children = e.children.map(ln)), t;
1708
- }
1709
- function an(e = " ", t = 0) {
1710
- return Fe(Pr, null, e, t);
1711
- }
1712
- function Lr(e = "", t = !1) {
1713
- return t ? (H(), tt(xe, null, e)) : Fe(xe, null, e);
1714
- }
1715
- function pt(e, t) {
1716
- let n = 0;
1717
- const { shapeFlag: s } = e;
1718
- if (t == null)
1719
- t = null;
1720
- else if (v(t))
1721
- n = 16;
1722
- else if (typeof t == "object")
1723
- if (s & 65) {
1724
- const r = t.default;
1725
- r && (r._c && (r._d = !1), pt(e, r()), r._c && (r._d = !0));
1726
- return;
1727
- } else
1728
- n = 32, !t._ && !tn(t) && (t._ctx = A);
1729
- else b(t) ? (t = { default: t, _ctx: A }, n = 32) : (t = String(t), s & 64 ? (n = 16, t = [an(t)]) : n = 8);
1730
- e.children = t, e.shapeFlag |= n;
1731
- }
1732
- function jr(...e) {
1733
- const t = {};
1734
- for (let n = 0; n < e.length; n++) {
1735
- const s = e[n];
1736
- for (const r in s)
1737
- if (r === "class")
1738
- t.class !== s.class && (t.class = fe([t.class, s.class]));
1739
- else if (r === "style")
1740
- t.style = Me([t.style, s.style]);
1741
- else if (gn(r)) {
1742
- const i = t[r], c = s[r];
1743
- c && i !== c && !(v(i) && i.includes(c)) && (t[r] = i ? [].concat(i, c) : c);
1744
- } else r !== "" && (t[r] = s[r]);
1745
- }
1746
- return t;
1747
- }
1748
- let ee = null;
1749
- const un = () => ee || A;
1750
- let nt;
1751
- {
1752
- const e = Ae(), t = (n, s) => {
1753
- let r;
1754
- return (r = e[n]) || (r = e[n] = []), r.push(s), (i) => {
1755
- r.length > 1 ? r.forEach((c) => c(i)) : r[0](i);
1756
- };
1757
- };
1758
- nt = t(
1759
- "__VUE_INSTANCE_SETTERS__",
1760
- (n) => ee = n
1761
- ), t(
1762
- "__VUE_SSR_SETTERS__",
1763
- (n) => Ie = n
1764
- );
1765
- }
1766
- const Wr = (e) => {
1767
- const t = ee;
1768
- return nt(e), e.scope.on(), () => {
1769
- e.scope.off(), nt(t);
1770
- };
1771
- };
1772
- let Ie = !1;
1773
- process.env.NODE_ENV;
1774
- const Kr = /(?:^|[-_])(\w)/g, Br = (e) => e.replace(Kr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
1775
- function fn(e, t = !0) {
1776
- return b(e) ? e.displayName || e.name : e.name || t && e.__name;
1777
- }
1778
- function dn(e, t, n = !1) {
1779
- let s = fn(t);
1780
- if (!s && t.__file) {
1781
- const r = t.__file.match(/([^/\\]+)\.\w+$/);
1782
- r && (s = r[1]);
1783
- }
1784
- if (!s && e && e.parent) {
1785
- const r = (i) => {
1786
- for (const c in i)
1787
- if (i[c] === t)
1788
- return c;
1789
- };
1790
- s = r(
1791
- e.components || e.parent.type.components
1792
- ) || r(e.appContext.components);
1793
- }
1794
- return s ? Br(s) : n ? "App" : "Anonymous";
1795
- }
1796
- function pn(e) {
1797
- return b(e) && "__vccOpts" in e;
1798
- }
1799
- function zr() {
1800
- if (process.env.NODE_ENV === "production" || typeof window > "u")
1801
- return;
1802
- const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
1803
- __vue_custom_formatter: !0,
1804
- header(l) {
1805
- return S(l) ? l.__isVue ? ["div", e, "VueInstance"] : V(l) ? [
1806
- "div",
1807
- {},
1808
- ["span", e, p(l)],
1809
- "<",
1810
- // avoid debugger accessing value affecting behavior
1811
- o("_value" in l ? l._value : l),
1812
- ">"
1813
- ] : oe(l) ? [
1814
- "div",
1815
- {},
1816
- ["span", e, N(l) ? "ShallowReactive" : "Reactive"],
1817
- "<",
1818
- o(l),
1819
- `>${L(l) ? " (readonly)" : ""}`
1820
- ] : L(l) ? [
1821
- "div",
1822
- {},
1823
- ["span", e, N(l) ? "ShallowReadonly" : "Readonly"],
1824
- "<",
1825
- o(l),
1826
- ">"
1827
- ] : null : null;
1828
- },
1829
- hasBody(l) {
1830
- return l && l.__isVue;
1831
- },
1832
- body(l) {
1833
- if (l && l.__isVue)
1834
- return [
1835
- "div",
1836
- {},
1837
- ...i(l.$)
1838
- ];
1839
- }
1840
- };
1841
- function i(l) {
1842
- const f = [];
1843
- l.type.props && l.props && f.push(c("props", h(l.props))), l.setupState !== $ && f.push(c("setup", l.setupState)), l.data !== $ && f.push(c("data", h(l.data)));
1844
- const u = a(l, "computed");
1845
- u && f.push(c("computed", u));
1846
- const m = a(l, "inject");
1847
- return m && f.push(c("injected", m)), f.push([
1848
- "div",
1849
- {},
1850
- [
1851
- "span",
1852
- {
1853
- style: s.style + ";opacity:0.66"
1854
- },
1855
- "$ (internal): "
1856
- ],
1857
- ["object", { object: l }]
1858
- ]), f;
1859
- }
1860
- function c(l, f) {
1861
- return f = M({}, f), Object.keys(f).length ? [
1862
- "div",
1863
- { style: "line-height:1.25em;margin-bottom:0.6em" },
1864
- [
1865
- "div",
1866
- {
1867
- style: "color:#476582"
1868
- },
1869
- l
1870
- ],
1871
- [
1872
- "div",
1873
- {
1874
- style: "padding-left:1.25em"
1875
- },
1876
- ...Object.keys(f).map((u) => [
1877
- "div",
1878
- {},
1879
- ["span", s, u + ": "],
1880
- o(f[u], !1)
1881
- ])
1882
- ]
1883
- ] : ["span", {}];
1884
- }
1885
- function o(l, f = !0) {
1886
- return typeof l == "number" ? ["span", t, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", s, l] : S(l) ? ["object", { object: f ? h(l) : l }] : ["span", n, String(l)];
1887
- }
1888
- function a(l, f) {
1889
- const u = l.type;
1890
- if (b(u))
1891
- return;
1892
- const m = {};
1893
- for (const _ in l.ctx)
1894
- d(u, _, f) && (m[_] = l.ctx[_]);
1895
- return m;
1896
- }
1897
- function d(l, f, u) {
1898
- const m = l[u];
1899
- if (v(m) && m.includes(f) || S(m) && f in m || l.extends && d(l.extends, f, u) || l.mixins && l.mixins.some((_) => d(_, f, u)))
1900
- return !0;
1901
- }
1902
- function p(l) {
1903
- return N(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
1904
- }
1905
- window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
1906
- }
1907
- process.env.NODE_ENV;
1908
- process.env.NODE_ENV;
1909
- process.env.NODE_ENV;
1910
- /**
1911
- * vue v3.5.13
1912
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
1913
- * @license MIT
1914
- **/
1915
- function Ur() {
1916
- zr();
1917
- }
1918
- process.env.NODE_ENV !== "production" && Ur();
1919
- const Jr = { class: "v-tabs_inner" }, Yr = ["data-id", "onClick"], qr = {
1
+ import { mergeModels as y, useModel as V, ref as C, useTemplateRef as v, onMounted as x, onBeforeUnmount as z, watch as E, createElementBlock as n, openBlock as s, normalizeClass as b, createElementVNode as L, createCommentVNode as N, Fragment as h, renderList as $, renderSlot as M, toDisplayString as k, createTextVNode as F, normalizeStyle as O, nextTick as q } from "vue";
2
+ const A = { class: "v-tabs_inner" }, D = ["data-id", "onClick"], P = {
1920
3
  key: 0,
1921
4
  class: "v-tabs_tab_title"
1922
- }, Gr = {
5
+ }, X = {
1923
6
  __name: "VTabs",
1924
- props: /* @__PURE__ */ wt({
7
+ props: /* @__PURE__ */ y({
1925
8
  direction: {
1926
9
  type: String,
1927
10
  default: "horizontal"
@@ -1958,83 +41,83 @@ const Jr = { class: "v-tabs_inner" }, Yr = ["data-id", "onClick"], qr = {
1958
41
  modelValue: {},
1959
42
  modelModifiers: {}
1960
43
  }),
1961
- emits: /* @__PURE__ */ wt(["update:modelValue"], ["update:modelValue"]),
1962
- setup(e, { emit: t }) {
1963
- const n = e, s = Cr(e, "modelValue"), r = t, i = et({});
1964
- let c = null;
1965
- const o = vt("tabs"), a = vt("elRef");
1966
- function d() {
1967
- n.withSlider && (c = new ResizeObserver(() => {
1968
- f();
1969
- }), o.value.forEach((u) => {
1970
- c.observe(u);
44
+ emits: /* @__PURE__ */ y(["update:modelValue"], ["update:modelValue"]),
45
+ setup(a, { emit: S }) {
46
+ const e = a, r = V(a, "modelValue"), g = S, f = C({});
47
+ let i = null;
48
+ const B = v("tabs"), c = v("elRef");
49
+ function w() {
50
+ e.withSlider && (i = new ResizeObserver(() => {
51
+ u();
52
+ }), B.value.forEach((t) => {
53
+ i.observe(t);
1971
54
  }));
1972
55
  }
1973
- function p() {
1974
- c == null || c.disconnect(), c = null;
56
+ function T() {
57
+ i == null || i.disconnect(), i = null;
1975
58
  }
1976
- function l(u) {
1977
- r("update:modelValue", u), f();
59
+ function d(t) {
60
+ g("update:modelValue", t), u();
1978
61
  }
1979
- async function f() {
1980
- if (!n.withSlider || !a.value)
62
+ async function u() {
63
+ if (!e.withSlider || !c.value)
1981
64
  return;
1982
- const u = a.value;
1983
- await cr();
1984
- const { left: m } = u.getBoundingClientRect(), [_] = u.getElementsByClassName("__active");
1985
- if (_) {
65
+ const t = c.value;
66
+ await q();
67
+ const { left: o } = t.getBoundingClientRect(), [l] = t.getElementsByClassName("__active");
68
+ if (l) {
1986
69
  const {
1987
- left: J,
1988
- width: j
1989
- } = _.getBoundingClientRect(), P = u.scrollLeft, Y = J + P - m;
1990
- i.value = {
1991
- transform: `translateX(${Y}px)`,
1992
- width: `${j}px`
70
+ left: m,
71
+ width: _
72
+ } = l.getBoundingClientRect(), R = t.scrollLeft, p = m + R - o;
73
+ f.value = {
74
+ transform: `translateX(${p}px)`,
75
+ width: `${_}px`
1993
76
  };
1994
77
  }
1995
78
  }
1996
- return yr(() => {
1997
- if (n.selectFirst && n.list.length && !s.value && l(n.list[0]), n.initialTab && n.list.length && !s.value) {
1998
- const u = n.list.find((m) => m[n.trackBy] === n.initialTab);
1999
- u && l(u);
79
+ return x(() => {
80
+ if (e.selectFirst && e.list.length && !r.value && d(e.list[0]), e.initialTab && e.list.length && !r.value) {
81
+ const t = e.list.find((o) => o[e.trackBy] === e.initialTab);
82
+ t && d(t);
2000
83
  }
2001
- d();
2002
- }), vr(() => {
2003
- p();
2004
- }), Ir(s, () => {
2005
- n.withSlider && f();
2006
- }), (u, m) => (H(), ne("div", {
2007
- class: fe(["v-tabs", [`__${n.direction}`]]),
84
+ w();
85
+ }), z(() => {
86
+ T();
87
+ }), E(r, () => {
88
+ e.withSlider && u();
89
+ }), (t, o) => (s(), n("div", {
90
+ class: b(["v-tabs", [`__${e.direction}`]]),
2008
91
  ref_key: "elRef",
2009
- ref: a
92
+ ref: c
2010
93
  }, [
2011
- dt("div", Jr, [
2012
- (H(!0), ne(Z, null, wr(n.list, (_) => (H(), ne("div", {
2013
- key: _[e.trackBy],
94
+ L("div", A, [
95
+ (s(!0), n(h, null, $(e.list, (l) => (s(), n("div", {
96
+ key: l[a.trackBy],
2014
97
  ref_for: !0,
2015
98
  ref: "tabs",
2016
- class: fe(["v-tabs_tab", {
2017
- __active: s.value && s.value[e.trackBy] === _[e.trackBy],
2018
- _disabled: _ && _._disabled
99
+ class: b(["v-tabs_tab", {
100
+ __active: r.value && r.value[a.trackBy] === l[a.trackBy],
101
+ _disabled: l && l._disabled
2019
102
  }]),
2020
- "data-id": _[e.trackBy],
2021
- onClick: (J) => l(_)
103
+ "data-id": l[a.trackBy],
104
+ onClick: (m) => d(l)
2022
105
  }, [
2023
- br(u.$slots, "single-tab", { tab: _ }, () => [
2024
- e.wrapTitle ? (H(), ne("div", qr, Ye(_[e.label] || ""), 1)) : (H(), ne(Z, { key: 1 }, [
2025
- an(Ye(_[e.label] || ""), 1)
106
+ M(t.$slots, "single-tab", { tab: l }, () => [
107
+ a.wrapTitle ? (s(), n("div", P, k(l[a.label] || ""), 1)) : (s(), n(h, { key: 1 }, [
108
+ F(k(l[a.label] || ""), 1)
2026
109
  ], 64))
2027
110
  ])
2028
- ], 10, Yr))), 128))
111
+ ], 10, D))), 128))
2029
112
  ]),
2030
- n.withSlider ? (H(), ne("div", {
113
+ e.withSlider ? (s(), n("div", {
2031
114
  key: 0,
2032
- style: Me(i.value),
115
+ style: O(f.value),
2033
116
  class: "v-tabs_slider"
2034
- }, null, 4)) : Lr("", !0)
117
+ }, null, 4)) : N("", !0)
2035
118
  ], 2));
2036
119
  }
2037
120
  };
2038
121
  export {
2039
- Gr as default
122
+ X as default
2040
123
  };