@commercetools/nimbus 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (553) hide show
  1. package/dist/chunks/{Button-Whc4raea.cjs.js → Button-BjOgrRmH.cjs.js} +2 -2
  2. package/dist/chunks/{Button-Whc4raea.cjs.js.map → Button-BjOgrRmH.cjs.js.map} +1 -1
  3. package/dist/chunks/{Button-BOMjcccZ.es.js → Button-BsN1D5Hi.es.js} +10 -10
  4. package/dist/chunks/{Button-BOMjcccZ.es.js.map → Button-BsN1D5Hi.es.js.map} +1 -1
  5. package/dist/chunks/{DateField-DbAaUSAR.es.js → DateField-BozrMa9v.es.js} +645 -621
  6. package/dist/chunks/{DateField-DbAaUSAR.es.js.map → DateField-BozrMa9v.es.js.map} +1 -1
  7. package/dist/chunks/DateField-G0i9Cflc.cjs.js +2 -0
  8. package/dist/chunks/{DateField-BjIjR7y5.cjs.js.map → DateField-G0i9Cflc.cjs.js.map} +1 -1
  9. package/dist/chunks/DatePicker-3TZ8oKaR.es.js +762 -0
  10. package/dist/chunks/DatePicker-3TZ8oKaR.es.js.map +1 -0
  11. package/dist/chunks/DatePicker-BD8RjPSL.cjs.js +2 -0
  12. package/dist/chunks/DatePicker-BD8RjPSL.cjs.js.map +1 -0
  13. package/dist/chunks/Dialog-Btds5x4W.cjs.js +2 -0
  14. package/dist/chunks/Dialog-Btds5x4W.cjs.js.map +1 -0
  15. package/dist/chunks/Dialog-CFERgD91.es.js +1888 -0
  16. package/dist/chunks/Dialog-CFERgD91.es.js.map +1 -0
  17. package/dist/chunks/{FocusScope-BacYMT5s.es.js → FocusScope-8pBtcv8k.es.js} +196 -153
  18. package/dist/chunks/FocusScope-8pBtcv8k.es.js.map +1 -0
  19. package/dist/chunks/FocusScope-BEOPrcCH.cjs.js +2 -0
  20. package/dist/chunks/FocusScope-BEOPrcCH.cjs.js.map +1 -0
  21. package/dist/chunks/{Group-CTSushH_.es.js → Group-Brffs0pl.es.js} +7 -7
  22. package/dist/chunks/{Group-CTSushH_.es.js.map → Group-Brffs0pl.es.js.map} +1 -1
  23. package/dist/chunks/{Group-DCFj0iWW.cjs.js → Group-apcpZquv.cjs.js} +2 -2
  24. package/dist/chunks/{Group-DCFj0iWW.cjs.js.map → Group-apcpZquv.cjs.js.map} +1 -1
  25. package/dist/chunks/{calendar-4vA2Wjuk.es.js → Heading-D143Kg6E.es.js} +658 -630
  26. package/dist/chunks/Heading-D143Kg6E.es.js.map +1 -0
  27. package/dist/chunks/Heading-DiqU5dbv.cjs.js +2 -0
  28. package/dist/chunks/Heading-DiqU5dbv.cjs.js.map +1 -0
  29. package/dist/chunks/{Hidden-CeBYiBUb.es.js → Hidden-X9vuhkMZ.es.js} +3 -3
  30. package/dist/chunks/{Hidden-CeBYiBUb.es.js.map → Hidden-X9vuhkMZ.es.js.map} +1 -1
  31. package/dist/chunks/{Input-CiHYWjLE.cjs.js → Input-BEgGe6bw.cjs.js} +2 -2
  32. package/dist/chunks/{Input-CiHYWjLE.cjs.js.map → Input-BEgGe6bw.cjs.js.map} +1 -1
  33. package/dist/chunks/{Input-DN0K3GJf.es.js → Input-Bxs2A5S-.es.js} +6 -6
  34. package/dist/chunks/{Input-DN0K3GJf.es.js.map → Input-Bxs2A5S-.es.js.map} +1 -1
  35. package/dist/chunks/Keyboard-Clnp4zAC.es.js +6 -0
  36. package/dist/chunks/Keyboard-Clnp4zAC.es.js.map +1 -0
  37. package/dist/chunks/Keyboard-rYf2KxZN.cjs.js +2 -0
  38. package/dist/chunks/Keyboard-rYf2KxZN.cjs.js.map +1 -0
  39. package/dist/chunks/{Label-CNMvF_U4.cjs.js → Label-DFXyfxZM.cjs.js} +2 -2
  40. package/dist/chunks/{Label-CNMvF_U4.cjs.js.map → Label-DFXyfxZM.cjs.js.map} +1 -1
  41. package/dist/chunks/{Label-DBDcs-md.es.js → Label-p7LXqne0.es.js} +3 -3
  42. package/dist/chunks/{Label-DBDcs-md.es.js.map → Label-p7LXqne0.es.js.map} +1 -1
  43. package/dist/chunks/ListBox-BEZfjFMq.cjs.js +2 -0
  44. package/dist/chunks/ListBox-BEZfjFMq.cjs.js.map +1 -0
  45. package/dist/chunks/ListBox-CiN7qgxV.es.js +645 -0
  46. package/dist/chunks/ListBox-CiN7qgxV.es.js.map +1 -0
  47. package/dist/chunks/LiveAnnouncer-BkrEjKY8.cjs.js +2 -0
  48. package/dist/chunks/{LiveAnnouncer-CwEWPU8b.cjs.js.map → LiveAnnouncer-BkrEjKY8.cjs.js.map} +1 -1
  49. package/dist/chunks/{LiveAnnouncer-B6177m92.es.js → LiveAnnouncer-CsPyaceH.es.js} +2 -2
  50. package/dist/chunks/{LiveAnnouncer-B6177m92.es.js.map → LiveAnnouncer-CsPyaceH.es.js.map} +1 -1
  51. package/dist/chunks/NumberFormatter-DewVDY5w.cjs.js.map +1 -1
  52. package/dist/chunks/NumberFormatter-DgOUVrge.es.js.map +1 -1
  53. package/dist/chunks/{OverlayArrow-BpI9oaqU.es.js → OverlayArrow-BEiPDprB.es.js} +22 -22
  54. package/dist/chunks/{OverlayArrow-BpI9oaqU.es.js.map → OverlayArrow-BEiPDprB.es.js.map} +1 -1
  55. package/dist/chunks/OverlayArrow-BcRQfR_V.cjs.js +2 -0
  56. package/dist/chunks/{OverlayArrow-HjwHXXDg.cjs.js.map → OverlayArrow-BcRQfR_V.cjs.js.map} +1 -1
  57. package/dist/chunks/{ProgressBar-DpsMzb_5.cjs.js → ProgressBar-Cot0VLjE.cjs.js} +2 -2
  58. package/dist/chunks/{ProgressBar-DpsMzb_5.cjs.js.map → ProgressBar-Cot0VLjE.cjs.js.map} +1 -1
  59. package/dist/chunks/{ProgressBar-CjzD-Z5i.es.js → ProgressBar-M-wNKpE5.es.js} +4 -4
  60. package/dist/chunks/{ProgressBar-CjzD-Z5i.es.js.map → ProgressBar-M-wNKpE5.es.js.map} +1 -1
  61. package/dist/chunks/SSRProvider-DZRLwxPS.cjs.js.map +1 -1
  62. package/dist/chunks/SSRProvider-eIEwc-2s.es.js.map +1 -1
  63. package/dist/chunks/Separator-BFKzWOOv.cjs.js +18 -0
  64. package/dist/chunks/Separator-BFKzWOOv.cjs.js.map +1 -0
  65. package/dist/chunks/Separator-CBgksjWN.es.js +2435 -0
  66. package/dist/chunks/Separator-CBgksjWN.es.js.map +1 -0
  67. package/dist/chunks/{TextArea-BeSyeRBk.es.js → TextArea-DcFJx08j.es.js} +5 -5
  68. package/dist/chunks/{TextArea-BeSyeRBk.es.js.map → TextArea-DcFJx08j.es.js.map} +1 -1
  69. package/dist/chunks/{TextArea-C0Ozz1GB.cjs.js → TextArea-ciW_61Jv.cjs.js} +2 -2
  70. package/dist/chunks/{TextArea-C0Ozz1GB.cjs.js.map → TextArea-ciW_61Jv.cjs.js.map} +1 -1
  71. package/dist/chunks/{VisuallyHidden-D5E2DfM-.es.js → VisuallyHidden-CE-SZFGa.es.js} +3 -3
  72. package/dist/chunks/{VisuallyHidden-D5E2DfM-.es.js.map → VisuallyHidden-CE-SZFGa.es.js.map} +1 -1
  73. package/dist/chunks/{VisuallyHidden-BeFoHnz-.cjs.js → VisuallyHidden-Cqkg4RzT.cjs.js} +2 -2
  74. package/dist/chunks/{VisuallyHidden-BeFoHnz-.cjs.js.map → VisuallyHidden-Cqkg4RzT.cjs.js.map} +1 -1
  75. package/dist/chunks/{accordion-Dc0-jhj-.es.js → accordion-AFXp_v9r.es.js} +65 -65
  76. package/dist/chunks/{accordion-Dc0-jhj-.es.js.map → accordion-AFXp_v9r.es.js.map} +1 -1
  77. package/dist/chunks/accordion-CnNWyGUM.cjs.js +2 -0
  78. package/dist/chunks/{accordion-BqC_0cQF.cjs.js.map → accordion-CnNWyGUM.cjs.js.map} +1 -1
  79. package/dist/chunks/{alert-0lZycfTS.cjs.js → alert-CTdQVQEX.cjs.js} +2 -2
  80. package/dist/chunks/{alert-0lZycfTS.cjs.js.map → alert-CTdQVQEX.cjs.js.map} +1 -1
  81. package/dist/chunks/{alert-CLgnvjGx.es.js → alert-DObB3_Vi.es.js} +2 -2
  82. package/dist/chunks/{alert-CLgnvjGx.es.js.map → alert-DObB3_Vi.es.js.map} +1 -1
  83. package/dist/chunks/avatar-BLun8TXk.cjs.js.map +1 -1
  84. package/dist/chunks/avatar-DgvfEdwK.es.js.map +1 -1
  85. package/dist/chunks/{badge-BFL2bErq.cjs.js → badge-CFwI3HLf.cjs.js} +2 -2
  86. package/dist/chunks/{badge-BFL2bErq.cjs.js.map → badge-CFwI3HLf.cjs.js.map} +1 -1
  87. package/dist/chunks/{badge-C_FXV6xO.es.js → badge-DVDR3-fy.es.js} +2 -2
  88. package/dist/chunks/{badge-C_FXV6xO.es.js.map → badge-DVDR3-fy.es.js.map} +1 -1
  89. package/dist/chunks/{button-HUhEhOaq.es.js → button-DPZ4gynI.es.js} +19 -19
  90. package/dist/chunks/{button-HUhEhOaq.es.js.map → button-DPZ4gynI.es.js.map} +1 -1
  91. package/dist/chunks/{button-ByoXAf0f.cjs.js → button-DhrBalPi.cjs.js} +2 -2
  92. package/dist/chunks/{button-ByoXAf0f.cjs.js.map → button-DhrBalPi.cjs.js.map} +1 -1
  93. package/dist/chunks/calendar-BCsFBFkk.es.js +185 -0
  94. package/dist/chunks/calendar-BCsFBFkk.es.js.map +1 -0
  95. package/dist/chunks/calendar-BeUwpJo3.cjs.js +2 -0
  96. package/dist/chunks/calendar-BeUwpJo3.cjs.js.map +1 -0
  97. package/dist/chunks/{card-BlrFTWUO.es.js → card-CS_daMhq.es.js} +3 -3
  98. package/dist/chunks/{card-BlrFTWUO.es.js.map → card-CS_daMhq.es.js.map} +1 -1
  99. package/dist/chunks/{card-B9Ei2Ifh.cjs.js → card-svWLl_kS.cjs.js} +2 -2
  100. package/dist/chunks/{card-B9Ei2Ifh.cjs.js.map → card-svWLl_kS.cjs.js.map} +1 -1
  101. package/dist/chunks/{checkbox-BjNxOrz3.es.js → checkbox-BFb4vHab.es.js} +7 -7
  102. package/dist/chunks/{checkbox-BjNxOrz3.es.js.map → checkbox-BFb4vHab.es.js.map} +1 -1
  103. package/dist/chunks/{checkbox-DwrmmRar.cjs.js → checkbox-D0evM4Sv.cjs.js} +2 -2
  104. package/dist/chunks/{checkbox-DwrmmRar.cjs.js.map → checkbox-D0evM4Sv.cjs.js.map} +1 -1
  105. package/dist/chunks/combobox-D30xydJw.cjs.js +2 -0
  106. package/dist/chunks/combobox-D30xydJw.cjs.js.map +1 -0
  107. package/dist/chunks/combobox-wZEZ8t94.es.js +1916 -0
  108. package/dist/chunks/combobox-wZEZ8t94.es.js.map +1 -0
  109. package/dist/chunks/combobox.recipe-BKOsv-Im.cjs.js +2 -0
  110. package/dist/chunks/{combobox.recipe-BtnFn38v.cjs.js.map → combobox.recipe-BKOsv-Im.cjs.js.map} +1 -1
  111. package/dist/chunks/{combobox.recipe-aeARdYiV.es.js → combobox.recipe-BQy3LgVG.es.js} +17 -44
  112. package/dist/chunks/{combobox.recipe-aeARdYiV.es.js.map → combobox.recipe-BQy3LgVG.es.js.map} +1 -1
  113. package/dist/chunks/context-D3RF-nTI.es.js.map +1 -1
  114. package/dist/chunks/context-DURpz5en.cjs.js.map +1 -1
  115. package/dist/chunks/{date-input-BC-7OWJ7.cjs.js → date-input-B3VEJdpa.cjs.js} +2 -2
  116. package/dist/chunks/{date-input-BC-7OWJ7.cjs.js.map → date-input-B3VEJdpa.cjs.js.map} +1 -1
  117. package/dist/chunks/{date-input-CB3KDtkI.es.js → date-input-TeYMF5Hb.es.js} +3 -3
  118. package/dist/chunks/{date-input-CB3KDtkI.es.js.map → date-input-TeYMF5Hb.es.js.map} +1 -1
  119. package/dist/chunks/{date-input.recipe-BtWEmJGK.es.js → date-input.recipe-BTsUgaUQ.es.js} +10 -3
  120. package/dist/chunks/{date-input.recipe-BtWEmJGK.es.js.map → date-input.recipe-BTsUgaUQ.es.js.map} +1 -1
  121. package/dist/chunks/{date-input.recipe-Cf9e8VAr.cjs.js → date-input.recipe-Onzf22sP.cjs.js} +2 -2
  122. package/dist/chunks/{date-input.recipe-Cf9e8VAr.cjs.js.map → date-input.recipe-Onzf22sP.cjs.js.map} +1 -1
  123. package/dist/chunks/date-picker-BrkP7f-J.cjs.js +2 -0
  124. package/dist/chunks/date-picker-BrkP7f-J.cjs.js.map +1 -0
  125. package/dist/chunks/date-picker-CTGHoJdV.es.js +183 -0
  126. package/dist/chunks/date-picker-CTGHoJdV.es.js.map +1 -0
  127. package/dist/chunks/date-range-picker-BZ7e2THh.cjs.js +2 -0
  128. package/dist/chunks/date-range-picker-BZ7e2THh.cjs.js.map +1 -0
  129. package/dist/chunks/date-range-picker-DYAE8hY-.es.js +273 -0
  130. package/dist/chunks/date-range-picker-DYAE8hY-.es.js.map +1 -0
  131. package/dist/chunks/date-range-picker.recipe-BARriKKl.cjs.js +2 -0
  132. package/dist/chunks/date-range-picker.recipe-BARriKKl.cjs.js.map +1 -0
  133. package/dist/chunks/date-range-picker.recipe-CuI7inaU.es.js +124 -0
  134. package/dist/chunks/date-range-picker.recipe-CuI7inaU.es.js.map +1 -0
  135. package/dist/chunks/divider-CifCuFCu.cjs.js +2 -0
  136. package/dist/chunks/divider-CifCuFCu.cjs.js.map +1 -0
  137. package/dist/chunks/divider-Js2LpOHh.es.js +58 -0
  138. package/dist/chunks/divider-Js2LpOHh.es.js.map +1 -0
  139. package/dist/chunks/domHelpers-InH3T0qs.es.js +16 -0
  140. package/dist/chunks/domHelpers-InH3T0qs.es.js.map +1 -0
  141. package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js +2 -0
  142. package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js.map +1 -0
  143. package/dist/chunks/extractStyleProps-CxgBrz3O.es.js.map +1 -1
  144. package/dist/chunks/extractStyleProps-lyk7D-zN.cjs.js.map +1 -1
  145. package/dist/chunks/{filterDOMProps-D6KHYVBX.es.js → filterDOMProps-HzsCnE3d.es.js} +2 -2
  146. package/dist/chunks/{filterDOMProps-D6KHYVBX.es.js.map → filterDOMProps-HzsCnE3d.es.js.map} +1 -1
  147. package/dist/chunks/{filterDOMProps-BS2lrgFA.cjs.js → filterDOMProps-_f3L9QML.cjs.js} +2 -2
  148. package/dist/chunks/{filterDOMProps-BS2lrgFA.cjs.js.map → filterDOMProps-_f3L9QML.cjs.js.map} +1 -1
  149. package/dist/chunks/focusSafely-BEP7qH8R.cjs.js +2 -0
  150. package/dist/chunks/focusSafely-BEP7qH8R.cjs.js.map +1 -0
  151. package/dist/chunks/focusSafely-Cpgkt6WC.es.js +69 -0
  152. package/dist/chunks/focusSafely-Cpgkt6WC.es.js.map +1 -0
  153. package/dist/chunks/focusWithoutScrolling-BlyUcXdY.cjs.js.map +1 -1
  154. package/dist/chunks/focusWithoutScrolling-CDw3JYiq.es.js.map +1 -1
  155. package/dist/chunks/{form-field-DwxzvTA8.es.js → form-field-CmiwMrRv.es.js} +4 -4
  156. package/dist/chunks/{form-field-DwxzvTA8.es.js.map → form-field-CmiwMrRv.es.js.map} +1 -1
  157. package/dist/chunks/{form-field-DmlJuq9F.cjs.js → form-field-kTuQQx9G.cjs.js} +2 -2
  158. package/dist/chunks/{form-field-DmlJuq9F.cjs.js.map → form-field-kTuQQx9G.cjs.js.map} +1 -1
  159. package/dist/chunks/{icon-button-Bj1MnoDm.es.js → icon-button-CPBzhg2C.es.js} +2 -2
  160. package/dist/chunks/{icon-button-Bj1MnoDm.es.js.map → icon-button-CPBzhg2C.es.js.map} +1 -1
  161. package/dist/chunks/{icon-button-Vf2txEnP.cjs.js → icon-button-QwpNTUZ8.cjs.js} +2 -2
  162. package/dist/chunks/{icon-button-Vf2txEnP.cjs.js.map → icon-button-QwpNTUZ8.cjs.js.map} +1 -1
  163. package/dist/chunks/kbd-Bkhw9E6L.cjs.js +2 -0
  164. package/dist/chunks/kbd-Bkhw9E6L.cjs.js.map +1 -0
  165. package/dist/chunks/kbd-Gxvodc1U.es.js +15 -0
  166. package/dist/chunks/kbd-Gxvodc1U.es.js.map +1 -0
  167. package/dist/chunks/kbd.recipe-BONVaPQN.es.js +26 -0
  168. package/dist/chunks/kbd.recipe-BONVaPQN.es.js.map +1 -0
  169. package/dist/chunks/kbd.recipe-UlkJJrC8.cjs.js +2 -0
  170. package/dist/chunks/kbd.recipe-UlkJJrC8.cjs.js.map +1 -0
  171. package/dist/chunks/{link-C89khrQp.cjs.js → link-DJmmcif9.cjs.js} +2 -2
  172. package/dist/chunks/{link-C89khrQp.cjs.js.map → link-DJmmcif9.cjs.js.map} +1 -1
  173. package/dist/chunks/{link-D3Rr2RQl.es.js → link-I24WQHS6.es.js} +7 -7
  174. package/dist/chunks/{link-D3Rr2RQl.es.js.map → link-I24WQHS6.es.js.map} +1 -1
  175. package/dist/chunks/{loading-spinner-CnJDA2s5.cjs.js → loading-spinner-BQd4UVQs.cjs.js} +2 -2
  176. package/dist/chunks/{loading-spinner-CnJDA2s5.cjs.js.map → loading-spinner-BQd4UVQs.cjs.js.map} +1 -1
  177. package/dist/chunks/{loading-spinner-DBsMwy3U.es.js → loading-spinner-DwN-yshK.es.js} +3 -3
  178. package/dist/chunks/{loading-spinner-DBsMwy3U.es.js.map → loading-spinner-DwN-yshK.es.js.map} +1 -1
  179. package/dist/chunks/{make-element-focusable-diGDWsyp.es.js → make-element-focusable-BRVwOKkK.es.js} +3 -3
  180. package/dist/chunks/{make-element-focusable-diGDWsyp.es.js.map → make-element-focusable-BRVwOKkK.es.js.map} +1 -1
  181. package/dist/chunks/{make-element-focusable-zhwaMi8v.cjs.js → make-element-focusable-DDGKtWBN.cjs.js} +2 -2
  182. package/dist/chunks/{make-element-focusable-zhwaMi8v.cjs.js.map → make-element-focusable-DDGKtWBN.cjs.js.map} +1 -1
  183. package/dist/chunks/menu-BnUXBlRL.cjs.js +2 -0
  184. package/dist/chunks/menu-BnUXBlRL.cjs.js.map +1 -0
  185. package/dist/chunks/menu-DcEXCIN3.es.js +167 -0
  186. package/dist/chunks/menu-DcEXCIN3.es.js.map +1 -0
  187. package/dist/chunks/{mergeProps-BUo0BHVY.es.js → mergeProps-Bn6EInU5.es.js} +4 -3
  188. package/dist/chunks/{mergeProps-BUo0BHVY.es.js.map → mergeProps-Bn6EInU5.es.js.map} +1 -1
  189. package/dist/chunks/mergeProps-VvQrkhSh.cjs.js +2 -0
  190. package/dist/chunks/{mergeProps--cTsQeLh.cjs.js.map → mergeProps-VvQrkhSh.cjs.js.map} +1 -1
  191. package/dist/chunks/{multiline-text-input-CIHvD3Oz.es.js → multiline-text-input-Be3sGtOK.es.js} +3 -3
  192. package/dist/chunks/{multiline-text-input-CIHvD3Oz.es.js.map → multiline-text-input-Be3sGtOK.es.js.map} +1 -1
  193. package/dist/chunks/{multiline-text-input-AjqfDDxC.cjs.js → multiline-text-input-CzoQb5Ms.cjs.js} +2 -2
  194. package/dist/chunks/{multiline-text-input-AjqfDDxC.cjs.js.map → multiline-text-input-CzoQb5Ms.cjs.js.map} +1 -1
  195. package/dist/chunks/{nimbus-provider-BjnzjFmv.es.js → nimbus-provider-CDXyYH9f.es.js} +377 -217
  196. package/dist/chunks/nimbus-provider-CDXyYH9f.es.js.map +1 -0
  197. package/dist/chunks/nimbus-provider-zUukT3WE.cjs.js +4 -0
  198. package/dist/chunks/nimbus-provider-zUukT3WE.cjs.js.map +1 -0
  199. package/dist/chunks/number-5qMXmHyn.es.js.map +1 -1
  200. package/dist/chunks/number-CnrRPi4_.cjs.js.map +1 -1
  201. package/dist/chunks/{number-input-Da1tzQlg.es.js → number-input-B1gQD11A.es.js} +230 -214
  202. package/dist/chunks/number-input-B1gQD11A.es.js.map +1 -0
  203. package/dist/chunks/number-input-Cvy4MbJv.cjs.js +2 -0
  204. package/dist/chunks/number-input-Cvy4MbJv.cjs.js.map +1 -0
  205. package/dist/chunks/{openLink-Bb-6Z-d5.es.js → openLink-BRnXRj9w.es.js} +11 -11
  206. package/dist/chunks/{openLink-Bb-6Z-d5.es.js.map → openLink-BRnXRj9w.es.js.map} +1 -1
  207. package/dist/chunks/{openLink-COo3k75n.cjs.js → openLink-BjodHrGD.cjs.js} +2 -2
  208. package/dist/chunks/{openLink-COo3k75n.cjs.js.map → openLink-BjodHrGD.cjs.js.map} +1 -1
  209. package/dist/chunks/{password-input-CS1tN_Tr.es.js → password-input-B1oZ6y7E.es.js} +4 -4
  210. package/dist/chunks/{password-input-CS1tN_Tr.es.js.map → password-input-B1oZ6y7E.es.js.map} +1 -1
  211. package/dist/chunks/{password-input-BBUAEOxl.cjs.js → password-input-D3wUJdjZ.cjs.js} +2 -2
  212. package/dist/chunks/{password-input-BBUAEOxl.cjs.js.map → password-input-D3wUJdjZ.cjs.js.map} +1 -1
  213. package/dist/chunks/{platform-Bc175Jt1.es.js → platform-D-bXaP3n.es.js} +3 -3
  214. package/dist/chunks/{platform-Bc175Jt1.es.js.map → platform-D-bXaP3n.es.js.map} +1 -1
  215. package/dist/chunks/{progress-bar-oKaz0uqw.cjs.js → progress-bar-CbZY1dE1.cjs.js} +2 -2
  216. package/dist/chunks/{progress-bar-oKaz0uqw.cjs.js.map → progress-bar-CbZY1dE1.cjs.js.map} +1 -1
  217. package/dist/chunks/{progress-bar-QwctSqZZ.es.js → progress-bar-VipTWl4r.es.js} +3 -3
  218. package/dist/chunks/{progress-bar-QwctSqZZ.es.js.map → progress-bar-VipTWl4r.es.js.map} +1 -1
  219. package/dist/chunks/{radio-input-BexkdvxD.es.js → radio-input-BSrrYcqs.es.js} +15 -15
  220. package/dist/chunks/{radio-input-BexkdvxD.es.js.map → radio-input-BSrrYcqs.es.js.map} +1 -1
  221. package/dist/chunks/{radio-input-C7QoAolu.cjs.js → radio-input-vHNjGqLS.cjs.js} +2 -2
  222. package/dist/chunks/{radio-input-C7QoAolu.cjs.js.map → radio-input-vHNjGqLS.cjs.js.map} +1 -1
  223. package/dist/chunks/range-calendar-CsS-i222.cjs.js +2 -0
  224. package/dist/chunks/range-calendar-CsS-i222.cjs.js.map +1 -0
  225. package/dist/chunks/range-calendar-DEpcpGLw.es.js +185 -0
  226. package/dist/chunks/range-calendar-DEpcpGLw.es.js.map +1 -0
  227. package/dist/chunks/range-calendar.recipe-D7Qn7AJr.es.js +129 -0
  228. package/dist/chunks/range-calendar.recipe-D7Qn7AJr.es.js.map +1 -0
  229. package/dist/chunks/range-calendar.recipe-H7PsZQwO.cjs.js +2 -0
  230. package/dist/chunks/range-calendar.recipe-H7PsZQwO.cjs.js.map +1 -0
  231. package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js +2 -0
  232. package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js.map +1 -0
  233. package/dist/chunks/scrollIntoView-C5qp-va8.es.js +64 -0
  234. package/dist/chunks/scrollIntoView-C5qp-va8.es.js.map +1 -0
  235. package/dist/chunks/select-CMIJ0YjS.cjs.js +2 -0
  236. package/dist/chunks/{select-CwzhqF_g.cjs.js.map → select-CMIJ0YjS.cjs.js.map} +1 -1
  237. package/dist/chunks/{select-CU2u2b6U.es.js → select-wZ584ENo.es.js} +154 -153
  238. package/dist/chunks/{select-CU2u2b6U.es.js.map → select-wZ584ENo.es.js.map} +1 -1
  239. package/dist/chunks/select.recipe-BIox51h1.cjs.js +2 -0
  240. package/dist/chunks/select.recipe-BIox51h1.cjs.js.map +1 -0
  241. package/dist/chunks/{select.recipe-CXWsUldF.es.js → select.recipe-CNH8aWdo.es.js} +3 -3
  242. package/dist/chunks/select.recipe-CNH8aWdo.es.js.map +1 -0
  243. package/dist/chunks/{switch-CUwyaYts.cjs.js → switch-BM-A9yVv.cjs.js} +2 -2
  244. package/dist/chunks/{switch-CUwyaYts.cjs.js.map → switch-BM-A9yVv.cjs.js.map} +1 -1
  245. package/dist/chunks/{switch-DgbFw1kA.es.js → switch-Bxeo0Ktw.es.js} +5 -5
  246. package/dist/chunks/{switch-DgbFw1kA.es.js.map → switch-Bxeo0Ktw.es.js.map} +1 -1
  247. package/dist/chunks/{tag-group-Cc6S9cbR.es.js → tag-group-CWIMWAG_.es.js} +56 -55
  248. package/dist/chunks/{tag-group-Cc6S9cbR.es.js.map → tag-group-CWIMWAG_.es.js.map} +1 -1
  249. package/dist/chunks/tag-group-IJIXPuLT.cjs.js +2 -0
  250. package/dist/chunks/{tag-group-DCgEBbmh.cjs.js.map → tag-group-IJIXPuLT.cjs.js.map} +1 -1
  251. package/dist/chunks/{text-CEFwlX3E.cjs.js → text--fhvW47o.cjs.js} +2 -2
  252. package/dist/chunks/{text-CEFwlX3E.cjs.js.map → text--fhvW47o.cjs.js.map} +1 -1
  253. package/dist/chunks/{text-CYoFrI2I.es.js → text-CFsPSPPs.es.js} +2 -2
  254. package/dist/chunks/{text-CYoFrI2I.es.js.map → text-CFsPSPPs.es.js.map} +1 -1
  255. package/dist/chunks/{text-input-uhPCsxsK.es.js → text-input--62r8jAx.es.js} +3 -3
  256. package/dist/chunks/{text-input-uhPCsxsK.es.js.map → text-input--62r8jAx.es.js.map} +1 -1
  257. package/dist/chunks/{text-input-fAoATAAX.cjs.js → text-input-FGkoWybY.cjs.js} +2 -2
  258. package/dist/chunks/{text-input-fAoATAAX.cjs.js.map → text-input-FGkoWybY.cjs.js.map} +1 -1
  259. package/dist/chunks/{time-input-BwtzFUWN.cjs.js → time-input-BH0G5PFd.cjs.js} +2 -2
  260. package/dist/chunks/{time-input-BwtzFUWN.cjs.js.map → time-input-BH0G5PFd.cjs.js.map} +1 -1
  261. package/dist/chunks/{time-input-ClF6Qx1T.es.js → time-input-DeYvqDoa.es.js} +2 -2
  262. package/dist/chunks/{time-input-ClF6Qx1T.es.js.map → time-input-DeYvqDoa.es.js.map} +1 -1
  263. package/dist/chunks/{toggle-button-group-BDzXfqxK.es.js → toggle-button-group-B5xBRXo1.es.js} +12 -24
  264. package/dist/chunks/{toggle-button-group-BDzXfqxK.es.js.map → toggle-button-group-B5xBRXo1.es.js.map} +1 -1
  265. package/dist/chunks/{toggle-button-group-BOdTMLPd.cjs.js → toggle-button-group-Cvhe_K50.cjs.js} +2 -2
  266. package/dist/chunks/{toggle-button-group-BOdTMLPd.cjs.js.map → toggle-button-group-Cvhe_K50.cjs.js.map} +1 -1
  267. package/dist/chunks/tooltip-B6mXEaGu.cjs.js +2 -0
  268. package/dist/chunks/{tooltip-p-s9eZWV.cjs.js.map → tooltip-B6mXEaGu.cjs.js.map} +1 -1
  269. package/dist/chunks/{tooltip-MQm4h_hA.es.js → tooltip-CsfjIITA.es.js} +33 -33
  270. package/dist/chunks/{tooltip-MQm4h_hA.es.js.map → tooltip-CsfjIITA.es.js.map} +1 -1
  271. package/dist/chunks/{useButton-DdY6ixlh.es.js → useButton-BGeoUZHr.es.js} +5 -5
  272. package/dist/chunks/{useButton-DdY6ixlh.es.js.map → useButton-BGeoUZHr.es.js.map} +1 -1
  273. package/dist/chunks/{useButton-Cw2i6_TH.cjs.js → useButton-Bnd1IfAy.cjs.js} +2 -2
  274. package/dist/chunks/{useButton-Cw2i6_TH.cjs.js.map → useButton-Bnd1IfAy.cjs.js.map} +1 -1
  275. package/dist/chunks/useControlledState-D0L6S_5r.cjs.js.map +1 -1
  276. package/dist/chunks/useControlledState-u436Wbp1.es.js.map +1 -1
  277. package/dist/chunks/useDateFormatter-Byp_7yyY.cjs.js +2 -0
  278. package/dist/chunks/{useDateFormatter-CeTPxW8a.cjs.js.map → useDateFormatter-Byp_7yyY.cjs.js.map} +1 -1
  279. package/dist/chunks/{useDateFormatter-DvdguFVS.es.js → useDateFormatter-CioL-RTi.es.js} +37 -37
  280. package/dist/chunks/{useDateFormatter-DvdguFVS.es.js.map → useDateFormatter-CioL-RTi.es.js.map} +1 -1
  281. package/dist/chunks/useDescription-BQV7vQ1v.es.js +33 -0
  282. package/dist/chunks/useDescription-BQV7vQ1v.es.js.map +1 -0
  283. package/dist/chunks/useDescription-Bb-vj5q6.cjs.js +2 -0
  284. package/dist/chunks/useDescription-Bb-vj5q6.cjs.js.map +1 -0
  285. package/dist/chunks/{useEvent-BFbCMsMG.cjs.js → useEvent-ZeHBdflg.cjs.js} +2 -2
  286. package/dist/chunks/{useEvent-BFbCMsMG.cjs.js.map → useEvent-ZeHBdflg.cjs.js.map} +1 -1
  287. package/dist/chunks/{useEvent-CzfHWUdv.es.js → useEvent-xlhjqVYi.es.js} +2 -2
  288. package/dist/chunks/{useEvent-CzfHWUdv.es.js.map → useEvent-xlhjqVYi.es.js.map} +1 -1
  289. package/dist/chunks/{useField-Caqfdud_.es.js → useField-BGOhsACE.es.js} +3 -3
  290. package/dist/chunks/{useField-Caqfdud_.es.js.map → useField-BGOhsACE.es.js.map} +1 -1
  291. package/dist/chunks/{useField-CNr5aECk.cjs.js → useField-Doh1_zqa.cjs.js} +2 -2
  292. package/dist/chunks/{useField-CNr5aECk.cjs.js.map → useField-Doh1_zqa.cjs.js.map} +1 -1
  293. package/dist/chunks/useFocus-CRjxQc9J.cjs.js +2 -0
  294. package/dist/chunks/useFocus-CRjxQc9J.cjs.js.map +1 -0
  295. package/dist/chunks/useFocus-DyrL604F.es.js +189 -0
  296. package/dist/chunks/useFocus-DyrL604F.es.js.map +1 -0
  297. package/dist/chunks/{useFocusRing-Bij4qXCm.es.js → useFocusRing-BOPRvfsD.es.js} +3 -3
  298. package/dist/chunks/{useFocusRing-Bij4qXCm.es.js.map → useFocusRing-BOPRvfsD.es.js.map} +1 -1
  299. package/dist/chunks/{useFocusRing-DE3LmlBK.cjs.js → useFocusRing-wD8IMPEh.cjs.js} +2 -2
  300. package/dist/chunks/{useFocusRing-DE3LmlBK.cjs.js.map → useFocusRing-wD8IMPEh.cjs.js.map} +1 -1
  301. package/dist/chunks/{useFocusWithin-CWaYFSji.cjs.js → useFocusWithin-B5GNsbfr.cjs.js} +2 -2
  302. package/dist/chunks/{useFocusWithin-CWaYFSji.cjs.js.map → useFocusWithin-B5GNsbfr.cjs.js.map} +1 -1
  303. package/dist/chunks/{useFocusWithin-BxAgY02U.es.js → useFocusWithin-DH1ei7eA.es.js} +2 -2
  304. package/dist/chunks/{useFocusWithin-BxAgY02U.es.js.map → useFocusWithin-DH1ei7eA.es.js.map} +1 -1
  305. package/dist/chunks/useFocusable-Bbz310Qf.cjs.js +2 -0
  306. package/dist/chunks/useFocusable-Bbz310Qf.cjs.js.map +1 -0
  307. package/dist/chunks/useFocusable-C_1ABg2H.es.js +100 -0
  308. package/dist/chunks/useFocusable-C_1ABg2H.es.js.map +1 -0
  309. package/dist/chunks/useFormReset-C6y6YYJp.cjs.js +2 -0
  310. package/dist/chunks/{useFormReset-B7JIQEba.cjs.js.map → useFormReset-C6y6YYJp.cjs.js.map} +1 -1
  311. package/dist/chunks/{useFormReset-j9laz3Zh.es.js → useFormReset-CC4XkaS0.es.js} +4 -4
  312. package/dist/chunks/{useFormReset-j9laz3Zh.es.js.map → useFormReset-CC4XkaS0.es.js.map} +1 -1
  313. package/dist/chunks/useFormValidation-D4duh8Fb.es.js +200 -0
  314. package/dist/chunks/{useFormValidation-BbPFbrIk.es.js.map → useFormValidation-D4duh8Fb.es.js.map} +1 -1
  315. package/dist/chunks/useFormValidation-D5EJ50gR.cjs.js +2 -0
  316. package/dist/chunks/{useFormValidation-WxEl8dbL.cjs.js.map → useFormValidation-D5EJ50gR.cjs.js.map} +1 -1
  317. package/dist/chunks/useHover-B4ryD1zd.cjs.js +2 -0
  318. package/dist/chunks/useHover-B4ryD1zd.cjs.js.map +1 -0
  319. package/dist/chunks/{useHover-DmJo2yqg.es.js → useHover-EutQBS3I.es.js} +19 -19
  320. package/dist/chunks/useHover-EutQBS3I.es.js.map +1 -0
  321. package/dist/chunks/{useLabel-CekSAnqJ.es.js → useLabel-BuEJIpWS.es.js} +2 -2
  322. package/dist/chunks/{useLabel-CekSAnqJ.es.js.map → useLabel-BuEJIpWS.es.js.map} +1 -1
  323. package/dist/chunks/{useLabel-C1BLl-NU.cjs.js → useLabel-f5x32F8v.cjs.js} +2 -2
  324. package/dist/chunks/{useLabel-C1BLl-NU.cjs.js.map → useLabel-f5x32F8v.cjs.js.map} +1 -1
  325. package/dist/chunks/{useLocalizedStringFormatter-BfWBwLjq.es.js → useLocalizedStringFormatter-B_O_C-A0.es.js} +2 -2
  326. package/dist/chunks/{useLocalizedStringFormatter-BfWBwLjq.es.js.map → useLocalizedStringFormatter-B_O_C-A0.es.js.map} +1 -1
  327. package/dist/chunks/useLocalizedStringFormatter-ZUZDzNOP.cjs.js +2 -0
  328. package/dist/chunks/{useLocalizedStringFormatter-CdsqKKUv.cjs.js.map → useLocalizedStringFormatter-ZUZDzNOP.cjs.js.map} +1 -1
  329. package/dist/chunks/useObjectRef-4v2MxSjQ.cjs.js.map +1 -1
  330. package/dist/chunks/useObjectRef-CaJ5pgjX.es.js.map +1 -1
  331. package/dist/chunks/{usePress-Cjh8V0gi.es.js → usePress-Bf0oV30S.es.js} +182 -165
  332. package/dist/chunks/usePress-Bf0oV30S.es.js.map +1 -0
  333. package/dist/chunks/usePress-Cqy1fzvV.cjs.js +8 -0
  334. package/dist/chunks/usePress-Cqy1fzvV.cjs.js.map +1 -0
  335. package/dist/chunks/{useProgressBar-C2d-2Fkp.cjs.js → useProgressBar-3tBtQD6p.cjs.js} +2 -2
  336. package/dist/chunks/{useProgressBar-C2d-2Fkp.cjs.js.map → useProgressBar-3tBtQD6p.cjs.js.map} +1 -1
  337. package/dist/chunks/{useProgressBar-DZT7aMNM.es.js → useProgressBar-C8j_OVKt.es.js} +4 -4
  338. package/dist/chunks/{useProgressBar-DZT7aMNM.es.js.map → useProgressBar-C8j_OVKt.es.js.map} +1 -1
  339. package/dist/chunks/useSeparator-CZKjqF0N.cjs.js +2 -0
  340. package/dist/chunks/useSeparator-CZKjqF0N.cjs.js.map +1 -0
  341. package/dist/chunks/useSeparator-g1ilWvTX.es.js +19 -0
  342. package/dist/chunks/useSeparator-g1ilWvTX.es.js.map +1 -0
  343. package/dist/chunks/useSingleSelectListState-BLYvCKPf.cjs.js +2 -0
  344. package/dist/chunks/useSingleSelectListState-BLYvCKPf.cjs.js.map +1 -0
  345. package/dist/chunks/useSingleSelectListState-Dtne-c12.es.js +35 -0
  346. package/dist/chunks/useSingleSelectListState-Dtne-c12.es.js.map +1 -0
  347. package/dist/chunks/{useSpinButton-D2j8iVmv.es.js → useSpinButton-DEhwpuEM.es.js} +187 -158
  348. package/dist/chunks/useSpinButton-DEhwpuEM.es.js.map +1 -0
  349. package/dist/chunks/useSpinButton-DkqZHy9E.cjs.js +2 -0
  350. package/dist/chunks/useSpinButton-DkqZHy9E.cjs.js.map +1 -0
  351. package/dist/chunks/{useTextField-CtQSL6tL.es.js → useTextField-DewF7uv9.es.js} +8 -8
  352. package/dist/chunks/{useTextField-CtQSL6tL.es.js.map → useTextField-DewF7uv9.es.js.map} +1 -1
  353. package/dist/chunks/useTextField-J5W2QB4G.cjs.js +2 -0
  354. package/dist/chunks/{useTextField-BMUp5FfB.cjs.js.map → useTextField-J5W2QB4G.cjs.js.map} +1 -1
  355. package/dist/chunks/{useToggle-CTRf6MHr.es.js → useToggle-BXsvw8Q3.es.js} +6 -6
  356. package/dist/chunks/{useToggle-CTRf6MHr.es.js.map → useToggle-BXsvw8Q3.es.js.map} +1 -1
  357. package/dist/chunks/{useToggle-CdzYIaIp.cjs.js → useToggle-VMBvyMfl.cjs.js} +2 -2
  358. package/dist/chunks/{useToggle-CdzYIaIp.cjs.js.map → useToggle-VMBvyMfl.cjs.js.map} +1 -1
  359. package/dist/chunks/useToggleState-bO90kfqG.cjs.js.map +1 -1
  360. package/dist/chunks/useToggleState-mKFEFD2Q.es.js.map +1 -1
  361. package/dist/chunks/useUpdateEffect-CCDx8D4X.es.js.map +1 -1
  362. package/dist/chunks/useUpdateEffect-sk3kiVGz.cjs.js.map +1 -1
  363. package/dist/chunks/utils-BR34o1UE.es.js +269 -0
  364. package/dist/chunks/utils-BR34o1UE.es.js.map +1 -0
  365. package/dist/chunks/{utils-DB75DiMj.es.js → utils-CEdpnSRC.es.js} +4 -4
  366. package/dist/chunks/{utils-DB75DiMj.es.js.map → utils-CEdpnSRC.es.js.map} +1 -1
  367. package/dist/chunks/utils-CThuzDqT.cjs.js +2 -0
  368. package/dist/chunks/utils-CThuzDqT.cjs.js.map +1 -0
  369. package/dist/chunks/{utils-BQD5cAKH.cjs.js → utils-sWqo2nmW.cjs.js} +2 -2
  370. package/dist/chunks/{utils-BQD5cAKH.cjs.js.map → utils-sWqo2nmW.cjs.js.map} +1 -1
  371. package/dist/chunks/{visually-hidden-DJxzCHM4.es.js → visually-hidden-CQabqCJt.es.js} +2 -2
  372. package/dist/chunks/{visually-hidden-DJxzCHM4.es.js.map → visually-hidden-CQabqCJt.es.js.map} +1 -1
  373. package/dist/chunks/{visually-hidden-XscDHjYa.cjs.js → visually-hidden-YFEW-yS7.cjs.js} +2 -2
  374. package/dist/chunks/{visually-hidden-XscDHjYa.cjs.js.map → visually-hidden-YFEW-yS7.cjs.js.map} +1 -1
  375. package/dist/components/accordion.cjs +1 -1
  376. package/dist/components/accordion.es.js +1 -1
  377. package/dist/components/alert.cjs +1 -1
  378. package/dist/components/alert.es.js +1 -1
  379. package/dist/components/badge.cjs +1 -1
  380. package/dist/components/badge.es.js +1 -1
  381. package/dist/components/button.cjs +1 -1
  382. package/dist/components/button.es.js +1 -1
  383. package/dist/components/calendar.cjs +1 -1
  384. package/dist/components/calendar.es.js +1 -1
  385. package/dist/components/card.cjs +1 -1
  386. package/dist/components/card.es.js +1 -1
  387. package/dist/components/checkbox.cjs +1 -1
  388. package/dist/components/checkbox.es.js +1 -1
  389. package/dist/components/combobox.cjs +1 -1
  390. package/dist/components/combobox.es.js +1 -1
  391. package/dist/components/components.cjs +1 -1
  392. package/dist/components/components.es.js +96 -82
  393. package/dist/components/components.es.js.map +1 -1
  394. package/dist/components/date-input.cjs +1 -1
  395. package/dist/components/date-input.es.js +1 -1
  396. package/dist/components/date-picker.cjs +1 -1
  397. package/dist/components/date-picker.es.js +1 -1
  398. package/dist/components/date-range-picker.cjs +2 -0
  399. package/dist/components/date-range-picker.cjs.map +1 -0
  400. package/dist/components/date-range-picker.es.js +5 -0
  401. package/dist/components/date-range-picker.es.js.map +1 -0
  402. package/dist/components/divider.cjs +1 -1
  403. package/dist/components/divider.es.js +1 -1
  404. package/dist/components/form-field.cjs +1 -1
  405. package/dist/components/form-field.es.js +1 -1
  406. package/dist/components/icon-button.cjs +1 -1
  407. package/dist/components/icon-button.es.js +1 -1
  408. package/dist/components/kbd.cjs +1 -1
  409. package/dist/components/kbd.es.js +1 -1
  410. package/dist/components/link.cjs +1 -1
  411. package/dist/components/link.es.js +1 -1
  412. package/dist/components/loading-spinner.cjs +1 -1
  413. package/dist/components/loading-spinner.es.js +1 -1
  414. package/dist/components/multiline-text-input.cjs +1 -1
  415. package/dist/components/multiline-text-input.es.js +1 -1
  416. package/dist/components/nimbus-provider.cjs +1 -1
  417. package/dist/components/nimbus-provider.es.js +1 -1
  418. package/dist/components/number-input.cjs +1 -1
  419. package/dist/components/number-input.es.js +1 -1
  420. package/dist/components/password-input.cjs +1 -1
  421. package/dist/components/password-input.es.js +1 -1
  422. package/dist/components/progress-bar.cjs +1 -1
  423. package/dist/components/progress-bar.es.js +1 -1
  424. package/dist/components/radio-input.cjs +1 -1
  425. package/dist/components/radio-input.es.js +1 -1
  426. package/dist/components/range-calendar.cjs +2 -0
  427. package/dist/components/range-calendar.cjs.map +1 -0
  428. package/dist/components/range-calendar.es.js +5 -0
  429. package/dist/components/range-calendar.es.js.map +1 -0
  430. package/dist/components/select.cjs +1 -1
  431. package/dist/components/select.es.js +1 -1
  432. package/dist/components/switch.cjs +1 -1
  433. package/dist/components/switch.es.js +1 -1
  434. package/dist/components/tag-group.cjs +1 -1
  435. package/dist/components/tag-group.es.js +1 -1
  436. package/dist/components/text-input.cjs +1 -1
  437. package/dist/components/text-input.es.js +1 -1
  438. package/dist/components/text.cjs +1 -1
  439. package/dist/components/text.es.js +1 -1
  440. package/dist/components/time-input.cjs +1 -1
  441. package/dist/components/time-input.es.js +1 -1
  442. package/dist/components/toggle-button-group.cjs +1 -1
  443. package/dist/components/toggle-button-group.es.js +1 -1
  444. package/dist/components/tooltip.cjs +1 -1
  445. package/dist/components/tooltip.es.js +2 -2
  446. package/dist/components/visually-hidden.cjs +1 -1
  447. package/dist/components/visually-hidden.es.js +1 -1
  448. package/dist/components.d.ts +325 -4
  449. package/dist/date-input.d.ts +7 -0
  450. package/dist/date-picker.d.ts +21 -1
  451. package/dist/date-range-picker.d.ts +111 -0
  452. package/dist/icon.d.ts +5 -0
  453. package/dist/index.cjs +1 -1
  454. package/dist/index.cjs.map +1 -1
  455. package/dist/index.d.ts +325 -4
  456. package/dist/index.es.js +116 -102
  457. package/dist/index.es.js.map +1 -1
  458. package/dist/kbd.d.ts +13 -5
  459. package/dist/range-calendar.d.ts +33 -0
  460. package/dist/setup-jsdom-polyfills.cjs.map +1 -1
  461. package/dist/setup-jsdom-polyfills.es.js.map +1 -1
  462. package/package.json +14 -13
  463. package/dist/chunks/DateField-BjIjR7y5.cjs.js +0 -2
  464. package/dist/chunks/Dialog-B6tbMgyU.cjs.js +0 -2
  465. package/dist/chunks/Dialog-B6tbMgyU.cjs.js.map +0 -1
  466. package/dist/chunks/Dialog-Ct6jqZ14.es.js +0 -870
  467. package/dist/chunks/Dialog-Ct6jqZ14.es.js.map +0 -1
  468. package/dist/chunks/FocusScope-BUeBbhRq.cjs.js +0 -2
  469. package/dist/chunks/FocusScope-BUeBbhRq.cjs.js.map +0 -1
  470. package/dist/chunks/FocusScope-BacYMT5s.es.js.map +0 -1
  471. package/dist/chunks/ListBox-ABeVGjvU.es.js +0 -3007
  472. package/dist/chunks/ListBox-ABeVGjvU.es.js.map +0 -1
  473. package/dist/chunks/ListBox-DCA-jDGn.cjs.js +0 -18
  474. package/dist/chunks/ListBox-DCA-jDGn.cjs.js.map +0 -1
  475. package/dist/chunks/LiveAnnouncer-CwEWPU8b.cjs.js +0 -2
  476. package/dist/chunks/OverlayArrow-HjwHXXDg.cjs.js +0 -2
  477. package/dist/chunks/accordion-BqC_0cQF.cjs.js +0 -2
  478. package/dist/chunks/calendar-4vA2Wjuk.es.js.map +0 -1
  479. package/dist/chunks/calendar-fDyD76bv.cjs.js +0 -2
  480. package/dist/chunks/calendar-fDyD76bv.cjs.js.map +0 -1
  481. package/dist/chunks/combobox-e2_LtIV2.cjs.js +0 -2
  482. package/dist/chunks/combobox-e2_LtIV2.cjs.js.map +0 -1
  483. package/dist/chunks/combobox-yROd_YZT.es.js +0 -1898
  484. package/dist/chunks/combobox-yROd_YZT.es.js.map +0 -1
  485. package/dist/chunks/combobox.recipe-BtnFn38v.cjs.js +0 -2
  486. package/dist/chunks/date-picker-BO7p5VmS.cjs.js +0 -2
  487. package/dist/chunks/date-picker-BO7p5VmS.cjs.js.map +0 -1
  488. package/dist/chunks/date-picker-DJVAYEAw.es.js +0 -484
  489. package/dist/chunks/date-picker-DJVAYEAw.es.js.map +0 -1
  490. package/dist/chunks/divider-Bo7fu52f.es.js +0 -72
  491. package/dist/chunks/divider-Bo7fu52f.es.js.map +0 -1
  492. package/dist/chunks/divider-jlSUrmo7.cjs.js +0 -2
  493. package/dist/chunks/divider-jlSUrmo7.cjs.js.map +0 -1
  494. package/dist/chunks/focusSafely-BsLdCW-M.cjs.js +0 -2
  495. package/dist/chunks/focusSafely-BsLdCW-M.cjs.js.map +0 -1
  496. package/dist/chunks/focusSafely-CahaQIyI.es.js +0 -37
  497. package/dist/chunks/focusSafely-CahaQIyI.es.js.map +0 -1
  498. package/dist/chunks/getScrollParent-DE66eQI-.es.js +0 -15
  499. package/dist/chunks/getScrollParent-DE66eQI-.es.js.map +0 -1
  500. package/dist/chunks/getScrollParent-Dc1cnLDE.cjs.js +0 -2
  501. package/dist/chunks/getScrollParent-Dc1cnLDE.cjs.js.map +0 -1
  502. package/dist/chunks/kbd-BKH_SGCC.es.js +0 -6
  503. package/dist/chunks/kbd-BKH_SGCC.es.js.map +0 -1
  504. package/dist/chunks/kbd-Bhv8ae1I.cjs.js +0 -2
  505. package/dist/chunks/kbd-Bhv8ae1I.cjs.js.map +0 -1
  506. package/dist/chunks/mergeProps--cTsQeLh.cjs.js +0 -2
  507. package/dist/chunks/nimbus-provider-BjnzjFmv.es.js.map +0 -1
  508. package/dist/chunks/nimbus-provider-Cfpse_6n.cjs.js +0 -2
  509. package/dist/chunks/nimbus-provider-Cfpse_6n.cjs.js.map +0 -1
  510. package/dist/chunks/number-input-Da1tzQlg.es.js.map +0 -1
  511. package/dist/chunks/number-input-oxPP81Et.cjs.js +0 -2
  512. package/dist/chunks/number-input-oxPP81Et.cjs.js.map +0 -1
  513. package/dist/chunks/scrollIntoView-CqkKWFb6.es.js +0 -83
  514. package/dist/chunks/scrollIntoView-CqkKWFb6.es.js.map +0 -1
  515. package/dist/chunks/scrollIntoView-DJjtWQTK.cjs.js +0 -2
  516. package/dist/chunks/scrollIntoView-DJjtWQTK.cjs.js.map +0 -1
  517. package/dist/chunks/select-CwzhqF_g.cjs.js +0 -2
  518. package/dist/chunks/select.recipe-CXWsUldF.es.js.map +0 -1
  519. package/dist/chunks/select.recipe-DUHFWlQt.cjs.js +0 -2
  520. package/dist/chunks/select.recipe-DUHFWlQt.cjs.js.map +0 -1
  521. package/dist/chunks/tag-group-DCgEBbmh.cjs.js +0 -2
  522. package/dist/chunks/tooltip-p-s9eZWV.cjs.js +0 -2
  523. package/dist/chunks/useDateFormatter-CeTPxW8a.cjs.js +0 -2
  524. package/dist/chunks/useFocus-3ktZKnFP.es.js +0 -135
  525. package/dist/chunks/useFocus-3ktZKnFP.es.js.map +0 -1
  526. package/dist/chunks/useFocus-D9bTLwXz.cjs.js +0 -2
  527. package/dist/chunks/useFocus-D9bTLwXz.cjs.js.map +0 -1
  528. package/dist/chunks/useFocusable-41-WL-k6.cjs.js +0 -2
  529. package/dist/chunks/useFocusable-41-WL-k6.cjs.js.map +0 -1
  530. package/dist/chunks/useFocusable-B4YfgYbi.es.js +0 -75
  531. package/dist/chunks/useFocusable-B4YfgYbi.es.js.map +0 -1
  532. package/dist/chunks/useFormReset-B7JIQEba.cjs.js +0 -2
  533. package/dist/chunks/useFormValidation-BbPFbrIk.es.js +0 -179
  534. package/dist/chunks/useFormValidation-WxEl8dbL.cjs.js +0 -2
  535. package/dist/chunks/useHover-ClWWazLU.cjs.js +0 -2
  536. package/dist/chunks/useHover-ClWWazLU.cjs.js.map +0 -1
  537. package/dist/chunks/useHover-DmJo2yqg.es.js.map +0 -1
  538. package/dist/chunks/useLocalizedStringFormatter-CdsqKKUv.cjs.js +0 -2
  539. package/dist/chunks/usePress-CHjHe0z6.cjs.js +0 -8
  540. package/dist/chunks/usePress-CHjHe0z6.cjs.js.map +0 -1
  541. package/dist/chunks/usePress-Cjh8V0gi.es.js.map +0 -1
  542. package/dist/chunks/useSingleSelectListState-C2uPq6eE.cjs.js +0 -2
  543. package/dist/chunks/useSingleSelectListState-C2uPq6eE.cjs.js.map +0 -1
  544. package/dist/chunks/useSingleSelectListState-NfI_d4ak.es.js +0 -269
  545. package/dist/chunks/useSingleSelectListState-NfI_d4ak.es.js.map +0 -1
  546. package/dist/chunks/useSpinButton-C2O01UxL.cjs.js +0 -2
  547. package/dist/chunks/useSpinButton-C2O01UxL.cjs.js.map +0 -1
  548. package/dist/chunks/useSpinButton-D2j8iVmv.es.js.map +0 -1
  549. package/dist/chunks/useTextField-BMUp5FfB.cjs.js +0 -2
  550. package/dist/chunks/utils-4CMfmbln.es.js +0 -187
  551. package/dist/chunks/utils-4CMfmbln.es.js.map +0 -1
  552. package/dist/chunks/utils-DDsBrWAK.cjs.js +0 -2
  553. package/dist/chunks/utils-DDsBrWAK.cjs.js.map +0 -1
