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