pinia-plugin-subscription 0.0.1 → 0.0.3

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.
@@ -37,14 +37,14 @@ class Pn {
37
37
  set subscriptions(e) {
38
38
  this._subscriptions = e;
39
39
  }
40
- constructor(e, n, s) {
41
- this._name = e, this._createInstance = n, s && (this._console = s);
40
+ constructor(e, n, r) {
41
+ this._name = e, this._createInstance = n, r && (this._console = r);
42
42
  }
43
- invoke({ store: e, options: n }, s) {
44
- return this._storeInstance = this._createInstance(e, { ...n, ...this.pluginOptions }, s, this.console), this._storeInstance ? (this._subscriptions = this._storeInstance.getSubscriptions(), this._storeMutationSubscription = this._storeInstance.storeSubscribe, this._storeOnActionSubscription = this._storeInstance.onAction, this.pluginCreated && this.pluginCreated(e), !0) : !1;
43
+ invoke({ store: e, options: n }, r) {
44
+ return this._storeInstance = this._createInstance(e, { ...n, ...this.pluginOptions }, r, this.console), this._storeInstance ? (this._subscriptions = this._storeInstance.getSubscriptions(), this._storeMutationSubscription = this._storeInstance.storeSubscribe, this._storeOnActionSubscription = this._storeInstance.onAction, this.pluginCreated && this.pluginCreated(e), !0) : !1;
45
45
  }
46
46
  }
47
- class Dt {
47
+ class Vt {
48
48
  _console;
49
49
  _debug = !1;
50
50
  get console() {
@@ -60,7 +60,7 @@ class Dt {
60
60
  this._debug = e;
61
61
  }
62
62
  constructor(e, n) {
63
- this._debug = e, n && (this._console = n);
63
+ this._debug = e, this._className = this.constructor.name, n && (this._console = n);
64
64
  }
65
65
  debugLog(...e) {
66
66
  this._debug && (Array.isArray(e) && (e[0] = `${this._className} - ${e[0]}`), this.console.log(...e));
@@ -69,7 +69,7 @@ class Dt {
69
69
  this.console.error(...e);
70
70
  }
71
71
  }
72
- const Vt = "pinia-plugin-subscription", le = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
72
+ const Dt = "pinia-plugin-subscription", le = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
73
73
  function ae(t, e) {
74
74
  if (!t)
75
75
  throw new Error("Style instructions are required");
@@ -92,7 +92,7 @@ class ue {
92
92
  info: { bgColor: this._bgColor, color: this._color, icon: this._icon }
93
93
  };
94
94
  formatMessage(e, n) {
95
- return ` [${n} ${Vt}] - ${e} `;
95
+ return ` [${n} ${Dt}] - ${e} `;
96
96
  }
97
97
  generateStyle(e) {
98
98
  return le(e.bgColor, e.color);
@@ -126,14 +126,14 @@ class ue {
126
126
  }
127
127
  }
128
128
  class fe extends ue {
129
- _pluginName = Vt;
129
+ _pluginName = Dt;
130
130
  }
131
131
  const he = new fe();
132
- function lt(t) {
132
+ function ut(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
135
  const wt = "PluginSubscription";
136
- class pe extends Dt {
136
+ class pe extends Vt {
137
137
  _className = wt;
138
138
  _pluginDebug;
139
139
  _resetStoreCallback = [];
@@ -145,7 +145,7 @@ class pe extends Dt {
145
145
  this._subscribers = e;
146
146
  }
147
147
  get subscriptions() {
148
- if (!lt(this._subscriptions))
148
+ if (!ut(this._subscriptions))
149
149
  return this._subscriptions;
150
150
  }
151
151
  constructor(e, n) {
@@ -172,44 +172,44 @@ class pe extends Dt {
172
172
  ]);
173
173
  try {
174
174
  this._subscribers.forEach(
175
- (s) => {
176
- this._subscribersDelivered.has(`${s.name}-${e.$id}`) || s.invoke(
175
+ (r) => {
176
+ this._subscribersDelivered.has(`${r.name}-${e.$id}`) || r.invoke(
177
177
  { store: e, options: n },
178
- this.definePluginDebug(s)
179
- ) && (this._subscribersDelivered.add(`${s.name}-${e.$id}`), s.subscriptions && this.subscriptionDelivery({ store: e, options: n }, s.subscriptions), s.storeMutationSubscription && this.storeMutationSubscription(s.storeMutationSubscription), s.storeOnActionSubscription && this.storeOnActionSubscription(s.storeOnActionSubscription), s.resetStoreCallback && this.addResetStoreCallback(s.resetStoreCallback));
178
+ this.definePluginDebug(r)
179
+ ) && (this._subscribersDelivered.add(`${r.name}-${e.$id}`), r.subscriptions && this.subscriptionDelivery({ store: e, options: n }, r.subscriptions), r.storeMutationSubscription && this.storeMutationSubscription(r.storeMutationSubscription), r.storeOnActionSubscription && this.storeOnActionSubscription(r.storeOnActionSubscription), r.resetStoreCallback && this.addResetStoreCallback(r.resetStoreCallback));
180
180
  }
181
181
  ), this.rewriteResetStore({ store: e }, JSON.stringify(e.$state), Object.assign({}, e));
182
- } catch (s) {
183
- this.logError(s, e, n);
182
+ } catch (r) {
183
+ this.logError(r, e, n);
184
184
  }
185
185
  }
186
186
  }
187
- rewriteResetStore({ store: e }, n, s) {
187
+ rewriteResetStore({ store: e }, n, r) {
188
188
  e.$reset = () => {
189
- this.debugLog("rewriteResetStore()", { initState: n, store: e, customStore: s }), this.executeResetStoreCallbacks(e), e.$patch(JSON.parse(n));
189
+ this.debugLog("rewriteResetStore()", { initState: n, store: e, customStore: r }), this.executeResetStoreCallbacks(e), e.$patch(JSON.parse(n));
190
190
  };
191
191
  }
192
192
  storeOnActionSubscription(e) {
193
- const { store: n, callback: s } = e();
194
- n.$onAction(({ after: r, args: o, name: i }) => {
195
- this.debugLog(`storeOnActionSubscription ${n.$id}`, { after: r, args: o, name: i, store: n }), s({ after: r, args: o, name: i });
193
+ const { store: n, callback: r } = e();
194
+ n.$onAction(({ after: s, args: o, name: i }) => {
195
+ this.debugLog(`storeOnActionSubscription ${n.$id}`, { after: s, args: o, name: i, store: n }), r({ after: s, args: o, name: i });
196
196
  });
197
197
  }
198
198
  storeMutationSubscription(e) {
199
- const { store: n, callback: s } = e();
200
- n.$subscribe((r) => {
201
- this.debugLog(`$subscribe ${n.$id}`, { mutation: r, store: n }), s(r);
199
+ const { store: n, callback: r } = e();
200
+ n.$subscribe((s) => {
201
+ this.debugLog(`$subscribe ${n.$id}`, { mutation: s, store: n }), r(s);
202
202
  });
203
203
  }
204
- subscriptionDelivery({ store: e, options: n }, s) {
205
- Object.entries(s).forEach(([r, o]) => {
204
+ subscriptionDelivery({ store: e, options: n }, r) {
205
+ Object.entries(r).forEach(([s, o]) => {
206
206
  try {
207
- if (this._subscriptionsDelivered.has(`${r}-${e.$id}`))
207
+ if (this._subscriptionsDelivered.has(`${s}-${e.$id}`))
208
208
  return;
209
209
  const { subscription: i, subscriptionOptions: c, stores: a } = o;
210
210
  this.debugLog(`subscriptionDelivery() - store: ${e.$id}`, [
211
211
  "pluginName:",
212
- r,
212
+ s,
213
213
  "subscription:",
214
214
  i,
215
215
  "options:",
@@ -223,14 +223,14 @@ class pe extends Dt {
223
223
  i.invoke(
224
224
  { store: e, options: { ...n, ...u } },
225
225
  this.debug
226
- ), this._subscriptionsDelivered.add(`${r}-${e.$id}`), lt(a) || a?.forEach(
227
- (p) => i.invoke(
226
+ ), this._subscriptionsDelivered.add(`${s}-${e.$id}`), ut(a) || a?.forEach(
227
+ (f) => i.invoke(
228
228
  {
229
- store: p,
229
+ store: f,
230
230
  options: {
231
231
  ...n,
232
232
  ...u,
233
- ...p?.storeOptions ?? {}
233
+ ...f?.storeOptions ?? {}
234
234
  }
235
235
  },
236
236
  this.debug
@@ -248,80 +248,80 @@ function de(t) {
248
248
  for (const n of t.split(",")) e[n] = 1;
249
249
  return (n) => n in e;
250
250
  }
251
- const at = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
251
+ const ft = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
252
252
  process.env.NODE_ENV !== "production" && Object.freeze([]);
253
253
  const xt = () => {
254
254
  }, _e = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
255
- (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), F = Object.assign, ge = Object.prototype.hasOwnProperty, ut = (t, e) => ge.call(t, e), d = Array.isArray, K = (t) => Tt(t) === "[object Map]", A = (t) => typeof t == "function", N = (t) => typeof t == "string", U = (t) => typeof t == "symbol", _ = (t) => t !== null && typeof t == "object", be = Object.prototype.toString, Tt = (t) => be.call(t), Mt = (t) => Tt(t).slice(8, -1), Z = (t) => N(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, me = (t) => {
255
+ (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), ge = (t) => t.startsWith("onUpdate:"), D = Object.assign, be = Object.prototype.hasOwnProperty, ht = (t, e) => be.call(t, e), d = Array.isArray, H = (t) => Tt(t) === "[object Map]", I = (t) => typeof t == "function", v = (t) => typeof t == "string", V = (t) => typeof t == "symbol", _ = (t) => t !== null && typeof t == "object", me = Object.prototype.toString, Tt = (t) => me.call(t), Mt = (t) => Tt(t).slice(8, -1), et = (t) => v(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, ye = (t) => {
256
256
  const e = /* @__PURE__ */ Object.create(null);
257
257
  return ((n) => e[n] || (e[n] = t(n)));
258
- }, ye = me((t) => t.charAt(0).toUpperCase() + t.slice(1)), dt = (t, e) => !Object.is(t, e);
258
+ }, Se = ye((t) => t.charAt(0).toUpperCase() + t.slice(1)), L = (t, e) => !Object.is(t, e);
259
259
  let Nt;
260
- const tt = () => Nt || (Nt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
261
- function _t(t) {
260
+ const nt = () => Nt || (Nt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
261
+ function gt(t) {
262
262
  if (d(t)) {
263
263
  const e = {};
264
264
  for (let n = 0; n < t.length; n++) {
265
- const s = t[n], r = N(s) ? we(s) : _t(s);
266
- if (r)
267
- for (const o in r)
268
- e[o] = r[o];
265
+ const r = t[n], s = v(r) ? Ne(r) : gt(r);
266
+ if (s)
267
+ for (const o in s)
268
+ e[o] = s[o];
269
269
  }
270
270
  return e;
271
- } else if (N(t) || _(t))
271
+ } else if (v(t) || _(t))
272
272
  return t;
273
273
  }
274
- const Se = /;(?![^(]*\))/g, Ee = /:([^]+)/, Oe = /\/\*[^]*?\*\//g;
275
- function we(t) {
274
+ const Oe = /;(?![^(]*\))/g, Ee = /:([^]+)/, we = /\/\*[^]*?\*\//g;
275
+ function Ne(t) {
276
276
  const e = {};
277
- return t.replace(Oe, "").split(Se).forEach((n) => {
277
+ return t.replace(we, "").split(Oe).forEach((n) => {
278
278
  if (n) {
279
- const s = n.split(Ee);
280
- s.length > 1 && (e[s[0].trim()] = s[1].trim());
279
+ const r = n.split(Ee);
280
+ r.length > 1 && (e[r[0].trim()] = r[1].trim());
281
281
  }
282
282
  }), e;
283
283
  }
284
- function gt(t) {
284
+ function bt(t) {
285
285
  let e = "";
286
- if (N(t))
286
+ if (v(t))
287
287
  e = t;
288
288
  else if (d(t))
289
289
  for (let n = 0; n < t.length; n++) {
290
- const s = gt(t[n]);
291
- s && (e += s + " ");
290
+ const r = bt(t[n]);
291
+ r && (e += r + " ");
292
292
  }
293
293
  else if (_(t))
294
294
  for (const n in t)
295
295
  t[n] && (e += n + " ");
296
296
  return e.trim();
297
297
  }
298
- function M(t, ...e) {
298
+ function F(t, ...e) {
299
299
  console.warn(`[Vue warn] ${t}`, ...e);
300
300
  }
301
- let Pt = 0, et;
302
- function bt() {
301
+ let Pt = 0, st;
302
+ function mt() {
303
303
  Pt++;
304
304
  }
305
- function mt() {
305
+ function yt() {
306
306
  if (--Pt > 0)
307
307
  return;
308
308
  let t;
309
- for (; et; ) {
310
- let e = et;
311
- for (et = void 0; e; ) {
309
+ for (; st; ) {
310
+ let e = st;
311
+ for (st = void 0; e; ) {
312
312
  const n = e.next;
313
313
  if (e.next = void 0, e.flags &= -9, e.flags & 1)
314
314
  try {
315
315
  e.trigger();
316
- } catch (s) {
317
- t || (t = s);
316
+ } catch (r) {
317
+ t || (t = r);
318
318
  }
319
319
  e = n;
320
320
  }
321
321
  }
322
322
  if (t) throw t;
323
323
  }
324
- class Ne {
324
+ class ve {
325
325
  // TODO isolatedDeclarations "__v_skip"
326
326
  constructor(e) {
327
327
  this.computed = e, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
@@ -332,12 +332,12 @@ class Ne {
332
332
  this.version++, this.notify(e);
333
333
  }
334
334
  notify(e) {
335
- bt();
335
+ mt();
336
336
  try {
337
337
  if (process.env.NODE_ENV !== "production")
338
338
  for (let n = this.subsHead; n; n = n.nextSub)
339
339
  n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
340
- F(
340
+ D(
341
341
  {
342
342
  effect: n.sub
343
343
  },
@@ -347,18 +347,18 @@ class Ne {
347
347
  for (let n = this.subs; n; n = n.prevSub)
348
348
  n.sub.notify() && n.sub.dep.notify();
349
349
  } finally {
350
- mt();
350
+ yt();
351
351
  }
352
352
  }
353
353
  }
354
- const Ft = /* @__PURE__ */ new WeakMap(), nt = Symbol(
354
+ const Ft = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ Symbol(
355
355
  process.env.NODE_ENV !== "production" ? "Object iterate" : ""
356
- ), vt = Symbol(
356
+ ), vt = /* @__PURE__ */ Symbol(
357
357
  process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
358
- ), Rt = Symbol(
358
+ ), Rt = /* @__PURE__ */ Symbol(
359
359
  process.env.NODE_ENV !== "production" ? "Array iterate" : ""
360
360
  );
361
- function I(t, e, n, s, r, o) {
361
+ function A(t, e, n, r, s, o) {
362
362
  const i = Ft.get(t);
363
363
  if (!i)
364
364
  return;
@@ -367,126 +367,126 @@ function I(t, e, n, s, r, o) {
367
367
  target: t,
368
368
  type: e,
369
369
  key: n,
370
- newValue: s,
371
- oldValue: r,
370
+ newValue: r,
371
+ oldValue: s,
372
372
  oldTarget: o
373
373
  }) : a.trigger());
374
374
  };
375
- if (bt(), e === "clear")
375
+ if (mt(), e === "clear")
376
376
  i.forEach(c);
377
377
  else {
378
- const a = d(t), u = a && Z(n);
378
+ const a = d(t), u = a && et(n);
379
379
  if (a && n === "length") {
380
- const p = Number(s);
380
+ const f = Number(r);
381
381
  i.forEach((l, h) => {
382
- (h === "length" || h === Rt || !U(h) && h >= p) && c(l);
382
+ (h === "length" || h === Rt || !V(h) && h >= f) && c(l);
383
383
  });
384
384
  } else
385
385
  switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(Rt)), e) {
386
386
  case "add":
387
- a ? u && c(i.get("length")) : (c(i.get(nt)), K(t) && c(i.get(vt)));
387
+ a ? u && c(i.get("length")) : (c(i.get(rt)), H(t) && c(i.get(vt)));
388
388
  break;
389
389
  case "delete":
390
- a || (c(i.get(nt)), K(t) && c(i.get(vt)));
390
+ a || (c(i.get(rt)), H(t) && c(i.get(vt)));
391
391
  break;
392
392
  case "set":
393
- K(t) && c(i.get(nt));
393
+ H(t) && c(i.get(rt));
394
394
  break;
395
395
  }
396
396
  }
397
- mt();
397
+ yt();
398
398
  }
399
- function ve(t, e) {
399
+ function Re(t, e) {
400
400
  const n = Ft.get(t);
401
401
  return n && n.get(e);
402
402
  }
403
- function D(t) {
404
- const e = f(t);
405
- return e === t || y(t) ? e : e.map(v);
403
+ function x(t) {
404
+ const e = /* @__PURE__ */ p(t);
405
+ return e === t || /* @__PURE__ */ y(t) ? e : e.map(R);
406
406
  }
407
- function yt(t) {
408
- return t = f(t), t;
407
+ function St(t) {
408
+ return t = /* @__PURE__ */ p(t), t;
409
409
  }
410
- function R(t, e) {
411
- return E(t) ? St(t) ? L(v(e)) : L(e) : v(e);
410
+ function O(t, e) {
411
+ return /* @__PURE__ */ E(t) ? z(/* @__PURE__ */ Ot(t) ? R(e) : e) : R(e);
412
412
  }
413
- const Re = {
413
+ const Ce = {
414
414
  __proto__: null,
415
415
  [Symbol.iterator]() {
416
- return rt(this, Symbol.iterator, (t) => R(this, t));
416
+ return ot(this, Symbol.iterator, (t) => O(this, t));
417
417
  },
418
418
  concat(...t) {
419
- return D(this).concat(
420
- ...t.map((e) => d(e) ? D(e) : e)
419
+ return x(this).concat(
420
+ ...t.map((e) => d(e) ? x(e) : e)
421
421
  );
422
422
  },
423
423
  entries() {
424
- return rt(this, "entries", (t) => (t[1] = R(this, t[1]), t));
424
+ return ot(this, "entries", (t) => (t[1] = O(this, t[1]), t));
425
425
  },
426
426
  every(t, e) {
427
- return O(this, "every", t, e, void 0, arguments);
427
+ return w(this, "every", t, e, void 0, arguments);
428
428
  },
429
429
  filter(t, e) {
430
- return O(
430
+ return w(
431
431
  this,
432
432
  "filter",
433
433
  t,
434
434
  e,
435
- (n) => n.map((s) => R(this, s)),
435
+ (n) => n.map((r) => O(this, r)),
436
436
  arguments
437
437
  );
438
438
  },
439
439
  find(t, e) {
440
- return O(
440
+ return w(
441
441
  this,
442
442
  "find",
443
443
  t,
444
444
  e,
445
- (n) => R(this, n),
445
+ (n) => O(this, n),
446
446
  arguments
447
447
  );
448
448
  },
449
449
  findIndex(t, e) {
450
- return O(this, "findIndex", t, e, void 0, arguments);
450
+ return w(this, "findIndex", t, e, void 0, arguments);
451
451
  },
452
452
  findLast(t, e) {
453
- return O(
453
+ return w(
454
454
  this,
455
455
  "findLast",
456
456
  t,
457
457
  e,
458
- (n) => R(this, n),
458
+ (n) => O(this, n),
459
459
  arguments
460
460
  );
461
461
  },
462
462
  findLastIndex(t, e) {
463
- return O(this, "findLastIndex", t, e, void 0, arguments);
463
+ return w(this, "findLastIndex", t, e, void 0, arguments);
464
464
  },
465
465
  // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
466
466
  forEach(t, e) {
467
- return O(this, "forEach", t, e, void 0, arguments);
467
+ return w(this, "forEach", t, e, void 0, arguments);
468
468
  },
469
469
  includes(...t) {
470
- return st(this, "includes", t);
470
+ return it(this, "includes", t);
471
471
  },
472
472
  indexOf(...t) {
473
- return st(this, "indexOf", t);
473
+ return it(this, "indexOf", t);
474
474
  },
475
475
  join(t) {
476
- return D(this).join(t);
476
+ return x(this).join(t);
477
477
  },
478
478
  // keys() iterator only reads `length`, no optimization required
479
479
  lastIndexOf(...t) {
480
- return st(this, "lastIndexOf", t);
480
+ return it(this, "lastIndexOf", t);
481
481
  },
482
482
  map(t, e) {
483
- return O(this, "map", t, e, void 0, arguments);
483
+ return w(this, "map", t, e, void 0, arguments);
484
484
  },
485
485
  pop() {
486
- return j(this, "pop");
486
+ return K(this, "pop");
487
487
  },
488
488
  push(...t) {
489
- return j(this, "push", t);
489
+ return K(this, "push", t);
490
490
  },
491
491
  reduce(t, ...e) {
492
492
  return Ct(this, "reduce", t, e);
@@ -495,102 +495,104 @@ const Re = {
495
495
  return Ct(this, "reduceRight", t, e);
496
496
  },
497
497
  shift() {
498
- return j(this, "shift");
498
+ return K(this, "shift");
499
499
  },
500
500
  // slice could use ARRAY_ITERATE but also seems to beg for range tracking
501
501
  some(t, e) {
502
- return O(this, "some", t, e, void 0, arguments);
502
+ return w(this, "some", t, e, void 0, arguments);
503
503
  },
504
504
  splice(...t) {
505
- return j(this, "splice", t);
505
+ return K(this, "splice", t);
506
506
  },
507
507
  toReversed() {
508
- return D(this).toReversed();
508
+ return x(this).toReversed();
509
509
  },
510
510
  toSorted(t) {
511
- return D(this).toSorted(t);
511
+ return x(this).toSorted(t);
512
512
  },
513
513
  toSpliced(...t) {
514
- return D(this).toSpliced(...t);
514
+ return x(this).toSpliced(...t);
515
515
  },
516
516
  unshift(...t) {
517
- return j(this, "unshift", t);
517
+ return K(this, "unshift", t);
518
518
  },
519
519
  values() {
520
- return rt(this, "values", (t) => R(this, t));
520
+ return ot(this, "values", (t) => O(this, t));
521
521
  }
522
522
  };
523
- function rt(t, e, n) {
524
- const s = yt(t), r = s[e]();
525
- return s !== t && !y(t) && (r._next = r.next, r.next = () => {
526
- const o = r._next();
523
+ function ot(t, e, n) {
524
+ const r = St(t), s = r[e]();
525
+ return r !== t && !/* @__PURE__ */ y(t) && (s._next = s.next, s.next = () => {
526
+ const o = s._next();
527
527
  return o.done || (o.value = n(o.value)), o;
528
- }), r;
528
+ }), s;
529
529
  }
530
- const Ce = Array.prototype;
531
- function O(t, e, n, s, r, o) {
532
- const i = yt(t), c = i !== t && !y(t), a = i[e];
533
- if (a !== Ce[e]) {
530
+ const Ae = Array.prototype;
531
+ function w(t, e, n, r, s, o) {
532
+ const i = St(t), c = i !== t && !/* @__PURE__ */ y(t), a = i[e];
533
+ if (a !== Ae[e]) {
534
534
  const l = a.apply(t, o);
535
- return c ? v(l) : l;
535
+ return c ? R(l) : l;
536
536
  }
537
537
  let u = n;
538
538
  i !== t && (c ? u = function(l, h) {
539
- return n.call(this, R(t, l), h, t);
539
+ return n.call(this, O(t, l), h, t);
540
540
  } : n.length > 2 && (u = function(l, h) {
541
541
  return n.call(this, l, h, t);
542
542
  }));
543
- const p = a.call(i, u, s);
544
- return c && r ? r(p) : p;
545
- }
546
- function Ct(t, e, n, s) {
547
- const r = yt(t);
548
- let o = n;
549
- return r !== t && (y(t) ? n.length > 3 && (o = function(i, c, a) {
550
- return n.call(this, i, c, a, t);
551
- }) : o = function(i, c, a) {
552
- return n.call(this, i, R(t, c), a, t);
553
- }), r[e](o, ...s);
554
- }
555
- function st(t, e, n) {
556
- const s = f(t), r = s[e](...n);
557
- return (r === -1 || r === !1) && H(n[0]) ? (n[0] = f(n[0]), s[e](...n)) : r;
558
- }
559
- function j(t, e, n = []) {
560
- bt();
561
- const s = f(t)[e].apply(t, n);
562
- return mt(), s;
543
+ const f = a.call(i, u, r);
544
+ return c && s ? s(f) : f;
545
+ }
546
+ function Ct(t, e, n, r) {
547
+ const s = St(t), o = s !== t && !/* @__PURE__ */ y(t);
548
+ let i = n, c = !1;
549
+ s !== t && (o ? (c = r.length === 0, i = function(u, f, l) {
550
+ return c && (c = !1, u = O(t, u)), n.call(this, u, O(t, f), l, t);
551
+ }) : n.length > 3 && (i = function(u, f, l) {
552
+ return n.call(this, u, f, l, t);
553
+ }));
554
+ const a = s[e](i, ...r);
555
+ return c ? O(t, a) : a;
556
+ }
557
+ function it(t, e, n) {
558
+ const r = /* @__PURE__ */ p(t), s = r[e](...n);
559
+ return (s === -1 || s === !1) && /* @__PURE__ */ W(n[0]) ? (n[0] = /* @__PURE__ */ p(n[0]), r[e](...n)) : s;
560
+ }
561
+ function K(t, e, n = []) {
562
+ mt();
563
+ const r = (/* @__PURE__ */ p(t))[e].apply(t, n);
564
+ return yt(), r;
563
565
  }
564
566
  const Ie = /* @__PURE__ */ de("__proto__,__v_isRef,__isVue"), kt = new Set(
565
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(U)
567
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(V)
566
568
  );
567
- function Ae(t) {
568
- return U(t) || (t = String(t)), f(this).hasOwnProperty(t);
569
+ function $e(t) {
570
+ return V(t) || (t = String(t)), (/* @__PURE__ */ p(this)).hasOwnProperty(t);
569
571
  }
570
572
  class jt {
571
573
  constructor(e = !1, n = !1) {
572
574
  this._isReadonly = e, this._isShallow = n;
573
575
  }
574
- get(e, n, s) {
576
+ get(e, n, r) {
575
577
  if (n === "__v_skip") return e.__v_skip;
576
- const r = this._isReadonly, o = this._isShallow;
578
+ const s = this._isReadonly, o = this._isShallow;
577
579
  if (n === "__v_isReactive")
578
- return !r;
580
+ return !s;
579
581
  if (n === "__v_isReadonly")
580
- return r;
582
+ return s;
581
583
  if (n === "__v_isShallow")
582
584
  return o;
583
585
  if (n === "__v_raw")
584
- return s === (r ? o ? je : Lt : o ? ke : Ht).get(e) || // receiver is not the reactive proxy, but has the same prototype
586
+ return r === (s ? o ? Ke : Lt : o ? je : Ht).get(e) || // receiver is not the reactive proxy, but has the same prototype
585
587
  // this means the receiver is a user proxy of the reactive proxy
586
- Object.getPrototypeOf(e) === Object.getPrototypeOf(s) ? e : void 0;
588
+ Object.getPrototypeOf(e) === Object.getPrototypeOf(r) ? e : void 0;
587
589
  const i = d(e);
588
- if (!r) {
590
+ if (!s) {
589
591
  let a;
590
- if (i && (a = Re[n]))
592
+ if (i && (a = Ce[n]))
591
593
  return a;
592
594
  if (n === "hasOwnProperty")
593
- return Ae;
595
+ return $e;
594
596
  }
595
597
  const c = Reflect.get(
596
598
  e,
@@ -598,47 +600,47 @@ class jt {
598
600
  // if this is a proxy wrapping a ref, return methods using the raw ref
599
601
  // as receiver so that we don't have to call `toRaw` on the ref in all
600
602
  // its class methods
601
- g(e) ? e : s
603
+ /* @__PURE__ */ g(e) ? e : r
602
604
  );
603
- if ((U(n) ? kt.has(n) : Ie(n)) || o)
605
+ if ((V(n) ? kt.has(n) : Ie(n)) || o)
604
606
  return c;
605
- if (g(c)) {
606
- const a = i && Z(n) ? c : c.value;
607
- return r && _(a) ? ht(a) : a;
607
+ if (/* @__PURE__ */ g(c)) {
608
+ const a = i && et(n) ? c : c.value;
609
+ return s && _(a) ? /* @__PURE__ */ dt(a) : a;
608
610
  }
609
- return _(c) ? r ? ht(c) : zt(c) : c;
611
+ return _(c) ? s ? /* @__PURE__ */ dt(c) : /* @__PURE__ */ Wt(c) : c;
610
612
  }
611
613
  }
612
- class $e extends jt {
614
+ class Ve extends jt {
613
615
  constructor(e = !1) {
614
616
  super(!1, e);
615
617
  }
616
- set(e, n, s, r) {
618
+ set(e, n, r, s) {
617
619
  let o = e[n];
618
- const i = d(e) && Z(n);
620
+ const i = d(e) && et(n);
619
621
  if (!this._isShallow) {
620
- const u = E(o);
621
- if (!y(s) && !E(s) && (o = f(o), s = f(s)), !i && g(o) && !g(s))
622
- return u ? (process.env.NODE_ENV !== "production" && M(
622
+ const u = /* @__PURE__ */ E(o);
623
+ if (!/* @__PURE__ */ y(r) && !/* @__PURE__ */ E(r) && (o = /* @__PURE__ */ p(o), r = /* @__PURE__ */ p(r)), !i && /* @__PURE__ */ g(o) && !/* @__PURE__ */ g(r))
624
+ return u ? (process.env.NODE_ENV !== "production" && F(
623
625
  `Set operation on key "${String(n)}" failed: target is readonly.`,
624
626
  e[n]
625
- ), !0) : (o.value = s, !0);
627
+ ), !0) : (o.value = r, !0);
626
628
  }
627
- const c = i ? Number(n) < e.length : ut(e, n), a = Reflect.set(
629
+ const c = i ? Number(n) < e.length : ht(e, n), a = Reflect.set(
628
630
  e,
629
631
  n,
630
- s,
631
- g(e) ? e : r
632
+ r,
633
+ /* @__PURE__ */ g(e) ? e : s
632
634
  );
633
- return e === f(r) && (c ? dt(s, o) && I(e, "set", n, s, o) : I(e, "add", n, s)), a;
635
+ return e === /* @__PURE__ */ p(s) && a && (c ? L(r, o) && A(e, "set", n, r, o) : A(e, "add", n, r)), a;
634
636
  }
635
637
  deleteProperty(e, n) {
636
- const s = ut(e, n), r = e[n], o = Reflect.deleteProperty(e, n);
637
- return o && s && I(e, "delete", n, void 0, r), o;
638
+ const r = ht(e, n), s = e[n], o = Reflect.deleteProperty(e, n);
639
+ return o && r && A(e, "delete", n, void 0, s), o;
638
640
  }
639
641
  has(e, n) {
640
- const s = Reflect.has(e, n);
641
- return !U(n) || kt.has(n), s;
642
+ const r = Reflect.has(e, n);
643
+ return !V(n) || kt.has(n), r;
642
644
  }
643
645
  ownKeys(e) {
644
646
  return Reflect.ownKeys(e);
@@ -649,109 +651,103 @@ class De extends jt {
649
651
  super(!0, e);
650
652
  }
651
653
  set(e, n) {
652
- return process.env.NODE_ENV !== "production" && M(
654
+ return process.env.NODE_ENV !== "production" && F(
653
655
  `Set operation on key "${String(n)}" failed: target is readonly.`,
654
656
  e
655
657
  ), !0;
656
658
  }
657
659
  deleteProperty(e, n) {
658
- return process.env.NODE_ENV !== "production" && M(
660
+ return process.env.NODE_ENV !== "production" && F(
659
661
  `Delete operation on key "${String(n)}" failed: target is readonly.`,
660
662
  e
661
663
  ), !0;
662
664
  }
663
665
  }
664
- const Ve = /* @__PURE__ */ new $e(), xe = /* @__PURE__ */ new De(), ft = (t) => t, W = (t) => Reflect.getPrototypeOf(t);
665
- function Te(t, e, n) {
666
- return function(...s) {
667
- const r = this.__v_raw, o = f(r), i = K(o), c = t === "entries" || t === Symbol.iterator && i, a = r[t](...s), u = n ? ft : e ? L : v;
668
- return {
669
- // iterator protocol
670
- next() {
671
- const { value: p, done: l } = a.next();
672
- return l ? { value: p, done: l } : {
673
- value: c ? [u(p[0]), u(p[1])] : u(p),
674
- done: l
675
- };
676
- },
677
- // iterable protocol
678
- [Symbol.iterator]() {
679
- return this;
666
+ const xe = /* @__PURE__ */ new Ve(), Te = /* @__PURE__ */ new De(), pt = (t) => t, q = (t) => Reflect.getPrototypeOf(t);
667
+ function Me(t, e, n) {
668
+ return function(...r) {
669
+ const s = this.__v_raw, i = H(/* @__PURE__ */ p(s)), c = t === "entries" || t === Symbol.iterator && i, a = s[t](...r), u = n ? pt : e ? z : R;
670
+ return D(
671
+ // inheriting all iterator properties
672
+ Object.create(a),
673
+ {
674
+ // iterator protocol
675
+ next() {
676
+ const { value: f, done: l } = a.next();
677
+ return l ? { value: f, done: l } : {
678
+ value: c ? [u(f[0]), u(f[1])] : u(f),
679
+ done: l
680
+ };
681
+ }
680
682
  }
681
- };
683
+ );
682
684
  };
683
685
  }
684
- function q(t) {
686
+ function J(t) {
685
687
  return function(...e) {
686
688
  if (process.env.NODE_ENV !== "production") {
687
689
  const n = e[0] ? `on key "${e[0]}" ` : "";
688
- M(
689
- `${ye(t)} operation ${n}failed: target is readonly.`,
690
- f(this)
690
+ F(
691
+ `${Se(t)} operation ${n}failed: target is readonly.`,
692
+ /* @__PURE__ */ p(this)
691
693
  );
692
694
  }
693
695
  return t === "delete" ? !1 : t === "clear" ? void 0 : this;
694
696
  };
695
697
  }
696
- function Me(t, e) {
698
+ function Pe(t, e) {
697
699
  const n = {
698
- get(r) {
699
- const o = this.__v_raw, i = f(o), c = f(r), { has: a } = W(i), u = e ? ft : t ? L : v;
700
- if (a.call(i, r))
701
- return u(o.get(r));
700
+ get(s) {
701
+ const o = this.__v_raw, i = /* @__PURE__ */ p(o), c = /* @__PURE__ */ p(s), { has: a } = q(i), u = e ? pt : t ? z : R;
702
+ if (a.call(i, s))
703
+ return u(o.get(s));
702
704
  if (a.call(i, c))
703
705
  return u(o.get(c));
704
- o !== i && o.get(r);
706
+ o !== i && o.get(s);
705
707
  },
706
708
  get size() {
707
- const r = this.__v_raw;
708
- return !t && (f(r), void 0), r.size;
709
+ return this.__v_raw.size;
709
710
  },
710
- has(r) {
711
- const o = this.__v_raw;
712
- f(o);
713
- const i = f(r);
714
- return r === i ? o.has(r) : o.has(r) || o.has(i);
711
+ has(s) {
712
+ const o = this.__v_raw, i = /* @__PURE__ */ p(s);
713
+ return s === i ? o.has(s) : o.has(s) || o.has(i);
715
714
  },
716
- forEach(r, o) {
717
- const i = this, c = i.__v_raw;
718
- f(c);
719
- const a = e ? ft : t ? L : v;
720
- return c.forEach((u, p) => r.call(o, a(u), a(p), i));
715
+ forEach(s, o) {
716
+ const i = this, c = i.__v_raw, a = e ? pt : t ? z : R;
717
+ return c.forEach((u, f) => s.call(o, a(u), a(f), i));
721
718
  }
722
719
  };
723
- return F(
720
+ return D(
724
721
  n,
725
722
  t ? {
726
- add: q("add"),
727
- set: q("set"),
728
- delete: q("delete"),
729
- clear: q("clear")
723
+ add: J("add"),
724
+ set: J("set"),
725
+ delete: J("delete"),
726
+ clear: J("clear")
730
727
  } : {
731
- add(r) {
732
- !e && !y(r) && !E(r) && (r = f(r));
733
- const o = f(this);
734
- return W(o).has.call(o, r) || (o.add(r), I(o, "add", r, r)), this;
728
+ add(s) {
729
+ const o = /* @__PURE__ */ p(this), i = q(o), c = /* @__PURE__ */ p(s), a = !e && !/* @__PURE__ */ y(s) && !/* @__PURE__ */ E(s) ? c : s;
730
+ return i.has.call(o, a) || L(s, a) && i.has.call(o, s) || L(c, a) && i.has.call(o, c) || (o.add(a), A(o, "add", a, a)), this;
735
731
  },
736
- set(r, o) {
737
- !e && !y(o) && !E(o) && (o = f(o));
738
- const i = f(this), { has: c, get: a } = W(i);
739
- let u = c.call(i, r);
740
- u ? process.env.NODE_ENV !== "production" && It(i, c, r) : (r = f(r), u = c.call(i, r));
741
- const p = a.call(i, r);
742
- return i.set(r, o), u ? dt(o, p) && I(i, "set", r, o, p) : I(i, "add", r, o), this;
732
+ set(s, o) {
733
+ !e && !/* @__PURE__ */ y(o) && !/* @__PURE__ */ E(o) && (o = /* @__PURE__ */ p(o));
734
+ const i = /* @__PURE__ */ p(this), { has: c, get: a } = q(i);
735
+ let u = c.call(i, s);
736
+ u ? process.env.NODE_ENV !== "production" && At(i, c, s) : (s = /* @__PURE__ */ p(s), u = c.call(i, s));
737
+ const f = a.call(i, s);
738
+ return i.set(s, o), u ? L(o, f) && A(i, "set", s, o, f) : A(i, "add", s, o), this;
743
739
  },
744
- delete(r) {
745
- const o = f(this), { has: i, get: c } = W(o);
746
- let a = i.call(o, r);
747
- a ? process.env.NODE_ENV !== "production" && It(o, i, r) : (r = f(r), a = i.call(o, r));
748
- const u = c ? c.call(o, r) : void 0, p = o.delete(r);
749
- return a && I(o, "delete", r, void 0, u), p;
740
+ delete(s) {
741
+ const o = /* @__PURE__ */ p(this), { has: i, get: c } = q(o);
742
+ let a = i.call(o, s);
743
+ a ? process.env.NODE_ENV !== "production" && At(o, i, s) : (s = /* @__PURE__ */ p(s), a = i.call(o, s));
744
+ const u = c ? c.call(o, s) : void 0, f = o.delete(s);
745
+ return a && A(o, "delete", s, void 0, u), f;
750
746
  },
751
747
  clear() {
752
- const r = f(this), o = r.size !== 0, i = process.env.NODE_ENV !== "production" ? K(r) ? new Map(r) : new Set(r) : void 0, c = r.clear();
753
- return o && I(
754
- r,
748
+ const s = /* @__PURE__ */ p(this), o = s.size !== 0, i = process.env.NODE_ENV !== "production" ? H(s) ? new Map(s) : new Set(s) : void 0, c = s.clear();
749
+ return o && A(
750
+ s,
755
751
  "clear",
756
752
  void 0,
757
753
  void 0,
@@ -764,34 +760,34 @@ function Me(t, e) {
764
760
  "values",
765
761
  "entries",
766
762
  Symbol.iterator
767
- ].forEach((r) => {
768
- n[r] = Te(r, t, e);
763
+ ].forEach((s) => {
764
+ n[s] = Me(s, t, e);
769
765
  }), n;
770
766
  }
771
767
  function Kt(t, e) {
772
- const n = Me(t, e);
773
- return (s, r, o) => r === "__v_isReactive" ? !t : r === "__v_isReadonly" ? t : r === "__v_raw" ? s : Reflect.get(
774
- ut(n, r) && r in s ? n : s,
775
- r,
768
+ const n = Pe(t, e);
769
+ return (r, s, o) => s === "__v_isReactive" ? !t : s === "__v_isReadonly" ? t : s === "__v_raw" ? r : Reflect.get(
770
+ ht(n, s) && s in r ? n : r,
771
+ s,
776
772
  o
777
773
  );
778
774
  }
779
- const Pe = {
775
+ const Fe = {
780
776
  get: /* @__PURE__ */ Kt(!1, !1)
781
- }, Fe = {
777
+ }, ke = {
782
778
  get: /* @__PURE__ */ Kt(!0, !1)
783
779
  };
784
- function It(t, e, n) {
785
- const s = f(n);
786
- if (s !== n && e.call(t, s)) {
787
- const r = Mt(t);
788
- M(
789
- `Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
780
+ function At(t, e, n) {
781
+ const r = /* @__PURE__ */ p(n);
782
+ if (r !== n && e.call(t, r)) {
783
+ const s = Mt(t);
784
+ F(
785
+ `Reactive ${s} contains both the raw and reactive versions of the same object${s === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
790
786
  );
791
787
  }
792
788
  }
793
- const Ht = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap();
794
- function Ke(t) {
789
+ const Ht = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap();
790
+ function He(t) {
795
791
  switch (t) {
796
792
  case "Object":
797
793
  case "Array":
@@ -805,77 +801,83 @@ function Ke(t) {
805
801
  return 0;
806
802
  }
807
803
  }
808
- function He(t) {
809
- return t.__v_skip || !Object.isExtensible(t) ? 0 : Ke(Mt(t));
810
- }
811
- function zt(t) {
812
- return E(t) ? t : Ut(
804
+ // @__NO_SIDE_EFFECTS__
805
+ function Wt(t) {
806
+ return /* @__PURE__ */ E(t) ? t : zt(
813
807
  t,
814
808
  !1,
815
- Ve,
816
- Pe,
809
+ xe,
810
+ Fe,
817
811
  Ht
818
812
  );
819
813
  }
820
- function ht(t) {
821
- return Ut(
814
+ // @__NO_SIDE_EFFECTS__
815
+ function dt(t) {
816
+ return zt(
822
817
  t,
823
818
  !0,
824
- xe,
825
- Fe,
819
+ Te,
820
+ ke,
826
821
  Lt
827
822
  );
828
823
  }
829
- function Ut(t, e, n, s, r) {
824
+ function zt(t, e, n, r, s) {
830
825
  if (!_(t))
831
- return process.env.NODE_ENV !== "production" && M(
826
+ return process.env.NODE_ENV !== "production" && F(
832
827
  `value cannot be made ${e ? "readonly" : "reactive"}: ${String(
833
828
  t
834
829
  )}`
835
830
  ), t;
836
- if (t.__v_raw && !(e && t.__v_isReactive))
831
+ if (t.__v_raw && !(e && t.__v_isReactive) || t.__v_skip || !Object.isExtensible(t))
837
832
  return t;
838
- const o = He(t);
839
- if (o === 0)
833
+ const o = s.get(t);
834
+ if (o)
835
+ return o;
836
+ const i = He(Mt(t));
837
+ if (i === 0)
840
838
  return t;
841
- const i = r.get(t);
842
- if (i)
843
- return i;
844
839
  const c = new Proxy(
845
840
  t,
846
- o === 2 ? s : n
841
+ i === 2 ? r : n
847
842
  );
848
- return r.set(t, c), c;
843
+ return s.set(t, c), c;
849
844
  }
850
- function St(t) {
851
- return E(t) ? St(t.__v_raw) : !!(t && t.__v_isReactive);
845
+ // @__NO_SIDE_EFFECTS__
846
+ function Ot(t) {
847
+ return /* @__PURE__ */ E(t) ? /* @__PURE__ */ Ot(t.__v_raw) : !!(t && t.__v_isReactive);
852
848
  }
849
+ // @__NO_SIDE_EFFECTS__
853
850
  function E(t) {
854
851
  return !!(t && t.__v_isReadonly);
855
852
  }
853
+ // @__NO_SIDE_EFFECTS__
856
854
  function y(t) {
857
855
  return !!(t && t.__v_isShallow);
858
856
  }
859
- function H(t) {
857
+ // @__NO_SIDE_EFFECTS__
858
+ function W(t) {
860
859
  return t ? !!t.__v_raw : !1;
861
860
  }
862
- function f(t) {
861
+ // @__NO_SIDE_EFFECTS__
862
+ function p(t) {
863
863
  const e = t && t.__v_raw;
864
- return e ? f(e) : t;
864
+ return e ? /* @__PURE__ */ p(e) : t;
865
865
  }
866
- const v = (t) => _(t) ? zt(t) : t, L = (t) => _(t) ? ht(t) : t;
866
+ const R = (t) => _(t) ? /* @__PURE__ */ Wt(t) : t, z = (t) => _(t) ? /* @__PURE__ */ dt(t) : t;
867
+ // @__NO_SIDE_EFFECTS__
867
868
  function g(t) {
868
869
  return t ? t.__v_isRef === !0 : !1;
869
870
  }
870
- function Wt(t) {
871
+ // @__NO_SIDE_EFFECTS__
872
+ function Ut(t) {
871
873
  return Le(t, !1);
872
874
  }
873
875
  function Le(t, e) {
874
- return g(t) ? t : new ze(t, e);
876
+ return /* @__PURE__ */ g(t) ? t : new We(t, e);
875
877
  }
876
- class ze {
878
+ class We {
877
879
  constructor(e, n) {
878
- this.dep = new Ne(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : f(e), this._value = n ? e : v(e), this.__v_isShallow = n;
880
+ this.dep = new ve(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : /* @__PURE__ */ p(e), this._value = n ? e : R(e), this.__v_isShallow = n;
879
881
  }
880
882
  get value() {
881
883
  return process.env.NODE_ENV !== "production" ? this.dep.track({
@@ -885,8 +887,8 @@ class ze {
885
887
  }) : this.dep.track(), this._value;
886
888
  }
887
889
  set value(e) {
888
- const n = this._rawValue, s = this.__v_isShallow || y(e) || E(e);
889
- e = s ? e : f(e), dt(e, n) && (this._rawValue = e, this._value = s ? e : v(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
890
+ const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ y(e) || /* @__PURE__ */ E(e);
891
+ e = r ? e : /* @__PURE__ */ p(e), L(e, n) && (this._rawValue = e, this._value = r ? e : R(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
890
892
  target: this,
891
893
  type: "set",
892
894
  key: "value",
@@ -895,27 +897,27 @@ class ze {
895
897
  }) : this.dep.trigger());
896
898
  }
897
899
  }
898
- function Ue(t) {
899
- return g(t) ? t.value : t;
900
+ function ze(t) {
901
+ return /* @__PURE__ */ g(t) ? t.value : t;
900
902
  }
901
- class We {
902
- constructor(e, n, s) {
903
- this._object = e, this._key = n, this._defaultValue = s, this.__v_isRef = !0, this._value = void 0, this._raw = f(e);
904
- let r = !0, o = e;
905
- if (!d(e) || !Z(String(n)))
903
+ class Ue {
904
+ constructor(e, n, r) {
905
+ this._object = e, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0, this._key = V(n) ? n : String(n), this._raw = /* @__PURE__ */ p(e);
906
+ let s = !0, o = e;
907
+ if (!d(e) || V(this._key) || !et(this._key))
906
908
  do
907
- r = !H(o) || y(o);
908
- while (r && (o = o.__v_raw));
909
- this._shallow = r;
909
+ s = !/* @__PURE__ */ W(o) || /* @__PURE__ */ y(o);
910
+ while (s && (o = o.__v_raw));
911
+ this._shallow = s;
910
912
  }
911
913
  get value() {
912
914
  let e = this._object[this._key];
913
- return this._shallow && (e = Ue(e)), this._value = e === void 0 ? this._defaultValue : e;
915
+ return this._shallow && (e = ze(e)), this._value = e === void 0 ? this._defaultValue : e;
914
916
  }
915
917
  set value(e) {
916
- if (this._shallow && g(this._raw[this._key])) {
918
+ if (this._shallow && /* @__PURE__ */ g(this._raw[this._key])) {
917
919
  const n = this._object[this._key];
918
- if (g(n)) {
920
+ if (/* @__PURE__ */ g(n)) {
919
921
  n.value = e;
920
922
  return;
921
923
  }
@@ -923,7 +925,7 @@ class We {
923
925
  this._object[this._key] = e;
924
926
  }
925
927
  get dep() {
926
- return ve(this._raw, this._key);
928
+ return Re(this._raw, this._key);
927
929
  }
928
930
  }
929
931
  class qe {
@@ -934,11 +936,12 @@ class qe {
934
936
  return this._value = this._getter();
935
937
  }
936
938
  }
939
+ // @__NO_SIDE_EFFECTS__
937
940
  function Je(t, e, n) {
938
- return g(t) ? t : A(t) ? new qe(t) : _(t) && arguments.length > 1 ? Be(t, e, n) : Wt(t);
941
+ return /* @__PURE__ */ g(t) ? t : I(t) ? new qe(t) : _(t) && arguments.length > 1 ? Be(t, e, n) : /* @__PURE__ */ Ut(t);
939
942
  }
940
943
  function Be(t, e, n) {
941
- return new We(t, e, n);
944
+ return new Ue(t, e, n);
942
945
  }
943
946
  const $ = [];
944
947
  function Ye(t) {
@@ -947,14 +950,14 @@ function Ye(t) {
947
950
  function Ge() {
948
951
  $.pop();
949
952
  }
950
- let ot = !1;
951
- function P(t, ...e) {
952
- if (ot) return;
953
- ot = !0;
954
- const n = $.length ? $[$.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = Qe();
955
- if (s)
953
+ let ct = !1;
954
+ function k(t, ...e) {
955
+ if (ct) return;
956
+ ct = !0;
957
+ const n = $.length ? $[$.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = Qe();
958
+ if (r)
956
959
  Et(
957
- s,
960
+ r,
958
961
  n,
959
962
  11,
960
963
  [
@@ -964,19 +967,19 @@ function P(t, ...e) {
964
967
  return (c = (i = o.toString) == null ? void 0 : i.call(o)) != null ? c : JSON.stringify(o);
965
968
  }).join(""),
966
969
  n && n.proxy,
967
- r.map(
970
+ s.map(
968
971
  ({ vnode: o }) => `at <${ie(n, o.type)}>`
969
972
  ).join(`
970
973
  `),
971
- r
974
+ s
972
975
  ]
973
976
  );
974
977
  else {
975
978
  const o = [`[Vue warn]: ${t}`, ...e];
976
- r.length && o.push(`
977
- `, ...Xe(r)), console.warn(...o);
979
+ s.length && o.push(`
980
+ `, ...Xe(s)), console.warn(...o);
978
981
  }
979
- ot = !1;
982
+ ct = !1;
980
983
  }
981
984
  function Qe() {
982
985
  let t = $[$.length - 1];
@@ -989,34 +992,34 @@ function Qe() {
989
992
  vnode: t,
990
993
  recurseCount: 0
991
994
  });
992
- const s = t.component && t.component.parent;
993
- t = s && s.vnode;
995
+ const r = t.component && t.component.parent;
996
+ t = r && r.vnode;
994
997
  }
995
998
  return e;
996
999
  }
997
1000
  function Xe(t) {
998
1001
  const e = [];
999
- return t.forEach((n, s) => {
1000
- e.push(...s === 0 ? [] : [`
1002
+ return t.forEach((n, r) => {
1003
+ e.push(...r === 0 ? [] : [`
1001
1004
  `], ...Ze(n));
1002
1005
  }), e;
1003
1006
  }
1004
1007
  function Ze({ vnode: t, recurseCount: e }) {
1005
- const n = e > 0 ? `... (${e} recursive calls)` : "", s = t.component ? t.component.parent == null : !1, r = ` at <${ie(
1008
+ const n = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, s = ` at <${ie(
1006
1009
  t.component,
1007
1010
  t.type,
1008
- s
1011
+ r
1009
1012
  )}`, o = ">" + n;
1010
- return t.props ? [r, ...tn(t.props), o] : [r + o];
1013
+ return t.props ? [s, ...tn(t.props), o] : [s + o];
1011
1014
  }
1012
1015
  function tn(t) {
1013
1016
  const e = [], n = Object.keys(t);
1014
- return n.slice(0, 3).forEach((s) => {
1015
- e.push(...qt(s, t[s]));
1017
+ return n.slice(0, 3).forEach((r) => {
1018
+ e.push(...qt(r, t[r]));
1016
1019
  }), n.length > 3 && e.push(" ..."), e;
1017
1020
  }
1018
1021
  function qt(t, e, n) {
1019
- return N(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : g(e) ? (e = qt(t, f(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : A(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = f(e), n ? e : [`${t}=`, e]);
1022
+ return v(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : /* @__PURE__ */ g(e) ? (e = qt(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]);
1020
1023
  }
1021
1024
  const Jt = {
1022
1025
  sp: "serverPrefetch hook",
@@ -1051,23 +1054,23 @@ const Jt = {
1051
1054
  15: "component update",
1052
1055
  16: "app unmount cleanup function"
1053
1056
  };
1054
- function Et(t, e, n, s) {
1057
+ function Et(t, e, n, r) {
1055
1058
  try {
1056
- return s ? t(...s) : t();
1057
- } catch (r) {
1058
- Bt(r, e, n);
1059
+ return r ? t(...r) : t();
1060
+ } catch (s) {
1061
+ Bt(s, e, n);
1059
1062
  }
1060
1063
  }
1061
- function Bt(t, e, n, s = !0) {
1062
- const r = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || at;
1064
+ function Bt(t, e, n, r = !0) {
1065
+ const s = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || ft;
1063
1066
  if (e) {
1064
1067
  let c = e.parent;
1065
1068
  const a = e.proxy, u = process.env.NODE_ENV !== "production" ? Jt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1066
1069
  for (; c; ) {
1067
- const p = c.ec;
1068
- if (p) {
1069
- for (let l = 0; l < p.length; l++)
1070
- if (p[l](t, a, u) === !1)
1070
+ const f = c.ec;
1071
+ if (f) {
1072
+ for (let l = 0; l < f.length; l++)
1073
+ if (f[l](t, a, u) === !1)
1071
1074
  return;
1072
1075
  }
1073
1076
  c = c.parent;
@@ -1081,71 +1084,71 @@ function Bt(t, e, n, s = !0) {
1081
1084
  return;
1082
1085
  }
1083
1086
  }
1084
- en(t, n, r, s, i);
1087
+ en(t, n, s, r, i);
1085
1088
  }
1086
- function en(t, e, n, s = !0, r = !1) {
1089
+ function en(t, e, n, r = !0, s = !1) {
1087
1090
  if (process.env.NODE_ENV !== "production") {
1088
1091
  const o = Jt[e];
1089
- if (n && Ye(n), P(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Ge(), s)
1092
+ if (n && Ye(n), k(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Ge(), r)
1090
1093
  throw t;
1091
1094
  console.error(t);
1092
1095
  } else {
1093
- if (r)
1096
+ if (s)
1094
1097
  throw t;
1095
1098
  console.error(t);
1096
1099
  }
1097
1100
  }
1098
1101
  const m = [];
1099
- let w = -1;
1100
- const T = [];
1101
- let C = null, V = 0;
1102
+ let N = -1;
1103
+ const P = [];
1104
+ let C = null, T = 0;
1102
1105
  const nn = /* @__PURE__ */ Promise.resolve();
1103
- let pt = null;
1104
- const rn = 100;
1105
- function sn(t) {
1106
- let e = w + 1, n = m.length;
1106
+ let _t = null;
1107
+ const sn = 100;
1108
+ function rn(t) {
1109
+ let e = N + 1, n = m.length;
1107
1110
  for (; e < n; ) {
1108
- const s = e + n >>> 1, r = m[s], o = z(r);
1109
- o < t || o === t && r.flags & 2 ? e = s + 1 : n = s;
1111
+ const r = e + n >>> 1, s = m[r], o = U(s);
1112
+ o < t || o === t && s.flags & 2 ? e = r + 1 : n = r;
1110
1113
  }
1111
1114
  return e;
1112
1115
  }
1113
1116
  function on(t) {
1114
1117
  if (!(t.flags & 1)) {
1115
- const e = z(t), n = m[m.length - 1];
1118
+ const e = U(t), n = m[m.length - 1];
1116
1119
  !n || // fast path when the job id is larger than the tail
1117
- !(t.flags & 2) && e >= z(n) ? m.push(t) : m.splice(sn(e), 0, t), t.flags |= 1, Yt();
1120
+ !(t.flags & 2) && e >= U(n) ? m.push(t) : m.splice(rn(e), 0, t), t.flags |= 1, Yt();
1118
1121
  }
1119
1122
  }
1120
1123
  function Yt() {
1121
- pt || (pt = nn.then(Gt));
1124
+ _t || (_t = nn.then(Gt));
1122
1125
  }
1123
1126
  function cn(t) {
1124
- d(t) ? T.push(...t) : C && t.id === -1 ? C.splice(V + 1, 0, t) : t.flags & 1 || (T.push(t), t.flags |= 1), Yt();
1127
+ d(t) ? P.push(...t) : C && t.id === -1 ? C.splice(T + 1, 0, t) : t.flags & 1 || (P.push(t), t.flags |= 1), Yt();
1125
1128
  }
1126
1129
  function ln(t) {
1127
- if (T.length) {
1128
- const e = [...new Set(T)].sort(
1129
- (n, s) => z(n) - z(s)
1130
+ if (P.length) {
1131
+ const e = [...new Set(P)].sort(
1132
+ (n, r) => U(n) - U(r)
1130
1133
  );
1131
- if (T.length = 0, C) {
1134
+ if (P.length = 0, C) {
1132
1135
  C.push(...e);
1133
1136
  return;
1134
1137
  }
1135
- for (C = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), V = 0; V < C.length; V++) {
1136
- const n = C[V];
1138
+ for (C = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), T = 0; T < C.length; T++) {
1139
+ const n = C[T];
1137
1140
  process.env.NODE_ENV !== "production" && Qt(t, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1138
1141
  }
1139
- C = null, V = 0;
1142
+ C = null, T = 0;
1140
1143
  }
1141
1144
  }
1142
- const z = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
1145
+ const U = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
1143
1146
  function Gt(t) {
1144
1147
  process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
1145
1148
  const e = process.env.NODE_ENV !== "production" ? (n) => Qt(t, n) : xt;
1146
1149
  try {
1147
- for (w = 0; w < m.length; w++) {
1148
- const n = m[w];
1150
+ for (N = 0; N < m.length; N++) {
1151
+ const n = m[N];
1149
1152
  if (n && !(n.flags & 8)) {
1150
1153
  if (process.env.NODE_ENV !== "production" && e(n))
1151
1154
  continue;
@@ -1157,123 +1160,123 @@ function Gt(t) {
1157
1160
  }
1158
1161
  }
1159
1162
  } finally {
1160
- for (; w < m.length; w++) {
1161
- const n = m[w];
1163
+ for (; N < m.length; N++) {
1164
+ const n = m[N];
1162
1165
  n && (n.flags &= -2);
1163
1166
  }
1164
- w = -1, m.length = 0, ln(t), pt = null, (m.length || T.length) && Gt(t);
1167
+ N = -1, m.length = 0, ln(t), _t = null, (m.length || P.length) && Gt(t);
1165
1168
  }
1166
1169
  }
1167
1170
  function Qt(t, e) {
1168
1171
  const n = t.get(e) || 0;
1169
- if (n > rn) {
1170
- const s = e.i, r = s && oe(s.type);
1172
+ if (n > sn) {
1173
+ const r = e.i, s = r && oe(r.type);
1171
1174
  return Bt(
1172
- `Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
1175
+ `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.`,
1173
1176
  null,
1174
1177
  10
1175
1178
  ), !0;
1176
1179
  }
1177
1180
  return t.set(e, n + 1), !1;
1178
1181
  }
1179
- const it = /* @__PURE__ */ new Map();
1180
- process.env.NODE_ENV !== "production" && (tt().__VUE_HMR_RUNTIME__ = {
1181
- createRecord: ct(an),
1182
- rerender: ct(un),
1183
- reload: ct(fn)
1182
+ const lt = /* @__PURE__ */ new Map();
1183
+ process.env.NODE_ENV !== "production" && (nt().__VUE_HMR_RUNTIME__ = {
1184
+ createRecord: at(an),
1185
+ rerender: at(un),
1186
+ reload: at(fn)
1184
1187
  });
1185
- const Y = /* @__PURE__ */ new Map();
1188
+ const G = /* @__PURE__ */ new Map();
1186
1189
  function an(t, e) {
1187
- return Y.has(t) ? !1 : (Y.set(t, {
1188
- initialDef: G(e),
1190
+ return G.has(t) ? !1 : (G.set(t, {
1191
+ initialDef: Q(e),
1189
1192
  instances: /* @__PURE__ */ new Set()
1190
1193
  }), !0);
1191
1194
  }
1192
- function G(t) {
1195
+ function Q(t) {
1193
1196
  return ce(t) ? t.__vccOpts : t;
1194
1197
  }
1195
1198
  function un(t, e) {
1196
- const n = Y.get(t);
1197
- n && (n.initialDef.render = e, [...n.instances].forEach((s) => {
1198
- e && (s.render = e, G(s.type).render = e), s.renderCache = [], s.job.flags & 8 || s.update();
1199
+ const n = G.get(t);
1200
+ n && (n.initialDef.render = e, [...n.instances].forEach((r) => {
1201
+ e && (r.render = e, Q(r.type).render = e), r.renderCache = [], r.job.flags & 8 || r.update();
1199
1202
  }));
1200
1203
  }
1201
1204
  function fn(t, e) {
1202
- const n = Y.get(t);
1205
+ const n = G.get(t);
1203
1206
  if (!n) return;
1204
- e = G(e), At(n.initialDef, e);
1205
- const s = [...n.instances];
1206
- for (let r = 0; r < s.length; r++) {
1207
- const o = s[r], i = G(o.type);
1208
- let c = it.get(i);
1209
- c || (i !== n.initialDef && At(i, e), it.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 ? on(() => {
1207
+ e = Q(e), It(n.initialDef, e);
1208
+ const r = [...n.instances];
1209
+ for (let s = 0; s < r.length; s++) {
1210
+ const o = r[s], i = Q(o.type);
1211
+ let c = lt.get(i);
1212
+ c || (i !== n.initialDef && It(i, e), lt.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 ? on(() => {
1210
1213
  o.job.flags & 8 || (o.parent.update(), c.delete(o));
1211
1214
  }) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1212
1215
  "[HMR] Root or manually mounted instance modified. Full reload required."
1213
1216
  ), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
1214
1217
  }
1215
1218
  cn(() => {
1216
- it.clear();
1219
+ lt.clear();
1217
1220
  });
1218
1221
  }
1219
- function At(t, e) {
1220
- F(t, e);
1222
+ function It(t, e) {
1223
+ D(t, e);
1221
1224
  for (const n in t)
1222
1225
  n !== "__file" && !(n in e) && delete t[n];
1223
1226
  }
1224
- function ct(t) {
1227
+ function at(t) {
1225
1228
  return (e, n) => {
1226
1229
  try {
1227
1230
  return t(e, n);
1228
- } catch (s) {
1229
- console.error(s), console.warn(
1231
+ } catch (r) {
1232
+ console.error(r), console.warn(
1230
1233
  "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
1231
1234
  );
1232
1235
  }
1233
1236
  };
1234
1237
  }
1235
- let x, J = [];
1238
+ let M, B = [];
1236
1239
  function Xt(t, e) {
1237
- var n, s;
1238
- x = t, x ? (x.enabled = !0, J.forEach(({ event: r, args: o }) => x.emit(r, ...o)), J = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
1240
+ var n, r;
1241
+ M = t, M ? (M.enabled = !0, B.forEach(({ event: s, args: o }) => M.emit(s, ...o)), B = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
1239
1242
  window.HTMLElement && // also exclude jsdom
1240
1243
  // eslint-disable-next-line no-restricted-syntax
1241
- !((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
1244
+ !((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
1242
1245
  Xt(o, e);
1243
1246
  }), setTimeout(() => {
1244
- x || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, J = []);
1245
- }, 3e3)) : J = [];
1247
+ M || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, B = []);
1248
+ }, 3e3)) : B = [];
1246
1249
  }
1247
- let Q = null, hn = null;
1250
+ let X = null, hn = null;
1248
1251
  const pn = (t) => t.__isTeleport;
1249
1252
  function Zt(t, e) {
1250
1253
  t.shapeFlag & 6 && t.component ? (t.transition = e, Zt(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
1251
1254
  }
1252
- tt().requestIdleCallback;
1253
- tt().cancelIdleCallback;
1254
- const dn = Symbol.for("v-ndc"), _n = {};
1255
- process.env.NODE_ENV !== "production" && (_n.ownKeys = (t) => (P(
1255
+ nt().requestIdleCallback;
1256
+ nt().cancelIdleCallback;
1257
+ const dn = /* @__PURE__ */ Symbol.for("v-ndc"), _n = {};
1258
+ process.env.NODE_ENV !== "production" && (_n.ownKeys = (t) => (k(
1256
1259
  "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1257
1260
  ), Reflect.ownKeys(t)));
1258
- const gn = {}, te = (t) => Object.getPrototypeOf(t) === gn, bn = (t) => t.__isSuspense, ee = Symbol.for("v-fgt"), mn = Symbol.for("v-txt"), yn = Symbol.for("v-cmt");
1261
+ const gn = {}, te = (t) => Object.getPrototypeOf(t) === gn, bn = (t) => t.__isSuspense, ee = /* @__PURE__ */ Symbol.for("v-fgt"), mn = /* @__PURE__ */ Symbol.for("v-txt"), yn = /* @__PURE__ */ Symbol.for("v-cmt");
1259
1262
  function Sn(t) {
1260
1263
  return t ? t.__v_isVNode === !0 : !1;
1261
1264
  }
1262
- const En = (...t) => re(
1265
+ const On = (...t) => se(
1263
1266
  ...t
1264
- ), ne = ({ key: t }) => t ?? null, B = ({
1267
+ ), ne = ({ key: t }) => t ?? null, Y = ({
1265
1268
  ref: t,
1266
1269
  ref_key: e,
1267
1270
  ref_for: n
1268
- }) => (typeof t == "number" && (t = "" + t), t != null ? N(t) || g(t) || A(t) ? { i: Q, r: t, k: e, f: !!n } : t : null);
1269
- function On(t, e = null, n = null, s = 0, r = null, o = t === ee ? 0 : 1, i = !1, c = !1) {
1271
+ }) => (typeof t == "number" && (t = "" + t), t != null ? v(t) || /* @__PURE__ */ g(t) || I(t) ? { i: X, r: t, k: e, f: !!n } : t : null);
1272
+ function En(t, e = null, n = null, r = 0, s = null, o = t === ee ? 0 : 1, i = !1, c = !1) {
1270
1273
  const a = {
1271
1274
  __v_isVNode: !0,
1272
1275
  __v_skip: !0,
1273
1276
  type: t,
1274
1277
  props: e,
1275
1278
  key: e && ne(e),
1276
- ref: e && B(e),
1279
+ ref: e && Y(e),
1277
1280
  scopeId: hn,
1278
1281
  slotScopeIds: null,
1279
1282
  children: n,
@@ -1290,52 +1293,52 @@ function On(t, e = null, n = null, s = 0, r = null, o = t === ee ? 0 : 1, i = !1
1290
1293
  targetAnchor: null,
1291
1294
  staticCount: 0,
1292
1295
  shapeFlag: o,
1293
- patchFlag: s,
1294
- dynamicProps: r,
1296
+ patchFlag: r,
1297
+ dynamicProps: s,
1295
1298
  dynamicChildren: null,
1296
1299
  appContext: null,
1297
- ctx: Q
1300
+ ctx: X
1298
1301
  };
1299
- return c ? (Ot(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= N(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && P("VNode created with invalid key (NaN). VNode type:", a.type), a;
1302
+ return c ? (tt(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= v(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && k("VNode created with invalid key (NaN). VNode type:", a.type), a;
1300
1303
  }
1301
- const wn = process.env.NODE_ENV !== "production" ? En : re;
1302
- function re(t, e = null, n = null, s = 0, r = null, o = !1) {
1303
- if ((!t || t === dn) && (process.env.NODE_ENV !== "production" && !t && P(`Invalid vnode type when creating vnode: ${t}.`), t = yn), Sn(t)) {
1304
- const c = X(
1304
+ const wn = process.env.NODE_ENV !== "production" ? On : se;
1305
+ function se(t, e = null, n = null, r = 0, s = null, o = !1) {
1306
+ if ((!t || t === dn) && (process.env.NODE_ENV !== "production" && !t && k(`Invalid vnode type when creating vnode: ${t}.`), t = yn), Sn(t)) {
1307
+ const c = Z(
1305
1308
  t,
1306
1309
  e,
1307
1310
  !0
1308
1311
  /* mergeRef: true */
1309
1312
  );
1310
- return n && Ot(c, n), c.patchFlag = -2, c;
1313
+ return n && tt(c, n), c.patchFlag = -2, c;
1311
1314
  }
1312
1315
  if (ce(t) && (t = t.__vccOpts), e) {
1313
1316
  e = Nn(e);
1314
1317
  let { class: c, style: a } = e;
1315
- c && !N(c) && (e.class = gt(c)), _(a) && (H(a) && !d(a) && (a = F({}, a)), e.style = _t(a));
1318
+ c && !v(c) && (e.class = bt(c)), _(a) && (/* @__PURE__ */ W(a) && !d(a) && (a = D({}, a)), e.style = gt(a));
1316
1319
  }
1317
- const i = N(t) ? 1 : bn(t) ? 128 : pn(t) ? 64 : _(t) ? 4 : A(t) ? 2 : 0;
1318
- return process.env.NODE_ENV !== "production" && i & 4 && H(t) && (t = f(t), P(
1320
+ const i = v(t) ? 1 : bn(t) ? 128 : pn(t) ? 64 : _(t) ? 4 : I(t) ? 2 : 0;
1321
+ return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ W(t) && (t = /* @__PURE__ */ p(t), k(
1319
1322
  "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`.",
1320
1323
  `
1321
1324
  Component that was made reactive: `,
1322
1325
  t
1323
- )), On(
1326
+ )), En(
1324
1327
  t,
1325
1328
  e,
1326
1329
  n,
1327
- s,
1328
1330
  r,
1331
+ s,
1329
1332
  i,
1330
1333
  o,
1331
1334
  !0
1332
1335
  );
1333
1336
  }
1334
1337
  function Nn(t) {
1335
- return t ? H(t) || te(t) ? F({}, t) : t : null;
1338
+ return t ? /* @__PURE__ */ W(t) || te(t) ? D({}, t) : t : null;
1336
1339
  }
1337
- function X(t, e, n = !1, s = !1) {
1338
- const { props: r, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ? Rn(r || {}, e) : r, p = {
1340
+ function Z(t, e, n = !1, r = !1) {
1341
+ const { props: s, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ? Rn(s || {}, e) : s, f = {
1339
1342
  __v_isVNode: !0,
1340
1343
  __v_skip: !0,
1341
1344
  type: t.type,
@@ -1345,11 +1348,11 @@ function X(t, e, n = !1, s = !1) {
1345
1348
  // #2078 in the case of <component :is="vnode" ref="extra"/>
1346
1349
  // if the vnode itself already has a ref, cloneVNode will need to merge
1347
1350
  // the refs so the single vnode can be set on multiple refs
1348
- n && o ? d(o) ? o.concat(B(e)) : [o, B(e)] : B(e)
1351
+ n && o ? d(o) ? o.concat(Y(e)) : [o, Y(e)] : Y(e)
1349
1352
  ) : o,
1350
1353
  scopeId: t.scopeId,
1351
1354
  slotScopeIds: t.slotScopeIds,
1352
- children: process.env.NODE_ENV !== "production" && i === -1 && d(c) ? c.map(se) : c,
1355
+ children: process.env.NODE_ENV !== "production" && i === -1 && d(c) ? c.map(re) : c,
1353
1356
  target: t.target,
1354
1357
  targetStart: t.targetStart,
1355
1358
  targetAnchor: t.targetAnchor,
@@ -1371,64 +1374,73 @@ function X(t, e, n = !1, s = !1) {
1371
1374
  // they will simply be overwritten.
1372
1375
  component: t.component,
1373
1376
  suspense: t.suspense,
1374
- ssContent: t.ssContent && X(t.ssContent),
1375
- ssFallback: t.ssFallback && X(t.ssFallback),
1377
+ ssContent: t.ssContent && Z(t.ssContent),
1378
+ ssFallback: t.ssFallback && Z(t.ssFallback),
1376
1379
  placeholder: t.placeholder,
1377
1380
  el: t.el,
1378
1381
  anchor: t.anchor,
1379
1382
  ctx: t.ctx,
1380
1383
  ce: t.ce
1381
1384
  };
1382
- return a && s && Zt(
1383
- p,
1384
- a.clone(p)
1385
- ), p;
1385
+ return a && r && Zt(
1386
+ f,
1387
+ a.clone(f)
1388
+ ), f;
1386
1389
  }
1387
- function se(t) {
1388
- const e = X(t);
1389
- return d(t.children) && (e.children = t.children.map(se)), e;
1390
+ function re(t) {
1391
+ const e = Z(t);
1392
+ return d(t.children) && (e.children = t.children.map(re)), e;
1390
1393
  }
1391
1394
  function vn(t = " ", e = 0) {
1392
1395
  return wn(mn, null, t, e);
1393
1396
  }
1394
- function Ot(t, e) {
1397
+ function tt(t, e) {
1395
1398
  let n = 0;
1396
- const { shapeFlag: s } = t;
1399
+ const { shapeFlag: r } = t;
1397
1400
  if (e == null)
1398
1401
  e = null;
1399
1402
  else if (d(e))
1400
1403
  n = 16;
1401
1404
  else if (typeof e == "object")
1402
- if (s & 65) {
1403
- const r = e.default;
1404
- r && (r._c && (r._d = !1), Ot(t, r()), r._c && (r._d = !0));
1405
+ if (r & 65) {
1406
+ const s = e.default;
1407
+ s && (s._c && (s._d = !1), tt(t, s()), s._c && (s._d = !0));
1405
1408
  return;
1406
1409
  } else
1407
- n = 32, !e._ && !te(e) && (e._ctx = Q);
1408
- else A(e) ? (e = { default: e, _ctx: Q }, n = 32) : (e = String(e), s & 64 ? (n = 16, e = [vn(e)]) : n = 8);
1410
+ n = 32, !e._ && !te(e) && (e._ctx = X);
1411
+ else if (I(e)) {
1412
+ if (r & 65) {
1413
+ tt(t, { default: e });
1414
+ return;
1415
+ }
1416
+ e = { default: e, _ctx: X }, n = 32;
1417
+ } else
1418
+ e = String(e), r & 64 ? (n = 16, e = [vn(e)]) : n = 8;
1409
1419
  t.children = e, t.shapeFlag |= n;
1410
1420
  }
1411
1421
  function Rn(...t) {
1412
1422
  const e = {};
1413
1423
  for (let n = 0; n < t.length; n++) {
1414
- const s = t[n];
1415
- for (const r in s)
1416
- if (r === "class")
1417
- e.class !== s.class && (e.class = gt([e.class, s.class]));
1418
- else if (r === "style")
1419
- e.style = _t([e.style, s.style]);
1420
- else if (_e(r)) {
1421
- const o = e[r], i = s[r];
1422
- i && o !== i && !(d(o) && o.includes(i)) && (e[r] = o ? [].concat(o, i) : i);
1423
- } else r !== "" && (e[r] = s[r]);
1424
+ const r = t[n];
1425
+ for (const s in r)
1426
+ if (s === "class")
1427
+ e.class !== r.class && (e.class = bt([e.class, r.class]));
1428
+ else if (s === "style")
1429
+ e.style = gt([e.style, r.style]);
1430
+ else if (_e(s)) {
1431
+ const o = e[s], i = r[s];
1432
+ 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
1433
+ // the model listener.
1434
+ !ge(s) && (e[s] = i);
1435
+ } else s !== "" && (e[s] = r[s]);
1424
1436
  }
1425
1437
  return e;
1426
1438
  }
1427
1439
  {
1428
- const t = tt(), e = (n, s) => {
1429
- let r;
1430
- return (r = t[n]) || (r = t[n] = []), r.push(s), (o) => {
1431
- r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
1440
+ const t = nt(), e = (n, r) => {
1441
+ let s;
1442
+ return (s = t[n]) || (s = t[n] = []), s.push(r), (o) => {
1443
+ s.length > 1 ? s.forEach((i) => i(o)) : s[0](o);
1432
1444
  };
1433
1445
  };
1434
1446
  e(
@@ -1440,66 +1452,66 @@ function Rn(...t) {
1440
1452
  );
1441
1453
  }
1442
1454
  process.env.NODE_ENV;
1443
- const Cn = /(?:^|[-_])\w/g, In = (t) => t.replace(Cn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1455
+ const Cn = /(?:^|[-_])\w/g, An = (t) => t.replace(Cn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1444
1456
  function oe(t, e = !0) {
1445
- return A(t) ? t.displayName || t.name : t.name || e && t.__name;
1457
+ return I(t) ? t.displayName || t.name : t.name || e && t.__name;
1446
1458
  }
1447
1459
  function ie(t, e, n = !1) {
1448
- let s = oe(e);
1449
- if (!s && e.__file) {
1450
- const r = e.__file.match(/([^/\\]+)\.\w+$/);
1451
- r && (s = r[1]);
1460
+ let r = oe(e);
1461
+ if (!r && e.__file) {
1462
+ const s = e.__file.match(/([^/\\]+)\.\w+$/);
1463
+ s && (r = s[1]);
1452
1464
  }
1453
- if (!s && t) {
1454
- const r = (o) => {
1465
+ if (!r && t) {
1466
+ const s = (o) => {
1455
1467
  for (const i in o)
1456
1468
  if (o[i] === e)
1457
1469
  return i;
1458
1470
  };
1459
- s = r(t.components) || t.parent && r(
1471
+ r = s(t.components) || t.parent && s(
1460
1472
  t.parent.type.components
1461
- ) || r(t.appContext.components);
1473
+ ) || s(t.appContext.components);
1462
1474
  }
1463
- return s ? In(s) : n ? "App" : "Anonymous";
1475
+ return r ? An(r) : n ? "App" : "Anonymous";
1464
1476
  }
1465
1477
  function ce(t) {
1466
- return A(t) && "__vccOpts" in t;
1478
+ return I(t) && "__vccOpts" in t;
1467
1479
  }
1468
- function An() {
1480
+ function In() {
1469
1481
  if (process.env.NODE_ENV === "production" || typeof window > "u")
1470
1482
  return;
1471
- const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
1483
+ const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, s = {
1472
1484
  __vue_custom_formatter: !0,
1473
1485
  header(l) {
1474
1486
  if (!_(l))
1475
1487
  return null;
1476
1488
  if (l.__isVue)
1477
1489
  return ["div", t, "VueInstance"];
1478
- if (g(l)) {
1490
+ if (/* @__PURE__ */ g(l)) {
1479
1491
  const h = l.value;
1480
1492
  return [
1481
1493
  "div",
1482
1494
  {},
1483
- ["span", t, p(l)],
1495
+ ["span", t, f(l)],
1484
1496
  "<",
1485
1497
  c(h),
1486
1498
  ">"
1487
1499
  ];
1488
1500
  } else {
1489
- if (St(l))
1501
+ if (/* @__PURE__ */ Ot(l))
1490
1502
  return [
1491
1503
  "div",
1492
1504
  {},
1493
- ["span", t, y(l) ? "ShallowReactive" : "Reactive"],
1505
+ ["span", t, /* @__PURE__ */ y(l) ? "ShallowReactive" : "Reactive"],
1494
1506
  "<",
1495
1507
  c(l),
1496
- `>${E(l) ? " (readonly)" : ""}`
1508
+ `>${/* @__PURE__ */ E(l) ? " (readonly)" : ""}`
1497
1509
  ];
1498
- if (E(l))
1510
+ if (/* @__PURE__ */ E(l))
1499
1511
  return [
1500
1512
  "div",
1501
1513
  {},
1502
- ["span", t, y(l) ? "ShallowReadonly" : "Readonly"],
1514
+ ["span", t, /* @__PURE__ */ y(l) ? "ShallowReadonly" : "Readonly"],
1503
1515
  "<",
1504
1516
  c(l),
1505
1517
  ">"
@@ -1521,7 +1533,7 @@ function An() {
1521
1533
  };
1522
1534
  function o(l) {
1523
1535
  const h = [];
1524
- l.type.props && l.props && h.push(i("props", f(l.props))), l.setupState !== at && h.push(i("setup", l.setupState)), l.data !== at && h.push(i("data", f(l.data)));
1536
+ l.type.props && l.props && h.push(i("props", /* @__PURE__ */ p(l.props))), l.setupState !== ft && h.push(i("setup", l.setupState)), l.data !== ft && h.push(i("data", /* @__PURE__ */ p(l.data)));
1525
1537
  const b = a(l, "computed");
1526
1538
  b && h.push(i("computed", b));
1527
1539
  const S = a(l, "inject");
@@ -1531,7 +1543,7 @@ function An() {
1531
1543
  [
1532
1544
  "span",
1533
1545
  {
1534
- style: s.style + ";opacity:0.66"
1546
+ style: r.style + ";opacity:0.66"
1535
1547
  },
1536
1548
  "$ (internal): "
1537
1549
  ],
@@ -1539,7 +1551,7 @@ function An() {
1539
1551
  ]), h;
1540
1552
  }
1541
1553
  function i(l, h) {
1542
- return h = F({}, h), Object.keys(h).length ? [
1554
+ return h = D({}, h), Object.keys(h).length ? [
1543
1555
  "div",
1544
1556
  { style: "line-height:1.25em;margin-bottom:0.6em" },
1545
1557
  [
@@ -1557,64 +1569,64 @@ function An() {
1557
1569
  ...Object.keys(h).map((b) => [
1558
1570
  "div",
1559
1571
  {},
1560
- ["span", s, b + ": "],
1572
+ ["span", r, b + ": "],
1561
1573
  c(h[b], !1)
1562
1574
  ])
1563
1575
  ]
1564
1576
  ] : ["span", {}];
1565
1577
  }
1566
1578
  function c(l, h = !0) {
1567
- return typeof l == "number" ? ["span", e, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", s, l] : _(l) ? ["object", { object: h ? f(l) : l }] : ["span", n, String(l)];
1579
+ return typeof l == "number" ? ["span", e, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", r, l] : _(l) ? ["object", { object: h ? /* @__PURE__ */ p(l) : l }] : ["span", n, String(l)];
1568
1580
  }
1569
1581
  function a(l, h) {
1570
1582
  const b = l.type;
1571
- if (A(b))
1583
+ if (I(b))
1572
1584
  return;
1573
1585
  const S = {};
1574
- for (const k in l.ctx)
1575
- u(b, k, h) && (S[k] = l.ctx[k]);
1586
+ for (const j in l.ctx)
1587
+ u(b, j, h) && (S[j] = l.ctx[j]);
1576
1588
  return S;
1577
1589
  }
1578
1590
  function u(l, h, b) {
1579
1591
  const S = l[b];
1580
- if (d(S) && S.includes(h) || _(S) && h in S || l.extends && u(l.extends, h, b) || l.mixins && l.mixins.some((k) => u(k, h, b)))
1592
+ if (d(S) && S.includes(h) || _(S) && h in S || l.extends && u(l.extends, h, b) || l.mixins && l.mixins.some((j) => u(j, h, b)))
1581
1593
  return !0;
1582
1594
  }
1583
- function p(l) {
1584
- return y(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
1595
+ function f(l) {
1596
+ return /* @__PURE__ */ y(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
1585
1597
  }
1586
- window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
1598
+ window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
1587
1599
  }
1588
1600
  process.env.NODE_ENV;
1589
1601
  process.env.NODE_ENV;
1590
1602
  process.env.NODE_ENV;
1591
1603
  function $n() {
1592
- An();
1604
+ In();
1593
1605
  }
1594
1606
  process.env.NODE_ENV !== "production" && $n();
1595
1607
  function Fn(t, e, n) {
1596
- const s = n ? { storeOptions: n } : {};
1597
- return typeof e == "function" ? Dn(
1608
+ const r = n ? { storeOptions: n } : {};
1609
+ return typeof e == "function" ? Vn(
1598
1610
  t,
1599
1611
  e,
1600
- s
1601
- ) : Vn(
1612
+ r
1613
+ ) : Dn(
1602
1614
  t,
1603
1615
  e,
1604
- s
1616
+ r
1605
1617
  );
1606
1618
  }
1607
- function Dn(t, e, n) {
1619
+ function Vn(t, e, n) {
1608
1620
  return $t(t, e, n);
1609
1621
  }
1610
- function Vn(t, e, n) {
1622
+ function Dn(t, e, n) {
1611
1623
  return n && (e = { ...e, ...n ?? {} }), $t(t, e);
1612
1624
  }
1613
1625
  const xn = /* @__PURE__ */ new Set(["_", "$"]);
1614
1626
  function Tn(t) {
1615
1627
  return xn.has(t[0]);
1616
1628
  }
1617
- class kn extends Dt {
1629
+ class kn extends Vt {
1618
1630
  _className = "Store";
1619
1631
  _onAction;
1620
1632
  _options;
@@ -1654,8 +1666,8 @@ class kn extends Dt {
1654
1666
  set storeSubscribe(e) {
1655
1667
  this._storeSubscribe = e;
1656
1668
  }
1657
- constructor(e, n, s = !1, r) {
1658
- super(s, r), this._options = n.storeOptions, this._store = e;
1669
+ constructor(e, n, r = !1, s) {
1670
+ super(r, s), this._options = n.storeOptions, this._store = e;
1659
1671
  }
1660
1672
  /**
1661
1673
  * Add property to state
@@ -1663,10 +1675,10 @@ class kn extends Dt {
1663
1675
  * @param value
1664
1676
  */
1665
1677
  addToState(e, n) {
1666
- this.isOptionApi() || n?.value || (n = Wt(n)), this.state[e] = n, this.store[e] = Je(this.state, e);
1678
+ this.isOptionApi() || n?.value || (n = /* @__PURE__ */ Ut(n)), this.state[e] = n, this.store[e] = /* @__PURE__ */ Je(this.state, e);
1667
1679
  }
1668
- addSubscription(e, n, s) {
1669
- this._subscriptions[e] = { subscription: n, ...s ?? {} };
1680
+ addSubscription(e, n, r) {
1681
+ this._subscriptions[e] = { subscription: n, ...r ?? {} };
1670
1682
  }
1671
1683
  /**
1672
1684
  * Create and return a class instance
@@ -1675,9 +1687,9 @@ class kn extends Dt {
1675
1687
  * @param debug
1676
1688
  * @returns
1677
1689
  */
1678
- static customizeStore(e, n, s = !1, r) {
1690
+ static customizeStore(e, n, r = !1, s) {
1679
1691
  if (n.storeOptions && this.hasRequiredKeys(n.storeOptions))
1680
- return new this(e, n, s, r);
1692
+ return new this(e, n, r, s);
1681
1693
  }
1682
1694
  hasDeniedFirstChar(e) {
1683
1695
  return Tn(e[0]);
@@ -1692,7 +1704,7 @@ class kn extends Dt {
1692
1704
  return this.getValue(this.state[e]);
1693
1705
  }
1694
1706
  getSubscriptions() {
1695
- if (!lt(this._subscriptions))
1707
+ if (!ut(this._subscriptions))
1696
1708
  return this._subscriptions;
1697
1709
  }
1698
1710
  getValue(e) {
@@ -1714,11 +1726,11 @@ function jn(t, e) {
1714
1726
  }
1715
1727
  export {
1716
1728
  ue as CustomConsole,
1717
- Vt as PLUGIN_NAME,
1729
+ Dt as PLUGIN_NAME,
1718
1730
  Pn as PluginSubscriber,
1719
1731
  pe as PluginSubscription,
1720
1732
  kn as Store,
1721
1733
  jn as createPlugin,
1722
1734
  Fn as defineAStore,
1723
- lt as isEmpty
1735
+ ut as isEmpty
1724
1736
  };