@inpageedit/core 0.11.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/dist/ActionButton-CRjo_l3y.js +24 -0
- package/dist/ActionButton-CRjo_l3y.js.map +1 -0
- package/dist/{CheckBox-D3rHnX7I.js → CheckBox-Bc79KBEB.js} +2 -2
- package/dist/{CheckBox-D3rHnX7I.js.map → CheckBox-Bc79KBEB.js.map} +1 -1
- package/dist/{IconQuickEdit-CAL1HXIb.js → IconQuickEdit-CMCQncyj.js} +2 -2
- package/dist/IconQuickEdit-CMCQncyj.js.map +1 -0
- package/dist/InPageEdit.d.ts +5 -1
- package/dist/{InputBox-BV4m05Xs.js → InputBox-DZAdyZ4B.js} +2 -2
- package/dist/InputBox-DZAdyZ4B.js.map +1 -0
- package/dist/PluginPrefSync-BPQkNtX8.js +292 -0
- package/dist/PluginPrefSync-BPQkNtX8.js.map +1 -0
- package/dist/PluginStoreApp-Cxspe6t8.js +158 -0
- package/dist/PluginStoreApp-Cxspe6t8.js.map +1 -0
- package/dist/Preferences-DS4-CFWe.js.map +1 -1
- package/dist/{RadioBox-nJqWsxW2.js → RadioBox-0UuxlcWZ.js} +2 -2
- package/dist/{RadioBox-nJqWsxW2.js.map → RadioBox-0UuxlcWZ.js.map} +1 -1
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +10 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js.map +1 -0
- package/dist/components/index.js +51 -69
- package/dist/components/index.js.map +1 -1
- package/dist/constants/endpoints.d.ts +2 -1
- package/dist/index-B5DtUqkK.js +180 -0
- package/dist/index-B5DtUqkK.js.map +1 -0
- package/dist/{index-BUI2IX49.js → index-BXaiDKnr.js} +2312 -2315
- package/dist/index-BXaiDKnr.js.map +1 -0
- package/dist/{index-BNDyaWnI.js → index-Bv7Dw5eO.js} +10 -9
- package/dist/index-Bv7Dw5eO.js.map +1 -0
- package/dist/{index-MhNAv9Vf.js → index-CB7TltEb.js} +25 -30
- package/dist/index-CB7TltEb.js.map +1 -0
- package/dist/{index-lZkYoUca.js → index-CG38LlAh.js} +2 -2
- package/dist/index-CG38LlAh.js.map +1 -0
- package/dist/{index-BQzuJxBO.js → index-CJFePavo.js} +4 -4
- package/dist/index-CJFePavo.js.map +1 -0
- package/dist/{index-CvhkVj_L.js → index-CM_6yF2v.js} +3 -3
- package/dist/{index-CvhkVj_L.js.map → index-CM_6yF2v.js.map} +1 -1
- package/dist/{index-U2RPZk8N.js → index-CPoUaSMw.js} +8 -8
- package/dist/index-CPoUaSMw.js.map +1 -0
- package/dist/{index-CfgnJ51A.js → index-CYc6LH26.js} +53 -43
- package/dist/index-CYc6LH26.js.map +1 -0
- package/dist/index-CZXxH2-9.js +173 -0
- package/dist/index-CZXxH2-9.js.map +1 -0
- package/dist/{index-D5J7RU5I.js → index-Ckozkp6W.js} +5 -7
- package/dist/index-Ckozkp6W.js.map +1 -0
- package/dist/{index-etJXONAj.js → index-D4uwfUZL.js} +6 -6
- package/dist/index-D4uwfUZL.js.map +1 -0
- package/dist/{index-Bh70Udzi.js → index-DD5CVCfD.js} +2 -2
- package/dist/index-DD5CVCfD.js.map +1 -0
- package/dist/index-DEav9Ptt.js +365 -0
- package/dist/index-DEav9Ptt.js.map +1 -0
- package/dist/index-hSl8LzNb.js +1169 -0
- package/dist/index-hSl8LzNb.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/makeCallable-LDU0xZMJ.js.map +1 -1
- package/dist/models/MemoryStorage.d.ts +10 -0
- package/dist/models/WikiPage/index.d.ts +14 -0
- package/dist/noop-ClDc6zv4.js.map +1 -1
- package/dist/plugins/in-article-links/index.d.ts +5 -0
- package/dist/plugins/plugin-store/index.d.ts +59 -0
- package/dist/plugins/plugin-store/schema.d.ts +41 -0
- package/dist/plugins/preferences-ui/PluginPrefSync.d.ts +1 -0
- package/dist/plugins/preferences-ui/index.d.ts +34 -5
- package/dist/plugins/quick-delete/index.d.ts +3 -0
- package/dist/plugins/quick-diff/index.d.ts +3 -0
- package/dist/plugins/quick-edit/index.d.ts +8 -0
- package/dist/plugins/quick-move/index.d.ts +5 -3
- package/dist/plugins/quick-preview/index.d.ts +4 -0
- package/dist/plugins/quick-redirect/index.d.ts +11 -4
- package/dist/plugins/toolbox/index.d.ts +3 -0
- package/dist/services/PreferencesService.d.ts +53 -11
- package/dist/services/ResourceLoaderService.d.ts +3 -0
- package/dist/services/WikiMetadataService.d.ts +1 -1
- package/dist/services/storage/index.d.ts +18 -8
- package/dist/services/storage/{IPEStorageManager.d.ts → managers/IDBStorageManager.d.ts} +9 -6
- package/dist/services/storage/managers/LocalStorageManager.d.ts +27 -0
- package/dist/style.css +1 -1
- package/dist/vueHooks-D0uVqbO-.js +4032 -0
- package/dist/vueHooks-D0uVqbO-.js.map +1 -0
- package/lib/index.umd.js +11 -115
- package/lib/index.umd.js.map +1 -1
- package/lib/style.css +1 -1
- package/package.json +14 -14
- package/dist/IconQuickEdit-CAL1HXIb.js.map +0 -1
- package/dist/InputBox-BV4m05Xs.js.map +0 -1
- package/dist/PluginPrefSync-COidewzp.js +0 -258
- package/dist/PluginPrefSync-COidewzp.js.map +0 -1
- package/dist/index-BNDyaWnI.js.map +0 -1
- package/dist/index-BQzuJxBO.js.map +0 -1
- package/dist/index-BUI2IX49.js.map +0 -1
- package/dist/index-Bh70Udzi.js.map +0 -1
- package/dist/index-CBszdxJJ.js +0 -159
- package/dist/index-CBszdxJJ.js.map +0 -1
- package/dist/index-CfgnJ51A.js.map +0 -1
- package/dist/index-Cx4qgCJK.js +0 -4914
- package/dist/index-Cx4qgCJK.js.map +0 -1
- package/dist/index-D5J7RU5I.js.map +0 -1
- package/dist/index-MhNAv9Vf.js.map +0 -1
- package/dist/index-U2RPZk8N.js.map +0 -1
- package/dist/index-VnRKIVau.js +0 -167
- package/dist/index-VnRKIVau.js.map +0 -1
- package/dist/index-etJXONAj.js.map +0 -1
- package/dist/index-lZkYoUca.js.map +0 -1
package/dist/index-Cx4qgCJK.js
DELETED
|
@@ -1,4914 +0,0 @@
|
|
|
1
|
-
import { j as J, P as Dr, F as Lr } from "./index-CvhkVj_L.js";
|
|
2
|
-
import { B as jr, S as An, I as Hr } from "./index-BUI2IX49.js";
|
|
3
|
-
/**
|
|
4
|
-
* @vue/shared v3.5.22
|
|
5
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
6
|
-
* @license MIT
|
|
7
|
-
**/
|
|
8
|
-
// @__NO_SIDE_EFFECTS__
|
|
9
|
-
function Ys(e) {
|
|
10
|
-
const t = /* @__PURE__ */ Object.create(null);
|
|
11
|
-
for (const s of e.split(",")) t[s] = 1;
|
|
12
|
-
return (s) => s in t;
|
|
13
|
-
}
|
|
14
|
-
const k = {}, ft = [], Pe = () => {
|
|
15
|
-
}, li = () => !1, as = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
16
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Xs = (e) => e.startsWith("onUpdate:"), se = Object.assign, Qs = (e, t) => {
|
|
17
|
-
const s = e.indexOf(t);
|
|
18
|
-
s > -1 && e.splice(s, 1);
|
|
19
|
-
}, Ur = Object.prototype.hasOwnProperty, B = (e, t) => Ur.call(e, t), O = Array.isArray, dt = (e) => us(e) === "[object Map]", ci = (e) => us(e) === "[object Set]", N = (e) => typeof e == "function", Z = (e) => typeof e == "string", Je = (e) => typeof e == "symbol", G = (e) => e !== null && typeof e == "object", ai = (e) => (G(e) || N(e)) && N(e.then) && N(e.catch), ui = Object.prototype.toString, us = (e) => ui.call(e), kr = (e) => us(e).slice(8, -1), fi = (e) => us(e) === "[object Object]", Zs = (e) => Z(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, $t = /* @__PURE__ */ Ys(
|
|
20
|
-
// the leading comma is intentional so empty string "" is also included
|
|
21
|
-
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
22
|
-
), fs = (e) => {
|
|
23
|
-
const t = /* @__PURE__ */ Object.create(null);
|
|
24
|
-
return (s) => t[s] || (t[s] = e(s));
|
|
25
|
-
}, Vr = /-\w/g, Le = fs(
|
|
26
|
-
(e) => e.replace(Vr, (t) => t.slice(1).toUpperCase())
|
|
27
|
-
), Br = /\B([A-Z])/g, Ge = fs(
|
|
28
|
-
(e) => e.replace(Br, "-$1").toLowerCase()
|
|
29
|
-
), di = fs((e) => e.charAt(0).toUpperCase() + e.slice(1)), Es = fs(
|
|
30
|
-
(e) => e ? `on${di(e)}` : ""
|
|
31
|
-
), fe = (e, t) => !Object.is(e, t), Ss = (e, ...t) => {
|
|
32
|
-
for (let s = 0; s < e.length; s++)
|
|
33
|
-
e[s](...t);
|
|
34
|
-
}, hi = (e, t, s, n = !1) => {
|
|
35
|
-
Object.defineProperty(e, t, {
|
|
36
|
-
configurable: !0,
|
|
37
|
-
enumerable: !1,
|
|
38
|
-
writable: n,
|
|
39
|
-
value: s
|
|
40
|
-
});
|
|
41
|
-
}, Wr = (e) => {
|
|
42
|
-
const t = parseFloat(e);
|
|
43
|
-
return isNaN(t) ? e : t;
|
|
44
|
-
};
|
|
45
|
-
let Pn;
|
|
46
|
-
const ds = () => Pn || (Pn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
47
|
-
function en(e) {
|
|
48
|
-
if (O(e)) {
|
|
49
|
-
const t = {};
|
|
50
|
-
for (let s = 0; s < e.length; s++) {
|
|
51
|
-
const n = e[s], i = Z(n) ? Jr(n) : en(n);
|
|
52
|
-
if (i)
|
|
53
|
-
for (const r in i)
|
|
54
|
-
t[r] = i[r];
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
} else if (Z(e) || G(e))
|
|
58
|
-
return e;
|
|
59
|
-
}
|
|
60
|
-
const Kr = /;(?![^(]*\))/g, qr = /:([^]+)/, zr = /\/\*[^]*?\*\//g;
|
|
61
|
-
function Jr(e) {
|
|
62
|
-
const t = {};
|
|
63
|
-
return e.replace(zr, "").split(Kr).forEach((s) => {
|
|
64
|
-
if (s) {
|
|
65
|
-
const n = s.split(qr);
|
|
66
|
-
n.length > 1 && (t[n[0].trim()] = n[1].trim());
|
|
67
|
-
}
|
|
68
|
-
}), t;
|
|
69
|
-
}
|
|
70
|
-
function hs(e) {
|
|
71
|
-
let t = "";
|
|
72
|
-
if (Z(e))
|
|
73
|
-
t = e;
|
|
74
|
-
else if (O(e))
|
|
75
|
-
for (let s = 0; s < e.length; s++) {
|
|
76
|
-
const n = hs(e[s]);
|
|
77
|
-
n && (t += n + " ");
|
|
78
|
-
}
|
|
79
|
-
else if (G(e))
|
|
80
|
-
for (const s in e)
|
|
81
|
-
e[s] && (t += s + " ");
|
|
82
|
-
return t.trim();
|
|
83
|
-
}
|
|
84
|
-
const Gr = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", Yr = /* @__PURE__ */ Ys(Gr);
|
|
85
|
-
function pi(e) {
|
|
86
|
-
return !!e || e === "";
|
|
87
|
-
}
|
|
88
|
-
const mi = (e) => !!(e && e.__v_isRef === !0), Fs = (e) => Z(e) ? e : e == null ? "" : O(e) || G(e) && (e.toString === ui || !N(e.toString)) ? mi(e) ? Fs(e.value) : JSON.stringify(e, gi, 2) : String(e), gi = (e, t) => mi(t) ? gi(e, t.value) : dt(t) ? {
|
|
89
|
-
[`Map(${t.size})`]: [...t.entries()].reduce(
|
|
90
|
-
(s, [n, i], r) => (s[ws(n, r) + " =>"] = i, s),
|
|
91
|
-
{}
|
|
92
|
-
)
|
|
93
|
-
} : ci(t) ? {
|
|
94
|
-
[`Set(${t.size})`]: [...t.values()].map((s) => ws(s))
|
|
95
|
-
} : Je(t) ? ws(t) : G(t) && !O(t) && !fi(t) ? String(t) : t, ws = (e, t = "") => {
|
|
96
|
-
var s;
|
|
97
|
-
return (
|
|
98
|
-
// Symbol.description in es2019+ so we need to cast here to pass
|
|
99
|
-
// the lib: es2016 check
|
|
100
|
-
Je(e) ? `Symbol(${(s = e.description) != null ? s : t})` : e
|
|
101
|
-
);
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* @vue/reactivity v3.5.22
|
|
105
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
106
|
-
* @license MIT
|
|
107
|
-
**/
|
|
108
|
-
let ue;
|
|
109
|
-
class Xr {
|
|
110
|
-
constructor(t = !1) {
|
|
111
|
-
this.detached = t, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.parent = ue, !t && ue && (this.index = (ue.scopes || (ue.scopes = [])).push(
|
|
112
|
-
this
|
|
113
|
-
) - 1);
|
|
114
|
-
}
|
|
115
|
-
get active() {
|
|
116
|
-
return this._active;
|
|
117
|
-
}
|
|
118
|
-
pause() {
|
|
119
|
-
if (this._active) {
|
|
120
|
-
this._isPaused = !0;
|
|
121
|
-
let t, s;
|
|
122
|
-
if (this.scopes)
|
|
123
|
-
for (t = 0, s = this.scopes.length; t < s; t++)
|
|
124
|
-
this.scopes[t].pause();
|
|
125
|
-
for (t = 0, s = this.effects.length; t < s; t++)
|
|
126
|
-
this.effects[t].pause();
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Resumes the effect scope, including all child scopes and effects.
|
|
131
|
-
*/
|
|
132
|
-
resume() {
|
|
133
|
-
if (this._active && this._isPaused) {
|
|
134
|
-
this._isPaused = !1;
|
|
135
|
-
let t, s;
|
|
136
|
-
if (this.scopes)
|
|
137
|
-
for (t = 0, s = this.scopes.length; t < s; t++)
|
|
138
|
-
this.scopes[t].resume();
|
|
139
|
-
for (t = 0, s = this.effects.length; t < s; t++)
|
|
140
|
-
this.effects[t].resume();
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
run(t) {
|
|
144
|
-
if (this._active) {
|
|
145
|
-
const s = ue;
|
|
146
|
-
try {
|
|
147
|
-
return ue = this, t();
|
|
148
|
-
} finally {
|
|
149
|
-
ue = s;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* This should only be called on non-detached scopes
|
|
155
|
-
* @internal
|
|
156
|
-
*/
|
|
157
|
-
on() {
|
|
158
|
-
++this._on === 1 && (this.prevScope = ue, ue = this);
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* This should only be called on non-detached scopes
|
|
162
|
-
* @internal
|
|
163
|
-
*/
|
|
164
|
-
off() {
|
|
165
|
-
this._on > 0 && --this._on === 0 && (ue = this.prevScope, this.prevScope = void 0);
|
|
166
|
-
}
|
|
167
|
-
stop(t) {
|
|
168
|
-
if (this._active) {
|
|
169
|
-
this._active = !1;
|
|
170
|
-
let s, n;
|
|
171
|
-
for (s = 0, n = this.effects.length; s < n; s++)
|
|
172
|
-
this.effects[s].stop();
|
|
173
|
-
for (this.effects.length = 0, s = 0, n = this.cleanups.length; s < n; s++)
|
|
174
|
-
this.cleanups[s]();
|
|
175
|
-
if (this.cleanups.length = 0, this.scopes) {
|
|
176
|
-
for (s = 0, n = this.scopes.length; s < n; s++)
|
|
177
|
-
this.scopes[s].stop(!0);
|
|
178
|
-
this.scopes.length = 0;
|
|
179
|
-
}
|
|
180
|
-
if (!this.detached && this.parent && !t) {
|
|
181
|
-
const i = this.parent.scopes.pop();
|
|
182
|
-
i && i !== this && (this.parent.scopes[this.index] = i, i.index = this.index);
|
|
183
|
-
}
|
|
184
|
-
this.parent = void 0;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
function Qr() {
|
|
189
|
-
return ue;
|
|
190
|
-
}
|
|
191
|
-
let z;
|
|
192
|
-
const Ts = /* @__PURE__ */ new WeakSet();
|
|
193
|
-
class _i {
|
|
194
|
-
constructor(t) {
|
|
195
|
-
this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, ue && ue.active && ue.effects.push(this);
|
|
196
|
-
}
|
|
197
|
-
pause() {
|
|
198
|
-
this.flags |= 64;
|
|
199
|
-
}
|
|
200
|
-
resume() {
|
|
201
|
-
this.flags & 64 && (this.flags &= -65, Ts.has(this) && (Ts.delete(this), this.trigger()));
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* @internal
|
|
205
|
-
*/
|
|
206
|
-
notify() {
|
|
207
|
-
this.flags & 2 && !(this.flags & 32) || this.flags & 8 || vi(this);
|
|
208
|
-
}
|
|
209
|
-
run() {
|
|
210
|
-
if (!(this.flags & 1))
|
|
211
|
-
return this.fn();
|
|
212
|
-
this.flags |= 2, In(this), yi(this);
|
|
213
|
-
const t = z, s = be;
|
|
214
|
-
z = this, be = !0;
|
|
215
|
-
try {
|
|
216
|
-
return this.fn();
|
|
217
|
-
} finally {
|
|
218
|
-
xi(this), z = t, be = s, this.flags &= -3;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
stop() {
|
|
222
|
-
if (this.flags & 1) {
|
|
223
|
-
for (let t = this.deps; t; t = t.nextDep)
|
|
224
|
-
nn(t);
|
|
225
|
-
this.deps = this.depsTail = void 0, In(this), this.onStop && this.onStop(), this.flags &= -2;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
trigger() {
|
|
229
|
-
this.flags & 64 ? Ts.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* @internal
|
|
233
|
-
*/
|
|
234
|
-
runIfDirty() {
|
|
235
|
-
Rs(this) && this.run();
|
|
236
|
-
}
|
|
237
|
-
get dirty() {
|
|
238
|
-
return Rs(this);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
let bi = 0, At, Pt;
|
|
242
|
-
function vi(e, t = !1) {
|
|
243
|
-
if (e.flags |= 8, t) {
|
|
244
|
-
e.next = Pt, Pt = e;
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
e.next = At, At = e;
|
|
248
|
-
}
|
|
249
|
-
function tn() {
|
|
250
|
-
bi++;
|
|
251
|
-
}
|
|
252
|
-
function sn() {
|
|
253
|
-
if (--bi > 0)
|
|
254
|
-
return;
|
|
255
|
-
if (Pt) {
|
|
256
|
-
let t = Pt;
|
|
257
|
-
for (Pt = void 0; t; ) {
|
|
258
|
-
const s = t.next;
|
|
259
|
-
t.next = void 0, t.flags &= -9, t = s;
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
let e;
|
|
263
|
-
for (; At; ) {
|
|
264
|
-
let t = At;
|
|
265
|
-
for (At = void 0; t; ) {
|
|
266
|
-
const s = t.next;
|
|
267
|
-
if (t.next = void 0, t.flags &= -9, t.flags & 1)
|
|
268
|
-
try {
|
|
269
|
-
t.trigger();
|
|
270
|
-
} catch (n) {
|
|
271
|
-
e || (e = n);
|
|
272
|
-
}
|
|
273
|
-
t = s;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
if (e) throw e;
|
|
277
|
-
}
|
|
278
|
-
function yi(e) {
|
|
279
|
-
for (let t = e.deps; t; t = t.nextDep)
|
|
280
|
-
t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
|
|
281
|
-
}
|
|
282
|
-
function xi(e) {
|
|
283
|
-
let t, s = e.depsTail, n = s;
|
|
284
|
-
for (; n; ) {
|
|
285
|
-
const i = n.prevDep;
|
|
286
|
-
n.version === -1 ? (n === s && (s = i), nn(n), Zr(n)) : t = n, n.dep.activeLink = n.prevActiveLink, n.prevActiveLink = void 0, n = i;
|
|
287
|
-
}
|
|
288
|
-
e.deps = t, e.depsTail = s;
|
|
289
|
-
}
|
|
290
|
-
function Rs(e) {
|
|
291
|
-
for (let t = e.deps; t; t = t.nextDep)
|
|
292
|
-
if (t.dep.version !== t.version || t.dep.computed && (Ci(t.dep.computed) || t.dep.version !== t.version))
|
|
293
|
-
return !0;
|
|
294
|
-
return !!e._dirty;
|
|
295
|
-
}
|
|
296
|
-
function Ci(e) {
|
|
297
|
-
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Rt) || (e.globalVersion = Rt, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !Rs(e))))
|
|
298
|
-
return;
|
|
299
|
-
e.flags |= 2;
|
|
300
|
-
const t = e.dep, s = z, n = be;
|
|
301
|
-
z = e, be = !0;
|
|
302
|
-
try {
|
|
303
|
-
yi(e);
|
|
304
|
-
const i = e.fn(e._value);
|
|
305
|
-
(t.version === 0 || fe(i, e._value)) && (e.flags |= 128, e._value = i, t.version++);
|
|
306
|
-
} catch (i) {
|
|
307
|
-
throw t.version++, i;
|
|
308
|
-
} finally {
|
|
309
|
-
z = s, be = n, xi(e), e.flags &= -3;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
function nn(e, t = !1) {
|
|
313
|
-
const { dep: s, prevSub: n, nextSub: i } = e;
|
|
314
|
-
if (n && (n.nextSub = i, e.prevSub = void 0), i && (i.prevSub = n, e.nextSub = void 0), s.subs === e && (s.subs = n, !n && s.computed)) {
|
|
315
|
-
s.computed.flags &= -5;
|
|
316
|
-
for (let r = s.computed.deps; r; r = r.nextDep)
|
|
317
|
-
nn(r, !0);
|
|
318
|
-
}
|
|
319
|
-
!t && !--s.sc && s.map && s.map.delete(s.key);
|
|
320
|
-
}
|
|
321
|
-
function Zr(e) {
|
|
322
|
-
const { prevDep: t, nextDep: s } = e;
|
|
323
|
-
t && (t.nextDep = s, e.prevDep = void 0), s && (s.prevDep = t, e.nextDep = void 0);
|
|
324
|
-
}
|
|
325
|
-
let be = !0;
|
|
326
|
-
const Ei = [];
|
|
327
|
-
function je() {
|
|
328
|
-
Ei.push(be), be = !1;
|
|
329
|
-
}
|
|
330
|
-
function He() {
|
|
331
|
-
const e = Ei.pop();
|
|
332
|
-
be = e === void 0 ? !0 : e;
|
|
333
|
-
}
|
|
334
|
-
function In(e) {
|
|
335
|
-
const { cleanup: t } = e;
|
|
336
|
-
if (e.cleanup = void 0, t) {
|
|
337
|
-
const s = z;
|
|
338
|
-
z = void 0;
|
|
339
|
-
try {
|
|
340
|
-
t();
|
|
341
|
-
} finally {
|
|
342
|
-
z = s;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
let Rt = 0;
|
|
347
|
-
class eo {
|
|
348
|
-
constructor(t, s) {
|
|
349
|
-
this.sub = t, this.dep = s, this.version = s.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
class ps {
|
|
353
|
-
// TODO isolatedDeclarations "__v_skip"
|
|
354
|
-
constructor(t) {
|
|
355
|
-
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;
|
|
356
|
-
}
|
|
357
|
-
track(t) {
|
|
358
|
-
if (!z || !be || z === this.computed)
|
|
359
|
-
return;
|
|
360
|
-
let s = this.activeLink;
|
|
361
|
-
if (s === void 0 || s.sub !== z)
|
|
362
|
-
s = this.activeLink = new eo(z, this), z.deps ? (s.prevDep = z.depsTail, z.depsTail.nextDep = s, z.depsTail = s) : z.deps = z.depsTail = s, Si(s);
|
|
363
|
-
else if (s.version === -1 && (s.version = this.version, s.nextDep)) {
|
|
364
|
-
const n = s.nextDep;
|
|
365
|
-
n.prevDep = s.prevDep, s.prevDep && (s.prevDep.nextDep = n), s.prevDep = z.depsTail, s.nextDep = void 0, z.depsTail.nextDep = s, z.depsTail = s, z.deps === s && (z.deps = n);
|
|
366
|
-
}
|
|
367
|
-
return s;
|
|
368
|
-
}
|
|
369
|
-
trigger(t) {
|
|
370
|
-
this.version++, Rt++, this.notify(t);
|
|
371
|
-
}
|
|
372
|
-
notify(t) {
|
|
373
|
-
tn();
|
|
374
|
-
try {
|
|
375
|
-
for (let s = this.subs; s; s = s.prevSub)
|
|
376
|
-
s.sub.notify() && s.sub.dep.notify();
|
|
377
|
-
} finally {
|
|
378
|
-
sn();
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
function Si(e) {
|
|
383
|
-
if (e.dep.sc++, e.sub.flags & 4) {
|
|
384
|
-
const t = e.dep.computed;
|
|
385
|
-
if (t && !e.dep.subs) {
|
|
386
|
-
t.flags |= 20;
|
|
387
|
-
for (let n = t.deps; n; n = n.nextDep)
|
|
388
|
-
Si(n);
|
|
389
|
-
}
|
|
390
|
-
const s = e.dep.subs;
|
|
391
|
-
s !== e && (e.prevSub = s, s && (s.nextSub = e)), e.dep.subs = e;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
const Ds = /* @__PURE__ */ new WeakMap(), nt = Symbol(
|
|
395
|
-
""
|
|
396
|
-
), Ls = Symbol(
|
|
397
|
-
""
|
|
398
|
-
), Dt = Symbol(
|
|
399
|
-
""
|
|
400
|
-
);
|
|
401
|
-
function ne(e, t, s) {
|
|
402
|
-
if (be && z) {
|
|
403
|
-
let n = Ds.get(e);
|
|
404
|
-
n || Ds.set(e, n = /* @__PURE__ */ new Map());
|
|
405
|
-
let i = n.get(s);
|
|
406
|
-
i || (n.set(s, i = new ps()), i.map = n, i.key = s), i.track();
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
function Re(e, t, s, n, i, r) {
|
|
410
|
-
const o = Ds.get(e);
|
|
411
|
-
if (!o) {
|
|
412
|
-
Rt++;
|
|
413
|
-
return;
|
|
414
|
-
}
|
|
415
|
-
const l = (c) => {
|
|
416
|
-
c && c.trigger();
|
|
417
|
-
};
|
|
418
|
-
if (tn(), t === "clear")
|
|
419
|
-
o.forEach(l);
|
|
420
|
-
else {
|
|
421
|
-
const c = O(e), d = c && Zs(s);
|
|
422
|
-
if (c && s === "length") {
|
|
423
|
-
const u = Number(n);
|
|
424
|
-
o.forEach((h, p) => {
|
|
425
|
-
(p === "length" || p === Dt || !Je(p) && p >= u) && l(h);
|
|
426
|
-
});
|
|
427
|
-
} else
|
|
428
|
-
switch ((s !== void 0 || o.has(void 0)) && l(o.get(s)), d && l(o.get(Dt)), t) {
|
|
429
|
-
case "add":
|
|
430
|
-
c ? d && l(o.get("length")) : (l(o.get(nt)), dt(e) && l(o.get(Ls)));
|
|
431
|
-
break;
|
|
432
|
-
case "delete":
|
|
433
|
-
c || (l(o.get(nt)), dt(e) && l(o.get(Ls)));
|
|
434
|
-
break;
|
|
435
|
-
case "set":
|
|
436
|
-
dt(e) && l(o.get(nt));
|
|
437
|
-
break;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
sn();
|
|
441
|
-
}
|
|
442
|
-
function lt(e) {
|
|
443
|
-
const t = U(e);
|
|
444
|
-
return t === e ? t : (ne(t, "iterate", Dt), me(e) ? t : t.map(ee));
|
|
445
|
-
}
|
|
446
|
-
function ms(e) {
|
|
447
|
-
return ne(e = U(e), "iterate", Dt), e;
|
|
448
|
-
}
|
|
449
|
-
const to = {
|
|
450
|
-
__proto__: null,
|
|
451
|
-
[Symbol.iterator]() {
|
|
452
|
-
return $s(this, Symbol.iterator, ee);
|
|
453
|
-
},
|
|
454
|
-
concat(...e) {
|
|
455
|
-
return lt(this).concat(
|
|
456
|
-
...e.map((t) => O(t) ? lt(t) : t)
|
|
457
|
-
);
|
|
458
|
-
},
|
|
459
|
-
entries() {
|
|
460
|
-
return $s(this, "entries", (e) => (e[1] = ee(e[1]), e));
|
|
461
|
-
},
|
|
462
|
-
every(e, t) {
|
|
463
|
-
return Ne(this, "every", e, t, void 0, arguments);
|
|
464
|
-
},
|
|
465
|
-
filter(e, t) {
|
|
466
|
-
return Ne(this, "filter", e, t, (s) => s.map(ee), arguments);
|
|
467
|
-
},
|
|
468
|
-
find(e, t) {
|
|
469
|
-
return Ne(this, "find", e, t, ee, arguments);
|
|
470
|
-
},
|
|
471
|
-
findIndex(e, t) {
|
|
472
|
-
return Ne(this, "findIndex", e, t, void 0, arguments);
|
|
473
|
-
},
|
|
474
|
-
findLast(e, t) {
|
|
475
|
-
return Ne(this, "findLast", e, t, ee, arguments);
|
|
476
|
-
},
|
|
477
|
-
findLastIndex(e, t) {
|
|
478
|
-
return Ne(this, "findLastIndex", e, t, void 0, arguments);
|
|
479
|
-
},
|
|
480
|
-
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
481
|
-
forEach(e, t) {
|
|
482
|
-
return Ne(this, "forEach", e, t, void 0, arguments);
|
|
483
|
-
},
|
|
484
|
-
includes(...e) {
|
|
485
|
-
return As(this, "includes", e);
|
|
486
|
-
},
|
|
487
|
-
indexOf(...e) {
|
|
488
|
-
return As(this, "indexOf", e);
|
|
489
|
-
},
|
|
490
|
-
join(e) {
|
|
491
|
-
return lt(this).join(e);
|
|
492
|
-
},
|
|
493
|
-
// keys() iterator only reads `length`, no optimization required
|
|
494
|
-
lastIndexOf(...e) {
|
|
495
|
-
return As(this, "lastIndexOf", e);
|
|
496
|
-
},
|
|
497
|
-
map(e, t) {
|
|
498
|
-
return Ne(this, "map", e, t, void 0, arguments);
|
|
499
|
-
},
|
|
500
|
-
pop() {
|
|
501
|
-
return Et(this, "pop");
|
|
502
|
-
},
|
|
503
|
-
push(...e) {
|
|
504
|
-
return Et(this, "push", e);
|
|
505
|
-
},
|
|
506
|
-
reduce(e, ...t) {
|
|
507
|
-
return Mn(this, "reduce", e, t);
|
|
508
|
-
},
|
|
509
|
-
reduceRight(e, ...t) {
|
|
510
|
-
return Mn(this, "reduceRight", e, t);
|
|
511
|
-
},
|
|
512
|
-
shift() {
|
|
513
|
-
return Et(this, "shift");
|
|
514
|
-
},
|
|
515
|
-
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
516
|
-
some(e, t) {
|
|
517
|
-
return Ne(this, "some", e, t, void 0, arguments);
|
|
518
|
-
},
|
|
519
|
-
splice(...e) {
|
|
520
|
-
return Et(this, "splice", e);
|
|
521
|
-
},
|
|
522
|
-
toReversed() {
|
|
523
|
-
return lt(this).toReversed();
|
|
524
|
-
},
|
|
525
|
-
toSorted(e) {
|
|
526
|
-
return lt(this).toSorted(e);
|
|
527
|
-
},
|
|
528
|
-
toSpliced(...e) {
|
|
529
|
-
return lt(this).toSpliced(...e);
|
|
530
|
-
},
|
|
531
|
-
unshift(...e) {
|
|
532
|
-
return Et(this, "unshift", e);
|
|
533
|
-
},
|
|
534
|
-
values() {
|
|
535
|
-
return $s(this, "values", ee);
|
|
536
|
-
}
|
|
537
|
-
};
|
|
538
|
-
function $s(e, t, s) {
|
|
539
|
-
const n = ms(e), i = n[t]();
|
|
540
|
-
return n !== e && !me(e) && (i._next = i.next, i.next = () => {
|
|
541
|
-
const r = i._next();
|
|
542
|
-
return r.done || (r.value = s(r.value)), r;
|
|
543
|
-
}), i;
|
|
544
|
-
}
|
|
545
|
-
const so = Array.prototype;
|
|
546
|
-
function Ne(e, t, s, n, i, r) {
|
|
547
|
-
const o = ms(e), l = o !== e && !me(e), c = o[t];
|
|
548
|
-
if (c !== so[t]) {
|
|
549
|
-
const h = c.apply(e, r);
|
|
550
|
-
return l ? ee(h) : h;
|
|
551
|
-
}
|
|
552
|
-
let d = s;
|
|
553
|
-
o !== e && (l ? d = function(h, p) {
|
|
554
|
-
return s.call(this, ee(h), p, e);
|
|
555
|
-
} : s.length > 2 && (d = function(h, p) {
|
|
556
|
-
return s.call(this, h, p, e);
|
|
557
|
-
}));
|
|
558
|
-
const u = c.call(o, d, n);
|
|
559
|
-
return l && i ? i(u) : u;
|
|
560
|
-
}
|
|
561
|
-
function Mn(e, t, s, n) {
|
|
562
|
-
const i = ms(e);
|
|
563
|
-
let r = s;
|
|
564
|
-
return i !== e && (me(e) ? s.length > 3 && (r = function(o, l, c) {
|
|
565
|
-
return s.call(this, o, l, c, e);
|
|
566
|
-
}) : r = function(o, l, c) {
|
|
567
|
-
return s.call(this, o, ee(l), c, e);
|
|
568
|
-
}), i[t](r, ...n);
|
|
569
|
-
}
|
|
570
|
-
function As(e, t, s) {
|
|
571
|
-
const n = U(e);
|
|
572
|
-
ne(n, "iterate", Dt);
|
|
573
|
-
const i = n[t](...s);
|
|
574
|
-
return (i === -1 || i === !1) && cn(s[0]) ? (s[0] = U(s[0]), n[t](...s)) : i;
|
|
575
|
-
}
|
|
576
|
-
function Et(e, t, s = []) {
|
|
577
|
-
je(), tn();
|
|
578
|
-
const n = U(e)[t].apply(e, s);
|
|
579
|
-
return sn(), He(), n;
|
|
580
|
-
}
|
|
581
|
-
const no = /* @__PURE__ */ Ys("__proto__,__v_isRef,__isVue"), wi = new Set(
|
|
582
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Je)
|
|
583
|
-
);
|
|
584
|
-
function io(e) {
|
|
585
|
-
Je(e) || (e = String(e));
|
|
586
|
-
const t = U(this);
|
|
587
|
-
return ne(t, "has", e), t.hasOwnProperty(e);
|
|
588
|
-
}
|
|
589
|
-
class Ti {
|
|
590
|
-
constructor(t = !1, s = !1) {
|
|
591
|
-
this._isReadonly = t, this._isShallow = s;
|
|
592
|
-
}
|
|
593
|
-
get(t, s, n) {
|
|
594
|
-
if (s === "__v_skip") return t.__v_skip;
|
|
595
|
-
const i = this._isReadonly, r = this._isShallow;
|
|
596
|
-
if (s === "__v_isReactive")
|
|
597
|
-
return !i;
|
|
598
|
-
if (s === "__v_isReadonly")
|
|
599
|
-
return i;
|
|
600
|
-
if (s === "__v_isShallow")
|
|
601
|
-
return r;
|
|
602
|
-
if (s === "__v_raw")
|
|
603
|
-
return n === (i ? r ? mo : Ii : r ? Pi : Ai).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
604
|
-
// this means the receiver is a user proxy of the reactive proxy
|
|
605
|
-
Object.getPrototypeOf(t) === Object.getPrototypeOf(n) ? t : void 0;
|
|
606
|
-
const o = O(t);
|
|
607
|
-
if (!i) {
|
|
608
|
-
let c;
|
|
609
|
-
if (o && (c = to[s]))
|
|
610
|
-
return c;
|
|
611
|
-
if (s === "hasOwnProperty")
|
|
612
|
-
return io;
|
|
613
|
-
}
|
|
614
|
-
const l = Reflect.get(
|
|
615
|
-
t,
|
|
616
|
-
s,
|
|
617
|
-
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
618
|
-
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
619
|
-
// its class methods
|
|
620
|
-
te(t) ? t : n
|
|
621
|
-
);
|
|
622
|
-
if ((Je(s) ? wi.has(s) : no(s)) || (i || ne(t, "get", s), r))
|
|
623
|
-
return l;
|
|
624
|
-
if (te(l)) {
|
|
625
|
-
const c = o && Zs(s) ? l : l.value;
|
|
626
|
-
return i && G(c) ? Hs(c) : c;
|
|
627
|
-
}
|
|
628
|
-
return G(l) ? i ? Hs(l) : on(l) : l;
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
class $i extends Ti {
|
|
632
|
-
constructor(t = !1) {
|
|
633
|
-
super(!1, t);
|
|
634
|
-
}
|
|
635
|
-
set(t, s, n, i) {
|
|
636
|
-
let r = t[s];
|
|
637
|
-
if (!this._isShallow) {
|
|
638
|
-
const c = Ke(r);
|
|
639
|
-
if (!me(n) && !Ke(n) && (r = U(r), n = U(n)), !O(t) && te(r) && !te(n))
|
|
640
|
-
return c || (r.value = n), !0;
|
|
641
|
-
}
|
|
642
|
-
const o = O(t) && Zs(s) ? Number(s) < t.length : B(t, s), l = Reflect.set(
|
|
643
|
-
t,
|
|
644
|
-
s,
|
|
645
|
-
n,
|
|
646
|
-
te(t) ? t : i
|
|
647
|
-
);
|
|
648
|
-
return t === U(i) && (o ? fe(n, r) && Re(t, "set", s, n) : Re(t, "add", s, n)), l;
|
|
649
|
-
}
|
|
650
|
-
deleteProperty(t, s) {
|
|
651
|
-
const n = B(t, s);
|
|
652
|
-
t[s];
|
|
653
|
-
const i = Reflect.deleteProperty(t, s);
|
|
654
|
-
return i && n && Re(t, "delete", s, void 0), i;
|
|
655
|
-
}
|
|
656
|
-
has(t, s) {
|
|
657
|
-
const n = Reflect.has(t, s);
|
|
658
|
-
return (!Je(s) || !wi.has(s)) && ne(t, "has", s), n;
|
|
659
|
-
}
|
|
660
|
-
ownKeys(t) {
|
|
661
|
-
return ne(
|
|
662
|
-
t,
|
|
663
|
-
"iterate",
|
|
664
|
-
O(t) ? "length" : nt
|
|
665
|
-
), Reflect.ownKeys(t);
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
class ro extends Ti {
|
|
669
|
-
constructor(t = !1) {
|
|
670
|
-
super(!0, t);
|
|
671
|
-
}
|
|
672
|
-
set(t, s) {
|
|
673
|
-
return !0;
|
|
674
|
-
}
|
|
675
|
-
deleteProperty(t, s) {
|
|
676
|
-
return !0;
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
const oo = /* @__PURE__ */ new $i(), lo = /* @__PURE__ */ new ro(), co = /* @__PURE__ */ new $i(!0);
|
|
680
|
-
const js = (e) => e, qt = (e) => Reflect.getPrototypeOf(e);
|
|
681
|
-
function ao(e, t, s) {
|
|
682
|
-
return function(...n) {
|
|
683
|
-
const i = this.__v_raw, r = U(i), o = dt(r), l = e === "entries" || e === Symbol.iterator && o, c = e === "keys" && o, d = i[e](...n), u = s ? js : t ? es : ee;
|
|
684
|
-
return !t && ne(
|
|
685
|
-
r,
|
|
686
|
-
"iterate",
|
|
687
|
-
c ? Ls : nt
|
|
688
|
-
), {
|
|
689
|
-
// iterator protocol
|
|
690
|
-
next() {
|
|
691
|
-
const { value: h, done: p } = d.next();
|
|
692
|
-
return p ? { value: h, done: p } : {
|
|
693
|
-
value: l ? [u(h[0]), u(h[1])] : u(h),
|
|
694
|
-
done: p
|
|
695
|
-
};
|
|
696
|
-
},
|
|
697
|
-
// iterable protocol
|
|
698
|
-
[Symbol.iterator]() {
|
|
699
|
-
return this;
|
|
700
|
-
}
|
|
701
|
-
};
|
|
702
|
-
};
|
|
703
|
-
}
|
|
704
|
-
function zt(e) {
|
|
705
|
-
return function(...t) {
|
|
706
|
-
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
707
|
-
};
|
|
708
|
-
}
|
|
709
|
-
function uo(e, t) {
|
|
710
|
-
const s = {
|
|
711
|
-
get(i) {
|
|
712
|
-
const r = this.__v_raw, o = U(r), l = U(i);
|
|
713
|
-
e || (fe(i, l) && ne(o, "get", i), ne(o, "get", l));
|
|
714
|
-
const { has: c } = qt(o), d = t ? js : e ? es : ee;
|
|
715
|
-
if (c.call(o, i))
|
|
716
|
-
return d(r.get(i));
|
|
717
|
-
if (c.call(o, l))
|
|
718
|
-
return d(r.get(l));
|
|
719
|
-
r !== o && r.get(i);
|
|
720
|
-
},
|
|
721
|
-
get size() {
|
|
722
|
-
const i = this.__v_raw;
|
|
723
|
-
return !e && ne(U(i), "iterate", nt), i.size;
|
|
724
|
-
},
|
|
725
|
-
has(i) {
|
|
726
|
-
const r = this.__v_raw, o = U(r), l = U(i);
|
|
727
|
-
return e || (fe(i, l) && ne(o, "has", i), ne(o, "has", l)), i === l ? r.has(i) : r.has(i) || r.has(l);
|
|
728
|
-
},
|
|
729
|
-
forEach(i, r) {
|
|
730
|
-
const o = this, l = o.__v_raw, c = U(l), d = t ? js : e ? es : ee;
|
|
731
|
-
return !e && ne(c, "iterate", nt), l.forEach((u, h) => i.call(r, d(u), d(h), o));
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
|
-
return se(
|
|
735
|
-
s,
|
|
736
|
-
e ? {
|
|
737
|
-
add: zt("add"),
|
|
738
|
-
set: zt("set"),
|
|
739
|
-
delete: zt("delete"),
|
|
740
|
-
clear: zt("clear")
|
|
741
|
-
} : {
|
|
742
|
-
add(i) {
|
|
743
|
-
!t && !me(i) && !Ke(i) && (i = U(i));
|
|
744
|
-
const r = U(this);
|
|
745
|
-
return qt(r).has.call(r, i) || (r.add(i), Re(r, "add", i, i)), this;
|
|
746
|
-
},
|
|
747
|
-
set(i, r) {
|
|
748
|
-
!t && !me(r) && !Ke(r) && (r = U(r));
|
|
749
|
-
const o = U(this), { has: l, get: c } = qt(o);
|
|
750
|
-
let d = l.call(o, i);
|
|
751
|
-
d || (i = U(i), d = l.call(o, i));
|
|
752
|
-
const u = c.call(o, i);
|
|
753
|
-
return o.set(i, r), d ? fe(r, u) && Re(o, "set", i, r) : Re(o, "add", i, r), this;
|
|
754
|
-
},
|
|
755
|
-
delete(i) {
|
|
756
|
-
const r = U(this), { has: o, get: l } = qt(r);
|
|
757
|
-
let c = o.call(r, i);
|
|
758
|
-
c || (i = U(i), c = o.call(r, i)), l && l.call(r, i);
|
|
759
|
-
const d = r.delete(i);
|
|
760
|
-
return c && Re(r, "delete", i, void 0), d;
|
|
761
|
-
},
|
|
762
|
-
clear() {
|
|
763
|
-
const i = U(this), r = i.size !== 0, o = i.clear();
|
|
764
|
-
return r && Re(
|
|
765
|
-
i,
|
|
766
|
-
"clear",
|
|
767
|
-
void 0,
|
|
768
|
-
void 0
|
|
769
|
-
), o;
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
), [
|
|
773
|
-
"keys",
|
|
774
|
-
"values",
|
|
775
|
-
"entries",
|
|
776
|
-
Symbol.iterator
|
|
777
|
-
].forEach((i) => {
|
|
778
|
-
s[i] = ao(i, e, t);
|
|
779
|
-
}), s;
|
|
780
|
-
}
|
|
781
|
-
function rn(e, t) {
|
|
782
|
-
const s = uo(e, t);
|
|
783
|
-
return (n, i, r) => i === "__v_isReactive" ? !e : i === "__v_isReadonly" ? e : i === "__v_raw" ? n : Reflect.get(
|
|
784
|
-
B(s, i) && i in n ? s : n,
|
|
785
|
-
i,
|
|
786
|
-
r
|
|
787
|
-
);
|
|
788
|
-
}
|
|
789
|
-
const fo = {
|
|
790
|
-
get: /* @__PURE__ */ rn(!1, !1)
|
|
791
|
-
}, ho = {
|
|
792
|
-
get: /* @__PURE__ */ rn(!1, !0)
|
|
793
|
-
}, po = {
|
|
794
|
-
get: /* @__PURE__ */ rn(!0, !1)
|
|
795
|
-
};
|
|
796
|
-
const Ai = /* @__PURE__ */ new WeakMap(), Pi = /* @__PURE__ */ new WeakMap(), Ii = /* @__PURE__ */ new WeakMap(), mo = /* @__PURE__ */ new WeakMap();
|
|
797
|
-
function go(e) {
|
|
798
|
-
switch (e) {
|
|
799
|
-
case "Object":
|
|
800
|
-
case "Array":
|
|
801
|
-
return 1;
|
|
802
|
-
case "Map":
|
|
803
|
-
case "Set":
|
|
804
|
-
case "WeakMap":
|
|
805
|
-
case "WeakSet":
|
|
806
|
-
return 2;
|
|
807
|
-
default:
|
|
808
|
-
return 0;
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
function _o(e) {
|
|
812
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 : go(kr(e));
|
|
813
|
-
}
|
|
814
|
-
function on(e) {
|
|
815
|
-
return Ke(e) ? e : ln(
|
|
816
|
-
e,
|
|
817
|
-
!1,
|
|
818
|
-
oo,
|
|
819
|
-
fo,
|
|
820
|
-
Ai
|
|
821
|
-
);
|
|
822
|
-
}
|
|
823
|
-
function bo(e) {
|
|
824
|
-
return ln(
|
|
825
|
-
e,
|
|
826
|
-
!1,
|
|
827
|
-
co,
|
|
828
|
-
ho,
|
|
829
|
-
Pi
|
|
830
|
-
);
|
|
831
|
-
}
|
|
832
|
-
function Hs(e) {
|
|
833
|
-
return ln(
|
|
834
|
-
e,
|
|
835
|
-
!0,
|
|
836
|
-
lo,
|
|
837
|
-
po,
|
|
838
|
-
Ii
|
|
839
|
-
);
|
|
840
|
-
}
|
|
841
|
-
function ln(e, t, s, n, i) {
|
|
842
|
-
if (!G(e) || e.__v_raw && !(t && e.__v_isReactive))
|
|
843
|
-
return e;
|
|
844
|
-
const r = _o(e);
|
|
845
|
-
if (r === 0)
|
|
846
|
-
return e;
|
|
847
|
-
const o = i.get(e);
|
|
848
|
-
if (o)
|
|
849
|
-
return o;
|
|
850
|
-
const l = new Proxy(
|
|
851
|
-
e,
|
|
852
|
-
r === 2 ? n : s
|
|
853
|
-
);
|
|
854
|
-
return i.set(e, l), l;
|
|
855
|
-
}
|
|
856
|
-
function ht(e) {
|
|
857
|
-
return Ke(e) ? ht(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
858
|
-
}
|
|
859
|
-
function Ke(e) {
|
|
860
|
-
return !!(e && e.__v_isReadonly);
|
|
861
|
-
}
|
|
862
|
-
function me(e) {
|
|
863
|
-
return !!(e && e.__v_isShallow);
|
|
864
|
-
}
|
|
865
|
-
function cn(e) {
|
|
866
|
-
return e ? !!e.__v_raw : !1;
|
|
867
|
-
}
|
|
868
|
-
function U(e) {
|
|
869
|
-
const t = e && e.__v_raw;
|
|
870
|
-
return t ? U(t) : e;
|
|
871
|
-
}
|
|
872
|
-
function vo(e) {
|
|
873
|
-
return !B(e, "__v_skip") && Object.isExtensible(e) && hi(e, "__v_skip", !0), e;
|
|
874
|
-
}
|
|
875
|
-
const ee = (e) => G(e) ? on(e) : e, es = (e) => G(e) ? Hs(e) : e;
|
|
876
|
-
function te(e) {
|
|
877
|
-
return e ? e.__v_isRef === !0 : !1;
|
|
878
|
-
}
|
|
879
|
-
function On(e) {
|
|
880
|
-
return Mi(e, !1);
|
|
881
|
-
}
|
|
882
|
-
function Yt(e) {
|
|
883
|
-
return Mi(e, !0);
|
|
884
|
-
}
|
|
885
|
-
function Mi(e, t) {
|
|
886
|
-
return te(e) ? e : new yo(e, t);
|
|
887
|
-
}
|
|
888
|
-
class yo {
|
|
889
|
-
constructor(t, s) {
|
|
890
|
-
this.dep = new ps(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = s ? t : U(t), this._value = s ? t : ee(t), this.__v_isShallow = s;
|
|
891
|
-
}
|
|
892
|
-
get value() {
|
|
893
|
-
return this.dep.track(), this._value;
|
|
894
|
-
}
|
|
895
|
-
set value(t) {
|
|
896
|
-
const s = this._rawValue, n = this.__v_isShallow || me(t) || Ke(t);
|
|
897
|
-
t = n ? t : U(t), fe(t, s) && (this._rawValue = t, this._value = n ? t : ee(t), this.dep.trigger());
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
function Us(e) {
|
|
901
|
-
return te(e) ? e.value : e;
|
|
902
|
-
}
|
|
903
|
-
const xo = {
|
|
904
|
-
get: (e, t, s) => t === "__v_raw" ? e : Us(Reflect.get(e, t, s)),
|
|
905
|
-
set: (e, t, s, n) => {
|
|
906
|
-
const i = e[t];
|
|
907
|
-
return te(i) && !te(s) ? (i.value = s, !0) : Reflect.set(e, t, s, n);
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
|
-
function Oi(e) {
|
|
911
|
-
return ht(e) ? e : new Proxy(e, xo);
|
|
912
|
-
}
|
|
913
|
-
class Co {
|
|
914
|
-
constructor(t) {
|
|
915
|
-
this.__v_isRef = !0, this._value = void 0;
|
|
916
|
-
const s = this.dep = new ps(), { get: n, set: i } = t(s.track.bind(s), s.trigger.bind(s));
|
|
917
|
-
this._get = n, this._set = i;
|
|
918
|
-
}
|
|
919
|
-
get value() {
|
|
920
|
-
return this._value = this._get();
|
|
921
|
-
}
|
|
922
|
-
set value(t) {
|
|
923
|
-
this._set(t);
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
function Eo(e) {
|
|
927
|
-
return new Co(e);
|
|
928
|
-
}
|
|
929
|
-
class So {
|
|
930
|
-
constructor(t, s, n) {
|
|
931
|
-
this.fn = t, this.setter = s, this._value = void 0, this.dep = new ps(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Rt - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !s, this.isSSR = n;
|
|
932
|
-
}
|
|
933
|
-
/**
|
|
934
|
-
* @internal
|
|
935
|
-
*/
|
|
936
|
-
notify() {
|
|
937
|
-
if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
|
|
938
|
-
z !== this)
|
|
939
|
-
return vi(this, !0), !0;
|
|
940
|
-
}
|
|
941
|
-
get value() {
|
|
942
|
-
const t = this.dep.track();
|
|
943
|
-
return Ci(this), t && (t.version = this.dep.version), this._value;
|
|
944
|
-
}
|
|
945
|
-
set value(t) {
|
|
946
|
-
this.setter && this.setter(t);
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
function wo(e, t, s = !1) {
|
|
950
|
-
let n, i;
|
|
951
|
-
return N(e) ? n = e : (n = e.get, i = e.set), new So(n, i, s);
|
|
952
|
-
}
|
|
953
|
-
const Jt = {}, ts = /* @__PURE__ */ new WeakMap();
|
|
954
|
-
let tt;
|
|
955
|
-
function To(e, t = !1, s = tt) {
|
|
956
|
-
if (s) {
|
|
957
|
-
let n = ts.get(s);
|
|
958
|
-
n || ts.set(s, n = []), n.push(e);
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
function $o(e, t, s = k) {
|
|
962
|
-
const { immediate: n, deep: i, once: r, scheduler: o, augmentJob: l, call: c } = s, d = (T) => i ? T : me(T) || i === !1 || i === 0 ? We(T, 1) : We(T);
|
|
963
|
-
let u, h, p, b, x = !1, $ = !1;
|
|
964
|
-
if (te(e) ? (h = () => e.value, x = me(e)) : ht(e) ? (h = () => d(e), x = !0) : O(e) ? ($ = !0, x = e.some((T) => ht(T) || me(T)), h = () => e.map((T) => {
|
|
965
|
-
if (te(T))
|
|
966
|
-
return T.value;
|
|
967
|
-
if (ht(T))
|
|
968
|
-
return d(T);
|
|
969
|
-
if (N(T))
|
|
970
|
-
return c ? c(T, 2) : T();
|
|
971
|
-
})) : N(e) ? t ? h = c ? () => c(e, 2) : e : h = () => {
|
|
972
|
-
if (p) {
|
|
973
|
-
je();
|
|
974
|
-
try {
|
|
975
|
-
p();
|
|
976
|
-
} finally {
|
|
977
|
-
He();
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
const T = tt;
|
|
981
|
-
tt = u;
|
|
982
|
-
try {
|
|
983
|
-
return c ? c(e, 3, [b]) : e(b);
|
|
984
|
-
} finally {
|
|
985
|
-
tt = T;
|
|
986
|
-
}
|
|
987
|
-
} : h = Pe, t && i) {
|
|
988
|
-
const T = h, F = i === !0 ? 1 / 0 : i;
|
|
989
|
-
h = () => We(T(), F);
|
|
990
|
-
}
|
|
991
|
-
const H = Qr(), I = () => {
|
|
992
|
-
u.stop(), H && H.active && Qs(H.effects, u);
|
|
993
|
-
};
|
|
994
|
-
if (r && t) {
|
|
995
|
-
const T = t;
|
|
996
|
-
t = (...F) => {
|
|
997
|
-
T(...F), I();
|
|
998
|
-
};
|
|
999
|
-
}
|
|
1000
|
-
let R = $ ? new Array(e.length).fill(Jt) : Jt;
|
|
1001
|
-
const D = (T) => {
|
|
1002
|
-
if (!(!(u.flags & 1) || !u.dirty && !T))
|
|
1003
|
-
if (t) {
|
|
1004
|
-
const F = u.run();
|
|
1005
|
-
if (i || x || ($ ? F.some((V, Q) => fe(V, R[Q])) : fe(F, R))) {
|
|
1006
|
-
p && p();
|
|
1007
|
-
const V = tt;
|
|
1008
|
-
tt = u;
|
|
1009
|
-
try {
|
|
1010
|
-
const Q = [
|
|
1011
|
-
F,
|
|
1012
|
-
// pass undefined as the old value when it's changed for the first time
|
|
1013
|
-
R === Jt ? void 0 : $ && R[0] === Jt ? [] : R,
|
|
1014
|
-
b
|
|
1015
|
-
];
|
|
1016
|
-
R = F, c ? c(t, 3, Q) : (
|
|
1017
|
-
// @ts-expect-error
|
|
1018
|
-
t(...Q)
|
|
1019
|
-
);
|
|
1020
|
-
} finally {
|
|
1021
|
-
tt = V;
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
} else
|
|
1025
|
-
u.run();
|
|
1026
|
-
};
|
|
1027
|
-
return l && l(D), u = new _i(h), u.scheduler = o ? () => o(D, !1) : D, b = (T) => To(T, !1, u), p = u.onStop = () => {
|
|
1028
|
-
const T = ts.get(u);
|
|
1029
|
-
if (T) {
|
|
1030
|
-
if (c)
|
|
1031
|
-
c(T, 4);
|
|
1032
|
-
else
|
|
1033
|
-
for (const F of T) F();
|
|
1034
|
-
ts.delete(u);
|
|
1035
|
-
}
|
|
1036
|
-
}, t ? n ? D(!0) : R = u.run() : o ? o(D.bind(null, !0), !0) : u.run(), I.pause = u.pause.bind(u), I.resume = u.resume.bind(u), I.stop = I, I;
|
|
1037
|
-
}
|
|
1038
|
-
function We(e, t = 1 / 0, s) {
|
|
1039
|
-
if (t <= 0 || !G(e) || e.__v_skip || (s = s || /* @__PURE__ */ new Map(), (s.get(e) || 0) >= t))
|
|
1040
|
-
return e;
|
|
1041
|
-
if (s.set(e, t), t--, te(e))
|
|
1042
|
-
We(e.value, t, s);
|
|
1043
|
-
else if (O(e))
|
|
1044
|
-
for (let n = 0; n < e.length; n++)
|
|
1045
|
-
We(e[n], t, s);
|
|
1046
|
-
else if (ci(e) || dt(e))
|
|
1047
|
-
e.forEach((n) => {
|
|
1048
|
-
We(n, t, s);
|
|
1049
|
-
});
|
|
1050
|
-
else if (fi(e)) {
|
|
1051
|
-
for (const n in e)
|
|
1052
|
-
We(e[n], t, s);
|
|
1053
|
-
for (const n of Object.getOwnPropertySymbols(e))
|
|
1054
|
-
Object.prototype.propertyIsEnumerable.call(e, n) && We(e[n], t, s);
|
|
1055
|
-
}
|
|
1056
|
-
return e;
|
|
1057
|
-
}
|
|
1058
|
-
/**
|
|
1059
|
-
* @vue/runtime-core v3.5.22
|
|
1060
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1061
|
-
* @license MIT
|
|
1062
|
-
**/
|
|
1063
|
-
function Ut(e, t, s, n) {
|
|
1064
|
-
try {
|
|
1065
|
-
return n ? e(...n) : e();
|
|
1066
|
-
} catch (i) {
|
|
1067
|
-
gs(i, t, s);
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
function Ie(e, t, s, n) {
|
|
1071
|
-
if (N(e)) {
|
|
1072
|
-
const i = Ut(e, t, s, n);
|
|
1073
|
-
return i && ai(i) && i.catch((r) => {
|
|
1074
|
-
gs(r, t, s);
|
|
1075
|
-
}), i;
|
|
1076
|
-
}
|
|
1077
|
-
if (O(e)) {
|
|
1078
|
-
const i = [];
|
|
1079
|
-
for (let r = 0; r < e.length; r++)
|
|
1080
|
-
i.push(Ie(e[r], t, s, n));
|
|
1081
|
-
return i;
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
function gs(e, t, s, n = !0) {
|
|
1085
|
-
const i = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: o } = t && t.appContext.config || k;
|
|
1086
|
-
if (t) {
|
|
1087
|
-
let l = t.parent;
|
|
1088
|
-
const c = t.proxy, d = `https://vuejs.org/error-reference/#runtime-${s}`;
|
|
1089
|
-
for (; l; ) {
|
|
1090
|
-
const u = l.ec;
|
|
1091
|
-
if (u) {
|
|
1092
|
-
for (let h = 0; h < u.length; h++)
|
|
1093
|
-
if (u[h](e, c, d) === !1)
|
|
1094
|
-
return;
|
|
1095
|
-
}
|
|
1096
|
-
l = l.parent;
|
|
1097
|
-
}
|
|
1098
|
-
if (r) {
|
|
1099
|
-
je(), Ut(r, null, 10, [
|
|
1100
|
-
e,
|
|
1101
|
-
c,
|
|
1102
|
-
d
|
|
1103
|
-
]), He();
|
|
1104
|
-
return;
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
Ao(e, s, i, n, o);
|
|
1108
|
-
}
|
|
1109
|
-
function Ao(e, t, s, n = !0, i = !1) {
|
|
1110
|
-
if (i)
|
|
1111
|
-
throw e;
|
|
1112
|
-
}
|
|
1113
|
-
const oe = [];
|
|
1114
|
-
let Te = -1;
|
|
1115
|
-
const pt = [];
|
|
1116
|
-
let ke = null, ct = 0;
|
|
1117
|
-
const Ni = /* @__PURE__ */ Promise.resolve();
|
|
1118
|
-
let ss = null;
|
|
1119
|
-
function Xt(e) {
|
|
1120
|
-
const t = ss || Ni;
|
|
1121
|
-
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
1122
|
-
}
|
|
1123
|
-
function Po(e) {
|
|
1124
|
-
let t = Te + 1, s = oe.length;
|
|
1125
|
-
for (; t < s; ) {
|
|
1126
|
-
const n = t + s >>> 1, i = oe[n], r = Lt(i);
|
|
1127
|
-
r < e || r === e && i.flags & 2 ? t = n + 1 : s = n;
|
|
1128
|
-
}
|
|
1129
|
-
return t;
|
|
1130
|
-
}
|
|
1131
|
-
function an(e) {
|
|
1132
|
-
if (!(e.flags & 1)) {
|
|
1133
|
-
const t = Lt(e), s = oe[oe.length - 1];
|
|
1134
|
-
!s || // fast path when the job id is larger than the tail
|
|
1135
|
-
!(e.flags & 2) && t >= Lt(s) ? oe.push(e) : oe.splice(Po(t), 0, e), e.flags |= 1, Fi();
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
function Fi() {
|
|
1139
|
-
ss || (ss = Ni.then(Di));
|
|
1140
|
-
}
|
|
1141
|
-
function Io(e) {
|
|
1142
|
-
O(e) ? pt.push(...e) : ke && e.id === -1 ? ke.splice(ct + 1, 0, e) : e.flags & 1 || (pt.push(e), e.flags |= 1), Fi();
|
|
1143
|
-
}
|
|
1144
|
-
function Nn(e, t, s = Te + 1) {
|
|
1145
|
-
for (; s < oe.length; s++) {
|
|
1146
|
-
const n = oe[s];
|
|
1147
|
-
if (n && n.flags & 2) {
|
|
1148
|
-
if (e && n.id !== e.uid)
|
|
1149
|
-
continue;
|
|
1150
|
-
oe.splice(s, 1), s--, n.flags & 4 && (n.flags &= -2), n(), n.flags & 4 || (n.flags &= -2);
|
|
1151
|
-
}
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
function Ri(e) {
|
|
1155
|
-
if (pt.length) {
|
|
1156
|
-
const t = [...new Set(pt)].sort(
|
|
1157
|
-
(s, n) => Lt(s) - Lt(n)
|
|
1158
|
-
);
|
|
1159
|
-
if (pt.length = 0, ke) {
|
|
1160
|
-
ke.push(...t);
|
|
1161
|
-
return;
|
|
1162
|
-
}
|
|
1163
|
-
for (ke = t, ct = 0; ct < ke.length; ct++) {
|
|
1164
|
-
const s = ke[ct];
|
|
1165
|
-
s.flags & 4 && (s.flags &= -2), s.flags & 8 || s(), s.flags &= -2;
|
|
1166
|
-
}
|
|
1167
|
-
ke = null, ct = 0;
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
const Lt = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
1171
|
-
function Di(e) {
|
|
1172
|
-
try {
|
|
1173
|
-
for (Te = 0; Te < oe.length; Te++) {
|
|
1174
|
-
const t = oe[Te];
|
|
1175
|
-
t && !(t.flags & 8) && (t.flags & 4 && (t.flags &= -2), Ut(
|
|
1176
|
-
t,
|
|
1177
|
-
t.i,
|
|
1178
|
-
t.i ? 15 : 14
|
|
1179
|
-
), t.flags & 4 || (t.flags &= -2));
|
|
1180
|
-
}
|
|
1181
|
-
} finally {
|
|
1182
|
-
for (; Te < oe.length; Te++) {
|
|
1183
|
-
const t = oe[Te];
|
|
1184
|
-
t && (t.flags &= -2);
|
|
1185
|
-
}
|
|
1186
|
-
Te = -1, oe.length = 0, Ri(), ss = null, (oe.length || pt.length) && Di();
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
let Ae = null, Li = null;
|
|
1190
|
-
function ns(e) {
|
|
1191
|
-
const t = Ae;
|
|
1192
|
-
return Ae = e, Li = e && e.type.__scopeId || null, t;
|
|
1193
|
-
}
|
|
1194
|
-
function Mo(e, t = Ae, s) {
|
|
1195
|
-
if (!t || e._n)
|
|
1196
|
-
return e;
|
|
1197
|
-
const n = (...i) => {
|
|
1198
|
-
n._d && Kn(-1);
|
|
1199
|
-
const r = ns(t);
|
|
1200
|
-
let o;
|
|
1201
|
-
try {
|
|
1202
|
-
o = e(...i);
|
|
1203
|
-
} finally {
|
|
1204
|
-
ns(r), n._d && Kn(1);
|
|
1205
|
-
}
|
|
1206
|
-
return o;
|
|
1207
|
-
};
|
|
1208
|
-
return n._n = !0, n._c = !0, n._d = !0, n;
|
|
1209
|
-
}
|
|
1210
|
-
function Ze(e, t, s, n) {
|
|
1211
|
-
const i = e.dirs, r = t && t.dirs;
|
|
1212
|
-
for (let o = 0; o < i.length; o++) {
|
|
1213
|
-
const l = i[o];
|
|
1214
|
-
r && (l.oldValue = r[o].value);
|
|
1215
|
-
let c = l.dir[n];
|
|
1216
|
-
c && (je(), Ie(c, s, 8, [
|
|
1217
|
-
e.el,
|
|
1218
|
-
l,
|
|
1219
|
-
e,
|
|
1220
|
-
t
|
|
1221
|
-
]), He());
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
const Oo = Symbol("_vte"), No = (e) => e.__isTeleport, Fo = Symbol("_leaveCb");
|
|
1225
|
-
function un(e, t) {
|
|
1226
|
-
e.shapeFlag & 6 && e.component ? (e.transition = t, un(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1227
|
-
}
|
|
1228
|
-
// @__NO_SIDE_EFFECTS__
|
|
1229
|
-
function ji(e, t) {
|
|
1230
|
-
return N(e) ? (
|
|
1231
|
-
// #8236: extend call and options.name access are considered side-effects
|
|
1232
|
-
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
1233
|
-
se({ name: e.name }, t, { setup: e })
|
|
1234
|
-
) : e;
|
|
1235
|
-
}
|
|
1236
|
-
function Hi(e) {
|
|
1237
|
-
e.ids = [e.ids[0] + e.ids[2]++ + "-", 0, 0];
|
|
1238
|
-
}
|
|
1239
|
-
function Ro(e) {
|
|
1240
|
-
const t = gn(), s = Yt(null);
|
|
1241
|
-
if (t) {
|
|
1242
|
-
const i = t.refs === k ? t.refs = {} : t.refs;
|
|
1243
|
-
Object.defineProperty(i, e, {
|
|
1244
|
-
enumerable: !0,
|
|
1245
|
-
get: () => s.value,
|
|
1246
|
-
set: (r) => s.value = r
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
return s;
|
|
1250
|
-
}
|
|
1251
|
-
const is = /* @__PURE__ */ new WeakMap();
|
|
1252
|
-
function It(e, t, s, n, i = !1) {
|
|
1253
|
-
if (O(e)) {
|
|
1254
|
-
e.forEach(
|
|
1255
|
-
(x, $) => It(
|
|
1256
|
-
x,
|
|
1257
|
-
t && (O(t) ? t[$] : t),
|
|
1258
|
-
s,
|
|
1259
|
-
n,
|
|
1260
|
-
i
|
|
1261
|
-
)
|
|
1262
|
-
);
|
|
1263
|
-
return;
|
|
1264
|
-
}
|
|
1265
|
-
if (Mt(n) && !i) {
|
|
1266
|
-
n.shapeFlag & 512 && n.type.__asyncResolved && n.component.subTree.component && It(e, t, s, n.component.subTree);
|
|
1267
|
-
return;
|
|
1268
|
-
}
|
|
1269
|
-
const r = n.shapeFlag & 4 ? _n(n.component) : n.el, o = i ? null : r, { i: l, r: c } = e, d = t && t.r, u = l.refs === k ? l.refs = {} : l.refs, h = l.setupState, p = U(h), b = h === k ? li : (x) => B(p, x);
|
|
1270
|
-
if (d != null && d !== c) {
|
|
1271
|
-
if (Fn(t), Z(d))
|
|
1272
|
-
u[d] = null, b(d) && (h[d] = null);
|
|
1273
|
-
else if (te(d)) {
|
|
1274
|
-
d.value = null;
|
|
1275
|
-
const x = t;
|
|
1276
|
-
x.k && (u[x.k] = null);
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
if (N(c))
|
|
1280
|
-
Ut(c, l, 12, [o, u]);
|
|
1281
|
-
else {
|
|
1282
|
-
const x = Z(c), $ = te(c);
|
|
1283
|
-
if (x || $) {
|
|
1284
|
-
const H = () => {
|
|
1285
|
-
if (e.f) {
|
|
1286
|
-
const I = x ? b(c) ? h[c] : u[c] : c.value;
|
|
1287
|
-
if (i)
|
|
1288
|
-
O(I) && Qs(I, r);
|
|
1289
|
-
else if (O(I))
|
|
1290
|
-
I.includes(r) || I.push(r);
|
|
1291
|
-
else if (x)
|
|
1292
|
-
u[c] = [r], b(c) && (h[c] = u[c]);
|
|
1293
|
-
else {
|
|
1294
|
-
const R = [r];
|
|
1295
|
-
c.value = R, e.k && (u[e.k] = R);
|
|
1296
|
-
}
|
|
1297
|
-
} else x ? (u[c] = o, b(c) && (h[c] = o)) : $ && (c.value = o, e.k && (u[e.k] = o));
|
|
1298
|
-
};
|
|
1299
|
-
if (o) {
|
|
1300
|
-
const I = () => {
|
|
1301
|
-
H(), is.delete(e);
|
|
1302
|
-
};
|
|
1303
|
-
I.id = -1, is.set(e, I), he(I, s);
|
|
1304
|
-
} else
|
|
1305
|
-
Fn(e), H();
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
function Fn(e) {
|
|
1310
|
-
const t = is.get(e);
|
|
1311
|
-
t && (t.flags |= 8, is.delete(e));
|
|
1312
|
-
}
|
|
1313
|
-
ds().requestIdleCallback;
|
|
1314
|
-
ds().cancelIdleCallback;
|
|
1315
|
-
const Mt = (e) => !!e.type.__asyncLoader, Ui = (e) => e.type.__isKeepAlive;
|
|
1316
|
-
function Do(e, t) {
|
|
1317
|
-
ki(e, "a", t);
|
|
1318
|
-
}
|
|
1319
|
-
function Lo(e, t) {
|
|
1320
|
-
ki(e, "da", t);
|
|
1321
|
-
}
|
|
1322
|
-
function ki(e, t, s = le) {
|
|
1323
|
-
const n = e.__wdc || (e.__wdc = () => {
|
|
1324
|
-
let i = s;
|
|
1325
|
-
for (; i; ) {
|
|
1326
|
-
if (i.isDeactivated)
|
|
1327
|
-
return;
|
|
1328
|
-
i = i.parent;
|
|
1329
|
-
}
|
|
1330
|
-
return e();
|
|
1331
|
-
});
|
|
1332
|
-
if (_s(t, n, s), s) {
|
|
1333
|
-
let i = s.parent;
|
|
1334
|
-
for (; i && i.parent; )
|
|
1335
|
-
Ui(i.parent.vnode) && jo(n, t, s, i), i = i.parent;
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
function jo(e, t, s, n) {
|
|
1339
|
-
const i = _s(
|
|
1340
|
-
t,
|
|
1341
|
-
e,
|
|
1342
|
-
n,
|
|
1343
|
-
!0
|
|
1344
|
-
/* prepend */
|
|
1345
|
-
);
|
|
1346
|
-
Wi(() => {
|
|
1347
|
-
Qs(n[t], i);
|
|
1348
|
-
}, s);
|
|
1349
|
-
}
|
|
1350
|
-
function _s(e, t, s = le, n = !1) {
|
|
1351
|
-
if (s) {
|
|
1352
|
-
const i = s[e] || (s[e] = []), r = t.__weh || (t.__weh = (...o) => {
|
|
1353
|
-
je();
|
|
1354
|
-
const l = kt(s), c = Ie(t, s, e, o);
|
|
1355
|
-
return l(), He(), c;
|
|
1356
|
-
});
|
|
1357
|
-
return n ? i.unshift(r) : i.push(r), r;
|
|
1358
|
-
}
|
|
1359
|
-
}
|
|
1360
|
-
const Ue = (e) => (t, s = le) => {
|
|
1361
|
-
(!Ht || e === "sp") && _s(e, (...n) => t(...n), s);
|
|
1362
|
-
}, Vi = Ue("bm"), fn = Ue("m"), Ho = Ue(
|
|
1363
|
-
"bu"
|
|
1364
|
-
), Uo = Ue("u"), Bi = Ue(
|
|
1365
|
-
"bum"
|
|
1366
|
-
), Wi = Ue("um"), ko = Ue(
|
|
1367
|
-
"sp"
|
|
1368
|
-
), Vo = Ue("rtg"), Bo = Ue("rtc");
|
|
1369
|
-
function Wo(e, t = le) {
|
|
1370
|
-
_s("ec", e, t);
|
|
1371
|
-
}
|
|
1372
|
-
const Ko = Symbol.for("v-ndc");
|
|
1373
|
-
function Rn(e, t, s, n) {
|
|
1374
|
-
let i;
|
|
1375
|
-
const r = s, o = O(e);
|
|
1376
|
-
if (o || Z(e)) {
|
|
1377
|
-
const l = o && ht(e);
|
|
1378
|
-
let c = !1, d = !1;
|
|
1379
|
-
l && (c = !me(e), d = Ke(e), e = ms(e)), i = new Array(e.length);
|
|
1380
|
-
for (let u = 0, h = e.length; u < h; u++)
|
|
1381
|
-
i[u] = t(
|
|
1382
|
-
c ? d ? es(ee(e[u])) : ee(e[u]) : e[u],
|
|
1383
|
-
u,
|
|
1384
|
-
void 0,
|
|
1385
|
-
r
|
|
1386
|
-
);
|
|
1387
|
-
} else if (typeof e == "number") {
|
|
1388
|
-
i = new Array(e);
|
|
1389
|
-
for (let l = 0; l < e; l++)
|
|
1390
|
-
i[l] = t(l + 1, l, void 0, r);
|
|
1391
|
-
} else if (G(e))
|
|
1392
|
-
if (e[Symbol.iterator])
|
|
1393
|
-
i = Array.from(
|
|
1394
|
-
e,
|
|
1395
|
-
(l, c) => t(l, c, void 0, r)
|
|
1396
|
-
);
|
|
1397
|
-
else {
|
|
1398
|
-
const l = Object.keys(e);
|
|
1399
|
-
i = new Array(l.length);
|
|
1400
|
-
for (let c = 0, d = l.length; c < d; c++) {
|
|
1401
|
-
const u = l[c];
|
|
1402
|
-
i[c] = t(e[u], u, c, r);
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
else
|
|
1406
|
-
i = [];
|
|
1407
|
-
return i;
|
|
1408
|
-
}
|
|
1409
|
-
const ks = (e) => e ? pr(e) ? _n(e) : ks(e.parent) : null, Ot = (
|
|
1410
|
-
// Move PURE marker to new line to workaround compiler discarding it
|
|
1411
|
-
// due to type annotation
|
|
1412
|
-
/* @__PURE__ */ se(/* @__PURE__ */ Object.create(null), {
|
|
1413
|
-
$: (e) => e,
|
|
1414
|
-
$el: (e) => e.vnode.el,
|
|
1415
|
-
$data: (e) => e.data,
|
|
1416
|
-
$props: (e) => e.props,
|
|
1417
|
-
$attrs: (e) => e.attrs,
|
|
1418
|
-
$slots: (e) => e.slots,
|
|
1419
|
-
$refs: (e) => e.refs,
|
|
1420
|
-
$parent: (e) => ks(e.parent),
|
|
1421
|
-
$root: (e) => ks(e.root),
|
|
1422
|
-
$host: (e) => e.ce,
|
|
1423
|
-
$emit: (e) => e.emit,
|
|
1424
|
-
$options: (e) => qi(e),
|
|
1425
|
-
$forceUpdate: (e) => e.f || (e.f = () => {
|
|
1426
|
-
an(e.update);
|
|
1427
|
-
}),
|
|
1428
|
-
$nextTick: (e) => e.n || (e.n = Xt.bind(e.proxy)),
|
|
1429
|
-
$watch: (e) => hl.bind(e)
|
|
1430
|
-
})
|
|
1431
|
-
), Ps = (e, t) => e !== k && !e.__isScriptSetup && B(e, t), qo = {
|
|
1432
|
-
get({ _: e }, t) {
|
|
1433
|
-
if (t === "__v_skip")
|
|
1434
|
-
return !0;
|
|
1435
|
-
const { ctx: s, setupState: n, data: i, props: r, accessCache: o, type: l, appContext: c } = e;
|
|
1436
|
-
let d;
|
|
1437
|
-
if (t[0] !== "$") {
|
|
1438
|
-
const b = o[t];
|
|
1439
|
-
if (b !== void 0)
|
|
1440
|
-
switch (b) {
|
|
1441
|
-
case 1:
|
|
1442
|
-
return n[t];
|
|
1443
|
-
case 2:
|
|
1444
|
-
return i[t];
|
|
1445
|
-
case 4:
|
|
1446
|
-
return s[t];
|
|
1447
|
-
case 3:
|
|
1448
|
-
return r[t];
|
|
1449
|
-
}
|
|
1450
|
-
else {
|
|
1451
|
-
if (Ps(n, t))
|
|
1452
|
-
return o[t] = 1, n[t];
|
|
1453
|
-
if (i !== k && B(i, t))
|
|
1454
|
-
return o[t] = 2, i[t];
|
|
1455
|
-
if (
|
|
1456
|
-
// only cache other properties when instance has declared (thus stable)
|
|
1457
|
-
// props
|
|
1458
|
-
(d = e.propsOptions[0]) && B(d, t)
|
|
1459
|
-
)
|
|
1460
|
-
return o[t] = 3, r[t];
|
|
1461
|
-
if (s !== k && B(s, t))
|
|
1462
|
-
return o[t] = 4, s[t];
|
|
1463
|
-
Vs && (o[t] = 0);
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
const u = Ot[t];
|
|
1467
|
-
let h, p;
|
|
1468
|
-
if (u)
|
|
1469
|
-
return t === "$attrs" && ne(e.attrs, "get", ""), u(e);
|
|
1470
|
-
if (
|
|
1471
|
-
// css module (injected by vue-loader)
|
|
1472
|
-
(h = l.__cssModules) && (h = h[t])
|
|
1473
|
-
)
|
|
1474
|
-
return h;
|
|
1475
|
-
if (s !== k && B(s, t))
|
|
1476
|
-
return o[t] = 4, s[t];
|
|
1477
|
-
if (
|
|
1478
|
-
// global properties
|
|
1479
|
-
p = c.config.globalProperties, B(p, t)
|
|
1480
|
-
)
|
|
1481
|
-
return p[t];
|
|
1482
|
-
},
|
|
1483
|
-
set({ _: e }, t, s) {
|
|
1484
|
-
const { data: n, setupState: i, ctx: r } = e;
|
|
1485
|
-
return Ps(i, t) ? (i[t] = s, !0) : n !== k && B(n, t) ? (n[t] = s, !0) : B(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (r[t] = s, !0);
|
|
1486
|
-
},
|
|
1487
|
-
has({
|
|
1488
|
-
_: { data: e, setupState: t, accessCache: s, ctx: n, appContext: i, propsOptions: r, type: o }
|
|
1489
|
-
}, l) {
|
|
1490
|
-
let c, d;
|
|
1491
|
-
return !!(s[l] || e !== k && l[0] !== "$" && B(e, l) || Ps(t, l) || (c = r[0]) && B(c, l) || B(n, l) || B(Ot, l) || B(i.config.globalProperties, l) || (d = o.__cssModules) && d[l]);
|
|
1492
|
-
},
|
|
1493
|
-
defineProperty(e, t, s) {
|
|
1494
|
-
return s.get != null ? e._.accessCache[t] = 0 : B(s, "value") && this.set(e, t, s.value, null), Reflect.defineProperty(e, t, s);
|
|
1495
|
-
}
|
|
1496
|
-
};
|
|
1497
|
-
function rs(e) {
|
|
1498
|
-
return O(e) ? e.reduce(
|
|
1499
|
-
(t, s) => (t[s] = null, t),
|
|
1500
|
-
{}
|
|
1501
|
-
) : e;
|
|
1502
|
-
}
|
|
1503
|
-
function Dn(e, t) {
|
|
1504
|
-
return !e || !t ? e || t : O(e) && O(t) ? e.concat(t) : se({}, rs(e), rs(t));
|
|
1505
|
-
}
|
|
1506
|
-
let Vs = !0;
|
|
1507
|
-
function zo(e) {
|
|
1508
|
-
const t = qi(e), s = e.proxy, n = e.ctx;
|
|
1509
|
-
Vs = !1, t.beforeCreate && Ln(t.beforeCreate, e, "bc");
|
|
1510
|
-
const {
|
|
1511
|
-
// state
|
|
1512
|
-
data: i,
|
|
1513
|
-
computed: r,
|
|
1514
|
-
methods: o,
|
|
1515
|
-
watch: l,
|
|
1516
|
-
provide: c,
|
|
1517
|
-
inject: d,
|
|
1518
|
-
// lifecycle
|
|
1519
|
-
created: u,
|
|
1520
|
-
beforeMount: h,
|
|
1521
|
-
mounted: p,
|
|
1522
|
-
beforeUpdate: b,
|
|
1523
|
-
updated: x,
|
|
1524
|
-
activated: $,
|
|
1525
|
-
deactivated: H,
|
|
1526
|
-
beforeDestroy: I,
|
|
1527
|
-
beforeUnmount: R,
|
|
1528
|
-
destroyed: D,
|
|
1529
|
-
unmounted: T,
|
|
1530
|
-
render: F,
|
|
1531
|
-
renderTracked: V,
|
|
1532
|
-
renderTriggered: Q,
|
|
1533
|
-
errorCaptured: ye,
|
|
1534
|
-
serverPrefetch: Ye,
|
|
1535
|
-
// public API
|
|
1536
|
-
expose: Oe,
|
|
1537
|
-
inheritAttrs: rt,
|
|
1538
|
-
// assets
|
|
1539
|
-
components: ot,
|
|
1540
|
-
directives: Bt,
|
|
1541
|
-
filters: xs
|
|
1542
|
-
} = t;
|
|
1543
|
-
if (d && Jo(d, n, null), o)
|
|
1544
|
-
for (const Y in o) {
|
|
1545
|
-
const K = o[Y];
|
|
1546
|
-
N(K) && (n[Y] = K.bind(s));
|
|
1547
|
-
}
|
|
1548
|
-
if (i) {
|
|
1549
|
-
const Y = i.call(s, s);
|
|
1550
|
-
G(Y) && (e.data = on(Y));
|
|
1551
|
-
}
|
|
1552
|
-
if (Vs = !0, r)
|
|
1553
|
-
for (const Y in r) {
|
|
1554
|
-
const K = r[Y], Xe = N(K) ? K.bind(s, s) : N(K.get) ? K.get.bind(s, s) : Pe, Wt = !N(K) && N(K.set) ? K.set.bind(s) : Pe, Qe = gr({
|
|
1555
|
-
get: Xe,
|
|
1556
|
-
set: Wt
|
|
1557
|
-
});
|
|
1558
|
-
Object.defineProperty(n, Y, {
|
|
1559
|
-
enumerable: !0,
|
|
1560
|
-
configurable: !0,
|
|
1561
|
-
get: () => Qe.value,
|
|
1562
|
-
set: (xe) => Qe.value = xe
|
|
1563
|
-
});
|
|
1564
|
-
}
|
|
1565
|
-
if (l)
|
|
1566
|
-
for (const Y in l)
|
|
1567
|
-
Ki(l[Y], n, s, Y);
|
|
1568
|
-
if (c) {
|
|
1569
|
-
const Y = N(c) ? c.call(s) : c;
|
|
1570
|
-
Reflect.ownKeys(Y).forEach((K) => {
|
|
1571
|
-
Ji(K, Y[K]);
|
|
1572
|
-
});
|
|
1573
|
-
}
|
|
1574
|
-
u && Ln(u, e, "c");
|
|
1575
|
-
function ie(Y, K) {
|
|
1576
|
-
O(K) ? K.forEach((Xe) => Y(Xe.bind(s))) : K && Y(K.bind(s));
|
|
1577
|
-
}
|
|
1578
|
-
if (ie(Vi, h), ie(fn, p), ie(Ho, b), ie(Uo, x), ie(Do, $), ie(Lo, H), ie(Wo, ye), ie(Bo, V), ie(Vo, Q), ie(Bi, R), ie(Wi, T), ie(ko, Ye), O(Oe))
|
|
1579
|
-
if (Oe.length) {
|
|
1580
|
-
const Y = e.exposed || (e.exposed = {});
|
|
1581
|
-
Oe.forEach((K) => {
|
|
1582
|
-
Object.defineProperty(Y, K, {
|
|
1583
|
-
get: () => s[K],
|
|
1584
|
-
set: (Xe) => s[K] = Xe,
|
|
1585
|
-
enumerable: !0
|
|
1586
|
-
});
|
|
1587
|
-
});
|
|
1588
|
-
} else e.exposed || (e.exposed = {});
|
|
1589
|
-
F && e.render === Pe && (e.render = F), rt != null && (e.inheritAttrs = rt), ot && (e.components = ot), Bt && (e.directives = Bt), Ye && Hi(e);
|
|
1590
|
-
}
|
|
1591
|
-
function Jo(e, t, s = Pe) {
|
|
1592
|
-
O(e) && (e = Bs(e));
|
|
1593
|
-
for (const n in e) {
|
|
1594
|
-
const i = e[n];
|
|
1595
|
-
let r;
|
|
1596
|
-
G(i) ? "default" in i ? r = Nt(
|
|
1597
|
-
i.from || n,
|
|
1598
|
-
i.default,
|
|
1599
|
-
!0
|
|
1600
|
-
) : r = Nt(i.from || n) : r = Nt(i), te(r) ? Object.defineProperty(t, n, {
|
|
1601
|
-
enumerable: !0,
|
|
1602
|
-
configurable: !0,
|
|
1603
|
-
get: () => r.value,
|
|
1604
|
-
set: (o) => r.value = o
|
|
1605
|
-
}) : t[n] = r;
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
function Ln(e, t, s) {
|
|
1609
|
-
Ie(
|
|
1610
|
-
O(e) ? e.map((n) => n.bind(t.proxy)) : e.bind(t.proxy),
|
|
1611
|
-
t,
|
|
1612
|
-
s
|
|
1613
|
-
);
|
|
1614
|
-
}
|
|
1615
|
-
function Ki(e, t, s, n) {
|
|
1616
|
-
let i = n.includes(".") ? rr(s, n) : () => s[n];
|
|
1617
|
-
if (Z(e)) {
|
|
1618
|
-
const r = t[e];
|
|
1619
|
-
N(r) && gt(i, r);
|
|
1620
|
-
} else if (N(e))
|
|
1621
|
-
gt(i, e.bind(s));
|
|
1622
|
-
else if (G(e))
|
|
1623
|
-
if (O(e))
|
|
1624
|
-
e.forEach((r) => Ki(r, t, s, n));
|
|
1625
|
-
else {
|
|
1626
|
-
const r = N(e.handler) ? e.handler.bind(s) : t[e.handler];
|
|
1627
|
-
N(r) && gt(i, r, e);
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
function qi(e) {
|
|
1631
|
-
const t = e.type, { mixins: s, extends: n } = t, {
|
|
1632
|
-
mixins: i,
|
|
1633
|
-
optionsCache: r,
|
|
1634
|
-
config: { optionMergeStrategies: o }
|
|
1635
|
-
} = e.appContext, l = r.get(t);
|
|
1636
|
-
let c;
|
|
1637
|
-
return l ? c = l : !i.length && !s && !n ? c = t : (c = {}, i.length && i.forEach(
|
|
1638
|
-
(d) => os(c, d, o, !0)
|
|
1639
|
-
), os(c, t, o)), G(t) && r.set(t, c), c;
|
|
1640
|
-
}
|
|
1641
|
-
function os(e, t, s, n = !1) {
|
|
1642
|
-
const { mixins: i, extends: r } = t;
|
|
1643
|
-
r && os(e, r, s, !0), i && i.forEach(
|
|
1644
|
-
(o) => os(e, o, s, !0)
|
|
1645
|
-
);
|
|
1646
|
-
for (const o in t)
|
|
1647
|
-
if (!(n && o === "expose")) {
|
|
1648
|
-
const l = Go[o] || s && s[o];
|
|
1649
|
-
e[o] = l ? l(e[o], t[o]) : t[o];
|
|
1650
|
-
}
|
|
1651
|
-
return e;
|
|
1652
|
-
}
|
|
1653
|
-
const Go = {
|
|
1654
|
-
data: jn,
|
|
1655
|
-
props: Hn,
|
|
1656
|
-
emits: Hn,
|
|
1657
|
-
// objects
|
|
1658
|
-
methods: wt,
|
|
1659
|
-
computed: wt,
|
|
1660
|
-
// lifecycle
|
|
1661
|
-
beforeCreate: re,
|
|
1662
|
-
created: re,
|
|
1663
|
-
beforeMount: re,
|
|
1664
|
-
mounted: re,
|
|
1665
|
-
beforeUpdate: re,
|
|
1666
|
-
updated: re,
|
|
1667
|
-
beforeDestroy: re,
|
|
1668
|
-
beforeUnmount: re,
|
|
1669
|
-
destroyed: re,
|
|
1670
|
-
unmounted: re,
|
|
1671
|
-
activated: re,
|
|
1672
|
-
deactivated: re,
|
|
1673
|
-
errorCaptured: re,
|
|
1674
|
-
serverPrefetch: re,
|
|
1675
|
-
// assets
|
|
1676
|
-
components: wt,
|
|
1677
|
-
directives: wt,
|
|
1678
|
-
// watch
|
|
1679
|
-
watch: Xo,
|
|
1680
|
-
// provide / inject
|
|
1681
|
-
provide: jn,
|
|
1682
|
-
inject: Yo
|
|
1683
|
-
};
|
|
1684
|
-
function jn(e, t) {
|
|
1685
|
-
return t ? e ? function() {
|
|
1686
|
-
return se(
|
|
1687
|
-
N(e) ? e.call(this, this) : e,
|
|
1688
|
-
N(t) ? t.call(this, this) : t
|
|
1689
|
-
);
|
|
1690
|
-
} : t : e;
|
|
1691
|
-
}
|
|
1692
|
-
function Yo(e, t) {
|
|
1693
|
-
return wt(Bs(e), Bs(t));
|
|
1694
|
-
}
|
|
1695
|
-
function Bs(e) {
|
|
1696
|
-
if (O(e)) {
|
|
1697
|
-
const t = {};
|
|
1698
|
-
for (let s = 0; s < e.length; s++)
|
|
1699
|
-
t[e[s]] = e[s];
|
|
1700
|
-
return t;
|
|
1701
|
-
}
|
|
1702
|
-
return e;
|
|
1703
|
-
}
|
|
1704
|
-
function re(e, t) {
|
|
1705
|
-
return e ? [...new Set([].concat(e, t))] : t;
|
|
1706
|
-
}
|
|
1707
|
-
function wt(e, t) {
|
|
1708
|
-
return e ? se(/* @__PURE__ */ Object.create(null), e, t) : t;
|
|
1709
|
-
}
|
|
1710
|
-
function Hn(e, t) {
|
|
1711
|
-
return e ? O(e) && O(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : se(
|
|
1712
|
-
/* @__PURE__ */ Object.create(null),
|
|
1713
|
-
rs(e),
|
|
1714
|
-
rs(t ?? {})
|
|
1715
|
-
) : t;
|
|
1716
|
-
}
|
|
1717
|
-
function Xo(e, t) {
|
|
1718
|
-
if (!e) return t;
|
|
1719
|
-
if (!t) return e;
|
|
1720
|
-
const s = se(/* @__PURE__ */ Object.create(null), e);
|
|
1721
|
-
for (const n in t)
|
|
1722
|
-
s[n] = re(e[n], t[n]);
|
|
1723
|
-
return s;
|
|
1724
|
-
}
|
|
1725
|
-
function zi() {
|
|
1726
|
-
return {
|
|
1727
|
-
app: null,
|
|
1728
|
-
config: {
|
|
1729
|
-
isNativeTag: li,
|
|
1730
|
-
performance: !1,
|
|
1731
|
-
globalProperties: {},
|
|
1732
|
-
optionMergeStrategies: {},
|
|
1733
|
-
errorHandler: void 0,
|
|
1734
|
-
warnHandler: void 0,
|
|
1735
|
-
compilerOptions: {}
|
|
1736
|
-
},
|
|
1737
|
-
mixins: [],
|
|
1738
|
-
components: {},
|
|
1739
|
-
directives: {},
|
|
1740
|
-
provides: /* @__PURE__ */ Object.create(null),
|
|
1741
|
-
optionsCache: /* @__PURE__ */ new WeakMap(),
|
|
1742
|
-
propsCache: /* @__PURE__ */ new WeakMap(),
|
|
1743
|
-
emitsCache: /* @__PURE__ */ new WeakMap()
|
|
1744
|
-
};
|
|
1745
|
-
}
|
|
1746
|
-
let Qo = 0;
|
|
1747
|
-
function Zo(e, t) {
|
|
1748
|
-
return function(n, i = null) {
|
|
1749
|
-
N(n) || (n = se({}, n)), i != null && !G(i) && (i = null);
|
|
1750
|
-
const r = zi(), o = /* @__PURE__ */ new WeakSet(), l = [];
|
|
1751
|
-
let c = !1;
|
|
1752
|
-
const d = r.app = {
|
|
1753
|
-
_uid: Qo++,
|
|
1754
|
-
_component: n,
|
|
1755
|
-
_props: i,
|
|
1756
|
-
_container: null,
|
|
1757
|
-
_context: r,
|
|
1758
|
-
_instance: null,
|
|
1759
|
-
version: Fl,
|
|
1760
|
-
get config() {
|
|
1761
|
-
return r.config;
|
|
1762
|
-
},
|
|
1763
|
-
set config(u) {
|
|
1764
|
-
},
|
|
1765
|
-
use(u, ...h) {
|
|
1766
|
-
return o.has(u) || (u && N(u.install) ? (o.add(u), u.install(d, ...h)) : N(u) && (o.add(u), u(d, ...h))), d;
|
|
1767
|
-
},
|
|
1768
|
-
mixin(u) {
|
|
1769
|
-
return r.mixins.includes(u) || r.mixins.push(u), d;
|
|
1770
|
-
},
|
|
1771
|
-
component(u, h) {
|
|
1772
|
-
return h ? (r.components[u] = h, d) : r.components[u];
|
|
1773
|
-
},
|
|
1774
|
-
directive(u, h) {
|
|
1775
|
-
return h ? (r.directives[u] = h, d) : r.directives[u];
|
|
1776
|
-
},
|
|
1777
|
-
mount(u, h, p) {
|
|
1778
|
-
if (!c) {
|
|
1779
|
-
const b = d._ceVNode || De(n, i);
|
|
1780
|
-
return b.appContext = r, p === !0 ? p = "svg" : p === !1 && (p = void 0), e(b, u, p), c = !0, d._container = u, u.__vue_app__ = d, _n(b.component);
|
|
1781
|
-
}
|
|
1782
|
-
},
|
|
1783
|
-
onUnmount(u) {
|
|
1784
|
-
l.push(u);
|
|
1785
|
-
},
|
|
1786
|
-
unmount() {
|
|
1787
|
-
c && (Ie(
|
|
1788
|
-
l,
|
|
1789
|
-
d._instance,
|
|
1790
|
-
16
|
|
1791
|
-
), e(null, d._container), delete d._container.__vue_app__);
|
|
1792
|
-
},
|
|
1793
|
-
provide(u, h) {
|
|
1794
|
-
return r.provides[u] = h, d;
|
|
1795
|
-
},
|
|
1796
|
-
runWithContext(u) {
|
|
1797
|
-
const h = mt;
|
|
1798
|
-
mt = d;
|
|
1799
|
-
try {
|
|
1800
|
-
return u();
|
|
1801
|
-
} finally {
|
|
1802
|
-
mt = h;
|
|
1803
|
-
}
|
|
1804
|
-
}
|
|
1805
|
-
};
|
|
1806
|
-
return d;
|
|
1807
|
-
};
|
|
1808
|
-
}
|
|
1809
|
-
let mt = null;
|
|
1810
|
-
function Ji(e, t) {
|
|
1811
|
-
if (le) {
|
|
1812
|
-
let s = le.provides;
|
|
1813
|
-
const n = le.parent && le.parent.provides;
|
|
1814
|
-
n === s && (s = le.provides = Object.create(n)), s[e] = t;
|
|
1815
|
-
}
|
|
1816
|
-
}
|
|
1817
|
-
function Nt(e, t, s = !1) {
|
|
1818
|
-
const n = gn();
|
|
1819
|
-
if (n || mt) {
|
|
1820
|
-
let i = mt ? mt._context.provides : n ? n.parent == null || n.ce ? n.vnode.appContext && n.vnode.appContext.provides : n.parent.provides : void 0;
|
|
1821
|
-
if (i && e in i)
|
|
1822
|
-
return i[e];
|
|
1823
|
-
if (arguments.length > 1)
|
|
1824
|
-
return s && N(t) ? t.call(n && n.proxy) : t;
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
const Gi = {}, Yi = () => Object.create(Gi), Xi = (e) => Object.getPrototypeOf(e) === Gi;
|
|
1828
|
-
function el(e, t, s, n = !1) {
|
|
1829
|
-
const i = {}, r = Yi();
|
|
1830
|
-
e.propsDefaults = /* @__PURE__ */ Object.create(null), Qi(e, t, i, r);
|
|
1831
|
-
for (const o in e.propsOptions[0])
|
|
1832
|
-
o in i || (i[o] = void 0);
|
|
1833
|
-
s ? e.props = n ? i : bo(i) : e.type.props ? e.props = i : e.props = r, e.attrs = r;
|
|
1834
|
-
}
|
|
1835
|
-
function tl(e, t, s, n) {
|
|
1836
|
-
const {
|
|
1837
|
-
props: i,
|
|
1838
|
-
attrs: r,
|
|
1839
|
-
vnode: { patchFlag: o }
|
|
1840
|
-
} = e, l = U(i), [c] = e.propsOptions;
|
|
1841
|
-
let d = !1;
|
|
1842
|
-
if (
|
|
1843
|
-
// always force full diff in dev
|
|
1844
|
-
// - #1942 if hmr is enabled with sfc component
|
|
1845
|
-
// - vite#872 non-sfc component used by sfc component
|
|
1846
|
-
(n || o > 0) && !(o & 16)
|
|
1847
|
-
) {
|
|
1848
|
-
if (o & 8) {
|
|
1849
|
-
const u = e.vnode.dynamicProps;
|
|
1850
|
-
for (let h = 0; h < u.length; h++) {
|
|
1851
|
-
let p = u[h];
|
|
1852
|
-
if (bs(e.emitsOptions, p))
|
|
1853
|
-
continue;
|
|
1854
|
-
const b = t[p];
|
|
1855
|
-
if (c)
|
|
1856
|
-
if (B(r, p))
|
|
1857
|
-
b !== r[p] && (r[p] = b, d = !0);
|
|
1858
|
-
else {
|
|
1859
|
-
const x = Le(p);
|
|
1860
|
-
i[x] = Ws(
|
|
1861
|
-
c,
|
|
1862
|
-
l,
|
|
1863
|
-
x,
|
|
1864
|
-
b,
|
|
1865
|
-
e,
|
|
1866
|
-
!1
|
|
1867
|
-
);
|
|
1868
|
-
}
|
|
1869
|
-
else
|
|
1870
|
-
b !== r[p] && (r[p] = b, d = !0);
|
|
1871
|
-
}
|
|
1872
|
-
}
|
|
1873
|
-
} else {
|
|
1874
|
-
Qi(e, t, i, r) && (d = !0);
|
|
1875
|
-
let u;
|
|
1876
|
-
for (const h in l)
|
|
1877
|
-
(!t || // for camelCase
|
|
1878
|
-
!B(t, h) && // it's possible the original props was passed in as kebab-case
|
|
1879
|
-
// and converted to camelCase (#955)
|
|
1880
|
-
((u = Ge(h)) === h || !B(t, u))) && (c ? s && // for camelCase
|
|
1881
|
-
(s[h] !== void 0 || // for kebab-case
|
|
1882
|
-
s[u] !== void 0) && (i[h] = Ws(
|
|
1883
|
-
c,
|
|
1884
|
-
l,
|
|
1885
|
-
h,
|
|
1886
|
-
void 0,
|
|
1887
|
-
e,
|
|
1888
|
-
!0
|
|
1889
|
-
)) : delete i[h]);
|
|
1890
|
-
if (r !== l)
|
|
1891
|
-
for (const h in r)
|
|
1892
|
-
(!t || !B(t, h)) && (delete r[h], d = !0);
|
|
1893
|
-
}
|
|
1894
|
-
d && Re(e.attrs, "set", "");
|
|
1895
|
-
}
|
|
1896
|
-
function Qi(e, t, s, n) {
|
|
1897
|
-
const [i, r] = e.propsOptions;
|
|
1898
|
-
let o = !1, l;
|
|
1899
|
-
if (t)
|
|
1900
|
-
for (let c in t) {
|
|
1901
|
-
if ($t(c))
|
|
1902
|
-
continue;
|
|
1903
|
-
const d = t[c];
|
|
1904
|
-
let u;
|
|
1905
|
-
i && B(i, u = Le(c)) ? !r || !r.includes(u) ? s[u] = d : (l || (l = {}))[u] = d : bs(e.emitsOptions, c) || (!(c in n) || d !== n[c]) && (n[c] = d, o = !0);
|
|
1906
|
-
}
|
|
1907
|
-
if (r) {
|
|
1908
|
-
const c = U(s), d = l || k;
|
|
1909
|
-
for (let u = 0; u < r.length; u++) {
|
|
1910
|
-
const h = r[u];
|
|
1911
|
-
s[h] = Ws(
|
|
1912
|
-
i,
|
|
1913
|
-
c,
|
|
1914
|
-
h,
|
|
1915
|
-
d[h],
|
|
1916
|
-
e,
|
|
1917
|
-
!B(d, h)
|
|
1918
|
-
);
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
return o;
|
|
1922
|
-
}
|
|
1923
|
-
function Ws(e, t, s, n, i, r) {
|
|
1924
|
-
const o = e[s];
|
|
1925
|
-
if (o != null) {
|
|
1926
|
-
const l = B(o, "default");
|
|
1927
|
-
if (l && n === void 0) {
|
|
1928
|
-
const c = o.default;
|
|
1929
|
-
if (o.type !== Function && !o.skipFactory && N(c)) {
|
|
1930
|
-
const { propsDefaults: d } = i;
|
|
1931
|
-
if (s in d)
|
|
1932
|
-
n = d[s];
|
|
1933
|
-
else {
|
|
1934
|
-
const u = kt(i);
|
|
1935
|
-
n = d[s] = c.call(
|
|
1936
|
-
null,
|
|
1937
|
-
t
|
|
1938
|
-
), u();
|
|
1939
|
-
}
|
|
1940
|
-
} else
|
|
1941
|
-
n = c;
|
|
1942
|
-
i.ce && i.ce._setProp(s, n);
|
|
1943
|
-
}
|
|
1944
|
-
o[
|
|
1945
|
-
0
|
|
1946
|
-
/* shouldCast */
|
|
1947
|
-
] && (r && !l ? n = !1 : o[
|
|
1948
|
-
1
|
|
1949
|
-
/* shouldCastTrue */
|
|
1950
|
-
] && (n === "" || n === Ge(s)) && (n = !0));
|
|
1951
|
-
}
|
|
1952
|
-
return n;
|
|
1953
|
-
}
|
|
1954
|
-
const sl = /* @__PURE__ */ new WeakMap();
|
|
1955
|
-
function Zi(e, t, s = !1) {
|
|
1956
|
-
const n = s ? sl : t.propsCache, i = n.get(e);
|
|
1957
|
-
if (i)
|
|
1958
|
-
return i;
|
|
1959
|
-
const r = e.props, o = {}, l = [];
|
|
1960
|
-
let c = !1;
|
|
1961
|
-
if (!N(e)) {
|
|
1962
|
-
const u = (h) => {
|
|
1963
|
-
c = !0;
|
|
1964
|
-
const [p, b] = Zi(h, t, !0);
|
|
1965
|
-
se(o, p), b && l.push(...b);
|
|
1966
|
-
};
|
|
1967
|
-
!s && t.mixins.length && t.mixins.forEach(u), e.extends && u(e.extends), e.mixins && e.mixins.forEach(u);
|
|
1968
|
-
}
|
|
1969
|
-
if (!r && !c)
|
|
1970
|
-
return G(e) && n.set(e, ft), ft;
|
|
1971
|
-
if (O(r))
|
|
1972
|
-
for (let u = 0; u < r.length; u++) {
|
|
1973
|
-
const h = Le(r[u]);
|
|
1974
|
-
Un(h) && (o[h] = k);
|
|
1975
|
-
}
|
|
1976
|
-
else if (r)
|
|
1977
|
-
for (const u in r) {
|
|
1978
|
-
const h = Le(u);
|
|
1979
|
-
if (Un(h)) {
|
|
1980
|
-
const p = r[u], b = o[h] = O(p) || N(p) ? { type: p } : se({}, p), x = b.type;
|
|
1981
|
-
let $ = !1, H = !0;
|
|
1982
|
-
if (O(x))
|
|
1983
|
-
for (let I = 0; I < x.length; ++I) {
|
|
1984
|
-
const R = x[I], D = N(R) && R.name;
|
|
1985
|
-
if (D === "Boolean") {
|
|
1986
|
-
$ = !0;
|
|
1987
|
-
break;
|
|
1988
|
-
} else D === "String" && (H = !1);
|
|
1989
|
-
}
|
|
1990
|
-
else
|
|
1991
|
-
$ = N(x) && x.name === "Boolean";
|
|
1992
|
-
b[
|
|
1993
|
-
0
|
|
1994
|
-
/* shouldCast */
|
|
1995
|
-
] = $, b[
|
|
1996
|
-
1
|
|
1997
|
-
/* shouldCastTrue */
|
|
1998
|
-
] = H, ($ || B(b, "default")) && l.push(h);
|
|
1999
|
-
}
|
|
2000
|
-
}
|
|
2001
|
-
const d = [o, l];
|
|
2002
|
-
return G(e) && n.set(e, d), d;
|
|
2003
|
-
}
|
|
2004
|
-
function Un(e) {
|
|
2005
|
-
return e[0] !== "$" && !$t(e);
|
|
2006
|
-
}
|
|
2007
|
-
const dn = (e) => e === "_" || e === "_ctx" || e === "$stable", hn = (e) => O(e) ? e.map($e) : [$e(e)], nl = (e, t, s) => {
|
|
2008
|
-
if (t._n)
|
|
2009
|
-
return t;
|
|
2010
|
-
const n = Mo((...i) => hn(t(...i)), s);
|
|
2011
|
-
return n._c = !1, n;
|
|
2012
|
-
}, er = (e, t, s) => {
|
|
2013
|
-
const n = e._ctx;
|
|
2014
|
-
for (const i in e) {
|
|
2015
|
-
if (dn(i)) continue;
|
|
2016
|
-
const r = e[i];
|
|
2017
|
-
if (N(r))
|
|
2018
|
-
t[i] = nl(i, r, n);
|
|
2019
|
-
else if (r != null) {
|
|
2020
|
-
const o = hn(r);
|
|
2021
|
-
t[i] = () => o;
|
|
2022
|
-
}
|
|
2023
|
-
}
|
|
2024
|
-
}, tr = (e, t) => {
|
|
2025
|
-
const s = hn(t);
|
|
2026
|
-
e.slots.default = () => s;
|
|
2027
|
-
}, sr = (e, t, s) => {
|
|
2028
|
-
for (const n in t)
|
|
2029
|
-
(s || !dn(n)) && (e[n] = t[n]);
|
|
2030
|
-
}, il = (e, t, s) => {
|
|
2031
|
-
const n = e.slots = Yi();
|
|
2032
|
-
if (e.vnode.shapeFlag & 32) {
|
|
2033
|
-
const i = t._;
|
|
2034
|
-
i ? (sr(n, t, s), s && hi(n, "_", i, !0)) : er(t, n);
|
|
2035
|
-
} else t && tr(e, t);
|
|
2036
|
-
}, rl = (e, t, s) => {
|
|
2037
|
-
const { vnode: n, slots: i } = e;
|
|
2038
|
-
let r = !0, o = k;
|
|
2039
|
-
if (n.shapeFlag & 32) {
|
|
2040
|
-
const l = t._;
|
|
2041
|
-
l ? s && l === 1 ? r = !1 : sr(i, t, s) : (r = !t.$stable, er(t, i)), o = t;
|
|
2042
|
-
} else t && (tr(e, t), o = { default: 1 });
|
|
2043
|
-
if (r)
|
|
2044
|
-
for (const l in i)
|
|
2045
|
-
!dn(l) && o[l] == null && delete i[l];
|
|
2046
|
-
}, he = yl;
|
|
2047
|
-
function ol(e) {
|
|
2048
|
-
return ll(e);
|
|
2049
|
-
}
|
|
2050
|
-
function ll(e, t) {
|
|
2051
|
-
const s = ds();
|
|
2052
|
-
s.__VUE__ = !0;
|
|
2053
|
-
const {
|
|
2054
|
-
insert: n,
|
|
2055
|
-
remove: i,
|
|
2056
|
-
patchProp: r,
|
|
2057
|
-
createElement: o,
|
|
2058
|
-
createText: l,
|
|
2059
|
-
createComment: c,
|
|
2060
|
-
setText: d,
|
|
2061
|
-
setElementText: u,
|
|
2062
|
-
parentNode: h,
|
|
2063
|
-
nextSibling: p,
|
|
2064
|
-
setScopeId: b = Pe,
|
|
2065
|
-
insertStaticContent: x
|
|
2066
|
-
} = e, $ = (a, f, m, v = null, g = null, _ = null, S = void 0, E = null, C = !!f.dynamicChildren) => {
|
|
2067
|
-
if (a === f)
|
|
2068
|
-
return;
|
|
2069
|
-
a && !St(a, f) && (v = Kt(a), xe(a, g, _, !0), a = null), f.patchFlag === -2 && (C = !1, f.dynamicChildren = null);
|
|
2070
|
-
const { type: y, ref: P, shapeFlag: w } = f;
|
|
2071
|
-
switch (y) {
|
|
2072
|
-
case vs:
|
|
2073
|
-
H(a, f, m, v);
|
|
2074
|
-
break;
|
|
2075
|
-
case qe:
|
|
2076
|
-
I(a, f, m, v);
|
|
2077
|
-
break;
|
|
2078
|
-
case Ms:
|
|
2079
|
-
a == null && R(f, m, v, S);
|
|
2080
|
-
break;
|
|
2081
|
-
case _e:
|
|
2082
|
-
ot(
|
|
2083
|
-
a,
|
|
2084
|
-
f,
|
|
2085
|
-
m,
|
|
2086
|
-
v,
|
|
2087
|
-
g,
|
|
2088
|
-
_,
|
|
2089
|
-
S,
|
|
2090
|
-
E,
|
|
2091
|
-
C
|
|
2092
|
-
);
|
|
2093
|
-
break;
|
|
2094
|
-
default:
|
|
2095
|
-
w & 1 ? F(
|
|
2096
|
-
a,
|
|
2097
|
-
f,
|
|
2098
|
-
m,
|
|
2099
|
-
v,
|
|
2100
|
-
g,
|
|
2101
|
-
_,
|
|
2102
|
-
S,
|
|
2103
|
-
E,
|
|
2104
|
-
C
|
|
2105
|
-
) : w & 6 ? Bt(
|
|
2106
|
-
a,
|
|
2107
|
-
f,
|
|
2108
|
-
m,
|
|
2109
|
-
v,
|
|
2110
|
-
g,
|
|
2111
|
-
_,
|
|
2112
|
-
S,
|
|
2113
|
-
E,
|
|
2114
|
-
C
|
|
2115
|
-
) : (w & 64 || w & 128) && y.process(
|
|
2116
|
-
a,
|
|
2117
|
-
f,
|
|
2118
|
-
m,
|
|
2119
|
-
v,
|
|
2120
|
-
g,
|
|
2121
|
-
_,
|
|
2122
|
-
S,
|
|
2123
|
-
E,
|
|
2124
|
-
C,
|
|
2125
|
-
xt
|
|
2126
|
-
);
|
|
2127
|
-
}
|
|
2128
|
-
P != null && g ? It(P, a && a.ref, _, f || a, !f) : P == null && a && a.ref != null && It(a.ref, null, _, a, !0);
|
|
2129
|
-
}, H = (a, f, m, v) => {
|
|
2130
|
-
if (a == null)
|
|
2131
|
-
n(
|
|
2132
|
-
f.el = l(f.children),
|
|
2133
|
-
m,
|
|
2134
|
-
v
|
|
2135
|
-
);
|
|
2136
|
-
else {
|
|
2137
|
-
const g = f.el = a.el;
|
|
2138
|
-
f.children !== a.children && d(g, f.children);
|
|
2139
|
-
}
|
|
2140
|
-
}, I = (a, f, m, v) => {
|
|
2141
|
-
a == null ? n(
|
|
2142
|
-
f.el = c(f.children || ""),
|
|
2143
|
-
m,
|
|
2144
|
-
v
|
|
2145
|
-
) : f.el = a.el;
|
|
2146
|
-
}, R = (a, f, m, v) => {
|
|
2147
|
-
[a.el, a.anchor] = x(
|
|
2148
|
-
a.children,
|
|
2149
|
-
f,
|
|
2150
|
-
m,
|
|
2151
|
-
v,
|
|
2152
|
-
a.el,
|
|
2153
|
-
a.anchor
|
|
2154
|
-
);
|
|
2155
|
-
}, D = ({ el: a, anchor: f }, m, v) => {
|
|
2156
|
-
let g;
|
|
2157
|
-
for (; a && a !== f; )
|
|
2158
|
-
g = p(a), n(a, m, v), a = g;
|
|
2159
|
-
n(f, m, v);
|
|
2160
|
-
}, T = ({ el: a, anchor: f }) => {
|
|
2161
|
-
let m;
|
|
2162
|
-
for (; a && a !== f; )
|
|
2163
|
-
m = p(a), i(a), a = m;
|
|
2164
|
-
i(f);
|
|
2165
|
-
}, F = (a, f, m, v, g, _, S, E, C) => {
|
|
2166
|
-
f.type === "svg" ? S = "svg" : f.type === "math" && (S = "mathml"), a == null ? V(
|
|
2167
|
-
f,
|
|
2168
|
-
m,
|
|
2169
|
-
v,
|
|
2170
|
-
g,
|
|
2171
|
-
_,
|
|
2172
|
-
S,
|
|
2173
|
-
E,
|
|
2174
|
-
C
|
|
2175
|
-
) : Ye(
|
|
2176
|
-
a,
|
|
2177
|
-
f,
|
|
2178
|
-
g,
|
|
2179
|
-
_,
|
|
2180
|
-
S,
|
|
2181
|
-
E,
|
|
2182
|
-
C
|
|
2183
|
-
);
|
|
2184
|
-
}, V = (a, f, m, v, g, _, S, E) => {
|
|
2185
|
-
let C, y;
|
|
2186
|
-
const { props: P, shapeFlag: w, transition: A, dirs: M } = a;
|
|
2187
|
-
if (C = a.el = o(
|
|
2188
|
-
a.type,
|
|
2189
|
-
_,
|
|
2190
|
-
P && P.is,
|
|
2191
|
-
P
|
|
2192
|
-
), w & 8 ? u(C, a.children) : w & 16 && ye(
|
|
2193
|
-
a.children,
|
|
2194
|
-
C,
|
|
2195
|
-
null,
|
|
2196
|
-
v,
|
|
2197
|
-
g,
|
|
2198
|
-
Is(a, _),
|
|
2199
|
-
S,
|
|
2200
|
-
E
|
|
2201
|
-
), M && Ze(a, null, v, "created"), Q(C, a, a.scopeId, S, v), P) {
|
|
2202
|
-
for (const q in P)
|
|
2203
|
-
q !== "value" && !$t(q) && r(C, q, null, P[q], _, v);
|
|
2204
|
-
"value" in P && r(C, "value", null, P.value, _), (y = P.onVnodeBeforeMount) && we(y, v, a);
|
|
2205
|
-
}
|
|
2206
|
-
M && Ze(a, null, v, "beforeMount");
|
|
2207
|
-
const L = cl(g, A);
|
|
2208
|
-
L && A.beforeEnter(C), n(C, f, m), ((y = P && P.onVnodeMounted) || L || M) && he(() => {
|
|
2209
|
-
y && we(y, v, a), L && A.enter(C), M && Ze(a, null, v, "mounted");
|
|
2210
|
-
}, g);
|
|
2211
|
-
}, Q = (a, f, m, v, g) => {
|
|
2212
|
-
if (m && b(a, m), v)
|
|
2213
|
-
for (let _ = 0; _ < v.length; _++)
|
|
2214
|
-
b(a, v[_]);
|
|
2215
|
-
if (g) {
|
|
2216
|
-
let _ = g.subTree;
|
|
2217
|
-
if (f === _ || cr(_.type) && (_.ssContent === f || _.ssFallback === f)) {
|
|
2218
|
-
const S = g.vnode;
|
|
2219
|
-
Q(
|
|
2220
|
-
a,
|
|
2221
|
-
S,
|
|
2222
|
-
S.scopeId,
|
|
2223
|
-
S.slotScopeIds,
|
|
2224
|
-
g.parent
|
|
2225
|
-
);
|
|
2226
|
-
}
|
|
2227
|
-
}
|
|
2228
|
-
}, ye = (a, f, m, v, g, _, S, E, C = 0) => {
|
|
2229
|
-
for (let y = C; y < a.length; y++) {
|
|
2230
|
-
const P = a[y] = E ? Be(a[y]) : $e(a[y]);
|
|
2231
|
-
$(
|
|
2232
|
-
null,
|
|
2233
|
-
P,
|
|
2234
|
-
f,
|
|
2235
|
-
m,
|
|
2236
|
-
v,
|
|
2237
|
-
g,
|
|
2238
|
-
_,
|
|
2239
|
-
S,
|
|
2240
|
-
E
|
|
2241
|
-
);
|
|
2242
|
-
}
|
|
2243
|
-
}, Ye = (a, f, m, v, g, _, S) => {
|
|
2244
|
-
const E = f.el = a.el;
|
|
2245
|
-
let { patchFlag: C, dynamicChildren: y, dirs: P } = f;
|
|
2246
|
-
C |= a.patchFlag & 16;
|
|
2247
|
-
const w = a.props || k, A = f.props || k;
|
|
2248
|
-
let M;
|
|
2249
|
-
if (m && et(m, !1), (M = A.onVnodeBeforeUpdate) && we(M, m, f, a), P && Ze(f, a, m, "beforeUpdate"), m && et(m, !0), (w.innerHTML && A.innerHTML == null || w.textContent && A.textContent == null) && u(E, ""), y ? Oe(
|
|
2250
|
-
a.dynamicChildren,
|
|
2251
|
-
y,
|
|
2252
|
-
E,
|
|
2253
|
-
m,
|
|
2254
|
-
v,
|
|
2255
|
-
Is(f, g),
|
|
2256
|
-
_
|
|
2257
|
-
) : S || K(
|
|
2258
|
-
a,
|
|
2259
|
-
f,
|
|
2260
|
-
E,
|
|
2261
|
-
null,
|
|
2262
|
-
m,
|
|
2263
|
-
v,
|
|
2264
|
-
Is(f, g),
|
|
2265
|
-
_,
|
|
2266
|
-
!1
|
|
2267
|
-
), C > 0) {
|
|
2268
|
-
if (C & 16)
|
|
2269
|
-
rt(E, w, A, m, g);
|
|
2270
|
-
else if (C & 2 && w.class !== A.class && r(E, "class", null, A.class, g), C & 4 && r(E, "style", w.style, A.style, g), C & 8) {
|
|
2271
|
-
const L = f.dynamicProps;
|
|
2272
|
-
for (let q = 0; q < L.length; q++) {
|
|
2273
|
-
const W = L[q], ce = w[W], ae = A[W];
|
|
2274
|
-
(ae !== ce || W === "value") && r(E, W, ce, ae, g, m);
|
|
2275
|
-
}
|
|
2276
|
-
}
|
|
2277
|
-
C & 1 && a.children !== f.children && u(E, f.children);
|
|
2278
|
-
} else !S && y == null && rt(E, w, A, m, g);
|
|
2279
|
-
((M = A.onVnodeUpdated) || P) && he(() => {
|
|
2280
|
-
M && we(M, m, f, a), P && Ze(f, a, m, "updated");
|
|
2281
|
-
}, v);
|
|
2282
|
-
}, Oe = (a, f, m, v, g, _, S) => {
|
|
2283
|
-
for (let E = 0; E < f.length; E++) {
|
|
2284
|
-
const C = a[E], y = f[E], P = (
|
|
2285
|
-
// oldVNode may be an errored async setup() component inside Suspense
|
|
2286
|
-
// which will not have a mounted element
|
|
2287
|
-
C.el && // - In the case of a Fragment, we need to provide the actual parent
|
|
2288
|
-
// of the Fragment itself so it can move its children.
|
|
2289
|
-
(C.type === _e || // - In the case of different nodes, there is going to be a replacement
|
|
2290
|
-
// which also requires the correct parent container
|
|
2291
|
-
!St(C, y) || // - In the case of a component, it could contain anything.
|
|
2292
|
-
C.shapeFlag & 198) ? h(C.el) : (
|
|
2293
|
-
// In other cases, the parent container is not actually used so we
|
|
2294
|
-
// just pass the block element here to avoid a DOM parentNode call.
|
|
2295
|
-
m
|
|
2296
|
-
)
|
|
2297
|
-
);
|
|
2298
|
-
$(
|
|
2299
|
-
C,
|
|
2300
|
-
y,
|
|
2301
|
-
P,
|
|
2302
|
-
null,
|
|
2303
|
-
v,
|
|
2304
|
-
g,
|
|
2305
|
-
_,
|
|
2306
|
-
S,
|
|
2307
|
-
!0
|
|
2308
|
-
);
|
|
2309
|
-
}
|
|
2310
|
-
}, rt = (a, f, m, v, g) => {
|
|
2311
|
-
if (f !== m) {
|
|
2312
|
-
if (f !== k)
|
|
2313
|
-
for (const _ in f)
|
|
2314
|
-
!$t(_) && !(_ in m) && r(
|
|
2315
|
-
a,
|
|
2316
|
-
_,
|
|
2317
|
-
f[_],
|
|
2318
|
-
null,
|
|
2319
|
-
g,
|
|
2320
|
-
v
|
|
2321
|
-
);
|
|
2322
|
-
for (const _ in m) {
|
|
2323
|
-
if ($t(_)) continue;
|
|
2324
|
-
const S = m[_], E = f[_];
|
|
2325
|
-
S !== E && _ !== "value" && r(a, _, E, S, g, v);
|
|
2326
|
-
}
|
|
2327
|
-
"value" in m && r(a, "value", f.value, m.value, g);
|
|
2328
|
-
}
|
|
2329
|
-
}, ot = (a, f, m, v, g, _, S, E, C) => {
|
|
2330
|
-
const y = f.el = a ? a.el : l(""), P = f.anchor = a ? a.anchor : l("");
|
|
2331
|
-
let { patchFlag: w, dynamicChildren: A, slotScopeIds: M } = f;
|
|
2332
|
-
M && (E = E ? E.concat(M) : M), a == null ? (n(y, m, v), n(P, m, v), ye(
|
|
2333
|
-
// #10007
|
|
2334
|
-
// such fragment like `<></>` will be compiled into
|
|
2335
|
-
// a fragment which doesn't have a children.
|
|
2336
|
-
// In this case fallback to an empty array
|
|
2337
|
-
f.children || [],
|
|
2338
|
-
m,
|
|
2339
|
-
P,
|
|
2340
|
-
g,
|
|
2341
|
-
_,
|
|
2342
|
-
S,
|
|
2343
|
-
E,
|
|
2344
|
-
C
|
|
2345
|
-
)) : w > 0 && w & 64 && A && // #2715 the previous fragment could've been a BAILed one as a result
|
|
2346
|
-
// of renderSlot() with no valid children
|
|
2347
|
-
a.dynamicChildren ? (Oe(
|
|
2348
|
-
a.dynamicChildren,
|
|
2349
|
-
A,
|
|
2350
|
-
m,
|
|
2351
|
-
g,
|
|
2352
|
-
_,
|
|
2353
|
-
S,
|
|
2354
|
-
E
|
|
2355
|
-
), // #2080 if the stable fragment has a key, it's a <template v-for> that may
|
|
2356
|
-
// get moved around. Make sure all root level vnodes inherit el.
|
|
2357
|
-
// #2134 or if it's a component root, it may also get moved around
|
|
2358
|
-
// as the component is being moved.
|
|
2359
|
-
(f.key != null || g && f === g.subTree) && nr(
|
|
2360
|
-
a,
|
|
2361
|
-
f,
|
|
2362
|
-
!0
|
|
2363
|
-
/* shallow */
|
|
2364
|
-
)) : K(
|
|
2365
|
-
a,
|
|
2366
|
-
f,
|
|
2367
|
-
m,
|
|
2368
|
-
P,
|
|
2369
|
-
g,
|
|
2370
|
-
_,
|
|
2371
|
-
S,
|
|
2372
|
-
E,
|
|
2373
|
-
C
|
|
2374
|
-
);
|
|
2375
|
-
}, Bt = (a, f, m, v, g, _, S, E, C) => {
|
|
2376
|
-
f.slotScopeIds = E, a == null ? f.shapeFlag & 512 ? g.ctx.activate(
|
|
2377
|
-
f,
|
|
2378
|
-
m,
|
|
2379
|
-
v,
|
|
2380
|
-
S,
|
|
2381
|
-
C
|
|
2382
|
-
) : xs(
|
|
2383
|
-
f,
|
|
2384
|
-
m,
|
|
2385
|
-
v,
|
|
2386
|
-
g,
|
|
2387
|
-
_,
|
|
2388
|
-
S,
|
|
2389
|
-
C
|
|
2390
|
-
) : Cn(a, f, C);
|
|
2391
|
-
}, xs = (a, f, m, v, g, _, S) => {
|
|
2392
|
-
const E = a.component = Al(
|
|
2393
|
-
a,
|
|
2394
|
-
v,
|
|
2395
|
-
g
|
|
2396
|
-
);
|
|
2397
|
-
if (Ui(a) && (E.ctx.renderer = xt), Pl(E, !1, S), E.asyncDep) {
|
|
2398
|
-
if (g && g.registerDep(E, ie, S), !a.el) {
|
|
2399
|
-
const C = E.subTree = De(qe);
|
|
2400
|
-
I(null, C, f, m), a.placeholder = C.el;
|
|
2401
|
-
}
|
|
2402
|
-
} else
|
|
2403
|
-
ie(
|
|
2404
|
-
E,
|
|
2405
|
-
a,
|
|
2406
|
-
f,
|
|
2407
|
-
m,
|
|
2408
|
-
g,
|
|
2409
|
-
_,
|
|
2410
|
-
S
|
|
2411
|
-
);
|
|
2412
|
-
}, Cn = (a, f, m) => {
|
|
2413
|
-
const v = f.component = a.component;
|
|
2414
|
-
if (bl(a, f, m))
|
|
2415
|
-
if (v.asyncDep && !v.asyncResolved) {
|
|
2416
|
-
Y(v, f, m);
|
|
2417
|
-
return;
|
|
2418
|
-
} else
|
|
2419
|
-
v.next = f, v.update();
|
|
2420
|
-
else
|
|
2421
|
-
f.el = a.el, v.vnode = f;
|
|
2422
|
-
}, ie = (a, f, m, v, g, _, S) => {
|
|
2423
|
-
const E = () => {
|
|
2424
|
-
if (a.isMounted) {
|
|
2425
|
-
let { next: w, bu: A, u: M, parent: L, vnode: q } = a;
|
|
2426
|
-
{
|
|
2427
|
-
const Ee = ir(a);
|
|
2428
|
-
if (Ee) {
|
|
2429
|
-
w && (w.el = q.el, Y(a, w, S)), Ee.asyncDep.then(() => {
|
|
2430
|
-
a.isUnmounted || E();
|
|
2431
|
-
});
|
|
2432
|
-
return;
|
|
2433
|
-
}
|
|
2434
|
-
}
|
|
2435
|
-
let W = w, ce;
|
|
2436
|
-
et(a, !1), w ? (w.el = q.el, Y(a, w, S)) : w = q, A && Ss(A), (ce = w.props && w.props.onVnodeBeforeUpdate) && we(ce, L, w, q), et(a, !0);
|
|
2437
|
-
const ae = Bn(a), Ce = a.subTree;
|
|
2438
|
-
a.subTree = ae, $(
|
|
2439
|
-
Ce,
|
|
2440
|
-
ae,
|
|
2441
|
-
// parent may have changed if it's in a teleport
|
|
2442
|
-
h(Ce.el),
|
|
2443
|
-
// anchor may have changed if it's in a fragment
|
|
2444
|
-
Kt(Ce),
|
|
2445
|
-
a,
|
|
2446
|
-
g,
|
|
2447
|
-
_
|
|
2448
|
-
), w.el = ae.el, W === null && vl(a, ae.el), M && he(M, g), (ce = w.props && w.props.onVnodeUpdated) && he(
|
|
2449
|
-
() => we(ce, L, w, q),
|
|
2450
|
-
g
|
|
2451
|
-
);
|
|
2452
|
-
} else {
|
|
2453
|
-
let w;
|
|
2454
|
-
const { el: A, props: M } = f, { bm: L, m: q, parent: W, root: ce, type: ae } = a, Ce = Mt(f);
|
|
2455
|
-
et(a, !1), L && Ss(L), !Ce && (w = M && M.onVnodeBeforeMount) && we(w, W, f), et(a, !0);
|
|
2456
|
-
{
|
|
2457
|
-
ce.ce && // @ts-expect-error _def is private
|
|
2458
|
-
ce.ce._def.shadowRoot !== !1 && ce.ce._injectChildStyle(ae);
|
|
2459
|
-
const Ee = a.subTree = Bn(a);
|
|
2460
|
-
$(
|
|
2461
|
-
null,
|
|
2462
|
-
Ee,
|
|
2463
|
-
m,
|
|
2464
|
-
v,
|
|
2465
|
-
a,
|
|
2466
|
-
g,
|
|
2467
|
-
_
|
|
2468
|
-
), f.el = Ee.el;
|
|
2469
|
-
}
|
|
2470
|
-
if (q && he(q, g), !Ce && (w = M && M.onVnodeMounted)) {
|
|
2471
|
-
const Ee = f;
|
|
2472
|
-
he(
|
|
2473
|
-
() => we(w, W, Ee),
|
|
2474
|
-
g
|
|
2475
|
-
);
|
|
2476
|
-
}
|
|
2477
|
-
(f.shapeFlag & 256 || W && Mt(W.vnode) && W.vnode.shapeFlag & 256) && a.a && he(a.a, g), a.isMounted = !0, f = m = v = null;
|
|
2478
|
-
}
|
|
2479
|
-
};
|
|
2480
|
-
a.scope.on();
|
|
2481
|
-
const C = a.effect = new _i(E);
|
|
2482
|
-
a.scope.off();
|
|
2483
|
-
const y = a.update = C.run.bind(C), P = a.job = C.runIfDirty.bind(C);
|
|
2484
|
-
P.i = a, P.id = a.uid, C.scheduler = () => an(P), et(a, !0), y();
|
|
2485
|
-
}, Y = (a, f, m) => {
|
|
2486
|
-
f.component = a;
|
|
2487
|
-
const v = a.vnode.props;
|
|
2488
|
-
a.vnode = f, a.next = null, tl(a, f.props, v, m), rl(a, f.children, m), je(), Nn(a), He();
|
|
2489
|
-
}, K = (a, f, m, v, g, _, S, E, C = !1) => {
|
|
2490
|
-
const y = a && a.children, P = a ? a.shapeFlag : 0, w = f.children, { patchFlag: A, shapeFlag: M } = f;
|
|
2491
|
-
if (A > 0) {
|
|
2492
|
-
if (A & 128) {
|
|
2493
|
-
Wt(
|
|
2494
|
-
y,
|
|
2495
|
-
w,
|
|
2496
|
-
m,
|
|
2497
|
-
v,
|
|
2498
|
-
g,
|
|
2499
|
-
_,
|
|
2500
|
-
S,
|
|
2501
|
-
E,
|
|
2502
|
-
C
|
|
2503
|
-
);
|
|
2504
|
-
return;
|
|
2505
|
-
} else if (A & 256) {
|
|
2506
|
-
Xe(
|
|
2507
|
-
y,
|
|
2508
|
-
w,
|
|
2509
|
-
m,
|
|
2510
|
-
v,
|
|
2511
|
-
g,
|
|
2512
|
-
_,
|
|
2513
|
-
S,
|
|
2514
|
-
E,
|
|
2515
|
-
C
|
|
2516
|
-
);
|
|
2517
|
-
return;
|
|
2518
|
-
}
|
|
2519
|
-
}
|
|
2520
|
-
M & 8 ? (P & 16 && yt(y, g, _), w !== y && u(m, w)) : P & 16 ? M & 16 ? Wt(
|
|
2521
|
-
y,
|
|
2522
|
-
w,
|
|
2523
|
-
m,
|
|
2524
|
-
v,
|
|
2525
|
-
g,
|
|
2526
|
-
_,
|
|
2527
|
-
S,
|
|
2528
|
-
E,
|
|
2529
|
-
C
|
|
2530
|
-
) : yt(y, g, _, !0) : (P & 8 && u(m, ""), M & 16 && ye(
|
|
2531
|
-
w,
|
|
2532
|
-
m,
|
|
2533
|
-
v,
|
|
2534
|
-
g,
|
|
2535
|
-
_,
|
|
2536
|
-
S,
|
|
2537
|
-
E,
|
|
2538
|
-
C
|
|
2539
|
-
));
|
|
2540
|
-
}, Xe = (a, f, m, v, g, _, S, E, C) => {
|
|
2541
|
-
a = a || ft, f = f || ft;
|
|
2542
|
-
const y = a.length, P = f.length, w = Math.min(y, P);
|
|
2543
|
-
let A;
|
|
2544
|
-
for (A = 0; A < w; A++) {
|
|
2545
|
-
const M = f[A] = C ? Be(f[A]) : $e(f[A]);
|
|
2546
|
-
$(
|
|
2547
|
-
a[A],
|
|
2548
|
-
M,
|
|
2549
|
-
m,
|
|
2550
|
-
null,
|
|
2551
|
-
g,
|
|
2552
|
-
_,
|
|
2553
|
-
S,
|
|
2554
|
-
E,
|
|
2555
|
-
C
|
|
2556
|
-
);
|
|
2557
|
-
}
|
|
2558
|
-
y > P ? yt(
|
|
2559
|
-
a,
|
|
2560
|
-
g,
|
|
2561
|
-
_,
|
|
2562
|
-
!0,
|
|
2563
|
-
!1,
|
|
2564
|
-
w
|
|
2565
|
-
) : ye(
|
|
2566
|
-
f,
|
|
2567
|
-
m,
|
|
2568
|
-
v,
|
|
2569
|
-
g,
|
|
2570
|
-
_,
|
|
2571
|
-
S,
|
|
2572
|
-
E,
|
|
2573
|
-
C,
|
|
2574
|
-
w
|
|
2575
|
-
);
|
|
2576
|
-
}, Wt = (a, f, m, v, g, _, S, E, C) => {
|
|
2577
|
-
let y = 0;
|
|
2578
|
-
const P = f.length;
|
|
2579
|
-
let w = a.length - 1, A = P - 1;
|
|
2580
|
-
for (; y <= w && y <= A; ) {
|
|
2581
|
-
const M = a[y], L = f[y] = C ? Be(f[y]) : $e(f[y]);
|
|
2582
|
-
if (St(M, L))
|
|
2583
|
-
$(
|
|
2584
|
-
M,
|
|
2585
|
-
L,
|
|
2586
|
-
m,
|
|
2587
|
-
null,
|
|
2588
|
-
g,
|
|
2589
|
-
_,
|
|
2590
|
-
S,
|
|
2591
|
-
E,
|
|
2592
|
-
C
|
|
2593
|
-
);
|
|
2594
|
-
else
|
|
2595
|
-
break;
|
|
2596
|
-
y++;
|
|
2597
|
-
}
|
|
2598
|
-
for (; y <= w && y <= A; ) {
|
|
2599
|
-
const M = a[w], L = f[A] = C ? Be(f[A]) : $e(f[A]);
|
|
2600
|
-
if (St(M, L))
|
|
2601
|
-
$(
|
|
2602
|
-
M,
|
|
2603
|
-
L,
|
|
2604
|
-
m,
|
|
2605
|
-
null,
|
|
2606
|
-
g,
|
|
2607
|
-
_,
|
|
2608
|
-
S,
|
|
2609
|
-
E,
|
|
2610
|
-
C
|
|
2611
|
-
);
|
|
2612
|
-
else
|
|
2613
|
-
break;
|
|
2614
|
-
w--, A--;
|
|
2615
|
-
}
|
|
2616
|
-
if (y > w) {
|
|
2617
|
-
if (y <= A) {
|
|
2618
|
-
const M = A + 1, L = M < P ? f[M].el : v;
|
|
2619
|
-
for (; y <= A; )
|
|
2620
|
-
$(
|
|
2621
|
-
null,
|
|
2622
|
-
f[y] = C ? Be(f[y]) : $e(f[y]),
|
|
2623
|
-
m,
|
|
2624
|
-
L,
|
|
2625
|
-
g,
|
|
2626
|
-
_,
|
|
2627
|
-
S,
|
|
2628
|
-
E,
|
|
2629
|
-
C
|
|
2630
|
-
), y++;
|
|
2631
|
-
}
|
|
2632
|
-
} else if (y > A)
|
|
2633
|
-
for (; y <= w; )
|
|
2634
|
-
xe(a[y], g, _, !0), y++;
|
|
2635
|
-
else {
|
|
2636
|
-
const M = y, L = y, q = /* @__PURE__ */ new Map();
|
|
2637
|
-
for (y = L; y <= A; y++) {
|
|
2638
|
-
const de = f[y] = C ? Be(f[y]) : $e(f[y]);
|
|
2639
|
-
de.key != null && q.set(de.key, y);
|
|
2640
|
-
}
|
|
2641
|
-
let W, ce = 0;
|
|
2642
|
-
const ae = A - L + 1;
|
|
2643
|
-
let Ce = !1, Ee = 0;
|
|
2644
|
-
const Ct = new Array(ae);
|
|
2645
|
-
for (y = 0; y < ae; y++) Ct[y] = 0;
|
|
2646
|
-
for (y = M; y <= w; y++) {
|
|
2647
|
-
const de = a[y];
|
|
2648
|
-
if (ce >= ae) {
|
|
2649
|
-
xe(de, g, _, !0);
|
|
2650
|
-
continue;
|
|
2651
|
-
}
|
|
2652
|
-
let Se;
|
|
2653
|
-
if (de.key != null)
|
|
2654
|
-
Se = q.get(de.key);
|
|
2655
|
-
else
|
|
2656
|
-
for (W = L; W <= A; W++)
|
|
2657
|
-
if (Ct[W - L] === 0 && St(de, f[W])) {
|
|
2658
|
-
Se = W;
|
|
2659
|
-
break;
|
|
2660
|
-
}
|
|
2661
|
-
Se === void 0 ? xe(de, g, _, !0) : (Ct[Se - L] = y + 1, Se >= Ee ? Ee = Se : Ce = !0, $(
|
|
2662
|
-
de,
|
|
2663
|
-
f[Se],
|
|
2664
|
-
m,
|
|
2665
|
-
null,
|
|
2666
|
-
g,
|
|
2667
|
-
_,
|
|
2668
|
-
S,
|
|
2669
|
-
E,
|
|
2670
|
-
C
|
|
2671
|
-
), ce++);
|
|
2672
|
-
}
|
|
2673
|
-
const wn = Ce ? al(Ct) : ft;
|
|
2674
|
-
for (W = wn.length - 1, y = ae - 1; y >= 0; y--) {
|
|
2675
|
-
const de = L + y, Se = f[de], Tn = f[de + 1], $n = de + 1 < P ? (
|
|
2676
|
-
// #13559, fallback to el placeholder for unresolved async component
|
|
2677
|
-
Tn.el || Tn.placeholder
|
|
2678
|
-
) : v;
|
|
2679
|
-
Ct[y] === 0 ? $(
|
|
2680
|
-
null,
|
|
2681
|
-
Se,
|
|
2682
|
-
m,
|
|
2683
|
-
$n,
|
|
2684
|
-
g,
|
|
2685
|
-
_,
|
|
2686
|
-
S,
|
|
2687
|
-
E,
|
|
2688
|
-
C
|
|
2689
|
-
) : Ce && (W < 0 || y !== wn[W] ? Qe(Se, m, $n, 2) : W--);
|
|
2690
|
-
}
|
|
2691
|
-
}
|
|
2692
|
-
}, Qe = (a, f, m, v, g = null) => {
|
|
2693
|
-
const { el: _, type: S, transition: E, children: C, shapeFlag: y } = a;
|
|
2694
|
-
if (y & 6) {
|
|
2695
|
-
Qe(a.component.subTree, f, m, v);
|
|
2696
|
-
return;
|
|
2697
|
-
}
|
|
2698
|
-
if (y & 128) {
|
|
2699
|
-
a.suspense.move(f, m, v);
|
|
2700
|
-
return;
|
|
2701
|
-
}
|
|
2702
|
-
if (y & 64) {
|
|
2703
|
-
S.move(a, f, m, xt);
|
|
2704
|
-
return;
|
|
2705
|
-
}
|
|
2706
|
-
if (S === _e) {
|
|
2707
|
-
n(_, f, m);
|
|
2708
|
-
for (let w = 0; w < C.length; w++)
|
|
2709
|
-
Qe(C[w], f, m, v);
|
|
2710
|
-
n(a.anchor, f, m);
|
|
2711
|
-
return;
|
|
2712
|
-
}
|
|
2713
|
-
if (S === Ms) {
|
|
2714
|
-
D(a, f, m);
|
|
2715
|
-
return;
|
|
2716
|
-
}
|
|
2717
|
-
if (v !== 2 && y & 1 && E)
|
|
2718
|
-
if (v === 0)
|
|
2719
|
-
E.beforeEnter(_), n(_, f, m), he(() => E.enter(_), g);
|
|
2720
|
-
else {
|
|
2721
|
-
const { leave: w, delayLeave: A, afterLeave: M } = E, L = () => {
|
|
2722
|
-
a.ctx.isUnmounted ? i(_) : n(_, f, m);
|
|
2723
|
-
}, q = () => {
|
|
2724
|
-
_._isLeaving && _[Fo](
|
|
2725
|
-
!0
|
|
2726
|
-
/* cancelled */
|
|
2727
|
-
), w(_, () => {
|
|
2728
|
-
L(), M && M();
|
|
2729
|
-
});
|
|
2730
|
-
};
|
|
2731
|
-
A ? A(_, L, q) : q();
|
|
2732
|
-
}
|
|
2733
|
-
else
|
|
2734
|
-
n(_, f, m);
|
|
2735
|
-
}, xe = (a, f, m, v = !1, g = !1) => {
|
|
2736
|
-
const {
|
|
2737
|
-
type: _,
|
|
2738
|
-
props: S,
|
|
2739
|
-
ref: E,
|
|
2740
|
-
children: C,
|
|
2741
|
-
dynamicChildren: y,
|
|
2742
|
-
shapeFlag: P,
|
|
2743
|
-
patchFlag: w,
|
|
2744
|
-
dirs: A,
|
|
2745
|
-
cacheIndex: M
|
|
2746
|
-
} = a;
|
|
2747
|
-
if (w === -2 && (g = !1), E != null && (je(), It(E, null, m, a, !0), He()), M != null && (f.renderCache[M] = void 0), P & 256) {
|
|
2748
|
-
f.ctx.deactivate(a);
|
|
2749
|
-
return;
|
|
2750
|
-
}
|
|
2751
|
-
const L = P & 1 && A, q = !Mt(a);
|
|
2752
|
-
let W;
|
|
2753
|
-
if (q && (W = S && S.onVnodeBeforeUnmount) && we(W, f, a), P & 6)
|
|
2754
|
-
Rr(a.component, m, v);
|
|
2755
|
-
else {
|
|
2756
|
-
if (P & 128) {
|
|
2757
|
-
a.suspense.unmount(m, v);
|
|
2758
|
-
return;
|
|
2759
|
-
}
|
|
2760
|
-
L && Ze(a, null, f, "beforeUnmount"), P & 64 ? a.type.remove(
|
|
2761
|
-
a,
|
|
2762
|
-
f,
|
|
2763
|
-
m,
|
|
2764
|
-
xt,
|
|
2765
|
-
v
|
|
2766
|
-
) : y && // #5154
|
|
2767
|
-
// when v-once is used inside a block, setBlockTracking(-1) marks the
|
|
2768
|
-
// parent block with hasOnce: true
|
|
2769
|
-
// so that it doesn't take the fast path during unmount - otherwise
|
|
2770
|
-
// components nested in v-once are never unmounted.
|
|
2771
|
-
!y.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
|
|
2772
|
-
(_ !== _e || w > 0 && w & 64) ? yt(
|
|
2773
|
-
y,
|
|
2774
|
-
f,
|
|
2775
|
-
m,
|
|
2776
|
-
!1,
|
|
2777
|
-
!0
|
|
2778
|
-
) : (_ === _e && w & 384 || !g && P & 16) && yt(C, f, m), v && En(a);
|
|
2779
|
-
}
|
|
2780
|
-
(q && (W = S && S.onVnodeUnmounted) || L) && he(() => {
|
|
2781
|
-
W && we(W, f, a), L && Ze(a, null, f, "unmounted");
|
|
2782
|
-
}, m);
|
|
2783
|
-
}, En = (a) => {
|
|
2784
|
-
const { type: f, el: m, anchor: v, transition: g } = a;
|
|
2785
|
-
if (f === _e) {
|
|
2786
|
-
Fr(m, v);
|
|
2787
|
-
return;
|
|
2788
|
-
}
|
|
2789
|
-
if (f === Ms) {
|
|
2790
|
-
T(a);
|
|
2791
|
-
return;
|
|
2792
|
-
}
|
|
2793
|
-
const _ = () => {
|
|
2794
|
-
i(m), g && !g.persisted && g.afterLeave && g.afterLeave();
|
|
2795
|
-
};
|
|
2796
|
-
if (a.shapeFlag & 1 && g && !g.persisted) {
|
|
2797
|
-
const { leave: S, delayLeave: E } = g, C = () => S(m, _);
|
|
2798
|
-
E ? E(a.el, _, C) : C();
|
|
2799
|
-
} else
|
|
2800
|
-
_();
|
|
2801
|
-
}, Fr = (a, f) => {
|
|
2802
|
-
let m;
|
|
2803
|
-
for (; a !== f; )
|
|
2804
|
-
m = p(a), i(a), a = m;
|
|
2805
|
-
i(f);
|
|
2806
|
-
}, Rr = (a, f, m) => {
|
|
2807
|
-
const { bum: v, scope: g, job: _, subTree: S, um: E, m: C, a: y } = a;
|
|
2808
|
-
kn(C), kn(y), v && Ss(v), g.stop(), _ && (_.flags |= 8, xe(S, a, f, m)), E && he(E, f), he(() => {
|
|
2809
|
-
a.isUnmounted = !0;
|
|
2810
|
-
}, f);
|
|
2811
|
-
}, yt = (a, f, m, v = !1, g = !1, _ = 0) => {
|
|
2812
|
-
for (let S = _; S < a.length; S++)
|
|
2813
|
-
xe(a[S], f, m, v, g);
|
|
2814
|
-
}, Kt = (a) => {
|
|
2815
|
-
if (a.shapeFlag & 6)
|
|
2816
|
-
return Kt(a.component.subTree);
|
|
2817
|
-
if (a.shapeFlag & 128)
|
|
2818
|
-
return a.suspense.next();
|
|
2819
|
-
const f = p(a.anchor || a.el), m = f && f[Oo];
|
|
2820
|
-
return m ? p(m) : f;
|
|
2821
|
-
};
|
|
2822
|
-
let Cs = !1;
|
|
2823
|
-
const Sn = (a, f, m) => {
|
|
2824
|
-
a == null ? f._vnode && xe(f._vnode, null, null, !0) : $(
|
|
2825
|
-
f._vnode || null,
|
|
2826
|
-
a,
|
|
2827
|
-
f,
|
|
2828
|
-
null,
|
|
2829
|
-
null,
|
|
2830
|
-
null,
|
|
2831
|
-
m
|
|
2832
|
-
), f._vnode = a, Cs || (Cs = !0, Nn(), Ri(), Cs = !1);
|
|
2833
|
-
}, xt = {
|
|
2834
|
-
p: $,
|
|
2835
|
-
um: xe,
|
|
2836
|
-
m: Qe,
|
|
2837
|
-
r: En,
|
|
2838
|
-
mt: xs,
|
|
2839
|
-
mc: ye,
|
|
2840
|
-
pc: K,
|
|
2841
|
-
pbc: Oe,
|
|
2842
|
-
n: Kt,
|
|
2843
|
-
o: e
|
|
2844
|
-
};
|
|
2845
|
-
return {
|
|
2846
|
-
render: Sn,
|
|
2847
|
-
hydrate: void 0,
|
|
2848
|
-
createApp: Zo(Sn)
|
|
2849
|
-
};
|
|
2850
|
-
}
|
|
2851
|
-
function Is({ type: e, props: t }, s) {
|
|
2852
|
-
return s === "svg" && e === "foreignObject" || s === "mathml" && e === "annotation-xml" && t && t.encoding && t.encoding.includes("html") ? void 0 : s;
|
|
2853
|
-
}
|
|
2854
|
-
function et({ effect: e, job: t }, s) {
|
|
2855
|
-
s ? (e.flags |= 32, t.flags |= 4) : (e.flags &= -33, t.flags &= -5);
|
|
2856
|
-
}
|
|
2857
|
-
function cl(e, t) {
|
|
2858
|
-
return (!e || e && !e.pendingBranch) && t && !t.persisted;
|
|
2859
|
-
}
|
|
2860
|
-
function nr(e, t, s = !1) {
|
|
2861
|
-
const n = e.children, i = t.children;
|
|
2862
|
-
if (O(n) && O(i))
|
|
2863
|
-
for (let r = 0; r < n.length; r++) {
|
|
2864
|
-
const o = n[r];
|
|
2865
|
-
let l = i[r];
|
|
2866
|
-
l.shapeFlag & 1 && !l.dynamicChildren && ((l.patchFlag <= 0 || l.patchFlag === 32) && (l = i[r] = Be(i[r]), l.el = o.el), !s && l.patchFlag !== -2 && nr(o, l)), l.type === vs && // avoid cached text nodes retaining detached dom nodes
|
|
2867
|
-
l.patchFlag !== -1 && (l.el = o.el), l.type === qe && !l.el && (l.el = o.el);
|
|
2868
|
-
}
|
|
2869
|
-
}
|
|
2870
|
-
function al(e) {
|
|
2871
|
-
const t = e.slice(), s = [0];
|
|
2872
|
-
let n, i, r, o, l;
|
|
2873
|
-
const c = e.length;
|
|
2874
|
-
for (n = 0; n < c; n++) {
|
|
2875
|
-
const d = e[n];
|
|
2876
|
-
if (d !== 0) {
|
|
2877
|
-
if (i = s[s.length - 1], e[i] < d) {
|
|
2878
|
-
t[n] = i, s.push(n);
|
|
2879
|
-
continue;
|
|
2880
|
-
}
|
|
2881
|
-
for (r = 0, o = s.length - 1; r < o; )
|
|
2882
|
-
l = r + o >> 1, e[s[l]] < d ? r = l + 1 : o = l;
|
|
2883
|
-
d < e[s[r]] && (r > 0 && (t[n] = s[r - 1]), s[r] = n);
|
|
2884
|
-
}
|
|
2885
|
-
}
|
|
2886
|
-
for (r = s.length, o = s[r - 1]; r-- > 0; )
|
|
2887
|
-
s[r] = o, o = t[o];
|
|
2888
|
-
return s;
|
|
2889
|
-
}
|
|
2890
|
-
function ir(e) {
|
|
2891
|
-
const t = e.subTree.component;
|
|
2892
|
-
if (t)
|
|
2893
|
-
return t.asyncDep && !t.asyncResolved ? t : ir(t);
|
|
2894
|
-
}
|
|
2895
|
-
function kn(e) {
|
|
2896
|
-
if (e)
|
|
2897
|
-
for (let t = 0; t < e.length; t++)
|
|
2898
|
-
e[t].flags |= 8;
|
|
2899
|
-
}
|
|
2900
|
-
const ul = Symbol.for("v-scx"), fl = () => Nt(ul);
|
|
2901
|
-
function dl(e, t) {
|
|
2902
|
-
return pn(
|
|
2903
|
-
e,
|
|
2904
|
-
null,
|
|
2905
|
-
{ flush: "sync" }
|
|
2906
|
-
);
|
|
2907
|
-
}
|
|
2908
|
-
function gt(e, t, s) {
|
|
2909
|
-
return pn(e, t, s);
|
|
2910
|
-
}
|
|
2911
|
-
function pn(e, t, s = k) {
|
|
2912
|
-
const { immediate: n, deep: i, flush: r, once: o } = s, l = se({}, s), c = t && n || !t && r !== "post";
|
|
2913
|
-
let d;
|
|
2914
|
-
if (Ht) {
|
|
2915
|
-
if (r === "sync") {
|
|
2916
|
-
const b = fl();
|
|
2917
|
-
d = b.__watcherHandles || (b.__watcherHandles = []);
|
|
2918
|
-
} else if (!c) {
|
|
2919
|
-
const b = () => {
|
|
2920
|
-
};
|
|
2921
|
-
return b.stop = Pe, b.resume = Pe, b.pause = Pe, b;
|
|
2922
|
-
}
|
|
2923
|
-
}
|
|
2924
|
-
const u = le;
|
|
2925
|
-
l.call = (b, x, $) => Ie(b, u, x, $);
|
|
2926
|
-
let h = !1;
|
|
2927
|
-
r === "post" ? l.scheduler = (b) => {
|
|
2928
|
-
he(b, u && u.suspense);
|
|
2929
|
-
} : r !== "sync" && (h = !0, l.scheduler = (b, x) => {
|
|
2930
|
-
x ? b() : an(b);
|
|
2931
|
-
}), l.augmentJob = (b) => {
|
|
2932
|
-
t && (b.flags |= 4), h && (b.flags |= 2, u && (b.id = u.uid, b.i = u));
|
|
2933
|
-
};
|
|
2934
|
-
const p = $o(e, t, l);
|
|
2935
|
-
return Ht && (d ? d.push(p) : c && p()), p;
|
|
2936
|
-
}
|
|
2937
|
-
function hl(e, t, s) {
|
|
2938
|
-
const n = this.proxy, i = Z(e) ? e.includes(".") ? rr(n, e) : () => n[e] : e.bind(n, n);
|
|
2939
|
-
let r;
|
|
2940
|
-
N(t) ? r = t : (r = t.handler, s = t);
|
|
2941
|
-
const o = kt(this), l = pn(i, r.bind(n), s);
|
|
2942
|
-
return o(), l;
|
|
2943
|
-
}
|
|
2944
|
-
function rr(e, t) {
|
|
2945
|
-
const s = t.split(".");
|
|
2946
|
-
return () => {
|
|
2947
|
-
let n = e;
|
|
2948
|
-
for (let i = 0; i < s.length && n; i++)
|
|
2949
|
-
n = n[s[i]];
|
|
2950
|
-
return n;
|
|
2951
|
-
};
|
|
2952
|
-
}
|
|
2953
|
-
function Vn(e, t, s = k) {
|
|
2954
|
-
const n = gn(), i = Le(t), r = Ge(t), o = or(e, i), l = Eo((c, d) => {
|
|
2955
|
-
let u, h = k, p;
|
|
2956
|
-
return dl(() => {
|
|
2957
|
-
const b = e[i];
|
|
2958
|
-
fe(u, b) && (u = b, d());
|
|
2959
|
-
}), {
|
|
2960
|
-
get() {
|
|
2961
|
-
return c(), s.get ? s.get(u) : u;
|
|
2962
|
-
},
|
|
2963
|
-
set(b) {
|
|
2964
|
-
const x = s.set ? s.set(b) : b;
|
|
2965
|
-
if (!fe(x, u) && !(h !== k && fe(b, h)))
|
|
2966
|
-
return;
|
|
2967
|
-
const $ = n.vnode.props;
|
|
2968
|
-
$ && // check if parent has passed v-model
|
|
2969
|
-
(t in $ || i in $ || r in $) && (`onUpdate:${t}` in $ || `onUpdate:${i}` in $ || `onUpdate:${r}` in $) || (u = b, d()), n.emit(`update:${t}`, x), fe(b, x) && fe(b, h) && !fe(x, p) && d(), h = b, p = x;
|
|
2970
|
-
}
|
|
2971
|
-
};
|
|
2972
|
-
});
|
|
2973
|
-
return l[Symbol.iterator] = () => {
|
|
2974
|
-
let c = 0;
|
|
2975
|
-
return {
|
|
2976
|
-
next() {
|
|
2977
|
-
return c < 2 ? { value: c++ ? o || k : l, done: !1 } : { done: !0 };
|
|
2978
|
-
}
|
|
2979
|
-
};
|
|
2980
|
-
}, l;
|
|
2981
|
-
}
|
|
2982
|
-
const or = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${Le(t)}Modifiers`] || e[`${Ge(t)}Modifiers`];
|
|
2983
|
-
function pl(e, t, ...s) {
|
|
2984
|
-
if (e.isUnmounted) return;
|
|
2985
|
-
const n = e.vnode.props || k;
|
|
2986
|
-
let i = s;
|
|
2987
|
-
const r = t.startsWith("update:"), o = r && or(n, t.slice(7));
|
|
2988
|
-
o && (o.trim && (i = s.map((u) => Z(u) ? u.trim() : u)), o.number && (i = s.map(Wr)));
|
|
2989
|
-
let l, c = n[l = Es(t)] || // also try camelCase event handler (#2249)
|
|
2990
|
-
n[l = Es(Le(t))];
|
|
2991
|
-
!c && r && (c = n[l = Es(Ge(t))]), c && Ie(
|
|
2992
|
-
c,
|
|
2993
|
-
e,
|
|
2994
|
-
6,
|
|
2995
|
-
i
|
|
2996
|
-
);
|
|
2997
|
-
const d = n[l + "Once"];
|
|
2998
|
-
if (d) {
|
|
2999
|
-
if (!e.emitted)
|
|
3000
|
-
e.emitted = {};
|
|
3001
|
-
else if (e.emitted[l])
|
|
3002
|
-
return;
|
|
3003
|
-
e.emitted[l] = !0, Ie(
|
|
3004
|
-
d,
|
|
3005
|
-
e,
|
|
3006
|
-
6,
|
|
3007
|
-
i
|
|
3008
|
-
);
|
|
3009
|
-
}
|
|
3010
|
-
}
|
|
3011
|
-
const ml = /* @__PURE__ */ new WeakMap();
|
|
3012
|
-
function lr(e, t, s = !1) {
|
|
3013
|
-
const n = s ? ml : t.emitsCache, i = n.get(e);
|
|
3014
|
-
if (i !== void 0)
|
|
3015
|
-
return i;
|
|
3016
|
-
const r = e.emits;
|
|
3017
|
-
let o = {}, l = !1;
|
|
3018
|
-
if (!N(e)) {
|
|
3019
|
-
const c = (d) => {
|
|
3020
|
-
const u = lr(d, t, !0);
|
|
3021
|
-
u && (l = !0, se(o, u));
|
|
3022
|
-
};
|
|
3023
|
-
!s && t.mixins.length && t.mixins.forEach(c), e.extends && c(e.extends), e.mixins && e.mixins.forEach(c);
|
|
3024
|
-
}
|
|
3025
|
-
return !r && !l ? (G(e) && n.set(e, null), null) : (O(r) ? r.forEach((c) => o[c] = null) : se(o, r), G(e) && n.set(e, o), o);
|
|
3026
|
-
}
|
|
3027
|
-
function bs(e, t) {
|
|
3028
|
-
return !e || !as(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), B(e, t[0].toLowerCase() + t.slice(1)) || B(e, Ge(t)) || B(e, t));
|
|
3029
|
-
}
|
|
3030
|
-
function Bn(e) {
|
|
3031
|
-
const {
|
|
3032
|
-
type: t,
|
|
3033
|
-
vnode: s,
|
|
3034
|
-
proxy: n,
|
|
3035
|
-
withProxy: i,
|
|
3036
|
-
propsOptions: [r],
|
|
3037
|
-
slots: o,
|
|
3038
|
-
attrs: l,
|
|
3039
|
-
emit: c,
|
|
3040
|
-
render: d,
|
|
3041
|
-
renderCache: u,
|
|
3042
|
-
props: h,
|
|
3043
|
-
data: p,
|
|
3044
|
-
setupState: b,
|
|
3045
|
-
ctx: x,
|
|
3046
|
-
inheritAttrs: $
|
|
3047
|
-
} = e, H = ns(e);
|
|
3048
|
-
let I, R;
|
|
3049
|
-
try {
|
|
3050
|
-
if (s.shapeFlag & 4) {
|
|
3051
|
-
const T = i || n, F = T;
|
|
3052
|
-
I = $e(
|
|
3053
|
-
d.call(
|
|
3054
|
-
F,
|
|
3055
|
-
T,
|
|
3056
|
-
u,
|
|
3057
|
-
h,
|
|
3058
|
-
b,
|
|
3059
|
-
p,
|
|
3060
|
-
x
|
|
3061
|
-
)
|
|
3062
|
-
), R = l;
|
|
3063
|
-
} else {
|
|
3064
|
-
const T = t;
|
|
3065
|
-
I = $e(
|
|
3066
|
-
T.length > 1 ? T(
|
|
3067
|
-
h,
|
|
3068
|
-
{ attrs: l, slots: o, emit: c }
|
|
3069
|
-
) : T(
|
|
3070
|
-
h,
|
|
3071
|
-
null
|
|
3072
|
-
)
|
|
3073
|
-
), R = t.props ? l : gl(l);
|
|
3074
|
-
}
|
|
3075
|
-
} catch (T) {
|
|
3076
|
-
Ft.length = 0, gs(T, e, 1), I = De(qe);
|
|
3077
|
-
}
|
|
3078
|
-
let D = I;
|
|
3079
|
-
if (R && $ !== !1) {
|
|
3080
|
-
const T = Object.keys(R), { shapeFlag: F } = D;
|
|
3081
|
-
T.length && F & 7 && (r && T.some(Xs) && (R = _l(
|
|
3082
|
-
R,
|
|
3083
|
-
r
|
|
3084
|
-
)), D = _t(D, R, !1, !0));
|
|
3085
|
-
}
|
|
3086
|
-
return s.dirs && (D = _t(D, null, !1, !0), D.dirs = D.dirs ? D.dirs.concat(s.dirs) : s.dirs), s.transition && un(D, s.transition), I = D, ns(H), I;
|
|
3087
|
-
}
|
|
3088
|
-
const gl = (e) => {
|
|
3089
|
-
let t;
|
|
3090
|
-
for (const s in e)
|
|
3091
|
-
(s === "class" || s === "style" || as(s)) && ((t || (t = {}))[s] = e[s]);
|
|
3092
|
-
return t;
|
|
3093
|
-
}, _l = (e, t) => {
|
|
3094
|
-
const s = {};
|
|
3095
|
-
for (const n in e)
|
|
3096
|
-
(!Xs(n) || !(n.slice(9) in t)) && (s[n] = e[n]);
|
|
3097
|
-
return s;
|
|
3098
|
-
};
|
|
3099
|
-
function bl(e, t, s) {
|
|
3100
|
-
const { props: n, children: i, component: r } = e, { props: o, children: l, patchFlag: c } = t, d = r.emitsOptions;
|
|
3101
|
-
if (t.dirs || t.transition)
|
|
3102
|
-
return !0;
|
|
3103
|
-
if (s && c >= 0) {
|
|
3104
|
-
if (c & 1024)
|
|
3105
|
-
return !0;
|
|
3106
|
-
if (c & 16)
|
|
3107
|
-
return n ? Wn(n, o, d) : !!o;
|
|
3108
|
-
if (c & 8) {
|
|
3109
|
-
const u = t.dynamicProps;
|
|
3110
|
-
for (let h = 0; h < u.length; h++) {
|
|
3111
|
-
const p = u[h];
|
|
3112
|
-
if (o[p] !== n[p] && !bs(d, p))
|
|
3113
|
-
return !0;
|
|
3114
|
-
}
|
|
3115
|
-
}
|
|
3116
|
-
} else
|
|
3117
|
-
return (i || l) && (!l || !l.$stable) ? !0 : n === o ? !1 : n ? o ? Wn(n, o, d) : !0 : !!o;
|
|
3118
|
-
return !1;
|
|
3119
|
-
}
|
|
3120
|
-
function Wn(e, t, s) {
|
|
3121
|
-
const n = Object.keys(t);
|
|
3122
|
-
if (n.length !== Object.keys(e).length)
|
|
3123
|
-
return !0;
|
|
3124
|
-
for (let i = 0; i < n.length; i++) {
|
|
3125
|
-
const r = n[i];
|
|
3126
|
-
if (t[r] !== e[r] && !bs(s, r))
|
|
3127
|
-
return !0;
|
|
3128
|
-
}
|
|
3129
|
-
return !1;
|
|
3130
|
-
}
|
|
3131
|
-
function vl({ vnode: e, parent: t }, s) {
|
|
3132
|
-
for (; t; ) {
|
|
3133
|
-
const n = t.subTree;
|
|
3134
|
-
if (n.suspense && n.suspense.activeBranch === e && (n.el = e.el), n === e)
|
|
3135
|
-
(e = t.vnode).el = s, t = t.parent;
|
|
3136
|
-
else
|
|
3137
|
-
break;
|
|
3138
|
-
}
|
|
3139
|
-
}
|
|
3140
|
-
const cr = (e) => e.__isSuspense;
|
|
3141
|
-
function yl(e, t) {
|
|
3142
|
-
t && t.pendingBranch ? O(e) ? t.effects.push(...e) : t.effects.push(e) : Io(e);
|
|
3143
|
-
}
|
|
3144
|
-
const _e = Symbol.for("v-fgt"), vs = Symbol.for("v-txt"), qe = Symbol.for("v-cmt"), Ms = Symbol.for("v-stc"), Ft = [];
|
|
3145
|
-
let pe = null;
|
|
3146
|
-
function Ve(e = !1) {
|
|
3147
|
-
Ft.push(pe = e ? null : []);
|
|
3148
|
-
}
|
|
3149
|
-
function xl() {
|
|
3150
|
-
Ft.pop(), pe = Ft[Ft.length - 1] || null;
|
|
3151
|
-
}
|
|
3152
|
-
let jt = 1;
|
|
3153
|
-
function Kn(e, t = !1) {
|
|
3154
|
-
jt += e, e < 0 && pe && t && (pe.hasOnce = !0);
|
|
3155
|
-
}
|
|
3156
|
-
function ar(e) {
|
|
3157
|
-
return e.dynamicChildren = jt > 0 ? pe || ft : null, xl(), jt > 0 && pe && pe.push(e), e;
|
|
3158
|
-
}
|
|
3159
|
-
function at(e, t, s, n, i, r) {
|
|
3160
|
-
return ar(
|
|
3161
|
-
ut(
|
|
3162
|
-
e,
|
|
3163
|
-
t,
|
|
3164
|
-
s,
|
|
3165
|
-
n,
|
|
3166
|
-
i,
|
|
3167
|
-
r,
|
|
3168
|
-
!0
|
|
3169
|
-
)
|
|
3170
|
-
);
|
|
3171
|
-
}
|
|
3172
|
-
function ur(e, t, s, n, i) {
|
|
3173
|
-
return ar(
|
|
3174
|
-
De(
|
|
3175
|
-
e,
|
|
3176
|
-
t,
|
|
3177
|
-
s,
|
|
3178
|
-
n,
|
|
3179
|
-
i,
|
|
3180
|
-
!0
|
|
3181
|
-
)
|
|
3182
|
-
);
|
|
3183
|
-
}
|
|
3184
|
-
function fr(e) {
|
|
3185
|
-
return e ? e.__v_isVNode === !0 : !1;
|
|
3186
|
-
}
|
|
3187
|
-
function St(e, t) {
|
|
3188
|
-
return e.type === t.type && e.key === t.key;
|
|
3189
|
-
}
|
|
3190
|
-
const dr = ({ key: e }) => e ?? null, Qt = ({
|
|
3191
|
-
ref: e,
|
|
3192
|
-
ref_key: t,
|
|
3193
|
-
ref_for: s
|
|
3194
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? Z(e) || te(e) || N(e) ? { i: Ae, r: e, k: t, f: !!s } : e : null);
|
|
3195
|
-
function ut(e, t = null, s = null, n = 0, i = null, r = e === _e ? 0 : 1, o = !1, l = !1) {
|
|
3196
|
-
const c = {
|
|
3197
|
-
__v_isVNode: !0,
|
|
3198
|
-
__v_skip: !0,
|
|
3199
|
-
type: e,
|
|
3200
|
-
props: t,
|
|
3201
|
-
key: t && dr(t),
|
|
3202
|
-
ref: t && Qt(t),
|
|
3203
|
-
scopeId: Li,
|
|
3204
|
-
slotScopeIds: null,
|
|
3205
|
-
children: s,
|
|
3206
|
-
component: null,
|
|
3207
|
-
suspense: null,
|
|
3208
|
-
ssContent: null,
|
|
3209
|
-
ssFallback: null,
|
|
3210
|
-
dirs: null,
|
|
3211
|
-
transition: null,
|
|
3212
|
-
el: null,
|
|
3213
|
-
anchor: null,
|
|
3214
|
-
target: null,
|
|
3215
|
-
targetStart: null,
|
|
3216
|
-
targetAnchor: null,
|
|
3217
|
-
staticCount: 0,
|
|
3218
|
-
shapeFlag: r,
|
|
3219
|
-
patchFlag: n,
|
|
3220
|
-
dynamicProps: i,
|
|
3221
|
-
dynamicChildren: null,
|
|
3222
|
-
appContext: null,
|
|
3223
|
-
ctx: Ae
|
|
3224
|
-
};
|
|
3225
|
-
return l ? (mn(c, s), r & 128 && e.normalize(c)) : s && (c.shapeFlag |= Z(s) ? 8 : 16), jt > 0 && // avoid a block node from tracking itself
|
|
3226
|
-
!o && // has current parent block
|
|
3227
|
-
pe && // presence of a patch flag indicates this node needs patching on updates.
|
|
3228
|
-
// component nodes also should always be patched, because even if the
|
|
3229
|
-
// component doesn't need to update, it needs to persist the instance on to
|
|
3230
|
-
// the next vnode so that it can be properly unmounted later.
|
|
3231
|
-
(c.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
|
|
3232
|
-
// vnode should not be considered dynamic due to handler caching.
|
|
3233
|
-
c.patchFlag !== 32 && pe.push(c), c;
|
|
3234
|
-
}
|
|
3235
|
-
const De = Cl;
|
|
3236
|
-
function Cl(e, t = null, s = null, n = 0, i = null, r = !1) {
|
|
3237
|
-
if ((!e || e === Ko) && (e = qe), fr(e)) {
|
|
3238
|
-
const l = _t(
|
|
3239
|
-
e,
|
|
3240
|
-
t,
|
|
3241
|
-
!0
|
|
3242
|
-
/* mergeRef: true */
|
|
3243
|
-
);
|
|
3244
|
-
return s && mn(l, s), jt > 0 && !r && pe && (l.shapeFlag & 6 ? pe[pe.indexOf(e)] = l : pe.push(l)), l.patchFlag = -2, l;
|
|
3245
|
-
}
|
|
3246
|
-
if (Nl(e) && (e = e.__vccOpts), t) {
|
|
3247
|
-
t = El(t);
|
|
3248
|
-
let { class: l, style: c } = t;
|
|
3249
|
-
l && !Z(l) && (t.class = hs(l)), G(c) && (cn(c) && !O(c) && (c = se({}, c)), t.style = en(c));
|
|
3250
|
-
}
|
|
3251
|
-
const o = Z(e) ? 1 : cr(e) ? 128 : No(e) ? 64 : G(e) ? 4 : N(e) ? 2 : 0;
|
|
3252
|
-
return ut(
|
|
3253
|
-
e,
|
|
3254
|
-
t,
|
|
3255
|
-
s,
|
|
3256
|
-
n,
|
|
3257
|
-
i,
|
|
3258
|
-
o,
|
|
3259
|
-
r,
|
|
3260
|
-
!0
|
|
3261
|
-
);
|
|
3262
|
-
}
|
|
3263
|
-
function El(e) {
|
|
3264
|
-
return e ? cn(e) || Xi(e) ? se({}, e) : e : null;
|
|
3265
|
-
}
|
|
3266
|
-
function _t(e, t, s = !1, n = !1) {
|
|
3267
|
-
const { props: i, ref: r, patchFlag: o, children: l, transition: c } = e, d = t ? hr(i || {}, t) : i, u = {
|
|
3268
|
-
__v_isVNode: !0,
|
|
3269
|
-
__v_skip: !0,
|
|
3270
|
-
type: e.type,
|
|
3271
|
-
props: d,
|
|
3272
|
-
key: d && dr(d),
|
|
3273
|
-
ref: t && t.ref ? (
|
|
3274
|
-
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
3275
|
-
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
3276
|
-
// the refs so the single vnode can be set on multiple refs
|
|
3277
|
-
s && r ? O(r) ? r.concat(Qt(t)) : [r, Qt(t)] : Qt(t)
|
|
3278
|
-
) : r,
|
|
3279
|
-
scopeId: e.scopeId,
|
|
3280
|
-
slotScopeIds: e.slotScopeIds,
|
|
3281
|
-
children: l,
|
|
3282
|
-
target: e.target,
|
|
3283
|
-
targetStart: e.targetStart,
|
|
3284
|
-
targetAnchor: e.targetAnchor,
|
|
3285
|
-
staticCount: e.staticCount,
|
|
3286
|
-
shapeFlag: e.shapeFlag,
|
|
3287
|
-
// if the vnode is cloned with extra props, we can no longer assume its
|
|
3288
|
-
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
3289
|
-
// note: preserve flag for fragments since they use the flag for children
|
|
3290
|
-
// fast paths only.
|
|
3291
|
-
patchFlag: t && e.type !== _e ? o === -1 ? 16 : o | 16 : o,
|
|
3292
|
-
dynamicProps: e.dynamicProps,
|
|
3293
|
-
dynamicChildren: e.dynamicChildren,
|
|
3294
|
-
appContext: e.appContext,
|
|
3295
|
-
dirs: e.dirs,
|
|
3296
|
-
transition: c,
|
|
3297
|
-
// These should technically only be non-null on mounted VNodes. However,
|
|
3298
|
-
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
3299
|
-
// them since them being non-null during a mount doesn't affect the logic as
|
|
3300
|
-
// they will simply be overwritten.
|
|
3301
|
-
component: e.component,
|
|
3302
|
-
suspense: e.suspense,
|
|
3303
|
-
ssContent: e.ssContent && _t(e.ssContent),
|
|
3304
|
-
ssFallback: e.ssFallback && _t(e.ssFallback),
|
|
3305
|
-
placeholder: e.placeholder,
|
|
3306
|
-
el: e.el,
|
|
3307
|
-
anchor: e.anchor,
|
|
3308
|
-
ctx: e.ctx,
|
|
3309
|
-
ce: e.ce
|
|
3310
|
-
};
|
|
3311
|
-
return c && n && un(
|
|
3312
|
-
u,
|
|
3313
|
-
c.clone(u)
|
|
3314
|
-
), u;
|
|
3315
|
-
}
|
|
3316
|
-
function Sl(e = " ", t = 0) {
|
|
3317
|
-
return De(vs, null, e, t);
|
|
3318
|
-
}
|
|
3319
|
-
function wl(e = "", t = !1) {
|
|
3320
|
-
return t ? (Ve(), ur(qe, null, e)) : De(qe, null, e);
|
|
3321
|
-
}
|
|
3322
|
-
function $e(e) {
|
|
3323
|
-
return e == null || typeof e == "boolean" ? De(qe) : O(e) ? De(
|
|
3324
|
-
_e,
|
|
3325
|
-
null,
|
|
3326
|
-
// #3666, avoid reference pollution when reusing vnode
|
|
3327
|
-
e.slice()
|
|
3328
|
-
) : fr(e) ? Be(e) : De(vs, null, String(e));
|
|
3329
|
-
}
|
|
3330
|
-
function Be(e) {
|
|
3331
|
-
return e.el === null && e.patchFlag !== -1 || e.memo ? e : _t(e);
|
|
3332
|
-
}
|
|
3333
|
-
function mn(e, t) {
|
|
3334
|
-
let s = 0;
|
|
3335
|
-
const { shapeFlag: n } = e;
|
|
3336
|
-
if (t == null)
|
|
3337
|
-
t = null;
|
|
3338
|
-
else if (O(t))
|
|
3339
|
-
s = 16;
|
|
3340
|
-
else if (typeof t == "object")
|
|
3341
|
-
if (n & 65) {
|
|
3342
|
-
const i = t.default;
|
|
3343
|
-
i && (i._c && (i._d = !1), mn(e, i()), i._c && (i._d = !0));
|
|
3344
|
-
return;
|
|
3345
|
-
} else {
|
|
3346
|
-
s = 32;
|
|
3347
|
-
const i = t._;
|
|
3348
|
-
!i && !Xi(t) ? t._ctx = Ae : i === 3 && Ae && (Ae.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
3349
|
-
}
|
|
3350
|
-
else N(t) ? (t = { default: t, _ctx: Ae }, s = 32) : (t = String(t), n & 64 ? (s = 16, t = [Sl(t)]) : s = 8);
|
|
3351
|
-
e.children = t, e.shapeFlag |= s;
|
|
3352
|
-
}
|
|
3353
|
-
function hr(...e) {
|
|
3354
|
-
const t = {};
|
|
3355
|
-
for (let s = 0; s < e.length; s++) {
|
|
3356
|
-
const n = e[s];
|
|
3357
|
-
for (const i in n)
|
|
3358
|
-
if (i === "class")
|
|
3359
|
-
t.class !== n.class && (t.class = hs([t.class, n.class]));
|
|
3360
|
-
else if (i === "style")
|
|
3361
|
-
t.style = en([t.style, n.style]);
|
|
3362
|
-
else if (as(i)) {
|
|
3363
|
-
const r = t[i], o = n[i];
|
|
3364
|
-
o && r !== o && !(O(r) && r.includes(o)) && (t[i] = r ? [].concat(r, o) : o);
|
|
3365
|
-
} else i !== "" && (t[i] = n[i]);
|
|
3366
|
-
}
|
|
3367
|
-
return t;
|
|
3368
|
-
}
|
|
3369
|
-
function we(e, t, s, n = null) {
|
|
3370
|
-
Ie(e, t, 7, [
|
|
3371
|
-
s,
|
|
3372
|
-
n
|
|
3373
|
-
]);
|
|
3374
|
-
}
|
|
3375
|
-
const Tl = zi();
|
|
3376
|
-
let $l = 0;
|
|
3377
|
-
function Al(e, t, s) {
|
|
3378
|
-
const n = e.type, i = (t ? t.appContext : e.appContext) || Tl, r = {
|
|
3379
|
-
uid: $l++,
|
|
3380
|
-
vnode: e,
|
|
3381
|
-
type: n,
|
|
3382
|
-
parent: t,
|
|
3383
|
-
appContext: i,
|
|
3384
|
-
root: null,
|
|
3385
|
-
// to be immediately set
|
|
3386
|
-
next: null,
|
|
3387
|
-
subTree: null,
|
|
3388
|
-
// will be set synchronously right after creation
|
|
3389
|
-
effect: null,
|
|
3390
|
-
update: null,
|
|
3391
|
-
// will be set synchronously right after creation
|
|
3392
|
-
job: null,
|
|
3393
|
-
scope: new Xr(
|
|
3394
|
-
!0
|
|
3395
|
-
/* detached */
|
|
3396
|
-
),
|
|
3397
|
-
render: null,
|
|
3398
|
-
proxy: null,
|
|
3399
|
-
exposed: null,
|
|
3400
|
-
exposeProxy: null,
|
|
3401
|
-
withProxy: null,
|
|
3402
|
-
provides: t ? t.provides : Object.create(i.provides),
|
|
3403
|
-
ids: t ? t.ids : ["", 0, 0],
|
|
3404
|
-
accessCache: null,
|
|
3405
|
-
renderCache: [],
|
|
3406
|
-
// local resolved assets
|
|
3407
|
-
components: null,
|
|
3408
|
-
directives: null,
|
|
3409
|
-
// resolved props and emits options
|
|
3410
|
-
propsOptions: Zi(n, i),
|
|
3411
|
-
emitsOptions: lr(n, i),
|
|
3412
|
-
// emit
|
|
3413
|
-
emit: null,
|
|
3414
|
-
// to be set immediately
|
|
3415
|
-
emitted: null,
|
|
3416
|
-
// props default value
|
|
3417
|
-
propsDefaults: k,
|
|
3418
|
-
// inheritAttrs
|
|
3419
|
-
inheritAttrs: n.inheritAttrs,
|
|
3420
|
-
// state
|
|
3421
|
-
ctx: k,
|
|
3422
|
-
data: k,
|
|
3423
|
-
props: k,
|
|
3424
|
-
attrs: k,
|
|
3425
|
-
slots: k,
|
|
3426
|
-
refs: k,
|
|
3427
|
-
setupState: k,
|
|
3428
|
-
setupContext: null,
|
|
3429
|
-
// suspense related
|
|
3430
|
-
suspense: s,
|
|
3431
|
-
suspenseId: s ? s.pendingId : 0,
|
|
3432
|
-
asyncDep: null,
|
|
3433
|
-
asyncResolved: !1,
|
|
3434
|
-
// lifecycle hooks
|
|
3435
|
-
// not using enums here because it results in computed properties
|
|
3436
|
-
isMounted: !1,
|
|
3437
|
-
isUnmounted: !1,
|
|
3438
|
-
isDeactivated: !1,
|
|
3439
|
-
bc: null,
|
|
3440
|
-
c: null,
|
|
3441
|
-
bm: null,
|
|
3442
|
-
m: null,
|
|
3443
|
-
bu: null,
|
|
3444
|
-
u: null,
|
|
3445
|
-
um: null,
|
|
3446
|
-
bum: null,
|
|
3447
|
-
da: null,
|
|
3448
|
-
a: null,
|
|
3449
|
-
rtg: null,
|
|
3450
|
-
rtc: null,
|
|
3451
|
-
ec: null,
|
|
3452
|
-
sp: null
|
|
3453
|
-
};
|
|
3454
|
-
return r.ctx = { _: r }, r.root = t ? t.root : r, r.emit = pl.bind(null, r), e.ce && e.ce(r), r;
|
|
3455
|
-
}
|
|
3456
|
-
let le = null;
|
|
3457
|
-
const gn = () => le || Ae;
|
|
3458
|
-
let ls, Ks;
|
|
3459
|
-
{
|
|
3460
|
-
const e = ds(), t = (s, n) => {
|
|
3461
|
-
let i;
|
|
3462
|
-
return (i = e[s]) || (i = e[s] = []), i.push(n), (r) => {
|
|
3463
|
-
i.length > 1 ? i.forEach((o) => o(r)) : i[0](r);
|
|
3464
|
-
};
|
|
3465
|
-
};
|
|
3466
|
-
ls = t(
|
|
3467
|
-
"__VUE_INSTANCE_SETTERS__",
|
|
3468
|
-
(s) => le = s
|
|
3469
|
-
), Ks = t(
|
|
3470
|
-
"__VUE_SSR_SETTERS__",
|
|
3471
|
-
(s) => Ht = s
|
|
3472
|
-
);
|
|
3473
|
-
}
|
|
3474
|
-
const kt = (e) => {
|
|
3475
|
-
const t = le;
|
|
3476
|
-
return ls(e), e.scope.on(), () => {
|
|
3477
|
-
e.scope.off(), ls(t);
|
|
3478
|
-
};
|
|
3479
|
-
}, qn = () => {
|
|
3480
|
-
le && le.scope.off(), ls(null);
|
|
3481
|
-
};
|
|
3482
|
-
function pr(e) {
|
|
3483
|
-
return e.vnode.shapeFlag & 4;
|
|
3484
|
-
}
|
|
3485
|
-
let Ht = !1;
|
|
3486
|
-
function Pl(e, t = !1, s = !1) {
|
|
3487
|
-
t && Ks(t);
|
|
3488
|
-
const { props: n, children: i } = e.vnode, r = pr(e);
|
|
3489
|
-
el(e, n, r, t), il(e, i, s || t);
|
|
3490
|
-
const o = r ? Il(e, t) : void 0;
|
|
3491
|
-
return t && Ks(!1), o;
|
|
3492
|
-
}
|
|
3493
|
-
function Il(e, t) {
|
|
3494
|
-
const s = e.type;
|
|
3495
|
-
e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, qo);
|
|
3496
|
-
const { setup: n } = s;
|
|
3497
|
-
if (n) {
|
|
3498
|
-
je();
|
|
3499
|
-
const i = e.setupContext = n.length > 1 ? Ol(e) : null, r = kt(e), o = Ut(
|
|
3500
|
-
n,
|
|
3501
|
-
e,
|
|
3502
|
-
0,
|
|
3503
|
-
[
|
|
3504
|
-
e.props,
|
|
3505
|
-
i
|
|
3506
|
-
]
|
|
3507
|
-
), l = ai(o);
|
|
3508
|
-
if (He(), r(), (l || e.sp) && !Mt(e) && Hi(e), l) {
|
|
3509
|
-
if (o.then(qn, qn), t)
|
|
3510
|
-
return o.then((c) => {
|
|
3511
|
-
zn(e, c);
|
|
3512
|
-
}).catch((c) => {
|
|
3513
|
-
gs(c, e, 0);
|
|
3514
|
-
});
|
|
3515
|
-
e.asyncDep = o;
|
|
3516
|
-
} else
|
|
3517
|
-
zn(e, o);
|
|
3518
|
-
} else
|
|
3519
|
-
mr(e);
|
|
3520
|
-
}
|
|
3521
|
-
function zn(e, t, s) {
|
|
3522
|
-
N(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : G(t) && (e.setupState = Oi(t)), mr(e);
|
|
3523
|
-
}
|
|
3524
|
-
function mr(e, t, s) {
|
|
3525
|
-
const n = e.type;
|
|
3526
|
-
e.render || (e.render = n.render || Pe);
|
|
3527
|
-
{
|
|
3528
|
-
const i = kt(e);
|
|
3529
|
-
je();
|
|
3530
|
-
try {
|
|
3531
|
-
zo(e);
|
|
3532
|
-
} finally {
|
|
3533
|
-
He(), i();
|
|
3534
|
-
}
|
|
3535
|
-
}
|
|
3536
|
-
}
|
|
3537
|
-
const Ml = {
|
|
3538
|
-
get(e, t) {
|
|
3539
|
-
return ne(e, "get", ""), e[t];
|
|
3540
|
-
}
|
|
3541
|
-
};
|
|
3542
|
-
function Ol(e) {
|
|
3543
|
-
const t = (s) => {
|
|
3544
|
-
e.exposed = s || {};
|
|
3545
|
-
};
|
|
3546
|
-
return {
|
|
3547
|
-
attrs: new Proxy(e.attrs, Ml),
|
|
3548
|
-
slots: e.slots,
|
|
3549
|
-
emit: e.emit,
|
|
3550
|
-
expose: t
|
|
3551
|
-
};
|
|
3552
|
-
}
|
|
3553
|
-
function _n(e) {
|
|
3554
|
-
return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(Oi(vo(e.exposed)), {
|
|
3555
|
-
get(t, s) {
|
|
3556
|
-
if (s in t)
|
|
3557
|
-
return t[s];
|
|
3558
|
-
if (s in Ot)
|
|
3559
|
-
return Ot[s](e);
|
|
3560
|
-
},
|
|
3561
|
-
has(t, s) {
|
|
3562
|
-
return s in t || s in Ot;
|
|
3563
|
-
}
|
|
3564
|
-
})) : e.proxy;
|
|
3565
|
-
}
|
|
3566
|
-
function Nl(e) {
|
|
3567
|
-
return N(e) && "__vccOpts" in e;
|
|
3568
|
-
}
|
|
3569
|
-
const gr = (e, t) => wo(e, t, Ht), Fl = "3.5.22";
|
|
3570
|
-
/**
|
|
3571
|
-
* @vue/runtime-dom v3.5.22
|
|
3572
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
3573
|
-
* @license MIT
|
|
3574
|
-
**/
|
|
3575
|
-
let qs;
|
|
3576
|
-
const Jn = typeof window < "u" && window.trustedTypes;
|
|
3577
|
-
if (Jn)
|
|
3578
|
-
try {
|
|
3579
|
-
qs = /* @__PURE__ */ Jn.createPolicy("vue", {
|
|
3580
|
-
createHTML: (e) => e
|
|
3581
|
-
});
|
|
3582
|
-
} catch {
|
|
3583
|
-
}
|
|
3584
|
-
const _r = qs ? (e) => qs.createHTML(e) : (e) => e, Rl = "http://www.w3.org/2000/svg", Dl = "http://www.w3.org/1998/Math/MathML", Fe = typeof document < "u" ? document : null, Gn = Fe && /* @__PURE__ */ Fe.createElement("template"), Ll = {
|
|
3585
|
-
insert: (e, t, s) => {
|
|
3586
|
-
t.insertBefore(e, s || null);
|
|
3587
|
-
},
|
|
3588
|
-
remove: (e) => {
|
|
3589
|
-
const t = e.parentNode;
|
|
3590
|
-
t && t.removeChild(e);
|
|
3591
|
-
},
|
|
3592
|
-
createElement: (e, t, s, n) => {
|
|
3593
|
-
const i = t === "svg" ? Fe.createElementNS(Rl, e) : t === "mathml" ? Fe.createElementNS(Dl, e) : s ? Fe.createElement(e, { is: s }) : Fe.createElement(e);
|
|
3594
|
-
return e === "select" && n && n.multiple != null && i.setAttribute("multiple", n.multiple), i;
|
|
3595
|
-
},
|
|
3596
|
-
createText: (e) => Fe.createTextNode(e),
|
|
3597
|
-
createComment: (e) => Fe.createComment(e),
|
|
3598
|
-
setText: (e, t) => {
|
|
3599
|
-
e.nodeValue = t;
|
|
3600
|
-
},
|
|
3601
|
-
setElementText: (e, t) => {
|
|
3602
|
-
e.textContent = t;
|
|
3603
|
-
},
|
|
3604
|
-
parentNode: (e) => e.parentNode,
|
|
3605
|
-
nextSibling: (e) => e.nextSibling,
|
|
3606
|
-
querySelector: (e) => Fe.querySelector(e),
|
|
3607
|
-
setScopeId(e, t) {
|
|
3608
|
-
e.setAttribute(t, "");
|
|
3609
|
-
},
|
|
3610
|
-
// __UNSAFE__
|
|
3611
|
-
// Reason: innerHTML.
|
|
3612
|
-
// Static content here can only come from compiled templates.
|
|
3613
|
-
// As long as the user only uses trusted templates, this is safe.
|
|
3614
|
-
insertStaticContent(e, t, s, n, i, r) {
|
|
3615
|
-
const o = s ? s.previousSibling : t.lastChild;
|
|
3616
|
-
if (i && (i === r || i.nextSibling))
|
|
3617
|
-
for (; t.insertBefore(i.cloneNode(!0), s), !(i === r || !(i = i.nextSibling)); )
|
|
3618
|
-
;
|
|
3619
|
-
else {
|
|
3620
|
-
Gn.innerHTML = _r(
|
|
3621
|
-
n === "svg" ? `<svg>${e}</svg>` : n === "mathml" ? `<math>${e}</math>` : e
|
|
3622
|
-
);
|
|
3623
|
-
const l = Gn.content;
|
|
3624
|
-
if (n === "svg" || n === "mathml") {
|
|
3625
|
-
const c = l.firstChild;
|
|
3626
|
-
for (; c.firstChild; )
|
|
3627
|
-
l.appendChild(c.firstChild);
|
|
3628
|
-
l.removeChild(c);
|
|
3629
|
-
}
|
|
3630
|
-
t.insertBefore(l, s);
|
|
3631
|
-
}
|
|
3632
|
-
return [
|
|
3633
|
-
// first
|
|
3634
|
-
o ? o.nextSibling : t.firstChild,
|
|
3635
|
-
// last
|
|
3636
|
-
s ? s.previousSibling : t.lastChild
|
|
3637
|
-
];
|
|
3638
|
-
}
|
|
3639
|
-
}, jl = Symbol("_vtc");
|
|
3640
|
-
function Hl(e, t, s) {
|
|
3641
|
-
const n = e[jl];
|
|
3642
|
-
n && (t = (t ? [t, ...n] : [...n]).join(" ")), t == null ? e.removeAttribute("class") : s ? e.setAttribute("class", t) : e.className = t;
|
|
3643
|
-
}
|
|
3644
|
-
const Yn = Symbol("_vod"), Ul = Symbol("_vsh"), kl = Symbol(""), Vl = /(?:^|;)\s*display\s*:/;
|
|
3645
|
-
function Bl(e, t, s) {
|
|
3646
|
-
const n = e.style, i = Z(s);
|
|
3647
|
-
let r = !1;
|
|
3648
|
-
if (s && !i) {
|
|
3649
|
-
if (t)
|
|
3650
|
-
if (Z(t))
|
|
3651
|
-
for (const o of t.split(";")) {
|
|
3652
|
-
const l = o.slice(0, o.indexOf(":")).trim();
|
|
3653
|
-
s[l] == null && Zt(n, l, "");
|
|
3654
|
-
}
|
|
3655
|
-
else
|
|
3656
|
-
for (const o in t)
|
|
3657
|
-
s[o] == null && Zt(n, o, "");
|
|
3658
|
-
for (const o in s)
|
|
3659
|
-
o === "display" && (r = !0), Zt(n, o, s[o]);
|
|
3660
|
-
} else if (i) {
|
|
3661
|
-
if (t !== s) {
|
|
3662
|
-
const o = n[kl];
|
|
3663
|
-
o && (s += ";" + o), n.cssText = s, r = Vl.test(s);
|
|
3664
|
-
}
|
|
3665
|
-
} else t && e.removeAttribute("style");
|
|
3666
|
-
Yn in e && (e[Yn] = r ? n.display : "", e[Ul] && (n.display = "none"));
|
|
3667
|
-
}
|
|
3668
|
-
const Xn = /\s*!important$/;
|
|
3669
|
-
function Zt(e, t, s) {
|
|
3670
|
-
if (O(s))
|
|
3671
|
-
s.forEach((n) => Zt(e, t, n));
|
|
3672
|
-
else if (s == null && (s = ""), t.startsWith("--"))
|
|
3673
|
-
e.setProperty(t, s);
|
|
3674
|
-
else {
|
|
3675
|
-
const n = Wl(e, t);
|
|
3676
|
-
Xn.test(s) ? e.setProperty(
|
|
3677
|
-
Ge(n),
|
|
3678
|
-
s.replace(Xn, ""),
|
|
3679
|
-
"important"
|
|
3680
|
-
) : e[n] = s;
|
|
3681
|
-
}
|
|
3682
|
-
}
|
|
3683
|
-
const Qn = ["Webkit", "Moz", "ms"], Os = {};
|
|
3684
|
-
function Wl(e, t) {
|
|
3685
|
-
const s = Os[t];
|
|
3686
|
-
if (s)
|
|
3687
|
-
return s;
|
|
3688
|
-
let n = Le(t);
|
|
3689
|
-
if (n !== "filter" && n in e)
|
|
3690
|
-
return Os[t] = n;
|
|
3691
|
-
n = di(n);
|
|
3692
|
-
for (let i = 0; i < Qn.length; i++) {
|
|
3693
|
-
const r = Qn[i] + n;
|
|
3694
|
-
if (r in e)
|
|
3695
|
-
return Os[t] = r;
|
|
3696
|
-
}
|
|
3697
|
-
return t;
|
|
3698
|
-
}
|
|
3699
|
-
const Zn = "http://www.w3.org/1999/xlink";
|
|
3700
|
-
function ei(e, t, s, n, i, r = Yr(t)) {
|
|
3701
|
-
n && t.startsWith("xlink:") ? s == null ? e.removeAttributeNS(Zn, t.slice(6, t.length)) : e.setAttributeNS(Zn, t, s) : s == null || r && !pi(s) ? e.removeAttribute(t) : e.setAttribute(
|
|
3702
|
-
t,
|
|
3703
|
-
r ? "" : Je(s) ? String(s) : s
|
|
3704
|
-
);
|
|
3705
|
-
}
|
|
3706
|
-
function ti(e, t, s, n, i) {
|
|
3707
|
-
if (t === "innerHTML" || t === "textContent") {
|
|
3708
|
-
s != null && (e[t] = t === "innerHTML" ? _r(s) : s);
|
|
3709
|
-
return;
|
|
3710
|
-
}
|
|
3711
|
-
const r = e.tagName;
|
|
3712
|
-
if (t === "value" && r !== "PROGRESS" && // custom elements may use _value internally
|
|
3713
|
-
!r.includes("-")) {
|
|
3714
|
-
const l = r === "OPTION" ? e.getAttribute("value") || "" : e.value, c = s == null ? (
|
|
3715
|
-
// #11647: value should be set as empty string for null and undefined,
|
|
3716
|
-
// but <input type="checkbox"> should be set as 'on'.
|
|
3717
|
-
e.type === "checkbox" ? "on" : ""
|
|
3718
|
-
) : String(s);
|
|
3719
|
-
(l !== c || !("_value" in e)) && (e.value = c), s == null && e.removeAttribute(t), e._value = s;
|
|
3720
|
-
return;
|
|
3721
|
-
}
|
|
3722
|
-
let o = !1;
|
|
3723
|
-
if (s === "" || s == null) {
|
|
3724
|
-
const l = typeof e[t];
|
|
3725
|
-
l === "boolean" ? s = pi(s) : s == null && l === "string" ? (s = "", o = !0) : l === "number" && (s = 0, o = !0);
|
|
3726
|
-
}
|
|
3727
|
-
try {
|
|
3728
|
-
e[t] = s;
|
|
3729
|
-
} catch {
|
|
3730
|
-
}
|
|
3731
|
-
o && e.removeAttribute(i || t);
|
|
3732
|
-
}
|
|
3733
|
-
function Kl(e, t, s, n) {
|
|
3734
|
-
e.addEventListener(t, s, n);
|
|
3735
|
-
}
|
|
3736
|
-
function ql(e, t, s, n) {
|
|
3737
|
-
e.removeEventListener(t, s, n);
|
|
3738
|
-
}
|
|
3739
|
-
const si = Symbol("_vei");
|
|
3740
|
-
function zl(e, t, s, n, i = null) {
|
|
3741
|
-
const r = e[si] || (e[si] = {}), o = r[t];
|
|
3742
|
-
if (n && o)
|
|
3743
|
-
o.value = n;
|
|
3744
|
-
else {
|
|
3745
|
-
const [l, c] = Jl(t);
|
|
3746
|
-
if (n) {
|
|
3747
|
-
const d = r[t] = Xl(
|
|
3748
|
-
n,
|
|
3749
|
-
i
|
|
3750
|
-
);
|
|
3751
|
-
Kl(e, l, d, c);
|
|
3752
|
-
} else o && (ql(e, l, o, c), r[t] = void 0);
|
|
3753
|
-
}
|
|
3754
|
-
}
|
|
3755
|
-
const ni = /(?:Once|Passive|Capture)$/;
|
|
3756
|
-
function Jl(e) {
|
|
3757
|
-
let t;
|
|
3758
|
-
if (ni.test(e)) {
|
|
3759
|
-
t = {};
|
|
3760
|
-
let n;
|
|
3761
|
-
for (; n = e.match(ni); )
|
|
3762
|
-
e = e.slice(0, e.length - n[0].length), t[n[0].toLowerCase()] = !0;
|
|
3763
|
-
}
|
|
3764
|
-
return [e[2] === ":" ? e.slice(3) : Ge(e.slice(2)), t];
|
|
3765
|
-
}
|
|
3766
|
-
let Ns = 0;
|
|
3767
|
-
const Gl = /* @__PURE__ */ Promise.resolve(), Yl = () => Ns || (Gl.then(() => Ns = 0), Ns = Date.now());
|
|
3768
|
-
function Xl(e, t) {
|
|
3769
|
-
const s = (n) => {
|
|
3770
|
-
if (!n._vts)
|
|
3771
|
-
n._vts = Date.now();
|
|
3772
|
-
else if (n._vts <= s.attached)
|
|
3773
|
-
return;
|
|
3774
|
-
Ie(
|
|
3775
|
-
Ql(n, s.value),
|
|
3776
|
-
t,
|
|
3777
|
-
5,
|
|
3778
|
-
[n]
|
|
3779
|
-
);
|
|
3780
|
-
};
|
|
3781
|
-
return s.value = e, s.attached = Yl(), s;
|
|
3782
|
-
}
|
|
3783
|
-
function Ql(e, t) {
|
|
3784
|
-
if (O(t)) {
|
|
3785
|
-
const s = e.stopImmediatePropagation;
|
|
3786
|
-
return e.stopImmediatePropagation = () => {
|
|
3787
|
-
s.call(e), e._stopped = !0;
|
|
3788
|
-
}, t.map(
|
|
3789
|
-
(n) => (i) => !i._stopped && n && n(i)
|
|
3790
|
-
);
|
|
3791
|
-
} else
|
|
3792
|
-
return t;
|
|
3793
|
-
}
|
|
3794
|
-
const ii = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // lowercase letter
|
|
3795
|
-
e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, Zl = (e, t, s, n, i, r) => {
|
|
3796
|
-
const o = i === "svg";
|
|
3797
|
-
t === "class" ? Hl(e, n, o) : t === "style" ? Bl(e, s, n) : as(t) ? Xs(t) || zl(e, t, s, n, r) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : ec(e, t, n, o)) ? (ti(e, t, n), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && ei(e, t, n, o, r, t !== "value")) : /* #11081 force set props for possible async custom element */ e._isVueCE && (/[A-Z]/.test(t) || !Z(n)) ? ti(e, Le(t), n, r, t) : (t === "true-value" ? e._trueValue = n : t === "false-value" && (e._falseValue = n), ei(e, t, n, o));
|
|
3798
|
-
};
|
|
3799
|
-
function ec(e, t, s, n) {
|
|
3800
|
-
if (n)
|
|
3801
|
-
return !!(t === "innerHTML" || t === "textContent" || t in e && ii(t) && N(s));
|
|
3802
|
-
if (t === "spellcheck" || t === "draggable" || t === "translate" || t === "autocorrect" || t === "form" || t === "list" && e.tagName === "INPUT" || t === "type" && e.tagName === "TEXTAREA")
|
|
3803
|
-
return !1;
|
|
3804
|
-
if (t === "width" || t === "height") {
|
|
3805
|
-
const i = e.tagName;
|
|
3806
|
-
if (i === "IMG" || i === "VIDEO" || i === "CANVAS" || i === "SOURCE")
|
|
3807
|
-
return !1;
|
|
3808
|
-
}
|
|
3809
|
-
return ii(t) && Z(s) ? !1 : t in e;
|
|
3810
|
-
}
|
|
3811
|
-
const tc = /* @__PURE__ */ se({ patchProp: Zl }, Ll);
|
|
3812
|
-
let ri;
|
|
3813
|
-
function sc() {
|
|
3814
|
-
return ri || (ri = ol(tc));
|
|
3815
|
-
}
|
|
3816
|
-
const nc = (...e) => {
|
|
3817
|
-
const t = sc().createApp(...e), { mount: s } = t;
|
|
3818
|
-
return t.mount = (n) => {
|
|
3819
|
-
const i = rc(n);
|
|
3820
|
-
if (!i) return;
|
|
3821
|
-
const r = t._component;
|
|
3822
|
-
!N(r) && !r.render && !r.template && (r.template = i.innerHTML), i.nodeType === 1 && (i.textContent = "");
|
|
3823
|
-
const o = s(i, !1, ic(i));
|
|
3824
|
-
return i instanceof Element && (i.removeAttribute("v-cloak"), i.setAttribute("data-v-app", "")), o;
|
|
3825
|
-
}, t;
|
|
3826
|
-
};
|
|
3827
|
-
function ic(e) {
|
|
3828
|
-
if (e instanceof SVGElement)
|
|
3829
|
-
return "svg";
|
|
3830
|
-
if (typeof MathMLElement == "function" && e instanceof MathMLElement)
|
|
3831
|
-
return "mathml";
|
|
3832
|
-
}
|
|
3833
|
-
function rc(e) {
|
|
3834
|
-
return Z(e) ? document.querySelector(e) : e;
|
|
3835
|
-
}
|
|
3836
|
-
const zs = Symbol("IPEInjectKey"), oc = (e, t) => (t ? t.provide(zs, e) : Ji(zs, e), e), lc = () => {
|
|
3837
|
-
const e = Nt(zs);
|
|
3838
|
-
if (!e)
|
|
3839
|
-
throw new Error("InPageEdit instance is not provided");
|
|
3840
|
-
return e;
|
|
3841
|
-
}, cc = (e, ...t) => {
|
|
3842
|
-
const s = nc(...t);
|
|
3843
|
-
return oc(e, s), s;
|
|
3844
|
-
}, ge = '@charset "UTF-8";:host{display:block;font-family:var(--schema-font-family, ui-sans-serif, system-ui, -apple-system);color:var(--schema-color-fg, #111827)}*,*:before,*:after{box-sizing:border-box}.wrapper{display:block;background:var(--schema-color-bg, #ffffff)}.form{display:grid;gap:12px}.field{display:grid;gap:6px;padding:8px 10px;border:1px solid var(--schema-color-muted, #e5e7eb);border-radius:var(--schema-radius, 10px);background:var(--schema-surface, #fff)}.label{font-size:12px;color:var(--schema-color-muted-text, #6b7280)}.input,select,textarea{width:100%;padding:8px 10px;border-radius:8px;border:1px solid var(--schema-color-muted, #e5e7eb);background:var(--schema-input-bg, #fff);color:inherit}.checkbox{display:inline-flex;align-items:center;gap:8px}.helper{font-size:12px;color:var(--schema-color-muted-text, #6b7280)}.row{display:grid;gap:8px}.actions{display:flex;gap:8px}.btn{padding:6px 10px;border:1px solid var(--schema-color-muted, #e5e7eb);background:var(--schema-btn-bg, #f8fafc);border-radius:8px;cursor:pointer}.btn.primary{background:var(--schema-color-primary, #2563eb);color:#fff;border-color:transparent}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.danger{background:var(--schema-color-danger, #dc2626);color:#fff;border-color:transparent}.group{display:grid;gap:10px;border-left:3px solid var(--schema-color-muted, #e5e7eb);padding-left:10px}.kv{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center}.badge{display:inline-flex;padding:2px 6px;border-radius:999px;font-size:11px;background:var(--schema-badge-bg, #eef2ff);color:var(--schema-badge-fg, #4f46e5)}.hidden{display:none!important}.toolbar{display:flex;gap:6px}.schema-collection-row{position:relative;transition:transform var(--schema-collection-transition-duration, .25s) var(--schema-collection-transition-ease, ease),opacity var(--schema-collection-transition-duration, .25s) var(--schema-collection-transition-ease, ease)}.schema-collection-row.enter{opacity:0}.schema-collection-row.enter.enter-active{opacity:1}.schema-collection-row.leaving{opacity:0}.field.schema-type-array .group,.field.schema-type-array .group .row{position:relative}';
|
|
3845
|
-
/**
|
|
3846
|
-
* SchemaForm
|
|
3847
|
-
* 一个基于 Schemastery 的 Web Components 表单生成器
|
|
3848
|
-
*
|
|
3849
|
-
* ✅ 使用 TypeScript,组件前缀统一为 <schema-*>
|
|
3850
|
-
* ✅ 简单样式 + 通过 CSS 变量 --schema-* 配置主题
|
|
3851
|
-
* ✅ 暴露 API:设置/获取表单数据、设置 Schema、校验
|
|
3852
|
-
* ✅ 支持的类型:string / number / boolean / date / const / object / array / tuple / dict / union
|
|
3853
|
-
* ✅ 支持按类型拆分的独立 Field 组件:<schema-form-string> 等,可单独使用
|
|
3854
|
-
* ✅ 字段容器带类名:schema-form-item schema-type-xxx,并带 data-path="a.b.0.c"
|
|
3855
|
-
* ✅ schema-form-array 支持条目上下移动
|
|
3856
|
-
* ✅ 主类为泛型:SchemaForm<T>
|
|
3857
|
-
* ✅ 提供 createSchemasteryForm<T>() 工厂,返回带强类型的 FormInstance<T>
|
|
3858
|
-
*
|
|
3859
|
-
* @license MIT
|
|
3860
|
-
* @author dragon-fish
|
|
3861
|
-
* @author @openai/gpt-5
|
|
3862
|
-
*/
|
|
3863
|
-
const br = {
|
|
3864
|
-
arrayAdd: "+",
|
|
3865
|
-
arrayMoveUp: "↑",
|
|
3866
|
-
arrayMoveDown: "↓",
|
|
3867
|
-
arrayRemove: "×",
|
|
3868
|
-
dictAdd: "+",
|
|
3869
|
-
dictRemove: "×",
|
|
3870
|
-
rootLabel: "root"
|
|
3871
|
-
}, X = (e, t) => {
|
|
3872
|
-
customElements.get(e) || customElements.define(e, t);
|
|
3873
|
-
}, ac = (e, t, s) => {
|
|
3874
|
-
if (!t.length) return;
|
|
3875
|
-
let n = e, i = null, r = null;
|
|
3876
|
-
for (let l = 0; l < t.length - 1; l++) {
|
|
3877
|
-
const c = t[l];
|
|
3878
|
-
let d = n?.[c];
|
|
3879
|
-
d == null ? (d = typeof t[l + 1] == "number" ? [] : {}, n[c] = d) : typeof d != "object" && (d = typeof t[l + 1] == "number" ? [] : {}, n[c] = d), i = n, r = c, n = d;
|
|
3880
|
-
}
|
|
3881
|
-
const o = t[t.length - 1];
|
|
3882
|
-
if (n == null || typeof n != "object") {
|
|
3883
|
-
const l = typeof o == "number" ? [] : {};
|
|
3884
|
-
if (i)
|
|
3885
|
-
i[r] = l, n = l;
|
|
3886
|
-
else
|
|
3887
|
-
return;
|
|
3888
|
-
}
|
|
3889
|
-
try {
|
|
3890
|
-
n[o] = s;
|
|
3891
|
-
} catch {
|
|
3892
|
-
try {
|
|
3893
|
-
const l = Array.isArray(n) ? n.slice() : { ...n };
|
|
3894
|
-
l[o] = s, i && (i[r] = l);
|
|
3895
|
-
} catch {
|
|
3896
|
-
}
|
|
3897
|
-
}
|
|
3898
|
-
}, Vt = (e) => e.map(String).join("."), uc = (e) => e.replace(/[^a-zA-Z0-9_-]/g, "_"), ze = (e) => `schema_${uc(Vt(e) || "root")}`, it = (e) => Vt(e), j = (e, ...t) => {
|
|
3899
|
-
const s = new Set(...t);
|
|
3900
|
-
s.size && e.setAttribute("part", Array.from(s).join(" "));
|
|
3901
|
-
}, fc = [
|
|
3902
|
-
"wrapper",
|
|
3903
|
-
"form",
|
|
3904
|
-
"field",
|
|
3905
|
-
"field-string",
|
|
3906
|
-
"field-number",
|
|
3907
|
-
"field-boolean",
|
|
3908
|
-
"field-date",
|
|
3909
|
-
"field-const",
|
|
3910
|
-
"field-array",
|
|
3911
|
-
"field-object",
|
|
3912
|
-
"field-tuple",
|
|
3913
|
-
"field-union",
|
|
3914
|
-
"field-dict",
|
|
3915
|
-
"field-label",
|
|
3916
|
-
"field-helper",
|
|
3917
|
-
"field-group",
|
|
3918
|
-
"field-row",
|
|
3919
|
-
"field-actions",
|
|
3920
|
-
"field-button",
|
|
3921
|
-
"field-button-primary",
|
|
3922
|
-
"field-button-danger",
|
|
3923
|
-
"field-button-secondary",
|
|
3924
|
-
"field-toolbar",
|
|
3925
|
-
"field-badge",
|
|
3926
|
-
"field-input",
|
|
3927
|
-
"field-input-text",
|
|
3928
|
-
"field-input-number",
|
|
3929
|
-
"field-input-date",
|
|
3930
|
-
"field-input-select",
|
|
3931
|
-
"field-input-textarea",
|
|
3932
|
-
"field-input-checkbox",
|
|
3933
|
-
"field-const-value",
|
|
3934
|
-
"collection-row",
|
|
3935
|
-
"field-checkbox",
|
|
3936
|
-
"field-checkbox-text",
|
|
3937
|
-
"field-toolbar-select"
|
|
3938
|
-
].join(" ");
|
|
3939
|
-
function bn(e, t) {
|
|
3940
|
-
if (t == null) return t;
|
|
3941
|
-
switch (e) {
|
|
3942
|
-
case "number":
|
|
3943
|
-
case "natural":
|
|
3944
|
-
case "percent": {
|
|
3945
|
-
if (t === "") return;
|
|
3946
|
-
const s = Number(t);
|
|
3947
|
-
return Number.isNaN(s) ? void 0 : s;
|
|
3948
|
-
}
|
|
3949
|
-
case "boolean":
|
|
3950
|
-
return !!t;
|
|
3951
|
-
case "date": {
|
|
3952
|
-
if (!t) return;
|
|
3953
|
-
const s = new Date(t);
|
|
3954
|
-
return Number.isNaN(+s) ? void 0 : s;
|
|
3955
|
-
}
|
|
3956
|
-
case "const":
|
|
3957
|
-
case "string":
|
|
3958
|
-
default:
|
|
3959
|
-
return t;
|
|
3960
|
-
}
|
|
3961
|
-
}
|
|
3962
|
-
function oi(e) {
|
|
3963
|
-
return typeof e == "function" && !!e?.type;
|
|
3964
|
-
}
|
|
3965
|
-
function vr(e) {
|
|
3966
|
-
if (!e) throw new Error("schema is required");
|
|
3967
|
-
if (oi(e)) return e;
|
|
3968
|
-
try {
|
|
3969
|
-
const t = Schema.from(e);
|
|
3970
|
-
if (oi(t)) return t;
|
|
3971
|
-
} catch {
|
|
3972
|
-
}
|
|
3973
|
-
if (e?.type) {
|
|
3974
|
-
const t = e.type;
|
|
3975
|
-
if (Schema[t]) return Schema[t](e.inner ?? e.list ?? e.dict);
|
|
3976
|
-
}
|
|
3977
|
-
throw new Error("无法从传入对象生成 Schemastery 实例,请传入 schema 或 schema.toJSON() 的结果。");
|
|
3978
|
-
}
|
|
3979
|
-
function ve(e) {
|
|
3980
|
-
return e?.meta ?? {};
|
|
3981
|
-
}
|
|
3982
|
-
function dc(e) {
|
|
3983
|
-
return e.length > 0 && e.every((t) => t?.type === "const");
|
|
3984
|
-
}
|
|
3985
|
-
function bt(e) {
|
|
3986
|
-
if (!e) return;
|
|
3987
|
-
const t = e, s = t.meta || {};
|
|
3988
|
-
if (Object.prototype.hasOwnProperty.call(s, "default")) return s.default;
|
|
3989
|
-
const n = t.type;
|
|
3990
|
-
try {
|
|
3991
|
-
const i = e();
|
|
3992
|
-
if (i !== void 0) return i;
|
|
3993
|
-
} catch {
|
|
3994
|
-
}
|
|
3995
|
-
switch (n) {
|
|
3996
|
-
case "string":
|
|
3997
|
-
return "";
|
|
3998
|
-
case "number":
|
|
3999
|
-
case "natural":
|
|
4000
|
-
case "percent":
|
|
4001
|
-
return 0;
|
|
4002
|
-
case "boolean":
|
|
4003
|
-
return !1;
|
|
4004
|
-
case "array":
|
|
4005
|
-
return [];
|
|
4006
|
-
case "tuple":
|
|
4007
|
-
return [];
|
|
4008
|
-
case "object":
|
|
4009
|
-
return {};
|
|
4010
|
-
case "dict":
|
|
4011
|
-
return {};
|
|
4012
|
-
case "union": {
|
|
4013
|
-
const i = t.list || [];
|
|
4014
|
-
return i.length ? bt(i[0]) : void 0;
|
|
4015
|
-
}
|
|
4016
|
-
case "const":
|
|
4017
|
-
return t.value;
|
|
4018
|
-
case "date":
|
|
4019
|
-
return;
|
|
4020
|
-
default:
|
|
4021
|
-
return;
|
|
4022
|
-
}
|
|
4023
|
-
}
|
|
4024
|
-
class Me extends HTMLElement {
|
|
4025
|
-
constructor() {
|
|
4026
|
-
super(), this._path = [], this._i18n = br, this.$root = this.attachShadow({ mode: "open" });
|
|
4027
|
-
const t = document.createElement("style");
|
|
4028
|
-
t.textContent = ge, this.$root.appendChild(t);
|
|
4029
|
-
}
|
|
4030
|
-
/** 初始化公共容器(带类名与 data-path) */
|
|
4031
|
-
makeFieldContainer(t, s) {
|
|
4032
|
-
const n = document.createElement("div");
|
|
4033
|
-
if (n.className = `field schema-form-item schema-type-${t}`, n.setAttribute("data-path", Vt(this._path)), j(n, "field", `field-${t}`), this._label) {
|
|
4034
|
-
const i = document.createElement("label");
|
|
4035
|
-
i.className = "label", i.textContent = this._label, j(i, "field-label"), n.appendChild(i);
|
|
4036
|
-
}
|
|
4037
|
-
if (s) {
|
|
4038
|
-
const i = document.createElement("div");
|
|
4039
|
-
i.className = "helper", i.textContent = s, j(i, "field-helper"), n.appendChild(i);
|
|
4040
|
-
}
|
|
4041
|
-
return n;
|
|
4042
|
-
}
|
|
4043
|
-
/** 外部设置 schema/path/label/value */
|
|
4044
|
-
set schema(t) {
|
|
4045
|
-
this._schema = vr(t), this.render();
|
|
4046
|
-
}
|
|
4047
|
-
get schema() {
|
|
4048
|
-
return this._schema;
|
|
4049
|
-
}
|
|
4050
|
-
set path(t) {
|
|
4051
|
-
this._path = t ?? [], this.render();
|
|
4052
|
-
}
|
|
4053
|
-
get path() {
|
|
4054
|
-
return this._path;
|
|
4055
|
-
}
|
|
4056
|
-
set label(t) {
|
|
4057
|
-
this._label = t, this.render();
|
|
4058
|
-
}
|
|
4059
|
-
get label() {
|
|
4060
|
-
return this._label;
|
|
4061
|
-
}
|
|
4062
|
-
set i18n(t) {
|
|
4063
|
-
t && (this._i18n = { ...this._i18n, ...t }), this.render();
|
|
4064
|
-
}
|
|
4065
|
-
get i18n() {
|
|
4066
|
-
return this._i18n;
|
|
4067
|
-
}
|
|
4068
|
-
setValue(t) {
|
|
4069
|
-
this._value = t, this.render();
|
|
4070
|
-
}
|
|
4071
|
-
getValue() {
|
|
4072
|
-
return this._value;
|
|
4073
|
-
}
|
|
4074
|
-
/** 触发变更事件(冒泡) */
|
|
4075
|
-
emitChange(t) {
|
|
4076
|
-
this._value = t, this.dispatchEvent(
|
|
4077
|
-
new CustomEvent("change", {
|
|
4078
|
-
bubbles: !0,
|
|
4079
|
-
composed: !0,
|
|
4080
|
-
detail: { path: this._path, value: t }
|
|
4081
|
-
})
|
|
4082
|
-
);
|
|
4083
|
-
}
|
|
4084
|
-
}
|
|
4085
|
-
class yr extends Me {
|
|
4086
|
-
render() {
|
|
4087
|
-
if (this.$input && this.$root.contains(this.$input)) {
|
|
4088
|
-
const r = this._value ?? "";
|
|
4089
|
-
this.$input.value !== r && document.activeElement !== this.$input && (this.$input.value = r);
|
|
4090
|
-
return;
|
|
4091
|
-
}
|
|
4092
|
-
this.$root.innerHTML = `<style>${ge}</style>`;
|
|
4093
|
-
const t = ve(this._schema), s = this.makeFieldContainer("string", t.description), n = document.createElement("input");
|
|
4094
|
-
this.$input = n, n.className = "input", j(n, "field-input", "field-input-text"), n.type = "text", n.name = it(this._path), n.id = ze(this._path), t?.pattern?.source && (n.pattern = t.pattern.source), t?.max != null && (n.maxLength = t.max), n.value = this._value ?? "", n.oninput = () => this.emitChange(bn("string", n.value));
|
|
4095
|
-
const i = s.querySelector("label.label");
|
|
4096
|
-
i && (i.htmlFor = n.id), s.appendChild(n), this.$root.appendChild(s);
|
|
4097
|
-
}
|
|
4098
|
-
}
|
|
4099
|
-
X("schema-form-string", yr);
|
|
4100
|
-
class xr extends Me {
|
|
4101
|
-
render() {
|
|
4102
|
-
if (this.$input && this.$root.contains(this.$input)) {
|
|
4103
|
-
const o = this._value ?? "";
|
|
4104
|
-
this.$input.value !== String(o) && document.activeElement !== this.$input && (this.$input.value = o);
|
|
4105
|
-
return;
|
|
4106
|
-
}
|
|
4107
|
-
this.$root.innerHTML = `<style>${ge}</style>`;
|
|
4108
|
-
const t = this._schema?.type ?? "number", s = ve(this._schema), n = this.makeFieldContainer("number", s.description), i = document.createElement("input");
|
|
4109
|
-
this.$input = i, i.className = "input", j(i, "field-input", "field-input-number"), i.name = it(this._path), i.id = ze(this._path), s?.min != null && (i.min = String(s.min)), s?.max != null && (i.max = String(s.max)), s?.step != null && (i.step = String(s.step)), t === "percent" && !i.step && (i.step = "0.01"), i.value = this._value ?? "", i.oninput = () => this.emitChange(bn(t, i.value));
|
|
4110
|
-
const r = n.querySelector("label.label");
|
|
4111
|
-
r && (r.htmlFor = i.id), s.role === "slider" ? i.type = "range" : i.type = "number", n.appendChild(i), this.$root.appendChild(n);
|
|
4112
|
-
}
|
|
4113
|
-
}
|
|
4114
|
-
X("schema-form-number", xr);
|
|
4115
|
-
class Cr extends Me {
|
|
4116
|
-
render() {
|
|
4117
|
-
this.$root.innerHTML = `<style>${ge}</style>`;
|
|
4118
|
-
const t = ve(this._schema), s = this.makeFieldContainer("boolean", t.description), n = document.createElement("label");
|
|
4119
|
-
n.className = "checkbox", j(n, "field-checkbox");
|
|
4120
|
-
const i = document.createElement("input");
|
|
4121
|
-
i.type = "checkbox", i.checked = !!this._value, i.name = it(this._path), i.id = ze(this._path), j(i, "field-input", "field-input-checkbox");
|
|
4122
|
-
const r = document.createElement("span");
|
|
4123
|
-
r.textContent = t.description ?? this._label ?? "", j(r, "field-checkbox-text"), i.onchange = () => this.emitChange(i.checked);
|
|
4124
|
-
const o = s.querySelector("label.label");
|
|
4125
|
-
o && (o.htmlFor = i.id), n.append(i, r), s.appendChild(n), this.$root.appendChild(s);
|
|
4126
|
-
}
|
|
4127
|
-
}
|
|
4128
|
-
X("schema-form-boolean", Cr);
|
|
4129
|
-
function cs(e) {
|
|
4130
|
-
return String(e).padStart(2, "0");
|
|
4131
|
-
}
|
|
4132
|
-
function Tt(e) {
|
|
4133
|
-
return `${e.getFullYear()}-${cs(e.getMonth() + 1)}-${cs(e.getDate())}`;
|
|
4134
|
-
}
|
|
4135
|
-
function Js(e) {
|
|
4136
|
-
return `${cs(e.getHours())}:${cs(e.getMinutes())}`;
|
|
4137
|
-
}
|
|
4138
|
-
function Gt(e) {
|
|
4139
|
-
return `${Tt(e)}T${Js(e)}`;
|
|
4140
|
-
}
|
|
4141
|
-
class Er extends Me {
|
|
4142
|
-
render() {
|
|
4143
|
-
if (this.$input && this.$root.contains(this.$input)) {
|
|
4144
|
-
const o = ve(this._schema).role || "date";
|
|
4145
|
-
if (document.activeElement !== this.$input)
|
|
4146
|
-
if (this._value instanceof Date)
|
|
4147
|
-
o === "date" ? this.$input.value = Tt(this._value) : o === "time" ? this.$input.value = Js(this._value) : o === "datetime" && (this.$input.value = Gt(this._value));
|
|
4148
|
-
else if (typeof this._value == "string" && o !== "time") {
|
|
4149
|
-
const l = new Date(this._value);
|
|
4150
|
-
isNaN(+l) || (o === "date" ? this.$input.value = Tt(l) : o === "datetime" && (this.$input.value = Gt(l)));
|
|
4151
|
-
} else this._value || (this.$input.value = "");
|
|
4152
|
-
return;
|
|
4153
|
-
}
|
|
4154
|
-
this.$root.innerHTML = `<style>${ge}</style>`;
|
|
4155
|
-
const t = ve(this._schema), s = this.makeFieldContainer("date", t.description), n = document.createElement("input");
|
|
4156
|
-
this.$input = n, n.className = "input", j(n, "field-input", "field-input-date");
|
|
4157
|
-
const i = t.role || "date";
|
|
4158
|
-
if (i === "datetime" ? n.type = "datetime-local" : i === "time" ? n.type = "time" : n.type = "date", n.name = it(this._path), n.id = ze(this._path), this._value instanceof Date)
|
|
4159
|
-
i === "date" ? n.value = Tt(this._value) : i === "time" ? n.value = Js(this._value) : i === "datetime" && (n.value = Gt(this._value));
|
|
4160
|
-
else if (typeof this._value == "string" && i !== "time") {
|
|
4161
|
-
const o = new Date(this._value);
|
|
4162
|
-
isNaN(+o) || (i === "date" ? n.value = Tt(o) : i === "datetime" && (n.value = Gt(o)));
|
|
4163
|
-
}
|
|
4164
|
-
n.oninput = () => {
|
|
4165
|
-
t.role;
|
|
4166
|
-
let o;
|
|
4167
|
-
if (!n.value)
|
|
4168
|
-
o = void 0;
|
|
4169
|
-
else {
|
|
4170
|
-
const l = new Date(n.value);
|
|
4171
|
-
o = Number.isNaN(+l) ? void 0 : l;
|
|
4172
|
-
}
|
|
4173
|
-
this.emitChange(o);
|
|
4174
|
-
};
|
|
4175
|
-
const r = s.querySelector("label.label");
|
|
4176
|
-
r && (r.htmlFor = n.id), s.appendChild(n), this.$root.appendChild(s);
|
|
4177
|
-
}
|
|
4178
|
-
}
|
|
4179
|
-
X("schema-form-date", Er);
|
|
4180
|
-
class vn extends Me {
|
|
4181
|
-
render() {
|
|
4182
|
-
this.$root.innerHTML = `<style>${ge}</style>`;
|
|
4183
|
-
const t = ve(this._schema), s = this._schema.value;
|
|
4184
|
-
if (t.role === "raw-html") {
|
|
4185
|
-
if (s instanceof Node) {
|
|
4186
|
-
this.$root.appendChild(s);
|
|
4187
|
-
return;
|
|
4188
|
-
}
|
|
4189
|
-
const o = document.createElement("div");
|
|
4190
|
-
o.innerHTML = String(s), j(o, "field-const-value"), this.$root.appendChild(o);
|
|
4191
|
-
return;
|
|
4192
|
-
}
|
|
4193
|
-
const n = this.makeFieldContainer("const", t.description), i = document.createElement("section");
|
|
4194
|
-
i.className = "const content", i.textContent = String(s), i.id = ze(this._path), j(i, "field-const-value");
|
|
4195
|
-
const r = n.querySelector("label.label");
|
|
4196
|
-
r && (r.htmlFor = i.id), n.appendChild(i), this.$root.appendChild(n);
|
|
4197
|
-
}
|
|
4198
|
-
}
|
|
4199
|
-
X("schema-form-const", vn);
|
|
4200
|
-
function hc(e) {
|
|
4201
|
-
switch (e.type) {
|
|
4202
|
-
case "string":
|
|
4203
|
-
return "schema-form-string";
|
|
4204
|
-
case "number":
|
|
4205
|
-
case "natural":
|
|
4206
|
-
case "percent":
|
|
4207
|
-
return "schema-form-number";
|
|
4208
|
-
case "boolean":
|
|
4209
|
-
return "schema-form-boolean";
|
|
4210
|
-
case "date":
|
|
4211
|
-
return "schema-form-date";
|
|
4212
|
-
case "const":
|
|
4213
|
-
return "schema-form-const";
|
|
4214
|
-
case "array":
|
|
4215
|
-
return "schema-form-array";
|
|
4216
|
-
case "object":
|
|
4217
|
-
return "schema-form-object";
|
|
4218
|
-
case "tuple":
|
|
4219
|
-
return "schema-form-tuple";
|
|
4220
|
-
case "dict":
|
|
4221
|
-
return "schema-form-dict";
|
|
4222
|
-
case "union": {
|
|
4223
|
-
const t = e.list || [];
|
|
4224
|
-
return t.length === 2 && t[0]?.type === "is" && t[0]?.constructor === Date && t[1]?.type === "transform" && (t[1]?.inner?.meta?.role === "datetime" || t[1]?.inner?.meta?.role === "date" || t[1]?.inner?.meta?.role === "time") ? "schema-form-date" : "schema-form-union";
|
|
4225
|
-
}
|
|
4226
|
-
default:
|
|
4227
|
-
return "schema-form-string";
|
|
4228
|
-
}
|
|
4229
|
-
}
|
|
4230
|
-
function vt(e, t, s, n, i) {
|
|
4231
|
-
const r = hc(e), o = document.createElement(r);
|
|
4232
|
-
return o.schema = e, o.path = t, o.label = n, i && (o.i18n = i), o.setValue?.(s), o.setAttribute("exportparts", fc), o;
|
|
4233
|
-
}
|
|
4234
|
-
class Sr extends Me {
|
|
4235
|
-
render() {
|
|
4236
|
-
this.$root.innerHTML = `<style>${ge}</style>`;
|
|
4237
|
-
const t = ve(this._schema), s = this.makeFieldContainer("union", t.description), n = this._schema.list || [];
|
|
4238
|
-
if (dc(n)) {
|
|
4239
|
-
const i = document.createElement("select");
|
|
4240
|
-
i.className = "input", j(i, "field-input", "field-input-select"), i.name = it(this._path), i.id = ze(this._path), n.forEach((o) => {
|
|
4241
|
-
const l = document.createElement("option");
|
|
4242
|
-
l.value = String(o.value), l.textContent = String(o.meta?.description || o.value || o.type), this._value === o.value && (l.selected = !0), i.appendChild(l);
|
|
4243
|
-
}), i.onchange = () => this.emitChange(bn("string", i.value));
|
|
4244
|
-
const r = s.querySelector("label.label");
|
|
4245
|
-
r && (r.htmlFor = i.id), s.appendChild(i);
|
|
4246
|
-
} else {
|
|
4247
|
-
const i = document.createElement("div");
|
|
4248
|
-
i.className = "toolbar", j(i, "field-toolbar");
|
|
4249
|
-
const r = document.createElement("select");
|
|
4250
|
-
r.className = "input", j(r, "field-input", "field-input-select", "field-toolbar-select"), r.name = it(this._path) + ".__type", r.id = ze(this._path) + "__type";
|
|
4251
|
-
let o = 0;
|
|
4252
|
-
n.forEach((u, h) => {
|
|
4253
|
-
const p = document.createElement("option");
|
|
4254
|
-
p.value = String(h), p.textContent = String(u.meta?.description || u.value || u.type), r.appendChild(p);
|
|
4255
|
-
}), r.onchange = () => {
|
|
4256
|
-
o = Number(r.value);
|
|
4257
|
-
const u = n[o], h = bt(u);
|
|
4258
|
-
this.emitChange(h), d();
|
|
4259
|
-
};
|
|
4260
|
-
const l = s.querySelector("label.label");
|
|
4261
|
-
l && (l.htmlFor = r.id), i.appendChild(r), s.appendChild(i);
|
|
4262
|
-
const c = document.createElement("div");
|
|
4263
|
-
c.className = "group", j(c, "field-group");
|
|
4264
|
-
const d = () => {
|
|
4265
|
-
c.innerHTML = "";
|
|
4266
|
-
const u = n[o], h = vt(u, this._path, this._value, this._label);
|
|
4267
|
-
h instanceof vn || (h.addEventListener("change", (p) => {
|
|
4268
|
-
p.stopPropagation(), this.emitChange(p.detail.value);
|
|
4269
|
-
}), c.appendChild(h));
|
|
4270
|
-
};
|
|
4271
|
-
d(), s.appendChild(c);
|
|
4272
|
-
}
|
|
4273
|
-
this.$root.appendChild(s);
|
|
4274
|
-
}
|
|
4275
|
-
}
|
|
4276
|
-
X("schema-form-union", Sr);
|
|
4277
|
-
class wr extends Me {
|
|
4278
|
-
render() {
|
|
4279
|
-
this.$root.innerHTML = `<style>${ge}</style>`;
|
|
4280
|
-
const t = ve(this._schema), s = this.makeFieldContainer("tuple", t.description), n = document.createElement("div");
|
|
4281
|
-
n.className = "group", j(n, "field-group");
|
|
4282
|
-
const i = Array.isArray(this._value) ? this._value : [];
|
|
4283
|
-
(this._schema.list || []).forEach((r, o) => {
|
|
4284
|
-
const l = vt(
|
|
4285
|
-
r,
|
|
4286
|
-
[...this._path, o],
|
|
4287
|
-
i[o],
|
|
4288
|
-
`${this._label ?? ""}[${o}]`
|
|
4289
|
-
);
|
|
4290
|
-
l.addEventListener("change", (c) => {
|
|
4291
|
-
c.stopPropagation();
|
|
4292
|
-
const d = Array.isArray(this._value) ? this._value.slice() : [];
|
|
4293
|
-
d[o] = c.detail.value, this.emitChange(d);
|
|
4294
|
-
}), n.appendChild(l);
|
|
4295
|
-
}), s.appendChild(n), this.$root.appendChild(s);
|
|
4296
|
-
}
|
|
4297
|
-
}
|
|
4298
|
-
X("schema-form-tuple", wr);
|
|
4299
|
-
class Tr extends Me {
|
|
4300
|
-
render() {
|
|
4301
|
-
this.$root.innerHTML = `<style>${ge}</style>`;
|
|
4302
|
-
const t = ve(this._schema), s = this.makeFieldContainer("object", t.description), n = document.createElement("div");
|
|
4303
|
-
n.className = "group", j(n, "field-group");
|
|
4304
|
-
const i = this._schema.dict || {};
|
|
4305
|
-
Object.keys(i).forEach((r) => {
|
|
4306
|
-
if (i[r]?.meta?.hidden) return;
|
|
4307
|
-
const o = (this._value ?? {})[r], l = vt(i[r], [...this._path, r], o, r);
|
|
4308
|
-
l.addEventListener("change", (c) => {
|
|
4309
|
-
c.stopPropagation();
|
|
4310
|
-
const d = { ...this._value ?? {} };
|
|
4311
|
-
d[r] = c.detail.value, this.emitChange(d);
|
|
4312
|
-
}), n.appendChild(l);
|
|
4313
|
-
}), s.appendChild(n), this.$root.appendChild(s);
|
|
4314
|
-
}
|
|
4315
|
-
}
|
|
4316
|
-
X("schema-form-object", Tr);
|
|
4317
|
-
class ys extends Me {
|
|
4318
|
-
constructor() {
|
|
4319
|
-
super(...arguments), this._itemIds = [];
|
|
4320
|
-
}
|
|
4321
|
-
static {
|
|
4322
|
-
this._idCounter = 0;
|
|
4323
|
-
}
|
|
4324
|
-
generateItemId() {
|
|
4325
|
-
try {
|
|
4326
|
-
if (typeof crypto < "u" && typeof crypto.randomUUID == "function")
|
|
4327
|
-
return crypto.randomUUID();
|
|
4328
|
-
} catch {
|
|
4329
|
-
}
|
|
4330
|
-
return "i" + ys._idCounter++;
|
|
4331
|
-
}
|
|
4332
|
-
ensureItemIds(t) {
|
|
4333
|
-
for (; this._itemIds.length < t; ) this._itemIds.push(this.generateItemId());
|
|
4334
|
-
this._itemIds.length > t && (this._itemIds.length = t);
|
|
4335
|
-
}
|
|
4336
|
-
// 采集当前行位置信息(用于 FLIP)
|
|
4337
|
-
capturePositions(t) {
|
|
4338
|
-
const s = {};
|
|
4339
|
-
return t.querySelectorAll(".row").forEach((n) => {
|
|
4340
|
-
const i = n.dataset.uid;
|
|
4341
|
-
i && (s[i] = n.getBoundingClientRect());
|
|
4342
|
-
}), s;
|
|
4343
|
-
}
|
|
4344
|
-
playFLIP(t, s) {
|
|
4345
|
-
Array.from(t.querySelectorAll(".row")).forEach((n) => {
|
|
4346
|
-
const i = n.dataset.uid;
|
|
4347
|
-
if (!i) return;
|
|
4348
|
-
const r = s[i];
|
|
4349
|
-
if (!r) return;
|
|
4350
|
-
const o = n.getBoundingClientRect(), l = r.left - o.left, c = r.top - o.top;
|
|
4351
|
-
(l || c) && (n.style.transition = "none", n.style.transform = `translate(${l}px, ${c}px)`, requestAnimationFrame(() => {
|
|
4352
|
-
n.style.transition = "transform .25s ease", n.style.transform = "";
|
|
4353
|
-
}));
|
|
4354
|
-
});
|
|
4355
|
-
}
|
|
4356
|
-
render() {
|
|
4357
|
-
this.$root.innerHTML = `<style>${ge}</style>`;
|
|
4358
|
-
const t = ve(this._schema), s = this.makeFieldContainer("array", t.description), n = document.createElement("div");
|
|
4359
|
-
n.className = "group", j(n, "field-group");
|
|
4360
|
-
const i = this._schema.inner, r = () => Array.isArray(this._value) ? this._value : [];
|
|
4361
|
-
this.ensureItemIds(r().length);
|
|
4362
|
-
const o = (d, u) => {
|
|
4363
|
-
n.innerHTML = "", r().forEach((h, p) => {
|
|
4364
|
-
const b = [...this._path, p], x = document.createElement("div");
|
|
4365
|
-
x.className = "row schema-collection-row", j(x, "field-row", "collection-row");
|
|
4366
|
-
const $ = this._itemIds[p];
|
|
4367
|
-
x.dataset.uid = $, x.setAttribute("data-path", Vt(b));
|
|
4368
|
-
const H = vt(
|
|
4369
|
-
i,
|
|
4370
|
-
b,
|
|
4371
|
-
h,
|
|
4372
|
-
`${this._label ?? ""}[${p}]`
|
|
4373
|
-
);
|
|
4374
|
-
H.addEventListener("change", (F) => {
|
|
4375
|
-
F.stopPropagation();
|
|
4376
|
-
const V = r().slice();
|
|
4377
|
-
V[p] = F.detail.value, this._value = V, this.emitChange(V);
|
|
4378
|
-
});
|
|
4379
|
-
const I = document.createElement("div");
|
|
4380
|
-
I.className = "actions", j(I, "field-actions");
|
|
4381
|
-
const R = document.createElement("button");
|
|
4382
|
-
R.type = "button", R.className = "btn", j(R, "field-button", "field-button-secondary"), R.textContent = this._i18n.arrayMoveUp ?? "↑", R.onclick = () => {
|
|
4383
|
-
if (p <= 0) return;
|
|
4384
|
-
const F = this.capturePositions(n), V = r().slice();
|
|
4385
|
-
[V[p - 1], V[p]] = [V[p], V[p - 1]], [this._itemIds[p - 1], this._itemIds[p]] = [
|
|
4386
|
-
this._itemIds[p],
|
|
4387
|
-
this._itemIds[p - 1]
|
|
4388
|
-
], this._value = V, o(F), this.emitChange(V);
|
|
4389
|
-
};
|
|
4390
|
-
const D = document.createElement("button");
|
|
4391
|
-
D.type = "button", D.className = "btn", j(D, "field-button", "field-button-secondary"), D.textContent = this._i18n.arrayMoveDown ?? "↓", D.onclick = () => {
|
|
4392
|
-
const F = r();
|
|
4393
|
-
if (p >= F.length - 1) return;
|
|
4394
|
-
const V = this.capturePositions(n), Q = F.slice();
|
|
4395
|
-
[Q[p + 1], Q[p]] = [Q[p], Q[p + 1]], [this._itemIds[p + 1], this._itemIds[p]] = [
|
|
4396
|
-
this._itemIds[p],
|
|
4397
|
-
this._itemIds[p + 1]
|
|
4398
|
-
], this._value = Q, o(V), this.emitChange(Q);
|
|
4399
|
-
};
|
|
4400
|
-
const T = document.createElement("button");
|
|
4401
|
-
T.type = "button", T.className = "btn danger", j(T, "field-button", "field-button-danger"), T.textContent = this._i18n.arrayRemove ?? "×", T.onclick = () => {
|
|
4402
|
-
x.classList.add("leaving");
|
|
4403
|
-
const F = 250;
|
|
4404
|
-
let V = !1;
|
|
4405
|
-
const Q = () => {
|
|
4406
|
-
if (V) return;
|
|
4407
|
-
V = !0, clearTimeout(ye);
|
|
4408
|
-
const Ye = r().filter((rt, ot) => ot !== p);
|
|
4409
|
-
this._itemIds.splice(p, 1);
|
|
4410
|
-
const Oe = this.capturePositions(n);
|
|
4411
|
-
this._value = Ye, o(Oe), this.emitChange(Ye);
|
|
4412
|
-
};
|
|
4413
|
-
x.addEventListener("transitionend", Q, { once: !0 });
|
|
4414
|
-
const ye = setTimeout(Q, F + 80);
|
|
4415
|
-
}, I.append(R, D, T), x.appendChild(H), x.appendChild(I), n.appendChild(x), u && u === $ && (x.classList.add("enter"), requestAnimationFrame(() => {
|
|
4416
|
-
x.classList.add("enter-active");
|
|
4417
|
-
}), requestAnimationFrame(() => {
|
|
4418
|
-
x.classList.remove("enter");
|
|
4419
|
-
}));
|
|
4420
|
-
}), d && this.playFLIP(n, d);
|
|
4421
|
-
};
|
|
4422
|
-
o();
|
|
4423
|
-
const l = document.createElement("button");
|
|
4424
|
-
l.type = "button", l.className = "btn primary", j(l, "field-button", "field-button-primary"), l.textContent = this._i18n.arrayAdd ?? "+", l.onclick = () => {
|
|
4425
|
-
const d = this.capturePositions(n), u = r().slice(), h = bt(i);
|
|
4426
|
-
u.push(h);
|
|
4427
|
-
const p = this.generateItemId();
|
|
4428
|
-
this._itemIds.push(p), this._value = u, o(d, p), this.emitChange(u);
|
|
4429
|
-
};
|
|
4430
|
-
const c = document.createElement("div");
|
|
4431
|
-
c.className = "actions", j(c, "field-actions"), c.appendChild(l), s.appendChild(n), s.appendChild(c), this.$root.appendChild(s);
|
|
4432
|
-
}
|
|
4433
|
-
}
|
|
4434
|
-
X("schema-form-array", ys);
|
|
4435
|
-
class $r extends Me {
|
|
4436
|
-
render() {
|
|
4437
|
-
this.$root.innerHTML = `<style>${ge}</style>`;
|
|
4438
|
-
const t = ve(this._schema), s = this.makeFieldContainer("dict", t.description), n = document.createElement("div");
|
|
4439
|
-
n.className = "group", j(n, "field-group");
|
|
4440
|
-
const i = this._schema.inner, r = this._value ?? {}, o = (p) => `d_${p}`, l = () => {
|
|
4441
|
-
const p = {};
|
|
4442
|
-
return n.querySelectorAll(".kv").forEach((b) => {
|
|
4443
|
-
const x = b.dataset.uid;
|
|
4444
|
-
x && (p[x] = b.getBoundingClientRect());
|
|
4445
|
-
}), p;
|
|
4446
|
-
}, c = (p) => {
|
|
4447
|
-
n.querySelectorAll(".kv").forEach((b) => {
|
|
4448
|
-
const x = b.dataset.uid;
|
|
4449
|
-
if (!x) return;
|
|
4450
|
-
const $ = p[x];
|
|
4451
|
-
if (!$) return;
|
|
4452
|
-
const H = b.getBoundingClientRect(), I = $.left - H.left, R = $.top - H.top;
|
|
4453
|
-
(I || R) && (b.style.transition = "none", b.style.transform = `translate(${I}px, ${R}px)`, requestAnimationFrame(() => {
|
|
4454
|
-
b.style.transition = "transform .25s ease", b.style.transform = "";
|
|
4455
|
-
}));
|
|
4456
|
-
});
|
|
4457
|
-
}, d = (p, b) => {
|
|
4458
|
-
n.innerHTML = "", Object.keys(r).forEach((x) => {
|
|
4459
|
-
const $ = [...this._path, x], H = document.createElement("div");
|
|
4460
|
-
H.className = "kv schema-collection-row", j(H, "field-row", "collection-row"), H.dataset.uid = o(x), H.setAttribute("data-path", Vt($));
|
|
4461
|
-
const I = document.createElement("input");
|
|
4462
|
-
I.className = "input", j(I, "field-input", "field-input-text"), I.value = x, I.name = it($) + ".__key", I.id = ze($) + "__key";
|
|
4463
|
-
const R = vt(i, $, r[x], `${this._label ?? ""}[${x}]`), D = document.createElement("button");
|
|
4464
|
-
D.type = "button", D.className = "btn danger", j(D, "field-button", "field-button-danger"), D.textContent = this._i18n.dictRemove ?? "×", D.onclick = () => {
|
|
4465
|
-
const T = l();
|
|
4466
|
-
delete r[x];
|
|
4467
|
-
const F = { ...this._value ?? {} };
|
|
4468
|
-
delete F[x], this._value = F, d(T), this.emitChange(F);
|
|
4469
|
-
}, I.onchange = () => {
|
|
4470
|
-
const T = I.value.trim();
|
|
4471
|
-
if (!T || T === x || r[T] !== void 0) return;
|
|
4472
|
-
const F = l();
|
|
4473
|
-
r[T] = r[x], delete r[x];
|
|
4474
|
-
const V = { ...this._value ?? {} };
|
|
4475
|
-
V[T] = V[x], delete V[x], this._value = V, d(F), this.emitChange(V);
|
|
4476
|
-
}, R.addEventListener("change", (T) => {
|
|
4477
|
-
T.stopPropagation();
|
|
4478
|
-
const F = { ...this._value ?? {} };
|
|
4479
|
-
F[x] = T.detail.value, this._value = F, this.emitChange(F);
|
|
4480
|
-
}), H.append(I, R, D), n.appendChild(H), b === x && (H.classList.add("enter"), requestAnimationFrame(() => H.classList.add("enter-active")), requestAnimationFrame(() => H.classList.remove("enter")));
|
|
4481
|
-
}), p && c(p);
|
|
4482
|
-
};
|
|
4483
|
-
d();
|
|
4484
|
-
const u = document.createElement("button");
|
|
4485
|
-
u.type = "button", u.className = "btn primary", j(u, "field-button", "field-button-primary"), u.textContent = this._i18n.dictAdd ?? "+", u.onclick = () => {
|
|
4486
|
-
let p = Object.keys(r).length + 1, b = `k${p}`;
|
|
4487
|
-
for (; r[b] !== void 0; ) b = `k${++p}`;
|
|
4488
|
-
const x = l();
|
|
4489
|
-
r[b] = bt(i);
|
|
4490
|
-
const $ = { ...this._value ?? {}, [b]: r[b] };
|
|
4491
|
-
this._value = $, d(x, b), this.emitChange($);
|
|
4492
|
-
};
|
|
4493
|
-
const h = document.createElement("div");
|
|
4494
|
-
h.className = "actions", j(h, "field-actions"), h.appendChild(u), s.appendChild(n), s.appendChild(h), this.$root.appendChild(s);
|
|
4495
|
-
}
|
|
4496
|
-
}
|
|
4497
|
-
X("schema-form-dict", $r);
|
|
4498
|
-
class Ar extends HTMLElement {
|
|
4499
|
-
constructor() {
|
|
4500
|
-
super(), this._i18n = { ...br }, this.$root = this.attachShadow({ mode: "open" });
|
|
4501
|
-
const t = document.createElement("style");
|
|
4502
|
-
t.textContent = ge, this.$root.appendChild(t);
|
|
4503
|
-
const s = document.createElement("div");
|
|
4504
|
-
s.className = "wrapper", j(s, "wrapper");
|
|
4505
|
-
const n = document.createElement("form");
|
|
4506
|
-
n.className = "form", j(n, "form"), s.appendChild(n), this.$root.appendChild(s), this.addEventListener("change", (i) => {
|
|
4507
|
-
if (!i?.detail) return;
|
|
4508
|
-
const { path: r, value: o } = i.detail;
|
|
4509
|
-
Array.isArray(r) && r.length === 0 ? this._state = o : ac(this._state ?? (this._state = {}), r, o), this.dispatchEvent(
|
|
4510
|
-
new CustomEvent("form-change", { detail: { path: r, value: o, state: this._state } })
|
|
4511
|
-
);
|
|
4512
|
-
});
|
|
4513
|
-
}
|
|
4514
|
-
// --- 对外 API ---
|
|
4515
|
-
set schema(t) {
|
|
4516
|
-
this._schema = vr(t);
|
|
4517
|
-
try {
|
|
4518
|
-
this._state = this._schema(null, { autofix: !0 });
|
|
4519
|
-
} catch {
|
|
4520
|
-
this._state = bt(this._schema);
|
|
4521
|
-
}
|
|
4522
|
-
this.render();
|
|
4523
|
-
}
|
|
4524
|
-
get schema() {
|
|
4525
|
-
return this._schema;
|
|
4526
|
-
}
|
|
4527
|
-
set schemaJSON(t) {
|
|
4528
|
-
this.schema = t;
|
|
4529
|
-
}
|
|
4530
|
-
get schemaJSON() {
|
|
4531
|
-
return this._schema?.toJSON?.();
|
|
4532
|
-
}
|
|
4533
|
-
setData(t, s = { validate: !0, autofix: !0 }) {
|
|
4534
|
-
if (!this._schema) throw new Error("请先设置 schema");
|
|
4535
|
-
const n = s.validate ? this._schema(t ?? null, { autofix: s.autofix }) : t;
|
|
4536
|
-
this._state = n, this.render();
|
|
4537
|
-
}
|
|
4538
|
-
getData(t = { validate: !0, autofix: !0 }) {
|
|
4539
|
-
if (!this._schema) throw new Error("请先设置 schema");
|
|
4540
|
-
const s = this._state;
|
|
4541
|
-
return t.validate ? this._schema(s ?? null, { autofix: t.autofix }) : s;
|
|
4542
|
-
}
|
|
4543
|
-
reset() {
|
|
4544
|
-
try {
|
|
4545
|
-
this._state = this._schema(null, { autofix: !0 });
|
|
4546
|
-
} catch {
|
|
4547
|
-
this._state = bt(this._schema);
|
|
4548
|
-
}
|
|
4549
|
-
this.render();
|
|
4550
|
-
}
|
|
4551
|
-
refresh() {
|
|
4552
|
-
this.render();
|
|
4553
|
-
}
|
|
4554
|
-
// i18n 相关
|
|
4555
|
-
set i18n(t) {
|
|
4556
|
-
this._i18n = { ...this._i18n, ...t }, this.render();
|
|
4557
|
-
}
|
|
4558
|
-
get i18n() {
|
|
4559
|
-
return this._i18n;
|
|
4560
|
-
}
|
|
4561
|
-
render() {
|
|
4562
|
-
if (!this._schema) return;
|
|
4563
|
-
const t = this.$root.querySelector("form");
|
|
4564
|
-
t.innerHTML = "";
|
|
4565
|
-
const s = vt(
|
|
4566
|
-
this._schema,
|
|
4567
|
-
[],
|
|
4568
|
-
this._state,
|
|
4569
|
-
this._i18n.rootLabel,
|
|
4570
|
-
this._i18n
|
|
4571
|
-
);
|
|
4572
|
-
t.appendChild(s);
|
|
4573
|
-
}
|
|
4574
|
-
}
|
|
4575
|
-
X("schema-form", Ar);
|
|
4576
|
-
function pc() {
|
|
4577
|
-
X("schema-form", Ar), X("schema-form-string", yr), X("schema-form-number", xr), X("schema-form-boolean", Cr), X("schema-form-date", Er), X("schema-form-const", vn), X("schema-form-union", Sr), X("schema-form-tuple", wr), X("schema-form-object", Tr), X("schema-form-array", ys), X("schema-form-dict", $r);
|
|
4578
|
-
}
|
|
4579
|
-
const mc = /* @__PURE__ */ ji({
|
|
4580
|
-
__name: "SchemasteryFormVue",
|
|
4581
|
-
props: /* @__PURE__ */ Dn({
|
|
4582
|
-
schema: {},
|
|
4583
|
-
value: {},
|
|
4584
|
-
validateOnChange: { type: Boolean, default: !1 }
|
|
4585
|
-
}, {
|
|
4586
|
-
schema: { required: !0 },
|
|
4587
|
-
schemaModifiers: {},
|
|
4588
|
-
value: { required: !1, default: {} },
|
|
4589
|
-
valueModifiers: {}
|
|
4590
|
-
}),
|
|
4591
|
-
emits: /* @__PURE__ */ Dn(["change"], ["update:schema", "update:value"]),
|
|
4592
|
-
setup(e, { expose: t, emit: s }) {
|
|
4593
|
-
const n = Vn(e, "schema"), i = Vn(e, "value"), r = s, o = Ro("elRef");
|
|
4594
|
-
let l = !1, c = !1;
|
|
4595
|
-
const d = (u) => {
|
|
4596
|
-
if (c)
|
|
4597
|
-
return;
|
|
4598
|
-
const h = o.value, p = e.validateOnChange ? h.getData({ validate: !0 }) : u.detail.state;
|
|
4599
|
-
l = !0, i.value = p, Xt(() => {
|
|
4600
|
-
l = !1;
|
|
4601
|
-
}), r("change", u.detail);
|
|
4602
|
-
};
|
|
4603
|
-
return Vi(() => {
|
|
4604
|
-
pc();
|
|
4605
|
-
}), fn(() => {
|
|
4606
|
-
const u = o.value;
|
|
4607
|
-
n.value && (u.schema = n.value), i.value !== void 0 && u.setData(i.value, { validate: !1, autofix: !0 }), u.addEventListener("form-change", d);
|
|
4608
|
-
}), Bi(() => {
|
|
4609
|
-
o.value?.removeEventListener("form-change", d);
|
|
4610
|
-
}), gt(
|
|
4611
|
-
() => n,
|
|
4612
|
-
(u) => {
|
|
4613
|
-
l || o.value && u && o.value.schema !== u.value && (c = !0, o.value.schema = u.value, Xt(() => {
|
|
4614
|
-
c = !1;
|
|
4615
|
-
}));
|
|
4616
|
-
},
|
|
4617
|
-
{ deep: !0, immediate: !0 }
|
|
4618
|
-
), gt(
|
|
4619
|
-
() => i,
|
|
4620
|
-
(u) => {
|
|
4621
|
-
if (l || !o.value || u.value === void 0) return;
|
|
4622
|
-
const h = o.value.getData({ validate: !1 });
|
|
4623
|
-
JSON.stringify(h) !== JSON.stringify(u.value) && (c = !0, o.value.setData(u.value, { validate: !1 }), Xt(() => {
|
|
4624
|
-
c = !1;
|
|
4625
|
-
}));
|
|
4626
|
-
},
|
|
4627
|
-
{ deep: !0, immediate: !0 }
|
|
4628
|
-
), t({
|
|
4629
|
-
/** 手动设置数据并可选择是否触发 v-model:data */
|
|
4630
|
-
setData(u, h) {
|
|
4631
|
-
const p = o.value;
|
|
4632
|
-
p.setData(u, { validate: !!h?.validate }), h?.emit && (i.value = p.getData({ validate: !!h?.validate }));
|
|
4633
|
-
},
|
|
4634
|
-
/** 获取数据 */
|
|
4635
|
-
getData(u) {
|
|
4636
|
-
return o.value.getData(u);
|
|
4637
|
-
},
|
|
4638
|
-
/** 设置 schema,并同步到 v-model:schema */
|
|
4639
|
-
setSchema(u, h = !0) {
|
|
4640
|
-
o.value.schema = u, h && (n.value = u);
|
|
4641
|
-
},
|
|
4642
|
-
refresh() {
|
|
4643
|
-
o.value.refresh();
|
|
4644
|
-
},
|
|
4645
|
-
reset() {
|
|
4646
|
-
o.value.reset();
|
|
4647
|
-
},
|
|
4648
|
-
/** 原生元素 */
|
|
4649
|
-
el: o
|
|
4650
|
-
}), (u, h) => (Ve(), at("schema-form", hr({
|
|
4651
|
-
ref_key: "elRef",
|
|
4652
|
-
ref: o
|
|
4653
|
-
}, u.$attrs), null, 16));
|
|
4654
|
-
}
|
|
4655
|
-
});
|
|
4656
|
-
function st(e, t = /* @__PURE__ */ new WeakMap()) {
|
|
4657
|
-
if (te(e))
|
|
4658
|
-
return st(e.value, t);
|
|
4659
|
-
if (e === null || typeof e != "object")
|
|
4660
|
-
return e;
|
|
4661
|
-
if (t.has(e))
|
|
4662
|
-
return t.get(e);
|
|
4663
|
-
if (e instanceof Date)
|
|
4664
|
-
return new Date(e);
|
|
4665
|
-
if (e instanceof RegExp)
|
|
4666
|
-
return new RegExp(e);
|
|
4667
|
-
if (e instanceof Map) {
|
|
4668
|
-
const i = /* @__PURE__ */ new Map();
|
|
4669
|
-
return t.set(e, i), Array.from(e.entries()).forEach(([r, o]) => {
|
|
4670
|
-
i.set(r, st(o, t));
|
|
4671
|
-
}), i;
|
|
4672
|
-
}
|
|
4673
|
-
if (e instanceof Set) {
|
|
4674
|
-
const i = /* @__PURE__ */ new Set();
|
|
4675
|
-
return t.set(e, i), Array.from(e).forEach((r) => {
|
|
4676
|
-
i.add(st(r, t));
|
|
4677
|
-
}), i;
|
|
4678
|
-
}
|
|
4679
|
-
if (Array.isArray(e)) {
|
|
4680
|
-
const i = [];
|
|
4681
|
-
t.set(e, i);
|
|
4682
|
-
for (const r of e)
|
|
4683
|
-
i.push(st(r, t));
|
|
4684
|
-
return i;
|
|
4685
|
-
}
|
|
4686
|
-
const s = U(e), n = {};
|
|
4687
|
-
t.set(e, n);
|
|
4688
|
-
for (const i of Object.keys(s))
|
|
4689
|
-
n[i] = st(s[i], t);
|
|
4690
|
-
for (const i of Object.getOwnPropertySymbols(s))
|
|
4691
|
-
n[i] = st(s[i], t);
|
|
4692
|
-
return n;
|
|
4693
|
-
}
|
|
4694
|
-
const gc = { class: "preferences-ui-app" }, _c = { class: "tabbar" }, bc = { class: "tabbar-tabs" }, vc = ["onClick", "data-value"], yc = { class: "tabbar-content" }, xc = { key: 0 }, Cc = { style: { "max-height": "20em", overflow: "auto" } }, Ec = /* @__PURE__ */ ji({
|
|
4695
|
-
__name: "PreferencesForm",
|
|
4696
|
-
setup(e, { expose: t }) {
|
|
4697
|
-
const s = lc(), n = !1, i = On([]), r = On(""), o = Yt([]), l = gr(() => o.value.map((u) => u.schema)), c = Yt({}), d = Yt({});
|
|
4698
|
-
return t({
|
|
4699
|
-
getValue() {
|
|
4700
|
-
return st(d);
|
|
4701
|
-
}
|
|
4702
|
-
}), gt(
|
|
4703
|
-
r,
|
|
4704
|
-
(u) => {
|
|
4705
|
-
u && (c.value = d.value, o.value = s.preferences.getConfigRegistries(u));
|
|
4706
|
-
},
|
|
4707
|
-
{ immediate: !0 }
|
|
4708
|
-
), fn(async () => {
|
|
4709
|
-
s.inject(["preferences"], async (u) => {
|
|
4710
|
-
const h = await u.preferences.getAll();
|
|
4711
|
-
c.value = d.value = h, i.value = u.preferences.getConfigCategories(), r.value = i.value[0].name;
|
|
4712
|
-
});
|
|
4713
|
-
}), (u, h) => (Ve(), at("div", gc, [
|
|
4714
|
-
ut("div", _c, [
|
|
4715
|
-
ut("div", bc, [
|
|
4716
|
-
(Ve(!0), at(_e, null, Rn(i.value, (p) => (Ve(), at("a", {
|
|
4717
|
-
class: hs(["tab", { active: r.value === p.name }]),
|
|
4718
|
-
key: p.name,
|
|
4719
|
-
onClick: (b) => r.value = p.name,
|
|
4720
|
-
"data-value": p.name
|
|
4721
|
-
}, Fs(p.label), 11, vc))), 128))
|
|
4722
|
-
]),
|
|
4723
|
-
ut("div", yc, [
|
|
4724
|
-
(Ve(!0), at(_e, null, Rn(l.value, (p, b) => (Ve(), ur(Us(mc), {
|
|
4725
|
-
key: `${r.value}-${b}`,
|
|
4726
|
-
schema: p,
|
|
4727
|
-
value: c.value,
|
|
4728
|
-
"onUpdate:value": h[0] || (h[0] = (x) => d.value = x),
|
|
4729
|
-
"validate-on-change": !1,
|
|
4730
|
-
i18n: { rootLabel: "" }
|
|
4731
|
-
}, null, 8, ["schema", "value"]))), 128))
|
|
4732
|
-
])
|
|
4733
|
-
]),
|
|
4734
|
-
Us(n) ? (Ve(), at("details", xc, [
|
|
4735
|
-
ut("pre", Cc, Fs(d.value), 1)
|
|
4736
|
-
])) : wl("", !0)
|
|
4737
|
-
]));
|
|
4738
|
-
}
|
|
4739
|
-
}), Sc = (e, t) => {
|
|
4740
|
-
const s = e.__vccOpts || e;
|
|
4741
|
-
for (const [n, i] of t)
|
|
4742
|
-
s[n] = i;
|
|
4743
|
-
return s;
|
|
4744
|
-
}, wc = /* @__PURE__ */ Sc(Ec, [["__scopeId", "data-v-59cb1172"]]);
|
|
4745
|
-
var Tc = Object.create, yn = Object.defineProperty, $c = Object.getOwnPropertyDescriptor, Pr = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), Ir = (e) => {
|
|
4746
|
-
throw TypeError(e);
|
|
4747
|
-
}, Ac = (e, t, s) => t in e ? yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, Pc = (e, t) => yn(e, "name", { value: t, configurable: !0 }), Ic = (e) => [, , , Tc(e?.[Pr("metadata")] ?? null)], Mc = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Mr = (e) => e !== void 0 && typeof e != "function" ? Ir("Function expected") : e, Oc = (e, t, s, n, i) => ({ kind: Mc[e], name: t, metadata: n, addInitializer: (r) => s._ ? Ir("Already initialized") : i.push(Mr(r || null)) }), Nc = (e, t) => Ac(t, Pr("metadata"), e[3]), Fc = (e, t, s, n) => {
|
|
4748
|
-
for (var i = 0, r = e[t >> 1], o = r && r.length; i < o; i++) r[i].call(s);
|
|
4749
|
-
return n;
|
|
4750
|
-
}, Rc = (e, t, s, n, i, r) => {
|
|
4751
|
-
var o, l, c, d = t & 7, u = !1, h = 0, p = e[h] || (e[h] = []), b = d && (i = i.prototype, d < 5 && (d > 3 || !u) && $c(i, s));
|
|
4752
|
-
Pc(i, s);
|
|
4753
|
-
for (var x = n.length - 1; x >= 0; x--)
|
|
4754
|
-
c = Oc(d, s, l = {}, e[3], p), o = (0, n[x])(i, c), l._ = 1, Mr(o) && (i = o);
|
|
4755
|
-
return Nc(e, i), b && yn(i, s, b), u ? d ^ 4 ? r : b : i;
|
|
4756
|
-
}, Or, xn, Nr;
|
|
4757
|
-
Or = [Hr(["preferences", "modal"])];
|
|
4758
|
-
class Gs extends (Nr = jr) {
|
|
4759
|
-
constructor(t) {
|
|
4760
|
-
super(t, {}, "preferences-ui"), this.ctx = t, this._latestModal = null, t.set("preferencesUI", this), t.set("prefsModal", this), t.preferences.defineCategory({
|
|
4761
|
-
name: "about",
|
|
4762
|
-
label: "About",
|
|
4763
|
-
description: "About InPageEdit",
|
|
4764
|
-
index: 99
|
|
4765
|
-
}), t.preferences.registerCustomConfig(
|
|
4766
|
-
"about",
|
|
4767
|
-
An.object({
|
|
4768
|
-
about: An.const(
|
|
4769
|
-
/* @__PURE__ */ J("div", { className: "prose", children: [
|
|
4770
|
-
/* @__PURE__ */ J("h2", { children: "✏️ InPageEdit NEXT" }),
|
|
4771
|
-
/* @__PURE__ */ J("i", { children: [
|
|
4772
|
-
"v",
|
|
4773
|
-
this.ctx.version
|
|
4774
|
-
] }),
|
|
4775
|
-
/* @__PURE__ */ J("h2", { children: "Portals" }),
|
|
4776
|
-
/* @__PURE__ */ J("div", { style: "display: grid; gap: 0.5em; text-align: center", children: [
|
|
4777
|
-
/* @__PURE__ */ J(
|
|
4778
|
-
"a",
|
|
4779
|
-
{
|
|
4780
|
-
className: "btn primary",
|
|
4781
|
-
style: { display: "inline-block", textDecoration: "none" },
|
|
4782
|
-
href: this.ctx.Endpoints.HOME_URL,
|
|
4783
|
-
target: "_blank",
|
|
4784
|
-
children: "Official Website & Help Center"
|
|
4785
|
-
}
|
|
4786
|
-
),
|
|
4787
|
-
/* @__PURE__ */ J(
|
|
4788
|
-
"a",
|
|
4789
|
-
{
|
|
4790
|
-
className: "btn primary",
|
|
4791
|
-
style: { display: "inline-block", textDecoration: "none" },
|
|
4792
|
-
href: `${this.ctx.Endpoints.UPDATE_LOGS_URL}#${this.ctx.version.split("-")[0]}`,
|
|
4793
|
-
target: "_blank",
|
|
4794
|
-
children: "Update Logs"
|
|
4795
|
-
}
|
|
4796
|
-
)
|
|
4797
|
-
] }),
|
|
4798
|
-
/* @__PURE__ */ J("h2", { children: "Join us" }),
|
|
4799
|
-
/* @__PURE__ */ J("ul", { children: [
|
|
4800
|
-
/* @__PURE__ */ J("li", { children: [
|
|
4801
|
-
/* @__PURE__ */ J("strong", { children: "GitHub" }),
|
|
4802
|
-
":",
|
|
4803
|
-
" ",
|
|
4804
|
-
/* @__PURE__ */ J("a", { href: this.ctx.Endpoints.GITHUB_URL, target: "_blank", children: "inpageedit/inpageedit-next" })
|
|
4805
|
-
] }),
|
|
4806
|
-
/* @__PURE__ */ J("li", { children: [
|
|
4807
|
-
/* @__PURE__ */ J("strong", { children: "QQ Group" }),
|
|
4808
|
-
": 1026023666"
|
|
4809
|
-
] })
|
|
4810
|
-
] }),
|
|
4811
|
-
/* @__PURE__ */ J("hr", {}),
|
|
4812
|
-
/* @__PURE__ */ J("p", { children: "🚀 Modular, Extensible Supercharged Plugin for MediaWiki." }),
|
|
4813
|
-
/* @__PURE__ */ J("p", { children: "InPageEdit-NEXT Copyright © 2025-present dragon-fish" })
|
|
4814
|
-
] })
|
|
4815
|
-
).role("raw-html")
|
|
4816
|
-
}).description(""),
|
|
4817
|
-
"about"
|
|
4818
|
-
), t.inject(["toolbox"], (s) => {
|
|
4819
|
-
s.toolbox.addButton({
|
|
4820
|
-
id: "preferences",
|
|
4821
|
-
icon: /* @__PURE__ */ J(
|
|
4822
|
-
"svg",
|
|
4823
|
-
{
|
|
4824
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4825
|
-
width: "24",
|
|
4826
|
-
height: "24",
|
|
4827
|
-
viewBox: "0 0 24 24",
|
|
4828
|
-
fill: "currentColor",
|
|
4829
|
-
class: "icon icon-tabler icons-tabler-filled icon-tabler-settings",
|
|
4830
|
-
children: [
|
|
4831
|
-
/* @__PURE__ */ J("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
4832
|
-
/* @__PURE__ */ J("path", { d: "M14.647 4.081a.724 .724 0 0 0 1.08 .448c2.439 -1.485 5.23 1.305 3.745 3.744a.724 .724 0 0 0 .447 1.08c2.775 .673 2.775 4.62 0 5.294a.724 .724 0 0 0 -.448 1.08c1.485 2.439 -1.305 5.23 -3.744 3.745a.724 .724 0 0 0 -1.08 .447c-.673 2.775 -4.62 2.775 -5.294 0a.724 .724 0 0 0 -1.08 -.448c-2.439 1.485 -5.23 -1.305 -3.745 -3.744a.724 .724 0 0 0 -.447 -1.08c-2.775 -.673 -2.775 -4.62 0 -5.294a.724 .724 0 0 0 .448 -1.08c-1.485 -2.439 1.305 -5.23 3.744 -3.745a.722 .722 0 0 0 1.08 -.447c.673 -2.775 4.62 -2.775 5.294 0zm-2.647 4.919a3 3 0 1 0 0 6a3 3 0 0 0 0 -6z" })
|
|
4833
|
-
]
|
|
4834
|
-
}
|
|
4835
|
-
),
|
|
4836
|
-
tooltip: "Configure Preferences",
|
|
4837
|
-
group: "group2",
|
|
4838
|
-
index: 1 / 0,
|
|
4839
|
-
onClick: () => this.showModal()
|
|
4840
|
-
}), this.addDisposeHandler((n) => {
|
|
4841
|
-
n.toolbox.removeButton("preferences");
|
|
4842
|
-
});
|
|
4843
|
-
});
|
|
4844
|
-
}
|
|
4845
|
-
async start() {
|
|
4846
|
-
import("./PluginPrefSync-COidewzp.js").then(({ PluginPrefSync: t }) => {
|
|
4847
|
-
this.ctx.plugin(t);
|
|
4848
|
-
}).catch(this.ctx.logger.warn);
|
|
4849
|
-
}
|
|
4850
|
-
stop() {
|
|
4851
|
-
}
|
|
4852
|
-
showModal() {
|
|
4853
|
-
if (this._latestModal && !this._latestModal.isDestroyed)
|
|
4854
|
-
return this._latestModal;
|
|
4855
|
-
const t = this.ctx.modal.show({
|
|
4856
|
-
className: "ipe-preference compact-buttons",
|
|
4857
|
-
sizeClass: "small",
|
|
4858
|
-
outSideClose: !1,
|
|
4859
|
-
center: !0,
|
|
4860
|
-
title: `InPageEdit Preferences (${this.ctx.version})`,
|
|
4861
|
-
content: /* @__PURE__ */ J(Lr, { children: /* @__PURE__ */ J(Dr, {}) })
|
|
4862
|
-
});
|
|
4863
|
-
t.get$window().classList.add("dialog");
|
|
4864
|
-
const s = /* @__PURE__ */ J("div", { id: "ipe-preferences-app", style: { minHeight: "65vh" } });
|
|
4865
|
-
t.setContent(s);
|
|
4866
|
-
const n = this.createForm(), i = n.mount(s);
|
|
4867
|
-
return t.setButtons([
|
|
4868
|
-
{
|
|
4869
|
-
label: "Cancel",
|
|
4870
|
-
className: "is-danger is-ghost",
|
|
4871
|
-
method: () => {
|
|
4872
|
-
t.close();
|
|
4873
|
-
}
|
|
4874
|
-
},
|
|
4875
|
-
{
|
|
4876
|
-
label: "Save",
|
|
4877
|
-
className: "is-primary is-ghost",
|
|
4878
|
-
method: () => {
|
|
4879
|
-
const r = i.getValue();
|
|
4880
|
-
this.logger.info("saving preferences", r);
|
|
4881
|
-
try {
|
|
4882
|
-
Object.entries(r).forEach(([o, l]) => {
|
|
4883
|
-
this.ctx.preferences.set(o, l).catch(console.error);
|
|
4884
|
-
});
|
|
4885
|
-
} catch (o) {
|
|
4886
|
-
this.logger.error("failed to save preferences", o);
|
|
4887
|
-
}
|
|
4888
|
-
t.close(), this.ctx.modal.notify("success", {
|
|
4889
|
-
title: "Preferences Saved",
|
|
4890
|
-
content: /* @__PURE__ */ J("p", { children: "Some settings may take effect after reloading the page." })
|
|
4891
|
-
});
|
|
4892
|
-
}
|
|
4893
|
-
}
|
|
4894
|
-
]), this._latestModal = t, t.on(t.Event.Close, () => {
|
|
4895
|
-
this.logger.debug("preferences modal closed, vue app unmounting"), n.unmount(), this._latestModal = null;
|
|
4896
|
-
}), t;
|
|
4897
|
-
}
|
|
4898
|
-
closeModal() {
|
|
4899
|
-
this._latestModal?.close();
|
|
4900
|
-
}
|
|
4901
|
-
getExistingModal() {
|
|
4902
|
-
return this._latestModal;
|
|
4903
|
-
}
|
|
4904
|
-
createForm() {
|
|
4905
|
-
return cc(this.ctx, wc);
|
|
4906
|
-
}
|
|
4907
|
-
}
|
|
4908
|
-
xn = Ic(Nr);
|
|
4909
|
-
Gs = Rc(xn, 0, "PluginPreferencesUI", Or, Gs);
|
|
4910
|
-
Fc(xn, 1, Gs);
|
|
4911
|
-
export {
|
|
4912
|
-
Gs as PluginPreferencesUI
|
|
4913
|
-
};
|
|
4914
|
-
//# sourceMappingURL=index-Cx4qgCJK.js.map
|