pinia-plugin-persist-state 0.0.0-beta.3 → 0.0.1
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.
- package/dist/pinia-plugin-persist-state.js +565 -556
- package/dist/pinia-plugin-persist-state.umd.cjs +7 -7
- package/dist/services/Crypt.d.ts +23 -0
- package/dist/services/IndexedDB.d.ts +34 -0
- package/dist/services/Persister.d.ts +15 -0
- package/dist/services/WindowStorage.d.ts +10 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -68,10 +68,11 @@ class un {
|
|
|
68
68
|
this._name = t, this._createInstance = n, s && (this._console = s);
|
|
69
69
|
}
|
|
70
70
|
invoke({ store: t, options: n }, s) {
|
|
71
|
-
return this._storeInstance = this._createInstance(t, { ...n, ...this.pluginOptions }, s, this.console), this._storeInstance ? (this.
|
|
71
|
+
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;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
class fn {
|
|
75
|
+
_className;
|
|
75
76
|
_console;
|
|
76
77
|
_debug = !1;
|
|
77
78
|
get console() {
|
|
@@ -87,7 +88,7 @@ class fn {
|
|
|
87
88
|
this._debug = t;
|
|
88
89
|
}
|
|
89
90
|
constructor(t, n) {
|
|
90
|
-
this._debug = t, n && (this._console = n);
|
|
91
|
+
this._debug = t, this._className = this.constructor.name, n && (this._console = n);
|
|
91
92
|
}
|
|
92
93
|
debugLog(...t) {
|
|
93
94
|
this._debug && (Array.isArray(t) && (t[0] = `${this._className} - ${t[0]}`), this.console.log(...t));
|
|
@@ -152,59 +153,55 @@ class _n {
|
|
|
152
153
|
);
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
|
-
|
|
156
|
-
function yn(e) {
|
|
157
|
-
return gn.has(e[0]);
|
|
158
|
-
}
|
|
159
|
-
function W(e) {
|
|
156
|
+
function Y(e) {
|
|
160
157
|
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");
|
|
161
158
|
}
|
|
162
159
|
// @__NO_SIDE_EFFECTS__
|
|
163
|
-
function
|
|
160
|
+
function gn(e) {
|
|
164
161
|
const t = /* @__PURE__ */ Object.create(null);
|
|
165
162
|
for (const n of e.split(",")) t[n] = 1;
|
|
166
163
|
return (n) => n in t;
|
|
167
164
|
}
|
|
168
|
-
const
|
|
165
|
+
const Me = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
169
166
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
170
|
-
const
|
|
171
|
-
},
|
|
172
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97),
|
|
167
|
+
const yn = () => {
|
|
168
|
+
}, mn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
169
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), bn = (e) => e.startsWith("onUpdate:"), q = Object.assign, Sn = Object.prototype.hasOwnProperty, Fe = (e, t) => Sn.call(e, t), g = Array.isArray, te = (e) => gt(e) === "[object Map]", T = (e) => typeof e == "function", R = (e) => typeof e == "string", H = (e) => typeof e == "symbol", y = (e) => e !== null && typeof e == "object", vn = Object.prototype.toString, gt = (e) => vn.call(e), yt = (e) => gt(e).slice(8, -1), Ee = (e) => R(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, wn = (e) => {
|
|
173
170
|
const t = /* @__PURE__ */ Object.create(null);
|
|
174
171
|
return ((n) => t[n] || (t[n] = e(n)));
|
|
175
|
-
},
|
|
172
|
+
}, En = wn((e) => e.charAt(0).toUpperCase() + e.slice(1)), ne = (e, t) => !Object.is(e, t);
|
|
176
173
|
let it;
|
|
177
|
-
const
|
|
178
|
-
function
|
|
174
|
+
const Ne = () => it || (it = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
175
|
+
function ze(e) {
|
|
179
176
|
if (g(e)) {
|
|
180
177
|
const t = {};
|
|
181
178
|
for (let n = 0; n < e.length; n++) {
|
|
182
|
-
const s = e[n], r =
|
|
179
|
+
const s = e[n], r = R(s) ? Vn(s) : ze(s);
|
|
183
180
|
if (r)
|
|
184
181
|
for (const o in r)
|
|
185
182
|
t[o] = r[o];
|
|
186
183
|
}
|
|
187
184
|
return t;
|
|
188
|
-
} else if (
|
|
185
|
+
} else if (R(e) || y(e))
|
|
189
186
|
return e;
|
|
190
187
|
}
|
|
191
|
-
const
|
|
188
|
+
const Nn = /;(?![^(]*\))/g, On = /:([^]+)/, kn = /\/\*[^]*?\*\//g;
|
|
192
189
|
function Vn(e) {
|
|
193
190
|
const t = {};
|
|
194
|
-
return e.replace(
|
|
191
|
+
return e.replace(kn, "").split(Nn).forEach((n) => {
|
|
195
192
|
if (n) {
|
|
196
|
-
const s = n.split(
|
|
193
|
+
const s = n.split(On);
|
|
197
194
|
s.length > 1 && (t[s[0].trim()] = s[1].trim());
|
|
198
195
|
}
|
|
199
196
|
}), t;
|
|
200
197
|
}
|
|
201
|
-
function
|
|
198
|
+
function Be(e) {
|
|
202
199
|
let t = "";
|
|
203
|
-
if (
|
|
200
|
+
if (R(e))
|
|
204
201
|
t = e;
|
|
205
202
|
else if (g(e))
|
|
206
203
|
for (let n = 0; n < e.length; n++) {
|
|
207
|
-
const s =
|
|
204
|
+
const s = Be(e[n]);
|
|
208
205
|
s && (t += s + " ");
|
|
209
206
|
}
|
|
210
207
|
else if (y(e))
|
|
@@ -212,10 +209,10 @@ function We(e) {
|
|
|
212
209
|
e[n] && (t += n + " ");
|
|
213
210
|
return t.trim();
|
|
214
211
|
}
|
|
215
|
-
function
|
|
212
|
+
function Z(e, ...t) {
|
|
216
213
|
console.warn(`[Vue warn] ${e}`, ...t);
|
|
217
214
|
}
|
|
218
|
-
let mt = 0,
|
|
215
|
+
let mt = 0, Ve;
|
|
219
216
|
function Je() {
|
|
220
217
|
mt++;
|
|
221
218
|
}
|
|
@@ -223,9 +220,9 @@ function Ye() {
|
|
|
223
220
|
if (--mt > 0)
|
|
224
221
|
return;
|
|
225
222
|
let e;
|
|
226
|
-
for (;
|
|
227
|
-
let t =
|
|
228
|
-
for (
|
|
223
|
+
for (; Ve; ) {
|
|
224
|
+
let t = Ve;
|
|
225
|
+
for (Ve = void 0; t; ) {
|
|
229
226
|
const n = t.next;
|
|
230
227
|
if (t.next = void 0, t.flags &= -9, t.flags & 1)
|
|
231
228
|
try {
|
|
@@ -238,7 +235,7 @@ function Ye() {
|
|
|
238
235
|
}
|
|
239
236
|
if (e) throw e;
|
|
240
237
|
}
|
|
241
|
-
class
|
|
238
|
+
class Cn {
|
|
242
239
|
// TODO isolatedDeclarations "__v_skip"
|
|
243
240
|
constructor(t) {
|
|
244
241
|
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);
|
|
@@ -254,7 +251,7 @@ class In {
|
|
|
254
251
|
if (process.env.NODE_ENV !== "production")
|
|
255
252
|
for (let n = this.subsHead; n; n = n.nextSub)
|
|
256
253
|
n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
|
|
257
|
-
|
|
254
|
+
q(
|
|
258
255
|
{
|
|
259
256
|
effect: n.sub
|
|
260
257
|
},
|
|
@@ -292,118 +289,118 @@ function P(e, t, n, s, r, o) {
|
|
|
292
289
|
if (Je(), t === "clear")
|
|
293
290
|
i.forEach(c);
|
|
294
291
|
else {
|
|
295
|
-
const l = g(e), f = l &&
|
|
292
|
+
const l = g(e), f = l && Ee(n);
|
|
296
293
|
if (l && n === "length") {
|
|
297
294
|
const h = Number(s);
|
|
298
295
|
i.forEach((a, u) => {
|
|
299
|
-
(u === "length" || u === at || !
|
|
296
|
+
(u === "length" || u === at || !H(u) && u >= h) && c(a);
|
|
300
297
|
});
|
|
301
298
|
} else
|
|
302
299
|
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), f && c(i.get(at)), t) {
|
|
303
300
|
case "add":
|
|
304
|
-
l ? f && c(i.get("length")) : (c(i.get(Ce)),
|
|
301
|
+
l ? f && c(i.get("length")) : (c(i.get(Ce)), te(e) && c(i.get(ct)));
|
|
305
302
|
break;
|
|
306
303
|
case "delete":
|
|
307
|
-
l || (c(i.get(Ce)),
|
|
304
|
+
l || (c(i.get(Ce)), te(e) && c(i.get(ct)));
|
|
308
305
|
break;
|
|
309
306
|
case "set":
|
|
310
|
-
|
|
307
|
+
te(e) && c(i.get(Ce));
|
|
311
308
|
break;
|
|
312
309
|
}
|
|
313
310
|
}
|
|
314
311
|
Ye();
|
|
315
312
|
}
|
|
316
|
-
function
|
|
313
|
+
function Rn(e, t) {
|
|
317
314
|
const n = bt.get(e);
|
|
318
315
|
return n && n.get(t);
|
|
319
316
|
}
|
|
320
|
-
function
|
|
321
|
-
const t = p(e);
|
|
322
|
-
return t === e || v(e) ? t : t.map(
|
|
317
|
+
function L(e) {
|
|
318
|
+
const t = /* @__PURE__ */ p(e);
|
|
319
|
+
return t === e || /* @__PURE__ */ v(e) ? t : t.map(x);
|
|
323
320
|
}
|
|
324
321
|
function Ge(e) {
|
|
325
|
-
return e = p(e), e;
|
|
322
|
+
return e = /* @__PURE__ */ p(e), e;
|
|
326
323
|
}
|
|
327
|
-
function
|
|
328
|
-
return
|
|
324
|
+
function E(e, t) {
|
|
325
|
+
return /* @__PURE__ */ N(e) ? he(/* @__PURE__ */ Xe(e) ? x(t) : t) : x(t);
|
|
329
326
|
}
|
|
330
|
-
const
|
|
327
|
+
const xn = {
|
|
331
328
|
__proto__: null,
|
|
332
329
|
[Symbol.iterator]() {
|
|
333
|
-
return
|
|
330
|
+
return Re(this, Symbol.iterator, (e) => E(this, e));
|
|
334
331
|
},
|
|
335
332
|
concat(...e) {
|
|
336
|
-
return
|
|
337
|
-
...e.map((t) => g(t) ?
|
|
333
|
+
return L(this).concat(
|
|
334
|
+
...e.map((t) => g(t) ? L(t) : t)
|
|
338
335
|
);
|
|
339
336
|
},
|
|
340
337
|
entries() {
|
|
341
|
-
return
|
|
338
|
+
return Re(this, "entries", (e) => (e[1] = E(this, e[1]), e));
|
|
342
339
|
},
|
|
343
340
|
every(e, t) {
|
|
344
|
-
return
|
|
341
|
+
return k(this, "every", e, t, void 0, arguments);
|
|
345
342
|
},
|
|
346
343
|
filter(e, t) {
|
|
347
|
-
return
|
|
344
|
+
return k(
|
|
348
345
|
this,
|
|
349
346
|
"filter",
|
|
350
347
|
e,
|
|
351
348
|
t,
|
|
352
|
-
(n) => n.map((s) =>
|
|
349
|
+
(n) => n.map((s) => E(this, s)),
|
|
353
350
|
arguments
|
|
354
351
|
);
|
|
355
352
|
},
|
|
356
353
|
find(e, t) {
|
|
357
|
-
return
|
|
354
|
+
return k(
|
|
358
355
|
this,
|
|
359
356
|
"find",
|
|
360
357
|
e,
|
|
361
358
|
t,
|
|
362
|
-
(n) =>
|
|
359
|
+
(n) => E(this, n),
|
|
363
360
|
arguments
|
|
364
361
|
);
|
|
365
362
|
},
|
|
366
363
|
findIndex(e, t) {
|
|
367
|
-
return
|
|
364
|
+
return k(this, "findIndex", e, t, void 0, arguments);
|
|
368
365
|
},
|
|
369
366
|
findLast(e, t) {
|
|
370
|
-
return
|
|
367
|
+
return k(
|
|
371
368
|
this,
|
|
372
369
|
"findLast",
|
|
373
370
|
e,
|
|
374
371
|
t,
|
|
375
|
-
(n) =>
|
|
372
|
+
(n) => E(this, n),
|
|
376
373
|
arguments
|
|
377
374
|
);
|
|
378
375
|
},
|
|
379
376
|
findLastIndex(e, t) {
|
|
380
|
-
return
|
|
377
|
+
return k(this, "findLastIndex", e, t, void 0, arguments);
|
|
381
378
|
},
|
|
382
379
|
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
383
380
|
forEach(e, t) {
|
|
384
|
-
return
|
|
381
|
+
return k(this, "forEach", e, t, void 0, arguments);
|
|
385
382
|
},
|
|
386
383
|
includes(...e) {
|
|
387
|
-
return
|
|
384
|
+
return xe(this, "includes", e);
|
|
388
385
|
},
|
|
389
386
|
indexOf(...e) {
|
|
390
|
-
return
|
|
387
|
+
return xe(this, "indexOf", e);
|
|
391
388
|
},
|
|
392
389
|
join(e) {
|
|
393
|
-
return
|
|
390
|
+
return L(this).join(e);
|
|
394
391
|
},
|
|
395
392
|
// keys() iterator only reads `length`, no optimization required
|
|
396
393
|
lastIndexOf(...e) {
|
|
397
|
-
return
|
|
394
|
+
return xe(this, "lastIndexOf", e);
|
|
398
395
|
},
|
|
399
396
|
map(e, t) {
|
|
400
|
-
return
|
|
397
|
+
return k(this, "map", e, t, void 0, arguments);
|
|
401
398
|
},
|
|
402
399
|
pop() {
|
|
403
|
-
return
|
|
400
|
+
return ee(this, "pop");
|
|
404
401
|
},
|
|
405
402
|
push(...e) {
|
|
406
|
-
return
|
|
403
|
+
return ee(this, "push", e);
|
|
407
404
|
},
|
|
408
405
|
reduce(e, ...t) {
|
|
409
406
|
return lt(this, "reduce", e, t);
|
|
@@ -412,48 +409,48 @@ const Rn = {
|
|
|
412
409
|
return lt(this, "reduceRight", e, t);
|
|
413
410
|
},
|
|
414
411
|
shift() {
|
|
415
|
-
return
|
|
412
|
+
return ee(this, "shift");
|
|
416
413
|
},
|
|
417
414
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
418
415
|
some(e, t) {
|
|
419
|
-
return
|
|
416
|
+
return k(this, "some", e, t, void 0, arguments);
|
|
420
417
|
},
|
|
421
418
|
splice(...e) {
|
|
422
|
-
return
|
|
419
|
+
return ee(this, "splice", e);
|
|
423
420
|
},
|
|
424
421
|
toReversed() {
|
|
425
|
-
return
|
|
422
|
+
return L(this).toReversed();
|
|
426
423
|
},
|
|
427
424
|
toSorted(e) {
|
|
428
|
-
return
|
|
425
|
+
return L(this).toSorted(e);
|
|
429
426
|
},
|
|
430
427
|
toSpliced(...e) {
|
|
431
|
-
return
|
|
428
|
+
return L(this).toSpliced(...e);
|
|
432
429
|
},
|
|
433
430
|
unshift(...e) {
|
|
434
|
-
return
|
|
431
|
+
return ee(this, "unshift", e);
|
|
435
432
|
},
|
|
436
433
|
values() {
|
|
437
|
-
return
|
|
434
|
+
return Re(this, "values", (e) => E(this, e));
|
|
438
435
|
}
|
|
439
436
|
};
|
|
440
|
-
function
|
|
437
|
+
function Re(e, t, n) {
|
|
441
438
|
const s = Ge(e), r = s[t]();
|
|
442
|
-
return s !== e &&
|
|
439
|
+
return s !== e && !/* @__PURE__ */ v(e) && (r._next = r.next, r.next = () => {
|
|
443
440
|
const o = r._next();
|
|
444
441
|
return o.done || (o.value = n(o.value)), o;
|
|
445
442
|
}), r;
|
|
446
443
|
}
|
|
447
|
-
const
|
|
448
|
-
function
|
|
449
|
-
const i = Ge(e), c = i !== e &&
|
|
450
|
-
if (l !==
|
|
444
|
+
const In = Array.prototype;
|
|
445
|
+
function k(e, t, n, s, r, o) {
|
|
446
|
+
const i = Ge(e), c = i !== e && !/* @__PURE__ */ v(e), l = i[t];
|
|
447
|
+
if (l !== In[t]) {
|
|
451
448
|
const a = l.apply(e, o);
|
|
452
|
-
return c ?
|
|
449
|
+
return c ? x(a) : a;
|
|
453
450
|
}
|
|
454
451
|
let f = n;
|
|
455
452
|
i !== e && (c ? f = function(a, u) {
|
|
456
|
-
return n.call(this,
|
|
453
|
+
return n.call(this, E(e, a), u, e);
|
|
457
454
|
} : n.length > 2 && (f = function(a, u) {
|
|
458
455
|
return n.call(this, a, u, e);
|
|
459
456
|
}));
|
|
@@ -461,28 +458,30 @@ function O(e, t, n, s, r, o) {
|
|
|
461
458
|
return c && r ? r(h) : h;
|
|
462
459
|
}
|
|
463
460
|
function lt(e, t, n, s) {
|
|
464
|
-
const r = Ge(e);
|
|
465
|
-
let
|
|
466
|
-
|
|
467
|
-
return n.call(this,
|
|
468
|
-
}) :
|
|
469
|
-
return n.call(this,
|
|
470
|
-
})
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
461
|
+
const r = Ge(e), o = r !== e && !/* @__PURE__ */ v(e);
|
|
462
|
+
let i = n, c = !1;
|
|
463
|
+
r !== e && (o ? (c = s.length === 0, i = function(f, h, a) {
|
|
464
|
+
return c && (c = !1, f = E(e, f)), n.call(this, f, E(e, h), a, e);
|
|
465
|
+
}) : n.length > 3 && (i = function(f, h, a) {
|
|
466
|
+
return n.call(this, f, h, a, e);
|
|
467
|
+
}));
|
|
468
|
+
const l = r[t](i, ...s);
|
|
469
|
+
return c ? E(e, l) : l;
|
|
470
|
+
}
|
|
471
|
+
function xe(e, t, n) {
|
|
472
|
+
const s = /* @__PURE__ */ p(e), r = s[t](...n);
|
|
473
|
+
return (r === -1 || r === !1) && /* @__PURE__ */ se(n[0]) ? (n[0] = /* @__PURE__ */ p(n[0]), s[t](...n)) : r;
|
|
474
|
+
}
|
|
475
|
+
function ee(e, t, n = []) {
|
|
477
476
|
Je();
|
|
478
|
-
const s = p(e)[t].apply(e, n);
|
|
477
|
+
const s = (/* @__PURE__ */ p(e))[t].apply(e, n);
|
|
479
478
|
return Ye(), s;
|
|
480
479
|
}
|
|
481
|
-
const
|
|
482
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
480
|
+
const Dn = /* @__PURE__ */ gn("__proto__,__v_isRef,__isVue"), St = new Set(
|
|
481
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(H)
|
|
483
482
|
);
|
|
484
|
-
function
|
|
485
|
-
return
|
|
483
|
+
function Pn(e) {
|
|
484
|
+
return H(e) || (e = String(e)), (/* @__PURE__ */ p(this)).hasOwnProperty(e);
|
|
486
485
|
}
|
|
487
486
|
class vt {
|
|
488
487
|
constructor(t = !1, n = !1) {
|
|
@@ -498,16 +497,16 @@ class vt {
|
|
|
498
497
|
if (n === "__v_isShallow")
|
|
499
498
|
return o;
|
|
500
499
|
if (n === "__v_raw")
|
|
501
|
-
return s === (r ? o ? Un : Nt : o ?
|
|
500
|
+
return s === (r ? o ? Un : Nt : o ? qn : Et).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
502
501
|
// this means the receiver is a user proxy of the reactive proxy
|
|
503
502
|
Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0;
|
|
504
503
|
const i = g(t);
|
|
505
504
|
if (!r) {
|
|
506
505
|
let l;
|
|
507
|
-
if (i && (l =
|
|
506
|
+
if (i && (l = xn[n]))
|
|
508
507
|
return l;
|
|
509
508
|
if (n === "hasOwnProperty")
|
|
510
|
-
return
|
|
509
|
+
return Pn;
|
|
511
510
|
}
|
|
512
511
|
const c = Reflect.get(
|
|
513
512
|
t,
|
|
@@ -515,105 +514,105 @@ class vt {
|
|
|
515
514
|
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
516
515
|
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
517
516
|
// its class methods
|
|
518
|
-
m(t) ? t : s
|
|
517
|
+
/* @__PURE__ */ m(t) ? t : s
|
|
519
518
|
);
|
|
520
|
-
if ((
|
|
519
|
+
if ((H(n) ? St.has(n) : Dn(n)) || o)
|
|
521
520
|
return c;
|
|
522
|
-
if (m(c)) {
|
|
523
|
-
const l = i &&
|
|
524
|
-
return r && y(l) ?
|
|
521
|
+
if (/* @__PURE__ */ m(c)) {
|
|
522
|
+
const l = i && Ee(n) ? c : c.value;
|
|
523
|
+
return r && y(l) ? /* @__PURE__ */ Ke(l) : l;
|
|
525
524
|
}
|
|
526
|
-
return y(c) ? r ?
|
|
525
|
+
return y(c) ? r ? /* @__PURE__ */ Ke(c) : /* @__PURE__ */ Ot(c) : c;
|
|
527
526
|
}
|
|
528
527
|
}
|
|
529
|
-
class
|
|
528
|
+
class jn extends vt {
|
|
530
529
|
constructor(t = !1) {
|
|
531
530
|
super(!1, t);
|
|
532
531
|
}
|
|
533
532
|
set(t, n, s, r) {
|
|
534
533
|
let o = t[n];
|
|
535
|
-
const i = g(t) &&
|
|
534
|
+
const i = g(t) && Ee(n);
|
|
536
535
|
if (!this._isShallow) {
|
|
537
|
-
const f =
|
|
538
|
-
if (
|
|
539
|
-
return f ? (process.env.NODE_ENV !== "production" &&
|
|
536
|
+
const f = /* @__PURE__ */ N(o);
|
|
537
|
+
if (!/* @__PURE__ */ v(s) && !/* @__PURE__ */ N(s) && (o = /* @__PURE__ */ p(o), s = /* @__PURE__ */ p(s)), !i && /* @__PURE__ */ m(o) && !/* @__PURE__ */ m(s))
|
|
538
|
+
return f ? (process.env.NODE_ENV !== "production" && Z(
|
|
540
539
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
541
540
|
t[n]
|
|
542
541
|
), !0) : (o.value = s, !0);
|
|
543
542
|
}
|
|
544
|
-
const c = i ? Number(n) < t.length :
|
|
543
|
+
const c = i ? Number(n) < t.length : Fe(t, n), l = Reflect.set(
|
|
545
544
|
t,
|
|
546
545
|
n,
|
|
547
546
|
s,
|
|
548
|
-
m(t) ? t : r
|
|
547
|
+
/* @__PURE__ */ m(t) ? t : r
|
|
549
548
|
);
|
|
550
|
-
return t === p(r) && (c ?
|
|
549
|
+
return t === /* @__PURE__ */ p(r) && (c ? ne(s, o) && P(t, "set", n, s, o) : P(t, "add", n, s)), l;
|
|
551
550
|
}
|
|
552
551
|
deleteProperty(t, n) {
|
|
553
|
-
const s =
|
|
552
|
+
const s = Fe(t, n), r = t[n], o = Reflect.deleteProperty(t, n);
|
|
554
553
|
return o && s && P(t, "delete", n, void 0, r), o;
|
|
555
554
|
}
|
|
556
555
|
has(t, n) {
|
|
557
556
|
const s = Reflect.has(t, n);
|
|
558
|
-
return !
|
|
557
|
+
return !H(n) || St.has(n), s;
|
|
559
558
|
}
|
|
560
559
|
ownKeys(t) {
|
|
561
560
|
return Reflect.ownKeys(t);
|
|
562
561
|
}
|
|
563
562
|
}
|
|
564
|
-
class
|
|
563
|
+
class $n extends vt {
|
|
565
564
|
constructor(t = !1) {
|
|
566
565
|
super(!0, t);
|
|
567
566
|
}
|
|
568
567
|
set(t, n) {
|
|
569
|
-
return process.env.NODE_ENV !== "production" &&
|
|
568
|
+
return process.env.NODE_ENV !== "production" && Z(
|
|
570
569
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
571
570
|
t
|
|
572
571
|
), !0;
|
|
573
572
|
}
|
|
574
573
|
deleteProperty(t, n) {
|
|
575
|
-
return process.env.NODE_ENV !== "production" &&
|
|
574
|
+
return process.env.NODE_ENV !== "production" && Z(
|
|
576
575
|
`Delete operation on key "${String(n)}" failed: target is readonly.`,
|
|
577
576
|
t
|
|
578
577
|
), !0;
|
|
579
578
|
}
|
|
580
579
|
}
|
|
581
|
-
const
|
|
582
|
-
function
|
|
580
|
+
const Tn = /* @__PURE__ */ new jn(), An = /* @__PURE__ */ new $n(), ae = (e) => Reflect.getPrototypeOf(e);
|
|
581
|
+
function Mn(e, t, n) {
|
|
583
582
|
return function(...s) {
|
|
584
|
-
const r = this.__v_raw, o =
|
|
585
|
-
return
|
|
586
|
-
// iterator
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
done:
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
583
|
+
const r = this.__v_raw, o = te(/* @__PURE__ */ p(r)), i = e === "entries" || e === Symbol.iterator && o, c = r[e](...s), l = t ? he : x;
|
|
584
|
+
return q(
|
|
585
|
+
// inheriting all iterator properties
|
|
586
|
+
Object.create(c),
|
|
587
|
+
{
|
|
588
|
+
// iterator protocol
|
|
589
|
+
next() {
|
|
590
|
+
const { value: f, done: h } = c.next();
|
|
591
|
+
return h ? { value: f, done: h } : {
|
|
592
|
+
value: i ? [l(f[0]), l(f[1])] : l(f),
|
|
593
|
+
done: h
|
|
594
|
+
};
|
|
595
|
+
}
|
|
597
596
|
}
|
|
598
|
-
|
|
597
|
+
);
|
|
599
598
|
};
|
|
600
599
|
}
|
|
601
600
|
function le(e) {
|
|
602
601
|
return function(...t) {
|
|
603
602
|
if (process.env.NODE_ENV !== "production") {
|
|
604
603
|
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
605
|
-
|
|
606
|
-
`${
|
|
607
|
-
p(this)
|
|
604
|
+
Z(
|
|
605
|
+
`${En(e)} operation ${n}failed: target is readonly.`,
|
|
606
|
+
/* @__PURE__ */ p(this)
|
|
608
607
|
);
|
|
609
608
|
}
|
|
610
609
|
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
611
610
|
};
|
|
612
611
|
}
|
|
613
|
-
function
|
|
612
|
+
function Fn(e, t) {
|
|
614
613
|
const n = {
|
|
615
614
|
get(s) {
|
|
616
|
-
const r = this.__v_raw, o = p(r), i = p(s), { has: c } = ae(o), l = e ?
|
|
615
|
+
const r = this.__v_raw, o = /* @__PURE__ */ p(r), i = /* @__PURE__ */ p(s), { has: c } = ae(o), l = e ? he : x;
|
|
617
616
|
if (c.call(o, s))
|
|
618
617
|
return l(r.get(s));
|
|
619
618
|
if (c.call(o, i))
|
|
@@ -621,23 +620,18 @@ function Kn(e, t) {
|
|
|
621
620
|
r !== o && r.get(s);
|
|
622
621
|
},
|
|
623
622
|
get size() {
|
|
624
|
-
|
|
625
|
-
return !e && p(s), s.size;
|
|
623
|
+
return this.__v_raw.size;
|
|
626
624
|
},
|
|
627
625
|
has(s) {
|
|
628
|
-
const r = this.__v_raw;
|
|
629
|
-
p(r);
|
|
630
|
-
const o = p(s);
|
|
626
|
+
const r = this.__v_raw, o = /* @__PURE__ */ p(s);
|
|
631
627
|
return s === o ? r.has(s) : r.has(s) || r.has(o);
|
|
632
628
|
},
|
|
633
629
|
forEach(s, r) {
|
|
634
|
-
const o = this, i = o.__v_raw;
|
|
635
|
-
p(i);
|
|
636
|
-
const c = e ? ne : I;
|
|
630
|
+
const o = this, i = o.__v_raw, c = e ? he : x;
|
|
637
631
|
return i.forEach((l, f) => s.call(r, c(l), c(f), o));
|
|
638
632
|
}
|
|
639
633
|
};
|
|
640
|
-
return
|
|
634
|
+
return q(
|
|
641
635
|
n,
|
|
642
636
|
e ? {
|
|
643
637
|
add: le("add"),
|
|
@@ -646,27 +640,26 @@ function Kn(e, t) {
|
|
|
646
640
|
clear: le("clear")
|
|
647
641
|
} : {
|
|
648
642
|
add(s) {
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
return ae(r).has.call(r, s) || (r.add(s), P(r, "add", s, s)), this;
|
|
643
|
+
const r = /* @__PURE__ */ p(this), o = ae(r), i = /* @__PURE__ */ p(s), c = !/* @__PURE__ */ v(s) && !/* @__PURE__ */ N(s) ? i : s;
|
|
644
|
+
return o.has.call(r, c) || ne(s, c) && o.has.call(r, s) || ne(i, c) && o.has.call(r, i) || (r.add(c), P(r, "add", c, c)), this;
|
|
652
645
|
},
|
|
653
646
|
set(s, r) {
|
|
654
|
-
|
|
655
|
-
const o = p(this), { has: i, get: c } = ae(o);
|
|
647
|
+
!/* @__PURE__ */ v(r) && !/* @__PURE__ */ N(r) && (r = /* @__PURE__ */ p(r));
|
|
648
|
+
const o = /* @__PURE__ */ p(this), { has: i, get: c } = ae(o);
|
|
656
649
|
let l = i.call(o, s);
|
|
657
|
-
l ? process.env.NODE_ENV !== "production" && ut(o, i, s) : (s = p(s), l = i.call(o, s));
|
|
650
|
+
l ? process.env.NODE_ENV !== "production" && ut(o, i, s) : (s = /* @__PURE__ */ p(s), l = i.call(o, s));
|
|
658
651
|
const f = c.call(o, s);
|
|
659
|
-
return o.set(s, r), l ?
|
|
652
|
+
return o.set(s, r), l ? ne(r, f) && P(o, "set", s, r, f) : P(o, "add", s, r), this;
|
|
660
653
|
},
|
|
661
654
|
delete(s) {
|
|
662
|
-
const r = p(this), { has: o, get: i } = ae(r);
|
|
655
|
+
const r = /* @__PURE__ */ p(this), { has: o, get: i } = ae(r);
|
|
663
656
|
let c = o.call(r, s);
|
|
664
|
-
c ? process.env.NODE_ENV !== "production" && ut(r, o, s) : (s = p(s), c = o.call(r, s));
|
|
657
|
+
c ? process.env.NODE_ENV !== "production" && ut(r, o, s) : (s = /* @__PURE__ */ p(s), c = o.call(r, s));
|
|
665
658
|
const l = i ? i.call(r, s) : void 0, f = r.delete(s);
|
|
666
659
|
return c && P(r, "delete", s, void 0, l), f;
|
|
667
660
|
},
|
|
668
661
|
clear() {
|
|
669
|
-
const s = p(this), r = s.size !== 0, o = process.env.NODE_ENV !== "production" ?
|
|
662
|
+
const s = /* @__PURE__ */ p(this), r = s.size !== 0, o = process.env.NODE_ENV !== "production" ? te(s) ? new Map(s) : new Set(s) : void 0, i = s.clear();
|
|
670
663
|
return r && P(
|
|
671
664
|
s,
|
|
672
665
|
"clear",
|
|
@@ -682,33 +675,33 @@ function Kn(e, t) {
|
|
|
682
675
|
"entries",
|
|
683
676
|
Symbol.iterator
|
|
684
677
|
].forEach((s) => {
|
|
685
|
-
n[s] =
|
|
678
|
+
n[s] = Mn(s, e);
|
|
686
679
|
}), n;
|
|
687
680
|
}
|
|
688
681
|
function wt(e, t) {
|
|
689
|
-
const n =
|
|
682
|
+
const n = Fn(e);
|
|
690
683
|
return (s, r, o) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? s : Reflect.get(
|
|
691
|
-
|
|
684
|
+
Fe(n, r) && r in s ? n : s,
|
|
692
685
|
r,
|
|
693
686
|
o
|
|
694
687
|
);
|
|
695
688
|
}
|
|
696
|
-
const
|
|
689
|
+
const Kn = {
|
|
697
690
|
get: /* @__PURE__ */ wt(!1)
|
|
698
|
-
},
|
|
691
|
+
}, Hn = {
|
|
699
692
|
get: /* @__PURE__ */ wt(!0)
|
|
700
693
|
};
|
|
701
694
|
function ut(e, t, n) {
|
|
702
|
-
const s = p(n);
|
|
695
|
+
const s = /* @__PURE__ */ p(n);
|
|
703
696
|
if (s !== n && t.call(e, s)) {
|
|
704
697
|
const r = yt(e);
|
|
705
|
-
|
|
698
|
+
Z(
|
|
706
699
|
`Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
|
|
707
700
|
);
|
|
708
701
|
}
|
|
709
702
|
}
|
|
710
|
-
const Et = /* @__PURE__ */ new WeakMap(),
|
|
711
|
-
function
|
|
703
|
+
const Et = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap();
|
|
704
|
+
function Ln(e) {
|
|
712
705
|
switch (e) {
|
|
713
706
|
case "Object":
|
|
714
707
|
case "Array":
|
|
@@ -722,37 +715,39 @@ function zn(e) {
|
|
|
722
715
|
return 0;
|
|
723
716
|
}
|
|
724
717
|
}
|
|
725
|
-
function
|
|
726
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 :
|
|
718
|
+
function Wn(e) {
|
|
719
|
+
return e.__v_skip || !Object.isExtensible(e) ? 0 : Ln(yt(e));
|
|
727
720
|
}
|
|
721
|
+
// @__NO_SIDE_EFFECTS__
|
|
728
722
|
function Ot(e) {
|
|
729
|
-
return
|
|
723
|
+
return /* @__PURE__ */ N(e) ? e : kt(
|
|
730
724
|
e,
|
|
731
725
|
!1,
|
|
732
|
-
|
|
733
|
-
|
|
726
|
+
Tn,
|
|
727
|
+
Kn,
|
|
734
728
|
Et
|
|
735
729
|
);
|
|
736
730
|
}
|
|
737
|
-
|
|
731
|
+
// @__NO_SIDE_EFFECTS__
|
|
732
|
+
function Ke(e) {
|
|
738
733
|
return kt(
|
|
739
734
|
e,
|
|
740
735
|
!0,
|
|
741
|
-
|
|
742
|
-
|
|
736
|
+
An,
|
|
737
|
+
Hn,
|
|
743
738
|
Nt
|
|
744
739
|
);
|
|
745
740
|
}
|
|
746
741
|
function kt(e, t, n, s, r) {
|
|
747
742
|
if (!y(e))
|
|
748
|
-
return process.env.NODE_ENV !== "production" &&
|
|
743
|
+
return process.env.NODE_ENV !== "production" && Z(
|
|
749
744
|
`value cannot be made ${t ? "readonly" : "reactive"}: ${String(
|
|
750
745
|
e
|
|
751
746
|
)}`
|
|
752
747
|
), e;
|
|
753
748
|
if (e.__v_raw && !(t && e.__v_isReactive))
|
|
754
749
|
return e;
|
|
755
|
-
const o =
|
|
750
|
+
const o = Wn(e);
|
|
756
751
|
if (o === 0)
|
|
757
752
|
return e;
|
|
758
753
|
const i = r.get(e);
|
|
@@ -764,35 +759,42 @@ function kt(e, t, n, s, r) {
|
|
|
764
759
|
);
|
|
765
760
|
return r.set(e, c), c;
|
|
766
761
|
}
|
|
767
|
-
|
|
768
|
-
|
|
762
|
+
// @__NO_SIDE_EFFECTS__
|
|
763
|
+
function Xe(e) {
|
|
764
|
+
return /* @__PURE__ */ N(e) ? /* @__PURE__ */ Xe(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
769
765
|
}
|
|
770
|
-
|
|
766
|
+
// @__NO_SIDE_EFFECTS__
|
|
767
|
+
function N(e) {
|
|
771
768
|
return !!(e && e.__v_isReadonly);
|
|
772
769
|
}
|
|
770
|
+
// @__NO_SIDE_EFFECTS__
|
|
773
771
|
function v(e) {
|
|
774
772
|
return !!(e && e.__v_isShallow);
|
|
775
773
|
}
|
|
776
|
-
|
|
774
|
+
// @__NO_SIDE_EFFECTS__
|
|
775
|
+
function se(e) {
|
|
777
776
|
return e ? !!e.__v_raw : !1;
|
|
778
777
|
}
|
|
778
|
+
// @__NO_SIDE_EFFECTS__
|
|
779
779
|
function p(e) {
|
|
780
780
|
const t = e && e.__v_raw;
|
|
781
|
-
return t ? p(t) : e;
|
|
781
|
+
return t ? /* @__PURE__ */ p(t) : e;
|
|
782
782
|
}
|
|
783
|
-
const
|
|
783
|
+
const x = (e) => y(e) ? /* @__PURE__ */ Ot(e) : e, he = (e) => y(e) ? /* @__PURE__ */ Ke(e) : e;
|
|
784
|
+
// @__NO_SIDE_EFFECTS__
|
|
784
785
|
function m(e) {
|
|
785
786
|
return e ? e.__v_isRef === !0 : !1;
|
|
786
787
|
}
|
|
787
|
-
|
|
788
|
-
|
|
788
|
+
// @__NO_SIDE_EFFECTS__
|
|
789
|
+
function Vt(e) {
|
|
790
|
+
return zn(e, !1);
|
|
789
791
|
}
|
|
790
|
-
function
|
|
791
|
-
return m(e) ? e : new
|
|
792
|
+
function zn(e, t) {
|
|
793
|
+
return /* @__PURE__ */ m(e) ? e : new Bn(e, t);
|
|
792
794
|
}
|
|
793
|
-
class
|
|
795
|
+
class Bn {
|
|
794
796
|
constructor(t, n) {
|
|
795
|
-
this.dep = new
|
|
797
|
+
this.dep = new Cn(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : /* @__PURE__ */ p(t), this._value = n ? t : x(t), this.__v_isShallow = n;
|
|
796
798
|
}
|
|
797
799
|
get value() {
|
|
798
800
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -802,8 +804,8 @@ class Jn {
|
|
|
802
804
|
}) : this.dep.track(), this._value;
|
|
803
805
|
}
|
|
804
806
|
set value(t) {
|
|
805
|
-
const n = this._rawValue, s = this.__v_isShallow || v(t) ||
|
|
806
|
-
t = s ? t : p(t),
|
|
807
|
+
const n = this._rawValue, s = this.__v_isShallow || /* @__PURE__ */ v(t) || /* @__PURE__ */ N(t);
|
|
808
|
+
t = s ? t : /* @__PURE__ */ p(t), ne(t, n) && (this._rawValue = t, this._value = s ? t : x(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
807
809
|
target: this,
|
|
808
810
|
type: "set",
|
|
809
811
|
key: "value",
|
|
@@ -812,27 +814,27 @@ class Jn {
|
|
|
812
814
|
}) : this.dep.trigger());
|
|
813
815
|
}
|
|
814
816
|
}
|
|
815
|
-
function
|
|
816
|
-
return m(e) ? e.value : e;
|
|
817
|
+
function Jn(e) {
|
|
818
|
+
return /* @__PURE__ */ m(e) ? e.value : e;
|
|
817
819
|
}
|
|
818
|
-
class
|
|
820
|
+
class Yn {
|
|
819
821
|
constructor(t, n, s) {
|
|
820
|
-
this._object = t, this.
|
|
822
|
+
this._object = t, this._defaultValue = s, this.__v_isRef = !0, this._value = void 0, this._key = H(n) ? n : String(n), this._raw = /* @__PURE__ */ p(t);
|
|
821
823
|
let r = !0, o = t;
|
|
822
|
-
if (!g(t) || !
|
|
824
|
+
if (!g(t) || H(this._key) || !Ee(this._key))
|
|
823
825
|
do
|
|
824
|
-
r =
|
|
826
|
+
r = !/* @__PURE__ */ se(o) || /* @__PURE__ */ v(o);
|
|
825
827
|
while (r && (o = o.__v_raw));
|
|
826
828
|
this._shallow = r;
|
|
827
829
|
}
|
|
828
830
|
get value() {
|
|
829
831
|
let t = this._object[this._key];
|
|
830
|
-
return this._shallow && (t =
|
|
832
|
+
return this._shallow && (t = Jn(t)), this._value = t === void 0 ? this._defaultValue : t;
|
|
831
833
|
}
|
|
832
834
|
set value(t) {
|
|
833
|
-
if (this._shallow && m(this._raw[this._key])) {
|
|
835
|
+
if (this._shallow && /* @__PURE__ */ m(this._raw[this._key])) {
|
|
834
836
|
const n = this._object[this._key];
|
|
835
|
-
if (m(n)) {
|
|
837
|
+
if (/* @__PURE__ */ m(n)) {
|
|
836
838
|
n.value = t;
|
|
837
839
|
return;
|
|
838
840
|
}
|
|
@@ -840,10 +842,10 @@ class Gn {
|
|
|
840
842
|
this._object[this._key] = t;
|
|
841
843
|
}
|
|
842
844
|
get dep() {
|
|
843
|
-
return
|
|
845
|
+
return Rn(this._raw, this._key);
|
|
844
846
|
}
|
|
845
847
|
}
|
|
846
|
-
class
|
|
848
|
+
class Gn {
|
|
847
849
|
constructor(t) {
|
|
848
850
|
this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
|
|
849
851
|
}
|
|
@@ -851,26 +853,27 @@ class Qn {
|
|
|
851
853
|
return this._value = this._getter();
|
|
852
854
|
}
|
|
853
855
|
}
|
|
856
|
+
// @__NO_SIDE_EFFECTS__
|
|
854
857
|
function Xn(e, t, n) {
|
|
855
|
-
return m(e) ? e : T(e) ? new
|
|
858
|
+
return /* @__PURE__ */ m(e) ? e : T(e) ? new Gn(e) : y(e) && arguments.length > 1 ? Zn(e, t, n) : /* @__PURE__ */ Vt(e);
|
|
856
859
|
}
|
|
857
860
|
function Zn(e, t, n) {
|
|
858
|
-
return new
|
|
861
|
+
return new Yn(e, t, n);
|
|
859
862
|
}
|
|
860
863
|
const M = [];
|
|
861
|
-
function
|
|
864
|
+
function Qn(e) {
|
|
862
865
|
M.push(e);
|
|
863
866
|
}
|
|
864
|
-
function
|
|
867
|
+
function es() {
|
|
865
868
|
M.pop();
|
|
866
869
|
}
|
|
867
|
-
let
|
|
868
|
-
function
|
|
869
|
-
if (
|
|
870
|
-
|
|
871
|
-
const n = M.length ? M[M.length - 1].component : null, s = n && n.appContext.config.warnHandler, r =
|
|
870
|
+
let Ie = !1;
|
|
871
|
+
function re(e, ...t) {
|
|
872
|
+
if (Ie) return;
|
|
873
|
+
Ie = !0;
|
|
874
|
+
const n = M.length ? M[M.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = ts();
|
|
872
875
|
if (s)
|
|
873
|
-
|
|
876
|
+
Ze(
|
|
874
877
|
s,
|
|
875
878
|
n,
|
|
876
879
|
11,
|
|
@@ -891,11 +894,11 @@ function se(e, ...t) {
|
|
|
891
894
|
else {
|
|
892
895
|
const o = [`[Vue warn]: ${e}`, ...t];
|
|
893
896
|
r.length && o.push(`
|
|
894
|
-
`, ...
|
|
897
|
+
`, ...ns(r)), console.warn(...o);
|
|
895
898
|
}
|
|
896
|
-
|
|
899
|
+
Ie = !1;
|
|
897
900
|
}
|
|
898
|
-
function
|
|
901
|
+
function ts() {
|
|
899
902
|
let e = M[M.length - 1];
|
|
900
903
|
if (!e)
|
|
901
904
|
return [];
|
|
@@ -911,31 +914,31 @@ function ns() {
|
|
|
911
914
|
}
|
|
912
915
|
return t;
|
|
913
916
|
}
|
|
914
|
-
function
|
|
917
|
+
function ns(e) {
|
|
915
918
|
const t = [];
|
|
916
919
|
return e.forEach((n, s) => {
|
|
917
920
|
t.push(...s === 0 ? [] : [`
|
|
918
|
-
`], ...
|
|
921
|
+
`], ...ss(n));
|
|
919
922
|
}), t;
|
|
920
923
|
}
|
|
921
|
-
function
|
|
924
|
+
function ss({ vnode: e, recurseCount: t }) {
|
|
922
925
|
const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${Ht(
|
|
923
926
|
e.component,
|
|
924
927
|
e.type,
|
|
925
928
|
s
|
|
926
929
|
)}`, o = ">" + n;
|
|
927
|
-
return e.props ? [r, ...
|
|
930
|
+
return e.props ? [r, ...rs(e.props), o] : [r + o];
|
|
928
931
|
}
|
|
929
|
-
function
|
|
932
|
+
function rs(e) {
|
|
930
933
|
const t = [], n = Object.keys(e);
|
|
931
934
|
return n.slice(0, 3).forEach((s) => {
|
|
932
|
-
t.push(...
|
|
935
|
+
t.push(...Ct(s, e[s]));
|
|
933
936
|
}), n.length > 3 && t.push(" ..."), t;
|
|
934
937
|
}
|
|
935
|
-
function
|
|
936
|
-
return
|
|
938
|
+
function Ct(e, t, n) {
|
|
939
|
+
return R(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ m(t) ? (t = Ct(e, /* @__PURE__ */ p(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : T(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ p(t), n ? t : [`${e}=`, t]);
|
|
937
940
|
}
|
|
938
|
-
const
|
|
941
|
+
const Rt = {
|
|
939
942
|
sp: "serverPrefetch hook",
|
|
940
943
|
bc: "beforeCreate hook",
|
|
941
944
|
c: "created hook",
|
|
@@ -968,7 +971,7 @@ const It = {
|
|
|
968
971
|
15: "component update",
|
|
969
972
|
16: "app unmount cleanup function"
|
|
970
973
|
};
|
|
971
|
-
function
|
|
974
|
+
function Ze(e, t, n, s) {
|
|
972
975
|
try {
|
|
973
976
|
return s ? e(...s) : e();
|
|
974
977
|
} catch (r) {
|
|
@@ -976,10 +979,10 @@ function Xe(e, t, n, s) {
|
|
|
976
979
|
}
|
|
977
980
|
}
|
|
978
981
|
function xt(e, t, n, s = !0) {
|
|
979
|
-
const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = t && t.appContext.config ||
|
|
982
|
+
const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = t && t.appContext.config || Me;
|
|
980
983
|
if (t) {
|
|
981
984
|
let c = t.parent;
|
|
982
|
-
const l = t.proxy, f = process.env.NODE_ENV !== "production" ?
|
|
985
|
+
const l = t.proxy, f = process.env.NODE_ENV !== "production" ? Rt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
983
986
|
for (; c; ) {
|
|
984
987
|
const h = c.ec;
|
|
985
988
|
if (h) {
|
|
@@ -990,7 +993,7 @@ function xt(e, t, n, s = !0) {
|
|
|
990
993
|
c = c.parent;
|
|
991
994
|
}
|
|
992
995
|
if (o) {
|
|
993
|
-
|
|
996
|
+
Ze(o, null, 10, [
|
|
994
997
|
e,
|
|
995
998
|
l,
|
|
996
999
|
f
|
|
@@ -998,12 +1001,12 @@ function xt(e, t, n, s = !0) {
|
|
|
998
1001
|
return;
|
|
999
1002
|
}
|
|
1000
1003
|
}
|
|
1001
|
-
|
|
1004
|
+
os(e, n, r, s, i);
|
|
1002
1005
|
}
|
|
1003
|
-
function
|
|
1006
|
+
function os(e, t, n, s = !0, r = !1) {
|
|
1004
1007
|
if (process.env.NODE_ENV !== "production") {
|
|
1005
|
-
const o =
|
|
1006
|
-
if (n &&
|
|
1008
|
+
const o = Rt[t];
|
|
1009
|
+
if (n && Qn(n), re(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && es(), s)
|
|
1007
1010
|
throw e;
|
|
1008
1011
|
console.error(e);
|
|
1009
1012
|
} else {
|
|
@@ -1013,60 +1016,60 @@ function is(e, t, n, s = !0, r = !1) {
|
|
|
1013
1016
|
}
|
|
1014
1017
|
}
|
|
1015
1018
|
const b = [];
|
|
1016
|
-
let
|
|
1017
|
-
const
|
|
1018
|
-
let
|
|
1019
|
-
const
|
|
1020
|
-
let
|
|
1021
|
-
const
|
|
1022
|
-
function
|
|
1023
|
-
let t =
|
|
1019
|
+
let V = -1;
|
|
1020
|
+
const G = [];
|
|
1021
|
+
let I = null, z = 0;
|
|
1022
|
+
const is = /* @__PURE__ */ Promise.resolve();
|
|
1023
|
+
let He = null;
|
|
1024
|
+
const cs = 100;
|
|
1025
|
+
function as(e) {
|
|
1026
|
+
let t = V + 1, n = b.length;
|
|
1024
1027
|
for (; t < n; ) {
|
|
1025
|
-
const s = t + n >>> 1, r = b[s], o =
|
|
1028
|
+
const s = t + n >>> 1, r = b[s], o = oe(r);
|
|
1026
1029
|
o < e || o === e && r.flags & 2 ? t = s + 1 : n = s;
|
|
1027
1030
|
}
|
|
1028
1031
|
return t;
|
|
1029
1032
|
}
|
|
1030
|
-
function
|
|
1033
|
+
function ls(e) {
|
|
1031
1034
|
if (!(e.flags & 1)) {
|
|
1032
|
-
const t =
|
|
1035
|
+
const t = oe(e), n = b[b.length - 1];
|
|
1033
1036
|
!n || // fast path when the job id is larger than the tail
|
|
1034
|
-
!(e.flags & 2) && t >=
|
|
1037
|
+
!(e.flags & 2) && t >= oe(n) ? b.push(e) : b.splice(as(t), 0, e), e.flags |= 1, It();
|
|
1035
1038
|
}
|
|
1036
1039
|
}
|
|
1037
|
-
function
|
|
1038
|
-
|
|
1040
|
+
function It() {
|
|
1041
|
+
He || (He = is.then(Dt));
|
|
1039
1042
|
}
|
|
1040
|
-
function
|
|
1041
|
-
g(e) ?
|
|
1043
|
+
function us(e) {
|
|
1044
|
+
g(e) ? G.push(...e) : I && e.id === -1 ? I.splice(z + 1, 0, e) : e.flags & 1 || (G.push(e), e.flags |= 1), It();
|
|
1042
1045
|
}
|
|
1043
|
-
function
|
|
1044
|
-
if (
|
|
1045
|
-
const t = [...new Set(
|
|
1046
|
-
(n, s) =>
|
|
1046
|
+
function fs(e) {
|
|
1047
|
+
if (G.length) {
|
|
1048
|
+
const t = [...new Set(G)].sort(
|
|
1049
|
+
(n, s) => oe(n) - oe(s)
|
|
1047
1050
|
);
|
|
1048
|
-
if (
|
|
1049
|
-
|
|
1051
|
+
if (G.length = 0, I) {
|
|
1052
|
+
I.push(...t);
|
|
1050
1053
|
return;
|
|
1051
1054
|
}
|
|
1052
|
-
for (
|
|
1053
|
-
const n =
|
|
1055
|
+
for (I = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), z = 0; z < I.length; z++) {
|
|
1056
|
+
const n = I[z];
|
|
1054
1057
|
process.env.NODE_ENV !== "production" && Pt(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
1055
1058
|
}
|
|
1056
|
-
|
|
1059
|
+
I = null, z = 0;
|
|
1057
1060
|
}
|
|
1058
1061
|
}
|
|
1059
|
-
const
|
|
1062
|
+
const oe = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
1060
1063
|
function Dt(e) {
|
|
1061
1064
|
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
1062
|
-
const t = process.env.NODE_ENV !== "production" ? (n) => Pt(e, n) :
|
|
1065
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => Pt(e, n) : yn;
|
|
1063
1066
|
try {
|
|
1064
|
-
for (
|
|
1065
|
-
const n = b[
|
|
1067
|
+
for (V = 0; V < b.length; V++) {
|
|
1068
|
+
const n = b[V];
|
|
1066
1069
|
if (n && !(n.flags & 8)) {
|
|
1067
1070
|
if (process.env.NODE_ENV !== "production" && t(n))
|
|
1068
1071
|
continue;
|
|
1069
|
-
n.flags & 4 && (n.flags &= -2),
|
|
1072
|
+
n.flags & 4 && (n.flags &= -2), Ze(
|
|
1070
1073
|
n,
|
|
1071
1074
|
n.i,
|
|
1072
1075
|
n.i ? 15 : 14
|
|
@@ -1074,16 +1077,16 @@ function Dt(e) {
|
|
|
1074
1077
|
}
|
|
1075
1078
|
}
|
|
1076
1079
|
} finally {
|
|
1077
|
-
for (;
|
|
1078
|
-
const n = b[
|
|
1080
|
+
for (; V < b.length; V++) {
|
|
1081
|
+
const n = b[V];
|
|
1079
1082
|
n && (n.flags &= -2);
|
|
1080
1083
|
}
|
|
1081
|
-
|
|
1084
|
+
V = -1, b.length = 0, fs(e), He = null, (b.length || G.length) && Dt(e);
|
|
1082
1085
|
}
|
|
1083
1086
|
}
|
|
1084
1087
|
function Pt(e, t) {
|
|
1085
1088
|
const n = e.get(t) || 0;
|
|
1086
|
-
if (n >
|
|
1089
|
+
if (n > cs) {
|
|
1087
1090
|
const s = t.i, r = s && Kt(s.type);
|
|
1088
1091
|
return xt(
|
|
1089
1092
|
`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.`,
|
|
@@ -1093,52 +1096,52 @@ function Pt(e, t) {
|
|
|
1093
1096
|
}
|
|
1094
1097
|
return e.set(t, n + 1), !1;
|
|
1095
1098
|
}
|
|
1096
|
-
const
|
|
1097
|
-
process.env.NODE_ENV !== "production" && (
|
|
1098
|
-
createRecord:
|
|
1099
|
-
rerender:
|
|
1100
|
-
reload:
|
|
1099
|
+
const De = /* @__PURE__ */ new Map();
|
|
1100
|
+
process.env.NODE_ENV !== "production" && (Ne().__VUE_HMR_RUNTIME__ = {
|
|
1101
|
+
createRecord: Pe(ps),
|
|
1102
|
+
rerender: Pe(hs),
|
|
1103
|
+
reload: Pe(ds)
|
|
1101
1104
|
});
|
|
1102
|
-
const
|
|
1103
|
-
function
|
|
1104
|
-
return
|
|
1105
|
-
initialDef:
|
|
1105
|
+
const de = /* @__PURE__ */ new Map();
|
|
1106
|
+
function ps(e, t) {
|
|
1107
|
+
return de.has(e) ? !1 : (de.set(e, {
|
|
1108
|
+
initialDef: _e(t),
|
|
1106
1109
|
instances: /* @__PURE__ */ new Set()
|
|
1107
1110
|
}), !0);
|
|
1108
1111
|
}
|
|
1109
|
-
function
|
|
1112
|
+
function _e(e) {
|
|
1110
1113
|
return qt(e) ? e.__vccOpts : e;
|
|
1111
1114
|
}
|
|
1112
|
-
function
|
|
1113
|
-
const n =
|
|
1115
|
+
function hs(e, t) {
|
|
1116
|
+
const n = de.get(e);
|
|
1114
1117
|
n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
|
|
1115
|
-
t && (s.render = t,
|
|
1118
|
+
t && (s.render = t, _e(s.type).render = t), s.renderCache = [], s.job.flags & 8 || s.update();
|
|
1116
1119
|
}));
|
|
1117
1120
|
}
|
|
1118
|
-
function
|
|
1119
|
-
const n =
|
|
1121
|
+
function ds(e, t) {
|
|
1122
|
+
const n = de.get(e);
|
|
1120
1123
|
if (!n) return;
|
|
1121
|
-
t =
|
|
1124
|
+
t = _e(t), ft(n.initialDef, t);
|
|
1122
1125
|
const s = [...n.instances];
|
|
1123
1126
|
for (let r = 0; r < s.length; r++) {
|
|
1124
|
-
const o = s[r], i =
|
|
1125
|
-
let c =
|
|
1126
|
-
c || (i !== n.initialDef && ft(i, t),
|
|
1127
|
+
const o = s[r], i = _e(o.type);
|
|
1128
|
+
let c = De.get(i);
|
|
1129
|
+
c || (i !== n.initialDef && ft(i, t), De.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(t.styles), c.delete(o)) : o.parent ? ls(() => {
|
|
1127
1130
|
o.job.flags & 8 || (o.parent.update(), c.delete(o));
|
|
1128
1131
|
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1129
1132
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1130
1133
|
), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
|
|
1131
1134
|
}
|
|
1132
|
-
|
|
1133
|
-
|
|
1135
|
+
us(() => {
|
|
1136
|
+
De.clear();
|
|
1134
1137
|
});
|
|
1135
1138
|
}
|
|
1136
1139
|
function ft(e, t) {
|
|
1137
|
-
|
|
1140
|
+
q(e, t);
|
|
1138
1141
|
for (const n in e)
|
|
1139
1142
|
n !== "__file" && !(n in t) && delete e[n];
|
|
1140
1143
|
}
|
|
1141
|
-
function
|
|
1144
|
+
function Pe(e) {
|
|
1142
1145
|
return (t, n) => {
|
|
1143
1146
|
try {
|
|
1144
1147
|
return e(t, n);
|
|
@@ -1149,27 +1152,27 @@ function De(e) {
|
|
|
1149
1152
|
}
|
|
1150
1153
|
};
|
|
1151
1154
|
}
|
|
1152
|
-
let
|
|
1153
|
-
const
|
|
1155
|
+
let ge = null, _s = null;
|
|
1156
|
+
const gs = (e) => e.__isTeleport;
|
|
1154
1157
|
function jt(e, t) {
|
|
1155
1158
|
e.shapeFlag & 6 && e.component ? (e.transition = t, jt(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1156
1159
|
}
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
const
|
|
1160
|
+
Ne().requestIdleCallback;
|
|
1161
|
+
Ne().cancelIdleCallback;
|
|
1162
|
+
const ys = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
1160
1163
|
process.env.NODE_ENV;
|
|
1161
|
-
const
|
|
1162
|
-
function
|
|
1164
|
+
const ms = {}, $t = (e) => Object.getPrototypeOf(e) === ms, bs = (e) => e.__isSuspense, Tt = /* @__PURE__ */ Symbol.for("v-fgt"), Ss = /* @__PURE__ */ Symbol.for("v-txt"), vs = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
1165
|
+
function ws(e) {
|
|
1163
1166
|
return e ? e.__v_isVNode === !0 : !1;
|
|
1164
1167
|
}
|
|
1165
|
-
const
|
|
1168
|
+
const Es = (...e) => Mt(
|
|
1166
1169
|
...e
|
|
1167
1170
|
), At = ({ key: e }) => e ?? null, fe = ({
|
|
1168
1171
|
ref: e,
|
|
1169
1172
|
ref_key: t,
|
|
1170
1173
|
ref_for: n
|
|
1171
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ?
|
|
1172
|
-
function
|
|
1174
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? R(e) || /* @__PURE__ */ m(e) || T(e) ? { i: ge, r: e, k: t, f: !!n } : e : null);
|
|
1175
|
+
function Ns(e, t = null, n = null, s = 0, r = null, o = e === Tt ? 0 : 1, i = !1, c = !1) {
|
|
1173
1176
|
const l = {
|
|
1174
1177
|
__v_isVNode: !0,
|
|
1175
1178
|
__v_skip: !0,
|
|
@@ -1177,7 +1180,7 @@ function Os(e, t = null, n = null, s = 0, r = null, o = e === Tt ? 0 : 1, i = !1
|
|
|
1177
1180
|
props: t,
|
|
1178
1181
|
key: t && At(t),
|
|
1179
1182
|
ref: t && fe(t),
|
|
1180
|
-
scopeId:
|
|
1183
|
+
scopeId: _s,
|
|
1181
1184
|
slotScopeIds: null,
|
|
1182
1185
|
children: n,
|
|
1183
1186
|
component: null,
|
|
@@ -1197,33 +1200,33 @@ function Os(e, t = null, n = null, s = 0, r = null, o = e === Tt ? 0 : 1, i = !1
|
|
|
1197
1200
|
dynamicProps: r,
|
|
1198
1201
|
dynamicChildren: null,
|
|
1199
1202
|
appContext: null,
|
|
1200
|
-
ctx:
|
|
1203
|
+
ctx: ge
|
|
1201
1204
|
};
|
|
1202
|
-
return c ? (
|
|
1205
|
+
return c ? (Qe(l, n), o & 128 && e.normalize(l)) : n && (l.shapeFlag |= R(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && re("VNode created with invalid key (NaN). VNode type:", l.type), l;
|
|
1203
1206
|
}
|
|
1204
|
-
const
|
|
1207
|
+
const Os = process.env.NODE_ENV !== "production" ? Es : Mt;
|
|
1205
1208
|
function Mt(e, t = null, n = null, s = 0, r = null, o = !1) {
|
|
1206
|
-
if ((!e || e ===
|
|
1207
|
-
const c =
|
|
1209
|
+
if ((!e || e === ys) && (process.env.NODE_ENV !== "production" && !e && re(`Invalid vnode type when creating vnode: ${e}.`), e = vs), ws(e)) {
|
|
1210
|
+
const c = ye(
|
|
1208
1211
|
e,
|
|
1209
1212
|
t,
|
|
1210
1213
|
!0
|
|
1211
1214
|
/* mergeRef: true */
|
|
1212
1215
|
);
|
|
1213
|
-
return n &&
|
|
1216
|
+
return n && Qe(c, n), c.patchFlag = -2, c;
|
|
1214
1217
|
}
|
|
1215
1218
|
if (qt(e) && (e = e.__vccOpts), t) {
|
|
1216
|
-
t =
|
|
1219
|
+
t = ks(t);
|
|
1217
1220
|
let { class: c, style: l } = t;
|
|
1218
|
-
c && !
|
|
1221
|
+
c && !R(c) && (t.class = Be(c)), y(l) && (/* @__PURE__ */ se(l) && !g(l) && (l = q({}, l)), t.style = ze(l));
|
|
1219
1222
|
}
|
|
1220
|
-
const i =
|
|
1221
|
-
return process.env.NODE_ENV !== "production" && i & 4 &&
|
|
1223
|
+
const i = R(e) ? 1 : bs(e) ? 128 : gs(e) ? 64 : y(e) ? 4 : T(e) ? 2 : 0;
|
|
1224
|
+
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ se(e) && (e = /* @__PURE__ */ p(e), re(
|
|
1222
1225
|
"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`.",
|
|
1223
1226
|
`
|
|
1224
1227
|
Component that was made reactive: `,
|
|
1225
1228
|
e
|
|
1226
|
-
)),
|
|
1229
|
+
)), Ns(
|
|
1227
1230
|
e,
|
|
1228
1231
|
t,
|
|
1229
1232
|
n,
|
|
@@ -1234,11 +1237,11 @@ Component that was made reactive: `,
|
|
|
1234
1237
|
!0
|
|
1235
1238
|
);
|
|
1236
1239
|
}
|
|
1237
|
-
function
|
|
1238
|
-
return e ?
|
|
1240
|
+
function ks(e) {
|
|
1241
|
+
return e ? /* @__PURE__ */ se(e) || $t(e) ? q({}, e) : e : null;
|
|
1239
1242
|
}
|
|
1240
|
-
function
|
|
1241
|
-
const { props: r, ref: o, patchFlag: i, children: c, transition: l } = e, f = t ?
|
|
1243
|
+
function ye(e, t, n = !1, s = !1) {
|
|
1244
|
+
const { props: r, ref: o, patchFlag: i, children: c, transition: l } = e, f = t ? Cs(r || {}, t) : r, h = {
|
|
1242
1245
|
__v_isVNode: !0,
|
|
1243
1246
|
__v_skip: !0,
|
|
1244
1247
|
type: e.type,
|
|
@@ -1274,8 +1277,8 @@ function ge(e, t, n = !1, s = !1) {
|
|
|
1274
1277
|
// they will simply be overwritten.
|
|
1275
1278
|
component: e.component,
|
|
1276
1279
|
suspense: e.suspense,
|
|
1277
|
-
ssContent: e.ssContent &&
|
|
1278
|
-
ssFallback: e.ssFallback &&
|
|
1280
|
+
ssContent: e.ssContent && ye(e.ssContent),
|
|
1281
|
+
ssFallback: e.ssFallback && ye(e.ssFallback),
|
|
1279
1282
|
placeholder: e.placeholder,
|
|
1280
1283
|
el: e.el,
|
|
1281
1284
|
anchor: e.anchor,
|
|
@@ -1288,13 +1291,13 @@ function ge(e, t, n = !1, s = !1) {
|
|
|
1288
1291
|
), h;
|
|
1289
1292
|
}
|
|
1290
1293
|
function Ft(e) {
|
|
1291
|
-
const t =
|
|
1294
|
+
const t = ye(e);
|
|
1292
1295
|
return g(e.children) && (t.children = e.children.map(Ft)), t;
|
|
1293
1296
|
}
|
|
1294
1297
|
function Vs(e = " ", t = 0) {
|
|
1295
|
-
return
|
|
1298
|
+
return Os(Ss, null, e, t);
|
|
1296
1299
|
}
|
|
1297
|
-
function
|
|
1300
|
+
function Qe(e, t) {
|
|
1298
1301
|
let n = 0;
|
|
1299
1302
|
const { shapeFlag: s } = e;
|
|
1300
1303
|
if (t == null)
|
|
@@ -1304,31 +1307,33 @@ function Ze(e, t) {
|
|
|
1304
1307
|
else if (typeof t == "object")
|
|
1305
1308
|
if (s & 65) {
|
|
1306
1309
|
const r = t.default;
|
|
1307
|
-
r && (r._c && (r._d = !1),
|
|
1310
|
+
r && (r._c && (r._d = !1), Qe(e, r()), r._c && (r._d = !0));
|
|
1308
1311
|
return;
|
|
1309
1312
|
} else
|
|
1310
|
-
n = 32, !t._ && !$t(t) && (t._ctx =
|
|
1311
|
-
else T(t) ? (t = { default: t, _ctx:
|
|
1313
|
+
n = 32, !t._ && !$t(t) && (t._ctx = ge);
|
|
1314
|
+
else T(t) ? (t = { default: t, _ctx: ge }, n = 32) : (t = String(t), s & 64 ? (n = 16, t = [Vs(t)]) : n = 8);
|
|
1312
1315
|
e.children = t, e.shapeFlag |= n;
|
|
1313
1316
|
}
|
|
1314
|
-
function
|
|
1317
|
+
function Cs(...e) {
|
|
1315
1318
|
const t = {};
|
|
1316
1319
|
for (let n = 0; n < e.length; n++) {
|
|
1317
1320
|
const s = e[n];
|
|
1318
1321
|
for (const r in s)
|
|
1319
1322
|
if (r === "class")
|
|
1320
|
-
t.class !== s.class && (t.class =
|
|
1323
|
+
t.class !== s.class && (t.class = Be([t.class, s.class]));
|
|
1321
1324
|
else if (r === "style")
|
|
1322
|
-
t.style =
|
|
1323
|
-
else if (
|
|
1325
|
+
t.style = ze([t.style, s.style]);
|
|
1326
|
+
else if (mn(r)) {
|
|
1324
1327
|
const o = t[r], i = s[r];
|
|
1325
|
-
i && o !== i && !(g(o) && o.includes(i))
|
|
1328
|
+
i && o !== i && !(g(o) && o.includes(i)) ? t[r] = o ? [].concat(o, i) : i : i == null && o == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
1329
|
+
// the model listener.
|
|
1330
|
+
!bn(r) && (t[r] = i);
|
|
1326
1331
|
} else r !== "" && (t[r] = s[r]);
|
|
1327
1332
|
}
|
|
1328
1333
|
return t;
|
|
1329
1334
|
}
|
|
1330
1335
|
{
|
|
1331
|
-
const e =
|
|
1336
|
+
const e = Ne(), t = (n, s) => {
|
|
1332
1337
|
let r;
|
|
1333
1338
|
return (r = e[n]) || (r = e[n] = []), r.push(s), (o) => {
|
|
1334
1339
|
r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
|
|
@@ -1343,7 +1348,7 @@ function Is(...e) {
|
|
|
1343
1348
|
);
|
|
1344
1349
|
}
|
|
1345
1350
|
process.env.NODE_ENV;
|
|
1346
|
-
const
|
|
1351
|
+
const Rs = /(?:^|[-_])\w/g, xs = (e) => e.replace(Rs, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
1347
1352
|
function Kt(e, t = !0) {
|
|
1348
1353
|
return T(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
1349
1354
|
}
|
|
@@ -1363,12 +1368,12 @@ function Ht(e, t, n = !1) {
|
|
|
1363
1368
|
e.parent.type.components
|
|
1364
1369
|
) || r(e.appContext.components);
|
|
1365
1370
|
}
|
|
1366
|
-
return s ?
|
|
1371
|
+
return s ? xs(s) : n ? "App" : "Anonymous";
|
|
1367
1372
|
}
|
|
1368
1373
|
function qt(e) {
|
|
1369
1374
|
return T(e) && "__vccOpts" in e;
|
|
1370
1375
|
}
|
|
1371
|
-
function
|
|
1376
|
+
function Is() {
|
|
1372
1377
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1373
1378
|
return;
|
|
1374
1379
|
const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
|
|
@@ -1378,7 +1383,7 @@ function Ds() {
|
|
|
1378
1383
|
return null;
|
|
1379
1384
|
if (a.__isVue)
|
|
1380
1385
|
return ["div", e, "VueInstance"];
|
|
1381
|
-
if (m(a)) {
|
|
1386
|
+
if (/* @__PURE__ */ m(a)) {
|
|
1382
1387
|
const u = a.value;
|
|
1383
1388
|
return [
|
|
1384
1389
|
"div",
|
|
@@ -1389,20 +1394,20 @@ function Ds() {
|
|
|
1389
1394
|
">"
|
|
1390
1395
|
];
|
|
1391
1396
|
} else {
|
|
1392
|
-
if (
|
|
1397
|
+
if (/* @__PURE__ */ Xe(a))
|
|
1393
1398
|
return [
|
|
1394
1399
|
"div",
|
|
1395
1400
|
{},
|
|
1396
|
-
["span", e, v(a) ? "ShallowReactive" : "Reactive"],
|
|
1401
|
+
["span", e, /* @__PURE__ */ v(a) ? "ShallowReactive" : "Reactive"],
|
|
1397
1402
|
"<",
|
|
1398
1403
|
c(a),
|
|
1399
|
-
`>${
|
|
1404
|
+
`>${/* @__PURE__ */ N(a) ? " (readonly)" : ""}`
|
|
1400
1405
|
];
|
|
1401
|
-
if (
|
|
1406
|
+
if (/* @__PURE__ */ N(a))
|
|
1402
1407
|
return [
|
|
1403
1408
|
"div",
|
|
1404
1409
|
{},
|
|
1405
|
-
["span", e, v(a) ? "ShallowReadonly" : "Readonly"],
|
|
1410
|
+
["span", e, /* @__PURE__ */ v(a) ? "ShallowReadonly" : "Readonly"],
|
|
1406
1411
|
"<",
|
|
1407
1412
|
c(a),
|
|
1408
1413
|
">"
|
|
@@ -1424,7 +1429,7 @@ function Ds() {
|
|
|
1424
1429
|
};
|
|
1425
1430
|
function o(a) {
|
|
1426
1431
|
const u = [];
|
|
1427
|
-
a.type.props && a.props && u.push(i("props", p(a.props))), a.setupState !==
|
|
1432
|
+
a.type.props && a.props && u.push(i("props", /* @__PURE__ */ p(a.props))), a.setupState !== Me && u.push(i("setup", a.setupState)), a.data !== Me && u.push(i("data", /* @__PURE__ */ p(a.data)));
|
|
1428
1433
|
const d = l(a, "computed");
|
|
1429
1434
|
d && u.push(i("computed", d));
|
|
1430
1435
|
const _ = l(a, "inject");
|
|
@@ -1442,7 +1447,7 @@ function Ds() {
|
|
|
1442
1447
|
]), u;
|
|
1443
1448
|
}
|
|
1444
1449
|
function i(a, u) {
|
|
1445
|
-
return u =
|
|
1450
|
+
return u = q({}, u), Object.keys(u).length ? [
|
|
1446
1451
|
"div",
|
|
1447
1452
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
1448
1453
|
[
|
|
@@ -1467,7 +1472,7 @@ function Ds() {
|
|
|
1467
1472
|
] : ["span", {}];
|
|
1468
1473
|
}
|
|
1469
1474
|
function c(a, u = !0) {
|
|
1470
|
-
return typeof a == "number" ? ["span", t, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", s, a] : y(a) ? ["object", { object: u ? p(a) : a }] : ["span", n, String(a)];
|
|
1475
|
+
return typeof a == "number" ? ["span", t, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", s, a] : y(a) ? ["object", { object: u ? /* @__PURE__ */ p(a) : a }] : ["span", n, String(a)];
|
|
1471
1476
|
}
|
|
1472
1477
|
function l(a, u) {
|
|
1473
1478
|
const d = a.type;
|
|
@@ -1484,22 +1489,24 @@ function Ds() {
|
|
|
1484
1489
|
return !0;
|
|
1485
1490
|
}
|
|
1486
1491
|
function h(a) {
|
|
1487
|
-
return v(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
|
|
1492
|
+
return /* @__PURE__ */ v(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
|
|
1488
1493
|
}
|
|
1489
1494
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
|
|
1490
1495
|
}
|
|
1491
1496
|
process.env.NODE_ENV;
|
|
1492
1497
|
process.env.NODE_ENV;
|
|
1493
1498
|
process.env.NODE_ENV;
|
|
1494
|
-
function
|
|
1495
|
-
|
|
1499
|
+
function Ds() {
|
|
1500
|
+
Is();
|
|
1501
|
+
}
|
|
1502
|
+
process.env.NODE_ENV !== "production" && Ds();
|
|
1503
|
+
const Ps = /* @__PURE__ */ new Set(["_", "$"]);
|
|
1504
|
+
function js(e) {
|
|
1505
|
+
return Ps.has(e[0]);
|
|
1496
1506
|
}
|
|
1497
|
-
|
|
1498
|
-
class js extends fn {
|
|
1499
|
-
_className = "Store";
|
|
1507
|
+
class $s extends fn {
|
|
1500
1508
|
_onAction;
|
|
1501
1509
|
_options;
|
|
1502
|
-
_resetCallback;
|
|
1503
1510
|
_store;
|
|
1504
1511
|
_subscriptions = {};
|
|
1505
1512
|
_storeSubscribe;
|
|
@@ -1517,12 +1524,6 @@ class js extends fn {
|
|
|
1517
1524
|
get options() {
|
|
1518
1525
|
return this._options;
|
|
1519
1526
|
}
|
|
1520
|
-
get resetCallback() {
|
|
1521
|
-
return this._resetCallback;
|
|
1522
|
-
}
|
|
1523
|
-
set resetCallback(t) {
|
|
1524
|
-
this._resetCallback = t;
|
|
1525
|
-
}
|
|
1526
1527
|
get state() {
|
|
1527
1528
|
return this._store.$state;
|
|
1528
1529
|
}
|
|
@@ -1551,7 +1552,7 @@ class js extends fn {
|
|
|
1551
1552
|
* @param value
|
|
1552
1553
|
*/
|
|
1553
1554
|
addToState(t, n) {
|
|
1554
|
-
this.isOptionApi() || n?.value || (n =
|
|
1555
|
+
this.isOptionApi() || n?.value || (n = /* @__PURE__ */ Vt(n)), this.state[t] = n, this.store[t] = /* @__PURE__ */ Xn(this.state, t);
|
|
1555
1556
|
}
|
|
1556
1557
|
addSubscription(t, n, s) {
|
|
1557
1558
|
this._subscriptions[t] = { subscription: n, ...s ?? {} };
|
|
@@ -1568,10 +1569,10 @@ class js extends fn {
|
|
|
1568
1569
|
return new this(t, n, s, r);
|
|
1569
1570
|
}
|
|
1570
1571
|
hasDeniedFirstChar(t) {
|
|
1571
|
-
return
|
|
1572
|
+
return js(t[0]);
|
|
1572
1573
|
}
|
|
1573
1574
|
static hasRequiredKeys(t) {
|
|
1574
|
-
return this._requiredKeys
|
|
1575
|
+
return this._requiredKeys !== void 0 && this._requiredKeys?.every((n) => !!t[n]);
|
|
1575
1576
|
}
|
|
1576
1577
|
getOption(t) {
|
|
1577
1578
|
return this.options && this.options[t];
|
|
@@ -1580,7 +1581,7 @@ class js extends fn {
|
|
|
1580
1581
|
return this.getValue(this.state[t]);
|
|
1581
1582
|
}
|
|
1582
1583
|
getSubscriptions() {
|
|
1583
|
-
if (!
|
|
1584
|
+
if (!Y(this._subscriptions))
|
|
1584
1585
|
return this._subscriptions;
|
|
1585
1586
|
}
|
|
1586
1587
|
getValue(t) {
|
|
@@ -1596,11 +1597,11 @@ class js extends fn {
|
|
|
1596
1597
|
return this.store.hasOwnProperty(t);
|
|
1597
1598
|
}
|
|
1598
1599
|
}
|
|
1599
|
-
const
|
|
1600
|
-
class
|
|
1601
|
-
_pluginName =
|
|
1600
|
+
const Ut = "pinia-plugin-persist-state";
|
|
1601
|
+
class Ts extends _n {
|
|
1602
|
+
_pluginName = Ut;
|
|
1602
1603
|
}
|
|
1603
|
-
const A = new
|
|
1604
|
+
const A = new Ts();
|
|
1604
1605
|
let pt = class {
|
|
1605
1606
|
_db;
|
|
1606
1607
|
_localStorageVersionKey = "IDBVersion";
|
|
@@ -1799,7 +1800,7 @@ class et {
|
|
|
1799
1800
|
this._db.removeItem(t);
|
|
1800
1801
|
}
|
|
1801
1802
|
setItem(t, n) {
|
|
1802
|
-
if (
|
|
1803
|
+
if (this._db instanceof pt)
|
|
1803
1804
|
try {
|
|
1804
1805
|
this._db.getItem(t).then((s) => {
|
|
1805
1806
|
s ? this._db.updateItem(s) : this._db.setItem({ storeName: t, ...n });
|
|
@@ -1811,7 +1812,7 @@ class et {
|
|
|
1811
1812
|
this._db.setItem(n, t);
|
|
1812
1813
|
}
|
|
1813
1814
|
}
|
|
1814
|
-
class
|
|
1815
|
+
class As {
|
|
1815
1816
|
_store = /* @__PURE__ */ new Map();
|
|
1816
1817
|
clear() {
|
|
1817
1818
|
this._store.clear();
|
|
@@ -1836,22 +1837,22 @@ class Ts {
|
|
|
1836
1837
|
this._store.set(n, t);
|
|
1837
1838
|
}
|
|
1838
1839
|
}
|
|
1839
|
-
let
|
|
1840
|
-
const
|
|
1841
|
-
clear: () =>
|
|
1842
|
-
getItem: async (e) => new Promise((t) => t(
|
|
1843
|
-
removeItem: (e) => delete
|
|
1844
|
-
removeItems: (e) => e ? e.forEach((t) => delete
|
|
1840
|
+
let W = {};
|
|
1841
|
+
const Ms = {
|
|
1842
|
+
clear: () => W = {},
|
|
1843
|
+
getItem: async (e) => new Promise((t) => t(W[e])),
|
|
1844
|
+
removeItem: (e) => delete W[e],
|
|
1845
|
+
removeItems: (e) => e ? e.forEach((t) => delete W[t]) : W = {},
|
|
1845
1846
|
setItem: (e, t) => {
|
|
1846
|
-
|
|
1847
|
+
W[t] = e;
|
|
1847
1848
|
}
|
|
1848
1849
|
};
|
|
1849
|
-
class
|
|
1850
|
+
class Fs extends et {
|
|
1850
1851
|
defineDb() {
|
|
1851
|
-
return this.dbName === "localStorage" || this.dbName === "sessionStorage" ?
|
|
1852
|
+
return this.dbName === "localStorage" || this.dbName === "sessionStorage" ? Ms : new As();
|
|
1852
1853
|
}
|
|
1853
1854
|
}
|
|
1854
|
-
class
|
|
1855
|
+
class ie {
|
|
1855
1856
|
_encoder = new TextEncoder();
|
|
1856
1857
|
_key;
|
|
1857
1858
|
_materialKey;
|
|
@@ -1894,7 +1895,7 @@ class oe {
|
|
|
1894
1895
|
name: "AES-GCM",
|
|
1895
1896
|
iv: Uint8Array.from(atob(n), (o) => o.charCodeAt(0))
|
|
1896
1897
|
},
|
|
1897
|
-
await this.getKey(
|
|
1898
|
+
await this.getKey(ie.DECRYPT),
|
|
1898
1899
|
Uint8Array.from(atob(s), (o) => o.charCodeAt(0))
|
|
1899
1900
|
);
|
|
1900
1901
|
return new TextDecoder().decode(r);
|
|
@@ -1910,7 +1911,7 @@ class oe {
|
|
|
1910
1911
|
name: "AES-GCM",
|
|
1911
1912
|
iv: n
|
|
1912
1913
|
},
|
|
1913
|
-
await this.getKey(
|
|
1914
|
+
await this.getKey(ie.ENCRYPT),
|
|
1914
1915
|
this._encoder.encode(t)
|
|
1915
1916
|
);
|
|
1916
1917
|
return btoa(String.fromCharCode(...new Uint8Array(n))) + ":" + btoa(String.fromCharCode(...new Uint8Array(s)));
|
|
@@ -1919,18 +1920,18 @@ class oe {
|
|
|
1919
1920
|
this._materialKey || await this.setKeyMaterial(this._key);
|
|
1920
1921
|
}
|
|
1921
1922
|
}
|
|
1922
|
-
const
|
|
1923
|
+
const qe = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
1923
1924
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1924
|
-
const
|
|
1925
|
-
},
|
|
1926
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97),
|
|
1925
|
+
const Lt = () => {
|
|
1926
|
+
}, Ks = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
1927
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Hs = (e) => e.startsWith("onUpdate:"), Oe = Object.assign, O = Array.isArray, U = (e) => typeof e == "function", $ = (e) => typeof e == "string", qs = (e) => typeof e == "symbol", F = (e) => e !== null && typeof e == "object";
|
|
1927
1928
|
let ht;
|
|
1928
|
-
const
|
|
1929
|
+
const ke = () => ht || (ht = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
1929
1930
|
function tt(e) {
|
|
1930
|
-
if (
|
|
1931
|
+
if (O(e)) {
|
|
1931
1932
|
const t = {};
|
|
1932
1933
|
for (let n = 0; n < e.length; n++) {
|
|
1933
|
-
const s = e[n], r = $(s) ?
|
|
1934
|
+
const s = e[n], r = $(s) ? zs(s) : tt(s);
|
|
1934
1935
|
if (r)
|
|
1935
1936
|
for (const o in r)
|
|
1936
1937
|
t[o] = r[o];
|
|
@@ -1939,12 +1940,12 @@ function tt(e) {
|
|
|
1939
1940
|
} else if ($(e) || F(e))
|
|
1940
1941
|
return e;
|
|
1941
1942
|
}
|
|
1942
|
-
const
|
|
1943
|
-
function
|
|
1943
|
+
const Us = /;(?![^(]*\))/g, Ls = /:([^]+)/, Ws = /\/\*[^]*?\*\//g;
|
|
1944
|
+
function zs(e) {
|
|
1944
1945
|
const t = {};
|
|
1945
|
-
return e.replace(
|
|
1946
|
+
return e.replace(Ws, "").split(Us).forEach((n) => {
|
|
1946
1947
|
if (n) {
|
|
1947
|
-
const s = n.split(
|
|
1948
|
+
const s = n.split(Ls);
|
|
1948
1949
|
s.length > 1 && (t[s[0].trim()] = s[1].trim());
|
|
1949
1950
|
}
|
|
1950
1951
|
}), t;
|
|
@@ -1953,7 +1954,7 @@ function nt(e) {
|
|
|
1953
1954
|
let t = "";
|
|
1954
1955
|
if ($(e))
|
|
1955
1956
|
t = e;
|
|
1956
|
-
else if (
|
|
1957
|
+
else if (O(e))
|
|
1957
1958
|
for (let n = 0; n < e.length; n++) {
|
|
1958
1959
|
const s = nt(e[n]);
|
|
1959
1960
|
s && (t += s + " ");
|
|
@@ -1967,18 +1968,18 @@ process.env.NODE_ENV;
|
|
|
1967
1968
|
process.env.NODE_ENV;
|
|
1968
1969
|
process.env.NODE_ENV;
|
|
1969
1970
|
new Set(
|
|
1970
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
1971
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(qs)
|
|
1971
1972
|
);
|
|
1972
1973
|
// @__NO_SIDE_EFFECTS__
|
|
1973
|
-
function
|
|
1974
|
-
return /* @__PURE__ */
|
|
1974
|
+
function Wt(e) {
|
|
1975
|
+
return /* @__PURE__ */ Ue(e) ? /* @__PURE__ */ Wt(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
1975
1976
|
}
|
|
1976
1977
|
// @__NO_SIDE_EFFECTS__
|
|
1977
|
-
function
|
|
1978
|
+
function Ue(e) {
|
|
1978
1979
|
return !!(e && e.__v_isReadonly);
|
|
1979
1980
|
}
|
|
1980
1981
|
// @__NO_SIDE_EFFECTS__
|
|
1981
|
-
function
|
|
1982
|
+
function je(e) {
|
|
1982
1983
|
return !!(e && e.__v_isShallow);
|
|
1983
1984
|
}
|
|
1984
1985
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1995,17 +1996,17 @@ function st(e) {
|
|
|
1995
1996
|
return e ? e.__v_isRef === !0 : !1;
|
|
1996
1997
|
}
|
|
1997
1998
|
const K = [];
|
|
1998
|
-
function
|
|
1999
|
+
function Bs(e) {
|
|
1999
2000
|
K.push(e);
|
|
2000
2001
|
}
|
|
2001
|
-
function
|
|
2002
|
+
function Js() {
|
|
2002
2003
|
K.pop();
|
|
2003
2004
|
}
|
|
2004
|
-
let
|
|
2005
|
+
let $e = !1;
|
|
2005
2006
|
function Q(e, ...t) {
|
|
2006
|
-
if (
|
|
2007
|
-
|
|
2008
|
-
const n = K.length ? K[K.length - 1].component : null, s = n && n.appContext.config.warnHandler, r =
|
|
2007
|
+
if ($e) return;
|
|
2008
|
+
$e = !0;
|
|
2009
|
+
const n = K.length ? K[K.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = Ys();
|
|
2009
2010
|
if (s)
|
|
2010
2011
|
rt(
|
|
2011
2012
|
s,
|
|
@@ -2028,11 +2029,11 @@ function Q(e, ...t) {
|
|
|
2028
2029
|
else {
|
|
2029
2030
|
const o = [`[Vue warn]: ${e}`, ...t];
|
|
2030
2031
|
r.length && o.push(`
|
|
2031
|
-
`, ...
|
|
2032
|
+
`, ...Gs(r)), console.warn(...o);
|
|
2032
2033
|
}
|
|
2033
|
-
|
|
2034
|
+
$e = !1;
|
|
2034
2035
|
}
|
|
2035
|
-
function
|
|
2036
|
+
function Ys() {
|
|
2036
2037
|
let e = K[K.length - 1];
|
|
2037
2038
|
if (!e)
|
|
2038
2039
|
return [];
|
|
@@ -2048,31 +2049,31 @@ function Ws() {
|
|
|
2048
2049
|
}
|
|
2049
2050
|
return t;
|
|
2050
2051
|
}
|
|
2051
|
-
function
|
|
2052
|
+
function Gs(e) {
|
|
2052
2053
|
const t = [];
|
|
2053
2054
|
return e.forEach((n, s) => {
|
|
2054
2055
|
t.push(...s === 0 ? [] : [`
|
|
2055
|
-
`], ...
|
|
2056
|
+
`], ...Xs(n));
|
|
2056
2057
|
}), t;
|
|
2057
2058
|
}
|
|
2058
|
-
function
|
|
2059
|
+
function Xs({ vnode: e, recurseCount: t }) {
|
|
2059
2060
|
const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${cn(
|
|
2060
2061
|
e.component,
|
|
2061
2062
|
e.type,
|
|
2062
2063
|
s
|
|
2063
2064
|
)}`, o = ">" + n;
|
|
2064
|
-
return e.props ? [r, ...
|
|
2065
|
+
return e.props ? [r, ...Zs(e.props), o] : [r + o];
|
|
2065
2066
|
}
|
|
2066
|
-
function
|
|
2067
|
+
function Zs(e) {
|
|
2067
2068
|
const t = [], n = Object.keys(e);
|
|
2068
2069
|
return n.slice(0, 3).forEach((s) => {
|
|
2069
|
-
t.push(...
|
|
2070
|
+
t.push(...zt(s, e[s]));
|
|
2070
2071
|
}), n.length > 3 && t.push(" ..."), t;
|
|
2071
2072
|
}
|
|
2072
|
-
function
|
|
2073
|
-
return $(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ st(t) ? (t =
|
|
2073
|
+
function zt(e, t, n) {
|
|
2074
|
+
return $(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ st(t) ? (t = zt(e, /* @__PURE__ */ j(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : U(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ j(t), n ? t : [`${e}=`, t]);
|
|
2074
2075
|
}
|
|
2075
|
-
const
|
|
2076
|
+
const Bt = {
|
|
2076
2077
|
sp: "serverPrefetch hook",
|
|
2077
2078
|
bc: "beforeCreate hook",
|
|
2078
2079
|
c: "created hook",
|
|
@@ -2113,10 +2114,10 @@ function rt(e, t, n, s) {
|
|
|
2113
2114
|
}
|
|
2114
2115
|
}
|
|
2115
2116
|
function Jt(e, t, n, s = !0) {
|
|
2116
|
-
const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = t && t.appContext.config ||
|
|
2117
|
+
const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = t && t.appContext.config || qe;
|
|
2117
2118
|
if (t) {
|
|
2118
2119
|
let c = t.parent;
|
|
2119
|
-
const l = t.proxy, f = process.env.NODE_ENV !== "production" ?
|
|
2120
|
+
const l = t.proxy, f = process.env.NODE_ENV !== "production" ? Bt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
2120
2121
|
for (; c; ) {
|
|
2121
2122
|
const h = c.ec;
|
|
2122
2123
|
if (h) {
|
|
@@ -2139,8 +2140,8 @@ function Jt(e, t, n, s = !0) {
|
|
|
2139
2140
|
}
|
|
2140
2141
|
function Qs(e, t, n, s = !0, r = !1) {
|
|
2141
2142
|
if (process.env.NODE_ENV !== "production") {
|
|
2142
|
-
const o =
|
|
2143
|
-
if (n &&
|
|
2143
|
+
const o = Bt[t];
|
|
2144
|
+
if (n && Bs(n), Q(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Js(), s)
|
|
2144
2145
|
throw e;
|
|
2145
2146
|
console.error(e);
|
|
2146
2147
|
} else {
|
|
@@ -2151,52 +2152,52 @@ function Qs(e, t, n, s = !0, r = !1) {
|
|
|
2151
2152
|
}
|
|
2152
2153
|
const S = [];
|
|
2153
2154
|
let C = -1;
|
|
2154
|
-
const
|
|
2155
|
-
let D = null,
|
|
2156
|
-
const
|
|
2157
|
-
let
|
|
2158
|
-
const
|
|
2159
|
-
function
|
|
2155
|
+
const X = [];
|
|
2156
|
+
let D = null, B = 0;
|
|
2157
|
+
const er = /* @__PURE__ */ Promise.resolve();
|
|
2158
|
+
let We = null;
|
|
2159
|
+
const tr = 100;
|
|
2160
|
+
function nr(e) {
|
|
2160
2161
|
let t = C + 1, n = S.length;
|
|
2161
2162
|
for (; t < n; ) {
|
|
2162
|
-
const s = t + n >>> 1, r = S[s], o =
|
|
2163
|
+
const s = t + n >>> 1, r = S[s], o = ce(r);
|
|
2163
2164
|
o < e || o === e && r.flags & 2 ? t = s + 1 : n = s;
|
|
2164
2165
|
}
|
|
2165
2166
|
return t;
|
|
2166
2167
|
}
|
|
2167
|
-
function
|
|
2168
|
+
function sr(e) {
|
|
2168
2169
|
if (!(e.flags & 1)) {
|
|
2169
|
-
const t =
|
|
2170
|
+
const t = ce(e), n = S[S.length - 1];
|
|
2170
2171
|
!n || // fast path when the job id is larger than the tail
|
|
2171
|
-
!(e.flags & 2) && t >=
|
|
2172
|
+
!(e.flags & 2) && t >= ce(n) ? S.push(e) : S.splice(nr(t), 0, e), e.flags |= 1, Yt();
|
|
2172
2173
|
}
|
|
2173
2174
|
}
|
|
2174
2175
|
function Yt() {
|
|
2175
|
-
|
|
2176
|
+
We || (We = er.then(Gt));
|
|
2176
2177
|
}
|
|
2177
|
-
function
|
|
2178
|
-
|
|
2178
|
+
function rr(e) {
|
|
2179
|
+
O(e) ? X.push(...e) : D && e.id === -1 ? D.splice(B + 1, 0, e) : e.flags & 1 || (X.push(e), e.flags |= 1), Yt();
|
|
2179
2180
|
}
|
|
2180
|
-
function
|
|
2181
|
-
if (
|
|
2182
|
-
const t = [...new Set(
|
|
2183
|
-
(n, s) =>
|
|
2181
|
+
function or(e) {
|
|
2182
|
+
if (X.length) {
|
|
2183
|
+
const t = [...new Set(X)].sort(
|
|
2184
|
+
(n, s) => ce(n) - ce(s)
|
|
2184
2185
|
);
|
|
2185
|
-
if (
|
|
2186
|
+
if (X.length = 0, D) {
|
|
2186
2187
|
D.push(...t);
|
|
2187
2188
|
return;
|
|
2188
2189
|
}
|
|
2189
|
-
for (D = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()),
|
|
2190
|
-
const n = D[
|
|
2191
|
-
process.env.NODE_ENV !== "production" &&
|
|
2190
|
+
for (D = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), B = 0; B < D.length; B++) {
|
|
2191
|
+
const n = D[B];
|
|
2192
|
+
process.env.NODE_ENV !== "production" && Xt(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
2192
2193
|
}
|
|
2193
|
-
D = null,
|
|
2194
|
+
D = null, B = 0;
|
|
2194
2195
|
}
|
|
2195
2196
|
}
|
|
2196
|
-
const
|
|
2197
|
+
const ce = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
2197
2198
|
function Gt(e) {
|
|
2198
2199
|
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
2199
|
-
const t = process.env.NODE_ENV !== "production" ? (n) =>
|
|
2200
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => Xt(e, n) : Lt;
|
|
2200
2201
|
try {
|
|
2201
2202
|
for (C = 0; C < S.length; C++) {
|
|
2202
2203
|
const n = S[C];
|
|
@@ -2215,12 +2216,12 @@ function Gt(e) {
|
|
|
2215
2216
|
const n = S[C];
|
|
2216
2217
|
n && (n.flags &= -2);
|
|
2217
2218
|
}
|
|
2218
|
-
C = -1, S.length = 0,
|
|
2219
|
+
C = -1, S.length = 0, or(e), We = null, (S.length || X.length) && Gt(e);
|
|
2219
2220
|
}
|
|
2220
2221
|
}
|
|
2221
|
-
function
|
|
2222
|
+
function Xt(e, t) {
|
|
2222
2223
|
const n = e.get(t) || 0;
|
|
2223
|
-
if (n >
|
|
2224
|
+
if (n > tr) {
|
|
2224
2225
|
const s = t.i, r = s && on(s.type);
|
|
2225
2226
|
return Jt(
|
|
2226
2227
|
`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.`,
|
|
@@ -2230,52 +2231,52 @@ function Qt(e, t) {
|
|
|
2230
2231
|
}
|
|
2231
2232
|
return e.set(t, n + 1), !1;
|
|
2232
2233
|
}
|
|
2233
|
-
const
|
|
2234
|
-
process.env.NODE_ENV !== "production" && (
|
|
2235
|
-
createRecord:
|
|
2236
|
-
rerender:
|
|
2237
|
-
reload:
|
|
2234
|
+
const Te = /* @__PURE__ */ new Map();
|
|
2235
|
+
process.env.NODE_ENV !== "production" && (ke().__VUE_HMR_RUNTIME__ = {
|
|
2236
|
+
createRecord: Ae(ir),
|
|
2237
|
+
rerender: Ae(cr),
|
|
2238
|
+
reload: Ae(ar)
|
|
2238
2239
|
});
|
|
2239
|
-
const
|
|
2240
|
-
function
|
|
2241
|
-
return
|
|
2242
|
-
initialDef:
|
|
2240
|
+
const me = /* @__PURE__ */ new Map();
|
|
2241
|
+
function ir(e, t) {
|
|
2242
|
+
return me.has(e) ? !1 : (me.set(e, {
|
|
2243
|
+
initialDef: be(t),
|
|
2243
2244
|
instances: /* @__PURE__ */ new Set()
|
|
2244
2245
|
}), !0);
|
|
2245
2246
|
}
|
|
2246
|
-
function
|
|
2247
|
+
function be(e) {
|
|
2247
2248
|
return an(e) ? e.__vccOpts : e;
|
|
2248
2249
|
}
|
|
2249
|
-
function
|
|
2250
|
-
const n =
|
|
2250
|
+
function cr(e, t) {
|
|
2251
|
+
const n = me.get(e);
|
|
2251
2252
|
n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
|
|
2252
|
-
t && (s.render = t,
|
|
2253
|
+
t && (s.render = t, be(s.type).render = t), s.renderCache = [], s.job.flags & 8 || s.update();
|
|
2253
2254
|
}));
|
|
2254
2255
|
}
|
|
2255
|
-
function
|
|
2256
|
-
const n =
|
|
2256
|
+
function ar(e, t) {
|
|
2257
|
+
const n = me.get(e);
|
|
2257
2258
|
if (!n) return;
|
|
2258
|
-
t =
|
|
2259
|
+
t = be(t), dt(n.initialDef, t);
|
|
2259
2260
|
const s = [...n.instances];
|
|
2260
2261
|
for (let r = 0; r < s.length; r++) {
|
|
2261
|
-
const o = s[r], i =
|
|
2262
|
-
let c =
|
|
2263
|
-
c || (i !== n.initialDef && dt(i, t),
|
|
2262
|
+
const o = s[r], i = be(o.type);
|
|
2263
|
+
let c = Te.get(i);
|
|
2264
|
+
c || (i !== n.initialDef && dt(i, t), Te.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(t.styles), c.delete(o)) : o.parent ? sr(() => {
|
|
2264
2265
|
o.job.flags & 8 || (o.parent.update(), c.delete(o));
|
|
2265
2266
|
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
2266
2267
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
2267
2268
|
), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
|
|
2268
2269
|
}
|
|
2269
|
-
|
|
2270
|
-
|
|
2270
|
+
rr(() => {
|
|
2271
|
+
Te.clear();
|
|
2271
2272
|
});
|
|
2272
2273
|
}
|
|
2273
2274
|
function dt(e, t) {
|
|
2274
|
-
|
|
2275
|
+
Oe(e, t);
|
|
2275
2276
|
for (const n in e)
|
|
2276
2277
|
n !== "__file" && !(n in t) && delete e[n];
|
|
2277
2278
|
}
|
|
2278
|
-
function
|
|
2279
|
+
function Ae(e) {
|
|
2279
2280
|
return (t, n) => {
|
|
2280
2281
|
try {
|
|
2281
2282
|
return e(t, n);
|
|
@@ -2286,41 +2287,41 @@ function Te(e) {
|
|
|
2286
2287
|
}
|
|
2287
2288
|
};
|
|
2288
2289
|
}
|
|
2289
|
-
let
|
|
2290
|
-
function
|
|
2290
|
+
let J, ue = [];
|
|
2291
|
+
function Zt(e, t) {
|
|
2291
2292
|
var n, s;
|
|
2292
|
-
|
|
2293
|
+
J = e, J ? (J.enabled = !0, ue.forEach(({ event: r, args: o }) => J.emit(r, ...o)), ue = []) : /* 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
|
|
2293
2294
|
window.HTMLElement && // also exclude jsdom
|
|
2294
2295
|
// eslint-disable-next-line no-restricted-syntax
|
|
2295
2296
|
!((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
|
|
2296
|
-
|
|
2297
|
+
Zt(o, t);
|
|
2297
2298
|
}), setTimeout(() => {
|
|
2298
|
-
|
|
2299
|
+
J || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, ue = []);
|
|
2299
2300
|
}, 3e3)) : ue = [];
|
|
2300
2301
|
}
|
|
2301
|
-
let
|
|
2302
|
-
const
|
|
2303
|
-
function
|
|
2304
|
-
e.shapeFlag & 6 && e.component ? (e.transition = t,
|
|
2302
|
+
let Se = null, lr = null;
|
|
2303
|
+
const ur = (e) => e.__isTeleport;
|
|
2304
|
+
function Qt(e, t) {
|
|
2305
|
+
e.shapeFlag & 6 && e.component ? (e.transition = t, Qt(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
2305
2306
|
}
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
const
|
|
2309
|
-
process.env.NODE_ENV !== "production" && (
|
|
2307
|
+
ke().requestIdleCallback;
|
|
2308
|
+
ke().cancelIdleCallback;
|
|
2309
|
+
const fr = /* @__PURE__ */ Symbol.for("v-ndc"), pr = {};
|
|
2310
|
+
process.env.NODE_ENV !== "production" && (pr.ownKeys = (e) => (Q(
|
|
2310
2311
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
2311
2312
|
), Reflect.ownKeys(e)));
|
|
2312
|
-
const
|
|
2313
|
-
function
|
|
2313
|
+
const hr = {}, en = (e) => Object.getPrototypeOf(e) === hr, dr = (e) => e.__isSuspense, tn = /* @__PURE__ */ Symbol.for("v-fgt"), _r = /* @__PURE__ */ Symbol.for("v-txt"), gr = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
2314
|
+
function yr(e) {
|
|
2314
2315
|
return e ? e.__v_isVNode === !0 : !1;
|
|
2315
2316
|
}
|
|
2316
|
-
const
|
|
2317
|
+
const mr = (...e) => sn(
|
|
2317
2318
|
...e
|
|
2318
2319
|
), nn = ({ key: e }) => e ?? null, pe = ({
|
|
2319
2320
|
ref: e,
|
|
2320
2321
|
ref_key: t,
|
|
2321
2322
|
ref_for: n
|
|
2322
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? $(e) || /* @__PURE__ */ st(e) ||
|
|
2323
|
-
function
|
|
2323
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? $(e) || /* @__PURE__ */ st(e) || U(e) ? { i: Se, r: e, k: t, f: !!n } : e : null);
|
|
2324
|
+
function br(e, t = null, n = null, s = 0, r = null, o = e === tn ? 0 : 1, i = !1, c = !1) {
|
|
2324
2325
|
const l = {
|
|
2325
2326
|
__v_isVNode: !0,
|
|
2326
2327
|
__v_skip: !0,
|
|
@@ -2328,7 +2329,7 @@ function yr(e, t = null, n = null, s = 0, r = null, o = e === tn ? 0 : 1, i = !1
|
|
|
2328
2329
|
props: t,
|
|
2329
2330
|
key: t && nn(t),
|
|
2330
2331
|
ref: t && pe(t),
|
|
2331
|
-
scopeId:
|
|
2332
|
+
scopeId: lr,
|
|
2332
2333
|
slotScopeIds: null,
|
|
2333
2334
|
children: n,
|
|
2334
2335
|
component: null,
|
|
@@ -2348,14 +2349,14 @@ function yr(e, t = null, n = null, s = 0, r = null, o = e === tn ? 0 : 1, i = !1
|
|
|
2348
2349
|
dynamicProps: r,
|
|
2349
2350
|
dynamicChildren: null,
|
|
2350
2351
|
appContext: null,
|
|
2351
|
-
ctx:
|
|
2352
|
+
ctx: Se
|
|
2352
2353
|
};
|
|
2353
2354
|
return c ? (ot(l, n), o & 128 && e.normalize(l)) : n && (l.shapeFlag |= $(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && Q("VNode created with invalid key (NaN). VNode type:", l.type), l;
|
|
2354
2355
|
}
|
|
2355
|
-
const
|
|
2356
|
+
const Sr = process.env.NODE_ENV !== "production" ? mr : sn;
|
|
2356
2357
|
function sn(e, t = null, n = null, s = 0, r = null, o = !1) {
|
|
2357
|
-
if ((!e || e ===
|
|
2358
|
-
const c =
|
|
2358
|
+
if ((!e || e === fr) && (process.env.NODE_ENV !== "production" && !e && Q(`Invalid vnode type when creating vnode: ${e}.`), e = gr), yr(e)) {
|
|
2359
|
+
const c = ve(
|
|
2359
2360
|
e,
|
|
2360
2361
|
t,
|
|
2361
2362
|
!0
|
|
@@ -2364,17 +2365,17 @@ function sn(e, t = null, n = null, s = 0, r = null, o = !1) {
|
|
|
2364
2365
|
return n && ot(c, n), c.patchFlag = -2, c;
|
|
2365
2366
|
}
|
|
2366
2367
|
if (an(e) && (e = e.__vccOpts), t) {
|
|
2367
|
-
t =
|
|
2368
|
+
t = vr(t);
|
|
2368
2369
|
let { class: c, style: l } = t;
|
|
2369
|
-
c && !$(c) && (t.class = nt(c)), F(l) && (/* @__PURE__ */ Le(l) && !
|
|
2370
|
+
c && !$(c) && (t.class = nt(c)), F(l) && (/* @__PURE__ */ Le(l) && !O(l) && (l = Oe({}, l)), t.style = tt(l));
|
|
2370
2371
|
}
|
|
2371
|
-
const i = $(e) ? 1 :
|
|
2372
|
+
const i = $(e) ? 1 : dr(e) ? 128 : ur(e) ? 64 : F(e) ? 4 : U(e) ? 2 : 0;
|
|
2372
2373
|
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ Le(e) && (e = /* @__PURE__ */ j(e), Q(
|
|
2373
2374
|
"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`.",
|
|
2374
2375
|
`
|
|
2375
2376
|
Component that was made reactive: `,
|
|
2376
2377
|
e
|
|
2377
|
-
)),
|
|
2378
|
+
)), br(
|
|
2378
2379
|
e,
|
|
2379
2380
|
t,
|
|
2380
2381
|
n,
|
|
@@ -2385,11 +2386,11 @@ Component that was made reactive: `,
|
|
|
2385
2386
|
!0
|
|
2386
2387
|
);
|
|
2387
2388
|
}
|
|
2388
|
-
function
|
|
2389
|
-
return e ? /* @__PURE__ */ Le(e) || en(e) ?
|
|
2389
|
+
function vr(e) {
|
|
2390
|
+
return e ? /* @__PURE__ */ Le(e) || en(e) ? Oe({}, e) : e : null;
|
|
2390
2391
|
}
|
|
2391
|
-
function
|
|
2392
|
-
const { props: r, ref: o, patchFlag: i, children: c, transition: l } = e, f = t ?
|
|
2392
|
+
function ve(e, t, n = !1, s = !1) {
|
|
2393
|
+
const { props: r, ref: o, patchFlag: i, children: c, transition: l } = e, f = t ? Er(r || {}, t) : r, h = {
|
|
2393
2394
|
__v_isVNode: !0,
|
|
2394
2395
|
__v_skip: !0,
|
|
2395
2396
|
type: e.type,
|
|
@@ -2399,11 +2400,11 @@ function Se(e, t, n = !1, s = !1) {
|
|
|
2399
2400
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
2400
2401
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
2401
2402
|
// the refs so the single vnode can be set on multiple refs
|
|
2402
|
-
n && o ?
|
|
2403
|
+
n && o ? O(o) ? o.concat(pe(t)) : [o, pe(t)] : pe(t)
|
|
2403
2404
|
) : o,
|
|
2404
2405
|
scopeId: e.scopeId,
|
|
2405
2406
|
slotScopeIds: e.slotScopeIds,
|
|
2406
|
-
children: process.env.NODE_ENV !== "production" && i === -1 &&
|
|
2407
|
+
children: process.env.NODE_ENV !== "production" && i === -1 && O(c) ? c.map(rn) : c,
|
|
2407
2408
|
target: e.target,
|
|
2408
2409
|
targetStart: e.targetStart,
|
|
2409
2410
|
targetAnchor: e.targetAnchor,
|
|
@@ -2425,32 +2426,32 @@ function Se(e, t, n = !1, s = !1) {
|
|
|
2425
2426
|
// they will simply be overwritten.
|
|
2426
2427
|
component: e.component,
|
|
2427
2428
|
suspense: e.suspense,
|
|
2428
|
-
ssContent: e.ssContent &&
|
|
2429
|
-
ssFallback: e.ssFallback &&
|
|
2429
|
+
ssContent: e.ssContent && ve(e.ssContent),
|
|
2430
|
+
ssFallback: e.ssFallback && ve(e.ssFallback),
|
|
2430
2431
|
placeholder: e.placeholder,
|
|
2431
2432
|
el: e.el,
|
|
2432
2433
|
anchor: e.anchor,
|
|
2433
2434
|
ctx: e.ctx,
|
|
2434
2435
|
ce: e.ce
|
|
2435
2436
|
};
|
|
2436
|
-
return l && s &&
|
|
2437
|
+
return l && s && Qt(
|
|
2437
2438
|
h,
|
|
2438
2439
|
l.clone(h)
|
|
2439
2440
|
), h;
|
|
2440
2441
|
}
|
|
2441
2442
|
function rn(e) {
|
|
2442
|
-
const t =
|
|
2443
|
-
return
|
|
2443
|
+
const t = ve(e);
|
|
2444
|
+
return O(e.children) && (t.children = e.children.map(rn)), t;
|
|
2444
2445
|
}
|
|
2445
|
-
function
|
|
2446
|
-
return
|
|
2446
|
+
function wr(e = " ", t = 0) {
|
|
2447
|
+
return Sr(_r, null, e, t);
|
|
2447
2448
|
}
|
|
2448
2449
|
function ot(e, t) {
|
|
2449
2450
|
let n = 0;
|
|
2450
2451
|
const { shapeFlag: s } = e;
|
|
2451
2452
|
if (t == null)
|
|
2452
2453
|
t = null;
|
|
2453
|
-
else if (
|
|
2454
|
+
else if (O(t))
|
|
2454
2455
|
n = 16;
|
|
2455
2456
|
else if (typeof t == "object")
|
|
2456
2457
|
if (s & 65) {
|
|
@@ -2458,11 +2459,11 @@ function ot(e, t) {
|
|
|
2458
2459
|
r && (r._c && (r._d = !1), ot(e, r()), r._c && (r._d = !0));
|
|
2459
2460
|
return;
|
|
2460
2461
|
} else
|
|
2461
|
-
n = 32, !t._ && !en(t) && (t._ctx =
|
|
2462
|
-
else
|
|
2462
|
+
n = 32, !t._ && !en(t) && (t._ctx = Se);
|
|
2463
|
+
else U(t) ? (t = { default: t, _ctx: Se }, n = 32) : (t = String(t), s & 64 ? (n = 16, t = [wr(t)]) : n = 8);
|
|
2463
2464
|
e.children = t, e.shapeFlag |= n;
|
|
2464
2465
|
}
|
|
2465
|
-
function
|
|
2466
|
+
function Er(...e) {
|
|
2466
2467
|
const t = {};
|
|
2467
2468
|
for (let n = 0; n < e.length; n++) {
|
|
2468
2469
|
const s = e[n];
|
|
@@ -2471,15 +2472,17 @@ function vr(...e) {
|
|
|
2471
2472
|
t.class !== s.class && (t.class = nt([t.class, s.class]));
|
|
2472
2473
|
else if (r === "style")
|
|
2473
2474
|
t.style = tt([t.style, s.style]);
|
|
2474
|
-
else if (
|
|
2475
|
+
else if (Ks(r)) {
|
|
2475
2476
|
const o = t[r], i = s[r];
|
|
2476
|
-
i && o !== i && !(
|
|
2477
|
+
i && o !== i && !(O(o) && o.includes(i)) ? t[r] = o ? [].concat(o, i) : i : i == null && o == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
2478
|
+
// the model listener.
|
|
2479
|
+
!Hs(r) && (t[r] = i);
|
|
2477
2480
|
} else r !== "" && (t[r] = s[r]);
|
|
2478
2481
|
}
|
|
2479
2482
|
return t;
|
|
2480
2483
|
}
|
|
2481
2484
|
{
|
|
2482
|
-
const e =
|
|
2485
|
+
const e = ke(), t = (n, s) => {
|
|
2483
2486
|
let r;
|
|
2484
2487
|
return (r = e[n]) || (r = e[n] = []), r.push(s), (o) => {
|
|
2485
2488
|
r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
|
|
@@ -2494,9 +2497,9 @@ function vr(...e) {
|
|
|
2494
2497
|
);
|
|
2495
2498
|
}
|
|
2496
2499
|
process.env.NODE_ENV;
|
|
2497
|
-
const
|
|
2500
|
+
const Nr = /(?:^|[-_])\w/g, Or = (e) => e.replace(Nr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
2498
2501
|
function on(e, t = !0) {
|
|
2499
|
-
return
|
|
2502
|
+
return U(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
2500
2503
|
}
|
|
2501
2504
|
function cn(e, t, n = !1) {
|
|
2502
2505
|
let s = on(t);
|
|
@@ -2514,12 +2517,12 @@ function cn(e, t, n = !1) {
|
|
|
2514
2517
|
e.parent.type.components
|
|
2515
2518
|
) || r(e.appContext.components);
|
|
2516
2519
|
}
|
|
2517
|
-
return s ?
|
|
2520
|
+
return s ? Or(s) : n ? "App" : "Anonymous";
|
|
2518
2521
|
}
|
|
2519
2522
|
function an(e) {
|
|
2520
|
-
return
|
|
2523
|
+
return U(e) && "__vccOpts" in e;
|
|
2521
2524
|
}
|
|
2522
|
-
function
|
|
2525
|
+
function kr() {
|
|
2523
2526
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
2524
2527
|
return;
|
|
2525
2528
|
const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
|
|
@@ -2540,20 +2543,20 @@ function Nr() {
|
|
|
2540
2543
|
">"
|
|
2541
2544
|
];
|
|
2542
2545
|
} else {
|
|
2543
|
-
if (/* @__PURE__ */
|
|
2546
|
+
if (/* @__PURE__ */ Wt(a))
|
|
2544
2547
|
return [
|
|
2545
2548
|
"div",
|
|
2546
2549
|
{},
|
|
2547
|
-
["span", e, /* @__PURE__ */
|
|
2550
|
+
["span", e, /* @__PURE__ */ je(a) ? "ShallowReactive" : "Reactive"],
|
|
2548
2551
|
"<",
|
|
2549
2552
|
c(a),
|
|
2550
|
-
`>${/* @__PURE__ */
|
|
2553
|
+
`>${/* @__PURE__ */ Ue(a) ? " (readonly)" : ""}`
|
|
2551
2554
|
];
|
|
2552
|
-
if (/* @__PURE__ */
|
|
2555
|
+
if (/* @__PURE__ */ Ue(a))
|
|
2553
2556
|
return [
|
|
2554
2557
|
"div",
|
|
2555
2558
|
{},
|
|
2556
|
-
["span", e, /* @__PURE__ */
|
|
2559
|
+
["span", e, /* @__PURE__ */ je(a) ? "ShallowReadonly" : "Readonly"],
|
|
2557
2560
|
"<",
|
|
2558
2561
|
c(a),
|
|
2559
2562
|
">"
|
|
@@ -2575,7 +2578,7 @@ function Nr() {
|
|
|
2575
2578
|
};
|
|
2576
2579
|
function o(a) {
|
|
2577
2580
|
const u = [];
|
|
2578
|
-
a.type.props && a.props && u.push(i("props", /* @__PURE__ */ j(a.props))), a.setupState !==
|
|
2581
|
+
a.type.props && a.props && u.push(i("props", /* @__PURE__ */ j(a.props))), a.setupState !== qe && u.push(i("setup", a.setupState)), a.data !== qe && u.push(i("data", /* @__PURE__ */ j(a.data)));
|
|
2579
2582
|
const d = l(a, "computed");
|
|
2580
2583
|
d && u.push(i("computed", d));
|
|
2581
2584
|
const _ = l(a, "inject");
|
|
@@ -2593,7 +2596,7 @@ function Nr() {
|
|
|
2593
2596
|
]), u;
|
|
2594
2597
|
}
|
|
2595
2598
|
function i(a, u) {
|
|
2596
|
-
return u =
|
|
2599
|
+
return u = Oe({}, u), Object.keys(u).length ? [
|
|
2597
2600
|
"div",
|
|
2598
2601
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
2599
2602
|
[
|
|
@@ -2622,7 +2625,7 @@ function Nr() {
|
|
|
2622
2625
|
}
|
|
2623
2626
|
function l(a, u) {
|
|
2624
2627
|
const d = a.type;
|
|
2625
|
-
if (
|
|
2628
|
+
if (U(d))
|
|
2626
2629
|
return;
|
|
2627
2630
|
const _ = {};
|
|
2628
2631
|
for (const w in a.ctx)
|
|
@@ -2631,22 +2634,22 @@ function Nr() {
|
|
|
2631
2634
|
}
|
|
2632
2635
|
function f(a, u, d) {
|
|
2633
2636
|
const _ = a[d];
|
|
2634
|
-
if (
|
|
2637
|
+
if (O(_) && _.includes(u) || F(_) && u in _ || a.extends && f(a.extends, u, d) || a.mixins && a.mixins.some((w) => f(w, u, d)))
|
|
2635
2638
|
return !0;
|
|
2636
2639
|
}
|
|
2637
2640
|
function h(a) {
|
|
2638
|
-
return /* @__PURE__ */
|
|
2641
|
+
return /* @__PURE__ */ je(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
|
|
2639
2642
|
}
|
|
2640
2643
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
|
|
2641
2644
|
}
|
|
2642
2645
|
process.env.NODE_ENV;
|
|
2643
2646
|
process.env.NODE_ENV;
|
|
2644
2647
|
process.env.NODE_ENV;
|
|
2645
|
-
function
|
|
2646
|
-
|
|
2648
|
+
function Vr() {
|
|
2649
|
+
kr();
|
|
2647
2650
|
}
|
|
2648
|
-
process.env.NODE_ENV !== "production" &&
|
|
2649
|
-
const
|
|
2651
|
+
process.env.NODE_ENV !== "production" && Vr();
|
|
2652
|
+
const Cr = [
|
|
2650
2653
|
"@context",
|
|
2651
2654
|
"activeLink",
|
|
2652
2655
|
"computed",
|
|
@@ -2658,8 +2661,7 @@ const kr = [
|
|
|
2658
2661
|
"subs",
|
|
2659
2662
|
"version"
|
|
2660
2663
|
];
|
|
2661
|
-
class _t extends
|
|
2662
|
-
_className = "StorePersister";
|
|
2664
|
+
class _t extends $s {
|
|
2663
2665
|
_crypt;
|
|
2664
2666
|
_excludedKeys;
|
|
2665
2667
|
_persister;
|
|
@@ -2674,7 +2676,7 @@ class _t extends js {
|
|
|
2674
2676
|
persister: i,
|
|
2675
2677
|
store: t,
|
|
2676
2678
|
options: n
|
|
2677
|
-
}), this.toBeWatched() && (this._watchedStore.add(this.store.$id), this.storeSubscribe = this.storeSubscription.bind(this))
|
|
2679
|
+
}), this.toBeWatched() && (this._watchedStore.add(this.store.$id), this.storeSubscribe = this.storeSubscription.bind(this));
|
|
2678
2680
|
}
|
|
2679
2681
|
augmentStore() {
|
|
2680
2682
|
const { isEncrypted: t, persistedPropertiesToEncrypt: n, watchMutation: s } = this.options;
|
|
@@ -2696,7 +2698,7 @@ class _t extends js {
|
|
|
2696
2698
|
const f = this.getValue(t[l]);
|
|
2697
2699
|
f && (c[l] = await this.cryptProperty(r, f, n));
|
|
2698
2700
|
}
|
|
2699
|
-
this.debugLog(`cryptState - ${this.store.$id}`, { encryptedState: c }),
|
|
2701
|
+
this.debugLog(`cryptState - ${this.store.$id}`, { encryptedState: c }), Y(c) || (t = { ...t, ...c }, this.options && (this.options.isEncrypted = !n));
|
|
2700
2702
|
}
|
|
2701
2703
|
s(t);
|
|
2702
2704
|
});
|
|
@@ -2729,22 +2731,25 @@ class _t extends js {
|
|
|
2729
2731
|
for (const i of Object.keys(n))
|
|
2730
2732
|
if (!this.hasDeniedFirstChar(i[0]) && !t.has(i)) {
|
|
2731
2733
|
const c = n[i];
|
|
2732
|
-
|
|
2734
|
+
Y(c) || (s && this._propertiesToEncrypt.has(i) ? o[i] = await this.cryptProperty(r, c, !1) : o[i] = /* @__PURE__ */ j(c));
|
|
2733
2735
|
}
|
|
2734
2736
|
return o;
|
|
2735
2737
|
}
|
|
2736
2738
|
getWatchMutation() {
|
|
2737
2739
|
return this.options.watchMutation;
|
|
2738
2740
|
}
|
|
2741
|
+
static hasRequiredKeys(t) {
|
|
2742
|
+
return !!t?.persist || !!t?.watchMutation;
|
|
2743
|
+
}
|
|
2739
2744
|
initExcludedKeys() {
|
|
2740
2745
|
return /* @__PURE__ */ new Set([
|
|
2741
|
-
...
|
|
2746
|
+
...Cr,
|
|
2742
2747
|
...this.options.excludedKeys ?? []
|
|
2743
2748
|
]);
|
|
2744
2749
|
}
|
|
2745
2750
|
async persist() {
|
|
2746
2751
|
const t = await this.getStateToPersist();
|
|
2747
|
-
this.debugLog(`persist() ${this.store.$id} - stateToPersist:`, { state: t }),
|
|
2752
|
+
this.debugLog(`persist() ${this.store.$id} - stateToPersist:`, { state: t }), Y(t) || this._persister.setItem(this.store.$id, t);
|
|
2748
2753
|
}
|
|
2749
2754
|
propertyShouldBePersisted(t) {
|
|
2750
2755
|
return !this._excludedKeys.has(t);
|
|
@@ -2752,7 +2757,7 @@ class _t extends js {
|
|
|
2752
2757
|
async remember() {
|
|
2753
2758
|
return this.state.isLoading = !0, new Promise(async (t) => {
|
|
2754
2759
|
let n = await this.getPersistedState();
|
|
2755
|
-
return n && !
|
|
2760
|
+
return n && !Y(n) && this.store.$patch(n), this.state.isLoading = !1, t(!0);
|
|
2756
2761
|
});
|
|
2757
2762
|
}
|
|
2758
2763
|
removePersistedState() {
|
|
@@ -2787,40 +2792,44 @@ class _t extends js {
|
|
|
2787
2792
|
this.toBeWatched() && (this.options && (this.options.watchMutation = !0), this.storeSubscribe = this.storeSubscription.bind(this));
|
|
2788
2793
|
}
|
|
2789
2794
|
}
|
|
2790
|
-
class
|
|
2795
|
+
class Rr extends un {
|
|
2796
|
+
_resetStoreCallback = (t) => {
|
|
2797
|
+
const { removePersistedState: n } = t;
|
|
2798
|
+
typeof n == "function" && n();
|
|
2799
|
+
};
|
|
2791
2800
|
constructor() {
|
|
2792
2801
|
super(
|
|
2793
|
-
|
|
2802
|
+
Ut,
|
|
2794
2803
|
_t.customizeStore.bind(_t),
|
|
2795
2804
|
A
|
|
2796
2805
|
);
|
|
2797
2806
|
}
|
|
2798
2807
|
}
|
|
2799
|
-
const
|
|
2800
|
-
function
|
|
2801
|
-
return
|
|
2808
|
+
const we = new Rr();
|
|
2809
|
+
function Pr(e, t) {
|
|
2810
|
+
return we.pluginOptions = xr(e, t), we;
|
|
2802
2811
|
}
|
|
2803
|
-
function
|
|
2812
|
+
function xr(e, t) {
|
|
2804
2813
|
let n, s;
|
|
2805
2814
|
const r = /* @__PURE__ */ new Set();
|
|
2806
2815
|
try {
|
|
2807
2816
|
if (window)
|
|
2808
|
-
return !
|
|
2817
|
+
return !Y(e) && e && (n = new et({ name: e, keyPath: "storeName" })), t && (s = new ie(t)), { persister: n, crypt: s, watchedStore: r };
|
|
2809
2818
|
} catch {
|
|
2810
2819
|
}
|
|
2811
2820
|
return { persister: n, crypt: s, watchedStore: r };
|
|
2812
2821
|
}
|
|
2813
|
-
function
|
|
2822
|
+
function jr(e, t) {
|
|
2814
2823
|
let n;
|
|
2815
|
-
return t && (n = new
|
|
2816
|
-
persister: new
|
|
2824
|
+
return t && (n = new ie(t)), we.pluginOptions = {
|
|
2825
|
+
persister: new Fs({ name: e }),
|
|
2817
2826
|
crypt: n,
|
|
2818
2827
|
watchedStore: /* @__PURE__ */ new Set()
|
|
2819
|
-
},
|
|
2828
|
+
}, we;
|
|
2820
2829
|
}
|
|
2821
2830
|
export {
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2831
|
+
Ut as PLUGIN_NAME,
|
|
2832
|
+
Fs as PersisterMock,
|
|
2833
|
+
Pr as createPersistStatePlugin,
|
|
2834
|
+
jr as createPluginMock
|
|
2826
2835
|
};
|