welcome-ui 8.0.0-alpha.0 → 8.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/dist/AXB53BZF-XKOjjeWO.mjs +25 -0
  2. package/dist/Accordion.mjs +30 -23
  3. package/dist/Alert.mjs +76 -70
  4. package/dist/AspectRatio.mjs +8 -10
  5. package/dist/Avatar.mjs +48 -47
  6. package/dist/{BYC7LY2E-CVjUW1dr.mjs → BYC7LY2E-CWSI38FM.mjs} +355 -351
  7. package/dist/Badge.mjs +25 -25
  8. package/dist/Box.mjs +5 -5
  9. package/dist/Breadcrumb.mjs +173 -168
  10. package/dist/Button.mjs +72 -67
  11. package/dist/ButtonGroup.mjs +13 -12
  12. package/dist/Card.mjs +14 -14
  13. package/dist/Checkbox.mjs +2 -2
  14. package/dist/ClearButton.mjs +15 -15
  15. package/dist/CloseButton.mjs +9 -9
  16. package/dist/{CustomInput-D_13Gd_3.mjs → CustomPopper-CZt4RioF.mjs} +3200 -3047
  17. package/dist/DatePicker.mjs +81 -80
  18. package/dist/DateTimePicker.mjs +67 -62
  19. package/dist/DateTimePickerCommon.mjs +1 -1
  20. package/dist/Drawer.mjs +190 -174
  21. package/dist/DropdownMenu.mjs +389 -386
  22. package/dist/Field.mjs +104 -92
  23. package/dist/FieldGroup.mjs +12 -9
  24. package/dist/FileDrop.mjs +613 -576
  25. package/dist/FileUpload.mjs +95 -74
  26. package/dist/Files.mjs +46 -46
  27. package/dist/Flex.mjs +13 -13
  28. package/dist/Grid.mjs +29 -29
  29. package/dist/Hint.mjs +12 -12
  30. package/dist/ITI7HKP4-C89kOQb8.mjs +474 -0
  31. package/dist/Icon.mjs +24 -24
  32. package/dist/Icons.mjs +988 -988
  33. package/dist/IconsFont.mjs +159 -159
  34. package/dist/InputText.mjs +65 -57
  35. package/dist/{JC64G2H7-Dey-8h60.mjs → JC64G2H7-afsomHuH.mjs} +109 -108
  36. package/dist/KUU7WJ55-CzsjuIMv.mjs +61 -0
  37. package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
  38. package/dist/Label.mjs +37 -35
  39. package/dist/Link.mjs +28 -24
  40. package/dist/Loader.mjs +20 -16
  41. package/dist/Logo.mjs +55 -42
  42. package/dist/MTZPJQMC-TybFZCho.mjs +15 -0
  43. package/dist/Modal.mjs +276 -253
  44. package/dist/NLEBE274-oSxMftGy.mjs +84 -0
  45. package/dist/P2CTZE2T-DOT1mNnX.mjs +301 -0
  46. package/dist/P4IRICAX-CWSZLTGz.mjs +37 -0
  47. package/dist/Pagination.mjs +104 -104
  48. package/dist/PasswordInput.mjs +35 -34
  49. package/dist/Picker.mjs +35 -33
  50. package/dist/Popover.mjs +100 -93
  51. package/dist/QYJ6MIDR-DJ-vUdAM.mjs +98 -0
  52. package/dist/Radio.mjs +58 -52
  53. package/dist/RadioGroup.mjs +46 -46
  54. package/dist/RadioTab.mjs +37 -35
  55. package/dist/{SYRFVSLH-cVmYtx36.mjs → SYRFVSLH-B6m278Vb.mjs} +18 -17
  56. package/dist/Search.mjs +175 -161
  57. package/dist/Select.mjs +885 -847
  58. package/dist/Shape.mjs +9 -9
  59. package/dist/Slider.mjs +359 -336
  60. package/dist/Stack.mjs +22 -24
  61. package/dist/Swiper.mjs +324 -311
  62. package/dist/Table.mjs +23 -23
  63. package/dist/Tabs.mjs +250 -245
  64. package/dist/Tag.mjs +51 -49
  65. package/dist/Text.mjs +49 -47
  66. package/dist/Textarea.mjs +39 -39
  67. package/dist/TimePicker.mjs +57 -56
  68. package/dist/Toast.mjs +144 -137
  69. package/dist/Toggle.mjs +27 -24
  70. package/dist/Tooltip.mjs +115 -111
  71. package/dist/UniversalLink.mjs +16 -16
  72. package/dist/VEVQD5MH-0w9Y7Ytc.mjs +20 -0
  73. package/dist/{VGCJ63VH-B39w1tBw.mjs → VGCJ63VH-C0UPBY-5.mjs} +61 -62
  74. package/dist/VariantIcon.mjs +14 -22
  75. package/dist/WelcomeLoader.mjs +4863 -9223
  76. package/dist/WuiProvider.mjs +69 -58
  77. package/dist/X5NMLKT6-BJw3xE-K.mjs +25 -0
  78. package/dist/YV4JVR4I-DPC8mMuG.mjs +344 -0
  79. package/dist/downshift.esm-B7Jil1wW.mjs +1082 -0
  80. package/dist/{field-styles-DLIhqG_8.mjs → field-styles-BVlRlvuu.mjs} +2 -2
  81. package/dist/{hex-to-rgba-BIDK-3ab.mjs → hex-to-rgba-DU_XzKIK.mjs} +2 -2
  82. package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
  83. package/dist/index-5HBq1O6Z.mjs +185 -0
  84. package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
  85. package/dist/{index-BYdkhqH4.mjs → index-CBBbX29m.mjs} +3652 -3584
  86. package/dist/index-CYmF7qCH.mjs +11 -0
  87. package/dist/index-C_k-m0Rl.mjs +36 -0
  88. package/dist/index-D8v_VJ9z.mjs +26 -0
  89. package/dist/{index-BNGGwOCo.mjs → index-DAZ1SYdj.mjs} +7 -7
  90. package/dist/{index-SbQUT2mU.mjs → index-DgSynio4.mjs} +244 -239
  91. package/dist/index-DpkNUfAS.mjs +11 -0
  92. package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
  93. package/dist/{index-BJAZgeHL.mjs → index-QaLwIvZS.mjs} +8 -8
  94. package/dist/{index-BQtDgQBH.mjs → index-SQQQ4dEE.mjs} +8 -8
  95. package/dist/index-i_anpNhw.mjs +66 -0
  96. package/dist/index-wl3X6EM1.mjs +16 -0
  97. package/dist/jsx-runtime-B7I4PJ0H.mjs +613 -0
  98. package/dist/radio-group-C0fUHvam.mjs +52 -0
  99. package/dist/theme.mjs +1175 -1120
  100. package/dist/throttle-CW18pWlW.mjs +13 -0
  101. package/dist/types/components/Accordion/index.d.ts +1 -1
  102. package/dist/types/components/Accordion/styles.d.ts +2 -2
  103. package/dist/types/components/Accordion/theme.d.ts +1 -1
  104. package/dist/types/components/Alert/index.d.ts +2 -2
  105. package/dist/types/components/Alert/styles.d.ts +9 -9
  106. package/dist/types/components/Alert/theme.d.ts +4 -4
  107. package/dist/types/components/Avatar/index.d.ts +2 -3
  108. package/dist/types/components/Avatar/styles.d.ts +8 -8
  109. package/dist/types/components/Avatar/theme.d.ts +3 -3
  110. package/dist/types/components/Avatar/utils.d.ts +1 -1
  111. package/dist/types/components/Badge/index.d.ts +2 -2
  112. package/dist/types/components/Badge/styles.d.ts +5 -5
  113. package/dist/types/components/Badge/theme.d.ts +1 -1
  114. package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
  115. package/dist/types/components/Breadcrumb/index.d.ts +2 -2
  116. package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
  117. package/dist/types/components/Button/index.d.ts +4 -5
  118. package/dist/types/components/Button/styles.d.ts +1 -1
  119. package/dist/types/components/Button/theme.d.ts +7 -7
  120. package/dist/types/components/ButtonGroup/index.d.ts +3 -3
  121. package/dist/types/components/Card/Cover.styles.d.ts +4 -4
  122. package/dist/types/components/Card/index.d.ts +2 -3
  123. package/dist/types/components/Card/theme.d.ts +1 -1
  124. package/dist/types/components/Checkbox/index.d.ts +2 -2
  125. package/dist/types/components/Checkbox/styles.d.ts +1 -1
  126. package/dist/types/components/Checkbox/theme.d.ts +1 -1
  127. package/dist/types/components/ClearButton/index.d.ts +5 -6
  128. package/dist/types/components/ClearButton/styles.d.ts +4 -4
  129. package/dist/types/components/CloseButton/styles.d.ts +4 -4
  130. package/dist/types/components/DatePicker/index.d.ts +3 -3
  131. package/dist/types/components/DateTimePicker/index.d.ts +2 -2
  132. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
  133. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
  134. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  135. package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
  136. package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
  137. package/dist/types/components/DateTimePickerCommon/utils.d.ts +2 -2
  138. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
  139. package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
  140. package/dist/types/components/Drawer/index.d.ts +12 -12
  141. package/dist/types/components/Drawer/styles.d.ts +5 -5
  142. package/dist/types/components/Drawer/theme.d.ts +2 -2
  143. package/dist/types/components/DropdownMenu/index.d.ts +4 -4
  144. package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
  145. package/dist/types/components/Field/index.d.ts +8 -8
  146. package/dist/types/components/Field/styles.d.ts +1 -1
  147. package/dist/types/components/Field/utils.d.ts +1 -1
  148. package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
  149. package/dist/types/components/FileDrop/Message.d.ts +1 -1
  150. package/dist/types/components/FileDrop/index.d.ts +20 -20
  151. package/dist/types/components/FileDrop/theme.d.ts +1 -1
  152. package/dist/types/components/FileUpload/index.d.ts +13 -13
  153. package/dist/types/components/Files/index.d.ts +5 -5
  154. package/dist/types/components/Files/types.d.ts +1 -1
  155. package/dist/types/components/Hint/index.d.ts +1 -2
  156. package/dist/types/components/Hint/theme.d.ts +1 -1
  157. package/dist/types/components/Icon/index.d.ts +3 -3
  158. package/dist/types/components/Icon/styles.d.ts +3 -3
  159. package/dist/types/components/Icon/theme.d.ts +3 -3
  160. package/dist/types/components/Icons/Sun/content.json.d.ts +2 -1
  161. package/dist/types/components/Icons/index.d.ts +2 -2
  162. package/dist/types/components/IconsFont/index.d.ts +2 -3
  163. package/dist/types/components/IconsFont/styles.d.ts +1 -1
  164. package/dist/types/components/InputText/index.d.ts +1 -1
  165. package/dist/types/components/InputText/styles.d.ts +1 -1
  166. package/dist/types/components/Label/index.d.ts +2 -3
  167. package/dist/types/components/Label/theme.d.ts +1 -1
  168. package/dist/types/components/Link/index.d.ts +5 -5
  169. package/dist/types/components/Link/styles.d.ts +4 -4
  170. package/dist/types/components/Link/theme.d.ts +1 -1
  171. package/dist/types/components/Loader/index.d.ts +1 -1
  172. package/dist/types/components/Loader/styles.d.ts +4 -4
  173. package/dist/types/components/Loader/theme.d.ts +4 -4
  174. package/dist/types/components/Logo/Solutions.d.ts +1 -2
  175. package/dist/types/components/Logo/Symbol.d.ts +1 -2
  176. package/dist/types/components/Logo/Wui.d.ts +1 -2
  177. package/dist/types/components/Logo/index.d.ts +5 -5
  178. package/dist/types/components/Modal/Assets/Backdrop.d.ts +5 -6
  179. package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
  180. package/dist/types/components/Modal/Assets/index.d.ts +9 -9
  181. package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
  182. package/dist/types/components/Modal/Close.d.ts +3 -4
  183. package/dist/types/components/Modal/Content.d.ts +4 -5
  184. package/dist/types/components/Modal/Footer.d.ts +1 -1
  185. package/dist/types/components/Modal/Header.d.ts +2 -2
  186. package/dist/types/components/Modal/index.d.ts +17 -17
  187. package/dist/types/components/Modal/styles.d.ts +7 -7
  188. package/dist/types/components/Modal/theme.d.ts +2 -2
  189. package/dist/types/components/Pagination/index.d.ts +2 -2
  190. package/dist/types/components/Pagination/theme.d.ts +1 -1
  191. package/dist/types/components/Pagination/utils.d.ts +1 -1
  192. package/dist/types/components/Picker/index.d.ts +1 -1
  193. package/dist/types/components/Picker/styles.d.ts +1 -1
  194. package/dist/types/components/Popover/Arrow.d.ts +1 -2
  195. package/dist/types/components/Popover/Content.d.ts +2 -3
  196. package/dist/types/components/Popover/Popover.d.ts +4 -5
  197. package/dist/types/components/Popover/PopoverHover.d.ts +3 -4
  198. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  199. package/dist/types/components/Popover/styles.d.ts +4 -4
  200. package/dist/types/components/Popover/theme.d.ts +1 -1
  201. package/dist/types/components/Popover/usePopover.d.ts +6 -6
  202. package/dist/types/components/Radio/index.d.ts +3 -3
  203. package/dist/types/components/Radio/styles.d.ts +5 -5
  204. package/dist/types/components/Radio/theme.d.ts +1 -1
  205. package/dist/types/components/RadioGroup/index.d.ts +2 -2
  206. package/dist/types/components/RadioTab/index.d.ts +3 -3
  207. package/dist/types/components/RadioTab/styles.d.ts +3 -9
  208. package/dist/types/components/RadioTab/theme.d.ts +1 -1
  209. package/dist/types/components/Search/index.d.ts +5 -5
  210. package/dist/types/components/Select/index.d.ts +11 -11
  211. package/dist/types/components/Select/styles.d.ts +6 -6
  212. package/dist/types/components/Select/utils.d.ts +11 -7
  213. package/dist/types/components/Shape/index.d.ts +1 -1
  214. package/dist/types/components/Shape/styles.d.ts +3 -3
  215. package/dist/types/components/Slider/Range.d.ts +3 -3
  216. package/dist/types/components/Slider/index.d.ts +2 -2
  217. package/dist/types/components/Slider/styles.d.ts +16 -16
  218. package/dist/types/components/Slider/theme.d.ts +1 -1
  219. package/dist/types/components/Stack/index.d.ts +1 -1
  220. package/dist/types/components/Swiper/index.d.ts +17 -18
  221. package/dist/types/components/Swiper/styles.d.ts +56 -56
  222. package/dist/types/components/Swiper/theme.d.ts +1 -1
  223. package/dist/types/components/System/index.d.ts +14 -14
  224. package/dist/types/components/Table/index.d.ts +6 -7
  225. package/dist/types/components/Table/styles.d.ts +1 -1
  226. package/dist/types/components/Table/theme.d.ts +1 -1
  227. package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
  228. package/dist/types/components/Tabs/TabList.d.ts +4 -4
  229. package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
  230. package/dist/types/components/Tabs/styles.d.ts +2 -2
  231. package/dist/types/components/Tabs/theme.d.ts +2 -2
  232. package/dist/types/components/Tag/index.d.ts +2 -3
  233. package/dist/types/components/Tag/styles.d.ts +1 -1
  234. package/dist/types/components/Tag/theme.d.ts +3 -3
  235. package/dist/types/components/Text/index.d.ts +2 -2
  236. package/dist/types/components/Textarea/index.d.ts +1 -1
  237. package/dist/types/components/Textarea/theme.d.ts +1 -1
  238. package/dist/types/components/TimePicker/index.d.ts +2 -2
  239. package/dist/types/components/Toast/Growl.d.ts +1 -1
  240. package/dist/types/components/Toast/Snackbar.d.ts +1 -1
  241. package/dist/types/components/Toast/ToastWrapper.d.ts +5 -5
  242. package/dist/types/components/Toast/index.d.ts +6 -6
  243. package/dist/types/components/Toast/styles.d.ts +16 -16
  244. package/dist/types/components/Toast/theme.d.ts +2 -2
  245. package/dist/types/components/Toast/utils.d.ts +13 -13
  246. package/dist/types/components/Toggle/index.d.ts +3 -3
  247. package/dist/types/components/Toggle/styles.d.ts +5 -4
  248. package/dist/types/components/Toggle/theme.d.ts +6 -6
  249. package/dist/types/components/Tooltip/index.d.ts +2 -2
  250. package/dist/types/components/Tooltip/styles.d.ts +1 -1
  251. package/dist/types/components/Tooltip/theme.d.ts +1 -1
  252. package/dist/types/components/VariantIcon/index.d.ts +1 -1
  253. package/dist/types/components/VariantIcon/styles.d.ts +1 -1
  254. package/dist/types/components/VariantIcon/theme.d.ts +3 -3
  255. package/dist/types/components/WuiProvider/font.d.ts +3 -5
  256. package/dist/types/components/WuiProvider/index.d.ts +1 -1
  257. package/dist/types/theme/colors.d.ts +3 -11
  258. package/dist/types/theme/dark.d.ts +1 -1
  259. package/dist/types/theme/defaultFields.d.ts +10 -10
  260. package/dist/types/theme/fonts.d.ts +5 -5
  261. package/dist/types/theme/index.d.ts +31 -31
  262. package/dist/types/theme/screens.d.ts +1 -1
  263. package/dist/types/theme/space.d.ts +1 -1
  264. package/dist/types/theme/typography.d.ts +1 -1
  265. package/dist/types/utils/field-styles.d.ts +6 -6
  266. package/dist/types/utils/index.d.ts +2 -2
  267. package/dist/types/utils/ts-utils.d.ts +1 -1
  268. package/dist/types/utils/use-copy-text.d.ts +1 -1
  269. package/dist/types/utils/use-create-portal.d.ts +1 -1
  270. package/dist/types/utils/use-viewport.d.ts +2 -2
  271. package/dist/types/utils/wrap-children.d.ts +1 -1
  272. package/dist/{use-fork-ref-CUZErtAC.mjs → use-fork-ref-DvaCTfQ_.mjs} +4 -3
  273. package/dist/use-viewport-CWpjoHXy.mjs +16 -0
  274. package/dist/utils.mjs +96 -85
  275. package/dist/wrap-children-DBSD-X5-.mjs +9 -0
  276. package/package.json +11 -38
  277. package/dist/AXB53BZF-CGoc4K3d.mjs +0 -25
  278. package/dist/ITI7HKP4-BONrZ9Pq.mjs +0 -473
  279. package/dist/KUU7WJ55-3sP-w1F1.mjs +0 -61
  280. package/dist/LVA2YJMS-qFC9J-lt.mjs +0 -1479
  281. package/dist/MTZPJQMC-C0Xe_WK4.mjs +0 -13
  282. package/dist/NLEBE274-C94QU78N.mjs +0 -84
  283. package/dist/P2CTZE2T-YPes1GXe.mjs +0 -297
  284. package/dist/P4IRICAX-DzXqUYe-.mjs +0 -37
  285. package/dist/QYJ6MIDR-BLLqyXdd.mjs +0 -97
  286. package/dist/VEVQD5MH-ZMnHV8ZJ.mjs +0 -20
  287. package/dist/X5NMLKT6-uFSu0Lii.mjs +0 -25
  288. package/dist/YV4JVR4I-BGfUf3Nu.mjs +0 -341
  289. package/dist/downshift.esm-CEHW4VDy.mjs +0 -1085
  290. package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
  291. package/dist/index-BDeIsk2X.mjs +0 -184
  292. package/dist/index-BRDOakbf.mjs +0 -11
  293. package/dist/index-BpRjq7lj.mjs +0 -11
  294. package/dist/index-BrfXjmHY.mjs +0 -36
  295. package/dist/index-CExLVjET.mjs +0 -26
  296. package/dist/index-DEJJvyGk.mjs +0 -66
  297. package/dist/index-u1oHKa7X.mjs +0 -16
  298. package/dist/radio-group-CGC6DTFJ.mjs +0 -51
  299. package/dist/throttle-BDBzFeFj.mjs +0 -13
  300. package/dist/use-viewport-m3glsbna.mjs +0 -16
  301. package/dist/wrap-children-aq69jtFP.mjs +0 -12
