@konstructio/ui 0.1.2-alpha.105 → 0.1.2-alpha.107

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.
Files changed (263) hide show
  1. package/README.md +118 -31
  2. package/dist/{AdditionalOptions-D0BAS2HG.js → AdditionalOptions-Crcnz0_g.js} +1 -1
  3. package/dist/{AlertDialogTrigger-BGo_acd5.js → AlertDialogTrigger-ouMGAlJW.js} +39 -39
  4. package/dist/{Breadcrumb-Cp3abB2w.js → Breadcrumb-MrF1Z6w2.js} +3 -3
  5. package/dist/{Checkbox-B_ngk9Dj.js → Checkbox-8KnRLpQG.js} +60 -61
  6. package/dist/{CommandInput-BLq69pOT.js → CommandInput-CGnqfudl.js} +4 -4
  7. package/dist/{Counter-BV680M5r.js → Counter-CDXdP1Af.js} +3 -3
  8. package/dist/{DayPicker-kweJz134.js → DayPicker-C22j0Y-u.js} +539 -518
  9. package/dist/{DropdownButton-DfNojmCW.js → DropdownButton-D4QlKGg7.js} +7 -7
  10. package/dist/{FlagSelectorList-CkTR3j6O.js → FlagSelectorList-tYZNl-tz.js} +31 -24
  11. package/dist/{HamburgerTrigger-DRylBL2d.js → HamburgerTrigger-B_NGSZ2r.js} +20 -20
  12. package/dist/{ImageUpload-DiwymQcU.js → ImageUpload-D7HKSXK8.js} +71 -66
  13. package/dist/Input-is8n7emP.js +195 -0
  14. package/dist/{Loading-DUh9PMJN.js → Loading-DO8JOWBV.js} +1 -1
  15. package/dist/{Modal-Dyn088X7.js → Modal-Dq9BHD_9.js} +4 -4
  16. package/dist/{Spinner-CUwE2bLm.js → Spinner-BJE79VTl.js} +1 -1
  17. package/dist/{StepIndicatorContent-CjbjVjS1.js → StepIndicatorContent-BGDvxLzV.js} +1 -1
  18. package/dist/Switch-C7286Bcu.js +199 -0
  19. package/dist/{Toast-3NEz7LLa.js → Toast-jSx3Lao8.js} +8 -7
  20. package/dist/Wrapper-2AUlYAHQ.js +195 -0
  21. package/dist/{Wrapper-CVJSuYWx.js → Wrapper-CyHxGs4E.js} +4 -4
  22. package/dist/{Wrapper-DP6Sxngx.js → Wrapper-a7RVCcrn.js} +248 -242
  23. package/dist/components/Alert/Alert.js +2 -2
  24. package/dist/components/AlertDialog/AlertDialog.js +2 -2
  25. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  26. package/dist/components/AlertDialog/components/index.js +1 -1
  27. package/dist/components/Autocomplete/Autocomplete.js +1 -1
  28. package/dist/components/Autocomplete/components/List/List.js +1 -1
  29. package/dist/components/Autocomplete/hooks/useAutocomplete.js +27 -25
  30. package/dist/components/Autocomplete/hooks/useNavigationList.js +2 -3
  31. package/dist/components/Badge/Badge.js +2 -2
  32. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  33. package/dist/components/Breadcrumb/components/BackButton/BackButton.js +2 -2
  34. package/dist/components/Breadcrumb/components/Item/Item.js +2 -2
  35. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  36. package/dist/components/Button/Button.js +1 -1
  37. package/dist/components/ButtonGroup/ButtonGroup.js +65 -60
  38. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +2 -2
  39. package/dist/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.js +10 -9
  40. package/dist/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.js +8 -6
  41. package/dist/components/Card/Card.js +25 -22
  42. package/dist/components/Checkbox/Checkbox.js +1 -1
  43. package/dist/components/Command/Command.js +2 -2
  44. package/dist/components/Command/components/Command.js +1 -1
  45. package/dist/components/Command/components/CommandEmpty.js +1 -1
  46. package/dist/components/Command/components/CommandGroup.js +2 -2
  47. package/dist/components/Command/components/CommandInput.js +1 -1
  48. package/dist/components/Command/components/CommandItem.js +2 -2
  49. package/dist/components/Command/components/CommandList.js +2 -2
  50. package/dist/components/Command/components/CommandSeparator.js +2 -2
  51. package/dist/components/Command/components/CommandShortcut.js +1 -1
  52. package/dist/components/Command/components/DialogContent.js +3 -3
  53. package/dist/components/Command/components/DialogOverlay.js +2 -2
  54. package/dist/components/Command/components/index.js +1 -1
  55. package/dist/components/Counter/Counter.js +1 -1
  56. package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
  57. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarDivider/CalendarDivider.js +1 -1
  58. package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +3 -3
  59. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +3 -3
  60. package/dist/components/DateRangePicker/components/CalendarPanel/components/NavigationButton/NavigationButton.js +1 -1
  61. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +2 -2
  62. package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
  63. package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
  64. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
  65. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +30 -28
  66. package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +23 -21
  67. package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
  68. package/dist/components/DateRangePicker/components/DateTimeInputs/DateTimeInputs.js +1 -1
  69. package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +48 -41
  70. package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +48 -41
  71. package/dist/components/DateRangePicker/components/PresetPanel/PresetPanel.js +1 -1
  72. package/dist/components/Datepicker/DatePicker.js +2 -2
  73. package/dist/components/Divider/Divider.js +7 -7
  74. package/dist/components/Drawer/Drawer.js +28 -26
  75. package/dist/components/Drawer/components/Body/Body.js +1 -1
  76. package/dist/components/Drawer/components/Footer/Footer.js +1 -1
  77. package/dist/components/Drawer/components/Header/Header.js +1 -1
  78. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  79. package/dist/components/Filter/Filter.js +1 -1
  80. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +51 -36
  81. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +40 -38
  82. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +1 -1
  83. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
  84. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +1 -1
  85. package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.js +1 -1
  86. package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +2 -2
  87. package/dist/components/Filter/components/ResetButton/ResetButton.js +1 -1
  88. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +43 -41
  89. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +1 -1
  90. package/dist/components/Filter/utils/index.js +1 -1
  91. package/dist/components/ImageUpload/ImageUpload.js +1 -1
  92. package/dist/components/Input/Input.js +1 -1
  93. package/dist/components/LineChart/LineChart.js +2 -2
  94. package/dist/components/Loading/Loading.js +1 -1
  95. package/dist/components/Modal/Modal.js +1 -1
  96. package/dist/components/Modal/components/Body/Body.js +1 -1
  97. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  98. package/dist/components/Modal/components/Header/Header.js +1 -1
  99. package/dist/components/Modal/components/Wrapper/Wrapper.js +1 -1
  100. package/dist/components/Modal/components/index.js +1 -1
  101. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +1 -1
  102. package/dist/components/MultiSelectDropdown/components/Item/Item.js +1 -1
  103. package/dist/components/MultiSelectDropdown/components/List/List.js +1 -1
  104. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +1 -1
  105. package/dist/components/MultiSelectDropdown/components/index.js +1 -1
  106. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +4 -3
  107. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +17 -16
  108. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +11 -11
  109. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +2 -2
  110. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +1 -1
  111. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +1 -1
  112. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +3 -3
  113. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +3 -3
  114. package/dist/components/PhoneNumberInput/components/Wrapper.js +1 -1
  115. package/dist/components/PhoneNumberInput/components/index.js +2 -2
  116. package/dist/components/PhoneNumberInput/contexts/index.js +1 -1
  117. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +1 -1
  118. package/dist/components/PhoneNumberInput/utils/index.js +1 -1
  119. package/dist/components/PieChart/PieChart.js +31 -28
  120. package/dist/components/ProgressBar/ProgressBar.js +1 -1
  121. package/dist/components/Radio/Radio.js +1 -1
  122. package/dist/components/RadioCard/RadioCard.js +1 -1
  123. package/dist/components/RadioCardGroup/RadioCardGroup.js +1 -1
  124. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  125. package/dist/components/Range/Range.js +2 -2
  126. package/dist/components/Select/Select.js +43 -36
  127. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.js +1 -1
  128. package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.variants.js +1 -1
  129. package/dist/components/Select/components/List/List.js +78 -67
  130. package/dist/components/Select/components/ListItem/ListItem.js +1 -1
  131. package/dist/components/Select/components/Wrapper.js +1 -1
  132. package/dist/components/Select/components/index.js +2 -2
  133. package/dist/components/Select/hooks/useNavigationList.js +2 -3
  134. package/dist/components/Select/hooks/useSelect.js +8 -8
  135. package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.js +1 -1
  136. package/dist/components/Sidebar/components/Footer/Footer.js +1 -1
  137. package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.js +1 -1
  138. package/dist/components/Sidebar/components/Label/Label.js +1 -1
  139. package/dist/components/Sidebar/components/Logo/Logo.js +1 -1
  140. package/dist/components/Sidebar/components/Navigation/Navigation.js +1 -1
  141. package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.js +1 -1
  142. package/dist/components/Sidebar/components/NavigationOption/NavigationOption.js +2 -2
  143. package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.js +1 -1
  144. package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -1
  145. package/dist/components/Sidebar/components/Wrapper/Wrapper.js +25 -24
  146. package/dist/components/Sidebar/components/index.js +1 -1
  147. package/dist/components/Slider/Slider.js +2 -2
  148. package/dist/components/Spinner/Spinner.js +1 -1
  149. package/dist/components/Stepper/Stepper.js +1 -1
  150. package/dist/components/Stepper/components/HorizontalStepItem/HorizontalStepItem.js +2 -2
  151. package/dist/components/Stepper/components/StepConnector/StepConnector.js +1 -1
  152. package/dist/components/Stepper/components/StepIndicatorContent/StepIndicatorContent.js +1 -1
  153. package/dist/components/Stepper/components/VerticalStepItem/VerticalStepItem.js +2 -2
  154. package/dist/components/Switch/Switch.js +1 -1
  155. package/dist/components/Switch/Switch.variants.js +15 -7
  156. package/dist/components/Table/Table.js +1 -1
  157. package/dist/components/Table/components/Body.js +1 -1
  158. package/dist/components/Table/components/Filter.js +1 -1
  159. package/dist/components/Table/components/Head.js +1 -1
  160. package/dist/components/Table/components/Row.js +1 -1
  161. package/dist/components/Tabs/Tabs.js +2 -2
  162. package/dist/components/Tabs/components/Content.js +2 -2
  163. package/dist/components/Tabs/components/List.js +2 -2
  164. package/dist/components/Tabs/components/Trigger.js +2 -2
  165. package/dist/components/Tag/Tag.js +8 -8
  166. package/dist/components/TagSelect/TagSelect.js +1 -1
  167. package/dist/components/TagSelect/components/Item/Item.js +1 -1
  168. package/dist/components/TagSelect/components/List/List.js +1 -1
  169. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +1 -1
  170. package/dist/components/TagSelect/components/index.js +1 -1
  171. package/dist/components/TagSelect/hooks/useTagSelect.js +11 -11
  172. package/dist/components/TextArea/TextArea.js +71 -26
  173. package/dist/components/TextArea/TextArea.variants.js +49 -13
  174. package/dist/components/TimePicker/components/HoursList/HoursList.js +1 -1
  175. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +1 -1
  176. package/dist/components/TimePicker/components/MinutesList/MinutesList.js +1 -1
  177. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +114 -99
  178. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +19 -18
  179. package/dist/components/Toast/Toast.js +1 -1
  180. package/dist/components/Tooltip/Tooltip.js +2 -2
  181. package/dist/components/Typography/Typography.js +19 -16
  182. package/dist/components/VirtualizedTable/VirtualizedTable.js +2 -2
  183. package/dist/components/VirtualizedTable/components/Actions/Actions.js +1 -1
  184. package/dist/components/VirtualizedTable/components/Body/Body.js +2 -2
  185. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +1 -1
  186. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +2 -2
  187. package/dist/components/VirtualizedTable/components/ExpandableRow/ExpandableRow.js +1 -1
  188. package/dist/components/VirtualizedTable/components/Filter/Filter.js +4 -4
  189. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
  190. package/dist/components/VirtualizedTable/components/Header/Header.js +2 -2
  191. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +1 -1
  192. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +1 -1
  193. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +3 -3
  194. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +1 -1
  195. package/dist/components/VirtualizedTable/contexts/index.js +1 -1
  196. package/dist/components/VirtualizedTable/contexts/table.provider.js +1 -1
  197. package/dist/components/index.js +12 -12
  198. package/dist/{components-Cf345jTv.js → components-CaEW5ge4.js} +32 -32
  199. package/dist/{constants-CxJJRVK3.js → constants-HQIXhj2t.js} +2 -2
  200. package/dist/contexts/index.js +1 -1
  201. package/dist/contexts/theme.provider.js +1 -1
  202. package/dist/{debounce-C5Ycjilj.js → debounce-BdyZeJQk.js} +2 -2
  203. package/dist/{dist-DFCz63oC2.js → dist-9WbMf_jT.js} +158 -159
  204. package/dist/{dist-tGUUcv8n.js → dist-AxOGvL82.js} +114 -115
  205. package/dist/{dist-DDck_2lb.js → dist-BIBFLVt1.js} +117 -116
  206. package/dist/{dist-BZNE2Tnx.js → dist-BbX4Nrk2.js} +1 -1
  207. package/dist/{dist-BaPW7qXd2.js → dist-BnCbAI-c.js} +1 -1
  208. package/dist/{dist-BdobXn93.js → dist-CszFjHAP.js} +2 -2
  209. package/dist/{dist-C3YVLapk.js → dist-DO3apbIh.js} +24 -24
  210. package/dist/{dist-CzKqHuqJ2.js → dist-DwxO2RoR.js} +38 -38
  211. package/dist/{dist-AihTpWdF.js → dist-iUAHw-3y.js} +272 -272
  212. package/dist/{dist-BlPTJNIm.js → dist-pxvIAJzo.js} +2 -2
  213. package/dist/es2015-B_07N-UL.js +796 -0
  214. package/dist/hooks/useMediaQuery.js +1 -1
  215. package/dist/index.js +14 -14
  216. package/dist/{isObject-BeFFiVJK.js → isObject-pLoSfdr0.js} +1 -1
  217. package/dist/lib/components/ButtonGroup/components/ButtonGroupLabel/ButtonGroupLabel.types.d.ts +1 -1
  218. package/dist/lib/components/ButtonGroup/components/ButtonGroupMessage/ButtonGroupMessage.types.d.ts +2 -0
  219. package/dist/lib/components/Card/Card.types.d.ts +1 -0
  220. package/dist/lib/components/Checkbox/Checkbox.d.ts +1 -1
  221. package/dist/lib/components/Checkbox/Checkbox.types.d.ts +2 -1
  222. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.types.d.ts +1 -0
  223. package/dist/lib/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.types.d.ts +1 -0
  224. package/dist/lib/components/Divider/Divider.d.ts +3 -2
  225. package/dist/lib/components/Divider/Divider.types.d.ts +4 -0
  226. package/dist/lib/components/Input/Input.types.d.ts +4 -0
  227. package/dist/lib/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +2 -0
  228. package/dist/lib/components/MultiSelectDropdown/contexts/MultiSelectDropdown.types.d.ts +2 -0
  229. package/dist/lib/components/Select/Select.types.d.ts +2 -0
  230. package/dist/lib/components/Select/components/List/List.types.d.ts +3 -0
  231. package/dist/lib/components/Select/components/Wrapper.d.ts +2 -0
  232. package/dist/lib/components/Sidebar/Sidebar.types.d.ts +2 -0
  233. package/dist/lib/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.types.d.ts +2 -0
  234. package/dist/lib/components/Switch/Switch.variants.d.ts +3 -1
  235. package/dist/lib/components/Tag/Tag.types.d.ts +1 -0
  236. package/dist/lib/components/TextArea/TextArea.d.ts +6 -0
  237. package/dist/lib/components/TextArea/TextArea.types.d.ts +13 -2
  238. package/dist/lib/components/TextArea/TextArea.variants.d.ts +4 -1
  239. package/dist/lib/components/TimePicker/TimePicker.types.d.ts +4 -0
  240. package/dist/lib/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +1 -0
  241. package/dist/lib/utils/index.d.ts +1 -0
  242. package/dist/{libphonenumber-hGupNnJu.js → libphonenumber-BMq3Thej.js} +356 -347
  243. package/dist/package.json +27 -27
  244. package/dist/{phone-number.provider-BxQCTxp8.js → phone-number.provider-Dkq_p1Gi.js} +2 -2
  245. package/dist/{prop-types-CfEYxTbR.js → prop-types-BCUW56rg.js} +1 -1
  246. package/dist/{react-CvUtBTMg.js → react-7zQ6bvbE.js} +837 -828
  247. package/dist/{rolldown-runtime-Ck3dxwZt.js → rolldown-runtime-Dw9YIBcH.js} +1 -1
  248. package/dist/styles.css +1 -1
  249. package/dist/{table.provider-B0BafHuU.js → table.provider-CWzODR1t.js} +96 -96
  250. package/dist/{theme.provider-Dw4O3ocC.js → theme.provider-CSL1WCYG.js} +1 -1
  251. package/dist/{useBreadcrumb-DYfZL_2p.js → useBreadcrumb-Ds_9BeFz.js} +7 -6
  252. package/dist/utils/index.js +6 -5
  253. package/dist/{utils-Cx-WzRZF.js → utils-B-6R7kNE.js} +8 -4
  254. package/dist/{utils-B-BTGYA5.js → utils-DVYdP0CJ.js} +2 -3
  255. package/dist/{x-BI9jmc7e.js → x-Ierxf0uI.js} +2 -2
  256. package/package.json +27 -27
  257. package/dist/Input-Cf44DzfE.js +0 -188
  258. package/dist/Switch-aPhL5rNG.js +0 -196
  259. package/dist/Wrapper-R8fik3ah.js +0 -182
  260. package/dist/es2015-DigR3dar.js +0 -795
  261. /package/dist/{dist-DGOjiAnB2.js → dist-DGOjiAnB.js} +0 -0
  262. /package/dist/{dist-pWlMx4Fi2.js → dist-pWlMx4Fi.js} +0 -0
  263. /package/dist/{x-a_LpoXzG2.js → x-a_LpoXzG.js} +0 -0
