@ghentcdh/ui 0.0.2-18

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 (55) hide show
  1. package/README.md +85 -0
  2. package/button/btn-badge.vue.d.ts +38 -0
  3. package/button/btn.vue.d.ts +44 -0
  4. package/button/const.d.ts +9 -0
  5. package/button/index.d.ts +2 -0
  6. package/card/card.vue.d.ts +20 -0
  7. package/const/colors.d.ts +8 -0
  8. package/const/index.d.ts +2 -0
  9. package/const/size.d.ts +3 -0
  10. package/directives/click-outside.directive.d.ts +6 -0
  11. package/form/AutoComplete.vue.d.ts +33 -0
  12. package/form/MultiSelect.vue.d.ts +31 -0
  13. package/form/SelectComponent.vue.d.ts +32 -0
  14. package/form/core/ControlWrapper.vue.d.ts +30 -0
  15. package/form/core/emits.d.ts +5 -0
  16. package/form/core/properties.d.ts +32 -0
  17. package/form/core/styles.d.ts +7 -0
  18. package/form/core/utils/style.d.ts +2 -0
  19. package/form/index.d.ts +7 -0
  20. package/icons/icon-list.d.ts +18 -0
  21. package/icons/icon.vue.d.ts +8 -0
  22. package/icons/index.d.ts +2 -0
  23. package/index.css +1 -0
  24. package/index.d.ts +13 -0
  25. package/index.js +40 -0
  26. package/index.mjs +3797 -0
  27. package/menu/dropdown.vue.d.ts +6 -0
  28. package/menu/index.d.ts +4 -0
  29. package/menu/menu-item.vue.d.ts +5 -0
  30. package/menu/menu.type.d.ts +15 -0
  31. package/menu/menu.vue.d.ts +7 -0
  32. package/menu/sub-menu.vue.d.ts +7 -0
  33. package/modal/confirmModal.vue.d.ts +10 -0
  34. package/modal/index.d.ts +5 -0
  35. package/modal/modal.model.d.ts +17 -0
  36. package/modal/modal.service.d.ts +15 -0
  37. package/modal/modal.vue.d.ts +39 -0
  38. package/modal/modalWrapper.vue.d.ts +2 -0
  39. package/package.json +16 -0
  40. package/shell/menu.type.d.ts +11 -0
  41. package/shell/shell.component.vue.d.ts +28 -0
  42. package/table/cells/text.cell.vue.d.ts +30 -0
  43. package/table/header/sort.header.vue.d.ts +12 -0
  44. package/table/index.d.ts +4 -0
  45. package/table/pagination-button.component.vue.d.ts +17 -0
  46. package/table/pagination.component.vue.d.ts +38 -0
  47. package/table/table.model.d.ts +10 -0
  48. package/table/table.vue.d.ts +28 -0
  49. package/toast/index.d.ts +3 -0
  50. package/toast/notification-message.d.ts +7 -0
  51. package/toast/notification-message.vue.d.ts +7 -0
  52. package/toast/notification.service.d.ts +24 -0
  53. package/toast/notifications.vue.d.ts +2 -0
  54. package/utils/hasCustomEventListener.d.ts +1 -0
  55. package/utils/index.d.ts +1 -0