@@ -1,13 +1,14 @@
1
1
  "use client";
2
- import { a as kt, b as Nt, c as dt, d as Vt } from "./JC64G2H7-Dey-8h60.mjs";
3
- import { m as Wt, o as Bt, t as jt, c as pt, a as mt, b as Pe, d as zt } from "./YV4JVR4I-BGfUf3Nu.mjs";
4
- import { A as Yt, B as le, D as q, C as j, H as It, c as Be, f as je, _ as Te, i as He, a6 as ht, b as me, F as De, E as Le, d as G, g as _, h as ze, t as Ee, v as Xt, a7 as gt, u as _e, Q as et, a8 as se, a5 as qt, e as wt, Y as Ut, Z as ke, a9 as Gt, l as Zt, r as Jt } from "./LVA2YJMS-qFC9J-lt.mjs";
5
- import { u as vt, P as xt, a as Qt } from "./MTZPJQMC-C0Xe_WK4.mjs";
6
- import { useRef as ce, useState as Ye, createContext as Kt, useEffect as U, useContext as en, useCallback as yt } from "react";
2
+ import { a as kt, b as Nt, d as Vt, c as dt } from "./JC64G2H7-afsomHuH.mjs";
3
+ import { m as Wt, o as Bt, t as jt, c as pt, b as Ee, a as mt, d as zt } from "./YV4JVR4I-DPC8mMuG.mjs";
4
+ import { z as Xt, A as le, C as q, B as j, G as Yt, c as je, _ as Ce, i as He, a5 as ht, b as me, E as Le, D as _e, d as G, g as _, f as ze, h as Xe, t as It, a6 as vt, u as ke, P as et, a7 as se, a4 as qt, e as gt, X as Ut, Y as Ne, a8 as Gt, l as Jt, m as Zt } from "./LVA2YJMS-C-kJ1lkr.mjs";
5
+ import { u as wt, P as xt, a as Kt } from "./MTZPJQMC-TybFZCho.mjs";
6
+ import { useRef as ce, useState as Ye, useEffect as U, useContext as Qt, createContext as en, useCallback as yt } from "react";
7
+ import { j as Se } from "./jsx-runtime-B7I4PJ0H.mjs";
7
8
  function bt(e = {}) {
8
9
  var n = e, {
9
10
  popover: o
10
- } = n, t = Yt(n, [
11
+ } = n, t = Xt(n, [
11
12
  "popover"
12
13
  ]);
13
14
  const i = Wt(
@@ -21,13 +22,13 @@ function bt(e = {}) {
21
22
  ])
22
23
  );
23
24
  jt(t, i);
24
- const r = i == null ? void 0 : i.getState(), l = kt(le(q({}, t), { store: i })), u = j(
25
+ const r = i == null ? void 0 : i.getState(), l = kt(le(q({}, t), { store: i })), a = j(
25
26
  t.placement,
26
27
  r == null ? void 0 : r.placement,
27
28
  "bottom"
28
29
  ), c = le(q({}, l.getState()), {
29
- placement: u,
30
- currentPlacement: u,
30
+ placement: a,
31
+ currentPlacement: a,
31
32
  anchorElement: j(r == null ? void 0 : r.anchorElement, null),
32
33
  popoverElement: j(r == null ? void 0 : r.popoverElement, null),
33
34
  arrowElement: j(r == null ? void 0 : r.arrowElement, null),
@@ -41,9 +42,9 @@ function bt(e = {}) {
41
42
  });
42
43
  }
43
44
  function Pt(e, n, o) {
44
- return It(n, [o.popover]), Pe(e, o, "placement"), Nt(e, n, o);
45
+ return Yt(n, [o.popover]), Ee(e, o, "placement"), Nt(e, n, o);
45
46
  }
46
- function jn(e = {}) {
47
+ function zn(e = {}) {
47
48
  const [n, o] = mt(bt, e);
48
49
  return Pt(n, o, e);
49
50
  }
@@ -61,43 +62,43 @@ function ne(e) {
61
62
  }
62
63
  function tt(e, n, o) {
63
64
  let { reference: t, floating: i } = e;
64
- const r = t.x + t.width / 2 - i.width / 2, l = t.y + t.height / 2 - i.height / 2, u = ne(n), c = Ie(u), s = t[c] / 2 - i[c] / 2, f = u === "x";
65
- let a;
65
+ const r = t.x + t.width / 2 - i.width / 2, l = t.y + t.height / 2 - i.height / 2, a = ne(n), c = Ie(a), s = t[c] / 2 - i[c] / 2, f = a === "x";
66
+ let u;
66
67
  switch (z(n)) {
67
68
  case "top":
68
- a = { x: r, y: t.y - i.height };
69
+ u = { x: r, y: t.y - i.height };
69
70
  break;
70
71
  case "bottom":
71
- a = { x: r, y: t.y + t.height };
72
+ u = { x: r, y: t.y + t.height };
72
73
  break;
73
74
  case "right":
74
- a = { x: t.x + t.width, y: l };
75
+ u = { x: t.x + t.width, y: l };
75
76
  break;
76
77
  case "left":
77
- a = { x: t.x - i.width, y: l };
78
+ u = { x: t.x - i.width, y: l };
78
79
  break;
79
80
  default:
80
- a = { x: t.x, y: t.y };
81
+ u = { x: t.x, y: t.y };
81
82
  }
82
83
  switch (de(n)) {
83
84
  case "start":
84
- a[u] -= s * (o && f ? -1 : 1);
85
+ u[a] -= s * (o && f ? -1 : 1);
85
86
  break;
86
87
  case "end":
87
- a[u] += s * (o && f ? -1 : 1);
88
+ u[a] += s * (o && f ? -1 : 1);
88
89
  }
89
- return a;
90
+ return u;
90
91
  }
91
92
  const tn = async (e, n, o) => {
92
- const { placement: t = "bottom", strategy: i = "absolute", middleware: r = [], platform: l } = o, u = r.filter(Boolean), c = await (l.isRTL == null ? void 0 : l.isRTL(n));
93
- let s = await l.getElementRects({ reference: e, floating: n, strategy: i }), { x: f, y: a } = tt(s, t, c), m = t, p = {}, d = 0;
94
- for (let h = 0; h < u.length; h++) {
95
- const { name: g, fn: w } = u[h], { x: v, y: b, data: P, reset: x } = await w({ x: f, y: a, initialPlacement: t, placement: m, strategy: i, middlewareData: p, rects: s, platform: l, elements: { reference: e, floating: n } });
96
- f = v ?? f, a = b ?? a, p = { ...p, [g]: { ...p[g], ...P } }, x && d <= 50 && (d++, typeof x == "object" && (x.placement && (m = x.placement), x.rects && (s = x.rects === !0 ? await l.getElementRects({ reference: e, floating: n, strategy: i }) : x.rects), { x: f, y: a } = tt(s, m, c)), h = -1);
93
+ const { placement: t = "bottom", strategy: i = "absolute", middleware: r = [], platform: l } = o, a = r.filter(Boolean), c = await (l.isRTL == null ? void 0 : l.isRTL(n));
94
+ let s = await l.getElementRects({ reference: e, floating: n, strategy: i }), { x: f, y: u } = tt(s, t, c), m = t, p = {}, d = 0;
95
+ for (let h = 0; h < a.length; h++) {
96
+ const { name: v, fn: g } = a[h], { x: w, y: b, data: P, reset: x } = await g({ x: f, y: u, initialPlacement: t, placement: m, strategy: i, middlewareData: p, rects: s, platform: l, elements: { reference: e, floating: n } });
97
+ f = w ?? f, u = b ?? u, p = { ...p, [v]: { ...p[v], ...P } }, x && d <= 50 && (d++, typeof x == "object" && (x.placement && (m = x.placement), x.rects && (s = x.rects === !0 ? await l.getElementRects({ reference: e, floating: n, strategy: i }) : x.rects), { x: f, y: u } = tt(s, m, c)), h = -1);
97
98
  }
98
- return { x: f, y: a, placement: m, strategy: i, middlewareData: p };
99
+ return { x: f, y: u, placement: m, strategy: i, middlewareData: p };
99
100
  };
100
- function Z(e, n) {
101
+ function J(e, n) {
101
102
  return typeof e == "function" ? e(n) : e;
102
103
  }
103
104
  function Et(e) {
@@ -105,82 +106,82 @@ function Et(e) {
105
106
  return { top: 0, right: 0, bottom: 0, left: 0, ...n };
106
107
  }(e) : { top: e, right: e, bottom: e, left: e };
107
108
  }
108
- function Se(e) {
109
+ function Re(e) {
109
110
  return { ...e, top: e.y, left: e.x, right: e.x + e.width, bottom: e.y + e.height };
110
111
  }
111
- async function Xe(e, n) {
112
+ async function qe(e, n) {
112
113
  var o;
113
114
  n === void 0 && (n = {});
114
- const { x: t, y: i, platform: r, rects: l, elements: u, strategy: c } = e, { boundary: s = "clippingAncestors", rootBoundary: f = "viewport", elementContext: a = "floating", altBoundary: m = !1, padding: p = 0 } = Z(n, e), d = Et(p), h = u[m ? a === "floating" ? "reference" : "floating" : a], g = Se(await r.getClippingRect({ element: (o = await (r.isElement == null ? void 0 : r.isElement(h))) == null || o ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(u.floating)), boundary: s, rootBoundary: f, strategy: c })), w = a === "floating" ? { ...l.floating, x: t, y: i } : l.reference, v = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(u.floating)), b = await (r.isElement == null ? void 0 : r.isElement(v)) && await (r.getScale == null ? void 0 : r.getScale(v)) || { x: 1, y: 1 }, P = Se(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: w, offsetParent: v, strategy: c }) : w);
115
- return { top: (g.top - P.top + d.top) / b.y, bottom: (P.bottom - g.bottom + d.bottom) / b.y, left: (g.left - P.left + d.left) / b.x, right: (P.right - g.right + d.right) / b.x };
115
+ const { x: t, y: i, platform: r, rects: l, elements: a, strategy: c } = e, { boundary: s = "clippingAncestors", rootBoundary: f = "viewport", elementContext: u = "floating", altBoundary: m = !1, padding: p = 0 } = J(n, e), d = Et(p), h = a[m ? u === "floating" ? "reference" : "floating" : u], v = Re(await r.getClippingRect({ element: (o = await (r.isElement == null ? void 0 : r.isElement(h))) == null || o ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)), boundary: s, rootBoundary: f, strategy: c })), g = u === "floating" ? { ...l.floating, x: t, y: i } : l.reference, w = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a.floating)), b = await (r.isElement == null ? void 0 : r.isElement(w)) && await (r.getScale == null ? void 0 : r.getScale(w)) || { x: 1, y: 1 }, P = Re(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: g, offsetParent: w, strategy: c }) : g);
116
+ return { top: (v.top - P.top + d.top) / b.y, bottom: (P.bottom - v.bottom + d.bottom) / b.y, left: (v.left - P.left + d.left) / b.x, right: (P.right - v.right + d.right) / b.x };
116
117
  }
