@televet/kibble-ui 4.0.0-beta.67 → 4.0.0-beta.68

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 (405) hide show
  1. package/dist/chunks/alert.types-B3CIqC3D.js +2 -0
  2. package/dist/chunks/{alert.types-BsvcbTZD.js.map → alert.types-B3CIqC3D.js.map} +1 -1
  3. package/dist/chunks/{alert.types-B7BlPX2-.js → alert.types-D-Nx7EKC.js} +11 -10
  4. package/dist/chunks/{alert.types-B7BlPX2-.js.map → alert.types-D-Nx7EKC.js.map} +1 -1
  5. package/dist/chunks/attr-BMs6szZx.js +2 -0
  6. package/dist/chunks/attr-BMs6szZx.js.map +1 -0
  7. package/dist/chunks/attr-sm10PXOd.js +5 -0
  8. package/dist/chunks/attr-sm10PXOd.js.map +1 -0
  9. package/dist/chunks/{avatar.component-CB5m8zha.js → avatar.component-5acA2X5n.js} +28 -28
  10. package/dist/chunks/{avatar.component-CB5m8zha.js.map → avatar.component-5acA2X5n.js.map} +1 -1
  11. package/dist/chunks/{avatar.component-RKtP3MZt.js → avatar.component-BBewTMu9.js} +2 -2
  12. package/dist/chunks/{avatar.component-RKtP3MZt.js.map → avatar.component-BBewTMu9.js.map} +1 -1
  13. package/dist/chunks/{avatarGroup.component-CjBeAxHZ.js → avatarGroup.component-Cyoh97E9.js} +2 -2
  14. package/dist/chunks/{avatarGroup.component-CjBeAxHZ.js.map → avatarGroup.component-Cyoh97E9.js.map} +1 -1
  15. package/dist/chunks/{avatarGroup.component-CKFjjo2R.js → avatarGroup.component-lvFlOaqP.js} +2 -2
  16. package/dist/chunks/{avatarGroup.component-CKFjjo2R.js.map → avatarGroup.component-lvFlOaqP.js.map} +1 -1
  17. package/dist/chunks/{button.component-DahLrK9h.js → button.component-BpF3MzbZ.js} +3 -3
  18. package/dist/chunks/{button.component-DahLrK9h.js.map → button.component-BpF3MzbZ.js.map} +1 -1
  19. package/dist/chunks/{button.component-BQA_MGYQ.js → button.component-Dd9AfGox.js} +2 -2
  20. package/dist/chunks/{button.component-BQA_MGYQ.js.map → button.component-Dd9AfGox.js.map} +1 -1
  21. package/dist/chunks/{buttonGroup.component-BI44nuxH.js → buttonGroup.component-B21h-pcF.js} +2 -2
  22. package/dist/chunks/{buttonGroup.component-BI44nuxH.js.map → buttonGroup.component-B21h-pcF.js.map} +1 -1
  23. package/dist/chunks/{buttonGroup.component-UKmJh2zn.js → buttonGroup.component-CwN1OcaS.js} +5 -5
  24. package/dist/chunks/{buttonGroup.component-UKmJh2zn.js.map → buttonGroup.component-CwN1OcaS.js.map} +1 -1
  25. package/dist/chunks/{characterCounter.component-xgc8P1mp.js → characterCounter.component-B0MF_ObL.js} +3 -3
  26. package/dist/chunks/{characterCounter.component-xgc8P1mp.js.map → characterCounter.component-B0MF_ObL.js.map} +1 -1
  27. package/dist/chunks/characterCounter.component-MBtgMpUc.js +2 -0
  28. package/dist/chunks/{characterCounter.component-B8efVNy4.js.map → characterCounter.component-MBtgMpUc.js.map} +1 -1
  29. package/dist/chunks/checkbox.component-CWN9kU5p.js +2 -0
  30. package/dist/chunks/{checkbox.component-DO9NDbmM.js.map → checkbox.component-CWN9kU5p.js.map} +1 -1
  31. package/dist/chunks/{checkbox.component-5GtlYTnJ.js → checkbox.component-HWkdi-Dt.js} +16 -16
  32. package/dist/chunks/{checkbox.component-5GtlYTnJ.js.map → checkbox.component-HWkdi-Dt.js.map} +1 -1
  33. package/dist/chunks/checkbox.records-djqGyo0P.js +2 -0
  34. package/dist/chunks/{checkbox.records-D7NUtCRR.js.map → checkbox.records-djqGyo0P.js.map} +1 -1
  35. package/dist/chunks/{checkbox.records-69wNHjsY.js → checkbox.records-kuynkQ3J.js} +8 -8
  36. package/dist/chunks/{checkbox.records-69wNHjsY.js.map → checkbox.records-kuynkQ3J.js.map} +1 -1
  37. package/dist/chunks/{checkboxGroup.component-Dq3jCGDU.js → checkboxGroup.component-CMyApVxs.js} +3 -3
  38. package/dist/chunks/{checkboxGroup.component-Dq3jCGDU.js.map → checkboxGroup.component-CMyApVxs.js.map} +1 -1
  39. package/dist/chunks/{checkboxGroup.component-C1sPgVro.js → checkboxGroup.component-DYiLp3m_.js} +2 -2
  40. package/dist/chunks/{checkboxGroup.component-C1sPgVro.js.map → checkboxGroup.component-DYiLp3m_.js.map} +1 -1
  41. package/dist/chunks/{config-DlTdf-Yt.js → config-DVtggL6z.js} +4 -4
  42. package/dist/chunks/{config-DlTdf-Yt.js.map → config-DVtggL6z.js.map} +1 -1
  43. package/dist/chunks/{conversationCard.component-LpR5eSru.js → conversationCard.component-BirDNlVs.js} +22 -20
  44. package/dist/chunks/{conversationCard.component-LpR5eSru.js.map → conversationCard.component-BirDNlVs.js.map} +1 -1
  45. package/dist/chunks/conversationCard.component-CMI6oti9.js +2 -0
  46. package/dist/chunks/{conversationCard.component-qWYvoxVn.js.map → conversationCard.component-CMI6oti9.js.map} +1 -1
  47. package/dist/chunks/datePicker.component-DSGJKErd.js +15 -0
  48. package/dist/chunks/{datePicker.component-CLR0tErm.js.map → datePicker.component-DSGJKErd.js.map} +1 -1
  49. package/dist/chunks/{datePicker.component-DVR8Ech4.js → datePicker.component-Wac_ZnvV.js} +87 -85
  50. package/dist/chunks/{datePicker.component-DVR8Ech4.js.map → datePicker.component-Wac_ZnvV.js.map} +1 -1
  51. package/dist/chunks/{dialog-trigger-JNnMRY13.js → dialog-trigger-6j0ZA8bc.js} +2 -2
  52. package/dist/chunks/{dialog-trigger-JNnMRY13.js.map → dialog-trigger-6j0ZA8bc.js.map} +1 -1
  53. package/dist/chunks/{dialog-trigger-C6rpz6Do.js → dialog-trigger-rbYorcnG.js} +9 -9
  54. package/dist/chunks/{dialog-trigger-C6rpz6Do.js.map → dialog-trigger-rbYorcnG.js.map} +1 -1
  55. package/dist/chunks/group-Cv7AQw1b.js +2 -0
  56. package/dist/chunks/{group-Dv1hO5IW.js.map → group-Cv7AQw1b.js.map} +1 -1
  57. package/dist/chunks/{group-DKypflCt.js → group-DPCVolOl.js} +2 -2
  58. package/dist/chunks/{group-DKypflCt.js.map → group-DPCVolOl.js.map} +1 -1
  59. package/dist/chunks/heading.component-Cum2BALi.js +12 -0
  60. package/dist/chunks/heading.component-Cum2BALi.js.map +1 -0
  61. package/dist/chunks/heading.component-a6IrCj7l.js +2 -0
  62. package/dist/chunks/heading.component-a6IrCj7l.js.map +1 -0
  63. package/dist/chunks/icon-button-DTZOklQ9.js +119 -0
  64. package/dist/chunks/icon-button-DTZOklQ9.js.map +1 -0
  65. package/dist/chunks/icon-button-DtjZ-SdQ.js +2 -0
  66. package/dist/chunks/icon-button-DtjZ-SdQ.js.map +1 -0
  67. package/dist/chunks/icon.component-C0e0UGBw.js +2 -0
  68. package/dist/chunks/icon.component-C0e0UGBw.js.map +1 -0
  69. package/dist/chunks/icon.component-DGNCL1Yc.js +42 -0
  70. package/dist/chunks/icon.component-DGNCL1Yc.js.map +1 -0
  71. package/dist/chunks/index-B3Uf1AVX.js +3 -0
  72. package/dist/chunks/index-B3Uf1AVX.js.map +1 -0
  73. package/dist/chunks/index-B4rwgehU.js +2 -0
  74. package/dist/chunks/index-B4rwgehU.js.map +1 -0
  75. package/dist/chunks/{index-YfA5zlSf.js → index-BQusETZC.js} +5 -5
  76. package/dist/chunks/{index-YfA5zlSf.js.map → index-BQusETZC.js.map} +1 -1
  77. package/dist/chunks/{index-Bn03tQNC.js → index-BmJA4z7Y.js} +20 -19
  78. package/dist/chunks/{index-Bn03tQNC.js.map → index-BmJA4z7Y.js.map} +1 -1
  79. package/dist/chunks/{index-DeprNCOL.js → index-C-VkceKb.js} +2 -2
  80. package/dist/chunks/{index-DeprNCOL.js.map → index-C-VkceKb.js.map} +1 -1
  81. package/dist/chunks/{index-B9cDqm2a.js → index-C4xXAinc.js} +3 -3
  82. package/dist/chunks/{index-B9cDqm2a.js.map → index-C4xXAinc.js.map} +1 -1
  83. package/dist/chunks/{index-BL1VW2oK.js → index-CBVOChyW.js} +55 -54
  84. package/dist/chunks/{index-BL1VW2oK.js.map → index-CBVOChyW.js.map} +1 -1
  85. package/dist/chunks/index-CL5b64u0.js +389 -0
  86. package/dist/chunks/index-CL5b64u0.js.map +1 -0
  87. package/dist/chunks/{index-Ciu8P7c-.js → index-CWZQythd.js} +7 -7
  88. package/dist/chunks/{index-Ciu8P7c-.js.map → index-CWZQythd.js.map} +1 -1
  89. package/dist/chunks/index-Cd776OkZ.js +2 -0
  90. package/dist/chunks/index-Cd776OkZ.js.map +1 -0
  91. package/dist/chunks/{index-CxHMu1In.js → index-Csfb-K1K.js} +23 -21
  92. package/dist/chunks/{index-CxHMu1In.js.map → index-Csfb-K1K.js.map} +1 -1
  93. package/dist/chunks/index-Cw75JjHp.js +2 -0
  94. package/dist/chunks/{index-BiyIeWSg.js.map → index-Cw75JjHp.js.map} +1 -1
  95. package/dist/chunks/index-Cwl9h4X_.js +2 -0
  96. package/dist/chunks/{index-BDCLWoQU.js.map → index-Cwl9h4X_.js.map} +1 -1
  97. package/dist/chunks/index-D8ghhfzK.js +322 -0
  98. package/dist/chunks/index-D8ghhfzK.js.map +1 -0
  99. package/dist/chunks/index-DUEcH1Ul.js +2 -0
  100. package/dist/chunks/{index-CmVbgcH8.js.map → index-DUEcH1Ul.js.map} +1 -1
  101. package/dist/chunks/index-DX-8RG9n.js +8 -0
  102. package/dist/chunks/{index-DFbSzgk8.js.map → index-DX-8RG9n.js.map} +1 -1
  103. package/dist/chunks/index-PD_OmAnh.js +2 -0
  104. package/dist/chunks/index-PD_OmAnh.js.map +1 -0
  105. package/dist/chunks/{index-BpKhRg2I.js → index-U8SN9h_h.js} +2 -2
  106. package/dist/chunks/{index-BpKhRg2I.js.map → index-U8SN9h_h.js.map} +1 -1
  107. package/dist/chunks/index-c2eCwOCU.js +1018 -0
  108. package/dist/chunks/index-c2eCwOCU.js.map +1 -0
  109. package/dist/chunks/index-iPTsth-y.js +2 -0
  110. package/dist/chunks/{index-CzzrUbmu.js.map → index-iPTsth-y.js.map} +1 -1
  111. package/dist/chunks/{index-DRABh-Lp.js → index-vVG7UN0y.js} +106 -105
  112. package/dist/chunks/{index-DRABh-Lp.js.map → index-vVG7UN0y.js.map} +1 -1
  113. package/dist/chunks/index-zgGK8otr.js +376 -0
  114. package/dist/chunks/index-zgGK8otr.js.map +1 -0
  115. package/dist/chunks/{link.component-BQJI6gPi.js → link.component-CCFg-LIe.js} +2 -2
  116. package/dist/chunks/{link.component-BQJI6gPi.js.map → link.component-CCFg-LIe.js.map} +1 -1
  117. package/dist/chunks/{link.component-Cs05IsXP.js → link.component-DprieyUG.js} +2 -2
  118. package/dist/chunks/{link.component-Cs05IsXP.js.map → link.component-DprieyUG.js.map} +1 -1
  119. package/dist/chunks/{logo.types-By8TqyNf.js → logo.types-DVfuQmDd.js} +2 -2
  120. package/dist/chunks/{logo.types-By8TqyNf.js.map → logo.types-DVfuQmDd.js.map} +1 -1
  121. package/dist/chunks/{menu.component-CAr2xdZY.js → menu.component-ColftkpF.js} +28 -28
  122. package/dist/chunks/{menu.component-CAr2xdZY.js.map → menu.component-ColftkpF.js.map} +1 -1
  123. package/dist/chunks/menu.component-Ct_9TaWj.js +2 -0
  124. package/dist/chunks/{menu.component-BgAx3SsR.js.map → menu.component-Ct_9TaWj.js.map} +1 -1
  125. package/dist/chunks/{modal.types-B7PDc2GJ.js → modal.types-BJDq3ofH.js} +5 -5
  126. package/dist/chunks/{modal.types-B7PDc2GJ.js.map → modal.types-BJDq3ofH.js.map} +1 -1
  127. package/dist/chunks/{modal.types-CtHJAyfq.js → modal.types-CsGdjZZf.js} +2 -2
  128. package/dist/chunks/{modal.types-CtHJAyfq.js.map → modal.types-CsGdjZZf.js.map} +1 -1
  129. package/dist/chunks/{notificationCounter.component-Bei8mHSZ.js → notificationCounter.component-CHlLTEiF.js} +2 -2
  130. package/dist/chunks/{notificationCounter.component-Bei8mHSZ.js.map → notificationCounter.component-CHlLTEiF.js.map} +1 -1
  131. package/dist/chunks/{pinInput.types-a0_2OLBO.js → pinInput.types-GznuQbzY.js} +2 -2
  132. package/dist/chunks/{pinInput.types-a0_2OLBO.js.map → pinInput.types-GznuQbzY.js.map} +1 -1
  133. package/dist/chunks/{pinInput.types-TfkrphC7.js → pinInput.types-k-MTZ5SR.js} +17 -17
  134. package/dist/chunks/{pinInput.types-TfkrphC7.js.map → pinInput.types-k-MTZ5SR.js.map} +1 -1
  135. package/dist/chunks/popover-JzE_u7E-.js +110 -0
  136. package/dist/chunks/popover-JzE_u7E-.js.map +1 -0
  137. package/dist/chunks/popover-ZImHeDTu.js +2 -0
  138. package/dist/chunks/popover-ZImHeDTu.js.map +1 -0
  139. package/dist/chunks/popover-root-provider-RWj-0mRI.js +2 -0
  140. package/dist/chunks/popover-root-provider-RWj-0mRI.js.map +1 -0
  141. package/dist/chunks/popover-root-provider-S83-0n0E.js +43 -0
  142. package/dist/chunks/popover-root-provider-S83-0n0E.js.map +1 -0
  143. package/dist/chunks/popover.component-Bh32Kl6i.js +322 -0
  144. package/dist/chunks/popover.component-Bh32Kl6i.js.map +1 -0
  145. package/dist/chunks/popover.component-D4NdsCQv.js +2 -0
  146. package/dist/chunks/popover.component-D4NdsCQv.js.map +1 -0
  147. package/dist/chunks/popover.recipe-D7Q80iWn.js +2 -0
  148. package/dist/chunks/popover.recipe-D7Q80iWn.js.map +1 -0
  149. package/dist/chunks/popover.recipe-DhQtUTnw.js +479 -0
  150. package/dist/chunks/popover.recipe-DhQtUTnw.js.map +1 -0
  151. package/dist/chunks/portal-C7cdrplU.js +2301 -0
  152. package/dist/chunks/portal-C7cdrplU.js.map +1 -0
  153. package/dist/chunks/portal-JkodPmk7.js +22 -0
  154. package/dist/chunks/portal-JkodPmk7.js.map +1 -0
  155. package/dist/chunks/{radio.records-DBS_lqNe.js → radio.records-BD5zaE5E.js} +9 -9
  156. package/dist/chunks/{radio.records-DBS_lqNe.js.map → radio.records-BD5zaE5E.js.map} +1 -1
  157. package/dist/chunks/radio.records-BKkl9Mk4.js +2 -0
  158. package/dist/chunks/{radio.records-zKzNxtns.js.map → radio.records-BKkl9Mk4.js.map} +1 -1
  159. package/dist/chunks/radioGroup.component-C6wU0Srn.js +2 -0
  160. package/dist/chunks/{radioGroup.component-fpo_KMOY.js.map → radioGroup.component-C6wU0Srn.js.map} +1 -1
  161. package/dist/chunks/{radioGroup.component-DBLLIgCZ.js → radioGroup.component-DbslYk4o.js} +17 -17
  162. package/dist/chunks/{radioGroup.component-DBLLIgCZ.js.map → radioGroup.component-DbslYk4o.js.map} +1 -1
  163. package/dist/chunks/{ratingDots.component-DG2nCpxT.js → ratingDots.component-B2jdV6Uk.js} +6 -6
  164. package/dist/chunks/{ratingDots.component-DG2nCpxT.js.map → ratingDots.component-B2jdV6Uk.js.map} +1 -1
  165. package/dist/chunks/ratingDots.component-DV7pmIJJ.js +2 -0
  166. package/dist/chunks/{ratingDots.component-DJEDUD_9.js.map → ratingDots.component-DV7pmIJJ.js.map} +1 -1
  167. package/dist/chunks/{render-strategy-C80bGq2n.js → render-strategy-BCWksbL8.js} +2 -2
  168. package/dist/chunks/{render-strategy-C80bGq2n.js.map → render-strategy-BCWksbL8.js.map} +1 -1
  169. package/dist/chunks/{render-strategy-DN75XQJB.js → render-strategy-DaeRfJpM.js} +2 -2
  170. package/dist/chunks/{render-strategy-DN75XQJB.js.map → render-strategy-DaeRfJpM.js.map} +1 -1
  171. package/dist/chunks/{select.component-DyXwbDeO.js → select.component-CRmnH0Ty.js} +45 -45
  172. package/dist/chunks/{select.component-DyXwbDeO.js.map → select.component-CRmnH0Ty.js.map} +1 -1
  173. package/dist/chunks/select.component-DDRV0zBf.js +2 -0
  174. package/dist/chunks/{select.component-Bmop2_tX.js.map → select.component-DDRV0zBf.js.map} +1 -1
  175. package/dist/chunks/{sortableList.component-b2t_K7ho.js → sortableList.component-B59RwzTi.js} +2 -2
  176. package/dist/chunks/{sortableList.component-b2t_K7ho.js.map → sortableList.component-B59RwzTi.js.map} +1 -1
  177. package/dist/chunks/{sortableList.component-CbZAQrKl.js → sortableList.component-Dlq8P2tc.js} +4 -4
  178. package/dist/chunks/{sortableList.component-CbZAQrKl.js.map → sortableList.component-Dlq8P2tc.js.map} +1 -1
  179. package/dist/chunks/spinner-BWqSIW6m.js +8 -0
  180. package/dist/chunks/spinner-BWqSIW6m.js.map +1 -0
  181. package/dist/chunks/spinner-BnpL14kK.js +2 -0
  182. package/dist/chunks/spinner-BnpL14kK.js.map +1 -0
  183. package/dist/chunks/spinner.component-DBCa-ZPE.js +2 -0
  184. package/dist/chunks/{spinner.component-CjQb7JjK.js.map → spinner.component-DBCa-ZPE.js.map} +1 -1
  185. package/dist/chunks/{spinner.component-B1vU-FCd.js → spinner.component-DsDyKpq2.js} +5 -5
  186. package/dist/chunks/{spinner.component-B1vU-FCd.js.map → spinner.component-DsDyKpq2.js.map} +1 -1
  187. package/dist/chunks/{styledAvatar.types-D8VWyELN.js → styledAvatar.types-BUyxKyGa.js} +2 -2
  188. package/dist/chunks/{styledAvatar.types-D8VWyELN.js.map → styledAvatar.types-BUyxKyGa.js.map} +1 -1
  189. package/dist/chunks/{styledAvatar.types-DstfmllC.js → styledAvatar.types-X9FV2vOM.js} +2 -2
  190. package/dist/chunks/{styledAvatar.types-DstfmllC.js.map → styledAvatar.types-X9FV2vOM.js.map} +1 -1
  191. package/dist/chunks/{swatch.types-DbgA3RWc.js → swatch.types-Dsv11aQw.js} +2 -2
  192. package/dist/chunks/{swatch.types-DbgA3RWc.js.map → swatch.types-Dsv11aQw.js.map} +1 -1
  193. package/dist/chunks/switch.component-BZh12RCT.js +2 -0
  194. package/dist/chunks/{switch.component-ARZzuYrq.js.map → switch.component-BZh12RCT.js.map} +1 -1
  195. package/dist/chunks/{switch.component-DO9fxk_-.js → switch.component-DR4jYcSz.js} +22 -22
  196. package/dist/chunks/{switch.component-DO9fxk_-.js.map → switch.component-DR4jYcSz.js.map} +1 -1
  197. package/dist/chunks/{tabs.component-BWTDtLWN.js → tabs.component-C_4sO8kW.js} +55 -55
  198. package/dist/chunks/{tabs.component-BWTDtLWN.js.map → tabs.component-C_4sO8kW.js.map} +1 -1
  199. package/dist/chunks/{tabs.component-DRpNF8p-.js → tabs.component-CzyTXhJp.js} +2 -2
  200. package/dist/chunks/{tabs.component-DRpNF8p-.js.map → tabs.component-CzyTXhJp.js.map} +1 -1
  201. package/dist/chunks/tagBlock.component-BI1AmbDR.js +2 -0
  202. package/dist/chunks/{tagBlock.component-Bahf1v33.js.map → tagBlock.component-BI1AmbDR.js.map} +1 -1
  203. package/dist/chunks/{tagBlock.component-C3BrjwNJ.js → tagBlock.component-B_dQ7rGS.js} +17 -16
  204. package/dist/chunks/{tagBlock.component-C3BrjwNJ.js.map → tagBlock.component-B_dQ7rGS.js.map} +1 -1
  205. package/dist/chunks/text.component-BA-9q9gX.js +12 -0
  206. package/dist/chunks/text.component-BA-9q9gX.js.map +1 -0
  207. package/dist/chunks/text.component-ColgFnqE.js +2 -0
  208. package/dist/chunks/text.component-ColgFnqE.js.map +1 -0
  209. package/dist/chunks/{textInput.component-LPGbDHwZ.js → textInput.component-BttHjzdC.js} +14 -14
  210. package/dist/chunks/{textInput.component-LPGbDHwZ.js.map → textInput.component-BttHjzdC.js.map} +1 -1
  211. package/dist/chunks/{textInput.component-DDo9eUvp.js → textInput.component-cFmQkIXY.js} +2 -2
  212. package/dist/chunks/{textInput.component-DDo9eUvp.js.map → textInput.component-cFmQkIXY.js.map} +1 -1
  213. package/dist/chunks/{textarea.component-ClYqhTJX.js → textarea.component-DKiTZ2bP.js} +12 -12
  214. package/dist/chunks/{textarea.component-ClYqhTJX.js.map → textarea.component-DKiTZ2bP.js.map} +1 -1
  215. package/dist/chunks/{textarea.component-5Ou5g_MJ.js → textarea.component-cEtZ6ReA.js} +2 -2
  216. package/dist/chunks/{textarea.component-5Ou5g_MJ.js.map → textarea.component-cEtZ6ReA.js.map} +1 -1
  217. package/dist/chunks/{theme.provider-vZgSb-q5.js → theme.provider-Dd0L8qXA.js} +3200 -3328
  218. package/dist/chunks/theme.provider-Dd0L8qXA.js.map +1 -0
  219. package/dist/chunks/theme.provider-Dh_N0A6U.js +26 -0
  220. package/dist/chunks/theme.provider-Dh_N0A6U.js.map +1 -0
  221. package/dist/chunks/{timePicker.component-Bx0fHgrN.js → timePicker.component-CegBtxsl.js} +2 -2
  222. package/dist/chunks/{timePicker.component-Bx0fHgrN.js.map → timePicker.component-CegBtxsl.js.map} +1 -1
  223. package/dist/chunks/{timePicker.component-AgnrqtFu.js → timePicker.component-D0WsvkI5.js} +5 -5
  224. package/dist/chunks/{timePicker.component-AgnrqtFu.js.map → timePicker.component-D0WsvkI5.js.map} +1 -1
  225. package/dist/chunks/{timeRange.component-C14RiUcS.js → timeRange.component-C1p0bfmg.js} +2 -2
  226. package/dist/chunks/{timeRange.component-C14RiUcS.js.map → timeRange.component-C1p0bfmg.js.map} +1 -1
  227. package/dist/chunks/{timeRange.component-B3Nv-nLB.js → timeRange.component-Cc3ZfoeN.js} +2 -2
  228. package/dist/chunks/{timeRange.component-B3Nv-nLB.js.map → timeRange.component-Cc3ZfoeN.js.map} +1 -1
  229. package/dist/chunks/timestamp.component-CZGCU-JV.js +54 -0
  230. package/dist/chunks/{timestamp.component-Kxi_bKp1.js.map → timestamp.component-CZGCU-JV.js.map} +1 -1
  231. package/dist/chunks/timestamp.component-ZDbg3G8Z.js +2 -0
  232. package/dist/chunks/{timestamp.component-DEx0cUkA.js.map → timestamp.component-ZDbg3G8Z.js.map} +1 -1
  233. package/dist/chunks/toaster.records-3VWRSgsn.js +2 -0
  234. package/dist/chunks/{toaster.records-CGym-iT-.js.map → toaster.records-3VWRSgsn.js.map} +1 -1
  235. package/dist/chunks/{toaster.records-CKeu_PyD.js → toaster.records-DeXyJQpa.js} +22 -21
  236. package/dist/chunks/{toaster.records-CKeu_PyD.js.map → toaster.records-DeXyJQpa.js.map} +1 -1
  237. package/dist/chunks/tooltip.component-BiDAtm5N.js +2 -0
  238. package/dist/chunks/tooltip.component-BiDAtm5N.js.map +1 -0
  239. package/dist/chunks/tooltip.component-C5FgUWfB.js +713 -0
  240. package/dist/chunks/tooltip.component-C5FgUWfB.js.map +1 -0
  241. package/dist/chunks/{icon.component-D84o075X.js → typography-Cqrokog3.js} +6 -43
  242. package/dist/chunks/typography-Cqrokog3.js.map +1 -0
  243. package/dist/chunks/typography-CtiaGoJG.js +2 -0
  244. package/dist/chunks/typography-CtiaGoJG.js.map +1 -0
  245. package/dist/chunks/{typography.records-BeoK0Uyj.js → typography.records-CIqVDP87.js} +2 -2
  246. package/dist/chunks/{typography.records-BeoK0Uyj.js.map → typography.records-CIqVDP87.js.map} +1 -1
  247. package/dist/chunks/{typography.records-XkUlmiSk.js → typography.records-QKCR4PDO.js} +2 -2
  248. package/dist/chunks/{typography.records-XkUlmiSk.js.map → typography.records-QKCR4PDO.js.map} +1 -1
  249. package/dist/chunks/{use-field-context-DnTe9gdc.js → use-field-context-BJ7xh7mY.js} +2 -2
  250. package/dist/chunks/{use-field-context-DnTe9gdc.js.map → use-field-context-BJ7xh7mY.js.map} +1 -1
  251. package/dist/chunks/{use-field-context-1gfMkjvo.js → use-field-context-PoccdU55.js} +2 -2
  252. package/dist/chunks/{use-field-context-1gfMkjvo.js.map → use-field-context-PoccdU55.js.map} +1 -1
  253. package/dist/chunks/{withFormControl-DfqMqkSU.js → withFormControl-DA1TgH2T.js} +39 -39
  254. package/dist/chunks/{withFormControl-DfqMqkSU.js.map → withFormControl-DA1TgH2T.js.map} +1 -1
  255. package/dist/chunks/withFormControl-PaMa_BVC.js +2 -0
  256. package/dist/chunks/{withFormControl-kyGjRFza.js.map → withFormControl-PaMa_BVC.js.map} +1 -1
  257. package/dist/chunks/withTruncation-GECNx84Z.js +67 -0
  258. package/dist/chunks/withTruncation-GECNx84Z.js.map +1 -0
  259. package/dist/chunks/withTruncation-lxIe2bbU.js +2 -0
  260. package/dist/chunks/withTruncation-lxIe2bbU.js.map +1 -0
  261. package/dist/chunks/{wrap-B8tBNeBY.js → wrap-Dk19PFnP.js} +2 -2
  262. package/dist/chunks/{wrap-B8tBNeBY.js.map → wrap-Dk19PFnP.js.map} +1 -1
  263. package/dist/cjs/chakra/index.cjs +1 -1
  264. package/dist/cjs/chakra/index.cjs.map +1 -1
  265. package/dist/cjs/components/Alert/index.cjs +1 -1
  266. package/dist/cjs/components/Avatar/index.cjs +1 -1
  267. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  268. package/dist/cjs/components/Button/index.cjs +1 -1
  269. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  270. package/dist/cjs/components/CharacterCounter/index.cjs +1 -1
  271. package/dist/cjs/components/Checkbox/index.cjs +1 -1
  272. package/dist/cjs/components/CheckboxGroup/index.cjs +1 -1
  273. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  274. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  275. package/dist/cjs/components/Heading/index.cjs +1 -1
  276. package/dist/cjs/components/Icon/index.cjs +1 -1
  277. package/dist/cjs/components/Link/index.cjs +1 -1
  278. package/dist/cjs/components/Menu/index.cjs +1 -1
  279. package/dist/cjs/components/Modal/index.cjs +1 -1
  280. package/dist/cjs/components/PinInput/index.cjs +1 -1
  281. package/dist/cjs/components/Popover/index.cjs +1 -1
  282. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  283. package/dist/cjs/components/RatingDots/index.cjs +1 -1
  284. package/dist/cjs/components/Select/index.cjs +1 -1
  285. package/dist/cjs/components/SortableList/index.cjs +1 -1
  286. package/dist/cjs/components/Spinner/index.cjs +1 -1
  287. package/dist/cjs/components/StyledAvatar/index.cjs +1 -1
  288. package/dist/cjs/components/Switch/index.cjs +1 -1
  289. package/dist/cjs/components/Tabs/index.cjs +1 -1
  290. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  291. package/dist/cjs/components/Text/index.cjs +1 -1
  292. package/dist/cjs/components/TextInput/index.cjs +1 -1
  293. package/dist/cjs/components/Textarea/index.cjs +1 -1
  294. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  295. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  296. package/dist/cjs/components/Timestamp/index.cjs +1 -1
  297. package/dist/cjs/components/Toast/index.cjs +1 -1
  298. package/dist/cjs/components/Tooltip/index.cjs +1 -1
  299. package/dist/cjs/components/index.cjs +1 -1
  300. package/dist/cjs/index.cjs +1 -1
  301. package/dist/cjs/theme/index.cjs +1 -1
  302. package/dist/esm/chakra/index.js +147 -146
  303. package/dist/esm/chakra/index.js.map +1 -1
  304. package/dist/esm/components/Alert/index.js +1 -1
  305. package/dist/esm/components/Avatar/index.js +1 -1
  306. package/dist/esm/components/AvatarGroup/index.js +1 -1
  307. package/dist/esm/components/Button/index.js +1 -1
  308. package/dist/esm/components/ButtonGroup/index.js +1 -1
  309. package/dist/esm/components/CharacterCounter/index.js +1 -1
  310. package/dist/esm/components/Checkbox/index.js +1 -1
  311. package/dist/esm/components/CheckboxGroup/index.js +1 -1
  312. package/dist/esm/components/ConversationCard/index.js +1 -1
  313. package/dist/esm/components/DatePicker/index.js +1 -1
  314. package/dist/esm/components/Heading/index.js +1 -1
  315. package/dist/esm/components/Icon/index.js +1 -1
  316. package/dist/esm/components/Link/index.js +1 -1
  317. package/dist/esm/components/Logo/index.js +1 -1
  318. package/dist/esm/components/Menu/index.js +1 -1
  319. package/dist/esm/components/Modal/index.js +1 -1
  320. package/dist/esm/components/NotificationCounter/index.js +1 -1
  321. package/dist/esm/components/PinInput/index.js +1 -1
  322. package/dist/esm/components/Popover/index.js +1 -1
  323. package/dist/esm/components/RadioGroup/index.js +1 -1
  324. package/dist/esm/components/RatingDots/index.js +1 -1
  325. package/dist/esm/components/Select/index.js +1 -1
  326. package/dist/esm/components/SortableList/index.js +1 -1
  327. package/dist/esm/components/Spinner/index.js +1 -1
  328. package/dist/esm/components/StyledAvatar/index.js +1 -1
  329. package/dist/esm/components/Swatch/index.js +1 -1
  330. package/dist/esm/components/Switch/index.js +1 -1
  331. package/dist/esm/components/Tabs/index.js +1 -1
  332. package/dist/esm/components/TagBlock/index.js +1 -1
  333. package/dist/esm/components/Text/index.js +2 -2
  334. package/dist/esm/components/TextInput/index.js +1 -1
  335. package/dist/esm/components/Textarea/index.js +1 -1
  336. package/dist/esm/components/TimePicker/index.js +1 -1
  337. package/dist/esm/components/TimeRange/index.js +1 -1
  338. package/dist/esm/components/Timestamp/index.js +1 -1
  339. package/dist/esm/components/Toast/index.js +1 -1
  340. package/dist/esm/components/Tooltip/index.js +1 -1
  341. package/dist/esm/components/index.js +92 -89
  342. package/dist/esm/components/index.js.map +1 -1
  343. package/dist/esm/index.js +114 -111
  344. package/dist/esm/index.js.map +1 -1
  345. package/dist/esm/theme/index.js +1 -1
  346. package/dist/types/components/Button/button.recipe.d.ts +1 -1
  347. package/dist/types/components/Logo/logo.recipe.d.ts +1 -1
  348. package/dist/types/components/Menu/menu.recipe.d.ts +1 -1
  349. package/dist/types/components/Modal/modal.recipe.d.ts +1 -1
  350. package/dist/types/components/TimePicker/timePicker.recipe.d.ts +1 -1
  351. package/dist/types/components/Tooltip/tooltip.component.d.ts +8 -6
  352. package/dist/types/theme/tokens/shadows/shadows.config.d.ts +6 -6
  353. package/dist/types/theme/tokens/sizes/sizes.config.d.ts +2 -2
  354. package/dist/types/theme/tokens/zIndices/zIndices.config.d.ts +7 -7
  355. package/package.json +1 -1
  356. package/dist/chunks/alert.types-BsvcbTZD.js +0 -2
  357. package/dist/chunks/characterCounter.component-B8efVNy4.js +0 -2
  358. package/dist/chunks/checkbox.component-DO9NDbmM.js +0 -2
  359. package/dist/chunks/checkbox.records-D7NUtCRR.js +0 -2
  360. package/dist/chunks/conversationCard.component-qWYvoxVn.js +0 -2
  361. package/dist/chunks/datePicker.component-CLR0tErm.js +0 -15
  362. package/dist/chunks/group-Dv1hO5IW.js +0 -2
  363. package/dist/chunks/heading.component-DkT5GYvU.js +0 -2
  364. package/dist/chunks/heading.component-DkT5GYvU.js.map +0 -1
  365. package/dist/chunks/heading.component-d5jKnwm5.js +0 -976
  366. package/dist/chunks/heading.component-d5jKnwm5.js.map +0 -1
  367. package/dist/chunks/icon-button-BTDZq0Tr.js +0 -121
  368. package/dist/chunks/icon-button-BTDZq0Tr.js.map +0 -1
  369. package/dist/chunks/icon-button-khcu437F.js +0 -2
  370. package/dist/chunks/icon-button-khcu437F.js.map +0 -1
  371. package/dist/chunks/icon.component-D84o075X.js.map +0 -1
  372. package/dist/chunks/icon.component-DjiNNeqF.js +0 -2
  373. package/dist/chunks/icon.component-DjiNNeqF.js.map +0 -1
  374. package/dist/chunks/index-BDCLWoQU.js +0 -2
  375. package/dist/chunks/index-BIjZoyJk.js +0 -70
  376. package/dist/chunks/index-BIjZoyJk.js.map +0 -1
  377. package/dist/chunks/index-BiyIeWSg.js +0 -2
  378. package/dist/chunks/index-BlGAWSIX.js +0 -3
  379. package/dist/chunks/index-BlGAWSIX.js.map +0 -1
  380. package/dist/chunks/index-Cb49D-ky.js +0 -1328
  381. package/dist/chunks/index-Cb49D-ky.js.map +0 -1
  382. package/dist/chunks/index-CmVbgcH8.js +0 -2
  383. package/dist/chunks/index-CzzrUbmu.js +0 -2
  384. package/dist/chunks/index-DFbSzgk8.js +0 -8
  385. package/dist/chunks/index-Fztcdoo_.js +0 -2
  386. package/dist/chunks/index-Fztcdoo_.js.map +0 -1
  387. package/dist/chunks/menu.component-BgAx3SsR.js +0 -2
  388. package/dist/chunks/portal-CtkZ5xTm.js +0 -3087
  389. package/dist/chunks/portal-CtkZ5xTm.js.map +0 -1
  390. package/dist/chunks/portal-kmAjRmaV.js +0 -22
  391. package/dist/chunks/portal-kmAjRmaV.js.map +0 -1
  392. package/dist/chunks/radio.records-zKzNxtns.js +0 -2
  393. package/dist/chunks/radioGroup.component-fpo_KMOY.js +0 -2
  394. package/dist/chunks/ratingDots.component-DJEDUD_9.js +0 -2
  395. package/dist/chunks/select.component-Bmop2_tX.js +0 -2
  396. package/dist/chunks/spinner.component-CjQb7JjK.js +0 -2
  397. package/dist/chunks/switch.component-ARZzuYrq.js +0 -2
  398. package/dist/chunks/tagBlock.component-Bahf1v33.js +0 -2
  399. package/dist/chunks/theme.provider-DWJTtjw5.js +0 -26
  400. package/dist/chunks/theme.provider-DWJTtjw5.js.map +0 -1
  401. package/dist/chunks/theme.provider-vZgSb-q5.js.map +0 -1
  402. package/dist/chunks/timestamp.component-DEx0cUkA.js +0 -2
  403. package/dist/chunks/timestamp.component-Kxi_bKp1.js +0 -53
  404. package/dist/chunks/toaster.records-CGym-iT-.js +0 -2
  405. package/dist/chunks/withFormControl-kyGjRFza.js +0 -2
