@das-fed/ui 6.4.0-test.6.1 → 6.4.0-test.7.1
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/esm-map.json +8 -1
- package/package.json +6 -5
- package/packages/business-components/app-container/index.js +96 -73
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/app-container/src/style-theme.d.ts +0 -5
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/app-container/theme/index.d.ts +0 -1
- package/packages/business-components/device-panel/index.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/dealAlarm.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/historyList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/liveList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/alarmLog/components/logDetail.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/index.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/dealAlarm.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/historyList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/liveList.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/alarmLog/components/logDetail.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/index.vue.d.ts +2 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/preview/index.vue.d.ts +2 -2
- package/packages/business-components/export-button/hooks/useExport.d.ts +5 -6
- package/packages/business-components/export-button/index.js +89 -87
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/hooks/file.d.ts +1 -0
- package/packages/business-components/import-button/hooks/useImport.d.ts +13 -13
- package/packages/business-components/import-button/index.js +284 -275
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/src/type.d.ts +2 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/index.d.ts +1 -0
- package/packages/business-components/index.js +1 -0
- package/packages/business-components/model-table-dialog/index.d.ts +65 -65
- package/packages/business-components/model-table-dialog/src/Index.vue.d.ts +12 -12
- package/packages/business-components/model-table-dialog/src/ModelTable.vue.d.ts +2 -2
- package/packages/business-components/payment/api.d.ts +8 -0
- package/packages/business-components/payment/i18n/index.d.ts +68 -0
- package/packages/business-components/payment/index.d.ts +52 -0
- package/packages/business-components/payment/index.js +1818 -0
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/src/Index.vue.d.ts +7 -0
- package/packages/business-components/payment/style.css +1 -0
- package/packages/business-components/payment/type.d.ts +41 -0
- package/packages/business-components/process-form/i18n/index.d.ts +10 -0
- package/packages/business-components/process-form/index.js +149 -145
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-log/index.js +289 -289
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-table/index.d.ts +2 -0
- package/packages/business-components/process-table/index.js +2 -1
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/process-table/src/App.vue.d.ts +3 -3
- package/packages/business-components/process-table/src/type.d.ts +2 -0
- package/packages/components/autocomplete/index.d.ts +9 -9
- package/packages/components/autocomplete/index.js +1 -1
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +1 -1
- package/packages/components/autocomplete/src/type.d.ts +5 -0
- package/packages/components/autocomplete/style.css +1 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/calendar/index.d.ts +5 -5
- package/packages/components/calendar/src/Index.vue.d.ts +2 -2
- package/packages/components/calendar/src/old-Index.vue.d.ts +2 -2
- package/packages/components/cascader/index.d.ts +9 -9
- package/packages/components/cascader/src/Index.vue.d.ts +1 -1
- package/packages/components/color-picker/index.js +4 -4
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/src/type.d.ts +6 -3
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/date-picker/index.d.ts +30 -25
- package/packages/components/date-picker/index.js +543 -525
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/src/DatePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/src/DateRangePicker.vue.d.ts +4 -2
- package/packages/components/date-picker/src/RangePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/src/TimePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/src/TimeRangePicker.vue.d.ts +2 -2
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dialog/index.js +1 -1
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +2 -2
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dimple-layout/style.css +1 -1
- package/packages/components/dimple-layout/style.css.gz +0 -0
- package/packages/components/edit-table/index.d.ts +27 -7
- package/packages/components/edit-table/index.js +1637 -1499
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/src/components/index.d.ts +1 -0
- package/packages/components/edit-table/src/components/row-button/index.vue.d.ts +5 -0
- package/packages/components/edit-table/src/components/row-button/type.d.ts +13 -0
- package/packages/components/edit-table/src/index.vue.d.ts +8 -4
- package/packages/components/edit-table/src/type.d.ts +15 -3
- package/packages/components/edit-table/src/utils.d.ts +1 -1
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/empty/index.d.ts +3 -3
- package/packages/components/empty/src/Index.vue.d.ts +1 -1
- package/packages/components/index.d.ts +1 -0
- package/packages/components/index.js +1 -0
- package/packages/components/map/index.js +82 -85
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/map/style.css +1 -1
- package/packages/components/menu-aside/index.js +154 -153
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-aside/style.css +1 -1
- package/packages/components/menu-aside/style.css.gz +0 -0
- package/packages/components/menu-header/index.js +24 -23
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/pagination/index.d.ts +23 -23
- package/packages/components/pagination/index.js +101 -98
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/src/Pagination.vue.d.ts +3 -3
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/popup-mask/index.d.ts +9 -9
- package/packages/components/popup-mask/src/Index.vue.d.ts +1 -1
- package/packages/components/preview/index.d.ts +3 -3
- package/packages/components/preview/src/Index.vue.d.ts +1 -1
- package/packages/components/search-form/index.js +241 -240
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/Index.vue.d.ts +3 -1
- package/packages/components/search-form/src/InputSelect.vue.d.ts +2 -2
- package/packages/components/search-form/src/SearchDateRange.vue.d.ts +2 -2
- package/packages/components/search-form/src/type.d.ts +3 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +17 -17
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-input/index.d.ts +2 -2
- package/packages/components/select-input/src/Index.vue.d.ts +2 -2
- package/packages/components/select-list/index.js +176 -174
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/select-list/style.css +1 -1
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/select-list/theme/index.d.ts +2 -0
- package/packages/components/table/index.d.ts +18 -18
- package/packages/components/table/index.js +82 -81
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +1 -1
- package/packages/components/table/src/hooks/use-operation.d.ts +1 -1
- package/packages/components/table/src/table-column/index.vue.d.ts +1 -1
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/index.js +61 -60
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tabs/style.css +1 -1
- package/packages/components/tabs/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +702 -695
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/index.js +43 -42
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/style.css +1 -1
- package/packages/components/tooltip/style.css.gz +0 -0
- package/packages/components/tree/index.js +290 -294
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/type.d.ts +6 -3
- package/packages/components/tree-select/index.js +50 -49
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +1 -0
- package/packages/components/tree-select/src/type.d.ts +3 -0
- package/packages/components/tree-v2/i18n/index.d.ts +31 -0
- package/packages/components/tree-v2/index.d.ts +585 -0
- package/packages/components/tree-v2/index.js +3371 -0
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/src/App.vue.d.ts +99 -0
- package/packages/components/tree-v2/src/empty.vue.d.ts +19 -0
- package/packages/components/tree-v2/src/expand-icon.vue.d.ts +2 -0
- package/packages/components/tree-v2/src/hooks/use-lazy-tree.d.ts +15 -0
- package/packages/components/tree-v2/src/hooks/use-style.d.ts +5 -0
- package/packages/components/tree-v2/src/hooks/use-tree.d.ts +43 -0
- package/packages/components/tree-v2/src/type.d.ts +283 -0
- package/packages/components/tree-v2/src/utils.d.ts +18 -0
- package/packages/components/tree-v2/style.css +1 -0
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/tree-v2/theme/base.d.ts +16 -0
- package/packages/icons/index.d.ts +1 -0
- package/packages/icons/index.js +1 -0
- package/packages/icons/input-select/index.d.ts +1 -0
- package/packages/icons/input-select/index.js +17 -0
- package/packages/icons/input-select/index.js.gz +0 -0
- package/packages/icons/input-select/index.vue.d.ts +16 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/text-tooltip/style.css';
|
|
2
|
-
import { createStyle as
|
|
3
|
-
import { getVarValue as Tt, getVar as
|
|
2
|
+
import { createStyle as kn } from "@das-fed/utils/style";
|
|
3
|
+
import { getVarValue as Tt, getVar as Dn, setThemeRule as In } from "@das-fed/web/packages/theme/index";
|
|
4
4
|
import { ref as no } from "vue";
|
|
5
|
-
import { useZIndex as
|
|
5
|
+
import { useZIndex as Rn } from "@das-fed/utils/hooks/popup-manager/use-zindex";
|
|
6
|
+
import { currentLang as yo } from "@das-fed/web/packages/i18n/index";
|
|
6
7
|
/*!
|
|
7
8
|
* OverlayScrollbars
|
|
8
9
|
* Version: 2.6.1
|
|
@@ -15,16 +16,16 @@ import { useZIndex as In } from "@das-fed/utils/hooks/popup-manager/use-zindex";
|
|
|
15
16
|
const xt = (t, e) => {
|
|
16
17
|
const { o, u: n, _: s } = t;
|
|
17
18
|
let c = o, r;
|
|
18
|
-
const l = (
|
|
19
|
-
const
|
|
20
|
-
return (
|
|
19
|
+
const l = (i, f) => {
|
|
20
|
+
const m = c, T = i, $ = f || (n ? !n(m, T) : m !== T);
|
|
21
|
+
return ($ || s) && (c = T, r = m), [c, $, r];
|
|
21
22
|
};
|
|
22
|
-
return [e ? (
|
|
23
|
-
}, so = typeof window < "u", ht = so ? window : {}, he = Math.max,
|
|
23
|
+
return [e ? (i) => l(e(c, r), i) : l, (i) => [c, !!i, r]];
|
|
24
|
+
}, so = typeof window < "u", ht = so ? window : {}, he = Math.max, Pn = Math.min, Fe = Math.round, Fo = ht.cancelAnimationFrame, Uo = ht.requestAnimationFrame, Ue = ht.setTimeout, je = ht.clearTimeout, Ee = (t) => typeof ht[t] < "u" ? ht[t] : void 0, Mn = Ee("MutationObserver"), xo = Ee("IntersectionObserver"), ye = Ee("ResizeObserver"), We = Ee("ScrollTimeline"), jo = so && Node.ELEMENT_NODE, { toString: Nn, hasOwnProperty: Ne } = Object.prototype, Vn = /^\[object (.+)\]$/, ue = (t) => t === void 0, Te = (t) => t === null, zn = (t) => ue(t) || Te(t) ? `${t}` : Nn.call(t).replace(Vn, "$1").toLowerCase(), Ot = (t) => typeof t == "number", Oe = (t) => typeof t == "string", Wo = (t) => typeof t == "boolean", $t = (t) => typeof t == "function", St = (t) => Array.isArray(t), ie = (t) => typeof t == "object" && !St(t) && !Te(t), $e = (t) => {
|
|
24
25
|
const e = !!t && t.length, o = Ot(e) && e > -1 && e % 1 == 0;
|
|
25
26
|
return St(t) || !$t(t) && o ? e > 0 && ie(t) ? e - 1 in t : !0 : !1;
|
|
26
27
|
}, xe = (t) => {
|
|
27
|
-
if (!t || !ie(t) ||
|
|
28
|
+
if (!t || !ie(t) || zn(t) !== "object")
|
|
28
29
|
return !1;
|
|
29
30
|
let e;
|
|
30
31
|
const o = "constructor", n = t[o], s = n && n.prototype, c = Ne.call(t, o), r = s && Ne.call(s, "isPrototypeOf");
|
|
@@ -35,10 +36,10 @@ const xt = (t, e) => {
|
|
|
35
36
|
return ue(e) || Ne.call(t, e);
|
|
36
37
|
}, re = (t) => {
|
|
37
38
|
const e = HTMLElement;
|
|
38
|
-
return t ? e ? t instanceof e : t.nodeType ===
|
|
39
|
+
return t ? e ? t instanceof e : t.nodeType === jo : !1;
|
|
39
40
|
}, Ae = (t) => {
|
|
40
41
|
const e = Element;
|
|
41
|
-
return t ? e ? t instanceof e : t.nodeType ===
|
|
42
|
+
return t ? e ? t instanceof e : t.nodeType === jo : !1;
|
|
42
43
|
};
|
|
43
44
|
function G(t, e) {
|
|
44
45
|
if ($e(t))
|
|
@@ -47,9 +48,9 @@ function G(t, e) {
|
|
|
47
48
|
else t && G(Object.keys(t), (o) => e(t[o], o, t));
|
|
48
49
|
return t;
|
|
49
50
|
}
|
|
50
|
-
const He = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), K = (t, e, o) => (!Oe(e) && $e(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Ut = (t) => Array.from(t || []),
|
|
51
|
+
const He = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), K = (t, e, o) => (!Oe(e) && $e(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Ut = (t) => Array.from(t || []), Xo = (t) => St(t) ? t : [t], Xe = (t) => !!t && !t.length, wo = (t) => Ut(new Set(t)), bt = (t, e, o) => {
|
|
51
52
|
G(t, (s) => s && s.apply(void 0, e || [])), !o && (t.length = 0);
|
|
52
|
-
},
|
|
53
|
+
}, Go = "paddingTop", Yo = "paddingRight", qo = "paddingLeft", Zo = "paddingBottom", Ko = "marginLeft", Jo = "marginRight", Qo = "marginBottom", Le = "overflowX", ke = "overflowY", Zt = "width", Kt = "height", Jt = "hidden", tn = "visible", co = (t, e, o, n) => {
|
|
53
54
|
if (t && e) {
|
|
54
55
|
let s = !0;
|
|
55
56
|
return G(o, (c) => {
|
|
@@ -58,85 +59,85 @@ const He = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), K = (t, e, o
|
|
|
58
59
|
}), s;
|
|
59
60
|
}
|
|
60
61
|
return !1;
|
|
61
|
-
},
|
|
62
|
-
},
|
|
62
|
+
}, en = (t, e) => co(t, e, ["w", "h"]), on = (t, e) => co(t, e, ["x", "y"]), _n = (t, e) => co(t, e, ["t", "r", "b", "l"]), wt = () => {
|
|
63
|
+
}, M = (t, ...e) => t.bind(0, ...e), Dt = (t) => {
|
|
63
64
|
let e;
|
|
64
|
-
const o = t ? Ue :
|
|
65
|
+
const o = t ? Ue : Uo, n = t ? je : Fo;
|
|
65
66
|
return [(s) => {
|
|
66
67
|
n(e), e = o(s, $t(t) ? t() : t);
|
|
67
68
|
}, () => n(e)];
|
|
68
|
-
},
|
|
69
|
+
}, nn = (t, e) => {
|
|
69
70
|
let o, n, s, c = wt;
|
|
70
|
-
const { v: r, p: l, S:
|
|
71
|
-
c(), je(o), o = n = void 0, c = wt, t.apply(this,
|
|
72
|
-
},
|
|
73
|
-
c !== wt && u(
|
|
74
|
-
},
|
|
75
|
-
const
|
|
71
|
+
const { v: r, p: l, S: a } = e || {}, u = function($) {
|
|
72
|
+
c(), je(o), o = n = void 0, c = wt, t.apply(this, $);
|
|
73
|
+
}, i = (T) => a && n ? a(n, T) : T, f = () => {
|
|
74
|
+
c !== wt && u(i(s) || s);
|
|
75
|
+
}, m = function() {
|
|
76
|
+
const $ = Ut(arguments), L = $t(r) ? r() : r;
|
|
76
77
|
if (Ot(L) && L >= 0) {
|
|
77
|
-
const k = $t(l) ? l() : l,
|
|
78
|
+
const k = $t(l) ? l() : l, S = Ot(k) && k >= 0, y = L > 0 ? Ue : Uo, E = L > 0 ? je : Fo, A = i($) || $, z = u.bind(0, A);
|
|
78
79
|
c();
|
|
79
|
-
const
|
|
80
|
-
c = () => E(
|
|
80
|
+
const _ = y(z, L);
|
|
81
|
+
c = () => E(_), S && !o && (o = Ue(f, k)), n = s = A;
|
|
81
82
|
} else
|
|
82
|
-
u(
|
|
83
|
+
u($);
|
|
83
84
|
};
|
|
84
|
-
return
|
|
85
|
-
},
|
|
85
|
+
return m.m = f, m;
|
|
86
|
+
}, sn = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Ht = (t) => t ? Object.keys(t) : [], W = (t, e, o, n, s, c, r) => {
|
|
86
87
|
const l = [e, o, n, s, c, r];
|
|
87
|
-
return (typeof t != "object" || Te(t)) && !$t(t) && (t = {}), G(l, (
|
|
88
|
-
G(
|
|
89
|
-
const
|
|
90
|
-
if (t ===
|
|
88
|
+
return (typeof t != "object" || Te(t)) && !$t(t) && (t = {}), G(l, (a) => {
|
|
89
|
+
G(a, (u, i) => {
|
|
90
|
+
const f = a[i];
|
|
91
|
+
if (t === f)
|
|
91
92
|
return !0;
|
|
92
|
-
const
|
|
93
|
-
if (
|
|
94
|
-
const
|
|
95
|
-
let
|
|
96
|
-
|
|
93
|
+
const m = St(f);
|
|
94
|
+
if (f && xe(f)) {
|
|
95
|
+
const T = t[i];
|
|
96
|
+
let $ = T;
|
|
97
|
+
m && !St(T) ? $ = [] : !m && !xe(T) && ($ = {}), t[i] = W($, f);
|
|
97
98
|
} else
|
|
98
|
-
t[
|
|
99
|
+
t[i] = m ? f.slice() : f;
|
|
99
100
|
});
|
|
100
101
|
}), t;
|
|
101
|
-
},
|
|
102
|
-
o === void 0 ? delete s[n] : o && xe(o) && (s[n] =
|
|
102
|
+
}, cn = (t, e) => G(W({}, t), (o, n, s) => {
|
|
103
|
+
o === void 0 ? delete s[n] : o && xe(o) && (s[n] = cn(o));
|
|
103
104
|
}), ro = (t) => {
|
|
104
105
|
for (const e in t)
|
|
105
106
|
return !1;
|
|
106
107
|
return !0;
|
|
107
|
-
}, Ge = (t, e, o) => he(t,
|
|
108
|
-
G(
|
|
108
|
+
}, Ge = (t, e, o) => he(t, Pn(e, o)), _t = (t) => Ut(new Set((St(t) ? t : (t || "").split(" ")).filter((e) => e))), De = (t, e) => t && t.getAttribute(e), yt = (t, e, o) => {
|
|
109
|
+
G(_t(e), (n) => {
|
|
109
110
|
t && t.setAttribute(n, o || "");
|
|
110
111
|
});
|
|
111
112
|
}, Et = (t, e) => {
|
|
112
|
-
G(
|
|
113
|
+
G(_t(e), (o) => t && t.removeAttribute(o));
|
|
113
114
|
}, Ie = (t, e) => {
|
|
114
|
-
const o =
|
|
115
|
+
const o = _t(De(t, e)), n = M(yt, t, e), s = (c, r) => {
|
|
115
116
|
const l = new Set(o);
|
|
116
|
-
return G(
|
|
117
|
+
return G(_t(c), (a) => l[r](a)), Ut(l).join(" ");
|
|
117
118
|
};
|
|
118
119
|
return {
|
|
119
120
|
O: (c) => n(s(c, "delete")),
|
|
120
121
|
$: (c) => n(s(c, "add")),
|
|
121
122
|
C: (c) => {
|
|
122
|
-
const r =
|
|
123
|
-
return r.reduce((l,
|
|
123
|
+
const r = _t(c);
|
|
124
|
+
return r.reduce((l, a) => l && o.includes(a), r.length > 0);
|
|
124
125
|
}
|
|
125
126
|
};
|
|
126
|
-
},
|
|
127
|
+
}, rn = (t, e, o) => {
|
|
127
128
|
Ie(t, e).O(o);
|
|
128
|
-
}, ae = (t, e, o) => (Ie(t, e).$(o),
|
|
129
|
-
(n ? ae :
|
|
130
|
-
},
|
|
131
|
-
|
|
132
|
-
}, we = (t, e) => (
|
|
129
|
+
}, ae = (t, e, o) => (Ie(t, e).$(o), M(rn, t, e, o)), be = (t, e, o, n) => {
|
|
130
|
+
(n ? ae : rn)(t, e, o);
|
|
131
|
+
}, Bn = (t, e, o) => Ie(t, e).C(o), ln = (t) => Ie(t, "class"), lo = (t, e) => {
|
|
132
|
+
ln(t).O(e);
|
|
133
|
+
}, we = (t, e) => (ln(t).$(e), M(lo, t, e)), So = so && Element.prototype, an = (t, e) => {
|
|
133
134
|
const o = [], n = e ? Ae(e) && e : document;
|
|
134
135
|
return n ? K(o, n.querySelectorAll(t)) : o;
|
|
135
|
-
},
|
|
136
|
+
}, Fn = (t, e) => {
|
|
136
137
|
const o = e ? Ae(e) && e : document;
|
|
137
138
|
return o ? o.querySelector(t) : null;
|
|
138
|
-
}, Ye = (t, e) => Ae(t) ? (
|
|
139
|
-
const n = Xt(t, e), s = t &&
|
|
139
|
+
}, Ye = (t, e) => Ae(t) ? (So.matches || So.msMatchesSelector).call(t, e) : !1, qe = (t) => t ? Ut(t.childNodes) : [], Qt = (t) => t && t.parentElement, Xt = (t, e) => Ae(t) && t.closest(e), Un = (t, e, o) => {
|
|
140
|
+
const n = Xt(t, e), s = t && Fn(o, n), c = Xt(s, e) === n;
|
|
140
141
|
return n && s ? n === t || s === t || c && Xt(Xt(t, o), e) !== n : !1;
|
|
141
142
|
}, Pt = (t) => {
|
|
142
143
|
if ($e(t))
|
|
@@ -145,7 +146,7 @@ const He = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), K = (t, e, o
|
|
|
145
146
|
const e = Qt(t);
|
|
146
147
|
e && e.removeChild(t);
|
|
147
148
|
}
|
|
148
|
-
},
|
|
149
|
+
}, un = (t, e, o) => {
|
|
149
150
|
if (o && t) {
|
|
150
151
|
let n = e, s;
|
|
151
152
|
return $e(o) ? (s = document.createDocumentFragment(), G(o, (c) => {
|
|
@@ -153,21 +154,21 @@ const He = (t, e) => t.indexOf(e) >= 0, At = (t, e) => t.concat(e), K = (t, e, o
|
|
|
153
154
|
})) : s = o, e && (n ? n !== e && (n = n.nextSibling) : n = t.firstChild), t.insertBefore(s, n || null), () => Pt(o);
|
|
154
155
|
}
|
|
155
156
|
return wt;
|
|
156
|
-
}, gt = (t, e) =>
|
|
157
|
+
}, gt = (t, e) => un(t, null, e), Co = (t, e) => un(Qt(t), t && t.nextSibling, e), Gt = (t) => {
|
|
157
158
|
const e = document.createElement("div");
|
|
158
159
|
return yt(e, "class", t), e;
|
|
159
|
-
},
|
|
160
|
+
}, dn = (t) => {
|
|
160
161
|
const e = Gt();
|
|
161
162
|
return e.innerHTML = t.trim(), G(qe(e), (o) => Pt(o));
|
|
162
|
-
},
|
|
163
|
+
}, jn = /^--/, Eo = (t, e) => t.getPropertyValue(e) || t[e] || "", io = (t) => {
|
|
163
164
|
const e = t || 0;
|
|
164
165
|
return isFinite(e) ? e : 0;
|
|
165
|
-
}, me = (t) => io(parseFloat(t || "")),
|
|
166
|
+
}, me = (t) => io(parseFloat(t || "")), To = (t) => `${(io(t) * 100).toFixed(3)}%`, Ze = (t) => `${io(t)}px`;
|
|
166
167
|
function te(t, e) {
|
|
167
168
|
t && G(e, (o, n) => {
|
|
168
169
|
try {
|
|
169
170
|
const s = t.style, c = Ot(o) ? Ze(o) : (o || "") + "";
|
|
170
|
-
|
|
171
|
+
jn.test(n) ? s.setProperty(n, c) : s[n] = c;
|
|
171
172
|
} catch {
|
|
172
173
|
}
|
|
173
174
|
});
|
|
@@ -177,59 +178,59 @@ function Bt(t, e, o) {
|
|
|
177
178
|
let s = n ? "" : {};
|
|
178
179
|
if (t) {
|
|
179
180
|
const c = ht.getComputedStyle(t, o) || t.style;
|
|
180
|
-
s = n ?
|
|
181
|
+
s = n ? Eo(c, e) : e.reduce((r, l) => (r[l] = Eo(c, l), r), s);
|
|
181
182
|
}
|
|
182
183
|
return s;
|
|
183
184
|
}
|
|
184
|
-
const Rt = (t) => Bt(t, "direction") === "rtl",
|
|
185
|
-
const n = e ? `${e}-` : "", s = o ? `-${o}` : "", c = `${n}top${s}`, r = `${n}right${s}`, l = `${n}bottom${s}`,
|
|
185
|
+
const Rt = (t) => Bt(t, "direction") === "rtl", Oo = (t, e, o) => {
|
|
186
|
+
const n = e ? `${e}-` : "", s = o ? `-${o}` : "", c = `${n}top${s}`, r = `${n}right${s}`, l = `${n}bottom${s}`, a = `${n}left${s}`, u = Bt(t, [c, r, l, a]);
|
|
186
187
|
return {
|
|
187
188
|
t: me(u[c]),
|
|
188
189
|
r: me(u[r]),
|
|
189
190
|
b: me(u[l]),
|
|
190
|
-
l: me(u[
|
|
191
|
+
l: me(u[a])
|
|
191
192
|
};
|
|
192
|
-
}, Ve = (t, e) => `translate${ie(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`,
|
|
193
|
+
}, Ve = (t, e) => `translate${ie(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`, Wn = {
|
|
193
194
|
w: 0,
|
|
194
195
|
h: 0
|
|
195
196
|
}, Re = (t, e) => e ? {
|
|
196
197
|
w: e[`${t}Width`],
|
|
197
198
|
h: e[`${t}Height`]
|
|
198
|
-
} :
|
|
199
|
+
} : Wn, Xn = (t) => Re("inner", t || ht), le = M(Re, "offset"), fn = M(Re, "client"), Ke = M(Re, "scroll"), ao = (t) => {
|
|
199
200
|
const e = parseFloat(Bt(t, Zt)) || 0, o = parseFloat(Bt(t, Kt)) || 0;
|
|
200
201
|
return {
|
|
201
202
|
w: e - Fe(e),
|
|
202
203
|
h: o - Fe(o)
|
|
203
204
|
};
|
|
204
|
-
}, Yt = (t) => t.getBoundingClientRect(), Je = (t) => !!(t && (t[Kt] || t[Zt])),
|
|
205
|
+
}, Yt = (t) => t.getBoundingClientRect(), Je = (t) => !!(t && (t[Kt] || t[Zt])), pn = (t, e) => {
|
|
205
206
|
const o = Je(t);
|
|
206
207
|
return !Je(e) && o;
|
|
207
|
-
},
|
|
208
|
-
G(
|
|
208
|
+
}, $o = (t, e, o, n) => {
|
|
209
|
+
G(_t(e), (s) => {
|
|
209
210
|
t.removeEventListener(s, o, n);
|
|
210
211
|
});
|
|
211
212
|
}, ot = (t, e, o, n) => {
|
|
212
213
|
var s;
|
|
213
|
-
const c = (s = n && n.H) != null ? s : !0, r = n && n.I || !1, l = n && n.A || !1,
|
|
214
|
+
const c = (s = n && n.H) != null ? s : !0, r = n && n.I || !1, l = n && n.A || !1, a = {
|
|
214
215
|
passive: c,
|
|
215
216
|
capture: r
|
|
216
217
|
};
|
|
217
|
-
return
|
|
218
|
-
const
|
|
219
|
-
|
|
218
|
+
return M(bt, _t(e).map((u) => {
|
|
219
|
+
const i = l ? (f) => {
|
|
220
|
+
$o(t, u, i, r), o(f);
|
|
220
221
|
} : o;
|
|
221
|
-
return t.addEventListener(u,
|
|
222
|
+
return t.addEventListener(u, i, a), M($o, t, u, i, r);
|
|
222
223
|
}));
|
|
223
|
-
}, uo = (t) => t.stopPropagation(),
|
|
224
|
+
}, uo = (t) => t.stopPropagation(), Ao = (t) => t.preventDefault(), Gn = {
|
|
224
225
|
x: 0,
|
|
225
226
|
y: 0
|
|
226
|
-
},
|
|
227
|
+
}, ze = (t) => {
|
|
227
228
|
const e = t && Yt(t);
|
|
228
229
|
return e ? {
|
|
229
230
|
x: e.left + ht.scrollX,
|
|
230
231
|
y: e.top + ht.scrollY
|
|
231
|
-
} :
|
|
232
|
-
}, Se = (t, e, o) => o ? o.n ? -t + 0 : o.i ? e - t : t : t,
|
|
232
|
+
} : Gn;
|
|
233
|
+
}, Se = (t, e, o) => o ? o.n ? -t + 0 : o.i ? e - t : t : t, Ho = (t, e) => [Se(0, t, e), Se(t, t, e)], Lo = (t, e, o) => Ge(0, 1, Se(t, e, o) / e || 0), Mt = (t, e) => {
|
|
233
234
|
const { x: o, y: n } = Ot(e) ? {
|
|
234
235
|
x: e,
|
|
235
236
|
y: e
|
|
@@ -238,14 +239,14 @@ const Rt = (t) => Bt(t, "direction") === "rtl", To = (t, e, o) => {
|
|
|
238
239
|
}, ee = (t) => ({
|
|
239
240
|
x: t.scrollLeft,
|
|
240
241
|
y: t.scrollTop
|
|
241
|
-
}),
|
|
242
|
-
G(
|
|
242
|
+
}), ko = (t, e) => {
|
|
243
|
+
G(Xo(e), t);
|
|
243
244
|
}, Qe = (t) => {
|
|
244
245
|
const e = /* @__PURE__ */ new Map(), o = (c, r) => {
|
|
245
246
|
if (c) {
|
|
246
247
|
const l = e.get(c);
|
|
247
|
-
|
|
248
|
-
l && l[
|
|
248
|
+
ko((a) => {
|
|
249
|
+
l && l[a ? "delete" : "clear"](a);
|
|
249
250
|
}, r);
|
|
250
251
|
} else
|
|
251
252
|
e.forEach((l) => {
|
|
@@ -254,27 +255,27 @@ const Rt = (t) => Bt(t, "direction") === "rtl", To = (t, e, o) => {
|
|
|
254
255
|
}, n = (c, r) => {
|
|
255
256
|
if (Oe(c)) {
|
|
256
257
|
const u = e.get(c) || /* @__PURE__ */ new Set();
|
|
257
|
-
return e.set(c, u),
|
|
258
|
-
$t(
|
|
259
|
-
}, r),
|
|
258
|
+
return e.set(c, u), ko((i) => {
|
|
259
|
+
$t(i) && u.add(i);
|
|
260
|
+
}, r), M(o, c, r);
|
|
260
261
|
}
|
|
261
|
-
|
|
262
|
-
const l = Ht(c),
|
|
262
|
+
Wo(r) && r && o();
|
|
263
|
+
const l = Ht(c), a = [];
|
|
263
264
|
return G(l, (u) => {
|
|
264
|
-
const
|
|
265
|
-
|
|
266
|
-
}),
|
|
265
|
+
const i = c[u];
|
|
266
|
+
i && K(a, n(u, i));
|
|
267
|
+
}), M(bt, a);
|
|
267
268
|
}, s = (c, r) => {
|
|
268
269
|
G(Ut(e.get(c)), (l) => {
|
|
269
270
|
r && !Xe(r) ? l.apply(0, r) : l();
|
|
270
271
|
});
|
|
271
272
|
};
|
|
272
273
|
return n(t || {}), [n, o, s];
|
|
273
|
-
},
|
|
274
|
+
}, Do = (t) => JSON.stringify(t, (e, o) => {
|
|
274
275
|
if ($t(o))
|
|
275
276
|
throw 0;
|
|
276
277
|
return o;
|
|
277
|
-
}),
|
|
278
|
+
}), Io = (t, e) => t ? `${e}`.split(".").reduce((o, n) => o && sn(o, n) ? o[n] : void 0, t) : void 0, Yn = {
|
|
278
279
|
paddingAbsolute: !1,
|
|
279
280
|
showNativeOverlaidScrollbars: !1,
|
|
280
281
|
update: {
|
|
@@ -297,39 +298,39 @@ const Rt = (t) => Bt(t, "direction") === "rtl", To = (t, e, o) => {
|
|
|
297
298
|
clickScroll: !1,
|
|
298
299
|
pointers: ["mouse", "touch", "pen"]
|
|
299
300
|
}
|
|
300
|
-
},
|
|
301
|
+
}, mn = (t, e) => {
|
|
301
302
|
const o = {}, n = At(Ht(e), Ht(t));
|
|
302
303
|
return G(n, (s) => {
|
|
303
304
|
const c = t[s], r = e[s];
|
|
304
305
|
if (ie(c) && ie(r))
|
|
305
|
-
W(o[s] = {},
|
|
306
|
-
else if (
|
|
306
|
+
W(o[s] = {}, mn(c, r)), ro(o[s]) && delete o[s];
|
|
307
|
+
else if (sn(e, s) && r !== c) {
|
|
307
308
|
let l = !0;
|
|
308
309
|
if (St(c) || St(r))
|
|
309
310
|
try {
|
|
310
|
-
|
|
311
|
+
Do(c) === Do(r) && (l = !1);
|
|
311
312
|
} catch {
|
|
312
313
|
}
|
|
313
314
|
l && (o[s] = r);
|
|
314
315
|
}
|
|
315
316
|
}), o;
|
|
316
|
-
},
|
|
317
|
+
}, Ro = (t, e, o) => (n) => [Io(t, n), o || Io(e, n) !== void 0], de = "data-overlayscrollbars", gn = "os-environment", qn = `${gn}-scrollbar-hidden`, _e = `${de}-initialize`, mt = de, hn = `${mt}-overflow-x`, bn = `${mt}-overflow-y`, vn = "overflowVisible", Zn = "scrollbarPressed", to = "updating", Kn = "body", It = `${de}-viewport`, Jn = "arrange", yn = "scrollbarHidden", qt = vn, eo = `${de}-padding`, Qn = qt, Po = `${de}-content`, fo = "os-size-observer", ts = `${fo}-appear`, es = `${fo}-listener`, os = "os-trinsic-observer", ns = "os-theme-none", ft = "os-scrollbar", ss = `${ft}-rtl`, cs = `${ft}-horizontal`, rs = `${ft}-vertical`, xn = `${ft}-track`, po = `${ft}-handle`, ls = `${ft}-visible`, is = `${ft}-cornerless`, Mo = `${ft}-interaction`, No = `${ft}-unusable`, oo = `${ft}-auto-hide`, Vo = `${oo}-hidden`, zo = `${ft}-wheel`, as = `${xn}-interactive`, us = `${po}-interactive`, wn = {}, Sn = {}, ds = (t) => {
|
|
317
318
|
G(t, (e) => G(e, (o, n) => {
|
|
318
|
-
|
|
319
|
+
wn[n] = e[n];
|
|
319
320
|
}));
|
|
320
|
-
},
|
|
321
|
-
const { static: s, instance: c } = t[n], [r, l,
|
|
321
|
+
}, Cn = (t, e, o) => Ht(t).map((n) => {
|
|
322
|
+
const { static: s, instance: c } = t[n], [r, l, a] = o || [], u = o ? c : s;
|
|
322
323
|
if (u) {
|
|
323
|
-
const
|
|
324
|
-
return (
|
|
324
|
+
const i = o ? u(r, l, e) : u(e);
|
|
325
|
+
return (a || Sn)[n] = i;
|
|
325
326
|
}
|
|
326
|
-
}), oe = (t) =>
|
|
327
|
+
}), oe = (t) => Sn[t], fs = "__osOptionsValidationPlugin", ps = "__osSizeObserverPlugin", ms = (t, e) => {
|
|
327
328
|
const { T: o } = e, [n, s] = t("showNativeOverlaidScrollbars");
|
|
328
329
|
return [n && o.x && o.y, s];
|
|
329
|
-
}, Ce = (t) => t.indexOf(
|
|
330
|
-
const { D: o } = t, n = (
|
|
331
|
-
const u = Bt(o,
|
|
332
|
-
return [u,
|
|
330
|
+
}, Ce = (t) => t.indexOf(tn) === 0, En = (t, e) => {
|
|
331
|
+
const { D: o } = t, n = (a) => {
|
|
332
|
+
const u = Bt(o, a), f = (e ? e[a] : u) === "scroll";
|
|
333
|
+
return [u, f];
|
|
333
334
|
}, [s, c] = n(Le), [r, l] = n(ke);
|
|
334
335
|
return {
|
|
335
336
|
k: {
|
|
@@ -341,58 +342,58 @@ const Rt = (t) => Bt(t, "direction") === "rtl", To = (t, e, o) => {
|
|
|
341
342
|
y: l
|
|
342
343
|
}
|
|
343
344
|
};
|
|
344
|
-
},
|
|
345
|
-
const s = e.x || e.y, c = (
|
|
346
|
-
const
|
|
347
|
-
return [
|
|
348
|
-
}, [r, l] = c(o.x, e.x), [
|
|
349
|
-
return n[Le] = l &&
|
|
350
|
-
}, mo = "__osScrollbarsHidingPlugin",
|
|
345
|
+
}, gs = (t, e, o, n) => {
|
|
346
|
+
const s = e.x || e.y, c = (i, f) => {
|
|
347
|
+
const m = Ce(i), T = m && s ? "hidden" : "", $ = f && m && i.replace(`${tn}-`, "") || T;
|
|
348
|
+
return [f && !m ? i : "", Ce($) ? "hidden" : $];
|
|
349
|
+
}, [r, l] = c(o.x, e.x), [a, u] = c(o.y, e.y);
|
|
350
|
+
return n[Le] = l && a ? l : r, n[ke] = u && r ? u : a, En(t, n);
|
|
351
|
+
}, mo = "__osScrollbarsHidingPlugin", hs = "__osClickScrollPlugin";
|
|
351
352
|
let Be;
|
|
352
|
-
const
|
|
353
|
-
const t = (
|
|
354
|
-
gt(
|
|
355
|
-
const
|
|
356
|
-
return
|
|
357
|
-
x:
|
|
358
|
-
y:
|
|
353
|
+
const bs = () => {
|
|
354
|
+
const t = (y, E, I, A) => {
|
|
355
|
+
gt(y, E);
|
|
356
|
+
const z = fn(E), _ = le(E), N = ao(I);
|
|
357
|
+
return A && Pt(E), {
|
|
358
|
+
x: _.h - z.h + N.h,
|
|
359
|
+
y: _.w - z.w + N.w
|
|
359
360
|
};
|
|
360
|
-
}, e = (
|
|
361
|
+
}, e = (y) => {
|
|
361
362
|
let E = !1;
|
|
362
|
-
const
|
|
363
|
+
const I = we(y, qn);
|
|
363
364
|
try {
|
|
364
|
-
E = Bt(
|
|
365
|
+
E = Bt(y, "scrollbar-width") === "none" || Bt(y, "display", "::-webkit-scrollbar") === "none";
|
|
365
366
|
} catch {
|
|
366
367
|
}
|
|
367
|
-
return
|
|
368
|
-
}, o = (
|
|
369
|
-
te(
|
|
368
|
+
return I(), E;
|
|
369
|
+
}, o = (y, E) => {
|
|
370
|
+
te(y, {
|
|
370
371
|
[Le]: Jt,
|
|
371
372
|
[ke]: Jt,
|
|
372
373
|
direction: "rtl"
|
|
373
|
-
}), Mt(
|
|
374
|
+
}), Mt(y, {
|
|
374
375
|
x: 0
|
|
375
376
|
});
|
|
376
|
-
const
|
|
377
|
-
Mt(
|
|
377
|
+
const I = ze(y), A = ze(E);
|
|
378
|
+
Mt(y, {
|
|
378
379
|
x: -999
|
|
379
380
|
});
|
|
380
|
-
const
|
|
381
|
+
const z = ze(E);
|
|
381
382
|
return {
|
|
382
|
-
i:
|
|
383
|
-
n:
|
|
383
|
+
i: I.x === A.x,
|
|
384
|
+
n: A.x !== z.x
|
|
384
385
|
};
|
|
385
|
-
}, { body: n } = document, c =
|
|
386
|
+
}, { body: n } = document, c = dn(`<div class="${gn}"><div></div></div>`)[0], r = c.firstChild, [l, , a] = Qe(), [u, i] = xt({
|
|
386
387
|
o: t(n, c, r),
|
|
387
|
-
u:
|
|
388
|
-
},
|
|
389
|
-
x:
|
|
390
|
-
y:
|
|
391
|
-
},
|
|
388
|
+
u: on
|
|
389
|
+
}, M(t, n, c, r, !0)), [f] = i(), m = e(c), T = {
|
|
390
|
+
x: f.x === 0,
|
|
391
|
+
y: f.y === 0
|
|
392
|
+
}, $ = {
|
|
392
393
|
elements: {
|
|
393
394
|
host: null,
|
|
394
|
-
padding: !
|
|
395
|
-
viewport: (
|
|
395
|
+
padding: !m,
|
|
396
|
+
viewport: (y) => m && y === y.ownerDocument.body && y,
|
|
396
397
|
content: !1
|
|
397
398
|
},
|
|
398
399
|
scrollbars: {
|
|
@@ -402,563 +403,563 @@ const hs = () => {
|
|
|
402
403
|
nativeScrollbarsOverlaid: !1,
|
|
403
404
|
body: null
|
|
404
405
|
}
|
|
405
|
-
}, L = W({},
|
|
406
|
-
P:
|
|
407
|
-
T
|
|
408
|
-
L:
|
|
406
|
+
}, L = W({}, Yn), R = M(W, {}, L), k = M(W, {}, $), S = {
|
|
407
|
+
P: f,
|
|
408
|
+
T,
|
|
409
|
+
L: m,
|
|
409
410
|
J: !!We,
|
|
410
411
|
K: o(c, r),
|
|
411
|
-
Z:
|
|
412
|
+
Z: M(l, "r"),
|
|
412
413
|
G: k,
|
|
413
|
-
tt: (
|
|
414
|
-
nt:
|
|
415
|
-
ot: (
|
|
416
|
-
st: W({},
|
|
414
|
+
tt: (y) => W($, y) && k(),
|
|
415
|
+
nt: R,
|
|
416
|
+
ot: (y) => W(L, y) && R(),
|
|
417
|
+
st: W({}, $),
|
|
417
418
|
et: W({}, L)
|
|
418
419
|
};
|
|
419
420
|
return Et(c, "style"), Pt(c), ht.addEventListener("resize", () => {
|
|
420
|
-
let
|
|
421
|
-
if (!
|
|
421
|
+
let y;
|
|
422
|
+
if (!m && (!T.x || !T.y)) {
|
|
422
423
|
const E = oe(mo);
|
|
423
|
-
|
|
424
|
+
y = !!(E ? E.Y() : wt)(S, u);
|
|
424
425
|
}
|
|
425
|
-
|
|
426
|
-
}),
|
|
427
|
-
}, vt = () => (Be || (Be =
|
|
426
|
+
a("r", [y]);
|
|
427
|
+
}), S;
|
|
428
|
+
}, vt = () => (Be || (Be = bs()), Be), go = (t, e) => $t(e) ? e.apply(0, t) : e, vs = (t, e, o, n) => {
|
|
428
429
|
const s = ue(n) ? o : n;
|
|
429
430
|
return go(t, s) || e.apply(0, t);
|
|
430
|
-
},
|
|
431
|
+
}, Tn = (t, e, o, n) => {
|
|
431
432
|
const s = ue(n) ? o : n, c = go(t, s);
|
|
432
433
|
return !!c && (re(c) ? c : e.apply(0, t));
|
|
433
|
-
},
|
|
434
|
-
const { nativeScrollbarsOverlaid: o, body: n } = e || {}, { T: s, L: c, G: r } = vt(), { nativeScrollbarsOverlaid: l, body:
|
|
435
|
-
return !!
|
|
436
|
-
}, ho = /* @__PURE__ */ new WeakMap(),
|
|
434
|
+
}, ys = (t, e) => {
|
|
435
|
+
const { nativeScrollbarsOverlaid: o, body: n } = e || {}, { T: s, L: c, G: r } = vt(), { nativeScrollbarsOverlaid: l, body: a } = r().cancel, u = o ?? l, i = ue(n) ? a : n, f = (s.x || s.y) && u, m = t && (Te(i) ? !c : i);
|
|
436
|
+
return !!f || !!m;
|
|
437
|
+
}, ho = /* @__PURE__ */ new WeakMap(), xs = (t, e) => {
|
|
437
438
|
ho.set(t, e);
|
|
438
|
-
},
|
|
439
|
+
}, ws = (t) => {
|
|
439
440
|
ho.delete(t);
|
|
440
|
-
},
|
|
441
|
+
}, On = (t) => ho.get(t), Ss = (t, e, o) => {
|
|
441
442
|
let n = !1;
|
|
442
443
|
const s = o ? /* @__PURE__ */ new WeakMap() : !1, c = () => {
|
|
443
444
|
n = !0;
|
|
444
445
|
}, r = (l) => {
|
|
445
446
|
if (s && o) {
|
|
446
|
-
const
|
|
447
|
-
const [
|
|
448
|
-
return [
|
|
447
|
+
const a = o.map((u) => {
|
|
448
|
+
const [i, f] = u || [];
|
|
449
|
+
return [f && i ? (l || an)(i, t) : [], f];
|
|
449
450
|
});
|
|
450
|
-
G(
|
|
451
|
-
const
|
|
452
|
-
if (t.contains(
|
|
453
|
-
const
|
|
454
|
-
n ? (
|
|
451
|
+
G(a, (u) => G(u[0], (i) => {
|
|
452
|
+
const f = u[1], m = s.get(i) || [];
|
|
453
|
+
if (t.contains(i) && f) {
|
|
454
|
+
const $ = ot(i, f, (L) => {
|
|
455
|
+
n ? ($(), s.delete(i)) : e(L);
|
|
455
456
|
});
|
|
456
|
-
s.set(
|
|
457
|
+
s.set(i, K(m, $));
|
|
457
458
|
} else
|
|
458
|
-
bt(
|
|
459
|
+
bt(m), s.delete(i);
|
|
459
460
|
}));
|
|
460
461
|
}
|
|
461
462
|
};
|
|
462
463
|
return r(), [c, r];
|
|
463
464
|
}, _o = (t, e, o, n) => {
|
|
464
465
|
let s = !1;
|
|
465
|
-
const { ct: c, rt: r, lt: l, it:
|
|
466
|
+
const { ct: c, rt: r, lt: l, it: a, ut: u, ft: i } = n || {}, f = nn(() => s && o(!0), {
|
|
466
467
|
v: 33,
|
|
467
468
|
p: 99
|
|
468
|
-
}), [
|
|
469
|
+
}), [m, T] = Ss(t, f, l), $ = c || [], L = r || [], R = At($, L), k = (y, E) => {
|
|
469
470
|
if (!Xe(E)) {
|
|
470
|
-
const
|
|
471
|
-
let
|
|
472
|
-
if (G(E, (
|
|
473
|
-
const { attributeName:
|
|
471
|
+
const I = u || wt, A = i || wt, z = [], _ = [];
|
|
472
|
+
let N = !1, b = !1;
|
|
473
|
+
if (G(E, (p) => {
|
|
474
|
+
const { attributeName: O, target: v, type: C, oldValue: V, addedNodes: X, removedNodes: U } = p, F = C === "attributes", Y = C === "childList", Q = t === v, nt = F && O, tt = nt && De(v, O || "") || null, D = nt && V !== tt, J = He(L, O) && D;
|
|
474
475
|
if (e && (Y || !Q)) {
|
|
475
|
-
const et = F &&
|
|
476
|
-
G(X, (
|
|
476
|
+
const et = F && D, it = et && a && Ye(v, a), g = (it ? !I(v, O, V, tt) : !F || et) && !A(p, !!it, t, n);
|
|
477
|
+
G(X, (h) => K(z, h)), G(U, (h) => K(z, h)), b = b || g;
|
|
477
478
|
}
|
|
478
|
-
!e && Q &&
|
|
479
|
-
}),
|
|
480
|
-
return !
|
|
481
|
-
if (!Xe(
|
|
482
|
-
const
|
|
483
|
-
return !
|
|
479
|
+
!e && Q && D && !I(v, O, V, tt) && (K(_, O), N = N || J);
|
|
480
|
+
}), T((p) => wo(z).reduce((O, v) => (K(O, an(p, v)), Ye(v, p) ? K(O, v) : O), [])), e)
|
|
481
|
+
return !y && b && o(!1), [!1];
|
|
482
|
+
if (!Xe(_) || N) {
|
|
483
|
+
const p = [wo(_), N];
|
|
484
|
+
return !y && o.apply(0, p), p;
|
|
484
485
|
}
|
|
485
486
|
}
|
|
486
|
-
},
|
|
487
|
-
return [() => (
|
|
487
|
+
}, S = new Mn(M(k, !1));
|
|
488
|
+
return [() => (S.observe(t, {
|
|
488
489
|
attributes: !0,
|
|
489
490
|
attributeOldValue: !0,
|
|
490
|
-
attributeFilter:
|
|
491
|
+
attributeFilter: R,
|
|
491
492
|
subtree: e,
|
|
492
493
|
childList: e,
|
|
493
494
|
characterData: e
|
|
494
495
|
}), s = !0, () => {
|
|
495
|
-
s && (
|
|
496
|
+
s && (m(), S.disconnect(), s = !1);
|
|
496
497
|
}), () => {
|
|
497
498
|
if (s)
|
|
498
|
-
return
|
|
499
|
+
return f.m(), k(!0, S.takeRecords());
|
|
499
500
|
}];
|
|
500
|
-
},
|
|
501
|
-
const { _t: s, dt: c } = o || {}, r = oe(
|
|
501
|
+
}, $n = (t, e, o) => {
|
|
502
|
+
const { _t: s, dt: c } = o || {}, r = oe(ps), { K: l } = vt(), a = M(Rt, t), [u] = xt({
|
|
502
503
|
o: !1,
|
|
503
504
|
_: !0
|
|
504
505
|
});
|
|
505
506
|
return () => {
|
|
506
|
-
const
|
|
507
|
-
const
|
|
508
|
-
let
|
|
509
|
-
if (
|
|
510
|
-
const [
|
|
511
|
-
|
|
512
|
-
} else k ? [, E] = L :
|
|
507
|
+
const i = [], m = dn(`<div class="${fo}"><div class="${es}"></div></div>`)[0], T = m.firstChild, $ = (L) => {
|
|
508
|
+
const R = L instanceof ResizeObserverEntry, k = !R && St(L);
|
|
509
|
+
let S = !1, y = !1, E = !0;
|
|
510
|
+
if (R) {
|
|
511
|
+
const [I, , A] = u(L.contentRect), z = Je(I), _ = pn(I, A);
|
|
512
|
+
y = !A || _, S = !y && !z, E = !S;
|
|
513
|
+
} else k ? [, E] = L : y = L === !0;
|
|
513
514
|
if (s && E) {
|
|
514
|
-
const
|
|
515
|
-
Mt(
|
|
516
|
-
x: Se(3333333, 3333333,
|
|
515
|
+
const I = k ? L[0] : Rt(m);
|
|
516
|
+
Mt(m, {
|
|
517
|
+
x: Se(3333333, 3333333, I && l),
|
|
517
518
|
y: 3333333
|
|
518
519
|
});
|
|
519
520
|
}
|
|
520
|
-
|
|
521
|
+
S || e({
|
|
521
522
|
vt: k ? L : void 0,
|
|
522
523
|
ht: !k,
|
|
523
|
-
dt:
|
|
524
|
+
dt: y
|
|
524
525
|
});
|
|
525
526
|
};
|
|
526
527
|
if (ye) {
|
|
527
|
-
const L = new ye((
|
|
528
|
-
L.observe(
|
|
528
|
+
const L = new ye((R) => $(R.pop()));
|
|
529
|
+
L.observe(T), K(i, () => {
|
|
529
530
|
L.disconnect();
|
|
530
531
|
});
|
|
531
532
|
} else if (r) {
|
|
532
|
-
const [L,
|
|
533
|
-
K(
|
|
533
|
+
const [L, R] = r(T, $, c);
|
|
534
|
+
K(i, At([we(m, ts), ot(m, "animationstart", L)], R));
|
|
534
535
|
} else
|
|
535
536
|
return wt;
|
|
536
537
|
if (s) {
|
|
537
538
|
const [L] = xt({
|
|
538
539
|
o: void 0
|
|
539
|
-
},
|
|
540
|
-
K(
|
|
541
|
-
const k = L(), [
|
|
542
|
-
|
|
540
|
+
}, a);
|
|
541
|
+
K(i, ot(m, "scroll", (R) => {
|
|
542
|
+
const k = L(), [S, y, E] = k;
|
|
543
|
+
y && (lo(T, "ltr rtl"), we(T, S ? "rtl" : "ltr"), $([!!S, y, E])), uo(R);
|
|
543
544
|
}));
|
|
544
545
|
}
|
|
545
|
-
return
|
|
546
|
+
return M(bt, K(i, gt(t, m)));
|
|
546
547
|
};
|
|
547
|
-
},
|
|
548
|
+
}, Cs = (t, e) => {
|
|
548
549
|
let o;
|
|
549
|
-
const n = (
|
|
550
|
+
const n = (a) => a.h === 0 || a.isIntersecting || a.intersectionRatio > 0, s = Gt(os), [c] = xt({
|
|
550
551
|
o: !1
|
|
551
|
-
}), r = (
|
|
552
|
-
if (
|
|
553
|
-
const
|
|
554
|
-
return
|
|
552
|
+
}), r = (a, u) => {
|
|
553
|
+
if (a) {
|
|
554
|
+
const i = c(n(a)), [, f] = i;
|
|
555
|
+
return f && !u && e(i) && [i];
|
|
555
556
|
}
|
|
556
|
-
}, l = (
|
|
557
|
+
}, l = (a, u) => r(u.pop(), a);
|
|
557
558
|
return [() => {
|
|
558
|
-
const
|
|
559
|
-
if (
|
|
560
|
-
o = new
|
|
559
|
+
const a = [];
|
|
560
|
+
if (xo)
|
|
561
|
+
o = new xo(M(l, !1), {
|
|
561
562
|
root: t
|
|
562
|
-
}), o.observe(s), K(
|
|
563
|
+
}), o.observe(s), K(a, () => {
|
|
563
564
|
o.disconnect();
|
|
564
565
|
});
|
|
565
566
|
else {
|
|
566
567
|
const u = () => {
|
|
567
|
-
const
|
|
568
|
-
r(
|
|
568
|
+
const i = le(s);
|
|
569
|
+
r(i);
|
|
569
570
|
};
|
|
570
|
-
K(
|
|
571
|
+
K(a, $n(s, u)()), u();
|
|
571
572
|
}
|
|
572
|
-
return
|
|
573
|
+
return M(bt, K(a, gt(t, s)));
|
|
573
574
|
}, () => o && l(!0, o.takeRecords())];
|
|
574
|
-
},
|
|
575
|
-
let s, c, r, l,
|
|
576
|
-
const { L:
|
|
575
|
+
}, Es = (t, e, o, n) => {
|
|
576
|
+
let s, c, r, l, a, u;
|
|
577
|
+
const { L: i } = vt(), f = `[${mt}]`, m = `[${It}]`, T = ["tabindex"], $ = ["wrap", "cols", "rows"], L = ["id", "class", "style", "open"], { gt: R, bt: k, D: S, wt: y, St: E, V: I, yt: A, Ot: z } = t, _ = {
|
|
577
578
|
$t: !1,
|
|
578
|
-
N: Rt(
|
|
579
|
-
},
|
|
580
|
-
u:
|
|
579
|
+
N: Rt(R)
|
|
580
|
+
}, N = vt(), b = oe(mo), [p] = xt({
|
|
581
|
+
u: en,
|
|
581
582
|
o: {
|
|
582
583
|
w: 0,
|
|
583
584
|
h: 0
|
|
584
585
|
}
|
|
585
586
|
}, () => {
|
|
586
|
-
const
|
|
587
|
-
|
|
588
|
-
const
|
|
589
|
-
return
|
|
590
|
-
w:
|
|
591
|
-
h:
|
|
587
|
+
const d = b && b.M(t, e, _, N, o).W, g = A(qt), h = !I && A(Jn), x = h && ee(S);
|
|
588
|
+
z(qt), I && z(to, !0);
|
|
589
|
+
const w = h && d && d()[0], H = Ke(y), P = Ke(S), B = ao(S);
|
|
590
|
+
return z(qt, g), I && z(to), w && w(), Mt(S, x), {
|
|
591
|
+
w: P.w + H.w + B.w,
|
|
592
|
+
h: P.h + H.h + B.h
|
|
592
593
|
};
|
|
593
|
-
}),
|
|
594
|
+
}), O = E ? $ : At(L, $), v = nn(n, {
|
|
594
595
|
v: () => s,
|
|
595
596
|
p: () => c,
|
|
596
|
-
S(
|
|
597
|
-
const [
|
|
598
|
-
return [At(Ht(
|
|
597
|
+
S(d, g) {
|
|
598
|
+
const [h] = d, [x] = g;
|
|
599
|
+
return [At(Ht(h), Ht(x)).reduce((w, H) => (w[H] = h[H] || x[H], w), {})];
|
|
599
600
|
}
|
|
600
|
-
}),
|
|
601
|
-
if (
|
|
602
|
-
const
|
|
603
|
-
W(
|
|
604
|
-
Ct: u !==
|
|
605
|
-
}), W(
|
|
606
|
-
N:
|
|
607
|
-
}), u =
|
|
601
|
+
}), C = (d) => {
|
|
602
|
+
if (I) {
|
|
603
|
+
const g = Rt(R);
|
|
604
|
+
W(d, {
|
|
605
|
+
Ct: u !== g
|
|
606
|
+
}), W(_, {
|
|
607
|
+
N: g
|
|
608
|
+
}), u = g;
|
|
608
609
|
}
|
|
609
|
-
}, V = (
|
|
610
|
-
G(
|
|
611
|
-
if (He(
|
|
612
|
-
const
|
|
613
|
-
Oe(
|
|
610
|
+
}, V = (d) => {
|
|
611
|
+
G(d || T, (g) => {
|
|
612
|
+
if (He(T, g)) {
|
|
613
|
+
const h = De(k, g);
|
|
614
|
+
Oe(h) ? yt(S, g, h) : Et(S, g);
|
|
614
615
|
}
|
|
615
616
|
});
|
|
616
|
-
}, X = (
|
|
617
|
-
const [
|
|
618
|
-
xt:
|
|
617
|
+
}, X = (d, g) => {
|
|
618
|
+
const [h, x] = d, w = {
|
|
619
|
+
xt: x
|
|
619
620
|
};
|
|
620
|
-
return W(
|
|
621
|
-
$t:
|
|
622
|
-
}), !
|
|
623
|
-
}, U = ({ ht:
|
|
624
|
-
const
|
|
625
|
-
ht:
|
|
626
|
-
dt:
|
|
627
|
-
Ct:
|
|
621
|
+
return W(_, {
|
|
622
|
+
$t: h
|
|
623
|
+
}), !g && n(w), w;
|
|
624
|
+
}, U = ({ ht: d, vt: g, dt: h }) => {
|
|
625
|
+
const w = !(d && !h && !g) && i ? v : n, [H, P] = g || [], B = {
|
|
626
|
+
ht: d || h,
|
|
627
|
+
dt: h,
|
|
628
|
+
Ct: P
|
|
628
629
|
};
|
|
629
|
-
|
|
630
|
-
N:
|
|
631
|
-
}),
|
|
632
|
-
}, F = (
|
|
633
|
-
const [,
|
|
634
|
-
Ht:
|
|
630
|
+
C(B), g && W(_, {
|
|
631
|
+
N: H
|
|
632
|
+
}), w(B);
|
|
633
|
+
}, F = (d, g) => {
|
|
634
|
+
const [, h] = p(), x = {
|
|
635
|
+
Ht: h
|
|
635
636
|
};
|
|
636
|
-
return
|
|
637
|
-
}, Y = (
|
|
638
|
-
const
|
|
639
|
-
It:
|
|
637
|
+
return C(x), h && !g && (d ? n : v)(x), x;
|
|
638
|
+
}, Y = (d, g, h) => {
|
|
639
|
+
const x = {
|
|
640
|
+
It: g
|
|
640
641
|
};
|
|
641
|
-
return
|
|
642
|
-
}, { Z: Q } =
|
|
642
|
+
return C(x), g && !h ? v(x) : I || V(d), x;
|
|
643
|
+
}, { Z: Q } = N, [nt, tt] = y ? Cs(k, X) : [], D = !I && $n(k, U, {
|
|
643
644
|
dt: !0,
|
|
644
645
|
_t: !0
|
|
645
646
|
}), [J, et] = _o(k, !1, Y, {
|
|
646
647
|
rt: L,
|
|
647
|
-
ct: At(L,
|
|
648
|
-
}), it =
|
|
649
|
-
const
|
|
648
|
+
ct: At(L, T)
|
|
649
|
+
}), it = I && ye && new ye((d) => {
|
|
650
|
+
const g = d[d.length - 1].contentRect;
|
|
650
651
|
U({
|
|
651
652
|
ht: !0,
|
|
652
|
-
dt:
|
|
653
|
-
}),
|
|
653
|
+
dt: pn(g, a)
|
|
654
|
+
}), a = g;
|
|
654
655
|
});
|
|
655
656
|
return [() => {
|
|
656
657
|
V(), it && it.observe(k);
|
|
657
|
-
const
|
|
658
|
-
const [,
|
|
659
|
-
|
|
660
|
-
zt:
|
|
661
|
-
Ht:
|
|
658
|
+
const d = D && D(), g = nt && nt(), h = J(), x = Q((w) => {
|
|
659
|
+
const [, H] = p();
|
|
660
|
+
v({
|
|
661
|
+
zt: w,
|
|
662
|
+
Ht: H
|
|
662
663
|
});
|
|
663
664
|
});
|
|
664
665
|
return () => {
|
|
665
|
-
it && it.disconnect(),
|
|
666
|
+
it && it.disconnect(), d && d(), g && g(), l && l(), h(), x();
|
|
666
667
|
};
|
|
667
|
-
}, ({ Et:
|
|
668
|
-
const
|
|
668
|
+
}, ({ Et: d, At: g, Tt: h }) => {
|
|
669
|
+
const x = {}, [w] = d("update.ignoreMutation"), [H, P] = d("update.attributes"), [B, q] = d("update.elementEvents"), [rt, at] = d("update.debounce"), Z = q || P, lt = g || h, Nt = (j) => $t(w) && w(j);
|
|
669
670
|
if (Z) {
|
|
670
671
|
r && r(), l && l();
|
|
671
|
-
const [j, ct] = _o(
|
|
672
|
-
ct: At(
|
|
672
|
+
const [j, ct] = _o(y || S, !0, F, {
|
|
673
|
+
ct: At(O, H || []),
|
|
673
674
|
lt: B,
|
|
674
|
-
it:
|
|
675
|
+
it: f,
|
|
675
676
|
ft: (ut, dt) => {
|
|
676
677
|
const { target: st, attributeName: pt } = ut;
|
|
677
|
-
return (!dt && pt && !
|
|
678
|
+
return (!dt && pt && !I ? Un(st, f, m) : !1) || !!Xt(st, `.${ft}`) || !!Nt(ut);
|
|
678
679
|
}
|
|
679
680
|
});
|
|
680
681
|
l = j(), r = ct;
|
|
681
682
|
}
|
|
682
683
|
if (at)
|
|
683
|
-
if (
|
|
684
|
+
if (v.m(), St(rt)) {
|
|
684
685
|
const j = rt[0], ct = rt[1];
|
|
685
686
|
s = Ot(j) && j, c = Ot(ct) && ct;
|
|
686
687
|
} else Ot(rt) ? (s = rt, c = !1) : (s = !1, c = !1);
|
|
687
688
|
if (lt) {
|
|
688
689
|
const j = et(), ct = tt && tt(), ut = r && r();
|
|
689
|
-
j && W(
|
|
690
|
+
j && W(x, Y(j[0], j[1], lt)), ct && W(x, X(ct[0], lt)), ut && W(x, F(ut[0], lt));
|
|
690
691
|
}
|
|
691
|
-
return
|
|
692
|
-
},
|
|
693
|
-
},
|
|
694
|
-
const { G: s, K: c } = vt(), { scrollbars: r } = s(), { slot: l } = r, { gt:
|
|
695
|
-
source:
|
|
696
|
-
axis:
|
|
697
|
-
}),
|
|
698
|
-
if (
|
|
699
|
-
const B =
|
|
692
|
+
return C(x), x;
|
|
693
|
+
}, _];
|
|
694
|
+
}, Ts = (t, e, o, n) => {
|
|
695
|
+
const { G: s, K: c } = vt(), { scrollbars: r } = s(), { slot: l } = r, { gt: a, bt: u, D: i, Dt: f, kt: m, Rt: T, V: $ } = e, { scrollbars: L } = f ? {} : t, { slot: R } = L || {}, k = /* @__PURE__ */ new Map(), S = (d) => We && new We({
|
|
696
|
+
source: m,
|
|
697
|
+
axis: d
|
|
698
|
+
}), y = S("x"), E = S("y"), I = Tn([a, u, i], () => $ && T ? a : u, l, R), A = (d, g) => {
|
|
699
|
+
if (g) {
|
|
700
|
+
const B = d ? Zt : Kt, { Mt: q, Vt: rt } = g, at = Yt(rt)[B], Z = Yt(q)[B];
|
|
700
701
|
return Ge(0, 1, at / Z || 0);
|
|
701
702
|
}
|
|
702
|
-
const
|
|
703
|
-
return Ge(0, 1,
|
|
704
|
-
},
|
|
705
|
-
const
|
|
706
|
-
return 1 /
|
|
707
|
-
},
|
|
703
|
+
const h = d ? "x" : "y", { Lt: x, Pt: w } = o, H = w[h], P = x[h];
|
|
704
|
+
return Ge(0, 1, H / (H + P) || 0);
|
|
705
|
+
}, z = (d, g, h, x) => {
|
|
706
|
+
const w = A(h, d);
|
|
707
|
+
return 1 / w * (1 - w) * (x ? 1 - g : g) || 0;
|
|
708
|
+
}, _ = (d, g) => W(d, g ? {
|
|
708
709
|
clear: ["left"]
|
|
709
|
-
} : {}),
|
|
710
|
-
k.forEach((
|
|
711
|
-
(
|
|
712
|
-
|
|
713
|
-
}), k.delete(
|
|
710
|
+
} : {}), N = (d) => {
|
|
711
|
+
k.forEach((g, h) => {
|
|
712
|
+
(d ? He(Xo(d), h) : !0) && (G(g || [], (w) => {
|
|
713
|
+
w && w.cancel();
|
|
714
|
+
}), k.delete(h));
|
|
714
715
|
});
|
|
715
|
-
},
|
|
716
|
-
const
|
|
717
|
-
|
|
718
|
-
composite:
|
|
719
|
-
}) : k.set(
|
|
720
|
-
timeline:
|
|
721
|
-
composite:
|
|
716
|
+
}, b = (d, g, h, x) => {
|
|
717
|
+
const w = k.get(d) || [], H = w.find((P) => P && P.timeline === g);
|
|
718
|
+
H ? H.effect = new KeyframeEffect(d, h, {
|
|
719
|
+
composite: x
|
|
720
|
+
}) : k.set(d, At(w, [d.animate(h, {
|
|
721
|
+
timeline: g,
|
|
722
|
+
composite: x
|
|
722
723
|
})]));
|
|
723
|
-
},
|
|
724
|
-
const
|
|
725
|
-
G(
|
|
726
|
-
|
|
724
|
+
}, p = (d, g, h) => {
|
|
725
|
+
const x = h ? we : lo;
|
|
726
|
+
G(d, (w) => {
|
|
727
|
+
x(w.Ut, g);
|
|
727
728
|
});
|
|
728
|
-
},
|
|
729
|
-
G(
|
|
730
|
-
const [
|
|
731
|
-
te(
|
|
729
|
+
}, O = (d, g) => {
|
|
730
|
+
G(d, (h) => {
|
|
731
|
+
const [x, w] = g(h);
|
|
732
|
+
te(x, w);
|
|
732
733
|
});
|
|
733
|
-
},
|
|
734
|
-
|
|
735
|
-
const { Vt:
|
|
736
|
-
return [
|
|
737
|
-
[
|
|
734
|
+
}, v = (d, g) => {
|
|
735
|
+
O(d, (h) => {
|
|
736
|
+
const { Vt: x } = h;
|
|
737
|
+
return [x, {
|
|
738
|
+
[g ? Zt : Kt]: To(A(g))
|
|
738
739
|
}];
|
|
739
740
|
});
|
|
740
|
-
},
|
|
741
|
-
const { Lt:
|
|
742
|
-
if (
|
|
743
|
-
G(
|
|
744
|
-
const { Ut:
|
|
745
|
-
|
|
746
|
-
transform:
|
|
741
|
+
}, C = (d, g) => {
|
|
742
|
+
const { Lt: h } = o, x = g ? h.x : h.y, w = (H, P, B) => Ve(To(z(H, Lo(P, x, B), g, B)), g);
|
|
743
|
+
if (y && E)
|
|
744
|
+
G(d, (H) => {
|
|
745
|
+
const { Ut: P, Vt: B } = H, q = g && Rt(P) && c;
|
|
746
|
+
b(B, g ? y : E, _({
|
|
747
|
+
transform: Ho(x, q).map((rt) => w(H, rt, q))
|
|
747
748
|
}, q));
|
|
748
749
|
});
|
|
749
750
|
else {
|
|
750
|
-
const
|
|
751
|
-
|
|
752
|
-
const { Vt: B, Ut: q } =
|
|
751
|
+
const H = ee(m);
|
|
752
|
+
O(d, (P) => {
|
|
753
|
+
const { Vt: B, Ut: q } = P;
|
|
753
754
|
return [B, {
|
|
754
|
-
transform:
|
|
755
|
+
transform: w(P, g ? H.x : H.y, g && Rt(q) && c)
|
|
755
756
|
}];
|
|
756
757
|
});
|
|
757
758
|
}
|
|
758
|
-
}, V = (
|
|
759
|
-
const
|
|
760
|
-
|
|
759
|
+
}, V = (d) => $ && !T && Qt(d) === i, X = [], U = [], F = [], Y = (d, g, h) => {
|
|
760
|
+
const x = Wo(h), w = x ? h : !0, H = x ? !h : !0;
|
|
761
|
+
w && p(U, d, g), H && p(F, d, g);
|
|
761
762
|
}, Q = () => {
|
|
762
|
-
|
|
763
|
+
v(U, !0), v(F);
|
|
763
764
|
}, nt = () => {
|
|
764
|
-
|
|
765
|
+
C(U, !0), C(F);
|
|
765
766
|
}, tt = () => {
|
|
766
|
-
if (
|
|
767
|
-
const { Lt:
|
|
768
|
-
if (
|
|
769
|
-
G(At(F, U), ({ Ut:
|
|
770
|
-
if (V(
|
|
771
|
-
const
|
|
772
|
-
const B =
|
|
773
|
-
h
|
|
774
|
-
transform:
|
|
767
|
+
if ($) {
|
|
768
|
+
const { Lt: d } = o, g = 0.5;
|
|
769
|
+
if (y && E)
|
|
770
|
+
G(At(F, U), ({ Ut: h }) => {
|
|
771
|
+
if (V(h)) {
|
|
772
|
+
const x = (w, H, P) => {
|
|
773
|
+
const B = P && Rt(h) && c;
|
|
774
|
+
b(h, w, _({
|
|
775
|
+
transform: Ho(H - g, B).map((q) => Ve(Ze(q), P))
|
|
775
776
|
}, B), "add");
|
|
776
777
|
};
|
|
777
|
-
|
|
778
|
+
x(y, d.x, !0), x(E, d.y);
|
|
778
779
|
} else
|
|
779
|
-
|
|
780
|
+
N(h);
|
|
780
781
|
});
|
|
781
782
|
else {
|
|
782
|
-
const
|
|
783
|
-
const { Ut:
|
|
784
|
-
const Z =
|
|
783
|
+
const h = ee(m), x = (w) => {
|
|
784
|
+
const { Ut: H } = w, P = V(H) && H, B = (q, rt, at) => {
|
|
785
|
+
const Z = Lo(q, rt, at), lt = rt * Z;
|
|
785
786
|
return Ze(at ? -lt : lt);
|
|
786
787
|
};
|
|
787
|
-
return [
|
|
788
|
-
transform:
|
|
789
|
-
x: B(
|
|
790
|
-
y: B(
|
|
788
|
+
return [P, {
|
|
789
|
+
transform: P ? Ve({
|
|
790
|
+
x: B(h.x, d.x, Rt(H) && c),
|
|
791
|
+
y: B(h.y, d.y)
|
|
791
792
|
}) : ""
|
|
792
793
|
}];
|
|
793
794
|
};
|
|
794
|
-
|
|
795
|
+
O(U, x), O(F, x);
|
|
795
796
|
}
|
|
796
797
|
}
|
|
797
|
-
},
|
|
798
|
-
const
|
|
799
|
-
Ut:
|
|
800
|
-
Mt:
|
|
801
|
-
Vt:
|
|
798
|
+
}, D = (d) => {
|
|
799
|
+
const h = Gt(`${ft} ${d ? cs : rs}`), x = Gt(xn), w = Gt(po), H = {
|
|
800
|
+
Ut: h,
|
|
801
|
+
Mt: x,
|
|
802
|
+
Vt: w
|
|
802
803
|
};
|
|
803
|
-
return K(
|
|
804
|
-
}, J =
|
|
804
|
+
return K(d ? U : F, H), K(X, [gt(h, x), gt(x, w), M(Pt, h), N, n(H, Y, C, d)]), H;
|
|
805
|
+
}, J = M(D, !0), et = M(D, !1), it = () => (gt(I, U[0].Ut), gt(I, F[0].Ut), M(bt, X));
|
|
805
806
|
return J(), et(), [{
|
|
806
807
|
Bt: Q,
|
|
807
808
|
Nt: nt,
|
|
808
809
|
jt: tt,
|
|
809
810
|
Ft: Y,
|
|
810
811
|
qt: {
|
|
811
|
-
J:
|
|
812
|
+
J: y,
|
|
812
813
|
Wt: U,
|
|
813
814
|
Xt: J,
|
|
814
|
-
Yt:
|
|
815
|
+
Yt: M(O, U)
|
|
815
816
|
},
|
|
816
817
|
Jt: {
|
|
817
818
|
J: E,
|
|
818
819
|
Wt: F,
|
|
819
820
|
Xt: et,
|
|
820
|
-
Yt:
|
|
821
|
+
Yt: M(O, F)
|
|
821
822
|
}
|
|
822
823
|
}, it];
|
|
823
|
-
},
|
|
824
|
+
}, Os = (t, e, o) => {
|
|
824
825
|
const { bt: n, kt: s, Kt: c } = e;
|
|
825
|
-
return (r, l,
|
|
826
|
-
const { Ut:
|
|
827
|
-
const
|
|
828
|
-
const { Lt: X } = o, U = le(
|
|
826
|
+
return (r, l, a, u) => {
|
|
827
|
+
const { Ut: i, Mt: f, Vt: m } = r, [T, $] = Dt(333), [L, R] = Dt(), k = M(a, [r], u), S = !!s.scrollBy, y = `client${u ? "X" : "Y"}`, E = u ? Zt : Kt, I = u ? "left" : "top", A = u ? "w" : "h", z = u ? "x" : "y", _ = (p) => p.propertyName.indexOf(E) > -1, N = () => {
|
|
828
|
+
const p = "pointerup pointerleave pointercancel lostpointercapture", O = (v, C) => (V) => {
|
|
829
|
+
const { Lt: X } = o, U = le(f)[A] - le(m)[A], Y = C * V / U * X[z];
|
|
829
830
|
Mt(s, {
|
|
830
|
-
[
|
|
831
|
+
[z]: v + Y
|
|
831
832
|
});
|
|
832
833
|
};
|
|
833
|
-
return ot(
|
|
834
|
-
const
|
|
835
|
-
if (U === 0 && F && X[
|
|
836
|
-
const tt =
|
|
834
|
+
return ot(f, "pointerdown", (v) => {
|
|
835
|
+
const C = Xt(v.target, `.${po}`) === m, V = C ? m : f, X = t.scrollbars, { button: U, isPrimary: F, pointerType: Y } = v, { pointers: Q } = X;
|
|
836
|
+
if (U === 0 && F && X[C ? "dragScroll" : "clickScroll"] && (Q || []).includes(Y)) {
|
|
837
|
+
const tt = !C && v.shiftKey, D = M(Yt, m), J = M(Yt, f), et = (Z, lt) => (Z || D())[I] - (lt || J())[I], it = Fe(Yt(s)[E]) / le(s)[A] || 1, d = O(ee(s)[z] || 0, 1 / it), g = v[y], h = D(), x = J(), w = h[E], H = et(h, x) + w / 2, P = g - x[I], B = C ? 0 : P - H, q = (Z) => {
|
|
837
838
|
bt(at), V.releasePointerCapture(Z.pointerId);
|
|
838
|
-
}, at = [ae(n, mt,
|
|
839
|
+
}, at = [ae(n, mt, Zn), ot(c, p, q), ot(c, "selectstart", (Z) => Ao(Z), {
|
|
839
840
|
H: !1
|
|
840
|
-
}), ot(
|
|
841
|
-
const lt = Z[
|
|
842
|
-
(
|
|
841
|
+
}), ot(f, p, q), ot(f, "pointermove", (Z) => {
|
|
842
|
+
const lt = Z[y] - g;
|
|
843
|
+
(C || tt) && d(B + lt);
|
|
843
844
|
})];
|
|
844
|
-
if (V.setPointerCapture(
|
|
845
|
-
|
|
846
|
-
else if (
|
|
847
|
-
const Z = oe(
|
|
848
|
-
Z && K(at, Z(
|
|
845
|
+
if (V.setPointerCapture(v.pointerId), tt)
|
|
846
|
+
d(B);
|
|
847
|
+
else if (!C) {
|
|
848
|
+
const Z = oe(hs);
|
|
849
|
+
Z && K(at, Z(d, et, B, w, P));
|
|
849
850
|
}
|
|
850
851
|
}
|
|
851
852
|
});
|
|
852
853
|
};
|
|
853
|
-
let
|
|
854
|
-
return
|
|
855
|
-
l(
|
|
856
|
-
}), ot(
|
|
857
|
-
l(
|
|
858
|
-
}), ot(
|
|
859
|
-
const { deltaX:
|
|
860
|
-
|
|
861
|
-
left:
|
|
862
|
-
top:
|
|
854
|
+
let b = !0;
|
|
855
|
+
return M(bt, [ot(i, "pointerenter", () => {
|
|
856
|
+
l(Mo, !0);
|
|
857
|
+
}), ot(i, "pointerleave pointercancel", () => {
|
|
858
|
+
l(Mo, !1);
|
|
859
|
+
}), ot(i, "wheel", (p) => {
|
|
860
|
+
const { deltaX: O, deltaY: v, deltaMode: C } = p;
|
|
861
|
+
S && b && C === 0 && Qt(i) === n && s.scrollBy({
|
|
862
|
+
left: O,
|
|
863
|
+
top: v,
|
|
863
864
|
behavior: "smooth"
|
|
864
|
-
}),
|
|
865
|
-
|
|
866
|
-
}),
|
|
865
|
+
}), b = !1, l(zo, !0), T(() => {
|
|
866
|
+
b = !0, l(zo);
|
|
867
|
+
}), Ao(p);
|
|
867
868
|
}, {
|
|
868
869
|
H: !1,
|
|
869
870
|
I: !0
|
|
870
|
-
}), ot(
|
|
871
|
-
if (
|
|
872
|
-
const
|
|
873
|
-
k(), L(
|
|
871
|
+
}), ot(m, "transitionstart", (p) => {
|
|
872
|
+
if (_(p)) {
|
|
873
|
+
const O = () => {
|
|
874
|
+
k(), L(O);
|
|
874
875
|
};
|
|
875
|
-
|
|
876
|
+
O();
|
|
876
877
|
}
|
|
877
|
-
}), ot(
|
|
878
|
-
|
|
879
|
-
}), ot(
|
|
878
|
+
}), ot(m, "transitionend transitioncancel", (p) => {
|
|
879
|
+
_(p) && (R(), k());
|
|
880
|
+
}), ot(i, "mousedown", M(ot, c, "click", uo, {
|
|
880
881
|
A: !0,
|
|
881
882
|
I: !0
|
|
882
883
|
}), {
|
|
883
884
|
I: !0
|
|
884
|
-
}),
|
|
885
|
+
}), N(), $, R]);
|
|
885
886
|
};
|
|
886
|
-
},
|
|
887
|
-
let r, l,
|
|
888
|
-
const [
|
|
889
|
-
|
|
890
|
-
}, Y = (
|
|
891
|
-
if (
|
|
892
|
-
|
|
887
|
+
}, $s = (t, e, o, n, s, c) => {
|
|
888
|
+
let r, l, a, u, i, f = wt, m = 0;
|
|
889
|
+
const [T, $] = Dt(), [L, R] = Dt(), [k, S] = Dt(100), [y, E] = Dt(100), [I, A] = Dt(100), [z, _] = Dt(() => m), [N, b] = Ts(t, s, n, Os(e, s, n)), { bt: p, Zt: O, Rt: v } = s, { Ft: C, Bt: V, Nt: X, jt: U } = N, F = (D) => {
|
|
890
|
+
C(oo, D, !0), C(oo, D, !1);
|
|
891
|
+
}, Y = (D, J) => {
|
|
892
|
+
if (_(), D)
|
|
893
|
+
C(Vo);
|
|
893
894
|
else {
|
|
894
|
-
const et =
|
|
895
|
-
|
|
895
|
+
const et = M(C, Vo, !0);
|
|
896
|
+
m > 0 && !J ? z(et) : et();
|
|
896
897
|
}
|
|
897
|
-
}, Q = (
|
|
898
|
-
Q(
|
|
899
|
-
}, tt = [
|
|
898
|
+
}, Q = (D) => D.pointerType === "mouse", nt = (D) => {
|
|
899
|
+
Q(D) && (u = l, u && Y(!0));
|
|
900
|
+
}, tt = [S, _, E, A, R, $, () => f(), ot(p, "pointerover", nt, {
|
|
900
901
|
A: !0
|
|
901
|
-
}), ot(
|
|
902
|
-
Q(
|
|
903
|
-
}), ot(
|
|
904
|
-
Q(
|
|
905
|
-
|
|
902
|
+
}), ot(p, "pointerenter", nt), ot(p, "pointerleave", (D) => {
|
|
903
|
+
Q(D) && (u = !1, l && Y(!1));
|
|
904
|
+
}), ot(p, "pointermove", (D) => {
|
|
905
|
+
Q(D) && r && T(() => {
|
|
906
|
+
S(), Y(!0), y(() => {
|
|
906
907
|
r && Y(!1);
|
|
907
908
|
});
|
|
908
909
|
});
|
|
909
|
-
}), ot(
|
|
910
|
+
}), ot(O, "scroll", (D) => {
|
|
910
911
|
L(() => {
|
|
911
|
-
X(),
|
|
912
|
-
|
|
912
|
+
X(), a && Y(!0), k(() => {
|
|
913
|
+
a && !u && Y(!1);
|
|
913
914
|
});
|
|
914
|
-
}), c(
|
|
915
|
+
}), c(D), U();
|
|
915
916
|
})];
|
|
916
|
-
return [() =>
|
|
917
|
-
const { tn:
|
|
917
|
+
return [() => M(bt, K(tt, b())), ({ Et: D, Tt: J, Gt: et, Qt: it }) => {
|
|
918
|
+
const { tn: d, nn: g, sn: h } = it || {}, { Ct: x, dt: w } = et || {}, { N: H } = o, { T: P } = vt(), { k: B, en: q } = n, [rt, at] = D("showNativeOverlaidScrollbars"), [Z, lt] = D("scrollbars.theme"), [Nt, j] = D("scrollbars.visibility"), [ct, ut] = D("scrollbars.autoHide"), [dt, st] = D("scrollbars.autoHideSuspend"), [pt] = D("scrollbars.autoHideDelay"), [Vt, jt] = D("scrollbars.dragScroll"), [Ct, zt] = D("scrollbars.clickScroll"), [Lt, Pe] = D("overflow"), kt = w && !J, Me = q.x || q.y, ne = d || g || x || J, fe = h || j || Pe, pe = rt && P.x && P.y, se = (ce, Wt, bo) => {
|
|
918
919
|
const vo = ce.includes("scroll") && (Nt === "visible" || Nt === "auto" && Wt === "scroll");
|
|
919
|
-
return
|
|
920
|
+
return C(ls, vo, bo), vo;
|
|
920
921
|
};
|
|
921
|
-
if (
|
|
922
|
-
|
|
922
|
+
if (m = pt, kt && (dt && Me ? (F(!1), f(), I(() => {
|
|
923
|
+
f = ot(O, "scroll", M(F, !0), {
|
|
923
924
|
A: !0
|
|
924
925
|
});
|
|
925
|
-
})) : F(!0)), at &&
|
|
926
|
+
})) : F(!0)), at && C(ns, pe), lt && (C(i), C(Z, !0), i = Z), st && !dt && F(!0), ut && (r = ct === "move", l = ct === "leave", a = ct !== "never", Y(!a, !0)), jt && C(us, Vt), zt && C(as, Ct), fe) {
|
|
926
927
|
const ce = se(Lt.x, B.x, !0), Wt = se(Lt.y, B.y, !1);
|
|
927
|
-
|
|
928
|
+
C(is, !(ce && Wt));
|
|
928
929
|
}
|
|
929
|
-
ne && (V(), X(), U(),
|
|
930
|
-
}, {},
|
|
931
|
-
},
|
|
932
|
-
const e = vt(), { G: o, L: n } = e, { elements: s } = o(), { host: c, padding: r, viewport: l, content:
|
|
930
|
+
ne && (V(), X(), U(), C(No, !q.x, !0), C(No, !q.y, !1), C(ss, H && !v));
|
|
931
|
+
}, {}, N];
|
|
932
|
+
}, As = (t) => {
|
|
933
|
+
const e = vt(), { G: o, L: n } = e, { elements: s } = o(), { host: c, padding: r, viewport: l, content: a } = s, u = re(t), i = u ? {} : t, { elements: f } = i, { host: m, padding: T, viewport: $, content: L } = f || {}, R = u ? t : i.target, k = Ye(R, "textarea"), S = R.ownerDocument, y = S.documentElement, E = R === S.body, I = S.defaultView, A = () => S.activeElement, z = (j) => {
|
|
933
934
|
j && j.focus && j.focus();
|
|
934
|
-
},
|
|
935
|
-
gt:
|
|
935
|
+
}, _ = M(vs, [R]), N = M(Tn, [R]), b = M(go, [R]), p = M(Gt, ""), O = M(_, p, l), v = M(N, p, a), C = O($), V = C === R, X = V && E, U = !V && v(L), F = !V && re(C) && C === U, Y = F && !!b(a), Q = Y ? O() : C, nt = Y ? U : v(), D = X ? y : F ? Q : C, J = k ? _(p, c, m) : R, et = X ? D : J, it = F ? nt : U, d = {
|
|
936
|
+
gt: R,
|
|
936
937
|
bt: et,
|
|
937
|
-
D
|
|
938
|
-
cn: !V &&
|
|
938
|
+
D,
|
|
939
|
+
cn: !V && N(p, r, T),
|
|
939
940
|
wt: it,
|
|
940
|
-
kt: X ?
|
|
941
|
-
Zt: X ?
|
|
942
|
-
rn: E ?
|
|
943
|
-
ln:
|
|
944
|
-
Kt:
|
|
941
|
+
kt: X ? y : D,
|
|
942
|
+
Zt: X ? S : D,
|
|
943
|
+
rn: E ? y : R,
|
|
944
|
+
ln: I,
|
|
945
|
+
Kt: S,
|
|
945
946
|
St: k,
|
|
946
947
|
Rt: E,
|
|
947
948
|
Dt: u,
|
|
948
949
|
V,
|
|
949
950
|
an: F,
|
|
950
|
-
yt: (j) =>
|
|
951
|
-
Ot: (j, ct) => be(
|
|
952
|
-
},
|
|
953
|
-
const ut =
|
|
951
|
+
yt: (j) => Bn(D, V ? mt : It, j),
|
|
952
|
+
Ot: (j, ct) => be(D, V ? mt : It, j, ct)
|
|
953
|
+
}, g = Ht(d).reduce((j, ct) => {
|
|
954
|
+
const ut = d[ct];
|
|
954
955
|
return K(j, ut && re(ut) && !Qt(ut) ? ut : !1);
|
|
955
|
-
}, []),
|
|
956
|
-
Et(
|
|
957
|
-
}], rt = k &&
|
|
958
|
-
let at = k ?
|
|
959
|
-
const Z = X ?
|
|
960
|
-
return [
|
|
961
|
-
const j =
|
|
956
|
+
}, []), h = (j) => j ? He(g, j) : null, { gt: x, bt: w, cn: H, D: P, wt: B } = d, q = [() => {
|
|
957
|
+
Et(w, [mt, _e]), Et(x, _e), E && Et(y, [_e, mt]);
|
|
958
|
+
}], rt = k && h(w);
|
|
959
|
+
let at = k ? x : qe([B, P, H, w, x].find((j) => h(j) === !1));
|
|
960
|
+
const Z = X ? x : B || P, lt = M(bt, q);
|
|
961
|
+
return [d, () => {
|
|
962
|
+
const j = A(), ct = (st) => {
|
|
962
963
|
gt(Qt(st), qe(st)), Pt(st);
|
|
963
964
|
}, ut = (st) => st ? ot(st, "focusin focusout focus blur", (pt) => {
|
|
964
965
|
uo(pt), pt.stopImmediatePropagation();
|
|
@@ -966,111 +967,111 @@ const hs = () => {
|
|
|
966
967
|
I: !0,
|
|
967
968
|
H: !1
|
|
968
969
|
}) : wt, dt = ut(j);
|
|
969
|
-
if (yt(
|
|
970
|
-
|
|
971
|
-
})), gt(Z, at), gt(
|
|
972
|
-
const st =
|
|
973
|
-
Et(
|
|
974
|
-
}]), n && !V && (ae(
|
|
975
|
-
const st = "tabindex", pt = De(
|
|
976
|
-
yt(
|
|
977
|
-
const Vt = () => pt ? yt(
|
|
970
|
+
if (yt(w, mt, V ? "viewport" : "host"), yt(H, eo, ""), yt(B, Po, ""), V || (yt(P, It, ""), E && ae(y, mt, Kn)), rt && (Co(x, w), K(q, () => {
|
|
971
|
+
Co(w, x), Pt(w);
|
|
972
|
+
})), gt(Z, at), gt(w, H), gt(H || w, !V && P), gt(P, B), K(q, [dt, () => {
|
|
973
|
+
const st = A(), pt = ut(st);
|
|
974
|
+
Et(H, eo), Et(B, Po), Et(P, [hn, bn, It]), h(B) && ct(B), h(P) && ct(P), h(H) && ct(H), z(st), pt();
|
|
975
|
+
}]), n && !V && (ae(P, It, yn), K(q, M(Et, P, It))), !V && I.top === I && j === R) {
|
|
976
|
+
const st = "tabindex", pt = De(P, st);
|
|
977
|
+
yt(P, st, "-1"), z(P);
|
|
978
|
+
const Vt = () => pt ? yt(P, st, pt) : Et(P, st), jt = ot(S, "pointerdown keydown", () => {
|
|
978
979
|
Vt(), jt();
|
|
979
980
|
});
|
|
980
981
|
K(q, [Vt, jt]);
|
|
981
982
|
} else
|
|
982
|
-
|
|
983
|
+
z(j);
|
|
983
984
|
return dt(), at = 0, lt;
|
|
984
985
|
}, lt];
|
|
985
|
-
},
|
|
986
|
+
}, Hs = ({ wt: t }) => ({ Gt: e, un: o, Tt: n }) => {
|
|
986
987
|
const { xt: s } = e || {}, { $t: c } = o;
|
|
987
988
|
t && (s || n) && te(t, {
|
|
988
989
|
[Kt]: c && "100%"
|
|
989
990
|
});
|
|
990
|
-
},
|
|
991
|
+
}, Ls = ({ bt: t, cn: e, D: o, V: n }, s) => {
|
|
991
992
|
const [c, r] = xt({
|
|
992
993
|
u: _n,
|
|
993
|
-
o:
|
|
994
|
-
},
|
|
995
|
-
return ({ Et: l, Gt:
|
|
996
|
-
let [
|
|
997
|
-
const { L:
|
|
998
|
-
(
|
|
999
|
-
const
|
|
1000
|
-
if (
|
|
1001
|
-
const
|
|
1002
|
-
[
|
|
1003
|
-
[
|
|
1004
|
-
[
|
|
1005
|
-
top:
|
|
1006
|
-
right:
|
|
1007
|
-
left:
|
|
1008
|
-
[Zt]:
|
|
1009
|
-
},
|
|
1010
|
-
[
|
|
1011
|
-
[
|
|
1012
|
-
[
|
|
1013
|
-
[
|
|
994
|
+
o: Oo()
|
|
995
|
+
}, M(Oo, t, "padding", ""));
|
|
996
|
+
return ({ Et: l, Gt: a, un: u, Tt: i }) => {
|
|
997
|
+
let [f, m] = r(i);
|
|
998
|
+
const { L: T } = vt(), { ht: $, Ht: L, Ct: R } = a || {}, { N: k } = u, [S, y] = l("paddingAbsolute");
|
|
999
|
+
($ || m || (i || L)) && ([f, m] = c(i));
|
|
1000
|
+
const I = !n && (y || R || m);
|
|
1001
|
+
if (I) {
|
|
1002
|
+
const A = !S || !e && !T, z = f.r + f.l, _ = f.t + f.b, N = {
|
|
1003
|
+
[Jo]: A && !k ? -z : 0,
|
|
1004
|
+
[Qo]: A ? -_ : 0,
|
|
1005
|
+
[Ko]: A && k ? -z : 0,
|
|
1006
|
+
top: A ? -f.t : 0,
|
|
1007
|
+
right: A ? k ? -f.r : "auto" : 0,
|
|
1008
|
+
left: A ? k ? "auto" : -f.l : 0,
|
|
1009
|
+
[Zt]: A && `calc(100% + ${z}px)`
|
|
1010
|
+
}, b = {
|
|
1011
|
+
[Go]: A ? f.t : 0,
|
|
1012
|
+
[Yo]: A ? f.r : 0,
|
|
1013
|
+
[Zo]: A ? f.b : 0,
|
|
1014
|
+
[qo]: A ? f.l : 0
|
|
1014
1015
|
};
|
|
1015
|
-
te(e || o,
|
|
1016
|
-
cn:
|
|
1017
|
-
fn: !
|
|
1018
|
-
j: e ?
|
|
1016
|
+
te(e || o, N), te(o, b), W(s, {
|
|
1017
|
+
cn: f,
|
|
1018
|
+
fn: !A,
|
|
1019
|
+
j: e ? b : W({}, N, b)
|
|
1019
1020
|
});
|
|
1020
1021
|
}
|
|
1021
1022
|
return {
|
|
1022
|
-
_n:
|
|
1023
|
+
_n: I
|
|
1023
1024
|
};
|
|
1024
1025
|
};
|
|
1025
|
-
},
|
|
1026
|
-
const o = vt(), { bt: n, cn: s, D: c, V: r, Ot: l, Rt:
|
|
1027
|
-
u:
|
|
1026
|
+
}, ks = (t, e) => {
|
|
1027
|
+
const o = vt(), { bt: n, cn: s, D: c, V: r, Ot: l, Rt: a, ln: u } = t, { L: i } = o, f = a && r, m = M(he, 0), T = {
|
|
1028
|
+
u: en,
|
|
1028
1029
|
o: {
|
|
1029
1030
|
w: 0,
|
|
1030
1031
|
h: 0
|
|
1031
1032
|
}
|
|
1032
|
-
},
|
|
1033
|
-
u:
|
|
1033
|
+
}, $ = {
|
|
1034
|
+
u: on,
|
|
1034
1035
|
o: {
|
|
1035
1036
|
x: Jt,
|
|
1036
1037
|
y: Jt
|
|
1037
1038
|
}
|
|
1038
|
-
}, L = (
|
|
1039
|
-
const
|
|
1040
|
-
w:
|
|
1041
|
-
h:
|
|
1039
|
+
}, L = (b, p) => {
|
|
1040
|
+
const O = ht.devicePixelRatio % 1 !== 0 ? 1 : 0, v = {
|
|
1041
|
+
w: m(b.w - p.w),
|
|
1042
|
+
h: m(b.h - p.h)
|
|
1042
1043
|
};
|
|
1043
1044
|
return {
|
|
1044
|
-
w:
|
|
1045
|
-
h:
|
|
1045
|
+
w: v.w > O ? v.w : 0,
|
|
1046
|
+
h: v.h > O ? v.h : 0
|
|
1046
1047
|
};
|
|
1047
|
-
}, [
|
|
1048
|
-
return ({ Et:
|
|
1049
|
-
const { ht: V, Ht: X, Ct: U, zt: F } =
|
|
1050
|
-
let
|
|
1051
|
-
if (J &&
|
|
1052
|
-
|
|
1053
|
-
const [Ct,
|
|
1054
|
-
Ct && Ct(), (Me || Pe || J) &&
|
|
1055
|
-
const se =
|
|
1056
|
-
w:
|
|
1057
|
-
h:
|
|
1048
|
+
}, [R, k] = xt(T, M(ao, c)), [S, y] = xt(T, M(Ke, c)), [E, I] = xt(T), [A, z] = xt(T), [_] = xt($), N = oe(mo);
|
|
1049
|
+
return ({ Et: b, Gt: p, un: O, Tt: v }, { _n: C }) => {
|
|
1050
|
+
const { ht: V, Ht: X, Ct: U, zt: F } = p || {}, Y = N && N.M(t, e, O, o, b), { q: Q, W: nt, X: tt } = Y || {}, [D, J] = ms(b, o), [et, it] = b("overflow"), d = V || C || X || U || F || J, g = Ce(et.x), h = Ce(et.y), x = g || h;
|
|
1051
|
+
let w = k(v), H = y(v), P = I(v), B = z(v), q;
|
|
1052
|
+
if (J && i && l(yn, !D), d) {
|
|
1053
|
+
x && l(qt, !1);
|
|
1054
|
+
const [Ct, zt] = nt ? nt(q) : [], [Lt, Pe] = w = R(v), [kt, Me] = H = S(v), ne = fn(c), fe = kt, pe = ne;
|
|
1055
|
+
Ct && Ct(), (Me || Pe || J) && zt && !D && Q && Q(zt, kt, Lt);
|
|
1056
|
+
const se = Xn(u), ce = {
|
|
1057
|
+
w: m(he(kt.w, fe.w) + Lt.w),
|
|
1058
|
+
h: m(he(kt.h, fe.h) + Lt.h)
|
|
1058
1059
|
}, Wt = {
|
|
1059
|
-
w:
|
|
1060
|
-
h:
|
|
1060
|
+
w: m((f ? se.w : pe.w + m(ne.w - kt.w)) + Lt.w),
|
|
1061
|
+
h: m((f ? se.h : pe.h + m(ne.h - kt.h)) + Lt.h)
|
|
1061
1062
|
};
|
|
1062
|
-
B =
|
|
1063
|
+
B = A(Wt), P = E(L(ce, Wt), v);
|
|
1063
1064
|
}
|
|
1064
|
-
const [rt, at] = B, [Z, lt] =
|
|
1065
|
+
const [rt, at] = B, [Z, lt] = P, [Nt, j] = H, [ct, ut] = w, dt = {
|
|
1065
1066
|
x: Z.w > 0,
|
|
1066
1067
|
y: Z.h > 0
|
|
1067
|
-
}, st =
|
|
1068
|
-
if (
|
|
1069
|
-
const Ct = {},
|
|
1070
|
-
tt && tt(
|
|
1068
|
+
}, st = g && h && (dt.x || dt.y) || g && dt.x && !dt.y || h && dt.y && !dt.x;
|
|
1069
|
+
if (C || U || F || ut || j || at || lt || it || J || d) {
|
|
1070
|
+
const Ct = {}, zt = gs(t, dt, et, Ct);
|
|
1071
|
+
tt && tt(zt, O, !!Q && Q(zt, Nt, ct), Ct), r ? (yt(n, hn, Ct[Le]), yt(n, bn, Ct[ke])) : te(c, Ct);
|
|
1071
1072
|
}
|
|
1072
|
-
be(n, mt,
|
|
1073
|
-
const [Vt, jt] =
|
|
1073
|
+
be(n, mt, vn, st), be(s, eo, Qn, st), r || be(c, It, qt, x);
|
|
1074
|
+
const [Vt, jt] = _(En(t).k);
|
|
1074
1075
|
return W(e, {
|
|
1075
1076
|
k: Vt,
|
|
1076
1077
|
Pt: {
|
|
@@ -1088,8 +1089,8 @@ const hs = () => {
|
|
|
1088
1089
|
nn: lt
|
|
1089
1090
|
};
|
|
1090
1091
|
};
|
|
1091
|
-
},
|
|
1092
|
-
const [e, o, n] =
|
|
1092
|
+
}, Ds = (t) => {
|
|
1093
|
+
const [e, o, n] = As(t), s = {
|
|
1093
1094
|
cn: {
|
|
1094
1095
|
t: 0,
|
|
1095
1096
|
r: 0,
|
|
@@ -1098,13 +1099,13 @@ const hs = () => {
|
|
|
1098
1099
|
},
|
|
1099
1100
|
fn: !1,
|
|
1100
1101
|
j: {
|
|
1101
|
-
[Ko]: 0,
|
|
1102
1102
|
[Jo]: 0,
|
|
1103
|
-
[
|
|
1104
|
-
[
|
|
1103
|
+
[Qo]: 0,
|
|
1104
|
+
[Ko]: 0,
|
|
1105
1105
|
[Go]: 0,
|
|
1106
|
-
[
|
|
1107
|
-
[
|
|
1106
|
+
[Yo]: 0,
|
|
1107
|
+
[Zo]: 0,
|
|
1108
|
+
[qo]: 0
|
|
1108
1109
|
},
|
|
1109
1110
|
Pt: {
|
|
1110
1111
|
x: 0,
|
|
@@ -1122,64 +1123,64 @@ const hs = () => {
|
|
|
1122
1123
|
x: !1,
|
|
1123
1124
|
y: !1
|
|
1124
1125
|
}
|
|
1125
|
-
}, { gt: c, D: r, V: l } = e, { L:
|
|
1126
|
-
return [o, (
|
|
1127
|
-
const
|
|
1128
|
-
return G(
|
|
1129
|
-
W(
|
|
1130
|
-
}),
|
|
1126
|
+
}, { gt: c, D: r, V: l } = e, { L: a, T: u } = vt(), i = !a && (u.x || u.y), f = [Hs(e), Ls(e, s), ks(e, s)];
|
|
1127
|
+
return [o, (m) => {
|
|
1128
|
+
const T = {}, L = i && ee(r), R = l ? ae(r, mt, to) : wt;
|
|
1129
|
+
return G(f, (k) => {
|
|
1130
|
+
W(T, k(m, T) || {});
|
|
1131
|
+
}), R(), Mt(r, L), !l && Mt(c, 0), T;
|
|
1131
1132
|
}, s, e, n];
|
|
1132
|
-
},
|
|
1133
|
-
const s =
|
|
1134
|
-
k({},
|
|
1135
|
-
}), [
|
|
1136
|
-
const { dn: E, Tt:
|
|
1137
|
-
Et:
|
|
1138
|
-
dn:
|
|
1139
|
-
Tt:
|
|
1133
|
+
}, Is = (t, e, o, n) => {
|
|
1134
|
+
const s = Ro(e, {}), [c, r, l, a, u] = Ds(t), [i, f, m] = Es(a, l, s, (S) => {
|
|
1135
|
+
k({}, S);
|
|
1136
|
+
}), [T, $, , L] = $s(t, e, m, l, a, n), R = (S) => Ht(S).some((y) => !!S[y]), k = (S, y) => {
|
|
1137
|
+
const { dn: E, Tt: I, At: A, vn: z } = S, _ = E || {}, N = !!I, b = {
|
|
1138
|
+
Et: Ro(e, _, N),
|
|
1139
|
+
dn: _,
|
|
1140
|
+
Tt: N
|
|
1140
1141
|
};
|
|
1141
|
-
if (
|
|
1142
|
-
return
|
|
1143
|
-
const
|
|
1144
|
-
At:
|
|
1145
|
-
})),
|
|
1146
|
-
un:
|
|
1147
|
-
Gt:
|
|
1142
|
+
if (z)
|
|
1143
|
+
return $(b), !1;
|
|
1144
|
+
const p = y || f(W({}, b, {
|
|
1145
|
+
At: A
|
|
1146
|
+
})), O = r(W({}, b, {
|
|
1147
|
+
un: m,
|
|
1148
|
+
Gt: p
|
|
1148
1149
|
}));
|
|
1149
|
-
|
|
1150
|
-
Gt:
|
|
1151
|
-
Qt:
|
|
1150
|
+
$(W({}, b, {
|
|
1151
|
+
Gt: p,
|
|
1152
|
+
Qt: O
|
|
1152
1153
|
}));
|
|
1153
|
-
const
|
|
1154
|
-
return V && o(
|
|
1155
|
-
Gt:
|
|
1156
|
-
Qt:
|
|
1154
|
+
const v = R(p), C = R(O), V = v || C || !ro(_) || N;
|
|
1155
|
+
return V && o(S, {
|
|
1156
|
+
Gt: p,
|
|
1157
|
+
Qt: O
|
|
1157
1158
|
}), V;
|
|
1158
1159
|
};
|
|
1159
1160
|
return [() => {
|
|
1160
|
-
const { rn:
|
|
1161
|
-
return Mt(
|
|
1161
|
+
const { rn: S, D: y } = a, E = ee(S), I = [i(), c(), T()];
|
|
1162
|
+
return Mt(y, E), M(bt, I);
|
|
1162
1163
|
}, k, () => ({
|
|
1163
|
-
hn:
|
|
1164
|
+
hn: m,
|
|
1164
1165
|
pn: l
|
|
1165
1166
|
}), {
|
|
1166
|
-
gn:
|
|
1167
|
+
gn: a,
|
|
1167
1168
|
bn: L
|
|
1168
1169
|
}, u];
|
|
1169
1170
|
}, Ft = (t, e, o) => {
|
|
1170
|
-
const { nt: n } = vt(), s = re(t), c = s ? t : t.target, r =
|
|
1171
|
+
const { nt: n } = vt(), s = re(t), c = s ? t : t.target, r = On(c);
|
|
1171
1172
|
if (e && !r) {
|
|
1172
1173
|
let l = !1;
|
|
1173
|
-
const
|
|
1174
|
-
const
|
|
1175
|
-
return
|
|
1176
|
-
},
|
|
1177
|
-
k(
|
|
1178
|
-
}, [
|
|
1179
|
-
const { ht:
|
|
1180
|
-
|
|
1174
|
+
const a = [], u = {}, i = (b) => {
|
|
1175
|
+
const p = cn(b), O = oe(fs);
|
|
1176
|
+
return O ? O(p, !0) : p;
|
|
1177
|
+
}, f = W({}, n(), i(e)), [m, T, $] = Qe(), [L, R, k] = Qe(o), S = (b, p) => {
|
|
1178
|
+
k(b, p), $(b, p);
|
|
1179
|
+
}, [y, E, I, A, z] = Is(t, f, ({ dn: b, Tt: p }, { Gt: O, Qt: v }) => {
|
|
1180
|
+
const { ht: C, Ct: V, xt: X, Ht: U, It: F, dt: Y } = O, { tn: Q, nn: nt, sn: tt } = v;
|
|
1181
|
+
S("updated", [N, {
|
|
1181
1182
|
updateHints: {
|
|
1182
|
-
sizeChanged:
|
|
1183
|
+
sizeChanged: !!C,
|
|
1183
1184
|
directionChanged: !!V,
|
|
1184
1185
|
heightIntrinsicChanged: !!X,
|
|
1185
1186
|
overflowEdgeChanged: !!Q,
|
|
@@ -1189,51 +1190,51 @@ const hs = () => {
|
|
|
1189
1190
|
hostMutation: !!F,
|
|
1190
1191
|
appear: !!Y
|
|
1191
1192
|
},
|
|
1192
|
-
changedOptions:
|
|
1193
|
-
force: !!
|
|
1193
|
+
changedOptions: b || {},
|
|
1194
|
+
force: !!p
|
|
1194
1195
|
}]);
|
|
1195
|
-
}, (
|
|
1196
|
-
|
|
1197
|
-
},
|
|
1198
|
-
options(
|
|
1199
|
-
if (
|
|
1200
|
-
const
|
|
1201
|
-
ro(
|
|
1202
|
-
dn:
|
|
1196
|
+
}, (b) => S("scroll", [N, b])), _ = (b) => {
|
|
1197
|
+
ws(c), bt(a), l = !0, S("destroyed", [N, b]), T(), R();
|
|
1198
|
+
}, N = {
|
|
1199
|
+
options(b, p) {
|
|
1200
|
+
if (b) {
|
|
1201
|
+
const O = p ? n() : {}, v = mn(f, W(O, i(b)));
|
|
1202
|
+
ro(v) || (W(f, v), E({
|
|
1203
|
+
dn: v
|
|
1203
1204
|
}));
|
|
1204
1205
|
}
|
|
1205
|
-
return W({},
|
|
1206
|
+
return W({}, f);
|
|
1206
1207
|
},
|
|
1207
1208
|
on: L,
|
|
1208
|
-
off: (
|
|
1209
|
-
|
|
1209
|
+
off: (b, p) => {
|
|
1210
|
+
b && p && R(b, p);
|
|
1210
1211
|
},
|
|
1211
1212
|
state() {
|
|
1212
|
-
const { hn:
|
|
1213
|
+
const { hn: b, pn: p } = I(), { N: O } = b, { Pt: v, Lt: C, k: V, en: X, cn: U, fn: F } = p;
|
|
1213
1214
|
return W({}, {
|
|
1214
|
-
overflowEdge:
|
|
1215
|
-
overflowAmount:
|
|
1215
|
+
overflowEdge: v,
|
|
1216
|
+
overflowAmount: C,
|
|
1216
1217
|
overflowStyle: V,
|
|
1217
1218
|
hasOverflow: X,
|
|
1218
1219
|
padding: U,
|
|
1219
1220
|
paddingAbsolute: F,
|
|
1220
|
-
directionRTL:
|
|
1221
|
+
directionRTL: O,
|
|
1221
1222
|
destroyed: l
|
|
1222
1223
|
});
|
|
1223
1224
|
},
|
|
1224
1225
|
elements() {
|
|
1225
|
-
const { gt:
|
|
1226
|
-
const { Vt: tt, Mt:
|
|
1226
|
+
const { gt: b, bt: p, cn: O, D: v, wt: C, kt: V, Zt: X } = A.gn, { qt: U, Jt: F } = A.bn, Y = (nt) => {
|
|
1227
|
+
const { Vt: tt, Mt: D, Ut: J } = nt;
|
|
1227
1228
|
return {
|
|
1228
1229
|
scrollbar: J,
|
|
1229
|
-
track:
|
|
1230
|
+
track: D,
|
|
1230
1231
|
handle: tt
|
|
1231
1232
|
};
|
|
1232
1233
|
}, Q = (nt) => {
|
|
1233
|
-
const { Wt: tt, Xt:
|
|
1234
|
+
const { Wt: tt, Xt: D } = nt, J = Y(tt[0]);
|
|
1234
1235
|
return W({}, J, {
|
|
1235
1236
|
clone: () => {
|
|
1236
|
-
const et = Y(
|
|
1237
|
+
const et = Y(D());
|
|
1237
1238
|
return E({
|
|
1238
1239
|
vn: !0
|
|
1239
1240
|
}), et;
|
|
@@ -1241,38 +1242,38 @@ const hs = () => {
|
|
|
1241
1242
|
});
|
|
1242
1243
|
};
|
|
1243
1244
|
return W({}, {
|
|
1244
|
-
target:
|
|
1245
|
-
host:
|
|
1246
|
-
padding:
|
|
1247
|
-
viewport:
|
|
1248
|
-
content:
|
|
1245
|
+
target: b,
|
|
1246
|
+
host: p,
|
|
1247
|
+
padding: O || v,
|
|
1248
|
+
viewport: v,
|
|
1249
|
+
content: C || v,
|
|
1249
1250
|
scrollOffsetElement: V,
|
|
1250
1251
|
scrollEventElement: X,
|
|
1251
1252
|
scrollbarHorizontal: Q(U),
|
|
1252
1253
|
scrollbarVertical: Q(F)
|
|
1253
1254
|
});
|
|
1254
1255
|
},
|
|
1255
|
-
update: (
|
|
1256
|
-
Tt:
|
|
1256
|
+
update: (b) => E({
|
|
1257
|
+
Tt: b,
|
|
1257
1258
|
At: !0
|
|
1258
1259
|
}),
|
|
1259
|
-
destroy:
|
|
1260
|
-
plugin: (
|
|
1260
|
+
destroy: M(_, !1),
|
|
1261
|
+
plugin: (b) => u[Ht(b)[0]]
|
|
1261
1262
|
};
|
|
1262
|
-
return K(
|
|
1263
|
+
return K(a, [z]), xs(c, N), Cn(wn, Ft, [N, m, u]), ys(A.gn.Rt, !s && t.cancel) ? (_(!0), N) : (K(a, y()), S("initialized", [N]), N.update(!0), N);
|
|
1263
1264
|
}
|
|
1264
1265
|
return r;
|
|
1265
1266
|
};
|
|
1266
1267
|
Ft.plugin = (t) => {
|
|
1267
|
-
const e = St(t), o = e ? t : [t], n = o.map((s) =>
|
|
1268
|
-
return
|
|
1268
|
+
const e = St(t), o = e ? t : [t], n = o.map((s) => Cn(s, Ft)[0]);
|
|
1269
|
+
return ds(o), e ? n : n[0];
|
|
1269
1270
|
};
|
|
1270
1271
|
Ft.valid = (t) => {
|
|
1271
1272
|
const e = t && t.elements, o = $t(e) && e();
|
|
1272
|
-
return xe(o) && !!
|
|
1273
|
+
return xe(o) && !!On(o.target);
|
|
1273
1274
|
};
|
|
1274
1275
|
Ft.env = () => {
|
|
1275
|
-
const { P: t, T: e, L: o, K: n, J: s, st: c, et: r, G: l, tt:
|
|
1276
|
+
const { P: t, T: e, L: o, K: n, J: s, st: c, et: r, G: l, tt: a, nt: u, ot: i } = vt();
|
|
1276
1277
|
return W({}, {
|
|
1277
1278
|
scrollbarsSize: t,
|
|
1278
1279
|
scrollbarsOverlaid: e,
|
|
@@ -1282,13 +1283,13 @@ Ft.env = () => {
|
|
|
1282
1283
|
staticDefaultInitialization: c,
|
|
1283
1284
|
staticDefaultOptions: r,
|
|
1284
1285
|
getDefaultInitialization: l,
|
|
1285
|
-
setDefaultInitialization:
|
|
1286
|
+
setDefaultInitialization: a,
|
|
1286
1287
|
getDefaultOptions: u,
|
|
1287
|
-
setDefaultOptions:
|
|
1288
|
+
setDefaultOptions: i
|
|
1288
1289
|
});
|
|
1289
1290
|
};
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1291
|
+
const An = no(999999), Rs = () => {
|
|
1292
|
+
kn("das-ui-text", [
|
|
1292
1293
|
{
|
|
1293
1294
|
className: ".das-ui-text-context",
|
|
1294
1295
|
style: { position: "relative", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" }
|
|
@@ -1297,7 +1298,7 @@ const $n = no(999999), Is = () => {
|
|
|
1297
1298
|
className: "#das-ui-text-tooltip",
|
|
1298
1299
|
style: {
|
|
1299
1300
|
position: "fixed",
|
|
1300
|
-
"z-index":
|
|
1301
|
+
"z-index": An.value
|
|
1301
1302
|
// 'box-shadow': `0px 4px 10px 0px ${getVarValue('--das-ui-text-tooltip-shadow').value}`,
|
|
1302
1303
|
}
|
|
1303
1304
|
},
|
|
@@ -1363,102 +1364,108 @@ const $n = no(999999), Is = () => {
|
|
|
1363
1364
|
}
|
|
1364
1365
|
}
|
|
1365
1366
|
]);
|
|
1366
|
-
},
|
|
1367
|
+
}, Hn = (t) => {
|
|
1367
1368
|
window.inTextTooltip = !0, t.stopPropagation();
|
|
1368
1369
|
}, ge = no(0);
|
|
1369
|
-
let
|
|
1370
|
+
let Ln = no(null);
|
|
1370
1371
|
const ve = () => {
|
|
1371
1372
|
var o;
|
|
1372
|
-
clearTimeout(
|
|
1373
|
+
clearTimeout(Ln.value);
|
|
1373
1374
|
const t = document.getElementById("das-ui-text-tooltip");
|
|
1374
1375
|
t && ((o = document.body) == null || o.removeChild(t)), window.inTextTooltip = !1;
|
|
1375
1376
|
const e = document.getElementById("das-ui-text-tooltip-context");
|
|
1376
|
-
e && e.removeEventListener("mouseover",
|
|
1377
|
-
},
|
|
1377
|
+
e && e.removeEventListener("mouseover", Hn);
|
|
1378
|
+
}, Bo = (t) => {
|
|
1378
1379
|
let e = document.getElementById("das-ui-text-tooltip");
|
|
1379
1380
|
const o = t.clientX, n = t.clientY, s = e == null ? void 0 : e.getBoundingClientRect();
|
|
1380
1381
|
if (e && o >= s.left && o <= s.right && n >= s.top && n <= s.bottom)
|
|
1381
1382
|
return !0;
|
|
1382
1383
|
ve();
|
|
1383
|
-
},
|
|
1384
|
+
}, Ps = async (t, e) => {
|
|
1384
1385
|
let o = t;
|
|
1385
1386
|
return e.target && (typeof e.target == "string" && (o = e.target), typeof e.target == "function" && (o = await e.target(t))), o;
|
|
1386
|
-
},
|
|
1387
|
+
}, Fs = {
|
|
1387
1388
|
beforeMount() {
|
|
1388
|
-
|
|
1389
|
+
Rs();
|
|
1389
1390
|
},
|
|
1390
1391
|
async mounted(t, e, o) {
|
|
1391
1392
|
const n = (o ? e.value : e) || {};
|
|
1392
|
-
let s = (n == null ? void 0 : n.deep)
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1393
|
+
let s = (n == null ? void 0 : n.deep) ?? !0;
|
|
1394
|
+
if ((n == null ? void 0 : n.disabled) ?? !1) {
|
|
1395
|
+
const i = document.querySelectorAll(".das-ui-text-context");
|
|
1396
|
+
i.length && (i[0].style.textOverflow = "auto", i[0].style.overflow = "visible");
|
|
1397
|
+
return;
|
|
1398
|
+
}
|
|
1399
|
+
let r = (n == null ? void 0 : n.customContent) || "";
|
|
1400
|
+
ge.value === 0 && window.addEventListener("wheel", Bo), ge.value++;
|
|
1401
|
+
let l = await Ps(t, n);
|
|
1402
|
+
const a = l.classList;
|
|
1403
|
+
l.dataset.customContent = r;
|
|
1404
|
+
let u = !0;
|
|
1405
|
+
a.contains("das-ui-text-context") || a.add("das-ui-text-context"), l.onmouseenter = (i) => {
|
|
1406
|
+
const m = i.composedPath()[0], { x: T, y: $, width: L, height: R, top: k, left: S, bottom: y } = m.getBoundingClientRect(), E = window.getComputedStyle(m, null), I = parseFloat(E.getPropertyValue("padding-left"));
|
|
1407
|
+
An.value = Rn().nextZIndex();
|
|
1408
|
+
const A = document.createRange();
|
|
1409
|
+
A.setStart(l, 0);
|
|
1410
|
+
let z = s ? l.childNodes.length : 1;
|
|
1411
|
+
A.setEnd(l, z);
|
|
1412
|
+
const _ = Math.round(A.getBoundingClientRect().width), N = Math.round(l.getBoundingClientRect().width);
|
|
1413
|
+
_ > N && setTimeout(async () => {
|
|
1414
|
+
let b = document.getElementById("das-ui-text-tooltip");
|
|
1415
|
+
if (!b) {
|
|
1416
|
+
b = document.createElement("div"), b.style.cssText = `left: ${T + I}px;`, b.setAttribute("id", "das-ui-text-tooltip");
|
|
1417
|
+
const v = document.createElement("div");
|
|
1418
|
+
v.setAttribute("id", "das-ui-text-tooltip-context"), v && (v.style.wordBreak = yo.value == "zh-CN" ? "break-all" : "normal"), v.addEventListener("mouseover", Hn);
|
|
1419
|
+
const C = document.createElement("div");
|
|
1420
|
+
C.setAttribute("id", "tooltip-scroll-content"), C && (C.style.width = yo.value == "zh-CN" ? "100%" : "max-content"), v.appendChild(C), b.appendChild(v), document.body.appendChild(b);
|
|
1421
|
+
const V = "os-theme-dark das-scrollbar", X = document.getElementById("tooltip-scroll-content");
|
|
1422
|
+
if (X) {
|
|
1423
|
+
X.innerHTML = l.dataset.customContent || l.innerHTML;
|
|
1424
|
+
const U = {
|
|
1418
1425
|
scrollbars: {
|
|
1419
1426
|
autoHide: "leave",
|
|
1420
1427
|
autoHideDelay: 0,
|
|
1421
|
-
theme:
|
|
1428
|
+
theme: V
|
|
1422
1429
|
},
|
|
1423
1430
|
overflow: { y: "scroll" }
|
|
1424
1431
|
};
|
|
1425
|
-
|
|
1426
|
-
Ft(
|
|
1427
|
-
}, 10) : Ft(
|
|
1432
|
+
l.dataset.customContent ? Ln.value = setTimeout(() => {
|
|
1433
|
+
Ft(v, U);
|
|
1434
|
+
}, 10) : Ft(v, U);
|
|
1428
1435
|
}
|
|
1429
1436
|
}
|
|
1430
|
-
const
|
|
1431
|
-
|
|
1432
|
-
let
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
},
|
|
1436
|
-
|
|
1437
|
+
const p = document.createElement("span");
|
|
1438
|
+
p.textContent = "", p.style.position = "absolute", p.style.height = "12px", p.style.width = "8px", p.style.backgroundColor = Tt("--das-ui-text-tooltip-bgcolor").value, p.style.boxShadow = "3px 3px 5px rgba(0, 0, 0, 0.15)", p.style.borderColor = Tt("--das-ui-dropdown-bgff-color").value, p.style.borderRadius = "0px", p.style.zIndex = "-1", p.style.transform = "rotate(45deg)", p.style.left = "10px", b.appendChild(p);
|
|
1439
|
+
let O = $ - 10 - b.offsetHeight;
|
|
1440
|
+
O * 1 < 0 ? (b.style.top = `${y + 5}px`, p.style.top = "-4px", p.style.boxShadow = "3px -3px 5px rgba(0, 0, 0, 0.15)", b.style.boxShadow = `0px -4px 10px 0px ${Tt("--das-ui-text-tooltip-shadow").value}`) : (b.style.top = `${O}px`, p.style.bottom = "-4px", b.style.boxShadow = `0px 4px 10px 0px ${Tt("--das-ui-text-tooltip-shadow").value}`), b.onmouseenter = (v) => {
|
|
1441
|
+
u = !1;
|
|
1442
|
+
}, b.onmouseleave = (v) => {
|
|
1443
|
+
u = !0, setTimeout(() => {
|
|
1437
1444
|
ve();
|
|
1438
1445
|
}, 200);
|
|
1439
1446
|
};
|
|
1440
1447
|
}, 200);
|
|
1441
|
-
},
|
|
1448
|
+
}, l.onmouseleave = (i) => {
|
|
1442
1449
|
setTimeout(() => {
|
|
1443
|
-
|
|
1450
|
+
u && ve();
|
|
1444
1451
|
}, 200);
|
|
1445
1452
|
};
|
|
1446
1453
|
},
|
|
1447
1454
|
// 指令与元素解绑时
|
|
1448
1455
|
unmounted() {
|
|
1449
|
-
ve(), ge.value--, ge.value === 0 && window.removeEventListener("wheel",
|
|
1456
|
+
ve(), ge.value--, ge.value === 0 && window.removeEventListener("wheel", Bo);
|
|
1450
1457
|
}
|
|
1451
|
-
},
|
|
1458
|
+
}, Ms = {
|
|
1452
1459
|
"--demo-alert-bg": {
|
|
1453
1460
|
light: "#fff",
|
|
1454
1461
|
dark: "rgba(255,255,255,.2)"
|
|
1455
1462
|
},
|
|
1456
1463
|
"--das-ui-text-tooltip-shadow": "rgba(0, 0, 0, 0.2)",
|
|
1457
1464
|
"--das-ui-text-tooltip-bgcolor": "#fff",
|
|
1458
|
-
"--das-ui-text-tooltip-text-color":
|
|
1465
|
+
"--das-ui-text-tooltip-text-color": Dn("--das-ui-color-normal")
|
|
1459
1466
|
};
|
|
1460
|
-
|
|
1467
|
+
In(Ms);
|
|
1461
1468
|
export {
|
|
1462
|
-
|
|
1463
|
-
|
|
1469
|
+
Fs as default,
|
|
1470
|
+
Fs as vDasTooltip
|
|
1464
1471
|
};
|