doph-js 0.0.53 → 0.0.55

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 CHANGED
@@ -1,5 +1,5 @@
1
- import { useSlots as U, computed as f, h as Q, openBlock as p, createBlock as h, unref as v, createElementBlock as b, Fragment as G, normalizeClass as k, renderSlot as y, createCommentVNode as D, resolveDynamicComponent as z, createElementVNode as E, toDisplayString as X, withDirectives as oe, normalizeStyle as W, vModelText as ie, Transition as se, withCtx as N, ref as H, withModifiers as F, resolveComponent as ae, createTextVNode as re, createVNode as j, renderList as ee, reactive as K, getCurrentInstance as de, watch as le, onUnmounted as ue, mergeProps as O } from "vue";
2
- const R = {
1
+ import { useSlots as Dn, computed as P, h as Un, openBlock as A, createBlock as st, unref as et, createElementBlock as lt, Fragment as Tn, normalizeClass as Wt, renderSlot as ot, createCommentVNode as pt, resolveDynamicComponent as Vt, createElementVNode as oe, toDisplayString as gn, withDirectives as Qo, normalizeStyle as Ut, vModelText as ts, Transition as es, withCtx as wt, ref as Nt, withModifiers as Gt, resolveComponent as ns, createTextVNode as os, createVNode as wo, renderList as So, reactive as Cn, getCurrentInstance as ss, watch as Se, onUnmounted as xo, mergeProps as be, shallowRef as hn, defineComponent as rs, toRefs as is, onMounted as cs, watchPostEffect as as } from "vue";
2
+ const we = {
3
3
  __name: "DIcon",
4
4
  props: {
5
5
  component: [Object, String],
@@ -8,49 +8,49 @@ const R = {
8
8
  className: String
9
9
  },
10
10
  setup(t) {
11
- const n = t, e = U(), o = f(() => {
12
- const { className: d } = n;
13
- return d === void 0 ? "icon" : ["icon", d].join(" ");
14
- }), i = f(() => {
15
- const { color: d } = n;
16
- return d === void 0 ? null : d;
17
- }), a = f(() => {
18
- const d = n.size ?? null;
19
- if (d !== void 0)
20
- return typeof d == "number" || /^\d+$/.test(d) ? `${d}px` : d;
21
- }), l = f(() => Q(
11
+ const n = t, e = Dn(), o = P(() => {
12
+ const { className: l } = n;
13
+ return l === void 0 ? "icon" : ["icon", l].join(" ");
14
+ }), s = P(() => {
15
+ const { color: l } = n;
16
+ return l === void 0 ? null : l;
17
+ }), r = P(() => {
18
+ const l = n.size ?? null;
19
+ if (l !== void 0)
20
+ return typeof l == "number" || /^\d+$/.test(l) ? `${l}px` : l;
21
+ }), c = P(() => Un(
22
22
  "i",
23
23
  {
24
24
  class: o.value,
25
25
  style: {
26
- color: i.value,
27
- fontSize: a.value
26
+ color: s.value,
27
+ fontSize: r.value
28
28
  }
29
29
  },
30
- n.component ? Q(n.component) : e
30
+ n.component ? Un(n.component) : e
31
31
  ));
32
- return (d, s) => (p(), h(v(l)));
32
+ return (l, i) => (A(), st(et(c)));
33
33
  }
34
- }, L = {
34
+ }, Rt = {
35
35
  state: {},
36
36
  getters: {
37
37
  getIcon(t) {
38
- return L.state[t];
38
+ return Rt.state[t];
39
39
  },
40
40
  getIcons() {
41
- return L.state;
41
+ return Rt.state;
42
42
  }
43
43
  },
44
44
  mutations: {
45
45
  addIcon(t, n) {
46
- L.state.name = n;
46
+ Rt.state.name = n;
47
47
  },
48
48
  addIcons(t) {
49
49
  for (const n in t)
50
- t.hasOwnProperty(n) && (L.state[n] = t[n]);
50
+ t.hasOwnProperty(n) && (Rt.state[n] = t[n]);
51
51
  }
52
52
  }
53
- }, ce = { key: 1 }, Ae = {
53
+ }, ls = { key: 1 }, si = {
54
54
  __name: "DButton",
55
55
  props: {
56
56
  class: String,
@@ -58,40 +58,40 @@ const R = {
58
58
  },
59
59
  emits: ["click"],
60
60
  setup(t, { emit: n }) {
61
- const e = t, o = U(), i = f(() => e.icon ? L.getters.getIcon(e.icon) : null), a = (l) => {
62
- n("click", l);
61
+ const e = t, o = Dn(), s = P(() => e.icon ? Rt.getters.getIcon(e.icon) : null), r = (c) => {
62
+ n("click", c);
63
63
  };
64
- return (l, d) => (p(), b(G, null, [
65
- i.value ? D("", !0) : (p(), b("div", {
64
+ return (c, l) => (A(), lt(Tn, null, [
65
+ s.value ? pt("", !0) : (A(), lt("div", {
66
66
  key: 0,
67
- onClick: a,
68
- class: k(["button", e.class])
67
+ onClick: r,
68
+ class: Wt(["button", e.class])
69
69
  }, [
70
- y(l.$slots, "default")
70
+ ot(c.$slots, "default")
71
71
  ], 2)),
72
- i.value ? (p(), b("div", {
72
+ s.value ? (A(), lt("div", {
73
73
  key: 1,
74
- onClick: a,
75
- class: k(["button button-ext", e.class])
74
+ onClick: r,
75
+ class: Wt(["button button-ext", e.class])
76
76
  }, [
77
- e.icon ? (p(), h(z(R), {
77
+ e.icon ? (A(), st(Vt(we), {
78
78
  key: 0,
79
- component: i.value,
79
+ component: s.value,
80
80
  color: "inherit"
81
- }, null, 8, ["component"])) : D("", !0),
82
- v(o).default ? (p(), b("div", ce, [
83
- y(l.$slots, "default")
84
- ])) : D("", !0)
85
- ], 2)) : D("", !0)
81
+ }, null, 8, ["component"])) : pt("", !0),
82
+ et(o).default ? (A(), lt("div", ls, [
83
+ ot(c.$slots, "default")
84
+ ])) : pt("", !0)
85
+ ], 2)) : pt("", !0)
86
86
  ], 64));
87
87
  }
88
88
  };
89
- const q = (t, n) => {
89
+ const In = (t, n) => {
90
90
  const e = t.__vccOpts || t;
91
- for (const [o, i] of n)
92
- e[o] = i;
91
+ for (const [o, s] of n)
92
+ e[o] = s;
93
93
  return e;
94
- }, fe = { class: "d-input" }, pe = { class: "label" }, me = ["placeholder"], ge = {
94
+ }, ds = { class: "d-input" }, us = { class: "label" }, fs = ["placeholder"], ps = {
95
95
  __name: "DInput",
96
96
  props: {
97
97
  label: String,
@@ -103,39 +103,39 @@ const q = (t, n) => {
103
103
  },
104
104
  emits: ["update:modelValue"],
105
105
  setup(t, { emit: n }) {
106
- const e = t, o = f(() => e.font === "small" ? "d-input-small" : e.font === "big" ? "d-input-big" : ""), i = f({
106
+ const e = t, o = P(() => e.font === "small" ? "d-input-small" : e.font === "big" ? "d-input-big" : ""), s = P({
107
107
  get: () => e.modelValue,
108
- set: (a) => {
109
- n("update:modelValue", a);
108
+ set: (r) => {
109
+ n("update:modelValue", r);
110
110
  }
111
111
  });
112
- return (a, l) => (p(), b("div", fe, [
113
- E("div", pe, X(e.label), 1),
114
- oe(E("input", {
115
- "onUpdate:modelValue": l[0] || (l[0] = (d) => i.value = d),
112
+ return (r, c) => (A(), lt("div", ds, [
113
+ oe("div", us, gn(e.label), 1),
114
+ Qo(oe("input", {
115
+ "onUpdate:modelValue": c[0] || (c[0] = (l) => s.value = l),
116
116
  type: "text",
117
- class: k(o.value),
117
+ class: Wt(o.value),
118
118
  placeholder: e.placeholder,
119
- style: W(e.size === "wide" ? "width:100%" : "")
120
- }, null, 14, me), [
121
- [ie, i.value]
119
+ style: Ut(e.size === "wide" ? "width:100%" : "")
120
+ }, null, 14, fs), [
121
+ [ts, s.value]
122
122
  ])
123
123
  ]));
124
124
  }
125
- }, Pe = /* @__PURE__ */ q(ge, [["__scopeId", "data-v-11679fd8"]]), he = {
125
+ }, ri = /* @__PURE__ */ In(ps, [["__scopeId", "data-v-11679fd8"]]), ms = {
126
126
  __name: "DBadge",
127
127
  props: {
128
128
  class: String
129
129
  },
130
130
  setup(t) {
131
131
  const n = t;
132
- return (e, o) => (p(), b("div", {
133
- class: k(["badge", n.class])
132
+ return (e, o) => (A(), lt("div", {
133
+ class: Wt(["badge", n.class])
134
134
  }, [
135
- y(e.$slots, "default")
135
+ ot(e.$slots, "default")
136
136
  ], 2));
137
137
  }
138
- }, I = "0px", ye = {
138
+ }, Ft = "0px", gs = {
139
139
  __name: "DCollapse",
140
140
  props: {
141
141
  duration: {
@@ -160,72 +160,72 @@ const q = (t, n) => {
160
160
  }
161
161
  },
162
162
  setup(t) {
163
- const n = t, e = (s) => ({
164
- height: s.style.height,
165
- width: s.style.width,
166
- position: s.style.position,
167
- visibility: s.style.visibility,
168
- overflow: s.style.overflow,
169
- paddingTop: s.style.paddingTop,
170
- paddingBottom: s.style.paddingBottom,
171
- borderTopWidth: s.style.borderTopWidth,
172
- borderBottomWidth: s.style.borderBottomWidth,
173
- marginTop: s.style.marginTop,
174
- marginBottom: s.style.marginBottom
175
- }), o = (s, r) => {
176
- const { width: c } = getComputedStyle(s);
177
- s.style.width = c, s.style.position = "absolute", s.style.visibility = "hidden", s.style.height = "";
178
- let { height: m } = getComputedStyle(s);
179
- return s.style.width = r.width, s.style.position = r.position, s.style.visibility = r.visibility, s.style.height = I, s.style.overflow = "hidden", r.height && r.height !== I ? r.height : m;
180
- }, i = (s, r, c, m, $) => {
181
- const B = s.animate(m, $);
182
- s.style.height = r.height, B.onfinish = () => {
183
- s.style.overflow = r.overflow, c();
163
+ const n = t, e = (i) => ({
164
+ height: i.style.height,
165
+ width: i.style.width,
166
+ position: i.style.position,
167
+ visibility: i.style.visibility,
168
+ overflow: i.style.overflow,
169
+ paddingTop: i.style.paddingTop,
170
+ paddingBottom: i.style.paddingBottom,
171
+ borderTopWidth: i.style.borderTopWidth,
172
+ borderBottomWidth: i.style.borderBottomWidth,
173
+ marginTop: i.style.marginTop,
174
+ marginBottom: i.style.marginBottom
175
+ }), o = (i, a) => {
176
+ const { width: d } = getComputedStyle(i);
177
+ i.style.width = d, i.style.position = "absolute", i.style.visibility = "hidden", i.style.height = "";
178
+ let { height: f } = getComputedStyle(i);
179
+ return i.style.width = a.width, i.style.position = a.position, i.style.visibility = a.visibility, i.style.height = Ft, i.style.overflow = "hidden", a.height && a.height !== Ft ? a.height : f;
180
+ }, s = (i, a, d, f, p) => {
181
+ const m = i.animate(f, p);
182
+ i.style.height = a.height, m.onfinish = () => {
183
+ i.style.overflow = a.overflow, d();
184
184
  };
185
- }, a = (s, r) => [
185
+ }, r = (i, a) => [
186
186
  {
187
- height: I,
187
+ height: Ft,
188
188
  opacity: n.opacityClosed,
189
- paddingTop: I,
190
- paddingBottom: I,
191
- borderTopWidth: I,
192
- borderBottomWidth: I,
193
- marginTop: I,
194
- marginBottom: I
189
+ paddingTop: Ft,
190
+ paddingBottom: Ft,
191
+ borderTopWidth: Ft,
192
+ borderBottomWidth: Ft,
193
+ marginTop: Ft,
194
+ marginBottom: Ft
195
195
  },
196
196
  {
197
- height: s,
197
+ height: i,
198
198
  opacity: n.opacityOpened,
199
- paddingTop: r.paddingTop,
200
- paddingBottom: r.paddingBottom,
201
- borderTopWidth: r.borderTopWidth,
202
- borderBottomWidth: r.borderBottomWidth,
203
- marginTop: r.marginTop,
204
- marginBottom: r.marginBottom
199
+ paddingTop: a.paddingTop,
200
+ paddingBottom: a.paddingBottom,
201
+ borderTopWidth: a.borderTopWidth,
202
+ borderBottomWidth: a.borderBottomWidth,
203
+ marginTop: a.marginTop,
204
+ marginBottom: a.marginBottom
205
205
  }
206
- ], l = (s, r) => {
207
- const c = s, m = e(c), $ = o(c, m), B = a($, m), M = { duration: n.duration, easing: n.easingEnter };
208
- i(c, m, r, B, M);
209
- }, d = (s, r) => {
210
- const c = s, m = e(c), { height: $ } = getComputedStyle(c);
211
- c.style.height = $, c.style.overflow = "hidden";
212
- const B = a($, m).reverse(), M = { duration: n.duration, easing: n.easingLeave };
213
- i(c, m, r, B, M);
206
+ ], c = (i, a) => {
207
+ const d = i, f = e(d), p = o(d, f), m = r(p, f), _ = { duration: n.duration, easing: n.easingEnter };
208
+ s(d, f, a, m, _);
209
+ }, l = (i, a) => {
210
+ const d = i, f = e(d), { height: p } = getComputedStyle(d);
211
+ d.style.height = p, d.style.overflow = "hidden";
212
+ const m = r(p, f).reverse(), _ = { duration: n.duration, easing: n.easingLeave };
213
+ s(d, f, a, m, _);
214
214
  };
215
- return (s, r) => (p(), h(se, {
215
+ return (i, a) => (A(), st(es, {
216
216
  css: !1,
217
- onEnter: l,
218
- onLeave: d
217
+ onEnter: c,
218
+ onLeave: l
219
219
  }, {
220
- default: N(() => [
221
- y(s.$slots, "default")
220
+ default: wt(() => [
221
+ ot(i.$slots, "default")
222
222
  ]),
223
223
  _: 3
224
224
  }));
225
225
  }
226
- }, Z = {
226
+ }, Ae = {
227
227
  data: void 0
228
- }, J = (t) => t.reduce((n, e) => (n[e] = e) && n, {}), x = J([
228
+ }, kn = (t) => t.reduce((n, e) => (n[e] = e) && n, {}), dt = kn([
229
229
  "drag",
230
230
  "dragend",
231
231
  "dragenter",
@@ -233,7 +233,7 @@ const q = (t, n) => {
233
233
  "dragstart",
234
234
  "dragover",
235
235
  "drop"
236
- ]), ve = J(["copy", "move", "link", "none"]), be = J([
236
+ ]), hs = kn(["copy", "move", "link", "none"]), vs = kn([
237
237
  "none",
238
238
  "copy",
239
239
  "copyLink",
@@ -243,13 +243,13 @@ const q = (t, n) => {
243
243
  "move",
244
244
  "all",
245
245
  "uninitialized"
246
- ]), xe = {
246
+ ]), ys = {
247
247
  __name: "DDrag",
248
248
  props: {
249
249
  draggable: { type: Boolean, default: !0 },
250
250
  transferData: {},
251
- dropEffect: { validator: (t) => t in ve },
252
- effectAllowed: { validator: (t) => t in be },
251
+ dropEffect: { validator: (t) => t in hs },
252
+ effectAllowed: { validator: (t) => t in vs },
253
253
  image: String,
254
254
  imageXOffset: { type: Number, default: 0 },
255
255
  imageYOffset: { type: Number, default: 0 },
@@ -257,44 +257,44 @@ const q = (t, n) => {
257
257
  tag: { type: String, default: "div" }
258
258
  },
259
259
  setup(t) {
260
- const n = t, e = U(), o = H(!1), i = f(() => o && n.transferData), a = f(() => ({ position: "fixed", top: "-1000px" })), l = (d, s) => {
261
- const r = s.dataTransfer;
262
- if ([x.dragenter, x.dragover].includes(d) && n.dropEffect && (r.dropEffect = n.dropEffect), d === x.dragstart) {
263
- if (n.effectAllowed && (r.effectAllowed = n.effectAllowed), n.image || e.image) {
264
- let c;
265
- n.image ? (c = new Image(), c.src = n.image) : e.image && (c = e.image[0].elm), r.setDragImage && r.setDragImage(c, n.imageXOffset, n.imageYOffset);
260
+ const n = t, e = Dn(), o = Nt(!1), s = P(() => o && n.transferData), r = P(() => ({ position: "fixed", top: "-1000px" })), c = (l, i) => {
261
+ const a = i.dataTransfer;
262
+ if ([dt.dragenter, dt.dragover].includes(l) && n.dropEffect && (a.dropEffect = n.dropEffect), l === dt.dragstart) {
263
+ if (n.effectAllowed && (a.effectAllowed = n.effectAllowed), n.image || e.image) {
264
+ let d;
265
+ n.image ? (d = new Image(), d.src = n.image) : e.image && (d = e.image[0].elm), a.setDragImage && a.setDragImage(d, n.imageXOffset, n.imageYOffset);
266
266
  }
267
- n.transferData !== void 0 && (Z.data = n.transferData, s.dataTransfer.setData("text", "")), o.value = !0;
267
+ n.transferData !== void 0 && (Ae.data = n.transferData, i.dataTransfer.setData("text", "")), o.value = !0;
268
268
  }
269
269
  };
270
- return (d, s) => (p(), h(z(t.tag), {
270
+ return (l, i) => (A(), st(Vt(t.tag), {
271
271
  draggable: n.draggable,
272
- onDrag: s[0] || (s[0] = (r) => l(v(x).drag, r)),
273
- onDragstart: s[1] || (s[1] = F((r) => l(v(x).dragstart, r), ["stop"])),
274
- onDragenter: s[2] || (s[2] = (r) => l(v(x).dragenter, r)),
275
- onDragleave: s[3] || (s[3] = (r) => l(v(x).dragleave, r)),
276
- onDragend: s[4] || (s[4] = (r) => l(v(x).dragend, r))
272
+ onDrag: i[0] || (i[0] = (a) => c(et(dt).drag, a)),
273
+ onDragstart: i[1] || (i[1] = Gt((a) => c(et(dt).dragstart, a), ["stop"])),
274
+ onDragenter: i[2] || (i[2] = (a) => c(et(dt).dragenter, a)),
275
+ onDragleave: i[3] || (i[3] = (a) => c(et(dt).dragleave, a)),
276
+ onDragend: i[4] || (i[4] = (a) => c(et(dt).dragend, a))
277
277
  }, {
278
- default: N(() => [
279
- y(d.$slots, "default", { transferData: i.value }),
280
- t.hideImageHtml ? (p(), b("div", {
278
+ default: wt(() => [
279
+ ot(l.$slots, "default", { transferData: s.value }),
280
+ t.hideImageHtml ? (A(), lt("div", {
281
281
  key: 0,
282
- style: W(a.value)
282
+ style: Ut(r.value)
283
283
  }, [
284
- y(d.$slots, "image", { transferData: i.value })
285
- ], 4)) : y(d.$slots, "image", {
284
+ ot(l.$slots, "image", { transferData: s.value })
285
+ ], 4)) : ot(l.$slots, "image", {
286
286
  key: 1,
287
- transferData: i.value
287
+ transferData: s.value
288
288
  })
289
289
  ]),
290
290
  _: 3
291
291
  }, 40, ["draggable"]));
292
292
  }
293
293
  };
294
- const _e = { class: "item-title" }, De = { style: { display: "flex", "flex-direction": "row", "justify-content": "flex-end" } }, Te = {
294
+ const bs = { class: "item-title" }, ws = { style: { display: "flex", "flex-direction": "row", "justify-content": "flex-end" } }, Ss = {
295
295
  key: 0,
296
296
  class: "sub-menu"
297
- }, $e = {
297
+ }, xs = {
298
298
  __name: "DTreeItem",
299
299
  props: {
300
300
  model: Object,
@@ -304,107 +304,107 @@ const _e = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
304
304
  },
305
305
  emits: ["nodedrop", "nodedragover", "nodedragleave", "nodeclick"],
306
306
  setup(t, { emit: n }) {
307
- const e = t, o = H(null), i = H(!1), a = H(!1), l = H(!1), d = f(() => e.model.children && e.model.children.length), s = f(() => (u.actions.isTreeExpanded(e.treeId) && (e.model.expanded = e.model.expanded === void 0 ? !0 : e.model.expanded), e.model.expanded)), r = (S) => {
308
- n("nodeclick", { event: S, model: e.model });
309
- }, c = (S) => {
310
- n("nodeclick", S);
311
- }, m = f(() => (u.actions.isItemSelected(e.treeId, e.model.id) ? "selected" : "") + (i.value ? "node-over " : "") + (a.value ? "node-top " : "") + (l.value ? "node-bottom " : "")), $ = f(() => e.search ? !1 : e.model.draggable === !0), B = (S) => {
312
- let _ = Z.data;
313
- if (_.model.id === e.model.id || u.actions.isChildOfParent(e.treeId, e.items, e.model.id, _.model.id) || u.actions.isParentOfChild(e.treeId, e.items, _.model.id, e.model.id))
314
- return i.value = !1, a.value = !1, l.value = !1, !1;
315
- if (!u.state.trees[e.treeId].transfer && _.id !== e.treeId)
307
+ const e = t, o = Nt(null), s = Nt(!1), r = Nt(!1), c = Nt(!1), l = P(() => e.model.children && e.model.children.length), i = P(() => (L.actions.isTreeExpanded(e.treeId) && (e.model.expanded = e.model.expanded === void 0 ? !0 : e.model.expanded), e.model.expanded)), a = (b) => {
308
+ n("nodeclick", { event: b, model: e.model });
309
+ }, d = (b) => {
310
+ n("nodeclick", b);
311
+ }, f = P(() => (L.actions.isItemSelected(e.treeId, e.model.id) ? "selected" : "") + (s.value ? "node-over " : "") + (r.value ? "node-top " : "") + (c.value ? "node-bottom " : "")), p = P(() => e.search ? !1 : e.model.draggable === !0), m = (b) => {
312
+ let x = Ae.data;
313
+ if (x.model.id === e.model.id || L.actions.isChildOfParent(e.treeId, e.items, e.model.id, x.model.id) || L.actions.isParentOfChild(e.treeId, e.items, x.model.id, e.model.id))
314
+ return s.value = !1, r.value = !1, c.value = !1, !1;
315
+ if (!L.state.trees[e.treeId].transfer && x.id !== e.treeId)
316
316
  return !1;
317
- let T = "";
318
- a.value ? T = "before" : l.value ? T = "after" : T = "inside", u.actions.moveTreeNode(_.id, e.treeId, e.items, _.model.id, e.model.id, T), i.value = !1, a.value = !1, l.value = !1;
319
- }, M = (S) => {
320
- let _ = Z.data;
321
- if (_.model.id === e.model.id || u.actions.isChildOfParent(e.treeId, e.items, e.model.id, _.model.id) || u.actions.isParentOfChild(e.treeId, e.items, _.model.id, e.model.id))
317
+ let u = "";
318
+ r.value ? u = "before" : c.value ? u = "after" : u = "inside", L.actions.moveTreeNode(x.id, e.treeId, e.items, x.model.id, e.model.id, u), s.value = !1, r.value = !1, c.value = !1;
319
+ }, _ = (b) => {
320
+ let x = Ae.data;
321
+ if (x.model.id === e.model.id || L.actions.isChildOfParent(e.treeId, e.items, e.model.id, x.model.id) || L.actions.isParentOfChild(e.treeId, e.items, x.model.id, e.model.id))
322
322
  return !1;
323
- const T = S.y, w = o.value.getBoundingClientRect().top, C = o.value.getBoundingClientRect().height, g = C / 3;
324
- T > w && T <= w + g ? (i.value = !1, a.value = !0, l.value = !1) : T < w + C && T >= w + C - g ? (i.value = !1, a.value = !1, l.value = !0) : (i.value = !0, a.value = !1, l.value = !1);
325
- }, Y = () => {
326
- i.value = !1, a.value = !1, l.value = !1;
323
+ const u = b.y, g = o.value.getBoundingClientRect().top, D = o.value.getBoundingClientRect().height, w = D / 3;
324
+ u > g && u <= g + w ? (s.value = !1, r.value = !0, c.value = !1) : u < g + D && u >= g + D - w ? (s.value = !1, r.value = !1, c.value = !0) : (s.value = !0, r.value = !1, c.value = !1);
325
+ }, h = () => {
326
+ s.value = !1, r.value = !1, c.value = !1;
327
327
  };
328
- return (S, _) => {
329
- const T = ae("d-tree-item", !0);
330
- return p(), h(xe, {
328
+ return (b, x) => {
329
+ const u = ns("d-tree-item", !0);
330
+ return A(), st(ys, {
331
331
  tag: "li",
332
332
  class: "tree-item",
333
333
  "transfer-data": { id: e.treeId, model: e.model },
334
- draggable: $.value,
335
- onDrop: F(B, ["stop"]),
336
- onDragenter: _[0] || (_[0] = F(() => {
334
+ draggable: p.value,
335
+ onDrop: Gt(m, ["stop"]),
336
+ onDragenter: x[0] || (x[0] = Gt(() => {
337
337
  }, ["prevent"])),
338
- onDragover: F(M, ["prevent", "stop"]),
339
- onDragleave: F(Y, ["prevent"])
338
+ onDragover: Gt(_, ["prevent", "stop"]),
339
+ onDragleave: Gt(h, ["prevent"])
340
340
  }, {
341
- default: N(() => {
342
- var w, C;
341
+ default: wt(() => {
342
+ var g, D;
343
343
  return [
344
- E("div", {
344
+ oe("div", {
345
345
  ref_key: "node",
346
346
  ref: o,
347
- class: k(m.value),
348
- onClick: r
347
+ class: Wt(f.value),
348
+ onClick: a
349
349
  }, [
350
- E("div", null, [
351
- e.model.icons && e.model.icons.pre && d.value && !e.search ? (p(), h(z(R), {
350
+ oe("div", null, [
351
+ e.model.icons && e.model.icons.pre && l.value && !e.search ? (A(), st(Vt(we), {
352
352
  key: 0,
353
- component: v(L).getters.getIcon(e.model.icons.pre.component),
353
+ component: et(Rt).getters.getIcon(e.model.icons.pre.component),
354
354
  size: 18,
355
355
  color: e.model.icons.pre.color ? e.model.icons.pre.color : "inherit",
356
- class: k(s.value ? "tree-open-pre" : "")
357
- }, null, 8, ["component", "color", "class"])) : D("", !0),
358
- e.model.icons && e.model.icons.pre && !d.value && !e.search ? (p(), h(z(R), {
356
+ class: Wt(i.value ? "tree-open-pre" : "")
357
+ }, null, 8, ["component", "color", "class"])) : pt("", !0),
358
+ e.model.icons && e.model.icons.pre && !l.value && !e.search ? (A(), st(Vt(we), {
359
359
  key: 1,
360
- component: v(L).getters.getIcon(e.model.icons.pre.component),
360
+ component: et(Rt).getters.getIcon(e.model.icons.pre.component),
361
361
  size: 18,
362
362
  color: "rgba(0,0,0,0)",
363
- class: k(s.value ? "tree-open-pre" : "")
364
- }, null, 8, ["component", "class"])) : D("", !0),
365
- e.model.icons && e.model.icons.icon ? (p(), h(z(R), {
363
+ class: Wt(i.value ? "tree-open-pre" : "")
364
+ }, null, 8, ["component", "class"])) : pt("", !0),
365
+ e.model.icons && e.model.icons.icon ? (A(), st(Vt(we), {
366
366
  key: 2,
367
- component: v(L).getters.getIcon(e.model.icons.icon.component),
367
+ component: et(Rt).getters.getIcon(e.model.icons.icon.component),
368
368
  color: e.model.icons.icon.color ? e.model.icons.icon.color : "inherit",
369
369
  size: e.model.icons.icon.size ? e.model.icons.icon.size : null,
370
370
  className: e.model.icons.icon.class ? e.model.icons.icon.class : null
371
- }, null, 8, ["component", "color", "size", "className"])) : D("", !0),
372
- E("div", _e, [
373
- E("div", null, X(v(u).actions.renderTitle(e.treeId, e.model.title)), 1)
371
+ }, null, 8, ["component", "color", "size", "className"])) : pt("", !0),
372
+ oe("div", bs, [
373
+ oe("div", null, gn(et(L).actions.renderTitle(e.treeId, e.model.title)), 1)
374
374
  ])
375
375
  ]),
376
- E("div", De, [
377
- ((w = e.model.badge) == null ? void 0 : w.value) !== void 0 ? (p(), h(z(he), {
376
+ oe("div", ws, [
377
+ ((g = e.model.badge) == null ? void 0 : g.value) !== void 0 ? (A(), st(Vt(ms), {
378
378
  key: 0,
379
- class: k([(C = e.model.badge) == null ? void 0 : C.class, "badge-sm"])
379
+ class: Wt([(D = e.model.badge) == null ? void 0 : D.class, "badge-sm"])
380
380
  }, {
381
- default: N(() => [
382
- re(X(e.model.badge.value), 1)
381
+ default: wt(() => [
382
+ os(gn(e.model.badge.value), 1)
383
383
  ]),
384
384
  _: 1
385
- }, 8, ["class"])) : D("", !0),
386
- e.model.icons && e.model.icons.post && d.value && !e.search ? (p(), h(z(R), {
385
+ }, 8, ["class"])) : pt("", !0),
386
+ e.model.icons && e.model.icons.post && l.value && !e.search ? (A(), st(Vt(we), {
387
387
  key: 1,
388
- component: v(L).getters.getIcon(e.model.icons.post.component),
388
+ component: et(Rt).getters.getIcon(e.model.icons.post.component),
389
389
  size: 20,
390
390
  color: e.model.icons.post.color ? e.model.icons.post.color : "inherit",
391
- class: k(s.value ? "tree-open-post" : "")
392
- }, null, 8, ["component", "color", "class"])) : D("", !0)
391
+ class: Wt(i.value ? "tree-open-post" : "")
392
+ }, null, 8, ["component", "color", "class"])) : pt("", !0)
393
393
  ])
394
394
  ], 2),
395
- j(ye, null, {
396
- default: N(() => [
397
- d.value && s.value && !e.search ? (p(), b("ul", Te, [
398
- (p(!0), b(G, null, ee(t.model.children, (g) => (p(), h(T, {
395
+ wo(gs, null, {
396
+ default: wt(() => [
397
+ l.value && i.value && !e.search ? (A(), lt("ul", Ss, [
398
+ (A(!0), lt(Tn, null, So(t.model.children, (w) => (A(), st(u, {
399
399
  class: "tree-item",
400
- key: g.id,
401
- model: g,
400
+ key: w.id,
401
+ model: w,
402
402
  treeId: e.treeId,
403
403
  items: e.items,
404
404
  search: e.search,
405
- onNodeclick: c
405
+ onNodeclick: d
406
406
  }, null, 8, ["model", "treeId", "items", "search"]))), 128))
407
- ])) : D("", !0)
407
+ ])) : pt("", !0)
408
408
  ]),
409
409
  _: 1
410
410
  })
@@ -414,8 +414,8 @@ const _e = { class: "item-title" }, De = { style: { display: "flex", "flex-direc
414
414
  }, 8, ["transfer-data", "draggable", "onDrop", "onDragover", "onDragleave"]);
415
415
  };
416
416
  }
417
- }, Se = /* @__PURE__ */ q($e, [["__scopeId", "data-v-00a53150"]]);
418
- function Ne(t) {
417
+ }, $s = /* @__PURE__ */ In(xs, [["__scopeId", "data-v-00a53150"]]);
418
+ function _s(t) {
419
419
  return t = t || /* @__PURE__ */ new Map(), {
420
420
  /**
421
421
  * A Map of event names to registered handler functions.
@@ -454,140 +454,140 @@ function Ne(t) {
454
454
  */
455
455
  emit(n, e) {
456
456
  let o = t.get(n);
457
- o && o.slice().map((i) => {
458
- i(e);
459
- }), o = t.get("*"), o && o.slice().map((i) => {
460
- i(n, e);
457
+ o && o.slice().map((s) => {
458
+ s(e);
459
+ }), o = t.get("*"), o && o.slice().map((s) => {
460
+ s(n, e);
461
461
  });
462
462
  }
463
463
  };
464
464
  }
465
- const V = Ne(), u = {
466
- state: K({
465
+ const se = _s(), L = {
466
+ state: Cn({
467
467
  trees: {}
468
468
  }),
469
469
  getters: {
470
470
  getItems(t) {
471
- return u.state.trees[t].items;
471
+ return L.state.trees[t].items;
472
472
  },
473
473
  getItemsSelect(t) {
474
- return u.state.trees[t].selected;
474
+ return L.state.trees[t].selected;
475
475
  },
476
476
  // data - ноды, dataId - ID ноды родителя data
477
- getParentId(t, n, e, o = "id", i = "children", a = {}) {
478
- return e && t && (t.find((l) => l[o] === e ? (a.found = n, l) : u.getters.getParentId(l[i], l.id, e, o, i, a)), a.found) ? a.found : !1;
477
+ getParentId(t, n, e, o = "id", s = "children", r = {}) {
478
+ return e && t && (t.find((c) => c[o] === e ? (r.found = n, c) : L.getters.getParentId(c[s], c.id, e, o, s, r)), r.found) ? r.found : !1;
479
479
  }
480
480
  },
481
481
  mutations: {
482
482
  setTreeItems(t, n) {
483
- u.state.trees[t].items = n;
483
+ L.state.trees[t].items = n;
484
484
  },
485
485
  setItemSelect(t, n) {
486
- u.state.trees[t].noSelect || (u.state.trees[t].multiSelect ? u.state.trees[t].selected.includes(n.id) ? u.state.trees[t].selected = u.state.trees[t].selected.filter(function(e) {
486
+ L.state.trees[t].noSelect || (L.state.trees[t].multiSelect ? L.state.trees[t].selected.includes(n.id) ? L.state.trees[t].selected = L.state.trees[t].selected.filter(function(e) {
487
487
  return e !== n.id;
488
- }) : u.state.trees[t].selected = [...u.state.trees[t].selected, n.id] : u.state.trees[t].selected = [n.id]);
488
+ }) : L.state.trees[t].selected = [...L.state.trees[t].selected, n.id] : L.state.trees[t].selected = [n.id]);
489
489
  }
490
490
  },
491
491
  actions: {
492
- initTreeStore(t, n, e, o, i, a) {
493
- u.state.trees[t] = [], u.state.trees[t].selected = [], u.state.trees[t].noSelect = n, u.state.trees[t].multiSelect = e, u.state.trees[t].expanded = o, u.state.trees[t].transfer = i, u.state.trees[t].renderTitle = a;
492
+ initTreeStore(t, n, e, o, s, r) {
493
+ L.state.trees[t] = [], L.state.trees[t].selected = [], L.state.trees[t].noSelect = n, L.state.trees[t].multiSelect = e, L.state.trees[t].expanded = o, L.state.trees[t].transfer = s, L.state.trees[t].renderTitle = r;
494
494
  },
495
495
  renderTitle(t, n) {
496
- return u.state.trees[t].renderTitle ? u.state.trees[t].renderTitle(n) : n;
496
+ return L.state.trees[t].renderTitle ? L.state.trees[t].renderTitle(n) : n;
497
497
  },
498
498
  isItemSelected(t, n) {
499
- return u.state.trees[t].selected.includes(n);
499
+ return L.state.trees[t].selected.includes(n);
500
500
  },
501
501
  toggleItem(t, n, e) {
502
- const o = u.actions.deepSearch(n, e);
503
- o.expanded = o.expanded === void 0 || !o.expanded, o.children && o.children.length && (o.expanded ? V.emit(`expand-${t}`, { id: t, model: o }) : V.emit(`collapse-${t}`, { id: t, model: o }));
502
+ const o = L.actions.deepSearch(n, e);
503
+ o.expanded = o.expanded === void 0 || !o.expanded, o.children && o.children.length && (o.expanded ? se.emit(`expand-${t}`, { id: t, model: o }) : se.emit(`collapse-${t}`, { id: t, model: o }));
504
504
  },
505
505
  isTreeExpanded(t) {
506
- return u.state.trees[t].expanded;
506
+ return L.state.trees[t].expanded;
507
507
  },
508
508
  isChildOfParent(t, n, e, o) {
509
- const i = u.actions.deepSearch(n, e);
510
- if (i && i.children) {
511
- for (let a = 0; a < i.children.length; a++)
512
- if (i.children[a].id === o)
509
+ const s = L.actions.deepSearch(n, e);
510
+ if (s && s.children) {
511
+ for (let r = 0; r < s.children.length; r++)
512
+ if (s.children[r].id === o)
513
513
  return !0;
514
514
  }
515
515
  return !1;
516
516
  },
517
517
  // Является ли нода родителем указанного потомка
518
518
  isParentOfChild(t, n, e, o) {
519
- const i = u.actions.deepSearch(n, e);
520
- return !!(i && i.children && u.actions.deepSearch(i.children, o));
521
- },
522
- deepSearch(t, n, e = "id", o = "children", i = {}) {
523
- return n && t && (t.find((a) => a[e] === n ? (i.found = a, a) : u.actions.deepSearch(a[o], n, e, o, i)), i.found) ? i.found : !1;
524
- },
525
- deepSearchByTitle(t, n, e = "title", o = "children", i = []) {
526
- if (n && t && (t.find((a) => {
527
- const l = new RegExp(n, "gi");
528
- a[e].toString().toLowerCase().match(l) !== null && i.push(a), u.actions.deepSearchByTitle(a[o], n, e, o, i);
529
- }), i)) {
530
- for (let a = 0; a < i.length; a++)
519
+ const s = L.actions.deepSearch(n, e);
520
+ return !!(s && s.children && L.actions.deepSearch(s.children, o));
521
+ },
522
+ deepSearch(t, n, e = "id", o = "children", s = {}) {
523
+ return n && t && (t.find((r) => r[e] === n ? (s.found = r, r) : L.actions.deepSearch(r[o], n, e, o, s)), s.found) ? s.found : !1;
524
+ },
525
+ deepSearchByTitle(t, n, e = "title", o = "children", s = []) {
526
+ if (n && t && (t.find((r) => {
527
+ const c = new RegExp(n, "gi");
528
+ r[e].toString().toLowerCase().match(c) !== null && s.push(r), L.actions.deepSearchByTitle(r[o], n, e, o, s);
529
+ }), s)) {
530
+ for (let r = 0; r < s.length; r++)
531
531
  ;
532
- return i;
532
+ return s;
533
533
  }
534
- return i;
534
+ return s;
535
535
  },
536
- moveTreeNode(t, n, e, o, i, a) {
537
- const l = u.actions.deleteTreeNode(e, o);
538
- u.actions.insertTreeNode(e, i, l, a), V.emit(`move-${n}`, { fromTreeId: t, toTreeId: n, moved: l.id, target: i, position: a });
536
+ moveTreeNode(t, n, e, o, s, r) {
537
+ const c = L.actions.deleteTreeNode(e, o);
538
+ L.actions.insertTreeNode(e, s, c, r), se.emit(`move-${n}`, { fromTreeId: t, toTreeId: n, moved: c.id, target: s, position: r });
539
539
  },
540
540
  insertTreeNode(t, n, e, o) {
541
541
  if (t)
542
- for (let i = 0; i < t.length; i++) {
543
- if (t[i].id === n) {
544
- let l = i;
545
- return o === "after" ? (l++, t.splice(l, 0, e)) : o === "before" ? t.splice(l, 0, e) : o === "inside" && (Object.hasOwn(t[i], "children") || (t[i].children = [], t[i].opened = !0), t[i].children.splice(0, 0, e)), t[i];
542
+ for (let s = 0; s < t.length; s++) {
543
+ if (t[s].id === n) {
544
+ let c = s;
545
+ return o === "after" ? (c++, t.splice(c, 0, e)) : o === "before" ? t.splice(c, 0, e) : o === "inside" && (Object.hasOwn(t[s], "children") || (t[s].children = [], t[s].opened = !0), t[s].children.splice(0, 0, e)), t[s];
546
546
  }
547
- const a = this.insertTreeNode(t[i].children, n, e, o);
548
- if (a)
549
- return a;
547
+ const r = this.insertTreeNode(t[s].children, n, e, o);
548
+ if (r)
549
+ return r;
550
550
  }
551
551
  },
552
552
  deleteTreeNode(t, n) {
553
553
  if (t)
554
554
  for (let e = 0; e < t.length; e++) {
555
555
  if (t[e].id === n) {
556
- const i = t[e];
557
- return t.splice(e, 1), i;
556
+ const s = t[e];
557
+ return t.splice(e, 1), s;
558
558
  }
559
- const o = u.actions.deleteTreeNode(t[e].children, n);
559
+ const o = L.actions.deleteTreeNode(t[e].children, n);
560
560
  if (o)
561
561
  return o;
562
562
  }
563
563
  }
564
564
  }
565
- }, Be = {
565
+ }, Ds = {
566
566
  __name: "DDrop",
567
567
  props: {
568
568
  tag: { type: String, default: "div" }
569
569
  },
570
- emits: Object.keys(x),
570
+ emits: Object.keys(dt),
571
571
  setup(t, { emit: n }) {
572
- let e = K({});
573
- const o = H("false"), i = H(null), a = /* @__PURE__ */ new Set(), l = f(() => o.value && e), d = (s, r) => {
574
- e = Z.data, n(s, r, e), s === x.dragenter && (a.size || r.target === i.value) && a.add(r.target), s === x.dragleave && a.delete(r.target), s === x.drop && a.clear(), o.value = !!a.size;
572
+ let e = Cn({});
573
+ const o = Nt("false"), s = Nt(null), r = /* @__PURE__ */ new Set(), c = P(() => o.value && e), l = (i, a) => {
574
+ e = Ae.data, n(i, a, e), i === dt.dragenter && (r.size || a.target === s.value) && r.add(a.target), i === dt.dragleave && r.delete(a.target), i === dt.drop && r.clear(), o.value = !!r.size;
575
575
  };
576
- return (s, r) => (p(), h(z(t.tag), {
576
+ return (i, a) => (A(), st(Vt(t.tag), {
577
577
  ref_key: "el",
578
- ref: i,
579
- onDragenter: r[0] || (r[0] = (c) => d(v(x).dragenter, c)),
580
- onDragleave: r[1] || (r[1] = (c) => d(v(x).dragleave, c)),
581
- onDragover: r[2] || (r[2] = F((c) => d(v(x).dragover, c), ["prevent"])),
582
- onDrop: r[3] || (r[3] = F((c) => d(v(x).drop, c), ["prevent"]))
578
+ ref: s,
579
+ onDragenter: a[0] || (a[0] = (d) => l(et(dt).dragenter, d)),
580
+ onDragleave: a[1] || (a[1] = (d) => l(et(dt).dragleave, d)),
581
+ onDragover: a[2] || (a[2] = Gt((d) => l(et(dt).dragover, d), ["prevent"])),
582
+ onDrop: a[3] || (a[3] = Gt((d) => l(et(dt).drop, d), ["prevent"]))
583
583
  }, {
584
- default: N(() => [
585
- y(s.$slots, "default", { transferData: l.value })
584
+ default: wt(() => [
585
+ ot(i.$slots, "default", { transferData: c.value })
586
586
  ]),
587
587
  _: 3
588
588
  }, 544));
589
589
  }
590
- }, we = {
590
+ }, Ts = {
591
591
  __name: "DTree",
592
592
  props: {
593
593
  items: Array,
@@ -607,56 +607,56 @@ const V = Ne(), u = {
607
607
  },
608
608
  emits: ["select", "collapse", "expand", "move"],
609
609
  setup(t, { emit: n }) {
610
- const e = t, o = de().uid;
611
- u.actions.initTreeStore(o, e.noSelect, e.multiSelect, e.expanded, e.transfer, e.renderTitle);
612
- const i = (d, s) => {
613
- console.log(d, s);
610
+ const e = t, o = ss().uid;
611
+ L.actions.initTreeStore(o, e.noSelect, e.multiSelect, e.expanded, e.transfer, e.renderTitle);
612
+ const s = (l, i) => {
613
+ console.log(l, i);
614
614
  };
615
- V.on(`select-${o}`, (d) => {
616
- n("select", d);
617
- }), V.on(`expand-${o}`, (d) => {
618
- n("expand", d);
619
- }), V.on(`collapse-${o}`, (d) => {
620
- n("collapse", d);
621
- }), V.on(`move-${o}`, (d) => {
622
- n("move", d);
615
+ se.on(`select-${o}`, (l) => {
616
+ n("select", l);
617
+ }), se.on(`expand-${o}`, (l) => {
618
+ n("expand", l);
619
+ }), se.on(`collapse-${o}`, (l) => {
620
+ n("collapse", l);
621
+ }), se.on(`move-${o}`, (l) => {
622
+ n("move", l);
623
623
  });
624
- const a = f(() => e.search ? u.actions.deepSearchByTitle(e.items, e.search) : e.items), l = (d = null) => {
625
- u.mutations.setItemSelect(o, d.model), u.actions.toggleItem(o, e.items, d.model.id);
624
+ const r = P(() => e.search ? L.actions.deepSearchByTitle(e.items, e.search) : e.items), c = (l = null) => {
625
+ L.mutations.setItemSelect(o, l.model), L.actions.toggleItem(o, e.items, l.model.id);
626
626
  };
627
- return (d, s) => (p(), h(Be, {
627
+ return (l, i) => (A(), st(Ds, {
628
628
  class: "tree",
629
629
  tag: "ul",
630
- onDrop: F(i, ["stop"])
630
+ onDrop: Gt(s, ["stop"])
631
631
  }, {
632
- default: N(() => [
633
- (p(!0), b(G, null, ee(a.value, (r) => (p(), h(Se, {
634
- key: r.id,
635
- model: r,
636
- treeId: v(o),
632
+ default: wt(() => [
633
+ (A(!0), lt(Tn, null, So(r.value, (a) => (A(), st($s, {
634
+ key: a.id,
635
+ model: a,
636
+ treeId: et(o),
637
637
  items: e.items,
638
638
  search: e.search,
639
- onNodeclick: l
639
+ onNodeclick: c
640
640
  }, null, 8, ["model", "treeId", "items", "search"]))), 128))
641
641
  ]),
642
642
  _: 1
643
643
  }, 8, ["onDrop"]));
644
644
  }
645
645
  };
646
- const Ie = {
646
+ const Cs = {
647
647
  __name: "DAccordion",
648
648
  props: {
649
649
  items: Array
650
650
  },
651
651
  setup(t) {
652
652
  const n = t;
653
- return (e, o) => (p(), h(we, {
653
+ return (e, o) => (A(), st(Ts, {
654
654
  class: "accordion",
655
655
  items: n.items,
656
656
  "no-select": !0
657
657
  }, null, 8, ["items"]));
658
658
  }
659
- }, Oe = /* @__PURE__ */ q(Ie, [["__scopeId", "data-v-4c920528"]]), ke = {
659
+ }, ii = /* @__PURE__ */ In(Cs, [["__scopeId", "data-v-4c920528"]]), Is = {
660
660
  __name: "DLayoutHeader",
661
661
  props: {
662
662
  fixed: {
@@ -690,18 +690,18 @@ const Ie = {
690
690
  useMinWidthLayout: Boolean
691
691
  },
692
692
  setup(t) {
693
- const n = t, e = f(() => {
694
- const { fixed: o, zIndex: i, minWidth: a, height: l, paddingLeft: d, transitionDuration: s, transitionTimingFunction: r } = n, c = o ? "fixed" : "static", m = n.useMinWidthLayout ? `min-width:${a}px;` : "";
695
- return `position:${c};z-index:${i};${m}height:${l}px;padding-left:${d}px;transition-duration:${s}ms;transition-timing-function:${r};`;
693
+ const n = t, e = P(() => {
694
+ const { fixed: o, zIndex: s, minWidth: r, height: c, paddingLeft: l, transitionDuration: i, transitionTimingFunction: a } = n, d = o ? "fixed" : "static", f = n.useMinWidthLayout ? `min-width:${r}px;` : "";
695
+ return `position:${d};z-index:${s};${f}height:${c}px;padding-left:${l}px;transition-duration:${i}ms;transition-timing-function:${a};`;
696
696
  });
697
- return (o, i) => (p(), b("header", {
697
+ return (o, s) => (A(), lt("header", {
698
698
  class: "d-layout-header",
699
- style: W(e.value)
699
+ style: Ut(e.value)
700
700
  }, [
701
- y(o.$slots, "default")
701
+ ot(o.$slots, "default")
702
702
  ], 4));
703
703
  }
704
- }, Le = {
704
+ }, ks = {
705
705
  __name: "DLayoutTab",
706
706
  props: {
707
707
  fixed: {
@@ -739,18 +739,18 @@ const Ie = {
739
739
  useMinWidthLayout: Boolean
740
740
  },
741
741
  setup(t) {
742
- const n = t, e = f(() => {
743
- const { fixed: o, top: i, zIndex: a, minWidth: l, height: d, paddingLeft: s, transitionDuration: r, transitionTimingFunction: c } = n, m = o ? "fixed" : "static", $ = n.useMinWidthLayout ? `min-width: ${l}px;` : "";
744
- return `position:${m};top:${i}px;z-index:${a};${$}height:${d}px;padding-left:${s}px;transition-duration:${r}ms;transition-timing-function:${c};`;
742
+ const n = t, e = P(() => {
743
+ const { fixed: o, top: s, zIndex: r, minWidth: c, height: l, paddingLeft: i, transitionDuration: a, transitionTimingFunction: d } = n, f = o ? "fixed" : "static", p = n.useMinWidthLayout ? `min-width: ${c}px;` : "";
744
+ return `position:${f};top:${s}px;z-index:${r};${p}height:${l}px;padding-left:${i}px;transition-duration:${a}ms;transition-timing-function:${d};`;
745
745
  });
746
- return (o, i) => (p(), b("div", {
746
+ return (o, s) => (A(), lt("div", {
747
747
  class: "d-layout-tab",
748
- style: W(e.value)
748
+ style: Ut(e.value)
749
749
  }, [
750
- y(o.$slots, "default")
750
+ ot(o.$slots, "default")
751
751
  ], 4));
752
752
  }
753
- }, We = {
753
+ }, Ls = {
754
754
  __name: "DLayoutFooter",
755
755
  props: {
756
756
  fixed: {
@@ -784,18 +784,18 @@ const Ie = {
784
784
  useMinWidthLayout: Boolean
785
785
  },
786
786
  setup(t) {
787
- const n = t, e = f(() => {
788
- const { fixed: o, zIndex: i, minWidth: a, height: l, paddingLeft: d, transitionDuration: s, transitionTimingFunction: r } = n, c = o ? "fixed" : "static", m = n.useMinWidthLayout ? `min-width:${a}px;` : "";
789
- return `position:${c};z-index:${i};${m}height:${l}px;padding-left:${d}px;transition-duration:${s}ms;transition-timing-function:${r};`;
787
+ const n = t, e = P(() => {
788
+ const { fixed: o, zIndex: s, minWidth: r, height: c, paddingLeft: l, transitionDuration: i, transitionTimingFunction: a } = n, d = o ? "fixed" : "static", f = n.useMinWidthLayout ? `min-width:${r}px;` : "";
789
+ return `position:${d};z-index:${s};${f}height:${c}px;padding-left:${l}px;transition-duration:${i}ms;transition-timing-function:${a};`;
790
790
  });
791
- return (o, i) => (p(), b("footer", {
791
+ return (o, s) => (A(), lt("footer", {
792
792
  class: "d-layout-footer",
793
- style: W(e.value)
793
+ style: Ut(e.value)
794
794
  }, [
795
- y(o.$slots, "default")
795
+ ot(o.$slots, "default")
796
796
  ], 4));
797
797
  }
798
- }, Ce = {
798
+ }, Bs = {
799
799
  __name: "DLayoutSidebar",
800
800
  props: {
801
801
  zIndex: {
@@ -824,18 +824,18 @@ const Ie = {
824
824
  }
825
825
  },
826
826
  setup(t) {
827
- const n = t, e = f(() => {
828
- const { zIndex: o, width: i, paddingTop: a, transitionDuration: l, transitionTimingFunction: d } = n;
829
- return `z-index:${o};width:${i}px;padding-top:${a}px;transition-duration:${l}ms;transition-timing-function:${d};`;
827
+ const n = t, e = P(() => {
828
+ const { zIndex: o, width: s, paddingTop: r, transitionDuration: c, transitionTimingFunction: l } = n;
829
+ return `z-index:${o};width:${s}px;padding-top:${r}px;transition-duration:${c}ms;transition-timing-function:${l};`;
830
830
  });
831
- return (o, i) => (p(), b("aside", {
831
+ return (o, s) => (A(), lt("aside", {
832
832
  class: "d-layout-sidebar",
833
- style: W(e.value)
833
+ style: Ut(e.value)
834
834
  }, [
835
- y(o.$slots, "default")
835
+ ot(o.$slots, "default")
836
836
  ], 4));
837
837
  }
838
- }, ze = {
838
+ }, Es = {
839
839
  __name: "DLayoutContent",
840
840
  props: {
841
841
  paddingTop: {
@@ -861,48 +861,48 @@ const Ie = {
861
861
  }
862
862
  },
863
863
  setup(t) {
864
- const n = t, e = f(() => {
865
- const { paddingTop: o, paddingBottom: i, paddingLeft: a, transitionDuration: l, transitionTimingFunction: d } = n, s = `overflow:${n.overflowHidden ? "hidden" : "visible"};`;
866
- return `padding-top:${o}px;padding-bottom:${i}px;padding-left:${a}px;${s}transition-duration:${l}ms;transition-timing-function:${d};`;
864
+ const n = t, e = P(() => {
865
+ const { paddingTop: o, paddingBottom: s, paddingLeft: r, transitionDuration: c, transitionTimingFunction: l } = n, i = `overflow:${n.overflowHidden ? "hidden" : "visible"};`;
866
+ return `padding-top:${o}px;padding-bottom:${s}px;padding-left:${r}px;${i}transition-duration:${c}ms;transition-timing-function:${l};`;
867
867
  });
868
- return (o, i) => (p(), b("main", {
869
- style: W(e.value),
868
+ return (o, s) => (A(), lt("main", {
869
+ style: Ut(e.value),
870
870
  class: "d-layout-content"
871
871
  }, [
872
- y(o.$slots, "default")
872
+ ot(o.$slots, "default")
873
873
  ], 4));
874
874
  }
875
875
  };
876
- function He(t) {
877
- const n = H(0), e = f(() => `transform: translateX(${-n.value}px);`);
876
+ function Ns(t) {
877
+ const n = Nt(0), e = P(() => `transform: translateX(${-n.value}px);`);
878
878
  let o = !1;
879
- function i(c) {
880
- n.value = c;
879
+ function s(d) {
880
+ n.value = d;
881
881
  }
882
- function a() {
883
- var c;
884
- const m = ((c = document.scrollingElement) === null || c === void 0 ? void 0 : c.scrollLeft) || 0;
885
- i(m);
882
+ function r() {
883
+ var d;
884
+ const f = ((d = document.scrollingElement) === null || d === void 0 ? void 0 : d.scrollLeft) || 0;
885
+ s(f);
886
886
  }
887
- function l() {
888
- a();
887
+ function c() {
888
+ r();
889
889
  }
890
- function d() {
891
- document.addEventListener("scroll", a);
890
+ function l() {
891
+ document.addEventListener("scroll", r);
892
892
  }
893
- function s() {
894
- o && document.removeEventListener("scroll", a);
893
+ function i() {
894
+ o && document.removeEventListener("scroll", r);
895
895
  }
896
- function r() {
897
- l(), d(), o = !0;
896
+ function a() {
897
+ c(), l(), o = !0;
898
898
  }
899
- return le(t, (c) => {
900
- c ? r() : s();
901
- }, { immediate: !0 }), ue(() => {
902
- s();
899
+ return Se(t, (d) => {
900
+ d ? a() : i();
901
+ }, { immediate: !0 }), xo(() => {
902
+ i();
903
903
  }), e;
904
904
  }
905
- const Fe = 1001, Me = 999, Ee = 998, Re = {
905
+ const Os = 1001, zs = 999, Hs = 998, ci = {
906
906
  __name: "DLayoutAdmin",
907
907
  props: {
908
908
  mode: {
@@ -993,128 +993,128 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
993
993
  },
994
994
  emits: ["update:sidebar-collapse"],
995
995
  setup(t, { emit: n }) {
996
- const e = t, o = f(() => e.useMinWidthLayout ? `min-width:${e.minWidth}px;` : ""), i = f(() => e.useMinWidthLayout && (e.fixedHeaderAndTab || e.fixedFooter)), a = He(i), l = f(() => e.fixedHeaderAndTab ? a.value : ""), d = f(() => e.fixedFooter ? a.value : ""), s = f(() => {
997
- const { transitionDuration: g, transitionTimingFunction: A } = e;
996
+ const e = t, o = P(() => e.useMinWidthLayout ? `min-width:${e.minWidth}px;` : ""), s = P(() => e.useMinWidthLayout && (e.fixedHeaderAndTab || e.fixedFooter)), r = Ns(s), c = P(() => e.fixedHeaderAndTab ? r.value : ""), l = P(() => e.fixedFooter ? r.value : ""), i = P(() => {
997
+ const { transitionDuration: w, transitionTimingFunction: E } = e;
998
998
  return {
999
- transitionDuration: g,
1000
- transitionTimingFunction: A
999
+ transitionDuration: w,
1000
+ transitionTimingFunction: E
1001
1001
  };
1002
- }), r = f(() => e.mode === "vertical"), c = f(() => e.isMobile || r.value ? 1003 : 1e3), m = f({
1002
+ }), a = P(() => e.mode === "vertical"), d = P(() => e.isMobile || a.value ? 1003 : 1e3), f = P({
1003
1003
  get() {
1004
1004
  return e.sidebarCollapse;
1005
1005
  },
1006
- set(g) {
1007
- n("update:sidebar-collapse", g);
1006
+ set(w) {
1007
+ n("update:sidebar-collapse", w);
1008
1008
  }
1009
1009
  });
1010
- function $() {
1011
- m.value = !0;
1010
+ function p() {
1011
+ f.value = !0;
1012
1012
  }
1013
- const B = f(() => e.isMobile && !m.value), M = f(() => {
1014
- const { transitionDuration: g, transitionTimingFunction: A } = e;
1015
- return `background-color:${e.maskBg};transition-duration:${g}ms;transition-timing-function:${A};`;
1016
- }), Y = f(() => {
1017
- const { sidebarWidth: g, sidebarCollapsedWidth: A } = e, te = e.isMobile ? 0 : A, ne = m.value ? te : g;
1018
- return e.sidebarVisible ? ne : 0;
1019
- }), S = f(() => e.isMobile ? 0 : Y.value), _ = f(() => r.value ? S.value : 0), T = f(
1020
- () => !e.isMobile && !r.value && e.headerVisible ? e.headerHeight : 0
1021
- ), w = f(() => {
1022
- let g = 0;
1023
- return e.fixedHeaderAndTab && (e.headerVisible && (g += e.headerHeight), e.tabVisible && (g += e.tabHeight)), g;
1024
- }), C = f(() => e.fixedFooter && e.footerVisible ? e.footerHeight : 0);
1025
- return (g, A) => (p(), b("div", {
1013
+ const m = P(() => e.isMobile && !f.value), _ = P(() => {
1014
+ const { transitionDuration: w, transitionTimingFunction: E } = e;
1015
+ return `background-color:${e.maskBg};transition-duration:${w}ms;transition-timing-function:${E};`;
1016
+ }), h = P(() => {
1017
+ const { sidebarWidth: w, sidebarCollapsedWidth: E } = e, N = e.isMobile ? 0 : E, z = f.value ? N : w;
1018
+ return e.sidebarVisible ? z : 0;
1019
+ }), b = P(() => e.isMobile ? 0 : h.value), x = P(() => a.value ? b.value : 0), u = P(
1020
+ () => !e.isMobile && !a.value && e.headerVisible ? e.headerHeight : 0
1021
+ ), g = P(() => {
1022
+ let w = 0;
1023
+ return e.fixedHeaderAndTab && (e.headerVisible && (w += e.headerHeight), e.tabVisible && (w += e.tabHeight)), w;
1024
+ }), D = P(() => e.fixedFooter && e.footerVisible ? e.footerHeight : 0);
1025
+ return (w, E) => (A(), lt("div", {
1026
1026
  class: "d-layout",
1027
- style: W(o.value)
1027
+ style: Ut(o.value)
1028
1028
  }, [
1029
- t.headerVisible ? (p(), h(ke, O({ key: 0 }, s.value, {
1029
+ t.headerVisible ? (A(), st(Is, be({ key: 0 }, i.value, {
1030
1030
  fixed: t.fixedHeaderAndTab,
1031
- "z-index": Fe,
1031
+ "z-index": Os,
1032
1032
  "min-width": t.minWidth,
1033
1033
  height: t.headerHeight,
1034
- "padding-left": _.value,
1035
- style: l.value
1034
+ "padding-left": x.value,
1035
+ style: c.value
1036
1036
  }), {
1037
- default: N(() => [
1038
- y(g.$slots, "header")
1037
+ default: wt(() => [
1038
+ ot(w.$slots, "header")
1039
1039
  ]),
1040
1040
  _: 3
1041
- }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : D("", !0),
1042
- t.tabVisible ? (p(), h(Le, O({ key: 1 }, s.value, {
1041
+ }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : pt("", !0),
1042
+ t.tabVisible ? (A(), st(ks, be({ key: 1 }, i.value, {
1043
1043
  fixed: t.fixedHeaderAndTab,
1044
- "z-index": Me,
1044
+ "z-index": zs,
1045
1045
  "min-width": t.minWidth,
1046
1046
  top: t.headerHeight,
1047
1047
  height: t.tabHeight,
1048
- "padding-left": S.value,
1049
- style: l.value
1048
+ "padding-left": b.value,
1049
+ style: c.value
1050
1050
  }), {
1051
- default: N(() => [
1052
- y(g.$slots, "tab")
1051
+ default: wt(() => [
1052
+ ot(w.$slots, "tab")
1053
1053
  ]),
1054
1054
  _: 3
1055
- }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : D("", !0),
1056
- t.sidebarVisible ? (p(), h(Ce, O({ key: 2 }, s.value, {
1057
- "z-index": c.value,
1058
- width: Y.value,
1059
- "padding-top": T.value
1055
+ }, 16, ["fixed", "min-width", "top", "height", "padding-left", "style"])) : pt("", !0),
1056
+ t.sidebarVisible ? (A(), st(Bs, be({ key: 2 }, i.value, {
1057
+ "z-index": d.value,
1058
+ width: h.value,
1059
+ "padding-top": u.value
1060
1060
  }), {
1061
- default: N(() => [
1062
- y(g.$slots, "sidebar")
1061
+ default: wt(() => [
1062
+ ot(w.$slots, "sidebar")
1063
1063
  ]),
1064
1064
  _: 3
1065
- }, 16, ["z-index", "width", "padding-top"])) : D("", !0),
1066
- B.value ? (p(), b("div", {
1065
+ }, 16, ["z-index", "width", "padding-top"])) : pt("", !0),
1066
+ m.value ? (A(), lt("div", {
1067
1067
  key: 3,
1068
1068
  class: "d-layout-sidebar-mask",
1069
- style: W(M.value),
1070
- onClick: $
1071
- }, null, 4)) : D("", !0),
1072
- j(ze, O(s.value, {
1073
- "padding-top": w.value,
1074
- "padding-bottom": C.value,
1075
- "padding-left": S.value,
1069
+ style: Ut(_.value),
1070
+ onClick: p
1071
+ }, null, 4)) : pt("", !0),
1072
+ wo(Es, be(i.value, {
1073
+ "padding-top": g.value,
1074
+ "padding-bottom": D.value,
1075
+ "padding-left": b.value,
1076
1076
  "overflow-hidden": t.addMainOverflowHidden
1077
1077
  }), {
1078
- default: N(() => [
1079
- y(g.$slots, "default")
1078
+ default: wt(() => [
1079
+ ot(w.$slots, "default")
1080
1080
  ]),
1081
1081
  _: 3
1082
1082
  }, 16, ["padding-top", "padding-bottom", "padding-left", "overflow-hidden"]),
1083
- t.footerVisible ? (p(), h(We, O({ key: 4 }, s.value, {
1083
+ t.footerVisible ? (A(), st(Ls, be({ key: 4 }, i.value, {
1084
1084
  fixed: t.fixedFooter,
1085
- "z-index": Ee,
1085
+ "z-index": Hs,
1086
1086
  "min-width": t.minWidth,
1087
1087
  height: t.footerHeight,
1088
- "padding-left": S.value,
1089
- style: d.value
1088
+ "padding-left": b.value,
1089
+ style: l.value
1090
1090
  }), {
1091
- default: N(() => [
1092
- y(g.$slots, "footer")
1091
+ default: wt(() => [
1092
+ ot(w.$slots, "footer")
1093
1093
  ]),
1094
1094
  _: 3
1095
- }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : D("", !0)
1095
+ }, 16, ["fixed", "min-width", "height", "padding-left", "style"])) : pt("", !0)
1096
1096
  ], 4));
1097
1097
  }
1098
- }, P = {
1099
- state: K({
1098
+ }, ue = {
1099
+ state: Cn({
1100
1100
  theme: "dark"
1101
1101
  }),
1102
1102
  getters: {
1103
1103
  theme() {
1104
- return P.state.theme;
1104
+ return ue.state.theme;
1105
1105
  }
1106
1106
  },
1107
1107
  mutations: {
1108
1108
  setTheme(t) {
1109
- P.state.theme = t, document.documentElement.setAttribute("class", t);
1109
+ ue.state.theme = t, document.documentElement.setAttribute("class", t);
1110
1110
  }
1111
1111
  },
1112
1112
  actions: {
1113
1113
  toggleTheme() {
1114
- P.state.theme = P.state.theme === "dark" ? "light" : "dark", document.documentElement.setAttribute("class", P.state.theme);
1114
+ ue.state.theme = ue.state.theme === "dark" ? "light" : "dark", document.documentElement.setAttribute("class", ue.state.theme);
1115
1115
  }
1116
1116
  }
1117
- }, Ye = {
1117
+ }, ai = {
1118
1118
  __name: "DConfigProvider",
1119
1119
  props: {
1120
1120
  theme: {
@@ -1124,29 +1124,1445 @@ const Fe = 1001, Me = 999, Ee = 998, Re = {
1124
1124
  },
1125
1125
  setup(t) {
1126
1126
  const n = t;
1127
- return P.mutations.setTheme(n.theme), (e, o) => y(e.$slots, "default");
1127
+ return ue.mutations.setTheme(n.theme), (e, o) => ot(e.$slots, "default");
1128
+ }
1129
+ };
1130
+ /*!
1131
+ * OverlayScrollbars
1132
+ * Version: 2.2.1
1133
+ *
1134
+ * Copyright (c) Rene Haas | KingSora.
1135
+ * https://github.com/KingSora
1136
+ *
1137
+ * Released under the MIT license.
1138
+ */
1139
+ function X(t, n) {
1140
+ if (qe(t))
1141
+ for (let e = 0; e < t.length && n(t[e], e, t) !== !1; e++)
1142
+ ;
1143
+ else
1144
+ t && X(Object.keys(t), (e) => n(t[e], e, t));
1145
+ return t;
1146
+ }
1147
+ function ft(t, n) {
1148
+ const e = ee(n);
1149
+ if (Lt(n) || e) {
1150
+ let s = e ? "" : {};
1151
+ if (t) {
1152
+ const r = window.getComputedStyle(t, null);
1153
+ s = e ? Kn(t, r, n) : n.reduce((c, l) => (c[l] = Kn(t, r, l), c), s);
1154
+ }
1155
+ return s;
1156
+ }
1157
+ t && X(St(n), (s) => Gs(t, s, n[s]));
1158
+ }
1159
+ const Tt = (t, n) => {
1160
+ const { o: e, u: o, _: s } = t;
1161
+ let r = e, c;
1162
+ const l = (d, f) => {
1163
+ const p = r, m = d, _ = f || (o ? !o(p, m) : p !== m);
1164
+ return (_ || s) && (r = m, c = p), [r, _, c];
1165
+ };
1166
+ return [n ? (d) => l(n(r, c), d) : l, (d) => [r, !!d, c]];
1167
+ }, De = () => typeof window < "u", $o = De() && Node.ELEMENT_NODE, { toString: As, hasOwnProperty: sn } = Object.prototype, Zt = (t) => t === void 0, Xe = (t) => t === null, Ps = (t) => Zt(t) || Xe(t) ? `${t}` : As.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase(), te = (t) => typeof t == "number", ee = (t) => typeof t == "string", Ln = (t) => typeof t == "boolean", kt = (t) => typeof t == "function", Lt = (t) => Array.isArray(t), xe = (t) => typeof t == "object" && !Lt(t) && !Xe(t), qe = (t) => {
1168
+ const n = !!t && t.length, e = te(n) && n > -1 && n % 1 == 0;
1169
+ return Lt(t) || !kt(t) && e ? n > 0 && xe(t) ? n - 1 in t : !0 : !1;
1170
+ }, vn = (t) => {
1171
+ if (!t || !xe(t) || Ps(t) !== "object")
1172
+ return !1;
1173
+ let n;
1174
+ const e = "constructor", o = t[e], s = o && o.prototype, r = sn.call(t, e), c = s && sn.call(s, "isPrototypeOf");
1175
+ if (o && !r && !c)
1176
+ return !1;
1177
+ for (n in t)
1178
+ ;
1179
+ return Zt(n) || sn.call(t, n);
1180
+ }, Pe = (t) => {
1181
+ const n = HTMLElement;
1182
+ return t ? n ? t instanceof n : t.nodeType === $o : !1;
1183
+ }, Ue = (t) => {
1184
+ const n = Element;
1185
+ return t ? n ? t instanceof n : t.nodeType === $o : !1;
1186
+ }, Bn = (t, n, e) => t.indexOf(n, e), Z = (t, n, e) => (!e && !ee(n) && qe(n) ? Array.prototype.push.apply(t, n) : t.push(n), t), ce = (t) => {
1187
+ const n = Array.from, e = [];
1188
+ return n && t ? n(t) : (t instanceof Set ? t.forEach((o) => {
1189
+ Z(e, o);
1190
+ }) : X(t, (o) => {
1191
+ Z(e, o);
1192
+ }), e);
1193
+ }, En = (t) => !!t && t.length === 0, Ht = (t, n, e) => {
1194
+ X(t, (s) => s && s.apply(void 0, n || [])), !e && (t.length = 0);
1195
+ }, Ye = (t, n) => Object.prototype.hasOwnProperty.call(t, n), St = (t) => t ? Object.keys(t) : [], G = (t, n, e, o, s, r, c) => {
1196
+ const l = [n, e, o, s, r, c];
1197
+ return (typeof t != "object" || Xe(t)) && !kt(t) && (t = {}), X(l, (i) => {
1198
+ X(St(i), (a) => {
1199
+ const d = i[a];
1200
+ if (t === d)
1201
+ return !0;
1202
+ const f = Lt(d);
1203
+ if (d && (vn(d) || f)) {
1204
+ const p = t[a];
1205
+ let m = p;
1206
+ f && !Lt(p) ? m = [] : !f && !vn(p) && (m = {}), t[a] = G(m, d);
1207
+ } else
1208
+ t[a] = d;
1209
+ });
1210
+ }), t;
1211
+ }, Nn = (t) => {
1212
+ for (const n in t)
1213
+ return !1;
1214
+ return !0;
1215
+ }, _o = (t, n, e, o) => {
1216
+ if (Zt(o))
1217
+ return e ? e[t] : n;
1218
+ e && (ee(o) || te(o)) && (e[t] = o);
1219
+ }, ut = (t, n, e) => {
1220
+ if (Zt(e))
1221
+ return t ? t.getAttribute(n) : null;
1222
+ t && t.setAttribute(n, e);
1223
+ }, gt = (t, n) => {
1224
+ t && t.removeAttribute(n);
1225
+ }, re = (t, n, e, o) => {
1226
+ if (e) {
1227
+ const s = ut(t, n) || "", r = new Set(s.split(" "));
1228
+ r[o ? "add" : "delete"](e);
1229
+ const c = ce(r).join(" ").trim();
1230
+ ut(t, n, c);
1231
+ }
1232
+ }, Ms = (t, n, e) => {
1233
+ const o = ut(t, n) || "";
1234
+ return new Set(o.split(" ")).has(e);
1235
+ }, It = (t, n) => _o("scrollLeft", 0, t, n), Xt = (t, n) => _o("scrollTop", 0, t, n), yn = De() && Element.prototype, Do = (t, n) => {
1236
+ const e = [], o = n ? Ue(n) ? n : null : document;
1237
+ return o ? Z(e, o.querySelectorAll(t)) : e;
1238
+ }, Fs = (t, n) => {
1239
+ const e = n ? Ue(n) ? n : null : document;
1240
+ return e ? e.querySelector(t) : null;
1241
+ }, Me = (t, n) => Ue(t) ? (yn.matches || yn.msMatchesSelector).call(t, n) : !1, On = (t) => t ? ce(t.childNodes) : [], Yt = (t) => t ? t.parentElement : null, pe = (t, n) => {
1242
+ if (Ue(t)) {
1243
+ const e = yn.closest;
1244
+ if (e)
1245
+ return e.call(t, n);
1246
+ do {
1247
+ if (Me(t, n))
1248
+ return t;
1249
+ t = Yt(t);
1250
+ } while (t);
1251
+ }
1252
+ return null;
1253
+ }, Ws = (t, n, e) => {
1254
+ const o = t && pe(t, n), s = t && Fs(e, o), r = pe(s, n) === o;
1255
+ return o && s ? o === t || s === t || r && pe(pe(t, e), n) !== o : !1;
1256
+ }, zn = (t, n, e) => {
1257
+ if (e && t) {
1258
+ let o = n, s;
1259
+ qe(e) ? (s = document.createDocumentFragment(), X(e, (r) => {
1260
+ r === o && (o = r.previousSibling), s.appendChild(r);
1261
+ })) : s = e, n && (o ? o !== n && (o = o.nextSibling) : o = t.firstChild), t.insertBefore(s, o || null);
1262
+ }
1263
+ }, Dt = (t, n) => {
1264
+ zn(t, null, n);
1265
+ }, Vs = (t, n) => {
1266
+ zn(Yt(t), t, n);
1267
+ }, Yn = (t, n) => {
1268
+ zn(Yt(t), t && t.nextSibling, n);
1269
+ }, zt = (t) => {
1270
+ if (qe(t))
1271
+ X(ce(t), (n) => zt(n));
1272
+ else if (t) {
1273
+ const n = Yt(t);
1274
+ n && n.removeChild(t);
1275
+ }
1276
+ }, ie = (t) => {
1277
+ const n = document.createElement("div");
1278
+ return t && ut(n, "class", t), n;
1279
+ }, To = (t) => {
1280
+ const n = ie();
1281
+ return n.innerHTML = t.trim(), X(On(n), (e) => zt(e));
1282
+ }, bn = (t) => t.charAt(0).toUpperCase() + t.slice(1), Rs = () => ie().style, Xs = ["-webkit-", "-moz-", "-o-", "-ms-"], qs = ["WebKit", "Moz", "O", "MS", "webkit", "moz", "o", "ms"], rn = {}, cn = {}, Us = (t) => {
1283
+ let n = cn[t];
1284
+ if (Ye(cn, t))
1285
+ return n;
1286
+ const e = bn(t), o = Rs();
1287
+ return X(Xs, (s) => {
1288
+ const r = s.replace(/-/g, "");
1289
+ return !(n = [t, s + t, r + e, bn(r) + e].find((l) => o[l] !== void 0));
1290
+ }), cn[t] = n || "";
1291
+ }, Te = (t) => {
1292
+ if (De()) {
1293
+ let n = rn[t] || window[t];
1294
+ return Ye(rn, t) || (X(qs, (e) => (n = n || window[e + bn(t)], !n)), rn[t] = n), n;
1295
+ }
1296
+ }, Ys = Te("MutationObserver"), Zn = Te("IntersectionObserver"), me = Te("ResizeObserver"), Co = Te("cancelAnimationFrame"), Io = Te("requestAnimationFrame"), Fe = De() && window.setTimeout, wn = De() && window.clearTimeout, Zs = /[^\x20\t\r\n\f]+/g, ko = (t, n, e) => {
1297
+ const o = t && t.classList;
1298
+ let s, r = 0, c = !1;
1299
+ if (o && n && ee(n)) {
1300
+ const l = n.match(Zs) || [];
1301
+ for (c = l.length > 0; s = l[r++]; )
1302
+ c = !!e(o, s) && c;
1303
+ }
1304
+ return c;
1305
+ }, Hn = (t, n) => {
1306
+ ko(t, n, (e, o) => e.remove(o));
1307
+ }, qt = (t, n) => (ko(t, n, (e, o) => e.add(o)), Hn.bind(0, t, n)), Ze = (t, n, e, o) => {
1308
+ if (t && n) {
1309
+ let s = !0;
1310
+ return X(e, (r) => {
1311
+ const c = o ? o(t[r]) : t[r], l = o ? o(n[r]) : n[r];
1312
+ c !== l && (s = !1);
1313
+ }), s;
1314
+ }
1315
+ return !1;
1316
+ }, Lo = (t, n) => Ze(t, n, ["w", "h"]), Bo = (t, n) => Ze(t, n, ["x", "y"]), js = (t, n) => Ze(t, n, ["t", "r", "b", "l"]), jn = (t, n, e) => Ze(t, n, ["width", "height"], e && ((o) => Math.round(o))), _t = () => {
1317
+ }, fe = (t) => {
1318
+ let n;
1319
+ const e = t ? Fe : Io, o = t ? wn : Co;
1320
+ return [(s) => {
1321
+ o(n), n = e(s, kt(t) ? t() : t);
1322
+ }, () => o(n)];
1323
+ }, An = (t, n) => {
1324
+ let e, o, s, r = _t;
1325
+ const { v: c, g: l, p: i } = n || {}, a = function(_) {
1326
+ r(), wn(e), e = o = void 0, r = _t, t.apply(this, _);
1327
+ }, d = (m) => i && o ? i(o, m) : m, f = () => {
1328
+ r !== _t && a(d(s) || s);
1329
+ }, p = function() {
1330
+ const _ = ce(arguments), h = kt(c) ? c() : c;
1331
+ if (te(h) && h >= 0) {
1332
+ const x = kt(l) ? l() : l, u = te(x) && x >= 0, g = h > 0 ? Fe : Io, D = h > 0 ? wn : Co, E = d(_) || _, N = a.bind(0, E);
1333
+ r();
1334
+ const z = g(N, h);
1335
+ r = () => D(z), u && !e && (e = Fe(f, x)), o = s = E;
1336
+ } else
1337
+ a(_);
1338
+ };
1339
+ return p.m = f, p;
1340
+ }, Ks = {
1341
+ opacity: 1,
1342
+ zindex: 1
1343
+ }, Ie = (t, n) => {
1344
+ const e = n ? parseFloat(t) : parseInt(t, 10);
1345
+ return e === e ? e : 0;
1346
+ }, Js = (t, n) => !Ks[t.toLowerCase()] && te(n) ? `${n}px` : n, Kn = (t, n, e) => n != null ? n[e] || n.getPropertyValue(e) : t.style[e], Gs = (t, n, e) => {
1347
+ try {
1348
+ const { style: o } = t;
1349
+ Zt(o[n]) ? o.setProperty(n, e) : o[n] = Js(n, e);
1350
+ } catch {
1351
+ }
1352
+ }, $e = (t) => ft(t, "direction") === "rtl", Jn = (t, n, e) => {
1353
+ const o = n ? `${n}-` : "", s = e ? `-${e}` : "", r = `${o}top${s}`, c = `${o}right${s}`, l = `${o}bottom${s}`, i = `${o}left${s}`, a = ft(t, [r, c, l, i]);
1354
+ return {
1355
+ t: Ie(a[r], !0),
1356
+ r: Ie(a[c], !0),
1357
+ b: Ie(a[l], !0),
1358
+ l: Ie(a[i], !0)
1359
+ };
1360
+ }, { round: Gn } = Math, Pn = {
1361
+ w: 0,
1362
+ h: 0
1363
+ }, _e = (t) => t ? {
1364
+ w: t.offsetWidth,
1365
+ h: t.offsetHeight
1366
+ } : Pn, He = (t) => t ? {
1367
+ w: t.clientWidth,
1368
+ h: t.clientHeight
1369
+ } : Pn, We = (t) => t ? {
1370
+ w: t.scrollWidth,
1371
+ h: t.scrollHeight
1372
+ } : Pn, Ve = (t) => {
1373
+ const n = parseFloat(ft(t, "height")) || 0, e = parseFloat(ft(t, "width")) || 0;
1374
+ return {
1375
+ w: e - Gn(e),
1376
+ h: n - Gn(n)
1377
+ };
1378
+ }, Ot = (t) => t.getBoundingClientRect();
1379
+ let ke;
1380
+ const Qs = () => {
1381
+ if (Zt(ke)) {
1382
+ ke = !1;
1383
+ try {
1384
+ window.addEventListener("test", null, Object.defineProperty({}, "passive", {
1385
+ get() {
1386
+ ke = !0;
1387
+ }
1388
+ }));
1389
+ } catch {
1390
+ }
1391
+ }
1392
+ return ke;
1393
+ }, Eo = (t) => t.split(" "), tr = (t, n, e, o) => {
1394
+ X(Eo(n), (s) => {
1395
+ t.removeEventListener(s, e, o);
1396
+ });
1397
+ }, it = (t, n, e, o) => {
1398
+ var s;
1399
+ const r = Qs(), c = (s = r && o && o.S) != null ? s : r, l = o && o.$ || !1, i = o && o.C || !1, a = [], d = r ? {
1400
+ passive: c,
1401
+ capture: l
1402
+ } : l;
1403
+ return X(Eo(n), (f) => {
1404
+ const p = i ? (m) => {
1405
+ t.removeEventListener(f, p, l), e && e(m);
1406
+ } : e;
1407
+ Z(a, tr.bind(null, t, f, p, l)), t.addEventListener(f, p, d);
1408
+ }), Ht.bind(0, a);
1409
+ }, No = (t) => t.stopPropagation(), Oo = (t) => t.preventDefault(), er = {
1410
+ x: 0,
1411
+ y: 0
1412
+ }, an = (t) => {
1413
+ const n = t ? Ot(t) : 0;
1414
+ return n ? {
1415
+ x: n.left + window.pageYOffset,
1416
+ y: n.top + window.pageXOffset
1417
+ } : er;
1418
+ }, Qn = (t, n) => {
1419
+ X(Lt(n) ? n : [n], t);
1420
+ }, Mn = (t) => {
1421
+ const n = /* @__PURE__ */ new Map(), e = (r, c) => {
1422
+ if (r) {
1423
+ const l = n.get(r);
1424
+ Qn((i) => {
1425
+ l && l[i ? "delete" : "clear"](i);
1426
+ }, c);
1427
+ } else
1428
+ n.forEach((l) => {
1429
+ l.clear();
1430
+ }), n.clear();
1431
+ }, o = (r, c) => {
1432
+ if (ee(r)) {
1433
+ const a = n.get(r) || /* @__PURE__ */ new Set();
1434
+ return n.set(r, a), Qn((d) => {
1435
+ kt(d) && a.add(d);
1436
+ }, c), e.bind(0, r, c);
1437
+ }
1438
+ Ln(c) && c && e();
1439
+ const l = St(r), i = [];
1440
+ return X(l, (a) => {
1441
+ const d = r[a];
1442
+ d && Z(i, o(a, d));
1443
+ }), Ht.bind(0, i);
1444
+ }, s = (r, c) => {
1445
+ const l = n.get(r);
1446
+ X(ce(l), (i) => {
1447
+ c && !En(c) ? i.apply(0, c) : i();
1448
+ });
1449
+ };
1450
+ return o(t || {}), [o, e, s];
1451
+ }, to = (t) => JSON.stringify(t, (n, e) => {
1452
+ if (kt(e))
1453
+ throw new Error();
1454
+ return e;
1455
+ }), nr = {
1456
+ paddingAbsolute: !1,
1457
+ showNativeOverlaidScrollbars: !1,
1458
+ update: {
1459
+ elementEvents: [["img", "load"]],
1460
+ debounce: [0, 33],
1461
+ attributes: null,
1462
+ ignoreMutation: null
1463
+ },
1464
+ overflow: {
1465
+ x: "scroll",
1466
+ y: "scroll"
1467
+ },
1468
+ scrollbars: {
1469
+ theme: "os-theme-dark",
1470
+ visibility: "auto",
1471
+ autoHide: "never",
1472
+ autoHideDelay: 1300,
1473
+ dragScroll: !0,
1474
+ clickScroll: !1,
1475
+ pointers: ["mouse", "touch", "pen"]
1476
+ }
1477
+ }, zo = (t, n) => {
1478
+ const e = {}, o = St(n).concat(St(t));
1479
+ return X(o, (s) => {
1480
+ const r = t[s], c = n[s];
1481
+ if (xe(r) && xe(c))
1482
+ G(e[s] = {}, zo(r, c)), Nn(e[s]) && delete e[s];
1483
+ else if (Ye(n, s) && c !== r) {
1484
+ let l = !0;
1485
+ if (Lt(r) || Lt(c))
1486
+ try {
1487
+ to(r) === to(c) && (l = !1);
1488
+ } catch {
1489
+ }
1490
+ l && (e[s] = c);
1491
+ }
1492
+ }), e;
1493
+ }, Ho = "os-environment", Ao = `${Ho}-flexbox-glue`, or = `${Ao}-max`, Po = "os-scrollbar-hidden", ln = "data-overlayscrollbars-initialize", Ct = "data-overlayscrollbars", Mo = `${Ct}-overflow-x`, Fo = `${Ct}-overflow-y`, ge = "overflowVisible", sr = "scrollbarHidden", eo = "scrollbarPressed", Re = "updating", Kt = "data-overlayscrollbars-viewport", dn = "arrange", Wo = "scrollbarHidden", he = ge, Sn = "data-overlayscrollbars-padding", rr = he, no = "data-overlayscrollbars-content", Fn = "os-size-observer", ir = `${Fn}-appear`, cr = `${Fn}-listener`, ar = "os-trinsic-observer", lr = "os-no-css-vars", dr = "os-theme-none", ht = "os-scrollbar", ur = `${ht}-rtl`, fr = `${ht}-horizontal`, pr = `${ht}-vertical`, Vo = `${ht}-track`, Wn = `${ht}-handle`, mr = `${ht}-visible`, gr = `${ht}-cornerless`, oo = `${ht}-transitionless`, so = `${ht}-interaction`, ro = `${ht}-unusable`, io = `${ht}-auto-hidden`, co = `${ht}-wheel`, hr = `${Vo}-interactive`, vr = `${Wn}-interactive`, Ro = {}, ae = () => Ro, yr = (t) => {
1494
+ const n = [];
1495
+ return X(Lt(t) ? t : [t], (e) => {
1496
+ const o = St(e);
1497
+ X(o, (s) => {
1498
+ Z(n, Ro[s] = e[s]);
1499
+ });
1500
+ }), n;
1501
+ }, br = "__osOptionsValidationPlugin", wr = "__osSizeObserverPlugin", Vn = "__osScrollbarsHidingPlugin", Sr = "__osClickScrollPlugin";
1502
+ let un;
1503
+ const ao = (t, n, e, o) => {
1504
+ Dt(t, n);
1505
+ const s = He(n), r = _e(n), c = Ve(e);
1506
+ return o && zt(n), {
1507
+ x: r.h - s.h + c.h,
1508
+ y: r.w - s.w + c.w
1509
+ };
1510
+ }, xr = (t) => {
1511
+ let n = !1;
1512
+ const e = qt(t, Po);
1513
+ try {
1514
+ n = ft(t, Us("scrollbar-width")) === "none" || window.getComputedStyle(t, "::-webkit-scrollbar").getPropertyValue("display") === "none";
1515
+ } catch {
1516
+ }
1517
+ return e(), n;
1518
+ }, $r = (t, n) => {
1519
+ const e = "hidden";
1520
+ ft(t, {
1521
+ overflowX: e,
1522
+ overflowY: e,
1523
+ direction: "rtl"
1524
+ }), It(t, 0);
1525
+ const o = an(t), s = an(n);
1526
+ It(t, -999);
1527
+ const r = an(n);
1528
+ return {
1529
+ i: o.x === s.x,
1530
+ n: s.x !== r.x
1531
+ };
1532
+ }, _r = (t, n) => {
1533
+ const e = qt(t, Ao), o = Ot(t), s = Ot(n), r = jn(s, o, !0), c = qt(t, or), l = Ot(t), i = Ot(n), a = jn(i, l, !0);
1534
+ return e(), c(), r && a;
1535
+ }, Dr = () => {
1536
+ const { body: t } = document, e = To(`<div class="${Ho}"><div></div></div>`)[0], o = e.firstChild, [s, , r] = Mn(), [c, l] = Tt({
1537
+ o: ao(t, e, o),
1538
+ u: Bo
1539
+ }, ao.bind(0, t, e, o, !0)), [i] = l(), a = xr(e), d = {
1540
+ x: i.x === 0,
1541
+ y: i.y === 0
1542
+ }, f = {
1543
+ elements: {
1544
+ host: null,
1545
+ padding: !a,
1546
+ viewport: (u) => a && u === u.ownerDocument.body && u,
1547
+ content: !1
1548
+ },
1549
+ scrollbars: {
1550
+ slot: !0
1551
+ },
1552
+ cancel: {
1553
+ nativeScrollbarsOverlaid: !1,
1554
+ body: null
1555
+ }
1556
+ }, p = G({}, nr), m = G.bind(0, {}, p), _ = G.bind(0, {}, f), h = {
1557
+ k: i,
1558
+ A: d,
1559
+ I: a,
1560
+ L: ft(e, "zIndex") === "-1",
1561
+ B: $r(e, o),
1562
+ V: _r(e, o),
1563
+ Y: s.bind(0, "z"),
1564
+ j: s.bind(0, "r"),
1565
+ N: _,
1566
+ q: (u) => G(f, u) && _(),
1567
+ F: m,
1568
+ G: (u) => G(p, u) && m(),
1569
+ X: G({}, f),
1570
+ U: G({}, p)
1571
+ }, b = window.addEventListener, x = An((u) => r(u ? "z" : "r"), {
1572
+ v: 33,
1573
+ g: 99
1574
+ });
1575
+ if (gt(e, "style"), zt(e), b("resize", x.bind(0, !1)), !a && (!d.x || !d.y)) {
1576
+ let u;
1577
+ b("resize", () => {
1578
+ const g = ae()[Vn];
1579
+ u = u || g && g.R(), u && u(h, c, x.bind(0, !0));
1580
+ });
1581
+ }
1582
+ return h;
1583
+ }, vt = () => (un || (un = Dr()), un), Rn = (t, n) => kt(n) ? n.apply(0, t) : n, Tr = (t, n, e, o) => {
1584
+ const s = Zt(o) ? e : o;
1585
+ return Rn(t, s) || n.apply(0, t);
1586
+ }, Xo = (t, n, e, o) => {
1587
+ const s = Zt(o) ? e : o, r = Rn(t, s);
1588
+ return !!r && (Pe(r) ? r : n.apply(0, t));
1589
+ }, Cr = (t, n, e) => {
1590
+ const { nativeScrollbarsOverlaid: o, body: s } = e || {}, { A: r, I: c } = vt(), { nativeScrollbarsOverlaid: l, body: i } = n, a = o ?? l, d = Zt(s) ? i : s, f = (r.x || r.y) && a, p = t && (Xe(d) ? !c : d);
1591
+ return !!f || !!p;
1592
+ }, Xn = /* @__PURE__ */ new WeakMap(), Ir = (t, n) => {
1593
+ Xn.set(t, n);
1594
+ }, kr = (t) => {
1595
+ Xn.delete(t);
1596
+ }, qo = (t) => Xn.get(t), lo = (t, n) => t ? n.split(".").reduce((e, o) => e && Ye(e, o) ? e[o] : void 0, t) : void 0, xn = (t, n, e) => (o) => [lo(t, o), e || lo(n, o) !== void 0], Uo = (t) => {
1597
+ let n = t;
1598
+ return [() => n, (e) => {
1599
+ n = G({}, n, e);
1600
+ }];
1601
+ }, Le = "tabindex", Be = ie.bind(0, ""), fn = (t) => {
1602
+ Dt(Yt(t), On(t)), zt(t);
1603
+ }, Lr = (t) => {
1604
+ const n = vt(), { N: e, I: o } = n, s = ae()[Vn], r = s && s.T, { elements: c } = e(), { host: l, padding: i, viewport: a, content: d } = c, f = Pe(t), p = f ? {} : t, { elements: m } = p, { host: _, padding: h, viewport: b, content: x } = m || {}, u = f ? t : p.target, g = Me(u, "textarea"), D = u.ownerDocument, w = D.documentElement, E = u === D.body, N = D.defaultView, z = Tr.bind(0, [u]), O = Xo.bind(0, [u]), K = Rn.bind(0, [u]), U = z.bind(0, Be, a), H = O.bind(0, Be, d), S = U(b), v = S === u, C = v && E, y = !v && H(x), $ = !v && Pe(S) && S === y, I = $ && !!K(d), T = I ? U() : S, k = I ? y : H(), M = C ? w : $ ? T : S, F = g ? z(Be, l, _) : u, W = C ? M : F, j = $ ? k : y, R = D.activeElement, q = !v && N.top === N && R === u, V = {
1605
+ W: u,
1606
+ Z: W,
1607
+ J: M,
1608
+ K: !v && O(Be, i, h),
1609
+ tt: j,
1610
+ nt: !v && !o && r && r(n),
1611
+ ot: C ? w : M,
1612
+ st: C ? D : M,
1613
+ et: N,
1614
+ ct: D,
1615
+ rt: g,
1616
+ it: E,
1617
+ lt: f,
1618
+ ut: v,
1619
+ dt: $,
1620
+ ft: (rt, bt) => Ms(M, v ? Ct : Kt, v ? bt : rt),
1621
+ _t: (rt, bt, mt) => re(M, v ? Ct : Kt, v ? bt : rt, mt)
1622
+ }, J = St(V).reduce((rt, bt) => {
1623
+ const mt = V[bt];
1624
+ return Z(rt, mt && !Yt(mt) ? mt : !1);
1625
+ }, []), Q = (rt) => rt ? Bn(J, rt) > -1 : null, { W: ct, Z: at, K: nt, J: Y, tt, nt: xt } = V, yt = [() => {
1626
+ gt(at, Ct), gt(at, ln), gt(ct, ln), E && (gt(w, Ct), gt(w, ln));
1627
+ }], jt = g && Q(at);
1628
+ let ne = g ? ct : On([tt, Y, nt, at, ct].find((rt) => Q(rt) === !1));
1629
+ const le = C ? ct : tt || Y;
1630
+ return [V, () => {
1631
+ ut(at, Ct, v ? "viewport" : "host"), ut(nt, Sn, ""), ut(tt, no, ""), v || ut(Y, Kt, "");
1632
+ const rt = E && !v ? qt(Yt(u), Po) : _t;
1633
+ if (jt && (Yn(ct, at), Z(yt, () => {
1634
+ Yn(at, ct), zt(at);
1635
+ })), Dt(le, ne), Dt(at, nt), Dt(nt || at, !v && Y), Dt(Y, tt), Z(yt, () => {
1636
+ rt(), gt(nt, Sn), gt(tt, no), gt(Y, Mo), gt(Y, Fo), gt(Y, Kt), Q(tt) && fn(tt), Q(Y) && fn(Y), Q(nt) && fn(nt);
1637
+ }), o && !v && (re(Y, Kt, Wo, !0), Z(yt, gt.bind(0, Y, Kt))), xt && (Vs(Y, xt), Z(yt, zt.bind(0, xt))), q) {
1638
+ const bt = ut(Y, Le);
1639
+ ut(Y, Le, "-1"), Y.focus();
1640
+ const mt = () => bt ? ut(Y, Le, bt) : gt(Y, Le), At = it(D, "pointerdown keydown", () => {
1641
+ mt(), At();
1642
+ });
1643
+ Z(yt, [mt, At]);
1644
+ } else
1645
+ R && R.focus && R.focus();
1646
+ ne = 0;
1647
+ }, Ht.bind(0, yt)];
1648
+ }, Br = (t, n) => {
1649
+ const { tt: e } = t, [o] = n;
1650
+ return (s) => {
1651
+ const { V: r } = vt(), { ht: c } = o(), { vt: l } = s, i = (e || !r) && l;
1652
+ return i && ft(e, {
1653
+ height: c ? "" : "100%"
1654
+ }), {
1655
+ gt: i,
1656
+ wt: i
1657
+ };
1658
+ };
1659
+ }, Er = (t, n) => {
1660
+ const [e, o] = n, { Z: s, K: r, J: c, ut: l } = t, [i, a] = Tt({
1661
+ u: js,
1662
+ o: Jn()
1663
+ }, Jn.bind(0, s, "padding", ""));
1664
+ return (d, f, p) => {
1665
+ let [m, _] = a(p);
1666
+ const { I: h, V: b } = vt(), { bt: x } = e(), { gt: u, wt: g, yt: D } = d, [w, E] = f("paddingAbsolute");
1667
+ (u || _ || !b && g) && ([m, _] = i(p));
1668
+ const z = !l && (E || D || _);
1669
+ if (z) {
1670
+ const O = !w || !r && !h, K = m.r + m.l, U = m.t + m.b, H = {
1671
+ marginRight: O && !x ? -K : 0,
1672
+ marginBottom: O ? -U : 0,
1673
+ marginLeft: O && x ? -K : 0,
1674
+ top: O ? -m.t : 0,
1675
+ right: O ? x ? -m.r : "auto" : 0,
1676
+ left: O ? x ? "auto" : -m.l : 0,
1677
+ width: O ? `calc(100% + ${K}px)` : ""
1678
+ }, S = {
1679
+ paddingTop: O ? m.t : 0,
1680
+ paddingRight: O ? m.r : 0,
1681
+ paddingBottom: O ? m.b : 0,
1682
+ paddingLeft: O ? m.l : 0
1683
+ };
1684
+ ft(r || c, H), ft(c, S), o({
1685
+ K: m,
1686
+ St: !O,
1687
+ P: r ? S : G({}, H, S)
1688
+ });
1689
+ }
1690
+ return {
1691
+ xt: z
1692
+ };
1693
+ };
1694
+ }, { max: $n } = Math, Jt = $n.bind(0, 0), Yo = "visible", uo = "hidden", Nr = 42, Ee = {
1695
+ u: Lo,
1696
+ o: {
1697
+ w: 0,
1698
+ h: 0
1699
+ }
1700
+ }, Or = {
1701
+ u: Bo,
1702
+ o: {
1703
+ x: uo,
1704
+ y: uo
1705
+ }
1706
+ }, zr = (t, n) => {
1707
+ const e = window.devicePixelRatio % 1 !== 0 ? 1 : 0, o = {
1708
+ w: Jt(t.w - n.w),
1709
+ h: Jt(t.h - n.h)
1710
+ };
1711
+ return {
1712
+ w: o.w > e ? o.w : 0,
1713
+ h: o.h > e ? o.h : 0
1714
+ };
1715
+ }, Ne = (t) => t.indexOf(Yo) === 0, Hr = (t, n) => {
1716
+ const [e, o] = n, { Z: s, K: r, J: c, nt: l, ut: i, _t: a, it: d, et: f } = t, { k: p, V: m, I: _, A: h } = vt(), b = ae()[Vn], x = !i && !_ && (h.x || h.y), u = d && i, [g, D] = Tt(Ee, Ve.bind(0, c)), [w, E] = Tt(Ee, We.bind(0, c)), [N, z] = Tt(Ee), [O, K] = Tt(Ee), [U] = Tt(Or), H = (I, T) => {
1717
+ if (ft(c, {
1718
+ height: ""
1719
+ }), T) {
1720
+ const { St: k, K: B } = e(), { $t: M, D: F } = I, W = Ve(s), j = He(s), R = ft(c, "boxSizing") === "content-box", q = k || R ? B.b + B.t : 0, V = !(h.x && R);
1721
+ ft(c, {
1722
+ height: j.h + W.h + (M.x && V ? F.x : 0) - q
1723
+ });
1724
+ }
1725
+ }, S = (I, T) => {
1726
+ const k = !_ && !I ? Nr : 0, B = (Q, ct, at) => {
1727
+ const nt = ft(c, Q), tt = (T ? T[Q] : nt) === "scroll";
1728
+ return [nt, tt, tt && !_ ? ct ? k : at : 0, ct && !!k];
1729
+ }, [M, F, W, j] = B("overflowX", h.x, p.x), [R, q, V, J] = B("overflowY", h.y, p.y);
1730
+ return {
1731
+ Ct: {
1732
+ x: M,
1733
+ y: R
1734
+ },
1735
+ $t: {
1736
+ x: F,
1737
+ y: q
1738
+ },
1739
+ D: {
1740
+ x: W,
1741
+ y: V
1742
+ },
1743
+ M: {
1744
+ x: j,
1745
+ y: J
1746
+ }
1747
+ };
1748
+ }, v = (I, T, k, B) => {
1749
+ const M = (q, V) => {
1750
+ const J = Ne(q), Q = V && J && q.replace(`${Yo}-`, "") || "";
1751
+ return [V && !J ? q : "", Ne(Q) ? "hidden" : Q];
1752
+ }, [F, W] = M(k.x, T.x), [j, R] = M(k.y, T.y);
1753
+ return B.overflowX = W && j ? W : F, B.overflowY = R && F ? R : j, S(I, B);
1754
+ }, C = (I, T, k, B) => {
1755
+ const { D: M, M: F } = I, { x: W, y: j } = F, { x: R, y: q } = M, { P: V } = e(), J = T ? "marginLeft" : "marginRight", Q = T ? "paddingLeft" : "paddingRight", ct = V[J], at = V.marginBottom, nt = V[Q], Y = V.paddingBottom;
1756
+ B.width = `calc(100% + ${q + -1 * ct}px)`, B[J] = -q + ct, B.marginBottom = -R + at, k && (B[Q] = nt + (j ? q : 0), B.paddingBottom = Y + (W ? R : 0));
1757
+ }, [y, $] = b ? b.H(x, m, c, l, e, S, C) : [() => x, () => [_t]];
1758
+ return (I, T, k) => {
1759
+ const { gt: B, Ot: M, wt: F, xt: W, vt: j, yt: R } = I, { ht: q, bt: V } = e(), [J, Q] = T("showNativeOverlaidScrollbars"), [ct, at] = T("overflow"), nt = J && h.x && h.y, Y = !i && !m && (B || F || M || Q || j), tt = Ne(ct.x), xt = Ne(ct.y), yt = tt || xt;
1760
+ let jt = D(k), ne = E(k), le = z(k), ve = K(k), rt;
1761
+ if (Q && _ && a(Wo, sr, !nt), Y && (rt = S(nt), H(rt, q)), B || W || F || R || Q) {
1762
+ yt && a(he, ge, !1);
1763
+ const [Pt, Mt] = $(nt, V, rt), [$t, ye] = jt = g(k), [Et, Jo] = ne = w(k), en = He(c);
1764
+ let nn = Et, on = en;
1765
+ Pt(), (Jo || ye || Q) && Mt && !nt && y(Mt, Et, $t, V) && (on = He(c), nn = We(c));
1766
+ const Go = {
1767
+ w: Jt($n(Et.w, nn.w) + $t.w),
1768
+ h: Jt($n(Et.h, nn.h) + $t.h)
1769
+ }, qn = {
1770
+ w: Jt((u ? f.innerWidth : on.w + Jt(en.w - Et.w)) + $t.w),
1771
+ h: Jt((u ? f.innerHeight + $t.h : on.h + Jt(en.h - Et.h)) + $t.h)
1772
+ };
1773
+ ve = O(qn), le = N(zr(Go, qn), k);
1774
+ }
1775
+ const [bt, mt] = ve, [At, de] = le, [je, Ke] = ne, [Je, Ge] = jt, Bt = {
1776
+ x: At.w > 0,
1777
+ y: At.h > 0
1778
+ }, Ce = tt && xt && (Bt.x || Bt.y) || tt && Bt.x && !Bt.y || xt && Bt.y && !Bt.x;
1779
+ if (W || R || Ge || Ke || mt || de || at || Q || Y) {
1780
+ const Pt = {
1781
+ marginRight: 0,
1782
+ marginBottom: 0,
1783
+ marginLeft: 0,
1784
+ width: "",
1785
+ overflowY: "",
1786
+ overflowX: ""
1787
+ }, Mt = v(nt, Bt, ct, Pt), $t = y(Mt, je, Je, V);
1788
+ i || C(Mt, V, $t, Pt), Y && H(Mt, q), i ? (ut(s, Mo, Pt.overflowX), ut(s, Fo, Pt.overflowY)) : ft(c, Pt);
1789
+ }
1790
+ re(s, Ct, ge, Ce), re(r, Sn, rr, Ce), i || re(c, Kt, he, yt);
1791
+ const [Qe, tn] = U(S(nt).Ct);
1792
+ return o({
1793
+ Ct: Qe,
1794
+ zt: {
1795
+ x: bt.w,
1796
+ y: bt.h
1797
+ },
1798
+ Tt: {
1799
+ x: At.w,
1800
+ y: At.h
1801
+ },
1802
+ Et: Bt
1803
+ }), {
1804
+ It: tn,
1805
+ At: mt,
1806
+ Lt: de
1807
+ };
1808
+ };
1809
+ }, fo = (t, n, e) => {
1810
+ const o = {}, s = n || {}, r = St(t).concat(St(s));
1811
+ return X(r, (c) => {
1812
+ const l = t[c], i = s[c];
1813
+ o[c] = !!(e || l || i);
1814
+ }), o;
1815
+ }, Ar = (t, n) => {
1816
+ const { W: e, J: o, _t: s, ut: r } = t, { I: c, A: l, V: i } = vt(), a = !c && (l.x || l.y), d = [Br(t, n), Er(t, n), Hr(t, n)];
1817
+ return (f, p, m) => {
1818
+ const _ = fo(G({
1819
+ gt: !1,
1820
+ xt: !1,
1821
+ yt: !1,
1822
+ vt: !1,
1823
+ At: !1,
1824
+ Lt: !1,
1825
+ It: !1,
1826
+ Ot: !1,
1827
+ wt: !1
1828
+ }, p), {}, m), h = a || !i, b = h && It(o), x = h && Xt(o);
1829
+ s("", Re, !0);
1830
+ let u = _;
1831
+ return X(d, (g) => {
1832
+ u = fo(u, g(u, f, !!m) || {}, m);
1833
+ }), It(o, b), Xt(o, x), s("", Re), r || (It(e, 0), Xt(e, 0)), u;
1834
+ };
1835
+ }, Pr = (t, n, e) => {
1836
+ let o, s = !1;
1837
+ const r = () => {
1838
+ s = !0;
1839
+ }, c = (l) => {
1840
+ if (e) {
1841
+ const i = e.reduce((a, d) => {
1842
+ if (d) {
1843
+ const [f, p] = d, m = p && f && (l ? l(f) : Do(f, t));
1844
+ m && m.length && p && ee(p) && Z(a, [m, p.trim()], !0);
1845
+ }
1846
+ return a;
1847
+ }, []);
1848
+ X(i, (a) => X(a[0], (d) => {
1849
+ const f = a[1], p = o.get(d) || [];
1850
+ if (t.contains(d)) {
1851
+ const _ = it(d, f, (h) => {
1852
+ s ? (_(), o.delete(d)) : n(h);
1853
+ });
1854
+ o.set(d, Z(p, _));
1855
+ } else
1856
+ Ht(p), o.delete(d);
1857
+ }));
1858
+ }
1859
+ };
1860
+ return e && (o = /* @__PURE__ */ new WeakMap(), c()), [r, c];
1861
+ }, po = (t, n, e, o) => {
1862
+ let s = !1;
1863
+ const { Ht: r, Pt: c, Dt: l, Mt: i, Rt: a, kt: d } = o || {}, f = An(() => {
1864
+ s && e(!0);
1865
+ }, {
1866
+ v: 33,
1867
+ g: 99
1868
+ }), [p, m] = Pr(t, f, l), _ = r || [], h = c || [], b = _.concat(h), x = (g, D) => {
1869
+ const w = a || _t, E = d || _t, N = /* @__PURE__ */ new Set(), z = /* @__PURE__ */ new Set();
1870
+ let O = !1, K = !1;
1871
+ if (X(g, (U) => {
1872
+ const { attributeName: H, target: S, type: v, oldValue: C, addedNodes: y, removedNodes: $ } = U, I = v === "attributes", T = v === "childList", k = t === S, B = I && ee(H) ? ut(S, H) : 0, M = B !== 0 && C !== B, F = Bn(h, H) > -1 && M;
1873
+ if (n && (T || !k)) {
1874
+ const W = !I, j = I && M, R = j && i && Me(S, i), V = (R ? !w(S, H, C, B) : W || j) && !E(U, !!R, t, o);
1875
+ X(y, (J) => N.add(J)), X($, (J) => N.add(J)), K = K || V;
1876
+ }
1877
+ !n && k && M && !w(S, H, C, B) && (z.add(H), O = O || F);
1878
+ }), N.size > 0 && m((U) => ce(N).reduce((H, S) => (Z(H, Do(U, S)), Me(S, U) ? Z(H, S) : H), [])), n)
1879
+ return !D && K && e(!1), [!1];
1880
+ if (z.size > 0 || O) {
1881
+ const U = [ce(z), O];
1882
+ return !D && e.apply(0, U), U;
1883
+ }
1884
+ }, u = new Ys((g) => x(g));
1885
+ return u.observe(t, {
1886
+ attributes: !0,
1887
+ attributeOldValue: !0,
1888
+ attributeFilter: b,
1889
+ subtree: n,
1890
+ childList: n,
1891
+ characterData: n
1892
+ }), s = !0, [() => {
1893
+ s && (p(), u.disconnect(), s = !1);
1894
+ }, () => {
1895
+ if (s) {
1896
+ f.m();
1897
+ const g = u.takeRecords();
1898
+ return !En(g) && x(g, !0);
1899
+ }
1900
+ }];
1901
+ }, Oe = 3333333, ze = (t) => t && (t.height || t.width), Zo = (t, n, e) => {
1902
+ const { Bt: o = !1, Vt: s = !1 } = e || {}, r = ae()[wr], { B: c } = vt(), i = To(`<div class="${Fn}"><div class="${cr}"></div></div>`)[0], a = i.firstChild, d = $e.bind(0, t), [f] = Tt({
1903
+ o: void 0,
1904
+ _: !0,
1905
+ u: (h, b) => !(!h || !ze(h) && ze(b))
1906
+ }), p = (h) => {
1907
+ const b = Lt(h) && h.length > 0 && xe(h[0]), x = !b && Ln(h[0]);
1908
+ let u = !1, g = !1, D = !0;
1909
+ if (b) {
1910
+ const [w, , E] = f(h.pop().contentRect), N = ze(w), z = ze(E);
1911
+ u = !E || !N, g = !z && N, D = !u;
1912
+ } else
1913
+ x ? [, D] = h : g = h === !0;
1914
+ if (o && D) {
1915
+ const w = x ? h[0] : $e(i);
1916
+ It(i, w ? c.n ? -Oe : c.i ? 0 : Oe : Oe), Xt(i, Oe);
1917
+ }
1918
+ u || n({
1919
+ gt: !x,
1920
+ Yt: x ? h : void 0,
1921
+ Vt: !!g
1922
+ });
1923
+ }, m = [];
1924
+ let _ = s ? p : !1;
1925
+ return [() => {
1926
+ Ht(m), zt(i);
1927
+ }, () => {
1928
+ if (me) {
1929
+ const h = new me(p);
1930
+ h.observe(a), Z(m, () => {
1931
+ h.disconnect();
1932
+ });
1933
+ } else if (r) {
1934
+ const [h, b] = r.O(a, p, s);
1935
+ _ = h, Z(m, b);
1936
+ }
1937
+ if (o) {
1938
+ const [h] = Tt({
1939
+ o: void 0
1940
+ }, d);
1941
+ Z(m, it(i, "scroll", (b) => {
1942
+ const x = h(), [u, g, D] = x;
1943
+ g && (Hn(a, "ltr rtl"), u ? qt(a, "rtl") : qt(a, "ltr"), p([!!u, g, D])), No(b);
1944
+ }));
1945
+ }
1946
+ _ && (qt(i, ir), Z(m, it(i, "animationstart", _, {
1947
+ C: !!me
1948
+ }))), (me || r) && Dt(t, i);
1949
+ }];
1950
+ }, Mr = (t) => t.h === 0 || t.isIntersecting || t.intersectionRatio > 0, Fr = (t, n) => {
1951
+ let e;
1952
+ const o = ie(ar), s = [], [r] = Tt({
1953
+ o: !1
1954
+ }), c = (i, a) => {
1955
+ if (i) {
1956
+ const d = r(Mr(i)), [, f] = d;
1957
+ if (f)
1958
+ return !a && n(d), [d];
1959
+ }
1960
+ }, l = (i, a) => {
1961
+ if (i && i.length > 0)
1962
+ return c(i.pop(), a);
1963
+ };
1964
+ return [() => {
1965
+ Ht(s), zt(o);
1966
+ }, () => {
1967
+ if (Zn)
1968
+ e = new Zn((i) => l(i), {
1969
+ root: t
1970
+ }), e.observe(o), Z(s, () => {
1971
+ e.disconnect();
1972
+ });
1973
+ else {
1974
+ const i = () => {
1975
+ const f = _e(o);
1976
+ c(f);
1977
+ }, [a, d] = Zo(o, i);
1978
+ Z(s, a), d(), i();
1979
+ }
1980
+ Dt(t, o);
1981
+ }, () => {
1982
+ if (e)
1983
+ return l(e.takeRecords(), !0);
1984
+ }];
1985
+ }, mo = `[${Ct}]`, Wr = `[${Kt}]`, pn = ["tabindex"], go = ["wrap", "cols", "rows"], mn = ["id", "class", "style", "open"], Vr = (t, n, e) => {
1986
+ let o, s, r;
1987
+ const { Z: c, J: l, tt: i, rt: a, ut: d, ft: f, _t: p } = t, { V: m } = vt(), [_] = Tt({
1988
+ u: Lo,
1989
+ o: {
1990
+ w: 0,
1991
+ h: 0
1992
+ }
1993
+ }, () => {
1994
+ const v = f(he, ge), C = f(dn, ""), y = C && It(l), $ = C && Xt(l);
1995
+ p(he, ge), p(dn, ""), p("", Re, !0);
1996
+ const I = We(i), T = We(l), k = Ve(l);
1997
+ return p(he, ge, v), p(dn, "", C), p("", Re), It(l, y), Xt(l, $), {
1998
+ w: T.w + I.w + k.w,
1999
+ h: T.h + I.h + k.h
2000
+ };
2001
+ }), h = a ? go : mn.concat(go), b = An(e, {
2002
+ v: () => o,
2003
+ g: () => s,
2004
+ p(v, C) {
2005
+ const [y] = v, [$] = C;
2006
+ return [St(y).concat(St($)).reduce((I, T) => (I[T] = y[T] || $[T], I), {})];
2007
+ }
2008
+ }), x = (v) => {
2009
+ X(v || pn, (C) => {
2010
+ if (Bn(pn, C) > -1) {
2011
+ const y = ut(c, C);
2012
+ ee(y) ? ut(l, C, y) : gt(l, C);
2013
+ }
2014
+ });
2015
+ }, u = (v, C) => {
2016
+ const [y, $] = v, I = {
2017
+ vt: $
2018
+ };
2019
+ return n({
2020
+ ht: y
2021
+ }), !C && e(I), I;
2022
+ }, g = ({ gt: v, Yt: C, Vt: y }) => {
2023
+ const $ = !v || y ? e : b;
2024
+ let I = !1;
2025
+ if (C) {
2026
+ const [T, k] = C;
2027
+ I = k, n({
2028
+ bt: T
2029
+ });
2030
+ }
2031
+ $({
2032
+ gt: v,
2033
+ yt: I
2034
+ });
2035
+ }, D = (v, C) => {
2036
+ const [, y] = _(), $ = {
2037
+ wt: y
2038
+ };
2039
+ return y && !C && (v ? e : b)($), $;
2040
+ }, w = (v, C, y) => {
2041
+ const $ = {
2042
+ Ot: C
2043
+ };
2044
+ return C ? !y && b($) : d || x(v), $;
2045
+ }, [E, N, z] = i || !m ? Fr(c, u) : [_t, _t, _t], [O, K] = d ? [_t, _t] : Zo(c, g, {
2046
+ Vt: !0,
2047
+ Bt: !0
2048
+ }), [U, H] = po(c, !1, w, {
2049
+ Pt: mn,
2050
+ Ht: mn.concat(pn)
2051
+ }), S = d && me && new me(g.bind(0, {
2052
+ gt: !0
2053
+ }));
2054
+ return S && S.observe(c), x(), [() => {
2055
+ E(), O(), r && r[0](), S && S.disconnect(), U();
2056
+ }, () => {
2057
+ K(), N();
2058
+ }, () => {
2059
+ const v = {}, C = H(), y = z(), $ = r && r[1]();
2060
+ return C && G(v, w.apply(0, Z(C, !0))), y && G(v, u.apply(0, Z(y, !0))), $ && G(v, D.apply(0, Z($, !0))), v;
2061
+ }, (v) => {
2062
+ const [C] = v("update.ignoreMutation"), [y, $] = v("update.attributes"), [I, T] = v("update.elementEvents"), [k, B] = v("update.debounce"), M = T || $, F = (W) => kt(C) && C(W);
2063
+ if (M && (r && (r[1](), r[0]()), r = po(i || l, !0, D, {
2064
+ Ht: h.concat(y || []),
2065
+ Dt: I,
2066
+ Mt: mo,
2067
+ kt: (W, j) => {
2068
+ const { target: R, attributeName: q } = W;
2069
+ return (!j && q && !d ? Ws(R, mo, Wr) : !1) || !!pe(R, `.${ht}`) || !!F(W);
2070
+ }
2071
+ })), B)
2072
+ if (b.m(), Lt(k)) {
2073
+ const W = k[0], j = k[1];
2074
+ o = te(W) && W, s = te(j) && j;
2075
+ } else
2076
+ te(k) ? (o = k, s = !1) : (o = !1, s = !1);
2077
+ }];
2078
+ }, ho = {
2079
+ x: 0,
2080
+ y: 0
2081
+ }, Rr = (t) => ({
2082
+ K: {
2083
+ t: 0,
2084
+ r: 0,
2085
+ b: 0,
2086
+ l: 0
2087
+ },
2088
+ St: !1,
2089
+ P: {
2090
+ marginRight: 0,
2091
+ marginBottom: 0,
2092
+ marginLeft: 0,
2093
+ paddingTop: 0,
2094
+ paddingRight: 0,
2095
+ paddingBottom: 0,
2096
+ paddingLeft: 0
2097
+ },
2098
+ zt: ho,
2099
+ Tt: ho,
2100
+ Ct: {
2101
+ x: "hidden",
2102
+ y: "hidden"
2103
+ },
2104
+ Et: {
2105
+ x: !1,
2106
+ y: !1
2107
+ },
2108
+ ht: !1,
2109
+ bt: $e(t.Z)
2110
+ }), Xr = (t, n) => {
2111
+ const e = xn(n, {}), [o, s, r] = Mn(), [c, l, i] = Lr(t), a = Uo(Rr(c)), [d, f] = a, p = Ar(c, a), m = (g, D, w) => {
2112
+ const N = St(g).some((z) => g[z]) || !Nn(D) || w;
2113
+ return N && r("u", [g, D, w]), N;
2114
+ }, [_, h, b, x] = Vr(c, f, (g) => m(p(e, g), {}, !1)), u = d.bind(0);
2115
+ return u.jt = (g) => o("u", g), u.Nt = () => {
2116
+ const { W: g, J: D } = c, w = It(g), E = Xt(g);
2117
+ h(), l(), It(D, w), Xt(D, E);
2118
+ }, u.qt = c, [(g, D) => {
2119
+ const w = xn(n, g, D);
2120
+ return x(w), m(p(w, b(), D), g, !!D);
2121
+ }, u, () => {
2122
+ s(), _(), i();
2123
+ }];
2124
+ }, { round: vo } = Math, qr = (t) => {
2125
+ const { width: n, height: e } = Ot(t), { w: o, h: s } = _e(t);
2126
+ return {
2127
+ x: vo(n) / o || 1,
2128
+ y: vo(e) / s || 1
2129
+ };
2130
+ }, Ur = (t, n, e) => {
2131
+ const o = n.scrollbars, { button: s, isPrimary: r, pointerType: c } = t, { pointers: l } = o;
2132
+ return s === 0 && r && o[e ? "dragScroll" : "clickScroll"] && (l || []).includes(c);
2133
+ }, Yr = (t, n) => it(t, "mousedown", it.bind(0, n, "click", No, {
2134
+ C: !0,
2135
+ $: !0
2136
+ }), {
2137
+ $: !0
2138
+ }), yo = "pointerup pointerleave pointercancel lostpointercapture", Zr = (t, n, e, o, s, r, c) => {
2139
+ const { B: l } = vt(), { Ft: i, Gt: a, Xt: d } = o, f = `scroll${c ? "Left" : "Top"}`, p = `client${c ? "X" : "Y"}`, m = c ? "width" : "height", _ = c ? "left" : "top", h = c ? "w" : "h", b = c ? "x" : "y", x = (u, g) => (D) => {
2140
+ const { Tt: w } = r(), E = _e(a)[h] - _e(i)[h], z = g * D / E * w[b], K = $e(d) && c ? l.n || l.i ? 1 : -1 : 1;
2141
+ s[f] = u + z * K;
2142
+ };
2143
+ return it(a, "pointerdown", (u) => {
2144
+ const g = pe(u.target, `.${Wn}`) === i, D = g ? i : a;
2145
+ if (re(n, Ct, eo, !0), Ur(u, t, g)) {
2146
+ const w = !g && u.shiftKey, E = () => Ot(i), N = () => Ot(a), z = (T, k) => (T || E())[_] - (k || N())[_], O = x(s[f] || 0, 1 / qr(s)[b]), K = u[p], U = E(), H = N(), S = U[m], v = z(U, H) + S / 2, C = K - H[_], y = g ? 0 : C - v, $ = (T) => {
2147
+ Ht(I), D.releasePointerCapture(T.pointerId);
2148
+ }, I = [re.bind(0, n, Ct, eo), it(e, yo, $), it(e, "selectstart", (T) => Oo(T), {
2149
+ S: !1
2150
+ }), it(a, yo, $), it(a, "pointermove", (T) => {
2151
+ const k = T[p] - K;
2152
+ (g || w) && O(y + k);
2153
+ })];
2154
+ if (w)
2155
+ O(y);
2156
+ else if (!g) {
2157
+ const T = ae()[Sr];
2158
+ T && Z(I, T.O(O, z, y, S, C));
2159
+ }
2160
+ D.setPointerCapture(u.pointerId);
2161
+ }
2162
+ });
2163
+ }, jr = (t, n) => (e, o, s, r, c, l) => {
2164
+ const { Xt: i } = e, [a, d] = fe(333), f = !!c.scrollBy;
2165
+ let p = !0;
2166
+ return Ht.bind(0, [it(i, "pointerenter", () => {
2167
+ o(so, !0);
2168
+ }), it(i, "pointerleave pointercancel", () => {
2169
+ o(so);
2170
+ }), it(i, "wheel", (m) => {
2171
+ const { deltaX: _, deltaY: h, deltaMode: b } = m;
2172
+ f && p && b === 0 && Yt(i) === r && c.scrollBy({
2173
+ left: _,
2174
+ top: h,
2175
+ behavior: "smooth"
2176
+ }), p = !1, o(co, !0), a(() => {
2177
+ p = !0, o(co);
2178
+ }), Oo(m);
2179
+ }, {
2180
+ S: !1,
2181
+ $: !0
2182
+ }), Yr(i, s), Zr(t, r, s, e, c, n, l), d]);
2183
+ }, { min: _n, max: bo, abs: Kr, round: Jr } = Math, jo = (t, n, e, o) => {
2184
+ if (o) {
2185
+ const l = e ? "x" : "y", { Tt: i, zt: a } = o, d = a[l], f = i[l];
2186
+ return bo(0, _n(1, d / (d + f)));
1128
2187
  }
2188
+ const s = e ? "width" : "height", r = Ot(t)[s], c = Ot(n)[s];
2189
+ return bo(0, _n(1, r / c));
2190
+ }, Gr = (t, n, e, o, s, r) => {
2191
+ const { B: c } = vt(), l = r ? "x" : "y", i = r ? "Left" : "Top", { Tt: a } = o, d = Jr(a[l]), f = Kr(e[`scroll${i}`]), p = r && s, m = c.i ? f : d - f, h = _n(1, (p ? m : f) / d), b = jo(t, n, r);
2192
+ return 1 / b * (1 - b) * h;
2193
+ }, Qr = (t, n, e) => {
2194
+ const { N: o, L: s } = vt(), { scrollbars: r } = o(), { slot: c } = r, { ct: l, W: i, Z: a, J: d, lt: f, ot: p, it: m, ut: _ } = n, { scrollbars: h } = f ? {} : t, { slot: b } = h || {}, x = Xo([i, a, d], () => _ && m ? i : a, c, b), u = (y, $, I) => {
2195
+ const T = I ? qt : Hn;
2196
+ X(y, (k) => {
2197
+ T(k.Xt, $);
2198
+ });
2199
+ }, g = (y, $) => {
2200
+ X(y, (I) => {
2201
+ const [T, k] = $(I);
2202
+ ft(T, k);
2203
+ });
2204
+ }, D = (y, $, I) => {
2205
+ g(y, (T) => {
2206
+ const { Ft: k, Gt: B } = T;
2207
+ return [k, {
2208
+ [I ? "width" : "height"]: `${(100 * jo(k, B, I, $)).toFixed(3)}%`
2209
+ }];
2210
+ });
2211
+ }, w = (y, $, I) => {
2212
+ const T = I ? "X" : "Y";
2213
+ g(y, (k) => {
2214
+ const { Ft: B, Gt: M, Xt: F } = k, W = Gr(B, M, p, $, $e(F), I);
2215
+ return [B, {
2216
+ transform: W === W ? `translate${T}(${(100 * W).toFixed(3)}%)` : ""
2217
+ }];
2218
+ });
2219
+ }, E = [], N = [], z = [], O = (y, $, I) => {
2220
+ const T = Ln(I), k = T ? I : !0, B = T ? !I : !0;
2221
+ k && u(N, y, $), B && u(z, y, $);
2222
+ }, K = (y) => {
2223
+ D(N, y, !0), D(z, y);
2224
+ }, U = (y) => {
2225
+ w(N, y, !0), w(z, y);
2226
+ }, H = (y) => {
2227
+ const $ = y ? fr : pr, I = y ? N : z, T = En(I) ? oo : "", k = ie(`${ht} ${$} ${T}`), B = ie(Vo), M = ie(Wn), F = {
2228
+ Xt: k,
2229
+ Gt: B,
2230
+ Ft: M
2231
+ };
2232
+ return s || qt(k, lr), Dt(k, B), Dt(B, M), Z(I, F), Z(E, [zt.bind(0, k), e(F, O, l, a, p, y)]), F;
2233
+ }, S = H.bind(0, !0), v = H.bind(0, !1), C = () => {
2234
+ Dt(x, N[0].Xt), Dt(x, z[0].Xt), Fe(() => {
2235
+ O(oo);
2236
+ }, 300);
2237
+ };
2238
+ return S(), v(), [{
2239
+ Ut: K,
2240
+ Wt: U,
2241
+ Zt: O,
2242
+ Jt: {
2243
+ Kt: N,
2244
+ Qt: S,
2245
+ tn: g.bind(0, N)
2246
+ },
2247
+ nn: {
2248
+ Kt: z,
2249
+ Qt: v,
2250
+ tn: g.bind(0, z)
2251
+ }
2252
+ }, C, Ht.bind(0, E)];
2253
+ }, ti = (t, n, e, o) => {
2254
+ let s, r, c, l, i, a = 0;
2255
+ const d = Uo({}), [f] = d, [p, m] = fe(), [_, h] = fe(), [b, x] = fe(100), [u, g] = fe(100), [D, w] = fe(() => a), [E, N, z] = Qr(t, e.qt, jr(n, e)), { Z: O, J: K, ot: U, st: H, ut: S, it: v } = e.qt, { Jt: C, nn: y, Zt: $, Ut: I, Wt: T } = E, { tn: k } = C, { tn: B } = y, M = (q) => {
2256
+ const { Xt: V } = q, J = S && !v && Yt(V) === K && V;
2257
+ return [J, {
2258
+ transform: J ? `translate(${It(U)}px, ${Xt(U)}px)` : ""
2259
+ }];
2260
+ }, F = (q, V) => {
2261
+ if (w(), q)
2262
+ $(io);
2263
+ else {
2264
+ const J = () => $(io, !0);
2265
+ a > 0 && !V ? D(J) : J();
2266
+ }
2267
+ }, W = () => {
2268
+ l = r, l && F(!0);
2269
+ }, j = [x, w, g, h, m, z, it(O, "pointerover", W, {
2270
+ C: !0
2271
+ }), it(O, "pointerenter", W), it(O, "pointerleave", () => {
2272
+ l = !1, r && F(!1);
2273
+ }), it(O, "pointermove", () => {
2274
+ s && p(() => {
2275
+ x(), F(!0), u(() => {
2276
+ s && F(!1);
2277
+ });
2278
+ });
2279
+ }), it(H, "scroll", (q) => {
2280
+ _(() => {
2281
+ T(e()), c && F(!0), b(() => {
2282
+ c && !l && F(!1);
2283
+ });
2284
+ }), o(q), S && k(M), S && B(M);
2285
+ })], R = f.bind(0);
2286
+ return R.qt = E, R.Nt = N, [(q, V, J) => {
2287
+ const { At: Q, Lt: ct, It: at, yt: nt } = J, { A: Y } = vt(), tt = xn(n, q, V), xt = e(), { Tt: yt, Ct: jt, bt: ne } = xt, [le, ve] = tt("showNativeOverlaidScrollbars"), [rt, bt] = tt("scrollbars.theme"), [mt, At] = tt("scrollbars.visibility"), [de, je] = tt("scrollbars.autoHide"), [Ke] = tt("scrollbars.autoHideDelay"), [Je, Ge] = tt("scrollbars.dragScroll"), [Bt, Ce] = tt("scrollbars.clickScroll"), Qe = Q || ct || nt, tn = at || At, Pt = le && Y.x && Y.y, Mt = ($t, ye) => {
2288
+ const Et = mt === "visible" || mt === "auto" && $t === "scroll";
2289
+ return $(mr, Et, ye), Et;
2290
+ };
2291
+ if (a = Ke, ve && $(dr, Pt), bt && ($(i), $(rt, !0), i = rt), je && (s = de === "move", r = de === "leave", c = de !== "never", F(!c, !0)), Ge && $(vr, Je), Ce && $(hr, Bt), tn) {
2292
+ const $t = Mt(jt.x, !0), ye = Mt(jt.y, !1);
2293
+ $(gr, !($t && ye));
2294
+ }
2295
+ Qe && (I(xt), T(xt), $(ro, !yt.x, !0), $(ro, !yt.y, !1), $(ur, ne && !v));
2296
+ }, R, Ht.bind(0, j)];
2297
+ }, Ko = (t, n, e) => {
2298
+ kt(t) && t(n || void 0, e || void 0);
2299
+ }, Qt = (t, n, e) => {
2300
+ const { F: o, N: s, Y: r, j: c } = vt(), l = ae(), i = Pe(t), a = i ? t : t.target, d = qo(a);
2301
+ if (n && !d) {
2302
+ let f = !1;
2303
+ const p = (S) => {
2304
+ const v = ae()[br], C = v && v.O;
2305
+ return C ? C(S, !0) : S;
2306
+ }, m = G({}, o(), p(n)), [_, h, b] = Mn(e), [x, u, g] = Xr(t, m), [D, w, E] = ti(t, m, u, (S) => b("scroll", [H, S])), N = (S, v) => x(S, !!v), z = N.bind(0, {}, !0), O = r(z), K = c(z), U = (S) => {
2307
+ kr(a), O(), K(), E(), g(), f = !0, b("destroyed", [H, !!S]), h();
2308
+ }, H = {
2309
+ options(S, v) {
2310
+ if (S) {
2311
+ const C = v ? o() : {}, y = zo(m, G(C, p(S)));
2312
+ Nn(y) || (G(m, y), N(y));
2313
+ }
2314
+ return G({}, m);
2315
+ },
2316
+ on: _,
2317
+ off: (S, v) => {
2318
+ S && v && h(S, v);
2319
+ },
2320
+ state() {
2321
+ const { zt: S, Tt: v, Ct: C, Et: y, K: $, St: I, bt: T } = u();
2322
+ return G({}, {
2323
+ overflowEdge: S,
2324
+ overflowAmount: v,
2325
+ overflowStyle: C,
2326
+ hasOverflow: y,
2327
+ padding: $,
2328
+ paddingAbsolute: I,
2329
+ directionRTL: T,
2330
+ destroyed: f
2331
+ });
2332
+ },
2333
+ elements() {
2334
+ const { W: S, Z: v, K: C, J: y, tt: $, ot: I, st: T } = u.qt, { Jt: k, nn: B } = w.qt, M = (W) => {
2335
+ const { Ft: j, Gt: R, Xt: q } = W;
2336
+ return {
2337
+ scrollbar: q,
2338
+ track: R,
2339
+ handle: j
2340
+ };
2341
+ }, F = (W) => {
2342
+ const { Kt: j, Qt: R } = W, q = M(j[0]);
2343
+ return G({}, q, {
2344
+ clone: () => {
2345
+ const V = M(R());
2346
+ return D({}, !0, {}), V;
2347
+ }
2348
+ });
2349
+ };
2350
+ return G({}, {
2351
+ target: S,
2352
+ host: v,
2353
+ padding: C || y,
2354
+ viewport: y,
2355
+ content: $ || y,
2356
+ scrollOffsetElement: I,
2357
+ scrollEventElement: T,
2358
+ scrollbarHorizontal: F(k),
2359
+ scrollbarVertical: F(B)
2360
+ });
2361
+ },
2362
+ update: (S) => N({}, S),
2363
+ destroy: U.bind(0)
2364
+ };
2365
+ return u.jt((S, v, C) => {
2366
+ D(v, C, S);
2367
+ }), Ir(a, H), X(St(l), (S) => Ko(l[S], 0, H)), Cr(u.qt.it, s().cancel, !i && t.cancel) ? (U(!0), H) : (u.Nt(), w.Nt(), b("initialized", [H]), u.jt((S, v, C) => {
2368
+ const { gt: y, yt: $, vt: I, At: T, Lt: k, It: B, wt: M, Ot: F } = S;
2369
+ b("updated", [H, {
2370
+ updateHints: {
2371
+ sizeChanged: y,
2372
+ directionChanged: $,
2373
+ heightIntrinsicChanged: I,
2374
+ overflowEdgeChanged: T,
2375
+ overflowAmountChanged: k,
2376
+ overflowStyleChanged: B,
2377
+ contentMutation: M,
2378
+ hostMutation: F
2379
+ },
2380
+ changedOptions: v,
2381
+ force: C
2382
+ }]);
2383
+ }), H.update(!0), H);
2384
+ }
2385
+ return d;
2386
+ };
2387
+ Qt.plugin = (t) => {
2388
+ X(yr(t), (n) => Ko(n, Qt));
2389
+ };
2390
+ Qt.valid = (t) => {
2391
+ const n = t && t.elements, e = kt(n) && n();
2392
+ return vn(e) && !!qo(e.target);
2393
+ };
2394
+ Qt.env = () => {
2395
+ const { k: t, A: n, I: e, B: o, V: s, L: r, X: c, U: l, N: i, q: a, F: d, G: f } = vt();
2396
+ return G({}, {
2397
+ scrollbarsSize: t,
2398
+ scrollbarsOverlaid: n,
2399
+ scrollbarsHiding: e,
2400
+ rtlScrollBehavior: o,
2401
+ flexboxGlue: s,
2402
+ cssCustomProperties: r,
2403
+ staticDefaultInitialization: c,
2404
+ staticDefaultOptions: l,
2405
+ getDefaultInitialization: i,
2406
+ setDefaultInitialization: a,
2407
+ getDefaultOptions: d,
2408
+ setDefaultOptions: f
2409
+ });
1129
2410
  };
2411
+ const ei = () => {
2412
+ if (typeof window > "u") {
2413
+ const a = () => {
2414
+ };
2415
+ return [a, a];
2416
+ }
2417
+ let t, n;
2418
+ const e = window, o = typeof e.requestIdleCallback == "function", s = e.requestAnimationFrame, r = e.cancelAnimationFrame, c = o ? e.requestIdleCallback : s, l = o ? e.cancelIdleCallback : r, i = () => {
2419
+ l(t), r(n);
2420
+ };
2421
+ return [
2422
+ (a, d) => {
2423
+ i(), t = c(
2424
+ o ? () => {
2425
+ i(), n = s(a);
2426
+ } : a,
2427
+ typeof d == "object" ? d : { timeout: 2233 }
2428
+ );
2429
+ },
2430
+ i
2431
+ ];
2432
+ }, ni = (t) => {
2433
+ let n = null, e, o, s;
2434
+ const r = hn(t || {}), [c, l] = ei();
2435
+ return Se(
2436
+ () => {
2437
+ var i;
2438
+ return et((i = r.value) == null ? void 0 : i.defer);
2439
+ },
2440
+ (i) => {
2441
+ s = i;
2442
+ },
2443
+ { deep: !0, immediate: !0 }
2444
+ ), Se(
2445
+ () => {
2446
+ var i;
2447
+ return et((i = r.value) == null ? void 0 : i.options);
2448
+ },
2449
+ (i) => {
2450
+ e = i, Qt.valid(n) && n.options(e || {}, !0);
2451
+ },
2452
+ { deep: !0, immediate: !0 }
2453
+ ), Se(
2454
+ () => {
2455
+ var i;
2456
+ return et((i = r.value) == null ? void 0 : i.events);
2457
+ },
2458
+ (i) => {
2459
+ o = i, Qt.valid(n) && n.on(
2460
+ /* c8 ignore next */
2461
+ o || {},
2462
+ !0
2463
+ );
2464
+ },
2465
+ { deep: !0, immediate: !0 }
2466
+ ), xo(() => {
2467
+ l(), n == null || n.destroy();
2468
+ }), [
2469
+ (i) => {
2470
+ if (Qt.valid(n))
2471
+ return n;
2472
+ const a = () => n = Qt(i, e || {}, o || {});
2473
+ s ? c(a, s) : a();
2474
+ },
2475
+ () => n
2476
+ ];
2477
+ }, li = /* @__PURE__ */ rs({
2478
+ __name: "DScrollbars",
2479
+ props: {
2480
+ element: {},
2481
+ options: {},
2482
+ events: {},
2483
+ defer: {}
2484
+ },
2485
+ emits: ["osInitialized", "osUpdated", "osDestroyed", "osScroll"],
2486
+ setup(t, { expose: n, emit: e }) {
2487
+ const o = t, s = {
2488
+ initialized: "osInitialized",
2489
+ updated: "osUpdated",
2490
+ destroyed: "osDestroyed",
2491
+ scroll: "osScroll"
2492
+ }, { element: r, options: c, events: l, defer: i } = is(o), a = hn(null), d = hn(null), f = Nt(), p = Nt(!1), [m, _] = ni({ options: c, events: f, defer: i });
2493
+ return n({
2494
+ osInstance: _,
2495
+ getElement: () => a.value
2496
+ }), cs(() => {
2497
+ p.value = !0;
2498
+ }), as((b) => {
2499
+ const { value: x } = a, { value: u } = d;
2500
+ p.value && x && u && (m({
2501
+ target: x,
2502
+ elements: {
2503
+ viewport: u,
2504
+ content: u
2505
+ }
2506
+ }), b(() => {
2507
+ var g;
2508
+ return (g = _()) == null ? void 0 : g.destroy();
2509
+ }));
2510
+ }), Se(
2511
+ () => et(l),
2512
+ (b) => {
2513
+ const x = b || {};
2514
+ f.value = Object.keys(s).reduce((u, g) => {
2515
+ const D = x[g];
2516
+ return u[g] = [
2517
+ (...w) => e(
2518
+ s[g],
2519
+ ...w
2520
+ ),
2521
+ ...(Array.isArray(D) ? D : [D]).filter(Boolean)
2522
+ ], u;
2523
+ }, {});
2524
+ },
2525
+ { deep: !0, immediate: !0 }
2526
+ ), (b, x) => (A(), st(Vt(et(r) || "div"), {
2527
+ "data-overlayscrollbars-initialize": "",
2528
+ ref_key: "elementRef",
2529
+ ref: a
2530
+ }, {
2531
+ default: wt(() => [
2532
+ p.value ? (A(), lt("div", {
2533
+ key: 0,
2534
+ ref_key: "slotRef",
2535
+ ref: d,
2536
+ "data-overlayscrollbars-contents": ""
2537
+ }, [
2538
+ ot(b.$slots, "default")
2539
+ ], 512)) : ot(b.$slots, "default", { key: 1 })
2540
+ ]),
2541
+ _: 3
2542
+ }, 512));
2543
+ }
2544
+ });
1130
2545
  export {
1131
- Oe as DAccordion,
1132
- he as DBadge,
1133
- Ae as DButton,
1134
- ye as DCollapse,
1135
- Ye as DConfigProvider,
1136
- P as DGlobalStore,
1137
- R as DIcon,
1138
- L as DIconStore,
1139
- Pe as DInput,
1140
- Re as DLayoutAdmin,
1141
- ze as DLayoutContent,
1142
- We as DLayoutFooter,
1143
- ke as DLayoutHeader,
1144
- Ce as DLayoutSidebar,
1145
- Le as DLayoutTab,
1146
- Z as DTransferStore,
1147
- we as DTree,
1148
- Se as DTreeItem,
1149
- u as DTreeStore,
1150
- V as emitter,
1151
- Ne as eventsBus
2546
+ ii as DAccordion,
2547
+ ms as DBadge,
2548
+ si as DButton,
2549
+ gs as DCollapse,
2550
+ ai as DConfigProvider,
2551
+ ue as DGlobalStore,
2552
+ we as DIcon,
2553
+ Rt as DIconStore,
2554
+ ri as DInput,
2555
+ ci as DLayoutAdmin,
2556
+ Es as DLayoutContent,
2557
+ Ls as DLayoutFooter,
2558
+ Is as DLayoutHeader,
2559
+ Bs as DLayoutSidebar,
2560
+ ks as DLayoutTab,
2561
+ li as DScrollbars,
2562
+ Ae as DTransferStore,
2563
+ Ts as DTree,
2564
+ $s as DTreeItem,
2565
+ L as DTreeStore,
2566
+ se as emitter,
2567
+ _s as eventsBus
1152
2568
  };