@@ -0,0 +1,2435 @@
1
+ import { $ as Ze } from "./usePress-Bf0oV30S.es.js";
2
+ import { k as ll, $ as il, a as nl, l as rl } from "./utils-BR34o1UE.es.js";
3
+ import { $ as ol, a as me } from "./focusSafely-Cpgkt6WC.es.js";
4
+ import S, { useRef as D, useState as X, useEffect as Z, useMemo as N, cloneElement as Qe, forwardRef as et, useContext as Q, createContext as B, useCallback as G, isValidElement as sl } from "react";
5
+ import { d as xe, a as Ie, c as te, $ as ee } from "./mergeProps-Bn6EInU5.es.js";
6
+ import { $ as tt, d as al } from "./openLink-BRnXRj9w.es.js";
7
+ import { b as ul, h as cl } from "./platform-D-bXaP3n.es.js";
8
+ import { $ as Ae } from "./focusWithoutScrolling-CDw3JYiq.es.js";
9
+ import { $ as ne } from "./useEvent-xlhjqVYi.es.js";
10
+ import { b as dl, a as Le, c as Me } from "./scrollIntoView-C5qp-va8.es.js";
11
+ import { flushSync as fl, createPortal as hl } from "react-dom";
12
+ import { d as Se } from "./useFocus-DyrL604F.es.js";
13
+ import { c as Ke, a as pl } from "./FocusScope-8pBtcv8k.es.js";
14
+ import { $ as yl } from "./context-D3RF-nTI.es.js";
15
+ import { $ as vl } from "./useCollator-BhJcleP-.es.js";
16
+ import { $ as lt } from "./useControlledState-u436Wbp1.es.js";
17
+ import { a as Ce } from "./Input-Bxs2A5S-.es.js";
18
+ import { $ as se, c as it, b as bl, e as nt, a as $l, d as rt, f as gl } from "./utils-CEdpnSRC.es.js";
19
+ import { $ as ml, a as xl } from "./Form-yBl0QZl8.es.js";
20
+ import { $ as Sl } from "./Label-p7LXqne0.es.js";
21
+ import { a as Kl } from "./TextArea-DcFJx08j.es.js";
22
+ import { $ as Cl } from "./Text-DOcU1ycg.es.js";
23
+ import { a as wl, $ as El } from "./Hidden-X9vuhkMZ.es.js";
24
+ import { $ as ot } from "./filterDOMProps-HzsCnE3d.es.js";
25
+ import { $ as Dl } from "./useTextField-DewF7uv9.es.js";
26
+ import { b as st } from "./domHelpers-InH3T0qs.es.js";
27
+ import { a as kl } from "./useLabel-BuEJIpWS.es.js";
28
+ import { $ as Il } from "./useObjectRef-CaJ5pgjX.es.js";
29
+ import { $ as Pl } from "./useLocalizedStringFormatter-B_O_C-A0.es.js";
30
+ import { c as Be } from "./useFocusable-C_1ABg2H.es.js";
31
+ import { $ as at } from "./SSRProvider-eIEwc-2s.es.js";
32
+ import { $ as Fl } from "./useSeparator-g1ilWvTX.es.js";
33
+ function Oe(r, e) {
34
+ const t = D(!0), l = D(null);
35
+ xe(() => (t.current = !0, () => {
36
+ t.current = !1;
37
+ }), []), xe(() => {
38
+ t.current ? t.current = !1 : (!l.current || e.some((i, n) => !Object.is(i, l[n]))) && r(), l.current = e;
39
+ }, e);
40
+ }
41
+ const ut = "react-aria-clear-focus", we = "react-aria-focus";
42
+ function J(r) {
43
+ return ul() ? r.metaKey : r.ctrlKey;
44
+ }
45
+ let Rl = 0;
46
+ const ye = /* @__PURE__ */ new Map();
47
+ function Tl(r) {
48
+ let [e, t] = X();
49
+ return ll(() => {
50
+ if (!r) return;
51
+ let l = ye.get(r);
52
+ if (l)
53
+ t(l.element.id);
54
+ else {
55
+ let i = `react-aria-description-${Rl++}`;
56
+ t(i);
57
+ let n = document.createElement("div");
58
+ n.id = i, n.style.display = "none", n.textContent = r, document.body.appendChild(n), l = {
59
+ refCount: 0,
60
+ element: n
61
+ }, ye.set(r, l);
62
+ }
63
+ return l.refCount++, () => {
64
+ l && --l.refCount === 0 && (l.element.remove(), ye.delete(r));
65
+ };
66
+ }, [
67
+ r
68
+ ]), {
69
+ "aria-describedby": r ? e : void 0
70
+ };
71
+ }
72
+ const Al = 500;
73
+ function Ll(r) {
74
+ let { isDisabled: e, onLongPressStart: t, onLongPressEnd: l, onLongPress: i, threshold: n = Al, accessibilityDescription: o } = r;
75
+ const u = D(void 0);
76
+ let { addGlobalListener: s, removeGlobalListener: d } = il(), { pressProps: m } = Ze({
77
+ isDisabled: e,
78
+ onPressStart(h) {
79
+ if (h.continuePropagation(), (h.pointerType === "mouse" || h.pointerType === "touch") && (t && t({
80
+ ...h,
81
+ type: "longpressstart"
82
+ }), u.current = setTimeout(() => {
83
+ h.target.dispatchEvent(new PointerEvent("pointercancel", {
84
+ bubbles: !0
85
+ })), nl(h.target).activeElement !== h.target && rl(h.target), i && i({
86
+ ...h,
87
+ type: "longpress"
88
+ }), u.current = void 0;
89
+ }, n), h.pointerType === "touch")) {
90
+ let y = (v) => {
91
+ v.preventDefault();
92
+ };
93
+ s(h.target, "contextmenu", y, {
94
+ once: !0
95
+ }), s(window, "pointerup", () => {
96
+ setTimeout(() => {
97
+ d(h.target, "contextmenu", y);
98
+ }, 30);
99
+ }, {
100
+ once: !0
101
+ });
102
+ }
103
+ },
104
+ onPressEnd(h) {
105
+ u.current && clearTimeout(u.current), l && (h.pointerType === "mouse" || h.pointerType === "touch") && l({
106
+ ...h,
107
+ type: "longpressend"
108
+ });
109
+ }
110
+ }), p = Tl(i && !e ? o : void 0);
111
+ return {
112
+ longPressProps: ol(m, p)
113
+ };
114
+ }
115
+ function Pe(r) {
116
+ let e = Ml(st(r));
117
+ e !== r && (e && Ee(e, r), r && ct(r, e));
118
+ }
119
+ function Ee(r, e) {
120
+ r.dispatchEvent(new FocusEvent("blur", {
121
+ relatedTarget: e
122
+ })), r.dispatchEvent(new FocusEvent("focusout", {
123
+ bubbles: !0,
124
+ relatedTarget: e
125
+ }));
126
+ }
127
+ function ct(r, e) {
128
+ r.dispatchEvent(new FocusEvent("focus", {
129
+ relatedTarget: e
130
+ })), r.dispatchEvent(new FocusEvent("focusin", {
131
+ bubbles: !0,
132
+ relatedTarget: e
133
+ }));
134
+ }
135
+ function Ml(r) {
136
+ let e = Ke(r), t = e?.getAttribute("aria-activedescendant");
137
+ return t && r.getElementById(t) || e;
138
+ }
139
+ function De(r) {
140
+ return cl() ? r.altKey : r.ctrlKey;
141
+ }
142
+ function oe(r, e) {
143
+ var t, l;
144
+ let i = `[data-key="${CSS.escape(String(e))}"]`, n = (t = r.current) === null || t === void 0 ? void 0 : t.dataset.collection;
145
+ return n && (i = `[data-collection="${CSS.escape(n)}"]${i}`), (l = r.current) === null || l === void 0 ? void 0 : l.querySelector(i);
146
+ }
147
+ const dt = /* @__PURE__ */ new WeakMap();
148
+ function Bl(r) {
149
+ let e = Ie();
150
+ return dt.set(r, e), e;
151
+ }
152
+ function Ol(r) {
153
+ return dt.get(r);
154
+ }
155
+ const Nl = 1e3;
156
+ function Vl(r) {
157
+ let { keyboardDelegate: e, selectionManager: t, onTypeSelect: l } = r, i = D({
158
+ search: "",
159
+ timeout: void 0
160
+ }).current, n = (o) => {
161
+ let u = zl(o.key);
162
+ if (!(!u || o.ctrlKey || o.metaKey || !o.currentTarget.contains(o.target))) {
163
+ if (u === " " && i.search.trim().length > 0 && (o.preventDefault(), "continuePropagation" in o || o.stopPropagation()), i.search += u, e.getKeyForSearch != null) {
164
+ let s = e.getKeyForSearch(i.search, t.focusedKey);
165
+ s == null && (s = e.getKeyForSearch(i.search)), s != null && (t.setFocusedKey(s), l && l(s));
166
+ }
167
+ clearTimeout(i.timeout), i.timeout = setTimeout(() => {
168
+ i.search = "";
169
+ }, Nl);
170
+ }
171
+ };
172
+ return {
173
+ typeSelectProps: {
174
+ // Using a capturing listener to catch the keydown event before
175
+ // other hooks in order to handle the Spacebar event.
176
+ onKeyDownCapture: e.getKeyForSearch ? n : void 0
177
+ }
178
+ };
179
+ }
180
+ function zl(r) {
181
+ return r.length === 1 || !/^[A-Z]/i.test(r) ? r : "";
182
+ }
183
+ function Ul(r) {
184
+ let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: n = !1, disallowEmptySelection: o = !1, disallowSelectAll: u = !1, escapeKeyBehavior: s = "clearSelection", selectOnFocus: d = e.selectionBehavior === "replace", disallowTypeAhead: m = !1, shouldUseVirtualFocus: p, allowsTabNavigation: h = !1, isVirtualized: y, scrollRef: v = l, linkBehavior: K = "action" } = r, { direction: $ } = yl(), g = tt(), w = (c) => {
185
+ var a;
186
+ if (c.altKey && c.key === "Tab" && c.preventDefault(), !(!((a = l.current) === null || a === void 0) && a.contains(c.target))) return;
187
+ const E = (b, j) => {
188
+ if (b != null) {
189
+ if (e.isLink(b) && K === "selection" && d && !De(c)) {
190
+ fl(() => {
191
+ e.setFocusedKey(b, j);
192
+ });
193
+ let Y = oe(l, b), Te = e.getItemProps(b);
194
+ Y && g.open(Y, c, Te.href, Te.routerOptions);
195
+ return;
196
+ }
197
+ if (e.setFocusedKey(b, j), e.isLink(b) && K === "override") return;
198
+ c.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(b) : d && !De(c) && e.replaceSelection(b);
199
+ }
200
+ };
201
+ switch (c.key) {
202
+ case "ArrowDown":
203
+ if (t.getKeyBelow) {
204
+ var T, M, A;
205
+ let b = e.focusedKey != null ? (T = t.getKeyBelow) === null || T === void 0 ? void 0 : T.call(t, e.focusedKey) : (M = t.getFirstKey) === null || M === void 0 ? void 0 : M.call(t);
206
+ b == null && n && (b = (A = t.getFirstKey) === null || A === void 0 ? void 0 : A.call(t, e.focusedKey)), b != null && (c.preventDefault(), E(b));
207
+ }
208
+ break;
209
+ case "ArrowUp":
210
+ if (t.getKeyAbove) {
211
+ var U, W, ae;
212
+ let b = e.focusedKey != null ? (U = t.getKeyAbove) === null || U === void 0 ? void 0 : U.call(t, e.focusedKey) : (W = t.getLastKey) === null || W === void 0 ? void 0 : W.call(t);
213
+ b == null && n && (b = (ae = t.getLastKey) === null || ae === void 0 ? void 0 : ae.call(t, e.focusedKey)), b != null && (c.preventDefault(), E(b));
214
+ }
215
+ break;
216
+ case "ArrowLeft":
217
+ if (t.getKeyLeftOf) {
218
+ var ue, ce, de;
219
+ let b = e.focusedKey != null ? (ue = t.getKeyLeftOf) === null || ue === void 0 ? void 0 : ue.call(t, e.focusedKey) : null;
220
+ b == null && n && (b = $ === "rtl" ? (ce = t.getFirstKey) === null || ce === void 0 ? void 0 : ce.call(t, e.focusedKey) : (de = t.getLastKey) === null || de === void 0 ? void 0 : de.call(t, e.focusedKey)), b != null && (c.preventDefault(), E(b, $ === "rtl" ? "first" : "last"));
221
+ }
222
+ break;
223
+ case "ArrowRight":
224
+ if (t.getKeyRightOf) {
225
+ var fe, he, pe;
226
+ let b = e.focusedKey != null ? (fe = t.getKeyRightOf) === null || fe === void 0 ? void 0 : fe.call(t, e.focusedKey) : null;
227
+ b == null && n && (b = $ === "rtl" ? (he = t.getLastKey) === null || he === void 0 ? void 0 : he.call(t, e.focusedKey) : (pe = t.getFirstKey) === null || pe === void 0 ? void 0 : pe.call(t, e.focusedKey)), b != null && (c.preventDefault(), E(b, $ === "rtl" ? "last" : "first"));
228
+ }
229
+ break;
230
+ case "Home":
231
+ if (t.getFirstKey) {
232
+ if (e.focusedKey === null && c.shiftKey) return;
233
+ c.preventDefault();
234
+ let b = t.getFirstKey(e.focusedKey, J(c));
235
+ e.setFocusedKey(b), b != null && (J(c) && c.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(b) : d && e.replaceSelection(b));
236
+ }
237
+ break;
238
+ case "End":
239
+ if (t.getLastKey) {
240
+ if (e.focusedKey === null && c.shiftKey) return;
241
+ c.preventDefault();
242
+ let b = t.getLastKey(e.focusedKey, J(c));
243
+ e.setFocusedKey(b), b != null && (J(c) && c.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(b) : d && e.replaceSelection(b));
244
+ }
245
+ break;
246
+ case "PageDown":
247
+ if (t.getKeyPageBelow && e.focusedKey != null) {
248
+ let b = t.getKeyPageBelow(e.focusedKey);
249
+ b != null && (c.preventDefault(), E(b));
250
+ }
251
+ break;
252
+ case "PageUp":
253
+ if (t.getKeyPageAbove && e.focusedKey != null) {
254
+ let b = t.getKeyPageAbove(e.focusedKey);
255
+ b != null && (c.preventDefault(), E(b));
256
+ }
257
+ break;
258
+ case "a":
259
+ J(c) && e.selectionMode === "multiple" && u !== !0 && (c.preventDefault(), e.selectAll());
260
+ break;
261
+ case "Escape":
262
+ s === "clearSelection" && !o && e.selectedKeys.size !== 0 && (c.stopPropagation(), c.preventDefault(), e.clearSelection());
263
+ break;
264
+ case "Tab":
265
+ if (!h) {
266
+ if (c.shiftKey) l.current.focus();
267
+ else {
268
+ let b = pl(l.current, {
269
+ tabbable: !0
270
+ }), j, Y;
271
+ do
272
+ Y = b.lastChild(), Y && (j = Y);
273
+ while (Y);
274
+ j && !j.contains(document.activeElement) && Ae(j);
275
+ }
276
+ break;
277
+ }
278
+ }
279
+ }, C = D({
280
+ top: 0,
281
+ left: 0
282
+ });
283
+ ne(v, "scroll", y ? void 0 : () => {
284
+ var c, a, E, T;
285
+ C.current = {
286
+ top: (E = (c = v.current) === null || c === void 0 ? void 0 : c.scrollTop) !== null && E !== void 0 ? E : 0,
287
+ left: (T = (a = v.current) === null || a === void 0 ? void 0 : a.scrollLeft) !== null && T !== void 0 ? T : 0
288
+ };
289
+ });
290
+ let k = (c) => {
291
+ if (e.isFocused) {
292
+ c.currentTarget.contains(c.target) || e.setFocused(!1);
293
+ return;
294
+ }
295
+ if (c.currentTarget.contains(c.target)) {
296
+ if (e.setFocused(!0), e.focusedKey == null) {
297
+ var a, E;
298
+ let A = (W) => {
299
+ W != null && (e.setFocusedKey(W), d && !e.isSelected(W) && e.replaceSelection(W));
300
+ }, U = c.relatedTarget;
301
+ var T, M;
302
+ U && c.currentTarget.compareDocumentPosition(U) & Node.DOCUMENT_POSITION_FOLLOWING ? A((T = e.lastSelectedKey) !== null && T !== void 0 ? T : (a = t.getLastKey) === null || a === void 0 ? void 0 : a.call(t)) : A((M = e.firstSelectedKey) !== null && M !== void 0 ? M : (E = t.getFirstKey) === null || E === void 0 ? void 0 : E.call(t));
303
+ } else !y && v.current && (v.current.scrollTop = C.current.top, v.current.scrollLeft = C.current.left);
304
+ if (e.focusedKey != null && v.current) {
305
+ let A = oe(l, e.focusedKey);
306
+ A instanceof HTMLElement && (!A.contains(document.activeElement) && !p && Ae(A), Se() === "keyboard" && Le(A, {
307
+ containingElement: l.current
308
+ }));
309
+ }
310
+ }
311
+ }, F = (c) => {
312
+ c.currentTarget.contains(c.relatedTarget) || e.setFocused(!1);
313
+ }, P = D(!1);
314
+ ne(l, we, p ? (c) => {
315
+ let { detail: a } = c;
316
+ c.stopPropagation(), e.setFocused(!0), a?.focusStrategy === "first" && (P.current = !0);
317
+ } : void 0);
318
+ let O = te(() => {
319
+ var c, a;
320
+ let E = (a = (c = t.getFirstKey) === null || c === void 0 ? void 0 : c.call(t)) !== null && a !== void 0 ? a : null;
321
+ E == null ? (Pe(l.current), e.collection.size > 0 && (P.current = !1)) : (e.setFocusedKey(E), P.current = !1);
322
+ });
323
+ Oe(() => {
324
+ P.current && O();
325
+ }, [
326
+ e.collection,
327
+ O
328
+ ]);
329
+ let R = te(() => {
330
+ e.collection.size > 0 && (P.current = !1);
331
+ });
332
+ Oe(() => {
333
+ R();
334
+ }, [
335
+ e.focusedKey,
336
+ R
337
+ ]), ne(l, ut, p ? (c) => {
338
+ var a;
339
+ c.stopPropagation(), e.setFocused(!1), !((a = c.detail) === null || a === void 0) && a.clearFocusKey && e.setFocusedKey(null);
340
+ } : void 0);
341
+ const _ = D(i), L = D(!1);
342
+ Z(() => {
343
+ if (_.current) {
344
+ var c, a;
345
+ let M = null;
346
+ var E;
347
+ i === "first" && (M = (E = (c = t.getFirstKey) === null || c === void 0 ? void 0 : c.call(t)) !== null && E !== void 0 ? E : null);
348
+ var T;
349
+ i === "last" && (M = (T = (a = t.getLastKey) === null || a === void 0 ? void 0 : a.call(t)) !== null && T !== void 0 ? T : null);
350
+ let A = e.selectedKeys;
351
+ if (A.size) {
352
+ for (let U of A) if (e.canSelectItem(U)) {
353
+ M = U;
354
+ break;
355
+ }
356
+ }
357
+ e.setFocused(!0), e.setFocusedKey(M), M == null && !p && l.current && me(l.current), e.collection.size > 0 && (_.current = !1, L.current = !0);
358
+ }
359
+ });
360
+ let f = D(e.focusedKey), x = D(null);
361
+ Z(() => {
362
+ if (e.isFocused && e.focusedKey != null && (e.focusedKey !== f.current || L.current) && v.current && l.current) {
363
+ let c = Se(), a = oe(l, e.focusedKey);
364
+ if (!(a instanceof HTMLElement))
365
+ return;
366
+ (c === "keyboard" || L.current) && (x.current && cancelAnimationFrame(x.current), x.current = requestAnimationFrame(() => {
367
+ v.current && (dl(v.current, a), c !== "virtual" && Le(a, {
368
+ containingElement: l.current
369
+ }));
370
+ }));
371
+ }
372
+ !p && e.isFocused && e.focusedKey == null && f.current != null && l.current && me(l.current), f.current = e.focusedKey, L.current = !1;
373
+ }), Z(() => () => {
374
+ x.current && cancelAnimationFrame(x.current);
375
+ }, []), ne(l, "react-aria-focus-scope-restore", (c) => {
376
+ c.preventDefault(), e.setFocused(!0);
377
+ });
378
+ let I = {
379
+ onKeyDown: w,
380
+ onFocus: k,
381
+ onBlur: F,
382
+ onMouseDown(c) {
383
+ v.current === c.target && c.preventDefault();
384
+ }
385
+ }, { typeSelectProps: V } = Vl({
386
+ keyboardDelegate: t,
387
+ selectionManager: e
388
+ });
389
+ m || (I = ee(V, I));
390
+ let q;
391
+ p || (q = e.focusedKey == null ? 0 : -1);
392
+ let H = Bl(e.collection);
393
+ return {
394
+ collectionProps: ee(I, {
395
+ tabIndex: q,
396
+ "data-collection": H
397
+ })
398
+ };
399
+ }
400
+ function ji(r) {
401
+ let { id: e, selectionManager: t, key: l, ref: i, shouldSelectOnPressUp: n, shouldUseVirtualFocus: o, focus: u, isDisabled: s, onAction: d, allowsDifferentPressOrigin: m, linkBehavior: p = "action" } = r, h = tt();
402
+ e = Ie(e);
403
+ let y = (a) => {
404
+ if (a.pointerType === "keyboard" && De(a)) t.toggleSelection(l);
405
+ else {
406
+ if (t.selectionMode === "none") return;
407
+ if (t.isLink(l)) {
408
+ if (p === "selection" && i.current) {
409
+ let E = t.getItemProps(l);
410
+ h.open(i.current, a, E.href, E.routerOptions), t.setSelectedKeys(t.selectedKeys);
411
+ return;
412
+ } else if (p === "override" || p === "none") return;
413
+ }
414
+ t.selectionMode === "single" ? t.isSelected(l) && !t.disallowEmptySelection ? t.toggleSelection(l) : t.replaceSelection(l) : a && a.shiftKey ? t.extendSelection(l) : t.selectionBehavior === "toggle" || a && (J(a) || a.pointerType === "touch" || a.pointerType === "virtual") ? t.toggleSelection(l) : t.replaceSelection(l);
415
+ }
416
+ };
417
+ Z(() => {
418
+ l === t.focusedKey && t.isFocused && (o ? Pe(i.current) : u ? u() : document.activeElement !== i.current && i.current && me(i.current));
419
+ }, [
420
+ i,
421
+ l,
422
+ t.focusedKey,
423
+ t.childFocusStrategy,
424
+ t.isFocused,
425
+ o
426
+ ]), s = s || t.isDisabled(l);
427
+ let v = {};
428
+ !o && !s ? v = {
429
+ tabIndex: l === t.focusedKey ? 0 : -1,
430
+ onFocus(a) {
431
+ a.target === i.current && t.setFocusedKey(l);
432
+ }
433
+ } : s && (v.onMouseDown = (a) => {
434
+ a.preventDefault();
435
+ });
436
+ let K = t.isLink(l) && p === "override", $ = t.isLink(l) && p !== "selection" && p !== "none", g = !s && t.canSelectItem(l) && !K, w = (d || $) && !s, C = w && (t.selectionBehavior === "replace" ? !g : !g || t.isEmpty), k = w && g && t.selectionBehavior === "replace", F = C || k, P = D(null), O = F && g, R = D(!1), _ = D(!1), L = (a) => {
437
+ if (d && d(), $ && i.current) {
438
+ let E = t.getItemProps(l);
439
+ h.open(i.current, a, E.href, E.routerOptions);
440
+ }
441
+ }, f = {
442
+ ref: i
443
+ };
444
+ n ? (f.onPressStart = (a) => {
445
+ P.current = a.pointerType, R.current = O, a.pointerType === "keyboard" && (!F || Ve()) && y(a);
446
+ }, m ? (f.onPressUp = C ? void 0 : (a) => {
447
+ a.pointerType === "mouse" && g && y(a);
448
+ }, f.onPress = C ? L : (a) => {
449
+ a.pointerType !== "keyboard" && a.pointerType !== "mouse" && g && y(a);
450
+ }) : f.onPress = (a) => {
451
+ if (C || k && a.pointerType !== "mouse") {
452
+ if (a.pointerType === "keyboard" && !Ne()) return;
453
+ L(a);
454
+ } else a.pointerType !== "keyboard" && g && y(a);
455
+ }) : (f.onPressStart = (a) => {
456
+ P.current = a.pointerType, R.current = O, _.current = C, g && (a.pointerType === "mouse" && !C || a.pointerType === "keyboard" && (!w || Ve())) && y(a);
457
+ }, f.onPress = (a) => {
458
+ (a.pointerType === "touch" || a.pointerType === "pen" || a.pointerType === "virtual" || a.pointerType === "keyboard" && F && Ne() || a.pointerType === "mouse" && _.current) && (F ? L(a) : g && y(a));
459
+ }), v["data-collection"] = Ol(t.collection), v["data-key"] = l, f.preventFocusOnPress = o, o && (f = ee(f, {
460
+ onPressStart(a) {
461
+ a.pointerType !== "touch" && (t.setFocused(!0), t.setFocusedKey(l));
462
+ },
463
+ onPress(a) {
464
+ a.pointerType === "touch" && (t.setFocused(!0), t.setFocusedKey(l));
465
+ }
466
+ }));
467
+ let { pressProps: x, isPressed: I } = Ze(f), V = k ? (a) => {
468
+ P.current === "mouse" && (a.stopPropagation(), a.preventDefault(), L(a));
469
+ } : void 0, { longPressProps: q } = Ll({
470
+ isDisabled: !O,
471
+ onLongPress(a) {
472
+ a.pointerType === "touch" && (y(a), t.setSelectionBehavior("toggle"));
473
+ }
474
+ }), H = (a) => {
475
+ P.current === "touch" && R.current && a.preventDefault();
476
+ }, c = t.isLink(l) ? (a) => {
477
+ al.isOpening || a.preventDefault();
478
+ } : void 0;
479
+ return {
480
+ itemProps: ee(
481
+ v,
482
+ g || C || o && !s ? x : {},
483
+ O ? q : {},
484
+ {
485
+ onDoubleClick: V,
486
+ onDragStartCapture: H,
487
+ onClick: c,
488
+ id: e
489
+ },
490
+ // Prevent DOM focus from moving on mouse down when using virtual focus
491
+ o ? {
492
+ onMouseDown: (a) => a.preventDefault()
493
+ } : void 0
494
+ ),
495
+ isPressed: I,
496
+ isSelected: t.isSelected(l),
497
+ isFocused: t.isFocused && t.focusedKey === l,
498
+ isDisabled: s,
499
+ allowsSelection: g,
500
+ hasAction: F
501
+ };
502
+ }
503
+ function Ne() {
504
+ let r = window.event;
505
+ return r?.key === "Enter";
506
+ }
507
+ function Ve() {
508
+ let r = window.event;
509
+ return r?.key === " " || r?.code === "Space";
510
+ }
511
+ class ze {
512
+ getItemRect(e) {
513
+ let t = this.ref.current;
514
+ if (!t) return null;
515
+ let l = e != null ? oe(this.ref, e) : null;
516
+ if (!l) return null;
517
+ let i = t.getBoundingClientRect(), n = l.getBoundingClientRect();
518
+ return {
519
+ x: n.left - i.left + t.scrollLeft,
520
+ y: n.top - i.top + t.scrollTop,
521
+ width: n.width,
522
+ height: n.height
523
+ };
524
+ }
525
+ getContentSize() {
526
+ let e = this.ref.current;
527
+ var t, l;
528
+ return {
529
+ width: (t = e?.scrollWidth) !== null && t !== void 0 ? t : 0,
530
+ height: (l = e?.scrollHeight) !== null && l !== void 0 ? l : 0
531
+ };
532
+ }
533
+ getVisibleRect() {
534
+ let e = this.ref.current;
535
+ var t, l, i, n;
536
+ return {
537
+ x: (t = e?.scrollLeft) !== null && t !== void 0 ? t : 0,
538
+ y: (l = e?.scrollTop) !== null && l !== void 0 ? l : 0,
539
+ width: (i = e?.offsetWidth) !== null && i !== void 0 ? i : 0,
540
+ height: (n = e?.offsetHeight) !== null && n !== void 0 ? n : 0
541
+ };
542
+ }
543
+ constructor(e) {
544
+ this.ref = e;
545
+ }
546
+ }
547
+ class Hl {
548
+ isDisabled(e) {
549
+ var t;
550
+ return this.disabledBehavior === "all" && (((t = e.props) === null || t === void 0 ? void 0 : t.isDisabled) || this.disabledKeys.has(e.key));
551
+ }
552
+ findNextNonDisabled(e, t) {
553
+ let l = e;
554
+ for (; l != null; ) {
555
+ let i = this.collection.getItem(l);
556
+ if (i?.type === "item" && !this.isDisabled(i)) return l;
557
+ l = t(l);
558
+ }
559
+ return null;
560
+ }
561
+ getNextKey(e) {
562
+ let t = e;
563
+ return t = this.collection.getKeyAfter(t), this.findNextNonDisabled(t, (l) => this.collection.getKeyAfter(l));
564
+ }
565
+ getPreviousKey(e) {
566
+ let t = e;
567
+ return t = this.collection.getKeyBefore(t), this.findNextNonDisabled(t, (l) => this.collection.getKeyBefore(l));
568
+ }
569
+ findKey(e, t, l) {
570
+ let i = e, n = this.layoutDelegate.getItemRect(i);
571
+ if (!n || i == null) return null;
572
+ let o = n;
573
+ do {
574
+ if (i = t(i), i == null) break;
575
+ n = this.layoutDelegate.getItemRect(i);
576
+ } while (n && l(o, n) && i != null);
577
+ return i;
578
+ }
579
+ isSameRow(e, t) {
580
+ return e.y === t.y || e.x !== t.x;
581
+ }
582
+ isSameColumn(e, t) {
583
+ return e.x === t.x || e.y !== t.y;
584
+ }
585
+ getKeyBelow(e) {
586
+ return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (t) => this.getNextKey(t), this.isSameRow) : this.getNextKey(e);
587
+ }
588
+ getKeyAbove(e) {
589
+ return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (t) => this.getPreviousKey(t), this.isSameRow) : this.getPreviousKey(e);
590
+ }
591
+ getNextColumn(e, t) {
592
+ return t ? this.getPreviousKey(e) : this.getNextKey(e);
593
+ }
594
+ getKeyRightOf(e) {
595
+ let t = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf";
596
+ return this.layoutDelegate[t] ? (e = this.layoutDelegate[t](e), this.findNextNonDisabled(e, (l) => this.layoutDelegate[t](l))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(e, this.direction === "rtl") : this.findKey(e, (l) => this.getNextColumn(l, this.direction === "rtl"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(e, this.direction === "rtl") : null;
597
+ }
598
+ getKeyLeftOf(e) {
599
+ let t = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf";
600
+ return this.layoutDelegate[t] ? (e = this.layoutDelegate[t](e), this.findNextNonDisabled(e, (l) => this.layoutDelegate[t](l))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(e, this.direction === "ltr") : this.findKey(e, (l) => this.getNextColumn(l, this.direction === "ltr"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(e, this.direction === "ltr") : null;
601
+ }
602
+ getFirstKey() {
603
+ let e = this.collection.getFirstKey();
604
+ return this.findNextNonDisabled(e, (t) => this.collection.getKeyAfter(t));
605
+ }
606
+ getLastKey() {
607
+ let e = this.collection.getLastKey();
608
+ return this.findNextNonDisabled(e, (t) => this.collection.getKeyBefore(t));
609
+ }
610
+ getKeyPageAbove(e) {
611
+ let t = this.ref.current, l = this.layoutDelegate.getItemRect(e);
612
+ if (!l) return null;
613
+ if (t && !Me(t)) return this.getFirstKey();
614
+ let i = e;
615
+ if (this.orientation === "horizontal") {
616
+ let n = Math.max(0, l.x + l.width - this.layoutDelegate.getVisibleRect().width);
617
+ for (; l && l.x > n && i != null; )
618
+ i = this.getKeyAbove(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
619
+ } else {
620
+ let n = Math.max(0, l.y + l.height - this.layoutDelegate.getVisibleRect().height);
621
+ for (; l && l.y > n && i != null; )
622
+ i = this.getKeyAbove(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
623
+ }
624
+ return i ?? this.getFirstKey();
625
+ }
626
+ getKeyPageBelow(e) {
627
+ let t = this.ref.current, l = this.layoutDelegate.getItemRect(e);
628
+ if (!l) return null;
629
+ if (t && !Me(t)) return this.getLastKey();
630
+ let i = e;
631
+ if (this.orientation === "horizontal") {
632
+ let n = Math.min(this.layoutDelegate.getContentSize().width, l.y - l.width + this.layoutDelegate.getVisibleRect().width);
633
+ for (; l && l.x < n && i != null; )
634
+ i = this.getKeyBelow(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
635
+ } else {
636
+ let n = Math.min(this.layoutDelegate.getContentSize().height, l.y - l.height + this.layoutDelegate.getVisibleRect().height);
637
+ for (; l && l.y < n && i != null; )
638
+ i = this.getKeyBelow(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
639
+ }
640
+ return i ?? this.getLastKey();
641
+ }
642
+ getKeyForSearch(e, t) {
643
+ if (!this.collator) return null;
644
+ let l = this.collection, i = t || this.getFirstKey();
645
+ for (; i != null; ) {
646
+ let n = l.getItem(i);
647
+ if (!n) return null;
648
+ let o = n.textValue.slice(0, e.length);
649
+ if (n.textValue && this.collator.compare(o, e) === 0) return i;
650
+ i = this.getNextKey(i);
651
+ }
652
+ return null;
653
+ }
654
+ constructor(...e) {
655
+ if (e.length === 1) {
656
+ let t = e[0];
657
+ this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new ze(t.ref);
658
+ } else
659
+ this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new ze(this.ref);
660
+ this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
661
+ }
662
+ }
663
+ function Yi(r) {
664
+ let { selectionManager: e, collection: t, disabledKeys: l, ref: i, keyboardDelegate: n, layoutDelegate: o } = r, u = vl({
665
+ usage: "search",
666
+ sensitivity: "base"
667
+ }), s = e.disabledBehavior, d = N(() => n || new Hl({
668
+ collection: t,
669
+ disabledKeys: l,
670
+ disabledBehavior: s,
671
+ ref: i,
672
+ collator: u,
673
+ layoutDelegate: o
674
+ }), [
675
+ n,
676
+ o,
677
+ t,
678
+ l,
679
+ i,
680
+ u,
681
+ s
682
+ ]), { collectionProps: m } = Ul({
683
+ ...r,
684
+ ref: i,
685
+ selectionManager: e,
686
+ keyboardDelegate: d
687
+ });
688
+ return {
689
+ listProps: m
690
+ };
691
+ }
692
+ class ql {
693
+ build(e, t) {
694
+ return this.context = t, Ue(() => this.iterateCollection(e));
695
+ }
696
+ *iterateCollection(e) {
697
+ let { children: t, items: l } = e;
698
+ if (S.isValidElement(t) && t.type === S.Fragment) yield* this.iterateCollection({
699
+ children: t.props.children,
700
+ items: l
701
+ });
702
+ else if (typeof t == "function") {
703
+ if (!l) throw new Error("props.children was a function but props.items is missing");
704
+ let i = 0;
705
+ for (let n of l)
706
+ yield* this.getFullNode({
707
+ value: n,
708
+ index: i
709
+ }, {
710
+ renderer: t
711
+ }), i++;
712
+ } else {
713
+ let i = [];
714
+ S.Children.forEach(t, (o) => {
715
+ o && i.push(o);
716
+ });
717
+ let n = 0;
718
+ for (let o of i) {
719
+ let u = this.getFullNode({
720
+ element: o,
721
+ index: n
722
+ }, {});
723
+ for (let s of u)
724
+ n++, yield s;
725
+ }
726
+ }
727
+ }
728
+ getKey(e, t, l, i) {
729
+ if (e.key != null) return e.key;
730
+ if (t.type === "cell" && t.key != null) return `${i}${t.key}`;
731
+ let n = t.value;
732
+ if (n != null) {
733
+ var o;
734
+ let u = (o = n.key) !== null && o !== void 0 ? o : n.id;
735
+ if (u == null) throw new Error("No key found for item");
736
+ return u;
737
+ }
738
+ return i ? `${i}.${t.index}` : `$.${t.index}`;
739
+ }
740
+ getChildState(e, t) {
741
+ return {
742
+ renderer: t.renderer || e.renderer
743
+ };
744
+ }
745
+ *getFullNode(e, t, l, i) {
746
+ if (S.isValidElement(e.element) && e.element.type === S.Fragment) {
747
+ let $ = [];
748
+ S.Children.forEach(e.element.props.children, (w) => {
749
+ $.push(w);
750
+ });
751
+ var n;
752
+ let g = (n = e.index) !== null && n !== void 0 ? n : 0;
753
+ for (const w of $) yield* this.getFullNode({
754
+ element: w,
755
+ index: g++
756
+ }, t, l, i);
757
+ return;
758
+ }
759
+ let o = e.element;
760
+ if (!o && e.value && t && t.renderer) {
761
+ let $ = this.cache.get(e.value);
762
+ if ($ && (!$.shouldInvalidate || !$.shouldInvalidate(this.context))) {
763
+ $.index = e.index, $.parentKey = i ? i.key : null, yield $;
764
+ return;
765
+ }
766
+ o = t.renderer(e.value);
767
+ }
768
+ if (S.isValidElement(o)) {
769
+ let $ = o.type;
770
+ if (typeof $ != "function" && typeof $.getCollectionNode != "function") {
771
+ let k = o.type;
772
+ throw new Error(`Unknown element <${k}> in collection.`);
773
+ }
774
+ let g = $.getCollectionNode(o.props, this.context);
775
+ var u;
776
+ let w = (u = e.index) !== null && u !== void 0 ? u : 0, C = g.next();
777
+ for (; !C.done && C.value; ) {
778
+ let k = C.value;
779
+ e.index = w;
780
+ var s;
781
+ let F = (s = k.key) !== null && s !== void 0 ? s : null;
782
+ F == null && (F = k.element ? null : this.getKey(o, e, t, l));
783
+ let O = [
784
+ ...this.getFullNode({
785
+ ...k,
786
+ key: F,
787
+ index: w,
788
+ wrapper: Wl(e.wrapper, k.wrapper)
789
+ }, this.getChildState(t, k), l ? `${l}${o.key}` : o.key, i)
790
+ ];
791
+ for (let R of O) {
792
+ var d, m;
793
+ R.value = (m = (d = k.value) !== null && d !== void 0 ? d : e.value) !== null && m !== void 0 ? m : null, R.value && this.cache.set(R.value, R);
794
+ var p;
795
+ if (e.type && R.type !== e.type) throw new Error(`Unsupported type <${ve(R.type)}> in <${ve((p = i?.type) !== null && p !== void 0 ? p : "unknown parent type")}>. Only <${ve(e.type)}> is supported.`);
796
+ w++, yield R;
797
+ }
798
+ C = g.next(O);
799
+ }
800
+ return;
801
+ }
802
+ if (e.key == null || e.type == null) return;
803
+ let h = this;
804
+ var y, v;
805
+ let K = {
806
+ type: e.type,
807
+ props: e.props,
808
+ key: e.key,
809
+ parentKey: i ? i.key : null,
810
+ value: (y = e.value) !== null && y !== void 0 ? y : null,
811
+ level: i ? i.level + 1 : 0,
812
+ index: e.index,
813
+ rendered: e.rendered,
814
+ textValue: (v = e.textValue) !== null && v !== void 0 ? v : "",
815
+ "aria-label": e["aria-label"],
816
+ wrapper: e.wrapper,
817
+ shouldInvalidate: e.shouldInvalidate,
818
+ hasChildNodes: e.hasChildNodes || !1,
819
+ childNodes: Ue(function* () {
820
+ if (!e.hasChildNodes || !e.childNodes) return;
821
+ let $ = 0;
822
+ for (let g of e.childNodes()) {
823
+ g.key != null && (g.key = `${K.key}${g.key}`);
824
+ let w = h.getFullNode({
825
+ ...g,
826
+ index: $
827
+ }, h.getChildState(t, g), K.key, K);
828
+ for (let C of w)
829
+ $++, yield C;
830
+ }
831
+ })
832
+ };
833
+ yield K;
834
+ }
835
+ constructor() {
836
+ this.cache = /* @__PURE__ */ new WeakMap();
837
+ }
838
+ }
839
+ function Ue(r) {
840
+ let e = [], t = null;
841
+ return {
842
+ *[Symbol.iterator]() {
843
+ for (let l of e) yield l;
844
+ t || (t = r());
845
+ for (let l of t)
846
+ e.push(l), yield l;
847
+ }
848
+ };
849
+ }
850
+ function Wl(r, e) {
851
+ if (r && e) return (t) => r(e(t));
852
+ if (r) return r;
853
+ if (e) return e;
854
+ }
855
+ function ve(r) {
856
+ return r[0].toUpperCase() + r.slice(1);
857
+ }
858
+ function Ji(r, e, t) {
859
+ let l = N(() => new ql(), []), { children: i, items: n, collection: o } = r;
860
+ return N(() => {
861
+ if (o) return o;
862
+ let s = l.build({
863
+ children: i,
864
+ items: n
865
+ }, t);
866
+ return e(s);
867
+ }, [
868
+ l,
869
+ i,
870
+ n,
871
+ o,
872
+ t,
873
+ e
874
+ ]);
875
+ }
876
+ function ft(r, e) {
877
+ return typeof e.getChildren == "function" ? e.getChildren(r.key) : r.childNodes;
878
+ }
879
+ function Gl(r) {
880
+ return _l(r);
881
+ }
882
+ function _l(r, e) {
883
+ for (let t of r)
884
+ return t;
885
+ }
886
+ function Xi(r) {
887
+ let e;
888
+ for (let t of r) e = t;
889
+ return e;
890
+ }
891
+ function be(r, e, t) {
892
+ if (e.parentKey === t.parentKey) return e.index - t.index;
893
+ let l = [
894
+ ...He(r, e),
895
+ e
896
+ ], i = [
897
+ ...He(r, t),
898
+ t
899
+ ], n = l.slice(0, i.length).findIndex((o, u) => o !== i[u]);
900
+ return n !== -1 ? (e = l[n], t = i[n], e.index - t.index) : l.findIndex((o) => o === t) >= 0 ? 1 : (i.findIndex((o) => o === e) >= 0, -1);
901
+ }
902
+ function He(r, e) {
903
+ let t = [], l = e;
904
+ for (; l?.parentKey != null; )
905
+ l = r.getItem(l.parentKey), l && t.unshift(l);
906
+ return t;
907
+ }
908
+ const qe = /* @__PURE__ */ new WeakMap();
909
+ function Zi(r) {
910
+ let e = qe.get(r);
911
+ if (e != null) return e;
912
+ let t = 0, l = (i) => {
913
+ for (let n of i)
914
+ n.type === "section" ? l(ft(n, r)) : n.type === "item" && t++;
915
+ };
916
+ return l(r), qe.set(r, t), t;
917
+ }
918
+ var re = { exports: {} }, $e = {};
919
+ /**
920
+ * @license React
921
+ * use-sync-external-store-shim.production.js
922
+ *
923
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
924
+ *
925
+ * This source code is licensed under the MIT license found in the
926
+ * LICENSE file in the root directory of this source tree.
927
+ */
928
+ var We;
929
+ function jl() {
930
+ if (We) return $e;
931
+ We = 1;
932
+ var r = S;
933
+ function e(p, h) {
934
+ return p === h && (p !== 0 || 1 / p === 1 / h) || p !== p && h !== h;
935
+ }
936
+ var t = typeof Object.is == "function" ? Object.is : e, l = r.useState, i = r.useEffect, n = r.useLayoutEffect, o = r.useDebugValue;
937
+ function u(p, h) {
938
+ var y = h(), v = l({ inst: { value: y, getSnapshot: h } }), K = v[0].inst, $ = v[1];
939
+ return n(
940
+ function() {
941
+ K.value = y, K.getSnapshot = h, s(K) && $({ inst: K });
942
+ },
943
+ [p, y, h]
944
+ ), i(
945
+ function() {
946
+ return s(K) && $({ inst: K }), p(function() {
947
+ s(K) && $({ inst: K });
948
+ });
949
+ },
950
+ [p]
951
+ ), o(y), y;
952
+ }
953
+ function s(p) {
954
+ var h = p.getSnapshot;
955
+ p = p.value;
956
+ try {
957
+ var y = h();
958
+ return !t(p, y);
959
+ } catch {
960
+ return !0;
961
+ }
962
+ }
963
+ function d(p, h) {
964
+ return h();
965
+ }
966
+ var m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : u;
967
+ return $e.useSyncExternalStore = r.useSyncExternalStore !== void 0 ? r.useSyncExternalStore : m, $e;
968
+ }
969
+ var ge = {};
970
+ /**
971
+ * @license React
972
+ * use-sync-external-store-shim.development.js
973
+ *
974
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
975
+ *
976
+ * This source code is licensed under the MIT license found in the
977
+ * LICENSE file in the root directory of this source tree.
978
+ */
979
+ var Ge;
980
+ function Yl() {
981
+ return Ge || (Ge = 1, process.env.NODE_ENV !== "production" && function() {
982
+ function r(y, v) {
983
+ return y === v && (y !== 0 || 1 / y === 1 / v) || y !== y && v !== v;
984
+ }
985
+ function e(y, v) {
986
+ m || i.startTransition === void 0 || (m = !0, console.error(
987
+ "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
988
+ ));
989
+ var K = v();
990
+ if (!p) {
991
+ var $ = v();
992
+ n(K, $) || (console.error(
993
+ "The result of getSnapshot should be cached to avoid an infinite loop"
994
+ ), p = !0);
995
+ }
996
+ $ = o({
997
+ inst: { value: K, getSnapshot: v }
998
+ });
999
+ var g = $[0].inst, w = $[1];
1000
+ return s(
1001
+ function() {
1002
+ g.value = K, g.getSnapshot = v, t(g) && w({ inst: g });
1003
+ },
1004
+ [y, K, v]
1005
+ ), u(
1006
+ function() {
1007
+ return t(g) && w({ inst: g }), y(function() {
1008
+ t(g) && w({ inst: g });
1009
+ });
1010
+ },
1011
+ [y]
1012
+ ), d(K), K;
1013
+ }
1014
+ function t(y) {
1015
+ var v = y.getSnapshot;
1016
+ y = y.value;
1017
+ try {
1018
+ var K = v();
1019
+ return !n(y, K);
1020
+ } catch {
1021
+ return !0;
1022
+ }
1023
+ }
1024
+ function l(y, v) {
1025
+ return v();
1026
+ }
1027
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1028
+ var i = S, n = typeof Object.is == "function" ? Object.is : r, o = i.useState, u = i.useEffect, s = i.useLayoutEffect, d = i.useDebugValue, m = !1, p = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? l : e;
1029
+ ge.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : h, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1030
+ }()), ge;
1031
+ }
1032
+ var _e;
1033
+ function Jl() {
1034
+ return _e || (_e = 1, process.env.NODE_ENV === "production" ? re.exports = jl() : re.exports = Yl()), re.exports;
1035
+ }
1036
+ var Xl = /* @__PURE__ */ Jl();
1037
+ class Fe {
1038
+ get childNodes() {
1039
+ throw new Error("childNodes is not supported");
1040
+ }
1041
+ clone() {
1042
+ let e = new Fe(this.type, this.key);
1043
+ return e.value = this.value, e.level = this.level, e.hasChildNodes = this.hasChildNodes, e.rendered = this.rendered, e.textValue = this.textValue, e["aria-label"] = this["aria-label"], e.index = this.index, e.parentKey = this.parentKey, e.prevKey = this.prevKey, e.nextKey = this.nextKey, e.firstChildKey = this.firstChildKey, e.lastChildKey = this.lastChildKey, e.props = this.props, e.render = this.render, e.colSpan = this.colSpan, e.colIndex = this.colIndex, e;
1044
+ }
1045
+ constructor(e, t) {
1046
+ this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = e, this.key = t;
1047
+ }
1048
+ }
1049
+ class Re {
1050
+ get size() {
1051
+ return this.keyMap.size;
1052
+ }
1053
+ getKeys() {
1054
+ return this.keyMap.keys();
1055
+ }
1056
+ *[Symbol.iterator]() {
1057
+ let e = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0;
1058
+ for (; e; )
1059
+ yield e, e = e.nextKey != null ? this.keyMap.get(e.nextKey) : void 0;
1060
+ }
1061
+ getChildren(e) {
1062
+ let t = this.keyMap;
1063
+ return {
1064
+ *[Symbol.iterator]() {
1065
+ let l = t.get(e), i = l?.firstChildKey != null ? t.get(l.firstChildKey) : null;
1066
+ for (; i; )
1067
+ yield i, i = i.nextKey != null ? t.get(i.nextKey) : void 0;
1068
+ }
1069
+ };
1070
+ }
1071
+ getKeyBefore(e) {
1072
+ let t = this.keyMap.get(e);
1073
+ if (!t) return null;
1074
+ if (t.prevKey != null) {
1075
+ for (t = this.keyMap.get(t.prevKey); t && t.type !== "item" && t.lastChildKey != null; ) t = this.keyMap.get(t.lastChildKey);
1076
+ var l;
1077
+ return (l = t?.key) !== null && l !== void 0 ? l : null;
1078
+ }
1079
+ return t.parentKey;
1080
+ }
1081
+ getKeyAfter(e) {
1082
+ let t = this.keyMap.get(e);
1083
+ if (!t) return null;
1084
+ if (t.type !== "item" && t.firstChildKey != null) return t.firstChildKey;
1085
+ for (; t; ) {
1086
+ if (t.nextKey != null) return t.nextKey;
1087
+ if (t.parentKey != null) t = this.keyMap.get(t.parentKey);
1088
+ else return null;
1089
+ }
1090
+ return null;
1091
+ }
1092
+ getFirstKey() {
1093
+ return this.firstKey;
1094
+ }
1095
+ getLastKey() {
1096
+ let e = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
1097
+ for (; e?.lastChildKey != null; ) e = this.keyMap.get(e.lastChildKey);
1098
+ var t;
1099
+ return (t = e?.key) !== null && t !== void 0 ? t : null;
1100
+ }
1101
+ getItem(e) {
1102
+ var t;
1103
+ return (t = this.keyMap.get(e)) !== null && t !== void 0 ? t : null;
1104
+ }
1105
+ at() {
1106
+ throw new Error("Not implemented");
1107
+ }
1108
+ clone() {
1109
+ let e = this.constructor, t = new e();
1110
+ return t.keyMap = new Map(this.keyMap), t.firstKey = this.firstKey, t.lastKey = this.lastKey, t;
1111
+ }
1112
+ addNode(e) {
1113
+ if (this.frozen) throw new Error("Cannot add a node to a frozen collection");
1114
+ this.keyMap.set(e.key, e);
1115
+ }
1116
+ removeNode(e) {
1117
+ if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
1118
+ this.keyMap.delete(e);
1119
+ }
1120
+ commit(e, t, l = !1) {
1121
+ if (this.frozen) throw new Error("Cannot commit a frozen collection");
1122
+ this.firstKey = e, this.lastKey = t, this.frozen = !l;
1123
+ }
1124
+ // TODO: this is pretty specific to menu, will need to check if it is generic enough
1125
+ // Will need to handle varying levels I assume but will revisit after I get searchable menu working for base menu
1126
+ // TODO: an alternative is to simply walk the collection and add all item nodes that match the filter and any sections/separators we encounter
1127
+ // to an array, then walk that new array and fix all the next/Prev keys while adding them to the new collection
1128
+ UNSTABLE_filter(e) {
1129
+ let t = new Re(), l = null;
1130
+ for (let i of this)
1131
+ if (i.type === "section" && i.hasChildNodes) {
1132
+ let n = i.clone(), o = null;
1133
+ for (let u of this.getChildren(i.key)) if (je(u, e, this, t)) {
1134
+ let s = u.clone();
1135
+ o == null && (n.firstChildKey = s.key), t.firstKey == null && (t.firstKey = n.key), o && o.parentKey === s.parentKey ? (o.nextKey = s.key, s.prevKey = o.key) : s.prevKey = null, s.nextKey = null, t.addNode(s), o = s;
1136
+ }
1137
+ o && (o.type !== "header" ? (n.lastChildKey = o.key, l == null ? n.prevKey = null : (l.type === "section" || l.type === "separator") && (l.nextKey = n.key, n.prevKey = l.key), n.nextKey = null, l = n, t.addNode(n)) : (t.firstKey === n.key && (t.firstKey = null), t.removeNode(o.key)));
1138
+ } else if (i.type === "separator") {
1139
+ let n = i.clone();
1140
+ n.nextKey = null, l?.type === "section" && (l.nextKey = n.key, n.prevKey = l.key, l = n, t.addNode(n));
1141
+ } else {
1142
+ let n = i.clone();
1143
+ je(n, e, this, t) && (t.firstKey == null && (t.firstKey = n.key), l != null && l.type !== "section" && l.type !== "separator" && l.parentKey === n.parentKey ? (l.nextKey = n.key, n.prevKey = l.key) : n.prevKey = null, n.nextKey = null, t.addNode(n), l = n);
1144
+ }
1145
+ if (l?.type === "separator" && l.nextKey === null) {
1146
+ let i;
1147
+ l.prevKey != null && (i = t.getItem(l.prevKey), i.nextKey = null), t.removeNode(l.key), l = i;
1148
+ }
1149
+ return t.lastKey = l?.key || null, t;
1150
+ }
1151
+ constructor() {
1152
+ this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1;
1153
+ }
1154
+ }
1155
+ function je(r, e, t, l) {
1156
+ if (r.type === "subdialogtrigger" || r.type === "submenutrigger") {
1157
+ let i = [
1158
+ ...t.getChildren(r.key)
1159
+ ][0];
1160
+ if (i && e(i.textValue)) {
1161
+ let n = i.clone();
1162
+ return l.addNode(n), !0;
1163
+ } else return !1;
1164
+ } else return r.type === "header" ? !0 : e(r.textValue);
1165
+ }
1166
+ class ht {
1167
+ *[Symbol.iterator]() {
1168
+ let e = this.firstChild;
1169
+ for (; e; )
1170
+ yield e, e = e.nextSibling;
1171
+ }
1172
+ get firstChild() {
1173
+ return this._firstChild;
1174
+ }
1175
+ set firstChild(e) {
1176
+ this._firstChild = e, this.ownerDocument.markDirty(this);
1177
+ }
1178
+ get lastChild() {
1179
+ return this._lastChild;
1180
+ }
1181
+ set lastChild(e) {
1182
+ this._lastChild = e, this.ownerDocument.markDirty(this);
1183
+ }
1184
+ get previousSibling() {
1185
+ return this._previousSibling;
1186
+ }
1187
+ set previousSibling(e) {
1188
+ this._previousSibling = e, this.ownerDocument.markDirty(this);
1189
+ }
1190
+ get nextSibling() {
1191
+ return this._nextSibling;
1192
+ }
1193
+ set nextSibling(e) {
1194
+ this._nextSibling = e, this.ownerDocument.markDirty(this);
1195
+ }
1196
+ get parentNode() {
1197
+ return this._parentNode;
1198
+ }
1199
+ set parentNode(e) {
1200
+ this._parentNode = e, this.ownerDocument.markDirty(this);
1201
+ }
1202
+ get isConnected() {
1203
+ var e;
1204
+ return ((e = this.parentNode) === null || e === void 0 ? void 0 : e.isConnected) || !1;
1205
+ }
1206
+ invalidateChildIndices(e) {
1207
+ (this._minInvalidChildIndex == null || !this._minInvalidChildIndex.isConnected || e.index < this._minInvalidChildIndex.index) && (this._minInvalidChildIndex = e, this.ownerDocument.markDirty(this));
1208
+ }
1209
+ updateChildIndices() {
1210
+ let e = this._minInvalidChildIndex;
1211
+ for (; e; )
1212
+ e.index = e.previousSibling ? e.previousSibling.index + 1 : 0, e = e.nextSibling;
1213
+ this._minInvalidChildIndex = null;
1214
+ }
1215
+ appendChild(e) {
1216
+ e.parentNode && e.parentNode.removeChild(e), this.firstChild == null && (this.firstChild = e), this.lastChild ? (this.lastChild.nextSibling = e, e.index = this.lastChild.index + 1, e.previousSibling = this.lastChild) : (e.previousSibling = null, e.index = 0), e.parentNode = this, e.nextSibling = null, this.lastChild = e, this.ownerDocument.markDirty(this), this.isConnected && this.ownerDocument.queueUpdate();
1217
+ }
1218
+ insertBefore(e, t) {
1219
+ if (t == null) return this.appendChild(e);
1220
+ e.parentNode && e.parentNode.removeChild(e), e.nextSibling = t, e.previousSibling = t.previousSibling, e.index = t.index - 1, this.firstChild === t ? this.firstChild = e : t.previousSibling && (t.previousSibling.nextSibling = e), t.previousSibling = e, e.parentNode = t.parentNode, this.invalidateChildIndices(e), this.isConnected && this.ownerDocument.queueUpdate();
1221
+ }
1222
+ removeChild(e) {
1223
+ e.parentNode !== this || !this.ownerDocument.isMounted || (this._minInvalidChildIndex === e && (this._minInvalidChildIndex = null), e.nextSibling && (this.invalidateChildIndices(e.nextSibling), e.nextSibling.previousSibling = e.previousSibling), e.previousSibling && (e.previousSibling.nextSibling = e.nextSibling), this.firstChild === e && (this.firstChild = e.nextSibling), this.lastChild === e && (this.lastChild = e.previousSibling), e.parentNode = null, e.nextSibling = null, e.previousSibling = null, e.index = 0, this.ownerDocument.markDirty(e), this.isConnected && this.ownerDocument.queueUpdate());
1224
+ }
1225
+ addEventListener() {
1226
+ }
1227
+ removeEventListener() {
1228
+ }
1229
+ get previousVisibleSibling() {
1230
+ let e = this.previousSibling;
1231
+ for (; e && e.isHidden; ) e = e.previousSibling;
1232
+ return e;
1233
+ }
1234
+ get nextVisibleSibling() {
1235
+ let e = this.nextSibling;
1236
+ for (; e && e.isHidden; ) e = e.nextSibling;
1237
+ return e;
1238
+ }
1239
+ get firstVisibleChild() {
1240
+ let e = this.firstChild;
1241
+ for (; e && e.isHidden; ) e = e.nextSibling;
1242
+ return e;
1243
+ }
1244
+ get lastVisibleChild() {
1245
+ let e = this.lastChild;
1246
+ for (; e && e.isHidden; ) e = e.previousSibling;
1247
+ return e;
1248
+ }
1249
+ constructor(e) {
1250
+ this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
1251
+ }
1252
+ }
1253
+ class le extends ht {
1254
+ get index() {
1255
+ return this._index;
1256
+ }
1257
+ set index(e) {
1258
+ this._index = e, this.ownerDocument.markDirty(this);
1259
+ }
1260
+ get level() {
1261
+ return this.parentNode instanceof le ? this.parentNode.level + (this.node.type === "item" ? 1 : 0) : 0;
1262
+ }
1263
+ /**
1264
+ * Lazily gets a mutable instance of a Node. If the node has already
1265
+ * been cloned during this update cycle, it just returns the existing one.
1266
+ */
1267
+ getMutableNode() {
1268
+ return this.isMutated || (this.node = this.node.clone(), this.isMutated = !0), this.ownerDocument.markDirty(this), this.node;
1269
+ }
1270
+ updateNode() {
1271
+ var e, t, l;
1272
+ let i = this.nextVisibleSibling, n = this.getMutableNode();
1273
+ n.index = this.index, n.level = this.level, n.parentKey = this.parentNode instanceof le ? this.parentNode.node.key : null;
1274
+ var o;
1275
+ n.prevKey = (o = (e = this.previousVisibleSibling) === null || e === void 0 ? void 0 : e.node.key) !== null && o !== void 0 ? o : null;
1276
+ var u;
1277
+ n.nextKey = (u = i?.node.key) !== null && u !== void 0 ? u : null, n.hasChildNodes = !!this.firstChild;
1278
+ var s;
1279
+ n.firstChildKey = (s = (t = this.firstVisibleChild) === null || t === void 0 ? void 0 : t.node.key) !== null && s !== void 0 ? s : null;
1280
+ var d;
1281
+ if (n.lastChildKey = (d = (l = this.lastVisibleChild) === null || l === void 0 ? void 0 : l.node.key) !== null && d !== void 0 ? d : null, (n.colSpan != null || n.colIndex != null) && i) {
1282
+ var m, p;
1283
+ let h = ((m = n.colIndex) !== null && m !== void 0 ? m : n.index) + ((p = n.colSpan) !== null && p !== void 0 ? p : 1);
1284
+ if (h !== i.node.colIndex) {
1285
+ let y = i.getMutableNode();
1286
+ y.colIndex = h;
1287
+ }
1288
+ }
1289
+ }
1290
+ setProps(e, t, l, i) {
1291
+ let n = this.getMutableNode(), { value: o, textValue: u, id: s, ...d } = e;
1292
+ if (d.ref = t, n.props = d, n.rendered = l, n.render = i, n.value = o, n.textValue = u || (typeof d.children == "string" ? d.children : "") || e["aria-label"] || "", s != null && s !== n.key) {
1293
+ if (this.hasSetProps) throw new Error("Cannot change the id of an item");
1294
+ n.key = s;
1295
+ }
1296
+ d.colSpan != null && (n.colSpan = d.colSpan), this.hasSetProps = !0, this.isConnected && this.ownerDocument.queueUpdate();
1297
+ }
1298
+ get style() {
1299
+ let e = this;
1300
+ return {
1301
+ get display() {
1302
+ return e.isHidden ? "none" : "";
1303
+ },
1304
+ set display(t) {
1305
+ let l = t === "none";
1306
+ if (e.isHidden !== l) {
1307
+ var i, n;
1308
+ (((i = e.parentNode) === null || i === void 0 ? void 0 : i.firstVisibleChild) === e || ((n = e.parentNode) === null || n === void 0 ? void 0 : n.lastVisibleChild) === e) && e.ownerDocument.markDirty(e.parentNode);
1309
+ let o = e.previousVisibleSibling, u = e.nextVisibleSibling;
1310
+ o && e.ownerDocument.markDirty(o), u && e.ownerDocument.markDirty(u), e.isHidden = l, e.ownerDocument.markDirty(e);
1311
+ }
1312
+ }
1313
+ };
1314
+ }
1315
+ hasAttribute() {
1316
+ }
1317
+ setAttribute() {
1318
+ }
1319
+ setAttributeNS() {
1320
+ }
1321
+ removeAttribute() {
1322
+ }
1323
+ constructor(e, t) {
1324
+ super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.hasSetProps = !1, this.isHidden = !1, this.node = new Fe(e, `react-aria-${++t.nodeId}`);
1325
+ }
1326
+ }
1327
+ class Zl extends ht {
1328
+ get isConnected() {
1329
+ return this.isMounted;
1330
+ }
1331
+ createElement(e) {
1332
+ return new le(e, this);
1333
+ }
1334
+ getMutableCollection() {
1335
+ return this.nextCollection || (this.nextCollection = this.collection.clone()), this.nextCollection;
1336
+ }
1337
+ markDirty(e) {
1338
+ this.dirtyNodes.add(e);
1339
+ }
1340
+ addNode(e) {
1341
+ if (e.isHidden) return;
1342
+ let t = this.getMutableCollection();
1343
+ if (!t.getItem(e.node.key)) for (let l of e) this.addNode(l);
1344
+ t.addNode(e.node);
1345
+ }
1346
+ removeNode(e) {
1347
+ for (let l of e) this.removeNode(l);
1348
+ this.getMutableCollection().removeNode(e.node.key);
1349
+ }
1350
+ /** Finalizes the collection update, updating all nodes and freezing the collection. */
1351
+ getCollection() {
1352
+ return this.inSubscription ? this.collection.clone() : (this.queuedRender = !1, this.updateCollection(), this.collection);
1353
+ }
1354
+ updateCollection() {
1355
+ for (let n of this.dirtyNodes) n instanceof le && (!n.isConnected || n.isHidden) ? this.removeNode(n) : n.updateChildIndices();
1356
+ for (let n of this.dirtyNodes) n instanceof le && (n.isConnected && !n.isHidden && (n.updateNode(), this.addNode(n)), n.isMutated = !1);
1357
+ if (this.dirtyNodes.clear(), this.nextCollection) {
1358
+ var e, t, l, i;
1359
+ this.nextCollection.commit((l = (e = this.firstVisibleChild) === null || e === void 0 ? void 0 : e.node.key) !== null && l !== void 0 ? l : null, (i = (t = this.lastVisibleChild) === null || t === void 0 ? void 0 : t.node.key) !== null && i !== void 0 ? i : null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null);
1360
+ }
1361
+ }
1362
+ queueUpdate() {
1363
+ if (!(this.dirtyNodes.size === 0 || this.queuedRender)) {
1364
+ this.queuedRender = !0, this.inSubscription = !0;
1365
+ for (let e of this.subscriptions) e();
1366
+ this.inSubscription = !1;
1367
+ }
1368
+ }
1369
+ subscribe(e) {
1370
+ return this.subscriptions.add(e), () => this.subscriptions.delete(e);
1371
+ }
1372
+ resetAfterSSR() {
1373
+ this.isSSR && (this.isSSR = !1, this.firstChild = null, this.lastChild = null, this.nodeId = 0);
1374
+ }
1375
+ constructor(e) {
1376
+ super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.isMounted = !0, this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
1377
+ }
1378
+ }
1379
+ function pt(r) {
1380
+ let { children: e, items: t, idScope: l, addIdAndValue: i, dependencies: n = [] } = r, o = N(() => /* @__PURE__ */ new WeakMap(), n);
1381
+ return N(() => {
1382
+ if (t && typeof e == "function") {
1383
+ let d = [];
1384
+ for (let m of t) {
1385
+ let p = o.get(m);
1386
+ if (!p) {
1387
+ p = e(m);
1388
+ var u, s;
1389
+ let h = (s = (u = p.props.id) !== null && u !== void 0 ? u : m.key) !== null && s !== void 0 ? s : m.id;
1390
+ if (h == null) throw new Error("Could not determine key for item");
1391
+ l && (h = l + ":" + h), p = Qe(p, i ? {
1392
+ key: h,
1393
+ id: h,
1394
+ value: m
1395
+ } : {
1396
+ key: h
1397
+ }), o.set(m, p);
1398
+ }
1399
+ d.push(p);
1400
+ }
1401
+ return d;
1402
+ } else if (typeof e != "function") return e;
1403
+ }, [
1404
+ e,
1405
+ t,
1406
+ o,
1407
+ l,
1408
+ i
1409
+ ]);
1410
+ }
1411
+ const yt = /* @__PURE__ */ B(!1), ie = /* @__PURE__ */ B(null);
1412
+ function Qi(r) {
1413
+ if (Q(ie))
1414
+ return r.content;
1415
+ let { collection: t, document: l } = li(r.createCollection);
1416
+ return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(wl, null, /* @__PURE__ */ S.createElement(ie.Provider, {
1417
+ value: l
1418
+ }, r.content)), /* @__PURE__ */ S.createElement(Ql, {
1419
+ render: r.children,
1420
+ collection: t
1421
+ }));
1422
+ }
1423
+ function Ql({ collection: r, render: e }) {
1424
+ return e(r);
1425
+ }
1426
+ function ei(r, e, t) {
1427
+ let l = at(), i = D(l);
1428
+ i.current = l;
1429
+ let n = G(() => i.current ? t() : e(), [
1430
+ e,
1431
+ t
1432
+ ]);
1433
+ return Xl.useSyncExternalStore(r, n);
1434
+ }
1435
+ const ti = typeof S.useSyncExternalStore == "function" ? S.useSyncExternalStore : ei;
1436
+ function li(r) {
1437
+ let [e] = X(() => new Zl(r?.() || new Re())), t = G((o) => e.subscribe(o), [
1438
+ e
1439
+ ]), l = G(() => {
1440
+ let o = e.getCollection();
1441
+ return e.isSSR && e.resetAfterSSR(), o;
1442
+ }, [
1443
+ e
1444
+ ]), i = G(() => (e.isSSR = !0, e.getCollection()), [
1445
+ e
1446
+ ]), n = ti(t, l, i);
1447
+ return xe(() => (e.isMounted = !0, () => {
1448
+ e.isMounted = !1;
1449
+ }), [
1450
+ e
1451
+ ]), {
1452
+ collection: n,
1453
+ document: e
1454
+ };
1455
+ }
1456
+ const ke = /* @__PURE__ */ B(null);
1457
+ function vt(r, e, t, l, i, n) {
1458
+ let o = G((s) => {
1459
+ s?.setProps(e, t, l, n);
1460
+ }, [
1461
+ e,
1462
+ t,
1463
+ l,
1464
+ n
1465
+ ]), u = Q(ke);
1466
+ if (u) {
1467
+ let s = u.ownerDocument.nodesByProps.get(e);
1468
+ return s || (s = u.ownerDocument.createElement(r), s.setProps(e, t, l, n), u.appendChild(s), u.ownerDocument.updateCollection(), u.ownerDocument.nodesByProps.set(e, s)), i ? /* @__PURE__ */ S.createElement(ke.Provider, {
1469
+ value: s
1470
+ }, i) : null;
1471
+ }
1472
+ return /* @__PURE__ */ S.createElement(r, {
1473
+ ref: o
1474
+ }, i);
1475
+ }
1476
+ function bt(r, e) {
1477
+ let t = ({ node: i }) => e(i.props, i.props.ref, i), l = et((i, n) => {
1478
+ let o = Q(Be);
1479
+ if (!Q(yt)) {
1480
+ if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
1481
+ return e(i, n);
1482
+ }
1483
+ return vt(r, i, n, "children" in i ? i.children : null, null, (s) => (
1484
+ // Forward FocusableContext to real DOM tree so tooltips work.
1485
+ /* @__PURE__ */ S.createElement(Be.Provider, {
1486
+ value: o
1487
+ }, /* @__PURE__ */ S.createElement(t, {
1488
+ node: s
1489
+ }))
1490
+ ));
1491
+ });
1492
+ return l.displayName = e.name, l;
1493
+ }
1494
+ function en(r, e, t = $t) {
1495
+ let l = ({ node: n }) => e(n.props, n.props.ref, n), i = et((n, o) => {
1496
+ let u = t(n);
1497
+ var s;
1498
+ return (s = vt(r, n, o, null, u, (d) => /* @__PURE__ */ S.createElement(l, {
1499
+ node: d
1500
+ }))) !== null && s !== void 0 ? s : /* @__PURE__ */ S.createElement(S.Fragment, null);
1501
+ });
1502
+ return i.displayName = e.name, i;
1503
+ }
1504
+ function $t(r) {
1505
+ return pt({
1506
+ ...r,
1507
+ addIdAndValue: !0
1508
+ });
1509
+ }
1510
+ const Ye = /* @__PURE__ */ B(null);
1511
+ function tn(r) {
1512
+ let e = Q(Ye), t = (e?.dependencies || []).concat(r.dependencies), l = r.idScope || e?.idScope, i = $t({
1513
+ ...r,
1514
+ idScope: l,
1515
+ dependencies: t
1516
+ });
1517
+ return Q(ie) && (i = /* @__PURE__ */ S.createElement(ii, null, i)), e = N(() => ({
1518
+ dependencies: t,
1519
+ idScope: l
1520
+ }), [
1521
+ l,
1522
+ ...t
1523
+ ]), /* @__PURE__ */ S.createElement(Ye.Provider, {
1524
+ value: e
1525
+ }, i);
1526
+ }
1527
+ function ii({ children: r }) {
1528
+ let e = Q(ie), t = N(() => /* @__PURE__ */ S.createElement(ie.Provider, {
1529
+ value: null
1530
+ }, /* @__PURE__ */ S.createElement(yt.Provider, {
1531
+ value: !0
1532
+ }, r)), [
1533
+ r
1534
+ ]);
1535
+ return at() ? /* @__PURE__ */ S.createElement(ke.Provider, {
1536
+ value: e
1537
+ }, t) : /* @__PURE__ */ hl(t, e);
1538
+ }
1539
+ class z extends Set {
1540
+ constructor(e, t, l) {
1541
+ super(e), e instanceof z ? (this.anchorKey = t ?? e.anchorKey, this.currentKey = l ?? e.currentKey) : (this.anchorKey = t ?? null, this.currentKey = l ?? null);
1542
+ }
1543
+ }
1544
+ function ni(r, e) {
1545
+ if (r.size !== e.size) return !1;
1546
+ for (let t of r)
1547
+ if (!e.has(t)) return !1;
1548
+ return !0;
1549
+ }
1550
+ function ln(r) {
1551
+ let { selectionMode: e = "none", disallowEmptySelection: t = !1, allowDuplicateSelectionEvents: l, selectionBehavior: i = "toggle", disabledBehavior: n = "all" } = r, o = D(!1), [, u] = X(!1), s = D(null), d = D(null), [, m] = X(null), p = N(() => Je(r.selectedKeys), [
1552
+ r.selectedKeys
1553
+ ]), h = N(() => Je(r.defaultSelectedKeys, new z()), [
1554
+ r.defaultSelectedKeys
1555
+ ]), [y, v] = lt(p, h, r.onSelectionChange), K = N(() => r.disabledKeys ? new Set(r.disabledKeys) : /* @__PURE__ */ new Set(), [
1556
+ r.disabledKeys
1557
+ ]), [$, g] = X(i);
1558
+ i === "replace" && $ === "toggle" && typeof y == "object" && y.size === 0 && g("replace");
1559
+ let w = D(i);
1560
+ return Z(() => {
1561
+ i !== w.current && (g(i), w.current = i);
1562
+ }, [
1563
+ i
1564
+ ]), {
1565
+ selectionMode: e,
1566
+ disallowEmptySelection: t,
1567
+ selectionBehavior: $,
1568
+ setSelectionBehavior: g,
1569
+ get isFocused() {
1570
+ return o.current;
1571
+ },
1572
+ setFocused(C) {
1573
+ o.current = C, u(C);
1574
+ },
1575
+ get focusedKey() {
1576
+ return s.current;
1577
+ },
1578
+ get childFocusStrategy() {
1579
+ return d.current;
1580
+ },
1581
+ setFocusedKey(C, k = "first") {
1582
+ s.current = C, d.current = k, m(C);
1583
+ },
1584
+ selectedKeys: y,
1585
+ setSelectedKeys(C) {
1586
+ (l || !ni(C, y)) && v(C);
1587
+ },
1588
+ disabledKeys: K,
1589
+ disabledBehavior: n
1590
+ };
1591
+ }
1592
+ function Je(r, e) {
1593
+ return r ? r === "all" ? "all" : new z(r) : e;
1594
+ }
1595
+ class gt {
1596
+ /**
1597
+ * The type of selection that is allowed in the collection.
1598
+ */
1599
+ get selectionMode() {
1600
+ return this.state.selectionMode;
1601
+ }
1602
+ /**
1603
+ * Whether the collection allows empty selection.
1604
+ */
1605
+ get disallowEmptySelection() {
1606
+ return this.state.disallowEmptySelection;
1607
+ }
1608
+ /**
1609
+ * The selection behavior for the collection.
1610
+ */
1611
+ get selectionBehavior() {
1612
+ return this.state.selectionBehavior;
1613
+ }
1614
+ /**
1615
+ * Sets the selection behavior for the collection.
1616
+ */
1617
+ setSelectionBehavior(e) {
1618
+ this.state.setSelectionBehavior(e);
1619
+ }
1620
+ /**
1621
+ * Whether the collection is currently focused.
1622
+ */
1623
+ get isFocused() {
1624
+ return this.state.isFocused;
1625
+ }
1626
+ /**
1627
+ * Sets whether the collection is focused.
1628
+ */
1629
+ setFocused(e) {
1630
+ this.state.setFocused(e);
1631
+ }
1632
+ /**
1633
+ * The current focused key in the collection.
1634
+ */
1635
+ get focusedKey() {
1636
+ return this.state.focusedKey;
1637
+ }
1638
+ /** Whether the first or last child of the focused key should receive focus. */
1639
+ get childFocusStrategy() {
1640
+ return this.state.childFocusStrategy;
1641
+ }
1642
+ /**
1643
+ * Sets the focused key.
1644
+ */
1645
+ setFocusedKey(e, t) {
1646
+ (e == null || this.collection.getItem(e)) && this.state.setFocusedKey(e, t);
1647
+ }
1648
+ /**
1649
+ * The currently selected keys in the collection.
1650
+ */
1651
+ get selectedKeys() {
1652
+ return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
1653
+ }
1654
+ /**
1655
+ * The raw selection value for the collection.
1656
+ * Either 'all' for select all, or a set of keys.
1657
+ */
1658
+ get rawSelection() {
1659
+ return this.state.selectedKeys;
1660
+ }
1661
+ /**
1662
+ * Returns whether a key is selected.
1663
+ */
1664
+ isSelected(e) {
1665
+ if (this.state.selectionMode === "none") return !1;
1666
+ let t = this.getKey(e);
1667
+ return t == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(t) : this.state.selectedKeys.has(t);
1668
+ }
1669
+ /**
1670
+ * Whether the selection is empty.
1671
+ */
1672
+ get isEmpty() {
1673
+ return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
1674
+ }
1675
+ /**
1676
+ * Whether all items in the collection are selected.
1677
+ */
1678
+ get isSelectAll() {
1679
+ if (this.isEmpty) return !1;
1680
+ if (this.state.selectedKeys === "all") return !0;
1681
+ if (this._isSelectAll != null) return this._isSelectAll;
1682
+ let e = this.getSelectAllKeys(), t = this.state.selectedKeys;
1683
+ return this._isSelectAll = e.every((l) => t.has(l)), this._isSelectAll;
1684
+ }
1685
+ get firstSelectedKey() {
1686
+ let e = null;
1687
+ for (let l of this.state.selectedKeys) {
1688
+ let i = this.collection.getItem(l);
1689
+ (!e || i && be(this.collection, i, e) < 0) && (e = i);
1690
+ }
1691
+ var t;
1692
+ return (t = e?.key) !== null && t !== void 0 ? t : null;
1693
+ }
1694
+ get lastSelectedKey() {
1695
+ let e = null;
1696
+ for (let l of this.state.selectedKeys) {
1697
+ let i = this.collection.getItem(l);
1698
+ (!e || i && be(this.collection, i, e) > 0) && (e = i);
1699
+ }
1700
+ var t;
1701
+ return (t = e?.key) !== null && t !== void 0 ? t : null;
1702
+ }
1703
+ get disabledKeys() {
1704
+ return this.state.disabledKeys;
1705
+ }
1706
+ get disabledBehavior() {
1707
+ return this.state.disabledBehavior;
1708
+ }
1709
+ /**
1710
+ * Extends the selection to the given key.
1711
+ */
1712
+ extendSelection(e) {
1713
+ if (this.selectionMode === "none") return;
1714
+ if (this.selectionMode === "single") {
1715
+ this.replaceSelection(e);
1716
+ return;
1717
+ }
1718
+ let t = this.getKey(e);
1719
+ if (t == null) return;
1720
+ let l;
1721
+ if (this.state.selectedKeys === "all") l = new z([
1722
+ t
1723
+ ], t, t);
1724
+ else {
1725
+ let o = this.state.selectedKeys;
1726
+ var i;
1727
+ let u = (i = o.anchorKey) !== null && i !== void 0 ? i : t;
1728
+ l = new z(o, u, t);
1729
+ var n;
1730
+ for (let s of this.getKeyRange(u, (n = o.currentKey) !== null && n !== void 0 ? n : t)) l.delete(s);
1731
+ for (let s of this.getKeyRange(t, u)) this.canSelectItem(s) && l.add(s);
1732
+ }
1733
+ this.state.setSelectedKeys(l);
1734
+ }
1735
+ getKeyRange(e, t) {
1736
+ let l = this.collection.getItem(e), i = this.collection.getItem(t);
1737
+ return l && i ? be(this.collection, l, i) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
1738
+ }
1739
+ getKeyRangeInternal(e, t) {
1740
+ var l;
1741
+ if (!((l = this.layoutDelegate) === null || l === void 0) && l.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
1742
+ let i = [], n = e;
1743
+ for (; n != null; ) {
1744
+ let o = this.collection.getItem(n);
1745
+ if (o && (o.type === "item" || o.type === "cell" && this.allowsCellSelection) && i.push(n), n === t) return i;
1746
+ n = this.collection.getKeyAfter(n);
1747
+ }
1748
+ return [];
1749
+ }
1750
+ getKey(e) {
1751
+ let t = this.collection.getItem(e);
1752
+ if (!t || t.type === "cell" && this.allowsCellSelection) return e;
1753
+ for (; t && t.type !== "item" && t.parentKey != null; ) t = this.collection.getItem(t.parentKey);
1754
+ return !t || t.type !== "item" ? null : t.key;
1755
+ }
1756
+ /**
1757
+ * Toggles whether the given key is selected.
1758
+ */
1759
+ toggleSelection(e) {
1760
+ if (this.selectionMode === "none") return;
1761
+ if (this.selectionMode === "single" && !this.isSelected(e)) {
1762
+ this.replaceSelection(e);
1763
+ return;
1764
+ }
1765
+ let t = this.getKey(e);
1766
+ if (t == null) return;
1767
+ let l = new z(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
1768
+ l.has(t) ? l.delete(t) : this.canSelectItem(t) && (l.add(t), l.anchorKey = t, l.currentKey = t), !(this.disallowEmptySelection && l.size === 0) && this.state.setSelectedKeys(l);
1769
+ }
1770
+ /**
1771
+ * Replaces the selection with only the given key.
1772
+ */
1773
+ replaceSelection(e) {
1774
+ if (this.selectionMode === "none") return;
1775
+ let t = this.getKey(e);
1776
+ if (t == null) return;
1777
+ let l = this.canSelectItem(t) ? new z([
1778
+ t
1779
+ ], t, t) : new z();
1780
+ this.state.setSelectedKeys(l);
1781
+ }
1782
+ /**
1783
+ * Replaces the selection with the given keys.
1784
+ */
1785
+ setSelectedKeys(e) {
1786
+ if (this.selectionMode === "none") return;
1787
+ let t = new z();
1788
+ for (let l of e) {
1789
+ let i = this.getKey(l);
1790
+ if (i != null && (t.add(i), this.selectionMode === "single"))
1791
+ break;
1792
+ }
1793
+ this.state.setSelectedKeys(t);
1794
+ }
1795
+ getSelectAllKeys() {
1796
+ let e = [], t = (l) => {
1797
+ for (; l != null; ) {
1798
+ if (this.canSelectItem(l)) {
1799
+ var i;
1800
+ let o = this.collection.getItem(l);
1801
+ o?.type === "item" && e.push(l);
1802
+ var n;
1803
+ o?.hasChildNodes && (this.allowsCellSelection || o.type !== "item") && t((n = (i = Gl(ft(o, this.collection))) === null || i === void 0 ? void 0 : i.key) !== null && n !== void 0 ? n : null);
1804
+ }
1805
+ l = this.collection.getKeyAfter(l);
1806
+ }
1807
+ };
1808
+ return t(this.collection.getFirstKey()), e;
1809
+ }
1810
+ /**
1811
+ * Selects all items in the collection.
1812
+ */
1813
+ selectAll() {
1814
+ !this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
1815
+ }
1816
+ /**
1817
+ * Removes all keys from the selection.
1818
+ */
1819
+ clearSelection() {
1820
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new z());
1821
+ }
1822
+ /**
1823
+ * Toggles between select all and an empty selection.
1824
+ */
1825
+ toggleSelectAll() {
1826
+ this.isSelectAll ? this.clearSelection() : this.selectAll();
1827
+ }
1828
+ select(e, t) {
1829
+ this.selectionMode !== "none" && (this.selectionMode === "single" ? this.isSelected(e) && !this.disallowEmptySelection ? this.toggleSelection(e) : this.replaceSelection(e) : this.selectionBehavior === "toggle" || t && (t.pointerType === "touch" || t.pointerType === "virtual") ? this.toggleSelection(e) : this.replaceSelection(e));
1830
+ }
1831
+ /**
1832
+ * Returns whether the current selection is equal to the given selection.
1833
+ */
1834
+ isSelectionEqual(e) {
1835
+ if (e === this.state.selectedKeys) return !0;
1836
+ let t = this.selectedKeys;
1837
+ if (e.size !== t.size) return !1;
1838
+ for (let l of e)
1839
+ if (!t.has(l)) return !1;
1840
+ for (let l of t)
1841
+ if (!e.has(l)) return !1;
1842
+ return !0;
1843
+ }
1844
+ canSelectItem(e) {
1845
+ var t;
1846
+ if (this.state.selectionMode === "none" || this.state.disabledKeys.has(e)) return !1;
1847
+ let l = this.collection.getItem(e);
1848
+ return !(!l || !(l == null || (t = l.props) === null || t === void 0) && t.isDisabled || l.type === "cell" && !this.allowsCellSelection);
1849
+ }
1850
+ isDisabled(e) {
1851
+ var t, l;
1852
+ return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(e) || !!(!((l = this.collection.getItem(e)) === null || l === void 0 || (t = l.props) === null || t === void 0) && t.isDisabled));
1853
+ }
1854
+ isLink(e) {
1855
+ var t, l;
1856
+ return !!(!((l = this.collection.getItem(e)) === null || l === void 0 || (t = l.props) === null || t === void 0) && t.href);
1857
+ }
1858
+ getItemProps(e) {
1859
+ var t;
1860
+ return (t = this.collection.getItem(e)) === null || t === void 0 ? void 0 : t.props;
1861
+ }
1862
+ withCollection(e) {
1863
+ return new gt(e, this.state, {
1864
+ allowsCellSelection: this.allowsCellSelection,
1865
+ layoutDelegate: this.layoutDelegate || void 0
1866
+ });
1867
+ }
1868
+ constructor(e, t, l) {
1869
+ this.collection = e, this.state = t;
1870
+ var i;
1871
+ this.allowsCellSelection = (i = l?.allowsCellSelection) !== null && i !== void 0 ? i : !1, this._isSelectAll = null, this.layoutDelegate = l?.layoutDelegate || null;
1872
+ }
1873
+ }
1874
+ const ri = /* @__PURE__ */ B(null), mt = /* @__PURE__ */ B(null), nn = /* @__PURE__ */ El(function(e, t) {
1875
+ [e, t] = se(e, t, mt);
1876
+ let { validationBehavior: l } = it(ml) || {};
1877
+ var i, n;
1878
+ let o = (n = (i = e.validationBehavior) !== null && i !== void 0 ? i : l) !== null && n !== void 0 ? n : "native", u = D(null), [s, d] = se({}, u, Ce), [m, p] = bl(!e["aria-label"] && !e["aria-labelledby"]), [h, y] = X("input"), { labelProps: v, inputProps: K, descriptionProps: $, errorMessageProps: g, ...w } = Dl({
1879
+ ...nt(e),
1880
+ inputElementType: h,
1881
+ label: p,
1882
+ validationBehavior: o
1883
+ }, d), C = G((P) => {
1884
+ d.current = P, P && y(P instanceof HTMLTextAreaElement ? "textarea" : "input");
1885
+ }, [
1886
+ d
1887
+ ]), k = $l({
1888
+ ...e,
1889
+ values: {
1890
+ isDisabled: e.isDisabled || !1,
1891
+ isInvalid: w.isInvalid,
1892
+ isReadOnly: e.isReadOnly || !1,
1893
+ isRequired: e.isRequired || !1
1894
+ },
1895
+ defaultClassName: "react-aria-TextField"
1896
+ }), F = ot(e);
1897
+ return delete F.id, /* @__PURE__ */ S.createElement("div", {
1898
+ ...F,
1899
+ ...k,
1900
+ ref: t,
1901
+ slot: e.slot || void 0,
1902
+ "data-disabled": e.isDisabled || void 0,
1903
+ "data-invalid": w.isInvalid || void 0,
1904
+ "data-readonly": e.isReadOnly || void 0,
1905
+ "data-required": e.isRequired || void 0
1906
+ }, /* @__PURE__ */ S.createElement(rt, {
1907
+ values: [
1908
+ [
1909
+ Sl,
1910
+ {
1911
+ ...v,
1912
+ ref: m
1913
+ }
1914
+ ],
1915
+ [
1916
+ Ce,
1917
+ {
1918
+ ...ee(K, s),
1919
+ ref: C
1920
+ }
1921
+ ],
1922
+ [
1923
+ Kl,
1924
+ {
1925
+ ...K,
1926
+ ref: C
1927
+ }
1928
+ ],
1929
+ [
1930
+ Cl,
1931
+ {
1932
+ slots: {
1933
+ description: $,
1934
+ errorMessage: g
1935
+ }
1936
+ }
1937
+ ],
1938
+ [
1939
+ xl,
1940
+ w
1941
+ ]
1942
+ ]
1943
+ }, k.children));
1944
+ });
1945
+ var xt = {};
1946
+ xt = {
1947
+ collectionLabel: "مقترحات"
1948
+ };
1949
+ var St = {};
1950
+ St = {
1951
+ collectionLabel: "Предложения"
1952
+ };
1953
+ var Kt = {};
1954
+ Kt = {
1955
+ collectionLabel: "Návrhy"
1956
+ };
1957
+ var Ct = {};
1958
+ Ct = {
1959
+ collectionLabel: "Forslag"
1960
+ };
1961
+ var wt = {};
1962
+ wt = {
1963
+ collectionLabel: "Empfehlungen"
1964
+ };
1965
+ var Et = {};
1966
+ Et = {
1967
+ collectionLabel: "Προτάσεις"
1968
+ };
1969
+ var Dt = {};
1970
+ Dt = {
1971
+ collectionLabel: "Suggestions"
1972
+ };
1973
+ var kt = {};
1974
+ kt = {
1975
+ collectionLabel: "Sugerencias"
1976
+ };
1977
+ var It = {};
1978
+ It = {
1979
+ collectionLabel: "Soovitused"
1980
+ };
1981
+ var Pt = {};
1982
+ Pt = {
1983
+ collectionLabel: "Ehdotukset"
1984
+ };
1985
+ var Ft = {};
1986
+ Ft = {
1987
+ collectionLabel: "Suggestions"
1988
+ };
1989
+ var Rt = {};
1990
+ Rt = {
1991
+ collectionLabel: "הצעות"
1992
+ };
1993
+ var Tt = {};
1994
+ Tt = {
1995
+ collectionLabel: "Prijedlozi"
1996
+ };
1997
+ var At = {};
1998
+ At = {
1999
+ collectionLabel: "Javaslatok"
2000
+ };
2001
+ var Lt = {};
2002
+ Lt = {
2003
+ collectionLabel: "Suggerimenti"
2004
+ };
2005
+ var Mt = {};
2006
+ Mt = {
2007
+ collectionLabel: "候補"
2008
+ };
2009
+ var Bt = {};
2010
+ Bt = {
2011
+ collectionLabel: "제안"
2012
+ };
2013
+ var Ot = {};
2014
+ Ot = {
2015
+ collectionLabel: "Pasiūlymai"
2016
+ };
2017
+ var Nt = {};
2018
+ Nt = {
2019
+ collectionLabel: "Ieteikumi"
2020
+ };
2021
+ var Vt = {};
2022
+ Vt = {
2023
+ collectionLabel: "Forslag"
2024
+ };
2025
+ var zt = {};
2026
+ zt = {
2027
+ collectionLabel: "Suggesties"
2028
+ };
2029
+ var Ut = {};
2030
+ Ut = {
2031
+ collectionLabel: "Sugestie"
2032
+ };
2033
+ var Ht = {};
2034
+ Ht = {
2035
+ collectionLabel: "Sugestões"
2036
+ };
2037
+ var qt = {};
2038
+ qt = {
2039
+ collectionLabel: "Sugestões"
2040
+ };
2041
+ var Wt = {};
2042
+ Wt = {
2043
+ collectionLabel: "Sugestii"
2044
+ };
2045
+ var Gt = {};
2046
+ Gt = {
2047
+ collectionLabel: "Предложения"
2048
+ };
2049
+ var _t = {};
2050
+ _t = {
2051
+ collectionLabel: "Návrhy"
2052
+ };
2053
+ var jt = {};
2054
+ jt = {
2055
+ collectionLabel: "Predlogi"
2056
+ };
2057
+ var Yt = {};
2058
+ Yt = {
2059
+ collectionLabel: "Predlozi"
2060
+ };
2061
+ var Jt = {};
2062
+ Jt = {
2063
+ collectionLabel: "Förslag"
2064
+ };
2065
+ var Xt = {};
2066
+ Xt = {
2067
+ collectionLabel: "Öneriler"
2068
+ };
2069
+ var Zt = {};
2070
+ Zt = {
2071
+ collectionLabel: "Пропозиції"
2072
+ };
2073
+ var Qt = {};
2074
+ Qt = {
2075
+ collectionLabel: "建议"
2076
+ };
2077
+ var el = {};
2078
+ el = {
2079
+ collectionLabel: "建議"
2080
+ };
2081
+ var tl = {};
2082
+ tl = {
2083
+ "ar-AE": xt,
2084
+ "bg-BG": St,
2085
+ "cs-CZ": Kt,
2086
+ "da-DK": Ct,
2087
+ "de-DE": wt,
2088
+ "el-GR": Et,
2089
+ "en-US": Dt,
2090
+ "es-ES": kt,
2091
+ "et-EE": It,
2092
+ "fi-FI": Pt,
2093
+ "fr-FR": Ft,
2094
+ "he-IL": Rt,
2095
+ "hr-HR": Tt,
2096
+ "hu-HU": At,
2097
+ "it-IT": Lt,
2098
+ "ja-JP": Mt,
2099
+ "ko-KR": Bt,
2100
+ "lt-LT": Ot,
2101
+ "lv-LV": Nt,
2102
+ "nb-NO": Vt,
2103
+ "nl-NL": zt,
2104
+ "pl-PL": Ut,
2105
+ "pt-BR": Ht,
2106
+ "pt-PT": qt,
2107
+ "ro-RO": Wt,
2108
+ "ru-RU": Gt,
2109
+ "sk-SK": _t,
2110
+ "sl-SI": jt,
2111
+ "sr-SP": Yt,
2112
+ "sv-SE": Jt,
2113
+ "tr-TR": Xt,
2114
+ "uk-UA": Zt,
2115
+ "zh-CN": Qt,
2116
+ "zh-TW": el
2117
+ };
2118
+ function oi(r) {
2119
+ return r && r.__esModule ? r.default : r;
2120
+ }
2121
+ function si(r, e) {
2122
+ let { inputRef: t, collectionRef: l, filter: i, disableAutoFocusFirst: n = !1 } = r, o = Ie(), u = D(void 0), s = D(!1), d = D(null), m = D(null), p = Se() !== "virtual";
2123
+ Z(() => () => clearTimeout(u.current), []);
2124
+ let h = te((f) => {
2125
+ !f.isTrusted && p && t.current && Ke(st(t.current)) !== t.current && t.current.focus();
2126
+ let x = f.target;
2127
+ f.isTrusted || !x || d.current === x.id || (clearTimeout(u.current), x !== l.current ? s.current ? (d.current = x.id, u.current = setTimeout(() => {
2128
+ e.setFocusedNodeId(x.id);
2129
+ }, 500)) : (d.current = x.id, e.setFocusedNodeId(x.id)) : (d.current = null, e.setFocusedNodeId(null)), s.current = !1);
2130
+ }), y = G((f) => {
2131
+ var x;
2132
+ if (f != null) {
2133
+ var I;
2134
+ (I = m.current) === null || I === void 0 || I.removeEventListener("focusin", h), m.current = f, f.addEventListener("focusin", h);
2135
+ } else (x = m.current) === null || x === void 0 || x.removeEventListener("focusin", h);
2136
+ }, [
2137
+ h
2138
+ ]), v = Il(N(() => gl(l, y), [
2139
+ l,
2140
+ y
2141
+ ])), K = te(() => {
2142
+ var f;
2143
+ s.current = !0, (f = l.current) === null || f === void 0 || f.dispatchEvent(new CustomEvent(we, {
2144
+ cancelable: !0,
2145
+ bubbles: !0,
2146
+ detail: {
2147
+ focusStrategy: "first"
2148
+ }
2149
+ }));
2150
+ }), $ = te((f) => {
2151
+ var x;
2152
+ Pe(Ke()), d.current = null, e.setFocusedNodeId(null);
2153
+ let I = new CustomEvent(ut, {
2154
+ cancelable: !0,
2155
+ bubbles: !0,
2156
+ detail: {
2157
+ clearFocusKey: f
2158
+ }
2159
+ });
2160
+ clearTimeout(u.current), s.current = !1, (x = l.current) === null || x === void 0 || x.dispatchEvent(I);
2161
+ }), g = (f) => {
2162
+ e.inputValue !== f && e.inputValue.length <= f.length && !n ? K() : $(!0), e.setInputValue(f);
2163
+ }, w = D(null), C = (f) => {
2164
+ var x;
2165
+ if (w.current = f.target, f.nativeEvent.isComposing) return;
2166
+ let I = d.current;
2167
+ switch (f.key) {
2168
+ case "a":
2169
+ if (J(f)) return;
2170
+ break;
2171
+ case "Escape":
2172
+ if (f.isDefaultPrevented()) return;
2173
+ break;
2174
+ case " ":
2175
+ return;
2176
+ case "Tab":
2177
+ "continuePropagation" in f && f.continuePropagation();
2178
+ return;
2179
+ case "Home":
2180
+ case "End":
2181
+ case "PageDown":
2182
+ case "PageUp":
2183
+ case "ArrowUp":
2184
+ case "ArrowDown": {
2185
+ var V;
2186
+ if ((f.key === "Home" || f.key === "End") && I == null && f.shiftKey) return;
2187
+ f.preventDefault();
2188
+ let H = new CustomEvent(we, {
2189
+ cancelable: !0,
2190
+ bubbles: !0
2191
+ });
2192
+ (V = l.current) === null || V === void 0 || V.dispatchEvent(H);
2193
+ break;
2194
+ }
2195
+ }
2196
+ f.isPropagationStopped() || f.stopPropagation();
2197
+ let q = !0;
2198
+ if (I == null) q = ((x = l.current) === null || x === void 0 ? void 0 : x.dispatchEvent(new KeyboardEvent(f.nativeEvent.type, f.nativeEvent))) || !1;
2199
+ else {
2200
+ let H = document.getElementById(I);
2201
+ q = H?.dispatchEvent(new KeyboardEvent(f.nativeEvent.type, f.nativeEvent)) || !1;
2202
+ }
2203
+ if (q) switch (f.key) {
2204
+ case "ArrowLeft":
2205
+ case "ArrowRight":
2206
+ $();
2207
+ break;
2208
+ }
2209
+ }, k = te((f) => {
2210
+ if (f.target === w.current) {
2211
+ var x;
2212
+ f.stopImmediatePropagation();
2213
+ let I = d.current;
2214
+ if (I == null) (x = l.current) === null || x === void 0 || x.dispatchEvent(new KeyboardEvent(f.type, f));
2215
+ else {
2216
+ let V = document.getElementById(I);
2217
+ V?.dispatchEvent(new KeyboardEvent(f.type, f));
2218
+ }
2219
+ }
2220
+ });
2221
+ Z(() => (document.addEventListener("keyup", k, !0), () => {
2222
+ document.removeEventListener("keyup", k, !0);
2223
+ }), [
2224
+ k
2225
+ ]);
2226
+ let F = Pl(oi(tl), "@react-aria/autocomplete"), P = kl({
2227
+ id: o,
2228
+ "aria-label": F.format("collectionLabel")
2229
+ }), O = G((f) => i ? i(f, e.inputValue) : !0, [
2230
+ e.inputValue,
2231
+ i
2232
+ ]), R = (f) => {
2233
+ if (!f.isTrusted) return;
2234
+ let x = d.current ? document.getElementById(d.current) : null;
2235
+ x && Ee(x, f.relatedTarget);
2236
+ }, _ = (f) => {
2237
+ if (!f.isTrusted) return;
2238
+ let x = d.current ? document.getElementById(d.current) : null;
2239
+ if (x) {
2240
+ let I = f.target;
2241
+ queueMicrotask(() => {
2242
+ Ee(I, x), ct(x, I);
2243
+ });
2244
+ }
2245
+ };
2246
+ var L;
2247
+ return {
2248
+ textFieldProps: {
2249
+ value: e.inputValue,
2250
+ onChange: g,
2251
+ onKeyDown: C,
2252
+ autoComplete: "off",
2253
+ "aria-haspopup": "listbox",
2254
+ "aria-controls": o,
2255
+ // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
2256
+ "aria-autocomplete": "list",
2257
+ "aria-activedescendant": (L = e.focusedNodeId) !== null && L !== void 0 ? L : void 0,
2258
+ // This disable's iOS's autocorrect suggestions, since the autocomplete provides its own suggestions.
2259
+ autoCorrect: "off",
2260
+ // This disable's the macOS Safari spell check auto corrections.
2261
+ spellCheck: "false",
2262
+ enterKeyHint: "go",
2263
+ onBlur: R,
2264
+ onFocus: _
2265
+ },
2266
+ collectionProps: ee(P, {
2267
+ shouldUseVirtualFocus: p,
2268
+ disallowTypeAhead: !0
2269
+ }),
2270
+ collectionRef: v,
2271
+ filter: i != null ? O : void 0
2272
+ };
2273
+ }
2274
+ function ai(r) {
2275
+ let { onInputChange: e, inputValue: t, defaultInputValue: l = "" } = r, i = (d) => {
2276
+ e && e(d);
2277
+ }, [n, o] = X(null), [u, s] = lt(t, l, i);
2278
+ return {
2279
+ inputValue: u,
2280
+ setInputValue: s,
2281
+ focusedNodeId: n,
2282
+ setFocusedNodeId: o
2283
+ };
2284
+ }
2285
+ const ui = /* @__PURE__ */ B(null), ci = /* @__PURE__ */ B(null), di = /* @__PURE__ */ B(null);
2286
+ function rn(r) {
2287
+ let e = it(ui, r.slot);
2288
+ r = ee(e, r);
2289
+ let { filter: t, disableAutoFocusFirst: l } = r, i = ai(r), n = D(null), o = D(null), { textFieldProps: u, collectionProps: s, collectionRef: d, filter: m } = si({
2290
+ ...nt(r),
2291
+ filter: t,
2292
+ disableAutoFocusFirst: l,
2293
+ inputRef: n,
2294
+ collectionRef: o
2295
+ }, i);
2296
+ return /* @__PURE__ */ S.createElement(rt, {
2297
+ values: [
2298
+ [
2299
+ ci,
2300
+ i
2301
+ ],
2302
+ [
2303
+ ri,
2304
+ u
2305
+ ],
2306
+ [
2307
+ mt,
2308
+ u
2309
+ ],
2310
+ [
2311
+ Ce,
2312
+ {
2313
+ ref: n
2314
+ }
2315
+ ],
2316
+ [
2317
+ di,
2318
+ {
2319
+ filter: m,
2320
+ collectionProps: s,
2321
+ collectionRef: d
2322
+ }
2323
+ ]
2324
+ ]
2325
+ }, r.children);
2326
+ }
2327
+ const on = /* @__PURE__ */ B(null), fi = {
2328
+ CollectionRoot({ collection: r, renderDropIndicator: e }) {
2329
+ return Xe(r, null, e);
2330
+ },
2331
+ CollectionBranch({ collection: r, parent: e, renderDropIndicator: t }) {
2332
+ return Xe(r, e, t);
2333
+ }
2334
+ };
2335
+ function Xe(r, e, t) {
2336
+ return pt({
2337
+ items: e ? r.getChildren(e.key) : r,
2338
+ dependencies: [
2339
+ t
2340
+ ],
2341
+ children(l) {
2342
+ let i = l.render(l);
2343
+ return !t || l.type !== "item" ? i : /* @__PURE__ */ S.createElement(S.Fragment, null, t({
2344
+ type: "item",
2345
+ key: l.key,
2346
+ dropPosition: "before"
2347
+ }), i, hi(r, l, t));
2348
+ }
2349
+ });
2350
+ }
2351
+ function hi(r, e, t) {
2352
+ let l = e.key, i = r.getKeyAfter(l), n = i != null ? r.getItem(i) : null;
2353
+ for (; n != null && n.type !== "item"; )
2354
+ i = r.getKeyAfter(n.key), n = i != null ? r.getItem(i) : null;
2355
+ let o = e.nextKey != null ? r.getItem(e.nextKey) : null;
2356
+ for (; o != null && o.type !== "item"; ) o = o.nextKey != null ? r.getItem(o.nextKey) : null;
2357
+ let u = [];
2358
+ if (o == null) {
2359
+ let s = e;
2360
+ for (; s && (!n || s.parentKey !== n.parentKey && n.level < s.level); ) {
2361
+ let d = t({
2362
+ type: "item",
2363
+ key: s.key,
2364
+ dropPosition: "after"
2365
+ });
2366
+ /* @__PURE__ */ sl(d) && u.push(/* @__PURE__ */ Qe(d, {
2367
+ key: `${s.key}-after`
2368
+ })), s = s.parentKey != null ? r.getItem(s.parentKey) : null;
2369
+ }
2370
+ }
2371
+ return u;
2372
+ }
2373
+ const sn = /* @__PURE__ */ B(fi);
2374
+ function an(r) {
2375
+ return N(() => r != null ? /* @__PURE__ */ new Set([
2376
+ r
2377
+ ]) : null, [
2378
+ r
2379
+ ]);
2380
+ }
2381
+ const pi = /* @__PURE__ */ B({}), un = /* @__PURE__ */ bt("header", function(e, t) {
2382
+ return [e, t] = se(e, t, pi), /* @__PURE__ */ S.createElement("header", {
2383
+ className: "react-aria-Header",
2384
+ ...e,
2385
+ ref: t
2386
+ }, e.children);
2387
+ }), yi = /* @__PURE__ */ B({}), cn = /* @__PURE__ */ bt("separator", function(e, t) {
2388
+ [e, t] = se(e, t, yi);
2389
+ let { elementType: l, orientation: i, style: n, className: o, slot: u, ...s } = e, d = l || "hr";
2390
+ d === "hr" && i === "vertical" && (d = "div");
2391
+ let { separatorProps: m } = Fl({
2392
+ ...s,
2393
+ elementType: l,
2394
+ orientation: i
2395
+ });
2396
+ return /* @__PURE__ */ S.createElement(d, {
2397
+ ...ot(e),
2398
+ ...m,
2399
+ style: n,
2400
+ className: o ?? "react-aria-Separator",
2401
+ ref: t,
2402
+ slot: u || void 0
2403
+ });
2404
+ });
2405
+ export {
2406
+ Yi as $,
2407
+ Ll as A,
2408
+ Zi as a,
2409
+ ji as b,
2410
+ ln as c,
2411
+ Ji as d,
2412
+ gt as e,
2413
+ bt as f,
2414
+ en as g,
2415
+ Qi as h,
2416
+ tn as i,
2417
+ sn as j,
2418
+ pi as k,
2419
+ di as l,
2420
+ Hl as m,
2421
+ yi as n,
2422
+ on as o,
2423
+ cn as p,
2424
+ un as q,
2425
+ Vl as r,
2426
+ Ul as s,
2427
+ ft as t,
2428
+ ct as u,
2429
+ rn as v,
2430
+ nn as w,
2431
+ Xi as x,
2432
+ fi as y,
2433
+ an as z
2434
+ };
2435
+ //# sourceMappingURL=Separator-CBgksjWN.es.js.map