package/index.mjs ADDED
@@ -0,0 +1,3797 @@
1
+ /**
2
+ * @vue/shared v3.5.18
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/
6
+ /*! #__NO_SIDE_EFFECTS__ */
7
+ // @__NO_SIDE_EFFECTS__
8
+ function Ms(e) {
9
+ const t = /* @__PURE__ */ Object.create(null);
10
+ for (const n of e.split(",")) t[n] = 1;
11
+ return (n) => n in t;
12
+ }
13
+ const oe = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, Rs = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], $e = () => {
14
+ }, Ps = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
15
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), F = Object.assign, Is = Object.prototype.hasOwnProperty, it = (e, t) => Is.call(e, t), w = Array.isArray, be = (e) => Qe(e) === "[object Map]", yt = (e) => Qe(e) === "[object Set]", En = (e) => Qe(e) === "[object Date]", k = (e) => typeof e == "function", Z = (e) => typeof e == "string", ie = (e) => typeof e == "symbol", R = (e) => e !== null && typeof e == "object", As = (e) => (R(e) || k(e)) && k(e.then) && k(e.catch), Ln = Object.prototype.toString, Qe = (e) => Ln.call(e), Bn = (e) => Qe(e).slice(8, -1), Hn = (e) => Qe(e) === "[object Object]", Qt = (e) => Z(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, wt = (e) => {
16
+ const t = /* @__PURE__ */ Object.create(null);
17
+ return (n) => t[n] || (t[n] = e(n));
18
+ }, Ls = /-(\w)/g, Ee = wt(
19
+ (e) => e.replace(Ls, (t, n) => n ? n.toUpperCase() : "")
20
+ ), Bs = /\B([A-Z])/g, Fn = wt(
21
+ (e) => e.replace(Bs, "-$1").toLowerCase()
22
+ ), ze = wt((e) => e.charAt(0).toUpperCase() + e.slice(1)), jt = wt(
23
+ (e) => e ? `on${ze(e)}` : ""
24
+ ), J = (e, t) => !Object.is(e, t), Hs = (e, ...t) => {
25
+ for (let n = 0; n < e.length; n++)
26
+ e[n](...t);
27
+ }, Fs = (e, t, n, o = !1) => {
28
+ Object.defineProperty(e, t, {
29
+ configurable: !0,
30
+ enumerable: !1,
31
+ writable: o,
32
+ value: n
33
+ });
34
+ }, Ut = (e) => {
35
+ const t = parseFloat(e);
36
+ return isNaN(t) ? e : t;
37
+ };
38
+ let Nn;
39
+ const Et = () => Nn || (Nn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
40
+ function Nt(e) {
41
+ if (w(e)) {
42
+ const t = {};
43
+ for (let n = 0; n < e.length; n++) {
44
+ const o = e[n], s = Z(o) ? zs(o) : Nt(o);
45
+ if (s)
46
+ for (const r in s)
47
+ t[r] = s[r];
48
+ }
49
+ return t;
50
+ } else if (Z(e) || R(e))
51
+ return e;
52
+ }
53
+ const js = /;(?![^(]*\))/g, Us = /:([^]+)/, Ks = /\/\*[^]*?\*\//g;
54
+ function zs(e) {
55
+ const t = {};
56
+ return e.replace(Ks, "").split(js).forEach((n) => {
57
+ if (n) {
58
+ const o = n.split(Us);
59
+ o.length > 1 && (t[o[0].trim()] = o[1].trim());
60
+ }
61
+ }), t;
62
+ }
63
+ function M(e) {
64
+ let t = "";
65
+ if (Z(e))
66
+ t = e;
67
+ else if (w(e))
68
+ for (let n = 0; n < e.length; n++) {
69
+ const o = M(e[n]);
70
+ o && (t += o + " ");
71
+ }
72
+ else if (R(e))
73
+ for (const n in e)
74
+ e[n] && (t += n + " ");
75
+ return t.trim();
76
+ }
77
+ function Xt(e) {
78
+ if (!e) return null;
79
+ let { class: t, style: n } = e;
80
+ return t && !Z(t) && (e.class = M(t)), n && (e.style = Nt(n)), e;
81
+ }
82
+ function Ws(e, t) {
83
+ if (e.length !== t.length) return !1;
84
+ let n = !0;
85
+ for (let o = 0; n && o < e.length; o++)
86
+ n = St(e[o], t[o]);
87
+ return n;
88
+ }
89
+ function St(e, t) {
90
+ if (e === t) return !0;
91
+ let n = En(e), o = En(t);
92
+ if (n || o)
93
+ return n && o ? e.getTime() === t.getTime() : !1;
94
+ if (n = ie(e), o = ie(t), n || o)
95
+ return e === t;
96
+ if (n = w(e), o = w(t), n || o)
97
+ return n && o ? Ws(e, t) : !1;
98
+ if (n = R(e), o = R(t), n || o) {
99
+ if (!n || !o)
100
+ return !1;
101
+ const s = Object.keys(e).length, r = Object.keys(t).length;
102
+ if (s !== r)
103
+ return !1;
104
+ for (const l in e) {
105
+ const i = e.hasOwnProperty(l), a = t.hasOwnProperty(l);
106
+ if (i && !a || !i && a || !St(e[l], t[l]))
107
+ return !1;
108
+ }
109
+ }
110
+ return String(e) === String(t);
111
+ }
112
+ function qs(e, t) {
113
+ return e.findIndex((n) => St(n, t));
114
+ }
115
+ const jn = (e) => !!(e && e.__v_isRef === !0), S = (e) => Z(e) ? e : e == null ? "" : w(e) || R(e) && (e.toString === Ln || !k(e.toString)) ? jn(e) ? S(e.value) : JSON.stringify(e, Un, 2) : String(e), Un = (e, t) => jn(t) ? Un(e, t.value) : be(t) ? {
116
+ [`Map(${t.size})`]: [...t.entries()].reduce(
117
+ (n, [o, s], r) => (n[Mt(o, r) + " =>"] = s, n),
118
+ {}
119
+ )
120
+ } : yt(t) ? {
121
+ [`Set(${t.size})`]: [...t.values()].map((n) => Mt(n))
122
+ } : ie(t) ? Mt(t) : R(t) && !w(t) && !Hn(t) ? String(t) : t, Mt = (e, t = "") => {
123
+ var n;
124
+ return (
125
+ // Symbol.description in es2019+ so we need to cast here to pass
126
+ // the lib: es2016 check
127
+ ie(e) ? `Symbol(${(n = e.description) != null ? n : t})` : e
128
+ );
129
+ };
130
+ /**
131
+ * @vue/reactivity v3.5.18
132
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
133
+ * @license MIT
134
+ **/
135
+ function de(e, ...t) {
136
+ console.warn(`[Vue warn] ${e}`, ...t);
137
+ }
138
+ let N;
139
+ const Rt = /* @__PURE__ */ new WeakSet();
140
+ class Js {
141
+ constructor(t) {
142
+ 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;
143
+ }
144
+ pause() {
145
+ this.flags |= 64;
146
+ }
147
+ resume() {
148
+ this.flags & 64 && (this.flags &= -65, Rt.has(this) && (Rt.delete(this), this.trigger()));
149
+ }
150
+ /**
151
+ * @internal
152
+ */
153
+ notify() {
154
+ this.flags & 2 && !(this.flags & 32) || this.flags & 8 || zn(this);
155
+ }
156
+ run() {
157
+ if (!(this.flags & 1))
158
+ return this.fn();
159
+ this.flags |= 2, Sn(this), Wn(this);
160
+ const t = N, n = se;
161
+ N = this, se = !0;
162
+ try {
163
+ return this.fn();
164
+ } finally {
165
+ process.env.NODE_ENV !== "production" && N !== this && de(
166
+ "Active effect was not restored correctly - this is likely a Vue internal bug."
167
+ ), qn(this), N = t, se = n, this.flags &= -3;
168
+ }
169
+ }
170
+ stop() {
171
+ if (this.flags & 1) {
172
+ for (let t = this.deps; t; t = t.nextDep)
173
+ nn(t);
174
+ this.deps = this.depsTail = void 0, Sn(this), this.onStop && this.onStop(), this.flags &= -2;
175
+ }
176
+ }
177
+ trigger() {
178
+ this.flags & 64 ? Rt.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
179
+ }
180
+ /**
181
+ * @internal
182
+ */
183
+ runIfDirty() {
184
+ Kt(this) && this.run();
185
+ }
186
+ get dirty() {
187
+ return Kt(this);
188
+ }
189
+ }
190
+ let Kn = 0, Ue, Ke;
191
+ function zn(e, t = !1) {
192
+ if (e.flags |= 8, t) {
193
+ e.next = Ke, Ke = e;
194
+ return;
195
+ }
196
+ e.next = Ue, Ue = e;
197
+ }
198
+ function en() {
199
+ Kn++;
200
+ }
201
+ function tn() {
202
+ if (--Kn > 0)
203
+ return;
204
+ if (Ke) {
205
+ let t = Ke;
206
+ for (Ke = void 0; t; ) {
207
+ const n = t.next;
208
+ t.next = void 0, t.flags &= -9, t = n;
209
+ }
210
+ }
211
+ let e;
212
+ for (; Ue; ) {
213
+ let t = Ue;
214
+ for (Ue = void 0; t; ) {
215
+ const n = t.next;
216
+ if (t.next = void 0, t.flags &= -9, t.flags & 1)
217
+ try {
218
+ t.trigger();
219
+ } catch (o) {
220
+ e || (e = o);
221
+ }
222
+ t = n;
223
+ }
224
+ }
225
+ if (e) throw e;
226
+ }
227
+ function Wn(e) {
228
+ for (let t = e.deps; t; t = t.nextDep)
229
+ t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
230
+ }
231
+ function qn(e) {
232
+ let t, n = e.depsTail, o = n;
233
+ for (; o; ) {
234
+ const s = o.prevDep;
235
+ o.version === -1 ? (o === n && (n = s), nn(o), Ys(o)) : t = o, o.dep.activeLink = o.prevActiveLink, o.prevActiveLink = void 0, o = s;
236
+ }
237
+ e.deps = t, e.depsTail = n;
238
+ }
239
+ function Kt(e) {
240
+ for (let t = e.deps; t; t = t.nextDep)
241
+ if (t.dep.version !== t.version || t.dep.computed && (Jn(t.dep.computed) || t.dep.version !== t.version))
242
+ return !0;
243
+ return !!e._dirty;
244
+ }
245
+ function Jn(e) {
246
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === We) || (e.globalVersion = We, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !Kt(e))))
247
+ return;
248
+ e.flags |= 2;
249
+ const t = e.dep, n = N, o = se;
250
+ N = e, se = !0;
251
+ try {
252
+ Wn(e);
253
+ const s = e.fn(e._value);
254
+ (t.version === 0 || J(s, e._value)) && (e.flags |= 128, e._value = s, t.version++);
255
+ } catch (s) {
256
+ throw t.version++, s;
257
+ } finally {
258
+ N = n, se = o, qn(e), e.flags &= -3;
259
+ }
260
+ }
261
+ function nn(e, t = !1) {
262
+ const { dep: n, prevSub: o, nextSub: s } = e;
263
+ if (o && (o.nextSub = s, e.prevSub = void 0), s && (s.prevSub = o, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = s), n.subs === e && (n.subs = o, !o && n.computed)) {
264
+ n.computed.flags &= -5;
265
+ for (let r = n.computed.deps; r; r = r.nextDep)
266
+ nn(r, !0);
267
+ }
268
+ !t && !--n.sc && n.map && n.map.delete(n.key);
269
+ }
270
+ function Ys(e) {
271
+ const { prevDep: t, nextDep: n } = e;
272
+ t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
273
+ }
274
+ let se = !0;
275
+ const Yn = [];
276
+ function Re() {
277
+ Yn.push(se), se = !1;
278
+ }
279
+ function Pe() {
280
+ const e = Yn.pop();
281
+ se = e === void 0 ? !0 : e;
282
+ }
283
+ function Sn(e) {
284
+ const { cleanup: t } = e;
285
+ if (e.cleanup = void 0, t) {
286
+ const n = N;
287
+ N = void 0;
288
+ try {
289
+ t();
290
+ } finally {
291
+ N = n;
292
+ }
293
+ }
294
+ }
295
+ let We = 0;
296
+ class Gs {
297
+ constructor(t, n) {
298
+ this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
299
+ }
300
+ }
301
+ class Ot {
302
+ // TODO isolatedDeclarations "__v_skip"
303
+ constructor(t) {
304
+ this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
305
+ }
306
+ track(t) {
307
+ if (!N || !se || N === this.computed)
308
+ return;
309
+ let n = this.activeLink;
310
+ if (n === void 0 || n.sub !== N)
311
+ n = this.activeLink = new Gs(N, this), N.deps ? (n.prevDep = N.depsTail, N.depsTail.nextDep = n, N.depsTail = n) : N.deps = N.depsTail = n, Gn(n);
312
+ else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
313
+ const o = n.nextDep;
314
+ o.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = o), n.prevDep = N.depsTail, n.nextDep = void 0, N.depsTail.nextDep = n, N.depsTail = n, N.deps === n && (N.deps = o);
315
+ }
316
+ return process.env.NODE_ENV !== "production" && N.onTrack && N.onTrack(
317
+ F(
318
+ {
319
+ effect: N
320
+ },
321
+ t
322
+ )
323
+ ), n;
324
+ }
325
+ trigger(t) {
326
+ this.version++, We++, this.notify(t);
327
+ }
328
+ notify(t) {
329
+ en();
330
+ try {
331
+ if (process.env.NODE_ENV !== "production")
332
+ for (let n = this.subsHead; n; n = n.nextSub)
333
+ n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
334
+ F(
335
+ {
336
+ effect: n.sub
337
+ },
338
+ t
339
+ )
340
+ );
341
+ for (let n = this.subs; n; n = n.prevSub)
342
+ n.sub.notify() && n.sub.dep.notify();
343
+ } finally {
344
+ tn();
345
+ }
346
+ }
347
+ }
348
+ function Gn(e) {
349
+ if (e.dep.sc++, e.sub.flags & 4) {
350
+ const t = e.dep.computed;
351
+ if (t && !e.dep.subs) {
352
+ t.flags |= 20;
353
+ for (let o = t.deps; o; o = o.nextDep)
354
+ Gn(o);
355
+ }
356
+ const n = e.dep.subs;
357
+ n !== e && (e.prevSub = n, n && (n.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
358
+ }
359
+ }
360
+ const zt = /* @__PURE__ */ new WeakMap(), ve = Symbol(
361
+ process.env.NODE_ENV !== "production" ? "Object iterate" : ""
362
+ ), Wt = Symbol(
363
+ process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
364
+ ), qe = Symbol(
365
+ process.env.NODE_ENV !== "production" ? "Array iterate" : ""
366
+ );
367
+ function Y(e, t, n) {
368
+ if (se && N) {
369
+ let o = zt.get(e);
370
+ o || zt.set(e, o = /* @__PURE__ */ new Map());
371
+ let s = o.get(n);
372
+ s || (o.set(n, s = new Ot()), s.map = o, s.key = n), process.env.NODE_ENV !== "production" ? s.track({
373
+ target: e,
374
+ type: t,
375
+ key: n
376
+ }) : s.track();
377
+ }
378
+ }
379
+ function he(e, t, n, o, s, r) {
380
+ const l = zt.get(e);
381
+ if (!l) {
382
+ We++;
383
+ return;
384
+ }
385
+ const i = (a) => {
386
+ a && (process.env.NODE_ENV !== "production" ? a.trigger({
387
+ target: e,
388
+ type: t,
389
+ key: n,
390
+ newValue: o,
391
+ oldValue: s,
392
+ oldTarget: r
393
+ }) : a.trigger());
394
+ };
395
+ if (en(), t === "clear")
396
+ l.forEach(i);
397
+ else {
398
+ const a = w(e), f = a && Qt(n);
399
+ if (a && n === "length") {
400
+ const u = Number(o);
401
+ l.forEach((c, p) => {
402
+ (p === "length" || p === qe || !ie(p) && p >= u) && i(c);
403
+ });
404
+ } else
405
+ switch ((n !== void 0 || l.has(void 0)) && i(l.get(n)), f && i(l.get(qe)), t) {
406
+ case "add":
407
+ a ? f && i(l.get("length")) : (i(l.get(ve)), be(e) && i(l.get(Wt)));
408
+ break;
409
+ case "delete":
410
+ a || (i(l.get(ve)), be(e) && i(l.get(Wt)));
411
+ break;
412
+ case "set":
413
+ be(e) && i(l.get(ve));
414
+ break;
415
+ }
416
+ }
417
+ tn();
418
+ }
419
+ function Oe(e) {
420
+ const t = y(e);
421
+ return t === e ? t : (Y(t, "iterate", qe), z(e) ? t : t.map(I));
422
+ }
423
+ function Ct(e) {
424
+ return Y(e = y(e), "iterate", qe), e;
425
+ }
426
+ const Zs = {
427
+ __proto__: null,
428
+ [Symbol.iterator]() {
429
+ return Pt(this, Symbol.iterator, I);
430
+ },
431
+ concat(...e) {
432
+ return Oe(this).concat(
433
+ ...e.map((t) => w(t) ? Oe(t) : t)
434
+ );
435
+ },
436
+ entries() {
437
+ return Pt(this, "entries", (e) => (e[1] = I(e[1]), e));
438
+ },
439
+ every(e, t) {
440
+ return ae(this, "every", e, t, void 0, arguments);
441
+ },
442
+ filter(e, t) {
443
+ return ae(this, "filter", e, t, (n) => n.map(I), arguments);
444
+ },
445
+ find(e, t) {
446
+ return ae(this, "find", e, t, I, arguments);
447
+ },
448
+ findIndex(e, t) {
449
+ return ae(this, "findIndex", e, t, void 0, arguments);
450
+ },
451
+ findLast(e, t) {
452
+ return ae(this, "findLast", e, t, I, arguments);
453
+ },
454
+ findLastIndex(e, t) {
455
+ return ae(this, "findLastIndex", e, t, void 0, arguments);
456
+ },
457
+ // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
458
+ forEach(e, t) {
459
+ return ae(this, "forEach", e, t, void 0, arguments);
460
+ },
461
+ includes(...e) {
462
+ return It(this, "includes", e);
463
+ },
464
+ indexOf(...e) {
465
+ return It(this, "indexOf", e);
466
+ },
467
+ join(e) {
468
+ return Oe(this).join(e);
469
+ },
470
+ // keys() iterator only reads `length`, no optimisation required
471
+ lastIndexOf(...e) {
472
+ return It(this, "lastIndexOf", e);
473
+ },
474
+ map(e, t) {
475
+ return ae(this, "map", e, t, void 0, arguments);
476
+ },
477
+ pop() {
478
+ return Le(this, "pop");
479
+ },
480
+ push(...e) {
481
+ return Le(this, "push", e);
482
+ },
483
+ reduce(e, ...t) {
484
+ return On(this, "reduce", e, t);
485
+ },
486
+ reduceRight(e, ...t) {
487
+ return On(this, "reduceRight", e, t);
488
+ },
489
+ shift() {
490
+ return Le(this, "shift");
491
+ },
492
+ // slice could use ARRAY_ITERATE but also seems to beg for range tracking
493
+ some(e, t) {
494
+ return ae(this, "some", e, t, void 0, arguments);
495
+ },
496
+ splice(...e) {
497
+ return Le(this, "splice", e);
498
+ },
499
+ toReversed() {
500
+ return Oe(this).toReversed();
501
+ },
502
+ toSorted(e) {
503
+ return Oe(this).toSorted(e);
504
+ },
505
+ toSpliced(...e) {
506
+ return Oe(this).toSpliced(...e);
507
+ },
508
+ unshift(...e) {
509
+ return Le(this, "unshift", e);
510
+ },
511
+ values() {
512
+ return Pt(this, "values", I);
513
+ }
514
+ };
515
+ function Pt(e, t, n) {
516
+ const o = Ct(e), s = o[t]();
517
+ return o !== e && !z(e) && (s._next = s.next, s.next = () => {
518
+ const r = s._next();
519
+ return r.value && (r.value = n(r.value)), r;
520
+ }), s;
521
+ }
522
+ const Qs = Array.prototype;
523
+ function ae(e, t, n, o, s, r) {
524
+ const l = Ct(e), i = l !== e && !z(e), a = l[t];
525
+ if (a !== Qs[t]) {
526
+ const c = a.apply(e, r);
527
+ return i ? I(c) : c;
528
+ }
529
+ let f = n;
530
+ l !== e && (i ? f = function(c, p) {
531
+ return n.call(this, I(c), p, e);
532
+ } : n.length > 2 && (f = function(c, p) {
533
+ return n.call(this, c, p, e);
534
+ }));
535
+ const u = a.call(l, f, o);
536
+ return i && s ? s(u) : u;
537
+ }
538
+ function On(e, t, n, o) {
539
+ const s = Ct(e);
540
+ let r = n;
541
+ return s !== e && (z(e) ? n.length > 3 && (r = function(l, i, a) {
542
+ return n.call(this, l, i, a, e);
543
+ }) : r = function(l, i, a) {
544
+ return n.call(this, l, I(i), a, e);
545
+ }), s[t](r, ...o);
546
+ }
547
+ function It(e, t, n) {
548
+ const o = y(e);
549
+ Y(o, "iterate", qe);
550
+ const s = o[t](...n);
551
+ return (s === -1 || s === !1) && lt(n[0]) ? (n[0] = y(n[0]), o[t](...n)) : s;
552
+ }
553
+ function Le(e, t, n = []) {
554
+ Re(), en();
555
+ const o = y(e)[t].apply(e, n);
556
+ return tn(), Pe(), o;
557
+ }
558
+ const Xs = /* @__PURE__ */ Ms("__proto__,__v_isRef,__isVue"), Zn = new Set(
559
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ie)
560
+ );
561
+ function eo(e) {
562
+ ie(e) || (e = String(e));
563
+ const t = y(this);
564
+ return Y(t, "has", e), t.hasOwnProperty(e);
565
+ }
566
+ class Qn {
567
+ constructor(t = !1, n = !1) {
568
+ this._isReadonly = t, this._isShallow = n;
569
+ }
570
+ get(t, n, o) {
571
+ if (n === "__v_skip") return t.__v_skip;
572
+ const s = this._isReadonly, r = this._isShallow;
573
+ if (n === "__v_isReactive")
574
+ return !s;
575
+ if (n === "__v_isReadonly")
576
+ return s;
577
+ if (n === "__v_isShallow")
578
+ return r;
579
+ if (n === "__v_raw")
580
+ return o === (s ? r ? ns : ts : r ? uo : es).get(t) || // receiver is not the reactive proxy, but has the same prototype
581
+ // this means the receiver is a user proxy of the reactive proxy
582
+ Object.getPrototypeOf(t) === Object.getPrototypeOf(o) ? t : void 0;
583
+ const l = w(t);
584
+ if (!s) {
585
+ let a;
586
+ if (l && (a = Zs[n]))
587
+ return a;
588
+ if (n === "hasOwnProperty")
589
+ return eo;
590
+ }
591
+ const i = Reflect.get(
592
+ t,
593
+ n,
594
+ // if this is a proxy wrapping a ref, return methods using the raw ref
595
+ // as receiver so that we don't have to call `toRaw` on the ref in all
596
+ // its class methods
597
+ W(t) ? t : o
598
+ );
599
+ return (ie(n) ? Zn.has(n) : Xs(n)) || (s || Y(t, "get", n), r) ? i : W(i) ? l && Qt(n) ? i : i.value : R(i) ? s ? os(i) : ss(i) : i;
600
+ }
601
+ }
602
+ class to extends Qn {
603
+ constructor(t = !1) {
604
+ super(!1, t);
605
+ }
606
+ set(t, n, o, s) {
607
+ let r = t[n];
608
+ if (!this._isShallow) {
609
+ const a = le(r);
610
+ if (!z(o) && !le(o) && (r = y(r), o = y(o)), !w(t) && W(r) && !W(o))
611
+ return a ? !1 : (r.value = o, !0);
612
+ }
613
+ const l = w(t) && Qt(n) ? Number(n) < t.length : it(t, n), i = Reflect.set(
614
+ t,
615
+ n,
616
+ o,
617
+ W(t) ? t : s
618
+ );
619
+ return t === y(s) && (l ? J(o, r) && he(t, "set", n, o, r) : he(t, "add", n, o)), i;
620
+ }
621
+ deleteProperty(t, n) {
622
+ const o = it(t, n), s = t[n], r = Reflect.deleteProperty(t, n);
623
+ return r && o && he(t, "delete", n, void 0, s), r;
624
+ }
625
+ has(t, n) {
626
+ const o = Reflect.has(t, n);
627
+ return (!ie(n) || !Zn.has(n)) && Y(t, "has", n), o;
628
+ }
629
+ ownKeys(t) {
630
+ return Y(
631
+ t,
632
+ "iterate",
633
+ w(t) ? "length" : ve
634
+ ), Reflect.ownKeys(t);
635
+ }
636
+ }
637
+ class Xn extends Qn {
638
+ constructor(t = !1) {
639
+ super(!0, t);
640
+ }
641
+ set(t, n) {
642
+ return process.env.NODE_ENV !== "production" && de(
643
+ `Set operation on key "${String(n)}" failed: target is readonly.`,
644
+ t
645
+ ), !0;
646
+ }
647
+ deleteProperty(t, n) {
648
+ return process.env.NODE_ENV !== "production" && de(
649
+ `Delete operation on key "${String(n)}" failed: target is readonly.`,
650
+ t
651
+ ), !0;
652
+ }
653
+ }
654
+ const no = /* @__PURE__ */ new to(), so = /* @__PURE__ */ new Xn(), oo = /* @__PURE__ */ new Xn(!0), qt = (e) => e, Xe = (e) => Reflect.getPrototypeOf(e);
655
+ function ro(e, t, n) {
656
+ return function(...o) {
657
+ const s = this.__v_raw, r = y(s), l = be(r), i = e === "entries" || e === Symbol.iterator && l, a = e === "keys" && l, f = s[e](...o), u = n ? qt : t ? at : I;
658
+ return !t && Y(
659
+ r,
660
+ "iterate",
661
+ a ? Wt : ve
662
+ ), {
663
+ // iterator protocol
664
+ next() {
665
+ const { value: c, done: p } = f.next();
666
+ return p ? { value: c, done: p } : {
667
+ value: i ? [u(c[0]), u(c[1])] : u(c),
668
+ done: p
669
+ };
670
+ },
671
+ // iterable protocol
672
+ [Symbol.iterator]() {
673
+ return this;
674
+ }
675
+ };
676
+ };
677
+ }
678
+ function et(e) {
679
+ return function(...t) {
680
+ if (process.env.NODE_ENV !== "production") {
681
+ const n = t[0] ? `on key "${t[0]}" ` : "";
682
+ de(
683
+ `${ze(e)} operation ${n}failed: target is readonly.`,
684
+ y(this)
685
+ );
686
+ }
687
+ return e === "delete" ? !1 : e === "clear" ? void 0 : this;
688
+ };
689
+ }
690
+ function io(e, t) {
691
+ const n = {
692
+ get(s) {
693
+ const r = this.__v_raw, l = y(r), i = y(s);
694
+ e || (J(s, i) && Y(l, "get", s), Y(l, "get", i));
695
+ const { has: a } = Xe(l), f = t ? qt : e ? at : I;
696
+ if (a.call(l, s))
697
+ return f(r.get(s));
698
+ if (a.call(l, i))
699
+ return f(r.get(i));
700
+ r !== l && r.get(s);
701
+ },
702
+ get size() {
703
+ const s = this.__v_raw;
704
+ return !e && Y(y(s), "iterate", ve), Reflect.get(s, "size", s);
705
+ },
706
+ has(s) {
707
+ const r = this.__v_raw, l = y(r), i = y(s);
708
+ return e || (J(s, i) && Y(l, "has", s), Y(l, "has", i)), s === i ? r.has(s) : r.has(s) || r.has(i);
709
+ },
710
+ forEach(s, r) {
711
+ const l = this, i = l.__v_raw, a = y(i), f = t ? qt : e ? at : I;
712
+ return !e && Y(a, "iterate", ve), i.forEach((u, c) => s.call(r, f(u), f(c), l));
713
+ }
714
+ };
715
+ return F(
716
+ n,
717
+ e ? {
718
+ add: et("add"),
719
+ set: et("set"),
720
+ delete: et("delete"),
721
+ clear: et("clear")
722
+ } : {
723
+ add(s) {
724
+ !t && !z(s) && !le(s) && (s = y(s));
725
+ const r = y(this);
726
+ return Xe(r).has.call(r, s) || (r.add(s), he(r, "add", s, s)), this;
727
+ },
728
+ set(s, r) {
729
+ !t && !z(r) && !le(r) && (r = y(r));
730
+ const l = y(this), { has: i, get: a } = Xe(l);
731
+ let f = i.call(l, s);
732
+ f ? process.env.NODE_ENV !== "production" && Cn(l, i, s) : (s = y(s), f = i.call(l, s));
733
+ const u = a.call(l, s);
734
+ return l.set(s, r), f ? J(r, u) && he(l, "set", s, r, u) : he(l, "add", s, r), this;
735
+ },
736
+ delete(s) {
737
+ const r = y(this), { has: l, get: i } = Xe(r);
738
+ let a = l.call(r, s);
739
+ a ? process.env.NODE_ENV !== "production" && Cn(r, l, s) : (s = y(s), a = l.call(r, s));
740
+ const f = i ? i.call(r, s) : void 0, u = r.delete(s);
741
+ return a && he(r, "delete", s, void 0, f), u;
742
+ },
743
+ clear() {
744
+ const s = y(this), r = s.size !== 0, l = process.env.NODE_ENV !== "production" ? be(s) ? new Map(s) : new Set(s) : void 0, i = s.clear();
745
+ return r && he(
746
+ s,
747
+ "clear",
748
+ void 0,
749
+ void 0,
750
+ l
751
+ ), i;
752
+ }
753
+ }
754
+ ), [
755
+ "keys",
756
+ "values",
757
+ "entries",
758
+ Symbol.iterator
759
+ ].forEach((s) => {
760
+ n[s] = ro(s, e, t);
761
+ }), n;
762
+ }
763
+ function sn(e, t) {
764
+ const n = io(e, t);
765
+ return (o, s, r) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? o : Reflect.get(
766
+ it(n, s) && s in o ? n : o,
767
+ s,
768
+ r
769
+ );
770
+ }
771
+ const lo = {
772
+ get: /* @__PURE__ */ sn(!1, !1)
773
+ }, ao = {
774
+ get: /* @__PURE__ */ sn(!0, !1)
775
+ }, co = {
776
+ get: /* @__PURE__ */ sn(!0, !0)
777
+ };
778
+ function Cn(e, t, n) {
779
+ const o = y(n);
780
+ if (o !== n && t.call(e, o)) {
781
+ const s = Bn(e);
782
+ de(
783
+ `Reactive ${s} contains both the raw and reactive versions of the same object${s === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
784
+ );
785
+ }
786
+ }
787
+ const es = /* @__PURE__ */ new WeakMap(), uo = /* @__PURE__ */ new WeakMap(), ts = /* @__PURE__ */ new WeakMap(), ns = /* @__PURE__ */ new WeakMap();
788
+ function fo(e) {
789
+ switch (e) {
790
+ case "Object":
791
+ case "Array":
792
+ return 1;
793
+ case "Map":
794
+ case "Set":
795
+ case "WeakMap":
796
+ case "WeakSet":
797
+ return 2;
798
+ default:
799
+ return 0;
800
+ }
801
+ }
802
+ function po(e) {
803
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : fo(Bn(e));
804
+ }
805
+ function ss(e) {
806
+ return le(e) ? e : on(
807
+ e,
808
+ !1,
809
+ no,
810
+ lo,
811
+ es
812
+ );
813
+ }
814
+ function os(e) {
815
+ return on(
816
+ e,
817
+ !0,
818
+ so,
819
+ ao,
820
+ ts
821
+ );
822
+ }
823
+ function tt(e) {
824
+ return on(
825
+ e,
826
+ !0,
827
+ oo,
828
+ co,
829
+ ns
830
+ );
831
+ }
832
+ function on(e, t, n, o, s) {
833
+ if (!R(e))
834
+ return process.env.NODE_ENV !== "production" && de(
835
+ `value cannot be made ${t ? "readonly" : "reactive"}: ${String(
836
+ e
837
+ )}`
838
+ ), e;
839
+ if (e.__v_raw && !(t && e.__v_isReactive))
840
+ return e;
841
+ const r = po(e);
842
+ if (r === 0)
843
+ return e;
844
+ const l = s.get(e);
845
+ if (l)
846
+ return l;
847
+ const i = new Proxy(
848
+ e,
849
+ r === 2 ? o : n
850
+ );
851
+ return s.set(e, i), i;
852
+ }
853
+ function ye(e) {
854
+ return le(e) ? ye(e.__v_raw) : !!(e && e.__v_isReactive);
855
+ }
856
+ function le(e) {
857
+ return !!(e && e.__v_isReadonly);
858
+ }
859
+ function z(e) {
860
+ return !!(e && e.__v_isShallow);
861
+ }
862
+ function lt(e) {
863
+ return e ? !!e.__v_raw : !1;
864
+ }
865
+ function y(e) {
866
+ const t = e && e.__v_raw;
867
+ return t ? y(t) : e;
868
+ }
869
+ function ho(e) {
870
+ return !it(e, "__v_skip") && Object.isExtensible(e) && Fs(e, "__v_skip", !0), e;
871
+ }
872
+ const I = (e) => R(e) ? ss(e) : e, at = (e) => R(e) ? os(e) : e;
873
+ function W(e) {
874
+ return e ? e.__v_isRef === !0 : !1;
875
+ }
876
+ function fe(e) {
877
+ return mo(e, !1);
878
+ }
879
+ function mo(e, t) {
880
+ return W(e) ? e : new go(e, t);
881
+ }
882
+ class go {
883
+ constructor(t, n) {
884
+ this.dep = new Ot(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : y(t), this._value = n ? t : I(t), this.__v_isShallow = n;
885
+ }
886
+ get value() {
887
+ return process.env.NODE_ENV !== "production" ? this.dep.track({
888
+ target: this,
889
+ type: "get",
890
+ key: "value"
891
+ }) : this.dep.track(), this._value;
892
+ }
893
+ set value(t) {
894
+ const n = this._rawValue, o = this.__v_isShallow || z(t) || le(t);
895
+ t = o ? t : y(t), J(t, n) && (this._rawValue = t, this._value = o ? t : I(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
896
+ target: this,
897
+ type: "set",
898
+ key: "value",
899
+ newValue: t,
900
+ oldValue: n
901
+ }) : this.dep.trigger());
902
+ }
903
+ }
904
+ function x(e) {
905
+ return W(e) ? e.value : e;
906
+ }
907
+ const _o = {
908
+ get: (e, t, n) => t === "__v_raw" ? e : x(Reflect.get(e, t, n)),
909
+ set: (e, t, n, o) => {
910
+ const s = e[t];
911
+ return W(s) && !W(n) ? (s.value = n, !0) : Reflect.set(e, t, n, o);
912
+ }
913
+ };
914
+ function bo(e) {
915
+ return ye(e) ? e : new Proxy(e, _o);
916
+ }
917
+ class vo {
918
+ constructor(t) {
919
+ this.__v_isRef = !0, this._value = void 0;
920
+ const n = this.dep = new Ot(), { get: o, set: s } = t(n.track.bind(n), n.trigger.bind(n));
921
+ this._get = o, this._set = s;
922
+ }
923
+ get value() {
924
+ return this._value = this._get();
925
+ }
926
+ set value(t) {
927
+ this._set(t);
928
+ }
929
+ }
930
+ function yo(e) {
931
+ return new vo(e);
932
+ }
933
+ class wo {
934
+ constructor(t, n, o) {
935
+ this.fn = t, this.setter = n, this._value = void 0, this.dep = new Ot(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = We - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = o;
936
+ }
937
+ /**
938
+ * @internal
939
+ */
940
+ notify() {
941
+ if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
942
+ N !== this)
943
+ return zn(this, !0), !0;
944
+ process.env.NODE_ENV;
945
+ }
946
+ get value() {
947
+ const t = process.env.NODE_ENV !== "production" ? this.dep.track({
948
+ target: this,
949
+ type: "get",
950
+ key: "value"
951
+ }) : this.dep.track();
952
+ return Jn(this), t && (t.version = this.dep.version), this._value;
953
+ }
954
+ set value(t) {
955
+ this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" && de("Write operation failed: computed value is readonly");
956
+ }
957
+ }
958
+ function Eo(e, t, n = !1) {
959
+ let o, s;
960
+ k(e) ? o = e : (o = e.get, s = e.set);
961
+ const r = new wo(o, s, n);
962
+ return process.env.NODE_ENV, r;
963
+ }
964
+ const nt = {}, ct = /* @__PURE__ */ new WeakMap();
965
+ let _e;
966
+ function No(e, t = !1, n = _e) {
967
+ if (n) {
968
+ let o = ct.get(n);
969
+ o || ct.set(n, o = []), o.push(e);
970
+ } else process.env.NODE_ENV !== "production" && !t && de(
971
+ "onWatcherCleanup() was called when there was no active watcher to associate with."
972
+ );
973
+ }
974
+ function So(e, t, n = oe) {
975
+ const { immediate: o, deep: s, once: r, scheduler: l, augmentJob: i, call: a } = n, f = (b) => {
976
+ (n.onWarn || de)(
977
+ "Invalid watch source: ",
978
+ b,
979
+ "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
980
+ );
981
+ }, u = (b) => s ? b : z(b) || s === !1 || s === 0 ? ue(b, 1) : ue(b);
982
+ let c, p, h, E, v = !1, H = !1;
983
+ if (W(e) ? (p = () => e.value, v = z(e)) : ye(e) ? (p = () => u(e), v = !0) : w(e) ? (H = !0, v = e.some((b) => ye(b) || z(b)), p = () => e.map((b) => {
984
+ if (W(b))
985
+ return b.value;
986
+ if (ye(b))
987
+ return u(b);
988
+ if (k(b))
989
+ return a ? a(b, 2) : b();
990
+ process.env.NODE_ENV !== "production" && f(b);
991
+ })) : k(e) ? t ? p = a ? () => a(e, 2) : e : p = () => {
992
+ if (h) {
993
+ Re();
994
+ try {
995
+ h();
996
+ } finally {
997
+ Pe();
998
+ }
999
+ }
1000
+ const b = _e;
1001
+ _e = c;
1002
+ try {
1003
+ return a ? a(e, 3, [E]) : e(E);
1004
+ } finally {
1005
+ _e = b;
1006
+ }
1007
+ } : (p = $e, process.env.NODE_ENV !== "production" && f(e)), t && s) {
1008
+ const b = p, T = s === !0 ? 1 / 0 : s;
1009
+ p = () => ue(b(), T);
1010
+ }
1011
+ const m = () => {
1012
+ c.stop();
1013
+ };
1014
+ if (r && t) {
1015
+ const b = t;
1016
+ t = (...T) => {
1017
+ b(...T), m();
1018
+ };
1019
+ }
1020
+ let C = H ? new Array(e.length).fill(nt) : nt;
1021
+ const Q = (b) => {
1022
+ if (!(!(c.flags & 1) || !c.dirty && !b))
1023
+ if (t) {
1024
+ const T = c.run();
1025
+ if (s || v || (H ? T.some((Ae, Se) => J(Ae, C[Se])) : J(T, C))) {
1026
+ h && h();
1027
+ const Ae = _e;
1028
+ _e = c;
1029
+ try {
1030
+ const Se = [
1031
+ T,
1032
+ // pass undefined as the old value when it's changed for the first time
1033
+ C === nt ? void 0 : H && C[0] === nt ? [] : C,
1034
+ E
1035
+ ];
1036
+ C = T, a ? a(t, 3, Se) : (
1037
+ // @ts-expect-error
1038
+ t(...Se)
1039
+ );
1040
+ } finally {
1041
+ _e = Ae;
1042
+ }
1043
+ }
1044
+ } else
1045
+ c.run();
1046
+ };
1047
+ return i && i(Q), c = new Js(p), c.scheduler = l ? () => l(Q, !1) : Q, E = (b) => No(b, !1, c), h = c.onStop = () => {
1048
+ const b = ct.get(c);
1049
+ if (b) {
1050
+ if (a)
1051
+ a(b, 4);
1052
+ else
1053
+ for (const T of b) T();
1054
+ ct.delete(c);
1055
+ }
1056
+ }, process.env.NODE_ENV !== "production" && (c.onTrack = n.onTrack, c.onTrigger = n.onTrigger), t ? o ? Q(!0) : C = c.run() : l ? l(Q.bind(null, !0), !0) : c.run(), m.pause = c.pause.bind(c), m.resume = c.resume.bind(c), m.stop = m, m;
1057
+ }
1058
+ function ue(e, t = 1 / 0, n) {
1059
+ if (t <= 0 || !R(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
1060
+ return e;
1061
+ if (n.add(e), t--, W(e))
1062
+ ue(e.value, t, n);
1063
+ else if (w(e))
1064
+ for (let o = 0; o < e.length; o++)
1065
+ ue(e[o], t, n);
1066
+ else if (yt(e) || be(e))
1067
+ e.forEach((o) => {
1068
+ ue(o, t, n);
1069
+ });
1070
+ else if (Hn(e)) {
1071
+ for (const o in e)
1072
+ ue(e[o], t, n);
1073
+ for (const o of Object.getOwnPropertySymbols(e))
1074
+ Object.prototype.propertyIsEnumerable.call(e, o) && ue(e[o], t, n);
1075
+ }
1076
+ return e;
1077
+ }
1078
+ /**
1079
+ * @vue/runtime-core v3.5.18
1080
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
1081
+ * @license MIT
1082
+ **/
1083
+ const we = [];
1084
+ function Oo(e) {
1085
+ we.push(e);
1086
+ }
1087
+ function Co() {
1088
+ we.pop();
1089
+ }
1090
+ let At = !1;
1091
+ function $(e, ...t) {
1092
+ if (At) return;
1093
+ At = !0, Re();
1094
+ const n = we.length ? we[we.length - 1].component : null, o = n && n.appContext.config.warnHandler, s = xo();
1095
+ if (o)
1096
+ xt(
1097
+ o,
1098
+ n,
1099
+ 11,
1100
+ [
1101
+ // eslint-disable-next-line no-restricted-syntax
1102
+ e + t.map((r) => {
1103
+ var l, i;
1104
+ return (i = (l = r.toString) == null ? void 0 : l.call(r)) != null ? i : JSON.stringify(r);
1105
+ }).join(""),
1106
+ n && n.proxy,
1107
+ s.map(
1108
+ ({ vnode: r }) => `at <${xs(n, r.type)}>`
1109
+ ).join(`
1110
+ `),
1111
+ s
1112
+ ]
1113
+ );
1114
+ else {
1115
+ const r = [`[Vue warn]: ${e}`, ...t];
1116
+ s.length && r.push(`
1117
+ `, ...$o(s)), console.warn(...r);
1118
+ }
1119
+ Pe(), At = !1;
1120
+ }
1121
+ function xo() {
1122
+ let e = we[we.length - 1];
1123
+ if (!e)
1124
+ return [];
1125
+ const t = [];
1126
+ for (; e; ) {
1127
+ const n = t[0];
1128
+ n && n.vnode === e ? n.recurseCount++ : t.push({
1129
+ vnode: e,
1130
+ recurseCount: 0
1131
+ });
1132
+ const o = e.component && e.component.parent;
1133
+ e = o && o.vnode;
1134
+ }
1135
+ return t;
1136
+ }
1137
+ function $o(e) {
1138
+ const t = [];
1139
+ return e.forEach((n, o) => {
1140
+ t.push(...o === 0 ? [] : [`
1141
+ `], ...ko(n));
1142
+ }), t;
1143
+ }
1144
+ function ko({ vnode: e, recurseCount: t }) {
1145
+ const n = t > 0 ? `... (${t} recursive calls)` : "", o = e.component ? e.component.parent == null : !1, s = ` at <${xs(
1146
+ e.component,
1147
+ e.type,
1148
+ o
1149
+ )}`, r = ">" + n;
1150
+ return e.props ? [s, ...Do(e.props), r] : [s + r];
1151
+ }
1152
+ function Do(e) {
1153
+ const t = [], n = Object.keys(e);
1154
+ return n.slice(0, 3).forEach((o) => {
1155
+ t.push(...rs(o, e[o]));
1156
+ }), n.length > 3 && t.push(" ..."), t;
1157
+ }
1158
+ function rs(e, t, n) {
1159
+ return Z(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : W(t) ? (t = rs(e, y(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : k(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = y(t), n ? t : [`${e}=`, t]);
1160
+ }
1161
+ const rn = {
1162
+ sp: "serverPrefetch hook",
1163
+ bc: "beforeCreate hook",
1164
+ c: "created hook",
1165
+ bm: "beforeMount hook",
1166
+ m: "mounted hook",
1167
+ bu: "beforeUpdate hook",
1168
+ u: "updated",
1169
+ bum: "beforeUnmount hook",
1170
+ um: "unmounted hook",
1171
+ a: "activated hook",
1172
+ da: "deactivated hook",
1173
+ ec: "errorCaptured hook",
1174
+ rtc: "renderTracked hook",
1175
+ rtg: "renderTriggered hook",
1176
+ 0: "setup function",
1177
+ 1: "render function",
1178
+ 2: "watcher getter",
1179
+ 3: "watcher callback",
1180
+ 4: "watcher cleanup function",
1181
+ 5: "native event handler",
1182
+ 6: "component event handler",
1183
+ 7: "vnode hook",
1184
+ 8: "directive hook",
1185
+ 9: "transition hook",
1186
+ 10: "app errorHandler",
1187
+ 11: "app warnHandler",
1188
+ 12: "ref function",
1189
+ 13: "async component loader",
1190
+ 14: "scheduler flush",
1191
+ 15: "component update",
1192
+ 16: "app unmount cleanup function"
1193
+ };
1194
+ function xt(e, t, n, o) {
1195
+ try {
1196
+ return o ? e(...o) : e();
1197
+ } catch (s) {
1198
+ an(s, t, n);
1199
+ }
1200
+ }
1201
+ function ln(e, t, n, o) {
1202
+ if (k(e)) {
1203
+ const s = xt(e, t, n, o);
1204
+ return s && As(s) && s.catch((r) => {
1205
+ an(r, t, n);
1206
+ }), s;
1207
+ }
1208
+ if (w(e)) {
1209
+ const s = [];
1210
+ for (let r = 0; r < e.length; r++)
1211
+ s.push(ln(e[r], t, n, o));
1212
+ return s;
1213
+ } else process.env.NODE_ENV !== "production" && $(
1214
+ `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
1215
+ );
1216
+ }
1217
+ function an(e, t, n, o = !0) {
1218
+ const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: l } = t && t.appContext.config || oe;
1219
+ if (t) {
1220
+ let i = t.parent;
1221
+ const a = t.proxy, f = process.env.NODE_ENV !== "production" ? rn[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1222
+ for (; i; ) {
1223
+ const u = i.ec;
1224
+ if (u) {
1225
+ for (let c = 0; c < u.length; c++)
1226
+ if (u[c](e, a, f) === !1)
1227
+ return;
1228
+ }
1229
+ i = i.parent;
1230
+ }
1231
+ if (r) {
1232
+ Re(), xt(r, null, 10, [
1233
+ e,
1234
+ a,
1235
+ f
1236
+ ]), Pe();
1237
+ return;
1238
+ }
1239
+ }
1240
+ Vo(e, n, s, o, l);
1241
+ }
1242
+ function Vo(e, t, n, o = !0, s = !1) {
1243
+ if (process.env.NODE_ENV !== "production") {
1244
+ const r = rn[t];
1245
+ if (n && Oo(n), $(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && Co(), o)
1246
+ throw e;
1247
+ console.error(e);
1248
+ } else {
1249
+ if (s)
1250
+ throw e;
1251
+ console.error(e);
1252
+ }
1253
+ }
1254
+ const te = [];
1255
+ let ce = -1;
1256
+ const ke = [];
1257
+ let pe = null, Ce = 0;
1258
+ const is = /* @__PURE__ */ Promise.resolve();
1259
+ let ut = null;
1260
+ const To = 100;
1261
+ function ls(e) {
1262
+ const t = ut || is;
1263
+ return e ? t.then(this ? e.bind(this) : e) : t;
1264
+ }
1265
+ function Mo(e) {
1266
+ let t = ce + 1, n = te.length;
1267
+ for (; t < n; ) {
1268
+ const o = t + n >>> 1, s = te[o], r = Je(s);
1269
+ r < e || r === e && s.flags & 2 ? t = o + 1 : n = o;
1270
+ }
1271
+ return t;
1272
+ }
1273
+ function cn(e) {
1274
+ if (!(e.flags & 1)) {
1275
+ const t = Je(e), n = te[te.length - 1];
1276
+ !n || // fast path when the job id is larger than the tail
1277
+ !(e.flags & 2) && t >= Je(n) ? te.push(e) : te.splice(Mo(t), 0, e), e.flags |= 1, as();
1278
+ }
1279
+ }
1280
+ function as() {
1281
+ ut || (ut = is.then(us));
1282
+ }
1283
+ function cs(e) {
1284
+ w(e) ? ke.push(...e) : pe && e.id === -1 ? pe.splice(Ce + 1, 0, e) : e.flags & 1 || (ke.push(e), e.flags |= 1), as();
1285
+ }
1286
+ function Ro(e) {
1287
+ if (ke.length) {
1288
+ const t = [...new Set(ke)].sort(
1289
+ (n, o) => Je(n) - Je(o)
1290
+ );
1291
+ if (ke.length = 0, pe) {
1292
+ pe.push(...t);
1293
+ return;
1294
+ }
1295
+ for (pe = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), Ce = 0; Ce < pe.length; Ce++) {
1296
+ const n = pe[Ce];
1297
+ process.env.NODE_ENV !== "production" && fs(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1298
+ }
1299
+ pe = null, Ce = 0;
1300
+ }
1301
+ }
1302
+ const Je = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
1303
+ function us(e) {
1304
+ process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
1305
+ const t = process.env.NODE_ENV !== "production" ? (n) => fs(e, n) : $e;
1306
+ try {
1307
+ for (ce = 0; ce < te.length; ce++) {
1308
+ const n = te[ce];
1309
+ if (n && !(n.flags & 8)) {
1310
+ if (process.env.NODE_ENV !== "production" && t(n))
1311
+ continue;
1312
+ n.flags & 4 && (n.flags &= -2), xt(
1313
+ n,
1314
+ n.i,
1315
+ n.i ? 15 : 14
1316
+ ), n.flags & 4 || (n.flags &= -2);
1317
+ }
1318
+ }
1319
+ } finally {
1320
+ for (; ce < te.length; ce++) {
1321
+ const n = te[ce];
1322
+ n && (n.flags &= -2);
1323
+ }
1324
+ ce = -1, te.length = 0, Ro(e), ut = null, (te.length || ke.length) && us(e);
1325
+ }
1326
+ }
1327
+ function fs(e, t) {
1328
+ const n = e.get(t) || 0;
1329
+ if (n > To) {
1330
+ const o = t.i, s = o && gn(o.type);
1331
+ return an(
1332
+ `Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
1333
+ null,
1334
+ 10
1335
+ ), !0;
1336
+ }
1337
+ return e.set(t, n + 1), !1;
1338
+ }
1339
+ const Lt = /* @__PURE__ */ new Map();
1340
+ process.env.NODE_ENV !== "production" && (Et().__VUE_HMR_RUNTIME__ = {
1341
+ createRecord: Bt(Po),
1342
+ rerender: Bt(Io),
1343
+ reload: Bt(Ao)
1344
+ });
1345
+ const ft = /* @__PURE__ */ new Map();
1346
+ function Po(e, t) {
1347
+ return ft.has(e) ? !1 : (ft.set(e, {
1348
+ initialDef: dt(t),
1349
+ instances: /* @__PURE__ */ new Set()
1350
+ }), !0);
1351
+ }
1352
+ function dt(e) {
1353
+ return $s(e) ? e.__vccOpts : e;
1354
+ }
1355
+ function Io(e, t) {
1356
+ const n = ft.get(e);
1357
+ n && (n.initialDef.render = t, [...n.instances].forEach((o) => {
1358
+ t && (o.render = t, dt(o.type).render = t), o.renderCache = [], o.update();
1359
+ }));
1360
+ }
1361
+ function Ao(e, t) {
1362
+ const n = ft.get(e);
1363
+ if (!n) return;
1364
+ t = dt(t), xn(n.initialDef, t);
1365
+ const o = [...n.instances];
1366
+ for (let s = 0; s < o.length; s++) {
1367
+ const r = o[s], l = dt(r.type);
1368
+ let i = Lt.get(l);
1369
+ i || (l !== n.initialDef && xn(l, t), Lt.set(l, i = /* @__PURE__ */ new Set())), i.add(r), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (i.add(r), r.ceReload(t.styles), i.delete(r)) : r.parent ? cn(() => {
1370
+ r.parent.update(), i.delete(r);
1371
+ }) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1372
+ "[HMR] Root or manually mounted instance modified. Full reload required."
1373
+ ), r.root.ce && r !== r.root && r.root.ce._removeChildStyle(l);
1374
+ }
1375
+ cs(() => {
1376
+ Lt.clear();
1377
+ });
1378
+ }
1379
+ function xn(e, t) {
1380
+ F(e, t);
1381
+ for (const n in e)
1382
+ n !== "__file" && !(n in t) && delete e[n];
1383
+ }
1384
+ function Bt(e) {
1385
+ return (t, n) => {
1386
+ try {
1387
+ return e(t, n);
1388
+ } catch (o) {
1389
+ console.error(o), console.warn(
1390
+ "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
1391
+ );
1392
+ }
1393
+ };
1394
+ }
1395
+ let me, Fe = [], Jt = !1;
1396
+ function Lo(e, ...t) {
1397
+ me ? me.emit(e, ...t) : Jt || Fe.push({ event: e, args: t });
1398
+ }
1399
+ function ds(e, t) {
1400
+ var n, o;
1401
+ me = e, me ? (me.enabled = !0, Fe.forEach(({ event: s, args: r }) => me.emit(s, ...r)), Fe = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
1402
+ window.HTMLElement && // also exclude jsdom
1403
+ // eslint-disable-next-line no-restricted-syntax
1404
+ !((o = (n = window.navigator) == null ? void 0 : n.userAgent) != null && o.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((r) => {
1405
+ ds(r, t);
1406
+ }), setTimeout(() => {
1407
+ me || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Jt = !0, Fe = []);
1408
+ }, 3e3)) : (Jt = !0, Fe = []);
1409
+ }
1410
+ const Bo = /* @__PURE__ */ Ho(
1411
+ "component:updated"
1412
+ /* COMPONENT_UPDATED */
1413
+ );
1414
+ /*! #__NO_SIDE_EFFECTS__ */
1415
+ // @__NO_SIDE_EFFECTS__
1416
+ function Ho(e) {
1417
+ return (t) => {
1418
+ Lo(
1419
+ e,
1420
+ t.appContext.app,
1421
+ t.uid,
1422
+ t.parent ? t.parent.uid : void 0,
1423
+ t
1424
+ );
1425
+ };
1426
+ }
1427
+ let A = null, ps = null;
1428
+ function $n(e) {
1429
+ const t = A;
1430
+ return A = e, ps = e && e.type.__scopeId || null, t;
1431
+ }
1432
+ function X(e, t = A, n) {
1433
+ if (!t || e._n)
1434
+ return e;
1435
+ const o = (...s) => {
1436
+ o._d && Mn(-1);
1437
+ const r = $n(t);
1438
+ let l;
1439
+ try {
1440
+ l = e(...s);
1441
+ } finally {
1442
+ $n(r), o._d && Mn(1);
1443
+ }
1444
+ return process.env.NODE_ENV !== "production" && Bo(t), l;
1445
+ };
1446
+ return o._n = !0, o._c = !0, o._d = !0, o;
1447
+ }
1448
+ function pt(e, t) {
1449
+ if (A === null)
1450
+ return process.env.NODE_ENV !== "production" && $("withDirectives can only be used inside render functions."), e;
1451
+ const n = Cs(A), o = e.dirs || (e.dirs = []);
1452
+ for (let s = 0; s < t.length; s++) {
1453
+ let [r, l, i, a = oe] = t[s];
1454
+ r && (k(r) && (r = {
1455
+ mounted: r,
1456
+ updated: r
1457
+ }), r.deep && ue(l), o.push({
1458
+ dir: r,
1459
+ instance: n,
1460
+ value: l,
1461
+ oldValue: void 0,
1462
+ arg: i,
1463
+ modifiers: a
1464
+ }));
1465
+ }
1466
+ return e;
1467
+ }
1468
+ const Fo = (e) => e.__isTeleport;
1469
+ function hs(e, t) {
1470
+ e.shapeFlag & 6 && e.component ? (e.transition = t, hs(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
1471
+ }
1472
+ /*! #__NO_SIDE_EFFECTS__ */
1473
+ // @__NO_SIDE_EFFECTS__
1474
+ function V(e, t) {
1475
+ return k(e) ? (
1476
+ // #8236: extend call and options.name access are considered side-effects
1477
+ // by Rollup, so we have to wrap it in a pure-annotated IIFE.
1478
+ F({ name: e.name }, t, { setup: e })
1479
+ ) : e;
1480
+ }
1481
+ Et().requestIdleCallback;
1482
+ Et().cancelIdleCallback;
1483
+ const jo = (e) => !!e.type.__asyncLoader;
1484
+ function Uo(e, t, n = Ne, o = !1) {
1485
+ if (n) {
1486
+ const s = n[e] || (n[e] = []), r = t.__weh || (t.__weh = (...l) => {
1487
+ Re();
1488
+ const i = Os(n), a = ln(t, n, e, l);
1489
+ return i(), Pe(), a;
1490
+ });
1491
+ return o ? s.unshift(r) : s.push(r), r;
1492
+ } else if (process.env.NODE_ENV !== "production") {
1493
+ const s = jt(rn[e].replace(/ hook$/, ""));
1494
+ $(
1495
+ `${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
1496
+ );
1497
+ }
1498
+ }
1499
+ const Ko = (e) => (t, n = Ne) => {
1500
+ (!Ze || e === "sp") && Uo(e, (...o) => t(...o), n);
1501
+ }, zo = Ko("m"), ht = "components", Wo = "directives";
1502
+ function un(e, t) {
1503
+ return dn(ht, e, !0, t) || e;
1504
+ }
1505
+ const ms = Symbol.for("v-ndc");
1506
+ function fn(e) {
1507
+ return Z(e) ? dn(ht, e, !1) || e : e || ms;
1508
+ }
1509
+ function gs(e) {
1510
+ return dn(Wo, e);
1511
+ }
1512
+ function dn(e, t, n = !0, o = !1) {
1513
+ const s = A || Ne;
1514
+ if (s) {
1515
+ const r = s.type;
1516
+ if (e === ht) {
1517
+ const i = gn(
1518
+ r,
1519
+ !1
1520
+ );
1521
+ if (i && (i === t || i === Ee(t) || i === ze(Ee(t))))
1522
+ return r;
1523
+ }
1524
+ const l = (
1525
+ // local registration
1526
+ // check instance[type] first which is resolved for options API
1527
+ kn(s[e] || r[e], t) || // global registration
1528
+ kn(s.appContext[e], t)
1529
+ );
1530
+ if (!l && o)
1531
+ return r;
1532
+ if (process.env.NODE_ENV !== "production" && n && !l) {
1533
+ const i = e === ht ? `
1534
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : "";
1535
+ $(`Failed to resolve ${e.slice(0, -1)}: ${t}${i}`);
1536
+ }
1537
+ return l;
1538
+ } else process.env.NODE_ENV !== "production" && $(
1539
+ `resolve${ze(e.slice(0, -1))} can only be used in render() or setup().`
1540
+ );
1541
+ }
1542
+ function kn(e, t) {
1543
+ return e && (e[t] || e[Ee(t)] || e[ze(Ee(t))]);
1544
+ }
1545
+ function G(e, t, n, o) {
1546
+ let s;
1547
+ const r = n, l = w(e);
1548
+ if (l || Z(e)) {
1549
+ const i = l && ye(e);
1550
+ let a = !1, f = !1;
1551
+ i && (a = !z(e), f = le(e), e = Ct(e)), s = new Array(e.length);
1552
+ for (let u = 0, c = e.length; u < c; u++)
1553
+ s[u] = t(
1554
+ a ? f ? at(I(e[u])) : I(e[u]) : e[u],
1555
+ u,
1556
+ void 0,
1557
+ r
1558
+ );
1559
+ } else if (typeof e == "number") {
1560
+ process.env.NODE_ENV !== "production" && !Number.isInteger(e) && $(`The v-for range expect an integer value but got ${e}.`), s = new Array(e);
1561
+ for (let i = 0; i < e; i++)
1562
+ s[i] = t(i + 1, i, void 0, r);
1563
+ } else if (R(e))
1564
+ if (e[Symbol.iterator])
1565
+ s = Array.from(
1566
+ e,
1567
+ (i, a) => t(i, a, void 0, r)
1568
+ );
1569
+ else {
1570
+ const i = Object.keys(e);
1571
+ s = new Array(i.length);
1572
+ for (let a = 0, f = i.length; a < f; a++) {
1573
+ const u = i[a];
1574
+ s[a] = t(e[u], u, a, r);
1575
+ }
1576
+ }
1577
+ else
1578
+ s = [];
1579
+ return s;
1580
+ }
1581
+ function re(e, t, n = {}, o, s) {
1582
+ if (A.ce || A.parent && jo(A.parent) && A.parent.ce)
1583
+ return t !== "default" && (n.name = t), d(), O(
1584
+ D,
1585
+ null,
1586
+ [L("slot", n, o)],
1587
+ 64
1588
+ );
1589
+ let r = e[t];
1590
+ process.env.NODE_ENV !== "production" && r && r.length > 1 && ($(
1591
+ "SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."
1592
+ ), r = () => []), r && r._c && (r._d = !1), d();
1593
+ const l = r && _s(r(n)), i = n.key || // slot content array of a dynamic conditional slot may have a branch
1594
+ // key attached in the `createSlots` helper, respect that
1595
+ l && l.key, a = O(
1596
+ D,
1597
+ {
1598
+ key: (i && !ie(i) ? i : `_${t}`) + // #7256 force differentiate fallback content from actual content
1599
+ (!l && o ? "_fb" : "")
1600
+ },
1601
+ l || [],
1602
+ l && e._ === 1 ? 64 : -2
1603
+ );
1604
+ return a.scopeId && (a.slotScopeIds = [a.scopeId + "-s"]), r && r._c && (r._d = !0), a;
1605
+ }
1606
+ function _s(e) {
1607
+ return e.some((t) => ws(t) ? !(t.type === gt || t.type === D && !_s(t.children)) : !0) ? e : null;
1608
+ }
1609
+ const Yt = (e) => e ? dr(e) ? Cs(e) : Yt(e.parent) : null, Ht = (
1610
+ // Move PURE marker to new line to workaround compiler discarding it
1611
+ // due to type annotation
1612
+ /* @__PURE__ */ F(/* @__PURE__ */ Object.create(null), {
1613
+ $: (e) => e,
1614
+ $el: (e) => e.vnode.el,
1615
+ $data: (e) => e.data,
1616
+ $props: (e) => process.env.NODE_ENV !== "production" ? tt(e.props) : e.props,
1617
+ $attrs: (e) => process.env.NODE_ENV !== "production" ? tt(e.attrs) : e.attrs,
1618
+ $slots: (e) => process.env.NODE_ENV !== "production" ? tt(e.slots) : e.slots,
1619
+ $refs: (e) => process.env.NODE_ENV !== "production" ? tt(e.refs) : e.refs,
1620
+ $parent: (e) => Yt(e.parent),
1621
+ $root: (e) => Yt(e.root),
1622
+ $host: (e) => e.ce,
1623
+ $emit: (e) => e.emit,
1624
+ $options: (e) => Jo(e),
1625
+ $forceUpdate: (e) => e.f || (e.f = () => {
1626
+ cn(e.update);
1627
+ }),
1628
+ $nextTick: (e) => e.n || (e.n = ls.bind(e.proxy)),
1629
+ $watch: (e) => or.bind(e)
1630
+ })
1631
+ ), qo = {};
1632
+ process.env.NODE_ENV !== "production" && (qo.ownKeys = (e) => ($(
1633
+ "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1634
+ ), Reflect.ownKeys(e)));
1635
+ function Ye(e) {
1636
+ return w(e) ? e.reduce(
1637
+ (t, n) => (t[n] = null, t),
1638
+ {}
1639
+ ) : e;
1640
+ }
1641
+ function $t(e, t) {
1642
+ const n = Ye(e);
1643
+ for (const o in t) {
1644
+ if (o.startsWith("__skip")) continue;
1645
+ let s = n[o];
1646
+ s ? w(s) || k(s) ? s = n[o] = { type: s, default: t[o] } : s.default = t[o] : s === null ? s = n[o] = { default: t[o] } : process.env.NODE_ENV !== "production" && $(`props default key "${o}" has no corresponding declaration.`), s && t[`__skip_${o}`] && (s.skipFactory = !0);
1647
+ }
1648
+ return n;
1649
+ }
1650
+ function Me(e, t) {
1651
+ return !e || !t ? e || t : w(e) && w(t) ? e.concat(t) : F({}, Ye(e), Ye(t));
1652
+ }
1653
+ function Jo(e) {
1654
+ const t = e.type, { mixins: n, extends: o } = t, {
1655
+ mixins: s,
1656
+ optionsCache: r,
1657
+ config: { optionMergeStrategies: l }
1658
+ } = e.appContext, i = r.get(t);
1659
+ let a;
1660
+ return i ? a = i : !s.length && !n && !o ? a = t : (a = {}, s.length && s.forEach(
1661
+ (f) => mt(a, f, l, !0)
1662
+ ), mt(a, t, l)), R(t) && r.set(t, a), a;
1663
+ }
1664
+ function mt(e, t, n, o = !1) {
1665
+ const { mixins: s, extends: r } = t;
1666
+ r && mt(e, r, n, !0), s && s.forEach(
1667
+ (l) => mt(e, l, n, !0)
1668
+ );
1669
+ for (const l in t)
1670
+ if (o && l === "expose")
1671
+ process.env.NODE_ENV !== "production" && $(
1672
+ '"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
1673
+ );
1674
+ else {
1675
+ const i = Yo[l] || n && n[l];
1676
+ e[l] = i ? i(e[l], t[l]) : t[l];
1677
+ }
1678
+ return e;
1679
+ }
1680
+ const Yo = {
1681
+ data: Dn,
1682
+ props: Tn,
1683
+ emits: Tn,
1684
+ // objects
1685
+ methods: je,
1686
+ computed: je,
1687
+ // lifecycle
1688
+ beforeCreate: U,
1689
+ created: U,
1690
+ beforeMount: U,
1691
+ mounted: U,
1692
+ beforeUpdate: U,
1693
+ updated: U,
1694
+ beforeDestroy: U,
1695
+ beforeUnmount: U,
1696
+ destroyed: U,
1697
+ unmounted: U,
1698
+ activated: U,
1699
+ deactivated: U,
1700
+ errorCaptured: U,
1701
+ serverPrefetch: U,
1702
+ // assets
1703
+ components: je,
1704
+ directives: je,
1705
+ // watch
1706
+ watch: Zo,
1707
+ // provide / inject
1708
+ provide: Dn,
1709
+ inject: Go
1710
+ };
1711
+ function Dn(e, t) {
1712
+ return t ? e ? function() {
1713
+ return F(
1714
+ k(e) ? e.call(this, this) : e,
1715
+ k(t) ? t.call(this, this) : t
1716
+ );
1717
+ } : t : e;
1718
+ }
1719
+ function Go(e, t) {
1720
+ return je(Vn(e), Vn(t));
1721
+ }
1722
+ function Vn(e) {
1723
+ if (w(e)) {
1724
+ const t = {};
1725
+ for (let n = 0; n < e.length; n++)
1726
+ t[e[n]] = e[n];
1727
+ return t;
1728
+ }
1729
+ return e;
1730
+ }
1731
+ function U(e, t) {
1732
+ return e ? [...new Set([].concat(e, t))] : t;
1733
+ }
1734
+ function je(e, t) {
1735
+ return e ? F(/* @__PURE__ */ Object.create(null), e, t) : t;
1736
+ }
1737
+ function Tn(e, t) {
1738
+ return e ? w(e) && w(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : F(
1739
+ /* @__PURE__ */ Object.create(null),
1740
+ Ye(e),
1741
+ Ye(t ?? {})
1742
+ ) : t;
1743
+ }
1744
+ function Zo(e, t) {
1745
+ if (!e) return t;
1746
+ if (!t) return e;
1747
+ const n = F(/* @__PURE__ */ Object.create(null), e);
1748
+ for (const o in t)
1749
+ n[o] = U(e[o], t[o]);
1750
+ return n;
1751
+ }
1752
+ let Qo = null;
1753
+ function bs(e, t, n = !1) {
1754
+ const o = Dt();
1755
+ if (o || Qo) {
1756
+ let s = o ? o.parent == null || o.ce ? o.vnode.appContext && o.vnode.appContext.provides : o.parent.provides : void 0;
1757
+ if (s && e in s)
1758
+ return s[e];
1759
+ if (arguments.length > 1)
1760
+ return n && k(t) ? t.call(o && o.proxy) : t;
1761
+ process.env.NODE_ENV !== "production" && $(`injection "${String(e)}" not found.`);
1762
+ } else process.env.NODE_ENV !== "production" && $("inject() can only be used inside setup() or functional components.");
1763
+ }
1764
+ const Xo = {}, vs = (e) => Object.getPrototypeOf(e) === Xo, er = ar, tr = Symbol.for("v-scx"), nr = () => {
1765
+ {
1766
+ const e = bs(tr);
1767
+ return e || process.env.NODE_ENV !== "production" && $(
1768
+ "Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
1769
+ ), e;
1770
+ }
1771
+ };
1772
+ function sr(e, t) {
1773
+ return pn(
1774
+ e,
1775
+ null,
1776
+ process.env.NODE_ENV !== "production" ? F({}, t, { flush: "sync" }) : { flush: "sync" }
1777
+ );
1778
+ }
1779
+ function Gt(e, t, n) {
1780
+ return process.env.NODE_ENV !== "production" && !k(t) && $(
1781
+ "`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
1782
+ ), pn(e, t, n);
1783
+ }
1784
+ function pn(e, t, n = oe) {
1785
+ const { immediate: o, deep: s, flush: r, once: l } = n;
1786
+ process.env.NODE_ENV !== "production" && !t && (o !== void 0 && $(
1787
+ 'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
1788
+ ), s !== void 0 && $(
1789
+ 'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
1790
+ ), l !== void 0 && $(
1791
+ 'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
1792
+ ));
1793
+ const i = F({}, n);
1794
+ process.env.NODE_ENV !== "production" && (i.onWarn = $);
1795
+ const a = t && o || !t && r !== "post";
1796
+ let f;
1797
+ if (Ze) {
1798
+ if (r === "sync") {
1799
+ const h = nr();
1800
+ f = h.__watcherHandles || (h.__watcherHandles = []);
1801
+ } else if (!a) {
1802
+ const h = () => {
1803
+ };
1804
+ return h.stop = $e, h.resume = $e, h.pause = $e, h;
1805
+ }
1806
+ }
1807
+ const u = Ne;
1808
+ i.call = (h, E, v) => ln(h, u, E, v);
1809
+ let c = !1;
1810
+ r === "post" ? i.scheduler = (h) => {
1811
+ er(h, u && u.suspense);
1812
+ } : r !== "sync" && (c = !0, i.scheduler = (h, E) => {
1813
+ E ? h() : cn(h);
1814
+ }), i.augmentJob = (h) => {
1815
+ t && (h.flags |= 4), c && (h.flags |= 2, u && (h.id = u.uid, h.i = u));
1816
+ };
1817
+ const p = So(e, t, i);
1818
+ return Ze && (f ? f.push(p) : a && p()), p;
1819
+ }
1820
+ function or(e, t, n) {
1821
+ const o = this.proxy, s = Z(e) ? e.includes(".") ? rr(o, e) : () => o[e] : e.bind(o, o);
1822
+ let r;
1823
+ k(t) ? r = t : (r = t.handler, n = t);
1824
+ const l = Os(this), i = pn(s, r.bind(o), n);
1825
+ return l(), i;
1826
+ }
1827
+ function rr(e, t) {
1828
+ const n = t.split(".");
1829
+ return () => {
1830
+ let o = e;
1831
+ for (let s = 0; s < n.length && o; s++)
1832
+ o = o[n[s]];
1833
+ return o;
1834
+ };
1835
+ }
1836
+ function hn(e, t, n = oe) {
1837
+ const o = Dt();
1838
+ if (process.env.NODE_ENV !== "production" && !o)
1839
+ return $("useModel() called without active instance."), fe();
1840
+ const s = Ee(t);
1841
+ if (process.env.NODE_ENV !== "production" && !o.propsOptions[0][s])
1842
+ return $(`useModel() called with prop "${t}" which is not declared.`), fe();
1843
+ const r = Fn(t), l = ir(e, s), i = yo((a, f) => {
1844
+ let u, c = oe, p;
1845
+ return sr(() => {
1846
+ const h = e[s];
1847
+ J(u, h) && (u = h, f());
1848
+ }), {
1849
+ get() {
1850
+ return a(), n.get ? n.get(u) : u;
1851
+ },
1852
+ set(h) {
1853
+ const E = n.set ? n.set(h) : h;
1854
+ if (!J(E, u) && !(c !== oe && J(h, c)))
1855
+ return;
1856
+ const v = o.vnode.props;
1857
+ v && // check if parent has passed v-model
1858
+ (t in v || s in v || r in v) && (`onUpdate:${t}` in v || `onUpdate:${s}` in v || `onUpdate:${r}` in v) || (u = h, f()), o.emit(`update:${t}`, E), J(h, E) && J(h, c) && !J(E, p) && f(), c = h, p = E;
1859
+ }
1860
+ };
1861
+ });
1862
+ return i[Symbol.iterator] = () => {
1863
+ let a = 0;
1864
+ return {
1865
+ next() {
1866
+ return a < 2 ? { value: a++ ? l || oe : i, done: !1 } : { done: !0 };
1867
+ }
1868
+ };
1869
+ }, i;
1870
+ }
1871
+ const ir = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${Ee(t)}Modifiers`] || e[`${Fn(t)}Modifiers`], lr = (e) => e.__isSuspense;
1872
+ function ar(e, t) {
1873
+ t && t.pendingBranch ? w(e) ? t.effects.push(...e) : t.effects.push(e) : cs(e);
1874
+ }
1875
+ const D = Symbol.for("v-fgt"), cr = Symbol.for("v-txt"), gt = Symbol.for("v-cmt"), ot = [];
1876
+ let ee = null;
1877
+ function d(e = !1) {
1878
+ ot.push(ee = e ? null : []);
1879
+ }
1880
+ function ur() {
1881
+ ot.pop(), ee = ot[ot.length - 1] || null;
1882
+ }
1883
+ let Ge = 1;
1884
+ function Mn(e, t = !1) {
1885
+ Ge += e, e < 0 && ee && t && (ee.hasOnce = !0);
1886
+ }
1887
+ function ys(e) {
1888
+ return e.dynamicChildren = Ge > 0 ? ee || Rs : null, ur(), Ge > 0 && ee && ee.push(e), e;
1889
+ }
1890
+ function _(e, t, n, o, s, r) {
1891
+ return ys(
1892
+ g(
1893
+ e,
1894
+ t,
1895
+ n,
1896
+ o,
1897
+ s,
1898
+ r,
1899
+ !0
1900
+ )
1901
+ );
1902
+ }
1903
+ function O(e, t, n, o, s) {
1904
+ return ys(
1905
+ L(
1906
+ e,
1907
+ t,
1908
+ n,
1909
+ o,
1910
+ s,
1911
+ !0
1912
+ )
1913
+ );
1914
+ }
1915
+ function ws(e) {
1916
+ return e ? e.__v_isVNode === !0 : !1;
1917
+ }
1918
+ const fr = (...e) => Ns(
1919
+ ...e
1920
+ ), Es = ({ key: e }) => e ?? null, rt = ({
1921
+ ref: e,
1922
+ ref_key: t,
1923
+ ref_for: n
1924
+ }) => (typeof e == "number" && (e = "" + e), e != null ? Z(e) || W(e) || k(e) ? { i: A, r: e, k: t, f: !!n } : e : null);
1925
+ function g(e, t = null, n = null, o = 0, s = null, r = e === D ? 0 : 1, l = !1, i = !1) {
1926
+ const a = {
1927
+ __v_isVNode: !0,
1928
+ __v_skip: !0,
1929
+ type: e,
1930
+ props: t,
1931
+ key: t && Es(t),
1932
+ ref: t && rt(t),
1933
+ scopeId: ps,
1934
+ slotScopeIds: null,
1935
+ children: n,
1936
+ component: null,
1937
+ suspense: null,
1938
+ ssContent: null,
1939
+ ssFallback: null,
1940
+ dirs: null,
1941
+ transition: null,
1942
+ el: null,
1943
+ anchor: null,
1944
+ target: null,
1945
+ targetStart: null,
1946
+ targetAnchor: null,
1947
+ staticCount: 0,
1948
+ shapeFlag: r,
1949
+ patchFlag: o,
1950
+ dynamicProps: s,
1951
+ dynamicChildren: null,
1952
+ appContext: null,
1953
+ ctx: A
1954
+ };
1955
+ return i ? (mn(a, n), r & 128 && e.normalize(a)) : n && (a.shapeFlag |= Z(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && $("VNode created with invalid key (NaN). VNode type:", a.type), Ge > 0 && // avoid a block node from tracking itself
1956
+ !l && // has current parent block
1957
+ ee && // presence of a patch flag indicates this node needs patching on updates.
1958
+ // component nodes also should always be patched, because even if the
1959
+ // component doesn't need to update, it needs to persist the instance on to
1960
+ // the next vnode so that it can be properly unmounted later.
1961
+ (a.patchFlag > 0 || r & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
1962
+ // vnode should not be considered dynamic due to handler caching.
1963
+ a.patchFlag !== 32 && ee.push(a), a;
1964
+ }
1965
+ const L = process.env.NODE_ENV !== "production" ? fr : Ns;
1966
+ function Ns(e, t = null, n = null, o = 0, s = null, r = !1) {
1967
+ if ((!e || e === ms) && (process.env.NODE_ENV !== "production" && !e && $(`Invalid vnode type when creating vnode: ${e}.`), e = gt), ws(e)) {
1968
+ const i = _t(
1969
+ e,
1970
+ t,
1971
+ !0
1972
+ /* mergeRef: true */
1973
+ );
1974
+ return n && mn(i, n), Ge > 0 && !r && ee && (i.shapeFlag & 6 ? ee[ee.indexOf(e)] = i : ee.push(i)), i.patchFlag = -2, i;
1975
+ }
1976
+ if ($s(e) && (e = e.__vccOpts), t) {
1977
+ t = kt(t);
1978
+ let { class: i, style: a } = t;
1979
+ i && !Z(i) && (t.class = M(i)), R(a) && (lt(a) && !w(a) && (a = F({}, a)), t.style = Nt(a));
1980
+ }
1981
+ const l = Z(e) ? 1 : lr(e) ? 128 : Fo(e) ? 64 : R(e) ? 4 : k(e) ? 2 : 0;
1982
+ return process.env.NODE_ENV !== "production" && l & 4 && lt(e) && (e = y(e), $(
1983
+ "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
1984
+ `
1985
+ Component that was made reactive: `,
1986
+ e
1987
+ )), g(
1988
+ e,
1989
+ t,
1990
+ n,
1991
+ o,
1992
+ s,
1993
+ l,
1994
+ r,
1995
+ !0
1996
+ );
1997
+ }
1998
+ function kt(e) {
1999
+ return e ? lt(e) || vs(e) ? F({}, e) : e : null;
2000
+ }
2001
+ function _t(e, t, n = !1, o = !1) {
2002
+ const { props: s, ref: r, patchFlag: l, children: i, transition: a } = e, f = t ? K(s || {}, t) : s, u = {
2003
+ __v_isVNode: !0,
2004
+ __v_skip: !0,
2005
+ type: e.type,
2006
+ props: f,
2007
+ key: f && Es(f),
2008
+ ref: t && t.ref ? (
2009
+ // #2078 in the case of <component :is="vnode" ref="extra"/>
2010
+ // if the vnode itself already has a ref, cloneVNode will need to merge
2011
+ // the refs so the single vnode can be set on multiple refs
2012
+ n && r ? w(r) ? r.concat(rt(t)) : [r, rt(t)] : rt(t)
2013
+ ) : r,
2014
+ scopeId: e.scopeId,
2015
+ slotScopeIds: e.slotScopeIds,
2016
+ children: process.env.NODE_ENV !== "production" && l === -1 && w(i) ? i.map(Ss) : i,
2017
+ target: e.target,
2018
+ targetStart: e.targetStart,
2019
+ targetAnchor: e.targetAnchor,
2020
+ staticCount: e.staticCount,
2021
+ shapeFlag: e.shapeFlag,
2022
+ // if the vnode is cloned with extra props, we can no longer assume its
2023
+ // existing patch flag to be reliable and need to add the FULL_PROPS flag.
2024
+ // note: preserve flag for fragments since they use the flag for children
2025
+ // fast paths only.
2026
+ patchFlag: t && e.type !== D ? l === -1 ? 16 : l | 16 : l,
2027
+ dynamicProps: e.dynamicProps,
2028
+ dynamicChildren: e.dynamicChildren,
2029
+ appContext: e.appContext,
2030
+ dirs: e.dirs,
2031
+ transition: a,
2032
+ // These should technically only be non-null on mounted VNodes. However,
2033
+ // they *should* be copied for kept-alive vnodes. So we just always copy
2034
+ // them since them being non-null during a mount doesn't affect the logic as
2035
+ // they will simply be overwritten.
2036
+ component: e.component,
2037
+ suspense: e.suspense,
2038
+ ssContent: e.ssContent && _t(e.ssContent),
2039
+ ssFallback: e.ssFallback && _t(e.ssFallback),
2040
+ placeholder: e.placeholder,
2041
+ el: e.el,
2042
+ anchor: e.anchor,
2043
+ ctx: e.ctx,
2044
+ ce: e.ce
2045
+ };
2046
+ return a && o && hs(
2047
+ u,
2048
+ a.clone(u)
2049
+ ), u;
2050
+ }
2051
+ function Ss(e) {
2052
+ const t = _t(e);
2053
+ return w(e.children) && (t.children = e.children.map(Ss)), t;
2054
+ }
2055
+ function ne(e = " ", t = 0) {
2056
+ return L(cr, null, e, t);
2057
+ }
2058
+ function j(e = "", t = !1) {
2059
+ return t ? (d(), O(gt, null, e)) : L(gt, null, e);
2060
+ }
2061
+ function mn(e, t) {
2062
+ let n = 0;
2063
+ const { shapeFlag: o } = e;
2064
+ if (t == null)
2065
+ t = null;
2066
+ else if (w(t))
2067
+ n = 16;
2068
+ else if (typeof t == "object")
2069
+ if (o & 65) {
2070
+ const s = t.default;
2071
+ s && (s._c && (s._d = !1), mn(e, s()), s._c && (s._d = !0));
2072
+ return;
2073
+ } else {
2074
+ n = 32;
2075
+ const s = t._;
2076
+ !s && !vs(t) ? t._ctx = A : s === 3 && A && (A.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
2077
+ }
2078
+ else k(t) ? (t = { default: t, _ctx: A }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [ne(t)]) : n = 8);
2079
+ e.children = t, e.shapeFlag |= n;
2080
+ }
2081
+ function K(...e) {
2082
+ const t = {};
2083
+ for (let n = 0; n < e.length; n++) {
2084
+ const o = e[n];
2085
+ for (const s in o)
2086
+ if (s === "class")
2087
+ t.class !== o.class && (t.class = M([t.class, o.class]));
2088
+ else if (s === "style")
2089
+ t.style = Nt([t.style, o.style]);
2090
+ else if (Ps(s)) {
2091
+ const r = t[s], l = o[s];
2092
+ l && r !== l && !(w(r) && r.includes(l)) && (t[s] = r ? [].concat(r, l) : l);
2093
+ } else s !== "" && (t[s] = o[s]);
2094
+ }
2095
+ return t;
2096
+ }
2097
+ let Ne = null;
2098
+ const Dt = () => Ne || A;
2099
+ let Zt;
2100
+ {
2101
+ const e = Et(), t = (n, o) => {
2102
+ let s;
2103
+ return (s = e[n]) || (s = e[n] = []), s.push(o), (r) => {
2104
+ s.length > 1 ? s.forEach((l) => l(r)) : s[0](r);
2105
+ };
2106
+ };
2107
+ Zt = t(
2108
+ "__VUE_INSTANCE_SETTERS__",
2109
+ (n) => Ne = n
2110
+ ), t(
2111
+ "__VUE_SSR_SETTERS__",
2112
+ (n) => Ze = n
2113
+ );
2114
+ }
2115
+ const Os = (e) => {
2116
+ const t = Ne;
2117
+ return Zt(e), e.scope.on(), () => {
2118
+ e.scope.off(), Zt(t);
2119
+ };
2120
+ };
2121
+ function dr(e) {
2122
+ return e.vnode.shapeFlag & 4;
2123
+ }
2124
+ let Ze = !1;
2125
+ process.env.NODE_ENV;
2126
+ function Cs(e) {
2127
+ return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(bo(ho(e.exposed)), {
2128
+ get(t, n) {
2129
+ if (n in t)
2130
+ return t[n];
2131
+ if (n in Ht)
2132
+ return Ht[n](e);
2133
+ },
2134
+ has(t, n) {
2135
+ return n in t || n in Ht;
2136
+ }
2137
+ })) : e.proxy;
2138
+ }
2139
+ const pr = /(?:^|[-_])(\w)/g, hr = (e) => e.replace(pr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
2140
+ function gn(e, t = !0) {
2141
+ return k(e) ? e.displayName || e.name : e.name || t && e.__name;
2142
+ }
2143
+ function xs(e, t, n = !1) {
2144
+ let o = gn(t);
2145
+ if (!o && t.__file) {
2146
+ const s = t.__file.match(/([^/\\]+)\.\w+$/);
2147
+ s && (o = s[1]);
2148
+ }
2149
+ if (!o && e && e.parent) {
2150
+ const s = (r) => {
2151
+ for (const l in r)
2152
+ if (r[l] === t)
2153
+ return l;
2154
+ };
2155
+ o = s(
2156
+ e.components || e.parent.type.components
2157
+ ) || s(e.appContext.components);
2158
+ }
2159
+ return o ? hr(o) : n ? "App" : "Anonymous";
2160
+ }
2161
+ function $s(e) {
2162
+ return k(e) && "__vccOpts" in e;
2163
+ }
2164
+ const B = (e, t) => {
2165
+ const n = Eo(e, t, Ze);
2166
+ if (process.env.NODE_ENV !== "production") {
2167
+ const o = Dt();
2168
+ o && o.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
2169
+ }
2170
+ return n;
2171
+ };
2172
+ function mr() {
2173
+ if (process.env.NODE_ENV === "production" || typeof window > "u")
2174
+ return;
2175
+ const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, o = { style: "color:#eb2f96" }, s = {
2176
+ __vue_custom_formatter: !0,
2177
+ header(c) {
2178
+ if (!R(c))
2179
+ return null;
2180
+ if (c.__isVue)
2181
+ return ["div", e, "VueInstance"];
2182
+ if (W(c)) {
2183
+ Re();
2184
+ const p = c.value;
2185
+ return Pe(), [
2186
+ "div",
2187
+ {},
2188
+ ["span", e, u(c)],
2189
+ "<",
2190
+ i(p),
2191
+ ">"
2192
+ ];
2193
+ } else {
2194
+ if (ye(c))
2195
+ return [
2196
+ "div",
2197
+ {},
2198
+ ["span", e, z(c) ? "ShallowReactive" : "Reactive"],
2199
+ "<",
2200
+ i(c),
2201
+ `>${le(c) ? " (readonly)" : ""}`
2202
+ ];
2203
+ if (le(c))
2204
+ return [
2205
+ "div",
2206
+ {},
2207
+ ["span", e, z(c) ? "ShallowReadonly" : "Readonly"],
2208
+ "<",
2209
+ i(c),
2210
+ ">"
2211
+ ];
2212
+ }
2213
+ return null;
2214
+ },
2215
+ hasBody(c) {
2216
+ return c && c.__isVue;
2217
+ },
2218
+ body(c) {
2219
+ if (c && c.__isVue)
2220
+ return [
2221
+ "div",
2222
+ {},
2223
+ ...r(c.$)
2224
+ ];
2225
+ }
2226
+ };
2227
+ function r(c) {
2228
+ const p = [];
2229
+ c.type.props && c.props && p.push(l("props", y(c.props))), c.setupState !== oe && p.push(l("setup", c.setupState)), c.data !== oe && p.push(l("data", y(c.data)));
2230
+ const h = a(c, "computed");
2231
+ h && p.push(l("computed", h));
2232
+ const E = a(c, "inject");
2233
+ return E && p.push(l("injected", E)), p.push([
2234
+ "div",
2235
+ {},
2236
+ [
2237
+ "span",
2238
+ {
2239
+ style: o.style + ";opacity:0.66"
2240
+ },
2241
+ "$ (internal): "
2242
+ ],
2243
+ ["object", { object: c }]
2244
+ ]), p;
2245
+ }
2246
+ function l(c, p) {
2247
+ return p = F({}, p), Object.keys(p).length ? [
2248
+ "div",
2249
+ { style: "line-height:1.25em;margin-bottom:0.6em" },
2250
+ [
2251
+ "div",
2252
+ {
2253
+ style: "color:#476582"
2254
+ },
2255
+ c
2256
+ ],
2257
+ [
2258
+ "div",
2259
+ {
2260
+ style: "padding-left:1.25em"
2261
+ },
2262
+ ...Object.keys(p).map((h) => [
2263
+ "div",
2264
+ {},
2265
+ ["span", o, h + ": "],
2266
+ i(p[h], !1)
2267
+ ])
2268
+ ]
2269
+ ] : ["span", {}];
2270
+ }
2271
+ function i(c, p = !0) {
2272
+ return typeof c == "number" ? ["span", t, c] : typeof c == "string" ? ["span", n, JSON.stringify(c)] : typeof c == "boolean" ? ["span", o, c] : R(c) ? ["object", { object: p ? y(c) : c }] : ["span", n, String(c)];
2273
+ }
2274
+ function a(c, p) {
2275
+ const h = c.type;
2276
+ if (k(h))
2277
+ return;
2278
+ const E = {};
2279
+ for (const v in c.ctx)
2280
+ f(h, v, p) && (E[v] = c.ctx[v]);
2281
+ return E;
2282
+ }
2283
+ function f(c, p, h) {
2284
+ const E = c[h];
2285
+ if (w(E) && E.includes(p) || R(E) && p in E || c.extends && f(c.extends, p, h) || c.mixins && c.mixins.some((v) => f(v, p, h)))
2286
+ return !0;
2287
+ }
2288
+ function u(c) {
2289
+ return z(c) ? "ShallowRef" : c.effect ? "ComputedRef" : "Ref";
2290
+ }
2291
+ window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
2292
+ }
2293
+ const ks = process.env.NODE_ENV !== "production" ? $ : $e;
2294
+ process.env.NODE_ENV;
2295
+ process.env.NODE_ENV;
2296
+ /**
2297
+ * @vue/runtime-dom v3.5.18
2298
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
2299
+ * @license MIT
2300
+ **/
2301
+ let gr;
2302
+ const Rn = typeof window < "u" && window.trustedTypes;
2303
+ if (Rn)
2304
+ try {
2305
+ gr = /* @__PURE__ */ Rn.createPolicy("vue", {
2306
+ createHTML: (e) => e
2307
+ });
2308
+ } catch (e) {
2309
+ process.env.NODE_ENV !== "production" && ks(`Error creating trusted types policy: ${e}`);
2310
+ }
2311
+ process.env.NODE_ENV;
2312
+ Symbol(process.env.NODE_ENV !== "production" ? "CSS_VAR_TEXT" : "");
2313
+ function xe(e, t, n, o) {
2314
+ e.addEventListener(t, n, o);
2315
+ }
2316
+ const bt = (e) => {
2317
+ const t = e.props["onUpdate:modelValue"] || !1;
2318
+ return w(t) ? (n) => Hs(t, n) : t;
2319
+ };
2320
+ function _r(e) {
2321
+ e.target.composing = !0;
2322
+ }
2323
+ function Pn(e) {
2324
+ const t = e.target;
2325
+ t.composing && (t.composing = !1, t.dispatchEvent(new Event("input")));
2326
+ }
2327
+ const De = Symbol("_assign"), br = {
2328
+ created(e, { modifiers: { lazy: t, trim: n, number: o } }, s) {
2329
+ e[De] = bt(s);
2330
+ const r = o || s.props && s.props.type === "number";
2331
+ xe(e, t ? "change" : "input", (l) => {
2332
+ if (l.target.composing) return;
2333
+ let i = e.value;
2334
+ n && (i = i.trim()), r && (i = Ut(i)), e[De](i);
2335
+ }), n && xe(e, "change", () => {
2336
+ e.value = e.value.trim();
2337
+ }), t || (xe(e, "compositionstart", _r), xe(e, "compositionend", Pn), xe(e, "change", Pn));
2338
+ },
2339
+ // set value on mounted so it's after min/max for type="range"
2340
+ mounted(e, { value: t }) {
2341
+ e.value = t ?? "";
2342
+ },
2343
+ beforeUpdate(e, { value: t, oldValue: n, modifiers: { lazy: o, trim: s, number: r } }, l) {
2344
+ if (e[De] = bt(l), e.composing) return;
2345
+ const i = (r || e.type === "number") && !/^0\d/.test(e.value) ? Ut(e.value) : e.value, a = t ?? "";
2346
+ i !== a && (document.activeElement === e && e.type !== "range" && (o && t === n || s && e.value.trim() === a) || (e.value = a));
2347
+ }
2348
+ }, vr = {
2349
+ // <select multiple> value need to be deep traversed
2350
+ deep: !0,
2351
+ created(e, { value: t, modifiers: { number: n } }, o) {
2352
+ const s = yt(t);
2353
+ xe(e, "change", () => {
2354
+ const r = Array.prototype.filter.call(e.options, (l) => l.selected).map(
2355
+ (l) => n ? Ut(vt(l)) : vt(l)
2356
+ );
2357
+ e[De](
2358
+ e.multiple ? s ? new Set(r) : r : r[0]
2359
+ ), e._assigning = !0, ls(() => {
2360
+ e._assigning = !1;
2361
+ });
2362
+ }), e[De] = bt(o);
2363
+ },
2364
+ // set value in mounted & updated because <select> relies on its children
2365
+ // <option>s.
2366
+ mounted(e, { value: t }) {
2367
+ In(e, t);
2368
+ },
2369
+ beforeUpdate(e, t, n) {
2370
+ e[De] = bt(n);
2371
+ },
2372
+ updated(e, { value: t }) {
2373
+ e._assigning || In(e, t);
2374
+ }
2375
+ };
2376
+ function In(e, t) {
2377
+ const n = e.multiple, o = w(t);
2378
+ if (n && !o && !yt(t)) {
2379
+ process.env.NODE_ENV !== "production" && ks(
2380
+ `<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(t).slice(8, -1)}.`
2381
+ );
2382
+ return;
2383
+ }
2384
+ for (let s = 0, r = e.options.length; s < r; s++) {
2385
+ const l = e.options[s], i = vt(l);
2386
+ if (n)
2387
+ if (o) {
2388
+ const a = typeof i;
2389
+ a === "string" || a === "number" ? l.selected = t.some((f) => String(f) === String(i)) : l.selected = qs(t, i) > -1;
2390
+ } else
2391
+ l.selected = t.has(i);
2392
+ else if (St(vt(l), t)) {
2393
+ e.selectedIndex !== s && (e.selectedIndex = s);
2394
+ return;
2395
+ }
2396
+ }
2397
+ !n && e.selectedIndex !== -1 && (e.selectedIndex = -1);
2398
+ }
2399
+ function vt(e) {
2400
+ return "_value" in e ? e._value : e.value;
2401
+ }
2402
+ /**
2403
+ * vue v3.5.18
2404
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
2405
+ * @license MIT
2406
+ **/
2407
+ function yr() {
2408
+ mr();
2409
+ }
2410
+ process.env.NODE_ENV !== "production" && yr();
2411
+ const q = (...e) => `<svg
2412
+ xmlns="http://www.w3.org/2000/svg"
2413
+ fill="none"
2414
+ viewBox="0 0 24 24"
2415
+ stroke-width="1.5"
2416
+ stroke="currentColor" >
2417
+ ${e.map(
2418
+ (n) => ` <path
2419
+ stroke-linejoin="round"
2420
+ stroke-linecap="round"
2421
+ d="${n}"
2422
+ />`
2423
+ ).join(`
2424
+ `)}
2425
+ </svg>`;
2426
+ var ge = /* @__PURE__ */ ((e) => (e.Edit = "Edit", e.Delete = "Delete", e.BarsArrowDown = "BarsArrowDown", e.BarsArrowUp = "BarsArrowUp", e.Funnel = "Funnel", e.Close = "Close", e.Plus = "Plus", e.PaperClip = "PaperClip", e.Hamburger = "Hamburger", e.ChevronDown = "ChevronDown", e.ChevronUp = "ChevronUp", e.Check = "Check", e.View = "View", e.Text = "Text", e))(ge || {});
2427
+ const wr = {
2428
+ Edit: q(
2429
+ "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"
2430
+ ),
2431
+ Delete: q(
2432
+ "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"
2433
+ ),
2434
+ BarsArrowDown: q(
2435
+ "M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0-3.75-3.75M17.25 21 21 17.25"
2436
+ ),
2437
+ BarsArrowUp: q(
2438
+ "M3 4.5h14.25M3 9h9.75M3 13.5h5.25m5.25-.75L17.25 9m0 0L21 12.75M17.25 9v12"
2439
+ ),
2440
+ Funnel: q(
2441
+ "M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"
2442
+ ),
2443
+ Close: q("M6 18 18 6M6 6l12 12"),
2444
+ Plus: q("M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"),
2445
+ PaperClip: q(
2446
+ "m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"
2447
+ ),
2448
+ Hamburger: q("M4 6h16M4 12h16M4 18h16"),
2449
+ ChevronDown: q(
2450
+ "M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z"
2451
+ ),
2452
+ ChevronUp: q(
2453
+ "M11.47 7.72a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 0 1-1.06-1.06l7.5-7.5Z"
2454
+ ),
2455
+ Check: q("m4.5 12.75 6 6 9-13.5"),
2456
+ View: q(
2457
+ "M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z",
2458
+ "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
2459
+ ),
2460
+ Text: q(
2461
+ "M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"
2462
+ )
2463
+ }, Er = ["innerHTML"], Ie = /* @__PURE__ */ V({
2464
+ __name: "icon",
2465
+ props: {
2466
+ icon: {},
2467
+ size: {}
2468
+ },
2469
+ setup(e) {
2470
+ return (t, n) => (d(), _("div", {
2471
+ class: M([
2472
+ {
2473
+ "w-full h-full": !t.size,
2474
+ "w-2 h-2": t.size === "xs",
2475
+ "w-4 h-4": t.size === "sm"
2476
+ }
2477
+ ]),
2478
+ innerHTML: x(wr)[t.icon]
2479
+ }, null, 10, Er));
2480
+ }
2481
+ }), Nr = { class: "dropdown dropdown-end" }, Sr = {
2482
+ tabindex: "0",
2483
+ class: "menu dropdown-content bg-white z-1 mt-4 p-2 shadow-sm"
2484
+ }, Or = { class: "min-w-max flex-no-wrap text-black" }, _n = /* @__PURE__ */ V({
2485
+ __name: "sub-menu",
2486
+ props: {
2487
+ label: {},
2488
+ items: {},
2489
+ action: { type: Function },
2490
+ disabled: { type: Boolean },
2491
+ btnClass: {},
2492
+ disableArrow: { type: Boolean }
2493
+ },
2494
+ setup(e) {
2495
+ return (t, n) => (d(), _("div", Nr, [
2496
+ g("div", {
2497
+ tabindex: "0",
2498
+ role: "button",
2499
+ class: M([t.btnClass, "btn btn-ghost text-right flex-nowrap flex"])
2500
+ }, [
2501
+ g("span", null, S(t.label), 1),
2502
+ t.disableArrow ? j("", !0) : (d(), O(x(Ie), {
2503
+ key: 0,
2504
+ icon: x(ge).ChevronDown,
2505
+ size: "sm"
2506
+ }, null, 8, ["icon"]))
2507
+ ], 2),
2508
+ g("ul", Sr, [
2509
+ g("li", Or, [
2510
+ (d(!0), _(D, null, G(t.items, (o) => (d(), O(Ds, K({
2511
+ key: o.label
2512
+ }, { ref_for: !0 }, o), null, 16))), 128))
2513
+ ])
2514
+ ])
2515
+ ]));
2516
+ }
2517
+ }), st = "btn btn-ghost text-left justify-between min-w-max font-normal", Ds = /* @__PURE__ */ V({
2518
+ __name: "menu-item",
2519
+ props: {
2520
+ label: {},
2521
+ items: {},
2522
+ action: {},
2523
+ disabled: { type: Boolean, default: !1 }
2524
+ },
2525
+ setup(e) {
2526
+ const t = e, n = B(() => !t.disabled && t.action && "routerLink" in t.action), o = B(() => !t.disabled && t.action), s = B(() => {
2527
+ var i;
2528
+ return (i = t.items) == null ? void 0 : i.length;
2529
+ }), r = B(() => {
2530
+ const i = t.action;
2531
+ return i && "routerLink" in i && "params" in i ? {
2532
+ name: i.routerLink,
2533
+ params: i.params
2534
+ } : "";
2535
+ }), l = () => {
2536
+ var i;
2537
+ (i = t.action) == null || i.call(t);
2538
+ };
2539
+ return (i, a) => {
2540
+ const f = un("RouterLink");
2541
+ return s.value ? (d(), O(_n, K({ key: 0 }, t, { "btn-class": st }), null, 16)) : n.value ? (d(), O(f, {
2542
+ key: 1,
2543
+ to: r.value,
2544
+ class: M(st),
2545
+ onClick: l
2546
+ }, {
2547
+ default: X(() => [
2548
+ ne(S(i.label), 1)
2549
+ ]),
2550
+ _: 1
2551
+ }, 8, ["to"])) : o.value ? (d(), _("button", {
2552
+ key: 2,
2553
+ class: M(st),
2554
+ onClick: l
2555
+ }, S(i.label), 1)) : (d(), _("div", {
2556
+ key: 3,
2557
+ class: M([st, { "btn-disabled": i.disabled }])
2558
+ }, S(i.label), 3));
2559
+ };
2560
+ }
2561
+ }), Cr = { class: "navbar bg-base-100 shadow-sm" }, xr = { class: "flex-1" }, $r = {
2562
+ key: 0,
2563
+ class: "breadcrumbs text-sm"
2564
+ }, kr = { class: "flex grow justify-end px-2" }, Dr = { class: "flex items-stretch" }, Wi = /* @__PURE__ */ V({
2565
+ __name: "menu",
2566
+ props: {
2567
+ menu: {},
2568
+ breadcrumbs: {}
2569
+ },
2570
+ setup(e) {
2571
+ return (t, n) => {
2572
+ const o = un("RouterLink");
2573
+ return d(), _("nav", Cr, [
2574
+ g("div", xr, [
2575
+ t.breadcrumbs ? (d(), _("div", $r, [
2576
+ g("ul", null, [
2577
+ (d(!0), _(D, null, G(t.breadcrumbs, (s) => (d(), _("li", {
2578
+ key: s.label
2579
+ }, [
2580
+ s.routerLink ? (d(), O(o, {
2581
+ key: 0,
2582
+ to: { name: s.routerLink, params: s.params }
2583
+ }, {
2584
+ default: X(() => [
2585
+ ne(S(s.label), 1)
2586
+ ]),
2587
+ _: 2
2588
+ }, 1032, ["to"])) : (d(), _(D, { key: 1 }, [
2589
+ ne(S(s.label), 1)
2590
+ ], 64))
2591
+ ]))), 128))
2592
+ ])
2593
+ ])) : j("", !0)
2594
+ ]),
2595
+ g("div", kr, [
2596
+ g("div", Dr, [
2597
+ (d(!0), _(D, null, G(t.menu, (s) => (d(), O(Ds, K({
2598
+ key: s.label
2599
+ }, { ref_for: !0 }, s), null, 16))), 128))
2600
+ ])
2601
+ ])
2602
+ ]);
2603
+ };
2604
+ }
2605
+ }), qi = /* @__PURE__ */ V({
2606
+ __name: "dropdown",
2607
+ props: {
2608
+ items: {}
2609
+ },
2610
+ setup(e) {
2611
+ const t = fe(!0);
2612
+ return (n, o) => (d(), O(_n, {
2613
+ items: n.items,
2614
+ label: "test",
2615
+ open: t.value,
2616
+ "btn-class": "",
2617
+ "disable-arrow": !0
2618
+ }, null, 8, ["items", "open"]));
2619
+ }
2620
+ }), P = [];
2621
+ for (let e = 0; e < 256; ++e)
2622
+ P.push((e + 256).toString(16).slice(1));
2623
+ function Vr(e, t = 0) {
2624
+ return (P[e[t + 0]] + P[e[t + 1]] + P[e[t + 2]] + P[e[t + 3]] + "-" + P[e[t + 4]] + P[e[t + 5]] + "-" + P[e[t + 6]] + P[e[t + 7]] + "-" + P[e[t + 8]] + P[e[t + 9]] + "-" + P[e[t + 10]] + P[e[t + 11]] + P[e[t + 12]] + P[e[t + 13]] + P[e[t + 14]] + P[e[t + 15]]).toLowerCase();
2625
+ }
2626
+ let Ft;
2627
+ const Tr = new Uint8Array(16);
2628
+ function Mr() {
2629
+ if (!Ft) {
2630
+ if (typeof crypto > "u" || !crypto.getRandomValues)
2631
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2632
+ Ft = crypto.getRandomValues.bind(crypto);
2633
+ }
2634
+ return Ft(Tr);
2635
+ }
2636
+ const Rr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), An = { randomUUID: Rr };
2637
+ function Vt(e, t, n) {
2638
+ var s;
2639
+ if (An.randomUUID && !e)
2640
+ return An.randomUUID();
2641
+ e = e || {};
2642
+ const o = e.random ?? ((s = e.rng) == null ? void 0 : s.call(e)) ?? Mr();
2643
+ if (o.length < 16)
2644
+ throw new Error("Random bytes length must be >= 16");
2645
+ return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Vr(o);
2646
+ }
2647
+ const Pr = { class: "font-bold" }, Ir = { class: "pt-4" }, Ar = { class: "modal-action" }, Lr = /* @__PURE__ */ V({
2648
+ __name: "modal",
2649
+ props: {
2650
+ modalTitle: {},
2651
+ buttonLabel: {},
2652
+ buttonSaveLabel: {},
2653
+ data: {},
2654
+ open: { type: Boolean, default: !1 },
2655
+ disableClose: { type: Boolean, default: !1 },
2656
+ width: { default: "sm" }
2657
+ },
2658
+ emits: ["closeModal"],
2659
+ setup(e, { expose: t, emit: n }) {
2660
+ const o = {
2661
+ xs: "max-w-xs w-[50VW]",
2662
+ sm: "max-w-sm w-[50VW]",
2663
+ lg: "max-w-2xl w-[80VW]",
2664
+ xl: "max-w-[80VW] w-[80VW]"
2665
+ }, s = e, r = `modal_${Vt()}`, l = n, i = () => {
2666
+ const f = document.getElementById(r);
2667
+ f == null || f.showModal();
2668
+ }, a = () => {
2669
+ const f = document.getElementById(r);
2670
+ f == null || f.close(), l("closeModal");
2671
+ };
2672
+ return t({ closeModal: a, openModal: i }), Gt(
2673
+ () => s.open,
2674
+ (f, u, c) => {
2675
+ s.open ? i() : a();
2676
+ }
2677
+ ), zo(() => {
2678
+ s.open && i();
2679
+ }), (f, u) => (d(), _("dialog", {
2680
+ id: r,
2681
+ class: "modal"
2682
+ }, [
2683
+ g("div", {
2684
+ class: M(["modal-box bg-white", o[f.width]])
2685
+ }, [
2686
+ f.disableClose ? j("", !0) : (d(), _("button", {
2687
+ key: 0,
2688
+ type: "button",
2689
+ class: "btn btn-sm btn-circle btn-ghost absolute right-2 top-2",
2690
+ onClick: a
2691
+ }, " ✕ ")),
2692
+ g("h3", Pr, S(f.modalTitle), 1),
2693
+ g("div", Ir, [
2694
+ re(f.$slots, "content")
2695
+ ]),
2696
+ g("div", Ar, [
2697
+ re(f.$slots, "actions")
2698
+ ])
2699
+ ], 2)
2700
+ ]));
2701
+ }
2702
+ });
2703
+ var bn = /* @__PURE__ */ ((e) => (e.button = "button", e.submit = "submit", e.reset = "reset", e))(bn || {}), Vs = /* @__PURE__ */ ((e) => (e.a = "a", e.button = "button", e))(Vs || {}), Ve = /* @__PURE__ */ ((e) => (e.blank = "blank", e.primary = "primary", e.secondary = "secondary", e.error = "error", e))(Ve || {});
2704
+ const Br = {
2705
+ blank: "btn-ghost",
2706
+ primary: "btn-primary",
2707
+ secondary: "btn-soft btn-primary",
2708
+ error: "btn-error text-white"
2709
+ }, Hr = {
2710
+ blank: "badge-ghost",
2711
+ primary: "badge-primary",
2712
+ secondary: "badge-soft badge-primary",
2713
+ error: "badge-error"
2714
+ }, Fr = {
2715
+ xs: "btn-xs",
2716
+ sm: "btn-sm",
2717
+ lg: "btn-sm",
2718
+ xl: "btn"
2719
+ }, jr = {
2720
+ xs: "badge-xs text-xxs",
2721
+ sm: "badge-sm text-xs",
2722
+ lg: "badge-sm text-xs",
2723
+ xl: "badge text-xs"
2724
+ }, Te = /* @__PURE__ */ V({
2725
+ __name: "btn",
2726
+ props: {
2727
+ href: {},
2728
+ disabled: { type: Boolean, default: !1 },
2729
+ as: { default: Vs.button },
2730
+ icon: {},
2731
+ type: { default: bn.button },
2732
+ outline: { type: Boolean, default: !1 },
2733
+ color: { default: Ve.primary },
2734
+ size: { default: "sm" },
2735
+ square: { type: Boolean, default: !1 }
2736
+ },
2737
+ emits: ["click"],
2738
+ setup(e, { emit: t }) {
2739
+ const n = e, o = t;
2740
+ return (s, r) => (d(), O(fn(s.as), K({
2741
+ class: [
2742
+ "btn p-1 flex justify-center flex-nowrap",
2743
+ x(Br)[s.color],
2744
+ x(Fr)[s.size],
2745
+ { "btn-outline": s.outline, "btn-square": s.square }
2746
+ ]
2747
+ }, n, {
2748
+ onClick: r[0] || (r[0] = (l) => o("click"))
2749
+ }), {
2750
+ default: X(() => [
2751
+ s.icon ? (d(), O(x(Ie), {
2752
+ key: 0,
2753
+ icon: s.icon,
2754
+ size: s.size
2755
+ }, null, 8, ["icon", "size"])) : j("", !0),
2756
+ re(s.$slots, "default")
2757
+ ]),
2758
+ _: 3
2759
+ }, 16, ["class"]));
2760
+ }
2761
+ }), Ur = ["type", "disabled"], Ji = /* @__PURE__ */ V({
2762
+ __name: "btn-badge",
2763
+ props: {
2764
+ icon: { default: void 0 },
2765
+ type: { default: bn.button },
2766
+ color: { default: void 0 },
2767
+ disabled: { type: Boolean, default: !1 },
2768
+ size: { default: "sm" }
2769
+ },
2770
+ emits: ["click"],
2771
+ setup(e, { emit: t }) {
2772
+ const n = t;
2773
+ return (o, s) => (d(), _("button", {
2774
+ class: M(["badge gap-1", x(jr)[o.size], x(Hr)[o.color]]),
2775
+ type: o.type,
2776
+ disabled: o.disabled,
2777
+ onClick: s[0] || (s[0] = (r) => n("click"))
2778
+ }, [
2779
+ re(o.$slots, "default"),
2780
+ o.icon ? (d(), O(x(Ie), {
2781
+ key: 0,
2782
+ icon: o.icon,
2783
+ size: o.size
2784
+ }, null, 8, ["icon", "size"])) : j("", !0)
2785
+ ], 10, Ur));
2786
+ }
2787
+ }), Kr = /* @__PURE__ */ V({
2788
+ __name: "confirmModal",
2789
+ props: {
2790
+ title: {},
2791
+ message: {},
2792
+ confirmLabel: { default: "Ok" },
2793
+ cancelLabel: { default: "Cancel" }
2794
+ },
2795
+ emits: ["closeModal"],
2796
+ setup(e, { emit: t }) {
2797
+ const n = t, o = (s) => {
2798
+ n("closeModal", { confirmed: s });
2799
+ };
2800
+ return (s, r) => (d(), O(Lr, {
2801
+ "modal-title": s.title,
2802
+ open: !0,
2803
+ "disable-close": !0
2804
+ }, {
2805
+ content: X(() => [
2806
+ ne(S(s.message), 1)
2807
+ ]),
2808
+ actions: X(() => [
2809
+ L(x(Te), {
2810
+ color: x(Ve).secondary,
2811
+ outline: !0,
2812
+ onClick: r[0] || (r[0] = (l) => o(!1))
2813
+ }, {
2814
+ default: X(() => [
2815
+ ne(S(s.cancelLabel), 1)
2816
+ ]),
2817
+ _: 1
2818
+ }, 8, ["color"]),
2819
+ L(x(Te), {
2820
+ onClick: r[1] || (r[1] = (l) => o(!0))
2821
+ }, {
2822
+ default: X(() => [
2823
+ ne(S(s.confirmLabel), 1)
2824
+ ]),
2825
+ _: 1
2826
+ })
2827
+ ]),
2828
+ _: 1
2829
+ }, 8, ["modal-title"]));
2830
+ }
2831
+ });
2832
+ class vn {
2833
+ constructor() {
2834
+ this.showModal = fe(!1), this.modals = [];
2835
+ }
2836
+ openModal(t) {
2837
+ const n = t.props.onClose, o = Vt(), s = t;
2838
+ t.props.onClose = (r) => {
2839
+ n(r), this.closeModal(o);
2840
+ }, s.id = o, this.modals = [...this.modals, s], this.showModal.value = Date.now();
2841
+ }
2842
+ closeModal(t) {
2843
+ this.modals = this.modals.filter((n) => n.id !== t), this.showModal.value = Date.now();
2844
+ }
2845
+ static showConfirm(t) {
2846
+ this.getInstance().openModal({
2847
+ component: Kr,
2848
+ props: t
2849
+ });
2850
+ }
2851
+ static openModal(t) {
2852
+ this.getInstance().openModal(t);
2853
+ }
2854
+ static getInstance() {
2855
+ return this.instance || (this.instance = new vn()), this.instance;
2856
+ }
2857
+ static closeAll() {
2858
+ this.instance.closeAll();
2859
+ }
2860
+ closeAll() {
2861
+ this.modals = [], this.showModal.value = !1;
2862
+ }
2863
+ }
2864
+ const zr = /* @__PURE__ */ V({
2865
+ __name: "modalWrapper",
2866
+ setup(e) {
2867
+ const t = vn.getInstance(), n = B(() => t.showModal.value ? t.modals : []);
2868
+ return (o, s) => (d(!0), _(D, null, G(n.value, (r) => {
2869
+ var l;
2870
+ return d(), O(fn(r == null ? void 0 : r.component), K({
2871
+ key: r.id,
2872
+ ref_for: !0
2873
+ }, r == null ? void 0 : r.props, {
2874
+ open: !0,
2875
+ onCloseModal: (l = r == null ? void 0 : r.props) == null ? void 0 : l.onClose
2876
+ }), null, 16, ["onCloseModal"]);
2877
+ }), 128));
2878
+ }
2879
+ }), Wr = /* @__PURE__ */ V({
2880
+ __name: "notification-message",
2881
+ props: {
2882
+ message: {},
2883
+ type: {}
2884
+ },
2885
+ setup(e) {
2886
+ const t = {
2887
+ success: "alert-success",
2888
+ error: "alert-error",
2889
+ warning: "alert-warning",
2890
+ info: "alert-info"
2891
+ };
2892
+ return (n, o) => (d(), _("div", {
2893
+ role: "alert",
2894
+ class: M(`alert ${t[n.type]} `)
2895
+ }, [
2896
+ g("span", null, S(n.message), 1)
2897
+ ], 2));
2898
+ }
2899
+ }), qr = 5e3;
2900
+ class yn {
2901
+ constructor() {
2902
+ this.notifications = fe([]), this.addNotification = (t, n = "info") => {
2903
+ const o = {
2904
+ id: Vt(),
2905
+ duration: qr,
2906
+ message: t,
2907
+ type: n
2908
+ };
2909
+ this.notifications.value.push(o), this.removeNotificationAfterDuration(o);
2910
+ }, this.removeNotificationAfterDuration = (t) => {
2911
+ setTimeout(() => {
2912
+ this.removeNotification(t.id);
2913
+ }, t.duration);
2914
+ }, this.removeNotification = (t) => {
2915
+ this.notifications.value = this.notifications.value.filter((n) => n.id !== t);
2916
+ };
2917
+ }
2918
+ static getInstance() {
2919
+ return this.instance || (this.instance = new yn()), this.instance;
2920
+ }
2921
+ static info(t) {
2922
+ this.getInstance().addNotification(t, "info");
2923
+ }
2924
+ static success(t) {
2925
+ this.getInstance().addNotification(t, "success");
2926
+ }
2927
+ static warning(t) {
2928
+ this.getInstance().addNotification(t, "warning");
2929
+ }
2930
+ static error(t) {
2931
+ this.getInstance().addNotification(t, "error");
2932
+ }
2933
+ static removeNotification(t) {
2934
+ this.getInstance().removeNotification(t);
2935
+ }
2936
+ }
2937
+ const Jr = { class: "toast toast-top toast-center z-[999]" }, Yr = /* @__PURE__ */ V({
2938
+ __name: "notifications",
2939
+ setup(e) {
2940
+ const t = yn.getInstance();
2941
+ return (n, o) => (d(), _("div", Jr, [
2942
+ (d(!0), _(D, null, G(x(t).notifications.value, (s) => (d(), O(Wr, K({
2943
+ key: s.id
2944
+ }, { ref_for: !0 }, s), null, 16))), 128))
2945
+ ]));
2946
+ }
2947
+ }), Gr = { class: "drawer" }, Zr = { class: "drawer-content flex flex-col h-[100VH]" }, Qr = { class: "navbar bg-primary text-primary-content w-full z-100" }, Xr = { class: "navbar-start" }, ei = {
2948
+ for: "my-drawer-3",
2949
+ "aria-label": "open sidebar",
2950
+ class: "btn btn-square btn-ghost p-1"
2951
+ }, ti = { class: "navbar-center" }, ni = ["href"], si = { class: "navbar-end" }, oi = { class: "p-2 bg-white mb-1 mr-1 flex-1 shadow-sm" }, ri = { class: "drawer-side no-overflow" }, ii = { class: "menu min-h-full h-full flex-col space-between m-0 !p-0 !pt-16" }, li = { class: "flex-grow-1 w-52 bg-base-200 p-4" }, ai = { class: "bg-base-200 p-4" }, Yi = /* @__PURE__ */ V({
2952
+ __name: "shell.component",
2953
+ props: {
2954
+ title: {},
2955
+ menu: {},
2956
+ user: {},
2957
+ version: {}
2958
+ },
2959
+ emits: ["logout"],
2960
+ setup(e, { emit: t }) {
2961
+ const o = e, s = t, r = B(() => o.user ? {
2962
+ label: o.user.name,
2963
+ items: [
2964
+ {
2965
+ label: "Logout",
2966
+ action: () => {
2967
+ s("logout");
2968
+ }
2969
+ }
2970
+ ]
2971
+ } : null);
2972
+ return (l, i) => {
2973
+ const a = un("RouterLink");
2974
+ return d(), _(D, null, [
2975
+ L(Yr),
2976
+ L(x(zr)),
2977
+ g("div", Gr, [
2978
+ i[1] || (i[1] = g("input", {
2979
+ id: "my-drawer-3",
2980
+ type: "checkbox",
2981
+ class: "drawer-toggle"
2982
+ }, null, -1)),
2983
+ g("div", Zr, [
2984
+ g("nav", Qr, [
2985
+ g("div", Xr, [
2986
+ g("label", ei, [
2987
+ L(x(Ie), {
2988
+ icon: x(ge).Hamburger
2989
+ }, null, 8, ["icon"])
2990
+ ])
2991
+ ]),
2992
+ g("div", ti, [
2993
+ g("a", {
2994
+ class: "btn btn-ghost text-xl",
2995
+ href: x("/")
2996
+ }, S(l.title), 9, ni)
2997
+ ]),
2998
+ g("div", si, [
2999
+ r.value ? (d(), O(x(_n), K({ key: 0 }, r.value, { "btn-class": "" }), null, 16)) : j("", !0)
3000
+ ])
3001
+ ]),
3002
+ g("div", oi, [
3003
+ re(l.$slots, "default")
3004
+ ])
3005
+ ]),
3006
+ g("div", ri, [
3007
+ i[0] || (i[0] = g("label", {
3008
+ for: "my-drawer-3",
3009
+ "aria-label": "close sidebar",
3010
+ class: "drawer-overlay"
3011
+ }, null, -1)),
3012
+ g("div", ii, [
3013
+ g("ul", li, [
3014
+ (d(!0), _(D, null, G(l.menu, (f) => (d(), _("li", {
3015
+ key: f.label
3016
+ }, [
3017
+ L(a, {
3018
+ to: { name: f.routerLink, params: f.params }
3019
+ }, {
3020
+ default: X(() => [
3021
+ ne(S(f.label), 1)
3022
+ ]),
3023
+ _: 2
3024
+ }, 1032, ["to"])
3025
+ ]))), 128))
3026
+ ]),
3027
+ g("div", ai, " version: " + S(l.version), 1)
3028
+ ])
3029
+ ])
3030
+ ])
3031
+ ], 64);
3032
+ };
3033
+ }
3034
+ }), Be = /* @__PURE__ */ V({
3035
+ __name: "pagination-button.component",
3036
+ props: {
3037
+ currentPage: {},
3038
+ page: {},
3039
+ label: {},
3040
+ neverActive: { type: Boolean, default: !1 },
3041
+ disabled: { type: Boolean }
3042
+ },
3043
+ emits: ["updatePage", "updatePageSize"],
3044
+ setup(e, { emit: t }) {
3045
+ const n = e, o = t, s = B(
3046
+ () => n.neverActive ? !1 : n.page === n.currentPage
3047
+ ), r = B(() => n.neverActive ? Ve.blank : s.value ? Ve.primary : Ve.secondary), l = () => {
3048
+ o("updatePage", n.page);
3049
+ };
3050
+ return (i, a) => (d(), O(x(Te), {
3051
+ disabled: i.disabled,
3052
+ square: !0,
3053
+ size: "xs",
3054
+ color: r.value,
3055
+ onClick: a[0] || (a[0] = (f) => l())
3056
+ }, {
3057
+ default: X(() => [
3058
+ ne(S(i.label), 1)
3059
+ ]),
3060
+ _: 1
3061
+ }, 8, ["disabled", "color"]));
3062
+ }
3063
+ }), ci = { class: "flex gap-2" }, ui = { class: "flex flex-1 justify-center items-center" }, fi = { class: "flex gap-1" }, di = { class: "text-sm" }, He = 6, pi = /* @__PURE__ */ V({
3064
+ __name: "pagination.component",
3065
+ props: {
3066
+ totalItems: { type: Number, default: 0 },
3067
+ itemsPerPage: { type: Number, default: 1 },
3068
+ currentPage: { type: Number, default: 1 }
3069
+ },
3070
+ emits: ["updatePage", "updatePageSize"],
3071
+ setup(e, { emit: t }) {
3072
+ const n = e, o = t, s = B(() => {
3073
+ let u = Math.ceil(n.totalItems / n.itemsPerPage);
3074
+ return u < 1 ? 1 : u;
3075
+ }), r = He / 2, l = B(() => {
3076
+ if (s.value <= He)
3077
+ return {
3078
+ min: 1,
3079
+ max: s.value
3080
+ };
3081
+ let u = n.currentPage - r;
3082
+ u <= 1 ? u = 1 : u + He > s.value && (u = s.value - He);
3083
+ let c = u + He;
3084
+ return {
3085
+ min: u,
3086
+ max: c
3087
+ };
3088
+ }), i = (u) => ({
3089
+ label: "...",
3090
+ currentPage: u,
3091
+ page: -10,
3092
+ disabled: !0,
3093
+ neverActive: !0
3094
+ }), a = B(() => {
3095
+ let u = s.value;
3096
+ u < 1 && (u = 1);
3097
+ const c = n.currentPage, p = [], { min: h, max: E } = l.value;
3098
+ return Array.from({ length: u }, (v, H) => {
3099
+ const m = H + 1;
3100
+ m !== 1 && m !== u && (m > E || m < h) || (m === u && u > 1 && E < u && p.push(i(c)), p.push({
3101
+ label: `${m}`,
3102
+ totalPages: u,
3103
+ currentPage: c,
3104
+ page: m
3105
+ }), m === 1 && u > 1 && h > 1 && p.push(i(c)));
3106
+ }), p;
3107
+ }), f = (u) => {
3108
+ o("updatePage", u);
3109
+ };
3110
+ return (u, c) => (d(), _("div", ci, [
3111
+ g("div", ui, [
3112
+ g("div", fi, [
3113
+ L(Be, K(n, {
3114
+ page: 1,
3115
+ label: "<<",
3116
+ "current-page": e.currentPage,
3117
+ "never-active": !0,
3118
+ disabled: e.currentPage === 1,
3119
+ onUpdatePage: f
3120
+ }), null, 16, ["current-page", "disabled"]),
3121
+ L(Be, K(n, {
3122
+ page: e.currentPage - 1,
3123
+ label: "<",
3124
+ "current-page": e.currentPage,
3125
+ "never-active": !0,
3126
+ disabled: e.currentPage === 1,
3127
+ onUpdatePage: f
3128
+ }), null, 16, ["page", "current-page", "disabled"]),
3129
+ (d(!0), _(D, null, G(a.value, (p) => (d(), O(Be, K({
3130
+ key: p.page,
3131
+ ref_for: !0
3132
+ }, p, { onUpdatePage: f }), null, 16))), 128)),
3133
+ L(Be, K(n, {
3134
+ page: e.currentPage + 1,
3135
+ label: ">",
3136
+ "current-page": e.currentPage,
3137
+ "never-active": !0,
3138
+ disabled: n.currentPage === s.value,
3139
+ onUpdatePage: f
3140
+ }), null, 16, ["page", "current-page", "disabled"]),
3141
+ L(Be, K(n, {
3142
+ page: s.value,
3143
+ label: ">>",
3144
+ "current-page": e.currentPage,
3145
+ "never-active": !0,
3146
+ disabled: n.currentPage === s.value,
3147
+ onUpdatePage: f
3148
+ }), null, 16, ["page", "current-page", "disabled"])
3149
+ ])
3150
+ ]),
3151
+ g("div", di, " page " + S(e.currentPage) + " of " + S(s.value), 1)
3152
+ ]));
3153
+ }
3154
+ }), Ts = (e, t) => {
3155
+ const n = e.__vccOpts || e;
3156
+ for (const [o, s] of t)
3157
+ n[o] = s;
3158
+ return n;
3159
+ }, hi = () => ({
3160
+ data: {
3161
+ type: Object,
3162
+ required: !0
3163
+ },
3164
+ column: {
3165
+ type: Object,
3166
+ required: !0
3167
+ },
3168
+ options: {
3169
+ type: Object,
3170
+ required: !1
3171
+ }
3172
+ }), mi = /* @__PURE__ */ V({
3173
+ name: "TextCell",
3174
+ props: {
3175
+ ...hi()
3176
+ },
3177
+ computed: {
3178
+ value() {
3179
+ var t;
3180
+ const e = this.data[this.column.id];
3181
+ return e ? ((t = this.column.options) == null ? void 0 : t.format) === "keyValue" ? e[this.column.options.key] : e : null;
3182
+ }
3183
+ }
3184
+ }), gi = mi;
3185
+ function _i(e, t, n, o, s, r) {
3186
+ return S(e.value);
3187
+ }
3188
+ const Gi = /* @__PURE__ */ Ts(gi, [["render", _i]]), bi = { class: "flex-grow pr-2" }, vi = { class: "h-4 w-4" }, yi = /* @__PURE__ */ V({
3189
+ __name: "sort.header",
3190
+ props: {
3191
+ column: {},
3192
+ sortColumn: {},
3193
+ sortDirection: {}
3194
+ },
3195
+ emits: ["sort"],
3196
+ setup(e, { emit: t }) {
3197
+ const n = e, o = B(
3198
+ () => n.sortDirection === "asc" ? ge.BarsArrowUp : ge.BarsArrowDown
3199
+ ), s = B(() => {
3200
+ var i;
3201
+ return ((i = n.column.options) == null ? void 0 : i.sortId) ?? n.column.id;
3202
+ }), r = () => {
3203
+ l("sort", s.value);
3204
+ }, l = t;
3205
+ return (i, a) => (d(), _("button", {
3206
+ class: "flex items-center",
3207
+ onClick: r
3208
+ }, [
3209
+ g("span", bi, S(i.column.label), 1),
3210
+ g("div", vi, [
3211
+ i.sortColumn === s.value ? (d(), O(x(Ie), {
3212
+ key: 0,
3213
+ icon: o.value
3214
+ }, null, 8, ["icon"])) : j("", !0)
3215
+ ])
3216
+ ]));
3217
+ }
3218
+ }), wi = { class: "table w-full" }, Ei = { key: 0 }, Ni = ["colspan"], Si = { class: "flex gap-2" }, Zi = /* @__PURE__ */ V({
3219
+ __name: "table",
3220
+ props: {
3221
+ loading: { type: Boolean },
3222
+ actions: {},
3223
+ data: {},
3224
+ displayColumns: {},
3225
+ page: {},
3226
+ sort: {}
3227
+ },
3228
+ emits: ["delete", "edit", "updatePage", "sort"],
3229
+ setup(e, { emit: t }) {
3230
+ const n = t, o = (i) => {
3231
+ n("edit", i);
3232
+ }, s = (i) => {
3233
+ n("delete", i);
3234
+ }, r = (i) => {
3235
+ n("updatePage", i);
3236
+ }, l = (i) => {
3237
+ n("sort", i);
3238
+ };
3239
+ return (i, a) => (d(), _(D, null, [
3240
+ g("table", wi, [
3241
+ g("thead", null, [
3242
+ g("tr", null, [
3243
+ (d(!0), _(D, null, G(i.displayColumns, (f) => (d(), _("th", {
3244
+ key: f.scope
3245
+ }, [
3246
+ L(yi, K({ column: f }, { ref_for: !0 }, i.sort, { onSort: l }), null, 16, ["column"])
3247
+ ]))), 128)),
3248
+ a[0] || (a[0] = g("th", null, null, -1))
3249
+ ])
3250
+ ]),
3251
+ g("tbody", null, [
3252
+ i.loading ? (d(), _("tr", Ei, [
3253
+ g("td", {
3254
+ colspan: i.displayColumns.length + 1,
3255
+ class: "text-center"
3256
+ }, a[1] || (a[1] = [
3257
+ g("span", { class: "loading loading-bars loading-xs" }, null, -1)
3258
+ ]), 8, Ni)
3259
+ ])) : j("", !0),
3260
+ (d(!0), _(D, null, G(i.data, (f) => (d(), _("tr", {
3261
+ key: f.id
3262
+ }, [
3263
+ (d(!0), _(D, null, G(i.displayColumns, (u) => (d(), _("td", {
3264
+ key: u.scope
3265
+ }, [
3266
+ (d(), O(fn(u.component), K({ ref_for: !0 }, u, {
3267
+ data: f,
3268
+ column: u
3269
+ }), null, 16, ["data", "column"]))
3270
+ ]))), 128)),
3271
+ g("td", null, [
3272
+ g("span", Si, [
3273
+ (d(!0), _(D, null, G(i.actions, (u) => (d(), O(Te, {
3274
+ key: u.label,
3275
+ icon: u.icon,
3276
+ outline: !0,
3277
+ onClick: (c) => u.action(f)
3278
+ }, {
3279
+ default: X(() => [
3280
+ ne(S(u.label), 1)
3281
+ ]),
3282
+ _: 2
3283
+ }, 1032, ["icon", "onClick"]))), 128)),
3284
+ L(Te, {
3285
+ icon: x(ge).Edit,
3286
+ outline: !0,
3287
+ onClick: (u) => o(f)
3288
+ }, null, 8, ["icon", "onClick"]),
3289
+ L(Te, {
3290
+ icon: x(ge).Delete,
3291
+ outline: !0,
3292
+ onClick: (u) => s(f)
3293
+ }, null, 8, ["icon", "onClick"])
3294
+ ])
3295
+ ])
3296
+ ]))), 128))
3297
+ ])
3298
+ ]),
3299
+ i.page ? (d(), O(pi, {
3300
+ key: 0,
3301
+ class: "border-gray-300 border-t pt-4 border-x-0 border-b-0",
3302
+ "total-items": i.page.count,
3303
+ "items-per-page": i.page.pageSize,
3304
+ "current-page": i.page.page,
3305
+ onUpdatePage: r
3306
+ }, null, 8, ["total-items", "items-per-page", "current-page"])) : j("", !0)
3307
+ ], 64));
3308
+ }
3309
+ }), Oi = {}, Ci = { class: "card bg-base-100 shadow-sm" }, xi = { class: "card-body" }, $i = {
3310
+ key: 0,
3311
+ class: "card-title"
3312
+ }, ki = {
3313
+ key: 1,
3314
+ class: "card-actions justify-end"
3315
+ };
3316
+ function Di(e, t) {
3317
+ return d(), _("div", Ci, [
3318
+ g("div", xi, [
3319
+ e.$slots.title ? (d(), _("h2", $i, [
3320
+ re(e.$slots, "title")
3321
+ ])) : j("", !0),
3322
+ g("p", null, [
3323
+ re(e.$slots, "default"),
3324
+ re(e.$slots, "content")
3325
+ ]),
3326
+ e.$slots.actions ? (d(), _("div", ki, [
3327
+ re(e.$slots, "actions")
3328
+ ])) : j("", !0)
3329
+ ])
3330
+ ]);
3331
+ }
3332
+ const Qi = /* @__PURE__ */ Ts(Oi, [["render", Di]]), Xi = (e, t) => {
3333
+ if (!e) return null;
3334
+ const n = (o) => {
3335
+ e.contains(o.target) || t();
3336
+ };
3337
+ return document.addEventListener("click", n), n;
3338
+ }, el = (e) => {
3339
+ document.removeEventListener("click", e);
3340
+ }, tl = {
3341
+ beforeMount(e, t) {
3342
+ e.clickOutsideEvent = function(n) {
3343
+ e === n.target || e.contains(n.target) || t.value(n);
3344
+ }, document.addEventListener("click", e.clickOutsideEvent);
3345
+ },
3346
+ unmounted(e) {
3347
+ document.removeEventListener("click", e.clickOutsideEvent);
3348
+ }
3349
+ };
3350
+ function nl(e) {
3351
+ const t = Dt();
3352
+ if (!t)
3353
+ return !1;
3354
+ const n = t.vnode.props;
3355
+ return n ? !!(n[jt(e)] || // also try camelCase event handler (#2249)
3356
+ n[jt(Ee(e))]) : !1;
3357
+ }
3358
+ const Vi = {
3359
+ group: {
3360
+ root: "group",
3361
+ label: "text-primary text-lg font-bold",
3362
+ item: "group-item"
3363
+ },
3364
+ verticalLayout: {
3365
+ root: "flex flex-col gap-x-2",
3366
+ item: "w-full"
3367
+ },
3368
+ horizontalLayout: {
3369
+ root: "flex flex-row gap-x-2",
3370
+ item: "w-full"
3371
+ },
3372
+ arrayList: {
3373
+ root: "fieldset",
3374
+ legend: "fieldset-legend text-xl capitalize"
3375
+ },
3376
+ control: {
3377
+ root: "fieldset",
3378
+ wrapper: "fieldset",
3379
+ label: "fieldset-legend",
3380
+ error: "",
3381
+ input: "input",
3382
+ select: "select",
3383
+ description: "form-control--description label text-xs text-gray-500"
3384
+ },
3385
+ fixedArrayList: {
3386
+ root: "flex flex-row gap-x-2",
3387
+ item: "w-full"
3388
+ }
3389
+ }, Tt = () => ({
3390
+ id: Vt(),
3391
+ visible: !0,
3392
+ required: !1,
3393
+ enabled: !0,
3394
+ isFocused: !1,
3395
+ isTouched: !1,
3396
+ hideLabel: !1,
3397
+ styles: Vi
3398
+ }), Ti = () => ({
3399
+ ...Tt(),
3400
+ options: [],
3401
+ valueKey: "value",
3402
+ labelKey: "label"
3403
+ }), Mi = (e, t, n) => !!(e && n), Ri = (e, t, n, o) => t === void 0 || t !== void 0 && !e || !o && !n, Pi = { key: 0 }, wn = /* @__PURE__ */ V({
3404
+ __name: "ControlWrapper",
3405
+ props: /* @__PURE__ */ $t({
3406
+ id: {},
3407
+ description: {},
3408
+ errors: {},
3409
+ label: {},
3410
+ visible: { type: Boolean },
3411
+ required: { type: Boolean },
3412
+ enabled: { type: Boolean },
3413
+ isFocused: { type: Boolean },
3414
+ isTouched: { type: Boolean },
3415
+ hideLabel: { type: Boolean },
3416
+ styles: {}
3417
+ }, Tt()),
3418
+ setup(e) {
3419
+ const t = e, n = B(() => !Ri(
3420
+ t.visible,
3421
+ t.description,
3422
+ t.isFocused,
3423
+ !0
3424
+ )), o = B(() => t.required), s = B(() => Mi(
3425
+ t.isTouched,
3426
+ t.isFocused,
3427
+ t.errors
3428
+ ));
3429
+ return (r, l) => (d(), _("fieldset", {
3430
+ class: M(r.styles.control.wrapper)
3431
+ }, [
3432
+ r.hideLabel ? j("", !0) : (d(), _("legend", {
3433
+ key: 0,
3434
+ class: M(r.styles.control.label)
3435
+ }, [
3436
+ ne(S(r.label) + " ", 1),
3437
+ o.value ? (d(), _("span", Pi, "*")) : j("", !0)
3438
+ ], 2)),
3439
+ re(r.$slots, "default"),
3440
+ g("p", {
3441
+ class: M(["fieldset-label h-4", { "text-error": s.value }])
3442
+ }, S(s.value ? r.errors : n.value ? r.description : null), 3)
3443
+ ], 2));
3444
+ }
3445
+ }), Ii = ["disabled"], Ai = ["value"], sl = /* @__PURE__ */ V({
3446
+ __name: "SelectComponent",
3447
+ props: /* @__PURE__ */ Me(/* @__PURE__ */ $t({
3448
+ id: {},
3449
+ description: {},
3450
+ errors: {},
3451
+ label: {},
3452
+ visible: { type: Boolean },
3453
+ required: { type: Boolean },
3454
+ enabled: { type: Boolean },
3455
+ isFocused: { type: Boolean },
3456
+ isTouched: { type: Boolean },
3457
+ hideLabel: { type: Boolean },
3458
+ styles: {},
3459
+ options: {},
3460
+ valueKey: {},
3461
+ labelKey: {}
3462
+ }, {
3463
+ ...Tt(),
3464
+ options: [],
3465
+ valueKey: "value",
3466
+ labelKey: "label"
3467
+ }), {
3468
+ modelValue: {},
3469
+ modelModifiers: {}
3470
+ }),
3471
+ emits: /* @__PURE__ */ Me(["change", "focus", "blur"], ["update:modelValue"]),
3472
+ setup(e, { emit: t }) {
3473
+ const n = e, o = t, s = hn(e, "modelValue"), r = (a) => {
3474
+ o("change", a);
3475
+ }, l = (a) => {
3476
+ o("focus", a);
3477
+ }, i = (a) => {
3478
+ o("blur", a);
3479
+ };
3480
+ return (a, f) => (d(), O(wn, Xt(kt(n)), {
3481
+ default: X(() => [
3482
+ pt(g("select", {
3483
+ "onUpdate:modelValue": f[0] || (f[0] = (u) => s.value = u),
3484
+ disabled: !a.enabled,
3485
+ class: M(["select select-bordered", a.styles.control.select]),
3486
+ onChange: r,
3487
+ onFocus: l,
3488
+ onBlur: i
3489
+ }, [
3490
+ (d(!0), _(D, null, G(a.options, (u) => (d(), _("option", {
3491
+ key: u[a.valueKey],
3492
+ value: u
3493
+ }, S(u[a.labelKey]), 9, Ai))), 128))
3494
+ ], 42, Ii), [
3495
+ [vr, s.value]
3496
+ ])
3497
+ ]),
3498
+ _: 1
3499
+ }, 16));
3500
+ }
3501
+ }), Li = "GHENTCDH_AUTHENTICATION", Bi = () => {
3502
+ const e = bs(Li);
3503
+ e || console.warn("No auth provided, authorized calls may not work");
3504
+ const t = async (n, o, s = { contentType: "application/json" }) => {
3505
+ const r = (s == null ? void 0 : s.skipAuth) ?? (e == null ? void 0 : e.options.skipAuthentication), l = {
3506
+ accept: "application/json",
3507
+ ...o.headers ?? {}
3508
+ };
3509
+ s.contentType && (l["Content-Type"] = s.contentType), r || (await (e == null ? void 0 : e.updateToken()), l.Authorization = `Bearer ${e == null ? void 0 : e.token()}`);
3510
+ const i = new URL(n, window.location.href);
3511
+ if (s != null && s.queryParams)
3512
+ for (const [f, u] of Object.entries(s.queryParams))
3513
+ i.searchParams.set(f, u);
3514
+ const a = await fetch(i.toString(), {
3515
+ ...o,
3516
+ headers: l
3517
+ });
3518
+ return a.ok ? a.json() : (s != null && s.skipAuth, Promise.reject({
3519
+ content: a.body,
3520
+ status: a.status
3521
+ }));
3522
+ };
3523
+ return {
3524
+ get: (n, o) => t(n, { method: "GET" }, o),
3525
+ postFile: (n, o, s = {}, r) => {
3526
+ const l = new FormData();
3527
+ for (const i in s)
3528
+ l.append(i, s[i]);
3529
+ return l.append("file", o), t(
3530
+ n,
3531
+ {
3532
+ method: "POST",
3533
+ body: l
3534
+ },
3535
+ { ...r, contentType: void 0 }
3536
+ );
3537
+ },
3538
+ post: (n, o, s) => t(
3539
+ n,
3540
+ {
3541
+ method: "POST",
3542
+ body: JSON.stringify(o)
3543
+ },
3544
+ s
3545
+ ),
3546
+ patch: (n, o, s) => t(
3547
+ n,
3548
+ {
3549
+ method: "PATCH",
3550
+ body: JSON.stringify(o)
3551
+ },
3552
+ s
3553
+ ),
3554
+ delete: (n, o, s) => t(
3555
+ n,
3556
+ {
3557
+ method: "DELETE",
3558
+ body: JSON.stringify(o)
3559
+ },
3560
+ s
3561
+ )
3562
+ };
3563
+ }, Hi = ["disabled"], Fi = {
3564
+ key: 0,
3565
+ class: /* @__PURE__ */ M([
3566
+ `bg-base-100 w-52 shadow -mt-5
3567
+ absolute z-50`
3568
+ ])
3569
+ }, ji = ["onClick", "onBlur"], ol = /* @__PURE__ */ V({
3570
+ __name: "AutoComplete",
3571
+ props: /* @__PURE__ */ Me(/* @__PURE__ */ $t({
3572
+ id: {},
3573
+ description: {},
3574
+ errors: {},
3575
+ label: {},
3576
+ visible: { type: Boolean },
3577
+ required: { type: Boolean },
3578
+ enabled: { type: Boolean },
3579
+ isFocused: { type: Boolean },
3580
+ isTouched: { type: Boolean },
3581
+ hideLabel: { type: Boolean },
3582
+ styles: {},
3583
+ config: {},
3584
+ options: {},
3585
+ valueKey: {},
3586
+ labelKey: {}
3587
+ }, Ti()), {
3588
+ modelValue: {},
3589
+ modelModifiers: {}
3590
+ }),
3591
+ emits: /* @__PURE__ */ Me(["change", "focus", "blur"], ["update:modelValue"]),
3592
+ setup(e, { emit: t }) {
3593
+ const n = e, o = t, s = hn(e, "modelValue"), r = fe(""), l = (m) => {
3594
+ o("change", m);
3595
+ }, i = (m) => {
3596
+ o("focus", m);
3597
+ }, a = (m) => {
3598
+ o("blur", m);
3599
+ }, f = fe(!1), u = fe([]), c = (m) => {
3600
+ f.value = !0, p(m);
3601
+ }, p = (m) => {
3602
+ s.value = m, l(m);
3603
+ }, h = (m) => {
3604
+ var C;
3605
+ ((C = u.value) == null ? void 0 : C.length) === m + 1 && (u.value = []);
3606
+ }, E = Bi(), v = (m) => m[n.valueKey], H = (m) => (m == null ? void 0 : m[n.labelKey]) ?? "";
3607
+ return Gt(
3608
+ () => s.value,
3609
+ (m) => {
3610
+ m && !v(m) || (f.value = !0, u.value = [], r.value = H(m));
3611
+ },
3612
+ { immediate: !0 }
3613
+ ), Gt(
3614
+ () => r.value,
3615
+ (m) => {
3616
+ if (f.value) {
3617
+ f.value = !1;
3618
+ return;
3619
+ }
3620
+ if (p({ [n.labelKey]: m }), n.config) {
3621
+ const { uri: C, skipAuth: Q, dataField: b } = n.config;
3622
+ E.get(`${C}${m}`, { skipAuth: Q }).then((T) => {
3623
+ u.value = T[b];
3624
+ });
3625
+ } else n.options && (u.value = n.options.filter((C) => H(C).toLowerCase().includes(m)).slice(0, 10));
3626
+ }
3627
+ ), (m, C) => {
3628
+ const Q = gs("click-outside");
3629
+ return d(), O(wn, Xt(kt(n)), {
3630
+ default: X(() => {
3631
+ var b;
3632
+ return [
3633
+ pt(g("input", {
3634
+ "onUpdate:modelValue": C[0] || (C[0] = (T) => r.value = T),
3635
+ autocomplete: "off",
3636
+ type: "text",
3637
+ class: M([m.styles.control.select]),
3638
+ disabled: !m.enabled,
3639
+ onFocus: i,
3640
+ onBlur: a
3641
+ }, null, 42, Hi), [
3642
+ [br, r.value]
3643
+ ]),
3644
+ pt((d(), _("div", null, [
3645
+ (b = u.value) != null && b.length ? (d(), _("ul", Fi, [
3646
+ (d(!0), _(D, null, G(u.value, (T, Ae) => (d(), _("li", {
3647
+ key: T[m.valueKey]
3648
+ }, [
3649
+ g("button", {
3650
+ class: "w-full h-8 border-b-1 border-gray-200 border-x-0 border-t-0 px-4 py-2 text-left hover:bg-primary-content cursor-pointer",
3651
+ type: "button",
3652
+ onClick: (Se) => c(T),
3653
+ onBlur: (Se) => h(Ae)
3654
+ }, S(H(T)), 41, ji)
3655
+ ]))), 128))
3656
+ ])) : j("", !0)
3657
+ ])), [
3658
+ [Q, () => u.value = []]
3659
+ ])
3660
+ ];
3661
+ }),
3662
+ _: 1
3663
+ }, 16);
3664
+ };
3665
+ }
3666
+ }), Ui = {
3667
+ key: 0,
3668
+ class: /* @__PURE__ */ M([
3669
+ `bg-base-100 w-52 shadow -mt-5
3670
+ absolute z-50 p-0`
3671
+ ])
3672
+ }, Ki = ["onClick"], zi = { class: "w-4 mr-2" }, rl = /* @__PURE__ */ V({
3673
+ __name: "MultiSelect",
3674
+ props: /* @__PURE__ */ Me(/* @__PURE__ */ $t({
3675
+ id: {},
3676
+ description: {},
3677
+ errors: {},
3678
+ label: {},
3679
+ visible: { type: Boolean },
3680
+ required: { type: Boolean },
3681
+ enabled: { type: Boolean },
3682
+ isFocused: { type: Boolean },
3683
+ isTouched: { type: Boolean },
3684
+ hideLabel: { type: Boolean },
3685
+ styles: {},
3686
+ options: {},
3687
+ valueKey: {},
3688
+ labelKey: {}
3689
+ }, {
3690
+ ...Tt(),
3691
+ valueKey: "value",
3692
+ labelKey: "label"
3693
+ }), {
3694
+ modelValue: {},
3695
+ modelModifiers: {}
3696
+ }),
3697
+ emits: /* @__PURE__ */ Me(["change", "focus", "blur"], ["update:modelValue"]),
3698
+ setup(e, { emit: t }) {
3699
+ const n = e, o = t, s = hn(e, "modelValue");
3700
+ let r = !1;
3701
+ const l = (v) => {
3702
+ o("change", v);
3703
+ }, i = fe(!1), a = () => {
3704
+ i.value = !i.value, r = !0;
3705
+ }, f = () => {
3706
+ r || (i.value = !1), r = !1;
3707
+ }, u = B(
3708
+ () => {
3709
+ var v;
3710
+ return ((v = s.value) == null ? void 0 : v.map((H) => h(H))) ?? [];
3711
+ }
3712
+ ), c = (v) => u.value.includes(v), p = (v, H) => {
3713
+ v.preventDefault();
3714
+ let m = s.value ?? [];
3715
+ const C = h(H);
3716
+ c(C) ? m = m.filter((b) => h(b) !== C) : m.push(H), s.value = m, l(m);
3717
+ }, h = (v) => v[n.valueKey], E = (v) => (v == null ? void 0 : v[n.labelKey]) ?? "";
3718
+ return (v, H) => {
3719
+ const m = gs("click-outside");
3720
+ return d(), O(wn, Xt(kt(n)), {
3721
+ default: X(() => {
3722
+ var C, Q;
3723
+ return [
3724
+ g("button", {
3725
+ type: "button",
3726
+ class: M([v.styles.control.select, "w-full truncate block"]),
3727
+ onClick: a
3728
+ }, S(((Q = (C = s.value) == null ? void 0 : C.map) == null ? void 0 : Q.call(C, (b) => E(b)).join(", ")) ?? "Select value"), 3),
3729
+ pt((d(), _("div", null, [
3730
+ i.value ? (d(), _("ul", Ui, [
3731
+ (d(!0), _(D, null, G(v.options, (b) => (d(), _("li", {
3732
+ key: b[v.valueKey]
3733
+ }, [
3734
+ g("button", {
3735
+ class: "w-full flex h-8 border-b-1 border-gray-200 border-x-0 border-t-0 p-2 text-left hover:bg-primary-content cursor-pointer",
3736
+ type: "button",
3737
+ onClick: (T) => p(T, b)
3738
+ }, [
3739
+ g("div", zi, [
3740
+ c(h(b)) ? (d(), O(x(Ie), {
3741
+ key: 0,
3742
+ icon: x(ge).Check,
3743
+ size: "sm"
3744
+ }, null, 8, ["icon"])) : j("", !0)
3745
+ ]),
3746
+ ne(" " + S(E(b)), 1)
3747
+ ], 8, Ki)
3748
+ ]))), 128))
3749
+ ])) : j("", !0)
3750
+ ])), [
3751
+ [m, () => f()]
3752
+ ])
3753
+ ];
3754
+ }),
3755
+ _: 1
3756
+ }, 16);
3757
+ };
3758
+ }
3759
+ });
3760
+ export {
3761
+ ol as Autocomplete,
3762
+ jr as BadgeSize,
3763
+ Te as Btn,
3764
+ Ji as BtnBadge,
3765
+ Fr as ButtonSize,
3766
+ Qi as Card,
3767
+ tl as ClickOutside,
3768
+ Ve as Color,
3769
+ Kr as ConfirmModal,
3770
+ wn as ControlWrapper,
3771
+ Ti as DefaultAutoCompleteProperties,
3772
+ Tt as DefaultControlProperties,
3773
+ qi as Dropdown,
3774
+ Ie as Icon,
3775
+ ge as IconEnum,
3776
+ wr as IconMap,
3777
+ Wi as Menu,
3778
+ Lr as Modal,
3779
+ vn as ModalService,
3780
+ zr as ModalWrapper,
3781
+ rl as MultiSelect,
3782
+ Wr as NotificationMessage,
3783
+ yn as NotificationService,
3784
+ Yr as Notifications,
3785
+ pi as PaginationComponent,
3786
+ sl as SelectComponent,
3787
+ Yi as ShellComponent,
3788
+ _n as SubMenu,
3789
+ Zi as Table,
3790
+ Gi as TextCell,
3791
+ Xi as addClickOutsideEventListener,
3792
+ nl as hasCustomEventListener,
3793
+ Ri as isDescriptionHidden,
3794
+ Vi as myStyles,
3795
+ el as removeClickOutsideEventListener,
3796
+ Mi as showErrors
3797
+ };