@commercetools/nimbus 0.0.0-canary-20250825072120 → 0.0.0-canary-20250825072225

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 (367) hide show
  1. package/dist/accordion.d.ts +4 -4
  2. package/dist/alert.d.ts +1 -1
  3. package/dist/chunks/{accordion-B_MC1ZEv.es.js → accordion-B9jG9fOy.es.js} +3 -3
  4. package/dist/chunks/{accordion-B_MC1ZEv.es.js.map → accordion-B9jG9fOy.es.js.map} +1 -1
  5. package/dist/chunks/{accordion-C9-YyEB4.cjs.js → accordion-C52FRG2V.cjs.js} +2 -2
  6. package/dist/chunks/{accordion-C9-YyEB4.cjs.js.map → accordion-C52FRG2V.cjs.js.map} +1 -1
  7. package/dist/chunks/{alert-DwDLsZeH.cjs.js → alert-BhMfbMnN.cjs.js} +2 -2
  8. package/dist/chunks/{alert-DwDLsZeH.cjs.js.map → alert-BhMfbMnN.cjs.js.map} +1 -1
  9. package/dist/chunks/{alert-CgDrQdgE.es.js → alert-BvT6yjas.es.js} +5 -5
  10. package/dist/chunks/{alert-CgDrQdgE.es.js.map → alert-BvT6yjas.es.js.map} +1 -1
  11. package/dist/chunks/{avatar-Dg7JUfsz.es.js → avatar-B7CMxFNg.es.js} +3 -3
  12. package/dist/chunks/{avatar-Dg7JUfsz.es.js.map → avatar-B7CMxFNg.es.js.map} +1 -1
  13. package/dist/chunks/{avatar-vzHN72KS.cjs.js → avatar-mL-2hOve.cjs.js} +2 -2
  14. package/dist/chunks/{avatar-vzHN72KS.cjs.js.map → avatar-mL-2hOve.cjs.js.map} +1 -1
  15. package/dist/chunks/{badge-BeR8OqtD.es.js → badge-C2elCKPp.es.js} +2 -2
  16. package/dist/chunks/{badge-BeR8OqtD.es.js.map → badge-C2elCKPp.es.js.map} +1 -1
  17. package/dist/chunks/{badge-CJK91qKC.cjs.js → badge-HHzfG1BI.cjs.js} +2 -2
  18. package/dist/chunks/{badge-CJK91qKC.cjs.js.map → badge-HHzfG1BI.cjs.js.map} +1 -1
  19. package/dist/chunks/{box-DL4MWnyy.cjs.js → box-BPfqlznQ.cjs.js} +2 -2
  20. package/dist/chunks/box-BPfqlznQ.cjs.js.map +1 -0
  21. package/dist/chunks/{box-7pkPaNxe.es.js → box-C8731OYq.es.js} +2 -2
  22. package/dist/chunks/box-C8731OYq.es.js.map +1 -0
  23. package/dist/chunks/{button-BCYZ1Ki2.es.js → button-Bg73nQk3.es.js} +3 -3
  24. package/dist/chunks/{button-BCYZ1Ki2.es.js.map → button-Bg73nQk3.es.js.map} +1 -1
  25. package/dist/chunks/{button-IGP--12e.cjs.js → button-BiBXrCVh.cjs.js} +2 -2
  26. package/dist/chunks/{button-IGP--12e.cjs.js.map → button-BiBXrCVh.cjs.js.map} +1 -1
  27. package/dist/chunks/{calendar-B3NlJSCo.cjs.js → calendar-BydrcPp3.cjs.js} +2 -2
  28. package/dist/chunks/{calendar-B3NlJSCo.cjs.js.map → calendar-BydrcPp3.cjs.js.map} +1 -1
  29. package/dist/chunks/{calendar-D3A1ryrp.es.js → calendar-Co4TTkzj.es.js} +7 -7
  30. package/dist/chunks/{calendar-D3A1ryrp.es.js.map → calendar-Co4TTkzj.es.js.map} +1 -1
  31. package/dist/chunks/{card-4i9NTJKM.cjs.js → card-Bgg1CCU2.cjs.js} +2 -2
  32. package/dist/chunks/{card-4i9NTJKM.cjs.js.map → card-Bgg1CCU2.cjs.js.map} +1 -1
  33. package/dist/chunks/{card-D1BUuNzg.es.js → card-C7PIEqmV.es.js} +3 -3
  34. package/dist/chunks/{card-D1BUuNzg.es.js.map → card-C7PIEqmV.es.js.map} +1 -1
  35. package/dist/chunks/{checkbox-DVb0qX6x.cjs.js → checkbox-8eIhS2f6.cjs.js} +2 -2
  36. package/dist/chunks/{checkbox-DVb0qX6x.cjs.js.map → checkbox-8eIhS2f6.cjs.js.map} +1 -1
  37. package/dist/chunks/{checkbox-DlYjw56x.es.js → checkbox-B2yJgtOJ.es.js} +2 -2
  38. package/dist/chunks/{checkbox-DlYjw56x.es.js.map → checkbox-B2yJgtOJ.es.js.map} +1 -1
  39. package/dist/chunks/code-CTuEvrXA.cjs.js +2 -0
  40. package/dist/chunks/{code-DqjWYzPU.cjs.js.map → code-CTuEvrXA.cjs.js.map} +1 -1
  41. package/dist/chunks/{code-C245FocZ.es.js → code-CieYW1ER.es.js} +2 -2
  42. package/dist/chunks/{code-C245FocZ.es.js.map → code-CieYW1ER.es.js.map} +1 -1
  43. package/dist/chunks/{combobox-C3foptTP.cjs.js → combobox-BYyNTj5m.cjs.js} +2 -2
  44. package/dist/chunks/{combobox-C3foptTP.cjs.js.map → combobox-BYyNTj5m.cjs.js.map} +1 -1
  45. package/dist/chunks/{combobox-BWjVkgOn.es.js → combobox-qA8TjWPw.es.js} +6 -6
  46. package/dist/chunks/{combobox-BWjVkgOn.es.js.map → combobox-qA8TjWPw.es.js.map} +1 -1
  47. package/dist/chunks/config-Mt8_uyhI.cjs.js.map +1 -1
  48. package/dist/chunks/config-ufbQ08Vi.es.js.map +1 -1
  49. package/dist/chunks/{create-recipe-context-BEEJ70DA.cjs.js → create-recipe-context-D0_lCuqq.cjs.js} +2 -2
  50. package/dist/chunks/{create-recipe-context-BEEJ70DA.cjs.js.map → create-recipe-context-D0_lCuqq.cjs.js.map} +1 -1
  51. package/dist/chunks/{create-recipe-context-BuajKZ9o.es.js → create-recipe-context-i2odau3L.es.js} +2 -2
  52. package/dist/chunks/{create-recipe-context-BuajKZ9o.es.js.map → create-recipe-context-i2odau3L.es.js.map} +1 -1
  53. package/dist/chunks/{create-slot-recipe-context-DgamNbR-.es.js → create-slot-recipe-context-DBNItnlK.es.js} +30 -30
  54. package/dist/chunks/create-slot-recipe-context-DBNItnlK.es.js.map +1 -0
  55. package/dist/chunks/create-slot-recipe-context-HIF51Igr.cjs.js +2 -0
  56. package/dist/chunks/create-slot-recipe-context-HIF51Igr.cjs.js.map +1 -0
  57. package/dist/chunks/{data-table-DR210vqX.es.js → data-table-BqGT7Ov4.es.js} +787 -776
  58. package/dist/chunks/data-table-BqGT7Ov4.es.js.map +1 -0
  59. package/dist/chunks/data-table-CjXjfeLi.cjs.js +2 -0
  60. package/dist/chunks/data-table-CjXjfeLi.cjs.js.map +1 -0
  61. package/dist/chunks/{date-input-tNUDaNSO.es.js → date-input-BSacD65z.es.js} +2 -2
  62. package/dist/chunks/{date-input-tNUDaNSO.es.js.map → date-input-BSacD65z.es.js.map} +1 -1
  63. package/dist/chunks/{date-input-BFHLRnBr.cjs.js → date-input-DwxNrZ3r.cjs.js} +2 -2
  64. package/dist/chunks/{date-input-BFHLRnBr.cjs.js.map → date-input-DwxNrZ3r.cjs.js.map} +1 -1
  65. package/dist/chunks/{date-picker-J6nYu3zN.es.js → date-picker-COI-tlHx.es.js} +8 -8
  66. package/dist/chunks/{date-picker-J6nYu3zN.es.js.map → date-picker-COI-tlHx.es.js.map} +1 -1
  67. package/dist/chunks/{date-picker-GqOazmSZ.cjs.js → date-picker-RC0pSYZe.cjs.js} +2 -2
  68. package/dist/chunks/{date-picker-GqOazmSZ.cjs.js.map → date-picker-RC0pSYZe.cjs.js.map} +1 -1
  69. package/dist/chunks/{date-range-picker-D_gkG0on.cjs.js → date-range-picker-BMAaQ7cS.cjs.js} +2 -2
  70. package/dist/chunks/{date-range-picker-D_gkG0on.cjs.js.map → date-range-picker-BMAaQ7cS.cjs.js.map} +1 -1
  71. package/dist/chunks/{date-range-picker-DxIXHOC2.es.js → date-range-picker-BnI3m8z-.es.js} +8 -8
  72. package/dist/chunks/{date-range-picker-DxIXHOC2.es.js.map → date-range-picker-BnI3m8z-.es.js.map} +1 -1
  73. package/dist/chunks/{dialog-De8l1nzr.es.js → dialog-CG-cCFkg.es.js} +400 -385
  74. package/dist/chunks/dialog-CG-cCFkg.es.js.map +1 -0
  75. package/dist/chunks/dialog-CNZGNU5Q.cjs.js +2 -0
  76. package/dist/chunks/dialog-CNZGNU5Q.cjs.js.map +1 -0
  77. package/dist/chunks/{divider-BicBw1PK.cjs.js → divider-CTTExmLv.cjs.js} +2 -2
  78. package/dist/chunks/{divider-BicBw1PK.cjs.js.map → divider-CTTExmLv.cjs.js.map} +1 -1
  79. package/dist/chunks/{divider-DMH0p6Pr.es.js → divider-CpctZ_-U.es.js} +2 -2
  80. package/dist/chunks/{divider-DMH0p6Pr.es.js.map → divider-CpctZ_-U.es.js.map} +1 -1
  81. package/dist/chunks/empty-B5_AO6Pg.cjs.js.map +1 -1
  82. package/dist/chunks/empty-D7ZFmvo6.es.js.map +1 -1
  83. package/dist/chunks/factory-BpxiKxSs.es.js +269 -0
  84. package/dist/chunks/factory-BpxiKxSs.es.js.map +1 -0
  85. package/dist/chunks/factory-DlCuwIGL.cjs.js +3 -0
  86. package/dist/chunks/factory-DlCuwIGL.cjs.js.map +1 -0
  87. package/dist/chunks/{flex-9fkV4bsm.es.js → flex-B81RbgfK.es.js} +2 -2
  88. package/dist/chunks/{flex-9fkV4bsm.es.js.map → flex-B81RbgfK.es.js.map} +1 -1
  89. package/dist/chunks/{flex-CDVfeTs4.cjs.js → flex-BhVeeItQ.cjs.js} +2 -2
  90. package/dist/chunks/{flex-CDVfeTs4.cjs.js.map → flex-BhVeeItQ.cjs.js.map} +1 -1
  91. package/dist/chunks/{form-field-CM_uSyZr.cjs.js → form-field-B6lCvcf4.cjs.js} +2 -2
  92. package/dist/chunks/{form-field-CM_uSyZr.cjs.js.map → form-field-B6lCvcf4.cjs.js.map} +1 -1
  93. package/dist/chunks/{form-field-B1vOlQXH.es.js → form-field-BgKHtyTH.es.js} +4 -4
  94. package/dist/chunks/{form-field-B1vOlQXH.es.js.map → form-field-BgKHtyTH.es.js.map} +1 -1
  95. package/dist/chunks/{grid-Dm38IozR.cjs.js → grid-CWdLtU5p.cjs.js} +2 -2
  96. package/dist/chunks/{grid-Dm38IozR.cjs.js.map → grid-CWdLtU5p.cjs.js.map} +1 -1
  97. package/dist/chunks/{grid-DcLdIZYK.es.js → grid-Cdmh4YaF.es.js} +2 -2
  98. package/dist/chunks/{grid-DcLdIZYK.es.js.map → grid-Cdmh4YaF.es.js.map} +1 -1
  99. package/dist/chunks/grid-item-CJHf3veC.cjs.js +2 -0
  100. package/dist/chunks/grid-item-CJHf3veC.cjs.js.map +1 -0
  101. package/dist/chunks/grid-item-CpPkpUVF.es.js +78 -0
  102. package/dist/chunks/grid-item-CpPkpUVF.es.js.map +1 -0
  103. package/dist/chunks/{icon-DxRnsJFu.cjs.js → icon-C_BZeqkm.cjs.js} +2 -2
  104. package/dist/chunks/{icon-DxRnsJFu.cjs.js.map → icon-C_BZeqkm.cjs.js.map} +1 -1
  105. package/dist/chunks/{icon-Cgp53xQ2.es.js → icon-DTe62Nqz.es.js} +2 -2
  106. package/dist/chunks/{icon-Cgp53xQ2.es.js.map → icon-DTe62Nqz.es.js.map} +1 -1
  107. package/dist/chunks/{icon-button-KMr_sm5y.cjs.js → icon-button-BBkPfAM3.cjs.js} +2 -2
  108. package/dist/chunks/{icon-button-KMr_sm5y.cjs.js.map → icon-button-BBkPfAM3.cjs.js.map} +1 -1
  109. package/dist/chunks/{icon-button-DhmHHVhL.es.js → icon-button-D2qU4Eun.es.js} +2 -2
  110. package/dist/chunks/{icon-button-DhmHHVhL.es.js.map → icon-button-D2qU4Eun.es.js.map} +1 -1
  111. package/dist/chunks/{icon-toggle-button-p3GT9QUC.cjs.js → icon-toggle-button-L_kYjNhI.cjs.js} +2 -2
  112. package/dist/chunks/{icon-toggle-button-p3GT9QUC.cjs.js.map → icon-toggle-button-L_kYjNhI.cjs.js.map} +1 -1
  113. package/dist/chunks/{icon-toggle-button-Dfzrgtgw.es.js → icon-toggle-button-wjYSiFhl.es.js} +2 -2
  114. package/dist/chunks/{icon-toggle-button-Dfzrgtgw.es.js.map → icon-toggle-button-wjYSiFhl.es.js.map} +1 -1
  115. package/dist/chunks/{image-B_X4IZ54.es.js → image-B2WbQ5hi.es.js} +2 -2
  116. package/dist/chunks/{image-B_X4IZ54.es.js.map → image-B2WbQ5hi.es.js.map} +1 -1
  117. package/dist/chunks/image-BAqoLZQB.cjs.js +2 -0
  118. package/dist/chunks/{image-DCZ7u0Yz.cjs.js.map → image-BAqoLZQB.cjs.js.map} +1 -1
  119. package/dist/chunks/{image-CenZDDs1.cjs.js → image-BP9LcU28.cjs.js} +2 -2
  120. package/dist/chunks/{image-CenZDDs1.cjs.js.map → image-BP9LcU28.cjs.js.map} +1 -1
  121. package/dist/chunks/{image-Dk3v9f16.es.js → image-BycsRl2K.es.js} +2 -2
  122. package/dist/chunks/{image-Dk3v9f16.es.js.map → image-BycsRl2K.es.js.map} +1 -1
  123. package/dist/chunks/{heading-DYcfaS5T.es.js → index-0CyuQQet.es.js} +2 -2
  124. package/dist/chunks/index-0CyuQQet.es.js.map +1 -0
  125. package/dist/chunks/index-x9OhLGGf.cjs.js +2 -0
  126. package/dist/chunks/index-x9OhLGGf.cjs.js.map +1 -0
  127. package/dist/chunks/{kbd-CUSbYvfc.es.js → kbd-CDEXQyg2.es.js} +2 -2
  128. package/dist/chunks/{kbd-CUSbYvfc.es.js.map → kbd-CDEXQyg2.es.js.map} +1 -1
  129. package/dist/chunks/{kbd-CSMHvaH6.cjs.js → kbd-DP3lZ80W.cjs.js} +2 -2
  130. package/dist/chunks/{kbd-CSMHvaH6.cjs.js.map → kbd-DP3lZ80W.cjs.js.map} +1 -1
  131. package/dist/chunks/{link-B2cOAxZz.cjs.js → link-DMl9zyrR.cjs.js} +2 -2
  132. package/dist/chunks/{link-B2cOAxZz.cjs.js.map → link-DMl9zyrR.cjs.js.map} +1 -1
  133. package/dist/chunks/{link-DteZUB4U.es.js → link-Db9S7XvR.es.js} +2 -2
  134. package/dist/chunks/{link-DteZUB4U.es.js.map → link-Db9S7XvR.es.js.map} +1 -1
  135. package/dist/chunks/{list-Bm8bFcHO.cjs.js → list-r1G4iBXo.cjs.js} +2 -2
  136. package/dist/chunks/{list-Bm8bFcHO.cjs.js.map → list-r1G4iBXo.cjs.js.map} +1 -1
  137. package/dist/chunks/{list-De4DYOvu.es.js → list-x423RThD.es.js} +2 -2
  138. package/dist/chunks/{list-De4DYOvu.es.js.map → list-x423RThD.es.js.map} +1 -1
  139. package/dist/chunks/{loading-spinner-Czc9y_Gn.cjs.js → loading-spinner-BLDpwNFm.cjs.js} +2 -2
  140. package/dist/chunks/{loading-spinner-Czc9y_Gn.cjs.js.map → loading-spinner-BLDpwNFm.cjs.js.map} +1 -1
  141. package/dist/chunks/{loading-spinner-hZA3mTh7.es.js → loading-spinner-C7yZE-QF.es.js} +2 -2
  142. package/dist/chunks/{loading-spinner-hZA3mTh7.es.js.map → loading-spinner-C7yZE-QF.es.js.map} +1 -1
  143. package/dist/chunks/{multiline-text-input-ChVzVZob.cjs.js → multiline-text-input-BXpftZg5.cjs.js} +2 -2
  144. package/dist/chunks/{multiline-text-input-ChVzVZob.cjs.js.map → multiline-text-input-BXpftZg5.cjs.js.map} +1 -1
  145. package/dist/chunks/{multiline-text-input-BfG35UfF.es.js → multiline-text-input-MJPDSw2d.es.js} +2 -2
  146. package/dist/chunks/{multiline-text-input-BfG35UfF.es.js.map → multiline-text-input-MJPDSw2d.es.js.map} +1 -1
  147. package/dist/chunks/{namespace-E8aHFVxM.cjs.js → namespace-CYjqWfVn.cjs.js} +2 -2
  148. package/dist/chunks/{namespace-E8aHFVxM.cjs.js.map → namespace-CYjqWfVn.cjs.js.map} +1 -1
  149. package/dist/chunks/{namespace-BayyiBSr.es.js → namespace-HxAMZBwF.es.js} +5 -5
  150. package/dist/chunks/{namespace-BayyiBSr.es.js.map → namespace-HxAMZBwF.es.js.map} +1 -1
  151. package/dist/chunks/{number-input-Kj7uy8Kj.es.js → number-input-CFa5dE3r.es.js} +3 -3
  152. package/dist/chunks/{number-input-Kj7uy8Kj.es.js.map → number-input-CFa5dE3r.es.js.map} +1 -1
  153. package/dist/chunks/{number-input-9hCQtXai.cjs.js → number-input-DsQqe_99.cjs.js} +2 -2
  154. package/dist/chunks/{number-input-9hCQtXai.cjs.js.map → number-input-DsQqe_99.cjs.js.map} +1 -1
  155. package/dist/chunks/{password-input-Bw0E-ejz.cjs.js → password-input--fYkZAW3.cjs.js} +2 -2
  156. package/dist/chunks/{password-input-Bw0E-ejz.cjs.js.map → password-input--fYkZAW3.cjs.js.map} +1 -1
  157. package/dist/chunks/{password-input-B5jaUzRa.es.js → password-input-XSc2MhLG.es.js} +5 -5
  158. package/dist/chunks/{password-input-B5jaUzRa.es.js.map → password-input-XSc2MhLG.es.js.map} +1 -1
  159. package/dist/chunks/{progress-bar-BkJEnG2U.es.js → progress-bar-DM8YmshZ.es.js} +4 -4
  160. package/dist/chunks/{progress-bar-BkJEnG2U.es.js.map → progress-bar-DM8YmshZ.es.js.map} +1 -1
  161. package/dist/chunks/{progress-bar-BsWBRJc2.cjs.js → progress-bar-QjY92GQn.cjs.js} +2 -2
  162. package/dist/chunks/{progress-bar-BsWBRJc2.cjs.js.map → progress-bar-QjY92GQn.cjs.js.map} +1 -1
  163. package/dist/chunks/provider-BzZZw3fF.cjs.js.map +1 -1
  164. package/dist/chunks/provider-DxFdjgyb.es.js.map +1 -1
  165. package/dist/chunks/{radio-input-D3ePwO1n.cjs.js → radio-input-BOjuwflu.cjs.js} +2 -2
  166. package/dist/chunks/{radio-input-D3ePwO1n.cjs.js.map → radio-input-BOjuwflu.cjs.js.map} +1 -1
  167. package/dist/chunks/{radio-input-BX3XjxCZ.es.js → radio-input-DRDeKoG2.es.js} +2 -2
  168. package/dist/chunks/{radio-input-BX3XjxCZ.es.js.map → radio-input-DRDeKoG2.es.js.map} +1 -1
  169. package/dist/chunks/{range-calendar-Bk_im2QK.cjs.js → range-calendar-C_x3yqnL.cjs.js} +2 -2
  170. package/dist/chunks/{range-calendar-Bk_im2QK.cjs.js.map → range-calendar-C_x3yqnL.cjs.js.map} +1 -1
  171. package/dist/chunks/{range-calendar-BgJMo6pU.es.js → range-calendar-Cup7ahCy.es.js} +7 -7
  172. package/dist/chunks/{range-calendar-BgJMo6pU.es.js.map → range-calendar-Cup7ahCy.es.js.map} +1 -1
  173. package/dist/chunks/{select-ruNS6UXv.es.js → select-CMZAeYTf.es.js} +6 -6
  174. package/dist/chunks/{select-ruNS6UXv.es.js.map → select-CMZAeYTf.es.js.map} +1 -1
  175. package/dist/chunks/{select-oXXKo_nv.cjs.js → select-CxIiux8H.cjs.js} +2 -2
  176. package/dist/chunks/{select-oXXKo_nv.cjs.js.map → select-CxIiux8H.cjs.js.map} +1 -1
  177. package/dist/chunks/{simple-grid-1F5YBj03.es.js → simple-grid-Crtlocqj.es.js} +3 -3
  178. package/dist/chunks/simple-grid-Crtlocqj.es.js.map +1 -0
  179. package/dist/chunks/{simple-grid-BfDDcTNA.cjs.js → simple-grid-yOwvCBEN.cjs.js} +2 -2
  180. package/dist/chunks/simple-grid-yOwvCBEN.cjs.js.map +1 -0
  181. package/dist/chunks/{split-button-CyEM3H65.es.js → split-button-BZHi7r1E.es.js} +6 -6
  182. package/dist/chunks/{split-button-CyEM3H65.es.js.map → split-button-BZHi7r1E.es.js.map} +1 -1
  183. package/dist/chunks/{split-button-CIHXMvxD.cjs.js → split-button-hRYYvfbx.cjs.js} +2 -2
  184. package/dist/chunks/{split-button-CIHXMvxD.cjs.js.map → split-button-hRYYvfbx.cjs.js.map} +1 -1
  185. package/dist/chunks/stack-B6PqFPMh.cjs.js +2 -0
  186. package/dist/chunks/stack-B6PqFPMh.cjs.js.map +1 -0
  187. package/dist/chunks/stack-CBx-c8hI.es.js +89 -0
  188. package/dist/chunks/stack-CBx-c8hI.es.js.map +1 -0
  189. package/dist/chunks/{switch-B4gRcARZ.es.js → switch-BOvBbCnU.es.js} +2 -2
  190. package/dist/chunks/{switch-B4gRcARZ.es.js.map → switch-BOvBbCnU.es.js.map} +1 -1
  191. package/dist/chunks/{switch-C3AG1gUR.cjs.js → switch-DUiPm-aC.cjs.js} +2 -2
  192. package/dist/chunks/{switch-C3AG1gUR.cjs.js.map → switch-DUiPm-aC.cjs.js.map} +1 -1
  193. package/dist/chunks/{tag-group-BE8wfvqd.es.js → tag-group-C_oBSbrz.es.js} +3 -3
  194. package/dist/chunks/{tag-group-BE8wfvqd.es.js.map → tag-group-C_oBSbrz.es.js.map} +1 -1
  195. package/dist/chunks/{tag-group-BYQkpbiY.cjs.js → tag-group-wXtwUUis.cjs.js} +2 -2
  196. package/dist/chunks/{tag-group-BYQkpbiY.cjs.js.map → tag-group-wXtwUUis.cjs.js.map} +1 -1
  197. package/dist/chunks/{text-QANNJ4E4.es.js → text-B2wziCK6.es.js} +7 -7
  198. package/dist/chunks/text-B2wziCK6.es.js.map +1 -0
  199. package/dist/chunks/text-hUMahKuA.cjs.js +2 -0
  200. package/dist/chunks/text-hUMahKuA.cjs.js.map +1 -0
  201. package/dist/chunks/{text-input-ClB8DzCK.es.js → text-input-B7XCw3SS.es.js} +2 -2
  202. package/dist/chunks/{text-input-ClB8DzCK.es.js.map → text-input-B7XCw3SS.es.js.map} +1 -1
  203. package/dist/chunks/{text-input-DnS2RVDs.cjs.js → text-input-CCX8LUl1.cjs.js} +2 -2
  204. package/dist/chunks/{text-input-DnS2RVDs.cjs.js.map → text-input-CCX8LUl1.cjs.js.map} +1 -1
  205. package/dist/chunks/{time-input-BWkx15sb.cjs.js → time-input-DQaDOtuT.cjs.js} +2 -2
  206. package/dist/chunks/{time-input-BWkx15sb.cjs.js.map → time-input-DQaDOtuT.cjs.js.map} +1 -1
  207. package/dist/chunks/{time-input-DWx_NjPa.es.js → time-input-DiFCm9qO.es.js} +2 -2
  208. package/dist/chunks/{time-input-DWx_NjPa.es.js.map → time-input-DiFCm9qO.es.js.map} +1 -1
  209. package/dist/chunks/{toggle-button-CuDtxD_c.es.js → toggle-button-BpG_UgsK.es.js} +3 -3
  210. package/dist/chunks/{toggle-button-CuDtxD_c.es.js.map → toggle-button-BpG_UgsK.es.js.map} +1 -1
  211. package/dist/chunks/{toggle-button-PE5251Fm.cjs.js → toggle-button-C9XUBlNB.cjs.js} +2 -2
  212. package/dist/chunks/{toggle-button-PE5251Fm.cjs.js.map → toggle-button-C9XUBlNB.cjs.js.map} +1 -1
  213. package/dist/chunks/{toggle-button-group-CXrwjOF0.es.js → toggle-button-group-BjQefKya.es.js} +2 -2
  214. package/dist/chunks/{toggle-button-group-CXrwjOF0.es.js.map → toggle-button-group-BjQefKya.es.js.map} +1 -1
  215. package/dist/chunks/{toggle-button-group-B2G_b7h8.cjs.js → toggle-button-group-C-jzm7ev.cjs.js} +2 -2
  216. package/dist/chunks/{toggle-button-group-B2G_b7h8.cjs.js.map → toggle-button-group-C-jzm7ev.cjs.js.map} +1 -1
  217. package/dist/chunks/{tooltip-Ya7L6lQR.es.js → tooltip-BLyAAnK-.es.js} +2 -2
  218. package/dist/chunks/{tooltip-Ya7L6lQR.es.js.map → tooltip-BLyAAnK-.es.js.map} +1 -1
  219. package/dist/chunks/{tooltip-fOhxG4pp.cjs.js → tooltip-tZKuAv4E.cjs.js} +2 -2
  220. package/dist/chunks/{tooltip-fOhxG4pp.cjs.js.map → tooltip-tZKuAv4E.cjs.js.map} +1 -1
  221. package/dist/chunks/use-recipe-BZ_iqCkN.cjs.js.map +1 -1
  222. package/dist/chunks/use-recipe-CR4W7Dne.es.js.map +1 -1
  223. package/dist/chunks/{walk-object-vr3sAS3_.cjs.js → walk-object-Ad4Rz5Gh.cjs.js} +2 -2
  224. package/dist/chunks/{walk-object-vr3sAS3_.cjs.js.map → walk-object-Ad4Rz5Gh.cjs.js.map} +1 -1
  225. package/dist/chunks/{walk-object-CvcTxMj1.es.js → walk-object-Drjey5HY.es.js} +2 -2
  226. package/dist/chunks/{walk-object-CvcTxMj1.es.js.map → walk-object-Drjey5HY.es.js.map} +1 -1
  227. package/dist/components/accordion.cjs +1 -1
  228. package/dist/components/accordion.es.js +1 -1
  229. package/dist/components/alert.cjs +1 -1
  230. package/dist/components/alert.es.js +1 -1
  231. package/dist/components/avatar.cjs +1 -1
  232. package/dist/components/avatar.es.js +1 -1
  233. package/dist/components/badge.cjs +1 -1
  234. package/dist/components/badge.es.js +1 -1
  235. package/dist/components/box.cjs +1 -1
  236. package/dist/components/box.es.js +1 -1
  237. package/dist/components/button.cjs +1 -1
  238. package/dist/components/button.es.js +1 -1
  239. package/dist/components/calendar.cjs +1 -1
  240. package/dist/components/calendar.es.js +1 -1
  241. package/dist/components/card.cjs +1 -1
  242. package/dist/components/card.es.js +1 -1
  243. package/dist/components/checkbox.cjs +1 -1
  244. package/dist/components/checkbox.es.js +1 -1
  245. package/dist/components/code.cjs +1 -1
  246. package/dist/components/code.es.js +1 -1
  247. package/dist/components/combobox.cjs +1 -1
  248. package/dist/components/combobox.es.js +1 -1
  249. package/dist/components/components.cjs +1 -1
  250. package/dist/components/components.es.js +48 -48
  251. package/dist/components/data-table.cjs +1 -1
  252. package/dist/components/data-table.es.js +1 -1
  253. package/dist/components/date-input.cjs +1 -1
  254. package/dist/components/date-input.es.js +1 -1
  255. package/dist/components/date-picker.cjs +1 -1
  256. package/dist/components/date-picker.es.js +1 -1
  257. package/dist/components/date-range-picker.cjs +1 -1
  258. package/dist/components/date-range-picker.es.js +1 -1
  259. package/dist/components/dialog.cjs +1 -1
  260. package/dist/components/dialog.es.js +1 -1
  261. package/dist/components/divider.cjs +1 -1
  262. package/dist/components/divider.es.js +1 -1
  263. package/dist/components/flex.cjs +1 -1
  264. package/dist/components/flex.es.js +1 -1
  265. package/dist/components/form-field.cjs +1 -1
  266. package/dist/components/form-field.es.js +1 -1
  267. package/dist/components/grid.cjs +1 -1
  268. package/dist/components/grid.es.js +1 -1
  269. package/dist/components/heading.cjs +1 -1
  270. package/dist/components/heading.es.js +1 -1
  271. package/dist/components/icon-button.cjs +1 -1
  272. package/dist/components/icon-button.es.js +1 -1
  273. package/dist/components/icon-toggle-button.cjs +1 -1
  274. package/dist/components/icon-toggle-button.es.js +1 -1
  275. package/dist/components/icon.cjs +1 -1
  276. package/dist/components/icon.es.js +1 -1
  277. package/dist/components/image.cjs +1 -1
  278. package/dist/components/image.es.js +1 -1
  279. package/dist/components/kbd.cjs +1 -1
  280. package/dist/components/kbd.es.js +1 -1
  281. package/dist/components/link.cjs +1 -1
  282. package/dist/components/link.es.js +1 -1
  283. package/dist/components/list.cjs +1 -1
  284. package/dist/components/list.es.js +1 -1
  285. package/dist/components/loading-spinner.cjs +1 -1
  286. package/dist/components/loading-spinner.es.js +1 -1
  287. package/dist/components/multiline-text-input.cjs +1 -1
  288. package/dist/components/multiline-text-input.es.js +1 -1
  289. package/dist/components/number-input.cjs +1 -1
  290. package/dist/components/number-input.es.js +1 -1
  291. package/dist/components/password-input.cjs +1 -1
  292. package/dist/components/password-input.es.js +1 -1
  293. package/dist/components/progress-bar.cjs +1 -1
  294. package/dist/components/progress-bar.es.js +1 -1
  295. package/dist/components/radio-input.cjs +1 -1
  296. package/dist/components/radio-input.es.js +1 -1
  297. package/dist/components/range-calendar.cjs +1 -1
  298. package/dist/components/range-calendar.es.js +1 -1
  299. package/dist/components/select.cjs +1 -1
  300. package/dist/components/select.es.js +1 -1
  301. package/dist/components/simple-grid.cjs +1 -1
  302. package/dist/components/simple-grid.es.js +1 -1
  303. package/dist/components/split-button.cjs +1 -1
  304. package/dist/components/split-button.es.js +1 -1
  305. package/dist/components/stack.cjs +1 -1
  306. package/dist/components/stack.es.js +1 -1
  307. package/dist/components/switch.cjs +1 -1
  308. package/dist/components/switch.es.js +1 -1
  309. package/dist/components/table.cjs +1 -1
  310. package/dist/components/table.es.js +1 -1
  311. package/dist/components/tag-group.cjs +1 -1
  312. package/dist/components/tag-group.es.js +1 -1
  313. package/dist/components/text-input.cjs +1 -1
  314. package/dist/components/text-input.es.js +1 -1
  315. package/dist/components/text.cjs +1 -1
  316. package/dist/components/text.es.js +1 -1
  317. package/dist/components/time-input.cjs +1 -1
  318. package/dist/components/time-input.es.js +1 -1
  319. package/dist/components/toggle-button-group.cjs +1 -1
  320. package/dist/components/toggle-button-group.es.js +1 -1
  321. package/dist/components/toggle-button.cjs +1 -1
  322. package/dist/components/toggle-button.es.js +1 -1
  323. package/dist/components/tooltip.cjs +1 -1
  324. package/dist/components/tooltip.es.js +1 -1
  325. package/dist/components.d.ts +15 -15
  326. package/dist/data-table.d.ts +8 -8
  327. package/dist/heading.d.ts +1 -1
  328. package/dist/index.cjs +1 -1
  329. package/dist/index.cjs.map +1 -1
  330. package/dist/index.d.ts +15 -15
  331. package/dist/index.es.js +48 -48
  332. package/dist/simple-grid.d.ts +1 -1
  333. package/dist/text.d.ts +1 -1
  334. package/package.json +7 -7
  335. package/dist/chunks/box-7pkPaNxe.es.js.map +0 -1
  336. package/dist/chunks/box-DL4MWnyy.cjs.js.map +0 -1
  337. package/dist/chunks/code-DqjWYzPU.cjs.js +0 -2
  338. package/dist/chunks/create-slot-recipe-context-CHGQvGou.cjs.js +0 -2
  339. package/dist/chunks/create-slot-recipe-context-CHGQvGou.cjs.js.map +0 -1
  340. package/dist/chunks/create-slot-recipe-context-DgamNbR-.es.js.map +0 -1
  341. package/dist/chunks/data-table-BRjRsTel.cjs.js +0 -2
  342. package/dist/chunks/data-table-BRjRsTel.cjs.js.map +0 -1
  343. package/dist/chunks/data-table-DR210vqX.es.js.map +0 -1
  344. package/dist/chunks/dialog-B1XThG7_.cjs.js +0 -2
  345. package/dist/chunks/dialog-B1XThG7_.cjs.js.map +0 -1
  346. package/dist/chunks/dialog-De8l1nzr.es.js.map +0 -1
  347. package/dist/chunks/factory-DUzr3LTt.cjs.js +0 -3
  348. package/dist/chunks/factory-DUzr3LTt.cjs.js.map +0 -1
  349. package/dist/chunks/factory-Dwv06Ntb.es.js +0 -266
  350. package/dist/chunks/factory-Dwv06Ntb.es.js.map +0 -1
  351. package/dist/chunks/grid-item-B0PfRhfs.cjs.js +0 -2
  352. package/dist/chunks/grid-item-B0PfRhfs.cjs.js.map +0 -1
  353. package/dist/chunks/grid-item-BZOflk76.es.js +0 -75
  354. package/dist/chunks/grid-item-BZOflk76.es.js.map +0 -1
  355. package/dist/chunks/heading-CEFp09pV.cjs.js +0 -2
  356. package/dist/chunks/heading-CEFp09pV.cjs.js.map +0 -1
  357. package/dist/chunks/heading-DYcfaS5T.es.js.map +0 -1
  358. package/dist/chunks/image-DCZ7u0Yz.cjs.js +0 -2
  359. package/dist/chunks/simple-grid-1F5YBj03.es.js.map +0 -1
  360. package/dist/chunks/simple-grid-BfDDcTNA.cjs.js.map +0 -1
  361. package/dist/chunks/stack-B2xQMEdj.cjs.js +0 -2
  362. package/dist/chunks/stack-B2xQMEdj.cjs.js.map +0 -1
  363. package/dist/chunks/stack-DosdbBli.es.js +0 -89
  364. package/dist/chunks/stack-DosdbBli.es.js.map +0 -1
  365. package/dist/chunks/text-DNjTZCtR.cjs.js +0 -2
  366. package/dist/chunks/text-DNjTZCtR.cjs.js.map +0 -1
  367. package/dist/chunks/text-QANNJ4E4.es.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { jsx as C, Fragment as Rt, jsxs as Te } from "react/jsx-runtime";