@@ -0,0 +1,2301 @@
1
+ import { Y as mt, c as pt, ab as yt, aq as ht, r as Re, e as Je, D as vt, b5 as xt, ac as Ze, O as wt, b6 as re, b7 as Oe, b8 as bt, a8 as ie, a9 as He, b9 as Ot, F as St, ba as Et, l as Rt, bb as At, ad as Tt, Z as _t, a3 as Pt, a2 as Nt } from "./index-c2eCwOCU.js";
2
+ import Qe, { createContext as Ct, useContext as Dt, memo as Mt, forwardRef as Lt, createElement as kt, Children as et, isValidElement as $t, cloneElement as Vt, useMemo as Ht, useRef as L, useLayoutEffect as zt, useEffect as se, useState as Ae, useCallback as Ut, useSyncExternalStore as Ft } from "react";
3
+ import { j as ue } from "./jsx-runtime-C5mzlN2N.js";
4
+ function It(e, t) {
5
+ return `${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`;
6
+ }
7
+ function Ne(e = {}) {
8
+ const {
9
+ name: t,
10
+ strict: r = !0,
11
+ hookName: n = "useContext",
12
+ providerName: o = "Provider",
13
+ errorMessage: c,
14
+ defaultValue: l
15
+ } = e, f = Ct(l);
16
+ f.displayName = t;
17
+ function u() {
18
+ const s = Dt(f);
19
+ if (!s && r) {
20
+ const g = new Error(c ?? It(n, o));
21
+ throw g.name = "ContextError", Error.captureStackTrace?.(g, u), g;
22
+ }
23
+ return s;
24
+ }
25
+ return [f.Provider, u, f];
26
+ }
27
+ const [xr, Wt] = Ne({
28
+ name: "EnvironmentContext",
29
+ hookName: "useEnvironmentContext",
30
+ providerName: "<EnvironmentProvider />",
31
+ strict: !1,
32
+ defaultValue: {
33
+ getRootNode: () => document,
34
+ getDocument: () => document,
35
+ getWindow: () => window
36
+ }
37
+ });
38
+ function jt(...e) {
39
+ return (t) => {
40
+ const r = [];
41
+ for (const n of e)
42
+ if (typeof n == "function") {
43
+ const o = n(t);
44
+ typeof o == "function" && r.push(o);
45
+ } else n && (n.current = t);
46
+ if (r.length)
47
+ return () => {
48
+ for (const n of r)
49
+ n();
50
+ };
51
+ };
52
+ }
53
+ function Bt(e) {
54
+ let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
55
+ return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
56
+ }
57
+ const Se = (e) => {
58
+ const t = Mt(
59
+ Lt((r, n) => {
60
+ const { asChild: o, children: c, ...l } = r;
61
+ if (!o)
62
+ return kt(e, { ...l, ref: n }, c);
63
+ const f = et.only(c);
64
+ if (!$t(f))
65
+ return null;
66
+ const u = Bt(f);
67
+ return Vt(f, {
68
+ ...mt(l, f.props),
69
+ ref: n ? jt(n, u) : u
70
+ });
71
+ })
72
+ );
73
+ return t.displayName = e.displayName || e.name, t;
74
+ }, qt = () => {
75
+ const e = /* @__PURE__ */ new Map();
76
+ return new Proxy(Se, {
77
+ apply(t, r, n) {
78
+ return Se(n[0]);
79
+ },
80
+ get(t, r) {
81
+ const n = r;
82
+ return e.has(n) || e.set(n, Se(n)), e.get(n);
83
+ }
84
+ });
85
+ }, wr = qt(), [br, Or] = Ne({
86
+ name: "LocaleContext",
87
+ hookName: "useLocaleContext",
88
+ providerName: "<LocaleProvider />",
89
+ strict: !1,
90
+ defaultValue: { dir: "ltr", locale: "en-US" }
91
+ }), Yt = () => (e, t) => t.reduce(
92
+ (r, n) => {
93
+ const [o, c] = r, l = n;
94
+ return c[l] !== void 0 && (o[l] = c[l]), delete c[l], [o, c];
95
+ },
96
+ [{}, { ...e }]
97
+ ), Sr = (e) => Yt()(e, [
98
+ "immediate",
99
+ "lazyMount",
100
+ "onExitComplete",
101
+ "present",
102
+ "skipAnimationOnMount",
103
+ "unmountOnExit"
104
+ ]);
105
+ function Gt(e) {
106
+ return new Proxy({}, {
107
+ get(t, r) {
108
+ return r === "style" ? (n) => e({ style: n }).style : e;
109
+ }
110
+ });
111
+ }
112
+ var Kt = () => (e) => Array.from(new Set(e));
113
+ function Xt(e, t) {
114
+ const { state: r, send: n, context: o } = e, c = r.matches("mounted", "unmountSuspended");
115
+ return {
116
+ skip: !o.get("initial"),
117
+ present: c,
118
+ setNode(l) {
119
+ l && n({ type: "NODE.SET", node: l });
120
+ },
121
+ unmount() {
122
+ n({ type: "UNMOUNT" });
123
+ }
124
+ };
125
+ }
126
+ var Jt = pt({
127
+ props({ props: e }) {
128
+ return { ...e, present: !!e.present };
129
+ },
130
+ initialState({ prop: e }) {
131
+ return e("present") ? "mounted" : "unmounted";
132
+ },
133
+ refs() {
134
+ return {
135
+ node: null,
136
+ styles: null
137
+ };
138
+ },
139
+ context({ bindable: e }) {
140
+ return {
141
+ unmountAnimationName: e(() => ({ defaultValue: null })),
142
+ prevAnimationName: e(() => ({ defaultValue: null })),
143
+ present: e(() => ({ defaultValue: !1 })),
144
+ initial: e(() => ({
145
+ sync: !0,
146
+ defaultValue: !1
147
+ }))
148
+ };
149
+ },
150
+ exit: ["clearInitial", "cleanupNode"],
151
+ watch({ track: e, action: t, prop: r }) {
152
+ e([() => r("present")], () => {
153
+ t(["setInitial", "syncPresence"]);
154
+ });
155
+ },
156
+ on: {
157
+ "NODE.SET": {
158
+ actions: ["setNode", "setStyles"]
159
+ }
160
+ },
161
+ states: {
162
+ mounted: {
163
+ on: {
164
+ UNMOUNT: {
165
+ target: "unmounted",
166
+ actions: ["clearPrevAnimationName", "invokeOnExitComplete"]
167
+ },
168
+ "UNMOUNT.SUSPEND": {
169
+ target: "unmountSuspended"
170
+ }
171
+ }
172
+ },
173
+ unmountSuspended: {
174
+ effects: ["trackAnimationEvents"],
175
+ on: {
176
+ MOUNT: {
177
+ target: "mounted",
178
+ actions: ["setPrevAnimationName"]
179
+ },
180
+ UNMOUNT: {
181
+ target: "unmounted",
182
+ actions: ["clearPrevAnimationName", "invokeOnExitComplete"]
183
+ }
184
+ }
185
+ },
186
+ unmounted: {
187
+ on: {
188
+ MOUNT: {
189
+ target: "mounted",
190
+ actions: ["setPrevAnimationName"]
191
+ }
192
+ }
193
+ }
194
+ },
195
+ implementations: {
196
+ actions: {
197
+ setInitial: ({ context: e }) => {
198
+ e.get("initial") || queueMicrotask(() => {
199
+ e.set("initial", !0);
200
+ });
201
+ },
202
+ clearInitial: ({ context: e }) => {
203
+ e.set("initial", !1);
204
+ },
205
+ cleanupNode: ({ refs: e }) => {
206
+ e.set("node", null), e.set("styles", null);
207
+ },
208
+ invokeOnExitComplete: ({ prop: e }) => {
209
+ e("onExitComplete")?.();
210
+ },
211
+ setNode: ({ refs: e, event: t }) => {
212
+ e.set("node", t.node);
213
+ },
214
+ setStyles: ({ refs: e, event: t }) => {
215
+ e.set("styles", Je(t.node));
216
+ },
217
+ syncPresence: ({ context: e, refs: t, send: r, prop: n }) => {
218
+ const o = n("present");
219
+ if (o)
220
+ return r({ type: "MOUNT", src: "presence.changed" });
221
+ const c = t.get("node");
222
+ if (!o && c?.ownerDocument.visibilityState === "hidden")
223
+ return r({ type: "UNMOUNT", src: "visibilitychange" });
224
+ Re(() => {
225
+ const l = fe(t.get("styles"));
226
+ e.set("unmountAnimationName", l), l === "none" || l === e.get("prevAnimationName") || t.get("styles")?.display === "none" || t.get("styles")?.animationDuration === "0s" ? r({ type: "UNMOUNT", src: "presence.changed" }) : r({ type: "UNMOUNT.SUSPEND" });
227
+ });
228
+ },
229
+ setPrevAnimationName: ({ context: e, refs: t }) => {
230
+ Re(() => {
231
+ e.set("prevAnimationName", fe(t.get("styles")));
232
+ });
233
+ },
234
+ clearPrevAnimationName: ({ context: e }) => {
235
+ e.set("prevAnimationName", null);
236
+ }
237
+ },
238
+ effects: {
239
+ trackAnimationEvents: ({ context: e, refs: t, send: r }) => {
240
+ const n = t.get("node");
241
+ if (!n) return;
242
+ const o = (f) => {
243
+ (f.composedPath?.()?.[0] ?? f.target) === n && e.set("prevAnimationName", fe(t.get("styles")));
244
+ }, c = (f) => {
245
+ const u = fe(t.get("styles"));
246
+ vt(f) === n && u === e.get("unmountAnimationName") && r({ type: "UNMOUNT", src: "animationend" });
247
+ };
248
+ n.addEventListener("animationstart", o), n.addEventListener("animationcancel", c), n.addEventListener("animationend", c);
249
+ const l = yt(n, { animationFillMode: "forwards" });
250
+ return () => {
251
+ n.removeEventListener("animationstart", o), n.removeEventListener("animationcancel", c), n.removeEventListener("animationend", c), ht(() => l());
252
+ };
253
+ }
254
+ }
255
+ }
256
+ });
257
+ function fe(e) {
258
+ return e?.animationName || "none";
259
+ }
260
+ Kt()(["onExitComplete", "present", "immediate"]);
261
+ var de = { exports: {} }, N = {};
262
+ /**
263
+ * @license React
264
+ * react-dom.production.js
265
+ *
266
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
267
+ *
268
+ * This source code is licensed under the MIT license found in the
269
+ * LICENSE file in the root directory of this source tree.
270
+ */
271
+ var ze;
272
+ function Zt() {
273
+ if (ze) return N;
274
+ ze = 1;
275
+ var e = Qe;
276
+ function t(u) {
277
+ var s = "https://react.dev/errors/" + u;
278
+ if (1 < arguments.length) {
279
+ s += "?args[]=" + encodeURIComponent(arguments[1]);
280
+ for (var g = 2; g < arguments.length; g++)
281
+ s += "&args[]=" + encodeURIComponent(arguments[g]);
282
+ }
283
+ return "Minified React error #" + u + "; visit " + s + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
284
+ }
285
+ function r() {
286
+ }
287
+ var n = {
288
+ d: {
289
+ f: r,
290
+ r: function() {
291
+ throw Error(t(522));
292
+ },
293
+ D: r,
294
+ C: r,
295
+ L: r,
296
+ m: r,
297
+ X: r,
298
+ S: r,
299
+ M: r
300
+ },
301
+ p: 0,
302
+ findDOMNode: null
303
+ }, o = Symbol.for("react.portal");
304
+ function c(u, s, g) {
305
+ var a = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
306
+ return {
307
+ $$typeof: o,
308
+ key: a == null ? null : "" + a,
309
+ children: u,
310
+ containerInfo: s,
311
+ implementation: g
312
+ };
313
+ }
314
+ var l = e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
315
+ function f(u, s) {
316
+ if (u === "font") return "";
317
+ if (typeof s == "string")
318
+ return s === "use-credentials" ? s : "";
319
+ }
320
+ return N.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = n, N.createPortal = function(u, s) {
321
+ var g = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
322
+ if (!s || s.nodeType !== 1 && s.nodeType !== 9 && s.nodeType !== 11)
323
+ throw Error(t(299));
324
+ return c(u, s, null, g);
325
+ }, N.flushSync = function(u) {
326
+ var s = l.T, g = n.p;
327
+ try {
328
+ if (l.T = null, n.p = 2, u) return u();
329
+ } finally {
330
+ l.T = s, n.p = g, n.d.f();
331
+ }
332
+ }, N.preconnect = function(u, s) {
333
+ typeof u == "string" && (s ? (s = s.crossOrigin, s = typeof s == "string" ? s === "use-credentials" ? s : "" : void 0) : s = null, n.d.C(u, s));
334
+ }, N.prefetchDNS = function(u) {
335
+ typeof u == "string" && n.d.D(u);
336
+ }, N.preinit = function(u, s) {
337
+ if (typeof u == "string" && s && typeof s.as == "string") {
338
+ var g = s.as, a = f(g, s.crossOrigin), i = typeof s.integrity == "string" ? s.integrity : void 0, d = typeof s.fetchPriority == "string" ? s.fetchPriority : void 0;
339
+ g === "style" ? n.d.S(
340
+ u,
341
+ typeof s.precedence == "string" ? s.precedence : void 0,
342
+ {
343
+ crossOrigin: a,
344
+ integrity: i,
345
+ fetchPriority: d
346
+ }
347
+ ) : g === "script" && n.d.X(u, {
348
+ crossOrigin: a,
349
+ integrity: i,
350
+ fetchPriority: d,
351
+ nonce: typeof s.nonce == "string" ? s.nonce : void 0
352
+ });
353
+ }
354
+ }, N.preinitModule = function(u, s) {
355
+ if (typeof u == "string")
356
+ if (typeof s == "object" && s !== null) {
357
+ if (s.as == null || s.as === "script") {
358
+ var g = f(
359
+ s.as,
360
+ s.crossOrigin
361
+ );
362
+ n.d.M(u, {
363
+ crossOrigin: g,
364
+ integrity: typeof s.integrity == "string" ? s.integrity : void 0,
365
+ nonce: typeof s.nonce == "string" ? s.nonce : void 0
366
+ });
367
+ }
368
+ } else s == null && n.d.M(u);
369
+ }, N.preload = function(u, s) {
370
+ if (typeof u == "string" && typeof s == "object" && s !== null && typeof s.as == "string") {
371
+ var g = s.as, a = f(g, s.crossOrigin);
372
+ n.d.L(u, g, {
373
+ crossOrigin: a,
374
+ integrity: typeof s.integrity == "string" ? s.integrity : void 0,
375
+ nonce: typeof s.nonce == "string" ? s.nonce : void 0,
376
+ type: typeof s.type == "string" ? s.type : void 0,
377
+ fetchPriority: typeof s.fetchPriority == "string" ? s.fetchPriority : void 0,
378
+ referrerPolicy: typeof s.referrerPolicy == "string" ? s.referrerPolicy : void 0,
379
+ imageSrcSet: typeof s.imageSrcSet == "string" ? s.imageSrcSet : void 0,
380
+ imageSizes: typeof s.imageSizes == "string" ? s.imageSizes : void 0,
381
+ media: typeof s.media == "string" ? s.media : void 0
382
+ });
383
+ }
384
+ }, N.preloadModule = function(u, s) {
385
+ if (typeof u == "string")
386
+ if (s) {
387
+ var g = f(s.as, s.crossOrigin);
388
+ n.d.m(u, {
389
+ as: typeof s.as == "string" && s.as !== "script" ? s.as : void 0,
390
+ crossOrigin: g,
391
+ integrity: typeof s.integrity == "string" ? s.integrity : void 0
392
+ });
393
+ } else n.d.m(u);
394
+ }, N.requestFormReset = function(u) {
395
+ n.d.r(u);
396
+ }, N.unstable_batchedUpdates = function(u, s) {
397
+ return u(s);
398
+ }, N.useFormState = function(u, s, g) {
399
+ return l.H.useFormState(u, s, g);
400
+ }, N.useFormStatus = function() {
401
+ return l.H.useHostTransitionStatus();
402
+ }, N.version = "19.1.0", N;
403
+ }
404
+ var C = {};
405
+ /**
406
+ * @license React
407
+ * react-dom.development.js
408
+ *
409
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
410
+ *
411
+ * This source code is licensed under the MIT license found in the
412
+ * LICENSE file in the root directory of this source tree.
413
+ */
414
+ var Ue;
415
+ function Qt() {
416
+ return Ue || (Ue = 1, process.env.NODE_ENV !== "production" && function() {
417
+ function e() {
418
+ }
419
+ function t(a) {
420
+ return "" + a;
421
+ }
422
+ function r(a, i, d) {
423
+ var m = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
424
+ try {
425
+ t(m);
426
+ var p = !1;
427
+ } catch {
428
+ p = !0;
429
+ }
430
+ return p && (console.error(
431
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
432
+ typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object"
433
+ ), t(m)), {
434
+ $$typeof: s,
435
+ key: m == null ? null : "" + m,
436
+ children: a,
437
+ containerInfo: i,
438
+ implementation: d
439
+ };
440
+ }
441
+ function n(a, i) {
442
+ if (a === "font") return "";
443
+ if (typeof i == "string")
444
+ return i === "use-credentials" ? i : "";
445
+ }
446
+ function o(a) {
447
+ return a === null ? "`null`" : a === void 0 ? "`undefined`" : a === "" ? "an empty string" : 'something with type "' + typeof a + '"';
448
+ }
449
+ function c(a) {
450
+ return a === null ? "`null`" : a === void 0 ? "`undefined`" : a === "" ? "an empty string" : typeof a == "string" ? JSON.stringify(a) : typeof a == "number" ? "`" + a + "`" : 'something with type "' + typeof a + '"';
451
+ }
452
+ function l() {
453
+ var a = g.H;
454
+ return a === null && console.error(
455
+ `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
456
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
457
+ 2. You might be breaking the Rules of Hooks
458
+ 3. You might have more than one copy of React in the same app
459
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
460
+ ), a;
461
+ }
462
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
463
+ var f = Qe, u = {
464
+ d: {
465
+ f: e,
466
+ r: function() {
467
+ throw Error(
468
+ "Invalid form element. requestFormReset must be passed a form that was rendered by React."
469
+ );
470
+ },
471
+ D: e,
472
+ C: e,
473
+ L: e,
474
+ m: e,
475
+ X: e,
476
+ S: e,
477
+ M: e
478
+ },
479
+ p: 0,
480
+ findDOMNode: null
481
+ }, s = Symbol.for("react.portal"), g = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
482
+ typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
483
+ "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
484
+ ), C.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = u, C.createPortal = function(a, i) {
485
+ var d = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
486
+ if (!i || i.nodeType !== 1 && i.nodeType !== 9 && i.nodeType !== 11)
487
+ throw Error("Target container is not a DOM element.");
488
+ return r(a, i, null, d);
489
+ }, C.flushSync = function(a) {
490
+ var i = g.T, d = u.p;
491
+ try {
492
+ if (g.T = null, u.p = 2, a)
493
+ return a();
494
+ } finally {
495
+ g.T = i, u.p = d, u.d.f() && console.error(
496
+ "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
497
+ );
498
+ }
499
+ }, C.preconnect = function(a, i) {
500
+ typeof a == "string" && a ? i != null && typeof i != "object" ? console.error(
501
+ "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
502
+ c(i)
503
+ ) : i != null && typeof i.crossOrigin != "string" && console.error(
504
+ "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
505
+ o(i.crossOrigin)
506
+ ) : console.error(
507
+ "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
508
+ o(a)
509
+ ), typeof a == "string" && (i ? (i = i.crossOrigin, i = typeof i == "string" ? i === "use-credentials" ? i : "" : void 0) : i = null, u.d.C(a, i));
510
+ }, C.prefetchDNS = function(a) {
511
+ if (typeof a != "string" || !a)
512
+ console.error(
513
+ "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
514
+ o(a)
515
+ );
516
+ else if (1 < arguments.length) {
517
+ var i = arguments[1];
518
+ typeof i == "object" && i.hasOwnProperty("crossOrigin") ? console.error(
519
+ "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
520
+ c(i)
521
+ ) : console.error(
522
+ "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
523
+ c(i)
524
+ );
525
+ }
526
+ typeof a == "string" && u.d.D(a);
527
+ }, C.preinit = function(a, i) {
528
+ if (typeof a == "string" && a ? i == null || typeof i != "object" ? console.error(
529
+ "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
530
+ c(i)
531
+ ) : i.as !== "style" && i.as !== "script" && console.error(
532
+ 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
533
+ c(i.as)
534
+ ) : console.error(
535
+ "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
536
+ o(a)
537
+ ), typeof a == "string" && i && typeof i.as == "string") {
538
+ var d = i.as, m = n(d, i.crossOrigin), p = typeof i.integrity == "string" ? i.integrity : void 0, y = typeof i.fetchPriority == "string" ? i.fetchPriority : void 0;
539
+ d === "style" ? u.d.S(
540
+ a,
541
+ typeof i.precedence == "string" ? i.precedence : void 0,
542
+ {
543
+ crossOrigin: m,
544
+ integrity: p,
545
+ fetchPriority: y
546
+ }
547
+ ) : d === "script" && u.d.X(a, {
548
+ crossOrigin: m,
549
+ integrity: p,
550
+ fetchPriority: y,
551
+ nonce: typeof i.nonce == "string" ? i.nonce : void 0
552
+ });
553
+ }
554
+ }, C.preinitModule = function(a, i) {
555
+ var d = "";
556
+ if (typeof a == "string" && a || (d += " The `href` argument encountered was " + o(a) + "."), i !== void 0 && typeof i != "object" ? d += " The `options` argument encountered was " + o(i) + "." : i && "as" in i && i.as !== "script" && (d += " The `as` option encountered was " + c(i.as) + "."), d)
557
+ console.error(
558
+ "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
559
+ d
560
+ );
561
+ else
562
+ switch (d = i && typeof i.as == "string" ? i.as : "script", d) {
563
+ case "script":
564
+ break;
565
+ default:
566
+ d = c(d), console.error(
567
+ 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
568
+ d,
569
+ a
570
+ );
571
+ }
572
+ typeof a == "string" && (typeof i == "object" && i !== null ? (i.as == null || i.as === "script") && (d = n(
573
+ i.as,
574
+ i.crossOrigin
575
+ ), u.d.M(a, {
576
+ crossOrigin: d,
577
+ integrity: typeof i.integrity == "string" ? i.integrity : void 0,
578
+ nonce: typeof i.nonce == "string" ? i.nonce : void 0
579
+ })) : i == null && u.d.M(a));
580
+ }, C.preload = function(a, i) {
581
+ var d = "";
582
+ if (typeof a == "string" && a || (d += " The `href` argument encountered was " + o(a) + "."), i == null || typeof i != "object" ? d += " The `options` argument encountered was " + o(i) + "." : typeof i.as == "string" && i.as || (d += " The `as` option encountered was " + o(i.as) + "."), d && console.error(
583
+ 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
584
+ d
585
+ ), typeof a == "string" && typeof i == "object" && i !== null && typeof i.as == "string") {
586
+ d = i.as;
587
+ var m = n(
588
+ d,
589
+ i.crossOrigin
590
+ );
591
+ u.d.L(a, d, {
592
+ crossOrigin: m,
593
+ integrity: typeof i.integrity == "string" ? i.integrity : void 0,
594
+ nonce: typeof i.nonce == "string" ? i.nonce : void 0,
595
+ type: typeof i.type == "string" ? i.type : void 0,
596
+ fetchPriority: typeof i.fetchPriority == "string" ? i.fetchPriority : void 0,
597
+ referrerPolicy: typeof i.referrerPolicy == "string" ? i.referrerPolicy : void 0,
598
+ imageSrcSet: typeof i.imageSrcSet == "string" ? i.imageSrcSet : void 0,
599
+ imageSizes: typeof i.imageSizes == "string" ? i.imageSizes : void 0,
600
+ media: typeof i.media == "string" ? i.media : void 0
601
+ });
602
+ }
603
+ }, C.preloadModule = function(a, i) {
604
+ var d = "";
605
+ typeof a == "string" && a || (d += " The `href` argument encountered was " + o(a) + "."), i !== void 0 && typeof i != "object" ? d += " The `options` argument encountered was " + o(i) + "." : i && "as" in i && typeof i.as != "string" && (d += " The `as` option encountered was " + o(i.as) + "."), d && console.error(
606
+ 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
607
+ d
608
+ ), typeof a == "string" && (i ? (d = n(
609
+ i.as,
610
+ i.crossOrigin
611
+ ), u.d.m(a, {
612
+ as: typeof i.as == "string" && i.as !== "script" ? i.as : void 0,
613
+ crossOrigin: d,
614
+ integrity: typeof i.integrity == "string" ? i.integrity : void 0
615
+ })) : u.d.m(a));
616
+ }, C.requestFormReset = function(a) {
617
+ u.d.r(a);
618
+ }, C.unstable_batchedUpdates = function(a, i) {
619
+ return a(i);
620
+ }, C.useFormState = function(a, i, d) {
621
+ return l().useFormState(a, i, d);
622
+ }, C.useFormStatus = function() {
623
+ return l().useHostTransitionStatus();
624
+ }, C.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
625
+ }()), C;
626
+ }
627
+ var Fe;
628
+ function en() {
629
+ if (Fe) return de.exports;
630
+ Fe = 1;
631
+ function e() {
632
+ if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
633
+ if (process.env.NODE_ENV !== "production")
634
+ throw new Error("^_^");
635
+ try {
636
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);
637
+ } catch (t) {
638
+ console.error(t);
639
+ }
640
+ }
641
+ }
642
+ return process.env.NODE_ENV === "production" ? (e(), de.exports = Zt()) : de.exports = Qt(), de.exports;
643
+ }
644
+ var ve = en(), tt = typeof globalThis.document < "u" ? zt : se;
645
+ function me(e) {
646
+ const t = e().value ?? e().defaultValue, r = e().isEqual ?? Object.is, [n] = Ae(t), [o, c] = Ae(n), l = e().value !== void 0, f = L(o);
647
+ f.current = l ? e().value : o;
648
+ const u = L(f.current);
649
+ tt(() => {
650
+ u.current = f.current;
651
+ }, [o, e().value]);
652
+ const s = (a) => {
653
+ const i = u.current, d = ie(a) ? a(i) : a;
654
+ e().debug && console.log(`[bindable > ${e().debug}] setValue`, { next: d, prev: i }), l || c(d), r(d, i) || e().onChange?.(d, i);
655
+ };
656
+ function g() {
657
+ return l ? e().value : o;
658
+ }
659
+ return {
660
+ initial: n,
661
+ ref: f,
662
+ get: g,
663
+ set(a) {
664
+ (e().sync ? ve.flushSync : bt)(() => s(a));
665
+ },
666
+ invoke(a, i) {
667
+ e().onChange?.(a, i);
668
+ },
669
+ hash(a) {
670
+ return e().hash?.(a) ?? String(a);
671
+ }
672
+ };
673
+ }
674
+ me.cleanup = (e) => {
675
+ se(() => e, []);
676
+ };
677
+ me.ref = (e) => {
678
+ const t = L(e);
679
+ return {
680
+ get: () => t.current,
681
+ set: (r) => {
682
+ t.current = r;
683
+ }
684
+ };
685
+ };
686
+ function tn(e) {
687
+ const t = L(e);
688
+ return {
689
+ get(r) {
690
+ return t.current[r];
691
+ },
692
+ set(r, n) {
693
+ t.current[r] = n;
694
+ }
695
+ };
696
+ }
697
+ var nn = (e, t) => {
698
+ const r = L(!1), n = L(!1);
699
+ se(() => {
700
+ if (r.current && n.current) return t();
701
+ n.current = !0;
702
+ }, [...(e ?? []).map((o) => typeof o == "function" ? o() : o)]), se(() => (r.current = !0, () => {
703
+ r.current = !1;
704
+ }), []);
705
+ };
706
+ function rn(e, t = {}) {
707
+ const r = Ht(() => {
708
+ const { id: h, ids: x, getRootNode: R } = t;
709
+ return xt({ id: h, ids: x, getRootNode: R });
710
+ }, [t]), n = (...h) => {
711
+ e.debug && console.log(...h);
712
+ }, o = e.props?.({ props: Ze(t), scope: r }) ?? t, c = on(o), l = e.context?.({
713
+ prop: c,
714
+ bindable: me,
715
+ scope: r,
716
+ flush: Ie,
717
+ getContext() {
718
+ return u;
719
+ },
720
+ getComputed() {
721
+ return S;
722
+ },
723
+ getRefs() {
724
+ return p;
725
+ }
726
+ }), f = nt(l), u = {
727
+ get(h) {
728
+ return f.current?.[h].ref.current;
729
+ },
730
+ set(h, x) {
731
+ f.current?.[h].set(x);
732
+ },
733
+ initial(h) {
734
+ return f.current?.[h].initial;
735
+ },
736
+ hash(h) {
737
+ const x = f.current?.[h].get();
738
+ return f.current?.[h].hash(x);
739
+ }
740
+ }, s = L(/* @__PURE__ */ new Map()), g = L(null), a = L(null), i = L({ type: "" }), d = () => ({
741
+ ...i.current,
742
+ current() {
743
+ return i.current;
744
+ },
745
+ previous() {
746
+ return a.current;
747
+ }
748
+ }), m = () => ({
749
+ ...A,
750
+ matches(...h) {
751
+ return h.includes(A.ref.current);
752
+ },
753
+ hasTag(h) {
754
+ return !!e.states[A.ref.current]?.tags?.includes(h);
755
+ }
756
+ }), p = tn(e.refs?.({ prop: c, context: u }) ?? {}), y = () => ({
757
+ state: m(),
758
+ context: u,
759
+ event: d(),
760
+ prop: c,
761
+ send: M,
762
+ action: v,
763
+ guard: w,
764
+ track: nn,
765
+ refs: p,
766
+ computed: S,
767
+ flush: Ie,
768
+ scope: r,
769
+ choose: E
770
+ }), v = (h) => {
771
+ const x = ie(h) ? h(y()) : h;
772
+ if (!x) return;
773
+ const R = x.map((O) => {
774
+ const T = e.implementations?.actions?.[O];
775
+ return T || He(`[zag-js] No implementation found for action "${JSON.stringify(O)}"`), T;
776
+ });
777
+ for (const O of R)
778
+ O?.(y());
779
+ }, w = (h) => ie(h) ? h(y()) : e.implementations?.guards?.[h](y()), b = (h) => {
780
+ const x = ie(h) ? h(y()) : h;
781
+ if (!x) return;
782
+ const R = x.map((T) => {
783
+ const P = e.implementations?.effects?.[T];
784
+ return P || He(`[zag-js] No implementation found for effect "${JSON.stringify(T)}"`), P;
785
+ }), O = [];
786
+ for (const T of R) {
787
+ const P = T?.(y());
788
+ P && O.push(P);
789
+ }
790
+ return () => O.forEach((T) => T?.());
791
+ }, E = (h) => Ot(h).find((x) => {
792
+ let R = !x.guard;
793
+ return St(x.guard) ? R = !!w(x.guard) : ie(x.guard) && (R = x.guard(y())), R;
794
+ }), S = (h) => {
795
+ wt(e.computed, () => "[zag-js] No computed object found on machine");
796
+ const x = e.computed[h];
797
+ return x({
798
+ context: u,
799
+ event: d(),
800
+ prop: c,
801
+ refs: p,
802
+ scope: r,
803
+ computed: S
804
+ });
805
+ }, A = me(() => ({
806
+ defaultValue: e.initialState({ prop: c }),
807
+ onChange(h, x) {
808
+ x && (s.current.get(x)?.(), s.current.delete(x)), x && v(e.states[x]?.exit), v(g.current?.actions);
809
+ const R = b(e.states[h]?.effects);
810
+ if (R && s.current.set(h, R), x === Oe) {
811
+ v(e.entry);
812
+ const O = b(e.effects);
813
+ O && s.current.set(Oe, O);
814
+ }
815
+ v(e.states[h]?.entry);
816
+ }
817
+ })), _ = L(void 0), D = L(re.NotStarted);
818
+ tt(() => {
819
+ queueMicrotask(() => {
820
+ const R = D.current === re.Started;
821
+ D.current = re.Started, n(R ? "rehydrating..." : "initializing...");
822
+ const O = _.current ?? A.initial;
823
+ A.invoke(O, R ? A.get() : Oe);
824
+ });
825
+ const h = s.current, x = A.ref.current;
826
+ return () => {
827
+ n("unmounting..."), _.current = x, D.current = re.Stopped, h.forEach((R) => R?.()), s.current = /* @__PURE__ */ new Map(), g.current = null, queueMicrotask(() => {
828
+ v(e.exit);
829
+ });
830
+ };
831
+ }, []);
832
+ const V = () => "ref" in A ? A.ref.current : A.get(), M = (h) => {
833
+ queueMicrotask(() => {
834
+ if (D.current !== re.Started) return;
835
+ a.current = i.current, i.current = h, n("send", h);
836
+ let x = V();
837
+ const R = (
838
+ // @ts-ignore
839
+ e.states[x].on?.[h.type] ?? // @ts-ignore
840
+ e.on?.[h.type]
841
+ ), O = E(R);
842
+ if (!O) return;
843
+ g.current = O;
844
+ const T = O.target ?? x;
845
+ n("transition", O);
846
+ const P = T !== x;
847
+ P ? ve.flushSync(() => A.set(T)) : O.reenter && !P ? A.invoke(x, x) : v(O.actions ?? []);
848
+ });
849
+ };
850
+ return e.watch?.(y()), {
851
+ state: m(),
852
+ send: M,
853
+ context: u,
854
+ prop: c,
855
+ scope: r,
856
+ refs: p,
857
+ computed: S,
858
+ event: d(),
859
+ getStatus: () => D.current
860
+ };
861
+ }
862
+ function nt(e) {
863
+ const t = L(e);
864
+ return t.current = e, t;
865
+ }
866
+ function on(e) {
867
+ const t = nt(e);
868
+ return function(n) {
869
+ return t.current[n];
870
+ };
871
+ }
872
+ function Ie(e) {
873
+ queueMicrotask(() => {
874
+ ve.flushSync(() => e());
875
+ });
876
+ }
877
+ var Er = Gt((e) => e);
878
+ function sn(e, t = {}) {
879
+ const { sync: r = !1 } = t, n = cn(e);
880
+ return Ut(
881
+ // biome-ignore lint/suspicious/noExplicitAny: <explanation>
882
+ (...o) => r ? queueMicrotask(() => n.current?.(...o)) : n.current?.(...o),
883
+ [r, n]
884
+ );
885
+ }
886
+ function cn(e) {
887
+ const t = L(e);
888
+ return t.current = e, t;
889
+ }
890
+ const Rr = (e = {}) => {
891
+ const { lazyMount: t, unmountOnExit: r, present: n, skipAnimationOnMount: o = !1, ...c } = e, l = L(!1), f = {
892
+ ...c,
893
+ present: n,
894
+ onExitComplete: sn(e.onExitComplete)
895
+ }, u = rn(Jt, f), s = Xt(u);
896
+ s.present && (l.current = !0);
897
+ const g = !s.present && !l.current && t || r && !s.present && l.current, a = () => ({
898
+ "data-state": s.skip && o ? void 0 : n ? "open" : "closed",
899
+ hidden: !s.present
900
+ });
901
+ return {
902
+ ref: s.setNode,
903
+ getPresenceProps: a,
904
+ present: s.present,
905
+ unmounted: g
906
+ };
907
+ }, [Ar, Tr] = Ne({
908
+ name: "PresenceContext",
909
+ hookName: "usePresenceContext",
910
+ providerName: "<PresenceProvider />"
911
+ }), an = ["top", "right", "bottom", "left"], X = Math.min, k = Math.max, pe = Math.round, ge = Math.floor, W = (e) => ({
912
+ x: e,
913
+ y: e
914
+ }), ln = {
915
+ left: "right",
916
+ right: "left",
917
+ bottom: "top",
918
+ top: "bottom"
919
+ }, un = {
920
+ start: "end",
921
+ end: "start"
922
+ };
923
+ function Te(e, t, r) {
924
+ return k(e, X(t, r));
925
+ }
926
+ function Y(e, t) {
927
+ return typeof e == "function" ? e(t) : e;
928
+ }
929
+ function G(e) {
930
+ return e.split("-")[0];
931
+ }
932
+ function te(e) {
933
+ return e.split("-")[1];
934
+ }
935
+ function Ce(e) {
936
+ return e === "x" ? "y" : "x";
937
+ }
938
+ function De(e) {
939
+ return e === "y" ? "height" : "width";
940
+ }
941
+ function I(e) {
942
+ return ["top", "bottom"].includes(G(e)) ? "y" : "x";
943
+ }
944
+ function Me(e) {
945
+ return Ce(I(e));
946
+ }
947
+ function fn(e, t, r) {
948
+ r === void 0 && (r = !1);
949
+ const n = te(e), o = Me(e), c = De(o);
950
+ let l = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
951
+ return t.reference[c] > t.floating[c] && (l = ye(l)), [l, ye(l)];
952
+ }
953
+ function dn(e) {
954
+ const t = ye(e);
955
+ return [_e(e), t, _e(t)];
956
+ }
957
+ function _e(e) {
958
+ return e.replace(/start|end/g, (t) => un[t]);
959
+ }
960
+ function gn(e, t, r) {
961
+ const n = ["left", "right"], o = ["right", "left"], c = ["top", "bottom"], l = ["bottom", "top"];
962
+ switch (e) {
963
+ case "top":
964
+ case "bottom":
965
+ return r ? t ? o : n : t ? n : o;
966
+ case "left":
967
+ case "right":
968
+ return t ? c : l;
969
+ default:
970
+ return [];
971
+ }
972
+ }
973
+ function mn(e, t, r, n) {
974
+ const o = te(e);
975
+ let c = gn(G(e), r === "start", n);
976
+ return o && (c = c.map((l) => l + "-" + o), t && (c = c.concat(c.map(_e)))), c;
977
+ }
978
+ function ye(e) {
979
+ return e.replace(/left|right|bottom|top/g, (t) => ln[t]);
980
+ }
981
+ function pn(e) {
982
+ return {
983
+ top: 0,
984
+ right: 0,
985
+ bottom: 0,
986
+ left: 0,
987
+ ...e
988
+ };
989
+ }
990
+ function rt(e) {
991
+ return typeof e != "number" ? pn(e) : {
992
+ top: e,
993
+ right: e,
994
+ bottom: e,
995
+ left: e
996
+ };
997
+ }
998
+ function he(e) {
999
+ const {
1000
+ x: t,
1001
+ y: r,
1002
+ width: n,
1003
+ height: o
1004
+ } = e;
1005
+ return {
1006
+ width: n,
1007
+ height: o,
1008
+ top: r,
1009
+ left: t,
1010
+ right: t + n,
1011
+ bottom: r + o,
1012
+ x: t,
1013
+ y: r
1014
+ };
1015
+ }
1016
+ function We(e, t, r) {
1017
+ let {
1018
+ reference: n,
1019
+ floating: o
1020
+ } = e;
1021
+ const c = I(t), l = Me(t), f = De(l), u = G(t), s = c === "y", g = n.x + n.width / 2 - o.width / 2, a = n.y + n.height / 2 - o.height / 2, i = n[f] / 2 - o[f] / 2;
1022
+ let d;
1023
+ switch (u) {
1024
+ case "top":
1025
+ d = {
1026
+ x: g,
1027
+ y: n.y - o.height
1028
+ };
1029
+ break;
1030
+ case "bottom":
1031
+ d = {
1032
+ x: g,
1033
+ y: n.y + n.height
1034
+ };
1035
+ break;
1036
+ case "right":
1037
+ d = {
1038
+ x: n.x + n.width,
1039
+ y: a
1040
+ };
1041
+ break;
1042
+ case "left":
1043
+ d = {
1044
+ x: n.x - o.width,
1045
+ y: a
1046
+ };
1047
+ break;
1048
+ default:
1049
+ d = {
1050
+ x: n.x,
1051
+ y: n.y
1052
+ };
1053
+ }
1054
+ switch (te(t)) {
1055
+ case "start":
1056
+ d[l] -= i * (r && s ? -1 : 1);
1057
+ break;
1058
+ case "end":
1059
+ d[l] += i * (r && s ? -1 : 1);
1060
+ break;
1061
+ }
1062
+ return d;
1063
+ }
1064
+ const yn = async (e, t, r) => {
1065
+ const {
1066
+ placement: n = "bottom",
1067
+ strategy: o = "absolute",
1068
+ middleware: c = [],
1069
+ platform: l
1070
+ } = r, f = c.filter(Boolean), u = await (l.isRTL == null ? void 0 : l.isRTL(t));
1071
+ let s = await l.getElementRects({
1072
+ reference: e,
1073
+ floating: t,
1074
+ strategy: o
1075
+ }), {
1076
+ x: g,
1077
+ y: a
1078
+ } = We(s, n, u), i = n, d = {}, m = 0;
1079
+ for (let p = 0; p < f.length; p++) {
1080
+ const {
1081
+ name: y,
1082
+ fn: v
1083
+ } = f[p], {
1084
+ x: w,
1085
+ y: b,
1086
+ data: E,
1087
+ reset: S
1088
+ } = await v({
1089
+ x: g,
1090
+ y: a,
1091
+ initialPlacement: n,
1092
+ placement: i,
1093
+ strategy: o,
1094
+ middlewareData: d,
1095
+ rects: s,
1096
+ platform: l,
1097
+ elements: {
1098
+ reference: e,
1099
+ floating: t
1100
+ }
1101
+ });
1102
+ g = w ?? g, a = b ?? a, d = {
1103
+ ...d,
1104
+ [y]: {
1105
+ ...d[y],
1106
+ ...E
1107
+ }
1108
+ }, S && m <= 50 && (m++, typeof S == "object" && (S.placement && (i = S.placement), S.rects && (s = S.rects === !0 ? await l.getElementRects({
1109
+ reference: e,
1110
+ floating: t,
1111
+ strategy: o
1112
+ }) : S.rects), {
1113
+ x: g,
1114
+ y: a
1115
+ } = We(s, i, u)), p = -1);
1116
+ }
1117
+ return {
1118
+ x: g,
1119
+ y: a,
1120
+ placement: i,
1121
+ strategy: o,
1122
+ middlewareData: d
1123
+ };
1124
+ };
1125
+ async function ce(e, t) {
1126
+ var r;
1127
+ t === void 0 && (t = {});
1128
+ const {
1129
+ x: n,
1130
+ y: o,
1131
+ platform: c,
1132
+ rects: l,
1133
+ elements: f,
1134
+ strategy: u
1135
+ } = e, {
1136
+ boundary: s = "clippingAncestors",
1137
+ rootBoundary: g = "viewport",
1138
+ elementContext: a = "floating",
1139
+ altBoundary: i = !1,
1140
+ padding: d = 0
1141
+ } = Y(t, e), m = rt(d), y = f[i ? a === "floating" ? "reference" : "floating" : a], v = he(await c.getClippingRect({
1142
+ element: (r = await (c.isElement == null ? void 0 : c.isElement(y))) == null || r ? y : y.contextElement || await (c.getDocumentElement == null ? void 0 : c.getDocumentElement(f.floating)),
1143
+ boundary: s,
1144
+ rootBoundary: g,
1145
+ strategy: u
1146
+ })), w = a === "floating" ? {
1147
+ x: n,
1148
+ y: o,
1149
+ width: l.floating.width,
1150
+ height: l.floating.height
1151
+ } : l.reference, b = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(f.floating)), E = await (c.isElement == null ? void 0 : c.isElement(b)) ? await (c.getScale == null ? void 0 : c.getScale(b)) || {
1152
+ x: 1,
1153
+ y: 1
1154
+ } : {
1155
+ x: 1,
1156
+ y: 1
1157
+ }, S = he(c.convertOffsetParentRelativeRectToViewportRelativeRect ? await c.convertOffsetParentRelativeRectToViewportRelativeRect({
1158
+ elements: f,
1159
+ rect: w,
1160
+ offsetParent: b,
1161
+ strategy: u
1162
+ }) : w);
1163
+ return {
1164
+ top: (v.top - S.top + m.top) / E.y,
1165
+ bottom: (S.bottom - v.bottom + m.bottom) / E.y,
1166
+ left: (v.left - S.left + m.left) / E.x,
1167
+ right: (S.right - v.right + m.right) / E.x
1168
+ };
1169
+ }
1170
+ const hn = (e) => ({
1171
+ name: "arrow",
1172
+ options: e,
1173
+ async fn(t) {
1174
+ const {
1175
+ x: r,
1176
+ y: n,
1177
+ placement: o,
1178
+ rects: c,
1179
+ platform: l,
1180
+ elements: f,
1181
+ middlewareData: u
1182
+ } = t, {
1183
+ element: s,
1184
+ padding: g = 0
1185
+ } = Y(e, t) || {};
1186
+ if (s == null)
1187
+ return {};
1188
+ const a = rt(g), i = {
1189
+ x: r,
1190
+ y: n
1191
+ }, d = Me(o), m = De(d), p = await l.getDimensions(s), y = d === "y", v = y ? "top" : "left", w = y ? "bottom" : "right", b = y ? "clientHeight" : "clientWidth", E = c.reference[m] + c.reference[d] - i[d] - c.floating[m], S = i[d] - c.reference[d], A = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(s));
1192
+ let _ = A ? A[b] : 0;
1193
+ (!_ || !await (l.isElement == null ? void 0 : l.isElement(A))) && (_ = f.floating[b] || c.floating[m]);
1194
+ const D = E / 2 - S / 2, V = _ / 2 - p[m] / 2 - 1, M = X(a[v], V), h = X(a[w], V), x = M, R = _ - p[m] - h, O = _ / 2 - p[m] / 2 + D, T = Te(x, O, R), P = !u.arrow && te(o) != null && O !== T && c.reference[m] / 2 - (O < x ? M : h) - p[m] / 2 < 0, H = P ? O < x ? O - x : O - R : 0;
1195
+ return {
1196
+ [d]: i[d] + H,
1197
+ data: {
1198
+ [d]: T,
1199
+ centerOffset: O - T - H,
1200
+ ...P && {
1201
+ alignmentOffset: H
1202
+ }
1203
+ },
1204
+ reset: P
1205
+ };
1206
+ }
1207
+ }), vn = function(e) {
1208
+ return e === void 0 && (e = {}), {
1209
+ name: "flip",
1210
+ options: e,
1211
+ async fn(t) {
1212
+ var r, n;
1213
+ const {
1214
+ placement: o,
1215
+ middlewareData: c,
1216
+ rects: l,
1217
+ initialPlacement: f,
1218
+ platform: u,
1219
+ elements: s
1220
+ } = t, {
1221
+ mainAxis: g = !0,
1222
+ crossAxis: a = !0,
1223
+ fallbackPlacements: i,
1224
+ fallbackStrategy: d = "bestFit",
1225
+ fallbackAxisSideDirection: m = "none",
1226
+ flipAlignment: p = !0,
1227
+ ...y
1228
+ } = Y(e, t);
1229
+ if ((r = c.arrow) != null && r.alignmentOffset)
1230
+ return {};
1231
+ const v = G(o), w = I(f), b = G(f) === f, E = await (u.isRTL == null ? void 0 : u.isRTL(s.floating)), S = i || (b || !p ? [ye(f)] : dn(f)), A = m !== "none";
1232
+ !i && A && S.push(...mn(f, p, m, E));
1233
+ const _ = [f, ...S], D = await ce(t, y), V = [];
1234
+ let M = ((n = c.flip) == null ? void 0 : n.overflows) || [];
1235
+ if (g && V.push(D[v]), a) {
1236
+ const O = fn(o, l, E);
1237
+ V.push(D[O[0]], D[O[1]]);
1238
+ }
1239
+ if (M = [...M, {
1240
+ placement: o,
1241
+ overflows: V
1242
+ }], !V.every((O) => O <= 0)) {
1243
+ var h, x;
1244
+ const O = (((h = c.flip) == null ? void 0 : h.index) || 0) + 1, T = _[O];
1245
+ if (T && (!(a === "alignment" ? w !== I(T) : !1) || // We leave the current main axis only if every placement on that axis
1246
+ // overflows the main axis.
1247
+ M.every((z) => z.overflows[0] > 0 && I(z.placement) === w)))
1248
+ return {
1249
+ data: {
1250
+ index: O,
1251
+ overflows: M
1252
+ },
1253
+ reset: {
1254
+ placement: T
1255
+ }
1256
+ };
1257
+ let P = (x = M.filter((H) => H.overflows[0] <= 0).sort((H, z) => H.overflows[1] - z.overflows[1])[0]) == null ? void 0 : x.placement;
1258
+ if (!P)
1259
+ switch (d) {
1260
+ case "bestFit": {
1261
+ var R;
1262
+ const H = (R = M.filter((z) => {
1263
+ if (A) {
1264
+ const K = I(z.placement);
1265
+ return K === w || // Create a bias to the `y` side axis due to horizontal
1266
+ // reading directions favoring greater width.
1267
+ K === "y";
1268
+ }
1269
+ return !0;
1270
+ }).map((z) => [z.placement, z.overflows.filter((K) => K > 0).reduce((K, gt) => K + gt, 0)]).sort((z, K) => z[1] - K[1])[0]) == null ? void 0 : R[0];
1271
+ H && (P = H);
1272
+ break;
1273
+ }
1274
+ case "initialPlacement":
1275
+ P = f;
1276
+ break;
1277
+ }
1278
+ if (o !== P)
1279
+ return {
1280
+ reset: {
1281
+ placement: P
1282
+ }
1283
+ };
1284
+ }
1285
+ return {};
1286
+ }
1287
+ };
1288
+ };
1289
+ function je(e, t) {
1290
+ return {
1291
+ top: e.top - t.height,
1292
+ right: e.right - t.width,
1293
+ bottom: e.bottom - t.height,
1294
+ left: e.left - t.width
1295
+ };
1296
+ }
1297
+ function Be(e) {
1298
+ return an.some((t) => e[t] >= 0);
1299
+ }
1300
+ const xn = function(e) {
1301
+ return e === void 0 && (e = {}), {
1302
+ name: "hide",
1303
+ options: e,
1304
+ async fn(t) {
1305
+ const {
1306
+ rects: r
1307
+ } = t, {
1308
+ strategy: n = "referenceHidden",
1309
+ ...o
1310
+ } = Y(e, t);
1311
+ switch (n) {
1312
+ case "referenceHidden": {
1313
+ const c = await ce(t, {
1314
+ ...o,
1315
+ elementContext: "reference"
1316
+ }), l = je(c, r.reference);
1317
+ return {
1318
+ data: {
1319
+ referenceHiddenOffsets: l,
1320
+ referenceHidden: Be(l)
1321
+ }
1322
+ };
1323
+ }
1324
+ case "escaped": {
1325
+ const c = await ce(t, {
1326
+ ...o,
1327
+ altBoundary: !0
1328
+ }), l = je(c, r.floating);
1329
+ return {
1330
+ data: {
1331
+ escapedOffsets: l,
1332
+ escaped: Be(l)
1333
+ }
1334
+ };
1335
+ }
1336
+ default:
1337
+ return {};
1338
+ }
1339
+ }
1340
+ };
1341
+ };
1342
+ async function wn(e, t) {
1343
+ const {
1344
+ placement: r,
1345
+ platform: n,
1346
+ elements: o
1347
+ } = e, c = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), l = G(r), f = te(r), u = I(r) === "y", s = ["left", "top"].includes(l) ? -1 : 1, g = c && u ? -1 : 1, a = Y(t, e);
1348
+ let {
1349
+ mainAxis: i,
1350
+ crossAxis: d,
1351
+ alignmentAxis: m
1352
+ } = typeof a == "number" ? {
1353
+ mainAxis: a,
1354
+ crossAxis: 0,
1355
+ alignmentAxis: null
1356
+ } : {
1357
+ mainAxis: a.mainAxis || 0,
1358
+ crossAxis: a.crossAxis || 0,
1359
+ alignmentAxis: a.alignmentAxis
1360
+ };
1361
+ return f && typeof m == "number" && (d = f === "end" ? m * -1 : m), u ? {
1362
+ x: d * g,
1363
+ y: i * s
1364
+ } : {
1365
+ x: i * s,
1366
+ y: d * g
1367
+ };
1368
+ }
1369
+ const bn = function(e) {
1370
+ return e === void 0 && (e = 0), {
1371
+ name: "offset",
1372
+ options: e,
1373
+ async fn(t) {
1374
+ var r, n;
1375
+ const {
1376
+ x: o,
1377
+ y: c,
1378
+ placement: l,
1379
+ middlewareData: f
1380
+ } = t, u = await wn(t, e);
1381
+ return l === ((r = f.offset) == null ? void 0 : r.placement) && (n = f.arrow) != null && n.alignmentOffset ? {} : {
1382
+ x: o + u.x,
1383
+ y: c + u.y,
1384
+ data: {
1385
+ ...u,
1386
+ placement: l
1387
+ }
1388
+ };
1389
+ }
1390
+ };
1391
+ }, On = function(e) {
1392
+ return e === void 0 && (e = {}), {
1393
+ name: "shift",
1394
+ options: e,
1395
+ async fn(t) {
1396
+ const {
1397
+ x: r,
1398
+ y: n,
1399
+ placement: o
1400
+ } = t, {
1401
+ mainAxis: c = !0,
1402
+ crossAxis: l = !1,
1403
+ limiter: f = {
1404
+ fn: (y) => {
1405
+ let {
1406
+ x: v,
1407
+ y: w
1408
+ } = y;
1409
+ return {
1410
+ x: v,
1411
+ y: w
1412
+ };
1413
+ }
1414
+ },
1415
+ ...u
1416
+ } = Y(e, t), s = {
1417
+ x: r,
1418
+ y: n
1419
+ }, g = await ce(t, u), a = I(G(o)), i = Ce(a);
1420
+ let d = s[i], m = s[a];
1421
+ if (c) {
1422
+ const y = i === "y" ? "top" : "left", v = i === "y" ? "bottom" : "right", w = d + g[y], b = d - g[v];
1423
+ d = Te(w, d, b);
1424
+ }
1425
+ if (l) {
1426
+ const y = a === "y" ? "top" : "left", v = a === "y" ? "bottom" : "right", w = m + g[y], b = m - g[v];
1427
+ m = Te(w, m, b);
1428
+ }
1429
+ const p = f.fn({
1430
+ ...t,
1431
+ [i]: d,
1432
+ [a]: m
1433
+ });
1434
+ return {
1435
+ ...p,
1436
+ data: {
1437
+ x: p.x - r,
1438
+ y: p.y - n,
1439
+ enabled: {
1440
+ [i]: c,
1441
+ [a]: l
1442
+ }
1443
+ }
1444
+ };
1445
+ }
1446
+ };
1447
+ }, Sn = function(e) {
1448
+ return e === void 0 && (e = {}), {
1449
+ options: e,
1450
+ fn(t) {
1451
+ const {
1452
+ x: r,
1453
+ y: n,
1454
+ placement: o,
1455
+ rects: c,
1456
+ middlewareData: l
1457
+ } = t, {
1458
+ offset: f = 0,
1459
+ mainAxis: u = !0,
1460
+ crossAxis: s = !0
1461
+ } = Y(e, t), g = {
1462
+ x: r,
1463
+ y: n
1464
+ }, a = I(o), i = Ce(a);
1465
+ let d = g[i], m = g[a];
1466
+ const p = Y(f, t), y = typeof p == "number" ? {
1467
+ mainAxis: p,
1468
+ crossAxis: 0
1469
+ } : {
1470
+ mainAxis: 0,
1471
+ crossAxis: 0,
1472
+ ...p
1473
+ };
1474
+ if (u) {
1475
+ const b = i === "y" ? "height" : "width", E = c.reference[i] - c.floating[b] + y.mainAxis, S = c.reference[i] + c.reference[b] - y.mainAxis;
1476
+ d < E ? d = E : d > S && (d = S);
1477
+ }
1478
+ if (s) {
1479
+ var v, w;
1480
+ const b = i === "y" ? "width" : "height", E = ["top", "left"].includes(G(o)), S = c.reference[a] - c.floating[b] + (E && ((v = l.offset) == null ? void 0 : v[a]) || 0) + (E ? 0 : y.crossAxis), A = c.reference[a] + c.reference[b] + (E ? 0 : ((w = l.offset) == null ? void 0 : w[a]) || 0) - (E ? y.crossAxis : 0);
1481
+ m < S ? m = S : m > A && (m = A);
1482
+ }
1483
+ return {
1484
+ [i]: d,
1485
+ [a]: m
1486
+ };
1487
+ }
1488
+ };
1489
+ }, En = function(e) {
1490
+ return e === void 0 && (e = {}), {
1491
+ name: "size",
1492
+ options: e,
1493
+ async fn(t) {
1494
+ var r, n;
1495
+ const {
1496
+ placement: o,
1497
+ rects: c,
1498
+ platform: l,
1499
+ elements: f
1500
+ } = t, {
1501
+ apply: u = () => {
1502
+ },
1503
+ ...s
1504
+ } = Y(e, t), g = await ce(t, s), a = G(o), i = te(o), d = I(o) === "y", {
1505
+ width: m,
1506
+ height: p
1507
+ } = c.floating;
1508
+ let y, v;
1509
+ a === "top" || a === "bottom" ? (y = a, v = i === (await (l.isRTL == null ? void 0 : l.isRTL(f.floating)) ? "start" : "end") ? "left" : "right") : (v = a, y = i === "end" ? "top" : "bottom");
1510
+ const w = p - g.top - g.bottom, b = m - g.left - g.right, E = X(p - g[y], w), S = X(m - g[v], b), A = !t.middlewareData.shift;
1511
+ let _ = E, D = S;
1512
+ if ((r = t.middlewareData.shift) != null && r.enabled.x && (D = b), (n = t.middlewareData.shift) != null && n.enabled.y && (_ = w), A && !i) {
1513
+ const M = k(g.left, 0), h = k(g.right, 0), x = k(g.top, 0), R = k(g.bottom, 0);
1514
+ d ? D = m - 2 * (M !== 0 || h !== 0 ? M + h : k(g.left, g.right)) : _ = p - 2 * (x !== 0 || R !== 0 ? x + R : k(g.top, g.bottom));
1515
+ }
1516
+ await u({
1517
+ ...t,
1518
+ availableWidth: D,
1519
+ availableHeight: _
1520
+ });
1521
+ const V = await l.getDimensions(f.floating);
1522
+ return m !== V.width || p !== V.height ? {
1523
+ reset: {
1524
+ rects: !0
1525
+ }
1526
+ } : {};
1527
+ }
1528
+ };
1529
+ };
1530
+ function xe() {
1531
+ return typeof window < "u";
1532
+ }
1533
+ function ne(e) {
1534
+ return ot(e) ? (e.nodeName || "").toLowerCase() : "#document";
1535
+ }
1536
+ function $(e) {
1537
+ var t;
1538
+ return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1539
+ }
1540
+ function B(e) {
1541
+ var t;
1542
+ return (t = (ot(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1543
+ }
1544
+ function ot(e) {
1545
+ return xe() ? e instanceof Node || e instanceof $(e).Node : !1;
1546
+ }
1547
+ function U(e) {
1548
+ return xe() ? e instanceof Element || e instanceof $(e).Element : !1;
1549
+ }
1550
+ function j(e) {
1551
+ return xe() ? e instanceof HTMLElement || e instanceof $(e).HTMLElement : !1;
1552
+ }
1553
+ function qe(e) {
1554
+ return !xe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof $(e).ShadowRoot;
1555
+ }
1556
+ function le(e) {
1557
+ const {
1558
+ overflow: t,
1559
+ overflowX: r,
1560
+ overflowY: n,
1561
+ display: o
1562
+ } = F(e);
1563
+ return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !["inline", "contents"].includes(o);
1564
+ }
1565
+ function Rn(e) {
1566
+ return ["table", "td", "th"].includes(ne(e));
1567
+ }
1568
+ function we(e) {
1569
+ return [":popover-open", ":modal"].some((t) => {
1570
+ try {
1571
+ return e.matches(t);
1572
+ } catch {
1573
+ return !1;
1574
+ }
1575
+ });
1576
+ }
1577
+ function Le(e) {
1578
+ const t = ke(), r = U(e) ? F(e) : e;
1579
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
1580
+ }
1581
+ function An(e) {
1582
+ let t = J(e);
1583
+ for (; j(t) && !ee(t); ) {
1584
+ if (Le(t))
1585
+ return t;
1586
+ if (we(t))
1587
+ return null;
1588
+ t = J(t);
1589
+ }
1590
+ return null;
1591
+ }
1592
+ function ke() {
1593
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1594
+ }
1595
+ function ee(e) {
1596
+ return ["html", "body", "#document"].includes(ne(e));
1597
+ }
1598
+ function F(e) {
1599
+ return $(e).getComputedStyle(e);
1600
+ }
1601
+ function be(e) {
1602
+ return U(e) ? {
1603
+ scrollLeft: e.scrollLeft,
1604
+ scrollTop: e.scrollTop
1605
+ } : {
1606
+ scrollLeft: e.scrollX,
1607
+ scrollTop: e.scrollY
1608
+ };
1609
+ }
1610
+ function J(e) {
1611
+ if (ne(e) === "html")
1612
+ return e;
1613
+ const t = (
1614
+ // Step into the shadow DOM of the parent of a slotted node.
1615
+ e.assignedSlot || // DOM Element detected.
1616
+ e.parentNode || // ShadowRoot detected.
1617
+ qe(e) && e.host || // Fallback.
1618
+ B(e)
1619
+ );
1620
+ return qe(t) ? t.host : t;
1621
+ }
1622
+ function it(e) {
1623
+ const t = J(e);
1624
+ return ee(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : j(t) && le(t) ? t : it(t);
1625
+ }
1626
+ function ae(e, t, r) {
1627
+ var n;
1628
+ t === void 0 && (t = []), r === void 0 && (r = !0);
1629
+ const o = it(e), c = o === ((n = e.ownerDocument) == null ? void 0 : n.body), l = $(o);
1630
+ if (c) {
1631
+ const f = Pe(l);
1632
+ return t.concat(l, l.visualViewport || [], le(o) ? o : [], f && r ? ae(f) : []);
1633
+ }
1634
+ return t.concat(o, ae(o, [], r));
1635
+ }
1636
+ function Pe(e) {
1637
+ return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1638
+ }
1639
+ function st(e) {
1640
+ const t = F(e);
1641
+ let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
1642
+ const o = j(e), c = o ? e.offsetWidth : r, l = o ? e.offsetHeight : n, f = pe(r) !== c || pe(n) !== l;
1643
+ return f && (r = c, n = l), {
1644
+ width: r,
1645
+ height: n,
1646
+ $: f
1647
+ };
1648
+ }
1649
+ function $e(e) {
1650
+ return U(e) ? e : e.contextElement;
1651
+ }
1652
+ function Q(e) {
1653
+ const t = $e(e);
1654
+ if (!j(t))
1655
+ return W(1);
1656
+ const r = t.getBoundingClientRect(), {
1657
+ width: n,
1658
+ height: o,
1659
+ $: c
1660
+ } = st(t);
1661
+ let l = (c ? pe(r.width) : r.width) / n, f = (c ? pe(r.height) : r.height) / o;
1662
+ return (!l || !Number.isFinite(l)) && (l = 1), (!f || !Number.isFinite(f)) && (f = 1), {
1663
+ x: l,
1664
+ y: f
1665
+ };
1666
+ }
1667
+ const Tn = /* @__PURE__ */ W(0);
1668
+ function ct(e) {
1669
+ const t = $(e);
1670
+ return !ke() || !t.visualViewport ? Tn : {
1671
+ x: t.visualViewport.offsetLeft,
1672
+ y: t.visualViewport.offsetTop
1673
+ };
1674
+ }
1675
+ function _n(e, t, r) {
1676
+ return t === void 0 && (t = !1), !r || t && r !== $(e) ? !1 : t;
1677
+ }
1678
+ function Z(e, t, r, n) {
1679
+ t === void 0 && (t = !1), r === void 0 && (r = !1);
1680
+ const o = e.getBoundingClientRect(), c = $e(e);
1681
+ let l = W(1);
1682
+ t && (n ? U(n) && (l = Q(n)) : l = Q(e));
1683
+ const f = _n(c, r, n) ? ct(c) : W(0);
1684
+ let u = (o.left + f.x) / l.x, s = (o.top + f.y) / l.y, g = o.width / l.x, a = o.height / l.y;
1685
+ if (c) {
1686
+ const i = $(c), d = n && U(n) ? $(n) : n;
1687
+ let m = i, p = Pe(m);
1688
+ for (; p && n && d !== m; ) {
1689
+ const y = Q(p), v = p.getBoundingClientRect(), w = F(p), b = v.left + (p.clientLeft + parseFloat(w.paddingLeft)) * y.x, E = v.top + (p.clientTop + parseFloat(w.paddingTop)) * y.y;
1690
+ u *= y.x, s *= y.y, g *= y.x, a *= y.y, u += b, s += E, m = $(p), p = Pe(m);
1691
+ }
1692
+ }
1693
+ return he({
1694
+ width: g,
1695
+ height: a,
1696
+ x: u,
1697
+ y: s
1698
+ });
1699
+ }
1700
+ function Ve(e, t) {
1701
+ const r = be(e).scrollLeft;
1702
+ return t ? t.left + r : Z(B(e)).left + r;
1703
+ }
1704
+ function at(e, t, r) {
1705
+ r === void 0 && (r = !1);
1706
+ const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - (r ? 0 : (
1707
+ // RTL <body> scrollbar.
1708
+ Ve(e, n)
1709
+ )), c = n.top + t.scrollTop;
1710
+ return {
1711
+ x: o,
1712
+ y: c
1713
+ };
1714
+ }
1715
+ function Pn(e) {
1716
+ let {
1717
+ elements: t,
1718
+ rect: r,
1719
+ offsetParent: n,
1720
+ strategy: o
1721
+ } = e;
1722
+ const c = o === "fixed", l = B(n), f = t ? we(t.floating) : !1;
1723
+ if (n === l || f && c)
1724
+ return r;
1725
+ let u = {
1726
+ scrollLeft: 0,
1727
+ scrollTop: 0
1728
+ }, s = W(1);
1729
+ const g = W(0), a = j(n);
1730
+ if ((a || !a && !c) && ((ne(n) !== "body" || le(l)) && (u = be(n)), j(n))) {
1731
+ const d = Z(n);
1732
+ s = Q(n), g.x = d.x + n.clientLeft, g.y = d.y + n.clientTop;
1733
+ }
1734
+ const i = l && !a && !c ? at(l, u, !0) : W(0);
1735
+ return {
1736
+ width: r.width * s.x,
1737
+ height: r.height * s.y,
1738
+ x: r.x * s.x - u.scrollLeft * s.x + g.x + i.x,
1739
+ y: r.y * s.y - u.scrollTop * s.y + g.y + i.y
1740
+ };
1741
+ }
1742
+ function Nn(e) {
1743
+ return Array.from(e.getClientRects());
1744
+ }
1745
+ function Cn(e) {
1746
+ const t = B(e), r = be(e), n = e.ownerDocument.body, o = k(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), c = k(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
1747
+ let l = -r.scrollLeft + Ve(e);
1748
+ const f = -r.scrollTop;
1749
+ return F(n).direction === "rtl" && (l += k(t.clientWidth, n.clientWidth) - o), {
1750
+ width: o,
1751
+ height: c,
1752
+ x: l,
1753
+ y: f
1754
+ };
1755
+ }
1756
+ function Dn(e, t) {
1757
+ const r = $(e), n = B(e), o = r.visualViewport;
1758
+ let c = n.clientWidth, l = n.clientHeight, f = 0, u = 0;
1759
+ if (o) {
1760
+ c = o.width, l = o.height;
1761
+ const s = ke();
1762
+ (!s || s && t === "fixed") && (f = o.offsetLeft, u = o.offsetTop);
1763
+ }
1764
+ return {
1765
+ width: c,
1766
+ height: l,
1767
+ x: f,
1768
+ y: u
1769
+ };
1770
+ }
1771
+ function Mn(e, t) {
1772
+ const r = Z(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, c = j(e) ? Q(e) : W(1), l = e.clientWidth * c.x, f = e.clientHeight * c.y, u = o * c.x, s = n * c.y;
1773
+ return {
1774
+ width: l,
1775
+ height: f,
1776
+ x: u,
1777
+ y: s
1778
+ };
1779
+ }
1780
+ function Ye(e, t, r) {
1781
+ let n;
1782
+ if (t === "viewport")
1783
+ n = Dn(e, r);
1784
+ else if (t === "document")
1785
+ n = Cn(B(e));
1786
+ else if (U(t))
1787
+ n = Mn(t, r);
1788
+ else {
1789
+ const o = ct(e);
1790
+ n = {
1791
+ x: t.x - o.x,
1792
+ y: t.y - o.y,
1793
+ width: t.width,
1794
+ height: t.height
1795
+ };
1796
+ }
1797
+ return he(n);
1798
+ }
1799
+ function lt(e, t) {
1800
+ const r = J(e);
1801
+ return r === t || !U(r) || ee(r) ? !1 : F(r).position === "fixed" || lt(r, t);
1802
+ }
1803
+ function Ln(e, t) {
1804
+ const r = t.get(e);
1805
+ if (r)
1806
+ return r;
1807
+ let n = ae(e, [], !1).filter((f) => U(f) && ne(f) !== "body"), o = null;
1808
+ const c = F(e).position === "fixed";
1809
+ let l = c ? J(e) : e;
1810
+ for (; U(l) && !ee(l); ) {
1811
+ const f = F(l), u = Le(l);
1812
+ !u && f.position === "fixed" && (o = null), (c ? !u && !o : !u && f.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || le(l) && !u && lt(e, l)) ? n = n.filter((g) => g !== l) : o = f, l = J(l);
1813
+ }
1814
+ return t.set(e, n), n;
1815
+ }
1816
+ function kn(e) {
1817
+ let {
1818
+ element: t,
1819
+ boundary: r,
1820
+ rootBoundary: n,
1821
+ strategy: o
1822
+ } = e;
1823
+ const l = [...r === "clippingAncestors" ? we(t) ? [] : Ln(t, this._c) : [].concat(r), n], f = l[0], u = l.reduce((s, g) => {
1824
+ const a = Ye(t, g, o);
1825
+ return s.top = k(a.top, s.top), s.right = X(a.right, s.right), s.bottom = X(a.bottom, s.bottom), s.left = k(a.left, s.left), s;
1826
+ }, Ye(t, f, o));
1827
+ return {
1828
+ width: u.right - u.left,
1829
+ height: u.bottom - u.top,
1830
+ x: u.left,
1831
+ y: u.top
1832
+ };
1833
+ }
1834
+ function $n(e) {
1835
+ const {
1836
+ width: t,
1837
+ height: r
1838
+ } = st(e);
1839
+ return {
1840
+ width: t,
1841
+ height: r
1842
+ };
1843
+ }
1844
+ function Vn(e, t, r) {
1845
+ const n = j(t), o = B(t), c = r === "fixed", l = Z(e, !0, c, t);
1846
+ let f = {
1847
+ scrollLeft: 0,
1848
+ scrollTop: 0
1849
+ };
1850
+ const u = W(0);
1851
+ if (n || !n && !c)
1852
+ if ((ne(t) !== "body" || le(o)) && (f = be(t)), n) {
1853
+ const i = Z(t, !0, c, t);
1854
+ u.x = i.x + t.clientLeft, u.y = i.y + t.clientTop;
1855
+ } else o && (u.x = Ve(o));
1856
+ const s = o && !n && !c ? at(o, f) : W(0), g = l.left + f.scrollLeft - u.x - s.x, a = l.top + f.scrollTop - u.y - s.y;
1857
+ return {
1858
+ x: g,
1859
+ y: a,
1860
+ width: l.width,
1861
+ height: l.height
1862
+ };
1863
+ }
1864
+ function Ee(e) {
1865
+ return F(e).position === "static";
1866
+ }
1867
+ function Ge(e, t) {
1868
+ if (!j(e) || F(e).position === "fixed")
1869
+ return null;
1870
+ if (t)
1871
+ return t(e);
1872
+ let r = e.offsetParent;
1873
+ return B(e) === r && (r = r.ownerDocument.body), r;
1874
+ }
1875
+ function ut(e, t) {
1876
+ const r = $(e);
1877
+ if (we(e))
1878
+ return r;
1879
+ if (!j(e)) {
1880
+ let o = J(e);
1881
+ for (; o && !ee(o); ) {
1882
+ if (U(o) && !Ee(o))
1883
+ return o;
1884
+ o = J(o);
1885
+ }
1886
+ return r;
1887
+ }
1888
+ let n = Ge(e, t);
1889
+ for (; n && Rn(n) && Ee(n); )
1890
+ n = Ge(n, t);
1891
+ return n && ee(n) && Ee(n) && !Le(n) ? r : n || An(e) || r;
1892
+ }
1893
+ const Hn = async function(e) {
1894
+ const t = this.getOffsetParent || ut, r = this.getDimensions, n = await r(e.floating);
1895
+ return {
1896
+ reference: Vn(e.reference, await t(e.floating), e.strategy),
1897
+ floating: {
1898
+ x: 0,
1899
+ y: 0,
1900
+ width: n.width,
1901
+ height: n.height
1902
+ }
1903
+ };
1904
+ };
1905
+ function zn(e) {
1906
+ return F(e).direction === "rtl";
1907
+ }
1908
+ const Un = {
1909
+ convertOffsetParentRelativeRectToViewportRelativeRect: Pn,
1910
+ getDocumentElement: B,
1911
+ getClippingRect: kn,
1912
+ getOffsetParent: ut,
1913
+ getElementRects: Hn,
1914
+ getClientRects: Nn,
1915
+ getDimensions: $n,
1916
+ getScale: Q,
1917
+ isElement: U,
1918
+ isRTL: zn
1919
+ };
1920
+ function ft(e, t) {
1921
+ return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1922
+ }
1923
+ function Fn(e, t) {
1924
+ let r = null, n;
1925
+ const o = B(e);
1926
+ function c() {
1927
+ var f;
1928
+ clearTimeout(n), (f = r) == null || f.disconnect(), r = null;
1929
+ }
1930
+ function l(f, u) {
1931
+ f === void 0 && (f = !1), u === void 0 && (u = 1), c();
1932
+ const s = e.getBoundingClientRect(), {
1933
+ left: g,
1934
+ top: a,
1935
+ width: i,
1936
+ height: d
1937
+ } = s;
1938
+ if (f || t(), !i || !d)
1939
+ return;
1940
+ const m = ge(a), p = ge(o.clientWidth - (g + i)), y = ge(o.clientHeight - (a + d)), v = ge(g), b = {
1941
+ rootMargin: -m + "px " + -p + "px " + -y + "px " + -v + "px",
1942
+ threshold: k(0, X(1, u)) || 1
1943
+ };
1944
+ let E = !0;
1945
+ function S(A) {
1946
+ const _ = A[0].intersectionRatio;
1947
+ if (_ !== u) {
1948
+ if (!E)
1949
+ return l();
1950
+ _ ? l(!1, _) : n = setTimeout(() => {
1951
+ l(!1, 1e-7);
1952
+ }, 1e3);
1953
+ }
1954
+ _ === 1 && !ft(s, e.getBoundingClientRect()) && l(), E = !1;
1955
+ }
1956
+ try {
1957
+ r = new IntersectionObserver(S, {
1958
+ ...b,
1959
+ // Handle <iframe>s
1960
+ root: o.ownerDocument
1961
+ });
1962
+ } catch {
1963
+ r = new IntersectionObserver(S, b);
1964
+ }
1965
+ r.observe(e);
1966
+ }
1967
+ return l(!0), c;
1968
+ }
1969
+ function In(e, t, r, n) {
1970
+ n === void 0 && (n = {});
1971
+ const {
1972
+ ancestorScroll: o = !0,
1973
+ ancestorResize: c = !0,
1974
+ elementResize: l = typeof ResizeObserver == "function",
1975
+ layoutShift: f = typeof IntersectionObserver == "function",
1976
+ animationFrame: u = !1
1977
+ } = n, s = $e(e), g = o || c ? [...s ? ae(s) : [], ...ae(t)] : [];
1978
+ g.forEach((v) => {
1979
+ o && v.addEventListener("scroll", r, {
1980
+ passive: !0
1981
+ }), c && v.addEventListener("resize", r);
1982
+ });
1983
+ const a = s && f ? Fn(s, r) : null;
1984
+ let i = -1, d = null;
1985
+ l && (d = new ResizeObserver((v) => {
1986
+ let [w] = v;
1987
+ w && w.target === s && d && (d.unobserve(t), cancelAnimationFrame(i), i = requestAnimationFrame(() => {
1988
+ var b;
1989
+ (b = d) == null || b.observe(t);
1990
+ })), r();
1991
+ }), s && !u && d.observe(s), d.observe(t));
1992
+ let m, p = u ? Z(e) : null;
1993
+ u && y();
1994
+ function y() {
1995
+ const v = Z(e);
1996
+ p && !ft(p, v) && r(), p = v, m = requestAnimationFrame(y);
1997
+ }
1998
+ return r(), () => {
1999
+ var v;
2000
+ g.forEach((w) => {
2001
+ o && w.removeEventListener("scroll", r), c && w.removeEventListener("resize", r);
2002
+ }), a?.(), (v = d) == null || v.disconnect(), d = null, u && cancelAnimationFrame(m);
2003
+ };
2004
+ }
2005
+ const Wn = bn, jn = On, Bn = vn, qn = En, Yn = xn, Gn = hn, Kn = Sn, Xn = (e, t, r) => {
2006
+ const n = /* @__PURE__ */ new Map(), o = {
2007
+ platform: Un,
2008
+ ...r
2009
+ }, c = {
2010
+ ...o.platform,
2011
+ _c: n
2012
+ };
2013
+ return yn(e, t, {
2014
+ ...o,
2015
+ platform: c
2016
+ });
2017
+ };
2018
+ function Ke(e = 0, t = 0, r = 0, n = 0) {
2019
+ if (typeof DOMRect == "function")
2020
+ return new DOMRect(e, t, r, n);
2021
+ const o = {
2022
+ x: e,
2023
+ y: t,
2024
+ width: r,
2025
+ height: n,
2026
+ top: t,
2027
+ right: e + r,
2028
+ bottom: t + n,
2029
+ left: e
2030
+ };
2031
+ return { ...o, toJSON: () => o };
2032
+ }
2033
+ function Jn(e) {
2034
+ if (!e) return Ke();
2035
+ const { x: t, y: r, width: n, height: o } = e;
2036
+ return Ke(t, r, n, o);
2037
+ }
2038
+ function Zn(e, t) {
2039
+ return {
2040
+ contextElement: Rt(e) ? e : void 0,
2041
+ getBoundingClientRect: () => {
2042
+ const r = e, n = t?.(r);
2043
+ return n || !r ? Jn(n) : r.getBoundingClientRect();
2044
+ }
2045
+ };
2046
+ }
2047
+ var oe = (e) => ({ variable: e, reference: `var(${e})` }), q = {
2048
+ arrowSize: oe("--arrow-size"),
2049
+ arrowSizeHalf: oe("--arrow-size-half"),
2050
+ arrowBg: oe("--arrow-background"),
2051
+ transformOrigin: oe("--transform-origin"),
2052
+ arrowOffset: oe("--arrow-offset")
2053
+ }, Qn = (e) => ({
2054
+ top: "bottom center",
2055
+ "top-start": e ? `${e.x}px bottom` : "left bottom",
2056
+ "top-end": e ? `${e.x}px bottom` : "right bottom",
2057
+ bottom: "top center",
2058
+ "bottom-start": e ? `${e.x}px top` : "top left",
2059
+ "bottom-end": e ? `${e.x}px top` : "top right",
2060
+ left: "right center",
2061
+ "left-start": e ? `right ${e.y}px` : "right top",
2062
+ "left-end": e ? `right ${e.y}px` : "right bottom",
2063
+ right: "left center",
2064
+ "right-start": e ? `left ${e.y}px` : "left top",
2065
+ "right-end": e ? `left ${e.y}px` : "left bottom"
2066
+ }), er = {
2067
+ name: "transformOrigin",
2068
+ fn({ placement: e, elements: t, middlewareData: r }) {
2069
+ const { arrow: n } = r, o = Qn(n)[e], { floating: c } = t;
2070
+ return c.style.setProperty(q.transformOrigin.variable, o), {
2071
+ data: { transformOrigin: o }
2072
+ };
2073
+ }
2074
+ }, tr = {
2075
+ name: "rects",
2076
+ fn({ rects: e }) {
2077
+ return {
2078
+ data: e
2079
+ };
2080
+ }
2081
+ }, nr = (e) => {
2082
+ if (e)
2083
+ return {
2084
+ name: "shiftArrow",
2085
+ fn({ placement: t, middlewareData: r }) {
2086
+ if (!r.arrow) return {};
2087
+ const { x: n, y: o } = r.arrow, c = t.split("-")[0];
2088
+ return Object.assign(e.style, {
2089
+ left: n != null ? `${n}px` : "",
2090
+ top: o != null ? `${o}px` : "",
2091
+ [c]: `calc(100% + ${q.arrowOffset.reference})`
2092
+ }), {};
2093
+ }
2094
+ };
2095
+ };
2096
+ function rr(e) {
2097
+ const [t, r] = e.split("-");
2098
+ return { side: t, align: r, hasAlign: r != null };
2099
+ }
2100
+ function _r(e) {
2101
+ return e.split("-")[0];
2102
+ }
2103
+ var or = {
2104
+ strategy: "absolute",
2105
+ placement: "bottom",
2106
+ listeners: !0,
2107
+ gutter: 8,
2108
+ flip: !0,
2109
+ slide: !0,
2110
+ overlap: !1,
2111
+ sameWidth: !1,
2112
+ fitViewport: !1,
2113
+ overflowPadding: 8,
2114
+ arrowPadding: 4
2115
+ };
2116
+ function Xe(e, t) {
2117
+ const r = e.devicePixelRatio || 1;
2118
+ return Math.round(t * r) / r;
2119
+ }
2120
+ function dt(e) {
2121
+ return Tt(e.boundary);
2122
+ }
2123
+ function ir(e, t) {
2124
+ if (e)
2125
+ return Gn({
2126
+ element: e,
2127
+ padding: t.arrowPadding
2128
+ });
2129
+ }
2130
+ function sr(e, t) {
2131
+ if (!At(t.offset ?? t.gutter))
2132
+ return Wn(({ placement: r }) => {
2133
+ const n = (e?.clientHeight || 0) / 2, o = t.offset?.mainAxis ?? t.gutter, c = typeof o == "number" ? o + n : o ?? n, { hasAlign: l } = rr(r), f = l ? void 0 : t.shift, u = t.offset?.crossAxis ?? f;
2134
+ return Ze({
2135
+ crossAxis: u,
2136
+ mainAxis: c,
2137
+ alignmentAxis: t.shift
2138
+ });
2139
+ });
2140
+ }
2141
+ function cr(e) {
2142
+ if (e.flip)
2143
+ return Bn({
2144
+ boundary: dt(e),
2145
+ padding: e.overflowPadding,
2146
+ fallbackPlacements: e.flip === !0 ? void 0 : e.flip
2147
+ });
2148
+ }
2149
+ function ar(e) {
2150
+ if (!(!e.slide && !e.overlap))
2151
+ return jn({
2152
+ boundary: dt(e),
2153
+ mainAxis: e.slide,
2154
+ crossAxis: e.overlap,
2155
+ padding: e.overflowPadding,
2156
+ limiter: Kn()
2157
+ });
2158
+ }
2159
+ function lr(e) {
2160
+ return qn({
2161
+ padding: e.overflowPadding,
2162
+ apply({ elements: t, rects: r, availableHeight: n, availableWidth: o }) {
2163
+ const c = t.floating, l = Math.round(r.reference.width);
2164
+ o = Math.floor(o), n = Math.floor(n), c.style.setProperty("--reference-width", `${l}px`), c.style.setProperty("--available-width", `${o}px`), c.style.setProperty("--available-height", `${n}px`);
2165
+ }
2166
+ });
2167
+ }
2168
+ function ur(e) {
2169
+ if (e.hideWhenDetached)
2170
+ return Yn({ strategy: "referenceHidden", boundary: e.boundary?.() ?? "clippingAncestors" });
2171
+ }
2172
+ function fr(e) {
2173
+ return e ? e === !0 ? { ancestorResize: !0, ancestorScroll: !0, elementResize: !0, layoutShift: !0 } : e : {};
2174
+ }
2175
+ function dr(e, t, r = {}) {
2176
+ const n = Zn(e, r.getAnchorRect);
2177
+ if (!t || !n) return;
2178
+ const o = Object.assign({}, or, r), c = t.querySelector("[data-part=arrow]"), l = [
2179
+ sr(c, o),
2180
+ cr(o),
2181
+ ar(o),
2182
+ ir(c, o),
2183
+ nr(c),
2184
+ er,
2185
+ lr(o),
2186
+ ur(o),
2187
+ tr
2188
+ ], { placement: f, strategy: u, onComplete: s, onPositioned: g } = o, a = async () => {
2189
+ if (!n || !t) return;
2190
+ const p = await Xn(n, t, {
2191
+ placement: f,
2192
+ middleware: l,
2193
+ strategy: u
2194
+ });
2195
+ s?.(p), g?.({ placed: !0 });
2196
+ const y = _t(t), v = Xe(y, p.x), w = Xe(y, p.y);
2197
+ t.style.setProperty("--x", `${v}px`), t.style.setProperty("--y", `${w}px`), o.hideWhenDetached && (p.middlewareData.hide?.referenceHidden ? (t.style.setProperty("visibility", "hidden"), t.style.setProperty("pointer-events", "none")) : (t.style.removeProperty("visibility"), t.style.removeProperty("pointer-events")));
2198
+ const b = t.firstElementChild;
2199
+ if (b) {
2200
+ const E = Je(b);
2201
+ t.style.setProperty("--z-index", E.zIndex);
2202
+ }
2203
+ }, i = async () => {
2204
+ r.updatePosition ? (await r.updatePosition({ updatePosition: a }), g?.({ placed: !0 })) : await a();
2205
+ }, d = fr(o.listeners), m = o.listeners ? In(n, t, i, d) : Et;
2206
+ return i(), () => {
2207
+ m?.(), g?.({ placed: !1 });
2208
+ };
2209
+ }
2210
+ function Pr(e, t, r = {}) {
2211
+ const { defer: n, ...o } = r, c = n ? Re : (f) => f(), l = [];
2212
+ return l.push(
2213
+ c(() => {
2214
+ const f = typeof e == "function" ? e() : e, u = typeof t == "function" ? t() : t;
2215
+ l.push(dr(f, u, o));
2216
+ })
2217
+ ), () => {
2218
+ l.forEach((f) => f?.());
2219
+ };
2220
+ }
2221
+ var gr = {
2222
+ bottom: "rotate(45deg)",
2223
+ left: "rotate(135deg)",
2224
+ top: "rotate(225deg)",
2225
+ right: "rotate(315deg)"
2226
+ };
2227
+ function Nr(e = {}) {
2228
+ const { placement: t, sameWidth: r, fitViewport: n, strategy: o = "absolute" } = e;
2229
+ return {
2230
+ arrow: {
2231
+ position: "absolute",
2232
+ width: q.arrowSize.reference,
2233
+ height: q.arrowSize.reference,
2234
+ [q.arrowSizeHalf.variable]: `calc(${q.arrowSize.reference} / 2)`,
2235
+ [q.arrowOffset.variable]: `calc(${q.arrowSizeHalf.reference} * -1)`
2236
+ },
2237
+ arrowTip: {
2238
+ // @ts-expect-error - Fix this
2239
+ transform: t ? gr[t.split("-")[0]] : void 0,
2240
+ background: q.arrowBg.reference,
2241
+ top: "0",
2242
+ left: "0",
2243
+ width: "100%",
2244
+ height: "100%",
2245
+ position: "absolute",
2246
+ zIndex: "inherit"
2247
+ },
2248
+ floating: {
2249
+ position: o,
2250
+ isolation: "isolate",
2251
+ minWidth: r ? void 0 : "max-content",
2252
+ width: r ? "var(--reference-width)" : void 0,
2253
+ maxWidth: n ? "var(--available-width)" : void 0,
2254
+ maxHeight: n ? "var(--available-height)" : void 0,
2255
+ pointerEvents: t ? void 0 : "none",
2256
+ top: "0px",
2257
+ left: "0px",
2258
+ // move off-screen if placement is not defined
2259
+ transform: t ? "translate3d(var(--x), var(--y), 0)" : "translate3d(0, -100vh, 0)",
2260
+ zIndex: "var(--z-index)"
2261
+ }
2262
+ };
2263
+ }
2264
+ const Cr = (e) => {
2265
+ const { children: t, disabled: r } = e, [n, o] = Ae(e.container?.current), c = Ft(
2266
+ pr,
2267
+ () => !1,
2268
+ () => !0
2269
+ ), { getRootNode: l } = Wt();
2270
+ if (se(() => {
2271
+ o(() => e.container?.current);
2272
+ }, [e.container]), c || r) return /* @__PURE__ */ ue.jsx(ue.Fragment, { children: t });
2273
+ const f = n ?? mr(l);
2274
+ return /* @__PURE__ */ ue.jsx(ue.Fragment, { children: et.map(t, (u) => ve.createPortal(u, f)) });
2275
+ }, mr = (e) => {
2276
+ const t = e?.(), r = t.getRootNode();
2277
+ return Pt(r) ? r : Nt(t).body;
2278
+ }, pr = () => () => {
2279
+ };
2280
+ export {
2281
+ Cr as P,
2282
+ Yt as a,
2283
+ Kt as b,
2284
+ Ne as c,
2285
+ Nr as d,
2286
+ _r as e,
2287
+ wr as f,
2288
+ Pr as g,
2289
+ jt as h,
2290
+ Wt as i,
2291
+ Or as j,
2292
+ rn as k,
2293
+ Rr as l,
2294
+ Ar as m,
2295
+ Er as n,
2296
+ sn as o,
2297
+ ve as r,
2298
+ Sr as s,
2299
+ Tr as u
2300
+ };
2301
+ //# sourceMappingURL=portal-C7cdrplU.js.map