@pareto-engineering/design-system 5.12.1-alpha.0 → 5.12.2
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/{FormBuilder-DFK61jJk.js → FormBuilder-Cn9TX6jo.js} +5861 -5858
- package/dist/assets/People.css +1 -1
- package/dist/index.js +8 -10
- package/dist/stories/a/AppContext.stories.js +5 -6
- package/dist/stories/a/AreaChart.stories.js +3 -4
- package/dist/stories/a/BarChart.stories.js +7 -8
- package/dist/stories/a/BlurOverlay.stories.js +3 -4
- package/dist/stories/a/ContentTree.stories.js +5 -6
- package/dist/stories/a/Conversation.stories.js +7 -8
- package/dist/stories/a/DatePicker.stories.js +3 -4
- package/dist/stories/a/DotInfo.stories.js +5 -6
- package/dist/stories/a/Figure.stories.js +5 -6
- package/dist/stories/a/HamburgerButton.stories.js +5 -6
- package/dist/stories/a/IconList.stories.js +5 -6
- package/dist/stories/a/Label.stories.js +5 -6
- package/dist/stories/a/LoadingCircle.stories.js +5 -6
- package/dist/stories/a/MetaCard.stories.js +3 -4
- package/dist/stories/a/Notification.stories.js +11 -12
- package/dist/stories/a/NotificationStack.stories.js +5 -6
- package/dist/stories/a/People.stories.js +9 -10
- package/dist/stories/a/PieChart.stories.js +6 -7
- package/dist/stories/a/Popover.stories.js +3 -4
- package/dist/stories/a/ProgressBar.stories.js +5 -6
- package/dist/stories/a/Quote.stories.js +3 -4
- package/dist/stories/a/Removable.stories.js +5 -6
- package/dist/stories/a/SVG.stories.js +11 -12
- package/dist/stories/a/SnapScroller.stories.js +7 -8
- package/dist/stories/a/Spinner.stories.js +5 -6
- package/dist/stories/a/TextSteps.stories.js +5 -6
- package/dist/stories/a/Timestamp.stories.js +3 -4
- package/dist/stories/a/Tip.stories.js +3 -4
- package/dist/stories/a/ToggleSwitch.stories.js +6 -7
- package/dist/stories/a/Tooltip.stories.js +9 -10
- package/dist/stories/a/XMLEditor.stories.js +3 -4
- package/dist/stories/b/Button/Button.stories.js +5 -6
- package/dist/stories/b/Button/Group.stories.js +3 -4
- package/dist/stories/b/Card/Card.stories.js +3 -4
- package/dist/stories/b/Card/Group.stories.js +3 -4
- package/dist/stories/b/Logo.stories.js +6 -7
- package/dist/stories/b/Page.stories.js +8 -9
- package/dist/stories/b/SocialMediaButton.stories.js +3 -4
- package/dist/stories/b/ThemeSelector.stories.js +5 -6
- package/dist/stories/b/Title.stories.js +5 -6
- package/dist/stories/c/Modal.stories.js +3 -4
- package/dist/stories/c/Shortener.stories.js +3 -4
- package/dist/stories/c/SocialMediaShareButton.stories.js +3 -4
- package/dist/stories/f/Checkbox.stories.js +3 -4
- package/dist/stories/f/ChoicesInput.stories.js +5 -6
- package/dist/stories/f/Combobox.stories.js +5 -6
- package/dist/stories/f/Description.stories.js +3 -4
- package/dist/stories/f/DragAndDropFileUpload.stories.js +13 -14
- package/dist/stories/f/EditorInput.stories.js +3 -4
- package/dist/stories/f/FileUpload.stories.js +9 -10
- package/dist/stories/f/Label.stories.js +5 -6
- package/dist/stories/f/LinkInput.stories.js +3 -4
- package/dist/stories/f/RadioInput.stories.js +5 -6
- package/dist/stories/f/RatingsInput.stories.js +3 -4
- package/dist/stories/f/SelectInput.stories.js +5 -6
- package/dist/stories/f/TextInput.stories.js +10 -11
- package/dist/stories/f/TextareaInput.stories.js +3 -4
- package/dist/stories/g/DragAndDrop.stories.js +7 -8
- package/dist/stories/g/ExpandableLexicalPreview.stories.js +3 -4
- package/dist/stories/g/FormBuilder.stories.js +9 -10
- package/dist/ui/a/AnimatedGradient/AnimatedGradient.js +1 -1
- package/dist/ui/a/AnimatedGradient/index.js +1 -1
- package/dist/ui/a/Charts/AreaChart/AreaChart.js +0 -1
- package/dist/ui/a/Charts/Common/CustomLegend/CustomLegend.js +4 -5
- package/dist/ui/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.js +2 -3
- package/dist/ui/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.js +0 -1
- package/dist/ui/a/ContentTree/ContentTree.js +1 -1
- package/dist/ui/a/ContentTree/common/Tree/Tree.js +2 -3
- package/dist/ui/a/ContentTree/common/Tree/index.js +1 -1
- package/dist/ui/a/ContentTree/common/index.js +1 -1
- package/dist/ui/a/ContentTree/index.js +1 -1
- package/dist/ui/a/Conversation/Conversation.js +2 -3
- package/dist/ui/a/Conversation/index.js +1 -1
- package/dist/ui/a/Notification/Notification.js +2 -3
- package/dist/ui/a/Notification/index.js +1 -1
- package/dist/ui/a/NotificationStack/NotificationStack.js +1 -1
- package/dist/ui/a/NotificationStack/index.js +1 -1
- package/dist/ui/a/Popover/Popover.js +0 -1
- package/dist/ui/a/index.js +1 -1
- package/dist/ui/b/Button/Button.js +2 -3
- package/dist/ui/b/Button/index.js +1 -1
- package/dist/ui/b/Card/Card.js +2 -3
- package/dist/ui/b/Card/common/Group/Group.js +2 -3
- package/dist/ui/b/Card/common/Group/index.js +1 -1
- package/dist/ui/b/Card/common/index.js +1 -1
- package/dist/ui/b/Card/index.js +1 -1
- package/dist/ui/b/Logo/Logo.js +1 -1
- package/dist/ui/b/Logo/index.js +1 -1
- package/dist/ui/b/Page/Page.js +1 -1
- package/dist/ui/b/Page/common/PageHelmet/PageHelmet.js +1 -1
- package/dist/ui/b/Page/common/PageHelmet/index.js +1 -1
- package/dist/ui/b/Page/common/index.js +1 -1
- package/dist/ui/b/Page/index.js +1 -1
- package/dist/ui/b/SocialMediaButton/SocialMediaButton.js +1 -1
- package/dist/ui/b/SocialMediaButton/index.js +1 -1
- package/dist/ui/b/ThemeSelector/ThemeSelector.js +1 -1
- package/dist/ui/b/ThemeSelector/index.js +1 -1
- package/dist/ui/b/index.js +1 -1
- package/dist/ui/c/Modal/Modal.js +2 -6
- package/dist/ui/c/Modal/common/ModalHeader/ModalHeader.js +2 -3
- package/dist/ui/c/Modal/common/ModalHeader/index.js +1 -1
- package/dist/ui/c/Modal/common/index.js +1 -1
- package/dist/ui/c/Modal/index.js +1 -1
- package/dist/ui/c/Shortener/Shortener.js +1 -1
- package/dist/ui/c/Shortener/index.js +1 -1
- package/dist/ui/c/index.js +1 -1
- package/dist/ui/f/FormInput/FormInput.js +1 -1
- package/dist/ui/f/FormInput/index.js +1 -1
- package/dist/ui/f/common/Debugger/Debugger.js +1 -1
- package/dist/ui/f/common/Debugger/index.js +1 -1
- package/dist/ui/f/common/index.js +1 -1
- package/dist/ui/f/fields/Checkbox/Checkbox.js +1 -1
- package/dist/ui/f/fields/Checkbox/index.js +1 -1
- package/dist/ui/f/fields/ChoicesInput/ChoicesInput.js +1 -1
- package/dist/ui/f/fields/ChoicesInput/index.js +1 -1
- package/dist/ui/f/fields/DragAndDropFileUpload/DragAndDropFileUpload.js +1 -1
- package/dist/ui/f/fields/DragAndDropFileUpload/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/EditorInput.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +2 -3
- package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +2 -3
- package/dist/ui/f/fields/EditorInput/common/ColorPicker/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +2 -3
- package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/common/index.js +1 -1
- package/dist/ui/f/fields/EditorInput/index.js +1 -1
- package/dist/ui/f/fields/FileUpload/FileUpload.js +1 -1
- package/dist/ui/f/fields/FileUpload/common/Preview/Preview.js +1 -1
- package/dist/ui/f/fields/FileUpload/common/Preview/index.js +1 -1
- package/dist/ui/f/fields/FileUpload/common/PreviewNewRegistration/PreviewNewRegistration.js +1 -1
- package/dist/ui/f/fields/FileUpload/common/PreviewNewRegistration/index.js +1 -1
- package/dist/ui/f/fields/FileUpload/common/index.js +1 -1
- package/dist/ui/f/fields/FileUpload/index.js +1 -1
- package/dist/ui/f/fields/LatexPreviewInput/LatexPreviewInput.js +1 -1
- package/dist/ui/f/fields/LatexPreviewInput/index.js +1 -1
- package/dist/ui/f/fields/LinkInput/LinkInput.js +1 -1
- package/dist/ui/f/fields/LinkInput/index.js +1 -1
- package/dist/ui/f/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/ui/f/fields/PasswordInput/index.js +1 -1
- package/dist/ui/f/fields/QueryChoices/QueryChoices.js +1 -1
- package/dist/ui/f/fields/QueryChoices/index.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/QueryCombobox.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/common/Combobox/Combobox.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/common/index.js +1 -1
- package/dist/ui/f/fields/QueryCombobox/index.js +1 -1
- package/dist/ui/f/fields/QuerySelect/QuerySelect.js +1 -1
- package/dist/ui/f/fields/QuerySelect/index.js +1 -1
- package/dist/ui/f/fields/RatingsInput/RatingsInput.js +1 -1
- package/dist/ui/f/fields/RatingsInput/index.js +1 -1
- package/dist/ui/f/fields/SearchDropdown/SearchDropdown.js +1 -1
- package/dist/ui/f/fields/SearchDropdown/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/SelectInput.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/Menu/Menu.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/Menu/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/Multiple/Multiple.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/Multiple/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/Single/Single.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/Single/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/common/index.js +1 -1
- package/dist/ui/f/fields/SelectInput/index.js +1 -1
- package/dist/ui/f/fields/SelectSingle/SelectSingle.js +1 -1
- package/dist/ui/f/fields/TextInput/TextInput.js +1 -1
- package/dist/ui/f/fields/TextInput/index.js +1 -1
- package/dist/ui/f/fields/TextareaInput/TextareaInput.js +1 -1
- package/dist/ui/f/fields/TextareaInput/index.js +1 -1
- package/dist/ui/f/fields/ToggleInput/ToggleInput.js +1 -1
- package/dist/ui/f/fields/ToggleInput/index.js +1 -1
- package/dist/ui/f/fields/index.js +1 -1
- package/dist/ui/f/index.js +1 -1
- package/dist/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +1 -1
- package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +1 -1
- package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +1 -1
- package/dist/ui/g/ExpandableLexicalPreview/common/index.js +1 -1
- package/dist/ui/g/ExpandableLexicalPreview/index.js +1 -1
- package/dist/ui/g/FormBuilder/FormBuilder.js +2 -6
- package/dist/ui/g/FormBuilder/common/Builder/Builder.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +2 -3
- package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/common/Section/Section.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/common/Section/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/common/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Builder/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Renderer/Renderer.js +2 -3
- package/dist/ui/g/FormBuilder/common/Renderer/common/Section/Section.js +1 -1
- package/dist/ui/g/FormBuilder/common/Renderer/common/Section/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Renderer/common/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/Renderer/index.js +1 -1
- package/dist/ui/g/FormBuilder/common/index.js +1 -1
- package/dist/ui/g/FormBuilder/index.js +1 -1
- package/dist/ui/g/index.js +1 -1
- package/dist/ui/index.js +7 -9
- package/dist/ui/utils/index.js +10 -12
- package/package.json +4 -6
- package/dist/assets/index.css +0 -9
- package/dist/ui/utils/ScrollArea/ScrollArea.js +0 -1465
|
@@ -1,1465 +0,0 @@
|
|
|
1
|
-
import { jsx as Wo } from "react/jsx-runtime";
|
|
2
|
-
import tn, { forwardRef as Yo, useRef as Ft, useEffect as ee, useImperativeHandle as Xo, useMemo as en } from "react";
|
|
3
|
-
import { P as Lt } from "../../../index-CxkFVI6N.js";
|
|
4
|
-
/*!
|
|
5
|
-
* OverlayScrollbars
|
|
6
|
-
* Version: 2.12.0
|
|
7
|
-
*
|
|
8
|
-
* Copyright (c) Rene Haas | KingSora.
|
|
9
|
-
* https://github.com/KingSora
|
|
10
|
-
*
|
|
11
|
-
* Released under the MIT license.
|
|
12
|
-
*/
|
|
13
|
-
const yt = (t, e) => {
|
|
14
|
-
const { o: n, i: o, u: s } = t;
|
|
15
|
-
let c = n, r;
|
|
16
|
-
const f = (i, p) => {
|
|
17
|
-
const b = c, x = i, u = p || (o ? !o(b, x) : b !== x);
|
|
18
|
-
return (u || s) && (c = x, r = b), [c, u, r];
|
|
19
|
-
};
|
|
20
|
-
return [e ? (i) => f(e(c, r), i) : f, (i) => [c, !!i, r]];
|
|
21
|
-
}, Ko = typeof window < "u" && typeof HTMLElement < "u" && !!window.document, pt = Ko ? window : {}, eo = Math.max, Qo = Math.min, nn = Math.round, Ae = Math.abs, _n = Math.sign, no = pt.cancelAnimationFrame, mn = pt.requestAnimationFrame, bn = pt.setTimeout, oo = pt.clearTimeout, ke = (t) => typeof pt[t] < "u" ? pt[t] : void 0, Zo = ke("MutationObserver"), zn = ke("IntersectionObserver"), Vt = ke("ResizeObserver"), ne = ke("ScrollTimeline"), gn = (t) => t === void 0, Pe = (t) => t === null, Ht = (t) => typeof t == "number", ie = (t) => typeof t == "string", _e = (t) => typeof t == "boolean", Ct = (t) => typeof t == "function", St = (t) => Array.isArray(t), Ee = (t) => typeof t == "object" && !St(t) && !Pe(t), hn = (t) => {
|
|
22
|
-
const e = !!t && t.length, n = Ht(e) && e > -1 && e % 1 == 0;
|
|
23
|
-
return St(t) || !Ct(t) && n ? e > 0 && Ee(t) ? e - 1 in t : !0 : !1;
|
|
24
|
-
}, Te = (t) => !!t && t.constructor === Object, Me = (t) => t instanceof HTMLElement, ze = (t) => t instanceof Element;
|
|
25
|
-
function Q(t, e) {
|
|
26
|
-
if (hn(t))
|
|
27
|
-
for (let n = 0; n < t.length && e(t[n], n, t) !== !1; n++)
|
|
28
|
-
;
|
|
29
|
-
else t && Q(Object.keys(t), (n) => e(t[n], n, t));
|
|
30
|
-
return t;
|
|
31
|
-
}
|
|
32
|
-
const so = (t, e) => t.indexOf(e) >= 0, oe = (t, e) => t.concat(e), nt = (t, e, n) => (!ie(e) && hn(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), Pt = (t) => Array.from(t || []), wn = (t) => St(t) ? t : !ie(t) && hn(t) ? Pt(t) : [t], De = (t) => !!t && !t.length, on = (t) => Pt(new Set(t)), mt = (t, e, n) => {
|
|
33
|
-
Q(t, (s) => s ? s.apply(void 0, e || []) : !0), n || (t.length = 0);
|
|
34
|
-
}, co = "paddingTop", ro = "paddingRight", io = "paddingLeft", lo = "paddingBottom", ao = "marginLeft", uo = "marginRight", fo = "marginBottom", Sn = "overflowX", xn = "overflowY", Re = "width", Fe = "height", Dt = "visible", ht = "hidden", Wt = "scroll", Jo = (t) => {
|
|
35
|
-
const e = String(t || "");
|
|
36
|
-
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
37
|
-
}, Ve = (t, e, n, o) => {
|
|
38
|
-
if (t && e) {
|
|
39
|
-
let s = !0;
|
|
40
|
-
return Q(n, (c) => {
|
|
41
|
-
const r = t[c], f = e[c];
|
|
42
|
-
r !== f && (s = !1);
|
|
43
|
-
}), s;
|
|
44
|
-
}
|
|
45
|
-
return !1;
|
|
46
|
-
}, po = (t, e) => Ve(t, e, ["w", "h"]), Ce = (t, e) => Ve(t, e, ["x", "y"]), Go = (t, e) => Ve(t, e, ["t", "r", "b", "l"]), D = (t, ...e) => t.bind(0, ...e), Nt = (t) => {
|
|
47
|
-
let e;
|
|
48
|
-
const n = t ? bn : mn, o = t ? oo : no;
|
|
49
|
-
return [(s) => {
|
|
50
|
-
o(e), e = n(() => s(), Ct(t) ? t() : t);
|
|
51
|
-
}, () => o(e)];
|
|
52
|
-
}, Rn = (t) => {
|
|
53
|
-
const e = Ct(t) ? t() : t;
|
|
54
|
-
if (Ht(e)) {
|
|
55
|
-
const n = e ? bn : mn, o = e ? oo : no;
|
|
56
|
-
return (s) => {
|
|
57
|
-
const c = n(() => s(), e);
|
|
58
|
-
return () => {
|
|
59
|
-
o(c);
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
return e && e._;
|
|
64
|
-
}, He = (t, e) => {
|
|
65
|
-
const { p: n, v: o, S: s, m: c } = e || {};
|
|
66
|
-
let r, f, l, d;
|
|
67
|
-
const i = function(S) {
|
|
68
|
-
f && f(), r && r(), d = f = r = l = void 0, t.apply(this, S);
|
|
69
|
-
}, p = (u) => c && l ? c(l, u) : u, b = () => {
|
|
70
|
-
f && l && i(p(l) || l);
|
|
71
|
-
}, x = function() {
|
|
72
|
-
const S = Pt(arguments), E = Rn(n);
|
|
73
|
-
if (E) {
|
|
74
|
-
const H = Rn(o), j = p(S) || S, w = i.bind(0, j);
|
|
75
|
-
f && f(), s && !d ? (w(), d = !0, f = E(() => d = void 0)) : (f = E(w), H && !r && (r = H(b))), l = j;
|
|
76
|
-
} else
|
|
77
|
-
i(S);
|
|
78
|
-
};
|
|
79
|
-
return x.O = b, x;
|
|
80
|
-
}, yo = (t, e) => Object.prototype.hasOwnProperty.call(t, e), xt = (t) => t ? Object.keys(t) : [], q = (t, e, n, o, s, c, r) => {
|
|
81
|
-
const f = [e, n, o, s, c, r];
|
|
82
|
-
return (typeof t != "object" || Pe(t)) && !Ct(t) && (t = {}), Q(f, (l) => {
|
|
83
|
-
Q(l, (d, i) => {
|
|
84
|
-
const p = l[i];
|
|
85
|
-
if (t === p)
|
|
86
|
-
return !0;
|
|
87
|
-
const b = St(p);
|
|
88
|
-
if (p && Te(p)) {
|
|
89
|
-
const x = t[i];
|
|
90
|
-
let u = x;
|
|
91
|
-
b && !St(x) ? u = [] : !b && !Te(x) && (u = {}), t[i] = q(u, p);
|
|
92
|
-
} else
|
|
93
|
-
t[i] = b ? p.slice() : p;
|
|
94
|
-
});
|
|
95
|
-
}), t;
|
|
96
|
-
}, vo = (t, e) => Q(q({}, t), (n, o, s) => {
|
|
97
|
-
n === void 0 ? delete s[o] : n && Te(n) && (s[o] = vo(n));
|
|
98
|
-
}), Cn = (t) => !xt(t).length, se = () => {
|
|
99
|
-
}, mo = (t, e, n) => eo(t, Qo(e, n)), Rt = (t) => on((St(t) ? t : (t || "").split(" ")).filter((e) => e)), On = (t, e) => t && t.getAttribute(e), Fn = (t, e) => t && t.hasAttribute(e), Tt = (t, e, n) => {
|
|
100
|
-
Q(Rt(e), (o) => {
|
|
101
|
-
t && t.setAttribute(o, String(n || ""));
|
|
102
|
-
});
|
|
103
|
-
}, Ot = (t, e) => {
|
|
104
|
-
Q(Rt(e), (n) => t && t.removeAttribute(n));
|
|
105
|
-
}, Ne = (t, e) => {
|
|
106
|
-
const n = Rt(On(t, e)), o = D(Tt, t, e), s = (c, r) => {
|
|
107
|
-
const f = new Set(n);
|
|
108
|
-
return Q(Rt(c), (l) => {
|
|
109
|
-
f[r](l);
|
|
110
|
-
}), Pt(f).join(" ");
|
|
111
|
-
};
|
|
112
|
-
return {
|
|
113
|
-
C: (c) => o(s(c, "delete")),
|
|
114
|
-
$: (c) => o(s(c, "add")),
|
|
115
|
-
H: (c) => {
|
|
116
|
-
const r = Rt(c);
|
|
117
|
-
return r.reduce((f, l) => f && n.includes(l), r.length > 0);
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
}, bo = (t, e, n) => (Ne(t, e).C(n), D($n, t, e, n)), $n = (t, e, n) => (Ne(t, e).$(n), D(bo, t, e, n)), Ie = (t, e, n, o) => (o ? $n : bo)(t, e, n), An = (t, e, n) => Ne(t, e).H(n), go = (t) => Ne(t, "class"), ho = (t, e) => {
|
|
121
|
-
go(t).C(e);
|
|
122
|
-
}, En = (t, e) => (go(t).$(e), D(ho, t, e)), wo = (t, e) => {
|
|
123
|
-
const n = e ? ze(e) && e : document;
|
|
124
|
-
return n ? Pt(n.querySelectorAll(t)) : [];
|
|
125
|
-
}, ts = (t, e) => {
|
|
126
|
-
const n = e ? ze(e) && e : document;
|
|
127
|
-
return n && n.querySelector(t);
|
|
128
|
-
}, sn = (t, e) => ze(t) && t.matches(e), So = (t) => sn(t, "body"), cn = (t) => t ? Pt(t.childNodes) : [], ce = (t) => t && t.parentElement, Ut = (t, e) => ze(t) && t.closest(e), rn = (t) => document.activeElement, es = (t, e, n) => {
|
|
129
|
-
const o = Ut(t, e), s = t && ts(n, o), c = Ut(s, e) === o;
|
|
130
|
-
return o && s ? o === t || s === t || c && Ut(Ut(t, n), e) !== o : !1;
|
|
131
|
-
}, Yt = (t) => {
|
|
132
|
-
Q(wn(t), (e) => {
|
|
133
|
-
const n = ce(e);
|
|
134
|
-
e && n && n.removeChild(e);
|
|
135
|
-
});
|
|
136
|
-
}, dt = (t, e) => D(Yt, t && e && Q(wn(e), (n) => {
|
|
137
|
-
n && t.appendChild(n);
|
|
138
|
-
}));
|
|
139
|
-
let xo;
|
|
140
|
-
const ns = () => xo, os = (t) => {
|
|
141
|
-
xo = t;
|
|
142
|
-
}, Bt = (t) => {
|
|
143
|
-
const e = document.createElement("div");
|
|
144
|
-
return Tt(e, "class", t), e;
|
|
145
|
-
}, Co = (t) => {
|
|
146
|
-
const e = Bt(), n = ns(), o = t.trim();
|
|
147
|
-
return e.innerHTML = n ? n.createHTML(o) : o, Q(cn(e), (s) => Yt(s));
|
|
148
|
-
}, Vn = (t, e) => t.getPropertyValue(e) || t[e] || "", Oo = (t) => {
|
|
149
|
-
const e = t || 0;
|
|
150
|
-
return isFinite(e) ? e : 0;
|
|
151
|
-
}, Se = (t) => Oo(parseFloat(t || "")), ln = (t) => Math.round(t * 1e4) / 1e4, $o = (t) => `${ln(Oo(t))}px`;
|
|
152
|
-
function re(t, e) {
|
|
153
|
-
t && e && Q(e, (n, o) => {
|
|
154
|
-
try {
|
|
155
|
-
const s = t.style, c = Pe(n) || _e(n) ? "" : Ht(n) ? $o(n) : n;
|
|
156
|
-
o.indexOf("--") === 0 ? s.setProperty(o, c) : s[o] = c;
|
|
157
|
-
} catch {
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
function At(t, e, n) {
|
|
162
|
-
const o = ie(e);
|
|
163
|
-
let s = o ? "" : {};
|
|
164
|
-
if (t) {
|
|
165
|
-
const c = pt.getComputedStyle(t, n) || t.style;
|
|
166
|
-
s = o ? Vn(c, e) : Pt(e).reduce((r, f) => (r[f] = Vn(c, f), r), s);
|
|
167
|
-
}
|
|
168
|
-
return s;
|
|
169
|
-
}
|
|
170
|
-
const Nn = (t, e, n) => {
|
|
171
|
-
const o = e ? `${e}-` : "", s = n ? `-${n}` : "", c = `${o}top${s}`, r = `${o}right${s}`, f = `${o}bottom${s}`, l = `${o}left${s}`, d = At(t, [c, r, f, l]);
|
|
172
|
-
return {
|
|
173
|
-
t: Se(d[c]),
|
|
174
|
-
r: Se(d[r]),
|
|
175
|
-
b: Se(d[f]),
|
|
176
|
-
l: Se(d[l])
|
|
177
|
-
};
|
|
178
|
-
}, Xe = (t, e) => `translate${Ee(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`, ss = (t) => !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length), cs = {
|
|
179
|
-
w: 0,
|
|
180
|
-
h: 0
|
|
181
|
-
}, Ue = (t, e) => e ? {
|
|
182
|
-
w: e[`${t}Width`],
|
|
183
|
-
h: e[`${t}Height`]
|
|
184
|
-
} : cs, rs = (t) => Ue("inner", t || pt), qt = D(Ue, "offset"), Ao = D(Ue, "client"), Le = D(Ue, "scroll"), Tn = (t) => {
|
|
185
|
-
const e = parseFloat(At(t, Re)) || 0, n = parseFloat(At(t, Fe)) || 0;
|
|
186
|
-
return {
|
|
187
|
-
w: e - nn(e),
|
|
188
|
-
h: n - nn(n)
|
|
189
|
-
};
|
|
190
|
-
}, Ke = (t) => t.getBoundingClientRect(), is = (t) => !!t && ss(t), an = (t) => !!(t && (t[Fe] || t[Re])), Eo = (t, e) => {
|
|
191
|
-
const n = an(t);
|
|
192
|
-
return !an(e) && n;
|
|
193
|
-
}, Un = (t, e, n, o) => {
|
|
194
|
-
Q(Rt(e), (s) => {
|
|
195
|
-
t && t.removeEventListener(s, n, o);
|
|
196
|
-
});
|
|
197
|
-
}, J = (t, e, n, o) => {
|
|
198
|
-
var s;
|
|
199
|
-
const c = (s = o && o.T) != null ? s : !0, r = o && o.I || !1, f = o && o.A || !1, l = {
|
|
200
|
-
passive: c,
|
|
201
|
-
capture: r
|
|
202
|
-
};
|
|
203
|
-
return D(mt, Rt(e).map((d) => {
|
|
204
|
-
const i = f ? (p) => {
|
|
205
|
-
Un(t, d, i, r), n && n(p);
|
|
206
|
-
} : n;
|
|
207
|
-
return t && t.addEventListener(d, i, l), D(Un, t, d, i, r);
|
|
208
|
-
}));
|
|
209
|
-
}, To = (t) => t.stopPropagation(), un = (t) => t.preventDefault(), Mo = (t) => To(t) || un(t), $t = (t, e) => {
|
|
210
|
-
const { x: n, y: o } = Ht(e) ? {
|
|
211
|
-
x: e,
|
|
212
|
-
y: e
|
|
213
|
-
} : e || {};
|
|
214
|
-
Ht(n) && (t.scrollLeft = n), Ht(o) && (t.scrollTop = o);
|
|
215
|
-
}, vt = (t) => ({
|
|
216
|
-
x: t.scrollLeft,
|
|
217
|
-
y: t.scrollTop
|
|
218
|
-
}), Do = () => ({
|
|
219
|
-
D: {
|
|
220
|
-
x: 0,
|
|
221
|
-
y: 0
|
|
222
|
-
},
|
|
223
|
-
M: {
|
|
224
|
-
x: 0,
|
|
225
|
-
y: 0
|
|
226
|
-
}
|
|
227
|
-
}), ls = (t, e) => {
|
|
228
|
-
const { D: n, M: o } = t, { w: s, h: c } = e, r = (p, b, x) => {
|
|
229
|
-
let u = _n(p) * x, S = _n(b) * x;
|
|
230
|
-
if (u === S) {
|
|
231
|
-
const E = Ae(p), H = Ae(b);
|
|
232
|
-
S = E > H ? 0 : S, u = E < H ? 0 : u;
|
|
233
|
-
}
|
|
234
|
-
return u = u === S ? 0 : u, [u + 0, S + 0];
|
|
235
|
-
}, [f, l] = r(n.x, o.x, s), [d, i] = r(n.y, o.y, c);
|
|
236
|
-
return {
|
|
237
|
-
D: {
|
|
238
|
-
x: f,
|
|
239
|
-
y: d
|
|
240
|
-
},
|
|
241
|
-
M: {
|
|
242
|
-
x: l,
|
|
243
|
-
y: i
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
}, Qe = ({ D: t, M: e }) => {
|
|
247
|
-
const n = (o, s) => o === 0 && o <= s;
|
|
248
|
-
return {
|
|
249
|
-
x: n(t.x, e.x),
|
|
250
|
-
y: n(t.y, e.y)
|
|
251
|
-
};
|
|
252
|
-
}, jn = ({ D: t, M: e }, n) => {
|
|
253
|
-
const o = (s, c, r) => mo(0, 1, (s - r) / (s - c) || 0);
|
|
254
|
-
return {
|
|
255
|
-
x: o(t.x, e.x, n.x),
|
|
256
|
-
y: o(t.y, e.y, n.y)
|
|
257
|
-
};
|
|
258
|
-
}, fn = (t) => {
|
|
259
|
-
t && t.focus && t.focus({
|
|
260
|
-
preventScroll: !0
|
|
261
|
-
});
|
|
262
|
-
}, Bn = (t, e) => {
|
|
263
|
-
Q(wn(e), t);
|
|
264
|
-
}, dn = (t) => {
|
|
265
|
-
const e = /* @__PURE__ */ new Map(), n = (c, r) => {
|
|
266
|
-
if (c) {
|
|
267
|
-
const f = e.get(c);
|
|
268
|
-
Bn((l) => {
|
|
269
|
-
f && f[l ? "delete" : "clear"](l);
|
|
270
|
-
}, r);
|
|
271
|
-
} else
|
|
272
|
-
e.forEach((f) => {
|
|
273
|
-
f.clear();
|
|
274
|
-
}), e.clear();
|
|
275
|
-
}, o = (c, r) => {
|
|
276
|
-
if (ie(c)) {
|
|
277
|
-
const d = e.get(c) || /* @__PURE__ */ new Set();
|
|
278
|
-
return e.set(c, d), Bn((i) => {
|
|
279
|
-
Ct(i) && d.add(i);
|
|
280
|
-
}, r), D(n, c, r);
|
|
281
|
-
}
|
|
282
|
-
_e(r) && r && n();
|
|
283
|
-
const f = xt(c), l = [];
|
|
284
|
-
return Q(f, (d) => {
|
|
285
|
-
const i = c[d];
|
|
286
|
-
i && nt(l, o(d, i));
|
|
287
|
-
}), D(mt, l);
|
|
288
|
-
}, s = (c, r) => {
|
|
289
|
-
Q(Pt(e.get(c)), (f) => {
|
|
290
|
-
r && !De(r) ? f.apply(0, r) : f();
|
|
291
|
-
});
|
|
292
|
-
};
|
|
293
|
-
return o(t || {}), [o, n, s];
|
|
294
|
-
}, Ho = {}, Io = {}, as = (t) => {
|
|
295
|
-
Q(t, (e) => Q(e, (n, o) => {
|
|
296
|
-
Ho[o] = e[o];
|
|
297
|
-
}));
|
|
298
|
-
}, Lo = (t, e, n) => xt(t).map((o) => {
|
|
299
|
-
const { static: s, instance: c } = t[o], [r, f, l] = n || [], d = n ? c : s;
|
|
300
|
-
if (d) {
|
|
301
|
-
const i = n ? d(r, f, e) : d(e);
|
|
302
|
-
return (l || Io)[o] = i;
|
|
303
|
-
}
|
|
304
|
-
}), Xt = (t) => Io[t], us = "__osOptionsValidationPlugin", Kt = "data-overlayscrollbars", Oe = "os-environment", xe = `${Oe}-scrollbar-hidden`, Ze = `${Kt}-initialize`, $e = "noClipping", qn = `${Kt}-body`, kt = Kt, fs = "host", Mt = `${Kt}-viewport`, ds = Sn, ps = xn, ys = "arrange", ko = "measuring", vs = "scrolling", Po = "scrollbarHidden", ms = "noContent", pn = `${Kt}-padding`, Wn = `${Kt}-content`, Mn = "os-size-observer", bs = `${Mn}-appear`, gs = `${Mn}-listener`, hs = "os-trinsic-observer", ws = "os-theme-none", bt = "os-scrollbar", Ss = `${bt}-rtl`, xs = `${bt}-horizontal`, Cs = `${bt}-vertical`, _o = `${bt}-track`, Dn = `${bt}-handle`, Os = `${bt}-visible`, $s = `${bt}-cornerless`, Yn = `${bt}-interaction`, Xn = `${bt}-unusable`, yn = `${bt}-auto-hide`, Kn = `${yn}-hidden`, Qn = `${bt}-wheel`, As = `${_o}-interactive`, Es = `${Dn}-interactive`, Ts = "__osSizeObserverPlugin", Ms = (t, e) => {
|
|
305
|
-
const { k: n } = e, [o, s] = t("showNativeOverlaidScrollbars");
|
|
306
|
-
return [o && n.x && n.y, s];
|
|
307
|
-
}, jt = (t) => t.indexOf(Dt) === 0, Ds = (t) => t.replace(`${Dt}-`, ""), vn = (t, e) => {
|
|
308
|
-
if (t === "auto")
|
|
309
|
-
return e ? Wt : ht;
|
|
310
|
-
const n = t || ht;
|
|
311
|
-
return [ht, Wt, Dt].includes(n) ? n : ht;
|
|
312
|
-
}, Hs = (t, e) => {
|
|
313
|
-
const { overflowX: n, overflowY: o } = At(t, [Sn, xn]);
|
|
314
|
-
return {
|
|
315
|
-
x: vn(n, e.x),
|
|
316
|
-
y: vn(o, e.y)
|
|
317
|
-
};
|
|
318
|
-
}, Hn = "__osScrollbarsHidingPlugin", Is = "__osClickScrollPlugin", Zn = (t) => JSON.stringify(t, (e, n) => {
|
|
319
|
-
if (Ct(n))
|
|
320
|
-
throw 0;
|
|
321
|
-
return n;
|
|
322
|
-
}), Jn = (t, e) => t ? `${e}`.split(".").reduce((n, o) => n && yo(n, o) ? n[o] : void 0, t) : void 0, Ls = {
|
|
323
|
-
paddingAbsolute: !1,
|
|
324
|
-
showNativeOverlaidScrollbars: !1,
|
|
325
|
-
update: {
|
|
326
|
-
elementEvents: [["img", "load"]],
|
|
327
|
-
debounce: [0, 33],
|
|
328
|
-
attributes: null,
|
|
329
|
-
ignoreMutation: null
|
|
330
|
-
},
|
|
331
|
-
overflow: {
|
|
332
|
-
x: "scroll",
|
|
333
|
-
y: "scroll"
|
|
334
|
-
},
|
|
335
|
-
scrollbars: {
|
|
336
|
-
theme: "os-theme-dark",
|
|
337
|
-
visibility: "auto",
|
|
338
|
-
autoHide: "never",
|
|
339
|
-
autoHideDelay: 1300,
|
|
340
|
-
autoHideSuspend: !1,
|
|
341
|
-
dragScroll: !0,
|
|
342
|
-
clickScroll: !1,
|
|
343
|
-
pointers: ["mouse", "touch", "pen"]
|
|
344
|
-
}
|
|
345
|
-
}, zo = (t, e) => {
|
|
346
|
-
const n = {}, o = oe(xt(e), xt(t));
|
|
347
|
-
return Q(o, (s) => {
|
|
348
|
-
const c = t[s], r = e[s];
|
|
349
|
-
if (Ee(c) && Ee(r))
|
|
350
|
-
q(n[s] = {}, zo(c, r)), Cn(n[s]) && delete n[s];
|
|
351
|
-
else if (yo(e, s) && r !== c) {
|
|
352
|
-
let f = !0;
|
|
353
|
-
if (St(c) || St(r))
|
|
354
|
-
try {
|
|
355
|
-
Zn(c) === Zn(r) && (f = !1);
|
|
356
|
-
} catch {
|
|
357
|
-
}
|
|
358
|
-
f && (n[s] = r);
|
|
359
|
-
}
|
|
360
|
-
}), n;
|
|
361
|
-
}, Gn = (t, e, n) => (o) => [Jn(t, o), n || Jn(e, o) !== void 0];
|
|
362
|
-
let Ro;
|
|
363
|
-
const ks = () => Ro, Ps = (t) => {
|
|
364
|
-
Ro = t;
|
|
365
|
-
};
|
|
366
|
-
let Je;
|
|
367
|
-
const _s = () => {
|
|
368
|
-
const t = (w, I, L) => {
|
|
369
|
-
dt(document.body, w), dt(document.body, w);
|
|
370
|
-
const k = Ao(w), F = qt(w), T = Tn(I);
|
|
371
|
-
return L && Yt(w), {
|
|
372
|
-
x: F.h - k.h + T.h,
|
|
373
|
-
y: F.w - k.w + T.w
|
|
374
|
-
};
|
|
375
|
-
}, e = (w) => {
|
|
376
|
-
let I = !1;
|
|
377
|
-
const L = En(w, xe);
|
|
378
|
-
try {
|
|
379
|
-
I = At(w, "scrollbar-width") === "none" || At(w, "display", "::-webkit-scrollbar") === "none";
|
|
380
|
-
} catch {
|
|
381
|
-
}
|
|
382
|
-
return L(), I;
|
|
383
|
-
}, n = `.${Oe}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Oe} div{width:200%;height:200%;margin:10px 0}.${xe}{scrollbar-width:none!important}.${xe}::-webkit-scrollbar,.${xe}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`, s = Co(`<div class="${Oe}"><div></div><style>${n}</style></div>`)[0], c = s.firstChild, r = s.lastChild, f = ks();
|
|
384
|
-
f && (r.nonce = f);
|
|
385
|
-
const [l, , d] = dn(), [i, p] = yt({
|
|
386
|
-
o: t(s, c),
|
|
387
|
-
i: Ce
|
|
388
|
-
}, D(t, s, c, !0)), [b] = p(), x = e(s), u = {
|
|
389
|
-
x: b.x === 0,
|
|
390
|
-
y: b.y === 0
|
|
391
|
-
}, S = {
|
|
392
|
-
elements: {
|
|
393
|
-
host: null,
|
|
394
|
-
padding: !x,
|
|
395
|
-
viewport: (w) => x && So(w) && w,
|
|
396
|
-
content: !1
|
|
397
|
-
},
|
|
398
|
-
scrollbars: {
|
|
399
|
-
slot: !0
|
|
400
|
-
},
|
|
401
|
-
cancel: {
|
|
402
|
-
nativeScrollbarsOverlaid: !1,
|
|
403
|
-
body: null
|
|
404
|
-
}
|
|
405
|
-
}, E = q({}, Ls), H = D(q, {}, E), z = D(q, {}, S), j = {
|
|
406
|
-
P: b,
|
|
407
|
-
k: u,
|
|
408
|
-
U: x,
|
|
409
|
-
J: !!ne,
|
|
410
|
-
G: D(l, "r"),
|
|
411
|
-
K: z,
|
|
412
|
-
Z: (w) => q(S, w) && z(),
|
|
413
|
-
tt: H,
|
|
414
|
-
nt: (w) => q(E, w) && H(),
|
|
415
|
-
ot: q({}, S),
|
|
416
|
-
st: q({}, E)
|
|
417
|
-
};
|
|
418
|
-
if (Ot(s, "style"), Yt(s), J(pt, "resize", () => {
|
|
419
|
-
d("r", []);
|
|
420
|
-
}), Ct(pt.matchMedia) && !x && (!u.x || !u.y)) {
|
|
421
|
-
const w = (I) => {
|
|
422
|
-
const L = pt.matchMedia(`(resolution: ${pt.devicePixelRatio}dppx)`);
|
|
423
|
-
J(L, "change", () => {
|
|
424
|
-
I(), w(I);
|
|
425
|
-
}, {
|
|
426
|
-
A: !0
|
|
427
|
-
});
|
|
428
|
-
};
|
|
429
|
-
w(() => {
|
|
430
|
-
const [I, L] = i();
|
|
431
|
-
q(j.P, I), d("r", [L]);
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
return j;
|
|
435
|
-
}, Et = () => (Je || (Je = _s()), Je), zs = (t, e, n) => {
|
|
436
|
-
let o = !1;
|
|
437
|
-
const s = n ? /* @__PURE__ */ new WeakMap() : !1, c = () => {
|
|
438
|
-
o = !0;
|
|
439
|
-
}, r = (f) => {
|
|
440
|
-
if (s && n) {
|
|
441
|
-
const l = n.map((d) => {
|
|
442
|
-
const [i, p] = d || [];
|
|
443
|
-
return [p && i ? (f || wo)(i, t) : [], p];
|
|
444
|
-
});
|
|
445
|
-
Q(l, (d) => Q(d[0], (i) => {
|
|
446
|
-
const p = d[1], b = s.get(i) || [];
|
|
447
|
-
if (t.contains(i) && p) {
|
|
448
|
-
const u = J(i, p, (S) => {
|
|
449
|
-
o ? (u(), s.delete(i)) : e(S);
|
|
450
|
-
});
|
|
451
|
-
s.set(i, nt(b, u));
|
|
452
|
-
} else
|
|
453
|
-
mt(b), s.delete(i);
|
|
454
|
-
}));
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
return r(), [c, r];
|
|
458
|
-
}, to = (t, e, n, o) => {
|
|
459
|
-
let s = !1;
|
|
460
|
-
const { et: c, ct: r, rt: f, it: l, lt: d, ut: i } = o || {}, p = He(() => s && n(!0), {
|
|
461
|
-
p: 33,
|
|
462
|
-
v: 99
|
|
463
|
-
}), [b, x] = zs(t, p, f), u = c || [], S = r || [], E = oe(u, S), H = (j, w) => {
|
|
464
|
-
if (!De(w)) {
|
|
465
|
-
const I = d || se, L = i || se, k = [], F = [];
|
|
466
|
-
let T = !1, g = !1;
|
|
467
|
-
if (Q(w, (O) => {
|
|
468
|
-
const { attributeName: C, target: _, type: V, oldValue: W, addedNodes: Y, removedNodes: B } = O, K = V === "attributes", U = V === "childList", ot = t === _, A = K && C, M = A && On(_, C || ""), a = ie(M) ? M : null, m = A && W !== a, y = so(S, C) && m;
|
|
469
|
-
if (e && (U || !ot)) {
|
|
470
|
-
const v = K && m, h = v && l && sn(_, l), P = (h ? !I(_, C, W, a) : !K || v) && !L(O, !!h, t, o);
|
|
471
|
-
Q(Y, (N) => nt(k, N)), Q(B, (N) => nt(k, N)), g = g || P;
|
|
472
|
-
}
|
|
473
|
-
!e && ot && m && !I(_, C, W, a) && (nt(F, C), T = T || y);
|
|
474
|
-
}), x((O) => on(k).reduce((C, _) => (nt(C, wo(O, _)), sn(_, O) ? nt(C, _) : C), [])), e)
|
|
475
|
-
return !j && g && n(!1), [!1];
|
|
476
|
-
if (!De(F) || T) {
|
|
477
|
-
const O = [on(F), T];
|
|
478
|
-
return j || n.apply(0, O), O;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
}, z = new Zo(D(H, !1));
|
|
482
|
-
return [() => (z.observe(t, {
|
|
483
|
-
attributes: !0,
|
|
484
|
-
attributeOldValue: !0,
|
|
485
|
-
attributeFilter: E,
|
|
486
|
-
subtree: e,
|
|
487
|
-
childList: e,
|
|
488
|
-
characterData: e
|
|
489
|
-
}), s = !0, () => {
|
|
490
|
-
s && (b(), z.disconnect(), s = !1);
|
|
491
|
-
}), () => {
|
|
492
|
-
if (s)
|
|
493
|
-
return p.O(), H(!0, z.takeRecords());
|
|
494
|
-
}];
|
|
495
|
-
};
|
|
496
|
-
let zt = null;
|
|
497
|
-
const Fo = (t, e, n) => {
|
|
498
|
-
const { ft: o } = n || {}, s = Xt(Ts), [c] = yt({
|
|
499
|
-
o: !1,
|
|
500
|
-
u: !0
|
|
501
|
-
});
|
|
502
|
-
return () => {
|
|
503
|
-
const r = [], l = Co(`<div class="${Mn}"><div class="${gs}"></div></div>`)[0], d = l.firstChild, i = (p) => {
|
|
504
|
-
const b = St(p) && !De(p);
|
|
505
|
-
let x = !1, u = !1;
|
|
506
|
-
if (b) {
|
|
507
|
-
const S = p[0], [E, , H] = c(S.contentRect), z = an(E);
|
|
508
|
-
u = Eo(E, H), x = !u && !z;
|
|
509
|
-
} else
|
|
510
|
-
u = p === !0;
|
|
511
|
-
x || e({
|
|
512
|
-
_t: !0,
|
|
513
|
-
ft: u
|
|
514
|
-
});
|
|
515
|
-
};
|
|
516
|
-
if (Vt) {
|
|
517
|
-
if (!_e(zt)) {
|
|
518
|
-
const u = new Vt(se);
|
|
519
|
-
u.observe(t, {
|
|
520
|
-
get box() {
|
|
521
|
-
zt = !0;
|
|
522
|
-
}
|
|
523
|
-
}), zt = zt || !1, u.disconnect();
|
|
524
|
-
}
|
|
525
|
-
const p = He(i, {
|
|
526
|
-
p: 0,
|
|
527
|
-
v: 0
|
|
528
|
-
}), b = (u) => p(u), x = new Vt(b);
|
|
529
|
-
if (x.observe(zt ? t : d), nt(r, [() => {
|
|
530
|
-
x.disconnect();
|
|
531
|
-
}, !zt && dt(t, l)]), zt) {
|
|
532
|
-
const u = new Vt(b);
|
|
533
|
-
u.observe(t, {
|
|
534
|
-
box: "border-box"
|
|
535
|
-
}), nt(r, () => u.disconnect());
|
|
536
|
-
}
|
|
537
|
-
} else if (s) {
|
|
538
|
-
const [p, b] = s(d, i, o);
|
|
539
|
-
nt(r, oe([En(l, bs), J(l, "animationstart", p), dt(t, l)], b));
|
|
540
|
-
} else
|
|
541
|
-
return se;
|
|
542
|
-
return D(mt, r);
|
|
543
|
-
};
|
|
544
|
-
}, Rs = (t, e) => {
|
|
545
|
-
let n;
|
|
546
|
-
const o = (l) => l.h === 0 || l.isIntersecting || l.intersectionRatio > 0, s = Bt(hs), [c] = yt({
|
|
547
|
-
o: !1
|
|
548
|
-
}), r = (l, d) => {
|
|
549
|
-
if (l) {
|
|
550
|
-
const i = c(o(l)), [, p] = i;
|
|
551
|
-
return p && !d && e(i) && [i];
|
|
552
|
-
}
|
|
553
|
-
}, f = (l, d) => r(d.pop(), l);
|
|
554
|
-
return [() => {
|
|
555
|
-
const l = [];
|
|
556
|
-
if (zn)
|
|
557
|
-
n = new zn(D(f, !1), {
|
|
558
|
-
root: t
|
|
559
|
-
}), n.observe(s), nt(l, () => {
|
|
560
|
-
n.disconnect();
|
|
561
|
-
});
|
|
562
|
-
else {
|
|
563
|
-
const d = () => {
|
|
564
|
-
const i = qt(s);
|
|
565
|
-
r(i);
|
|
566
|
-
};
|
|
567
|
-
nt(l, Fo(s, d)()), d();
|
|
568
|
-
}
|
|
569
|
-
return D(mt, nt(l, dt(t, s)));
|
|
570
|
-
}, () => n && f(!0, n.takeRecords())];
|
|
571
|
-
}, Fs = (t, e, n, o) => {
|
|
572
|
-
let s, c, r, f, l, d;
|
|
573
|
-
const i = `[${kt}]`, p = `[${Mt}]`, b = ["id", "class", "style", "open", "wrap", "cols", "rows"], { dt: x, vt: u, L: S, gt: E, ht: H, V: z, bt: j, wt: w, yt: I, St: L } = t, k = (y) => At(y, "direction") === "rtl", F = {
|
|
574
|
-
Ot: !1,
|
|
575
|
-
B: k(x)
|
|
576
|
-
}, T = Et(), g = Xt(Hn), [O] = yt({
|
|
577
|
-
i: po,
|
|
578
|
-
o: {
|
|
579
|
-
w: 0,
|
|
580
|
-
h: 0
|
|
581
|
-
}
|
|
582
|
-
}, () => {
|
|
583
|
-
const y = g && g.R(t, e, F, T, n).Y, h = !(j && z) && An(u, kt, $e), $ = !z && w(ys), P = $ && vt(E), N = P && L(), G = I(ko, h), X = $ && y && y(), tt = Le(S), R = Tn(S);
|
|
584
|
-
return X && X(), $t(E, P), N && N(), h && G(), {
|
|
585
|
-
w: tt.w + R.w,
|
|
586
|
-
h: tt.h + R.h
|
|
587
|
-
};
|
|
588
|
-
}), C = He(o, {
|
|
589
|
-
p: () => s,
|
|
590
|
-
v: () => c,
|
|
591
|
-
m(y, v) {
|
|
592
|
-
const [h] = y, [$] = v;
|
|
593
|
-
return [oe(xt(h), xt($)).reduce((P, N) => (P[N] = h[N] || $[N], P), {})];
|
|
594
|
-
}
|
|
595
|
-
}), _ = (y) => {
|
|
596
|
-
const v = k(x);
|
|
597
|
-
q(y, {
|
|
598
|
-
Ct: d !== v
|
|
599
|
-
}), q(F, {
|
|
600
|
-
B: v
|
|
601
|
-
}), d = v;
|
|
602
|
-
}, V = (y, v) => {
|
|
603
|
-
const [h, $] = y, P = {
|
|
604
|
-
$t: $
|
|
605
|
-
};
|
|
606
|
-
return q(F, {
|
|
607
|
-
Ot: h
|
|
608
|
-
}), v || o(P), P;
|
|
609
|
-
}, W = ({ _t: y, ft: v }) => {
|
|
610
|
-
const $ = !(y && !v) && T.U ? C : o, P = {
|
|
611
|
-
_t: y || v,
|
|
612
|
-
ft: v
|
|
613
|
-
};
|
|
614
|
-
_(P), $(P);
|
|
615
|
-
}, Y = (y, v) => {
|
|
616
|
-
const [, h] = O(), $ = {
|
|
617
|
-
xt: h
|
|
618
|
-
};
|
|
619
|
-
return _($), h && !v && (y ? o : C)($), $;
|
|
620
|
-
}, B = (y, v, h) => {
|
|
621
|
-
const $ = {
|
|
622
|
-
Ht: v
|
|
623
|
-
};
|
|
624
|
-
return _($), v && !h && C($), $;
|
|
625
|
-
}, [K, U] = H ? Rs(u, V) : [], ot = !z && Fo(u, W, {
|
|
626
|
-
ft: !0
|
|
627
|
-
}), [A, M] = to(u, !1, B, {
|
|
628
|
-
ct: b,
|
|
629
|
-
et: b
|
|
630
|
-
}), a = z && Vt && new Vt((y) => {
|
|
631
|
-
const v = y[y.length - 1].contentRect;
|
|
632
|
-
W({
|
|
633
|
-
_t: !0,
|
|
634
|
-
ft: Eo(v, l)
|
|
635
|
-
}), l = v;
|
|
636
|
-
}), m = He(() => {
|
|
637
|
-
const [, y] = O();
|
|
638
|
-
o({
|
|
639
|
-
xt: y,
|
|
640
|
-
_t: j
|
|
641
|
-
});
|
|
642
|
-
}, {
|
|
643
|
-
p: 222,
|
|
644
|
-
S: !0
|
|
645
|
-
});
|
|
646
|
-
return [() => {
|
|
647
|
-
a && a.observe(u);
|
|
648
|
-
const y = ot && ot(), v = K && K(), h = A(), $ = T.G((P) => {
|
|
649
|
-
P ? C({
|
|
650
|
-
Et: P
|
|
651
|
-
}) : m();
|
|
652
|
-
});
|
|
653
|
-
return () => {
|
|
654
|
-
a && a.disconnect(), y && y(), v && v(), f && f(), h(), $();
|
|
655
|
-
};
|
|
656
|
-
}, ({ zt: y, Tt: v, It: h }) => {
|
|
657
|
-
const $ = {}, [P] = y("update.ignoreMutation"), [N, G] = y("update.attributes"), [X, tt] = y("update.elementEvents"), [R, lt] = y("update.debounce"), at = tt || G, rt = v || h, ft = (et) => Ct(P) && P(et);
|
|
658
|
-
if (at) {
|
|
659
|
-
r && r(), f && f();
|
|
660
|
-
const [et, st] = to(H || S, !0, Y, {
|
|
661
|
-
et: oe(b, N || []),
|
|
662
|
-
rt: X,
|
|
663
|
-
it: i,
|
|
664
|
-
ut: (ct, Z) => {
|
|
665
|
-
const { target: it, attributeName: ut } = ct;
|
|
666
|
-
return (!Z && ut && !z ? es(it, i, p) : !1) || !!Ut(it, `.${bt}`) || !!ft(ct);
|
|
667
|
-
}
|
|
668
|
-
});
|
|
669
|
-
f = et(), r = st;
|
|
670
|
-
}
|
|
671
|
-
if (lt)
|
|
672
|
-
if (C.O(), St(R)) {
|
|
673
|
-
const et = R[0], st = R[1];
|
|
674
|
-
s = Ht(et) && et, c = Ht(st) && st;
|
|
675
|
-
} else Ht(R) ? (s = R, c = !1) : (s = !1, c = !1);
|
|
676
|
-
if (rt) {
|
|
677
|
-
const et = M(), st = U && U(), ct = r && r();
|
|
678
|
-
et && q($, B(et[0], et[1], rt)), st && q($, V(st[0], rt)), ct && q($, Y(ct[0], rt));
|
|
679
|
-
}
|
|
680
|
-
return _($), $;
|
|
681
|
-
}, F];
|
|
682
|
-
}, Vo = (t, e) => Ct(e) ? e.apply(0, t) : e, Vs = (t, e, n, o) => {
|
|
683
|
-
const s = gn(o) ? n : o;
|
|
684
|
-
return Vo(t, s) || e.apply(0, t);
|
|
685
|
-
}, No = (t, e, n, o) => {
|
|
686
|
-
const s = gn(o) ? n : o, c = Vo(t, s);
|
|
687
|
-
return !!c && (Me(c) ? c : e.apply(0, t));
|
|
688
|
-
}, Ns = (t, e) => {
|
|
689
|
-
const { nativeScrollbarsOverlaid: n, body: o } = e || {}, { k: s, U: c, K: r } = Et(), { nativeScrollbarsOverlaid: f, body: l } = r().cancel, d = n ?? f, i = gn(o) ? l : o, p = (s.x || s.y) && d, b = t && (Pe(i) ? !c : i);
|
|
690
|
-
return !!p || !!b;
|
|
691
|
-
}, Us = (t, e, n, o) => {
|
|
692
|
-
const s = "--os-viewport-percent", c = "--os-scroll-percent", r = "--os-scroll-direction", { K: f } = Et(), { scrollbars: l } = f(), { slot: d } = l, { dt: i, vt: p, L: b, At: x, gt: u, bt: S, V: E } = e, { scrollbars: H } = x ? {} : t, { slot: z } = H || {}, j = [], w = [], I = [], L = No([i, p, b], () => E && S ? i : p, d, z), k = (A) => {
|
|
693
|
-
if (ne) {
|
|
694
|
-
let M = null, a = [];
|
|
695
|
-
const m = new ne({
|
|
696
|
-
source: u,
|
|
697
|
-
axis: A
|
|
698
|
-
}), y = () => {
|
|
699
|
-
M && M.cancel(), M = null;
|
|
700
|
-
};
|
|
701
|
-
return {
|
|
702
|
-
kt: (h) => {
|
|
703
|
-
const { Dt: $ } = n, P = Qe($)[A], N = A === "x", G = [Xe(0, N), Xe(`calc(100cq${N ? "w" : "h"} + -100%)`, N)], X = P ? G : G.reverse();
|
|
704
|
-
return a[0] === X[0] && a[1] === X[1] || (y(), a = X, M = h.Mt.animate({
|
|
705
|
-
clear: ["left"],
|
|
706
|
-
transform: X
|
|
707
|
-
}, {
|
|
708
|
-
timeline: m
|
|
709
|
-
})), y;
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
}
|
|
713
|
-
}, F = {
|
|
714
|
-
x: k("x"),
|
|
715
|
-
y: k("y")
|
|
716
|
-
}, T = () => {
|
|
717
|
-
const { Rt: A, Vt: M } = n, a = (m, y) => mo(0, 1, m / (m + y) || 0);
|
|
718
|
-
return {
|
|
719
|
-
x: a(M.x, A.x),
|
|
720
|
-
y: a(M.y, A.y)
|
|
721
|
-
};
|
|
722
|
-
}, g = (A, M, a) => {
|
|
723
|
-
const m = a ? En : ho;
|
|
724
|
-
Q(A, (y) => {
|
|
725
|
-
m(y.Lt, M);
|
|
726
|
-
});
|
|
727
|
-
}, O = (A, M) => {
|
|
728
|
-
Q(A, (a) => {
|
|
729
|
-
const [m, y] = M(a);
|
|
730
|
-
re(m, y);
|
|
731
|
-
});
|
|
732
|
-
}, C = (A, M, a) => {
|
|
733
|
-
const m = _e(a), y = m ? a : !0, v = m ? !a : !0;
|
|
734
|
-
y && g(w, A, M), v && g(I, A, M);
|
|
735
|
-
}, _ = () => {
|
|
736
|
-
const A = T(), M = (a) => (m) => [m.Lt, {
|
|
737
|
-
[s]: ln(a) + ""
|
|
738
|
-
}];
|
|
739
|
-
O(w, M(A.x)), O(I, M(A.y));
|
|
740
|
-
}, V = () => {
|
|
741
|
-
if (!ne) {
|
|
742
|
-
const { Dt: A } = n, M = jn(A, vt(u)), a = (m) => (y) => [y.Lt, {
|
|
743
|
-
[c]: ln(m) + ""
|
|
744
|
-
}];
|
|
745
|
-
O(w, a(M.x)), O(I, a(M.y));
|
|
746
|
-
}
|
|
747
|
-
}, W = () => {
|
|
748
|
-
const { Dt: A } = n, M = Qe(A), a = (m) => (y) => [y.Lt, {
|
|
749
|
-
[r]: m ? "0" : "1"
|
|
750
|
-
}];
|
|
751
|
-
O(w, a(M.x)), O(I, a(M.y)), ne && (w.forEach(F.x.kt), I.forEach(F.y.kt));
|
|
752
|
-
}, Y = () => {
|
|
753
|
-
if (E && !S) {
|
|
754
|
-
const { Rt: A, Dt: M } = n, a = Qe(M), m = jn(M, vt(u)), y = (v) => {
|
|
755
|
-
const { Lt: h } = v, $ = ce(h) === b && h, P = (N, G, X) => {
|
|
756
|
-
const tt = G * N;
|
|
757
|
-
return $o(X ? tt : -tt);
|
|
758
|
-
};
|
|
759
|
-
return [$, $ && {
|
|
760
|
-
transform: Xe({
|
|
761
|
-
x: P(m.x, A.x, a.x),
|
|
762
|
-
y: P(m.y, A.y, a.y)
|
|
763
|
-
})
|
|
764
|
-
}];
|
|
765
|
-
};
|
|
766
|
-
O(w, y), O(I, y);
|
|
767
|
-
}
|
|
768
|
-
}, B = (A) => {
|
|
769
|
-
const M = A ? "x" : "y", m = Bt(`${bt} ${A ? xs : Cs}`), y = Bt(_o), v = Bt(Dn), h = {
|
|
770
|
-
Lt: m,
|
|
771
|
-
Ut: y,
|
|
772
|
-
Mt: v
|
|
773
|
-
}, $ = F[M];
|
|
774
|
-
return nt(A ? w : I, h), nt(j, [dt(m, y), dt(y, v), D(Yt, m), $ && $.kt(h), o(h, C, A)]), h;
|
|
775
|
-
}, K = D(B, !0), U = D(B, !1), ot = () => (dt(L, w[0].Lt), dt(L, I[0].Lt), D(mt, j));
|
|
776
|
-
return K(), U(), [{
|
|
777
|
-
Pt: _,
|
|
778
|
-
Nt: V,
|
|
779
|
-
qt: W,
|
|
780
|
-
Bt: Y,
|
|
781
|
-
Ft: C,
|
|
782
|
-
jt: {
|
|
783
|
-
Xt: w,
|
|
784
|
-
Yt: K,
|
|
785
|
-
Wt: D(O, w)
|
|
786
|
-
},
|
|
787
|
-
Jt: {
|
|
788
|
-
Xt: I,
|
|
789
|
-
Yt: U,
|
|
790
|
-
Wt: D(O, I)
|
|
791
|
-
}
|
|
792
|
-
}, ot];
|
|
793
|
-
}, js = (t, e, n, o) => (s, c, r) => {
|
|
794
|
-
const { vt: f, L: l, V: d, gt: i, Gt: p, St: b } = e, { Lt: x, Ut: u, Mt: S } = s, [E, H] = Nt(333), [z, j] = Nt(444), w = (k) => {
|
|
795
|
-
Ct(i.scrollBy) && i.scrollBy({
|
|
796
|
-
behavior: "smooth",
|
|
797
|
-
left: k.x,
|
|
798
|
-
top: k.y
|
|
799
|
-
});
|
|
800
|
-
}, I = () => {
|
|
801
|
-
const k = "pointerup pointercancel lostpointercapture", F = `client${r ? "X" : "Y"}`, T = r ? Re : Fe, g = r ? "left" : "top", O = r ? "w" : "h", C = r ? "x" : "y", _ = (W, Y) => (B) => {
|
|
802
|
-
const { Rt: K } = n, U = qt(u)[O] - qt(S)[O], A = Y * B / U * K[C];
|
|
803
|
-
$t(i, {
|
|
804
|
-
[C]: W + A
|
|
805
|
-
});
|
|
806
|
-
}, V = [];
|
|
807
|
-
return J(u, "pointerdown", (W) => {
|
|
808
|
-
const Y = Ut(W.target, `.${Dn}`) === S, B = Y ? S : u, K = t.scrollbars, U = K[Y ? "dragScroll" : "clickScroll"], { button: ot, isPrimary: A, pointerType: M } = W, { pointers: a } = K;
|
|
809
|
-
if (ot === 0 && A && U && (a || []).includes(M)) {
|
|
810
|
-
mt(V), j();
|
|
811
|
-
const y = !Y && (W.shiftKey || U === "instant"), v = D(Ke, S), h = D(Ke, u), $ = (Z, it) => (Z || v())[g] - (it || h())[g], P = nn(Ke(i)[T]) / qt(i)[O] || 1, N = _(vt(i)[C], 1 / P), G = W[F], X = v(), tt = h(), R = X[T], lt = $(X, tt) + R / 2, at = G - tt[g], rt = Y ? 0 : at - lt, ft = (Z) => {
|
|
812
|
-
mt(ct), B.releasePointerCapture(Z.pointerId);
|
|
813
|
-
}, et = Y || y, st = b(), ct = [J(p, k, ft), J(p, "selectstart", (Z) => un(Z), {
|
|
814
|
-
T: !1
|
|
815
|
-
}), J(u, k, ft), et && J(u, "pointermove", (Z) => N(rt + (Z[F] - G))), et && (() => {
|
|
816
|
-
const Z = vt(i);
|
|
817
|
-
st();
|
|
818
|
-
const it = vt(i), ut = {
|
|
819
|
-
x: it.x - Z.x,
|
|
820
|
-
y: it.y - Z.y
|
|
821
|
-
};
|
|
822
|
-
(Ae(ut.x) > 3 || Ae(ut.y) > 3) && (b(), $t(i, Z), w(ut), z(st));
|
|
823
|
-
})];
|
|
824
|
-
if (B.setPointerCapture(W.pointerId), y)
|
|
825
|
-
N(rt);
|
|
826
|
-
else if (!Y) {
|
|
827
|
-
const Z = Xt(Is);
|
|
828
|
-
if (Z) {
|
|
829
|
-
const it = Z(N, rt, R, (ut) => {
|
|
830
|
-
ut ? st() : nt(ct, st);
|
|
831
|
-
});
|
|
832
|
-
nt(ct, it), nt(V, D(it, !0));
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
});
|
|
837
|
-
};
|
|
838
|
-
let L = !0;
|
|
839
|
-
return D(mt, [J(S, "pointermove pointerleave", o), J(x, "pointerenter", () => {
|
|
840
|
-
c(Yn, !0);
|
|
841
|
-
}), J(x, "pointerleave pointercancel", () => {
|
|
842
|
-
c(Yn, !1);
|
|
843
|
-
}), !d && J(x, "mousedown", () => {
|
|
844
|
-
const k = rn();
|
|
845
|
-
(Fn(k, Mt) || Fn(k, kt) || k === document.body) && bn(D(fn, l), 25);
|
|
846
|
-
}), J(x, "wheel", (k) => {
|
|
847
|
-
const { deltaX: F, deltaY: T, deltaMode: g } = k;
|
|
848
|
-
L && g === 0 && ce(x) === f && w({
|
|
849
|
-
x: F,
|
|
850
|
-
y: T
|
|
851
|
-
}), L = !1, c(Qn, !0), E(() => {
|
|
852
|
-
L = !0, c(Qn);
|
|
853
|
-
}), un(k);
|
|
854
|
-
}, {
|
|
855
|
-
T: !1,
|
|
856
|
-
I: !0
|
|
857
|
-
}), J(x, "pointerdown", () => {
|
|
858
|
-
const k = J(p, "click", (T) => {
|
|
859
|
-
F(), Mo(T);
|
|
860
|
-
}, {
|
|
861
|
-
A: !0,
|
|
862
|
-
I: !0,
|
|
863
|
-
T: !1
|
|
864
|
-
}), F = J(p, "pointerup pointercancel", () => {
|
|
865
|
-
F(), setTimeout(k, 150);
|
|
866
|
-
}, {
|
|
867
|
-
I: !0,
|
|
868
|
-
T: !0
|
|
869
|
-
});
|
|
870
|
-
}, {
|
|
871
|
-
I: !0,
|
|
872
|
-
T: !0
|
|
873
|
-
}), I(), H, j]);
|
|
874
|
-
}, Bs = (t, e, n, o, s, c) => {
|
|
875
|
-
let r, f, l, d, i, p = se, b = 0;
|
|
876
|
-
const x = ["mouse", "pen"], u = (a) => x.includes(a.pointerType), [S, E] = Nt(), [H, z] = Nt(100), [j, w] = Nt(100), [I, L] = Nt(() => b), [k, F] = Us(t, s, o, js(e, s, o, (a) => u(a) && K())), { vt: T, Kt: g, bt: O } = s, { Ft: C, Pt: _, Nt: V, qt: W, Bt: Y } = k, B = (a, m) => {
|
|
877
|
-
if (L(), a)
|
|
878
|
-
C(Kn);
|
|
879
|
-
else {
|
|
880
|
-
const y = D(C, Kn, !0);
|
|
881
|
-
b > 0 && !m ? I(y) : y();
|
|
882
|
-
}
|
|
883
|
-
}, K = () => {
|
|
884
|
-
(l ? !r : !d) && (B(!0), H(() => {
|
|
885
|
-
B(!1);
|
|
886
|
-
}));
|
|
887
|
-
}, U = (a) => {
|
|
888
|
-
C(yn, a, !0), C(yn, a, !1);
|
|
889
|
-
}, ot = (a) => {
|
|
890
|
-
u(a) && (r = l, l && B(!0));
|
|
891
|
-
}, A = [L, z, w, E, () => p(), J(T, "pointerover", ot, {
|
|
892
|
-
A: !0
|
|
893
|
-
}), J(T, "pointerenter", ot), J(T, "pointerleave", (a) => {
|
|
894
|
-
u(a) && (r = !1, l && B(!1));
|
|
895
|
-
}), J(T, "pointermove", (a) => {
|
|
896
|
-
u(a) && f && K();
|
|
897
|
-
}), J(g, "scroll", (a) => {
|
|
898
|
-
S(() => {
|
|
899
|
-
V(), K();
|
|
900
|
-
}), c(a), Y();
|
|
901
|
-
})], M = Xt(Hn);
|
|
902
|
-
return [() => D(mt, nt(A, F())), ({ zt: a, It: m, Qt: y, Zt: v }) => {
|
|
903
|
-
const { tn: h, nn: $, sn: P, en: N } = v || {}, { Ct: G, ft: X } = y || {}, { B: tt } = n, { k: R, U: lt } = Et(), { cn: at, j: rt } = o, [ft, et] = a("showNativeOverlaidScrollbars"), [st, ct] = a("scrollbars.theme"), [Z, it] = a("scrollbars.visibility"), [ut, Qt] = a("scrollbars.autoHide"), [Zt, le] = a("scrollbars.autoHideSuspend"), [ae] = a("scrollbars.autoHideDelay"), [ue, fe] = a("scrollbars.dragScroll"), [_t, Jt] = a("scrollbars.clickScroll"), [de, je] = a("overflow"), Be = X && !m, qe = rt.x || rt.y, gt = h || $ || N || G || m, We = P || it || je, pe = ft && R.x && R.y, ye = !lt && !M, Ye = pe || ye, ve = (Gt, te, me) => {
|
|
904
|
-
const It = Gt.includes(Wt) && (Z === Dt || Z === "auto" && te === Wt);
|
|
905
|
-
return C(Os, It, me), It;
|
|
906
|
-
};
|
|
907
|
-
if (b = ae, Be && (Zt && qe ? (U(!1), p(), j(() => {
|
|
908
|
-
p = J(g, "scroll", D(U, !0), {
|
|
909
|
-
A: !0
|
|
910
|
-
});
|
|
911
|
-
})) : U(!0)), (et || ye) && C(ws, Ye), ct && (C(i), C(st, !0), i = st), le && !Zt && U(!0), Qt && (f = ut === "move", l = ut === "leave", d = ut === "never", B(d, !0)), fe && C(Es, ue), Jt && C(As, !!_t), We) {
|
|
912
|
-
const Gt = ve(de.x, at.x, !0), te = ve(de.y, at.y, !1);
|
|
913
|
-
C($s, !(Gt && te));
|
|
914
|
-
}
|
|
915
|
-
gt && (V(), _(), Y(), N && W(), C(Xn, !rt.x, !0), C(Xn, !rt.y, !1), C(Ss, tt && !O));
|
|
916
|
-
}, {}, k];
|
|
917
|
-
}, qs = (t) => {
|
|
918
|
-
const e = Et(), { K: n, U: o } = e, { elements: s } = n(), { padding: c, viewport: r, content: f } = s, l = Me(t), d = l ? {} : t, { elements: i } = d, { padding: p, viewport: b, content: x } = i || {}, u = l ? t : d.target, S = So(u), E = u.ownerDocument, H = E.documentElement, z = () => E.defaultView || pt, j = D(Vs, [u]), w = D(No, [u]), I = D(Bt, ""), L = D(j, I, r), k = D(w, I, f), F = (R) => {
|
|
919
|
-
const lt = qt(R), at = Le(R), rt = At(R, Sn), ft = At(R, xn);
|
|
920
|
-
return at.w - lt.w > 0 && !jt(rt) || at.h - lt.h > 0 && !jt(ft);
|
|
921
|
-
}, T = L(b), g = T === u, O = g && S, C = !g && k(x), _ = !g && T === C, V = O ? H : T, W = O ? V : u, Y = !g && w(I, c, p), B = !_ && C, K = [B, V, Y, W].map((R) => Me(R) && !ce(R) && R), U = (R) => R && so(K, R), ot = !U(V) && F(V) ? V : u, A = O ? H : V, a = {
|
|
922
|
-
dt: u,
|
|
923
|
-
vt: W,
|
|
924
|
-
L: V,
|
|
925
|
-
rn: Y,
|
|
926
|
-
ht: B,
|
|
927
|
-
gt: A,
|
|
928
|
-
Kt: O ? E : V,
|
|
929
|
-
ln: S ? H : ot,
|
|
930
|
-
Gt: E,
|
|
931
|
-
bt: S,
|
|
932
|
-
At: l,
|
|
933
|
-
V: g,
|
|
934
|
-
an: z,
|
|
935
|
-
wt: (R) => An(V, Mt, R),
|
|
936
|
-
yt: (R, lt) => Ie(V, Mt, R, lt),
|
|
937
|
-
St: () => Ie(A, Mt, vs, !0)
|
|
938
|
-
}, { dt: m, vt: y, rn: v, L: h, ht: $ } = a, P = [() => {
|
|
939
|
-
Ot(y, [kt, Ze]), Ot(m, Ze), S && Ot(H, [Ze, kt]);
|
|
940
|
-
}];
|
|
941
|
-
let N = cn([$, h, v, y, m].find((R) => R && !U(R)));
|
|
942
|
-
const G = O ? m : $ || h, X = D(mt, P);
|
|
943
|
-
return [a, () => {
|
|
944
|
-
const R = z(), lt = rn(), at = (ct) => {
|
|
945
|
-
dt(ce(ct), cn(ct)), Yt(ct);
|
|
946
|
-
}, rt = (ct) => J(ct, "focusin focusout focus blur", Mo, {
|
|
947
|
-
I: !0,
|
|
948
|
-
T: !1
|
|
949
|
-
}), ft = "tabindex", et = On(h, ft), st = rt(lt);
|
|
950
|
-
return Tt(y, kt, g ? "" : fs), Tt(v, pn, ""), Tt(h, Mt, ""), Tt($, Wn, ""), g || (Tt(h, ft, et || "-1"), S && Tt(H, qn, "")), dt(G, N), dt(y, v), dt(v || y, !g && h), dt(h, $), nt(P, [st, () => {
|
|
951
|
-
const ct = rn(), Z = U(h), it = Z && ct === h ? m : ct, ut = rt(it);
|
|
952
|
-
Ot(v, pn), Ot($, Wn), Ot(h, Mt), S && Ot(H, qn), et ? Tt(h, ft, et) : Ot(h, ft), U($) && at($), Z && at(h), U(v) && at(v), fn(it), ut();
|
|
953
|
-
}]), o && !g && ($n(h, Mt, Po), nt(P, D(Ot, h, Mt))), fn(!g && S && lt === m && R.top === R ? h : lt), st(), N = 0, X;
|
|
954
|
-
}, X];
|
|
955
|
-
}, Ws = ({ ht: t }) => ({ Qt: e, un: n, It: o }) => {
|
|
956
|
-
const { $t: s } = e || {}, { Ot: c } = n;
|
|
957
|
-
t && (s || o) && re(t, {
|
|
958
|
-
[Fe]: c && "100%"
|
|
959
|
-
});
|
|
960
|
-
}, Ys = ({ vt: t, rn: e, L: n, V: o }, s) => {
|
|
961
|
-
const [c, r] = yt({
|
|
962
|
-
i: Go,
|
|
963
|
-
o: Nn()
|
|
964
|
-
}, D(Nn, t, "padding", ""));
|
|
965
|
-
return ({ zt: f, Qt: l, un: d, It: i }) => {
|
|
966
|
-
let [p, b] = r(i);
|
|
967
|
-
const { U: x } = Et(), { _t: u, xt: S, Ct: E } = l || {}, { B: H } = d, [z, j] = f("paddingAbsolute");
|
|
968
|
-
(u || b || (i || S)) && ([p, b] = c(i));
|
|
969
|
-
const I = !o && (j || E || b);
|
|
970
|
-
if (I) {
|
|
971
|
-
const L = !z || !e && !x, k = p.r + p.l, F = p.t + p.b, T = {
|
|
972
|
-
[uo]: L && !H ? -k : 0,
|
|
973
|
-
[fo]: L ? -F : 0,
|
|
974
|
-
[ao]: L && H ? -k : 0,
|
|
975
|
-
top: L ? -p.t : 0,
|
|
976
|
-
right: L ? H ? -p.r : "auto" : 0,
|
|
977
|
-
left: L ? H ? "auto" : -p.l : 0,
|
|
978
|
-
[Re]: L && `calc(100% + ${k}px)`
|
|
979
|
-
}, g = {
|
|
980
|
-
[co]: L ? p.t : 0,
|
|
981
|
-
[ro]: L ? p.r : 0,
|
|
982
|
-
[lo]: L ? p.b : 0,
|
|
983
|
-
[io]: L ? p.l : 0
|
|
984
|
-
};
|
|
985
|
-
re(e || n, T), re(n, g), q(s, {
|
|
986
|
-
rn: p,
|
|
987
|
-
fn: !L,
|
|
988
|
-
F: e ? g : q({}, T, g)
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
return {
|
|
992
|
-
_n: I
|
|
993
|
-
};
|
|
994
|
-
};
|
|
995
|
-
}, Xs = (t, e) => {
|
|
996
|
-
const n = Et(), { vt: o, rn: s, L: c, V: r, Kt: f, gt: l, bt: d, yt: i, an: p } = t, { U: b } = n, x = d && r, u = D(eo, 0), S = {
|
|
997
|
-
display: () => !1,
|
|
998
|
-
direction: (a) => a !== "ltr",
|
|
999
|
-
flexDirection: (a) => a.endsWith("-reverse"),
|
|
1000
|
-
writingMode: (a) => a !== "horizontal-tb"
|
|
1001
|
-
}, E = xt(S), H = {
|
|
1002
|
-
i: po,
|
|
1003
|
-
o: {
|
|
1004
|
-
w: 0,
|
|
1005
|
-
h: 0
|
|
1006
|
-
}
|
|
1007
|
-
}, z = {
|
|
1008
|
-
i: Ce,
|
|
1009
|
-
o: {}
|
|
1010
|
-
}, j = (a) => {
|
|
1011
|
-
i(ko, !x && a);
|
|
1012
|
-
}, w = (a) => {
|
|
1013
|
-
if (!E.some((X) => {
|
|
1014
|
-
const tt = a[X];
|
|
1015
|
-
return tt && S[X](tt);
|
|
1016
|
-
}))
|
|
1017
|
-
return {
|
|
1018
|
-
D: {
|
|
1019
|
-
x: 0,
|
|
1020
|
-
y: 0
|
|
1021
|
-
},
|
|
1022
|
-
M: {
|
|
1023
|
-
x: 1,
|
|
1024
|
-
y: 1
|
|
1025
|
-
}
|
|
1026
|
-
};
|
|
1027
|
-
j(!0);
|
|
1028
|
-
const y = vt(l), v = i(ms, !0), h = J(f, Wt, (X) => {
|
|
1029
|
-
const tt = vt(l);
|
|
1030
|
-
X.isTrusted && tt.x === y.x && tt.y === y.y && To(X);
|
|
1031
|
-
}, {
|
|
1032
|
-
I: !0,
|
|
1033
|
-
A: !0
|
|
1034
|
-
});
|
|
1035
|
-
$t(l, {
|
|
1036
|
-
x: 0,
|
|
1037
|
-
y: 0
|
|
1038
|
-
}), v();
|
|
1039
|
-
const $ = vt(l), P = Le(l);
|
|
1040
|
-
$t(l, {
|
|
1041
|
-
x: P.w,
|
|
1042
|
-
y: P.h
|
|
1043
|
-
});
|
|
1044
|
-
const N = vt(l);
|
|
1045
|
-
$t(l, {
|
|
1046
|
-
x: N.x - $.x < 1 && -P.w,
|
|
1047
|
-
y: N.y - $.y < 1 && -P.h
|
|
1048
|
-
});
|
|
1049
|
-
const G = vt(l);
|
|
1050
|
-
return $t(l, y), mn(() => h()), {
|
|
1051
|
-
D: $,
|
|
1052
|
-
M: G
|
|
1053
|
-
};
|
|
1054
|
-
}, I = (a, m) => {
|
|
1055
|
-
const y = pt.devicePixelRatio % 1 !== 0 ? 1 : 0, v = {
|
|
1056
|
-
w: u(a.w - m.w),
|
|
1057
|
-
h: u(a.h - m.h)
|
|
1058
|
-
};
|
|
1059
|
-
return {
|
|
1060
|
-
w: v.w > y ? v.w : 0,
|
|
1061
|
-
h: v.h > y ? v.h : 0
|
|
1062
|
-
};
|
|
1063
|
-
}, L = (a, m) => {
|
|
1064
|
-
const y = (v, h, $, P) => {
|
|
1065
|
-
const N = v === Dt ? ht : Ds(v), G = jt(v), X = jt($);
|
|
1066
|
-
return !h && !P ? ht : G && X ? Dt : G ? h && P ? N : h ? Dt : ht : h ? N : X && P ? Dt : ht;
|
|
1067
|
-
};
|
|
1068
|
-
return {
|
|
1069
|
-
x: y(m.x, a.x, m.y, a.y),
|
|
1070
|
-
y: y(m.y, a.y, m.x, a.x)
|
|
1071
|
-
};
|
|
1072
|
-
}, k = (a) => {
|
|
1073
|
-
const m = (v) => [Dt, ht, Wt].map((h) => M(vn(h), v)), y = m(!0).concat(m()).join(" ");
|
|
1074
|
-
i(y), i(xt(a).map((v) => M(a[v], v === "x")).join(" "), !0);
|
|
1075
|
-
}, [F, T] = yt(H, D(Tn, c)), [g, O] = yt(H, D(Le, c)), [C, _] = yt(H), [V] = yt(z), [W, Y] = yt(H), [B] = yt(z), [K] = yt({
|
|
1076
|
-
i: (a, m) => Ve(a, m, E),
|
|
1077
|
-
o: {}
|
|
1078
|
-
}, () => is(c) ? At(c, E) : {}), [U, ot] = yt({
|
|
1079
|
-
i: (a, m) => Ce(a.D, m.D) && Ce(a.M, m.M),
|
|
1080
|
-
o: Do()
|
|
1081
|
-
}), A = Xt(Hn), M = (a, m) => `${m ? ds : ps}${Jo(a)}`;
|
|
1082
|
-
return ({ zt: a, Qt: m, un: y, It: v }, { _n: h }) => {
|
|
1083
|
-
const { _t: $, Ht: P, xt: N, Ct: G, ft: X, Et: tt } = m || {}, R = A && A.R(t, e, y, n, a), { X: lt, Y: at, W: rt } = R || {}, [ft, et] = Ms(a, n), [st, ct] = a("overflow"), Z = jt(st.x), it = jt(st.y), ut = $ || h || N || G || tt || et;
|
|
1084
|
-
let Qt = T(v), Zt = O(v), le = _(v), ae = Y(v);
|
|
1085
|
-
if (et && b && i(Po, !ft), ut) {
|
|
1086
|
-
An(o, kt, $e) && j(!0);
|
|
1087
|
-
const kn = at && at(), [be] = Qt = F(v), [ge] = Zt = g(v), he = Ao(c), we = x && rs(p()), qo = {
|
|
1088
|
-
w: u(ge.w + be.w),
|
|
1089
|
-
h: u(ge.h + be.h)
|
|
1090
|
-
}, Pn = {
|
|
1091
|
-
w: u((we ? we.w : he.w + u(he.w - ge.w)) + be.w),
|
|
1092
|
-
h: u((we ? we.h : he.h + u(he.h - ge.h)) + be.h)
|
|
1093
|
-
};
|
|
1094
|
-
kn && kn(), ae = W(Pn), le = C(I(qo, Pn), v);
|
|
1095
|
-
}
|
|
1096
|
-
const [ue, fe] = ae, [_t, Jt] = le, [de, je] = Zt, [Be, qe] = Qt, [gt, We] = V({
|
|
1097
|
-
x: _t.w > 0,
|
|
1098
|
-
y: _t.h > 0
|
|
1099
|
-
}), pe = Z && it && (gt.x || gt.y) || Z && gt.x && !gt.y || it && gt.y && !gt.x, ye = h || G || tt || qe || je || fe || Jt || ct || et || ut || P && x, [Ye, ve] = K(v), Gt = G || X || ve || We || v, [te, me] = Gt ? U(w(Ye), v) : ot();
|
|
1100
|
-
let It = L(gt, st);
|
|
1101
|
-
j(!1), ye && (k(It), It = Hs(c, gt), rt && lt && (lt(It, de, Be), re(c, rt(It))));
|
|
1102
|
-
const [jo, Bo] = B(It);
|
|
1103
|
-
return Ie(o, kt, $e, pe), Ie(s, pn, $e, pe), q(e, {
|
|
1104
|
-
cn: jo,
|
|
1105
|
-
Vt: {
|
|
1106
|
-
x: ue.w,
|
|
1107
|
-
y: ue.h
|
|
1108
|
-
},
|
|
1109
|
-
Rt: {
|
|
1110
|
-
x: _t.w,
|
|
1111
|
-
y: _t.h
|
|
1112
|
-
},
|
|
1113
|
-
j: gt,
|
|
1114
|
-
Dt: ls(te, _t)
|
|
1115
|
-
}), {
|
|
1116
|
-
sn: Bo,
|
|
1117
|
-
tn: fe,
|
|
1118
|
-
nn: Jt,
|
|
1119
|
-
en: me || Jt
|
|
1120
|
-
};
|
|
1121
|
-
};
|
|
1122
|
-
}, Ks = (t) => {
|
|
1123
|
-
const [e, n, o] = qs(t), s = {
|
|
1124
|
-
rn: {
|
|
1125
|
-
t: 0,
|
|
1126
|
-
r: 0,
|
|
1127
|
-
b: 0,
|
|
1128
|
-
l: 0
|
|
1129
|
-
},
|
|
1130
|
-
fn: !1,
|
|
1131
|
-
F: {
|
|
1132
|
-
[uo]: 0,
|
|
1133
|
-
[fo]: 0,
|
|
1134
|
-
[ao]: 0,
|
|
1135
|
-
[co]: 0,
|
|
1136
|
-
[ro]: 0,
|
|
1137
|
-
[lo]: 0,
|
|
1138
|
-
[io]: 0
|
|
1139
|
-
},
|
|
1140
|
-
Vt: {
|
|
1141
|
-
x: 0,
|
|
1142
|
-
y: 0
|
|
1143
|
-
},
|
|
1144
|
-
Rt: {
|
|
1145
|
-
x: 0,
|
|
1146
|
-
y: 0
|
|
1147
|
-
},
|
|
1148
|
-
cn: {
|
|
1149
|
-
x: ht,
|
|
1150
|
-
y: ht
|
|
1151
|
-
},
|
|
1152
|
-
j: {
|
|
1153
|
-
x: !1,
|
|
1154
|
-
y: !1
|
|
1155
|
-
},
|
|
1156
|
-
Dt: Do()
|
|
1157
|
-
}, { dt: c, gt: r, V: f, St: l } = e, { U: d, k: i } = Et(), p = !d && (i.x || i.y), b = [Ws(e), Ys(e, s), Xs(e, s)];
|
|
1158
|
-
return [n, (x) => {
|
|
1159
|
-
const u = {}, E = p && vt(r), H = E && l();
|
|
1160
|
-
return Q(b, (z) => {
|
|
1161
|
-
q(u, z(x, u) || {});
|
|
1162
|
-
}), $t(r, E), H && H(), f || $t(c, 0), u;
|
|
1163
|
-
}, s, e, o];
|
|
1164
|
-
}, Qs = (t, e, n, o, s) => {
|
|
1165
|
-
let c = !1;
|
|
1166
|
-
const r = Gn(e, {}), [f, l, d, i, p] = Ks(t), [b, x, u] = Fs(i, d, r, (w) => {
|
|
1167
|
-
j({}, w);
|
|
1168
|
-
}), [S, E, , H] = Bs(t, e, u, d, i, s), z = (w) => xt(w).some((I) => !!w[I]), j = (w, I) => {
|
|
1169
|
-
if (n())
|
|
1170
|
-
return !1;
|
|
1171
|
-
const { dn: L, It: k, Tt: F, pn: T } = w, g = L || {}, O = !!k || !c, C = {
|
|
1172
|
-
zt: Gn(e, g, O),
|
|
1173
|
-
dn: g,
|
|
1174
|
-
It: O
|
|
1175
|
-
};
|
|
1176
|
-
if (T)
|
|
1177
|
-
return E(C), !1;
|
|
1178
|
-
const _ = I || x(q({}, C, {
|
|
1179
|
-
Tt: F
|
|
1180
|
-
})), V = l(q({}, C, {
|
|
1181
|
-
un: u,
|
|
1182
|
-
Qt: _
|
|
1183
|
-
}));
|
|
1184
|
-
E(q({}, C, {
|
|
1185
|
-
Qt: _,
|
|
1186
|
-
Zt: V
|
|
1187
|
-
}));
|
|
1188
|
-
const W = z(_), Y = z(V), B = W || Y || !Cn(g) || O;
|
|
1189
|
-
return c = !0, B && o(w, {
|
|
1190
|
-
Qt: _,
|
|
1191
|
-
Zt: V
|
|
1192
|
-
}), B;
|
|
1193
|
-
};
|
|
1194
|
-
return [() => {
|
|
1195
|
-
const { ln: w, gt: I, St: L } = i, k = vt(w), F = [b(), f(), S()], T = L();
|
|
1196
|
-
return $t(I, k), T(), D(mt, F);
|
|
1197
|
-
}, j, () => ({
|
|
1198
|
-
vn: u,
|
|
1199
|
-
gn: d
|
|
1200
|
-
}), {
|
|
1201
|
-
hn: i,
|
|
1202
|
-
bn: H
|
|
1203
|
-
}, p];
|
|
1204
|
-
}, In = /* @__PURE__ */ new WeakMap(), Zs = (t, e) => {
|
|
1205
|
-
In.set(t, e);
|
|
1206
|
-
}, Js = (t) => {
|
|
1207
|
-
In.delete(t);
|
|
1208
|
-
}, Uo = (t) => In.get(t), wt = (t, e, n) => {
|
|
1209
|
-
const { tt: o } = Et(), s = Me(t), c = s ? t : t.target, r = Uo(c);
|
|
1210
|
-
if (e && !r) {
|
|
1211
|
-
let f = !1;
|
|
1212
|
-
const l = [], d = {}, i = (g) => {
|
|
1213
|
-
const O = vo(g), C = Xt(us);
|
|
1214
|
-
return C ? C(O, !0) : O;
|
|
1215
|
-
}, p = q({}, o(), i(e)), [b, x, u] = dn(), [S, E, H] = dn(n), z = (g, O) => {
|
|
1216
|
-
H(g, O), u(g, O);
|
|
1217
|
-
}, [j, w, I, L, k] = Qs(t, p, () => f, ({ dn: g, It: O }, { Qt: C, Zt: _ }) => {
|
|
1218
|
-
const { _t: V, Ct: W, $t: Y, xt: B, Ht: K, ft: U } = C, { tn: ot, nn: A, sn: M, en: a } = _;
|
|
1219
|
-
z("updated", [T, {
|
|
1220
|
-
updateHints: {
|
|
1221
|
-
sizeChanged: !!V,
|
|
1222
|
-
directionChanged: !!W,
|
|
1223
|
-
heightIntrinsicChanged: !!Y,
|
|
1224
|
-
overflowEdgeChanged: !!ot,
|
|
1225
|
-
overflowAmountChanged: !!A,
|
|
1226
|
-
overflowStyleChanged: !!M,
|
|
1227
|
-
scrollCoordinatesChanged: !!a,
|
|
1228
|
-
contentMutation: !!B,
|
|
1229
|
-
hostMutation: !!K,
|
|
1230
|
-
appear: !!U
|
|
1231
|
-
},
|
|
1232
|
-
changedOptions: g || {},
|
|
1233
|
-
force: !!O
|
|
1234
|
-
}]);
|
|
1235
|
-
}, (g) => z("scroll", [T, g])), F = (g) => {
|
|
1236
|
-
Js(c), mt(l), f = !0, z("destroyed", [T, g]), x(), E();
|
|
1237
|
-
}, T = {
|
|
1238
|
-
options(g, O) {
|
|
1239
|
-
if (g) {
|
|
1240
|
-
const C = O ? o() : {}, _ = zo(p, q(C, i(g)));
|
|
1241
|
-
Cn(_) || (q(p, _), w({
|
|
1242
|
-
dn: _
|
|
1243
|
-
}));
|
|
1244
|
-
}
|
|
1245
|
-
return q({}, p);
|
|
1246
|
-
},
|
|
1247
|
-
on: S,
|
|
1248
|
-
off: (g, O) => {
|
|
1249
|
-
g && O && E(g, O);
|
|
1250
|
-
},
|
|
1251
|
-
state() {
|
|
1252
|
-
const { vn: g, gn: O } = I(), { B: C } = g, { Vt: _, Rt: V, cn: W, j: Y, rn: B, fn: K, Dt: U } = O;
|
|
1253
|
-
return q({}, {
|
|
1254
|
-
overflowEdge: _,
|
|
1255
|
-
overflowAmount: V,
|
|
1256
|
-
overflowStyle: W,
|
|
1257
|
-
hasOverflow: Y,
|
|
1258
|
-
scrollCoordinates: {
|
|
1259
|
-
start: U.D,
|
|
1260
|
-
end: U.M
|
|
1261
|
-
},
|
|
1262
|
-
padding: B,
|
|
1263
|
-
paddingAbsolute: K,
|
|
1264
|
-
directionRTL: C,
|
|
1265
|
-
destroyed: f
|
|
1266
|
-
});
|
|
1267
|
-
},
|
|
1268
|
-
elements() {
|
|
1269
|
-
const { dt: g, vt: O, rn: C, L: _, ht: V, gt: W, Kt: Y } = L.hn, { jt: B, Jt: K } = L.bn, U = (A) => {
|
|
1270
|
-
const { Mt: M, Ut: a, Lt: m } = A;
|
|
1271
|
-
return {
|
|
1272
|
-
scrollbar: m,
|
|
1273
|
-
track: a,
|
|
1274
|
-
handle: M
|
|
1275
|
-
};
|
|
1276
|
-
}, ot = (A) => {
|
|
1277
|
-
const { Xt: M, Yt: a } = A, m = U(M[0]);
|
|
1278
|
-
return q({}, m, {
|
|
1279
|
-
clone: () => {
|
|
1280
|
-
const y = U(a());
|
|
1281
|
-
return w({
|
|
1282
|
-
pn: !0
|
|
1283
|
-
}), y;
|
|
1284
|
-
}
|
|
1285
|
-
});
|
|
1286
|
-
};
|
|
1287
|
-
return q({}, {
|
|
1288
|
-
target: g,
|
|
1289
|
-
host: O,
|
|
1290
|
-
padding: C || _,
|
|
1291
|
-
viewport: _,
|
|
1292
|
-
content: V || _,
|
|
1293
|
-
scrollOffsetElement: W,
|
|
1294
|
-
scrollEventElement: Y,
|
|
1295
|
-
scrollbarHorizontal: ot(B),
|
|
1296
|
-
scrollbarVertical: ot(K)
|
|
1297
|
-
});
|
|
1298
|
-
},
|
|
1299
|
-
update: (g) => w({
|
|
1300
|
-
It: g,
|
|
1301
|
-
Tt: !0
|
|
1302
|
-
}),
|
|
1303
|
-
destroy: D(F, !1),
|
|
1304
|
-
plugin: (g) => d[xt(g)[0]]
|
|
1305
|
-
};
|
|
1306
|
-
return nt(l, [k]), Zs(c, T), Lo(Ho, wt, [T, b, d]), Ns(L.hn.bt, !s && t.cancel) ? (F(!0), T) : (nt(l, j()), z("initialized", [T]), T.update(), T);
|
|
1307
|
-
}
|
|
1308
|
-
return r;
|
|
1309
|
-
};
|
|
1310
|
-
wt.plugin = (t) => {
|
|
1311
|
-
const e = St(t), n = e ? t : [t], o = n.map((s) => Lo(s, wt)[0]);
|
|
1312
|
-
return as(n), e ? o : o[0];
|
|
1313
|
-
};
|
|
1314
|
-
wt.valid = (t) => {
|
|
1315
|
-
const e = t && t.elements, n = Ct(e) && e();
|
|
1316
|
-
return Te(n) && !!Uo(n.target);
|
|
1317
|
-
};
|
|
1318
|
-
wt.env = () => {
|
|
1319
|
-
const { P: t, k: e, U: n, J: o, ot: s, st: c, K: r, Z: f, tt: l, nt: d } = Et();
|
|
1320
|
-
return q({}, {
|
|
1321
|
-
scrollbarsSize: t,
|
|
1322
|
-
scrollbarsOverlaid: e,
|
|
1323
|
-
scrollbarsHiding: n,
|
|
1324
|
-
scrollTimeline: o,
|
|
1325
|
-
staticDefaultInitialization: s,
|
|
1326
|
-
staticDefaultOptions: c,
|
|
1327
|
-
getDefaultInitialization: r,
|
|
1328
|
-
setDefaultInitialization: f,
|
|
1329
|
-
getDefaultOptions: l,
|
|
1330
|
-
setDefaultOptions: d
|
|
1331
|
-
});
|
|
1332
|
-
};
|
|
1333
|
-
wt.nonce = Ps;
|
|
1334
|
-
wt.trustedTypePolicy = os;
|
|
1335
|
-
const Gs = () => {
|
|
1336
|
-
if (typeof window > "u") {
|
|
1337
|
-
const d = () => {
|
|
1338
|
-
};
|
|
1339
|
-
return [d, d];
|
|
1340
|
-
}
|
|
1341
|
-
let t, e;
|
|
1342
|
-
const n = window, o = typeof n.requestIdleCallback == "function", s = n.requestAnimationFrame, c = n.cancelAnimationFrame, r = o ? n.requestIdleCallback : s, f = o ? n.cancelIdleCallback : c, l = () => {
|
|
1343
|
-
f(t), c(e);
|
|
1344
|
-
};
|
|
1345
|
-
return [
|
|
1346
|
-
(d, i) => {
|
|
1347
|
-
l(), t = r(
|
|
1348
|
-
o ? () => {
|
|
1349
|
-
l(), e = s(d);
|
|
1350
|
-
} : d,
|
|
1351
|
-
typeof i == "object" ? i : { timeout: 2233 }
|
|
1352
|
-
);
|
|
1353
|
-
},
|
|
1354
|
-
l
|
|
1355
|
-
];
|
|
1356
|
-
}, tc = (t) => {
|
|
1357
|
-
const { options: e, events: n, defer: o } = t || {}, [s, c] = en(Gs, []), r = Ft(null), f = Ft(o), l = Ft(e), d = Ft(n);
|
|
1358
|
-
return ee(() => {
|
|
1359
|
-
f.current = o;
|
|
1360
|
-
}, [o]), ee(() => {
|
|
1361
|
-
const { current: i } = r;
|
|
1362
|
-
l.current = e, wt.valid(i) && i.options(e || {}, !0);
|
|
1363
|
-
}, [e]), ee(() => {
|
|
1364
|
-
const { current: i } = r;
|
|
1365
|
-
d.current = n, wt.valid(i) && i.on(n || {}, !0);
|
|
1366
|
-
}, [n]), ee(
|
|
1367
|
-
() => () => {
|
|
1368
|
-
var i;
|
|
1369
|
-
c(), (i = r.current) == null || i.destroy();
|
|
1370
|
-
},
|
|
1371
|
-
[]
|
|
1372
|
-
), en(
|
|
1373
|
-
() => [
|
|
1374
|
-
(i) => {
|
|
1375
|
-
const p = r.current;
|
|
1376
|
-
if (wt.valid(p))
|
|
1377
|
-
return;
|
|
1378
|
-
const b = f.current, x = l.current || {}, u = d.current || {}, S = () => r.current = wt(i, x, u);
|
|
1379
|
-
b ? s(S, b) : S();
|
|
1380
|
-
},
|
|
1381
|
-
() => r.current
|
|
1382
|
-
],
|
|
1383
|
-
[]
|
|
1384
|
-
);
|
|
1385
|
-
}, ec = (t, e) => {
|
|
1386
|
-
const { element: n = "div", options: o, events: s, defer: c, children: r, ...f } = t, l = n, d = Ft(null), i = Ft(null), [p, b] = tc({ options: o, events: s, defer: c });
|
|
1387
|
-
return ee(() => {
|
|
1388
|
-
const { current: x } = d, { current: u } = i;
|
|
1389
|
-
if (!x)
|
|
1390
|
-
return;
|
|
1391
|
-
const S = x;
|
|
1392
|
-
return p(
|
|
1393
|
-
n === "body" ? {
|
|
1394
|
-
target: S,
|
|
1395
|
-
cancel: {
|
|
1396
|
-
body: null
|
|
1397
|
-
}
|
|
1398
|
-
} : {
|
|
1399
|
-
target: S,
|
|
1400
|
-
elements: {
|
|
1401
|
-
viewport: u,
|
|
1402
|
-
content: u
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
), () => {
|
|
1406
|
-
var E;
|
|
1407
|
-
return (E = b()) == null ? void 0 : E.destroy();
|
|
1408
|
-
};
|
|
1409
|
-
}, [p, n]), Xo(
|
|
1410
|
-
e,
|
|
1411
|
-
() => ({
|
|
1412
|
-
osInstance: b,
|
|
1413
|
-
getElement: () => d.current
|
|
1414
|
-
}),
|
|
1415
|
-
[]
|
|
1416
|
-
), // @ts-ignore
|
|
1417
|
-
/* @__PURE__ */ tn.createElement(l, { "data-overlayscrollbars-initialize": "", ref: d, ...f }, n === "body" ? r : /* @__PURE__ */ tn.createElement("div", { "data-overlayscrollbars-contents": "", ref: i }, r));
|
|
1418
|
-
}, nc = Yo(ec), Ge = {
|
|
1419
|
-
scrollbars: {
|
|
1420
|
-
autoHide: "leave",
|
|
1421
|
-
autoHideDelay: 800
|
|
1422
|
-
}
|
|
1423
|
-
}, Ln = tn.forwardRef(({
|
|
1424
|
-
children: t,
|
|
1425
|
-
options: e,
|
|
1426
|
-
defer: n,
|
|
1427
|
-
...o
|
|
1428
|
-
}, s) => {
|
|
1429
|
-
const c = en(() => e ? {
|
|
1430
|
-
...Ge,
|
|
1431
|
-
...e,
|
|
1432
|
-
scrollbars: {
|
|
1433
|
-
...Ge.scrollbars,
|
|
1434
|
-
...e.scrollbars
|
|
1435
|
-
}
|
|
1436
|
-
} : Ge, [e]);
|
|
1437
|
-
return /* @__PURE__ */ Wo(
|
|
1438
|
-
nc,
|
|
1439
|
-
{
|
|
1440
|
-
...o,
|
|
1441
|
-
defer: n,
|
|
1442
|
-
options: c,
|
|
1443
|
-
ref: s,
|
|
1444
|
-
children: t
|
|
1445
|
-
}
|
|
1446
|
-
);
|
|
1447
|
-
});
|
|
1448
|
-
Ln.displayName = "ScrollArea";
|
|
1449
|
-
Ln.propTypes = {
|
|
1450
|
-
children: Lt.node.isRequired,
|
|
1451
|
-
defer: Lt.oneOfType([Lt.bool, Lt.number]),
|
|
1452
|
-
options: Lt.shape({
|
|
1453
|
-
scrollbars: Lt.shape({
|
|
1454
|
-
autoHide: Lt.oneOf(["never", "scroll", "leave", "move"]),
|
|
1455
|
-
autoHideDelay: Lt.number
|
|
1456
|
-
})
|
|
1457
|
-
})
|
|
1458
|
-
};
|
|
1459
|
-
Ln.defaultProps = {
|
|
1460
|
-
defer: !0,
|
|
1461
|
-
options: void 0
|
|
1462
|
-
};
|
|
1463
|
-
export {
|
|
1464
|
-
Ln as ScrollArea
|
|
1465
|
-
};
|