pinia-plugin-subscription 0.0.0-beta.3 → 0.0.0-beta.5
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
|
|
2
|
-
class
|
|
1
|
+
import { defineStore as xt } from "pinia";
|
|
2
|
+
class $n {
|
|
3
3
|
_createInstance;
|
|
4
4
|
_name;
|
|
5
5
|
_storeInstance;
|
|
@@ -33,48 +33,86 @@ class Dn {
|
|
|
33
33
|
this._storeInstance = this._createInstance(e, n, s), this._storeInstance && (this._subscriptions = this._storeInstance.getSubscriptions(), this._storeMutationSubscription = this._storeInstance.storeSubscribe, this._storeOnActionSubscription = this._storeInstance.onAction, this.pluginCreated && this.pluginCreated(e));
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
const
|
|
37
|
-
function ue(t, e
|
|
38
|
-
if (!
|
|
36
|
+
const Tt = "pinia-plugin-subscription", le = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
|
|
37
|
+
function ue(t, e) {
|
|
38
|
+
if (!t)
|
|
39
39
|
throw new Error("Style instructions are required");
|
|
40
40
|
console.log(
|
|
41
41
|
"%c%s",
|
|
42
|
-
e,
|
|
43
42
|
t,
|
|
44
|
-
|
|
43
|
+
e.shift(),
|
|
44
|
+
...e
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
47
|
+
class fe {
|
|
48
|
+
static _bgColor = "#ffec73";
|
|
49
|
+
static _color = "green";
|
|
50
|
+
static _icon = "🍍⚡";
|
|
51
|
+
static _errorBgColor = "#d24545";
|
|
52
|
+
static _errorColor = "white";
|
|
53
|
+
static _errorIcon = "🍍⚠️";
|
|
54
|
+
static _pluginName;
|
|
55
|
+
static _styles = {
|
|
56
|
+
error: { bgColor: this._bgColor, color: this._color, icon: this._icon },
|
|
57
|
+
info: { bgColor: this._errorBgColor, color: this._errorColor, icon: this._errorIcon }
|
|
58
|
+
};
|
|
59
|
+
static formatMessage(e, n) {
|
|
60
|
+
return ` [${n} ${Tt}] - ${e} `;
|
|
61
|
+
}
|
|
62
|
+
static generateStyle(e) {
|
|
63
|
+
return le(e.bgColor, e.color);
|
|
64
|
+
}
|
|
65
|
+
static getStyleDefinition(e) {
|
|
66
|
+
return this._styles[e ?? "info"];
|
|
67
|
+
}
|
|
68
|
+
static log(...e) {
|
|
69
|
+
this.useLog(
|
|
70
|
+
this.getStyleDefinition(),
|
|
71
|
+
e
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
static logError(...e) {
|
|
75
|
+
this.useLog(
|
|
76
|
+
this.getStyleDefinition("error"),
|
|
77
|
+
e
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
static rebuildArgs(e, n) {
|
|
81
|
+
if (typeof e == "string")
|
|
82
|
+
return [this.formatMessage(e, n)];
|
|
83
|
+
if (Array.isArray(e))
|
|
84
|
+
return [this.formatMessage(e.shift(), n), ...e ?? []];
|
|
85
|
+
}
|
|
86
|
+
static useLog(e, n) {
|
|
87
|
+
ue(
|
|
88
|
+
this.generateStyle(e),
|
|
89
|
+
this.rebuildArgs(n, e.icon)
|
|
90
|
+
);
|
|
91
|
+
}
|
|
54
92
|
}
|
|
55
|
-
|
|
56
|
-
|
|
93
|
+
class Y extends fe {
|
|
94
|
+
static _pluginName = Tt;
|
|
57
95
|
}
|
|
58
96
|
function Mn(t, e, n) {
|
|
59
97
|
const s = n ? { storeOptions: n } : {};
|
|
60
|
-
return typeof e == "function" ?
|
|
98
|
+
return typeof e == "function" ? he(
|
|
61
99
|
t,
|
|
62
100
|
e,
|
|
63
101
|
s
|
|
64
|
-
) :
|
|
102
|
+
) : pe(
|
|
65
103
|
t,
|
|
66
104
|
e,
|
|
67
105
|
s
|
|
68
106
|
);
|
|
69
107
|
}
|
|
70
|
-
function pe(t, e, n) {
|
|
71
|
-
return Tt(t, e, n);
|
|
72
|
-
}
|
|
73
108
|
function he(t, e, n) {
|
|
74
|
-
return
|
|
109
|
+
return xt(t, e, n);
|
|
110
|
+
}
|
|
111
|
+
function pe(t, e, n) {
|
|
112
|
+
return n && (e = { ...e, ...n ?? {} }), xt(t, e);
|
|
75
113
|
}
|
|
76
114
|
const de = /* @__PURE__ */ new Set(["_", "$"]);
|
|
77
|
-
function
|
|
115
|
+
function Dt(t) {
|
|
78
116
|
return de.has(t[0]);
|
|
79
117
|
}
|
|
80
118
|
function ut(t) {
|
|
@@ -121,26 +159,26 @@ class _e {
|
|
|
121
159
|
}
|
|
122
160
|
), this.subscriptionDelivery({ store: e, options: n }), this.rewriteResetStore({ store: e }, Object.assign({}, e.$state), Object.assign({}, e));
|
|
123
161
|
} catch (s) {
|
|
124
|
-
|
|
162
|
+
Y.logError("PluginSubscription.plugin()", s, e, n);
|
|
125
163
|
}
|
|
126
164
|
}
|
|
127
165
|
rewriteResetStore({ store: e }, n, s) {
|
|
128
166
|
e.$reset = () => {
|
|
129
167
|
this.executeResetStoreCallbacks(e), Object.keys(s).forEach((r) => {
|
|
130
|
-
|
|
168
|
+
Dt(r) || (e[r] = n[r] ?? s[r]);
|
|
131
169
|
}), e.$patch(JSON.parse(JSON.stringify(n)));
|
|
132
170
|
};
|
|
133
171
|
}
|
|
134
172
|
storeOnActionSubscription(e) {
|
|
135
173
|
const { store: n, callback: s } = e();
|
|
136
174
|
n.$onAction(({ after: r, args: o, name: i }) => {
|
|
137
|
-
this._debug &&
|
|
175
|
+
this._debug && Y.log(`store.$subscribe ${n.$id}`, [r, o, i, n]), s({ after: r, args: o, name: i });
|
|
138
176
|
});
|
|
139
177
|
}
|
|
140
178
|
storeMutationSubscription(e) {
|
|
141
179
|
const { store: n, callback: s } = e();
|
|
142
180
|
n.$subscribe((r) => {
|
|
143
|
-
this._debug &&
|
|
181
|
+
this._debug && Y.log(`store.$subscribe ${n.$id}`, [r, n]), s(r);
|
|
144
182
|
});
|
|
145
183
|
}
|
|
146
184
|
subscriptionDelivery({ store: e, options: n }) {
|
|
@@ -167,14 +205,14 @@ function ge(t) {
|
|
|
167
205
|
}
|
|
168
206
|
const ft = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
169
207
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
170
|
-
const
|
|
208
|
+
const $t = () => {
|
|
171
209
|
}, be = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
|
|
172
|
-
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), F = Object.assign, me = Object.prototype.hasOwnProperty,
|
|
210
|
+
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), F = Object.assign, me = Object.prototype.hasOwnProperty, ht = (t, e) => me.call(t, e), d = Array.isArray, K = (t) => Mt(t) === "[object Map]", V = (t) => typeof t == "function", N = (t) => typeof t == "string", W = (t) => typeof t == "symbol", _ = (t) => t !== null && typeof t == "object", ye = Object.prototype.toString, Mt = (t) => ye.call(t), Pt = (t) => Mt(t).slice(8, -1), et = (t) => N(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, Se = (t) => {
|
|
173
211
|
const e = /* @__PURE__ */ Object.create(null);
|
|
174
212
|
return ((n) => e[n] || (e[n] = t(n)));
|
|
175
|
-
}, Ee =
|
|
176
|
-
let
|
|
177
|
-
const nt = () =>
|
|
213
|
+
}, Ee = Se((t) => t.charAt(0).toUpperCase() + t.slice(1)), gt = (t, e) => !Object.is(t, e);
|
|
214
|
+
let Rt;
|
|
215
|
+
const nt = () => Rt || (Rt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
178
216
|
function bt(t) {
|
|
179
217
|
if (d(t)) {
|
|
180
218
|
const e = {};
|
|
@@ -216,10 +254,10 @@ function M(t, ...e) {
|
|
|
216
254
|
console.warn(`[Vue warn] ${t}`, ...e);
|
|
217
255
|
}
|
|
218
256
|
let Ft = 0, rt;
|
|
219
|
-
function
|
|
257
|
+
function yt() {
|
|
220
258
|
Ft++;
|
|
221
259
|
}
|
|
222
|
-
function
|
|
260
|
+
function St() {
|
|
223
261
|
if (--Ft > 0)
|
|
224
262
|
return;
|
|
225
263
|
let t;
|
|
@@ -249,7 +287,7 @@ class ve {
|
|
|
249
287
|
this.version++, this.notify(e);
|
|
250
288
|
}
|
|
251
289
|
notify(e) {
|
|
252
|
-
|
|
290
|
+
yt();
|
|
253
291
|
try {
|
|
254
292
|
if (process.env.NODE_ENV !== "production")
|
|
255
293
|
for (let n = this.subsHead; n; n = n.nextSub)
|
|
@@ -264,15 +302,15 @@ class ve {
|
|
|
264
302
|
for (let n = this.subs; n; n = n.prevSub)
|
|
265
303
|
n.sub.notify() && n.sub.dep.notify();
|
|
266
304
|
} finally {
|
|
267
|
-
|
|
305
|
+
St();
|
|
268
306
|
}
|
|
269
307
|
}
|
|
270
308
|
}
|
|
271
309
|
const jt = /* @__PURE__ */ new WeakMap(), st = Symbol(
|
|
272
310
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
273
|
-
),
|
|
311
|
+
), vt = Symbol(
|
|
274
312
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
275
|
-
),
|
|
313
|
+
), Ct = Symbol(
|
|
276
314
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
277
315
|
);
|
|
278
316
|
function I(t, e, n, s, r, o) {
|
|
@@ -289,37 +327,37 @@ function I(t, e, n, s, r, o) {
|
|
|
289
327
|
oldTarget: o
|
|
290
328
|
}) : l.trigger());
|
|
291
329
|
};
|
|
292
|
-
if (
|
|
330
|
+
if (yt(), e === "clear")
|
|
293
331
|
i.forEach(c);
|
|
294
332
|
else {
|
|
295
333
|
const l = d(t), f = l && et(n);
|
|
296
334
|
if (l && n === "length") {
|
|
297
|
-
const
|
|
298
|
-
i.forEach((a,
|
|
299
|
-
(
|
|
335
|
+
const p = Number(s);
|
|
336
|
+
i.forEach((a, h) => {
|
|
337
|
+
(h === "length" || h === Ct || !W(h) && h >= p) && c(a);
|
|
300
338
|
});
|
|
301
339
|
} else
|
|
302
|
-
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), f && c(i.get(
|
|
340
|
+
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), f && c(i.get(Ct)), e) {
|
|
303
341
|
case "add":
|
|
304
|
-
l ? f && c(i.get("length")) : (c(i.get(st)),
|
|
342
|
+
l ? f && c(i.get("length")) : (c(i.get(st)), K(t) && c(i.get(vt)));
|
|
305
343
|
break;
|
|
306
344
|
case "delete":
|
|
307
|
-
l || (c(i.get(st)),
|
|
345
|
+
l || (c(i.get(st)), K(t) && c(i.get(vt)));
|
|
308
346
|
break;
|
|
309
347
|
case "set":
|
|
310
|
-
|
|
348
|
+
K(t) && c(i.get(st));
|
|
311
349
|
break;
|
|
312
350
|
}
|
|
313
351
|
}
|
|
314
|
-
|
|
352
|
+
St();
|
|
315
353
|
}
|
|
316
354
|
function Ce(t, e) {
|
|
317
355
|
const n = jt.get(t);
|
|
318
356
|
return n && n.get(e);
|
|
319
357
|
}
|
|
320
|
-
function
|
|
358
|
+
function x(t) {
|
|
321
359
|
const e = u(t);
|
|
322
|
-
return e === t ||
|
|
360
|
+
return e === t || y(t) ? e : e.map(R);
|
|
323
361
|
}
|
|
324
362
|
function Et(t) {
|
|
325
363
|
return t = u(t), t;
|
|
@@ -333,8 +371,8 @@ const Ie = {
|
|
|
333
371
|
return ot(this, Symbol.iterator, (t) => v(this, t));
|
|
334
372
|
},
|
|
335
373
|
concat(...t) {
|
|
336
|
-
return
|
|
337
|
-
...t.map((e) => d(e) ?
|
|
374
|
+
return x(this).concat(
|
|
375
|
+
...t.map((e) => d(e) ? x(e) : e)
|
|
338
376
|
);
|
|
339
377
|
},
|
|
340
378
|
entries() {
|
|
@@ -390,7 +428,7 @@ const Ie = {
|
|
|
390
428
|
return it(this, "indexOf", t);
|
|
391
429
|
},
|
|
392
430
|
join(t) {
|
|
393
|
-
return
|
|
431
|
+
return x(this).join(t);
|
|
394
432
|
},
|
|
395
433
|
// keys() iterator only reads `length`, no optimization required
|
|
396
434
|
lastIndexOf(...t) {
|
|
@@ -406,10 +444,10 @@ const Ie = {
|
|
|
406
444
|
return k(this, "push", t);
|
|
407
445
|
},
|
|
408
446
|
reduce(t, ...e) {
|
|
409
|
-
return
|
|
447
|
+
return It(this, "reduce", t, e);
|
|
410
448
|
},
|
|
411
449
|
reduceRight(t, ...e) {
|
|
412
|
-
return
|
|
450
|
+
return It(this, "reduceRight", t, e);
|
|
413
451
|
},
|
|
414
452
|
shift() {
|
|
415
453
|
return k(this, "shift");
|
|
@@ -422,13 +460,13 @@ const Ie = {
|
|
|
422
460
|
return k(this, "splice", t);
|
|
423
461
|
},
|
|
424
462
|
toReversed() {
|
|
425
|
-
return
|
|
463
|
+
return x(this).toReversed();
|
|
426
464
|
},
|
|
427
465
|
toSorted(t) {
|
|
428
|
-
return
|
|
466
|
+
return x(this).toSorted(t);
|
|
429
467
|
},
|
|
430
468
|
toSpliced(...t) {
|
|
431
|
-
return
|
|
469
|
+
return x(this).toSpliced(...t);
|
|
432
470
|
},
|
|
433
471
|
unshift(...t) {
|
|
434
472
|
return k(this, "unshift", t);
|
|
@@ -439,31 +477,31 @@ const Ie = {
|
|
|
439
477
|
};
|
|
440
478
|
function ot(t, e, n) {
|
|
441
479
|
const s = Et(t), r = s[e]();
|
|
442
|
-
return s !== t && !
|
|
480
|
+
return s !== t && !y(t) && (r._next = r.next, r.next = () => {
|
|
443
481
|
const o = r._next();
|
|
444
482
|
return o.done || (o.value = n(o.value)), o;
|
|
445
483
|
}), r;
|
|
446
484
|
}
|
|
447
485
|
const Ve = Array.prototype;
|
|
448
486
|
function w(t, e, n, s, r, o) {
|
|
449
|
-
const i = Et(t), c = i !== t && !
|
|
487
|
+
const i = Et(t), c = i !== t && !y(t), l = i[e];
|
|
450
488
|
if (l !== Ve[e]) {
|
|
451
489
|
const a = l.apply(t, o);
|
|
452
490
|
return c ? R(a) : a;
|
|
453
491
|
}
|
|
454
492
|
let f = n;
|
|
455
|
-
i !== t && (c ? f = function(a,
|
|
456
|
-
return n.call(this, v(t, a),
|
|
457
|
-
} : n.length > 2 && (f = function(a,
|
|
458
|
-
return n.call(this, a,
|
|
493
|
+
i !== t && (c ? f = function(a, h) {
|
|
494
|
+
return n.call(this, v(t, a), h, t);
|
|
495
|
+
} : n.length > 2 && (f = function(a, h) {
|
|
496
|
+
return n.call(this, a, h, t);
|
|
459
497
|
}));
|
|
460
|
-
const
|
|
461
|
-
return c && r ? r(
|
|
498
|
+
const p = l.call(i, f, s);
|
|
499
|
+
return c && r ? r(p) : p;
|
|
462
500
|
}
|
|
463
|
-
function
|
|
501
|
+
function It(t, e, n, s) {
|
|
464
502
|
const r = Et(t);
|
|
465
503
|
let o = n;
|
|
466
|
-
return r !== t && (
|
|
504
|
+
return r !== t && (y(t) ? n.length > 3 && (o = function(i, c, l) {
|
|
467
505
|
return n.call(this, i, c, l, t);
|
|
468
506
|
}) : o = function(i, c, l) {
|
|
469
507
|
return n.call(this, i, v(t, c), l, t);
|
|
@@ -471,20 +509,20 @@ function Vt(t, e, n, s) {
|
|
|
471
509
|
}
|
|
472
510
|
function it(t, e, n) {
|
|
473
511
|
const s = u(t), r = s[e](...n);
|
|
474
|
-
return (r === -1 || r === !1) &&
|
|
512
|
+
return (r === -1 || r === !1) && H(n[0]) ? (n[0] = u(n[0]), s[e](...n)) : r;
|
|
475
513
|
}
|
|
476
514
|
function k(t, e, n = []) {
|
|
477
|
-
|
|
515
|
+
yt();
|
|
478
516
|
const s = u(t)[e].apply(t, n);
|
|
479
|
-
return
|
|
517
|
+
return St(), s;
|
|
480
518
|
}
|
|
481
|
-
const
|
|
519
|
+
const Ae = /* @__PURE__ */ ge("__proto__,__v_isRef,__isVue"), kt = new Set(
|
|
482
520
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(W)
|
|
483
521
|
);
|
|
484
|
-
function
|
|
522
|
+
function xe(t) {
|
|
485
523
|
return W(t) || (t = String(t)), u(this).hasOwnProperty(t);
|
|
486
524
|
}
|
|
487
|
-
class
|
|
525
|
+
class Kt {
|
|
488
526
|
constructor(e = !1, n = !1) {
|
|
489
527
|
this._isReadonly = e, this._isShallow = n;
|
|
490
528
|
}
|
|
@@ -498,7 +536,7 @@ class Ht {
|
|
|
498
536
|
if (n === "__v_isShallow")
|
|
499
537
|
return o;
|
|
500
538
|
if (n === "__v_raw")
|
|
501
|
-
return s === (r ? o ?
|
|
539
|
+
return s === (r ? o ? He : zt : o ? Ke : Lt).get(e) || // receiver is not the reactive proxy, but has the same prototype
|
|
502
540
|
// this means the receiver is a user proxy of the reactive proxy
|
|
503
541
|
Object.getPrototypeOf(e) === Object.getPrototypeOf(s) ? e : void 0;
|
|
504
542
|
const i = d(e);
|
|
@@ -507,7 +545,7 @@ class Ht {
|
|
|
507
545
|
if (i && (l = Ie[n]))
|
|
508
546
|
return l;
|
|
509
547
|
if (n === "hasOwnProperty")
|
|
510
|
-
return
|
|
548
|
+
return xe;
|
|
511
549
|
}
|
|
512
550
|
const c = Reflect.get(
|
|
513
551
|
e,
|
|
@@ -517,7 +555,7 @@ class Ht {
|
|
|
517
555
|
// its class methods
|
|
518
556
|
g(e) ? e : s
|
|
519
557
|
);
|
|
520
|
-
if ((W(n) ? kt.has(n) :
|
|
558
|
+
if ((W(n) ? kt.has(n) : Ae(n)) || o)
|
|
521
559
|
return c;
|
|
522
560
|
if (g(c)) {
|
|
523
561
|
const l = i && et(n) ? c : c.value;
|
|
@@ -526,7 +564,7 @@ class Ht {
|
|
|
526
564
|
return _(c) ? r ? dt(c) : Wt(c) : c;
|
|
527
565
|
}
|
|
528
566
|
}
|
|
529
|
-
class Te extends
|
|
567
|
+
class Te extends Kt {
|
|
530
568
|
constructor(e = !1) {
|
|
531
569
|
super(!1, e);
|
|
532
570
|
}
|
|
@@ -535,13 +573,13 @@ class Te extends Ht {
|
|
|
535
573
|
const i = d(e) && et(n);
|
|
536
574
|
if (!this._isShallow) {
|
|
537
575
|
const f = E(o);
|
|
538
|
-
if (!
|
|
576
|
+
if (!y(s) && !E(s) && (o = u(o), s = u(s)), !i && g(o) && !g(s))
|
|
539
577
|
return f ? (process.env.NODE_ENV !== "production" && M(
|
|
540
578
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
541
579
|
e[n]
|
|
542
580
|
), !0) : (o.value = s, !0);
|
|
543
581
|
}
|
|
544
|
-
const c = i ? Number(n) < e.length :
|
|
582
|
+
const c = i ? Number(n) < e.length : ht(e, n), l = Reflect.set(
|
|
545
583
|
e,
|
|
546
584
|
n,
|
|
547
585
|
s,
|
|
@@ -550,7 +588,7 @@ class Te extends Ht {
|
|
|
550
588
|
return e === u(r) && (c ? gt(s, o) && I(e, "set", n, s, o) : I(e, "add", n, s)), l;
|
|
551
589
|
}
|
|
552
590
|
deleteProperty(e, n) {
|
|
553
|
-
const s =
|
|
591
|
+
const s = ht(e, n), r = e[n], o = Reflect.deleteProperty(e, n);
|
|
554
592
|
return o && s && I(e, "delete", n, void 0, r), o;
|
|
555
593
|
}
|
|
556
594
|
has(e, n) {
|
|
@@ -561,7 +599,7 @@ class Te extends Ht {
|
|
|
561
599
|
return Reflect.ownKeys(e);
|
|
562
600
|
}
|
|
563
601
|
}
|
|
564
|
-
class
|
|
602
|
+
class De extends Kt {
|
|
565
603
|
constructor(e = !1) {
|
|
566
604
|
super(!0, e);
|
|
567
605
|
}
|
|
@@ -578,16 +616,16 @@ class $e extends Ht {
|
|
|
578
616
|
), !0;
|
|
579
617
|
}
|
|
580
618
|
}
|
|
581
|
-
const
|
|
619
|
+
const $e = /* @__PURE__ */ new Te(), Me = /* @__PURE__ */ new De(), pt = (t) => t, q = (t) => Reflect.getPrototypeOf(t);
|
|
582
620
|
function Pe(t, e, n) {
|
|
583
621
|
return function(...s) {
|
|
584
|
-
const r = this.__v_raw, o = u(r), i =
|
|
622
|
+
const r = this.__v_raw, o = u(r), i = K(o), c = t === "entries" || t === Symbol.iterator && i, l = r[t](...s), f = n ? pt : e ? L : R;
|
|
585
623
|
return {
|
|
586
624
|
// iterator protocol
|
|
587
625
|
next() {
|
|
588
|
-
const { value:
|
|
589
|
-
return a ? { value:
|
|
590
|
-
value: c ? [f(
|
|
626
|
+
const { value: p, done: a } = l.next();
|
|
627
|
+
return a ? { value: p, done: a } : {
|
|
628
|
+
value: c ? [f(p[0]), f(p[1])] : f(p),
|
|
591
629
|
done: a
|
|
592
630
|
};
|
|
593
631
|
},
|
|
@@ -598,7 +636,7 @@ function Pe(t, e, n) {
|
|
|
598
636
|
};
|
|
599
637
|
};
|
|
600
638
|
}
|
|
601
|
-
function
|
|
639
|
+
function J(t) {
|
|
602
640
|
return function(...e) {
|
|
603
641
|
if (process.env.NODE_ENV !== "production") {
|
|
604
642
|
const n = e[0] ? `on key "${e[0]}" ` : "";
|
|
@@ -613,7 +651,7 @@ function Y(t) {
|
|
|
613
651
|
function Fe(t, e) {
|
|
614
652
|
const n = {
|
|
615
653
|
get(r) {
|
|
616
|
-
const o = this.__v_raw, i = u(o), c = u(r), { has: l } =
|
|
654
|
+
const o = this.__v_raw, i = u(o), c = u(r), { has: l } = q(i), f = e ? pt : t ? L : R;
|
|
617
655
|
if (l.call(i, r))
|
|
618
656
|
return f(o.get(r));
|
|
619
657
|
if (l.call(i, c))
|
|
@@ -633,40 +671,40 @@ function Fe(t, e) {
|
|
|
633
671
|
forEach(r, o) {
|
|
634
672
|
const i = this, c = i.__v_raw;
|
|
635
673
|
u(c);
|
|
636
|
-
const l = e ?
|
|
637
|
-
return c.forEach((f,
|
|
674
|
+
const l = e ? pt : t ? L : R;
|
|
675
|
+
return c.forEach((f, p) => r.call(o, l(f), l(p), i));
|
|
638
676
|
}
|
|
639
677
|
};
|
|
640
678
|
return F(
|
|
641
679
|
n,
|
|
642
680
|
t ? {
|
|
643
|
-
add:
|
|
644
|
-
set:
|
|
645
|
-
delete:
|
|
646
|
-
clear:
|
|
681
|
+
add: J("add"),
|
|
682
|
+
set: J("set"),
|
|
683
|
+
delete: J("delete"),
|
|
684
|
+
clear: J("clear")
|
|
647
685
|
} : {
|
|
648
686
|
add(r) {
|
|
649
|
-
!e && !
|
|
687
|
+
!e && !y(r) && !E(r) && (r = u(r));
|
|
650
688
|
const o = u(this);
|
|
651
|
-
return
|
|
689
|
+
return q(o).has.call(o, r) || (o.add(r), I(o, "add", r, r)), this;
|
|
652
690
|
},
|
|
653
691
|
set(r, o) {
|
|
654
|
-
!e && !
|
|
655
|
-
const i = u(this), { has: c, get: l } =
|
|
692
|
+
!e && !y(o) && !E(o) && (o = u(o));
|
|
693
|
+
const i = u(this), { has: c, get: l } = q(i);
|
|
656
694
|
let f = c.call(i, r);
|
|
657
|
-
f ? process.env.NODE_ENV !== "production" &&
|
|
658
|
-
const
|
|
659
|
-
return i.set(r, o), f ? gt(o,
|
|
695
|
+
f ? process.env.NODE_ENV !== "production" && Vt(i, c, r) : (r = u(r), f = c.call(i, r));
|
|
696
|
+
const p = l.call(i, r);
|
|
697
|
+
return i.set(r, o), f ? gt(o, p) && I(i, "set", r, o, p) : I(i, "add", r, o), this;
|
|
660
698
|
},
|
|
661
699
|
delete(r) {
|
|
662
|
-
const o = u(this), { has: i, get: c } =
|
|
700
|
+
const o = u(this), { has: i, get: c } = q(o);
|
|
663
701
|
let l = i.call(o, r);
|
|
664
|
-
l ? process.env.NODE_ENV !== "production" &&
|
|
665
|
-
const f = c ? c.call(o, r) : void 0,
|
|
666
|
-
return l && I(o, "delete", r, void 0, f),
|
|
702
|
+
l ? process.env.NODE_ENV !== "production" && Vt(o, i, r) : (r = u(r), l = i.call(o, r));
|
|
703
|
+
const f = c ? c.call(o, r) : void 0, p = o.delete(r);
|
|
704
|
+
return l && I(o, "delete", r, void 0, f), p;
|
|
667
705
|
},
|
|
668
706
|
clear() {
|
|
669
|
-
const r = u(this), o = r.size !== 0, i = process.env.NODE_ENV !== "production" ?
|
|
707
|
+
const r = u(this), o = r.size !== 0, i = process.env.NODE_ENV !== "production" ? K(r) ? new Map(r) : new Set(r) : void 0, c = r.clear();
|
|
670
708
|
return o && I(
|
|
671
709
|
r,
|
|
672
710
|
"clear",
|
|
@@ -685,20 +723,20 @@ function Fe(t, e) {
|
|
|
685
723
|
n[r] = Pe(r, t, e);
|
|
686
724
|
}), n;
|
|
687
725
|
}
|
|
688
|
-
function
|
|
726
|
+
function Ht(t, e) {
|
|
689
727
|
const n = Fe(t, e);
|
|
690
728
|
return (s, r, o) => r === "__v_isReactive" ? !t : r === "__v_isReadonly" ? t : r === "__v_raw" ? s : Reflect.get(
|
|
691
|
-
|
|
729
|
+
ht(n, r) && r in s ? n : s,
|
|
692
730
|
r,
|
|
693
731
|
o
|
|
694
732
|
);
|
|
695
733
|
}
|
|
696
734
|
const je = {
|
|
697
|
-
get: /* @__PURE__ */
|
|
735
|
+
get: /* @__PURE__ */ Ht(!1, !1)
|
|
698
736
|
}, ke = {
|
|
699
|
-
get: /* @__PURE__ */
|
|
737
|
+
get: /* @__PURE__ */ Ht(!0, !1)
|
|
700
738
|
};
|
|
701
|
-
function
|
|
739
|
+
function Vt(t, e, n) {
|
|
702
740
|
const s = u(n);
|
|
703
741
|
if (s !== n && e.call(t, s)) {
|
|
704
742
|
const r = Pt(t);
|
|
@@ -707,7 +745,7 @@ function xt(t, e, n) {
|
|
|
707
745
|
);
|
|
708
746
|
}
|
|
709
747
|
}
|
|
710
|
-
const Lt = /* @__PURE__ */ new WeakMap(),
|
|
748
|
+
const Lt = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap();
|
|
711
749
|
function Le(t) {
|
|
712
750
|
switch (t) {
|
|
713
751
|
case "Object":
|
|
@@ -729,7 +767,7 @@ function Wt(t) {
|
|
|
729
767
|
return E(t) ? t : Ut(
|
|
730
768
|
t,
|
|
731
769
|
!1,
|
|
732
|
-
|
|
770
|
+
$e,
|
|
733
771
|
je,
|
|
734
772
|
Lt
|
|
735
773
|
);
|
|
@@ -770,10 +808,10 @@ function wt(t) {
|
|
|
770
808
|
function E(t) {
|
|
771
809
|
return !!(t && t.__v_isReadonly);
|
|
772
810
|
}
|
|
773
|
-
function
|
|
811
|
+
function y(t) {
|
|
774
812
|
return !!(t && t.__v_isShallow);
|
|
775
813
|
}
|
|
776
|
-
function
|
|
814
|
+
function H(t) {
|
|
777
815
|
return t ? !!t.__v_raw : !1;
|
|
778
816
|
}
|
|
779
817
|
function u(t) {
|
|
@@ -784,7 +822,7 @@ const R = (t) => _(t) ? Wt(t) : t, L = (t) => _(t) ? dt(t) : t;
|
|
|
784
822
|
function g(t) {
|
|
785
823
|
return t ? t.__v_isRef === !0 : !1;
|
|
786
824
|
}
|
|
787
|
-
function
|
|
825
|
+
function qt(t) {
|
|
788
826
|
return We(t, !1);
|
|
789
827
|
}
|
|
790
828
|
function We(t, e) {
|
|
@@ -802,7 +840,7 @@ class Ue {
|
|
|
802
840
|
}) : this.dep.track(), this._value;
|
|
803
841
|
}
|
|
804
842
|
set value(e) {
|
|
805
|
-
const n = this._rawValue, s = this.__v_isShallow ||
|
|
843
|
+
const n = this._rawValue, s = this.__v_isShallow || y(e) || E(e);
|
|
806
844
|
e = s ? e : u(e), gt(e, n) && (this._rawValue = e, this._value = s ? e : R(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
807
845
|
target: this,
|
|
808
846
|
type: "set",
|
|
@@ -812,22 +850,22 @@ class Ue {
|
|
|
812
850
|
}) : this.dep.trigger());
|
|
813
851
|
}
|
|
814
852
|
}
|
|
815
|
-
function
|
|
853
|
+
function qe(t) {
|
|
816
854
|
return g(t) ? t.value : t;
|
|
817
855
|
}
|
|
818
|
-
class
|
|
856
|
+
class Je {
|
|
819
857
|
constructor(e, n, s) {
|
|
820
858
|
this._object = e, this._key = n, this._defaultValue = s, this.__v_isRef = !0, this._value = void 0, this._raw = u(e);
|
|
821
859
|
let r = !0, o = e;
|
|
822
860
|
if (!d(e) || !et(String(n)))
|
|
823
861
|
do
|
|
824
|
-
r = !
|
|
862
|
+
r = !H(o) || y(o);
|
|
825
863
|
while (r && (o = o.__v_raw));
|
|
826
864
|
this._shallow = r;
|
|
827
865
|
}
|
|
828
866
|
get value() {
|
|
829
867
|
let e = this._object[this._key];
|
|
830
|
-
return this._shallow && (e =
|
|
868
|
+
return this._shallow && (e = qe(e)), this._value = e === void 0 ? this._defaultValue : e;
|
|
831
869
|
}
|
|
832
870
|
set value(e) {
|
|
833
871
|
if (this._shallow && g(this._raw[this._key])) {
|
|
@@ -843,7 +881,7 @@ class Ye {
|
|
|
843
881
|
return Ce(this._raw, this._key);
|
|
844
882
|
}
|
|
845
883
|
}
|
|
846
|
-
class
|
|
884
|
+
class Be {
|
|
847
885
|
constructor(e) {
|
|
848
886
|
this._getter = e, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
|
|
849
887
|
}
|
|
@@ -851,24 +889,24 @@ class qe {
|
|
|
851
889
|
return this._value = this._getter();
|
|
852
890
|
}
|
|
853
891
|
}
|
|
854
|
-
function
|
|
855
|
-
return g(t) ? t : V(t) ? new
|
|
892
|
+
function Ye(t, e, n) {
|
|
893
|
+
return g(t) ? t : V(t) ? new Be(t) : _(t) && arguments.length > 1 ? Ge(t, e, n) : qt(t);
|
|
856
894
|
}
|
|
857
895
|
function Ge(t, e, n) {
|
|
858
|
-
return new
|
|
896
|
+
return new Je(t, e, n);
|
|
859
897
|
}
|
|
860
|
-
const
|
|
898
|
+
const A = [];
|
|
861
899
|
function Qe(t) {
|
|
862
|
-
|
|
900
|
+
A.push(t);
|
|
863
901
|
}
|
|
864
902
|
function Xe() {
|
|
865
|
-
|
|
903
|
+
A.pop();
|
|
866
904
|
}
|
|
867
905
|
let ct = !1;
|
|
868
906
|
function P(t, ...e) {
|
|
869
907
|
if (ct) return;
|
|
870
908
|
ct = !0;
|
|
871
|
-
const n =
|
|
909
|
+
const n = A.length ? A[A.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = Ze();
|
|
872
910
|
if (s)
|
|
873
911
|
Ot(
|
|
874
912
|
s,
|
|
@@ -896,7 +934,7 @@ function P(t, ...e) {
|
|
|
896
934
|
ct = !1;
|
|
897
935
|
}
|
|
898
936
|
function Ze() {
|
|
899
|
-
let t =
|
|
937
|
+
let t = A[A.length - 1];
|
|
900
938
|
if (!t)
|
|
901
939
|
return [];
|
|
902
940
|
const e = [];
|
|
@@ -929,13 +967,13 @@ function en({ vnode: t, recurseCount: e }) {
|
|
|
929
967
|
function nn(t) {
|
|
930
968
|
const e = [], n = Object.keys(t);
|
|
931
969
|
return n.slice(0, 3).forEach((s) => {
|
|
932
|
-
e.push(...
|
|
970
|
+
e.push(...Jt(s, t[s]));
|
|
933
971
|
}), n.length > 3 && e.push(" ..."), e;
|
|
934
972
|
}
|
|
935
|
-
function
|
|
936
|
-
return N(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : g(e) ? (e =
|
|
973
|
+
function Jt(t, e, n) {
|
|
974
|
+
return N(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : g(e) ? (e = Jt(t, u(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : V(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = u(e), n ? e : [`${t}=`, e]);
|
|
937
975
|
}
|
|
938
|
-
const
|
|
976
|
+
const Bt = {
|
|
939
977
|
sp: "serverPrefetch hook",
|
|
940
978
|
bc: "beforeCreate hook",
|
|
941
979
|
c: "created hook",
|
|
@@ -972,19 +1010,19 @@ function Ot(t, e, n, s) {
|
|
|
972
1010
|
try {
|
|
973
1011
|
return s ? t(...s) : t();
|
|
974
1012
|
} catch (r) {
|
|
975
|
-
|
|
1013
|
+
Yt(r, e, n);
|
|
976
1014
|
}
|
|
977
1015
|
}
|
|
978
|
-
function
|
|
1016
|
+
function Yt(t, e, n, s = !0) {
|
|
979
1017
|
const r = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || ft;
|
|
980
1018
|
if (e) {
|
|
981
1019
|
let c = e.parent;
|
|
982
|
-
const l = e.proxy, f = process.env.NODE_ENV !== "production" ?
|
|
1020
|
+
const l = e.proxy, f = process.env.NODE_ENV !== "production" ? Bt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
983
1021
|
for (; c; ) {
|
|
984
|
-
const
|
|
985
|
-
if (
|
|
986
|
-
for (let a = 0; a <
|
|
987
|
-
if (
|
|
1022
|
+
const p = c.ec;
|
|
1023
|
+
if (p) {
|
|
1024
|
+
for (let a = 0; a < p.length; a++)
|
|
1025
|
+
if (p[a](t, l, f) === !1)
|
|
988
1026
|
return;
|
|
989
1027
|
}
|
|
990
1028
|
c = c.parent;
|
|
@@ -1002,7 +1040,7 @@ function Bt(t, e, n, s = !0) {
|
|
|
1002
1040
|
}
|
|
1003
1041
|
function rn(t, e, n, s = !0, r = !1) {
|
|
1004
1042
|
if (process.env.NODE_ENV !== "production") {
|
|
1005
|
-
const o =
|
|
1043
|
+
const o = Bt[e];
|
|
1006
1044
|
if (n && Qe(n), P(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Xe(), s)
|
|
1007
1045
|
throw t;
|
|
1008
1046
|
console.error(t);
|
|
@@ -1014,7 +1052,7 @@ function rn(t, e, n, s = !0, r = !1) {
|
|
|
1014
1052
|
}
|
|
1015
1053
|
const m = [];
|
|
1016
1054
|
let O = -1;
|
|
1017
|
-
const
|
|
1055
|
+
const $ = [];
|
|
1018
1056
|
let C = null, T = 0;
|
|
1019
1057
|
const sn = /* @__PURE__ */ Promise.resolve();
|
|
1020
1058
|
let _t = null;
|
|
@@ -1038,14 +1076,14 @@ function Gt() {
|
|
|
1038
1076
|
_t || (_t = sn.then(Qt));
|
|
1039
1077
|
}
|
|
1040
1078
|
function ln(t) {
|
|
1041
|
-
d(t) ?
|
|
1079
|
+
d(t) ? $.push(...t) : C && t.id === -1 ? C.splice(T + 1, 0, t) : t.flags & 1 || ($.push(t), t.flags |= 1), Gt();
|
|
1042
1080
|
}
|
|
1043
1081
|
function un(t) {
|
|
1044
|
-
if (
|
|
1045
|
-
const e = [...new Set(
|
|
1082
|
+
if ($.length) {
|
|
1083
|
+
const e = [...new Set($)].sort(
|
|
1046
1084
|
(n, s) => z(n) - z(s)
|
|
1047
1085
|
);
|
|
1048
|
-
if (
|
|
1086
|
+
if ($.length = 0, C) {
|
|
1049
1087
|
C.push(...e);
|
|
1050
1088
|
return;
|
|
1051
1089
|
}
|
|
@@ -1059,7 +1097,7 @@ function un(t) {
|
|
|
1059
1097
|
const z = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
|
|
1060
1098
|
function Qt(t) {
|
|
1061
1099
|
process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
|
|
1062
|
-
const e = process.env.NODE_ENV !== "production" ? (n) => Xt(t, n) :
|
|
1100
|
+
const e = process.env.NODE_ENV !== "production" ? (n) => Xt(t, n) : $t;
|
|
1063
1101
|
try {
|
|
1064
1102
|
for (O = 0; O < m.length; O++) {
|
|
1065
1103
|
const n = m[O];
|
|
@@ -1078,14 +1116,14 @@ function Qt(t) {
|
|
|
1078
1116
|
const n = m[O];
|
|
1079
1117
|
n && (n.flags &= -2);
|
|
1080
1118
|
}
|
|
1081
|
-
O = -1, m.length = 0, un(t), _t = null, (m.length ||
|
|
1119
|
+
O = -1, m.length = 0, un(t), _t = null, (m.length || $.length) && Qt(t);
|
|
1082
1120
|
}
|
|
1083
1121
|
}
|
|
1084
1122
|
function Xt(t, e) {
|
|
1085
1123
|
const n = t.get(e) || 0;
|
|
1086
1124
|
if (n > on) {
|
|
1087
1125
|
const s = e.i, r = s && ie(s.type);
|
|
1088
|
-
return
|
|
1126
|
+
return Yt(
|
|
1089
1127
|
`Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
1090
1128
|
null,
|
|
1091
1129
|
10
|
|
@@ -1096,8 +1134,8 @@ function Xt(t, e) {
|
|
|
1096
1134
|
const at = /* @__PURE__ */ new Map();
|
|
1097
1135
|
process.env.NODE_ENV !== "production" && (nt().__VUE_HMR_RUNTIME__ = {
|
|
1098
1136
|
createRecord: lt(fn),
|
|
1099
|
-
rerender: lt(
|
|
1100
|
-
reload: lt(
|
|
1137
|
+
rerender: lt(hn),
|
|
1138
|
+
reload: lt(pn)
|
|
1101
1139
|
});
|
|
1102
1140
|
const Q = /* @__PURE__ */ new Map();
|
|
1103
1141
|
function fn(t, e) {
|
|
@@ -1109,13 +1147,13 @@ function fn(t, e) {
|
|
|
1109
1147
|
function X(t) {
|
|
1110
1148
|
return ae(t) ? t.__vccOpts : t;
|
|
1111
1149
|
}
|
|
1112
|
-
function
|
|
1150
|
+
function hn(t, e) {
|
|
1113
1151
|
const n = Q.get(t);
|
|
1114
1152
|
n && (n.initialDef.render = e, [...n.instances].forEach((s) => {
|
|
1115
1153
|
e && (s.render = e, X(s.type).render = e), s.renderCache = [], s.job.flags & 8 || s.update();
|
|
1116
1154
|
}));
|
|
1117
1155
|
}
|
|
1118
|
-
function
|
|
1156
|
+
function pn(t, e) {
|
|
1119
1157
|
const n = Q.get(t);
|
|
1120
1158
|
if (!n) return;
|
|
1121
1159
|
e = X(e), At(n.initialDef, e);
|
|
@@ -1149,17 +1187,17 @@ function lt(t) {
|
|
|
1149
1187
|
}
|
|
1150
1188
|
};
|
|
1151
1189
|
}
|
|
1152
|
-
let
|
|
1190
|
+
let D, B = [];
|
|
1153
1191
|
function Zt(t, e) {
|
|
1154
1192
|
var n, s;
|
|
1155
|
-
|
|
1193
|
+
D = t, D ? (D.enabled = !0, B.forEach(({ event: r, args: o }) => D.emit(r, ...o)), B = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
|
|
1156
1194
|
window.HTMLElement && // also exclude jsdom
|
|
1157
1195
|
// eslint-disable-next-line no-restricted-syntax
|
|
1158
1196
|
!((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
|
|
1159
1197
|
Zt(o, e);
|
|
1160
1198
|
}), setTimeout(() => {
|
|
1161
|
-
|
|
1162
|
-
}, 3e3)) :
|
|
1199
|
+
D || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, B = []);
|
|
1200
|
+
}, 3e3)) : B = [];
|
|
1163
1201
|
}
|
|
1164
1202
|
let Z = null, dn = null;
|
|
1165
1203
|
const _n = (t) => t.__isTeleport;
|
|
@@ -1172,13 +1210,13 @@ const gn = Symbol.for("v-ndc"), bn = {};
|
|
|
1172
1210
|
process.env.NODE_ENV !== "production" && (bn.ownKeys = (t) => (P(
|
|
1173
1211
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1174
1212
|
), Reflect.ownKeys(t)));
|
|
1175
|
-
const mn = {}, ee = (t) => Object.getPrototypeOf(t) === mn,
|
|
1213
|
+
const mn = {}, ee = (t) => Object.getPrototypeOf(t) === mn, yn = (t) => t.__isSuspense, ne = Symbol.for("v-fgt"), Sn = Symbol.for("v-txt"), En = Symbol.for("v-cmt");
|
|
1176
1214
|
function wn(t) {
|
|
1177
1215
|
return t ? t.__v_isVNode === !0 : !1;
|
|
1178
1216
|
}
|
|
1179
1217
|
const On = (...t) => se(
|
|
1180
1218
|
...t
|
|
1181
|
-
), re = ({ key: t }) => t ?? null,
|
|
1219
|
+
), re = ({ key: t }) => t ?? null, G = ({
|
|
1182
1220
|
ref: t,
|
|
1183
1221
|
ref_key: e,
|
|
1184
1222
|
ref_for: n
|
|
@@ -1190,7 +1228,7 @@ function Nn(t, e = null, n = null, s = 0, r = null, o = t === ne ? 0 : 1, i = !1
|
|
|
1190
1228
|
type: t,
|
|
1191
1229
|
props: e,
|
|
1192
1230
|
key: e && re(e),
|
|
1193
|
-
ref: e &&
|
|
1231
|
+
ref: e && G(e),
|
|
1194
1232
|
scopeId: dn,
|
|
1195
1233
|
slotScopeIds: null,
|
|
1196
1234
|
children: n,
|
|
@@ -1229,10 +1267,10 @@ function se(t, e = null, n = null, s = 0, r = null, o = !1) {
|
|
|
1229
1267
|
if (ae(t) && (t = t.__vccOpts), e) {
|
|
1230
1268
|
e = vn(e);
|
|
1231
1269
|
let { class: c, style: l } = e;
|
|
1232
|
-
c && !N(c) && (e.class = mt(c)), _(l) && (
|
|
1270
|
+
c && !N(c) && (e.class = mt(c)), _(l) && (H(l) && !d(l) && (l = F({}, l)), e.style = bt(l));
|
|
1233
1271
|
}
|
|
1234
|
-
const i = N(t) ? 1 :
|
|
1235
|
-
return process.env.NODE_ENV !== "production" && i & 4 &&
|
|
1272
|
+
const i = N(t) ? 1 : yn(t) ? 128 : _n(t) ? 64 : _(t) ? 4 : V(t) ? 2 : 0;
|
|
1273
|
+
return process.env.NODE_ENV !== "production" && i & 4 && H(t) && (t = u(t), P(
|
|
1236
1274
|
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
1237
1275
|
`
|
|
1238
1276
|
Component that was made reactive: `,
|
|
@@ -1249,10 +1287,10 @@ Component that was made reactive: `,
|
|
|
1249
1287
|
);
|
|
1250
1288
|
}
|
|
1251
1289
|
function vn(t) {
|
|
1252
|
-
return t ?
|
|
1290
|
+
return t ? H(t) || ee(t) ? F({}, t) : t : null;
|
|
1253
1291
|
}
|
|
1254
1292
|
function tt(t, e, n = !1, s = !1) {
|
|
1255
|
-
const { props: r, ref: o, patchFlag: i, children: c, transition: l } = t, f = e ? In(r || {}, e) : r,
|
|
1293
|
+
const { props: r, ref: o, patchFlag: i, children: c, transition: l } = t, f = e ? In(r || {}, e) : r, p = {
|
|
1256
1294
|
__v_isVNode: !0,
|
|
1257
1295
|
__v_skip: !0,
|
|
1258
1296
|
type: t.type,
|
|
@@ -1262,7 +1300,7 @@ function tt(t, e, n = !1, s = !1) {
|
|
|
1262
1300
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1263
1301
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
1264
1302
|
// the refs so the single vnode can be set on multiple refs
|
|
1265
|
-
n && o ? d(o) ? o.concat(
|
|
1303
|
+
n && o ? d(o) ? o.concat(G(e)) : [o, G(e)] : G(e)
|
|
1266
1304
|
) : o,
|
|
1267
1305
|
scopeId: t.scopeId,
|
|
1268
1306
|
slotScopeIds: t.slotScopeIds,
|
|
@@ -1297,16 +1335,16 @@ function tt(t, e, n = !1, s = !1) {
|
|
|
1297
1335
|
ce: t.ce
|
|
1298
1336
|
};
|
|
1299
1337
|
return l && s && te(
|
|
1300
|
-
|
|
1301
|
-
l.clone(
|
|
1302
|
-
),
|
|
1338
|
+
p,
|
|
1339
|
+
l.clone(p)
|
|
1340
|
+
), p;
|
|
1303
1341
|
}
|
|
1304
1342
|
function oe(t) {
|
|
1305
1343
|
const e = tt(t);
|
|
1306
1344
|
return d(t.children) && (e.children = t.children.map(oe)), e;
|
|
1307
1345
|
}
|
|
1308
1346
|
function Cn(t = " ", e = 0) {
|
|
1309
|
-
return Rn(
|
|
1347
|
+
return Rn(Sn, null, t, e);
|
|
1310
1348
|
}
|
|
1311
1349
|
function Nt(t, e) {
|
|
1312
1350
|
let n = 0;
|
|
@@ -1357,7 +1395,7 @@ function In(...t) {
|
|
|
1357
1395
|
);
|
|
1358
1396
|
}
|
|
1359
1397
|
process.env.NODE_ENV;
|
|
1360
|
-
const Vn = /(?:^|[-_])\w/g,
|
|
1398
|
+
const Vn = /(?:^|[-_])\w/g, An = (t) => t.replace(Vn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
|
|
1361
1399
|
function ie(t, e = !0) {
|
|
1362
1400
|
return V(t) ? t.displayName || t.name : t.name || e && t.__name;
|
|
1363
1401
|
}
|
|
@@ -1377,12 +1415,12 @@ function ce(t, e, n = !1) {
|
|
|
1377
1415
|
t.parent.type.components
|
|
1378
1416
|
) || r(t.appContext.components);
|
|
1379
1417
|
}
|
|
1380
|
-
return s ?
|
|
1418
|
+
return s ? An(s) : n ? "App" : "Anonymous";
|
|
1381
1419
|
}
|
|
1382
1420
|
function ae(t) {
|
|
1383
1421
|
return V(t) && "__vccOpts" in t;
|
|
1384
1422
|
}
|
|
1385
|
-
function
|
|
1423
|
+
function xn() {
|
|
1386
1424
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1387
1425
|
return;
|
|
1388
1426
|
const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
|
|
@@ -1393,13 +1431,13 @@ function An() {
|
|
|
1393
1431
|
if (a.__isVue)
|
|
1394
1432
|
return ["div", t, "VueInstance"];
|
|
1395
1433
|
if (g(a)) {
|
|
1396
|
-
const
|
|
1434
|
+
const h = a.value;
|
|
1397
1435
|
return [
|
|
1398
1436
|
"div",
|
|
1399
1437
|
{},
|
|
1400
|
-
["span", t,
|
|
1438
|
+
["span", t, p(a)],
|
|
1401
1439
|
"<",
|
|
1402
|
-
c(
|
|
1440
|
+
c(h),
|
|
1403
1441
|
">"
|
|
1404
1442
|
];
|
|
1405
1443
|
} else {
|
|
@@ -1407,7 +1445,7 @@ function An() {
|
|
|
1407
1445
|
return [
|
|
1408
1446
|
"div",
|
|
1409
1447
|
{},
|
|
1410
|
-
["span", t,
|
|
1448
|
+
["span", t, y(a) ? "ShallowReactive" : "Reactive"],
|
|
1411
1449
|
"<",
|
|
1412
1450
|
c(a),
|
|
1413
1451
|
`>${E(a) ? " (readonly)" : ""}`
|
|
@@ -1416,7 +1454,7 @@ function An() {
|
|
|
1416
1454
|
return [
|
|
1417
1455
|
"div",
|
|
1418
1456
|
{},
|
|
1419
|
-
["span", t,
|
|
1457
|
+
["span", t, y(a) ? "ShallowReadonly" : "Readonly"],
|
|
1420
1458
|
"<",
|
|
1421
1459
|
c(a),
|
|
1422
1460
|
">"
|
|
@@ -1437,12 +1475,12 @@ function An() {
|
|
|
1437
1475
|
}
|
|
1438
1476
|
};
|
|
1439
1477
|
function o(a) {
|
|
1440
|
-
const
|
|
1441
|
-
a.type.props && a.props &&
|
|
1478
|
+
const h = [];
|
|
1479
|
+
a.type.props && a.props && h.push(i("props", u(a.props))), a.setupState !== ft && h.push(i("setup", a.setupState)), a.data !== ft && h.push(i("data", u(a.data)));
|
|
1442
1480
|
const b = l(a, "computed");
|
|
1443
|
-
b &&
|
|
1444
|
-
const
|
|
1445
|
-
return
|
|
1481
|
+
b && h.push(i("computed", b));
|
|
1482
|
+
const S = l(a, "inject");
|
|
1483
|
+
return S && h.push(i("injected", S)), h.push([
|
|
1446
1484
|
"div",
|
|
1447
1485
|
{},
|
|
1448
1486
|
[
|
|
@@ -1453,10 +1491,10 @@ function An() {
|
|
|
1453
1491
|
"$ (internal): "
|
|
1454
1492
|
],
|
|
1455
1493
|
["object", { object: a }]
|
|
1456
|
-
]),
|
|
1494
|
+
]), h;
|
|
1457
1495
|
}
|
|
1458
|
-
function i(a,
|
|
1459
|
-
return
|
|
1496
|
+
function i(a, h) {
|
|
1497
|
+
return h = F({}, h), Object.keys(h).length ? [
|
|
1460
1498
|
"div",
|
|
1461
1499
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
1462
1500
|
[
|
|
@@ -1471,34 +1509,34 @@ function An() {
|
|
|
1471
1509
|
{
|
|
1472
1510
|
style: "padding-left:1.25em"
|
|
1473
1511
|
},
|
|
1474
|
-
...Object.keys(
|
|
1512
|
+
...Object.keys(h).map((b) => [
|
|
1475
1513
|
"div",
|
|
1476
1514
|
{},
|
|
1477
1515
|
["span", s, b + ": "],
|
|
1478
|
-
c(
|
|
1516
|
+
c(h[b], !1)
|
|
1479
1517
|
])
|
|
1480
1518
|
]
|
|
1481
1519
|
] : ["span", {}];
|
|
1482
1520
|
}
|
|
1483
|
-
function c(a,
|
|
1484
|
-
return typeof a == "number" ? ["span", e, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", s, a] : _(a) ? ["object", { object:
|
|
1521
|
+
function c(a, h = !0) {
|
|
1522
|
+
return typeof a == "number" ? ["span", e, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", s, a] : _(a) ? ["object", { object: h ? u(a) : a }] : ["span", n, String(a)];
|
|
1485
1523
|
}
|
|
1486
|
-
function l(a,
|
|
1524
|
+
function l(a, h) {
|
|
1487
1525
|
const b = a.type;
|
|
1488
1526
|
if (V(b))
|
|
1489
1527
|
return;
|
|
1490
|
-
const
|
|
1528
|
+
const S = {};
|
|
1491
1529
|
for (const j in a.ctx)
|
|
1492
|
-
f(b, j,
|
|
1493
|
-
return
|
|
1530
|
+
f(b, j, h) && (S[j] = a.ctx[j]);
|
|
1531
|
+
return S;
|
|
1494
1532
|
}
|
|
1495
|
-
function f(a,
|
|
1496
|
-
const
|
|
1497
|
-
if (d(
|
|
1533
|
+
function f(a, h, b) {
|
|
1534
|
+
const S = a[b];
|
|
1535
|
+
if (d(S) && S.includes(h) || _(S) && h in S || a.extends && f(a.extends, h, b) || a.mixins && a.mixins.some((j) => f(j, h, b)))
|
|
1498
1536
|
return !0;
|
|
1499
1537
|
}
|
|
1500
|
-
function
|
|
1501
|
-
return
|
|
1538
|
+
function p(a) {
|
|
1539
|
+
return y(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
|
|
1502
1540
|
}
|
|
1503
1541
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
|
|
1504
1542
|
}
|
|
@@ -1506,7 +1544,7 @@ process.env.NODE_ENV;
|
|
|
1506
1544
|
process.env.NODE_ENV;
|
|
1507
1545
|
process.env.NODE_ENV;
|
|
1508
1546
|
function Tn() {
|
|
1509
|
-
|
|
1547
|
+
xn();
|
|
1510
1548
|
}
|
|
1511
1549
|
process.env.NODE_ENV !== "production" && Tn();
|
|
1512
1550
|
class Pn {
|
|
@@ -1516,6 +1554,7 @@ class Pn {
|
|
|
1516
1554
|
_store;
|
|
1517
1555
|
_subscriptions = {};
|
|
1518
1556
|
_storeSubscribe;
|
|
1557
|
+
static _requiredKeys;
|
|
1519
1558
|
get debug() {
|
|
1520
1559
|
return this._debug;
|
|
1521
1560
|
}
|
|
@@ -1563,7 +1602,7 @@ class Pn {
|
|
|
1563
1602
|
* @param value
|
|
1564
1603
|
*/
|
|
1565
1604
|
addToState(e, n) {
|
|
1566
|
-
this.isOptionApi() || n?.value || (n =
|
|
1605
|
+
this.isOptionApi() || n?.value || (n = qt(n)), this.state[e] = n, this.store[e] = Ye(this.state, e);
|
|
1567
1606
|
}
|
|
1568
1607
|
addSubscription(e, n) {
|
|
1569
1608
|
this._subscriptions[e] = n;
|
|
@@ -1576,14 +1615,17 @@ class Pn {
|
|
|
1576
1615
|
* @returns
|
|
1577
1616
|
*/
|
|
1578
1617
|
static customizeStore(e, n, s = !1) {
|
|
1579
|
-
if (n.storeOptions)
|
|
1618
|
+
if (n.storeOptions && this.hasRequiredKeys(n.storeOptions))
|
|
1580
1619
|
return new this(e, n, s);
|
|
1581
1620
|
}
|
|
1582
1621
|
debugLog(e, n) {
|
|
1583
|
-
this._debug &&
|
|
1622
|
+
this._debug && Y.log(e, n);
|
|
1584
1623
|
}
|
|
1585
1624
|
hasDeniedFirstChar(e) {
|
|
1586
|
-
return
|
|
1625
|
+
return Dt(e[0]);
|
|
1626
|
+
}
|
|
1627
|
+
static hasRequiredKeys(e) {
|
|
1628
|
+
return this._requiredKeys === void 0 || this._requiredKeys?.every((n) => !!e[n]);
|
|
1587
1629
|
}
|
|
1588
1630
|
getOption(e) {
|
|
1589
1631
|
return this.options && this.options[e];
|
|
@@ -1612,12 +1654,11 @@ function Fn(t, e = !1) {
|
|
|
1612
1654
|
return typeof e != "boolean" && (e = !1), U.debug = e, U.subscribers = t, U.plugin.bind(U);
|
|
1613
1655
|
}
|
|
1614
1656
|
export {
|
|
1615
|
-
|
|
1657
|
+
fe as CustomConsole,
|
|
1658
|
+
$n as PluginSubscriber,
|
|
1616
1659
|
U as PluginSubscription,
|
|
1617
1660
|
Pn as Store,
|
|
1618
1661
|
Fn as createPlugin,
|
|
1619
1662
|
Mn as defineAStore,
|
|
1620
|
-
G as eppsLog,
|
|
1621
|
-
fe as eppsLogError,
|
|
1622
1663
|
ut as isEmpty
|
|
1623
1664
|
};
|