@pfct/purple 1.5.0-rc.1 → 1.5.0-rc.11

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 (323) hide show
  1. package/dist/Icon/utils/svgr-cli.template.d.ts +7 -0
  2. package/dist/assets/index.css +1 -1
  3. package/dist/chunks/clsx.C11secjj.js +1 -0
  4. package/dist/chunks/clsx.OuTLNxxd.js +16 -0
  5. package/dist/chunks/index.52hLHqtl.js +671 -0
  6. package/dist/chunks/index.B1zCXH4b.js +1 -0
  7. package/dist/chunks/index.BFOvovu2.js +1 -0
  8. package/dist/chunks/index.BZPx6jYI.js +8 -0
  9. package/dist/chunks/index.C-8GI_iQ.js +5 -0
  10. package/dist/chunks/index.C4zsfJoH.js +1 -0
  11. package/dist/chunks/index.CHQFbaeH.js +41 -0
  12. package/dist/chunks/{index.LN3KW-I4.js → index.Cc-miKAT.js} +1 -1
  13. package/dist/chunks/index.Cdy_UEl-.js +1 -0
  14. package/dist/chunks/index.D-9nbSdR.js +205 -0
  15. package/dist/chunks/{index.styled.D_VcbV29.js → index.D0q0M2nK.js} +264 -326
  16. package/dist/chunks/index.D2jUN9AV.js +1 -0
  17. package/dist/chunks/index.D6z7cYa5.js +1 -0
  18. package/dist/chunks/index.DDo7KIbo.js +60 -0
  19. package/dist/chunks/index.DHAJ5bcO.js +1531 -0
  20. package/dist/chunks/index.DMhXgOEz.js +1 -0
  21. package/dist/chunks/index.DS2YScMD.js +27 -0
  22. package/dist/chunks/index.DYrg31YP.js +354 -0
  23. package/dist/chunks/index.Dh7jK0Mq.js +777 -0
  24. package/dist/chunks/index.DjUJriOp.js +1 -0
  25. package/dist/chunks/index.HA10ghBA.js +152 -0
  26. package/dist/chunks/index.Zd9j6m3g.js +1 -0
  27. package/dist/chunks/index.ak1mD2js.js +1 -0
  28. package/dist/chunks/index.eUOZnpu6.js +13 -0
  29. package/dist/chunks/index.nObpX_Vm.js +71 -0
  30. package/dist/chunks/index.vLV8RYs2.js +288 -0
  31. package/dist/components/Accordion/index.cjs.js +1 -1
  32. package/dist/components/Accordion/index.es.js +289 -425
  33. package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
  34. package/dist/components/Badge/BaseBadge/index.es.js +1 -1
  35. package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
  36. package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
  37. package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
  38. package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +22 -24
  39. package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
  40. package/dist/components/BottomSheet/NavBottomSheet/index.es.js +1 -1
  41. package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
  42. package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +1 -1
  43. package/dist/components/BottomSheet/index.cjs.js +1 -1
  44. package/dist/components/BottomSheet/index.es.js +1 -1
  45. package/dist/components/Button/BaseButton/index.cjs.js +1 -1
  46. package/dist/components/Button/BaseButton/index.es.js +1 -1
  47. package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
  48. package/dist/components/Button/DoubleButton/index.es.js +1 -1
  49. package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
  50. package/dist/components/Button/FloatBaseButton/index.es.js +1 -1
  51. package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
  52. package/dist/components/Button/FloatDoubleButton/index.es.js +1 -1
  53. package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
  54. package/dist/components/Button/FloatSingleButton/index.es.js +1 -1
  55. package/dist/components/Button/SingleButton/index.cjs.js +1 -1
  56. package/dist/components/Button/SingleButton/index.es.js +1 -1
  57. package/dist/components/Button/index.cjs.js +1 -1
  58. package/dist/components/Button/index.es.js +1 -1
  59. package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
  60. package/dist/components/Chips/BasicChips/index.styled.es.js +1 -1
  61. package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
  62. package/dist/components/Chips/ChipItem/index.es.js +21 -23
  63. package/dist/components/Chips/ChipItem/index.styled.cjs.js +1 -1
  64. package/dist/components/Chips/ChipItem/index.styled.es.js +19 -21
  65. package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
  66. package/dist/components/Chips/ChipsFrame/index.es.js +10 -10
  67. package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
  68. package/dist/components/Chips/ChipsFrame/index.styled.es.js +1 -1
  69. package/dist/components/Control/CheckMark/index.cjs.js +1 -1
  70. package/dist/components/Control/CheckMark/index.es.js +16 -18
  71. package/dist/components/Control/RadioButton/index.cjs.js +1 -1
  72. package/dist/components/Control/RadioButton/index.es.js +1 -1
  73. package/dist/components/Control/RadioButton/index.styled.cjs.js +1 -1
  74. package/dist/components/Control/RadioButton/index.styled.es.js +16 -18
  75. package/dist/components/Control/Switch/index.cjs.js +1 -1
  76. package/dist/components/Control/Switch/index.d.ts +37 -9
  77. package/dist/components/Control/Switch/index.es.js +189 -84
  78. package/dist/components/Control/index.cjs.js +1 -1
  79. package/dist/components/Control/index.d.ts +2 -1
  80. package/dist/components/Control/index.es.js +4 -4
  81. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
  82. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +18 -20
  83. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
  84. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +18 -20
  85. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
  86. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +1 -1
  87. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
  88. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +18 -20
  89. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
  90. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +18 -20
  91. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
  92. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +18 -20
  93. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.cjs.js +1 -1
  94. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.es.js +27 -29
  95. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
  96. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +1 -1
  97. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.cjs.js +1 -1
  98. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.es.js +1 -1
  99. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
  100. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +11 -11
  101. package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
  102. package/dist/components/DatePicker/BaseDatePicker/index.es.js +26 -28
  103. package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
  104. package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +1 -1
  105. package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
  106. package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +16 -18
  107. package/dist/components/Input/NumberInput/index.cjs.js +1 -1
  108. package/dist/components/Input/NumberInput/index.es.js +48 -50
  109. package/dist/components/Input/PostfixInput/index.util.cjs.js +1 -1
  110. package/dist/components/Input/PostfixInput/index.util.es.js +19 -21
  111. package/dist/components/Input/TextField/index.cjs.js +1 -1
  112. package/dist/components/Input/TextField/index.es.js +10 -10
  113. package/dist/components/Input/index.cjs.js +1 -1
  114. package/dist/components/Input/index.es.js +27 -29
  115. package/dist/components/{Modal → LegacyModal}/BaseModal/index.cjs.js +1 -1
  116. package/dist/components/{Modal → LegacyModal}/BaseModal/index.es.js +2 -2
  117. package/dist/components/LegacyModal/index.cjs.js +1 -0
  118. package/dist/components/LegacyModal/index.d.ts +31 -0
  119. package/dist/components/LegacyModal/index.es.js +9 -0
  120. package/dist/components/List/index.cjs.js +1 -1
  121. package/dist/components/List/index.es.js +8 -8
  122. package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
  123. package/dist/components/Loading/ProgressBar/index.es.js +1 -1
  124. package/dist/components/Loading/ProgressBar/index.styled.cjs.js +1 -1
  125. package/dist/components/Loading/ProgressBar/index.styled.es.js +17 -19
  126. package/dist/components/Loading/Spinner/index.cjs.js +1 -1
  127. package/dist/components/Loading/Spinner/index.es.js +1 -1
  128. package/dist/components/Loading/index.cjs.js +1 -1
  129. package/dist/components/Loading/index.es.js +1 -1
  130. package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
  131. package/dist/components/MiniButton/BoxMiniButton/index.es.js +4 -4
  132. package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
  133. package/dist/components/MiniButton/IconMiniButton/index.d.ts +1 -1
  134. package/dist/components/MiniButton/IconMiniButton/index.es.js +34 -31
  135. package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
  136. package/dist/components/MiniButton/UnderLineMiniButton/index.d.ts +1 -0
  137. package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +36 -31
  138. package/dist/components/MiniButton/common/index.styled.cjs.js +1 -1
  139. package/dist/components/MiniButton/common/index.styled.es.js +18 -20
  140. package/dist/components/Modal/index.cjs.js +1 -1
  141. package/dist/components/Modal/index.d.ts +14 -27
  142. package/dist/components/Modal/index.es.js +99 -7
  143. package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
  144. package/dist/components/Navigation/BaseNavigation/index.es.js +9 -9
  145. package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
  146. package/dist/components/Navigation/BottomNavigationBar/index.es.js +5 -5
  147. package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
  148. package/dist/components/Navigation/PageNavigationBar/index.es.js +10 -10
  149. package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
  150. package/dist/components/Navigation/TitleNavigationBar/index.es.js +10 -10
  151. package/dist/components/Navigation/index.cjs.js +1 -1
  152. package/dist/components/Navigation/index.es.js +10 -10
  153. package/dist/components/OverlayRoot/index.cjs.js +1 -1
  154. package/dist/components/OverlayRoot/index.es.js +16 -18
  155. package/dist/components/Segment/BaseSegment/index.styled.cjs.js +1 -1
  156. package/dist/components/Segment/BaseSegment/index.styled.es.js +1 -1
  157. package/dist/components/Segment/ExtendSegment/index.styled.cjs.js +1 -1
  158. package/dist/components/Segment/ExtendSegment/index.styled.es.js +1 -1
  159. package/dist/components/SelectBox/index.cjs.js +1 -1
  160. package/dist/components/SelectBox/index.es.js +14 -14
  161. package/dist/components/SelectBox/index.styled.cjs.js +1 -1
  162. package/dist/components/SelectBox/index.styled.es.js +23 -25
  163. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  164. package/dist/components/Tabs/FillTabs/index.es.js +18 -20
  165. package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
  166. package/dist/components/Tabs/TextTabs/index.d.ts +15 -11
  167. package/dist/components/Tabs/TextTabs/index.es.js +51 -64
  168. package/dist/components/Tabs/index.cjs.js +1 -1
  169. package/dist/components/Tabs/index.es.js +5 -4
  170. package/dist/components/Tag/index.cjs.js +1 -1
  171. package/dist/components/Tag/index.es.js +1 -1
  172. package/dist/components/Tag/index.styled.cjs.js +1 -1
  173. package/dist/components/Tag/index.styled.es.js +16 -18
  174. package/dist/components/Terms/index.cjs.js +1 -1
  175. package/dist/components/Terms/index.es.js +14 -15
  176. package/dist/components/TextArea/index.cjs.js +1 -0
  177. package/dist/components/TextArea/index.d.ts +80 -0
  178. package/dist/components/TextArea/index.es.js +30 -0
  179. package/dist/components/Title/index.cjs.js +1 -1
  180. package/dist/components/Title/index.es.js +1 -1
  181. package/dist/components/Title/index.styled.cjs.js +1 -1
  182. package/dist/components/Title/index.styled.es.js +20 -22
  183. package/dist/components/Toast/index.cjs.js +1 -0
  184. package/dist/components/Toast/index.d.ts +5 -0
  185. package/dist/components/Toast/index.es.js +36 -0
  186. package/dist/components/index.cjs.js +1 -1
  187. package/dist/components/index.d.ts +6 -3
  188. package/dist/components/index.es.js +154 -120
  189. package/dist/components/ui/bottomSheet.cjs.js +13 -13
  190. package/dist/components/ui/bottomSheet.es.js +76 -71
  191. package/dist/components/ui/button.cjs.js +1 -1
  192. package/dist/components/ui/button.es.js +4 -4
  193. package/dist/components/ui/checkbox.cjs.js +1 -0
  194. package/dist/components/ui/checkbox.d.ts +9 -0
  195. package/dist/components/ui/checkbox.es.js +445 -0
  196. package/dist/components/ui/dialog.cjs.js +1 -1
  197. package/dist/components/ui/dialog.es.js +30 -30
  198. package/dist/components/ui/drawer.cjs.js +1 -1
  199. package/dist/components/ui/drawer.es.js +2 -2
  200. package/dist/components/ui/impact-tooltip.cjs.js +1 -0
  201. package/dist/components/ui/impact-tooltip.d.ts +16 -0
  202. package/dist/components/ui/impact-tooltip.es.js +387 -0
  203. package/dist/components/ui/share-ui.cjs.js +1 -1
  204. package/dist/components/ui/share-ui.es.js +2 -2
  205. package/dist/components/ui/tooltip.cjs.js +1 -0
  206. package/dist/components/ui/tooltip.d.ts +9 -0
  207. package/dist/components/ui/tooltip.es.js +392 -0
  208. package/dist/components/ui/typography.cjs.js +1 -1
  209. package/dist/components/ui/typography.es.js +3 -3
  210. package/dist/core/Colors/index.cjs.js +1 -1
  211. package/dist/core/Colors/index.d.ts +0 -4
  212. package/dist/core/Colors/index.es.js +4 -8
  213. package/dist/core/Display/Mobile.cjs.js +1 -1
  214. package/dist/core/Display/Mobile.es.js +1 -1
  215. package/dist/core/Display/Pc.cjs.js +1 -1
  216. package/dist/core/Display/Pc.es.js +1 -1
  217. package/dist/core/Display/index.styled.cjs.js +1 -1
  218. package/dist/core/Display/index.styled.es.js +17 -19
  219. package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
  220. package/dist/core/Typography/BaseTypography/index.es.js +2 -2
  221. package/dist/hooks/useLayoutIsMobile.cjs.js +1 -1
  222. package/dist/hooks/useLayoutIsMobile.es.js +17 -19
  223. package/dist/icons/src/aliases/aliases.cjs.js +1 -1
  224. package/dist/icons/src/aliases/aliases.d.ts +9 -9
  225. package/dist/icons/src/aliases/aliases.es.js +44 -44
  226. package/dist/icons/src/aliases/index.cjs.js +1 -1
  227. package/dist/icons/src/aliases/index.es.js +88 -88
  228. package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
  229. package/dist/icons/src/aliases/prefixed.d.ts +11 -11
  230. package/dist/icons/src/aliases/prefixed.es.js +48 -48
  231. package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
  232. package/dist/icons/src/aliases/suffixed.d.ts +16 -16
  233. package/dist/icons/src/aliases/suffixed.es.js +46 -46
  234. package/dist/icons/src/icons/index.cjs.js +1 -1
  235. package/dist/icons/src/icons/index.d.ts +11 -11
  236. package/dist/icons/src/icons/index.es.js +50 -50
  237. package/dist/index.cjs.js +1 -1
  238. package/dist/index.es.js +379 -345
  239. package/dist/lib/utils.cjs.js +1 -1
  240. package/dist/lib/utils.es.js +2761 -2
  241. package/dist/library/BasicLayout/Footer.cjs.js +1 -1
  242. package/dist/library/BasicLayout/Footer.d.ts +2 -2
  243. package/dist/library/BasicLayout/Footer.es.js +35 -34
  244. package/dist/library/BasicLayout/index.cjs.js +1 -1
  245. package/dist/library/BasicLayout/index.d.ts +1 -1
  246. package/dist/library/BasicLayout/index.es.js +20 -22
  247. package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
  248. package/dist/library/BasicLayout/index.styled.es.js +45 -47
  249. package/dist/library/Lottie/index.cjs.js +1 -1
  250. package/dist/library/Lottie/index.es.js +116 -116
  251. package/dist/utils/GenerateColorStyle/chip.cjs.js +1 -1
  252. package/dist/utils/GenerateColorStyle/chip.es.js +1 -1
  253. package/dist/utils/GenerateColorStyle/index.cjs.js +1 -1
  254. package/dist/utils/GenerateColorStyle/index.es.js +8 -8
  255. package/dist/utils/GenerateColorStyle/tab/fill-tabs.cjs.js +1 -1
  256. package/dist/utils/GenerateColorStyle/tab/fill-tabs.es.js +17 -19
  257. package/dist/utils/GenerateColorStyle/tab/text-tabs.cjs.js +1 -1
  258. package/dist/utils/GenerateColorStyle/tab/text-tabs.es.js +17 -19
  259. package/dist/utils/index.cjs.js +1 -1
  260. package/dist/utils/index.es.js +8 -8
  261. package/package.json +22 -15
  262. package/dist/chunks/index.B0KRXeX3.js +0 -205
  263. package/dist/chunks/index.BiFBNKMb.js +0 -51
  264. package/dist/chunks/index.C4mr2-78.js +0 -1
  265. package/dist/chunks/index.CAOufkQO.js +0 -1072
  266. package/dist/chunks/index.Dazlhpef.js +0 -45
  267. package/dist/chunks/index.DnJQUgiG.js +0 -1
  268. package/dist/chunks/index.SS1p-Ys5.js +0 -1
  269. package/dist/chunks/index.styled.DX1B4OiV.js +0 -412
  270. package/dist/chunks/utils.B9KdtH6G.js +0 -2493
  271. package/dist/chunks/utils.Gb5_Gcy7.js +0 -1
  272. package/dist/components/Control/CheckBox/CheckIcon.cjs.js +0 -1
  273. package/dist/components/Control/CheckBox/CheckIcon.d.ts +0 -6
  274. package/dist/components/Control/CheckBox/CheckIcon.es.js +0 -26
  275. package/dist/components/Control/CheckBox/index.cjs.js +0 -1
  276. package/dist/components/Control/CheckBox/index.d.ts +0 -12
  277. package/dist/components/Control/CheckBox/index.es.js +0 -96
  278. package/dist/components/Control/CheckBox/index.styled.cjs.js +0 -24
  279. package/dist/components/Control/CheckBox/index.styled.d.ts +0 -18
  280. package/dist/components/Control/CheckBox/index.styled.es.js +0 -30
  281. package/dist/components/Control/Switch/index.styled.cjs.js +0 -32
  282. package/dist/components/Control/Switch/index.styled.d.ts +0 -15
  283. package/dist/components/Control/Switch/index.styled.es.js +0 -42
  284. package/dist/components/MiniButton/UnderLineMiniButton/index.styled.cjs.js +0 -8
  285. package/dist/components/MiniButton/UnderLineMiniButton/index.styled.d.ts +0 -9
  286. package/dist/components/MiniButton/UnderLineMiniButton/index.styled.es.js +0 -14
  287. package/dist/components/ToastMessage/BaseToastMessage/index.cjs.js +0 -1
  288. package/dist/components/ToastMessage/BaseToastMessage/index.d.ts +0 -13
  289. package/dist/components/ToastMessage/BaseToastMessage/index.es.js +0 -25
  290. package/dist/components/ToastMessage/BaseToastMessage/index.styled.cjs.js +0 -1
  291. package/dist/components/ToastMessage/BaseToastMessage/index.styled.d.ts +0 -10
  292. package/dist/components/ToastMessage/BaseToastMessage/index.styled.es.js +0 -80
  293. package/dist/components/ToastMessage/Toast/index.cjs.js +0 -1
  294. package/dist/components/ToastMessage/Toast/index.d.ts +0 -13
  295. package/dist/components/ToastMessage/Toast/index.es.js +0 -32
  296. package/dist/components/ToastMessage/Toast/index.styled.cjs.js +0 -13
  297. package/dist/components/ToastMessage/Toast/index.styled.d.ts +0 -8
  298. package/dist/components/ToastMessage/Toast/index.styled.es.js +0 -18
  299. package/dist/components/ToastMessage/index.cjs.js +0 -1
  300. package/dist/components/ToastMessage/index.d.ts +0 -1
  301. package/dist/components/ToastMessage/index.es.js +0 -4
  302. package/dist/components/Tooltip/BasicTooltip/index.cjs.js +0 -1
  303. package/dist/components/Tooltip/BasicTooltip/index.d.ts +0 -5
  304. package/dist/components/Tooltip/BasicTooltip/index.es.js +0 -6
  305. package/dist/components/Tooltip/ImpactTooltip/index.cjs.js +0 -1
  306. package/dist/components/Tooltip/ImpactTooltip/index.d.ts +0 -7
  307. package/dist/components/Tooltip/ImpactTooltip/index.es.js +0 -23
  308. package/dist/components/Tooltip/TooltipBase/index.cjs.js +0 -8
  309. package/dist/components/Tooltip/TooltipBase/index.d.ts +0 -18
  310. package/dist/components/Tooltip/TooltipBase/index.es.js +0 -146
  311. package/dist/components/Tooltip/TooltipBase/index.styled.cjs.js +0 -107
  312. package/dist/components/Tooltip/TooltipBase/index.styled.d.ts +0 -22
  313. package/dist/components/Tooltip/TooltipBase/index.styled.es.js +0 -2006
  314. package/dist/components/Tooltip/index.cjs.js +0 -1
  315. package/dist/components/Tooltip/index.d.ts +0 -6
  316. package/dist/components/Tooltip/index.es.js +0 -6
  317. /package/dist/components/{Modal → LegacyModal}/BaseModal/index.d.ts +0 -0
  318. /package/dist/components/{Modal → LegacyModal}/BaseModal/index.styled.cjs.js +0 -0
  319. /package/dist/components/{Modal → LegacyModal}/BaseModal/index.styled.d.ts +0 -0
  320. /package/dist/components/{Modal → LegacyModal}/BaseModal/index.styled.es.js +0 -0
  321. /package/dist/components/{Modal → LegacyModal}/index.styled.cjs.js +0 -0
  322. /package/dist/components/{Modal → LegacyModal}/index.styled.d.ts +0 -0
  323. /package/dist/components/{Modal → LegacyModal}/index.styled.es.js +0 -0
