zigbee2mqtt-windfront 2.4.2 → 2.4.3

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 (253) hide show
  1. package/dist/assets/{About-BECKqY6K.js → About-D3d4IC0H.js} +1 -1
  2. package/dist/assets/About-D3d4IC0H.js.br +0 -0
  3. package/dist/assets/{ActivityPage-CSSHkR-d.js → ActivityPage-CaSrg_SL.js} +1 -1
  4. package/dist/assets/ActivityPage-CaSrg_SL.js.br +0 -0
  5. package/dist/assets/{Availability-CvHBs7oh.js → Availability-DxWJ6d50.js} +1 -1
  6. package/dist/assets/Availability-DxWJ6d50.js.br +0 -0
  7. package/dist/assets/{Bind-CIGpz2VC.js → Bind-Dly_fm7o.js} +1 -1
  8. package/dist/assets/Bind-Dly_fm7o.js.br +0 -0
  9. package/dist/assets/{BindRow-Cs1sVcpM.js → BindRow-DT8hIN-_.js} +1 -1
  10. package/dist/assets/BindRow-DT8hIN-_.js.br +0 -0
  11. package/dist/assets/{BindingsPage-R8TY0Hrz.js → BindingsPage-BVkxErqx.js} +1 -1
  12. package/dist/assets/BindingsPage-BVkxErqx.js.br +0 -0
  13. package/dist/assets/Bridge-DJbZpMiz.js +1 -0
  14. package/dist/assets/Bridge-DJbZpMiz.js.br +0 -0
  15. package/dist/assets/{CheckboxField-BxtT6ttj.js → CheckboxField-UCq4TGr9.js} +1 -1
  16. package/dist/assets/CheckboxField-UCq4TGr9.js.br +1 -0
  17. package/dist/assets/{ClusterSinglePicker-CdbXM_JY.js → ClusterSinglePicker-3ibi39tG.js} +1 -1
  18. package/dist/assets/ClusterSinglePicker-3ibi39tG.js.br +0 -0
  19. package/dist/assets/{Clusters-De_zV5zK.js → Clusters-BwghG7iZ.js} +1 -1
  20. package/dist/assets/Clusters-BwghG7iZ.js.br +0 -0
  21. package/dist/assets/{ContributePage-BQW1e3tc.js → ContributePage-JRQtUmfw.js} +1 -1
  22. package/dist/assets/ContributePage-JRQtUmfw.js.br +0 -0
  23. package/dist/assets/{Dashboard-D-a-wKK8.js → Dashboard-CAMwWas2.js} +1 -1
  24. package/dist/assets/Dashboard-CAMwWas2.js.br +0 -0
  25. package/dist/assets/{DashboardFeatureWrapper-DSvHZUwh.js → DashboardFeatureWrapper-wdyylkTN.js} +1 -1
  26. package/dist/assets/DashboardFeatureWrapper-wdyylkTN.js.br +0 -0
  27. package/dist/assets/{DebouncedInput-B8gvkj6A.js → DebouncedInput-MoX2IwNR.js} +1 -1
  28. package/dist/assets/DebouncedInput-MoX2IwNR.js.br +0 -0
  29. package/dist/assets/{DevConsole-C8IWIn5P.js → DevConsole-B0xoECF9.js} +1 -1
  30. package/dist/assets/DevConsole-B0xoECF9.js.br +0 -0
  31. package/dist/assets/{DevConsole-LvSvkafL.js → DevConsole-DOwFhc3H.js} +1 -1
  32. package/dist/assets/DevConsole-DOwFhc3H.js.br +0 -0
  33. package/dist/assets/{DeviceCard-C89jjCiz.js → DeviceCard-C1nA7P_Z.js} +1 -1
  34. package/dist/assets/DeviceCard-C1nA7P_Z.js.br +0 -0
  35. package/dist/assets/{DeviceImage-Bs0M9j-k.js → DeviceImage-wGqnu0Op.js} +1 -1
  36. package/dist/assets/DeviceImage-wGqnu0Op.js.br +0 -0
  37. package/dist/assets/{DeviceInfo-WODXyX_f.js → DeviceInfo-Bl4i0ZP7.js} +2 -2
  38. package/dist/assets/DeviceInfo-Bl4i0ZP7.js.br +0 -0
  39. package/dist/assets/{DevicePage-CNcVtzgs.js → DevicePage-Bz1-LXfU.js} +2 -2
  40. package/dist/assets/DevicePage-Bz1-LXfU.js.br +0 -0
  41. package/dist/assets/{DevicePicker-0T64KBIx.js → DevicePicker-fhvsZNnj.js} +1 -1
  42. package/dist/assets/DevicePicker-fhvsZNnj.js.br +0 -0
  43. package/dist/assets/{DeviceSettings-mPRv-tnF.js → DeviceSettings-CDe1I10M.js} +1 -1
  44. package/dist/assets/DeviceSettings-CDe1I10M.js.br +0 -0
  45. package/dist/assets/{DeviceSpecificSettings-Cx9yFF1T.js → DeviceSpecificSettings-DiP7CAM1.js} +1 -1
  46. package/dist/assets/DeviceSpecificSettings-DiP7CAM1.js.br +3 -0
  47. package/dist/assets/{Devices-CKrLjR7l.js → Devices-XkNZN7sG.js} +1 -1
  48. package/dist/assets/Devices-XkNZN7sG.js.br +0 -0
  49. package/dist/assets/{DevicesPage-CNYZ7gZW.js → DevicesPage-sAHaQ5_d.js} +1 -1
  50. package/dist/assets/DevicesPage-sAHaQ5_d.js.br +0 -0
  51. package/dist/assets/{DisplayValue-qZ7xyN8v.js → DisplayValue-Dji9W3st.js} +1 -1
  52. package/dist/assets/DisplayValue-Dji9W3st.js.br +0 -0
  53. package/dist/assets/{Duration-CJDh_0iP.js → Duration-Dx8X3Jcu.js} +1 -1
  54. package/dist/assets/Duration-Dx8X3Jcu.js.br +0 -0
  55. package/dist/assets/{EndpointPicker-xjSURnYy.js → EndpointPicker-DQIVbRGj.js} +1 -1
  56. package/dist/assets/EndpointPicker-DQIVbRGj.js.br +0 -0
  57. package/dist/assets/{Exposes-Ck1RvrgF.js → Exposes-DZGZN1cS.js} +1 -1
  58. package/dist/assets/Exposes-DZGZN1cS.js.br +0 -0
  59. package/dist/assets/{Feature-C2pFQwpi.js → Feature-CTcJIwG4.js} +1 -1
  60. package/dist/assets/Feature-CTcJIwG4.js.br +0 -0
  61. package/dist/assets/{FrontendSettingsPage-TBuuFxPS.js → FrontendSettingsPage-BkyzY1An.js} +1 -1
  62. package/dist/assets/FrontendSettingsPage-BkyzY1An.js.br +0 -0
  63. package/dist/assets/{GroupPage-BGL4RysQ.js → GroupPage-BiAlzXUW.js} +2 -2
  64. package/dist/assets/GroupPage-BiAlzXUW.js.br +0 -0
  65. package/dist/assets/{GroupSettings-BGUugnNe.js → GroupSettings-BO4fhmeC.js} +1 -1
  66. package/dist/assets/GroupSettings-BO4fhmeC.js.br +0 -0
  67. package/dist/assets/{Groups-piTsZDoh.js → Groups-D6TUVTzA.js} +1 -1
  68. package/dist/assets/Groups-D6TUVTzA.js.br +0 -0
  69. package/dist/assets/{GroupsPage-WEbNlJz8.js → GroupsPage-uFWQBx94.js} +1 -1
  70. package/dist/assets/GroupsPage-uFWQBx94.js.br +0 -0
  71. package/dist/assets/{Health-B5TOTzGW.js → Health-BSb0bsL_.js} +1 -1
  72. package/dist/assets/Health-BSb0bsL_.js.br +0 -0
  73. package/dist/assets/HomePage-hUajaKXJ.js +1 -0
  74. package/dist/assets/HomePage-hUajaKXJ.js.br +0 -0
  75. package/dist/assets/{IndeterminateCheckbox-D1n4j0hH.js → IndeterminateCheckbox-DUK2aZrT.js} +1 -1
  76. package/dist/assets/IndeterminateCheckbox-DUK2aZrT.js.br +2 -0
  77. package/dist/assets/InfoAlert-Dnfn7NdQ.js +1 -0
  78. package/dist/assets/InfoAlert-Dnfn7NdQ.js.br +0 -0
  79. package/dist/assets/{InputField-CqTVHKf8.js → InputField-DAPHc2sm.js} +1 -1
  80. package/dist/assets/InputField-DAPHc2sm.js.br +0 -0
  81. package/dist/assets/{Json-a0ZE4H4E.js → Json-UHwQykVU.js} +1 -1
  82. package/dist/assets/Json-UHwQykVU.js.br +0 -0
  83. package/dist/assets/LastSeen-0CXNPzhR.js +1 -0
  84. package/dist/assets/LastSeen-0CXNPzhR.js.br +1 -0
  85. package/dist/assets/{LogsPage-EYs1SJzR.js → LogsPage-BDDHQ9Jq.js} +1 -1
  86. package/dist/assets/LogsPage-BDDHQ9Jq.js.br +0 -0
  87. package/dist/assets/Lqi-Bt9decNl.js +1 -0
  88. package/dist/assets/Lqi-Bt9decNl.js.br +0 -0
  89. package/dist/assets/{NetworkPage-DpRCzAbY.js → NetworkPage-DBHzsEmA.js} +2 -2
  90. package/dist/assets/NetworkPage-DBHzsEmA.js.br +11 -0
  91. package/dist/assets/{NumberField-Bv80Uoa9.js → NumberField-KpQHKAWy.js} +1 -1
  92. package/dist/assets/NumberField-KpQHKAWy.js.br +0 -0
  93. package/dist/assets/{OtaPage-wLq1usgO.js → OtaPage-xajiG6zo.js} +1 -1
  94. package/dist/assets/OtaPage-xajiG6zo.js.br +0 -0
  95. package/dist/assets/{PowerSource--PK2quZc.js → PowerSource-BqvbEJAW.js} +1 -1
  96. package/dist/assets/PowerSource-BqvbEJAW.js.br +0 -0
  97. package/dist/assets/{RawNetworkData-BJIP6cto.js → RawNetworkData-CU5eLCfT.js} +1 -1
  98. package/dist/assets/RawNetworkData-CU5eLCfT.js.br +0 -0
  99. package/dist/assets/{RawNetworkMap-DstcSS7K.js → RawNetworkMap-auMtayZa.js} +1 -1
  100. package/dist/assets/RawNetworkMap-auMtayZa.js.br +0 -0
  101. package/dist/assets/{RecallRemove-CnNFF1IW.js → RecallRemove-Dga9_VqG.js} +1 -1
  102. package/dist/assets/RecallRemove-Dga9_VqG.js.br +0 -0
  103. package/dist/assets/{RemoveDeviceModal-Dcccpw6_.js → RemoveDeviceModal-B2AvJ3P5.js} +1 -1
  104. package/dist/assets/RemoveDeviceModal-B2AvJ3P5.js.br +0 -0
  105. package/dist/assets/{Reporting-C47QuChS.js → Reporting-Cy3X1le1.js} +1 -1
  106. package/dist/assets/Reporting-Cy3X1le1.js.br +0 -0
  107. package/dist/assets/{ReportingPage-Ctik1tyk.js → ReportingPage-CCV3Upvj.js} +1 -1
  108. package/dist/assets/ReportingPage-CCV3Upvj.js.br +0 -0
  109. package/dist/assets/{ReportingRow-M-kyd_5k.js → ReportingRow-DT5OZraF.js} +1 -1
  110. package/dist/assets/ReportingRow-DT5OZraF.js.br +0 -0
  111. package/dist/assets/{Scene-CkLZA6Hz.js → Scene-DzUnad47.js} +1 -1
  112. package/dist/assets/Scene-DzUnad47.js.br +0 -0
  113. package/dist/assets/{SelectField-WiB6Edsu.js → SelectField-Ds79Cvtx.js} +1 -1
  114. package/dist/assets/SelectField-Ds79Cvtx.js.br +0 -0
  115. package/dist/assets/{Settings-C0i2GffX.js → Settings-cNwKH0wq.js} +1 -1
  116. package/dist/assets/Settings-cNwKH0wq.js.br +0 -0
  117. package/dist/assets/{SettingsList-B14Dp6bl.js → SettingsList-BfAMzMbW.js} +1 -1
  118. package/dist/assets/SettingsList-BfAMzMbW.js.br +0 -0
  119. package/dist/assets/{SettingsPage-CY9wNz1L.js → SettingsPage-BFM6-Ej5.js} +2 -2
  120. package/dist/assets/SettingsPage-BFM6-Ej5.js.br +0 -0
  121. package/dist/assets/State-gt5H9I_c.js +1 -0
  122. package/dist/assets/State-gt5H9I_c.js.br +0 -0
  123. package/dist/assets/Table-C-4QtH2Q.js +1 -0
  124. package/dist/assets/Table-C-4QtH2Q.js.br +0 -0
  125. package/dist/assets/{TextareaField-BeRpIFjo.js → TextareaField-x2D75Jbc.js} +1 -1
  126. package/dist/assets/TextareaField-x2D75Jbc.js.br +0 -0
  127. package/dist/assets/{TimeAgo-55eetS_D.js → TimeAgo-CKB01sUA.js} +1 -1
  128. package/dist/assets/TimeAgo-CKB01sUA.js.br +0 -0
  129. package/dist/assets/{Tools-Cqc7mfYu.js → Tools-CZxv4qNo.js} +1 -1
  130. package/dist/assets/Tools-CZxv4qNo.js.br +0 -0
  131. package/dist/assets/{TouchlinkPage-DtReDVOA.js → TouchlinkPage-CRl08NnD.js} +1 -1
  132. package/dist/assets/TouchlinkPage-CRl08NnD.js.br +0 -0
  133. package/dist/assets/{VendorLink-C93xowAR.js → VendorLink-CfRj085o.js} +1 -1
  134. package/dist/assets/VendorLink-CfRj085o.js.br +0 -0
  135. package/dist/assets/{_createCompounder-CDQ_1ElC.js → _createCompounder-BpKg8UVZ.js} +1 -1
  136. package/dist/assets/_createCompounder-BpKg8UVZ.js.br +0 -0
  137. package/dist/assets/{floating-ui.react-BfzwIwuD.js → floating-ui.react-DOHEdPgt.js} +1 -1
  138. package/dist/assets/floating-ui.react-DOHEdPgt.js.br +0 -0
  139. package/dist/assets/{index-C8QGyin-.js → index-BCHSMWmb.js} +1 -1
  140. package/dist/assets/index-BCHSMWmb.js.br +0 -0
  141. package/dist/assets/index-BpYGCU7a.js +581 -0
  142. package/dist/assets/index-BpYGCU7a.js.br +0 -0
  143. package/dist/assets/{index-CQLnbJQy.js → index-C6ZZXciQ.js} +1 -1
  144. package/dist/assets/index-C6ZZXciQ.js.br +0 -0
  145. package/dist/assets/index-CIc7Tw8n.css +1 -0
  146. package/dist/assets/index-CIc7Tw8n.css.br +0 -0
  147. package/dist/assets/{isObjectLike-D4auEUP9.js → isObjectLike-CIRqZSg4.js} +1 -1
  148. package/dist/assets/isObjectLike-CIRqZSg4.js.br +0 -0
  149. package/dist/assets/{jszip.min-BDHr47Lr.js → jszip.min-Dq6zo75v.js} +1 -1
  150. package/dist/assets/jszip.min-Dq6zo75v.js.br +0 -0
  151. package/dist/assets/{merge-CXAZHnE2.js → merge-BP_GrOr0.js} +1 -1
  152. package/dist/assets/merge-BP_GrOr0.js.br +0 -0
  153. package/dist/assets/snakeCase-BQjWpiq6.js +1 -0
  154. package/dist/assets/snakeCase-BQjWpiq6.js.br +0 -0
  155. package/dist/assets/{useColumnCount-BIzxc4Aw.js → useColumnCount-dr4xa6jz.js} +1 -1
  156. package/dist/assets/useColumnCount-dr4xa6jz.js.br +0 -0
  157. package/dist/assets/{useSearch-BeB1_fQX.js → useSearch-mJ4U1aZj.js} +1 -1
  158. package/dist/assets/useSearch-mJ4U1aZj.js.br +0 -0
  159. package/dist/assets/{useTable-Bu98B1Qm.js → useTable-B7OaP5Ly.js} +1 -1
  160. package/dist/assets/useTable-B7OaP5Ly.js.br +0 -0
  161. package/dist/index.html +2 -2
  162. package/dist/index.html.br +0 -0
  163. package/package.json +17 -17
  164. package/dist/assets/About-BECKqY6K.js.br +0 -0
  165. package/dist/assets/ActivityPage-CSSHkR-d.js.br +0 -0
  166. package/dist/assets/Availability-CvHBs7oh.js.br +0 -0
  167. package/dist/assets/Bind-CIGpz2VC.js.br +0 -0
  168. package/dist/assets/BindRow-Cs1sVcpM.js.br +0 -0
  169. package/dist/assets/BindingsPage-R8TY0Hrz.js.br +0 -0
  170. package/dist/assets/Bridge-_Dqz0S6H.js +0 -1
  171. package/dist/assets/Bridge-_Dqz0S6H.js.br +0 -0
  172. package/dist/assets/CheckboxField-BxtT6ttj.js.br +0 -0
  173. package/dist/assets/ClusterSinglePicker-CdbXM_JY.js.br +0 -0
  174. package/dist/assets/Clusters-De_zV5zK.js.br +0 -0
  175. package/dist/assets/ContributePage-BQW1e3tc.js.br +0 -0
  176. package/dist/assets/Dashboard-D-a-wKK8.js.br +0 -0
  177. package/dist/assets/DashboardFeatureWrapper-DSvHZUwh.js.br +0 -0
  178. package/dist/assets/DebouncedInput-B8gvkj6A.js.br +0 -0
  179. package/dist/assets/DevConsole-C8IWIn5P.js.br +0 -0
  180. package/dist/assets/DevConsole-LvSvkafL.js.br +0 -0
  181. package/dist/assets/DeviceCard-C89jjCiz.js.br +0 -0
  182. package/dist/assets/DeviceImage-Bs0M9j-k.js.br +0 -0
  183. package/dist/assets/DeviceInfo-WODXyX_f.js.br +0 -0
  184. package/dist/assets/DevicePage-CNcVtzgs.js.br +0 -0
  185. package/dist/assets/DevicePicker-0T64KBIx.js.br +0 -0
  186. package/dist/assets/DeviceSettings-mPRv-tnF.js.br +0 -0
  187. package/dist/assets/DeviceSpecificSettings-Cx9yFF1T.js.br +0 -0
  188. package/dist/assets/Devices-CKrLjR7l.js.br +0 -0
  189. package/dist/assets/DevicesPage-CNYZ7gZW.js.br +0 -0
  190. package/dist/assets/DisplayValue-qZ7xyN8v.js.br +0 -0
  191. package/dist/assets/Duration-CJDh_0iP.js.br +0 -0
  192. package/dist/assets/EndpointPicker-xjSURnYy.js.br +0 -0
  193. package/dist/assets/Exposes-Ck1RvrgF.js.br +0 -0
  194. package/dist/assets/Feature-C2pFQwpi.js.br +0 -0
  195. package/dist/assets/FrontendSettingsPage-TBuuFxPS.js.br +0 -0
  196. package/dist/assets/GroupPage-BGL4RysQ.js.br +0 -0
  197. package/dist/assets/GroupSettings-BGUugnNe.js.br +0 -0
  198. package/dist/assets/Groups-piTsZDoh.js.br +0 -0
  199. package/dist/assets/GroupsPage-WEbNlJz8.js.br +0 -0
  200. package/dist/assets/Health-B5TOTzGW.js.br +0 -0
  201. package/dist/assets/HomePage-BDldmGYp.js +0 -1
  202. package/dist/assets/HomePage-BDldmGYp.js.br +0 -0
  203. package/dist/assets/IndeterminateCheckbox-D1n4j0hH.js.br +0 -2
  204. package/dist/assets/InfoAlert-DaX4x_1T.js +0 -1
  205. package/dist/assets/InfoAlert-DaX4x_1T.js.br +0 -0
  206. package/dist/assets/InputField-CqTVHKf8.js.br +0 -0
  207. package/dist/assets/Json-a0ZE4H4E.js.br +0 -0
  208. package/dist/assets/LastSeen-BOY7jIoe.js +0 -1
  209. package/dist/assets/LastSeen-BOY7jIoe.js.br +0 -0
  210. package/dist/assets/LogsPage-EYs1SJzR.js.br +0 -0
  211. package/dist/assets/Lqi-B1ebT_rM.js +0 -1
  212. package/dist/assets/Lqi-B1ebT_rM.js.br +0 -0
  213. package/dist/assets/NetworkPage-DpRCzAbY.js.br +0 -0
  214. package/dist/assets/NumberField-Bv80Uoa9.js.br +0 -0
  215. package/dist/assets/OtaPage-wLq1usgO.js.br +0 -0
  216. package/dist/assets/PowerSource--PK2quZc.js.br +0 -0
  217. package/dist/assets/RawNetworkData-BJIP6cto.js.br +0 -0
  218. package/dist/assets/RawNetworkMap-DstcSS7K.js.br +0 -0
  219. package/dist/assets/RecallRemove-CnNFF1IW.js.br +0 -0
  220. package/dist/assets/RemoveDeviceModal-Dcccpw6_.js.br +0 -0
  221. package/dist/assets/Reporting-C47QuChS.js.br +0 -0
  222. package/dist/assets/ReportingPage-Ctik1tyk.js.br +0 -0
  223. package/dist/assets/ReportingRow-M-kyd_5k.js.br +0 -0
  224. package/dist/assets/Scene-CkLZA6Hz.js.br +0 -0
  225. package/dist/assets/SelectField-WiB6Edsu.js.br +0 -0
  226. package/dist/assets/Settings-C0i2GffX.js.br +0 -0
  227. package/dist/assets/SettingsList-B14Dp6bl.js.br +0 -0
  228. package/dist/assets/SettingsPage-CY9wNz1L.js.br +0 -0
  229. package/dist/assets/State-B8oSE6DX.js +0 -1
  230. package/dist/assets/State-B8oSE6DX.js.br +0 -0
  231. package/dist/assets/Table-BikCpRDP.js +0 -1
  232. package/dist/assets/Table-BikCpRDP.js.br +0 -0
  233. package/dist/assets/TextareaField-BeRpIFjo.js.br +0 -0
  234. package/dist/assets/TimeAgo-55eetS_D.js.br +0 -0
  235. package/dist/assets/Tools-Cqc7mfYu.js.br +0 -0
  236. package/dist/assets/TouchlinkPage-DtReDVOA.js.br +0 -0
  237. package/dist/assets/VendorLink-C93xowAR.js.br +0 -0
  238. package/dist/assets/_createCompounder-CDQ_1ElC.js.br +0 -0
  239. package/dist/assets/floating-ui.react-BfzwIwuD.js.br +0 -0
  240. package/dist/assets/index-C8QGyin-.js.br +0 -1
  241. package/dist/assets/index-CQLnbJQy.js.br +0 -0
  242. package/dist/assets/index-ClCsMWbS.js +0 -581
  243. package/dist/assets/index-ClCsMWbS.js.br +0 -0
  244. package/dist/assets/index-uKtJ6Klq.css +0 -1
  245. package/dist/assets/index-uKtJ6Klq.css.br +0 -0
  246. package/dist/assets/isObjectLike-D4auEUP9.js.br +0 -0
  247. package/dist/assets/jszip.min-BDHr47Lr.js.br +0 -0
  248. package/dist/assets/merge-CXAZHnE2.js.br +0 -0
  249. package/dist/assets/snakeCase-D0nOJtgb.js +0 -1
  250. package/dist/assets/snakeCase-D0nOJtgb.js.br +0 -0
  251. package/dist/assets/useColumnCount-BIzxc4Aw.js.br +0 -0
  252. package/dist/assets/useSearch-BeB1_fQX.js.br +0 -0
  253. package/dist/assets/useTable-Bu98B1Qm.js.br +0 -0
