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

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