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