pinia-plugin-subscription 0.0.0-beta.9 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -102
- package/dist/pinia-plugin-subscription.js +381 -350
- package/dist/pinia-plugin-subscription.umd.cjs +5 -5
- package/dist/types/index.d.ts +41 -16
- package/dist/types/plugin.d.ts +7 -5
- package/dist/types/store.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineStore as
|
|
2
|
-
class
|
|
1
|
+
import { defineStore as $t } from "pinia";
|
|
2
|
+
class Pn {
|
|
3
3
|
_console;
|
|
4
4
|
_createInstance;
|
|
5
5
|
_name;
|
|
@@ -41,10 +41,10 @@ class Mn {
|
|
|
41
41
|
this._name = e, this._createInstance = n, s && (this._console = s);
|
|
42
42
|
}
|
|
43
43
|
invoke({ store: e, options: n }, s) {
|
|
44
|
-
this._storeInstance = this._createInstance(e, { ...n, ...this.pluginOptions }, s, this.console), this._storeInstance
|
|
44
|
+
return this._storeInstance = this._createInstance(e, { ...n, ...this.pluginOptions }, s, this.console), this._storeInstance ? (this._subscriptions = this._storeInstance.getSubscriptions(), this._storeMutationSubscription = this._storeInstance.storeSubscribe, this._storeOnActionSubscription = this._storeInstance.onAction, this.pluginCreated && this.pluginCreated(e), !0) : !1;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
class
|
|
47
|
+
class Dt {
|
|
48
48
|
_console;
|
|
49
49
|
_debug = !1;
|
|
50
50
|
get console() {
|
|
@@ -69,7 +69,7 @@ class Vt {
|
|
|
69
69
|
this.console.error(...e);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const Vt = "pinia-plugin-subscription", le = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
|
|
73
73
|
function ae(t, e) {
|
|
74
74
|
if (!t)
|
|
75
75
|
throw new Error("Style instructions are required");
|
|
@@ -92,7 +92,7 @@ class ue {
|
|
|
92
92
|
info: { bgColor: this._bgColor, color: this._color, icon: this._icon }
|
|
93
93
|
};
|
|
94
94
|
formatMessage(e, n) {
|
|
95
|
-
return ` [${n} ${
|
|
95
|
+
return ` [${n} ${Vt}] - ${e} `;
|
|
96
96
|
}
|
|
97
97
|
generateStyle(e) {
|
|
98
98
|
return le(e.bgColor, e.color);
|
|
@@ -126,58 +126,43 @@ class ue {
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
class fe extends ue {
|
|
129
|
-
_pluginName =
|
|
129
|
+
_pluginName = Vt;
|
|
130
130
|
}
|
|
131
|
-
const
|
|
132
|
-
function
|
|
133
|
-
const s = n ? { storeOptions: n } : {};
|
|
134
|
-
return typeof e == "function" ? he(
|
|
135
|
-
t,
|
|
136
|
-
e,
|
|
137
|
-
s
|
|
138
|
-
) : de(
|
|
139
|
-
t,
|
|
140
|
-
e,
|
|
141
|
-
s
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
function he(t, e, n) {
|
|
145
|
-
return It(t, e, n);
|
|
146
|
-
}
|
|
147
|
-
function de(t, e, n) {
|
|
148
|
-
return n && (e = { ...e, ...n ?? {} }), It(t, e);
|
|
149
|
-
}
|
|
150
|
-
const _e = /* @__PURE__ */ new Set(["_", "$"]);
|
|
151
|
-
function xt(t) {
|
|
152
|
-
return _e.has(t[0]);
|
|
153
|
-
}
|
|
154
|
-
function $t(t) {
|
|
131
|
+
const he = new fe();
|
|
132
|
+
function lt(t) {
|
|
155
133
|
return t ? Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : typeof t == "string" ? t.trim() === "" : !1 : !(typeof t == "boolean" || typeof t == "number");
|
|
156
134
|
}
|
|
157
|
-
|
|
158
|
-
|
|
135
|
+
const wt = "PluginSubscription";
|
|
136
|
+
class pe extends Dt {
|
|
137
|
+
_className = wt;
|
|
138
|
+
_pluginDebug;
|
|
159
139
|
_resetStoreCallback = [];
|
|
160
140
|
_subscribers = [];
|
|
141
|
+
_subscribersDelivered = /* @__PURE__ */ new Set();
|
|
161
142
|
_subscriptions = [];
|
|
143
|
+
_subscriptionsDelivered = /* @__PURE__ */ new Set();
|
|
162
144
|
set subscribers(e) {
|
|
163
145
|
this._subscribers = e;
|
|
164
146
|
}
|
|
165
147
|
get subscriptions() {
|
|
166
|
-
if (
|
|
148
|
+
if (!lt(this._subscriptions))
|
|
167
149
|
return this._subscriptions;
|
|
168
150
|
}
|
|
169
151
|
constructor(e, n) {
|
|
170
|
-
super(n,
|
|
152
|
+
super(Array.isArray(n) && !!n?.includes(wt), he), this._pluginDebug = Array.isArray(n) ? n : void 0, this._subscribers = e;
|
|
171
153
|
}
|
|
172
154
|
addResetStoreCallback(e) {
|
|
173
155
|
this._resetStoreCallback.push(e);
|
|
174
156
|
}
|
|
157
|
+
definePluginDebug(e) {
|
|
158
|
+
return !!this._pluginDebug?.includes(e.name);
|
|
159
|
+
}
|
|
175
160
|
executeResetStoreCallbacks(e) {
|
|
176
161
|
this._resetStoreCallback.forEach((n) => n(e));
|
|
177
162
|
}
|
|
178
163
|
plugin({ store: e, options: n }) {
|
|
179
164
|
if (this._subscribers.length) {
|
|
180
|
-
this.debugLog(`plugin() -
|
|
165
|
+
this.debugLog(`plugin() - ${e.$id}`, [
|
|
181
166
|
"subscriber:",
|
|
182
167
|
this._subscribers,
|
|
183
168
|
"store:",
|
|
@@ -188,9 +173,12 @@ class ge extends Vt {
|
|
|
188
173
|
try {
|
|
189
174
|
this._subscribers.forEach(
|
|
190
175
|
(s) => {
|
|
191
|
-
|
|
176
|
+
this._subscribersDelivered.has(`${s.name}-${e.$id}`) || s.invoke(
|
|
177
|
+
{ store: e, options: n },
|
|
178
|
+
this.definePluginDebug(s)
|
|
179
|
+
) && (this._subscribersDelivered.add(`${s.name}-${e.$id}`), s.subscriptions && this.subscriptionDelivery({ store: e, options: n }, s.subscriptions), s.storeMutationSubscription && this.storeMutationSubscription(s.storeMutationSubscription), s.storeOnActionSubscription && this.storeOnActionSubscription(s.storeOnActionSubscription), s.resetStoreCallback && this.addResetStoreCallback(s.resetStoreCallback));
|
|
192
180
|
}
|
|
193
|
-
), this.rewriteResetStore({ store: e },
|
|
181
|
+
), this.rewriteResetStore({ store: e }, JSON.stringify(e.$state), Object.assign({}, e));
|
|
194
182
|
} catch (s) {
|
|
195
183
|
this.logError(s, e, n);
|
|
196
184
|
}
|
|
@@ -198,62 +186,83 @@ class ge extends Vt {
|
|
|
198
186
|
}
|
|
199
187
|
rewriteResetStore({ store: e }, n, s) {
|
|
200
188
|
e.$reset = () => {
|
|
201
|
-
this.
|
|
202
|
-
xt(r) || (e[r] = n[r] ?? s[r]);
|
|
203
|
-
}), e.$patch(JSON.parse(JSON.stringify(n)));
|
|
189
|
+
this.debugLog("rewriteResetStore()", { initState: n, store: e, customStore: s }), this.executeResetStoreCallbacks(e), e.$patch(JSON.parse(n));
|
|
204
190
|
};
|
|
205
191
|
}
|
|
206
192
|
storeOnActionSubscription(e) {
|
|
207
193
|
const { store: n, callback: s } = e();
|
|
208
194
|
n.$onAction(({ after: r, args: o, name: i }) => {
|
|
209
|
-
this.debugLog(`storeOnActionSubscription ${n.$id}`,
|
|
195
|
+
this.debugLog(`storeOnActionSubscription ${n.$id}`, { after: r, args: o, name: i, store: n }), s({ after: r, args: o, name: i });
|
|
210
196
|
});
|
|
211
197
|
}
|
|
212
198
|
storeMutationSubscription(e) {
|
|
213
199
|
const { store: n, callback: s } = e();
|
|
214
200
|
n.$subscribe((r) => {
|
|
215
|
-
this.debugLog(`$subscribe ${n.$id}`,
|
|
201
|
+
this.debugLog(`$subscribe ${n.$id}`, { mutation: r, store: n }), s(r);
|
|
216
202
|
});
|
|
217
203
|
}
|
|
218
204
|
subscriptionDelivery({ store: e, options: n }, s) {
|
|
219
205
|
Object.entries(s).forEach(([r, o]) => {
|
|
220
206
|
try {
|
|
221
|
-
|
|
207
|
+
if (this._subscriptionsDelivered.has(`${r}-${e.$id}`))
|
|
208
|
+
return;
|
|
209
|
+
const { subscription: i, subscriptionOptions: c, stores: a } = o;
|
|
222
210
|
this.debugLog(`subscriptionDelivery() - store: ${e.$id}`, [
|
|
223
211
|
"pluginName:",
|
|
224
212
|
r,
|
|
225
213
|
"subscription:",
|
|
226
214
|
i,
|
|
227
215
|
"options:",
|
|
228
|
-
|
|
229
|
-
|
|
216
|
+
o,
|
|
217
|
+
"stores:",
|
|
218
|
+
a
|
|
219
|
+
]);
|
|
220
|
+
const u = {
|
|
221
|
+
storeOptions: { ...n?.storeOptions ?? {}, ...c }
|
|
222
|
+
};
|
|
223
|
+
i.invoke(
|
|
224
|
+
{ store: e, options: { ...n, ...u } },
|
|
225
|
+
this.debug
|
|
226
|
+
), this._subscriptionsDelivered.add(`${r}-${e.$id}`), lt(a) || a?.forEach(
|
|
227
|
+
(p) => i.invoke(
|
|
228
|
+
{
|
|
229
|
+
store: p,
|
|
230
|
+
options: {
|
|
231
|
+
...n,
|
|
232
|
+
...u,
|
|
233
|
+
...p?.storeOptions ?? {}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
this.debug
|
|
237
|
+
)
|
|
238
|
+
);
|
|
230
239
|
} catch (i) {
|
|
231
|
-
this.logError(
|
|
240
|
+
this.logError("subscriptionDelivery()", i, e, n);
|
|
232
241
|
}
|
|
233
242
|
});
|
|
234
243
|
}
|
|
235
244
|
}
|
|
236
245
|
// @__NO_SIDE_EFFECTS__
|
|
237
|
-
function
|
|
246
|
+
function de(t) {
|
|
238
247
|
const e = /* @__PURE__ */ Object.create(null);
|
|
239
248
|
for (const n of t.split(",")) e[n] = 1;
|
|
240
249
|
return (n) => n in e;
|
|
241
250
|
}
|
|
242
|
-
const
|
|
251
|
+
const at = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
243
252
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
244
|
-
const
|
|
245
|
-
},
|
|
246
|
-
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), F = Object.assign,
|
|
253
|
+
const xt = () => {
|
|
254
|
+
}, _e = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
|
|
255
|
+
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), F = Object.assign, ge = Object.prototype.hasOwnProperty, ut = (t, e) => ge.call(t, e), d = Array.isArray, K = (t) => Tt(t) === "[object Map]", A = (t) => typeof t == "function", N = (t) => typeof t == "string", U = (t) => typeof t == "symbol", _ = (t) => t !== null && typeof t == "object", be = Object.prototype.toString, Tt = (t) => be.call(t), Mt = (t) => Tt(t).slice(8, -1), Z = (t) => N(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, me = (t) => {
|
|
247
256
|
const e = /* @__PURE__ */ Object.create(null);
|
|
248
257
|
return ((n) => e[n] || (e[n] = t(n)));
|
|
249
|
-
},
|
|
250
|
-
let
|
|
251
|
-
const tt = () =>
|
|
252
|
-
function
|
|
258
|
+
}, ye = me((t) => t.charAt(0).toUpperCase() + t.slice(1)), dt = (t, e) => !Object.is(t, e);
|
|
259
|
+
let Nt;
|
|
260
|
+
const tt = () => Nt || (Nt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
261
|
+
function _t(t) {
|
|
253
262
|
if (d(t)) {
|
|
254
263
|
const e = {};
|
|
255
264
|
for (let n = 0; n < t.length; n++) {
|
|
256
|
-
const s = t[n], r = N(s) ?
|
|
265
|
+
const s = t[n], r = N(s) ? we(s) : _t(s);
|
|
257
266
|
if (r)
|
|
258
267
|
for (const o in r)
|
|
259
268
|
e[o] = r[o];
|
|
@@ -262,23 +271,23 @@ function dt(t) {
|
|
|
262
271
|
} else if (N(t) || _(t))
|
|
263
272
|
return t;
|
|
264
273
|
}
|
|
265
|
-
const
|
|
266
|
-
function
|
|
274
|
+
const Se = /;(?![^(]*\))/g, Ee = /:([^]+)/, Oe = /\/\*[^]*?\*\//g;
|
|
275
|
+
function we(t) {
|
|
267
276
|
const e = {};
|
|
268
|
-
return t.replace(
|
|
277
|
+
return t.replace(Oe, "").split(Se).forEach((n) => {
|
|
269
278
|
if (n) {
|
|
270
|
-
const s = n.split(
|
|
279
|
+
const s = n.split(Ee);
|
|
271
280
|
s.length > 1 && (e[s[0].trim()] = s[1].trim());
|
|
272
281
|
}
|
|
273
282
|
}), e;
|
|
274
283
|
}
|
|
275
|
-
function
|
|
284
|
+
function gt(t) {
|
|
276
285
|
let e = "";
|
|
277
286
|
if (N(t))
|
|
278
287
|
e = t;
|
|
279
288
|
else if (d(t))
|
|
280
289
|
for (let n = 0; n < t.length; n++) {
|
|
281
|
-
const s =
|
|
290
|
+
const s = gt(t[n]);
|
|
282
291
|
s && (e += s + " ");
|
|
283
292
|
}
|
|
284
293
|
else if (_(t))
|
|
@@ -290,10 +299,10 @@ function M(t, ...e) {
|
|
|
290
299
|
console.warn(`[Vue warn] ${t}`, ...e);
|
|
291
300
|
}
|
|
292
301
|
let Pt = 0, et;
|
|
293
|
-
function
|
|
302
|
+
function bt() {
|
|
294
303
|
Pt++;
|
|
295
304
|
}
|
|
296
|
-
function
|
|
305
|
+
function mt() {
|
|
297
306
|
if (--Pt > 0)
|
|
298
307
|
return;
|
|
299
308
|
let t;
|
|
@@ -312,7 +321,7 @@ function bt() {
|
|
|
312
321
|
}
|
|
313
322
|
if (t) throw t;
|
|
314
323
|
}
|
|
315
|
-
class
|
|
324
|
+
class Ne {
|
|
316
325
|
// TODO isolatedDeclarations "__v_skip"
|
|
317
326
|
constructor(e) {
|
|
318
327
|
this.computed = e, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
|
|
@@ -323,7 +332,7 @@ class Ce {
|
|
|
323
332
|
this.version++, this.notify(e);
|
|
324
333
|
}
|
|
325
334
|
notify(e) {
|
|
326
|
-
|
|
335
|
+
bt();
|
|
327
336
|
try {
|
|
328
337
|
if (process.env.NODE_ENV !== "production")
|
|
329
338
|
for (let n = this.subsHead; n; n = n.nextSub)
|
|
@@ -338,15 +347,15 @@ class Ce {
|
|
|
338
347
|
for (let n = this.subs; n; n = n.prevSub)
|
|
339
348
|
n.sub.notify() && n.sub.dep.notify();
|
|
340
349
|
} finally {
|
|
341
|
-
|
|
350
|
+
mt();
|
|
342
351
|
}
|
|
343
352
|
}
|
|
344
353
|
}
|
|
345
354
|
const Ft = /* @__PURE__ */ new WeakMap(), nt = Symbol(
|
|
346
355
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
347
|
-
),
|
|
356
|
+
), vt = Symbol(
|
|
348
357
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
349
|
-
),
|
|
358
|
+
), Rt = Symbol(
|
|
350
359
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
351
360
|
);
|
|
352
361
|
function I(t, e, n, s, r, o) {
|
|
@@ -363,52 +372,52 @@ function I(t, e, n, s, r, o) {
|
|
|
363
372
|
oldTarget: o
|
|
364
373
|
}) : a.trigger());
|
|
365
374
|
};
|
|
366
|
-
if (
|
|
375
|
+
if (bt(), e === "clear")
|
|
367
376
|
i.forEach(c);
|
|
368
377
|
else {
|
|
369
|
-
const a = d(t),
|
|
378
|
+
const a = d(t), u = a && Z(n);
|
|
370
379
|
if (a && n === "length") {
|
|
371
|
-
const
|
|
372
|
-
i.forEach((l,
|
|
373
|
-
(
|
|
380
|
+
const p = Number(s);
|
|
381
|
+
i.forEach((l, h) => {
|
|
382
|
+
(h === "length" || h === Rt || !U(h) && h >= p) && c(l);
|
|
374
383
|
});
|
|
375
384
|
} else
|
|
376
|
-
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)),
|
|
385
|
+
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(Rt)), e) {
|
|
377
386
|
case "add":
|
|
378
|
-
a ?
|
|
387
|
+
a ? u && c(i.get("length")) : (c(i.get(nt)), K(t) && c(i.get(vt)));
|
|
379
388
|
break;
|
|
380
389
|
case "delete":
|
|
381
|
-
a || (c(i.get(nt)), K(t) && c(i.get(
|
|
390
|
+
a || (c(i.get(nt)), K(t) && c(i.get(vt)));
|
|
382
391
|
break;
|
|
383
392
|
case "set":
|
|
384
393
|
K(t) && c(i.get(nt));
|
|
385
394
|
break;
|
|
386
395
|
}
|
|
387
396
|
}
|
|
388
|
-
|
|
397
|
+
mt();
|
|
389
398
|
}
|
|
390
|
-
function
|
|
399
|
+
function ve(t, e) {
|
|
391
400
|
const n = Ft.get(t);
|
|
392
401
|
return n && n.get(e);
|
|
393
402
|
}
|
|
394
|
-
function
|
|
395
|
-
const e =
|
|
403
|
+
function D(t) {
|
|
404
|
+
const e = f(t);
|
|
396
405
|
return e === t || y(t) ? e : e.map(v);
|
|
397
406
|
}
|
|
398
|
-
function
|
|
399
|
-
return t =
|
|
407
|
+
function yt(t) {
|
|
408
|
+
return t = f(t), t;
|
|
400
409
|
}
|
|
401
410
|
function R(t, e) {
|
|
402
|
-
return E(t) ?
|
|
411
|
+
return E(t) ? St(t) ? L(v(e)) : L(e) : v(e);
|
|
403
412
|
}
|
|
404
|
-
const
|
|
413
|
+
const Re = {
|
|
405
414
|
__proto__: null,
|
|
406
415
|
[Symbol.iterator]() {
|
|
407
416
|
return rt(this, Symbol.iterator, (t) => R(this, t));
|
|
408
417
|
},
|
|
409
418
|
concat(...t) {
|
|
410
|
-
return
|
|
411
|
-
...t.map((e) => d(e) ?
|
|
419
|
+
return D(this).concat(
|
|
420
|
+
...t.map((e) => d(e) ? D(e) : e)
|
|
412
421
|
);
|
|
413
422
|
},
|
|
414
423
|
entries() {
|
|
@@ -464,7 +473,7 @@ const Ve = {
|
|
|
464
473
|
return st(this, "indexOf", t);
|
|
465
474
|
},
|
|
466
475
|
join(t) {
|
|
467
|
-
return
|
|
476
|
+
return D(this).join(t);
|
|
468
477
|
},
|
|
469
478
|
// keys() iterator only reads `length`, no optimization required
|
|
470
479
|
lastIndexOf(...t) {
|
|
@@ -474,68 +483,68 @@ const Ve = {
|
|
|
474
483
|
return O(this, "map", t, e, void 0, arguments);
|
|
475
484
|
},
|
|
476
485
|
pop() {
|
|
477
|
-
return
|
|
486
|
+
return j(this, "pop");
|
|
478
487
|
},
|
|
479
488
|
push(...t) {
|
|
480
|
-
return
|
|
489
|
+
return j(this, "push", t);
|
|
481
490
|
},
|
|
482
491
|
reduce(t, ...e) {
|
|
483
|
-
return
|
|
492
|
+
return Ct(this, "reduce", t, e);
|
|
484
493
|
},
|
|
485
494
|
reduceRight(t, ...e) {
|
|
486
|
-
return
|
|
495
|
+
return Ct(this, "reduceRight", t, e);
|
|
487
496
|
},
|
|
488
497
|
shift() {
|
|
489
|
-
return
|
|
498
|
+
return j(this, "shift");
|
|
490
499
|
},
|
|
491
500
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
492
501
|
some(t, e) {
|
|
493
502
|
return O(this, "some", t, e, void 0, arguments);
|
|
494
503
|
},
|
|
495
504
|
splice(...t) {
|
|
496
|
-
return
|
|
505
|
+
return j(this, "splice", t);
|
|
497
506
|
},
|
|
498
507
|
toReversed() {
|
|
499
|
-
return
|
|
508
|
+
return D(this).toReversed();
|
|
500
509
|
},
|
|
501
510
|
toSorted(t) {
|
|
502
|
-
return
|
|
511
|
+
return D(this).toSorted(t);
|
|
503
512
|
},
|
|
504
513
|
toSpliced(...t) {
|
|
505
|
-
return
|
|
514
|
+
return D(this).toSpliced(...t);
|
|
506
515
|
},
|
|
507
516
|
unshift(...t) {
|
|
508
|
-
return
|
|
517
|
+
return j(this, "unshift", t);
|
|
509
518
|
},
|
|
510
519
|
values() {
|
|
511
520
|
return rt(this, "values", (t) => R(this, t));
|
|
512
521
|
}
|
|
513
522
|
};
|
|
514
523
|
function rt(t, e, n) {
|
|
515
|
-
const s =
|
|
524
|
+
const s = yt(t), r = s[e]();
|
|
516
525
|
return s !== t && !y(t) && (r._next = r.next, r.next = () => {
|
|
517
526
|
const o = r._next();
|
|
518
527
|
return o.done || (o.value = n(o.value)), o;
|
|
519
528
|
}), r;
|
|
520
529
|
}
|
|
521
|
-
const
|
|
530
|
+
const Ce = Array.prototype;
|
|
522
531
|
function O(t, e, n, s, r, o) {
|
|
523
|
-
const i =
|
|
524
|
-
if (a !==
|
|
532
|
+
const i = yt(t), c = i !== t && !y(t), a = i[e];
|
|
533
|
+
if (a !== Ce[e]) {
|
|
525
534
|
const l = a.apply(t, o);
|
|
526
535
|
return c ? v(l) : l;
|
|
527
536
|
}
|
|
528
|
-
let
|
|
529
|
-
i !== t && (c ?
|
|
530
|
-
return n.call(this, R(t, l),
|
|
531
|
-
} : n.length > 2 && (
|
|
532
|
-
return n.call(this, l,
|
|
537
|
+
let u = n;
|
|
538
|
+
i !== t && (c ? u = function(l, h) {
|
|
539
|
+
return n.call(this, R(t, l), h, t);
|
|
540
|
+
} : n.length > 2 && (u = function(l, h) {
|
|
541
|
+
return n.call(this, l, h, t);
|
|
533
542
|
}));
|
|
534
|
-
const
|
|
535
|
-
return c && r ? r(
|
|
543
|
+
const p = a.call(i, u, s);
|
|
544
|
+
return c && r ? r(p) : p;
|
|
536
545
|
}
|
|
537
|
-
function
|
|
538
|
-
const r =
|
|
546
|
+
function Ct(t, e, n, s) {
|
|
547
|
+
const r = yt(t);
|
|
539
548
|
let o = n;
|
|
540
549
|
return r !== t && (y(t) ? n.length > 3 && (o = function(i, c, a) {
|
|
541
550
|
return n.call(this, i, c, a, t);
|
|
@@ -544,21 +553,21 @@ function vt(t, e, n, s) {
|
|
|
544
553
|
}), r[e](o, ...s);
|
|
545
554
|
}
|
|
546
555
|
function st(t, e, n) {
|
|
547
|
-
const s =
|
|
548
|
-
return (r === -1 || r === !1) && H(n[0]) ? (n[0] =
|
|
556
|
+
const s = f(t), r = s[e](...n);
|
|
557
|
+
return (r === -1 || r === !1) && H(n[0]) ? (n[0] = f(n[0]), s[e](...n)) : r;
|
|
549
558
|
}
|
|
550
|
-
function
|
|
551
|
-
|
|
552
|
-
const s =
|
|
553
|
-
return
|
|
559
|
+
function j(t, e, n = []) {
|
|
560
|
+
bt();
|
|
561
|
+
const s = f(t)[e].apply(t, n);
|
|
562
|
+
return mt(), s;
|
|
554
563
|
}
|
|
555
|
-
const
|
|
556
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(
|
|
564
|
+
const Ie = /* @__PURE__ */ de("__proto__,__v_isRef,__isVue"), kt = new Set(
|
|
565
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(U)
|
|
557
566
|
);
|
|
558
|
-
function
|
|
559
|
-
return
|
|
567
|
+
function Ae(t) {
|
|
568
|
+
return U(t) || (t = String(t)), f(this).hasOwnProperty(t);
|
|
560
569
|
}
|
|
561
|
-
class
|
|
570
|
+
class jt {
|
|
562
571
|
constructor(e = !1, n = !1) {
|
|
563
572
|
this._isReadonly = e, this._isShallow = n;
|
|
564
573
|
}
|
|
@@ -572,16 +581,16 @@ class kt {
|
|
|
572
581
|
if (n === "__v_isShallow")
|
|
573
582
|
return o;
|
|
574
583
|
if (n === "__v_raw")
|
|
575
|
-
return s === (r ? o ?
|
|
584
|
+
return s === (r ? o ? je : Lt : o ? ke : Ht).get(e) || // receiver is not the reactive proxy, but has the same prototype
|
|
576
585
|
// this means the receiver is a user proxy of the reactive proxy
|
|
577
586
|
Object.getPrototypeOf(e) === Object.getPrototypeOf(s) ? e : void 0;
|
|
578
587
|
const i = d(e);
|
|
579
588
|
if (!r) {
|
|
580
589
|
let a;
|
|
581
|
-
if (i && (a =
|
|
590
|
+
if (i && (a = Re[n]))
|
|
582
591
|
return a;
|
|
583
592
|
if (n === "hasOwnProperty")
|
|
584
|
-
return
|
|
593
|
+
return Ae;
|
|
585
594
|
}
|
|
586
595
|
const c = Reflect.get(
|
|
587
596
|
e,
|
|
@@ -591,16 +600,16 @@ class kt {
|
|
|
591
600
|
// its class methods
|
|
592
601
|
g(e) ? e : s
|
|
593
602
|
);
|
|
594
|
-
if ((
|
|
603
|
+
if ((U(n) ? kt.has(n) : Ie(n)) || o)
|
|
595
604
|
return c;
|
|
596
605
|
if (g(c)) {
|
|
597
606
|
const a = i && Z(n) ? c : c.value;
|
|
598
|
-
return r && _(a) ?
|
|
607
|
+
return r && _(a) ? ht(a) : a;
|
|
599
608
|
}
|
|
600
|
-
return _(c) ? r ?
|
|
609
|
+
return _(c) ? r ? ht(c) : zt(c) : c;
|
|
601
610
|
}
|
|
602
611
|
}
|
|
603
|
-
class
|
|
612
|
+
class $e extends jt {
|
|
604
613
|
constructor(e = !1) {
|
|
605
614
|
super(!1, e);
|
|
606
615
|
}
|
|
@@ -608,34 +617,34 @@ class De extends kt {
|
|
|
608
617
|
let o = e[n];
|
|
609
618
|
const i = d(e) && Z(n);
|
|
610
619
|
if (!this._isShallow) {
|
|
611
|
-
const
|
|
612
|
-
if (!y(s) && !E(s) && (o =
|
|
613
|
-
return
|
|
620
|
+
const u = E(o);
|
|
621
|
+
if (!y(s) && !E(s) && (o = f(o), s = f(s)), !i && g(o) && !g(s))
|
|
622
|
+
return u ? (process.env.NODE_ENV !== "production" && M(
|
|
614
623
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
615
624
|
e[n]
|
|
616
625
|
), !0) : (o.value = s, !0);
|
|
617
626
|
}
|
|
618
|
-
const c = i ? Number(n) < e.length :
|
|
627
|
+
const c = i ? Number(n) < e.length : ut(e, n), a = Reflect.set(
|
|
619
628
|
e,
|
|
620
629
|
n,
|
|
621
630
|
s,
|
|
622
631
|
g(e) ? e : r
|
|
623
632
|
);
|
|
624
|
-
return e ===
|
|
633
|
+
return e === f(r) && (c ? dt(s, o) && I(e, "set", n, s, o) : I(e, "add", n, s)), a;
|
|
625
634
|
}
|
|
626
635
|
deleteProperty(e, n) {
|
|
627
|
-
const s =
|
|
636
|
+
const s = ut(e, n), r = e[n], o = Reflect.deleteProperty(e, n);
|
|
628
637
|
return o && s && I(e, "delete", n, void 0, r), o;
|
|
629
638
|
}
|
|
630
639
|
has(e, n) {
|
|
631
640
|
const s = Reflect.has(e, n);
|
|
632
|
-
return !
|
|
641
|
+
return !U(n) || kt.has(n), s;
|
|
633
642
|
}
|
|
634
643
|
ownKeys(e) {
|
|
635
644
|
return Reflect.ownKeys(e);
|
|
636
645
|
}
|
|
637
646
|
}
|
|
638
|
-
class
|
|
647
|
+
class De extends jt {
|
|
639
648
|
constructor(e = !1) {
|
|
640
649
|
super(!0, e);
|
|
641
650
|
}
|
|
@@ -652,16 +661,16 @@ class Te extends kt {
|
|
|
652
661
|
), !0;
|
|
653
662
|
}
|
|
654
663
|
}
|
|
655
|
-
const
|
|
656
|
-
function
|
|
664
|
+
const Ve = /* @__PURE__ */ new $e(), xe = /* @__PURE__ */ new De(), ft = (t) => t, W = (t) => Reflect.getPrototypeOf(t);
|
|
665
|
+
function Te(t, e, n) {
|
|
657
666
|
return function(...s) {
|
|
658
|
-
const r = this.__v_raw, o =
|
|
667
|
+
const r = this.__v_raw, o = f(r), i = K(o), c = t === "entries" || t === Symbol.iterator && i, a = r[t](...s), u = n ? ft : e ? L : v;
|
|
659
668
|
return {
|
|
660
669
|
// iterator protocol
|
|
661
670
|
next() {
|
|
662
|
-
const { value:
|
|
663
|
-
return l ? { value:
|
|
664
|
-
value: c ? [
|
|
671
|
+
const { value: p, done: l } = a.next();
|
|
672
|
+
return l ? { value: p, done: l } : {
|
|
673
|
+
value: c ? [u(p[0]), u(p[1])] : u(p),
|
|
665
674
|
done: l
|
|
666
675
|
};
|
|
667
676
|
},
|
|
@@ -677,38 +686,38 @@ function q(t) {
|
|
|
677
686
|
if (process.env.NODE_ENV !== "production") {
|
|
678
687
|
const n = e[0] ? `on key "${e[0]}" ` : "";
|
|
679
688
|
M(
|
|
680
|
-
`${
|
|
681
|
-
|
|
689
|
+
`${ye(t)} operation ${n}failed: target is readonly.`,
|
|
690
|
+
f(this)
|
|
682
691
|
);
|
|
683
692
|
}
|
|
684
693
|
return t === "delete" ? !1 : t === "clear" ? void 0 : this;
|
|
685
694
|
};
|
|
686
695
|
}
|
|
687
|
-
function
|
|
696
|
+
function Me(t, e) {
|
|
688
697
|
const n = {
|
|
689
698
|
get(r) {
|
|
690
|
-
const o = this.__v_raw, i =
|
|
699
|
+
const o = this.__v_raw, i = f(o), c = f(r), { has: a } = W(i), u = e ? ft : t ? L : v;
|
|
691
700
|
if (a.call(i, r))
|
|
692
|
-
return
|
|
701
|
+
return u(o.get(r));
|
|
693
702
|
if (a.call(i, c))
|
|
694
|
-
return
|
|
703
|
+
return u(o.get(c));
|
|
695
704
|
o !== i && o.get(r);
|
|
696
705
|
},
|
|
697
706
|
get size() {
|
|
698
707
|
const r = this.__v_raw;
|
|
699
|
-
return !t && (
|
|
708
|
+
return !t && (f(r), void 0), r.size;
|
|
700
709
|
},
|
|
701
710
|
has(r) {
|
|
702
711
|
const o = this.__v_raw;
|
|
703
|
-
|
|
704
|
-
const i =
|
|
712
|
+
f(o);
|
|
713
|
+
const i = f(r);
|
|
705
714
|
return r === i ? o.has(r) : o.has(r) || o.has(i);
|
|
706
715
|
},
|
|
707
716
|
forEach(r, o) {
|
|
708
717
|
const i = this, c = i.__v_raw;
|
|
709
|
-
|
|
710
|
-
const a = e ?
|
|
711
|
-
return c.forEach((
|
|
718
|
+
f(c);
|
|
719
|
+
const a = e ? ft : t ? L : v;
|
|
720
|
+
return c.forEach((u, p) => r.call(o, a(u), a(p), i));
|
|
712
721
|
}
|
|
713
722
|
};
|
|
714
723
|
return F(
|
|
@@ -720,27 +729,27 @@ function je(t, e) {
|
|
|
720
729
|
clear: q("clear")
|
|
721
730
|
} : {
|
|
722
731
|
add(r) {
|
|
723
|
-
!e && !y(r) && !E(r) && (r =
|
|
724
|
-
const o =
|
|
725
|
-
return
|
|
732
|
+
!e && !y(r) && !E(r) && (r = f(r));
|
|
733
|
+
const o = f(this);
|
|
734
|
+
return W(o).has.call(o, r) || (o.add(r), I(o, "add", r, r)), this;
|
|
726
735
|
},
|
|
727
736
|
set(r, o) {
|
|
728
|
-
!e && !y(o) && !E(o) && (o =
|
|
729
|
-
const i =
|
|
730
|
-
let
|
|
731
|
-
|
|
732
|
-
const
|
|
733
|
-
return i.set(r, o),
|
|
737
|
+
!e && !y(o) && !E(o) && (o = f(o));
|
|
738
|
+
const i = f(this), { has: c, get: a } = W(i);
|
|
739
|
+
let u = c.call(i, r);
|
|
740
|
+
u ? process.env.NODE_ENV !== "production" && It(i, c, r) : (r = f(r), u = c.call(i, r));
|
|
741
|
+
const p = a.call(i, r);
|
|
742
|
+
return i.set(r, o), u ? dt(o, p) && I(i, "set", r, o, p) : I(i, "add", r, o), this;
|
|
734
743
|
},
|
|
735
744
|
delete(r) {
|
|
736
|
-
const o =
|
|
745
|
+
const o = f(this), { has: i, get: c } = W(o);
|
|
737
746
|
let a = i.call(o, r);
|
|
738
|
-
a ? process.env.NODE_ENV !== "production" &&
|
|
739
|
-
const
|
|
740
|
-
return a && I(o, "delete", r, void 0,
|
|
747
|
+
a ? process.env.NODE_ENV !== "production" && It(o, i, r) : (r = f(r), a = i.call(o, r));
|
|
748
|
+
const u = c ? c.call(o, r) : void 0, p = o.delete(r);
|
|
749
|
+
return a && I(o, "delete", r, void 0, u), p;
|
|
741
750
|
},
|
|
742
751
|
clear() {
|
|
743
|
-
const r =
|
|
752
|
+
const r = f(this), o = r.size !== 0, i = process.env.NODE_ENV !== "production" ? K(r) ? new Map(r) : new Set(r) : void 0, c = r.clear();
|
|
744
753
|
return o && I(
|
|
745
754
|
r,
|
|
746
755
|
"clear",
|
|
@@ -756,24 +765,24 @@ function je(t, e) {
|
|
|
756
765
|
"entries",
|
|
757
766
|
Symbol.iterator
|
|
758
767
|
].forEach((r) => {
|
|
759
|
-
n[r] =
|
|
768
|
+
n[r] = Te(r, t, e);
|
|
760
769
|
}), n;
|
|
761
770
|
}
|
|
762
771
|
function Kt(t, e) {
|
|
763
|
-
const n =
|
|
772
|
+
const n = Me(t, e);
|
|
764
773
|
return (s, r, o) => r === "__v_isReactive" ? !t : r === "__v_isReadonly" ? t : r === "__v_raw" ? s : Reflect.get(
|
|
765
|
-
|
|
774
|
+
ut(n, r) && r in s ? n : s,
|
|
766
775
|
r,
|
|
767
776
|
o
|
|
768
777
|
);
|
|
769
778
|
}
|
|
770
|
-
const
|
|
779
|
+
const Pe = {
|
|
771
780
|
get: /* @__PURE__ */ Kt(!1, !1)
|
|
772
|
-
},
|
|
781
|
+
}, Fe = {
|
|
773
782
|
get: /* @__PURE__ */ Kt(!0, !1)
|
|
774
783
|
};
|
|
775
|
-
function
|
|
776
|
-
const s =
|
|
784
|
+
function It(t, e, n) {
|
|
785
|
+
const s = f(n);
|
|
777
786
|
if (s !== n && e.call(t, s)) {
|
|
778
787
|
const r = Mt(t);
|
|
779
788
|
M(
|
|
@@ -781,8 +790,8 @@ function Rt(t, e, n) {
|
|
|
781
790
|
);
|
|
782
791
|
}
|
|
783
792
|
}
|
|
784
|
-
const Ht = /* @__PURE__ */ new WeakMap(),
|
|
785
|
-
function
|
|
793
|
+
const Ht = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap();
|
|
794
|
+
function Ke(t) {
|
|
786
795
|
switch (t) {
|
|
787
796
|
case "Object":
|
|
788
797
|
case "Array":
|
|
@@ -796,28 +805,28 @@ function ze(t) {
|
|
|
796
805
|
return 0;
|
|
797
806
|
}
|
|
798
807
|
}
|
|
799
|
-
function
|
|
800
|
-
return t.__v_skip || !Object.isExtensible(t) ? 0 :
|
|
808
|
+
function He(t) {
|
|
809
|
+
return t.__v_skip || !Object.isExtensible(t) ? 0 : Ke(Mt(t));
|
|
801
810
|
}
|
|
802
811
|
function zt(t) {
|
|
803
|
-
return E(t) ? t :
|
|
812
|
+
return E(t) ? t : Ut(
|
|
804
813
|
t,
|
|
805
814
|
!1,
|
|
806
|
-
|
|
807
|
-
|
|
815
|
+
Ve,
|
|
816
|
+
Pe,
|
|
808
817
|
Ht
|
|
809
818
|
);
|
|
810
819
|
}
|
|
811
|
-
function
|
|
812
|
-
return
|
|
820
|
+
function ht(t) {
|
|
821
|
+
return Ut(
|
|
813
822
|
t,
|
|
814
823
|
!0,
|
|
815
|
-
|
|
816
|
-
|
|
824
|
+
xe,
|
|
825
|
+
Fe,
|
|
817
826
|
Lt
|
|
818
827
|
);
|
|
819
828
|
}
|
|
820
|
-
function
|
|
829
|
+
function Ut(t, e, n, s, r) {
|
|
821
830
|
if (!_(t))
|
|
822
831
|
return process.env.NODE_ENV !== "production" && M(
|
|
823
832
|
`value cannot be made ${e ? "readonly" : "reactive"}: ${String(
|
|
@@ -826,7 +835,7 @@ function Wt(t, e, n, s, r) {
|
|
|
826
835
|
), t;
|
|
827
836
|
if (t.__v_raw && !(e && t.__v_isReactive))
|
|
828
837
|
return t;
|
|
829
|
-
const o =
|
|
838
|
+
const o = He(t);
|
|
830
839
|
if (o === 0)
|
|
831
840
|
return t;
|
|
832
841
|
const i = r.get(t);
|
|
@@ -838,8 +847,8 @@ function Wt(t, e, n, s, r) {
|
|
|
838
847
|
);
|
|
839
848
|
return r.set(t, c), c;
|
|
840
849
|
}
|
|
841
|
-
function
|
|
842
|
-
return E(t) ?
|
|
850
|
+
function St(t) {
|
|
851
|
+
return E(t) ? St(t.__v_raw) : !!(t && t.__v_isReactive);
|
|
843
852
|
}
|
|
844
853
|
function E(t) {
|
|
845
854
|
return !!(t && t.__v_isReadonly);
|
|
@@ -850,23 +859,23 @@ function y(t) {
|
|
|
850
859
|
function H(t) {
|
|
851
860
|
return t ? !!t.__v_raw : !1;
|
|
852
861
|
}
|
|
853
|
-
function
|
|
862
|
+
function f(t) {
|
|
854
863
|
const e = t && t.__v_raw;
|
|
855
|
-
return e ?
|
|
864
|
+
return e ? f(e) : t;
|
|
856
865
|
}
|
|
857
|
-
const v = (t) => _(t) ? zt(t) : t, L = (t) => _(t) ?
|
|
866
|
+
const v = (t) => _(t) ? zt(t) : t, L = (t) => _(t) ? ht(t) : t;
|
|
858
867
|
function g(t) {
|
|
859
868
|
return t ? t.__v_isRef === !0 : !1;
|
|
860
869
|
}
|
|
861
|
-
function
|
|
862
|
-
return
|
|
870
|
+
function Wt(t) {
|
|
871
|
+
return Le(t, !1);
|
|
863
872
|
}
|
|
864
|
-
function
|
|
865
|
-
return g(t) ? t : new
|
|
873
|
+
function Le(t, e) {
|
|
874
|
+
return g(t) ? t : new ze(t, e);
|
|
866
875
|
}
|
|
867
|
-
class
|
|
876
|
+
class ze {
|
|
868
877
|
constructor(e, n) {
|
|
869
|
-
this.dep = new
|
|
878
|
+
this.dep = new Ne(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : f(e), this._value = n ? e : v(e), this.__v_isShallow = n;
|
|
870
879
|
}
|
|
871
880
|
get value() {
|
|
872
881
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -877,7 +886,7 @@ class qe {
|
|
|
877
886
|
}
|
|
878
887
|
set value(e) {
|
|
879
888
|
const n = this._rawValue, s = this.__v_isShallow || y(e) || E(e);
|
|
880
|
-
e = s ? e :
|
|
889
|
+
e = s ? e : f(e), dt(e, n) && (this._rawValue = e, this._value = s ? e : v(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
881
890
|
target: this,
|
|
882
891
|
type: "set",
|
|
883
892
|
key: "value",
|
|
@@ -886,12 +895,12 @@ class qe {
|
|
|
886
895
|
}) : this.dep.trigger());
|
|
887
896
|
}
|
|
888
897
|
}
|
|
889
|
-
function
|
|
898
|
+
function Ue(t) {
|
|
890
899
|
return g(t) ? t.value : t;
|
|
891
900
|
}
|
|
892
|
-
class
|
|
901
|
+
class We {
|
|
893
902
|
constructor(e, n, s) {
|
|
894
|
-
this._object = e, this._key = n, this._defaultValue = s, this.__v_isRef = !0, this._value = void 0, this._raw =
|
|
903
|
+
this._object = e, this._key = n, this._defaultValue = s, this.__v_isRef = !0, this._value = void 0, this._raw = f(e);
|
|
895
904
|
let r = !0, o = e;
|
|
896
905
|
if (!d(e) || !Z(String(n)))
|
|
897
906
|
do
|
|
@@ -901,7 +910,7 @@ class Be {
|
|
|
901
910
|
}
|
|
902
911
|
get value() {
|
|
903
912
|
let e = this._object[this._key];
|
|
904
|
-
return this._shallow && (e =
|
|
913
|
+
return this._shallow && (e = Ue(e)), this._value = e === void 0 ? this._defaultValue : e;
|
|
905
914
|
}
|
|
906
915
|
set value(e) {
|
|
907
916
|
if (this._shallow && g(this._raw[this._key])) {
|
|
@@ -914,10 +923,10 @@ class Be {
|
|
|
914
923
|
this._object[this._key] = e;
|
|
915
924
|
}
|
|
916
925
|
get dep() {
|
|
917
|
-
return
|
|
926
|
+
return ve(this._raw, this._key);
|
|
918
927
|
}
|
|
919
928
|
}
|
|
920
|
-
class
|
|
929
|
+
class qe {
|
|
921
930
|
constructor(e) {
|
|
922
931
|
this._getter = e, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
|
|
923
932
|
}
|
|
@@ -925,26 +934,26 @@ class Ye {
|
|
|
925
934
|
return this._value = this._getter();
|
|
926
935
|
}
|
|
927
936
|
}
|
|
928
|
-
function
|
|
929
|
-
return g(t) ? t :
|
|
937
|
+
function Je(t, e, n) {
|
|
938
|
+
return g(t) ? t : A(t) ? new qe(t) : _(t) && arguments.length > 1 ? Be(t, e, n) : Wt(t);
|
|
930
939
|
}
|
|
931
|
-
function
|
|
932
|
-
return new
|
|
940
|
+
function Be(t, e, n) {
|
|
941
|
+
return new We(t, e, n);
|
|
933
942
|
}
|
|
934
|
-
const
|
|
935
|
-
function
|
|
936
|
-
|
|
943
|
+
const $ = [];
|
|
944
|
+
function Ye(t) {
|
|
945
|
+
$.push(t);
|
|
937
946
|
}
|
|
938
|
-
function
|
|
939
|
-
|
|
947
|
+
function Ge() {
|
|
948
|
+
$.pop();
|
|
940
949
|
}
|
|
941
950
|
let ot = !1;
|
|
942
951
|
function P(t, ...e) {
|
|
943
952
|
if (ot) return;
|
|
944
953
|
ot = !0;
|
|
945
|
-
const n =
|
|
954
|
+
const n = $.length ? $[$.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = Qe();
|
|
946
955
|
if (s)
|
|
947
|
-
|
|
956
|
+
Et(
|
|
948
957
|
s,
|
|
949
958
|
n,
|
|
950
959
|
11,
|
|
@@ -965,12 +974,12 @@ function P(t, ...e) {
|
|
|
965
974
|
else {
|
|
966
975
|
const o = [`[Vue warn]: ${t}`, ...e];
|
|
967
976
|
r.length && o.push(`
|
|
968
|
-
`, ...
|
|
977
|
+
`, ...Xe(r)), console.warn(...o);
|
|
969
978
|
}
|
|
970
979
|
ot = !1;
|
|
971
980
|
}
|
|
972
|
-
function
|
|
973
|
-
let t =
|
|
981
|
+
function Qe() {
|
|
982
|
+
let t = $[$.length - 1];
|
|
974
983
|
if (!t)
|
|
975
984
|
return [];
|
|
976
985
|
const e = [];
|
|
@@ -985,29 +994,29 @@ function tn() {
|
|
|
985
994
|
}
|
|
986
995
|
return e;
|
|
987
996
|
}
|
|
988
|
-
function
|
|
997
|
+
function Xe(t) {
|
|
989
998
|
const e = [];
|
|
990
999
|
return t.forEach((n, s) => {
|
|
991
1000
|
e.push(...s === 0 ? [] : [`
|
|
992
|
-
`], ...
|
|
1001
|
+
`], ...Ze(n));
|
|
993
1002
|
}), e;
|
|
994
1003
|
}
|
|
995
|
-
function
|
|
1004
|
+
function Ze({ vnode: t, recurseCount: e }) {
|
|
996
1005
|
const n = e > 0 ? `... (${e} recursive calls)` : "", s = t.component ? t.component.parent == null : !1, r = ` at <${ie(
|
|
997
1006
|
t.component,
|
|
998
1007
|
t.type,
|
|
999
1008
|
s
|
|
1000
1009
|
)}`, o = ">" + n;
|
|
1001
|
-
return t.props ? [r, ...
|
|
1010
|
+
return t.props ? [r, ...tn(t.props), o] : [r + o];
|
|
1002
1011
|
}
|
|
1003
|
-
function
|
|
1012
|
+
function tn(t) {
|
|
1004
1013
|
const e = [], n = Object.keys(t);
|
|
1005
1014
|
return n.slice(0, 3).forEach((s) => {
|
|
1006
1015
|
e.push(...qt(s, t[s]));
|
|
1007
1016
|
}), n.length > 3 && e.push(" ..."), e;
|
|
1008
1017
|
}
|
|
1009
1018
|
function qt(t, e, n) {
|
|
1010
|
-
return N(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : g(e) ? (e = qt(t,
|
|
1019
|
+
return N(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : g(e) ? (e = qt(t, f(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : A(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = f(e), n ? e : [`${t}=`, e]);
|
|
1011
1020
|
}
|
|
1012
1021
|
const Jt = {
|
|
1013
1022
|
sp: "serverPrefetch hook",
|
|
@@ -1042,7 +1051,7 @@ const Jt = {
|
|
|
1042
1051
|
15: "component update",
|
|
1043
1052
|
16: "app unmount cleanup function"
|
|
1044
1053
|
};
|
|
1045
|
-
function
|
|
1054
|
+
function Et(t, e, n, s) {
|
|
1046
1055
|
try {
|
|
1047
1056
|
return s ? t(...s) : t();
|
|
1048
1057
|
} catch (r) {
|
|
@@ -1050,34 +1059,34 @@ function St(t, e, n, s) {
|
|
|
1050
1059
|
}
|
|
1051
1060
|
}
|
|
1052
1061
|
function Bt(t, e, n, s = !0) {
|
|
1053
|
-
const r = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config ||
|
|
1062
|
+
const r = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || at;
|
|
1054
1063
|
if (e) {
|
|
1055
1064
|
let c = e.parent;
|
|
1056
|
-
const a = e.proxy,
|
|
1065
|
+
const a = e.proxy, u = process.env.NODE_ENV !== "production" ? Jt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
1057
1066
|
for (; c; ) {
|
|
1058
|
-
const
|
|
1059
|
-
if (
|
|
1060
|
-
for (let l = 0; l <
|
|
1061
|
-
if (
|
|
1067
|
+
const p = c.ec;
|
|
1068
|
+
if (p) {
|
|
1069
|
+
for (let l = 0; l < p.length; l++)
|
|
1070
|
+
if (p[l](t, a, u) === !1)
|
|
1062
1071
|
return;
|
|
1063
1072
|
}
|
|
1064
1073
|
c = c.parent;
|
|
1065
1074
|
}
|
|
1066
1075
|
if (o) {
|
|
1067
|
-
|
|
1076
|
+
Et(o, null, 10, [
|
|
1068
1077
|
t,
|
|
1069
1078
|
a,
|
|
1070
|
-
|
|
1079
|
+
u
|
|
1071
1080
|
]);
|
|
1072
1081
|
return;
|
|
1073
1082
|
}
|
|
1074
1083
|
}
|
|
1075
|
-
|
|
1084
|
+
en(t, n, r, s, i);
|
|
1076
1085
|
}
|
|
1077
|
-
function
|
|
1086
|
+
function en(t, e, n, s = !0, r = !1) {
|
|
1078
1087
|
if (process.env.NODE_ENV !== "production") {
|
|
1079
1088
|
const o = Jt[e];
|
|
1080
|
-
if (n &&
|
|
1089
|
+
if (n && Ye(n), P(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Ge(), s)
|
|
1081
1090
|
throw t;
|
|
1082
1091
|
console.error(t);
|
|
1083
1092
|
} else {
|
|
@@ -1089,11 +1098,11 @@ function sn(t, e, n, s = !0, r = !1) {
|
|
|
1089
1098
|
const m = [];
|
|
1090
1099
|
let w = -1;
|
|
1091
1100
|
const T = [];
|
|
1092
|
-
let C = null,
|
|
1093
|
-
const
|
|
1101
|
+
let C = null, V = 0;
|
|
1102
|
+
const nn = /* @__PURE__ */ Promise.resolve();
|
|
1094
1103
|
let pt = null;
|
|
1095
|
-
const
|
|
1096
|
-
function
|
|
1104
|
+
const rn = 100;
|
|
1105
|
+
function sn(t) {
|
|
1097
1106
|
let e = w + 1, n = m.length;
|
|
1098
1107
|
for (; e < n; ) {
|
|
1099
1108
|
const s = e + n >>> 1, r = m[s], o = z(r);
|
|
@@ -1101,20 +1110,20 @@ function ln(t) {
|
|
|
1101
1110
|
}
|
|
1102
1111
|
return e;
|
|
1103
1112
|
}
|
|
1104
|
-
function
|
|
1113
|
+
function on(t) {
|
|
1105
1114
|
if (!(t.flags & 1)) {
|
|
1106
1115
|
const e = z(t), n = m[m.length - 1];
|
|
1107
1116
|
!n || // fast path when the job id is larger than the tail
|
|
1108
|
-
!(t.flags & 2) && e >= z(n) ? m.push(t) : m.splice(
|
|
1117
|
+
!(t.flags & 2) && e >= z(n) ? m.push(t) : m.splice(sn(e), 0, t), t.flags |= 1, Yt();
|
|
1109
1118
|
}
|
|
1110
1119
|
}
|
|
1111
1120
|
function Yt() {
|
|
1112
|
-
pt || (pt =
|
|
1121
|
+
pt || (pt = nn.then(Gt));
|
|
1113
1122
|
}
|
|
1114
|
-
function
|
|
1115
|
-
d(t) ? T.push(...t) : C && t.id === -1 ? C.splice(
|
|
1123
|
+
function cn(t) {
|
|
1124
|
+
d(t) ? T.push(...t) : C && t.id === -1 ? C.splice(V + 1, 0, t) : t.flags & 1 || (T.push(t), t.flags |= 1), Yt();
|
|
1116
1125
|
}
|
|
1117
|
-
function
|
|
1126
|
+
function ln(t) {
|
|
1118
1127
|
if (T.length) {
|
|
1119
1128
|
const e = [...new Set(T)].sort(
|
|
1120
1129
|
(n, s) => z(n) - z(s)
|
|
@@ -1123,24 +1132,24 @@ function fn(t) {
|
|
|
1123
1132
|
C.push(...e);
|
|
1124
1133
|
return;
|
|
1125
1134
|
}
|
|
1126
|
-
for (C = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()),
|
|
1127
|
-
const n = C[
|
|
1135
|
+
for (C = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), V = 0; V < C.length; V++) {
|
|
1136
|
+
const n = C[V];
|
|
1128
1137
|
process.env.NODE_ENV !== "production" && Qt(t, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
1129
1138
|
}
|
|
1130
|
-
C = null,
|
|
1139
|
+
C = null, V = 0;
|
|
1131
1140
|
}
|
|
1132
1141
|
}
|
|
1133
1142
|
const z = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
|
|
1134
1143
|
function Gt(t) {
|
|
1135
1144
|
process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
|
|
1136
|
-
const e = process.env.NODE_ENV !== "production" ? (n) => Qt(t, n) :
|
|
1145
|
+
const e = process.env.NODE_ENV !== "production" ? (n) => Qt(t, n) : xt;
|
|
1137
1146
|
try {
|
|
1138
1147
|
for (w = 0; w < m.length; w++) {
|
|
1139
1148
|
const n = m[w];
|
|
1140
1149
|
if (n && !(n.flags & 8)) {
|
|
1141
1150
|
if (process.env.NODE_ENV !== "production" && e(n))
|
|
1142
1151
|
continue;
|
|
1143
|
-
n.flags & 4 && (n.flags &= -2),
|
|
1152
|
+
n.flags & 4 && (n.flags &= -2), Et(
|
|
1144
1153
|
n,
|
|
1145
1154
|
n.i,
|
|
1146
1155
|
n.i ? 15 : 14
|
|
@@ -1152,12 +1161,12 @@ function Gt(t) {
|
|
|
1152
1161
|
const n = m[w];
|
|
1153
1162
|
n && (n.flags &= -2);
|
|
1154
1163
|
}
|
|
1155
|
-
w = -1, m.length = 0,
|
|
1164
|
+
w = -1, m.length = 0, ln(t), pt = null, (m.length || T.length) && Gt(t);
|
|
1156
1165
|
}
|
|
1157
1166
|
}
|
|
1158
1167
|
function Qt(t, e) {
|
|
1159
1168
|
const n = t.get(e) || 0;
|
|
1160
|
-
if (n >
|
|
1169
|
+
if (n > rn) {
|
|
1161
1170
|
const s = e.i, r = s && oe(s.type);
|
|
1162
1171
|
return Bt(
|
|
1163
1172
|
`Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
@@ -1169,12 +1178,12 @@ function Qt(t, e) {
|
|
|
1169
1178
|
}
|
|
1170
1179
|
const it = /* @__PURE__ */ new Map();
|
|
1171
1180
|
process.env.NODE_ENV !== "production" && (tt().__VUE_HMR_RUNTIME__ = {
|
|
1172
|
-
createRecord: ct(
|
|
1173
|
-
rerender: ct(
|
|
1174
|
-
reload: ct(
|
|
1181
|
+
createRecord: ct(an),
|
|
1182
|
+
rerender: ct(un),
|
|
1183
|
+
reload: ct(fn)
|
|
1175
1184
|
});
|
|
1176
1185
|
const Y = /* @__PURE__ */ new Map();
|
|
1177
|
-
function
|
|
1186
|
+
function an(t, e) {
|
|
1178
1187
|
return Y.has(t) ? !1 : (Y.set(t, {
|
|
1179
1188
|
initialDef: G(e),
|
|
1180
1189
|
instances: /* @__PURE__ */ new Set()
|
|
@@ -1183,31 +1192,31 @@ function pn(t, e) {
|
|
|
1183
1192
|
function G(t) {
|
|
1184
1193
|
return ce(t) ? t.__vccOpts : t;
|
|
1185
1194
|
}
|
|
1186
|
-
function
|
|
1195
|
+
function un(t, e) {
|
|
1187
1196
|
const n = Y.get(t);
|
|
1188
1197
|
n && (n.initialDef.render = e, [...n.instances].forEach((s) => {
|
|
1189
1198
|
e && (s.render = e, G(s.type).render = e), s.renderCache = [], s.job.flags & 8 || s.update();
|
|
1190
1199
|
}));
|
|
1191
1200
|
}
|
|
1192
|
-
function
|
|
1201
|
+
function fn(t, e) {
|
|
1193
1202
|
const n = Y.get(t);
|
|
1194
1203
|
if (!n) return;
|
|
1195
|
-
e = G(e),
|
|
1204
|
+
e = G(e), At(n.initialDef, e);
|
|
1196
1205
|
const s = [...n.instances];
|
|
1197
1206
|
for (let r = 0; r < s.length; r++) {
|
|
1198
1207
|
const o = s[r], i = G(o.type);
|
|
1199
1208
|
let c = it.get(i);
|
|
1200
|
-
c || (i !== n.initialDef &&
|
|
1209
|
+
c || (i !== n.initialDef && At(i, e), it.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(e.styles), c.delete(o)) : o.parent ? on(() => {
|
|
1201
1210
|
o.job.flags & 8 || (o.parent.update(), c.delete(o));
|
|
1202
1211
|
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1203
1212
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1204
1213
|
), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
|
|
1205
1214
|
}
|
|
1206
|
-
|
|
1215
|
+
cn(() => {
|
|
1207
1216
|
it.clear();
|
|
1208
1217
|
});
|
|
1209
1218
|
}
|
|
1210
|
-
function
|
|
1219
|
+
function At(t, e) {
|
|
1211
1220
|
F(t, e);
|
|
1212
1221
|
for (const n in t)
|
|
1213
1222
|
n !== "__file" && !(n in e) && delete t[n];
|
|
@@ -1223,41 +1232,41 @@ function ct(t) {
|
|
|
1223
1232
|
}
|
|
1224
1233
|
};
|
|
1225
1234
|
}
|
|
1226
|
-
let
|
|
1235
|
+
let x, J = [];
|
|
1227
1236
|
function Xt(t, e) {
|
|
1228
1237
|
var n, s;
|
|
1229
|
-
|
|
1238
|
+
x = t, x ? (x.enabled = !0, J.forEach(({ event: r, args: o }) => x.emit(r, ...o)), J = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
|
|
1230
1239
|
window.HTMLElement && // also exclude jsdom
|
|
1231
1240
|
// eslint-disable-next-line no-restricted-syntax
|
|
1232
1241
|
!((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
|
|
1233
1242
|
Xt(o, e);
|
|
1234
1243
|
}), setTimeout(() => {
|
|
1235
|
-
|
|
1244
|
+
x || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, J = []);
|
|
1236
1245
|
}, 3e3)) : J = [];
|
|
1237
1246
|
}
|
|
1238
|
-
let Q = null,
|
|
1239
|
-
const
|
|
1247
|
+
let Q = null, hn = null;
|
|
1248
|
+
const pn = (t) => t.__isTeleport;
|
|
1240
1249
|
function Zt(t, e) {
|
|
1241
1250
|
t.shapeFlag & 6 && t.component ? (t.transition = e, Zt(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
|
|
1242
1251
|
}
|
|
1243
1252
|
tt().requestIdleCallback;
|
|
1244
1253
|
tt().cancelIdleCallback;
|
|
1245
|
-
const
|
|
1246
|
-
process.env.NODE_ENV !== "production" && (
|
|
1254
|
+
const dn = Symbol.for("v-ndc"), _n = {};
|
|
1255
|
+
process.env.NODE_ENV !== "production" && (_n.ownKeys = (t) => (P(
|
|
1247
1256
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1248
1257
|
), Reflect.ownKeys(t)));
|
|
1249
|
-
const
|
|
1250
|
-
function
|
|
1258
|
+
const gn = {}, te = (t) => Object.getPrototypeOf(t) === gn, bn = (t) => t.__isSuspense, ee = Symbol.for("v-fgt"), mn = Symbol.for("v-txt"), yn = Symbol.for("v-cmt");
|
|
1259
|
+
function Sn(t) {
|
|
1251
1260
|
return t ? t.__v_isVNode === !0 : !1;
|
|
1252
1261
|
}
|
|
1253
|
-
const
|
|
1262
|
+
const En = (...t) => re(
|
|
1254
1263
|
...t
|
|
1255
1264
|
), ne = ({ key: t }) => t ?? null, B = ({
|
|
1256
1265
|
ref: t,
|
|
1257
1266
|
ref_key: e,
|
|
1258
1267
|
ref_for: n
|
|
1259
|
-
}) => (typeof t == "number" && (t = "" + t), t != null ? N(t) || g(t) ||
|
|
1260
|
-
function
|
|
1268
|
+
}) => (typeof t == "number" && (t = "" + t), t != null ? N(t) || g(t) || A(t) ? { i: Q, r: t, k: e, f: !!n } : t : null);
|
|
1269
|
+
function On(t, e = null, n = null, s = 0, r = null, o = t === ee ? 0 : 1, i = !1, c = !1) {
|
|
1261
1270
|
const a = {
|
|
1262
1271
|
__v_isVNode: !0,
|
|
1263
1272
|
__v_skip: !0,
|
|
@@ -1265,7 +1274,7 @@ function vn(t, e = null, n = null, s = 0, r = null, o = t === ee ? 0 : 1, i = !1
|
|
|
1265
1274
|
props: e,
|
|
1266
1275
|
key: e && ne(e),
|
|
1267
1276
|
ref: e && B(e),
|
|
1268
|
-
scopeId:
|
|
1277
|
+
scopeId: hn,
|
|
1269
1278
|
slotScopeIds: null,
|
|
1270
1279
|
children: n,
|
|
1271
1280
|
component: null,
|
|
@@ -1287,31 +1296,31 @@ function vn(t, e = null, n = null, s = 0, r = null, o = t === ee ? 0 : 1, i = !1
|
|
|
1287
1296
|
appContext: null,
|
|
1288
1297
|
ctx: Q
|
|
1289
1298
|
};
|
|
1290
|
-
return c ? (
|
|
1299
|
+
return c ? (Ot(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= N(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && P("VNode created with invalid key (NaN). VNode type:", a.type), a;
|
|
1291
1300
|
}
|
|
1292
|
-
const
|
|
1301
|
+
const wn = process.env.NODE_ENV !== "production" ? En : re;
|
|
1293
1302
|
function re(t, e = null, n = null, s = 0, r = null, o = !1) {
|
|
1294
|
-
if ((!t || t ===
|
|
1303
|
+
if ((!t || t === dn) && (process.env.NODE_ENV !== "production" && !t && P(`Invalid vnode type when creating vnode: ${t}.`), t = yn), Sn(t)) {
|
|
1295
1304
|
const c = X(
|
|
1296
1305
|
t,
|
|
1297
1306
|
e,
|
|
1298
1307
|
!0
|
|
1299
1308
|
/* mergeRef: true */
|
|
1300
1309
|
);
|
|
1301
|
-
return n &&
|
|
1310
|
+
return n && Ot(c, n), c.patchFlag = -2, c;
|
|
1302
1311
|
}
|
|
1303
1312
|
if (ce(t) && (t = t.__vccOpts), e) {
|
|
1304
|
-
e =
|
|
1313
|
+
e = Nn(e);
|
|
1305
1314
|
let { class: c, style: a } = e;
|
|
1306
|
-
c && !N(c) && (e.class =
|
|
1315
|
+
c && !N(c) && (e.class = gt(c)), _(a) && (H(a) && !d(a) && (a = F({}, a)), e.style = _t(a));
|
|
1307
1316
|
}
|
|
1308
|
-
const i = N(t) ? 1 :
|
|
1309
|
-
return process.env.NODE_ENV !== "production" && i & 4 && H(t) && (t =
|
|
1317
|
+
const i = N(t) ? 1 : bn(t) ? 128 : pn(t) ? 64 : _(t) ? 4 : A(t) ? 2 : 0;
|
|
1318
|
+
return process.env.NODE_ENV !== "production" && i & 4 && H(t) && (t = f(t), P(
|
|
1310
1319
|
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
1311
1320
|
`
|
|
1312
1321
|
Component that was made reactive: `,
|
|
1313
1322
|
t
|
|
1314
|
-
)),
|
|
1323
|
+
)), On(
|
|
1315
1324
|
t,
|
|
1316
1325
|
e,
|
|
1317
1326
|
n,
|
|
@@ -1322,16 +1331,16 @@ Component that was made reactive: `,
|
|
|
1322
1331
|
!0
|
|
1323
1332
|
);
|
|
1324
1333
|
}
|
|
1325
|
-
function
|
|
1334
|
+
function Nn(t) {
|
|
1326
1335
|
return t ? H(t) || te(t) ? F({}, t) : t : null;
|
|
1327
1336
|
}
|
|
1328
1337
|
function X(t, e, n = !1, s = !1) {
|
|
1329
|
-
const { props: r, ref: o, patchFlag: i, children: c, transition: a } = t,
|
|
1338
|
+
const { props: r, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ? Rn(r || {}, e) : r, p = {
|
|
1330
1339
|
__v_isVNode: !0,
|
|
1331
1340
|
__v_skip: !0,
|
|
1332
1341
|
type: t.type,
|
|
1333
|
-
props:
|
|
1334
|
-
key:
|
|
1342
|
+
props: u,
|
|
1343
|
+
key: u && ne(u),
|
|
1335
1344
|
ref: e && e.ref ? (
|
|
1336
1345
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1337
1346
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
@@ -1371,18 +1380,18 @@ function X(t, e, n = !1, s = !1) {
|
|
|
1371
1380
|
ce: t.ce
|
|
1372
1381
|
};
|
|
1373
1382
|
return a && s && Zt(
|
|
1374
|
-
|
|
1375
|
-
a.clone(
|
|
1376
|
-
),
|
|
1383
|
+
p,
|
|
1384
|
+
a.clone(p)
|
|
1385
|
+
), p;
|
|
1377
1386
|
}
|
|
1378
1387
|
function se(t) {
|
|
1379
1388
|
const e = X(t);
|
|
1380
1389
|
return d(t.children) && (e.children = t.children.map(se)), e;
|
|
1381
1390
|
}
|
|
1382
|
-
function
|
|
1383
|
-
return
|
|
1391
|
+
function vn(t = " ", e = 0) {
|
|
1392
|
+
return wn(mn, null, t, e);
|
|
1384
1393
|
}
|
|
1385
|
-
function
|
|
1394
|
+
function Ot(t, e) {
|
|
1386
1395
|
let n = 0;
|
|
1387
1396
|
const { shapeFlag: s } = t;
|
|
1388
1397
|
if (e == null)
|
|
@@ -1392,23 +1401,23 @@ function Et(t, e) {
|
|
|
1392
1401
|
else if (typeof e == "object")
|
|
1393
1402
|
if (s & 65) {
|
|
1394
1403
|
const r = e.default;
|
|
1395
|
-
r && (r._c && (r._d = !1),
|
|
1404
|
+
r && (r._c && (r._d = !1), Ot(t, r()), r._c && (r._d = !0));
|
|
1396
1405
|
return;
|
|
1397
1406
|
} else
|
|
1398
1407
|
n = 32, !e._ && !te(e) && (e._ctx = Q);
|
|
1399
|
-
else
|
|
1408
|
+
else A(e) ? (e = { default: e, _ctx: Q }, n = 32) : (e = String(e), s & 64 ? (n = 16, e = [vn(e)]) : n = 8);
|
|
1400
1409
|
t.children = e, t.shapeFlag |= n;
|
|
1401
1410
|
}
|
|
1402
|
-
function
|
|
1411
|
+
function Rn(...t) {
|
|
1403
1412
|
const e = {};
|
|
1404
1413
|
for (let n = 0; n < t.length; n++) {
|
|
1405
1414
|
const s = t[n];
|
|
1406
1415
|
for (const r in s)
|
|
1407
1416
|
if (r === "class")
|
|
1408
|
-
e.class !== s.class && (e.class =
|
|
1417
|
+
e.class !== s.class && (e.class = gt([e.class, s.class]));
|
|
1409
1418
|
else if (r === "style")
|
|
1410
|
-
e.style =
|
|
1411
|
-
else if (
|
|
1419
|
+
e.style = _t([e.style, s.style]);
|
|
1420
|
+
else if (_e(r)) {
|
|
1412
1421
|
const o = e[r], i = s[r];
|
|
1413
1422
|
i && o !== i && !(d(o) && o.includes(i)) && (e[r] = o ? [].concat(o, i) : i);
|
|
1414
1423
|
} else r !== "" && (e[r] = s[r]);
|
|
@@ -1431,9 +1440,9 @@ function Vn(...t) {
|
|
|
1431
1440
|
);
|
|
1432
1441
|
}
|
|
1433
1442
|
process.env.NODE_ENV;
|
|
1434
|
-
const
|
|
1443
|
+
const Cn = /(?:^|[-_])\w/g, In = (t) => t.replace(Cn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
|
|
1435
1444
|
function oe(t, e = !0) {
|
|
1436
|
-
return
|
|
1445
|
+
return A(t) ? t.displayName || t.name : t.name || e && t.__name;
|
|
1437
1446
|
}
|
|
1438
1447
|
function ie(t, e, n = !1) {
|
|
1439
1448
|
let s = oe(e);
|
|
@@ -1451,12 +1460,12 @@ function ie(t, e, n = !1) {
|
|
|
1451
1460
|
t.parent.type.components
|
|
1452
1461
|
) || r(t.appContext.components);
|
|
1453
1462
|
}
|
|
1454
|
-
return s ?
|
|
1463
|
+
return s ? In(s) : n ? "App" : "Anonymous";
|
|
1455
1464
|
}
|
|
1456
1465
|
function ce(t) {
|
|
1457
|
-
return
|
|
1466
|
+
return A(t) && "__vccOpts" in t;
|
|
1458
1467
|
}
|
|
1459
|
-
function
|
|
1468
|
+
function An() {
|
|
1460
1469
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1461
1470
|
return;
|
|
1462
1471
|
const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
|
|
@@ -1467,17 +1476,17 @@ function $n() {
|
|
|
1467
1476
|
if (l.__isVue)
|
|
1468
1477
|
return ["div", t, "VueInstance"];
|
|
1469
1478
|
if (g(l)) {
|
|
1470
|
-
const
|
|
1479
|
+
const h = l.value;
|
|
1471
1480
|
return [
|
|
1472
1481
|
"div",
|
|
1473
1482
|
{},
|
|
1474
|
-
["span", t,
|
|
1483
|
+
["span", t, p(l)],
|
|
1475
1484
|
"<",
|
|
1476
|
-
c(
|
|
1485
|
+
c(h),
|
|
1477
1486
|
">"
|
|
1478
1487
|
];
|
|
1479
1488
|
} else {
|
|
1480
|
-
if (
|
|
1489
|
+
if (St(l))
|
|
1481
1490
|
return [
|
|
1482
1491
|
"div",
|
|
1483
1492
|
{},
|
|
@@ -1511,12 +1520,12 @@ function $n() {
|
|
|
1511
1520
|
}
|
|
1512
1521
|
};
|
|
1513
1522
|
function o(l) {
|
|
1514
|
-
const
|
|
1515
|
-
l.type.props && l.props &&
|
|
1523
|
+
const h = [];
|
|
1524
|
+
l.type.props && l.props && h.push(i("props", f(l.props))), l.setupState !== at && h.push(i("setup", l.setupState)), l.data !== at && h.push(i("data", f(l.data)));
|
|
1516
1525
|
const b = a(l, "computed");
|
|
1517
|
-
b &&
|
|
1526
|
+
b && h.push(i("computed", b));
|
|
1518
1527
|
const S = a(l, "inject");
|
|
1519
|
-
return S &&
|
|
1528
|
+
return S && h.push(i("injected", S)), h.push([
|
|
1520
1529
|
"div",
|
|
1521
1530
|
{},
|
|
1522
1531
|
[
|
|
@@ -1527,10 +1536,10 @@ function $n() {
|
|
|
1527
1536
|
"$ (internal): "
|
|
1528
1537
|
],
|
|
1529
1538
|
["object", { object: l }]
|
|
1530
|
-
]),
|
|
1539
|
+
]), h;
|
|
1531
1540
|
}
|
|
1532
|
-
function i(l,
|
|
1533
|
-
return
|
|
1541
|
+
function i(l, h) {
|
|
1542
|
+
return h = F({}, h), Object.keys(h).length ? [
|
|
1534
1543
|
"div",
|
|
1535
1544
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
1536
1545
|
[
|
|
@@ -1545,33 +1554,33 @@ function $n() {
|
|
|
1545
1554
|
{
|
|
1546
1555
|
style: "padding-left:1.25em"
|
|
1547
1556
|
},
|
|
1548
|
-
...Object.keys(
|
|
1557
|
+
...Object.keys(h).map((b) => [
|
|
1549
1558
|
"div",
|
|
1550
1559
|
{},
|
|
1551
1560
|
["span", s, b + ": "],
|
|
1552
|
-
c(
|
|
1561
|
+
c(h[b], !1)
|
|
1553
1562
|
])
|
|
1554
1563
|
]
|
|
1555
1564
|
] : ["span", {}];
|
|
1556
1565
|
}
|
|
1557
|
-
function c(l,
|
|
1558
|
-
return typeof l == "number" ? ["span", e, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", s, l] : _(l) ? ["object", { object:
|
|
1566
|
+
function c(l, h = !0) {
|
|
1567
|
+
return typeof l == "number" ? ["span", e, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", s, l] : _(l) ? ["object", { object: h ? f(l) : l }] : ["span", n, String(l)];
|
|
1559
1568
|
}
|
|
1560
|
-
function a(l,
|
|
1569
|
+
function a(l, h) {
|
|
1561
1570
|
const b = l.type;
|
|
1562
|
-
if (
|
|
1571
|
+
if (A(b))
|
|
1563
1572
|
return;
|
|
1564
1573
|
const S = {};
|
|
1565
|
-
for (const
|
|
1566
|
-
|
|
1574
|
+
for (const k in l.ctx)
|
|
1575
|
+
u(b, k, h) && (S[k] = l.ctx[k]);
|
|
1567
1576
|
return S;
|
|
1568
1577
|
}
|
|
1569
|
-
function
|
|
1578
|
+
function u(l, h, b) {
|
|
1570
1579
|
const S = l[b];
|
|
1571
|
-
if (d(S) && S.includes(
|
|
1580
|
+
if (d(S) && S.includes(h) || _(S) && h in S || l.extends && u(l.extends, h, b) || l.mixins && l.mixins.some((k) => u(k, h, b)))
|
|
1572
1581
|
return !0;
|
|
1573
1582
|
}
|
|
1574
|
-
function
|
|
1583
|
+
function p(l) {
|
|
1575
1584
|
return y(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
|
|
1576
1585
|
}
|
|
1577
1586
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
|
|
@@ -1579,11 +1588,33 @@ function $n() {
|
|
|
1579
1588
|
process.env.NODE_ENV;
|
|
1580
1589
|
process.env.NODE_ENV;
|
|
1581
1590
|
process.env.NODE_ENV;
|
|
1582
|
-
function
|
|
1583
|
-
|
|
1591
|
+
function $n() {
|
|
1592
|
+
An();
|
|
1593
|
+
}
|
|
1594
|
+
process.env.NODE_ENV !== "production" && $n();
|
|
1595
|
+
function Fn(t, e, n) {
|
|
1596
|
+
const s = n ? { storeOptions: n } : {};
|
|
1597
|
+
return typeof e == "function" ? Dn(
|
|
1598
|
+
t,
|
|
1599
|
+
e,
|
|
1600
|
+
s
|
|
1601
|
+
) : Vn(
|
|
1602
|
+
t,
|
|
1603
|
+
e,
|
|
1604
|
+
s
|
|
1605
|
+
);
|
|
1606
|
+
}
|
|
1607
|
+
function Dn(t, e, n) {
|
|
1608
|
+
return $t(t, e, n);
|
|
1609
|
+
}
|
|
1610
|
+
function Vn(t, e, n) {
|
|
1611
|
+
return n && (e = { ...e, ...n ?? {} }), $t(t, e);
|
|
1612
|
+
}
|
|
1613
|
+
const xn = /* @__PURE__ */ new Set(["_", "$"]);
|
|
1614
|
+
function Tn(t) {
|
|
1615
|
+
return xn.has(t[0]);
|
|
1584
1616
|
}
|
|
1585
|
-
|
|
1586
|
-
class Fn extends Vt {
|
|
1617
|
+
class kn extends Dt {
|
|
1587
1618
|
_className = "Store";
|
|
1588
1619
|
_onAction;
|
|
1589
1620
|
_options;
|
|
@@ -1632,10 +1663,10 @@ class Fn extends Vt {
|
|
|
1632
1663
|
* @param value
|
|
1633
1664
|
*/
|
|
1634
1665
|
addToState(e, n) {
|
|
1635
|
-
this.isOptionApi() || n?.value || (n =
|
|
1666
|
+
this.isOptionApi() || n?.value || (n = Wt(n)), this.state[e] = n, this.store[e] = Je(this.state, e);
|
|
1636
1667
|
}
|
|
1637
1668
|
addSubscription(e, n, s) {
|
|
1638
|
-
this._subscriptions[e] = { subscription: n,
|
|
1669
|
+
this._subscriptions[e] = { subscription: n, ...s ?? {} };
|
|
1639
1670
|
}
|
|
1640
1671
|
/**
|
|
1641
1672
|
* Create and return a class instance
|
|
@@ -1645,14 +1676,14 @@ class Fn extends Vt {
|
|
|
1645
1676
|
* @returns
|
|
1646
1677
|
*/
|
|
1647
1678
|
static customizeStore(e, n, s = !1, r) {
|
|
1648
|
-
if (
|
|
1679
|
+
if (n.storeOptions && this.hasRequiredKeys(n.storeOptions))
|
|
1649
1680
|
return new this(e, n, s, r);
|
|
1650
1681
|
}
|
|
1651
1682
|
hasDeniedFirstChar(e) {
|
|
1652
|
-
return
|
|
1683
|
+
return Tn(e[0]);
|
|
1653
1684
|
}
|
|
1654
1685
|
static hasRequiredKeys(e) {
|
|
1655
|
-
return this._requiredKeys
|
|
1686
|
+
return this._requiredKeys !== void 0 && this._requiredKeys?.every((n) => !!e[n]);
|
|
1656
1687
|
}
|
|
1657
1688
|
getOption(e) {
|
|
1658
1689
|
return this.options && this.options[e];
|
|
@@ -1661,7 +1692,7 @@ class Fn extends Vt {
|
|
|
1661
1692
|
return this.getValue(this.state[e]);
|
|
1662
1693
|
}
|
|
1663
1694
|
getSubscriptions() {
|
|
1664
|
-
if (
|
|
1695
|
+
if (!lt(this._subscriptions))
|
|
1665
1696
|
return this._subscriptions;
|
|
1666
1697
|
}
|
|
1667
1698
|
getValue(e) {
|
|
@@ -1677,17 +1708,17 @@ class Fn extends Vt {
|
|
|
1677
1708
|
return this.store.hasOwnProperty(e);
|
|
1678
1709
|
}
|
|
1679
1710
|
}
|
|
1680
|
-
function jn(t, e
|
|
1681
|
-
|
|
1682
|
-
const n = new ge(t, e);
|
|
1711
|
+
function jn(t, e) {
|
|
1712
|
+
const n = new pe(t, e);
|
|
1683
1713
|
return n.plugin.bind(n);
|
|
1684
1714
|
}
|
|
1685
1715
|
export {
|
|
1686
1716
|
ue as CustomConsole,
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1717
|
+
Vt as PLUGIN_NAME,
|
|
1718
|
+
Pn as PluginSubscriber,
|
|
1719
|
+
pe as PluginSubscription,
|
|
1720
|
+
kn as Store,
|
|
1690
1721
|
jn as createPlugin,
|
|
1691
|
-
|
|
1692
|
-
|
|
1722
|
+
Fn as defineAStore,
|
|
1723
|
+
lt as isEmpty
|
|
1693
1724
|
};
|