@serendie/ui 2.1.3 → 2.2.0
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/client.js +79 -74
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Banner/Banner.d.ts +1 -1
- package/dist/components/BottomNavigation/BottomNavigationItem.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.js +22 -21
- package/dist/components/DatePicker/DatePicker.d.ts +13 -0
- package/dist/components/DatePicker/DatePicker.js +203 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +6 -0
- package/dist/components/DatePicker/parseDate.d.ts +1 -0
- package/dist/components/DatePicker/styles.d.ts +1 -0
- package/dist/components/DatePicker/styles.js +224 -0
- package/dist/components/IconButton/IconButton.d.ts +3 -3
- package/dist/components/List/ListItem.d.ts +1 -1
- package/dist/components/ModalDialog/ModalDialog.d.ts +1 -1
- package/dist/components/NotificationBadge/NotificationBadge.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/ProgressIndicator/AnimatedArc.d.ts +6 -0
- package/dist/components/ProgressIndicator/AnimatedArc.js +46 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +11 -29
- package/dist/components/ProgressIndicator/ProgressIndicator.js +201 -43
- package/dist/components/ProgressIndicator/ProgressIndicatorIndeterminate.d.ts +10 -0
- package/dist/components/ProgressIndicator/ProgressIndicatorIndeterminate.js +215 -0
- package/dist/components/ProgressIndicator/index.d.ts +4 -1
- package/dist/components/ProgressIndicator/index.js +3 -2
- package/dist/components/ProgressIndicator/util.d.ts +1 -0
- package/dist/components/ProgressIndicator/util.js +13 -0
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/TextField/TextField.js +59 -156
- package/dist/components/Toast/Toast.d.ts +1 -1
- package/dist/components/TopAppBar/TopAppBar.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +80 -75
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-content.js +15 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-context.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-control.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-input.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-label.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-month-select.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-next-trigger.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-positioner.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-prev-trigger.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-root.js +55 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-body.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell-trigger.js +19 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-cell.js +26 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-head.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-header.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table-row.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-table.js +16 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-trigger.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view-control.js +14 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-view.js +23 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker-year-select.js +13 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/date-picker.anatomy.js +5 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-context.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-cell-props-context.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-table-props-context.js +10 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker-view-props-context.js +12 -0
- package/dist/node_modules/@ark-ui/react/dist/components/date-picker/use-date-picker.js +18 -0
- package/dist/node_modules/@ark-ui/react/dist/components/factory.js +11 -12
- package/dist/node_modules/@ark-ui/react/dist/components/menu/menu-root.js +5 -4
- package/dist/node_modules/@ark-ui/react/dist/utils/use-event.js +0 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +36 -36
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +68 -67
- package/dist/node_modules/@internationalized/date/dist/CalendarDate.js +178 -0
- package/dist/node_modules/@internationalized/date/dist/DateFormatter.js +99 -0
- package/dist/node_modules/@internationalized/date/dist/GregorianCalendar.js +98 -0
- package/dist/node_modules/@internationalized/date/dist/conversion.js +135 -0
- package/dist/node_modules/@internationalized/date/dist/manipulation.js +205 -0
- package/dist/node_modules/@internationalized/date/dist/queries.js +202 -0
- package/dist/node_modules/@internationalized/date/dist/string.js +41 -0
- package/dist/node_modules/@internationalized/date/dist/utils.js +6 -0
- package/dist/node_modules/@internationalized/date/dist/weekStartData.js +100 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +7 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
- package/dist/node_modules/@zag-js/anatomy/dist/index.js +15 -14
- package/dist/node_modules/@zag-js/aria-hidden/dist/index.js +23 -23
- package/dist/node_modules/@zag-js/collection/dist/index.js +102 -71
- package/dist/node_modules/@zag-js/combobox/dist/index.js +482 -426
- package/dist/node_modules/@zag-js/date-picker/dist/index.js +1826 -0
- package/dist/node_modules/@zag-js/date-utils/dist/index.js +366 -0
- package/dist/node_modules/@zag-js/dialog/dist/index.js +66 -64
- package/dist/node_modules/@zag-js/dismissable/dist/index.js +94 -69
- package/dist/node_modules/@zag-js/dom-query/dist/index.js +359 -300
- package/dist/node_modules/@zag-js/live-region/dist/index.js +39 -0
- package/dist/node_modules/@zag-js/menu/dist/index.js +357 -340
- package/dist/node_modules/@zag-js/popper/dist/index.js +123 -120
- package/dist/node_modules/@zag-js/presence/dist/index.js +17 -17
- package/dist/node_modules/@zag-js/radio-group/dist/index.js +118 -117
- package/dist/node_modules/@zag-js/react/dist/index.js +124 -121
- package/dist/node_modules/@zag-js/select/dist/index.js +211 -197
- package/dist/node_modules/@zag-js/toast/dist/index.js +73 -71
- package/dist/node_modules/@zag-js/tooltip/dist/index.js +31 -30
- package/dist/node_modules/@zag-js/utils/dist/index.js +150 -104
- package/dist/preset.d.ts +11 -1
- package/dist/recipes/index.d.ts +3 -2
- package/dist/recipes/index.js +5 -2
- package/dist/recipes/textFieldRecipe.d.ts +6 -0
- package/dist/recipes/textFieldRecipe.js +107 -0
- package/dist/styled-system/css/cva.js +43 -38
- package/dist/styled-system/recipes/create-recipe.js +37 -0
- package/dist/styled-system/recipes/text-field-recipe.js +61 -0
- package/dist/styles.css +1 -1
- package/dist/tokens/keyframes/index.d.ts +8 -0
- package/dist/tokens/keyframes/index.js +6 -2
- package/package.json +3 -3
- package/styled-system/recipes/create-recipe.js +82 -0
- package/styled-system/recipes/index.d.ts +2 -0
- package/styled-system/recipes/index.js +1 -0
- package/styled-system/recipes/text-field-recipe.d.ts +28 -0
- package/styled-system/recipes/text-field-recipe.js +72 -0
- package/styled-system/types/prop-type.d.ts +1 -1
- package/dist/node_modules/@zag-js/store/dist/index.js +0 -131
- package/dist/node_modules/proxy-compare/dist/index.js +0 -7
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
function
|
|
1
|
+
function ue(t) {
|
|
2
2
|
if (!t) return;
|
|
3
3
|
const e = t.selectionStart ?? 0, n = t.selectionEnd ?? 0;
|
|
4
4
|
Math.abs(n - e) === 0 && e === 0 && t.setSelectionRange(t.value.length, t.value.length);
|
|
5
5
|
}
|
|
6
|
-
var
|
|
7
|
-
},
|
|
8
|
-
function
|
|
9
|
-
return ["html", "body", "#document"].includes(
|
|
6
|
+
var st = (t, e) => t.map((n, r) => t[(Math.max(e, 0) + r) % t.length]), P = (...t) => (e) => t.reduce((n, r) => r(n), e), h = () => {
|
|
7
|
+
}, x = (t) => typeof t == "object" && t !== null, le = 2147483647, fe = (t) => t ? "" : void 0, de = (t) => t ? "true" : void 0, ct = 1, at = 9, ut = 11, d = (t) => x(t) && t.nodeType === ct && typeof t.nodeName == "string", $ = (t) => x(t) && t.nodeType === at, lt = (t) => x(t) && t === t.window, X = (t) => d(t) ? t.localName || "" : "#document";
|
|
8
|
+
function ft(t) {
|
|
9
|
+
return ["html", "body", "#document"].includes(X(t));
|
|
10
10
|
}
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
if (t == null || !
|
|
11
|
+
var dt = (t) => x(t) && t.nodeType !== void 0, A = (t) => dt(t) && t.nodeType === ut && "host" in t, mt = (t) => d(t) && t.localName === "input", me = (t) => !!(t != null && t.matches("a[href]")), bt = (t) => d(t) ? t.offsetWidth > 0 || t.offsetHeight > 0 || t.getClientRects().length > 0 : !1, pt = /(textarea|select)/;
|
|
12
|
+
function yt(t) {
|
|
13
|
+
if (t == null || !d(t)) return !1;
|
|
14
14
|
try {
|
|
15
|
-
return
|
|
15
|
+
return mt(t) && t.selectionStart != null || pt.test(t.localName) || t.isContentEditable || t.getAttribute("contenteditable") === "true" || t.getAttribute("contenteditable") === "";
|
|
16
16
|
} catch {
|
|
17
17
|
return !1;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function z(t, e) {
|
|
21
21
|
var r;
|
|
22
|
-
if (!t || !e || !
|
|
22
|
+
if (!t || !e || !d(t) || !d(e)) return !1;
|
|
23
23
|
const n = (r = e.getRootNode) == null ? void 0 : r.call(e);
|
|
24
24
|
if (t === e || t.contains(e)) return !0;
|
|
25
|
-
if (n &&
|
|
25
|
+
if (n && A(n)) {
|
|
26
26
|
let o = e;
|
|
27
27
|
for (; o; ) {
|
|
28
28
|
if (t === o) return !0;
|
|
@@ -31,17 +31,17 @@ function q(t, e) {
|
|
|
31
31
|
}
|
|
32
32
|
return !1;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return
|
|
34
|
+
function k(t) {
|
|
35
|
+
return $(t) ? t : lt(t) ? t.document : (t == null ? void 0 : t.ownerDocument) ?? document;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
return
|
|
37
|
+
function vt(t) {
|
|
38
|
+
return k(t).documentElement;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function m(t) {
|
|
41
41
|
var e;
|
|
42
|
-
return
|
|
42
|
+
return A(t) ? m(t.host) : $(t) ? t.defaultView ?? window : d(t) ? ((e = t.ownerDocument) == null ? void 0 : e.defaultView) ?? window : window;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function be(t) {
|
|
45
45
|
let e = t.activeElement;
|
|
46
46
|
for (; e != null && e.shadowRoot; ) {
|
|
47
47
|
const n = e.shadowRoot.activeElement;
|
|
@@ -50,59 +50,59 @@ function ae(t) {
|
|
|
50
50
|
}
|
|
51
51
|
return e;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
if (
|
|
55
|
-
const e = t.assignedSlot || t.parentNode ||
|
|
56
|
-
return
|
|
53
|
+
function gt(t) {
|
|
54
|
+
if (X(t) === "html") return t;
|
|
55
|
+
const e = t.assignedSlot || t.parentNode || A(t) && t.host || vt(t);
|
|
56
|
+
return A(e) ? e.host : e;
|
|
57
57
|
}
|
|
58
58
|
var D = /* @__PURE__ */ new WeakMap();
|
|
59
|
-
function
|
|
60
|
-
return D.has(t) || D.set(t,
|
|
59
|
+
function pe(t) {
|
|
60
|
+
return D.has(t) || D.set(t, m(t).getComputedStyle(t)), D.get(t);
|
|
61
61
|
}
|
|
62
|
-
var
|
|
63
|
-
function
|
|
62
|
+
var S = () => typeof document < "u";
|
|
63
|
+
function ht() {
|
|
64
64
|
const t = navigator.userAgentData;
|
|
65
65
|
return (t == null ? void 0 : t.platform) ?? navigator.platform;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function wt() {
|
|
68
68
|
const t = navigator.userAgentData;
|
|
69
69
|
return t && Array.isArray(t.brands) ? t.brands.map(({ brand: e, version: n }) => `${e}/${n}`).join(" ") : navigator.userAgent;
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
function
|
|
71
|
+
var F = (t) => S() && t.test(ht()), G = (t) => S() && t.test(wt()), Et = (t) => S() && t.test(navigator.vendor), ye = () => S() && !!navigator.maxTouchPoints, Tt = () => F(/^iPhone/i), At = () => F(/^iPad/i) || N() && navigator.maxTouchPoints > 1, K = () => Tt() || At(), xt = () => N() || K(), N = () => F(/^Mac/i), ve = () => xt() && Et(/apple/i), kt = () => G(/Firefox/i), St = () => G(/Android/i);
|
|
72
|
+
function Nt(t) {
|
|
73
73
|
var e, n, r;
|
|
74
74
|
return ((e = t.composedPath) == null ? void 0 : e.call(t)) ?? ((r = (n = t.nativeEvent) == null ? void 0 : n.composedPath) == null ? void 0 : r.call(n));
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
const e =
|
|
76
|
+
function Y(t) {
|
|
77
|
+
const e = Nt(t);
|
|
78
78
|
return (e == null ? void 0 : e[0]) ?? t.target;
|
|
79
79
|
}
|
|
80
|
-
var
|
|
81
|
-
function
|
|
80
|
+
var ge = (t) => z(t.currentTarget, Y(t));
|
|
81
|
+
function he(t) {
|
|
82
82
|
const e = t.currentTarget;
|
|
83
83
|
if (!e || !e.matches("a[href], button[type='submit'], input[type='submit']")) return !1;
|
|
84
|
-
const r = t.button === 1, o =
|
|
84
|
+
const r = t.button === 1, o = Lt(t);
|
|
85
85
|
return r || o;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function we(t) {
|
|
88
88
|
const e = t.currentTarget;
|
|
89
89
|
if (!e) return !1;
|
|
90
90
|
const n = e.localName;
|
|
91
91
|
return t.altKey ? n === "a" || n === "button" && e.type === "submit" || n === "input" && e.type === "submit" : !1;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
return
|
|
93
|
+
function Ee(t) {
|
|
94
|
+
return Ct(t).isComposing || t.keyCode === 229;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
return
|
|
96
|
+
function Lt(t) {
|
|
97
|
+
return N() ? t.metaKey : t.ctrlKey;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Te(t) {
|
|
100
100
|
return t.key.length === 1 && !t.ctrlKey && !t.metaKey;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
return t.
|
|
102
|
+
function Ae(t) {
|
|
103
|
+
return t.pointerType === "" && t.isTrusted ? !0 : St() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
|
|
104
104
|
}
|
|
105
|
-
var
|
|
105
|
+
var xe = (t) => t.button === 0, ke = (t) => t.button === 2 || N() && t.ctrlKey && t.button === 0, Se = (t) => t.ctrlKey || t.altKey || t.metaKey, It = (t) => "touches" in t && t.touches.length > 0, Mt = {
|
|
106
106
|
Up: "ArrowUp",
|
|
107
107
|
Down: "ArrowDown",
|
|
108
108
|
Esc: "Escape",
|
|
@@ -110,20 +110,20 @@ var ye = (t) => t.button === 0, he = (t) => t.button === 2 || k() && t.ctrlKey &
|
|
|
110
110
|
",": "Comma",
|
|
111
111
|
Left: "ArrowLeft",
|
|
112
112
|
Right: "ArrowRight"
|
|
113
|
-
},
|
|
113
|
+
}, j = {
|
|
114
114
|
ArrowLeft: "ArrowRight",
|
|
115
115
|
ArrowRight: "ArrowLeft"
|
|
116
116
|
};
|
|
117
|
-
function
|
|
117
|
+
function Ne(t, e = {}) {
|
|
118
118
|
const { dir: n = "ltr", orientation: r = "horizontal" } = e;
|
|
119
119
|
let o = t.key;
|
|
120
|
-
return o =
|
|
120
|
+
return o = Mt[o] ?? o, n === "rtl" && r === "horizontal" && o in j && (o = j[o]), o;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Ct(t) {
|
|
123
123
|
return t.nativeEvent ?? t;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
const n =
|
|
125
|
+
function Pt(t, e = "client") {
|
|
126
|
+
const n = It(t) ? t.touches[0] || t.changedTouches[0] : t;
|
|
127
127
|
return { x: n[`${e}X`], y: n[`${e}Y`] };
|
|
128
128
|
}
|
|
129
129
|
var v = (t, e, n, r) => {
|
|
@@ -132,101 +132,112 @@ var v = (t, e, n, r) => {
|
|
|
132
132
|
o == null || o.removeEventListener(e, n, r);
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
|
-
function
|
|
136
|
-
const { type: n = "HTMLInputElement", property: r = "value" } = e, o =
|
|
135
|
+
function Z(t, e) {
|
|
136
|
+
const { type: n = "HTMLInputElement", property: r = "value" } = e, o = m(t)[n].prototype;
|
|
137
137
|
return Object.getOwnPropertyDescriptor(o, r) ?? {};
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Dt(t) {
|
|
140
|
+
if (t.localName === "input") return "HTMLInputElement";
|
|
141
|
+
if (t.localName === "textarea") return "HTMLTextAreaElement";
|
|
142
|
+
if (t.localName === "select") return "HTMLSelectElement";
|
|
143
|
+
}
|
|
144
|
+
function Le(t, e, n = "value") {
|
|
145
|
+
var o;
|
|
146
|
+
if (!t) return;
|
|
147
|
+
const r = Dt(t);
|
|
148
|
+
r && ((o = Z(t, { type: r, property: n }).set) == null || o.call(t, e)), t.setAttribute(n, e);
|
|
149
|
+
}
|
|
150
|
+
function Ot(t, e) {
|
|
140
151
|
var r;
|
|
141
152
|
if (!t) return;
|
|
142
|
-
(r =
|
|
153
|
+
(r = Z(t, { type: "HTMLInputElement", property: "checked" }).set) == null || r.call(t, e), e ? t.setAttribute("checked", "") : t.removeAttribute("checked");
|
|
143
154
|
}
|
|
144
|
-
function
|
|
155
|
+
function Ie(t, e) {
|
|
145
156
|
const { checked: n, bubbles: r = !0 } = e;
|
|
146
157
|
if (!t) return;
|
|
147
|
-
const o =
|
|
148
|
-
t instanceof o.HTMLInputElement && (
|
|
158
|
+
const o = m(t);
|
|
159
|
+
t instanceof o.HTMLInputElement && (Ot(t, n), t.dispatchEvent(new o.Event("click", { bubbles: r })));
|
|
149
160
|
}
|
|
150
|
-
function
|
|
151
|
-
return
|
|
161
|
+
function Rt(t) {
|
|
162
|
+
return Ft(t) ? t.form : t.closest("form");
|
|
152
163
|
}
|
|
153
|
-
function
|
|
164
|
+
function Ft(t) {
|
|
154
165
|
return t.matches("textarea, input, select, button");
|
|
155
166
|
}
|
|
156
|
-
function
|
|
167
|
+
function Kt(t, e) {
|
|
157
168
|
if (!t) return;
|
|
158
|
-
const n =
|
|
169
|
+
const n = Rt(t), r = (o) => {
|
|
159
170
|
o.defaultPrevented || e();
|
|
160
171
|
};
|
|
161
172
|
return n == null || n.addEventListener("reset", r, { passive: !0 }), () => n == null ? void 0 : n.removeEventListener("reset", r);
|
|
162
173
|
}
|
|
163
|
-
function
|
|
174
|
+
function Vt(t, e) {
|
|
164
175
|
const n = t == null ? void 0 : t.closest("fieldset");
|
|
165
176
|
if (!n) return;
|
|
166
177
|
e(n.disabled);
|
|
167
|
-
const r =
|
|
178
|
+
const r = m(n), o = new r.MutationObserver(() => e(n.disabled));
|
|
168
179
|
return o.observe(n, {
|
|
169
180
|
attributes: !0,
|
|
170
181
|
attributeFilter: ["disabled"]
|
|
171
182
|
}), () => o.disconnect();
|
|
172
183
|
}
|
|
173
|
-
function
|
|
184
|
+
function Me(t, e) {
|
|
174
185
|
if (!t) return;
|
|
175
|
-
const { onFieldsetDisabledChange: n, onFormReset: r } = e, o = [
|
|
186
|
+
const { onFieldsetDisabledChange: n, onFormReset: r } = e, o = [Kt(t, r), Vt(t, n)];
|
|
176
187
|
return () => o.forEach((i) => i == null ? void 0 : i());
|
|
177
188
|
}
|
|
178
|
-
var
|
|
189
|
+
var J = (t) => d(t) && t.tagName === "IFRAME", qt = (t) => !Number.isNaN(parseInt(t.getAttribute("tabindex") || "0", 10)), Bt = (t) => parseInt(t.getAttribute("tabindex") || "0", 10) < 0, V = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type", Ht = (t, e = !1) => {
|
|
179
190
|
if (!t) return [];
|
|
180
|
-
const n = Array.from(t.querySelectorAll(
|
|
181
|
-
(e == !0 || e == "if-empty" && n.length === 0) &&
|
|
182
|
-
const o = n.filter(
|
|
183
|
-
return o.forEach((i,
|
|
184
|
-
if (
|
|
191
|
+
const n = Array.from(t.querySelectorAll(V));
|
|
192
|
+
(e == !0 || e == "if-empty" && n.length === 0) && d(t) && O(t) && n.unshift(t);
|
|
193
|
+
const o = n.filter(O);
|
|
194
|
+
return o.forEach((i, c) => {
|
|
195
|
+
if (J(i) && i.contentDocument) {
|
|
185
196
|
const s = i.contentDocument.body;
|
|
186
|
-
o.splice(
|
|
197
|
+
o.splice(c, 1, ...Ht(s));
|
|
187
198
|
}
|
|
188
199
|
}), o;
|
|
189
200
|
};
|
|
190
|
-
function
|
|
191
|
-
return !t || t.closest("[inert]") ? !1 : t.matches(
|
|
201
|
+
function O(t) {
|
|
202
|
+
return !t || t.closest("[inert]") ? !1 : t.matches(V) && bt(t);
|
|
192
203
|
}
|
|
193
|
-
function
|
|
204
|
+
function q(t, e) {
|
|
194
205
|
if (!t) return [];
|
|
195
|
-
const r = Array.from(t.querySelectorAll(
|
|
206
|
+
const r = Array.from(t.querySelectorAll(V)).filter(Ut);
|
|
196
207
|
return r.forEach((o, i) => {
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
208
|
+
if (J(o) && o.contentDocument) {
|
|
209
|
+
const c = o.contentDocument.body, s = q(c);
|
|
199
210
|
r.splice(i, 1, ...s);
|
|
200
211
|
}
|
|
201
212
|
}), r.length, r;
|
|
202
213
|
}
|
|
203
|
-
function
|
|
204
|
-
return t != null && t.tabIndex > 0 ? !0 :
|
|
214
|
+
function Ut(t) {
|
|
215
|
+
return t != null && t.tabIndex > 0 ? !0 : O(t) && !Bt(t);
|
|
205
216
|
}
|
|
206
|
-
function
|
|
207
|
-
const n =
|
|
217
|
+
function Wt(t, e) {
|
|
218
|
+
const n = q(t, e), r = n[0] || null, o = n[n.length - 1] || null;
|
|
208
219
|
return [r, o];
|
|
209
220
|
}
|
|
210
|
-
function
|
|
211
|
-
return t.tabIndex < 0 && (/^(audio|video|details)$/.test(t.localName) ||
|
|
221
|
+
function Ce(t) {
|
|
222
|
+
return t.tabIndex < 0 && (/^(audio|video|details)$/.test(t.localName) || yt(t)) && !qt(t) ? 0 : t.tabIndex;
|
|
212
223
|
}
|
|
213
|
-
function
|
|
224
|
+
function Pe(t) {
|
|
214
225
|
const { root: e, getInitialEl: n, filter: r, enabled: o = !0 } = t;
|
|
215
226
|
if (!o) return;
|
|
216
227
|
let i = null;
|
|
217
228
|
if (i || (i = typeof n == "function" ? n() : n), i || (i = e == null ? void 0 : e.querySelector("[data-autofocus],[autofocus]")), !i) {
|
|
218
|
-
const
|
|
219
|
-
i = r ?
|
|
229
|
+
const c = q(e);
|
|
230
|
+
i = r ? c.filter(r)[0] : c[0];
|
|
220
231
|
}
|
|
221
232
|
return i || e || void 0;
|
|
222
233
|
}
|
|
223
|
-
function
|
|
234
|
+
function De(t) {
|
|
224
235
|
const e = t.currentTarget;
|
|
225
236
|
if (!e) return !1;
|
|
226
|
-
const [n, r] =
|
|
237
|
+
const [n, r] = Wt(e), o = e.ownerDocument || document;
|
|
227
238
|
return !(o.activeElement === n && t.shiftKey || o.activeElement === r && !t.shiftKey || !n && !r);
|
|
228
239
|
}
|
|
229
|
-
function
|
|
240
|
+
function _t(t) {
|
|
230
241
|
const e = /* @__PURE__ */ new Set();
|
|
231
242
|
function n(r) {
|
|
232
243
|
const o = globalThis.requestAnimationFrame(r);
|
|
@@ -236,7 +247,7 @@ function Ie(t) {
|
|
|
236
247
|
e.forEach((o) => o());
|
|
237
248
|
};
|
|
238
249
|
}
|
|
239
|
-
function
|
|
250
|
+
function L(t) {
|
|
240
251
|
let e;
|
|
241
252
|
const n = globalThis.requestAnimationFrame(() => {
|
|
242
253
|
e = t();
|
|
@@ -246,210 +257,240 @@ function F(t) {
|
|
|
246
257
|
};
|
|
247
258
|
}
|
|
248
259
|
function jt(t, e, n) {
|
|
249
|
-
const r =
|
|
260
|
+
const r = L(() => {
|
|
250
261
|
t.removeEventListener(e, o, !0), n();
|
|
251
262
|
}), o = () => {
|
|
252
263
|
r(), n();
|
|
253
264
|
};
|
|
254
265
|
return t.addEventListener(e, o, { once: !0, capture: !0 }), r;
|
|
255
266
|
}
|
|
256
|
-
function
|
|
267
|
+
function $t(t, e) {
|
|
257
268
|
if (!t) return;
|
|
258
|
-
const { attributes: n, callback: r } = e, o = t.ownerDocument.defaultView || window, i = new o.MutationObserver((
|
|
259
|
-
for (const s of
|
|
269
|
+
const { attributes: n, callback: r } = e, o = t.ownerDocument.defaultView || window, i = new o.MutationObserver((c) => {
|
|
270
|
+
for (const s of c)
|
|
260
271
|
s.type === "attributes" && s.attributeName && n.includes(s.attributeName) && r(s);
|
|
261
272
|
});
|
|
262
273
|
return i.observe(t, { attributes: !0, attributeFilter: n }), () => i.disconnect();
|
|
263
274
|
}
|
|
264
|
-
function
|
|
265
|
-
const { defer: n } = e, r = n ?
|
|
275
|
+
function Oe(t, e) {
|
|
276
|
+
const { defer: n } = e, r = n ? L : (i) => i(), o = [];
|
|
266
277
|
return o.push(
|
|
267
278
|
r(() => {
|
|
268
279
|
const i = typeof t == "function" ? t() : t;
|
|
269
|
-
o.push(
|
|
280
|
+
o.push($t(i, e));
|
|
270
281
|
})
|
|
271
282
|
), () => {
|
|
272
283
|
o.forEach((i) => i == null ? void 0 : i());
|
|
273
284
|
};
|
|
274
285
|
}
|
|
275
|
-
function
|
|
286
|
+
function Xt(t, e) {
|
|
276
287
|
const { callback: n } = e;
|
|
277
288
|
if (!t) return;
|
|
278
289
|
const r = t.ownerDocument.defaultView || window, o = new r.MutationObserver(n);
|
|
279
290
|
return o.observe(t, { childList: !0, subtree: !0 }), () => o.disconnect();
|
|
280
291
|
}
|
|
281
|
-
function
|
|
282
|
-
const { defer: n } = e, r = n ?
|
|
292
|
+
function Re(t, e) {
|
|
293
|
+
const { defer: n } = e, r = n ? L : (i) => i(), o = [];
|
|
283
294
|
return o.push(
|
|
284
295
|
r(() => {
|
|
285
296
|
const i = typeof t == "function" ? t() : t;
|
|
286
|
-
o.push(
|
|
297
|
+
o.push(Xt(i, e));
|
|
287
298
|
})
|
|
288
299
|
), () => {
|
|
289
300
|
o.forEach((i) => i == null ? void 0 : i());
|
|
290
301
|
};
|
|
291
302
|
}
|
|
292
|
-
function
|
|
303
|
+
function Fe(t) {
|
|
293
304
|
const e = () => {
|
|
294
|
-
const n =
|
|
305
|
+
const n = m(t);
|
|
295
306
|
t.dispatchEvent(new n.MouseEvent("click"));
|
|
296
307
|
};
|
|
297
|
-
|
|
308
|
+
kt() ? jt(t, "keyup", e) : queueMicrotask(e);
|
|
298
309
|
}
|
|
299
|
-
function
|
|
300
|
-
const e =
|
|
301
|
-
return
|
|
310
|
+
function Q(t) {
|
|
311
|
+
const e = gt(t);
|
|
312
|
+
return ft(e) ? k(e).body : d(e) && B(e) ? e : Q(e);
|
|
302
313
|
}
|
|
303
|
-
function
|
|
304
|
-
const n =
|
|
305
|
-
return r ? e.concat(o, o.visualViewport || [],
|
|
314
|
+
function zt(t, e = []) {
|
|
315
|
+
const n = Q(t), r = n === t.ownerDocument.body, o = m(n);
|
|
316
|
+
return r ? e.concat(o, o.visualViewport || [], B(n) ? n : []) : e.concat(n, zt(n, []));
|
|
306
317
|
}
|
|
307
|
-
var
|
|
308
|
-
function
|
|
309
|
-
const e =
|
|
310
|
-
return
|
|
318
|
+
var Gt = /auto|scroll|overlay|hidden|clip/, Yt = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
319
|
+
function B(t) {
|
|
320
|
+
const e = m(t), { overflow: n, overflowX: r, overflowY: o, display: i } = e.getComputedStyle(t);
|
|
321
|
+
return Gt.test(n + o + r) && !Yt.has(i);
|
|
311
322
|
}
|
|
312
|
-
function
|
|
323
|
+
function Zt(t) {
|
|
313
324
|
return t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth;
|
|
314
325
|
}
|
|
315
|
-
function
|
|
326
|
+
function Ke(t, e) {
|
|
316
327
|
const { rootEl: n, ...r } = e || {};
|
|
317
|
-
!t || !n || !
|
|
328
|
+
!t || !n || !B(n) || !Zt(n) || t.scrollIntoView(r);
|
|
329
|
+
}
|
|
330
|
+
var w = "default", R = "", T = /* @__PURE__ */ new WeakMap();
|
|
331
|
+
function Jt(t = {}) {
|
|
332
|
+
const { target: e, doc: n } = t, r = n ?? document, o = r.documentElement;
|
|
333
|
+
return K() ? (w === "default" && (R = o.style.webkitUserSelect, o.style.webkitUserSelect = "none"), w = "disabled") : e && (T.set(e, e.style.userSelect), e.style.userSelect = "none"), () => Qt({ target: e, doc: r });
|
|
334
|
+
}
|
|
335
|
+
function Qt(t = {}) {
|
|
336
|
+
const { target: e, doc: n } = t, o = (n ?? document).documentElement;
|
|
337
|
+
if (K()) {
|
|
338
|
+
if (w !== "disabled") return;
|
|
339
|
+
w = "restoring", setTimeout(() => {
|
|
340
|
+
_t(() => {
|
|
341
|
+
w === "restoring" && (o.style.webkitUserSelect === "none" && (o.style.webkitUserSelect = R || ""), R = "", w = "default");
|
|
342
|
+
});
|
|
343
|
+
}, 300);
|
|
344
|
+
} else if (e && T.has(e)) {
|
|
345
|
+
const i = T.get(e);
|
|
346
|
+
e.style.userSelect === "none" && (e.style.userSelect = i ?? ""), e.getAttribute("style") === "" && e.removeAttribute("style"), T.delete(e);
|
|
347
|
+
}
|
|
318
348
|
}
|
|
319
|
-
function
|
|
349
|
+
function Ve(t = {}) {
|
|
350
|
+
const { defer: e, target: n, ...r } = t, o = e ? L : (c) => c(), i = [];
|
|
351
|
+
return i.push(
|
|
352
|
+
o(() => {
|
|
353
|
+
const c = typeof n == "function" ? n() : n;
|
|
354
|
+
i.push(Jt({ ...r, target: c }));
|
|
355
|
+
})
|
|
356
|
+
), () => {
|
|
357
|
+
i.forEach((c) => c == null ? void 0 : c());
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
function qe(t) {
|
|
320
361
|
const {
|
|
321
362
|
pointerNode: e,
|
|
322
363
|
keyboardNode: n = e,
|
|
323
364
|
onPress: r,
|
|
324
365
|
onPressStart: o,
|
|
325
366
|
onPressEnd: i,
|
|
326
|
-
isValidKey:
|
|
367
|
+
isValidKey: c = (u) => u.key === "Enter"
|
|
327
368
|
} = t;
|
|
328
369
|
if (!e) return h;
|
|
329
|
-
const s =
|
|
330
|
-
let
|
|
331
|
-
const
|
|
332
|
-
point:
|
|
333
|
-
event:
|
|
370
|
+
const s = m(e), f = k(e);
|
|
371
|
+
let a = h, l = h, g = h;
|
|
372
|
+
const b = (u) => ({
|
|
373
|
+
point: Pt(u),
|
|
374
|
+
event: u
|
|
334
375
|
});
|
|
335
|
-
function
|
|
336
|
-
o == null || o(
|
|
376
|
+
function E(u) {
|
|
377
|
+
o == null || o(b(u));
|
|
337
378
|
}
|
|
338
|
-
function
|
|
339
|
-
i == null || i(
|
|
379
|
+
function p(u) {
|
|
380
|
+
i == null || i(b(u));
|
|
340
381
|
}
|
|
341
|
-
const
|
|
382
|
+
const tt = v(e, "pointerdown", (u) => {
|
|
342
383
|
l();
|
|
343
|
-
const
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
}, { passive: !r, once: !0 }),
|
|
384
|
+
const I = v(s, "pointerup", (y) => {
|
|
385
|
+
const C = Y(y);
|
|
386
|
+
z(e, C) ? r == null || r(b(y)) : i == null || i(b(y));
|
|
387
|
+
}, { passive: !r, once: !0 }), M = v(s, "pointercancel", p, {
|
|
347
388
|
passive: !i,
|
|
348
389
|
once: !0
|
|
349
390
|
});
|
|
350
|
-
l =
|
|
351
|
-
}, { passive: !o }),
|
|
352
|
-
|
|
353
|
-
function
|
|
354
|
-
const
|
|
355
|
-
if (!
|
|
356
|
-
const
|
|
357
|
-
if (!
|
|
358
|
-
const
|
|
359
|
-
r == null || r(
|
|
391
|
+
l = P(I, M), f.activeElement === n && u.pointerType === "mouse" && u.preventDefault(), E(u);
|
|
392
|
+
}, { passive: !o }), et = v(n, "focus", nt);
|
|
393
|
+
a = P(tt, et);
|
|
394
|
+
function nt() {
|
|
395
|
+
const u = (y) => {
|
|
396
|
+
if (!c(y)) return;
|
|
397
|
+
const C = (ot) => {
|
|
398
|
+
if (!c(ot)) return;
|
|
399
|
+
const it = new s.PointerEvent("pointerup"), _ = b(it);
|
|
400
|
+
r == null || r(_), i == null || i(_);
|
|
360
401
|
};
|
|
361
|
-
l(), l = v(n, "keyup",
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
},
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
-
},
|
|
368
|
-
|
|
402
|
+
l(), l = v(n, "keyup", C);
|
|
403
|
+
const rt = new s.PointerEvent("pointerdown");
|
|
404
|
+
E(rt);
|
|
405
|
+
}, W = () => {
|
|
406
|
+
const y = new s.PointerEvent("pointercancel");
|
|
407
|
+
p(y);
|
|
408
|
+
}, I = v(n, "keydown", u), M = v(n, "blur", W);
|
|
409
|
+
g = P(I, M);
|
|
369
410
|
}
|
|
370
411
|
return () => {
|
|
371
|
-
|
|
412
|
+
a(), l(), g();
|
|
372
413
|
};
|
|
373
414
|
}
|
|
374
|
-
function
|
|
415
|
+
function Be(t, e) {
|
|
375
416
|
return Array.from((t == null ? void 0 : t.querySelectorAll(e)) ?? []);
|
|
376
417
|
}
|
|
377
|
-
function
|
|
418
|
+
function He(t, e) {
|
|
378
419
|
return (t == null ? void 0 : t.querySelector(e)) ?? null;
|
|
379
420
|
}
|
|
380
|
-
var
|
|
381
|
-
function
|
|
421
|
+
var H = (t) => t.id;
|
|
422
|
+
function te(t, e, n = H) {
|
|
382
423
|
return t.find((r) => n(r) === e);
|
|
383
424
|
}
|
|
384
|
-
function
|
|
385
|
-
const r =
|
|
425
|
+
function U(t, e, n = H) {
|
|
426
|
+
const r = te(t, e, n);
|
|
386
427
|
return r ? t.indexOf(r) : -1;
|
|
387
428
|
}
|
|
388
|
-
function
|
|
389
|
-
let r =
|
|
429
|
+
function Ue(t, e, n = !0) {
|
|
430
|
+
let r = U(t, e);
|
|
390
431
|
return r = n ? (r + 1) % t.length : Math.min(r + 1, t.length - 1), t[r];
|
|
391
432
|
}
|
|
392
|
-
function
|
|
393
|
-
let r =
|
|
433
|
+
function We(t, e, n = !0) {
|
|
434
|
+
let r = U(t, e);
|
|
394
435
|
return r === -1 ? n ? t[t.length - 1] : null : (r = n ? (r - 1 + t.length) % t.length : Math.max(0, r - 1), t[r]);
|
|
395
436
|
}
|
|
396
|
-
function
|
|
397
|
-
const { onEntry: n, measure: r, box: o = "border-box" } = e, i = (Array.isArray(t) ? t : [t]).filter(
|
|
398
|
-
const l = i.map((
|
|
399
|
-
n({ rects: l, entries:
|
|
437
|
+
function _e(t, e) {
|
|
438
|
+
const { onEntry: n, measure: r, box: o = "border-box" } = e, i = (Array.isArray(t) ? t : [t]).filter(d), c = m(i[0]), s = (a) => {
|
|
439
|
+
const l = i.map((g) => r(g));
|
|
440
|
+
n({ rects: l, entries: a });
|
|
400
441
|
};
|
|
401
442
|
s([]);
|
|
402
|
-
const
|
|
403
|
-
return i.forEach((
|
|
443
|
+
const f = new c.ResizeObserver(s);
|
|
444
|
+
return i.forEach((a) => f.observe(a, { box: o })), () => f.disconnect();
|
|
404
445
|
}
|
|
405
|
-
var
|
|
446
|
+
var ee = (t) => t.split("").map((e) => {
|
|
406
447
|
const n = e.charCodeAt(0);
|
|
407
448
|
return n > 0 && n < 128 ? e : n >= 128 && n <= 255 ? `/x${n.toString(16)}`.replace("/", "\\") : "";
|
|
408
|
-
}).join("").trim(),
|
|
449
|
+
}).join("").trim(), ne = (t) => {
|
|
409
450
|
var e;
|
|
410
|
-
return
|
|
411
|
-
},
|
|
412
|
-
function
|
|
413
|
-
const o = n ?
|
|
414
|
-
let i = n ?
|
|
415
|
-
return e.length === 1 && (i = i.filter((s) => r(s) !== n)), i.find((s) =>
|
|
416
|
-
}
|
|
417
|
-
function
|
|
451
|
+
return ee(((e = t.dataset) == null ? void 0 : e.valuetext) ?? t.textContent ?? "");
|
|
452
|
+
}, re = (t, e) => t.trim().toLowerCase().startsWith(e.toLowerCase());
|
|
453
|
+
function oe(t, e, n, r = H) {
|
|
454
|
+
const o = n ? U(t, n, r) : -1;
|
|
455
|
+
let i = n ? st(t, o) : t;
|
|
456
|
+
return e.length === 1 && (i = i.filter((s) => r(s) !== n)), i.find((s) => re(ne(s), e));
|
|
457
|
+
}
|
|
458
|
+
function je(t, e) {
|
|
418
459
|
if (!t) return h;
|
|
419
460
|
const n = Object.keys(e).reduce((r, o) => (r[o] = t.style.getPropertyValue(o), r), {});
|
|
420
461
|
return Object.assign(t.style, e), () => {
|
|
421
462
|
Object.assign(t.style, n), t.style.length === 0 && t.removeAttribute("style");
|
|
422
463
|
};
|
|
423
464
|
}
|
|
424
|
-
function
|
|
465
|
+
function $e(t, e, n) {
|
|
425
466
|
if (!t) return h;
|
|
426
467
|
const r = t.style.getPropertyValue(e);
|
|
427
468
|
return t.style.setProperty(e, n), () => {
|
|
428
469
|
t.style.setProperty(e, r), t.style.length === 0 && t.removeAttribute("style");
|
|
429
470
|
};
|
|
430
471
|
}
|
|
431
|
-
function
|
|
432
|
-
const { state: n, activeId: r, key: o, timeout: i = 350, itemToId:
|
|
472
|
+
function ie(t, e) {
|
|
473
|
+
const { state: n, activeId: r, key: o, timeout: i = 350, itemToId: c } = e, s = n.keysSoFar + o, a = s.length > 1 && Array.from(s).every((p) => p === s[0]) ? s[0] : s;
|
|
433
474
|
let l = t.slice();
|
|
434
|
-
const
|
|
435
|
-
function
|
|
475
|
+
const g = oe(l, a, r, c);
|
|
476
|
+
function b() {
|
|
436
477
|
clearTimeout(n.timer), n.timer = -1;
|
|
437
478
|
}
|
|
438
|
-
function
|
|
439
|
-
n.keysSoFar =
|
|
440
|
-
|
|
479
|
+
function E(p) {
|
|
480
|
+
n.keysSoFar = p, b(), p !== "" && (n.timer = +setTimeout(() => {
|
|
481
|
+
E(""), b();
|
|
441
482
|
}, i));
|
|
442
483
|
}
|
|
443
|
-
return
|
|
484
|
+
return E(s), g;
|
|
444
485
|
}
|
|
445
|
-
var
|
|
486
|
+
var Xe = /* @__PURE__ */ Object.assign(ie, {
|
|
446
487
|
defaultOptions: { keysSoFar: "", timer: -1 },
|
|
447
|
-
isValidEvent:
|
|
488
|
+
isValidEvent: se
|
|
448
489
|
});
|
|
449
|
-
function
|
|
490
|
+
function se(t) {
|
|
450
491
|
return t.key.length === 1 && !t.ctrlKey && !t.metaKey;
|
|
451
492
|
}
|
|
452
|
-
var
|
|
493
|
+
var ze = {
|
|
453
494
|
border: "0",
|
|
454
495
|
clip: "rect(0 0 0 0)",
|
|
455
496
|
height: "1px",
|
|
@@ -460,115 +501,133 @@ var je = {
|
|
|
460
501
|
width: "1px",
|
|
461
502
|
whiteSpace: "nowrap",
|
|
462
503
|
wordWrap: "normal"
|
|
463
|
-
}
|
|
464
|
-
function
|
|
465
|
-
const
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
504
|
+
};
|
|
505
|
+
function ce(t, e, n) {
|
|
506
|
+
const { signal: r } = e;
|
|
507
|
+
return [new Promise((c, s) => {
|
|
508
|
+
const f = setTimeout(() => {
|
|
509
|
+
s(new Error(`Timeout of ${n}ms exceeded`));
|
|
510
|
+
}, n);
|
|
511
|
+
r.addEventListener("abort", () => {
|
|
512
|
+
clearTimeout(f), s(new Error("Promise aborted"));
|
|
513
|
+
}), t.then((a) => {
|
|
514
|
+
r.aborted || (clearTimeout(f), c(a));
|
|
515
|
+
}).catch((a) => {
|
|
516
|
+
r.aborted || (clearTimeout(f), s(a));
|
|
517
|
+
});
|
|
518
|
+
}), () => e.abort()];
|
|
519
|
+
}
|
|
520
|
+
function Ge(t, e) {
|
|
521
|
+
const { timeout: n, rootNode: r } = e, o = m(r), i = k(r), c = new o.AbortController();
|
|
522
|
+
return ce(
|
|
523
|
+
new Promise((s) => {
|
|
524
|
+
const f = t();
|
|
525
|
+
if (f) {
|
|
526
|
+
s(f);
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
const a = new o.MutationObserver(() => {
|
|
530
|
+
const l = t();
|
|
531
|
+
l && l.isConnected && (a.disconnect(), s(l));
|
|
532
|
+
});
|
|
533
|
+
a.observe(i.body, {
|
|
534
|
+
childList: !0,
|
|
535
|
+
subtree: !0
|
|
536
|
+
});
|
|
537
|
+
}),
|
|
538
|
+
c,
|
|
539
|
+
n
|
|
540
|
+
);
|
|
485
541
|
}
|
|
486
542
|
export {
|
|
487
|
-
|
|
543
|
+
le as MAX_Z_INDEX,
|
|
488
544
|
v as addDomEvent,
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
545
|
+
de as ariaAttr,
|
|
546
|
+
Fe as clickIfLink,
|
|
547
|
+
z as contains,
|
|
548
|
+
fe as dataAttr,
|
|
549
|
+
H as defaultItemToId,
|
|
550
|
+
Ve as disableTextSelection,
|
|
551
|
+
Ie as dispatchInputCheckedEvent,
|
|
552
|
+
be as getActiveElement,
|
|
553
|
+
oe as getByText,
|
|
554
|
+
Xe as getByTypeahead,
|
|
555
|
+
pe as getComputedStyle,
|
|
556
|
+
k as getDocument,
|
|
557
|
+
vt as getDocumentElement,
|
|
558
|
+
Ne as getEventKey,
|
|
559
|
+
Pt as getEventPoint,
|
|
560
|
+
Y as getEventTarget,
|
|
561
|
+
Ht as getFocusables,
|
|
562
|
+
Pe as getInitialFocus,
|
|
563
|
+
Ct as getNativeEvent,
|
|
564
|
+
Q as getNearestOverflowAncestor,
|
|
565
|
+
X as getNodeName,
|
|
566
|
+
zt as getOverflowAncestors,
|
|
567
|
+
gt as getParentNode,
|
|
568
|
+
ht as getPlatform,
|
|
569
|
+
Ce as getTabIndex,
|
|
570
|
+
Wt as getTabbableEdges,
|
|
571
|
+
q as getTabbables,
|
|
572
|
+
wt as getUserAgent,
|
|
573
|
+
m as getWindow,
|
|
574
|
+
U as indexOfId,
|
|
575
|
+
me as isAnchorElement,
|
|
576
|
+
St as isAndroid,
|
|
577
|
+
xt as isApple,
|
|
578
|
+
Ee as isComposingEvent,
|
|
579
|
+
ke as isContextMenuEvent,
|
|
580
|
+
Lt as isCtrlOrMetaKey,
|
|
581
|
+
$ as isDocument,
|
|
582
|
+
S as isDom,
|
|
583
|
+
we as isDownloadingEvent,
|
|
584
|
+
yt as isEditableElement,
|
|
585
|
+
bt as isElementVisible,
|
|
586
|
+
kt as isFirefox,
|
|
587
|
+
O as isFocusable,
|
|
588
|
+
d as isHTMLElement,
|
|
589
|
+
At as isIPad,
|
|
590
|
+
Tt as isIPhone,
|
|
591
|
+
mt as isInputElement,
|
|
592
|
+
K as isIos,
|
|
593
|
+
xe as isLeftClick,
|
|
594
|
+
N as isMac,
|
|
595
|
+
Se as isModifierKey,
|
|
596
|
+
dt as isNode,
|
|
597
|
+
he as isOpeningInNewTab,
|
|
598
|
+
B as isOverflowElement,
|
|
599
|
+
Te as isPrintableKey,
|
|
600
|
+
ft as isRootElement,
|
|
601
|
+
ve as isSafari,
|
|
602
|
+
ge as isSelfTarget,
|
|
603
|
+
A as isShadowRoot,
|
|
604
|
+
Ut as isTabbable,
|
|
605
|
+
ye as isTouchDevice,
|
|
606
|
+
It as isTouchEvent,
|
|
607
|
+
De as isValidTabEvent,
|
|
608
|
+
Ae as isVirtualClick,
|
|
609
|
+
lt as isWindow,
|
|
610
|
+
te as itemById,
|
|
611
|
+
Ue as nextById,
|
|
612
|
+
_t as nextTick,
|
|
613
|
+
Oe as observeAttributes,
|
|
614
|
+
Re as observeChildren,
|
|
615
|
+
We as prevById,
|
|
616
|
+
He as query,
|
|
617
|
+
Be as queryAll,
|
|
561
618
|
jt as queueBeforeEvent,
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
619
|
+
L as raf,
|
|
620
|
+
Qt as restoreTextSelection,
|
|
621
|
+
Ke as scrollIntoView,
|
|
622
|
+
ue as setCaretToEnd,
|
|
623
|
+
Ot as setElementChecked,
|
|
624
|
+
Le as setElementValue,
|
|
625
|
+
je as setStyle,
|
|
626
|
+
$e as setStyleProperty,
|
|
627
|
+
_e as trackElementRect,
|
|
628
|
+
Me as trackFormControl,
|
|
629
|
+
qe as trackPress,
|
|
630
|
+
ze as visuallyHiddenStyle,
|
|
631
|
+
Ge as waitForElement,
|
|
632
|
+
ce as waitForPromise
|
|
574
633
|
};
|