@@ -2,7 +2,7 @@ import { a as Xt } from "./dist-xCbHbMLA.js";
2
2
  import { t as Ot } from "./dist-CCdbu9GU.js";
3
3
  import { i as ve, n as xt } from "./dist-D-yS0HN8.js";
4
4
  import { t as xe } from "./dist-D5XYRjmR.js";
5
- import { t as ye } from "./dist-pWlMx4Fi2.js";
5
+ import { t as ye } from "./dist-pWlMx4Fi.js";
6
6
  import * as O from "react";
7
7
  import { useLayoutEffect as be } from "react";
8
8
  import * as Ae from "react-dom";
@@ -117,51 +117,51 @@ function ft(t) {
117
117
  }
118
118
  function kt(t, e, n) {
119
119
  let { reference: r, floating: i } = t;
120
- const o = N(e), s = Et(e), c = St(s), l = U(e), u = o === "y", a = r.x + r.width / 2 - i.width / 2, m = r.y + r.height / 2 - i.height / 2, p = r[c] / 2 - i[c] / 2;
121
- let f;
120
+ const o = N(e), s = Et(e), c = St(s), l = U(e), u = o === "y", f = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, p = r[c] / 2 - i[c] / 2;
121
+ let a;
122
122
  switch (l) {
123
123
  case "top":
124
- f = {
125
- x: a,
124
+ a = {
125
+ x: f,
126
126
  y: r.y - i.height
127
127
  };
128
128
  break;
129
129
  case "bottom":
130
- f = {
131
- x: a,
130
+ a = {
131
+ x: f,
132
132
  y: r.y + r.height
133
133
  };
134
134
  break;
135
135
  case "right":
136
- f = {
136
+ a = {
137
137
  x: r.x + r.width,
138
- y: m
138
+ y: d
139
139
  };
140
140
  break;
141
141
  case "left":
142
- f = {
142
+ a = {
143
143
  x: r.x - i.width,
144
- y: m
144
+ y: d
145
145
  };
146
146
  break;
147
147
  default:
148
- f = {
148
+ a = {
149
149
  x: r.x,
150
150
  y: r.y
151
151
  };
152
152
  }
153
- const d = et(e);
154
- return d && (f[s] += p * (d === "end" ? 1 : -1) * (n && u ? -1 : 1)), f;
153
+ const m = et(e);
154
+ return m && (a[s] += p * (m === "end" ? 1 : -1) * (n && u ? -1 : 1)), a;
155
155
  }
156
156
  async function De(t, e) {
157
157
  var n;
158
158
  e === void 0 && (e = {});
159
- const { x: r, y: i, platform: o, rects: s, elements: c, strategy: l } = t, { boundary: u = "clippingAncestors", rootBoundary: a = "viewport", elementContext: m = "floating", altBoundary: p = !1, padding: f = 0 } = Y(e, t), d = qt(f), h = c[p ? m === "floating" ? "reference" : "floating" : m], g = ft(await o.getClippingRect({
159
+ const { x: r, y: i, platform: o, rects: s, elements: c, strategy: l } = t, { boundary: u = "clippingAncestors", rootBoundary: f = "viewport", elementContext: d = "floating", altBoundary: p = !1, padding: a = 0 } = Y(e, t), m = qt(a), h = c[p ? d === "floating" ? "reference" : "floating" : d], g = ft(await o.getClippingRect({
160
160
  element: (n = await (o.isElement == null ? void 0 : o.isElement(h))) == null || n ? h : h.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(c.floating)),
161
161
  boundary: u,
162
- rootBoundary: a,
162
+ rootBoundary: f,
163
163
  strategy: l
164
- })), w = m === "floating" ? {
164
+ })), w = d === "floating" ? {
165
165
  x: r,
166
166
  y: i,
167
167
  width: s.floating.width,
@@ -176,10 +176,10 @@ async function De(t, e) {
176
176
  strategy: l
177
177
  }) : w);
178
178
  return {
179
- top: (g.top - y.top + d.top) / b.y,
180
- bottom: (y.bottom - g.bottom + d.bottom) / b.y,
181
- left: (g.left - y.left + d.left) / b.x,
182
- right: (y.right - g.right + d.right) / b.x
179
+ top: (g.top - y.top + m.top) / b.y,
180
+ bottom: (y.bottom - g.bottom + m.bottom) / b.y,
181
+ left: (g.left - y.left + m.left) / b.x,
182
+ right: (y.right - g.right + m.right) / b.x
183
183
  };
184
184
  }
185
185
  var Me = 50, _e = async (t, e, n) => {
@@ -191,18 +191,18 @@ var Me = 50, _e = async (t, e, n) => {
191
191
  reference: t,
192
192
  floating: e,
193
193
  strategy: i
194
- }), { x: a, y: m } = kt(u, r, l), p = r, f = 0;
195
- const d = {};
194
+ }), { x: f, y: d } = kt(u, r, l), p = r, a = 0;
195
+ const m = {};
196
196
  for (let h = 0; h < o.length; h++) {
197
197
  const g = o[h];
198
198
  if (!g) continue;
199
199
  const { name: w, fn: v } = g, { x: b, y, data: R, reset: x } = await v({
200
- x: a,
201
- y: m,
200
+ x: f,
201
+ y: d,
202
202
  initialPlacement: r,
203
203
  placement: p,
204
204
  strategy: i,
205
- middlewareData: d,
205
+ middlewareData: m,
206
206
  rects: u,
207
207
  platform: c,
208
208
  elements: {
@@ -210,39 +210,39 @@ var Me = 50, _e = async (t, e, n) => {
210
210
  floating: e
211
211
  }
212
212
  });
213
- a = b ?? a, m = y ?? m, d[w] = {
214
- ...d[w],
213
+ f = b ?? f, d = y ?? d, m[w] = {
214
+ ...m[w],
215
215
  ...R
216
- }, x && f < Me && (f++, typeof x == "object" && (x.placement && (p = x.placement), x.rects && (u = x.rects === !0 ? await s.getElementRects({
216
+ }, x && a < Me && (a++, typeof x == "object" && (x.placement && (p = x.placement), x.rects && (u = x.rects === !0 ? await s.getElementRects({
217
217
  reference: t,
218
218
  floating: e,
219
219
  strategy: i
220
- }) : x.rects), { x: a, y: m } = kt(u, p, l)), h = -1);
220
+ }) : x.rects), { x: f, y: d } = kt(u, p, l)), h = -1);
221
221
  }
222
222
  return {
223
- x: a,
224
- y: m,
223
+ x: f,
224
+ y: d,
225
225
  placement: p,
226
226
  strategy: i,
227
- middlewareData: d
227
+ middlewareData: m
228
228
  };
229
229
  }, Fe = (t) => ({
230
230
  name: "arrow",
231
231
  options: t,
232
232
  async fn(e) {
233
- const { x: n, y: r, placement: i, rects: o, platform: s, elements: c, middlewareData: l } = e, { element: u, padding: a = 0 } = Y(t, e) || {};
233
+ const { x: n, y: r, placement: i, rects: o, platform: s, elements: c, middlewareData: l } = e, { element: u, padding: f = 0 } = Y(t, e) || {};
234
234
  if (u == null) return {};
235
- const m = qt(a), p = {
235
+ const d = qt(f), p = {
236
236
  x: n,
237
237
  y: r
238
- }, f = Et(i), d = St(f), h = await s.getDimensions(u), g = f === "y", w = g ? "top" : "left", v = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", y = o.reference[d] + o.reference[f] - p[f] - o.floating[d], R = p[f] - o.reference[f], x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
238
+ }, a = Et(i), m = St(a), h = await s.getDimensions(u), g = a === "y", w = g ? "top" : "left", v = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", y = o.reference[m] + o.reference[a] - p[a] - o.floating[m], R = p[a] - o.reference[a], x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
239
239
  let A = x ? x[b] : 0;
240
- (!A || !await (s.isElement == null ? void 0 : s.isElement(x))) && (A = c.floating[b] || o.floating[d]);
241
- const C = y / 2 - R / 2, D = A / 2 - h[d] / 2 - 1, $ = K(m[w], D), k = K(m[v], D), H = A - h[d] - k, T = A / 2 - h[d] / 2 + C, S = Yt($, T, H), F = !l.arrow && et(i) != null && T !== S && o.reference[d] / 2 - (T < $ ? $ : k) - h[d] / 2 < 0, E = F ? T < $ ? T - $ : T - H : 0;
240
+ (!A || !await (s.isElement == null ? void 0 : s.isElement(x))) && (A = c.floating[b] || o.floating[m]);
241
+ const C = y / 2 - R / 2, D = A / 2 - h[m] / 2 - 1, $ = K(d[w], D), k = K(d[v], D), H = A - h[m] - k, T = A / 2 - h[m] / 2 + C, S = Yt($, T, H), F = !l.arrow && et(i) != null && T !== S && o.reference[m] / 2 - (T < $ ? $ : k) - h[m] / 2 < 0, E = F ? T < $ ? T - $ : T - H : 0;
242
242
  return {
243
- [f]: p[f] + E,
243
+ [a]: p[a] + E,
244
244
  data: {
245
- [f]: S,
245
+ [a]: S,
246
246
  centerOffset: T - S - E,
247
247
  ...F && { alignmentOffset: E }
248
248
  },
@@ -255,13 +255,13 @@ var Me = 50, _e = async (t, e, n) => {
255
255
  options: t,
256
256
  async fn(e) {
257
257
  var n, r;
258
- const { placement: i, middlewareData: o, rects: s, initialPlacement: c, platform: l, elements: u } = e, { mainAxis: a = !0, crossAxis: m = !0, fallbackPlacements: p, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: d = "none", flipAlignment: h = !0, ...g } = Y(t, e);
258
+ const { placement: i, middlewareData: o, rects: s, initialPlacement: c, platform: l, elements: u } = e, { mainAxis: f = !0, crossAxis: d = !0, fallbackPlacements: p, fallbackStrategy: a = "bestFit", fallbackAxisSideDirection: m = "none", flipAlignment: h = !0, ...g } = Y(t, e);
259
259
  if ((n = o.arrow) != null && n.alignmentOffset) return {};
260
- const w = U(i), v = N(c), b = U(c) === c, y = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), R = p || (b || !h ? [at(c)] : Ce(c)), x = d !== "none";
261
- !p && x && R.push(...Te(c, h, d, y));
260
+ const w = U(i), v = N(c), b = U(c) === c, y = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), R = p || (b || !h ? [at(c)] : Ce(c)), x = m !== "none";
261
+ !p && x && R.push(...Te(c, h, m, y));
262
262
  const A = [c, ...R], C = await l.detectOverflow(e, g), D = [];
263
263
  let $ = ((r = o.flip) == null ? void 0 : r.overflows) || [];
264
- if (a && D.push(C[w]), m) {
264
+ if (f && D.push(C[w]), d) {
265
265
  const S = Oe(i, s, y);
266
266
  D.push(C[S[0]], C[S[1]]);
267
267
  }
@@ -271,7 +271,7 @@ var Me = 50, _e = async (t, e, n) => {
271
271
  }], !D.every((S) => S <= 0)) {
272
272
  var k, H;
273
273
  const S = (((k = o.flip) == null ? void 0 : k.index) || 0) + 1, F = A[S];
274
- if (F && (!(m === "alignment" && v !== N(F)) || $.every((M) => N(M.placement) === v ? M.overflows[0] > 0 : !0)))
274
+ if (F && (!(d === "alignment" && v !== N(F)) || $.every((M) => N(M.placement) === v ? M.overflows[0] > 0 : !0)))
275
275
  return {
276
276
  data: {
277
277
  index: S,
@@ -280,7 +280,7 @@ var Me = 50, _e = async (t, e, n) => {
280
280
  reset: { placement: F }
281
281
  };
282
282
  let E = (H = $.filter((M) => M.overflows[0] <= 0).sort((M, P) => M.overflows[1] - P.overflows[1])[0]) == null ? void 0 : H.placement;
283
- if (!E) switch (f) {
283
+ if (!E) switch (a) {
284
284
  case "bestFit": {
285
285
  var T;
286
286
  const M = (T = $.filter((P) => {
@@ -295,7 +295,6 @@ var Me = 50, _e = async (t, e, n) => {
295
295
  }
296
296
  case "initialPlacement":
297
297
  E = c;
298
- break;
299
298
  }
300
299
  if (i !== E) return { reset: { placement: E } };
301
300
  }
@@ -348,22 +347,22 @@ var ke = function(t) {
348
347
  };
349
348
  }, Kt = /* @__PURE__ */ new Set(["left", "top"]);
350
349
  async function He(t, e) {
351
- const { placement: n, platform: r, elements: i } = t, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = U(n), c = et(n), l = N(n) === "y", u = Kt.has(s) ? -1 : 1, a = o && l ? -1 : 1, m = Y(e, t);
352
- let { mainAxis: p, crossAxis: f, alignmentAxis: d } = typeof m == "number" ? {
353
- mainAxis: m,
350
+ const { placement: n, platform: r, elements: i } = t, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = U(n), c = et(n), l = N(n) === "y", u = Kt.has(s) ? -1 : 1, f = o && l ? -1 : 1, d = Y(e, t);
351
+ let { mainAxis: p, crossAxis: a, alignmentAxis: m } = typeof d == "number" ? {
352
+ mainAxis: d,
354
353
  crossAxis: 0,
355
354
  alignmentAxis: null
356
355
  } : {
357
- mainAxis: m.mainAxis || 0,
358
- crossAxis: m.crossAxis || 0,
359
- alignmentAxis: m.alignmentAxis
356
+ mainAxis: d.mainAxis || 0,
357
+ crossAxis: d.crossAxis || 0,
358
+ alignmentAxis: d.alignmentAxis
360
359
  };
361
- return c && typeof d == "number" && (f = c === "end" ? d * -1 : d), l ? {
362
- x: f * a,
360
+ return c && typeof m == "number" && (a = c === "end" ? m * -1 : m), l ? {
361
+ x: a * f,
363
362
  y: p * u
364
363
  } : {
365
364
  x: p * u,
366
- y: f * a
365
+ y: a * f
367
366
  };
368
367
  }
369
368
  var Ne = function(t) {
@@ -394,16 +393,16 @@ var Ne = function(t) {
394
393
  x: b,
395
394
  y
396
395
  };
397
- } }, ...u } = Y(t, e), a = {
396
+ } }, ...u } = Y(t, e), f = {
398
397
  x: n,
399
398
  y: r
400
- }, m = await o.detectOverflow(e, u), p = N(i), f = Ct(p);
401
- let d = a[f], h = a[p];
402
- const g = (v, b) => Yt(b + m[v === "y" ? "top" : "left"], b, b - m[v === "y" ? "bottom" : "right"]);
403
- s && (d = g(f, d)), c && (h = g(p, h));
399
+ }, d = await o.detectOverflow(e, u), p = N(i), a = Ct(p);
400
+ let m = f[a], h = f[p];
401
+ const g = (v, b) => Yt(b + d[v === "y" ? "top" : "left"], b, b - d[v === "y" ? "bottom" : "right"]);
402
+ s && (m = g(a, m)), c && (h = g(p, h));
404
403
  const w = l.fn({
405
404
  ...e,
406
- [f]: d,
405
+ [a]: m,
407
406
  [p]: h
408
407
  });
409
408
  return {
@@ -412,7 +411,7 @@ var Ne = function(t) {
412
411
  x: w.x - n,
413
412
  y: w.y - r,
414
413
  enabled: {
415
- [f]: s,
414
+ [a]: s,
416
415
  [p]: c
417
416
  }
418
417
  }
@@ -424,11 +423,11 @@ var Ne = function(t) {
424
423
  options: t,
425
424
  fn(e) {
426
425
  var n, r;
427
- const { x: i, y: o, placement: s, rects: c, middlewareData: l } = e, { offset: u = 0, mainAxis: a = !0, crossAxis: m = !0 } = Y(t, e), p = {
426
+ const { x: i, y: o, placement: s, rects: c, middlewareData: l } = e, { offset: u = 0, mainAxis: f = !0, crossAxis: d = !0 } = Y(t, e), p = {
428
427
  x: i,
429
428
  y: o
430
- }, f = N(s), d = Ct(f);
431
- let h = p[d], g = p[f];
429
+ }, a = N(s), m = Ct(a);
430
+ let h = p[m], g = p[a];
432
431
  const w = Y(u, e), v = typeof w == "number" ? {
433
432
  mainAxis: w,
434
433
  crossAxis: 0
@@ -436,18 +435,18 @@ var Ne = function(t) {
436
435
  mainAxis: (n = w.mainAxis) != null ? n : 0,
437
436
  crossAxis: (r = w.crossAxis) != null ? r : 0
438
437
  };
439
- if (a) {
440
- const R = d === "y" ? "height" : "width", x = c.reference[d] - c.floating[R] + v.mainAxis, A = c.reference[d] + c.reference[R] - v.mainAxis;
438
+ if (f) {
439
+ const R = m === "y" ? "height" : "width", x = c.reference[m] - c.floating[R] + v.mainAxis, A = c.reference[m] + c.reference[R] - v.mainAxis;
441
440
  h < x ? h = x : h > A && (h = A);
442
441
  }
443
- if (m) {
442
+ if (d) {
444
443
  var b, y;
445
- const R = d === "y" ? "width" : "height", x = Kt.has(U(s)), A = c.reference[f] - c.floating[R] + (x && ((b = l.offset) == null ? void 0 : b[f]) || 0) + (x ? 0 : v.crossAxis), C = c.reference[f] + c.reference[R] + (x ? 0 : ((y = l.offset) == null ? void 0 : y[f]) || 0) - (x ? v.crossAxis : 0);
444
+ const R = m === "y" ? "width" : "height", x = Kt.has(U(s)), A = c.reference[a] - c.floating[R] + (x && ((b = l.offset) == null ? void 0 : b[a]) || 0) + (x ? 0 : v.crossAxis), C = c.reference[a] + c.reference[R] + (x ? 0 : ((y = l.offset) == null ? void 0 : y[a]) || 0) - (x ? v.crossAxis : 0);
446
445
  g < A ? g = A : g > C && (g = C);
447
446
  }
448
447
  return {
449
- [d]: h,
450
- [f]: g
448
+ [m]: h,
449
+ [a]: g
451
450
  };
452
451
  }
453
452
  };
@@ -457,18 +456,18 @@ var Ne = function(t) {
457
456
  options: t,
458
457
  async fn(e) {
459
458
  const { placement: n, rects: r, platform: i, elements: o } = e, { apply: s = () => {
460
- }, ...c } = Y(t, e), l = await i.detectOverflow(e, c), u = U(n), a = et(n), m = N(n) === "y", { width: p, height: f } = r.floating;
461
- let d, h;
462
- u === "top" || u === "bottom" ? (d = u, h = a === (await (i.isRTL == null ? void 0 : i.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (h = u, d = a === "end" ? "top" : "bottom");
463
- const g = f - l.top - l.bottom, w = p - l.left - l.right, v = K(f - l[d], g), b = K(p - l[h], w), y = e.middlewareData.shift, R = !y;
459
+ }, ...c } = Y(t, e), l = await i.detectOverflow(e, c), u = U(n), f = et(n), d = N(n) === "y", { width: p, height: a } = r.floating;
460
+ let m, h;
461
+ u === "top" || u === "bottom" ? (m = u, h = f === (await (i.isRTL == null ? void 0 : i.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (h = u, m = f === "end" ? "top" : "bottom");
462
+ const g = a - l.top - l.bottom, w = p - l.left - l.right, v = K(a - l[m], g), b = K(p - l[h], w), y = e.middlewareData.shift, R = !y;
464
463
  let x = v, A = b;
465
- y != null && y.enabled.x && (A = w), y != null && y.enabled.y && (x = g), R && !a && (m ? A = p - 2 * I(l.left, l.right) : x = f - 2 * I(l.top, l.bottom)), await s({
464
+ y != null && y.enabled.x && (A = w), y != null && y.enabled.y && (x = g), R && !f && (d ? A = p - 2 * I(l.left, l.right) : x = a - 2 * I(l.top, l.bottom)), await s({
466
465
  ...e,
467
466
  availableWidth: A,
468
467
  availableHeight: x
469
468
  });
470
469
  const C = await i.getDimensions(o.floating);
471
- return p !== C.width || f !== C.height ? { reset: { rects: !0 } } : {};
470
+ return p !== C.width || a !== C.height ? { reset: { rects: !0 } } : {};
472
471
  }
473
472
  };
474
473
  };
@@ -609,18 +608,18 @@ function Q(t, e, n, r) {
609
608
  let s = j(1);
610
609
  e && (r ? z(r) && (s = tt(r)) : s = tt(t));
611
610
  const c = Ke(o, n, r) ? Jt(o) : j(0);
612
- let l = (i.left + c.x) / s.x, u = (i.top + c.y) / s.y, a = i.width / s.x, m = i.height / s.y;
611
+ let l = (i.left + c.x) / s.x, u = (i.top + c.y) / s.y, f = i.width / s.x, d = i.height / s.y;
613
612
  if (o && r) {
614
- const p = _(o), f = z(r) ? _(r) : r;
615
- let d = p, h = Pt(d);
616
- for (; h && f !== d; ) {
613
+ const p = _(o), a = z(r) ? _(r) : r;
614
+ let m = p, h = Pt(m);
615
+ for (; h && a !== m; ) {
617
616
  const g = tt(h), w = h.getBoundingClientRect(), v = B(h), b = w.left + (h.clientLeft + parseFloat(v.paddingLeft)) * g.x, y = w.top + (h.clientTop + parseFloat(v.paddingTop)) * g.y;
618
- l *= g.x, u *= g.y, a *= g.x, m *= g.y, l += b, u += y, d = _(h), h = Pt(d);
617
+ l *= g.x, u *= g.y, f *= g.x, d *= g.y, l += b, u += y, m = _(h), h = Pt(m);
619
618
  }
620
619
  }
621
620
  return ft({
622
- width: a,
623
- height: m,
621
+ width: f,
622
+ height: d,
624
623
  x: l,
625
624
  y: u
626
625
  });
@@ -644,17 +643,17 @@ function Ue(t) {
644
643
  scrollLeft: 0,
645
644
  scrollTop: 0
646
645
  }, u = j(1);
647
- const a = j(0), m = Z(r);
648
- if ((m || !o) && ((nt(r) !== "body" || mt(s)) && (l = ht(r)), m)) {
649
- const f = Q(r);
650
- u = tt(r), a.x = f.x + r.clientLeft, a.y = f.y + r.clientTop;
646
+ const f = j(0), d = Z(r);
647
+ if ((d || !o) && ((nt(r) !== "body" || mt(s)) && (l = ht(r)), d)) {
648
+ const a = Q(r);
649
+ u = tt(r), f.x = a.x + r.clientLeft, f.y = a.y + r.clientTop;
651
650
  }
652
- const p = s && !m && !o ? Qt(s, l) : j(0);
651
+ const p = s && !d && !o ? Qt(s, l) : j(0);
653
652
  return {
654
653
  width: n.width * u.x,
655
654
  height: n.height * u.y,
656
- x: n.x * u.x - l.scrollLeft * u.x + a.x + p.x,
657
- y: n.y * u.y - l.scrollTop * u.y + a.y + p.y
655
+ x: n.x * u.x - l.scrollLeft * u.x + f.x + p.x,
656
+ y: n.y * u.y - l.scrollTop * u.y + f.y + p.y
658
657
  };
659
658
  }
660
659
  function Ze(t) {
@@ -675,20 +674,20 @@ var Je = 25;
675
674
  function Qe(t, e, n) {
676
675
  n === void 0 && (n = "viewport");
677
676
  const r = n === "layoutViewport", i = _(t), o = q(t), s = i.visualViewport;
678
- let c = o.clientWidth, l = o.clientHeight, u = 0, a = 0;
677
+ let c = o.clientWidth, l = o.clientHeight, u = 0, f = 0;
679
678
  if (s) {
680
- const m = !Tt() || e === "fixed";
681
- r ? m || (u = -s.offsetLeft, a = -s.offsetTop) : (c = s.width, l = s.height, m && (u = s.offsetLeft, a = s.offsetTop));
679
+ const d = !Tt() || e === "fixed";
680
+ r ? d || (u = -s.offsetLeft, f = -s.offsetTop) : (c = s.width, l = s.height, d && (u = s.offsetLeft, f = s.offsetTop));
682
681
  }
683
682
  if (gt(o) <= 0) {
684
- const m = o.ownerDocument, p = m.body, f = getComputedStyle(p), d = m.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, h = Math.abs(o.clientWidth - p.clientWidth - d), g = getComputedStyle(o).scrollbarGutter === "stable both-edges" ? h / 2 : h;
683
+ const d = o.ownerDocument, p = d.body, a = getComputedStyle(p), m = d.compatMode === "CSS1Compat" && parseFloat(a.marginLeft) + parseFloat(a.marginRight) || 0, h = Math.abs(o.clientWidth - p.clientWidth - m), g = getComputedStyle(o).scrollbarGutter === "stable both-edges" ? h / 2 : h;
685
684
  g <= Je && (c -= g);
686
685
  }
687
686
  return {
688
687
  width: c,
689
688
  height: l,
690
689
  x: u,
691
- y: a
690
+ y: f
692
691
  };
693
692
  }
694
693
  function tn(t, e) {
@@ -724,22 +723,22 @@ function en(t, e) {
724
723
  let s = o ? J(t) : t;
725
724
  for (; z(s) && !rt(s); ) {
726
725
  const c = B(s), l = Lt(s), u = i ? i.position : o ? "fixed" : "";
727
- !l && (u === "fixed" || u === "absolute" && c.position === "static") ? r = r.filter((a) => a !== s) : i = c, s = J(s);
726
+ !l && (u === "fixed" || u === "absolute" && c.position === "static") ? r = r.filter((f) => f !== s) : i = c, s = J(s);
728
727
  }
729
728
  return e.set(t, r), r;
730
729
  }
731
730
  function nn(t) {
732
731
  let { element: e, boundary: n, rootBoundary: r, strategy: i } = t;
733
732
  const o = [...n === "clippingAncestors" ? pt(e) ? [] : en(e, this._c) : [].concat(n), r], s = Bt(e, o[0], i);
734
- let c = s.top, l = s.right, u = s.bottom, a = s.left;
735
- for (let m = 1; m < o.length; m++) {
736
- const p = Bt(e, o[m], i);
737
- c = I(p.top, c), l = K(p.right, l), u = K(p.bottom, u), a = I(p.left, a);
733
+ let c = s.top, l = s.right, u = s.bottom, f = s.left;
734
+ for (let d = 1; d < o.length; d++) {
735
+ const p = Bt(e, o[d], i);
736
+ c = I(p.top, c), l = K(p.right, l), u = K(p.bottom, u), f = I(p.left, f);
738
737
  }
739
738
  return {
740
- width: l - a,
739
+ width: l - f,
741
740
  height: u - c,
742
- x: a,
741
+ x: f,
743
742
  y: c
744
743
  };
745
744
  }
@@ -758,8 +757,8 @@ function on(t, e, n) {
758
757
  };
759
758
  const l = j(0);
760
759
  if ((r || !o) && ((nt(e) !== "body" || mt(i)) && (c = ht(e)), r)) {
761
- const a = Q(e, !0, o, e);
762
- l.x = a.x + e.clientLeft, l.y = a.y + e.clientTop;
760
+ const f = Q(e, !0, o, e);
761
+ l.x = f.x + e.clientLeft, l.y = f.y + e.clientTop;
763
762
  }
764
763
  !r && i && (l.x = gt(i));
765
764
  const u = i && !r && !o ? Qt(i, c) : j(0);
@@ -828,22 +827,22 @@ function an(t, e, n) {
828
827
  let r = null, i;
829
828
  const o = q(t);
830
829
  function s() {
831
- var a;
832
- clearTimeout(i), (a = r) == null || a.disconnect(), r = null;
830
+ var f;
831
+ clearTimeout(i), (f = r) == null || f.disconnect(), r = null;
833
832
  }
834
- function c(a, m) {
835
- a === void 0 && (a = !1), m === void 0 && (m = 1), s();
836
- const p = t.getBoundingClientRect(), { left: f, top: d, width: h, height: g } = p;
837
- if (a || e(), !h || !g) return;
838
- const w = st(d), v = st(o.clientWidth - (f + h)), b = st(o.clientHeight - (d + g)), y = st(f), R = {
833
+ function c(f, d) {
834
+ f === void 0 && (f = !1), d === void 0 && (d = 1), s();
835
+ const p = t.getBoundingClientRect(), { left: a, top: m, width: h, height: g } = p;
836
+ if (f || e(), !h || !g) return;
837
+ const w = st(m), v = st(o.clientWidth - (a + h)), b = st(o.clientHeight - (m + g)), y = st(a), R = {
839
838
  rootMargin: -w + "px " + -v + "px " + -b + "px " + -y + "px",
840
- threshold: I(0, K(1, m)) || 1
839
+ threshold: I(0, K(1, d)) || 1
841
840
  };
842
841
  let x = !0;
843
842
  function A(C) {
844
843
  const D = C[0].intersectionRatio;
845
844
  if (!ee(p, t.getBoundingClientRect())) return c();
846
- if (D !== m) {
845
+ if (D !== d) {
847
846
  if (!x) return c();
848
847
  D ? c(!1, D) : i = setTimeout(() => {
849
848
  c(!1, 1e-7);
@@ -868,30 +867,30 @@ function an(t, e, n) {
868
867
  }
869
868
  function fn(t, e, n, r) {
870
869
  r === void 0 && (r = {});
871
- const { ancestorScroll: i = !0, ancestorResize: o = !0, elementResize: s = typeof ResizeObserver == "function", layoutShift: c = typeof IntersectionObserver == "function", animationFrame: l = !1 } = r, u = $t(t), a = i || o ? [...u ? ot(u) : [], ...e ? ot(e) : []] : [];
872
- a.forEach((w) => {
870
+ const { ancestorScroll: i = !0, ancestorResize: o = !0, elementResize: s = typeof ResizeObserver == "function", layoutShift: c = typeof IntersectionObserver == "function", animationFrame: l = !1 } = r, u = $t(t), f = i || o ? [...u ? ot(u) : [], ...e ? ot(e) : []] : [];
871
+ f.forEach((w) => {
873
872
  i && w.addEventListener("scroll", n), o && w.addEventListener("resize", n);
874
873
  });
875
- const m = u && c ? an(u, n, o) : null;
876
- let p = -1, f = null;
877
- s && (f = new ResizeObserver((w) => {
874
+ const d = u && c ? an(u, n, o) : null;
875
+ let p = -1, a = null;
876
+ s && (a = new ResizeObserver((w) => {
878
877
  let [v] = w;
879
- v && v.target === u && f && e && (f.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
878
+ v && v.target === u && a && e && (a.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
880
879
  var b;
881
- (b = f) == null || b.observe(e);
880
+ (b = a) == null || b.observe(e);
882
881
  })), n();
883
- }), u && !l && f.observe(u), e && f.observe(e));
884
- let d, h = l ? Q(t) : null;
882
+ }), u && !l && a.observe(u), e && a.observe(e));
883
+ let m, h = l ? Q(t) : null;
885
884
  l && g();
886
885
  function g() {
887
886
  const w = Q(t);
888
- h && !ee(h, w) && n(), h = w, d = requestAnimationFrame(g);
887
+ h && !ee(h, w) && n(), h = w, m = requestAnimationFrame(g);
889
888
  }
890
889
  return n(), () => {
891
890
  var w;
892
- a.forEach((v) => {
891
+ f.forEach((v) => {
893
892
  i && v.removeEventListener("scroll", n), o && v.removeEventListener("resize", n);
894
- }), m?.(), (w = f) == null || w.disconnect(), f = null, l && cancelAnimationFrame(d);
893
+ }), d?.(), (w = a) == null || w.disconnect(), a = null, l && cancelAnimationFrame(m);
895
894
  };
896
895
  }
897
896
  var un = Ne, dn = ze, mn = We, pn = Ve, hn = ke, It = Fe, gn = Be, wn = (t, e, n) => {
@@ -943,20 +942,20 @@ function At(t) {
943
942
  }
944
943
  function vn(t) {
945
944
  t === void 0 && (t = {});
946
- const { placement: e = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: o, floating: s } = {}, transform: c = !0, whileElementsMounted: l, open: u } = t, [a, m] = O.useState({
945
+ const { placement: e = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: o, floating: s } = {}, transform: c = !0, whileElementsMounted: l, open: u } = t, [f, d] = O.useState({
947
946
  x: 0,
948
947
  y: 0,
949
948
  strategy: n,
950
949
  placement: e,
951
950
  middlewareData: {},
952
951
  isPositioned: !1
953
- }), [p, f] = O.useState(r);
954
- ut(p, r) || f(r);
955
- const [d, h] = O.useState(null), [g, w] = O.useState(null), v = O.useCallback((P) => {
952
+ }), [p, a] = O.useState(r);
953
+ ut(p, r) || a(r);
954
+ const [m, h] = O.useState(null), [g, w] = O.useState(null), v = O.useCallback((P) => {
956
955
  P !== x.current && (x.current = P, h(P));
957
956
  }, []), b = O.useCallback((P) => {
958
957
  P !== A.current && (A.current = P, w(P));
959
- }, []), y = o || d, R = s || g, x = O.useRef(null), A = O.useRef(null), C = O.useRef(a), D = l != null, $ = At(l), k = At(i), H = At(u), T = O.useCallback(() => {
958
+ }, []), y = o || m, R = s || g, x = O.useRef(null), A = O.useRef(null), C = O.useRef(f), D = l != null, $ = At(l), k = At(i), H = At(u), T = O.useCallback(() => {
960
959
  if (!x.current || !A.current) return;
961
960
  const P = {
962
961
  placement: e,
@@ -969,7 +968,7 @@ function vn(t) {
969
968
  isPositioned: H.current !== !1
970
969
  };
971
970
  S.current && !ut(C.current, W) && (C.current = W, Ae.flushSync(() => {
972
- m(W);
971
+ d(W);
973
972
  }));
974
973
  });
975
974
  }, [
@@ -980,7 +979,7 @@ function vn(t) {
980
979
  H
981
980
  ]);
982
981
  ct(() => {
983
- u === !1 && C.current.isPositioned && (C.current.isPositioned = !1, m((P) => ({
982
+ u === !1 && C.current.isPositioned && (C.current.isPositioned = !1, d((P) => ({
984
983
  ...P,
985
984
  isPositioned: !1
986
985
  })));
@@ -1015,7 +1014,7 @@ function vn(t) {
1015
1014
  top: 0
1016
1015
  };
1017
1016
  if (!E.floating) return P;
1018
- const L = jt(E.floating, a.x), W = jt(E.floating, a.y);
1017
+ const L = jt(E.floating, f.x), W = jt(E.floating, f.y);
1019
1018
  return c ? {
1020
1019
  ...P,
1021
1020
  transform: "translate(" + L + "px, " + W + "px)",
@@ -1029,17 +1028,17 @@ function vn(t) {
1029
1028
  n,
1030
1029
  c,
1031
1030
  E.floating,
1032
- a.x,
1033
- a.y
1031
+ f.x,
1032
+ f.y
1034
1033
  ]);
1035
1034
  return O.useMemo(() => ({
1036
- ...a,
1035
+ ...f,
1037
1036
  update: T,
1038
1037
  refs: F,
1039
1038
  elements: E,
1040
1039
  floatingStyles: M
1041
1040
  }), [
1042
- a,
1041
+ f,
1043
1042
  T,
1044
1043
  F,
1045
1044
  E,
@@ -1137,36 +1136,36 @@ var xn = (t) => {
1137
1136
  children: n
1138
1137
  });
1139
1138
  }, "Popper"), _n = "PopperAnchor", Fn = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ X(function(e, n) {
1140
- const { __scopePopper: r, virtualRef: i, ...o } = e, s = ie(_n, r), c = O.useRef(null), l = s.onAnchorChange, u = Xt(n, O.useCallback((d) => {
1141
- c.current = d, d && l(d);
1142
- }, [l])), a = O.useRef(null);
1139
+ const { __scopePopper: r, virtualRef: i, ...o } = e, s = ie(_n, r), c = O.useRef(null), l = s.onAnchorChange, u = O.useCallback((h) => {
1140
+ c.current = h, h && l(h);
1141
+ }, [l]), f = Xt(n, u), d = O.useRef(null);
1143
1142
  O.useEffect(() => {
1144
1143
  if (!i) return;
1145
- const d = a.current;
1146
- a.current = i.current, d !== a.current && l(a.current);
1144
+ const h = d.current;
1145
+ d.current = i.current, h !== d.current && l(d.current);
1147
1146
  });
1148
- const m = s.placementState && wt(s.placementState), p = m?.[0], f = m?.[1];
1147
+ const p = s.placementState && wt(s.placementState), a = p?.[0], m = p?.[1];
1149
1148
  return i ? null : /* @__PURE__ */ V(Ot.div, {
1150
- "data-radix-popper-side": p,
1151
- "data-radix-popper-align": f,
1149
+ "data-radix-popper-side": a,
1150
+ "data-radix-popper-align": m,
1152
1151
  ...o,
1153
- ref: u
1152
+ ref: f
1154
1153
  });
1155
1154
  }, "PopperAnchor")), se = "PopperContent", [Wn, kn] = oe(se), Hn = /* @__PURE__ */ O.forwardRef(/* @__PURE__ */ X(function(e, n) {
1156
- const { __scopePopper: r, side: i = "bottom", sideOffset: o = 0, align: s = "center", alignOffset: c = 0, arrowPadding: l = 0, avoidCollisions: u = !0, collisionBoundary: a = [], collisionPadding: m = 0, sticky: p = "partial", hideWhenDetached: f = !1, updatePositionStrategy: d = "optimized", onPlaced: h, ...g } = e, w = ie(se, r), [v, b] = O.useState(null), y = Xt(n, b), [R, x] = O.useState(null), A = ye(R), C = A?.width ?? 0, D = A?.height ?? 0, $ = i + (s !== "center" ? "-" + s : ""), k = typeof m == "number" ? m : {
1155
+ const { __scopePopper: r, side: i = "bottom", sideOffset: o = 0, align: s = "center", alignOffset: c = 0, arrowPadding: l = 0, avoidCollisions: u = !0, collisionBoundary: f = [], collisionPadding: d = 0, sticky: p = "partial", hideWhenDetached: a = !1, updatePositionStrategy: m = "optimized", onPlaced: h, ...g } = e, w = ie(se, r), [v, b] = O.useState(null), y = Xt(n, b), [R, x] = O.useState(null), A = ye(R), C = A?.width ?? 0, D = A?.height ?? 0, $ = i + (s !== "center" ? "-" + s : ""), k = typeof d == "number" ? d : {
1157
1156
  top: 0,
1158
1157
  right: 0,
1159
1158
  bottom: 0,
1160
1159
  left: 0,
1161
- ...m
1162
- }, H = Array.isArray(a) ? a : [a], T = H.length > 0, S = {
1160
+ ...d
1161
+ }, H = Array.isArray(f) ? f : [f], T = H.length > 0, S = {
1163
1162
  padding: k,
1164
1163
  boundary: H.filter(ce),
1165
1164
  altBoundary: T
1166
1165
  }, { refs: F, floatingStyles: E, placement: M, isPositioned: P, middlewareData: L } = vn({
1167
1166
  strategy: "fixed",
1168
1167
  placement: $,
1169
- whileElementsMounted: /* @__PURE__ */ X((...vt) => fn(...vt, { animationFrame: d === "always" }), "whileElementsMounted"),
1168
+ whileElementsMounted: /* @__PURE__ */ X((...vt) => fn(...vt, { animationFrame: m === "always" }), "whileElementsMounted"),
1170
1169
  elements: { reference: w.anchor },
1171
1170
  middleware: [
1172
1171
  yn({
@@ -1195,7 +1194,7 @@ var xn = (t) => {
1195
1194
  arrowWidth: C,
1196
1195
  arrowHeight: D
1197
1196
  }),
1198
- f && On({
1197
+ a && On({
1199
1198
  strategy: "referenceHidden",
1200
1199
  ...S,
1201
1200
  boundary: T ? S.boundary : void 0
@@ -1293,15 +1292,15 @@ var Vn = /* @__PURE__ */ X((t) => ({
1293
1292
  name: "transformOrigin",
1294
1293
  options: t,
1295
1294
  fn(e) {
1296
- const { placement: n, rects: r, middlewareData: i } = e, o = i.arrow?.centerOffset !== 0, s = o ? 0 : t.arrowWidth, c = o ? 0 : t.arrowHeight, [l, u] = wt(n), a = {
1295
+ const { placement: n, rects: r, middlewareData: i } = e, o = i.arrow?.centerOffset !== 0, s = o ? 0 : t.arrowWidth, c = o ? 0 : t.arrowHeight, [l, u] = wt(n), f = {
1297
1296
  start: "0%",
1298
1297
  center: "50%",
1299
1298
  end: "100%"
1300
- }[u], m = (i.arrow?.x ?? 0) + s / 2, p = (i.arrow?.y ?? 0) + c / 2;
1301
- let f = "", d = "";
1302
- return l === "bottom" ? (f = o ? a : `${m}px`, d = `${-c}px`) : l === "top" ? (f = o ? a : `${m}px`, d = `${r.floating.height + c}px`) : l === "right" ? (f = `${-c}px`, d = o ? a : `${p}px`) : l === "left" && (f = `${r.floating.width + c}px`, d = o ? a : `${p}px`), { data: {
1303
- x: f,
1304
- y: d
1299
+ }[u], d = (i.arrow?.x ?? 0) + s / 2, p = (i.arrow?.y ?? 0) + c / 2;
1300
+ let a = "", m = "";
1301
+ return l === "bottom" ? (a = o ? f : `${d}px`, m = `${-c}px`) : l === "top" ? (a = o ? f : `${d}px`, m = `${r.floating.height + c}px`) : l === "right" ? (a = `${-c}px`, m = o ? f : `${p}px`) : l === "left" && (a = `${r.floating.width + c}px`, m = o ? f : `${p}px`), { data: {
1302
+ x: a,
1303
+ y: m
1305
1304
  } };
1306
1305
  }
1307
1306
  }), "transformOrigin");