doph-js 0.0.71 → 0.0.72
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/dophJs.js +122 -122
- package/dist/dophJs.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dophJs.js
CHANGED
|
@@ -301,7 +301,7 @@ const Le = (t, e) => {
|
|
|
301
301
|
}, 40, ["draggable"]));
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
|
-
const Ms = (t) => (_s("data-v-
|
|
304
|
+
const Ms = (t) => (_s("data-v-6804865f"), t = t(), Ss(), t), Ps = { key: 0 }, Rs = /* @__PURE__ */ Ms(() => /* @__PURE__ */ gt("div", { class: "tree-divider" }, null, -1)), Fs = [
|
|
305
305
|
Rs
|
|
306
306
|
], Ws = { key: 1 }, Vs = { class: "tree-divider-header" }, Us = { class: "item-title" }, qs = {
|
|
307
307
|
key: 0,
|
|
@@ -324,29 +324,29 @@ const Ms = (t) => (_s("data-v-f6a37dc2"), t = t(), Ss(), t), Ps = { key: 0 }, Rs
|
|
|
324
324
|
}, d = (m) => {
|
|
325
325
|
e("nodeclick", m);
|
|
326
326
|
}, f = R(() => (M.actions.isItemSelected(n.treeId, n.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (r.value ? "node-top " : "") + (i.value ? "node-bottom " : "")), u = R(() => n.search ? !1 : n.model.draggable === !0), p = (m) => {
|
|
327
|
-
let
|
|
328
|
-
if (
|
|
327
|
+
let g = Ke.data;
|
|
328
|
+
if (g.model.id === n.model.id || M.actions.isChildOfParent(n.treeId, n.items, n.model.id, g.model.id) || M.actions.isParentOfChild(n.treeId, n.items, g.model.id, n.model.id))
|
|
329
329
|
return s.value = !1, r.value = !1, i.value = !1, !1;
|
|
330
|
-
if (!M.state.trees[n.treeId].transfer &&
|
|
330
|
+
if (!M.state.trees[n.treeId].transfer && g.id !== n.treeId)
|
|
331
331
|
return !1;
|
|
332
332
|
let S = "";
|
|
333
|
-
r.value ? S = "before" : i.value ? S = "after" : S = "inside", M.actions.moveTreeNode(
|
|
333
|
+
r.value ? S = "before" : i.value ? S = "after" : S = "inside", M.actions.moveTreeNode(g.id, n.treeId, n.items, g.model.id, n.model.id, S), s.value = !1, r.value = !1, i.value = !1;
|
|
334
334
|
}, v = (m) => {
|
|
335
|
-
let
|
|
336
|
-
if (
|
|
335
|
+
let g = Ke.data;
|
|
336
|
+
if (g.model.id === n.model.id || M.actions.isChildOfParent(n.treeId, n.items, n.model.id, g.model.id) || M.actions.isParentOfChild(n.treeId, n.items, g.model.id, n.model.id))
|
|
337
337
|
return !1;
|
|
338
338
|
const S = m.y, _ = o.value.getBoundingClientRect().top, L = o.value.getBoundingClientRect().height, z = L / 3;
|
|
339
339
|
S > _ && S <= _ + z ? (s.value = !1, r.value = !0, i.value = !1) : S < _ + L && S >= _ + L - z ? (s.value = !1, r.value = !1, i.value = !0) : (s.value = !0, r.value = !1, i.value = !1);
|
|
340
|
-
},
|
|
340
|
+
}, h = () => {
|
|
341
341
|
s.value = !1, r.value = !1, i.value = !1;
|
|
342
342
|
}, b = R(() => n.model.title.startsWith("-")), D = R(() => {
|
|
343
343
|
if (n.model.title.startsWith("-")) {
|
|
344
|
-
|
|
345
|
-
return
|
|
344
|
+
let [m, ...g] = n.model.title.split(" ");
|
|
345
|
+
return g = g.join(" "), g;
|
|
346
346
|
}
|
|
347
347
|
return null;
|
|
348
348
|
});
|
|
349
|
-
return (m,
|
|
349
|
+
return (m, g) => {
|
|
350
350
|
const S = ws("d-tree-item", !0);
|
|
351
351
|
return b.value && !D.value ? (O(), j("li", Ps, Fs)) : b.value && D.value ? (O(), j("li", Ws, [
|
|
352
352
|
gt("div", Vs, Xt(tt(M).actions.renderTitle(n.treeId, D.value)), 1)
|
|
@@ -357,10 +357,10 @@ const Ms = (t) => (_s("data-v-f6a37dc2"), t = t(), Ss(), t), Ps = { key: 0 }, Rs
|
|
|
357
357
|
"transfer-data": { id: n.treeId, model: n.model },
|
|
358
358
|
draggable: u.value,
|
|
359
359
|
onDrop: Mt(p, ["stop"]),
|
|
360
|
-
onDragenter:
|
|
360
|
+
onDragenter: g[0] || (g[0] = Mt(() => {
|
|
361
361
|
}, ["prevent"])),
|
|
362
362
|
onDragover: Mt(v, ["prevent", "stop"]),
|
|
363
|
-
onDragleave: Mt(
|
|
363
|
+
onDragleave: Mt(h, ["prevent"])
|
|
364
364
|
}, {
|
|
365
365
|
default: it(() => {
|
|
366
366
|
var _, L;
|
|
@@ -439,7 +439,7 @@ const Ms = (t) => (_s("data-v-f6a37dc2"), t = t(), Ss(), t), Ps = { key: 0 }, Rs
|
|
|
439
439
|
}, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"]));
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
}, Ks = /* @__PURE__ */ Le(Gs, [["__scopeId", "data-v-
|
|
442
|
+
}, Ks = /* @__PURE__ */ Le(Gs, [["__scopeId", "data-v-6804865f"]]);
|
|
443
443
|
function Zs(t) {
|
|
444
444
|
return t = t || /* @__PURE__ */ new Map(), {
|
|
445
445
|
/**
|
|
@@ -1041,12 +1041,12 @@ const ir = 1001, cr = 999, lr = 998, Zi = {
|
|
|
1041
1041
|
const p = R(() => n.isMobile && !f.value), v = R(() => {
|
|
1042
1042
|
const { transitionDuration: _, transitionTimingFunction: L } = n;
|
|
1043
1043
|
return `background-color:${n.maskBg};transition-duration:${_}ms;transition-timing-function:${L};`;
|
|
1044
|
-
}),
|
|
1044
|
+
}), h = R(() => {
|
|
1045
1045
|
const { sidebarWidth: _, sidebarCollapsedWidth: L } = n, z = n.isMobile ? 0 : L, P = f.value ? z : _;
|
|
1046
1046
|
return n.sidebarVisible ? P : 0;
|
|
1047
|
-
}), b = R(() => n.isMobile ? 0 :
|
|
1047
|
+
}), b = R(() => n.isMobile ? 0 : h.value), D = R(() => l.value ? b.value : 0), m = R(
|
|
1048
1048
|
() => !n.isMobile && !l.value && n.headerVisible ? n.headerHeight : 0
|
|
1049
|
-
),
|
|
1049
|
+
), g = R(() => {
|
|
1050
1050
|
let _ = 0;
|
|
1051
1051
|
return n.fixedHeaderAndTab && (n.headerVisible && (_ += n.headerHeight), n.tabVisible && (_ += n.tabHeight)), _;
|
|
1052
1052
|
}), S = R(() => n.fixedFooter && n.footerVisible ? n.footerHeight : 0);
|
|
@@ -1083,7 +1083,7 @@ const ir = 1001, cr = 999, lr = 998, Zi = {
|
|
|
1083
1083
|
}, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : lt("", !0),
|
|
1084
1084
|
t.sidebarVisible ? (O(), rt(or, Te({ key: 2 }, c.value, {
|
|
1085
1085
|
"z-index": d.value,
|
|
1086
|
-
width:
|
|
1086
|
+
width: h.value,
|
|
1087
1087
|
"padding-top": m.value
|
|
1088
1088
|
}), {
|
|
1089
1089
|
default: it(() => [
|
|
@@ -1098,7 +1098,7 @@ const ir = 1001, cr = 999, lr = 998, Zi = {
|
|
|
1098
1098
|
onClick: u
|
|
1099
1099
|
}, null, 4)) : lt("", !0),
|
|
1100
1100
|
ce(sr, Te(c.value, {
|
|
1101
|
-
"padding-top":
|
|
1101
|
+
"padding-top": g.value,
|
|
1102
1102
|
"padding-bottom": S.value,
|
|
1103
1103
|
"padding-left": b.value,
|
|
1104
1104
|
"overflow-hidden": t.addMainOverflowHidden
|
|
@@ -1355,11 +1355,11 @@ const It = (t, e) => {
|
|
|
1355
1355
|
}, d = (p) => c && o ? c(o, p) : p, f = () => {
|
|
1356
1356
|
r !== St && l(d(s) || s);
|
|
1357
1357
|
}, u = function() {
|
|
1358
|
-
const v = ge(arguments),
|
|
1359
|
-
if (ie(
|
|
1360
|
-
const D = Lt(a) ? a() : a, m = ie(D) && D >= 0,
|
|
1358
|
+
const v = ge(arguments), h = Lt(i) ? i() : i;
|
|
1359
|
+
if (ie(h) && h >= 0) {
|
|
1360
|
+
const D = Lt(a) ? a() : a, m = ie(D) && D >= 0, g = h > 0 ? Je : Yo, S = h > 0 ? En : qo, L = d(v) || v, z = l.bind(0, L);
|
|
1361
1361
|
r();
|
|
1362
|
-
const P =
|
|
1362
|
+
const P = g(z, h);
|
|
1363
1363
|
r = () => S(P), m && !n && (n = Je(f, D)), o = s = L;
|
|
1364
1364
|
} else
|
|
1365
1365
|
l(v);
|
|
@@ -1582,7 +1582,7 @@ const xo = (t, e, n, o) => {
|
|
|
1582
1582
|
nativeScrollbarsOverlaid: !1,
|
|
1583
1583
|
body: null
|
|
1584
1584
|
}
|
|
1585
|
-
}, u = ct({}, Cr), p = ct.bind(0, {}, u), v = ct.bind(0, {}, f),
|
|
1585
|
+
}, u = ct({}, Cr), p = ct.bind(0, {}, u), v = ct.bind(0, {}, f), h = {
|
|
1586
1586
|
k: c,
|
|
1587
1587
|
I: d,
|
|
1588
1588
|
A: l,
|
|
@@ -1605,11 +1605,11 @@ const xo = (t, e, n, o) => {
|
|
|
1605
1605
|
if (bt(n, "style"), Ft(n), b("resize", D.bind(0, !1)), !l && (!d.x || !d.y)) {
|
|
1606
1606
|
let m;
|
|
1607
1607
|
b("resize", () => {
|
|
1608
|
-
const
|
|
1609
|
-
m = m ||
|
|
1608
|
+
const g = he()[no];
|
|
1609
|
+
m = m || g && g.R(), m && m(h, i, D.bind(0, !0));
|
|
1610
1610
|
});
|
|
1611
1611
|
}
|
|
1612
|
-
return
|
|
1612
|
+
return h;
|
|
1613
1613
|
}, _t = () => (xn || (xn = Zr()), xn), oo = (t, e) => Lt(e) ? e.apply(0, t) : e, Jr = (t, e, n, o) => {
|
|
1614
1614
|
const s = Zt(o) ? n : o;
|
|
1615
1615
|
return oo(t, s) || e.apply(0, t);
|
|
@@ -1631,18 +1631,18 @@ const xo = (t, e, n, o) => {
|
|
|
1631
1631
|
}, We = "tabindex", Ve = pe.bind(0, ""), $n = (t) => {
|
|
1632
1632
|
Dt(Kt(t), jn(t)), Ft(t);
|
|
1633
1633
|
}, ni = (t) => {
|
|
1634
|
-
const e = _t(), { q: n, A: o } = e, s = he()[no], r = s && s.T, { elements: i } = n(), { host: a, padding: c, viewport: l, content: d } = i, f = Ie(t), u = f ? {} : t, { elements: p } = u, { host: v, padding:
|
|
1634
|
+
const e = _t(), { q: n, A: o } = e, s = he()[no], r = s && s.T, { elements: i } = n(), { host: a, padding: c, viewport: l, content: d } = i, f = Ie(t), u = f ? {} : t, { elements: p } = u, { host: v, padding: h, viewport: b, content: D } = p || {}, m = f ? t : u.target, g = Ze(m, "textarea"), S = m.ownerDocument, _ = S.documentElement, L = m === S.body, z = S.defaultView, P = Jr.bind(0, [m]), W = ls.bind(0, [m]), st = oo.bind(0, [m]), Y = P.bind(0, Ve, l), F = W.bind(0, Ve, d), w = Y(b), y = w === m, x = y && L, k = !y && F(D), H = !y && Ie(w) && w === k, B = H && !!st(d), T = B ? Y() : w, E = B ? k : F(), U = x ? _ : H ? T : w, G = g ? P(Ve, a, v) : m, $ = x ? U : G, C = H ? E : k, I = S.activeElement, V = !y && z.top === z && I === m, N = {
|
|
1635
1635
|
Z: m,
|
|
1636
1636
|
J: $,
|
|
1637
1637
|
K: U,
|
|
1638
|
-
tt: !y && W(Ve, c,
|
|
1638
|
+
tt: !y && W(Ve, c, h),
|
|
1639
1639
|
nt: C,
|
|
1640
1640
|
ot: !y && !o && r && r(e),
|
|
1641
1641
|
st: x ? _ : U,
|
|
1642
1642
|
et: x ? S : U,
|
|
1643
1643
|
ct: z,
|
|
1644
1644
|
rt: S,
|
|
1645
|
-
lt:
|
|
1645
|
+
lt: g,
|
|
1646
1646
|
it: L,
|
|
1647
1647
|
ut: f,
|
|
1648
1648
|
ft: y,
|
|
@@ -1654,8 +1654,8 @@ const xo = (t, e, n, o) => {
|
|
|
1654
1654
|
return J(ut, yt && Ie(yt) && !Kt(yt) ? yt : !1);
|
|
1655
1655
|
}, []), Q = (ut) => ut ? qn(K, ut) > -1 : null, { Z: nt, J: at, tt: Z, K: X, nt: ft, ot: Tt } = N, $t = [() => {
|
|
1656
1656
|
bt(at, Ot), bt(at, _n), bt(nt, _n), L && (bt(_, Ot), bt(_, _n));
|
|
1657
|
-
}], Jt =
|
|
1658
|
-
let ae =
|
|
1657
|
+
}], Jt = g && Q(at);
|
|
1658
|
+
let ae = g ? nt : jn([ft, X, Z, at, nt].find((ut) => Q(ut) === !1));
|
|
1659
1659
|
const ve = x ? nt : ft || X;
|
|
1660
1660
|
return [N, () => {
|
|
1661
1661
|
mt(at, Ot, y ? "viewport" : "host"), mt(Z, Bn, ""), mt(ft, vo, ""), y || mt(X, te, "");
|
|
@@ -1693,11 +1693,11 @@ const xo = (t, e, n, o) => {
|
|
|
1693
1693
|
}, fo.bind(0, s, "padding", ""));
|
|
1694
1694
|
return (d, f, u) => {
|
|
1695
1695
|
let [p, v] = l(u);
|
|
1696
|
-
const { A:
|
|
1697
|
-
(m || v || !b &&
|
|
1696
|
+
const { A: h, Y: b } = _t(), { yt: D } = n(), { wt: m, bt: g, St: S } = d, [_, L] = f("paddingAbsolute");
|
|
1697
|
+
(m || v || !b && g) && ([p, v] = c(u));
|
|
1698
1698
|
const P = !a && (L || S || v);
|
|
1699
1699
|
if (P) {
|
|
1700
|
-
const W = !_ || !r && !
|
|
1700
|
+
const W = !_ || !r && !h, st = p.r + p.l, Y = p.t + p.b, F = {
|
|
1701
1701
|
marginRight: W && !D ? -st : 0,
|
|
1702
1702
|
marginBottom: W ? -Y : 0,
|
|
1703
1703
|
marginLeft: W && D ? -st : 0,
|
|
@@ -1743,11 +1743,11 @@ const xo = (t, e, n, o) => {
|
|
|
1743
1743
|
h: o.h > n ? o.h : 0
|
|
1744
1744
|
};
|
|
1745
1745
|
}, qe = (t) => t.indexOf(us) === 0, li = (t, e) => {
|
|
1746
|
-
const [n, o] = e, { J: s, tt: r, K: i, ot: a, ft: c, ht: l, it: d, ct: f } = t, { k: u, Y: p, A: v, I:
|
|
1746
|
+
const [n, o] = e, { J: s, tt: r, K: i, ot: a, ft: c, ht: l, it: d, ct: f } = t, { k: u, Y: p, A: v, I: h } = _t(), b = he()[no], D = !c && !v && (h.x || h.y), m = d && c, [g, S] = It(Ue, tn.bind(0, i)), [_, L] = It(Ue, Qe.bind(0, i)), [z, P] = It(Ue), [W, st] = It(Ue), [Y] = It(ii), F = (B, T) => {
|
|
1747
1747
|
if (ht(i, {
|
|
1748
1748
|
height: ""
|
|
1749
1749
|
}), T) {
|
|
1750
|
-
const { $t: E, tt: A } = n(), { Ct: U, M: G } = B, $ = tn(s), C = Xe(s), I = ht(i, "boxSizing") === "content-box", V = E || I ? A.b + A.t : 0, N = !(
|
|
1750
|
+
const { $t: E, tt: A } = n(), { Ct: U, M: G } = B, $ = tn(s), C = Xe(s), I = ht(i, "boxSizing") === "content-box", V = E || I ? A.b + A.t : 0, N = !(h.x && I);
|
|
1751
1751
|
ht(i, {
|
|
1752
1752
|
height: C.h + $.h + (U.x && N ? G.x : 0) - V
|
|
1753
1753
|
});
|
|
@@ -1756,7 +1756,7 @@ const xo = (t, e, n, o) => {
|
|
|
1756
1756
|
const E = !v && !B ? ri : 0, A = (Q, nt, at) => {
|
|
1757
1757
|
const Z = ht(i, Q), ft = (T ? T[Q] : Z) === "scroll";
|
|
1758
1758
|
return [Z, ft, ft && !v ? nt ? E : at : 0, nt && !!E];
|
|
1759
|
-
}, [U, G, $, C] = A("overflowX",
|
|
1759
|
+
}, [U, G, $, C] = A("overflowX", h.x, u.x), [I, V, N, K] = A("overflowY", h.y, u.y);
|
|
1760
1760
|
return {
|
|
1761
1761
|
Ot: {
|
|
1762
1762
|
x: U,
|
|
@@ -1786,11 +1786,11 @@ const xo = (t, e, n, o) => {
|
|
|
1786
1786
|
A.width = `calc(100% + ${V + -1 * nt}px)`, A[K] = -V + nt, A.marginBottom = -I + at, E && (A[Q] = Z + (C ? V : 0), A.paddingBottom = X + ($ ? I : 0));
|
|
1787
1787
|
}, [k, H] = b ? b.L(D, p, i, a, n, w, x) : [() => D, () => [St]];
|
|
1788
1788
|
return (B, T, E) => {
|
|
1789
|
-
const { wt: A, Tt: U, bt: G, xt: $, vt: C, St: I } = B, { gt: V, yt: N } = n(), [K, Q] = T("showNativeOverlaidScrollbars"), [nt, at] = T("overflow"), Z = K &&
|
|
1789
|
+
const { wt: A, Tt: U, bt: G, xt: $, vt: C, St: I } = B, { gt: V, yt: N } = n(), [K, Q] = T("showNativeOverlaidScrollbars"), [nt, at] = T("overflow"), Z = K && h.x && h.y, X = !c && !p && (A || G || U || Q || C), ft = qe(nt.x), Tt = qe(nt.y), $t = ft || Tt;
|
|
1790
1790
|
let Jt = S(E), ae = L(E), ve = P(E), ye = st(E), ut;
|
|
1791
1791
|
if (Q && v && l(rs, Or, !Z), X && (ut = w(Z), F(ut, V)), A || $ || G || I || Q) {
|
|
1792
1792
|
$t && l(xe, Se, !1);
|
|
1793
|
-
const [Vt, Qt] = H(Z, N, ut), [Ht, Pe] = Jt =
|
|
1793
|
+
const [Vt, Qt] = H(Z, N, ut), [Ht, Pe] = Jt = g(E), [Nt, ke] = ae = _(E), de = Xe(i);
|
|
1794
1794
|
let gn = Nt, hn = de;
|
|
1795
1795
|
Vt(), (ke || Pe || Q) && Qt && !Z && k(Qt, Nt, Ht, N) && (hn = Xe(i), gn = Qe(i));
|
|
1796
1796
|
const ys = {
|
|
@@ -1856,11 +1856,11 @@ const xo = (t, e, n, o) => {
|
|
|
1856
1856
|
Tt: !1,
|
|
1857
1857
|
bt: !1,
|
|
1858
1858
|
Pt: !1
|
|
1859
|
-
}, u), {}, p),
|
|
1859
|
+
}, u), {}, p), h = l || !c, b = h && Et(o), D = h && jt(o);
|
|
1860
1860
|
s("", en, !0);
|
|
1861
1861
|
let m = v;
|
|
1862
|
-
return q(d, (
|
|
1863
|
-
m = ko(m,
|
|
1862
|
+
return q(d, (g) => {
|
|
1863
|
+
m = ko(m, g(m, f, !!p) || {}, p);
|
|
1864
1864
|
}), Et(o, b), jt(o, D), s("", en), r || (Et(n, 0), jt(n, 0)), m;
|
|
1865
1865
|
};
|
|
1866
1866
|
}, di = (t, e, n) => {
|
|
@@ -1879,8 +1879,8 @@ const xo = (t, e, n, o) => {
|
|
|
1879
1879
|
q(c, (l) => q(l[0], (d) => {
|
|
1880
1880
|
const f = l[1], u = o.get(d) || [];
|
|
1881
1881
|
if (t.contains(d)) {
|
|
1882
|
-
const v = dt(d, f, (
|
|
1883
|
-
s ? (v(), o.delete(d)) : e(
|
|
1882
|
+
const v = dt(d, f, (h) => {
|
|
1883
|
+
s ? (v(), o.delete(d)) : e(h);
|
|
1884
1884
|
});
|
|
1885
1885
|
o.set(d, J(u, v));
|
|
1886
1886
|
} else
|
|
@@ -1896,11 +1896,11 @@ const xo = (t, e, n, o) => {
|
|
|
1896
1896
|
}, {
|
|
1897
1897
|
g: 33,
|
|
1898
1898
|
v: 99
|
|
1899
|
-
}), [u, p] = di(t, f, a), v = r || [],
|
|
1899
|
+
}), [u, p] = di(t, f, a), v = r || [], h = i || [], b = v.concat(h), D = (g, S) => {
|
|
1900
1900
|
const _ = l || St, L = d || St, z = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
|
|
1901
1901
|
let W = !1, st = !1;
|
|
1902
|
-
if (q(
|
|
1903
|
-
const { attributeName: F, target: w, type: y, oldValue: x, addedNodes: k, removedNodes: H } = Y, B = y === "attributes", T = y === "childList", E = t === w, A = B && le(F) ? mt(w, F) : 0, U = A !== 0 && x !== A, G = qn(
|
|
1902
|
+
if (q(g, (Y) => {
|
|
1903
|
+
const { attributeName: F, target: w, type: y, oldValue: x, addedNodes: k, removedNodes: H } = Y, B = y === "attributes", T = y === "childList", E = t === w, A = B && le(F) ? mt(w, F) : 0, U = A !== 0 && x !== A, G = qn(h, F) > -1 && U;
|
|
1904
1904
|
if (e && (T || !E)) {
|
|
1905
1905
|
const $ = !B, C = B && U, I = C && c && Ze(w, c), N = (I ? !_(w, F, x, A) : $ || C) && !L(Y, !!I, t, o);
|
|
1906
1906
|
q(k, (K) => z.add(K)), q(H, (K) => z.add(K)), st = st || N;
|
|
@@ -1912,7 +1912,7 @@ const xo = (t, e, n, o) => {
|
|
|
1912
1912
|
const Y = [ge(P), W];
|
|
1913
1913
|
return !S && n.apply(0, Y), Y;
|
|
1914
1914
|
}
|
|
1915
|
-
}, m = new br((
|
|
1915
|
+
}, m = new br((g) => D(g));
|
|
1916
1916
|
return m.observe(t, {
|
|
1917
1917
|
attributes: !0,
|
|
1918
1918
|
attributeOldValue: !0,
|
|
@@ -1925,31 +1925,31 @@ const xo = (t, e, n, o) => {
|
|
|
1925
1925
|
}, () => {
|
|
1926
1926
|
if (s) {
|
|
1927
1927
|
f.m();
|
|
1928
|
-
const
|
|
1929
|
-
return !Yn(
|
|
1928
|
+
const g = m.takeRecords();
|
|
1929
|
+
return !Yn(g) && D(g, !0);
|
|
1930
1930
|
}
|
|
1931
1931
|
}];
|
|
1932
1932
|
}, Ye = 3333333, fs = (t, e, n) => {
|
|
1933
1933
|
const { Yt: o = !1, Pt: s = !1 } = n || {}, r = he()[Yr], { V: i } = _t(), c = Uo(`<div class="${to}"><div class="${Lr}"></div></div>`)[0], l = c.firstChild, d = Ee.bind(0, t), [f] = It({
|
|
1934
1934
|
o: void 0,
|
|
1935
1935
|
_: !0,
|
|
1936
|
-
u: (
|
|
1937
|
-
}), u = (
|
|
1938
|
-
const b = kt(
|
|
1939
|
-
let m = !1,
|
|
1936
|
+
u: (h, b) => !(!h || !_e(h) && _e(b))
|
|
1937
|
+
}), u = (h) => {
|
|
1938
|
+
const b = kt(h) && h.length > 0 && Oe(h[0]), D = !b && Un(h[0]);
|
|
1939
|
+
let m = !1, g = !1, S = !0;
|
|
1940
1940
|
if (b) {
|
|
1941
|
-
const [_, , L] = f(
|
|
1942
|
-
m = !L && !!P || !z,
|
|
1941
|
+
const [_, , L] = f(h.pop().contentRect), z = _e(_), P = _e(L);
|
|
1942
|
+
m = !L && !!P || !z, g = !P && z, S = !m;
|
|
1943
1943
|
} else
|
|
1944
|
-
D ? [, S] =
|
|
1944
|
+
D ? [, S] = h : g = h === !0;
|
|
1945
1945
|
if (o && S) {
|
|
1946
|
-
const _ = D ?
|
|
1946
|
+
const _ = D ? h[0] : Ee(c);
|
|
1947
1947
|
Et(c, _ ? i.n ? -Ye : i.i ? 0 : Ye : Ye), jt(c, Ye);
|
|
1948
1948
|
}
|
|
1949
1949
|
m || e({
|
|
1950
1950
|
wt: !D,
|
|
1951
|
-
jt: D ?
|
|
1952
|
-
Pt: !!
|
|
1951
|
+
jt: D ? h : void 0,
|
|
1952
|
+
Pt: !!g
|
|
1953
1953
|
});
|
|
1954
1954
|
}, p = [];
|
|
1955
1955
|
let v = s ? u : !1;
|
|
@@ -1957,21 +1957,21 @@ const xo = (t, e, n, o) => {
|
|
|
1957
1957
|
Wt(p), Ft(c);
|
|
1958
1958
|
}, () => {
|
|
1959
1959
|
if (we) {
|
|
1960
|
-
const
|
|
1961
|
-
|
|
1962
|
-
|
|
1960
|
+
const h = new we(u);
|
|
1961
|
+
h.observe(l), J(p, () => {
|
|
1962
|
+
h.disconnect();
|
|
1963
1963
|
});
|
|
1964
1964
|
} else if (r) {
|
|
1965
|
-
const [
|
|
1966
|
-
v =
|
|
1965
|
+
const [h, b] = r.O(l, u, s);
|
|
1966
|
+
v = h, J(p, b);
|
|
1967
1967
|
}
|
|
1968
1968
|
if (o) {
|
|
1969
|
-
const [
|
|
1969
|
+
const [h] = It({
|
|
1970
1970
|
o: void 0
|
|
1971
1971
|
}, d);
|
|
1972
1972
|
J(p, dt(c, "scroll", (b) => {
|
|
1973
|
-
const D =
|
|
1974
|
-
|
|
1973
|
+
const D = h(), [m, g, S] = D;
|
|
1974
|
+
g && (Kn(l, "ltr rtl"), m ? Gt(l, "rtl") : Gt(l, "ltr"), u([!!m, g, S])), Zo(b);
|
|
1975
1975
|
}));
|
|
1976
1976
|
}
|
|
1977
1977
|
v && (Gt(c, Br), J(p, dt(c, "animationstart", v, {
|
|
@@ -2029,7 +2029,7 @@ const xo = (t, e, n, o) => {
|
|
|
2029
2029
|
w: E.w + T.w + A.w,
|
|
2030
2030
|
h: E.h + T.h + A.h
|
|
2031
2031
|
};
|
|
2032
|
-
}),
|
|
2032
|
+
}), h = l ? Io : kn.concat(Io), b = Zn(n, {
|
|
2033
2033
|
g: () => o,
|
|
2034
2034
|
v: () => s,
|
|
2035
2035
|
p(x, k) {
|
|
@@ -2050,7 +2050,7 @@ const xo = (t, e, n, o) => {
|
|
|
2050
2050
|
return e({
|
|
2051
2051
|
gt: H
|
|
2052
2052
|
}), !k && n(T), T;
|
|
2053
|
-
},
|
|
2053
|
+
}, g = ({ wt: x, jt: k, Pt: H }) => {
|
|
2054
2054
|
const B = !x || H ? n : b;
|
|
2055
2055
|
let T = !1;
|
|
2056
2056
|
if (k) {
|
|
@@ -2074,7 +2074,7 @@ const xo = (t, e, n, o) => {
|
|
|
2074
2074
|
Tt: k
|
|
2075
2075
|
};
|
|
2076
2076
|
return k ? !H && b(B) : d || D(x), B;
|
|
2077
|
-
}, [L, z, P] = c || !p ? fi(i, m) : [St, St, St], [W, st] = d ? [St, St] : fs(i,
|
|
2077
|
+
}, [L, z, P] = c || !p ? fi(i, m) : [St, St, St], [W, st] = d ? [St, St] : fs(i, g, {
|
|
2078
2078
|
Pt: !0,
|
|
2079
2079
|
Yt: !0
|
|
2080
2080
|
}), [Y, F] = To(i, !1, _, {
|
|
@@ -2084,7 +2084,7 @@ const xo = (t, e, n, o) => {
|
|
|
2084
2084
|
let w;
|
|
2085
2085
|
const y = d && we && new we((x) => {
|
|
2086
2086
|
const k = x[x.length - 1].contentRect, H = _e(k), T = !_e(w) && H;
|
|
2087
|
-
|
|
2087
|
+
g({
|
|
2088
2088
|
wt: !0,
|
|
2089
2089
|
Pt: T
|
|
2090
2090
|
}), w = k;
|
|
@@ -2099,7 +2099,7 @@ const xo = (t, e, n, o) => {
|
|
|
2099
2099
|
}, (x) => {
|
|
2100
2100
|
const [k] = x("update.ignoreMutation"), [H, B] = x("update.attributes"), [T, E] = x("update.elementEvents"), [A, U] = x("update.debounce"), G = E || B, $ = (C) => Lt(k) && k(C);
|
|
2101
2101
|
if (G && (r && (r[1](), r[0]()), r = To(c || a, !0, S, {
|
|
2102
|
-
Mt:
|
|
2102
|
+
Mt: h.concat(H || []),
|
|
2103
2103
|
Rt: T,
|
|
2104
2104
|
kt: Co,
|
|
2105
2105
|
Vt: (C, I) => {
|
|
@@ -2146,16 +2146,16 @@ const xo = (t, e, n, o) => {
|
|
|
2146
2146
|
gt: !1,
|
|
2147
2147
|
yt: Ee(t.J)
|
|
2148
2148
|
}), hi = (t, e) => {
|
|
2149
|
-
const n = zn(e, {}), [o, s, r] = Qn(), [i, a, c] = ni(t), l = ds(gi(i)), [d, f] = l, u = ai(i, l), p = (
|
|
2150
|
-
const z = xt(
|
|
2151
|
-
return z && r("u", [
|
|
2152
|
-
}, [v,
|
|
2153
|
-
return m.Nt = (
|
|
2154
|
-
const { Z:
|
|
2155
|
-
|
|
2156
|
-
}, m.Ft = i, [(
|
|
2157
|
-
const _ = zn(e,
|
|
2158
|
-
return D(_), p(u(_, b(), S),
|
|
2149
|
+
const n = zn(e, {}), [o, s, r] = Qn(), [i, a, c] = ni(t), l = ds(gi(i)), [d, f] = l, u = ai(i, l), p = (g, S, _) => {
|
|
2150
|
+
const z = xt(g).some((P) => !!g[P]) || !Xn(S) || _;
|
|
2151
|
+
return z && r("u", [g, S, _]), z;
|
|
2152
|
+
}, [v, h, b, D] = mi(i, f, (g) => p(u(n, g), {}, !1)), m = d.bind(0);
|
|
2153
|
+
return m.Nt = (g) => o("u", g), m.qt = () => {
|
|
2154
|
+
const { Z: g, K: S, rt: _, it: L } = i, z = L ? _.documentElement : g, P = Et(z), W = jt(z);
|
|
2155
|
+
h(), a(), Et(S, P), jt(S, W);
|
|
2156
|
+
}, m.Ft = i, [(g, S) => {
|
|
2157
|
+
const _ = zn(e, g, S);
|
|
2158
|
+
return D(_), p(u(_, b(), S), g, !!S);
|
|
2159
2159
|
}, m, () => {
|
|
2160
2160
|
s(), v(), c();
|
|
2161
2161
|
}];
|
|
@@ -2177,24 +2177,24 @@ const xo = (t, e, n, o) => {
|
|
|
2177
2177
|
}), {
|
|
2178
2178
|
$: !0
|
|
2179
2179
|
}), _i = (t, e, n, o, s, r, i) => {
|
|
2180
|
-
const { V: a } = _t(), { Gt: c, Xt: l, Ut: d } = o, f = `scroll${i ? "Left" : "Top"}`, u = `client${i ? "X" : "Y"}`, p = i ? "width" : "height", v = i ? "left" : "top",
|
|
2181
|
-
const { Et: _ } = r(), L = Be(l)[
|
|
2180
|
+
const { V: a } = _t(), { Gt: c, Xt: l, Ut: d } = o, f = `scroll${i ? "Left" : "Top"}`, u = `client${i ? "X" : "Y"}`, p = i ? "width" : "height", v = i ? "left" : "top", h = i ? "w" : "h", b = i ? "x" : "y", D = (m, g) => (S) => {
|
|
2181
|
+
const { Et: _ } = r(), L = Be(l)[h] - Be(c)[h], P = g * S / L * _[b], st = Ee(d) && i ? a.n || a.i ? 1 : -1 : 1;
|
|
2182
2182
|
s[f] = m + P * st;
|
|
2183
2183
|
};
|
|
2184
2184
|
return dt(l, "pointerdown", (m) => {
|
|
2185
|
-
const
|
|
2186
|
-
if (fe(e, Ot, ho, !0), yi(m, t,
|
|
2187
|
-
const _ = !
|
|
2185
|
+
const g = be(m.target, `.${eo}`) === c, S = g ? c : l;
|
|
2186
|
+
if (fe(e, Ot, ho, !0), yi(m, t, g)) {
|
|
2187
|
+
const _ = !g && m.shiftKey, L = () => Pt(c), z = () => Pt(l), P = (T, E) => (T || L())[v] - (E || z())[v], W = D(s[f] || 0, 1 / vi(s)[b]), st = m[u], Y = L(), F = z(), w = Y[p], y = P(Y, F) + w / 2, x = st - F[v], k = g ? 0 : x - y, H = (T) => {
|
|
2188
2188
|
Wt(B), S.releasePointerCapture(T.pointerId);
|
|
2189
2189
|
}, B = [fe.bind(0, e, Ot, ho), dt(n, Bo, H), dt(n, "selectstart", (T) => Jo(T), {
|
|
2190
2190
|
S: !1
|
|
2191
2191
|
}), dt(l, Bo, H), dt(l, "pointermove", (T) => {
|
|
2192
2192
|
const E = T[u] - st;
|
|
2193
|
-
(
|
|
2193
|
+
(g || _) && W(k + E);
|
|
2194
2194
|
})];
|
|
2195
2195
|
if (_)
|
|
2196
2196
|
W(k);
|
|
2197
|
-
else if (!
|
|
2197
|
+
else if (!g) {
|
|
2198
2198
|
const T = he()[Xr];
|
|
2199
2199
|
T && J(B, T.O(W, P, k, w, x));
|
|
2200
2200
|
}
|
|
@@ -2218,9 +2218,9 @@ const xo = (t, e, n, o) => {
|
|
|
2218
2218
|
}), dt(l, "pointerleave pointercancel", () => {
|
|
2219
2219
|
o(bo);
|
|
2220
2220
|
}), dt(l, "wheel", (v) => {
|
|
2221
|
-
const { deltaX:
|
|
2221
|
+
const { deltaX: h, deltaY: b, deltaMode: D } = v;
|
|
2222
2222
|
u && p && D === 0 && Kt(l) === r && i.scrollBy({
|
|
2223
|
-
left:
|
|
2223
|
+
left: h,
|
|
2224
2224
|
top: b,
|
|
2225
2225
|
behavior: "smooth"
|
|
2226
2226
|
}), p = !1, o(So, !0), d(() => {
|
|
@@ -2238,8 +2238,8 @@ const xo = (t, e, n, o) => {
|
|
|
2238
2238
|
const s = n ? "width" : "height", r = Pt(t)[s], i = Pt(e)[s];
|
|
2239
2239
|
return Lo(0, Nn(1, r / i));
|
|
2240
2240
|
}, ki = (t, e, n, o, s, r) => {
|
|
2241
|
-
const { V: i } = _t(), a = r ? "x" : "y", c = r ? "Left" : "Top", { Et: l } = o, d = Di(l[a]), f = $i(n[`scroll${c}`]), u = r && s, p = i.i ? f : d - f,
|
|
2242
|
-
return 1 / b * (1 - b) *
|
|
2241
|
+
const { V: i } = _t(), a = r ? "x" : "y", c = r ? "Left" : "Top", { Et: l } = o, d = Di(l[a]), f = $i(n[`scroll${c}`]), u = r && s, p = i.i ? f : d - f, h = Nn(1, (u ? p : f) / d), b = ps(t, e, r);
|
|
2242
|
+
return 1 / b * (1 - b) * h;
|
|
2243
2243
|
}, Ti = (t) => `${Math.max(0, t - 0.5)}px`, zo = (t, e, n, o) => t.animate({
|
|
2244
2244
|
transform: [$e("0px", o), $e(Ti(n), o)]
|
|
2245
2245
|
}, {
|
|
@@ -2249,7 +2249,7 @@ const xo = (t, e, n, o) => {
|
|
|
2249
2249
|
source: t,
|
|
2250
2250
|
axis: e
|
|
2251
2251
|
}) : null, Ci = (t, e, n) => {
|
|
2252
|
-
const { q: o, H: s } = _t(), { scrollbars: r } = o(), { slot: i } = r, { rt: a, Z: c, J: l, K: d, ut: f, st: u, it: p, ft: v } = e, { scrollbars:
|
|
2252
|
+
const { q: o, H: s } = _t(), { scrollbars: r } = o(), { slot: i } = r, { rt: a, Z: c, J: l, K: d, ut: f, st: u, it: p, ft: v } = e, { scrollbars: h } = f ? {} : t, { slot: b } = h || {}, D = /* @__PURE__ */ new Map(), m = Ho(u, "x"), g = Ho(u, "y"), S = ls([c, l, d], () => v && p ? c : l, i, b), _ = ($) => v && !p && Kt($) === d, L = () => {
|
|
2253
2253
|
D.forEach(($) => {
|
|
2254
2254
|
($ || []).forEach((C) => {
|
|
2255
2255
|
C.cancel();
|
|
@@ -2273,7 +2273,7 @@ const xo = (t, e, n, o) => {
|
|
|
2273
2273
|
}];
|
|
2274
2274
|
});
|
|
2275
2275
|
}, st = ($, C, I) => {
|
|
2276
|
-
!
|
|
2276
|
+
!g && !g && P($, (V) => {
|
|
2277
2277
|
const { Gt: N, Xt: K, Ut: Q } = V, nt = ki(N, K, u, C, Ee(Q), I);
|
|
2278
2278
|
return [N, {
|
|
2279
2279
|
transform: nt === nt ? $e(`${(100 * nt).toFixed(3)}%`, I) : ""
|
|
@@ -2292,10 +2292,10 @@ const xo = (t, e, n, o) => {
|
|
|
2292
2292
|
}, H = ($) => {
|
|
2293
2293
|
st(w, $, !0), st(y, $);
|
|
2294
2294
|
}, B = () => {
|
|
2295
|
-
!
|
|
2295
|
+
!g && !g && (v && P(w, Y), v && P(y, Y));
|
|
2296
2296
|
}, T = ({ Et: $ }) => {
|
|
2297
2297
|
L(), y.concat(w).forEach(({ Ut: C }) => {
|
|
2298
|
-
_(C) && D.set(C, [zo(C, m, $.x, !0), zo(C,
|
|
2298
|
+
_(C) && D.set(C, [zo(C, m, $.x, !0), zo(C, g, $.y)]);
|
|
2299
2299
|
});
|
|
2300
2300
|
}, E = ($) => {
|
|
2301
2301
|
const C = $ ? Mr : Pr, I = $ ? w : y, V = Yn(I) ? yo : "", N = pe(`${wt} ${C} ${V}`), K = pe(is), Q = pe(eo), nt = {
|
|
@@ -2305,7 +2305,7 @@ const xo = (t, e, n, o) => {
|
|
|
2305
2305
|
};
|
|
2306
2306
|
return s || Gt(N, Hr), Dt(N, K), Dt(K, Q), J(I, nt), J(F, [() => {
|
|
2307
2307
|
L(), D.clear();
|
|
2308
|
-
}, Ft.bind(0, N), n(nt, x, a, l, u, $ ? m :
|
|
2308
|
+
}, Ft.bind(0, N), n(nt, x, a, l, u, $ ? m : g, $)]), nt;
|
|
2309
2309
|
}, A = E.bind(0, !0), U = E.bind(0, !1), G = () => {
|
|
2310
2310
|
Dt(S, w[0].Ut), Dt(S, y[0].Ut), Je(() => {
|
|
2311
2311
|
x(yo);
|
|
@@ -2324,7 +2324,7 @@ const xo = (t, e, n, o) => {
|
|
|
2324
2324
|
en: P.bind(0, w)
|
|
2325
2325
|
},
|
|
2326
2326
|
cn: {
|
|
2327
|
-
B:
|
|
2327
|
+
B: g,
|
|
2328
2328
|
nn: y,
|
|
2329
2329
|
sn: U,
|
|
2330
2330
|
en: P.bind(0, y)
|
|
@@ -2332,7 +2332,7 @@ const xo = (t, e, n, o) => {
|
|
|
2332
2332
|
}, G, Wt.bind(0, F)];
|
|
2333
2333
|
}, Ii = (t, e, n, o) => {
|
|
2334
2334
|
let s, r, i, a, c, l = 0;
|
|
2335
|
-
const d = ds({}), [f] = d, [u, p] = ue(), [v,
|
|
2335
|
+
const d = ds({}), [f] = d, [u, p] = ue(), [v, h] = ue(), [b, D] = ue(100), [m, g] = ue(100), [S, _] = ue(100), [L, z] = ue(() => l), [P, W, st] = Ci(t, n.Ft, xi(e, n)), { J: Y, et: F, it: w } = n.Ft, { Qt: y, Wt: x, Zt: k, Jt: H, Kt: B } = P, T = ($) => {
|
|
2336
2336
|
y(Ln, $, !0), y(Ln, $, !1);
|
|
2337
2337
|
}, E = ($, C) => {
|
|
2338
2338
|
if (z(), $)
|
|
@@ -2343,7 +2343,7 @@ const xo = (t, e, n, o) => {
|
|
|
2343
2343
|
}
|
|
2344
2344
|
}, A = () => {
|
|
2345
2345
|
a = r, a && E(!0);
|
|
2346
|
-
}, U = [D, z,
|
|
2346
|
+
}, U = [D, z, g, _, h, p, st, dt(Y, "pointerover", A, {
|
|
2347
2347
|
C: !0
|
|
2348
2348
|
}), dt(Y, "pointerenter", A), dt(Y, "pointerleave", () => {
|
|
2349
2349
|
a = !1, r && E(!1);
|
|
@@ -2382,8 +2382,8 @@ const xo = (t, e, n, o) => {
|
|
|
2382
2382
|
const u = (w) => {
|
|
2383
2383
|
const y = he()[qr], x = y && y.O;
|
|
2384
2384
|
return x ? x(w, !0) : w;
|
|
2385
|
-
}, p = ct({}, o(), u(e)), [v,
|
|
2386
|
-
ei(l), W(), st(), L(),
|
|
2385
|
+
}, p = ct({}, o(), u(e)), [v, h, b] = Qn(n), [D, m, g] = hi(t, p), [S, _, L] = Ii(t, p, m, (w) => b("scroll", [F, w])), z = (w, y) => D(w, !!y), P = z.bind(0, {}, !0), W = r(P), st = i(P), Y = (w) => {
|
|
2386
|
+
ei(l), W(), st(), L(), g(), f = !0, b("destroyed", [F, !!w]), h();
|
|
2387
2387
|
}, F = {
|
|
2388
2388
|
options(w, y) {
|
|
2389
2389
|
if (w) {
|
|
@@ -2394,7 +2394,7 @@ const xo = (t, e, n, o) => {
|
|
|
2394
2394
|
},
|
|
2395
2395
|
on: v,
|
|
2396
2396
|
off: (w, y) => {
|
|
2397
|
-
w && y &&
|
|
2397
|
+
w && y && h(w, y);
|
|
2398
2398
|
},
|
|
2399
2399
|
state() {
|
|
2400
2400
|
const { zt: w, Et: y, Ot: x, At: k, tt: H, $t: B, yt: T } = m();
|
|
@@ -2574,7 +2574,7 @@ const Oi = () => {
|
|
|
2574
2574
|
getElement: () => l.value
|
|
2575
2575
|
}), Po(() => {
|
|
2576
2576
|
u.value = !0;
|
|
2577
|
-
}), Ds((
|
|
2577
|
+
}), Ds((h) => {
|
|
2578
2578
|
const { value: b } = l, { value: D } = d;
|
|
2579
2579
|
u.value && b && D && (p({
|
|
2580
2580
|
target: b,
|
|
@@ -2582,27 +2582,27 @@ const Oi = () => {
|
|
|
2582
2582
|
viewport: D,
|
|
2583
2583
|
content: D
|
|
2584
2584
|
}
|
|
2585
|
-
}),
|
|
2585
|
+
}), h(() => {
|
|
2586
2586
|
var m;
|
|
2587
2587
|
return (m = v()) == null ? void 0 : m.destroy();
|
|
2588
2588
|
}));
|
|
2589
2589
|
}), re(
|
|
2590
2590
|
() => tt(a),
|
|
2591
|
-
(
|
|
2592
|
-
const b =
|
|
2591
|
+
(h) => {
|
|
2592
|
+
const b = h || {};
|
|
2593
2593
|
f.value = Object.keys(s).reduce((D, m) => {
|
|
2594
|
-
const
|
|
2594
|
+
const g = b[m];
|
|
2595
2595
|
return D[m] = [
|
|
2596
2596
|
(...S) => n(
|
|
2597
2597
|
s[m],
|
|
2598
2598
|
...S
|
|
2599
2599
|
),
|
|
2600
|
-
...(Array.isArray(
|
|
2600
|
+
...(Array.isArray(g) ? g : [g]).filter(Boolean)
|
|
2601
2601
|
], D;
|
|
2602
2602
|
}, {});
|
|
2603
2603
|
},
|
|
2604
2604
|
{ deep: !0, immediate: !0 }
|
|
2605
|
-
), (
|
|
2605
|
+
), (h, b) => (O(), rt(qt(tt(r)), {
|
|
2606
2606
|
"data-overlayscrollbars-initialize": "",
|
|
2607
2607
|
ref_key: "elementRef",
|
|
2608
2608
|
ref: l
|
|
@@ -2614,8 +2614,8 @@ const Oi = () => {
|
|
|
2614
2614
|
ref: d,
|
|
2615
2615
|
"data-overlayscrollbars-contents": ""
|
|
2616
2616
|
}, [
|
|
2617
|
-
et(
|
|
2618
|
-
], 512)) : et(
|
|
2617
|
+
et(h.$slots, "default")
|
|
2618
|
+
], 512)) : et(h.$slots, "default", { key: 1 })
|
|
2619
2619
|
]),
|
|
2620
2620
|
_: 3
|
|
2621
2621
|
}, 512));
|
|
@@ -2874,8 +2874,8 @@ const Ri = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
2874
2874
|
setup(t, { expose: e, emit: n }) {
|
|
2875
2875
|
const o = t, s = ot(null), r = ot(null), i = ot(!1), a = ot(0), c = ot(0), l = () => {
|
|
2876
2876
|
Rt.emit("menu-show-request"), i.value = !i.value, Ro(() => {
|
|
2877
|
-
const p = s.value.elementSize(), v = r.value.elementSize(),
|
|
2878
|
-
a.value =
|
|
2877
|
+
const p = s.value.elementSize(), v = r.value.elementSize(), h = window.innerWidth, b = window.innerHeight;
|
|
2878
|
+
a.value = h - (v.x + v.width) < p.width ? v.width - p.width : 0, c.value = b - (v.y + v.height) < p.height ? -p.height : v.height + 10;
|
|
2879
2879
|
});
|
|
2880
2880
|
}, d = (p) => {
|
|
2881
2881
|
n("click", p), p.model.children || u();
|
|
@@ -2892,7 +2892,7 @@ const Ri = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
2892
2892
|
show: l,
|
|
2893
2893
|
hide: u
|
|
2894
2894
|
}), (p, v) => {
|
|
2895
|
-
const
|
|
2895
|
+
const h = Fn("click-outside");
|
|
2896
2896
|
return O(), j("div", Ui, [
|
|
2897
2897
|
ce(Ge, {
|
|
2898
2898
|
ref_key: "buttonRef",
|
|
@@ -2915,7 +2915,7 @@ const Ri = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
2915
2915
|
"no-select": !0,
|
|
2916
2916
|
onSelect: d
|
|
2917
2917
|
}, null, 8, ["items", "style"]), [
|
|
2918
|
-
[
|
|
2918
|
+
[h, u]
|
|
2919
2919
|
])
|
|
2920
2920
|
]);
|
|
2921
2921
|
};
|
|
@@ -2933,8 +2933,8 @@ const Ri = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
2933
2933
|
display: r.value && o.items.length > 0 ? "block" : "none"
|
|
2934
2934
|
})), l = (u) => {
|
|
2935
2935
|
Rt.emit("menu-show-request"), r.value = !0, Ro(() => {
|
|
2936
|
-
const p = s.value.elementSize(), v = window.innerWidth,
|
|
2937
|
-
i.value = v - u.pageX < p.width ? u.pageX - p.width : u.pageX, a.value =
|
|
2936
|
+
const p = s.value.elementSize(), v = window.innerWidth, h = window.innerHeight;
|
|
2937
|
+
i.value = v - u.pageX < p.width ? u.pageX - p.width : u.pageX, a.value = h - u.pageY < p.height ? u.pageY - p.height : u.pageY;
|
|
2938
2938
|
});
|
|
2939
2939
|
}, d = () => {
|
|
2940
2940
|
r.value = !1;
|
|
@@ -2958,7 +2958,7 @@ const Ri = { style: { display: "flex", "flex-direction": "row", "justify-content
|
|
|
2958
2958
|
style: Bt(c.value),
|
|
2959
2959
|
"no-select": !0,
|
|
2960
2960
|
onSelect: f,
|
|
2961
|
-
onExpand: p[0] || (p[0] = (
|
|
2961
|
+
onExpand: p[0] || (p[0] = (h) => console.log("expand ctx event 1", h))
|
|
2962
2962
|
}, null, 8, ["items", "style"])), [
|
|
2963
2963
|
[v, d]
|
|
2964
2964
|
]);
|
package/dist/dophJs.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(W,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(W=typeof globalThis<"u"?globalThis:W||self,o(W.DophJs={},W.Vue))})(this,function(W,o){"use strict";const hc="",gc="",yc="",bc="",ee={__name:"DIcon",props:{component:[Object,String],size:[Number,String],color:String,className:String},setup(t){const e=t,n=o.useSlots(),s=o.computed(()=>{const{className:d}=e;return d===void 0?"icon":["icon",d].join(" ")}),r=o.computed(()=>{const{color:d}=e;return d===void 0?null:d}),c=o.computed(()=>{const d=e.size??null;if(d!==void 0)return typeof d=="number"||/^\d+$/.test(d)?`${d}px`:d}),i=o.computed(()=>o.h("i",{class:s.value,style:{color:r.value,fontSize:c.value}},e.component?o.h(e.component):n));return(d,l)=>(o.openBlock(),o.createBlock(o.unref(i)))}},Ct={state:{},getters:{getIcon(t){return Ct.state[t]},getIcons(){return Ct.state}},mutations:{addIcon(t,e){Ct.state.name=e},addIcons(t){for(const e in t)t.hasOwnProperty(e)&&(Ct.state[e]=t[e])}}},Qo={key:1},fe={__name:"DButton",props:{class:String,icon:String},emits:["click","contextmenu"],setup(t,{expose:e,emit:n}){const s=t,r=o.useSlots(),c=o.ref(null),i=o.computed(()=>s.icon?Ct.getters.getIcon(s.icon):null),d=f=>{n("click",f)},l=f=>{n("contextmenu",f)};return e({elementSize:()=>c.value.getBoundingClientRect()}),(f,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[i.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"el",ref:c,onClick:d,onContextmenu:l,class:o.normalizeClass(["button",s.class])},[o.renderSlot(f.$slots,"default")],34)),i.value?(o.openBlock(),o.createElementBlock("div",{key:1,ref_key:"el",ref:c,onClick:d,onContextmenu:l,class:o.normalizeClass(["button button-ext",s.class])},[s.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(ee),{key:0,component:i.value,color:"inherit"},null,8,["component"])):o.createCommentVNode("",!0),o.unref(r).default?(o.openBlock(),o.createElementBlock("div",Qo,[o.renderSlot(f.$slots,"default")])):o.createCommentVNode("",!0)],34)):o.createCommentVNode("",!0)],64))}},wc="",ue=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},ts={class:"d-input"},es={class:"label"},ns=["placeholder"],os=ue({__name:"DInput",props:{label:String,placeholder:String,size:String,font:String,modelValue:String},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,s=o.computed(()=>n.font==="small"?"d-input-small":n.font==="big"?"d-input-big":""),r=o.computed({get:()=>n.modelValue,set:c=>{e("update:modelValue",c)}});return(c,i)=>(o.openBlock(),o.createElementBlock("div",ts,[o.createElementVNode("div",es,o.toDisplayString(n.label),1),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=d=>r.value=d),type:"text",class:o.normalizeClass(s.value),placeholder:n.placeholder,style:o.normalizeStyle(n.size==="wide"?"width:100%":"")},null,14,ns),[[o.vModelText,r.value]])]))}},[["__scopeId","data-v-11679fd8"]]),Ln={__name:"DBadge",props:{class:String},setup(t){const e=t;return(n,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["badge",e.class])},[o.renderSlot(n.$slots,"default")],2))}},zt="0px",Hn={__name:"DCollapse",props:{duration:{type:Number,default:200},easingEnter:{type:String,default:"ease-in-out"},easingLeave:{type:String,default:"ease-in-out"},opacityClosed:{type:Number,default:0},opacityOpened:{type:Number,default:1}},setup(t){const e=t,n=l=>({height:l.style.height,width:l.style.width,position:l.style.position,visibility:l.style.visibility,overflow:l.style.overflow,paddingTop:l.style.paddingTop,paddingBottom:l.style.paddingBottom,borderTopWidth:l.style.borderTopWidth,borderBottomWidth:l.style.borderBottomWidth,marginTop:l.style.marginTop,marginBottom:l.style.marginBottom}),s=(l,a)=>{const{width:f}=getComputedStyle(l);l.style.width=f,l.style.position="absolute",l.style.visibility="hidden",l.style.height="";let{height:p}=getComputedStyle(l);return l.style.width=a.width,l.style.position=a.position,l.style.visibility=a.visibility,l.style.height=zt,l.style.overflow="hidden",a.height&&a.height!==zt?a.height:p},r=(l,a,f,p,u)=>{const m=l.animate(p,u);l.style.height=a.height,m.onfinish=()=>{l.style.overflow=a.overflow,f()}},c=(l,a)=>[{height:zt,opacity:e.opacityClosed,paddingTop:zt,paddingBottom:zt,borderTopWidth:zt,borderBottomWidth:zt,marginTop:zt,marginBottom:zt},{height:l,opacity:e.opacityOpened,paddingTop:a.paddingTop,paddingBottom:a.paddingBottom,borderTopWidth:a.borderTopWidth,borderBottomWidth:a.borderBottomWidth,marginTop:a.marginTop,marginBottom:a.marginBottom}],i=(l,a)=>{const f=l,p=n(f),u=s(f,p),m=c(u,p),b={duration:e.duration,easing:e.easingEnter};r(f,p,a,m,b)},d=(l,a)=>{const f=l,p=n(f),{height:u}=getComputedStyle(f);f.style.height=u,f.style.overflow="hidden";const m=c(u,p).reverse(),b={duration:e.duration,easing:e.easingLeave};r(f,p,a,m,b)};return(l,a)=>(o.openBlock(),o.createBlock(o.Transition,{css:!1,onEnter:i,onLeave:d},{default:o.withCtx(()=>[o.renderSlot(l.$slots,"default")]),_:3}))}},pe={data:void 0},Ue=t=>t.reduce((e,n)=>(e[n]=n)&&e,{}),ct=Ue(["drag","dragend","dragenter","dragleave","dragstart","dragover","drop"]),ss=Ue(["copy","move","link","none"]),rs=Ue(["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"]),cs={__name:"DDrag",props:{draggable:{type:Boolean,default:!0},transferData:{},dropEffect:{validator:t=>t in ss},effectAllowed:{validator:t=>t in rs},image:String,imageXOffset:{type:Number,default:0},imageYOffset:{type:Number,default:0},hideImageHtml:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(t){const e=t,n=o.useSlots(),s=o.ref(!1),r=o.computed(()=>s&&e.transferData),c=o.computed(()=>({position:"fixed",top:"-1000px"})),i=(d,l)=>{const a=l.dataTransfer;if([ct.dragenter,ct.dragover].includes(d)&&e.dropEffect&&(a.dropEffect=e.dropEffect),d===ct.dragstart){if(e.effectAllowed&&(a.effectAllowed=e.effectAllowed),e.image||n.image){let f;e.image?(f=new Image,f.src=e.image):n.image&&(f=n.image[0].elm),a.setDragImage&&a.setDragImage(f,e.imageXOffset,e.imageYOffset)}e.transferData!==void 0&&(pe.data=e.transferData,l.dataTransfer.setData("text","")),s.value=!0}};return(d,l)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.tag),{draggable:e.draggable,onDrag:l[0]||(l[0]=a=>i(o.unref(ct).drag,a)),onDragstart:l[1]||(l[1]=o.withModifiers(a=>i(o.unref(ct).dragstart,a),["stop"])),onDragenter:l[2]||(l[2]=a=>i(o.unref(ct).dragenter,a)),onDragleave:l[3]||(l[3]=a=>i(o.unref(ct).dragleave,a)),onDragend:l[4]||(l[4]=a=>i(o.unref(ct).dragend,a))},{default:o.withCtx(()=>[o.renderSlot(d.$slots,"default",{transferData:r.value}),t.hideImageHtml?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(c.value)},[o.renderSlot(d.$slots,"image",{transferData:r.value})],4)):o.renderSlot(d.$slots,"image",{key:1,transferData:r.value})]),_:3},40,["draggable"]))}},_c="",is=t=>(o.pushScopeId("data-v-f6a37dc2"),t=t(),o.popScopeId(),t),ls={key:0},as=[is(()=>o.createElementVNode("div",{class:"tree-divider"},null,-1))],ds={key:1},fs={class:"tree-divider-header"},us={class:"item-title"},ps={key:0,class:"tree-divider"},ms={key:1},hs={style:{display:"flex","flex-direction":"row","justify-content":"flex-end"}},gs={key:0,class:"sub-menu"},Mn=ue({__name:"DTreeItem",props:{model:Object,treeId:[String,Number],items:Array,search:String},emits:["nodedrop","nodedragover","nodedragleave","nodeclick"],setup(t,{emit:e}){const n=t,s=o.ref(null),r=o.ref(!1),c=o.ref(!1),i=o.ref(!1),d=o.computed(()=>n.model.children&&n.model.children.length),l=o.computed(()=>(O.actions.isTreeExpanded(n.treeId)&&(n.model.expanded=n.model.expanded===void 0?!0:n.model.expanded),n.model.expanded)),a=h=>{e("nodeclick",{event:h,model:n.model})},f=h=>{e("nodeclick",h)},p=o.computed(()=>(O.actions.isItemSelected(n.treeId,n.model.id)?"selected":"")+(r.value?"node-over ":"")+(c.value?"node-top ":"")+(i.value?"node-bottom ":"")),u=o.computed(()=>n.search?!1:n.model.draggable===!0),m=h=>{let y=pe.data;if(y.model.id===n.model.id||O.actions.isChildOfParent(n.treeId,n.items,n.model.id,y.model.id)||O.actions.isParentOfChild(n.treeId,n.items,y.model.id,n.model.id))return r.value=!1,c.value=!1,i.value=!1,!1;if(!O.state.trees[n.treeId].transfer&&y.id!==n.treeId)return!1;let x="";c.value?x="before":i.value?x="after":x="inside",O.actions.moveTreeNode(y.id,n.treeId,n.items,y.model.id,n.model.id,x),r.value=!1,c.value=!1,i.value=!1},b=h=>{let y=pe.data;if(y.model.id===n.model.id||O.actions.isChildOfParent(n.treeId,n.items,n.model.id,y.model.id)||O.actions.isParentOfChild(n.treeId,n.items,y.model.id,n.model.id))return!1;const x=h.y,k=s.value.getBoundingClientRect().top,z=s.value.getBoundingClientRect().height,V=z/3;x>k&&x<=k+V?(r.value=!1,c.value=!0,i.value=!1):x<k+z&&x>=k+z-V?(r.value=!1,c.value=!1,i.value=!0):(r.value=!0,c.value=!1,i.value=!1)},g=()=>{r.value=!1,c.value=!1,i.value=!1},S=o.computed(()=>n.model.title.startsWith("-")),C=o.computed(()=>{if(n.model.title.startsWith("-")){const h=n.model.title.split(" ",1);return h[1]!==void 0?h[1]:null}return null});return(h,y)=>{const x=o.resolveComponent("d-tree-item",!0);return S.value&&!C.value?(o.openBlock(),o.createElementBlock("li",ls,as)):S.value&&C.value?(o.openBlock(),o.createElementBlock("li",ds,[o.createElementVNode("div",fs,o.toDisplayString(o.unref(O).actions.renderTitle(n.treeId,C.value)),1)])):(o.openBlock(),o.createBlock(cs,{key:2,tag:"li",class:"tree-item","transfer-data":{id:n.treeId,model:n.model},draggable:u.value,onDrop:o.withModifiers(m,["stop"]),onDragenter:y[0]||(y[0]=o.withModifiers(()=>{},["prevent"])),onDragover:o.withModifiers(b,["prevent","stop"]),onDragleave:o.withModifiers(g,["prevent"])},{default:o.withCtx(()=>{var k,z;return[o.createElementVNode("div",{ref_key:"node",ref:s,class:o.normalizeClass(p.value),onClick:a},[o.createElementVNode("div",null,[n.model.icons&&n.model.icons.pre&&d.value&&!n.search&&!S.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(ee),{key:0,component:o.unref(Ct).getters.getIcon(n.model.icons.pre.component),size:18,color:n.model.icons.pre.color?n.model.icons.pre.color:"inherit",class:o.normalizeClass(l.value?"tree-open-pre":"")},null,8,["component","color","class"])):o.createCommentVNode("",!0),n.model.icons&&n.model.icons.pre&&!d.value&&!n.search&&!S.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(ee),{key:1,component:o.unref(Ct).getters.getIcon(n.model.icons.pre.component),size:18,color:"rgba(0,0,0,0)",class:o.normalizeClass(l.value?"tree-open-pre":"")},null,8,["component","class"])):o.createCommentVNode("",!0),n.model.icons&&n.model.icons.icon&&!S.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(ee),{key:2,component:o.unref(Ct).getters.getIcon(n.model.icons.icon.component),color:n.model.icons.icon.color?n.model.icons.icon.color:"inherit",size:n.model.icons.icon.size?n.model.icons.icon.size:null,className:n.model.icons.icon.class?n.model.icons.icon.class:null},null,8,["component","color","size","className"])):o.createCommentVNode("",!0),o.createElementVNode("div",us,[S.value?(o.openBlock(),o.createElementBlock("div",ps)):o.createCommentVNode("",!0),S.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",ms,o.toDisplayString(o.unref(O).actions.renderTitle(n.treeId,n.model.title)),1))])]),o.createElementVNode("div",hs,[((k=n.model.badge)==null?void 0:k.value)!==void 0&&!S.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(Ln),{key:0,class:o.normalizeClass([(z=n.model.badge)==null?void 0:z.class,"badge-sm"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.model.badge.value),1)]),_:1},8,["class"])):o.createCommentVNode("",!0),n.model.icons&&n.model.icons.post&&d.value&&!n.search&&!S.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(ee),{key:1,component:o.unref(Ct).getters.getIcon(n.model.icons.post.component),size:20,color:n.model.icons.post.color?n.model.icons.post.color:"inherit",class:o.normalizeClass(l.value?"tree-open-post":"")},null,8,["component","color","class"])):o.createCommentVNode("",!0)])],2),o.createVNode(Hn,null,{default:o.withCtx(()=>[d.value&&l.value&&!n.search?(o.openBlock(),o.createElementBlock("ul",gs,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.model.children,V=>(o.openBlock(),o.createBlock(x,{class:"tree-item",key:V.id,model:V,treeId:n.treeId,items:n.items,search:n.search,onNodeclick:f},null,8,["model","treeId","items","search"]))),128))])):o.createCommentVNode("",!0)]),_:1})]}),_:1},8,["transfer-data","draggable","onDrop","onDragover","onDragleave"]))}}},[["__scopeId","data-v-f6a37dc2"]]);function An(t){return t=t||new Map,{all:t,on(e,n){const s=t.get(e);s?s.push(n):t.set(e,[n])},off(e,n){const s=t.get(e);s&&(n?s.splice(s.indexOf(n)>>>0,1):t.set(e,[]))},emit(e,n){let s=t.get(e);s&&s.slice().map(r=>{r(n)}),s=t.get("*"),s&&s.slice().map(r=>{r(e,n)})}}}const wt=An(),O={state:o.reactive({trees:{}}),getters:{getItems(t){return O.state.trees[t].items},getItemsSelect(t){return O.state.trees[t].selected},getParentId(t,e,n,s="id",r="children",c={}){return n&&t&&(t.find(i=>i[s]===n?(c.found=e,i):O.getters.getParentId(i[r],i.id,n,s,r,c)),c.found)?c.found:!1}},mutations:{setTreeItems(t,e){O.state.trees[t].items=e},setItemSelect(t,e){O.state.trees[t].noSelect||(O.state.trees[t].multiSelect?O.state.trees[t].selected.includes(e.id)?O.state.trees[t].selected=O.state.trees[t].selected.filter(function(n){return n!==e.id}):O.state.trees[t].selected=[...O.state.trees[t].selected,e.id]:O.state.trees[t].selected=[e.id])}},actions:{initTreeStore(t,e,n,s,r,c){O.state.trees[t]=[],O.state.trees[t].selected=[],O.state.trees[t].noSelect=e,O.state.trees[t].multiSelect=n,O.state.trees[t].expanded=s,O.state.trees[t].transfer=r,O.state.trees[t].renderTitle=c},renderTitle(t,e){return O.state.trees[t].renderTitle?O.state.trees[t].renderTitle(e):e},isItemSelected(t,e){return O.state.trees[t].selected.includes(e)},toggleItem(t,e){e.expanded=e.expanded===void 0||!e.expanded,e.children&&e.children.length&&(e.expanded?wt.emit(`expand-${t}`,{id:t,model:e}):wt.emit(`collapse-${t}`,{id:t,model:e}))},isTreeExpanded(t){return O.state.trees[t].expanded},isChildOfParent(t,e,n,s){const r=O.actions.deepSearch(e,n);if(r&&r.children){for(let c=0;c<r.children.length;c++)if(r.children[c].id===s)return!0}return!1},isParentOfChild(t,e,n,s){const r=O.actions.deepSearch(e,n);return!!(r&&r.children&&O.actions.deepSearch(r.children,s))},deepSearch(t,e,n="id",s="children",r={}){return e&&t&&(t.find(c=>c[n]===e?(r.found=c,c):O.actions.deepSearch(c[s],e,n,s,r)),r.found)?r.found:!1},deepSearchByTitle(t,e,n="title",s="children",r=[]){if(e&&t&&(t.find(c=>{const i=new RegExp(e,"gi");c[n].toString().toLowerCase().match(i)!==null&&r.push(c),O.actions.deepSearchByTitle(c[s],e,n,s,r)}),r)){for(let c=0;c<r.length;c++);return r}return r},moveTreeNode(t,e,n,s,r,c){const i=O.actions.deleteTreeNode(n,s);O.actions.insertTreeNode(n,r,i,c),wt.emit(`move-${e}`,{fromTreeId:t,toTreeId:e,moved:i.id,target:r,position:c})},insertTreeNode(t,e,n,s){if(t)for(let r=0;r<t.length;r++){if(t[r].id===e){let i=r;return s==="after"?(i++,t.splice(i,0,n)):s==="before"?t.splice(i,0,n):s==="inside"&&(Object.hasOwn(t[r],"children")||(t[r].children=[],t[r].opened=!0),t[r].children.splice(0,0,n)),t[r]}const c=this.insertTreeNode(t[r].children,e,n,s);if(c)return c}},deleteTreeNode(t,e){if(t)for(let n=0;n<t.length;n++){if(t[n].id===e){const r=t[n];return t.splice(n,1),r}const s=O.actions.deleteTreeNode(t[n].children,e);if(s)return s}}}},ys={__name:"DDrop",props:{tag:{type:String,default:"div"}},emits:Object.keys(ct),setup(t,{expose:e,emit:n}){let s=o.reactive({});const r=o.ref("false"),c=o.ref(null),i=new Set,d=o.computed(()=>r.value&&s),l=(f,p)=>{s=pe.data,n(f,p,s),f===ct.dragenter&&(i.size||p.target===c.value)&&i.add(p.target),f===ct.dragleave&&i.delete(p.target),f===ct.drop&&i.clear(),r.value=!!i.size};return e({elementSize:()=>c.value.getBoundingClientRect()}),(f,p)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.tag),{ref_key:"el",ref:c,onDragenter:p[0]||(p[0]=u=>l(o.unref(ct).dragenter,u)),onDragleave:p[1]||(p[1]=u=>l(o.unref(ct).dragleave,u)),onDragover:p[2]||(p[2]=o.withModifiers(u=>l(o.unref(ct).dragover,u),["prevent"])),onDrop:p[3]||(p[3]=o.withModifiers(u=>l(o.unref(ct).drop,u),["prevent"]))},{default:o.withCtx(()=>[o.renderSlot(f.$slots,"default",{transferData:d.value})]),_:3},544))}},_e={__name:"DTree",props:{items:Array,noSelect:Boolean,multiSelect:Boolean,expanded:Boolean,transfer:Boolean,renderTitle:Function,search:String},emits:["select","collapse","expand","move"],setup(t,{expose:e,emit:n}){const s=t,r=o.ref(null),c=o.getCurrentInstance().uid;O.actions.initTreeStore(c,s.noSelect,s.multiSelect,s.expanded,s.transfer,s.renderTitle);const i=(f,p)=>{console.log(f,p)};wt.on(`expand-${c}`,f=>{n("expand",f)}),wt.on(`collapse-${c}`,f=>{n("collapse",f)}),wt.on(`move-${c}`,f=>{n("move",f)});const d=o.computed(()=>s.search?O.actions.deepSearchByTitle(s.items,s.search):s.items),l=(f=null)=>{O.mutations.setItemSelect(c,f.model),O.actions.toggleItem(c,f.model),n("select",f)};return e({elementSize:()=>r.value.elementSize()}),(f,p)=>(o.openBlock(),o.createBlock(ys,{ref_key:"treeRef",ref:r,class:"tree",tag:"ul",onDrop:o.withModifiers(i,["stop"])},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,u=>(o.openBlock(),o.createBlock(Mn,{key:u.id,model:u,treeId:o.unref(c),items:s.items,search:s.search,onNodeclick:l},null,8,["model","treeId","items","search"]))),128))]),_:1},8,["onDrop"]))}},$c="",bs=ue({__name:"DAccordion",props:{items:Array},setup(t){const e=t;return(n,s)=>(o.openBlock(),o.createBlock(_e,{class:"accordion",items:e.items,"no-select":!0},null,8,["items"]))}},[["__scopeId","data-v-4c920528"]]),Pn={__name:"DLayoutHeader",props:{fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:1001},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(t){const e=t,n=o.computed(()=>{const{fixed:s,zIndex:r,minWidth:c,height:i,paddingLeft:d,transitionDuration:l,transitionTimingFunction:a}=e,f=s?"fixed":"static",p=e.useMinWidthLayout?`min-width:${c}px;`:"";return`position:${f};z-index:${r};${p}height:${i}px;padding-left:${d}px;transition-duration:${l}ms;transition-timing-function:${a};`});return(s,r)=>(o.openBlock(),o.createElementBlock("header",{class:"d-layout-header",style:o.normalizeStyle(n.value)},[o.renderSlot(s.$slots,"default")],4))}},Rn={__name:"DLayoutTab",props:{fixed:{type:Boolean,default:!0},top:{type:Number,default:56},zIndex:{type:Number,default:999},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(t){const e=t,n=o.computed(()=>{const{fixed:s,top:r,zIndex:c,minWidth:i,height:d,paddingLeft:l,transitionDuration:a,transitionTimingFunction:f}=e,p=s?"fixed":"static",u=e.useMinWidthLayout?`min-width: ${i}px;`:"";return`position:${p};top:${r}px;z-index:${c};${u}height:${d}px;padding-left:${l}px;transition-duration:${a}ms;transition-timing-function:${f};`});return(s,r)=>(o.openBlock(),o.createElementBlock("div",{class:"d-layout-tab",style:o.normalizeStyle(n.value)},[o.renderSlot(s.$slots,"default")],4))}},Fn={__name:"DLayoutFooter",props:{fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:999},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(t){const e=t,n=o.computed(()=>{const{fixed:s,zIndex:r,minWidth:c,height:i,paddingLeft:d,transitionDuration:l,transitionTimingFunction:a}=e,f=s?"fixed":"static",p=e.useMinWidthLayout?`min-width:${c}px;`:"";return`position:${f};z-index:${r};${p}height:${i}px;padding-left:${d}px;transition-duration:${l}ms;transition-timing-function:${a};`});return(s,r)=>(o.openBlock(),o.createElementBlock("footer",{class:"d-layout-footer",style:o.normalizeStyle(n.value)},[o.renderSlot(s.$slots,"default")],4))}},Wn={__name:"DLayoutSidebar",props:{zIndex:{type:Number,default:1002},width:{type:Number,default:200},paddingTop:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},collapse:{type:Boolean,default:!1}},setup(t){const e=t,n=o.computed(()=>{const{zIndex:s,width:r,paddingTop:c,transitionDuration:i,transitionTimingFunction:d}=e;return`z-index:${s};width:${r}px;padding-top:${c}px;transition-duration:${i}ms;transition-timing-function:${d};`});return(s,r)=>(o.openBlock(),o.createElementBlock("aside",{class:"d-layout-sidebar",style:o.normalizeStyle(n.value)},[o.renderSlot(s.$slots,"default")],4))}},Un={__name:"DLayoutContent",props:{paddingTop:{type:Number,default:0},paddingBottom:{type:Number,default:0},paddingLeft:{type:Number,default:0},overflowHidden:Boolean,transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"}},setup(t){const e=t,n=o.computed(()=>{const{paddingTop:s,paddingBottom:r,paddingLeft:c,transitionDuration:i,transitionTimingFunction:d}=e,l=`overflow:${e.overflowHidden?"hidden":"visible"};`;return`padding-top:${s}px;padding-bottom:${r}px;padding-left:${c}px;${l}transition-duration:${i}ms;transition-timing-function:${d};`});return(s,r)=>(o.openBlock(),o.createElementBlock("main",{style:o.normalizeStyle(n.value),class:"d-layout-content"},[o.renderSlot(s.$slots,"default")],4))}};function ws(t){const e=o.ref(0),n=o.computed(()=>`transform: translateX(${-e.value}px);`);let s=!1;function r(f){e.value=f}function c(){var f;const p=((f=document.scrollingElement)===null||f===void 0?void 0:f.scrollLeft)||0;r(p)}function i(){c()}function d(){document.addEventListener("scroll",c)}function l(){s&&document.removeEventListener("scroll",c)}function a(){i(),d(),s=!0}return o.watch(t,f=>{f?a():l()},{immediate:!0}),o.onUnmounted(()=>{l()}),n}const Ss=1001,_s=999,ks=998,xs={__name:"DLayoutAdmin",props:{mode:{type:String,default:"vertical"},isMobile:{type:Boolean,default:!1},useMinWidthLayout:{type:Boolean,default:!1},minWidth:{type:Number,default:1200},headerVisible:{type:Boolean,default:!0},headerHeight:{type:Number,default:56},tabVisible:{type:Boolean,default:!0},tabHeight:{type:Number,default:44},fixedHeaderAndTab:{type:Boolean,default:!0},addMainOverflowHidden:{type:Boolean,default:!1},footerVisible:{type:Boolean,default:!0},footerHeight:{type:Number,default:48},fixedFooter:{type:Boolean,default:!0},sidebarVisible:{type:Boolean,default:!0},sidebarWidth:{type:Number,default:200},sidebarCollapsedWidth:{type:Number,default:0},sidebarCollapse:{type:Boolean,default:!1},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},collapse:{type:Boolean,default:!1},maskBg:{type:String,default:"rgba(0,0,0,0.3)"}},emits:["update:sidebar-collapse","sidebar-mask-click"],setup(t,{emit:e}){const n=t,s=o.computed(()=>n.useMinWidthLayout?`min-width:${n.minWidth}px;`:""),r=o.computed(()=>n.useMinWidthLayout&&(n.fixedHeaderAndTab||n.fixedFooter)),c=ws(r),i=o.computed(()=>n.fixedHeaderAndTab?c.value:""),d=o.computed(()=>n.fixedFooter?c.value:""),l=o.computed(()=>{const{transitionDuration:k,transitionTimingFunction:z}=n;return{transitionDuration:k,transitionTimingFunction:z}}),a=o.computed(()=>n.mode==="vertical"),f=o.computed(()=>n.isMobile||a.value?1003:1e3),p=o.computed({get(){return n.sidebarCollapse},set(k){e("update:sidebar-collapse",k)}});function u(){e("sidebar-mask-click")}const m=o.computed(()=>n.isMobile&&!p.value),b=o.computed(()=>{const{transitionDuration:k,transitionTimingFunction:z}=n;return`background-color:${n.maskBg};transition-duration:${k}ms;transition-timing-function:${z};`}),g=o.computed(()=>{const{sidebarWidth:k,sidebarCollapsedWidth:z}=n,V=n.isMobile?0:z,A=p.value?V:k;return n.sidebarVisible?A:0}),S=o.computed(()=>n.isMobile?0:g.value),C=o.computed(()=>a.value?S.value:0),h=o.computed(()=>!n.isMobile&&!a.value&&n.headerVisible?n.headerHeight:0),y=o.computed(()=>{let k=0;return n.fixedHeaderAndTab&&(n.headerVisible&&(k+=n.headerHeight),n.tabVisible&&(k+=n.tabHeight)),k}),x=o.computed(()=>n.fixedFooter&&n.footerVisible?n.footerHeight:0);return(k,z)=>(o.openBlock(),o.createElementBlock("div",{class:"d-layout",style:o.normalizeStyle(s.value)},[t.headerVisible?(o.openBlock(),o.createBlock(Pn,o.mergeProps({key:0},l.value,{fixed:t.fixedHeaderAndTab,"z-index":Ss,"min-width":t.minWidth,height:t.headerHeight,"padding-left":C.value,style:i.value}),{default:o.withCtx(()=>[o.renderSlot(k.$slots,"header")]),_:3},16,["fixed","min-width","height","padding-left","style"])):o.createCommentVNode("",!0),t.tabVisible?(o.openBlock(),o.createBlock(Rn,o.mergeProps({key:1},l.value,{fixed:t.fixedHeaderAndTab,"z-index":_s,"min-width":t.minWidth,top:t.headerHeight,height:t.tabHeight,"padding-left":S.value,style:i.value}),{default:o.withCtx(()=>[o.renderSlot(k.$slots,"tab")]),_:3},16,["fixed","min-width","top","height","padding-left","style"])):o.createCommentVNode("",!0),t.sidebarVisible?(o.openBlock(),o.createBlock(Wn,o.mergeProps({key:2},l.value,{"z-index":f.value,width:g.value,"padding-top":h.value}),{default:o.withCtx(()=>[o.renderSlot(k.$slots,"sidebar")]),_:3},16,["z-index","width","padding-top"])):o.createCommentVNode("",!0),m.value?(o.openBlock(),o.createElementBlock("div",{key:3,class:"d-layout-sidebar-mask",style:o.normalizeStyle(b.value),onClick:u},null,4)):o.createCommentVNode("",!0),o.createVNode(Un,o.mergeProps(l.value,{"padding-top":y.value,"padding-bottom":x.value,"padding-left":S.value,"overflow-hidden":t.addMainOverflowHidden}),{default:o.withCtx(()=>[o.renderSlot(k.$slots,"default")]),_:3},16,["padding-top","padding-bottom","padding-left","overflow-hidden"]),t.footerVisible?(o.openBlock(),o.createBlock(Fn,o.mergeProps({key:4},l.value,{fixed:t.fixedFooter,"z-index":ks,"min-width":t.minWidth,height:t.footerHeight,"padding-left":S.value,style:d.value}),{default:o.withCtx(()=>[o.renderSlot(k.$slots,"footer")]),_:3},16,["fixed","min-width","height","padding-left","style"])):o.createCommentVNode("",!0)],4))}},Ot={state:o.reactive({theme:"dark"}),getters:{theme(){return Ot.state.theme}},mutations:{setTheme(t){Ot.state.theme=t,document.documentElement.setAttribute("class",t)}},actions:{toggleTheme(){Ot.state.theme=Ot.state.theme==="dark"?"light":"dark",document.documentElement.setAttribute("class",Ot.state.theme)}}},$s={__name:"DConfigProvider",props:{theme:{type:String,default:"dark"}},setup(t){const e=t;return Ot.mutations.setTheme(e.theme),(n,s)=>o.renderSlot(n.$slots,"default")}};/*!
|
|
1
|
+
(function(W,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(W=typeof globalThis<"u"?globalThis:W||self,o(W.DophJs={},W.Vue))})(this,function(W,o){"use strict";const hc="",gc="",yc="",bc="",ee={__name:"DIcon",props:{component:[Object,String],size:[Number,String],color:String,className:String},setup(t){const e=t,n=o.useSlots(),s=o.computed(()=>{const{className:d}=e;return d===void 0?"icon":["icon",d].join(" ")}),r=o.computed(()=>{const{color:d}=e;return d===void 0?null:d}),c=o.computed(()=>{const d=e.size??null;if(d!==void 0)return typeof d=="number"||/^\d+$/.test(d)?`${d}px`:d}),i=o.computed(()=>o.h("i",{class:s.value,style:{color:r.value,fontSize:c.value}},e.component?o.h(e.component):n));return(d,l)=>(o.openBlock(),o.createBlock(o.unref(i)))}},Ct={state:{},getters:{getIcon(t){return Ct.state[t]},getIcons(){return Ct.state}},mutations:{addIcon(t,e){Ct.state.name=e},addIcons(t){for(const e in t)t.hasOwnProperty(e)&&(Ct.state[e]=t[e])}}},Qo={key:1},fe={__name:"DButton",props:{class:String,icon:String},emits:["click","contextmenu"],setup(t,{expose:e,emit:n}){const s=t,r=o.useSlots(),c=o.ref(null),i=o.computed(()=>s.icon?Ct.getters.getIcon(s.icon):null),d=f=>{n("click",f)},l=f=>{n("contextmenu",f)};return e({elementSize:()=>c.value.getBoundingClientRect()}),(f,p)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[i.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"el",ref:c,onClick:d,onContextmenu:l,class:o.normalizeClass(["button",s.class])},[o.renderSlot(f.$slots,"default")],34)),i.value?(o.openBlock(),o.createElementBlock("div",{key:1,ref_key:"el",ref:c,onClick:d,onContextmenu:l,class:o.normalizeClass(["button button-ext",s.class])},[s.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(ee),{key:0,component:i.value,color:"inherit"},null,8,["component"])):o.createCommentVNode("",!0),o.unref(r).default?(o.openBlock(),o.createElementBlock("div",Qo,[o.renderSlot(f.$slots,"default")])):o.createCommentVNode("",!0)],34)):o.createCommentVNode("",!0)],64))}},wc="",ue=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},ts={class:"d-input"},es={class:"label"},ns=["placeholder"],os=ue({__name:"DInput",props:{label:String,placeholder:String,size:String,font:String,modelValue:String},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,s=o.computed(()=>n.font==="small"?"d-input-small":n.font==="big"?"d-input-big":""),r=o.computed({get:()=>n.modelValue,set:c=>{e("update:modelValue",c)}});return(c,i)=>(o.openBlock(),o.createElementBlock("div",ts,[o.createElementVNode("div",es,o.toDisplayString(n.label),1),o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=d=>r.value=d),type:"text",class:o.normalizeClass(s.value),placeholder:n.placeholder,style:o.normalizeStyle(n.size==="wide"?"width:100%":"")},null,14,ns),[[o.vModelText,r.value]])]))}},[["__scopeId","data-v-11679fd8"]]),Ln={__name:"DBadge",props:{class:String},setup(t){const e=t;return(n,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["badge",e.class])},[o.renderSlot(n.$slots,"default")],2))}},zt="0px",Hn={__name:"DCollapse",props:{duration:{type:Number,default:200},easingEnter:{type:String,default:"ease-in-out"},easingLeave:{type:String,default:"ease-in-out"},opacityClosed:{type:Number,default:0},opacityOpened:{type:Number,default:1}},setup(t){const e=t,n=l=>({height:l.style.height,width:l.style.width,position:l.style.position,visibility:l.style.visibility,overflow:l.style.overflow,paddingTop:l.style.paddingTop,paddingBottom:l.style.paddingBottom,borderTopWidth:l.style.borderTopWidth,borderBottomWidth:l.style.borderBottomWidth,marginTop:l.style.marginTop,marginBottom:l.style.marginBottom}),s=(l,a)=>{const{width:f}=getComputedStyle(l);l.style.width=f,l.style.position="absolute",l.style.visibility="hidden",l.style.height="";let{height:p}=getComputedStyle(l);return l.style.width=a.width,l.style.position=a.position,l.style.visibility=a.visibility,l.style.height=zt,l.style.overflow="hidden",a.height&&a.height!==zt?a.height:p},r=(l,a,f,p,u)=>{const m=l.animate(p,u);l.style.height=a.height,m.onfinish=()=>{l.style.overflow=a.overflow,f()}},c=(l,a)=>[{height:zt,opacity:e.opacityClosed,paddingTop:zt,paddingBottom:zt,borderTopWidth:zt,borderBottomWidth:zt,marginTop:zt,marginBottom:zt},{height:l,opacity:e.opacityOpened,paddingTop:a.paddingTop,paddingBottom:a.paddingBottom,borderTopWidth:a.borderTopWidth,borderBottomWidth:a.borderBottomWidth,marginTop:a.marginTop,marginBottom:a.marginBottom}],i=(l,a)=>{const f=l,p=n(f),u=s(f,p),m=c(u,p),b={duration:e.duration,easing:e.easingEnter};r(f,p,a,m,b)},d=(l,a)=>{const f=l,p=n(f),{height:u}=getComputedStyle(f);f.style.height=u,f.style.overflow="hidden";const m=c(u,p).reverse(),b={duration:e.duration,easing:e.easingLeave};r(f,p,a,m,b)};return(l,a)=>(o.openBlock(),o.createBlock(o.Transition,{css:!1,onEnter:i,onLeave:d},{default:o.withCtx(()=>[o.renderSlot(l.$slots,"default")]),_:3}))}},pe={data:void 0},Ue=t=>t.reduce((e,n)=>(e[n]=n)&&e,{}),ct=Ue(["drag","dragend","dragenter","dragleave","dragstart","dragover","drop"]),ss=Ue(["copy","move","link","none"]),rs=Ue(["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"]),cs={__name:"DDrag",props:{draggable:{type:Boolean,default:!0},transferData:{},dropEffect:{validator:t=>t in ss},effectAllowed:{validator:t=>t in rs},image:String,imageXOffset:{type:Number,default:0},imageYOffset:{type:Number,default:0},hideImageHtml:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(t){const e=t,n=o.useSlots(),s=o.ref(!1),r=o.computed(()=>s&&e.transferData),c=o.computed(()=>({position:"fixed",top:"-1000px"})),i=(d,l)=>{const a=l.dataTransfer;if([ct.dragenter,ct.dragover].includes(d)&&e.dropEffect&&(a.dropEffect=e.dropEffect),d===ct.dragstart){if(e.effectAllowed&&(a.effectAllowed=e.effectAllowed),e.image||n.image){let f;e.image?(f=new Image,f.src=e.image):n.image&&(f=n.image[0].elm),a.setDragImage&&a.setDragImage(f,e.imageXOffset,e.imageYOffset)}e.transferData!==void 0&&(pe.data=e.transferData,l.dataTransfer.setData("text","")),s.value=!0}};return(d,l)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.tag),{draggable:e.draggable,onDrag:l[0]||(l[0]=a=>i(o.unref(ct).drag,a)),onDragstart:l[1]||(l[1]=o.withModifiers(a=>i(o.unref(ct).dragstart,a),["stop"])),onDragenter:l[2]||(l[2]=a=>i(o.unref(ct).dragenter,a)),onDragleave:l[3]||(l[3]=a=>i(o.unref(ct).dragleave,a)),onDragend:l[4]||(l[4]=a=>i(o.unref(ct).dragend,a))},{default:o.withCtx(()=>[o.renderSlot(d.$slots,"default",{transferData:r.value}),t.hideImageHtml?(o.openBlock(),o.createElementBlock("div",{key:0,style:o.normalizeStyle(c.value)},[o.renderSlot(d.$slots,"image",{transferData:r.value})],4)):o.renderSlot(d.$slots,"image",{key:1,transferData:r.value})]),_:3},40,["draggable"]))}},_c="",is=t=>(o.pushScopeId("data-v-6804865f"),t=t(),o.popScopeId(),t),ls={key:0},as=[is(()=>o.createElementVNode("div",{class:"tree-divider"},null,-1))],ds={key:1},fs={class:"tree-divider-header"},us={class:"item-title"},ps={key:0,class:"tree-divider"},ms={key:1},hs={style:{display:"flex","flex-direction":"row","justify-content":"flex-end"}},gs={key:0,class:"sub-menu"},Mn=ue({__name:"DTreeItem",props:{model:Object,treeId:[String,Number],items:Array,search:String},emits:["nodedrop","nodedragover","nodedragleave","nodeclick"],setup(t,{emit:e}){const n=t,s=o.ref(null),r=o.ref(!1),c=o.ref(!1),i=o.ref(!1),d=o.computed(()=>n.model.children&&n.model.children.length),l=o.computed(()=>(O.actions.isTreeExpanded(n.treeId)&&(n.model.expanded=n.model.expanded===void 0?!0:n.model.expanded),n.model.expanded)),a=h=>{e("nodeclick",{event:h,model:n.model})},f=h=>{e("nodeclick",h)},p=o.computed(()=>(O.actions.isItemSelected(n.treeId,n.model.id)?"selected":"")+(r.value?"node-over ":"")+(c.value?"node-top ":"")+(i.value?"node-bottom ":"")),u=o.computed(()=>n.search?!1:n.model.draggable===!0),m=h=>{let g=pe.data;if(g.model.id===n.model.id||O.actions.isChildOfParent(n.treeId,n.items,n.model.id,g.model.id)||O.actions.isParentOfChild(n.treeId,n.items,g.model.id,n.model.id))return r.value=!1,c.value=!1,i.value=!1,!1;if(!O.state.trees[n.treeId].transfer&&g.id!==n.treeId)return!1;let x="";c.value?x="before":i.value?x="after":x="inside",O.actions.moveTreeNode(g.id,n.treeId,n.items,g.model.id,n.model.id,x),r.value=!1,c.value=!1,i.value=!1},b=h=>{let g=pe.data;if(g.model.id===n.model.id||O.actions.isChildOfParent(n.treeId,n.items,n.model.id,g.model.id)||O.actions.isParentOfChild(n.treeId,n.items,g.model.id,n.model.id))return!1;const x=h.y,k=s.value.getBoundingClientRect().top,z=s.value.getBoundingClientRect().height,V=z/3;x>k&&x<=k+V?(r.value=!1,c.value=!0,i.value=!1):x<k+z&&x>=k+z-V?(r.value=!1,c.value=!1,i.value=!0):(r.value=!0,c.value=!1,i.value=!1)},y=()=>{r.value=!1,c.value=!1,i.value=!1},S=o.computed(()=>n.model.title.startsWith("-")),C=o.computed(()=>{if(n.model.title.startsWith("-")){let[h,...g]=n.model.title.split(" ");return g=g.join(" "),g}return null});return(h,g)=>{const x=o.resolveComponent("d-tree-item",!0);return S.value&&!C.value?(o.openBlock(),o.createElementBlock("li",ls,as)):S.value&&C.value?(o.openBlock(),o.createElementBlock("li",ds,[o.createElementVNode("div",fs,o.toDisplayString(o.unref(O).actions.renderTitle(n.treeId,C.value)),1)])):(o.openBlock(),o.createBlock(cs,{key:2,tag:"li",class:"tree-item","transfer-data":{id:n.treeId,model:n.model},draggable:u.value,onDrop:o.withModifiers(m,["stop"]),onDragenter:g[0]||(g[0]=o.withModifiers(()=>{},["prevent"])),onDragover:o.withModifiers(b,["prevent","stop"]),onDragleave:o.withModifiers(y,["prevent"])},{default:o.withCtx(()=>{var k,z;return[o.createElementVNode("div",{ref_key:"node",ref:s,class:o.normalizeClass(p.value),onClick:a},[o.createElementVNode("div",null,[n.model.icons&&n.model.icons.pre&&d.value&&!n.search&&!S.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(ee),{key:0,component:o.unref(Ct).getters.getIcon(n.model.icons.pre.component),size:18,color:n.model.icons.pre.color?n.model.icons.pre.color:"inherit",class:o.normalizeClass(l.value?"tree-open-pre":"")},null,8,["component","color","class"])):o.createCommentVNode("",!0),n.model.icons&&n.model.icons.pre&&!d.value&&!n.search&&!S.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(ee),{key:1,component:o.unref(Ct).getters.getIcon(n.model.icons.pre.component),size:18,color:"rgba(0,0,0,0)",class:o.normalizeClass(l.value?"tree-open-pre":"")},null,8,["component","class"])):o.createCommentVNode("",!0),n.model.icons&&n.model.icons.icon&&!S.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(ee),{key:2,component:o.unref(Ct).getters.getIcon(n.model.icons.icon.component),color:n.model.icons.icon.color?n.model.icons.icon.color:"inherit",size:n.model.icons.icon.size?n.model.icons.icon.size:null,className:n.model.icons.icon.class?n.model.icons.icon.class:null},null,8,["component","color","size","className"])):o.createCommentVNode("",!0),o.createElementVNode("div",us,[S.value?(o.openBlock(),o.createElementBlock("div",ps)):o.createCommentVNode("",!0),S.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",ms,o.toDisplayString(o.unref(O).actions.renderTitle(n.treeId,n.model.title)),1))])]),o.createElementVNode("div",hs,[((k=n.model.badge)==null?void 0:k.value)!==void 0&&!S.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(Ln),{key:0,class:o.normalizeClass([(z=n.model.badge)==null?void 0:z.class,"badge-sm"])},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.model.badge.value),1)]),_:1},8,["class"])):o.createCommentVNode("",!0),n.model.icons&&n.model.icons.post&&d.value&&!n.search&&!S.value?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(ee),{key:1,component:o.unref(Ct).getters.getIcon(n.model.icons.post.component),size:20,color:n.model.icons.post.color?n.model.icons.post.color:"inherit",class:o.normalizeClass(l.value?"tree-open-post":"")},null,8,["component","color","class"])):o.createCommentVNode("",!0)])],2),o.createVNode(Hn,null,{default:o.withCtx(()=>[d.value&&l.value&&!n.search?(o.openBlock(),o.createElementBlock("ul",gs,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.model.children,V=>(o.openBlock(),o.createBlock(x,{class:"tree-item",key:V.id,model:V,treeId:n.treeId,items:n.items,search:n.search,onNodeclick:f},null,8,["model","treeId","items","search"]))),128))])):o.createCommentVNode("",!0)]),_:1})]}),_:1},8,["transfer-data","draggable","onDrop","onDragover","onDragleave"]))}}},[["__scopeId","data-v-6804865f"]]);function An(t){return t=t||new Map,{all:t,on(e,n){const s=t.get(e);s?s.push(n):t.set(e,[n])},off(e,n){const s=t.get(e);s&&(n?s.splice(s.indexOf(n)>>>0,1):t.set(e,[]))},emit(e,n){let s=t.get(e);s&&s.slice().map(r=>{r(n)}),s=t.get("*"),s&&s.slice().map(r=>{r(e,n)})}}}const wt=An(),O={state:o.reactive({trees:{}}),getters:{getItems(t){return O.state.trees[t].items},getItemsSelect(t){return O.state.trees[t].selected},getParentId(t,e,n,s="id",r="children",c={}){return n&&t&&(t.find(i=>i[s]===n?(c.found=e,i):O.getters.getParentId(i[r],i.id,n,s,r,c)),c.found)?c.found:!1}},mutations:{setTreeItems(t,e){O.state.trees[t].items=e},setItemSelect(t,e){O.state.trees[t].noSelect||(O.state.trees[t].multiSelect?O.state.trees[t].selected.includes(e.id)?O.state.trees[t].selected=O.state.trees[t].selected.filter(function(n){return n!==e.id}):O.state.trees[t].selected=[...O.state.trees[t].selected,e.id]:O.state.trees[t].selected=[e.id])}},actions:{initTreeStore(t,e,n,s,r,c){O.state.trees[t]=[],O.state.trees[t].selected=[],O.state.trees[t].noSelect=e,O.state.trees[t].multiSelect=n,O.state.trees[t].expanded=s,O.state.trees[t].transfer=r,O.state.trees[t].renderTitle=c},renderTitle(t,e){return O.state.trees[t].renderTitle?O.state.trees[t].renderTitle(e):e},isItemSelected(t,e){return O.state.trees[t].selected.includes(e)},toggleItem(t,e){e.expanded=e.expanded===void 0||!e.expanded,e.children&&e.children.length&&(e.expanded?wt.emit(`expand-${t}`,{id:t,model:e}):wt.emit(`collapse-${t}`,{id:t,model:e}))},isTreeExpanded(t){return O.state.trees[t].expanded},isChildOfParent(t,e,n,s){const r=O.actions.deepSearch(e,n);if(r&&r.children){for(let c=0;c<r.children.length;c++)if(r.children[c].id===s)return!0}return!1},isParentOfChild(t,e,n,s){const r=O.actions.deepSearch(e,n);return!!(r&&r.children&&O.actions.deepSearch(r.children,s))},deepSearch(t,e,n="id",s="children",r={}){return e&&t&&(t.find(c=>c[n]===e?(r.found=c,c):O.actions.deepSearch(c[s],e,n,s,r)),r.found)?r.found:!1},deepSearchByTitle(t,e,n="title",s="children",r=[]){if(e&&t&&(t.find(c=>{const i=new RegExp(e,"gi");c[n].toString().toLowerCase().match(i)!==null&&r.push(c),O.actions.deepSearchByTitle(c[s],e,n,s,r)}),r)){for(let c=0;c<r.length;c++);return r}return r},moveTreeNode(t,e,n,s,r,c){const i=O.actions.deleteTreeNode(n,s);O.actions.insertTreeNode(n,r,i,c),wt.emit(`move-${e}`,{fromTreeId:t,toTreeId:e,moved:i.id,target:r,position:c})},insertTreeNode(t,e,n,s){if(t)for(let r=0;r<t.length;r++){if(t[r].id===e){let i=r;return s==="after"?(i++,t.splice(i,0,n)):s==="before"?t.splice(i,0,n):s==="inside"&&(Object.hasOwn(t[r],"children")||(t[r].children=[],t[r].opened=!0),t[r].children.splice(0,0,n)),t[r]}const c=this.insertTreeNode(t[r].children,e,n,s);if(c)return c}},deleteTreeNode(t,e){if(t)for(let n=0;n<t.length;n++){if(t[n].id===e){const r=t[n];return t.splice(n,1),r}const s=O.actions.deleteTreeNode(t[n].children,e);if(s)return s}}}},ys={__name:"DDrop",props:{tag:{type:String,default:"div"}},emits:Object.keys(ct),setup(t,{expose:e,emit:n}){let s=o.reactive({});const r=o.ref("false"),c=o.ref(null),i=new Set,d=o.computed(()=>r.value&&s),l=(f,p)=>{s=pe.data,n(f,p,s),f===ct.dragenter&&(i.size||p.target===c.value)&&i.add(p.target),f===ct.dragleave&&i.delete(p.target),f===ct.drop&&i.clear(),r.value=!!i.size};return e({elementSize:()=>c.value.getBoundingClientRect()}),(f,p)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.tag),{ref_key:"el",ref:c,onDragenter:p[0]||(p[0]=u=>l(o.unref(ct).dragenter,u)),onDragleave:p[1]||(p[1]=u=>l(o.unref(ct).dragleave,u)),onDragover:p[2]||(p[2]=o.withModifiers(u=>l(o.unref(ct).dragover,u),["prevent"])),onDrop:p[3]||(p[3]=o.withModifiers(u=>l(o.unref(ct).drop,u),["prevent"]))},{default:o.withCtx(()=>[o.renderSlot(f.$slots,"default",{transferData:d.value})]),_:3},544))}},_e={__name:"DTree",props:{items:Array,noSelect:Boolean,multiSelect:Boolean,expanded:Boolean,transfer:Boolean,renderTitle:Function,search:String},emits:["select","collapse","expand","move"],setup(t,{expose:e,emit:n}){const s=t,r=o.ref(null),c=o.getCurrentInstance().uid;O.actions.initTreeStore(c,s.noSelect,s.multiSelect,s.expanded,s.transfer,s.renderTitle);const i=(f,p)=>{console.log(f,p)};wt.on(`expand-${c}`,f=>{n("expand",f)}),wt.on(`collapse-${c}`,f=>{n("collapse",f)}),wt.on(`move-${c}`,f=>{n("move",f)});const d=o.computed(()=>s.search?O.actions.deepSearchByTitle(s.items,s.search):s.items),l=(f=null)=>{O.mutations.setItemSelect(c,f.model),O.actions.toggleItem(c,f.model),n("select",f)};return e({elementSize:()=>r.value.elementSize()}),(f,p)=>(o.openBlock(),o.createBlock(ys,{ref_key:"treeRef",ref:r,class:"tree",tag:"ul",onDrop:o.withModifiers(i,["stop"])},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.value,u=>(o.openBlock(),o.createBlock(Mn,{key:u.id,model:u,treeId:o.unref(c),items:s.items,search:s.search,onNodeclick:l},null,8,["model","treeId","items","search"]))),128))]),_:1},8,["onDrop"]))}},$c="",bs=ue({__name:"DAccordion",props:{items:Array},setup(t){const e=t;return(n,s)=>(o.openBlock(),o.createBlock(_e,{class:"accordion",items:e.items,"no-select":!0},null,8,["items"]))}},[["__scopeId","data-v-4c920528"]]),Pn={__name:"DLayoutHeader",props:{fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:1001},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(t){const e=t,n=o.computed(()=>{const{fixed:s,zIndex:r,minWidth:c,height:i,paddingLeft:d,transitionDuration:l,transitionTimingFunction:a}=e,f=s?"fixed":"static",p=e.useMinWidthLayout?`min-width:${c}px;`:"";return`position:${f};z-index:${r};${p}height:${i}px;padding-left:${d}px;transition-duration:${l}ms;transition-timing-function:${a};`});return(s,r)=>(o.openBlock(),o.createElementBlock("header",{class:"d-layout-header",style:o.normalizeStyle(n.value)},[o.renderSlot(s.$slots,"default")],4))}},Rn={__name:"DLayoutTab",props:{fixed:{type:Boolean,default:!0},top:{type:Number,default:56},zIndex:{type:Number,default:999},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(t){const e=t,n=o.computed(()=>{const{fixed:s,top:r,zIndex:c,minWidth:i,height:d,paddingLeft:l,transitionDuration:a,transitionTimingFunction:f}=e,p=s?"fixed":"static",u=e.useMinWidthLayout?`min-width: ${i}px;`:"";return`position:${p};top:${r}px;z-index:${c};${u}height:${d}px;padding-left:${l}px;transition-duration:${a}ms;transition-timing-function:${f};`});return(s,r)=>(o.openBlock(),o.createElementBlock("div",{class:"d-layout-tab",style:o.normalizeStyle(n.value)},[o.renderSlot(s.$slots,"default")],4))}},Fn={__name:"DLayoutFooter",props:{fixed:{type:Boolean,default:!0},zIndex:{type:Number,default:999},minWidth:{type:Number,default:1280},height:{type:Number,default:56},paddingLeft:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},useMinWidthLayout:Boolean},setup(t){const e=t,n=o.computed(()=>{const{fixed:s,zIndex:r,minWidth:c,height:i,paddingLeft:d,transitionDuration:l,transitionTimingFunction:a}=e,f=s?"fixed":"static",p=e.useMinWidthLayout?`min-width:${c}px;`:"";return`position:${f};z-index:${r};${p}height:${i}px;padding-left:${d}px;transition-duration:${l}ms;transition-timing-function:${a};`});return(s,r)=>(o.openBlock(),o.createElementBlock("footer",{class:"d-layout-footer",style:o.normalizeStyle(n.value)},[o.renderSlot(s.$slots,"default")],4))}},Wn={__name:"DLayoutSidebar",props:{zIndex:{type:Number,default:1002},width:{type:Number,default:200},paddingTop:{type:Number,default:0},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},collapse:{type:Boolean,default:!1}},setup(t){const e=t,n=o.computed(()=>{const{zIndex:s,width:r,paddingTop:c,transitionDuration:i,transitionTimingFunction:d}=e;return`z-index:${s};width:${r}px;padding-top:${c}px;transition-duration:${i}ms;transition-timing-function:${d};`});return(s,r)=>(o.openBlock(),o.createElementBlock("aside",{class:"d-layout-sidebar",style:o.normalizeStyle(n.value)},[o.renderSlot(s.$slots,"default")],4))}},Un={__name:"DLayoutContent",props:{paddingTop:{type:Number,default:0},paddingBottom:{type:Number,default:0},paddingLeft:{type:Number,default:0},overflowHidden:Boolean,transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"}},setup(t){const e=t,n=o.computed(()=>{const{paddingTop:s,paddingBottom:r,paddingLeft:c,transitionDuration:i,transitionTimingFunction:d}=e,l=`overflow:${e.overflowHidden?"hidden":"visible"};`;return`padding-top:${s}px;padding-bottom:${r}px;padding-left:${c}px;${l}transition-duration:${i}ms;transition-timing-function:${d};`});return(s,r)=>(o.openBlock(),o.createElementBlock("main",{style:o.normalizeStyle(n.value),class:"d-layout-content"},[o.renderSlot(s.$slots,"default")],4))}};function ws(t){const e=o.ref(0),n=o.computed(()=>`transform: translateX(${-e.value}px);`);let s=!1;function r(f){e.value=f}function c(){var f;const p=((f=document.scrollingElement)===null||f===void 0?void 0:f.scrollLeft)||0;r(p)}function i(){c()}function d(){document.addEventListener("scroll",c)}function l(){s&&document.removeEventListener("scroll",c)}function a(){i(),d(),s=!0}return o.watch(t,f=>{f?a():l()},{immediate:!0}),o.onUnmounted(()=>{l()}),n}const Ss=1001,_s=999,ks=998,xs={__name:"DLayoutAdmin",props:{mode:{type:String,default:"vertical"},isMobile:{type:Boolean,default:!1},useMinWidthLayout:{type:Boolean,default:!1},minWidth:{type:Number,default:1200},headerVisible:{type:Boolean,default:!0},headerHeight:{type:Number,default:56},tabVisible:{type:Boolean,default:!0},tabHeight:{type:Number,default:44},fixedHeaderAndTab:{type:Boolean,default:!0},addMainOverflowHidden:{type:Boolean,default:!1},footerVisible:{type:Boolean,default:!0},footerHeight:{type:Number,default:48},fixedFooter:{type:Boolean,default:!0},sidebarVisible:{type:Boolean,default:!0},sidebarWidth:{type:Number,default:200},sidebarCollapsedWidth:{type:Number,default:0},sidebarCollapse:{type:Boolean,default:!1},transitionDuration:{type:Number,default:300},transitionTimingFunction:{type:String,default:"ease-in-out"},collapse:{type:Boolean,default:!1},maskBg:{type:String,default:"rgba(0,0,0,0.3)"}},emits:["update:sidebar-collapse","sidebar-mask-click"],setup(t,{emit:e}){const n=t,s=o.computed(()=>n.useMinWidthLayout?`min-width:${n.minWidth}px;`:""),r=o.computed(()=>n.useMinWidthLayout&&(n.fixedHeaderAndTab||n.fixedFooter)),c=ws(r),i=o.computed(()=>n.fixedHeaderAndTab?c.value:""),d=o.computed(()=>n.fixedFooter?c.value:""),l=o.computed(()=>{const{transitionDuration:k,transitionTimingFunction:z}=n;return{transitionDuration:k,transitionTimingFunction:z}}),a=o.computed(()=>n.mode==="vertical"),f=o.computed(()=>n.isMobile||a.value?1003:1e3),p=o.computed({get(){return n.sidebarCollapse},set(k){e("update:sidebar-collapse",k)}});function u(){e("sidebar-mask-click")}const m=o.computed(()=>n.isMobile&&!p.value),b=o.computed(()=>{const{transitionDuration:k,transitionTimingFunction:z}=n;return`background-color:${n.maskBg};transition-duration:${k}ms;transition-timing-function:${z};`}),y=o.computed(()=>{const{sidebarWidth:k,sidebarCollapsedWidth:z}=n,V=n.isMobile?0:z,A=p.value?V:k;return n.sidebarVisible?A:0}),S=o.computed(()=>n.isMobile?0:y.value),C=o.computed(()=>a.value?S.value:0),h=o.computed(()=>!n.isMobile&&!a.value&&n.headerVisible?n.headerHeight:0),g=o.computed(()=>{let k=0;return n.fixedHeaderAndTab&&(n.headerVisible&&(k+=n.headerHeight),n.tabVisible&&(k+=n.tabHeight)),k}),x=o.computed(()=>n.fixedFooter&&n.footerVisible?n.footerHeight:0);return(k,z)=>(o.openBlock(),o.createElementBlock("div",{class:"d-layout",style:o.normalizeStyle(s.value)},[t.headerVisible?(o.openBlock(),o.createBlock(Pn,o.mergeProps({key:0},l.value,{fixed:t.fixedHeaderAndTab,"z-index":Ss,"min-width":t.minWidth,height:t.headerHeight,"padding-left":C.value,style:i.value}),{default:o.withCtx(()=>[o.renderSlot(k.$slots,"header")]),_:3},16,["fixed","min-width","height","padding-left","style"])):o.createCommentVNode("",!0),t.tabVisible?(o.openBlock(),o.createBlock(Rn,o.mergeProps({key:1},l.value,{fixed:t.fixedHeaderAndTab,"z-index":_s,"min-width":t.minWidth,top:t.headerHeight,height:t.tabHeight,"padding-left":S.value,style:i.value}),{default:o.withCtx(()=>[o.renderSlot(k.$slots,"tab")]),_:3},16,["fixed","min-width","top","height","padding-left","style"])):o.createCommentVNode("",!0),t.sidebarVisible?(o.openBlock(),o.createBlock(Wn,o.mergeProps({key:2},l.value,{"z-index":f.value,width:y.value,"padding-top":h.value}),{default:o.withCtx(()=>[o.renderSlot(k.$slots,"sidebar")]),_:3},16,["z-index","width","padding-top"])):o.createCommentVNode("",!0),m.value?(o.openBlock(),o.createElementBlock("div",{key:3,class:"d-layout-sidebar-mask",style:o.normalizeStyle(b.value),onClick:u},null,4)):o.createCommentVNode("",!0),o.createVNode(Un,o.mergeProps(l.value,{"padding-top":g.value,"padding-bottom":x.value,"padding-left":S.value,"overflow-hidden":t.addMainOverflowHidden}),{default:o.withCtx(()=>[o.renderSlot(k.$slots,"default")]),_:3},16,["padding-top","padding-bottom","padding-left","overflow-hidden"]),t.footerVisible?(o.openBlock(),o.createBlock(Fn,o.mergeProps({key:4},l.value,{fixed:t.fixedFooter,"z-index":ks,"min-width":t.minWidth,height:t.footerHeight,"padding-left":S.value,style:d.value}),{default:o.withCtx(()=>[o.renderSlot(k.$slots,"footer")]),_:3},16,["fixed","min-width","height","padding-left","style"])):o.createCommentVNode("",!0)],4))}},Ot={state:o.reactive({theme:"dark"}),getters:{theme(){return Ot.state.theme}},mutations:{setTheme(t){Ot.state.theme=t,document.documentElement.setAttribute("class",t)}},actions:{toggleTheme(){Ot.state.theme=Ot.state.theme==="dark"?"light":"dark",document.documentElement.setAttribute("class",Ot.state.theme)}}},$s={__name:"DConfigProvider",props:{theme:{type:String,default:"dark"}},setup(t){const e=t;return Ot.mutations.setTheme(e.theme),(n,s)=>o.renderSlot(n.$slots,"default")}};/*!
|
|
2
2
|
* OverlayScrollbars
|
|
3
3
|
* Version: 2.3.0
|
|
4
4
|
*
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* https://github.com/KingSora
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT license.
|
|
9
|
-
*/function q(t,e){if(xe(t))for(let n=0;n<t.length&&e(t[n],n,t)!==!1;n++);else t&&q(Object.keys(t),n=>e(t[n],n,t));return t}function it(t,e){const n=Rt(e);if(gt(e)||n){let r=n?"":{};if(t){const c=window.getComputedStyle(t,null);r=n?oo(t,c,e):e.reduce((i,d)=>(i[d]=oo(t,c,d),i),r)}return r}t&&q(mt(e),r=>Ps(t,r,e[r]))}const St=(t,e)=>{const{o:n,u:s,_:r}=t;let c=n,i;const d=(f,p)=>{const u=c,m=f,b=p||(s?!s(u,m):u!==m);return(b||r)&&(c=m,i=u),[c,b,i]};return[e?f=>d(e(c,i),f):d,f=>[c,!!f,i]]},me=()=>typeof window<"u",qn=me()&&Node.ELEMENT_NODE,{toString:Bs,hasOwnProperty:qe}=Object.prototype,Vt=t=>t===void 0,ke=t=>t===null,Cs=t=>Vt(t)||ke(t)?`${t}`:Bs.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),Pt=t=>typeof t=="number",Rt=t=>typeof t=="string",Ye=t=>typeof t=="boolean",_t=t=>typeof t=="function",gt=t=>Array.isArray(t),he=t=>typeof t=="object"&&!gt(t)&&!ke(t),xe=t=>{const e=!!t&&t.length,n=Pt(e)&&e>-1&&e%1==0;return gt(t)||!_t(t)&&n?e>0&&he(t)?e-1 in t:!0:!1},je=t=>{if(!t||!he(t)||Cs(t)!=="object")return!1;let e;const n="constructor",s=t[n],r=s&&s.prototype,c=qe.call(t,n),i=r&&qe.call(r,"isPrototypeOf");if(s&&!c&&!i)return!1;for(e in t);return Vt(e)||qe.call(t,e)},ge=t=>{const e=HTMLElement;return t?e?t instanceof e:t.nodeType===qn:!1},$e=t=>{const e=Element;return t?e?t instanceof e:t.nodeType===qn:!1},Xe=(t,e,n)=>t.indexOf(e,n),X=(t,e,n)=>(!n&&!Rt(e)&&xe(e)?Array.prototype.push.apply(t,e):t.push(e),t),jt=t=>{const e=Array.from,n=[];return e&&t?e(t):(t instanceof Set?t.forEach(s=>{X(n,s)}):q(t,s=>{X(n,s)}),n)},Ge=t=>!!t&&t.length===0,Dt=(t,e,n)=>{q(t,r=>r&&r.apply(void 0,e||[])),!n&&(t.length=0)},Be=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),mt=t=>t?Object.keys(t):[],et=(t,e,n,s,r,c,i)=>{const d=[e,n,s,r,c,i];return(typeof t!="object"||ke(t))&&!_t(t)&&(t={}),q(d,l=>{q(mt(l),a=>{const f=l[a];if(t===f)return!0;const p=gt(f);if(f&&(je(f)||p)){const u=t[a];let m=u;p&&!gt(u)?m=[]:!p&&!je(u)&&(m={}),t[a]=et(m,f)}else t[a]=f})}),t},Ke=t=>{for(const e in t)return!1;return!0},Yn=(t,e,n,s)=>{if(Vt(s))return n?n[t]:e;n&&(Rt(s)||Pt(s))&&(n[t]=s)},lt=(t,e,n)=>{if(Vt(n))return t?t.getAttribute(e):null;t&&t.setAttribute(e,n)},at=(t,e)=>{t&&t.removeAttribute(e)},Xt=(t,e,n,s)=>{if(n){const r=lt(t,e)||"",c=new Set(r.split(" "));c[s?"add":"delete"](n);const i=jt(c).join(" ").trim();lt(t,e,i)}},Ds=(t,e,n)=>{const s=lt(t,e)||"";return new Set(s.split(" ")).has(n)},kt=(t,e)=>Yn("scrollLeft",0,t,e),Lt=(t,e)=>Yn("scrollTop",0,t,e),Je=me()&&Element.prototype,jn=(t,e)=>{const n=[],s=e?$e(e)?e:null:document;return s?X(n,s.querySelectorAll(t)):n},Ts=(t,e)=>{const n=e?$e(e)?e:null:document;return n?n.querySelector(t):null},Ce=(t,e)=>$e(t)?(Je.matches||Je.msMatchesSelector).call(t,e):!1,Ze=t=>t?jt(t.childNodes):[],Ht=t=>t?t.parentElement:null,ne=(t,e)=>{if($e(t)){const n=Je.closest;if(n)return n.call(t,e);do{if(Ce(t,e))return t;t=Ht(t)}while(t)}return null},Es=(t,e,n)=>{const s=t&&ne(t,e),r=t&&Ts(n,s),c=ne(r,e)===s;return s&&r?s===t||r===t||c&&ne(ne(t,n),e)!==s:!1},Qe=(t,e,n)=>{if(n&&t){let s=e,r;xe(n)?(r=document.createDocumentFragment(),q(n,c=>{c===s&&(s=c.previousSibling),r.appendChild(c)})):r=n,e&&(s?s!==e&&(s=s.nextSibling):s=t.firstChild),t.insertBefore(r,s||null)}},yt=(t,e)=>{Qe(t,null,e)},vs=(t,e)=>{Qe(Ht(t),t,e)},Xn=(t,e)=>{Qe(Ht(t),t&&t.nextSibling,e)},Tt=t=>{if(xe(t))q(jt(t),e=>Tt(e));else if(t){const e=Ht(t);e&&e.removeChild(t)}},Gt=t=>{const e=document.createElement("div");return t&<(e,"class",t),e},Gn=t=>{const e=Gt();return e.innerHTML=t.trim(),q(Ze(e),n=>Tt(n))},tn=t=>t.charAt(0).toUpperCase()+t.slice(1),Ns=()=>Gt().style,Is=["-webkit-","-moz-","-o-","-ms-"],zs=["WebKit","Moz","O","MS","webkit","moz","o","ms"],en={},nn={},Os=t=>{let e=nn[t];if(Be(nn,t))return e;const n=tn(t),s=Ns();return q(Is,r=>{const c=r.replace(/-/g,"");return!(e=[t,r+t,c+n,tn(c)+n].find(d=>s[d]!==void 0))}),nn[t]=e||""},oe=t=>{if(me()){let e=en[t]||window[t];return Be(en,t)||(q(zs,n=>(e=e||window[n+tn(t)],!e)),en[t]=e),e}},Vs=oe("MutationObserver"),Kn=oe("IntersectionObserver"),se=oe("ResizeObserver"),Jn=oe("cancelAnimationFrame"),Zn=oe("requestAnimationFrame"),on=oe("ScrollTimeline"),De=me()&&window.setTimeout,sn=me()&&window.clearTimeout,Ls=/[^\x20\t\r\n\f]+/g,Qn=(t,e,n)=>{const s=t&&t.classList;let r,c=0,i=!1;if(s&&e&&Rt(e)){const d=e.match(Ls)||[];for(i=d.length>0;r=d[c++];)i=!!n(s,r)&&i}return i},rn=(t,e)=>{Qn(t,e,(n,s)=>n.remove(s))},Mt=(t,e)=>(Qn(t,e,(n,s)=>n.add(s)),rn.bind(0,t,e)),Te=(t,e,n,s)=>{if(t&&e){let r=!0;return q(n,c=>{const i=s?s(t[c]):t[c],d=s?s(e[c]):e[c];i!==d&&(r=!1)}),r}return!1},to=(t,e)=>Te(t,e,["w","h"]),eo=(t,e)=>Te(t,e,["x","y"]),Hs=(t,e)=>Te(t,e,["t","r","b","l"]),no=(t,e,n)=>Te(t,e,["width","height"],n&&(s=>Math.round(s))),ht=()=>{},Kt=t=>{let e;const n=t?De:Zn,s=t?sn:Jn;return[r=>{s(e),e=n(r,_t(t)?t():t)},()=>s(e)]},cn=(t,e)=>{let n,s,r,c=ht;const{g:i,v:d,p:l}=e||{},a=function(b){c(),sn(n),n=s=void 0,c=ht,t.apply(this,b)},f=m=>l&&s?l(s,m):m,p=()=>{c!==ht&&a(f(r)||r)},u=function(){const b=jt(arguments),g=_t(i)?i():i;if(Pt(g)&&g>=0){const C=_t(d)?d():d,h=Pt(C)&&C>=0,y=g>0?De:Zn,x=g>0?sn:Jn,z=f(b)||b,V=a.bind(0,z);c();const A=y(V,g);c=()=>x(A),h&&!n&&(n=De(p,C)),s=r=z}else a(b)};return u.m=p,u},Ms={opacity:1,zIndex:1},Ee=(t,e)=>{const n=t||"",s=e?parseFloat(n):parseInt(n,10);return s===s?s:0},As=(t,e)=>!Ms[t]&&Pt(e)?`${e}px`:e,oo=(t,e,n)=>String((e!=null?e[n]||e.getPropertyValue(n):t.style[n])||""),Ps=(t,e,n)=>{try{const{style:s}=t;Vt(s[e])?s.setProperty(e,n):s[e]=As(e,n)}catch{}},ye=t=>it(t,"direction")==="rtl",so=(t,e,n)=>{const s=e?`${e}-`:"",r=n?`-${n}`:"",c=`${s}top${r}`,i=`${s}right${r}`,d=`${s}bottom${r}`,l=`${s}left${r}`,a=it(t,[c,i,d,l]);return{t:Ee(a[c],!0),r:Ee(a[i],!0),b:Ee(a[d],!0),l:Ee(a[l],!0)}},re=(t,e)=>`translate${gt(t)?`(${t[0]},${t[1]})`:`${e?"X":"Y"}(${t})`}`,{round:ro}=Math,ln={w:0,h:0},be=t=>t?{w:t.offsetWidth,h:t.offsetHeight}:ln,ve=t=>t?{w:t.clientWidth,h:t.clientHeight}:ln,Ne=t=>t?{w:t.scrollWidth,h:t.scrollHeight}:ln,Ie=t=>{const e=parseFloat(it(t,"height"))||0,n=parseFloat(it(t,"width"))||0;return{w:n-ro(n),h:e-ro(e)}},Et=t=>t.getBoundingClientRect(),ce=t=>!!(t&&(t.height||t.width));let ze;const Rs=()=>{if(Vt(ze)){ze=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get(){ze=!0}}))}catch{}}return ze},co=t=>t.split(" "),Fs=(t,e,n,s)=>{q(co(e),r=>{t.removeEventListener(r,n,s)})},nt=(t,e,n,s)=>{var r;const c=Rs(),i=(r=c&&s&&s.S)!=null?r:c,d=s&&s.$||!1,l=s&&s.C||!1,a=[],f=c?{passive:i,capture:d}:d;return q(co(e),p=>{const u=l?m=>{t.removeEventListener(p,u,d),n&&n(m)}:n;X(a,Fs.bind(null,t,p,u,d)),t.addEventListener(p,u,f)}),Dt.bind(0,a)},io=t=>t.stopPropagation(),lo=t=>t.preventDefault(),Ws={x:0,y:0},an=t=>{const e=t?Et(t):0;return e?{x:e.left+window.pageYOffset,y:e.top+window.pageXOffset}:Ws},ao=(t,e)=>{q(gt(e)?e:[e],t)},dn=t=>{const e=new Map,n=(c,i)=>{if(c){const d=e.get(c);ao(l=>{d&&d[l?"delete":"clear"](l)},i)}else e.forEach(d=>{d.clear()}),e.clear()},s=(c,i)=>{if(Rt(c)){const a=e.get(c)||new Set;return e.set(c,a),ao(f=>{_t(f)&&a.add(f)},i),n.bind(0,c,i)}Ye(i)&&i&&n();const d=mt(c),l=[];return q(d,a=>{const f=c[a];f&&X(l,s(a,f))}),Dt.bind(0,l)},r=(c,i)=>{const d=e.get(c);q(jt(d),l=>{i&&!Ge(i)?l.apply(0,i):l()})};return s(t||{}),[s,n,r]},fo=t=>JSON.stringify(t,(e,n)=>{if(_t(n))throw new Error;return n}),Us={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},uo=(t,e)=>{const n={},s=mt(e).concat(mt(t));return q(s,r=>{const c=t[r],i=e[r];if(he(c)&&he(i))et(n[r]={},uo(c,i)),Ke(n[r])&&delete n[r];else if(Be(e,r)&&i!==c){let d=!0;if(gt(c)||gt(i))try{fo(c)===fo(i)&&(d=!1)}catch{}d&&(n[r]=i)}}),n},we="data-overlayscrollbars",po="os-environment",mo=`${po}-flexbox-glue`,qs=`${mo}-max`,ho="os-scrollbar-hidden",fn=`${we}-initialize`,xt=we,go=`${xt}-overflow-x`,yo=`${xt}-overflow-y`,ie="overflowVisible",Ys="scrollbarHidden",bo="scrollbarPressed",Oe="updating",Ft=`${we}-viewport`,un="arrange",wo="scrollbarHidden",le=ie,pn=`${we}-padding`,js=le,So=`${we}-content`,mn="os-size-observer",Xs=`${mn}-appear`,Gs=`${mn}-listener`,Ks="os-trinsic-observer",Js="os-no-css-vars",Zs="os-theme-none",dt="os-scrollbar",Qs=`${dt}-rtl`,tr=`${dt}-horizontal`,er=`${dt}-vertical`,_o=`${dt}-track`,hn=`${dt}-handle`,nr=`${dt}-visible`,or=`${dt}-cornerless`,ko=`${dt}-transitionless`,xo=`${dt}-interaction`,$o=`${dt}-unusable`,gn=`${dt}-auto-hide`,Bo=`${gn}-hidden`,Co=`${dt}-wheel`,sr=`${_o}-interactive`,rr=`${hn}-interactive`,Do={},Jt=()=>Do,cr=t=>{const e=[];return q(gt(t)?t:[t],n=>{const s=mt(n);q(s,r=>{X(e,Do[r]=n[r])})}),e},ir="__osOptionsValidationPlugin",lr="__osSizeObserverPlugin",yn="__osScrollbarsHidingPlugin",ar="__osClickScrollPlugin";let bn;const To=(t,e,n,s)=>{yt(t,e);const r=ve(e),c=be(e),i=Ie(n);return s&&Tt(e),{x:c.h-r.h+i.h,y:c.w-r.w+i.w}},dr=t=>{let e=!1;const n=Mt(t,ho);try{e=it(t,Os("scrollbar-width"))==="none"||window.getComputedStyle(t,"::-webkit-scrollbar").getPropertyValue("display")==="none"}catch{}return n(),e},fr=(t,e)=>{const n="hidden";it(t,{overflowX:n,overflowY:n,direction:"rtl"}),kt(t,0);const s=an(t),r=an(e);kt(t,-999);const c=an(e);return{i:s.x===r.x,n:r.x!==c.x}},ur=(t,e)=>{const n=Mt(t,mo),s=Et(t),r=Et(e),c=no(r,s,!0),i=Mt(t,qs),d=Et(t),l=Et(e),a=no(l,d,!0);return n(),i(),c&&a},pr=()=>{const{body:t}=document,n=Gn(`<div class="${po}"><div></div></div>`)[0],s=n.firstChild,[r,,c]=dn(),[i,d]=St({o:To(t,n,s),u:eo},To.bind(0,t,n,s,!0)),[l]=d(),a=dr(n),f={x:l.x===0,y:l.y===0},p={elements:{host:null,padding:!a,viewport:h=>a&&h===h.ownerDocument.body&&h,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},u=et({},Us),m=et.bind(0,{},u),b=et.bind(0,{},p),g={k:l,I:f,A:a,H:it(n,"zIndex")==="-1",B:!!on,V:fr(n,s),Y:ur(n,s),j:r.bind(0,"z"),N:r.bind(0,"r"),q:b,F:h=>et(p,h)&&b(),G:m,X:h=>et(u,h)&&m(),U:et({},p),W:et({},u)},S=window.addEventListener,C=cn(h=>c(h?"z":"r"),{g:33,v:99});if(at(n,"style"),Tt(n),S("resize",C.bind(0,!1)),!a&&(!f.x||!f.y)){let h;S("resize",()=>{const y=Jt()[yn];h=h||y&&y.R(),h&&h(g,i,C.bind(0,!0))})}return g},ft=()=>(bn||(bn=pr()),bn),wn=(t,e)=>_t(e)?e.apply(0,t):e,mr=(t,e,n,s)=>{const r=Vt(s)?n:s;return wn(t,r)||e.apply(0,t)},Eo=(t,e,n,s)=>{const r=Vt(s)?n:s,c=wn(t,r);return!!c&&(ge(c)?c:e.apply(0,t))},hr=(t,e,n)=>{const{nativeScrollbarsOverlaid:s,body:r}=n||{},{I:c,A:i}=ft(),{nativeScrollbarsOverlaid:d,body:l}=e,a=s??d,f=Vt(r)?l:r,p=(c.x||c.y)&&a,u=t&&(ke(f)?!i:f);return!!p||!!u},Sn=new WeakMap,gr=(t,e)=>{Sn.set(t,e)},yr=t=>{Sn.delete(t)},vo=t=>Sn.get(t),No=(t,e)=>t?e.split(".").reduce((n,s)=>n&&Be(n,s)?n[s]:void 0,t):void 0,_n=(t,e,n)=>s=>[No(t,s),n||No(e,s)!==void 0],Io=t=>{let e=t;return[()=>e,n=>{e=et({},e,n)}]},Ve="tabindex",Le=Gt.bind(0,""),kn=t=>{yt(Ht(t),Ze(t)),Tt(t)},br=t=>{const e=ft(),{q:n,A:s}=e,r=Jt()[yn],c=r&&r.T,{elements:i}=n(),{host:d,padding:l,viewport:a,content:f}=i,p=ge(t),u=p?{}:t,{elements:m}=u,{host:b,padding:g,viewport:S,content:C}=m||{},h=p?t:u.target,y=Ce(h,"textarea"),x=h.ownerDocument,k=x.documentElement,z=h===x.body,V=x.defaultView,A=mr.bind(0,[h]),R=Eo.bind(0,[h]),tt=wn.bind(0,[h]),Y=A.bind(0,Le,a),P=R.bind(0,Le,f),_=Y(S),w=_===h,$=w&&z,D=!w&&P(C),L=!w&&ge(_)&&_===D,I=L&&!!tt(f),T=I?Y():_,N=I?D:P(),U=$?k:L?T:_,G=y?A(Le,d,b):h,B=$?U:G,E=L?N:D,v=x.activeElement,F=!w&&V.top===V&&v===h,H={Z:h,J:B,K:U,tt:!w&&R(Le,l,g),nt:E,ot:!w&&!s&&c&&c(e),st:$?k:U,et:$?x:U,ct:V,rt:x,lt:y,it:z,ut:p,ft:w,dt:L,_t:(st,ut)=>Ds(U,w?xt:Ft,w?ut:st),ht:(st,ut,pt)=>Xt(U,w?xt:Ft,w?ut:st,pt)},K=mt(H).reduce((st,ut)=>{const pt=H[ut];return X(st,pt&&ge(pt)&&!Ht(pt)?pt:!1)},[]),Z=st=>st?Xe(K,st)>-1:null,{Z:Q,J:ot,tt:J,K:j,nt:rt,ot:$t}=H,bt=[()=>{at(ot,xt),at(ot,fn),at(Q,fn),z&&(at(k,xt),at(k,fn))}],qt=y&&Z(ot);let Qt=y?Q:Ze([rt,j,J,ot,Q].find(st=>Z(st)===!1));const ae=$?Q:rt||j;return[H,()=>{lt(ot,xt,w?"viewport":"host"),lt(J,pn,""),lt(rt,So,""),w||lt(j,Ft,"");const st=z&&!w?Mt(Ht(h),ho):ht;if(qt&&(Xn(Q,ot),X(bt,()=>{Xn(ot,Q),Tt(ot)})),yt(ae,Qt),yt(ot,J),yt(J||ot,!w&&j),yt(j,rt),X(bt,()=>{st(),at(J,pn),at(rt,So),at(j,go),at(j,yo),at(j,Ft),Z(rt)&&kn(rt),Z(j)&&kn(j),Z(J)&&kn(J)}),s&&!w&&(Xt(j,Ft,wo,!0),X(bt,at.bind(0,j,Ft))),$t&&(vs(j,$t),X(bt,Tt.bind(0,$t))),F){const ut=lt(j,Ve);lt(j,Ve,"-1"),j.focus();const pt=()=>ut?lt(j,Ve,ut):at(j,Ve),Bt=nt(x,"pointerdown keydown",()=>{pt(),Bt()});X(bt,[pt,Bt])}else v&&v.focus&&v.focus();Qt=0},Dt.bind(0,bt)]},wr=(t,e)=>{const{nt:n}=t,[s]=e;return r=>{const{Y:c}=ft(),{gt:i}=s(),{vt:d}=r,l=(n||!c)&&d;return l&&it(n,{height:i?"":"100%"}),{wt:l,bt:l}}},Sr=(t,e)=>{const[n,s]=e,{J:r,tt:c,K:i,ft:d}=t,[l,a]=St({u:Hs,o:so()},so.bind(0,r,"padding",""));return(f,p,u)=>{let[m,b]=a(u);const{A:g,Y:S}=ft(),{yt:C}=n(),{wt:h,bt:y,St:x}=f,[k,z]=p("paddingAbsolute");(h||b||!S&&y)&&([m,b]=l(u));const A=!d&&(z||x||b);if(A){const R=!k||!c&&!g,tt=m.r+m.l,Y=m.t+m.b,P={marginRight:R&&!C?-tt:0,marginBottom:R?-Y:0,marginLeft:R&&C?-tt:0,top:R?-m.t:0,right:R?C?-m.r:"auto":0,left:R?C?"auto":-m.l:0,width:R?`calc(100% + ${tt}px)`:""},_={paddingTop:R?m.t:0,paddingRight:R?m.r:0,paddingBottom:R?m.b:0,paddingLeft:R?m.l:0};it(c||i,P),it(i,_),s({tt:m,$t:!R,P:c?_:et({},P,_)})}return{xt:A}}},{max:xn}=Math,Wt=xn.bind(0,0),zo="visible",Oo="hidden",_r=42,He={u:to,o:{w:0,h:0}},kr={u:eo,o:{x:Oo,y:Oo}},xr=(t,e)=>{const n=window.devicePixelRatio%1!==0?1:0,s={w:Wt(t.w-e.w),h:Wt(t.h-e.h)};return{w:s.w>n?s.w:0,h:s.h>n?s.h:0}},Me=t=>t.indexOf(zo)===0,$r=(t,e)=>{const[n,s]=e,{J:r,tt:c,K:i,ot:d,ft:l,ht:a,it:f,ct:p}=t,{k:u,Y:m,A:b,I:g}=ft(),S=Jt()[yn],C=!l&&!b&&(g.x||g.y),h=f&&l,[y,x]=St(He,Ie.bind(0,i)),[k,z]=St(He,Ne.bind(0,i)),[V,A]=St(He),[R,tt]=St(He),[Y]=St(kr),P=(I,T)=>{if(it(i,{height:""}),T){const{$t:N,tt:M}=n(),{Ct:U,M:G}=I,B=Ie(r),E=ve(r),v=it(i,"boxSizing")==="content-box",F=N||v?M.b+M.t:0,H=!(g.x&&v);it(i,{height:E.h+B.h+(U.x&&H?G.x:0)-F})}},_=(I,T)=>{const N=!b&&!I?_r:0,M=(Z,Q,ot)=>{const J=it(i,Z),rt=(T?T[Z]:J)==="scroll";return[J,rt,rt&&!b?Q?N:ot:0,Q&&!!N]},[U,G,B,E]=M("overflowX",g.x,u.x),[v,F,H,K]=M("overflowY",g.y,u.y);return{Ot:{x:U,y:v},Ct:{x:G,y:F},M:{x:B,y:H},D:{x:E,y:K}}},w=(I,T,N,M)=>{const U=(F,H)=>{const K=Me(F),Z=H&&K&&F.replace(`${zo}-`,"")||"";return[H&&!K?F:"",Me(Z)?"hidden":Z]},[G,B]=U(N.x,T.x),[E,v]=U(N.y,T.y);return M.overflowX=B&&E?B:G,M.overflowY=v&&G?v:E,_(I,M)},$=(I,T,N,M)=>{const{M:U,D:G}=I,{x:B,y:E}=G,{x:v,y:F}=U,{P:H}=n(),K=T?"marginLeft":"marginRight",Z=T?"paddingLeft":"paddingRight",Q=H[K],ot=H.marginBottom,J=H[Z],j=H.paddingBottom;M.width=`calc(100% + ${F+-1*Q}px)`,M[K]=-F+Q,M.marginBottom=-v+ot,N&&(M[Z]=J+(E?F:0),M.paddingBottom=j+(B?v:0))},[D,L]=S?S.L(C,m,i,d,n,_,$):[()=>C,()=>[ht]];return(I,T,N)=>{const{wt:M,Tt:U,bt:G,xt:B,vt:E,St:v}=I,{gt:F,yt:H}=n(),[K,Z]=T("showNativeOverlaidScrollbars"),[Q,ot]=T("overflow"),J=K&&g.x&&g.y,j=!l&&!m&&(M||G||U||Z||E),rt=Me(Q.x),$t=Me(Q.y),bt=rt||$t;let qt=x(N),Qt=z(N),ae=A(N),de=tt(N),st;if(Z&&b&&a(wo,Ys,!J),j&&(st=_(J),P(st,F)),M||B||G||v||Z){bt&&a(le,ie,!1);const[At,Yt]=L(J,H,st),[Nt,We]=qt=y(N),[It,Se]=Qt=k(N),te=ve(i);let On=It,Vn=te;At(),(Se||We||Z)&&Yt&&!J&&D(Yt,It,Nt,H)&&(Vn=ve(i),On=Ne(i));const mc={w:Wt(xn(It.w,On.w)+Nt.w),h:Wt(xn(It.h,On.h)+Nt.h)},Zo={w:Wt((h?p.innerWidth:Vn.w+Wt(te.w-It.w))+Nt.w),h:Wt((h?p.innerHeight+Nt.h:Vn.h+Wt(te.h-It.h))+Nt.h)};de=R(Zo),ae=V(xr(mc,Zo),N)}const[ut,pt]=de,[Bt,Pe]=ae,[En,vn]=Qt,[Nn,In]=qt,vt={x:Bt.w>0,y:Bt.h>0},Re=rt&&$t&&(vt.x||vt.y)||rt&&vt.x&&!vt.y||$t&&vt.y&&!vt.x;if(B||v||In||vn||pt||Pe||ot||Z||j){const At={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},Yt=w(J,vt,Q,At),Nt=D(Yt,En,Nn,H);l||$(Yt,H,Nt,At),j&&P(Yt,F),l?(lt(r,go,At.overflowX),lt(r,yo,At.overflowY)):it(i,At)}Xt(r,xt,ie,Re),Xt(c,pn,js,Re),l||Xt(i,Ft,le,bt);const[zn,Fe]=Y(_(J).Ot);return s({Ot:zn,zt:{x:ut.w,y:ut.h},Et:{x:Bt.w,y:Bt.h},At:vt}),{It:Fe,Ht:pt,Lt:Pe}}},Vo=(t,e,n)=>{const s={},r=e||{},c=mt(t).concat(mt(r));return q(c,i=>{const d=t[i],l=r[i];s[i]=!!(n||d||l)}),s},Br=(t,e)=>{const{Z:n,K:s,ht:r,ft:c}=t,{A:i,I:d,Y:l}=ft(),a=!i&&(d.x||d.y),f=[wr(t,e),Sr(t,e),$r(t,e)];return(p,u,m)=>{const b=Vo(et({wt:!1,xt:!1,St:!1,vt:!1,Ht:!1,Lt:!1,It:!1,Tt:!1,bt:!1,Pt:!1},u),{},m),g=a||!l,S=g&&kt(s),C=g&&Lt(s);r("",Oe,!0);let h=b;return q(f,y=>{h=Vo(h,y(h,p,!!m)||{},m)}),kt(s,S),Lt(s,C),r("",Oe),c||(kt(n,0),Lt(n,0)),h}},Cr=(t,e,n)=>{let s,r=!1;const c=()=>{r=!0},i=d=>{if(n){const l=n.reduce((a,f)=>{if(f){const[p,u]=f,m=u&&p&&(d?d(p):jn(p,t));m&&m.length&&u&&Rt(u)&&X(a,[m,u.trim()],!0)}return a},[]);q(l,a=>q(a[0],f=>{const p=a[1],u=s.get(f)||[];if(t.contains(f)){const b=nt(f,p,g=>{r?(b(),s.delete(f)):e(g)});s.set(f,X(u,b))}else Dt(u),s.delete(f)}))}};return n&&(s=new WeakMap,i()),[c,i]},Lo=(t,e,n,s)=>{let r=!1;const{Mt:c,Dt:i,Rt:d,kt:l,Bt:a,Vt:f}=s||{},p=cn(()=>{r&&n(!0)},{g:33,v:99}),[u,m]=Cr(t,p,d),b=c||[],g=i||[],S=b.concat(g),C=(y,x)=>{const k=a||ht,z=f||ht,V=new Set,A=new Set;let R=!1,tt=!1;if(q(y,Y=>{const{attributeName:P,target:_,type:w,oldValue:$,addedNodes:D,removedNodes:L}=Y,I=w==="attributes",T=w==="childList",N=t===_,M=I&&Rt(P)?lt(_,P):0,U=M!==0&&$!==M,G=Xe(g,P)>-1&&U;if(e&&(T||!N)){const B=!I,E=I&&U,v=E&&l&&Ce(_,l),H=(v?!k(_,P,$,M):B||E)&&!z(Y,!!v,t,s);q(D,K=>V.add(K)),q(L,K=>V.add(K)),tt=tt||H}!e&&N&&U&&!k(_,P,$,M)&&(A.add(P),R=R||G)}),V.size>0&&m(Y=>jt(V).reduce((P,_)=>(X(P,jn(Y,_)),Ce(_,Y)?X(P,_):P),[])),e)return!x&&tt&&n(!1),[!1];if(A.size>0||R){const Y=[jt(A),R];return!x&&n.apply(0,Y),Y}},h=new Vs(y=>C(y));return h.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:S,subtree:e,childList:e,characterData:e}),r=!0,[()=>{r&&(u(),h.disconnect(),r=!1)},()=>{if(r){p.m();const y=h.takeRecords();return!Ge(y)&&C(y,!0)}}]},Ae=3333333,Ho=(t,e,n)=>{const{Yt:s=!1,Pt:r=!1}=n||{},c=Jt()[lr],{V:i}=ft(),l=Gn(`<div class="${mn}"><div class="${Gs}"></div></div>`)[0],a=l.firstChild,f=ye.bind(0,t),[p]=St({o:void 0,_:!0,u:(g,S)=>!(!g||!ce(g)&&ce(S))}),u=g=>{const S=gt(g)&&g.length>0&&he(g[0]),C=!S&&Ye(g[0]);let h=!1,y=!1,x=!0;if(S){const[k,,z]=p(g.pop().contentRect),V=ce(k),A=ce(z);h=!z&&!!A||!V,y=!A&&V,x=!h}else C?[,x]=g:y=g===!0;if(s&&x){const k=C?g[0]:ye(l);kt(l,k?i.n?-Ae:i.i?0:Ae:Ae),Lt(l,Ae)}h||e({wt:!C,jt:C?g:void 0,Pt:!!y})},m=[];let b=r?u:!1;return[()=>{Dt(m),Tt(l)},()=>{if(se){const g=new se(u);g.observe(a),X(m,()=>{g.disconnect()})}else if(c){const[g,S]=c.O(a,u,r);b=g,X(m,S)}if(s){const[g]=St({o:void 0},f);X(m,nt(l,"scroll",S=>{const C=g(),[h,y,x]=C;y&&(rn(a,"ltr rtl"),h?Mt(a,"rtl"):Mt(a,"ltr"),u([!!h,y,x])),io(S)}))}b&&(Mt(l,Xs),X(m,nt(l,"animationstart",b,{C:!!se}))),(se||c)&&yt(t,l)}]},Dr=t=>t.h===0||t.isIntersecting||t.intersectionRatio>0,Tr=(t,e)=>{let n;const s=Gt(Ks),r=[],[c]=St({o:!1}),i=(l,a)=>{if(l){const f=c(Dr(l)),[,p]=f;if(p)return!a&&e(f),[f]}},d=(l,a)=>{if(l&&l.length>0)return i(l.pop(),a)};return[()=>{Dt(r),Tt(s)},()=>{if(Kn)n=new Kn(l=>d(l),{root:t}),n.observe(s),X(r,()=>{n.disconnect()});else{const l=()=>{const p=be(s);i(p)},[a,f]=Ho(s,l);X(r,a),f(),l()}yt(t,s)},()=>{if(n)return d(n.takeRecords(),!0)}]},Mo=`[${xt}]`,Er=`[${Ft}]`,$n=["tabindex"],Ao=["wrap","cols","rows"],Bn=["id","class","style","open"],vr=(t,e,n)=>{let s,r,c;const{J:i,K:d,nt:l,lt:a,ft:f,_t:p,ht:u}=t,{Y:m}=ft(),[b]=St({u:to,o:{w:0,h:0}},()=>{const $=p(le,ie),D=p(un,""),L=D&&kt(d),I=D&&Lt(d);u(le,ie),u(un,""),u("",Oe,!0);const T=Ne(l),N=Ne(d),M=Ie(d);return u(le,ie,$),u(un,"",D),u("",Oe),kt(d,L),Lt(d,I),{w:N.w+T.w+M.w,h:N.h+T.h+M.h}}),g=a?Ao:Bn.concat(Ao),S=cn(n,{g:()=>s,v:()=>r,p($,D){const[L]=$,[I]=D;return[mt(L).concat(mt(I)).reduce((T,N)=>(T[N]=L[N]||I[N],T),{})]}}),C=$=>{q($||$n,D=>{if(Xe($n,D)>-1){const L=lt(i,D);Rt(L)?lt(d,D,L):at(d,D)}})},h=($,D)=>{const[L,I]=$,T={vt:I};return e({gt:L}),!D&&n(T),T},y=({wt:$,jt:D,Pt:L})=>{const I=!$||L?n:S;let T=!1;if(D){const[N,M]=D;T=M,e({yt:N})}I({wt:$,Pt:L,St:T})},x=($,D)=>{const[,L]=b(),I={bt:L};return L&&!D&&($?n:S)(I),I},k=($,D,L)=>{const I={Tt:D};return D?!L&&S(I):f||C($),I},[z,V,A]=l||!m?Tr(i,h):[ht,ht,ht],[R,tt]=f?[ht,ht]:Ho(i,y,{Pt:!0,Yt:!0}),[Y,P]=Lo(i,!1,k,{Dt:Bn,Mt:Bn.concat($n)});let _;const w=f&&se&&new se($=>{const D=$[$.length-1].contentRect,L=ce(D),T=!ce(_)&&L;y({wt:!0,Pt:T}),_=D});return[()=>{z(),R(),c&&c[0](),w&&w.disconnect(),Y()},()=>{w&&w.observe(i),C(),tt(),V()},()=>{const $={},D=P(),L=A(),I=c&&c[1]();return D&&et($,k.apply(0,X(D,!0))),L&&et($,h.apply(0,X(L,!0))),I&&et($,x.apply(0,X(I,!0))),$},$=>{const[D]=$("update.ignoreMutation"),[L,I]=$("update.attributes"),[T,N]=$("update.elementEvents"),[M,U]=$("update.debounce"),G=N||I,B=E=>_t(D)&&D(E);if(G&&(c&&(c[1](),c[0]()),c=Lo(l||d,!0,x,{Mt:g.concat(L||[]),Rt:T,kt:Mo,Vt:(E,v)=>{const{target:F,attributeName:H}=E;return(!v&&H&&!f?Es(F,Mo,Er):!1)||!!ne(F,`.${dt}`)||!!B(E)}})),U)if(S.m(),gt(M)){const E=M[0],v=M[1];s=Pt(E)&&E,r=Pt(v)&&v}else Pt(M)?(s=M,r=!1):(s=!1,r=!1)}]},Po={x:0,y:0},Nr=t=>({tt:{t:0,r:0,b:0,l:0},$t:!1,P:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},zt:Po,Et:Po,Ot:{x:"hidden",y:"hidden"},At:{x:!1,y:!1},gt:!1,yt:ye(t.J)}),Ir=(t,e)=>{const n=_n(e,{}),[s,r,c]=dn(),[i,d,l]=br(t),a=Io(Nr(i)),[f,p]=a,u=Br(i,a),m=(y,x,k)=>{const V=mt(y).some(A=>!!y[A])||!Ke(x)||k;return V&&c("u",[y,x,k]),V},[b,g,S,C]=vr(i,p,y=>m(u(n,y),{},!1)),h=f.bind(0);return h.Nt=y=>s("u",y),h.qt=()=>{const{Z:y,K:x,rt:k,it:z}=i,V=z?k.documentElement:y,A=kt(V),R=Lt(V);g(),d(),kt(x,A),Lt(x,R)},h.Ft=i,[(y,x)=>{const k=_n(e,y,x);return C(k),m(u(k,S(),x),y,!!x)},h,()=>{r(),b(),l()}]},{round:Ro}=Math,zr=t=>{const{width:e,height:n}=Et(t),{w:s,h:r}=be(t);return{x:Ro(e)/s||1,y:Ro(n)/r||1}},Or=(t,e,n)=>{const s=e.scrollbars,{button:r,isPrimary:c,pointerType:i}=t,{pointers:d}=s;return r===0&&c&&s[n?"dragScroll":"clickScroll"]&&(d||[]).includes(i)},Fo="pointerup pointerleave pointercancel lostpointercapture",Vr=t=>({transform:[re("0%",t),re("-100%",t)],[t?"left":"top"]:["0%","100%"]}),Lr=(t,e)=>nt(t,"mousedown",nt.bind(0,e,"click",io,{C:!0,$:!0}),{$:!0}),Hr=(t,e,n,s,r,c,i)=>{const{V:d}=ft(),{Gt:l,Xt:a,Ut:f}=s,p=`scroll${i?"Left":"Top"}`,u=`client${i?"X":"Y"}`,m=i?"width":"height",b=i?"left":"top",g=i?"w":"h",S=i?"x":"y",C=(h,y)=>x=>{const{Et:k}=c(),z=be(a)[g]-be(l)[g],A=y*x/z*k[S],tt=ye(f)&&i?d.n||d.i?1:-1:1;r[p]=h+A*tt};return nt(a,"pointerdown",h=>{const y=ne(h.target,`.${hn}`)===l,x=y?l:a;if(Xt(e,xt,bo,!0),Or(h,t,y)){const k=!y&&h.shiftKey,z=()=>Et(l),V=()=>Et(a),A=(T,N)=>(T||z())[b]-(N||V())[b],R=C(r[p]||0,1/zr(r)[S]),tt=h[u],Y=z(),P=V(),_=Y[m],w=A(Y,P)+_/2,$=tt-P[b],D=y?0:$-w,L=T=>{Dt(I),x.releasePointerCapture(T.pointerId)},I=[Xt.bind(0,e,xt,bo),nt(n,Fo,L),nt(n,"selectstart",T=>lo(T),{S:!1}),nt(a,Fo,L),nt(a,"pointermove",T=>{const N=T[u]-tt;(y||k)&&R(D+N)})];if(k)R(D);else if(!y){const T=Jt()[ar];T&&X(I,T.O(R,A,D,_,$))}x.setPointerCapture(h.pointerId)}})},Mr=({Gt:t},e,n)=>{if(!e)return ht;const s=t.animate(Vr(n),{timeline:e});return()=>{s.cancel()}},Ar=(t,e)=>(n,s,r,c,i,d,l)=>{const{Ut:a}=n,[f,p]=Kt(333),u=!!i.scrollBy;let m=!0;return Dt.bind(0,[nt(a,"pointerenter",()=>{s(xo,!0)}),nt(a,"pointerleave pointercancel",()=>{s(xo)}),nt(a,"wheel",b=>{const{deltaX:g,deltaY:S,deltaMode:C}=b;u&&m&&C===0&&Ht(a)===c&&i.scrollBy({left:g,top:S,behavior:"smooth"}),m=!1,s(Co,!0),f(()=>{m=!0,s(Co)}),lo(b)},{S:!1,$:!0}),Lr(a,r),Hr(t,c,r,n,i,e,l),Mr(n,d,l),p])},{min:Cn,max:Wo,abs:Pr,round:Rr}=Math,Uo=(t,e,n,s)=>{if(s){const d=n?"x":"y",{Et:l,zt:a}=s,f=a[d],p=l[d];return Wo(0,Cn(1,f/(f+p)))}const r=n?"width":"height",c=Et(t)[r],i=Et(e)[r];return Wo(0,Cn(1,c/i))},Fr=(t,e,n,s,r,c)=>{const{V:i}=ft(),d=c?"x":"y",l=c?"Left":"Top",{Et:a}=s,f=Rr(a[d]),p=Pr(n[`scroll${l}`]),u=c&&r,m=i.i?p:f-p,g=Cn(1,(u?m:p)/f),S=Uo(t,e,c);return 1/S*(1-S)*g},Wr=t=>`${Math.max(0,t-.5)}px`,qo=(t,e,n,s)=>t.animate({transform:[re("0px",s),re(Wr(n),s)]},{timeline:e,composite:"add"}),Yo=(t,e)=>on?new on({source:t,axis:e}):null,Ur=(t,e,n)=>{const{q:s,H:r}=ft(),{scrollbars:c}=s(),{slot:i}=c,{rt:d,Z:l,J:a,K:f,ut:p,st:u,it:m,ft:b}=e,{scrollbars:g}=p?{}:t,{slot:S}=g||{},C=new Map,h=Yo(u,"x"),y=Yo(u,"y"),x=Eo([l,a,f],()=>b&&m?l:a,i,S),k=B=>b&&!m&&Ht(B)===f,z=()=>{C.forEach(B=>{(B||[]).forEach(E=>{E.cancel()})})},V=(B,E,v)=>{const F=v?Mt:rn;q(B,H=>{F(H.Ut,E)})},A=(B,E)=>{q(B,v=>{const[F,H]=E(v);it(F,H)})},R=(B,E,v)=>{A(B,F=>{const{Gt:H,Xt:K}=F;return[H,{[v?"width":"height"]:`${(100*Uo(H,K,v,E)).toFixed(3)}%`}]})},tt=(B,E,v)=>{!y&&!y&&A(B,F=>{const{Gt:H,Xt:K,Ut:Z}=F,Q=Fr(H,K,u,E,ye(Z),v);return[H,{transform:Q===Q?re(`${(100*Q).toFixed(3)}%`,v):""}]})},Y=B=>{const{Ut:E}=B,v=k(E)&&E;return[v,{transform:v?re([`${kt(u)}px`,`${Lt(u)}px`]):""}]},P=[],_=[],w=[],$=(B,E,v)=>{const F=Ye(v),H=F?v:!0,K=F?!v:!0;H&&V(_,B,E),K&&V(w,B,E)},D=B=>{R(_,B,!0),R(w,B)},L=B=>{tt(_,B,!0),tt(w,B)},I=()=>{!y&&!y&&(b&&A(_,Y),b&&A(w,Y))},T=({Et:B})=>{z(),w.concat(_).forEach(({Ut:E})=>{k(E)&&C.set(E,[qo(E,h,B.x,!0),qo(E,y,B.y)])})},N=B=>{const E=B?tr:er,v=B?_:w,F=Ge(v)?ko:"",H=Gt(`${dt} ${E} ${F}`),K=Gt(_o),Z=Gt(hn),Q={Ut:H,Xt:K,Gt:Z};return r||Mt(H,Js),yt(H,K),yt(K,Z),X(v,Q),X(P,[()=>{z(),C.clear()},Tt.bind(0,H),n(Q,$,d,a,u,B?h:y,B)]),Q},M=N.bind(0,!0),U=N.bind(0,!1),G=()=>{yt(x,_[0].Ut),yt(x,w[0].Ut),De(()=>{$(ko)},300)};return M(),U(),[{Wt:D,Zt:L,Jt:T,Kt:I,Qt:$,tn:{B:h,nn:_,sn:M,en:A.bind(0,_)},cn:{B:y,nn:w,sn:U,en:A.bind(0,w)}},G,Dt.bind(0,P)]},qr=(t,e,n,s)=>{let r,c,i,d,l,a=0;const f=Io({}),[p]=f,[u,m]=Kt(),[b,g]=Kt(),[S,C]=Kt(100),[h,y]=Kt(100),[x,k]=Kt(100),[z,V]=Kt(()=>a),[A,R,tt]=Ur(t,n.Ft,Ar(e,n)),{J:Y,et:P,it:_}=n.Ft,{Qt:w,Wt:$,Zt:D,Jt:L,Kt:I}=A,T=B=>{w(gn,B,!0),w(gn,B,!1)},N=(B,E)=>{if(V(),B)w(Bo);else{const v=()=>w(Bo,!0);a>0&&!E?z(v):v()}},M=()=>{d=c,d&&N(!0)},U=[C,V,y,k,g,m,tt,nt(Y,"pointerover",M,{C:!0}),nt(Y,"pointerenter",M),nt(Y,"pointerleave",()=>{d=!1,c&&N(!1)}),nt(Y,"pointermove",()=>{r&&u(()=>{C(),N(!0),h(()=>{r&&N(!1)})})}),nt(P,"scroll",B=>{b(()=>{D(n()),i&&N(!0),S(()=>{i&&!d&&N(!1)})}),s(B),I()})],G=p.bind(0);return G.Ft=A,G.qt=R,[(B,E,v)=>{const{Ht:F,Lt:H,It:K,St:Z,Pt:Q}=v,{I:ot}=ft(),J=_n(e,B,E),j=n(),{Et:rt,Ot:$t,yt:bt,At:qt}=j,[Qt,ae]=J("showNativeOverlaidScrollbars"),[de,st]=J("scrollbars.theme"),[ut,pt]=J("scrollbars.visibility"),[Bt,Pe]=J("scrollbars.autoHide"),[En,vn]=J("scrollbars.autoHideSuspend"),[Nn]=J("scrollbars.autoHideDelay"),[In,vt]=J("scrollbars.dragScroll"),[Re,zn]=J("scrollbars.clickScroll"),Fe=Q&&!E,At=F||H||Z,Yt=K||pt,Nt=Qt&&ot.x&&ot.y,We=(It,Se)=>{const te=ut==="visible"||ut==="auto"&&It==="scroll";return w(nr,te,Se),te};if(a=Nn,ae&&w(Zs,Nt),st&&(w(l),w(de,!0),l=de),(vn||Fe)&&(En&&Fe&&(qt.x||qt.y)?(T(!1),x(()=>U.push(nt(P,"scroll",T.bind(0,!0),{C:!0})))):T(!0)),Pe&&(r=Bt==="move",c=Bt==="leave",i=Bt!=="never",N(!i,!0)),vt&&w(rr,In),zn&&w(sr,Re),Yt){const It=We($t.x,!0),Se=We($t.y,!1);w(or,!(It&&Se))}At&&($(j),D(j),L(j),I(),w($o,!rt.x,!0),w($o,!rt.y,!1),w(Qs,bt&&!_))},G,Dt.bind(0,U)]},jo=(t,e,n)=>{_t(t)&&t(e||void 0,n||void 0)},Ut=(t,e,n)=>{const{G:s,q:r,j:c,N:i}=ft(),d=Jt(),l=ge(t),a=l?t:t.target,f=vo(a);if(e&&!f){let p=!1;const u=_=>{const w=Jt()[ir],$=w&&w.O;return $?$(_,!0):_},m=et({},s(),u(e)),[b,g,S]=dn(n),[C,h,y]=Ir(t,m),[x,k,z]=qr(t,m,h,_=>S("scroll",[P,_])),V=(_,w)=>C(_,!!w),A=V.bind(0,{},!0),R=c(A),tt=i(A),Y=_=>{yr(a),R(),tt(),z(),y(),p=!0,S("destroyed",[P,!!_]),g()},P={options(_,w){if(_){const $=w?s():{},D=uo(m,et($,u(_)));Ke(D)||(et(m,D),V(D))}return et({},m)},on:b,off:(_,w)=>{_&&w&&g(_,w)},state(){const{zt:_,Et:w,Ot:$,At:D,tt:L,$t:I,yt:T}=h();return et({},{overflowEdge:_,overflowAmount:w,overflowStyle:$,hasOverflow:D,padding:L,paddingAbsolute:I,directionRTL:T,destroyed:p})},elements(){const{Z:_,J:w,tt:$,K:D,nt:L,st:I,et:T}=h.Ft,{tn:N,cn:M}=k.Ft,U=B=>{const{Gt:E,Xt:v,Ut:F}=B;return{scrollbar:F,track:v,handle:E}},G=B=>{const{nn:E,sn:v}=B,F=U(E[0]);return et({},F,{clone:()=>{const H=U(v());return x({},!0,{}),H}})};return et({},{target:_,host:w,padding:$||D,viewport:D,content:L||D,scrollOffsetElement:I,scrollEventElement:T,scrollbarHorizontal:G(N),scrollbarVertical:G(M)})},update:_=>V({},_),destroy:Y.bind(0)};return h.Nt((_,w,$)=>{x(w,$,_)}),gr(a,P),q(mt(d),_=>jo(d[_],0,P)),hr(h.Ft.it,r().cancel,!l&&t.cancel)?(Y(!0),P):(h.qt(),k.qt(),S("initialized",[P]),h.Nt((_,w,$)=>{const{wt:D,St:L,vt:I,Ht:T,Lt:N,It:M,bt:U,Tt:G}=_;S("updated",[P,{updateHints:{sizeChanged:D,directionChanged:L,heightIntrinsicChanged:I,overflowEdgeChanged:T,overflowAmountChanged:N,overflowStyleChanged:M,contentMutation:U,hostMutation:G},changedOptions:w,force:$}])}),P.update(!0),P)}return f};Ut.plugin=t=>{q(cr(t),e=>jo(e,Ut))},Ut.valid=t=>{const e=t&&t.elements,n=_t(e)&&e();return je(n)&&!!vo(n.target)},Ut.env=()=>{const{k:t,I:e,A:n,V:s,Y:r,H:c,B:i,U:d,W:l,q:a,F:f,G:p,X:u}=ft();return et({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,rtlScrollBehavior:s,flexboxGlue:r,cssCustomProperties:c,scrollTimeline:i,staticDefaultInitialization:d,staticDefaultOptions:l,getDefaultInitialization:a,setDefaultInitialization:f,getDefaultOptions:p,setDefaultOptions:u})};const Yr=()=>{if(typeof window>"u"){const a=()=>{};return[a,a]}let t,e;const n=window,s=typeof n.requestIdleCallback=="function",r=n.requestAnimationFrame,c=n.cancelAnimationFrame,i=s?n.requestIdleCallback:r,d=s?n.cancelIdleCallback:c,l=()=>{d(t),c(e)};return[(a,f)=>{l(),t=i(s?()=>{l(),e=r(a)}:a,typeof f=="object"?f:{timeout:2233})},l]},Xo=t=>{let e=null,n,s,r;const c=o.shallowRef(t||{}),[i,d]=Yr();return o.watch(()=>{var l;return o.unref((l=c.value)==null?void 0:l.defer)},l=>{r=l},{deep:!0,immediate:!0}),o.watch(()=>{var l;return o.unref((l=c.value)==null?void 0:l.options)},l=>{n=l,Ut.valid(e)&&e.options(n||{},!0)},{deep:!0,immediate:!0}),o.watch(()=>{var l;return o.unref((l=c.value)==null?void 0:l.events)},l=>{s=l,Ut.valid(e)&&e.on(s||{},!0)},{deep:!0,immediate:!0}),o.onUnmounted(()=>{d(),e==null||e.destroy()}),[l=>{if(Ut.valid(e))return e;const a=()=>e=Ut(l,n||{},s||{});r?i(a,r):a()},()=>e]},jr=o.defineComponent({__name:"OverlayScrollbarsComponent",props:{element:{default:"div"},options:{type:[Boolean,null],default:void 0},events:{type:[Boolean,null],default:void 0},defer:{type:Boolean,default:void 0}},emits:["osInitialized","osUpdated","osDestroyed","osScroll"],setup(t,{expose:e,emit:n}){const s=t,r={initialized:"osInitialized",updated:"osUpdated",destroyed:"osDestroyed",scroll:"osScroll"},{element:c,options:i,events:d,defer:l}=o.toRefs(s),a=o.shallowRef(null),f=o.shallowRef(null),p=o.ref(),u=o.ref(!1),[m,b]=Xo({options:i,events:p,defer:l});return e({osInstance:b,getElement:()=>a.value}),o.onMounted(()=>{u.value=!0}),o.watchPostEffect(g=>{const{value:S}=a,{value:C}=f;u.value&&S&&C&&(m({target:S,elements:{viewport:C,content:C}}),g(()=>{var h;return(h=b())==null?void 0:h.destroy()}))}),o.watch(()=>o.unref(d),g=>{const S=g||{};p.value=Object.keys(r).reduce((C,h)=>{const y=S[h];return C[h]=[(...x)=>n(r[h],...x),...(Array.isArray(y)?y:[y]).filter(Boolean)],C},{})},{deep:!0,immediate:!0}),(g,S)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(o.unref(c)),{"data-overlayscrollbars-initialize":"",ref_key:"elementRef",ref:a},{default:o.withCtx(()=>[u.value?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"slotRef",ref:f,"data-overlayscrollbars-contents":""},[o.renderSlot(g.$slots,"default")],512)):o.renderSlot(g.$slots,"default",{key:1})]),_:3},512))}}),Xr={__name:"DScrollProvider",props:{autoHide:{type:String,default:"never"}},setup(t){const e=t,n=o.ref(null),[s,r]=Xo({defer:!0,events:{initialized:()=>{n.value=!0},destroyed:()=>{n.value=!1}},options:{scrollbars:{theme:"os-theme-light",autoHide:e.autoHide}}});return o.watch(()=>Ot.state.theme,c=>{r().options({scrollbars:{theme:c==="dark"?"os-theme-light":"os-theme-dark",autoHide:e.autoHide}})}),o.onMounted(()=>s(document.body)),(c,i)=>o.renderSlot(c.$slots,"default")}},Cc="",Gr=ue({__name:"DScroll",props:{autoHide:{type:String,default:"never"}},setup(t){const e=t,n=o.ref(null);return o.watch(()=>Ot.state.theme,s=>{n.value.osInstance().options({scrollbars:{theme:s==="dark"?"os-theme-light":"os-theme-dark",autoHide:e.autoHide}})}),(s,r)=>(o.openBlock(),o.createBlock(o.unref(jr),{class:"os-vue",ref_key:"osRef",ref:n,options:{scrollbars:{theme:"os-theme-light",autoHide:e.autoHide}},events:{},defer:""},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default",{},void 0,!0)]),_:3},8,["options"]))}},[["__scopeId","data-v-9b322173"]]),Tc="",Kr={class:"modal-dialog"},Jr={class:"modal-content"},Zr={class:"modal-header"},Qr={class:"modal-title"},tc={class:"modal-body"},ec={class:"modal-footer"},Dn=ue({__name:"DModal",props:{show:Boolean,width:String},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t;o.useCssVars(l=>({"558e9e46":s.width}));const r=o.ref(null),c=o.ref(!1);c.value=s==null?void 0:s.show;const i=()=>{c.value=!0,n("open",r)},d=()=>{c.value=!1,n("close",r)};return e({show:i,hide:d}),(l,a)=>{const f=o.resolveDirective("keydown");return o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[o.createVNode(o.Transition,{name:"fade"},{default:o.withCtx(()=>[c.value?o.withDirectives((o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"modalRef",ref:r,class:"modal"},[o.createElementVNode("div",Kr,[o.createElementVNode("div",Jr,[o.createElementVNode("div",Zr,[o.createElementVNode("h5",Qr,[o.renderSlot(l.$slots,"modal-title",{},void 0,!0)])]),o.createElementVNode("div",tc,[o.renderSlot(l.$slots,"default",{},void 0,!0)]),o.createElementVNode("div",ec,[o.renderSlot(l.$slots,"modal-footer",{},void 0,!0)])])])])),[[f,d,"Escape"]]):o.createCommentVNode("",!0)]),_:3})])}}},[["__scopeId","data-v-82cadd63"]]),Zt=o.shallowRef();function Tn(t){t===void 0&&(t=Zt.value.comp.returnValue()),Zt.value.resolve(t),Zt.value=null}function Go(t,e,n="default"){return new Promise(s=>{Zt.value={dialog:t,props:e,wrapper:n,resolve:s}})}o.defineComponent({name:"DialogWrapper",components:{},props:{name:{type:String,default:"default"},transitionAttrs:Object},setup(){const t=o.ref();return o.watch(t,()=>{Zt.value&&(Zt.value.comp=t.value)}),{dialogRef:Zt,dialogInstance:t}}});const nc={style:{display:"flex","flex-direction":"row","justify-content":"center",gap:"5px"}},Ko={__name:"DAlertDialog",props:{title:String,message:String},setup(t,{expose:e}){const n=t;return e({returnValue:()=>!0}),(r,c)=>(o.openBlock(),o.createBlock(Dn,{show:!0},{"modal-title":o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.title),1)]),default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.message),1)]),"modal-footer":o.withCtx(()=>[o.createElementVNode("div",nc,[o.createVNode(fe,{onClick:c[0]||(c[0]=i=>o.unref(Tn)())},{default:o.withCtx(()=>[o.createTextVNode("Закрыть")]),_:1})])]),_:1}))}},oc={style:{display:"flex","flex-direction":"row","justify-content":"center",gap:"5px"}},Jo={__name:"DConfirmDialog",props:{title:String,message:String},setup(t,{expose:e}){const n=t;return e({returnValue:()=>!0}),(r,c)=>(o.openBlock(),o.createBlock(Dn,{show:!0},{"modal-title":o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.title),1)]),default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.message),1)]),"modal-footer":o.withCtx(()=>[o.createElementVNode("div",oc,[o.createVNode(fe,{onClick:c[0]||(c[0]=i=>o.unref(Tn)())},{default:o.withCtx(()=>[o.createTextVNode("Да")]),_:1}),o.createVNode(fe,{class:"button-red",onClick:c[1]||(c[1]=i=>o.unref(Tn)(!1))},{default:o.withCtx(()=>[o.createTextVNode("Нет")]),_:1})])]),_:1}))}},sc={class:"dropdown"},rc={__name:"DDropdown",props:{class:String,icon:{type:[String,null],default:null},items:Array},emits:["click"],setup(t,{expose:e,emit:n}){const s=t,r=o.ref(null),c=o.ref(null),i=o.ref(!1),d=o.ref(0),l=o.ref(0),a=()=>{wt.emit("menu-show-request"),i.value=!i.value,o.nextTick(()=>{const m=r.value.elementSize(),b=c.value.elementSize(),g=window.innerWidth,S=window.innerHeight;d.value=g-(b.x+b.width)<m.width?b.width-m.width:0,l.value=S-(b.y+b.height)<m.height?-m.height:b.height+10})},f=m=>{n("click",m),m.model.children||u()},p=o.computed(()=>({left:d.value+"px",top:l.value+"px",display:i.value&&s.items.length>0?"block":"none"})),u=()=>{i.value=!1};return wt.on("menu-show-request",()=>{u()}),e({show:a,hide:u}),(m,b)=>{const g=o.resolveDirective("click-outside");return o.openBlock(),o.createElementBlock("div",sc,[o.createVNode(fe,{ref_key:"buttonRef",ref:c,class:o.normalizeClass(s.class),icon:s.icon,onClick:o.withModifiers(a,["stop","prevent"])},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"default")]),_:3},8,["class","icon","onClick"]),o.withDirectives(o.createVNode(_e,{ref_key:"menuRef",ref:r,items:s.items,class:"dropdown-menu",style:o.normalizeStyle(p.value),"no-select":!0,onSelect:f},null,8,["items","style"]),[[g,u]])])}}},cc={__name:"DContextMenu",props:{items:Array},emits:["click"],setup(t,{expose:e,emit:n}){const s=t,r=o.ref(null),c=o.ref(!1),i=o.ref(0),d=o.ref(0),l=o.computed(()=>({left:i.value+"px",top:d.value+"px",display:c.value&&s.items.length>0?"block":"none"})),a=u=>{wt.emit("menu-show-request"),c.value=!0,o.nextTick(()=>{const m=r.value.elementSize(),b=window.innerWidth,g=window.innerHeight;i.value=b-u.pageX<m.width?u.pageX-m.width:u.pageX,d.value=g-u.pageY<m.height?u.pageY-m.height:u.pageY})},f=()=>{c.value=!1};wt.on("menu-show-request",()=>{f()});const p=u=>{n("click",u),u.model.children||f()};return e({show:a,hide:f}),(u,m)=>{const b=o.resolveDirective("click-outside");return o.withDirectives((o.openBlock(),o.createBlock(_e,{ref_key:"menuRef",ref:r,items:s.items,class:"context-menu",style:o.normalizeStyle(l.value),"no-select":!0,onSelect:p,onExpand:m[0]||(m[0]=g=>console.log("expand ctx event 1",g))},null,8,["items","style"])),[[b,f]])}}},ic=["onClick"],lc={key:1,class:"hr"},ac={key:2},dc={__name:"DContextMenuItem",props:{item:Object},setup(t){const e=t;return(n,s)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,r=>(o.openBlock(),o.createElementBlock("li",{key:r.id},[r.type===void 0?(o.openBlock(),o.createElementBlock("a",{key:0,onClick:o.withModifiers(c=>n.clickContext(c,r),["prevent"]),href:"#"},o.toDisplayString(r.name),9,ic)):o.createCommentVNode("",!0),r.type==="divider"?(o.openBlock(),o.createElementBlock("hr",lc)):o.createCommentVNode("",!0),r?(o.openBlock(),o.createElementBlock("ul",ac)):o.createCommentVNode("",!0)]))),128))}};async function fc(t,e){return await Go(Ko,{title:t,message:e})}async function uc(t,e){return await Go(Jo,{title:t,message:e})}const pc={mounted:function(t,e){t.clickOutsideEvent=function(n){t===n.target||t.contains(n.target)||e.value(n,t)},document.addEventListener("click",t.clickOutsideEvent)},unmounted:function(t){document.removeEventListener("click",t.clickOutsideEvent)}};W.DAccordion=bs,W.DAlertDialog=Ko,W.DBadge=Ln,W.DButton=fe,W.DCollapse=Hn,W.DConfigProvider=$s,W.DConfirmDialog=Jo,W.DContextMenu=cc,W.DContextMenuItem=dc,W.DDropdown=rc,W.DGlobalStore=Ot,W.DIcon=ee,W.DIconStore=Ct,W.DInput=os,W.DLayoutAdmin=xs,W.DLayoutContent=Un,W.DLayoutFooter=Fn,W.DLayoutHeader=Pn,W.DLayoutSidebar=Wn,W.DLayoutTab=Rn,W.DModal=Dn,W.DScroll=Gr,W.DScrollProvider=Xr,W.DTransferStore=pe,W.DTree=_e,W.DTreeItem=Mn,W.DTreeStore=O,W.alert=fc,W.clickOutside=pc,W.confirm=uc,W.emitter=wt,W.eventsBus=An,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});
|
|
9
|
+
*/function q(t,e){if(xe(t))for(let n=0;n<t.length&&e(t[n],n,t)!==!1;n++);else t&&q(Object.keys(t),n=>e(t[n],n,t));return t}function it(t,e){const n=Rt(e);if(gt(e)||n){let r=n?"":{};if(t){const c=window.getComputedStyle(t,null);r=n?oo(t,c,e):e.reduce((i,d)=>(i[d]=oo(t,c,d),i),r)}return r}t&&q(mt(e),r=>Ps(t,r,e[r]))}const St=(t,e)=>{const{o:n,u:s,_:r}=t;let c=n,i;const d=(f,p)=>{const u=c,m=f,b=p||(s?!s(u,m):u!==m);return(b||r)&&(c=m,i=u),[c,b,i]};return[e?f=>d(e(c,i),f):d,f=>[c,!!f,i]]},me=()=>typeof window<"u",qn=me()&&Node.ELEMENT_NODE,{toString:Bs,hasOwnProperty:qe}=Object.prototype,Vt=t=>t===void 0,ke=t=>t===null,Cs=t=>Vt(t)||ke(t)?`${t}`:Bs.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),Pt=t=>typeof t=="number",Rt=t=>typeof t=="string",Ye=t=>typeof t=="boolean",_t=t=>typeof t=="function",gt=t=>Array.isArray(t),he=t=>typeof t=="object"&&!gt(t)&&!ke(t),xe=t=>{const e=!!t&&t.length,n=Pt(e)&&e>-1&&e%1==0;return gt(t)||!_t(t)&&n?e>0&&he(t)?e-1 in t:!0:!1},je=t=>{if(!t||!he(t)||Cs(t)!=="object")return!1;let e;const n="constructor",s=t[n],r=s&&s.prototype,c=qe.call(t,n),i=r&&qe.call(r,"isPrototypeOf");if(s&&!c&&!i)return!1;for(e in t);return Vt(e)||qe.call(t,e)},ge=t=>{const e=HTMLElement;return t?e?t instanceof e:t.nodeType===qn:!1},$e=t=>{const e=Element;return t?e?t instanceof e:t.nodeType===qn:!1},Xe=(t,e,n)=>t.indexOf(e,n),X=(t,e,n)=>(!n&&!Rt(e)&&xe(e)?Array.prototype.push.apply(t,e):t.push(e),t),jt=t=>{const e=Array.from,n=[];return e&&t?e(t):(t instanceof Set?t.forEach(s=>{X(n,s)}):q(t,s=>{X(n,s)}),n)},Ge=t=>!!t&&t.length===0,Dt=(t,e,n)=>{q(t,r=>r&&r.apply(void 0,e||[])),!n&&(t.length=0)},Be=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),mt=t=>t?Object.keys(t):[],et=(t,e,n,s,r,c,i)=>{const d=[e,n,s,r,c,i];return(typeof t!="object"||ke(t))&&!_t(t)&&(t={}),q(d,l=>{q(mt(l),a=>{const f=l[a];if(t===f)return!0;const p=gt(f);if(f&&(je(f)||p)){const u=t[a];let m=u;p&&!gt(u)?m=[]:!p&&!je(u)&&(m={}),t[a]=et(m,f)}else t[a]=f})}),t},Ke=t=>{for(const e in t)return!1;return!0},Yn=(t,e,n,s)=>{if(Vt(s))return n?n[t]:e;n&&(Rt(s)||Pt(s))&&(n[t]=s)},lt=(t,e,n)=>{if(Vt(n))return t?t.getAttribute(e):null;t&&t.setAttribute(e,n)},at=(t,e)=>{t&&t.removeAttribute(e)},Xt=(t,e,n,s)=>{if(n){const r=lt(t,e)||"",c=new Set(r.split(" "));c[s?"add":"delete"](n);const i=jt(c).join(" ").trim();lt(t,e,i)}},Ds=(t,e,n)=>{const s=lt(t,e)||"";return new Set(s.split(" ")).has(n)},kt=(t,e)=>Yn("scrollLeft",0,t,e),Lt=(t,e)=>Yn("scrollTop",0,t,e),Je=me()&&Element.prototype,jn=(t,e)=>{const n=[],s=e?$e(e)?e:null:document;return s?X(n,s.querySelectorAll(t)):n},Ts=(t,e)=>{const n=e?$e(e)?e:null:document;return n?n.querySelector(t):null},Ce=(t,e)=>$e(t)?(Je.matches||Je.msMatchesSelector).call(t,e):!1,Ze=t=>t?jt(t.childNodes):[],Ht=t=>t?t.parentElement:null,ne=(t,e)=>{if($e(t)){const n=Je.closest;if(n)return n.call(t,e);do{if(Ce(t,e))return t;t=Ht(t)}while(t)}return null},Es=(t,e,n)=>{const s=t&&ne(t,e),r=t&&Ts(n,s),c=ne(r,e)===s;return s&&r?s===t||r===t||c&&ne(ne(t,n),e)!==s:!1},Qe=(t,e,n)=>{if(n&&t){let s=e,r;xe(n)?(r=document.createDocumentFragment(),q(n,c=>{c===s&&(s=c.previousSibling),r.appendChild(c)})):r=n,e&&(s?s!==e&&(s=s.nextSibling):s=t.firstChild),t.insertBefore(r,s||null)}},yt=(t,e)=>{Qe(t,null,e)},vs=(t,e)=>{Qe(Ht(t),t,e)},Xn=(t,e)=>{Qe(Ht(t),t&&t.nextSibling,e)},Tt=t=>{if(xe(t))q(jt(t),e=>Tt(e));else if(t){const e=Ht(t);e&&e.removeChild(t)}},Gt=t=>{const e=document.createElement("div");return t&<(e,"class",t),e},Gn=t=>{const e=Gt();return e.innerHTML=t.trim(),q(Ze(e),n=>Tt(n))},tn=t=>t.charAt(0).toUpperCase()+t.slice(1),Ns=()=>Gt().style,Is=["-webkit-","-moz-","-o-","-ms-"],zs=["WebKit","Moz","O","MS","webkit","moz","o","ms"],en={},nn={},Os=t=>{let e=nn[t];if(Be(nn,t))return e;const n=tn(t),s=Ns();return q(Is,r=>{const c=r.replace(/-/g,"");return!(e=[t,r+t,c+n,tn(c)+n].find(d=>s[d]!==void 0))}),nn[t]=e||""},oe=t=>{if(me()){let e=en[t]||window[t];return Be(en,t)||(q(zs,n=>(e=e||window[n+tn(t)],!e)),en[t]=e),e}},Vs=oe("MutationObserver"),Kn=oe("IntersectionObserver"),se=oe("ResizeObserver"),Jn=oe("cancelAnimationFrame"),Zn=oe("requestAnimationFrame"),on=oe("ScrollTimeline"),De=me()&&window.setTimeout,sn=me()&&window.clearTimeout,Ls=/[^\x20\t\r\n\f]+/g,Qn=(t,e,n)=>{const s=t&&t.classList;let r,c=0,i=!1;if(s&&e&&Rt(e)){const d=e.match(Ls)||[];for(i=d.length>0;r=d[c++];)i=!!n(s,r)&&i}return i},rn=(t,e)=>{Qn(t,e,(n,s)=>n.remove(s))},Mt=(t,e)=>(Qn(t,e,(n,s)=>n.add(s)),rn.bind(0,t,e)),Te=(t,e,n,s)=>{if(t&&e){let r=!0;return q(n,c=>{const i=s?s(t[c]):t[c],d=s?s(e[c]):e[c];i!==d&&(r=!1)}),r}return!1},to=(t,e)=>Te(t,e,["w","h"]),eo=(t,e)=>Te(t,e,["x","y"]),Hs=(t,e)=>Te(t,e,["t","r","b","l"]),no=(t,e,n)=>Te(t,e,["width","height"],n&&(s=>Math.round(s))),ht=()=>{},Kt=t=>{let e;const n=t?De:Zn,s=t?sn:Jn;return[r=>{s(e),e=n(r,_t(t)?t():t)},()=>s(e)]},cn=(t,e)=>{let n,s,r,c=ht;const{g:i,v:d,p:l}=e||{},a=function(b){c(),sn(n),n=s=void 0,c=ht,t.apply(this,b)},f=m=>l&&s?l(s,m):m,p=()=>{c!==ht&&a(f(r)||r)},u=function(){const b=jt(arguments),y=_t(i)?i():i;if(Pt(y)&&y>=0){const C=_t(d)?d():d,h=Pt(C)&&C>=0,g=y>0?De:Zn,x=y>0?sn:Jn,z=f(b)||b,V=a.bind(0,z);c();const A=g(V,y);c=()=>x(A),h&&!n&&(n=De(p,C)),s=r=z}else a(b)};return u.m=p,u},Ms={opacity:1,zIndex:1},Ee=(t,e)=>{const n=t||"",s=e?parseFloat(n):parseInt(n,10);return s===s?s:0},As=(t,e)=>!Ms[t]&&Pt(e)?`${e}px`:e,oo=(t,e,n)=>String((e!=null?e[n]||e.getPropertyValue(n):t.style[n])||""),Ps=(t,e,n)=>{try{const{style:s}=t;Vt(s[e])?s.setProperty(e,n):s[e]=As(e,n)}catch{}},ye=t=>it(t,"direction")==="rtl",so=(t,e,n)=>{const s=e?`${e}-`:"",r=n?`-${n}`:"",c=`${s}top${r}`,i=`${s}right${r}`,d=`${s}bottom${r}`,l=`${s}left${r}`,a=it(t,[c,i,d,l]);return{t:Ee(a[c],!0),r:Ee(a[i],!0),b:Ee(a[d],!0),l:Ee(a[l],!0)}},re=(t,e)=>`translate${gt(t)?`(${t[0]},${t[1]})`:`${e?"X":"Y"}(${t})`}`,{round:ro}=Math,ln={w:0,h:0},be=t=>t?{w:t.offsetWidth,h:t.offsetHeight}:ln,ve=t=>t?{w:t.clientWidth,h:t.clientHeight}:ln,Ne=t=>t?{w:t.scrollWidth,h:t.scrollHeight}:ln,Ie=t=>{const e=parseFloat(it(t,"height"))||0,n=parseFloat(it(t,"width"))||0;return{w:n-ro(n),h:e-ro(e)}},Et=t=>t.getBoundingClientRect(),ce=t=>!!(t&&(t.height||t.width));let ze;const Rs=()=>{if(Vt(ze)){ze=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get(){ze=!0}}))}catch{}}return ze},co=t=>t.split(" "),Fs=(t,e,n,s)=>{q(co(e),r=>{t.removeEventListener(r,n,s)})},nt=(t,e,n,s)=>{var r;const c=Rs(),i=(r=c&&s&&s.S)!=null?r:c,d=s&&s.$||!1,l=s&&s.C||!1,a=[],f=c?{passive:i,capture:d}:d;return q(co(e),p=>{const u=l?m=>{t.removeEventListener(p,u,d),n&&n(m)}:n;X(a,Fs.bind(null,t,p,u,d)),t.addEventListener(p,u,f)}),Dt.bind(0,a)},io=t=>t.stopPropagation(),lo=t=>t.preventDefault(),Ws={x:0,y:0},an=t=>{const e=t?Et(t):0;return e?{x:e.left+window.pageYOffset,y:e.top+window.pageXOffset}:Ws},ao=(t,e)=>{q(gt(e)?e:[e],t)},dn=t=>{const e=new Map,n=(c,i)=>{if(c){const d=e.get(c);ao(l=>{d&&d[l?"delete":"clear"](l)},i)}else e.forEach(d=>{d.clear()}),e.clear()},s=(c,i)=>{if(Rt(c)){const a=e.get(c)||new Set;return e.set(c,a),ao(f=>{_t(f)&&a.add(f)},i),n.bind(0,c,i)}Ye(i)&&i&&n();const d=mt(c),l=[];return q(d,a=>{const f=c[a];f&&X(l,s(a,f))}),Dt.bind(0,l)},r=(c,i)=>{const d=e.get(c);q(jt(d),l=>{i&&!Ge(i)?l.apply(0,i):l()})};return s(t||{}),[s,n,r]},fo=t=>JSON.stringify(t,(e,n)=>{if(_t(n))throw new Error;return n}),Us={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},uo=(t,e)=>{const n={},s=mt(e).concat(mt(t));return q(s,r=>{const c=t[r],i=e[r];if(he(c)&&he(i))et(n[r]={},uo(c,i)),Ke(n[r])&&delete n[r];else if(Be(e,r)&&i!==c){let d=!0;if(gt(c)||gt(i))try{fo(c)===fo(i)&&(d=!1)}catch{}d&&(n[r]=i)}}),n},we="data-overlayscrollbars",po="os-environment",mo=`${po}-flexbox-glue`,qs=`${mo}-max`,ho="os-scrollbar-hidden",fn=`${we}-initialize`,xt=we,go=`${xt}-overflow-x`,yo=`${xt}-overflow-y`,ie="overflowVisible",Ys="scrollbarHidden",bo="scrollbarPressed",Oe="updating",Ft=`${we}-viewport`,un="arrange",wo="scrollbarHidden",le=ie,pn=`${we}-padding`,js=le,So=`${we}-content`,mn="os-size-observer",Xs=`${mn}-appear`,Gs=`${mn}-listener`,Ks="os-trinsic-observer",Js="os-no-css-vars",Zs="os-theme-none",dt="os-scrollbar",Qs=`${dt}-rtl`,tr=`${dt}-horizontal`,er=`${dt}-vertical`,_o=`${dt}-track`,hn=`${dt}-handle`,nr=`${dt}-visible`,or=`${dt}-cornerless`,ko=`${dt}-transitionless`,xo=`${dt}-interaction`,$o=`${dt}-unusable`,gn=`${dt}-auto-hide`,Bo=`${gn}-hidden`,Co=`${dt}-wheel`,sr=`${_o}-interactive`,rr=`${hn}-interactive`,Do={},Jt=()=>Do,cr=t=>{const e=[];return q(gt(t)?t:[t],n=>{const s=mt(n);q(s,r=>{X(e,Do[r]=n[r])})}),e},ir="__osOptionsValidationPlugin",lr="__osSizeObserverPlugin",yn="__osScrollbarsHidingPlugin",ar="__osClickScrollPlugin";let bn;const To=(t,e,n,s)=>{yt(t,e);const r=ve(e),c=be(e),i=Ie(n);return s&&Tt(e),{x:c.h-r.h+i.h,y:c.w-r.w+i.w}},dr=t=>{let e=!1;const n=Mt(t,ho);try{e=it(t,Os("scrollbar-width"))==="none"||window.getComputedStyle(t,"::-webkit-scrollbar").getPropertyValue("display")==="none"}catch{}return n(),e},fr=(t,e)=>{const n="hidden";it(t,{overflowX:n,overflowY:n,direction:"rtl"}),kt(t,0);const s=an(t),r=an(e);kt(t,-999);const c=an(e);return{i:s.x===r.x,n:r.x!==c.x}},ur=(t,e)=>{const n=Mt(t,mo),s=Et(t),r=Et(e),c=no(r,s,!0),i=Mt(t,qs),d=Et(t),l=Et(e),a=no(l,d,!0);return n(),i(),c&&a},pr=()=>{const{body:t}=document,n=Gn(`<div class="${po}"><div></div></div>`)[0],s=n.firstChild,[r,,c]=dn(),[i,d]=St({o:To(t,n,s),u:eo},To.bind(0,t,n,s,!0)),[l]=d(),a=dr(n),f={x:l.x===0,y:l.y===0},p={elements:{host:null,padding:!a,viewport:h=>a&&h===h.ownerDocument.body&&h,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},u=et({},Us),m=et.bind(0,{},u),b=et.bind(0,{},p),y={k:l,I:f,A:a,H:it(n,"zIndex")==="-1",B:!!on,V:fr(n,s),Y:ur(n,s),j:r.bind(0,"z"),N:r.bind(0,"r"),q:b,F:h=>et(p,h)&&b(),G:m,X:h=>et(u,h)&&m(),U:et({},p),W:et({},u)},S=window.addEventListener,C=cn(h=>c(h?"z":"r"),{g:33,v:99});if(at(n,"style"),Tt(n),S("resize",C.bind(0,!1)),!a&&(!f.x||!f.y)){let h;S("resize",()=>{const g=Jt()[yn];h=h||g&&g.R(),h&&h(y,i,C.bind(0,!0))})}return y},ft=()=>(bn||(bn=pr()),bn),wn=(t,e)=>_t(e)?e.apply(0,t):e,mr=(t,e,n,s)=>{const r=Vt(s)?n:s;return wn(t,r)||e.apply(0,t)},Eo=(t,e,n,s)=>{const r=Vt(s)?n:s,c=wn(t,r);return!!c&&(ge(c)?c:e.apply(0,t))},hr=(t,e,n)=>{const{nativeScrollbarsOverlaid:s,body:r}=n||{},{I:c,A:i}=ft(),{nativeScrollbarsOverlaid:d,body:l}=e,a=s??d,f=Vt(r)?l:r,p=(c.x||c.y)&&a,u=t&&(ke(f)?!i:f);return!!p||!!u},Sn=new WeakMap,gr=(t,e)=>{Sn.set(t,e)},yr=t=>{Sn.delete(t)},vo=t=>Sn.get(t),No=(t,e)=>t?e.split(".").reduce((n,s)=>n&&Be(n,s)?n[s]:void 0,t):void 0,_n=(t,e,n)=>s=>[No(t,s),n||No(e,s)!==void 0],Io=t=>{let e=t;return[()=>e,n=>{e=et({},e,n)}]},Ve="tabindex",Le=Gt.bind(0,""),kn=t=>{yt(Ht(t),Ze(t)),Tt(t)},br=t=>{const e=ft(),{q:n,A:s}=e,r=Jt()[yn],c=r&&r.T,{elements:i}=n(),{host:d,padding:l,viewport:a,content:f}=i,p=ge(t),u=p?{}:t,{elements:m}=u,{host:b,padding:y,viewport:S,content:C}=m||{},h=p?t:u.target,g=Ce(h,"textarea"),x=h.ownerDocument,k=x.documentElement,z=h===x.body,V=x.defaultView,A=mr.bind(0,[h]),R=Eo.bind(0,[h]),tt=wn.bind(0,[h]),Y=A.bind(0,Le,a),P=R.bind(0,Le,f),_=Y(S),w=_===h,$=w&&z,D=!w&&P(C),L=!w&&ge(_)&&_===D,I=L&&!!tt(f),T=I?Y():_,N=I?D:P(),U=$?k:L?T:_,G=g?A(Le,d,b):h,B=$?U:G,E=L?N:D,v=x.activeElement,F=!w&&V.top===V&&v===h,H={Z:h,J:B,K:U,tt:!w&&R(Le,l,y),nt:E,ot:!w&&!s&&c&&c(e),st:$?k:U,et:$?x:U,ct:V,rt:x,lt:g,it:z,ut:p,ft:w,dt:L,_t:(st,ut)=>Ds(U,w?xt:Ft,w?ut:st),ht:(st,ut,pt)=>Xt(U,w?xt:Ft,w?ut:st,pt)},K=mt(H).reduce((st,ut)=>{const pt=H[ut];return X(st,pt&&ge(pt)&&!Ht(pt)?pt:!1)},[]),Z=st=>st?Xe(K,st)>-1:null,{Z:Q,J:ot,tt:J,K:j,nt:rt,ot:$t}=H,bt=[()=>{at(ot,xt),at(ot,fn),at(Q,fn),z&&(at(k,xt),at(k,fn))}],qt=g&&Z(ot);let Qt=g?Q:Ze([rt,j,J,ot,Q].find(st=>Z(st)===!1));const ae=$?Q:rt||j;return[H,()=>{lt(ot,xt,w?"viewport":"host"),lt(J,pn,""),lt(rt,So,""),w||lt(j,Ft,"");const st=z&&!w?Mt(Ht(h),ho):ht;if(qt&&(Xn(Q,ot),X(bt,()=>{Xn(ot,Q),Tt(ot)})),yt(ae,Qt),yt(ot,J),yt(J||ot,!w&&j),yt(j,rt),X(bt,()=>{st(),at(J,pn),at(rt,So),at(j,go),at(j,yo),at(j,Ft),Z(rt)&&kn(rt),Z(j)&&kn(j),Z(J)&&kn(J)}),s&&!w&&(Xt(j,Ft,wo,!0),X(bt,at.bind(0,j,Ft))),$t&&(vs(j,$t),X(bt,Tt.bind(0,$t))),F){const ut=lt(j,Ve);lt(j,Ve,"-1"),j.focus();const pt=()=>ut?lt(j,Ve,ut):at(j,Ve),Bt=nt(x,"pointerdown keydown",()=>{pt(),Bt()});X(bt,[pt,Bt])}else v&&v.focus&&v.focus();Qt=0},Dt.bind(0,bt)]},wr=(t,e)=>{const{nt:n}=t,[s]=e;return r=>{const{Y:c}=ft(),{gt:i}=s(),{vt:d}=r,l=(n||!c)&&d;return l&&it(n,{height:i?"":"100%"}),{wt:l,bt:l}}},Sr=(t,e)=>{const[n,s]=e,{J:r,tt:c,K:i,ft:d}=t,[l,a]=St({u:Hs,o:so()},so.bind(0,r,"padding",""));return(f,p,u)=>{let[m,b]=a(u);const{A:y,Y:S}=ft(),{yt:C}=n(),{wt:h,bt:g,St:x}=f,[k,z]=p("paddingAbsolute");(h||b||!S&&g)&&([m,b]=l(u));const A=!d&&(z||x||b);if(A){const R=!k||!c&&!y,tt=m.r+m.l,Y=m.t+m.b,P={marginRight:R&&!C?-tt:0,marginBottom:R?-Y:0,marginLeft:R&&C?-tt:0,top:R?-m.t:0,right:R?C?-m.r:"auto":0,left:R?C?"auto":-m.l:0,width:R?`calc(100% + ${tt}px)`:""},_={paddingTop:R?m.t:0,paddingRight:R?m.r:0,paddingBottom:R?m.b:0,paddingLeft:R?m.l:0};it(c||i,P),it(i,_),s({tt:m,$t:!R,P:c?_:et({},P,_)})}return{xt:A}}},{max:xn}=Math,Wt=xn.bind(0,0),zo="visible",Oo="hidden",_r=42,He={u:to,o:{w:0,h:0}},kr={u:eo,o:{x:Oo,y:Oo}},xr=(t,e)=>{const n=window.devicePixelRatio%1!==0?1:0,s={w:Wt(t.w-e.w),h:Wt(t.h-e.h)};return{w:s.w>n?s.w:0,h:s.h>n?s.h:0}},Me=t=>t.indexOf(zo)===0,$r=(t,e)=>{const[n,s]=e,{J:r,tt:c,K:i,ot:d,ft:l,ht:a,it:f,ct:p}=t,{k:u,Y:m,A:b,I:y}=ft(),S=Jt()[yn],C=!l&&!b&&(y.x||y.y),h=f&&l,[g,x]=St(He,Ie.bind(0,i)),[k,z]=St(He,Ne.bind(0,i)),[V,A]=St(He),[R,tt]=St(He),[Y]=St(kr),P=(I,T)=>{if(it(i,{height:""}),T){const{$t:N,tt:M}=n(),{Ct:U,M:G}=I,B=Ie(r),E=ve(r),v=it(i,"boxSizing")==="content-box",F=N||v?M.b+M.t:0,H=!(y.x&&v);it(i,{height:E.h+B.h+(U.x&&H?G.x:0)-F})}},_=(I,T)=>{const N=!b&&!I?_r:0,M=(Z,Q,ot)=>{const J=it(i,Z),rt=(T?T[Z]:J)==="scroll";return[J,rt,rt&&!b?Q?N:ot:0,Q&&!!N]},[U,G,B,E]=M("overflowX",y.x,u.x),[v,F,H,K]=M("overflowY",y.y,u.y);return{Ot:{x:U,y:v},Ct:{x:G,y:F},M:{x:B,y:H},D:{x:E,y:K}}},w=(I,T,N,M)=>{const U=(F,H)=>{const K=Me(F),Z=H&&K&&F.replace(`${zo}-`,"")||"";return[H&&!K?F:"",Me(Z)?"hidden":Z]},[G,B]=U(N.x,T.x),[E,v]=U(N.y,T.y);return M.overflowX=B&&E?B:G,M.overflowY=v&&G?v:E,_(I,M)},$=(I,T,N,M)=>{const{M:U,D:G}=I,{x:B,y:E}=G,{x:v,y:F}=U,{P:H}=n(),K=T?"marginLeft":"marginRight",Z=T?"paddingLeft":"paddingRight",Q=H[K],ot=H.marginBottom,J=H[Z],j=H.paddingBottom;M.width=`calc(100% + ${F+-1*Q}px)`,M[K]=-F+Q,M.marginBottom=-v+ot,N&&(M[Z]=J+(E?F:0),M.paddingBottom=j+(B?v:0))},[D,L]=S?S.L(C,m,i,d,n,_,$):[()=>C,()=>[ht]];return(I,T,N)=>{const{wt:M,Tt:U,bt:G,xt:B,vt:E,St:v}=I,{gt:F,yt:H}=n(),[K,Z]=T("showNativeOverlaidScrollbars"),[Q,ot]=T("overflow"),J=K&&y.x&&y.y,j=!l&&!m&&(M||G||U||Z||E),rt=Me(Q.x),$t=Me(Q.y),bt=rt||$t;let qt=x(N),Qt=z(N),ae=A(N),de=tt(N),st;if(Z&&b&&a(wo,Ys,!J),j&&(st=_(J),P(st,F)),M||B||G||v||Z){bt&&a(le,ie,!1);const[At,Yt]=L(J,H,st),[Nt,We]=qt=g(N),[It,Se]=Qt=k(N),te=ve(i);let On=It,Vn=te;At(),(Se||We||Z)&&Yt&&!J&&D(Yt,It,Nt,H)&&(Vn=ve(i),On=Ne(i));const mc={w:Wt(xn(It.w,On.w)+Nt.w),h:Wt(xn(It.h,On.h)+Nt.h)},Zo={w:Wt((h?p.innerWidth:Vn.w+Wt(te.w-It.w))+Nt.w),h:Wt((h?p.innerHeight+Nt.h:Vn.h+Wt(te.h-It.h))+Nt.h)};de=R(Zo),ae=V(xr(mc,Zo),N)}const[ut,pt]=de,[Bt,Pe]=ae,[En,vn]=Qt,[Nn,In]=qt,vt={x:Bt.w>0,y:Bt.h>0},Re=rt&&$t&&(vt.x||vt.y)||rt&&vt.x&&!vt.y||$t&&vt.y&&!vt.x;if(B||v||In||vn||pt||Pe||ot||Z||j){const At={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},Yt=w(J,vt,Q,At),Nt=D(Yt,En,Nn,H);l||$(Yt,H,Nt,At),j&&P(Yt,F),l?(lt(r,go,At.overflowX),lt(r,yo,At.overflowY)):it(i,At)}Xt(r,xt,ie,Re),Xt(c,pn,js,Re),l||Xt(i,Ft,le,bt);const[zn,Fe]=Y(_(J).Ot);return s({Ot:zn,zt:{x:ut.w,y:ut.h},Et:{x:Bt.w,y:Bt.h},At:vt}),{It:Fe,Ht:pt,Lt:Pe}}},Vo=(t,e,n)=>{const s={},r=e||{},c=mt(t).concat(mt(r));return q(c,i=>{const d=t[i],l=r[i];s[i]=!!(n||d||l)}),s},Br=(t,e)=>{const{Z:n,K:s,ht:r,ft:c}=t,{A:i,I:d,Y:l}=ft(),a=!i&&(d.x||d.y),f=[wr(t,e),Sr(t,e),$r(t,e)];return(p,u,m)=>{const b=Vo(et({wt:!1,xt:!1,St:!1,vt:!1,Ht:!1,Lt:!1,It:!1,Tt:!1,bt:!1,Pt:!1},u),{},m),y=a||!l,S=y&&kt(s),C=y&&Lt(s);r("",Oe,!0);let h=b;return q(f,g=>{h=Vo(h,g(h,p,!!m)||{},m)}),kt(s,S),Lt(s,C),r("",Oe),c||(kt(n,0),Lt(n,0)),h}},Cr=(t,e,n)=>{let s,r=!1;const c=()=>{r=!0},i=d=>{if(n){const l=n.reduce((a,f)=>{if(f){const[p,u]=f,m=u&&p&&(d?d(p):jn(p,t));m&&m.length&&u&&Rt(u)&&X(a,[m,u.trim()],!0)}return a},[]);q(l,a=>q(a[0],f=>{const p=a[1],u=s.get(f)||[];if(t.contains(f)){const b=nt(f,p,y=>{r?(b(),s.delete(f)):e(y)});s.set(f,X(u,b))}else Dt(u),s.delete(f)}))}};return n&&(s=new WeakMap,i()),[c,i]},Lo=(t,e,n,s)=>{let r=!1;const{Mt:c,Dt:i,Rt:d,kt:l,Bt:a,Vt:f}=s||{},p=cn(()=>{r&&n(!0)},{g:33,v:99}),[u,m]=Cr(t,p,d),b=c||[],y=i||[],S=b.concat(y),C=(g,x)=>{const k=a||ht,z=f||ht,V=new Set,A=new Set;let R=!1,tt=!1;if(q(g,Y=>{const{attributeName:P,target:_,type:w,oldValue:$,addedNodes:D,removedNodes:L}=Y,I=w==="attributes",T=w==="childList",N=t===_,M=I&&Rt(P)?lt(_,P):0,U=M!==0&&$!==M,G=Xe(y,P)>-1&&U;if(e&&(T||!N)){const B=!I,E=I&&U,v=E&&l&&Ce(_,l),H=(v?!k(_,P,$,M):B||E)&&!z(Y,!!v,t,s);q(D,K=>V.add(K)),q(L,K=>V.add(K)),tt=tt||H}!e&&N&&U&&!k(_,P,$,M)&&(A.add(P),R=R||G)}),V.size>0&&m(Y=>jt(V).reduce((P,_)=>(X(P,jn(Y,_)),Ce(_,Y)?X(P,_):P),[])),e)return!x&&tt&&n(!1),[!1];if(A.size>0||R){const Y=[jt(A),R];return!x&&n.apply(0,Y),Y}},h=new Vs(g=>C(g));return h.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:S,subtree:e,childList:e,characterData:e}),r=!0,[()=>{r&&(u(),h.disconnect(),r=!1)},()=>{if(r){p.m();const g=h.takeRecords();return!Ge(g)&&C(g,!0)}}]},Ae=3333333,Ho=(t,e,n)=>{const{Yt:s=!1,Pt:r=!1}=n||{},c=Jt()[lr],{V:i}=ft(),l=Gn(`<div class="${mn}"><div class="${Gs}"></div></div>`)[0],a=l.firstChild,f=ye.bind(0,t),[p]=St({o:void 0,_:!0,u:(y,S)=>!(!y||!ce(y)&&ce(S))}),u=y=>{const S=gt(y)&&y.length>0&&he(y[0]),C=!S&&Ye(y[0]);let h=!1,g=!1,x=!0;if(S){const[k,,z]=p(y.pop().contentRect),V=ce(k),A=ce(z);h=!z&&!!A||!V,g=!A&&V,x=!h}else C?[,x]=y:g=y===!0;if(s&&x){const k=C?y[0]:ye(l);kt(l,k?i.n?-Ae:i.i?0:Ae:Ae),Lt(l,Ae)}h||e({wt:!C,jt:C?y:void 0,Pt:!!g})},m=[];let b=r?u:!1;return[()=>{Dt(m),Tt(l)},()=>{if(se){const y=new se(u);y.observe(a),X(m,()=>{y.disconnect()})}else if(c){const[y,S]=c.O(a,u,r);b=y,X(m,S)}if(s){const[y]=St({o:void 0},f);X(m,nt(l,"scroll",S=>{const C=y(),[h,g,x]=C;g&&(rn(a,"ltr rtl"),h?Mt(a,"rtl"):Mt(a,"ltr"),u([!!h,g,x])),io(S)}))}b&&(Mt(l,Xs),X(m,nt(l,"animationstart",b,{C:!!se}))),(se||c)&&yt(t,l)}]},Dr=t=>t.h===0||t.isIntersecting||t.intersectionRatio>0,Tr=(t,e)=>{let n;const s=Gt(Ks),r=[],[c]=St({o:!1}),i=(l,a)=>{if(l){const f=c(Dr(l)),[,p]=f;if(p)return!a&&e(f),[f]}},d=(l,a)=>{if(l&&l.length>0)return i(l.pop(),a)};return[()=>{Dt(r),Tt(s)},()=>{if(Kn)n=new Kn(l=>d(l),{root:t}),n.observe(s),X(r,()=>{n.disconnect()});else{const l=()=>{const p=be(s);i(p)},[a,f]=Ho(s,l);X(r,a),f(),l()}yt(t,s)},()=>{if(n)return d(n.takeRecords(),!0)}]},Mo=`[${xt}]`,Er=`[${Ft}]`,$n=["tabindex"],Ao=["wrap","cols","rows"],Bn=["id","class","style","open"],vr=(t,e,n)=>{let s,r,c;const{J:i,K:d,nt:l,lt:a,ft:f,_t:p,ht:u}=t,{Y:m}=ft(),[b]=St({u:to,o:{w:0,h:0}},()=>{const $=p(le,ie),D=p(un,""),L=D&&kt(d),I=D&&Lt(d);u(le,ie),u(un,""),u("",Oe,!0);const T=Ne(l),N=Ne(d),M=Ie(d);return u(le,ie,$),u(un,"",D),u("",Oe),kt(d,L),Lt(d,I),{w:N.w+T.w+M.w,h:N.h+T.h+M.h}}),y=a?Ao:Bn.concat(Ao),S=cn(n,{g:()=>s,v:()=>r,p($,D){const[L]=$,[I]=D;return[mt(L).concat(mt(I)).reduce((T,N)=>(T[N]=L[N]||I[N],T),{})]}}),C=$=>{q($||$n,D=>{if(Xe($n,D)>-1){const L=lt(i,D);Rt(L)?lt(d,D,L):at(d,D)}})},h=($,D)=>{const[L,I]=$,T={vt:I};return e({gt:L}),!D&&n(T),T},g=({wt:$,jt:D,Pt:L})=>{const I=!$||L?n:S;let T=!1;if(D){const[N,M]=D;T=M,e({yt:N})}I({wt:$,Pt:L,St:T})},x=($,D)=>{const[,L]=b(),I={bt:L};return L&&!D&&($?n:S)(I),I},k=($,D,L)=>{const I={Tt:D};return D?!L&&S(I):f||C($),I},[z,V,A]=l||!m?Tr(i,h):[ht,ht,ht],[R,tt]=f?[ht,ht]:Ho(i,g,{Pt:!0,Yt:!0}),[Y,P]=Lo(i,!1,k,{Dt:Bn,Mt:Bn.concat($n)});let _;const w=f&&se&&new se($=>{const D=$[$.length-1].contentRect,L=ce(D),T=!ce(_)&&L;g({wt:!0,Pt:T}),_=D});return[()=>{z(),R(),c&&c[0](),w&&w.disconnect(),Y()},()=>{w&&w.observe(i),C(),tt(),V()},()=>{const $={},D=P(),L=A(),I=c&&c[1]();return D&&et($,k.apply(0,X(D,!0))),L&&et($,h.apply(0,X(L,!0))),I&&et($,x.apply(0,X(I,!0))),$},$=>{const[D]=$("update.ignoreMutation"),[L,I]=$("update.attributes"),[T,N]=$("update.elementEvents"),[M,U]=$("update.debounce"),G=N||I,B=E=>_t(D)&&D(E);if(G&&(c&&(c[1](),c[0]()),c=Lo(l||d,!0,x,{Mt:y.concat(L||[]),Rt:T,kt:Mo,Vt:(E,v)=>{const{target:F,attributeName:H}=E;return(!v&&H&&!f?Es(F,Mo,Er):!1)||!!ne(F,`.${dt}`)||!!B(E)}})),U)if(S.m(),gt(M)){const E=M[0],v=M[1];s=Pt(E)&&E,r=Pt(v)&&v}else Pt(M)?(s=M,r=!1):(s=!1,r=!1)}]},Po={x:0,y:0},Nr=t=>({tt:{t:0,r:0,b:0,l:0},$t:!1,P:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},zt:Po,Et:Po,Ot:{x:"hidden",y:"hidden"},At:{x:!1,y:!1},gt:!1,yt:ye(t.J)}),Ir=(t,e)=>{const n=_n(e,{}),[s,r,c]=dn(),[i,d,l]=br(t),a=Io(Nr(i)),[f,p]=a,u=Br(i,a),m=(g,x,k)=>{const V=mt(g).some(A=>!!g[A])||!Ke(x)||k;return V&&c("u",[g,x,k]),V},[b,y,S,C]=vr(i,p,g=>m(u(n,g),{},!1)),h=f.bind(0);return h.Nt=g=>s("u",g),h.qt=()=>{const{Z:g,K:x,rt:k,it:z}=i,V=z?k.documentElement:g,A=kt(V),R=Lt(V);y(),d(),kt(x,A),Lt(x,R)},h.Ft=i,[(g,x)=>{const k=_n(e,g,x);return C(k),m(u(k,S(),x),g,!!x)},h,()=>{r(),b(),l()}]},{round:Ro}=Math,zr=t=>{const{width:e,height:n}=Et(t),{w:s,h:r}=be(t);return{x:Ro(e)/s||1,y:Ro(n)/r||1}},Or=(t,e,n)=>{const s=e.scrollbars,{button:r,isPrimary:c,pointerType:i}=t,{pointers:d}=s;return r===0&&c&&s[n?"dragScroll":"clickScroll"]&&(d||[]).includes(i)},Fo="pointerup pointerleave pointercancel lostpointercapture",Vr=t=>({transform:[re("0%",t),re("-100%",t)],[t?"left":"top"]:["0%","100%"]}),Lr=(t,e)=>nt(t,"mousedown",nt.bind(0,e,"click",io,{C:!0,$:!0}),{$:!0}),Hr=(t,e,n,s,r,c,i)=>{const{V:d}=ft(),{Gt:l,Xt:a,Ut:f}=s,p=`scroll${i?"Left":"Top"}`,u=`client${i?"X":"Y"}`,m=i?"width":"height",b=i?"left":"top",y=i?"w":"h",S=i?"x":"y",C=(h,g)=>x=>{const{Et:k}=c(),z=be(a)[y]-be(l)[y],A=g*x/z*k[S],tt=ye(f)&&i?d.n||d.i?1:-1:1;r[p]=h+A*tt};return nt(a,"pointerdown",h=>{const g=ne(h.target,`.${hn}`)===l,x=g?l:a;if(Xt(e,xt,bo,!0),Or(h,t,g)){const k=!g&&h.shiftKey,z=()=>Et(l),V=()=>Et(a),A=(T,N)=>(T||z())[b]-(N||V())[b],R=C(r[p]||0,1/zr(r)[S]),tt=h[u],Y=z(),P=V(),_=Y[m],w=A(Y,P)+_/2,$=tt-P[b],D=g?0:$-w,L=T=>{Dt(I),x.releasePointerCapture(T.pointerId)},I=[Xt.bind(0,e,xt,bo),nt(n,Fo,L),nt(n,"selectstart",T=>lo(T),{S:!1}),nt(a,Fo,L),nt(a,"pointermove",T=>{const N=T[u]-tt;(g||k)&&R(D+N)})];if(k)R(D);else if(!g){const T=Jt()[ar];T&&X(I,T.O(R,A,D,_,$))}x.setPointerCapture(h.pointerId)}})},Mr=({Gt:t},e,n)=>{if(!e)return ht;const s=t.animate(Vr(n),{timeline:e});return()=>{s.cancel()}},Ar=(t,e)=>(n,s,r,c,i,d,l)=>{const{Ut:a}=n,[f,p]=Kt(333),u=!!i.scrollBy;let m=!0;return Dt.bind(0,[nt(a,"pointerenter",()=>{s(xo,!0)}),nt(a,"pointerleave pointercancel",()=>{s(xo)}),nt(a,"wheel",b=>{const{deltaX:y,deltaY:S,deltaMode:C}=b;u&&m&&C===0&&Ht(a)===c&&i.scrollBy({left:y,top:S,behavior:"smooth"}),m=!1,s(Co,!0),f(()=>{m=!0,s(Co)}),lo(b)},{S:!1,$:!0}),Lr(a,r),Hr(t,c,r,n,i,e,l),Mr(n,d,l),p])},{min:Cn,max:Wo,abs:Pr,round:Rr}=Math,Uo=(t,e,n,s)=>{if(s){const d=n?"x":"y",{Et:l,zt:a}=s,f=a[d],p=l[d];return Wo(0,Cn(1,f/(f+p)))}const r=n?"width":"height",c=Et(t)[r],i=Et(e)[r];return Wo(0,Cn(1,c/i))},Fr=(t,e,n,s,r,c)=>{const{V:i}=ft(),d=c?"x":"y",l=c?"Left":"Top",{Et:a}=s,f=Rr(a[d]),p=Pr(n[`scroll${l}`]),u=c&&r,m=i.i?p:f-p,y=Cn(1,(u?m:p)/f),S=Uo(t,e,c);return 1/S*(1-S)*y},Wr=t=>`${Math.max(0,t-.5)}px`,qo=(t,e,n,s)=>t.animate({transform:[re("0px",s),re(Wr(n),s)]},{timeline:e,composite:"add"}),Yo=(t,e)=>on?new on({source:t,axis:e}):null,Ur=(t,e,n)=>{const{q:s,H:r}=ft(),{scrollbars:c}=s(),{slot:i}=c,{rt:d,Z:l,J:a,K:f,ut:p,st:u,it:m,ft:b}=e,{scrollbars:y}=p?{}:t,{slot:S}=y||{},C=new Map,h=Yo(u,"x"),g=Yo(u,"y"),x=Eo([l,a,f],()=>b&&m?l:a,i,S),k=B=>b&&!m&&Ht(B)===f,z=()=>{C.forEach(B=>{(B||[]).forEach(E=>{E.cancel()})})},V=(B,E,v)=>{const F=v?Mt:rn;q(B,H=>{F(H.Ut,E)})},A=(B,E)=>{q(B,v=>{const[F,H]=E(v);it(F,H)})},R=(B,E,v)=>{A(B,F=>{const{Gt:H,Xt:K}=F;return[H,{[v?"width":"height"]:`${(100*Uo(H,K,v,E)).toFixed(3)}%`}]})},tt=(B,E,v)=>{!g&&!g&&A(B,F=>{const{Gt:H,Xt:K,Ut:Z}=F,Q=Fr(H,K,u,E,ye(Z),v);return[H,{transform:Q===Q?re(`${(100*Q).toFixed(3)}%`,v):""}]})},Y=B=>{const{Ut:E}=B,v=k(E)&&E;return[v,{transform:v?re([`${kt(u)}px`,`${Lt(u)}px`]):""}]},P=[],_=[],w=[],$=(B,E,v)=>{const F=Ye(v),H=F?v:!0,K=F?!v:!0;H&&V(_,B,E),K&&V(w,B,E)},D=B=>{R(_,B,!0),R(w,B)},L=B=>{tt(_,B,!0),tt(w,B)},I=()=>{!g&&!g&&(b&&A(_,Y),b&&A(w,Y))},T=({Et:B})=>{z(),w.concat(_).forEach(({Ut:E})=>{k(E)&&C.set(E,[qo(E,h,B.x,!0),qo(E,g,B.y)])})},N=B=>{const E=B?tr:er,v=B?_:w,F=Ge(v)?ko:"",H=Gt(`${dt} ${E} ${F}`),K=Gt(_o),Z=Gt(hn),Q={Ut:H,Xt:K,Gt:Z};return r||Mt(H,Js),yt(H,K),yt(K,Z),X(v,Q),X(P,[()=>{z(),C.clear()},Tt.bind(0,H),n(Q,$,d,a,u,B?h:g,B)]),Q},M=N.bind(0,!0),U=N.bind(0,!1),G=()=>{yt(x,_[0].Ut),yt(x,w[0].Ut),De(()=>{$(ko)},300)};return M(),U(),[{Wt:D,Zt:L,Jt:T,Kt:I,Qt:$,tn:{B:h,nn:_,sn:M,en:A.bind(0,_)},cn:{B:g,nn:w,sn:U,en:A.bind(0,w)}},G,Dt.bind(0,P)]},qr=(t,e,n,s)=>{let r,c,i,d,l,a=0;const f=Io({}),[p]=f,[u,m]=Kt(),[b,y]=Kt(),[S,C]=Kt(100),[h,g]=Kt(100),[x,k]=Kt(100),[z,V]=Kt(()=>a),[A,R,tt]=Ur(t,n.Ft,Ar(e,n)),{J:Y,et:P,it:_}=n.Ft,{Qt:w,Wt:$,Zt:D,Jt:L,Kt:I}=A,T=B=>{w(gn,B,!0),w(gn,B,!1)},N=(B,E)=>{if(V(),B)w(Bo);else{const v=()=>w(Bo,!0);a>0&&!E?z(v):v()}},M=()=>{d=c,d&&N(!0)},U=[C,V,g,k,y,m,tt,nt(Y,"pointerover",M,{C:!0}),nt(Y,"pointerenter",M),nt(Y,"pointerleave",()=>{d=!1,c&&N(!1)}),nt(Y,"pointermove",()=>{r&&u(()=>{C(),N(!0),h(()=>{r&&N(!1)})})}),nt(P,"scroll",B=>{b(()=>{D(n()),i&&N(!0),S(()=>{i&&!d&&N(!1)})}),s(B),I()})],G=p.bind(0);return G.Ft=A,G.qt=R,[(B,E,v)=>{const{Ht:F,Lt:H,It:K,St:Z,Pt:Q}=v,{I:ot}=ft(),J=_n(e,B,E),j=n(),{Et:rt,Ot:$t,yt:bt,At:qt}=j,[Qt,ae]=J("showNativeOverlaidScrollbars"),[de,st]=J("scrollbars.theme"),[ut,pt]=J("scrollbars.visibility"),[Bt,Pe]=J("scrollbars.autoHide"),[En,vn]=J("scrollbars.autoHideSuspend"),[Nn]=J("scrollbars.autoHideDelay"),[In,vt]=J("scrollbars.dragScroll"),[Re,zn]=J("scrollbars.clickScroll"),Fe=Q&&!E,At=F||H||Z,Yt=K||pt,Nt=Qt&&ot.x&&ot.y,We=(It,Se)=>{const te=ut==="visible"||ut==="auto"&&It==="scroll";return w(nr,te,Se),te};if(a=Nn,ae&&w(Zs,Nt),st&&(w(l),w(de,!0),l=de),(vn||Fe)&&(En&&Fe&&(qt.x||qt.y)?(T(!1),x(()=>U.push(nt(P,"scroll",T.bind(0,!0),{C:!0})))):T(!0)),Pe&&(r=Bt==="move",c=Bt==="leave",i=Bt!=="never",N(!i,!0)),vt&&w(rr,In),zn&&w(sr,Re),Yt){const It=We($t.x,!0),Se=We($t.y,!1);w(or,!(It&&Se))}At&&($(j),D(j),L(j),I(),w($o,!rt.x,!0),w($o,!rt.y,!1),w(Qs,bt&&!_))},G,Dt.bind(0,U)]},jo=(t,e,n)=>{_t(t)&&t(e||void 0,n||void 0)},Ut=(t,e,n)=>{const{G:s,q:r,j:c,N:i}=ft(),d=Jt(),l=ge(t),a=l?t:t.target,f=vo(a);if(e&&!f){let p=!1;const u=_=>{const w=Jt()[ir],$=w&&w.O;return $?$(_,!0):_},m=et({},s(),u(e)),[b,y,S]=dn(n),[C,h,g]=Ir(t,m),[x,k,z]=qr(t,m,h,_=>S("scroll",[P,_])),V=(_,w)=>C(_,!!w),A=V.bind(0,{},!0),R=c(A),tt=i(A),Y=_=>{yr(a),R(),tt(),z(),g(),p=!0,S("destroyed",[P,!!_]),y()},P={options(_,w){if(_){const $=w?s():{},D=uo(m,et($,u(_)));Ke(D)||(et(m,D),V(D))}return et({},m)},on:b,off:(_,w)=>{_&&w&&y(_,w)},state(){const{zt:_,Et:w,Ot:$,At:D,tt:L,$t:I,yt:T}=h();return et({},{overflowEdge:_,overflowAmount:w,overflowStyle:$,hasOverflow:D,padding:L,paddingAbsolute:I,directionRTL:T,destroyed:p})},elements(){const{Z:_,J:w,tt:$,K:D,nt:L,st:I,et:T}=h.Ft,{tn:N,cn:M}=k.Ft,U=B=>{const{Gt:E,Xt:v,Ut:F}=B;return{scrollbar:F,track:v,handle:E}},G=B=>{const{nn:E,sn:v}=B,F=U(E[0]);return et({},F,{clone:()=>{const H=U(v());return x({},!0,{}),H}})};return et({},{target:_,host:w,padding:$||D,viewport:D,content:L||D,scrollOffsetElement:I,scrollEventElement:T,scrollbarHorizontal:G(N),scrollbarVertical:G(M)})},update:_=>V({},_),destroy:Y.bind(0)};return h.Nt((_,w,$)=>{x(w,$,_)}),gr(a,P),q(mt(d),_=>jo(d[_],0,P)),hr(h.Ft.it,r().cancel,!l&&t.cancel)?(Y(!0),P):(h.qt(),k.qt(),S("initialized",[P]),h.Nt((_,w,$)=>{const{wt:D,St:L,vt:I,Ht:T,Lt:N,It:M,bt:U,Tt:G}=_;S("updated",[P,{updateHints:{sizeChanged:D,directionChanged:L,heightIntrinsicChanged:I,overflowEdgeChanged:T,overflowAmountChanged:N,overflowStyleChanged:M,contentMutation:U,hostMutation:G},changedOptions:w,force:$}])}),P.update(!0),P)}return f};Ut.plugin=t=>{q(cr(t),e=>jo(e,Ut))},Ut.valid=t=>{const e=t&&t.elements,n=_t(e)&&e();return je(n)&&!!vo(n.target)},Ut.env=()=>{const{k:t,I:e,A:n,V:s,Y:r,H:c,B:i,U:d,W:l,q:a,F:f,G:p,X:u}=ft();return et({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,rtlScrollBehavior:s,flexboxGlue:r,cssCustomProperties:c,scrollTimeline:i,staticDefaultInitialization:d,staticDefaultOptions:l,getDefaultInitialization:a,setDefaultInitialization:f,getDefaultOptions:p,setDefaultOptions:u})};const Yr=()=>{if(typeof window>"u"){const a=()=>{};return[a,a]}let t,e;const n=window,s=typeof n.requestIdleCallback=="function",r=n.requestAnimationFrame,c=n.cancelAnimationFrame,i=s?n.requestIdleCallback:r,d=s?n.cancelIdleCallback:c,l=()=>{d(t),c(e)};return[(a,f)=>{l(),t=i(s?()=>{l(),e=r(a)}:a,typeof f=="object"?f:{timeout:2233})},l]},Xo=t=>{let e=null,n,s,r;const c=o.shallowRef(t||{}),[i,d]=Yr();return o.watch(()=>{var l;return o.unref((l=c.value)==null?void 0:l.defer)},l=>{r=l},{deep:!0,immediate:!0}),o.watch(()=>{var l;return o.unref((l=c.value)==null?void 0:l.options)},l=>{n=l,Ut.valid(e)&&e.options(n||{},!0)},{deep:!0,immediate:!0}),o.watch(()=>{var l;return o.unref((l=c.value)==null?void 0:l.events)},l=>{s=l,Ut.valid(e)&&e.on(s||{},!0)},{deep:!0,immediate:!0}),o.onUnmounted(()=>{d(),e==null||e.destroy()}),[l=>{if(Ut.valid(e))return e;const a=()=>e=Ut(l,n||{},s||{});r?i(a,r):a()},()=>e]},jr=o.defineComponent({__name:"OverlayScrollbarsComponent",props:{element:{default:"div"},options:{type:[Boolean,null],default:void 0},events:{type:[Boolean,null],default:void 0},defer:{type:Boolean,default:void 0}},emits:["osInitialized","osUpdated","osDestroyed","osScroll"],setup(t,{expose:e,emit:n}){const s=t,r={initialized:"osInitialized",updated:"osUpdated",destroyed:"osDestroyed",scroll:"osScroll"},{element:c,options:i,events:d,defer:l}=o.toRefs(s),a=o.shallowRef(null),f=o.shallowRef(null),p=o.ref(),u=o.ref(!1),[m,b]=Xo({options:i,events:p,defer:l});return e({osInstance:b,getElement:()=>a.value}),o.onMounted(()=>{u.value=!0}),o.watchPostEffect(y=>{const{value:S}=a,{value:C}=f;u.value&&S&&C&&(m({target:S,elements:{viewport:C,content:C}}),y(()=>{var h;return(h=b())==null?void 0:h.destroy()}))}),o.watch(()=>o.unref(d),y=>{const S=y||{};p.value=Object.keys(r).reduce((C,h)=>{const g=S[h];return C[h]=[(...x)=>n(r[h],...x),...(Array.isArray(g)?g:[g]).filter(Boolean)],C},{})},{deep:!0,immediate:!0}),(y,S)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(o.unref(c)),{"data-overlayscrollbars-initialize":"",ref_key:"elementRef",ref:a},{default:o.withCtx(()=>[u.value?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"slotRef",ref:f,"data-overlayscrollbars-contents":""},[o.renderSlot(y.$slots,"default")],512)):o.renderSlot(y.$slots,"default",{key:1})]),_:3},512))}}),Xr={__name:"DScrollProvider",props:{autoHide:{type:String,default:"never"}},setup(t){const e=t,n=o.ref(null),[s,r]=Xo({defer:!0,events:{initialized:()=>{n.value=!0},destroyed:()=>{n.value=!1}},options:{scrollbars:{theme:"os-theme-light",autoHide:e.autoHide}}});return o.watch(()=>Ot.state.theme,c=>{r().options({scrollbars:{theme:c==="dark"?"os-theme-light":"os-theme-dark",autoHide:e.autoHide}})}),o.onMounted(()=>s(document.body)),(c,i)=>o.renderSlot(c.$slots,"default")}},Cc="",Gr=ue({__name:"DScroll",props:{autoHide:{type:String,default:"never"}},setup(t){const e=t,n=o.ref(null);return o.watch(()=>Ot.state.theme,s=>{n.value.osInstance().options({scrollbars:{theme:s==="dark"?"os-theme-light":"os-theme-dark",autoHide:e.autoHide}})}),(s,r)=>(o.openBlock(),o.createBlock(o.unref(jr),{class:"os-vue",ref_key:"osRef",ref:n,options:{scrollbars:{theme:"os-theme-light",autoHide:e.autoHide}},events:{},defer:""},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default",{},void 0,!0)]),_:3},8,["options"]))}},[["__scopeId","data-v-9b322173"]]),Tc="",Kr={class:"modal-dialog"},Jr={class:"modal-content"},Zr={class:"modal-header"},Qr={class:"modal-title"},tc={class:"modal-body"},ec={class:"modal-footer"},Dn=ue({__name:"DModal",props:{show:Boolean,width:String},emits:["open","close"],setup(t,{expose:e,emit:n}){const s=t;o.useCssVars(l=>({"558e9e46":s.width}));const r=o.ref(null),c=o.ref(!1);c.value=s==null?void 0:s.show;const i=()=>{c.value=!0,n("open",r)},d=()=>{c.value=!1,n("close",r)};return e({show:i,hide:d}),(l,a)=>{const f=o.resolveDirective("keydown");return o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[o.createVNode(o.Transition,{name:"fade"},{default:o.withCtx(()=>[c.value?o.withDirectives((o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"modalRef",ref:r,class:"modal"},[o.createElementVNode("div",Kr,[o.createElementVNode("div",Jr,[o.createElementVNode("div",Zr,[o.createElementVNode("h5",Qr,[o.renderSlot(l.$slots,"modal-title",{},void 0,!0)])]),o.createElementVNode("div",tc,[o.renderSlot(l.$slots,"default",{},void 0,!0)]),o.createElementVNode("div",ec,[o.renderSlot(l.$slots,"modal-footer",{},void 0,!0)])])])])),[[f,d,"Escape"]]):o.createCommentVNode("",!0)]),_:3})])}}},[["__scopeId","data-v-82cadd63"]]),Zt=o.shallowRef();function Tn(t){t===void 0&&(t=Zt.value.comp.returnValue()),Zt.value.resolve(t),Zt.value=null}function Go(t,e,n="default"){return new Promise(s=>{Zt.value={dialog:t,props:e,wrapper:n,resolve:s}})}o.defineComponent({name:"DialogWrapper",components:{},props:{name:{type:String,default:"default"},transitionAttrs:Object},setup(){const t=o.ref();return o.watch(t,()=>{Zt.value&&(Zt.value.comp=t.value)}),{dialogRef:Zt,dialogInstance:t}}});const nc={style:{display:"flex","flex-direction":"row","justify-content":"center",gap:"5px"}},Ko={__name:"DAlertDialog",props:{title:String,message:String},setup(t,{expose:e}){const n=t;return e({returnValue:()=>!0}),(r,c)=>(o.openBlock(),o.createBlock(Dn,{show:!0},{"modal-title":o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.title),1)]),default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.message),1)]),"modal-footer":o.withCtx(()=>[o.createElementVNode("div",nc,[o.createVNode(fe,{onClick:c[0]||(c[0]=i=>o.unref(Tn)())},{default:o.withCtx(()=>[o.createTextVNode("Закрыть")]),_:1})])]),_:1}))}},oc={style:{display:"flex","flex-direction":"row","justify-content":"center",gap:"5px"}},Jo={__name:"DConfirmDialog",props:{title:String,message:String},setup(t,{expose:e}){const n=t;return e({returnValue:()=>!0}),(r,c)=>(o.openBlock(),o.createBlock(Dn,{show:!0},{"modal-title":o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.title),1)]),default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.message),1)]),"modal-footer":o.withCtx(()=>[o.createElementVNode("div",oc,[o.createVNode(fe,{onClick:c[0]||(c[0]=i=>o.unref(Tn)())},{default:o.withCtx(()=>[o.createTextVNode("Да")]),_:1}),o.createVNode(fe,{class:"button-red",onClick:c[1]||(c[1]=i=>o.unref(Tn)(!1))},{default:o.withCtx(()=>[o.createTextVNode("Нет")]),_:1})])]),_:1}))}},sc={class:"dropdown"},rc={__name:"DDropdown",props:{class:String,icon:{type:[String,null],default:null},items:Array},emits:["click"],setup(t,{expose:e,emit:n}){const s=t,r=o.ref(null),c=o.ref(null),i=o.ref(!1),d=o.ref(0),l=o.ref(0),a=()=>{wt.emit("menu-show-request"),i.value=!i.value,o.nextTick(()=>{const m=r.value.elementSize(),b=c.value.elementSize(),y=window.innerWidth,S=window.innerHeight;d.value=y-(b.x+b.width)<m.width?b.width-m.width:0,l.value=S-(b.y+b.height)<m.height?-m.height:b.height+10})},f=m=>{n("click",m),m.model.children||u()},p=o.computed(()=>({left:d.value+"px",top:l.value+"px",display:i.value&&s.items.length>0?"block":"none"})),u=()=>{i.value=!1};return wt.on("menu-show-request",()=>{u()}),e({show:a,hide:u}),(m,b)=>{const y=o.resolveDirective("click-outside");return o.openBlock(),o.createElementBlock("div",sc,[o.createVNode(fe,{ref_key:"buttonRef",ref:c,class:o.normalizeClass(s.class),icon:s.icon,onClick:o.withModifiers(a,["stop","prevent"])},{default:o.withCtx(()=>[o.renderSlot(m.$slots,"default")]),_:3},8,["class","icon","onClick"]),o.withDirectives(o.createVNode(_e,{ref_key:"menuRef",ref:r,items:s.items,class:"dropdown-menu",style:o.normalizeStyle(p.value),"no-select":!0,onSelect:f},null,8,["items","style"]),[[y,u]])])}}},cc={__name:"DContextMenu",props:{items:Array},emits:["click"],setup(t,{expose:e,emit:n}){const s=t,r=o.ref(null),c=o.ref(!1),i=o.ref(0),d=o.ref(0),l=o.computed(()=>({left:i.value+"px",top:d.value+"px",display:c.value&&s.items.length>0?"block":"none"})),a=u=>{wt.emit("menu-show-request"),c.value=!0,o.nextTick(()=>{const m=r.value.elementSize(),b=window.innerWidth,y=window.innerHeight;i.value=b-u.pageX<m.width?u.pageX-m.width:u.pageX,d.value=y-u.pageY<m.height?u.pageY-m.height:u.pageY})},f=()=>{c.value=!1};wt.on("menu-show-request",()=>{f()});const p=u=>{n("click",u),u.model.children||f()};return e({show:a,hide:f}),(u,m)=>{const b=o.resolveDirective("click-outside");return o.withDirectives((o.openBlock(),o.createBlock(_e,{ref_key:"menuRef",ref:r,items:s.items,class:"context-menu",style:o.normalizeStyle(l.value),"no-select":!0,onSelect:p,onExpand:m[0]||(m[0]=y=>console.log("expand ctx event 1",y))},null,8,["items","style"])),[[b,f]])}}},ic=["onClick"],lc={key:1,class:"hr"},ac={key:2},dc={__name:"DContextMenuItem",props:{item:Object},setup(t){const e=t;return(n,s)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.items,r=>(o.openBlock(),o.createElementBlock("li",{key:r.id},[r.type===void 0?(o.openBlock(),o.createElementBlock("a",{key:0,onClick:o.withModifiers(c=>n.clickContext(c,r),["prevent"]),href:"#"},o.toDisplayString(r.name),9,ic)):o.createCommentVNode("",!0),r.type==="divider"?(o.openBlock(),o.createElementBlock("hr",lc)):o.createCommentVNode("",!0),r?(o.openBlock(),o.createElementBlock("ul",ac)):o.createCommentVNode("",!0)]))),128))}};async function fc(t,e){return await Go(Ko,{title:t,message:e})}async function uc(t,e){return await Go(Jo,{title:t,message:e})}const pc={mounted:function(t,e){t.clickOutsideEvent=function(n){t===n.target||t.contains(n.target)||e.value(n,t)},document.addEventListener("click",t.clickOutsideEvent)},unmounted:function(t){document.removeEventListener("click",t.clickOutsideEvent)}};W.DAccordion=bs,W.DAlertDialog=Ko,W.DBadge=Ln,W.DButton=fe,W.DCollapse=Hn,W.DConfigProvider=$s,W.DConfirmDialog=Jo,W.DContextMenu=cc,W.DContextMenuItem=dc,W.DDropdown=rc,W.DGlobalStore=Ot,W.DIcon=ee,W.DIconStore=Ct,W.DInput=os,W.DLayoutAdmin=xs,W.DLayoutContent=Un,W.DLayoutFooter=Fn,W.DLayoutHeader=Pn,W.DLayoutSidebar=Wn,W.DLayoutTab=Rn,W.DModal=Dn,W.DScroll=Gr,W.DScrollProvider=Xr,W.DTransferStore=pe,W.DTree=_e,W.DTreeItem=Mn,W.DTreeStore=O,W.alert=fc,W.clickOutside=pc,W.confirm=uc,W.emitter=wt,W.eventsBus=An,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* https://github.com/KingSora
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT license.
|
|
9
|
-
*/.os-size-observer,.os-size-observer-listener{direction:inherit;pointer-events:none;overflow:hidden;visibility:hidden;box-sizing:border-box}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;left:0;top:0}.os-size-observer{z-index:-1;contain:strict;display:flex;flex-direction:row;flex-wrap:nowrap;padding:inherit;border:inherit;box-sizing:inherit;margin:-133px;top:0;right:0;bottom:0;left:0;transform:scale(.1)}.os-size-observer:before{content:"";flex:none;box-sizing:inherit;padding:10px;width:10px;height:10px}.os-size-observer-appear{animation:os-size-observer-appear-animation 1ms forwards}.os-size-observer-listener{box-sizing:border-box;position:relative;flex:auto;padding:inherit;border:inherit;margin:-133px;transform:scale(10)}.os-size-observer-listener.ltr{margin-right:-266px;margin-left:0}.os-size-observer-listener.rtl{margin-left:-266px;margin-right:0}.os-size-observer-listener:empty:before{content:"";width:100%;height:100%}.os-size-observer-listener:empty:before,.os-size-observer-listener>.os-size-observer-listener-item{display:block;position:relative;padding:inherit;border:inherit;box-sizing:content-box;flex:auto}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{right:0;bottom:0;overflow:hidden;direction:ltr;flex:none}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{0%{cursor:auto}to{cursor:none}}.os-trinsic-observer{flex:none;box-sizing:border-box;position:relative;max-width:0px;max-height:1px;padding:0;margin:0;border:none;overflow:hidden;z-index:-1;height:0;top:calc(100% + 1px);contain:strict}.os-trinsic-observer:not(:empty){height:calc(100% + 1px);top:-1px}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}.os-environment{--os-custom-prop: -1;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:var(--os-custom-prop)}.os-environment div{width:200%;height:200%;margin:10px 0}.os-environment.os-environment-flexbox-glue{display:flex;flex-direction:row;flex-wrap:nowrap;height:auto;width:auto;min-height:200px;min-width:200px}.os-environment.os-environment-flexbox-glue div{flex:auto;width:auto;height:auto;max-height:100%;max-width:100%;margin:0}.os-environment.os-environment-flexbox-glue-max{max-height:200px}.os-environment.os-environment-flexbox-glue-max div{overflow:visible}.os-environment.os-environment-flexbox-glue-max div:before{content:"";display:block;height:999px;width:999px}.os-environment,[data-overlayscrollbars-viewport]{-ms-overflow-style:scrollbar!important}[data-overlayscrollbars-initialize],[data-overlayscrollbars~=scrollbarHidden],[data-overlayscrollbars-viewport~=scrollbarHidden],.os-scrollbar-hidden.os-environment{scrollbar-width:none!important}[data-overlayscrollbars-initialize]::-webkit-scrollbar,[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,.os-scrollbar-hidden.os-environment::-webkit-scrollbar,.os-scrollbar-hidden.os-environment::-webkit-scrollbar-corner{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;display:none!important;width:0!important;height:0!important}[data-overlayscrollbars-initialize]:not(html):not(body){overflow:auto}html[data-overlayscrollbars],html.os-scrollbar-hidden,html.os-scrollbar-hidden>body{box-sizing:border-box;margin:0;width:100%;height:100%}html[data-overlayscrollbars]>body{overflow:visible}[data-overlayscrollbars~=host]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;flex-direction:row!important;flex-wrap:nowrap!important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]{box-sizing:inherit;position:relative;flex:auto!important;height:auto;width:100%;min-width:0;padding:0;margin:0;border:none;z-index:0}[data-overlayscrollbars-viewport]{--os-vaw: 0;--os-vah: 0}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]:before{content:"";position:absolute;pointer-events:none;z-index:-1;min-width:1px;min-height:1px;width:var(--os-vaw);height:var(--os-vah)}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport],[data-overlayscrollbars~=host],[data-overlayscrollbars~=viewport]{overflow:hidden}[data-overlayscrollbars~=overflowVisible],[data-overlayscrollbars-padding~=overflowVisible],[data-overlayscrollbars-viewport~=overflowVisible]{overflow:visible}[data-overlayscrollbars-overflow-x=hidden]{overflow-x:hidden}[data-overlayscrollbars-overflow-x=scroll]{overflow-x:scroll}[data-overlayscrollbars-overflow-x=hidden]{overflow-y:hidden}[data-overlayscrollbars-overflow-y=scroll]{overflow-y:scroll}[data-overlayscrollbars~=scrollbarPressed],[data-overlayscrollbars~=scrollbarPressed] [data-overlayscrollbars-viewport]{scroll-behavior:auto!important}[data-overlayscrollbars-content]{box-sizing:inherit}[data-overlayscrollbars-contents]:not([data-overlayscrollbars-padding]):not([data-overlayscrollbars-viewport]):not([data-overlayscrollbars-content]){display:contents}[data-overlayscrollbars-grid],[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]{display:grid;grid-template:1fr/1fr}[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding],[data-overlayscrollbars-grid]>[data-overlayscrollbars-viewport],[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding]>[data-overlayscrollbars-viewport]{height:auto!important;width:auto!important}.os-scrollbar{contain:size layout;contain:size layout style;transition:opacity .15s,visibility .15s,top .15s,right .15s,bottom .15s,left .15s;pointer-events:none;position:absolute;opacity:0;visibility:hidden}body>.os-scrollbar{position:fixed;z-index:99999}.os-scrollbar-transitionless{transition:none}.os-scrollbar-track{position:relative;direction:ltr!important;padding:0!important;border:none!important}.os-scrollbar-handle{position:absolute}.os-scrollbar-track,.os-scrollbar-handle{pointer-events:none;width:100%;height:100%}.os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle{pointer-events:auto;touch-action:none}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal{right:0}.os-scrollbar-rtl.os-scrollbar-vertical{right:auto;left:0}.os-scrollbar-visible,.os-scrollbar-interaction.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-auto-hide.os-scrollbar-auto-hide-hidden{opacity:0;visibility:hidden}.os-scrollbar-unusable,.os-scrollbar-unusable *,.os-scrollbar-wheel,.os-scrollbar-wheel *{pointer-events:none!important}.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important}.os-scrollbar-horizontal .os-scrollbar-handle{bottom:0}.os-scrollbar-vertical .os-scrollbar-handle{right:0}.os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle{right:auto;left:0}.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl{left:0;right:0}.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl{top:0;bottom:0}.os-scrollbar{--os-size: 0;--os-padding-perpendicular: 0;--os-padding-axis: 0;--os-track-border-radius: 0;--os-track-bg: none;--os-track-bg-hover: none;--os-track-bg-active: none;--os-track-border: none;--os-track-border-hover: none;--os-track-border-active: none;--os-handle-border-radius: 0;--os-handle-bg: none;--os-handle-bg-hover: none;--os-handle-bg-active: none;--os-handle-border: none;--os-handle-border-hover: none;--os-handle-border-active: none;--os-handle-min-size: 33px;--os-handle-max-size: none;--os-handle-perpendicular-size: 100%;--os-handle-perpendicular-size-hover: 100%;--os-handle-perpendicular-size-active: 100%;--os-handle-interactive-area-offset: 0}.os-scrollbar .os-scrollbar-track{border:var(--os-track-border);border-radius:var(--os-track-border-radius);background:var(--os-track-bg);transition:opacity .15s,background-color .15s,border-color .15s}.os-scrollbar .os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar .os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar .os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar .os-scrollbar-handle:before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-scrollbar .os-scrollbar-handle:hover{border:var(--os-handle-border-hover);background:var(--os-handle-bg-hover)}.os-scrollbar .os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.os-scrollbar-horizontal{padding:var(--os-padding-perpendicular) var(--os-padding-axis);right:var(--os-size);height:var(--os-size)}.os-scrollbar-horizontal.os-scrollbar-rtl{left:var(--os-size);right:0}.os-scrollbar-horizontal .os-scrollbar-handle{min-width:var(--os-handle-min-size);max-width:var(--os-handle-max-size);height:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,height .15s}.os-scrollbar-horizontal .os-scrollbar-handle:before{top:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal:hover .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-horizontal:active .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-active)}.os-scrollbar-vertical{padding:var(--os-padding-axis) var(--os-padding-perpendicular);bottom:var(--os-size);width:var(--os-size)}.os-scrollbar-vertical .os-scrollbar-handle{min-height:var(--os-handle-min-size);max-height:var(--os-handle-max-size);width:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,width .15s}.os-scrollbar-vertical .os-scrollbar-handle:before{left:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);left:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical:hover .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-vertical:active .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-active)}[data-overlayscrollbars~=updating]>.os-scrollbar,.os-theme-none.os-scrollbar{display:none!important}.os-theme-dark,.os-theme-light{box-sizing:border-box;--os-size: 10px;--os-padding-perpendicular: 2px;--os-padding-axis: 2px;--os-track-border-radius: 10px;--os-handle-interactive-area-offset: 4px;--os-handle-border-radius: 10px}.os-theme-dark{--os-handle-bg: rgba(0, 0, 0, .44);--os-handle-bg-hover: rgba(0, 0, 0, .55);--os-handle-bg-active: rgba(0, 0, 0, .66)}.os-theme-light{--os-handle-bg: rgba(255, 255, 255, .44);--os-handle-bg-hover: rgba(255, 255, 255, .55);--os-handle-bg-active: rgba(255, 255, 255, .66)}.os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-handle,.os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-handle,.os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-track,.os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-track{border-radius:10px}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal{padding:2px;right:10px;height:10px}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal.os-scrollbar-rtl,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal.os-scrollbar-rtl{left:10px;right:0}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle{min-width:33px;max-width:none}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle:before,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle:before{top:-6px;bottom:-2px}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical,.os-no-css-vars.os-theme-light.os-scrollbar-vertical{padding:2px;bottom:10px;width:10px}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle,.os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle{min-height:33px;max-height:none}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle:before,.os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle:before{left:-6px;right:-2px}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before,.os-no-css-vars.os-theme-light.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:-6px;left:-2px}.os-no-css-vars.os-theme-dark .os-scrollbar-handle{background:rgba(0,0,0,.44)}.os-no-css-vars.os-theme-dark:hover .os-scrollbar-handle{background:rgba(0,0,0,.55)}.os-no-css-vars.os-theme-dark:active .os-scrollbar-handle{background:rgba(0,0,0,.66)}.os-no-css-vars.os-theme-light .os-scrollbar-handle{background:rgba(255,255,255,.44)}.os-no-css-vars.os-theme-light:hover .os-scrollbar-handle{background:rgba(255,255,255,.55)}.os-no-css-vars.os-theme-light:active .os-scrollbar-handle{background:rgba(255,255,255,.66)}.dark .d-input input,.dark .d-select select{color:#ccc;background-color:#292c30;border-color:#4a4a4a}.dark .d-input input:focus,.dark .d-select select:focus{outline:none!important;border-color:#666}.light .d-input input,.light .d-select select{color:#333;background-color:#f2f2f2;border-color:#e5e5e5}.light .d-input input:focus,.light .d-select select:focus{outline:none!important;border-color:#d3d3d3}.d-checkbox input[type=checkbox]+label:before{border:1px solid rgba(255,255,255,.2)}.d-checkbox input[type=checkbox]:checked+label:before{border-color:#666;background-color:#666}.d-checkbox input[type=checkbox]:not(:disabled):not(:checked)+label:hover:before{border-color:#fff6}.d-checkbox input[type=checkbox]:not(:disabled):active+label:before{background-color:#b3d7ff;border-color:#fff6}.d-checkbox input[type=checkbox]:focus:not(:checked)+label:before{border-color:#fff6}.d-checkbox input[type=checkbox]:disabled+label:before{background-color:#e9ecef}.dark{background-color:#34383e;color:#ccc}.dark .d-blue{color:#1685ac}.dark .d-green{color:#5d9d31}.dark .d-red{color:#da4444}.dark .d-orange{color:#d59622}.dark .d-violet{color:#7750d2}.light{background-color:#fff;color:#333}.light .d-blue{color:#51c0e7}.light .d-green{color:#90d760}.light .d-red{color:#ff9292}.light .d-orange{color:#ffc458}.light .d-violet{color:#c2a7ff}.light .icon{color:#333}.dark .icon{color:#ccc}.light .lms_scroller{background:#c4c4c4}.dark .lms_scroller{background:#868686}.light .d-layout{background-color:#fff}.light .d-layout .d-layout-sidebar{background-color:#e2e3e3}.light .d-layout .d-layout-header,.light .d-layout .d-layout-footer{background-color:#f0f1f1}.light .d-layout .d-layout-tab{background-color:#fbfbfb}.dark .d-layout{background-color:#34383e}.dark .d-layout .d-layout-sidebar{background-color:#51545a}.dark .d-layout .d-layout-header,.dark .d-layout .d-layout-footer{background-color:#43464c}.dark .d-layout .d-layout-tab{background-color:#2b2f34}.dark .d-panel{background-color:#43464c}.light .d-panel{background-color:#f0f1f1}.dark .d-card .card-header{background-color:#51545a;border-bottom:solid 1px #44474C}.dark .d-card .card-footer{background-color:#51545a;border-top:solid 1px #44474C}.light .card-header,.light .card-footer{background-color:#e2e3e3}.dark .modal{background-color:#00000080}.dark .modal .modal-dialog{box-shadow:0 0 15px 5px #00000080}.dark .modal .modal-dialog .modal-content{color:#ccc}.dark .modal .modal-dialog .modal-content .modal-header{border-bottom:solid 1px rgba(255,255,255,.1);background-color:#0000001a}.dark .modal .modal-dialog .modal-content .modal-footer{border-top:solid 1px rgba(255,255,255,.1);background-color:#0000001a}.light .modal{background-color:#ffffff80}.light .modal .modal-dialog{background-color:#fff;box-shadow:0 0 10px 5px #0003}.light .modal .modal-dialog .modal-content{color:#6e7175}.light .modal .modal-dialog .modal-content .modal-header{border-bottom:solid 1px rgba(0,0,0,.1);background-color:#0000000d}.light .modal .modal-dialog .modal-content .modal-footer{border-top:solid 1px rgba(0,0,0,.1);background-color:#0000000d}body{position:relative;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-weight:400;font-style:normal;font-size:.95rem}*[data-v-11679fd8],[data-v-11679fd8]:after,[data-v-11679fd8]:before{box-sizing:border-box}.node-top[data-v-f6a37dc2]{background:linear-gradient(0deg,rgba(0,185,255,0) 0%,rgba(0,185,255,0) 95%,rgb(0,185,255) 96%,rgb(0,185,255) 100%)!important}.node-bottom[data-v-f6a37dc2]{background:linear-gradient(0deg,rgb(0,185,255) 0%,rgb(0,185,255) 4%,rgba(0,185,255,0) 5%,rgba(0,185,255,0) 100%)!important}.node-over[data-v-f6a37dc2]{background:linear-gradient(0deg,rgb(0,185,255) 0%,rgb(0,185,255) 4%,rgba(0,185,255,0) 5%,rgba(0,185,255,0) 95%,rgb(0,185,255) 96%,rgb(0,185,255) 100%)}.tree-item>ul[data-v-4c920528]{padding-left:0!important}.modal .modal-dialog[data-v-82cadd63]{width:var(--558e9e46)}
|
|
9
|
+
*/.os-size-observer,.os-size-observer-listener{direction:inherit;pointer-events:none;overflow:hidden;visibility:hidden;box-sizing:border-box}.os-size-observer,.os-size-observer-listener,.os-size-observer-listener-item,.os-size-observer-listener-item-final{writing-mode:horizontal-tb;position:absolute;left:0;top:0}.os-size-observer{z-index:-1;contain:strict;display:flex;flex-direction:row;flex-wrap:nowrap;padding:inherit;border:inherit;box-sizing:inherit;margin:-133px;top:0;right:0;bottom:0;left:0;transform:scale(.1)}.os-size-observer:before{content:"";flex:none;box-sizing:inherit;padding:10px;width:10px;height:10px}.os-size-observer-appear{animation:os-size-observer-appear-animation 1ms forwards}.os-size-observer-listener{box-sizing:border-box;position:relative;flex:auto;padding:inherit;border:inherit;margin:-133px;transform:scale(10)}.os-size-observer-listener.ltr{margin-right:-266px;margin-left:0}.os-size-observer-listener.rtl{margin-left:-266px;margin-right:0}.os-size-observer-listener:empty:before{content:"";width:100%;height:100%}.os-size-observer-listener:empty:before,.os-size-observer-listener>.os-size-observer-listener-item{display:block;position:relative;padding:inherit;border:inherit;box-sizing:content-box;flex:auto}.os-size-observer-listener-scroll{box-sizing:border-box;display:flex}.os-size-observer-listener-item{right:0;bottom:0;overflow:hidden;direction:ltr;flex:none}.os-size-observer-listener-item-final{transition:none}@keyframes os-size-observer-appear-animation{0%{cursor:auto}to{cursor:none}}.os-trinsic-observer{flex:none;box-sizing:border-box;position:relative;max-width:0px;max-height:1px;padding:0;margin:0;border:none;overflow:hidden;z-index:-1;height:0;top:calc(100% + 1px);contain:strict}.os-trinsic-observer:not(:empty){height:calc(100% + 1px);top:-1px}.os-trinsic-observer:not(:empty)>.os-size-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}.os-environment{--os-custom-prop: -1;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:var(--os-custom-prop)}.os-environment div{width:200%;height:200%;margin:10px 0}.os-environment.os-environment-flexbox-glue{display:flex;flex-direction:row;flex-wrap:nowrap;height:auto;width:auto;min-height:200px;min-width:200px}.os-environment.os-environment-flexbox-glue div{flex:auto;width:auto;height:auto;max-height:100%;max-width:100%;margin:0}.os-environment.os-environment-flexbox-glue-max{max-height:200px}.os-environment.os-environment-flexbox-glue-max div{overflow:visible}.os-environment.os-environment-flexbox-glue-max div:before{content:"";display:block;height:999px;width:999px}.os-environment,[data-overlayscrollbars-viewport]{-ms-overflow-style:scrollbar!important}[data-overlayscrollbars-initialize],[data-overlayscrollbars~=scrollbarHidden],[data-overlayscrollbars-viewport~=scrollbarHidden],.os-scrollbar-hidden.os-environment{scrollbar-width:none!important}[data-overlayscrollbars-initialize]::-webkit-scrollbar,[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar-corner,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,.os-scrollbar-hidden.os-environment::-webkit-scrollbar,.os-scrollbar-hidden.os-environment::-webkit-scrollbar-corner{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;display:none!important;width:0!important;height:0!important}[data-overlayscrollbars-initialize]:not(html):not(body){overflow:auto}html[data-overlayscrollbars],html.os-scrollbar-hidden,html.os-scrollbar-hidden>body{box-sizing:border-box;margin:0;width:100%;height:100%}html[data-overlayscrollbars]>body{overflow:visible}[data-overlayscrollbars~=host]{position:relative}[data-overlayscrollbars~=host],[data-overlayscrollbars-padding]{display:flex;flex-direction:row!important;flex-wrap:nowrap!important}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport]{box-sizing:inherit;position:relative;flex:auto!important;height:auto;width:100%;min-width:0;padding:0;margin:0;border:none;z-index:0}[data-overlayscrollbars-viewport]{--os-vaw: 0;--os-vah: 0}[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]:before{content:"";position:absolute;pointer-events:none;z-index:-1;min-width:1px;min-height:1px;width:var(--os-vaw);height:var(--os-vah)}[data-overlayscrollbars-padding],[data-overlayscrollbars-viewport],[data-overlayscrollbars~=host],[data-overlayscrollbars~=viewport]{overflow:hidden}[data-overlayscrollbars~=overflowVisible],[data-overlayscrollbars-padding~=overflowVisible],[data-overlayscrollbars-viewport~=overflowVisible]{overflow:visible}[data-overlayscrollbars-overflow-x=hidden]{overflow-x:hidden}[data-overlayscrollbars-overflow-x=scroll]{overflow-x:scroll}[data-overlayscrollbars-overflow-x=hidden]{overflow-y:hidden}[data-overlayscrollbars-overflow-y=scroll]{overflow-y:scroll}[data-overlayscrollbars~=scrollbarPressed],[data-overlayscrollbars~=scrollbarPressed] [data-overlayscrollbars-viewport]{scroll-behavior:auto!important}[data-overlayscrollbars-content]{box-sizing:inherit}[data-overlayscrollbars-contents]:not([data-overlayscrollbars-padding]):not([data-overlayscrollbars-viewport]):not([data-overlayscrollbars-content]){display:contents}[data-overlayscrollbars-grid],[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]{display:grid;grid-template:1fr/1fr}[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding],[data-overlayscrollbars-grid]>[data-overlayscrollbars-viewport],[data-overlayscrollbars-grid]>[data-overlayscrollbars-padding]>[data-overlayscrollbars-viewport]{height:auto!important;width:auto!important}.os-scrollbar{contain:size layout;contain:size layout style;transition:opacity .15s,visibility .15s,top .15s,right .15s,bottom .15s,left .15s;pointer-events:none;position:absolute;opacity:0;visibility:hidden}body>.os-scrollbar{position:fixed;z-index:99999}.os-scrollbar-transitionless{transition:none}.os-scrollbar-track{position:relative;direction:ltr!important;padding:0!important;border:none!important}.os-scrollbar-handle{position:absolute}.os-scrollbar-track,.os-scrollbar-handle{pointer-events:none;width:100%;height:100%}.os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle{pointer-events:auto;touch-action:none}.os-scrollbar-horizontal{bottom:0;left:0}.os-scrollbar-vertical{top:0;right:0}.os-scrollbar-rtl.os-scrollbar-horizontal{right:0}.os-scrollbar-rtl.os-scrollbar-vertical{right:auto;left:0}.os-scrollbar-visible,.os-scrollbar-interaction.os-scrollbar-visible{opacity:1;visibility:visible}.os-scrollbar-auto-hide.os-scrollbar-auto-hide-hidden{opacity:0;visibility:hidden}.os-scrollbar-unusable,.os-scrollbar-unusable *,.os-scrollbar-wheel,.os-scrollbar-wheel *{pointer-events:none!important}.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important}.os-scrollbar-horizontal .os-scrollbar-handle{bottom:0}.os-scrollbar-vertical .os-scrollbar-handle{right:0}.os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle{right:auto;left:0}.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl{left:0;right:0}.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl{top:0;bottom:0}.os-scrollbar{--os-size: 0;--os-padding-perpendicular: 0;--os-padding-axis: 0;--os-track-border-radius: 0;--os-track-bg: none;--os-track-bg-hover: none;--os-track-bg-active: none;--os-track-border: none;--os-track-border-hover: none;--os-track-border-active: none;--os-handle-border-radius: 0;--os-handle-bg: none;--os-handle-bg-hover: none;--os-handle-bg-active: none;--os-handle-border: none;--os-handle-border-hover: none;--os-handle-border-active: none;--os-handle-min-size: 33px;--os-handle-max-size: none;--os-handle-perpendicular-size: 100%;--os-handle-perpendicular-size-hover: 100%;--os-handle-perpendicular-size-active: 100%;--os-handle-interactive-area-offset: 0}.os-scrollbar .os-scrollbar-track{border:var(--os-track-border);border-radius:var(--os-track-border-radius);background:var(--os-track-bg);transition:opacity .15s,background-color .15s,border-color .15s}.os-scrollbar .os-scrollbar-track:hover{border:var(--os-track-border-hover);background:var(--os-track-bg-hover)}.os-scrollbar .os-scrollbar-track:active{border:var(--os-track-border-active);background:var(--os-track-bg-active)}.os-scrollbar .os-scrollbar-handle{border:var(--os-handle-border);border-radius:var(--os-handle-border-radius);background:var(--os-handle-bg)}.os-scrollbar .os-scrollbar-handle:before{content:"";position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-scrollbar .os-scrollbar-handle:hover{border:var(--os-handle-border-hover);background:var(--os-handle-bg-hover)}.os-scrollbar .os-scrollbar-handle:active{border:var(--os-handle-border-active);background:var(--os-handle-bg-active)}.os-scrollbar-horizontal{padding:var(--os-padding-perpendicular) var(--os-padding-axis);right:var(--os-size);height:var(--os-size)}.os-scrollbar-horizontal.os-scrollbar-rtl{left:var(--os-size);right:0}.os-scrollbar-horizontal .os-scrollbar-handle{min-width:var(--os-handle-min-size);max-width:var(--os-handle-max-size);height:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,height .15s}.os-scrollbar-horizontal .os-scrollbar-handle:before{top:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);bottom:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-horizontal:hover .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-horizontal:active .os-scrollbar-handle{height:var(--os-handle-perpendicular-size-active)}.os-scrollbar-vertical{padding:var(--os-padding-axis) var(--os-padding-perpendicular);bottom:var(--os-size);width:var(--os-size)}.os-scrollbar-vertical .os-scrollbar-handle{min-height:var(--os-handle-min-size);max-height:var(--os-handle-max-size);width:var(--os-handle-perpendicular-size);transition:opacity .15s,background-color .15s,border-color .15s,width .15s}.os-scrollbar-vertical .os-scrollbar-handle:before{left:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);right:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1);left:calc(var(--os-padding-perpendicular) * -1)}.os-scrollbar-vertical:hover .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-hover)}.os-scrollbar-vertical:active .os-scrollbar-handle{width:var(--os-handle-perpendicular-size-active)}[data-overlayscrollbars~=updating]>.os-scrollbar,.os-theme-none.os-scrollbar{display:none!important}.os-theme-dark,.os-theme-light{box-sizing:border-box;--os-size: 10px;--os-padding-perpendicular: 2px;--os-padding-axis: 2px;--os-track-border-radius: 10px;--os-handle-interactive-area-offset: 4px;--os-handle-border-radius: 10px}.os-theme-dark{--os-handle-bg: rgba(0, 0, 0, .44);--os-handle-bg-hover: rgba(0, 0, 0, .55);--os-handle-bg-active: rgba(0, 0, 0, .66)}.os-theme-light{--os-handle-bg: rgba(255, 255, 255, .44);--os-handle-bg-hover: rgba(255, 255, 255, .55);--os-handle-bg-active: rgba(255, 255, 255, .66)}.os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-handle,.os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-handle,.os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-track,.os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-track{border-radius:10px}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal{padding:2px;right:10px;height:10px}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal.os-scrollbar-rtl,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal.os-scrollbar-rtl{left:10px;right:0}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle{min-width:33px;max-width:none}.os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle:before,.os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle:before{top:-6px;bottom:-2px}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical,.os-no-css-vars.os-theme-light.os-scrollbar-vertical{padding:2px;bottom:10px;width:10px}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle,.os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle{min-height:33px;max-height:none}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle:before,.os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle:before{left:-6px;right:-2px}.os-no-css-vars.os-theme-dark.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before,.os-no-css-vars.os-theme-light.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before{right:-6px;left:-2px}.os-no-css-vars.os-theme-dark .os-scrollbar-handle{background:rgba(0,0,0,.44)}.os-no-css-vars.os-theme-dark:hover .os-scrollbar-handle{background:rgba(0,0,0,.55)}.os-no-css-vars.os-theme-dark:active .os-scrollbar-handle{background:rgba(0,0,0,.66)}.os-no-css-vars.os-theme-light .os-scrollbar-handle{background:rgba(255,255,255,.44)}.os-no-css-vars.os-theme-light:hover .os-scrollbar-handle{background:rgba(255,255,255,.55)}.os-no-css-vars.os-theme-light:active .os-scrollbar-handle{background:rgba(255,255,255,.66)}.dark .d-input input,.dark .d-select select{color:#ccc;background-color:#292c30;border-color:#4a4a4a}.dark .d-input input:focus,.dark .d-select select:focus{outline:none!important;border-color:#666}.light .d-input input,.light .d-select select{color:#333;background-color:#f2f2f2;border-color:#e5e5e5}.light .d-input input:focus,.light .d-select select:focus{outline:none!important;border-color:#d3d3d3}.d-checkbox input[type=checkbox]+label:before{border:1px solid rgba(255,255,255,.2)}.d-checkbox input[type=checkbox]:checked+label:before{border-color:#666;background-color:#666}.d-checkbox input[type=checkbox]:not(:disabled):not(:checked)+label:hover:before{border-color:#fff6}.d-checkbox input[type=checkbox]:not(:disabled):active+label:before{background-color:#b3d7ff;border-color:#fff6}.d-checkbox input[type=checkbox]:focus:not(:checked)+label:before{border-color:#fff6}.d-checkbox input[type=checkbox]:disabled+label:before{background-color:#e9ecef}.dark{background-color:#34383e;color:#ccc}.dark .d-blue{color:#1685ac}.dark .d-green{color:#5d9d31}.dark .d-red{color:#da4444}.dark .d-orange{color:#d59622}.dark .d-violet{color:#7750d2}.light{background-color:#fff;color:#333}.light .d-blue{color:#51c0e7}.light .d-green{color:#90d760}.light .d-red{color:#ff9292}.light .d-orange{color:#ffc458}.light .d-violet{color:#c2a7ff}.light .icon{color:#333}.dark .icon{color:#ccc}.light .lms_scroller{background:#c4c4c4}.dark .lms_scroller{background:#868686}.light .d-layout{background-color:#fff}.light .d-layout .d-layout-sidebar{background-color:#e2e3e3}.light .d-layout .d-layout-header,.light .d-layout .d-layout-footer{background-color:#f0f1f1}.light .d-layout .d-layout-tab{background-color:#fbfbfb}.dark .d-layout{background-color:#34383e}.dark .d-layout .d-layout-sidebar{background-color:#51545a}.dark .d-layout .d-layout-header,.dark .d-layout .d-layout-footer{background-color:#43464c}.dark .d-layout .d-layout-tab{background-color:#2b2f34}.dark .d-panel{background-color:#43464c}.light .d-panel{background-color:#f0f1f1}.dark .d-card .card-header{background-color:#51545a;border-bottom:solid 1px #44474C}.dark .d-card .card-footer{background-color:#51545a;border-top:solid 1px #44474C}.light .card-header,.light .card-footer{background-color:#e2e3e3}.dark .modal{background-color:#00000080}.dark .modal .modal-dialog{box-shadow:0 0 15px 5px #00000080}.dark .modal .modal-dialog .modal-content{color:#ccc}.dark .modal .modal-dialog .modal-content .modal-header{border-bottom:solid 1px rgba(255,255,255,.1);background-color:#0000001a}.dark .modal .modal-dialog .modal-content .modal-footer{border-top:solid 1px rgba(255,255,255,.1);background-color:#0000001a}.light .modal{background-color:#ffffff80}.light .modal .modal-dialog{background-color:#fff;box-shadow:0 0 10px 5px #0003}.light .modal .modal-dialog .modal-content{color:#6e7175}.light .modal .modal-dialog .modal-content .modal-header{border-bottom:solid 1px rgba(0,0,0,.1);background-color:#0000000d}.light .modal .modal-dialog .modal-content .modal-footer{border-top:solid 1px rgba(0,0,0,.1);background-color:#0000000d}body{position:relative;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-weight:400;font-style:normal;font-size:.95rem}*[data-v-11679fd8],[data-v-11679fd8]:after,[data-v-11679fd8]:before{box-sizing:border-box}.node-top[data-v-6804865f]{background:linear-gradient(0deg,rgba(0,185,255,0) 0%,rgba(0,185,255,0) 95%,rgb(0,185,255) 96%,rgb(0,185,255) 100%)!important}.node-bottom[data-v-6804865f]{background:linear-gradient(0deg,rgb(0,185,255) 0%,rgb(0,185,255) 4%,rgba(0,185,255,0) 5%,rgba(0,185,255,0) 100%)!important}.node-over[data-v-6804865f]{background:linear-gradient(0deg,rgb(0,185,255) 0%,rgb(0,185,255) 4%,rgba(0,185,255,0) 5%,rgba(0,185,255,0) 95%,rgb(0,185,255) 96%,rgb(0,185,255) 100%)}.tree-item>ul[data-v-4c920528]{padding-left:0!important}.modal .modal-dialog[data-v-82cadd63]{width:var(--558e9e46)}
|