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

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