@xingtukeji/micro 1.0.7 → 1.0.9

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,17 +1,17 @@
1
- var Nn = Object.defineProperty, vn = Object.defineProperties;
2
- var yn = Object.getOwnPropertyDescriptors;
3
- var pt = Object.getOwnPropertySymbols;
1
+ var yn = Object.defineProperty, Nn = Object.defineProperties;
2
+ var vn = Object.getOwnPropertyDescriptors;
3
+ var _t = Object.getOwnPropertySymbols;
4
4
  var bn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable;
5
- var Le = (e, t, n) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, W = (e, t) => {
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) => {
6
6
  for (var n in t || (t = {}))
7
7
  bn.call(t, n) && Le(e, n, t[n]);
8
- if (pt)
9
- for (var n of pt(t))
8
+ if (_t)
9
+ for (var n of _t(t))
10
10
  Sn.call(t, n) && Le(e, n, t[n]);
11
11
  return e;
12
- }, je = (e, t) => vn(e, yn(t));
12
+ }, Ue = (e, t) => Nn(e, vn(t));
13
13
  var pe = (e, t, n) => (Le(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var ht = (e, t, n) => new Promise((r, s) => {
14
+ var mt = (e, t, n) => new Promise((r, s) => {
15
15
  var o = (a) => {
16
16
  try {
17
17
  c(n.next(a));
@@ -38,12 +38,12 @@ function Rn(e, t) {
38
38
  const n = new Set(e.split(","));
39
39
  return t ? (r) => n.has(r.toLowerCase()) : (r) => n.has(r);
40
40
  }
41
- const M = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, In = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], Z = () => {
41
+ const V = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, In = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], Z = () => {
42
42
  }, Cn = (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) => Me(e) === "[object Map]", Pn = (e) => Me(e) === "[object Set]", E = (e) => typeof e == "function", P = (e) => typeof e == "string", ae = (e) => typeof e == "symbol", b = (e) => e !== null && typeof e == "object", Vn = (e) => (b(e) || E(e)) && E(e.then) && E(e.catch), Mn = Object.prototype.toString, Me = (e) => Mn.call(e), Vt = (e) => Me(e).slice(8, -1), Dn = (e) => Me(e) === "[object Object]", Ze = (e) => P(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Mt = (e) => {
43
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), I = Object.assign, Pn = Object.prototype.hasOwnProperty, w = (e, t) => Pn.call(e, t), m = Array.isArray, k = (e) => Ve(e) === "[object Map]", xn = (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", Mn = (e) => (b(e) || O(e)) && O(e.then) && O(e.catch), Vn = Object.prototype.toString, Ve = (e) => Vn.call(e), Vt = (e) => Ve(e).slice(8, -1), Dn = (e) => Ve(e) === "[object Object]", ke = (e) => x(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Dt = (e) => {
44
44
  const t = /* @__PURE__ */ Object.create(null);
45
45
  return (n) => t[n] || (t[n] = e(n));
46
- }, Dt = Mt((e) => e.charAt(0).toUpperCase() + e.slice(1)), Tn = Mt((e) => e ? `on${Dt(e)}` : ""), H = (e, t) => !Object.is(e, t), $n = (e, t, n, r = !1) => {
46
+ }, Tt = Dt((e) => e.charAt(0).toUpperCase() + e.slice(1)), Tn = Dt((e) => e ? `on${Tt(e)}` : ""), H = (e, t) => !Object.is(e, t), $n = (e, t, n, r = !1) => {
47
47
  Object.defineProperty(e, t, {
48
48
  configurable: !0,
49
49
  enumerable: !1,
@@ -51,38 +51,38 @@ const M = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, In = p
51
51
  value: n
52
52
  });
53
53
  };
54
- let _t;
55
- const Tt = () => _t || (_t = typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {});
56
- function ke(e) {
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
57
  if (m(e)) {
58
58
  const t = {};
59
59
  for (let n = 0; n < e.length; n++) {
60
- const r = e[n], s = P(r) ? Un(r) : ke(r);
60
+ const r = e[n], s = x(r) ? Fn(r) : et(r);
61
61
  if (s)
62
62
  for (const o in s)
63
63
  t[o] = s[o];
64
64
  }
65
65
  return t;
66
- } else if (P(e) || b(e))
66
+ } else if (x(e) || b(e))
67
67
  return e;
68
68
  }
69
- const An = /;(?![^(]*\))/g, Ln = /:([^]+)/, jn = /\/\*[^]*?\*\//g;
70
- function Un(e) {
69
+ const An = /;(?![^(]*\))/g, Ln = /:([^]+)/, Un = /\/\*[^]*?\*\//g;
70
+ function Fn(e) {
71
71
  const t = {};
72
- return e.replace(jn, "").split(An).forEach((n) => {
72
+ return e.replace(Un, "").split(An).forEach((n) => {
73
73
  if (n) {
74
74
  const r = n.split(Ln);
75
75
  r.length > 1 && (t[r[0].trim()] = r[1].trim());
76
76
  }
77
77
  }), t;
78
78
  }
79
- function et(e) {
79
+ function tt(e) {
80
80
  let t = "";
81
- if (P(e))
81
+ if (x(e))
82
82
  t = e;
83
83
  else if (m(e))
84
84
  for (let n = 0; n < e.length; n++) {
85
- const r = et(e[n]);
85
+ const r = tt(e[n]);
86
86
  r && (t += r + " ");
87
87
  }
88
88
  else if (b(e))
@@ -98,12 +98,12 @@ function et(e) {
98
98
  function ne(e, ...t) {
99
99
  console.warn(`[Vue warn] ${e}`, ...t);
100
100
  }
101
- let Fn;
102
- function Hn(e, t = Fn) {
101
+ let jn;
102
+ function Hn(e, t = jn) {
103
103
  t && t.active && t.effects.push(e);
104
104
  }
105
- let J;
106
- class $t {
105
+ let q;
106
+ class At {
107
107
  constructor(t, n, r, s) {
108
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, Hn(this, s);
109
109
  }
@@ -125,79 +125,79 @@ class $t {
125
125
  run() {
126
126
  if (this._dirtyLevel = 0, !this.active)
127
127
  return this.fn();
128
- let t = U, n = J;
128
+ let t = F, n = q;
129
129
  try {
130
- return U = !0, J = this, this._runnings++, mt(this), this.fn();
130
+ return F = !0, q = this, this._runnings++, wt(this), this.fn();
131
131
  } finally {
132
- gt(this), this._runnings--, J = n, U = t;
132
+ Et(this), this._runnings--, q = n, F = t;
133
133
  }
134
134
  }
135
135
  stop() {
136
- this.active && (mt(this), gt(this), this.onStop && this.onStop(), this.active = !1);
136
+ this.active && (wt(this), Et(this), this.onStop && this.onStop(), this.active = !1);
137
137
  }
138
138
  }
139
139
  function Kn(e) {
140
140
  return e.value;
141
141
  }
142
- function mt(e) {
142
+ function wt(e) {
143
143
  e._trackId++, e._depsLength = 0;
144
144
  }
145
- function gt(e) {
145
+ function Et(e) {
146
146
  if (e.deps.length > e._depsLength) {
147
147
  for (let t = e._depsLength; t < e.deps.length; t++)
148
- At(e.deps[t], e);
148
+ Lt(e.deps[t], e);
149
149
  e.deps.length = e._depsLength;
150
150
  }
151
151
  }
152
- function At(e, t) {
152
+ function Lt(e, t) {
153
153
  const n = e.get(t);
154
154
  n !== void 0 && t._trackId !== n && (e.delete(t), e.size === 0 && e.cleanup());
155
155
  }
156
- let U = !0, We = 0;
157
- const Lt = [];
156
+ let F = !0, We = 0;
157
+ const Ut = [];
158
158
  function ue() {
159
- Lt.push(U), U = !1;
159
+ Ut.push(F), F = !1;
160
160
  }
161
161
  function fe() {
162
- const e = Lt.pop();
163
- U = e === void 0 ? !0 : e;
162
+ const e = Ut.pop();
163
+ F = e === void 0 ? !0 : e;
164
164
  }
165
- function tt() {
165
+ function nt() {
166
166
  We++;
167
167
  }
168
- function nt() {
168
+ function rt() {
169
169
  for (We--; !We && Be.length; )
170
170
  Be.shift()();
171
171
  }
172
- function jt(e, t, n) {
172
+ function Ft(e, t, n) {
173
173
  var r;
174
174
  if (t.get(e) !== e._trackId) {
175
175
  t.set(e, e._trackId);
176
176
  const s = e.deps[e._depsLength];
177
- s !== t ? (s && At(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)));
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
178
  }
179
179
  }
180
180
  const Be = [];
181
- function Ut(e, t, n) {
181
+ function jt(e, t, n) {
182
182
  var r;
183
- tt();
183
+ nt();
184
184
  for (const s of e.keys()) {
185
185
  let o;
186
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
187
  }
188
- nt();
188
+ rt();
189
189
  }
190
- const Ft = (e, t) => {
190
+ const Ht = (e, t) => {
191
191
  const n = /* @__PURE__ */ new Map();
192
192
  return n.cleanup = e, n.computed = t, n;
193
- }, qe = /* @__PURE__ */ new WeakMap(), Y = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), Je = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
194
- function v(e, t, n) {
195
- if (U && J) {
196
- let r = qe.get(e);
197
- r || qe.set(e, r = /* @__PURE__ */ new Map());
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 N(e, t, n) {
195
+ if (F && q) {
196
+ let r = Xe.get(e);
197
+ r || Xe.set(e, r = /* @__PURE__ */ new Map());
198
198
  let s = r.get(n);
199
- s || r.set(n, s = Ft(() => r.delete(n))), jt(
200
- J,
199
+ s || r.set(n, s = Ht(() => r.delete(n))), Ft(
200
+ q,
201
201
  s,
202
202
  process.env.NODE_ENV !== "production" ? {
203
203
  target: e,
@@ -207,8 +207,8 @@ function v(e, t, n) {
207
207
  );
208
208
  }
209
209
  }
210
- function F(e, t, n, r, s, o) {
211
- const i = qe.get(e);
210
+ function j(e, t, n, r, s, o) {
211
+ const i = Xe.get(e);
212
212
  if (!i)
213
213
  return;
214
214
  let c = [];
@@ -222,18 +222,18 @@ function F(e, t, n, r, s, o) {
222
222
  } else
223
223
  switch (n !== void 0 && c.push(i.get(n)), t) {
224
224
  case "add":
225
- m(e) ? Ze(n) && c.push(i.get("length")) : (c.push(i.get(Y)), k(e) && c.push(i.get(Je)));
225
+ m(e) ? ke(n) && c.push(i.get("length")) : (c.push(i.get(J)), k(e) && c.push(i.get(qe)));
226
226
  break;
227
227
  case "delete":
228
- m(e) || (c.push(i.get(Y)), k(e) && c.push(i.get(Je)));
228
+ m(e) || (c.push(i.get(J)), k(e) && c.push(i.get(qe)));
229
229
  break;
230
230
  case "set":
231
- k(e) && c.push(i.get(Y));
231
+ k(e) && c.push(i.get(J));
232
232
  break;
233
233
  }
234
- tt();
234
+ nt();
235
235
  for (const a of c)
236
- a && Ut(
236
+ a && jt(
237
237
  a,
238
238
  4,
239
239
  process.env.NODE_ENV !== "production" ? {
@@ -245,35 +245,35 @@ function F(e, t, n, r, s, o) {
245
245
  oldTarget: o
246
246
  } : void 0
247
247
  );
248
- nt();
248
+ rt();
249
249
  }
250
- const zn = /* @__PURE__ */ Rn("__proto__,__v_isRef,__isVue"), Ht = new Set(
250
+ const zn = /* @__PURE__ */ Rn("__proto__,__v_isRef,__isVue"), Kt = new Set(
251
251
  /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ae)
252
- ), wt = /* @__PURE__ */ Wn();
252
+ ), Ot = /* @__PURE__ */ Wn();
253
253
  function Wn() {
254
254
  const e = {};
255
255
  return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
256
256
  e[t] = function(...n) {
257
257
  const r = f(this);
258
258
  for (let o = 0, i = this.length; o < i; o++)
259
- v(r, "get", o + "");
259
+ N(r, "get", o + "");
260
260
  const s = r[t](...n);
261
261
  return s === -1 || s === !1 ? r[t](...n.map(f)) : s;
262
262
  };
263
263
  }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
264
264
  e[t] = function(...n) {
265
- ue(), tt();
265
+ ue(), nt();
266
266
  const r = f(this)[t].apply(this, n);
267
- return nt(), fe(), r;
267
+ return rt(), fe(), r;
268
268
  };
269
269
  }), e;
270
270
  }
271
271
  function Bn(e) {
272
272
  ae(e) || (e = String(e));
273
273
  const t = f(this);
274
- return v(t, "has", e), t.hasOwnProperty(e);
274
+ return N(t, "has", e), t.hasOwnProperty(e);
275
275
  }
276
- class Kt {
276
+ class zt {
277
277
  constructor(t = !1, n = !1) {
278
278
  this._isReadonly = t, this._isShallow = n;
279
279
  }
@@ -286,21 +286,21 @@ class Kt {
286
286
  if (n === "__v_isShallow")
287
287
  return o;
288
288
  if (n === "__v_raw")
289
- return r === (s ? o ? Jt : qt : o ? sr : Bt).get(t) || // receiver is not the reactive proxy, but has the same prototype
289
+ return r === (s ? o ? Jt : qt : o ? sr : Xt).get(t) || // receiver is not the reactive proxy, but has the same prototype
290
290
  // this means the receiver is a user proxy of the reactive proxy
291
291
  Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
292
292
  const i = m(t);
293
293
  if (!s) {
294
- if (i && w(wt, n))
295
- return Reflect.get(wt, n, r);
294
+ if (i && w(Ot, n))
295
+ return Reflect.get(Ot, n, r);
296
296
  if (n === "hasOwnProperty")
297
297
  return Bn;
298
298
  }
299
299
  const c = Reflect.get(t, n, r);
300
- return (ae(n) ? Ht.has(n) : zn(n)) || (s || v(t, "get", n), o) ? c : R(c) ? i && Ze(n) ? c : c.value : b(c) ? s ? Gt(c) : Yt(c) : c;
300
+ return (ae(n) ? Kt.has(n) : zn(n)) || (s || N(t, "get", n), o) ? c : R(c) ? i && ke(n) ? c : c.value : b(c) ? s ? Gt(c) : Yt(c) : c;
301
301
  }
302
302
  }
303
- class qn extends Kt {
303
+ class Xn extends zt {
304
304
  constructor(t = !1) {
305
305
  super(!1, t);
306
306
  }
@@ -311,26 +311,26 @@ class qn extends Kt {
311
311
  if (!T(r) && !$(r) && (o = f(o), r = f(r)), !m(t) && R(o) && !R(r))
312
312
  return a ? !1 : (o.value = r, !0);
313
313
  }
314
- const i = m(t) && Ze(n) ? Number(n) < t.length : w(t, n), c = Reflect.set(t, n, r, s);
315
- return t === f(s) && (i ? H(r, o) && F(t, "set", n, r, o) : F(t, "add", n, r)), c;
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
316
  }
317
317
  deleteProperty(t, n) {
318
318
  const r = w(t, n), s = t[n], o = Reflect.deleteProperty(t, n);
319
- return o && r && F(t, "delete", n, void 0, s), o;
319
+ return o && r && j(t, "delete", n, void 0, s), o;
320
320
  }
321
321
  has(t, n) {
322
322
  const r = Reflect.has(t, n);
323
- return (!ae(n) || !Ht.has(n)) && v(t, "has", n), r;
323
+ return (!ae(n) || !Kt.has(n)) && N(t, "has", n), r;
324
324
  }
325
325
  ownKeys(t) {
326
- return v(
326
+ return N(
327
327
  t,
328
328
  "iterate",
329
- m(t) ? "length" : Y
329
+ m(t) ? "length" : J
330
330
  ), Reflect.ownKeys(t);
331
331
  }
332
332
  }
333
- class zt extends Kt {
333
+ class Wt extends zt {
334
334
  constructor(t = !1) {
335
335
  super(!0, t);
336
336
  }
@@ -347,12 +347,12 @@ class zt extends Kt {
347
347
  ), !0;
348
348
  }
349
349
  }
350
- const Jn = /* @__PURE__ */ new qn(), Yn = /* @__PURE__ */ new zt(), Gn = /* @__PURE__ */ new zt(!0), rt = (e) => e, De = (e) => Reflect.getPrototypeOf(e);
350
+ const qn = /* @__PURE__ */ new Xn(), Jn = /* @__PURE__ */ new Wt(), Yn = /* @__PURE__ */ new Wt(!0), st = (e) => e, De = (e) => Reflect.getPrototypeOf(e);
351
351
  function he(e, t, n = !1, r = !1) {
352
352
  e = e.__v_raw;
353
353
  const s = f(e), o = f(t);
354
- n || (H(t, o) && v(s, "get", t), v(s, "get", o));
355
- const { has: i } = De(s), c = r ? rt : n ? it : ce;
354
+ n || (H(t, o) && N(s, "get", t), N(s, "get", o));
355
+ const { has: i } = De(s), c = r ? st : n ? ct : ce;
356
356
  if (i.call(s, t))
357
357
  return c(e.get(t));
358
358
  if (i.call(s, o))
@@ -361,48 +361,48 @@ function he(e, t, n = !1, r = !1) {
361
361
  }
362
362
  function _e(e, t = !1) {
363
363
  const n = this.__v_raw, r = f(n), s = f(e);
364
- return t || (H(e, s) && v(r, "has", e), v(r, "has", s)), e === s ? n.has(e) : n.has(e) || n.has(s);
364
+ return t || (H(e, s) && N(r, "has", e), N(r, "has", s)), e === s ? n.has(e) : n.has(e) || n.has(s);
365
365
  }
366
366
  function me(e, t = !1) {
367
- return e = e.__v_raw, !t && v(f(e), "iterate", Y), Reflect.get(e, "size", e);
367
+ return e = e.__v_raw, !t && N(f(e), "iterate", J), Reflect.get(e, "size", e);
368
368
  }
369
- function Et(e, t = !1) {
369
+ function yt(e, t = !1) {
370
370
  !t && !T(e) && !$(e) && (e = f(e));
371
371
  const n = f(this);
372
- return De(n).has.call(n, e) || (n.add(e), F(n, "add", e, e)), this;
372
+ return De(n).has.call(n, e) || (n.add(e), j(n, "add", e, e)), this;
373
373
  }
374
- function Ot(e, t, n = !1) {
374
+ function Nt(e, t, n = !1) {
375
375
  !n && !T(t) && !$(t) && (t = f(t));
376
376
  const r = f(this), { has: s, get: o } = De(r);
377
377
  let i = s.call(r, e);
378
- i ? process.env.NODE_ENV !== "production" && Wt(r, s, e) : (e = f(e), 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
379
  const c = o.call(r, e);
380
- return r.set(e, t), i ? H(t, c) && F(r, "set", e, t, c) : F(r, "add", e, t), this;
380
+ return r.set(e, t), i ? H(t, c) && j(r, "set", e, t, c) : j(r, "add", e, t), this;
381
381
  }
382
- function Nt(e) {
382
+ function vt(e) {
383
383
  const t = f(this), { has: n, get: r } = De(t);
384
384
  let s = n.call(t, e);
385
- s ? process.env.NODE_ENV !== "production" && Wt(t, n, e) : (e = f(e), 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
386
  const o = r ? r.call(t, e) : void 0, i = t.delete(e);
387
- return s && F(t, "delete", e, void 0, o), i;
387
+ return s && j(t, "delete", e, void 0, o), i;
388
388
  }
389
- function vt() {
389
+ function bt() {
390
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 && F(e, "clear", void 0, void 0, n), r;
391
+ return t && j(e, "clear", void 0, void 0, n), r;
392
392
  }
393
393
  function ge(e, t) {
394
394
  return function(r, s) {
395
- const o = this, i = o.__v_raw, c = f(i), a = t ? rt : e ? it : ce;
396
- return !e && v(c, "iterate", Y), i.forEach((u, h) => r.call(s, a(u), a(h), o));
395
+ const o = this, i = o.__v_raw, c = f(i), a = t ? st : e ? ct : ce;
396
+ return !e && N(c, "iterate", J), i.forEach((u, h) => r.call(s, a(u), a(h), o));
397
397
  };
398
398
  }
399
399
  function we(e, t, n) {
400
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 ? rt : t ? it : ce;
402
- return !t && v(
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 && N(
403
403
  o,
404
404
  "iterate",
405
- a ? Je : Y
405
+ a ? qe : J
406
406
  ), {
407
407
  // iterator protocol
408
408
  next() {
@@ -424,14 +424,14 @@ function A(e) {
424
424
  if (process.env.NODE_ENV !== "production") {
425
425
  const n = t[0] ? `on key "${t[0]}" ` : "";
426
426
  ne(
427
- `${Dt(e)} operation ${n}failed: target is readonly.`,
427
+ `${Tt(e)} operation ${n}failed: target is readonly.`,
428
428
  f(this)
429
429
  );
430
430
  }
431
431
  return e === "delete" ? !1 : e === "clear" ? void 0 : this;
432
432
  };
433
433
  }
434
- function Xn() {
434
+ function Gn() {
435
435
  const e = {
436
436
  get(o) {
437
437
  return he(this, o);
@@ -440,10 +440,10 @@ function Xn() {
440
440
  return me(this);
441
441
  },
442
442
  has: _e,
443
- add: Et,
444
- set: Ot,
445
- delete: Nt,
446
- clear: vt,
443
+ add: yt,
444
+ set: Nt,
445
+ delete: vt,
446
+ clear: bt,
447
447
  forEach: ge(!1, !1)
448
448
  }, t = {
449
449
  get(o) {
@@ -454,13 +454,13 @@ function Xn() {
454
454
  },
455
455
  has: _e,
456
456
  add(o) {
457
- return Et.call(this, o, !0);
457
+ return yt.call(this, o, !0);
458
458
  },
459
459
  set(o, i) {
460
- return Ot.call(this, o, i, !0);
460
+ return Nt.call(this, o, i, !0);
461
461
  },
462
- delete: Nt,
463
- clear: vt,
462
+ delete: vt,
463
+ clear: bt,
464
464
  forEach: ge(!1, !0)
465
465
  }, n = {
466
466
  get(o) {
@@ -516,8 +516,8 @@ const [
516
516
  Zn,
517
517
  kn,
518
518
  er
519
- ] = /* @__PURE__ */ Xn();
520
- function st(e, t) {
519
+ ] = /* @__PURE__ */ Gn();
520
+ function ot(e, t) {
521
521
  const n = t ? e ? er : kn : e ? Zn : Qn;
522
522
  return (r, s, o) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? r : Reflect.get(
523
523
  w(n, s) && s in r ? n : r,
@@ -526,13 +526,13 @@ function st(e, t) {
526
526
  );
527
527
  }
528
528
  const tr = {
529
- get: /* @__PURE__ */ st(!1, !1)
529
+ get: /* @__PURE__ */ ot(!1, !1)
530
530
  }, nr = {
531
- get: /* @__PURE__ */ st(!0, !1)
531
+ get: /* @__PURE__ */ ot(!0, !1)
532
532
  }, rr = {
533
- get: /* @__PURE__ */ st(!0, !0)
533
+ get: /* @__PURE__ */ ot(!0, !0)
534
534
  };
535
- function Wt(e, t, n) {
535
+ function Bt(e, t, n) {
536
536
  const r = f(n);
537
537
  if (r !== n && t.call(e, r)) {
538
538
  const s = Vt(e);
@@ -541,7 +541,7 @@ function Wt(e, t, n) {
541
541
  );
542
542
  }
543
543
  }
544
- const Bt = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap();
544
+ const Xt = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap();
545
545
  function or(e) {
546
546
  switch (e) {
547
547
  case "Object":
@@ -560,33 +560,33 @@ function ir(e) {
560
560
  return e.__v_skip || !Object.isExtensible(e) ? 0 : or(Vt(e));
561
561
  }
562
562
  function Yt(e) {
563
- return $(e) ? e : ot(
563
+ return $(e) ? e : it(
564
564
  e,
565
565
  !1,
566
- Jn,
566
+ qn,
567
567
  tr,
568
- Bt
568
+ Xt
569
569
  );
570
570
  }
571
571
  function Gt(e) {
572
- return ot(
572
+ return it(
573
573
  e,
574
574
  !0,
575
- Yn,
575
+ Jn,
576
576
  nr,
577
577
  qt
578
578
  );
579
579
  }
580
580
  function Ee(e) {
581
- return ot(
581
+ return it(
582
582
  e,
583
583
  !0,
584
- Gn,
584
+ Yn,
585
585
  rr,
586
586
  Jt
587
587
  );
588
588
  }
589
- function ot(e, t, n, r, s) {
589
+ function it(e, t, n, r, s) {
590
590
  if (!b(e))
591
591
  return process.env.NODE_ENV !== "production" && ne(
592
592
  `value cannot be made ${t ? "readonly" : "reactive"}: ${String(
@@ -616,7 +616,7 @@ function $(e) {
616
616
  function T(e) {
617
617
  return !!(e && e.__v_isShallow);
618
618
  }
619
- function Ye(e) {
619
+ function Je(e) {
620
620
  return e ? !!e.__v_raw : !1;
621
621
  }
622
622
  function f(e) {
@@ -626,12 +626,12 @@ function f(e) {
626
626
  function cr(e) {
627
627
  return Object.isExtensible(e) && $n(e, "__v_skip", !0), e;
628
628
  }
629
- const ce = (e) => b(e) ? Yt(e) : e, it = (e) => b(e) ? Gt(e) : e, lr = "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";
629
+ const ce = (e) => b(e) ? Yt(e) : e, ct = (e) => b(e) ? Gt(e) : e, lr = "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
630
  class ar {
631
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 $t(
632
+ this.getter = t, this._setter = n, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this.effect = new At(
633
633
  () => t(this._value),
634
- () => ve(
634
+ () => Ne(
635
635
  this,
636
636
  this.effect._dirtyLevel === 2 ? 2 : 3
637
637
  )
@@ -639,9 +639,9 @@ class ar {
639
639
  }
640
640
  get value() {
641
641
  const t = f(this);
642
- return (!t._cacheable || t.effect.dirty) && H(t._value, t._value = t.effect.run()) && ve(t, 4), Xt(t), t.effect._dirtyLevel >= 2 && (process.env.NODE_ENV !== "production" && this._warnRecursive && ne(lr, `
642
+ return (!t._cacheable || t.effect.dirty) && H(t._value, t._value = t.effect.run()) && Ne(t, 4), Qt(t), t.effect._dirtyLevel >= 2 && (process.env.NODE_ENV !== "production" && this._warnRecursive && ne(lr, `
643
643
 
644
- getter: `, this.getter), ve(t, 2)), t._value;
644
+ getter: `, this.getter), Ne(t, 2)), t._value;
645
645
  }
646
646
  set value(t) {
647
647
  this._setter(t);
@@ -655,11 +655,11 @@ getter: `, this.getter), ve(t, 2)), t._value;
655
655
  }
656
656
  // #endregion
657
657
  }
658
- function Xt(e) {
658
+ function Qt(e) {
659
659
  var t;
660
- U && J && (e = f(e), jt(
661
- J,
662
- (t = e.dep) != null ? t : e.dep = Ft(
660
+ F && q && (e = f(e), Ft(
661
+ q,
662
+ (t = e.dep) != null ? t : e.dep = Ht(
663
663
  () => e.dep = void 0,
664
664
  e instanceof ar ? e : void 0
665
665
  ),
@@ -670,10 +670,10 @@ function Xt(e) {
670
670
  } : void 0
671
671
  ));
672
672
  }
673
- function ve(e, t = 4, n, r) {
673
+ function Ne(e, t = 4, n, r) {
674
674
  e = f(e);
675
675
  const s = e.dep;
676
- s && Ut(
676
+ s && jt(
677
677
  s,
678
678
  t,
679
679
  process.env.NODE_ENV !== "production" ? {
@@ -688,7 +688,7 @@ function ve(e, t = 4, n, r) {
688
688
  function R(e) {
689
689
  return !!(e && e.__v_isRef === !0);
690
690
  }
691
- function Qt(e) {
691
+ function Zt(e) {
692
692
  return ur(e, !1);
693
693
  }
694
694
  function ur(e, t) {
@@ -699,13 +699,13 @@ class fr {
699
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
700
  }
701
701
  get value() {
702
- return Xt(this), this._value;
702
+ return Qt(this), this._value;
703
703
  }
704
704
  set value(t) {
705
705
  const n = this.__v_isShallow || T(t) || $(t);
706
706
  if (t = n ? t : f(t), H(t, this._rawValue)) {
707
707
  const r = this._rawValue;
708
- this._rawValue = t, this._value = n ? t : ce(t), ve(this, 4, t, r);
708
+ this._rawValue = t, this._value = n ? t : ce(t), Ne(this, 4, t, r);
709
709
  }
710
710
  }
711
711
  }
@@ -727,21 +727,21 @@ function hr(e) {
727
727
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
728
728
  * @license MIT
729
729
  **/
730
- const G = [];
730
+ const Y = [];
731
731
  function _r(e) {
732
- G.push(e);
732
+ Y.push(e);
733
733
  }
734
734
  function mr() {
735
- G.pop();
735
+ Y.pop();
736
736
  }
737
- let Ue = !1;
737
+ let Fe = !1;
738
738
  function _(e, ...t) {
739
- if (Ue)
739
+ if (Fe)
740
740
  return;
741
- Ue = !0, ue();
742
- const n = G.length ? G[G.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = gr();
741
+ Fe = !0, ue();
742
+ const n = Y.length ? Y[Y.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = gr();
743
743
  if (r)
744
- X(
744
+ G(
745
745
  r,
746
746
  n,
747
747
  11,
@@ -753,7 +753,7 @@ function _(e, ...t) {
753
753
  }).join(""),
754
754
  n && n.proxy,
755
755
  s.map(
756
- ({ vnode: o }) => `at <${gn(n, o.type)}>`
756
+ ({ vnode: o }) => `at <${wn(n, o.type)}>`
757
757
  ).join(`
758
758
  `),
759
759
  s
@@ -764,10 +764,10 @@ function _(e, ...t) {
764
764
  s.length && o.push(`
765
765
  `, ...wr(s)), console.warn(...o);
766
766
  }
767
- fe(), Ue = !1;
767
+ fe(), Fe = !1;
768
768
  }
769
769
  function gr() {
770
- let e = G[G.length - 1];
770
+ let e = Y[Y.length - 1];
771
771
  if (!e)
772
772
  return [];
773
773
  const t = [];
@@ -790,7 +790,7 @@ function wr(e) {
790
790
  }), t;
791
791
  }
792
792
  function Er({ vnode: e, recurseCount: t }) {
793
- const n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, s = ` at <${gn(
793
+ const n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, s = ` at <${wn(
794
794
  e.component,
795
795
  e.type,
796
796
  r
@@ -800,13 +800,13 @@ function Er({ vnode: e, recurseCount: t }) {
800
800
  function Or(e) {
801
801
  const t = [], n = Object.keys(e);
802
802
  return n.slice(0, 3).forEach((r) => {
803
- t.push(...Zt(r, e[r]));
803
+ t.push(...kt(r, e[r]));
804
804
  }), n.length > 3 && t.push(" ..."), t;
805
805
  }
806
- function Zt(e, t, n) {
807
- return P(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : R(t) ? (t = Zt(e, f(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : E(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = f(t), n ? t : [`${e}=`, t]);
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
808
  }
809
- const ct = {
809
+ const lt = {
810
810
  sp: "serverPrefetch hook",
811
811
  bc: "beforeCreate hook",
812
812
  c: "created hook",
@@ -838,18 +838,18 @@ const ct = {
838
838
  14: "scheduler flush",
839
839
  15: "component update"
840
840
  };
841
- function X(e, t, n, r) {
841
+ function G(e, t, n, r) {
842
842
  try {
843
843
  return r ? e(...r) : e();
844
844
  } catch (s) {
845
- lt(s, t, n);
845
+ at(s, t, n);
846
846
  }
847
847
  }
848
848
  function oe(e, t, n, r) {
849
- if (E(e)) {
850
- const s = X(e, t, n, r);
851
- return s && Vn(s) && s.catch((o) => {
852
- lt(o, t, n);
849
+ if (O(e)) {
850
+ const s = G(e, t, n, r);
851
+ return s && Mn(s) && s.catch((o) => {
852
+ at(o, t, n);
853
853
  }), s;
854
854
  }
855
855
  if (m(e)) {
@@ -862,11 +862,11 @@ function oe(e, t, n, r) {
862
862
  `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
863
863
  );
864
864
  }
865
- function lt(e, t, n, r = !0) {
865
+ function at(e, t, n, r = !0) {
866
866
  const s = t ? t.vnode : null;
867
867
  if (t) {
868
868
  let o = t.parent;
869
- const i = t.proxy, c = process.env.NODE_ENV !== "production" ? ct[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
869
+ const i = t.proxy, c = process.env.NODE_ENV !== "production" ? lt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
870
870
  for (; o; ) {
871
871
  const u = o.ec;
872
872
  if (u) {
@@ -878,7 +878,7 @@ function lt(e, t, n, r = !0) {
878
878
  }
879
879
  const a = t.appContext.config.errorHandler;
880
880
  if (a) {
881
- ue(), X(
881
+ ue(), G(
882
882
  a,
883
883
  null,
884
884
  10,
@@ -887,51 +887,51 @@ function lt(e, t, n, r = !0) {
887
887
  return;
888
888
  }
889
889
  }
890
- Nr(e, n, s, r);
890
+ yr(e, n, s, r);
891
891
  }
892
- function Nr(e, t, n, r = !0) {
892
+ function yr(e, t, n, r = !0) {
893
893
  if (process.env.NODE_ENV !== "production") {
894
- const s = ct[t];
894
+ const s = lt[t];
895
895
  if (n && _r(n), _(`Unhandled error${s ? ` during execution of ${s}` : ""}`), n && mr(), r)
896
896
  throw e;
897
897
  console.error(e);
898
898
  } else
899
899
  console.error(e);
900
900
  }
901
- let Re = !1, Ge = !1;
901
+ let Re = !1, Ye = !1;
902
902
  const C = [];
903
- let j = 0;
903
+ let U = 0;
904
904
  const te = [];
905
905
  let L = null, B = 0;
906
- const kt = /* @__PURE__ */ Promise.resolve();
907
- let at = null;
908
- const vr = 100;
909
- function yr(e) {
910
- const t = at || kt;
906
+ const en = /* @__PURE__ */ Promise.resolve();
907
+ let ut = null;
908
+ const Nr = 100;
909
+ function vr(e) {
910
+ const t = ut || en;
911
911
  return e ? t.then(this ? e.bind(this) : e) : t;
912
912
  }
913
913
  function br(e) {
914
- let t = j + 1, n = C.length;
914
+ let t = U + 1, n = C.length;
915
915
  for (; t < n; ) {
916
916
  const r = t + n >>> 1, s = C[r], o = le(s);
917
917
  o < e || o === e && s.pre ? t = r + 1 : n = r;
918
918
  }
919
919
  return t;
920
920
  }
921
- function ut(e) {
921
+ function ft(e) {
922
922
  (!C.length || !C.includes(
923
923
  e,
924
- Re && e.allowRecurse ? j + 1 : j
925
- )) && (e.id == null ? C.push(e) : C.splice(br(e.id), 0, e), en());
924
+ Re && e.allowRecurse ? U + 1 : U
925
+ )) && (e.id == null ? C.push(e) : C.splice(br(e.id), 0, e), tn());
926
926
  }
927
- function en() {
928
- !Re && !Ge && (Ge = !0, at = kt.then(nn));
927
+ function tn() {
928
+ !Re && !Ye && (Ye = !0, ut = en.then(rn));
929
929
  }
930
- function tn(e) {
930
+ function nn(e) {
931
931
  m(e) ? te.push(...e) : (!L || !L.includes(
932
932
  e,
933
933
  e.allowRecurse ? B + 1 : B
934
- )) && te.push(e), en();
934
+ )) && te.push(e), tn();
935
935
  }
936
936
  function Sr(e) {
937
937
  if (te.length) {
@@ -944,7 +944,7 @@ function Sr(e) {
944
944
  }
945
945
  for (L = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), B = 0; B < L.length; B++) {
946
946
  const n = L[B];
947
- process.env.NODE_ENV !== "production" && rn(e, n) || n.active !== !1 && n();
947
+ process.env.NODE_ENV !== "production" && sn(e, n) || n.active !== !1 && n();
948
948
  }
949
949
  L = null, B = 0;
950
950
  }
@@ -959,16 +959,16 @@ const le = (e) => e.id == null ? 1 / 0 : e.id, Rr = (e, t) => {
959
959
  }
960
960
  return n;
961
961
  };
962
- function nn(e) {
963
- Ge = !1, Re = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), C.sort(Rr);
964
- const t = process.env.NODE_ENV !== "production" ? (n) => rn(e, n) : Z;
962
+ function rn(e) {
963
+ Ye = !1, Re = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), C.sort(Rr);
964
+ const t = process.env.NODE_ENV !== "production" ? (n) => sn(e, n) : Z;
965
965
  try {
966
- for (j = 0; j < C.length; j++) {
967
- const n = C[j];
966
+ for (U = 0; U < C.length; U++) {
967
+ const n = C[U];
968
968
  if (n && n.active !== !1) {
969
969
  if (process.env.NODE_ENV !== "production" && t(n))
970
970
  continue;
971
- X(
971
+ G(
972
972
  n,
973
973
  n.i,
974
974
  n.i ? 15 : 14
@@ -976,17 +976,17 @@ function nn(e) {
976
976
  }
977
977
  }
978
978
  } finally {
979
- j = 0, C.length = 0, Sr(e), Re = !1, at = null, (C.length || te.length) && nn(e);
979
+ U = 0, C.length = 0, Sr(e), Re = !1, ut = null, (C.length || te.length) && rn(e);
980
980
  }
981
981
  }
982
- function rn(e, t) {
982
+ function sn(e, t) {
983
983
  if (!e.has(t))
984
984
  e.set(t, 1);
985
985
  else {
986
986
  const n = e.get(t);
987
- if (n > vr) {
988
- const r = t.i, s = r && mn(r.type);
989
- return lt(
987
+ if (n > Nr) {
988
+ const r = t.i, s = r && gn(r.type);
989
+ return at(
990
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
991
  null,
992
992
  10
@@ -995,11 +995,11 @@ function rn(e, t) {
995
995
  e.set(t, n + 1);
996
996
  }
997
997
  }
998
- const Fe = /* @__PURE__ */ new Map();
999
- process.env.NODE_ENV !== "production" && (Tt().__VUE_HMR_RUNTIME__ = {
998
+ const je = /* @__PURE__ */ new Map();
999
+ process.env.NODE_ENV !== "production" && ($t().__VUE_HMR_RUNTIME__ = {
1000
1000
  createRecord: He(Ir),
1001
1001
  rerender: He(Cr),
1002
- reload: He(xr)
1002
+ reload: He(Pr)
1003
1003
  });
1004
1004
  const Ie = /* @__PURE__ */ new Map();
1005
1005
  function Ir(e, t) {
@@ -1009,7 +1009,7 @@ function Ir(e, t) {
1009
1009
  }), !0);
1010
1010
  }
1011
1011
  function Ce(e) {
1012
- return wn(e) ? e.__vccOpts : e;
1012
+ return En(e) ? e.__vccOpts : e;
1013
1013
  }
1014
1014
  function Cr(e, t) {
1015
1015
  const n = Ie.get(e);
@@ -1017,26 +1017,26 @@ function Cr(e, t) {
1017
1017
  t && (r.render = t, Ce(r.type).render = t), r.renderCache = [], r.effect.dirty = !0, r.update();
1018
1018
  }));
1019
1019
  }
1020
- function xr(e, t) {
1020
+ function Pr(e, t) {
1021
1021
  const n = Ie.get(e);
1022
1022
  if (!n)
1023
1023
  return;
1024
- t = Ce(t), yt(n.initialDef, t);
1024
+ t = Ce(t), St(n.initialDef, t);
1025
1025
  const r = [...n.instances];
1026
1026
  for (let s = 0; s < r.length; s++) {
1027
1027
  const o = r[s], i = Ce(o.type);
1028
- let c = Fe.get(i);
1029
- c || (i !== n.initialDef && yt(i, t), Fe.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, ut(() => {
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
1030
  o.parent.update(), c.delete(o);
1031
1031
  })) : o.appContext.reload ? o.appContext.reload() : typeof window != "undefined" ? window.location.reload() : console.warn(
1032
1032
  "[HMR] Root or manually mounted instance modified. Full reload required."
1033
1033
  );
1034
1034
  }
1035
- tn(() => {
1036
- Fe.clear();
1035
+ nn(() => {
1036
+ je.clear();
1037
1037
  });
1038
1038
  }
1039
- function yt(e, t) {
1039
+ function St(e, t) {
1040
1040
  I(e, t);
1041
1041
  for (const n in e)
1042
1042
  n !== "__file" && !(n in t) && delete e[n];
@@ -1053,48 +1053,48 @@ function He(e) {
1053
1053
  };
1054
1054
  }
1055
1055
  let Q, Oe = [];
1056
- function sn(e, t) {
1056
+ function on(e, t) {
1057
1057
  var n, r;
1058
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
1059
  window.HTMLElement && // also exclude jsdom
1060
1060
  // eslint-disable-next-line no-restricted-syntax
1061
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
- sn(o, t);
1062
+ on(o, t);
1063
1063
  }), setTimeout(() => {
1064
1064
  Q || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Oe = []);
1065
1065
  }, 3e3)) : Oe = [];
1066
1066
  }
1067
- let D = null, Pr = null;
1068
- function on(e, t) {
1069
- e.shapeFlag & 6 && e.component ? on(e.component.subTree, t) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
1067
+ let D = null, xr = 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
1070
  }
1071
1071
  /*! #__NO_SIDE_EFFECTS__ */
1072
1072
  // @__NO_SIDE_EFFECTS__
1073
- function Vr(e, t) {
1074
- return E(e) ? (
1073
+ function Mr(e, t) {
1074
+ return O(e) ? (
1075
1075
  // #8326: extend call and options.name access are considered side-effects
1076
1076
  // by Rollup, so we have to wrap it in a pure-annotated IIFE.
1077
1077
  /* @__PURE__ */ (() => I({ name: e.name }, t, { setup: e }))()
1078
1078
  ) : e;
1079
1079
  }
1080
- function Mr(e, t, n = re, r = !1) {
1080
+ function Vr(e, t, n = re, r = !1) {
1081
1081
  if (n) {
1082
1082
  const s = n[e] || (n[e] = []), o = t.__weh || (t.__weh = (...i) => {
1083
1083
  ue();
1084
- const c = _n(n), a = oe(t, n, e, i);
1084
+ const c = mn(n), a = oe(t, n, e, i);
1085
1085
  return c(), fe(), a;
1086
1086
  });
1087
1087
  return r ? s.unshift(o) : s.push(o), o;
1088
1088
  } else if (process.env.NODE_ENV !== "production") {
1089
- const s = Tn(ct[e].replace(/ hook$/, ""));
1089
+ const s = Tn(lt[e].replace(/ hook$/, ""));
1090
1090
  _(
1091
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
1092
  );
1093
1093
  }
1094
1094
  }
1095
- const cn = (e) => (t, n = re) => {
1096
- (!dt || e === "sp") && Mr(e, (...r) => t(...r), n);
1097
- }, Dr = cn("m"), Tr = cn("um"), $r = Symbol.for("v-ndc"), Xe = (e) => e ? fs(e) ? ds(e) : Xe(e.parent) : null, ie = (
1095
+ const ln = (e) => (t, n = re) => {
1096
+ (!pt || e === "sp") && Vr(e, (...r) => t(...r), n);
1097
+ }, Dr = ln("m"), Tr = ln("um"), $r = Symbol.for("v-ndc"), Ge = (e) => e ? fs(e) ? ds(e) : Ge(e.parent) : null, ie = (
1098
1098
  // Move PURE marker to new line to workaround compiler discarding it
1099
1099
  // due to type annotation
1100
1100
  /* @__PURE__ */ I(/* @__PURE__ */ Object.create(null), {
@@ -1105,17 +1105,17 @@ const cn = (e) => (t, n = re) => {
1105
1105
  $attrs: (e) => process.env.NODE_ENV !== "production" ? Ee(e.attrs) : e.attrs,
1106
1106
  $slots: (e) => process.env.NODE_ENV !== "production" ? Ee(e.slots) : e.slots,
1107
1107
  $refs: (e) => process.env.NODE_ENV !== "production" ? Ee(e.refs) : e.refs,
1108
- $parent: (e) => Xe(e.parent),
1109
- $root: (e) => Xe(e.root),
1108
+ $parent: (e) => Ge(e.parent),
1109
+ $root: (e) => Ge(e.root),
1110
1110
  $emit: (e) => e.emit,
1111
- $options: (e) => jr(e),
1111
+ $options: (e) => Ur(e),
1112
1112
  $forceUpdate: (e) => e.f || (e.f = () => {
1113
- e.effect.dirty = !0, ut(e.update);
1113
+ e.effect.dirty = !0, ft(e.update);
1114
1114
  }),
1115
- $nextTick: (e) => e.n || (e.n = yr.bind(e.proxy)),
1116
- $watch: (e) => Gr.bind(e)
1115
+ $nextTick: (e) => e.n || (e.n = vr.bind(e.proxy)),
1116
+ $watch: (e) => Yr.bind(e)
1117
1117
  })
1118
- ), Ar = (e) => e === "_" || e === "$", Ke = (e, t) => e !== M && !e.__isScriptSetup && w(e, t), Lr = {
1118
+ ), Ar = (e) => e === "_" || e === "$", Ke = (e, t) => e !== V && !e.__isScriptSetup && w(e, t), Lr = {
1119
1119
  get({ _: e }, t) {
1120
1120
  if (t === "__v_skip")
1121
1121
  return !0;
@@ -1139,7 +1139,7 @@ const cn = (e) => (t, n = re) => {
1139
1139
  else {
1140
1140
  if (Ke(r, t))
1141
1141
  return i[t] = 1, r[t];
1142
- if (s !== M && w(s, t))
1142
+ if (s !== V && w(s, t))
1143
1143
  return i[t] = 2, s[t];
1144
1144
  if (
1145
1145
  // only cache other properties when instance has declared (thus stable)
@@ -1147,7 +1147,7 @@ const cn = (e) => (t, n = re) => {
1147
1147
  (u = e.propsOptions[0]) && w(u, t)
1148
1148
  )
1149
1149
  return i[t] = 3, o[t];
1150
- if (n !== M && w(n, t))
1150
+ if (n !== V && w(n, t))
1151
1151
  return i[t] = 4, n[t];
1152
1152
  i[t] = 0;
1153
1153
  }
@@ -1155,22 +1155,22 @@ const cn = (e) => (t, n = re) => {
1155
1155
  const h = ie[t];
1156
1156
  let l, d;
1157
1157
  if (h)
1158
- return t === "$attrs" ? (v(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && v(e, "get", t), h(e);
1158
+ return t === "$attrs" ? (N(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && N(e, "get", t), h(e);
1159
1159
  if (
1160
1160
  // css module (injected by vue-loader)
1161
1161
  (l = c.__cssModules) && (l = l[t])
1162
1162
  )
1163
1163
  return l;
1164
- if (n !== M && w(n, t))
1164
+ if (n !== V && w(n, t))
1165
1165
  return i[t] = 4, n[t];
1166
1166
  if (
1167
1167
  // global properties
1168
1168
  d = a.config.globalProperties, w(d, t)
1169
1169
  )
1170
1170
  return d[t];
1171
- process.env.NODE_ENV !== "production" && D && (!P(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
1171
+ process.env.NODE_ENV !== "production" && D && (!x(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
1172
1172
  // to infinite warning loop
1173
- t.indexOf("__v") !== 0) && (s !== M && Ar(t[0]) && w(s, t) ? _(
1173
+ t.indexOf("__v") !== 0) && (s !== V && Ar(t[0]) && w(s, t) ? _(
1174
1174
  `Property ${JSON.stringify(
1175
1175
  t
1176
1176
  )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
@@ -1180,7 +1180,7 @@ const cn = (e) => (t, n = re) => {
1180
1180
  },
1181
1181
  set({ _: e }, t, n) {
1182
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 !== M && 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" && _(
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
1184
  `Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
1185
1185
  ), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(o, t, {
1186
1186
  enumerable: !0,
@@ -1192,7 +1192,7 @@ const cn = (e) => (t, n = re) => {
1192
1192
  _: { data: e, setupState: t, accessCache: n, ctx: r, appContext: s, propsOptions: o }
1193
1193
  }, i) {
1194
1194
  let c;
1195
- return !!n[i] || e !== M && w(e, i) || Ke(t, i) || (c = o[0]) && w(c, i) || w(r, i) || w(ie, i) || w(s.config.globalProperties, i);
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
1196
  },
1197
1197
  defineProperty(e, t, n) {
1198
1198
  return n.get != null ? e._.accessCache[t] = 0 : w(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
@@ -1201,13 +1201,13 @@ const cn = (e) => (t, n = re) => {
1201
1201
  process.env.NODE_ENV !== "production" && (Lr.ownKeys = (e) => (_(
1202
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
1203
  ), Reflect.ownKeys(e)));
1204
- function bt(e) {
1204
+ function Rt(e) {
1205
1205
  return m(e) ? e.reduce(
1206
1206
  (t, n) => (t[n] = null, t),
1207
1207
  {}
1208
1208
  ) : e;
1209
1209
  }
1210
- function jr(e) {
1210
+ function Ur(e) {
1211
1211
  const t = e.type, { mixins: n, extends: r } = t, {
1212
1212
  mixins: s,
1213
1213
  optionsCache: o,
@@ -1215,13 +1215,13 @@ function jr(e) {
1215
1215
  } = e.appContext, c = o.get(t);
1216
1216
  let a;
1217
1217
  return c ? a = c : !s.length && !n && !r ? a = t : (a = {}, s.length && s.forEach(
1218
- (u) => xe(a, u, i, !0)
1219
- ), xe(a, t, i)), b(t) && o.set(t, a), a;
1218
+ (u) => Pe(a, u, i, !0)
1219
+ ), Pe(a, t, i)), b(t) && o.set(t, a), a;
1220
1220
  }
1221
- function xe(e, t, n, r = !1) {
1221
+ function Pe(e, t, n, r = !1) {
1222
1222
  const { mixins: s, extends: o } = t;
1223
- o && xe(e, o, n, !0), s && s.forEach(
1224
- (i) => xe(e, i, n, !0)
1223
+ o && Pe(e, o, n, !0), s && s.forEach(
1224
+ (i) => Pe(e, i, n, !0)
1225
1225
  );
1226
1226
  for (const i in t)
1227
1227
  if (r && i === "expose")
@@ -1229,54 +1229,54 @@ function xe(e, t, n, r = !1) {
1229
1229
  '"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
1230
1230
  );
1231
1231
  else {
1232
- const c = Ur[i] || n && n[i];
1232
+ const c = Fr[i] || n && n[i];
1233
1233
  e[i] = c ? c(e[i], t[i]) : t[i];
1234
1234
  }
1235
1235
  return e;
1236
1236
  }
1237
- const Ur = {
1238
- data: St,
1239
- props: It,
1240
- emits: It,
1237
+ const Fr = {
1238
+ data: It,
1239
+ props: Pt,
1240
+ emits: Pt,
1241
1241
  // objects
1242
1242
  methods: se,
1243
1243
  computed: se,
1244
1244
  // lifecycle
1245
- beforeCreate: y,
1246
- created: y,
1247
- beforeMount: y,
1248
- mounted: y,
1249
- beforeUpdate: y,
1250
- updated: y,
1251
- beforeDestroy: y,
1252
- beforeUnmount: y,
1253
- destroyed: y,
1254
- unmounted: y,
1255
- activated: y,
1256
- deactivated: y,
1257
- errorCaptured: y,
1258
- serverPrefetch: y,
1245
+ beforeCreate: v,
1246
+ created: v,
1247
+ beforeMount: v,
1248
+ mounted: v,
1249
+ beforeUpdate: v,
1250
+ updated: v,
1251
+ beforeDestroy: v,
1252
+ beforeUnmount: v,
1253
+ destroyed: v,
1254
+ unmounted: v,
1255
+ activated: v,
1256
+ deactivated: v,
1257
+ errorCaptured: v,
1258
+ serverPrefetch: v,
1259
1259
  // assets
1260
1260
  components: se,
1261
1261
  directives: se,
1262
1262
  // watch
1263
1263
  watch: Hr,
1264
1264
  // provide / inject
1265
- provide: St,
1266
- inject: Fr
1265
+ provide: It,
1266
+ inject: jr
1267
1267
  };
1268
- function St(e, t) {
1268
+ function It(e, t) {
1269
1269
  return t ? e ? function() {
1270
1270
  return I(
1271
- E(e) ? e.call(this, this) : e,
1272
- E(t) ? t.call(this, this) : t
1271
+ O(e) ? e.call(this, this) : e,
1272
+ O(t) ? t.call(this, this) : t
1273
1273
  );
1274
1274
  } : t : e;
1275
1275
  }
1276
- function Fr(e, t) {
1277
- return se(Rt(e), Rt(t));
1276
+ function jr(e, t) {
1277
+ return se(Ct(e), Ct(t));
1278
1278
  }
1279
- function Rt(e) {
1279
+ function Ct(e) {
1280
1280
  if (m(e)) {
1281
1281
  const t = {};
1282
1282
  for (let n = 0; n < e.length; n++)
@@ -1285,17 +1285,17 @@ function Rt(e) {
1285
1285
  }
1286
1286
  return e;
1287
1287
  }
1288
- function y(e, t) {
1288
+ function v(e, t) {
1289
1289
  return e ? [...new Set([].concat(e, t))] : t;
1290
1290
  }
1291
1291
  function se(e, t) {
1292
1292
  return e ? I(/* @__PURE__ */ Object.create(null), e, t) : t;
1293
1293
  }
1294
- function It(e, t) {
1294
+ function Pt(e, t) {
1295
1295
  return e ? m(e) && m(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : I(
1296
1296
  /* @__PURE__ */ Object.create(null),
1297
- bt(e),
1298
- bt(t != null ? t : {})
1297
+ Rt(e),
1298
+ Rt(t != null ? t : {})
1299
1299
  ) : t;
1300
1300
  }
1301
1301
  function Hr(e, t) {
@@ -1305,7 +1305,7 @@ function Hr(e, t) {
1305
1305
  return e;
1306
1306
  const n = I(/* @__PURE__ */ Object.create(null), e);
1307
1307
  for (const r in t)
1308
- n[r] = y(e[r], t[r]);
1308
+ n[r] = v(e[r], t[r]);
1309
1309
  return n;
1310
1310
  }
1311
1311
  let Kr = null;
@@ -1316,32 +1316,32 @@ function zr(e, t, n = !1) {
1316
1316
  if (s && e in s)
1317
1317
  return s[e];
1318
1318
  if (arguments.length > 1)
1319
- return n && E(t) ? t.call(r && r.proxy) : t;
1319
+ return n && O(t) ? t.call(r && r.proxy) : t;
1320
1320
  process.env.NODE_ENV !== "production" && _(`injection "${String(e)}" not found.`);
1321
1321
  } else
1322
1322
  process.env.NODE_ENV !== "production" && _("inject() can only be used inside setup() or functional components.");
1323
1323
  }
1324
- const Wr = {}, ln = (e) => Object.getPrototypeOf(e) === Wr, Br = (e) => e.__isTeleport, Ct = Zr, qr = Symbol.for("v-scx"), Jr = () => {
1324
+ const Wr = {}, an = (e) => Object.getPrototypeOf(e) === Wr, Br = (e) => e.__isTeleport, xt = Zr, Xr = Symbol.for("v-scx"), qr = () => {
1325
1325
  {
1326
- const e = zr(qr);
1326
+ const e = zr(Xr);
1327
1327
  return e || process.env.NODE_ENV !== "production" && _(
1328
1328
  "Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
1329
1329
  ), e;
1330
1330
  }
1331
- }, Ne = {};
1332
- function Yr(e, t, n) {
1333
- return process.env.NODE_ENV !== "production" && !E(t) && _(
1331
+ }, ye = {};
1332
+ function Jr(e, t, n) {
1333
+ return process.env.NODE_ENV !== "production" && !O(t) && _(
1334
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
- ), an(e, t, n);
1335
+ ), un(e, t, n);
1336
1336
  }
1337
- function an(e, t, {
1337
+ function un(e, t, {
1338
1338
  immediate: n,
1339
1339
  deep: r,
1340
1340
  flush: s,
1341
1341
  once: o,
1342
1342
  onTrack: i,
1343
1343
  onTrigger: c
1344
- } = M) {
1344
+ } = V) {
1345
1345
  if (t && o) {
1346
1346
  const p = t;
1347
1347
  t = (...Ae) => {
@@ -1365,7 +1365,7 @@ function an(e, t, {
1365
1365
  );
1366
1366
  }, u = re, h = (p) => r === !0 ? p : (
1367
1367
  // for deep: false, only traverse root-level properties
1368
- q(p, r === !1 ? 1 : void 0)
1368
+ X(p, r === !1 ? 1 : void 0)
1369
1369
  );
1370
1370
  let l, d = !1, g = !1;
1371
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) => {
@@ -1373,66 +1373,66 @@ function an(e, t, {
1373
1373
  return p.value;
1374
1374
  if (ee(p))
1375
1375
  return h(p);
1376
- if (E(p))
1377
- return X(p, u, 2);
1376
+ if (O(p))
1377
+ return G(p, u, 2);
1378
1378
  process.env.NODE_ENV !== "production" && a(p);
1379
- })) : E(e) ? t ? l = () => X(e, u, 2) : l = () => (O && O(), oe(
1379
+ })) : O(e) ? t ? l = () => G(e, u, 2) : l = () => (y && y(), oe(
1380
1380
  e,
1381
1381
  u,
1382
1382
  3,
1383
- [V]
1383
+ [M]
1384
1384
  )) : (l = Z, process.env.NODE_ENV !== "production" && a(e)), t && r) {
1385
1385
  const p = l;
1386
- l = () => q(p());
1386
+ l = () => X(p());
1387
1387
  }
1388
- let O, V = (p) => {
1389
- O = S.onStop = () => {
1390
- X(p, u, 4), O = S.onStop = void 0;
1388
+ let y, M = (p) => {
1389
+ y = S.onStop = () => {
1390
+ G(p, u, 4), y = S.onStop = void 0;
1391
1391
  };
1392
1392
  }, Te;
1393
- if (dt)
1394
- if (V = Z, t ? n && oe(t, u, 3, [
1393
+ if (pt)
1394
+ if (M = Z, t ? n && oe(t, u, 3, [
1395
1395
  l(),
1396
1396
  g ? [] : void 0,
1397
- V
1397
+ M
1398
1398
  ]) : l(), s === "sync") {
1399
- const p = Jr();
1399
+ const p = qr();
1400
1400
  Te = p.__watcherHandles || (p.__watcherHandles = []);
1401
1401
  } else
1402
1402
  return Z;
1403
- let K = g ? new Array(e.length).fill(Ne) : Ne;
1403
+ let K = g ? new Array(e.length).fill(ye) : ye;
1404
1404
  const z = () => {
1405
1405
  if (!(!S.active || !S.dirty))
1406
1406
  if (t) {
1407
1407
  const p = S.run();
1408
- (r || d || (g ? p.some((Ae, On) => H(Ae, K[On])) : H(p, K))) && (O && O(), oe(t, u, 3, [
1408
+ (r || d || (g ? p.some((Ae, On) => H(Ae, K[On])) : H(p, K))) && (y && y(), oe(t, u, 3, [
1409
1409
  p,
1410
1410
  // pass undefined as the old value when it's changed for the first time
1411
- K === Ne ? void 0 : g && K[0] === Ne ? [] : K,
1412
- V
1411
+ K === ye ? void 0 : g && K[0] === ye ? [] : K,
1412
+ M
1413
1413
  ]), K = p);
1414
1414
  } else
1415
1415
  S.run();
1416
1416
  };
1417
1417
  z.allowRecurse = !!t;
1418
1418
  let de;
1419
- s === "sync" ? de = z : s === "post" ? de = () => Ct(z, u && u.suspense) : (z.pre = !0, u && (z.id = u.uid), de = () => ut(z));
1420
- const S = new $t(l, Z, de), $e = () => {
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
1421
  S.stop();
1422
1422
  };
1423
- return process.env.NODE_ENV !== "production" && (S.onTrack = i, S.onTrigger = c), t ? n ? z() : K = S.run() : s === "post" ? Ct(
1423
+ return process.env.NODE_ENV !== "production" && (S.onTrack = i, S.onTrigger = c), t ? n ? z() : K = S.run() : s === "post" ? xt(
1424
1424
  S.run.bind(S),
1425
1425
  u && u.suspense
1426
1426
  ) : S.run(), Te && Te.push($e), $e;
1427
1427
  }
1428
- function Gr(e, t, n) {
1429
- const r = this.proxy, s = P(e) ? e.includes(".") ? Xr(r, e) : () => r[e] : e.bind(r, r);
1428
+ function Yr(e, t, n) {
1429
+ const r = this.proxy, s = x(e) ? e.includes(".") ? Gr(r, e) : () => r[e] : e.bind(r, r);
1430
1430
  let o;
1431
- E(t) ? o = t : (o = t.handler, n = t);
1432
- const i = _n(this), c = an(s, o.bind(r), n);
1431
+ O(t) ? o = t : (o = t.handler, n = t);
1432
+ const i = mn(this), c = un(s, o.bind(r), n);
1433
1433
  return i(), c;
1434
1434
  }
1435
- function Xr(e, t) {
1435
+ function Gr(e, t) {
1436
1436
  const n = t.split(".");
1437
1437
  return () => {
1438
1438
  let r = e;
@@ -1441,44 +1441,44 @@ function Xr(e, t) {
1441
1441
  return r;
1442
1442
  };
1443
1443
  }
1444
- function q(e, t = 1 / 0, n) {
1444
+ function X(e, t = 1 / 0, n) {
1445
1445
  if (t <= 0 || !b(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
1446
1446
  return e;
1447
1447
  if (n.add(e), t--, R(e))
1448
- q(e.value, t, n);
1448
+ X(e.value, t, n);
1449
1449
  else if (m(e))
1450
1450
  for (let r = 0; r < e.length; r++)
1451
- q(e[r], t, n);
1452
- else if (Pn(e) || k(e))
1451
+ X(e[r], t, n);
1452
+ else if (xn(e) || k(e))
1453
1453
  e.forEach((r) => {
1454
- q(r, t, n);
1454
+ X(r, t, n);
1455
1455
  });
1456
1456
  else if (Dn(e)) {
1457
1457
  for (const r in e)
1458
- q(e[r], t, n);
1458
+ X(e[r], t, n);
1459
1459
  for (const r of Object.getOwnPropertySymbols(e))
1460
- Object.prototype.propertyIsEnumerable.call(e, r) && q(e[r], t, n);
1460
+ Object.prototype.propertyIsEnumerable.call(e, r) && X(e[r], t, n);
1461
1461
  }
1462
1462
  return e;
1463
1463
  }
1464
1464
  const Qr = (e) => e.__isSuspense;
1465
1465
  function Zr(e, t) {
1466
- t && t.pendingBranch ? m(e) ? t.effects.push(...e) : t.effects.push(e) : tn(e);
1466
+ t && t.pendingBranch ? m(e) ? t.effects.push(...e) : t.effects.push(e) : nn(e);
1467
1467
  }
1468
- const un = Symbol.for("v-fgt"), kr = Symbol.for("v-txt"), es = Symbol.for("v-cmt"), ye = [];
1469
- let x = null;
1468
+ const fn = Symbol.for("v-fgt"), kr = Symbol.for("v-txt"), es = Symbol.for("v-cmt"), ve = [];
1469
+ let P = null;
1470
1470
  function ts(e = !1) {
1471
- ye.push(x = e ? null : []);
1471
+ ve.push(P = e ? null : []);
1472
1472
  }
1473
1473
  function ns() {
1474
- ye.pop(), x = ye[ye.length - 1] || null;
1474
+ ve.pop(), P = ve[ve.length - 1] || null;
1475
1475
  }
1476
1476
  function rs(e) {
1477
- return e.dynamicChildren = x || In, ns(), x && x.push(e), e;
1477
+ return e.dynamicChildren = P || In, ns(), P && P.push(e), e;
1478
1478
  }
1479
1479
  function ss(e, t, n, r, s, o) {
1480
1480
  return rs(
1481
- dn(
1481
+ pn(
1482
1482
  e,
1483
1483
  t,
1484
1484
  n,
@@ -1492,22 +1492,22 @@ function ss(e, t, n, r, s, o) {
1492
1492
  function os(e) {
1493
1493
  return e ? e.__v_isVNode === !0 : !1;
1494
1494
  }
1495
- const is = (...e) => pn(
1495
+ const is = (...e) => hn(
1496
1496
  ...e
1497
- ), fn = ({ key: e }) => e != null ? e : null, be = ({
1497
+ ), dn = ({ key: e }) => e != null ? e : null, be = ({
1498
1498
  ref: e,
1499
1499
  ref_key: t,
1500
1500
  ref_for: n
1501
- }) => (typeof e == "number" && (e = "" + e), e != null ? P(e) || R(e) || E(e) ? { i: D, r: e, k: t, f: !!n } : e : null);
1502
- function dn(e, t = null, n = null, r = 0, s = null, o = e === un ? 0 : 1, i = !1, c = !1) {
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
1503
  const a = {
1504
1504
  __v_isVNode: !0,
1505
1505
  __v_skip: !0,
1506
1506
  type: e,
1507
1507
  props: t,
1508
- key: t && fn(t),
1508
+ key: t && dn(t),
1509
1509
  ref: t && be(t),
1510
- scopeId: Pr,
1510
+ scopeId: xr,
1511
1511
  slotScopeIds: null,
1512
1512
  children: n,
1513
1513
  component: null,
@@ -1529,39 +1529,39 @@ function dn(e, t = null, n = null, r = 0, s = null, o = e === un ? 0 : 1, i = !1
1529
1529
  appContext: null,
1530
1530
  ctx: D
1531
1531
  };
1532
- return c ? (ft(a, n), o & 128 && e.normalize(a)) : n && (a.shapeFlag |= P(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
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
1533
  !i && // has current parent block
1534
- x && // presence of a patch flag indicates this node needs patching on updates.
1534
+ P && // presence of a patch flag indicates this node needs patching on updates.
1535
1535
  // component nodes also should always be patched, because even if the
1536
1536
  // component doesn't need to update, it needs to persist the instance on to
1537
1537
  // the next vnode so that it can be properly unmounted later.
1538
1538
  (a.patchFlag > 0 || o & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
1539
1539
  // vnode should not be considered dynamic due to handler caching.
1540
- a.patchFlag !== 32 && x.push(a), a;
1540
+ a.patchFlag !== 32 && P.push(a), a;
1541
1541
  }
1542
- const cs = process.env.NODE_ENV !== "production" ? is : pn;
1543
- function pn(e, t = null, n = null, r = 0, s = null, o = !1) {
1542
+ const cs = process.env.NODE_ENV !== "production" ? is : hn;
1543
+ function hn(e, t = null, n = null, r = 0, s = null, o = !1) {
1544
1544
  if ((!e || e === $r) && (process.env.NODE_ENV !== "production" && !e && _(`Invalid vnode type when creating vnode: ${e}.`), e = es), os(e)) {
1545
- const c = Pe(
1545
+ const c = xe(
1546
1546
  e,
1547
1547
  t,
1548
1548
  !0
1549
1549
  /* mergeRef: true */
1550
1550
  );
1551
- return n && ft(c, n), !o && x && (c.shapeFlag & 6 ? x[x.indexOf(e)] = c : x.push(c)), c.patchFlag = -2, c;
1551
+ return n && dt(c, n), !o && P && (c.shapeFlag & 6 ? P[P.indexOf(e)] = c : P.push(c)), c.patchFlag = -2, c;
1552
1552
  }
1553
- if (wn(e) && (e = e.__vccOpts), t) {
1553
+ if (En(e) && (e = e.__vccOpts), t) {
1554
1554
  t = ls(t);
1555
1555
  let { class: c, style: a } = t;
1556
- c && !P(c) && (t.class = et(c)), b(a) && (Ye(a) && !m(a) && (a = I({}, a)), t.style = ke(a));
1556
+ c && !x(c) && (t.class = tt(c)), b(a) && (Je(a) && !m(a) && (a = I({}, a)), t.style = et(a));
1557
1557
  }
1558
- const i = P(e) ? 1 : Qr(e) ? 128 : Br(e) ? 64 : b(e) ? 4 : E(e) ? 2 : 0;
1559
- return process.env.NODE_ENV !== "production" && i & 4 && Ye(e) && (e = f(e), _(
1558
+ const i = x(e) ? 1 : Qr(e) ? 128 : Br(e) ? 64 : b(e) ? 4 : O(e) ? 2 : 0;
1559
+ return process.env.NODE_ENV !== "production" && i & 4 && Je(e) && (e = f(e), _(
1560
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
1561
  `
1562
1562
  Component that was made reactive: `,
1563
1563
  e
1564
- )), dn(
1564
+ )), pn(
1565
1565
  e,
1566
1566
  t,
1567
1567
  n,
@@ -1573,15 +1573,15 @@ Component that was made reactive: `,
1573
1573
  );
1574
1574
  }
1575
1575
  function ls(e) {
1576
- return e ? Ye(e) || ln(e) ? I({}, e) : e : null;
1576
+ return e ? Je(e) || an(e) ? I({}, e) : e : null;
1577
1577
  }
1578
- function Pe(e, t, n = !1, r = !1) {
1578
+ function xe(e, t, n = !1, r = !1) {
1579
1579
  const { props: s, ref: o, patchFlag: i, children: c, transition: a } = e, u = t ? us(s || {}, t) : s, h = {
1580
1580
  __v_isVNode: !0,
1581
1581
  __v_skip: !0,
1582
1582
  type: e.type,
1583
1583
  props: u,
1584
- key: u && fn(u),
1584
+ key: u && dn(u),
1585
1585
  ref: t && t.ref ? (
1586
1586
  // #2078 in the case of <component :is="vnode" ref="extra"/>
1587
1587
  // if the vnode itself already has a ref, cloneVNode will need to merge
@@ -1590,7 +1590,7 @@ function Pe(e, t, n = !1, r = !1) {
1590
1590
  ) : o,
1591
1591
  scopeId: e.scopeId,
1592
1592
  slotScopeIds: e.slotScopeIds,
1593
- children: process.env.NODE_ENV !== "production" && i === -1 && m(c) ? c.map(hn) : c,
1593
+ children: process.env.NODE_ENV !== "production" && i === -1 && m(c) ? c.map(_n) : c,
1594
1594
  target: e.target,
1595
1595
  targetStart: e.targetStart,
1596
1596
  targetAnchor: e.targetAnchor,
@@ -1600,7 +1600,7 @@ function Pe(e, t, n = !1, r = !1) {
1600
1600
  // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1601
1601
  // note: preserve flag for fragments since they use the flag for children
1602
1602
  // fast paths only.
1603
- patchFlag: t && e.type !== un ? i === -1 ? 16 : i | 16 : i,
1603
+ patchFlag: t && e.type !== fn ? i === -1 ? 16 : i | 16 : i,
1604
1604
  dynamicProps: e.dynamicProps,
1605
1605
  dynamicChildren: e.dynamicChildren,
1606
1606
  appContext: e.appContext,
@@ -1612,26 +1612,26 @@ function Pe(e, t, n = !1, r = !1) {
1612
1612
  // they will simply be overwritten.
1613
1613
  component: e.component,
1614
1614
  suspense: e.suspense,
1615
- ssContent: e.ssContent && Pe(e.ssContent),
1616
- ssFallback: e.ssFallback && Pe(e.ssFallback),
1615
+ ssContent: e.ssContent && xe(e.ssContent),
1616
+ ssFallback: e.ssFallback && xe(e.ssFallback),
1617
1617
  el: e.el,
1618
1618
  anchor: e.anchor,
1619
1619
  ctx: e.ctx,
1620
1620
  ce: e.ce
1621
1621
  };
1622
- return a && r && on(
1622
+ return a && r && cn(
1623
1623
  h,
1624
1624
  a.clone(h)
1625
1625
  ), h;
1626
1626
  }
1627
- function hn(e) {
1628
- const t = Pe(e);
1629
- return m(e.children) && (t.children = e.children.map(hn)), t;
1627
+ function _n(e) {
1628
+ const t = xe(e);
1629
+ return m(e.children) && (t.children = e.children.map(_n)), t;
1630
1630
  }
1631
1631
  function as(e = " ", t = 0) {
1632
1632
  return cs(kr, null, e, t);
1633
1633
  }
1634
- function ft(e, t) {
1634
+ function dt(e, t) {
1635
1635
  let n = 0;
1636
1636
  const { shapeFlag: r } = e;
1637
1637
  if (t == null)
@@ -1641,15 +1641,15 @@ function ft(e, t) {
1641
1641
  else if (typeof t == "object")
1642
1642
  if (r & 65) {
1643
1643
  const s = t.default;
1644
- s && (s._c && (s._d = !1), ft(e, s()), s._c && (s._d = !0));
1644
+ s && (s._c && (s._d = !1), dt(e, s()), s._c && (s._d = !0));
1645
1645
  return;
1646
1646
  } else {
1647
1647
  n = 32;
1648
1648
  const s = t._;
1649
- !s && !ln(t) ? t._ctx = D : s === 3 && D && (D.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
1649
+ !s && !an(t) ? t._ctx = D : s === 3 && D && (D.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
1650
1650
  }
1651
1651
  else
1652
- E(t) ? (t = { default: t, _ctx: D }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [as(t)]) : n = 8);
1652
+ O(t) ? (t = { default: t, _ctx: D }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [as(t)]) : n = 8);
1653
1653
  e.children = t, e.shapeFlag |= n;
1654
1654
  }
1655
1655
  function us(...e) {
@@ -1658,9 +1658,9 @@ function us(...e) {
1658
1658
  const r = e[n];
1659
1659
  for (const s in r)
1660
1660
  if (s === "class")
1661
- t.class !== r.class && (t.class = et([t.class, r.class]));
1661
+ t.class !== r.class && (t.class = tt([t.class, r.class]));
1662
1662
  else if (s === "style")
1663
- t.style = ke([t.style, r.style]);
1663
+ t.style = et([t.style, r.style]);
1664
1664
  else if (Cn(s)) {
1665
1665
  const o = t[s], i = r[s];
1666
1666
  i && o !== i && !(m(o) && o.includes(i)) && (t[s] = o ? [].concat(o, i) : i);
@@ -1671,7 +1671,7 @@ function us(...e) {
1671
1671
  }
1672
1672
  let re = null, Qe;
1673
1673
  {
1674
- const e = Tt(), t = (n, r) => {
1674
+ const e = $t(), t = (n, r) => {
1675
1675
  let s;
1676
1676
  return (s = e[n]) || (s = e[n] = []), s.push(r), (o) => {
1677
1677
  s.length > 1 ? s.forEach((i) => i(o)) : s[0](o);
@@ -1682,10 +1682,10 @@ let re = null, Qe;
1682
1682
  (n) => re = n
1683
1683
  ), t(
1684
1684
  "__VUE_SSR_SETTERS__",
1685
- (n) => dt = n
1685
+ (n) => pt = n
1686
1686
  );
1687
1687
  }
1688
- const _n = (e) => {
1688
+ const mn = (e) => {
1689
1689
  const t = re;
1690
1690
  return Qe(e), e.scope.on(), () => {
1691
1691
  e.scope.off(), Qe(t);
@@ -1694,7 +1694,7 @@ const _n = (e) => {
1694
1694
  function fs(e) {
1695
1695
  return e.vnode.shapeFlag & 4;
1696
1696
  }
1697
- let dt = !1;
1697
+ let pt = !1;
1698
1698
  process.env.NODE_ENV;
1699
1699
  function ds(e) {
1700
1700
  return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(hr(cr(e.exposed)), {
@@ -1710,11 +1710,11 @@ function ds(e) {
1710
1710
  })) : e.proxy;
1711
1711
  }
1712
1712
  const ps = /(?:^|[-_])(\w)/g, hs = (e) => e.replace(ps, (t) => t.toUpperCase()).replace(/[-_]/g, "");
1713
- function mn(e, t = !0) {
1714
- return E(e) ? e.displayName || e.name : e.name || t && e.__name;
1713
+ function gn(e, t = !0) {
1714
+ return O(e) ? e.displayName || e.name : e.name || t && e.__name;
1715
1715
  }
1716
- function gn(e, t, n = !1) {
1717
- let r = mn(t);
1716
+ function wn(e, t, n = !1) {
1717
+ let r = gn(t);
1718
1718
  if (!r && t.__file) {
1719
1719
  const s = t.__file.match(/([^/\\]+)\.\w+$/);
1720
1720
  s && (r = s[1]);
@@ -1731,8 +1731,8 @@ function gn(e, t, n = !1) {
1731
1731
  }
1732
1732
  return r ? hs(r) : n ? "App" : "Anonymous";
1733
1733
  }
1734
- function wn(e) {
1735
- return E(e) && "__vccOpts" in e;
1734
+ function En(e) {
1735
+ return O(e) && "__vccOpts" in e;
1736
1736
  }
1737
1737
  function _s() {
1738
1738
  if (process.env.NODE_ENV === "production" || typeof window == "undefined")
@@ -1777,11 +1777,11 @@ function _s() {
1777
1777
  };
1778
1778
  function o(l) {
1779
1779
  const d = [];
1780
- l.type.props && l.props && d.push(i("props", f(l.props))), l.setupState !== M && d.push(i("setup", l.setupState)), l.data !== M && d.push(i("data", f(l.data)));
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
1781
  const g = a(l, "computed");
1782
1782
  g && d.push(i("computed", g));
1783
- const O = a(l, "inject");
1784
- return O && d.push(i("injected", O)), d.push([
1783
+ const y = a(l, "inject");
1784
+ return y && d.push(i("injected", y)), d.push([
1785
1785
  "div",
1786
1786
  {},
1787
1787
  [
@@ -1824,16 +1824,16 @@ function _s() {
1824
1824
  }
1825
1825
  function a(l, d) {
1826
1826
  const g = l.type;
1827
- if (E(g))
1827
+ if (O(g))
1828
1828
  return;
1829
- const O = {};
1830
- for (const V in l.ctx)
1831
- u(g, V, d) && (O[V] = l.ctx[V]);
1832
- return O;
1829
+ const y = {};
1830
+ for (const M in l.ctx)
1831
+ u(g, M, d) && (y[M] = l.ctx[M]);
1832
+ return y;
1833
1833
  }
1834
1834
  function u(l, d, g) {
1835
- const O = l[g];
1836
- if (m(O) && O.includes(d) || b(O) && d in O || l.extends && u(l.extends, d, g) || l.mixins && l.mixins.some((V) => u(V, d, g)))
1835
+ const y = l[g];
1836
+ if (m(y) && y.includes(d) || b(y) && d in y || l.extends && u(l.extends, d, g) || l.mixins && l.mixins.some((M) => u(M, d, g)))
1837
1837
  return !0;
1838
1838
  }
1839
1839
  function h(l) {
@@ -1853,7 +1853,7 @@ function ms() {
1853
1853
  _s();
1854
1854
  }
1855
1855
  process.env.NODE_ENV !== "production" && ms();
1856
- const N = {
1856
+ const E = {
1857
1857
  KEY: "$xtm",
1858
1858
  // 父应用注入子应用实例的key
1859
1859
  IS_MICRO: "__XT_MICRO",
@@ -1864,8 +1864,10 @@ const N = {
1864
1864
  // 微应用token
1865
1865
  MICRO_APP: "__XT_MICRO_APP",
1866
1866
  // 微应用实例
1867
- DOM_ID_PREFIX: "xt-micro-ifr-"
1867
+ DOM_ID_PREFIX: "xt-micro-ifr-",
1868
1868
  // dom id前缀
1869
+ URL_PARAM_PREFIX: "__XT_MICRO_"
1870
+ // 微应用在 url 参数中的前缀
1869
1871
  };
1870
1872
  function Se(e, t = window.location.href) {
1871
1873
  e = e.replace(/[\[\]]/g, "\\$&");
@@ -1881,22 +1883,22 @@ function gs(e, t, n) {
1881
1883
  }
1882
1884
  function ws(e, t, n) {
1883
1885
  const [r, s] = e.split("#"), o = new URL(r), i = o.searchParams;
1884
- return i.has(t) ? i.set(t, n) : i.append(t, n), s && (o.hash = s), o.search = i.toString(), o.toString();
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();
1885
1887
  }
1886
- const xt = Qt(!1);
1887
- Object.defineProperty(window, N.IS_MICRO, {
1888
+ const Mt = Zt(!1);
1889
+ Object.defineProperty(window, E.IS_MICRO, {
1888
1890
  get: function() {
1889
- return xt.value;
1891
+ return Mt.value;
1890
1892
  },
1891
1893
  set: function(e) {
1892
- xt.value = e;
1894
+ Mt.value = e;
1893
1895
  }
1894
1896
  });
1895
- const ze = (e) => `${N.DOM_ID_PREFIX}${e}`, Es = (e) => {
1897
+ const ze = (e) => `${E.DOM_ID_PREFIX}${e}`, Es = (e) => {
1896
1898
  function t(c) {
1897
1899
  return c !== null && typeof c == "object" && !Array.isArray(c);
1898
1900
  }
1899
- 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.name);
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);
1900
1902
  if (o) {
1901
1903
  const c = gs(o, e.url, !0);
1902
1904
  if (c) {
@@ -1906,7 +1908,7 @@ const ze = (e) => `${N.DOM_ID_PREFIX}${e}`, Es = (e) => {
1906
1908
  }), s.hash = a.hash;
1907
1909
  }
1908
1910
  }
1909
- if (s.searchParams.set(N.IS_MICRO, !0 + ""), s.searchParams.set(N.MICRO_NAME, e.name), r && s.searchParams.set(N.MICRO_TOKEN, r), n)
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)
1910
1912
  for (let c of Object.keys(n))
1911
1913
  s.searchParams.set(c, n[c]);
1912
1914
  const i = new URL(window.location.href);
@@ -1956,18 +1958,22 @@ class Os {
1956
1958
  preload() {
1957
1959
  this.mount(void 0, !0);
1958
1960
  }
1961
+ reload() {
1962
+ const t = this.dom.src;
1963
+ this.dom.src = t + (t.includes("?") ? "&" : "?") + "__t=" + Date.now();
1964
+ }
1959
1965
  changeOptions(t) {
1960
1966
  this.app = W(W({}, this.app), t);
1961
1967
  }
1962
1968
  onLoad(t) {
1963
- Ns(this);
1969
+ ys(this);
1964
1970
  }
1965
1971
  onUnload(t) {
1966
1972
  }
1967
1973
  onError() {
1968
1974
  }
1969
1975
  }
1970
- const Ns = (e) => {
1976
+ const ys = (e) => {
1971
1977
  var t, n;
1972
1978
  (n = (t = e.dom) == null ? void 0 : t.contentWindow) == null || n.postMessage(
1973
1979
  {
@@ -1982,20 +1988,23 @@ const Ns = (e) => {
1982
1988
  },
1983
1989
  "*"
1984
1990
  );
1985
- }, vs = () => {
1991
+ }, Ns = () => {
1986
1992
  window.addEventListener("message", (e) => {
1987
1993
  if (e.data.cmd === "$xt/micro/sync") {
1988
- const t = [N.IS_MICRO, N.MICRO_NAME, N.MICRO_TOKEN], n = new URL(window.decodeURIComponent(e.data.data.url), e.origin);
1989
- for (let s of t)
1990
- n.searchParams.delete(s);
1991
- console.log("tempUrl", n.href);
1992
- const r = ws(window.location.href, e.data.data.name, n.href);
1993
- window.history.replaceState(null, "", r);
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);
1997
+ const r = new URL(window.location.href);
1998
+ r.searchParams.forEach((o, i) => {
1999
+ i.startsWith(E.URL_PARAM_PREFIX) && r.searchParams.delete(i);
2000
+ });
2001
+ const s = ws(r.href, e.data.data.name, n.href);
2002
+ window.history.replaceState(null, "", s);
1994
2003
  }
1995
2004
  });
1996
- }, Ps = (...t) => ht(void 0, [...t], function* (e = {}) {
1997
- const n = Se(N.IS_MICRO), r = Se(N.MICRO_NAME);
1998
- n && (window[N.IS_MICRO] = !0);
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);
1999
2008
  function s(i) {
2000
2009
  var c = document.styleSheets[0];
2001
2010
  if (!c) {
@@ -2004,24 +2013,26 @@ const Ns = (e) => {
2004
2013
  }
2005
2014
  c.insertRule(i, c.cssRules.length);
2006
2015
  }
2007
- window[N.IS_MICRO] && e.hideHeaderCssSelector && s(`${e.hideHeaderCssSelector} { display: none !important; }`), window.addEventListener("message", (i) => {
2008
- i.data.cmd === `$xt/micro/${r}` && (console.log("子应用收到消息:", r), window[N.MICRO_APP] = je(W({}, i.data.data), { mainBaseURL: i.origin }));
2009
- }), ys(window);
2010
- const o = Se(N.MICRO_TOKEN);
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
+ }), vs(window);
2021
+ const o = Se(E.MICRO_TOKEN);
2011
2022
  e.authHandler && o && (yield e.authHandler(o));
2012
2023
  });
2013
- function ys(e) {
2024
+ function vs(e) {
2014
2025
  const t = e.history, n = t.pushState, r = t.replaceState;
2015
2026
  t.pushState = function(s, o, i) {
2016
- n.call(t, s, o, i), Pt();
2027
+ n.call(t, s, o, i), Ze();
2017
2028
  }, t.replaceState = function(s, o, i) {
2018
- r.call(t, s, o, i), Pt();
2029
+ r.call(t, s, o, i), Ze();
2019
2030
  };
2020
2031
  }
2021
- function Pt() {
2022
- if (!window[N.MICRO_APP])
2032
+ function Ze() {
2033
+ if (!window[E.MICRO_APP])
2023
2034
  return;
2024
- const { name: e, sync: t, mainBaseURL: n } = window[N.MICRO_APP], r = window.location.pathname + window.location.search + window.location.hash;
2035
+ const { name: e, sync: t, mainBaseURL: n } = window[E.MICRO_APP], r = window.location.pathname + window.location.search + window.location.hash;
2025
2036
  window.parent.postMessage({
2026
2037
  cmd: "$xt/micro/sync",
2027
2038
  data: {
@@ -2030,38 +2041,41 @@ function Pt() {
2030
2041
  }
2031
2042
  }, n);
2032
2043
  }
2033
- let Ve = {};
2044
+ let Me = {};
2034
2045
  const bs = {
2035
2046
  url: "",
2036
2047
  name: "",
2037
2048
  sync: !0
2038
- }, Vs = (e) => {
2049
+ }, Ms = (e) => {
2039
2050
  if (!e.url || e.url === "" || e.url === "undefined") {
2040
2051
  console.error("app url is required", e);
2041
2052
  return;
2042
2053
  }
2043
2054
  const t = Object.assign({}, e, bs);
2044
- return Ve[e.name] = je(W({}, t), {
2055
+ return Me[e.name] = Ue(W({}, t), {
2045
2056
  instance: new Os(e)
2046
- }), Ve[e.name];
2047
- }, En = (e) => Ve[e], Ss = (e, t) => Ve[e.name] = W(W({}, e), t), Rs = (e, t) => new Promise((n, r) => {
2048
- let s = En(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);
2049
2060
  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");
2050
2061
  }), Is = (e) => {
2051
- let t = En(e);
2062
+ let t = ht(e);
2052
2063
  t && t.instance.unmount();
2053
- }, Cs = /* @__PURE__ */ Vr({
2064
+ }, Vs = (e) => {
2065
+ let t = ht(e);
2066
+ t && t.instance.reload();
2067
+ }, Cs = /* @__PURE__ */ Mr({
2054
2068
  __name: "XTMicroView",
2055
2069
  props: {
2056
2070
  appId: String
2057
2071
  },
2058
2072
  setup(e) {
2059
- const t = e, n = Qt(), r = () => {
2073
+ const t = e, n = Zt(), r = () => {
2060
2074
  t.appId && Rs(t.appId, {
2061
2075
  el: n.value
2062
2076
  });
2063
2077
  };
2064
- return Yr(() => t.appId, (s, o) => {
2078
+ return Jr(() => t.appId, (s, o) => {
2065
2079
  s !== o && o && Is(o), r();
2066
2080
  }), Dr(() => {
2067
2081
  r();
@@ -2074,16 +2088,17 @@ const bs = {
2074
2088
  }, null, 512));
2075
2089
  }
2076
2090
  });
2077
- const Ms = {
2091
+ const Ds = {
2078
2092
  install: (e, t = {}) => {
2079
- e.component("xt-micro-view", Cs), vs();
2093
+ e.component("xt-micro-view", Cs), Ns();
2080
2094
  }
2081
2095
  };
2082
2096
  export {
2083
- Ms as default,
2084
- En as getApp,
2085
- Ps as microInit,
2086
- Vs as setupApp,
2097
+ Ds as default,
2098
+ ht as getApp,
2099
+ xs as microInit,
2100
+ Vs as reloadApp,
2101
+ Ms as setupApp,
2087
2102
  Rs as startApp,
2088
2103
  Is as stopApp
2089
2104
  };