117
- const he = Math.min, K = Math.max;
118
- function Ne(e, n, o) {
119
- return K(e, he(n, o));
118
+ const he = Math.min, Q = Math.max;
119
+ function Ve(e, n, o) {
120
+ return Q(e, he(n, o));
120
121
  }
121
122
  const nn = (e) => ({ name: "arrow", options: e, async fn(n) {
122
- const { x: o, y: t, placement: i, rects: r, platform: l, elements: u } = n, { element: c, padding: s = 0 } = Z(e, n) || {};
123
+ const { x: o, y: t, placement: i, rects: r, platform: l, elements: a } = n, { element: c, padding: s = 0 } = J(e, n) || {};
123
124
  if (c == null) return {};
124
- const f = Et(s), a = { x: o, y: t }, m = ne(i), p = Ie(m), d = await l.getDimensions(c), h = m === "y", g = h ? "top" : "left", w = h ? "bottom" : "right", v = h ? "clientHeight" : "clientWidth", b = r.reference[p] + r.reference[m] - a[m] - r.floating[p], P = a[m] - r.reference[m], x = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(c));
125
- let E = x ? x[v] : 0;
126
- E && await (l.isElement == null ? void 0 : l.isElement(x)) || (E = u.floating[v] || r.floating[p]);
127
- const H = b / 2 - P / 2, $ = E / 2 - d[p] / 2 - 1, F = he(f[g], $), R = he(f[w], $), A = F, C = E - d[p] - R, y = E / 2 - d[p] / 2 + H, O = Ne(A, y, C), S = de(i) != null && y != O && r.reference[p] / 2 - (y < A ? F : R) - d[p] / 2 < 0 ? y < A ? A - y : C - y : 0;
128
- return { [m]: a[m] - S, data: { [m]: O, centerOffset: y - O + S } };
125
+ const f = Et(s), u = { x: o, y: t }, m = ne(i), p = Ie(m), d = await l.getDimensions(c), h = m === "y", v = h ? "top" : "left", g = h ? "bottom" : "right", w = h ? "clientHeight" : "clientWidth", b = r.reference[p] + r.reference[m] - u[m] - r.floating[p], P = u[m] - r.reference[m], x = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(c));
126
+ let E = x ? x[w] : 0;
127
+ E && await (l.isElement == null ? void 0 : l.isElement(x)) || (E = a.floating[w] || r.floating[p]);
128
+ const C = b / 2 - P / 2, H = E / 2 - d[p] / 2 - 1, D = he(f[v], H), R = he(f[g], H), A = D, $ = E - d[p] - R, y = E / 2 - d[p] / 2 + C, O = Ve(A, y, $), S = de(i) != null && y != O && r.reference[p] / 2 - (y < A ? D : R) - d[p] / 2 < 0 ? y < A ? A - y : $ - y : 0;
129
+ return { [m]: u[m] - S, data: { [m]: O, centerOffset: y - O + S } };
129
130
  } }), on = ["top", "right", "bottom", "left"];
130
131
  on.reduce((e, n) => e.concat(n, n + "-start", n + "-end"), []);
131
132
  const rn = { left: "right", right: "left", bottom: "top", top: "bottom" };
