@commercetools/nimbus 0.0.9-rc6 → 0.0.9-rc7

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 (643) hide show
  1. package/dist/accordion.d.ts +157 -0
  2. package/dist/alert.d.ts +173 -0
  3. package/dist/avatar.d.ts +70 -0
  4. package/dist/badge.d.ts +102 -0
  5. package/dist/box.d.ts +14 -0
  6. package/dist/button.d.ts +38 -0
  7. package/dist/calendar.d.ts +26 -0
  8. package/dist/card.d.ts +134 -0
  9. package/dist/checkbox.d.ts +73 -0
  10. package/dist/chunks/Button-DOBmPkg6.js +2 -0
  11. package/dist/chunks/Button-DOBmPkg6.js.map +1 -0
  12. package/dist/chunks/Button-Dtn-lV5G.js +79 -0
  13. package/dist/chunks/Button-Dtn-lV5G.js.map +1 -0
  14. package/dist/chunks/DateField-C2G53tNO.js +2564 -0
  15. package/dist/chunks/DateField-C2G53tNO.js.map +1 -0
  16. package/dist/chunks/DateField-D0hZjHMU.js +2 -0
  17. package/dist/chunks/DateField-D0hZjHMU.js.map +1 -0
  18. package/dist/chunks/Dialog-CFCn7n-k.js +2 -0
  19. package/dist/chunks/Dialog-CFCn7n-k.js.map +1 -0
  20. package/dist/chunks/Dialog-DsJ3jo2g.js +870 -0
  21. package/dist/chunks/Dialog-DsJ3jo2g.js.map +1 -0
  22. package/dist/chunks/FocusScope-B6O_mZ9T.js +627 -0
  23. package/dist/chunks/FocusScope-B6O_mZ9T.js.map +1 -0
  24. package/dist/chunks/FocusScope-Dz6kDOQY.js +2 -0
  25. package/dist/chunks/FocusScope-Dz6kDOQY.js.map +1 -0
  26. package/dist/chunks/Form-DdaqVtM4.js +8 -0
  27. package/dist/chunks/Form-DdaqVtM4.js.map +1 -0
  28. package/dist/chunks/Form-DqkTf3LZ.js +2 -0
  29. package/dist/chunks/Form-DqkTf3LZ.js.map +1 -0
  30. package/dist/chunks/Group-BMf2x0bV.js +78 -0
  31. package/dist/chunks/Group-BMf2x0bV.js.map +1 -0
  32. package/dist/chunks/Group-DR52Cv_h.js +2 -0
  33. package/dist/chunks/Group-DR52Cv_h.js.map +1 -0
  34. package/dist/chunks/Hidden-BxRZGdEW.js +2 -0
  35. package/dist/chunks/Hidden-BxRZGdEW.js.map +1 -0
  36. package/dist/chunks/Hidden-D6Lfpu1U.js +35 -0
  37. package/dist/chunks/Hidden-D6Lfpu1U.js.map +1 -0
  38. package/dist/chunks/Input-C6fX3A5E.js +43 -0
  39. package/dist/chunks/Input-C6fX3A5E.js.map +1 -0
  40. package/dist/chunks/Input-CRt1BJ4n.js +2 -0
  41. package/dist/chunks/Input-CRt1BJ4n.js.map +1 -0
  42. package/dist/chunks/ListBox-CHhUqc7T.js +18 -0
  43. package/dist/chunks/ListBox-CHhUqc7T.js.map +1 -0
  44. package/dist/chunks/ListBox-DH3lufv2.js +3071 -0
  45. package/dist/chunks/ListBox-DH3lufv2.js.map +1 -0
  46. package/dist/chunks/LiveAnnouncer-B6177m92.js +52 -0
  47. package/dist/chunks/LiveAnnouncer-B6177m92.js.map +1 -0
  48. package/dist/chunks/LiveAnnouncer-CwEWPU8b.js +2 -0
  49. package/dist/chunks/LiveAnnouncer-CwEWPU8b.js.map +1 -0
  50. package/dist/chunks/NumberFormatter-DewVDY5w.js +2 -0
  51. package/dist/chunks/NumberFormatter-DewVDY5w.js.map +1 -0
  52. package/dist/chunks/NumberFormatter-DgOUVrge.js +120 -0
  53. package/dist/chunks/NumberFormatter-DgOUVrge.js.map +1 -0
  54. package/dist/chunks/OverlayArrow-B1kv2W8j.js +479 -0
  55. package/dist/chunks/OverlayArrow-B1kv2W8j.js.map +1 -0
  56. package/dist/chunks/OverlayArrow-DsxKFiKE.js +2 -0
  57. package/dist/chunks/OverlayArrow-DsxKFiKE.js.map +1 -0
  58. package/dist/chunks/RSPContexts-CxXY5Uko.js +11 -0
  59. package/dist/chunks/RSPContexts-CxXY5Uko.js.map +1 -0
  60. package/dist/chunks/RSPContexts-qzadeFSO.js +2 -0
  61. package/dist/chunks/RSPContexts-qzadeFSO.js.map +1 -0
  62. package/dist/chunks/SSRProvider-D8lZ0o6A.js +51 -0
  63. package/dist/chunks/SSRProvider-D8lZ0o6A.js.map +1 -0
  64. package/dist/chunks/SSRProvider-DZRLwxPS.js +2 -0
  65. package/dist/chunks/SSRProvider-DZRLwxPS.js.map +1 -0
  66. package/dist/chunks/Text-BWSfeB9p.js +2 -0
  67. package/dist/chunks/Text-BWSfeB9p.js.map +1 -0
  68. package/dist/chunks/Text-DOcU1ycg.js +6 -0
  69. package/dist/chunks/Text-DOcU1ycg.js.map +1 -0
  70. package/dist/chunks/TextArea-D-S_3q08.js +42 -0
  71. package/dist/chunks/TextArea-D-S_3q08.js.map +1 -0
  72. package/dist/chunks/TextArea-Ud71sffr.js +2 -0
  73. package/dist/chunks/TextArea-Ud71sffr.js.map +1 -0
  74. package/dist/chunks/VisuallyHidden-BpUTcba_.js +41 -0
  75. package/dist/chunks/VisuallyHidden-BpUTcba_.js.map +1 -0
  76. package/dist/chunks/VisuallyHidden-BxenYie4.js +2 -0
  77. package/dist/chunks/VisuallyHidden-BxenYie4.js.map +1 -0
  78. package/dist/chunks/accordion-8pelAIyn.js +2 -0
  79. package/dist/chunks/accordion-8pelAIyn.js.map +1 -0
  80. package/dist/chunks/accordion-Dc3IqP_d.js +221 -0
  81. package/dist/chunks/accordion-Dc3IqP_d.js.map +1 -0
  82. package/dist/chunks/alert-DSpVYhCa.js +186 -0
  83. package/dist/chunks/alert-DSpVYhCa.js.map +1 -0
  84. package/dist/chunks/alert-DxoCjJDr.js +2 -0
  85. package/dist/chunks/alert-DxoCjJDr.js.map +1 -0
  86. package/dist/chunks/avatar-Aa0LrRpo.js +2 -0
  87. package/dist/chunks/avatar-Aa0LrRpo.js.map +1 -0
  88. package/dist/chunks/avatar-p4QfPsxN.js +37 -0
  89. package/dist/chunks/avatar-p4QfPsxN.js.map +1 -0
  90. package/dist/chunks/avatar.recipe-BV5OkaPx.js +39 -0
  91. package/dist/chunks/avatar.recipe-BV5OkaPx.js.map +1 -0
  92. package/dist/chunks/avatar.recipe-aGNBZhVF.js +2 -0
  93. package/dist/chunks/avatar.recipe-aGNBZhVF.js.map +1 -0
  94. package/dist/chunks/badge-BFbBB0US.js +2 -0
  95. package/dist/chunks/badge-BFbBB0US.js.map +1 -0
  96. package/dist/chunks/badge-CbqLqIo9.js +76 -0
  97. package/dist/chunks/badge-CbqLqIo9.js.map +1 -0
  98. package/dist/chunks/box-DD4jYgS7.js +11 -0
  99. package/dist/chunks/box-DD4jYgS7.js.map +1 -0
  100. package/dist/chunks/box-FU6tRPFs.js +2 -0
  101. package/dist/chunks/box-FU6tRPFs.js.map +1 -0
  102. package/dist/chunks/button-Ckftvc2h.js +66 -0
  103. package/dist/chunks/button-Ckftvc2h.js.map +1 -0
  104. package/dist/chunks/button-vfAeHh1t.js +2 -0
  105. package/dist/chunks/button-vfAeHh1t.js.map +1 -0
  106. package/dist/chunks/button.recipe-DHk13lGU.js +2 -0
  107. package/dist/chunks/button.recipe-DHk13lGU.js.map +1 -0
  108. package/dist/chunks/button.recipe-DbFAOebT.js +191 -0
  109. package/dist/chunks/button.recipe-DbFAOebT.js.map +1 -0
  110. package/dist/chunks/calendar-Bz_gsrGo.js +1577 -0
  111. package/dist/chunks/calendar-Bz_gsrGo.js.map +1 -0
  112. package/dist/chunks/calendar-Cs2rHplP.js +2 -0
  113. package/dist/chunks/calendar-Cs2rHplP.js.map +1 -0
  114. package/dist/chunks/calendar.recipe-RdPylgdo.js +101 -0
  115. package/dist/chunks/calendar.recipe-RdPylgdo.js.map +1 -0
  116. package/dist/chunks/calendar.recipe-gUaUNltl.js +2 -0
  117. package/dist/chunks/calendar.recipe-gUaUNltl.js.map +1 -0
  118. package/dist/chunks/card-B0BsL4ol.js +2 -0
  119. package/dist/chunks/card-B0BsL4ol.js.map +1 -0
  120. package/dist/chunks/card-CQwHrkIF.js +138 -0
  121. package/dist/chunks/card-CQwHrkIF.js.map +1 -0
  122. package/dist/chunks/checkbox-C5jtHkVZ.js +89 -0
  123. package/dist/chunks/checkbox-C5jtHkVZ.js.map +1 -0
  124. package/dist/chunks/checkbox-Cwb_QZjZ.js +2 -0
  125. package/dist/chunks/checkbox-Cwb_QZjZ.js.map +1 -0
  126. package/dist/chunks/code-CI8aUhmu.js +6 -0
  127. package/dist/chunks/code-CI8aUhmu.js.map +1 -0
  128. package/dist/chunks/code-Dg4Larbo.js +2 -0
  129. package/dist/chunks/code-Dg4Larbo.js.map +1 -0
  130. package/dist/chunks/combobox--lHdni2Z.js +1896 -0
  131. package/dist/chunks/combobox--lHdni2Z.js.map +1 -0
  132. package/dist/chunks/combobox-BACFWgP3.js +2 -0
  133. package/dist/chunks/combobox-BACFWgP3.js.map +1 -0
  134. package/dist/chunks/combobox.recipe-BzaPWi66.js +2 -0
  135. package/dist/chunks/combobox.recipe-BzaPWi66.js.map +1 -0
  136. package/dist/chunks/combobox.recipe-KVsma6zb.js +382 -0
  137. package/dist/chunks/combobox.recipe-KVsma6zb.js.map +1 -0
  138. package/dist/chunks/context-BmQ51HC8.js +2 -0
  139. package/dist/chunks/context-BmQ51HC8.js.map +1 -0
  140. package/dist/chunks/context-CgP0qpkX.js +94 -0
  141. package/dist/chunks/context-CgP0qpkX.js.map +1 -0
  142. package/dist/chunks/date-input-9oZMESC7.js +2 -0
  143. package/dist/chunks/date-input-9oZMESC7.js.map +1 -0
  144. package/dist/chunks/date-input-DK9U-Nh8.js +16 -0
  145. package/dist/chunks/date-input-DK9U-Nh8.js.map +1 -0
  146. package/dist/chunks/date-input.recipe-BcsevQtW.js +119 -0
  147. package/dist/chunks/date-input.recipe-BcsevQtW.js.map +1 -0
  148. package/dist/chunks/date-input.recipe-Cf9e8VAr.js +2 -0
  149. package/dist/chunks/date-input.recipe-Cf9e8VAr.js.map +1 -0
  150. package/dist/chunks/date-picker-CwXGnIiO.js +2 -0
  151. package/dist/chunks/date-picker-CwXGnIiO.js.map +1 -0
  152. package/dist/chunks/date-picker-ShPOqwXi.js +487 -0
  153. package/dist/chunks/date-picker-ShPOqwXi.js.map +1 -0
  154. package/dist/chunks/date-picker.recipe-5Avb06qp.js +2 -0
  155. package/dist/chunks/date-picker.recipe-5Avb06qp.js.map +1 -0
  156. package/dist/chunks/date-picker.recipe-BJ79OJaw.js +82 -0
  157. package/dist/chunks/date-picker.recipe-BJ79OJaw.js.map +1 -0
  158. package/dist/chunks/dialog-C1HRMUcF.js +33 -0
  159. package/dist/chunks/dialog-C1HRMUcF.js.map +1 -0
  160. package/dist/chunks/dialog-amEwvIoM.js +2 -0
  161. package/dist/chunks/dialog-amEwvIoM.js.map +1 -0
  162. package/dist/chunks/extractStyleProps-CxgBrz3O.js +11 -0
  163. package/dist/chunks/extractStyleProps-CxgBrz3O.js.map +1 -0
  164. package/dist/chunks/extractStyleProps-lyk7D-zN.js +2 -0
  165. package/dist/chunks/extractStyleProps-lyk7D-zN.js.map +1 -0
  166. package/dist/chunks/filterDOMProps-BS2lrgFA.js +2 -0
  167. package/dist/chunks/filterDOMProps-BS2lrgFA.js.map +1 -0
  168. package/dist/chunks/filterDOMProps-D6KHYVBX.js +25 -0
  169. package/dist/chunks/filterDOMProps-D6KHYVBX.js.map +1 -0
  170. package/dist/chunks/focusSafely-D_uW2Kp-.js +58 -0
  171. package/dist/chunks/focusSafely-D_uW2Kp-.js.map +1 -0
  172. package/dist/chunks/focusSafely-DuMeO0J4.js +2 -0
  173. package/dist/chunks/focusSafely-DuMeO0J4.js.map +1 -0
  174. package/dist/chunks/form-field-BUoO6HEy.js +11 -0
  175. package/dist/chunks/form-field-BUoO6HEy.js.map +1 -0
  176. package/dist/chunks/form-field-Dr8lL5SU.js +309 -0
  177. package/dist/chunks/form-field-Dr8lL5SU.js.map +1 -0
  178. package/dist/chunks/getScrollParent-DE66eQI-.js +15 -0
  179. package/dist/chunks/getScrollParent-DE66eQI-.js.map +1 -0
  180. package/dist/chunks/getScrollParent-Dc1cnLDE.js +2 -0
  181. package/dist/chunks/getScrollParent-Dc1cnLDE.js.map +1 -0
  182. package/dist/chunks/grid-CLVDMJAz.js +14 -0
  183. package/dist/chunks/grid-CLVDMJAz.js.map +1 -0
  184. package/dist/chunks/grid-xr2A-OqD.js +2 -0
  185. package/dist/chunks/grid-xr2A-OqD.js.map +1 -0
  186. package/dist/chunks/icon-CjRXcxB9.js +31 -0
  187. package/dist/chunks/icon-CjRXcxB9.js.map +1 -0
  188. package/dist/chunks/icon-D50i-dqv.js +2 -0
  189. package/dist/chunks/icon-D50i-dqv.js.map +1 -0
  190. package/dist/chunks/icon-button-1V59UrF-.js +14 -0
  191. package/dist/chunks/icon-button-1V59UrF-.js.map +1 -0
  192. package/dist/chunks/icon-button-CE-LnFNq.js +2 -0
  193. package/dist/chunks/icon-button-CE-LnFNq.js.map +1 -0
  194. package/dist/chunks/image-DCirAAnr.js +2 -0
  195. package/dist/chunks/image-DCirAAnr.js.map +1 -0
  196. package/dist/chunks/image-rXPA3shk.js +8 -0
  197. package/dist/chunks/image-rXPA3shk.js.map +1 -0
  198. package/dist/chunks/kbd-BKH_SGCC.js +6 -0
  199. package/dist/chunks/kbd-BKH_SGCC.js.map +1 -0
  200. package/dist/chunks/kbd-Bhv8ae1I.js +2 -0
  201. package/dist/chunks/kbd-Bhv8ae1I.js.map +1 -0
  202. package/dist/chunks/link-1lfvUDKX.js +49 -0
  203. package/dist/chunks/link-1lfvUDKX.js.map +1 -0
  204. package/dist/chunks/link-CCDnA-Z-.js +2 -0
  205. package/dist/chunks/link-CCDnA-Z-.js.map +1 -0
  206. package/dist/chunks/link.recipe-CG3leGAx.js +2 -0
  207. package/dist/chunks/link.recipe-CG3leGAx.js.map +1 -0
  208. package/dist/chunks/link.recipe-CbFF3IUG.js +51 -0
  209. package/dist/chunks/link.recipe-CbFF3IUG.js.map +1 -0
  210. package/dist/chunks/list-8yfreyzi.js +2 -0
  211. package/dist/chunks/list-8yfreyzi.js.map +1 -0
  212. package/dist/chunks/list-B21joBrq.js +13 -0
  213. package/dist/chunks/list-B21joBrq.js.map +1 -0
  214. package/dist/chunks/loading-spinner-B2I1CsuC.js +2 -0
  215. package/dist/chunks/loading-spinner-B2I1CsuC.js.map +1 -0
  216. package/dist/chunks/loading-spinner-CJh2luQX.js +137 -0
  217. package/dist/chunks/loading-spinner-CJh2luQX.js.map +1 -0
  218. package/dist/chunks/make-element-focusable-ByC0LOwU.js +2 -0
  219. package/dist/chunks/make-element-focusable-ByC0LOwU.js.map +1 -0
  220. package/dist/chunks/make-element-focusable-urU2Yczu.js +22 -0
  221. package/dist/chunks/make-element-focusable-urU2Yczu.js.map +1 -0
  222. package/dist/chunks/mergeProps-BeIu4MsM.js +2 -0
  223. package/dist/chunks/mergeProps-BeIu4MsM.js.map +1 -0
  224. package/dist/chunks/mergeProps-DAjoWNOq.js +128 -0
  225. package/dist/chunks/mergeProps-DAjoWNOq.js.map +1 -0
  226. package/dist/chunks/multiline-text-input-B8v-mx89.js +12 -0
  227. package/dist/chunks/multiline-text-input-B8v-mx89.js.map +1 -0
  228. package/dist/chunks/multiline-text-input-BS9tsQnR.js +116 -0
  229. package/dist/chunks/multiline-text-input-BS9tsQnR.js.map +1 -0
  230. package/dist/chunks/nimbus-provider-CFSRgGKt.js +1530 -0
  231. package/dist/chunks/nimbus-provider-CFSRgGKt.js.map +1 -0
  232. package/dist/chunks/nimbus-provider-jZPLt7_j.js +2 -0
  233. package/dist/chunks/nimbus-provider-jZPLt7_j.js.map +1 -0
  234. package/dist/chunks/number-5qMXmHyn.js +21 -0
  235. package/dist/chunks/number-5qMXmHyn.js.map +1 -0
  236. package/dist/chunks/number-CnrRPi4_.js +2 -0
  237. package/dist/chunks/number-CnrRPi4_.js.map +1 -0
  238. package/dist/chunks/number-input-BFA-uYaI.js +652 -0
  239. package/dist/chunks/number-input-BFA-uYaI.js.map +1 -0
  240. package/dist/chunks/number-input-CDaEIN66.js +2 -0
  241. package/dist/chunks/number-input-CDaEIN66.js.map +1 -0
  242. package/dist/chunks/number-input.recipe-2n6A2w0m.js +2 -0
  243. package/dist/chunks/number-input.recipe-2n6A2w0m.js.map +1 -0
  244. package/dist/chunks/number-input.recipe-CbLyhXgE.js +209 -0
  245. package/dist/chunks/number-input.recipe-CbLyhXgE.js.map +1 -0
  246. package/dist/chunks/password-input-CEUQjqeT.js +50 -0
  247. package/dist/chunks/password-input-CEUQjqeT.js.map +1 -0
  248. package/dist/chunks/password-input-CYZ0QR0V.js +2 -0
  249. package/dist/chunks/password-input-CYZ0QR0V.js.map +1 -0
  250. package/dist/chunks/radio-input-5mFGE9qS.js +2 -0
  251. package/dist/chunks/radio-input-5mFGE9qS.js.map +1 -0
  252. package/dist/chunks/radio-input-cone4teU.js +319 -0
  253. package/dist/chunks/radio-input-cone4teU.js.map +1 -0
  254. package/dist/chunks/radio-input.recipe-DdXB4lqs.js +2 -0
  255. package/dist/chunks/radio-input.recipe-DdXB4lqs.js.map +1 -0
  256. package/dist/chunks/radio-input.recipe-QYiFg_Kf.js +75 -0
  257. package/dist/chunks/radio-input.recipe-QYiFg_Kf.js.map +1 -0
  258. package/dist/chunks/scrollIntoView-B01y55fg.js +2 -0
  259. package/dist/chunks/scrollIntoView-B01y55fg.js.map +1 -0
  260. package/dist/chunks/scrollIntoView-Dtwi5Vrc.js +83 -0
  261. package/dist/chunks/scrollIntoView-Dtwi5Vrc.js.map +1 -0
  262. package/dist/chunks/select-BZ2LnuaW.js +791 -0
  263. package/dist/chunks/select-BZ2LnuaW.js.map +1 -0
  264. package/dist/chunks/select-CSp1HFJF.js +2 -0
  265. package/dist/chunks/select-CSp1HFJF.js.map +1 -0
  266. package/dist/chunks/select.recipe-DS5ZRkug.js +203 -0
  267. package/dist/chunks/select.recipe-DS5ZRkug.js.map +1 -0
  268. package/dist/chunks/select.recipe-DUHFWlQt.js +2 -0
  269. package/dist/chunks/select.recipe-DUHFWlQt.js.map +1 -0
  270. package/dist/chunks/simple-grid-CHgTayx6.js +2 -0
  271. package/dist/chunks/simple-grid-CHgTayx6.js.map +1 -0
  272. package/dist/chunks/simple-grid-D6PoDK0-.js +14 -0
  273. package/dist/chunks/simple-grid-D6PoDK0-.js.map +1 -0
  274. package/dist/chunks/stack-__ugxVHD.js +11 -0
  275. package/dist/chunks/stack-__ugxVHD.js.map +1 -0
  276. package/dist/chunks/stack-wFUhYQQb.js +2 -0
  277. package/dist/chunks/stack-wFUhYQQb.js.map +1 -0
  278. package/dist/chunks/switch-CZji_hBH.js +2 -0
  279. package/dist/chunks/switch-CZji_hBH.js.map +1 -0
  280. package/dist/chunks/switch-QvuLHJL-.js +78 -0
  281. package/dist/chunks/switch-QvuLHJL-.js.map +1 -0
  282. package/dist/chunks/switch.recipe-D3gb3Xj_.js +100 -0
  283. package/dist/chunks/switch.recipe-D3gb3Xj_.js.map +1 -0
  284. package/dist/chunks/switch.recipe-DHopLj_g.js +2 -0
  285. package/dist/chunks/switch.recipe-DHopLj_g.js.map +1 -0
  286. package/dist/chunks/tag-group-JxvggHdo.js +1347 -0
  287. package/dist/chunks/tag-group-JxvggHdo.js.map +1 -0
  288. package/dist/chunks/tag-group-v87SYIPj.js +2 -0
  289. package/dist/chunks/tag-group-v87SYIPj.js.map +1 -0
  290. package/dist/chunks/text-BTD3oGaQ.js +24 -0
  291. package/dist/chunks/text-BTD3oGaQ.js.map +1 -0
  292. package/dist/chunks/text-BjzNgHxv.js +2 -0
  293. package/dist/chunks/text-BjzNgHxv.js.map +1 -0
  294. package/dist/chunks/text-input-CpABYE1g.js +17 -0
  295. package/dist/chunks/text-input-CpABYE1g.js.map +1 -0
  296. package/dist/chunks/text-input-Ov6DSJhs.js +2 -0
  297. package/dist/chunks/text-input-Ov6DSJhs.js.map +1 -0
  298. package/dist/chunks/text-input.recipe-CGpq33Pp.js +64 -0
  299. package/dist/chunks/text-input.recipe-CGpq33Pp.js.map +1 -0
  300. package/dist/chunks/text-input.recipe-DxzvFMOB.js +2 -0
  301. package/dist/chunks/text-input.recipe-DxzvFMOB.js.map +1 -0
  302. package/dist/chunks/time-input-BIUdp4gX.js +2 -0
  303. package/dist/chunks/time-input-BIUdp4gX.js.map +1 -0
  304. package/dist/chunks/time-input-DS6RgF12.js +129 -0
  305. package/dist/chunks/time-input-DS6RgF12.js.map +1 -0
  306. package/dist/chunks/toggle-button-group-0a-aeCiH.js +265 -0
  307. package/dist/chunks/toggle-button-group-0a-aeCiH.js.map +1 -0
  308. package/dist/chunks/toggle-button-group-BdLaFCWe.js +2 -0
  309. package/dist/chunks/toggle-button-group-BdLaFCWe.js.map +1 -0
  310. package/dist/chunks/tooltip-BdwdWMCL.js +273 -0
  311. package/dist/chunks/tooltip-BdwdWMCL.js.map +1 -0
  312. package/dist/chunks/tooltip-_9ZfCa2D.js +2 -0
  313. package/dist/chunks/tooltip-_9ZfCa2D.js.map +1 -0
  314. package/dist/chunks/tooltip.recipe-CkNOA8Sg.js +2 -0
  315. package/dist/chunks/tooltip.recipe-CkNOA8Sg.js.map +1 -0
  316. package/dist/chunks/tooltip.recipe-D9fYIQZz.js +24 -0
  317. package/dist/chunks/tooltip.recipe-D9fYIQZz.js.map +1 -0
  318. package/dist/chunks/useButton-BRqxk71F.js +2 -0
  319. package/dist/chunks/useButton-BRqxk71F.js.map +1 -0
  320. package/dist/chunks/useButton-CGSIlDH9.js +48 -0
  321. package/dist/chunks/useButton-CGSIlDH9.js.map +1 -0
  322. package/dist/chunks/useCollator-PO0ZNDFD.js +12 -0
  323. package/dist/chunks/useCollator-PO0ZNDFD.js.map +1 -0
  324. package/dist/chunks/useCollator-ajK3YU47.js +2 -0
  325. package/dist/chunks/useCollator-ajK3YU47.js.map +1 -0
  326. package/dist/chunks/useControlledState-D0L6S_5r.js +2 -0
  327. package/dist/chunks/useControlledState-D0L6S_5r.js.map +1 -0
  328. package/dist/chunks/useControlledState-u436Wbp1.js +31 -0
  329. package/dist/chunks/useControlledState-u436Wbp1.js.map +1 -0
  330. package/dist/chunks/useDateFormatter-BYTqyfPM.js +2 -0
  331. package/dist/chunks/useDateFormatter-BYTqyfPM.js.map +1 -0
  332. package/dist/chunks/useDateFormatter-CZ3YJIiV.js +1581 -0
  333. package/dist/chunks/useDateFormatter-CZ3YJIiV.js.map +1 -0
  334. package/dist/chunks/useEvent-9hDa8zoA.js +22 -0
  335. package/dist/chunks/useEvent-9hDa8zoA.js.map +1 -0
  336. package/dist/chunks/useEvent-DCXRKhH2.js +2 -0
  337. package/dist/chunks/useEvent-DCXRKhH2.js.map +1 -0
  338. package/dist/chunks/useField-3jug3XBb.js +36 -0
  339. package/dist/chunks/useField-3jug3XBb.js.map +1 -0
  340. package/dist/chunks/useField-BeaT9Ud9.js +2 -0
  341. package/dist/chunks/useField-BeaT9Ud9.js.map +1 -0
  342. package/dist/chunks/useFocus-CP2rlXSg.js +2 -0
  343. package/dist/chunks/useFocus-CP2rlXSg.js.map +1 -0
  344. package/dist/chunks/useFocus-mfjoACQ_.js +184 -0
  345. package/dist/chunks/useFocus-mfjoACQ_.js.map +1 -0
  346. package/dist/chunks/useFocusRing-C4z9NtLP.js +2 -0
  347. package/dist/chunks/useFocusRing-C4z9NtLP.js.map +1 -0
  348. package/dist/chunks/useFocusRing-C8yOnkHj.js +34 -0
  349. package/dist/chunks/useFocusRing-C8yOnkHj.js.map +1 -0
  350. package/dist/chunks/useFocusWithin-BENrOz43.js +2 -0
  351. package/dist/chunks/useFocusWithin-BENrOz43.js.map +1 -0
  352. package/dist/chunks/useFocusWithin-CLd9itwe.js +55 -0
  353. package/dist/chunks/useFocusWithin-CLd9itwe.js.map +1 -0
  354. package/dist/chunks/useFocusable-C7jAQfqU.js +2 -0
  355. package/dist/chunks/useFocusable-C7jAQfqU.js.map +1 -0
  356. package/dist/chunks/useFocusable-IwGfkXQG.js +75 -0
  357. package/dist/chunks/useFocusable-IwGfkXQG.js.map +1 -0
  358. package/dist/chunks/useFormReset-Bt5-6Arg.js +2 -0
  359. package/dist/chunks/useFormReset-Bt5-6Arg.js.map +1 -0
  360. package/dist/chunks/useFormReset-CzGCrdxu.js +21 -0
  361. package/dist/chunks/useFormReset-CzGCrdxu.js.map +1 -0
  362. package/dist/chunks/useFormValidation-BSXga2hX.js +2 -0
  363. package/dist/chunks/useFormValidation-BSXga2hX.js.map +1 -0
  364. package/dist/chunks/useFormValidation-BcDTI6Mp.js +179 -0
  365. package/dist/chunks/useFormValidation-BcDTI6Mp.js.map +1 -0
  366. package/dist/chunks/useHover-ByIffPdS.js +2 -0
  367. package/dist/chunks/useHover-ByIffPdS.js.map +1 -0
  368. package/dist/chunks/useHover-CbdI4C89.js +85 -0
  369. package/dist/chunks/useHover-CbdI4C89.js.map +1 -0
  370. package/dist/chunks/useLabel-As7K6zBZ.js +2 -0
  371. package/dist/chunks/useLabel-As7K6zBZ.js.map +1 -0
  372. package/dist/chunks/useLabel-Dd6M1Y4b.js +24 -0
  373. package/dist/chunks/useLabel-Dd6M1Y4b.js.map +1 -0
  374. package/dist/chunks/useLabels-B-BeKbzR.js +2 -0
  375. package/dist/chunks/useLabels-B-BeKbzR.js.map +1 -0
  376. package/dist/chunks/useLabels-B1BLA0b7.js +18 -0
  377. package/dist/chunks/useLabels-B1BLA0b7.js.map +1 -0
  378. package/dist/chunks/useLocalizedStringFormatter-CDXOVKSV.js +2 -0
  379. package/dist/chunks/useLocalizedStringFormatter-CDXOVKSV.js.map +1 -0
  380. package/dist/chunks/useLocalizedStringFormatter-JGrQYmnh.js +97 -0
  381. package/dist/chunks/useLocalizedStringFormatter-JGrQYmnh.js.map +1 -0
  382. package/dist/chunks/useNumberFormatter-DS6s5teN.js +2 -0
  383. package/dist/chunks/useNumberFormatter-DS6s5teN.js.map +1 -0
  384. package/dist/chunks/useNumberFormatter-Dx-esBDc.js +14 -0
  385. package/dist/chunks/useNumberFormatter-Dx-esBDc.js.map +1 -0
  386. package/dist/chunks/useObjectRef-4v2MxSjQ.js +2 -0
  387. package/dist/chunks/useObjectRef-4v2MxSjQ.js.map +1 -0
  388. package/dist/chunks/useObjectRef-CaJ5pgjX.js +30 -0
  389. package/dist/chunks/useObjectRef-CaJ5pgjX.js.map +1 -0
  390. package/dist/chunks/usePress-C9YKhG_e.js +8 -0
  391. package/dist/chunks/usePress-C9YKhG_e.js.map +1 -0
  392. package/dist/chunks/usePress-dJvNd3G7.js +526 -0
  393. package/dist/chunks/usePress-dJvNd3G7.js.map +1 -0
  394. package/dist/chunks/useSingleSelectListState-CwUhrKQb.js +2 -0
  395. package/dist/chunks/useSingleSelectListState-CwUhrKQb.js.map +1 -0
  396. package/dist/chunks/useSingleSelectListState-DovbyYzZ.js +269 -0
  397. package/dist/chunks/useSingleSelectListState-DovbyYzZ.js.map +1 -0
  398. package/dist/chunks/useSpinButton-D16epD7I.js +432 -0
  399. package/dist/chunks/useSpinButton-D16epD7I.js.map +1 -0
  400. package/dist/chunks/useSpinButton-UFcBxg8e.js +2 -0
  401. package/dist/chunks/useSpinButton-UFcBxg8e.js.map +1 -0
  402. package/dist/chunks/useTextField-DFfK-BZg.js +88 -0
  403. package/dist/chunks/useTextField-DFfK-BZg.js.map +1 -0
  404. package/dist/chunks/useTextField-lejiPfpS.js +2 -0
  405. package/dist/chunks/useTextField-lejiPfpS.js.map +1 -0
  406. package/dist/chunks/useToggle-BUU7amte.js +2 -0
  407. package/dist/chunks/useToggle-BUU7amte.js.map +1 -0
  408. package/dist/chunks/useToggle-Cp-w42gr.js +50 -0
  409. package/dist/chunks/useToggle-Cp-w42gr.js.map +1 -0
  410. package/dist/chunks/useToggleState-B5pE_WmM.js +2 -0
  411. package/dist/chunks/useToggleState-B5pE_WmM.js.map +1 -0
  412. package/dist/chunks/useToggleState-Bz5rAf4C.js +19 -0
  413. package/dist/chunks/useToggleState-Bz5rAf4C.js.map +1 -0
  414. package/dist/chunks/useUpdateEffect-CCDx8D4X.js +14 -0
  415. package/dist/chunks/useUpdateEffect-CCDx8D4X.js.map +1 -0
  416. package/dist/chunks/useUpdateEffect-sk3kiVGz.js +2 -0
  417. package/dist/chunks/useUpdateEffect-sk3kiVGz.js.map +1 -0
  418. package/dist/chunks/utils-BzPwFwlw.js +2 -0
  419. package/dist/chunks/utils-BzPwFwlw.js.map +1 -0
  420. package/dist/chunks/utils-DTmE9QvG.js +128 -0
  421. package/dist/chunks/utils-DTmE9QvG.js.map +1 -0
  422. package/dist/chunks/utils-XbOVivul.js +2 -0
  423. package/dist/chunks/utils-XbOVivul.js.map +1 -0
  424. package/dist/chunks/utils-wW2ZswvI.js +231 -0
  425. package/dist/chunks/utils-wW2ZswvI.js.map +1 -0
  426. package/dist/chunks/visually-hidden-Qd_t4hAG.js +2 -0
  427. package/dist/chunks/visually-hidden-Qd_t4hAG.js.map +1 -0
  428. package/dist/chunks/visually-hidden-T2B120j4.js +11 -0
  429. package/dist/chunks/visually-hidden-T2B120j4.js.map +1 -0
  430. package/dist/code.d.ts +10 -0
  431. package/dist/combobox.d.ts +275 -0
  432. package/dist/components/accordion.cjs +2 -0
  433. package/dist/components/accordion.cjs.map +1 -0
  434. package/dist/components/accordion.es.js +10 -0
  435. package/dist/components/accordion.es.js.map +1 -0
  436. package/dist/components/alert.cjs +2 -0
  437. package/dist/components/alert.cjs.map +1 -0
  438. package/dist/components/alert.es.js +10 -0
  439. package/dist/components/alert.es.js.map +1 -0
  440. package/dist/components/avatar.cjs +2 -0
  441. package/dist/components/avatar.cjs.map +1 -0
  442. package/dist/components/avatar.es.js +5 -0
  443. package/dist/components/avatar.es.js.map +1 -0
  444. package/dist/components/badge.cjs +2 -0
  445. package/dist/components/badge.cjs.map +1 -0
  446. package/dist/components/badge.es.js +5 -0
  447. package/dist/components/badge.es.js.map +1 -0
  448. package/dist/components/box.cjs +2 -0
  449. package/dist/components/box.cjs.map +1 -0
  450. package/dist/components/box.es.js +5 -0
  451. package/dist/components/box.es.js.map +1 -0
  452. package/dist/components/button.cjs +2 -0
  453. package/dist/components/button.cjs.map +1 -0
  454. package/dist/components/button.es.js +5 -0
  455. package/dist/components/button.es.js.map +1 -0
  456. package/dist/components/calendar.cjs +2 -0
  457. package/dist/components/calendar.cjs.map +1 -0
  458. package/dist/components/calendar.es.js +5 -0
  459. package/dist/components/calendar.es.js.map +1 -0
  460. package/dist/components/card.cjs +2 -0
  461. package/dist/components/card.cjs.map +1 -0
  462. package/dist/components/card.es.js +8 -0
  463. package/dist/components/card.es.js.map +1 -0
  464. package/dist/components/checkbox.cjs +2 -0
  465. package/dist/components/checkbox.cjs.map +1 -0
  466. package/dist/components/checkbox.es.js +5 -0
  467. package/dist/components/checkbox.es.js.map +1 -0
  468. package/dist/components/code.cjs +2 -0
  469. package/dist/components/code.cjs.map +1 -0
  470. package/dist/components/code.es.js +5 -0
  471. package/dist/components/code.es.js.map +1 -0
  472. package/dist/components/combobox.cjs +2 -0
  473. package/dist/components/combobox.cjs.map +1 -0
  474. package/dist/components/combobox.es.js +8 -0
  475. package/dist/components/combobox.es.js.map +1 -0
  476. package/dist/components/components.cjs +2 -0
  477. package/dist/components/components.cjs.map +1 -0
  478. package/dist/components/components.es.js +125 -0
  479. package/dist/components/components.es.js.map +1 -0
  480. package/dist/components/date-input.cjs +2 -0
  481. package/dist/components/date-input.cjs.map +1 -0
  482. package/dist/components/date-input.es.js +5 -0
  483. package/dist/components/date-input.es.js.map +1 -0
  484. package/dist/components/date-picker.cjs +2 -0
  485. package/dist/components/date-picker.cjs.map +1 -0
  486. package/dist/components/date-picker.es.js +5 -0
  487. package/dist/components/date-picker.es.js.map +1 -0
  488. package/dist/components/dialog.cjs +2 -0
  489. package/dist/components/dialog.cjs.map +1 -0
  490. package/dist/components/dialog.es.js +5 -0
  491. package/dist/components/dialog.es.js.map +1 -0
  492. package/dist/components/flex.cjs +2 -0
  493. package/dist/components/flex.cjs.map +1 -0
  494. package/dist/components/flex.es.js +5 -0
  495. package/dist/components/flex.es.js.map +1 -0
  496. package/dist/components/form-field.cjs +2 -0
  497. package/dist/components/form-field.cjs.map +1 -0
  498. package/dist/components/form-field.es.js +11 -0
  499. package/dist/components/form-field.es.js.map +1 -0
  500. package/dist/components/grid.cjs +2 -0
  501. package/dist/components/grid.cjs.map +1 -0
  502. package/dist/components/grid.es.js +5 -0
  503. package/dist/components/grid.es.js.map +1 -0
  504. package/dist/components/heading.cjs +2 -0
  505. package/dist/components/heading.cjs.map +1 -0
  506. package/dist/components/heading.es.js +5 -0
  507. package/dist/components/heading.es.js.map +1 -0
  508. package/dist/components/icon-button.cjs +2 -0
  509. package/dist/components/icon-button.cjs.map +1 -0
  510. package/dist/components/icon-button.es.js +5 -0
  511. package/dist/components/icon-button.es.js.map +1 -0
  512. package/dist/components/icon.cjs +2 -0
  513. package/dist/components/icon.cjs.map +1 -0
  514. package/dist/components/icon.es.js +5 -0
  515. package/dist/components/icon.es.js.map +1 -0
  516. package/dist/components/image.cjs +2 -0
  517. package/dist/components/image.cjs.map +1 -0
  518. package/dist/components/image.es.js +5 -0
  519. package/dist/components/image.es.js.map +1 -0
  520. package/dist/components/kbd.cjs +2 -0
  521. package/dist/components/kbd.cjs.map +1 -0
  522. package/dist/components/kbd.es.js +5 -0
  523. package/dist/components/kbd.es.js.map +1 -0
  524. package/dist/components/link.cjs +2 -0
  525. package/dist/components/link.cjs.map +1 -0
  526. package/dist/components/link.es.js +5 -0
  527. package/dist/components/link.es.js.map +1 -0
  528. package/dist/components/list.cjs +2 -0
  529. package/dist/components/list.cjs.map +1 -0
  530. package/dist/components/list.es.js +8 -0
  531. package/dist/components/list.es.js.map +1 -0
  532. package/dist/components/loading-spinner.cjs +2 -0
  533. package/dist/components/loading-spinner.cjs.map +1 -0
  534. package/dist/components/loading-spinner.es.js +5 -0
  535. package/dist/components/loading-spinner.es.js.map +1 -0
  536. package/dist/components/multiline-text-input.cjs +2 -0
  537. package/dist/components/multiline-text-input.cjs.map +1 -0
  538. package/dist/components/multiline-text-input.es.js +5 -0
  539. package/dist/components/multiline-text-input.es.js.map +1 -0
  540. package/dist/components/nimbus-provider.cjs +2 -0
  541. package/dist/components/nimbus-provider.cjs.map +1 -0
  542. package/dist/components/nimbus-provider.es.js +8 -0
  543. package/dist/components/nimbus-provider.es.js.map +1 -0
  544. package/dist/components/number-input.cjs +2 -0
  545. package/dist/components/number-input.cjs.map +1 -0
  546. package/dist/components/number-input.es.js +5 -0
  547. package/dist/components/number-input.es.js.map +1 -0
  548. package/dist/components/password-input.cjs +2 -0
  549. package/dist/components/password-input.cjs.map +1 -0
  550. package/dist/components/password-input.es.js +5 -0
  551. package/dist/components/password-input.es.js.map +1 -0
  552. package/dist/components/radio-input.cjs +2 -0
  553. package/dist/components/radio-input.cjs.map +1 -0
  554. package/dist/components/radio-input.es.js +7 -0
  555. package/dist/components/radio-input.es.js.map +1 -0
  556. package/dist/components/select.cjs +2 -0
  557. package/dist/components/select.cjs.map +1 -0
  558. package/dist/components/select.es.js +9 -0
  559. package/dist/components/select.es.js.map +1 -0
  560. package/dist/components/simple-grid.cjs +2 -0
  561. package/dist/components/simple-grid.cjs.map +1 -0
  562. package/dist/components/simple-grid.es.js +5 -0
  563. package/dist/components/simple-grid.es.js.map +1 -0
  564. package/dist/components/stack.cjs +2 -0
  565. package/dist/components/stack.cjs.map +1 -0
  566. package/dist/components/stack.es.js +5 -0
  567. package/dist/components/stack.es.js.map +1 -0
  568. package/dist/components/switch.cjs +2 -0
  569. package/dist/components/switch.cjs.map +1 -0
  570. package/dist/components/switch.es.js +5 -0
  571. package/dist/components/switch.es.js.map +1 -0
  572. package/dist/components/table.cjs +2 -0
  573. package/dist/components/table.cjs.map +1 -0
  574. package/dist/components/table.es.js +5 -0
  575. package/dist/components/table.es.js.map +1 -0
  576. package/dist/components/tag-group.cjs +2 -0
  577. package/dist/components/tag-group.cjs.map +1 -0
  578. package/dist/components/tag-group.es.js +5 -0
  579. package/dist/components/tag-group.es.js.map +1 -0
  580. package/dist/components/text-input.cjs +2 -0
  581. package/dist/components/text-input.cjs.map +1 -0
  582. package/dist/components/text-input.es.js +5 -0
  583. package/dist/components/text-input.es.js.map +1 -0
  584. package/dist/components/text.cjs +2 -0
  585. package/dist/components/text.cjs.map +1 -0
  586. package/dist/components/text.es.js +5 -0
  587. package/dist/components/text.es.js.map +1 -0
  588. package/dist/components/time-input.cjs +2 -0
  589. package/dist/components/time-input.cjs.map +1 -0
  590. package/dist/components/time-input.es.js +5 -0
  591. package/dist/components/time-input.es.js.map +1 -0
  592. package/dist/components/toggle-button-group.cjs +2 -0
  593. package/dist/components/toggle-button-group.cjs.map +1 -0
  594. package/dist/components/toggle-button-group.es.js +7 -0
  595. package/dist/components/toggle-button-group.es.js.map +1 -0
  596. package/dist/components/tooltip.cjs +2 -0
  597. package/dist/components/tooltip.cjs.map +1 -0
  598. package/dist/components/tooltip.es.js +9 -0
  599. package/dist/components/tooltip.es.js.map +1 -0
  600. package/dist/components/visually-hidden.cjs +2 -0
  601. package/dist/components/visually-hidden.cjs.map +1 -0
  602. package/dist/components/visually-hidden.es.js +5 -0
  603. package/dist/components/visually-hidden.es.js.map +1 -0
  604. package/dist/components.d.ts +2668 -0
  605. package/dist/date-input.d.ts +94 -0
  606. package/dist/date-picker.d.ts +164 -0
  607. package/dist/dialog.d.ts +33 -0
  608. package/dist/flex.d.ts +5 -0
  609. package/dist/form-field.d.ts +131 -0
  610. package/dist/grid.d.ts +28 -0
  611. package/dist/heading.d.ts +5 -0
  612. package/dist/icon-button.d.ts +53 -0
  613. package/dist/icon.d.ts +99 -0
  614. package/dist/image.d.ts +18 -0
  615. package/dist/index.cjs +1 -42
  616. package/dist/index.cjs.map +1 -1
  617. package/dist/index.d.ts +934 -748
  618. package/dist/index.es.js +308 -22041
  619. package/dist/index.es.js.map +1 -1
  620. package/dist/kbd.d.ts +10 -0
  621. package/dist/link.d.ts +92 -0
  622. package/dist/list.d.ts +21 -0
  623. package/dist/loading-spinner.d.ts +88 -0
  624. package/dist/multiline-text-input.d.ts +76 -0
  625. package/dist/nimbus-provider.d.ts +23 -0
  626. package/dist/number-input.d.ts +143 -0
  627. package/dist/password-input.d.ts +74 -0
  628. package/dist/radio-input.d.ts +70 -0
  629. package/dist/select.d.ts +143 -0
  630. package/dist/setup-jsdom-polyfills.cjs.map +1 -1
  631. package/dist/setup-jsdom-polyfills.es.js.map +1 -1
  632. package/dist/simple-grid.d.ts +28 -0
  633. package/dist/stack.d.ts +14 -0
  634. package/dist/switch.d.ts +75 -0
  635. package/dist/table.d.ts +5 -0
  636. package/dist/tag-group.d.ts +99 -0
  637. package/dist/text-input.d.ts +68 -0
  638. package/dist/text.d.ts +20 -0
  639. package/dist/time-input.d.ts +102 -0
  640. package/dist/toggle-button-group.d.ts +107 -0
  641. package/dist/tooltip.d.ts +134 -0
  642. package/dist/visually-hidden.d.ts +15 -0
  643. package/package.json +3 -2
