@stonecrop/desktop 0.4.21 → 0.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/desktop.js +468 -468
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs.map +1 -1
- package/package.json +5 -5
package/dist/desktop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as de, ref as D, onMounted as Ie, createElementBlock as
|
|
2
|
-
const As = { class: "action-menu-icon" },
|
|
1
|
+
import { defineComponent as de, ref as D, onMounted as Ie, createElementBlock as V, openBlock as T, normalizeClass as De, createElementVNode as N, Fragment as he, renderList as Oe, createCommentVNode as ae, toDisplayString as pe, withDirectives as Ae, vShow as gn, useTemplateRef as mt, computed as A, watch as U, nextTick as ke, createBlock as ye, Teleport as Ps, createVNode as it, Transition as Cs, withCtx as lt, withModifiers as tn, vModelText as nr, renderSlot as se, createTextVNode as yn, shallowRef as F, toValue as x, toRef as we, readonly as or, customRef as rr, getCurrentScope as vt, onScopeDispose as _t, unref as C, resolveDynamicComponent as Ot, mergeProps as sr, effectScope as En, markRaw as te, toRaw as He, inject as bn, hasInjectionContext as ar, getCurrentInstance as Ye, reactive as ir, isRef as ue, isReactive as qe, toRefs as $t, normalizeStyle as le, onBeforeUnmount as Vs, watchEffect as Ns, resolveComponent as Ds, withKeys as Et } from "vue";
|
|
2
|
+
const As = { class: "action-menu-icon" }, $s = ["onclick"], xs = { key: 1 }, Rs = ["onClick"], Ls = { class: "dropdown-container" }, js = { class: "dropdown" }, Us = ["onclick"], Ms = ["href"], Hs = { class: "dropdown-item" }, zs = /* @__PURE__ */ de({
|
|
3
3
|
__name: "ActionSet",
|
|
4
4
|
props: {
|
|
5
5
|
elements: {}
|
|
@@ -22,7 +22,7 @@ const As = { class: "action-menu-icon" }, xs = ["onclick"], $s = { key: 1 }, Rs
|
|
|
22
22
|
const d = !t.value[u].show;
|
|
23
23
|
s(), t.value[u].show = d;
|
|
24
24
|
};
|
|
25
|
-
return (u, d) => (T(),
|
|
25
|
+
return (u, d) => (T(), V("div", {
|
|
26
26
|
class: De([{ "open-set": n.value, "hovered-and-closed": a.value }, "action-set collapse"]),
|
|
27
27
|
onMouseover: i,
|
|
28
28
|
onMouseleave: l
|
|
@@ -30,7 +30,7 @@ const As = { class: "action-menu-icon" }, xs = ["onclick"], $s = { key: 1 }, Rs
|
|
|
30
30
|
N("div", As, [
|
|
31
31
|
N("div", {
|
|
32
32
|
id: "chevron",
|
|
33
|
-
onClick: d[0] || (d[0] = (
|
|
33
|
+
onClick: d[0] || (d[0] = (f) => a.value = !a.value)
|
|
34
34
|
}, d[1] || (d[1] = [
|
|
35
35
|
N("svg", {
|
|
36
36
|
class: "leftBar",
|
|
@@ -65,39 +65,39 @@ const As = { class: "action-menu-icon" }, xs = ["onclick"], $s = { key: 1 }, Rs
|
|
|
65
65
|
]))
|
|
66
66
|
]),
|
|
67
67
|
d[2] || (d[2] = N("div", { style: { "margin-right": "30px" } }, null, -1)),
|
|
68
|
-
(T(!0),
|
|
68
|
+
(T(!0), V(he, null, Oe(t.value, (f, v) => (T(), V("div", {
|
|
69
69
|
class: "action-element",
|
|
70
|
-
key:
|
|
70
|
+
key: f.label
|
|
71
71
|
}, [
|
|
72
|
-
|
|
72
|
+
f.type == "button" ? (T(), V("button", {
|
|
73
73
|
key: 0,
|
|
74
|
-
onclick:
|
|
74
|
+
onclick: f.action,
|
|
75
75
|
class: "button-default"
|
|
76
|
-
},
|
|
77
|
-
|
|
76
|
+
}, pe(f.label), 9, $s)) : ae("", !0),
|
|
77
|
+
f.type == "dropdown" ? (T(), V("div", xs, [
|
|
78
78
|
N("button", {
|
|
79
79
|
class: "button-default",
|
|
80
|
-
onClick: (
|
|
81
|
-
},
|
|
80
|
+
onClick: (p) => c(v)
|
|
81
|
+
}, pe(f.label), 9, Rs),
|
|
82
82
|
Ae(N("div", Ls, [
|
|
83
83
|
N("div", js, [
|
|
84
|
-
(T(!0),
|
|
85
|
-
key:
|
|
84
|
+
(T(!0), V(he, null, Oe(f.actions, (p) => (T(), V("div", {
|
|
85
|
+
key: p.label
|
|
86
86
|
}, [
|
|
87
|
-
|
|
87
|
+
p.action != null ? (T(), V("button", {
|
|
88
88
|
key: 0,
|
|
89
|
-
onclick:
|
|
89
|
+
onclick: p.action,
|
|
90
90
|
class: "dropdown-item"
|
|
91
|
-
},
|
|
91
|
+
}, pe(p.label), 9, Us)) : p.link != null ? (T(), V("a", {
|
|
92
92
|
key: 1,
|
|
93
|
-
href:
|
|
93
|
+
href: p.link
|
|
94
94
|
}, [
|
|
95
|
-
N("button", Hs,
|
|
95
|
+
N("button", Hs, pe(p.label), 1)
|
|
96
96
|
], 8, Ms)) : ae("", !0)
|
|
97
97
|
]))), 128))
|
|
98
98
|
])
|
|
99
99
|
], 512), [
|
|
100
|
-
[gn,
|
|
100
|
+
[gn, f.show]
|
|
101
101
|
])
|
|
102
102
|
])) : ae("", !0)
|
|
103
103
|
]))), 128))
|
|
@@ -155,9 +155,9 @@ const As = { class: "action-menu-icon" }, xs = ["onclick"], $s = { key: 1 }, Rs
|
|
|
155
155
|
n("select", u), i();
|
|
156
156
|
};
|
|
157
157
|
return (u, d) => (T(), ye(Ps, { to: "body" }, [
|
|
158
|
-
it(
|
|
158
|
+
it(Cs, { name: "fade" }, {
|
|
159
159
|
default: lt(() => [
|
|
160
|
-
u.isOpen ? (T(),
|
|
160
|
+
u.isOpen ? (T(), V("div", {
|
|
161
161
|
key: 0,
|
|
162
162
|
class: "command-palette-overlay",
|
|
163
163
|
onClick: i
|
|
@@ -170,7 +170,7 @@ const As = { class: "action-menu-icon" }, xs = ["onclick"], $s = { key: 1 }, Rs
|
|
|
170
170
|
N("div", Ks, [
|
|
171
171
|
Ae(N("input", {
|
|
172
172
|
ref: "input",
|
|
173
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
173
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => o.value = f),
|
|
174
174
|
type: "text",
|
|
175
175
|
class: "command-palette-input",
|
|
176
176
|
placeholder: u.placeholder,
|
|
@@ -180,23 +180,23 @@ const As = { class: "action-menu-icon" }, xs = ["onclick"], $s = { key: 1 }, Rs
|
|
|
180
180
|
[nr, o.value]
|
|
181
181
|
])
|
|
182
182
|
]),
|
|
183
|
-
s.value.length ? (T(),
|
|
184
|
-
(T(!0),
|
|
183
|
+
s.value.length ? (T(), V("div", Fs, [
|
|
184
|
+
(T(!0), V(he, null, Oe(s.value, (f, v) => (T(), V("div", {
|
|
185
185
|
key: v,
|
|
186
186
|
class: De(["command-palette-result", { selected: v === r.value }]),
|
|
187
|
-
onClick: (
|
|
188
|
-
onMouseover: (
|
|
187
|
+
onClick: (p) => c(f),
|
|
188
|
+
onMouseover: (p) => r.value = v
|
|
189
189
|
}, [
|
|
190
190
|
N("div", Ys, [
|
|
191
|
-
se(u.$slots, "title", { result:
|
|
191
|
+
se(u.$slots, "title", { result: f })
|
|
192
192
|
]),
|
|
193
193
|
N("div", qs, [
|
|
194
|
-
se(u.$slots, "content", { result:
|
|
194
|
+
se(u.$slots, "content", { result: f })
|
|
195
195
|
])
|
|
196
196
|
], 42, Gs))), 128))
|
|
197
|
-
])) : o.value && !s.value.length ? (T(),
|
|
197
|
+
])) : o.value && !s.value.length ? (T(), V("div", Js, [
|
|
198
198
|
se(u.$slots, "empty", {}, () => [
|
|
199
|
-
yn(' No results found for "' +
|
|
199
|
+
yn(' No results found for "' + pe(o.value) + '" ', 1)
|
|
200
200
|
])
|
|
201
201
|
])) : ae("", !0)
|
|
202
202
|
])
|
|
@@ -245,24 +245,24 @@ function ra(e, t, n) {
|
|
|
245
245
|
const sa = ur ? window : void 0;
|
|
246
246
|
function aa(e) {
|
|
247
247
|
var t;
|
|
248
|
-
const n =
|
|
248
|
+
const n = x(e);
|
|
249
249
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
250
250
|
}
|
|
251
251
|
function ia(...e) {
|
|
252
252
|
const t = [], n = () => {
|
|
253
253
|
t.forEach((i) => i()), t.length = 0;
|
|
254
254
|
}, o = (i, l, c, u) => (i.addEventListener(l, c, u), () => i.removeEventListener(l, c, u)), r = A(() => {
|
|
255
|
-
const i = Bt(
|
|
255
|
+
const i = Bt(x(e[0])).filter((l) => l != null);
|
|
256
256
|
return i.every((l) => typeof l != "string") ? i : void 0;
|
|
257
257
|
}), a = ra(
|
|
258
258
|
() => {
|
|
259
259
|
var i, l;
|
|
260
260
|
return [
|
|
261
261
|
(l = (i = r.value) == null ? void 0 : i.map((c) => aa(c))) != null ? l : [sa].filter((c) => c != null),
|
|
262
|
-
Bt(
|
|
263
|
-
Bt(
|
|
262
|
+
Bt(x(r.value ? e[1] : e[0])),
|
|
263
|
+
Bt(C(r.value ? e[2] : e[1])),
|
|
264
264
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
265
|
-
|
|
265
|
+
x(r.value ? e[3] : e[2])
|
|
266
266
|
];
|
|
267
267
|
},
|
|
268
268
|
([i, l, c, u]) => {
|
|
@@ -271,8 +271,8 @@ function ia(...e) {
|
|
|
271
271
|
const d = ea(u) ? { ...u } : u;
|
|
272
272
|
t.push(
|
|
273
273
|
...i.flatMap(
|
|
274
|
-
(
|
|
275
|
-
(v) => c.map((
|
|
274
|
+
(f) => l.flatMap(
|
|
275
|
+
(v) => c.map((p) => o(f, v, p, d))
|
|
276
276
|
)
|
|
277
277
|
)
|
|
278
278
|
);
|
|
@@ -304,7 +304,7 @@ function ca(e, t = !1) {
|
|
|
304
304
|
const n = F(t);
|
|
305
305
|
let o = null, r = "";
|
|
306
306
|
U(oa(e), (i) => {
|
|
307
|
-
const l = Kt(
|
|
307
|
+
const l = Kt(x(i));
|
|
308
308
|
if (l) {
|
|
309
309
|
const c = l;
|
|
310
310
|
if (Wt.get(c) || Wt.set(c, c.style.overflow), c.style.overflow !== "hidden" && (r = c.style.overflow), c.style.overflow === "hidden")
|
|
@@ -316,7 +316,7 @@ function ca(e, t = !1) {
|
|
|
316
316
|
immediate: !0
|
|
317
317
|
});
|
|
318
318
|
const a = () => {
|
|
319
|
-
const i = Kt(
|
|
319
|
+
const i = Kt(x(e));
|
|
320
320
|
!i || n.value || (qn && (o = ia(
|
|
321
321
|
i,
|
|
322
322
|
"touchmove",
|
|
@@ -326,7 +326,7 @@ function ca(e, t = !1) {
|
|
|
326
326
|
{ passive: !1 }
|
|
327
327
|
)), i.style.overflow = "hidden", n.value = !0);
|
|
328
328
|
}, s = () => {
|
|
329
|
-
const i = Kt(
|
|
329
|
+
const i = Kt(x(e));
|
|
330
330
|
!i || !n.value || (qn && (o == null || o()), i.style.overflow = r, Wt.delete(i), n.value = !1);
|
|
331
331
|
};
|
|
332
332
|
return cr(s), A({
|
|
@@ -351,7 +351,7 @@ function ua() {
|
|
|
351
351
|
}
|
|
352
352
|
ua();
|
|
353
353
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
354
|
-
const da = { class: "aform" },
|
|
354
|
+
const da = { class: "aform" }, fa = /* @__PURE__ */ de({
|
|
355
355
|
__name: "AForm",
|
|
356
356
|
props: {
|
|
357
357
|
modelValue: {},
|
|
@@ -377,8 +377,8 @@ const da = { class: "aform" }, pa = /* @__PURE__ */ de({
|
|
|
377
377
|
set: () => {
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
return (s, i) => (T(),
|
|
381
|
-
(T(!0),
|
|
380
|
+
return (s, i) => (T(), V("form", da, [
|
|
381
|
+
(T(!0), V(he, null, Oe(s.modelValue, (l, c) => (T(), ye(Ot(l.component), sr({
|
|
382
382
|
key: c,
|
|
383
383
|
schema: l,
|
|
384
384
|
modelValue: a.value[c].value,
|
|
@@ -388,7 +388,7 @@ const da = { class: "aform" }, pa = /* @__PURE__ */ de({
|
|
|
388
388
|
}, { ref_for: !0 }, r(l)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
|
|
389
389
|
]));
|
|
390
390
|
}
|
|
391
|
-
}),
|
|
391
|
+
}), pa = /* @__PURE__ */ Zs(fa, [["__scopeId", "data-v-68845234"]]);
|
|
392
392
|
var ha = Object.defineProperty, ma = (e, t, n) => t in e ? ha(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, q = (e, t, n) => ma(e, typeof t != "symbol" ? t + "" : t, n);
|
|
393
393
|
function nn(e) {
|
|
394
394
|
this.message = e || "";
|
|
@@ -402,7 +402,7 @@ nn.prototype = Object.create(Error.prototype, {
|
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
|
-
const
|
|
405
|
+
const fr = class kt {
|
|
406
406
|
/**
|
|
407
407
|
* @param registry - The immutable registry
|
|
408
408
|
* @param store - The mutable Pinia store
|
|
@@ -548,23 +548,23 @@ const pr = class kt {
|
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
};
|
|
551
|
-
q(
|
|
552
|
-
let va =
|
|
553
|
-
var _a = Object.create,
|
|
551
|
+
q(fr, "_root");
|
|
552
|
+
let va = fr;
|
|
553
|
+
var _a = Object.create, pr = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, wn = Object.getOwnPropertyNames, ya = Object.getPrototypeOf, Ea = Object.prototype.hasOwnProperty, ba = (e, t) => function() {
|
|
554
554
|
return e && (t = (0, e[wn(e)[0]])(e = 0)), t;
|
|
555
555
|
}, wa = (e, t) => function() {
|
|
556
556
|
return t || (0, e[wn(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
557
557
|
}, Oa = (e, t, n, o) => {
|
|
558
558
|
if (t && typeof t == "object" || typeof t == "function")
|
|
559
559
|
for (let r of wn(t))
|
|
560
|
-
!Ea.call(e, r) && r !== n &&
|
|
560
|
+
!Ea.call(e, r) && r !== n && pr(e, r, { get: () => t[r], enumerable: !(o = ga(t, r)) || o.enumerable });
|
|
561
561
|
return e;
|
|
562
562
|
}, ka = (e, t, n) => (n = e != null ? _a(ya(e)) : {}, Oa(
|
|
563
563
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
564
564
|
// file that has been converted to a CommonJS file using a Babel-
|
|
565
565
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
566
566
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
567
|
-
|
|
567
|
+
pr(n, "default", { value: e, enumerable: !0 }),
|
|
568
568
|
e
|
|
569
569
|
)), gt = ba({
|
|
570
570
|
"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
|
|
@@ -578,65 +578,65 @@ var _a = Object.create, fr = Object.defineProperty, ga = Object.getOwnPropertyDe
|
|
|
578
578
|
function o(a) {
|
|
579
579
|
if (a = a || {}, a.circles) return r(a);
|
|
580
580
|
const s = /* @__PURE__ */ new Map();
|
|
581
|
-
if (s.set(Date, (d) => new Date(d)), s.set(Map, (d,
|
|
581
|
+
if (s.set(Date, (d) => new Date(d)), s.set(Map, (d, f) => new Map(l(Array.from(d), f))), s.set(Set, (d, f) => new Set(l(Array.from(d), f))), a.constructorHandlers)
|
|
582
582
|
for (const d of a.constructorHandlers)
|
|
583
583
|
s.set(d[0], d[1]);
|
|
584
584
|
let i = null;
|
|
585
585
|
return a.proto ? u : c;
|
|
586
|
-
function l(d,
|
|
587
|
-
const v = Object.keys(d),
|
|
586
|
+
function l(d, f) {
|
|
587
|
+
const v = Object.keys(d), p = new Array(v.length);
|
|
588
588
|
for (let E = 0; E < v.length; E++) {
|
|
589
589
|
const m = v[E], b = d[m];
|
|
590
|
-
typeof b != "object" || b === null ?
|
|
590
|
+
typeof b != "object" || b === null ? p[m] = b : b.constructor !== Object && (i = s.get(b.constructor)) ? p[m] = i(b, f) : ArrayBuffer.isView(b) ? p[m] = n(b) : p[m] = f(b);
|
|
591
591
|
}
|
|
592
|
-
return
|
|
592
|
+
return p;
|
|
593
593
|
}
|
|
594
594
|
function c(d) {
|
|
595
595
|
if (typeof d != "object" || d === null) return d;
|
|
596
596
|
if (Array.isArray(d)) return l(d, c);
|
|
597
597
|
if (d.constructor !== Object && (i = s.get(d.constructor)))
|
|
598
598
|
return i(d, c);
|
|
599
|
-
const
|
|
599
|
+
const f = {};
|
|
600
600
|
for (const v in d) {
|
|
601
601
|
if (Object.hasOwnProperty.call(d, v) === !1) continue;
|
|
602
|
-
const
|
|
603
|
-
typeof
|
|
602
|
+
const p = d[v];
|
|
603
|
+
typeof p != "object" || p === null ? f[v] = p : p.constructor !== Object && (i = s.get(p.constructor)) ? f[v] = i(p, c) : ArrayBuffer.isView(p) ? f[v] = n(p) : f[v] = c(p);
|
|
604
604
|
}
|
|
605
|
-
return
|
|
605
|
+
return f;
|
|
606
606
|
}
|
|
607
607
|
function u(d) {
|
|
608
608
|
if (typeof d != "object" || d === null) return d;
|
|
609
609
|
if (Array.isArray(d)) return l(d, u);
|
|
610
610
|
if (d.constructor !== Object && (i = s.get(d.constructor)))
|
|
611
611
|
return i(d, u);
|
|
612
|
-
const
|
|
612
|
+
const f = {};
|
|
613
613
|
for (const v in d) {
|
|
614
|
-
const
|
|
615
|
-
typeof
|
|
614
|
+
const p = d[v];
|
|
615
|
+
typeof p != "object" || p === null ? f[v] = p : p.constructor !== Object && (i = s.get(p.constructor)) ? f[v] = i(p, u) : ArrayBuffer.isView(p) ? f[v] = n(p) : f[v] = u(p);
|
|
616
616
|
}
|
|
617
|
-
return
|
|
617
|
+
return f;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
620
|
function r(a) {
|
|
621
621
|
const s = [], i = [], l = /* @__PURE__ */ new Map();
|
|
622
|
-
if (l.set(Date, (v) => new Date(v)), l.set(Map, (v,
|
|
622
|
+
if (l.set(Date, (v) => new Date(v)), l.set(Map, (v, p) => new Map(u(Array.from(v), p))), l.set(Set, (v, p) => new Set(u(Array.from(v), p))), a.constructorHandlers)
|
|
623
623
|
for (const v of a.constructorHandlers)
|
|
624
624
|
l.set(v[0], v[1]);
|
|
625
625
|
let c = null;
|
|
626
|
-
return a.proto ?
|
|
627
|
-
function u(v,
|
|
626
|
+
return a.proto ? f : d;
|
|
627
|
+
function u(v, p) {
|
|
628
628
|
const E = Object.keys(v), m = new Array(E.length);
|
|
629
629
|
for (let b = 0; b < E.length; b++) {
|
|
630
630
|
const S = E[b], R = v[S];
|
|
631
631
|
if (typeof R != "object" || R === null)
|
|
632
632
|
m[S] = R;
|
|
633
633
|
else if (R.constructor !== Object && (c = l.get(R.constructor)))
|
|
634
|
-
m[S] = c(R,
|
|
634
|
+
m[S] = c(R, p);
|
|
635
635
|
else if (ArrayBuffer.isView(R))
|
|
636
636
|
m[S] = n(R);
|
|
637
637
|
else {
|
|
638
638
|
const M = s.indexOf(R);
|
|
639
|
-
M !== -1 ? m[S] = i[M] : m[S] =
|
|
639
|
+
M !== -1 ? m[S] = i[M] : m[S] = p(R);
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
return m;
|
|
@@ -646,45 +646,45 @@ var _a = Object.create, fr = Object.defineProperty, ga = Object.getOwnPropertyDe
|
|
|
646
646
|
if (Array.isArray(v)) return u(v, d);
|
|
647
647
|
if (v.constructor !== Object && (c = l.get(v.constructor)))
|
|
648
648
|
return c(v, d);
|
|
649
|
-
const
|
|
650
|
-
s.push(v), i.push(
|
|
649
|
+
const p = {};
|
|
650
|
+
s.push(v), i.push(p);
|
|
651
651
|
for (const E in v) {
|
|
652
652
|
if (Object.hasOwnProperty.call(v, E) === !1) continue;
|
|
653
653
|
const m = v[E];
|
|
654
654
|
if (typeof m != "object" || m === null)
|
|
655
|
-
|
|
655
|
+
p[E] = m;
|
|
656
656
|
else if (m.constructor !== Object && (c = l.get(m.constructor)))
|
|
657
|
-
|
|
657
|
+
p[E] = c(m, d);
|
|
658
658
|
else if (ArrayBuffer.isView(m))
|
|
659
|
-
|
|
659
|
+
p[E] = n(m);
|
|
660
660
|
else {
|
|
661
661
|
const b = s.indexOf(m);
|
|
662
|
-
b !== -1 ?
|
|
662
|
+
b !== -1 ? p[E] = i[b] : p[E] = d(m);
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
return s.pop(), i.pop(),
|
|
665
|
+
return s.pop(), i.pop(), p;
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function f(v) {
|
|
668
668
|
if (typeof v != "object" || v === null) return v;
|
|
669
|
-
if (Array.isArray(v)) return u(v,
|
|
669
|
+
if (Array.isArray(v)) return u(v, f);
|
|
670
670
|
if (v.constructor !== Object && (c = l.get(v.constructor)))
|
|
671
|
-
return c(v,
|
|
672
|
-
const
|
|
673
|
-
s.push(v), i.push(
|
|
671
|
+
return c(v, f);
|
|
672
|
+
const p = {};
|
|
673
|
+
s.push(v), i.push(p);
|
|
674
674
|
for (const E in v) {
|
|
675
675
|
const m = v[E];
|
|
676
676
|
if (typeof m != "object" || m === null)
|
|
677
|
-
|
|
677
|
+
p[E] = m;
|
|
678
678
|
else if (m.constructor !== Object && (c = l.get(m.constructor)))
|
|
679
|
-
|
|
679
|
+
p[E] = c(m, f);
|
|
680
680
|
else if (ArrayBuffer.isView(m))
|
|
681
|
-
|
|
681
|
+
p[E] = n(m);
|
|
682
682
|
else {
|
|
683
683
|
const b = s.indexOf(m);
|
|
684
|
-
b !== -1 ?
|
|
684
|
+
b !== -1 ? p[E] = i[b] : p[E] = f(m);
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
|
-
return s.pop(), i.pop(),
|
|
687
|
+
return s.pop(), i.pop(), p;
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
}
|
|
@@ -702,10 +702,10 @@ var Ia = ka(Sa()), Ta = /(?:^|[-_/])(\w)/g;
|
|
|
702
702
|
function Pa(e, t) {
|
|
703
703
|
return t ? t.toUpperCase() : "";
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function Ca(e) {
|
|
706
706
|
return e && `${e}`.replace(Ta, Pa);
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function Va(e, t) {
|
|
709
709
|
let n = e.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
|
|
710
710
|
n.endsWith(`index${t}`) && (n = n.replace(`/index${t}`, t));
|
|
711
711
|
const o = n.lastIndexOf("/"), r = n.substring(o + 1);
|
|
@@ -733,9 +733,9 @@ function ze(e, t = 25, n = {}) {
|
|
|
733
733
|
const d = !r && n.leading;
|
|
734
734
|
clearTimeout(r), r = setTimeout(() => {
|
|
735
735
|
r = null;
|
|
736
|
-
const
|
|
736
|
+
const f = n.leading ? o : l(this, c);
|
|
737
737
|
for (const v of a)
|
|
738
|
-
v(
|
|
738
|
+
v(f);
|
|
739
739
|
a = [];
|
|
740
740
|
}, t), d ? (o = l(this, c), u(o)) : a.push(u);
|
|
741
741
|
});
|
|
@@ -751,8 +751,8 @@ function on(e, t = {}, n) {
|
|
|
751
751
|
}
|
|
752
752
|
return t;
|
|
753
753
|
}
|
|
754
|
-
const Aa = { run: (e) => e() },
|
|
755
|
-
function
|
|
754
|
+
const Aa = { run: (e) => e() }, $a = () => Aa, mr = typeof console.createTask < "u" ? console.createTask : $a;
|
|
755
|
+
function xa(e, t) {
|
|
756
756
|
const n = t.shift(), o = mr(n);
|
|
757
757
|
return e.reduce(
|
|
758
758
|
(r, a) => r.then(() => o.run(() => a(...t))),
|
|
@@ -836,7 +836,7 @@ class La {
|
|
|
836
836
|
delete this._hooks[t];
|
|
837
837
|
}
|
|
838
838
|
callHook(t, ...n) {
|
|
839
|
-
return n.unshift(t), this.callHookWith(
|
|
839
|
+
return n.unshift(t), this.callHookWith(xa, t, ...n);
|
|
840
840
|
}
|
|
841
841
|
callHookParallel(t, ...n) {
|
|
842
842
|
return n.unshift(t), this.callHookWith(Ra, t, ...n);
|
|
@@ -2228,7 +2228,7 @@ var ja = Object.create, _r = Object.defineProperty, Ua = Object.getOwnPropertyDe
|
|
|
2228
2228
|
"¤": "tien te"
|
|
2229
2229
|
}
|
|
2230
2230
|
}, l = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), c = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), u = [".", "!", "~", "*", "'", "(", ")"].join(""), d = function(E, m) {
|
|
2231
|
-
var b = "-", S = "", R = "", M = !0, j = {}, ne, w, B, _, h, g, k, I, K, Y, P, Z,
|
|
2231
|
+
var b = "-", S = "", R = "", M = !0, j = {}, ne, w, B, _, h, g, k, I, K, Y, P, Z, $, H, ge = "";
|
|
2232
2232
|
if (typeof E != "string")
|
|
2233
2233
|
return "";
|
|
2234
2234
|
if (typeof m == "string" && (b = m), k = i.en, I = s.en, typeof m == "object") {
|
|
@@ -2243,28 +2243,28 @@ var ja = Object.create, _r = Object.defineProperty, Ua = Object.getOwnPropertyDe
|
|
|
2243
2243
|
for (P in j)
|
|
2244
2244
|
ge += P;
|
|
2245
2245
|
}
|
|
2246
|
-
for (ge += b, ge = v(ge), E = E.replace(/(^\s+|\s+$)/g, ""),
|
|
2247
|
-
P = E[Y],
|
|
2246
|
+
for (ge += b, ge = v(ge), E = E.replace(/(^\s+|\s+$)/g, ""), $ = !1, H = !1, Y = 0, Z = E.length; Y < Z; Y++)
|
|
2247
|
+
P = E[Y], p(P, j) ? $ = !1 : I[P] ? (P = $ && I[P].match(/[A-Za-z0-9]/) ? " " + I[P] : I[P], $ = !1) : P in o ? (Y + 1 < Z && r.indexOf(E[Y + 1]) >= 0 ? (R += P, P = "") : H === !0 ? (P = a[R] + o[P], R = "") : P = $ && o[P].match(/[A-Za-z0-9]/) ? " " + o[P] : o[P], $ = !1, H = !1) : P in a ? (R += P, P = "", Y === Z - 1 && (P = a[R]), H = !0) : (
|
|
2248
2248
|
/* process symbol chars */
|
|
2249
|
-
k[P] && !(_ && l.indexOf(P) !== -1) && !(h && c.indexOf(P) !== -1) ? (P =
|
|
2249
|
+
k[P] && !(_ && l.indexOf(P) !== -1) && !(h && c.indexOf(P) !== -1) ? (P = $ || S.substr(-1).match(/[A-Za-z0-9]/) ? b + k[P] : k[P], P += E[Y + 1] !== void 0 && E[Y + 1].match(/[A-Za-z0-9]/) ? b : "", $ = !0) : (H === !0 ? (P = a[R] + P, R = "", H = !1) : $ && (/[A-Za-z0-9]/.test(P) || S.substr(-1).match(/A-Za-z0-9]/)) && (P = " " + P), $ = !1)
|
|
2250
2250
|
), S += P.replace(new RegExp("[^\\w\\s" + ge + "_-]", "g"), b);
|
|
2251
2251
|
return w && (S = S.replace(/(\w)(\S*)/g, function(oe, et, Yn) {
|
|
2252
2252
|
var zt = et.toUpperCase() + (Yn !== null ? Yn : "");
|
|
2253
2253
|
return Object.keys(j).indexOf(zt.toLowerCase()) < 0 ? zt : zt.toLowerCase();
|
|
2254
2254
|
})), S = S.replace(/\s+/g, b).replace(new RegExp("\\" + b + "+", "g"), b).replace(new RegExp("(^\\" + b + "+|\\" + b + "+$)", "g"), ""), B && S.length > B && (K = S.charAt(B) === b, S = S.slice(0, B), K || (S = S.slice(0, S.lastIndexOf(b)))), !ne && !w && (S = S.toLowerCase()), S;
|
|
2255
|
-
},
|
|
2255
|
+
}, f = function(E) {
|
|
2256
2256
|
return function(m) {
|
|
2257
2257
|
return d(m, E);
|
|
2258
2258
|
};
|
|
2259
2259
|
}, v = function(E) {
|
|
2260
2260
|
return E.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
|
|
2261
|
-
},
|
|
2261
|
+
}, p = function(E, m) {
|
|
2262
2262
|
for (var b in m)
|
|
2263
2263
|
if (m[b] === E)
|
|
2264
2264
|
return !0;
|
|
2265
2265
|
};
|
|
2266
2266
|
if (typeof t < "u" && t.exports)
|
|
2267
|
-
t.exports = d, t.exports.createSlug =
|
|
2267
|
+
t.exports = d, t.exports.createSlug = f;
|
|
2268
2268
|
else if (typeof define < "u" && define.amd)
|
|
2269
2269
|
define([], function() {
|
|
2270
2270
|
return d;
|
|
@@ -2273,7 +2273,7 @@ var ja = Object.create, _r = Object.defineProperty, Ua = Object.getOwnPropertyDe
|
|
|
2273
2273
|
try {
|
|
2274
2274
|
if (n.getSlug || n.createSlug)
|
|
2275
2275
|
throw "speakingurl: globals exists /(getSlug|createSlug)/";
|
|
2276
|
-
n.getSlug = d, n.createSlug =
|
|
2276
|
+
n.getSlug = d, n.createSlug = f;
|
|
2277
2277
|
} catch {
|
|
2278
2278
|
}
|
|
2279
2279
|
}(e);
|
|
@@ -2299,7 +2299,7 @@ function Ga(e) {
|
|
|
2299
2299
|
function Ya(e) {
|
|
2300
2300
|
const t = e.__file;
|
|
2301
2301
|
if (t)
|
|
2302
|
-
return Va(
|
|
2302
|
+
return Ca(Va(t, ".vue"));
|
|
2303
2303
|
}
|
|
2304
2304
|
function Zn(e, t) {
|
|
2305
2305
|
return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t;
|
|
@@ -2365,7 +2365,7 @@ function Za(e) {
|
|
|
2365
2365
|
const r = e.children[n];
|
|
2366
2366
|
let a;
|
|
2367
2367
|
if (r.component)
|
|
2368
|
-
a =
|
|
2368
|
+
a = $e(r.component);
|
|
2369
2369
|
else if (r.el) {
|
|
2370
2370
|
const s = r.el;
|
|
2371
2371
|
s.nodeType === 1 || s.getBoundingClientRect ? a = s.getBoundingClientRect() : s.nodeType === 3 && s.data.trim() && (a = Xa(s));
|
|
@@ -2385,9 +2385,9 @@ var Qn = {
|
|
|
2385
2385
|
width: 0,
|
|
2386
2386
|
height: 0
|
|
2387
2387
|
};
|
|
2388
|
-
function
|
|
2388
|
+
function $e(e) {
|
|
2389
2389
|
const t = e.subTree.el;
|
|
2390
|
-
return typeof window > "u" ? Qn : yr(e) ? Za(e.subTree) : (t == null ? void 0 : t.nodeType) === 1 ? t == null ? void 0 : t.getBoundingClientRect() : e.subTree.component ?
|
|
2390
|
+
return typeof window > "u" ? Qn : yr(e) ? Za(e.subTree) : (t == null ? void 0 : t.nodeType) === 1 ? t == null ? void 0 : t.getBoundingClientRect() : e.subTree.component ? $e(e.subTree.component) : Qn;
|
|
2391
2391
|
}
|
|
2392
2392
|
y();
|
|
2393
2393
|
function Sn(e) {
|
|
@@ -2478,7 +2478,7 @@ function Pn(e) {
|
|
|
2478
2478
|
}), o.innerHTML = `<${e.name}> `, r.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`);
|
|
2479
2479
|
}
|
|
2480
2480
|
function ai(e) {
|
|
2481
|
-
const t =
|
|
2481
|
+
const t = $e(e);
|
|
2482
2482
|
if (!t.width && !t.height)
|
|
2483
2483
|
return;
|
|
2484
2484
|
const n = jt(e);
|
|
@@ -2494,7 +2494,7 @@ function an(e) {
|
|
|
2494
2494
|
if (t) {
|
|
2495
2495
|
const n = t.__vueParentComponent;
|
|
2496
2496
|
if (n && (sn = n, n.vnode.el)) {
|
|
2497
|
-
const o =
|
|
2497
|
+
const o = $e(n), r = jt(n);
|
|
2498
2498
|
Je() ? Pn({ bounds: o, name: r }) : Tn({ bounds: o, name: r });
|
|
2499
2499
|
}
|
|
2500
2500
|
}
|
|
@@ -2505,20 +2505,20 @@ function ii(e, t) {
|
|
|
2505
2505
|
t(n);
|
|
2506
2506
|
}
|
|
2507
2507
|
}
|
|
2508
|
-
var
|
|
2508
|
+
var xt = null;
|
|
2509
2509
|
function li() {
|
|
2510
|
-
Sr(), window.removeEventListener("mouseover", an), window.removeEventListener("click",
|
|
2510
|
+
Sr(), window.removeEventListener("mouseover", an), window.removeEventListener("click", xt, !0), xt = null;
|
|
2511
2511
|
}
|
|
2512
2512
|
function ci() {
|
|
2513
2513
|
return window.addEventListener("mouseover", an), new Promise((e) => {
|
|
2514
2514
|
function t(n) {
|
|
2515
2515
|
n.preventDefault(), n.stopPropagation(), ii(n, (o) => {
|
|
2516
|
-
window.removeEventListener("click", t, !0),
|
|
2516
|
+
window.removeEventListener("click", t, !0), xt = null, window.removeEventListener("mouseover", an);
|
|
2517
2517
|
const r = Je();
|
|
2518
2518
|
r && (r.style.display = "none"), e(JSON.stringify({ id: o }));
|
|
2519
2519
|
});
|
|
2520
2520
|
}
|
|
2521
|
-
|
|
2521
|
+
xt = t, window.addEventListener("click", t, !0);
|
|
2522
2522
|
});
|
|
2523
2523
|
}
|
|
2524
2524
|
function ui(e) {
|
|
@@ -2530,7 +2530,7 @@ function ui(e) {
|
|
|
2530
2530
|
behavior: "smooth"
|
|
2531
2531
|
});
|
|
2532
2532
|
else {
|
|
2533
|
-
const o =
|
|
2533
|
+
const o = $e(t), r = document.createElement("div"), a = {
|
|
2534
2534
|
...In(o),
|
|
2535
2535
|
position: "absolute"
|
|
2536
2536
|
};
|
|
@@ -2541,7 +2541,7 @@ function ui(e) {
|
|
|
2541
2541
|
}, 2e3);
|
|
2542
2542
|
}
|
|
2543
2543
|
setTimeout(() => {
|
|
2544
|
-
const o =
|
|
2544
|
+
const o = $e(t);
|
|
2545
2545
|
if (o.width || o.height) {
|
|
2546
2546
|
const r = jt(t), a = Je();
|
|
2547
2547
|
a ? Pn({ ...e, name: r, bounds: o }) : Tn({ ...e, name: r, bounds: o }), setTimeout(() => {
|
|
@@ -2561,16 +2561,16 @@ function di(e) {
|
|
|
2561
2561
|
5e3 && clearInterval(n);
|
|
2562
2562
|
}, 30);
|
|
2563
2563
|
}
|
|
2564
|
-
function
|
|
2564
|
+
function fi() {
|
|
2565
2565
|
const e = O.__VUE_INSPECTOR__, t = e.openInEditor;
|
|
2566
2566
|
e.openInEditor = async (...n) => {
|
|
2567
2567
|
e.disable(), t(...n);
|
|
2568
2568
|
};
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2570
|
+
function pi() {
|
|
2571
2571
|
return new Promise((e) => {
|
|
2572
2572
|
function t() {
|
|
2573
|
-
|
|
2573
|
+
fi(), e(O.__VUE_INSPECTOR__);
|
|
2574
2574
|
}
|
|
2575
2575
|
O.__VUE_INSPECTOR__ ? t() : di(() => {
|
|
2576
2576
|
t();
|
|
@@ -2703,7 +2703,7 @@ function Ei(e, t) {
|
|
|
2703
2703
|
}
|
|
2704
2704
|
var no;
|
|
2705
2705
|
(no = O).__VUE_DEVTOOLS_KIT_INSPECTOR__ != null || (no.__VUE_DEVTOOLS_KIT_INSPECTOR__ = []);
|
|
2706
|
-
var
|
|
2706
|
+
var Cn = new Proxy(O.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
|
|
2707
2707
|
get(e, t, n) {
|
|
2708
2708
|
return Reflect.get(e, t, n);
|
|
2709
2709
|
}
|
|
@@ -2712,7 +2712,7 @@ var Vn = new Proxy(O.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
|
|
|
2712
2712
|
});
|
|
2713
2713
|
function bi(e, t) {
|
|
2714
2714
|
var n, o;
|
|
2715
|
-
|
|
2715
|
+
Cn.push({
|
|
2716
2716
|
options: e,
|
|
2717
2717
|
descriptor: t,
|
|
2718
2718
|
treeFilterPlaceholder: (n = e.treeFilterPlaceholder) != null ? n : "Search tree...",
|
|
@@ -2723,7 +2723,7 @@ function bi(e, t) {
|
|
|
2723
2723
|
}), Tr();
|
|
2724
2724
|
}
|
|
2725
2725
|
function Pr() {
|
|
2726
|
-
return
|
|
2726
|
+
return Cn.filter((e) => e.descriptor.app === J.value.app).filter((e) => e.descriptor.id !== "components").map((e) => {
|
|
2727
2727
|
var t;
|
|
2728
2728
|
const n = e.descriptor, o = e.options;
|
|
2729
2729
|
return {
|
|
@@ -2738,7 +2738,7 @@ function Pr() {
|
|
|
2738
2738
|
});
|
|
2739
2739
|
}
|
|
2740
2740
|
function St(e, t) {
|
|
2741
|
-
return
|
|
2741
|
+
return Cn.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
|
|
2742
2742
|
}
|
|
2743
2743
|
function wi() {
|
|
2744
2744
|
const e = vr();
|
|
@@ -2828,7 +2828,7 @@ function wi() {
|
|
|
2828
2828
|
return null;
|
|
2829
2829
|
const a = r.id.toString();
|
|
2830
2830
|
return [...r.instanceMap].filter(([s]) => s.split(":")[0] === a).map(([, s]) => s);
|
|
2831
|
-
}), e.hook("getComponentBounds", async ({ instance: o }) =>
|
|
2831
|
+
}), e.hook("getComponentBounds", async ({ instance: o }) => $e(o)), e.hook("getComponentName", ({ instance: o }) => jt(o)), e.hook("componentHighlight", ({ uid: o }) => {
|
|
2832
2832
|
const r = J.value.instanceMap.get(o);
|
|
2833
2833
|
r && ai(r);
|
|
2834
2834
|
}), e.hook("componentUnhighlight", () => {
|
|
@@ -2845,7 +2845,7 @@ var ao;
|
|
|
2845
2845
|
(ao = O).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ != null || (ao.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ = []);
|
|
2846
2846
|
var io;
|
|
2847
2847
|
(io = O).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ != null || (io.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = []);
|
|
2848
|
-
var
|
|
2848
|
+
var Ce = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";
|
|
2849
2849
|
function Oi() {
|
|
2850
2850
|
return {
|
|
2851
2851
|
connected: !1,
|
|
@@ -2862,7 +2862,7 @@ function Oi() {
|
|
|
2862
2862
|
};
|
|
2863
2863
|
}
|
|
2864
2864
|
var lo;
|
|
2865
|
-
(lo = O)[
|
|
2865
|
+
(lo = O)[Ce] != null || (lo[Ce] = Oi());
|
|
2866
2866
|
var ki = ze((e) => {
|
|
2867
2867
|
Xe.hooks.callHook("devtoolsStateUpdated", { state: e });
|
|
2868
2868
|
});
|
|
@@ -2878,9 +2878,9 @@ var Ut = new Proxy(O.__VUE_DEVTOOLS_KIT_APP_RECORDS__, {
|
|
|
2878
2878
|
return t === "value" ? O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ : t === "id" ? O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ : O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t];
|
|
2879
2879
|
}
|
|
2880
2880
|
});
|
|
2881
|
-
function
|
|
2881
|
+
function Cr() {
|
|
2882
2882
|
ki({
|
|
2883
|
-
...O[
|
|
2883
|
+
...O[Ce],
|
|
2884
2884
|
appRecords: Ut.value,
|
|
2885
2885
|
activeAppRecordId: J.id,
|
|
2886
2886
|
tabs: O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,
|
|
@@ -2888,20 +2888,20 @@ function Vr() {
|
|
|
2888
2888
|
});
|
|
2889
2889
|
}
|
|
2890
2890
|
function Si(e) {
|
|
2891
|
-
O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = e,
|
|
2891
|
+
O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = e, Cr();
|
|
2892
2892
|
}
|
|
2893
2893
|
function Ii(e) {
|
|
2894
|
-
O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = e,
|
|
2894
|
+
O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = e, Cr();
|
|
2895
2895
|
}
|
|
2896
|
-
var z = new Proxy(O[
|
|
2896
|
+
var z = new Proxy(O[Ce], {
|
|
2897
2897
|
get(e, t) {
|
|
2898
|
-
return t === "appRecords" ? Ut : t === "activeAppRecordId" ? J.id : t === "tabs" ? O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : O[
|
|
2898
|
+
return t === "appRecords" ? Ut : t === "activeAppRecordId" ? J.id : t === "tabs" ? O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : O[Ce][t];
|
|
2899
2899
|
},
|
|
2900
2900
|
deleteProperty(e, t) {
|
|
2901
2901
|
return delete e[t], !0;
|
|
2902
2902
|
},
|
|
2903
2903
|
set(e, t, n) {
|
|
2904
|
-
return { ...O[
|
|
2904
|
+
return { ...O[Ce] }, e[t] = n, O[Ce][t] = n, !0;
|
|
2905
2905
|
}
|
|
2906
2906
|
});
|
|
2907
2907
|
function Ti(e = {}) {
|
|
@@ -2912,8 +2912,8 @@ function Ti(e = {}) {
|
|
|
2912
2912
|
const c = r.replace(/\\/g, "\\\\"), u = (n = (t = window.VUE_DEVTOOLS_CONFIG) == null ? void 0 : t.openInEditorHost) != null ? n : "/";
|
|
2913
2913
|
fetch(`${u}__open-in-editor?file=${encodeURI(r)}`).then((d) => {
|
|
2914
2914
|
if (!d.ok) {
|
|
2915
|
-
const
|
|
2916
|
-
console.log(`%c${
|
|
2915
|
+
const f = `Opening component ${c} failed`;
|
|
2916
|
+
console.log(`%c${f}`, "color:red");
|
|
2917
2917
|
}
|
|
2918
2918
|
});
|
|
2919
2919
|
} else if (z.vitePluginDetected) {
|
|
@@ -2929,7 +2929,7 @@ y();
|
|
|
2929
2929
|
y();
|
|
2930
2930
|
var co;
|
|
2931
2931
|
(co = O).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ != null || (co.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = []);
|
|
2932
|
-
var
|
|
2932
|
+
var Vn = new Proxy(O.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, {
|
|
2933
2933
|
get(e, t, n) {
|
|
2934
2934
|
return Reflect.get(e, t, n);
|
|
2935
2935
|
}
|
|
@@ -2945,13 +2945,13 @@ function Nn(e) {
|
|
|
2945
2945
|
}
|
|
2946
2946
|
function Pi(e) {
|
|
2947
2947
|
var t, n, o;
|
|
2948
|
-
const r = (n = (t =
|
|
2948
|
+
const r = (n = (t = Vn.find((a) => {
|
|
2949
2949
|
var s;
|
|
2950
2950
|
return a[0].id === e && !!((s = a[0]) != null && s.settings);
|
|
2951
2951
|
})) == null ? void 0 : t[0]) != null ? n : null;
|
|
2952
2952
|
return (o = r == null ? void 0 : r.settings) != null ? o : null;
|
|
2953
2953
|
}
|
|
2954
|
-
function
|
|
2954
|
+
function Vr(e, t) {
|
|
2955
2955
|
var n, o, r;
|
|
2956
2956
|
const a = Nn(e);
|
|
2957
2957
|
if (a) {
|
|
@@ -2960,16 +2960,16 @@ function Cr(e, t) {
|
|
|
2960
2960
|
return JSON.parse(s);
|
|
2961
2961
|
}
|
|
2962
2962
|
if (e) {
|
|
2963
|
-
const s = (o = (n =
|
|
2963
|
+
const s = (o = (n = Vn.find((i) => i[0].id === e)) == null ? void 0 : n[0]) != null ? o : null;
|
|
2964
2964
|
return ln((r = s == null ? void 0 : s.settings) != null ? r : {});
|
|
2965
2965
|
}
|
|
2966
2966
|
return ln(t);
|
|
2967
2967
|
}
|
|
2968
|
-
function
|
|
2968
|
+
function Ci(e, t) {
|
|
2969
2969
|
const n = Nn(e);
|
|
2970
2970
|
localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(ln(t)));
|
|
2971
2971
|
}
|
|
2972
|
-
function
|
|
2972
|
+
function Vi(e, t, n) {
|
|
2973
2973
|
const o = Nn(e), r = localStorage.getItem(o), a = JSON.parse(r || "{}"), s = {
|
|
2974
2974
|
...a,
|
|
2975
2975
|
[t]: n
|
|
@@ -2999,7 +2999,7 @@ y();
|
|
|
2999
2999
|
y();
|
|
3000
3000
|
y();
|
|
3001
3001
|
y();
|
|
3002
|
-
var uo,
|
|
3002
|
+
var uo, fo, X = (fo = (uo = O).__VUE_DEVTOOLS_HOOK) != null ? fo : uo.__VUE_DEVTOOLS_HOOK = vr(), Ni = {
|
|
3003
3003
|
vueAppInit(e) {
|
|
3004
3004
|
X.hook("app:init", e);
|
|
3005
3005
|
},
|
|
@@ -3099,7 +3099,7 @@ var uo, po, X = (po = (uo = O).__VUE_DEVTOOLS_HOOK) != null ? po : uo.__VUE_DEVT
|
|
|
3099
3099
|
}
|
|
3100
3100
|
// custom inspector
|
|
3101
3101
|
addInspector(e) {
|
|
3102
|
-
this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings &&
|
|
3102
|
+
this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings && Ci(e.id, this.plugin.descriptor.settings);
|
|
3103
3103
|
}
|
|
3104
3104
|
sendInspectorTree(e) {
|
|
3105
3105
|
z.highPerfModeEnabled || this.hooks.callHook("sendInspectorTree", { inspectorId: e, plugin: this.plugin });
|
|
@@ -3125,7 +3125,7 @@ var uo, po, X = (po = (uo = O).__VUE_DEVTOOLS_HOOK) != null ? po : uo.__VUE_DEVT
|
|
|
3125
3125
|
}
|
|
3126
3126
|
// settings
|
|
3127
3127
|
getSettings(e) {
|
|
3128
|
-
return
|
|
3128
|
+
return Vr(e ?? this.plugin.descriptor.id, this.plugin.descriptor.settings);
|
|
3129
3129
|
}
|
|
3130
3130
|
// utilities
|
|
3131
3131
|
getComponentInstances(e) {
|
|
@@ -3152,13 +3152,13 @@ y();
|
|
|
3152
3152
|
y();
|
|
3153
3153
|
y();
|
|
3154
3154
|
y();
|
|
3155
|
-
var
|
|
3155
|
+
var $i = "__vue_devtool_undefined__", xi = "__vue_devtool_infinity__", Ri = "__vue_devtool_negative_infinity__", Li = "__vue_devtool_nan__";
|
|
3156
3156
|
y();
|
|
3157
3157
|
y();
|
|
3158
3158
|
var ji = {
|
|
3159
|
-
[
|
|
3159
|
+
[$i]: "undefined",
|
|
3160
3160
|
[Li]: "NaN",
|
|
3161
|
-
[
|
|
3161
|
+
[xi]: "Infinity",
|
|
3162
3162
|
[Ri]: "-Infinity"
|
|
3163
3163
|
};
|
|
3164
3164
|
Object.entries(ji).reduce((e, [t, n]) => (e[n] = t, e), {});
|
|
@@ -3167,8 +3167,8 @@ y();
|
|
|
3167
3167
|
y();
|
|
3168
3168
|
y();
|
|
3169
3169
|
y();
|
|
3170
|
-
var
|
|
3171
|
-
(
|
|
3170
|
+
var po;
|
|
3171
|
+
(po = O).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ != null || (po.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set());
|
|
3172
3172
|
function Dr(e, t) {
|
|
3173
3173
|
return Nr.setupDevToolsPlugin(e, t);
|
|
3174
3174
|
}
|
|
@@ -3188,7 +3188,7 @@ function Ui(e, t) {
|
|
|
3188
3188
|
}), o(r);
|
|
3189
3189
|
}
|
|
3190
3190
|
function Ar(e, t) {
|
|
3191
|
-
O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || z.highPerfModeEnabled && !(t != null && t.inspectingComponent) || (O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),
|
|
3191
|
+
O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || z.highPerfModeEnabled && !(t != null && t.inspectingComponent) || (O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), Vn.forEach((n) => {
|
|
3192
3192
|
Ui(n, e);
|
|
3193
3193
|
}));
|
|
3194
3194
|
}
|
|
@@ -3342,7 +3342,7 @@ function Bi(e) {
|
|
|
3342
3342
|
// open in editor
|
|
3343
3343
|
openInEditor: Ti,
|
|
3344
3344
|
// get vue inspector
|
|
3345
|
-
getVueInspector:
|
|
3345
|
+
getVueInspector: pi,
|
|
3346
3346
|
// toggle app
|
|
3347
3347
|
toggleApp(t, n) {
|
|
3348
3348
|
const o = Ut.value.find((r) => r.id === t);
|
|
@@ -3357,12 +3357,12 @@ function Bi(e) {
|
|
|
3357
3357
|
}
|
|
3358
3358
|
},
|
|
3359
3359
|
updatePluginSettings(t, n, o) {
|
|
3360
|
-
|
|
3360
|
+
Vi(t, n, o);
|
|
3361
3361
|
},
|
|
3362
3362
|
getPluginSettings(t) {
|
|
3363
3363
|
return {
|
|
3364
3364
|
options: Pi(t),
|
|
3365
|
-
values:
|
|
3365
|
+
values: Vr(t)
|
|
3366
3366
|
};
|
|
3367
3367
|
}
|
|
3368
3368
|
};
|
|
@@ -3434,7 +3434,7 @@ var Fi = class {
|
|
|
3434
3434
|
clear() {
|
|
3435
3435
|
this.keyToValue.clear(), this.valueToKey.clear();
|
|
3436
3436
|
}
|
|
3437
|
-
},
|
|
3437
|
+
}, $r = class {
|
|
3438
3438
|
constructor(e) {
|
|
3439
3439
|
this.generateIdentifier = e, this.kv = new Fi();
|
|
3440
3440
|
}
|
|
@@ -3450,7 +3450,7 @@ var Fi = class {
|
|
|
3450
3450
|
getValue(e) {
|
|
3451
3451
|
return this.kv.getByKey(e);
|
|
3452
3452
|
}
|
|
3453
|
-
}, Gi = class extends
|
|
3453
|
+
}, Gi = class extends $r {
|
|
3454
3454
|
constructor() {
|
|
3455
3455
|
super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
3456
3456
|
}
|
|
@@ -3511,7 +3511,7 @@ var Ji = class {
|
|
|
3511
3511
|
};
|
|
3512
3512
|
y();
|
|
3513
3513
|
y();
|
|
3514
|
-
var Xi = (e) => Object.prototype.toString.call(e).slice(8, -1),
|
|
3514
|
+
var Xi = (e) => Object.prototype.toString.call(e).slice(8, -1), xr = (e) => typeof e > "u", Zi = (e) => e === null, ut = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, cn = (e) => ut(e) && Object.keys(e).length === 0, Se = (e) => Array.isArray(e), Qi = (e) => typeof e == "string", el = (e) => typeof e == "number" && !isNaN(e), tl = (e) => typeof e == "boolean", nl = (e) => e instanceof RegExp, dt = (e) => e instanceof Map, ft = (e) => e instanceof Set, Rr = (e) => Xi(e) === "Symbol", ol = (e) => e instanceof Date && !isNaN(e.valueOf()), rl = (e) => e instanceof Error, wo = (e) => typeof e == "number" && isNaN(e), sl = (e) => tl(e) || Zi(e) || xr(e) || el(e) || Qi(e) || Rr(e), al = (e) => typeof e == "bigint", il = (e) => e === 1 / 0 || e === -1 / 0, ll = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), cl = (e) => e instanceof URL;
|
|
3515
3515
|
y();
|
|
3516
3516
|
var Lr = (e) => e.replace(/\./g, "\\."), Yt = (e) => e.map(String).map(Lr).join("."), st = (e) => {
|
|
3517
3517
|
const t = [];
|
|
@@ -3541,7 +3541,7 @@ function ie(e, t, n, o) {
|
|
|
3541
3541
|
};
|
|
3542
3542
|
}
|
|
3543
3543
|
var jr = [
|
|
3544
|
-
ie(
|
|
3544
|
+
ie(xr, "undefined", () => null, () => {
|
|
3545
3545
|
}),
|
|
3546
3546
|
ie(al, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
|
|
3547
3547
|
ie(ol, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
|
@@ -3564,7 +3564,7 @@ var jr = [
|
|
|
3564
3564
|
return new RegExp(t, n);
|
|
3565
3565
|
}),
|
|
3566
3566
|
ie(
|
|
3567
|
-
|
|
3567
|
+
ft,
|
|
3568
3568
|
"set",
|
|
3569
3569
|
// (sets only exist in es6+)
|
|
3570
3570
|
// eslint-disable-next-line es5/no-es6-methods
|
|
@@ -3643,7 +3643,7 @@ var zr = Mt(Hr, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
3643
3643
|
jr.forEach((e) => {
|
|
3644
3644
|
Kr[e.annotation] = e;
|
|
3645
3645
|
});
|
|
3646
|
-
var
|
|
3646
|
+
var fl = (e, t, n) => {
|
|
3647
3647
|
if (Se(t))
|
|
3648
3648
|
switch (t[0]) {
|
|
3649
3649
|
case "symbol":
|
|
@@ -3681,11 +3681,11 @@ function Wr(e) {
|
|
|
3681
3681
|
if (It(e, "constructor"))
|
|
3682
3682
|
throw new Error("constructor is not allowed as a property");
|
|
3683
3683
|
}
|
|
3684
|
-
var
|
|
3684
|
+
var pl = (e, t) => {
|
|
3685
3685
|
Wr(t);
|
|
3686
3686
|
for (let n = 0; n < t.length; n++) {
|
|
3687
3687
|
const o = t[n];
|
|
3688
|
-
if (
|
|
3688
|
+
if (ft(e))
|
|
3689
3689
|
e = Ue(e, +o);
|
|
3690
3690
|
else if (dt(e)) {
|
|
3691
3691
|
const r = +o, a = +t[++n] == 0 ? "key" : "value", s = Ue(e, r);
|
|
@@ -3712,7 +3712,7 @@ var fl = (e, t) => {
|
|
|
3712
3712
|
o = o[i];
|
|
3713
3713
|
} else if (ut(o))
|
|
3714
3714
|
o = o[s];
|
|
3715
|
-
else if (
|
|
3715
|
+
else if (ft(o)) {
|
|
3716
3716
|
const i = +s;
|
|
3717
3717
|
o = Ue(o, i);
|
|
3718
3718
|
} else if (dt(o)) {
|
|
@@ -3730,7 +3730,7 @@ var fl = (e, t) => {
|
|
|
3730
3730
|
}
|
|
3731
3731
|
}
|
|
3732
3732
|
const r = t[t.length - 1];
|
|
3733
|
-
if (Se(o) ? o[+r] = n(o[+r]) : ut(o) && (o[r] = n(o[r])),
|
|
3733
|
+
if (Se(o) ? o[+r] = n(o[+r]) : ut(o) && (o[r] = n(o[r])), ft(o)) {
|
|
3734
3734
|
const a = Ue(o, +r), s = n(a);
|
|
3735
3735
|
a !== s && (o.delete(a), o.add(s));
|
|
3736
3736
|
}
|
|
@@ -3764,12 +3764,12 @@ function dn(e, t, n = []) {
|
|
|
3764
3764
|
}
|
|
3765
3765
|
function hl(e, t, n) {
|
|
3766
3766
|
return dn(t, (o, r) => {
|
|
3767
|
-
e = un(e, r, (a) =>
|
|
3767
|
+
e = un(e, r, (a) => fl(a, o, n));
|
|
3768
3768
|
}), e;
|
|
3769
3769
|
}
|
|
3770
3770
|
function ml(e, t) {
|
|
3771
3771
|
function n(o, r) {
|
|
3772
|
-
const a =
|
|
3772
|
+
const a = pl(e, st(r));
|
|
3773
3773
|
o.map(st).forEach((s) => {
|
|
3774
3774
|
e = un(e, s, () => a);
|
|
3775
3775
|
});
|
|
@@ -3783,7 +3783,7 @@ function ml(e, t) {
|
|
|
3783
3783
|
Ke(t, n);
|
|
3784
3784
|
return e;
|
|
3785
3785
|
}
|
|
3786
|
-
var vl = (e, t) => ut(e) || Se(e) || dt(e) ||
|
|
3786
|
+
var vl = (e, t) => ut(e) || Se(e) || dt(e) || ft(e) || Hr(e, t);
|
|
3787
3787
|
function _l(e, t, n) {
|
|
3788
3788
|
const o = n.get(e);
|
|
3789
3789
|
o ? o.push(t) : n.set(e, [t]);
|
|
@@ -3804,16 +3804,16 @@ var Fr = (e, t, n, o, r = [], a = [], s = /* @__PURE__ */ new Map()) => {
|
|
|
3804
3804
|
const l = sl(e);
|
|
3805
3805
|
if (!l) {
|
|
3806
3806
|
_l(e, r, t);
|
|
3807
|
-
const
|
|
3808
|
-
if (
|
|
3807
|
+
const p = s.get(e);
|
|
3808
|
+
if (p)
|
|
3809
3809
|
return o ? {
|
|
3810
3810
|
transformedValue: null
|
|
3811
|
-
} :
|
|
3811
|
+
} : p;
|
|
3812
3812
|
}
|
|
3813
3813
|
if (!vl(e, n)) {
|
|
3814
|
-
const
|
|
3815
|
-
transformedValue:
|
|
3816
|
-
annotations: [
|
|
3814
|
+
const p = Oo(e, n), E = p ? {
|
|
3815
|
+
transformedValue: p.value,
|
|
3816
|
+
annotations: [p.type]
|
|
3817
3817
|
} : {
|
|
3818
3818
|
transformedValue: e
|
|
3819
3819
|
};
|
|
@@ -3823,21 +3823,21 @@ var Fr = (e, t, n, o, r = [], a = [], s = /* @__PURE__ */ new Map()) => {
|
|
|
3823
3823
|
return {
|
|
3824
3824
|
transformedValue: null
|
|
3825
3825
|
};
|
|
3826
|
-
const c = Oo(e, n), u = (i = c == null ? void 0 : c.value) != null ? i : e, d = Se(u) ? [] : {},
|
|
3827
|
-
Ke(u, (
|
|
3826
|
+
const c = Oo(e, n), u = (i = c == null ? void 0 : c.value) != null ? i : e, d = Se(u) ? [] : {}, f = {};
|
|
3827
|
+
Ke(u, (p, E) => {
|
|
3828
3828
|
if (E === "__proto__" || E === "constructor" || E === "prototype")
|
|
3829
3829
|
throw new Error(`Detected property ${E}. This is a prototype pollution risk, please remove it from your object.`);
|
|
3830
|
-
const m = Fr(
|
|
3831
|
-
d[E] = m.transformedValue, Se(m.annotations) ?
|
|
3832
|
-
|
|
3830
|
+
const m = Fr(p, t, n, o, [...r, E], [...a, e], s);
|
|
3831
|
+
d[E] = m.transformedValue, Se(m.annotations) ? f[E] = m.annotations : ut(m.annotations) && Ke(m.annotations, (b, S) => {
|
|
3832
|
+
f[Lr(E) + "." + S] = b;
|
|
3833
3833
|
});
|
|
3834
3834
|
});
|
|
3835
|
-
const v = cn(
|
|
3835
|
+
const v = cn(f) ? {
|
|
3836
3836
|
transformedValue: d,
|
|
3837
3837
|
annotations: c ? [c.type] : void 0
|
|
3838
3838
|
} : {
|
|
3839
3839
|
transformedValue: d,
|
|
3840
|
-
annotations: c ? [c.type,
|
|
3840
|
+
annotations: c ? [c.type, f] : f
|
|
3841
3841
|
};
|
|
3842
3842
|
return l || s.set(e, v), v;
|
|
3843
3843
|
};
|
|
@@ -3864,16 +3864,16 @@ function El(e, t, n, o, r) {
|
|
|
3864
3864
|
configurable: !0
|
|
3865
3865
|
});
|
|
3866
3866
|
}
|
|
3867
|
-
function
|
|
3867
|
+
function fn(e, t = {}) {
|
|
3868
3868
|
if (ko(e))
|
|
3869
|
-
return e.map((r) =>
|
|
3869
|
+
return e.map((r) => fn(r, t));
|
|
3870
3870
|
if (!yl(e))
|
|
3871
3871
|
return e;
|
|
3872
3872
|
const n = Object.getOwnPropertyNames(e), o = Object.getOwnPropertySymbols(e);
|
|
3873
3873
|
return [...n, ...o].reduce((r, a) => {
|
|
3874
3874
|
if (ko(t.props) && !t.props.includes(a))
|
|
3875
3875
|
return r;
|
|
3876
|
-
const s = e[a], i =
|
|
3876
|
+
const s = e[a], i = fn(s, t);
|
|
3877
3877
|
return El(r, a, i, e, t.nonenumerable), r;
|
|
3878
3878
|
}, {});
|
|
3879
3879
|
}
|
|
@@ -3882,7 +3882,7 @@ var L = class {
|
|
|
3882
3882
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
3883
3883
|
*/
|
|
3884
3884
|
constructor({ dedupe: e = !1 } = {}) {
|
|
3885
|
-
this.classRegistry = new Gi(), this.symbolRegistry = new
|
|
3885
|
+
this.classRegistry = new Gi(), this.symbolRegistry = new $r((t) => {
|
|
3886
3886
|
var n;
|
|
3887
3887
|
return (n = t.description) != null ? n : "";
|
|
3888
3888
|
}), this.customTransformerRegistry = new Ji(), this.allowedErrorProps = [], this.dedupe = e;
|
|
@@ -3903,7 +3903,7 @@ var L = class {
|
|
|
3903
3903
|
}
|
|
3904
3904
|
deserialize(e) {
|
|
3905
3905
|
const { json: t, meta: n } = e;
|
|
3906
|
-
let o =
|
|
3906
|
+
let o = fn(t);
|
|
3907
3907
|
return n != null && n.values && (o = hl(o, n.values, this)), n != null && n.referentialEqualities && (o = ml(o, n.referentialEqualities)), o;
|
|
3908
3908
|
}
|
|
3909
3909
|
stringify(e) {
|
|
@@ -3968,10 +3968,10 @@ var To;
|
|
|
3968
3968
|
(To = O).__VUE_DEVTOOLS_KIT_RPC_SERVER__ != null || (To.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null);
|
|
3969
3969
|
var Po;
|
|
3970
3970
|
(Po = O).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ != null || (Po.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = null);
|
|
3971
|
-
var Vo;
|
|
3972
|
-
(Vo = O).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ != null || (Vo.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null);
|
|
3973
3971
|
var Co;
|
|
3974
|
-
(Co = O).
|
|
3972
|
+
(Co = O).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ != null || (Co.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null);
|
|
3973
|
+
var Vo;
|
|
3974
|
+
(Vo = O).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ != null || (Vo.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null);
|
|
3975
3975
|
y();
|
|
3976
3976
|
y();
|
|
3977
3977
|
y();
|
|
@@ -3985,11 +3985,11 @@ y();
|
|
|
3985
3985
|
* @license MIT
|
|
3986
3986
|
*/
|
|
3987
3987
|
let nt;
|
|
3988
|
-
const
|
|
3988
|
+
const pt = (e) => nt = e, Yr = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
3989
3989
|
/* istanbul ignore next */
|
|
3990
3990
|
Symbol()
|
|
3991
3991
|
);
|
|
3992
|
-
function
|
|
3992
|
+
function xe(e) {
|
|
3993
3993
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
3994
3994
|
}
|
|
3995
3995
|
var ce;
|
|
@@ -4095,7 +4095,7 @@ function W(e, t) {
|
|
|
4095
4095
|
const n = "🍍 " + e;
|
|
4096
4096
|
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(n, t) : t === "error" ? console.error(n) : t === "warn" ? console.warn(n) : console.log(n);
|
|
4097
4097
|
}
|
|
4098
|
-
function
|
|
4098
|
+
function $n(e) {
|
|
4099
4099
|
return "_a" in e && "install" in e;
|
|
4100
4100
|
}
|
|
4101
4101
|
function Zr() {
|
|
@@ -4134,23 +4134,23 @@ async function Tl(e) {
|
|
|
4134
4134
|
W("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(t);
|
|
4135
4135
|
}
|
|
4136
4136
|
}
|
|
4137
|
-
let
|
|
4137
|
+
let fe;
|
|
4138
4138
|
function Pl() {
|
|
4139
|
-
|
|
4139
|
+
fe || (fe = document.createElement("input"), fe.type = "file", fe.accept = ".json");
|
|
4140
4140
|
function e() {
|
|
4141
4141
|
return new Promise((t, n) => {
|
|
4142
|
-
|
|
4143
|
-
const o =
|
|
4142
|
+
fe.onchange = async () => {
|
|
4143
|
+
const o = fe.files;
|
|
4144
4144
|
if (!o)
|
|
4145
4145
|
return t(null);
|
|
4146
4146
|
const r = o.item(0);
|
|
4147
4147
|
return t(r ? { text: await r.text(), file: r } : null);
|
|
4148
|
-
},
|
|
4148
|
+
}, fe.oncancel = () => t(null), fe.onerror = n, fe.click();
|
|
4149
4149
|
});
|
|
4150
4150
|
}
|
|
4151
4151
|
return e;
|
|
4152
4152
|
}
|
|
4153
|
-
async function
|
|
4153
|
+
async function Cl(e) {
|
|
4154
4154
|
try {
|
|
4155
4155
|
const t = await Pl()();
|
|
4156
4156
|
if (!t)
|
|
@@ -4174,10 +4174,10 @@ function re(e) {
|
|
|
4174
4174
|
}
|
|
4175
4175
|
};
|
|
4176
4176
|
}
|
|
4177
|
-
const ts = "🍍 Pinia (root)",
|
|
4178
|
-
function
|
|
4179
|
-
return
|
|
4180
|
-
id:
|
|
4177
|
+
const ts = "🍍 Pinia (root)", Ct = "_root";
|
|
4178
|
+
function Vl(e) {
|
|
4179
|
+
return $n(e) ? {
|
|
4180
|
+
id: Ct,
|
|
4181
4181
|
label: ts
|
|
4182
4182
|
} : {
|
|
4183
4183
|
id: e.$id,
|
|
@@ -4185,7 +4185,7 @@ function Cl(e) {
|
|
|
4185
4185
|
};
|
|
4186
4186
|
}
|
|
4187
4187
|
function Nl(e) {
|
|
4188
|
-
if (
|
|
4188
|
+
if ($n(e)) {
|
|
4189
4189
|
const n = Array.from(e._s.keys()), o = e._s;
|
|
4190
4190
|
return {
|
|
4191
4191
|
state: n.map((r) => ({
|
|
@@ -4246,15 +4246,15 @@ function Al(e) {
|
|
|
4246
4246
|
}
|
|
4247
4247
|
}
|
|
4248
4248
|
let Me = !0;
|
|
4249
|
-
const
|
|
4250
|
-
function
|
|
4249
|
+
const Vt = [], Te = "pinia:mutations", G = "pinia", { assign: $l } = Object, Rt = (e) => "🍍 " + e;
|
|
4250
|
+
function xl(e, t) {
|
|
4251
4251
|
Dr({
|
|
4252
4252
|
id: "dev.esm.pinia",
|
|
4253
4253
|
label: "Pinia 🍍",
|
|
4254
4254
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
4255
4255
|
packageName: "pinia",
|
|
4256
4256
|
homepage: "https://pinia.vuejs.org",
|
|
4257
|
-
componentStateTypes:
|
|
4257
|
+
componentStateTypes: Vt,
|
|
4258
4258
|
app: e
|
|
4259
4259
|
}, (n) => {
|
|
4260
4260
|
typeof n.now != "function" && W("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
|
|
@@ -4291,7 +4291,7 @@ function $l(e, t) {
|
|
|
4291
4291
|
{
|
|
4292
4292
|
icon: "folder_open",
|
|
4293
4293
|
action: async () => {
|
|
4294
|
-
await
|
|
4294
|
+
await Cl(t), n.sendInspectorTree(G), n.sendInspectorState(G);
|
|
4295
4295
|
},
|
|
4296
4296
|
tooltip: "Import the state from a JSON file"
|
|
4297
4297
|
}
|
|
@@ -4348,22 +4348,22 @@ function $l(e, t) {
|
|
|
4348
4348
|
}), n.on.getInspectorTree((o) => {
|
|
4349
4349
|
if (o.app === e && o.inspectorId === G) {
|
|
4350
4350
|
let r = [t];
|
|
4351
|
-
r = r.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? r.filter((a) => "$id" in a ? a.$id.toLowerCase().includes(o.filter.toLowerCase()) : ts.toLowerCase().includes(o.filter.toLowerCase())) : r).map(
|
|
4351
|
+
r = r.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? r.filter((a) => "$id" in a ? a.$id.toLowerCase().includes(o.filter.toLowerCase()) : ts.toLowerCase().includes(o.filter.toLowerCase())) : r).map(Vl);
|
|
4352
4352
|
}
|
|
4353
4353
|
}), globalThis.$pinia = t, n.on.getInspectorState((o) => {
|
|
4354
4354
|
if (o.app === e && o.inspectorId === G) {
|
|
4355
|
-
const r = o.nodeId ===
|
|
4355
|
+
const r = o.nodeId === Ct ? t : t._s.get(o.nodeId);
|
|
4356
4356
|
if (!r)
|
|
4357
4357
|
return;
|
|
4358
|
-
r && (o.nodeId !==
|
|
4358
|
+
r && (o.nodeId !== Ct && (globalThis.$store = He(r)), o.state = Nl(r));
|
|
4359
4359
|
}
|
|
4360
4360
|
}), n.on.editInspectorState((o) => {
|
|
4361
4361
|
if (o.app === e && o.inspectorId === G) {
|
|
4362
|
-
const r = o.nodeId ===
|
|
4362
|
+
const r = o.nodeId === Ct ? t : t._s.get(o.nodeId);
|
|
4363
4363
|
if (!r)
|
|
4364
4364
|
return W(`store "${o.nodeId}" not found`, "error");
|
|
4365
4365
|
const { path: a } = o;
|
|
4366
|
-
|
|
4366
|
+
$n(r) ? a.unshift("state") : (a.length !== 1 || !r._customProperties.has(a[0]) || a[0] in r.$state) && a.unshift("$state"), Me = !1, o.set(r, a, o.state.value), Me = !0;
|
|
4367
4367
|
}
|
|
4368
4368
|
}), n.on.editComponentState((o) => {
|
|
4369
4369
|
if (o.type.startsWith("🍍")) {
|
|
@@ -4381,13 +4381,13 @@ Only state can be modified.`);
|
|
|
4381
4381
|
});
|
|
4382
4382
|
}
|
|
4383
4383
|
function Rl(e, t) {
|
|
4384
|
-
|
|
4384
|
+
Vt.includes(Rt(t.$id)) || Vt.push(Rt(t.$id)), Dr({
|
|
4385
4385
|
id: "dev.esm.pinia",
|
|
4386
4386
|
label: "Pinia 🍍",
|
|
4387
4387
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
4388
4388
|
packageName: "pinia",
|
|
4389
4389
|
homepage: "https://pinia.vuejs.org",
|
|
4390
|
-
componentStateTypes:
|
|
4390
|
+
componentStateTypes: Vt,
|
|
4391
4391
|
app: e,
|
|
4392
4392
|
settings: {
|
|
4393
4393
|
logStoreChanges: {
|
|
@@ -4453,7 +4453,7 @@ function Rl(e, t) {
|
|
|
4453
4453
|
});
|
|
4454
4454
|
});
|
|
4455
4455
|
}, !0), t._customProperties.forEach((s) => {
|
|
4456
|
-
U(() =>
|
|
4456
|
+
U(() => C(t[s]), (i, l) => {
|
|
4457
4457
|
n.notifyComponentUpdate(), n.sendInspectorState(G), Me && n.addTimelineEvent({
|
|
4458
4458
|
layerId: Te,
|
|
4459
4459
|
event: {
|
|
@@ -4474,7 +4474,7 @@ function Rl(e, t) {
|
|
|
4474
4474
|
const c = {
|
|
4475
4475
|
time: o(),
|
|
4476
4476
|
title: Al(i),
|
|
4477
|
-
data:
|
|
4477
|
+
data: $l({ store: re(t.$id) }, Dl(s)),
|
|
4478
4478
|
groupId: be
|
|
4479
4479
|
};
|
|
4480
4480
|
i === ce.patchFunction ? c.subtitle = "⤵️" : i === ce.patchObject ? c.subtitle = "🧩" : s && !Array.isArray(s) && (c.subtitle = s.type), s && (c.data["rawEvent(s)"] = {
|
|
@@ -4549,7 +4549,7 @@ function jl() {
|
|
|
4549
4549
|
let n = [], o = [];
|
|
4550
4550
|
const r = te({
|
|
4551
4551
|
install(a) {
|
|
4552
|
-
|
|
4552
|
+
pt(r), r._a = a, a.provide(Yr, r), a.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Ee && xl(a, r), o.forEach((s) => n.push(s)), o = [];
|
|
4553
4553
|
},
|
|
4554
4554
|
use(a) {
|
|
4555
4555
|
return this._a ? n.push(a) : o.push(a), this;
|
|
@@ -4570,7 +4570,7 @@ function os(e, t) {
|
|
|
4570
4570
|
if (!(n in e))
|
|
4571
4571
|
continue;
|
|
4572
4572
|
const r = e[n];
|
|
4573
|
-
|
|
4573
|
+
xe(r) && xe(o) && !ue(o) && !qe(o) ? e[n] = os(r, o) : e[n] = o;
|
|
4574
4574
|
}
|
|
4575
4575
|
return e;
|
|
4576
4576
|
}
|
|
@@ -4589,14 +4589,14 @@ function Le(e, ...t) {
|
|
|
4589
4589
|
n(...t);
|
|
4590
4590
|
});
|
|
4591
4591
|
}
|
|
4592
|
-
const Ul = (e) => e(),
|
|
4593
|
-
function
|
|
4592
|
+
const Ul = (e) => e(), $o = Symbol(), qt = Symbol();
|
|
4593
|
+
function pn(e, t) {
|
|
4594
4594
|
e instanceof Map && t instanceof Map ? t.forEach((n, o) => e.set(o, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
4595
4595
|
for (const n in t) {
|
|
4596
4596
|
if (!t.hasOwnProperty(n))
|
|
4597
4597
|
continue;
|
|
4598
4598
|
const o = t[n], r = e[n];
|
|
4599
|
-
|
|
4599
|
+
xe(r) && xe(o) && e.hasOwnProperty(n) && !ue(o) && !qe(o) ? e[n] = pn(r, o) : e[n] = o;
|
|
4600
4600
|
}
|
|
4601
4601
|
return e;
|
|
4602
4602
|
}
|
|
@@ -4605,10 +4605,10 @@ const Ml = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
|
|
|
4605
4605
|
Symbol()
|
|
4606
4606
|
);
|
|
4607
4607
|
function Hl(e) {
|
|
4608
|
-
return
|
|
4608
|
+
return !xe(e) || !Object.prototype.hasOwnProperty.call(e, Ml);
|
|
4609
4609
|
}
|
|
4610
4610
|
const { assign: Q } = Object;
|
|
4611
|
-
function
|
|
4611
|
+
function xo(e) {
|
|
4612
4612
|
return !!(ue(e) && e.effect);
|
|
4613
4613
|
}
|
|
4614
4614
|
function Ro(e, t, n, o) {
|
|
@@ -4618,12 +4618,12 @@ function Ro(e, t, n, o) {
|
|
|
4618
4618
|
!i && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
|
|
4619
4619
|
const u = process.env.NODE_ENV !== "production" && o ? (
|
|
4620
4620
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
4621
|
-
|
|
4622
|
-
) :
|
|
4623
|
-
return Q(u, a, Object.keys(s || {}).reduce((d,
|
|
4624
|
-
|
|
4621
|
+
$t(D(r ? r() : {}).value)
|
|
4622
|
+
) : $t(n.state.value[e]);
|
|
4623
|
+
return Q(u, a, Object.keys(s || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), d[f] = te(A(() => {
|
|
4624
|
+
pt(n);
|
|
4625
4625
|
const v = n._s.get(e);
|
|
4626
|
-
return s[
|
|
4626
|
+
return s[f].call(v, v);
|
|
4627
4627
|
})), d), {}));
|
|
4628
4628
|
}
|
|
4629
4629
|
return l = hn(e, c, t, n, o, !0), l;
|
|
@@ -4637,9 +4637,9 @@ function hn(e, t, n = {}, o, r, a) {
|
|
|
4637
4637
|
process.env.NODE_ENV !== "production" && (l.onTrigger = (_) => {
|
|
4638
4638
|
c ? v = _ : c == !1 && !w._hotUpdating && (Array.isArray(v) ? v.push(_) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
4639
4639
|
});
|
|
4640
|
-
let c, u, d = [],
|
|
4641
|
-
const
|
|
4642
|
-
!a && !
|
|
4640
|
+
let c, u, d = [], f = [], v;
|
|
4641
|
+
const p = o.state.value[e];
|
|
4642
|
+
!a && !p && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
|
|
4643
4643
|
const E = D({});
|
|
4644
4644
|
let m;
|
|
4645
4645
|
function b(_) {
|
|
@@ -4648,7 +4648,7 @@ function hn(e, t, n = {}, o, r, a) {
|
|
|
4648
4648
|
type: ce.patchFunction,
|
|
4649
4649
|
storeId: e,
|
|
4650
4650
|
events: v
|
|
4651
|
-
}) : (
|
|
4651
|
+
}) : (pn(o.state.value[e], _), h = {
|
|
4652
4652
|
type: ce.patchObject,
|
|
4653
4653
|
payload: _,
|
|
4654
4654
|
storeId: e,
|
|
@@ -4671,21 +4671,21 @@ function hn(e, t, n = {}, o, r, a) {
|
|
|
4671
4671
|
} : rs
|
|
4672
4672
|
);
|
|
4673
4673
|
function R() {
|
|
4674
|
-
s.stop(), d = [],
|
|
4674
|
+
s.stop(), d = [], f = [], o._s.delete(e);
|
|
4675
4675
|
}
|
|
4676
4676
|
const M = (_, h = "") => {
|
|
4677
|
-
if (
|
|
4677
|
+
if ($o in _)
|
|
4678
4678
|
return _[qt] = h, _;
|
|
4679
4679
|
const g = function() {
|
|
4680
|
-
|
|
4680
|
+
pt(o);
|
|
4681
4681
|
const k = Array.from(arguments), I = [], K = [];
|
|
4682
|
-
function Y(
|
|
4683
|
-
I.push(
|
|
4682
|
+
function Y($) {
|
|
4683
|
+
I.push($);
|
|
4684
4684
|
}
|
|
4685
|
-
function P(
|
|
4686
|
-
K.push(
|
|
4685
|
+
function P($) {
|
|
4686
|
+
K.push($);
|
|
4687
4687
|
}
|
|
4688
|
-
Le(
|
|
4688
|
+
Le(f, {
|
|
4689
4689
|
args: k,
|
|
4690
4690
|
name: g[qt],
|
|
4691
4691
|
store: w,
|
|
@@ -4695,12 +4695,12 @@ function hn(e, t, n = {}, o, r, a) {
|
|
|
4695
4695
|
let Z;
|
|
4696
4696
|
try {
|
|
4697
4697
|
Z = _.apply(this && this.$id === e ? this : w, k);
|
|
4698
|
-
} catch (
|
|
4699
|
-
throw Le(K,
|
|
4698
|
+
} catch ($) {
|
|
4699
|
+
throw Le(K, $), $;
|
|
4700
4700
|
}
|
|
4701
|
-
return Z instanceof Promise ? Z.then((
|
|
4701
|
+
return Z instanceof Promise ? Z.then(($) => (Le(I, $), $)).catch(($) => (Le(K, $), Promise.reject($))) : (Le(I, Z), Z);
|
|
4702
4702
|
};
|
|
4703
|
-
return g[
|
|
4703
|
+
return g[$o] = !0, g[qt] = h, g;
|
|
4704
4704
|
}, j = /* @__PURE__ */ te({
|
|
4705
4705
|
actions: {},
|
|
4706
4706
|
getters: {},
|
|
@@ -4710,7 +4710,7 @@ function hn(e, t, n = {}, o, r, a) {
|
|
|
4710
4710
|
_p: o,
|
|
4711
4711
|
// _s: scope,
|
|
4712
4712
|
$id: e,
|
|
4713
|
-
$onAction: Ao.bind(null,
|
|
4713
|
+
$onAction: Ao.bind(null, f),
|
|
4714
4714
|
$patch: b,
|
|
4715
4715
|
$reset: S,
|
|
4716
4716
|
$subscribe(_, h = {}) {
|
|
@@ -4738,12 +4738,12 @@ function hn(e, t, n = {}, o, r, a) {
|
|
|
4738
4738
|
const B = (o._a && o._a.runWithContext || Ul)(() => o._e.run(() => (s = En()).run(() => t({ action: M }))));
|
|
4739
4739
|
for (const _ in B) {
|
|
4740
4740
|
const h = B[_];
|
|
4741
|
-
if (ue(h) &&
|
|
4742
|
-
process.env.NODE_ENV !== "production" && r ? E.value[_] = we(B, _) : a || (
|
|
4741
|
+
if (ue(h) && !xo(h) || qe(h))
|
|
4742
|
+
process.env.NODE_ENV !== "production" && r ? E.value[_] = we(B, _) : a || (p && Hl(h) && (ue(h) ? h.value = p[_] : pn(h, p[_])), o.state.value[e][_] = h), process.env.NODE_ENV !== "production" && j.state.push(_);
|
|
4743
4743
|
else if (typeof h == "function") {
|
|
4744
4744
|
const g = process.env.NODE_ENV !== "production" && r ? h : M(h, _);
|
|
4745
4745
|
B[_] = g, process.env.NODE_ENV !== "production" && (j.actions[_] = h), i.actions[_] = h;
|
|
4746
|
-
} else process.env.NODE_ENV !== "production" &&
|
|
4746
|
+
} else process.env.NODE_ENV !== "production" && xo(h) && (j.getters[_] = a ? (
|
|
4747
4747
|
// @ts-expect-error
|
|
4748
4748
|
n.getters[_]
|
|
4749
4749
|
) : h, Ee && (B._getters || // @ts-expect-error: same
|
|
@@ -4762,7 +4762,7 @@ function hn(e, t, n = {}, o, r, a) {
|
|
|
4762
4762
|
w._hotUpdating = !0, _._hmrPayload.state.forEach((h) => {
|
|
4763
4763
|
if (h in w.$state) {
|
|
4764
4764
|
const g = _.$state[h], k = w.$state[h];
|
|
4765
|
-
typeof g == "object" &&
|
|
4765
|
+
typeof g == "object" && xe(g) && xe(k) ? os(g, k) : _.$state[h] = k;
|
|
4766
4766
|
}
|
|
4767
4767
|
w[h] = we(_.$state, h);
|
|
4768
4768
|
}), Object.keys(w.$state).forEach((h) => {
|
|
@@ -4778,7 +4778,7 @@ function hn(e, t, n = {}, o, r, a) {
|
|
|
4778
4778
|
for (const h in _._hmrPayload.getters) {
|
|
4779
4779
|
const g = _._hmrPayload.getters[h], k = a ? (
|
|
4780
4780
|
// special handling of options api
|
|
4781
|
-
A(() => (
|
|
4781
|
+
A(() => (pt(o), g.call(w, w)))
|
|
4782
4782
|
) : g;
|
|
4783
4783
|
w[h] = //
|
|
4784
4784
|
k;
|
|
@@ -4817,7 +4817,7 @@ function hn(e, t, n = {}, o, r, a) {
|
|
|
4817
4817
|
})));
|
|
4818
4818
|
}), process.env.NODE_ENV !== "production" && w.$state && typeof w.$state == "object" && typeof w.$state.constructor == "function" && !w.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
4819
4819
|
state: () => new MyClass()
|
|
4820
|
-
Found in store "${w.$id}".`),
|
|
4820
|
+
Found in store "${w.$id}".`), p && a && n.hydrate && n.hydrate(w.$state, p), c = !0, u = !0, w;
|
|
4821
4821
|
}
|
|
4822
4822
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
4823
4823
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -4829,7 +4829,7 @@ function zl(e, t, n) {
|
|
|
4829
4829
|
const l = ar();
|
|
4830
4830
|
if (s = // in test mode, ignore the argument provided as we can always retrieve a
|
|
4831
4831
|
// pinia instance with getActivePinia()
|
|
4832
|
-
(process.env.NODE_ENV === "test" && nt && nt._testing ? null : s) || (l ? bn(Yr, null) : null), s &&
|
|
4832
|
+
(process.env.NODE_ENV === "test" && nt && nt._testing ? null : s) || (l ? bn(Yr, null) : null), s && pt(s), process.env.NODE_ENV !== "production" && !nt)
|
|
4833
4833
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
4834
4834
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
4835
4835
|
This will fail in production.`);
|
|
@@ -4843,8 +4843,8 @@ This will fail in production.`);
|
|
|
4843
4843
|
const u = Ye();
|
|
4844
4844
|
if (u && u.proxy && // avoid adding stores that are just built for hot module replacement
|
|
4845
4845
|
!i) {
|
|
4846
|
-
const d = u.proxy,
|
|
4847
|
-
|
|
4846
|
+
const d = u.proxy, f = "_pStores" in d ? d._pStores : d._pStores = {};
|
|
4847
|
+
f[e] = c;
|
|
4848
4848
|
}
|
|
4849
4849
|
}
|
|
4850
4850
|
return c;
|
|
@@ -4911,7 +4911,7 @@ function as(e, t) {
|
|
|
4911
4911
|
function Fl(e, t) {
|
|
4912
4912
|
return Math.floor(Math.random() * (t - e + 1) + e);
|
|
4913
4913
|
}
|
|
4914
|
-
function
|
|
4914
|
+
function xn() {
|
|
4915
4915
|
return Math.random().toString(36).substring(2);
|
|
4916
4916
|
}
|
|
4917
4917
|
var Jt = 0;
|
|
@@ -5075,8 +5075,8 @@ function lc(e, t) {
|
|
|
5075
5075
|
u.onerror = function(d) {
|
|
5076
5076
|
return c(d);
|
|
5077
5077
|
}, u.onsuccess = function(d) {
|
|
5078
|
-
var
|
|
5079
|
-
|
|
5078
|
+
var f = d.target.result;
|
|
5079
|
+
f ? f.value.id < t + 1 ? f.continue(t + 1) : (r.push(f.value), f.continue()) : (Ln(n), l(r));
|
|
5080
5080
|
};
|
|
5081
5081
|
});
|
|
5082
5082
|
}
|
|
@@ -5113,14 +5113,14 @@ function dc(e) {
|
|
|
5113
5113
|
}));
|
|
5114
5114
|
});
|
|
5115
5115
|
}
|
|
5116
|
-
function
|
|
5116
|
+
function fc(e, t) {
|
|
5117
5117
|
return t = Rn(t), ac(e).then(function(n) {
|
|
5118
5118
|
var o = {
|
|
5119
5119
|
closed: !1,
|
|
5120
5120
|
lastCursorId: 0,
|
|
5121
5121
|
channelName: e,
|
|
5122
5122
|
options: t,
|
|
5123
|
-
uuid:
|
|
5123
|
+
uuid: xn(),
|
|
5124
5124
|
/**
|
|
5125
5125
|
* emittedMessagesIds
|
|
5126
5126
|
* contains all messages that have been emitted before
|
|
@@ -5145,7 +5145,7 @@ function us(e) {
|
|
|
5145
5145
|
return us(e);
|
|
5146
5146
|
});
|
|
5147
5147
|
}
|
|
5148
|
-
function
|
|
5148
|
+
function pc(e, t) {
|
|
5149
5149
|
return !(e.uuid === t.uuid || t.eMIs.has(e.id) || e.data.time < t.messagesCallbackTime);
|
|
5150
5150
|
}
|
|
5151
5151
|
function ds(e) {
|
|
@@ -5155,7 +5155,7 @@ function ds(e) {
|
|
|
5155
5155
|
}).map(function(o) {
|
|
5156
5156
|
return o.id > e.lastCursorId && (e.lastCursorId = o.id), o;
|
|
5157
5157
|
}).filter(function(o) {
|
|
5158
|
-
return
|
|
5158
|
+
return pc(o, e);
|
|
5159
5159
|
}).sort(function(o, r) {
|
|
5160
5160
|
return o.time - r.time;
|
|
5161
5161
|
});
|
|
@@ -5184,7 +5184,7 @@ function gc(e) {
|
|
|
5184
5184
|
return e.idb.fallbackInterval * 2;
|
|
5185
5185
|
}
|
|
5186
5186
|
var yc = {
|
|
5187
|
-
create:
|
|
5187
|
+
create: fc,
|
|
5188
5188
|
close: hc,
|
|
5189
5189
|
onMessage: vc,
|
|
5190
5190
|
postMessage: mc,
|
|
@@ -5193,7 +5193,7 @@ var yc = {
|
|
|
5193
5193
|
averageResponseTime: gc,
|
|
5194
5194
|
microSeconds: oc
|
|
5195
5195
|
}, Ec = yt, bc = "pubkey.broadcastChannel-", wc = "localstorage";
|
|
5196
|
-
function
|
|
5196
|
+
function fs() {
|
|
5197
5197
|
var e;
|
|
5198
5198
|
if (typeof window > "u") return null;
|
|
5199
5199
|
try {
|
|
@@ -5202,26 +5202,26 @@ function ps() {
|
|
|
5202
5202
|
}
|
|
5203
5203
|
return e;
|
|
5204
5204
|
}
|
|
5205
|
-
function
|
|
5205
|
+
function ps(e) {
|
|
5206
5206
|
return bc + e;
|
|
5207
5207
|
}
|
|
5208
5208
|
function Oc(e, t) {
|
|
5209
5209
|
return new Promise(function(n) {
|
|
5210
5210
|
as().then(function() {
|
|
5211
|
-
var o =
|
|
5212
|
-
token:
|
|
5211
|
+
var o = ps(e.channelName), r = {
|
|
5212
|
+
token: xn(),
|
|
5213
5213
|
time: Date.now(),
|
|
5214
5214
|
data: t,
|
|
5215
5215
|
uuid: e.uuid
|
|
5216
5216
|
}, a = JSON.stringify(r);
|
|
5217
|
-
|
|
5217
|
+
fs().setItem(o, a);
|
|
5218
5218
|
var s = document.createEvent("Event");
|
|
5219
5219
|
s.initEvent("storage", !0, !0), s.key = o, s.newValue = a, window.dispatchEvent(s), n();
|
|
5220
5220
|
});
|
|
5221
5221
|
});
|
|
5222
5222
|
}
|
|
5223
5223
|
function kc(e, t) {
|
|
5224
|
-
var n =
|
|
5224
|
+
var n = ps(e), o = function(r) {
|
|
5225
5225
|
r.key === n && t(JSON.parse(r.newValue));
|
|
5226
5226
|
};
|
|
5227
5227
|
return window.addEventListener("storage", o), o;
|
|
@@ -5232,7 +5232,7 @@ function Sc(e) {
|
|
|
5232
5232
|
function Ic(e, t) {
|
|
5233
5233
|
if (t = Rn(t), !hs())
|
|
5234
5234
|
throw new Error("BroadcastChannel: localstorage cannot be used");
|
|
5235
|
-
var n =
|
|
5235
|
+
var n = xn(), o = new is(t.localstorage.removeTimeout), r = {
|
|
5236
5236
|
channelName: e,
|
|
5237
5237
|
uuid: n,
|
|
5238
5238
|
eMIs: o
|
|
@@ -5249,7 +5249,7 @@ function Pc(e, t, n) {
|
|
|
5249
5249
|
e.messagesCallbackTime = n, e.messagesCallback = t;
|
|
5250
5250
|
}
|
|
5251
5251
|
function hs() {
|
|
5252
|
-
var e =
|
|
5252
|
+
var e = fs();
|
|
5253
5253
|
if (!e) return !1;
|
|
5254
5254
|
try {
|
|
5255
5255
|
var t = "__broadcastchannel_check";
|
|
@@ -5259,18 +5259,18 @@ function hs() {
|
|
|
5259
5259
|
}
|
|
5260
5260
|
return !0;
|
|
5261
5261
|
}
|
|
5262
|
-
function
|
|
5262
|
+
function Cc() {
|
|
5263
5263
|
var e = 120, t = navigator.userAgent.toLowerCase();
|
|
5264
5264
|
return t.includes("safari") && !t.includes("chrome") ? e * 2 : e;
|
|
5265
5265
|
}
|
|
5266
|
-
var
|
|
5266
|
+
var Vc = {
|
|
5267
5267
|
create: Ic,
|
|
5268
5268
|
close: Tc,
|
|
5269
5269
|
onMessage: Pc,
|
|
5270
5270
|
postMessage: Oc,
|
|
5271
5271
|
canBeUsed: hs,
|
|
5272
5272
|
type: wc,
|
|
5273
|
-
averageResponseTime:
|
|
5273
|
+
averageResponseTime: Cc,
|
|
5274
5274
|
microSeconds: Ec
|
|
5275
5275
|
}, ms = yt, Nc = "simulate", jn = /* @__PURE__ */ new Set();
|
|
5276
5276
|
function Dc(e) {
|
|
@@ -5285,7 +5285,7 @@ function Ac(e) {
|
|
|
5285
5285
|
jn.delete(e);
|
|
5286
5286
|
}
|
|
5287
5287
|
var vs = 5;
|
|
5288
|
-
function
|
|
5288
|
+
function $c(e, t) {
|
|
5289
5289
|
return new Promise(function(n) {
|
|
5290
5290
|
return setTimeout(function() {
|
|
5291
5291
|
var o = Array.from(jn);
|
|
@@ -5297,7 +5297,7 @@ function xc(e, t) {
|
|
|
5297
5297
|
}, vs);
|
|
5298
5298
|
});
|
|
5299
5299
|
}
|
|
5300
|
-
function
|
|
5300
|
+
function xc(e, t) {
|
|
5301
5301
|
e.messagesCallback = t;
|
|
5302
5302
|
}
|
|
5303
5303
|
function Rc() {
|
|
@@ -5309,8 +5309,8 @@ function Lc() {
|
|
|
5309
5309
|
var jc = {
|
|
5310
5310
|
create: Dc,
|
|
5311
5311
|
close: Ac,
|
|
5312
|
-
onMessage:
|
|
5313
|
-
postMessage:
|
|
5312
|
+
onMessage: xc,
|
|
5313
|
+
postMessage: $c,
|
|
5314
5314
|
canBeUsed: Rc,
|
|
5315
5315
|
type: Nc,
|
|
5316
5316
|
averageResponseTime: Lc,
|
|
@@ -5319,7 +5319,7 @@ var jc = {
|
|
|
5319
5319
|
tc,
|
|
5320
5320
|
// fastest
|
|
5321
5321
|
yc,
|
|
5322
|
-
|
|
5322
|
+
Vc
|
|
5323
5323
|
];
|
|
5324
5324
|
function Uc(e) {
|
|
5325
5325
|
var t = [].concat(e.methods, Lo).filter(Boolean);
|
|
@@ -5477,24 +5477,24 @@ function Wc({
|
|
|
5477
5477
|
const d = new Un(r.$id, {
|
|
5478
5478
|
type: n
|
|
5479
5479
|
});
|
|
5480
|
-
let
|
|
5481
|
-
const
|
|
5480
|
+
let f = 0, v = !1;
|
|
5481
|
+
const p = Object.keys(r.$state).filter((E) => !u.includes(E) && Kc(E, r.$state));
|
|
5482
5482
|
d.onmessage = (E) => {
|
|
5483
5483
|
if (E === void 0) {
|
|
5484
5484
|
d.postMessage({
|
|
5485
|
-
timestamp:
|
|
5485
|
+
timestamp: f,
|
|
5486
5486
|
state: Ho(r.$state, o)
|
|
5487
5487
|
});
|
|
5488
5488
|
return;
|
|
5489
5489
|
}
|
|
5490
|
-
E.timestamp <=
|
|
5491
|
-
|
|
5490
|
+
E.timestamp <= f || (v = !0, f = E.timestamp, r.$patch((m) => {
|
|
5491
|
+
p.forEach((b) => {
|
|
5492
5492
|
m[b] = E.state[b];
|
|
5493
5493
|
});
|
|
5494
5494
|
}));
|
|
5495
5495
|
}, (((l = a == null ? void 0 : a.share) == null ? void 0 : l.initialize) ?? t) && d.postMessage(void 0), r.$subscribe((E, m) => {
|
|
5496
|
-
v || (
|
|
5497
|
-
timestamp:
|
|
5496
|
+
v || (f = Date.now(), d.postMessage({
|
|
5497
|
+
timestamp: f,
|
|
5498
5498
|
state: Ho(m, o)
|
|
5499
5499
|
})), v = !1;
|
|
5500
5500
|
});
|
|
@@ -5519,7 +5519,7 @@ const Gc = /* @__PURE__ */ de({
|
|
|
5519
5519
|
r[s].value = l;
|
|
5520
5520
|
}), o.value = r;
|
|
5521
5521
|
}
|
|
5522
|
-
}), (r, a) =>
|
|
5522
|
+
}), (r, a) => C(n) ? (T(), ye(C(pa), {
|
|
5523
5523
|
key: 0,
|
|
5524
5524
|
class: "aform-main",
|
|
5525
5525
|
modelValue: o.value,
|
|
@@ -5599,12 +5599,12 @@ function Wo(e, t, n, o) {
|
|
|
5599
5599
|
!i && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
|
|
5600
5600
|
const u = process.env.NODE_ENV !== "production" && o ? (
|
|
5601
5601
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
5602
|
-
|
|
5603
|
-
) :
|
|
5604
|
-
return ee(u, a, Object.keys(s || {}).reduce((d,
|
|
5602
|
+
$t(D(r ? r() : {}).value)
|
|
5603
|
+
) : $t(n.state.value[e]);
|
|
5604
|
+
return ee(u, a, Object.keys(s || {}).reduce((d, f) => (process.env.NODE_ENV !== "production" && f in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${f}" in store "${e}".`), d[f] = te(A(() => {
|
|
5605
5605
|
Lt(n);
|
|
5606
5606
|
const v = n._s.get(e);
|
|
5607
|
-
return s[
|
|
5607
|
+
return s[f].call(v, v);
|
|
5608
5608
|
})), d), {}));
|
|
5609
5609
|
}
|
|
5610
5610
|
return l = vn(e, c, t, n, o, !0), l;
|
|
@@ -5618,9 +5618,9 @@ function vn(e, t, n = {}, o, r, a) {
|
|
|
5618
5618
|
process.env.NODE_ENV !== "production" && (l.onTrigger = (h) => {
|
|
5619
5619
|
c ? v = h : c == !1 && !w._hotUpdating && (Array.isArray(v) ? v.push(h) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
5620
5620
|
});
|
|
5621
|
-
let c, u, d = [],
|
|
5622
|
-
const
|
|
5623
|
-
!a && !
|
|
5621
|
+
let c, u, d = [], f = [], v;
|
|
5622
|
+
const p = o.state.value[e];
|
|
5623
|
+
!a && !p && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
|
|
5624
5624
|
const E = D({});
|
|
5625
5625
|
let m;
|
|
5626
5626
|
function b(h) {
|
|
@@ -5652,7 +5652,7 @@ function vn(e, t, n = {}, o, r, a) {
|
|
|
5652
5652
|
} : Es
|
|
5653
5653
|
);
|
|
5654
5654
|
function R() {
|
|
5655
|
-
s.stop(), d = [],
|
|
5655
|
+
s.stop(), d = [], f = [], o._s.delete(e);
|
|
5656
5656
|
}
|
|
5657
5657
|
const M = (h, g = "") => {
|
|
5658
5658
|
if (Bo in h)
|
|
@@ -5666,20 +5666,20 @@ function vn(e, t, n = {}, o, r, a) {
|
|
|
5666
5666
|
function Z(H) {
|
|
5667
5667
|
Y.push(H);
|
|
5668
5668
|
}
|
|
5669
|
-
je(
|
|
5669
|
+
je(f, {
|
|
5670
5670
|
args: I,
|
|
5671
5671
|
name: k[Xt],
|
|
5672
5672
|
store: w,
|
|
5673
5673
|
after: P,
|
|
5674
5674
|
onError: Z
|
|
5675
5675
|
});
|
|
5676
|
-
let
|
|
5676
|
+
let $;
|
|
5677
5677
|
try {
|
|
5678
|
-
|
|
5678
|
+
$ = h.apply(this && this.$id === e ? this : w, I);
|
|
5679
5679
|
} catch (H) {
|
|
5680
5680
|
throw je(Y, H), H;
|
|
5681
5681
|
}
|
|
5682
|
-
return
|
|
5682
|
+
return $ instanceof Promise ? $.then((H) => (je(K, H), H)).catch((H) => (je(Y, H), Promise.reject(H))) : (je(K, $), $);
|
|
5683
5683
|
};
|
|
5684
5684
|
return k[Bo] = !0, k[Xt] = g, k;
|
|
5685
5685
|
}, j = /* @__PURE__ */ te({
|
|
@@ -5691,7 +5691,7 @@ function vn(e, t, n = {}, o, r, a) {
|
|
|
5691
5691
|
_p: o,
|
|
5692
5692
|
// _s: scope,
|
|
5693
5693
|
$id: e,
|
|
5694
|
-
$onAction: zo.bind(null,
|
|
5694
|
+
$onAction: zo.bind(null, f),
|
|
5695
5695
|
$patch: b,
|
|
5696
5696
|
$reset: S,
|
|
5697
5697
|
$subscribe(h, g = {}) {
|
|
@@ -5720,7 +5720,7 @@ function vn(e, t, n = {}, o, r, a) {
|
|
|
5720
5720
|
for (const h in _) {
|
|
5721
5721
|
const g = _[h];
|
|
5722
5722
|
if (ue(g) && !Ko(g) || qe(g))
|
|
5723
|
-
process.env.NODE_ENV !== "production" && r ? E.value[h] = we(_, h) : a || (
|
|
5723
|
+
process.env.NODE_ENV !== "production" && r ? E.value[h] = we(_, h) : a || (p && Xc(g) && (ue(g) ? g.value = p[h] : mn(g, p[h])), o.state.value[e][h] = g), process.env.NODE_ENV !== "production" && j.state.push(h);
|
|
5724
5724
|
else if (typeof g == "function") {
|
|
5725
5725
|
const k = process.env.NODE_ENV !== "production" && r ? g : M(g, h);
|
|
5726
5726
|
_[h] = k, process.env.NODE_ENV !== "production" && (j.actions[h] = g), i.actions[h] = g;
|
|
@@ -5798,7 +5798,7 @@ function vn(e, t, n = {}, o, r, a) {
|
|
|
5798
5798
|
})));
|
|
5799
5799
|
}), process.env.NODE_ENV !== "production" && w.$state && typeof w.$state == "object" && typeof w.$state.constructor == "function" && !w.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
5800
5800
|
state: () => new MyClass()
|
|
5801
|
-
Found in store "${w.$id}".`),
|
|
5801
|
+
Found in store "${w.$id}".`), p && a && n.hydrate && n.hydrate(w.$state, p), c = !0, u = !0, w;
|
|
5802
5802
|
}
|
|
5803
5803
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
5804
5804
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -5824,8 +5824,8 @@ This will fail in production.`);
|
|
|
5824
5824
|
const u = Ye();
|
|
5825
5825
|
if (u && u.proxy && // avoid adding stores that are just built for hot module replacement
|
|
5826
5826
|
!i) {
|
|
5827
|
-
const d = u.proxy,
|
|
5828
|
-
|
|
5827
|
+
const d = u.proxy, f = "_pStores" in d ? d._pStores : d._pStores = {};
|
|
5828
|
+
f[e] = c;
|
|
5829
5829
|
}
|
|
5830
5830
|
}
|
|
5831
5831
|
return c;
|
|
@@ -5855,24 +5855,24 @@ function ru(e, t, n) {
|
|
|
5855
5855
|
const Ze = Qc ? window : void 0;
|
|
5856
5856
|
function Fe(e) {
|
|
5857
5857
|
var t;
|
|
5858
|
-
const n =
|
|
5858
|
+
const n = x(e);
|
|
5859
5859
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
5860
5860
|
}
|
|
5861
5861
|
function ht(...e) {
|
|
5862
5862
|
const t = [], n = () => {
|
|
5863
5863
|
t.forEach((i) => i()), t.length = 0;
|
|
5864
5864
|
}, o = (i, l, c, u) => (i.addEventListener(l, c, u), () => i.removeEventListener(l, c, u)), r = A(() => {
|
|
5865
|
-
const i = Dt(
|
|
5865
|
+
const i = Dt(x(e[0])).filter((l) => l != null);
|
|
5866
5866
|
return i.every((l) => typeof l != "string") ? i : void 0;
|
|
5867
5867
|
}), a = ru(
|
|
5868
5868
|
() => {
|
|
5869
5869
|
var i, l;
|
|
5870
5870
|
return [
|
|
5871
5871
|
(l = (i = r.value) == null ? void 0 : i.map((c) => Fe(c))) != null ? l : [Ze].filter((c) => c != null),
|
|
5872
|
-
Dt(
|
|
5873
|
-
Dt(
|
|
5872
|
+
Dt(x(r.value ? e[1] : e[0])),
|
|
5873
|
+
Dt(C(r.value ? e[2] : e[1])),
|
|
5874
5874
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
5875
|
-
|
|
5875
|
+
x(r.value ? e[3] : e[2])
|
|
5876
5876
|
];
|
|
5877
5877
|
},
|
|
5878
5878
|
([i, l, c, u]) => {
|
|
@@ -5881,8 +5881,8 @@ function ht(...e) {
|
|
|
5881
5881
|
const d = nu(u) ? { ...u } : u;
|
|
5882
5882
|
t.push(
|
|
5883
5883
|
...i.flatMap(
|
|
5884
|
-
(
|
|
5885
|
-
(v) => c.map((
|
|
5884
|
+
(f) => l.flatMap(
|
|
5885
|
+
(v) => c.map((p) => o(f, v, p, d))
|
|
5886
5886
|
)
|
|
5887
5887
|
)
|
|
5888
5888
|
);
|
|
@@ -5909,12 +5909,12 @@ function iu(e, t, n = {}) {
|
|
|
5909
5909
|
const s = au(() => o && "MutationObserver" in o), i = () => {
|
|
5910
5910
|
a && (a.disconnect(), a = void 0);
|
|
5911
5911
|
}, l = A(() => {
|
|
5912
|
-
const
|
|
5912
|
+
const f = x(e), v = Dt(f).map(Fe).filter(eu);
|
|
5913
5913
|
return new Set(v);
|
|
5914
5914
|
}), c = U(
|
|
5915
5915
|
() => l.value,
|
|
5916
|
-
(
|
|
5917
|
-
i(), s.value &&
|
|
5916
|
+
(f) => {
|
|
5917
|
+
i(), s.value && f.size && (a = new MutationObserver(t), f.forEach((v) => a.observe(v, r)));
|
|
5918
5918
|
},
|
|
5919
5919
|
{ immediate: !0, flush: "post" }
|
|
5920
5920
|
), u = () => a == null ? void 0 : a.takeRecords(), d = () => {
|
|
@@ -5942,8 +5942,8 @@ function lu(e, t, n = {}) {
|
|
|
5942
5942
|
if (u) {
|
|
5943
5943
|
const { stop: d } = iu(
|
|
5944
5944
|
r,
|
|
5945
|
-
(
|
|
5946
|
-
|
|
5945
|
+
(f) => {
|
|
5946
|
+
f.map((v) => [...v.removedNodes]).flat().some((v) => v === u || v.contains(u)) && t(f);
|
|
5947
5947
|
},
|
|
5948
5948
|
{
|
|
5949
5949
|
window: o,
|
|
@@ -5995,15 +5995,15 @@ function cu(e = {}) {
|
|
|
5995
5995
|
}
|
|
5996
5996
|
return r && lu(i, l, { document: a }), l(), i;
|
|
5997
5997
|
}
|
|
5998
|
-
const uu = "focusin", du = "focusout",
|
|
5999
|
-
function
|
|
5998
|
+
const uu = "focusin", du = "focusout", fu = ":focus-within";
|
|
5999
|
+
function pu(e, t = {}) {
|
|
6000
6000
|
const { window: n = Ze } = t, o = A(() => Fe(e)), r = F(!1), a = A(() => r.value), s = cu(t);
|
|
6001
6001
|
if (!n || !s.value)
|
|
6002
6002
|
return { focused: a };
|
|
6003
6003
|
const i = { passive: !0 };
|
|
6004
6004
|
return ht(o, uu, () => r.value = !0, i), ht(o, du, () => {
|
|
6005
6005
|
var l, c, u;
|
|
6006
|
-
return r.value = (u = (c = (l = o.value) == null ? void 0 : l.matches) == null ? void 0 : c.call(l,
|
|
6006
|
+
return r.value = (u = (c = (l = o.value) == null ? void 0 : l.matches) == null ? void 0 : c.call(l, fu)) != null ? u : !1;
|
|
6007
6007
|
}, i), { focused: a };
|
|
6008
6008
|
}
|
|
6009
6009
|
function hu(e, { window: t = Ze, scrollTarget: n } = {}) {
|
|
@@ -6231,16 +6231,16 @@ function gu(e) {
|
|
|
6231
6231
|
if (wt.includes(l)) return;
|
|
6232
6232
|
const c = s.handlers || bs;
|
|
6233
6233
|
for (const u of Object.keys(c)) {
|
|
6234
|
-
const [d, ...
|
|
6235
|
-
if (d === "keydown" &&
|
|
6236
|
-
const v = c[u],
|
|
6234
|
+
const [d, ...f] = u.split(".");
|
|
6235
|
+
if (d === "keydown" && f.includes(l)) {
|
|
6236
|
+
const v = c[u], p = f.filter((m) => wt.includes(m)), E = wt.some((m) => {
|
|
6237
6237
|
const b = m.charAt(0).toUpperCase() + m.slice(1);
|
|
6238
6238
|
return i.getModifierState(b);
|
|
6239
6239
|
});
|
|
6240
|
-
if (
|
|
6240
|
+
if (p.length > 0) {
|
|
6241
6241
|
if (E) {
|
|
6242
6242
|
for (const m of wt)
|
|
6243
|
-
if (
|
|
6243
|
+
if (f.includes(m)) {
|
|
6244
6244
|
const b = m.charAt(0).toUpperCase() + m.slice(1);
|
|
6245
6245
|
i.getModifierState(b) && v(i);
|
|
6246
6246
|
}
|
|
@@ -6254,13 +6254,13 @@ function gu(e) {
|
|
|
6254
6254
|
for (const s of e) {
|
|
6255
6255
|
const i = t(s), l = o(s), c = r(s), u = i ? [i] : l;
|
|
6256
6256
|
for (const d of u) {
|
|
6257
|
-
const { focused:
|
|
6258
|
-
|
|
6257
|
+
const { focused: f } = pu(D(d)), v = U(f, (p) => {
|
|
6258
|
+
p ? d.addEventListener("keydown", c) : d.removeEventListener("keydown", c);
|
|
6259
6259
|
});
|
|
6260
6260
|
a.push(v);
|
|
6261
6261
|
}
|
|
6262
6262
|
}
|
|
6263
|
-
}),
|
|
6263
|
+
}), Vs(() => {
|
|
6264
6264
|
for (const s of a)
|
|
6265
6265
|
s();
|
|
6266
6266
|
});
|
|
@@ -6304,24 +6304,24 @@ function Os(e, t, n) {
|
|
|
6304
6304
|
const Fn = Wn ? window : void 0;
|
|
6305
6305
|
function Ge(e) {
|
|
6306
6306
|
var t;
|
|
6307
|
-
const n =
|
|
6307
|
+
const n = x(e);
|
|
6308
6308
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
6309
6309
|
}
|
|
6310
6310
|
function Zo(...e) {
|
|
6311
6311
|
const t = [], n = () => {
|
|
6312
6312
|
t.forEach((i) => i()), t.length = 0;
|
|
6313
6313
|
}, o = (i, l, c, u) => (i.addEventListener(l, c, u), () => i.removeEventListener(l, c, u)), r = A(() => {
|
|
6314
|
-
const i = Ne(
|
|
6314
|
+
const i = Ne(x(e[0])).filter((l) => l != null);
|
|
6315
6315
|
return i.every((l) => typeof l != "string") ? i : void 0;
|
|
6316
6316
|
}), a = Os(
|
|
6317
6317
|
() => {
|
|
6318
6318
|
var i, l;
|
|
6319
6319
|
return [
|
|
6320
6320
|
(l = (i = r.value) == null ? void 0 : i.map((c) => Ge(c))) != null ? l : [Fn].filter((c) => c != null),
|
|
6321
|
-
Ne(
|
|
6322
|
-
Ne(
|
|
6321
|
+
Ne(x(r.value ? e[1] : e[0])),
|
|
6322
|
+
Ne(C(r.value ? e[2] : e[1])),
|
|
6323
6323
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
6324
|
-
|
|
6324
|
+
x(r.value ? e[3] : e[2])
|
|
6325
6325
|
];
|
|
6326
6326
|
},
|
|
6327
6327
|
([i, l, c, u]) => {
|
|
@@ -6330,8 +6330,8 @@ function Zo(...e) {
|
|
|
6330
6330
|
const d = ws(u) ? { ...u } : u;
|
|
6331
6331
|
t.push(
|
|
6332
6332
|
...i.flatMap(
|
|
6333
|
-
(
|
|
6334
|
-
(v) => c.map((
|
|
6333
|
+
(f) => l.flatMap(
|
|
6334
|
+
(v) => c.map((p) => o(f, v, p, d))
|
|
6335
6335
|
)
|
|
6336
6336
|
)
|
|
6337
6337
|
);
|
|
@@ -6358,12 +6358,12 @@ function Ss(e, t, n = {}) {
|
|
|
6358
6358
|
const s = ks(() => o && "MutationObserver" in o), i = () => {
|
|
6359
6359
|
a && (a.disconnect(), a = void 0);
|
|
6360
6360
|
}, l = A(() => {
|
|
6361
|
-
const
|
|
6361
|
+
const f = x(e), v = Ne(f).map(Ge).filter(yu);
|
|
6362
6362
|
return new Set(v);
|
|
6363
6363
|
}), c = U(
|
|
6364
6364
|
() => l.value,
|
|
6365
|
-
(
|
|
6366
|
-
i(), s.value &&
|
|
6365
|
+
(f) => {
|
|
6366
|
+
i(), s.value && f.size && (a = new MutationObserver(t), f.forEach((v) => a.observe(v, r)));
|
|
6367
6367
|
},
|
|
6368
6368
|
{ immediate: !0, flush: "post" }
|
|
6369
6369
|
), u = () => a == null ? void 0 : a.takeRecords(), d = () => {
|
|
@@ -6381,15 +6381,15 @@ function Iu(e, t, n = {}) {
|
|
|
6381
6381
|
const s = ks(() => o && "ResizeObserver" in o), i = () => {
|
|
6382
6382
|
a && (a.disconnect(), a = void 0);
|
|
6383
6383
|
}, l = A(() => {
|
|
6384
|
-
const d =
|
|
6385
|
-
return Array.isArray(d) ? d.map((
|
|
6384
|
+
const d = x(e);
|
|
6385
|
+
return Array.isArray(d) ? d.map((f) => Ge(f)) : [Ge(d)];
|
|
6386
6386
|
}), c = U(
|
|
6387
6387
|
l,
|
|
6388
6388
|
(d) => {
|
|
6389
6389
|
if (i(), s.value && o) {
|
|
6390
6390
|
a = new ResizeObserver(t);
|
|
6391
|
-
for (const
|
|
6392
|
-
|
|
6391
|
+
for (const f of d)
|
|
6392
|
+
f && a.observe(f, r);
|
|
6393
6393
|
}
|
|
6394
6394
|
},
|
|
6395
6395
|
{ immediate: !0, flush: "post" }
|
|
@@ -6408,15 +6408,15 @@ function Tu(e, t = {}) {
|
|
|
6408
6408
|
windowScroll: r = !0,
|
|
6409
6409
|
immediate: a = !0,
|
|
6410
6410
|
updateTiming: s = "sync"
|
|
6411
|
-
} = t, i = F(0), l = F(0), c = F(0), u = F(0), d = F(0),
|
|
6411
|
+
} = t, i = F(0), l = F(0), c = F(0), u = F(0), d = F(0), f = F(0), v = F(0), p = F(0);
|
|
6412
6412
|
function E() {
|
|
6413
6413
|
const b = Ge(e);
|
|
6414
6414
|
if (!b) {
|
|
6415
|
-
n && (i.value = 0, l.value = 0, c.value = 0, u.value = 0, d.value = 0,
|
|
6415
|
+
n && (i.value = 0, l.value = 0, c.value = 0, u.value = 0, d.value = 0, f.value = 0, v.value = 0, p.value = 0);
|
|
6416
6416
|
return;
|
|
6417
6417
|
}
|
|
6418
6418
|
const S = b.getBoundingClientRect();
|
|
6419
|
-
i.value = S.height, l.value = S.bottom, c.value = S.left, u.value = S.right, d.value = S.top,
|
|
6419
|
+
i.value = S.height, l.value = S.bottom, c.value = S.left, u.value = S.right, d.value = S.top, f.value = S.width, v.value = S.x, p.value = S.y;
|
|
6420
6420
|
}
|
|
6421
6421
|
function m() {
|
|
6422
6422
|
s === "sync" ? E() : s === "next-frame" && requestAnimationFrame(() => E());
|
|
@@ -6431,9 +6431,9 @@ function Tu(e, t = {}) {
|
|
|
6431
6431
|
left: c,
|
|
6432
6432
|
right: u,
|
|
6433
6433
|
top: d,
|
|
6434
|
-
width:
|
|
6434
|
+
width: f,
|
|
6435
6435
|
x: v,
|
|
6436
|
-
y:
|
|
6436
|
+
y: p,
|
|
6437
6437
|
update: m
|
|
6438
6438
|
};
|
|
6439
6439
|
}
|
|
@@ -6442,7 +6442,7 @@ const Pu = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() *
|
|
|
6442
6442
|
for (const [o, r] of t)
|
|
6443
6443
|
n[o] = r;
|
|
6444
6444
|
return n;
|
|
6445
|
-
},
|
|
6445
|
+
}, Cu = ["tabindex"], Vu = /* @__PURE__ */ de({
|
|
6446
6446
|
__name: "ARow",
|
|
6447
6447
|
props: {
|
|
6448
6448
|
rowIndex: {},
|
|
@@ -6464,49 +6464,49 @@ const Pu = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() *
|
|
|
6464
6464
|
}
|
|
6465
6465
|
]);
|
|
6466
6466
|
}
|
|
6467
|
-
return (r, a) => Ae((T(),
|
|
6467
|
+
return (r, a) => Ae((T(), V("tr", {
|
|
6468
6468
|
ref: "rowEl",
|
|
6469
6469
|
tabindex: r.tabIndex,
|
|
6470
6470
|
class: "atable-row"
|
|
6471
6471
|
}, [
|
|
6472
6472
|
r.store.config.view !== "uncounted" ? se(r.$slots, "index", { key: 0 }, () => [
|
|
6473
|
-
r.store.config.view === "list" ? (T(),
|
|
6473
|
+
r.store.config.view === "list" ? (T(), V("td", {
|
|
6474
6474
|
key: 0,
|
|
6475
6475
|
tabIndex: -1,
|
|
6476
6476
|
class: De(["list-index", r.store.hasPinnedColumns ? "sticky-index" : ""])
|
|
6477
|
-
},
|
|
6477
|
+
}, pe(r.rowIndex + 1), 3)) : r.store.config.view === "tree" ? (T(), V("td", {
|
|
6478
6478
|
key: 1,
|
|
6479
6479
|
tabIndex: -1,
|
|
6480
6480
|
class: De(["tree-index", r.store.hasPinnedColumns ? "sticky-index" : ""]),
|
|
6481
6481
|
onClick: a[0] || (a[0] = (s) => r.store.toggleRowExpand(r.rowIndex))
|
|
6482
|
-
},
|
|
6482
|
+
}, pe(o.value), 3)) : ae("", !0)
|
|
6483
6483
|
], !0) : ae("", !0),
|
|
6484
6484
|
se(r.$slots, "default", {}, void 0, !0)
|
|
6485
|
-
], 8,
|
|
6485
|
+
], 8, Cu)), [
|
|
6486
6486
|
[gn, n.value]
|
|
6487
6487
|
]);
|
|
6488
6488
|
}
|
|
6489
|
-
}), Nu = /* @__PURE__ */ Is(
|
|
6490
|
-
function
|
|
6489
|
+
}), Nu = /* @__PURE__ */ Is(Vu, [["__scopeId", "data-v-4cb4f254"]]), Gn = Wn ? window : void 0;
|
|
6490
|
+
function Ve(e) {
|
|
6491
6491
|
var t;
|
|
6492
|
-
const n =
|
|
6492
|
+
const n = x(e);
|
|
6493
6493
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
6494
6494
|
}
|
|
6495
6495
|
function At(...e) {
|
|
6496
6496
|
const t = [], n = () => {
|
|
6497
6497
|
t.forEach((i) => i()), t.length = 0;
|
|
6498
6498
|
}, o = (i, l, c, u) => (i.addEventListener(l, c, u), () => i.removeEventListener(l, c, u)), r = A(() => {
|
|
6499
|
-
const i = Ne(
|
|
6499
|
+
const i = Ne(x(e[0])).filter((l) => l != null);
|
|
6500
6500
|
return i.every((l) => typeof l != "string") ? i : void 0;
|
|
6501
6501
|
}), a = Os(
|
|
6502
6502
|
() => {
|
|
6503
6503
|
var i, l;
|
|
6504
6504
|
return [
|
|
6505
|
-
(l = (i = r.value) == null ? void 0 : i.map((c) =>
|
|
6506
|
-
Ne(
|
|
6507
|
-
Ne(
|
|
6505
|
+
(l = (i = r.value) == null ? void 0 : i.map((c) => Ve(c))) != null ? l : [Gn].filter((c) => c != null),
|
|
6506
|
+
Ne(x(r.value ? e[1] : e[0])),
|
|
6507
|
+
Ne(C(r.value ? e[2] : e[1])),
|
|
6508
6508
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
6509
|
-
|
|
6509
|
+
x(r.value ? e[3] : e[2])
|
|
6510
6510
|
];
|
|
6511
6511
|
},
|
|
6512
6512
|
([i, l, c, u]) => {
|
|
@@ -6515,8 +6515,8 @@ function At(...e) {
|
|
|
6515
6515
|
const d = ws(u) ? { ...u } : u;
|
|
6516
6516
|
t.push(
|
|
6517
6517
|
...i.flatMap(
|
|
6518
|
-
(
|
|
6519
|
-
(v) => c.map((
|
|
6518
|
+
(f) => l.flatMap(
|
|
6519
|
+
(v) => c.map((p) => o(f, v, p, d))
|
|
6520
6520
|
)
|
|
6521
6521
|
)
|
|
6522
6522
|
);
|
|
@@ -6538,24 +6538,24 @@ function er(e, t, n = {}) {
|
|
|
6538
6538
|
Array.from(o.document.body.children).forEach((b) => b.addEventListener("click", Pe, m)), o.document.documentElement.addEventListener("click", Pe, m);
|
|
6539
6539
|
}
|
|
6540
6540
|
let l = !0;
|
|
6541
|
-
const c = (m) =>
|
|
6541
|
+
const c = (m) => x(r).some((b) => {
|
|
6542
6542
|
if (typeof b == "string")
|
|
6543
6543
|
return Array.from(o.document.querySelectorAll(b)).some((S) => S === m.target || m.composedPath().includes(S));
|
|
6544
6544
|
{
|
|
6545
|
-
const S =
|
|
6545
|
+
const S = Ve(b);
|
|
6546
6546
|
return S && (m.target === S || m.composedPath().includes(S));
|
|
6547
6547
|
}
|
|
6548
6548
|
});
|
|
6549
6549
|
function u(m) {
|
|
6550
|
-
const b =
|
|
6550
|
+
const b = x(m);
|
|
6551
6551
|
return b && b.$.subTree.shapeFlag === 16;
|
|
6552
6552
|
}
|
|
6553
6553
|
function d(m, b) {
|
|
6554
|
-
const S =
|
|
6554
|
+
const S = x(m), R = S.$.subTree && S.$.subTree.children;
|
|
6555
6555
|
return R == null || !Array.isArray(R) ? !1 : R.some((M) => M.el === b.target || b.composedPath().includes(M.el));
|
|
6556
6556
|
}
|
|
6557
|
-
const
|
|
6558
|
-
const b =
|
|
6557
|
+
const f = (m) => {
|
|
6558
|
+
const b = Ve(e);
|
|
6559
6559
|
if (m.target != null && !(!(b instanceof Element) && u(e) && d(e, m)) && !(!b || b === m.target || m.composedPath().includes(b))) {
|
|
6560
6560
|
if ("detail" in m && m.detail === 0 && (l = !c(m)), !l) {
|
|
6561
6561
|
l = !0;
|
|
@@ -6565,31 +6565,31 @@ function er(e, t, n = {}) {
|
|
|
6565
6565
|
}
|
|
6566
6566
|
};
|
|
6567
6567
|
let v = !1;
|
|
6568
|
-
const
|
|
6568
|
+
const p = [
|
|
6569
6569
|
At(o, "click", (m) => {
|
|
6570
6570
|
v || (v = !0, setTimeout(() => {
|
|
6571
6571
|
v = !1;
|
|
6572
|
-
}, 0),
|
|
6572
|
+
}, 0), f(m));
|
|
6573
6573
|
}, { passive: !0, capture: a }),
|
|
6574
6574
|
At(o, "pointerdown", (m) => {
|
|
6575
|
-
const b =
|
|
6575
|
+
const b = Ve(e);
|
|
6576
6576
|
l = !c(m) && !!(b && !m.composedPath().includes(b));
|
|
6577
6577
|
}, { passive: !0 }),
|
|
6578
6578
|
s && At(o, "blur", (m) => {
|
|
6579
6579
|
setTimeout(() => {
|
|
6580
6580
|
var b;
|
|
6581
|
-
const S =
|
|
6581
|
+
const S = Ve(e);
|
|
6582
6582
|
((b = o.document.activeElement) == null ? void 0 : b.tagName) === "IFRAME" && !(S != null && S.contains(o.document.activeElement)) && t(m);
|
|
6583
6583
|
}, 0);
|
|
6584
6584
|
}, { passive: !0 })
|
|
6585
|
-
].filter(Boolean), E = () =>
|
|
6585
|
+
].filter(Boolean), E = () => p.forEach((m) => m());
|
|
6586
6586
|
return i ? {
|
|
6587
6587
|
stop: E,
|
|
6588
6588
|
cancel: () => {
|
|
6589
6589
|
l = !1;
|
|
6590
6590
|
},
|
|
6591
6591
|
trigger: (m) => {
|
|
6592
|
-
l = !0,
|
|
6592
|
+
l = !0, f(m), l = !1;
|
|
6593
6593
|
}
|
|
6594
6594
|
} : E;
|
|
6595
6595
|
}
|
|
@@ -6616,25 +6616,25 @@ function Au() {
|
|
|
6616
6616
|
e.value = !0;
|
|
6617
6617
|
}, t), e;
|
|
6618
6618
|
}
|
|
6619
|
-
function
|
|
6619
|
+
function $u(e) {
|
|
6620
6620
|
const t = Au();
|
|
6621
6621
|
return A(() => (t.value, !!e()));
|
|
6622
6622
|
}
|
|
6623
6623
|
function tr(e, t, n = {}) {
|
|
6624
6624
|
const { window: o = Gn, ...r } = n;
|
|
6625
6625
|
let a;
|
|
6626
|
-
const s =
|
|
6626
|
+
const s = $u(() => o && "ResizeObserver" in o), i = () => {
|
|
6627
6627
|
a && (a.disconnect(), a = void 0);
|
|
6628
6628
|
}, l = A(() => {
|
|
6629
|
-
const d =
|
|
6630
|
-
return Array.isArray(d) ? d.map((
|
|
6629
|
+
const d = x(e);
|
|
6630
|
+
return Array.isArray(d) ? d.map((f) => Ve(f)) : [Ve(d)];
|
|
6631
6631
|
}), c = U(
|
|
6632
6632
|
l,
|
|
6633
6633
|
(d) => {
|
|
6634
6634
|
if (i(), s.value && o) {
|
|
6635
6635
|
a = new ResizeObserver(t);
|
|
6636
|
-
for (const
|
|
6637
|
-
|
|
6636
|
+
for (const f of d)
|
|
6637
|
+
f && a.observe(f, r);
|
|
6638
6638
|
}
|
|
6639
6639
|
},
|
|
6640
6640
|
{ immediate: !0, flush: "post" }
|
|
@@ -6649,7 +6649,7 @@ function tr(e, t, n = {}) {
|
|
|
6649
6649
|
function Qt(e) {
|
|
6650
6650
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
6651
6651
|
}
|
|
6652
|
-
const
|
|
6652
|
+
const xu = {
|
|
6653
6653
|
mounted(e, t) {
|
|
6654
6654
|
typeof t.value == "function" ? tr(e, t.value) : tr(e, ...t.value);
|
|
6655
6655
|
}
|
|
@@ -6672,7 +6672,7 @@ function Lu(e, t = !1) {
|
|
|
6672
6672
|
const n = F(t);
|
|
6673
6673
|
let o = null, r = "";
|
|
6674
6674
|
U(wu(e), (i) => {
|
|
6675
|
-
const l = Qt(
|
|
6675
|
+
const l = Qt(x(i));
|
|
6676
6676
|
if (l) {
|
|
6677
6677
|
const c = l;
|
|
6678
6678
|
if (en.get(c) || en.set(c, c.style.overflow), c.style.overflow !== "hidden" && (r = c.style.overflow), c.style.overflow === "hidden")
|
|
@@ -6684,7 +6684,7 @@ function Lu(e, t = !1) {
|
|
|
6684
6684
|
immediate: !0
|
|
6685
6685
|
});
|
|
6686
6686
|
const a = () => {
|
|
6687
|
-
const i = Qt(
|
|
6687
|
+
const i = Qt(x(e));
|
|
6688
6688
|
!i || n.value || (_n && (o = At(
|
|
6689
6689
|
i,
|
|
6690
6690
|
"touchmove",
|
|
@@ -6694,7 +6694,7 @@ function Lu(e, t = !1) {
|
|
|
6694
6694
|
{ passive: !1 }
|
|
6695
6695
|
)), i.style.overflow = "hidden", n.value = !0);
|
|
6696
6696
|
}, s = () => {
|
|
6697
|
-
const i = Qt(
|
|
6697
|
+
const i = Qt(x(e));
|
|
6698
6698
|
!i || !n.value || (_n && (o == null || o()), i.style.overflow = r, en.delete(i), n.value = !1);
|
|
6699
6699
|
};
|
|
6700
6700
|
return Qe(s), A({
|
|
@@ -6736,9 +6736,9 @@ const Uu = { key: 0 }, Mu = {
|
|
|
6736
6736
|
typeof i == "number" && i !== a && e.store.resizeColumn(s, a);
|
|
6737
6737
|
}
|
|
6738
6738
|
};
|
|
6739
|
-
return (n, o) => n.columns.length ? (T(),
|
|
6739
|
+
return (n, o) => n.columns.length ? (T(), V("thead", Uu, [
|
|
6740
6740
|
N("tr", Mu, [
|
|
6741
|
-
n.store.zeroColumn ? (T(),
|
|
6741
|
+
n.store.zeroColumn ? (T(), V("th", {
|
|
6742
6742
|
key: 0,
|
|
6743
6743
|
id: "header-index",
|
|
6744
6744
|
class: De([[
|
|
@@ -6747,7 +6747,7 @@ const Uu = { key: 0 }, Mu = {
|
|
|
6747
6747
|
n.store.config.view === "list-expansion" ? "list-expansion-index" : ""
|
|
6748
6748
|
], "list-index"])
|
|
6749
6749
|
}, null, 2)) : ae("", !0),
|
|
6750
|
-
(T(!0),
|
|
6750
|
+
(T(!0), V(he, null, Oe(n.columns, (r, a) => Ae((T(), V("th", {
|
|
6751
6751
|
key: r.name,
|
|
6752
6752
|
"data-colindex": a,
|
|
6753
6753
|
tabindex: "-1",
|
|
@@ -6755,10 +6755,10 @@ const Uu = { key: 0 }, Mu = {
|
|
|
6755
6755
|
class: De(r.pinned ? "sticky-column" : "")
|
|
6756
6756
|
}, [
|
|
6757
6757
|
se(n.$slots, "default", {}, () => [
|
|
6758
|
-
yn(
|
|
6758
|
+
yn(pe(r.label || String.fromCharCode(a + 97).toUpperCase()), 1)
|
|
6759
6759
|
])
|
|
6760
6760
|
], 14, Hu)), [
|
|
6761
|
-
[
|
|
6761
|
+
[C(xu), t]
|
|
6762
6762
|
])), 128))
|
|
6763
6763
|
])
|
|
6764
6764
|
])) : ae("", !0);
|
|
@@ -6773,16 +6773,16 @@ const Uu = { key: 0 }, Mu = {
|
|
|
6773
6773
|
var a, s, i, l;
|
|
6774
6774
|
if (!(e.store.modal.height && e.store.modal.width && e.store.modal.left && e.store.modal.bottom)) return;
|
|
6775
6775
|
const c = (a = e.store.modal.cell) == null ? void 0 : a.closest("table"), u = c.offsetHeight || 0, d = c.offsetWidth || 0;
|
|
6776
|
-
let
|
|
6776
|
+
let f = ((s = e.store.modal.cell) == null ? void 0 : s.offsetTop) || 0;
|
|
6777
6777
|
const v = ((i = c.querySelector("thead")) == null ? void 0 : i.offsetHeight) || 0;
|
|
6778
|
-
|
|
6779
|
-
let
|
|
6780
|
-
return
|
|
6781
|
-
left: `${
|
|
6782
|
-
top: `${
|
|
6778
|
+
f += v, f = f + o.value < u ? f : f - (o.value + e.store.modal.height);
|
|
6779
|
+
let p = ((l = e.store.modal.cell) == null ? void 0 : l.offsetLeft) || 0;
|
|
6780
|
+
return p = p + n.value <= d ? p : p - (n.value - e.store.modal.width), {
|
|
6781
|
+
left: `${p}px`,
|
|
6782
|
+
top: `${f}px`
|
|
6783
6783
|
};
|
|
6784
6784
|
});
|
|
6785
|
-
return (a, s) => (T(),
|
|
6785
|
+
return (a, s) => (T(), V("div", {
|
|
6786
6786
|
class: "amodal",
|
|
6787
6787
|
ref: "amodal",
|
|
6788
6788
|
tabindex: "-1",
|
|
@@ -6823,9 +6823,9 @@ const Uu = { key: 0 }, Mu = {
|
|
|
6823
6823
|
};
|
|
6824
6824
|
}
|
|
6825
6825
|
return h;
|
|
6826
|
-
}, r = D(e.columns), a = D(e.rows), s = D(e.config || {}), i = D(e.table || n()), l = D(o(e.display)), c = D(e.modal || { visible: !1 }), u = D({}), d = A(() => r.value.some((_) => _.pinned)),
|
|
6826
|
+
}, r = D(e.columns), a = D(e.rows), s = D(e.config || {}), i = D(e.table || n()), l = D(o(e.display)), c = D(e.modal || { visible: !1 }), u = D({}), d = A(() => r.value.some((_) => _.pinned)), f = A(() => `${Math.ceil(a.value.length / 100 + 1)}ch`), v = A(
|
|
6827
6827
|
() => s.value.view ? ["list", "tree", "list-expansion"].includes(s.value.view) : !1
|
|
6828
|
-
),
|
|
6828
|
+
), p = (_, h) => i.value[`${_}:${h}`], E = (_, h, g) => {
|
|
6829
6829
|
const k = `${_}:${h}`, I = r.value[_];
|
|
6830
6830
|
i.value[k] !== g && (l.value[h].rowModified = !0), i.value[k] = g, a.value[h][I.name] = g;
|
|
6831
6831
|
}, m = (_, h, g) => {
|
|
@@ -6859,7 +6859,7 @@ const Uu = { key: 0 }, Mu = {
|
|
|
6859
6859
|
l.value[h].parent === _ && (l.value[h].open = !l.value[h].open, l.value[h].childrenOpen && ne(h));
|
|
6860
6860
|
} else s.value.view === "list-expansion" && (l.value[_].expanded = !l.value[_].expanded);
|
|
6861
6861
|
}, w = (_, h) => {
|
|
6862
|
-
const g =
|
|
6862
|
+
const g = p(_, h);
|
|
6863
6863
|
return B(_, h, g);
|
|
6864
6864
|
}, B = (_, h, g) => {
|
|
6865
6865
|
const k = r.value[_], I = a.value[h], K = k.format;
|
|
@@ -6876,14 +6876,14 @@ const Uu = { key: 0 }, Mu = {
|
|
|
6876
6876
|
updates: u,
|
|
6877
6877
|
// getters
|
|
6878
6878
|
hasPinnedColumns: d,
|
|
6879
|
-
numberedRowWidth:
|
|
6879
|
+
numberedRowWidth: f,
|
|
6880
6880
|
zeroColumn: v,
|
|
6881
6881
|
// actions
|
|
6882
6882
|
closeModal: (_) => {
|
|
6883
6883
|
var h;
|
|
6884
6884
|
_.target instanceof Node && (h = c.value.parent) != null && h.contains(_.target) || c.value.visible && (c.value.visible = !1);
|
|
6885
6885
|
},
|
|
6886
|
-
getCellData:
|
|
6886
|
+
getCellData: p,
|
|
6887
6887
|
getCellDisplayValue: w,
|
|
6888
6888
|
getFormattedValue: B,
|
|
6889
6889
|
getHeaderCellStyle: b,
|
|
@@ -6914,17 +6914,17 @@ const Uu = { key: 0 }, Mu = {
|
|
|
6914
6914
|
emits: ["update:modelValue", "cellUpdate", "gantt:drag"],
|
|
6915
6915
|
setup(e, { expose: t, emit: n }) {
|
|
6916
6916
|
const o = n, r = mt("table"), a = e.modelValue ? e.modelValue : e.rows, s = Ku({ columns: e.columns, rows: a, id: e.id, config: e.config });
|
|
6917
|
-
s.$onAction(({ name: u, store: d, args:
|
|
6917
|
+
s.$onAction(({ name: u, store: d, args: f, after: v }) => {
|
|
6918
6918
|
if (u === "setCellData" || u === "setCellText") {
|
|
6919
|
-
const [
|
|
6919
|
+
const [p, E, m] = f, b = d.getCellData(p, E);
|
|
6920
6920
|
v(() => {
|
|
6921
|
-
o("cellUpdate", { colIndex:
|
|
6921
|
+
o("cellUpdate", { colIndex: p, rowIndex: E, newValue: m, oldValue: b });
|
|
6922
6922
|
});
|
|
6923
6923
|
} else if (u === "updateGanttBar") {
|
|
6924
|
-
const [
|
|
6924
|
+
const [p] = f;
|
|
6925
6925
|
let E = !1;
|
|
6926
|
-
|
|
6927
|
-
o("gantt:drag",
|
|
6926
|
+
p.type === "resize" ? E = p.oldColspan !== p.newColspan : p.type === "bar" && (E = p.oldStart !== p.newStart || p.oldEnd !== p.newEnd), E && v(() => {
|
|
6927
|
+
o("gantt:drag", p);
|
|
6928
6928
|
});
|
|
6929
6929
|
}
|
|
6930
6930
|
}), U(
|
|
@@ -6937,15 +6937,15 @@ const Uu = { key: 0 }, Mu = {
|
|
|
6937
6937
|
e.columns.some((u) => u.pinned) && (l(), s.config.view === "tree" && Ss(r, l, { childList: !0, subtree: !0 }));
|
|
6938
6938
|
});
|
|
6939
6939
|
const i = A(() => s.columns.filter((u) => u.pinned).length), l = () => {
|
|
6940
|
-
const u = r.value, d = u == null ? void 0 : u.rows[0],
|
|
6941
|
-
for (const [
|
|
6942
|
-
const m =
|
|
6940
|
+
const u = r.value, d = u == null ? void 0 : u.rows[0], f = u == null ? void 0 : u.rows[1], v = d ? Array.from(d.cells) : [];
|
|
6941
|
+
for (const [p, E] of v.entries()) {
|
|
6942
|
+
const m = f == null ? void 0 : f.cells[p];
|
|
6943
6943
|
m && (E.style.width = `${m.offsetWidth}px`);
|
|
6944
6944
|
}
|
|
6945
|
-
for (const
|
|
6945
|
+
for (const p of (u == null ? void 0 : u.rows) || []) {
|
|
6946
6946
|
let E = 0;
|
|
6947
6947
|
const m = [];
|
|
6948
|
-
for (const b of
|
|
6948
|
+
for (const b of p.cells)
|
|
6949
6949
|
(b.classList.contains("sticky-column") || b.classList.contains("sticky-index")) && (b.style.left = `${E}px`, E += b.offsetWidth, m.push(b));
|
|
6950
6950
|
m.length > 0 && m[m.length - 1].classList.add("sticky-column-edge");
|
|
6951
6951
|
}
|
|
@@ -6963,72 +6963,72 @@ const Uu = { key: 0 }, Mu = {
|
|
|
6963
6963
|
var d;
|
|
6964
6964
|
if (u.indent !== 0 || i.value === 0)
|
|
6965
6965
|
return s.columns;
|
|
6966
|
-
const
|
|
6966
|
+
const f = [];
|
|
6967
6967
|
for (let v = 0; v < i.value; v++) {
|
|
6968
|
-
const
|
|
6969
|
-
|
|
6968
|
+
const p = { ...s.columns[v] };
|
|
6969
|
+
p.originalIndex = v, f.push(p);
|
|
6970
6970
|
}
|
|
6971
|
-
return
|
|
6971
|
+
return f.push({
|
|
6972
6972
|
...s.columns[i.value],
|
|
6973
6973
|
isGantt: !0,
|
|
6974
6974
|
colspan: ((d = u.gantt) == null ? void 0 : d.colspan) || s.columns.length - i.value,
|
|
6975
6975
|
originalIndex: i.value,
|
|
6976
6976
|
width: "auto"
|
|
6977
6977
|
// TODO: refactor to API that can detect when data exists in a cell. Might have be custom and not generalizable
|
|
6978
|
-
}),
|
|
6978
|
+
}), f;
|
|
6979
6979
|
};
|
|
6980
|
-
return t({ store: s }), (u, d) => Ae((T(),
|
|
6980
|
+
return t({ store: s }), (u, d) => Ae((T(), V("table", {
|
|
6981
6981
|
ref: "table",
|
|
6982
6982
|
class: "atable",
|
|
6983
6983
|
style: le({
|
|
6984
|
-
width:
|
|
6984
|
+
width: C(s).config.fullWidth ? "100%" : "auto"
|
|
6985
6985
|
})
|
|
6986
6986
|
}, [
|
|
6987
|
-
se(u.$slots, "header", { data:
|
|
6987
|
+
se(u.$slots, "header", { data: C(s) }, () => [
|
|
6988
6988
|
it(zu, {
|
|
6989
|
-
columns:
|
|
6990
|
-
store:
|
|
6989
|
+
columns: C(s).columns,
|
|
6990
|
+
store: C(s)
|
|
6991
6991
|
}, null, 8, ["columns", "store"])
|
|
6992
6992
|
], !0),
|
|
6993
6993
|
N("tbody", null, [
|
|
6994
|
-
se(u.$slots, "body", { data:
|
|
6995
|
-
(T(!0),
|
|
6996
|
-
key:
|
|
6997
|
-
row:
|
|
6994
|
+
se(u.$slots, "body", { data: C(s) }, () => [
|
|
6995
|
+
(T(!0), V(he, null, Oe(C(s).rows, (f, v) => (T(), ye(Nu, {
|
|
6996
|
+
key: f.id,
|
|
6997
|
+
row: f,
|
|
6998
6998
|
rowIndex: v,
|
|
6999
|
-
store:
|
|
6999
|
+
store: C(s)
|
|
7000
7000
|
}, {
|
|
7001
7001
|
default: lt(() => [
|
|
7002
|
-
(T(!0),
|
|
7002
|
+
(T(!0), V(he, null, Oe(c(f), (p, E) => {
|
|
7003
7003
|
var m, b, S;
|
|
7004
|
-
return T(),
|
|
7005
|
-
key:
|
|
7004
|
+
return T(), V(he, {
|
|
7005
|
+
key: p.name
|
|
7006
7006
|
}, [
|
|
7007
|
-
|
|
7007
|
+
p.isGantt ? (T(), ye(Ot(p.ganttComponent || "AGanttCell"), {
|
|
7008
7008
|
key: 0,
|
|
7009
|
-
store:
|
|
7010
|
-
columnsCount:
|
|
7011
|
-
color: (m =
|
|
7012
|
-
start: (b =
|
|
7013
|
-
end: (S =
|
|
7014
|
-
colspan:
|
|
7015
|
-
pinned:
|
|
7009
|
+
store: C(s),
|
|
7010
|
+
columnsCount: C(s).columns.length - i.value,
|
|
7011
|
+
color: (m = f.gantt) == null ? void 0 : m.color,
|
|
7012
|
+
start: (b = f.gantt) == null ? void 0 : b.startIndex,
|
|
7013
|
+
end: (S = f.gantt) == null ? void 0 : S.endIndex,
|
|
7014
|
+
colspan: p.colspan,
|
|
7015
|
+
pinned: p.pinned,
|
|
7016
7016
|
rowIndex: v,
|
|
7017
|
-
colIndex:
|
|
7017
|
+
colIndex: p.originalIndex ?? E,
|
|
7018
7018
|
style: le({
|
|
7019
|
-
textAlign: (
|
|
7020
|
-
minWidth: (
|
|
7021
|
-
width:
|
|
7019
|
+
textAlign: (p == null ? void 0 : p.align) || "center",
|
|
7020
|
+
minWidth: (p == null ? void 0 : p.width) || "40ch",
|
|
7021
|
+
width: C(s).config.fullWidth ? "auto" : null
|
|
7022
7022
|
})
|
|
7023
|
-
}, null, 8, ["store", "columnsCount", "color", "start", "end", "colspan", "pinned", "rowIndex", "colIndex", "style"])) : (T(), ye(Ot(
|
|
7023
|
+
}, null, 8, ["store", "columnsCount", "color", "start", "end", "colspan", "pinned", "rowIndex", "colIndex", "style"])) : (T(), ye(Ot(p.cellComponent || "ACell"), {
|
|
7024
7024
|
key: 1,
|
|
7025
|
-
store:
|
|
7026
|
-
pinned:
|
|
7025
|
+
store: C(s),
|
|
7026
|
+
pinned: p.pinned,
|
|
7027
7027
|
rowIndex: v,
|
|
7028
7028
|
colIndex: E,
|
|
7029
7029
|
style: le({
|
|
7030
|
-
textAlign: (
|
|
7031
|
-
width:
|
|
7030
|
+
textAlign: (p == null ? void 0 : p.align) || "center",
|
|
7031
|
+
width: C(s).config.fullWidth ? "auto" : null
|
|
7032
7032
|
}),
|
|
7033
7033
|
spellcheck: "false"
|
|
7034
7034
|
}, null, 8, ["store", "pinned", "rowIndex", "colIndex", "style"]))
|
|
@@ -7039,34 +7039,34 @@ const Uu = { key: 0 }, Mu = {
|
|
|
7039
7039
|
}, 1032, ["row", "rowIndex", "store"]))), 128))
|
|
7040
7040
|
], !0)
|
|
7041
7041
|
]),
|
|
7042
|
-
se(u.$slots, "footer", { data:
|
|
7043
|
-
se(u.$slots, "modal", { data:
|
|
7044
|
-
Ae(it(Bu, { store:
|
|
7042
|
+
se(u.$slots, "footer", { data: C(s) }, void 0, !0),
|
|
7043
|
+
se(u.$slots, "modal", { data: C(s) }, () => [
|
|
7044
|
+
Ae(it(Bu, { store: C(s) }, {
|
|
7045
7045
|
default: lt(() => [
|
|
7046
|
-
(T(), ye(Ot(
|
|
7047
|
-
key: `${
|
|
7048
|
-
colIndex:
|
|
7049
|
-
rowIndex:
|
|
7050
|
-
store:
|
|
7051
|
-
},
|
|
7046
|
+
(T(), ye(Ot(C(s).modal.component), sr({
|
|
7047
|
+
key: `${C(s).modal.rowIndex}:${C(s).modal.colIndex}`,
|
|
7048
|
+
colIndex: C(s).modal.colIndex,
|
|
7049
|
+
rowIndex: C(s).modal.rowIndex,
|
|
7050
|
+
store: C(s)
|
|
7051
|
+
}, C(s).modal.componentProps), null, 16, ["colIndex", "rowIndex", "store"]))
|
|
7052
7052
|
]),
|
|
7053
7053
|
_: 1
|
|
7054
7054
|
}, 8, ["store"]), [
|
|
7055
|
-
[gn,
|
|
7055
|
+
[gn, C(s).modal.visible]
|
|
7056
7056
|
])
|
|
7057
7057
|
], !0)
|
|
7058
7058
|
], 4)), [
|
|
7059
|
-
[
|
|
7059
|
+
[C(Du), C(s).closeModal]
|
|
7060
7060
|
]);
|
|
7061
7061
|
}
|
|
7062
7062
|
}), Fu = /* @__PURE__ */ Is(Wu, [["__scopeId", "data-v-785e5fa3"]]), Gu = /* @__PURE__ */ de({
|
|
7063
7063
|
__name: "Records",
|
|
7064
7064
|
setup(e) {
|
|
7065
7065
|
const { stonecrop: t, isReady: n } = ss(), o = { view: "list" };
|
|
7066
|
-
return (r, a) =>
|
|
7066
|
+
return (r, a) => C(n) ? (T(), ye(C(Fu), {
|
|
7067
7067
|
key: 0,
|
|
7068
|
-
columns:
|
|
7069
|
-
rows:
|
|
7068
|
+
columns: C(t).schema.schema.toArray(),
|
|
7069
|
+
rows: C(t).store.records,
|
|
7070
7070
|
config: o
|
|
7071
7071
|
}, null, 8, ["columns", "rows"])) : ae("", !0);
|
|
7072
7072
|
}
|
|
@@ -7098,9 +7098,9 @@ const Uu = { key: 0 }, Mu = {
|
|
|
7098
7098
|
d.preventDefault(), d.stopPropagation(), await i();
|
|
7099
7099
|
}, u = () => {
|
|
7100
7100
|
};
|
|
7101
|
-
return (d,
|
|
7101
|
+
return (d, f) => {
|
|
7102
7102
|
const v = Ds("router-link");
|
|
7103
|
-
return T(),
|
|
7103
|
+
return T(), V("footer", null, [
|
|
7104
7104
|
N("ul", Yu, [
|
|
7105
7105
|
N("li", {
|
|
7106
7106
|
class: "hidebreadcrumbs",
|
|
@@ -7124,7 +7124,7 @@ const Uu = { key: 0 }, Mu = {
|
|
|
7124
7124
|
tabindex: "0"
|
|
7125
7125
|
}, {
|
|
7126
7126
|
default: lt(() => [
|
|
7127
|
-
(T(),
|
|
7127
|
+
(T(), V("svg", Ju, f[5] || (f[5] = [
|
|
7128
7128
|
N("g", null, [
|
|
7129
7129
|
N("path", {
|
|
7130
7130
|
style: { fill: "#010002" },
|
|
@@ -7154,7 +7154,7 @@ const Uu = { key: 0 }, Mu = {
|
|
|
7154
7154
|
N("span", {
|
|
7155
7155
|
style: le({ display: n.value ? "none" : "block" })
|
|
7156
7156
|
}, [
|
|
7157
|
-
(T(),
|
|
7157
|
+
(T(), V("svg", Zu, f[6] || (f[6] = [
|
|
7158
7158
|
N("g", { transform: "matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)" }, [
|
|
7159
7159
|
N("path", {
|
|
7160
7160
|
d: "M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",
|
|
@@ -7165,29 +7165,29 @@ const Uu = { key: 0 }, Mu = {
|
|
|
7165
7165
|
])))
|
|
7166
7166
|
], 4),
|
|
7167
7167
|
Ae(N("input", {
|
|
7168
|
-
"onUpdate:modelValue":
|
|
7168
|
+
"onUpdate:modelValue": f[0] || (f[0] = (p) => o.value = p),
|
|
7169
7169
|
ref: "searchinput",
|
|
7170
7170
|
style: le({ display: n.value ? "block" : "none" }),
|
|
7171
|
-
onClick:
|
|
7172
|
-
onInput:
|
|
7173
|
-
onBlur:
|
|
7174
|
-
onKeydown:
|
|
7171
|
+
onClick: f[1] || (f[1] = (p) => l(p)),
|
|
7172
|
+
onInput: f[2] || (f[2] = (p) => l(p)),
|
|
7173
|
+
onBlur: f[3] || (f[3] = (p) => c(p)),
|
|
7174
|
+
onKeydown: f[4] || (f[4] = Et((p) => c(p), ["enter"])),
|
|
7175
7175
|
type: "text"
|
|
7176
7176
|
}, null, 36), [
|
|
7177
7177
|
[nr, o.value]
|
|
7178
7178
|
])
|
|
7179
7179
|
])
|
|
7180
7180
|
], 36),
|
|
7181
|
-
(T(!0),
|
|
7182
|
-
key:
|
|
7181
|
+
(T(!0), V(he, null, Oe(d.breadcrumbs, (p) => (T(), V("li", {
|
|
7182
|
+
key: p.title,
|
|
7183
7183
|
style: le({ display: t.value ? "block" : "none" })
|
|
7184
7184
|
}, [
|
|
7185
7185
|
it(v, {
|
|
7186
7186
|
tabindex: "0",
|
|
7187
|
-
to:
|
|
7187
|
+
to: p.to
|
|
7188
7188
|
}, {
|
|
7189
7189
|
default: lt(() => [
|
|
7190
|
-
yn(
|
|
7190
|
+
yn(pe(p.title), 1)
|
|
7191
7191
|
]),
|
|
7192
7192
|
_: 2
|
|
7193
7193
|
}, 1032, ["to"])
|