pinia-plugin-persist-state 0.0.2 → 0.0.3-beta.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.
|
@@ -1,1608 +1,37 @@
|
|
|
1
|
-
import "pinia";
|
|
2
|
-
class
|
|
1
|
+
import { CustomConsole as Ie, Store as Ce, isEmpty as R, PluginSubscriber as Ve } from "pinia-plugin-subscription";
|
|
2
|
+
class Te {
|
|
3
3
|
_storage;
|
|
4
|
-
constructor(
|
|
5
|
-
this._storage =
|
|
4
|
+
constructor(e) {
|
|
5
|
+
this._storage = e === "localStorage" ? localStorage : sessionStorage;
|
|
6
6
|
}
|
|
7
7
|
clear() {
|
|
8
8
|
this._storage.clear();
|
|
9
9
|
}
|
|
10
|
-
async getItem(
|
|
11
|
-
return new Promise((
|
|
12
|
-
const
|
|
13
|
-
|
|
10
|
+
async getItem(e) {
|
|
11
|
+
return new Promise((s, r) => {
|
|
12
|
+
const o = this._storage.getItem(e.toString());
|
|
13
|
+
s(o ? JSON.parse(o) : void 0);
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
removeItem(
|
|
17
|
-
this._storage.removeItem(
|
|
16
|
+
removeItem(e) {
|
|
17
|
+
this._storage.removeItem(e.toString());
|
|
18
18
|
}
|
|
19
|
-
removeItems(
|
|
20
|
-
for (let
|
|
21
|
-
const
|
|
22
|
-
|
|
19
|
+
removeItems(e) {
|
|
20
|
+
for (let s = 0; s < this._storage.length; s++) {
|
|
21
|
+
const r = this._storage.key(s);
|
|
22
|
+
r && (!e || !e.includes(r)) && this._storage.removeItem(r);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
setItem(
|
|
26
|
-
this._storage.setItem(
|
|
25
|
+
setItem(e, s) {
|
|
26
|
+
this._storage.setItem(s, JSON.stringify(e));
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
_name;
|
|
33
|
-
_pluginOptions;
|
|
34
|
-
_storeInstance;
|
|
35
|
-
_resetStoreCallback;
|
|
36
|
-
_storeOnActionSubscription;
|
|
37
|
-
_storeMutationSubscription;
|
|
38
|
-
_subscriptions;
|
|
39
|
-
pluginCreated;
|
|
40
|
-
get console() {
|
|
41
|
-
return this._console ?? console;
|
|
42
|
-
}
|
|
43
|
-
get name() {
|
|
44
|
-
return this._name;
|
|
45
|
-
}
|
|
46
|
-
get pluginOptions() {
|
|
47
|
-
return this._pluginOptions ?? {};
|
|
48
|
-
}
|
|
49
|
-
set pluginOptions(t) {
|
|
50
|
-
this._pluginOptions = t;
|
|
51
|
-
}
|
|
52
|
-
get resetStoreCallback() {
|
|
53
|
-
return this._resetStoreCallback;
|
|
54
|
-
}
|
|
55
|
-
get storeOnActionSubscription() {
|
|
56
|
-
return this._storeOnActionSubscription;
|
|
57
|
-
}
|
|
58
|
-
get storeMutationSubscription() {
|
|
59
|
-
return this._storeMutationSubscription;
|
|
60
|
-
}
|
|
61
|
-
get subscriptions() {
|
|
62
|
-
return this._subscriptions;
|
|
63
|
-
}
|
|
64
|
-
set subscriptions(t) {
|
|
65
|
-
this._subscriptions = t;
|
|
66
|
-
}
|
|
67
|
-
constructor(t, n, s) {
|
|
68
|
-
this._name = t, this._createInstance = n, s && (this._console = s);
|
|
69
|
-
}
|
|
70
|
-
invoke({ store: t, options: n }, s) {
|
|
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
|
-
}
|
|
73
|
-
}
|
|
74
|
-
class fn {
|
|
75
|
-
_className;
|
|
76
|
-
_console;
|
|
77
|
-
_debug = !1;
|
|
78
|
-
get console() {
|
|
79
|
-
return this._console ?? console;
|
|
80
|
-
}
|
|
81
|
-
set console(t) {
|
|
82
|
-
this._console = t;
|
|
83
|
-
}
|
|
84
|
-
get debug() {
|
|
85
|
-
return this._debug;
|
|
86
|
-
}
|
|
87
|
-
set debug(t) {
|
|
88
|
-
this._debug = t;
|
|
89
|
-
}
|
|
90
|
-
constructor(t, n) {
|
|
91
|
-
this._debug = t, this._className = this.constructor.name, n && (this._console = n);
|
|
92
|
-
}
|
|
93
|
-
debugLog(...t) {
|
|
94
|
-
this._debug && (Array.isArray(t) && (t[0] = `${this._className} - ${t[0]}`), this.console.log(...t));
|
|
95
|
-
}
|
|
96
|
-
logError(...t) {
|
|
97
|
-
this.console.error(...t);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
const pn = "pinia-plugin-subscription", hn = (e, t = "white") => `background-color: ${e}; color: ${t}; padding: 1px; margin-right: 5px; font-size: 12px`;
|
|
101
|
-
function dn(e, t) {
|
|
102
|
-
if (!e)
|
|
103
|
-
throw new Error("Style instructions are required");
|
|
104
|
-
console.log(
|
|
105
|
-
"%c%s",
|
|
106
|
-
e,
|
|
107
|
-
t.shift(),
|
|
108
|
-
...t
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
class _n {
|
|
112
|
-
_bgColor = "#ffec73";
|
|
113
|
-
_color = "green";
|
|
114
|
-
_icon = "🍍⚡";
|
|
115
|
-
_errorBgColor = "#d24545";
|
|
116
|
-
_errorColor = "white";
|
|
117
|
-
_errorIcon = "🍍⚠️";
|
|
118
|
-
_styles = {
|
|
119
|
-
error: { bgColor: this._errorBgColor, color: this._errorColor, icon: this._errorIcon },
|
|
120
|
-
info: { bgColor: this._bgColor, color: this._color, icon: this._icon }
|
|
121
|
-
};
|
|
122
|
-
formatMessage(t, n) {
|
|
123
|
-
return ` [${n} ${pn}] - ${t} `;
|
|
124
|
-
}
|
|
125
|
-
generateStyle(t) {
|
|
126
|
-
return hn(t.bgColor, t.color);
|
|
127
|
-
}
|
|
128
|
-
getStyleDefinition(t) {
|
|
129
|
-
return this._styles[t ?? "info"];
|
|
130
|
-
}
|
|
131
|
-
log(...t) {
|
|
132
|
-
this.useLog(
|
|
133
|
-
this.getStyleDefinition(),
|
|
134
|
-
t
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
error(...t) {
|
|
138
|
-
this.useLog(
|
|
139
|
-
this.getStyleDefinition("error"),
|
|
140
|
-
t
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
rebuildArgs(t, n) {
|
|
144
|
-
if (typeof t == "string")
|
|
145
|
-
return [this.formatMessage(t, n)];
|
|
146
|
-
if (Array.isArray(t))
|
|
147
|
-
return [this.formatMessage(t.shift(), n), ...t ?? []];
|
|
148
|
-
}
|
|
149
|
-
useLog(t, n) {
|
|
150
|
-
dn(
|
|
151
|
-
this.generateStyle(t),
|
|
152
|
-
this.rebuildArgs(n, t.icon)
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
function Y(e) {
|
|
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");
|
|
158
|
-
}
|
|
159
|
-
// @__NO_SIDE_EFFECTS__
|
|
160
|
-
function gn(e) {
|
|
161
|
-
const t = /* @__PURE__ */ Object.create(null);
|
|
162
|
-
for (const n of e.split(",")) t[n] = 1;
|
|
163
|
-
return (n) => n in t;
|
|
164
|
-
}
|
|
165
|
-
const Fe = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
166
|
-
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
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, Ke = (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), Ne = (e) => R(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, wn = (e) => {
|
|
170
|
-
const t = /* @__PURE__ */ Object.create(null);
|
|
171
|
-
return ((n) => t[n] || (t[n] = e(n)));
|
|
172
|
-
}, En = wn((e) => e.charAt(0).toUpperCase() + e.slice(1)), ne = (e, t) => !Object.is(e, t);
|
|
173
|
-
let it;
|
|
174
|
-
const Oe = () => it || (it = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
175
|
-
function Be(e) {
|
|
176
|
-
if (g(e)) {
|
|
177
|
-
const t = {};
|
|
178
|
-
for (let n = 0; n < e.length; n++) {
|
|
179
|
-
const s = e[n], r = R(s) ? Vn(s) : Be(s);
|
|
180
|
-
if (r)
|
|
181
|
-
for (const o in r)
|
|
182
|
-
t[o] = r[o];
|
|
183
|
-
}
|
|
184
|
-
return t;
|
|
185
|
-
} else if (R(e) || y(e))
|
|
186
|
-
return e;
|
|
187
|
-
}
|
|
188
|
-
const Nn = /;(?![^(]*\))/g, On = /:([^]+)/, kn = /\/\*[^]*?\*\//g;
|
|
189
|
-
function Vn(e) {
|
|
190
|
-
const t = {};
|
|
191
|
-
return e.replace(kn, "").split(Nn).forEach((n) => {
|
|
192
|
-
if (n) {
|
|
193
|
-
const s = n.split(On);
|
|
194
|
-
s.length > 1 && (t[s[0].trim()] = s[1].trim());
|
|
195
|
-
}
|
|
196
|
-
}), t;
|
|
197
|
-
}
|
|
198
|
-
function Je(e) {
|
|
199
|
-
let t = "";
|
|
200
|
-
if (R(e))
|
|
201
|
-
t = e;
|
|
202
|
-
else if (g(e))
|
|
203
|
-
for (let n = 0; n < e.length; n++) {
|
|
204
|
-
const s = Je(e[n]);
|
|
205
|
-
s && (t += s + " ");
|
|
206
|
-
}
|
|
207
|
-
else if (y(e))
|
|
208
|
-
for (const n in e)
|
|
209
|
-
e[n] && (t += n + " ");
|
|
210
|
-
return t.trim();
|
|
211
|
-
}
|
|
212
|
-
function Z(e, ...t) {
|
|
213
|
-
console.warn(`[Vue warn] ${e}`, ...t);
|
|
214
|
-
}
|
|
215
|
-
let mt = 0, Ce;
|
|
216
|
-
function Ye() {
|
|
217
|
-
mt++;
|
|
218
|
-
}
|
|
219
|
-
function Ge() {
|
|
220
|
-
if (--mt > 0)
|
|
221
|
-
return;
|
|
222
|
-
let e;
|
|
223
|
-
for (; Ce; ) {
|
|
224
|
-
let t = Ce;
|
|
225
|
-
for (Ce = void 0; t; ) {
|
|
226
|
-
const n = t.next;
|
|
227
|
-
if (t.next = void 0, t.flags &= -9, t.flags & 1)
|
|
228
|
-
try {
|
|
229
|
-
t.trigger();
|
|
230
|
-
} catch (s) {
|
|
231
|
-
e || (e = s);
|
|
232
|
-
}
|
|
233
|
-
t = n;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
if (e) throw e;
|
|
237
|
-
}
|
|
238
|
-
class Cn {
|
|
239
|
-
// TODO isolatedDeclarations "__v_skip"
|
|
240
|
-
constructor(t) {
|
|
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);
|
|
242
|
-
}
|
|
243
|
-
track(t) {
|
|
244
|
-
}
|
|
245
|
-
trigger(t) {
|
|
246
|
-
this.version++, this.notify(t);
|
|
247
|
-
}
|
|
248
|
-
notify(t) {
|
|
249
|
-
Ye();
|
|
250
|
-
try {
|
|
251
|
-
if (process.env.NODE_ENV !== "production")
|
|
252
|
-
for (let n = this.subsHead; n; n = n.nextSub)
|
|
253
|
-
n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
|
|
254
|
-
q(
|
|
255
|
-
{
|
|
256
|
-
effect: n.sub
|
|
257
|
-
},
|
|
258
|
-
t
|
|
259
|
-
)
|
|
260
|
-
);
|
|
261
|
-
for (let n = this.subs; n; n = n.prevSub)
|
|
262
|
-
n.sub.notify() && n.sub.dep.notify();
|
|
263
|
-
} finally {
|
|
264
|
-
Ge();
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
const bt = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ Symbol(
|
|
269
|
-
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
270
|
-
), ct = /* @__PURE__ */ Symbol(
|
|
271
|
-
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
272
|
-
), at = /* @__PURE__ */ Symbol(
|
|
273
|
-
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
274
|
-
);
|
|
275
|
-
function P(e, t, n, s, r, o) {
|
|
276
|
-
const i = bt.get(e);
|
|
277
|
-
if (!i)
|
|
278
|
-
return;
|
|
279
|
-
const c = (l) => {
|
|
280
|
-
l && (process.env.NODE_ENV !== "production" ? l.trigger({
|
|
281
|
-
target: e,
|
|
282
|
-
type: t,
|
|
283
|
-
key: n,
|
|
284
|
-
newValue: s,
|
|
285
|
-
oldValue: r,
|
|
286
|
-
oldTarget: o
|
|
287
|
-
}) : l.trigger());
|
|
288
|
-
};
|
|
289
|
-
if (Ye(), t === "clear")
|
|
290
|
-
i.forEach(c);
|
|
291
|
-
else {
|
|
292
|
-
const l = g(e), f = l && Ne(n);
|
|
293
|
-
if (l && n === "length") {
|
|
294
|
-
const h = Number(s);
|
|
295
|
-
i.forEach((a, u) => {
|
|
296
|
-
(u === "length" || u === at || !H(u) && u >= h) && c(a);
|
|
297
|
-
});
|
|
298
|
-
} else
|
|
299
|
-
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), f && c(i.get(at)), t) {
|
|
300
|
-
case "add":
|
|
301
|
-
l ? f && c(i.get("length")) : (c(i.get(Re)), te(e) && c(i.get(ct)));
|
|
302
|
-
break;
|
|
303
|
-
case "delete":
|
|
304
|
-
l || (c(i.get(Re)), te(e) && c(i.get(ct)));
|
|
305
|
-
break;
|
|
306
|
-
case "set":
|
|
307
|
-
te(e) && c(i.get(Re));
|
|
308
|
-
break;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
Ge();
|
|
312
|
-
}
|
|
313
|
-
function Rn(e, t) {
|
|
314
|
-
const n = bt.get(e);
|
|
315
|
-
return n && n.get(t);
|
|
316
|
-
}
|
|
317
|
-
function L(e) {
|
|
318
|
-
const t = /* @__PURE__ */ p(e);
|
|
319
|
-
return t === e || /* @__PURE__ */ v(e) ? t : t.map(x);
|
|
320
|
-
}
|
|
321
|
-
function Xe(e) {
|
|
322
|
-
return e = /* @__PURE__ */ p(e), e;
|
|
323
|
-
}
|
|
324
|
-
function E(e, t) {
|
|
325
|
-
return /* @__PURE__ */ N(e) ? he(/* @__PURE__ */ Ze(e) ? x(t) : t) : x(t);
|
|
326
|
-
}
|
|
327
|
-
const xn = {
|
|
328
|
-
__proto__: null,
|
|
329
|
-
[Symbol.iterator]() {
|
|
330
|
-
return xe(this, Symbol.iterator, (e) => E(this, e));
|
|
331
|
-
},
|
|
332
|
-
concat(...e) {
|
|
333
|
-
return L(this).concat(
|
|
334
|
-
...e.map((t) => g(t) ? L(t) : t)
|
|
335
|
-
);
|
|
336
|
-
},
|
|
337
|
-
entries() {
|
|
338
|
-
return xe(this, "entries", (e) => (e[1] = E(this, e[1]), e));
|
|
339
|
-
},
|
|
340
|
-
every(e, t) {
|
|
341
|
-
return k(this, "every", e, t, void 0, arguments);
|
|
342
|
-
},
|
|
343
|
-
filter(e, t) {
|
|
344
|
-
return k(
|
|
345
|
-
this,
|
|
346
|
-
"filter",
|
|
347
|
-
e,
|
|
348
|
-
t,
|
|
349
|
-
(n) => n.map((s) => E(this, s)),
|
|
350
|
-
arguments
|
|
351
|
-
);
|
|
352
|
-
},
|
|
353
|
-
find(e, t) {
|
|
354
|
-
return k(
|
|
355
|
-
this,
|
|
356
|
-
"find",
|
|
357
|
-
e,
|
|
358
|
-
t,
|
|
359
|
-
(n) => E(this, n),
|
|
360
|
-
arguments
|
|
361
|
-
);
|
|
362
|
-
},
|
|
363
|
-
findIndex(e, t) {
|
|
364
|
-
return k(this, "findIndex", e, t, void 0, arguments);
|
|
365
|
-
},
|
|
366
|
-
findLast(e, t) {
|
|
367
|
-
return k(
|
|
368
|
-
this,
|
|
369
|
-
"findLast",
|
|
370
|
-
e,
|
|
371
|
-
t,
|
|
372
|
-
(n) => E(this, n),
|
|
373
|
-
arguments
|
|
374
|
-
);
|
|
375
|
-
},
|
|
376
|
-
findLastIndex(e, t) {
|
|
377
|
-
return k(this, "findLastIndex", e, t, void 0, arguments);
|
|
378
|
-
},
|
|
379
|
-
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
380
|
-
forEach(e, t) {
|
|
381
|
-
return k(this, "forEach", e, t, void 0, arguments);
|
|
382
|
-
},
|
|
383
|
-
includes(...e) {
|
|
384
|
-
return Ie(this, "includes", e);
|
|
385
|
-
},
|
|
386
|
-
indexOf(...e) {
|
|
387
|
-
return Ie(this, "indexOf", e);
|
|
388
|
-
},
|
|
389
|
-
join(e) {
|
|
390
|
-
return L(this).join(e);
|
|
391
|
-
},
|
|
392
|
-
// keys() iterator only reads `length`, no optimization required
|
|
393
|
-
lastIndexOf(...e) {
|
|
394
|
-
return Ie(this, "lastIndexOf", e);
|
|
395
|
-
},
|
|
396
|
-
map(e, t) {
|
|
397
|
-
return k(this, "map", e, t, void 0, arguments);
|
|
398
|
-
},
|
|
399
|
-
pop() {
|
|
400
|
-
return ee(this, "pop");
|
|
401
|
-
},
|
|
402
|
-
push(...e) {
|
|
403
|
-
return ee(this, "push", e);
|
|
404
|
-
},
|
|
405
|
-
reduce(e, ...t) {
|
|
406
|
-
return lt(this, "reduce", e, t);
|
|
407
|
-
},
|
|
408
|
-
reduceRight(e, ...t) {
|
|
409
|
-
return lt(this, "reduceRight", e, t);
|
|
410
|
-
},
|
|
411
|
-
shift() {
|
|
412
|
-
return ee(this, "shift");
|
|
413
|
-
},
|
|
414
|
-
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
415
|
-
some(e, t) {
|
|
416
|
-
return k(this, "some", e, t, void 0, arguments);
|
|
417
|
-
},
|
|
418
|
-
splice(...e) {
|
|
419
|
-
return ee(this, "splice", e);
|
|
420
|
-
},
|
|
421
|
-
toReversed() {
|
|
422
|
-
return L(this).toReversed();
|
|
423
|
-
},
|
|
424
|
-
toSorted(e) {
|
|
425
|
-
return L(this).toSorted(e);
|
|
426
|
-
},
|
|
427
|
-
toSpliced(...e) {
|
|
428
|
-
return L(this).toSpliced(...e);
|
|
429
|
-
},
|
|
430
|
-
unshift(...e) {
|
|
431
|
-
return ee(this, "unshift", e);
|
|
432
|
-
},
|
|
433
|
-
values() {
|
|
434
|
-
return xe(this, "values", (e) => E(this, e));
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
|
-
function xe(e, t, n) {
|
|
438
|
-
const s = Xe(e), r = s[t]();
|
|
439
|
-
return s !== e && !/* @__PURE__ */ v(e) && (r._next = r.next, r.next = () => {
|
|
440
|
-
const o = r._next();
|
|
441
|
-
return o.done || (o.value = n(o.value)), o;
|
|
442
|
-
}), r;
|
|
443
|
-
}
|
|
444
|
-
const In = Array.prototype;
|
|
445
|
-
function k(e, t, n, s, r, o) {
|
|
446
|
-
const i = Xe(e), c = i !== e && !/* @__PURE__ */ v(e), l = i[t];
|
|
447
|
-
if (l !== In[t]) {
|
|
448
|
-
const a = l.apply(e, o);
|
|
449
|
-
return c ? x(a) : a;
|
|
450
|
-
}
|
|
451
|
-
let f = n;
|
|
452
|
-
i !== e && (c ? f = function(a, u) {
|
|
453
|
-
return n.call(this, E(e, a), u, e);
|
|
454
|
-
} : n.length > 2 && (f = function(a, u) {
|
|
455
|
-
return n.call(this, a, u, e);
|
|
456
|
-
}));
|
|
457
|
-
const h = l.call(i, f, s);
|
|
458
|
-
return c && r ? r(h) : h;
|
|
459
|
-
}
|
|
460
|
-
function lt(e, t, n, s) {
|
|
461
|
-
const r = Xe(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 Ie(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 = []) {
|
|
476
|
-
Ye();
|
|
477
|
-
const s = (/* @__PURE__ */ p(e))[t].apply(e, n);
|
|
478
|
-
return Ge(), s;
|
|
479
|
-
}
|
|
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)
|
|
482
|
-
);
|
|
483
|
-
function Pn(e) {
|
|
484
|
-
return H(e) || (e = String(e)), (/* @__PURE__ */ p(this)).hasOwnProperty(e);
|
|
485
|
-
}
|
|
486
|
-
class vt {
|
|
487
|
-
constructor(t = !1, n = !1) {
|
|
488
|
-
this._isReadonly = t, this._isShallow = n;
|
|
489
|
-
}
|
|
490
|
-
get(t, n, s) {
|
|
491
|
-
if (n === "__v_skip") return t.__v_skip;
|
|
492
|
-
const r = this._isReadonly, o = this._isShallow;
|
|
493
|
-
if (n === "__v_isReactive")
|
|
494
|
-
return !r;
|
|
495
|
-
if (n === "__v_isReadonly")
|
|
496
|
-
return r;
|
|
497
|
-
if (n === "__v_isShallow")
|
|
498
|
-
return o;
|
|
499
|
-
if (n === "__v_raw")
|
|
500
|
-
return s === (r ? o ? Un : Nt : o ? qn : Et).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
501
|
-
// this means the receiver is a user proxy of the reactive proxy
|
|
502
|
-
Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0;
|
|
503
|
-
const i = g(t);
|
|
504
|
-
if (!r) {
|
|
505
|
-
let l;
|
|
506
|
-
if (i && (l = xn[n]))
|
|
507
|
-
return l;
|
|
508
|
-
if (n === "hasOwnProperty")
|
|
509
|
-
return Pn;
|
|
510
|
-
}
|
|
511
|
-
const c = Reflect.get(
|
|
512
|
-
t,
|
|
513
|
-
n,
|
|
514
|
-
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
515
|
-
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
516
|
-
// its class methods
|
|
517
|
-
/* @__PURE__ */ m(t) ? t : s
|
|
518
|
-
);
|
|
519
|
-
if ((H(n) ? St.has(n) : Dn(n)) || o)
|
|
520
|
-
return c;
|
|
521
|
-
if (/* @__PURE__ */ m(c)) {
|
|
522
|
-
const l = i && Ne(n) ? c : c.value;
|
|
523
|
-
return r && y(l) ? /* @__PURE__ */ He(l) : l;
|
|
524
|
-
}
|
|
525
|
-
return y(c) ? r ? /* @__PURE__ */ He(c) : /* @__PURE__ */ Ot(c) : c;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
class jn extends vt {
|
|
529
|
-
constructor(t = !1) {
|
|
530
|
-
super(!1, t);
|
|
531
|
-
}
|
|
532
|
-
set(t, n, s, r) {
|
|
533
|
-
let o = t[n];
|
|
534
|
-
const i = g(t) && Ne(n);
|
|
535
|
-
if (!this._isShallow) {
|
|
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(
|
|
539
|
-
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
540
|
-
t[n]
|
|
541
|
-
), !0) : (o.value = s, !0);
|
|
542
|
-
}
|
|
543
|
-
const c = i ? Number(n) < t.length : Ke(t, n), l = Reflect.set(
|
|
544
|
-
t,
|
|
545
|
-
n,
|
|
546
|
-
s,
|
|
547
|
-
/* @__PURE__ */ m(t) ? t : r
|
|
548
|
-
);
|
|
549
|
-
return t === /* @__PURE__ */ p(r) && (c ? ne(s, o) && P(t, "set", n, s, o) : P(t, "add", n, s)), l;
|
|
550
|
-
}
|
|
551
|
-
deleteProperty(t, n) {
|
|
552
|
-
const s = Ke(t, n), r = t[n], o = Reflect.deleteProperty(t, n);
|
|
553
|
-
return o && s && P(t, "delete", n, void 0, r), o;
|
|
554
|
-
}
|
|
555
|
-
has(t, n) {
|
|
556
|
-
const s = Reflect.has(t, n);
|
|
557
|
-
return !H(n) || St.has(n), s;
|
|
558
|
-
}
|
|
559
|
-
ownKeys(t) {
|
|
560
|
-
return Reflect.ownKeys(t);
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
class $n extends vt {
|
|
564
|
-
constructor(t = !1) {
|
|
565
|
-
super(!0, t);
|
|
566
|
-
}
|
|
567
|
-
set(t, n) {
|
|
568
|
-
return process.env.NODE_ENV !== "production" && Z(
|
|
569
|
-
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
570
|
-
t
|
|
571
|
-
), !0;
|
|
572
|
-
}
|
|
573
|
-
deleteProperty(t, n) {
|
|
574
|
-
return process.env.NODE_ENV !== "production" && Z(
|
|
575
|
-
`Delete operation on key "${String(n)}" failed: target is readonly.`,
|
|
576
|
-
t
|
|
577
|
-
), !0;
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
const Tn = /* @__PURE__ */ new jn(), An = /* @__PURE__ */ new $n(), ae = (e) => Reflect.getPrototypeOf(e);
|
|
581
|
-
function Mn(e, t, n) {
|
|
582
|
-
return function(...s) {
|
|
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
|
-
}
|
|
596
|
-
}
|
|
597
|
-
);
|
|
598
|
-
};
|
|
599
|
-
}
|
|
600
|
-
function le(e) {
|
|
601
|
-
return function(...t) {
|
|
602
|
-
if (process.env.NODE_ENV !== "production") {
|
|
603
|
-
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
604
|
-
Z(
|
|
605
|
-
`${En(e)} operation ${n}failed: target is readonly.`,
|
|
606
|
-
/* @__PURE__ */ p(this)
|
|
607
|
-
);
|
|
608
|
-
}
|
|
609
|
-
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
610
|
-
};
|
|
611
|
-
}
|
|
612
|
-
function Fn(e, t) {
|
|
613
|
-
const n = {
|
|
614
|
-
get(s) {
|
|
615
|
-
const r = this.__v_raw, o = /* @__PURE__ */ p(r), i = /* @__PURE__ */ p(s), { has: c } = ae(o), l = e ? he : x;
|
|
616
|
-
if (c.call(o, s))
|
|
617
|
-
return l(r.get(s));
|
|
618
|
-
if (c.call(o, i))
|
|
619
|
-
return l(r.get(i));
|
|
620
|
-
r !== o && r.get(s);
|
|
621
|
-
},
|
|
622
|
-
get size() {
|
|
623
|
-
return this.__v_raw.size;
|
|
624
|
-
},
|
|
625
|
-
has(s) {
|
|
626
|
-
const r = this.__v_raw, o = /* @__PURE__ */ p(s);
|
|
627
|
-
return s === o ? r.has(s) : r.has(s) || r.has(o);
|
|
628
|
-
},
|
|
629
|
-
forEach(s, r) {
|
|
630
|
-
const o = this, i = o.__v_raw, c = e ? he : x;
|
|
631
|
-
return i.forEach((l, f) => s.call(r, c(l), c(f), o));
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
return q(
|
|
635
|
-
n,
|
|
636
|
-
e ? {
|
|
637
|
-
add: le("add"),
|
|
638
|
-
set: le("set"),
|
|
639
|
-
delete: le("delete"),
|
|
640
|
-
clear: le("clear")
|
|
641
|
-
} : {
|
|
642
|
-
add(s) {
|
|
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;
|
|
645
|
-
},
|
|
646
|
-
set(s, r) {
|
|
647
|
-
!/* @__PURE__ */ v(r) && !/* @__PURE__ */ N(r) && (r = /* @__PURE__ */ p(r));
|
|
648
|
-
const o = /* @__PURE__ */ p(this), { has: i, get: c } = ae(o);
|
|
649
|
-
let 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));
|
|
651
|
-
const f = c.call(o, s);
|
|
652
|
-
return o.set(s, r), l ? ne(r, f) && P(o, "set", s, r, f) : P(o, "add", s, r), this;
|
|
653
|
-
},
|
|
654
|
-
delete(s) {
|
|
655
|
-
const r = /* @__PURE__ */ p(this), { has: o, get: i } = ae(r);
|
|
656
|
-
let 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));
|
|
658
|
-
const l = i ? i.call(r, s) : void 0, f = r.delete(s);
|
|
659
|
-
return c && P(r, "delete", s, void 0, l), f;
|
|
660
|
-
},
|
|
661
|
-
clear() {
|
|
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();
|
|
663
|
-
return r && P(
|
|
664
|
-
s,
|
|
665
|
-
"clear",
|
|
666
|
-
void 0,
|
|
667
|
-
void 0,
|
|
668
|
-
o
|
|
669
|
-
), i;
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
), [
|
|
673
|
-
"keys",
|
|
674
|
-
"values",
|
|
675
|
-
"entries",
|
|
676
|
-
Symbol.iterator
|
|
677
|
-
].forEach((s) => {
|
|
678
|
-
n[s] = Mn(s, e);
|
|
679
|
-
}), n;
|
|
680
|
-
}
|
|
681
|
-
function wt(e, t) {
|
|
682
|
-
const n = Fn(e);
|
|
683
|
-
return (s, r, o) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? s : Reflect.get(
|
|
684
|
-
Ke(n, r) && r in s ? n : s,
|
|
685
|
-
r,
|
|
686
|
-
o
|
|
687
|
-
);
|
|
688
|
-
}
|
|
689
|
-
const Kn = {
|
|
690
|
-
get: /* @__PURE__ */ wt(!1)
|
|
691
|
-
}, Hn = {
|
|
692
|
-
get: /* @__PURE__ */ wt(!0)
|
|
693
|
-
};
|
|
694
|
-
function ut(e, t, n) {
|
|
695
|
-
const s = /* @__PURE__ */ p(n);
|
|
696
|
-
if (s !== n && t.call(e, s)) {
|
|
697
|
-
const r = yt(e);
|
|
698
|
-
Z(
|
|
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.`
|
|
700
|
-
);
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
const Et = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap();
|
|
704
|
-
function Ln(e) {
|
|
705
|
-
switch (e) {
|
|
706
|
-
case "Object":
|
|
707
|
-
case "Array":
|
|
708
|
-
return 1;
|
|
709
|
-
case "Map":
|
|
710
|
-
case "Set":
|
|
711
|
-
case "WeakMap":
|
|
712
|
-
case "WeakSet":
|
|
713
|
-
return 2;
|
|
714
|
-
default:
|
|
715
|
-
return 0;
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
function Wn(e) {
|
|
719
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 : Ln(yt(e));
|
|
720
|
-
}
|
|
721
|
-
// @__NO_SIDE_EFFECTS__
|
|
722
|
-
function Ot(e) {
|
|
723
|
-
return /* @__PURE__ */ N(e) ? e : kt(
|
|
724
|
-
e,
|
|
725
|
-
!1,
|
|
726
|
-
Tn,
|
|
727
|
-
Kn,
|
|
728
|
-
Et
|
|
729
|
-
);
|
|
730
|
-
}
|
|
731
|
-
// @__NO_SIDE_EFFECTS__
|
|
732
|
-
function He(e) {
|
|
733
|
-
return kt(
|
|
734
|
-
e,
|
|
735
|
-
!0,
|
|
736
|
-
An,
|
|
737
|
-
Hn,
|
|
738
|
-
Nt
|
|
739
|
-
);
|
|
740
|
-
}
|
|
741
|
-
function kt(e, t, n, s, r) {
|
|
742
|
-
if (!y(e))
|
|
743
|
-
return process.env.NODE_ENV !== "production" && Z(
|
|
744
|
-
`value cannot be made ${t ? "readonly" : "reactive"}: ${String(
|
|
745
|
-
e
|
|
746
|
-
)}`
|
|
747
|
-
), e;
|
|
748
|
-
if (e.__v_raw && !(t && e.__v_isReactive))
|
|
749
|
-
return e;
|
|
750
|
-
const o = Wn(e);
|
|
751
|
-
if (o === 0)
|
|
752
|
-
return e;
|
|
753
|
-
const i = r.get(e);
|
|
754
|
-
if (i)
|
|
755
|
-
return i;
|
|
756
|
-
const c = new Proxy(
|
|
757
|
-
e,
|
|
758
|
-
o === 2 ? s : n
|
|
759
|
-
);
|
|
760
|
-
return r.set(e, c), c;
|
|
761
|
-
}
|
|
762
|
-
// @__NO_SIDE_EFFECTS__
|
|
763
|
-
function Ze(e) {
|
|
764
|
-
return /* @__PURE__ */ N(e) ? /* @__PURE__ */ Ze(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
765
|
-
}
|
|
766
|
-
// @__NO_SIDE_EFFECTS__
|
|
767
|
-
function N(e) {
|
|
768
|
-
return !!(e && e.__v_isReadonly);
|
|
769
|
-
}
|
|
770
|
-
// @__NO_SIDE_EFFECTS__
|
|
771
|
-
function v(e) {
|
|
772
|
-
return !!(e && e.__v_isShallow);
|
|
773
|
-
}
|
|
774
|
-
// @__NO_SIDE_EFFECTS__
|
|
775
|
-
function se(e) {
|
|
776
|
-
return e ? !!e.__v_raw : !1;
|
|
777
|
-
}
|
|
778
|
-
// @__NO_SIDE_EFFECTS__
|
|
779
|
-
function p(e) {
|
|
780
|
-
const t = e && e.__v_raw;
|
|
781
|
-
return t ? /* @__PURE__ */ p(t) : e;
|
|
782
|
-
}
|
|
783
|
-
const x = (e) => y(e) ? /* @__PURE__ */ Ot(e) : e, he = (e) => y(e) ? /* @__PURE__ */ He(e) : e;
|
|
784
|
-
// @__NO_SIDE_EFFECTS__
|
|
785
|
-
function m(e) {
|
|
786
|
-
return e ? e.__v_isRef === !0 : !1;
|
|
787
|
-
}
|
|
788
|
-
// @__NO_SIDE_EFFECTS__
|
|
789
|
-
function Vt(e) {
|
|
790
|
-
return zn(e, !1);
|
|
791
|
-
}
|
|
792
|
-
function zn(e, t) {
|
|
793
|
-
return /* @__PURE__ */ m(e) ? e : new Bn(e, t);
|
|
794
|
-
}
|
|
795
|
-
class Bn {
|
|
796
|
-
constructor(t, n) {
|
|
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;
|
|
798
|
-
}
|
|
799
|
-
get value() {
|
|
800
|
-
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
801
|
-
target: this,
|
|
802
|
-
type: "get",
|
|
803
|
-
key: "value"
|
|
804
|
-
}) : this.dep.track(), this._value;
|
|
805
|
-
}
|
|
806
|
-
set value(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({
|
|
809
|
-
target: this,
|
|
810
|
-
type: "set",
|
|
811
|
-
key: "value",
|
|
812
|
-
newValue: t,
|
|
813
|
-
oldValue: n
|
|
814
|
-
}) : this.dep.trigger());
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
function Jn(e) {
|
|
818
|
-
return /* @__PURE__ */ m(e) ? e.value : e;
|
|
819
|
-
}
|
|
820
|
-
class Yn {
|
|
821
|
-
constructor(t, n, s) {
|
|
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);
|
|
823
|
-
let r = !0, o = t;
|
|
824
|
-
if (!g(t) || H(this._key) || !Ne(this._key))
|
|
825
|
-
do
|
|
826
|
-
r = !/* @__PURE__ */ se(o) || /* @__PURE__ */ v(o);
|
|
827
|
-
while (r && (o = o.__v_raw));
|
|
828
|
-
this._shallow = r;
|
|
829
|
-
}
|
|
830
|
-
get value() {
|
|
831
|
-
let t = this._object[this._key];
|
|
832
|
-
return this._shallow && (t = Jn(t)), this._value = t === void 0 ? this._defaultValue : t;
|
|
833
|
-
}
|
|
834
|
-
set value(t) {
|
|
835
|
-
if (this._shallow && /* @__PURE__ */ m(this._raw[this._key])) {
|
|
836
|
-
const n = this._object[this._key];
|
|
837
|
-
if (/* @__PURE__ */ m(n)) {
|
|
838
|
-
n.value = t;
|
|
839
|
-
return;
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
this._object[this._key] = t;
|
|
843
|
-
}
|
|
844
|
-
get dep() {
|
|
845
|
-
return Rn(this._raw, this._key);
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
class Gn {
|
|
849
|
-
constructor(t) {
|
|
850
|
-
this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
|
|
851
|
-
}
|
|
852
|
-
get value() {
|
|
853
|
-
return this._value = this._getter();
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
// @__NO_SIDE_EFFECTS__
|
|
857
|
-
function Xn(e, t, n) {
|
|
858
|
-
return /* @__PURE__ */ m(e) ? e : T(e) ? new Gn(e) : y(e) && arguments.length > 1 ? Zn(e, t, n) : /* @__PURE__ */ Vt(e);
|
|
859
|
-
}
|
|
860
|
-
function Zn(e, t, n) {
|
|
861
|
-
return new Yn(e, t, n);
|
|
862
|
-
}
|
|
863
|
-
const M = [];
|
|
864
|
-
function Qn(e) {
|
|
865
|
-
M.push(e);
|
|
866
|
-
}
|
|
867
|
-
function es() {
|
|
868
|
-
M.pop();
|
|
869
|
-
}
|
|
870
|
-
let De = !1;
|
|
871
|
-
function re(e, ...t) {
|
|
872
|
-
if (De) return;
|
|
873
|
-
De = !0;
|
|
874
|
-
const n = M.length ? M[M.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = ts();
|
|
875
|
-
if (s)
|
|
876
|
-
Qe(
|
|
877
|
-
s,
|
|
878
|
-
n,
|
|
879
|
-
11,
|
|
880
|
-
[
|
|
881
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
882
|
-
e + t.map((o) => {
|
|
883
|
-
var i, c;
|
|
884
|
-
return (c = (i = o.toString) == null ? void 0 : i.call(o)) != null ? c : JSON.stringify(o);
|
|
885
|
-
}).join(""),
|
|
886
|
-
n && n.proxy,
|
|
887
|
-
r.map(
|
|
888
|
-
({ vnode: o }) => `at <${Ht(n, o.type)}>`
|
|
889
|
-
).join(`
|
|
890
|
-
`),
|
|
891
|
-
r
|
|
892
|
-
]
|
|
893
|
-
);
|
|
894
|
-
else {
|
|
895
|
-
const o = [`[Vue warn]: ${e}`, ...t];
|
|
896
|
-
r.length && o.push(`
|
|
897
|
-
`, ...ns(r)), console.warn(...o);
|
|
898
|
-
}
|
|
899
|
-
De = !1;
|
|
900
|
-
}
|
|
901
|
-
function ts() {
|
|
902
|
-
let e = M[M.length - 1];
|
|
903
|
-
if (!e)
|
|
904
|
-
return [];
|
|
905
|
-
const t = [];
|
|
906
|
-
for (; e; ) {
|
|
907
|
-
const n = t[0];
|
|
908
|
-
n && n.vnode === e ? n.recurseCount++ : t.push({
|
|
909
|
-
vnode: e,
|
|
910
|
-
recurseCount: 0
|
|
911
|
-
});
|
|
912
|
-
const s = e.component && e.component.parent;
|
|
913
|
-
e = s && s.vnode;
|
|
914
|
-
}
|
|
915
|
-
return t;
|
|
916
|
-
}
|
|
917
|
-
function ns(e) {
|
|
918
|
-
const t = [];
|
|
919
|
-
return e.forEach((n, s) => {
|
|
920
|
-
t.push(...s === 0 ? [] : [`
|
|
921
|
-
`], ...ss(n));
|
|
922
|
-
}), t;
|
|
923
|
-
}
|
|
924
|
-
function ss({ vnode: e, recurseCount: t }) {
|
|
925
|
-
const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${Ht(
|
|
926
|
-
e.component,
|
|
927
|
-
e.type,
|
|
928
|
-
s
|
|
929
|
-
)}`, o = ">" + n;
|
|
930
|
-
return e.props ? [r, ...rs(e.props), o] : [r + o];
|
|
931
|
-
}
|
|
932
|
-
function rs(e) {
|
|
933
|
-
const t = [], n = Object.keys(e);
|
|
934
|
-
return n.slice(0, 3).forEach((s) => {
|
|
935
|
-
t.push(...Ct(s, e[s]));
|
|
936
|
-
}), n.length > 3 && t.push(" ..."), t;
|
|
937
|
-
}
|
|
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]);
|
|
940
|
-
}
|
|
941
|
-
const Rt = {
|
|
942
|
-
sp: "serverPrefetch hook",
|
|
943
|
-
bc: "beforeCreate hook",
|
|
944
|
-
c: "created hook",
|
|
945
|
-
bm: "beforeMount hook",
|
|
946
|
-
m: "mounted hook",
|
|
947
|
-
bu: "beforeUpdate hook",
|
|
948
|
-
u: "updated",
|
|
949
|
-
bum: "beforeUnmount hook",
|
|
950
|
-
um: "unmounted hook",
|
|
951
|
-
a: "activated hook",
|
|
952
|
-
da: "deactivated hook",
|
|
953
|
-
ec: "errorCaptured hook",
|
|
954
|
-
rtc: "renderTracked hook",
|
|
955
|
-
rtg: "renderTriggered hook",
|
|
956
|
-
0: "setup function",
|
|
957
|
-
1: "render function",
|
|
958
|
-
2: "watcher getter",
|
|
959
|
-
3: "watcher callback",
|
|
960
|
-
4: "watcher cleanup function",
|
|
961
|
-
5: "native event handler",
|
|
962
|
-
6: "component event handler",
|
|
963
|
-
7: "vnode hook",
|
|
964
|
-
8: "directive hook",
|
|
965
|
-
9: "transition hook",
|
|
966
|
-
10: "app errorHandler",
|
|
967
|
-
11: "app warnHandler",
|
|
968
|
-
12: "ref function",
|
|
969
|
-
13: "async component loader",
|
|
970
|
-
14: "scheduler flush",
|
|
971
|
-
15: "component update",
|
|
972
|
-
16: "app unmount cleanup function"
|
|
973
|
-
};
|
|
974
|
-
function Qe(e, t, n, s) {
|
|
975
|
-
try {
|
|
976
|
-
return s ? e(...s) : e();
|
|
977
|
-
} catch (r) {
|
|
978
|
-
xt(r, t, n);
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
function xt(e, t, n, s = !0) {
|
|
982
|
-
const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = t && t.appContext.config || Fe;
|
|
983
|
-
if (t) {
|
|
984
|
-
let c = t.parent;
|
|
985
|
-
const l = t.proxy, f = process.env.NODE_ENV !== "production" ? Rt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
986
|
-
for (; c; ) {
|
|
987
|
-
const h = c.ec;
|
|
988
|
-
if (h) {
|
|
989
|
-
for (let a = 0; a < h.length; a++)
|
|
990
|
-
if (h[a](e, l, f) === !1)
|
|
991
|
-
return;
|
|
992
|
-
}
|
|
993
|
-
c = c.parent;
|
|
994
|
-
}
|
|
995
|
-
if (o) {
|
|
996
|
-
Qe(o, null, 10, [
|
|
997
|
-
e,
|
|
998
|
-
l,
|
|
999
|
-
f
|
|
1000
|
-
]);
|
|
1001
|
-
return;
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
os(e, n, r, s, i);
|
|
1005
|
-
}
|
|
1006
|
-
function os(e, t, n, s = !0, r = !1) {
|
|
1007
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1008
|
-
const o = Rt[t];
|
|
1009
|
-
if (n && Qn(n), re(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && es(), s)
|
|
1010
|
-
throw e;
|
|
1011
|
-
console.error(e);
|
|
1012
|
-
} else {
|
|
1013
|
-
if (r)
|
|
1014
|
-
throw e;
|
|
1015
|
-
console.error(e);
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
const b = [];
|
|
1019
|
-
let V = -1;
|
|
1020
|
-
const G = [];
|
|
1021
|
-
let I = null, z = 0;
|
|
1022
|
-
const is = /* @__PURE__ */ Promise.resolve();
|
|
1023
|
-
let qe = null;
|
|
1024
|
-
const cs = 100;
|
|
1025
|
-
function as(e) {
|
|
1026
|
-
let t = V + 1, n = b.length;
|
|
1027
|
-
for (; t < n; ) {
|
|
1028
|
-
const s = t + n >>> 1, r = b[s], o = oe(r);
|
|
1029
|
-
o < e || o === e && r.flags & 2 ? t = s + 1 : n = s;
|
|
1030
|
-
}
|
|
1031
|
-
return t;
|
|
1032
|
-
}
|
|
1033
|
-
function ls(e) {
|
|
1034
|
-
if (!(e.flags & 1)) {
|
|
1035
|
-
const t = oe(e), n = b[b.length - 1];
|
|
1036
|
-
!n || // fast path when the job id is larger than the tail
|
|
1037
|
-
!(e.flags & 2) && t >= oe(n) ? b.push(e) : b.splice(as(t), 0, e), e.flags |= 1, It();
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
function It() {
|
|
1041
|
-
qe || (qe = is.then(Dt));
|
|
1042
|
-
}
|
|
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();
|
|
1045
|
-
}
|
|
1046
|
-
function fs(e) {
|
|
1047
|
-
if (G.length) {
|
|
1048
|
-
const t = [...new Set(G)].sort(
|
|
1049
|
-
(n, s) => oe(n) - oe(s)
|
|
1050
|
-
);
|
|
1051
|
-
if (G.length = 0, I) {
|
|
1052
|
-
I.push(...t);
|
|
1053
|
-
return;
|
|
1054
|
-
}
|
|
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];
|
|
1057
|
-
process.env.NODE_ENV !== "production" && Pt(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
1058
|
-
}
|
|
1059
|
-
I = null, z = 0;
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
const oe = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
1063
|
-
function Dt(e) {
|
|
1064
|
-
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
1065
|
-
const t = process.env.NODE_ENV !== "production" ? (n) => Pt(e, n) : yn;
|
|
1066
|
-
try {
|
|
1067
|
-
for (V = 0; V < b.length; V++) {
|
|
1068
|
-
const n = b[V];
|
|
1069
|
-
if (n && !(n.flags & 8)) {
|
|
1070
|
-
if (process.env.NODE_ENV !== "production" && t(n))
|
|
1071
|
-
continue;
|
|
1072
|
-
n.flags & 4 && (n.flags &= -2), Qe(
|
|
1073
|
-
n,
|
|
1074
|
-
n.i,
|
|
1075
|
-
n.i ? 15 : 14
|
|
1076
|
-
), n.flags & 4 || (n.flags &= -2);
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
} finally {
|
|
1080
|
-
for (; V < b.length; V++) {
|
|
1081
|
-
const n = b[V];
|
|
1082
|
-
n && (n.flags &= -2);
|
|
1083
|
-
}
|
|
1084
|
-
V = -1, b.length = 0, fs(e), qe = null, (b.length || G.length) && Dt(e);
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
function Pt(e, t) {
|
|
1088
|
-
const n = e.get(t) || 0;
|
|
1089
|
-
if (n > cs) {
|
|
1090
|
-
const s = t.i, r = s && Kt(s.type);
|
|
1091
|
-
return xt(
|
|
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
|
-
null,
|
|
1094
|
-
10
|
|
1095
|
-
), !0;
|
|
1096
|
-
}
|
|
1097
|
-
return e.set(t, n + 1), !1;
|
|
1098
|
-
}
|
|
1099
|
-
const Pe = /* @__PURE__ */ new Map();
|
|
1100
|
-
process.env.NODE_ENV !== "production" && (Oe().__VUE_HMR_RUNTIME__ = {
|
|
1101
|
-
createRecord: je(ps),
|
|
1102
|
-
rerender: je(hs),
|
|
1103
|
-
reload: je(ds)
|
|
1104
|
-
});
|
|
1105
|
-
const de = /* @__PURE__ */ new Map();
|
|
1106
|
-
function ps(e, t) {
|
|
1107
|
-
return de.has(e) ? !1 : (de.set(e, {
|
|
1108
|
-
initialDef: _e(t),
|
|
1109
|
-
instances: /* @__PURE__ */ new Set()
|
|
1110
|
-
}), !0);
|
|
1111
|
-
}
|
|
1112
|
-
function _e(e) {
|
|
1113
|
-
return qt(e) ? e.__vccOpts : e;
|
|
1114
|
-
}
|
|
1115
|
-
function hs(e, t) {
|
|
1116
|
-
const n = de.get(e);
|
|
1117
|
-
n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
|
|
1118
|
-
t && (s.render = t, _e(s.type).render = t), s.renderCache = [], s.job.flags & 8 || s.update();
|
|
1119
|
-
}));
|
|
1120
|
-
}
|
|
1121
|
-
function ds(e, t) {
|
|
1122
|
-
const n = de.get(e);
|
|
1123
|
-
if (!n) return;
|
|
1124
|
-
t = _e(t), ft(n.initialDef, t);
|
|
1125
|
-
const s = [...n.instances];
|
|
1126
|
-
for (let r = 0; r < s.length; r++) {
|
|
1127
|
-
const o = s[r], i = _e(o.type);
|
|
1128
|
-
let c = Pe.get(i);
|
|
1129
|
-
c || (i !== n.initialDef && ft(i, t), Pe.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(() => {
|
|
1130
|
-
o.job.flags & 8 || (o.parent.update(), c.delete(o));
|
|
1131
|
-
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1132
|
-
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1133
|
-
), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
|
|
1134
|
-
}
|
|
1135
|
-
us(() => {
|
|
1136
|
-
Pe.clear();
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
function ft(e, t) {
|
|
1140
|
-
q(e, t);
|
|
1141
|
-
for (const n in e)
|
|
1142
|
-
n !== "__file" && !(n in t) && delete e[n];
|
|
1143
|
-
}
|
|
1144
|
-
function je(e) {
|
|
1145
|
-
return (t, n) => {
|
|
1146
|
-
try {
|
|
1147
|
-
return e(t, n);
|
|
1148
|
-
} catch (s) {
|
|
1149
|
-
console.error(s), console.warn(
|
|
1150
|
-
"[HMR] Something went wrong during Vue component hot-reload. Full reload required."
|
|
1151
|
-
);
|
|
1152
|
-
}
|
|
1153
|
-
};
|
|
1154
|
-
}
|
|
1155
|
-
let ge = null, _s = null;
|
|
1156
|
-
const gs = (e) => e.__isTeleport;
|
|
1157
|
-
function jt(e, t) {
|
|
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;
|
|
1159
|
-
}
|
|
1160
|
-
Oe().requestIdleCallback;
|
|
1161
|
-
Oe().cancelIdleCallback;
|
|
1162
|
-
const ys = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
1163
|
-
process.env.NODE_ENV;
|
|
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) {
|
|
1166
|
-
return e ? e.__v_isVNode === !0 : !1;
|
|
1167
|
-
}
|
|
1168
|
-
const Es = (...e) => Mt(
|
|
1169
|
-
...e
|
|
1170
|
-
), At = ({ key: e }) => e ?? null, fe = ({
|
|
1171
|
-
ref: e,
|
|
1172
|
-
ref_key: t,
|
|
1173
|
-
ref_for: n
|
|
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) {
|
|
1176
|
-
const l = {
|
|
1177
|
-
__v_isVNode: !0,
|
|
1178
|
-
__v_skip: !0,
|
|
1179
|
-
type: e,
|
|
1180
|
-
props: t,
|
|
1181
|
-
key: t && At(t),
|
|
1182
|
-
ref: t && fe(t),
|
|
1183
|
-
scopeId: _s,
|
|
1184
|
-
slotScopeIds: null,
|
|
1185
|
-
children: n,
|
|
1186
|
-
component: null,
|
|
1187
|
-
suspense: null,
|
|
1188
|
-
ssContent: null,
|
|
1189
|
-
ssFallback: null,
|
|
1190
|
-
dirs: null,
|
|
1191
|
-
transition: null,
|
|
1192
|
-
el: null,
|
|
1193
|
-
anchor: null,
|
|
1194
|
-
target: null,
|
|
1195
|
-
targetStart: null,
|
|
1196
|
-
targetAnchor: null,
|
|
1197
|
-
staticCount: 0,
|
|
1198
|
-
shapeFlag: o,
|
|
1199
|
-
patchFlag: s,
|
|
1200
|
-
dynamicProps: r,
|
|
1201
|
-
dynamicChildren: null,
|
|
1202
|
-
appContext: null,
|
|
1203
|
-
ctx: ge
|
|
1204
|
-
};
|
|
1205
|
-
return c ? (et(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;
|
|
1206
|
-
}
|
|
1207
|
-
const Os = process.env.NODE_ENV !== "production" ? Es : Mt;
|
|
1208
|
-
function Mt(e, t = null, n = null, s = 0, r = null, o = !1) {
|
|
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(
|
|
1211
|
-
e,
|
|
1212
|
-
t,
|
|
1213
|
-
!0
|
|
1214
|
-
/* mergeRef: true */
|
|
1215
|
-
);
|
|
1216
|
-
return n && et(c, n), c.patchFlag = -2, c;
|
|
1217
|
-
}
|
|
1218
|
-
if (qt(e) && (e = e.__vccOpts), t) {
|
|
1219
|
-
t = ks(t);
|
|
1220
|
-
let { class: c, style: l } = t;
|
|
1221
|
-
c && !R(c) && (t.class = Je(c)), y(l) && (/* @__PURE__ */ se(l) && !g(l) && (l = q({}, l)), t.style = Be(l));
|
|
1222
|
-
}
|
|
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(
|
|
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`.",
|
|
1226
|
-
`
|
|
1227
|
-
Component that was made reactive: `,
|
|
1228
|
-
e
|
|
1229
|
-
)), Ns(
|
|
1230
|
-
e,
|
|
1231
|
-
t,
|
|
1232
|
-
n,
|
|
1233
|
-
s,
|
|
1234
|
-
r,
|
|
1235
|
-
i,
|
|
1236
|
-
o,
|
|
1237
|
-
!0
|
|
1238
|
-
);
|
|
1239
|
-
}
|
|
1240
|
-
function ks(e) {
|
|
1241
|
-
return e ? /* @__PURE__ */ se(e) || $t(e) ? q({}, e) : e : null;
|
|
1242
|
-
}
|
|
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 = {
|
|
1245
|
-
__v_isVNode: !0,
|
|
1246
|
-
__v_skip: !0,
|
|
1247
|
-
type: e.type,
|
|
1248
|
-
props: f,
|
|
1249
|
-
key: f && At(f),
|
|
1250
|
-
ref: t && t.ref ? (
|
|
1251
|
-
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1252
|
-
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
1253
|
-
// the refs so the single vnode can be set on multiple refs
|
|
1254
|
-
n && o ? g(o) ? o.concat(fe(t)) : [o, fe(t)] : fe(t)
|
|
1255
|
-
) : o,
|
|
1256
|
-
scopeId: e.scopeId,
|
|
1257
|
-
slotScopeIds: e.slotScopeIds,
|
|
1258
|
-
children: process.env.NODE_ENV !== "production" && i === -1 && g(c) ? c.map(Ft) : c,
|
|
1259
|
-
target: e.target,
|
|
1260
|
-
targetStart: e.targetStart,
|
|
1261
|
-
targetAnchor: e.targetAnchor,
|
|
1262
|
-
staticCount: e.staticCount,
|
|
1263
|
-
shapeFlag: e.shapeFlag,
|
|
1264
|
-
// if the vnode is cloned with extra props, we can no longer assume its
|
|
1265
|
-
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1266
|
-
// note: preserve flag for fragments since they use the flag for children
|
|
1267
|
-
// fast paths only.
|
|
1268
|
-
patchFlag: t && e.type !== Tt ? i === -1 ? 16 : i | 16 : i,
|
|
1269
|
-
dynamicProps: e.dynamicProps,
|
|
1270
|
-
dynamicChildren: e.dynamicChildren,
|
|
1271
|
-
appContext: e.appContext,
|
|
1272
|
-
dirs: e.dirs,
|
|
1273
|
-
transition: l,
|
|
1274
|
-
// These should technically only be non-null on mounted VNodes. However,
|
|
1275
|
-
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
1276
|
-
// them since them being non-null during a mount doesn't affect the logic as
|
|
1277
|
-
// they will simply be overwritten.
|
|
1278
|
-
component: e.component,
|
|
1279
|
-
suspense: e.suspense,
|
|
1280
|
-
ssContent: e.ssContent && ye(e.ssContent),
|
|
1281
|
-
ssFallback: e.ssFallback && ye(e.ssFallback),
|
|
1282
|
-
placeholder: e.placeholder,
|
|
1283
|
-
el: e.el,
|
|
1284
|
-
anchor: e.anchor,
|
|
1285
|
-
ctx: e.ctx,
|
|
1286
|
-
ce: e.ce
|
|
1287
|
-
};
|
|
1288
|
-
return l && s && jt(
|
|
1289
|
-
h,
|
|
1290
|
-
l.clone(h)
|
|
1291
|
-
), h;
|
|
1292
|
-
}
|
|
1293
|
-
function Ft(e) {
|
|
1294
|
-
const t = ye(e);
|
|
1295
|
-
return g(e.children) && (t.children = e.children.map(Ft)), t;
|
|
1296
|
-
}
|
|
1297
|
-
function Vs(e = " ", t = 0) {
|
|
1298
|
-
return Os(Ss, null, e, t);
|
|
1299
|
-
}
|
|
1300
|
-
function et(e, t) {
|
|
1301
|
-
let n = 0;
|
|
1302
|
-
const { shapeFlag: s } = e;
|
|
1303
|
-
if (t == null)
|
|
1304
|
-
t = null;
|
|
1305
|
-
else if (g(t))
|
|
1306
|
-
n = 16;
|
|
1307
|
-
else if (typeof t == "object")
|
|
1308
|
-
if (s & 65) {
|
|
1309
|
-
const r = t.default;
|
|
1310
|
-
r && (r._c && (r._d = !1), et(e, r()), r._c && (r._d = !0));
|
|
1311
|
-
return;
|
|
1312
|
-
} else
|
|
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);
|
|
1315
|
-
e.children = t, e.shapeFlag |= n;
|
|
1316
|
-
}
|
|
1317
|
-
function Cs(...e) {
|
|
1318
|
-
const t = {};
|
|
1319
|
-
for (let n = 0; n < e.length; n++) {
|
|
1320
|
-
const s = e[n];
|
|
1321
|
-
for (const r in s)
|
|
1322
|
-
if (r === "class")
|
|
1323
|
-
t.class !== s.class && (t.class = Je([t.class, s.class]));
|
|
1324
|
-
else if (r === "style")
|
|
1325
|
-
t.style = Be([t.style, s.style]);
|
|
1326
|
-
else if (mn(r)) {
|
|
1327
|
-
const o = t[r], i = s[r];
|
|
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);
|
|
1331
|
-
} else r !== "" && (t[r] = s[r]);
|
|
1332
|
-
}
|
|
1333
|
-
return t;
|
|
1334
|
-
}
|
|
1335
|
-
{
|
|
1336
|
-
const e = Oe(), t = (n, s) => {
|
|
1337
|
-
let r;
|
|
1338
|
-
return (r = e[n]) || (r = e[n] = []), r.push(s), (o) => {
|
|
1339
|
-
r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
|
|
1340
|
-
};
|
|
1341
|
-
};
|
|
1342
|
-
t(
|
|
1343
|
-
"__VUE_INSTANCE_SETTERS__",
|
|
1344
|
-
(n) => n
|
|
1345
|
-
), t(
|
|
1346
|
-
"__VUE_SSR_SETTERS__",
|
|
1347
|
-
(n) => n
|
|
1348
|
-
);
|
|
1349
|
-
}
|
|
1350
|
-
process.env.NODE_ENV;
|
|
1351
|
-
const Rs = /(?:^|[-_])\w/g, xs = (e) => e.replace(Rs, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
1352
|
-
function Kt(e, t = !0) {
|
|
1353
|
-
return T(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
1354
|
-
}
|
|
1355
|
-
function Ht(e, t, n = !1) {
|
|
1356
|
-
let s = Kt(t);
|
|
1357
|
-
if (!s && t.__file) {
|
|
1358
|
-
const r = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
1359
|
-
r && (s = r[1]);
|
|
1360
|
-
}
|
|
1361
|
-
if (!s && e) {
|
|
1362
|
-
const r = (o) => {
|
|
1363
|
-
for (const i in o)
|
|
1364
|
-
if (o[i] === t)
|
|
1365
|
-
return i;
|
|
1366
|
-
};
|
|
1367
|
-
s = r(e.components) || e.parent && r(
|
|
1368
|
-
e.parent.type.components
|
|
1369
|
-
) || r(e.appContext.components);
|
|
1370
|
-
}
|
|
1371
|
-
return s ? xs(s) : n ? "App" : "Anonymous";
|
|
1372
|
-
}
|
|
1373
|
-
function qt(e) {
|
|
1374
|
-
return T(e) && "__vccOpts" in e;
|
|
1375
|
-
}
|
|
1376
|
-
function Is() {
|
|
1377
|
-
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1378
|
-
return;
|
|
1379
|
-
const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
|
|
1380
|
-
__vue_custom_formatter: !0,
|
|
1381
|
-
header(a) {
|
|
1382
|
-
if (!y(a))
|
|
1383
|
-
return null;
|
|
1384
|
-
if (a.__isVue)
|
|
1385
|
-
return ["div", e, "VueInstance"];
|
|
1386
|
-
if (/* @__PURE__ */ m(a)) {
|
|
1387
|
-
const u = a.value;
|
|
1388
|
-
return [
|
|
1389
|
-
"div",
|
|
1390
|
-
{},
|
|
1391
|
-
["span", e, h(a)],
|
|
1392
|
-
"<",
|
|
1393
|
-
c(u),
|
|
1394
|
-
">"
|
|
1395
|
-
];
|
|
1396
|
-
} else {
|
|
1397
|
-
if (/* @__PURE__ */ Ze(a))
|
|
1398
|
-
return [
|
|
1399
|
-
"div",
|
|
1400
|
-
{},
|
|
1401
|
-
["span", e, /* @__PURE__ */ v(a) ? "ShallowReactive" : "Reactive"],
|
|
1402
|
-
"<",
|
|
1403
|
-
c(a),
|
|
1404
|
-
`>${/* @__PURE__ */ N(a) ? " (readonly)" : ""}`
|
|
1405
|
-
];
|
|
1406
|
-
if (/* @__PURE__ */ N(a))
|
|
1407
|
-
return [
|
|
1408
|
-
"div",
|
|
1409
|
-
{},
|
|
1410
|
-
["span", e, /* @__PURE__ */ v(a) ? "ShallowReadonly" : "Readonly"],
|
|
1411
|
-
"<",
|
|
1412
|
-
c(a),
|
|
1413
|
-
">"
|
|
1414
|
-
];
|
|
1415
|
-
}
|
|
1416
|
-
return null;
|
|
1417
|
-
},
|
|
1418
|
-
hasBody(a) {
|
|
1419
|
-
return a && a.__isVue;
|
|
1420
|
-
},
|
|
1421
|
-
body(a) {
|
|
1422
|
-
if (a && a.__isVue)
|
|
1423
|
-
return [
|
|
1424
|
-
"div",
|
|
1425
|
-
{},
|
|
1426
|
-
...o(a.$)
|
|
1427
|
-
];
|
|
1428
|
-
}
|
|
1429
|
-
};
|
|
1430
|
-
function o(a) {
|
|
1431
|
-
const u = [];
|
|
1432
|
-
a.type.props && a.props && u.push(i("props", /* @__PURE__ */ p(a.props))), a.setupState !== Fe && u.push(i("setup", a.setupState)), a.data !== Fe && u.push(i("data", /* @__PURE__ */ p(a.data)));
|
|
1433
|
-
const d = l(a, "computed");
|
|
1434
|
-
d && u.push(i("computed", d));
|
|
1435
|
-
const _ = l(a, "inject");
|
|
1436
|
-
return _ && u.push(i("injected", _)), u.push([
|
|
1437
|
-
"div",
|
|
1438
|
-
{},
|
|
1439
|
-
[
|
|
1440
|
-
"span",
|
|
1441
|
-
{
|
|
1442
|
-
style: s.style + ";opacity:0.66"
|
|
1443
|
-
},
|
|
1444
|
-
"$ (internal): "
|
|
1445
|
-
],
|
|
1446
|
-
["object", { object: a }]
|
|
1447
|
-
]), u;
|
|
1448
|
-
}
|
|
1449
|
-
function i(a, u) {
|
|
1450
|
-
return u = q({}, u), Object.keys(u).length ? [
|
|
1451
|
-
"div",
|
|
1452
|
-
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
1453
|
-
[
|
|
1454
|
-
"div",
|
|
1455
|
-
{
|
|
1456
|
-
style: "color:#476582"
|
|
1457
|
-
},
|
|
1458
|
-
a
|
|
1459
|
-
],
|
|
1460
|
-
[
|
|
1461
|
-
"div",
|
|
1462
|
-
{
|
|
1463
|
-
style: "padding-left:1.25em"
|
|
1464
|
-
},
|
|
1465
|
-
...Object.keys(u).map((d) => [
|
|
1466
|
-
"div",
|
|
1467
|
-
{},
|
|
1468
|
-
["span", s, d + ": "],
|
|
1469
|
-
c(u[d], !1)
|
|
1470
|
-
])
|
|
1471
|
-
]
|
|
1472
|
-
] : ["span", {}];
|
|
1473
|
-
}
|
|
1474
|
-
function c(a, u = !0) {
|
|
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)];
|
|
1476
|
-
}
|
|
1477
|
-
function l(a, u) {
|
|
1478
|
-
const d = a.type;
|
|
1479
|
-
if (T(d))
|
|
1480
|
-
return;
|
|
1481
|
-
const _ = {};
|
|
1482
|
-
for (const w in a.ctx)
|
|
1483
|
-
f(d, w, u) && (_[w] = a.ctx[w]);
|
|
1484
|
-
return _;
|
|
1485
|
-
}
|
|
1486
|
-
function f(a, u, d) {
|
|
1487
|
-
const _ = a[d];
|
|
1488
|
-
if (g(_) && _.includes(u) || y(_) && u in _ || a.extends && f(a.extends, u, d) || a.mixins && a.mixins.some((w) => f(w, u, d)))
|
|
1489
|
-
return !0;
|
|
1490
|
-
}
|
|
1491
|
-
function h(a) {
|
|
1492
|
-
return /* @__PURE__ */ v(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
|
|
1493
|
-
}
|
|
1494
|
-
window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
|
|
1495
|
-
}
|
|
1496
|
-
process.env.NODE_ENV;
|
|
1497
|
-
process.env.NODE_ENV;
|
|
1498
|
-
process.env.NODE_ENV;
|
|
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]);
|
|
1506
|
-
}
|
|
1507
|
-
class $s extends fn {
|
|
1508
|
-
_onAction;
|
|
1509
|
-
_options;
|
|
1510
|
-
_store;
|
|
1511
|
-
_subscriptions = {};
|
|
1512
|
-
_storeSubscribe;
|
|
1513
|
-
static _requiredKeys;
|
|
1514
|
-
get onAction() {
|
|
1515
|
-
if (this._onAction)
|
|
1516
|
-
return () => ({
|
|
1517
|
-
store: this.store,
|
|
1518
|
-
callback: this._onAction
|
|
1519
|
-
});
|
|
1520
|
-
}
|
|
1521
|
-
set onAction(t) {
|
|
1522
|
-
this._onAction = t;
|
|
1523
|
-
}
|
|
1524
|
-
get options() {
|
|
1525
|
-
return this._options;
|
|
1526
|
-
}
|
|
1527
|
-
get state() {
|
|
1528
|
-
return this._store.$state;
|
|
1529
|
-
}
|
|
1530
|
-
set state(t) {
|
|
1531
|
-
this._store.$state = t;
|
|
1532
|
-
}
|
|
1533
|
-
get store() {
|
|
1534
|
-
return this._store;
|
|
1535
|
-
}
|
|
1536
|
-
get storeSubscribe() {
|
|
1537
|
-
if (this._storeSubscribe)
|
|
1538
|
-
return () => ({
|
|
1539
|
-
store: this.store,
|
|
1540
|
-
callback: this._storeSubscribe
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
set storeSubscribe(t) {
|
|
1544
|
-
this._storeSubscribe = t;
|
|
1545
|
-
}
|
|
1546
|
-
constructor(t, n, s = !1, r) {
|
|
1547
|
-
super(s, r), this._options = n.storeOptions, this._store = t;
|
|
1548
|
-
}
|
|
1549
|
-
/**
|
|
1550
|
-
* Add property to state
|
|
1551
|
-
* @param name
|
|
1552
|
-
* @param value
|
|
1553
|
-
*/
|
|
1554
|
-
addToState(t, n) {
|
|
1555
|
-
this.isOptionApi() || n?.value || (n = /* @__PURE__ */ Vt(n)), this.state[t] = n, this.store[t] = /* @__PURE__ */ Xn(this.state, t);
|
|
1556
|
-
}
|
|
1557
|
-
addSubscription(t, n, s) {
|
|
1558
|
-
this._subscriptions[t] = { subscription: n, ...s ?? {} };
|
|
1559
|
-
}
|
|
1560
|
-
/**
|
|
1561
|
-
* Create and return a class instance
|
|
1562
|
-
* @param store
|
|
1563
|
-
* @param options
|
|
1564
|
-
* @param debug
|
|
1565
|
-
* @returns
|
|
1566
|
-
*/
|
|
1567
|
-
static customizeStore(t, n, s = !1, r) {
|
|
1568
|
-
if (n.storeOptions && this.hasRequiredKeys(n.storeOptions))
|
|
1569
|
-
return new this(t, n, s, r);
|
|
1570
|
-
}
|
|
1571
|
-
hasDeniedFirstChar(t) {
|
|
1572
|
-
return js(t[0]);
|
|
1573
|
-
}
|
|
1574
|
-
static hasRequiredKeys(t) {
|
|
1575
|
-
return this._requiredKeys !== void 0 && this._requiredKeys?.every((n) => !!t[n]);
|
|
1576
|
-
}
|
|
1577
|
-
getOption(t) {
|
|
1578
|
-
return this.options && this.options[t];
|
|
1579
|
-
}
|
|
1580
|
-
getStatePropertyValue(t) {
|
|
1581
|
-
return this.getValue(this.state[t]);
|
|
1582
|
-
}
|
|
1583
|
-
getSubscriptions() {
|
|
1584
|
-
if (!Y(this._subscriptions))
|
|
1585
|
-
return this._subscriptions;
|
|
1586
|
-
}
|
|
1587
|
-
getValue(t) {
|
|
1588
|
-
return t?.__v_isRef ? t.value : t;
|
|
1589
|
-
}
|
|
1590
|
-
isOptionApi() {
|
|
1591
|
-
return this.store._isOptionsAPI;
|
|
1592
|
-
}
|
|
1593
|
-
stateHas(t) {
|
|
1594
|
-
return this.state.hasOwnProperty(t);
|
|
1595
|
-
}
|
|
1596
|
-
storeHas(t) {
|
|
1597
|
-
return this.store.hasOwnProperty(t);
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
const Ut = "pinia-plugin-persist-state";
|
|
1601
|
-
class Ts extends _n {
|
|
1602
|
-
_pluginName = Ut;
|
|
29
|
+
const ce = "pinia-plugin-persist-state";
|
|
30
|
+
class De extends Ie {
|
|
31
|
+
_pluginName = ce;
|
|
1603
32
|
}
|
|
1604
|
-
const
|
|
1605
|
-
let
|
|
33
|
+
const E = new De();
|
|
34
|
+
let re = class {
|
|
1606
35
|
_db;
|
|
1607
36
|
_localStorageVersionKey = "IDBVersion";
|
|
1608
37
|
_name = "persistStore";
|
|
@@ -1611,257 +40,257 @@ let pt = class {
|
|
|
1611
40
|
_objectStoreName;
|
|
1612
41
|
_transactionMode = "readwrite";
|
|
1613
42
|
_version;
|
|
1614
|
-
constructor(
|
|
1615
|
-
this._objectStoreName =
|
|
43
|
+
constructor(e, s, r) {
|
|
44
|
+
this._objectStoreName = e, this._version = this.getStoredVersionNumber(), s && (this._objectStoreOptions = s), r && (this._transactionMode = r);
|
|
1616
45
|
}
|
|
1617
46
|
clear() {
|
|
1618
|
-
const
|
|
47
|
+
const e = () => {
|
|
1619
48
|
if (this._objectStore) {
|
|
1620
|
-
const
|
|
1621
|
-
this.requestEventsHandler(
|
|
1622
|
-
error: () => this.onError(
|
|
49
|
+
const s = this._objectStore.clear();
|
|
50
|
+
this.requestEventsHandler(s, {
|
|
51
|
+
error: () => this.onError(s.error)
|
|
1623
52
|
});
|
|
1624
53
|
}
|
|
1625
54
|
};
|
|
1626
|
-
this.open({ success:
|
|
55
|
+
this.open({ success: e });
|
|
1627
56
|
}
|
|
1628
57
|
createObjectStore() {
|
|
1629
58
|
this._db && !this._db.objectStoreNames.contains(this._objectStoreName) && this._db.createObjectStore(this._objectStoreName, this._objectStoreOptions);
|
|
1630
59
|
}
|
|
1631
60
|
deleteObjectStore() {
|
|
1632
|
-
const
|
|
61
|
+
const e = () => {
|
|
1633
62
|
this._db?.deleteObjectStore(this._objectStoreName);
|
|
1634
63
|
};
|
|
1635
|
-
this.open({ success:
|
|
64
|
+
this.open({ success: e });
|
|
1636
65
|
}
|
|
1637
|
-
async getItem(
|
|
1638
|
-
return new Promise((
|
|
1639
|
-
const
|
|
66
|
+
async getItem(e) {
|
|
67
|
+
return new Promise((s) => {
|
|
68
|
+
const r = () => {
|
|
1640
69
|
if (this._objectStore) {
|
|
1641
|
-
const
|
|
1642
|
-
this.requestEventsHandler(
|
|
70
|
+
const o = this._objectStore.get(e);
|
|
71
|
+
this.requestEventsHandler(o, {
|
|
1643
72
|
error: () => this.onError(
|
|
1644
|
-
|
|
1645
|
-
() =>
|
|
73
|
+
o.error,
|
|
74
|
+
() => s(void 0)
|
|
1646
75
|
),
|
|
1647
|
-
success: () =>
|
|
76
|
+
success: () => s(o.result)
|
|
1648
77
|
});
|
|
1649
78
|
}
|
|
1650
79
|
};
|
|
1651
|
-
this.open({ success:
|
|
80
|
+
this.open({ success: r });
|
|
1652
81
|
});
|
|
1653
82
|
}
|
|
1654
|
-
async getObjectStoreItem(
|
|
1655
|
-
return new Promise((
|
|
1656
|
-
const
|
|
83
|
+
async getObjectStoreItem(e, s) {
|
|
84
|
+
return new Promise((r) => {
|
|
85
|
+
const o = () => {
|
|
1657
86
|
if (this._objectStore) {
|
|
1658
|
-
const i = this._objectStore.index(
|
|
87
|
+
const i = this._objectStore.index(e).get(s);
|
|
1659
88
|
this.requestEventsHandler(i, {
|
|
1660
|
-
error: () =>
|
|
1661
|
-
success: () =>
|
|
89
|
+
error: () => r(void 0),
|
|
90
|
+
success: () => r(i.result)
|
|
1662
91
|
});
|
|
1663
92
|
}
|
|
1664
93
|
};
|
|
1665
|
-
this.open({ success:
|
|
94
|
+
this.open({ success: o });
|
|
1666
95
|
});
|
|
1667
96
|
}
|
|
1668
97
|
getStoredVersionNumber() {
|
|
1669
98
|
if (!localStorage)
|
|
1670
99
|
return 1;
|
|
1671
|
-
const
|
|
1672
|
-
return
|
|
100
|
+
const e = localStorage.getItem(this._localStorageVersionKey);
|
|
101
|
+
return e ? parseInt(e) : 1;
|
|
1673
102
|
}
|
|
1674
|
-
handleDeleteRequest(
|
|
1675
|
-
|
|
103
|
+
handleDeleteRequest(e, s) {
|
|
104
|
+
e.onerror = () => E.error(`IndexedDB - Item "${s}" remove`, e.error);
|
|
1676
105
|
}
|
|
1677
|
-
onError(
|
|
1678
|
-
|
|
106
|
+
onError(e, s) {
|
|
107
|
+
s && s(e);
|
|
1679
108
|
}
|
|
1680
|
-
open(
|
|
1681
|
-
const
|
|
1682
|
-
this._db =
|
|
1683
|
-
},
|
|
109
|
+
open(e) {
|
|
110
|
+
const s = indexedDB.open(this._name, this._version), r = () => {
|
|
111
|
+
this._db = s.result;
|
|
112
|
+
}, o = (i) => {
|
|
1684
113
|
try {
|
|
1685
|
-
if (
|
|
114
|
+
if (r(), !this._db) return;
|
|
1686
115
|
const c = this._db.transaction(this._objectStoreName, this._transactionMode);
|
|
1687
116
|
c.onerror = () => this.onError(c.error), this._objectStore = c.objectStore(this._objectStoreName), this._objectStore && i();
|
|
1688
117
|
} catch (c) {
|
|
1689
|
-
|
|
118
|
+
E.error("indexedDB - transaction error", [c]);
|
|
1690
119
|
}
|
|
1691
120
|
};
|
|
1692
|
-
if (
|
|
1693
|
-
const i =
|
|
1694
|
-
|
|
121
|
+
if (e?.success) {
|
|
122
|
+
const i = e.success;
|
|
123
|
+
e.success = () => o(i);
|
|
1695
124
|
}
|
|
1696
|
-
if (
|
|
1697
|
-
const i =
|
|
1698
|
-
|
|
1699
|
-
|
|
125
|
+
if (e?.upgrade) {
|
|
126
|
+
const i = e.upgrade.bind(this);
|
|
127
|
+
e.upgrade = () => {
|
|
128
|
+
r(), i();
|
|
1700
129
|
};
|
|
1701
130
|
}
|
|
1702
|
-
const
|
|
131
|
+
const n = () => {
|
|
1703
132
|
const i = (c) => {
|
|
1704
133
|
if (c?.name === "VersionError") {
|
|
1705
|
-
this._version++, this.saveVersion(), this.open(
|
|
134
|
+
this._version++, this.saveVersion(), this.open(e);
|
|
1706
135
|
return;
|
|
1707
136
|
}
|
|
1708
|
-
|
|
137
|
+
e?.error && e.error(c);
|
|
1709
138
|
};
|
|
1710
|
-
this.onError(
|
|
139
|
+
this.onError(s.error, i);
|
|
1711
140
|
};
|
|
1712
|
-
return
|
|
141
|
+
return e && this.openRequestEventsHandler(s, { ...e, error: n }), s;
|
|
1713
142
|
}
|
|
1714
|
-
openRequestEventsHandler(
|
|
1715
|
-
this.requestEventsHandler(
|
|
143
|
+
openRequestEventsHandler(e, s) {
|
|
144
|
+
this.requestEventsHandler(e, s), s.upgrade && (e.onupgradeneeded = s.upgrade);
|
|
1716
145
|
}
|
|
1717
|
-
removeItem(
|
|
1718
|
-
const
|
|
146
|
+
removeItem(e) {
|
|
147
|
+
const s = () => {
|
|
1719
148
|
if (this._objectStore) {
|
|
1720
|
-
const
|
|
1721
|
-
this.handleDeleteRequest(
|
|
149
|
+
const r = this._objectStore.delete(e);
|
|
150
|
+
this.handleDeleteRequest(r, e);
|
|
1722
151
|
}
|
|
1723
152
|
};
|
|
1724
|
-
this.open({ success:
|
|
153
|
+
this.open({ success: s });
|
|
1725
154
|
}
|
|
1726
|
-
removeItems(
|
|
1727
|
-
const
|
|
155
|
+
removeItems(e) {
|
|
156
|
+
const s = () => {
|
|
1728
157
|
if (this._objectStore) {
|
|
1729
|
-
const
|
|
1730
|
-
|
|
1731
|
-
if (this._objectStore && (!
|
|
158
|
+
const r = this._objectStore.getAllKeys(), o = () => {
|
|
159
|
+
r.result.forEach((c) => {
|
|
160
|
+
if (this._objectStore && (!e || !e.includes(c))) {
|
|
1732
161
|
const l = this._objectStore.delete(c);
|
|
1733
162
|
this.handleDeleteRequest(l, c);
|
|
1734
163
|
}
|
|
1735
164
|
});
|
|
1736
|
-
},
|
|
1737
|
-
this.requestEventsHandler(
|
|
165
|
+
}, n = () => E.error("IndexedDB - removeItems", [r.error]);
|
|
166
|
+
this.requestEventsHandler(r, { error: n, success: o });
|
|
1738
167
|
}
|
|
1739
168
|
};
|
|
1740
|
-
this.open({ success:
|
|
169
|
+
this.open({ success: s });
|
|
1741
170
|
}
|
|
1742
|
-
requestEventsHandler(
|
|
1743
|
-
const { error:
|
|
1744
|
-
|
|
171
|
+
requestEventsHandler(e, s) {
|
|
172
|
+
const { error: r, success: o } = s;
|
|
173
|
+
r && (e.onerror = r), o && (e.onsuccess = o);
|
|
1745
174
|
}
|
|
1746
175
|
saveVersion() {
|
|
1747
176
|
localStorage && localStorage.setItem(this._localStorageVersionKey, this._version.toString());
|
|
1748
177
|
}
|
|
1749
|
-
setItem(
|
|
1750
|
-
const
|
|
178
|
+
setItem(e, s) {
|
|
179
|
+
const r = () => {
|
|
1751
180
|
if (this._objectStore) {
|
|
1752
|
-
const
|
|
1753
|
-
if (
|
|
181
|
+
const n = this._objectStore.add(e);
|
|
182
|
+
if (s) {
|
|
1754
183
|
const i = () => {
|
|
1755
|
-
|
|
1756
|
-
this._objectStore?.createIndex(l, l, { unique: !0 }),
|
|
184
|
+
s.forEach((l) => {
|
|
185
|
+
this._objectStore?.createIndex(l, l, { unique: !0 }), E.log(`"${l}" index created`);
|
|
1757
186
|
});
|
|
1758
|
-
}, c = () => this.onError(
|
|
1759
|
-
this.requestEventsHandler(
|
|
187
|
+
}, c = () => this.onError(n.error);
|
|
188
|
+
this.requestEventsHandler(n, { error: c, success: i });
|
|
1760
189
|
}
|
|
1761
190
|
}
|
|
1762
|
-
},
|
|
1763
|
-
this.open({ success:
|
|
191
|
+
}, o = this.createObjectStore;
|
|
192
|
+
this.open({ success: r, upgrade: o });
|
|
1764
193
|
}
|
|
1765
|
-
updateItem(
|
|
1766
|
-
const
|
|
194
|
+
updateItem(e) {
|
|
195
|
+
const s = () => {
|
|
1767
196
|
if (this._objectStore) {
|
|
1768
|
-
const
|
|
1769
|
-
|
|
197
|
+
const r = this._objectStore.put(e);
|
|
198
|
+
r.onerror = () => E.error("update item", [r.error, e]);
|
|
1770
199
|
}
|
|
1771
200
|
};
|
|
1772
|
-
this.open({ success:
|
|
201
|
+
this.open({ success: s });
|
|
1773
202
|
}
|
|
1774
203
|
};
|
|
1775
|
-
class
|
|
204
|
+
class X {
|
|
1776
205
|
_db;
|
|
1777
206
|
_db_options;
|
|
1778
207
|
get dbName() {
|
|
1779
208
|
return this._db_options.name;
|
|
1780
209
|
}
|
|
1781
|
-
constructor(
|
|
1782
|
-
if (!
|
|
210
|
+
constructor(e) {
|
|
211
|
+
if (!e)
|
|
1783
212
|
throw new Error("DbOptions is required");
|
|
1784
|
-
this._db_options =
|
|
213
|
+
this._db_options = e, this._db = this.defineDb();
|
|
1785
214
|
}
|
|
1786
215
|
defineDb() {
|
|
1787
|
-
const { keyPath:
|
|
1788
|
-
return
|
|
216
|
+
const { keyPath: e, name: s } = this._db_options;
|
|
217
|
+
return s === "localStorage" || s === "sessionStorage" ? new Te(s) : new re(s, { keyPath: e });
|
|
1789
218
|
}
|
|
1790
|
-
getItem(
|
|
1791
|
-
return new Promise((
|
|
219
|
+
getItem(e) {
|
|
220
|
+
return new Promise((s, r) => {
|
|
1792
221
|
try {
|
|
1793
|
-
return this._db.getItem(
|
|
1794
|
-
} catch (
|
|
1795
|
-
|
|
222
|
+
return this._db.getItem(e).then((o) => s(o));
|
|
223
|
+
} catch (o) {
|
|
224
|
+
r(o);
|
|
1796
225
|
}
|
|
1797
226
|
});
|
|
1798
227
|
}
|
|
1799
|
-
removeItem(
|
|
1800
|
-
this._db.removeItem(
|
|
228
|
+
removeItem(e) {
|
|
229
|
+
this._db.removeItem(e);
|
|
1801
230
|
}
|
|
1802
|
-
setItem(
|
|
1803
|
-
if (this._db instanceof
|
|
231
|
+
setItem(e, s) {
|
|
232
|
+
if (this._db instanceof re)
|
|
1804
233
|
try {
|
|
1805
|
-
this._db.getItem(
|
|
1806
|
-
|
|
234
|
+
this._db.getItem(e).then((r) => {
|
|
235
|
+
r ? this._db.updateItem(r) : this._db.setItem({ storeName: e, ...s });
|
|
1807
236
|
});
|
|
1808
|
-
} catch (
|
|
1809
|
-
|
|
237
|
+
} catch (r) {
|
|
238
|
+
E.error("Persister - setItem Error", r), this._db.setItem({ storename: e, ...s });
|
|
1810
239
|
}
|
|
1811
240
|
else
|
|
1812
|
-
this._db.setItem(
|
|
241
|
+
this._db.setItem(s, e);
|
|
1813
242
|
}
|
|
1814
243
|
}
|
|
1815
|
-
class
|
|
244
|
+
class Re {
|
|
1816
245
|
_store = /* @__PURE__ */ new Map();
|
|
1817
246
|
clear() {
|
|
1818
247
|
this._store.clear();
|
|
1819
248
|
}
|
|
1820
|
-
keyToString(
|
|
1821
|
-
return typeof
|
|
249
|
+
keyToString(e) {
|
|
250
|
+
return typeof e == "number" ? e.toString() : e;
|
|
1822
251
|
}
|
|
1823
|
-
async getItem(
|
|
1824
|
-
return this._store.get(this.keyToString(
|
|
252
|
+
async getItem(e) {
|
|
253
|
+
return this._store.get(this.keyToString(e));
|
|
1825
254
|
}
|
|
1826
|
-
removeItem(
|
|
1827
|
-
this._store.delete(this.keyToString(
|
|
255
|
+
removeItem(e) {
|
|
256
|
+
this._store.delete(this.keyToString(e));
|
|
1828
257
|
}
|
|
1829
|
-
removeItems(
|
|
1830
|
-
if (
|
|
1831
|
-
for (const
|
|
1832
|
-
|
|
258
|
+
removeItems(e) {
|
|
259
|
+
if (e)
|
|
260
|
+
for (const s of this._store.keys())
|
|
261
|
+
e.includes(s) || this._store.delete(s);
|
|
1833
262
|
else
|
|
1834
263
|
this._store.clear();
|
|
1835
264
|
}
|
|
1836
|
-
setItem(
|
|
1837
|
-
this._store.set(
|
|
265
|
+
setItem(e, s) {
|
|
266
|
+
this._store.set(s, e);
|
|
1838
267
|
}
|
|
1839
268
|
}
|
|
1840
|
-
let
|
|
1841
|
-
const
|
|
1842
|
-
clear: () =>
|
|
1843
|
-
getItem: async (
|
|
1844
|
-
removeItem: (
|
|
1845
|
-
removeItems: (
|
|
1846
|
-
setItem: (
|
|
1847
|
-
|
|
269
|
+
let O = {};
|
|
270
|
+
const xe = {
|
|
271
|
+
clear: () => O = {},
|
|
272
|
+
getItem: async (t) => new Promise((e) => e(O[t])),
|
|
273
|
+
removeItem: (t) => delete O[t],
|
|
274
|
+
removeItems: (t) => t ? t.forEach((e) => delete O[e]) : O = {},
|
|
275
|
+
setItem: (t, e) => {
|
|
276
|
+
O[e] = t;
|
|
1848
277
|
}
|
|
1849
278
|
};
|
|
1850
|
-
class
|
|
279
|
+
class je extends X {
|
|
1851
280
|
defineDb() {
|
|
1852
|
-
return this.dbName === "localStorage" || this.dbName === "sessionStorage" ?
|
|
281
|
+
return this.dbName === "localStorage" || this.dbName === "sessionStorage" ? xe : new Re();
|
|
1853
282
|
}
|
|
1854
283
|
}
|
|
1855
|
-
class
|
|
284
|
+
class x {
|
|
1856
285
|
_encoder = new TextEncoder();
|
|
1857
286
|
_key;
|
|
1858
287
|
_materialKey;
|
|
1859
288
|
static DECRYPT = "decrypt";
|
|
1860
289
|
static ENCRYPT = "encrypt";
|
|
1861
|
-
constructor(
|
|
1862
|
-
this._key =
|
|
290
|
+
constructor(e) {
|
|
291
|
+
this._key = e;
|
|
1863
292
|
}
|
|
1864
|
-
async getKey(
|
|
293
|
+
async getKey(e) {
|
|
1865
294
|
return await crypto.subtle.deriveKey(
|
|
1866
295
|
{
|
|
1867
296
|
name: "PBKDF2",
|
|
@@ -1872,13 +301,13 @@ class ie {
|
|
|
1872
301
|
this._materialKey,
|
|
1873
302
|
{ name: "AES-GCM", length: 256 },
|
|
1874
303
|
!1,
|
|
1875
|
-
[
|
|
304
|
+
[e]
|
|
1876
305
|
);
|
|
1877
306
|
}
|
|
1878
|
-
async setKeyMaterial(
|
|
307
|
+
async setKeyMaterial(e) {
|
|
1879
308
|
this._materialKey = await crypto.subtle.importKey(
|
|
1880
309
|
"raw",
|
|
1881
|
-
this._encoder.encode(
|
|
310
|
+
this._encoder.encode(e),
|
|
1882
311
|
{ name: "PBKDF2" },
|
|
1883
312
|
!1,
|
|
1884
313
|
["deriveKey"]
|
|
@@ -1889,191 +318,191 @@ class ie {
|
|
|
1889
318
|
* @param {string} item - encrypted string
|
|
1890
319
|
* @returns {string} decrypted item
|
|
1891
320
|
*/
|
|
1892
|
-
async decrypt(
|
|
1893
|
-
const [
|
|
321
|
+
async decrypt(e) {
|
|
322
|
+
const [s, r] = e.split(":"), o = await crypto.subtle.decrypt(
|
|
1894
323
|
{
|
|
1895
324
|
name: "AES-GCM",
|
|
1896
|
-
iv: Uint8Array.from(atob(
|
|
325
|
+
iv: Uint8Array.from(atob(s), (n) => n.charCodeAt(0))
|
|
1897
326
|
},
|
|
1898
|
-
await this.getKey(
|
|
1899
|
-
Uint8Array.from(atob(
|
|
327
|
+
await this.getKey(x.DECRYPT),
|
|
328
|
+
Uint8Array.from(atob(r), (n) => n.charCodeAt(0))
|
|
1900
329
|
);
|
|
1901
|
-
return new TextDecoder().decode(
|
|
330
|
+
return new TextDecoder().decode(o);
|
|
1902
331
|
}
|
|
1903
332
|
/**
|
|
1904
333
|
* Encrypt string passed in parameter
|
|
1905
334
|
* @param {string} item
|
|
1906
335
|
* @returns {Promise<string>} encrypted item
|
|
1907
336
|
*/
|
|
1908
|
-
async encrypt(
|
|
1909
|
-
const
|
|
337
|
+
async encrypt(e) {
|
|
338
|
+
const s = crypto.getRandomValues(new Uint8Array(12)), r = await crypto.subtle.encrypt(
|
|
1910
339
|
{
|
|
1911
340
|
name: "AES-GCM",
|
|
1912
|
-
iv:
|
|
341
|
+
iv: s
|
|
1913
342
|
},
|
|
1914
|
-
await this.getKey(
|
|
1915
|
-
this._encoder.encode(
|
|
343
|
+
await this.getKey(x.ENCRYPT),
|
|
344
|
+
this._encoder.encode(e)
|
|
1916
345
|
);
|
|
1917
|
-
return btoa(String.fromCharCode(...new Uint8Array(
|
|
346
|
+
return btoa(String.fromCharCode(...new Uint8Array(s))) + ":" + btoa(String.fromCharCode(...new Uint8Array(r)));
|
|
1918
347
|
}
|
|
1919
348
|
async init() {
|
|
1920
349
|
this._materialKey || await this.setKeyMaterial(this._key);
|
|
1921
350
|
}
|
|
1922
351
|
}
|
|
1923
|
-
const
|
|
352
|
+
const J = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
1924
353
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1925
|
-
const
|
|
1926
|
-
},
|
|
1927
|
-
(
|
|
1928
|
-
let
|
|
1929
|
-
const
|
|
1930
|
-
function
|
|
1931
|
-
if (
|
|
1932
|
-
const
|
|
1933
|
-
for (let
|
|
1934
|
-
const
|
|
1935
|
-
if (
|
|
1936
|
-
for (const
|
|
1937
|
-
|
|
354
|
+
const ae = () => {
|
|
355
|
+
}, ve = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
|
|
356
|
+
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), ke = (t) => t.startsWith("onUpdate:"), H = Object.assign, m = Array.isArray, P = (t) => typeof t == "function", b = (t) => typeof t == "string", $e = (t) => typeof t == "symbol", w = (t) => t !== null && typeof t == "object";
|
|
357
|
+
let oe;
|
|
358
|
+
const L = () => oe || (oe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
359
|
+
function Z(t) {
|
|
360
|
+
if (m(t)) {
|
|
361
|
+
const e = {};
|
|
362
|
+
for (let s = 0; s < t.length; s++) {
|
|
363
|
+
const r = t[s], o = b(r) ? Ke(r) : Z(r);
|
|
364
|
+
if (o)
|
|
365
|
+
for (const n in o)
|
|
366
|
+
e[n] = o[n];
|
|
1938
367
|
}
|
|
1939
|
-
return t;
|
|
1940
|
-
} else if ($(e) || F(e))
|
|
1941
368
|
return e;
|
|
369
|
+
} else if (b(t) || w(t))
|
|
370
|
+
return t;
|
|
1942
371
|
}
|
|
1943
|
-
const
|
|
1944
|
-
function
|
|
1945
|
-
const
|
|
1946
|
-
return
|
|
1947
|
-
if (
|
|
1948
|
-
const
|
|
1949
|
-
|
|
372
|
+
const Me = /;(?![^(]*\))/g, Ae = /:([^]+)/, Fe = /\/\*[^]*?\*\//g;
|
|
373
|
+
function Ke(t) {
|
|
374
|
+
const e = {};
|
|
375
|
+
return t.replace(Fe, "").split(Me).forEach((s) => {
|
|
376
|
+
if (s) {
|
|
377
|
+
const r = s.split(Ae);
|
|
378
|
+
r.length > 1 && (e[r[0].trim()] = r[1].trim());
|
|
1950
379
|
}
|
|
1951
|
-
}),
|
|
1952
|
-
}
|
|
1953
|
-
function
|
|
1954
|
-
let
|
|
1955
|
-
if (
|
|
1956
|
-
|
|
1957
|
-
else if (
|
|
1958
|
-
for (let
|
|
1959
|
-
const
|
|
1960
|
-
|
|
380
|
+
}), e;
|
|
381
|
+
}
|
|
382
|
+
function ee(t) {
|
|
383
|
+
let e = "";
|
|
384
|
+
if (b(t))
|
|
385
|
+
e = t;
|
|
386
|
+
else if (m(t))
|
|
387
|
+
for (let s = 0; s < t.length; s++) {
|
|
388
|
+
const r = ee(t[s]);
|
|
389
|
+
r && (e += r + " ");
|
|
1961
390
|
}
|
|
1962
|
-
else if (
|
|
1963
|
-
for (const
|
|
1964
|
-
|
|
1965
|
-
return
|
|
391
|
+
else if (w(t))
|
|
392
|
+
for (const s in t)
|
|
393
|
+
t[s] && (e += s + " ");
|
|
394
|
+
return e.trim();
|
|
1966
395
|
}
|
|
1967
396
|
process.env.NODE_ENV;
|
|
1968
397
|
process.env.NODE_ENV;
|
|
1969
398
|
process.env.NODE_ENV;
|
|
1970
399
|
new Set(
|
|
1971
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((
|
|
400
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter($e)
|
|
1972
401
|
);
|
|
1973
402
|
// @__NO_SIDE_EFFECTS__
|
|
1974
|
-
function
|
|
1975
|
-
return /* @__PURE__ */
|
|
403
|
+
function le(t) {
|
|
404
|
+
return /* @__PURE__ */ Y(t) ? /* @__PURE__ */ le(t.__v_raw) : !!(t && t.__v_isReactive);
|
|
1976
405
|
}
|
|
1977
406
|
// @__NO_SIDE_EFFECTS__
|
|
1978
|
-
function
|
|
1979
|
-
return !!(
|
|
407
|
+
function Y(t) {
|
|
408
|
+
return !!(t && t.__v_isReadonly);
|
|
1980
409
|
}
|
|
1981
410
|
// @__NO_SIDE_EFFECTS__
|
|
1982
|
-
function
|
|
1983
|
-
return !!(
|
|
411
|
+
function B(t) {
|
|
412
|
+
return !!(t && t.__v_isShallow);
|
|
1984
413
|
}
|
|
1985
414
|
// @__NO_SIDE_EFFECTS__
|
|
1986
|
-
function
|
|
1987
|
-
return
|
|
415
|
+
function G(t) {
|
|
416
|
+
return t ? !!t.__v_raw : !1;
|
|
1988
417
|
}
|
|
1989
418
|
// @__NO_SIDE_EFFECTS__
|
|
1990
|
-
function
|
|
1991
|
-
const
|
|
1992
|
-
return
|
|
419
|
+
function S(t) {
|
|
420
|
+
const e = t && t.__v_raw;
|
|
421
|
+
return e ? /* @__PURE__ */ S(e) : t;
|
|
1993
422
|
}
|
|
1994
423
|
// @__NO_SIDE_EFFECTS__
|
|
1995
|
-
function
|
|
1996
|
-
return
|
|
1997
|
-
}
|
|
1998
|
-
const
|
|
1999
|
-
function
|
|
2000
|
-
|
|
2001
|
-
}
|
|
2002
|
-
function
|
|
2003
|
-
|
|
2004
|
-
}
|
|
2005
|
-
let
|
|
2006
|
-
function
|
|
2007
|
-
if (
|
|
2008
|
-
|
|
2009
|
-
const
|
|
2010
|
-
if (
|
|
2011
|
-
|
|
424
|
+
function te(t) {
|
|
425
|
+
return t ? t.__v_isRef === !0 : !1;
|
|
426
|
+
}
|
|
427
|
+
const N = [];
|
|
428
|
+
function qe(t) {
|
|
429
|
+
N.push(t);
|
|
430
|
+
}
|
|
431
|
+
function He() {
|
|
432
|
+
N.pop();
|
|
433
|
+
}
|
|
434
|
+
let U = !1;
|
|
435
|
+
function T(t, ...e) {
|
|
436
|
+
if (U) return;
|
|
437
|
+
U = !0;
|
|
438
|
+
const s = N.length ? N[N.length - 1].component : null, r = s && s.appContext.config.warnHandler, o = Le();
|
|
439
|
+
if (r)
|
|
440
|
+
se(
|
|
441
|
+
r,
|
|
2012
442
|
s,
|
|
2013
|
-
n,
|
|
2014
443
|
11,
|
|
2015
444
|
[
|
|
2016
445
|
// eslint-disable-next-line no-restricted-syntax
|
|
2017
|
-
|
|
446
|
+
t + e.map((n) => {
|
|
2018
447
|
var i, c;
|
|
2019
|
-
return (c = (i =
|
|
448
|
+
return (c = (i = n.toString) == null ? void 0 : i.call(n)) != null ? c : JSON.stringify(n);
|
|
2020
449
|
}).join(""),
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
({ vnode:
|
|
450
|
+
s && s.proxy,
|
|
451
|
+
o.map(
|
|
452
|
+
({ vnode: n }) => `at <${Pe(s, n.type)}>`
|
|
2024
453
|
).join(`
|
|
2025
454
|
`),
|
|
2026
|
-
|
|
455
|
+
o
|
|
2027
456
|
]
|
|
2028
457
|
);
|
|
2029
458
|
else {
|
|
2030
|
-
const
|
|
2031
|
-
|
|
2032
|
-
`, ...
|
|
459
|
+
const n = [`[Vue warn]: ${t}`, ...e];
|
|
460
|
+
o.length && n.push(`
|
|
461
|
+
`, ...Be(o)), console.warn(...n);
|
|
2033
462
|
}
|
|
2034
|
-
|
|
463
|
+
U = !1;
|
|
2035
464
|
}
|
|
2036
|
-
function
|
|
2037
|
-
let
|
|
2038
|
-
if (!
|
|
465
|
+
function Le() {
|
|
466
|
+
let t = N[N.length - 1];
|
|
467
|
+
if (!t)
|
|
2039
468
|
return [];
|
|
2040
|
-
const
|
|
2041
|
-
for (;
|
|
2042
|
-
const
|
|
2043
|
-
|
|
2044
|
-
vnode:
|
|
469
|
+
const e = [];
|
|
470
|
+
for (; t; ) {
|
|
471
|
+
const s = e[0];
|
|
472
|
+
s && s.vnode === t ? s.recurseCount++ : e.push({
|
|
473
|
+
vnode: t,
|
|
2045
474
|
recurseCount: 0
|
|
2046
475
|
});
|
|
2047
|
-
const
|
|
2048
|
-
|
|
2049
|
-
}
|
|
2050
|
-
return
|
|
2051
|
-
}
|
|
2052
|
-
function
|
|
2053
|
-
const
|
|
2054
|
-
return
|
|
2055
|
-
|
|
2056
|
-
`], ...
|
|
2057
|
-
}),
|
|
2058
|
-
}
|
|
2059
|
-
function
|
|
2060
|
-
const
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
)}`,
|
|
2065
|
-
return
|
|
2066
|
-
}
|
|
2067
|
-
function
|
|
2068
|
-
const
|
|
2069
|
-
return
|
|
2070
|
-
|
|
2071
|
-
}),
|
|
2072
|
-
}
|
|
2073
|
-
function
|
|
2074
|
-
return
|
|
2075
|
-
}
|
|
2076
|
-
const
|
|
476
|
+
const r = t.component && t.component.parent;
|
|
477
|
+
t = r && r.vnode;
|
|
478
|
+
}
|
|
479
|
+
return e;
|
|
480
|
+
}
|
|
481
|
+
function Be(t) {
|
|
482
|
+
const e = [];
|
|
483
|
+
return t.forEach((s, r) => {
|
|
484
|
+
e.push(...r === 0 ? [] : [`
|
|
485
|
+
`], ...Ue(s));
|
|
486
|
+
}), e;
|
|
487
|
+
}
|
|
488
|
+
function Ue({ vnode: t, recurseCount: e }) {
|
|
489
|
+
const s = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, o = ` at <${Pe(
|
|
490
|
+
t.component,
|
|
491
|
+
t.type,
|
|
492
|
+
r
|
|
493
|
+
)}`, n = ">" + s;
|
|
494
|
+
return t.props ? [o, ...We(t.props), n] : [o + n];
|
|
495
|
+
}
|
|
496
|
+
function We(t) {
|
|
497
|
+
const e = [], s = Object.keys(t);
|
|
498
|
+
return s.slice(0, 3).forEach((r) => {
|
|
499
|
+
e.push(...ue(r, t[r]));
|
|
500
|
+
}), s.length > 3 && e.push(" ..."), e;
|
|
501
|
+
}
|
|
502
|
+
function ue(t, e, s) {
|
|
503
|
+
return b(e) ? (e = JSON.stringify(e), s ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? s ? e : [`${t}=${e}`] : /* @__PURE__ */ te(e) ? (e = ue(t, /* @__PURE__ */ S(e.value), !0), s ? e : [`${t}=Ref<`, e, ">"]) : P(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ S(e), s ? e : [`${t}=`, e]);
|
|
504
|
+
}
|
|
505
|
+
const fe = {
|
|
2077
506
|
sp: "serverPrefetch hook",
|
|
2078
507
|
bc: "beforeCreate hook",
|
|
2079
508
|
c: "created hook",
|
|
@@ -2106,232 +535,232 @@ const Bt = {
|
|
|
2106
535
|
15: "component update",
|
|
2107
536
|
16: "app unmount cleanup function"
|
|
2108
537
|
};
|
|
2109
|
-
function
|
|
538
|
+
function se(t, e, s, r) {
|
|
2110
539
|
try {
|
|
2111
|
-
return
|
|
2112
|
-
} catch (
|
|
2113
|
-
|
|
540
|
+
return r ? t(...r) : t();
|
|
541
|
+
} catch (o) {
|
|
542
|
+
de(o, e, s);
|
|
2114
543
|
}
|
|
2115
544
|
}
|
|
2116
|
-
function
|
|
2117
|
-
const
|
|
2118
|
-
if (
|
|
2119
|
-
let c =
|
|
2120
|
-
const l =
|
|
545
|
+
function de(t, e, s, r = !0) {
|
|
546
|
+
const o = e ? e.vnode : null, { errorHandler: n, throwUnhandledErrorInProduction: i } = e && e.appContext.config || J;
|
|
547
|
+
if (e) {
|
|
548
|
+
let c = e.parent;
|
|
549
|
+
const l = e.proxy, f = process.env.NODE_ENV !== "production" ? fe[s] : `https://vuejs.org/error-reference/#runtime-${s}`;
|
|
2121
550
|
for (; c; ) {
|
|
2122
|
-
const
|
|
2123
|
-
if (
|
|
2124
|
-
for (let a = 0; a <
|
|
2125
|
-
if (
|
|
551
|
+
const _ = c.ec;
|
|
552
|
+
if (_) {
|
|
553
|
+
for (let a = 0; a < _.length; a++)
|
|
554
|
+
if (_[a](t, l, f) === !1)
|
|
2126
555
|
return;
|
|
2127
556
|
}
|
|
2128
557
|
c = c.parent;
|
|
2129
558
|
}
|
|
2130
|
-
if (
|
|
2131
|
-
|
|
2132
|
-
|
|
559
|
+
if (n) {
|
|
560
|
+
se(n, null, 10, [
|
|
561
|
+
t,
|
|
2133
562
|
l,
|
|
2134
563
|
f
|
|
2135
564
|
]);
|
|
2136
565
|
return;
|
|
2137
566
|
}
|
|
2138
567
|
}
|
|
2139
|
-
|
|
568
|
+
ze(t, s, o, r, i);
|
|
2140
569
|
}
|
|
2141
|
-
function
|
|
570
|
+
function ze(t, e, s, r = !0, o = !1) {
|
|
2142
571
|
if (process.env.NODE_ENV !== "production") {
|
|
2143
|
-
const
|
|
2144
|
-
if (
|
|
2145
|
-
throw
|
|
2146
|
-
console.error(
|
|
572
|
+
const n = fe[e];
|
|
573
|
+
if (s && qe(s), T(`Unhandled error${n ? ` during execution of ${n}` : ""}`), s && He(), r)
|
|
574
|
+
throw t;
|
|
575
|
+
console.error(t);
|
|
2147
576
|
} else {
|
|
2148
|
-
if (
|
|
2149
|
-
throw
|
|
2150
|
-
console.error(
|
|
2151
|
-
}
|
|
2152
|
-
}
|
|
2153
|
-
const
|
|
2154
|
-
let
|
|
2155
|
-
const
|
|
2156
|
-
let
|
|
2157
|
-
const
|
|
2158
|
-
let
|
|
2159
|
-
const
|
|
2160
|
-
function
|
|
2161
|
-
let
|
|
2162
|
-
for (;
|
|
2163
|
-
const
|
|
2164
|
-
|
|
2165
|
-
}
|
|
2166
|
-
return
|
|
2167
|
-
}
|
|
2168
|
-
function
|
|
2169
|
-
if (!(
|
|
2170
|
-
const
|
|
2171
|
-
!
|
|
2172
|
-
!(
|
|
2173
|
-
}
|
|
2174
|
-
}
|
|
2175
|
-
function
|
|
2176
|
-
|
|
2177
|
-
}
|
|
2178
|
-
function
|
|
2179
|
-
|
|
2180
|
-
}
|
|
2181
|
-
function
|
|
2182
|
-
if (
|
|
2183
|
-
const
|
|
2184
|
-
(
|
|
577
|
+
if (o)
|
|
578
|
+
throw t;
|
|
579
|
+
console.error(t);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
const h = [];
|
|
583
|
+
let g = -1;
|
|
584
|
+
const V = [];
|
|
585
|
+
let y = null, I = 0;
|
|
586
|
+
const Je = /* @__PURE__ */ Promise.resolve();
|
|
587
|
+
let Q = null;
|
|
588
|
+
const Ye = 100;
|
|
589
|
+
function Ge(t) {
|
|
590
|
+
let e = g + 1, s = h.length;
|
|
591
|
+
for (; e < s; ) {
|
|
592
|
+
const r = e + s >>> 1, o = h[r], n = j(o);
|
|
593
|
+
n < t || n === t && o.flags & 2 ? e = r + 1 : s = r;
|
|
594
|
+
}
|
|
595
|
+
return e;
|
|
596
|
+
}
|
|
597
|
+
function Qe(t) {
|
|
598
|
+
if (!(t.flags & 1)) {
|
|
599
|
+
const e = j(t), s = h[h.length - 1];
|
|
600
|
+
!s || // fast path when the job id is larger than the tail
|
|
601
|
+
!(t.flags & 2) && e >= j(s) ? h.push(t) : h.splice(Ge(e), 0, t), t.flags |= 1, he();
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
function he() {
|
|
605
|
+
Q || (Q = Je.then(pe));
|
|
606
|
+
}
|
|
607
|
+
function Xe(t) {
|
|
608
|
+
m(t) ? V.push(...t) : y && t.id === -1 ? y.splice(I + 1, 0, t) : t.flags & 1 || (V.push(t), t.flags |= 1), he();
|
|
609
|
+
}
|
|
610
|
+
function Ze(t) {
|
|
611
|
+
if (V.length) {
|
|
612
|
+
const e = [...new Set(V)].sort(
|
|
613
|
+
(s, r) => j(s) - j(r)
|
|
2185
614
|
);
|
|
2186
|
-
if (
|
|
2187
|
-
|
|
615
|
+
if (V.length = 0, y) {
|
|
616
|
+
y.push(...e);
|
|
2188
617
|
return;
|
|
2189
618
|
}
|
|
2190
|
-
for (
|
|
2191
|
-
const
|
|
2192
|
-
process.env.NODE_ENV !== "production" &&
|
|
619
|
+
for (y = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), I = 0; I < y.length; I++) {
|
|
620
|
+
const s = y[I];
|
|
621
|
+
process.env.NODE_ENV !== "production" && me(t, s) || (s.flags & 4 && (s.flags &= -2), s.flags & 8 || s(), s.flags &= -2);
|
|
2193
622
|
}
|
|
2194
|
-
|
|
623
|
+
y = null, I = 0;
|
|
2195
624
|
}
|
|
2196
625
|
}
|
|
2197
|
-
const
|
|
2198
|
-
function
|
|
2199
|
-
process.env.NODE_ENV !== "production" && (
|
|
2200
|
-
const
|
|
626
|
+
const j = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
|
|
627
|
+
function pe(t) {
|
|
628
|
+
process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
|
|
629
|
+
const e = process.env.NODE_ENV !== "production" ? (s) => me(t, s) : ae;
|
|
2201
630
|
try {
|
|
2202
|
-
for (
|
|
2203
|
-
const
|
|
2204
|
-
if (
|
|
2205
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
631
|
+
for (g = 0; g < h.length; g++) {
|
|
632
|
+
const s = h[g];
|
|
633
|
+
if (s && !(s.flags & 8)) {
|
|
634
|
+
if (process.env.NODE_ENV !== "production" && e(s))
|
|
2206
635
|
continue;
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
),
|
|
636
|
+
s.flags & 4 && (s.flags &= -2), se(
|
|
637
|
+
s,
|
|
638
|
+
s.i,
|
|
639
|
+
s.i ? 15 : 14
|
|
640
|
+
), s.flags & 4 || (s.flags &= -2);
|
|
2212
641
|
}
|
|
2213
642
|
}
|
|
2214
643
|
} finally {
|
|
2215
|
-
for (;
|
|
2216
|
-
const
|
|
2217
|
-
|
|
644
|
+
for (; g < h.length; g++) {
|
|
645
|
+
const s = h[g];
|
|
646
|
+
s && (s.flags &= -2);
|
|
2218
647
|
}
|
|
2219
|
-
|
|
648
|
+
g = -1, h.length = 0, Ze(t), Q = null, (h.length || V.length) && pe(t);
|
|
2220
649
|
}
|
|
2221
650
|
}
|
|
2222
|
-
function
|
|
2223
|
-
const
|
|
2224
|
-
if (
|
|
2225
|
-
const
|
|
2226
|
-
return
|
|
2227
|
-
`Maximum recursive updates exceeded${
|
|
651
|
+
function me(t, e) {
|
|
652
|
+
const s = t.get(e) || 0;
|
|
653
|
+
if (s > Ye) {
|
|
654
|
+
const r = e.i, o = r && Ne(r.type);
|
|
655
|
+
return de(
|
|
656
|
+
`Maximum recursive updates exceeded${o ? ` in component <${o}>` : ""}. 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.`,
|
|
2228
657
|
null,
|
|
2229
658
|
10
|
|
2230
659
|
), !0;
|
|
2231
660
|
}
|
|
2232
|
-
return
|
|
661
|
+
return t.set(e, s + 1), !1;
|
|
2233
662
|
}
|
|
2234
|
-
const
|
|
2235
|
-
process.env.NODE_ENV !== "production" && (
|
|
2236
|
-
createRecord:
|
|
2237
|
-
rerender:
|
|
2238
|
-
reload:
|
|
663
|
+
const W = /* @__PURE__ */ new Map();
|
|
664
|
+
process.env.NODE_ENV !== "production" && (L().__VUE_HMR_RUNTIME__ = {
|
|
665
|
+
createRecord: z(et),
|
|
666
|
+
rerender: z(tt),
|
|
667
|
+
reload: z(st)
|
|
2239
668
|
});
|
|
2240
|
-
const
|
|
2241
|
-
function
|
|
2242
|
-
return
|
|
2243
|
-
initialDef:
|
|
669
|
+
const $ = /* @__PURE__ */ new Map();
|
|
670
|
+
function et(t, e) {
|
|
671
|
+
return $.has(t) ? !1 : ($.set(t, {
|
|
672
|
+
initialDef: M(e),
|
|
2244
673
|
instances: /* @__PURE__ */ new Set()
|
|
2245
674
|
}), !0);
|
|
2246
675
|
}
|
|
2247
|
-
function
|
|
2248
|
-
return
|
|
676
|
+
function M(t) {
|
|
677
|
+
return Oe(t) ? t.__vccOpts : t;
|
|
2249
678
|
}
|
|
2250
|
-
function
|
|
2251
|
-
const
|
|
2252
|
-
|
|
2253
|
-
|
|
679
|
+
function tt(t, e) {
|
|
680
|
+
const s = $.get(t);
|
|
681
|
+
s && (s.initialDef.render = e, [...s.instances].forEach((r) => {
|
|
682
|
+
e && (r.render = e, M(r.type).render = e), r.renderCache = [], r.job.flags & 8 || r.update();
|
|
2254
683
|
}));
|
|
2255
684
|
}
|
|
2256
|
-
function
|
|
2257
|
-
const
|
|
2258
|
-
if (!
|
|
2259
|
-
|
|
2260
|
-
const
|
|
2261
|
-
for (let
|
|
2262
|
-
const
|
|
2263
|
-
let c =
|
|
2264
|
-
c || (i !==
|
|
2265
|
-
|
|
2266
|
-
}) :
|
|
685
|
+
function st(t, e) {
|
|
686
|
+
const s = $.get(t);
|
|
687
|
+
if (!s) return;
|
|
688
|
+
e = M(e), ne(s.initialDef, e);
|
|
689
|
+
const r = [...s.instances];
|
|
690
|
+
for (let o = 0; o < r.length; o++) {
|
|
691
|
+
const n = r[o], i = M(n.type);
|
|
692
|
+
let c = W.get(i);
|
|
693
|
+
c || (i !== s.initialDef && ne(i, e), W.set(i, c = /* @__PURE__ */ new Set())), c.add(n), n.appContext.propsCache.delete(n.type), n.appContext.emitsCache.delete(n.type), n.appContext.optionsCache.delete(n.type), n.ceReload ? (c.add(n), n.ceReload(e.styles), c.delete(n)) : n.parent ? Qe(() => {
|
|
694
|
+
n.job.flags & 8 || (n.parent.update(), c.delete(n));
|
|
695
|
+
}) : n.appContext.reload ? n.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
2267
696
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
2268
|
-
),
|
|
697
|
+
), n.root.ce && n !== n.root && n.root.ce._removeChildStyle(i);
|
|
2269
698
|
}
|
|
2270
|
-
|
|
2271
|
-
|
|
699
|
+
Xe(() => {
|
|
700
|
+
W.clear();
|
|
2272
701
|
});
|
|
2273
702
|
}
|
|
2274
|
-
function
|
|
2275
|
-
|
|
2276
|
-
for (const
|
|
2277
|
-
|
|
703
|
+
function ne(t, e) {
|
|
704
|
+
H(t, e);
|
|
705
|
+
for (const s in t)
|
|
706
|
+
s !== "__file" && !(s in e) && delete t[s];
|
|
2278
707
|
}
|
|
2279
|
-
function
|
|
2280
|
-
return (
|
|
708
|
+
function z(t) {
|
|
709
|
+
return (e, s) => {
|
|
2281
710
|
try {
|
|
2282
|
-
return e
|
|
2283
|
-
} catch (
|
|
2284
|
-
console.error(
|
|
711
|
+
return t(e, s);
|
|
712
|
+
} catch (r) {
|
|
713
|
+
console.error(r), console.warn(
|
|
2285
714
|
"[HMR] Something went wrong during Vue component hot-reload. Full reload required."
|
|
2286
715
|
);
|
|
2287
716
|
}
|
|
2288
717
|
};
|
|
2289
718
|
}
|
|
2290
|
-
let
|
|
2291
|
-
function
|
|
2292
|
-
var
|
|
2293
|
-
|
|
719
|
+
let C, v = [];
|
|
720
|
+
function _e(t, e) {
|
|
721
|
+
var s, r;
|
|
722
|
+
C = t, C ? (C.enabled = !0, v.forEach(({ event: o, args: n }) => C.emit(o, ...n)), v = []) : /* 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
|
|
2294
723
|
window.HTMLElement && // also exclude jsdom
|
|
2295
724
|
// eslint-disable-next-line no-restricted-syntax
|
|
2296
|
-
!((
|
|
2297
|
-
|
|
725
|
+
!((r = (s = window.navigator) == null ? void 0 : s.userAgent) != null && r.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((n) => {
|
|
726
|
+
_e(n, e);
|
|
2298
727
|
}), setTimeout(() => {
|
|
2299
|
-
|
|
2300
|
-
}, 3e3)) :
|
|
2301
|
-
}
|
|
2302
|
-
let
|
|
2303
|
-
const
|
|
2304
|
-
function
|
|
2305
|
-
|
|
2306
|
-
}
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
const
|
|
2310
|
-
process.env.NODE_ENV !== "production" && (
|
|
728
|
+
C || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, v = []);
|
|
729
|
+
}, 3e3)) : v = [];
|
|
730
|
+
}
|
|
731
|
+
let A = null, rt = null;
|
|
732
|
+
const ot = (t) => t.__isTeleport;
|
|
733
|
+
function ge(t, e) {
|
|
734
|
+
t.shapeFlag & 6 && t.component ? (t.transition = e, ge(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
|
|
735
|
+
}
|
|
736
|
+
L().requestIdleCallback;
|
|
737
|
+
L().cancelIdleCallback;
|
|
738
|
+
const nt = /* @__PURE__ */ Symbol.for("v-ndc"), it = {};
|
|
739
|
+
process.env.NODE_ENV !== "production" && (it.ownKeys = (t) => (T(
|
|
2311
740
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
2312
|
-
), Reflect.ownKeys(
|
|
2313
|
-
const
|
|
2314
|
-
function
|
|
2315
|
-
return
|
|
2316
|
-
}
|
|
2317
|
-
const
|
|
2318
|
-
...
|
|
2319
|
-
),
|
|
2320
|
-
ref:
|
|
2321
|
-
ref_key:
|
|
2322
|
-
ref_for:
|
|
2323
|
-
}) => (typeof
|
|
2324
|
-
function
|
|
741
|
+
), Reflect.ownKeys(t)));
|
|
742
|
+
const ct = {}, ye = (t) => Object.getPrototypeOf(t) === ct, at = (t) => t.__isSuspense, Se = /* @__PURE__ */ Symbol.for("v-fgt"), lt = /* @__PURE__ */ Symbol.for("v-txt"), ut = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
743
|
+
function ft(t) {
|
|
744
|
+
return t ? t.__v_isVNode === !0 : !1;
|
|
745
|
+
}
|
|
746
|
+
const dt = (...t) => Ee(
|
|
747
|
+
...t
|
|
748
|
+
), be = ({ key: t }) => t ?? null, k = ({
|
|
749
|
+
ref: t,
|
|
750
|
+
ref_key: e,
|
|
751
|
+
ref_for: s
|
|
752
|
+
}) => (typeof t == "number" && (t = "" + t), t != null ? b(t) || /* @__PURE__ */ te(t) || P(t) ? { i: A, r: t, k: e, f: !!s } : t : null);
|
|
753
|
+
function ht(t, e = null, s = null, r = 0, o = null, n = t === Se ? 0 : 1, i = !1, c = !1) {
|
|
2325
754
|
const l = {
|
|
2326
755
|
__v_isVNode: !0,
|
|
2327
756
|
__v_skip: !0,
|
|
2328
|
-
type:
|
|
2329
|
-
props:
|
|
2330
|
-
key:
|
|
2331
|
-
ref:
|
|
2332
|
-
scopeId:
|
|
757
|
+
type: t,
|
|
758
|
+
props: e,
|
|
759
|
+
key: e && be(e),
|
|
760
|
+
ref: e && k(e),
|
|
761
|
+
scopeId: rt,
|
|
2333
762
|
slotScopeIds: null,
|
|
2334
|
-
children:
|
|
763
|
+
children: s,
|
|
2335
764
|
component: null,
|
|
2336
765
|
suspense: null,
|
|
2337
766
|
ssContent: null,
|
|
@@ -2344,226 +773,226 @@ function br(e, t = null, n = null, s = 0, r = null, o = e === tn ? 0 : 1, i = !1
|
|
|
2344
773
|
targetStart: null,
|
|
2345
774
|
targetAnchor: null,
|
|
2346
775
|
staticCount: 0,
|
|
2347
|
-
shapeFlag:
|
|
2348
|
-
patchFlag:
|
|
2349
|
-
dynamicProps:
|
|
776
|
+
shapeFlag: n,
|
|
777
|
+
patchFlag: r,
|
|
778
|
+
dynamicProps: o,
|
|
2350
779
|
dynamicChildren: null,
|
|
2351
780
|
appContext: null,
|
|
2352
|
-
ctx:
|
|
781
|
+
ctx: A
|
|
2353
782
|
};
|
|
2354
|
-
return c ? (
|
|
783
|
+
return c ? (K(l, s), n & 128 && t.normalize(l)) : s && (l.shapeFlag |= b(s) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && T("VNode created with invalid key (NaN). VNode type:", l.type), l;
|
|
2355
784
|
}
|
|
2356
|
-
const
|
|
2357
|
-
function
|
|
2358
|
-
if ((!
|
|
2359
|
-
const c =
|
|
2360
|
-
e,
|
|
785
|
+
const pt = process.env.NODE_ENV !== "production" ? dt : Ee;
|
|
786
|
+
function Ee(t, e = null, s = null, r = 0, o = null, n = !1) {
|
|
787
|
+
if ((!t || t === nt) && (process.env.NODE_ENV !== "production" && !t && T(`Invalid vnode type when creating vnode: ${t}.`), t = ut), ft(t)) {
|
|
788
|
+
const c = F(
|
|
2361
789
|
t,
|
|
790
|
+
e,
|
|
2362
791
|
!0
|
|
2363
792
|
/* mergeRef: true */
|
|
2364
793
|
);
|
|
2365
|
-
return
|
|
794
|
+
return s && K(c, s), c.patchFlag = -2, c;
|
|
2366
795
|
}
|
|
2367
|
-
if (
|
|
2368
|
-
|
|
2369
|
-
let { class: c, style: l } =
|
|
2370
|
-
c &&
|
|
796
|
+
if (Oe(t) && (t = t.__vccOpts), e) {
|
|
797
|
+
e = mt(e);
|
|
798
|
+
let { class: c, style: l } = e;
|
|
799
|
+
c && !b(c) && (e.class = ee(c)), w(l) && (/* @__PURE__ */ G(l) && !m(l) && (l = H({}, l)), e.style = Z(l));
|
|
2371
800
|
}
|
|
2372
|
-
const i =
|
|
2373
|
-
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */
|
|
801
|
+
const i = b(t) ? 1 : at(t) ? 128 : ot(t) ? 64 : w(t) ? 4 : P(t) ? 2 : 0;
|
|
802
|
+
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ G(t) && (t = /* @__PURE__ */ S(t), T(
|
|
2374
803
|
"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`.",
|
|
2375
804
|
`
|
|
2376
805
|
Component that was made reactive: `,
|
|
2377
|
-
|
|
2378
|
-
)),
|
|
2379
|
-
e,
|
|
806
|
+
t
|
|
807
|
+
)), ht(
|
|
2380
808
|
t,
|
|
2381
|
-
|
|
809
|
+
e,
|
|
2382
810
|
s,
|
|
2383
811
|
r,
|
|
2384
|
-
i,
|
|
2385
812
|
o,
|
|
813
|
+
i,
|
|
814
|
+
n,
|
|
2386
815
|
!0
|
|
2387
816
|
);
|
|
2388
817
|
}
|
|
2389
|
-
function
|
|
2390
|
-
return
|
|
818
|
+
function mt(t) {
|
|
819
|
+
return t ? /* @__PURE__ */ G(t) || ye(t) ? H({}, t) : t : null;
|
|
2391
820
|
}
|
|
2392
|
-
function
|
|
2393
|
-
const { props:
|
|
821
|
+
function F(t, e, s = !1, r = !1) {
|
|
822
|
+
const { props: o, ref: n, patchFlag: i, children: c, transition: l } = t, f = e ? gt(o || {}, e) : o, _ = {
|
|
2394
823
|
__v_isVNode: !0,
|
|
2395
824
|
__v_skip: !0,
|
|
2396
|
-
type:
|
|
825
|
+
type: t.type,
|
|
2397
826
|
props: f,
|
|
2398
|
-
key: f &&
|
|
2399
|
-
ref:
|
|
827
|
+
key: f && be(f),
|
|
828
|
+
ref: e && e.ref ? (
|
|
2400
829
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
2401
830
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
2402
831
|
// the refs so the single vnode can be set on multiple refs
|
|
2403
|
-
|
|
2404
|
-
) :
|
|
2405
|
-
scopeId:
|
|
2406
|
-
slotScopeIds:
|
|
2407
|
-
children: process.env.NODE_ENV !== "production" && i === -1 &&
|
|
2408
|
-
target:
|
|
2409
|
-
targetStart:
|
|
2410
|
-
targetAnchor:
|
|
2411
|
-
staticCount:
|
|
2412
|
-
shapeFlag:
|
|
832
|
+
s && n ? m(n) ? n.concat(k(e)) : [n, k(e)] : k(e)
|
|
833
|
+
) : n,
|
|
834
|
+
scopeId: t.scopeId,
|
|
835
|
+
slotScopeIds: t.slotScopeIds,
|
|
836
|
+
children: process.env.NODE_ENV !== "production" && i === -1 && m(c) ? c.map(we) : c,
|
|
837
|
+
target: t.target,
|
|
838
|
+
targetStart: t.targetStart,
|
|
839
|
+
targetAnchor: t.targetAnchor,
|
|
840
|
+
staticCount: t.staticCount,
|
|
841
|
+
shapeFlag: t.shapeFlag,
|
|
2413
842
|
// if the vnode is cloned with extra props, we can no longer assume its
|
|
2414
843
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
2415
844
|
// note: preserve flag for fragments since they use the flag for children
|
|
2416
845
|
// fast paths only.
|
|
2417
|
-
patchFlag:
|
|
2418
|
-
dynamicProps:
|
|
2419
|
-
dynamicChildren:
|
|
2420
|
-
appContext:
|
|
2421
|
-
dirs:
|
|
846
|
+
patchFlag: e && t.type !== Se ? i === -1 ? 16 : i | 16 : i,
|
|
847
|
+
dynamicProps: t.dynamicProps,
|
|
848
|
+
dynamicChildren: t.dynamicChildren,
|
|
849
|
+
appContext: t.appContext,
|
|
850
|
+
dirs: t.dirs,
|
|
2422
851
|
transition: l,
|
|
2423
852
|
// These should technically only be non-null on mounted VNodes. However,
|
|
2424
853
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
2425
854
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
2426
855
|
// they will simply be overwritten.
|
|
2427
|
-
component:
|
|
2428
|
-
suspense:
|
|
2429
|
-
ssContent:
|
|
2430
|
-
ssFallback:
|
|
2431
|
-
placeholder:
|
|
2432
|
-
el:
|
|
2433
|
-
anchor:
|
|
2434
|
-
ctx:
|
|
2435
|
-
ce:
|
|
856
|
+
component: t.component,
|
|
857
|
+
suspense: t.suspense,
|
|
858
|
+
ssContent: t.ssContent && F(t.ssContent),
|
|
859
|
+
ssFallback: t.ssFallback && F(t.ssFallback),
|
|
860
|
+
placeholder: t.placeholder,
|
|
861
|
+
el: t.el,
|
|
862
|
+
anchor: t.anchor,
|
|
863
|
+
ctx: t.ctx,
|
|
864
|
+
ce: t.ce
|
|
2436
865
|
};
|
|
2437
|
-
return l &&
|
|
2438
|
-
|
|
2439
|
-
l.clone(
|
|
2440
|
-
),
|
|
2441
|
-
}
|
|
2442
|
-
function
|
|
2443
|
-
const
|
|
2444
|
-
return
|
|
2445
|
-
}
|
|
2446
|
-
function
|
|
2447
|
-
return
|
|
2448
|
-
}
|
|
2449
|
-
function
|
|
2450
|
-
let
|
|
2451
|
-
const { shapeFlag:
|
|
2452
|
-
if (
|
|
2453
|
-
|
|
2454
|
-
else if (
|
|
2455
|
-
|
|
2456
|
-
else if (typeof
|
|
2457
|
-
if (
|
|
2458
|
-
const
|
|
2459
|
-
|
|
866
|
+
return l && r && ge(
|
|
867
|
+
_,
|
|
868
|
+
l.clone(_)
|
|
869
|
+
), _;
|
|
870
|
+
}
|
|
871
|
+
function we(t) {
|
|
872
|
+
const e = F(t);
|
|
873
|
+
return m(t.children) && (e.children = t.children.map(we)), e;
|
|
874
|
+
}
|
|
875
|
+
function _t(t = " ", e = 0) {
|
|
876
|
+
return pt(lt, null, t, e);
|
|
877
|
+
}
|
|
878
|
+
function K(t, e) {
|
|
879
|
+
let s = 0;
|
|
880
|
+
const { shapeFlag: r } = t;
|
|
881
|
+
if (e == null)
|
|
882
|
+
e = null;
|
|
883
|
+
else if (m(e))
|
|
884
|
+
s = 16;
|
|
885
|
+
else if (typeof e == "object")
|
|
886
|
+
if (r & 65) {
|
|
887
|
+
const o = e.default;
|
|
888
|
+
o && (o._c && (o._d = !1), K(t, o()), o._c && (o._d = !0));
|
|
2460
889
|
return;
|
|
2461
890
|
} else
|
|
2462
|
-
|
|
2463
|
-
else if (
|
|
2464
|
-
if (
|
|
2465
|
-
|
|
891
|
+
s = 32, !e._ && !ye(e) && (e._ctx = A);
|
|
892
|
+
else if (P(e)) {
|
|
893
|
+
if (r & 65) {
|
|
894
|
+
K(t, { default: e });
|
|
2466
895
|
return;
|
|
2467
896
|
}
|
|
2468
|
-
|
|
897
|
+
e = { default: e, _ctx: A }, s = 32;
|
|
2469
898
|
} else
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
}
|
|
2473
|
-
function
|
|
2474
|
-
const
|
|
2475
|
-
for (let
|
|
2476
|
-
const
|
|
2477
|
-
for (const
|
|
2478
|
-
if (
|
|
2479
|
-
|
|
2480
|
-
else if (
|
|
2481
|
-
|
|
2482
|
-
else if (
|
|
2483
|
-
const
|
|
2484
|
-
i &&
|
|
899
|
+
e = String(e), r & 64 ? (s = 16, e = [_t(e)]) : s = 8;
|
|
900
|
+
t.children = e, t.shapeFlag |= s;
|
|
901
|
+
}
|
|
902
|
+
function gt(...t) {
|
|
903
|
+
const e = {};
|
|
904
|
+
for (let s = 0; s < t.length; s++) {
|
|
905
|
+
const r = t[s];
|
|
906
|
+
for (const o in r)
|
|
907
|
+
if (o === "class")
|
|
908
|
+
e.class !== r.class && (e.class = ee([e.class, r.class]));
|
|
909
|
+
else if (o === "style")
|
|
910
|
+
e.style = Z([e.style, r.style]);
|
|
911
|
+
else if (ve(o)) {
|
|
912
|
+
const n = e[o], i = r[o];
|
|
913
|
+
i && n !== i && !(m(n) && n.includes(i)) ? e[o] = n ? [].concat(n, i) : i : i == null && n == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
2485
914
|
// the model listener.
|
|
2486
|
-
!
|
|
2487
|
-
} else
|
|
915
|
+
!ke(o) && (e[o] = i);
|
|
916
|
+
} else o !== "" && (e[o] = r[o]);
|
|
2488
917
|
}
|
|
2489
|
-
return
|
|
918
|
+
return e;
|
|
2490
919
|
}
|
|
2491
920
|
{
|
|
2492
|
-
const
|
|
2493
|
-
let
|
|
2494
|
-
return (
|
|
2495
|
-
|
|
921
|
+
const t = L(), e = (s, r) => {
|
|
922
|
+
let o;
|
|
923
|
+
return (o = t[s]) || (o = t[s] = []), o.push(r), (n) => {
|
|
924
|
+
o.length > 1 ? o.forEach((i) => i(n)) : o[0](n);
|
|
2496
925
|
};
|
|
2497
926
|
};
|
|
2498
|
-
|
|
927
|
+
e(
|
|
2499
928
|
"__VUE_INSTANCE_SETTERS__",
|
|
2500
|
-
(
|
|
2501
|
-
),
|
|
929
|
+
(s) => s
|
|
930
|
+
), e(
|
|
2502
931
|
"__VUE_SSR_SETTERS__",
|
|
2503
|
-
(
|
|
932
|
+
(s) => s
|
|
2504
933
|
);
|
|
2505
934
|
}
|
|
2506
935
|
process.env.NODE_ENV;
|
|
2507
|
-
const
|
|
2508
|
-
function
|
|
2509
|
-
return
|
|
2510
|
-
}
|
|
2511
|
-
function
|
|
2512
|
-
let
|
|
2513
|
-
if (!
|
|
2514
|
-
const
|
|
2515
|
-
|
|
2516
|
-
}
|
|
2517
|
-
if (!
|
|
2518
|
-
const
|
|
2519
|
-
for (const i in
|
|
2520
|
-
if (
|
|
936
|
+
const yt = /(?:^|[-_])\w/g, St = (t) => t.replace(yt, (e) => e.toUpperCase()).replace(/[-_]/g, "");
|
|
937
|
+
function Ne(t, e = !0) {
|
|
938
|
+
return P(t) ? t.displayName || t.name : t.name || e && t.__name;
|
|
939
|
+
}
|
|
940
|
+
function Pe(t, e, s = !1) {
|
|
941
|
+
let r = Ne(e);
|
|
942
|
+
if (!r && e.__file) {
|
|
943
|
+
const o = e.__file.match(/([^/\\]+)\.\w+$/);
|
|
944
|
+
o && (r = o[1]);
|
|
945
|
+
}
|
|
946
|
+
if (!r && t) {
|
|
947
|
+
const o = (n) => {
|
|
948
|
+
for (const i in n)
|
|
949
|
+
if (n[i] === e)
|
|
2521
950
|
return i;
|
|
2522
951
|
};
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
) ||
|
|
952
|
+
r = o(t.components) || t.parent && o(
|
|
953
|
+
t.parent.type.components
|
|
954
|
+
) || o(t.appContext.components);
|
|
2526
955
|
}
|
|
2527
|
-
return
|
|
956
|
+
return r ? St(r) : s ? "App" : "Anonymous";
|
|
2528
957
|
}
|
|
2529
|
-
function
|
|
2530
|
-
return
|
|
958
|
+
function Oe(t) {
|
|
959
|
+
return P(t) && "__vccOpts" in t;
|
|
2531
960
|
}
|
|
2532
|
-
function
|
|
961
|
+
function bt() {
|
|
2533
962
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
2534
963
|
return;
|
|
2535
|
-
const
|
|
964
|
+
const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, s = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, o = {
|
|
2536
965
|
__vue_custom_formatter: !0,
|
|
2537
966
|
header(a) {
|
|
2538
|
-
if (!
|
|
967
|
+
if (!w(a))
|
|
2539
968
|
return null;
|
|
2540
969
|
if (a.__isVue)
|
|
2541
|
-
return ["div",
|
|
2542
|
-
if (/* @__PURE__ */
|
|
970
|
+
return ["div", t, "VueInstance"];
|
|
971
|
+
if (/* @__PURE__ */ te(a)) {
|
|
2543
972
|
const u = a.value;
|
|
2544
973
|
return [
|
|
2545
974
|
"div",
|
|
2546
975
|
{},
|
|
2547
|
-
["span",
|
|
976
|
+
["span", t, _(a)],
|
|
2548
977
|
"<",
|
|
2549
978
|
c(u),
|
|
2550
979
|
">"
|
|
2551
980
|
];
|
|
2552
981
|
} else {
|
|
2553
|
-
if (/* @__PURE__ */
|
|
982
|
+
if (/* @__PURE__ */ le(a))
|
|
2554
983
|
return [
|
|
2555
984
|
"div",
|
|
2556
985
|
{},
|
|
2557
|
-
["span",
|
|
986
|
+
["span", t, /* @__PURE__ */ B(a) ? "ShallowReactive" : "Reactive"],
|
|
2558
987
|
"<",
|
|
2559
988
|
c(a),
|
|
2560
|
-
`>${/* @__PURE__ */
|
|
989
|
+
`>${/* @__PURE__ */ Y(a) ? " (readonly)" : ""}`
|
|
2561
990
|
];
|
|
2562
|
-
if (/* @__PURE__ */
|
|
991
|
+
if (/* @__PURE__ */ Y(a))
|
|
2563
992
|
return [
|
|
2564
993
|
"div",
|
|
2565
994
|
{},
|
|
2566
|
-
["span",
|
|
995
|
+
["span", t, /* @__PURE__ */ B(a) ? "ShallowReadonly" : "Readonly"],
|
|
2567
996
|
"<",
|
|
2568
997
|
c(a),
|
|
2569
998
|
">"
|
|
@@ -2579,23 +1008,23 @@ function kr() {
|
|
|
2579
1008
|
return [
|
|
2580
1009
|
"div",
|
|
2581
1010
|
{},
|
|
2582
|
-
...
|
|
1011
|
+
...n(a.$)
|
|
2583
1012
|
];
|
|
2584
1013
|
}
|
|
2585
1014
|
};
|
|
2586
|
-
function
|
|
1015
|
+
function n(a) {
|
|
2587
1016
|
const u = [];
|
|
2588
|
-
a.type.props && a.props && u.push(i("props", /* @__PURE__ */
|
|
1017
|
+
a.type.props && a.props && u.push(i("props", /* @__PURE__ */ S(a.props))), a.setupState !== J && u.push(i("setup", a.setupState)), a.data !== J && u.push(i("data", /* @__PURE__ */ S(a.data)));
|
|
2589
1018
|
const d = l(a, "computed");
|
|
2590
1019
|
d && u.push(i("computed", d));
|
|
2591
|
-
const
|
|
2592
|
-
return
|
|
1020
|
+
const p = l(a, "inject");
|
|
1021
|
+
return p && u.push(i("injected", p)), u.push([
|
|
2593
1022
|
"div",
|
|
2594
1023
|
{},
|
|
2595
1024
|
[
|
|
2596
1025
|
"span",
|
|
2597
1026
|
{
|
|
2598
|
-
style:
|
|
1027
|
+
style: r.style + ";opacity:0.66"
|
|
2599
1028
|
},
|
|
2600
1029
|
"$ (internal): "
|
|
2601
1030
|
],
|
|
@@ -2603,7 +1032,7 @@ function kr() {
|
|
|
2603
1032
|
]), u;
|
|
2604
1033
|
}
|
|
2605
1034
|
function i(a, u) {
|
|
2606
|
-
return u =
|
|
1035
|
+
return u = H({}, u), Object.keys(u).length ? [
|
|
2607
1036
|
"div",
|
|
2608
1037
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
2609
1038
|
[
|
|
@@ -2621,42 +1050,42 @@ function kr() {
|
|
|
2621
1050
|
...Object.keys(u).map((d) => [
|
|
2622
1051
|
"div",
|
|
2623
1052
|
{},
|
|
2624
|
-
["span",
|
|
1053
|
+
["span", r, d + ": "],
|
|
2625
1054
|
c(u[d], !1)
|
|
2626
1055
|
])
|
|
2627
1056
|
]
|
|
2628
1057
|
] : ["span", {}];
|
|
2629
1058
|
}
|
|
2630
1059
|
function c(a, u = !0) {
|
|
2631
|
-
return typeof a == "number" ? ["span",
|
|
1060
|
+
return typeof a == "number" ? ["span", e, a] : typeof a == "string" ? ["span", s, JSON.stringify(a)] : typeof a == "boolean" ? ["span", r, a] : w(a) ? ["object", { object: u ? /* @__PURE__ */ S(a) : a }] : ["span", s, String(a)];
|
|
2632
1061
|
}
|
|
2633
1062
|
function l(a, u) {
|
|
2634
1063
|
const d = a.type;
|
|
2635
|
-
if (
|
|
1064
|
+
if (P(d))
|
|
2636
1065
|
return;
|
|
2637
|
-
const
|
|
2638
|
-
for (const
|
|
2639
|
-
f(d,
|
|
2640
|
-
return
|
|
1066
|
+
const p = {};
|
|
1067
|
+
for (const D in a.ctx)
|
|
1068
|
+
f(d, D, u) && (p[D] = a.ctx[D]);
|
|
1069
|
+
return p;
|
|
2641
1070
|
}
|
|
2642
1071
|
function f(a, u, d) {
|
|
2643
|
-
const
|
|
2644
|
-
if (
|
|
1072
|
+
const p = a[d];
|
|
1073
|
+
if (m(p) && p.includes(u) || w(p) && u in p || a.extends && f(a.extends, u, d) || a.mixins && a.mixins.some((D) => f(D, u, d)))
|
|
2645
1074
|
return !0;
|
|
2646
1075
|
}
|
|
2647
|
-
function
|
|
2648
|
-
return /* @__PURE__ */
|
|
1076
|
+
function _(a) {
|
|
1077
|
+
return /* @__PURE__ */ B(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
|
|
2649
1078
|
}
|
|
2650
|
-
window.devtoolsFormatters ? window.devtoolsFormatters.push(
|
|
1079
|
+
window.devtoolsFormatters ? window.devtoolsFormatters.push(o) : window.devtoolsFormatters = [o];
|
|
2651
1080
|
}
|
|
2652
1081
|
process.env.NODE_ENV;
|
|
2653
1082
|
process.env.NODE_ENV;
|
|
2654
1083
|
process.env.NODE_ENV;
|
|
2655
|
-
function
|
|
2656
|
-
|
|
1084
|
+
function Et() {
|
|
1085
|
+
bt();
|
|
2657
1086
|
}
|
|
2658
|
-
process.env.NODE_ENV !== "production" &&
|
|
2659
|
-
const
|
|
1087
|
+
process.env.NODE_ENV !== "production" && Et();
|
|
1088
|
+
const wt = [
|
|
2660
1089
|
"@context",
|
|
2661
1090
|
"activeLink",
|
|
2662
1091
|
"computed",
|
|
@@ -2668,54 +1097,54 @@ const Cr = [
|
|
|
2668
1097
|
"subs",
|
|
2669
1098
|
"version"
|
|
2670
1099
|
];
|
|
2671
|
-
class
|
|
1100
|
+
class ie extends Ce {
|
|
2672
1101
|
_className = "StorePersister";
|
|
2673
1102
|
_crypt;
|
|
2674
1103
|
_excludedKeys;
|
|
2675
1104
|
_persister;
|
|
2676
1105
|
_propertiesToEncrypt;
|
|
2677
1106
|
_watchedStore;
|
|
2678
|
-
constructor(
|
|
2679
|
-
super(
|
|
2680
|
-
const { crypt:
|
|
2681
|
-
this._excludedKeys = this.initExcludedKeys(), this.definePersister(i), this._propertiesToEncrypt = new Set(this.getPropertiesToEncrypt()), this._watchedStore = c,
|
|
1107
|
+
constructor(e, s, r, o) {
|
|
1108
|
+
super(e, s, r, o);
|
|
1109
|
+
const { crypt: n, persister: i, watchedStore: c } = s;
|
|
1110
|
+
this._excludedKeys = this.initExcludedKeys(), this.definePersister(i), this._propertiesToEncrypt = new Set(this.getPropertiesToEncrypt()), this._watchedStore = c, n && (this._crypt = n, this.options && (this.options.isEncrypted = !1)), this.augmentStore(), this.remember(), this.debugLog("StorePersister constructor", {
|
|
2682
1111
|
toBeWatched: this.toBeWatched(),
|
|
2683
1112
|
watchedStore: c,
|
|
2684
1113
|
persister: i,
|
|
2685
|
-
store:
|
|
2686
|
-
options:
|
|
1114
|
+
store: e,
|
|
1115
|
+
options: s
|
|
2687
1116
|
}), this.toBeWatched() && (this._watchedStore.add(this.store.$id), this.storeSubscribe = this.storeSubscription.bind(this));
|
|
2688
1117
|
}
|
|
2689
1118
|
augmentStore() {
|
|
2690
|
-
const { isEncrypted:
|
|
2691
|
-
|
|
2692
|
-
}
|
|
2693
|
-
async cryptProperty(
|
|
2694
|
-
return
|
|
2695
|
-
}
|
|
2696
|
-
async cryptState(
|
|
2697
|
-
return await new Promise(async (
|
|
2698
|
-
const
|
|
2699
|
-
if (this.debugLog(`cryptState - ${this.store.$id} ${
|
|
2700
|
-
can: this._propertiesToEncrypt.size > 0 && i ===
|
|
2701
|
-
Crypt:
|
|
2702
|
-
state:
|
|
2703
|
-
}), this._propertiesToEncrypt.size > 0 &&
|
|
1119
|
+
const { isEncrypted: e, persistedPropertiesToEncrypt: s, watchMutation: r } = this.options;
|
|
1120
|
+
e === void 0 && (this.options.isEncrypted = !1), s === void 0 && (this.options.persistedPropertiesToEncrypt = []), r === void 0 && (this.options.watchMutation = !1), this.stateHas("isLoading") || this.addToState("isLoading", !1), this.store.persistState = async () => await this.persist(), this.store.remember = async () => await this.remember(), this.store.removePersistedState = this.removePersistedState.bind(this), this.store.watch = this.watch, this.store.stopWatch = this.stopWatch;
|
|
1121
|
+
}
|
|
1122
|
+
async cryptProperty(e, s, r = !1) {
|
|
1123
|
+
return r ? await e.decrypt(s) : await e.encrypt(s);
|
|
1124
|
+
}
|
|
1125
|
+
async cryptState(e, s = !1) {
|
|
1126
|
+
return await new Promise(async (r) => {
|
|
1127
|
+
const o = this._crypt, n = this.getPropertiesToEncrypt(), i = this.isEncrypted();
|
|
1128
|
+
if (this.debugLog(`cryptState - ${this.store.$id} ${s ? "decrypt" : "crypt"}`, {
|
|
1129
|
+
can: this._propertiesToEncrypt.size > 0 && i === s && !!o,
|
|
1130
|
+
Crypt: o,
|
|
1131
|
+
state: e
|
|
1132
|
+
}), this._propertiesToEncrypt.size > 0 && o) {
|
|
2704
1133
|
const c = {};
|
|
2705
|
-
for (const l of
|
|
2706
|
-
const f = this.getValue(
|
|
2707
|
-
f && (c[l] = await this.cryptProperty(
|
|
1134
|
+
for (const l of n) {
|
|
1135
|
+
const f = this.getValue(e[l]);
|
|
1136
|
+
f && (c[l] = await this.cryptProperty(o, f, s));
|
|
2708
1137
|
}
|
|
2709
|
-
this.debugLog(`cryptState - ${this.store.$id}`, { encryptedState: c }),
|
|
1138
|
+
this.debugLog(`cryptState - ${this.store.$id}`, { encryptedState: c }), R(c) || (e = { ...e, ...c }, this.options && (this.options.isEncrypted = !s));
|
|
2710
1139
|
}
|
|
2711
|
-
|
|
1140
|
+
r(e);
|
|
2712
1141
|
});
|
|
2713
1142
|
}
|
|
2714
|
-
static customizeStore(
|
|
2715
|
-
return !
|
|
1143
|
+
static customizeStore(e, s, r, o) {
|
|
1144
|
+
return !s.storeOptions?.persist && s.storeOptions?.watchMutation && (s.storeOptions.persist = !0), super.customizeStore(e, s, r, o);
|
|
2716
1145
|
}
|
|
2717
|
-
definePersister(
|
|
2718
|
-
this._persister = this.options.dbName ? new
|
|
1146
|
+
definePersister(e) {
|
|
1147
|
+
this._persister = this.options.dbName ? new X({ name: this.options.dbName, keyPath: "storeName" }) : e;
|
|
2719
1148
|
}
|
|
2720
1149
|
isEncrypted() {
|
|
2721
1150
|
return this.options.isEncrypted;
|
|
@@ -2723,49 +1152,49 @@ class _t extends $s {
|
|
|
2723
1152
|
getPropertiesToEncrypt() {
|
|
2724
1153
|
return this.options?.persistedPropertiesToEncrypt ?? [];
|
|
2725
1154
|
}
|
|
2726
|
-
async getPersistedState(
|
|
2727
|
-
const
|
|
1155
|
+
async getPersistedState(e = !0) {
|
|
1156
|
+
const s = this.store.$id;
|
|
2728
1157
|
try {
|
|
2729
|
-
let
|
|
2730
|
-
return
|
|
2731
|
-
} catch (
|
|
2732
|
-
this.logError("getPersistedState()", { storeName:
|
|
1158
|
+
let r = await this._persister.getItem(s);
|
|
1159
|
+
return e && this.toBeCrypted() && r && (await this._crypt?.init(), r = await this.cryptState(r, !0)), this.debugLog(`getPersistedState ${s}`, { persistedState: r, state: this.state }), r;
|
|
1160
|
+
} catch (r) {
|
|
1161
|
+
this.logError("getPersistedState()", { storeName: s, e: r });
|
|
2733
1162
|
}
|
|
2734
1163
|
}
|
|
2735
1164
|
async getStateToPersist() {
|
|
2736
|
-
const
|
|
2737
|
-
|
|
2738
|
-
const
|
|
2739
|
-
for (const i of Object.keys(
|
|
2740
|
-
if (!this.hasDeniedFirstChar(i[0]) && !
|
|
2741
|
-
const c =
|
|
2742
|
-
|
|
1165
|
+
const e = this._excludedKeys, s = this.state, r = this._propertiesToEncrypt.size > 0, o = this._crypt;
|
|
1166
|
+
r && await o.init();
|
|
1167
|
+
const n = {};
|
|
1168
|
+
for (const i of Object.keys(s))
|
|
1169
|
+
if (!this.hasDeniedFirstChar(i[0]) && !e.has(i)) {
|
|
1170
|
+
const c = s[i];
|
|
1171
|
+
R(c) || (r && this._propertiesToEncrypt.has(i) ? n[i] = await this.cryptProperty(o, c, !1) : n[i] = /* @__PURE__ */ S(c));
|
|
2743
1172
|
}
|
|
2744
|
-
return
|
|
1173
|
+
return n;
|
|
2745
1174
|
}
|
|
2746
1175
|
getWatchMutation() {
|
|
2747
1176
|
return this.options.watchMutation;
|
|
2748
1177
|
}
|
|
2749
|
-
static hasRequiredKeys(
|
|
2750
|
-
return !!
|
|
1178
|
+
static hasRequiredKeys(e) {
|
|
1179
|
+
return !!e?.persist || !!e?.watchMutation;
|
|
2751
1180
|
}
|
|
2752
1181
|
initExcludedKeys() {
|
|
2753
1182
|
return /* @__PURE__ */ new Set([
|
|
2754
|
-
...
|
|
1183
|
+
...wt,
|
|
2755
1184
|
...this.options.excludedKeys ?? []
|
|
2756
1185
|
]);
|
|
2757
1186
|
}
|
|
2758
1187
|
async persist() {
|
|
2759
|
-
const
|
|
2760
|
-
this.debugLog(`persist() ${this.store.$id} - stateToPersist:`, { state:
|
|
1188
|
+
const e = await this.getStateToPersist();
|
|
1189
|
+
this.debugLog(`persist() ${this.store.$id} - stateToPersist:`, { state: e }), R(e) || this._persister.setItem(this.store.$id, e);
|
|
2761
1190
|
}
|
|
2762
|
-
propertyShouldBePersisted(
|
|
2763
|
-
return !this._excludedKeys.has(
|
|
1191
|
+
propertyShouldBePersisted(e) {
|
|
1192
|
+
return !this._excludedKeys.has(e);
|
|
2764
1193
|
}
|
|
2765
1194
|
async remember() {
|
|
2766
|
-
return this.state.isLoading = !0, new Promise(async (
|
|
2767
|
-
let
|
|
2768
|
-
return
|
|
1195
|
+
return this.state.isLoading = !0, new Promise(async (e) => {
|
|
1196
|
+
let s = await this.getPersistedState();
|
|
1197
|
+
return s && !R(s) && this.store.$patch(s), this.state.isLoading = !1, e(!0);
|
|
2769
1198
|
});
|
|
2770
1199
|
}
|
|
2771
1200
|
removePersistedState() {
|
|
@@ -2774,20 +1203,20 @@ class _t extends $s {
|
|
|
2774
1203
|
stopWatch() {
|
|
2775
1204
|
this.options?.watchMutation && (this.options && (this.options.watchMutation = !1), this._watchedStore.delete(this.store.$id));
|
|
2776
1205
|
}
|
|
2777
|
-
storeSubscription(
|
|
1206
|
+
storeSubscription(e) {
|
|
2778
1207
|
this.debugLog(`store.storeSubscription() ${this.store.$id}`, [
|
|
2779
1208
|
"mutation type !== patch object: ",
|
|
2780
|
-
|
|
1209
|
+
e.type !== "patch object",
|
|
2781
1210
|
"watchMutation: ",
|
|
2782
1211
|
this.getWatchMutation(),
|
|
2783
1212
|
"mutation:",
|
|
2784
|
-
|
|
1213
|
+
e,
|
|
2785
1214
|
"state:",
|
|
2786
1215
|
this.state,
|
|
2787
1216
|
"store:",
|
|
2788
1217
|
this.store
|
|
2789
|
-
]),
|
|
2790
|
-
this.store.mutationCallback && this.store.mutationCallback(this.state,
|
|
1218
|
+
]), e.type !== "patch object" && this.getWatchMutation() && this.persist().then(() => {
|
|
1219
|
+
this.store.mutationCallback && this.store.mutationCallback(this.state, e);
|
|
2791
1220
|
});
|
|
2792
1221
|
}
|
|
2793
1222
|
toBeCrypted() {
|
|
@@ -2800,44 +1229,44 @@ class _t extends $s {
|
|
|
2800
1229
|
this.toBeWatched() && (this.options && (this.options.watchMutation = !0), this.storeSubscribe = this.storeSubscription.bind(this));
|
|
2801
1230
|
}
|
|
2802
1231
|
}
|
|
2803
|
-
class
|
|
2804
|
-
_resetStoreCallback = (
|
|
2805
|
-
const { removePersistedState:
|
|
2806
|
-
typeof
|
|
1232
|
+
class Nt extends Ve {
|
|
1233
|
+
_resetStoreCallback = (e) => {
|
|
1234
|
+
const { removePersistedState: s } = e;
|
|
1235
|
+
typeof s == "function" && s();
|
|
2807
1236
|
};
|
|
2808
1237
|
constructor() {
|
|
2809
1238
|
super(
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
1239
|
+
ce,
|
|
1240
|
+
ie.customizeStore.bind(ie),
|
|
1241
|
+
E
|
|
2813
1242
|
);
|
|
2814
1243
|
}
|
|
2815
1244
|
}
|
|
2816
|
-
const
|
|
2817
|
-
function
|
|
2818
|
-
return
|
|
1245
|
+
const q = new Nt();
|
|
1246
|
+
function Ct(t, e) {
|
|
1247
|
+
return q.pluginOptions = Pt(t, e), q;
|
|
2819
1248
|
}
|
|
2820
|
-
function
|
|
2821
|
-
let
|
|
2822
|
-
const
|
|
1249
|
+
function Pt(t, e) {
|
|
1250
|
+
let s, r;
|
|
1251
|
+
const o = /* @__PURE__ */ new Set();
|
|
2823
1252
|
try {
|
|
2824
1253
|
if (window)
|
|
2825
|
-
return !
|
|
1254
|
+
return !R(t) && t && (s = new X({ name: t, keyPath: "storeName" })), e && (r = new x(e)), { persister: s, crypt: r, watchedStore: o };
|
|
2826
1255
|
} catch {
|
|
2827
1256
|
}
|
|
2828
|
-
return { persister:
|
|
1257
|
+
return { persister: s, crypt: r, watchedStore: o };
|
|
2829
1258
|
}
|
|
2830
|
-
function
|
|
2831
|
-
let
|
|
2832
|
-
return
|
|
2833
|
-
persister: new
|
|
2834
|
-
crypt:
|
|
1259
|
+
function Vt(t, e) {
|
|
1260
|
+
let s;
|
|
1261
|
+
return e && (s = new x(e)), q.pluginOptions = {
|
|
1262
|
+
persister: new je({ name: t }),
|
|
1263
|
+
crypt: s,
|
|
2835
1264
|
watchedStore: /* @__PURE__ */ new Set()
|
|
2836
|
-
},
|
|
1265
|
+
}, q;
|
|
2837
1266
|
}
|
|
2838
1267
|
export {
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
1268
|
+
ce as PLUGIN_NAME,
|
|
1269
|
+
je as PersisterMock,
|
|
1270
|
+
Ct as createPersistStatePlugin,
|
|
1271
|
+
Vt as createPluginMock
|
|
2843
1272
|
};
|