welcome-ui 8.0.0 → 8.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AXB53BZF-XKOjjeWO.mjs +25 -0
- package/dist/Accordion.mjs +30 -23
- package/dist/Alert.mjs +76 -70
- package/dist/AspectRatio.mjs +8 -10
- package/dist/Avatar.mjs +48 -47
- package/dist/{BYC7LY2E-CVjUW1dr.mjs → BYC7LY2E-CWSI38FM.mjs} +355 -351
- package/dist/Badge.mjs +25 -25
- package/dist/Box.mjs +5 -5
- package/dist/Breadcrumb.mjs +173 -168
- package/dist/Button.mjs +72 -67
- package/dist/ButtonGroup.mjs +13 -12
- package/dist/Card.mjs +14 -14
- package/dist/Checkbox.mjs +2 -2
- package/dist/ClearButton.mjs +15 -15
- package/dist/CloseButton.mjs +9 -9
- package/dist/{CustomInput-D_13Gd_3.mjs → CustomPopper-CZt4RioF.mjs} +3200 -3047
- package/dist/DatePicker.mjs +81 -80
- package/dist/DateTimePicker.mjs +67 -62
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.mjs +190 -174
- package/dist/DropdownMenu.mjs +389 -386
- package/dist/Field.mjs +104 -92
- package/dist/FieldGroup.mjs +12 -9
- package/dist/FileDrop.mjs +613 -576
- package/dist/FileUpload.mjs +95 -74
- package/dist/Files.mjs +46 -46
- package/dist/Flex.mjs +13 -13
- package/dist/Grid.mjs +29 -29
- package/dist/Hint.mjs +12 -12
- package/dist/ITI7HKP4-C89kOQb8.mjs +474 -0
- package/dist/Icon.mjs +24 -24
- package/dist/Icons.mjs +988 -988
- package/dist/IconsFont.mjs +159 -159
- package/dist/InputText.mjs +65 -57
- package/dist/{JC64G2H7-Dey-8h60.mjs → JC64G2H7-afsomHuH.mjs} +109 -108
- package/dist/KUU7WJ55-CzsjuIMv.mjs +61 -0
- package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
- package/dist/Label.mjs +37 -35
- package/dist/Link.mjs +28 -24
- package/dist/Loader.mjs +20 -16
- package/dist/Logo.mjs +55 -42
- package/dist/MTZPJQMC-TybFZCho.mjs +15 -0
- package/dist/Modal.mjs +272 -249
- package/dist/NLEBE274-oSxMftGy.mjs +84 -0
- package/dist/P2CTZE2T-DOT1mNnX.mjs +301 -0
- package/dist/P4IRICAX-CWSZLTGz.mjs +37 -0
- package/dist/Pagination.mjs +104 -104
- package/dist/PasswordInput.mjs +35 -34
- package/dist/Picker.mjs +35 -33
- package/dist/Popover.mjs +100 -93
- package/dist/QYJ6MIDR-DJ-vUdAM.mjs +98 -0
- package/dist/Radio.mjs +58 -52
- package/dist/RadioGroup.mjs +46 -46
- package/dist/RadioTab.mjs +37 -35
- package/dist/{SYRFVSLH-cVmYtx36.mjs → SYRFVSLH-B6m278Vb.mjs} +18 -17
- package/dist/Search.mjs +175 -161
- package/dist/Select.mjs +885 -847
- package/dist/Shape.mjs +9 -9
- package/dist/Slider.mjs +359 -336
- package/dist/Stack.mjs +22 -24
- package/dist/Swiper.mjs +324 -311
- package/dist/Table.mjs +23 -23
- package/dist/Tabs.mjs +250 -245
- package/dist/Tag.mjs +51 -49
- package/dist/Text.mjs +49 -47
- package/dist/Textarea.mjs +39 -39
- package/dist/TimePicker.mjs +57 -56
- package/dist/Toast.mjs +144 -137
- package/dist/Toggle.mjs +27 -24
- package/dist/Tooltip.mjs +115 -111
- package/dist/UniversalLink.mjs +16 -16
- package/dist/VEVQD5MH-0w9Y7Ytc.mjs +20 -0
- package/dist/{VGCJ63VH-B39w1tBw.mjs → VGCJ63VH-C0UPBY-5.mjs} +61 -62
- package/dist/VariantIcon.mjs +14 -22
- package/dist/WelcomeLoader.mjs +4863 -9223
- package/dist/WuiProvider.mjs +69 -58
- package/dist/X5NMLKT6-BJw3xE-K.mjs +25 -0
- package/dist/YV4JVR4I-DPC8mMuG.mjs +344 -0
- package/dist/downshift.esm-B7Jil1wW.mjs +1082 -0
- package/dist/{field-styles-DLIhqG_8.mjs → field-styles-BVlRlvuu.mjs} +2 -2
- package/dist/{hex-to-rgba-BIDK-3ab.mjs → hex-to-rgba-DU_XzKIK.mjs} +2 -2
- package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
- package/dist/index-5HBq1O6Z.mjs +185 -0
- package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
- package/dist/{index-BYdkhqH4.mjs → index-CBBbX29m.mjs} +3652 -3584
- package/dist/index-CYmF7qCH.mjs +11 -0
- package/dist/index-C_k-m0Rl.mjs +36 -0
- package/dist/index-D8v_VJ9z.mjs +26 -0
- package/dist/{index-BNGGwOCo.mjs → index-DAZ1SYdj.mjs} +7 -7
- package/dist/{index-SbQUT2mU.mjs → index-DgSynio4.mjs} +244 -239
- package/dist/index-DpkNUfAS.mjs +11 -0
- package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
- package/dist/{index-BJAZgeHL.mjs → index-QaLwIvZS.mjs} +8 -8
- package/dist/{index-BQtDgQBH.mjs → index-SQQQ4dEE.mjs} +8 -8
- package/dist/index-i_anpNhw.mjs +66 -0
- package/dist/index-wl3X6EM1.mjs +16 -0
- package/dist/jsx-runtime-B7I4PJ0H.mjs +613 -0
- package/dist/radio-group-C0fUHvam.mjs +52 -0
- package/dist/theme.mjs +1175 -1120
- package/dist/throttle-CW18pWlW.mjs +13 -0
- package/dist/types/components/Accordion/index.d.ts +1 -1
- package/dist/types/components/Accordion/styles.d.ts +2 -2
- package/dist/types/components/Accordion/theme.d.ts +1 -1
- package/dist/types/components/Alert/index.d.ts +2 -2
- package/dist/types/components/Alert/styles.d.ts +9 -9
- package/dist/types/components/Alert/theme.d.ts +4 -4
- package/dist/types/components/Avatar/index.d.ts +2 -3
- package/dist/types/components/Avatar/styles.d.ts +8 -8
- package/dist/types/components/Avatar/theme.d.ts +3 -3
- package/dist/types/components/Avatar/utils.d.ts +1 -1
- package/dist/types/components/Badge/index.d.ts +2 -2
- package/dist/types/components/Badge/styles.d.ts +5 -5
- package/dist/types/components/Badge/theme.d.ts +1 -1
- package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
- package/dist/types/components/Breadcrumb/index.d.ts +2 -2
- package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
- package/dist/types/components/Button/index.d.ts +4 -5
- package/dist/types/components/Button/styles.d.ts +1 -1
- package/dist/types/components/Button/theme.d.ts +7 -7
- package/dist/types/components/ButtonGroup/index.d.ts +3 -3
- package/dist/types/components/Card/Cover.styles.d.ts +4 -4
- package/dist/types/components/Card/index.d.ts +2 -3
- package/dist/types/components/Card/theme.d.ts +1 -1
- package/dist/types/components/Checkbox/index.d.ts +2 -2
- package/dist/types/components/Checkbox/styles.d.ts +1 -1
- package/dist/types/components/Checkbox/theme.d.ts +1 -1
- package/dist/types/components/ClearButton/index.d.ts +5 -6
- package/dist/types/components/ClearButton/styles.d.ts +4 -4
- package/dist/types/components/CloseButton/styles.d.ts +4 -4
- package/dist/types/components/DatePicker/index.d.ts +3 -3
- package/dist/types/components/DateTimePicker/index.d.ts +2 -2
- package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
- package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
- package/dist/types/components/DateTimePickerCommon/utils.d.ts +2 -2
- package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
- package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
- package/dist/types/components/Drawer/index.d.ts +12 -12
- package/dist/types/components/Drawer/styles.d.ts +5 -5
- package/dist/types/components/Drawer/theme.d.ts +2 -2
- package/dist/types/components/DropdownMenu/index.d.ts +4 -4
- package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
- package/dist/types/components/Field/index.d.ts +8 -8
- package/dist/types/components/Field/styles.d.ts +1 -1
- package/dist/types/components/Field/utils.d.ts +1 -1
- package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
- package/dist/types/components/FileDrop/Message.d.ts +1 -1
- package/dist/types/components/FileDrop/index.d.ts +20 -20
- package/dist/types/components/FileDrop/theme.d.ts +1 -1
- package/dist/types/components/FileUpload/index.d.ts +13 -13
- package/dist/types/components/Files/index.d.ts +5 -5
- package/dist/types/components/Files/types.d.ts +1 -1
- package/dist/types/components/Hint/index.d.ts +1 -2
- package/dist/types/components/Hint/theme.d.ts +1 -1
- package/dist/types/components/Icon/index.d.ts +3 -3
- package/dist/types/components/Icon/styles.d.ts +3 -3
- package/dist/types/components/Icon/theme.d.ts +3 -3
- package/dist/types/components/Icons/Sun/content.json.d.ts +2 -1
- package/dist/types/components/Icons/index.d.ts +2 -2
- package/dist/types/components/IconsFont/index.d.ts +2 -3
- package/dist/types/components/IconsFont/styles.d.ts +1 -1
- package/dist/types/components/InputText/index.d.ts +1 -1
- package/dist/types/components/InputText/styles.d.ts +1 -1
- package/dist/types/components/Label/index.d.ts +2 -3
- package/dist/types/components/Label/theme.d.ts +1 -1
- package/dist/types/components/Link/index.d.ts +5 -5
- package/dist/types/components/Link/styles.d.ts +4 -4
- package/dist/types/components/Link/theme.d.ts +1 -1
- package/dist/types/components/Loader/index.d.ts +1 -1
- package/dist/types/components/Loader/styles.d.ts +4 -4
- package/dist/types/components/Loader/theme.d.ts +4 -4
- package/dist/types/components/Logo/Solutions.d.ts +1 -2
- package/dist/types/components/Logo/Symbol.d.ts +1 -2
- package/dist/types/components/Logo/Wui.d.ts +1 -2
- package/dist/types/components/Logo/index.d.ts +5 -5
- package/dist/types/components/Modal/Assets/Backdrop.d.ts +5 -6
- package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
- package/dist/types/components/Modal/Assets/index.d.ts +9 -9
- package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
- package/dist/types/components/Modal/Close.d.ts +3 -4
- package/dist/types/components/Modal/Content.d.ts +3 -5
- package/dist/types/components/Modal/Footer.d.ts +1 -1
- package/dist/types/components/Modal/Header.d.ts +2 -2
- package/dist/types/components/Modal/index.d.ts +17 -17
- package/dist/types/components/Modal/styles.d.ts +7 -7
- package/dist/types/components/Modal/theme.d.ts +2 -2
- package/dist/types/components/Pagination/index.d.ts +2 -2
- package/dist/types/components/Pagination/theme.d.ts +1 -1
- package/dist/types/components/Pagination/utils.d.ts +1 -1
- package/dist/types/components/Picker/index.d.ts +1 -1
- package/dist/types/components/Picker/styles.d.ts +1 -1
- package/dist/types/components/Popover/Arrow.d.ts +1 -2
- package/dist/types/components/Popover/Content.d.ts +2 -3
- package/dist/types/components/Popover/Popover.d.ts +4 -5
- package/dist/types/components/Popover/PopoverHover.d.ts +3 -4
- package/dist/types/components/Popover/Trigger.d.ts +1 -1
- package/dist/types/components/Popover/styles.d.ts +4 -4
- package/dist/types/components/Popover/theme.d.ts +1 -1
- package/dist/types/components/Popover/usePopover.d.ts +6 -6
- package/dist/types/components/Radio/index.d.ts +3 -3
- package/dist/types/components/Radio/styles.d.ts +5 -5
- package/dist/types/components/Radio/theme.d.ts +1 -1
- package/dist/types/components/RadioGroup/index.d.ts +2 -2
- package/dist/types/components/RadioTab/index.d.ts +3 -3
- package/dist/types/components/RadioTab/styles.d.ts +3 -9
- package/dist/types/components/RadioTab/theme.d.ts +1 -1
- package/dist/types/components/Search/index.d.ts +5 -5
- package/dist/types/components/Select/index.d.ts +11 -11
- package/dist/types/components/Select/styles.d.ts +6 -6
- package/dist/types/components/Select/utils.d.ts +11 -7
- package/dist/types/components/Shape/index.d.ts +1 -1
- package/dist/types/components/Shape/styles.d.ts +3 -3
- package/dist/types/components/Slider/Range.d.ts +3 -3
- package/dist/types/components/Slider/index.d.ts +2 -2
- package/dist/types/components/Slider/styles.d.ts +16 -16
- package/dist/types/components/Slider/theme.d.ts +1 -1
- package/dist/types/components/Stack/index.d.ts +1 -1
- package/dist/types/components/Swiper/index.d.ts +17 -18
- package/dist/types/components/Swiper/styles.d.ts +56 -56
- package/dist/types/components/Swiper/theme.d.ts +1 -1
- package/dist/types/components/System/index.d.ts +14 -14
- package/dist/types/components/Table/index.d.ts +6 -7
- package/dist/types/components/Table/styles.d.ts +1 -1
- package/dist/types/components/Table/theme.d.ts +1 -1
- package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
- package/dist/types/components/Tabs/TabList.d.ts +4 -4
- package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
- package/dist/types/components/Tabs/styles.d.ts +2 -2
- package/dist/types/components/Tabs/theme.d.ts +2 -2
- package/dist/types/components/Tag/index.d.ts +2 -3
- package/dist/types/components/Tag/styles.d.ts +1 -1
- package/dist/types/components/Tag/theme.d.ts +3 -3
- package/dist/types/components/Text/index.d.ts +2 -2
- package/dist/types/components/Textarea/index.d.ts +1 -1
- package/dist/types/components/Textarea/theme.d.ts +1 -1
- package/dist/types/components/TimePicker/index.d.ts +2 -2
- package/dist/types/components/Toast/Growl.d.ts +1 -1
- package/dist/types/components/Toast/Snackbar.d.ts +1 -1
- package/dist/types/components/Toast/ToastWrapper.d.ts +5 -5
- package/dist/types/components/Toast/index.d.ts +6 -6
- package/dist/types/components/Toast/styles.d.ts +16 -16
- package/dist/types/components/Toast/theme.d.ts +2 -2
- package/dist/types/components/Toast/utils.d.ts +13 -13
- package/dist/types/components/Toggle/index.d.ts +3 -3
- package/dist/types/components/Toggle/styles.d.ts +5 -4
- package/dist/types/components/Toggle/theme.d.ts +6 -6
- package/dist/types/components/Tooltip/index.d.ts +2 -2
- package/dist/types/components/Tooltip/styles.d.ts +1 -1
- package/dist/types/components/Tooltip/theme.d.ts +1 -1
- package/dist/types/components/VariantIcon/index.d.ts +1 -1
- package/dist/types/components/VariantIcon/styles.d.ts +1 -1
- package/dist/types/components/VariantIcon/theme.d.ts +3 -3
- package/dist/types/components/WuiProvider/font.d.ts +3 -5
- package/dist/types/components/WuiProvider/index.d.ts +1 -1
- package/dist/types/theme/colors.d.ts +3 -11
- package/dist/types/theme/dark.d.ts +1 -1
- package/dist/types/theme/defaultFields.d.ts +10 -10
- package/dist/types/theme/fonts.d.ts +5 -5
- package/dist/types/theme/index.d.ts +31 -31
- package/dist/types/theme/screens.d.ts +1 -1
- package/dist/types/theme/space.d.ts +1 -1
- package/dist/types/theme/typography.d.ts +1 -1
- package/dist/types/utils/field-styles.d.ts +6 -6
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/ts-utils.d.ts +1 -1
- package/dist/types/utils/use-copy-text.d.ts +1 -1
- package/dist/types/utils/use-create-portal.d.ts +1 -1
- package/dist/types/utils/use-viewport.d.ts +2 -2
- package/dist/types/utils/wrap-children.d.ts +1 -1
- package/dist/{use-fork-ref-CUZErtAC.mjs → use-fork-ref-DvaCTfQ_.mjs} +4 -3
- package/dist/use-viewport-CWpjoHXy.mjs +16 -0
- package/dist/utils.mjs +96 -85
- package/dist/wrap-children-DBSD-X5-.mjs +9 -0
- package/package.json +9 -36
- package/dist/AXB53BZF-CGoc4K3d.mjs +0 -25
- package/dist/ITI7HKP4-BONrZ9Pq.mjs +0 -473
- package/dist/KUU7WJ55-3sP-w1F1.mjs +0 -61
- package/dist/LVA2YJMS-qFC9J-lt.mjs +0 -1479
- package/dist/MTZPJQMC-C0Xe_WK4.mjs +0 -13
- package/dist/NLEBE274-C94QU78N.mjs +0 -84
- package/dist/P2CTZE2T-YPes1GXe.mjs +0 -297
- package/dist/P4IRICAX-DzXqUYe-.mjs +0 -37
- package/dist/QYJ6MIDR-BLLqyXdd.mjs +0 -97
- package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +0 -20
- package/dist/X5NMLKT6-uFSu0Lii.mjs +0 -25
- package/dist/YV4JVR4I-BGfUf3Nu.mjs +0 -341
- package/dist/downshift.esm-CEHW4VDy.mjs +0 -1085
- package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
- package/dist/index-BDeIsk2X.mjs +0 -184
- package/dist/index-BRDOakbf.mjs +0 -11
- package/dist/index-BpRjq7lj.mjs +0 -11
- package/dist/index-BrfXjmHY.mjs +0 -36
- package/dist/index-CExLVjET.mjs +0 -26
- package/dist/index-DEJJvyGk.mjs +0 -66
- package/dist/index-u1oHKa7X.mjs +0 -16
- package/dist/radio-group-CGC6DTFJ.mjs +0 -51
- package/dist/throttle-BDBzFeFj.mjs +0 -13
- package/dist/use-viewport-m3glsbna.mjs +0 -16
- package/dist/wrap-children-aq69jtFP.mjs +0 -12
|
@@ -0,0 +1,873 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { isValidElement as Vt, useMemo as B, useState as A, useLayoutEffect as Lt, useEffect as E, useRef as N, useCallback as mt, useReducer as jt, createContext as Kt, useContext as Bt } from "react";
|
|
4
|
+
import { j as P } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
5
|
+
var kt = Object.defineProperty, $t = Object.defineProperties, Wt = Object.getOwnPropertyDescriptors, D = Object.getOwnPropertySymbols, gt = Object.prototype.hasOwnProperty, yt = Object.prototype.propertyIsEnumerable, ut = (t, e, r) => e in t ? kt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, l = (t, e) => {
|
|
6
|
+
for (var r in e || (e = {}))
|
|
7
|
+
gt.call(e, r) && ut(t, r, e[r]);
|
|
8
|
+
if (D)
|
|
9
|
+
for (var r of D(e))
|
|
10
|
+
yt.call(e, r) && ut(t, r, e[r]);
|
|
11
|
+
return t;
|
|
12
|
+
}, w = (t, e) => $t(t, Wt(e)), Et = (t, e) => {
|
|
13
|
+
var r = {};
|
|
14
|
+
for (var n in t)
|
|
15
|
+
gt.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
16
|
+
if (t != null && D)
|
|
17
|
+
for (var n of D(t))
|
|
18
|
+
e.indexOf(n) < 0 && yt.call(t, n) && (r[n] = t[n]);
|
|
19
|
+
return r;
|
|
20
|
+
}, qt = Object.defineProperty, Ut = Object.defineProperties, Xt = Object.getOwnPropertyDescriptors, R = Object.getOwnPropertySymbols, wt = Object.prototype.hasOwnProperty, ht = Object.prototype.propertyIsEnumerable, st = (t, e, r) => e in t ? qt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, k = (t, e) => {
|
|
21
|
+
for (var r in e || (e = {}))
|
|
22
|
+
wt.call(e, r) && st(t, r, e[r]);
|
|
23
|
+
if (R)
|
|
24
|
+
for (var r of R(e))
|
|
25
|
+
ht.call(e, r) && st(t, r, e[r]);
|
|
26
|
+
return t;
|
|
27
|
+
}, Ht = (t, e) => Ut(t, Xt(e)), Ke = (t, e) => {
|
|
28
|
+
var r = {};
|
|
29
|
+
for (var n in t)
|
|
30
|
+
wt.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
31
|
+
if (t != null && R)
|
|
32
|
+
for (var n of R(t))
|
|
33
|
+
e.indexOf(n) < 0 && ht.call(t, n) && (r[n] = t[n]);
|
|
34
|
+
return r;
|
|
35
|
+
};
|
|
36
|
+
function Be(...t) {
|
|
37
|
+
}
|
|
38
|
+
function ke(t, e) {
|
|
39
|
+
if (Yt(t)) {
|
|
40
|
+
const r = Gt(e) ? e() : e;
|
|
41
|
+
return t(r);
|
|
42
|
+
}
|
|
43
|
+
return t;
|
|
44
|
+
}
|
|
45
|
+
function Yt(t) {
|
|
46
|
+
return typeof t == "function";
|
|
47
|
+
}
|
|
48
|
+
function Gt(t) {
|
|
49
|
+
return typeof t == "function";
|
|
50
|
+
}
|
|
51
|
+
function $(t, e) {
|
|
52
|
+
return typeof Object.hasOwn == "function" ? Object.hasOwn(t, e) : Object.prototype.hasOwnProperty.call(t, e);
|
|
53
|
+
}
|
|
54
|
+
function $e(...t) {
|
|
55
|
+
return (...e) => {
|
|
56
|
+
for (const r of t)
|
|
57
|
+
typeof r == "function" && r(...e);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function We(t) {
|
|
61
|
+
return t.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
62
|
+
}
|
|
63
|
+
function qe(t, e) {
|
|
64
|
+
const r = k({}, t);
|
|
65
|
+
for (const n of e)
|
|
66
|
+
$(r, n) && delete r[n];
|
|
67
|
+
return r;
|
|
68
|
+
}
|
|
69
|
+
function Ue(t, e) {
|
|
70
|
+
const r = {};
|
|
71
|
+
for (const n of e)
|
|
72
|
+
$(t, n) && (r[n] = t[n]);
|
|
73
|
+
return r;
|
|
74
|
+
}
|
|
75
|
+
function Xe(t) {
|
|
76
|
+
return t;
|
|
77
|
+
}
|
|
78
|
+
function He(t, e) {
|
|
79
|
+
if (!t)
|
|
80
|
+
throw typeof e != "string" ? new Error("Invariant failed") : new Error(e);
|
|
81
|
+
}
|
|
82
|
+
function Ye(t) {
|
|
83
|
+
return Object.keys(t);
|
|
84
|
+
}
|
|
85
|
+
function Ge(t, ...e) {
|
|
86
|
+
const r = typeof t == "function" ? t(...e) : t;
|
|
87
|
+
return r == null ? !1 : !r;
|
|
88
|
+
}
|
|
89
|
+
function zt(t) {
|
|
90
|
+
return t.disabled || t["aria-disabled"] === !0 || t["aria-disabled"] === "true";
|
|
91
|
+
}
|
|
92
|
+
function Jt(t) {
|
|
93
|
+
const e = {};
|
|
94
|
+
for (const r in t)
|
|
95
|
+
t[r] !== void 0 && (e[r] = t[r]);
|
|
96
|
+
return e;
|
|
97
|
+
}
|
|
98
|
+
function ze(...t) {
|
|
99
|
+
for (const e of t)
|
|
100
|
+
if (e !== void 0) return e;
|
|
101
|
+
}
|
|
102
|
+
function Qt(t, e) {
|
|
103
|
+
typeof t == "function" ? t(e) : t && (t.current = e);
|
|
104
|
+
}
|
|
105
|
+
function Zt(t) {
|
|
106
|
+
return !t || !Vt(t) ? !1 : "ref" in t.props || "ref" in t;
|
|
107
|
+
}
|
|
108
|
+
function te(t) {
|
|
109
|
+
return Zt(t) ? l({}, t.props).ref || t.ref : null;
|
|
110
|
+
}
|
|
111
|
+
function ee(t, e) {
|
|
112
|
+
const r = l({}, t);
|
|
113
|
+
for (const n in e) {
|
|
114
|
+
if (!$(e, n)) continue;
|
|
115
|
+
if (n === "className") {
|
|
116
|
+
const u = "className";
|
|
117
|
+
r[u] = t[u] ? `${t[u]} ${e[u]}` : e[u];
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
if (n === "style") {
|
|
121
|
+
const u = "style";
|
|
122
|
+
r[u] = t[u] ? l(l({}, t[u]), e[u]) : e[u];
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
const o = e[n];
|
|
126
|
+
if (typeof o == "function" && n.startsWith("on")) {
|
|
127
|
+
const u = t[n];
|
|
128
|
+
if (typeof u == "function") {
|
|
129
|
+
r[n] = (...a) => {
|
|
130
|
+
o(...a), u(...a);
|
|
131
|
+
};
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
r[n] = o;
|
|
136
|
+
}
|
|
137
|
+
return r;
|
|
138
|
+
}
|
|
139
|
+
var F = re();
|
|
140
|
+
function re() {
|
|
141
|
+
var t;
|
|
142
|
+
return typeof window < "u" && !!((t = window.document) != null && t.createElement);
|
|
143
|
+
}
|
|
144
|
+
function O(t) {
|
|
145
|
+
return t ? "self" in t ? t.document : t.ownerDocument || document : document;
|
|
146
|
+
}
|
|
147
|
+
function Je(t) {
|
|
148
|
+
return t ? "self" in t ? t.self : O(t).defaultView || window : self;
|
|
149
|
+
}
|
|
150
|
+
function T(t, e = !1) {
|
|
151
|
+
const { activeElement: r } = O(t);
|
|
152
|
+
if (!(r != null && r.nodeName))
|
|
153
|
+
return null;
|
|
154
|
+
if (W(r) && r.contentDocument)
|
|
155
|
+
return T(
|
|
156
|
+
r.contentDocument.body,
|
|
157
|
+
e
|
|
158
|
+
);
|
|
159
|
+
if (e) {
|
|
160
|
+
const n = r.getAttribute("aria-activedescendant");
|
|
161
|
+
if (n) {
|
|
162
|
+
const o = O(r).getElementById(n);
|
|
163
|
+
if (o)
|
|
164
|
+
return o;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return r;
|
|
168
|
+
}
|
|
169
|
+
function _(t, e) {
|
|
170
|
+
return t === e || t.contains(e);
|
|
171
|
+
}
|
|
172
|
+
function W(t) {
|
|
173
|
+
return t.tagName === "IFRAME";
|
|
174
|
+
}
|
|
175
|
+
function ne(t) {
|
|
176
|
+
const e = t.tagName.toLowerCase();
|
|
177
|
+
return e === "button" ? !0 : e === "input" && t.type ? oe.indexOf(t.type) !== -1 : !1;
|
|
178
|
+
}
|
|
179
|
+
var oe = [
|
|
180
|
+
"button",
|
|
181
|
+
"color",
|
|
182
|
+
"file",
|
|
183
|
+
"image",
|
|
184
|
+
"reset",
|
|
185
|
+
"submit"
|
|
186
|
+
];
|
|
187
|
+
function ue(t) {
|
|
188
|
+
if (typeof t.checkVisibility == "function")
|
|
189
|
+
return t.checkVisibility();
|
|
190
|
+
const e = t;
|
|
191
|
+
return e.offsetWidth > 0 || e.offsetHeight > 0 || t.getClientRects().length > 0;
|
|
192
|
+
}
|
|
193
|
+
function q(t) {
|
|
194
|
+
try {
|
|
195
|
+
const e = t instanceof HTMLInputElement && t.selectionStart !== null, r = t.tagName === "TEXTAREA";
|
|
196
|
+
return e || r || !1;
|
|
197
|
+
} catch {
|
|
198
|
+
return !1;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function Qe(t) {
|
|
202
|
+
return t.isContentEditable || q(t);
|
|
203
|
+
}
|
|
204
|
+
function Ze(t) {
|
|
205
|
+
if (q(t))
|
|
206
|
+
return t.value;
|
|
207
|
+
if (t.isContentEditable) {
|
|
208
|
+
const e = O(t).createRange();
|
|
209
|
+
return e.selectNodeContents(t), e.toString();
|
|
210
|
+
}
|
|
211
|
+
return "";
|
|
212
|
+
}
|
|
213
|
+
function tr(t) {
|
|
214
|
+
let e = 0, r = 0;
|
|
215
|
+
if (q(t))
|
|
216
|
+
e = t.selectionStart || 0, r = t.selectionEnd || 0;
|
|
217
|
+
else if (t.isContentEditable) {
|
|
218
|
+
const n = O(t).getSelection();
|
|
219
|
+
if (n != null && n.rangeCount && n.anchorNode && _(t, n.anchorNode) && n.focusNode && _(t, n.focusNode)) {
|
|
220
|
+
const o = n.getRangeAt(0), u = o.cloneRange();
|
|
221
|
+
u.selectNodeContents(t), u.setEnd(o.startContainer, o.startOffset), e = u.toString().length, u.setEnd(o.endContainer, o.endOffset), r = u.toString().length;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return { start: e, end: r };
|
|
225
|
+
}
|
|
226
|
+
function se(t, e) {
|
|
227
|
+
const r = ["dialog", "menu", "listbox", "tree", "grid"], n = t == null ? void 0 : t.getAttribute("role");
|
|
228
|
+
return n && r.indexOf(n) !== -1 ? n : e;
|
|
229
|
+
}
|
|
230
|
+
function er(t, e) {
|
|
231
|
+
var r;
|
|
232
|
+
const n = {
|
|
233
|
+
menu: "menuitem",
|
|
234
|
+
listbox: "option",
|
|
235
|
+
tree: "treeitem"
|
|
236
|
+
}, o = se(t);
|
|
237
|
+
return o && (r = n[o]) != null ? r : e;
|
|
238
|
+
}
|
|
239
|
+
function ie(t) {
|
|
240
|
+
if (!t) return null;
|
|
241
|
+
const e = (r) => r === "auto" || r === "scroll";
|
|
242
|
+
if (t.clientHeight && t.scrollHeight > t.clientHeight) {
|
|
243
|
+
const { overflowY: r } = getComputedStyle(t);
|
|
244
|
+
if (e(r)) return t;
|
|
245
|
+
} else if (t.clientWidth && t.scrollWidth > t.clientWidth) {
|
|
246
|
+
const { overflowX: r } = getComputedStyle(t);
|
|
247
|
+
if (e(r)) return t;
|
|
248
|
+
}
|
|
249
|
+
return ie(t.parentElement) || document.scrollingElement || document.body;
|
|
250
|
+
}
|
|
251
|
+
function rr(t, e) {
|
|
252
|
+
const r = t.map((o, u) => [u, o]);
|
|
253
|
+
let n = !1;
|
|
254
|
+
return r.sort(([o, u], [a, i]) => {
|
|
255
|
+
const p = e(u), c = e(i);
|
|
256
|
+
return p === c || !p || !c ? 0 : ae(p, c) ? (o > a && (n = !0), -1) : (o < a && (n = !0), 1);
|
|
257
|
+
}), n ? r.map(([o, u]) => u) : t;
|
|
258
|
+
}
|
|
259
|
+
function ae(t, e) {
|
|
260
|
+
return !!(e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_PRECEDING);
|
|
261
|
+
}
|
|
262
|
+
function ce() {
|
|
263
|
+
return F && !!navigator.maxTouchPoints;
|
|
264
|
+
}
|
|
265
|
+
function xt() {
|
|
266
|
+
return F ? /mac|iphone|ipad|ipod/i.test(navigator.platform) : !1;
|
|
267
|
+
}
|
|
268
|
+
function fe() {
|
|
269
|
+
return F && xt() && /apple/i.test(navigator.vendor);
|
|
270
|
+
}
|
|
271
|
+
function nr() {
|
|
272
|
+
return F && /firefox\//i.test(navigator.userAgent);
|
|
273
|
+
}
|
|
274
|
+
function or() {
|
|
275
|
+
return F && navigator.platform.startsWith("Mac") && !ce();
|
|
276
|
+
}
|
|
277
|
+
function le(t) {
|
|
278
|
+
return !!(t.currentTarget && !_(t.currentTarget, t.target));
|
|
279
|
+
}
|
|
280
|
+
function it(t) {
|
|
281
|
+
return t.target === t.currentTarget;
|
|
282
|
+
}
|
|
283
|
+
function ur(t) {
|
|
284
|
+
const e = t.currentTarget;
|
|
285
|
+
if (!e) return !1;
|
|
286
|
+
const r = xt();
|
|
287
|
+
if (r && !t.metaKey || !r && !t.ctrlKey) return !1;
|
|
288
|
+
const n = e.tagName.toLowerCase();
|
|
289
|
+
return n === "a" || n === "button" && e.type === "submit" || n === "input" && e.type === "submit";
|
|
290
|
+
}
|
|
291
|
+
function sr(t) {
|
|
292
|
+
const e = t.currentTarget;
|
|
293
|
+
if (!e) return !1;
|
|
294
|
+
const r = e.tagName.toLowerCase();
|
|
295
|
+
return t.altKey ? r === "a" || r === "button" && e.type === "submit" || r === "input" && e.type === "submit" : !1;
|
|
296
|
+
}
|
|
297
|
+
function ir(t, e, r) {
|
|
298
|
+
const n = new Event(e, r);
|
|
299
|
+
return t.dispatchEvent(n);
|
|
300
|
+
}
|
|
301
|
+
function ar(t, e) {
|
|
302
|
+
const r = new FocusEvent("blur", e), n = t.dispatchEvent(r), o = Ht(k({}, e), { bubbles: !0 });
|
|
303
|
+
return t.dispatchEvent(new FocusEvent("focusout", o)), n;
|
|
304
|
+
}
|
|
305
|
+
function cr(t, e, r) {
|
|
306
|
+
const n = new KeyboardEvent(e, r);
|
|
307
|
+
return t.dispatchEvent(n);
|
|
308
|
+
}
|
|
309
|
+
function fr(t, e) {
|
|
310
|
+
const r = new MouseEvent("click", e);
|
|
311
|
+
return t.dispatchEvent(r);
|
|
312
|
+
}
|
|
313
|
+
function de(t, e) {
|
|
314
|
+
const r = e || t.currentTarget, n = t.relatedTarget;
|
|
315
|
+
return !n || !_(r, n);
|
|
316
|
+
}
|
|
317
|
+
function j(t, e, r, n) {
|
|
318
|
+
const u = ((i) => {
|
|
319
|
+
const p = requestAnimationFrame(i);
|
|
320
|
+
return () => cancelAnimationFrame(p);
|
|
321
|
+
})(() => {
|
|
322
|
+
t.removeEventListener(e, a, !0), r();
|
|
323
|
+
}), a = () => {
|
|
324
|
+
u(), r();
|
|
325
|
+
};
|
|
326
|
+
return t.addEventListener(e, a, { once: !0, capture: !0 }), u;
|
|
327
|
+
}
|
|
328
|
+
function g(t, e, r, n = window) {
|
|
329
|
+
const o = [];
|
|
330
|
+
try {
|
|
331
|
+
n.document.addEventListener(t, e, r);
|
|
332
|
+
for (const a of Array.from(n.frames))
|
|
333
|
+
o.push(g(t, e, r, a));
|
|
334
|
+
} catch {
|
|
335
|
+
}
|
|
336
|
+
return () => {
|
|
337
|
+
try {
|
|
338
|
+
n.document.removeEventListener(t, e, r);
|
|
339
|
+
} catch {
|
|
340
|
+
}
|
|
341
|
+
for (const a of o)
|
|
342
|
+
a();
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
var U = l({}, m), at = U.useId;
|
|
346
|
+
U.useDeferredValue;
|
|
347
|
+
var ct = U.useInsertionEffect, M = F ? Lt : E;
|
|
348
|
+
function lr(t) {
|
|
349
|
+
const e = N(t);
|
|
350
|
+
return M(() => {
|
|
351
|
+
e.current = t;
|
|
352
|
+
}), e;
|
|
353
|
+
}
|
|
354
|
+
function y(t) {
|
|
355
|
+
const e = N(() => {
|
|
356
|
+
throw new Error("Cannot call an event handler while rendering.");
|
|
357
|
+
});
|
|
358
|
+
return ct ? ct(() => {
|
|
359
|
+
e.current = t;
|
|
360
|
+
}) : e.current = t, mt((...r) => {
|
|
361
|
+
var n;
|
|
362
|
+
return (n = e.current) == null ? void 0 : n.call(e, ...r);
|
|
363
|
+
}, []);
|
|
364
|
+
}
|
|
365
|
+
function dr(t) {
|
|
366
|
+
const [e, r] = A(null);
|
|
367
|
+
return M(() => {
|
|
368
|
+
if (e == null || !t) return;
|
|
369
|
+
let n = null;
|
|
370
|
+
return t((o) => (n = o, e)), () => {
|
|
371
|
+
t(n);
|
|
372
|
+
};
|
|
373
|
+
}, [e, t]), [e, r];
|
|
374
|
+
}
|
|
375
|
+
function X(...t) {
|
|
376
|
+
return B(() => {
|
|
377
|
+
if (t.some(Boolean))
|
|
378
|
+
return (e) => {
|
|
379
|
+
for (const r of t)
|
|
380
|
+
Qt(r, e);
|
|
381
|
+
};
|
|
382
|
+
}, t);
|
|
383
|
+
}
|
|
384
|
+
function pr(t) {
|
|
385
|
+
if (at) {
|
|
386
|
+
const n = at();
|
|
387
|
+
return t || n;
|
|
388
|
+
}
|
|
389
|
+
const [e, r] = A(t);
|
|
390
|
+
return M(() => {
|
|
391
|
+
if (t || e) return;
|
|
392
|
+
const n = Math.random().toString(36).slice(2, 8);
|
|
393
|
+
r(`id-${n}`);
|
|
394
|
+
}, [t, e]), t || e;
|
|
395
|
+
}
|
|
396
|
+
function pe(t, e) {
|
|
397
|
+
const r = (u) => {
|
|
398
|
+
if (typeof u == "string")
|
|
399
|
+
return u;
|
|
400
|
+
}, [n, o] = A(() => r(e));
|
|
401
|
+
return M(() => {
|
|
402
|
+
const u = t && "current" in t ? t.current : t;
|
|
403
|
+
o((u == null ? void 0 : u.tagName.toLowerCase()) || r(e));
|
|
404
|
+
}, [t, e]), n;
|
|
405
|
+
}
|
|
406
|
+
function br(t, e) {
|
|
407
|
+
const r = N(!1);
|
|
408
|
+
E(() => {
|
|
409
|
+
if (r.current)
|
|
410
|
+
return t();
|
|
411
|
+
r.current = !0;
|
|
412
|
+
}, e), E(
|
|
413
|
+
() => () => {
|
|
414
|
+
r.current = !1;
|
|
415
|
+
},
|
|
416
|
+
[]
|
|
417
|
+
);
|
|
418
|
+
}
|
|
419
|
+
function vr() {
|
|
420
|
+
return jt(() => [], []);
|
|
421
|
+
}
|
|
422
|
+
function mr(t) {
|
|
423
|
+
return y(
|
|
424
|
+
typeof t == "function" ? t : () => t
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
function gr(t, e, r = []) {
|
|
428
|
+
const n = mt(
|
|
429
|
+
(o) => (t.wrapElement && (o = t.wrapElement(o)), e(o)),
|
|
430
|
+
[...r, t.wrapElement]
|
|
431
|
+
);
|
|
432
|
+
return w(l({}, t), { wrapElement: n });
|
|
433
|
+
}
|
|
434
|
+
function yr(t = !1, e) {
|
|
435
|
+
const [r, n] = A(null);
|
|
436
|
+
return { portalRef: X(n, e), portalNode: r, domReady: !t || r };
|
|
437
|
+
}
|
|
438
|
+
function Er(t, e, r) {
|
|
439
|
+
const n = t.onLoadedMetadataCapture, o = B(() => Object.assign(() => {
|
|
440
|
+
}, w(l({}, n), { [e]: r })), [n, e, r]);
|
|
441
|
+
return [n == null ? void 0 : n[e], { onLoadedMetadataCapture: o }];
|
|
442
|
+
}
|
|
443
|
+
function wr() {
|
|
444
|
+
return E(() => {
|
|
445
|
+
g("mousemove", ve, !0), g("mousedown", I, !0), g("mouseup", I, !0), g("keydown", I, !0), g("scroll", I, !0);
|
|
446
|
+
}, []), y(() => H);
|
|
447
|
+
}
|
|
448
|
+
var H = !1, ft = 0, lt = 0;
|
|
449
|
+
function be(t) {
|
|
450
|
+
const e = t.movementX || t.screenX - ft, r = t.movementY || t.screenY - lt;
|
|
451
|
+
return ft = t.screenX, lt = t.screenY, e || r || process.env.NODE_ENV === "test";
|
|
452
|
+
}
|
|
453
|
+
function ve(t) {
|
|
454
|
+
be(t) && (H = !0);
|
|
455
|
+
}
|
|
456
|
+
function I() {
|
|
457
|
+
H = !1;
|
|
458
|
+
}
|
|
459
|
+
function me(t) {
|
|
460
|
+
const e = m.forwardRef((r, n) => t(w(l({}, r), { ref: n })));
|
|
461
|
+
return e.displayName = t.displayName || t.name, e;
|
|
462
|
+
}
|
|
463
|
+
function hr(t, e) {
|
|
464
|
+
return m.memo(t, e);
|
|
465
|
+
}
|
|
466
|
+
function ge(t, e) {
|
|
467
|
+
const r = e, { wrapElement: n, render: o } = r, u = Et(r, ["wrapElement", "render"]), a = X(e.ref, te(o));
|
|
468
|
+
let i;
|
|
469
|
+
if (m.isValidElement(o)) {
|
|
470
|
+
const p = w(l({}, o.props), { ref: a });
|
|
471
|
+
i = m.cloneElement(o, ee(u, p));
|
|
472
|
+
} else o ? i = o(u) : i = /* @__PURE__ */ P.jsx(t, l({}, u));
|
|
473
|
+
return n ? n(i) : i;
|
|
474
|
+
}
|
|
475
|
+
function ye(t) {
|
|
476
|
+
const e = (r = {}) => t(r);
|
|
477
|
+
return e.displayName = t.name, e;
|
|
478
|
+
}
|
|
479
|
+
function xr(t = [], e = []) {
|
|
480
|
+
const r = m.createContext(void 0), n = m.createContext(void 0), o = () => m.useContext(r), u = (c = !1) => {
|
|
481
|
+
const d = m.useContext(n), b = o();
|
|
482
|
+
return c ? d : d || b;
|
|
483
|
+
}, a = () => {
|
|
484
|
+
const c = m.useContext(n), d = o();
|
|
485
|
+
if (!(c && c === d))
|
|
486
|
+
return d;
|
|
487
|
+
}, i = (c) => t.reduceRight(
|
|
488
|
+
(d, b) => /* @__PURE__ */ P.jsx(b, w(l({}, c), { children: d })),
|
|
489
|
+
/* @__PURE__ */ P.jsx(r.Provider, l({}, c))
|
|
490
|
+
);
|
|
491
|
+
return {
|
|
492
|
+
context: r,
|
|
493
|
+
scopedContext: n,
|
|
494
|
+
useContext: o,
|
|
495
|
+
useScopedContext: u,
|
|
496
|
+
useProviderContext: a,
|
|
497
|
+
ContextProvider: i,
|
|
498
|
+
ScopedContextProvider: (c) => /* @__PURE__ */ P.jsx(i, w(l({}, c), { children: e.reduceRight(
|
|
499
|
+
(d, b) => /* @__PURE__ */ P.jsx(b, w(l({}, c), { children: d })),
|
|
500
|
+
/* @__PURE__ */ P.jsx(n.Provider, l({}, c))
|
|
501
|
+
) }))
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
var Ee = Kt(!0), V = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";
|
|
505
|
+
function we(t) {
|
|
506
|
+
return Number.parseInt(t.getAttribute("tabindex") || "0", 10) < 0;
|
|
507
|
+
}
|
|
508
|
+
function C(t) {
|
|
509
|
+
return !(!t.matches(V) || !ue(t) || t.closest("[inert]"));
|
|
510
|
+
}
|
|
511
|
+
function S(t) {
|
|
512
|
+
if (!C(t) || we(t)) return !1;
|
|
513
|
+
if (!("form" in t) || !t.form || t.checked || t.type !== "radio") return !0;
|
|
514
|
+
const e = t.form.elements.namedItem(t.name);
|
|
515
|
+
if (!e || !("length" in e)) return !0;
|
|
516
|
+
const r = T(t);
|
|
517
|
+
return !r || r === t || !("form" in r) || r.form !== t.form || r.name !== t.name;
|
|
518
|
+
}
|
|
519
|
+
function Y(t, e) {
|
|
520
|
+
const r = Array.from(
|
|
521
|
+
t.querySelectorAll(V)
|
|
522
|
+
);
|
|
523
|
+
e && r.unshift(t);
|
|
524
|
+
const n = r.filter(C);
|
|
525
|
+
return n.forEach((o, u) => {
|
|
526
|
+
if (W(o) && o.contentDocument) {
|
|
527
|
+
const a = o.contentDocument.body;
|
|
528
|
+
n.splice(u, 1, ...Y(a));
|
|
529
|
+
}
|
|
530
|
+
}), n;
|
|
531
|
+
}
|
|
532
|
+
function G(t, e, r) {
|
|
533
|
+
const n = Array.from(
|
|
534
|
+
t.querySelectorAll(V)
|
|
535
|
+
), o = n.filter(S);
|
|
536
|
+
return e && S(t) && o.unshift(t), o.forEach((u, a) => {
|
|
537
|
+
if (W(u) && u.contentDocument) {
|
|
538
|
+
const i = u.contentDocument.body, p = G(
|
|
539
|
+
i,
|
|
540
|
+
!1,
|
|
541
|
+
r
|
|
542
|
+
);
|
|
543
|
+
o.splice(a, 1, ...p);
|
|
544
|
+
}
|
|
545
|
+
}), !o.length && r ? n : o;
|
|
546
|
+
}
|
|
547
|
+
function Pr(t, e, r) {
|
|
548
|
+
const [n] = G(
|
|
549
|
+
t,
|
|
550
|
+
e,
|
|
551
|
+
r
|
|
552
|
+
);
|
|
553
|
+
return n || null;
|
|
554
|
+
}
|
|
555
|
+
function he(t, e, r, n) {
|
|
556
|
+
const o = T(t), u = Y(t, e), a = u.indexOf(o), i = u.slice(a + 1);
|
|
557
|
+
return i.find(S) || (r ? u.find(S) : null) || (n ? i[0] : null) || null;
|
|
558
|
+
}
|
|
559
|
+
function Cr(t, e) {
|
|
560
|
+
return he(
|
|
561
|
+
document.body,
|
|
562
|
+
!1,
|
|
563
|
+
t,
|
|
564
|
+
e
|
|
565
|
+
);
|
|
566
|
+
}
|
|
567
|
+
function xe(t, e, r, n) {
|
|
568
|
+
const o = T(t), u = Y(t, e).reverse(), a = u.indexOf(o);
|
|
569
|
+
return u.slice(a + 1).find(S) || null || null || null;
|
|
570
|
+
}
|
|
571
|
+
function Fr(t, e) {
|
|
572
|
+
return xe(
|
|
573
|
+
document.body,
|
|
574
|
+
!1
|
|
575
|
+
);
|
|
576
|
+
}
|
|
577
|
+
function Pe(t) {
|
|
578
|
+
for (; t && !C(t); )
|
|
579
|
+
t = t.closest(V);
|
|
580
|
+
return t || null;
|
|
581
|
+
}
|
|
582
|
+
function dt(t) {
|
|
583
|
+
const e = T(t);
|
|
584
|
+
if (!e) return !1;
|
|
585
|
+
if (e === t) return !0;
|
|
586
|
+
const r = e.getAttribute("aria-activedescendant");
|
|
587
|
+
return r ? r === t.id : !1;
|
|
588
|
+
}
|
|
589
|
+
function Ce(t) {
|
|
590
|
+
const e = T(t);
|
|
591
|
+
if (!e) return !1;
|
|
592
|
+
if (_(t, e)) return !0;
|
|
593
|
+
const r = e.getAttribute("aria-activedescendant");
|
|
594
|
+
return !r || !("id" in t) ? !1 : r === t.id ? !0 : !!t.querySelector(`#${CSS.escape(r)}`);
|
|
595
|
+
}
|
|
596
|
+
function Fe(t) {
|
|
597
|
+
!Ce(t) && C(t) && t.focus();
|
|
598
|
+
}
|
|
599
|
+
function Te(t) {
|
|
600
|
+
var e;
|
|
601
|
+
const r = (e = t.getAttribute("tabindex")) != null ? e : "";
|
|
602
|
+
t.setAttribute("data-tabindex", r), t.setAttribute("tabindex", "-1");
|
|
603
|
+
}
|
|
604
|
+
function Tr(t, e) {
|
|
605
|
+
const r = G(t, e);
|
|
606
|
+
for (const n of r)
|
|
607
|
+
Te(n);
|
|
608
|
+
}
|
|
609
|
+
function Or(t) {
|
|
610
|
+
const e = t.querySelectorAll("[data-tabindex]"), r = (n) => {
|
|
611
|
+
const o = n.getAttribute("data-tabindex");
|
|
612
|
+
n.removeAttribute("data-tabindex"), o ? n.setAttribute("tabindex", o) : n.removeAttribute("tabindex");
|
|
613
|
+
};
|
|
614
|
+
t.hasAttribute("data-tabindex") && r(t);
|
|
615
|
+
for (const n of e)
|
|
616
|
+
r(n);
|
|
617
|
+
}
|
|
618
|
+
function _r(t, e) {
|
|
619
|
+
"scrollIntoView" in t ? (t.focus({ preventScroll: !0 }), t.scrollIntoView(k({ block: "nearest", inline: "nearest" }, e))) : t.focus();
|
|
620
|
+
}
|
|
621
|
+
var Oe = "div", pt = fe(), _e = [
|
|
622
|
+
"text",
|
|
623
|
+
"search",
|
|
624
|
+
"url",
|
|
625
|
+
"tel",
|
|
626
|
+
"email",
|
|
627
|
+
"password",
|
|
628
|
+
"number",
|
|
629
|
+
"date",
|
|
630
|
+
"month",
|
|
631
|
+
"week",
|
|
632
|
+
"time",
|
|
633
|
+
"datetime",
|
|
634
|
+
"datetime-local"
|
|
635
|
+
], Pt = Symbol("safariFocusAncestor");
|
|
636
|
+
function Sr(t) {
|
|
637
|
+
return t ? !!t[Pt] : !1;
|
|
638
|
+
}
|
|
639
|
+
function bt(t, e) {
|
|
640
|
+
t && (t[Pt] = e);
|
|
641
|
+
}
|
|
642
|
+
function Se(t) {
|
|
643
|
+
const { tagName: e, readOnly: r, type: n } = t;
|
|
644
|
+
return e === "TEXTAREA" && !r || e === "SELECT" && !r ? !0 : e === "INPUT" && !r ? _e.includes(n) : !!(t.isContentEditable || t.getAttribute("role") === "combobox" && t.dataset.name);
|
|
645
|
+
}
|
|
646
|
+
function Ae(t) {
|
|
647
|
+
return "labels" in t ? t.labels : null;
|
|
648
|
+
}
|
|
649
|
+
function vt(t) {
|
|
650
|
+
return t.tagName.toLowerCase() === "input" && t.type ? t.type === "radio" || t.type === "checkbox" : !1;
|
|
651
|
+
}
|
|
652
|
+
function Ie(t) {
|
|
653
|
+
return t ? t === "button" || t === "summary" || t === "input" || t === "select" || t === "textarea" || t === "a" : !0;
|
|
654
|
+
}
|
|
655
|
+
function De(t) {
|
|
656
|
+
return t ? t === "button" || t === "input" || t === "select" || t === "textarea" : !0;
|
|
657
|
+
}
|
|
658
|
+
function Re(t, e, r, n, o) {
|
|
659
|
+
return t ? e ? r && !n ? -1 : void 0 : r ? o : o || 0 : o;
|
|
660
|
+
}
|
|
661
|
+
function K(t, e) {
|
|
662
|
+
return y((r) => {
|
|
663
|
+
t == null || t(r), !r.defaultPrevented && e && (r.stopPropagation(), r.preventDefault());
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
var z = !0;
|
|
667
|
+
function Ne(t) {
|
|
668
|
+
const e = t.target;
|
|
669
|
+
e && "hasAttribute" in e && (e.hasAttribute("data-focus-visible") || (z = !1));
|
|
670
|
+
}
|
|
671
|
+
function Me(t) {
|
|
672
|
+
t.metaKey || t.ctrlKey || t.altKey || (z = !0);
|
|
673
|
+
}
|
|
674
|
+
var Ve = ye(
|
|
675
|
+
function(e) {
|
|
676
|
+
var r = e, {
|
|
677
|
+
focusable: n = !0,
|
|
678
|
+
accessibleWhenDisabled: o,
|
|
679
|
+
autoFocus: u,
|
|
680
|
+
onFocusVisible: a
|
|
681
|
+
} = r, i = Et(r, [
|
|
682
|
+
"focusable",
|
|
683
|
+
"accessibleWhenDisabled",
|
|
684
|
+
"autoFocus",
|
|
685
|
+
"onFocusVisible"
|
|
686
|
+
]);
|
|
687
|
+
const p = N(null);
|
|
688
|
+
E(() => {
|
|
689
|
+
n && (g("mousedown", Ne, !0), g("keydown", Me, !0));
|
|
690
|
+
}, [n]), pt && E(() => {
|
|
691
|
+
if (!n) return;
|
|
692
|
+
const s = p.current;
|
|
693
|
+
if (!s || !vt(s)) return;
|
|
694
|
+
const f = Ae(s);
|
|
695
|
+
if (!f) return;
|
|
696
|
+
const v = () => queueMicrotask(() => s.focus());
|
|
697
|
+
for (const x of f)
|
|
698
|
+
x.addEventListener("mouseup", v);
|
|
699
|
+
return () => {
|
|
700
|
+
for (const x of f)
|
|
701
|
+
x.removeEventListener("mouseup", v);
|
|
702
|
+
};
|
|
703
|
+
}, [n]);
|
|
704
|
+
const c = n && zt(i), d = !!c && !o, [b, h] = A(!1);
|
|
705
|
+
E(() => {
|
|
706
|
+
n && d && b && h(!1);
|
|
707
|
+
}, [n, d, b]), E(() => {
|
|
708
|
+
if (!n || !b) return;
|
|
709
|
+
const s = p.current;
|
|
710
|
+
if (!s || typeof IntersectionObserver > "u") return;
|
|
711
|
+
const f = new IntersectionObserver(() => {
|
|
712
|
+
C(s) || h(!1);
|
|
713
|
+
});
|
|
714
|
+
return f.observe(s), () => f.disconnect();
|
|
715
|
+
}, [n, b]);
|
|
716
|
+
const Ct = K(
|
|
717
|
+
i.onKeyPressCapture,
|
|
718
|
+
c
|
|
719
|
+
), Ft = K(
|
|
720
|
+
i.onMouseDownCapture,
|
|
721
|
+
c
|
|
722
|
+
), Tt = K(i.onClickCapture, c), J = i.onMouseDown, Ot = y((s) => {
|
|
723
|
+
if (J == null || J(s), s.defaultPrevented || !n) return;
|
|
724
|
+
const f = s.currentTarget;
|
|
725
|
+
if (!pt || le(s) || !ne(f) && !vt(f)) return;
|
|
726
|
+
let v = !1;
|
|
727
|
+
const x = () => {
|
|
728
|
+
v = !0;
|
|
729
|
+
}, Mt = { capture: !0, once: !0 };
|
|
730
|
+
f.addEventListener("focusin", x, Mt);
|
|
731
|
+
const ot = Pe(f.parentElement);
|
|
732
|
+
bt(ot, !0), j(f, "mouseup", () => {
|
|
733
|
+
f.removeEventListener("focusin", x, !0), bt(ot, !1), !v && Fe(f);
|
|
734
|
+
});
|
|
735
|
+
}), Q = (s, f) => {
|
|
736
|
+
if (f && (s.currentTarget = f), !n) return;
|
|
737
|
+
const v = s.currentTarget;
|
|
738
|
+
v && dt(v) && (a == null || a(s), !s.defaultPrevented && (v.dataset.focusVisible = "true", h(!0)));
|
|
739
|
+
}, Z = i.onKeyDownCapture, _t = y((s) => {
|
|
740
|
+
if (Z == null || Z(s), s.defaultPrevented || !n || b || s.metaKey || s.altKey || s.ctrlKey || !it(s)) return;
|
|
741
|
+
const f = s.currentTarget;
|
|
742
|
+
j(f, "focusout", () => Q(s, f));
|
|
743
|
+
}), tt = i.onFocusCapture, St = y((s) => {
|
|
744
|
+
if (tt == null || tt(s), s.defaultPrevented || !n) return;
|
|
745
|
+
if (!it(s)) {
|
|
746
|
+
h(!1);
|
|
747
|
+
return;
|
|
748
|
+
}
|
|
749
|
+
const f = s.currentTarget, v = () => Q(s, f);
|
|
750
|
+
z || Se(s.target) ? j(s.target, "focusout", v) : h(!1);
|
|
751
|
+
}), et = i.onBlur, At = y((s) => {
|
|
752
|
+
et == null || et(s), n && de(s) && h(!1);
|
|
753
|
+
}), It = Bt(Ee), Dt = y((s) => {
|
|
754
|
+
n && u && s && It && queueMicrotask(() => {
|
|
755
|
+
dt(s) || C(s) && s.focus();
|
|
756
|
+
});
|
|
757
|
+
}), rt = pe(p), Rt = n && Ie(rt), nt = n && De(rt), L = i.style, Nt = B(() => d ? l({ pointerEvents: "none" }, L) : L, [d, L]);
|
|
758
|
+
return i = w(l({
|
|
759
|
+
"data-focus-visible": n && b || void 0,
|
|
760
|
+
"data-autofocus": u || void 0,
|
|
761
|
+
"aria-disabled": c || void 0
|
|
762
|
+
}, i), {
|
|
763
|
+
ref: X(p, Dt, i.ref),
|
|
764
|
+
style: Nt,
|
|
765
|
+
tabIndex: Re(
|
|
766
|
+
n,
|
|
767
|
+
d,
|
|
768
|
+
Rt,
|
|
769
|
+
nt,
|
|
770
|
+
i.tabIndex
|
|
771
|
+
),
|
|
772
|
+
disabled: nt && d ? !0 : void 0,
|
|
773
|
+
// TODO: Test Focusable contentEditable.
|
|
774
|
+
contentEditable: c ? void 0 : i.contentEditable,
|
|
775
|
+
onKeyPressCapture: Ct,
|
|
776
|
+
onClickCapture: Tt,
|
|
777
|
+
onMouseDownCapture: Ft,
|
|
778
|
+
onMouseDown: Ot,
|
|
779
|
+
onKeyDownCapture: _t,
|
|
780
|
+
onFocusCapture: St,
|
|
781
|
+
onBlur: At
|
|
782
|
+
}), Jt(i);
|
|
783
|
+
}
|
|
784
|
+
);
|
|
785
|
+
me(function(e) {
|
|
786
|
+
const r = Ve(e);
|
|
787
|
+
return ge(Oe, r);
|
|
788
|
+
});
|
|
789
|
+
export {
|
|
790
|
+
qe as $,
|
|
791
|
+
Ht as A,
|
|
792
|
+
ze as B,
|
|
793
|
+
k as C,
|
|
794
|
+
gr as D,
|
|
795
|
+
M as E,
|
|
796
|
+
Je as F,
|
|
797
|
+
br as G,
|
|
798
|
+
O as H,
|
|
799
|
+
Xe as I,
|
|
800
|
+
le as J,
|
|
801
|
+
Qe as K,
|
|
802
|
+
fe as L,
|
|
803
|
+
tr as M,
|
|
804
|
+
Ze as N,
|
|
805
|
+
ie as O,
|
|
806
|
+
$e as P,
|
|
807
|
+
rr as Q,
|
|
808
|
+
dr as R,
|
|
809
|
+
_r as S,
|
|
810
|
+
ar as T,
|
|
811
|
+
dt as U,
|
|
812
|
+
T as V,
|
|
813
|
+
cr as W,
|
|
814
|
+
Ge as X,
|
|
815
|
+
_ as Y,
|
|
816
|
+
$ as Z,
|
|
817
|
+
Et as _,
|
|
818
|
+
Er as a,
|
|
819
|
+
Ue as a0,
|
|
820
|
+
Ye as a1,
|
|
821
|
+
ke as a2,
|
|
822
|
+
Be as a3,
|
|
823
|
+
lr as a4,
|
|
824
|
+
yr as a5,
|
|
825
|
+
wr as a6,
|
|
826
|
+
g as a7,
|
|
827
|
+
Ce as a8,
|
|
828
|
+
G as a9,
|
|
829
|
+
We as aa,
|
|
830
|
+
ir as ab,
|
|
831
|
+
er as ac,
|
|
832
|
+
sr as ad,
|
|
833
|
+
ur as ae,
|
|
834
|
+
xt as af,
|
|
835
|
+
or as ag,
|
|
836
|
+
ue as ah,
|
|
837
|
+
Sr as ai,
|
|
838
|
+
Ee as aj,
|
|
839
|
+
Qt as ak,
|
|
840
|
+
de as al,
|
|
841
|
+
Cr as am,
|
|
842
|
+
Fr as an,
|
|
843
|
+
Or as ao,
|
|
844
|
+
Tr as ap,
|
|
845
|
+
Pr as aq,
|
|
846
|
+
C as ar,
|
|
847
|
+
Fe as as,
|
|
848
|
+
y as b,
|
|
849
|
+
ye as c,
|
|
850
|
+
w as d,
|
|
851
|
+
X as e,
|
|
852
|
+
me as f,
|
|
853
|
+
l as g,
|
|
854
|
+
ge as h,
|
|
855
|
+
He as i,
|
|
856
|
+
pe as j,
|
|
857
|
+
ne as k,
|
|
858
|
+
zt as l,
|
|
859
|
+
Ve as m,
|
|
860
|
+
fr as n,
|
|
861
|
+
it as o,
|
|
862
|
+
q as p,
|
|
863
|
+
nr as q,
|
|
864
|
+
j as r,
|
|
865
|
+
se as s,
|
|
866
|
+
xr as t,
|
|
867
|
+
mr as u,
|
|
868
|
+
hr as v,
|
|
869
|
+
pr as w,
|
|
870
|
+
vr as x,
|
|
871
|
+
Jt as y,
|
|
872
|
+
Ke as z
|
|
873
|
+
};
|