@pfct/purple 1.5.0-rc.5 → 1.5.0-rc.6

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 (303) hide show
  1. package/dist/assets/index.css +1 -1
  2. package/dist/chunks/clsx.C11secjj.js +1 -0
  3. package/dist/chunks/clsx.OuTLNxxd.js +16 -0
  4. package/dist/chunks/index.55uP5Llv.js +23 -0
  5. package/dist/chunks/index.BB3W3jfD.js +58 -0
  6. package/dist/chunks/index.BKH_IfIv.js +734 -0
  7. package/dist/chunks/{index.styled.Bc4yfmzB.js → index.BOGczv4f.js} +266 -328
  8. package/dist/chunks/index.BSjRagb_.js +5 -0
  9. package/dist/chunks/index.Bl_fYP4h.js +78 -0
  10. package/dist/chunks/index.C6gQFc3A.js +1 -0
  11. package/dist/chunks/index.CDFgfSC_.js +106 -0
  12. package/dist/chunks/index.COC-ih10.js +1 -0
  13. package/dist/chunks/index.CSxTWj2O.js +1 -0
  14. package/dist/chunks/index.C_vToOO_.js +1 -0
  15. package/dist/chunks/{index.LN3KW-I4.js → index.Cc-miKAT.js} +1 -1
  16. package/dist/chunks/index.Crigd7-N.js +354 -0
  17. package/dist/chunks/index.Cw8-3kaP.js +1 -0
  18. package/dist/chunks/index.Cwg-luV1.js +60 -0
  19. package/dist/chunks/index.D1sqxe4V.js +13 -0
  20. package/dist/chunks/index.D44slB7j.js +1 -0
  21. package/dist/chunks/index.DBTu0V6e.js +1658 -0
  22. package/dist/chunks/index.DC_I05Aq.js +1 -0
  23. package/dist/chunks/index.DMhXgOEz.js +1 -0
  24. package/dist/chunks/index.DoZ51x4G.js +41 -0
  25. package/dist/chunks/index.DuekHEmj.js +6 -0
  26. package/dist/chunks/index.IrMKAFqG.js +773 -0
  27. package/dist/chunks/index.ZuOrgs85.js +1 -0
  28. package/dist/chunks/index.dlWziLJm.js +1 -0
  29. package/dist/chunks/index.wFBaTsPC.js +537 -0
  30. package/dist/components/Accordion/index.cjs.js +1 -1
  31. package/dist/components/Accordion/index.es.js +493 -342
  32. package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
  33. package/dist/components/Badge/BaseBadge/index.es.js +1 -1
  34. package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
  35. package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
  36. package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
  37. package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +25 -27
  38. package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
  39. package/dist/components/BottomSheet/NavBottomSheet/index.es.js +1 -1
  40. package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
  41. package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +1 -1
  42. package/dist/components/BottomSheet/index.cjs.js +1 -1
  43. package/dist/components/BottomSheet/index.es.js +1 -1
  44. package/dist/components/Button/BaseButton/index.cjs.js +1 -1
  45. package/dist/components/Button/BaseButton/index.es.js +1 -1
  46. package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
  47. package/dist/components/Button/DoubleButton/index.es.js +1 -1
  48. package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
  49. package/dist/components/Button/FloatBaseButton/index.es.js +1 -1
  50. package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
  51. package/dist/components/Button/FloatDoubleButton/index.es.js +1 -1
  52. package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
  53. package/dist/components/Button/FloatSingleButton/index.es.js +1 -1
  54. package/dist/components/Button/SingleButton/index.cjs.js +1 -1
  55. package/dist/components/Button/SingleButton/index.es.js +1 -1
  56. package/dist/components/Button/index.cjs.js +1 -1
  57. package/dist/components/Button/index.es.js +1 -1
  58. package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
  59. package/dist/components/Chips/BasicChips/index.styled.es.js +1 -1
  60. package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
  61. package/dist/components/Chips/ChipItem/index.es.js +22 -24
  62. package/dist/components/Chips/ChipItem/index.styled.cjs.js +1 -1
  63. package/dist/components/Chips/ChipItem/index.styled.es.js +22 -24
  64. package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
  65. package/dist/components/Chips/ChipsFrame/index.es.js +13 -13
  66. package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
  67. package/dist/components/Chips/ChipsFrame/index.styled.es.js +1 -1
  68. package/dist/components/Control/CheckMark/index.cjs.js +1 -1
  69. package/dist/components/Control/CheckMark/index.es.js +19 -21
  70. package/dist/components/Control/RadioButton/index.cjs.js +1 -1
  71. package/dist/components/Control/RadioButton/index.es.js +1 -1
  72. package/dist/components/Control/RadioButton/index.styled.cjs.js +1 -1
  73. package/dist/components/Control/RadioButton/index.styled.es.js +19 -21
  74. package/dist/components/Control/Switch/index.cjs.js +1 -1
  75. package/dist/components/Control/Switch/index.es.js +19 -21
  76. package/dist/components/Control/index.cjs.js +1 -1
  77. package/dist/components/Control/index.d.ts +2 -1
  78. package/dist/components/Control/index.es.js +4 -4
  79. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
  80. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +20 -22
  81. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
  82. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +20 -22
  83. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
  84. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +1 -1
  85. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
  86. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +20 -22
  87. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
  88. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +20 -22
  89. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
  90. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +20 -22
  91. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.cjs.js +1 -1
  92. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.es.js +30 -32
  93. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
  94. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +1 -1
  95. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.cjs.js +1 -1
  96. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.es.js +1 -1
  97. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
  98. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +14 -14
  99. package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
  100. package/dist/components/DatePicker/BaseDatePicker/index.es.js +29 -31
  101. package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
  102. package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +1 -1
  103. package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
  104. package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +18 -20
  105. package/dist/components/Input/NumberInput/index.cjs.js +1 -1
  106. package/dist/components/Input/NumberInput/index.es.js +51 -53
  107. package/dist/components/Input/PostfixInput/index.util.cjs.js +1 -1
  108. package/dist/components/Input/PostfixInput/index.util.es.js +22 -24
  109. package/dist/components/Input/TextField/index.cjs.js +1 -1
  110. package/dist/components/Input/TextField/index.es.js +13 -13
  111. package/dist/components/Input/index.cjs.js +1 -1
  112. package/dist/components/Input/index.es.js +30 -32
  113. package/dist/components/List/index.cjs.js +1 -1
  114. package/dist/components/List/index.es.js +8 -8
  115. package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
  116. package/dist/components/Loading/ProgressBar/index.es.js +1 -1
  117. package/dist/components/Loading/ProgressBar/index.styled.cjs.js +1 -1
  118. package/dist/components/Loading/ProgressBar/index.styled.es.js +20 -22
  119. package/dist/components/Loading/Spinner/index.cjs.js +1 -1
  120. package/dist/components/Loading/Spinner/index.es.js +1 -1
  121. package/dist/components/Loading/index.cjs.js +1 -1
  122. package/dist/components/Loading/index.es.js +1 -1
  123. package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
  124. package/dist/components/MiniButton/BoxMiniButton/index.es.js +4 -4
  125. package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
  126. package/dist/components/MiniButton/IconMiniButton/index.es.js +3 -3
  127. package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
  128. package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +13 -13
  129. package/dist/components/MiniButton/common/index.styled.cjs.js +1 -1
  130. package/dist/components/MiniButton/common/index.styled.es.js +21 -23
  131. package/dist/components/Modal/BaseModal/index.cjs.js +1 -1
  132. package/dist/components/Modal/BaseModal/index.es.js +1 -1
  133. package/dist/components/Modal/index.cjs.js +1 -1
  134. package/dist/components/Modal/index.es.js +1 -1
  135. package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
  136. package/dist/components/Navigation/BaseNavigation/index.es.js +9 -9
  137. package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
  138. package/dist/components/Navigation/BottomNavigationBar/index.es.js +5 -5
  139. package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
  140. package/dist/components/Navigation/PageNavigationBar/index.es.js +13 -13
  141. package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
  142. package/dist/components/Navigation/TitleNavigationBar/index.es.js +10 -10
  143. package/dist/components/Navigation/index.cjs.js +1 -1
  144. package/dist/components/Navigation/index.es.js +13 -13
  145. package/dist/components/OverlayRoot/index.cjs.js +1 -1
  146. package/dist/components/OverlayRoot/index.es.js +19 -21
  147. package/dist/components/Segment/BaseSegment/index.styled.cjs.js +1 -1
  148. package/dist/components/Segment/BaseSegment/index.styled.es.js +1 -1
  149. package/dist/components/Segment/ExtendSegment/index.styled.cjs.js +1 -1
  150. package/dist/components/Segment/ExtendSegment/index.styled.es.js +1 -1
  151. package/dist/components/SelectBox/index.cjs.js +1 -1
  152. package/dist/components/SelectBox/index.es.js +14 -14
  153. package/dist/components/SelectBox/index.styled.cjs.js +1 -1
  154. package/dist/components/SelectBox/index.styled.es.js +26 -28
  155. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  156. package/dist/components/Tabs/FillTabs/index.es.js +21 -23
  157. package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
  158. package/dist/components/Tabs/TextTabs/index.es.js +25 -27
  159. package/dist/components/Tag/index.cjs.js +1 -1
  160. package/dist/components/Tag/index.es.js +1 -1
  161. package/dist/components/Tag/index.styled.cjs.js +1 -1
  162. package/dist/components/Tag/index.styled.es.js +19 -21
  163. package/dist/components/Terms/index.cjs.js +1 -1
  164. package/dist/components/Terms/index.es.js +16 -17
  165. package/dist/components/TextArea/index.cjs.js +1 -0
  166. package/dist/components/TextArea/index.d.ts +80 -0
  167. package/dist/components/TextArea/index.es.js +30 -0
  168. package/dist/components/Title/index.cjs.js +1 -1
  169. package/dist/components/Title/index.es.js +1 -1
  170. package/dist/components/Title/index.styled.cjs.js +1 -1
  171. package/dist/components/Title/index.styled.es.js +22 -24
  172. package/dist/components/Toast/index.cjs.js +1 -0
  173. package/dist/components/Toast/index.d.ts +5 -0
  174. package/dist/components/Toast/index.es.js +36 -0
  175. package/dist/components/index.cjs.js +1 -1
  176. package/dist/components/index.d.ts +4 -2
  177. package/dist/components/index.es.js +90 -79
  178. package/dist/components/ui/bottomSheet.cjs.js +13 -13
  179. package/dist/components/ui/bottomSheet.es.js +76 -71
  180. package/dist/components/ui/button.cjs.js +1 -1
  181. package/dist/components/ui/button.es.js +4 -4
  182. package/dist/components/ui/checkbox.cjs.js +1 -0
  183. package/dist/components/ui/checkbox.d.ts +9 -0
  184. package/dist/components/ui/checkbox.es.js +448 -0
  185. package/dist/components/ui/dialog.cjs.js +1 -1
  186. package/dist/components/ui/dialog.es.js +30 -30
  187. package/dist/components/ui/drawer.cjs.js +1 -1
  188. package/dist/components/ui/drawer.es.js +2 -2
  189. package/dist/components/ui/impact-tooltip.cjs.js +1 -0
  190. package/dist/components/ui/impact-tooltip.d.ts +16 -0
  191. package/dist/components/ui/impact-tooltip.es.js +461 -0
  192. package/dist/components/ui/share-ui.cjs.js +1 -1
  193. package/dist/components/ui/share-ui.es.js +2 -2
  194. package/dist/components/ui/tooltip.cjs.js +1 -0
  195. package/dist/components/ui/tooltip.d.ts +9 -0
  196. package/dist/components/ui/tooltip.es.js +387 -0
  197. package/dist/components/ui/typography.cjs.js +1 -1
  198. package/dist/components/ui/typography.es.js +3 -3
  199. package/dist/core/Colors/index.cjs.js +1 -1
  200. package/dist/core/Colors/index.d.ts +0 -4
  201. package/dist/core/Colors/index.es.js +4 -8
  202. package/dist/core/Display/Mobile.cjs.js +1 -1
  203. package/dist/core/Display/Mobile.es.js +1 -1
  204. package/dist/core/Display/Pc.cjs.js +1 -1
  205. package/dist/core/Display/Pc.es.js +1 -1
  206. package/dist/core/Display/index.styled.cjs.js +1 -1
  207. package/dist/core/Display/index.styled.es.js +20 -22
  208. package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
  209. package/dist/core/Typography/BaseTypography/index.es.js +2 -2
  210. package/dist/hooks/useLayoutIsMobile.cjs.js +1 -1
  211. package/dist/hooks/useLayoutIsMobile.es.js +20 -22
  212. package/dist/icons/src/aliases/aliases.cjs.js +1 -1
  213. package/dist/icons/src/aliases/aliases.d.ts +12 -12
  214. package/dist/icons/src/aliases/aliases.es.js +32 -32
  215. package/dist/icons/src/aliases/index.cjs.js +1 -1
  216. package/dist/icons/src/aliases/index.es.js +64 -64
  217. package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
  218. package/dist/icons/src/aliases/prefixed.d.ts +16 -16
  219. package/dist/icons/src/aliases/prefixed.es.js +48 -48
  220. package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
  221. package/dist/icons/src/aliases/suffixed.d.ts +17 -17
  222. package/dist/icons/src/aliases/suffixed.es.js +48 -48
  223. package/dist/icons/src/icons/index.cjs.js +1 -1
  224. package/dist/icons/src/icons/index.d.ts +10 -10
  225. package/dist/icons/src/icons/index.es.js +40 -40
  226. package/dist/index.cjs.js +1 -1
  227. package/dist/index.es.js +282 -271
  228. package/dist/lib/utils.cjs.js +1 -1
  229. package/dist/lib/utils.es.js +2729 -2
  230. package/dist/library/BasicLayout/Footer.cjs.js +1 -1
  231. package/dist/library/BasicLayout/Footer.d.ts +2 -2
  232. package/dist/library/BasicLayout/Footer.es.js +38 -37
  233. package/dist/library/BasicLayout/index.cjs.js +1 -1
  234. package/dist/library/BasicLayout/index.d.ts +1 -1
  235. package/dist/library/BasicLayout/index.es.js +23 -25
  236. package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
  237. package/dist/library/BasicLayout/index.styled.es.js +48 -50
  238. package/dist/utils/GenerateColorStyle/chip.cjs.js +1 -1
  239. package/dist/utils/GenerateColorStyle/chip.es.js +1 -1
  240. package/dist/utils/GenerateColorStyle/index.cjs.js +1 -1
  241. package/dist/utils/GenerateColorStyle/index.es.js +1 -1
  242. package/dist/utils/GenerateColorStyle/tab/fill-tabs.cjs.js +1 -1
  243. package/dist/utils/GenerateColorStyle/tab/fill-tabs.es.js +20 -22
  244. package/dist/utils/GenerateColorStyle/tab/text-tabs.cjs.js +1 -1
  245. package/dist/utils/GenerateColorStyle/tab/text-tabs.es.js +20 -22
  246. package/dist/utils/index.cjs.js +1 -1
  247. package/dist/utils/index.es.js +1 -1
  248. package/package.json +9 -4
  249. package/dist/chunks/index.B0KRXeX3.js +0 -205
  250. package/dist/chunks/index.BiFBNKMb.js +0 -51
  251. package/dist/chunks/index.C4mr2-78.js +0 -1
  252. package/dist/chunks/index.CAOufkQO.js +0 -1072
  253. package/dist/chunks/index.Dazlhpef.js +0 -45
  254. package/dist/chunks/index.DnJQUgiG.js +0 -1
  255. package/dist/chunks/index.SS1p-Ys5.js +0 -1
  256. package/dist/chunks/index.styled.cvcvIoeD.js +0 -412
  257. package/dist/chunks/utils.B9KdtH6G.js +0 -2493
  258. package/dist/chunks/utils.Gb5_Gcy7.js +0 -1
  259. package/dist/components/Control/CheckBox/CheckIcon.cjs.js +0 -1
  260. package/dist/components/Control/CheckBox/CheckIcon.d.ts +0 -6
  261. package/dist/components/Control/CheckBox/CheckIcon.es.js +0 -26
  262. package/dist/components/Control/CheckBox/index.cjs.js +0 -1
  263. package/dist/components/Control/CheckBox/index.d.ts +0 -12
  264. package/dist/components/Control/CheckBox/index.es.js +0 -96
  265. package/dist/components/Control/CheckBox/index.styled.cjs.js +0 -24
  266. package/dist/components/Control/CheckBox/index.styled.d.ts +0 -18
  267. package/dist/components/Control/CheckBox/index.styled.es.js +0 -30
  268. package/dist/components/Stepper/Step.cjs.js +0 -1
  269. package/dist/components/Stepper/Step.d.ts +0 -13
  270. package/dist/components/Stepper/Step.es.js +0 -46
  271. package/dist/components/Stepper/index.cjs.js +0 -1
  272. package/dist/components/Stepper/index.d.ts +0 -10
  273. package/dist/components/Stepper/index.es.js +0 -35
  274. package/dist/components/ToastMessage/BaseToastMessage/index.cjs.js +0 -1
  275. package/dist/components/ToastMessage/BaseToastMessage/index.d.ts +0 -13
  276. package/dist/components/ToastMessage/BaseToastMessage/index.es.js +0 -25
  277. package/dist/components/ToastMessage/BaseToastMessage/index.styled.cjs.js +0 -1
  278. package/dist/components/ToastMessage/BaseToastMessage/index.styled.d.ts +0 -10
  279. package/dist/components/ToastMessage/BaseToastMessage/index.styled.es.js +0 -80
  280. package/dist/components/ToastMessage/Toast/index.cjs.js +0 -1
  281. package/dist/components/ToastMessage/Toast/index.d.ts +0 -13
  282. package/dist/components/ToastMessage/Toast/index.es.js +0 -32
  283. package/dist/components/ToastMessage/Toast/index.styled.cjs.js +0 -13
  284. package/dist/components/ToastMessage/Toast/index.styled.d.ts +0 -8
  285. package/dist/components/ToastMessage/Toast/index.styled.es.js +0 -18
  286. package/dist/components/ToastMessage/index.cjs.js +0 -1
  287. package/dist/components/ToastMessage/index.d.ts +0 -1
  288. package/dist/components/ToastMessage/index.es.js +0 -4
  289. package/dist/components/Tooltip/BasicTooltip/index.cjs.js +0 -1
  290. package/dist/components/Tooltip/BasicTooltip/index.d.ts +0 -5
  291. package/dist/components/Tooltip/BasicTooltip/index.es.js +0 -6
  292. package/dist/components/Tooltip/ImpactTooltip/index.cjs.js +0 -1
  293. package/dist/components/Tooltip/ImpactTooltip/index.d.ts +0 -7
  294. package/dist/components/Tooltip/ImpactTooltip/index.es.js +0 -23
  295. package/dist/components/Tooltip/TooltipBase/index.cjs.js +0 -8
  296. package/dist/components/Tooltip/TooltipBase/index.d.ts +0 -18
  297. package/dist/components/Tooltip/TooltipBase/index.es.js +0 -146
  298. package/dist/components/Tooltip/TooltipBase/index.styled.cjs.js +0 -107
  299. package/dist/components/Tooltip/TooltipBase/index.styled.d.ts +0 -22
  300. package/dist/components/Tooltip/TooltipBase/index.styled.es.js +0 -2006
  301. package/dist/components/Tooltip/index.cjs.js +0 -1
  302. package/dist/components/Tooltip/index.d.ts +0 -6
  303. package/dist/components/Tooltip/index.es.js +0 -6
