pinia-plugin-subscription 0.1.3 → 0.1.4-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { defineStore as Mt } from "pinia";
2
- class zn {
2
+ class Un {
3
3
  _console;
4
4
  _createInstance;
5
5
  _name;
@@ -69,8 +69,8 @@ class Pt {
69
69
  this.console.error(...e);
70
70
  }
71
71
  }
72
- const Ft = "pinia-plugin-subscription", ge = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
73
- function be(t, e) {
72
+ const Ft = "pinia-plugin-subscription", be = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
73
+ function me(t, e) {
74
74
  if (!t)
75
75
  throw new Error("Style instructions are required");
76
76
  console.log(
@@ -80,7 +80,7 @@ function be(t, e) {
80
80
  ...e
81
81
  );
82
82
  }
83
- class me {
83
+ class Se {
84
84
  _bgColor = "#ffec73";
85
85
  _color = "green";
86
86
  _icon = "🍍⚡";
@@ -95,7 +95,7 @@ class me {
95
95
  return ` [${n} ${Ft}] - ${e} `;
96
96
  }
97
97
  generateStyle(e) {
98
- return ge(e.bgColor, e.color);
98
+ return be(e.bgColor, e.color);
99
99
  }
100
100
  getStyleDefinition(e) {
101
101
  return this._styles[e ?? "info"];
@@ -119,22 +119,22 @@ class me {
119
119
  return [this.formatMessage(e.shift(), n), ...e ?? []];
120
120
  }
121
121
  useLog(e, n) {
122
- be(
122
+ me(
123
123
  this.generateStyle(e),
124
124
  this.rebuildArgs(n, e.icon)
125
125
  );
126
126
  }
127
127
  }
128
- class Se extends me {
128
+ class ye extends Se {
129
129
  _pluginName = Ft;
130
130
  }
131
- const ye = new Se();
131
+ const Ee = new ye();
132
132
  function gt(t) {
133
133
  return t ? Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : typeof t == "string" ? t.trim() === "" : !1 : !(typeof t == "boolean" || typeof t == "number");
134
134
  }
135
- const $t = "PluginSubscription";
136
- class we extends Pt {
137
- _className = $t;
135
+ const It = "PluginSubscription";
136
+ class Oe extends Pt {
137
+ _className = It;
138
138
  _pluginDebug;
139
139
  _resetStoreCallback = [];
140
140
  _subscribers = [];
@@ -149,7 +149,7 @@ class we extends Pt {
149
149
  return this._subscriptions;
150
150
  }
151
151
  constructor(e, n) {
152
- super(Array.isArray(n) && !!n?.includes($t), ye), this._pluginDebug = Array.isArray(n) ? n : void 0, this._subscribers = e;
152
+ super(Array.isArray(n) && !!n?.includes(It), Ee), this._pluginDebug = Array.isArray(n) ? n : void 0, this._subscribers = e;
153
153
  }
154
154
  addResetStoreCallback(e) {
155
155
  this._resetStoreCallback.push(e);
@@ -206,7 +206,7 @@ class we extends Pt {
206
206
  try {
207
207
  if (this._subscriptionsDelivered.has(`${s}-${e.$id}`))
208
208
  return;
209
- const { subscription: i, subscriptionOptions: c, stores: a } = o;
209
+ const { subscription: i, subscriptionOptions: c, stores: l } = o;
210
210
  this.debugLog(`subscriptionDelivery() - store: ${e.$id}`, [
211
211
  "pluginName:",
212
212
  s,
@@ -215,7 +215,7 @@ class we extends Pt {
215
215
  "options:",
216
216
  o,
217
217
  "stores:",
218
- a
218
+ l
219
219
  ]);
220
220
  const u = {
221
221
  storeOptions: { ...n?.storeOptions ?? {}, ...c }
@@ -223,7 +223,7 @@ class we extends Pt {
223
223
  i.invoke(
224
224
  { store: e, options: { ...n, ...u } },
225
225
  this.debug
226
- ), this._subscriptionsDelivered.add(`${s}-${e.$id}`), gt(a) || a?.forEach(
226
+ ), this._subscriptionsDelivered.add(`${s}-${e.$id}`), gt(l) || l?.forEach(
227
227
  (h) => i.invoke(
228
228
  {
229
229
  store: h,
@@ -243,7 +243,7 @@ class we extends Pt {
243
243
  }
244
244
  }
245
245
  // @__NO_SIDE_EFFECTS__
246
- function Oe(t) {
246
+ function we(t) {
247
247
  const e = /* @__PURE__ */ Object.create(null);
248
248
  for (const n of t.split(",")) e[n] = 1;
249
249
  return (n) => n in e;
@@ -251,18 +251,18 @@ function Oe(t) {
251
251
  const bt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
252
252
  process.env.NODE_ENV !== "production" && Object.freeze([]);
253
253
  const kt = () => {
254
- }, Ee = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
255
- (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), Ne = (t) => t.startsWith("onUpdate:"), M = Object.assign, ve = Object.prototype.hasOwnProperty, mt = (t, e) => ve.call(t, e), d = Array.isArray, z = (t) => jt(t) === "[object Map]", $ = (t) => typeof t == "function", R = (t) => typeof t == "string", T = (t) => typeof t == "symbol", g = (t) => t !== null && typeof t == "object", Re = Object.prototype.toString, jt = (t) => Re.call(t), Kt = (t) => jt(t).slice(8, -1), it = (t) => R(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, Ce = (t) => {
254
+ }, Ne = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
255
+ (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), ve = (t) => t.startsWith("onUpdate:"), M = Object.assign, Re = Object.prototype.hasOwnProperty, mt = (t, e) => Re.call(t, e), d = Array.isArray, z = (t) => jt(t) === "[object Map]", I = (t) => typeof t == "function", R = (t) => typeof t == "string", T = (t) => typeof t == "symbol", g = (t) => t !== null && typeof t == "object", Ce = Object.prototype.toString, jt = (t) => Ce.call(t), Kt = (t) => jt(t).slice(8, -1), it = (t) => R(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, Ae = (t) => {
256
256
  const e = /* @__PURE__ */ Object.create(null);
257
257
  return ((n) => e[n] || (e[n] = t(n)));
258
- }, Ae = Ce((t) => t.charAt(0).toUpperCase() + t.slice(1)), x = (t, e) => !Object.is(t, e);
259
- let xt;
260
- const ct = () => xt || (xt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
261
- function Et(t) {
258
+ }, xe = Ae((t) => t.charAt(0).toUpperCase() + t.slice(1)), $ = (t, e) => !Object.is(t, e);
259
+ let $t;
260
+ const ct = () => $t || ($t = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
261
+ function wt(t) {
262
262
  if (d(t)) {
263
263
  const e = {};
264
264
  for (let n = 0; n < t.length; n++) {
265
- const r = t[n], s = R(r) ? De(r) : Et(r);
265
+ const r = t[n], s = R(r) ? Ve(r) : wt(r);
266
266
  if (s)
267
267
  for (const o in s)
268
268
  e[o] = s[o];
@@ -271,10 +271,10 @@ function Et(t) {
271
271
  } else if (R(t) || g(t))
272
272
  return t;
273
273
  }
274
- const Ie = /;(?![^(]*\))/g, $e = /:([^]+)/, xe = /\/\*[^]*?\*\//g;
275
- function De(t) {
274
+ const Ie = /;(?![^(]*\))/g, $e = /:([^]+)/, De = /\/\*[^]*?\*\//g;
275
+ function Ve(t) {
276
276
  const e = {};
277
- return t.replace(xe, "").split(Ie).forEach((n) => {
277
+ return t.replace(De, "").split(Ie).forEach((n) => {
278
278
  if (n) {
279
279
  const r = n.split($e);
280
280
  r.length > 1 && (e[r[0].trim()] = r[1].trim());
@@ -298,7 +298,7 @@ function Nt(t) {
298
298
  function K(t, ...e) {
299
299
  console.warn(`[Vue warn] ${t}`, ...e);
300
300
  }
301
- let Ve, Ht = 0, ut;
301
+ let Te, Ht = 0, ut;
302
302
  function vt() {
303
303
  Ht++;
304
304
  }
@@ -323,10 +323,10 @@ function Rt() {
323
323
  }
324
324
  let Z = !0;
325
325
  const Lt = [];
326
- function lt() {
326
+ function at() {
327
327
  Lt.push(Z), Z = !1;
328
328
  }
329
- function at() {
329
+ function lt() {
330
330
  const t = Lt.pop();
331
331
  Z = t === void 0 ? !0 : t;
332
332
  }
@@ -368,7 +368,7 @@ const tt = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ Symbol(
368
368
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
369
369
  );
370
370
  function _(t, e, n) {
371
- if (Z && Ve) {
371
+ if (Z && Te) {
372
372
  let r = tt.get(t);
373
373
  r || tt.set(t, r = /* @__PURE__ */ new Map());
374
374
  let s = r.get(n);
@@ -379,36 +379,36 @@ function _(t, e, n) {
379
379
  }) : s.track();
380
380
  }
381
381
  }
382
- function I(t, e, n, r, s, o) {
382
+ function x(t, e, n, r, s, o) {
383
383
  const i = tt.get(t);
384
384
  if (!i)
385
385
  return;
386
- const c = (a) => {
387
- a && (process.env.NODE_ENV !== "production" ? a.trigger({
386
+ const c = (l) => {
387
+ l && (process.env.NODE_ENV !== "production" ? l.trigger({
388
388
  target: t,
389
389
  type: e,
390
390
  key: n,
391
391
  newValue: r,
392
392
  oldValue: s,
393
393
  oldTarget: o
394
- }) : a.trigger());
394
+ }) : l.trigger());
395
395
  };
396
396
  if (vt(), e === "clear")
397
397
  i.forEach(c);
398
398
  else {
399
- const a = d(t), u = a && it(n);
400
- if (a && n === "length") {
399
+ const l = d(t), u = l && it(n);
400
+ if (l && n === "length") {
401
401
  const h = Number(r);
402
- i.forEach((l, f) => {
403
- (f === "length" || f === U || !T(f) && f >= h) && c(l);
402
+ i.forEach((a, f) => {
403
+ (f === "length" || f === U || !T(f) && f >= h) && c(a);
404
404
  });
405
405
  } else
406
406
  switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(U)), e) {
407
407
  case "add":
408
- a ? u && c(i.get("length")) : (c(i.get(D)), z(t) && c(i.get(St)));
408
+ l ? u && c(i.get("length")) : (c(i.get(D)), z(t) && c(i.get(St)));
409
409
  break;
410
410
  case "delete":
411
- a || (c(i.get(D)), z(t) && c(i.get(St)));
411
+ l || (c(i.get(D)), z(t) && c(i.get(St)));
412
412
  break;
413
413
  case "set":
414
414
  z(t) && c(i.get(D));
@@ -417,7 +417,7 @@ function I(t, e, n, r, s, o) {
417
417
  }
418
418
  Rt();
419
419
  }
420
- function Te(t, e) {
420
+ function Me(t, e) {
421
421
  const n = tt.get(t);
422
422
  return n && n.get(e);
423
423
  }
@@ -429,9 +429,9 @@ function Ct(t) {
429
429
  return _(t = /* @__PURE__ */ p(t), "iterate", U), t;
430
430
  }
431
431
  function O(t, e) {
432
- return /* @__PURE__ */ E(t) ? B(/* @__PURE__ */ At(t) ? C(e) : e) : C(e);
432
+ return /* @__PURE__ */ w(t) ? B(/* @__PURE__ */ At(t) ? C(e) : e) : C(e);
433
433
  }
434
- const Me = {
434
+ const Pe = {
435
435
  __proto__: null,
436
436
  [Symbol.iterator]() {
437
437
  return ft(this, Symbol.iterator, (t) => O(this, t));
@@ -548,32 +548,32 @@ function ft(t, e, n) {
548
548
  return o.done || (o.value = n(o.value)), o;
549
549
  }), s;
550
550
  }
551
- const Pe = Array.prototype;
551
+ const Fe = Array.prototype;
552
552
  function N(t, e, n, r, s, o) {
553
- const i = Ct(t), c = i !== t && !/* @__PURE__ */ y(t), a = i[e];
554
- if (a !== Pe[e]) {
555
- const l = a.apply(t, o);
556
- return c ? C(l) : l;
553
+ const i = Ct(t), c = i !== t && !/* @__PURE__ */ y(t), l = i[e];
554
+ if (l !== Fe[e]) {
555
+ const a = l.apply(t, o);
556
+ return c ? C(a) : a;
557
557
  }
558
558
  let u = n;
559
- i !== t && (c ? u = function(l, f) {
560
- return n.call(this, O(t, l), f, t);
561
- } : n.length > 2 && (u = function(l, f) {
562
- return n.call(this, l, f, t);
559
+ i !== t && (c ? u = function(a, f) {
560
+ return n.call(this, O(t, a), f, t);
561
+ } : n.length > 2 && (u = function(a, f) {
562
+ return n.call(this, a, f, t);
563
563
  }));
564
- const h = a.call(i, u, r);
564
+ const h = l.call(i, u, r);
565
565
  return c && s ? s(h) : h;
566
566
  }
567
567
  function Dt(t, e, n, r) {
568
568
  const s = Ct(t), o = s !== t && !/* @__PURE__ */ y(t);
569
569
  let i = n, c = !1;
570
- s !== t && (o ? (c = r.length === 0, i = function(u, h, l) {
571
- return c && (c = !1, u = O(t, u)), n.call(this, u, O(t, h), l, t);
572
- }) : n.length > 3 && (i = function(u, h, l) {
573
- return n.call(this, u, h, l, t);
570
+ s !== t && (o ? (c = r.length === 0, i = function(u, h, a) {
571
+ return c && (c = !1, u = O(t, u)), n.call(this, u, O(t, h), a, t);
572
+ }) : n.length > 3 && (i = function(u, h, a) {
573
+ return n.call(this, u, h, a, t);
574
574
  }));
575
- const a = s[e](i, ...r);
576
- return c ? O(t, a) : a;
575
+ const l = s[e](i, ...r);
576
+ return c ? O(t, l) : l;
577
577
  }
578
578
  function pt(t, e, n) {
579
579
  const r = /* @__PURE__ */ p(t);
@@ -582,14 +582,14 @@ function pt(t, e, n) {
582
582
  return (s === -1 || s === !1) && /* @__PURE__ */ q(n[0]) ? (n[0] = /* @__PURE__ */ p(n[0]), r[e](...n)) : s;
583
583
  }
584
584
  function W(t, e, n = []) {
585
- lt(), vt();
585
+ at(), vt();
586
586
  const r = (/* @__PURE__ */ p(t))[e].apply(t, n);
587
- return Rt(), at(), r;
587
+ return Rt(), lt(), r;
588
588
  }
589
- const Fe = /* @__PURE__ */ Oe("__proto__,__v_isRef,__isVue"), zt = new Set(
589
+ const ke = /* @__PURE__ */ we("__proto__,__v_isRef,__isVue"), zt = new Set(
590
590
  /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(T)
591
591
  );
592
- function ke(t) {
592
+ function je(t) {
593
593
  T(t) || (t = String(t));
594
594
  const e = /* @__PURE__ */ p(this);
595
595
  return _(e, "has", t), e.hasOwnProperty(t);
@@ -608,16 +608,16 @@ class Ut {
608
608
  if (n === "__v_isShallow")
609
609
  return o;
610
610
  if (n === "__v_raw")
611
- return r === (s ? o ? Je : Jt : o ? Be : Bt).get(e) || // receiver is not the reactive proxy, but has the same prototype
611
+ return r === (s ? o ? Ye : Jt : o ? Je : Bt).get(e) || // receiver is not the reactive proxy, but has the same prototype
612
612
  // this means the receiver is a user proxy of the reactive proxy
613
613
  Object.getPrototypeOf(e) === Object.getPrototypeOf(r) ? e : void 0;
614
614
  const i = d(e);
615
615
  if (!s) {
616
- let a;
617
- if (i && (a = Me[n]))
618
- return a;
616
+ let l;
617
+ if (i && (l = Pe[n]))
618
+ return l;
619
619
  if (n === "hasOwnProperty")
620
- return ke;
620
+ return je;
621
621
  }
622
622
  const c = Reflect.get(
623
623
  e,
@@ -627,16 +627,16 @@ class Ut {
627
627
  // its class methods
628
628
  /* @__PURE__ */ b(e) ? e : r
629
629
  );
630
- if ((T(n) ? zt.has(n) : Fe(n)) || (s || _(e, "get", n), o))
630
+ if ((T(n) ? zt.has(n) : ke(n)) || (s || _(e, "get", n), o))
631
631
  return c;
632
632
  if (/* @__PURE__ */ b(c)) {
633
- const a = i && it(n) ? c : c.value;
634
- return s && g(a) ? /* @__PURE__ */ wt(a) : a;
633
+ const l = i && it(n) ? c : c.value;
634
+ return s && g(l) ? /* @__PURE__ */ Et(l) : l;
635
635
  }
636
- return g(c) ? s ? /* @__PURE__ */ wt(c) : /* @__PURE__ */ Yt(c) : c;
636
+ return g(c) ? s ? /* @__PURE__ */ Et(c) : /* @__PURE__ */ Yt(c) : c;
637
637
  }
638
638
  }
639
- class je extends Ut {
639
+ class Ke extends Ut {
640
640
  constructor(e = !1) {
641
641
  super(!1, e);
642
642
  }
@@ -644,24 +644,24 @@ class je extends Ut {
644
644
  let o = e[n];
645
645
  const i = d(e) && it(n);
646
646
  if (!this._isShallow) {
647
- const u = /* @__PURE__ */ E(o);
648
- if (!/* @__PURE__ */ y(r) && !/* @__PURE__ */ E(r) && (o = /* @__PURE__ */ p(o), r = /* @__PURE__ */ p(r)), !i && /* @__PURE__ */ b(o) && !/* @__PURE__ */ b(r))
647
+ const u = /* @__PURE__ */ w(o);
648
+ if (!/* @__PURE__ */ y(r) && !/* @__PURE__ */ w(r) && (o = /* @__PURE__ */ p(o), r = /* @__PURE__ */ p(r)), !i && /* @__PURE__ */ b(o) && !/* @__PURE__ */ b(r))
649
649
  return u ? (process.env.NODE_ENV !== "production" && K(
650
650
  `Set operation on key "${String(n)}" failed: target is readonly.`,
651
651
  e[n]
652
652
  ), !0) : (o.value = r, !0);
653
653
  }
654
- const c = i ? Number(n) < e.length : mt(e, n), a = Reflect.set(
654
+ const c = i ? Number(n) < e.length : mt(e, n), l = Reflect.set(
655
655
  e,
656
656
  n,
657
657
  r,
658
658
  /* @__PURE__ */ b(e) ? e : s
659
659
  );
660
- return e === /* @__PURE__ */ p(s) && a && (c ? x(r, o) && I(e, "set", n, r, o) : I(e, "add", n, r)), a;
660
+ return e === /* @__PURE__ */ p(s) && l && (c ? $(r, o) && x(e, "set", n, r, o) : x(e, "add", n, r)), l;
661
661
  }
662
662
  deleteProperty(e, n) {
663
663
  const r = mt(e, n), s = e[n], o = Reflect.deleteProperty(e, n);
664
- return o && r && I(e, "delete", n, void 0, s), o;
664
+ return o && r && x(e, "delete", n, void 0, s), o;
665
665
  }
666
666
  has(e, n) {
667
667
  const r = Reflect.has(e, n);
@@ -675,7 +675,7 @@ class je extends Ut {
675
675
  ), Reflect.ownKeys(e);
676
676
  }
677
677
  }
678
- class Ke extends Ut {
678
+ class He extends Ut {
679
679
  constructor(e = !1) {
680
680
  super(!0, e);
681
681
  }
@@ -692,23 +692,23 @@ class Ke extends Ut {
692
692
  ), !0;
693
693
  }
694
694
  }
695
- const He = /* @__PURE__ */ new je(), Le = /* @__PURE__ */ new Ke(), yt = (t) => t, Y = (t) => Reflect.getPrototypeOf(t);
696
- function We(t, e, n) {
695
+ const Le = /* @__PURE__ */ new Ke(), We = /* @__PURE__ */ new He(), yt = (t) => t, Y = (t) => Reflect.getPrototypeOf(t);
696
+ function ze(t, e, n) {
697
697
  return function(...r) {
698
- const s = this.__v_raw, o = /* @__PURE__ */ p(s), i = z(o), c = t === "entries" || t === Symbol.iterator && i, a = t === "keys" && i, u = s[t](...r), h = n ? yt : e ? B : C;
698
+ const s = this.__v_raw, o = /* @__PURE__ */ p(s), i = z(o), c = t === "entries" || t === Symbol.iterator && i, l = t === "keys" && i, u = s[t](...r), h = n ? yt : e ? B : C;
699
699
  return !e && _(
700
700
  o,
701
701
  "iterate",
702
- a ? St : D
702
+ l ? St : D
703
703
  ), M(
704
704
  // inheriting all iterator properties
705
705
  Object.create(u),
706
706
  {
707
707
  // iterator protocol
708
708
  next() {
709
- const { value: l, done: f } = u.next();
710
- return f ? { value: l, done: f } : {
711
- value: c ? [h(l[0]), h(l[1])] : h(l),
709
+ const { value: a, done: f } = u.next();
710
+ return f ? { value: a, done: f } : {
711
+ value: c ? [h(a[0]), h(a[1])] : h(a),
712
712
  done: f
713
713
  };
714
714
  }
@@ -721,22 +721,22 @@ function G(t) {
721
721
  if (process.env.NODE_ENV !== "production") {
722
722
  const n = e[0] ? `on key "${e[0]}" ` : "";
723
723
  K(
724
- `${Ae(t)} operation ${n}failed: target is readonly.`,
724
+ `${xe(t)} operation ${n}failed: target is readonly.`,
725
725
  /* @__PURE__ */ p(this)
726
726
  );
727
727
  }
728
728
  return t === "delete" ? !1 : t === "clear" ? void 0 : this;
729
729
  };
730
730
  }
731
- function ze(t, e) {
731
+ function Ue(t, e) {
732
732
  const n = {
733
733
  get(s) {
734
734
  const o = this.__v_raw, i = /* @__PURE__ */ p(o), c = /* @__PURE__ */ p(s);
735
- t || (x(s, c) && _(i, "get", s), _(i, "get", c));
736
- const { has: a } = Y(i), u = e ? yt : t ? B : C;
737
- if (a.call(i, s))
735
+ t || ($(s, c) && _(i, "get", s), _(i, "get", c));
736
+ const { has: l } = Y(i), u = e ? yt : t ? B : C;
737
+ if (l.call(i, s))
738
738
  return u(o.get(s));
739
- if (a.call(i, c))
739
+ if (l.call(i, c))
740
740
  return u(o.get(c));
741
741
  o !== i && o.get(s);
742
742
  },
@@ -746,11 +746,11 @@ function ze(t, e) {
746
746
  },
747
747
  has(s) {
748
748
  const o = this.__v_raw, i = /* @__PURE__ */ p(o), c = /* @__PURE__ */ p(s);
749
- return t || (x(s, c) && _(i, "has", s), _(i, "has", c)), s === c ? o.has(s) : o.has(s) || o.has(c);
749
+ return t || ($(s, c) && _(i, "has", s), _(i, "has", c)), s === c ? o.has(s) : o.has(s) || o.has(c);
750
750
  },
751
751
  forEach(s, o) {
752
- const i = this, c = i.__v_raw, a = /* @__PURE__ */ p(c), u = e ? yt : t ? B : C;
753
- return !t && _(a, "iterate", D), c.forEach((h, l) => s.call(o, u(h), u(l), i));
752
+ const i = this, c = i.__v_raw, l = /* @__PURE__ */ p(c), u = e ? yt : t ? B : C;
753
+ return !t && _(l, "iterate", D), c.forEach((h, a) => s.call(o, u(h), u(a), i));
754
754
  }
755
755
  };
756
756
  return M(
@@ -762,27 +762,27 @@ function ze(t, e) {
762
762
  clear: G("clear")
763
763
  } : {
764
764
  add(s) {
765
- const o = /* @__PURE__ */ p(this), i = Y(o), c = /* @__PURE__ */ p(s), a = !e && !/* @__PURE__ */ y(s) && !/* @__PURE__ */ E(s) ? c : s;
766
- return i.has.call(o, a) || x(s, a) && i.has.call(o, s) || x(c, a) && i.has.call(o, c) || (o.add(a), I(o, "add", a, a)), this;
765
+ const o = /* @__PURE__ */ p(this), i = Y(o), c = /* @__PURE__ */ p(s), l = !e && !/* @__PURE__ */ y(s) && !/* @__PURE__ */ w(s) ? c : s;
766
+ return i.has.call(o, l) || $(s, l) && i.has.call(o, s) || $(c, l) && i.has.call(o, c) || (o.add(l), x(o, "add", l, l)), this;
767
767
  },
768
768
  set(s, o) {
769
- !e && !/* @__PURE__ */ y(o) && !/* @__PURE__ */ E(o) && (o = /* @__PURE__ */ p(o));
770
- const i = /* @__PURE__ */ p(this), { has: c, get: a } = Y(i);
769
+ !e && !/* @__PURE__ */ y(o) && !/* @__PURE__ */ w(o) && (o = /* @__PURE__ */ p(o));
770
+ const i = /* @__PURE__ */ p(this), { has: c, get: l } = Y(i);
771
771
  let u = c.call(i, s);
772
772
  u ? process.env.NODE_ENV !== "production" && Vt(i, c, s) : (s = /* @__PURE__ */ p(s), u = c.call(i, s));
773
- const h = a.call(i, s);
774
- return i.set(s, o), u ? x(o, h) && I(i, "set", s, o, h) : I(i, "add", s, o), this;
773
+ const h = l.call(i, s);
774
+ return i.set(s, o), u ? $(o, h) && x(i, "set", s, o, h) : x(i, "add", s, o), this;
775
775
  },
776
776
  delete(s) {
777
777
  const o = /* @__PURE__ */ p(this), { has: i, get: c } = Y(o);
778
- let a = i.call(o, s);
779
- a ? process.env.NODE_ENV !== "production" && Vt(o, i, s) : (s = /* @__PURE__ */ p(s), a = i.call(o, s));
778
+ let l = i.call(o, s);
779
+ l ? process.env.NODE_ENV !== "production" && Vt(o, i, s) : (s = /* @__PURE__ */ p(s), l = i.call(o, s));
780
780
  const u = c ? c.call(o, s) : void 0, h = o.delete(s);
781
- return a && I(o, "delete", s, void 0, u), h;
781
+ return l && x(o, "delete", s, void 0, u), h;
782
782
  },
783
783
  clear() {
784
784
  const s = /* @__PURE__ */ p(this), o = s.size !== 0, i = process.env.NODE_ENV !== "production" ? z(s) ? new Map(s) : new Set(s) : void 0, c = s.clear();
785
- return o && I(
785
+ return o && x(
786
786
  s,
787
787
  "clear",
788
788
  void 0,
@@ -797,20 +797,20 @@ function ze(t, e) {
797
797
  "entries",
798
798
  Symbol.iterator
799
799
  ].forEach((s) => {
800
- n[s] = We(s, t, e);
800
+ n[s] = ze(s, t, e);
801
801
  }), n;
802
802
  }
803
803
  function qt(t, e) {
804
- const n = ze(t, e);
804
+ const n = Ue(t, e);
805
805
  return (r, s, o) => s === "__v_isReactive" ? !t : s === "__v_isReadonly" ? t : s === "__v_raw" ? r : Reflect.get(
806
806
  mt(n, s) && s in r ? n : r,
807
807
  s,
808
808
  o
809
809
  );
810
810
  }
811
- const Ue = {
811
+ const qe = {
812
812
  get: /* @__PURE__ */ qt(!1, !1)
813
- }, qe = {
813
+ }, Be = {
814
814
  get: /* @__PURE__ */ qt(!0, !1)
815
815
  };
816
816
  function Vt(t, e, n) {
@@ -822,8 +822,8 @@ function Vt(t, e, n) {
822
822
  );
823
823
  }
824
824
  }
825
- const Bt = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap();
826
- function Ye(t) {
825
+ const Bt = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap();
826
+ function Ge(t) {
827
827
  switch (t) {
828
828
  case "Object":
829
829
  case "Array":
@@ -839,21 +839,21 @@ function Ye(t) {
839
839
  }
840
840
  // @__NO_SIDE_EFFECTS__
841
841
  function Yt(t) {
842
- return /* @__PURE__ */ E(t) ? t : Gt(
842
+ return /* @__PURE__ */ w(t) ? t : Gt(
843
843
  t,
844
844
  !1,
845
- He,
846
- Ue,
845
+ Le,
846
+ qe,
847
847
  Bt
848
848
  );
849
849
  }
850
850
  // @__NO_SIDE_EFFECTS__
851
- function wt(t) {
851
+ function Et(t) {
852
852
  return Gt(
853
853
  t,
854
854
  !0,
855
- Le,
856
- qe,
855
+ We,
856
+ Be,
857
857
  Jt
858
858
  );
859
859
  }
@@ -869,7 +869,7 @@ function Gt(t, e, n, r, s) {
869
869
  const o = s.get(t);
870
870
  if (o)
871
871
  return o;
872
- const i = Ye(Kt(t));
872
+ const i = Ge(Kt(t));
873
873
  if (i === 0)
874
874
  return t;
875
875
  const c = new Proxy(
@@ -880,10 +880,10 @@ function Gt(t, e, n, r, s) {
880
880
  }
881
881
  // @__NO_SIDE_EFFECTS__
882
882
  function At(t) {
883
- return /* @__PURE__ */ E(t) ? /* @__PURE__ */ At(t.__v_raw) : !!(t && t.__v_isReactive);
883
+ return /* @__PURE__ */ w(t) ? /* @__PURE__ */ At(t.__v_raw) : !!(t && t.__v_isReactive);
884
884
  }
885
885
  // @__NO_SIDE_EFFECTS__
886
- function E(t) {
886
+ function w(t) {
887
887
  return !!(t && t.__v_isReadonly);
888
888
  }
889
889
  // @__NO_SIDE_EFFECTS__
@@ -899,19 +899,19 @@ function p(t) {
899
899
  const e = t && t.__v_raw;
900
900
  return e ? /* @__PURE__ */ p(e) : t;
901
901
  }
902
- const C = (t) => g(t) ? /* @__PURE__ */ Yt(t) : t, B = (t) => g(t) ? /* @__PURE__ */ wt(t) : t;
902
+ const C = (t) => g(t) ? /* @__PURE__ */ Yt(t) : t, B = (t) => g(t) ? /* @__PURE__ */ Et(t) : t;
903
903
  // @__NO_SIDE_EFFECTS__
904
904
  function b(t) {
905
905
  return t ? t.__v_isRef === !0 : !1;
906
906
  }
907
907
  // @__NO_SIDE_EFFECTS__
908
908
  function Qt(t) {
909
- return Ge(t, !1);
909
+ return Qe(t, !1);
910
910
  }
911
- function Ge(t, e) {
912
- return /* @__PURE__ */ b(t) ? t : new Qe(t, e);
911
+ function Qe(t, e) {
912
+ return /* @__PURE__ */ b(t) ? t : new Xe(t, e);
913
913
  }
914
- class Qe {
914
+ class Xe {
915
915
  constructor(e, n) {
916
916
  this.dep = new Wt(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : /* @__PURE__ */ p(e), this._value = n ? e : C(e), this.__v_isShallow = n;
917
917
  }
@@ -923,8 +923,8 @@ class Qe {
923
923
  }) : this.dep.track(), this._value;
924
924
  }
925
925
  set value(e) {
926
- const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ y(e) || /* @__PURE__ */ E(e);
927
- e = r ? e : /* @__PURE__ */ p(e), x(e, n) && (this._rawValue = e, this._value = r ? e : C(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
926
+ const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ y(e) || /* @__PURE__ */ w(e);
927
+ e = r ? e : /* @__PURE__ */ p(e), $(e, n) && (this._rawValue = e, this._value = r ? e : C(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
928
928
  target: this,
929
929
  type: "set",
930
930
  key: "value",
@@ -933,10 +933,10 @@ class Qe {
933
933
  }) : this.dep.trigger());
934
934
  }
935
935
  }
936
- function Xe(t) {
936
+ function Ze(t) {
937
937
  return /* @__PURE__ */ b(t) ? t.value : t;
938
938
  }
939
- class Ze {
939
+ class tn {
940
940
  constructor(e, n, r) {
941
941
  this._object = e, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0, this._key = T(n) ? n : String(n), this._raw = /* @__PURE__ */ p(e);
942
942
  let s = !0, o = e;
@@ -948,7 +948,7 @@ class Ze {
948
948
  }
949
949
  get value() {
950
950
  let e = this._object[this._key];
951
- return this._shallow && (e = Xe(e)), this._value = e === void 0 ? this._defaultValue : e;
951
+ return this._shallow && (e = Ze(e)), this._value = e === void 0 ? this._defaultValue : e;
952
952
  }
953
953
  set value(e) {
954
954
  if (this._shallow && /* @__PURE__ */ b(this._raw[this._key])) {
@@ -961,10 +961,10 @@ class Ze {
961
961
  this._object[this._key] = e;
962
962
  }
963
963
  get dep() {
964
- return Te(this._raw, this._key);
964
+ return Me(this._raw, this._key);
965
965
  }
966
966
  }
967
- class tn {
967
+ class en {
968
968
  constructor(e) {
969
969
  this._getter = e, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
970
970
  }
@@ -973,26 +973,26 @@ class tn {
973
973
  }
974
974
  }
975
975
  // @__NO_SIDE_EFFECTS__
976
- function en(t, e, n) {
977
- return /* @__PURE__ */ b(t) ? t : $(t) ? new tn(t) : g(t) && arguments.length > 1 ? nn(t, e, n) : /* @__PURE__ */ Qt(t);
978
- }
979
976
  function nn(t, e, n) {
980
- return new Ze(t, e, n);
977
+ return /* @__PURE__ */ b(t) ? t : I(t) ? new en(t) : g(t) && arguments.length > 1 ? sn(t, e, n) : /* @__PURE__ */ Qt(t);
978
+ }
979
+ function sn(t, e, n) {
980
+ return new tn(t, e, n);
981
981
  }
982
982
  const V = [];
983
- function sn(t) {
983
+ function rn(t) {
984
984
  V.push(t);
985
985
  }
986
- function rn() {
986
+ function on() {
987
987
  V.pop();
988
988
  }
989
989
  let ht = !1;
990
990
  function H(t, ...e) {
991
991
  if (ht) return;
992
- ht = !0, lt();
993
- const n = V.length ? V[V.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = on();
992
+ ht = !0, at();
993
+ const n = V.length ? V[V.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = cn();
994
994
  if (r)
995
- It(
995
+ xt(
996
996
  r,
997
997
  n,
998
998
  11,
@@ -1013,11 +1013,11 @@ function H(t, ...e) {
1013
1013
  else {
1014
1014
  const o = [`[Vue warn]: ${t}`, ...e];
1015
1015
  s.length && o.push(`
1016
- `, ...cn(s)), console.warn(...o);
1016
+ `, ...an(s)), console.warn(...o);
1017
1017
  }
1018
- at(), ht = !1;
1018
+ lt(), ht = !1;
1019
1019
  }
1020
- function on() {
1020
+ function cn() {
1021
1021
  let t = V[V.length - 1];
1022
1022
  if (!t)
1023
1023
  return [];
@@ -1033,7 +1033,7 @@ function on() {
1033
1033
  }
1034
1034
  return e;
1035
1035
  }
1036
- function cn(t) {
1036
+ function an(t) {
1037
1037
  const e = [];
1038
1038
  return t.forEach((n, r) => {
1039
1039
  e.push(...r === 0 ? [] : [`
@@ -1046,16 +1046,16 @@ function ln({ vnode: t, recurseCount: e }) {
1046
1046
  t.type,
1047
1047
  r
1048
1048
  )}`, o = ">" + n;
1049
- return t.props ? [s, ...an(t.props), o] : [s + o];
1049
+ return t.props ? [s, ...un(t.props), o] : [s + o];
1050
1050
  }
1051
- function an(t) {
1051
+ function un(t) {
1052
1052
  const e = [], n = Object.keys(t);
1053
1053
  return n.slice(0, 3).forEach((r) => {
1054
1054
  e.push(...Xt(r, t[r]));
1055
1055
  }), n.length > 3 && e.push(" ..."), e;
1056
1056
  }
1057
1057
  function Xt(t, e, n) {
1058
- return R(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : /* @__PURE__ */ b(e) ? (e = Xt(t, /* @__PURE__ */ p(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : $(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ p(e), n ? e : [`${t}=`, e]);
1058
+ return R(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : /* @__PURE__ */ b(e) ? (e = Xt(t, /* @__PURE__ */ p(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : I(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ p(e), n ? e : [`${t}=`, e]);
1059
1059
  }
1060
1060
  const Zt = {
1061
1061
  sp: "serverPrefetch hook",
@@ -1090,7 +1090,7 @@ const Zt = {
1090
1090
  15: "component update",
1091
1091
  16: "app unmount cleanup function"
1092
1092
  };
1093
- function It(t, e, n, r) {
1093
+ function xt(t, e, n, r) {
1094
1094
  try {
1095
1095
  return r ? t(...r) : t();
1096
1096
  } catch (s) {
@@ -1101,31 +1101,31 @@ function te(t, e, n, r = !0) {
1101
1101
  const s = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || bt;
1102
1102
  if (e) {
1103
1103
  let c = e.parent;
1104
- const a = e.proxy, u = process.env.NODE_ENV !== "production" ? Zt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1104
+ const l = e.proxy, u = process.env.NODE_ENV !== "production" ? Zt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1105
1105
  for (; c; ) {
1106
1106
  const h = c.ec;
1107
1107
  if (h) {
1108
- for (let l = 0; l < h.length; l++)
1109
- if (h[l](t, a, u) === !1)
1108
+ for (let a = 0; a < h.length; a++)
1109
+ if (h[a](t, l, u) === !1)
1110
1110
  return;
1111
1111
  }
1112
1112
  c = c.parent;
1113
1113
  }
1114
1114
  if (o) {
1115
- lt(), It(o, null, 10, [
1115
+ at(), xt(o, null, 10, [
1116
1116
  t,
1117
- a,
1117
+ l,
1118
1118
  u
1119
- ]), at();
1119
+ ]), lt();
1120
1120
  return;
1121
1121
  }
1122
1122
  }
1123
- un(t, n, s, r, i);
1123
+ fn(t, n, s, r, i);
1124
1124
  }
1125
- function un(t, e, n, r = !0, s = !1) {
1125
+ function fn(t, e, n, r = !0, s = !1) {
1126
1126
  if (process.env.NODE_ENV !== "production") {
1127
1127
  const o = Zt[e];
1128
- if (n && sn(n), H(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && rn(), r)
1128
+ if (n && rn(n), H(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && on(), r)
1129
1129
  throw t;
1130
1130
  console.error(t);
1131
1131
  } else {
@@ -1138,10 +1138,10 @@ const S = [];
1138
1138
  let v = -1;
1139
1139
  const j = [];
1140
1140
  let A = null, F = 0;
1141
- const fn = /* @__PURE__ */ Promise.resolve();
1141
+ const pn = /* @__PURE__ */ Promise.resolve();
1142
1142
  let Ot = null;
1143
- const pn = 100;
1144
- function hn(t) {
1143
+ const hn = 100;
1144
+ function dn(t) {
1145
1145
  let e = v + 1, n = S.length;
1146
1146
  for (; e < n; ) {
1147
1147
  const r = e + n >>> 1, s = S[r], o = J(s);
@@ -1149,20 +1149,20 @@ function hn(t) {
1149
1149
  }
1150
1150
  return e;
1151
1151
  }
1152
- function dn(t) {
1152
+ function _n(t) {
1153
1153
  if (!(t.flags & 1)) {
1154
1154
  const e = J(t), n = S[S.length - 1];
1155
1155
  !n || // fast path when the job id is larger than the tail
1156
- !(t.flags & 2) && e >= J(n) ? S.push(t) : S.splice(hn(e), 0, t), t.flags |= 1, ee();
1156
+ !(t.flags & 2) && e >= J(n) ? S.push(t) : S.splice(dn(e), 0, t), t.flags |= 1, ee();
1157
1157
  }
1158
1158
  }
1159
1159
  function ee() {
1160
- Ot || (Ot = fn.then(ne));
1160
+ Ot || (Ot = pn.then(ne));
1161
1161
  }
1162
- function _n(t) {
1162
+ function gn(t) {
1163
1163
  d(t) ? j.push(...t) : A && t.id === -1 ? A.splice(F + 1, 0, t) : t.flags & 1 || (j.push(t), t.flags |= 1), ee();
1164
1164
  }
1165
- function gn(t) {
1165
+ function bn(t) {
1166
1166
  if (j.length) {
1167
1167
  const e = [...new Set(j)].sort(
1168
1168
  (n, r) => J(n) - J(r)
@@ -1188,7 +1188,7 @@ function ne(t) {
1188
1188
  if (n && !(n.flags & 8)) {
1189
1189
  if (process.env.NODE_ENV !== "production" && e(n))
1190
1190
  continue;
1191
- n.flags & 4 && (n.flags &= -2), It(
1191
+ n.flags & 4 && (n.flags &= -2), xt(
1192
1192
  n,
1193
1193
  n.i,
1194
1194
  n.i ? 15 : 14
@@ -1200,12 +1200,12 @@ function ne(t) {
1200
1200
  const n = S[v];
1201
1201
  n && (n.flags &= -2);
1202
1202
  }
1203
- v = -1, S.length = 0, gn(t), Ot = null, (S.length || j.length) && ne(t);
1203
+ v = -1, S.length = 0, bn(t), Ot = null, (S.length || j.length) && ne(t);
1204
1204
  }
1205
1205
  }
1206
1206
  function se(t, e) {
1207
1207
  const n = t.get(e) || 0;
1208
- if (n > pn) {
1208
+ if (n > hn) {
1209
1209
  const r = e.i, s = r && fe(r.type);
1210
1210
  return te(
1211
1211
  `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.`,
@@ -1217,12 +1217,12 @@ function se(t, e) {
1217
1217
  }
1218
1218
  const dt = /* @__PURE__ */ new Map();
1219
1219
  process.env.NODE_ENV !== "production" && (ct().__VUE_HMR_RUNTIME__ = {
1220
- createRecord: _t(bn),
1221
- rerender: _t(mn),
1222
- reload: _t(Sn)
1220
+ createRecord: _t(mn),
1221
+ rerender: _t(Sn),
1222
+ reload: _t(yn)
1223
1223
  });
1224
1224
  const et = /* @__PURE__ */ new Map();
1225
- function bn(t, e) {
1225
+ function mn(t, e) {
1226
1226
  return et.has(t) ? !1 : (et.set(t, {
1227
1227
  initialDef: nt(e),
1228
1228
  instances: /* @__PURE__ */ new Set()
@@ -1231,13 +1231,13 @@ function bn(t, e) {
1231
1231
  function nt(t) {
1232
1232
  return he(t) ? t.__vccOpts : t;
1233
1233
  }
1234
- function mn(t, e) {
1234
+ function Sn(t, e) {
1235
1235
  const n = et.get(t);
1236
1236
  n && (n.initialDef.render = e, [...n.instances].forEach((r) => {
1237
1237
  e && (r.render = e, nt(r.type).render = e), r.renderCache = [], r.job.flags & 8 || r.update();
1238
1238
  }));
1239
1239
  }
1240
- function Sn(t, e) {
1240
+ function yn(t, e) {
1241
1241
  const n = et.get(t);
1242
1242
  if (!n) return;
1243
1243
  e = nt(e), Tt(n.initialDef, e);
@@ -1245,13 +1245,13 @@ function Sn(t, e) {
1245
1245
  for (let s = 0; s < r.length; s++) {
1246
1246
  const o = r[s], i = nt(o.type);
1247
1247
  let c = dt.get(i);
1248
- c || (i !== n.initialDef && Tt(i, e), dt.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(e.styles), c.delete(o)) : o.parent ? dn(() => {
1248
+ c || (i !== n.initialDef && Tt(i, e), dt.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(e.styles), c.delete(o)) : o.parent ? _n(() => {
1249
1249
  o.job.flags & 8 || (o.parent.update(), c.delete(o));
1250
1250
  }) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1251
1251
  "[HMR] Root or manually mounted instance modified. Full reload required."
1252
1252
  ), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
1253
1253
  }
1254
- _n(() => {
1254
+ gn(() => {
1255
1255
  dt.clear();
1256
1256
  });
1257
1257
  }
@@ -1283,37 +1283,37 @@ function re(t, e) {
1283
1283
  k || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Q = []);
1284
1284
  }, 3e3)) : Q = [];
1285
1285
  }
1286
- let st = null, yn = null;
1287
- const wn = (t) => t.__isTeleport;
1286
+ let st = null, En = null;
1287
+ const On = (t) => t.__isTeleport;
1288
1288
  function oe(t, e) {
1289
1289
  t.shapeFlag & 6 && t.component ? (t.transition = e, oe(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
1290
1290
  }
1291
1291
  ct().requestIdleCallback;
1292
1292
  ct().cancelIdleCallback;
1293
- const On = /* @__PURE__ */ Symbol.for("v-ndc"), En = {};
1294
- process.env.NODE_ENV !== "production" && (En.ownKeys = (t) => (H(
1293
+ const wn = /* @__PURE__ */ Symbol.for("v-ndc"), Nn = {};
1294
+ process.env.NODE_ENV !== "production" && (Nn.ownKeys = (t) => (H(
1295
1295
  "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1296
1296
  ), Reflect.ownKeys(t)));
1297
- const Nn = {}, ie = (t) => Object.getPrototypeOf(t) === Nn, vn = (t) => t.__isSuspense, ce = /* @__PURE__ */ Symbol.for("v-fgt"), Rn = /* @__PURE__ */ Symbol.for("v-txt"), Cn = /* @__PURE__ */ Symbol.for("v-cmt");
1298
- function An(t) {
1297
+ const vn = {}, ie = (t) => Object.getPrototypeOf(t) === vn, Rn = (t) => t.__isSuspense, ce = /* @__PURE__ */ Symbol.for("v-fgt"), Cn = /* @__PURE__ */ Symbol.for("v-txt"), An = /* @__PURE__ */ Symbol.for("v-cmt");
1298
+ function xn(t) {
1299
1299
  return t ? t.__v_isVNode === !0 : !1;
1300
1300
  }
1301
- const In = (...t) => ae(
1301
+ const In = (...t) => le(
1302
1302
  ...t
1303
- ), le = ({ key: t }) => t ?? null, X = ({
1303
+ ), ae = ({ key: t }) => t ?? null, X = ({
1304
1304
  ref: t,
1305
1305
  ref_key: e,
1306
1306
  ref_for: n
1307
- }) => (typeof t == "number" && (t = "" + t), t != null ? R(t) || /* @__PURE__ */ b(t) || $(t) ? { i: st, r: t, k: e, f: !!n } : t : null);
1307
+ }) => (typeof t == "number" && (t = "" + t), t != null ? R(t) || /* @__PURE__ */ b(t) || I(t) ? { i: st, r: t, k: e, f: !!n } : t : null);
1308
1308
  function $n(t, e = null, n = null, r = 0, s = null, o = t === ce ? 0 : 1, i = !1, c = !1) {
1309
- const a = {
1309
+ const l = {
1310
1310
  __v_isVNode: !0,
1311
1311
  __v_skip: !0,
1312
1312
  type: t,
1313
1313
  props: e,
1314
- key: e && le(e),
1314
+ key: e && ae(e),
1315
1315
  ref: e && X(e),
1316
- scopeId: yn,
1316
+ scopeId: En,
1317
1317
  slotScopeIds: null,
1318
1318
  children: n,
1319
1319
  component: null,
@@ -1335,11 +1335,11 @@ function $n(t, e = null, n = null, r = 0, s = null, o = t === ce ? 0 : 1, i = !1
1335
1335
  appContext: null,
1336
1336
  ctx: st
1337
1337
  };
1338
- return c ? (ot(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= R(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && H("VNode created with invalid key (NaN). VNode type:", a.type), a;
1338
+ return c ? (ot(l, n), o & 128 && t.normalize(l)) : n && (l.shapeFlag |= R(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && H("VNode created with invalid key (NaN). VNode type:", l.type), l;
1339
1339
  }
1340
- const xn = process.env.NODE_ENV !== "production" ? In : ae;
1341
- function ae(t, e = null, n = null, r = 0, s = null, o = !1) {
1342
- if ((!t || t === On) && (process.env.NODE_ENV !== "production" && !t && H(`Invalid vnode type when creating vnode: ${t}.`), t = Cn), An(t)) {
1340
+ const Dn = process.env.NODE_ENV !== "production" ? In : le;
1341
+ function le(t, e = null, n = null, r = 0, s = null, o = !1) {
1342
+ if ((!t || t === wn) && (process.env.NODE_ENV !== "production" && !t && H(`Invalid vnode type when creating vnode: ${t}.`), t = An), xn(t)) {
1343
1343
  const c = rt(
1344
1344
  t,
1345
1345
  e,
@@ -1349,11 +1349,11 @@ function ae(t, e = null, n = null, r = 0, s = null, o = !1) {
1349
1349
  return n && ot(c, n), c.patchFlag = -2, c;
1350
1350
  }
1351
1351
  if (he(t) && (t = t.__vccOpts), e) {
1352
- e = Dn(e);
1353
- let { class: c, style: a } = e;
1354
- c && !R(c) && (e.class = Nt(c)), g(a) && (/* @__PURE__ */ q(a) && !d(a) && (a = M({}, a)), e.style = Et(a));
1352
+ e = Vn(e);
1353
+ let { class: c, style: l } = e;
1354
+ c && !R(c) && (e.class = Nt(c)), g(l) && (/* @__PURE__ */ q(l) && !d(l) && (l = M({}, l)), e.style = wt(l));
1355
1355
  }
1356
- const i = R(t) ? 1 : vn(t) ? 128 : wn(t) ? 64 : g(t) ? 4 : $(t) ? 2 : 0;
1356
+ const i = R(t) ? 1 : Rn(t) ? 128 : On(t) ? 64 : g(t) ? 4 : I(t) ? 2 : 0;
1357
1357
  return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ q(t) && (t = /* @__PURE__ */ p(t), H(
1358
1358
  "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`.",
1359
1359
  `
@@ -1370,16 +1370,16 @@ Component that was made reactive: `,
1370
1370
  !0
1371
1371
  );
1372
1372
  }
1373
- function Dn(t) {
1373
+ function Vn(t) {
1374
1374
  return t ? /* @__PURE__ */ q(t) || ie(t) ? M({}, t) : t : null;
1375
1375
  }
1376
1376
  function rt(t, e, n = !1, r = !1) {
1377
- const { props: s, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ? Tn(s || {}, e) : s, h = {
1377
+ const { props: s, ref: o, patchFlag: i, children: c, transition: l } = t, u = e ? Mn(s || {}, e) : s, h = {
1378
1378
  __v_isVNode: !0,
1379
1379
  __v_skip: !0,
1380
1380
  type: t.type,
1381
1381
  props: u,
1382
- key: u && le(u),
1382
+ key: u && ae(u),
1383
1383
  ref: e && e.ref ? (
1384
1384
  // #2078 in the case of <component :is="vnode" ref="extra"/>
1385
1385
  // if the vnode itself already has a ref, cloneVNode will need to merge
@@ -1403,7 +1403,7 @@ function rt(t, e, n = !1, r = !1) {
1403
1403
  dynamicChildren: t.dynamicChildren,
1404
1404
  appContext: t.appContext,
1405
1405
  dirs: t.dirs,
1406
- transition: a,
1406
+ transition: l,
1407
1407
  // These should technically only be non-null on mounted VNodes. However,
1408
1408
  // they *should* be copied for kept-alive vnodes. So we just always copy
1409
1409
  // them since them being non-null during a mount doesn't affect the logic as
@@ -1418,17 +1418,17 @@ function rt(t, e, n = !1, r = !1) {
1418
1418
  ctx: t.ctx,
1419
1419
  ce: t.ce
1420
1420
  };
1421
- return a && r && oe(
1421
+ return l && r && oe(
1422
1422
  h,
1423
- a.clone(h)
1423
+ l.clone(h)
1424
1424
  ), h;
1425
1425
  }
1426
1426
  function ue(t) {
1427
1427
  const e = rt(t);
1428
1428
  return d(t.children) && (e.children = t.children.map(ue)), e;
1429
1429
  }
1430
- function Vn(t = " ", e = 0) {
1431
- return xn(Rn, null, t, e);
1430
+ function Tn(t = " ", e = 0) {
1431
+ return Dn(Cn, null, t, e);
1432
1432
  }
1433
1433
  function ot(t, e) {
1434
1434
  let n = 0;
@@ -1444,17 +1444,17 @@ function ot(t, e) {
1444
1444
  return;
1445
1445
  } else
1446
1446
  n = 32, !e._ && !ie(e) && (e._ctx = st);
1447
- else if ($(e)) {
1447
+ else if (I(e)) {
1448
1448
  if (r & 65) {
1449
1449
  ot(t, { default: e });
1450
1450
  return;
1451
1451
  }
1452
1452
  e = { default: e, _ctx: st }, n = 32;
1453
1453
  } else
1454
- e = String(e), r & 64 ? (n = 16, e = [Vn(e)]) : n = 8;
1454
+ e = String(e), r & 64 ? (n = 16, e = [Tn(e)]) : n = 8;
1455
1455
  t.children = e, t.shapeFlag |= n;
1456
1456
  }
1457
- function Tn(...t) {
1457
+ function Mn(...t) {
1458
1458
  const e = {};
1459
1459
  for (let n = 0; n < t.length; n++) {
1460
1460
  const r = t[n];
@@ -1462,12 +1462,12 @@ function Tn(...t) {
1462
1462
  if (s === "class")
1463
1463
  e.class !== r.class && (e.class = Nt([e.class, r.class]));
1464
1464
  else if (s === "style")
1465
- e.style = Et([e.style, r.style]);
1466
- else if (Ee(s)) {
1465
+ e.style = wt([e.style, r.style]);
1466
+ else if (Ne(s)) {
1467
1467
  const o = e[s], i = r[s];
1468
1468
  i && o !== i && !(d(o) && o.includes(i)) ? e[s] = o ? [].concat(o, i) : i : i == null && o == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
1469
1469
  // the model listener.
1470
- !Ne(s) && (e[s] = i);
1470
+ !ve(s) && (e[s] = i);
1471
1471
  } else s !== "" && (e[s] = r[s]);
1472
1472
  }
1473
1473
  return e;
@@ -1488,9 +1488,9 @@ function Tn(...t) {
1488
1488
  );
1489
1489
  }
1490
1490
  process.env.NODE_ENV;
1491
- const Mn = /(?:^|[-_])\w/g, Pn = (t) => t.replace(Mn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1491
+ const Pn = /(?:^|[-_])\w/g, Fn = (t) => t.replace(Pn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1492
1492
  function fe(t, e = !0) {
1493
- return $(t) ? t.displayName || t.name : t.name || e && t.__name;
1493
+ return I(t) ? t.displayName || t.name : t.name || e && t.__name;
1494
1494
  }
1495
1495
  function pe(t, e, n = !1) {
1496
1496
  let r = fe(e);
@@ -1508,73 +1508,73 @@ function pe(t, e, n = !1) {
1508
1508
  t.parent.type.components
1509
1509
  ) || s(t.appContext.components);
1510
1510
  }
1511
- return r ? Pn(r) : n ? "App" : "Anonymous";
1511
+ return r ? Fn(r) : n ? "App" : "Anonymous";
1512
1512
  }
1513
1513
  function he(t) {
1514
- return $(t) && "__vccOpts" in t;
1514
+ return I(t) && "__vccOpts" in t;
1515
1515
  }
1516
- function Fn() {
1516
+ function kn() {
1517
1517
  if (process.env.NODE_ENV === "production" || typeof window > "u")
1518
1518
  return;
1519
1519
  const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, s = {
1520
1520
  __vue_custom_formatter: !0,
1521
- header(l) {
1522
- if (!g(l))
1521
+ header(a) {
1522
+ if (!g(a))
1523
1523
  return null;
1524
- if (l.__isVue)
1524
+ if (a.__isVue)
1525
1525
  return ["div", t, "VueInstance"];
1526
- if (/* @__PURE__ */ b(l)) {
1527
- lt();
1528
- const f = l.value;
1529
- return at(), [
1526
+ if (/* @__PURE__ */ b(a)) {
1527
+ at();
1528
+ const f = a.value;
1529
+ return lt(), [
1530
1530
  "div",
1531
1531
  {},
1532
- ["span", t, h(l)],
1532
+ ["span", t, h(a)],
1533
1533
  "<",
1534
1534
  c(f),
1535
1535
  ">"
1536
1536
  ];
1537
1537
  } else {
1538
- if (/* @__PURE__ */ At(l))
1538
+ if (/* @__PURE__ */ At(a))
1539
1539
  return [
1540
1540
  "div",
1541
1541
  {},
1542
- ["span", t, /* @__PURE__ */ y(l) ? "ShallowReactive" : "Reactive"],
1542
+ ["span", t, /* @__PURE__ */ y(a) ? "ShallowReactive" : "Reactive"],
1543
1543
  "<",
1544
- c(l),
1545
- `>${/* @__PURE__ */ E(l) ? " (readonly)" : ""}`
1544
+ c(a),
1545
+ `>${/* @__PURE__ */ w(a) ? " (readonly)" : ""}`
1546
1546
  ];
1547
- if (/* @__PURE__ */ E(l))
1547
+ if (/* @__PURE__ */ w(a))
1548
1548
  return [
1549
1549
  "div",
1550
1550
  {},
1551
- ["span", t, /* @__PURE__ */ y(l) ? "ShallowReadonly" : "Readonly"],
1551
+ ["span", t, /* @__PURE__ */ y(a) ? "ShallowReadonly" : "Readonly"],
1552
1552
  "<",
1553
- c(l),
1553
+ c(a),
1554
1554
  ">"
1555
1555
  ];
1556
1556
  }
1557
1557
  return null;
1558
1558
  },
1559
- hasBody(l) {
1560
- return l && l.__isVue;
1559
+ hasBody(a) {
1560
+ return a && a.__isVue;
1561
1561
  },
1562
- body(l) {
1563
- if (l && l.__isVue)
1562
+ body(a) {
1563
+ if (a && a.__isVue)
1564
1564
  return [
1565
1565
  "div",
1566
1566
  {},
1567
- ...o(l.$)
1567
+ ...o(a.$)
1568
1568
  ];
1569
1569
  }
1570
1570
  };
1571
- function o(l) {
1571
+ function o(a) {
1572
1572
  const f = [];
1573
- l.type.props && l.props && f.push(i("props", /* @__PURE__ */ p(l.props))), l.setupState !== bt && f.push(i("setup", l.setupState)), l.data !== bt && f.push(i("data", /* @__PURE__ */ p(l.data)));
1574
- const m = a(l, "computed");
1573
+ a.type.props && a.props && f.push(i("props", /* @__PURE__ */ p(a.props))), a.setupState !== bt && f.push(i("setup", a.setupState)), a.data !== bt && f.push(i("data", /* @__PURE__ */ p(a.data)));
1574
+ const m = l(a, "computed");
1575
1575
  m && f.push(i("computed", m));
1576
- const w = a(l, "inject");
1577
- return w && f.push(i("injected", w)), f.push([
1576
+ const E = l(a, "inject");
1577
+ return E && f.push(i("injected", E)), f.push([
1578
1578
  "div",
1579
1579
  {},
1580
1580
  [
@@ -1584,10 +1584,10 @@ function Fn() {
1584
1584
  },
1585
1585
  "$ (internal): "
1586
1586
  ],
1587
- ["object", { object: l }]
1587
+ ["object", { object: a }]
1588
1588
  ]), f;
1589
1589
  }
1590
- function i(l, f) {
1590
+ function i(a, f) {
1591
1591
  return f = M({}, f), Object.keys(f).length ? [
1592
1592
  "div",
1593
1593
  { style: "line-height:1.25em;margin-bottom:0.6em" },
@@ -1596,7 +1596,7 @@ function Fn() {
1596
1596
  {
1597
1597
  style: "color:#476582"
1598
1598
  },
1599
- l
1599
+ a
1600
1600
  ],
1601
1601
  [
1602
1602
  "div",
@@ -1612,39 +1612,39 @@ function Fn() {
1612
1612
  ]
1613
1613
  ] : ["span", {}];
1614
1614
  }
1615
- function c(l, f = !0) {
1616
- return typeof l == "number" ? ["span", e, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", r, l] : g(l) ? ["object", { object: f ? /* @__PURE__ */ p(l) : l }] : ["span", n, String(l)];
1615
+ function c(a, f = !0) {
1616
+ return typeof a == "number" ? ["span", e, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", r, a] : g(a) ? ["object", { object: f ? /* @__PURE__ */ p(a) : a }] : ["span", n, String(a)];
1617
1617
  }
1618
- function a(l, f) {
1619
- const m = l.type;
1620
- if ($(m))
1618
+ function l(a, f) {
1619
+ const m = a.type;
1620
+ if (I(m))
1621
1621
  return;
1622
- const w = {};
1623
- for (const L in l.ctx)
1624
- u(m, L, f) && (w[L] = l.ctx[L]);
1625
- return w;
1626
- }
1627
- function u(l, f, m) {
1628
- const w = l[m];
1629
- if (d(w) && w.includes(f) || g(w) && f in w || l.extends && u(l.extends, f, m) || l.mixins && l.mixins.some((L) => u(L, f, m)))
1622
+ const E = {};
1623
+ for (const L in a.ctx)
1624
+ u(m, L, f) && (E[L] = a.ctx[L]);
1625
+ return E;
1626
+ }
1627
+ function u(a, f, m) {
1628
+ const E = a[m];
1629
+ if (d(E) && E.includes(f) || g(E) && f in E || a.extends && u(a.extends, f, m) || a.mixins && a.mixins.some((L) => u(L, f, m)))
1630
1630
  return !0;
1631
1631
  }
1632
- function h(l) {
1633
- return /* @__PURE__ */ y(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
1632
+ function h(a) {
1633
+ return /* @__PURE__ */ y(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
1634
1634
  }
1635
1635
  window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
1636
1636
  }
1637
1637
  process.env.NODE_ENV;
1638
1638
  process.env.NODE_ENV;
1639
1639
  process.env.NODE_ENV;
1640
- function kn() {
1641
- Fn();
1640
+ function jn() {
1641
+ kn();
1642
1642
  }
1643
- process.env.NODE_ENV !== "production" && kn();
1643
+ process.env.NODE_ENV !== "production" && jn();
1644
1644
  const de = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new Map();
1645
- function Un(t, e, n) {
1645
+ function qn(t, e, n) {
1646
1646
  const r = n ? { storeOptions: n } : {};
1647
- return typeof e == "function" ? jn(
1647
+ return typeof e == "function" ? ge(
1648
1648
  t,
1649
1649
  e,
1650
1650
  r
@@ -1654,7 +1654,14 @@ function Un(t, e, n) {
1654
1654
  r
1655
1655
  );
1656
1656
  }
1657
- function jn(t, e, n) {
1657
+ function Bn(t, e, n) {
1658
+ return ge(
1659
+ t,
1660
+ e,
1661
+ n ? { storeOptions: n } : {}
1662
+ );
1663
+ }
1664
+ function ge(t, e, n) {
1658
1665
  const r = {
1659
1666
  id: t,
1660
1667
  extensions: {}
@@ -1673,13 +1680,22 @@ const Hn = /* @__PURE__ */ new Set(["_", "$"]);
1673
1680
  function Ln(t) {
1674
1681
  return Hn.has(t[0]);
1675
1682
  }
1676
- function qn(t) {
1683
+ function Jn(t) {
1677
1684
  return de.get(t) ?? (typeof t?.$id == "string" ? _e.get(t.$id) : void 0);
1678
1685
  }
1679
- function Bn(t) {
1680
- return t.extensions.extending;
1686
+ function Wn(t) {
1687
+ const e = t.extensions.enhancedStore ?? t.extensions.extending;
1688
+ if (!e)
1689
+ throw new Error(`${t.id}Store - getEnhancedStore - Error: enhanced store is required`);
1690
+ return e;
1691
+ }
1692
+ function Yn(t, e) {
1693
+ t.extensions.enhancedStore = e, t.extensions.extending = e;
1681
1694
  }
1682
- class Jn extends Pt {
1695
+ function Gn(t) {
1696
+ return Wn(t);
1697
+ }
1698
+ class Qn extends Pt {
1683
1699
  _className = "Store";
1684
1700
  _onAction;
1685
1701
  _options;
@@ -1728,7 +1744,7 @@ class Jn extends Pt {
1728
1744
  * @param value
1729
1745
  */
1730
1746
  addToState(e, n) {
1731
- this.isOptionApi() || n?.value || (n = /* @__PURE__ */ Qt(n)), this.state[e] = n, this.store[e] = /* @__PURE__ */ en(this.state, e);
1747
+ this.isOptionApi() || n?.value || (n = /* @__PURE__ */ Qt(n)), this.state[e] = n, this.store[e] = /* @__PURE__ */ nn(this.state, e);
1732
1748
  }
1733
1749
  addSubscription(e, n, r) {
1734
1750
  this._subscriptions[e] = { subscription: n, ...r ?? {} };
@@ -1773,19 +1789,22 @@ class Jn extends Pt {
1773
1789
  return this.store.hasOwnProperty(e);
1774
1790
  }
1775
1791
  }
1776
- function Yn(t, e) {
1777
- const n = new we(t, e);
1792
+ function Xn(t, e) {
1793
+ const n = new Oe(t, e);
1778
1794
  return n.plugin.bind(n);
1779
1795
  }
1780
1796
  export {
1781
- me as CustomConsole,
1797
+ Se as CustomConsole,
1782
1798
  Ft as PLUGIN_NAME,
1783
- zn as PluginSubscriber,
1784
- we as PluginSubscription,
1785
- Jn as Store,
1786
- Yn as createPlugin,
1787
- Un as defineAStore,
1788
- qn as getDefineAStoreSetupContext,
1789
- Bn as getExtendingStore,
1790
- gt as isEmpty
1799
+ Un as PluginSubscriber,
1800
+ Oe as PluginSubscription,
1801
+ Qn as Store,
1802
+ Xn as createPlugin,
1803
+ qn as defineAStore,
1804
+ Bn as defineAStoreCtx,
1805
+ Jn as getDefineAStoreSetupContext,
1806
+ Wn as getEnhancedStore,
1807
+ Gn as getExtendingStore,
1808
+ gt as isEmpty,
1809
+ Yn as setEnhancedStore
1791
1810
  };