@@ -0,0 +1,1531 @@
1
+ import * as C from "react";
2
+ import { useLayoutEffect as Ce } from "react";
3
+ import * as Oe from "react-dom";
4
+ import { P as bt, c as Pe, u as _t } from "./index.D-9nbSdR.js";
5
+ import { j as X } from "./jsx-runtime.Drh4NO5G.js";
6
+ import { u as Ut } from "./index.DLcqcWxM.js";
7
+ import { u as Se } from "./index.HA10ghBA.js";
8
+ import { u as Ee } from "./index.DS2YScMD.js";
9
+ const De = ["top", "right", "bottom", "left"], Z = Math.min, H = Math.max, ft = Math.round, lt = Math.floor, z = (t) => ({
10
+ x: t,
11
+ y: t
12
+ }), Le = {
13
+ left: "right",
14
+ right: "left",
15
+ bottom: "top",
16
+ top: "bottom"
17
+ }, Te = {
18
+ start: "end",
19
+ end: "start"
20
+ };
21
+ function yt(t, e, n) {
22
+ return H(t, Z(e, n));
23
+ }
24
+ function q(t, e) {
25
+ return typeof t == "function" ? t(e) : t;
26
+ }
27
+ function U(t) {
28
+ return t.split("-")[0];
29
+ }
30
+ function tt(t) {
31
+ return t.split("-")[1];
32
+ }
33
+ function Rt(t) {
34
+ return t === "x" ? "y" : "x";
35
+ }
36
+ function Ct(t) {
37
+ return t === "y" ? "height" : "width";
38
+ }
39
+ function V(t) {
40
+ return ["top", "bottom"].includes(U(t)) ? "y" : "x";
41
+ }
42
+ function Ot(t) {
43
+ return Rt(V(t));
44
+ }
45
+ function Me(t, e, n) {
46
+ n === void 0 && (n = !1);
47
+ const o = tt(t), i = Ot(t), r = Ct(i);
48
+ let s = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
49
+ return e.reference[r] > e.floating[r] && (s = ut(s)), [s, ut(s)];
50
+ }
51
+ function $e(t) {
52
+ const e = ut(t);
53
+ return [vt(t), e, vt(e)];
54
+ }
55
+ function vt(t) {
56
+ return t.replace(/start|end/g, (e) => Te[e]);
57
+ }
58
+ function ke(t, e, n) {
59
+ const o = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
60
+ switch (t) {
61
+ case "top":
62
+ case "bottom":
63
+ return n ? e ? i : o : e ? o : i;
64
+ case "left":
65
+ case "right":
66
+ return e ? r : s;
67
+ default:
68
+ return [];
69
+ }
70
+ }
71
+ function Fe(t, e, n, o) {
72
+ const i = tt(t);
73
+ let r = ke(U(t), n === "start", o);
74
+ return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(vt)))), r;
75
+ }
76
+ function ut(t) {
77
+ return t.replace(/left|right|bottom|top/g, (e) => Le[e]);
78
+ }
79
+ function Ne(t) {
80
+ return {
81
+ top: 0,
82
+ right: 0,
83
+ bottom: 0,
84
+ left: 0,
85
+ ...t
86
+ };
87
+ }
88
+ function Zt(t) {
89
+ return typeof t != "number" ? Ne(t) : {
90
+ top: t,
91
+ right: t,
92
+ bottom: t,
93
+ left: t
94
+ };
95
+ }
96
+ function dt(t) {
97
+ const {
98
+ x: e,
99
+ y: n,
100
+ width: o,
101
+ height: i
102
+ } = t;
103
+ return {
104
+ width: o,
105
+ height: i,
106
+ top: n,
107
+ left: e,
108
+ right: e + o,
109
+ bottom: n + i,
110
+ x: e,
111
+ y: n
112
+ };
113
+ }
114
+ function Bt(t, e, n) {
115
+ let {
116
+ reference: o,
117
+ floating: i
118
+ } = t;
119
+ const r = V(e), s = Ot(e), c = Ct(s), l = U(e), a = r === "y", f = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, p = o[c] / 2 - i[c] / 2;
120
+ let d;
121
+ switch (l) {
122
+ case "top":
123
+ d = {
124
+ x: f,
125
+ y: o.y - i.height
126
+ };
127
+ break;
128
+ case "bottom":
129
+ d = {
130
+ x: f,
131
+ y: o.y + o.height
132
+ };
133
+ break;
134
+ case "right":
135
+ d = {
136
+ x: o.x + o.width,
137
+ y: u
138
+ };
139
+ break;
140
+ case "left":
141
+ d = {
142
+ x: o.x - i.width,
143
+ y: u
144
+ };
145
+ break;
146
+ default:
147
+ d = {
148
+ x: o.x,
149
+ y: o.y
150
+ };
151
+ }
152
+ switch (tt(e)) {
153
+ case "start":
154
+ d[s] -= p * (n && a ? -1 : 1);
155
+ break;
156
+ case "end":
157
+ d[s] += p * (n && a ? -1 : 1);
158
+ break;
159
+ }
160
+ return d;
161
+ }
162
+ const He = async (t, e, n) => {
163
+ const {
164
+ placement: o = "bottom",
165
+ strategy: i = "absolute",
166
+ middleware: r = [],
167
+ platform: s
168
+ } = n, c = r.filter(Boolean), l = await (s.isRTL == null ? void 0 : s.isRTL(e));
169
+ let a = await s.getElementRects({
170
+ reference: t,
171
+ floating: e,
172
+ strategy: i
173
+ }), {
174
+ x: f,
175
+ y: u
176
+ } = Bt(a, o, l), p = o, d = {}, m = 0;
177
+ for (let h = 0; h < c.length; h++) {
178
+ const {
179
+ name: w,
180
+ fn: g
181
+ } = c[h], {
182
+ x,
183
+ y: A,
184
+ data: y,
185
+ reset: v
186
+ } = await g({
187
+ x: f,
188
+ y: u,
189
+ initialPlacement: o,
190
+ placement: p,
191
+ strategy: i,
192
+ middlewareData: d,
193
+ rects: a,
194
+ platform: s,
195
+ elements: {
196
+ reference: t,
197
+ floating: e
198
+ }
199
+ });
200
+ f = x ?? f, u = A ?? u, d = {
201
+ ...d,
202
+ [w]: {
203
+ ...d[w],
204
+ ...y
205
+ }
206
+ }, v && m <= 50 && (m++, typeof v == "object" && (v.placement && (p = v.placement), v.rects && (a = v.rects === !0 ? await s.getElementRects({
207
+ reference: t,
208
+ floating: e,
209
+ strategy: i
210
+ }) : v.rects), {
211
+ x: f,
212
+ y: u
213
+ } = Bt(a, p, l)), h = -1);
214
+ }
215
+ return {
216
+ x: f,
217
+ y: u,
218
+ placement: p,
219
+ strategy: i,
220
+ middlewareData: d
221
+ };
222
+ };
223
+ async function ot(t, e) {
224
+ var n;
225
+ e === void 0 && (e = {});
226
+ const {
227
+ x: o,
228
+ y: i,
229
+ platform: r,
230
+ rects: s,
231
+ elements: c,
232
+ strategy: l
233
+ } = t, {
234
+ boundary: a = "clippingAncestors",
235
+ rootBoundary: f = "viewport",
236
+ elementContext: u = "floating",
237
+ altBoundary: p = !1,
238
+ padding: d = 0
239
+ } = q(e, t), m = Zt(d), w = c[p ? u === "floating" ? "reference" : "floating" : u], g = dt(await r.getClippingRect({
240
+ element: (n = await (r.isElement == null ? void 0 : r.isElement(w))) == null || n ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(c.floating)),
241
+ boundary: a,
242
+ rootBoundary: f,
243
+ strategy: l
244
+ })), x = u === "floating" ? {
245
+ x: o,
246
+ y: i,
247
+ width: s.floating.width,
248
+ height: s.floating.height
249
+ } : s.reference, A = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c.floating)), y = await (r.isElement == null ? void 0 : r.isElement(A)) ? await (r.getScale == null ? void 0 : r.getScale(A)) || {
250
+ x: 1,
251
+ y: 1
252
+ } : {
253
+ x: 1,
254
+ y: 1
255
+ }, v = dt(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
256
+ elements: c,
257
+ rect: x,
258
+ offsetParent: A,
259
+ strategy: l
260
+ }) : x);
261
+ return {
262
+ top: (g.top - v.top + m.top) / y.y,
263
+ bottom: (v.bottom - g.bottom + m.bottom) / y.y,
264
+ left: (g.left - v.left + m.left) / y.x,
265
+ right: (v.right - g.right + m.right) / y.x
266
+ };
267
+ }
268
+ const We = (t) => ({
269
+ name: "arrow",
270
+ options: t,
271
+ async fn(e) {
272
+ const {
273
+ x: n,
274
+ y: o,
275
+ placement: i,
276
+ rects: r,
277
+ platform: s,
278
+ elements: c,
279
+ middlewareData: l
280
+ } = e, {
281
+ element: a,
282
+ padding: f = 0
283
+ } = q(t, e) || {};
284
+ if (a == null)
285
+ return {};
286
+ const u = Zt(f), p = {
287
+ x: n,
288
+ y: o
289
+ }, d = Ot(i), m = Ct(d), h = await s.getDimensions(a), w = d === "y", g = w ? "top" : "left", x = w ? "bottom" : "right", A = w ? "clientHeight" : "clientWidth", y = r.reference[m] + r.reference[d] - p[d] - r.floating[m], v = p[d] - r.reference[d], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a));
290
+ let O = R ? R[A] : 0;
291
+ (!O || !await (s.isElement == null ? void 0 : s.isElement(R))) && (O = c.floating[A] || r.floating[m]);
292
+ const T = y / 2 - v / 2, F = O / 2 - h[m] / 2 - 1, L = Z(u[g], F), $ = Z(u[x], F), k = L, S = O - h[m] - $, P = O / 2 - h[m] / 2 + T, N = yt(k, P, S), E = !l.arrow && tt(i) != null && P !== N && r.reference[m] / 2 - (P < k ? L : $) - h[m] / 2 < 0, D = E ? P < k ? P - k : P - S : 0;
293
+ return {
294
+ [d]: p[d] + D,
295
+ data: {
296
+ [d]: N,
297
+ centerOffset: P - N - D,
298
+ ...E && {
299
+ alignmentOffset: D
300
+ }
301
+ },
302
+ reset: E
303
+ };
304
+ }
305
+ }), _e = function(t) {
306
+ return t === void 0 && (t = {}), {
307
+ name: "flip",
308
+ options: t,
309
+ async fn(e) {
310
+ var n, o;
311
+ const {
312
+ placement: i,
313
+ middlewareData: r,
314
+ rects: s,
315
+ initialPlacement: c,
316
+ platform: l,
317
+ elements: a
318
+ } = e, {
319
+ mainAxis: f = !0,
320
+ crossAxis: u = !0,
321
+ fallbackPlacements: p,
322
+ fallbackStrategy: d = "bestFit",
323
+ fallbackAxisSideDirection: m = "none",
324
+ flipAlignment: h = !0,
325
+ ...w
326
+ } = q(t, e);
327
+ if ((n = r.arrow) != null && n.alignmentOffset)
328
+ return {};
329
+ const g = U(i), x = V(c), A = U(c) === c, y = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), v = p || (A || !h ? [ut(c)] : $e(c)), R = m !== "none";
330
+ !p && R && v.push(...Fe(c, h, m, y));
331
+ const O = [c, ...v], T = await ot(e, w), F = [];
332
+ let L = ((o = r.flip) == null ? void 0 : o.overflows) || [];
333
+ if (f && F.push(T[g]), u) {
334
+ const P = Me(i, s, y);
335
+ F.push(T[P[0]], T[P[1]]);
336
+ }
337
+ if (L = [...L, {
338
+ placement: i,
339
+ overflows: F
340
+ }], !F.every((P) => P <= 0)) {
341
+ var $, k;
342
+ const P = ((($ = r.flip) == null ? void 0 : $.index) || 0) + 1, N = O[P];
343
+ if (N && (!(u === "alignment" ? x !== V(N) : !1) || // We leave the current main axis only if every placement on that axis
344
+ // overflows the main axis.
345
+ L.every((b) => b.overflows[0] > 0 && V(b.placement) === x)))
346
+ return {
347
+ data: {
348
+ index: P,
349
+ overflows: L
350
+ },
351
+ reset: {
352
+ placement: N
353
+ }
354
+ };
355
+ let E = (k = L.filter((D) => D.overflows[0] <= 0).sort((D, b) => D.overflows[1] - b.overflows[1])[0]) == null ? void 0 : k.placement;
356
+ if (!E)
357
+ switch (d) {
358
+ case "bestFit": {
359
+ var S;
360
+ const D = (S = L.filter((b) => {
361
+ if (R) {
362
+ const M = V(b.placement);
363
+ return M === x || // Create a bias to the `y` side axis due to horizontal
364
+ // reading directions favoring greater width.
365
+ M === "y";
366
+ }
367
+ return !0;
368
+ }).map((b) => [b.placement, b.overflows.filter((M) => M > 0).reduce((M, j) => M + j, 0)]).sort((b, M) => b[1] - M[1])[0]) == null ? void 0 : S[0];
369
+ D && (E = D);
370
+ break;
371
+ }
372
+ case "initialPlacement":
373
+ E = c;
374
+ break;
375
+ }
376
+ if (i !== E)
377
+ return {
378
+ reset: {
379
+ placement: E
380
+ }
381
+ };
382
+ }
383
+ return {};
384
+ }
385
+ };
386
+ };
387
+ function jt(t, e) {
388
+ return {
389
+ top: t.top - e.height,
390
+ right: t.right - e.width,
391
+ bottom: t.bottom - e.height,
392
+ left: t.left - e.width
393
+ };
394
+ }
395
+ function Vt(t) {
396
+ return De.some((e) => t[e] >= 0);
397
+ }
398
+ const Be = function(t) {
399
+ return t === void 0 && (t = {}), {
400
+ name: "hide",
401
+ options: t,
402
+ async fn(e) {
403
+ const {
404
+ rects: n
405
+ } = e, {
406
+ strategy: o = "referenceHidden",
407
+ ...i
408
+ } = q(t, e);
409
+ switch (o) {
410
+ case "referenceHidden": {
411
+ const r = await ot(e, {
412
+ ...i,
413
+ elementContext: "reference"
414
+ }), s = jt(r, n.reference);
415
+ return {
416
+ data: {
417
+ referenceHiddenOffsets: s,
418
+ referenceHidden: Vt(s)
419
+ }
420
+ };
421
+ }
422
+ case "escaped": {
423
+ const r = await ot(e, {
424
+ ...i,
425
+ altBoundary: !0
426
+ }), s = jt(r, n.floating);
427
+ return {
428
+ data: {
429
+ escapedOffsets: s,
430
+ escaped: Vt(s)
431
+ }
432
+ };
433
+ }
434
+ default:
435
+ return {};
436
+ }
437
+ }
438
+ };
439
+ };
440
+ async function je(t, e) {
441
+ const {
442
+ placement: n,
443
+ platform: o,
444
+ elements: i
445
+ } = t, r = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), s = U(n), c = tt(n), l = V(n) === "y", a = ["left", "top"].includes(s) ? -1 : 1, f = r && l ? -1 : 1, u = q(e, t);
446
+ let {
447
+ mainAxis: p,
448
+ crossAxis: d,
449
+ alignmentAxis: m
450
+ } = typeof u == "number" ? {
451
+ mainAxis: u,
452
+ crossAxis: 0,
453
+ alignmentAxis: null
454
+ } : {
455
+ mainAxis: u.mainAxis || 0,
456
+ crossAxis: u.crossAxis || 0,
457
+ alignmentAxis: u.alignmentAxis
458
+ };
459
+ return c && typeof m == "number" && (d = c === "end" ? m * -1 : m), l ? {
460
+ x: d * f,
461
+ y: p * a
462
+ } : {
463
+ x: p * a,
464
+ y: d * f
465
+ };
466
+ }
467
+ const Ve = function(t) {
468
+ return t === void 0 && (t = 0), {
469
+ name: "offset",
470
+ options: t,
471
+ async fn(e) {
472
+ var n, o;
473
+ const {
474
+ x: i,
475
+ y: r,
476
+ placement: s,
477
+ middlewareData: c
478
+ } = e, l = await je(e, t);
479
+ return s === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
480
+ x: i + l.x,
481
+ y: r + l.y,
482
+ data: {
483
+ ...l,
484
+ placement: s
485
+ }
486
+ };
487
+ }
488
+ };
489
+ }, ze = function(t) {
490
+ return t === void 0 && (t = {}), {
491
+ name: "shift",
492
+ options: t,
493
+ async fn(e) {
494
+ const {
495
+ x: n,
496
+ y: o,
497
+ placement: i
498
+ } = e, {
499
+ mainAxis: r = !0,
500
+ crossAxis: s = !1,
501
+ limiter: c = {
502
+ fn: (w) => {
503
+ let {
504
+ x: g,
505
+ y: x
506
+ } = w;
507
+ return {
508
+ x: g,
509
+ y: x
510
+ };
511
+ }
512
+ },
513
+ ...l
514
+ } = q(t, e), a = {
515
+ x: n,
516
+ y: o
517
+ }, f = await ot(e, l), u = V(U(i)), p = Rt(u);
518
+ let d = a[p], m = a[u];
519
+ if (r) {
520
+ const w = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", x = d + f[w], A = d - f[g];
521
+ d = yt(x, d, A);
522
+ }
523
+ if (s) {
524
+ const w = u === "y" ? "top" : "left", g = u === "y" ? "bottom" : "right", x = m + f[w], A = m - f[g];
525
+ m = yt(x, m, A);
526
+ }
527
+ const h = c.fn({
528
+ ...e,
529
+ [p]: d,
530
+ [u]: m
531
+ });
532
+ return {
533
+ ...h,
534
+ data: {
535
+ x: h.x - n,
536
+ y: h.y - o,
537
+ enabled: {
538
+ [p]: r,
539
+ [u]: s
540
+ }
541
+ }
542
+ };
543
+ }
544
+ };
545
+ }, Ie = function(t) {
546
+ return t === void 0 && (t = {}), {
547
+ options: t,
548
+ fn(e) {
549
+ const {
550
+ x: n,
551
+ y: o,
552
+ placement: i,
553
+ rects: r,
554
+ middlewareData: s
555
+ } = e, {
556
+ offset: c = 0,
557
+ mainAxis: l = !0,
558
+ crossAxis: a = !0
559
+ } = q(t, e), f = {
560
+ x: n,
561
+ y: o
562
+ }, u = V(i), p = Rt(u);
563
+ let d = f[p], m = f[u];
564
+ const h = q(c, e), w = typeof h == "number" ? {
565
+ mainAxis: h,
566
+ crossAxis: 0
567
+ } : {
568
+ mainAxis: 0,
569
+ crossAxis: 0,
570
+ ...h
571
+ };
572
+ if (l) {
573
+ const A = p === "y" ? "height" : "width", y = r.reference[p] - r.floating[A] + w.mainAxis, v = r.reference[p] + r.reference[A] - w.mainAxis;
574
+ d < y ? d = y : d > v && (d = v);
575
+ }
576
+ if (a) {
577
+ var g, x;
578
+ const A = p === "y" ? "width" : "height", y = ["top", "left"].includes(U(i)), v = r.reference[u] - r.floating[A] + (y && ((g = s.offset) == null ? void 0 : g[u]) || 0) + (y ? 0 : w.crossAxis), R = r.reference[u] + r.reference[A] + (y ? 0 : ((x = s.offset) == null ? void 0 : x[u]) || 0) - (y ? w.crossAxis : 0);
579
+ m < v ? m = v : m > R && (m = R);
580
+ }
581
+ return {
582
+ [p]: d,
583
+ [u]: m
584
+ };
585
+ }
586
+ };
587
+ }, Ye = function(t) {
588
+ return t === void 0 && (t = {}), {
589
+ name: "size",
590
+ options: t,
591
+ async fn(e) {
592
+ var n, o;
593
+ const {
594
+ placement: i,
595
+ rects: r,
596
+ platform: s,
597
+ elements: c
598
+ } = e, {
599
+ apply: l = () => {
600
+ },
601
+ ...a
602
+ } = q(t, e), f = await ot(e, a), u = U(i), p = tt(i), d = V(i) === "y", {
603
+ width: m,
604
+ height: h
605
+ } = r.floating;
606
+ let w, g;
607
+ u === "top" || u === "bottom" ? (w = u, g = p === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (g = u, w = p === "end" ? "top" : "bottom");
608
+ const x = h - f.top - f.bottom, A = m - f.left - f.right, y = Z(h - f[w], x), v = Z(m - f[g], A), R = !e.middlewareData.shift;
609
+ let O = y, T = v;
610
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (T = A), (o = e.middlewareData.shift) != null && o.enabled.y && (O = x), R && !p) {
611
+ const L = H(f.left, 0), $ = H(f.right, 0), k = H(f.top, 0), S = H(f.bottom, 0);
612
+ d ? T = m - 2 * (L !== 0 || $ !== 0 ? L + $ : H(f.left, f.right)) : O = h - 2 * (k !== 0 || S !== 0 ? k + S : H(f.top, f.bottom));
613
+ }
614
+ await l({
615
+ ...e,
616
+ availableWidth: T,
617
+ availableHeight: O
618
+ });
619
+ const F = await s.getDimensions(c.floating);
620
+ return m !== F.width || h !== F.height ? {
621
+ reset: {
622
+ rects: !0
623
+ }
624
+ } : {};
625
+ }
626
+ };
627
+ };
628
+ function pt() {
629
+ return typeof window < "u";
630
+ }
631
+ function et(t) {
632
+ return Kt(t) ? (t.nodeName || "").toLowerCase() : "#document";
633
+ }
634
+ function W(t) {
635
+ var e;
636
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
637
+ }
638
+ function Y(t) {
639
+ var e;
640
+ return (e = (Kt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
641
+ }
642
+ function Kt(t) {
643
+ return pt() ? t instanceof Node || t instanceof W(t).Node : !1;
644
+ }
645
+ function _(t) {
646
+ return pt() ? t instanceof Element || t instanceof W(t).Element : !1;
647
+ }
648
+ function I(t) {
649
+ return pt() ? t instanceof HTMLElement || t instanceof W(t).HTMLElement : !1;
650
+ }
651
+ function zt(t) {
652
+ return !pt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof W(t).ShadowRoot;
653
+ }
654
+ function rt(t) {
655
+ const {
656
+ overflow: e,
657
+ overflowX: n,
658
+ overflowY: o,
659
+ display: i
660
+ } = B(t);
661
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
662
+ }
663
+ function Xe(t) {
664
+ return ["table", "td", "th"].includes(et(t));
665
+ }
666
+ function ht(t) {
667
+ return [":popover-open", ":modal"].some((e) => {
668
+ try {
669
+ return t.matches(e);
670
+ } catch {
671
+ return !1;
672
+ }
673
+ });
674
+ }
675
+ function Pt(t) {
676
+ const e = St(), n = _(t) ? B(t) : t;
677
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
678
+ }
679
+ function qe(t) {
680
+ let e = K(t);
681
+ for (; I(e) && !Q(e); ) {
682
+ if (Pt(e))
683
+ return e;
684
+ if (ht(e))
685
+ return null;
686
+ e = K(e);
687
+ }
688
+ return null;
689
+ }
690
+ function St() {
691
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
692
+ }
693
+ function Q(t) {
694
+ return ["html", "body", "#document"].includes(et(t));
695
+ }
696
+ function B(t) {
697
+ return W(t).getComputedStyle(t);
698
+ }
699
+ function gt(t) {
700
+ return _(t) ? {
701
+ scrollLeft: t.scrollLeft,
702
+ scrollTop: t.scrollTop
703
+ } : {
704
+ scrollLeft: t.scrollX,
705
+ scrollTop: t.scrollY
706
+ };
707
+ }
708
+ function K(t) {
709
+ if (et(t) === "html")
710
+ return t;
711
+ const e = (
712
+ // Step into the shadow DOM of the parent of a slotted node.
713
+ t.assignedSlot || // DOM Element detected.
714
+ t.parentNode || // ShadowRoot detected.
715
+ zt(t) && t.host || // Fallback.
716
+ Y(t)
717
+ );
718
+ return zt(e) ? e.host : e;
719
+ }
720
+ function Gt(t) {
721
+ const e = K(t);
722
+ return Q(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : I(e) && rt(e) ? e : Gt(e);
723
+ }
724
+ function it(t, e, n) {
725
+ var o;
726
+ e === void 0 && (e = []), n === void 0 && (n = !0);
727
+ const i = Gt(t), r = i === ((o = t.ownerDocument) == null ? void 0 : o.body), s = W(i);
728
+ if (r) {
729
+ const c = At(s);
730
+ return e.concat(s, s.visualViewport || [], rt(i) ? i : [], c && n ? it(c) : []);
731
+ }
732
+ return e.concat(i, it(i, [], n));
733
+ }
734
+ function At(t) {
735
+ return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
736
+ }
737
+ function Jt(t) {
738
+ const e = B(t);
739
+ let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
740
+ const i = I(t), r = i ? t.offsetWidth : n, s = i ? t.offsetHeight : o, c = ft(n) !== r || ft(o) !== s;
741
+ return c && (n = r, o = s), {
742
+ width: n,
743
+ height: o,
744
+ $: c
745
+ };
746
+ }
747
+ function Et(t) {
748
+ return _(t) ? t : t.contextElement;
749
+ }
750
+ function J(t) {
751
+ const e = Et(t);
752
+ if (!I(e))
753
+ return z(1);
754
+ const n = e.getBoundingClientRect(), {
755
+ width: o,
756
+ height: i,
757
+ $: r
758
+ } = Jt(e);
759
+ let s = (r ? ft(n.width) : n.width) / o, c = (r ? ft(n.height) : n.height) / i;
760
+ return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
761
+ x: s,
762
+ y: c
763
+ };
764
+ }
765
+ const Ue = /* @__PURE__ */ z(0);
766
+ function Qt(t) {
767
+ const e = W(t);
768
+ return !St() || !e.visualViewport ? Ue : {
769
+ x: e.visualViewport.offsetLeft,
770
+ y: e.visualViewport.offsetTop
771
+ };
772
+ }
773
+ function Ze(t, e, n) {
774
+ return e === void 0 && (e = !1), !n || e && n !== W(t) ? !1 : e;
775
+ }
776
+ function G(t, e, n, o) {
777
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
778
+ const i = t.getBoundingClientRect(), r = Et(t);
779
+ let s = z(1);
780
+ e && (o ? _(o) && (s = J(o)) : s = J(t));
781
+ const c = Ze(r, n, o) ? Qt(r) : z(0);
782
+ let l = (i.left + c.x) / s.x, a = (i.top + c.y) / s.y, f = i.width / s.x, u = i.height / s.y;
783
+ if (r) {
784
+ const p = W(r), d = o && _(o) ? W(o) : o;
785
+ let m = p, h = At(m);
786
+ for (; h && o && d !== m; ) {
787
+ const w = J(h), g = h.getBoundingClientRect(), x = B(h), A = g.left + (h.clientLeft + parseFloat(x.paddingLeft)) * w.x, y = g.top + (h.clientTop + parseFloat(x.paddingTop)) * w.y;
788
+ l *= w.x, a *= w.y, f *= w.x, u *= w.y, l += A, a += y, m = W(h), h = At(m);
789
+ }
790
+ }
791
+ return dt({
792
+ width: f,
793
+ height: u,
794
+ x: l,
795
+ y: a
796
+ });
797
+ }
798
+ function Dt(t, e) {
799
+ const n = gt(t).scrollLeft;
800
+ return e ? e.left + n : G(Y(t)).left + n;
801
+ }
802
+ function te(t, e, n) {
803
+ n === void 0 && (n = !1);
804
+ const o = t.getBoundingClientRect(), i = o.left + e.scrollLeft - (n ? 0 : (
805
+ // RTL <body> scrollbar.
806
+ Dt(t, o)
807
+ )), r = o.top + e.scrollTop;
808
+ return {
809
+ x: i,
810
+ y: r
811
+ };
812
+ }
813
+ function Ke(t) {
814
+ let {
815
+ elements: e,
816
+ rect: n,
817
+ offsetParent: o,
818
+ strategy: i
819
+ } = t;
820
+ const r = i === "fixed", s = Y(o), c = e ? ht(e.floating) : !1;
821
+ if (o === s || c && r)
822
+ return n;
823
+ let l = {
824
+ scrollLeft: 0,
825
+ scrollTop: 0
826
+ }, a = z(1);
827
+ const f = z(0), u = I(o);
828
+ if ((u || !u && !r) && ((et(o) !== "body" || rt(s)) && (l = gt(o)), I(o))) {
829
+ const d = G(o);
830
+ a = J(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
831
+ }
832
+ const p = s && !u && !r ? te(s, l, !0) : z(0);
833
+ return {
834
+ width: n.width * a.x,
835
+ height: n.height * a.y,
836
+ x: n.x * a.x - l.scrollLeft * a.x + f.x + p.x,
837
+ y: n.y * a.y - l.scrollTop * a.y + f.y + p.y
838
+ };
839
+ }
840
+ function Ge(t) {
841
+ return Array.from(t.getClientRects());
842
+ }
843
+ function Je(t) {
844
+ const e = Y(t), n = gt(t), o = t.ownerDocument.body, i = H(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = H(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
845
+ let s = -n.scrollLeft + Dt(t);
846
+ const c = -n.scrollTop;
847
+ return B(o).direction === "rtl" && (s += H(e.clientWidth, o.clientWidth) - i), {
848
+ width: i,
849
+ height: r,
850
+ x: s,
851
+ y: c
852
+ };
853
+ }
854
+ function Qe(t, e) {
855
+ const n = W(t), o = Y(t), i = n.visualViewport;
856
+ let r = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
857
+ if (i) {
858
+ r = i.width, s = i.height;
859
+ const a = St();
860
+ (!a || a && e === "fixed") && (c = i.offsetLeft, l = i.offsetTop);
861
+ }
862
+ return {
863
+ width: r,
864
+ height: s,
865
+ x: c,
866
+ y: l
867
+ };
868
+ }
869
+ function tn(t, e) {
870
+ const n = G(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, r = I(t) ? J(t) : z(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = i * r.x, a = o * r.y;
871
+ return {
872
+ width: s,
873
+ height: c,
874
+ x: l,
875
+ y: a
876
+ };
877
+ }
878
+ function It(t, e, n) {
879
+ let o;
880
+ if (e === "viewport")
881
+ o = Qe(t, n);
882
+ else if (e === "document")
883
+ o = Je(Y(t));
884
+ else if (_(e))
885
+ o = tn(e, n);
886
+ else {
887
+ const i = Qt(t);
888
+ o = {
889
+ x: e.x - i.x,
890
+ y: e.y - i.y,
891
+ width: e.width,
892
+ height: e.height
893
+ };
894
+ }
895
+ return dt(o);
896
+ }
897
+ function ee(t, e) {
898
+ const n = K(t);
899
+ return n === e || !_(n) || Q(n) ? !1 : B(n).position === "fixed" || ee(n, e);
900
+ }
901
+ function en(t, e) {
902
+ const n = e.get(t);
903
+ if (n)
904
+ return n;
905
+ let o = it(t, [], !1).filter((c) => _(c) && et(c) !== "body"), i = null;
906
+ const r = B(t).position === "fixed";
907
+ let s = r ? K(t) : t;
908
+ for (; _(s) && !Q(s); ) {
909
+ const c = B(s), l = Pt(s);
910
+ !l && c.position === "fixed" && (i = null), (r ? !l && !i : !l && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || rt(s) && !l && ee(t, s)) ? o = o.filter((f) => f !== s) : i = c, s = K(s);
911
+ }
912
+ return e.set(t, o), o;
913
+ }
914
+ function nn(t) {
915
+ let {
916
+ element: e,
917
+ boundary: n,
918
+ rootBoundary: o,
919
+ strategy: i
920
+ } = t;
921
+ const s = [...n === "clippingAncestors" ? ht(e) ? [] : en(e, this._c) : [].concat(n), o], c = s[0], l = s.reduce((a, f) => {
922
+ const u = It(e, f, i);
923
+ return a.top = H(u.top, a.top), a.right = Z(u.right, a.right), a.bottom = Z(u.bottom, a.bottom), a.left = H(u.left, a.left), a;
924
+ }, It(e, c, i));
925
+ return {
926
+ width: l.right - l.left,
927
+ height: l.bottom - l.top,
928
+ x: l.left,
929
+ y: l.top
930
+ };
931
+ }
932
+ function on(t) {
933
+ const {
934
+ width: e,
935
+ height: n
936
+ } = Jt(t);
937
+ return {
938
+ width: e,
939
+ height: n
940
+ };
941
+ }
942
+ function rn(t, e, n) {
943
+ const o = I(e), i = Y(e), r = n === "fixed", s = G(t, !0, r, e);
944
+ let c = {
945
+ scrollLeft: 0,
946
+ scrollTop: 0
947
+ };
948
+ const l = z(0);
949
+ function a() {
950
+ l.x = Dt(i);
951
+ }
952
+ if (o || !o && !r)
953
+ if ((et(e) !== "body" || rt(i)) && (c = gt(e)), o) {
954
+ const d = G(e, !0, r, e);
955
+ l.x = d.x + e.clientLeft, l.y = d.y + e.clientTop;
956
+ } else i && a();
957
+ r && !o && i && a();
958
+ const f = i && !o && !r ? te(i, c) : z(0), u = s.left + c.scrollLeft - l.x - f.x, p = s.top + c.scrollTop - l.y - f.y;
959
+ return {
960
+ x: u,
961
+ y: p,
962
+ width: s.width,
963
+ height: s.height
964
+ };
965
+ }
966
+ function wt(t) {
967
+ return B(t).position === "static";
968
+ }
969
+ function Yt(t, e) {
970
+ if (!I(t) || B(t).position === "fixed")
971
+ return null;
972
+ if (e)
973
+ return e(t);
974
+ let n = t.offsetParent;
975
+ return Y(t) === n && (n = n.ownerDocument.body), n;
976
+ }
977
+ function ne(t, e) {
978
+ const n = W(t);
979
+ if (ht(t))
980
+ return n;
981
+ if (!I(t)) {
982
+ let i = K(t);
983
+ for (; i && !Q(i); ) {
984
+ if (_(i) && !wt(i))
985
+ return i;
986
+ i = K(i);
987
+ }
988
+ return n;
989
+ }
990
+ let o = Yt(t, e);
991
+ for (; o && Xe(o) && wt(o); )
992
+ o = Yt(o, e);
993
+ return o && Q(o) && wt(o) && !Pt(o) ? n : o || qe(t) || n;
994
+ }
995
+ const sn = async function(t) {
996
+ const e = this.getOffsetParent || ne, n = this.getDimensions, o = await n(t.floating);
997
+ return {
998
+ reference: rn(t.reference, await e(t.floating), t.strategy),
999
+ floating: {
1000
+ x: 0,
1001
+ y: 0,
1002
+ width: o.width,
1003
+ height: o.height
1004
+ }
1005
+ };
1006
+ };
1007
+ function cn(t) {
1008
+ return B(t).direction === "rtl";
1009
+ }
1010
+ const ln = {
1011
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ke,
1012
+ getDocumentElement: Y,
1013
+ getClippingRect: nn,
1014
+ getOffsetParent: ne,
1015
+ getElementRects: sn,
1016
+ getClientRects: Ge,
1017
+ getDimensions: on,
1018
+ getScale: J,
1019
+ isElement: _,
1020
+ isRTL: cn
1021
+ };
1022
+ function oe(t, e) {
1023
+ return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
1024
+ }
1025
+ function an(t, e) {
1026
+ let n = null, o;
1027
+ const i = Y(t);
1028
+ function r() {
1029
+ var c;
1030
+ clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
1031
+ }
1032
+ function s(c, l) {
1033
+ c === void 0 && (c = !1), l === void 0 && (l = 1), r();
1034
+ const a = t.getBoundingClientRect(), {
1035
+ left: f,
1036
+ top: u,
1037
+ width: p,
1038
+ height: d
1039
+ } = a;
1040
+ if (c || e(), !p || !d)
1041
+ return;
1042
+ const m = lt(u), h = lt(i.clientWidth - (f + p)), w = lt(i.clientHeight - (u + d)), g = lt(f), A = {
1043
+ rootMargin: -m + "px " + -h + "px " + -w + "px " + -g + "px",
1044
+ threshold: H(0, Z(1, l)) || 1
1045
+ };
1046
+ let y = !0;
1047
+ function v(R) {
1048
+ const O = R[0].intersectionRatio;
1049
+ if (O !== l) {
1050
+ if (!y)
1051
+ return s();
1052
+ O ? s(!1, O) : o = setTimeout(() => {
1053
+ s(!1, 1e-7);
1054
+ }, 1e3);
1055
+ }
1056
+ O === 1 && !oe(a, t.getBoundingClientRect()) && s(), y = !1;
1057
+ }
1058
+ try {
1059
+ n = new IntersectionObserver(v, {
1060
+ ...A,
1061
+ // Handle <iframe>s
1062
+ root: i.ownerDocument
1063
+ });
1064
+ } catch {
1065
+ n = new IntersectionObserver(v, A);
1066
+ }
1067
+ n.observe(t);
1068
+ }
1069
+ return s(!0), r;
1070
+ }
1071
+ function fn(t, e, n, o) {
1072
+ o === void 0 && (o = {});
1073
+ const {
1074
+ ancestorScroll: i = !0,
1075
+ ancestorResize: r = !0,
1076
+ elementResize: s = typeof ResizeObserver == "function",
1077
+ layoutShift: c = typeof IntersectionObserver == "function",
1078
+ animationFrame: l = !1
1079
+ } = o, a = Et(t), f = i || r ? [...a ? it(a) : [], ...it(e)] : [];
1080
+ f.forEach((g) => {
1081
+ i && g.addEventListener("scroll", n, {
1082
+ passive: !0
1083
+ }), r && g.addEventListener("resize", n);
1084
+ });
1085
+ const u = a && c ? an(a, n) : null;
1086
+ let p = -1, d = null;
1087
+ s && (d = new ResizeObserver((g) => {
1088
+ let [x] = g;
1089
+ x && x.target === a && d && (d.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1090
+ var A;
1091
+ (A = d) == null || A.observe(e);
1092
+ })), n();
1093
+ }), a && !l && d.observe(a), d.observe(e));
1094
+ let m, h = l ? G(t) : null;
1095
+ l && w();
1096
+ function w() {
1097
+ const g = G(t);
1098
+ h && !oe(h, g) && n(), h = g, m = requestAnimationFrame(w);
1099
+ }
1100
+ return n(), () => {
1101
+ var g;
1102
+ f.forEach((x) => {
1103
+ i && x.removeEventListener("scroll", n), r && x.removeEventListener("resize", n);
1104
+ }), u == null || u(), (g = d) == null || g.disconnect(), d = null, l && cancelAnimationFrame(m);
1105
+ };
1106
+ }
1107
+ const un = Ve, dn = ze, mn = _e, pn = Ye, hn = Be, Xt = We, gn = Ie, wn = (t, e, n) => {
1108
+ const o = /* @__PURE__ */ new Map(), i = {
1109
+ platform: ln,
1110
+ ...n
1111
+ }, r = {
1112
+ ...i.platform,
1113
+ _c: o
1114
+ };
1115
+ return He(t, e, {
1116
+ ...i,
1117
+ platform: r
1118
+ });
1119
+ };
1120
+ var xn = typeof document < "u", yn = function() {
1121
+ }, at = xn ? Ce : yn;
1122
+ function mt(t, e) {
1123
+ if (t === e)
1124
+ return !0;
1125
+ if (typeof t != typeof e)
1126
+ return !1;
1127
+ if (typeof t == "function" && t.toString() === e.toString())
1128
+ return !0;
1129
+ let n, o, i;
1130
+ if (t && e && typeof t == "object") {
1131
+ if (Array.isArray(t)) {
1132
+ if (n = t.length, n !== e.length) return !1;
1133
+ for (o = n; o-- !== 0; )
1134
+ if (!mt(t[o], e[o]))
1135
+ return !1;
1136
+ return !0;
1137
+ }
1138
+ if (i = Object.keys(t), n = i.length, n !== Object.keys(e).length)
1139
+ return !1;
1140
+ for (o = n; o-- !== 0; )
1141
+ if (!{}.hasOwnProperty.call(e, i[o]))
1142
+ return !1;
1143
+ for (o = n; o-- !== 0; ) {
1144
+ const r = i[o];
1145
+ if (!(r === "_owner" && t.$$typeof) && !mt(t[r], e[r]))
1146
+ return !1;
1147
+ }
1148
+ return !0;
1149
+ }
1150
+ return t !== t && e !== e;
1151
+ }
1152
+ function ie(t) {
1153
+ return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1154
+ }
1155
+ function qt(t, e) {
1156
+ const n = ie(t);
1157
+ return Math.round(e * n) / n;
1158
+ }
1159
+ function xt(t) {
1160
+ const e = C.useRef(t);
1161
+ return at(() => {
1162
+ e.current = t;
1163
+ }), e;
1164
+ }
1165
+ function vn(t) {
1166
+ t === void 0 && (t = {});
1167
+ const {
1168
+ placement: e = "bottom",
1169
+ strategy: n = "absolute",
1170
+ middleware: o = [],
1171
+ platform: i,
1172
+ elements: {
1173
+ reference: r,
1174
+ floating: s
1175
+ } = {},
1176
+ transform: c = !0,
1177
+ whileElementsMounted: l,
1178
+ open: a
1179
+ } = t, [f, u] = C.useState({
1180
+ x: 0,
1181
+ y: 0,
1182
+ strategy: n,
1183
+ placement: e,
1184
+ middlewareData: {},
1185
+ isPositioned: !1
1186
+ }), [p, d] = C.useState(o);
1187
+ mt(p, o) || d(o);
1188
+ const [m, h] = C.useState(null), [w, g] = C.useState(null), x = C.useCallback((b) => {
1189
+ b !== R.current && (R.current = b, h(b));
1190
+ }, []), A = C.useCallback((b) => {
1191
+ b !== O.current && (O.current = b, g(b));
1192
+ }, []), y = r || m, v = s || w, R = C.useRef(null), O = C.useRef(null), T = C.useRef(f), F = l != null, L = xt(l), $ = xt(i), k = xt(a), S = C.useCallback(() => {
1193
+ if (!R.current || !O.current)
1194
+ return;
1195
+ const b = {
1196
+ placement: e,
1197
+ strategy: n,
1198
+ middleware: p
1199
+ };
1200
+ $.current && (b.platform = $.current), wn(R.current, O.current, b).then((M) => {
1201
+ const j = {
1202
+ ...M,
1203
+ // The floating element's position may be recomputed while it's closed
1204
+ // but still mounted (such as when transitioning out). To ensure
1205
+ // `isPositioned` will be `false` initially on the next open, avoid
1206
+ // setting it to `true` when `open === false` (must be specified).
1207
+ isPositioned: k.current !== !1
1208
+ };
1209
+ P.current && !mt(T.current, j) && (T.current = j, Oe.flushSync(() => {
1210
+ u(j);
1211
+ }));
1212
+ });
1213
+ }, [p, e, n, $, k]);
1214
+ at(() => {
1215
+ a === !1 && T.current.isPositioned && (T.current.isPositioned = !1, u((b) => ({
1216
+ ...b,
1217
+ isPositioned: !1
1218
+ })));
1219
+ }, [a]);
1220
+ const P = C.useRef(!1);
1221
+ at(() => (P.current = !0, () => {
1222
+ P.current = !1;
1223
+ }), []), at(() => {
1224
+ if (y && (R.current = y), v && (O.current = v), y && v) {
1225
+ if (L.current)
1226
+ return L.current(y, v, S);
1227
+ S();
1228
+ }
1229
+ }, [y, v, S, L, F]);
1230
+ const N = C.useMemo(() => ({
1231
+ reference: R,
1232
+ floating: O,
1233
+ setReference: x,
1234
+ setFloating: A
1235
+ }), [x, A]), E = C.useMemo(() => ({
1236
+ reference: y,
1237
+ floating: v
1238
+ }), [y, v]), D = C.useMemo(() => {
1239
+ const b = {
1240
+ position: n,
1241
+ left: 0,
1242
+ top: 0
1243
+ };
1244
+ if (!E.floating)
1245
+ return b;
1246
+ const M = qt(E.floating, f.x), j = qt(E.floating, f.y);
1247
+ return c ? {
1248
+ ...b,
1249
+ transform: "translate(" + M + "px, " + j + "px)",
1250
+ ...ie(E.floating) >= 1.5 && {
1251
+ willChange: "transform"
1252
+ }
1253
+ } : {
1254
+ position: n,
1255
+ left: M,
1256
+ top: j
1257
+ };
1258
+ }, [n, c, E.floating, f.x, f.y]);
1259
+ return C.useMemo(() => ({
1260
+ ...f,
1261
+ update: S,
1262
+ refs: N,
1263
+ elements: E,
1264
+ floatingStyles: D
1265
+ }), [f, S, N, E, D]);
1266
+ }
1267
+ const An = (t) => {
1268
+ function e(n) {
1269
+ return {}.hasOwnProperty.call(n, "current");
1270
+ }
1271
+ return {
1272
+ name: "arrow",
1273
+ options: t,
1274
+ fn(n) {
1275
+ const {
1276
+ element: o,
1277
+ padding: i
1278
+ } = typeof t == "function" ? t(n) : t;
1279
+ return o && e(o) ? o.current != null ? Xt({
1280
+ element: o.current,
1281
+ padding: i
1282
+ }).fn(n) : {} : o ? Xt({
1283
+ element: o,
1284
+ padding: i
1285
+ }).fn(n) : {};
1286
+ }
1287
+ };
1288
+ }, bn = (t, e) => ({
1289
+ ...un(t),
1290
+ options: [t, e]
1291
+ }), Rn = (t, e) => ({
1292
+ ...dn(t),
1293
+ options: [t, e]
1294
+ }), Cn = (t, e) => ({
1295
+ ...gn(t),
1296
+ options: [t, e]
1297
+ }), On = (t, e) => ({
1298
+ ...mn(t),
1299
+ options: [t, e]
1300
+ }), Pn = (t, e) => ({
1301
+ ...pn(t),
1302
+ options: [t, e]
1303
+ }), Sn = (t, e) => ({
1304
+ ...hn(t),
1305
+ options: [t, e]
1306
+ }), En = (t, e) => ({
1307
+ ...An(t),
1308
+ options: [t, e]
1309
+ });
1310
+ var Dn = "Arrow", re = C.forwardRef((t, e) => {
1311
+ const { children: n, width: o = 10, height: i = 5, ...r } = t;
1312
+ return /* @__PURE__ */ X.jsx(
1313
+ bt.svg,
1314
+ {
1315
+ ...r,
1316
+ ref: e,
1317
+ width: o,
1318
+ height: i,
1319
+ viewBox: "0 0 30 10",
1320
+ preserveAspectRatio: "none",
1321
+ children: t.asChild ? n : /* @__PURE__ */ X.jsx("polygon", { points: "0,0 30,0 15,10" })
1322
+ }
1323
+ );
1324
+ });
1325
+ re.displayName = Dn;
1326
+ var Ln = re, Lt = "Popper", [se, zn] = Pe(Lt), [Tn, ce] = se(Lt), le = (t) => {
1327
+ const { __scopePopper: e, children: n } = t, [o, i] = C.useState(null);
1328
+ return /* @__PURE__ */ X.jsx(Tn, { scope: e, anchor: o, onAnchorChange: i, children: n });
1329
+ };
1330
+ le.displayName = Lt;
1331
+ var ae = "PopperAnchor", fe = C.forwardRef(
1332
+ (t, e) => {
1333
+ const { __scopePopper: n, virtualRef: o, ...i } = t, r = ce(ae, n), s = C.useRef(null), c = Ut(e, s), l = C.useRef(null);
1334
+ return C.useEffect(() => {
1335
+ const a = l.current;
1336
+ l.current = (o == null ? void 0 : o.current) || s.current, a !== l.current && r.onAnchorChange(l.current);
1337
+ }), o ? null : /* @__PURE__ */ X.jsx(bt.div, { ...i, ref: c });
1338
+ }
1339
+ );
1340
+ fe.displayName = ae;
1341
+ var Tt = "PopperContent", [Mn, $n] = se(Tt), ue = C.forwardRef(
1342
+ (t, e) => {
1343
+ var Mt, $t, kt, Ft, Nt, Ht;
1344
+ const {
1345
+ __scopePopper: n,
1346
+ side: o = "bottom",
1347
+ sideOffset: i = 0,
1348
+ align: r = "center",
1349
+ alignOffset: s = 0,
1350
+ arrowPadding: c = 0,
1351
+ avoidCollisions: l = !0,
1352
+ collisionBoundary: a = [],
1353
+ collisionPadding: f = 0,
1354
+ sticky: u = "partial",
1355
+ hideWhenDetached: p = !1,
1356
+ updatePositionStrategy: d = "optimized",
1357
+ onPlaced: m,
1358
+ ...h
1359
+ } = t, w = ce(Tt, n), [g, x] = C.useState(null), A = Ut(e, (nt) => x(nt)), [y, v] = C.useState(null), R = Ee(y), O = (R == null ? void 0 : R.width) ?? 0, T = (R == null ? void 0 : R.height) ?? 0, F = o + (r !== "center" ? "-" + r : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, $ = Array.isArray(a) ? a : [a], k = $.length > 0, S = {
1360
+ padding: L,
1361
+ boundary: $.filter(Fn),
1362
+ // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1363
+ altBoundary: k
1364
+ }, { refs: P, floatingStyles: N, placement: E, isPositioned: D, middlewareData: b } = vn({
1365
+ // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1366
+ strategy: "fixed",
1367
+ placement: F,
1368
+ whileElementsMounted: (...nt) => fn(...nt, {
1369
+ animationFrame: d === "always"
1370
+ }),
1371
+ elements: {
1372
+ reference: w.anchor
1373
+ },
1374
+ middleware: [
1375
+ bn({ mainAxis: i + T, alignmentAxis: s }),
1376
+ l && Rn({
1377
+ mainAxis: !0,
1378
+ crossAxis: !1,
1379
+ limiter: u === "partial" ? Cn() : void 0,
1380
+ ...S
1381
+ }),
1382
+ l && On({ ...S }),
1383
+ Pn({
1384
+ ...S,
1385
+ apply: ({ elements: nt, rects: Wt, availableWidth: ve, availableHeight: Ae }) => {
1386
+ const { width: be, height: Re } = Wt.reference, ct = nt.floating.style;
1387
+ ct.setProperty("--radix-popper-available-width", `${ve}px`), ct.setProperty("--radix-popper-available-height", `${Ae}px`), ct.setProperty("--radix-popper-anchor-width", `${be}px`), ct.setProperty("--radix-popper-anchor-height", `${Re}px`);
1388
+ }
1389
+ }),
1390
+ y && En({ element: y, padding: c }),
1391
+ Nn({ arrowWidth: O, arrowHeight: T }),
1392
+ p && Sn({ strategy: "referenceHidden", ...S })
1393
+ ]
1394
+ }), [M, j] = pe(E), st = Se(m);
1395
+ _t(() => {
1396
+ D && (st == null || st());
1397
+ }, [D, st]);
1398
+ const he = (Mt = b.arrow) == null ? void 0 : Mt.x, ge = ($t = b.arrow) == null ? void 0 : $t.y, we = ((kt = b.arrow) == null ? void 0 : kt.centerOffset) !== 0, [xe, ye] = C.useState();
1399
+ return _t(() => {
1400
+ g && ye(window.getComputedStyle(g).zIndex);
1401
+ }, [g]), /* @__PURE__ */ X.jsx(
1402
+ "div",
1403
+ {
1404
+ ref: P.setFloating,
1405
+ "data-radix-popper-content-wrapper": "",
1406
+ style: {
1407
+ ...N,
1408
+ transform: D ? N.transform : "translate(0, -200%)",
1409
+ // keep off the page when measuring
1410
+ minWidth: "max-content",
1411
+ zIndex: xe,
1412
+ "--radix-popper-transform-origin": [
1413
+ (Ft = b.transformOrigin) == null ? void 0 : Ft.x,
1414
+ (Nt = b.transformOrigin) == null ? void 0 : Nt.y
1415
+ ].join(" "),
1416
+ // hide the content if using the hide middleware and should be hidden
1417
+ // set visibility to hidden and disable pointer events so the UI behaves
1418
+ // as if the PopperContent isn't there at all
1419
+ ...((Ht = b.hide) == null ? void 0 : Ht.referenceHidden) && {
1420
+ visibility: "hidden",
1421
+ pointerEvents: "none"
1422
+ }
1423
+ },
1424
+ dir: t.dir,
1425
+ children: /* @__PURE__ */ X.jsx(
1426
+ Mn,
1427
+ {
1428
+ scope: n,
1429
+ placedSide: M,
1430
+ onArrowChange: v,
1431
+ arrowX: he,
1432
+ arrowY: ge,
1433
+ shouldHideArrow: we,
1434
+ children: /* @__PURE__ */ X.jsx(
1435
+ bt.div,
1436
+ {
1437
+ "data-side": M,
1438
+ "data-align": j,
1439
+ ...h,
1440
+ ref: A,
1441
+ style: {
1442
+ ...h.style,
1443
+ // if the PopperContent hasn't been placed yet (not all measurements done)
1444
+ // we prevent animations so that users's animation don't kick in too early referring wrong sides
1445
+ animation: D ? void 0 : "none"
1446
+ }
1447
+ }
1448
+ )
1449
+ }
1450
+ )
1451
+ }
1452
+ );
1453
+ }
1454
+ );
1455
+ ue.displayName = Tt;
1456
+ var de = "PopperArrow", kn = {
1457
+ top: "bottom",
1458
+ right: "left",
1459
+ bottom: "top",
1460
+ left: "right"
1461
+ }, me = C.forwardRef(function(e, n) {
1462
+ const { __scopePopper: o, ...i } = e, r = $n(de, o), s = kn[r.placedSide];
1463
+ return (
1464
+ // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
1465
+ // doesn't report size as we'd expect on SVG elements.
1466
+ // it reports their bounding box which is effectively the largest path inside the SVG.
1467
+ /* @__PURE__ */ X.jsx(
1468
+ "span",
1469
+ {
1470
+ ref: r.onArrowChange,
1471
+ style: {
1472
+ position: "absolute",
1473
+ left: r.arrowX,
1474
+ top: r.arrowY,
1475
+ [s]: 0,
1476
+ transformOrigin: {
1477
+ top: "",
1478
+ right: "0 0",
1479
+ bottom: "center 0",
1480
+ left: "100% 0"
1481
+ }[r.placedSide],
1482
+ transform: {
1483
+ top: "translateY(100%)",
1484
+ right: "translateY(50%) rotate(90deg) translateX(-50%)",
1485
+ bottom: "rotate(180deg)",
1486
+ left: "translateY(50%) rotate(-90deg) translateX(50%)"
1487
+ }[r.placedSide],
1488
+ visibility: r.shouldHideArrow ? "hidden" : void 0
1489
+ },
1490
+ children: /* @__PURE__ */ X.jsx(
1491
+ Ln,
1492
+ {
1493
+ ...i,
1494
+ ref: n,
1495
+ style: {
1496
+ ...i.style,
1497
+ // ensures the element can be measured correctly (mostly for if SVG)
1498
+ display: "block"
1499
+ }
1500
+ }
1501
+ )
1502
+ }
1503
+ )
1504
+ );
1505
+ });
1506
+ me.displayName = de;
1507
+ function Fn(t) {
1508
+ return t !== null;
1509
+ }
1510
+ var Nn = (t) => ({
1511
+ name: "transformOrigin",
1512
+ options: t,
1513
+ fn(e) {
1514
+ var w, g, x;
1515
+ const { placement: n, rects: o, middlewareData: i } = e, s = ((w = i.arrow) == null ? void 0 : w.centerOffset) !== 0, c = s ? 0 : t.arrowWidth, l = s ? 0 : t.arrowHeight, [a, f] = pe(n), u = { start: "0%", center: "50%", end: "100%" }[f], p = (((g = i.arrow) == null ? void 0 : g.x) ?? 0) + c / 2, d = (((x = i.arrow) == null ? void 0 : x.y) ?? 0) + l / 2;
1516
+ let m = "", h = "";
1517
+ return a === "bottom" ? (m = s ? u : `${p}px`, h = `${-l}px`) : a === "top" ? (m = s ? u : `${p}px`, h = `${o.floating.height + l}px`) : a === "right" ? (m = `${-l}px`, h = s ? u : `${d}px`) : a === "left" && (m = `${o.floating.width + l}px`, h = s ? u : `${d}px`), { data: { x: m, y: h } };
1518
+ }
1519
+ });
1520
+ function pe(t) {
1521
+ const [e, n = "center"] = t.split("-");
1522
+ return [e, n];
1523
+ }
1524
+ var In = le, Yn = fe, Xn = ue, qn = me;
1525
+ export {
1526
+ Yn as A,
1527
+ Xn as C,
1528
+ In as R,
1529
+ qn as a,
1530
+ zn as c
1531
+ };