@@ -0,0 +1,773 @@
1
+ import * as ft from "react";
2
+ import a from "react";
3
+ import Wt from "react-dom";
4
+ var Xt = (n, o, e, s, E, l, b, T) => {
5
+ let f = document.documentElement, i = ["light", "dark"];
6
+ function y(p) {
7
+ (Array.isArray(n) ? n : [n]).forEach((v) => {
8
+ let U = v === "class", c = U && l ? E.map((D) => l[D] || D) : E;
9
+ U ? (f.classList.remove(...c), f.classList.add(l && l[p] ? l[p] : p)) : f.setAttribute(v, p);
10
+ }), t(p);
11
+ }
12
+ function t(p) {
13
+ T && i.includes(p) && (f.style.colorScheme = p);
14
+ }
15
+ function R() {
16
+ return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
17
+ }
18
+ if (s) y(s);
19
+ else try {
20
+ let p = localStorage.getItem(o) || e, v = b && p === "system" ? R() : p;
21
+ y(v);
22
+ } catch {
23
+ }
24
+ }, Kt = ft.createContext(void 0), qt = { setTheme: (n) => {
25
+ }, themes: [] }, ke = () => {
26
+ var n;
27
+ return (n = ft.useContext(Kt)) != null ? n : qt;
28
+ };
29
+ ft.memo(({ forcedTheme: n, storageKey: o, attribute: e, enableSystem: s, enableColorScheme: E, defaultTheme: l, value: b, themes: T, nonce: f, scriptProps: i }) => {
30
+ let y = JSON.stringify([e, o, l, n, T, b, s, E]).slice(1, -1);
31
+ return ft.createElement("script", { ...i, suppressHydrationWarning: !0, nonce: typeof window > "u" ? f : "", dangerouslySetInnerHTML: { __html: `(${Xt.toString()})(${y})` } });
32
+ });
33
+ function Gt(n) {
34
+ if (typeof document > "u") return;
35
+ let o = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
36
+ e.type = "text/css", o.appendChild(e), e.styleSheet ? e.styleSheet.cssText = n : e.appendChild(document.createTextNode(n));
37
+ }
38
+ const Jt = (n) => {
39
+ switch (n) {
40
+ case "success":
41
+ return te;
42
+ case "info":
43
+ return ae;
44
+ case "warning":
45
+ return ee;
46
+ case "error":
47
+ return oe;
48
+ default:
49
+ return null;
50
+ }
51
+ }, Qt = Array(12).fill(0), Zt = ({ visible: n, className: o }) => /* @__PURE__ */ a.createElement("div", {
52
+ className: [
53
+ "sonner-loading-wrapper",
54
+ o
55
+ ].filter(Boolean).join(" "),
56
+ "data-visible": n
57
+ }, /* @__PURE__ */ a.createElement("div", {
58
+ className: "sonner-spinner"
59
+ }, Qt.map((e, s) => /* @__PURE__ */ a.createElement("div", {
60
+ className: "sonner-loading-bar",
61
+ key: `spinner-bar-${s}`
62
+ })))), te = /* @__PURE__ */ a.createElement("svg", {
63
+ xmlns: "http://www.w3.org/2000/svg",
64
+ viewBox: "0 0 20 20",
65
+ fill: "currentColor",
66
+ height: "20",
67
+ width: "20"
68
+ }, /* @__PURE__ */ a.createElement("path", {
69
+ fillRule: "evenodd",
70
+ d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
71
+ clipRule: "evenodd"
72
+ })), ee = /* @__PURE__ */ a.createElement("svg", {
73
+ xmlns: "http://www.w3.org/2000/svg",
74
+ viewBox: "0 0 24 24",
75
+ fill: "currentColor",
76
+ height: "20",
77
+ width: "20"
78
+ }, /* @__PURE__ */ a.createElement("path", {
79
+ fillRule: "evenodd",
80
+ d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
81
+ clipRule: "evenodd"
82
+ })), ae = /* @__PURE__ */ a.createElement("svg", {
83
+ xmlns: "http://www.w3.org/2000/svg",
84
+ viewBox: "0 0 20 20",
85
+ fill: "currentColor",
86
+ height: "20",
87
+ width: "20"
88
+ }, /* @__PURE__ */ a.createElement("path", {
89
+ fillRule: "evenodd",
90
+ d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
91
+ clipRule: "evenodd"
92
+ })), oe = /* @__PURE__ */ a.createElement("svg", {
93
+ xmlns: "http://www.w3.org/2000/svg",
94
+ viewBox: "0 0 20 20",
95
+ fill: "currentColor",
96
+ height: "20",
97
+ width: "20"
98
+ }, /* @__PURE__ */ a.createElement("path", {
99
+ fillRule: "evenodd",
100
+ d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
101
+ clipRule: "evenodd"
102
+ })), se = /* @__PURE__ */ a.createElement("svg", {
103
+ xmlns: "http://www.w3.org/2000/svg",
104
+ width: "12",
105
+ height: "12",
106
+ viewBox: "0 0 24 24",
107
+ fill: "none",
108
+ stroke: "currentColor",
109
+ strokeWidth: "1.5",
110
+ strokeLinecap: "round",
111
+ strokeLinejoin: "round"
112
+ }, /* @__PURE__ */ a.createElement("line", {
113
+ x1: "18",
114
+ y1: "6",
115
+ x2: "6",
116
+ y2: "18"
117
+ }), /* @__PURE__ */ a.createElement("line", {
118
+ x1: "6",
119
+ y1: "6",
120
+ x2: "18",
121
+ y2: "18"
122
+ })), ne = () => {
123
+ const [n, o] = a.useState(document.hidden);
124
+ return a.useEffect(() => {
125
+ const e = () => {
126
+ o(document.hidden);
127
+ };
128
+ return document.addEventListener("visibilitychange", e), () => window.removeEventListener("visibilitychange", e);
129
+ }, []), n;
130
+ };
131
+ let wt = 1;
132
+ class re {
133
+ constructor() {
134
+ this.subscribe = (o) => (this.subscribers.push(o), () => {
135
+ const e = this.subscribers.indexOf(o);
136
+ this.subscribers.splice(e, 1);
137
+ }), this.publish = (o) => {
138
+ this.subscribers.forEach((e) => e(o));
139
+ }, this.addToast = (o) => {
140
+ this.publish(o), this.toasts = [
141
+ ...this.toasts,
142
+ o
143
+ ];
144
+ }, this.create = (o) => {
145
+ var e;
146
+ const { message: s, ...E } = o, l = typeof (o == null ? void 0 : o.id) == "number" || ((e = o.id) == null ? void 0 : e.length) > 0 ? o.id : wt++, b = this.toasts.find((f) => f.id === l), T = o.dismissible === void 0 ? !0 : o.dismissible;
147
+ return this.dismissedToasts.has(l) && this.dismissedToasts.delete(l), b ? this.toasts = this.toasts.map((f) => f.id === l ? (this.publish({
148
+ ...f,
149
+ ...o,
150
+ id: l,
151
+ title: s
152
+ }), {
153
+ ...f,
154
+ ...o,
155
+ id: l,
156
+ dismissible: T,
157
+ title: s
158
+ }) : f) : this.addToast({
159
+ title: s,
160
+ ...E,
161
+ dismissible: T,
162
+ id: l
163
+ }), l;
164
+ }, this.dismiss = (o) => (o ? (this.dismissedToasts.add(o), requestAnimationFrame(() => this.subscribers.forEach((e) => e({
165
+ id: o,
166
+ dismiss: !0
167
+ })))) : this.toasts.forEach((e) => {
168
+ this.subscribers.forEach((s) => s({
169
+ id: e.id,
170
+ dismiss: !0
171
+ }));
172
+ }), o), this.message = (o, e) => this.create({
173
+ ...e,
174
+ message: o
175
+ }), this.error = (o, e) => this.create({
176
+ ...e,
177
+ message: o,
178
+ type: "error"
179
+ }), this.success = (o, e) => this.create({
180
+ ...e,
181
+ type: "success",
182
+ message: o
183
+ }), this.info = (o, e) => this.create({
184
+ ...e,
185
+ type: "info",
186
+ message: o
187
+ }), this.warning = (o, e) => this.create({
188
+ ...e,
189
+ type: "warning",
190
+ message: o
191
+ }), this.loading = (o, e) => this.create({
192
+ ...e,
193
+ type: "loading",
194
+ message: o
195
+ }), this.promise = (o, e) => {
196
+ if (!e)
197
+ return;
198
+ let s;
199
+ e.loading !== void 0 && (s = this.create({
200
+ ...e,
201
+ promise: o,
202
+ type: "loading",
203
+ message: e.loading,
204
+ description: typeof e.description != "function" ? e.description : void 0
205
+ }));
206
+ const E = Promise.resolve(o instanceof Function ? o() : o);
207
+ let l = s !== void 0, b;
208
+ const T = E.then(async (i) => {
209
+ if (b = [
210
+ "resolve",
211
+ i
212
+ ], a.isValidElement(i))
213
+ l = !1, this.create({
214
+ id: s,
215
+ type: "default",
216
+ message: i
217
+ });
218
+ else if (le(i) && !i.ok) {
219
+ l = !1;
220
+ const t = typeof e.error == "function" ? await e.error(`HTTP error! status: ${i.status}`) : e.error, R = typeof e.description == "function" ? await e.description(`HTTP error! status: ${i.status}`) : e.description, v = typeof t == "object" && !a.isValidElement(t) ? t : {
221
+ message: t
222
+ };
223
+ this.create({
224
+ id: s,
225
+ type: "error",
226
+ description: R,
227
+ ...v
228
+ });
229
+ } else if (i instanceof Error) {
230
+ l = !1;
231
+ const t = typeof e.error == "function" ? await e.error(i) : e.error, R = typeof e.description == "function" ? await e.description(i) : e.description, v = typeof t == "object" && !a.isValidElement(t) ? t : {
232
+ message: t
233
+ };
234
+ this.create({
235
+ id: s,
236
+ type: "error",
237
+ description: R,
238
+ ...v
239
+ });
240
+ } else if (e.success !== void 0) {
241
+ l = !1;
242
+ const t = typeof e.success == "function" ? await e.success(i) : e.success, R = typeof e.description == "function" ? await e.description(i) : e.description, v = typeof t == "object" && !a.isValidElement(t) ? t : {
243
+ message: t
244
+ };
245
+ this.create({
246
+ id: s,
247
+ type: "success",
248
+ description: R,
249
+ ...v
250
+ });
251
+ }
252
+ }).catch(async (i) => {
253
+ if (b = [
254
+ "reject",
255
+ i
256
+ ], e.error !== void 0) {
257
+ l = !1;
258
+ const y = typeof e.error == "function" ? await e.error(i) : e.error, t = typeof e.description == "function" ? await e.description(i) : e.description, p = typeof y == "object" && !a.isValidElement(y) ? y : {
259
+ message: y
260
+ };
261
+ this.create({
262
+ id: s,
263
+ type: "error",
264
+ description: t,
265
+ ...p
266
+ });
267
+ }
268
+ }).finally(() => {
269
+ l && (this.dismiss(s), s = void 0), e.finally == null || e.finally.call(e);
270
+ }), f = () => new Promise((i, y) => T.then(() => b[0] === "reject" ? y(b[1]) : i(b[1])).catch(y));
271
+ return typeof s != "string" && typeof s != "number" ? {
272
+ unwrap: f
273
+ } : Object.assign(s, {
274
+ unwrap: f
275
+ });
276
+ }, this.custom = (o, e) => {
277
+ const s = (e == null ? void 0 : e.id) || wt++;
278
+ return this.create({
279
+ jsx: o(s),
280
+ id: s,
281
+ ...e
282
+ }), s;
283
+ }, this.getActiveToasts = () => this.toasts.filter((o) => !this.dismissedToasts.has(o.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set();
284
+ }
285
+ }
286
+ const k = new re(), ie = (n, o) => {
287
+ const e = (o == null ? void 0 : o.id) || wt++;
288
+ return k.addToast({
289
+ title: n,
290
+ ...o,
291
+ id: e
292
+ }), e;
293
+ }, le = (n) => n && typeof n == "object" && "ok" in n && typeof n.ok == "boolean" && "status" in n && typeof n.status == "number", de = ie, ce = () => k.toasts, ue = () => k.getActiveToasts(), Ne = Object.assign(de, {
294
+ success: k.success,
295
+ info: k.info,
296
+ warning: k.warning,
297
+ error: k.error,
298
+ custom: k.custom,
299
+ message: k.message,
300
+ promise: k.promise,
301
+ dismiss: k.dismiss,
302
+ loading: k.loading
303
+ }, {
304
+ getHistory: ce,
305
+ getToasts: ue
306
+ });
307
+ Gt("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
308
+ function ut(n) {
309
+ return n.label !== void 0;
310
+ }
311
+ const fe = 3, me = "24px", pe = "16px", Mt = 4e3, ge = 356, he = 14, be = 45, ve = 200;
312
+ function L(...n) {
313
+ return n.filter(Boolean).join(" ");
314
+ }
315
+ function ye(n) {
316
+ const [o, e] = n.split("-"), s = [];
317
+ return o && s.push(o), e && s.push(e), s;
318
+ }
319
+ const we = (n) => {
320
+ var o, e, s, E, l, b, T, f, i;
321
+ const { invert: y, toast: t, unstyled: R, interacting: p, setHeights: v, visibleToasts: U, heights: c, index: D, toasts: nt, expanded: Q, removeToast: rt, defaultRichColors: O, closeButton: W, style: mt, cancelButtonStyle: it, actionButtonStyle: pt, className: gt = "", descriptionClassName: P = "", duration: X, position: Z, gap: ht, expandByDefault: z, classNames: d, icons: I, closeButtonAriaLabel: j = "Close toast" } = n, [C, tt] = a.useState(null), [u, g] = a.useState(null), [m, B] = a.useState(!1), [F, h] = a.useState(!1), [et, K] = a.useState(!1), [at, ot] = a.useState(!1), [Ct, xt] = a.useState(!1), [At, bt] = a.useState(0), [Ht, Et] = a.useState(0), st = a.useRef(t.duration || X || Mt), Tt = a.useRef(null), Y = a.useRef(null), Ot = D === 0, zt = D + 1 <= U, N = t.type, q = t.dismissible !== !1, Lt = t.className || "", Pt = t.descriptionClassName || "", lt = a.useMemo(() => c.findIndex((r) => r.toastId === t.id) || 0, [
322
+ c,
323
+ t.id
324
+ ]), jt = a.useMemo(() => {
325
+ var r;
326
+ return (r = t.closeButton) != null ? r : W;
327
+ }, [
328
+ t.closeButton,
329
+ W
330
+ ]), St = a.useMemo(() => t.duration || X || Mt, [
331
+ t.duration,
332
+ X
333
+ ]), vt = a.useRef(0), G = a.useRef(0), kt = a.useRef(0), J = a.useRef(null), [Yt, $t] = Z.split("-"), Nt = a.useMemo(() => c.reduce((r, w, S) => S >= lt ? r : r + w.height, 0), [
334
+ c,
335
+ lt
336
+ ]), _t = ne(), Ft = t.invert || y, yt = N === "loading";
337
+ G.current = a.useMemo(() => lt * ht + Nt, [
338
+ lt,
339
+ Nt
340
+ ]), a.useEffect(() => {
341
+ st.current = St;
342
+ }, [
343
+ St
344
+ ]), a.useEffect(() => {
345
+ B(!0);
346
+ }, []), a.useEffect(() => {
347
+ const r = Y.current;
348
+ if (r) {
349
+ const w = r.getBoundingClientRect().height;
350
+ return Et(w), v((S) => [
351
+ {
352
+ toastId: t.id,
353
+ height: w,
354
+ position: t.position
355
+ },
356
+ ...S
357
+ ]), () => v((S) => S.filter((_) => _.toastId !== t.id));
358
+ }
359
+ }, [
360
+ v,
361
+ t.id
362
+ ]), a.useLayoutEffect(() => {
363
+ if (!m) return;
364
+ const r = Y.current, w = r.style.height;
365
+ r.style.height = "auto";
366
+ const S = r.getBoundingClientRect().height;
367
+ r.style.height = w, Et(S), v((_) => _.find((x) => x.toastId === t.id) ? _.map((x) => x.toastId === t.id ? {
368
+ ...x,
369
+ height: S
370
+ } : x) : [
371
+ {
372
+ toastId: t.id,
373
+ height: S,
374
+ position: t.position
375
+ },
376
+ ..._
377
+ ]);
378
+ }, [
379
+ m,
380
+ t.title,
381
+ t.description,
382
+ v,
383
+ t.id,
384
+ t.jsx,
385
+ t.action,
386
+ t.cancel
387
+ ]);
388
+ const $ = a.useCallback(() => {
389
+ h(!0), bt(G.current), v((r) => r.filter((w) => w.toastId !== t.id)), setTimeout(() => {
390
+ rt(t);
391
+ }, ve);
392
+ }, [
393
+ t,
394
+ rt,
395
+ v,
396
+ G
397
+ ]);
398
+ a.useEffect(() => {
399
+ if (t.promise && N === "loading" || t.duration === 1 / 0 || t.type === "loading") return;
400
+ let r;
401
+ return Q || p || _t ? (() => {
402
+ if (kt.current < vt.current) {
403
+ const _ = (/* @__PURE__ */ new Date()).getTime() - vt.current;
404
+ st.current = st.current - _;
405
+ }
406
+ kt.current = (/* @__PURE__ */ new Date()).getTime();
407
+ })() : (() => {
408
+ st.current !== 1 / 0 && (vt.current = (/* @__PURE__ */ new Date()).getTime(), r = setTimeout(() => {
409
+ t.onAutoClose == null || t.onAutoClose.call(t, t), $();
410
+ }, st.current));
411
+ })(), () => clearTimeout(r);
412
+ }, [
413
+ Q,
414
+ p,
415
+ t,
416
+ N,
417
+ _t,
418
+ $
419
+ ]), a.useEffect(() => {
420
+ t.delete && ($(), t.onDismiss == null || t.onDismiss.call(t, t));
421
+ }, [
422
+ $,
423
+ t.delete
424
+ ]);
425
+ function Vt() {
426
+ var r;
427
+ if (I != null && I.loading) {
428
+ var w;
429
+ return /* @__PURE__ */ a.createElement("div", {
430
+ className: L(d == null ? void 0 : d.loader, t == null || (w = t.classNames) == null ? void 0 : w.loader, "sonner-loader"),
431
+ "data-visible": N === "loading"
432
+ }, I.loading);
433
+ }
434
+ return /* @__PURE__ */ a.createElement(Zt, {
435
+ className: L(d == null ? void 0 : d.loader, t == null || (r = t.classNames) == null ? void 0 : r.loader),
436
+ visible: N === "loading"
437
+ });
438
+ }
439
+ const Ut = t.icon || (I == null ? void 0 : I[N]) || Jt(N);
440
+ var Rt, Dt;
441
+ return /* @__PURE__ */ a.createElement("li", {
442
+ tabIndex: 0,
443
+ ref: Y,
444
+ className: L(gt, Lt, d == null ? void 0 : d.toast, t == null || (o = t.classNames) == null ? void 0 : o.toast, d == null ? void 0 : d.default, d == null ? void 0 : d[N], t == null || (e = t.classNames) == null ? void 0 : e[N]),
445
+ "data-sonner-toast": "",
446
+ "data-rich-colors": (Rt = t.richColors) != null ? Rt : O,
447
+ "data-styled": !(t.jsx || t.unstyled || R),
448
+ "data-mounted": m,
449
+ "data-promise": !!t.promise,
450
+ "data-swiped": Ct,
451
+ "data-removed": F,
452
+ "data-visible": zt,
453
+ "data-y-position": Yt,
454
+ "data-x-position": $t,
455
+ "data-index": D,
456
+ "data-front": Ot,
457
+ "data-swiping": et,
458
+ "data-dismissible": q,
459
+ "data-type": N,
460
+ "data-invert": Ft,
461
+ "data-swipe-out": at,
462
+ "data-swipe-direction": u,
463
+ "data-expanded": !!(Q || z && m),
464
+ style: {
465
+ "--index": D,
466
+ "--toasts-before": D,
467
+ "--z-index": nt.length - D,
468
+ "--offset": `${F ? At : G.current}px`,
469
+ "--initial-height": z ? "auto" : `${Ht}px`,
470
+ ...mt,
471
+ ...t.style
472
+ },
473
+ onDragEnd: () => {
474
+ K(!1), tt(null), J.current = null;
475
+ },
476
+ onPointerDown: (r) => {
477
+ yt || !q || (Tt.current = /* @__PURE__ */ new Date(), bt(G.current), r.target.setPointerCapture(r.pointerId), r.target.tagName !== "BUTTON" && (K(!0), J.current = {
478
+ x: r.clientX,
479
+ y: r.clientY
480
+ }));
481
+ },
482
+ onPointerUp: () => {
483
+ var r, w, S;
484
+ if (at || !q) return;
485
+ J.current = null;
486
+ const _ = Number(((r = Y.current) == null ? void 0 : r.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), dt = Number(((w = Y.current) == null ? void 0 : w.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), x = (/* @__PURE__ */ new Date()).getTime() - ((S = Tt.current) == null ? void 0 : S.getTime()), M = C === "x" ? _ : dt, ct = Math.abs(M) / x;
487
+ if (Math.abs(M) >= be || ct > 0.11) {
488
+ bt(G.current), t.onDismiss == null || t.onDismiss.call(t, t), g(C === "x" ? _ > 0 ? "right" : "left" : dt > 0 ? "down" : "up"), $(), ot(!0);
489
+ return;
490
+ } else {
491
+ var A, H;
492
+ (A = Y.current) == null || A.style.setProperty("--swipe-amount-x", "0px"), (H = Y.current) == null || H.style.setProperty("--swipe-amount-y", "0px");
493
+ }
494
+ xt(!1), K(!1), tt(null);
495
+ },
496
+ onPointerMove: (r) => {
497
+ var w, S, _;
498
+ if (!J.current || !q || ((w = window.getSelection()) == null ? void 0 : w.toString().length) > 0) return;
499
+ const x = r.clientY - J.current.y, M = r.clientX - J.current.x;
500
+ var ct;
501
+ const A = (ct = n.swipeDirections) != null ? ct : ye(Z);
502
+ !C && (Math.abs(M) > 1 || Math.abs(x) > 1) && tt(Math.abs(M) > Math.abs(x) ? "x" : "y");
503
+ let H = {
504
+ x: 0,
505
+ y: 0
506
+ };
507
+ const Bt = (V) => 1 / (1.5 + Math.abs(V) / 20);
508
+ if (C === "y") {
509
+ if (A.includes("top") || A.includes("bottom"))
510
+ if (A.includes("top") && x < 0 || A.includes("bottom") && x > 0)
511
+ H.y = x;
512
+ else {
513
+ const V = x * Bt(x);
514
+ H.y = Math.abs(V) < Math.abs(x) ? V : x;
515
+ }
516
+ } else if (C === "x" && (A.includes("left") || A.includes("right")))
517
+ if (A.includes("left") && M < 0 || A.includes("right") && M > 0)
518
+ H.x = M;
519
+ else {
520
+ const V = M * Bt(M);
521
+ H.x = Math.abs(V) < Math.abs(M) ? V : M;
522
+ }
523
+ (Math.abs(H.x) > 0 || Math.abs(H.y) > 0) && xt(!0), (S = Y.current) == null || S.style.setProperty("--swipe-amount-x", `${H.x}px`), (_ = Y.current) == null || _.style.setProperty("--swipe-amount-y", `${H.y}px`);
524
+ }
525
+ }, jt && !t.jsx && N !== "loading" ? /* @__PURE__ */ a.createElement("button", {
526
+ "aria-label": j,
527
+ "data-disabled": yt,
528
+ "data-close-button": !0,
529
+ onClick: yt || !q ? () => {
530
+ } : () => {
531
+ $(), t.onDismiss == null || t.onDismiss.call(t, t);
532
+ },
533
+ className: L(d == null ? void 0 : d.closeButton, t == null || (s = t.classNames) == null ? void 0 : s.closeButton)
534
+ }, (Dt = I == null ? void 0 : I.close) != null ? Dt : se) : null, (N || t.icon || t.promise) && t.icon !== null && ((I == null ? void 0 : I[N]) !== null || t.icon) ? /* @__PURE__ */ a.createElement("div", {
535
+ "data-icon": "",
536
+ className: L(d == null ? void 0 : d.icon, t == null || (E = t.classNames) == null ? void 0 : E.icon)
537
+ }, t.promise || t.type === "loading" && !t.icon ? t.icon || Vt() : null, t.type !== "loading" ? Ut : null) : null, /* @__PURE__ */ a.createElement("div", {
538
+ "data-content": "",
539
+ className: L(d == null ? void 0 : d.content, t == null || (l = t.classNames) == null ? void 0 : l.content)
540
+ }, /* @__PURE__ */ a.createElement("div", {
541
+ "data-title": "",
542
+ className: L(d == null ? void 0 : d.title, t == null || (b = t.classNames) == null ? void 0 : b.title)
543
+ }, t.jsx ? t.jsx : typeof t.title == "function" ? t.title() : t.title), t.description ? /* @__PURE__ */ a.createElement("div", {
544
+ "data-description": "",
545
+ className: L(P, Pt, d == null ? void 0 : d.description, t == null || (T = t.classNames) == null ? void 0 : T.description)
546
+ }, typeof t.description == "function" ? t.description() : t.description) : null), /* @__PURE__ */ a.isValidElement(t.cancel) ? t.cancel : t.cancel && ut(t.cancel) ? /* @__PURE__ */ a.createElement("button", {
547
+ "data-button": !0,
548
+ "data-cancel": !0,
549
+ style: t.cancelButtonStyle || it,
550
+ onClick: (r) => {
551
+ ut(t.cancel) && q && (t.cancel.onClick == null || t.cancel.onClick.call(t.cancel, r), $());
552
+ },
553
+ className: L(d == null ? void 0 : d.cancelButton, t == null || (f = t.classNames) == null ? void 0 : f.cancelButton)
554
+ }, t.cancel.label) : null, /* @__PURE__ */ a.isValidElement(t.action) ? t.action : t.action && ut(t.action) ? /* @__PURE__ */ a.createElement("button", {
555
+ "data-button": !0,
556
+ "data-action": !0,
557
+ style: t.actionButtonStyle || pt,
558
+ onClick: (r) => {
559
+ ut(t.action) && (t.action.onClick == null || t.action.onClick.call(t.action, r), !r.defaultPrevented && $());
560
+ },
561
+ className: L(d == null ? void 0 : d.actionButton, t == null || (i = t.classNames) == null ? void 0 : i.actionButton)
562
+ }, t.action.label) : null);
563
+ };
564
+ function It() {
565
+ if (typeof window > "u" || typeof document > "u") return "ltr";
566
+ const n = document.documentElement.getAttribute("dir");
567
+ return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
568
+ }
569
+ function xe(n, o) {
570
+ const e = {};
571
+ return [
572
+ n,
573
+ o
574
+ ].forEach((s, E) => {
575
+ const l = E === 1, b = l ? "--mobile-offset" : "--offset", T = l ? pe : me;
576
+ function f(i) {
577
+ [
578
+ "top",
579
+ "right",
580
+ "bottom",
581
+ "left"
582
+ ].forEach((y) => {
583
+ e[`${b}-${y}`] = typeof i == "number" ? `${i}px` : i;
584
+ });
585
+ }
586
+ typeof s == "number" || typeof s == "string" ? f(s) : typeof s == "object" ? [
587
+ "top",
588
+ "right",
589
+ "bottom",
590
+ "left"
591
+ ].forEach((i) => {
592
+ s[i] === void 0 ? e[`${b}-${i}`] = T : e[`${b}-${i}`] = typeof s[i] == "number" ? `${s[i]}px` : s[i];
593
+ }) : f(T);
594
+ }), e;
595
+ }
596
+ const _e = /* @__PURE__ */ a.forwardRef(function(o, e) {
597
+ const { invert: s, position: E = "bottom-right", hotkey: l = [
598
+ "altKey",
599
+ "KeyT"
600
+ ], expand: b, closeButton: T, className: f, offset: i, mobileOffset: y, theme: t = "light", richColors: R, duration: p, style: v, visibleToasts: U = fe, toastOptions: c, dir: D = It(), gap: nt = he, icons: Q, containerAriaLabel: rt = "Notifications" } = o, [O, W] = a.useState([]), mt = a.useMemo(() => Array.from(new Set([
601
+ E
602
+ ].concat(O.filter((u) => u.position).map((u) => u.position)))), [
603
+ O,
604
+ E
605
+ ]), [it, pt] = a.useState([]), [gt, P] = a.useState(!1), [X, Z] = a.useState(!1), [ht, z] = a.useState(t !== "system" ? t : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), d = a.useRef(null), I = l.join("+").replace(/Key/g, "").replace(/Digit/g, ""), j = a.useRef(null), C = a.useRef(!1), tt = a.useCallback((u) => {
606
+ W((g) => {
607
+ var m;
608
+ return (m = g.find((B) => B.id === u.id)) != null && m.delete || k.dismiss(u.id), g.filter(({ id: B }) => B !== u.id);
609
+ });
610
+ }, []);
611
+ return a.useEffect(() => k.subscribe((u) => {
612
+ if (u.dismiss) {
613
+ requestAnimationFrame(() => {
614
+ W((g) => g.map((m) => m.id === u.id ? {
615
+ ...m,
616
+ delete: !0
617
+ } : m));
618
+ });
619
+ return;
620
+ }
621
+ setTimeout(() => {
622
+ Wt.flushSync(() => {
623
+ W((g) => {
624
+ const m = g.findIndex((B) => B.id === u.id);
625
+ return m !== -1 ? [
626
+ ...g.slice(0, m),
627
+ {
628
+ ...g[m],
629
+ ...u
630
+ },
631
+ ...g.slice(m + 1)
632
+ ] : [
633
+ u,
634
+ ...g
635
+ ];
636
+ });
637
+ });
638
+ });
639
+ }), [
640
+ O
641
+ ]), a.useEffect(() => {
642
+ if (t !== "system") {
643
+ z(t);
644
+ return;
645
+ }
646
+ if (t === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? z("dark") : z("light")), typeof window > "u") return;
647
+ const u = window.matchMedia("(prefers-color-scheme: dark)");
648
+ try {
649
+ u.addEventListener("change", ({ matches: g }) => {
650
+ z(g ? "dark" : "light");
651
+ });
652
+ } catch {
653
+ u.addListener(({ matches: m }) => {
654
+ try {
655
+ z(m ? "dark" : "light");
656
+ } catch (B) {
657
+ console.error(B);
658
+ }
659
+ });
660
+ }
661
+ }, [
662
+ t
663
+ ]), a.useEffect(() => {
664
+ O.length <= 1 && P(!1);
665
+ }, [
666
+ O
667
+ ]), a.useEffect(() => {
668
+ const u = (g) => {
669
+ var m;
670
+ if (l.every((h) => g[h] || g.code === h)) {
671
+ var F;
672
+ P(!0), (F = d.current) == null || F.focus();
673
+ }
674
+ g.code === "Escape" && (document.activeElement === d.current || (m = d.current) != null && m.contains(document.activeElement)) && P(!1);
675
+ };
676
+ return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
677
+ }, [
678
+ l
679
+ ]), a.useEffect(() => {
680
+ if (d.current)
681
+ return () => {
682
+ j.current && (j.current.focus({
683
+ preventScroll: !0
684
+ }), j.current = null, C.current = !1);
685
+ };
686
+ }, [
687
+ d.current
688
+ ]), // Remove item from normal navigation flow, only available via hotkey
689
+ /* @__PURE__ */ a.createElement("section", {
690
+ ref: e,
691
+ "aria-label": `${rt} ${I}`,
692
+ tabIndex: -1,
693
+ "aria-live": "polite",
694
+ "aria-relevant": "additions text",
695
+ "aria-atomic": "false",
696
+ suppressHydrationWarning: !0
697
+ }, mt.map((u, g) => {
698
+ var m;
699
+ const [B, F] = u.split("-");
700
+ return O.length ? /* @__PURE__ */ a.createElement("ol", {
701
+ key: u,
702
+ dir: D === "auto" ? It() : D,
703
+ tabIndex: -1,
704
+ ref: d,
705
+ className: f,
706
+ "data-sonner-toaster": !0,
707
+ "data-sonner-theme": ht,
708
+ "data-y-position": B,
709
+ "data-x-position": F,
710
+ style: {
711
+ "--front-toast-height": `${((m = it[0]) == null ? void 0 : m.height) || 0}px`,
712
+ "--width": `${ge}px`,
713
+ "--gap": `${nt}px`,
714
+ ...v,
715
+ ...xe(i, y)
716
+ },
717
+ onBlur: (h) => {
718
+ C.current && !h.currentTarget.contains(h.relatedTarget) && (C.current = !1, j.current && (j.current.focus({
719
+ preventScroll: !0
720
+ }), j.current = null));
721
+ },
722
+ onFocus: (h) => {
723
+ h.target instanceof HTMLElement && h.target.dataset.dismissible === "false" || C.current || (C.current = !0, j.current = h.relatedTarget);
724
+ },
725
+ onMouseEnter: () => P(!0),
726
+ onMouseMove: () => P(!0),
727
+ onMouseLeave: () => {
728
+ X || P(!1);
729
+ },
730
+ onDragEnd: () => P(!1),
731
+ onPointerDown: (h) => {
732
+ h.target instanceof HTMLElement && h.target.dataset.dismissible === "false" || Z(!0);
733
+ },
734
+ onPointerUp: () => Z(!1)
735
+ }, O.filter((h) => !h.position && g === 0 || h.position === u).map((h, et) => {
736
+ var K, at;
737
+ return /* @__PURE__ */ a.createElement(we, {
738
+ key: h.id,
739
+ icons: Q,
740
+ index: et,
741
+ toast: h,
742
+ defaultRichColors: R,
743
+ duration: (K = c == null ? void 0 : c.duration) != null ? K : p,
744
+ className: c == null ? void 0 : c.className,
745
+ descriptionClassName: c == null ? void 0 : c.descriptionClassName,
746
+ invert: s,
747
+ visibleToasts: U,
748
+ closeButton: (at = c == null ? void 0 : c.closeButton) != null ? at : T,
749
+ interacting: X,
750
+ position: u,
751
+ style: c == null ? void 0 : c.style,
752
+ unstyled: c == null ? void 0 : c.unstyled,
753
+ classNames: c == null ? void 0 : c.classNames,
754
+ cancelButtonStyle: c == null ? void 0 : c.cancelButtonStyle,
755
+ actionButtonStyle: c == null ? void 0 : c.actionButtonStyle,
756
+ closeButtonAriaLabel: c == null ? void 0 : c.closeButtonAriaLabel,
757
+ removeToast: tt,
758
+ toasts: O.filter((ot) => ot.position == h.position),
759
+ heights: it.filter((ot) => ot.position == h.position),
760
+ setHeights: pt,
761
+ expandByDefault: b,
762
+ gap: nt,
763
+ expanded: gt,
764
+ swipeDirections: o.swipeDirections
765
+ });
766
+ })) : null;
767
+ }));
768
+ });
769
+ export {
770
+ _e as T,
771
+ Ne as t,
772
+ ke as z
773
+ };