@xingtukeji/micro 1.0.10 → 1.1.0

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