@@ -1 +1 @@
1
- import{r as p,b1 as gt,b2 as mt,j as H}from"./index-ClCsMWbS.js";function ye(){return typeof window<"u"}function ne(e){return $e(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function G(e){var t;return(t=($e(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $e(e){return ye()?e instanceof Node||e instanceof V(e).Node:!1}function L(e){return ye()?e instanceof Element||e instanceof V(e).Element:!1}function _(e){return ye()?e instanceof HTMLElement||e instanceof V(e).HTMLElement:!1}function De(e){return!ye()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}const Xt=new Set(["inline","contents"]);function fe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=j(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Xt.has(r)}const Ut=new Set(["table","td","th"]);function qt(e){return Ut.has(ne(e))}const Gt=[":popover-open",":modal"];function we(e){return Gt.some(t=>{try{return e.matches(t)}catch{return!1}})}const Zt=["transform","translate","scale","rotate","perspective"],zt=["transform","translate","scale","rotate","perspective","filter"],Qt=["paint","layout","strict","content"];function Be(e){const t=xe(),n=L(e)?j(e):e;return Zt.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||zt.some(o=>(n.willChange||"").includes(o))||Qt.some(o=>(n.contain||"").includes(o))}function Jt(e){let t=q(e);for(;_(t)&&!X(t);){if(Be(t))return t;if(we(t))return null;t=q(t)}return null}function xe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const en=new Set(["html","body","#document"]);function X(e){return en.has(ne(e))}function j(e){return V(e).getComputedStyle(e)}function Re(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function q(e){if(ne(e)==="html")return e;const t=e.assignedSlot||e.parentNode||De(e)&&e.host||G(e);return De(t)?t.host:t}function pt(e){const t=q(e);return X(t)?e.ownerDocument?e.ownerDocument.body:e.body:_(t)&&fe(t)?t:pt(t)}function J(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=pt(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=V(r);if(i){const c=ke(s);return t.concat(s,s.visualViewport||[],fe(r)?r:[],c&&n?J(c):[])}return t.concat(r,J(r,[],n))}function ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const tn=["top","right","bottom","left"],Ke=["start","end"],Ye=tn.reduce((e,t)=>e.concat(t,t+"-"+Ke[0],t+"-"+Ke[1]),[]),se=Math.min,ee=Math.max,pe=Math.round,K=e=>({x:e,y:e}),nn={left:"right",right:"left",bottom:"top",top:"bottom"},on={start:"end",end:"start"};function Le(e,t,n){return ee(e,se(t,n))}function de(e,t){return typeof e=="function"?e(t):e}function oe(e){return e.split("-")[0]}function U(e){return e.split("-")[1]}function ht(e){return e==="x"?"y":"x"}function _e(e){return e==="y"?"height":"width"}const rn=new Set(["top","bottom"]);function Ee(e){return rn.has(oe(e))?"y":"x"}function We(e){return ht(Ee(e))}function sn(e,t,n){n===void 0&&(n=!1);const o=U(e),r=We(e),i=_e(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Xe(s)),[s,Xe(s)]}function cn(e){return e.replace(/start|end/g,t=>on[t])}function Xe(e){return e.replace(/left|right|bottom|top/g,t=>nn[t])}function ln(e){return{top:0,right:0,bottom:0,left:0,...e}}function vt(e){return typeof e!="number"?ln(e):{top:e,right:e,bottom:e,left:e}}function he(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}var an=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Me=an.join(","),bt=typeof Element>"u",ce=bt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ve=!bt&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},le=function(t,n){var o;n===void 0&&(n=!0);var r=t==null||(o=t.getAttribute)===null||o===void 0?void 0:o.call(t,"inert"),i=r===""||r==="true",s=i||n&&t&&le(t.parentNode);return s},un=function(t){var n,o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return o===""||o==="true"},fn=function(t,n,o){if(le(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(Me));return n&&ce.call(t,Me)&&r.unshift(t),r=r.filter(o),r},Fe=function(t,n,o){for(var r=[],i=Array.from(t);i.length;){var s=i.shift();if(!le(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),l=c.length?c:s.children,a=Fe(l,!0,o);o.flatten?r.push.apply(r,a):r.push({scopeParent:s,candidates:a})}else{var u=ce.call(s,Me);u&&o.filter(s)&&(n||!t.includes(s))&&r.push(s);var f=s.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(s),m=!le(f,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(s));if(f&&m){var d=Fe(f===!0?s.children:f.children,!0,o);o.flatten?r.push.apply(r,d):r.push({scopeParent:s,candidates:d})}else i.unshift.apply(i,s.children)}}return r},yt=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},wt=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||un(t))&&!yt(t)?0:t.tabIndex},dn=function(t,n){var o=wt(t);return o<0&&n&&!yt(t)?0:o},gn=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},xt=function(t){return t.tagName==="INPUT"},mn=function(t){return xt(t)&&t.type==="hidden"},pn=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(o){return o.tagName==="SUMMARY"});return n},hn=function(t,n){for(var o=0;o<t.length;o++)if(t[o].checked&&t[o].form===n)return t[o]},vn=function(t){if(!t.name)return!0;var n=t.form||ve(t),o=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=o(window.CSS.escape(t.name));else try{r=o(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=hn(r,t.form);return!i||i===t},bn=function(t){return xt(t)&&t.type==="radio"},yn=function(t){return bn(t)&&!vn(t)},wn=function(t){var n,o=t&&ve(t),r=(n=o)===null||n===void 0?void 0:n.host,i=!1;if(o&&o!==t){var s,c,l;for(i=!!((s=r)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(r)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!i&&r;){var a,u,f;o=ve(r),r=(a=o)===null||a===void 0?void 0:a.host,i=!!((u=r)!==null&&u!==void 0&&(f=u.ownerDocument)!==null&&f!==void 0&&f.contains(r))}}return i},Ue=function(t){var n=t.getBoundingClientRect(),o=n.width,r=n.height;return o===0&&r===0},xn=function(t,n){var o=n.displayCheck,r=n.getShadowRoot;if(o==="full-native"&&"checkVisibility"in t){var i=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(t).visibility==="hidden")return!0;var s=ce.call(t,"details>summary:first-of-type"),c=s?t.parentElement:t;if(ce.call(c,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="full-native"||o==="legacy-full"){if(typeof r=="function"){for(var l=t;t;){var a=t.parentElement,u=ve(t);if(a&&!a.shadowRoot&&r(a)===!0)return Ue(t);t.assignedSlot?t=t.assignedSlot:!a&&u!==t.ownerDocument?t=u.host:t=a}t=l}if(wn(t))return!t.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Ue(t);return!1},Rn=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var o=0;o<n.children.length;o++){var r=n.children.item(o);if(r.tagName==="LEGEND")return ce.call(n,"fieldset[disabled] *")?!0:!r.contains(t)}return!0}n=n.parentElement}return!1},En=function(t,n){return!(n.disabled||le(n)||mn(n)||xn(n,t)||pn(n)||Rn(n))},qe=function(t,n){return!(yn(n)||wt(n)<0||!En(t,n))},Sn=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Rt=function(t){var n=[],o=[];return t.forEach(function(r,i){var s=!!r.scopeParent,c=s?r.scopeParent:r,l=dn(c,s),a=s?Rt(r.candidates):c;l===0?s?n.push.apply(n,a):n.push(c):o.push({documentOrder:i,tabIndex:l,item:r,isScope:s,content:a})}),o.sort(gn).reduce(function(r,i){return i.isScope?r.push.apply(r,i.content):r.push(i.content),r},[]).concat(n)},Et=function(t,n){n=n||{};var o;return n.getShadowRoot?o=Fe([t],n.includeContainer,{filter:qe.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Sn}):o=fn(t,n.includeContainer,qe.bind(null,n)),Rt(o)};function Cn(){return/apple/i.test(navigator.vendor)}const Ge="data-floating-ui-focusable",Tn="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Pn(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Ne(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&De(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function ie(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Te(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function On(e){return e.matches("html,body")}function ae(e){return e?.ownerDocument||document}function An(e){return _(e)&&e.matches(Tn)}function In(e){return e?e.hasAttribute(Ge)?e:e.querySelector("["+Ge+"]")||e:null}function ge(e,t,n){return n===void 0&&(n=!0),e.filter(r=>{var i;return r.parentId===t&&(!n||((i=r.context)==null?void 0:i.open))}).flatMap(r=>[r,...ge(e,r.id,n)])}function Dn(e){return"nativeEvent"in e}function Ze(e,t){return["mouse","pen"].includes(e)}var kn=typeof document<"u",Ln=function(){},z=kn?p.useLayoutEffect:Ln;const Mn={...gt},Fn=Mn.useInsertionEffect,Nn=Fn||(e=>e());function Q(e){const t=p.useRef(()=>{});return Nn(()=>{t.current=e}),p.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}const St=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ct(e,t){const n=Et(e,St()),o=n.length;if(o===0)return;const r=Pn(ae(e)),i=n.indexOf(r),s=i===-1?t===1?0:o-1:i+t;return n[s]}function $n(e){return Ct(ae(e).body,1)||e}function Bn(e){return Ct(ae(e).body,-1)||e}function Pe(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return!o||!Ne(n,o)}function _n(e){Et(e,St()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function ze(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const o=n.dataset.tabindex;delete n.dataset.tabindex,o?n.setAttribute("tabindex",o):n.removeAttribute("tabindex")})}function Qe(e,t,n){let{reference:o,floating:r}=e;const i=Ee(t),s=We(t),c=_e(s),l=oe(t),a=i==="y",u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let d;switch(l){case"top":d={x:u,y:o.y-r.height};break;case"bottom":d={x:u,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:f};break;case"left":d={x:o.x-r.width,y:f};break;default:d={x:o.x,y:o.y}}switch(U(t)){case"start":d[s]-=m*(n&&a?-1:1);break;case"end":d[s]+=m*(n&&a?-1:1);break}return d}const Wn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let a=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:f}=Qe(a,o,l),m=o,d={},h=0;for(let g=0;g<c.length;g++){const{name:v,fn:w}=c[g],{x:b,y:x,data:S,reset:E}=await w({x:u,y:f,initialPlacement:o,placement:m,strategy:r,middlewareData:d,rects:a,platform:s,elements:{reference:e,floating:t}});u=b??u,f=x??f,d={...d,[v]:{...d[v],...S}},E&&h<=50&&(h++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(a=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:u,y:f}=Qe(a,m,l)),g=-1)}return{x:u,y:f,placement:m,strategy:r,middlewareData:d}};async function Tt(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=e,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:m=!1,padding:d=0}=de(t,e),h=vt(d),v=c[m?f==="floating"?"reference":"floating":f],w=he(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:u,strategy:l})),b=f==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=he(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:x,strategy:l}):b);return{top:(w.top-E.top+h.top)/S.y,bottom:(E.bottom-w.bottom+h.bottom)/S.y,left:(w.left-E.left+h.left)/S.x,right:(E.right-w.right+h.right)/S.x}}const Vn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=t,{element:a,padding:u=0}=de(e,t)||{};if(a==null)return{};const f=vt(u),m={x:n,y:o},d=We(r),h=_e(d),g=await s.getDimensions(a),v=d==="y",w=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[d]-m[d]-i.floating[h],E=m[d]-i.reference[d],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let C=A?A[x]:0;(!C||!await(s.isElement==null?void 0:s.isElement(A)))&&(C=c.floating[x]||i.floating[h]);const O=S/2-E/2,B=C/2-g[h]/2-1,P=se(f[w],B),N=se(f[b],B),M=P,$=C-g[h]-N,R=C/2-g[h]/2+O,I=Le(M,R,$),T=!l.arrow&&U(r)!=null&&R!==I&&i.reference[h]/2-(R<M?P:N)-g[h]/2<0,D=T?R<M?R-M:R-$:0;return{[d]:m[d]+D,data:{[d]:I,centerOffset:R-I-D,...T&&{alignmentOffset:D}},reset:T}}});function jn(e,t,n){return(e?[...n.filter(r=>U(r)===e),...n.filter(r=>U(r)!==e)]:n.filter(r=>oe(r)===r)).filter(r=>e?U(r)===e||(t?cn(r)!==r:!1):!0)}const Hn=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r;const{rects:i,middlewareData:s,placement:c,platform:l,elements:a}=t,{crossAxis:u=!1,alignment:f,allowedPlacements:m=Ye,autoAlignment:d=!0,...h}=de(e,t),g=f!==void 0||m===Ye?jn(f||null,d,m):m,v=await Tt(t,h),w=((n=s.autoPlacement)==null?void 0:n.index)||0,b=g[w];if(b==null)return{};const x=sn(b,i,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(c!==b)return{reset:{placement:g[0]}};const S=[v[oe(b)],v[x[0]],v[x[1]]],E=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:b,overflows:S}],A=g[w+1];if(A)return{data:{index:w+1,overflows:E},reset:{placement:A}};const C=E.map(P=>{const N=U(P.placement);return[P.placement,N&&u?P.overflows.slice(0,2).reduce((M,$)=>M+$,0):P.overflows[0],P.overflows]}).sort((P,N)=>P[1]-N[1]),B=((r=C.filter(P=>P[2].slice(0,U(P[0])?2:3).every(N=>N<=0))[0])==null?void 0:r[0])||C[0][0];return B!==c?{data:{index:w+1,overflows:E},reset:{placement:B}}:{}}}},Kn=new Set(["left","top"]);async function Yn(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=oe(n),c=U(n),l=Ee(n)==="y",a=Kn.has(s)?-1:1,u=i&&l?-1:1,f=de(t,e);let{mainAxis:m,crossAxis:d,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof h=="number"&&(d=c==="end"?h*-1:h),l?{x:d*u,y:m*a}:{x:m*a,y:d*u}}const Xn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=t,l=await Yn(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Un=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:v=>{let{x:w,y:b}=v;return{x:w,y:b}}},...l}=de(e,t),a={x:n,y:o},u=await Tt(t,l),f=Ee(oe(r)),m=ht(f);let d=a[m],h=a[f];if(i){const v=m==="y"?"top":"left",w=m==="y"?"bottom":"right",b=d+u[v],x=d-u[w];d=Le(b,d,x)}if(s){const v=f==="y"?"top":"left",w=f==="y"?"bottom":"right",b=h+u[v],x=h-u[w];h=Le(b,h,x)}const g=c.fn({...t,[m]:d,[f]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[m]:i,[f]:s}}}}}};function Pt(e){const t=j(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=_(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,c=pe(n)!==i||pe(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Ot(e){return L(e)?e:e.contextElement}function te(e){const t=Ot(e);if(!_(t))return K(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Pt(t);let s=(i?pe(n.width):n.width)/o,c=(i?pe(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const qn=K(0);function At(e){const t=V(e);return!xe()||!t.visualViewport?qn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==V(e)?!1:t}function ue(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Ot(e);let s=K(1);t&&(o?L(o)&&(s=te(o)):s=te(e));const c=Gn(i,n,o)?At(i):K(0);let l=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,u=r.width/s.x,f=r.height/s.y;if(i){const m=V(i),d=o&&L(o)?V(o):o;let h=m,g=ke(h);for(;g&&o&&d!==h;){const v=te(g),w=g.getBoundingClientRect(),b=j(g),x=w.left+(g.clientLeft+parseFloat(b.paddingLeft))*v.x,S=w.top+(g.clientTop+parseFloat(b.paddingTop))*v.y;l*=v.x,a*=v.y,u*=v.x,f*=v.y,l+=x,a+=S,h=V(g),g=ke(h)}}return he({width:u,height:f,x:l,y:a})}function Se(e,t){const n=Re(e).scrollLeft;return t?t.left+n:ue(G(e)).left+n}function It(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Se(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Zn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=G(o),c=t?we(t.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=K(1);const u=K(0),f=_(o);if((f||!f&&!i)&&((ne(o)!=="body"||fe(s))&&(l=Re(o)),_(o))){const d=ue(o);a=te(o),u.x=d.x+o.clientLeft,u.y=d.y+o.clientTop}const m=s&&!f&&!i?It(s,l):K(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+u.x+m.x,y:n.y*a.y-l.scrollTop*a.y+u.y+m.y}}function zn(e){return Array.from(e.getClientRects())}function Qn(e){const t=G(e),n=Re(e),o=e.ownerDocument.body,r=ee(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=ee(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Se(e);const c=-n.scrollTop;return j(o).direction==="rtl"&&(s+=ee(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const Je=25;function Jn(e,t){const n=V(e),o=G(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;const u=xe();(!u||u&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=Se(o);if(a<=0){const u=o.ownerDocument,f=u.body,m=getComputedStyle(f),d=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(o.clientWidth-f.clientWidth-d);h<=Je&&(i-=h)}else a<=Je&&(i+=a);return{width:i,height:s,x:c,y:l}}const eo=new Set(["absolute","fixed"]);function to(e,t){const n=ue(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=_(e)?te(e):K(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,l=r*i.x,a=o*i.y;return{width:s,height:c,x:l,y:a}}function et(e,t,n){let o;if(t==="viewport")o=Jn(e,n);else if(t==="document")o=Qn(G(e));else if(L(t))o=to(t,n);else{const r=At(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return he(o)}function Dt(e,t){const n=q(e);return n===t||!L(n)||X(n)?!1:j(n).position==="fixed"||Dt(n,t)}function no(e,t){const n=t.get(e);if(n)return n;let o=J(e,[],!1).filter(c=>L(c)&&ne(c)!=="body"),r=null;const i=j(e).position==="fixed";let s=i?q(e):e;for(;L(s)&&!X(s);){const c=j(s),l=Be(s);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&eo.has(r.position)||fe(s)&&!l&&Dt(e,s))?o=o.filter(u=>u!==s):r=c,s=q(s)}return t.set(e,o),o}function oo(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?we(t)?[]:no(t,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,u)=>{const f=et(t,u,r);return a.top=ee(f.top,a.top),a.right=se(f.right,a.right),a.bottom=se(f.bottom,a.bottom),a.left=ee(f.left,a.left),a},et(t,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ro(e){const{width:t,height:n}=Pt(e);return{width:t,height:n}}function io(e,t,n){const o=_(t),r=G(t),i=n==="fixed",s=ue(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=K(0);function a(){l.x=Se(r)}if(o||!o&&!i)if((ne(t)!=="body"||fe(r))&&(c=Re(t)),o){const d=ue(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else r&&a();i&&!o&&r&&a();const u=r&&!o&&!i?It(r,c):K(0),f=s.left+c.scrollLeft-l.x-u.x,m=s.top+c.scrollTop-l.y-u.y;return{x:f,y:m,width:s.width,height:s.height}}function Oe(e){return j(e).position==="static"}function tt(e,t){if(!_(e)||j(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function kt(e,t){const n=V(e);if(we(e))return n;if(!_(e)){let r=q(e);for(;r&&!X(r);){if(L(r)&&!Oe(r))return r;r=q(r)}return n}let o=tt(e,t);for(;o&&qt(o)&&Oe(o);)o=tt(o,t);return o&&X(o)&&Oe(o)&&!Be(o)?n:o||Jt(e)||n}const so=async function(e){const t=this.getOffsetParent||kt,n=this.getDimensions,o=await n(e.floating);return{reference:io(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function co(e){return j(e).direction==="rtl"}const lo={convertOffsetParentRelativeRectToViewportRelativeRect:Zn,getDocumentElement:G,getClippingRect:oo,getOffsetParent:kt,getElementRects:so,getClientRects:zn,getDimensions:ro,getScale:te,isElement:L,isRTL:co},ao=Xn,uo=Hn,fo=Un,nt=Vn,go=(e,t,n)=>{const o=new Map,r={platform:lo,...n},i={...r.platform,_c:o};return Wn(e,t,{...r,platform:i})};var mo=typeof document<"u",po=function(){},me=mo?p.useLayoutEffect:po;function be(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!be(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!be(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Lt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ot(e,t){const n=Lt(e);return Math.round(t*n)/n}function Ae(e){const t=p.useRef(e);return me(()=>{t.current=e}),t}function ho(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=e,[u,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,d]=p.useState(o);be(m,o)||d(o);const[h,g]=p.useState(null),[v,w]=p.useState(null),b=p.useCallback(y=>{y!==A.current&&(A.current=y,g(y))},[]),x=p.useCallback(y=>{y!==C.current&&(C.current=y,w(y))},[]),S=i||h,E=s||v,A=p.useRef(null),C=p.useRef(null),O=p.useRef(u),B=l!=null,P=Ae(l),N=Ae(r),M=Ae(a),$=p.useCallback(()=>{if(!A.current||!C.current)return;const y={placement:t,strategy:n,middleware:m};N.current&&(y.platform=N.current),go(A.current,C.current,y).then(k=>{const F={...k,isPositioned:M.current!==!1};R.current&&!be(O.current,F)&&(O.current=F,mt.flushSync(()=>{f(F)}))})},[m,t,n,N,M]);me(()=>{a===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(y=>({...y,isPositioned:!1})))},[a]);const R=p.useRef(!1);me(()=>(R.current=!0,()=>{R.current=!1}),[]),me(()=>{if(S&&(A.current=S),E&&(C.current=E),S&&E){if(P.current)return P.current(S,E,$);$()}},[S,E,$,P,B]);const I=p.useMemo(()=>({reference:A,floating:C,setReference:b,setFloating:x}),[b,x]),T=p.useMemo(()=>({reference:S,floating:E}),[S,E]),D=p.useMemo(()=>{const y={position:n,left:0,top:0};if(!T.floating)return y;const k=ot(T.floating,u.x),F=ot(T.floating,u.y);return c?{...y,transform:"translate("+k+"px, "+F+"px)",...Lt(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:F}},[n,c,T.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:$,refs:I,elements:T,floatingStyles:D}),[u,$,I,T,D])}const vo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?nt({element:o.current,padding:r}).fn(n):{}:o?nt({element:o,padding:r}).fn(n):{}}}},Mo=(e,t)=>({...ao(e),options:[e,t]}),Fo=(e,t)=>({...fo(e),options:[e,t]}),No=(e,t)=>({...uo(e),options:[e,t]}),$o=(e,t)=>({...vo(e),options:[e,t]}),bo="data-floating-ui-focusable",rt="active",it="selected",yo={...gt};let st=!1,wo=0;const ct=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+wo++;function xo(){const[e,t]=p.useState(()=>st?ct():void 0);return z(()=>{e==null&&t(ct())},[]),p.useEffect(()=>{st=!0},[]),e}const Ro=yo.useId,Ce=Ro||xo,Bo=p.forwardRef(function(t,n){const{context:{placement:o,elements:{floating:r},middlewareData:{arrow:i,shift:s}},width:c=14,height:l=7,tipRadius:a=0,strokeWidth:u=0,staticOffset:f,stroke:m,d,style:{transform:h,...g}={},...v}=t,w=Ce(),[b,x]=p.useState(!1);if(z(()=>{if(!r)return;j(r).direction==="rtl"&&x(!0)},[r]),!r)return null;const[S,E]=o.split("-"),A=S==="top"||S==="bottom";let C=f;(A&&s!=null&&s.x||!A&&s!=null&&s.y)&&(C=null);const O=u*2,B=O/2,P=c/2*(a/-8+1),N=l/2*a/4,M=!!d,$=C&&E==="end"?"bottom":"top";let R=C&&E==="end"?"right":"left";C&&b&&(R=E==="end"?"left":"right");const I=i?.x!=null?C||i.x:"",T=i?.y!=null?C||i.y:"",D=d||"M0,0"+(" H"+c)+(" L"+(c-P)+","+(l-N))+(" Q"+c/2+","+l+" "+P+","+(l-N))+" Z",y={top:M?"rotate(180deg)":"",left:M?"rotate(90deg)":"rotate(-90deg)",bottom:M?"":"rotate(180deg)",right:M?"rotate(-90deg)":"rotate(90deg)"}[S];return H.jsxs("svg",{...v,"aria-hidden":!0,ref:n,width:M?c:c+O,height:c,viewBox:"0 0 "+c+" "+(l>c?l:c),style:{position:"absolute",pointerEvents:"none",[R]:I,[$]:T,[S]:A||M?"100%":"calc(100% - "+O/2+"px)",transform:[y,h].filter(k=>!!k).join(" "),...g},children:[O>0&&H.jsx("path",{clipPath:"url(#"+w+")",fill:"none",stroke:m,strokeWidth:O+(d?0:1),d:D}),H.jsx("path",{stroke:O&&!d?v.fill:"none",d:D}),H.jsx("clipPath",{id:w,children:H.jsx("rect",{x:-B,y:B*(M?-1:1),width:c+O,height:c})})]})});function Eo(){const e=new Map;return{emit(t,n){var o;(o=e.get(t))==null||o.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var o;(o=e.get(t))==null||o.delete(n)}}}const So=p.createContext(null),Co=p.createContext(null),Mt=()=>{var e;return((e=p.useContext(So))==null?void 0:e.id)||null},Ft=()=>p.useContext(Co);function Ve(e){return"data-floating-ui-"+e}const Nt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},lt=p.forwardRef(function(t,n){const[o,r]=p.useState();z(()=>{Cn()&&r("button")},[]);const i={ref:n,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,[Ve("focus-guard")]:"",style:Nt};return H.jsx("span",{...t,...i})}),$t=p.createContext(null),at=Ve("portal");function To(e){e===void 0&&(e={});const{id:t,root:n}=e,o=Ce(),r=Po(),[i,s]=p.useState(null),c=p.useRef(null);return z(()=>()=>{i?.remove(),queueMicrotask(()=>{c.current=null})},[i]),z(()=>{if(!o||c.current)return;const l=t?document.getElementById(t):null;if(!l)return;const a=document.createElement("div");a.id=o,a.setAttribute(at,""),l.appendChild(a),c.current=a,s(a)},[t,o]),z(()=>{if(n===null||!o||c.current)return;let l=n||r?.portalNode;l&&!$e(l)&&(l=l.current),l=l||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,l.appendChild(a));const u=document.createElement("div");u.id=o,u.setAttribute(at,""),l=a||l,l.appendChild(u),c.current=u,s(u)},[t,n,o,r]),i}function _o(e){const{children:t,id:n,root:o,preserveTabOrder:r=!0}=e,i=To({id:n,root:o}),[s,c]=p.useState(null),l=p.useRef(null),a=p.useRef(null),u=p.useRef(null),f=p.useRef(null),m=s?.modal,d=s?.open,h=!!s&&!s.modal&&s.open&&r&&!!(o||i);return p.useEffect(()=>{if(!i||!r||m)return;function g(v){i&&Pe(v)&&(v.type==="focusin"?ze:_n)(i)}return i.addEventListener("focusin",g,!0),i.addEventListener("focusout",g,!0),()=>{i.removeEventListener("focusin",g,!0),i.removeEventListener("focusout",g,!0)}},[i,r,m]),p.useEffect(()=>{i&&(d||ze(i))},[d,i]),H.jsxs($t.Provider,{value:p.useMemo(()=>({preserveTabOrder:r,beforeOutsideRef:l,afterOutsideRef:a,beforeInsideRef:u,afterInsideRef:f,portalNode:i,setFocusManagerState:c}),[r,i]),children:[h&&i&&H.jsx(lt,{"data-type":"outside",ref:l,onFocus:g=>{if(Pe(g,i)){var v;(v=u.current)==null||v.focus()}else{const w=s?s.domReference:null,b=Bn(w);b?.focus()}}}),h&&i&&H.jsx("span",{"aria-owns":i.id,style:Nt}),i&&mt.createPortal(t,i),h&&i&&H.jsx(lt,{"data-type":"outside",ref:a,onFocus:g=>{if(Pe(g,i)){var v;(v=f.current)==null||v.focus()}else{const w=s?s.domReference:null,b=$n(w);b?.focus(),s?.closeOnFocusOut&&s?.onOpenChange(!1,g.nativeEvent,"focus-out")}}})]})}const Po=()=>p.useContext($t);function ut(e){return _(e.target)&&e.target.tagName==="BUTTON"}function Oo(e){return _(e.target)&&e.target.tagName==="A"}function ft(e){return An(e)}function Wo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,dataRef:r,elements:{domReference:i}}=e,{enabled:s=!0,event:c="click",toggle:l=!0,ignoreMouse:a=!1,keyboardHandlers:u=!0,stickIfOpen:f=!0}=t,m=p.useRef(),d=p.useRef(!1),h=p.useMemo(()=>({onPointerDown(g){m.current=g.pointerType},onMouseDown(g){const v=m.current;g.button===0&&c!=="click"&&(Ze(v)&&a||(n&&l&&(!(r.current.openEvent&&f)||r.current.openEvent.type==="mousedown")?o(!1,g.nativeEvent,"click"):(g.preventDefault(),o(!0,g.nativeEvent,"click"))))},onClick(g){const v=m.current;if(c==="mousedown"&&m.current){m.current=void 0;return}Ze(v)&&a||(n&&l&&(!(r.current.openEvent&&f)||r.current.openEvent.type==="click")?o(!1,g.nativeEvent,"click"):o(!0,g.nativeEvent,"click"))},onKeyDown(g){m.current=void 0,!(g.defaultPrevented||!u||ut(g))&&(g.key===" "&&!ft(i)&&(g.preventDefault(),d.current=!0),!Oo(g)&&g.key==="Enter"&&o(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!u||ut(g)||ft(i)||g.key===" "&&d.current&&(d.current=!1,o(!(n&&l),g.nativeEvent,"click"))}}),[r,i,c,a,u,o,n,f,l]);return p.useMemo(()=>s?{reference:h}:{},[s,h])}const Ao={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Io={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},dt=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function Vo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,elements:r,dataRef:i}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:l=!0,outsidePressEvent:a="pointerdown",referencePress:u=!1,referencePressEvent:f="pointerdown",ancestorScroll:m=!1,bubbles:d,capture:h}=t,g=Ft(),v=Q(typeof l=="function"?l:()=>!1),w=typeof l=="function"?v:l,b=p.useRef(!1),{escapeKey:x,outsidePress:S}=dt(d),{escapeKey:E,outsidePress:A}=dt(h),C=p.useRef(!1),O=Q(R=>{var I;if(!n||!s||!c||R.key!=="Escape"||C.current)return;const T=(I=i.current.floatingContext)==null?void 0:I.nodeId,D=g?ge(g.nodesRef.current,T):[];if(!x&&(R.stopPropagation(),D.length>0)){let y=!0;if(D.forEach(k=>{var F;if((F=k.context)!=null&&F.open&&!k.context.dataRef.current.__escapeKeyBubbles){y=!1;return}}),!y)return}o(!1,Dn(R)?R.nativeEvent:R,"escape-key")}),B=Q(R=>{var I;const T=()=>{var D;O(R),(D=ie(R))==null||D.removeEventListener("keydown",T)};(I=ie(R))==null||I.addEventListener("keydown",T)}),P=Q(R=>{var I;const T=i.current.insideReactTree;i.current.insideReactTree=!1;const D=b.current;if(b.current=!1,a==="click"&&D||T||typeof w=="function"&&!w(R))return;const y=ie(R),k="["+Ve("inert")+"]",F=ae(r.floating).querySelectorAll(k);let Z=L(y)?y:null;for(;Z&&!X(Z);){const W=q(Z);if(X(W)||!L(W))break;Z=W}if(F.length&&L(y)&&!On(y)&&!Ne(y,r.floating)&&Array.from(F).every(W=>!Ne(Z,W)))return;if(_(y)&&$){const W=X(y),Y=j(y),re=/auto|scroll/,_t=W||re.test(Y.overflowX),Wt=W||re.test(Y.overflowY),Vt=_t&&y.clientWidth>0&&y.scrollWidth>y.clientWidth,jt=Wt&&y.clientHeight>0&&y.scrollHeight>y.clientHeight,Ht=Y.direction==="rtl",Kt=jt&&(Ht?R.offsetX<=y.offsetWidth-y.clientWidth:R.offsetX>y.clientWidth),Yt=Vt&&R.offsetY>y.clientHeight;if(Kt||Yt)return}const je=(I=i.current.floatingContext)==null?void 0:I.nodeId,Bt=g&&ge(g.nodesRef.current,je).some(W=>{var Y;return Te(R,(Y=W.context)==null?void 0:Y.elements.floating)});if(Te(R,r.floating)||Te(R,r.domReference)||Bt)return;const He=g?ge(g.nodesRef.current,je):[];if(He.length>0){let W=!0;if(He.forEach(Y=>{var re;if((re=Y.context)!=null&&re.open&&!Y.context.dataRef.current.__outsidePressBubbles){W=!1;return}}),!W)return}o(!1,R,"outside-press")}),N=Q(R=>{var I;const T=()=>{var D;P(R),(D=ie(R))==null||D.removeEventListener(a,T)};(I=ie(R))==null||I.addEventListener(a,T)});p.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=S;let R=-1;function I(F){o(!1,F,"ancestor-scroll")}function T(){window.clearTimeout(R),C.current=!0}function D(){R=window.setTimeout(()=>{C.current=!1},xe()?5:0)}const y=ae(r.floating);c&&(y.addEventListener("keydown",E?B:O,E),y.addEventListener("compositionstart",T),y.addEventListener("compositionend",D)),w&&y.addEventListener(a,A?N:P,A);let k=[];return m&&(L(r.domReference)&&(k=J(r.domReference)),L(r.floating)&&(k=k.concat(J(r.floating))),!L(r.reference)&&r.reference&&r.reference.contextElement&&(k=k.concat(J(r.reference.contextElement)))),k=k.filter(F=>{var Z;return F!==((Z=y.defaultView)==null?void 0:Z.visualViewport)}),k.forEach(F=>{F.addEventListener("scroll",I,{passive:!0})}),()=>{c&&(y.removeEventListener("keydown",E?B:O,E),y.removeEventListener("compositionstart",T),y.removeEventListener("compositionend",D)),w&&y.removeEventListener(a,A?N:P,A),k.forEach(F=>{F.removeEventListener("scroll",I)}),window.clearTimeout(R)}},[i,r,c,w,a,n,o,m,s,x,S,O,E,B,P,A,N]),p.useEffect(()=>{i.current.insideReactTree=!1},[i,w,a]);const M=p.useMemo(()=>({onKeyDown:O,...u&&{[Ao[f]]:R=>{o(!1,R.nativeEvent,"reference-press")},...f!=="click"&&{onClick(R){o(!1,R.nativeEvent,"reference-press")}}}}),[O,o,u,f]),$=p.useMemo(()=>({onKeyDown:O,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[Io[a]]:()=>{i.current.insideReactTree=!0}}),[O,a,i]);return p.useMemo(()=>s?{reference:M,floating:$}:{},[s,M,$])}function Do(e){const{open:t=!1,onOpenChange:n,elements:o}=e,r=Ce(),i=p.useRef({}),[s]=p.useState(()=>Eo()),c=Mt()!=null,[l,a]=p.useState(o.reference),u=Q((d,h,g)=>{i.current.openEvent=d?h:void 0,s.emit("openchange",{open:d,event:h,reason:g,nested:c}),n?.(d,h,g)}),f=p.useMemo(()=>({setPositionReference:a}),[]),m=p.useMemo(()=>({reference:l||o.reference||null,floating:o.floating||null,domReference:o.reference}),[l,o.reference,o.floating]);return p.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:m,events:s,floatingId:r,refs:f}),[t,u,m,s,r,f])}function jo(e){e===void 0&&(e={});const{nodeId:t}=e,n=Do({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,r=o.elements,[i,s]=p.useState(null),[c,l]=p.useState(null),u=r?.domReference||i,f=p.useRef(null),m=Ft();z(()=>{u&&(f.current=u)},[u]);const d=ho({...e,elements:{...r,...c&&{reference:c}}}),h=p.useCallback(x=>{const S=L(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;l(S),d.refs.setReference(S)},[d.refs]),g=p.useCallback(x=>{(L(x)||x===null)&&(f.current=x,s(x)),(L(d.refs.reference.current)||d.refs.reference.current===null||x!==null&&!L(x))&&d.refs.setReference(x)},[d.refs]),v=p.useMemo(()=>({...d.refs,setReference:g,setPositionReference:h,domReference:f}),[d.refs,g,h]),w=p.useMemo(()=>({...d.elements,domReference:u}),[d.elements,u]),b=p.useMemo(()=>({...d,...o,refs:v,elements:w,nodeId:t}),[d,v,w,t,o]);return z(()=>{o.dataRef.current.floatingContext=b;const x=m?.nodesRef.current.find(S=>S.id===t);x&&(x.context=b)}),p.useMemo(()=>({...d,context:b,refs:v,elements:w}),[d,v,w,b])}function Ie(e,t,n){const o=new Map,r=n==="item";let i=e;if(r&&e){const{[rt]:s,[it]:c,...l}=e;i=l}return{...n==="floating"&&{tabIndex:-1,[bo]:""},...i,...t.map(s=>{const c=s?s[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((s,c)=>(c&&Object.entries(c).forEach(l=>{let[a,u]=l;if(!(r&&[rt,it].includes(a)))if(a.indexOf("on")===0){if(o.has(a)||o.set(a,[]),typeof u=="function"){var f;(f=o.get(a))==null||f.push(u),s[a]=function(){for(var m,d=arguments.length,h=new Array(d),g=0;g<d;g++)h[g]=arguments[g];return(m=o.get(a))==null?void 0:m.map(v=>v(...h)).find(v=>v!==void 0)}}}else s[a]=u}),s),{})}}function Ho(e){e===void 0&&(e=[]);const t=e.map(c=>c?.reference),n=e.map(c=>c?.floating),o=e.map(c=>c?.item),r=p.useCallback(c=>Ie(c,e,"reference"),t),i=p.useCallback(c=>Ie(c,e,"floating"),n),s=p.useCallback(c=>Ie(c,e,"item"),o);return p.useMemo(()=>({getReferenceProps:r,getFloatingProps:i,getItemProps:s}),[r,i,s])}const ko=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ko(e,t){var n,o;t===void 0&&(t={});const{open:r,elements:i,floatingId:s}=e,{enabled:c=!0,role:l="dialog"}=t,a=Ce(),u=((n=i.domReference)==null?void 0:n.id)||a,f=p.useMemo(()=>{var b;return((b=In(i.floating))==null?void 0:b.id)||s},[i.floating,s]),m=(o=ko.get(l))!=null?o:l,h=Mt()!=null,g=p.useMemo(()=>m==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:r?f:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":m==="alertdialog"?"dialog":m,"aria-controls":r?f:void 0,...m==="listbox"&&{role:"combobox"},...m==="menu"&&{id:u},...m==="menu"&&h&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[m,f,h,r,u,l]),v=p.useMemo(()=>{const b={id:f,...m&&{role:m}};return m==="tooltip"||l==="label"?b:{...b,...m==="menu"&&{"aria-labelledby":u}}},[m,f,u,l]),w=p.useCallback(b=>{let{active:x,selected:S}=b;const E={role:"option",...x&&{id:f+"-fui-option"}};switch(l){case"select":case"combobox":return{...E,"aria-selected":S}}return{}},[f,l]);return p.useMemo(()=>c?{reference:g,floating:v,item:w}:{},[c,g,v,w])}export{_o as F,No as a,$o as b,Ko as c,Vo as d,Ho as e,Bo as f,Wo as g,Mo as o,Fo as s,jo as u};
1
+ import{r as p,b1 as gt,b2 as mt,j as H}from"./index-BpYGCU7a.js";function ye(){return typeof window<"u"}function ne(e){return $e(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function G(e){var t;return(t=($e(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $e(e){return ye()?e instanceof Node||e instanceof V(e).Node:!1}function L(e){return ye()?e instanceof Element||e instanceof V(e).Element:!1}function _(e){return ye()?e instanceof HTMLElement||e instanceof V(e).HTMLElement:!1}function De(e){return!ye()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}const Xt=new Set(["inline","contents"]);function fe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=j(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!Xt.has(r)}const Ut=new Set(["table","td","th"]);function qt(e){return Ut.has(ne(e))}const Gt=[":popover-open",":modal"];function we(e){return Gt.some(t=>{try{return e.matches(t)}catch{return!1}})}const Zt=["transform","translate","scale","rotate","perspective"],zt=["transform","translate","scale","rotate","perspective","filter"],Qt=["paint","layout","strict","content"];function Be(e){const t=xe(),n=L(e)?j(e):e;return Zt.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||zt.some(o=>(n.willChange||"").includes(o))||Qt.some(o=>(n.contain||"").includes(o))}function Jt(e){let t=q(e);for(;_(t)&&!X(t);){if(Be(t))return t;if(we(t))return null;t=q(t)}return null}function xe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const en=new Set(["html","body","#document"]);function X(e){return en.has(ne(e))}function j(e){return V(e).getComputedStyle(e)}function Re(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function q(e){if(ne(e)==="html")return e;const t=e.assignedSlot||e.parentNode||De(e)&&e.host||G(e);return De(t)?t.host:t}function pt(e){const t=q(e);return X(t)?e.ownerDocument?e.ownerDocument.body:e.body:_(t)&&fe(t)?t:pt(t)}function J(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=pt(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=V(r);if(i){const c=ke(s);return t.concat(s,s.visualViewport||[],fe(r)?r:[],c&&n?J(c):[])}return t.concat(r,J(r,[],n))}function ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const tn=["top","right","bottom","left"],Ke=["start","end"],Ye=tn.reduce((e,t)=>e.concat(t,t+"-"+Ke[0],t+"-"+Ke[1]),[]),se=Math.min,ee=Math.max,pe=Math.round,K=e=>({x:e,y:e}),nn={left:"right",right:"left",bottom:"top",top:"bottom"},on={start:"end",end:"start"};function Le(e,t,n){return ee(e,se(t,n))}function de(e,t){return typeof e=="function"?e(t):e}function oe(e){return e.split("-")[0]}function U(e){return e.split("-")[1]}function ht(e){return e==="x"?"y":"x"}function _e(e){return e==="y"?"height":"width"}const rn=new Set(["top","bottom"]);function Ee(e){return rn.has(oe(e))?"y":"x"}function We(e){return ht(Ee(e))}function sn(e,t,n){n===void 0&&(n=!1);const o=U(e),r=We(e),i=_e(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Xe(s)),[s,Xe(s)]}function cn(e){return e.replace(/start|end/g,t=>on[t])}function Xe(e){return e.replace(/left|right|bottom|top/g,t=>nn[t])}function ln(e){return{top:0,right:0,bottom:0,left:0,...e}}function vt(e){return typeof e!="number"?ln(e):{top:e,right:e,bottom:e,left:e}}function he(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}var an=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Me=an.join(","),bt=typeof Element>"u",ce=bt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ve=!bt&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},le=function(t,n){var o;n===void 0&&(n=!0);var r=t==null||(o=t.getAttribute)===null||o===void 0?void 0:o.call(t,"inert"),i=r===""||r==="true",s=i||n&&t&&le(t.parentNode);return s},un=function(t){var n,o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return o===""||o==="true"},fn=function(t,n,o){if(le(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(Me));return n&&ce.call(t,Me)&&r.unshift(t),r=r.filter(o),r},Fe=function(t,n,o){for(var r=[],i=Array.from(t);i.length;){var s=i.shift();if(!le(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),l=c.length?c:s.children,a=Fe(l,!0,o);o.flatten?r.push.apply(r,a):r.push({scopeParent:s,candidates:a})}else{var u=ce.call(s,Me);u&&o.filter(s)&&(n||!t.includes(s))&&r.push(s);var f=s.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(s),m=!le(f,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(s));if(f&&m){var d=Fe(f===!0?s.children:f.children,!0,o);o.flatten?r.push.apply(r,d):r.push({scopeParent:s,candidates:d})}else i.unshift.apply(i,s.children)}}return r},yt=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},wt=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||un(t))&&!yt(t)?0:t.tabIndex},dn=function(t,n){var o=wt(t);return o<0&&n&&!yt(t)?0:o},gn=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},xt=function(t){return t.tagName==="INPUT"},mn=function(t){return xt(t)&&t.type==="hidden"},pn=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(o){return o.tagName==="SUMMARY"});return n},hn=function(t,n){for(var o=0;o<t.length;o++)if(t[o].checked&&t[o].form===n)return t[o]},vn=function(t){if(!t.name)return!0;var n=t.form||ve(t),o=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=o(window.CSS.escape(t.name));else try{r=o(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=hn(r,t.form);return!i||i===t},bn=function(t){return xt(t)&&t.type==="radio"},yn=function(t){return bn(t)&&!vn(t)},wn=function(t){var n,o=t&&ve(t),r=(n=o)===null||n===void 0?void 0:n.host,i=!1;if(o&&o!==t){var s,c,l;for(i=!!((s=r)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(r)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!i&&r;){var a,u,f;o=ve(r),r=(a=o)===null||a===void 0?void 0:a.host,i=!!((u=r)!==null&&u!==void 0&&(f=u.ownerDocument)!==null&&f!==void 0&&f.contains(r))}}return i},Ue=function(t){var n=t.getBoundingClientRect(),o=n.width,r=n.height;return o===0&&r===0},xn=function(t,n){var o=n.displayCheck,r=n.getShadowRoot;if(o==="full-native"&&"checkVisibility"in t){var i=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(t).visibility==="hidden")return!0;var s=ce.call(t,"details>summary:first-of-type"),c=s?t.parentElement:t;if(ce.call(c,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="full-native"||o==="legacy-full"){if(typeof r=="function"){for(var l=t;t;){var a=t.parentElement,u=ve(t);if(a&&!a.shadowRoot&&r(a)===!0)return Ue(t);t.assignedSlot?t=t.assignedSlot:!a&&u!==t.ownerDocument?t=u.host:t=a}t=l}if(wn(t))return!t.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Ue(t);return!1},Rn=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var o=0;o<n.children.length;o++){var r=n.children.item(o);if(r.tagName==="LEGEND")return ce.call(n,"fieldset[disabled] *")?!0:!r.contains(t)}return!0}n=n.parentElement}return!1},En=function(t,n){return!(n.disabled||le(n)||mn(n)||xn(n,t)||pn(n)||Rn(n))},qe=function(t,n){return!(yn(n)||wt(n)<0||!En(t,n))},Sn=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Rt=function(t){var n=[],o=[];return t.forEach(function(r,i){var s=!!r.scopeParent,c=s?r.scopeParent:r,l=dn(c,s),a=s?Rt(r.candidates):c;l===0?s?n.push.apply(n,a):n.push(c):o.push({documentOrder:i,tabIndex:l,item:r,isScope:s,content:a})}),o.sort(gn).reduce(function(r,i){return i.isScope?r.push.apply(r,i.content):r.push(i.content),r},[]).concat(n)},Et=function(t,n){n=n||{};var o;return n.getShadowRoot?o=Fe([t],n.includeContainer,{filter:qe.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Sn}):o=fn(t,n.includeContainer,qe.bind(null,n)),Rt(o)};function Cn(){return/apple/i.test(navigator.vendor)}const Ge="data-floating-ui-focusable",Tn="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Pn(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function Ne(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&De(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function ie(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Te(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function On(e){return e.matches("html,body")}function ae(e){return e?.ownerDocument||document}function An(e){return _(e)&&e.matches(Tn)}function In(e){return e?e.hasAttribute(Ge)?e:e.querySelector("["+Ge+"]")||e:null}function ge(e,t,n){return n===void 0&&(n=!0),e.filter(r=>{var i;return r.parentId===t&&(!n||((i=r.context)==null?void 0:i.open))}).flatMap(r=>[r,...ge(e,r.id,n)])}function Dn(e){return"nativeEvent"in e}function Ze(e,t){return["mouse","pen"].includes(e)}var kn=typeof document<"u",Ln=function(){},z=kn?p.useLayoutEffect:Ln;const Mn={...gt},Fn=Mn.useInsertionEffect,Nn=Fn||(e=>e());function Q(e){const t=p.useRef(()=>{});return Nn(()=>{t.current=e}),p.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}const St=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ct(e,t){const n=Et(e,St()),o=n.length;if(o===0)return;const r=Pn(ae(e)),i=n.indexOf(r),s=i===-1?t===1?0:o-1:i+t;return n[s]}function $n(e){return Ct(ae(e).body,1)||e}function Bn(e){return Ct(ae(e).body,-1)||e}function Pe(e,t){const n=t||e.currentTarget,o=e.relatedTarget;return!o||!Ne(n,o)}function _n(e){Et(e,St()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function ze(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const o=n.dataset.tabindex;delete n.dataset.tabindex,o?n.setAttribute("tabindex",o):n.removeAttribute("tabindex")})}function Qe(e,t,n){let{reference:o,floating:r}=e;const i=Ee(t),s=We(t),c=_e(s),l=oe(t),a=i==="y",u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let d;switch(l){case"top":d={x:u,y:o.y-r.height};break;case"bottom":d={x:u,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:f};break;case"left":d={x:o.x-r.width,y:f};break;default:d={x:o.x,y:o.y}}switch(U(t)){case"start":d[s]-=m*(n&&a?-1:1);break;case"end":d[s]+=m*(n&&a?-1:1);break}return d}const Wn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let a=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:f}=Qe(a,o,l),m=o,d={},h=0;for(let g=0;g<c.length;g++){const{name:v,fn:w}=c[g],{x:b,y:x,data:S,reset:E}=await w({x:u,y:f,initialPlacement:o,placement:m,strategy:r,middlewareData:d,rects:a,platform:s,elements:{reference:e,floating:t}});u=b??u,f=x??f,d={...d,[v]:{...d[v],...S}},E&&h<=50&&(h++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(a=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:u,y:f}=Qe(a,m,l)),g=-1)}return{x:u,y:f,placement:m,strategy:r,middlewareData:d}};async function Tt(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=e,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:m=!1,padding:d=0}=de(t,e),h=vt(d),v=c[m?f==="floating"?"reference":"floating":f],w=he(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:u,strategy:l})),b=f==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},E=he(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:x,strategy:l}):b);return{top:(w.top-E.top+h.top)/S.y,bottom:(E.bottom-w.bottom+h.bottom)/S.y,left:(w.left-E.left+h.left)/S.x,right:(E.right-w.right+h.right)/S.x}}const Vn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=t,{element:a,padding:u=0}=de(e,t)||{};if(a==null)return{};const f=vt(u),m={x:n,y:o},d=We(r),h=_e(d),g=await s.getDimensions(a),v=d==="y",w=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[d]-m[d]-i.floating[h],E=m[d]-i.reference[d],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let C=A?A[x]:0;(!C||!await(s.isElement==null?void 0:s.isElement(A)))&&(C=c.floating[x]||i.floating[h]);const O=S/2-E/2,B=C/2-g[h]/2-1,P=se(f[w],B),N=se(f[b],B),M=P,$=C-g[h]-N,R=C/2-g[h]/2+O,I=Le(M,R,$),T=!l.arrow&&U(r)!=null&&R!==I&&i.reference[h]/2-(R<M?P:N)-g[h]/2<0,D=T?R<M?R-M:R-$:0;return{[d]:m[d]+D,data:{[d]:I,centerOffset:R-I-D,...T&&{alignmentOffset:D}},reset:T}}});function jn(e,t,n){return(e?[...n.filter(r=>U(r)===e),...n.filter(r=>U(r)!==e)]:n.filter(r=>oe(r)===r)).filter(r=>e?U(r)===e||(t?cn(r)!==r:!1):!0)}const Hn=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r;const{rects:i,middlewareData:s,placement:c,platform:l,elements:a}=t,{crossAxis:u=!1,alignment:f,allowedPlacements:m=Ye,autoAlignment:d=!0,...h}=de(e,t),g=f!==void 0||m===Ye?jn(f||null,d,m):m,v=await Tt(t,h),w=((n=s.autoPlacement)==null?void 0:n.index)||0,b=g[w];if(b==null)return{};const x=sn(b,i,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(c!==b)return{reset:{placement:g[0]}};const S=[v[oe(b)],v[x[0]],v[x[1]]],E=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:b,overflows:S}],A=g[w+1];if(A)return{data:{index:w+1,overflows:E},reset:{placement:A}};const C=E.map(P=>{const N=U(P.placement);return[P.placement,N&&u?P.overflows.slice(0,2).reduce((M,$)=>M+$,0):P.overflows[0],P.overflows]}).sort((P,N)=>P[1]-N[1]),B=((r=C.filter(P=>P[2].slice(0,U(P[0])?2:3).every(N=>N<=0))[0])==null?void 0:r[0])||C[0][0];return B!==c?{data:{index:w+1,overflows:E},reset:{placement:B}}:{}}}},Kn=new Set(["left","top"]);async function Yn(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=oe(n),c=U(n),l=Ee(n)==="y",a=Kn.has(s)?-1:1,u=i&&l?-1:1,f=de(t,e);let{mainAxis:m,crossAxis:d,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof h=="number"&&(d=c==="end"?h*-1:h),l?{x:d*u,y:m*a}:{x:m*a,y:d*u}}const Xn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=t,l=await Yn(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Un=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:v=>{let{x:w,y:b}=v;return{x:w,y:b}}},...l}=de(e,t),a={x:n,y:o},u=await Tt(t,l),f=Ee(oe(r)),m=ht(f);let d=a[m],h=a[f];if(i){const v=m==="y"?"top":"left",w=m==="y"?"bottom":"right",b=d+u[v],x=d-u[w];d=Le(b,d,x)}if(s){const v=f==="y"?"top":"left",w=f==="y"?"bottom":"right",b=h+u[v],x=h-u[w];h=Le(b,h,x)}const g=c.fn({...t,[m]:d,[f]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[m]:i,[f]:s}}}}}};function Pt(e){const t=j(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=_(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,c=pe(n)!==i||pe(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Ot(e){return L(e)?e:e.contextElement}function te(e){const t=Ot(e);if(!_(t))return K(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Pt(t);let s=(i?pe(n.width):n.width)/o,c=(i?pe(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const qn=K(0);function At(e){const t=V(e);return!xe()||!t.visualViewport?qn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Gn(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==V(e)?!1:t}function ue(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Ot(e);let s=K(1);t&&(o?L(o)&&(s=te(o)):s=te(e));const c=Gn(i,n,o)?At(i):K(0);let l=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,u=r.width/s.x,f=r.height/s.y;if(i){const m=V(i),d=o&&L(o)?V(o):o;let h=m,g=ke(h);for(;g&&o&&d!==h;){const v=te(g),w=g.getBoundingClientRect(),b=j(g),x=w.left+(g.clientLeft+parseFloat(b.paddingLeft))*v.x,S=w.top+(g.clientTop+parseFloat(b.paddingTop))*v.y;l*=v.x,a*=v.y,u*=v.x,f*=v.y,l+=x,a+=S,h=V(g),g=ke(h)}}return he({width:u,height:f,x:l,y:a})}function Se(e,t){const n=Re(e).scrollLeft;return t?t.left+n:ue(G(e)).left+n}function It(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Se(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Zn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=G(o),c=t?we(t.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=K(1);const u=K(0),f=_(o);if((f||!f&&!i)&&((ne(o)!=="body"||fe(s))&&(l=Re(o)),_(o))){const d=ue(o);a=te(o),u.x=d.x+o.clientLeft,u.y=d.y+o.clientTop}const m=s&&!f&&!i?It(s,l):K(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+u.x+m.x,y:n.y*a.y-l.scrollTop*a.y+u.y+m.y}}function zn(e){return Array.from(e.getClientRects())}function Qn(e){const t=G(e),n=Re(e),o=e.ownerDocument.body,r=ee(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=ee(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Se(e);const c=-n.scrollTop;return j(o).direction==="rtl"&&(s+=ee(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const Je=25;function Jn(e,t){const n=V(e),o=G(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;const u=xe();(!u||u&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=Se(o);if(a<=0){const u=o.ownerDocument,f=u.body,m=getComputedStyle(f),d=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(o.clientWidth-f.clientWidth-d);h<=Je&&(i-=h)}else a<=Je&&(i+=a);return{width:i,height:s,x:c,y:l}}const eo=new Set(["absolute","fixed"]);function to(e,t){const n=ue(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=_(e)?te(e):K(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,l=r*i.x,a=o*i.y;return{width:s,height:c,x:l,y:a}}function et(e,t,n){let o;if(t==="viewport")o=Jn(e,n);else if(t==="document")o=Qn(G(e));else if(L(t))o=to(t,n);else{const r=At(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return he(o)}function Dt(e,t){const n=q(e);return n===t||!L(n)||X(n)?!1:j(n).position==="fixed"||Dt(n,t)}function no(e,t){const n=t.get(e);if(n)return n;let o=J(e,[],!1).filter(c=>L(c)&&ne(c)!=="body"),r=null;const i=j(e).position==="fixed";let s=i?q(e):e;for(;L(s)&&!X(s);){const c=j(s),l=Be(s);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&eo.has(r.position)||fe(s)&&!l&&Dt(e,s))?o=o.filter(u=>u!==s):r=c,s=q(s)}return t.set(e,o),o}function oo(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?we(t)?[]:no(t,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,u)=>{const f=et(t,u,r);return a.top=ee(f.top,a.top),a.right=se(f.right,a.right),a.bottom=se(f.bottom,a.bottom),a.left=ee(f.left,a.left),a},et(t,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ro(e){const{width:t,height:n}=Pt(e);return{width:t,height:n}}function io(e,t,n){const o=_(t),r=G(t),i=n==="fixed",s=ue(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=K(0);function a(){l.x=Se(r)}if(o||!o&&!i)if((ne(t)!=="body"||fe(r))&&(c=Re(t)),o){const d=ue(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else r&&a();i&&!o&&r&&a();const u=r&&!o&&!i?It(r,c):K(0),f=s.left+c.scrollLeft-l.x-u.x,m=s.top+c.scrollTop-l.y-u.y;return{x:f,y:m,width:s.width,height:s.height}}function Oe(e){return j(e).position==="static"}function tt(e,t){if(!_(e)||j(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function kt(e,t){const n=V(e);if(we(e))return n;if(!_(e)){let r=q(e);for(;r&&!X(r);){if(L(r)&&!Oe(r))return r;r=q(r)}return n}let o=tt(e,t);for(;o&&qt(o)&&Oe(o);)o=tt(o,t);return o&&X(o)&&Oe(o)&&!Be(o)?n:o||Jt(e)||n}const so=async function(e){const t=this.getOffsetParent||kt,n=this.getDimensions,o=await n(e.floating);return{reference:io(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function co(e){return j(e).direction==="rtl"}const lo={convertOffsetParentRelativeRectToViewportRelativeRect:Zn,getDocumentElement:G,getClippingRect:oo,getOffsetParent:kt,getElementRects:so,getClientRects:zn,getDimensions:ro,getScale:te,isElement:L,isRTL:co},ao=Xn,uo=Hn,fo=Un,nt=Vn,go=(e,t,n)=>{const o=new Map,r={platform:lo,...n},i={...r.platform,_c:o};return Wn(e,t,{...r,platform:i})};var mo=typeof document<"u",po=function(){},me=mo?p.useLayoutEffect:po;function be(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!be(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!be(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Lt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ot(e,t){const n=Lt(e);return Math.round(t*n)/n}function Ae(e){const t=p.useRef(e);return me(()=>{t.current=e}),t}function ho(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=e,[u,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,d]=p.useState(o);be(m,o)||d(o);const[h,g]=p.useState(null),[v,w]=p.useState(null),b=p.useCallback(y=>{y!==A.current&&(A.current=y,g(y))},[]),x=p.useCallback(y=>{y!==C.current&&(C.current=y,w(y))},[]),S=i||h,E=s||v,A=p.useRef(null),C=p.useRef(null),O=p.useRef(u),B=l!=null,P=Ae(l),N=Ae(r),M=Ae(a),$=p.useCallback(()=>{if(!A.current||!C.current)return;const y={placement:t,strategy:n,middleware:m};N.current&&(y.platform=N.current),go(A.current,C.current,y).then(k=>{const F={...k,isPositioned:M.current!==!1};R.current&&!be(O.current,F)&&(O.current=F,mt.flushSync(()=>{f(F)}))})},[m,t,n,N,M]);me(()=>{a===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f(y=>({...y,isPositioned:!1})))},[a]);const R=p.useRef(!1);me(()=>(R.current=!0,()=>{R.current=!1}),[]),me(()=>{if(S&&(A.current=S),E&&(C.current=E),S&&E){if(P.current)return P.current(S,E,$);$()}},[S,E,$,P,B]);const I=p.useMemo(()=>({reference:A,floating:C,setReference:b,setFloating:x}),[b,x]),T=p.useMemo(()=>({reference:S,floating:E}),[S,E]),D=p.useMemo(()=>{const y={position:n,left:0,top:0};if(!T.floating)return y;const k=ot(T.floating,u.x),F=ot(T.floating,u.y);return c?{...y,transform:"translate("+k+"px, "+F+"px)",...Lt(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:F}},[n,c,T.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:$,refs:I,elements:T,floatingStyles:D}),[u,$,I,T,D])}const vo=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?nt({element:o.current,padding:r}).fn(n):{}:o?nt({element:o,padding:r}).fn(n):{}}}},Mo=(e,t)=>({...ao(e),options:[e,t]}),Fo=(e,t)=>({...fo(e),options:[e,t]}),No=(e,t)=>({...uo(e),options:[e,t]}),$o=(e,t)=>({...vo(e),options:[e,t]}),bo="data-floating-ui-focusable",rt="active",it="selected",yo={...gt};let st=!1,wo=0;const ct=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+wo++;function xo(){const[e,t]=p.useState(()=>st?ct():void 0);return z(()=>{e==null&&t(ct())},[]),p.useEffect(()=>{st=!0},[]),e}const Ro=yo.useId,Ce=Ro||xo,Bo=p.forwardRef(function(t,n){const{context:{placement:o,elements:{floating:r},middlewareData:{arrow:i,shift:s}},width:c=14,height:l=7,tipRadius:a=0,strokeWidth:u=0,staticOffset:f,stroke:m,d,style:{transform:h,...g}={},...v}=t,w=Ce(),[b,x]=p.useState(!1);if(z(()=>{if(!r)return;j(r).direction==="rtl"&&x(!0)},[r]),!r)return null;const[S,E]=o.split("-"),A=S==="top"||S==="bottom";let C=f;(A&&s!=null&&s.x||!A&&s!=null&&s.y)&&(C=null);const O=u*2,B=O/2,P=c/2*(a/-8+1),N=l/2*a/4,M=!!d,$=C&&E==="end"?"bottom":"top";let R=C&&E==="end"?"right":"left";C&&b&&(R=E==="end"?"left":"right");const I=i?.x!=null?C||i.x:"",T=i?.y!=null?C||i.y:"",D=d||"M0,0"+(" H"+c)+(" L"+(c-P)+","+(l-N))+(" Q"+c/2+","+l+" "+P+","+(l-N))+" Z",y={top:M?"rotate(180deg)":"",left:M?"rotate(90deg)":"rotate(-90deg)",bottom:M?"":"rotate(180deg)",right:M?"rotate(-90deg)":"rotate(90deg)"}[S];return H.jsxs("svg",{...v,"aria-hidden":!0,ref:n,width:M?c:c+O,height:c,viewBox:"0 0 "+c+" "+(l>c?l:c),style:{position:"absolute",pointerEvents:"none",[R]:I,[$]:T,[S]:A||M?"100%":"calc(100% - "+O/2+"px)",transform:[y,h].filter(k=>!!k).join(" "),...g},children:[O>0&&H.jsx("path",{clipPath:"url(#"+w+")",fill:"none",stroke:m,strokeWidth:O+(d?0:1),d:D}),H.jsx("path",{stroke:O&&!d?v.fill:"none",d:D}),H.jsx("clipPath",{id:w,children:H.jsx("rect",{x:-B,y:B*(M?-1:1),width:c+O,height:c})})]})});function Eo(){const e=new Map;return{emit(t,n){var o;(o=e.get(t))==null||o.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var o;(o=e.get(t))==null||o.delete(n)}}}const So=p.createContext(null),Co=p.createContext(null),Mt=()=>{var e;return((e=p.useContext(So))==null?void 0:e.id)||null},Ft=()=>p.useContext(Co);function Ve(e){return"data-floating-ui-"+e}const Nt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},lt=p.forwardRef(function(t,n){const[o,r]=p.useState();z(()=>{Cn()&&r("button")},[]);const i={ref:n,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,[Ve("focus-guard")]:"",style:Nt};return H.jsx("span",{...t,...i})}),$t=p.createContext(null),at=Ve("portal");function To(e){e===void 0&&(e={});const{id:t,root:n}=e,o=Ce(),r=Po(),[i,s]=p.useState(null),c=p.useRef(null);return z(()=>()=>{i?.remove(),queueMicrotask(()=>{c.current=null})},[i]),z(()=>{if(!o||c.current)return;const l=t?document.getElementById(t):null;if(!l)return;const a=document.createElement("div");a.id=o,a.setAttribute(at,""),l.appendChild(a),c.current=a,s(a)},[t,o]),z(()=>{if(n===null||!o||c.current)return;let l=n||r?.portalNode;l&&!$e(l)&&(l=l.current),l=l||document.body;let a=null;t&&(a=document.createElement("div"),a.id=t,l.appendChild(a));const u=document.createElement("div");u.id=o,u.setAttribute(at,""),l=a||l,l.appendChild(u),c.current=u,s(u)},[t,n,o,r]),i}function _o(e){const{children:t,id:n,root:o,preserveTabOrder:r=!0}=e,i=To({id:n,root:o}),[s,c]=p.useState(null),l=p.useRef(null),a=p.useRef(null),u=p.useRef(null),f=p.useRef(null),m=s?.modal,d=s?.open,h=!!s&&!s.modal&&s.open&&r&&!!(o||i);return p.useEffect(()=>{if(!i||!r||m)return;function g(v){i&&Pe(v)&&(v.type==="focusin"?ze:_n)(i)}return i.addEventListener("focusin",g,!0),i.addEventListener("focusout",g,!0),()=>{i.removeEventListener("focusin",g,!0),i.removeEventListener("focusout",g,!0)}},[i,r,m]),p.useEffect(()=>{i&&(d||ze(i))},[d,i]),H.jsxs($t.Provider,{value:p.useMemo(()=>({preserveTabOrder:r,beforeOutsideRef:l,afterOutsideRef:a,beforeInsideRef:u,afterInsideRef:f,portalNode:i,setFocusManagerState:c}),[r,i]),children:[h&&i&&H.jsx(lt,{"data-type":"outside",ref:l,onFocus:g=>{if(Pe(g,i)){var v;(v=u.current)==null||v.focus()}else{const w=s?s.domReference:null,b=Bn(w);b?.focus()}}}),h&&i&&H.jsx("span",{"aria-owns":i.id,style:Nt}),i&&mt.createPortal(t,i),h&&i&&H.jsx(lt,{"data-type":"outside",ref:a,onFocus:g=>{if(Pe(g,i)){var v;(v=f.current)==null||v.focus()}else{const w=s?s.domReference:null,b=$n(w);b?.focus(),s?.closeOnFocusOut&&s?.onOpenChange(!1,g.nativeEvent,"focus-out")}}})]})}const Po=()=>p.useContext($t);function ut(e){return _(e.target)&&e.target.tagName==="BUTTON"}function Oo(e){return _(e.target)&&e.target.tagName==="A"}function ft(e){return An(e)}function Wo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,dataRef:r,elements:{domReference:i}}=e,{enabled:s=!0,event:c="click",toggle:l=!0,ignoreMouse:a=!1,keyboardHandlers:u=!0,stickIfOpen:f=!0}=t,m=p.useRef(),d=p.useRef(!1),h=p.useMemo(()=>({onPointerDown(g){m.current=g.pointerType},onMouseDown(g){const v=m.current;g.button===0&&c!=="click"&&(Ze(v)&&a||(n&&l&&(!(r.current.openEvent&&f)||r.current.openEvent.type==="mousedown")?o(!1,g.nativeEvent,"click"):(g.preventDefault(),o(!0,g.nativeEvent,"click"))))},onClick(g){const v=m.current;if(c==="mousedown"&&m.current){m.current=void 0;return}Ze(v)&&a||(n&&l&&(!(r.current.openEvent&&f)||r.current.openEvent.type==="click")?o(!1,g.nativeEvent,"click"):o(!0,g.nativeEvent,"click"))},onKeyDown(g){m.current=void 0,!(g.defaultPrevented||!u||ut(g))&&(g.key===" "&&!ft(i)&&(g.preventDefault(),d.current=!0),!Oo(g)&&g.key==="Enter"&&o(!(n&&l),g.nativeEvent,"click"))},onKeyUp(g){g.defaultPrevented||!u||ut(g)||ft(i)||g.key===" "&&d.current&&(d.current=!1,o(!(n&&l),g.nativeEvent,"click"))}}),[r,i,c,a,u,o,n,f,l]);return p.useMemo(()=>s?{reference:h}:{},[s,h])}const Ao={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Io={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},dt=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function Vo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,elements:r,dataRef:i}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:l=!0,outsidePressEvent:a="pointerdown",referencePress:u=!1,referencePressEvent:f="pointerdown",ancestorScroll:m=!1,bubbles:d,capture:h}=t,g=Ft(),v=Q(typeof l=="function"?l:()=>!1),w=typeof l=="function"?v:l,b=p.useRef(!1),{escapeKey:x,outsidePress:S}=dt(d),{escapeKey:E,outsidePress:A}=dt(h),C=p.useRef(!1),O=Q(R=>{var I;if(!n||!s||!c||R.key!=="Escape"||C.current)return;const T=(I=i.current.floatingContext)==null?void 0:I.nodeId,D=g?ge(g.nodesRef.current,T):[];if(!x&&(R.stopPropagation(),D.length>0)){let y=!0;if(D.forEach(k=>{var F;if((F=k.context)!=null&&F.open&&!k.context.dataRef.current.__escapeKeyBubbles){y=!1;return}}),!y)return}o(!1,Dn(R)?R.nativeEvent:R,"escape-key")}),B=Q(R=>{var I;const T=()=>{var D;O(R),(D=ie(R))==null||D.removeEventListener("keydown",T)};(I=ie(R))==null||I.addEventListener("keydown",T)}),P=Q(R=>{var I;const T=i.current.insideReactTree;i.current.insideReactTree=!1;const D=b.current;if(b.current=!1,a==="click"&&D||T||typeof w=="function"&&!w(R))return;const y=ie(R),k="["+Ve("inert")+"]",F=ae(r.floating).querySelectorAll(k);let Z=L(y)?y:null;for(;Z&&!X(Z);){const W=q(Z);if(X(W)||!L(W))break;Z=W}if(F.length&&L(y)&&!On(y)&&!Ne(y,r.floating)&&Array.from(F).every(W=>!Ne(Z,W)))return;if(_(y)&&$){const W=X(y),Y=j(y),re=/auto|scroll/,_t=W||re.test(Y.overflowX),Wt=W||re.test(Y.overflowY),Vt=_t&&y.clientWidth>0&&y.scrollWidth>y.clientWidth,jt=Wt&&y.clientHeight>0&&y.scrollHeight>y.clientHeight,Ht=Y.direction==="rtl",Kt=jt&&(Ht?R.offsetX<=y.offsetWidth-y.clientWidth:R.offsetX>y.clientWidth),Yt=Vt&&R.offsetY>y.clientHeight;if(Kt||Yt)return}const je=(I=i.current.floatingContext)==null?void 0:I.nodeId,Bt=g&&ge(g.nodesRef.current,je).some(W=>{var Y;return Te(R,(Y=W.context)==null?void 0:Y.elements.floating)});if(Te(R,r.floating)||Te(R,r.domReference)||Bt)return;const He=g?ge(g.nodesRef.current,je):[];if(He.length>0){let W=!0;if(He.forEach(Y=>{var re;if((re=Y.context)!=null&&re.open&&!Y.context.dataRef.current.__outsidePressBubbles){W=!1;return}}),!W)return}o(!1,R,"outside-press")}),N=Q(R=>{var I;const T=()=>{var D;P(R),(D=ie(R))==null||D.removeEventListener(a,T)};(I=ie(R))==null||I.addEventListener(a,T)});p.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=S;let R=-1;function I(F){o(!1,F,"ancestor-scroll")}function T(){window.clearTimeout(R),C.current=!0}function D(){R=window.setTimeout(()=>{C.current=!1},xe()?5:0)}const y=ae(r.floating);c&&(y.addEventListener("keydown",E?B:O,E),y.addEventListener("compositionstart",T),y.addEventListener("compositionend",D)),w&&y.addEventListener(a,A?N:P,A);let k=[];return m&&(L(r.domReference)&&(k=J(r.domReference)),L(r.floating)&&(k=k.concat(J(r.floating))),!L(r.reference)&&r.reference&&r.reference.contextElement&&(k=k.concat(J(r.reference.contextElement)))),k=k.filter(F=>{var Z;return F!==((Z=y.defaultView)==null?void 0:Z.visualViewport)}),k.forEach(F=>{F.addEventListener("scroll",I,{passive:!0})}),()=>{c&&(y.removeEventListener("keydown",E?B:O,E),y.removeEventListener("compositionstart",T),y.removeEventListener("compositionend",D)),w&&y.removeEventListener(a,A?N:P,A),k.forEach(F=>{F.removeEventListener("scroll",I)}),window.clearTimeout(R)}},[i,r,c,w,a,n,o,m,s,x,S,O,E,B,P,A,N]),p.useEffect(()=>{i.current.insideReactTree=!1},[i,w,a]);const M=p.useMemo(()=>({onKeyDown:O,...u&&{[Ao[f]]:R=>{o(!1,R.nativeEvent,"reference-press")},...f!=="click"&&{onClick(R){o(!1,R.nativeEvent,"reference-press")}}}}),[O,o,u,f]),$=p.useMemo(()=>({onKeyDown:O,onMouseDown(){b.current=!0},onMouseUp(){b.current=!0},[Io[a]]:()=>{i.current.insideReactTree=!0}}),[O,a,i]);return p.useMemo(()=>s?{reference:M,floating:$}:{},[s,M,$])}function Do(e){const{open:t=!1,onOpenChange:n,elements:o}=e,r=Ce(),i=p.useRef({}),[s]=p.useState(()=>Eo()),c=Mt()!=null,[l,a]=p.useState(o.reference),u=Q((d,h,g)=>{i.current.openEvent=d?h:void 0,s.emit("openchange",{open:d,event:h,reason:g,nested:c}),n?.(d,h,g)}),f=p.useMemo(()=>({setPositionReference:a}),[]),m=p.useMemo(()=>({reference:l||o.reference||null,floating:o.floating||null,domReference:o.reference}),[l,o.reference,o.floating]);return p.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:m,events:s,floatingId:r,refs:f}),[t,u,m,s,r,f])}function jo(e){e===void 0&&(e={});const{nodeId:t}=e,n=Do({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,r=o.elements,[i,s]=p.useState(null),[c,l]=p.useState(null),u=r?.domReference||i,f=p.useRef(null),m=Ft();z(()=>{u&&(f.current=u)},[u]);const d=ho({...e,elements:{...r,...c&&{reference:c}}}),h=p.useCallback(x=>{const S=L(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;l(S),d.refs.setReference(S)},[d.refs]),g=p.useCallback(x=>{(L(x)||x===null)&&(f.current=x,s(x)),(L(d.refs.reference.current)||d.refs.reference.current===null||x!==null&&!L(x))&&d.refs.setReference(x)},[d.refs]),v=p.useMemo(()=>({...d.refs,setReference:g,setPositionReference:h,domReference:f}),[d.refs,g,h]),w=p.useMemo(()=>({...d.elements,domReference:u}),[d.elements,u]),b=p.useMemo(()=>({...d,...o,refs:v,elements:w,nodeId:t}),[d,v,w,t,o]);return z(()=>{o.dataRef.current.floatingContext=b;const x=m?.nodesRef.current.find(S=>S.id===t);x&&(x.context=b)}),p.useMemo(()=>({...d,context:b,refs:v,elements:w}),[d,v,w,b])}function Ie(e,t,n){const o=new Map,r=n==="item";let i=e;if(r&&e){const{[rt]:s,[it]:c,...l}=e;i=l}return{...n==="floating"&&{tabIndex:-1,[bo]:""},...i,...t.map(s=>{const c=s?s[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((s,c)=>(c&&Object.entries(c).forEach(l=>{let[a,u]=l;if(!(r&&[rt,it].includes(a)))if(a.indexOf("on")===0){if(o.has(a)||o.set(a,[]),typeof u=="function"){var f;(f=o.get(a))==null||f.push(u),s[a]=function(){for(var m,d=arguments.length,h=new Array(d),g=0;g<d;g++)h[g]=arguments[g];return(m=o.get(a))==null?void 0:m.map(v=>v(...h)).find(v=>v!==void 0)}}}else s[a]=u}),s),{})}}function Ho(e){e===void 0&&(e=[]);const t=e.map(c=>c?.reference),n=e.map(c=>c?.floating),o=e.map(c=>c?.item),r=p.useCallback(c=>Ie(c,e,"reference"),t),i=p.useCallback(c=>Ie(c,e,"floating"),n),s=p.useCallback(c=>Ie(c,e,"item"),o);return p.useMemo(()=>({getReferenceProps:r,getFloatingProps:i,getItemProps:s}),[r,i,s])}const ko=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ko(e,t){var n,o;t===void 0&&(t={});const{open:r,elements:i,floatingId:s}=e,{enabled:c=!0,role:l="dialog"}=t,a=Ce(),u=((n=i.domReference)==null?void 0:n.id)||a,f=p.useMemo(()=>{var b;return((b=In(i.floating))==null?void 0:b.id)||s},[i.floating,s]),m=(o=ko.get(l))!=null?o:l,h=Mt()!=null,g=p.useMemo(()=>m==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:r?f:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":m==="alertdialog"?"dialog":m,"aria-controls":r?f:void 0,...m==="listbox"&&{role:"combobox"},...m==="menu"&&{id:u},...m==="menu"&&h&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[m,f,h,r,u,l]),v=p.useMemo(()=>{const b={id:f,...m&&{role:m}};return m==="tooltip"||l==="label"?b:{...b,...m==="menu"&&{"aria-labelledby":u}}},[m,f,u,l]),w=p.useCallback(b=>{let{active:x,selected:S}=b;const E={role:"option",...x&&{id:f+"-fui-option"}};switch(l){case"select":case"combobox":return{...E,"aria-selected":S}}return{}},[f,l]);return p.useMemo(()=>c?{reference:g,floating:v,item:w}:{},[c,g,v,w])}export{_o as F,No as a,$o as b,Ko as c,Vo as d,Ho as e,Bo as f,Wo as g,Mo as o,Fo as s,jo as u};
@@ -1 +1 @@
1
- import{d2 as t}from"./index-ClCsMWbS.js";const n=""+new URL("generic-zigbee-device-Dj-9sUqG.png",import.meta.url).href,s="https://www.zigbee2mqtt.io/images/devices/",c=i=>{const e=t(i.definition?.model);return e==="NA"?n:`${s}${e}.png`};export{n as a,c as g};
1
+ import{d2 as t}from"./index-BpYGCU7a.js";const n=""+new URL("generic-zigbee-device-Dj-9sUqG.png",import.meta.url).href,s="https://www.zigbee2mqtt.io/images/devices/",c=i=>{const e=t(i.definition?.model);return e==="NA"?n:`${s}${e}.png`};export{n as a,c as g};
Binary file