@@ -0,0 +1,3071 @@
1
+ import $, { useRef as E, version as Cl, useEffect as Y, useMemo as T, cloneElement as ft, forwardRef as re, useContext as L, createContext as O, useCallback as J, useState as te, isValidElement as El } from "react";
2
+ import { $ as fe, b as ht, c as pt, d as vt, a as ie, e as pe, f as yt, g as Pl } from "./utils-DTmE9QvG.js";
3
+ import { b as kl, $ as Il } from "./Hidden-D6Lfpu1U.js";
4
+ import { flushSync as Fl, createPortal as Ml } from "react-dom";
5
+ import { b as _e } from "./useFocusable-IwGfkXQG.js";
6
+ import { $ as bt } from "./SSRProvider-D8lZ0o6A.js";
7
+ import { d as he, b as ee, $ as q, c as se, a as Ge, e as Tl } from "./mergeProps-DAjoWNOq.js";
8
+ import { $ as gt } from "./Text-DOcU1ycg.js";
9
+ import { a as ke } from "./Input-C6fX3A5E.js";
10
+ import { $ as Ll, a as Al, b as Rl } from "./Form-DdaqVtM4.js";
11
+ import { a as Bl } from "./TextArea-D-S_3q08.js";
12
+ import { $ as ne } from "./filterDOMProps-D6KHYVBX.js";
13
+ import { $ as Vl } from "./useTextField-DFfK-BZg.js";
14
+ import { a as Ol, b as Ve, i as Ie, e as Fe } from "./utils-wW2ZswvI.js";
15
+ import { $ as Nl } from "./useLabels-B1BLA0b7.js";
16
+ import { $ as ve } from "./useObjectRef-CaJ5pgjX.js";
17
+ import { i as $t, o as zl, d as Me, g as Ul, $ as je } from "./useFocus-mfjoACQ_.js";
18
+ import { $ as Hl } from "./useLocalizedStringFormatter-JGrQYmnh.js";
19
+ import { $ as mt } from "./useControlledState-u436Wbp1.js";
20
+ import { a as ql, $ as Ye } from "./getScrollParent-DE66eQI-.js";
21
+ import { $ as xt, a as St, e as Wl, b as _l } from "./usePress-dJvNd3G7.js";
22
+ import { $ as Kt } from "./useHover-CbdI4C89.js";
23
+ import { $ as Gl, b as jl, a as Je } from "./scrollIntoView-Dtwi5Vrc.js";
24
+ import { $ as Te } from "./focusSafely-D_uW2Kp-.js";
25
+ import { $ as Yl } from "./useFocusWithin-CLd9itwe.js";
26
+ import { $ as Jl } from "./useLabel-Dd6M1Y4b.js";
27
+ import { $ as ue } from "./useEvent-9hDa8zoA.js";
28
+ import { a as Xl, c as Zl } from "./FocusScope-B6O_mZ9T.js";
29
+ import { $ as Dt } from "./context-CgP0qpkX.js";
30
+ import { $ as wt } from "./useCollator-PO0ZNDFD.js";
31
+ import { $ as Ql } from "./useFocusRing-C8yOnkHj.js";
32
+ function Xe(n, e) {
33
+ const t = E(!0), l = E(null);
34
+ he(() => (t.current = !0, () => {
35
+ t.current = !1;
36
+ }), []), he(() => {
37
+ t.current ? t.current = !1 : (!l.current || e.some((i, o) => !Object.is(i, l[o]))) && n(), l.current = e;
38
+ }, e);
39
+ }
40
+ function ei(n, e) {
41
+ let { collection: t, onLoadMore: l, scrollOffset: i = 1 } = n, o = E(null), r = ee((s) => {
42
+ for (let a of s)
43
+ a.isIntersecting && l && l();
44
+ });
45
+ he(() => (e.current && (o.current = new IntersectionObserver(r, {
46
+ root: ql(e == null ? void 0 : e.current),
47
+ rootMargin: `0px ${100 * i}% ${100 * i}% ${100 * i}%`
48
+ }), o.current.observe(e.current)), () => {
49
+ o.current && o.current.disconnect();
50
+ }), [
51
+ t,
52
+ r,
53
+ e,
54
+ i
55
+ ]);
56
+ }
57
+ function ti(n) {
58
+ const e = Cl.split(".");
59
+ return parseInt(e[0], 10) >= 19 ? n : n ? "true" : void 0;
60
+ }
61
+ const Ct = "react-aria-clear-focus", Le = "react-aria-focus";
62
+ function Q(n) {
63
+ return $t() ? n.metaKey : n.ctrlKey;
64
+ }
65
+ const li = 500;
66
+ function ii(n) {
67
+ let { isDisabled: e, onLongPressStart: t, onLongPressEnd: l, onLongPress: i, threshold: o = li, accessibilityDescription: r } = n;
68
+ const s = E(void 0);
69
+ let { addGlobalListener: a, removeGlobalListener: c } = Ol(), { pressProps: p } = xt({
70
+ isDisabled: e,
71
+ onPressStart(d) {
72
+ if (d.continuePropagation(), (d.pointerType === "mouse" || d.pointerType === "touch") && (t && t({
73
+ ...d,
74
+ type: "longpressstart"
75
+ }), s.current = setTimeout(() => {
76
+ d.target.dispatchEvent(new PointerEvent("pointercancel", {
77
+ bubbles: !0
78
+ })), Ve(d.target).activeElement !== d.target && Ie(d.target), i && i({
79
+ ...d,
80
+ type: "longpress"
81
+ }), s.current = void 0;
82
+ }, o), d.pointerType === "touch")) {
83
+ let v = (b) => {
84
+ b.preventDefault();
85
+ };
86
+ a(d.target, "contextmenu", v, {
87
+ once: !0
88
+ }), a(window, "pointerup", () => {
89
+ setTimeout(() => {
90
+ c(d.target, "contextmenu", v);
91
+ }, 30);
92
+ }, {
93
+ once: !0
94
+ });
95
+ }
96
+ },
97
+ onPressEnd(d) {
98
+ s.current && clearTimeout(s.current), l && (d.pointerType === "mouse" || d.pointerType === "touch") && l({
99
+ ...d,
100
+ type: "longpressend"
101
+ });
102
+ }
103
+ }), f = Gl(i && !e ? r : void 0);
104
+ return {
105
+ longPressProps: q(p, f)
106
+ };
107
+ }
108
+ function Oe(n) {
109
+ let e = ni(Ve(n));
110
+ e !== n && (e && Ae(e, n), n && Et(n, e));
111
+ }
112
+ function Ae(n, e) {
113
+ n.dispatchEvent(new FocusEvent("blur", {
114
+ relatedTarget: e
115
+ })), n.dispatchEvent(new FocusEvent("focusout", {
116
+ bubbles: !0,
117
+ relatedTarget: e
118
+ }));
119
+ }
120
+ function Et(n, e) {
121
+ n.dispatchEvent(new FocusEvent("focus", {
122
+ relatedTarget: e
123
+ })), n.dispatchEvent(new FocusEvent("focusin", {
124
+ bubbles: !0,
125
+ relatedTarget: e
126
+ }));
127
+ }
128
+ function ni(n) {
129
+ let e = Fe(n), t = e == null ? void 0 : e.getAttribute("aria-activedescendant");
130
+ return t && n.getElementById(t) || e;
131
+ }
132
+ const Ne = /* @__PURE__ */ new WeakMap();
133
+ function oi(n) {
134
+ return typeof n == "string" ? n.replace(/\s*/g, "") : "" + n;
135
+ }
136
+ function ri(n, e) {
137
+ let t = Ne.get(n);
138
+ if (!t) throw new Error("Unknown list");
139
+ return `${t.id}-option-${oi(e)}`;
140
+ }
141
+ function Re(n) {
142
+ return zl() ? n.altKey : n.ctrlKey;
143
+ }
144
+ function ce(n, e) {
145
+ var t, l;
146
+ let i = `[data-key="${CSS.escape(String(e))}"]`, o = (t = n.current) === null || t === void 0 ? void 0 : t.dataset.collection;
147
+ return o && (i = `[data-collection="${CSS.escape(o)}"]${i}`), (l = n.current) === null || l === void 0 ? void 0 : l.querySelector(i);
148
+ }
149
+ const Pt = /* @__PURE__ */ new WeakMap();
150
+ function si(n) {
151
+ let e = se();
152
+ return Pt.set(n, e), e;
153
+ }
154
+ function ai(n) {
155
+ return Pt.get(n);
156
+ }
157
+ const ui = 1e3;
158
+ function di(n) {
159
+ let { keyboardDelegate: e, selectionManager: t, onTypeSelect: l } = n, i = E({
160
+ search: "",
161
+ timeout: void 0
162
+ }).current, o = (r) => {
163
+ let s = ci(r.key);
164
+ if (!(!s || r.ctrlKey || r.metaKey || !r.currentTarget.contains(r.target))) {
165
+ if (s === " " && i.search.trim().length > 0 && (r.preventDefault(), "continuePropagation" in r || r.stopPropagation()), i.search += s, e.getKeyForSearch != null) {
166
+ let a = e.getKeyForSearch(i.search, t.focusedKey);
167
+ a == null && (a = e.getKeyForSearch(i.search)), a != null && (t.setFocusedKey(a), l && l(a));
168
+ }
169
+ clearTimeout(i.timeout), i.timeout = setTimeout(() => {
170
+ i.search = "";
171
+ }, ui);
172
+ }
173
+ };
174
+ return {
175
+ typeSelectProps: {
176
+ // Using a capturing listener to catch the keydown event before
177
+ // other hooks in order to handle the Spacebar event.
178
+ onKeyDownCapture: e.getKeyForSearch ? o : void 0
179
+ }
180
+ };
181
+ }
182
+ function ci(n) {
183
+ return n.length === 1 || !/^[A-Z]/i.test(n) ? n : "";
184
+ }
185
+ function fi(n) {
186
+ let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: o = !1, disallowEmptySelection: r = !1, disallowSelectAll: s = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: c = e.selectionBehavior === "replace", disallowTypeAhead: p = !1, shouldUseVirtualFocus: f, allowsTabNavigation: d = !1, isVirtualized: v, scrollRef: b = l, linkBehavior: x = "action" } = n, { direction: g } = Dt(), m = St(), S = (h) => {
187
+ var u;
188
+ if (h.altKey && h.key === "Tab" && h.preventDefault(), !(!((u = l.current) === null || u === void 0) && u.contains(h.target))) return;
189
+ const P = (D, X) => {
190
+ if (D != null) {
191
+ if (e.isLink(D) && x === "selection" && c && !Re(h)) {
192
+ Fl(() => {
193
+ e.setFocusedKey(D, X);
194
+ });
195
+ let Z = ce(l, D), We = e.getItemProps(D);
196
+ Z && m.open(Z, h, We.href, We.routerOptions);
197
+ return;
198
+ }
199
+ if (e.setFocusedKey(D, X), e.isLink(D) && x === "override") return;
200
+ h.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(D) : c && !Re(h) && e.replaceSelection(D);
201
+ }
202
+ };
203
+ switch (h.key) {
204
+ case "ArrowDown":
205
+ if (t.getKeyBelow) {
206
+ var A, N, z;
207
+ let D = e.focusedKey != null ? (A = t.getKeyBelow) === null || A === void 0 ? void 0 : A.call(t, e.focusedKey) : (N = t.getFirstKey) === null || N === void 0 ? void 0 : N.call(t);
208
+ D == null && o && (D = (z = t.getFirstKey) === null || z === void 0 ? void 0 : z.call(t, e.focusedKey)), D != null && (h.preventDefault(), P(D));
209
+ }
210
+ break;
211
+ case "ArrowUp":
212
+ if (t.getKeyAbove) {
213
+ var W, _, ge;
214
+ let D = e.focusedKey != null ? (W = t.getKeyAbove) === null || W === void 0 ? void 0 : W.call(t, e.focusedKey) : (_ = t.getLastKey) === null || _ === void 0 ? void 0 : _.call(t);
215
+ D == null && o && (D = (ge = t.getLastKey) === null || ge === void 0 ? void 0 : ge.call(t, e.focusedKey)), D != null && (h.preventDefault(), P(D));
216
+ }
217
+ break;
218
+ case "ArrowLeft":
219
+ if (t.getKeyLeftOf) {
220
+ var $e, me, xe;
221
+ let D = e.focusedKey != null ? ($e = t.getKeyLeftOf) === null || $e === void 0 ? void 0 : $e.call(t, e.focusedKey) : null;
222
+ D == null && o && (D = g === "rtl" ? (me = t.getFirstKey) === null || me === void 0 ? void 0 : me.call(t, e.focusedKey) : (xe = t.getLastKey) === null || xe === void 0 ? void 0 : xe.call(t, e.focusedKey)), D != null && (h.preventDefault(), P(D, g === "rtl" ? "first" : "last"));
223
+ }
224
+ break;
225
+ case "ArrowRight":
226
+ if (t.getKeyRightOf) {
227
+ var Se, Ke, De;
228
+ let D = e.focusedKey != null ? (Se = t.getKeyRightOf) === null || Se === void 0 ? void 0 : Se.call(t, e.focusedKey) : null;
229
+ D == null && o && (D = g === "rtl" ? (Ke = t.getLastKey) === null || Ke === void 0 ? void 0 : Ke.call(t, e.focusedKey) : (De = t.getFirstKey) === null || De === void 0 ? void 0 : De.call(t, e.focusedKey)), D != null && (h.preventDefault(), P(D, g === "rtl" ? "last" : "first"));
230
+ }
231
+ break;
232
+ case "Home":
233
+ if (t.getFirstKey) {
234
+ if (e.focusedKey === null && h.shiftKey) return;
235
+ h.preventDefault();
236
+ let D = t.getFirstKey(e.focusedKey, Q(h));
237
+ e.setFocusedKey(D), D != null && (Q(h) && h.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(D) : c && e.replaceSelection(D));
238
+ }
239
+ break;
240
+ case "End":
241
+ if (t.getLastKey) {
242
+ if (e.focusedKey === null && h.shiftKey) return;
243
+ h.preventDefault();
244
+ let D = t.getLastKey(e.focusedKey, Q(h));
245
+ e.setFocusedKey(D), D != null && (Q(h) && h.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(D) : c && e.replaceSelection(D));
246
+ }
247
+ break;
248
+ case "PageDown":
249
+ if (t.getKeyPageBelow && e.focusedKey != null) {
250
+ let D = t.getKeyPageBelow(e.focusedKey);
251
+ D != null && (h.preventDefault(), P(D));
252
+ }
253
+ break;
254
+ case "PageUp":
255
+ if (t.getKeyPageAbove && e.focusedKey != null) {
256
+ let D = t.getKeyPageAbove(e.focusedKey);
257
+ D != null && (h.preventDefault(), P(D));
258
+ }
259
+ break;
260
+ case "a":
261
+ Q(h) && e.selectionMode === "multiple" && s !== !0 && (h.preventDefault(), e.selectAll());
262
+ break;
263
+ case "Escape":
264
+ a === "clearSelection" && !r && e.selectedKeys.size !== 0 && (h.stopPropagation(), h.preventDefault(), e.clearSelection());
265
+ break;
266
+ case "Tab":
267
+ if (!d) {
268
+ if (h.shiftKey) l.current.focus();
269
+ else {
270
+ let D = Xl(l.current, {
271
+ tabbable: !0
272
+ }), X, Z;
273
+ do
274
+ Z = D.lastChild(), Z && (X = Z);
275
+ while (Z);
276
+ X && !X.contains(document.activeElement) && Ie(X);
277
+ }
278
+ break;
279
+ }
280
+ }
281
+ }, w = E({
282
+ top: 0,
283
+ left: 0
284
+ });
285
+ ue(b, "scroll", v ? void 0 : () => {
286
+ var h, u, P, A;
287
+ w.current = {
288
+ top: (P = (h = b.current) === null || h === void 0 ? void 0 : h.scrollTop) !== null && P !== void 0 ? P : 0,
289
+ left: (A = (u = b.current) === null || u === void 0 ? void 0 : u.scrollLeft) !== null && A !== void 0 ? A : 0
290
+ };
291
+ });
292
+ let k = (h) => {
293
+ if (e.isFocused) {
294
+ h.currentTarget.contains(h.target) || e.setFocused(!1);
295
+ return;
296
+ }
297
+ if (h.currentTarget.contains(h.target)) {
298
+ if (e.setFocused(!0), e.focusedKey == null) {
299
+ var u, P;
300
+ let z = (_) => {
301
+ _ != null && (e.setFocusedKey(_), c && !e.isSelected(_) && e.replaceSelection(_));
302
+ }, W = h.relatedTarget;
303
+ var A, N;
304
+ W && h.currentTarget.compareDocumentPosition(W) & Node.DOCUMENT_POSITION_FOLLOWING ? z((A = e.lastSelectedKey) !== null && A !== void 0 ? A : (u = t.getLastKey) === null || u === void 0 ? void 0 : u.call(t)) : z((N = e.firstSelectedKey) !== null && N !== void 0 ? N : (P = t.getFirstKey) === null || P === void 0 ? void 0 : P.call(t));
305
+ } else !v && b.current && (b.current.scrollTop = w.current.top, b.current.scrollLeft = w.current.left);
306
+ if (e.focusedKey != null && b.current) {
307
+ let z = ce(l, e.focusedKey);
308
+ z instanceof HTMLElement && (!z.contains(document.activeElement) && !f && Ie(z), Me() === "keyboard" && Je(z, {
309
+ containingElement: l.current
310
+ }));
311
+ }
312
+ }
313
+ }, F = (h) => {
314
+ h.currentTarget.contains(h.relatedTarget) || e.setFocused(!1);
315
+ }, C = E(!1);
316
+ ue(l, Le, f ? (h) => {
317
+ let { detail: u } = h;
318
+ h.stopPropagation(), e.setFocused(!0), (u == null ? void 0 : u.focusStrategy) === "first" && (C.current = !0);
319
+ } : void 0);
320
+ let R = ee(() => {
321
+ var h, u;
322
+ let P = (u = (h = t.getFirstKey) === null || h === void 0 ? void 0 : h.call(t)) !== null && u !== void 0 ? u : null;
323
+ P == null ? (Oe(l.current), e.collection.size > 0 && (C.current = !1)) : (e.setFocusedKey(P), C.current = !1);
324
+ });
325
+ Xe(() => {
326
+ C.current && R();
327
+ }, [
328
+ e.collection,
329
+ R
330
+ ]);
331
+ let M = ee(() => {
332
+ e.collection.size > 0 && (C.current = !1);
333
+ });
334
+ Xe(() => {
335
+ M();
336
+ }, [
337
+ e.focusedKey,
338
+ M
339
+ ]), ue(l, Ct, f ? (h) => {
340
+ var u;
341
+ h.stopPropagation(), e.setFocused(!1), !((u = h.detail) === null || u === void 0) && u.clearFocusKey && e.setFocusedKey(null);
342
+ } : void 0);
343
+ const G = E(i), B = E(!1);
344
+ Y(() => {
345
+ if (G.current) {
346
+ var h, u;
347
+ let N = null;
348
+ var P;
349
+ i === "first" && (N = (P = (h = t.getFirstKey) === null || h === void 0 ? void 0 : h.call(t)) !== null && P !== void 0 ? P : null);
350
+ var A;
351
+ i === "last" && (N = (A = (u = t.getLastKey) === null || u === void 0 ? void 0 : u.call(t)) !== null && A !== void 0 ? A : null);
352
+ let z = e.selectedKeys;
353
+ if (z.size) {
354
+ for (let W of z) if (e.canSelectItem(W)) {
355
+ N = W;
356
+ break;
357
+ }
358
+ }
359
+ e.setFocused(!0), e.setFocusedKey(N), N == null && !f && l.current && Te(l.current), e.collection.size > 0 && (G.current = !1, B.current = !0);
360
+ }
361
+ });
362
+ let y = E(e.focusedKey), K = E(null);
363
+ Y(() => {
364
+ if (e.isFocused && e.focusedKey != null && (e.focusedKey !== y.current || B.current) && b.current && l.current) {
365
+ let h = Me(), u = ce(l, e.focusedKey);
366
+ if (!(u instanceof HTMLElement))
367
+ return;
368
+ (h === "keyboard" || B.current) && (K.current && cancelAnimationFrame(K.current), K.current = requestAnimationFrame(() => {
369
+ b.current && (jl(b.current, u), h !== "virtual" && Je(u, {
370
+ containingElement: l.current
371
+ }));
372
+ }));
373
+ }
374
+ !f && e.isFocused && e.focusedKey == null && y.current != null && l.current && Te(l.current), y.current = e.focusedKey, B.current = !1;
375
+ }), Y(() => () => {
376
+ K.current && cancelAnimationFrame(K.current);
377
+ }, []), ue(l, "react-aria-focus-scope-restore", (h) => {
378
+ h.preventDefault(), e.setFocused(!0);
379
+ });
380
+ let I = {
381
+ onKeyDown: S,
382
+ onFocus: k,
383
+ onBlur: F,
384
+ onMouseDown(h) {
385
+ b.current === h.target && h.preventDefault();
386
+ }
387
+ }, { typeSelectProps: V } = di({
388
+ keyboardDelegate: t,
389
+ selectionManager: e
390
+ });
391
+ p || (I = q(V, I));
392
+ let U;
393
+ f || (U = e.focusedKey == null ? 0 : -1);
394
+ let H = si(e.collection);
395
+ return {
396
+ collectionProps: q(I, {
397
+ tabIndex: U,
398
+ "data-collection": H
399
+ })
400
+ };
401
+ }
402
+ function hi(n) {
403
+ let { id: e, selectionManager: t, key: l, ref: i, shouldSelectOnPressUp: o, shouldUseVirtualFocus: r, focus: s, isDisabled: a, onAction: c, allowsDifferentPressOrigin: p, linkBehavior: f = "action" } = n, d = St();
404
+ e = se(e);
405
+ let v = (u) => {
406
+ if (u.pointerType === "keyboard" && Re(u)) t.toggleSelection(l);
407
+ else {
408
+ if (t.selectionMode === "none") return;
409
+ if (t.isLink(l)) {
410
+ if (f === "selection" && i.current) {
411
+ let P = t.getItemProps(l);
412
+ d.open(i.current, u, P.href, P.routerOptions), t.setSelectedKeys(t.selectedKeys);
413
+ return;
414
+ } else if (f === "override" || f === "none") return;
415
+ }
416
+ t.selectionMode === "single" ? t.isSelected(l) && !t.disallowEmptySelection ? t.toggleSelection(l) : t.replaceSelection(l) : u && u.shiftKey ? t.extendSelection(l) : t.selectionBehavior === "toggle" || u && (Q(u) || u.pointerType === "touch" || u.pointerType === "virtual") ? t.toggleSelection(l) : t.replaceSelection(l);
417
+ }
418
+ };
419
+ Y(() => {
420
+ l === t.focusedKey && t.isFocused && (r ? Oe(i.current) : s ? s() : document.activeElement !== i.current && i.current && Te(i.current));
421
+ }, [
422
+ i,
423
+ l,
424
+ t.focusedKey,
425
+ t.childFocusStrategy,
426
+ t.isFocused,
427
+ r
428
+ ]), a = a || t.isDisabled(l);
429
+ let b = {};
430
+ !r && !a ? b = {
431
+ tabIndex: l === t.focusedKey ? 0 : -1,
432
+ onFocus(u) {
433
+ u.target === i.current && t.setFocusedKey(l);
434
+ }
435
+ } : a && (b.onMouseDown = (u) => {
436
+ u.preventDefault();
437
+ });
438
+ let x = t.isLink(l) && f === "override", g = t.isLink(l) && f !== "selection" && f !== "none", m = !a && t.canSelectItem(l) && !x, S = (c || g) && !a, w = S && (t.selectionBehavior === "replace" ? !m : !m || t.isEmpty), k = S && m && t.selectionBehavior === "replace", F = w || k, C = E(null), R = F && m, M = E(!1), G = E(!1), B = (u) => {
439
+ if (c && c(), g && i.current) {
440
+ let P = t.getItemProps(l);
441
+ d.open(i.current, u, P.href, P.routerOptions);
442
+ }
443
+ }, y = {
444
+ ref: i
445
+ };
446
+ o ? (y.onPressStart = (u) => {
447
+ C.current = u.pointerType, M.current = R, u.pointerType === "keyboard" && (!F || Qe()) && v(u);
448
+ }, p ? (y.onPressUp = w ? void 0 : (u) => {
449
+ u.pointerType === "mouse" && m && v(u);
450
+ }, y.onPress = w ? B : (u) => {
451
+ u.pointerType !== "keyboard" && u.pointerType !== "mouse" && m && v(u);
452
+ }) : y.onPress = (u) => {
453
+ if (w || k && u.pointerType !== "mouse") {
454
+ if (u.pointerType === "keyboard" && !Ze()) return;
455
+ B(u);
456
+ } else u.pointerType !== "keyboard" && m && v(u);
457
+ }) : (y.onPressStart = (u) => {
458
+ C.current = u.pointerType, M.current = R, G.current = w, m && (u.pointerType === "mouse" && !w || u.pointerType === "keyboard" && (!S || Qe())) && v(u);
459
+ }, y.onPress = (u) => {
460
+ (u.pointerType === "touch" || u.pointerType === "pen" || u.pointerType === "virtual" || u.pointerType === "keyboard" && F && Ze() || u.pointerType === "mouse" && G.current) && (F ? B(u) : m && v(u));
461
+ }), b["data-collection"] = ai(t.collection), b["data-key"] = l, y.preventFocusOnPress = r, r && (y = q(y, {
462
+ onPressStart(u) {
463
+ u.pointerType !== "touch" && (t.setFocused(!0), t.setFocusedKey(l));
464
+ },
465
+ onPress(u) {
466
+ u.pointerType === "touch" && (t.setFocused(!0), t.setFocusedKey(l));
467
+ }
468
+ }));
469
+ let { pressProps: K, isPressed: I } = xt(y), V = k ? (u) => {
470
+ C.current === "mouse" && (u.stopPropagation(), u.preventDefault(), B(u));
471
+ } : void 0, { longPressProps: U } = ii({
472
+ isDisabled: !R,
473
+ onLongPress(u) {
474
+ u.pointerType === "touch" && (v(u), t.setSelectionBehavior("toggle"));
475
+ }
476
+ }), H = (u) => {
477
+ C.current === "touch" && M.current && u.preventDefault();
478
+ }, h = t.isLink(l) ? (u) => {
479
+ Wl.isOpening || u.preventDefault();
480
+ } : void 0;
481
+ return {
482
+ itemProps: q(
483
+ b,
484
+ m || w || r && !a ? K : {},
485
+ R ? U : {},
486
+ {
487
+ onDoubleClick: V,
488
+ onDragStartCapture: H,
489
+ onClick: h,
490
+ id: e
491
+ },
492
+ // Prevent DOM focus from moving on mouse down when using virtual focus
493
+ r ? {
494
+ onMouseDown: (u) => u.preventDefault()
495
+ } : void 0
496
+ ),
497
+ isPressed: I,
498
+ isSelected: t.isSelected(l),
499
+ isFocused: t.isFocused && t.focusedKey === l,
500
+ isDisabled: a,
501
+ allowsSelection: m,
502
+ hasAction: F
503
+ };
504
+ }
505
+ function Ze() {
506
+ let n = window.event;
507
+ return (n == null ? void 0 : n.key) === "Enter";
508
+ }
509
+ function Qe() {
510
+ let n = window.event;
511
+ return (n == null ? void 0 : n.key) === " " || (n == null ? void 0 : n.code) === "Space";
512
+ }
513
+ class et {
514
+ getItemRect(e) {
515
+ let t = this.ref.current;
516
+ if (!t) return null;
517
+ let l = e != null ? ce(this.ref, e) : null;
518
+ if (!l) return null;
519
+ let i = t.getBoundingClientRect(), o = l.getBoundingClientRect();
520
+ return {
521
+ x: o.left - i.left + t.scrollLeft,
522
+ y: o.top - i.top + t.scrollTop,
523
+ width: o.width,
524
+ height: o.height
525
+ };
526
+ }
527
+ getContentSize() {
528
+ let e = this.ref.current;
529
+ var t, l;
530
+ return {
531
+ width: (t = e == null ? void 0 : e.scrollWidth) !== null && t !== void 0 ? t : 0,
532
+ height: (l = e == null ? void 0 : e.scrollHeight) !== null && l !== void 0 ? l : 0
533
+ };
534
+ }
535
+ getVisibleRect() {
536
+ let e = this.ref.current;
537
+ var t, l, i, o;
538
+ return {
539
+ x: (t = e == null ? void 0 : e.scrollLeft) !== null && t !== void 0 ? t : 0,
540
+ y: (l = e == null ? void 0 : e.scrollTop) !== null && l !== void 0 ? l : 0,
541
+ width: (i = e == null ? void 0 : e.offsetWidth) !== null && i !== void 0 ? i : 0,
542
+ height: (o = e == null ? void 0 : e.offsetHeight) !== null && o !== void 0 ? o : 0
543
+ };
544
+ }
545
+ constructor(e) {
546
+ this.ref = e;
547
+ }
548
+ }
549
+ class kt {
550
+ isDisabled(e) {
551
+ var t;
552
+ return this.disabledBehavior === "all" && (((t = e.props) === null || t === void 0 ? void 0 : t.isDisabled) || this.disabledKeys.has(e.key));
553
+ }
554
+ findNextNonDisabled(e, t) {
555
+ let l = e;
556
+ for (; l != null; ) {
557
+ let i = this.collection.getItem(l);
558
+ if ((i == null ? void 0 : i.type) === "item" && !this.isDisabled(i)) return l;
559
+ l = t(l);
560
+ }
561
+ return null;
562
+ }
563
+ getNextKey(e) {
564
+ let t = e;
565
+ return t = this.collection.getKeyAfter(t), this.findNextNonDisabled(t, (l) => this.collection.getKeyAfter(l));
566
+ }
567
+ getPreviousKey(e) {
568
+ let t = e;
569
+ return t = this.collection.getKeyBefore(t), this.findNextNonDisabled(t, (l) => this.collection.getKeyBefore(l));
570
+ }
571
+ findKey(e, t, l) {
572
+ let i = e, o = this.layoutDelegate.getItemRect(i);
573
+ if (!o || i == null) return null;
574
+ let r = o;
575
+ do {
576
+ if (i = t(i), i == null) break;
577
+ o = this.layoutDelegate.getItemRect(i);
578
+ } while (o && l(r, o) && i != null);
579
+ return i;
580
+ }
581
+ isSameRow(e, t) {
582
+ return e.y === t.y || e.x !== t.x;
583
+ }
584
+ isSameColumn(e, t) {
585
+ return e.x === t.x || e.y !== t.y;
586
+ }
587
+ getKeyBelow(e) {
588
+ return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (t) => this.getNextKey(t), this.isSameRow) : this.getNextKey(e);
589
+ }
590
+ getKeyAbove(e) {
591
+ return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (t) => this.getPreviousKey(t), this.isSameRow) : this.getPreviousKey(e);
592
+ }
593
+ getNextColumn(e, t) {
594
+ return t ? this.getPreviousKey(e) : this.getNextKey(e);
595
+ }
596
+ getKeyRightOf(e) {
597
+ let t = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf";
598
+ 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;
599
+ }
600
+ getKeyLeftOf(e) {
601
+ let t = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf";
602
+ 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;
603
+ }
604
+ getFirstKey() {
605
+ let e = this.collection.getFirstKey();
606
+ return this.findNextNonDisabled(e, (t) => this.collection.getKeyAfter(t));
607
+ }
608
+ getLastKey() {
609
+ let e = this.collection.getLastKey();
610
+ return this.findNextNonDisabled(e, (t) => this.collection.getKeyBefore(t));
611
+ }
612
+ getKeyPageAbove(e) {
613
+ let t = this.ref.current, l = this.layoutDelegate.getItemRect(e);
614
+ if (!l) return null;
615
+ if (t && !Ye(t)) return this.getFirstKey();
616
+ let i = e;
617
+ if (this.orientation === "horizontal") {
618
+ let o = Math.max(0, l.x + l.width - this.layoutDelegate.getVisibleRect().width);
619
+ for (; l && l.x > o && i != null; )
620
+ i = this.getKeyAbove(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
621
+ } else {
622
+ let o = Math.max(0, l.y + l.height - this.layoutDelegate.getVisibleRect().height);
623
+ for (; l && l.y > o && i != null; )
624
+ i = this.getKeyAbove(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
625
+ }
626
+ return i ?? this.getFirstKey();
627
+ }
628
+ getKeyPageBelow(e) {
629
+ let t = this.ref.current, l = this.layoutDelegate.getItemRect(e);
630
+ if (!l) return null;
631
+ if (t && !Ye(t)) return this.getLastKey();
632
+ let i = e;
633
+ if (this.orientation === "horizontal") {
634
+ let o = Math.min(this.layoutDelegate.getContentSize().width, l.y - l.width + this.layoutDelegate.getVisibleRect().width);
635
+ for (; l && l.x < o && i != null; )
636
+ i = this.getKeyBelow(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
637
+ } else {
638
+ let o = Math.min(this.layoutDelegate.getContentSize().height, l.y - l.height + this.layoutDelegate.getVisibleRect().height);
639
+ for (; l && l.y < o && i != null; )
640
+ i = this.getKeyBelow(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
641
+ }
642
+ return i ?? this.getLastKey();
643
+ }
644
+ getKeyForSearch(e, t) {
645
+ if (!this.collator) return null;
646
+ let l = this.collection, i = t || this.getFirstKey();
647
+ for (; i != null; ) {
648
+ let o = l.getItem(i);
649
+ if (!o) return null;
650
+ let r = o.textValue.slice(0, e.length);
651
+ if (o.textValue && this.collator.compare(r, e) === 0) return i;
652
+ i = this.getNextKey(i);
653
+ }
654
+ return null;
655
+ }
656
+ constructor(...e) {
657
+ if (e.length === 1) {
658
+ let t = e[0];
659
+ 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 et(t.ref);
660
+ } else
661
+ 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 et(this.ref);
662
+ this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
663
+ }
664
+ }
665
+ function pi(n) {
666
+ let { selectionManager: e, collection: t, disabledKeys: l, ref: i, keyboardDelegate: o, layoutDelegate: r } = n, s = wt({
667
+ usage: "search",
668
+ sensitivity: "base"
669
+ }), a = e.disabledBehavior, c = T(() => o || new kt({
670
+ collection: t,
671
+ disabledKeys: l,
672
+ disabledBehavior: a,
673
+ ref: i,
674
+ collator: s,
675
+ layoutDelegate: r
676
+ }), [
677
+ o,
678
+ r,
679
+ t,
680
+ l,
681
+ i,
682
+ s,
683
+ a
684
+ ]), { collectionProps: p } = fi({
685
+ ...n,
686
+ ref: i,
687
+ selectionManager: e,
688
+ keyboardDelegate: c
689
+ });
690
+ return {
691
+ listProps: p
692
+ };
693
+ }
694
+ function vi(n, e, t) {
695
+ let l = ne(n, {
696
+ labelable: !0
697
+ }), i = n.selectionBehavior || "toggle", o = n.linkBehavior || (i === "replace" ? "action" : "override");
698
+ i === "toggle" && o === "action" && (o = "override");
699
+ let { listProps: r } = pi({
700
+ ...n,
701
+ ref: t,
702
+ selectionManager: e.selectionManager,
703
+ collection: e.collection,
704
+ disabledKeys: e.disabledKeys,
705
+ linkBehavior: o
706
+ }), { focusWithinProps: s } = Yl({
707
+ onFocusWithin: n.onFocus,
708
+ onBlurWithin: n.onBlur,
709
+ onFocusWithinChange: n.onFocusChange
710
+ }), a = se(n.id);
711
+ Ne.set(e, {
712
+ id: a,
713
+ shouldUseVirtualFocus: n.shouldUseVirtualFocus,
714
+ shouldSelectOnPressUp: n.shouldSelectOnPressUp,
715
+ shouldFocusOnHover: n.shouldFocusOnHover,
716
+ isVirtualized: n.isVirtualized,
717
+ onAction: n.onAction,
718
+ linkBehavior: o
719
+ });
720
+ let { labelProps: c, fieldProps: p } = Jl({
721
+ ...n,
722
+ id: a,
723
+ // listbox is not an HTML input element so it
724
+ // shouldn't be labeled by a <label> element.
725
+ labelElementType: "span"
726
+ });
727
+ return {
728
+ labelProps: c,
729
+ listBoxProps: q(l, s, e.selectionManager.selectionMode === "multiple" ? {
730
+ "aria-multiselectable": "true"
731
+ } : {}, {
732
+ role: "listbox",
733
+ ...q(p, r)
734
+ })
735
+ };
736
+ }
737
+ class yi {
738
+ build(e, t) {
739
+ return this.context = t, tt(() => this.iterateCollection(e));
740
+ }
741
+ *iterateCollection(e) {
742
+ let { children: t, items: l } = e;
743
+ if ($.isValidElement(t) && t.type === $.Fragment) yield* this.iterateCollection({
744
+ children: t.props.children,
745
+ items: l
746
+ });
747
+ else if (typeof t == "function") {
748
+ if (!l) throw new Error("props.children was a function but props.items is missing");
749
+ let i = 0;
750
+ for (let o of l)
751
+ yield* this.getFullNode({
752
+ value: o,
753
+ index: i
754
+ }, {
755
+ renderer: t
756
+ }), i++;
757
+ } else {
758
+ let i = [];
759
+ $.Children.forEach(t, (r) => {
760
+ r && i.push(r);
761
+ });
762
+ let o = 0;
763
+ for (let r of i) {
764
+ let s = this.getFullNode({
765
+ element: r,
766
+ index: o
767
+ }, {});
768
+ for (let a of s)
769
+ o++, yield a;
770
+ }
771
+ }
772
+ }
773
+ getKey(e, t, l, i) {
774
+ if (e.key != null) return e.key;
775
+ if (t.type === "cell" && t.key != null) return `${i}${t.key}`;
776
+ let o = t.value;
777
+ if (o != null) {
778
+ var r;
779
+ let s = (r = o.key) !== null && r !== void 0 ? r : o.id;
780
+ if (s == null) throw new Error("No key found for item");
781
+ return s;
782
+ }
783
+ return i ? `${i}.${t.index}` : `$.${t.index}`;
784
+ }
785
+ getChildState(e, t) {
786
+ return {
787
+ renderer: t.renderer || e.renderer
788
+ };
789
+ }
790
+ *getFullNode(e, t, l, i) {
791
+ if ($.isValidElement(e.element) && e.element.type === $.Fragment) {
792
+ let g = [];
793
+ $.Children.forEach(e.element.props.children, (S) => {
794
+ g.push(S);
795
+ });
796
+ var o;
797
+ let m = (o = e.index) !== null && o !== void 0 ? o : 0;
798
+ for (const S of g) yield* this.getFullNode({
799
+ element: S,
800
+ index: m++
801
+ }, t, l, i);
802
+ return;
803
+ }
804
+ let r = e.element;
805
+ if (!r && e.value && t && t.renderer) {
806
+ let g = this.cache.get(e.value);
807
+ if (g && (!g.shouldInvalidate || !g.shouldInvalidate(this.context))) {
808
+ g.index = e.index, g.parentKey = i ? i.key : null, yield g;
809
+ return;
810
+ }
811
+ r = t.renderer(e.value);
812
+ }
813
+ if ($.isValidElement(r)) {
814
+ let g = r.type;
815
+ if (typeof g != "function" && typeof g.getCollectionNode != "function") {
816
+ let k = r.type;
817
+ throw new Error(`Unknown element <${k}> in collection.`);
818
+ }
819
+ let m = g.getCollectionNode(r.props, this.context);
820
+ var s;
821
+ let S = (s = e.index) !== null && s !== void 0 ? s : 0, w = m.next();
822
+ for (; !w.done && w.value; ) {
823
+ let k = w.value;
824
+ e.index = S;
825
+ var a;
826
+ let F = (a = k.key) !== null && a !== void 0 ? a : null;
827
+ F == null && (F = k.element ? null : this.getKey(r, e, t, l));
828
+ let R = [
829
+ ...this.getFullNode({
830
+ ...k,
831
+ key: F,
832
+ index: S,
833
+ wrapper: bi(e.wrapper, k.wrapper)
834
+ }, this.getChildState(t, k), l ? `${l}${r.key}` : r.key, i)
835
+ ];
836
+ for (let M of R) {
837
+ var c, p;
838
+ M.value = (p = (c = k.value) !== null && c !== void 0 ? c : e.value) !== null && p !== void 0 ? p : null, M.value && this.cache.set(M.value, M);
839
+ var f;
840
+ if (e.type && M.type !== e.type) throw new Error(`Unsupported type <${we(M.type)}> in <${we((f = i == null ? void 0 : i.type) !== null && f !== void 0 ? f : "unknown parent type")}>. Only <${we(e.type)}> is supported.`);
841
+ S++, yield M;
842
+ }
843
+ w = m.next(R);
844
+ }
845
+ return;
846
+ }
847
+ if (e.key == null || e.type == null) return;
848
+ let d = this;
849
+ var v, b;
850
+ let x = {
851
+ type: e.type,
852
+ props: e.props,
853
+ key: e.key,
854
+ parentKey: i ? i.key : null,
855
+ value: (v = e.value) !== null && v !== void 0 ? v : null,
856
+ level: i ? i.level + 1 : 0,
857
+ index: e.index,
858
+ rendered: e.rendered,
859
+ textValue: (b = e.textValue) !== null && b !== void 0 ? b : "",
860
+ "aria-label": e["aria-label"],
861
+ wrapper: e.wrapper,
862
+ shouldInvalidate: e.shouldInvalidate,
863
+ hasChildNodes: e.hasChildNodes || !1,
864
+ childNodes: tt(function* () {
865
+ if (!e.hasChildNodes || !e.childNodes) return;
866
+ let g = 0;
867
+ for (let m of e.childNodes()) {
868
+ m.key != null && (m.key = `${x.key}${m.key}`);
869
+ let S = d.getFullNode({
870
+ ...m,
871
+ index: g
872
+ }, d.getChildState(t, m), x.key, x);
873
+ for (let w of S)
874
+ g++, yield w;
875
+ }
876
+ })
877
+ };
878
+ yield x;
879
+ }
880
+ constructor() {
881
+ this.cache = /* @__PURE__ */ new WeakMap();
882
+ }
883
+ }
884
+ function tt(n) {
885
+ let e = [], t = null;
886
+ return {
887
+ *[Symbol.iterator]() {
888
+ for (let l of e) yield l;
889
+ t || (t = n());
890
+ for (let l of t)
891
+ e.push(l), yield l;
892
+ }
893
+ };
894
+ }
895
+ function bi(n, e) {
896
+ if (n && e) return (t) => n(e(t));
897
+ if (n) return n;
898
+ if (e) return e;
899
+ }
900
+ function we(n) {
901
+ return n[0].toUpperCase() + n.slice(1);
902
+ }
903
+ function gi(n, e, t) {
904
+ let l = T(() => new yi(), []), { children: i, items: o, collection: r } = n;
905
+ return T(() => {
906
+ if (r) return r;
907
+ let a = l.build({
908
+ children: i,
909
+ items: o
910
+ }, t);
911
+ return e(a);
912
+ }, [
913
+ l,
914
+ i,
915
+ o,
916
+ r,
917
+ t,
918
+ e
919
+ ]);
920
+ }
921
+ function It(n, e) {
922
+ return typeof e.getChildren == "function" ? e.getChildren(n.key) : n.childNodes;
923
+ }
924
+ function $i(n) {
925
+ return mi(n);
926
+ }
927
+ function mi(n, e) {
928
+ for (let t of n)
929
+ return t;
930
+ }
931
+ function An(n) {
932
+ let e;
933
+ for (let t of n) e = t;
934
+ return e;
935
+ }
936
+ function Ce(n, e, t) {
937
+ if (e.parentKey === t.parentKey) return e.index - t.index;
938
+ let l = [
939
+ ...lt(n, e),
940
+ e
941
+ ], i = [
942
+ ...lt(n, t),
943
+ t
944
+ ], o = l.slice(0, i.length).findIndex((r, s) => r !== i[s]);
945
+ return o !== -1 ? (e = l[o], t = i[o], e.index - t.index) : l.findIndex((r) => r === t) >= 0 ? 1 : (i.findIndex((r) => r === e) >= 0, -1);
946
+ }
947
+ function lt(n, e) {
948
+ let t = [], l = e;
949
+ for (; (l == null ? void 0 : l.parentKey) != null; )
950
+ l = n.getItem(l.parentKey), l && t.unshift(l);
951
+ return t;
952
+ }
953
+ const it = /* @__PURE__ */ new WeakMap();
954
+ function xi(n) {
955
+ let e = it.get(n);
956
+ if (e != null) return e;
957
+ let t = 0, l = (i) => {
958
+ for (let o of i)
959
+ o.type === "section" ? l(It(o, n)) : o.type === "item" && t++;
960
+ };
961
+ return l(n), it.set(n, t), t;
962
+ }
963
+ function Si(n, e, t) {
964
+ var l, i;
965
+ let { key: o } = n, r = Ne.get(e);
966
+ var s;
967
+ let a = (s = n.isDisabled) !== null && s !== void 0 ? s : e.selectionManager.isDisabled(o);
968
+ var c;
969
+ let p = (c = n.isSelected) !== null && c !== void 0 ? c : e.selectionManager.isSelected(o);
970
+ var f;
971
+ let d = (f = n.shouldSelectOnPressUp) !== null && f !== void 0 ? f : r == null ? void 0 : r.shouldSelectOnPressUp;
972
+ var v;
973
+ let b = (v = n.shouldFocusOnHover) !== null && v !== void 0 ? v : r == null ? void 0 : r.shouldFocusOnHover;
974
+ var x;
975
+ let g = (x = n.shouldUseVirtualFocus) !== null && x !== void 0 ? x : r == null ? void 0 : r.shouldUseVirtualFocus;
976
+ var m;
977
+ let S = (m = n.isVirtualized) !== null && m !== void 0 ? m : r == null ? void 0 : r.isVirtualized, w = Ge(), k = Ge(), F = {
978
+ role: "option",
979
+ "aria-disabled": a || void 0,
980
+ "aria-selected": e.selectionManager.selectionMode !== "none" ? p : void 0
981
+ };
982
+ $t() && Ul() || (F["aria-label"] = n["aria-label"], F["aria-labelledby"] = w, F["aria-describedby"] = k);
983
+ let C = e.collection.getItem(o);
984
+ if (S) {
985
+ let h = Number(C == null ? void 0 : C.index);
986
+ F["aria-posinset"] = Number.isNaN(h) ? void 0 : h + 1, F["aria-setsize"] = xi(e.collection);
987
+ }
988
+ let R = r != null && r.onAction ? () => {
989
+ var h;
990
+ return r == null || (h = r.onAction) === null || h === void 0 ? void 0 : h.call(r, o);
991
+ } : void 0, M = ri(e, o), { itemProps: G, isPressed: B, isFocused: y, hasAction: K, allowsSelection: I } = hi({
992
+ selectionManager: e.selectionManager,
993
+ key: o,
994
+ ref: t,
995
+ shouldSelectOnPressUp: d,
996
+ allowsDifferentPressOrigin: d && b,
997
+ isVirtualized: S,
998
+ shouldUseVirtualFocus: g,
999
+ isDisabled: a,
1000
+ onAction: R || !(C == null || (l = C.props) === null || l === void 0) && l.onAction ? Tl(C == null || (i = C.props) === null || i === void 0 ? void 0 : i.onAction, R) : void 0,
1001
+ linkBehavior: r == null ? void 0 : r.linkBehavior,
1002
+ id: M
1003
+ }), { hoverProps: V } = Kt({
1004
+ isDisabled: a || !b,
1005
+ onHoverStart() {
1006
+ je() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(o));
1007
+ }
1008
+ }), U = ne(C == null ? void 0 : C.props);
1009
+ delete U.id;
1010
+ let H = _l(C == null ? void 0 : C.props);
1011
+ return {
1012
+ optionProps: {
1013
+ ...F,
1014
+ ...q(U, G, V, H),
1015
+ id: M
1016
+ },
1017
+ labelProps: {
1018
+ id: w
1019
+ },
1020
+ descriptionProps: {
1021
+ id: k
1022
+ },
1023
+ isFocused: y,
1024
+ isFocusVisible: y && e.selectionManager.isFocused && je(),
1025
+ isSelected: p,
1026
+ isDisabled: a,
1027
+ isPressed: B,
1028
+ allowsSelection: I,
1029
+ hasAction: K
1030
+ };
1031
+ }
1032
+ function Ki(n) {
1033
+ let { heading: e, "aria-label": t } = n, l = se();
1034
+ return {
1035
+ itemProps: {
1036
+ role: "presentation"
1037
+ },
1038
+ headingProps: e ? {
1039
+ // Techincally, listbox cannot contain headings according to ARIA.
1040
+ // We hide the heading from assistive technology, using role="presentation",
1041
+ // and only use it as a visual label for the nested group.
1042
+ id: l,
1043
+ role: "presentation"
1044
+ } : {},
1045
+ groupProps: {
1046
+ role: "group",
1047
+ "aria-label": t,
1048
+ "aria-labelledby": e ? l : void 0
1049
+ }
1050
+ };
1051
+ }
1052
+ var de = { exports: {} }, Ee = {};
1053
+ /**
1054
+ * @license React
1055
+ * use-sync-external-store-shim.production.js
1056
+ *
1057
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1058
+ *
1059
+ * This source code is licensed under the MIT license found in the
1060
+ * LICENSE file in the root directory of this source tree.
1061
+ */
1062
+ var nt;
1063
+ function Di() {
1064
+ if (nt) return Ee;
1065
+ nt = 1;
1066
+ var n = $;
1067
+ function e(f, d) {
1068
+ return f === d && (f !== 0 || 1 / f === 1 / d) || f !== f && d !== d;
1069
+ }
1070
+ var t = typeof Object.is == "function" ? Object.is : e, l = n.useState, i = n.useEffect, o = n.useLayoutEffect, r = n.useDebugValue;
1071
+ function s(f, d) {
1072
+ var v = d(), b = l({ inst: { value: v, getSnapshot: d } }), x = b[0].inst, g = b[1];
1073
+ return o(
1074
+ function() {
1075
+ x.value = v, x.getSnapshot = d, a(x) && g({ inst: x });
1076
+ },
1077
+ [f, v, d]
1078
+ ), i(
1079
+ function() {
1080
+ return a(x) && g({ inst: x }), f(function() {
1081
+ a(x) && g({ inst: x });
1082
+ });
1083
+ },
1084
+ [f]
1085
+ ), r(v), v;
1086
+ }
1087
+ function a(f) {
1088
+ var d = f.getSnapshot;
1089
+ f = f.value;
1090
+ try {
1091
+ var v = d();
1092
+ return !t(f, v);
1093
+ } catch {
1094
+ return !0;
1095
+ }
1096
+ }
1097
+ function c(f, d) {
1098
+ return d();
1099
+ }
1100
+ var p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : s;
1101
+ return Ee.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : p, Ee;
1102
+ }
1103
+ var Pe = {};
1104
+ /**
1105
+ * @license React
1106
+ * use-sync-external-store-shim.development.js
1107
+ *
1108
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1109
+ *
1110
+ * This source code is licensed under the MIT license found in the
1111
+ * LICENSE file in the root directory of this source tree.
1112
+ */
1113
+ var ot;
1114
+ function wi() {
1115
+ return ot || (ot = 1, process.env.NODE_ENV !== "production" && function() {
1116
+ function n(v, b) {
1117
+ return v === b && (v !== 0 || 1 / v === 1 / b) || v !== v && b !== b;
1118
+ }
1119
+ function e(v, b) {
1120
+ p || i.startTransition === void 0 || (p = !0, console.error(
1121
+ "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."
1122
+ ));
1123
+ var x = b();
1124
+ if (!f) {
1125
+ var g = b();
1126
+ o(x, g) || (console.error(
1127
+ "The result of getSnapshot should be cached to avoid an infinite loop"
1128
+ ), f = !0);
1129
+ }
1130
+ g = r({
1131
+ inst: { value: x, getSnapshot: b }
1132
+ });
1133
+ var m = g[0].inst, S = g[1];
1134
+ return a(
1135
+ function() {
1136
+ m.value = x, m.getSnapshot = b, t(m) && S({ inst: m });
1137
+ },
1138
+ [v, x, b]
1139
+ ), s(
1140
+ function() {
1141
+ return t(m) && S({ inst: m }), v(function() {
1142
+ t(m) && S({ inst: m });
1143
+ });
1144
+ },
1145
+ [v]
1146
+ ), c(x), x;
1147
+ }
1148
+ function t(v) {
1149
+ var b = v.getSnapshot;
1150
+ v = v.value;
1151
+ try {
1152
+ var x = b();
1153
+ return !o(v, x);
1154
+ } catch {
1155
+ return !0;
1156
+ }
1157
+ }
1158
+ function l(v, b) {
1159
+ return b();
1160
+ }
1161
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1162
+ var i = $, o = typeof Object.is == "function" ? Object.is : n, r = i.useState, s = i.useEffect, a = i.useLayoutEffect, c = i.useDebugValue, p = !1, f = !1, d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? l : e;
1163
+ Pe.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1164
+ }()), Pe;
1165
+ }
1166
+ var rt;
1167
+ function Ci() {
1168
+ return rt || (rt = 1, process.env.NODE_ENV === "production" ? de.exports = Di() : de.exports = wi()), de.exports;
1169
+ }
1170
+ var Ei = Ci();
1171
+ class ze {
1172
+ get childNodes() {
1173
+ throw new Error("childNodes is not supported");
1174
+ }
1175
+ clone() {
1176
+ let e = new ze(this.type, this.key);
1177
+ 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;
1178
+ }
1179
+ constructor(e, t) {
1180
+ 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;
1181
+ }
1182
+ }
1183
+ class Ue {
1184
+ get size() {
1185
+ return this.keyMap.size;
1186
+ }
1187
+ getKeys() {
1188
+ return this.keyMap.keys();
1189
+ }
1190
+ *[Symbol.iterator]() {
1191
+ let e = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0;
1192
+ for (; e; )
1193
+ yield e, e = e.nextKey != null ? this.keyMap.get(e.nextKey) : void 0;
1194
+ }
1195
+ getChildren(e) {
1196
+ let t = this.keyMap;
1197
+ return {
1198
+ *[Symbol.iterator]() {
1199
+ let l = t.get(e), i = (l == null ? void 0 : l.firstChildKey) != null ? t.get(l.firstChildKey) : null;
1200
+ for (; i; )
1201
+ yield i, i = i.nextKey != null ? t.get(i.nextKey) : void 0;
1202
+ }
1203
+ };
1204
+ }
1205
+ getKeyBefore(e) {
1206
+ let t = this.keyMap.get(e);
1207
+ if (!t) return null;
1208
+ if (t.prevKey != null) {
1209
+ for (t = this.keyMap.get(t.prevKey); t && t.type !== "item" && t.lastChildKey != null; ) t = this.keyMap.get(t.lastChildKey);
1210
+ var l;
1211
+ return (l = t == null ? void 0 : t.key) !== null && l !== void 0 ? l : null;
1212
+ }
1213
+ return t.parentKey;
1214
+ }
1215
+ getKeyAfter(e) {
1216
+ let t = this.keyMap.get(e);
1217
+ if (!t) return null;
1218
+ if (t.type !== "item" && t.firstChildKey != null) return t.firstChildKey;
1219
+ for (; t; ) {
1220
+ if (t.nextKey != null) return t.nextKey;
1221
+ if (t.parentKey != null) t = this.keyMap.get(t.parentKey);
1222
+ else return null;
1223
+ }
1224
+ return null;
1225
+ }
1226
+ getFirstKey() {
1227
+ return this.firstKey;
1228
+ }
1229
+ getLastKey() {
1230
+ let e = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
1231
+ for (; (e == null ? void 0 : e.lastChildKey) != null; ) e = this.keyMap.get(e.lastChildKey);
1232
+ var t;
1233
+ return (t = e == null ? void 0 : e.key) !== null && t !== void 0 ? t : null;
1234
+ }
1235
+ getItem(e) {
1236
+ var t;
1237
+ return (t = this.keyMap.get(e)) !== null && t !== void 0 ? t : null;
1238
+ }
1239
+ at() {
1240
+ throw new Error("Not implemented");
1241
+ }
1242
+ clone() {
1243
+ let e = this.constructor, t = new e();
1244
+ return t.keyMap = new Map(this.keyMap), t.firstKey = this.firstKey, t.lastKey = this.lastKey, t;
1245
+ }
1246
+ addNode(e) {
1247
+ if (this.frozen) throw new Error("Cannot add a node to a frozen collection");
1248
+ this.keyMap.set(e.key, e);
1249
+ }
1250
+ removeNode(e) {
1251
+ if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
1252
+ this.keyMap.delete(e);
1253
+ }
1254
+ commit(e, t, l = !1) {
1255
+ if (this.frozen) throw new Error("Cannot commit a frozen collection");
1256
+ this.firstKey = e, this.lastKey = t, this.frozen = !l;
1257
+ }
1258
+ // TODO: this is pretty specific to menu, will need to check if it is generic enough
1259
+ // Will need to handle varying levels I assume but will revisit after I get searchable menu working for base menu
1260
+ // TODO: an alternative is to simply walk the collection and add all item nodes that match the filter and any sections/separators we encounter
1261
+ // to an array, then walk that new array and fix all the next/Prev keys while adding them to the new collection
1262
+ UNSTABLE_filter(e) {
1263
+ let t = new Ue(), l = null;
1264
+ for (let i of this)
1265
+ if (i.type === "section" && i.hasChildNodes) {
1266
+ let o = i.clone(), r = null;
1267
+ for (let s of this.getChildren(i.key)) if (st(s, e, this, t)) {
1268
+ let a = s.clone();
1269
+ r == null && (o.firstChildKey = a.key), t.firstKey == null && (t.firstKey = o.key), r && r.parentKey === a.parentKey ? (r.nextKey = a.key, a.prevKey = r.key) : a.prevKey = null, a.nextKey = null, t.addNode(a), r = a;
1270
+ }
1271
+ r && (r.type !== "header" ? (o.lastChildKey = r.key, l == null ? o.prevKey = null : (l.type === "section" || l.type === "separator") && (l.nextKey = o.key, o.prevKey = l.key), o.nextKey = null, l = o, t.addNode(o)) : (t.firstKey === o.key && (t.firstKey = null), t.removeNode(r.key)));
1272
+ } else if (i.type === "separator") {
1273
+ let o = i.clone();
1274
+ o.nextKey = null, (l == null ? void 0 : l.type) === "section" && (l.nextKey = o.key, o.prevKey = l.key, l = o, t.addNode(o));
1275
+ } else {
1276
+ let o = i.clone();
1277
+ st(o, e, this, t) && (t.firstKey == null && (t.firstKey = o.key), l != null && l.type !== "section" && l.type !== "separator" && l.parentKey === o.parentKey ? (l.nextKey = o.key, o.prevKey = l.key) : o.prevKey = null, o.nextKey = null, t.addNode(o), l = o);
1278
+ }
1279
+ if ((l == null ? void 0 : l.type) === "separator" && l.nextKey === null) {
1280
+ let i;
1281
+ l.prevKey != null && (i = t.getItem(l.prevKey), i.nextKey = null), t.removeNode(l.key), l = i;
1282
+ }
1283
+ return t.lastKey = (l == null ? void 0 : l.key) || null, t;
1284
+ }
1285
+ constructor() {
1286
+ this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1;
1287
+ }
1288
+ }
1289
+ function st(n, e, t, l) {
1290
+ if (n.type === "subdialogtrigger" || n.type === "submenutrigger") {
1291
+ let i = [
1292
+ ...t.getChildren(n.key)
1293
+ ][0];
1294
+ if (i && e(i.textValue)) {
1295
+ let o = i.clone();
1296
+ return l.addNode(o), !0;
1297
+ } else return !1;
1298
+ } else return n.type === "header" ? !0 : e(n.textValue);
1299
+ }
1300
+ class Ft {
1301
+ *[Symbol.iterator]() {
1302
+ let e = this.firstChild;
1303
+ for (; e; )
1304
+ yield e, e = e.nextSibling;
1305
+ }
1306
+ get firstChild() {
1307
+ return this._firstChild;
1308
+ }
1309
+ set firstChild(e) {
1310
+ this._firstChild = e, this.ownerDocument.markDirty(this);
1311
+ }
1312
+ get lastChild() {
1313
+ return this._lastChild;
1314
+ }
1315
+ set lastChild(e) {
1316
+ this._lastChild = e, this.ownerDocument.markDirty(this);
1317
+ }
1318
+ get previousSibling() {
1319
+ return this._previousSibling;
1320
+ }
1321
+ set previousSibling(e) {
1322
+ this._previousSibling = e, this.ownerDocument.markDirty(this);
1323
+ }
1324
+ get nextSibling() {
1325
+ return this._nextSibling;
1326
+ }
1327
+ set nextSibling(e) {
1328
+ this._nextSibling = e, this.ownerDocument.markDirty(this);
1329
+ }
1330
+ get parentNode() {
1331
+ return this._parentNode;
1332
+ }
1333
+ set parentNode(e) {
1334
+ this._parentNode = e, this.ownerDocument.markDirty(this);
1335
+ }
1336
+ get isConnected() {
1337
+ var e;
1338
+ return ((e = this.parentNode) === null || e === void 0 ? void 0 : e.isConnected) || !1;
1339
+ }
1340
+ invalidateChildIndices(e) {
1341
+ (this._minInvalidChildIndex == null || !this._minInvalidChildIndex.isConnected || e.index < this._minInvalidChildIndex.index) && (this._minInvalidChildIndex = e, this.ownerDocument.markDirty(this));
1342
+ }
1343
+ updateChildIndices() {
1344
+ let e = this._minInvalidChildIndex;
1345
+ for (; e; )
1346
+ e.index = e.previousSibling ? e.previousSibling.index + 1 : 0, e = e.nextSibling;
1347
+ this._minInvalidChildIndex = null;
1348
+ }
1349
+ appendChild(e) {
1350
+ 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();
1351
+ }
1352
+ insertBefore(e, t) {
1353
+ if (t == null) return this.appendChild(e);
1354
+ 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();
1355
+ }
1356
+ removeChild(e) {
1357
+ 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());
1358
+ }
1359
+ addEventListener() {
1360
+ }
1361
+ removeEventListener() {
1362
+ }
1363
+ get previousVisibleSibling() {
1364
+ let e = this.previousSibling;
1365
+ for (; e && e.isHidden; ) e = e.previousSibling;
1366
+ return e;
1367
+ }
1368
+ get nextVisibleSibling() {
1369
+ let e = this.nextSibling;
1370
+ for (; e && e.isHidden; ) e = e.nextSibling;
1371
+ return e;
1372
+ }
1373
+ get firstVisibleChild() {
1374
+ let e = this.firstChild;
1375
+ for (; e && e.isHidden; ) e = e.nextSibling;
1376
+ return e;
1377
+ }
1378
+ get lastVisibleChild() {
1379
+ let e = this.lastChild;
1380
+ for (; e && e.isHidden; ) e = e.previousSibling;
1381
+ return e;
1382
+ }
1383
+ constructor(e) {
1384
+ this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
1385
+ }
1386
+ }
1387
+ class le extends Ft {
1388
+ get index() {
1389
+ return this._index;
1390
+ }
1391
+ set index(e) {
1392
+ this._index = e, this.ownerDocument.markDirty(this);
1393
+ }
1394
+ get level() {
1395
+ return this.parentNode instanceof le ? this.parentNode.level + (this.node.type === "item" ? 1 : 0) : 0;
1396
+ }
1397
+ /**
1398
+ * Lazily gets a mutable instance of a Node. If the node has already
1399
+ * been cloned during this update cycle, it just returns the existing one.
1400
+ */
1401
+ getMutableNode() {
1402
+ return this.isMutated || (this.node = this.node.clone(), this.isMutated = !0), this.ownerDocument.markDirty(this), this.node;
1403
+ }
1404
+ updateNode() {
1405
+ var e, t, l;
1406
+ let i = this.nextVisibleSibling, o = this.getMutableNode();
1407
+ o.index = this.index, o.level = this.level, o.parentKey = this.parentNode instanceof le ? this.parentNode.node.key : null;
1408
+ var r;
1409
+ o.prevKey = (r = (e = this.previousVisibleSibling) === null || e === void 0 ? void 0 : e.node.key) !== null && r !== void 0 ? r : null;
1410
+ var s;
1411
+ o.nextKey = (s = i == null ? void 0 : i.node.key) !== null && s !== void 0 ? s : null, o.hasChildNodes = !!this.firstChild;
1412
+ var a;
1413
+ o.firstChildKey = (a = (t = this.firstVisibleChild) === null || t === void 0 ? void 0 : t.node.key) !== null && a !== void 0 ? a : null;
1414
+ var c;
1415
+ if (o.lastChildKey = (c = (l = this.lastVisibleChild) === null || l === void 0 ? void 0 : l.node.key) !== null && c !== void 0 ? c : null, (o.colSpan != null || o.colIndex != null) && i) {
1416
+ var p, f;
1417
+ let d = ((p = o.colIndex) !== null && p !== void 0 ? p : o.index) + ((f = o.colSpan) !== null && f !== void 0 ? f : 1);
1418
+ if (d !== i.node.colIndex) {
1419
+ let v = i.getMutableNode();
1420
+ v.colIndex = d;
1421
+ }
1422
+ }
1423
+ }
1424
+ setProps(e, t, l, i) {
1425
+ let o = this.getMutableNode(), { value: r, textValue: s, id: a, ...c } = e;
1426
+ if (c.ref = t, o.props = c, o.rendered = l, o.render = i, o.value = r, o.textValue = s || (typeof c.children == "string" ? c.children : "") || e["aria-label"] || "", a != null && a !== o.key) {
1427
+ if (this.hasSetProps) throw new Error("Cannot change the id of an item");
1428
+ o.key = a;
1429
+ }
1430
+ c.colSpan != null && (o.colSpan = c.colSpan), this.hasSetProps = !0, this.isConnected && this.ownerDocument.queueUpdate();
1431
+ }
1432
+ get style() {
1433
+ let e = this;
1434
+ return {
1435
+ get display() {
1436
+ return e.isHidden ? "none" : "";
1437
+ },
1438
+ set display(t) {
1439
+ let l = t === "none";
1440
+ if (e.isHidden !== l) {
1441
+ var i, o;
1442
+ (((i = e.parentNode) === null || i === void 0 ? void 0 : i.firstVisibleChild) === e || ((o = e.parentNode) === null || o === void 0 ? void 0 : o.lastVisibleChild) === e) && e.ownerDocument.markDirty(e.parentNode);
1443
+ let r = e.previousVisibleSibling, s = e.nextVisibleSibling;
1444
+ r && e.ownerDocument.markDirty(r), s && e.ownerDocument.markDirty(s), e.isHidden = l, e.ownerDocument.markDirty(e);
1445
+ }
1446
+ }
1447
+ };
1448
+ }
1449
+ hasAttribute() {
1450
+ }
1451
+ setAttribute() {
1452
+ }
1453
+ setAttributeNS() {
1454
+ }
1455
+ removeAttribute() {
1456
+ }
1457
+ constructor(e, t) {
1458
+ super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.hasSetProps = !1, this.isHidden = !1, this.node = new ze(e, `react-aria-${++t.nodeId}`);
1459
+ }
1460
+ }
1461
+ class Pi extends Ft {
1462
+ get isConnected() {
1463
+ return this.isMounted;
1464
+ }
1465
+ createElement(e) {
1466
+ return new le(e, this);
1467
+ }
1468
+ getMutableCollection() {
1469
+ return this.nextCollection || (this.nextCollection = this.collection.clone()), this.nextCollection;
1470
+ }
1471
+ markDirty(e) {
1472
+ this.dirtyNodes.add(e);
1473
+ }
1474
+ addNode(e) {
1475
+ if (e.isHidden) return;
1476
+ let t = this.getMutableCollection();
1477
+ if (!t.getItem(e.node.key)) for (let l of e) this.addNode(l);
1478
+ t.addNode(e.node);
1479
+ }
1480
+ removeNode(e) {
1481
+ for (let l of e) this.removeNode(l);
1482
+ this.getMutableCollection().removeNode(e.node.key);
1483
+ }
1484
+ /** Finalizes the collection update, updating all nodes and freezing the collection. */
1485
+ getCollection() {
1486
+ return this.inSubscription ? this.collection.clone() : (this.queuedRender = !1, this.updateCollection(), this.collection);
1487
+ }
1488
+ updateCollection() {
1489
+ for (let o of this.dirtyNodes) o instanceof le && (!o.isConnected || o.isHidden) ? this.removeNode(o) : o.updateChildIndices();
1490
+ for (let o of this.dirtyNodes) o instanceof le && (o.isConnected && !o.isHidden && (o.updateNode(), this.addNode(o)), o.isMutated = !1);
1491
+ if (this.dirtyNodes.clear(), this.nextCollection) {
1492
+ var e, t, l, i;
1493
+ 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);
1494
+ }
1495
+ }
1496
+ queueUpdate() {
1497
+ if (!(this.dirtyNodes.size === 0 || this.queuedRender)) {
1498
+ this.queuedRender = !0, this.inSubscription = !0;
1499
+ for (let e of this.subscriptions) e();
1500
+ this.inSubscription = !1;
1501
+ }
1502
+ }
1503
+ subscribe(e) {
1504
+ return this.subscriptions.add(e), () => this.subscriptions.delete(e);
1505
+ }
1506
+ resetAfterSSR() {
1507
+ this.isSSR && (this.isSSR = !1, this.firstChild = null, this.lastChild = null, this.nodeId = 0);
1508
+ }
1509
+ constructor(e) {
1510
+ 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;
1511
+ }
1512
+ }
1513
+ function Mt(n) {
1514
+ let { children: e, items: t, idScope: l, addIdAndValue: i, dependencies: o = [] } = n, r = T(() => /* @__PURE__ */ new WeakMap(), o);
1515
+ return T(() => {
1516
+ if (t && typeof e == "function") {
1517
+ let c = [];
1518
+ for (let p of t) {
1519
+ let f = r.get(p);
1520
+ if (!f) {
1521
+ f = e(p);
1522
+ var s, a;
1523
+ let d = (a = (s = f.props.id) !== null && s !== void 0 ? s : p.key) !== null && a !== void 0 ? a : p.id;
1524
+ if (d == null) throw new Error("Could not determine key for item");
1525
+ l && (d = l + ":" + d), f = ft(f, i ? {
1526
+ key: d,
1527
+ id: d,
1528
+ value: p
1529
+ } : {
1530
+ key: d
1531
+ }), r.set(p, f);
1532
+ }
1533
+ c.push(f);
1534
+ }
1535
+ return c;
1536
+ } else if (typeof e != "function") return e;
1537
+ }, [
1538
+ e,
1539
+ t,
1540
+ r,
1541
+ l,
1542
+ i
1543
+ ]);
1544
+ }
1545
+ const Tt = /* @__PURE__ */ O(!1), oe = /* @__PURE__ */ O(null);
1546
+ function ki(n) {
1547
+ if (L(oe))
1548
+ return n.content;
1549
+ let { collection: t, document: l } = Ti(n.createCollection);
1550
+ return /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement(kl, null, /* @__PURE__ */ $.createElement(oe.Provider, {
1551
+ value: l
1552
+ }, n.content)), /* @__PURE__ */ $.createElement(Ii, {
1553
+ render: n.children,
1554
+ collection: t
1555
+ }));
1556
+ }
1557
+ function Ii({ collection: n, render: e }) {
1558
+ return e(n);
1559
+ }
1560
+ function Fi(n, e, t) {
1561
+ let l = bt(), i = E(l);
1562
+ i.current = l;
1563
+ let o = J(() => i.current ? t() : e(), [
1564
+ e,
1565
+ t
1566
+ ]);
1567
+ return Ei.useSyncExternalStore(n, o);
1568
+ }
1569
+ const Mi = typeof $.useSyncExternalStore == "function" ? $.useSyncExternalStore : Fi;
1570
+ function Ti(n) {
1571
+ let [e] = te(() => new Pi((n == null ? void 0 : n()) || new Ue())), t = J((r) => e.subscribe(r), [
1572
+ e
1573
+ ]), l = J(() => {
1574
+ let r = e.getCollection();
1575
+ return e.isSSR && e.resetAfterSSR(), r;
1576
+ }, [
1577
+ e
1578
+ ]), i = J(() => (e.isSSR = !0, e.getCollection()), [
1579
+ e
1580
+ ]), o = Mi(t, l, i);
1581
+ return he(() => (e.isMounted = !0, () => {
1582
+ e.isMounted = !1;
1583
+ }), [
1584
+ e
1585
+ ]), {
1586
+ collection: o,
1587
+ document: e
1588
+ };
1589
+ }
1590
+ const Be = /* @__PURE__ */ O(null);
1591
+ function Lt(n, e, t, l, i, o) {
1592
+ let r = J((a) => {
1593
+ a == null || a.setProps(e, t, l, o);
1594
+ }, [
1595
+ e,
1596
+ t,
1597
+ l,
1598
+ o
1599
+ ]), s = L(Be);
1600
+ if (s) {
1601
+ let a = s.ownerDocument.nodesByProps.get(e);
1602
+ return a || (a = s.ownerDocument.createElement(n), a.setProps(e, t, l, o), s.appendChild(a), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(e, a)), i ? /* @__PURE__ */ $.createElement(Be.Provider, {
1603
+ value: a
1604
+ }, i) : null;
1605
+ }
1606
+ return /* @__PURE__ */ $.createElement(n, {
1607
+ ref: r
1608
+ }, i);
1609
+ }
1610
+ function He(n, e) {
1611
+ let t = ({ node: i }) => e(i.props, i.props.ref, i), l = re((i, o) => {
1612
+ let r = L(_e);
1613
+ if (!L(Tt)) {
1614
+ if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
1615
+ return e(i, o);
1616
+ }
1617
+ return Lt(n, i, o, "children" in i ? i.children : null, null, (a) => (
1618
+ // Forward FocusableContext to real DOM tree so tooltips work.
1619
+ /* @__PURE__ */ $.createElement(_e.Provider, {
1620
+ value: r
1621
+ }, /* @__PURE__ */ $.createElement(t, {
1622
+ node: a
1623
+ }))
1624
+ ));
1625
+ });
1626
+ return l.displayName = e.name, l;
1627
+ }
1628
+ function Li(n, e, t = At) {
1629
+ let l = ({ node: o }) => e(o.props, o.props.ref, o), i = re((o, r) => {
1630
+ let s = t(o);
1631
+ var a;
1632
+ return (a = Lt(n, o, r, null, s, (c) => /* @__PURE__ */ $.createElement(l, {
1633
+ node: c
1634
+ }))) !== null && a !== void 0 ? a : /* @__PURE__ */ $.createElement($.Fragment, null);
1635
+ });
1636
+ return i.displayName = e.name, i;
1637
+ }
1638
+ function At(n) {
1639
+ return Mt({
1640
+ ...n,
1641
+ addIdAndValue: !0
1642
+ });
1643
+ }
1644
+ const at = /* @__PURE__ */ O(null);
1645
+ function Ai(n) {
1646
+ let e = L(at), t = ((e == null ? void 0 : e.dependencies) || []).concat(n.dependencies), l = n.idScope || (e == null ? void 0 : e.idScope), i = At({
1647
+ ...n,
1648
+ idScope: l,
1649
+ dependencies: t
1650
+ });
1651
+ return L(oe) && (i = /* @__PURE__ */ $.createElement(Ri, null, i)), e = T(() => ({
1652
+ dependencies: t,
1653
+ idScope: l
1654
+ }), [
1655
+ l,
1656
+ ...t
1657
+ ]), /* @__PURE__ */ $.createElement(at.Provider, {
1658
+ value: e
1659
+ }, i);
1660
+ }
1661
+ function Ri({ children: n }) {
1662
+ let e = L(oe), t = T(() => /* @__PURE__ */ $.createElement(oe.Provider, {
1663
+ value: null
1664
+ }, /* @__PURE__ */ $.createElement(Tt.Provider, {
1665
+ value: !0
1666
+ }, n)), [
1667
+ n
1668
+ ]);
1669
+ return bt() ? /* @__PURE__ */ $.createElement(Be.Provider, {
1670
+ value: e
1671
+ }, t) : /* @__PURE__ */ Ml(t, e);
1672
+ }
1673
+ class ut {
1674
+ *[Symbol.iterator]() {
1675
+ yield* this.iterable;
1676
+ }
1677
+ get size() {
1678
+ return this.keyMap.size;
1679
+ }
1680
+ getKeys() {
1681
+ return this.keyMap.keys();
1682
+ }
1683
+ getKeyBefore(e) {
1684
+ let t = this.keyMap.get(e);
1685
+ var l;
1686
+ return t && (l = t.prevKey) !== null && l !== void 0 ? l : null;
1687
+ }
1688
+ getKeyAfter(e) {
1689
+ let t = this.keyMap.get(e);
1690
+ var l;
1691
+ return t && (l = t.nextKey) !== null && l !== void 0 ? l : null;
1692
+ }
1693
+ getFirstKey() {
1694
+ return this.firstKey;
1695
+ }
1696
+ getLastKey() {
1697
+ return this.lastKey;
1698
+ }
1699
+ getItem(e) {
1700
+ var t;
1701
+ return (t = this.keyMap.get(e)) !== null && t !== void 0 ? t : null;
1702
+ }
1703
+ at(e) {
1704
+ const t = [
1705
+ ...this.getKeys()
1706
+ ];
1707
+ return this.getItem(t[e]);
1708
+ }
1709
+ getChildren(e) {
1710
+ let t = this.keyMap.get(e);
1711
+ return (t == null ? void 0 : t.childNodes) || [];
1712
+ }
1713
+ constructor(e) {
1714
+ this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
1715
+ let t = (r) => {
1716
+ if (this.keyMap.set(r.key, r), r.childNodes && r.type === "section") for (let s of r.childNodes) t(s);
1717
+ };
1718
+ for (let r of e) t(r);
1719
+ let l = null, i = 0;
1720
+ for (let [r, s] of this.keyMap)
1721
+ l ? (l.nextKey = r, s.prevKey = l.key) : (this.firstKey = r, s.prevKey = void 0), s.type === "item" && (s.index = i++), l = s, l.nextKey = void 0;
1722
+ var o;
1723
+ this.lastKey = (o = l == null ? void 0 : l.key) !== null && o !== void 0 ? o : null;
1724
+ }
1725
+ }
1726
+ class j extends Set {
1727
+ constructor(e, t, l) {
1728
+ super(e), e instanceof j ? (this.anchorKey = t ?? e.anchorKey, this.currentKey = l ?? e.currentKey) : (this.anchorKey = t ?? null, this.currentKey = l ?? null);
1729
+ }
1730
+ }
1731
+ function Bi(n, e) {
1732
+ if (n.size !== e.size) return !1;
1733
+ for (let t of n)
1734
+ if (!e.has(t)) return !1;
1735
+ return !0;
1736
+ }
1737
+ function Vi(n) {
1738
+ let { selectionMode: e = "none", disallowEmptySelection: t = !1, allowDuplicateSelectionEvents: l, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = n, r = E(!1), [, s] = te(!1), a = E(null), c = E(null), [, p] = te(null), f = T(() => dt(n.selectedKeys), [
1739
+ n.selectedKeys
1740
+ ]), d = T(() => dt(n.defaultSelectedKeys, new j()), [
1741
+ n.defaultSelectedKeys
1742
+ ]), [v, b] = mt(f, d, n.onSelectionChange), x = T(() => n.disabledKeys ? new Set(n.disabledKeys) : /* @__PURE__ */ new Set(), [
1743
+ n.disabledKeys
1744
+ ]), [g, m] = te(i);
1745
+ i === "replace" && g === "toggle" && typeof v == "object" && v.size === 0 && m("replace");
1746
+ let S = E(i);
1747
+ return Y(() => {
1748
+ i !== S.current && (m(i), S.current = i);
1749
+ }, [
1750
+ i
1751
+ ]), {
1752
+ selectionMode: e,
1753
+ disallowEmptySelection: t,
1754
+ selectionBehavior: g,
1755
+ setSelectionBehavior: m,
1756
+ get isFocused() {
1757
+ return r.current;
1758
+ },
1759
+ setFocused(w) {
1760
+ r.current = w, s(w);
1761
+ },
1762
+ get focusedKey() {
1763
+ return a.current;
1764
+ },
1765
+ get childFocusStrategy() {
1766
+ return c.current;
1767
+ },
1768
+ setFocusedKey(w, k = "first") {
1769
+ a.current = w, c.current = k, p(w);
1770
+ },
1771
+ selectedKeys: v,
1772
+ setSelectedKeys(w) {
1773
+ (l || !Bi(w, v)) && b(w);
1774
+ },
1775
+ disabledKeys: x,
1776
+ disabledBehavior: o
1777
+ };
1778
+ }
1779
+ function dt(n, e) {
1780
+ return n ? n === "all" ? "all" : new j(n) : e;
1781
+ }
1782
+ class qe {
1783
+ /**
1784
+ * The type of selection that is allowed in the collection.
1785
+ */
1786
+ get selectionMode() {
1787
+ return this.state.selectionMode;
1788
+ }
1789
+ /**
1790
+ * Whether the collection allows empty selection.
1791
+ */
1792
+ get disallowEmptySelection() {
1793
+ return this.state.disallowEmptySelection;
1794
+ }
1795
+ /**
1796
+ * The selection behavior for the collection.
1797
+ */
1798
+ get selectionBehavior() {
1799
+ return this.state.selectionBehavior;
1800
+ }
1801
+ /**
1802
+ * Sets the selection behavior for the collection.
1803
+ */
1804
+ setSelectionBehavior(e) {
1805
+ this.state.setSelectionBehavior(e);
1806
+ }
1807
+ /**
1808
+ * Whether the collection is currently focused.
1809
+ */
1810
+ get isFocused() {
1811
+ return this.state.isFocused;
1812
+ }
1813
+ /**
1814
+ * Sets whether the collection is focused.
1815
+ */
1816
+ setFocused(e) {
1817
+ this.state.setFocused(e);
1818
+ }
1819
+ /**
1820
+ * The current focused key in the collection.
1821
+ */
1822
+ get focusedKey() {
1823
+ return this.state.focusedKey;
1824
+ }
1825
+ /** Whether the first or last child of the focused key should receive focus. */
1826
+ get childFocusStrategy() {
1827
+ return this.state.childFocusStrategy;
1828
+ }
1829
+ /**
1830
+ * Sets the focused key.
1831
+ */
1832
+ setFocusedKey(e, t) {
1833
+ (e == null || this.collection.getItem(e)) && this.state.setFocusedKey(e, t);
1834
+ }
1835
+ /**
1836
+ * The currently selected keys in the collection.
1837
+ */
1838
+ get selectedKeys() {
1839
+ return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
1840
+ }
1841
+ /**
1842
+ * The raw selection value for the collection.
1843
+ * Either 'all' for select all, or a set of keys.
1844
+ */
1845
+ get rawSelection() {
1846
+ return this.state.selectedKeys;
1847
+ }
1848
+ /**
1849
+ * Returns whether a key is selected.
1850
+ */
1851
+ isSelected(e) {
1852
+ if (this.state.selectionMode === "none") return !1;
1853
+ let t = this.getKey(e);
1854
+ return t == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(t) : this.state.selectedKeys.has(t);
1855
+ }
1856
+ /**
1857
+ * Whether the selection is empty.
1858
+ */
1859
+ get isEmpty() {
1860
+ return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
1861
+ }
1862
+ /**
1863
+ * Whether all items in the collection are selected.
1864
+ */
1865
+ get isSelectAll() {
1866
+ if (this.isEmpty) return !1;
1867
+ if (this.state.selectedKeys === "all") return !0;
1868
+ if (this._isSelectAll != null) return this._isSelectAll;
1869
+ let e = this.getSelectAllKeys(), t = this.state.selectedKeys;
1870
+ return this._isSelectAll = e.every((l) => t.has(l)), this._isSelectAll;
1871
+ }
1872
+ get firstSelectedKey() {
1873
+ let e = null;
1874
+ for (let l of this.state.selectedKeys) {
1875
+ let i = this.collection.getItem(l);
1876
+ (!e || i && Ce(this.collection, i, e) < 0) && (e = i);
1877
+ }
1878
+ var t;
1879
+ return (t = e == null ? void 0 : e.key) !== null && t !== void 0 ? t : null;
1880
+ }
1881
+ get lastSelectedKey() {
1882
+ let e = null;
1883
+ for (let l of this.state.selectedKeys) {
1884
+ let i = this.collection.getItem(l);
1885
+ (!e || i && Ce(this.collection, i, e) > 0) && (e = i);
1886
+ }
1887
+ var t;
1888
+ return (t = e == null ? void 0 : e.key) !== null && t !== void 0 ? t : null;
1889
+ }
1890
+ get disabledKeys() {
1891
+ return this.state.disabledKeys;
1892
+ }
1893
+ get disabledBehavior() {
1894
+ return this.state.disabledBehavior;
1895
+ }
1896
+ /**
1897
+ * Extends the selection to the given key.
1898
+ */
1899
+ extendSelection(e) {
1900
+ if (this.selectionMode === "none") return;
1901
+ if (this.selectionMode === "single") {
1902
+ this.replaceSelection(e);
1903
+ return;
1904
+ }
1905
+ let t = this.getKey(e);
1906
+ if (t == null) return;
1907
+ let l;
1908
+ if (this.state.selectedKeys === "all") l = new j([
1909
+ t
1910
+ ], t, t);
1911
+ else {
1912
+ let r = this.state.selectedKeys;
1913
+ var i;
1914
+ let s = (i = r.anchorKey) !== null && i !== void 0 ? i : t;
1915
+ l = new j(r, s, t);
1916
+ var o;
1917
+ for (let a of this.getKeyRange(s, (o = r.currentKey) !== null && o !== void 0 ? o : t)) l.delete(a);
1918
+ for (let a of this.getKeyRange(t, s)) this.canSelectItem(a) && l.add(a);
1919
+ }
1920
+ this.state.setSelectedKeys(l);
1921
+ }
1922
+ getKeyRange(e, t) {
1923
+ let l = this.collection.getItem(e), i = this.collection.getItem(t);
1924
+ return l && i ? Ce(this.collection, l, i) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
1925
+ }
1926
+ getKeyRangeInternal(e, t) {
1927
+ var l;
1928
+ if (!((l = this.layoutDelegate) === null || l === void 0) && l.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
1929
+ let i = [], o = e;
1930
+ for (; o != null; ) {
1931
+ let r = this.collection.getItem(o);
1932
+ if (r && (r.type === "item" || r.type === "cell" && this.allowsCellSelection) && i.push(o), o === t) return i;
1933
+ o = this.collection.getKeyAfter(o);
1934
+ }
1935
+ return [];
1936
+ }
1937
+ getKey(e) {
1938
+ let t = this.collection.getItem(e);
1939
+ if (!t || t.type === "cell" && this.allowsCellSelection) return e;
1940
+ for (; t && t.type !== "item" && t.parentKey != null; ) t = this.collection.getItem(t.parentKey);
1941
+ return !t || t.type !== "item" ? null : t.key;
1942
+ }
1943
+ /**
1944
+ * Toggles whether the given key is selected.
1945
+ */
1946
+ toggleSelection(e) {
1947
+ if (this.selectionMode === "none") return;
1948
+ if (this.selectionMode === "single" && !this.isSelected(e)) {
1949
+ this.replaceSelection(e);
1950
+ return;
1951
+ }
1952
+ let t = this.getKey(e);
1953
+ if (t == null) return;
1954
+ let l = new j(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
1955
+ 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);
1956
+ }
1957
+ /**
1958
+ * Replaces the selection with only the given key.
1959
+ */
1960
+ replaceSelection(e) {
1961
+ if (this.selectionMode === "none") return;
1962
+ let t = this.getKey(e);
1963
+ if (t == null) return;
1964
+ let l = this.canSelectItem(t) ? new j([
1965
+ t
1966
+ ], t, t) : new j();
1967
+ this.state.setSelectedKeys(l);
1968
+ }
1969
+ /**
1970
+ * Replaces the selection with the given keys.
1971
+ */
1972
+ setSelectedKeys(e) {
1973
+ if (this.selectionMode === "none") return;
1974
+ let t = new j();
1975
+ for (let l of e) {
1976
+ let i = this.getKey(l);
1977
+ if (i != null && (t.add(i), this.selectionMode === "single"))
1978
+ break;
1979
+ }
1980
+ this.state.setSelectedKeys(t);
1981
+ }
1982
+ getSelectAllKeys() {
1983
+ let e = [], t = (l) => {
1984
+ for (; l != null; ) {
1985
+ if (this.canSelectItem(l)) {
1986
+ var i;
1987
+ let r = this.collection.getItem(l);
1988
+ (r == null ? void 0 : r.type) === "item" && e.push(l);
1989
+ var o;
1990
+ r != null && r.hasChildNodes && (this.allowsCellSelection || r.type !== "item") && t((o = (i = $i(It(r, this.collection))) === null || i === void 0 ? void 0 : i.key) !== null && o !== void 0 ? o : null);
1991
+ }
1992
+ l = this.collection.getKeyAfter(l);
1993
+ }
1994
+ };
1995
+ return t(this.collection.getFirstKey()), e;
1996
+ }
1997
+ /**
1998
+ * Selects all items in the collection.
1999
+ */
2000
+ selectAll() {
2001
+ !this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
2002
+ }
2003
+ /**
2004
+ * Removes all keys from the selection.
2005
+ */
2006
+ clearSelection() {
2007
+ !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new j());
2008
+ }
2009
+ /**
2010
+ * Toggles between select all and an empty selection.
2011
+ */
2012
+ toggleSelectAll() {
2013
+ this.isSelectAll ? this.clearSelection() : this.selectAll();
2014
+ }
2015
+ select(e, t) {
2016
+ 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));
2017
+ }
2018
+ /**
2019
+ * Returns whether the current selection is equal to the given selection.
2020
+ */
2021
+ isSelectionEqual(e) {
2022
+ if (e === this.state.selectedKeys) return !0;
2023
+ let t = this.selectedKeys;
2024
+ if (e.size !== t.size) return !1;
2025
+ for (let l of e)
2026
+ if (!t.has(l)) return !1;
2027
+ for (let l of t)
2028
+ if (!e.has(l)) return !1;
2029
+ return !0;
2030
+ }
2031
+ canSelectItem(e) {
2032
+ var t;
2033
+ if (this.state.selectionMode === "none" || this.state.disabledKeys.has(e)) return !1;
2034
+ let l = this.collection.getItem(e);
2035
+ return !(!l || !(l == null || (t = l.props) === null || t === void 0) && t.isDisabled || l.type === "cell" && !this.allowsCellSelection);
2036
+ }
2037
+ isDisabled(e) {
2038
+ var t, l;
2039
+ 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));
2040
+ }
2041
+ isLink(e) {
2042
+ var t, l;
2043
+ return !!(!((l = this.collection.getItem(e)) === null || l === void 0 || (t = l.props) === null || t === void 0) && t.href);
2044
+ }
2045
+ getItemProps(e) {
2046
+ var t;
2047
+ return (t = this.collection.getItem(e)) === null || t === void 0 ? void 0 : t.props;
2048
+ }
2049
+ withCollection(e) {
2050
+ return new qe(e, this.state, {
2051
+ allowsCellSelection: this.allowsCellSelection,
2052
+ layoutDelegate: this.layoutDelegate || void 0
2053
+ });
2054
+ }
2055
+ constructor(e, t, l) {
2056
+ this.collection = e, this.state = t;
2057
+ var i;
2058
+ this.allowsCellSelection = (i = l == null ? void 0 : l.allowsCellSelection) !== null && i !== void 0 ? i : !1, this._isSelectAll = null, this.layoutDelegate = (l == null ? void 0 : l.layoutDelegate) || null;
2059
+ }
2060
+ }
2061
+ function Oi(n) {
2062
+ let { filter: e, layoutDelegate: t } = n, l = Vi(n), i = T(() => n.disabledKeys ? new Set(n.disabledKeys) : /* @__PURE__ */ new Set(), [
2063
+ n.disabledKeys
2064
+ ]), o = J((c) => e ? new ut(e(c)) : new ut(c), [
2065
+ e
2066
+ ]), r = T(() => ({
2067
+ suppressTextValueWarning: n.suppressTextValueWarning
2068
+ }), [
2069
+ n.suppressTextValueWarning
2070
+ ]), s = gi(n, o, r), a = T(() => new qe(s, l, {
2071
+ layoutDelegate: t
2072
+ }), [
2073
+ s,
2074
+ l,
2075
+ t
2076
+ ]);
2077
+ return Rt(s, a), {
2078
+ collection: s,
2079
+ disabledKeys: i,
2080
+ selectionManager: a
2081
+ };
2082
+ }
2083
+ function Ni(n, e) {
2084
+ let t = T(() => e ? n.collection.UNSTABLE_filter(e) : n.collection, [
2085
+ n.collection,
2086
+ e
2087
+ ]), l = n.selectionManager.withCollection(t);
2088
+ return Rt(t, l), {
2089
+ collection: t,
2090
+ selectionManager: l,
2091
+ disabledKeys: n.disabledKeys
2092
+ };
2093
+ }
2094
+ function Rt(n, e) {
2095
+ const t = E(null);
2096
+ Y(() => {
2097
+ if (e.focusedKey != null && !n.getItem(e.focusedKey) && t.current) {
2098
+ const p = t.current.getItem(e.focusedKey), f = [
2099
+ ...t.current.getKeys()
2100
+ ].map((m) => {
2101
+ const S = t.current.getItem(m);
2102
+ return (S == null ? void 0 : S.type) === "item" ? S : null;
2103
+ }).filter((m) => m !== null), d = [
2104
+ ...n.getKeys()
2105
+ ].map((m) => {
2106
+ const S = n.getItem(m);
2107
+ return (S == null ? void 0 : S.type) === "item" ? S : null;
2108
+ }).filter((m) => m !== null);
2109
+ var l, i;
2110
+ const v = ((l = f == null ? void 0 : f.length) !== null && l !== void 0 ? l : 0) - ((i = d == null ? void 0 : d.length) !== null && i !== void 0 ? i : 0);
2111
+ var o, r, s;
2112
+ let b = Math.min(v > 1 ? Math.max(((o = p == null ? void 0 : p.index) !== null && o !== void 0 ? o : 0) - v + 1, 0) : (r = p == null ? void 0 : p.index) !== null && r !== void 0 ? r : 0, ((s = d == null ? void 0 : d.length) !== null && s !== void 0 ? s : 0) - 1), x = null, g = !1;
2113
+ for (; b >= 0; ) {
2114
+ if (!e.isDisabled(d[b].key)) {
2115
+ x = d[b];
2116
+ break;
2117
+ }
2118
+ if (b < d.length - 1 && !g) b++;
2119
+ else {
2120
+ g = !0;
2121
+ var a, c;
2122
+ b > ((a = p == null ? void 0 : p.index) !== null && a !== void 0 ? a : 0) && (b = (c = p == null ? void 0 : p.index) !== null && c !== void 0 ? c : 0), b--;
2123
+ }
2124
+ }
2125
+ e.setFocusedKey(x ? x.key : null);
2126
+ }
2127
+ t.current = n;
2128
+ }, [
2129
+ n,
2130
+ e
2131
+ ]);
2132
+ }
2133
+ const zi = /* @__PURE__ */ O(null), Bt = /* @__PURE__ */ O(null), Rn = /* @__PURE__ */ Il(function(e, t) {
2134
+ [e, t] = fe(e, t, Bt);
2135
+ let { validationBehavior: l } = ht(Ll) || {};
2136
+ var i, o;
2137
+ let r = (o = (i = e.validationBehavior) !== null && i !== void 0 ? i : l) !== null && o !== void 0 ? o : "native", s = E(null), [a, c] = fe({}, s, ke), [p, f] = pt(!e["aria-label"] && !e["aria-labelledby"]), [d, v] = te("input"), { labelProps: b, inputProps: x, descriptionProps: g, errorMessageProps: m, ...S } = Vl({
2138
+ ...vt(e),
2139
+ inputElementType: d,
2140
+ label: f,
2141
+ validationBehavior: r
2142
+ }, c), w = J((C) => {
2143
+ c.current = C, C && v(C instanceof HTMLTextAreaElement ? "textarea" : "input");
2144
+ }, [
2145
+ c
2146
+ ]), k = ie({
2147
+ ...e,
2148
+ values: {
2149
+ isDisabled: e.isDisabled || !1,
2150
+ isInvalid: S.isInvalid,
2151
+ isReadOnly: e.isReadOnly || !1,
2152
+ isRequired: e.isRequired || !1
2153
+ },
2154
+ defaultClassName: "react-aria-TextField"
2155
+ }), F = ne(e);
2156
+ return delete F.id, /* @__PURE__ */ $.createElement("div", {
2157
+ ...F,
2158
+ ...k,
2159
+ ref: t,
2160
+ slot: e.slot || void 0,
2161
+ "data-disabled": e.isDisabled || void 0,
2162
+ "data-invalid": S.isInvalid || void 0,
2163
+ "data-readonly": e.isReadOnly || void 0,
2164
+ "data-required": e.isRequired || void 0
2165
+ }, /* @__PURE__ */ $.createElement(pe, {
2166
+ values: [
2167
+ [
2168
+ Al,
2169
+ {
2170
+ ...b,
2171
+ ref: p
2172
+ }
2173
+ ],
2174
+ [
2175
+ ke,
2176
+ {
2177
+ ...q(x, a),
2178
+ ref: w
2179
+ }
2180
+ ],
2181
+ [
2182
+ Bl,
2183
+ {
2184
+ ...x,
2185
+ ref: w
2186
+ }
2187
+ ],
2188
+ [
2189
+ gt,
2190
+ {
2191
+ slots: {
2192
+ description: g,
2193
+ errorMessage: m
2194
+ }
2195
+ }
2196
+ ],
2197
+ [
2198
+ Rl,
2199
+ S
2200
+ ]
2201
+ ]
2202
+ }, k.children));
2203
+ });
2204
+ var Vt = {};
2205
+ Vt = {
2206
+ collectionLabel: "مقترحات"
2207
+ };
2208
+ var Ot = {};
2209
+ Ot = {
2210
+ collectionLabel: "Предложения"
2211
+ };
2212
+ var Nt = {};
2213
+ Nt = {
2214
+ collectionLabel: "Návrhy"
2215
+ };
2216
+ var zt = {};
2217
+ zt = {
2218
+ collectionLabel: "Forslag"
2219
+ };
2220
+ var Ut = {};
2221
+ Ut = {
2222
+ collectionLabel: "Empfehlungen"
2223
+ };
2224
+ var Ht = {};
2225
+ Ht = {
2226
+ collectionLabel: "Προτάσεις"
2227
+ };
2228
+ var qt = {};
2229
+ qt = {
2230
+ collectionLabel: "Suggestions"
2231
+ };
2232
+ var Wt = {};
2233
+ Wt = {
2234
+ collectionLabel: "Sugerencias"
2235
+ };
2236
+ var _t = {};
2237
+ _t = {
2238
+ collectionLabel: "Soovitused"
2239
+ };
2240
+ var Gt = {};
2241
+ Gt = {
2242
+ collectionLabel: "Ehdotukset"
2243
+ };
2244
+ var jt = {};
2245
+ jt = {
2246
+ collectionLabel: "Suggestions"
2247
+ };
2248
+ var Yt = {};
2249
+ Yt = {
2250
+ collectionLabel: "הצעות"
2251
+ };
2252
+ var Jt = {};
2253
+ Jt = {
2254
+ collectionLabel: "Prijedlozi"
2255
+ };
2256
+ var Xt = {};
2257
+ Xt = {
2258
+ collectionLabel: "Javaslatok"
2259
+ };
2260
+ var Zt = {};
2261
+ Zt = {
2262
+ collectionLabel: "Suggerimenti"
2263
+ };
2264
+ var Qt = {};
2265
+ Qt = {
2266
+ collectionLabel: "候補"
2267
+ };
2268
+ var el = {};
2269
+ el = {
2270
+ collectionLabel: "제안"
2271
+ };
2272
+ var tl = {};
2273
+ tl = {
2274
+ collectionLabel: "Pasiūlymai"
2275
+ };
2276
+ var ll = {};
2277
+ ll = {
2278
+ collectionLabel: "Ieteikumi"
2279
+ };
2280
+ var il = {};
2281
+ il = {
2282
+ collectionLabel: "Forslag"
2283
+ };
2284
+ var nl = {};
2285
+ nl = {
2286
+ collectionLabel: "Suggesties"
2287
+ };
2288
+ var ol = {};
2289
+ ol = {
2290
+ collectionLabel: "Sugestie"
2291
+ };
2292
+ var rl = {};
2293
+ rl = {
2294
+ collectionLabel: "Sugestões"
2295
+ };
2296
+ var sl = {};
2297
+ sl = {
2298
+ collectionLabel: "Sugestões"
2299
+ };
2300
+ var al = {};
2301
+ al = {
2302
+ collectionLabel: "Sugestii"
2303
+ };
2304
+ var ul = {};
2305
+ ul = {
2306
+ collectionLabel: "Предложения"
2307
+ };
2308
+ var dl = {};
2309
+ dl = {
2310
+ collectionLabel: "Návrhy"
2311
+ };
2312
+ var cl = {};
2313
+ cl = {
2314
+ collectionLabel: "Predlogi"
2315
+ };
2316
+ var fl = {};
2317
+ fl = {
2318
+ collectionLabel: "Predlozi"
2319
+ };
2320
+ var hl = {};
2321
+ hl = {
2322
+ collectionLabel: "Förslag"
2323
+ };
2324
+ var pl = {};
2325
+ pl = {
2326
+ collectionLabel: "Öneriler"
2327
+ };
2328
+ var vl = {};
2329
+ vl = {
2330
+ collectionLabel: "Пропозиції"
2331
+ };
2332
+ var yl = {};
2333
+ yl = {
2334
+ collectionLabel: "建议"
2335
+ };
2336
+ var bl = {};
2337
+ bl = {
2338
+ collectionLabel: "建議"
2339
+ };
2340
+ var gl = {};
2341
+ gl = {
2342
+ "ar-AE": Vt,
2343
+ "bg-BG": Ot,
2344
+ "cs-CZ": Nt,
2345
+ "da-DK": zt,
2346
+ "de-DE": Ut,
2347
+ "el-GR": Ht,
2348
+ "en-US": qt,
2349
+ "es-ES": Wt,
2350
+ "et-EE": _t,
2351
+ "fi-FI": Gt,
2352
+ "fr-FR": jt,
2353
+ "he-IL": Yt,
2354
+ "hr-HR": Jt,
2355
+ "hu-HU": Xt,
2356
+ "it-IT": Zt,
2357
+ "ja-JP": Qt,
2358
+ "ko-KR": el,
2359
+ "lt-LT": tl,
2360
+ "lv-LV": ll,
2361
+ "nb-NO": il,
2362
+ "nl-NL": nl,
2363
+ "pl-PL": ol,
2364
+ "pt-BR": rl,
2365
+ "pt-PT": sl,
2366
+ "ro-RO": al,
2367
+ "ru-RU": ul,
2368
+ "sk-SK": dl,
2369
+ "sl-SI": cl,
2370
+ "sr-SP": fl,
2371
+ "sv-SE": hl,
2372
+ "tr-TR": pl,
2373
+ "uk-UA": vl,
2374
+ "zh-CN": yl,
2375
+ "zh-TW": bl
2376
+ };
2377
+ function Ui(n) {
2378
+ return n && n.__esModule ? n.default : n;
2379
+ }
2380
+ function Hi(n, e) {
2381
+ let { inputRef: t, collectionRef: l, filter: i, disableAutoFocusFirst: o = !1 } = n, r = se(), s = E(void 0), a = E(!1), c = E(null), p = E(null), f = Me() !== "virtual";
2382
+ Y(() => () => clearTimeout(s.current), []);
2383
+ let d = ee((y) => {
2384
+ !y.isTrusted && f && t.current && Fe(Ve(t.current)) !== t.current && t.current.focus();
2385
+ let K = y.target;
2386
+ y.isTrusted || !K || c.current === K.id || (clearTimeout(s.current), K !== l.current ? a.current ? (c.current = K.id, s.current = setTimeout(() => {
2387
+ e.setFocusedNodeId(K.id);
2388
+ }, 500)) : (c.current = K.id, e.setFocusedNodeId(K.id)) : (c.current = null, e.setFocusedNodeId(null)), a.current = !1);
2389
+ }), v = J((y) => {
2390
+ var K;
2391
+ if (y != null) {
2392
+ var I;
2393
+ (I = p.current) === null || I === void 0 || I.removeEventListener("focusin", d), p.current = y, y.addEventListener("focusin", d);
2394
+ } else (K = p.current) === null || K === void 0 || K.removeEventListener("focusin", d);
2395
+ }, [
2396
+ d
2397
+ ]), b = ve(T(() => yt(l, v), [
2398
+ l,
2399
+ v
2400
+ ])), x = ee(() => {
2401
+ var y;
2402
+ a.current = !0, (y = l.current) === null || y === void 0 || y.dispatchEvent(new CustomEvent(Le, {
2403
+ cancelable: !0,
2404
+ bubbles: !0,
2405
+ detail: {
2406
+ focusStrategy: "first"
2407
+ }
2408
+ }));
2409
+ }), g = ee((y) => {
2410
+ var K;
2411
+ Oe(Fe()), c.current = null, e.setFocusedNodeId(null);
2412
+ let I = new CustomEvent(Ct, {
2413
+ cancelable: !0,
2414
+ bubbles: !0,
2415
+ detail: {
2416
+ clearFocusKey: y
2417
+ }
2418
+ });
2419
+ clearTimeout(s.current), a.current = !1, (K = l.current) === null || K === void 0 || K.dispatchEvent(I);
2420
+ }), m = (y) => {
2421
+ e.inputValue !== y && e.inputValue.length <= y.length && !o ? x() : g(!0), e.setInputValue(y);
2422
+ }, S = E(null), w = (y) => {
2423
+ var K;
2424
+ if (S.current = y.target, y.nativeEvent.isComposing) return;
2425
+ let I = c.current;
2426
+ switch (y.key) {
2427
+ case "a":
2428
+ if (Q(y)) return;
2429
+ break;
2430
+ case "Escape":
2431
+ if (y.isDefaultPrevented()) return;
2432
+ break;
2433
+ case " ":
2434
+ return;
2435
+ case "Tab":
2436
+ "continuePropagation" in y && y.continuePropagation();
2437
+ return;
2438
+ case "Home":
2439
+ case "End":
2440
+ case "PageDown":
2441
+ case "PageUp":
2442
+ case "ArrowUp":
2443
+ case "ArrowDown": {
2444
+ var V;
2445
+ if ((y.key === "Home" || y.key === "End") && I == null && y.shiftKey) return;
2446
+ y.preventDefault();
2447
+ let H = new CustomEvent(Le, {
2448
+ cancelable: !0,
2449
+ bubbles: !0
2450
+ });
2451
+ (V = l.current) === null || V === void 0 || V.dispatchEvent(H);
2452
+ break;
2453
+ }
2454
+ }
2455
+ y.isPropagationStopped() || y.stopPropagation();
2456
+ let U = !0;
2457
+ if (I == null) U = ((K = l.current) === null || K === void 0 ? void 0 : K.dispatchEvent(new KeyboardEvent(y.nativeEvent.type, y.nativeEvent))) || !1;
2458
+ else {
2459
+ let H = document.getElementById(I);
2460
+ U = (H == null ? void 0 : H.dispatchEvent(new KeyboardEvent(y.nativeEvent.type, y.nativeEvent))) || !1;
2461
+ }
2462
+ if (U) switch (y.key) {
2463
+ case "ArrowLeft":
2464
+ case "ArrowRight":
2465
+ g();
2466
+ break;
2467
+ }
2468
+ }, k = ee((y) => {
2469
+ if (y.target === S.current) {
2470
+ var K;
2471
+ y.stopImmediatePropagation();
2472
+ let I = c.current;
2473
+ if (I == null) (K = l.current) === null || K === void 0 || K.dispatchEvent(new KeyboardEvent(y.type, y));
2474
+ else {
2475
+ let V = document.getElementById(I);
2476
+ V == null || V.dispatchEvent(new KeyboardEvent(y.type, y));
2477
+ }
2478
+ }
2479
+ });
2480
+ Y(() => (document.addEventListener("keyup", k, !0), () => {
2481
+ document.removeEventListener("keyup", k, !0);
2482
+ }), [
2483
+ k
2484
+ ]);
2485
+ let F = Hl(Ui(gl), "@react-aria/autocomplete"), C = Nl({
2486
+ id: r,
2487
+ "aria-label": F.format("collectionLabel")
2488
+ }), R = J((y) => i ? i(y, e.inputValue) : !0, [
2489
+ e.inputValue,
2490
+ i
2491
+ ]), M = (y) => {
2492
+ if (!y.isTrusted) return;
2493
+ let K = c.current ? document.getElementById(c.current) : null;
2494
+ K && Ae(K, y.relatedTarget);
2495
+ }, G = (y) => {
2496
+ if (!y.isTrusted) return;
2497
+ let K = c.current ? document.getElementById(c.current) : null;
2498
+ if (K) {
2499
+ let I = y.target;
2500
+ queueMicrotask(() => {
2501
+ Ae(I, K), Et(K, I);
2502
+ });
2503
+ }
2504
+ };
2505
+ var B;
2506
+ return {
2507
+ textFieldProps: {
2508
+ value: e.inputValue,
2509
+ onChange: m,
2510
+ onKeyDown: w,
2511
+ autoComplete: "off",
2512
+ "aria-haspopup": "listbox",
2513
+ "aria-controls": r,
2514
+ // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
2515
+ "aria-autocomplete": "list",
2516
+ "aria-activedescendant": (B = e.focusedNodeId) !== null && B !== void 0 ? B : void 0,
2517
+ // This disable's iOS's autocorrect suggestions, since the autocomplete provides its own suggestions.
2518
+ autoCorrect: "off",
2519
+ // This disable's the macOS Safari spell check auto corrections.
2520
+ spellCheck: "false",
2521
+ enterKeyHint: "go",
2522
+ onBlur: M,
2523
+ onFocus: G
2524
+ },
2525
+ collectionProps: q(C, {
2526
+ shouldUseVirtualFocus: f,
2527
+ disallowTypeAhead: !0
2528
+ }),
2529
+ collectionRef: b,
2530
+ filter: i != null ? R : void 0
2531
+ };
2532
+ }
2533
+ function qi(n) {
2534
+ let { onInputChange: e, inputValue: t, defaultInputValue: l = "" } = n, i = (c) => {
2535
+ e && e(c);
2536
+ }, [o, r] = te(null), [s, a] = mt(t, l, i);
2537
+ return {
2538
+ inputValue: s,
2539
+ setInputValue: a,
2540
+ focusedNodeId: o,
2541
+ setFocusedNodeId: r
2542
+ };
2543
+ }
2544
+ const Wi = /* @__PURE__ */ O(null), _i = /* @__PURE__ */ O(null), $l = /* @__PURE__ */ O(null);
2545
+ function Bn(n) {
2546
+ let e = ht(Wi, n.slot);
2547
+ n = q(e, n);
2548
+ let { filter: t, disableAutoFocusFirst: l } = n, i = qi(n), o = E(null), r = E(null), { textFieldProps: s, collectionProps: a, collectionRef: c, filter: p } = Hi({
2549
+ ...vt(n),
2550
+ filter: t,
2551
+ disableAutoFocusFirst: l,
2552
+ inputRef: o,
2553
+ collectionRef: r
2554
+ }, i);
2555
+ return /* @__PURE__ */ $.createElement(pe, {
2556
+ values: [
2557
+ [
2558
+ _i,
2559
+ i
2560
+ ],
2561
+ [
2562
+ zi,
2563
+ s
2564
+ ],
2565
+ [
2566
+ Bt,
2567
+ s
2568
+ ],
2569
+ [
2570
+ ke,
2571
+ {
2572
+ ref: o
2573
+ }
2574
+ ],
2575
+ [
2576
+ $l,
2577
+ {
2578
+ filter: p,
2579
+ collectionProps: a,
2580
+ collectionRef: c
2581
+ }
2582
+ ]
2583
+ ]
2584
+ }, n.children);
2585
+ }
2586
+ const Gi = /* @__PURE__ */ O(null), ji = {
2587
+ CollectionRoot({ collection: n, renderDropIndicator: e }) {
2588
+ return ct(n, null, e);
2589
+ },
2590
+ CollectionBranch({ collection: n, parent: e, renderDropIndicator: t }) {
2591
+ return ct(n, e, t);
2592
+ }
2593
+ };
2594
+ function ct(n, e, t) {
2595
+ return Mt({
2596
+ items: e ? n.getChildren(e.key) : n,
2597
+ dependencies: [
2598
+ t
2599
+ ],
2600
+ children(l) {
2601
+ let i = l.render(l);
2602
+ return !t || l.type !== "item" ? i : /* @__PURE__ */ $.createElement($.Fragment, null, t({
2603
+ type: "item",
2604
+ key: l.key,
2605
+ dropPosition: "before"
2606
+ }), i, Yi(n, l, t));
2607
+ }
2608
+ });
2609
+ }
2610
+ function Yi(n, e, t) {
2611
+ let l = e.key, i = n.getKeyAfter(l), o = i != null ? n.getItem(i) : null;
2612
+ for (; o != null && o.type !== "item"; )
2613
+ i = n.getKeyAfter(o.key), o = i != null ? n.getItem(i) : null;
2614
+ let r = e.nextKey != null ? n.getItem(e.nextKey) : null;
2615
+ for (; r != null && r.type !== "item"; ) r = r.nextKey != null ? n.getItem(r.nextKey) : null;
2616
+ let s = [];
2617
+ if (r == null) {
2618
+ let a = e;
2619
+ for (; a && (!o || a.parentKey !== o.parentKey && o.level < a.level); ) {
2620
+ let c = t({
2621
+ type: "item",
2622
+ key: a.key,
2623
+ dropPosition: "after"
2624
+ });
2625
+ /* @__PURE__ */ El(c) && s.push(/* @__PURE__ */ ft(c, {
2626
+ key: `${a.key}-after`
2627
+ })), a = a.parentKey != null ? n.getItem(a.parentKey) : null;
2628
+ }
2629
+ }
2630
+ return s;
2631
+ }
2632
+ const ye = /* @__PURE__ */ O(ji);
2633
+ function Vn(n) {
2634
+ return T(() => n != null ? /* @__PURE__ */ new Set([
2635
+ n
2636
+ ]) : null, [
2637
+ n
2638
+ ]);
2639
+ }
2640
+ const be = /* @__PURE__ */ O({}), ml = /* @__PURE__ */ O(null), Ji = /* @__PURE__ */ re(function(e, t) {
2641
+ let { render: l } = L(ml);
2642
+ return /* @__PURE__ */ $.createElement($.Fragment, null, l(e, t));
2643
+ });
2644
+ function xl(n, e) {
2645
+ var t;
2646
+ let l = n == null ? void 0 : n.renderDropIndicator, i = n == null || (t = n.isVirtualDragging) === null || t === void 0 ? void 0 : t.call(n), o = J((r) => {
2647
+ if (i || e != null && e.isDropTarget(r)) return l ? l(r) : /* @__PURE__ */ $.createElement(Ji, {
2648
+ target: r
2649
+ });
2650
+ }, [
2651
+ e == null ? void 0 : e.target,
2652
+ i,
2653
+ l
2654
+ ]);
2655
+ return n != null && n.useDropIndicator ? o : void 0;
2656
+ }
2657
+ function Xi(n, e, t) {
2658
+ var l, i;
2659
+ let o = n.focusedKey, r = null;
2660
+ if (!(e == null || (l = e.isVirtualDragging) === null || l === void 0) && l.call(e) && (t == null || (i = t.target) === null || i === void 0 ? void 0 : i.type) === "item") {
2661
+ r = t.target.key;
2662
+ var s;
2663
+ t.target.dropPosition === "after" && (r = (s = t.collection.getKeyAfter(r)) !== null && s !== void 0 ? s : r);
2664
+ }
2665
+ return T(() => new Set([
2666
+ o,
2667
+ r
2668
+ ].filter((a) => a != null)), [
2669
+ o,
2670
+ r
2671
+ ]);
2672
+ }
2673
+ const Sl = /* @__PURE__ */ O({}), On = /* @__PURE__ */ He("header", function(e, t) {
2674
+ return [e, t] = fe(e, t, Sl), /* @__PURE__ */ $.createElement("header", {
2675
+ className: "react-aria-Header",
2676
+ ...e,
2677
+ ref: t
2678
+ }, e.children);
2679
+ }), Zi = /* @__PURE__ */ O({}), Kl = /* @__PURE__ */ O(null), ae = /* @__PURE__ */ O(null), Nn = /* @__PURE__ */ re(function(e, t) {
2680
+ [e, t] = fe(e, t, Kl);
2681
+ let l = L(ae);
2682
+ return l ? /* @__PURE__ */ $.createElement(Dl, {
2683
+ state: l,
2684
+ props: e,
2685
+ listBoxRef: t
2686
+ }) : /* @__PURE__ */ $.createElement(ki, {
2687
+ content: /* @__PURE__ */ $.createElement(Ai, e)
2688
+ }, (i) => /* @__PURE__ */ $.createElement(Qi, {
2689
+ props: e,
2690
+ listBoxRef: t,
2691
+ collection: i
2692
+ }));
2693
+ });
2694
+ function Qi({ props: n, listBoxRef: e, collection: t }) {
2695
+ n = {
2696
+ ...n,
2697
+ collection: t,
2698
+ children: null,
2699
+ items: null
2700
+ };
2701
+ let { layoutDelegate: l } = L(ye), i = Oi({
2702
+ ...n,
2703
+ layoutDelegate: l
2704
+ });
2705
+ return /* @__PURE__ */ $.createElement(Dl, {
2706
+ state: i,
2707
+ props: n,
2708
+ listBoxRef: e
2709
+ });
2710
+ }
2711
+ function Dl({ state: n, props: e, listBoxRef: t }) {
2712
+ var l;
2713
+ let { filter: i, collectionProps: o, collectionRef: r } = L($l) || {};
2714
+ e = T(() => o ? {
2715
+ ...e,
2716
+ ...o
2717
+ } : e, [
2718
+ e,
2719
+ o
2720
+ ]);
2721
+ let { dragAndDropHooks: s, layout: a = "stack", orientation: c = "vertical" } = e;
2722
+ t = ve(T(() => yt(t, r !== void 0 ? r : null), [
2723
+ r,
2724
+ t
2725
+ ]));
2726
+ let p = Ni(n, i), { collection: f, selectionManager: d } = p, v = !!(s != null && s.useDraggableCollectionState), b = !!(s != null && s.useDroppableCollectionState), { direction: x } = Dt(), { disabledBehavior: g, disabledKeys: m } = d, S = wt({
2727
+ usage: "search",
2728
+ sensitivity: "base"
2729
+ }), { isVirtualized: w, layoutDelegate: k, dropTargetDelegate: F, CollectionRoot: C } = L(ye), R = T(() => e.keyboardDelegate || new kt({
2730
+ collection: f,
2731
+ collator: S,
2732
+ ref: t,
2733
+ disabledKeys: m,
2734
+ disabledBehavior: g,
2735
+ layout: a,
2736
+ orientation: c,
2737
+ direction: x,
2738
+ layoutDelegate: k
2739
+ }), [
2740
+ f,
2741
+ S,
2742
+ t,
2743
+ g,
2744
+ m,
2745
+ c,
2746
+ x,
2747
+ e.keyboardDelegate,
2748
+ a,
2749
+ k
2750
+ ]), { listBoxProps: M } = vi({
2751
+ ...e,
2752
+ shouldSelectOnPressUp: v || e.shouldSelectOnPressUp,
2753
+ keyboardDelegate: R,
2754
+ isVirtualized: w
2755
+ }, p, t), G = E(v), B = E(b);
2756
+ Y(() => {
2757
+ process.env.NODE_ENV !== "production" && (G.current !== v && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), B.current !== b && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
2758
+ }, [
2759
+ v,
2760
+ b
2761
+ ]);
2762
+ let y, K, I, V = !1, U = null, H = E(null);
2763
+ if (v && s) {
2764
+ y = s.useDraggableCollectionState({
2765
+ collection: f,
2766
+ selectionManager: d,
2767
+ preview: s.renderDragPreview ? H : void 0
2768
+ }), s.useDraggableCollection({}, y, t);
2769
+ let _ = s.DragPreview;
2770
+ U = s.renderDragPreview ? /* @__PURE__ */ $.createElement(_, {
2771
+ ref: H
2772
+ }, s.renderDragPreview) : null;
2773
+ }
2774
+ if (b && s) {
2775
+ K = s.useDroppableCollectionState({
2776
+ collection: f,
2777
+ selectionManager: d
2778
+ });
2779
+ let _ = s.dropTargetDelegate || F || new s.ListDropTargetDelegate(f, t, {
2780
+ orientation: c,
2781
+ layout: a,
2782
+ direction: x
2783
+ });
2784
+ I = s.useDroppableCollection({
2785
+ keyboardDelegate: R,
2786
+ dropTargetDelegate: _
2787
+ }, K, t), V = K.isDropTarget({
2788
+ type: "root"
2789
+ });
2790
+ }
2791
+ let { focusProps: h, isFocused: u, isFocusVisible: P } = Ql(), A = p.collection.size === 0 || p.collection.size === 1 && ((l = p.collection.getItem(p.collection.getFirstKey())) === null || l === void 0 ? void 0 : l.type) === "loader", N = {
2792
+ isDropTarget: V,
2793
+ isEmpty: A,
2794
+ isFocused: u,
2795
+ isFocusVisible: P,
2796
+ layout: e.layout || "stack",
2797
+ state: p
2798
+ }, z = ie({
2799
+ className: e.className,
2800
+ style: e.style,
2801
+ defaultClassName: "react-aria-ListBox",
2802
+ values: N
2803
+ }), W = null;
2804
+ return A && e.renderEmptyState && (W = /* @__PURE__ */ $.createElement("div", {
2805
+ // eslint-disable-next-line
2806
+ role: "option",
2807
+ style: {
2808
+ display: "contents"
2809
+ }
2810
+ }, e.renderEmptyState(N))), /* @__PURE__ */ $.createElement(Zl, null, /* @__PURE__ */ $.createElement("div", {
2811
+ ...ne(e),
2812
+ ...q(M, h, I == null ? void 0 : I.collectionProps),
2813
+ ...z,
2814
+ ref: t,
2815
+ slot: e.slot || void 0,
2816
+ onScroll: e.onScroll,
2817
+ "data-drop-target": V || void 0,
2818
+ "data-empty": A || void 0,
2819
+ "data-focused": u || void 0,
2820
+ "data-focus-visible": P || void 0,
2821
+ "data-layout": e.layout || "stack",
2822
+ "data-orientation": e.orientation || "vertical"
2823
+ }, /* @__PURE__ */ $.createElement(pe, {
2824
+ values: [
2825
+ [
2826
+ Kl,
2827
+ e
2828
+ ],
2829
+ [
2830
+ ae,
2831
+ p
2832
+ ],
2833
+ [
2834
+ be,
2835
+ {
2836
+ dragAndDropHooks: s,
2837
+ dragState: y,
2838
+ dropState: K
2839
+ }
2840
+ ],
2841
+ [
2842
+ Zi,
2843
+ {
2844
+ elementType: "div"
2845
+ }
2846
+ ],
2847
+ [
2848
+ ml,
2849
+ {
2850
+ render: en
2851
+ }
2852
+ ],
2853
+ [
2854
+ Gi,
2855
+ {
2856
+ name: "ListBoxSection",
2857
+ render: wl
2858
+ }
2859
+ ]
2860
+ ]
2861
+ }, /* @__PURE__ */ $.createElement(C, {
2862
+ collection: f,
2863
+ scrollRef: t,
2864
+ persistedKeys: Xi(d, s, K),
2865
+ renderDropIndicator: xl(s, K)
2866
+ })), W, U));
2867
+ }
2868
+ function wl(n, e, t, l = "react-aria-ListBoxSection") {
2869
+ let i = L(ae), { dragAndDropHooks: o, dropState: r } = L(be), { CollectionBranch: s } = L(ye), [a, c] = pt();
2870
+ var p;
2871
+ let { headingProps: f, groupProps: d } = Ki({
2872
+ heading: c,
2873
+ "aria-label": (p = n["aria-label"]) !== null && p !== void 0 ? p : void 0
2874
+ }), v = ie({
2875
+ defaultClassName: l,
2876
+ className: n.className,
2877
+ style: n.style,
2878
+ values: {}
2879
+ });
2880
+ return /* @__PURE__ */ $.createElement("section", {
2881
+ ...ne(n),
2882
+ ...d,
2883
+ ...v,
2884
+ ref: e
2885
+ }, /* @__PURE__ */ $.createElement(Sl.Provider, {
2886
+ value: {
2887
+ ...f,
2888
+ ref: a
2889
+ }
2890
+ }, /* @__PURE__ */ $.createElement(s, {
2891
+ collection: i.collection,
2892
+ parent: t,
2893
+ renderDropIndicator: xl(o, r)
2894
+ })));
2895
+ }
2896
+ const zn = /* @__PURE__ */ Li("section", wl), Un = /* @__PURE__ */ He("item", function(e, t, l) {
2897
+ let i = ve(t), o = L(ae), { dragAndDropHooks: r, dragState: s, dropState: a } = L(be), { optionProps: c, labelProps: p, descriptionProps: f, ...d } = Si({
2898
+ key: l.key,
2899
+ "aria-label": e == null ? void 0 : e["aria-label"]
2900
+ }, o, i), { hoverProps: v, isHovered: b } = Kt({
2901
+ isDisabled: !d.allowsSelection && !d.hasAction,
2902
+ onHoverStart: l.props.onHoverStart,
2903
+ onHoverChange: l.props.onHoverChange,
2904
+ onHoverEnd: l.props.onHoverEnd
2905
+ }), x = null;
2906
+ s && r && (x = r.useDraggableItem({
2907
+ key: l.key
2908
+ }, s));
2909
+ let g = null;
2910
+ a && r && (g = r.useDroppableItem({
2911
+ target: {
2912
+ type: "item",
2913
+ key: l.key,
2914
+ dropPosition: "on"
2915
+ }
2916
+ }, a, i));
2917
+ let m = s && s.isDragging(l.key), S = ie({
2918
+ ...e,
2919
+ id: void 0,
2920
+ children: e.children,
2921
+ defaultClassName: "react-aria-ListBoxItem",
2922
+ values: {
2923
+ ...d,
2924
+ isHovered: b,
2925
+ selectionMode: o.selectionManager.selectionMode,
2926
+ selectionBehavior: o.selectionManager.selectionBehavior,
2927
+ allowsDragging: !!s,
2928
+ isDragging: m,
2929
+ isDropTarget: g == null ? void 0 : g.isDropTarget
2930
+ }
2931
+ });
2932
+ Y(() => {
2933
+ !l.textValue && process.env.NODE_ENV !== "production" && console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");
2934
+ }, [
2935
+ l.textValue
2936
+ ]);
2937
+ let w = e.href ? "a" : "div";
2938
+ return /* @__PURE__ */ $.createElement(w, {
2939
+ ...q(c, v, x == null ? void 0 : x.dragProps, g == null ? void 0 : g.dropProps),
2940
+ ...S,
2941
+ ref: i,
2942
+ "data-allows-dragging": !!s || void 0,
2943
+ "data-selected": d.isSelected || void 0,
2944
+ "data-disabled": d.isDisabled || void 0,
2945
+ "data-hovered": b || void 0,
2946
+ "data-focused": d.isFocused || void 0,
2947
+ "data-focus-visible": d.isFocusVisible || void 0,
2948
+ "data-pressed": d.isPressed || void 0,
2949
+ "data-dragging": m || void 0,
2950
+ "data-drop-target": (g == null ? void 0 : g.isDropTarget) || void 0,
2951
+ "data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode
2952
+ }, /* @__PURE__ */ $.createElement(pe, {
2953
+ values: [
2954
+ [
2955
+ gt,
2956
+ {
2957
+ slots: {
2958
+ [Pl]: p,
2959
+ label: p,
2960
+ description: f
2961
+ }
2962
+ }
2963
+ ]
2964
+ ]
2965
+ }, S.children));
2966
+ });
2967
+ function en(n, e) {
2968
+ e = ve(e);
2969
+ let { dragAndDropHooks: t, dropState: l } = L(be), { dropIndicatorProps: i, isHidden: o, isDropTarget: r } = t.useDropIndicator(n, l, e);
2970
+ return o ? null : /* @__PURE__ */ $.createElement(ln, {
2971
+ ...n,
2972
+ dropIndicatorProps: i,
2973
+ isDropTarget: r,
2974
+ ref: e
2975
+ });
2976
+ }
2977
+ function tn(n, e) {
2978
+ let { dropIndicatorProps: t, isDropTarget: l, ...i } = n, o = ie({
2979
+ ...i,
2980
+ defaultClassName: "react-aria-DropIndicator",
2981
+ values: {
2982
+ isDropTarget: l
2983
+ }
2984
+ });
2985
+ return /* @__PURE__ */ $.createElement("div", {
2986
+ ...t,
2987
+ ...o,
2988
+ // eslint-disable-next-line
2989
+ role: "option",
2990
+ ref: e,
2991
+ "data-drop-target": l || void 0
2992
+ });
2993
+ }
2994
+ const ln = /* @__PURE__ */ re(tn);
2995
+ He("loader", function(e, t, l) {
2996
+ let i = L(ae), { isVirtualized: o } = L(ye), { isLoading: r, onLoadMore: s, scrollOffset: a, ...c } = e, p = E(null), f = T(() => ({
2997
+ onLoadMore: s,
2998
+ collection: i == null ? void 0 : i.collection,
2999
+ sentinelRef: p,
3000
+ scrollOffset: a
3001
+ }), [
3002
+ s,
3003
+ a,
3004
+ i == null ? void 0 : i.collection
3005
+ ]);
3006
+ ei(f, p);
3007
+ let d = ie({
3008
+ ...c,
3009
+ id: void 0,
3010
+ children: l.rendered,
3011
+ defaultClassName: "react-aria-ListBoxLoadingIndicator",
3012
+ values: null
3013
+ }), v = {
3014
+ // For Android talkback
3015
+ tabIndex: -1
3016
+ };
3017
+ return o && (v["aria-posinset"] = l.index + 1, v["aria-setsize"] = i.collection.size), /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
3018
+ style: {
3019
+ position: "relative",
3020
+ width: 0,
3021
+ height: 0
3022
+ },
3023
+ inert: ti(!0)
3024
+ }, /* @__PURE__ */ $.createElement("div", {
3025
+ "data-testid": "loadMoreSentinel",
3026
+ ref: p,
3027
+ style: {
3028
+ position: "absolute",
3029
+ height: 1,
3030
+ width: 1
3031
+ }
3032
+ })), r && d.children && /* @__PURE__ */ $.createElement("div", {
3033
+ ...q(ne(e), v),
3034
+ ...d,
3035
+ // aria-selected isn't needed here since this option is not selectable.
3036
+ // eslint-disable-next-line jsx-a11y/role-has-required-aria-props
3037
+ role: "option",
3038
+ ref: t
3039
+ }, d.children));
3040
+ });
3041
+ export {
3042
+ ii as $,
3043
+ Vn as A,
3044
+ Oi as a,
3045
+ kt as b,
3046
+ di as c,
3047
+ ki as d,
3048
+ Kl as e,
3049
+ ae as f,
3050
+ Nn as g,
3051
+ Un as h,
3052
+ zn as i,
3053
+ On as j,
3054
+ Ai as k,
3055
+ Ne as l,
3056
+ fi as m,
3057
+ It as n,
3058
+ xi as o,
3059
+ Et as p,
3060
+ ri as q,
3061
+ ut as r,
3062
+ Bn as s,
3063
+ Rn as t,
3064
+ pi as u,
3065
+ An as v,
3066
+ hi as w,
3067
+ He as x,
3068
+ ye as y,
3069
+ ji as z
3070
+ };
3071
+ //# sourceMappingURL=ListBox-DH3lufv2.js.map