pinia-plugin-subscription 0.0.0-beta.2 → 0.0.0-beta.20

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