welcome-ui 8.1.0-alpha.3 → 8.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/dist/{AXB53BZF-XKOjjeWO.mjs → AXB53BZF-BOEe01VW.mjs} +3 -3
  2. package/dist/Accordion.mjs +23 -30
  3. package/dist/Alert.mjs +70 -76
  4. package/dist/AspectRatio.mjs +9 -9
  5. package/dist/Avatar.mjs +47 -48
  6. package/dist/{BYC7LY2E-CWSI38FM.mjs → BYC7LY2E-B1IDizRs.mjs} +127 -128
  7. package/dist/Badge.mjs +25 -25
  8. package/dist/Box.mjs +5 -5
  9. package/dist/Breadcrumb.mjs +168 -172
  10. package/dist/Button.mjs +67 -72
  11. package/dist/ButtonGroup.mjs +12 -13
  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/{CustomPopper-B2Cqfph4.mjs → CustomInput-IA_gVoXd.mjs} +1445 -1466
  17. package/dist/DatePicker.mjs +80 -81
  18. package/dist/DateTimePicker.mjs +61 -66
  19. package/dist/DateTimePickerCommon.mjs +1 -1
  20. package/dist/Drawer.mjs +172 -188
  21. package/dist/DropdownMenu.mjs +411 -414
  22. package/dist/Field.mjs +91 -103
  23. package/dist/FieldGroup.mjs +9 -12
  24. package/dist/FileDrop.mjs +556 -587
  25. package/dist/FileUpload.mjs +71 -92
  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 → ITI7HKP4-EL9KXYBU.mjs} +67 -68
  31. package/dist/Icon.mjs +25 -25
  32. package/dist/Icons.mjs +988 -988
  33. package/dist/IconsFont.mjs +22 -22
  34. package/dist/InputText.mjs +58 -66
  35. package/dist/{JC64G2H7-afsomHuH.mjs → JC64G2H7-BzklVBKM.mjs} +46 -47
  36. package/dist/{KUU7WJ55-CzsjuIMv.mjs → KUU7WJ55-CS4NemC6.mjs} +1 -1
  37. package/dist/LVA2YJMS-DDEmK0pp.mjs +1482 -0
  38. package/dist/Label.mjs +35 -37
  39. package/dist/Link.mjs +28 -32
  40. package/dist/Loader.mjs +16 -20
  41. package/dist/Logo.mjs +42 -55
  42. package/dist/{MTZPJQMC-TybFZCho.mjs → MTZPJQMC-CMjAwC0N.mjs} +2 -2
  43. package/dist/Modal.mjs +253 -276
  44. package/dist/{NLEBE274-oSxMftGy.mjs → NLEBE274-QOMV1l7e.mjs} +9 -9
  45. package/dist/{P2CTZE2T-DOT1mNnX.mjs → P2CTZE2T-Cl2w7OLV.mjs} +48 -49
  46. package/dist/{P4IRICAX-CWSZLTGz.mjs → P4IRICAX-DezbJY4s.mjs} +3 -3
  47. package/dist/Pagination.mjs +104 -104
  48. package/dist/PasswordInput.mjs +34 -35
  49. package/dist/Picker.mjs +33 -35
  50. package/dist/Popover.mjs +99 -106
  51. package/dist/{QYJ6MIDR-DJ-vUdAM.mjs → QYJ6MIDR-Bb0O5xUM.mjs} +30 -31
  52. package/dist/Radio.mjs +48 -54
  53. package/dist/RadioGroup.mjs +47 -47
  54. package/dist/RadioTab.mjs +35 -37
  55. package/dist/{SYRFVSLH-B6m278Vb.mjs → SYRFVSLH-jn06-eLy.mjs} +10 -11
  56. package/dist/Search.mjs +159 -175
  57. package/dist/Select.mjs +338 -373
  58. package/dist/Shape.mjs +9 -9
  59. package/dist/Slider.mjs +336 -359
  60. package/dist/Stack.mjs +24 -22
  61. package/dist/Swiper.mjs +224 -231
  62. package/dist/Table.mjs +23 -23
  63. package/dist/Tabs.mjs +200 -205
  64. package/dist/Tag.mjs +53 -55
  65. package/dist/Text.mjs +47 -49
  66. package/dist/Textarea.mjs +40 -40
  67. package/dist/TimePicker.mjs +57 -58
  68. package/dist/Toast.mjs +128 -135
  69. package/dist/Toggle.mjs +24 -27
  70. package/dist/Tooltip.mjs +99 -103
  71. package/dist/UniversalLink.mjs +15 -15
  72. package/dist/{VEVQD5MH-0w9Y7Ytc.mjs → VEVQD5MH-CuegL0m0.mjs} +3 -3
  73. package/dist/{VGCJ63VH-C0UPBY-5.mjs → VGCJ63VH-BMzoZtCu.mjs} +38 -39
  74. package/dist/VariantIcon.mjs +22 -14
  75. package/dist/WelcomeLoader.mjs +121 -122
  76. package/dist/WuiProvider.mjs +58 -69
  77. package/dist/{X5NMLKT6-BJw3xE-K.mjs → X5NMLKT6-CvSCix-_.mjs} +2 -2
  78. package/dist/{YV4JVR4I-DPC8mMuG.mjs → YV4JVR4I-Bh7B7TET.mjs} +57 -57
  79. package/dist/{field-styles-BVlRlvuu.mjs → field-styles-CfVLcVQp.mjs} +1 -1
  80. package/dist/{hex-to-rgba-DU_XzKIK.mjs → hex-to-rgba-BIDK-3ab.mjs} +2 -2
  81. package/dist/hide-focus-rings-root-BNyva1yb.mjs +14 -0
  82. package/dist/{index-5HBq1O6Z.mjs → index-5PUh49rV.mjs} +73 -74
  83. package/dist/index-B0gDDiFm.mjs +66 -0
  84. package/dist/index-B22SHR8h.mjs +26 -0
  85. package/dist/{index-DAZ1SYdj.mjs → index-BNGGwOCo.mjs} +7 -7
  86. package/dist/{index-SQQQ4dEE.mjs → index-BQtDgQBH.mjs} +8 -8
  87. package/dist/index-BhcLigYU.mjs +77 -0
  88. package/dist/{index-QaLwIvZS.mjs → index-Bkl89twW.mjs} +8 -8
  89. package/dist/{index-BaLGEKs7.mjs → index-C7zM96J_.mjs} +8 -8
  90. package/dist/index-CQD9fgf_.mjs +11 -0
  91. package/dist/index-CmsWSKKs.mjs +11 -0
  92. package/dist/{index-DvzWKxKE.mjs → index-DqBUFsqP.mjs} +7 -7
  93. package/dist/index-u1oHKa7X.mjs +16 -0
  94. package/dist/index-wr_b5GSV.mjs +36 -0
  95. package/dist/radio-group-RFyDp0KD.mjs +51 -0
  96. package/dist/theme.mjs +801 -801
  97. package/dist/throttle-BDBzFeFj.mjs +13 -0
  98. package/dist/types/components/Accordion/index.d.ts +1 -1
  99. package/dist/types/components/Accordion/styles.d.ts +2 -2
  100. package/dist/types/components/Accordion/theme.d.ts +1 -1
  101. package/dist/types/components/Alert/index.d.ts +2 -2
  102. package/dist/types/components/Alert/styles.d.ts +9 -9
  103. package/dist/types/components/Alert/theme.d.ts +3 -3
  104. package/dist/types/components/AspectRatio/styles.d.ts +2 -3
  105. package/dist/types/components/Avatar/index.d.ts +3 -2
  106. package/dist/types/components/Avatar/styles.d.ts +8 -8
  107. package/dist/types/components/Avatar/theme.d.ts +3 -3
  108. package/dist/types/components/Avatar/utils.d.ts +1 -1
  109. package/dist/types/components/Badge/index.d.ts +2 -2
  110. package/dist/types/components/Badge/styles.d.ts +5 -5
  111. package/dist/types/components/Badge/theme.d.ts +1 -1
  112. package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
  113. package/dist/types/components/Breadcrumb/index.d.ts +2 -2
  114. package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
  115. package/dist/types/components/Button/index.d.ts +5 -4
  116. package/dist/types/components/Button/styles.d.ts +1 -1
  117. package/dist/types/components/Button/theme.d.ts +7 -7
  118. package/dist/types/components/ButtonGroup/index.d.ts +4 -4
  119. package/dist/types/components/Card/Cover.styles.d.ts +4 -4
  120. package/dist/types/components/Card/index.d.ts +3 -2
  121. package/dist/types/components/Card/theme.d.ts +1 -1
  122. package/dist/types/components/Checkbox/index.d.ts +2 -2
  123. package/dist/types/components/Checkbox/styles.d.ts +1 -1
  124. package/dist/types/components/Checkbox/theme.d.ts +1 -1
  125. package/dist/types/components/ClearButton/index.d.ts +6 -5
  126. package/dist/types/components/ClearButton/styles.d.ts +4 -4
  127. package/dist/types/components/CloseButton/styles.d.ts +4 -4
  128. package/dist/types/components/DatePicker/index.d.ts +3 -3
  129. package/dist/types/components/DateTimePicker/index.d.ts +2 -2
  130. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
  131. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
  132. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  133. package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
  134. package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
  135. package/dist/types/components/DateTimePickerCommon/utils.d.ts +2 -2
  136. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
  137. package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
  138. package/dist/types/components/Drawer/index.d.ts +12 -12
  139. package/dist/types/components/Drawer/styles.d.ts +5 -5
  140. package/dist/types/components/Drawer/theme.d.ts +2 -2
  141. package/dist/types/components/DropdownMenu/index.d.ts +4 -4
  142. package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
  143. package/dist/types/components/Field/index.d.ts +8 -8
  144. package/dist/types/components/Field/styles.d.ts +1 -1
  145. package/dist/types/components/Field/utils.d.ts +1 -1
  146. package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
  147. package/dist/types/components/FileDrop/Message.d.ts +1 -1
  148. package/dist/types/components/FileDrop/index.d.ts +20 -20
  149. package/dist/types/components/FileDrop/theme.d.ts +1 -1
  150. package/dist/types/components/FileUpload/index.d.ts +13 -13
  151. package/dist/types/components/Files/index.d.ts +5 -5
  152. package/dist/types/components/Files/types.d.ts +1 -1
  153. package/dist/types/components/Hint/index.d.ts +2 -1
  154. package/dist/types/components/Hint/theme.d.ts +1 -1
  155. package/dist/types/components/Icon/index.d.ts +3 -3
  156. package/dist/types/components/Icon/styles.d.ts +3 -3
  157. package/dist/types/components/Icon/theme.d.ts +3 -3
  158. package/dist/types/components/Icons/Sun/content.json.d.ts +1 -2
  159. package/dist/types/components/Icons/index.d.ts +2 -2
  160. package/dist/types/components/IconsFont/index.d.ts +3 -2
  161. package/dist/types/components/IconsFont/styles.d.ts +1 -1
  162. package/dist/types/components/InputText/index.d.ts +1 -1
  163. package/dist/types/components/InputText/styles.d.ts +1 -1
  164. package/dist/types/components/Label/index.d.ts +3 -2
  165. package/dist/types/components/Label/theme.d.ts +1 -1
  166. package/dist/types/components/Link/index.d.ts +5 -5
  167. package/dist/types/components/Link/styles.d.ts +4 -4
  168. package/dist/types/components/Link/theme.d.ts +1 -1
  169. package/dist/types/components/Loader/index.d.ts +1 -1
  170. package/dist/types/components/Loader/styles.d.ts +4 -4
  171. package/dist/types/components/Loader/theme.d.ts +4 -4
  172. package/dist/types/components/Logo/Solutions.d.ts +2 -1
  173. package/dist/types/components/Logo/Symbol.d.ts +2 -1
  174. package/dist/types/components/Logo/Wui.d.ts +2 -1
  175. package/dist/types/components/Logo/index.d.ts +5 -5
  176. package/dist/types/components/Modal/Assets/Backdrop.d.ts +6 -5
  177. package/dist/types/components/Modal/Assets/Iframe.d.ts +2 -1
  178. package/dist/types/components/Modal/Assets/index.d.ts +9 -9
  179. package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
  180. package/dist/types/components/Modal/Close.d.ts +4 -3
  181. package/dist/types/components/Modal/Content.d.ts +5 -3
  182. package/dist/types/components/Modal/Footer.d.ts +1 -1
  183. package/dist/types/components/Modal/Header.d.ts +2 -2
  184. package/dist/types/components/Modal/index.d.ts +17 -17
  185. package/dist/types/components/Modal/styles.d.ts +7 -7
  186. package/dist/types/components/Modal/theme.d.ts +2 -2
  187. package/dist/types/components/Pagination/index.d.ts +2 -2
  188. package/dist/types/components/Pagination/theme.d.ts +1 -1
  189. package/dist/types/components/Pagination/utils.d.ts +1 -1
  190. package/dist/types/components/Picker/index.d.ts +1 -1
  191. package/dist/types/components/Picker/styles.d.ts +1 -1
  192. package/dist/types/components/Popover/Arrow.d.ts +2 -1
  193. package/dist/types/components/Popover/Content.d.ts +3 -2
  194. package/dist/types/components/Popover/Popover.d.ts +5 -4
  195. package/dist/types/components/Popover/PopoverHover.d.ts +4 -3
  196. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  197. package/dist/types/components/Popover/styles.d.ts +4 -4
  198. package/dist/types/components/Popover/theme.d.ts +1 -1
  199. package/dist/types/components/Popover/usePopover.d.ts +6 -6
  200. package/dist/types/components/Radio/index.d.ts +3 -3
  201. package/dist/types/components/Radio/styles.d.ts +5 -5
  202. package/dist/types/components/Radio/theme.d.ts +1 -1
  203. package/dist/types/components/RadioGroup/index.d.ts +2 -2
  204. package/dist/types/components/RadioTab/index.d.ts +3 -3
  205. package/dist/types/components/RadioTab/styles.d.ts +9 -3
  206. package/dist/types/components/RadioTab/theme.d.ts +1 -1
  207. package/dist/types/components/Search/index.d.ts +5 -5
  208. package/dist/types/components/Select/index.d.ts +11 -11
  209. package/dist/types/components/Select/styles.d.ts +6 -6
  210. package/dist/types/components/Select/utils.d.ts +7 -11
  211. package/dist/types/components/Shape/index.d.ts +1 -1
  212. package/dist/types/components/Shape/styles.d.ts +3 -3
  213. package/dist/types/components/Slider/Range.d.ts +3 -3
  214. package/dist/types/components/Slider/index.d.ts +2 -2
  215. package/dist/types/components/Slider/styles.d.ts +16 -16
  216. package/dist/types/components/Slider/theme.d.ts +1 -1
  217. package/dist/types/components/Stack/index.d.ts +1 -1
  218. package/dist/types/components/Swiper/index.d.ts +17 -16
  219. package/dist/types/components/Swiper/styles.d.ts +53 -53
  220. package/dist/types/components/Swiper/theme.d.ts +1 -1
  221. package/dist/types/components/System/index.d.ts +14 -14
  222. package/dist/types/components/Table/index.d.ts +7 -6
  223. package/dist/types/components/Table/styles.d.ts +1 -1
  224. package/dist/types/components/Table/theme.d.ts +1 -1
  225. package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
  226. package/dist/types/components/Tabs/TabList.d.ts +4 -4
  227. package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
  228. package/dist/types/components/Tabs/styles.d.ts +2 -2
  229. package/dist/types/components/Tabs/theme.d.ts +2 -2
  230. package/dist/types/components/Tag/index.d.ts +3 -2
  231. package/dist/types/components/Tag/styles.d.ts +1 -1
  232. package/dist/types/components/Tag/theme.d.ts +2 -2
  233. package/dist/types/components/Text/index.d.ts +2 -2
  234. package/dist/types/components/Textarea/index.d.ts +1 -1
  235. package/dist/types/components/Textarea/theme.d.ts +1 -1
  236. package/dist/types/components/TimePicker/index.d.ts +2 -2
  237. package/dist/types/components/Toast/Growl.d.ts +1 -1
  238. package/dist/types/components/Toast/Snackbar.d.ts +1 -1
  239. package/dist/types/components/Toast/ToastWrapper.d.ts +5 -5
  240. package/dist/types/components/Toast/index.d.ts +6 -6
  241. package/dist/types/components/Toast/styles.d.ts +16 -16
  242. package/dist/types/components/Toast/theme.d.ts +2 -2
  243. package/dist/types/components/Toast/utils.d.ts +13 -13
  244. package/dist/types/components/Toggle/index.d.ts +3 -3
  245. package/dist/types/components/Toggle/styles.d.ts +4 -5
  246. package/dist/types/components/Toggle/theme.d.ts +5 -5
  247. package/dist/types/components/Tooltip/index.d.ts +2 -2
  248. package/dist/types/components/Tooltip/styles.d.ts +1 -1
  249. package/dist/types/components/Tooltip/theme.d.ts +1 -1
  250. package/dist/types/components/VariantIcon/index.d.ts +1 -1
  251. package/dist/types/components/VariantIcon/styles.d.ts +1 -1
  252. package/dist/types/components/VariantIcon/theme.d.ts +2 -2
  253. package/dist/types/components/WuiProvider/font.d.ts +5 -3
  254. package/dist/types/components/WuiProvider/index.d.ts +1 -1
  255. package/dist/types/theme/colors.d.ts +11 -3
  256. package/dist/types/theme/dark.d.ts +1 -1
  257. package/dist/types/theme/defaultFields.d.ts +10 -10
  258. package/dist/types/theme/fonts.d.ts +5 -5
  259. package/dist/types/theme/index.d.ts +31 -31
  260. package/dist/types/theme/screens.d.ts +1 -1
  261. package/dist/types/theme/space.d.ts +1 -1
  262. package/dist/types/theme/typography.d.ts +1 -1
  263. package/dist/types/utils/field-styles.d.ts +6 -6
  264. package/dist/types/utils/index.d.ts +2 -2
  265. package/dist/types/utils/ts-utils.d.ts +1 -1
  266. package/dist/types/utils/use-copy-text.d.ts +1 -1
  267. package/dist/types/utils/use-create-portal.d.ts +1 -1
  268. package/dist/types/utils/use-viewport.d.ts +2 -2
  269. package/dist/types/utils/wrap-children.d.ts +1 -1
  270. package/dist/{use-fork-ref-DvaCTfQ_.mjs → use-fork-ref-CUZErtAC.mjs} +3 -4
  271. package/dist/{use-viewport-CWpjoHXy.mjs → use-viewport-CfklieD-.mjs} +2 -2
  272. package/dist/utils.mjs +29 -102
  273. package/dist/wrap-children-aq69jtFP.mjs +12 -0
  274. package/package.json +27 -3
  275. package/dist/LVA2YJMS-C-kJ1lkr.mjs +0 -873
  276. package/dist/hide-focus-rings-root-CCXdysih.mjs +0 -15
  277. package/dist/index-CYmF7qCH.mjs +0 -11
  278. package/dist/index-C_k-m0Rl.mjs +0 -36
  279. package/dist/index-D8v_VJ9z.mjs +0 -26
  280. package/dist/index-DpkNUfAS.mjs +0 -11
  281. package/dist/index-i_anpNhw.mjs +0 -66
  282. package/dist/index-wl3X6EM1.mjs +0 -16
  283. package/dist/jsx-runtime-B7I4PJ0H.mjs +0 -613
  284. package/dist/radio-group-C0fUHvam.mjs +0 -52
  285. package/dist/throttle-CW18pWlW.mjs +0 -13
  286. package/dist/wrap-children-DBSD-X5-.mjs +0 -9
  287. package/dist/{downshift.esm-B7Jil1wW.mjs → downshift.esm-D0ns_SQs.mjs} +9 -9
