@inpageedit/core 0.4.1 → 0.5.1

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