@pfct/purple 1.7.0-next.3 → 1.7.0-next.5
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/chunks/index.9fap07Gq.js +60 -0
- package/dist/chunks/index.B-Bfcjo7.js +1 -0
- package/dist/chunks/index.BfjI33ZB.js +41 -0
- package/dist/chunks/{index.Dud5PpT2.js → index.BmifSqQX.js} +26 -26
- package/dist/chunks/{index.BRcoZnsL.js → index.BngGCpBd.js} +1 -1
- package/dist/chunks/{index.B04X8ryw.js → index.BtGja8CI.js} +1 -1
- package/dist/chunks/{index.BKkcGVEJ.js → index.C1WOc90r.js} +81 -81
- package/dist/chunks/index.C3oZfEx6.js +283 -0
- package/dist/chunks/{index.CtswiKeA.js → index.CDVf4iB0.js} +1 -1
- package/dist/chunks/{index.DrALxeqy.js → index.CIUK7hO2.js} +23 -23
- package/dist/chunks/{index.DIsmU7qE.js → index.CVogEmtp.js} +1 -1
- package/dist/chunks/index.CqHp_goI.js +1 -0
- package/dist/chunks/{index.B3rAhBCw.js → index.CskkVMdK.js} +1 -1
- package/dist/chunks/{index.93u2Cu_l.js → index.DIaW0faE.js} +1 -1
- package/dist/chunks/{index.-8MfVPUU.js → index.DVHp5IZe.js} +47 -47
- package/dist/chunks/index.QJBZMz2E.js +5 -0
- package/dist/chunks/index.eYfYnSCV.js +1 -0
- package/dist/chunks/index.ps14_l3u.js +1 -0
- package/dist/components/Accordion/index.cjs.js +1 -1
- package/dist/components/Accordion/index.es.js +176 -176
- package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
- package/dist/components/Badge/BaseBadge/index.es.js +10 -10
- package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
- package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
- package/dist/components/Badge/IconBadge/index.cjs.js +1 -1
- package/dist/components/Badge/IconBadge/index.es.js +6 -6
- package/dist/components/Badge/TextBadge/index.cjs.js +1 -1
- package/dist/components/Badge/TextBadge/index.es.js +7 -7
- package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +32 -32
- package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/NavBottomSheet/index.es.js +8 -8
- package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
- package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +15 -15
- package/dist/components/Button/BaseButton/index.cjs.js +1 -1
- package/dist/components/Button/BaseButton/index.es.js +4 -4
- package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/DoubleButton/index.es.js +6 -6
- package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatBaseButton/index.es.js +16 -16
- package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatDoubleButton/index.es.js +13 -13
- package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
- package/dist/components/Button/FloatSingleButton/index.es.js +8 -8
- package/dist/components/Button/SingleButton/index.cjs.js +1 -1
- package/dist/components/Button/SingleButton/index.es.js +3 -3
- package/dist/components/Button/TestButton/index.cjs.js +1 -1
- package/dist/components/Button/TestButton/index.es.js +2 -2
- package/dist/components/Card/index.cjs.js +1 -1
- package/dist/components/Card/index.es.js +7 -7
- package/dist/components/Chips/BasicChips/index.cjs.js +1 -1
- package/dist/components/Chips/BasicChips/index.es.js +8 -8
- package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
- package/dist/components/Chips/BasicChips/index.styled.es.js +1 -1
- package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
- package/dist/components/Chips/ChipItem/index.es.js +31 -34
- package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.es.js +14 -14
- package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
- package/dist/components/Chips/ChipsFrame/index.styled.es.js +1 -1
- package/dist/components/Comment/Group/index.cjs.js +1 -1
- package/dist/components/Comment/Group/index.es.js +3 -3
- package/dist/components/Comment/Item/index.cjs.js +1 -1
- package/dist/components/Comment/Item/index.es.js +6 -6
- package/dist/components/Control/CheckMark/CheckMark.cjs.js +1 -1
- package/dist/components/Control/CheckMark/CheckMark.es.js +3 -3
- package/dist/components/Control/CheckMark/index.cjs.js +1 -1
- package/dist/components/Control/CheckMark/index.es.js +7 -7
- package/dist/components/Control/RadioButton/index.cjs.js +1 -1
- package/dist/components/Control/RadioButton/index.es.js +11 -11
- package/dist/components/Control/Switch/index.cjs.js +1 -1
- package/dist/components/Control/Switch/index.es.js +71 -71
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +12 -12
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +12 -12
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +3 -3
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +14 -14
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +18 -18
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +13 -13
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +3 -3
- package/dist/components/DatePicker/BaseDatePicker/Month/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/Month/index.es.js +4 -4
- package/dist/components/DatePicker/BaseDatePicker/Week/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/Week/index.es.js +3 -3
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +16 -16
- package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/BaseDatePicker/index.es.js +31 -31
- package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +27 -27
- package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
- package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +14 -14
- package/dist/components/Divider/index.cjs.js +1 -1
- package/dist/components/Divider/index.es.js +17 -17
- package/dist/components/Input/BaseInput/index.cjs.js +1 -1
- package/dist/components/Input/BaseInput/index.es.js +44 -44
- package/dist/components/Input/NumberInput/index.cjs.js +1 -1
- package/dist/components/Input/NumberInput/index.es.js +23 -23
- package/dist/components/Input/PostfixInput/index.cjs.js +1 -1
- package/dist/components/Input/PostfixInput/index.es.js +61 -61
- package/dist/components/Input/ResidentNumberInput/index.cjs.js +1 -1
- package/dist/components/Input/ResidentNumberInput/index.es.js +65 -65
- package/dist/components/Input/TextField/index.cjs.js +1 -1
- package/dist/components/Input/TextField/index.es.js +32 -32
- package/dist/components/Input/common/InputFrame/index.cjs.js +1 -1
- package/dist/components/Input/common/InputFrame/index.es.js +17 -17
- package/dist/components/Input/index.cjs.js +1 -1
- package/dist/components/Input/index.es.js +1 -1
- package/dist/components/LegacyModal/BaseModal/index.cjs.js +1 -1
- package/dist/components/LegacyModal/BaseModal/index.es.js +8 -8
- package/dist/components/LegacyModal/index.cjs.js +1 -1
- package/dist/components/LegacyModal/index.es.js +19 -19
- package/dist/components/List/index.cjs.js +1 -1
- package/dist/components/List/index.es.js +11 -11
- package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
- package/dist/components/Loading/ProgressBar/index.es.js +3 -3
- package/dist/components/Loading/Skeleton/index.cjs.js +1 -1
- package/dist/components/Loading/Skeleton/index.es.js +5 -5
- package/dist/components/Loading/Spinner/index.cjs.js +1 -1
- package/dist/components/Loading/Spinner/index.es.js +3 -3
- package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/BoxMiniButton/index.es.js +4 -4
- package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/IconMiniButton/index.es.js +27 -30
- package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
- package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +40 -43
- package/dist/components/MiniButton/common/ButtonTag.cjs.js +1 -1
- package/dist/components/MiniButton/common/ButtonTag.es.js +3 -3
- package/dist/components/Modal/index.cjs.js +1 -1
- package/dist/components/Modal/index.es.js +42 -42
- package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
- package/dist/components/Navigation/BaseNavigation/index.es.js +14 -14
- package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/BottomNavigationBar/index.es.js +10 -10
- package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/PageNavigationBar/index.es.js +21 -21
- package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
- package/dist/components/Navigation/TitleNavigationBar/index.es.js +12 -12
- package/dist/components/Navigation/index.cjs.js +1 -1
- package/dist/components/Navigation/index.es.js +21 -21
- package/dist/components/OverlayRoot/index.cjs.js +1 -1
- package/dist/components/OverlayRoot/index.es.js +6 -6
- package/dist/components/Segment/BaseSegment/index.cjs.js +1 -1
- package/dist/components/Segment/BaseSegment/index.es.js +16 -16
- package/dist/components/Segment/ExtendSegment/index.cjs.js +1 -1
- package/dist/components/Segment/ExtendSegment/index.es.js +18 -18
- package/dist/components/SelectBox/index.cjs.js +1 -1
- package/dist/components/SelectBox/index.es.js +42 -42
- package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/FillTabs/index.es.js +11 -11
- package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
- package/dist/components/Tabs/TextTabs/index.es.js +18 -18
- package/dist/components/Tag/index.cjs.js +1 -1
- package/dist/components/Tag/index.es.js +7 -8
- package/dist/components/Terms/index.cjs.js +1 -1
- package/dist/components/Terms/index.es.js +26 -26
- package/dist/components/TextArea/index.cjs.js +1 -1
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.es.js +15 -14
- package/dist/components/Title/index.cjs.js +1 -1
- package/dist/components/Title/index.es.js +12 -12
- package/dist/components/Toast/index.cjs.js +1 -1
- package/dist/components/Toast/index.es.js +4 -4
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +1 -1
- package/dist/components/ui/bottomSheet.cjs.js +1 -1
- package/dist/components/ui/bottomSheet.es.js +92 -92
- package/dist/components/ui/button.cjs.js +1 -1
- package/dist/components/ui/button.es.js +13 -14
- package/dist/components/ui/checkbox.cjs.js +1 -1
- package/dist/components/ui/checkbox.es.js +88 -88
- package/dist/components/ui/dialog.cjs.js +1 -1
- package/dist/components/ui/dialog.es.js +48 -48
- package/dist/components/ui/drawer.cjs.js +2 -2
- package/dist/components/ui/drawer.es.js +159 -159
- package/dist/components/ui/impact-tooltip.cjs.js +1 -1
- package/dist/components/ui/impact-tooltip.es.js +133 -133
- package/dist/components/ui/share-ui.cjs.js +1 -1
- package/dist/components/ui/share-ui.es.js +34 -34
- package/dist/components/ui/tooltip.cjs.js +1 -1
- package/dist/components/ui/tooltip.es.js +138 -138
- package/dist/components/ui/typography.cjs.js +1 -1
- package/dist/components/ui/typography.es.js +3 -3
- package/dist/core/Display/Mobile.cjs.js +1 -1
- package/dist/core/Display/Mobile.es.js +4 -4
- package/dist/core/Display/Pc.cjs.js +1 -1
- package/dist/core/Display/Pc.es.js +4 -4
- package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
- package/dist/core/Typography/BaseTypography/index.es.js +3 -3
- package/dist/core/Typography/index.cjs.js +1 -1
- package/dist/core/Typography/index.es.js +19 -19
- package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts +1 -1
- package/dist/icons/src/aliases/prefixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/prefixed.es.js +8 -8
- package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
- package/dist/icons/src/aliases/suffixed.d.ts +6 -6
- package/dist/icons/src/aliases/suffixed.d.ts.map +1 -1
- package/dist/icons/src/aliases/suffixed.es.js +36 -36
- package/dist/icons/src/icons/index.cjs.js +1 -1
- package/dist/icons/src/icons/index.d.ts +3 -3
- package/dist/icons/src/icons/index.d.ts.map +1 -1
- package/dist/icons/src/icons/index.es.js +18 -18
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/library/BasicForm/index.cjs.js +1 -1
- package/dist/library/BasicForm/index.es.js +10 -10
- package/dist/library/BasicLayout/Body.cjs.js +1 -1
- package/dist/library/BasicLayout/Body.es.js +7 -7
- package/dist/library/BasicLayout/Footer.cjs.js +1 -1
- package/dist/library/BasicLayout/Footer.es.js +71 -71
- package/dist/library/BasicLayout/index.cjs.js +1 -1
- package/dist/library/BasicLayout/index.es.js +35 -35
- package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
- package/dist/library/BasicLayout/index.styled.es.js +1 -1
- package/dist/library/IconWithImage/index.cjs.js +1 -1
- package/dist/library/IconWithImage/index.es.js +4 -4
- package/dist/library/List/BottomSheetItemList/index.cjs.js +1 -1
- package/dist/library/List/BottomSheetItemList/index.es.js +5 -5
- package/dist/library/Lottie/index.cjs.js +1 -1
- package/dist/library/Lottie/index.es.js +47 -47
- package/dist/library/Spacing/index.cjs.js +1 -1
- package/dist/library/Spacing/index.es.js +3 -3
- package/package.json +1 -1
- package/dist/chunks/index.9yN3bH7k.js +0 -283
- package/dist/chunks/index.BTUe9yKh.js +0 -1
- package/dist/chunks/index.Beaq4T1c.js +0 -1
- package/dist/chunks/index.BspO8Abs.js +0 -41
- package/dist/chunks/index.CtIpJqp4.js +0 -5
- package/dist/chunks/index.DcvrUsoU.js +0 -1
- package/dist/chunks/index._MxrBNop.js +0 -60
- package/dist/chunks/index.mCMIO9lL.js +0 -1
- package/dist/chunks/jsx-runtime.B0Vkbtvx.js +0 -14
- package/dist/chunks/jsx-runtime.C63F304d.js +0 -615
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { P as D, c as m, b as H, d as Z, a as q } from "./index.BmifSqQX.js";
|
|
3
|
+
import { c as K, u as h } from "./index.DLcqcWxM.js";
|
|
4
|
+
import { u as y } from "./index.CVogEmtp.js";
|
|
5
|
+
import { D as U, P as Y } from "./index.DVHp5IZe.js";
|
|
6
|
+
import { R as z, h as J, u as Q, F as X } from "./index.CIUK7hO2.js";
|
|
7
|
+
import { P as E } from "./index.CDVf4iB0.js";
|
|
8
|
+
import { jsx as s, jsxs as N, Fragment as I } from "react/jsx-runtime";
|
|
9
|
+
// @__NO_SIDE_EFFECTS__
|
|
10
|
+
function ee(e) {
|
|
11
|
+
const t = /* @__PURE__ */ te(e), n = i.forwardRef((r, o) => {
|
|
12
|
+
const { children: a, ...c } = r, l = i.Children.toArray(a), u = l.find(ne);
|
|
13
|
+
if (u) {
|
|
14
|
+
const f = u.props.children, g = l.map((v) => v === u ? i.Children.count(f) > 1 ? i.Children.only(null) : i.isValidElement(f) ? f.props.children : null : v);
|
|
15
|
+
return /* @__PURE__ */ s(t, { ...c, ref: o, children: i.isValidElement(f) ? i.cloneElement(f, void 0, g) : null });
|
|
16
|
+
}
|
|
17
|
+
return /* @__PURE__ */ s(t, { ...c, ref: o, children: a });
|
|
18
|
+
});
|
|
19
|
+
return n.displayName = `${e}.Slot`, n;
|
|
20
|
+
}
|
|
21
|
+
// @__NO_SIDE_EFFECTS__
|
|
22
|
+
function te(e) {
|
|
23
|
+
const t = i.forwardRef((n, r) => {
|
|
24
|
+
const { children: o, ...a } = n;
|
|
25
|
+
if (i.isValidElement(o)) {
|
|
26
|
+
const c = ae(o), l = re(a, o.props);
|
|
27
|
+
return o.type !== i.Fragment && (l.ref = r ? K(r, c) : c), i.cloneElement(o, l);
|
|
28
|
+
}
|
|
29
|
+
return i.Children.count(o) > 1 ? i.Children.only(null) : null;
|
|
30
|
+
});
|
|
31
|
+
return t.displayName = `${e}.SlotClone`, t;
|
|
32
|
+
}
|
|
33
|
+
var oe = /* @__PURE__ */ Symbol("radix.slottable");
|
|
34
|
+
function ne(e) {
|
|
35
|
+
return i.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === oe;
|
|
36
|
+
}
|
|
37
|
+
function re(e, t) {
|
|
38
|
+
const n = { ...t };
|
|
39
|
+
for (const r in t) {
|
|
40
|
+
const o = e[r], a = t[r];
|
|
41
|
+
/^on[A-Z]/.test(r) ? o && a ? n[r] = (...l) => {
|
|
42
|
+
const u = a(...l);
|
|
43
|
+
return o(...l), u;
|
|
44
|
+
} : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...a } : r === "className" && (n[r] = [o, a].filter(Boolean).join(" "));
|
|
45
|
+
}
|
|
46
|
+
return { ...e, ...n };
|
|
47
|
+
}
|
|
48
|
+
function ae(e) {
|
|
49
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
50
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
51
|
+
}
|
|
52
|
+
var R = "Dialog", [b] = H(R), [ie, d] = b(R), x = (e) => {
|
|
53
|
+
const {
|
|
54
|
+
__scopeDialog: t,
|
|
55
|
+
children: n,
|
|
56
|
+
open: r,
|
|
57
|
+
defaultOpen: o,
|
|
58
|
+
onOpenChange: a,
|
|
59
|
+
modal: c = !0
|
|
60
|
+
} = e, l = i.useRef(null), u = i.useRef(null), [f, g] = q({
|
|
61
|
+
prop: r,
|
|
62
|
+
defaultProp: o ?? !1,
|
|
63
|
+
onChange: a,
|
|
64
|
+
caller: R
|
|
65
|
+
});
|
|
66
|
+
return /* @__PURE__ */ s(
|
|
67
|
+
ie,
|
|
68
|
+
{
|
|
69
|
+
scope: t,
|
|
70
|
+
triggerRef: l,
|
|
71
|
+
contentRef: u,
|
|
72
|
+
contentId: y(),
|
|
73
|
+
titleId: y(),
|
|
74
|
+
descriptionId: y(),
|
|
75
|
+
open: f,
|
|
76
|
+
onOpenChange: g,
|
|
77
|
+
onOpenToggle: i.useCallback(() => g((v) => !v), [g]),
|
|
78
|
+
modal: c,
|
|
79
|
+
children: n
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
};
|
|
83
|
+
x.displayName = R;
|
|
84
|
+
var A = "DialogTrigger", T = i.forwardRef(
|
|
85
|
+
(e, t) => {
|
|
86
|
+
const { __scopeDialog: n, ...r } = e, o = d(A, n), a = h(t, o.triggerRef);
|
|
87
|
+
return /* @__PURE__ */ s(
|
|
88
|
+
D.button,
|
|
89
|
+
{
|
|
90
|
+
type: "button",
|
|
91
|
+
"aria-haspopup": "dialog",
|
|
92
|
+
"aria-expanded": o.open,
|
|
93
|
+
"aria-controls": o.contentId,
|
|
94
|
+
"data-state": O(o.open),
|
|
95
|
+
...r,
|
|
96
|
+
ref: a,
|
|
97
|
+
onClick: m(e.onClick, o.onOpenToggle)
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
T.displayName = A;
|
|
103
|
+
var _ = "DialogPortal", [se, S] = b(_, {
|
|
104
|
+
forceMount: void 0
|
|
105
|
+
}), M = (e) => {
|
|
106
|
+
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = d(_, t);
|
|
107
|
+
return /* @__PURE__ */ s(se, { scope: t, forceMount: n, children: i.Children.map(r, (c) => /* @__PURE__ */ s(E, { present: n || a.open, children: /* @__PURE__ */ s(Y, { asChild: !0, container: o, children: c }) })) });
|
|
108
|
+
};
|
|
109
|
+
M.displayName = _;
|
|
110
|
+
var C = "DialogOverlay", w = i.forwardRef(
|
|
111
|
+
(e, t) => {
|
|
112
|
+
const n = S(C, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = d(C, e.__scopeDialog);
|
|
113
|
+
return a.modal ? /* @__PURE__ */ s(E, { present: r || a.open, children: /* @__PURE__ */ s(ce, { ...o, ref: t }) }) : null;
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
w.displayName = C;
|
|
117
|
+
var le = /* @__PURE__ */ ee("DialogOverlay.RemoveScroll"), ce = i.forwardRef(
|
|
118
|
+
(e, t) => {
|
|
119
|
+
const { __scopeDialog: n, ...r } = e, o = d(C, n);
|
|
120
|
+
return (
|
|
121
|
+
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
122
|
+
// ie. when `Overlay` and `Content` are siblings
|
|
123
|
+
/* @__PURE__ */ s(z, { as: le, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s(
|
|
124
|
+
D.div,
|
|
125
|
+
{
|
|
126
|
+
"data-state": O(o.open),
|
|
127
|
+
...r,
|
|
128
|
+
ref: t,
|
|
129
|
+
style: { pointerEvents: "auto", ...r.style }
|
|
130
|
+
}
|
|
131
|
+
) })
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
), p = "DialogContent", F = i.forwardRef(
|
|
135
|
+
(e, t) => {
|
|
136
|
+
const n = S(p, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = d(p, e.__scopeDialog);
|
|
137
|
+
return /* @__PURE__ */ s(E, { present: r || a.open, children: a.modal ? /* @__PURE__ */ s(ue, { ...o, ref: t }) : /* @__PURE__ */ s(de, { ...o, ref: t }) });
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
F.displayName = p;
|
|
141
|
+
var ue = i.forwardRef(
|
|
142
|
+
(e, t) => {
|
|
143
|
+
const n = d(p, e.__scopeDialog), r = i.useRef(null), o = h(t, n.contentRef, r);
|
|
144
|
+
return i.useEffect(() => {
|
|
145
|
+
const a = r.current;
|
|
146
|
+
if (a) return J(a);
|
|
147
|
+
}, []), /* @__PURE__ */ s(
|
|
148
|
+
W,
|
|
149
|
+
{
|
|
150
|
+
...e,
|
|
151
|
+
ref: o,
|
|
152
|
+
trapFocus: n.open,
|
|
153
|
+
disableOutsidePointerEvents: !0,
|
|
154
|
+
onCloseAutoFocus: m(e.onCloseAutoFocus, (a) => {
|
|
155
|
+
a.preventDefault(), n.triggerRef.current?.focus();
|
|
156
|
+
}),
|
|
157
|
+
onPointerDownOutside: m(e.onPointerDownOutside, (a) => {
|
|
158
|
+
const c = a.detail.originalEvent, l = c.button === 0 && c.ctrlKey === !0;
|
|
159
|
+
(c.button === 2 || l) && a.preventDefault();
|
|
160
|
+
}),
|
|
161
|
+
onFocusOutside: m(
|
|
162
|
+
e.onFocusOutside,
|
|
163
|
+
(a) => a.preventDefault()
|
|
164
|
+
)
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
), de = i.forwardRef(
|
|
169
|
+
(e, t) => {
|
|
170
|
+
const n = d(p, e.__scopeDialog), r = i.useRef(!1), o = i.useRef(!1);
|
|
171
|
+
return /* @__PURE__ */ s(
|
|
172
|
+
W,
|
|
173
|
+
{
|
|
174
|
+
...e,
|
|
175
|
+
ref: t,
|
|
176
|
+
trapFocus: !1,
|
|
177
|
+
disableOutsidePointerEvents: !1,
|
|
178
|
+
onCloseAutoFocus: (a) => {
|
|
179
|
+
e.onCloseAutoFocus?.(a), a.defaultPrevented || (r.current || n.triggerRef.current?.focus(), a.preventDefault()), r.current = !1, o.current = !1;
|
|
180
|
+
},
|
|
181
|
+
onInteractOutside: (a) => {
|
|
182
|
+
e.onInteractOutside?.(a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
183
|
+
const c = a.target;
|
|
184
|
+
n.triggerRef.current?.contains(c) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
), W = i.forwardRef(
|
|
190
|
+
(e, t) => {
|
|
191
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = e, l = d(p, n), u = i.useRef(null), f = h(t, u);
|
|
192
|
+
return Q(), /* @__PURE__ */ N(I, { children: [
|
|
193
|
+
/* @__PURE__ */ s(
|
|
194
|
+
X,
|
|
195
|
+
{
|
|
196
|
+
asChild: !0,
|
|
197
|
+
loop: !0,
|
|
198
|
+
trapped: r,
|
|
199
|
+
onMountAutoFocus: o,
|
|
200
|
+
onUnmountAutoFocus: a,
|
|
201
|
+
children: /* @__PURE__ */ s(
|
|
202
|
+
U,
|
|
203
|
+
{
|
|
204
|
+
role: "dialog",
|
|
205
|
+
id: l.contentId,
|
|
206
|
+
"aria-describedby": l.descriptionId,
|
|
207
|
+
"aria-labelledby": l.titleId,
|
|
208
|
+
"data-state": O(l.open),
|
|
209
|
+
...c,
|
|
210
|
+
ref: f,
|
|
211
|
+
onDismiss: () => l.onOpenChange(!1)
|
|
212
|
+
}
|
|
213
|
+
)
|
|
214
|
+
}
|
|
215
|
+
),
|
|
216
|
+
/* @__PURE__ */ N(I, { children: [
|
|
217
|
+
/* @__PURE__ */ s(fe, { titleId: l.titleId }),
|
|
218
|
+
/* @__PURE__ */ s(ge, { contentRef: u, descriptionId: l.descriptionId })
|
|
219
|
+
] })
|
|
220
|
+
] });
|
|
221
|
+
}
|
|
222
|
+
), P = "DialogTitle", L = i.forwardRef(
|
|
223
|
+
(e, t) => {
|
|
224
|
+
const { __scopeDialog: n, ...r } = e, o = d(P, n);
|
|
225
|
+
return /* @__PURE__ */ s(D.h2, { id: o.titleId, ...r, ref: t });
|
|
226
|
+
}
|
|
227
|
+
);
|
|
228
|
+
L.displayName = P;
|
|
229
|
+
var k = "DialogDescription", G = i.forwardRef(
|
|
230
|
+
(e, t) => {
|
|
231
|
+
const { __scopeDialog: n, ...r } = e, o = d(k, n);
|
|
232
|
+
return /* @__PURE__ */ s(D.p, { id: o.descriptionId, ...r, ref: t });
|
|
233
|
+
}
|
|
234
|
+
);
|
|
235
|
+
G.displayName = k;
|
|
236
|
+
var V = "DialogClose", $ = i.forwardRef(
|
|
237
|
+
(e, t) => {
|
|
238
|
+
const { __scopeDialog: n, ...r } = e, o = d(V, n);
|
|
239
|
+
return /* @__PURE__ */ s(
|
|
240
|
+
D.button,
|
|
241
|
+
{
|
|
242
|
+
type: "button",
|
|
243
|
+
...r,
|
|
244
|
+
ref: t,
|
|
245
|
+
onClick: m(e.onClick, () => o.onOpenChange(!1))
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
);
|
|
250
|
+
$.displayName = V;
|
|
251
|
+
function O(e) {
|
|
252
|
+
return e ? "open" : "closed";
|
|
253
|
+
}
|
|
254
|
+
var j = "DialogTitleWarning", [Ee, B] = Z(j, {
|
|
255
|
+
contentName: p,
|
|
256
|
+
titleName: P,
|
|
257
|
+
docsSlug: "dialog"
|
|
258
|
+
}), fe = ({ titleId: e }) => {
|
|
259
|
+
const t = B(j), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
260
|
+
|
|
261
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
262
|
+
|
|
263
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
264
|
+
return i.useEffect(() => {
|
|
265
|
+
e && (document.getElementById(e) || console.error(n));
|
|
266
|
+
}, [n, e]), null;
|
|
267
|
+
}, pe = "DialogDescriptionWarning", ge = ({ contentRef: e, descriptionId: t }) => {
|
|
268
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${B(pe).contentName}}.`;
|
|
269
|
+
return i.useEffect(() => {
|
|
270
|
+
const o = e.current?.getAttribute("aria-describedby");
|
|
271
|
+
t && o && (document.getElementById(t) || console.warn(r));
|
|
272
|
+
}, [r, e, t]), null;
|
|
273
|
+
}, _e = x, Pe = T, Oe = M, Ne = w, Ie = F, be = L, xe = G, Ae = $;
|
|
274
|
+
export {
|
|
275
|
+
Ae as C,
|
|
276
|
+
xe as D,
|
|
277
|
+
Ne as O,
|
|
278
|
+
Oe as P,
|
|
279
|
+
_e as R,
|
|
280
|
+
be as T,
|
|
281
|
+
Ie as a,
|
|
282
|
+
Pe as b
|
|
283
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as u from "react";
|
|
2
2
|
import { useState as ge } from "react";
|
|
3
3
|
import { u as ye } from "./index.DLcqcWxM.js";
|
|
4
|
-
import { P as be } from "./index.
|
|
5
|
-
import { u as q } from "./index
|
|
6
|
-
import {
|
|
7
|
-
var
|
|
4
|
+
import { P as be } from "./index.BmifSqQX.js";
|
|
5
|
+
import { u as q } from "./index.DVHp5IZe.js";
|
|
6
|
+
import { jsx as Ee } from "react/jsx-runtime";
|
|
7
|
+
var _ = "focusScope.autoFocusOnMount", j = "focusScope.autoFocusOnUnmount", Q = { bubbles: !1, cancelable: !0 }, Se = "FocusScope", we = u.forwardRef((e, t) => {
|
|
8
8
|
const {
|
|
9
9
|
loop: n = !1,
|
|
10
10
|
trapped: r = !1,
|
|
@@ -46,13 +46,13 @@ var j = "focusScope.autoFocusOnMount", _ = "focusScope.autoFocusOnUnmount", Q =
|
|
|
46
46
|
J.add(h);
|
|
47
47
|
const o = document.activeElement;
|
|
48
48
|
if (!a.contains(o)) {
|
|
49
|
-
const d = new CustomEvent(
|
|
50
|
-
a.addEventListener(
|
|
49
|
+
const d = new CustomEvent(_, Q);
|
|
50
|
+
a.addEventListener(_, b), a.dispatchEvent(d), d.defaultPrevented || (Ce(Ne(ue(a)), { select: !0 }), document.activeElement === o && A(a));
|
|
51
51
|
}
|
|
52
52
|
return () => {
|
|
53
|
-
a.removeEventListener(
|
|
54
|
-
const d = new CustomEvent(
|
|
55
|
-
a.addEventListener(
|
|
53
|
+
a.removeEventListener(_, b), setTimeout(() => {
|
|
54
|
+
const d = new CustomEvent(j, Q);
|
|
55
|
+
a.addEventListener(j, g), a.dispatchEvent(d), d.defaultPrevented || A(o ?? document.body, { select: !0 }), a.removeEventListener(j, g), J.remove(h);
|
|
56
56
|
}, 0);
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -68,7 +68,7 @@ var j = "focusScope.autoFocusOnMount", _ = "focusScope.autoFocusOnUnmount", Q =
|
|
|
68
68
|
},
|
|
69
69
|
[n, r, h.paused]
|
|
70
70
|
);
|
|
71
|
-
return /* @__PURE__ */ Ee
|
|
71
|
+
return /* @__PURE__ */ Ee(be.div, { tabIndex: -1, ...s, ref: v, onKeyDown: w });
|
|
72
72
|
});
|
|
73
73
|
we.displayName = Se;
|
|
74
74
|
function Ce(e, { select: t = !1 } = {}) {
|
|
@@ -193,7 +193,7 @@ function Oe(e, t) {
|
|
|
193
193
|
return n.callback = t, n.facade;
|
|
194
194
|
}
|
|
195
195
|
var Le = typeof window < "u" ? u.useLayoutEffect : u.useEffect, ne = /* @__PURE__ */ new WeakMap();
|
|
196
|
-
function
|
|
196
|
+
function Ie(e, t) {
|
|
197
197
|
var n = Oe(null, function(r) {
|
|
198
198
|
return e.forEach(function(c) {
|
|
199
199
|
return H(c, r);
|
|
@@ -212,11 +212,11 @@ function xe(e, t) {
|
|
|
212
212
|
ne.set(n, e);
|
|
213
213
|
}, [e]), n;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function xe(e) {
|
|
216
216
|
return e;
|
|
217
217
|
}
|
|
218
218
|
function We(e, t) {
|
|
219
|
-
t === void 0 && (t =
|
|
219
|
+
t === void 0 && (t = xe);
|
|
220
220
|
var n = [], r = !1, c = {
|
|
221
221
|
read: function() {
|
|
222
222
|
if (r)
|
|
@@ -294,7 +294,7 @@ var se = Be(), V = function() {
|
|
|
294
294
|
onScrollCapture: V,
|
|
295
295
|
onWheelCapture: V,
|
|
296
296
|
onTouchMoveCapture: V
|
|
297
|
-
}), c = r[0], i = r[1], s = e.forwardProps, a = e.children, S = e.className, b = e.removeScrollBar, g = e.enabled, f = e.shards, v = e.sideCar, h = e.noRelative, w = e.noIsolation, o = e.inert, l = e.allowPinchZoom, d = e.as, m = d === void 0 ? "div" : d, p = e.gapMode, y = ie(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = v, R =
|
|
297
|
+
}), c = r[0], i = r[1], s = e.forwardProps, a = e.children, S = e.className, b = e.removeScrollBar, g = e.enabled, f = e.shards, v = e.sideCar, h = e.noRelative, w = e.noIsolation, o = e.inert, l = e.allowPinchZoom, d = e.as, m = d === void 0 ? "div" : d, p = e.gapMode, y = ie(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = v, R = Ie([n, t]), k = C(C({}, y), c);
|
|
298
298
|
return u.createElement(
|
|
299
299
|
u.Fragment,
|
|
300
300
|
null,
|
|
@@ -315,7 +315,7 @@ var Ue = function() {
|
|
|
315
315
|
if (typeof __webpack_nonce__ < "u")
|
|
316
316
|
return __webpack_nonce__;
|
|
317
317
|
};
|
|
318
|
-
function
|
|
318
|
+
function _e() {
|
|
319
319
|
if (!document)
|
|
320
320
|
return null;
|
|
321
321
|
var e = document.createElement("style");
|
|
@@ -323,7 +323,7 @@ function je() {
|
|
|
323
323
|
var t = Ue();
|
|
324
324
|
return t && e.setAttribute("nonce", t), e;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function je(e, t) {
|
|
327
327
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
328
328
|
}
|
|
329
329
|
function Ke(e) {
|
|
@@ -334,7 +334,7 @@ var He = function() {
|
|
|
334
334
|
var e = 0, t = null;
|
|
335
335
|
return {
|
|
336
336
|
add: function(n) {
|
|
337
|
-
e == 0 && (t =
|
|
337
|
+
e == 0 && (t = _e()) && (je(t, n), Ke(t)), e++;
|
|
338
338
|
},
|
|
339
339
|
remove: function() {
|
|
340
340
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
@@ -625,7 +625,7 @@ var dt = function(e) {
|
|
|
625
625
|
return null;
|
|
626
626
|
var t = Array.isArray(e) ? e[0] : e;
|
|
627
627
|
return t.ownerDocument.body;
|
|
628
|
-
}, M = /* @__PURE__ */ new WeakMap(),
|
|
628
|
+
}, M = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), x = {}, Y = 0, me = function(e) {
|
|
629
629
|
return e && (e.host || me(e.parentNode));
|
|
630
630
|
}, vt = function(e, t) {
|
|
631
631
|
return t.map(function(n) {
|
|
@@ -638,8 +638,8 @@ var dt = function(e) {
|
|
|
638
638
|
});
|
|
639
639
|
}, ht = function(e, t, n, r) {
|
|
640
640
|
var c = vt(t, Array.isArray(e) ? e : [e]);
|
|
641
|
-
|
|
642
|
-
var i =
|
|
641
|
+
x[n] || (x[n] = /* @__PURE__ */ new WeakMap());
|
|
642
|
+
var i = x[n], s = [], a = /* @__PURE__ */ new Set(), S = new Set(c), b = function(f) {
|
|
643
643
|
!f || a.has(f) || (a.add(f), b(f.parentNode));
|
|
644
644
|
};
|
|
645
645
|
c.forEach(b);
|
|
@@ -650,7 +650,7 @@ var dt = function(e) {
|
|
|
650
650
|
else
|
|
651
651
|
try {
|
|
652
652
|
var h = v.getAttribute(r), w = h !== null && h !== "false", o = (M.get(v) || 0) + 1, l = (i.get(v) || 0) + 1;
|
|
653
|
-
M.set(v, o), i.set(v, l), s.push(v), o === 1 && w &&
|
|
653
|
+
M.set(v, o), i.set(v, l), s.push(v), o === 1 && w && I.set(v, !0), l === 1 && v.setAttribute(n, "true"), w || v.setAttribute(r, "true");
|
|
654
654
|
} catch (d) {
|
|
655
655
|
console.error("aria-hidden: cannot operate on ", v, d);
|
|
656
656
|
}
|
|
@@ -659,8 +659,8 @@ var dt = function(e) {
|
|
|
659
659
|
return g(t), a.clear(), Y++, function() {
|
|
660
660
|
s.forEach(function(f) {
|
|
661
661
|
var v = M.get(f) - 1, h = i.get(f) - 1;
|
|
662
|
-
M.set(f, v), i.set(f, h), v || (
|
|
663
|
-
}), Y--, Y || (M = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(),
|
|
662
|
+
M.set(f, v), i.set(f, h), v || (I.has(f) || f.removeAttribute(r), I.delete(f)), h || f.removeAttribute(n);
|
|
663
|
+
}), Y--, Y || (M = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), x = {});
|
|
664
664
|
};
|
|
665
665
|
}, St = function(e, t, n) {
|
|
666
666
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const It=require("react"),Re=require("react-dom"),J=require("./index.eYfYnSCV.js"),Y=require("react/jsx-runtime"),Xt=require("./index.BIcga6m3.js"),Oe=require("./index.B-Bfcjo7.js"),Pe=require("./index.CskkVMdK.js");function Yt(t){if(t&&typeof t=="object"&&"default"in t)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const R=Yt(It),Ce=Yt(Re),Se=["top","right","bottom","left"],Z=Math.min,_=Math.max,ft=Math.round,lt=Math.floor,z=t=>({x:t,y:t}),Ee={left:"right",right:"left",bottom:"top",top:"bottom"},De={start:"end",end:"start"};function vt(t,e,n){return _(t,Z(e,n))}function q(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function et(t){return t.split("-")[1]}function Rt(t){return t==="x"?"y":"x"}function Ot(t){return t==="y"?"height":"width"}const Le=new Set(["top","bottom"]);function V(t){return Le.has(U(t))?"y":"x"}function Pt(t){return Rt(V(t))}function Me(t,e,n){n===void 0&&(n=!1);const o=et(t),r=Pt(t),i=Ot(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ut(s)),[s,ut(s)]}function Te(t){const e=ut(t);return[bt(t),e,bt(e)]}function bt(t){return t.replace(/start|end/g,e=>De[e])}const $t=["left","right"],kt=["right","left"],$e=["top","bottom"],ke=["bottom","top"];function Fe(t,e,n){switch(t){case"top":case"bottom":return n?e?kt:$t:e?$t:kt;case"left":case"right":return e?$e:ke;default:return[]}}function Ne(t,e,n,o){const r=et(t);let i=Fe(U(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(bt)))),i}function ut(t){return t.replace(/left|right|bottom|top/g,e=>Ee[e])}function _e(t){return{top:0,right:0,bottom:0,left:0,...t}}function qt(t){return typeof t!="number"?_e(t):{top:t,right:t,bottom:t,left:t}}function dt(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Ft(t,e,n){let{reference:o,floating:r}=t;const i=V(e),s=Pt(e),c=Ot(s),l=U(e),a=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(et(e)){case"start":d[s]-=m*(n&&a?-1:1);break;case"end":d[s]+=m*(n&&a?-1:1);break}return d}const We=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=Ft(a,o,l),m=o,d={},p=0;for(let h=0;h<c.length;h++){const{name:w,fn:g}=c[h],{x,y:b,data:y,reset:v}=await g({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,u=b??u,d={...d,[w]:{...d[w],...y}},v&&p<=50&&(p++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),{x:f,y:u}=Ft(a,m,l)),h=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:d}};async function rt(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=q(e,t),p=qt(d),w=c[m?u==="floating"?"reference":"floating":u],g=dt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),x=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),y=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},v=dt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.right-g.right+p.right)/y.x}}const He=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=q(t,e)||{};if(a==null)return{};const u=qt(f),m={x:n,y:o},d=Pt(r),p=Ot(d),h=await s.getDimensions(a),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=i.reference[p]+i.reference[d]-m[d]-i.floating[p],v=m[d]-i.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let O=P?P[b]:0;(!O||!await(s.isElement==null?void 0:s.isElement(P)))&&(O=c.floating[b]||i.floating[p]);const M=y/2-v/2,F=O/2-h[p]/2-1,L=Z(u[g],F),$=Z(u[x],F),k=L,S=O-h[p]-$,C=O/2-h[p]/2+M,N=vt(k,C,S),E=!l.arrow&&et(r)!=null&&C!==N&&i.reference[p]/2-(C<k?L:$)-h[p]/2<0,D=E?C<k?C-k:C-S:0;return{[d]:m[d]+D,data:{[d]:N,centerOffset:C-N-D,...E&&{alignmentOffset:D}},reset:E}}}),Be=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=q(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),x=V(c),b=U(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(b||!h?[ut(c)]:Te(c)),P=p!=="none";!m&&P&&v.push(...Ne(c,h,p,y));const O=[c,...v],M=await rt(e,w),F=[];let L=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&F.push(M[g]),u){const C=Me(r,s,y);F.push(M[C[0]],M[C[1]])}if(L=[...L,{placement:r,overflows:F}],!F.every(C=>C<=0)){var $,k;const C=((($=i.flip)==null?void 0:$.index)||0)+1,N=O[C];if(N&&(!(u==="alignment"?x!==V(N):!1)||L.every(A=>V(A.placement)===x?A.overflows[0]>0:!0)))return{data:{index:C,overflows:L},reset:{placement:N}};let E=(k=L.filter(D=>D.overflows[0]<=0).sort((D,A)=>D.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!E)switch(d){case"bestFit":{var S;const D=(S=L.filter(A=>{if(P){const T=V(A.placement);return T===x||T==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(T=>T>0).reduce((T,j)=>T+j,0)]).sort((A,T)=>A[1]-T[1])[0])==null?void 0:S[0];D&&(E=D);break}case"initialPlacement":E=c;break}if(r!==E)return{reset:{placement:E}}}return{}}}};function Nt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function _t(t){return Se.some(e=>t[e]>=0)}const je=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=q(t,e);switch(o){case"referenceHidden":{const i=await rt(e,{...r,elementContext:"reference"}),s=Nt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:_t(s)}}}case"escaped":{const i=await rt(e,{...r,altBoundary:!0}),s=Nt(i,n.floating);return{data:{escapedOffsets:s,escaped:_t(s)}}}default:return{}}}}},Ut=new Set(["left","top"]);async function Ve(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),c=et(n),l=V(n)==="y",a=Ut.has(s)?-1:1,f=i&&l?-1:1,u=q(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:m*a}:{x:m*a,y:d*f}}const ze=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,l=await Ve(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ie=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=q(t,e),a={x:n,y:o},f=await rt(e,l),u=V(U(r)),m=Rt(u);let d=a[m],p=a[u];if(i){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=d+f[w],b=d-f[g];d=vt(x,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+f[w],b=p-f[g];p=vt(x,p,b)}const h=c.fn({...e,[m]:d,[u]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:i,[u]:s}}}}}},Xe=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=q(t,e),f={x:n,y:o},u=V(r),m=Rt(u);let d=f[m],p=f[u];const h=q(c,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const b=m==="y"?"height":"width",y=i.reference[m]-i.floating[b]+w.mainAxis,v=i.reference[m]+i.reference[b]-w.mainAxis;d<y?d=y:d>v&&(d=v)}if(a){var g,x;const b=m==="y"?"width":"height",y=Ut.has(U(r)),v=i.reference[u]-i.floating[b]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),P=i.reference[u]+i.reference[b]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<v?p=v:p>P&&(p=P)}return{[m]:d,[u]:p}}}},Ye=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:l=()=>{},...a}=q(t,e),f=await rt(e,a),u=U(r),m=et(r),d=V(r)==="y",{width:p,height:h}=i.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=m==="end"?"top":"bottom");const x=h-f.top-f.bottom,b=p-f.left-f.right,y=Z(h-f[w],x),v=Z(p-f[g],b),P=!e.middlewareData.shift;let O=y,M=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(O=x),P&&!m){const L=_(f.left,0),$=_(f.right,0),k=_(f.top,0),S=_(f.bottom,0);d?M=p-2*(L!==0||$!==0?L+$:_(f.left,f.right)):O=h-2*(k!==0||S!==0?k+S:_(f.top,f.bottom))}await l({...e,availableWidth:M,availableHeight:O});const F=await s.getDimensions(c.floating);return p!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function mt(){return typeof window<"u"}function nt(t){return Zt(t)?(t.nodeName||"").toLowerCase():"#document"}function W(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function X(t){var e;return(e=(Zt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Zt(t){return mt()?t instanceof Node||t instanceof W(t).Node:!1}function H(t){return mt()?t instanceof Element||t instanceof W(t).Element:!1}function I(t){return mt()?t instanceof HTMLElement||t instanceof W(t).HTMLElement:!1}function Wt(t){return!mt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof W(t).ShadowRoot}const qe=new Set(["inline","contents"]);function st(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!qe.has(r)}const Ue=new Set(["table","td","th"]);function Ze(t){return Ue.has(nt(t))}const Ke=[":popover-open",":modal"];function ht(t){return Ke.some(e=>{try{return t.matches(e)}catch{return!1}})}const Ge=["transform","translate","scale","rotate","perspective"],Je=["transform","translate","scale","rotate","perspective","filter"],Qe=["paint","layout","strict","content"];function Ct(t){const e=St(),n=H(t)?B(t):t;return Ge.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Je.some(o=>(n.willChange||"").includes(o))||Qe.some(o=>(n.contain||"").includes(o))}function tn(t){let e=K(t);for(;I(e)&&!tt(e);){if(Ct(e))return e;if(ht(e))return null;e=K(e)}return null}function St(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const en=new Set(["html","body","#document"]);function tt(t){return en.has(nt(t))}function B(t){return W(t).getComputedStyle(t)}function gt(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(nt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wt(t)&&t.host||X(t);return Wt(e)?e.host:e}function Kt(t){const e=K(t);return tt(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&st(e)?e:Kt(e)}function it(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Kt(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=W(r);if(i){const c=At(s);return e.concat(s,s.visualViewport||[],st(r)?r:[],c&&n?it(c):[])}return e.concat(r,it(r,[],n))}function At(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Gt(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=I(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=ft(n)!==i||ft(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Et(t){return H(t)?t:t.contextElement}function Q(t){const e=Et(t);if(!I(e))return z(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Gt(e);let s=(i?ft(n.width):n.width)/o,c=(i?ft(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const nn=z(0);function Jt(t){const e=W(t);return!St()||!e.visualViewport?nn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function on(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==W(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Et(t);let s=z(1);e&&(o?H(o)&&(s=Q(o)):s=Q(t));const c=on(i,n,o)?Jt(i):z(0);let l=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const m=W(i),d=o&&H(o)?W(o):o;let p=m,h=At(p);for(;h&&o&&d!==p;){const w=Q(h),g=h.getBoundingClientRect(),x=B(h),b=g.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=y,p=W(h),h=At(p)}}return dt({width:f,height:u,x:l,y:a})}function wt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:G(X(t)).left+n}function Qt(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-wt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function rn(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=X(o),c=e?ht(e.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=z(1);const f=z(0),u=I(o);if((u||!u&&!i)&&((nt(o)!=="body"||st(s))&&(l=gt(o)),I(o))){const d=G(o);a=Q(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const m=s&&!u&&!i?Qt(s,l):z(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+m.x,y:n.y*a.y-l.scrollTop*a.y+f.y+m.y}}function sn(t){return Array.from(t.getClientRects())}function cn(t){const e=X(t),n=gt(t),o=t.ownerDocument.body,r=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+wt(t);const c=-n.scrollTop;return B(o).direction==="rtl"&&(s+=_(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const Ht=25;function ln(t,e){const n=W(t),o=X(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;const f=St();(!f||f&&e==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=wt(o);if(a<=0){const f=o.ownerDocument,u=f.body,m=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(o.clientWidth-u.clientWidth-d);p<=Ht&&(i-=p)}else a<=Ht&&(i+=a);return{width:i,height:s,x:c,y:l}}const an=new Set(["absolute","fixed"]);function fn(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=I(t)?Q(t):z(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,l=r*i.x,a=o*i.y;return{width:s,height:c,x:l,y:a}}function Bt(t,e,n){let o;if(e==="viewport")o=ln(t,n);else if(e==="document")o=cn(X(t));else if(H(e))o=fn(e,n);else{const r=Jt(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return dt(o)}function te(t,e){const n=K(t);return n===e||!H(n)||tt(n)?!1:B(n).position==="fixed"||te(n,e)}function un(t,e){const n=e.get(t);if(n)return n;let o=it(t,[],!1).filter(c=>H(c)&&nt(c)!=="body"),r=null;const i=B(t).position==="fixed";let s=i?K(t):t;for(;H(s)&&!tt(s);){const c=B(s),l=Ct(s);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&an.has(r.position)||st(s)&&!l&&te(t,s))?o=o.filter(f=>f!==s):r=c,s=K(s)}return e.set(t,o),o}function dn(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?ht(e)?[]:un(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Bt(e,f,r);return a.top=_(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=_(u.left,a.left),a},Bt(e,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function pn(t){const{width:e,height:n}=Gt(t);return{width:e,height:n}}function mn(t,e,n){const o=I(e),r=X(e),i=n==="fixed",s=G(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const l=z(0);function a(){l.x=wt(r)}if(o||!o&&!i)if((nt(e)!=="body"||st(r))&&(c=gt(e)),o){const d=G(e,!0,i,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else r&&a();i&&!o&&r&&a();const f=r&&!o&&!i?Qt(r,c):z(0),u=s.left+c.scrollLeft-l.x-f.x,m=s.top+c.scrollTop-l.y-f.y;return{x:u,y:m,width:s.width,height:s.height}}function xt(t){return B(t).position==="static"}function jt(t,e){if(!I(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return X(t)===n&&(n=n.ownerDocument.body),n}function ee(t,e){const n=W(t);if(ht(t))return n;if(!I(t)){let r=K(t);for(;r&&!tt(r);){if(H(r)&&!xt(r))return r;r=K(r)}return n}let o=jt(t,e);for(;o&&Ze(o)&&xt(o);)o=jt(o,e);return o&&tt(o)&&xt(o)&&!Ct(o)?n:o||tn(t)||n}const hn=async function(t){const e=this.getOffsetParent||ee,n=this.getDimensions,o=await n(t.floating);return{reference:mn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function gn(t){return B(t).direction==="rtl"}const wn={convertOffsetParentRelativeRectToViewportRelativeRect:rn,getDocumentElement:X,getClippingRect:dn,getOffsetParent:ee,getElementRects:hn,getClientRects:sn,getDimensions:pn,getScale:Q,isElement:H,isRTL:gn};function ne(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function xn(t,e){let n=null,o;const r=X(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const a=t.getBoundingClientRect(),{left:f,top:u,width:m,height:d}=a;if(c||e(),!m||!d)return;const p=lt(u),h=lt(r.clientWidth-(f+m)),w=lt(r.clientHeight-(u+d)),g=lt(f),b={rootMargin:-p+"px "+-h+"px "+-w+"px "+-g+"px",threshold:_(0,Z(1,l))||1};let y=!0;function v(P){const O=P[0].intersectionRatio;if(O!==l){if(!y)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!ne(a,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(v,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(v,b)}n.observe(t)}return s(!0),i}function yn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Et(t),f=r||i?[...a?it(a):[],...it(e)]:[];f.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=a&&c?xn(a,n):null;let m=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,h=l?G(t):null;l&&w();function w(){const g=G(t);h&&!ne(h,g)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const vn=ze,bn=Ie,An=Be,Rn=Ye,On=je,Vt=He,Pn=Xe,Cn=(t,e,n)=>{const o=new Map,r={platform:wn,...n},i={...r.platform,_c:o};return We(t,e,{...r,platform:i})};var Sn=typeof document<"u",En=function(){},at=Sn?It.useLayoutEffect:En;function pt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!pt(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!pt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function oe(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function zt(t,e){const n=oe(t);return Math.round(e*n)/n}function yt(t){const e=R.useRef(t);return at(()=>{e.current=t}),e}function Dn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=R.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,d]=R.useState(o);pt(m,o)||d(o);const[p,h]=R.useState(null),[w,g]=R.useState(null),x=R.useCallback(A=>{A!==P.current&&(P.current=A,h(A))},[]),b=R.useCallback(A=>{A!==O.current&&(O.current=A,g(A))},[]),y=i||p,v=s||w,P=R.useRef(null),O=R.useRef(null),M=R.useRef(f),F=l!=null,L=yt(l),$=yt(r),k=yt(a),S=R.useCallback(()=>{if(!P.current||!O.current)return;const A={placement:e,strategy:n,middleware:m};$.current&&(A.platform=$.current),Cn(P.current,O.current,A).then(T=>{const j={...T,isPositioned:k.current!==!1};C.current&&!pt(M.current,j)&&(M.current=j,Ce.flushSync(()=>{u(j)}))})},[m,e,n,$,k]);at(()=>{a===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const C=R.useRef(!1);at(()=>(C.current=!0,()=>{C.current=!1}),[]),at(()=>{if(y&&(P.current=y),v&&(O.current=v),y&&v){if(L.current)return L.current(y,v,S);S()}},[y,v,S,L,F]);const N=R.useMemo(()=>({reference:P,floating:O,setReference:x,setFloating:b}),[x,b]),E=R.useMemo(()=>({reference:y,floating:v}),[y,v]),D=R.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const T=zt(E.floating,f.x),j=zt(E.floating,f.y);return c?{...A,transform:"translate("+T+"px, "+j+"px)",...oe(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:j}},[n,c,E.floating,f.x,f.y]);return R.useMemo(()=>({...f,update:S,refs:N,elements:E,floatingStyles:D}),[f,S,N,E,D])}const Ln=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Vt({element:o.current,padding:r}).fn(n):{}:o?Vt({element:o,padding:r}).fn(n):{}}}},Mn=(t,e)=>({...vn(t),options:[t,e]}),Tn=(t,e)=>({...bn(t),options:[t,e]}),$n=(t,e)=>({...Pn(t),options:[t,e]}),kn=(t,e)=>({...An(t),options:[t,e]}),Fn=(t,e)=>({...Rn(t),options:[t,e]}),Nn=(t,e)=>({...On(t),options:[t,e]}),_n=(t,e)=>({...Ln(t),options:[t,e]});var Wn="Arrow",re=R.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return Y.jsx(J.Primitive.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:Y.jsx("polygon",{points:"0,0 30,0 15,10"})})});re.displayName=Wn;var Hn=re,Dt="Popper",[ie,Bn]=J.createContextScope(Dt),[jn,se]=ie(Dt),ce=t=>{const{__scopePopper:e,children:n}=t,[o,r]=R.useState(null);return Y.jsx(jn,{scope:e,anchor:o,onAnchorChange:r,children:n})};ce.displayName=Dt;var le="PopperAnchor",ae=R.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=se(le,n),s=R.useRef(null),c=Xt.useComposedRefs(e,s),l=R.useRef(null);return R.useEffect(()=>{const a=l.current;l.current=o?.current||s.current,a!==l.current&&i.onAnchorChange(l.current)}),o?null:Y.jsx(J.Primitive.div,{...r,ref:c})});ae.displayName=le;var Lt="PopperContent",[Vn,zn]=ie(Lt),fe=R.forwardRef((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:d="optimized",onPlaced:p,...h}=t,w=se(Lt,n),[g,x]=R.useState(null),b=Xt.useComposedRefs(e,ot=>x(ot)),[y,v]=R.useState(null),P=Pe.useSize(y),O=P?.width??0,M=P?.height??0,F=o+(i!=="center"?"-"+i:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(a)?a:[a],k=$.length>0,S={padding:L,boundary:$.filter(Xn),altBoundary:k},{refs:C,floatingStyles:N,placement:E,isPositioned:D,middlewareData:A}=Dn({strategy:"fixed",placement:F,whileElementsMounted:(...ot)=>yn(...ot,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[Mn({mainAxis:r+M,alignmentAxis:s}),l&&Tn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?$n():void 0,...S}),l&&kn({...S}),Fn({...S,apply:({elements:ot,rects:Tt,availableWidth:ye,availableHeight:ve})=>{const{width:be,height:Ae}=Tt.reference,ct=ot.floating.style;ct.setProperty("--radix-popper-available-width",`${ye}px`),ct.setProperty("--radix-popper-available-height",`${ve}px`),ct.setProperty("--radix-popper-anchor-width",`${be}px`),ct.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),y&&_n({element:y,padding:c}),Yn({arrowWidth:O,arrowHeight:M}),m&&Nn({strategy:"referenceHidden",...S})]}),[T,j]=pe(E),Mt=Oe.useCallbackRef(p);J.useLayoutEffect2(()=>{D&&Mt?.()},[D,Mt]);const me=A.arrow?.x,he=A.arrow?.y,ge=A.arrow?.centerOffset!==0,[we,xe]=R.useState();return J.useLayoutEffect2(()=>{g&&xe(window.getComputedStyle(g).zIndex)},[g]),Y.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:D?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:Y.jsx(Vn,{scope:n,placedSide:T,onArrowChange:v,arrowX:me,arrowY:he,shouldHideArrow:ge,children:Y.jsx(J.Primitive.div,{"data-side":T,"data-align":j,...h,ref:b,style:{...h.style,animation:D?void 0:"none"}})})})});fe.displayName=Lt;var ue="PopperArrow",In={top:"bottom",right:"left",bottom:"top",left:"right"},de=R.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=zn(ue,o),s=In[i.placedSide];return Y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:Y.jsx(Hn,{...r,ref:n,style:{...r.style,display:"block"}})})});de.displayName=ue;function Xn(t){return t!==null}var Yn=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,s=r.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=pe(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+c/2,d=(r.arrow?.y??0)+l/2;let p="",h="";return a==="bottom"?(p=s?u:`${m}px`,h=`${-l}px`):a==="top"?(p=s?u:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,h=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,h=s?u:`${d}px`),{data:{x:p,y:h}}}});function pe(t){const[e,n="center"]=t.split("-");return[e,n]}var qn=ce,Un=ae,Zn=fe,Kn=de;exports.Anchor=Un;exports.Arrow=Kn;exports.Content=Zn;exports.Root2=qn;exports.createPopperScope=Bn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("react"),b=require("./index.
|
|
1
|
+
"use strict";const a=require("react"),b=require("./index.eYfYnSCV.js");function d(e){if(e&&typeof e=="object"&&"default"in e)return e;const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const z=d(a);function S(e){const[r,t]=z.useState(void 0);return b.useLayoutEffect2(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const f=o[0];let s,n;if("borderBoxSize"in f){const c=f.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,n=u.blockSize}else s=e.offsetWidth,n=e.offsetHeight;t({width:s,height:n})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else t(void 0)},[e]),r}exports.useSize=S;
|