132
- function Re(e) {
133
+ function Ae(e) {
133
134
  return e.replace(/left|right|bottom|top/g, (n) => rn[n]);
134
135
  }
135
136
  function sn(e, n, o) {
136
137
  o === void 0 && (o = !1);
137
138
  const t = de(e), i = ne(e), r = Ie(i);
138
139
  let l = i === "x" ? t === (o ? "end" : "start") ? "right" : "left" : t === "start" ? "bottom" : "top";
139
- return n.reference[r] > n.floating[r] && (l = Re(l)), { main: l, cross: Re(l) };
140
+ return n.reference[r] > n.floating[r] && (l = Ae(l)), { main: l, cross: Ae(l) };
140
141
  }
141
142
  const ln = { start: "end", end: "start" };
142
- function Me(e) {
143
+ function De(e) {
143
144
  return e.replace(/start|end/g, (n) => ln[n]);
144
145
  }
145
146
  const cn = function(e) {
146
147
  return e === void 0 && (e = {}), { name: "flip", options: e, async fn(n) {
147
148
  var o;
148
- const { placement: t, middlewareData: i, rects: r, initialPlacement: l, platform: u, elements: c } = n, { mainAxis: s = !0, crossAxis: f = !0, fallbackPlacements: a, fallbackStrategy: m = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: d = !0, ...h } = Z(e, n), g = z(t), w = z(l) === l, v = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), b = a || (w || !d ? [Re(l)] : function(A) {
149
- const C = Re(A);
150
- return [Me(A), C, Me(C)];
149
+ const { placement: t, middlewareData: i, rects: r, initialPlacement: l, platform: a, elements: c } = n, { mainAxis: s = !0, crossAxis: f = !0, fallbackPlacements: u, fallbackStrategy: m = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: d = !0, ...h } = J(e, n), v = z(t), g = z(l) === l, w = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), b = u || (g || !d ? [Ae(l)] : function(A) {
150
+ const $ = Ae(A);
151
+ return [De(A), $, De($)];
151
152
  }(l));
152
- a || p === "none" || b.push(...function(A, C, y, O) {
153
+ u || p === "none" || b.push(...function(A, $, y, O) {
153
154
  const S = de(A);
154
- let T = function(M, L, X) {
155
- const V = ["left", "right"], W = ["right", "left"], Q = ["top", "bottom"], oe = ["bottom", "top"];
155
+ let T = function(M, L, I) {
156
+ const V = ["left", "right"], W = ["right", "left"], K = ["top", "bottom"], oe = ["bottom", "top"];
156
157
  switch (M) {
157
158
  case "top":
158
159
  case "bottom":
159
- return X ? L ? W : V : L ? V : W;
160
+ return I ? L ? W : V : L ? V : W;
160
161
  case "left":
161
162
  case "right":
162
- return L ? Q : oe;
163
+ return L ? K : oe;
163
164
  default:
164
165
  return [];
165
166
  }
166
167
  }(z(A), y === "start", O);
167
- return S && (T = T.map((M) => M + "-" + S), C && (T = T.concat(T.map(Me)))), T;
168
- }(l, d, p, v));
169
- const P = [l, ...b], x = await Xe(n, h), E = [];
170
- let H = ((o = i.flip) == null ? void 0 : o.overflows) || [];
171
- if (s && E.push(x[g]), f) {
172
- const { main: A, cross: C } = sn(t, r, v);
173
- E.push(x[A], x[C]);
168
+ return S && (T = T.map((M) => M + "-" + S), $ && (T = T.concat(T.map(De)))), T;
169
+ }(l, d, p, w));
170
+ const P = [l, ...b], x = await qe(n, h), E = [];
171
+ let C = ((o = i.flip) == null ? void 0 : o.overflows) || [];
172
+ if (s && E.push(x[v]), f) {
173
+ const { main: A, cross: $ } = sn(t, r, w);
174
+ E.push(x[A], x[$]);
174
175
  }
175
- if (H = [...H, { placement: t, overflows: E }], !E.every((A) => A <= 0)) {
176
- var $, F;
177
- const A = ((($ = i.flip) == null ? void 0 : $.index) || 0) + 1, C = P[A];
178
- if (C) return { data: { index: A, overflows: H }, reset: { placement: C } };
179
- let y = (F = H.filter((O) => O.overflows[0] <= 0).sort((O, S) => O.overflows[1] - S.overflows[1])[0]) == null ? void 0 : F.placement;
176
+ if (C = [...C, { placement: t, overflows: E }], !E.every((A) => A <= 0)) {
177
+ var H, D;
178
+ const A = (((H = i.flip) == null ? void 0 : H.index) || 0) + 1, $ = P[A];
179
+ if ($) return { data: { index: A, overflows: C }, reset: { placement: $ } };
180
+ let y = (D = C.filter((O) => O.overflows[0] <= 0).sort((O, S) => O.overflows[1] - S.overflows[1])[0]) == null ? void 0 : D.placement;
180
181
  if (!y) switch (m) {
181
182
  case "bestFit": {
182
183
  var R;
183
- const O = (R = H.map((S) => [S.placement, S.overflows.filter((T) => T > 0).reduce((T, M) => T + M, 0)]).sort((S, T) => S[1] - T[1])[0]) == null ? void 0 : R[0];
184
+ const O = (R = C.map((S) => [S.placement, S.overflows.filter((T) => T > 0).reduce((T, M) => T + M, 0)]).sort((S, T) => S[1] - T[1])[0]) == null ? void 0 : R[0];
184
185
  O && (y = O);
185
186
  break;
186
187
  }
@@ -191,12 +192,12 @@ const cn = function(e) {
191
192
  }
192
193
  return {};
193
194
  } };
194
- }, un = function(e) {
195
+ }, an = function(e) {
195
196
  return e === void 0 && (e = 0), { name: "offset", options: e, async fn(n) {
196
197
  const { x: o, y: t } = n, i = await async function(r, l) {
197
- const { placement: u, platform: c, elements: s } = r, f = await (c.isRTL == null ? void 0 : c.isRTL(s.floating)), a = z(u), m = de(u), p = ne(u) === "x", d = ["left", "top"].includes(a) ? -1 : 1, h = f && p ? -1 : 1, g = Z(l, r);
198
- let { mainAxis: w, crossAxis: v, alignmentAxis: b } = typeof g == "number" ? { mainAxis: g, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...g };
199
- return m && typeof b == "number" && (v = m === "end" ? -1 * b : b), p ? { x: v * h, y: w * d } : { x: w * d, y: v * h };
198
+ const { placement: a, platform: c, elements: s } = r, f = await (c.isRTL == null ? void 0 : c.isRTL(s.floating)), u = z(a), m = de(a), p = ne(a) === "x", d = ["left", "top"].includes(u) ? -1 : 1, h = f && p ? -1 : 1, v = J(l, r);
199
+ let { mainAxis: g, crossAxis: w, alignmentAxis: b } = typeof v == "number" ? { mainAxis: v, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...v };
200
+ return m && typeof b == "number" && (w = m === "end" ? -1 * b : b), p ? { x: w * h, y: g * d } : { x: g * d, y: w * h };
200
201
  }(n, e);
201
202
  return { x: o + i.x, y: t + i.y, data: i };
202
203
  } };
@@ -204,310 +205,310 @@ const cn = function(e) {
204
205
  function St(e) {
205
206
  return e === "x" ? "y" : "x";
206
207
  }
207
- const an = function(e) {
208
+ const un = function(e) {
208
209
  return e === void 0 && (e = {}), { name: "shift", options: e, async fn(n) {
209
- const { x: o, y: t, placement: i } = n, { mainAxis: r = !0, crossAxis: l = !1, limiter: u = { fn: (g) => {
210
- let { x: w, y: v } = g;
211
- return { x: w, y: v };
212
- } }, ...c } = Z(e, n), s = { x: o, y: t }, f = await Xe(n, c), a = ne(z(i)), m = St(a);
213
- let p = s[a], d = s[m];
210
+ const { x: o, y: t, placement: i } = n, { mainAxis: r = !0, crossAxis: l = !1, limiter: a = { fn: (v) => {
211
+ let { x: g, y: w } = v;
212
+ return { x: g, y: w };
213
+ } }, ...c } = J(e, n), s = { x: o, y: t }, f = await qe(n, c), u = ne(z(i)), m = St(u);
214
+ let p = s[u], d = s[m];
214
215
  if (r) {
215
- const g = a === "y" ? "bottom" : "right";
216
- p = Ne(p + f[a === "y" ? "top" : "left"], p, p - f[g]);
216
+ const v = u === "y" ? "bottom" : "right";
217
+ p = Ve(p + f[u === "y" ? "top" : "left"], p, p - f[v]);
217
218
  }
218
219
  if (l) {
219
- const g = m === "y" ? "bottom" : "right";
220
- d = Ne(d + f[m === "y" ? "top" : "left"], d, d - f[g]);
220
+ const v = m === "y" ? "bottom" : "right";
221
+ d = Ve(d + f[m === "y" ? "top" : "left"], d, d - f[v]);
221
222
  }
222
- const h = u.fn({ ...n, [a]: p, [m]: d });
223
+ const h = a.fn({ ...n, [u]: p, [m]: d });
223
224
  return { ...h, data: { x: h.x - o, y: h.y - t } };
224
225
  } };
225
226
  }, fn = function(e) {
226
227
  return e === void 0 && (e = {}), { options: e, fn(n) {
227
- const { x: o, y: t, placement: i, rects: r, middlewareData: l } = n, { offset: u = 0, mainAxis: c = !0, crossAxis: s = !0 } = Z(e, n), f = { x: o, y: t }, a = ne(i), m = St(a);
228
- let p = f[a], d = f[m];
229
- const h = Z(u, n), g = typeof h == "number" ? { mainAxis: h, crossAxis: 0 } : { mainAxis: 0, crossAxis: 0, ...h };
228
+ const { x: o, y: t, placement: i, rects: r, middlewareData: l } = n, { offset: a = 0, mainAxis: c = !0, crossAxis: s = !0 } = J(e, n), f = { x: o, y: t }, u = ne(i), m = St(u);
229
+ let p = f[u], d = f[m];
230
+ const h = J(a, n), v = typeof h == "number" ? { mainAxis: h, crossAxis: 0 } : { mainAxis: 0, crossAxis: 0, ...h };
230
231
  if (c) {
231
- const b = a === "y" ? "height" : "width", P = r.reference[a] - r.floating[b] + g.mainAxis, x = r.reference[a] + r.reference[b] - g.mainAxis;
232
+ const b = u === "y" ? "height" : "width", P = r.reference[u] - r.floating[b] + v.mainAxis, x = r.reference[u] + r.reference[b] - v.mainAxis;
232
233
  p < P ? p = P : p > x && (p = x);
233
234
  }
234
235
  if (s) {
235
- var w, v;
236
- const b = a === "y" ? "width" : "height", P = ["top", "left"].includes(z(i)), x = r.reference[m] - r.floating[b] + (P && ((w = l.offset) == null ? void 0 : w[m]) || 0) + (P ? 0 : g.crossAxis), E = r.reference[m] + r.reference[b] + (P ? 0 : ((v = l.offset) == null ? void 0 : v[m]) || 0) - (P ? g.crossAxis : 0);
236
+ var g, w;
237
+ const b = u === "y" ? "width" : "height", P = ["top", "left"].includes(z(i)), x = r.reference[m] - r.floating[b] + (P && ((g = l.offset) == null ? void 0 : g[m]) || 0) + (P ? 0 : v.crossAxis), E = r.reference[m] + r.reference[b] + (P ? 0 : ((w = l.offset) == null ? void 0 : w[m]) || 0) - (P ? v.crossAxis : 0);
237
238
  d < x ? d = x : d > E && (d = E);
238
239
  }
239
- return { [a]: p, [m]: d };
240
+ return { [u]: p, [m]: d };
240
241
  } };
241
242
  }, dn = function(e) {
242
243
  return e === void 0 && (e = {}), { name: "size", options: e, async fn(n) {
243
244
  const { placement: o, rects: t, platform: i, elements: r } = n, { apply: l = () => {
244
- }, ...u } = Z(e, n), c = await Xe(n, u), s = z(o), f = de(o), a = ne(o) === "x", { width: m, height: p } = t.floating;
245
+ }, ...a } = J(e, n), c = await qe(n, a), s = z(o), f = de(o), u = ne(o) === "x", { width: m, height: p } = t.floating;
245
246
  let d, h;
246
247
  s === "top" || s === "bottom" ? (d = s, h = f === (await (i.isRTL == null ? void 0 : i.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (h = s, d = f === "end" ? "top" : "bottom");
247
- const g = p - c[d], w = m - c[h], v = !n.middlewareData.shift;
248
- let b = g, P = w;
249
- if (a) {
248
+ const v = p - c[d], g = m - c[h], w = !n.middlewareData.shift;
249
+ let b = v, P = g;
250
+ if (u) {
250
251
  const E = m - c.left - c.right;
251
- P = f || v ? he(w, E) : E;
252
+ P = f || w ? he(g, E) : E;
252
253
  } else {
253
254
  const E = p - c.top - c.bottom;
254
- b = f || v ? he(g, E) : E;
255
+ b = f || w ? he(v, E) : E;
255
256
  }
256
- if (v && !f) {
257
- const E = K(c.left, 0), H = K(c.right, 0), $ = K(c.top, 0), F = K(c.bottom, 0);
258
- a ? P = m - 2 * (E !== 0 || H !== 0 ? E + H : K(c.left, c.right)) : b = p - 2 * ($ !== 0 || F !== 0 ? $ + F : K(c.top, c.bottom));
257
+ if (w && !f) {
258
+ const E = Q(c.left, 0), C = Q(c.right, 0), H = Q(c.top, 0), D = Q(c.bottom, 0);
259
+ u ? P = m - 2 * (E !== 0 || C !== 0 ? E + C : Q(c.left, c.right)) : b = p - 2 * (H !== 0 || D !== 0 ? H + D : Q(c.top, c.bottom));
259
260
  }
260
261
  await l({ ...n, availableWidth: P, availableHeight: b });
261
262
  const x = await i.getDimensions(r.floating);
262
263
  return m !== x.width || p !== x.height ? { reset: { rects: !0 } } : {};
263
264
  } };
264
265
  };
265
- function D(e) {
266
+ function F(e) {
266
267
  var n;
267
268
  return ((n = e.ownerDocument) == null ? void 0 : n.defaultView) || window;
268
269
  }
269
270
  function k(e) {
270
- return D(e).getComputedStyle(e);
271
+ return F(e).getComputedStyle(e);
271
272
  }
272
273
  function Rt(e) {
273
- return e instanceof D(e).Node;
274
+ return e instanceof F(e).Node;
274
275
  }
275
- function J(e) {
276
+ function Z(e) {
276
277
  return Rt(e) ? (e.nodeName || "").toLowerCase() : "#document";
277
278
  }
278
279
  function N(e) {
279
- return e instanceof D(e).HTMLElement;
280
+ return e instanceof F(e).HTMLElement;
280
281
  }
281
- function Y(e) {
282
- return e instanceof D(e).Element;
282
+ function X(e) {
283
+ return e instanceof F(e).Element;
283
284
  }
284
285
  function nt(e) {
285
- return typeof ShadowRoot < "u" && (e instanceof D(e).ShadowRoot || e instanceof ShadowRoot);
286
+ return typeof ShadowRoot < "u" && (e instanceof F(e).ShadowRoot || e instanceof ShadowRoot);
286
287
  }
287
- function ge(e) {
288
+ function ve(e) {
288
289
  const { overflow: n, overflowX: o, overflowY: t, display: i } = k(e);
289
290
  return /auto|scroll|overlay|hidden|clip/.test(n + t + o) && !["inline", "contents"].includes(i);
290
291
  }
291
292
  function pn(e) {
292
- return ["table", "td", "th"].includes(J(e));
293
+ return ["table", "td", "th"].includes(Z(e));
293
294
  }
294
- function Ve(e) {
295
- const n = qe(), o = k(e);
295
+ function We(e) {
296
+ const n = Ue(), o = k(e);
296
297
  return o.transform !== "none" || o.perspective !== "none" || !n && !!o.backdropFilter && o.backdropFilter !== "none" || !n && !!o.filter && o.filter !== "none" || ["transform", "perspective", "filter"].some((t) => (o.willChange || "").includes(t)) || ["paint", "layout", "strict", "content"].some((t) => (o.contain || "").includes(t));
297
298
  }
298
- function qe() {
299
+ function Ue() {
299
300
  return !(typeof CSS > "u" || !CSS.supports) && CSS.supports("-webkit-backdrop-filter", "none");
300
301
  }
301
302
  function $e(e) {
302
- return ["html", "body", "#document"].includes(J(e));
303
+ return ["html", "body", "#document"].includes(Z(e));
303
304
  }
304
- const We = Math.min, ue = Math.max, Ae = Math.round, be = Math.floor, ee = (e) => ({ x: e, y: e });
305
+ const Be = Math.min, ae = Math.max, Oe = Math.round, Pe = Math.floor, ee = (e) => ({ x: e, y: e });
305
306
  function At(e) {
306
307
  const n = k(e);
307
308
  let o = parseFloat(n.width) || 0, t = parseFloat(n.height) || 0;
308
- const i = N(e), r = i ? e.offsetWidth : o, l = i ? e.offsetHeight : t, u = Ae(o) !== r || Ae(t) !== l;
309
- return u && (o = r, t = l), { width: o, height: t, $: u };
309
+ const i = N(e), r = i ? e.offsetWidth : o, l = i ? e.offsetHeight : t, a = Oe(o) !== r || Oe(t) !== l;
310
+ return a && (o = r, t = l), { width: o, height: t, $: a };
310
311
  }
311
- function Ue(e) {
312
- return Y(e) ? e : e.contextElement;
312
+ function Ge(e) {
313
+ return X(e) ? e : e.contextElement;
313
314
  }
314
- function ae(e) {
315
- const n = Ue(e);
315
+ function ue(e) {
316
+ const n = Ge(e);
316
317
  if (!N(n)) return ee(1);
317
318
  const o = n.getBoundingClientRect(), { width: t, height: i, $: r } = At(n);
318
- let l = (r ? Ae(o.width) : o.width) / t, u = (r ? Ae(o.height) : o.height) / i;
319
- return l && Number.isFinite(l) || (l = 1), u && Number.isFinite(u) || (u = 1), { x: l, y: u };
319
+ let l = (r ? Oe(o.width) : o.width) / t, a = (r ? Oe(o.height) : o.height) / i;
320
+ return l && Number.isFinite(l) || (l = 1), a && Number.isFinite(a) || (a = 1), { x: l, y: a };
320
321
  }
321
322
  const ot = ee(0);
322
323
  function Ot(e, n, o) {
323
324
  var t, i;
324
- if (n === void 0 && (n = !0), !qe()) return ot;
325
- const r = e ? D(e) : window;
325
+ if (n === void 0 && (n = !0), !Ue()) return ot;
326
+ const r = e ? F(e) : window;
326
327
  return !o || n && o !== r ? ot : { x: ((t = r.visualViewport) == null ? void 0 : t.offsetLeft) || 0, y: ((i = r.visualViewport) == null ? void 0 : i.offsetTop) || 0 };
327
328
  }
328
329
  function te(e, n, o, t) {
329
330
  n === void 0 && (n = !1), o === void 0 && (o = !1);
330
- const i = e.getBoundingClientRect(), r = Ue(e);
331
+ const i = e.getBoundingClientRect(), r = Ge(e);
331
332
  let l = ee(1);
332
- n && (t ? Y(t) && (l = ae(t)) : l = ae(e));
333
- const u = Ot(r, o, t);
334
- let c = (i.left + u.x) / l.x, s = (i.top + u.y) / l.y, f = i.width / l.x, a = i.height / l.y;
333
+ n && (t ? X(t) && (l = ue(t)) : l = ue(e));
334
+ const a = Ot(r, o, t);
335
+ let c = (i.left + a.x) / l.x, s = (i.top + a.y) / l.y, f = i.width / l.x, u = i.height / l.y;
335
336
  if (r) {
336
- const m = D(r), p = t && Y(t) ? D(t) : t;
337
+ const m = F(r), p = t && X(t) ? F(t) : t;
337
338
  let d = m.frameElement;
338
339
  for (; d && t && p !== m; ) {
339
- const h = ae(d), g = d.getBoundingClientRect(), w = getComputedStyle(d), v = g.left + (d.clientLeft + parseFloat(w.paddingLeft)) * h.x, b = g.top + (d.clientTop + parseFloat(w.paddingTop)) * h.y;
340
- c *= h.x, s *= h.y, f *= h.x, a *= h.y, c += v, s += b, d = D(d).frameElement;
340
+ const h = ue(d), v = d.getBoundingClientRect(), g = getComputedStyle(d), w = v.left + (d.clientLeft + parseFloat(g.paddingLeft)) * h.x, b = v.top + (d.clientTop + parseFloat(g.paddingTop)) * h.y;
341
+ c *= h.x, s *= h.y, f *= h.x, u *= h.y, c += w, s += b, d = F(d).frameElement;
341
342
  }
342
343
  }
343
- return Se({ width: f, height: a, x: c, y: s });
344
+ return Re({ width: f, height: u, x: c, y: s });
344
345
  }
345
- function I(e) {
346
+ function Y(e) {
346
347
  return ((Rt(e) ? e.ownerDocument : e.document) || window.document).documentElement;
347
348
  }
348
- function Ce(e) {
349
- return Y(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
349
+ function Me(e) {
350
+ return X(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
350
351
  }
351
352
  function Tt(e) {
352
- return te(I(e)).left + Ce(e).scrollLeft;
353
+ return te(Y(e)).left + Me(e).scrollLeft;
353
354
  }
354
355
  function fe(e) {
355
- if (J(e) === "html") return e;
356
- const n = e.assignedSlot || e.parentNode || nt(e) && e.host || I(e);
356
+ if (Z(e) === "html") return e;
357
+ const n = e.assignedSlot || e.parentNode || nt(e) && e.host || Y(e);
357
358
  return nt(n) ? n.host : n;
358
359
  }
359
- function Ht(e) {
360
+ function Ct(e) {
360
361
  const n = fe(e);
361
- return $e(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : N(n) && ge(n) ? n : Ht(n);
362
+ return $e(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : N(n) && ve(n) ? n : Ct(n);
362
363
  }
363
- function Oe(e, n) {
364
+ function Te(e, n) {
364
365
  var o;
365
366
  n === void 0 && (n = []);
366
- const t = Ht(e), i = t === ((o = e.ownerDocument) == null ? void 0 : o.body), r = D(t);
367
- return i ? n.concat(r, r.visualViewport || [], ge(t) ? t : []) : n.concat(t, Oe(t));
367
+ const t = Ct(e), i = t === ((o = e.ownerDocument) == null ? void 0 : o.body), r = F(t);
368
+ return i ? n.concat(r, r.visualViewport || [], ve(t) ? t : []) : n.concat(t, Te(t));
368
369
  }
369
370
  function rt(e, n, o) {
370
371
  let t;
371
372
  if (n === "viewport") t = function(i, r) {
372
- const l = D(i), u = I(i), c = l.visualViewport;
373
- let s = u.clientWidth, f = u.clientHeight, a = 0, m = 0;
373
+ const l = F(i), a = Y(i), c = l.visualViewport;
374
+ let s = a.clientWidth, f = a.clientHeight, u = 0, m = 0;
374
375
  if (c) {
375
376
  s = c.width, f = c.height;
376
- const p = qe();
377
- (!p || p && r === "fixed") && (a = c.offsetLeft, m = c.offsetTop);
377
+ const p = Ue();
378
+ (!p || p && r === "fixed") && (u = c.offsetLeft, m = c.offsetTop);
378
379
  }
379
- return { width: s, height: f, x: a, y: m };
380
+ return { width: s, height: f, x: u, y: m };
380
381
  }(e, o);
381
382
  else if (n === "document") t = function(i) {
382
- const r = I(i), l = Ce(i), u = i.ownerDocument.body, c = ue(r.scrollWidth, r.clientWidth, u.scrollWidth, u.clientWidth), s = ue(r.scrollHeight, r.clientHeight, u.scrollHeight, u.clientHeight);
383
+ const r = Y(i), l = Me(i), a = i.ownerDocument.body, c = ae(r.scrollWidth, r.clientWidth, a.scrollWidth, a.clientWidth), s = ae(r.scrollHeight, r.clientHeight, a.scrollHeight, a.clientHeight);
383
384
  let f = -l.scrollLeft + Tt(i);
384
- const a = -l.scrollTop;
385
- return k(u).direction === "rtl" && (f += ue(r.clientWidth, u.clientWidth) - c), { width: c, height: s, x: f, y: a };
386
- }(I(e));
387
- else if (Y(n)) t = function(i, r) {
388
- const l = te(i, !0, r === "fixed"), u = l.top + i.clientTop, c = l.left + i.clientLeft, s = N(i) ? ae(i) : ee(1);
389
- return { width: i.clientWidth * s.x, height: i.clientHeight * s.y, x: c * s.x, y: u * s.y };
385
+ const u = -l.scrollTop;
386
+ return k(a).direction === "rtl" && (f += ae(r.clientWidth, a.clientWidth) - c), { width: c, height: s, x: f, y: u };
387
+ }(Y(e));
388
+ else if (X(n)) t = function(i, r) {
389
+ const l = te(i, !0, r === "fixed"), a = l.top + i.clientTop, c = l.left + i.clientLeft, s = N(i) ? ue(i) : ee(1);
390
+ return { width: i.clientWidth * s.x, height: i.clientHeight * s.y, x: c * s.x, y: a * s.y };
390
391
  }(n, o);
391
392
  else {
392
393
  const i = Ot(e);
393
394
  t = { ...n, x: n.x - i.x, y: n.y - i.y };
394
395
  }
395
- return Se(t);
396
+ return Re(t);
396
397
  }
397
- function $t(e, n) {
398
+ function Ht(e, n) {
398
399
  const o = fe(e);
399
- return !(o === n || !Y(o) || $e(o)) && (k(o).position === "fixed" || $t(o, n));
400
+ return !(o === n || !X(o) || $e(o)) && (k(o).position === "fixed" || Ht(o, n));
400
401
  }
401
402
  function it(e, n) {
402
403
  return N(e) && k(e).position !== "fixed" ? n ? n(e) : e.offsetParent : null;
403
404
  }
404
405
  function st(e, n) {
405
- const o = D(e);
406
+ const o = F(e);
406
407
  if (!N(e)) return o;
407
408
  let t = it(e, n);
408
409
  for (; t && pn(t) && k(t).position === "static"; ) t = it(t, n);
409
- return t && (J(t) === "html" || J(t) === "body" && k(t).position === "static" && !Ve(t)) ? o : t || function(i) {
410
+ return t && (Z(t) === "html" || Z(t) === "body" && k(t).position === "static" && !We(t)) ? o : t || function(i) {
410
411
  let r = fe(i);
411
412
  for (; N(r) && !$e(r); ) {
412
- if (Ve(r)) return r;
413
+ if (We(r)) return r;
413
414
  r = fe(r);
414
415
  }
415
416
  return null;
416
417
  }(e) || o;
417
418
  }
418
419
  function mn(e, n, o) {
419
- const t = N(n), i = I(n), r = o === "fixed", l = te(e, !0, r, n);
420
- let u = { scrollLeft: 0, scrollTop: 0 };
420
+ const t = N(n), i = Y(n), r = o === "fixed", l = te(e, !0, r, n);
421
+ let a = { scrollLeft: 0, scrollTop: 0 };
421
422
  const c = ee(0);
422
- if (t || !t && !r) if ((J(n) !== "body" || ge(i)) && (u = Ce(n)), N(n)) {
423
+ if (t || !t && !r) if ((Z(n) !== "body" || ve(i)) && (a = Me(n)), N(n)) {
423
424
  const s = te(n, !0, r, n);
424
425
  c.x = s.x + n.clientLeft, c.y = s.y + n.clientTop;
425
426
  } else i && (c.x = Tt(i));
426
- return { x: l.left + u.scrollLeft - c.x, y: l.top + u.scrollTop - c.y, width: l.width, height: l.height };
427
+ return { x: l.left + a.scrollLeft - c.x, y: l.top + a.scrollTop - c.y, width: l.width, height: l.height };
427
428
  }
428
429
  const hn = { getClippingRect: function(e) {
429
430
  let { element: n, boundary: o, rootBoundary: t, strategy: i } = e;
430
431
  const r = o === "clippingAncestors" ? function(s, f) {
431
- const a = f.get(s);
432
- if (a) return a;
433
- let m = Oe(s).filter((g) => Y(g) && J(g) !== "body"), p = null;
432
+ const u = f.get(s);
433
+ if (u) return u;
434
+ let m = Te(s).filter((v) => X(v) && Z(v) !== "body"), p = null;
434
435
  const d = k(s).position === "fixed";
435
436
  let h = d ? fe(s) : s;
436
- for (; Y(h) && !$e(h); ) {
437
- const g = k(h), w = Ve(h);
438
- w || g.position !== "fixed" || (p = null), (d ? !w && !p : !w && g.position === "static" && p && ["absolute", "fixed"].includes(p.position) || ge(h) && !w && $t(s, h)) ? m = m.filter((v) => v !== h) : p = g, h = fe(h);
437
+ for (; X(h) && !$e(h); ) {
438
+ const v = k(h), g = We(h);
439
+ g || v.position !== "fixed" || (p = null), (d ? !g && !p : !g && v.position === "static" && p && ["absolute", "fixed"].includes(p.position) || ve(h) && !g && Ht(s, h)) ? m = m.filter((w) => w !== h) : p = v, h = fe(h);
439
440
  }
440
441
  return f.set(s, m), m;
441
- }(n, this._c) : [].concat(o), l = [...r, t], u = l[0], c = l.reduce((s, f) => {
442
- const a = rt(n, f, i);
443
- return s.top = ue(a.top, s.top), s.right = We(a.right, s.right), s.bottom = We(a.bottom, s.bottom), s.left = ue(a.left, s.left), s;
444
- }, rt(n, u, i));
442
+ }(n, this._c) : [].concat(o), l = [...r, t], a = l[0], c = l.reduce((s, f) => {
443
+ const u = rt(n, f, i);
444
+ return s.top = ae(u.top, s.top), s.right = Be(u.right, s.right), s.bottom = Be(u.bottom, s.bottom), s.left = ae(u.left, s.left), s;
445
+ }, rt(n, a, i));
445
446
  return { width: c.right - c.left, height: c.bottom - c.top, x: c.left, y: c.top };
446
447
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
447
448
  let { rect: n, offsetParent: o, strategy: t } = e;
448
- const i = N(o), r = I(o);
449
+ const i = N(o), r = Y(o);
449
450
  if (o === r) return n;
450
- let l = { scrollLeft: 0, scrollTop: 0 }, u = ee(1);
451
+ let l = { scrollLeft: 0, scrollTop: 0 }, a = ee(1);
451
452
  const c = ee(0);
452
- if ((i || !i && t !== "fixed") && ((J(o) !== "body" || ge(r)) && (l = Ce(o)), N(o))) {
453
+ if ((i || !i && t !== "fixed") && ((Z(o) !== "body" || ve(r)) && (l = Me(o)), N(o))) {
453
454
  const s = te(o);
454
- u = ae(o), c.x = s.x + o.clientLeft, c.y = s.y + o.clientTop;
455
+ a = ue(o), c.x = s.x + o.clientLeft, c.y = s.y + o.clientTop;
455
456
  }
456
- return { width: n.width * u.x, height: n.height * u.y, x: n.x * u.x - l.scrollLeft * u.x + c.x, y: n.y * u.y - l.scrollTop * u.y + c.y };
457
- }, isElement: Y, getDimensions: function(e) {
457
+ return { width: n.width * a.x, height: n.height * a.y, x: n.x * a.x - l.scrollLeft * a.x + c.x, y: n.y * a.y - l.scrollTop * a.y + c.y };
458
+ }, isElement: X, getDimensions: function(e) {
458
459
  return At(e);
459
- }, getOffsetParent: st, getDocumentElement: I, getScale: ae, async getElementRects(e) {
460
+ }, getOffsetParent: st, getDocumentElement: Y, getScale: ue, async getElementRects(e) {
460
461
  let { reference: n, floating: o, strategy: t } = e;
461
462
  const i = this.getOffsetParent || st, r = this.getDimensions;
462
463
  return { reference: mn(n, await i(o), t), floating: { x: 0, y: 0, ...await r(o) } };
463
464
  }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => k(e).direction === "rtl" };
464
- function gn(e, n, o, t) {
465
+ function vn(e, n, o, t) {
465
466
  t === void 0 && (t = {});
466
- const { ancestorScroll: i = !0, ancestorResize: r = !0, elementResize: l = !0, layoutShift: u = typeof IntersectionObserver == "function", animationFrame: c = !1 } = t, s = Ue(e), f = i || r ? [...s ? Oe(s) : [], ...Oe(n)] : [];
467
+ const { ancestorScroll: i = !0, ancestorResize: r = !0, elementResize: l = !0, layoutShift: a = typeof IntersectionObserver == "function", animationFrame: c = !1 } = t, s = Ge(e), f = i || r ? [...s ? Te(s) : [], ...Te(n)] : [];
467
468
  f.forEach((h) => {
468
469
  i && h.addEventListener("scroll", o, { passive: !0 }), r && h.addEventListener("resize", o);
469
470
  });
470
- const a = s && u ? function(h, g) {
471
- let w, v = null;
472
- const b = I(h);
471
+ const u = s && a ? function(h, v) {
472
+ let g, w = null;
473
+ const b = Y(h);
473
474
  function P() {
474
- clearTimeout(w), v && v.disconnect(), v = null;
475
+ clearTimeout(g), w && w.disconnect(), w = null;
475
476
  }
476
- return function x(E, H) {
477
- E === void 0 && (E = !1), H === void 0 && (H = 1), P();
478
- const { left: $, top: F, width: R, height: A } = h.getBoundingClientRect();
479
- if (E || g(), !R || !A) return;
480
- const C = be(F), y = be(b.clientWidth - ($ + R)), O = be(b.clientHeight - (F + A)), S = be($);
477
+ return function x(E, C) {
478
+ E === void 0 && (E = !1), C === void 0 && (C = 1), P();
479
+ const { left: H, top: D, width: R, height: A } = h.getBoundingClientRect();
480
+ if (E || v(), !R || !A) return;
481
+ const $ = Pe(D), y = Pe(b.clientWidth - (H + R)), O = Pe(b.clientHeight - (D + A)), S = Pe(H);
481
482
  let T = !0;
482
- v = new IntersectionObserver((M) => {
483
+ w = new IntersectionObserver((M) => {
483
484
  const L = M[0].intersectionRatio;
484
- if (L !== H) {
485
+ if (L !== C) {
485
486
  if (!T) return x();
486
- L ? x(!1, L) : w = setTimeout(() => {
487
+ L ? x(!1, L) : g = setTimeout(() => {
487
488
  x(!1, 1e-7);
488
489
  }, 100);
489
490
  }
490
491
  T = !1;
491
- }, { rootMargin: -C + "px " + -y + "px " + -O + "px " + -S + "px", threshold: ue(0, We(1, H)) || 1 }), v.observe(h);
492
+ }, { rootMargin: -$ + "px " + -y + "px " + -O + "px " + -S + "px", threshold: ae(0, Be(1, C)) || 1 }), w.observe(h);
492
493
  }(!0), P;
493
494
  }(s, o) : null;
494
495
  let m, p = null;
495
496
  l && (p = new ResizeObserver(o), s && !c && p.observe(s), p.observe(n));
496
497
  let d = c ? te(e) : null;
497
498
  return c && function h() {
498
- const g = te(e);
499
- !d || g.x === d.x && g.y === d.y && g.width === d.width && g.height === d.height || o(), d = g, m = requestAnimationFrame(h);
499
+ const v = te(e);
500
+ !d || v.x === d.x && v.y === d.y && v.width === d.width && v.height === d.height || o(), d = v, m = requestAnimationFrame(h);
500
501
  }(), o(), () => {
501
502
  f.forEach((h) => {
502
503
  i && h.removeEventListener("scroll", o), r && h.removeEventListener("resize", o);
503
- }), a && a(), p && p.disconnect(), p = null, c && cancelAnimationFrame(m);
504
+ }), u && u(), p && p.disconnect(), p = null, c && cancelAnimationFrame(m);
504
505
  };
505
506
  }
506
- const wn = (e, n, o) => {
507
+ const gn = (e, n, o) => {
507
508
  const t = /* @__PURE__ */ new Map(), i = { platform: hn, ...o }, r = { ...i.platform, _c: t };
508
509
  return tn(e, n, { ...i, platform: r });
509
510
  };
510
- var vn = "div";
511
+ var wn = "div";
511
512
  function lt(e = 0, n = 0, o = 0, t = 0) {
512
513
  if (typeof DOMRect == "function")
513
514
  return new DOMRect(e, n, o, t);
@@ -545,7 +546,7 @@ function ct(e) {
545
546
  return Math.round(e * n) / n;
546
547
  }
547
548
  function Pn(e, n) {
548
- return un(({ placement: o }) => {
549
+ return an(({ placement: o }) => {
549
550
  var t;
550
551
  const i = ((e == null ? void 0 : e.clientHeight) || 0) / 2, r = typeof n.gutter == "number" ? n.gutter + i : (t = n.gutter) != null ? t : i;
551
552
  return {
@@ -568,7 +569,7 @@ function En(e) {
568
569
  }
569
570
  function Sn(e) {
570
571
  if (!(!e.slide && !e.overlap))
571
- return an({
572
+ return un({
572
573
  mainAxis: e.slide,
573
574
  crossAxis: e.overlap,
574
575
  padding: e.overflowPadding,
@@ -600,28 +601,28 @@ function An(e, n) {
600
601
  padding: n.arrowPadding
601
602
  });
602
603
  }
603
- var Ct = Be(
604
+ var $t = je(
604
605
  function(n) {
605
606
  var o = n, {
606
607
  store: t,
607
608
  modal: i = !1,
608
609
  portal: r = !!i,
609
610
  preserveTabOrder: l = !0,
610
- autoFocusOnShow: u = !0,
611
+ autoFocusOnShow: a = !0,
611
612
  wrapperProps: c,
612
613
  fixed: s = !1,
613
614
  flip: f = !0,
614
- shift: a = 0,
615
+ shift: u = 0,
615
616
  slide: m = !0,
616
617
  overlap: p = !1,
617
618
  sameWidth: d = !1,
618
619
  fitViewport: h = !1,
619
- gutter: g,
620
- arrowPadding: w = 4,
621
- overflowPadding: v = 8,
620
+ gutter: v,
621
+ arrowPadding: g = 4,
622
+ overflowPadding: w = 8,
622
623
  getAnchorRect: b,
623
624
  updatePosition: P
624
- } = o, x = Te(o, [
625
+ } = o, x = Ce(o, [
625
626
  "store",
626
627
  "modal",
627
628
  "portal",
@@ -641,35 +642,35 @@ var Ct = Be(
641
642
  "getAnchorRect",
642
643
  "updatePosition"
643
644
  ]);
644
- const E = vt();
645
+ const E = wt();
645
646
  t = t || E, He(
646
647
  t,
647
648
  process.env.NODE_ENV !== "production" && "Popover must receive a `store` prop or be wrapped in a PopoverProvider component."
648
649
  );
649
- const H = t.useState("arrowElement"), $ = t.useState("anchorElement"), F = t.useState("disclosureElement"), R = t.useState("popoverElement"), A = t.useState("contentElement"), C = t.useState("placement"), y = t.useState("mounted"), O = t.useState("rendered"), S = ce(null), [T, M] = Ye(!1), { portalRef: L, domReady: X } = ht(r, x.portalRef), V = me(b), W = me(P), Q = !!P;
650
- De(() => {
650
+ const C = t.useState("arrowElement"), H = t.useState("anchorElement"), D = t.useState("disclosureElement"), R = t.useState("popoverElement"), A = t.useState("contentElement"), $ = t.useState("placement"), y = t.useState("mounted"), O = t.useState("rendered"), S = ce(null), [T, M] = Ye(!1), { portalRef: L, domReady: I } = ht(r, x.portalRef), V = me(b), W = me(P), K = !!P;
651
+ Le(() => {
651
652
  if (!(R != null && R.isConnected)) return;
652
653
  R.style.setProperty(
653
654
  "--popover-overflow-padding",
654
- `${v}px`
655
+ `${w}px`
655
656
  );
656
- const B = yn($, V), pe = async () => {
657
+ const B = yn(H, V), pe = async () => {
657
658
  if (!y) return;
658
- H || (S.current = S.current || document.createElement("div"));
659
- const re = H || S.current, Dt = [
660
- Pn(re, { gutter: g, shift: a }),
661
- En({ flip: f, overflowPadding: v }),
662
- Sn({ slide: m, shift: a, overlap: p, overflowPadding: v }),
663
- An(re, { arrowPadding: w }),
659
+ C || (S.current = S.current || document.createElement("div"));
660
+ const re = C || S.current, Ft = [
661
+ Pn(re, { gutter: v, shift: u }),
662
+ En({ flip: f, overflowPadding: w }),
663
+ Sn({ slide: m, overlap: p, overflowPadding: w }),
664
+ An(re, { arrowPadding: g }),
664
665
  Rn({
665
666
  sameWidth: d,
666
667
  fitViewport: h,
667
- overflowPadding: v
668
+ overflowPadding: w
668
669
  })
669
- ], ie = await wn(B, R, {
670
- placement: C,
670
+ ], ie = await gn(B, R, {
671
+ placement: $,
671
672
  strategy: s ? "fixed" : "absolute",
672
- middleware: Dt
673
+ middleware: Ft
673
674
  });
674
675
  t == null || t.setState("currentPlacement", ie.placement), M(!0);
675
676
  const Lt = ct(ie.x), _t = ct(ie.y);
@@ -678,55 +679,55 @@ var Ct = Be(
678
679
  left: "0",
679
680
  transform: `translate3d(${Lt}px,${_t}px,0)`
680
681
  }), re && ie.middlewareData.arrow) {
681
- const { x: we, y: ve } = ie.middlewareData.arrow, Je = ie.placement.split("-")[0], xe = re.clientWidth / 2, ye = re.clientHeight / 2, Qe = we != null ? we + xe : -xe, Ke = ve != null ? ve + ye : -ye;
682
+ const { x: we, y: xe } = ie.middlewareData.arrow, Ze = ie.placement.split("-")[0], ye = re.clientWidth / 2, be = re.clientHeight / 2, Ke = we != null ? we + ye : -ye, Qe = xe != null ? xe + be : -be;
682
683
  R.style.setProperty(
683
684
  "--popover-transform-origin",
684
685
  {
685
- top: `${Qe}px calc(100% + ${ye}px)`,
686
- bottom: `${Qe}px ${-ye}px`,
687
- left: `calc(100% + ${xe}px) ${Ke}px`,
688
- right: `${-xe}px ${Ke}px`
689
- }[Je]
686
+ top: `${Ke}px calc(100% + ${be}px)`,
687
+ bottom: `${Ke}px ${-be}px`,
688
+ left: `calc(100% + ${ye}px) ${Qe}px`,
689
+ right: `${-ye}px ${Qe}px`
690
+ }[Ze]
690
691
  ), Object.assign(re.style, {
691
692
  left: we != null ? `${we}px` : "",
692
- top: ve != null ? `${ve}px` : "",
693
- [Je]: "100%"
693
+ top: xe != null ? `${xe}px` : "",
694
+ [Ze]: "100%"
694
695
  });
695
696
  }
696
- }, Ft = gn(B, R, async () => {
697
- Q ? (await W({ updatePosition: pe }), M(!0)) : await pe();
697
+ }, Dt = vn(B, R, async () => {
698
+ K ? (await W({ updatePosition: pe }), M(!0)) : await pe();
698
699
  }, {
699
700
  // JSDOM doesn't support ResizeObserver
700
701
  elementResize: typeof ResizeObserver == "function"
701
702
  });
702
703
  return () => {
703
- M(!1), Ft();
704
+ M(!1), Dt();
704
705
  };
705
706
  }, [
706
707
  t,
707
708
  O,
708
709
  R,
710
+ C,
709
711
  H,
710
- $,
711
712
  R,
712
- C,
713
+ $,
713
714
  y,
714
- X,
715
+ I,
715
716
  s,
716
717
  f,
717
- a,
718
+ u,
718
719
  m,
719
720
  p,
720
721
  d,
721
722
  h,
723
+ v,
722
724
  g,
723
725
  w,
724
- v,
725
726
  V,
726
- Q,
727
+ K,
727
728
  W
728
- ]), De(() => {
729
- if (!y || !X || !(R != null && R.isConnected) || !(A != null && A.isConnected)) return;
729
+ ]), Le(() => {
730
+ if (!y || !I || !(R != null && R.isConnected) || !(A != null && A.isConnected)) return;
730
731
  const B = () => {
731
732
  R.style.zIndex = getComputedStyle(A).zIndex;
732
733
  };
@@ -735,11 +736,11 @@ var Ct = Be(
735
736
  pe = requestAnimationFrame(B);
736
737
  });
737
738
  return () => cancelAnimationFrame(pe);
738
- }, [y, X, R, A]);
739
+ }, [y, I, R, A]);
739
740
  const oe = s ? "fixed" : "absolute";
740
- return x = Le(
741
+ return x = _e(
741
742
  x,
742
- (B) => /* @__PURE__ */ Ee.jsx(
743
+ (B) => /* @__PURE__ */ Se.jsx(
743
744
  "div",
744
745
  G(_({}, c), {
745
746
  style: _({
@@ -754,9 +755,9 @@ var Ct = Be(
754
755
  })
755
756
  ),
756
757
  [t, oe, c]
757
- ), x = Le(
758
+ ), x = _e(
758
759
  x,
759
- (B) => /* @__PURE__ */ Ee.jsx(xt, { value: t, children: B }),
760
+ (B) => /* @__PURE__ */ Se.jsx(xt, { value: t, children: B }),
760
761
  [t]
761
762
  ), x = G(_({
762
763
  // data-placing is not part of the public API. We're setting this here so
@@ -773,22 +774,25 @@ var Ct = Be(
773
774
  modal: i,
774
775
  portal: r,
775
776
  preserveTabOrder: l,
776
- preserveTabOrderAnchor: F || $,
777
- autoFocusOnShow: T && u
777
+ preserveTabOrderAnchor: D || H,
778
+ autoFocusOnShow: T && a
778
779
  }, x), {
779
780
  portalRef: L
780
781
  })), x;
781
782
  }
782
- ), zn = dt(
783
- je(function(n) {
784
- const o = Ct(n);
785
- return ze(vn, o);
783
+ ), Xn = dt(
784
+ ze(function(n) {
785
+ const o = $t(n);
786
+ return Xe(wn, o);
786
787
  }),
787
- vt
788
- ), Ge = Xt(
789
- [Qt],
788
+ wt
789
+ ), ge = It(
790
+ [Kt],
790
791
  [xt]
791
- ), Ze = Ge.useProviderContext, Yn = Ge.ContextProvider, On = Ge.ScopedContextProvider;
792
+ );
793
+ ge.useContext;
794
+ ge.useScopedContext;
795
+ var Je = ge.useProviderContext, Yn = ge.ContextProvider, On = ge.ScopedContextProvider;
792
796
  function Tn(e = {}) {
793
797
  var n;
794
798
  const o = (n = e.store) == null ? void 0 : n.getState(), t = bt(le(q({}, e), {
@@ -804,25 +808,25 @@ function Tn(e = {}) {
804
808
  autoFocusOnShow: j(o == null ? void 0 : o.autoFocusOnShow, !1)
805
809
  }), l = pt(r, t, e.store);
806
810
  return le(q(q({}, t), l), {
807
- setAutoFocusOnShow: (u) => l.setState("autoFocusOnShow", u)
811
+ setAutoFocusOnShow: (a) => l.setState("autoFocusOnShow", a)
808
812
  });
809
813
  }
810
- function Hn(e, n, o) {
811
- return Pe(e, o, "timeout"), Pe(e, o, "showTimeout"), Pe(e, o, "hideTimeout"), Pt(e, n, o);
814
+ function Cn(e, n, o) {
815
+ return Ee(e, o, "timeout"), Ee(e, o, "showTimeout"), Ee(e, o, "hideTimeout"), Pt(e, n, o);
812
816
  }
813
817
  function In(e = {}) {
814
818
  const [n, o] = mt(Tn, e);
815
- return Hn(n, o, e);
819
+ return Cn(n, o, e);
816
820
  }
817
821
  function Fe(e) {
818
822
  return [e.clientX, e.clientY];
819
823
  }
820
- function ut(e, n) {
824
+ function at(e, n) {
821
825
  const [o, t] = e;
822
826
  let i = !1;
823
827
  const r = n.length;
824
- for (let l = r, u = 0, c = l - 1; u < l; c = u++) {
825
- const [s, f] = n[u], [a, m] = n[c], [, p] = n[c === 0 ? l - 1 : c - 1] || [0, 0], d = (f - m) * (o - s) - (s - a) * (t - f);
828
+ for (let l = r, a = 0, c = l - 1; a < l; c = a++) {
829
+ const [s, f] = n[a], [u, m] = n[c], [, p] = n[c === 0 ? l - 1 : c - 1] || [0, 0], d = (f - m) * (o - s) - (s - u) * (t - f);
826
830
  if (m < f) {
827
831
  if (t >= m && t < f) {
828
832
  if (d === 0) return !0;
@@ -833,35 +837,35 @@ function ut(e, n) {
833
837
  if (d === 0) return !0;
834
838
  d < 0 && (t === m ? t < p && (i = !i) : i = !i);
835
839
  }
836
- } else if (t === f && (o >= a && o <= s || o >= s && o <= a))
840
+ } else if (t === f && (o >= u && o <= s || o >= s && o <= u))
837
841
  return !0;
838
842
  }
839
843
  return i;
840
844
  }
841
- function $n(e, n) {
842
- const { top: o, right: t, bottom: i, left: r } = n, [l, u] = e, c = l < r ? "left" : l > t ? "right" : null, s = u < o ? "top" : u > i ? "bottom" : null;
845
+ function Hn(e, n) {
846
+ const { top: o, right: t, bottom: i, left: r } = n, [l, a] = e, c = l < r ? "left" : l > t ? "right" : null, s = a < o ? "top" : a > i ? "bottom" : null;
843
847
  return [c, s];
844
848
  }
845
- function at(e, n) {
846
- const o = e.getBoundingClientRect(), { top: t, right: i, bottom: r, left: l } = o, [u, c] = $n(n, o), s = [n];
847
- return u ? (c !== "top" && s.push([u === "left" ? l : i, t]), s.push([u === "left" ? i : l, t]), s.push([u === "left" ? i : l, r]), c !== "bottom" && s.push([u === "left" ? l : i, r])) : c === "top" ? (s.push([l, t]), s.push([l, r]), s.push([i, r]), s.push([i, t])) : (s.push([l, r]), s.push([l, t]), s.push([i, t]), s.push([i, r])), s;
849
+ function ut(e, n) {
850
+ const o = e.getBoundingClientRect(), { top: t, right: i, bottom: r, left: l } = o, [a, c] = Hn(n, o), s = [n];
851
+ return a ? (c !== "top" && s.push([a === "left" ? l : i, t]), s.push([a === "left" ? i : l, t]), s.push([a === "left" ? i : l, r]), c !== "bottom" && s.push([a === "left" ? l : i, r])) : c === "top" ? (s.push([l, t]), s.push([l, r]), s.push([i, r]), s.push([i, t])) : (s.push([l, r]), s.push([l, t]), s.push([i, t]), s.push([i, r])), s;
848
852
  }
849
- var Cn = "div";
853
+ var $n = "div";
850
854
  function Mt(e, n, o, t) {
851
- return Gt(n) ? !0 : e ? !!(ke(n, e) || o && ke(o, e) || t != null && t.some((i) => Mt(e, i, o))) : !1;
855
+ return Gt(n) ? !0 : e ? !!(Ne(n, e) || o && Ne(o, e) || t != null && t.some((i) => Mt(e, i, o))) : !1;
852
856
  }
853
857
  function Mn(e) {
854
858
  var n = e, {
855
859
  store: o
856
- } = n, t = Te(n, [
860
+ } = n, t = Ce(n, [
857
861
  "store"
858
862
  ]);
859
863
  const [i, r] = Ye(!1), l = o.useState("mounted");
860
864
  U(() => {
861
865
  l || r(!1);
862
866
  }, [l]);
863
- const u = t.onFocus, c = me((f) => {
864
- u == null || u(f), !f.defaultPrevented && r(!0);
867
+ const a = t.onFocus, c = me((f) => {
868
+ a == null || a(f), !f.defaultPrevented && r(!0);
865
869
  }), s = ce(null);
866
870
  return U(() => zt(o, ["anchorElement"], (f) => {
867
871
  s.current = f.anchorElement;
@@ -872,16 +876,16 @@ function Mn(e) {
872
876
  onFocus: c
873
877
  }), t;
874
878
  }
875
- var ft = Kt(null), Fn = Be(
879
+ var ft = en(null), Dn = je(
876
880
  function(n) {
877
881
  var o = n, {
878
882
  store: t,
879
883
  modal: i = !1,
880
884
  portal: r = !!i,
881
885
  hideOnEscape: l = !0,
882
- hideOnHoverOutside: u = !0,
883
- disablePointerEventsOnApproach: c = !!u
884
- } = o, s = Te(o, [
886
+ hideOnHoverOutside: a = !0,
887
+ disablePointerEventsOnApproach: c = !!a
888
+ } = o, s = Ce(o, [
885
889
  "store",
886
890
  "modal",
887
891
  "portal",
@@ -889,30 +893,30 @@ var ft = Kt(null), Fn = Be(
889
893
  "hideOnHoverOutside",
890
894
  "disablePointerEventsOnApproach"
891
895
  ]);
892
- const f = Ze();
896
+ const f = Je();
893
897
  t = t || f, He(
894
898
  t,
895
899
  process.env.NODE_ENV !== "production" && "Hovercard must receive a `store` prop or be wrapped in a HovercardProvider component."
896
900
  );
897
- const a = ce(null), [m, p] = Ye([]), d = ce(0), h = ce(null), { portalRef: g, domReady: w } = ht(r, s.portalRef), v = gt(), b = !!u, P = _e(u), x = !!c, E = _e(
901
+ const u = ce(null), [m, p] = Ye([]), d = ce(0), h = ce(null), { portalRef: v, domReady: g } = ht(r, s.portalRef), w = vt(), b = !!a, P = ke(a), x = !!c, E = ke(
898
902
  c
899
- ), H = t.useState("open"), $ = t.useState("mounted");
903
+ ), C = t.useState("open"), H = t.useState("mounted");
900
904
  U(() => {
901
- if (!w || !$ || !b && !x) return;
902
- const y = a.current;
905
+ if (!g || !H || !b && !x) return;
906
+ const y = u.current;
903
907
  return y ? et(
904
908
  se("mousemove", (S) => {
905
- if (!t || !v()) return;
906
- const { anchorElement: T, hideTimeout: M, timeout: L } = t.getState(), X = h.current, [V] = S.composedPath(), W = T;
909
+ if (!t || !w()) return;
910
+ const { anchorElement: T, hideTimeout: M, timeout: L } = t.getState(), I = h.current, [V] = S.composedPath(), W = T;
907
911
  if (Mt(V, y, W, m)) {
908
- h.current = V && W && ke(W, V) ? Fe(S) : null, window.clearTimeout(d.current), d.current = 0;
912
+ h.current = V && W && Ne(W, V) ? Fe(S) : null, window.clearTimeout(d.current), d.current = 0;
909
913
  return;
910
914
  }
911
915
  if (!d.current) {
912
- if (X) {
913
- const Q = Fe(S), oe = at(y, X);
914
- if (ut(Q, oe)) {
915
- if (h.current = Q, !E(S)) return;
916
+ if (I) {
917
+ const K = Fe(S), oe = ut(y, I);
918
+ if (at(K, oe)) {
919
+ if (h.current = K, !E(S)) return;
916
920
  S.preventDefault(), S.stopPropagation();
917
921
  return;
918
922
  }
@@ -926,23 +930,23 @@ var ft = Kt(null), Fn = Be(
926
930
  ) : void 0;
927
931
  }, [
928
932
  t,
929
- v,
930
933
  w,
931
- $,
934
+ g,
935
+ H,
932
936
  b,
933
937
  x,
934
938
  m,
935
939
  E,
936
940
  P
937
941
  ]), U(() => {
938
- if (!w || !$ || !x) return;
942
+ if (!g || !H || !x) return;
939
943
  const y = (O) => {
940
- const S = a.current;
944
+ const S = u.current;
941
945
  if (!S) return;
942
946
  const T = h.current;
943
947
  if (!T) return;
944
- const M = at(S, T);
945
- if (ut(Fe(O), M)) {
948
+ const M = ut(S, T);
949
+ if (at(Fe(O), M)) {
946
950
  if (!E(O)) return;
947
951
  O.preventDefault(), O.stopPropagation();
948
952
  }
@@ -954,23 +958,23 @@ var ft = Kt(null), Fn = Be(
954
958
  se("mouseout", y, !0),
955
959
  se("mouseleave", y, !0)
956
960
  );
957
- }, [w, $, x, E]), U(() => {
958
- w && (H || t == null || t.setAutoFocusOnShow(!1));
959
- }, [t, w, H]);
960
- const F = qt(H);
961
+ }, [g, H, x, E]), U(() => {
962
+ g && (C || t == null || t.setAutoFocusOnShow(!1));
963
+ }, [t, g, C]);
964
+ const D = qt(C);
961
965
  U(() => {
962
- if (w)
966
+ if (g)
963
967
  return () => {
964
- F.current || t == null || t.setAutoFocusOnShow(!1);
968
+ D.current || t == null || t.setAutoFocusOnShow(!1);
965
969
  };
966
- }, [t, w]);
967
- const R = en(ft);
968
- De(() => {
969
- if (i || !r || !$ || !w) return;
970
- const y = a.current;
970
+ }, [t, g]);
971
+ const R = Qt(ft);
972
+ Le(() => {
973
+ if (i || !r || !H || !g) return;
974
+ const y = u.current;
971
975
  if (y)
972
976
  return R == null ? void 0 : R(y);
973
- }, [i, r, $, w]);
977
+ }, [i, r, H, g]);
974
978
  const A = yt(
975
979
  (y) => {
976
980
  p((S) => [...S, y]);
@@ -983,23 +987,23 @@ var ft = Kt(null), Fn = Be(
983
987
  },
984
988
  [R]
985
989
  );
986
- s = Le(
990
+ s = _e(
987
991
  s,
988
- (y) => /* @__PURE__ */ Ee.jsx(On, { value: t, children: /* @__PURE__ */ Ee.jsx(ft.Provider, { value: A, children: y }) }),
992
+ (y) => /* @__PURE__ */ Se.jsx(On, { value: t, children: /* @__PURE__ */ Se.jsx(ft.Provider, { value: A, children: y }) }),
989
993
  [t, A]
990
994
  ), s = G(_({}, s), {
991
- ref: wt(a, s.ref)
995
+ ref: gt(u, s.ref)
992
996
  }), s = Mn(_({ store: t }, s));
993
- const C = t.useState(
997
+ const $ = t.useState(
994
998
  (y) => i || y.autoFocusOnShow
995
999
  );
996
- return s = Ct(G(_({
1000
+ return s = $t(G(_({
997
1001
  store: t,
998
1002
  modal: i,
999
1003
  portal: r,
1000
- autoFocusOnShow: C
1004
+ autoFocusOnShow: $
1001
1005
  }, s), {
1002
- portalRef: g,
1006
+ portalRef: v,
1003
1007
  hideOnEscape(y) {
1004
1008
  return Ut(l, y) ? !1 : (requestAnimationFrame(() => {
1005
1009
  requestAnimationFrame(() => {
@@ -1009,66 +1013,66 @@ var ft = Kt(null), Fn = Be(
1009
1013
  }
1010
1014
  })), s;
1011
1015
  }
1012
- ), Xn = dt(
1013
- je(function(n) {
1014
- const o = Fn(n);
1015
- return ze(Cn, o);
1016
+ ), qn = dt(
1017
+ ze(function(n) {
1018
+ const o = Dn(n);
1019
+ return Xe($n, o);
1016
1020
  }),
1017
- Ze
1018
- ), Dn = "a", Ln = Be(
1021
+ Je
1022
+ ), Fn = "a", Ln = je(
1019
1023
  function(n) {
1020
- var o = n, { store: t, showOnHover: i = !0 } = o, r = Te(o, ["store", "showOnHover"]);
1021
- const l = Ze();
1024
+ var o = n, { store: t, showOnHover: i = !0 } = o, r = Ce(o, ["store", "showOnHover"]);
1025
+ const l = Je();
1022
1026
  t = t || l, He(
1023
1027
  t,
1024
1028
  process.env.NODE_ENV !== "production" && "HovercardAnchor must receive a `store` prop or be wrapped in a HovercardProvider component."
1025
1029
  );
1026
- const u = Zt(r), c = ce(0);
1027
- U(() => () => window.clearTimeout(c.current), []), U(() => se("mouseleave", (w) => {
1030
+ const a = Jt(r), c = ce(0);
1031
+ U(() => () => window.clearTimeout(c.current), []), U(() => se("mouseleave", (g) => {
1028
1032
  if (!t) return;
1029
- const { anchorElement: v } = t.getState();
1030
- v && w.target === v && (window.clearTimeout(c.current), c.current = 0);
1033
+ const { anchorElement: w } = t.getState();
1034
+ w && g.target === w && (window.clearTimeout(c.current), c.current = 0);
1031
1035
  }, !0), [t]);
1032
- const s = r.onMouseMove, f = _e(i), a = gt(), m = me((g) => {
1033
- if (s == null || s(g), u || !t || g.defaultPrevented || c.current || !a() || !f(g)) return;
1034
- const w = g.currentTarget;
1035
- t.setAnchorElement(w), t.setDisclosureElement(w);
1036
- const { showTimeout: v, timeout: b } = t.getState(), P = () => {
1037
- c.current = 0, a() && (t == null || t.setAnchorElement(w), t == null || t.show(), queueMicrotask(() => {
1038
- t == null || t.setDisclosureElement(w);
1036
+ const s = r.onMouseMove, f = ke(i), u = vt(), m = me((v) => {
1037
+ if (s == null || s(v), a || !t || v.defaultPrevented || c.current || !u() || !f(v)) return;
1038
+ const g = v.currentTarget;
1039
+ t.setAnchorElement(g), t.setDisclosureElement(g);
1040
+ const { showTimeout: w, timeout: b } = t.getState(), P = () => {
1041
+ c.current = 0, u() && (t == null || t.setAnchorElement(g), t == null || t.show(), queueMicrotask(() => {
1042
+ t == null || t.setDisclosureElement(g);
1039
1043
  }));
1040
- }, x = v ?? b;
1044
+ }, x = w ?? b;
1041
1045
  x === 0 ? P() : c.current = window.setTimeout(P, x);
1042
- }), p = r.onClick, d = me((g) => {
1043
- p == null || p(g), t && (window.clearTimeout(c.current), c.current = 0);
1046
+ }), p = r.onClick, d = me((v) => {
1047
+ p == null || p(v), t && (window.clearTimeout(c.current), c.current = 0);
1044
1048
  }), h = yt(
1045
- (g) => {
1049
+ (v) => {
1046
1050
  if (!t) return;
1047
- const { anchorElement: w } = t.getState();
1048
- w != null && w.isConnected || t.setAnchorElement(g);
1051
+ const { anchorElement: g } = t.getState();
1052
+ g != null && g.isConnected || t.setAnchorElement(v);
1049
1053
  },
1050
1054
  [t]
1051
1055
  );
1052
1056
  return r = G(_({}, r), {
1053
- ref: wt(h, r.ref),
1057
+ ref: gt(h, r.ref),
1054
1058
  onMouseMove: m,
1055
1059
  onClick: d
1056
- }), r = Jt(r), r;
1060
+ }), r = Zt(r), r;
1057
1061
  }
1058
- ), qn = je(function(n) {
1062
+ ), Un = ze(function(n) {
1059
1063
  const o = Ln(n);
1060
- return ze(Dn, o);
1064
+ return Xe(Fn, o);
1061
1065
  });
1062
1066
  export {
1063
- qn as H,
1064
- zn as P,
1065
- Xn as a,
1067
+ Un as H,
1068
+ Xn as P,
1069
+ qn as a,
1066
1070
  In as b,
1067
1071
  Tn as c,
1068
- Hn as d,
1072
+ Cn as d,
1069
1073
  On as e,
1070
1074
  Yn as f,
1071
- Fn as g,
1075
+ Dn as g,
1072
1076
  Ln as h,
1073
- jn as u
1077
+ zn as u
1074
1078
  };