@@ -1,14 +1,13 @@
1
1
  "use client";
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";
2
+ import { a as kt, b as Nt, d as Vt, c as dt } from "./JC64G2H7-BzklVBKM.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-Bh7B7TET.mjs";
4
+ import { A as Yt, B as le, D as q, C as j, H as It, c as je, _ as Ce, i as He, a6 as ht, b as me, F as Le, E as _e, t as Se, d as G, g as _, f as ze, h as Ye, v as Xt, a7 as vt, u as ke, Q as et, a8 as se, a5 as qt, e as gt, Y as Ut, Z as Ne, a9 as Gt, l as Zt, m as Jt } from "./LVA2YJMS-DDEmK0pp.mjs";
5
+ import { u as wt, P as xt, a as Qt } from "./MTZPJQMC-CMjAwC0N.mjs";
6
+ import { useRef as ce, useState as Ie, useEffect as U, useContext as Kt, createContext as en, useCallback as yt } from "react";
8
7
  function bt(e = {}) {
9
8
  var n = e, {
10
9
  popover: o
11
- } = n, t = Xt(n, [
10
+ } = n, t = Yt(n, [
12
11
  "popover"
13
12
  ]);
14
13
  const i = Wt(
@@ -42,16 +41,16 @@ function bt(e = {}) {
42
41
  });
43
42
  }
44
43
  function Pt(e, n, o) {
45
- return Yt(n, [o.popover]), Ee(e, o, "placement"), Nt(e, n, o);
44
+ return It(n, [o.popover]), Ee(e, o, "placement"), Nt(e, n, o);
46
45
  }
47
- function zn(e = {}) {
46
+ function jn(e = {}) {
48
47
  const [n, o] = mt(bt, e);
49
48
  return Pt(n, o, e);
50
49
  }
51
50
  function de(e) {
52
51
  return e.split("-")[1];
53
52
  }
54
- function Ie(e) {
53
+ function Xe(e) {
55
54
  return e === "y" ? "height" : "width";
56
55
  }
57
56
  function z(e) {
@@ -62,7 +61,7 @@ function ne(e) {
62
61
  }
63
62
  function tt(e, n, o) {
64
63
  let { reference: t, floating: i } = e;
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";
64
+ const r = t.x + t.width / 2 - i.width / 2, l = t.y + t.height / 2 - i.height / 2, a = ne(n), c = Xe(a), s = t[c] / 2 - i[c] / 2, f = a === "x";
66
65
  let u;
67
66
  switch (z(n)) {
68
67
  case "top":
@@ -98,7 +97,7 @@ const tn = async (e, n, o) => {
98
97
  }
99
98
  return { x: f, y: u, placement: m, strategy: i, middlewareData: p };
100
99
  };
101
- function J(e, n) {
100
+ function Z(e, n) {
102
101
  return typeof e == "function" ? e(n) : e;
103
102
  }
104
103
  function Et(e) {
@@ -112,20 +111,20 @@ function Re(e) {
112
111
  async function qe(e, n) {
113
112
  var o;
114
113
  n === void 0 && (n = {});
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);
114
+ 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 } = Z(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
115
  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 };
117
116
  }
118
- const he = Math.min, Q = Math.max;
117
+ const he = Math.min, K = Math.max;
119
118
  function Ve(e, n, o) {
120
- return Q(e, he(n, o));
119
+ return K(e, he(n, o));
121
120
  }
122
121
  const nn = (e) => ({ name: "arrow", options: e, async fn(n) {
123
- const { x: o, y: t, placement: i, rects: r, platform: l, elements: a } = n, { element: c, padding: s = 0 } = J(e, n) || {};
122
+ const { x: o, y: t, placement: i, rects: r, platform: l, elements: a } = n, { element: c, padding: s = 0 } = Z(e, n) || {};
124
123
  if (c == null) return {};
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));
124
+ const f = Et(s), u = { x: o, y: t }, m = ne(i), p = Xe(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
125
  let E = x ? x[w] : 0;
127
126
  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;
127
+ const C = b / 2 - P / 2, H = E / 2 - d[p] / 2 - 1, F = he(f[v], H), R = he(f[g], H), A = F, $ = 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 ? F : R) - d[p] / 2 < 0 ? y < A ? A - y : $ - y : 0;
129
128
  return { [m]: u[m] - S, data: { [m]: O, centerOffset: y - O + S } };
130
129
  } }), on = ["top", "right", "bottom", "left"];
131
130
  on.reduce((e, n) => e.concat(n, n + "-start", n + "-end"), []);
@@ -135,37 +134,37 @@ function Ae(e) {
135
134
  }
136
135
  function sn(e, n, o) {
137
136
  o === void 0 && (o = !1);
138
- const t = de(e), i = ne(e), r = Ie(i);
137
+ const t = de(e), i = ne(e), r = Xe(i);
139
138
  let l = i === "x" ? t === (o ? "end" : "start") ? "right" : "left" : t === "start" ? "bottom" : "top";
140
139
  return n.reference[r] > n.floating[r] && (l = Ae(l)), { main: l, cross: Ae(l) };
141
140
  }
142
141
  const ln = { start: "end", end: "start" };
143
- function De(e) {
142
+ function Fe(e) {
144
143
  return e.replace(/start|end/g, (n) => ln[n]);
145
144
  }
146
145
  const cn = function(e) {
147
146
  return e === void 0 && (e = {}), { name: "flip", options: e, async fn(n) {
148
147
  var o;
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) {
148
+ 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 } = Z(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
149
  const $ = Ae(A);
151
- return [De(A), $, De($)];
150
+ return [Fe(A), $, Fe($)];
152
151
  }(l));
153
152
  u || p === "none" || b.push(...function(A, $, y, O) {
154
153
  const S = de(A);
155
- let T = function(M, L, I) {
156
- const V = ["left", "right"], W = ["right", "left"], K = ["top", "bottom"], oe = ["bottom", "top"];
154
+ let T = function(M, L, X) {
155
+ const V = ["left", "right"], W = ["right", "left"], Q = ["top", "bottom"], oe = ["bottom", "top"];
157
156
  switch (M) {
158
157
  case "top":
159
158
  case "bottom":
160
- return I ? L ? W : V : L ? V : W;
159
+ return X ? L ? W : V : L ? V : W;
161
160
  case "left":
162
161
  case "right":
163
- return L ? K : oe;
162
+ return L ? Q : oe;
164
163
  default:
165
164
  return [];
166
165
  }
167
166
  }(z(A), y === "start", O);
168
- return S && (T = T.map((M) => M + "-" + S), $ && (T = T.concat(T.map(De)))), T;
167
+ return S && (T = T.map((M) => M + "-" + S), $ && (T = T.concat(T.map(Fe)))), T;
169
168
  }(l, d, p, w));
170
169
  const P = [l, ...b], x = await qe(n, h), E = [];
171
170
  let C = ((o = i.flip) == null ? void 0 : o.overflows) || [];
@@ -174,10 +173,10 @@ const cn = function(e) {
174
173
  E.push(x[A], x[$]);
175
174
  }
176
175
  if (C = [...C, { placement: t, overflows: E }], !E.every((A) => A <= 0)) {
177
- var H, D;
176
+ var H, F;
178
177
  const A = (((H = i.flip) == null ? void 0 : H.index) || 0) + 1, $ = P[A];
179
178
  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;
179
+ let y = (F = C.filter((O) => O.overflows[0] <= 0).sort((O, S) => O.overflows[1] - S.overflows[1])[0]) == null ? void 0 : F.placement;
181
180
  if (!y) switch (m) {
182
181
  case "bestFit": {
183
182
  var R;
@@ -195,7 +194,7 @@ const cn = function(e) {
195
194
  }, an = function(e) {
196
195
  return e === void 0 && (e = 0), { name: "offset", options: e, async fn(n) {
197
196
  const { x: o, y: t } = n, i = await async function(r, l) {
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);
197
+ 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 = Z(l, r);
199
198
  let { mainAxis: g, crossAxis: w, alignmentAxis: b } = typeof v == "number" ? { mainAxis: v, crossAxis: 0, alignmentAxis: null } : { mainAxis: 0, crossAxis: 0, alignmentAxis: null, ...v };
200
199
  return m && typeof b == "number" && (w = m === "end" ? -1 * b : b), p ? { x: w * h, y: g * d } : { x: g * d, y: w * h };
201
200
  }(n, e);
@@ -210,7 +209,7 @@ const un = function(e) {
210
209
  const { x: o, y: t, placement: i } = n, { mainAxis: r = !0, crossAxis: l = !1, limiter: a = { fn: (v) => {
211
210
  let { x: g, y: w } = v;
212
211
  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);
212
+ } }, ...c } = Z(e, n), s = { x: o, y: t }, f = await qe(n, c), u = ne(z(i)), m = St(u);
214
213
  let p = s[u], d = s[m];
215
214
  if (r) {
216
215
  const v = u === "y" ? "bottom" : "right";
@@ -225,9 +224,9 @@ const un = function(e) {
225
224
  } };
226
225
  }, fn = function(e) {
227
226
  return e === void 0 && (e = {}), { options: e, fn(n) {
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);
227
+ const { x: o, y: t, placement: i, rects: r, middlewareData: l } = n, { offset: a = 0, mainAxis: c = !0, crossAxis: s = !0 } = Z(e, n), f = { x: o, y: t }, u = ne(i), m = St(u);
229
228
  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 };
229
+ const h = Z(a, n), v = typeof h == "number" ? { mainAxis: h, crossAxis: 0 } : { mainAxis: 0, crossAxis: 0, ...h };
231
230
  if (c) {
232
231
  const b = u === "y" ? "height" : "width", P = r.reference[u] - r.floating[b] + v.mainAxis, x = r.reference[u] + r.reference[b] - v.mainAxis;
233
232
  p < P ? p = P : p > x && (p = x);
@@ -242,7 +241,7 @@ const un = function(e) {
242
241
  }, dn = function(e) {
243
242
  return e === void 0 && (e = {}), { name: "size", options: e, async fn(n) {
244
243
  const { placement: o, rects: t, platform: i, elements: r } = n, { apply: l = () => {
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;
244
+ }, ...a } = Z(e, n), c = await qe(n, a), s = z(o), f = de(o), u = ne(o) === "x", { width: m, height: p } = t.floating;
246
245
  let d, h;
247
246
  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");
248
247
  const v = p - c[d], g = m - c[h], w = !n.middlewareData.shift;
@@ -255,42 +254,42 @@ const un = function(e) {
255
254
  b = f || w ? he(v, E) : E;
256
255
  }
257
256
  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));
257
+ const E = K(c.left, 0), C = K(c.right, 0), H = K(c.top, 0), F = K(c.bottom, 0);
258
+ u ? P = m - 2 * (E !== 0 || C !== 0 ? E + C : K(c.left, c.right)) : b = p - 2 * (H !== 0 || F !== 0 ? H + F : K(c.top, c.bottom));
260
259
  }
261
260
  await l({ ...n, availableWidth: P, availableHeight: b });
262
261
  const x = await i.getDimensions(r.floating);
263
262
  return m !== x.width || p !== x.height ? { reset: { rects: !0 } } : {};
264
263
  } };
265
264
  };
266
- function F(e) {
265
+ function D(e) {
267
266
  var n;
268
267
  return ((n = e.ownerDocument) == null ? void 0 : n.defaultView) || window;
269
268
  }
270
269
  function k(e) {
271
- return F(e).getComputedStyle(e);
270
+ return D(e).getComputedStyle(e);
272
271
  }
273
272
  function Rt(e) {
274
- return e instanceof F(e).Node;
273
+ return e instanceof D(e).Node;
275
274
  }
276
- function Z(e) {
275
+ function J(e) {
277
276
  return Rt(e) ? (e.nodeName || "").toLowerCase() : "#document";
278
277
  }
279
278
  function N(e) {
280
- return e instanceof F(e).HTMLElement;
279
+ return e instanceof D(e).HTMLElement;
281
280
  }
282
- function X(e) {
283
- return e instanceof F(e).Element;
281
+ function Y(e) {
282
+ return e instanceof D(e).Element;
284
283
  }
285
284
  function nt(e) {
286
- return typeof ShadowRoot < "u" && (e instanceof F(e).ShadowRoot || e instanceof ShadowRoot);
285
+ return typeof ShadowRoot < "u" && (e instanceof D(e).ShadowRoot || e instanceof ShadowRoot);
287
286
  }
288
287
  function ve(e) {
289
288
  const { overflow: n, overflowX: o, overflowY: t, display: i } = k(e);
290
289
  return /auto|scroll|overlay|hidden|clip/.test(n + t + o) && !["inline", "contents"].includes(i);
291
290
  }
292
291
  function pn(e) {
293
- return ["table", "td", "th"].includes(Z(e));
292
+ return ["table", "td", "th"].includes(J(e));
294
293
  }
295
294
  function We(e) {
296
295
  const n = Ue(), o = k(e);
@@ -300,7 +299,7 @@ function Ue() {
300
299
  return !(typeof CSS > "u" || !CSS.supports) && CSS.supports("-webkit-backdrop-filter", "none");
301
300
  }
302
301
  function $e(e) {
303
- return ["html", "body", "#document"].includes(Z(e));
302
+ return ["html", "body", "#document"].includes(J(e));
304
303
  }
305
304
  const Be = Math.min, ae = Math.max, Oe = Math.round, Pe = Math.floor, ee = (e) => ({ x: e, y: e });
306
305
  function At(e) {
@@ -310,7 +309,7 @@ function At(e) {
310
309
  return a && (o = r, t = l), { width: o, height: t, $: a };
311
310
  }
312
311
  function Ge(e) {
313
- return X(e) ? e : e.contextElement;
312
+ return Y(e) ? e : e.contextElement;
314
313
  }
315
314
  function ue(e) {
316
315
  const n = Ge(e);
@@ -323,38 +322,38 @@ const ot = ee(0);
323
322
  function Ot(e, n, o) {
324
323
  var t, i;
325
324
  if (n === void 0 && (n = !0), !Ue()) return ot;
326
- const r = e ? F(e) : window;
325
+ const r = e ? D(e) : window;
327
326
  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 };
328
327
  }
329
328
  function te(e, n, o, t) {
330
329
  n === void 0 && (n = !1), o === void 0 && (o = !1);
331
330
  const i = e.getBoundingClientRect(), r = Ge(e);
332
331
  let l = ee(1);
333
- n && (t ? X(t) && (l = ue(t)) : l = ue(e));
332
+ n && (t ? Y(t) && (l = ue(t)) : l = ue(e));
334
333
  const a = Ot(r, o, t);
335
334
  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;
336
335
  if (r) {
337
- const m = F(r), p = t && X(t) ? F(t) : t;
336
+ const m = D(r), p = t && Y(t) ? D(t) : t;
338
337
  let d = m.frameElement;
339
338
  for (; d && t && p !== m; ) {
340
339
  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;
340
+ c *= h.x, s *= h.y, f *= h.x, u *= h.y, c += w, s += b, d = D(d).frameElement;
342
341
  }
343
342
  }
344
343
  return Re({ width: f, height: u, x: c, y: s });
345
344
  }
346
- function Y(e) {
345
+ function I(e) {
347
346
  return ((Rt(e) ? e.ownerDocument : e.document) || window.document).documentElement;
348
347
  }
349
348
  function Me(e) {
350
- return X(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
349
+ return Y(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
351
350
  }
352
351
  function Tt(e) {
353
- return te(Y(e)).left + Me(e).scrollLeft;
352
+ return te(I(e)).left + Me(e).scrollLeft;
354
353
  }
355
354
  function fe(e) {
356
- if (Z(e) === "html") return e;
357
- const n = e.assignedSlot || e.parentNode || nt(e) && e.host || Y(e);
355
+ if (J(e) === "html") return e;
356
+ const n = e.assignedSlot || e.parentNode || nt(e) && e.host || I(e);
358
357
  return nt(n) ? n.host : n;
359
358
  }
360
359
  function Ct(e) {
@@ -364,13 +363,13 @@ function Ct(e) {
364
363
  function Te(e, n) {
365
364
  var o;
366
365
  n === void 0 && (n = []);
367
- const t = Ct(e), i = t === ((o = e.ownerDocument) == null ? void 0 : o.body), r = F(t);
366
+ const t = Ct(e), i = t === ((o = e.ownerDocument) == null ? void 0 : o.body), r = D(t);
368
367
  return i ? n.concat(r, r.visualViewport || [], ve(t) ? t : []) : n.concat(t, Te(t));
369
368
  }
370
369
  function rt(e, n, o) {
371
370
  let t;
372
371
  if (n === "viewport") t = function(i, r) {
373
- const l = F(i), a = Y(i), c = l.visualViewport;
372
+ const l = D(i), a = I(i), c = l.visualViewport;
374
373
  let s = a.clientWidth, f = a.clientHeight, u = 0, m = 0;
375
374
  if (c) {
376
375
  s = c.width, f = c.height;
@@ -380,12 +379,12 @@ function rt(e, n, o) {
380
379
  return { width: s, height: f, x: u, y: m };
381
380
  }(e, o);
382
381
  else if (n === "document") t = function(i) {
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);
382
+ const r = I(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);
384
383
  let f = -l.scrollLeft + Tt(i);
385
384
  const u = -l.scrollTop;
386
385
  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) {
386
+ }(I(e));
387
+ else if (Y(n)) t = function(i, r) {
389
388
  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
389
  return { width: i.clientWidth * s.x, height: i.clientHeight * s.y, x: c * s.x, y: a * s.y };
391
390
  }(n, o);
@@ -397,17 +396,17 @@ function rt(e, n, o) {
397
396
  }
398
397
  function Ht(e, n) {
399
398
  const o = fe(e);
400
- return !(o === n || !X(o) || $e(o)) && (k(o).position === "fixed" || Ht(o, n));
399
+ return !(o === n || !Y(o) || $e(o)) && (k(o).position === "fixed" || Ht(o, n));
401
400
  }
402
401
  function it(e, n) {
403
402
  return N(e) && k(e).position !== "fixed" ? n ? n(e) : e.offsetParent : null;
404
403
  }
405
404
  function st(e, n) {
406
- const o = F(e);
405
+ const o = D(e);
407
406
  if (!N(e)) return o;
408
407
  let t = it(e, n);
409
408
  for (; t && pn(t) && k(t).position === "static"; ) t = it(t, n);
410
- return t && (Z(t) === "html" || Z(t) === "body" && k(t).position === "static" && !We(t)) ? o : t || function(i) {
409
+ return t && (J(t) === "html" || J(t) === "body" && k(t).position === "static" && !We(t)) ? o : t || function(i) {
411
410
  let r = fe(i);
412
411
  for (; N(r) && !$e(r); ) {
413
412
  if (We(r)) return r;
@@ -417,10 +416,10 @@ function st(e, n) {
417
416
  }(e) || o;
418
417
  }
419
418
  function mn(e, n, o) {
420
- const t = N(n), i = Y(n), r = o === "fixed", l = te(e, !0, r, n);
419
+ const t = N(n), i = I(n), r = o === "fixed", l = te(e, !0, r, n);
421
420
  let a = { scrollLeft: 0, scrollTop: 0 };
422
421
  const c = ee(0);
423
- if (t || !t && !r) if ((Z(n) !== "body" || ve(i)) && (a = Me(n)), N(n)) {
422
+ if (t || !t && !r) if ((J(n) !== "body" || ve(i)) && (a = Me(n)), N(n)) {
424
423
  const s = te(n, !0, r, n);
425
424
  c.x = s.x + n.clientLeft, c.y = s.y + n.clientTop;
426
425
  } else i && (c.x = Tt(i));
@@ -431,10 +430,10 @@ const hn = { getClippingRect: function(e) {
431
430
  const r = o === "clippingAncestors" ? function(s, f) {
432
431
  const u = f.get(s);
433
432
  if (u) return u;
434
- let m = Te(s).filter((v) => X(v) && Z(v) !== "body"), p = null;
433
+ let m = Te(s).filter((v) => Y(v) && J(v) !== "body"), p = null;
435
434
  const d = k(s).position === "fixed";
436
435
  let h = d ? fe(s) : s;
437
- for (; X(h) && !$e(h); ) {
436
+ for (; Y(h) && !$e(h); ) {
438
437
  const v = k(h), g = We(h);
439
438
  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);
440
439
  }
@@ -446,18 +445,18 @@ const hn = { getClippingRect: function(e) {
446
445
  return { width: c.right - c.left, height: c.bottom - c.top, x: c.left, y: c.top };
447
446
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
448
447
  let { rect: n, offsetParent: o, strategy: t } = e;
449
- const i = N(o), r = Y(o);
448
+ const i = N(o), r = I(o);
450
449
  if (o === r) return n;
451
450
  let l = { scrollLeft: 0, scrollTop: 0 }, a = ee(1);
452
451
  const c = ee(0);
453
- if ((i || !i && t !== "fixed") && ((Z(o) !== "body" || ve(r)) && (l = Me(o)), N(o))) {
452
+ if ((i || !i && t !== "fixed") && ((J(o) !== "body" || ve(r)) && (l = Me(o)), N(o))) {
454
453
  const s = te(o);
455
454
  a = ue(o), c.x = s.x + o.clientLeft, c.y = s.y + o.clientTop;
456
455
  }
457
456
  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) {
457
+ }, isElement: Y, getDimensions: function(e) {
459
458
  return At(e);
460
- }, getOffsetParent: st, getDocumentElement: Y, getScale: ue, async getElementRects(e) {
459
+ }, getOffsetParent: st, getDocumentElement: I, getScale: ue, async getElementRects(e) {
461
460
  let { reference: n, floating: o, strategy: t } = e;
462
461
  const i = this.getOffsetParent || st, r = this.getDimensions;
463
462
  return { reference: mn(n, await i(o), t), floating: { x: 0, y: 0, ...await r(o) } };
@@ -470,15 +469,15 @@ function vn(e, n, o, t) {
470
469
  });
471
470
  const u = s && a ? function(h, v) {
472
471
  let g, w = null;
473
- const b = Y(h);
472
+ const b = I(h);
474
473
  function P() {
475
474
  clearTimeout(g), w && w.disconnect(), w = null;
476
475
  }
477
476
  return function x(E, C) {
478
477
  E === void 0 && (E = !1), C === void 0 && (C = 1), P();
479
- const { left: H, top: D, width: R, height: A } = h.getBoundingClientRect();
478
+ const { left: H, top: F, width: R, height: A } = h.getBoundingClientRect();
480
479
  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);
480
+ const $ = Pe(F), y = Pe(b.clientWidth - (H + R)), O = Pe(b.clientHeight - (F + A)), S = Pe(H);
482
481
  let T = !0;
483
482
  w = new IntersectionObserver((M) => {
484
483
  const L = M[0].intersectionRatio;
@@ -647,7 +646,7 @@ var $t = je(
647
646
  t,
648
647
  process.env.NODE_ENV !== "production" && "Popover must receive a `store` prop or be wrapped in a PopoverProvider component."
649
648
  );
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;
649
+ const C = t.useState("arrowElement"), H = t.useState("anchorElement"), F = 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] = Ie(!1), { portalRef: L, domReady: X } = ht(r, x.portalRef), V = me(b), W = me(P), Q = !!P;
651
650
  Le(() => {
652
651
  if (!(R != null && R.isConnected)) return;
653
652
  R.style.setProperty(
@@ -657,7 +656,7 @@ var $t = je(
657
656
  const B = yn(H, V), pe = async () => {
658
657
  if (!y) return;
659
658
  C || (S.current = S.current || document.createElement("div"));
660
- const re = C || S.current, Ft = [
659
+ const re = C || S.current, Dt = [
661
660
  Pn(re, { gutter: v, shift: u }),
662
661
  En({ flip: f, overflowPadding: w }),
663
662
  Sn({ slide: m, overlap: p, overflowPadding: w }),
@@ -670,7 +669,7 @@ var $t = je(
670
669
  ], ie = await gn(B, R, {
671
670
  placement: $,
672
671
  strategy: s ? "fixed" : "absolute",
673
- middleware: Ft
672
+ middleware: Dt
674
673
  });
675
674
  t == null || t.setState("currentPlacement", ie.placement), M(!0);
676
675
  const Lt = ct(ie.x), _t = ct(ie.y);
@@ -679,29 +678,29 @@ var $t = je(
679
678
  left: "0",
680
679
  transform: `translate3d(${Lt}px,${_t}px,0)`
681
680
  }), re && ie.middlewareData.arrow) {
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;
681
+ const { x: we, y: xe } = ie.middlewareData.arrow, Je = ie.placement.split("-")[0], ye = re.clientWidth / 2, be = re.clientHeight / 2, Qe = we != null ? we + ye : -ye, Ke = xe != null ? xe + be : -be;
683
682
  R.style.setProperty(
684
683
  "--popover-transform-origin",
685
684
  {
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]
685
+ top: `${Qe}px calc(100% + ${be}px)`,
686
+ bottom: `${Qe}px ${-be}px`,
687
+ left: `calc(100% + ${ye}px) ${Ke}px`,
688
+ right: `${-ye}px ${Ke}px`
689
+ }[Je]
691
690
  ), Object.assign(re.style, {
692
691
  left: we != null ? `${we}px` : "",
693
692
  top: xe != null ? `${xe}px` : "",
694
- [Ze]: "100%"
693
+ [Je]: "100%"
695
694
  });
696
695
  }
697
- }, Dt = vn(B, R, async () => {
698
- K ? (await W({ updatePosition: pe }), M(!0)) : await pe();
696
+ }, Ft = vn(B, R, async () => {
697
+ Q ? (await W({ updatePosition: pe }), M(!0)) : await pe();
699
698
  }, {
700
699
  // JSDOM doesn't support ResizeObserver
701
700
  elementResize: typeof ResizeObserver == "function"
702
701
  });
703
702
  return () => {
704
- M(!1), Dt();
703
+ M(!1), Ft();
705
704
  };
706
705
  }, [
707
706
  t,
@@ -712,7 +711,7 @@ var $t = je(
712
711
  R,
713
712
  $,
714
713
  y,
715
- I,
714
+ X,
716
715
  s,
717
716
  f,
718
717
  u,
@@ -724,10 +723,10 @@ var $t = je(
724
723
  g,
725
724
  w,
726
725
  V,
727
- K,
726
+ Q,
728
727
  W
729
728
  ]), Le(() => {
730
- if (!y || !I || !(R != null && R.isConnected) || !(A != null && A.isConnected)) return;
729
+ if (!y || !X || !(R != null && R.isConnected) || !(A != null && A.isConnected)) return;
731
730
  const B = () => {
732
731
  R.style.zIndex = getComputedStyle(A).zIndex;
733
732
  };
@@ -736,7 +735,7 @@ var $t = je(
736
735
  pe = requestAnimationFrame(B);
737
736
  });
738
737
  return () => cancelAnimationFrame(pe);
739
- }, [y, I, R, A]);
738
+ }, [y, X, R, A]);
740
739
  const oe = s ? "fixed" : "absolute";
741
740
  return x = _e(
742
741
  x,
@@ -774,25 +773,25 @@ var $t = je(
774
773
  modal: i,
775
774
  portal: r,
776
775
  preserveTabOrder: l,
777
- preserveTabOrderAnchor: D || H,
776
+ preserveTabOrderAnchor: F || H,
778
777
  autoFocusOnShow: T && a
779
778
  }, x), {
780
779
  portalRef: L
781
780
  })), x;
782
781
  }
783
- ), Xn = dt(
782
+ ), zn = dt(
784
783
  ze(function(n) {
785
784
  const o = $t(n);
786
- return Xe(wn, o);
785
+ return Ye(wn, o);
787
786
  }),
788
787
  wt
789
- ), ge = It(
790
- [Kt],
788
+ ), ge = Xt(
789
+ [Qt],
791
790
  [xt]
792
791
  );
793
792
  ge.useContext;
794
793
  ge.useScopedContext;
795
- var Je = ge.useProviderContext, Yn = ge.ContextProvider, On = ge.ScopedContextProvider;
794
+ var Ze = ge.useProviderContext, Yn = ge.ContextProvider, On = ge.ScopedContextProvider;
796
795
  function Tn(e = {}) {
797
796
  var n;
798
797
  const o = (n = e.store) == null ? void 0 : n.getState(), t = bt(le(q({}, e), {
@@ -818,7 +817,7 @@ function In(e = {}) {
818
817
  const [n, o] = mt(Tn, e);
819
818
  return Cn(n, o, e);
820
819
  }
821
- function Fe(e) {
820
+ function De(e) {
822
821
  return [e.clientX, e.clientY];
823
822
  }
824
823
  function at(e, n) {
@@ -860,7 +859,7 @@ function Mn(e) {
860
859
  } = n, t = Ce(n, [
861
860
  "store"
862
861
  ]);
863
- const [i, r] = Ye(!1), l = o.useState("mounted");
862
+ const [i, r] = Ie(!1), l = o.useState("mounted");
864
863
  U(() => {
865
864
  l || r(!1);
866
865
  }, [l]);
@@ -876,7 +875,7 @@ function Mn(e) {
876
875
  onFocus: c
877
876
  }), t;
878
877
  }
879
- var ft = en(null), Dn = je(
878
+ var ft = en(null), Fn = je(
880
879
  function(n) {
881
880
  var o = n, {
882
881
  store: t,
@@ -893,12 +892,12 @@ var ft = en(null), Dn = je(
893
892
  "hideOnHoverOutside",
894
893
  "disablePointerEventsOnApproach"
895
894
  ]);
896
- const f = Je();
895
+ const f = Ze();
897
896
  t = t || f, He(
898
897
  t,
899
898
  process.env.NODE_ENV !== "production" && "Hovercard must receive a `store` prop or be wrapped in a HovercardProvider component."
900
899
  );
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(
900
+ const u = ce(null), [m, p] = Ie([]), 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(
902
901
  c
903
902
  ), C = t.useState("open"), H = t.useState("mounted");
904
903
  U(() => {
@@ -907,16 +906,16 @@ var ft = en(null), Dn = je(
907
906
  return y ? et(
908
907
  se("mousemove", (S) => {
909
908
  if (!t || !w()) return;
910
- const { anchorElement: T, hideTimeout: M, timeout: L } = t.getState(), I = h.current, [V] = S.composedPath(), W = T;
909
+ const { anchorElement: T, hideTimeout: M, timeout: L } = t.getState(), X = h.current, [V] = S.composedPath(), W = T;
911
910
  if (Mt(V, y, W, m)) {
912
- h.current = V && W && Ne(W, V) ? Fe(S) : null, window.clearTimeout(d.current), d.current = 0;
911
+ h.current = V && W && Ne(W, V) ? De(S) : null, window.clearTimeout(d.current), d.current = 0;
913
912
  return;
914
913
  }
915
914
  if (!d.current) {
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;
915
+ if (X) {
916
+ const Q = De(S), oe = ut(y, X);
917
+ if (at(Q, oe)) {
918
+ if (h.current = Q, !E(S)) return;
920
919
  S.preventDefault(), S.stopPropagation();
921
920
  return;
922
921
  }
@@ -946,7 +945,7 @@ var ft = en(null), Dn = je(
946
945
  const T = h.current;
947
946
  if (!T) return;
948
947
  const M = ut(S, T);
949
- if (at(Fe(O), M)) {
948
+ if (at(De(O), M)) {
950
949
  if (!E(O)) return;
951
950
  O.preventDefault(), O.stopPropagation();
952
951
  }
@@ -961,14 +960,14 @@ var ft = en(null), Dn = je(
961
960
  }, [g, H, x, E]), U(() => {
962
961
  g && (C || t == null || t.setAutoFocusOnShow(!1));
963
962
  }, [t, g, C]);
964
- const D = qt(C);
963
+ const F = qt(C);
965
964
  U(() => {
966
965
  if (g)
967
966
  return () => {
968
- D.current || t == null || t.setAutoFocusOnShow(!1);
967
+ F.current || t == null || t.setAutoFocusOnShow(!1);
969
968
  };
970
969
  }, [t, g]);
971
- const R = Qt(ft);
970
+ const R = Kt(ft);
972
971
  Le(() => {
973
972
  if (i || !r || !H || !g) return;
974
973
  const y = u.current;
@@ -1013,21 +1012,21 @@ var ft = en(null), Dn = je(
1013
1012
  }
1014
1013
  })), s;
1015
1014
  }
1016
- ), qn = dt(
1015
+ ), Xn = dt(
1017
1016
  ze(function(n) {
1018
- const o = Dn(n);
1019
- return Xe($n, o);
1017
+ const o = Fn(n);
1018
+ return Ye($n, o);
1020
1019
  }),
1021
- Je
1022
- ), Fn = "a", Ln = je(
1020
+ Ze
1021
+ ), Dn = "a", Ln = je(
1023
1022
  function(n) {
1024
1023
  var o = n, { store: t, showOnHover: i = !0 } = o, r = Ce(o, ["store", "showOnHover"]);
1025
- const l = Je();
1024
+ const l = Ze();
1026
1025
  t = t || l, He(
1027
1026
  t,
1028
1027
  process.env.NODE_ENV !== "production" && "HovercardAnchor must receive a `store` prop or be wrapped in a HovercardProvider component."
1029
1028
  );
1030
- const a = Jt(r), c = ce(0);
1029
+ const a = Zt(r), c = ce(0);
1031
1030
  U(() => () => window.clearTimeout(c.current), []), U(() => se("mouseleave", (g) => {
1032
1031
  if (!t) return;
1033
1032
  const { anchorElement: w } = t.getState();
@@ -1057,22 +1056,22 @@ var ft = en(null), Dn = je(
1057
1056
  ref: gt(h, r.ref),
1058
1057
  onMouseMove: m,
1059
1058
  onClick: d
1060
- }), r = Zt(r), r;
1059
+ }), r = Jt(r), r;
1061
1060
  }
1062
- ), Un = ze(function(n) {
1061
+ ), qn = ze(function(n) {
1063
1062
  const o = Ln(n);
1064
- return Xe(Fn, o);
1063
+ return Ye(Dn, o);
1065
1064
  });
1066
1065
  export {
1067
- Un as H,
1068
- Xn as P,
1069
- qn as a,
1066
+ qn as H,
1067
+ zn as P,
1068
+ Xn as a,
1070
1069
  In as b,
1071
1070
  Tn as c,
1072
1071
  Cn as d,
1073
1072
  On as e,
1074
1073
  Yn as f,
1075
- Dn as g,
1074
+ Fn as g,
1076
1075
  Ln as h,
1077
- zn as u
1076
+ jn as u
1078
1077
  };