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