2
- import { useMemo as xe, useRef as x, useLayoutEffect as De, useEffect as rt, useState as Nt, createContext as ke, useContext as Fe, memo as Ae, forwardRef as $, createElement as Ie, Children as Ht, isValidElement as Se, cloneElement as Le, useCallback as Re, useId as Be, useSyncExternalStore as Me } from "react";
2
+ import { useMemo as xe, useRef as x, useLayoutEffect as De, useEffect as rt, useState as Nt, createContext as ke, useContext as Fe, memo as Ae, forwardRef as G, createElement as Se, isValidElement as Ie, Children as Ht, cloneElement as Le, useCallback as Re, useId as Be, useSyncExternalStore as Me } from "react";
3
3
  import { flushSync as Dt, createPortal as $e } from "react-dom";
4
- import { c as Ge } from "./create-slot-recipe-context-DgamNbR-.es.js";
5
- import { c as _e } from "./factory-Dwv06Ntb.es.js";
4
+ import { c as Ge } from "./create-slot-recipe-context-DBNItnlK.es.js";
5
+ import { c as _e } from "./factory-BpxiKxSs.es.js";
6
6
  function Ve(t) {
7
7
  return t == null ? [] : Array.isArray(t) ? t : [t];
8
8
  }
9
- var We = (t) => t != null && typeof t == "object", ut = (t) => typeof t == "string", Y = (t) => typeof t == "function", Ue = (t, e) => Object.prototype.hasOwnProperty.call(t, e), je = (t) => Object.prototype.toString.call(t), zt = Function.prototype.toString, Ke = /* @__PURE__ */ zt.call(Object), qe = (t) => {
9
+ var We = (t) => t != null && typeof t == "object", lt = (t) => typeof t == "string", Y = (t) => typeof t == "function", Ue = (t, e) => Object.prototype.hasOwnProperty.call(t, e), je = (t) => Object.prototype.toString.call(t), zt = Function.prototype.toString, Ke = /* @__PURE__ */ zt.call(Object), qe = (t) => {
10
10
  if (!We(t) || je(t) != "[object Object]" || Xe(t)) return !1;
11
11
  const e = Object.getPrototypeOf(t);
12
12
  if (e === null) return !0;
@@ -26,7 +26,7 @@ function Xt(t) {
26
26
  }
27
27
  return r;
28
28
  }
29
- function Ot(...t) {
29
+ function wt(...t) {
30
30
  const e = t.length === 1 ? t[0] : t[1];
31
31
  (t.length === 2 ? t[0] : !0) && process.env.NODE_ENV !== "production" && console.warn(e);
32
32
  }
@@ -34,11 +34,11 @@ function Ze(t, e) {
34
34
  if (t == null) throw new Error(e());
35
35
  }
36
36
  var Yt = () => {
37
- }, pt = (t) => typeof t == "object" && t !== null, Je = 1, Qe = 9, tn = 11, D = (t) => pt(t) && t.nodeType === Je && typeof t.nodeName == "string", kt = (t) => pt(t) && t.nodeType === Qe, en = (t) => pt(t) && t === t.window, Zt = (t) => D(t) ? t.localName || "" : "#document";
37
+ }, ht = (t) => typeof t == "object" && t !== null, Je = 1, Qe = 9, tn = 11, D = (t) => ht(t) && t.nodeType === Je && typeof t.nodeName == "string", kt = (t) => ht(t) && t.nodeType === Qe, en = (t) => ht(t) && t === t.window, Zt = (t) => D(t) ? t.localName || "" : "#document";
38
38
  function nn(t) {
39
39
  return ["html", "body", "#document"].includes(Zt(t));
40
40
  }
41
- var rn = (t) => pt(t) && t.nodeType !== void 0, Z = (t) => rn(t) && t.nodeType === tn && "host" in t, on = (t) => D(t) && t.localName === "input", sn = (t) => D(t) ? t.offsetWidth > 0 || t.offsetHeight > 0 || t.getClientRects().length > 0 : !1, an = /(textarea|select)/;
41
+ var rn = (t) => ht(t) && t.nodeType !== void 0, Z = (t) => rn(t) && t.nodeType === tn && "host" in t, on = (t) => D(t) && t.localName === "input", sn = (t) => D(t) ? t.offsetWidth > 0 || t.offsetHeight > 0 || t.getClientRects().length > 0 : !1, an = /(textarea|select)/;
42
42
  function cn(t) {
43
43
  if (t == null || !D(t)) return !1;
44
44
  try {
@@ -47,7 +47,7 @@ function cn(t) {
47
47
  return !1;
48
48
  }
49
49
  }
50
- function lt(t, e) {
50
+ function dt(t, e) {
51
51
  if (!t || !e || !D(t) || !D(e)) return !1;
52
52
  const r = e.getRootNode?.();
53
53
  if (t === e || t.contains(e)) return !0;
@@ -60,14 +60,14 @@ function lt(t, e) {
60
60
  }
61
61
  return !1;
62
62
  }
63
- function G(t) {
63
+ function R(t) {
64
64
  return kt(t) ? t : en(t) ? t.document : t?.ownerDocument ?? document;
65
65
  }
66
66
  function un(t) {
67
- return G(t).documentElement;
67
+ return R(t).documentElement;
68
68
  }
69
- function ht(t) {
70
- return Z(t) ? ht(t.host) : kt(t) ? t.defaultView ?? window : D(t) ? t.ownerDocument?.defaultView ?? window : window;
69
+ function ot(t) {
70
+ return Z(t) ? ot(t.host) : kt(t) ? t.defaultView ?? window : D(t) ? t.ownerDocument?.defaultView ?? window : window;
71
71
  }
72
72
  function Jt(t) {
73
73
  let e = t.activeElement;
@@ -85,7 +85,7 @@ function ln(t) {
85
85
  }
86
86
  var mt = /* @__PURE__ */ new WeakMap();
87
87
  function Qt(t) {
88
- return mt.has(t) || mt.set(t, ht(t).getComputedStyle(t)), mt.get(t);
88
+ return mt.has(t) || mt.set(t, ot(t).getComputedStyle(t)), mt.get(t);
89
89
  }
90
90
  var te = () => typeof document < "u";
91
91
  function dn() {
@@ -95,7 +95,7 @@ var Ft = (t) => te() && t.test(dn()), Bt = () => te() && !!navigator.maxTouchPoi
95
95
  function gn(t) {
96
96
  return t.composedPath?.() ?? t.nativeEvent?.composedPath?.();
97
97
  }
98
- function B(t) {
98
+ function M(t) {
99
99
  return gn(t)?.[0] ?? t.target;
100
100
  }
101
101
  var mn = (t) => t.button === 2 || ee() && t.ctrlKey && t.button === 0, L = (t, e, r, n) => {
@@ -103,7 +103,7 @@ var mn = (t) => t.button === 2 || ee() && t.ctrlKey && t.button === 0, L = (t, e
103
103
  return o?.addEventListener(e, r, n), () => {
104
104
  o?.removeEventListener(e, r, n);
105
105
  };
106
- }, ne = (t) => D(t) && t.tagName === "IFRAME", vn = (t) => !Number.isNaN(parseInt(t.getAttribute("tabindex") || "0", 10)), yn = (t) => parseInt(t.getAttribute("tabindex") || "0", 10) < 0, At = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type", re = (t, e = !1) => {
106
+ }, ne = (t) => D(t) && t.tagName === "IFRAME", vn = (t) => !Number.isNaN(parseInt(t.getAttribute("tabindex") || "0", 10)), bn = (t) => parseInt(t.getAttribute("tabindex") || "0", 10) < 0, At = "input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type", re = (t, e = !1) => {
107
107
  if (!t) return [];
108
108
  const r = Array.from(t.querySelectorAll(At));
109
109
  (e == !0 || e == "if-empty" && r.length === 0) && D(t) && W(t) && r.unshift(t);
@@ -129,12 +129,12 @@ function oe(t, e) {
129
129
  }), n.length, n;
130
130
  }
131
131
  function K(t) {
132
- return t != null && t.tabIndex > 0 ? !0 : W(t) && !yn(t);
132
+ return t != null && t.tabIndex > 0 ? !0 : W(t) && !bn(t);
133
133
  }
134
134
  function Q(t) {
135
135
  return t.tabIndex < 0 && (/^(audio|video|details)$/.test(t.localName) || cn(t)) && !vn(t) ? 0 : t.tabIndex;
136
136
  }
137
- function bn(t) {
137
+ function yn(t) {
138
138
  const e = /* @__PURE__ */ new Set();
139
139
  function r(n) {
140
140
  const o = globalThis.requestAnimationFrame(n);
@@ -144,7 +144,7 @@ function bn(t) {
144
144
  e.forEach((o) => o());
145
145
  };
146
146
  }
147
- function M(t) {
147
+ function $(t) {
148
148
  let e;
149
149
  const r = globalThis.requestAnimationFrame(() => {
150
150
  e = t();
@@ -153,63 +153,77 @@ function M(t) {
153
153
  globalThis.cancelAnimationFrame(r), e?.();
154
154
  };
155
155
  }
156
- function wt(t) {
156
+ function Ot(t) {
157
157
  const e = ln(t);
158
- return nn(e) ? G(e).body : D(e) && Pn(e) ? e : wt(e);
158
+ return nn(e) ? R(e).body : D(e) && Pn(e) ? e : Ot(e);
159
159
  }
160
160
  var En = /auto|scroll|overlay|hidden|clip/, Nn = /* @__PURE__ */ new Set(["inline", "contents"]);
161
161
  function Pn(t) {
162
- const e = ht(t), { overflow: r, overflowX: n, overflowY: o, display: s } = e.getComputedStyle(t);
162
+ const e = ot(t), { overflow: r, overflowX: n, overflowY: o, display: s } = e.getComputedStyle(t);
163
163
  return En.test(r + o + n) && !Nn.has(s);
164
164
  }
165
- function dt(t, e) {
165
+ function ft(t, e) {
166
166
  if (!t) return Yt;
167
167
  const r = Object.keys(e).reduce((n, o) => (n[o] = t.style.getPropertyValue(o), n), {});
168
168
  return Object.assign(t.style, e), () => {
169
169
  Object.assign(t.style, r), t.style.length === 0 && t.removeAttribute("style");
170
170
  };
171
171
  }
172
- function On(t, e, r) {
172
+ function wn(t, e, r) {
173
173
  if (!t) return Yt;
174
174
  const n = t.style.getPropertyValue(e);
175
175
  return t.style.setProperty(e, r), () => {
176
176
  t.style.setProperty(e, n), t.style.length === 0 && t.removeAttribute("style");
177
177
  };
178
178
  }
179
- var wn = 1e3 / 60;
180
- function Cn(t, e) {
181
- const r = t();
182
- if (D(r) && r.isConnected)
183
- return e(r), () => {
184
- };
185
- {
186
- const n = setInterval(() => {
187
- const o = t();
188
- D(o) && o.isConnected && (e(o), clearInterval(n));
189
- }, wn);
190
- return () => clearInterval(n);
191
- }
179
+ function On(t, e, r) {
180
+ const { signal: n } = e;
181
+ return [new Promise((i, a) => {
182
+ const u = setTimeout(() => {
183
+ a(new Error(`Timeout of ${r}ms exceeded`));
184
+ }, r);
185
+ n.addEventListener("abort", () => {
186
+ clearTimeout(u), a(new Error("Promise aborted"));
187
+ }), t.then((c) => {
188
+ n.aborted || (clearTimeout(u), i(c));
189
+ }).catch((c) => {
190
+ n.aborted || (clearTimeout(u), a(c));
191
+ });
192
+ }), () => e.abort()];
192
193
  }
193
- function Tn(t, e) {
194
- const r = [];
195
- return t?.forEach((n) => {
196
- const o = Cn(n, e);
197
- r.push(o);
198
- }), () => {
199
- r.forEach((n) => n());
200
- };
194
+ function Cn(t, e) {
195
+ const { timeout: r, rootNode: n } = e, o = ot(n), s = R(n), i = new o.AbortController();
196
+ return On(
197
+ new Promise((a) => {
198
+ const u = t();
199
+ if (u) {
200
+ a(u);
201
+ return;
202
+ }
203
+ const c = new o.MutationObserver(() => {
204
+ const d = t();
205
+ d && d.isConnected && (c.disconnect(), a(d));
206
+ });
207
+ c.observe(s.body, {
208
+ childList: !0,
209
+ subtree: !0
210
+ });
211
+ }),
212
+ i,
213
+ r
214
+ );
201
215
  }
202
- var xn = (...t) => t.map((e) => e?.trim?.()).filter(Boolean).join(" "), Dn = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g, Mt = (t) => {
216
+ var Tn = (...t) => t.map((e) => e?.trim?.()).filter(Boolean).join(" "), xn = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g, Mt = (t) => {
203
217
  const e = {};
204
218
  let r;
205
- for (; r = Dn.exec(t); )
219
+ for (; r = xn.exec(t); )
206
220
  e[r[1]] = r[2];
207
221
  return e;
208
- }, kn = (t, e) => {
209
- if (ut(t)) {
210
- if (ut(e)) return `${t};${e}`;
222
+ }, Dn = (t, e) => {
223
+ if (lt(t)) {
224
+ if (lt(e)) return `${t};${e}`;
211
225
  t = Mt(t);
212
- } else ut(e) && (e = Mt(e));
226
+ } else lt(e) && (e = Mt(e));
213
227
  return Object.assign({}, t ?? {}, e ?? {});
214
228
  };
215
229
  function _(...t) {
@@ -221,11 +235,11 @@ function _(...t) {
221
235
  continue;
222
236
  }
223
237
  if (n === "className" || n === "class") {
224
- e[n] = xn(e[n], r[n]);
238
+ e[n] = Tn(e[n], r[n]);
225
239
  continue;
226
240
  }
227
241
  if (n === "style") {
228
- e[n] = kn(e[n], r[n]);
242
+ e[n] = Dn(e[n], r[n]);
229
243
  continue;
230
244
  }
231
245
  e[n] = r[n] !== void 0 ? r[n] : e[n];
@@ -236,8 +250,8 @@ function _(...t) {
236
250
  return e;
237
251
  }
238
252
  var X = /* @__PURE__ */ ((t) => (t.NotStarted = "Not Started", t.Started = "Started", t.Stopped = "Stopped", t))(X || {}), vt = "__init__";
239
- function Fn(t) {
240
- const e = () => t.getRootNode?.() ?? document, r = () => G(e()), n = () => r().defaultView ?? window, o = () => Jt(e());
253
+ function kn(t) {
254
+ const e = () => t.getRootNode?.() ?? document, r = () => R(e()), n = () => r().defaultView ?? window, o = () => Jt(e());
241
255
  return {
242
256
  ...t,
243
257
  getRootNode: e,
@@ -248,7 +262,7 @@ function Fn(t) {
248
262
  getById: (a) => e().getElementById(a)
249
263
  };
250
264
  }
251
- function An(t) {
265
+ function Fn(t) {
252
266
  return new Proxy({}, {
253
267
  get(e, r) {
254
268
  return r === "style" ? (n) => t({ style: n }).style : t;
@@ -256,7 +270,7 @@ function An(t) {
256
270
  });
257
271
  }
258
272
  var se = typeof globalThis.document < "u" ? De : rt;
259
- function ft(t) {
273
+ function pt(t) {
260
274
  const e = t().value ?? t().defaultValue, r = t().isEqual ?? Object.is, [n] = Nt(e), [o, s] = Nt(n), i = t().value !== void 0, a = x(o);
261
275
  a.current = i ? t().value : o;
262
276
  const u = x(a.current);
@@ -264,16 +278,16 @@ function ft(t) {
264
278
  u.current = a.current;
265
279
  }, [o, t().value]);
266
280
  const c = (h) => {
267
- const l = u.current, d = Y(h) ? h(l) : h;
268
- t().debug && console.log(`[bindable > ${t().debug}] setValue`, { next: d, prev: l }), i || s(d), r(d, l) || t().onChange?.(d, l);
281
+ const l = u.current, f = Y(h) ? h(l) : h;
282
+ t().debug && console.log(`[bindable > ${t().debug}] setValue`, { next: f, prev: l }), i || s(f), r(f, l) || t().onChange?.(f, l);
269
283
  };
270
- function f() {
284
+ function d() {
271
285
  return i ? t().value : o;
272
286
  }
273
287
  return {
274
288
  initial: n,
275
289
  ref: a,
276
- get: f,
290
+ get: d,
277
291
  set(h) {
278
292
  (t().sync ? Dt : Ye)(() => c(h));
279
293
  },
@@ -285,10 +299,10 @@ function ft(t) {
285
299
  }
286
300
  };
287
301
  }
288
- ft.cleanup = (t) => {
302
+ pt.cleanup = (t) => {
289
303
  rt(() => t, []);
290
304
  };
291
- ft.ref = (t) => {
305
+ pt.ref = (t) => {
292
306
  const e = x(t);
293
307
  return {
294
308
  get: () => e.current,
@@ -297,7 +311,7 @@ ft.ref = (t) => {
297
311
  }
298
312
  };
299
313
  };
300
- function In(t) {
314
+ function An(t) {
301
315
  const e = x(t);
302
316
  return {
303
317
  get(r) {
@@ -319,26 +333,26 @@ var Sn = (t, e) => {
319
333
  };
320
334
  function ie(t, e = {}) {
321
335
  const r = xe(() => {
322
- const { id: p, ids: g, getRootNode: O } = e;
323
- return Fn({ id: p, ids: g, getRootNode: O });
336
+ const { id: p, ids: g, getRootNode: w } = e;
337
+ return kn({ id: p, ids: g, getRootNode: w });
324
338
  }, [e]), n = (...p) => {
325
339
  t.debug && console.log(...p);
326
- }, o = t.props?.({ props: Xt(e), scope: r }) ?? e, s = Ln(o), i = t.context?.({
340
+ }, o = t.props?.({ props: Xt(e), scope: r }) ?? e, s = In(o), i = t.context?.({
327
341
  prop: s,
328
- bindable: ft,
342
+ bindable: pt,
329
343
  scope: r,
330
344
  flush: $t,
331
345
  getContext() {
332
346
  return u;
333
347
  },
334
348
  getComputed() {
335
- return I;
349
+ return S;
336
350
  },
337
351
  getRefs() {
338
352
  return y;
339
353
  },
340
354
  getEvent() {
341
- return d();
355
+ return f();
342
356
  }
343
357
  }), a = ae(i), u = {
344
358
  get(p) {
@@ -354,7 +368,7 @@ function ie(t, e = {}) {
354
368
  const g = a.current?.[p].get();
355
369
  return a.current?.[p].hash(g);
356
370
  }
357
- }, c = x(/* @__PURE__ */ new Map()), f = x(null), h = x(null), l = x({ type: "" }), d = () => ({
371
+ }, c = x(/* @__PURE__ */ new Map()), d = x(null), h = x(null), l = x({ type: "" }), f = () => ({
358
372
  ...l.current,
359
373
  current() {
360
374
  return l.current;
@@ -370,117 +384,117 @@ function ie(t, e = {}) {
370
384
  hasTag(p) {
371
385
  return !!t.states[P.ref.current]?.tags?.includes(p);
372
386
  }
373
- }), y = In(t.refs?.({ prop: s, context: u }) ?? {}), w = () => ({
387
+ }), y = An(t.refs?.({ prop: s, context: u }) ?? {}), O = () => ({
374
388
  state: m(),
375
389
  context: u,
376
- event: d(),
390
+ event: f(),
377
391
  prop: s,
378
392
  send: Lt,
379
- action: b,
393
+ action: E,
380
394
  guard: N,
381
395
  track: Sn,
382
396
  refs: y,
383
- computed: I,
397
+ computed: S,
384
398
  flush: $t,
385
399
  scope: r,
386
400
  choose: T
387
- }), b = (p) => {
388
- const g = Y(p) ? p(w()) : p;
401
+ }), E = (p) => {
402
+ const g = Y(p) ? p(O()) : p;
389
403
  if (!g) return;
390
- const O = g.map((E) => {
391
- const F = t.implementations?.actions?.[E];
392
- return F || Ot(`[zag-js] No implementation found for action "${JSON.stringify(E)}"`), F;
404
+ const w = g.map((b) => {
405
+ const F = t.implementations?.actions?.[b];
406
+ return F || wt(`[zag-js] No implementation found for action "${JSON.stringify(b)}"`), F;
393
407
  });
394
- for (const E of O)
395
- E?.(w());
396
- }, N = (p) => Y(p) ? p(w()) : t.implementations?.guards?.[p](w()), k = (p) => {
397
- const g = Y(p) ? p(w()) : p;
408
+ for (const b of w)
409
+ b?.(O());
410
+ }, N = (p) => Y(p) ? p(O()) : t.implementations?.guards?.[p](O()), k = (p) => {
411
+ const g = Y(p) ? p(O()) : p;
398
412
  if (!g) return;
399
- const O = g.map((F) => {
413
+ const w = g.map((F) => {
400
414
  const V = t.implementations?.effects?.[F];
401
- return V || Ot(`[zag-js] No implementation found for effect "${JSON.stringify(F)}"`), V;
402
- }), E = [];
403
- for (const F of O) {
404
- const V = F?.(w());
405
- V && E.push(V);
415
+ return V || wt(`[zag-js] No implementation found for effect "${JSON.stringify(F)}"`), V;
416
+ }), b = [];
417
+ for (const F of w) {
418
+ const V = F?.(O());
419
+ V && b.push(V);
406
420
  }
407
- return () => E.forEach((F) => F?.());
421
+ return () => b.forEach((F) => F?.());
408
422
  }, T = (p) => Ve(p).find((g) => {
409
- let O = !g.guard;
410
- return ut(g.guard) ? O = !!N(g.guard) : Y(g.guard) && (O = g.guard(w())), O;
411
- }), I = (p) => {
423
+ let w = !g.guard;
424
+ return lt(g.guard) ? w = !!N(g.guard) : Y(g.guard) && (w = g.guard(O())), w;
425
+ }), S = (p) => {
412
426
  Ze(t.computed, () => "[zag-js] No computed object found on machine");
413
427
  const g = t.computed[p];
414
428
  return g({
415
429
  context: u,
416
- event: d(),
430
+ event: f(),
417
431
  prop: s,
418
432
  refs: y,
419
433
  scope: r,
420
- computed: I
434
+ computed: S
421
435
  });
422
- }, P = ft(() => ({
436
+ }, P = pt(() => ({
423
437
  defaultValue: t.initialState({ prop: s }),
424
438
  onChange(p, g) {
425
- g && (c.current.get(g)?.(), c.current.delete(g)), g && b(t.states[g]?.exit), b(f.current?.actions);
426
- const O = k(t.states[p]?.effects);
427
- if (O && c.current.set(p, O), g === vt) {
428
- b(t.entry);
429
- const E = k(t.effects);
430
- E && c.current.set(vt, E);
439
+ g && (c.current.get(g)?.(), c.current.delete(g)), g && E(t.states[g]?.exit), E(d.current?.actions);
440
+ const w = k(t.states[p]?.effects);
441
+ if (w && c.current.set(p, w), g === vt) {
442
+ E(t.entry);
443
+ const b = k(t.effects);
444
+ b && c.current.set(vt, b);
431
445
  }
432
- b(t.states[p]?.entry);
446
+ E(t.states[p]?.entry);
433
447
  }
434
- })), J = x(void 0), S = x(X.NotStarted);
448
+ })), J = x(void 0), I = x(X.NotStarted);
435
449
  se(() => {
436
450
  queueMicrotask(() => {
437
- const O = S.current === X.Started;
438
- S.current = X.Started, n(O ? "rehydrating..." : "initializing...");
439
- const E = J.current ?? P.initial;
440
- P.invoke(E, O ? P.get() : vt);
451
+ const w = I.current === X.Started;
452
+ I.current = X.Started, n(w ? "rehydrating..." : "initializing...");
453
+ const b = J.current ?? P.initial;
454
+ P.invoke(b, w ? P.get() : vt);
441
455
  });
442
456
  const p = c.current, g = P.ref.current;
443
457
  return () => {
444
- n("unmounting..."), J.current = g, S.current = X.Stopped, p.forEach((O) => O?.()), c.current = /* @__PURE__ */ new Map(), f.current = null, queueMicrotask(() => {
445
- b(t.exit);
458
+ n("unmounting..."), J.current = g, I.current = X.Stopped, p.forEach((w) => w?.()), c.current = /* @__PURE__ */ new Map(), d.current = null, queueMicrotask(() => {
459
+ E(t.exit);
446
460
  });
447
461
  };
448
462
  }, []);
449
463
  const gt = () => "ref" in P ? P.ref.current : P.get(), Lt = (p) => {
450
464
  queueMicrotask(() => {
451
- if (S.current !== X.Started) return;
452
- h.current = l.current, l.current = p, n("send", p);
465
+ if (I.current !== X.Started) return;
466
+ h.current = l.current, l.current = p;
453
467
  let g = gt();
454
- const O = (
468
+ const w = (
455
469
  // @ts-ignore
456
470
  t.states[g].on?.[p.type] ?? // @ts-ignore
457
471
  t.on?.[p.type]
458
- ), E = T(O);
459
- if (!E) return;
460
- f.current = E;
461
- const F = E.target ?? g;
462
- n("transition", E);
472
+ ), b = T(w);
473
+ if (!b) return;
474
+ d.current = b;
475
+ const F = b.target ?? g;
476
+ n("transition", p.type, b.target || g, `(${b.actions})`);
463
477
  const V = F !== g;
464
- V ? Dt(() => P.set(F)) : E.reenter && !V ? P.invoke(g, g) : b(E.actions ?? []);
478
+ V ? Dt(() => P.set(F)) : b.reenter && !V ? P.invoke(g, g) : E(b.actions ?? []);
465
479
  });
466
480
  };
467
- return t.watch?.(w()), {
481
+ return t.watch?.(O()), {
468
482
  state: m(),
469
483
  send: Lt,
470
484
  context: u,
471
485
  prop: s,
472
486
  scope: r,
473
487
  refs: y,
474
- computed: I,
475
- event: d(),
476
- getStatus: () => S.current
488
+ computed: S,
489
+ event: f(),
490
+ getStatus: () => I.current
477
491
  };
478
492
  }
479
493
  function ae(t) {
480
494
  const e = x(t);
481
495
  return e.current = t, e;
482
496
  }
483
- function Ln(t) {
497
+ function In(t) {
484
498
  const e = ae(t);
485
499
  return function(n) {
486
500
  return e.current[n];
@@ -491,8 +505,8 @@ function $t(t) {
491
505
  Dt(() => t());
492
506
  });
493
507
  }
494
- var Rn = /* @__PURE__ */ An((t) => t);
495
- function It(...t) {
508
+ var Ln = /* @__PURE__ */ Fn((t) => t);
509
+ function St(...t) {
496
510
  return (e) => {
497
511
  const r = [];
498
512
  for (const n of t)
@@ -507,10 +521,10 @@ function It(...t) {
507
521
  };
508
522
  };
509
523
  }
510
- function Bn(t, e) {
524
+ function Rn(t, e) {
511
525
  return `${t} returned \`undefined\`. Seems you forgot to wrap component within ${e}`;
512
526
  }
513
- function ot(t = {}) {
527
+ function st(t = {}) {
514
528
  const {
515
529
  name: e,
516
530
  strict: r = !0,
@@ -523,8 +537,8 @@ function ot(t = {}) {
523
537
  function u() {
524
538
  const c = Fe(a);
525
539
  if (!c && r) {
526
- const f = new Error(s ?? Bn(n, o));
527
- throw f.name = "ContextError", Error.captureStackTrace?.(f, u), f;
540
+ const d = new Error(s ?? Rn(n, o));
541
+ throw d.name = "ContextError", Error.captureStackTrace?.(d, u), d;
528
542
  }
529
543
  return c;
530
544
  }
@@ -536,45 +550,44 @@ const ce = () => (t, e) => e.reduce(
536
550
  return s[i] !== void 0 && (o[i] = s[i]), delete s[i], [o, s];
537
551
  },
538
552
  [{}, { ...t }]
539
- ), [Mn, $n] = /* @__PURE__ */ ot({
553
+ ), [Bn, Mn] = /* @__PURE__ */ st({
540
554
  name: "RenderStrategyContext",
541
555
  hookName: "useRenderStrategyContext",
542
556
  providerName: "<RenderStrategyPropsProvider />"
543
- }), Gn = (t) => ce()(t, ["lazyMount", "unmountOnExit"]);
544
- function _n(t) {
557
+ }), $n = (t) => ce()(t, ["lazyMount", "unmountOnExit"]);
558
+ function Gn(t) {
545
559
  let e = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning;
546
560
  return r ? t.ref : (e = Object.getOwnPropertyDescriptor(t, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
547
561
  }
548
- const yt = (t) => {
562
+ const bt = (t) => {
549
563
  const e = Ae(
550
- $((r, n) => {
564
+ G((r, n) => {
551
565
  const { asChild: o, children: s, ...i } = r;
552
566
  if (!o)
553
- return Ie(t, { ...i, ref: n }, s);
554
- const a = Ht.only(s);
555
- if (!Se(a))
567
+ return Se(t, { ...i, ref: n }, s);
568
+ if (!Ie(s))
556
569
  return null;
557
- const u = _n(a);
570
+ const a = Ht.only(s), u = Gn(a);
558
571
  return Le(a, {
559
572
  ..._(i, a.props),
560
- ref: n ? It(n, u) : u
573
+ ref: n ? St(n, u) : u
561
574
  });
562
575
  })
563
576
  );
564
577
  return e.displayName = t.displayName || t.name, e;
565
- }, Vn = () => {
578
+ }, _n = () => {
566
579
  const t = /* @__PURE__ */ new Map();
567
- return new Proxy(yt, {
580
+ return new Proxy(bt, {
568
581
  apply(e, r, n) {
569
- return yt(n[0]);
582
+ return bt(n[0]);
570
583
  },
571
584
  get(e, r) {
572
585
  const n = r;
573
- return t.has(n) || t.set(n, yt(n)), t.get(n);
586
+ return t.has(n) || t.set(n, bt(n)), t.get(n);
574
587
  }
575
588
  });
576
- }, q = /* @__PURE__ */ Vn();
577
- function Wn(t, e) {
589
+ }, q = /* @__PURE__ */ _n();
590
+ function Vn(t, e) {
578
591
  const { state: r, send: n, context: o } = t, s = r.matches("mounted", "unmountSuspended");
579
592
  return {
580
593
  skip: !o.get("initial"),
@@ -587,7 +600,7 @@ function Wn(t, e) {
587
600
  }
588
601
  };
589
602
  }
590
- var Un = {
603
+ var Wn = {
591
604
  props({ props: t }) {
592
605
  return { ...t, present: !!t.present };
593
606
  },
@@ -612,14 +625,17 @@ var Un = {
612
625
  };
613
626
  },
614
627
  exit: ["clearInitial", "cleanupNode"],
615
- watch({ track: t, action: e, prop: r }) {
616
- t([() => r("present")], () => {
617
- e(["setInitial", "syncPresence"]);
628
+ watch({ track: t, prop: e, send: r }) {
629
+ t([() => e("present")], () => {
630
+ r({ type: "PRESENCE.CHANGED" });
618
631
  });
619
632
  },
620
633
  on: {
621
634
  "NODE.SET": {
622
- actions: ["setNode", "setStyles"]
635
+ actions: ["setupNode"]
636
+ },
637
+ "PRESENCE.CHANGED": {
638
+ actions: ["setInitial", "syncPresence"]
623
639
  }
624
640
  },
625
641
  states: {
@@ -666,17 +682,14 @@ var Un = {
666
682
  clearInitial: ({ context: t }) => {
667
683
  t.set("initial", !1);
668
684
  },
669
- cleanupNode: ({ refs: t }) => {
670
- t.set("node", null), t.set("styles", null);
671
- },
672
685
  invokeOnExitComplete: ({ prop: t }) => {
673
686
  t("onExitComplete")?.();
674
687
  },
675
- setNode: ({ refs: t, event: e }) => {
676
- t.set("node", e.node);
688
+ setupNode: ({ refs: t, event: e }) => {
689
+ t.get("node") !== e.node && (t.set("node", e.node), t.set("styles", Qt(e.node)));
677
690
  },
678
- setStyles: ({ refs: t, event: e }) => {
679
- t.set("styles", Qt(e.node));
691
+ cleanupNode: ({ refs: t }) => {
692
+ t.set("node", null), t.set("styles", null);
680
693
  },
681
694
  syncPresence: ({ context: t, refs: e, send: r, prop: n }) => {
682
695
  const o = n("present");
@@ -685,14 +698,14 @@ var Un = {
685
698
  const s = e.get("node");
686
699
  if (!o && s?.ownerDocument.visibilityState === "hidden")
687
700
  return r({ type: "UNMOUNT", src: "visibilitychange" });
688
- M(() => {
689
- const i = st(e.get("styles"));
701
+ $(() => {
702
+ const i = it(e.get("styles"));
690
703
  t.set("unmountAnimationName", i), i === "none" || i === t.get("prevAnimationName") || e.get("styles")?.display === "none" || e.get("styles")?.animationDuration === "0s" ? r({ type: "UNMOUNT", src: "presence.changed" }) : r({ type: "UNMOUNT.SUSPEND" });
691
704
  });
692
705
  },
693
706
  setPrevAnimationName: ({ context: t, refs: e }) => {
694
- M(() => {
695
- t.set("prevAnimationName", st(e.get("styles")));
707
+ $(() => {
708
+ t.set("prevAnimationName", it(e.get("styles")));
696
709
  });
697
710
  },
698
711
  clearPrevAnimationName: ({ context: t }) => {
@@ -704,32 +717,31 @@ var Un = {
704
717
  const n = e.get("node");
705
718
  if (!n) return;
706
719
  const o = (a) => {
707
- (a.composedPath?.()?.[0] ?? a.target) === n && t.set("prevAnimationName", st(e.get("styles")));
720
+ (a.composedPath?.()?.[0] ?? a.target) === n && t.set("prevAnimationName", it(e.get("styles")));
708
721
  }, s = (a) => {
709
- const u = st(e.get("styles"));
710
- B(a) === n && u === t.get("unmountAnimationName") && r({ type: "UNMOUNT", src: "animationend" });
722
+ const u = it(e.get("styles"));
723
+ M(a) === n && u === t.get("unmountAnimationName") && r({ type: "UNMOUNT", src: "animationend" });
711
724
  };
712
725
  n.addEventListener("animationstart", o), n.addEventListener("animationcancel", s), n.addEventListener("animationend", s);
713
- const i = dt(n, { animationFillMode: "forwards" });
726
+ const i = ft(n, { animationFillMode: "forwards" });
714
727
  return () => {
715
- n.removeEventListener("animationstart", o), n.removeEventListener("animationcancel", s), n.removeEventListener("animationend", s), bn(() => i());
728
+ n.removeEventListener("animationstart", o), n.removeEventListener("animationcancel", s), n.removeEventListener("animationend", s), yn(() => i());
716
729
  };
717
730
  }
718
731
  }
719
732
  }
720
733
  };
721
- function st(t) {
734
+ function it(t) {
722
735
  return t?.animationName || "none";
723
736
  }
724
- function jn(t, e = {}) {
725
- const { sync: r = !1 } = e, n = Kn(t);
737
+ function Un(t, e = {}) {
738
+ const { sync: r = !1 } = e, n = jn(t);
726
739
  return Re(
727
- // biome-ignore lint/suspicious/noExplicitAny: <explanation>
728
740
  (...o) => r ? queueMicrotask(() => n.current?.(...o)) : n.current?.(...o),
729
741
  [r, n]
730
742
  );
731
743
  }
732
- function Kn(t) {
744
+ function jn(t) {
733
745
  const e = x(t);
734
746
  return e.current = t, e;
735
747
  }
@@ -737,10 +749,10 @@ const ue = (t = {}) => {
737
749
  const { lazyMount: e, unmountOnExit: r, present: n, skipAnimationOnMount: o = !1, ...s } = t, i = x(!1), a = {
738
750
  ...s,
739
751
  present: n,
740
- onExitComplete: jn(t.onExitComplete)
741
- }, u = ie(Un, a), c = Wn(u);
752
+ onExitComplete: Un(t.onExitComplete)
753
+ }, u = ie(Wn, a), c = Vn(u);
742
754
  c.present && (i.current = !0);
743
- const f = !c.present && !i.current && e || r && !c.present && i.current, h = () => ({
755
+ const d = !c.present && !i.current && e || r && !c.present && i.current, h = () => ({
744
756
  "data-state": c.skip && o ? void 0 : n ? "open" : "closed",
745
757
  hidden: !c.present
746
758
  });
@@ -748,42 +760,42 @@ const ue = (t = {}) => {
748
760
  ref: c.setNode,
749
761
  getPresenceProps: h,
750
762
  present: c.present,
751
- unmounted: f
763
+ unmounted: d
752
764
  };
753
- }, [qn, U] = /* @__PURE__ */ ot({
765
+ }, [Kn, U] = /* @__PURE__ */ st({
754
766
  name: "DialogContext",
755
767
  hookName: "useDialogContext",
756
768
  providerName: "<DialogProvider />"
757
- }), le = /* @__PURE__ */ $((t, e) => {
758
- const r = U(), n = $n(), o = ue({ ...n, present: r.open }), s = _(r.getBackdropProps(), o.getPresenceProps(), t);
759
- return o.unmounted ? null : /* @__PURE__ */ C(q.div, { ...s, ref: It(o.ref, e) });
769
+ }), le = /* @__PURE__ */ G((t, e) => {
770
+ const r = U(), n = Mn(), o = ue({ ...n, present: r.open }), s = _(r.getBackdropProps(), o.getPresenceProps(), t);
771
+ return o.unmounted ? null : /* @__PURE__ */ C(q.div, { ...s, ref: St(o.ref, e) });
760
772
  });
761
773
  le.displayName = "DialogBackdrop";
762
- const de = /* @__PURE__ */ $((t, e) => {
774
+ const de = /* @__PURE__ */ G((t, e) => {
763
775
  const r = U(), n = _(r.getCloseTriggerProps(), t);
764
776
  return /* @__PURE__ */ C(q.button, { ...n, ref: e });
765
777
  });
766
778
  de.displayName = "DialogCloseTrigger";
767
- const [Hn, St] = /* @__PURE__ */ ot({
779
+ const [qn, It] = /* @__PURE__ */ st({
768
780
  name: "PresenceContext",
769
781
  hookName: "usePresenceContext",
770
782
  providerName: "<PresenceProvider />"
771
- }), fe = /* @__PURE__ */ $((t, e) => {
772
- const r = U(), n = St(), o = _(r.getContentProps(), n.getPresenceProps(), t);
773
- return n.unmounted ? null : /* @__PURE__ */ C(q.div, { ...o, ref: It(n.ref, e) });
783
+ }), fe = /* @__PURE__ */ G((t, e) => {
784
+ const r = U(), n = It(), o = _(r.getContentProps(), n.getPresenceProps(), t);
785
+ return n.unmounted ? null : /* @__PURE__ */ C(q.div, { ...o, ref: St(n.ref, e) });
774
786
  });
775
787
  fe.displayName = "DialogContent";
776
- const pe = /* @__PURE__ */ $((t, e) => {
788
+ const pe = /* @__PURE__ */ G((t, e) => {
777
789
  const r = U(), n = _(r.getDescriptionProps(), t);
778
790
  return /* @__PURE__ */ C(q.div, { ...n, ref: e });
779
791
  });
780
792
  pe.displayName = "DialogDescription";
781
- const he = /* @__PURE__ */ $((t, e) => {
793
+ const he = /* @__PURE__ */ G((t, e) => {
782
794
  const r = U(), n = _(r.getPositionerProps(), t);
783
- return St().unmounted ? null : /* @__PURE__ */ C(q.div, { ...n, ref: e });
795
+ return It().unmounted ? null : /* @__PURE__ */ C(q.div, { ...n, ref: e });
784
796
  });
785
797
  he.displayName = "DialogPositioner";
786
- const zn = (t) => ce()(t, [
798
+ const Hn = (t) => ce()(t, [
787
799
  "immediate",
788
800
  "lazyMount",
789
801
  "onExitComplete",
@@ -793,7 +805,7 @@ const zn = (t) => ce()(t, [
793
805
  ]);
794
806
  var nt = (t, e = []) => ({
795
807
  parts: (...r) => {
796
- if (Xn(e))
808
+ if (zn(e))
797
809
  return nt(t, r);
798
810
  throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?");
799
811
  },
@@ -813,60 +825,60 @@ var nt = (t, e = []) => ({
813
825
  }),
814
826
  {}
815
827
  )
816
- }), H = (t) => t.replace(/([A-Z])([A-Z])/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), Xn = (t) => t.length === 0, z = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), at = {}, bt = 0, ge = (t) => t && (t.host || ge(t.parentNode)), Yn = (t, e) => e.map((r) => {
828
+ }), H = (t) => t.replace(/([A-Z])([A-Z])/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase(), zn = (t) => t.length === 0, z = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), ct = {}, yt = 0, ge = (t) => t && (t.host || ge(t.parentNode)), Xn = (t, e) => e.map((r) => {
817
829
  if (t.contains(r)) return r;
818
830
  const n = ge(r);
819
831
  return n && t.contains(n) ? n : (console.error("[zag-js > ariaHidden] target", r, "in not contained inside", t, ". Doing nothing"), null);
820
- }).filter((r) => !!r), Zn = /* @__PURE__ */ new Set(["script", "output", "status", "next-route-announcer"]), Jn = (t) => Zn.has(t.localName) || t.role === "status" || t.hasAttribute("aria-live") ? !0 : t.matches("[data-live-announcer]"), Qn = (t, e) => {
821
- const { parentNode: r, markerName: n, controlAttribute: o } = e, s = Yn(r, Array.isArray(t) ? t : [t]);
822
- at[n] || (at[n] = /* @__PURE__ */ new WeakMap());
823
- const i = at[n], a = [], u = /* @__PURE__ */ new Set(), c = new Set(s), f = (l) => {
824
- !l || u.has(l) || (u.add(l), f(l.parentNode));
832
+ }).filter((r) => !!r), Yn = /* @__PURE__ */ new Set(["script", "output", "status", "next-route-announcer"]), Zn = (t) => Yn.has(t.localName) || t.role === "status" || t.hasAttribute("aria-live") ? !0 : t.matches("[data-live-announcer]"), Jn = (t, e) => {
833
+ const { parentNode: r, markerName: n, controlAttribute: o } = e, s = Xn(r, Array.isArray(t) ? t : [t]);
834
+ ct[n] || (ct[n] = /* @__PURE__ */ new WeakMap());
835
+ const i = ct[n], a = [], u = /* @__PURE__ */ new Set(), c = new Set(s), d = (l) => {
836
+ !l || u.has(l) || (u.add(l), d(l.parentNode));
825
837
  };
826
- s.forEach(f);
838
+ s.forEach(d);
827
839
  const h = (l) => {
828
- !l || c.has(l) || Array.prototype.forEach.call(l.children, (d) => {
829
- if (u.has(d))
830
- h(d);
840
+ !l || c.has(l) || Array.prototype.forEach.call(l.children, (f) => {
841
+ if (u.has(f))
842
+ h(f);
831
843
  else
832
844
  try {
833
- if (Jn(d)) return;
834
- const y = d.getAttribute(o) === "true", w = (z.get(d) || 0) + 1, b = (i.get(d) || 0) + 1;
835
- z.set(d, w), i.set(d, b), a.push(d), w === 1 && y && it.set(d, !0), b === 1 && d.setAttribute(n, ""), y || d.setAttribute(o, "true");
845
+ if (Zn(f)) return;
846
+ const y = f.getAttribute(o) === "true", O = (z.get(f) || 0) + 1, E = (i.get(f) || 0) + 1;
847
+ z.set(f, O), i.set(f, E), a.push(f), O === 1 && y && at.set(f, !0), E === 1 && f.setAttribute(n, ""), y || f.setAttribute(o, "true");
836
848
  } catch (m) {
837
- console.error("[zag-js > ariaHidden] cannot operate on ", d, m);
849
+ console.error("[zag-js > ariaHidden] cannot operate on ", f, m);
838
850
  }
839
851
  });
840
852
  };
841
- return h(r), u.clear(), bt++, () => {
853
+ return h(r), u.clear(), yt++, () => {
842
854
  a.forEach((l) => {
843
- const d = z.get(l) - 1, m = i.get(l) - 1;
844
- z.set(l, d), i.set(l, m), d || (it.has(l) || l.removeAttribute(o), it.delete(l)), m || l.removeAttribute(n);
845
- }), bt--, bt || (z = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), it = /* @__PURE__ */ new WeakMap(), at = {});
855
+ const f = z.get(l) - 1, m = i.get(l) - 1;
856
+ z.set(l, f), i.set(l, m), f || (at.has(l) || l.removeAttribute(o), at.delete(l)), m || l.removeAttribute(n);
857
+ }), yt--, yt || (z = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), ct = {});
846
858
  };
847
- }, tr = (t) => (Array.isArray(t) ? t[0] : t).ownerDocument.body, er = (t, e = tr(t), r = "data-aria-hidden") => {
859
+ }, Qn = (t) => (Array.isArray(t) ? t[0] : t).ownerDocument.body, tr = (t, e = Qn(t), r = "data-aria-hidden") => {
848
860
  if (e)
849
- return Qn(t, {
861
+ return Jn(t, {
850
862
  parentNode: e,
851
863
  markerName: r,
852
864
  controlAttribute: "aria-hidden"
853
865
  });
854
- }, nr = (t) => {
866
+ }, er = (t) => {
855
867
  const e = requestAnimationFrame(() => t());
856
868
  return () => cancelAnimationFrame(e);
857
869
  };
858
- function rr(t, e = {}) {
859
- const { defer: r = !0 } = e, n = r ? nr : (s) => s(), o = [];
870
+ function nr(t, e = {}) {
871
+ const { defer: r = !0 } = e, n = r ? er : (s) => s(), o = [];
860
872
  return o.push(
861
873
  n(() => {
862
874
  const i = (typeof t == "function" ? t() : t).filter(Boolean);
863
- i.length !== 0 && o.push(er(i));
875
+ i.length !== 0 && o.push(tr(i));
864
876
  })
865
877
  ), () => {
866
878
  o.forEach((s) => s?.());
867
879
  };
868
880
  }
869
- function or(t) {
881
+ function rr(t) {
870
882
  const e = {
871
883
  each(r) {
872
884
  for (let n = 0; n < t.frames?.length; n += 1) {
@@ -898,7 +910,7 @@ function or(t) {
898
910
  };
899
911
  return e;
900
912
  }
901
- function sr(t) {
913
+ function or(t) {
902
914
  const e = t.frameElement != null ? t.parent : null;
903
915
  return {
904
916
  addEventListener: (r, n, o) => {
@@ -922,18 +934,18 @@ function sr(t) {
922
934
  };
923
935
  }
924
936
  var Gt = "pointerdown.outside", _t = "focus.outside";
925
- function ir(t) {
937
+ function sr(t) {
926
938
  for (const e of t)
927
939
  if (D(e) && W(e)) return !0;
928
940
  return !1;
929
941
  }
930
942
  var me = (t) => "clientY" in t;
931
- function ar(t, e) {
943
+ function ir(t, e) {
932
944
  if (!me(e) || !t) return !1;
933
945
  const r = t.getBoundingClientRect();
934
946
  return r.width === 0 || r.height === 0 ? !1 : r.top <= e.clientY && e.clientY <= r.top + r.height && r.left <= e.clientX && e.clientX <= r.left + r.width;
935
947
  }
936
- function cr(t, e) {
948
+ function ar(t, e) {
937
949
  return t.y <= e.y && e.y <= t.y + t.height && t.x <= e.x && e.x <= t.x + t.width;
938
950
  }
939
951
  function Vt(t, e) {
@@ -947,29 +959,29 @@ function Vt(t, e) {
947
959
  x: t.clientX,
948
960
  y: t.clientY
949
961
  };
950
- return cr(i, a) ? n || s : !1;
962
+ return ar(i, a) ? n || s : !1;
951
963
  }
952
- function ur(t, e) {
964
+ function cr(t, e) {
953
965
  const { exclude: r, onFocusOutside: n, onPointerDownOutside: o, onInteractOutside: s, defer: i } = e;
954
966
  if (!t) return;
955
- const a = G(t), u = ht(t), c = or(u), f = sr(u);
967
+ const a = R(t), u = ot(t), c = rr(u), d = or(u);
956
968
  function h(N, k) {
957
- if (!D(k) || !k.isConnected || lt(t, k) || ar(t, N)) return !1;
969
+ if (!D(k) || !k.isConnected || dt(t, k) || ir(t, N)) return !1;
958
970
  const T = a.querySelector(`[aria-controls="${t.id}"]`);
959
971
  if (T) {
960
- const P = wt(T);
972
+ const P = Ot(T);
961
973
  if (Vt(N, P)) return !1;
962
974
  }
963
- const I = wt(t);
964
- return Vt(N, I) ? !1 : !r?.(k);
975
+ const S = Ot(t);
976
+ return Vt(N, S) ? !1 : !r?.(k);
965
977
  }
966
- const l = /* @__PURE__ */ new Set(), d = Z(t?.getRootNode());
978
+ const l = /* @__PURE__ */ new Set(), f = Z(t?.getRootNode());
967
979
  function m(N) {
968
980
  function k(T) {
969
- const I = i && !Bt() ? M : (S) => S(), P = T ?? N, J = P?.composedPath?.() ?? [P?.target];
970
- I(() => {
971
- const S = d ? J[0] : B(N);
972
- if (!(!t || !h(N, S))) {
981
+ const S = i && !Bt() ? $ : (I) => I(), P = T ?? N, J = P?.composedPath?.() ?? [P?.target];
982
+ S(() => {
983
+ const I = f ? J[0] : M(N);
984
+ if (!(!t || !h(N, I))) {
973
985
  if (o || s) {
974
986
  const gt = Pt(o, s);
975
987
  t.addEventListener(Gt, gt, { once: !0 });
@@ -980,25 +992,25 @@ function ur(t, e) {
980
992
  detail: {
981
993
  originalEvent: P,
982
994
  contextmenu: mn(P),
983
- focusable: ir(J),
984
- target: S
995
+ focusable: sr(J),
996
+ target: I
985
997
  }
986
998
  });
987
999
  }
988
1000
  });
989
1001
  }
990
- N.pointerType === "touch" ? (l.forEach((T) => T()), l.add(L(a, "click", k, { once: !0 })), l.add(f.addEventListener("click", k, { once: !0 })), l.add(c.addEventListener("click", k, { once: !0 }))) : k();
1002
+ N.pointerType === "touch" ? (l.forEach((T) => T()), l.add(L(a, "click", k, { once: !0 })), l.add(d.addEventListener("click", k, { once: !0 })), l.add(c.addEventListener("click", k, { once: !0 }))) : k();
991
1003
  }
992
- const y = /* @__PURE__ */ new Set(), w = setTimeout(() => {
993
- y.add(L(a, "pointerdown", m, !0)), y.add(f.addEventListener("pointerdown", m, !0)), y.add(c.addEventListener("pointerdown", m, !0));
1004
+ const y = /* @__PURE__ */ new Set(), O = setTimeout(() => {
1005
+ y.add(L(a, "pointerdown", m, !0)), y.add(d.addEventListener("pointerdown", m, !0)), y.add(c.addEventListener("pointerdown", m, !0));
994
1006
  }, 0);
995
- function b(N) {
996
- (i ? M : (T) => T())(() => {
997
- const T = B(N);
1007
+ function E(N) {
1008
+ (i ? $ : (T) => T())(() => {
1009
+ const T = M(N);
998
1010
  if (!(!t || !h(N, T))) {
999
1011
  if (n || s) {
1000
- const I = Pt(n, s);
1001
- t.addEventListener(_t, I, { once: !0 });
1012
+ const S = Pt(n, s);
1013
+ t.addEventListener(_t, S, { once: !0 });
1002
1014
  }
1003
1015
  Wt(t, _t, {
1004
1016
  bubbles: !1,
@@ -1013,16 +1025,16 @@ function ur(t, e) {
1013
1025
  }
1014
1026
  });
1015
1027
  }
1016
- return Bt() || (y.add(L(a, "focusin", b, !0)), y.add(f.addEventListener("focusin", b, !0)), y.add(c.addEventListener("focusin", b, !0))), () => {
1017
- clearTimeout(w), l.forEach((N) => N()), y.forEach((N) => N());
1028
+ return Bt() || (y.add(L(a, "focusin", E, !0)), y.add(d.addEventListener("focusin", E, !0)), y.add(c.addEventListener("focusin", E, !0))), () => {
1029
+ clearTimeout(O), l.forEach((N) => N()), y.forEach((N) => N());
1018
1030
  };
1019
1031
  }
1020
- function lr(t, e) {
1021
- const { defer: r } = e, n = r ? M : (s) => s(), o = [];
1032
+ function ur(t, e) {
1033
+ const { defer: r } = e, n = r ? $ : (s) => s(), o = [];
1022
1034
  return o.push(
1023
1035
  n(() => {
1024
1036
  const s = typeof t == "function" ? t() : t;
1025
- o.push(ur(s, e));
1037
+ o.push(cr(s, e));
1026
1038
  })
1027
1039
  ), () => {
1028
1040
  o.forEach((s) => s?.());
@@ -1032,11 +1044,11 @@ function Wt(t, e, r) {
1032
1044
  const n = t.ownerDocument.defaultView || window, o = new n.CustomEvent(e, r);
1033
1045
  return t.dispatchEvent(o);
1034
1046
  }
1035
- function dr(t, e) {
1047
+ function lr(t, e) {
1036
1048
  const r = (n) => {
1037
1049
  n.key === "Escape" && (n.isComposing || e?.(n));
1038
1050
  };
1039
- return L(G(t), "keydown", r, { capture: !0 });
1051
+ return L(R(t), "keydown", r, { capture: !0 });
1040
1052
  }
1041
1053
  var A = {
1042
1054
  layers: [],
@@ -1064,10 +1076,10 @@ var A = {
1064
1076
  return Array.from(this.layers).slice(this.indexOf(t) + 1);
1065
1077
  },
1066
1078
  isInNestedLayer(t, e) {
1067
- return this.getNestedLayers(t).some((r) => lt(r.node, e));
1079
+ return this.getNestedLayers(t).some((r) => dt(r.node, e));
1068
1080
  },
1069
1081
  isInBranch(t) {
1070
- return Array.from(this.branches).some((e) => lt(e, t));
1082
+ return Array.from(this.branches).some((e) => dt(e, t));
1071
1083
  },
1072
1084
  add(t) {
1073
1085
  const e = this.layers.push(t);
@@ -1099,72 +1111,75 @@ function jt() {
1099
1111
  t.style.pointerEvents = A.isBelowPointerBlockingLayer(t) ? "none" : "auto";
1100
1112
  });
1101
1113
  }
1102
- function fr(t) {
1114
+ function dr(t) {
1103
1115
  t.style.pointerEvents = "";
1104
1116
  }
1105
- function pr(t, e) {
1106
- const r = G(t), n = [];
1107
- if (A.hasPointerBlockingLayer() && !r.body.hasAttribute("data-inert") && (Ut = document.body.style.pointerEvents, queueMicrotask(() => {
1117
+ function fr(t, e) {
1118
+ const r = R(t), n = [];
1119
+ return A.hasPointerBlockingLayer() && !r.body.hasAttribute("data-inert") && (Ut = document.body.style.pointerEvents, queueMicrotask(() => {
1108
1120
  r.body.style.pointerEvents = "none", r.body.setAttribute("data-inert", "");
1109
- })), e) {
1110
- const o = Tn(e, (s) => {
1111
- n.push(dt(s, { pointerEvents: "auto" }));
1112
- });
1113
- n.push(o);
1114
- }
1115
- return () => {
1121
+ })), e?.forEach((o) => {
1122
+ const [s, i] = Cn(
1123
+ () => {
1124
+ const a = o();
1125
+ return D(a) ? a : null;
1126
+ },
1127
+ { timeout: 1e3 }
1128
+ );
1129
+ s.then((a) => n.push(ft(a, { pointerEvents: "auto" }))), n.push(i);
1130
+ }), () => {
1116
1131
  A.hasPointerBlockingLayer() || (queueMicrotask(() => {
1117
1132
  r.body.style.pointerEvents = Ut, r.body.removeAttribute("data-inert"), r.body.style.length === 0 && r.body.removeAttribute("style");
1118
1133
  }), n.forEach((o) => o()));
1119
1134
  };
1120
1135
  }
1121
- function hr(t, e) {
1136
+ function pr(t, e) {
1122
1137
  const { warnOnMissingNode: r = !0 } = e;
1123
1138
  if (r && !t) {
1124
- Ot("[@zag-js/dismissable] node is `null` or `undefined`");
1139
+ wt("[@zag-js/dismissable] node is `null` or `undefined`");
1125
1140
  return;
1126
1141
  }
1127
1142
  if (!t)
1128
1143
  return;
1129
1144
  const { onDismiss: n, pointerBlocking: o, exclude: s, debug: i } = e, a = { dismiss: n, node: t, pointerBlocking: o };
1130
1145
  A.add(a), jt();
1131
- function u(d) {
1132
- const m = B(d.detail.originalEvent);
1133
- A.isBelowPointerBlockingLayer(t) || A.isInBranch(m) || (e.onPointerDownOutside?.(d), e.onInteractOutside?.(d), !d.defaultPrevented && (i && console.log("onPointerDownOutside:", d.detail.originalEvent), n?.()));
1146
+ function u(f) {
1147
+ const m = M(f.detail.originalEvent);
1148
+ A.isBelowPointerBlockingLayer(t) || A.isInBranch(m) || (e.onPointerDownOutside?.(f), e.onInteractOutside?.(f), !f.defaultPrevented && (i && console.log("onPointerDownOutside:", f.detail.originalEvent), n?.()));
1134
1149
  }
1135
- function c(d) {
1136
- const m = B(d.detail.originalEvent);
1137
- A.isInBranch(m) || (e.onFocusOutside?.(d), e.onInteractOutside?.(d), !d.defaultPrevented && (i && console.log("onFocusOutside:", d.detail.originalEvent), n?.()));
1150
+ function c(f) {
1151
+ const m = M(f.detail.originalEvent);
1152
+ A.isInBranch(m) || (e.onFocusOutside?.(f), e.onInteractOutside?.(f), !f.defaultPrevented && (i && console.log("onFocusOutside:", f.detail.originalEvent), n?.()));
1138
1153
  }
1139
- function f(d) {
1140
- A.isTopMost(t) && (e.onEscapeKeyDown?.(d), !d.defaultPrevented && n && (d.preventDefault(), n()));
1154
+ function d(f) {
1155
+ A.isTopMost(t) && (e.onEscapeKeyDown?.(f), !f.defaultPrevented && n && (f.preventDefault(), n()));
1141
1156
  }
1142
- function h(d) {
1157
+ function h(f) {
1143
1158
  if (!t) return !1;
1144
- const m = typeof s == "function" ? s() : s, y = Array.isArray(m) ? m : [m], w = e.persistentElements?.map((b) => b()).filter(D);
1145
- return w && y.push(...w), y.some((b) => lt(b, d)) || A.isInNestedLayer(t, d);
1159
+ const m = typeof s == "function" ? s() : s, y = Array.isArray(m) ? m : [m], O = e.persistentElements?.map((E) => E()).filter(D);
1160
+ return O && y.push(...O), y.some((E) => dt(E, f)) || A.isInNestedLayer(t, f);
1146
1161
  }
1147
1162
  const l = [
1148
- o ? pr(t, e.persistentElements) : void 0,
1149
- dr(t, f),
1150
- lr(t, { exclude: h, onFocusOutside: c, onPointerDownOutside: u, defer: e.defer })
1163
+ o ? fr(t, e.persistentElements) : void 0,
1164
+ lr(t, d),
1165
+ ur(t, { exclude: h, onFocusOutside: c, onPointerDownOutside: u, defer: e.defer })
1151
1166
  ];
1152
1167
  return () => {
1153
- A.remove(t), jt(), fr(t), l.forEach((d) => d?.());
1168
+ A.remove(t), jt(), dr(t), l.forEach((f) => f?.());
1154
1169
  };
1155
1170
  }
1156
- function gr(t, e) {
1157
- const { defer: r } = e, n = r ? M : (s) => s(), o = [];
1171
+ function hr(t, e) {
1172
+ const { defer: r } = e, n = r ? $ : (s) => s(), o = [];
1158
1173
  return o.push(
1159
1174
  n(() => {
1160
1175
  const s = Y(t) ? t() : t;
1161
- o.push(hr(s, e));
1176
+ o.push(pr(s, e));
1162
1177
  })
1163
1178
  ), () => {
1164
1179
  o.forEach((s) => s?.());
1165
1180
  };
1166
1181
  }
1167
- var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e, r) => vr(t, typeof e != "symbol" ? e + "" : e, r), Kt = {
1182
+ var gr = Object.defineProperty, mr = (t, e, r) => e in t ? gr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, v = (t, e, r) => mr(t, typeof e != "symbol" ? e + "" : e, r), Kt = {
1168
1183
  activateTrap(t, e) {
1169
1184
  if (t.length > 0) {
1170
1185
  const n = t[t.length - 1];
@@ -1177,7 +1192,7 @@ var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable
1177
1192
  const r = t.indexOf(e);
1178
1193
  r !== -1 && t.splice(r, 1), t.length > 0 && t[t.length - 1].unpause();
1179
1194
  }
1180
- }, yr = [], br = class {
1195
+ }, vr = [], br = class {
1181
1196
  constructor(t, e) {
1182
1197
  v(this, "trapStack"), v(this, "config"), v(this, "doc"), v(this, "state", {
1183
1198
  containers: [],
@@ -1190,7 +1205,7 @@ var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable
1190
1205
  delayInitialFocusTimer: void 0,
1191
1206
  recentNavEvent: void 0
1192
1207
  }), v(this, "listenerCleanups", []), v(this, "handleFocus", (n) => {
1193
- const o = B(n), s = this.findContainerIndex(o, n) >= 0;
1208
+ const o = M(n), s = this.findContainerIndex(o, n) >= 0;
1194
1209
  if (s || kt(o))
1195
1210
  s && (this.state.mostRecentlyFocusedNode = o);
1196
1211
  else {
@@ -1200,8 +1215,8 @@ var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable
1200
1215
  if (Q(this.state.mostRecentlyFocusedNode) > 0) {
1201
1216
  const u = this.findContainerIndex(this.state.mostRecentlyFocusedNode), { tabbableNodes: c } = this.state.containerGroups[u];
1202
1217
  if (c.length > 0) {
1203
- const f = c.findIndex((h) => h === this.state.mostRecentlyFocusedNode);
1204
- f >= 0 && (this.config.isKeyForward(this.state.recentNavEvent) ? f + 1 < c.length && (i = c[f + 1], a = !1) : f - 1 >= 0 && (i = c[f - 1], a = !1));
1218
+ const d = c.findIndex((h) => h === this.state.mostRecentlyFocusedNode);
1219
+ d >= 0 && (this.config.isKeyForward(this.state.recentNavEvent) ? d + 1 < c.length && (i = c[d + 1], a = !1) : d - 1 >= 0 && (i = c[d - 1], a = !1));
1205
1220
  }
1206
1221
  } else
1207
1222
  this.state.containerGroups.some((u) => u.tabbableNodes.some((c) => Q(c) > 0)) || (a = !1);
@@ -1216,7 +1231,7 @@ var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable
1216
1231
  }
1217
1232
  this.state.recentNavEvent = void 0;
1218
1233
  }), v(this, "handlePointerDown", (n) => {
1219
- const o = B(n);
1234
+ const o = M(n);
1220
1235
  if (!(this.findContainerIndex(o, n) >= 0)) {
1221
1236
  if (et(this.config.clickOutsideDeactivates, n)) {
1222
1237
  this.deactivate({ returnFocus: this.config.returnFocusOnDeactivate });
@@ -1225,7 +1240,7 @@ var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable
1225
1240
  et(this.config.allowOutsideClick, n) || n.preventDefault();
1226
1241
  }
1227
1242
  }), v(this, "handleClick", (n) => {
1228
- const o = B(n);
1243
+ const o = M(n);
1229
1244
  this.findContainerIndex(o, n) >= 0 || et(this.config.clickOutsideDeactivates, n) || et(this.config.allowOutsideClick, n) || (n.preventDefault(), n.stopImmediatePropagation());
1230
1245
  }), v(this, "handleTabKey", (n) => {
1231
1246
  if (this.config.isKeyForward(n) || this.config.isKeyBackward(n)) {
@@ -1235,7 +1250,7 @@ var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable
1235
1250
  tt(n) && n.preventDefault(), this.tryFocus(s);
1236
1251
  }
1237
1252
  }), v(this, "handleEscapeKey", (n) => {
1238
- Er(n) && et(this.config.escapeDeactivates, n) !== !1 && (n.preventDefault(), this.deactivate());
1253
+ yr(n) && et(this.config.escapeDeactivates, n) !== !1 && (n.preventDefault(), this.deactivate());
1239
1254
  }), v(this, "_mutationObserver"), v(this, "setupMutationObserver", () => {
1240
1255
  const n = this.doc.defaultView || window;
1241
1256
  this._mutationObserver = new n.MutationObserver((o) => {
@@ -1266,7 +1281,7 @@ var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable
1266
1281
  this.tryFocus(this.getInitialFocusNode());
1267
1282
  return;
1268
1283
  }
1269
- n.focus({ preventScroll: !!this.config.preventScroll }), this.state.mostRecentlyFocusedNode = n, Nr(n) && n.select();
1284
+ n.focus({ preventScroll: !!this.config.preventScroll }), this.state.mostRecentlyFocusedNode = n, Er(n) && n.select();
1270
1285
  }
1271
1286
  }), v(this, "deactivate", (n) => {
1272
1287
  if (!this.state.active) return this;
@@ -1282,15 +1297,15 @@ var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable
1282
1297
  const c = () => {
1283
1298
  qt(() => {
1284
1299
  if (u) {
1285
- const f = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);
1286
- this.tryFocus(f);
1300
+ const d = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);
1301
+ this.tryFocus(d);
1287
1302
  }
1288
1303
  i?.();
1289
1304
  });
1290
1305
  };
1291
1306
  if (u && a) {
1292
- const f = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);
1293
- return a(f).then(c, c), this;
1307
+ const d = this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);
1308
+ return a(d).then(c, c), this;
1294
1309
  }
1295
1310
  return c(), this;
1296
1311
  }), v(this, "pause", (n) => {
@@ -1330,7 +1345,7 @@ var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable
1330
1345
  }
1331
1346
  return a;
1332
1347
  }), v(this, "findNextNavNode", (n) => {
1333
- const { event: o, isBackward: s = !1 } = n, i = n.target || B(o);
1348
+ const { event: o, isBackward: s = !1 } = n, i = n.target || M(o);
1334
1349
  this.updateTabbableNodes();
1335
1350
  let a = null;
1336
1351
  if (this.state.tabbableGroups.length > 0) {
@@ -1338,26 +1353,26 @@ var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable
1338
1353
  if (u < 0)
1339
1354
  s ? a = this.state.tabbableGroups[this.state.tabbableGroups.length - 1].lastTabbableNode : a = this.state.tabbableGroups[0].firstTabbableNode;
1340
1355
  else if (s) {
1341
- let f = this.state.tabbableGroups.findIndex(
1356
+ let d = this.state.tabbableGroups.findIndex(
1342
1357
  ({ firstTabbableNode: h }) => i === h
1343
1358
  );
1344
- if (f < 0 && (c?.container === i || W(i) && !K(i) && !c?.nextTabbableNode(i, !1)) && (f = u), f >= 0) {
1345
- const h = f === 0 ? this.state.tabbableGroups.length - 1 : f - 1, l = this.state.tabbableGroups[h];
1359
+ if (d < 0 && (c?.container === i || W(i) && !K(i) && !c?.nextTabbableNode(i, !1)) && (d = u), d >= 0) {
1360
+ const h = d === 0 ? this.state.tabbableGroups.length - 1 : d - 1, l = this.state.tabbableGroups[h];
1346
1361
  a = Q(i) >= 0 ? l.lastTabbableNode : l.lastDomTabbableNode;
1347
1362
  } else tt(o) || (a = c?.nextTabbableNode(i, !1));
1348
1363
  } else {
1349
- let f = this.state.tabbableGroups.findIndex(
1364
+ let d = this.state.tabbableGroups.findIndex(
1350
1365
  ({ lastTabbableNode: h }) => i === h
1351
1366
  );
1352
- if (f < 0 && (c?.container === i || W(i) && !K(i) && !c?.nextTabbableNode(i)) && (f = u), f >= 0) {
1353
- const h = f === this.state.tabbableGroups.length - 1 ? 0 : f + 1, l = this.state.tabbableGroups[h];
1367
+ if (d < 0 && (c?.container === i || W(i) && !K(i) && !c?.nextTabbableNode(i)) && (d = u), d >= 0) {
1368
+ const h = d === this.state.tabbableGroups.length - 1 ? 0 : d + 1, l = this.state.tabbableGroups[h];
1354
1369
  a = Q(i) >= 0 ? l.firstTabbableNode : l.firstDomTabbableNode;
1355
1370
  } else tt(o) || (a = c?.nextTabbableNode(i));
1356
1371
  }
1357
1372
  } else
1358
1373
  a = this.getNodeForOption("fallbackFocus");
1359
1374
  return a;
1360
- }), this.trapStack = e.trapStack || yr;
1375
+ }), this.trapStack = e.trapStack || vr;
1361
1376
  const r = {
1362
1377
  returnFocusOnDeactivate: !0,
1363
1378
  escapeDeactivates: !0,
@@ -1370,7 +1385,7 @@ var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable
1370
1385
  },
1371
1386
  ...e
1372
1387
  };
1373
- this.doc = r.document || G(Array.isArray(t) ? t[0] : t), this.config = r, this.updateContainerElements(t), this.setupMutationObserver();
1388
+ this.doc = r.document || R(Array.isArray(t) ? t[0] : t), this.config = r, this.updateContainerElements(t), this.setupMutationObserver();
1374
1389
  }
1375
1390
  get active() {
1376
1391
  return this.state.active;
@@ -1387,9 +1402,9 @@ var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable
1387
1402
  updateTabbableNodes() {
1388
1403
  if (this.state.containerGroups = this.state.containers.map((t) => {
1389
1404
  const e = oe(t), r = re(t), n = e.length > 0 ? e[0] : void 0, o = e.length > 0 ? e[e.length - 1] : void 0, s = r.find((c) => K(c)), i = r.slice().reverse().find((c) => K(c)), a = !!e.find((c) => Q(c) > 0);
1390
- function u(c, f = !0) {
1405
+ function u(c, d = !0) {
1391
1406
  const h = e.indexOf(c);
1392
- return h < 0 ? f ? r.slice(r.indexOf(c) + 1).find((l) => K(l)) : r.slice(0, r.indexOf(c)).reverse().find((l) => K(l)) : e[h + (f ? 1 : -1)];
1407
+ return h < 0 ? d ? r.slice(r.indexOf(c) + 1).find((l) => K(l)) : r.slice(0, r.indexOf(c)).reverse().find((l) => K(l)) : e[h + (d ? 1 : -1)];
1393
1408
  }
1394
1409
  return {
1395
1410
  container: t,
@@ -1438,10 +1453,10 @@ var mr = Object.defineProperty, vr = (t, e, r) => e in t ? mr(t, e, { enumerable
1438
1453
  };
1439
1454
  return n ? (n(this.state.containers.concat()).then(o, o), this) : (o(), this);
1440
1455
  }
1441
- }, tt = (t) => t.key === "Tab", et = (t, ...e) => typeof t == "function" ? t(...e) : t, Er = (t) => !t.isComposing && t.key === "Escape", qt = (t) => setTimeout(t, 0), Nr = (t) => t.localName === "input" && "select" in t && typeof t.select == "function";
1442
- function Pr(t, e = {}) {
1456
+ }, tt = (t) => t.key === "Tab", et = (t, ...e) => typeof t == "function" ? t(...e) : t, yr = (t) => !t.isComposing && t.key === "Escape", qt = (t) => setTimeout(t, 0), Er = (t) => t.localName === "input" && "select" in t && typeof t.select == "function";
1457
+ function Nr(t, e = {}) {
1443
1458
  let r;
1444
- const n = M(() => {
1459
+ const n = $(() => {
1445
1460
  const o = typeof t == "function" ? t() : t;
1446
1461
  if (o) {
1447
1462
  r = new br(o, {
@@ -1452,7 +1467,7 @@ function Pr(t, e = {}) {
1452
1467
  delayInitialFocus: !1,
1453
1468
  fallbackFocus: o,
1454
1469
  ...e,
1455
- document: G(o)
1470
+ document: R(o)
1456
1471
  });
1457
1472
  try {
1458
1473
  r.activate();
@@ -1465,7 +1480,7 @@ function Pr(t, e = {}) {
1465
1480
  };
1466
1481
  }
1467
1482
  var Et = "data-scroll-lock";
1468
- function Or(t) {
1483
+ function Pr(t) {
1469
1484
  const e = t.getBoundingClientRect().left;
1470
1485
  return Math.round(e) + t.scrollLeft ? "paddingLeft" : "paddingRight";
1471
1486
  }
@@ -1474,27 +1489,27 @@ function wr(t) {
1474
1489
  if (o.hasAttribute(Et)) return;
1475
1490
  const i = r.innerWidth - n.clientWidth;
1476
1491
  o.setAttribute(Et, "");
1477
- const a = () => On(n, "--scrollbar-width", `${i}px`), u = Or(n), c = () => dt(o, {
1492
+ const a = () => wn(n, "--scrollbar-width", `${i}px`), u = Pr(n), c = () => ft(o, {
1478
1493
  overflow: "hidden",
1479
1494
  [u]: `${i}px`
1480
- }), f = () => {
1481
- const { scrollX: l, scrollY: d, visualViewport: m } = r, y = m?.offsetLeft ?? 0, w = m?.offsetTop ?? 0, b = dt(o, {
1495
+ }), d = () => {
1496
+ const { scrollX: l, scrollY: f, visualViewport: m } = r, y = m?.offsetLeft ?? 0, O = m?.offsetTop ?? 0, E = ft(o, {
1482
1497
  position: "fixed",
1483
1498
  overflow: "hidden",
1484
- top: `${-(d - Math.floor(w))}px`,
1499
+ top: `${-(f - Math.floor(O))}px`,
1485
1500
  left: `${-(l - Math.floor(y))}px`,
1486
1501
  right: "0",
1487
1502
  [u]: `${i}px`
1488
1503
  });
1489
1504
  return () => {
1490
- b?.(), r.scrollTo({ left: l, top: d, behavior: "instant" });
1505
+ E?.(), r.scrollTo({ left: l, top: f, behavior: "instant" });
1491
1506
  };
1492
- }, h = [a(), hn() ? f() : c()];
1507
+ }, h = [a(), hn() ? d() : c()];
1493
1508
  return () => {
1494
1509
  h.forEach((l) => l?.()), o.removeAttribute(Et);
1495
1510
  };
1496
1511
  }
1497
- var Cr = /* @__PURE__ */ nt("dialog").parts(
1512
+ var Or = /* @__PURE__ */ nt("dialog").parts(
1498
1513
  "trigger",
1499
1514
  "backdrop",
1500
1515
  "positioner",
@@ -1502,8 +1517,8 @@ var Cr = /* @__PURE__ */ nt("dialog").parts(
1502
1517
  "title",
1503
1518
  "description",
1504
1519
  "closeTrigger"
1505
- ), j = /* @__PURE__ */ Cr.build(), ve = (t) => t.ids?.positioner ?? `dialog:${t.id}:positioner`, ye = (t) => t.ids?.backdrop ?? `dialog:${t.id}:backdrop`, Ct = (t) => t.ids?.content ?? `dialog:${t.id}:content`, be = (t) => t.ids?.trigger ?? `dialog:${t.id}:trigger`, Tt = (t) => t.ids?.title ?? `dialog:${t.id}:title`, xt = (t) => t.ids?.description ?? `dialog:${t.id}:description`, Ee = (t) => t.ids?.closeTrigger ?? `dialog:${t.id}:close`, ct = (t) => t.getById(Ct(t)), Tr = (t) => t.getById(ve(t)), xr = (t) => t.getById(ye(t)), Dr = (t) => t.getById(be(t)), kr = (t) => t.getById(Tt(t)), Fr = (t) => t.getById(xt(t)), Ar = (t) => t.getById(Ee(t));
1506
- function Ir(t, e) {
1520
+ ), j = /* @__PURE__ */ Or.build(), ve = (t) => t.ids?.positioner ?? `dialog:${t.id}:positioner`, be = (t) => t.ids?.backdrop ?? `dialog:${t.id}:backdrop`, Ct = (t) => t.ids?.content ?? `dialog:${t.id}:content`, ye = (t) => t.ids?.trigger ?? `dialog:${t.id}:trigger`, Tt = (t) => t.ids?.title ?? `dialog:${t.id}:title`, xt = (t) => t.ids?.description ?? `dialog:${t.id}:description`, Ee = (t) => t.ids?.closeTrigger ?? `dialog:${t.id}:close`, ut = (t) => t.getById(Ct(t)), Cr = (t) => t.getById(ve(t)), Tr = (t) => t.getById(be(t)), xr = (t) => t.getById(ye(t)), Dr = (t) => t.getById(Tt(t)), kr = (t) => t.getById(xt(t)), Fr = (t) => t.getById(Ee(t));
1521
+ function Ar(t, e) {
1507
1522
  const { state: r, send: n, context: o, prop: s, scope: i } = t, a = s("aria-label"), u = r.matches("open");
1508
1523
  return {
1509
1524
  open: u,
@@ -1514,7 +1529,7 @@ function Ir(t, e) {
1514
1529
  return e.button({
1515
1530
  ...j.trigger.attrs,
1516
1531
  dir: s("dir"),
1517
- id: be(i),
1532
+ id: ye(i),
1518
1533
  "aria-haspopup": "dialog",
1519
1534
  type: "button",
1520
1535
  "aria-expanded": u,
@@ -1530,7 +1545,7 @@ function Ir(t, e) {
1530
1545
  ...j.backdrop.attrs,
1531
1546
  dir: s("dir"),
1532
1547
  hidden: !u,
1533
- id: ye(i),
1548
+ id: be(i),
1534
1549
  "data-state": u ? "open" : "closed"
1535
1550
  });
1536
1551
  },
@@ -1589,16 +1604,16 @@ function Ir(t, e) {
1589
1604
  }
1590
1605
  var Sr = {
1591
1606
  props({ props: t, scope: e }) {
1592
- const r = t.role === "alertdialog";
1607
+ const r = t.role === "alertdialog", n = r ? () => Fr(e) : void 0, o = typeof t.modal == "boolean" ? t.modal : !0;
1593
1608
  return {
1594
1609
  role: "dialog",
1595
- modal: !0,
1596
- trapFocus: !0,
1597
- preventScroll: !0,
1610
+ modal: o,
1611
+ trapFocus: o,
1612
+ preventScroll: o,
1598
1613
  closeOnInteractOutside: !r,
1599
1614
  closeOnEscape: !0,
1600
1615
  restoreFocus: !0,
1601
- initialFocusEl: r ? () => Ar(e) : void 0,
1616
+ initialFocusEl: n,
1602
1617
  ...t
1603
1618
  };
1604
1619
  },
@@ -1681,10 +1696,10 @@ var Sr = {
1681
1696
  },
1682
1697
  effects: {
1683
1698
  trackDismissableElement({ scope: t, send: e, prop: r }) {
1684
- return gr(() => ct(t), {
1699
+ return hr(() => ut(t), {
1685
1700
  defer: !0,
1686
1701
  pointerBlocking: r("modal"),
1687
- exclude: [Dr(t)],
1702
+ exclude: [xr(t)],
1688
1703
  onInteractOutside(o) {
1689
1704
  r("onInteractOutside")?.(o), r("closeOnInteractOutside") || o.preventDefault();
1690
1705
  },
@@ -1704,33 +1719,33 @@ var Sr = {
1704
1719
  return wr(t.getDoc());
1705
1720
  },
1706
1721
  trapFocus({ scope: t, prop: e }) {
1707
- return !e("trapFocus") || !e("modal") ? void 0 : Pr(() => ct(t), {
1722
+ return e("trapFocus") ? Nr(() => ut(t), {
1708
1723
  preventScroll: !0,
1709
1724
  returnFocusOnDeactivate: !!e("restoreFocus"),
1710
1725
  initialFocus: e("initialFocusEl"),
1711
1726
  setReturnFocus: (n) => e("finalFocusEl")?.() ?? n
1712
- });
1727
+ }) : void 0;
1713
1728
  },
1714
1729
  hideContentBelow({ scope: t, prop: e }) {
1715
- return e("modal") ? rr(() => [ct(t)], { defer: !0 }) : void 0;
1730
+ return e("modal") ? nr(() => [ut(t)], { defer: !0 }) : void 0;
1716
1731
  }
1717
1732
  },
1718
1733
  actions: {
1719
1734
  checkRenderedElements({ context: t, scope: e }) {
1720
- M(() => {
1735
+ $(() => {
1721
1736
  t.set("rendered", {
1722
- title: !!kr(e),
1723
- description: !!Fr(e)
1737
+ title: !!Dr(e),
1738
+ description: !!kr(e)
1724
1739
  });
1725
1740
  });
1726
1741
  },
1727
1742
  syncZIndex({ scope: t }) {
1728
- M(() => {
1729
- const e = ct(t);
1743
+ $(() => {
1744
+ const e = ut(t);
1730
1745
  if (!e) return;
1731
1746
  const r = Qt(e);
1732
- [Tr(t), xr(t)].forEach((o) => {
1733
- o?.style.setProperty("--z-index", r.zIndex);
1747
+ [Cr(t), Tr(t)].forEach((o) => {
1748
+ o?.style.setProperty("--z-index", r.zIndex), o?.style.setProperty("--layer-index", r.getPropertyValue("--layer-index"));
1734
1749
  });
1735
1750
  });
1736
1751
  },
@@ -1749,7 +1764,7 @@ var Sr = {
1749
1764
  }
1750
1765
  }
1751
1766
  };
1752
- const [ro, Ne] = /* @__PURE__ */ ot({
1767
+ const [no, Ne] = /* @__PURE__ */ st({
1753
1768
  name: "EnvironmentContext",
1754
1769
  hookName: "useEnvironmentContext",
1755
1770
  providerName: "<EnvironmentProvider />",
@@ -1759,31 +1774,31 @@ const [ro, Ne] = /* @__PURE__ */ ot({
1759
1774
  getDocument: () => document,
1760
1775
  getWindow: () => window
1761
1776
  }
1762
- }), [oo, Lr] = /* @__PURE__ */ ot({
1777
+ }), [ro, Ir] = /* @__PURE__ */ st({
1763
1778
  name: "LocaleContext",
1764
1779
  hookName: "useLocaleContext",
1765
1780
  providerName: "<LocaleProvider />",
1766
1781
  strict: !1,
1767
1782
  defaultValue: { dir: "ltr", locale: "en-US" }
1768
- }), Rr = (t) => {
1769
- const e = Be(), { getRootNode: r } = Ne(), { dir: n } = Lr(), o = {
1783
+ }), Lr = (t) => {
1784
+ const e = Be(), { getRootNode: r } = Ne(), { dir: n } = Ir(), o = {
1770
1785
  id: e,
1771
1786
  getRootNode: r,
1772
1787
  dir: n,
1773
1788
  ...t
1774
1789
  }, s = ie(Sr, o);
1775
- return Ir(s, Rn);
1776
- }, Br = (t) => {
1777
- const [e, { children: r, ...n }] = zn(t), [o] = Gn(e), s = Rr(n), i = ue(_({ present: s.open }, e));
1778
- return /* @__PURE__ */ C(qn, { value: s, children: /* @__PURE__ */ C(Mn, { value: o, children: /* @__PURE__ */ C(Hn, { value: i, children: r }) }) });
1790
+ return Ar(s, Ln);
1791
+ }, Rr = (t) => {
1792
+ const [e, { children: r, ...n }] = Hn(t), [o] = $n(e), s = Lr(n), i = ue(_({ present: s.open }, e));
1793
+ return /* @__PURE__ */ C(Kn, { value: s, children: /* @__PURE__ */ C(Bn, { value: o, children: /* @__PURE__ */ C(qn, { value: i, children: r }) }) });
1779
1794
  };
1780
- const Pe = /* @__PURE__ */ $((t, e) => {
1795
+ const Pe = /* @__PURE__ */ G((t, e) => {
1781
1796
  const r = U(), n = _(r.getTitleProps(), t);
1782
1797
  return /* @__PURE__ */ C(q.h2, { ...n, ref: e });
1783
1798
  });
1784
1799
  Pe.displayName = "DialogTitle";
1785
- const Oe = /* @__PURE__ */ $((t, e) => {
1786
- const r = U(), n = St(), o = _(
1800
+ const we = /* @__PURE__ */ G((t, e) => {
1801
+ const r = U(), n = It(), o = _(
1787
1802
  {
1788
1803
  ...r.getTriggerProps(),
1789
1804
  "aria-controls": n.unmounted ? void 0 : r.getTriggerProps()["aria-controls"]
@@ -1792,56 +1807,56 @@ const Oe = /* @__PURE__ */ $((t, e) => {
1792
1807
  );
1793
1808
  return /* @__PURE__ */ C(q.button, { ...o, ref: e });
1794
1809
  });
1795
- Oe.displayName = "DialogTrigger";
1810
+ we.displayName = "DialogTrigger";
1796
1811
  const {
1797
- withRootProvider: Mr,
1798
- withContext: R
1799
- } = /* @__PURE__ */ Ge({ key: "dialog" }), $r = /* @__PURE__ */ Mr(Br, {
1812
+ withRootProvider: Br,
1813
+ withContext: B
1814
+ } = /* @__PURE__ */ Ge({ key: "dialog" }), Mr = /* @__PURE__ */ Br(Rr, {
1800
1815
  defaultProps: { unmountOnExit: !0, lazyMount: !0 }
1801
- }), Gr = /* @__PURE__ */ R(
1802
- Oe,
1816
+ }), $r = /* @__PURE__ */ B(
1817
+ we,
1803
1818
  "trigger",
1804
1819
  { forwardAsChild: !0 }
1805
- ), we = /* @__PURE__ */ R(he, "positioner", { forwardAsChild: !0 }), _r = /* @__PURE__ */ R(
1820
+ ), Oe = /* @__PURE__ */ B(he, "positioner", { forwardAsChild: !0 }), Gr = /* @__PURE__ */ B(
1806
1821
  fe,
1807
1822
  "content",
1808
1823
  { forwardAsChild: !0 }
1809
- ), Vr = /* @__PURE__ */ R(pe, "description", { forwardAsChild: !0 }), Wr = /* @__PURE__ */ R(
1824
+ ), _r = /* @__PURE__ */ B(pe, "description", { forwardAsChild: !0 }), Vr = /* @__PURE__ */ B(
1810
1825
  Pe,
1811
1826
  "title",
1812
1827
  { forwardAsChild: !0 }
1813
- ), Ur = /* @__PURE__ */ R(de, "closeTrigger", { forwardAsChild: !0 }), jr = /* @__PURE__ */ $(function(e, r) {
1828
+ ), Wr = /* @__PURE__ */ B(de, "closeTrigger", { forwardAsChild: !0 }), Ur = /* @__PURE__ */ G(function(e, r) {
1814
1829
  const n = U();
1815
1830
  return /* @__PURE__ */ C(_e.button, { ...e, ref: r, onClick: () => n.setOpen(!1) });
1816
- }), Ce = /* @__PURE__ */ R(
1831
+ }), Ce = /* @__PURE__ */ B(
1817
1832
  le,
1818
1833
  "backdrop",
1819
1834
  { forwardAsChild: !0 }
1820
- ), Kr = /* @__PURE__ */ R(
1835
+ ), jr = /* @__PURE__ */ B(
1821
1836
  "div",
1822
1837
  "body"
1823
- ), qr = /* @__PURE__ */ R(
1838
+ ), Kr = /* @__PURE__ */ B(
1824
1839
  "div",
1825
1840
  "footer"
1826
- ), Hr = /* @__PURE__ */ R(
1841
+ ), qr = /* @__PURE__ */ B(
1827
1842
  "div",
1828
1843
  "header"
1829
- ), zr = (t) => {
1844
+ ), Hr = (t) => {
1830
1845
  const { children: e, disabled: r } = t, [n, o] = Nt(t.container?.current), s = Me(
1831
- Yr,
1846
+ Xr,
1832
1847
  () => !1,
1833
1848
  () => !0
1834
1849
  ), { getRootNode: i } = Ne();
1835
1850
  if (rt(() => {
1836
1851
  o(() => t.container?.current);
1837
1852
  }, [t.container]), s || r) return /* @__PURE__ */ C(Rt, { children: e });
1838
- const a = n ?? Xr(i);
1853
+ const a = n ?? zr(i);
1839
1854
  return /* @__PURE__ */ C(Rt, { children: Ht.map(e, (u) => $e(u, a)) });
1840
- }, Xr = (t) => {
1855
+ }, zr = (t) => {
1841
1856
  const e = t?.(), r = e.getRootNode();
1842
- return Z(r) ? r : G(e).body;
1843
- }, Yr = () => () => {
1844
- }, Zr = function(e) {
1857
+ return Z(r) ? r : R(e).body;
1858
+ }, Xr = () => () => {
1859
+ }, Yr = function(e) {
1845
1860
  const {
1846
1861
  children: r,
1847
1862
  portalled: n = !0,
@@ -1850,25 +1865,25 @@ const {
1850
1865
  ref: i,
1851
1866
  ...a
1852
1867
  } = e;
1853
- return /* @__PURE__ */ Te(zr, { disabled: !n, container: o, children: [
1868
+ return /* @__PURE__ */ Te(Hr, { disabled: !n, container: o, children: [
1854
1869
  s && /* @__PURE__ */ C(Ce, {}),
1855
- /* @__PURE__ */ C(we, { children: /* @__PURE__ */ C(_r, { ref: i, ...a, asChild: !1, children: r }) })
1870
+ /* @__PURE__ */ C(Oe, { children: /* @__PURE__ */ C(Gr, { ref: i, ...a, asChild: !1, children: r }) })
1856
1871
  ] });
1857
- }, so = {
1858
- Root: $r,
1859
- Trigger: Gr,
1860
- Content: Zr,
1872
+ }, oo = {
1873
+ Root: Mr,
1874
+ Trigger: $r,
1875
+ Content: Yr,
1861
1876
  Backdrop: Ce,
1862
- Positioner: we,
1863
- Title: Wr,
1864
- Description: Vr,
1865
- Body: Kr,
1866
- Footer: qr,
1867
- Header: Hr,
1868
- CloseTrigger: Ur,
1869
- ActionTrigger: jr
1877
+ Positioner: Oe,
1878
+ Title: Vr,
1879
+ Description: _r,
1880
+ Body: jr,
1881
+ Footer: Kr,
1882
+ Header: qr,
1883
+ CloseTrigger: Wr,
1884
+ ActionTrigger: Ur
1870
1885
  };
1871
1886
  export {
1872
- so as D
1887
+ oo as D
1873
1888
  };
1874
- //# sourceMappingURL=dialog-De8l1nzr.es.js.map
1889
+ //# sourceMappingURL=dialog-CG-cCFkg.es.js.map