doph-js 0.0.60 → 0.0.62

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