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