ezux 1.1.13 → 1.1.18

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 (513) hide show
  1. package/README.md +58 -15
  2. package/dist/DeleteConfirmationModal-CukNDgtX.cjs +1 -0
  3. package/dist/DeleteConfirmationModal-p8XGDGIw.js +38 -0
  4. package/dist/EzContextMenu-BCUoEQp5.cjs +1 -0
  5. package/dist/EzContextMenu-srLxujt8.js +287 -0
  6. package/dist/EzErrorBoundary-C7a6VisX.js +74 -0
  7. package/dist/EzErrorBoundary-d_2g-_EK.cjs +1 -0
  8. package/dist/EzEventModal-C079wLjP.js +725 -0
  9. package/dist/EzEventModal-CAA9cAM0.cjs +1 -0
  10. package/dist/EzFlow-C74NbZA9.js +2545 -0
  11. package/dist/EzFlow-CQFeY7DL.cjs +5 -0
  12. package/dist/EzGroupingPanel-BVaAJaVU.js +107 -0
  13. package/dist/EzGroupingPanel-BwWDWEuW.cjs +1 -0
  14. package/dist/EzKanban-BlJWybKe.js +1575 -0
  15. package/dist/EzKanban-DdKODRRv.cjs +2 -0
  16. package/dist/EzLayout-BGnqFtvO.cjs +1 -0
  17. package/dist/EzLayout-CiaPLniV.js +7005 -0
  18. package/dist/EzProvider-AlmsYIDk.js +982 -0
  19. package/dist/EzProvider-L2qQMq-v.cjs +1 -0
  20. package/dist/EzScheduler-C1Jtvvju.js +2700 -0
  21. package/dist/EzScheduler-CkqTngI6.cjs +1 -0
  22. package/dist/EzSchedulerQuickAdd-BIC8xbSn.js +124 -0
  23. package/dist/EzSchedulerQuickAdd-BeNfGdWs.cjs +1 -0
  24. package/dist/EzSchedulerToolbar-BJwTpgas.cjs +1 -0
  25. package/dist/EzSchedulerToolbar-Ba4gbvUg.js +305 -0
  26. package/dist/EzSignature-7UHO5lSP.js +386 -0
  27. package/dist/EzSignature-Df7UZ-IS.cjs +1 -0
  28. package/dist/EzTable-CEXvJR1t.cjs +3 -0
  29. package/dist/EzTable-D2p1IWHc.js +4290 -0
  30. package/dist/EzTableEditDialog-BXnnYSSy.cjs +1 -0
  31. package/dist/EzTableEditDialog-Ccd5XoHm.js +84 -0
  32. package/dist/EzTableFooter-CtexeDAC.cjs +1 -0
  33. package/dist/EzTableFooter-DrLoWelo.js +35 -0
  34. package/dist/EzTableToolbar-BH5z9fSJ.js +160 -0
  35. package/dist/EzTableToolbar-DwuumvWP.cjs +1 -0
  36. package/dist/EzTreeView-D1G0Aomc.js +818 -0
  37. package/dist/EzTreeView-KMGlU4ax.cjs +1 -0
  38. package/dist/HighlightText-BViuwe03.cjs +1 -0
  39. package/dist/HighlightText-DNA2R2uf.js +56 -0
  40. package/dist/KanbanBoard-B7_Z5sh1.js +1697 -0
  41. package/dist/KanbanBoard-CyitudI1.cjs +1 -0
  42. package/dist/Modal-BmX1C448.cjs +1 -0
  43. package/dist/Modal-CrzpKyjK.js +74 -0
  44. package/dist/NotificationPanel-BzpDc10Q.js +54 -0
  45. package/dist/NotificationPanel-CFME00wq.cjs +1 -0
  46. package/dist/TooltipWrapper-BSAmUx9H.js +44 -0
  47. package/dist/TooltipWrapper-DfbFAZ1U.cjs +1 -0
  48. package/dist/advanced.cjs +10 -0
  49. package/dist/advanced.d.ts +44 -0
  50. package/dist/advanced.es.js +400 -0
  51. package/dist/avatar-BSdRHETK.cjs +1 -0
  52. package/dist/avatar-BvCUJ-_r.js +27 -0
  53. package/dist/button-BBMwzUtG.cjs +1 -0
  54. package/dist/button-CYyNwV8S.js +44 -0
  55. package/dist/calendar-DEHX32Cp.cjs +1 -0
  56. package/dist/calendar-DOIPGsyI.js +112 -0
  57. package/dist/card-CPlRZxbq.cjs +1 -0
  58. package/dist/card-ZUNxcdIM.js +60 -0
  59. package/dist/checkbox-BrCh_Iid.cjs +1 -0
  60. package/dist/checkbox-DRkQuB4W.js +21 -0
  61. package/dist/components/EzFlow/EzConnectionLine.d.ts +5 -0
  62. package/dist/components/EzFlow/EzFlow.examples.d.ts +5 -0
  63. package/dist/components/EzFlow/EzFlow.types.d.ts +260 -0
  64. package/dist/components/EzFlow/EzFlowBackground.d.ts +5 -0
  65. package/dist/components/EzFlow/EzFlowCanvas.d.ts +3 -0
  66. package/dist/components/EzFlow/EzFlowControls.d.ts +5 -0
  67. package/dist/components/EzFlow/EzFlowEdge.d.ts +5 -0
  68. package/dist/components/EzFlow/EzFlowHeader.d.ts +6 -0
  69. package/dist/components/EzFlow/EzFlowToolbox.d.ts +6 -0
  70. package/dist/components/EzFlow/EzWorkflow.d.ts +5 -0
  71. package/dist/components/EzFlow/EzWorkflowPerformance.d.ts +3 -0
  72. package/dist/components/EzFlow/EzWorkflowServiceAdapters.d.ts +24 -0
  73. package/dist/components/EzFlow/EzWorkflowValidation.d.ts +95 -0
  74. package/dist/components/EzFlow/index.d.ts +13 -0
  75. package/dist/components/EzFlow/nodes/ActionNode.d.ts +3 -0
  76. package/dist/components/EzFlow/nodes/ApprovalNode.d.ts +3 -0
  77. package/dist/components/EzFlow/nodes/DecisionNode.d.ts +3 -0
  78. package/dist/components/EzFlow/nodes/DelayNode.d.ts +3 -0
  79. package/dist/components/EzFlow/nodes/EndNode.d.ts +3 -0
  80. package/dist/components/EzFlow/nodes/GroupNode.d.ts +3 -0
  81. package/dist/components/EzFlow/nodes/LoopNode.d.ts +3 -0
  82. package/dist/components/EzFlow/nodes/RequestNode.d.ts +3 -0
  83. package/dist/components/EzFlow/nodes/StartNode.d.ts +3 -0
  84. package/dist/components/EzFlow/nodes/index.d.ts +9 -0
  85. package/dist/components/EzKanban/EzKanban.types.d.ts +808 -0
  86. package/dist/components/EzKanban/components/CardEditorModal.d.ts +23 -0
  87. package/dist/components/EzKanban/components/EzKanbanErrorFallback.d.ts +1 -0
  88. package/dist/components/EzKanban/components/FilterPopover.d.ts +10 -0
  89. package/dist/components/EzKanban/components/KanbanBoard.d.ts +59 -0
  90. package/dist/components/EzKanban/components/KanbanCard.d.ts +46 -0
  91. package/dist/components/EzKanban/components/KanbanColumn.d.ts +55 -0
  92. package/dist/components/EzKanban/components/KanbanSwimlane.d.ts +45 -0
  93. package/dist/components/EzKanban/components/KanbanToolbar.d.ts +41 -0
  94. package/dist/components/EzKanban/exports.d.ts +4 -0
  95. package/dist/components/EzKanban/hooks/useKanbanCards.d.ts +36 -0
  96. package/dist/components/EzKanban/hooks/useKanbanColumns.d.ts +27 -0
  97. package/dist/components/EzKanban/hooks/useKanbanDragDrop.d.ts +31 -0
  98. package/dist/components/EzKanban/hooks/useKanbanFilters.d.ts +23 -0
  99. package/dist/components/EzKanban/hooks/useKanbanState.d.ts +79 -0
  100. package/dist/components/EzKanban/hooks/useKanbanSwimlanes.d.ts +27 -0
  101. package/dist/components/EzKanban/hooks/useKanbanVirtualization.d.ts +16 -0
  102. package/dist/components/EzKanban/index.d.ts +51 -0
  103. package/dist/components/EzKanban/services/KanbanService.d.ts +31 -0
  104. package/dist/components/EzKanban/state/kanban.store.d.ts +33 -0
  105. package/dist/components/EzKanban/useEzKanban.d.ts +87 -0
  106. package/dist/components/EzKanban/views/KanbanTimelineView.d.ts +15 -0
  107. package/dist/components/EzLayout/Authentication/AuthSlider.d.ts +13 -0
  108. package/dist/components/EzLayout/Authentication/InputPassword.d.ts +7 -0
  109. package/dist/components/EzLayout/Authentication/SignInForm.d.ts +21 -0
  110. package/dist/components/EzLayout/Authentication/SignUpForm.d.ts +20 -0
  111. package/dist/components/EzLayout/EzHeader.d.ts +48 -0
  112. package/dist/components/EzLayout/EzLanguageSwitcher.d.ts +4 -0
  113. package/dist/components/EzLayout/EzLayout.types.d.ts +261 -0
  114. package/dist/components/EzLayout/EzOrganizationSwitcher.d.ts +14 -0
  115. package/dist/components/EzLayout/EzSidebar.d.ts +24 -0
  116. package/dist/components/EzLayout/EzThemeColorChanger.d.ts +9 -0
  117. package/dist/components/EzLayout/EzThemeSwitcher.d.ts +8 -0
  118. package/dist/components/EzLayout/EzUserProfile.d.ts +27 -0
  119. package/dist/components/EzLayout/components/EzSidebarFooter.d.ts +8 -0
  120. package/dist/components/EzLayout/components/EzSidebarNav.d.ts +10 -0
  121. package/dist/components/EzLayout/components/EzSidebarNavItem.d.ts +11 -0
  122. package/dist/components/EzLayout/components/MainContent.d.ts +13 -0
  123. package/dist/components/EzLayout/hooks/useLayoutImperative.d.ts +17 -0
  124. package/dist/components/EzLayout/hooks/useLayoutState.d.ts +25 -0
  125. package/dist/components/EzLayout/index.d.ts +23 -0
  126. package/dist/components/EzLayout/useEzLayout.d.ts +34 -0
  127. package/dist/components/EzScheduler/EzScheduler.types.d.ts +1252 -0
  128. package/dist/components/EzScheduler/EzSchedulerToolbar.d.ts +117 -0
  129. package/dist/components/EzScheduler/components/EzEventModal.d.ts +23 -0
  130. package/dist/components/EzScheduler/components/EzOverlapAlert.d.ts +12 -0
  131. package/dist/components/EzScheduler/components/EzQuickInfoPopup.d.ts +22 -0
  132. package/dist/components/EzScheduler/components/EzResourceSidebar.d.ts +33 -0
  133. package/dist/components/EzScheduler/components/EzSchedulerContent.d.ts +111 -0
  134. package/dist/components/EzScheduler/components/EzSchedulerQuickAdd.d.ts +17 -0
  135. package/dist/components/EzScheduler/components/RecurrenceEditor.d.ts +7 -0
  136. package/dist/components/EzScheduler/components/SchedulerLoadingSpinner.d.ts +2 -0
  137. package/dist/components/EzScheduler/components/dnd/DraggableEvent.d.ts +24 -0
  138. package/dist/components/EzScheduler/components/dnd/DroppableSlot.d.ts +19 -0
  139. package/dist/components/EzScheduler/hooks/useRecurrence.d.ts +2 -0
  140. package/dist/components/EzScheduler/hooks/useSchedulerEventHandlers.d.ts +15 -0
  141. package/dist/components/EzScheduler/hooks/useSchedulerEvents.d.ts +27 -0
  142. package/dist/components/EzScheduler/hooks/useSchedulerImperative.d.ts +19 -0
  143. package/dist/components/EzScheduler/hooks/useSchedulerNavigation.d.ts +9 -0
  144. package/dist/components/EzScheduler/hooks/useSchedulerResources.d.ts +10 -0
  145. package/dist/components/EzScheduler/hooks/useSchedulerState.d.ts +14 -0
  146. package/dist/components/EzScheduler/hooks/useSchedulerVirtualization.d.ts +9 -0
  147. package/dist/components/EzScheduler/index.d.ts +43 -0
  148. package/dist/components/EzScheduler/models/EventSettings.d.ts +11 -0
  149. package/dist/components/EzScheduler/models/View.d.ts +49 -0
  150. package/dist/components/EzScheduler/models/index.d.ts +2 -0
  151. package/dist/components/EzScheduler/services/AttendeeService.d.ts +15 -0
  152. package/dist/components/EzScheduler/services/AuditService.d.ts +15 -0
  153. package/dist/components/EzScheduler/services/CollisionDetectionService.d.ts +19 -0
  154. package/dist/components/EzScheduler/services/DragAndDropService.d.ts +16 -0
  155. package/dist/components/EzScheduler/services/HistoryService.d.ts +31 -0
  156. package/dist/components/EzScheduler/services/ICalendarImportService.d.ts +16 -0
  157. package/dist/components/EzScheduler/services/PrintService.d.ts +7 -0
  158. package/dist/components/EzScheduler/services/RecurrenceEngine.d.ts +7 -0
  159. package/dist/components/EzScheduler/services/ReminderService.d.ts +17 -0
  160. package/dist/components/EzScheduler/services/SchedulerService.d.ts +71 -0
  161. package/dist/components/EzScheduler/services/SearchService.d.ts +11 -0
  162. package/dist/components/EzScheduler/services/SecurityService.d.ts +25 -0
  163. package/dist/components/EzScheduler/services/TimezoneService.d.ts +20 -0
  164. package/dist/components/EzScheduler/services/VirtualScrollingService.d.ts +34 -0
  165. package/dist/components/EzScheduler/state/scheduler.store.d.ts +27 -0
  166. package/dist/components/EzScheduler/templates/CellTemplate.d.ts +42 -0
  167. package/dist/components/EzScheduler/templates/EditorTemplate.d.ts +32 -0
  168. package/dist/components/EzScheduler/templates/HeaderTemplate.d.ts +36 -0
  169. package/dist/components/EzScheduler/useEzScheduler.d.ts +104 -0
  170. package/dist/components/EzScheduler/utils/createDragConstraint.d.ts +7 -0
  171. package/dist/components/EzScheduler/utils/getWeekNumber.d.ts +8 -0
  172. package/dist/components/EzScheduler/utils/sanitizeHtml.d.ts +18 -0
  173. package/dist/components/EzScheduler/views/AgendaView.d.ts +28 -0
  174. package/dist/components/EzScheduler/views/DayWeekView.d.ts +177 -0
  175. package/dist/components/EzScheduler/views/MonthView.d.ts +60 -0
  176. package/dist/components/EzScheduler/views/TimelineView.d.ts +116 -0
  177. package/dist/components/EzSignature/EzSignature.d.ts +42 -0
  178. package/dist/components/EzSignature/EzSignature.types.d.ts +132 -0
  179. package/dist/components/EzSignature/index.d.ts +2 -0
  180. package/dist/components/EzTable/EzColumnMenu.d.ts +7 -0
  181. package/dist/components/EzTable/EzDateFilterTree.d.ts +7 -0
  182. package/dist/components/EzTable/EzExcelFilter.d.ts +8 -0
  183. package/dist/components/EzTable/EzFilterBuilder.d.ts +12 -0
  184. package/dist/components/EzTable/EzGroupingPanel.d.ts +9 -0
  185. package/dist/components/EzTable/EzHeaderContextMenu.d.ts +8 -0
  186. package/dist/components/EzTable/EzPagination.d.ts +19 -0
  187. package/dist/components/EzTable/EzTable.types.d.ts +1 -0
  188. package/dist/components/EzTable/EzTableEditDialog.d.ts +15 -0
  189. package/dist/components/EzTable/EzTableFooter.d.ts +10 -0
  190. package/dist/components/EzTable/EzTableOverlays.d.ts +11 -0
  191. package/dist/components/EzTable/EzTableStatusBar.d.ts +10 -0
  192. package/dist/components/EzTable/EzTableToolbar.d.ts +60 -0
  193. package/dist/components/EzTable/SmartCell.d.ts +7 -0
  194. package/dist/components/EzTable/components/AdvancedColumnFilter.d.ts +16 -0
  195. package/dist/components/EzTable/components/BooleanFilterSection.d.ts +7 -0
  196. package/dist/components/EzTable/components/EzDraggableHeader.d.ts +10 -0
  197. package/dist/components/EzTable/components/EzHeaderDragPreview.d.ts +7 -0
  198. package/dist/components/EzTable/components/EzTableBodySection.d.ts +72 -0
  199. package/dist/components/EzTable/components/EzTableCell.d.ts +46 -0
  200. package/dist/components/EzTable/components/EzTableHeaderSection.d.ts +23 -0
  201. package/dist/components/EzTable/components/EzTablePaginationSection.d.ts +31 -0
  202. package/dist/components/EzTable/components/EzTableRow.d.ts +58 -0
  203. package/dist/components/EzTable/components/FilterActionButtons.d.ts +16 -0
  204. package/dist/components/EzTable/components/FilterRuleSelect.d.ts +26 -0
  205. package/dist/components/EzTable/components/SelectAllCheckbox.d.ts +21 -0
  206. package/dist/components/EzTable/components/SelectFilterSection.d.ts +18 -0
  207. package/dist/components/EzTable/components/VirtualizedFilterList.d.ts +21 -0
  208. package/dist/components/EzTable/constants/filterOptions.d.ts +47 -0
  209. package/dist/components/EzTable/context/EzTableContext.d.ts +10 -0
  210. package/dist/components/EzTable/context/TableConfigContext.d.ts +13 -0
  211. package/dist/components/EzTable/context/TableStore.d.ts +17 -0
  212. package/dist/components/EzTable/filterUtils.d.ts +5 -0
  213. package/dist/components/EzTable/hooks/useAutoFit.d.ts +4 -0
  214. package/dist/components/EzTable/hooks/useCellEventHandlers.d.ts +16 -0
  215. package/dist/components/EzTable/hooks/useColumnSizeVars.d.ts +6 -0
  216. package/dist/components/EzTable/hooks/useContainerResize.d.ts +11 -0
  217. package/dist/components/EzTable/hooks/useDialogStateInitialization.d.ts +8 -0
  218. package/dist/components/EzTable/hooks/useFilterSelection.d.ts +12 -0
  219. package/dist/components/EzTable/hooks/useTableFiltering.d.ts +23 -0
  220. package/dist/components/EzTable/hooks/useTableHistory.d.ts +87 -0
  221. package/dist/components/EzTable/hooks/useTableImperative.d.ts +42 -0
  222. package/dist/components/EzTable/hooks/useTableSelection.d.ts +32 -0
  223. package/dist/components/EzTable/hooks/useTableState.d.ts +33 -0
  224. package/dist/components/EzTable/hooks/useTableVirtualization.d.ts +35 -0
  225. package/dist/components/EzTable/index.d.ts +54 -0
  226. package/dist/components/EzTable/renderers/index.d.ts +6 -0
  227. package/dist/components/EzTable/services/TableService.d.ts +29 -0
  228. package/dist/components/EzTable/types/EzTableColumn.types.d.ts +146 -0
  229. package/dist/components/EzTable/types/EzTableEdit.types.d.ts +58 -0
  230. package/dist/components/EzTable/types/EzTableFilter.types.d.ts +50 -0
  231. package/dist/components/EzTable/types/EzTableProps.d.ts +750 -0
  232. package/dist/components/EzTable/types/index.d.ts +4 -0
  233. package/dist/components/EzTable/useEzTable.d.ts +17 -0
  234. package/dist/components/EzTable/utils/SizingUtils.d.ts +11 -0
  235. package/dist/components/EzTable/utils/TextMeasurer.d.ts +1 -0
  236. package/dist/components/EzTable/utils/TruncatedTooltip.d.ts +7 -0
  237. package/dist/components/EzTable/utils/columnTypeDetector.d.ts +5 -0
  238. package/dist/components/EzTable/utils/filterTypeGuards.d.ts +3 -0
  239. package/dist/components/EzTable/utils/index.d.ts +1 -0
  240. package/dist/components/EzTreeView/EzTreeView.types.d.ts +364 -0
  241. package/dist/components/EzTreeView/EzTreeViewItem.d.ts +89 -0
  242. package/dist/components/EzTreeView/EzVirtualTree.d.ts +84 -0
  243. package/dist/components/EzTreeView/components/EzTreeViewLoadingSpinner.d.ts +2 -0
  244. package/dist/components/EzTreeView/hooks/useTreeDragDrop.d.ts +31 -0
  245. package/dist/components/EzTreeView/hooks/useTreeExpansion.d.ts +21 -0
  246. package/dist/components/EzTreeView/hooks/useTreeImperative.d.ts +28 -0
  247. package/dist/components/EzTreeView/hooks/useTreeSelection.d.ts +31 -0
  248. package/dist/components/EzTreeView/hooks/useTreeState.d.ts +21 -0
  249. package/dist/components/EzTreeView/hooks/useTreeVirtualization.d.ts +18 -0
  250. package/dist/components/EzTreeView/index.d.ts +40 -0
  251. package/dist/components/EzTreeView/services/TreeService.d.ts +11 -0
  252. package/dist/components/EzTreeView/useEzTreeView.d.ts +50 -0
  253. package/dist/components/EzTreeView/utils/treeUtils.d.ts +17 -0
  254. package/dist/components/shared/components/EzErrorBoundary.d.ts +18 -0
  255. package/dist/components/shared/components/EzLayoutErrorFallback.d.ts +2 -0
  256. package/dist/components/shared/components/EzLoadingSpinner.d.ts +8 -0
  257. package/dist/components/shared/components/EzSchedulerErrorFallback.d.ts +2 -0
  258. package/dist/components/shared/components/EzSortableList.d.ts +12 -0
  259. package/dist/components/shared/components/EzTableErrorFallback.d.ts +2 -0
  260. package/dist/components/shared/components/EzTreeViewErrorFallback.d.ts +2 -0
  261. package/dist/components/ui/avatar.d.ts +10 -0
  262. package/dist/components/ui/badge.d.ts +9 -0
  263. package/dist/components/ui/breadcrumb.d.ts +19 -0
  264. package/dist/components/ui/button.d.ts +13 -0
  265. package/dist/components/ui/calendar.d.ts +15 -0
  266. package/dist/components/ui/card.d.ts +10 -0
  267. package/dist/components/ui/checkbox.d.ts +7 -0
  268. package/dist/components/ui/combobox.d.ts +19 -0
  269. package/dist/components/ui/command.d.ts +78 -0
  270. package/dist/components/ui/context-menu.d.ts +27 -0
  271. package/dist/components/ui/date-time-picker.d.ts +14 -0
  272. package/dist/components/ui/dropdown-menu.d.ts +31 -0
  273. package/dist/components/ui/index.d.ts +27 -0
  274. package/dist/components/ui/input.d.ts +5 -0
  275. package/dist/components/ui/label.d.ts +9 -0
  276. package/dist/components/ui/modal.d.ts +9 -0
  277. package/dist/components/ui/password-input.d.ts +5 -0
  278. package/dist/components/ui/popover.d.ts +10 -0
  279. package/dist/components/ui/progress.d.ts +7 -0
  280. package/dist/components/ui/radio-group.d.ts +5 -0
  281. package/dist/components/ui/resizable.d.ts +8 -0
  282. package/dist/components/ui/scroll-area.d.ts +5 -0
  283. package/dist/components/ui/select.d.ts +26 -0
  284. package/dist/components/ui/skeleton.d.ts +2 -0
  285. package/dist/components/ui/switch.d.ts +6 -0
  286. package/dist/components/ui/table.d.ts +10 -0
  287. package/dist/components/ui/tabs.d.ts +22 -0
  288. package/dist/components/ui/textarea.d.ts +5 -0
  289. package/dist/components/ui/tooltip.d.ts +10 -0
  290. package/dist/date-time-picker-Bs-7XzHD.cjs +1 -0
  291. package/dist/date-time-picker-fUzf4TnU.js +127 -0
  292. package/dist/dropdown-menu-BRP0tyR_.cjs +1 -0
  293. package/dist/dropdown-menu-B_7_K13o.js +78 -0
  294. package/dist/ezux.css +2 -1
  295. package/dist/flow.cjs +1 -0
  296. package/dist/flow.d.ts +2 -0
  297. package/dist/flow.es.js +2 -0
  298. package/dist/index.cjs +3 -12
  299. package/dist/index.d.ts +66 -6404
  300. package/dist/index.es.js +229 -1041
  301. package/dist/input-CYlvlbF7.cjs +1 -0
  302. package/dist/input-Cj3sQK3M.js +14 -0
  303. package/dist/kanban.cjs +1 -1
  304. package/dist/kanban.d.ts +2 -1343
  305. package/dist/kanban.es.js +4 -17
  306. package/dist/label-BGgvoZWD.cjs +1 -0
  307. package/dist/label-DWEV--5W.js +16 -0
  308. package/dist/layout.cjs +1 -1
  309. package/dist/layout.d.ts +2 -690
  310. package/dist/layout.es.js +2 -20
  311. package/dist/lib/perfect-freehand.d.ts +221 -0
  312. package/dist/lib/utils.d.ts +2 -0
  313. package/dist/mock-services.cjs +1 -0
  314. package/dist/mock-services.d.ts +8 -0
  315. package/dist/mock-services.es.js +161 -0
  316. package/dist/popover-D1akYj0W.js +17 -0
  317. package/dist/popover-wZKNvYM5.cjs +1 -0
  318. package/dist/scheduler.cjs +1 -1
  319. package/dist/scheduler.d.ts +2 -1430
  320. package/dist/scheduler.es.js +2 -11
  321. package/dist/scroll-area-BJs87d45.js +35 -0
  322. package/dist/scroll-area-DSkE2KB_.cjs +1 -0
  323. package/dist/select-D4tFaSai.js +43 -0
  324. package/dist/select-sVieKbLu.cjs +1 -0
  325. package/dist/shared/components/AnimatedText.d.ts +44 -0
  326. package/dist/shared/components/BaseCell.d.ts +14 -0
  327. package/dist/shared/components/BooleanRenderer.d.ts +34 -0
  328. package/dist/shared/components/ChartRenderer.d.ts +19 -0
  329. package/dist/shared/components/DeleteConfirmationModal.d.ts +11 -0
  330. package/dist/shared/components/EzContextMenu.d.ts +12 -0
  331. package/dist/shared/components/EzNotificationDropdown.d.ts +2 -0
  332. package/dist/shared/components/HighlightText.d.ts +4 -0
  333. package/dist/shared/components/Modal.d.ts +13 -0
  334. package/dist/shared/components/NotificationPanel.d.ts +2 -0
  335. package/dist/shared/components/PrimitiveRenderer.d.ts +39 -0
  336. package/dist/shared/components/SearchableSelect.d.ts +13 -0
  337. package/dist/shared/components/SelectRenderer.d.ts +33 -0
  338. package/dist/shared/components/StatusBadge.d.ts +21 -0
  339. package/dist/shared/components/TooltipWrapper.d.ts +12 -0
  340. package/dist/shared/components/index.d.ts +9 -0
  341. package/dist/shared/contexts/EzProvider.d.ts +56 -0
  342. package/dist/shared/hooks/index.d.ts +56 -0
  343. package/dist/shared/hooks/useBaseComponent.d.ts +59 -0
  344. package/dist/shared/hooks/useComponentImperativeAPI.d.ts +11 -0
  345. package/dist/shared/hooks/useComponentState.d.ts +39 -0
  346. package/dist/shared/hooks/useCurrentTime.d.ts +6 -0
  347. package/dist/shared/hooks/useDataChangeEvents.d.ts +53 -0
  348. package/dist/shared/hooks/useDebounce.d.ts +10 -0
  349. package/dist/shared/hooks/useDeleteConfirmation.d.ts +9 -0
  350. package/dist/shared/hooks/useDialogState.d.ts +21 -0
  351. package/dist/shared/hooks/useDndHandlers.d.ts +19 -0
  352. package/dist/shared/hooks/useEditing.d.ts +107 -0
  353. package/dist/shared/hooks/useEventHandlers.d.ts +61 -0
  354. package/dist/shared/hooks/useEzTheme.d.ts +22 -0
  355. package/dist/shared/hooks/useFieldValidation.d.ts +24 -0
  356. package/dist/shared/hooks/useHistory.d.ts +13 -0
  357. package/dist/shared/hooks/useI18n.d.ts +8 -0
  358. package/dist/shared/hooks/useImperativeAPI.d.ts +8 -0
  359. package/dist/shared/hooks/useInitCoreServices.d.ts +5 -0
  360. package/dist/shared/hooks/useKeyboardNavigation.d.ts +36 -0
  361. package/dist/shared/hooks/useKeyboardShortcuts.d.ts +14 -0
  362. package/dist/shared/hooks/useLifecycleEvents.d.ts +22 -0
  363. package/dist/shared/hooks/useLoadingState.d.ts +17 -0
  364. package/dist/shared/hooks/useMediaQuery.d.ts +6 -0
  365. package/dist/shared/hooks/useNotificationService.d.ts +8 -0
  366. package/dist/shared/hooks/usePerformanceMonitor.d.ts +22 -0
  367. package/dist/shared/hooks/useRowSelectionEvents.d.ts +44 -0
  368. package/dist/shared/hooks/useSelection.d.ts +73 -0
  369. package/dist/shared/hooks/useService.d.ts +12 -0
  370. package/dist/shared/hooks/useServiceState.d.ts +1 -0
  371. package/dist/shared/hooks/useStateChangeEvents.d.ts +61 -0
  372. package/dist/shared/hooks/useTheme.d.ts +13 -0
  373. package/dist/shared/hooks/useVirtualization.d.ts +85 -0
  374. package/dist/shared/services/BaseService.d.ts +57 -0
  375. package/dist/shared/services/ContextMenuService.d.ts +58 -0
  376. package/dist/shared/services/ExportService.d.ts +35 -0
  377. package/dist/shared/services/FocusManagerService.d.ts +33 -0
  378. package/dist/shared/services/HierarchyService.d.ts +43 -0
  379. package/dist/shared/services/I18nService.d.ts +84 -0
  380. package/dist/shared/services/LayoutService.d.ts +80 -0
  381. package/dist/shared/services/NotificationService.d.ts +44 -0
  382. package/dist/shared/services/PersistenceService.d.ts +69 -0
  383. package/dist/shared/services/ServiceRegistry.d.ts +52 -0
  384. package/dist/shared/services/ThemeService.d.ts +49 -0
  385. package/dist/shared/services/VirtualizationService.d.ts +51 -0
  386. package/dist/shared/state/store.d.ts +10 -0
  387. package/dist/shared/themes.d.ts +25 -0
  388. package/dist/shared/types/BaseProps.d.ts +17 -0
  389. package/dist/shared/types/common.d.ts +373 -0
  390. package/dist/shared/types/index.d.ts +2 -0
  391. package/dist/shared/utils/canvasUtils.d.ts +16 -0
  392. package/dist/shared/utils/commonUtils.d.ts +28 -0
  393. package/dist/shared/utils/csvUtils.d.ts +7 -0
  394. package/dist/shared/utils/dateUtils.d.ts +5 -0
  395. package/dist/shared/utils/dndUtils.d.ts +16 -0
  396. package/dist/shared/utils/formatUtils.d.ts +20 -0
  397. package/dist/shared/utils/imperativeApiUtils.d.ts +36 -0
  398. package/dist/shared/utils/index.d.ts +11 -0
  399. package/dist/shared/utils/renderUtils.d.ts +6 -0
  400. package/dist/shared/utils/serviceUtils.d.ts +10 -0
  401. package/dist/shared/utils/styleUtils.d.ts +121 -0
  402. package/dist/shared/utils/validationUtils.d.ts +16 -0
  403. package/dist/signature.cjs +1 -1
  404. package/dist/signature.d.ts +2 -410
  405. package/dist/signature.es.js +2 -4
  406. package/dist/table.cjs +1 -1
  407. package/dist/table.d.ts +2 -1059
  408. package/dist/table.es.js +2 -17
  409. package/dist/theme-vars.css +143 -135
  410. package/dist/tooltip-B1wC9m05.js +16 -0
  411. package/dist/tooltip-Qmzrg5u5.cjs +1 -0
  412. package/dist/treeview.cjs +1 -1
  413. package/dist/treeview.d.ts +2 -656
  414. package/dist/treeview.es.js +2 -954
  415. package/dist/useComponentState-DiSFLYju.js +57 -0
  416. package/dist/useComponentState-Wcz6pjd6.cjs +1 -0
  417. package/dist/useImperativeAPI-Dbx2hMTb.js +7 -0
  418. package/dist/useImperativeAPI-VrgLwXEO.cjs +1 -0
  419. package/dist/useInitCoreServices-CuBrviDM.js +40 -0
  420. package/dist/useInitCoreServices-DlALVDNx.cjs +1 -0
  421. package/dist/useService-CnCBGG3G.js +10 -0
  422. package/dist/useService-CyF782jv.cjs +1 -0
  423. package/dist/useServiceState-CkrJZm1D.js +21 -0
  424. package/dist/useServiceState-PyYQWxHi.cjs +1 -0
  425. package/package.json +76 -56
  426. package/dist/EzContextMenu-B6HBUjWv.cjs +0 -5
  427. package/dist/EzContextMenu-BSA_B6Pr.js +0 -3500
  428. package/dist/EzErrorBoundary-CEdz_hDo.cjs +0 -41
  429. package/dist/EzErrorBoundary-D4NBadES.js +0 -3727
  430. package/dist/EzEventModal-BUMp_BFi.js +0 -689
  431. package/dist/EzEventModal-xzHfzi0O.cjs +0 -1
  432. package/dist/EzGroupingPanel-BUsIYDRi.js +0 -143
  433. package/dist/EzGroupingPanel-D0HdSomF.cjs +0 -1
  434. package/dist/EzSchedulerQuickAdd-C653LTGh.js +0 -118
  435. package/dist/EzSchedulerQuickAdd-UnOWCpJd.cjs +0 -1
  436. package/dist/EzSchedulerToolbar-C-5OdRY6.cjs +0 -1
  437. package/dist/EzSchedulerToolbar-CO5jjDQg.js +0 -240
  438. package/dist/EzSignature-BaNesxwC.cjs +0 -1
  439. package/dist/EzSignature-D4EYwo9W.js +0 -419
  440. package/dist/EzTableEditDialog-Cd948V1C.js +0 -63
  441. package/dist/EzTableEditDialog-NiOubaMT.cjs +0 -1
  442. package/dist/EzTableFooter-CWjfGCjL.cjs +0 -1
  443. package/dist/EzTableFooter-DveD12RC.js +0 -54
  444. package/dist/EzTableToolbar-Bz8UWv6j.js +0 -246
  445. package/dist/EzTableToolbar-DHE7Bb1R.cjs +0 -1
  446. package/dist/HighlightText-8D6KEyBw.js +0 -68
  447. package/dist/HighlightText-LtZmzCle.cjs +0 -1
  448. package/dist/NotificationPanel-D2Y-_ahk.js +0 -68
  449. package/dist/NotificationPanel-zLxrtTGf.cjs +0 -1
  450. package/dist/TooltipWrapper-BrRTi5EJ.js +0 -2021
  451. package/dist/TooltipWrapper-DWts4bAI.cjs +0 -1
  452. package/dist/avatar-BeK0E4mn.js +0 -41
  453. package/dist/avatar-DZAaTK2f.cjs +0 -1
  454. package/dist/bell-DAz8P0BR.js +0 -14
  455. package/dist/bell-DOX2y38e.cjs +0 -1
  456. package/dist/calendar-BMZ8ddOf.cjs +0 -1
  457. package/dist/calendar-Dy3rVMW2.js +0 -90
  458. package/dist/checkbox-B0lGHUyy.cjs +0 -1
  459. package/dist/checkbox-boJRxICT.js +0 -46
  460. package/dist/chevron-down-C3s8jU6B.js +0 -5
  461. package/dist/chevron-down-DZVL7VHW.cjs +0 -1
  462. package/dist/chevron-left-BFr8XZyF.js +0 -5
  463. package/dist/chevron-left-HWhRo6IH.cjs +0 -1
  464. package/dist/circle-alert-77QqFR-z.cjs +0 -1
  465. package/dist/circle-alert-B2AMDd8N.js +0 -9
  466. package/dist/circle-x-Cv7bfIC_.js +0 -9
  467. package/dist/circle-x-DwVXxhXr.cjs +0 -1
  468. package/dist/date-time-picker-DTxHdPgQ.cjs +0 -1
  469. package/dist/date-time-picker-Dj2eftJI.js +0 -1636
  470. package/dist/download-0ZhO2XaW.cjs +0 -1
  471. package/dist/download-panVHmk6.js +0 -9
  472. package/dist/ellipsis-CuqNthAj.js +0 -9
  473. package/dist/ellipsis-CzlqJf-i.cjs +0 -1
  474. package/dist/grip-vertical-CSyDKBul.js +0 -12
  475. package/dist/grip-vertical-DZNBW1Dn.cjs +0 -1
  476. package/dist/index-B3ipEEhH.cjs +0 -2
  477. package/dist/index-BPPb7bcs.js +0 -3220
  478. package/dist/index-BQKw_Vho.js +0 -9604
  479. package/dist/index-C5STgBSy.js +0 -5203
  480. package/dist/index-C6NfgycP.js +0 -4644
  481. package/dist/index-D4f2ZdrG.cjs +0 -2
  482. package/dist/index-DUY1SqMo.cjs +0 -1
  483. package/dist/index-c1Zg--dt.cjs +0 -7
  484. package/dist/input-BgM_la4k.cjs +0 -1
  485. package/dist/input-jYQ5VKNR.js +0 -21
  486. package/dist/isBefore-C3Y_wbk3.js +0 -15
  487. package/dist/isBefore-Cp1ttk6q.cjs +0 -1
  488. package/dist/label-ClOW9UCt.js +0 -55
  489. package/dist/label-Dx6oDB-X.cjs +0 -1
  490. package/dist/layers-BA4i1fYX.js +0 -27
  491. package/dist/layers-xSPd-hz3.cjs +0 -1
  492. package/dist/popover-BJq1CKmi.cjs +0 -1
  493. package/dist/popover-Cmlb7w3R.js +0 -341
  494. package/dist/scroll-area-9fwpVNxT.js +0 -573
  495. package/dist/scroll-area-CwwZSSA4.cjs +0 -1
  496. package/dist/select-GxA46anr.cjs +0 -1
  497. package/dist/select-mDCun_IR.js +0 -35
  498. package/dist/settings-CvyjK75A.js +0 -31
  499. package/dist/settings-DKPknrt8.cjs +0 -1
  500. package/dist/sortable.esm-CsRPuXyD.cjs +0 -1
  501. package/dist/sortable.esm-CzMCDPet.js +0 -477
  502. package/dist/tooltip-B41iztKT.cjs +0 -1
  503. package/dist/tooltip-BCtrEe0z.js +0 -490
  504. package/dist/useComponentState-C87xXa5d.js +0 -64
  505. package/dist/useComponentState-DDgGbBXv.cjs +0 -1
  506. package/dist/useImperativeAPI-DXmCQvPL.js +0 -7
  507. package/dist/useImperativeAPI-DbZ3owSV.cjs +0 -1
  508. package/dist/useInitCoreServices-CwXv2p4S.cjs +0 -1
  509. package/dist/useInitCoreServices-D1WaWlaI.js +0 -3929
  510. package/dist/useService-8OoezWr8.cjs +0 -1
  511. package/dist/useService-BUi3uAqE.js +0 -10
  512. package/dist/useServiceState-BjpCjUn2.cjs +0 -1
  513. package/dist/useServiceState-VE-viK8b.js +0 -24
@@ -1,3727 +0,0 @@
1
- import * as a from "react";
2
- import ue, { forwardRef as vn, createElement as gt, useLayoutEffect as Br, useState as Vr, useMemo as Ur, useImperativeHandle as Hr, Component as Kr } from "react";
3
- import { jsx as C, jsxs as st } from "react/jsx-runtime";
4
- import * as gn from "react-dom";
5
- import jr from "react-dom";
6
- function Ut(e, t) {
7
- if (typeof e == "function")
8
- return e(t);
9
- e != null && (e.current = t);
10
- }
11
- function Oe(...e) {
12
- return (t) => {
13
- let n = !1;
14
- const r = e.map((o) => {
15
- const i = Ut(o, t);
16
- return !n && typeof i == "function" && (n = !0), i;
17
- });
18
- if (n)
19
- return () => {
20
- for (let o = 0; o < r.length; o++) {
21
- const i = r[o];
22
- typeof i == "function" ? i() : Ut(e[o], null);
23
- }
24
- };
25
- };
26
- }
27
- function V(...e) {
28
- return a.useCallback(Oe(...e), e);
29
- }
30
- const yn = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
31
- const Gr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
32
- const zr = (e) => e.replace(
33
- /^([A-Z])|[\s-_]+(\w)/g,
34
- (t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
35
- );
36
- const Ht = (e) => {
37
- const t = zr(e);
38
- return t.charAt(0).toUpperCase() + t.slice(1);
39
- };
40
- var Yr = {
41
- xmlns: "http://www.w3.org/2000/svg",
42
- width: 24,
43
- height: 24,
44
- viewBox: "0 0 24 24",
45
- fill: "none",
46
- stroke: "currentColor",
47
- strokeWidth: 2,
48
- strokeLinecap: "round",
49
- strokeLinejoin: "round"
50
- };
51
- const Xr = (e) => {
52
- for (const t in e)
53
- if (t.startsWith("aria-") || t === "role" || t === "title")
54
- return !0;
55
- return !1;
56
- };
57
- const Zr = vn(
58
- ({
59
- color: e = "currentColor",
60
- size: t = 24,
61
- strokeWidth: n = 2,
62
- absoluteStrokeWidth: r,
63
- className: o = "",
64
- children: i,
65
- iconNode: c,
66
- ...s
67
- }, d) => gt(
68
- "svg",
69
- {
70
- ref: d,
71
- ...Yr,
72
- width: t,
73
- height: t,
74
- stroke: e,
75
- strokeWidth: r ? Number(n) * 24 / Number(t) : n,
76
- className: yn("lucide", o),
77
- ...!i && !Xr(s) && { "aria-hidden": "true" },
78
- ...s
79
- },
80
- [
81
- ...c.map(([l, f]) => gt(l, f)),
82
- ...Array.isArray(i) ? i : [i]
83
- ]
84
- )
85
- );
86
- const we = (e, t) => {
87
- const n = vn(
88
- ({ className: r, ...o }, i) => gt(Zr, {
89
- ref: i,
90
- iconNode: t,
91
- className: yn(
92
- `lucide-${Gr(Ht(e))}`,
93
- `lucide-${e}`,
94
- r
95
- ),
96
- ...o
97
- })
98
- );
99
- return n.displayName = Ht(e), n;
100
- };
101
- const qr = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Xc = we("check", qr);
102
- const Qr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Zc = we("chevron-right", Qr);
103
- const Jr = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], qc = we("circle", Jr);
104
- const eo = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Qc = we("loader-circle", eo);
105
- const to = [
106
- ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
107
- ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
108
- ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
109
- ["path", { d: "M8 16H3v5", key: "1cv678" }]
110
- ], no = we("refresh-cw", to);
111
- const ro = [
112
- [
113
- "path",
114
- {
115
- d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
116
- key: "wmoenq"
117
- }
118
- ],
119
- ["path", { d: "M12 9v4", key: "juzpu7" }],
120
- ["path", { d: "M12 17h.01", key: "p32p05" }]
121
- ], oo = we("triangle-alert", ro), Jc = (e, t, n) => {
122
- let r = e.get(t);
123
- return r || (r = n(), e.register(t, r)), r;
124
- }, ea = (e, t) => {
125
- Object.entries(t).forEach(([n, r]) => {
126
- e.get(n) || e.register(n, r());
127
- });
128
- };
129
- function T(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
130
- return function(o) {
131
- if (e?.(o), n === !1 || !o.defaultPrevented)
132
- return t?.(o);
133
- };
134
- }
135
- function ta(e, t) {
136
- const n = a.createContext(t), r = (i) => {
137
- const { children: c, ...s } = i, d = a.useMemo(() => s, Object.values(s));
138
- return /* @__PURE__ */ C(n.Provider, { value: d, children: c });
139
- };
140
- r.displayName = e + "Provider";
141
- function o(i) {
142
- const c = a.useContext(n);
143
- if (c) return c;
144
- if (t !== void 0) return t;
145
- throw new Error(`\`${i}\` must be used within \`${e}\``);
146
- }
147
- return [r, o];
148
- }
149
- function Je(e, t = []) {
150
- let n = [];
151
- function r(i, c) {
152
- const s = a.createContext(c), d = n.length;
153
- n = [...n, c];
154
- const l = (u) => {
155
- const { scope: m, children: h, ...g } = u, p = m?.[e]?.[d] || s, v = a.useMemo(() => g, Object.values(g));
156
- return /* @__PURE__ */ C(p.Provider, { value: v, children: h });
157
- };
158
- l.displayName = i + "Provider";
159
- function f(u, m) {
160
- const h = m?.[e]?.[d] || s, g = a.useContext(h);
161
- if (g) return g;
162
- if (c !== void 0) return c;
163
- throw new Error(`\`${u}\` must be used within \`${i}\``);
164
- }
165
- return [l, f];
166
- }
167
- const o = () => {
168
- const i = n.map((c) => a.createContext(c));
169
- return function(s) {
170
- const d = s?.[e] || i;
171
- return a.useMemo(
172
- () => ({ [`__scope${e}`]: { ...s, [e]: d } }),
173
- [s, d]
174
- );
175
- };
176
- };
177
- return o.scopeName = e, [r, io(o, ...t)];
178
- }
179
- function io(...e) {
180
- const t = e[0];
181
- if (e.length === 1) return t;
182
- const n = () => {
183
- const r = e.map((o) => ({
184
- useScope: o(),
185
- scopeName: o.scopeName
186
- }));
187
- return function(i) {
188
- const c = r.reduce((s, { useScope: d, scopeName: l }) => {
189
- const u = d(i)[`__scope${l}`];
190
- return { ...s, ...u };
191
- }, {});
192
- return a.useMemo(() => ({ [`__scope${t.scopeName}`]: c }), [c]);
193
- };
194
- };
195
- return n.scopeName = t.scopeName, n;
196
- }
197
- var oe = globalThis?.document ? a.useLayoutEffect : () => {
198
- }, so = a[" useInsertionEffect ".trim().toString()] || oe;
199
- function co({
200
- prop: e,
201
- defaultProp: t,
202
- onChange: n = () => {
203
- },
204
- caller: r
205
- }) {
206
- const [o, i, c] = ao({
207
- defaultProp: t,
208
- onChange: n
209
- }), s = e !== void 0, d = s ? e : o;
210
- {
211
- const f = a.useRef(e !== void 0);
212
- a.useEffect(() => {
213
- const u = f.current;
214
- u !== s && console.warn(
215
- `${r} is changing from ${u ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
216
- ), f.current = s;
217
- }, [s, r]);
218
- }
219
- const l = a.useCallback(
220
- (f) => {
221
- if (s) {
222
- const u = lo(f) ? f(e) : f;
223
- u !== e && c.current?.(u);
224
- } else
225
- i(f);
226
- },
227
- [s, e, i, c]
228
- );
229
- return [d, l];
230
- }
231
- function ao({
232
- defaultProp: e,
233
- onChange: t
234
- }) {
235
- const [n, r] = a.useState(e), o = a.useRef(n), i = a.useRef(t);
236
- return so(() => {
237
- i.current = t;
238
- }, [t]), a.useEffect(() => {
239
- o.current !== n && (i.current?.(n), o.current = n);
240
- }, [n, o]), [n, r, i];
241
- }
242
- function lo(e) {
243
- return typeof e == "function";
244
- }
245
- // @__NO_SIDE_EFFECTS__
246
- function uo(e) {
247
- const t = /* @__PURE__ */ fo(e), n = a.forwardRef((r, o) => {
248
- const { children: i, ...c } = r, s = a.Children.toArray(i), d = s.find(mo);
249
- if (d) {
250
- const l = d.props.children, f = s.map((u) => u === d ? a.Children.count(l) > 1 ? a.Children.only(null) : a.isValidElement(l) ? l.props.children : null : u);
251
- return /* @__PURE__ */ C(t, { ...c, ref: o, children: a.isValidElement(l) ? a.cloneElement(l, void 0, f) : null });
252
- }
253
- return /* @__PURE__ */ C(t, { ...c, ref: o, children: i });
254
- });
255
- return n.displayName = `${e}.Slot`, n;
256
- }
257
- // @__NO_SIDE_EFFECTS__
258
- function fo(e) {
259
- const t = a.forwardRef((n, r) => {
260
- const { children: o, ...i } = n;
261
- if (a.isValidElement(o)) {
262
- const c = vo(o), s = ho(i, o.props);
263
- return o.type !== a.Fragment && (s.ref = r ? Oe(r, c) : c), a.cloneElement(o, s);
264
- }
265
- return a.Children.count(o) > 1 ? a.Children.only(null) : null;
266
- });
267
- return t.displayName = `${e}.SlotClone`, t;
268
- }
269
- var po = /* @__PURE__ */ Symbol("radix.slottable");
270
- function mo(e) {
271
- return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === po;
272
- }
273
- function ho(e, t) {
274
- const n = { ...t };
275
- for (const r in t) {
276
- const o = e[r], i = t[r];
277
- /^on[A-Z]/.test(r) ? o && i ? n[r] = (...s) => {
278
- const d = i(...s);
279
- return o(...s), d;
280
- } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
281
- }
282
- return { ...e, ...n };
283
- }
284
- function vo(e) {
285
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
286
- return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
287
- }
288
- var go = [
289
- "a",
290
- "button",
291
- "div",
292
- "form",
293
- "h2",
294
- "h3",
295
- "img",
296
- "input",
297
- "label",
298
- "li",
299
- "nav",
300
- "ol",
301
- "p",
302
- "select",
303
- "span",
304
- "svg",
305
- "ul"
306
- ], U = go.reduce((e, t) => {
307
- const n = /* @__PURE__ */ uo(`Primitive.${t}`), r = a.forwardRef((o, i) => {
308
- const { asChild: c, ...s } = o, d = c ? n : t;
309
- return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ C(d, { ...s, ref: i });
310
- });
311
- return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
312
- }, {});
313
- function wn(e, t) {
314
- e && gn.flushSync(() => e.dispatchEvent(t));
315
- }
316
- // @__NO_SIDE_EFFECTS__
317
- function Kt(e) {
318
- const t = /* @__PURE__ */ yo(e), n = a.forwardRef((r, o) => {
319
- const { children: i, ...c } = r, s = a.Children.toArray(i), d = s.find(bo);
320
- if (d) {
321
- const l = d.props.children, f = s.map((u) => u === d ? a.Children.count(l) > 1 ? a.Children.only(null) : a.isValidElement(l) ? l.props.children : null : u);
322
- return /* @__PURE__ */ C(t, { ...c, ref: o, children: a.isValidElement(l) ? a.cloneElement(l, void 0, f) : null });
323
- }
324
- return /* @__PURE__ */ C(t, { ...c, ref: o, children: i });
325
- });
326
- return n.displayName = `${e}.Slot`, n;
327
- }
328
- // @__NO_SIDE_EFFECTS__
329
- function yo(e) {
330
- const t = a.forwardRef((n, r) => {
331
- const { children: o, ...i } = n;
332
- if (a.isValidElement(o)) {
333
- const c = Eo(o), s = Co(i, o.props);
334
- return o.type !== a.Fragment && (s.ref = r ? Oe(r, c) : c), a.cloneElement(o, s);
335
- }
336
- return a.Children.count(o) > 1 ? a.Children.only(null) : null;
337
- });
338
- return t.displayName = `${e}.SlotClone`, t;
339
- }
340
- var wo = /* @__PURE__ */ Symbol("radix.slottable");
341
- function bo(e) {
342
- return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === wo;
343
- }
344
- function Co(e, t) {
345
- const n = { ...t };
346
- for (const r in t) {
347
- const o = e[r], i = t[r];
348
- /^on[A-Z]/.test(r) ? o && i ? n[r] = (...s) => {
349
- const d = i(...s);
350
- return o(...s), d;
351
- } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
352
- }
353
- return { ...e, ...n };
354
- }
355
- function Eo(e) {
356
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
357
- return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
358
- }
359
- function bn(e) {
360
- const t = e + "CollectionProvider", [n, r] = Je(t), [o, i] = n(
361
- t,
362
- { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
363
- ), c = (p) => {
364
- const { scope: v, children: y } = p, E = ue.useRef(null), b = ue.useRef(/* @__PURE__ */ new Map()).current;
365
- return /* @__PURE__ */ C(o, { scope: v, itemMap: b, collectionRef: E, children: y });
366
- };
367
- c.displayName = t;
368
- const s = e + "CollectionSlot", d = /* @__PURE__ */ Kt(s), l = ue.forwardRef(
369
- (p, v) => {
370
- const { scope: y, children: E } = p, b = i(s, y), w = V(v, b.collectionRef);
371
- return /* @__PURE__ */ C(d, { ref: w, children: E });
372
- }
373
- );
374
- l.displayName = s;
375
- const f = e + "CollectionItemSlot", u = "data-radix-collection-item", m = /* @__PURE__ */ Kt(f), h = ue.forwardRef(
376
- (p, v) => {
377
- const { scope: y, children: E, ...b } = p, w = ue.useRef(null), S = V(v, w), A = i(f, y);
378
- return ue.useEffect(() => (A.itemMap.set(w, { ref: w, ...b }), () => {
379
- A.itemMap.delete(w);
380
- })), /* @__PURE__ */ C(m, { [u]: "", ref: S, children: E });
381
- }
382
- );
383
- h.displayName = f;
384
- function g(p) {
385
- const v = i(e + "CollectionConsumer", p);
386
- return ue.useCallback(() => {
387
- const E = v.collectionRef.current;
388
- if (!E) return [];
389
- const b = Array.from(E.querySelectorAll(`[${u}]`));
390
- return Array.from(v.itemMap.values()).sort(
391
- (A, x) => b.indexOf(A.ref.current) - b.indexOf(x.ref.current)
392
- );
393
- }, [v.collectionRef, v.itemMap]);
394
- }
395
- return [
396
- { Provider: c, Slot: l, ItemSlot: h },
397
- g,
398
- r
399
- ];
400
- }
401
- var xo = a.createContext(void 0);
402
- function Cn(e) {
403
- const t = a.useContext(xo);
404
- return e || t || "ltr";
405
- }
406
- function Q(e) {
407
- const t = a.useRef(e);
408
- return a.useEffect(() => {
409
- t.current = e;
410
- }), a.useMemo(() => (...n) => t.current?.(...n), []);
411
- }
412
- function So(e, t = globalThis?.document) {
413
- const n = Q(e);
414
- a.useEffect(() => {
415
- const r = (o) => {
416
- o.key === "Escape" && n(o);
417
- };
418
- return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
419
- }, [n, t]);
420
- }
421
- var Ro = "DismissableLayer", yt = "dismissableLayer.update", Ao = "dismissableLayer.pointerDownOutside", Po = "dismissableLayer.focusOutside", jt, En = a.createContext({
422
- layers: /* @__PURE__ */ new Set(),
423
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
424
- branches: /* @__PURE__ */ new Set()
425
- }), xn = a.forwardRef(
426
- (e, t) => {
427
- const {
428
- disableOutsidePointerEvents: n = !1,
429
- onEscapeKeyDown: r,
430
- onPointerDownOutside: o,
431
- onFocusOutside: i,
432
- onInteractOutside: c,
433
- onDismiss: s,
434
- ...d
435
- } = e, l = a.useContext(En), [f, u] = a.useState(null), m = f?.ownerDocument ?? globalThis?.document, [, h] = a.useState({}), g = V(t, (x) => u(x)), p = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(v), E = f ? p.indexOf(f) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, w = E >= y, S = To((x) => {
436
- const P = x.target, _ = [...l.branches].some((O) => O.contains(P));
437
- !w || _ || (o?.(x), c?.(x), x.defaultPrevented || s?.());
438
- }, m), A = Io((x) => {
439
- const P = x.target;
440
- [...l.branches].some((O) => O.contains(P)) || (i?.(x), c?.(x), x.defaultPrevented || s?.());
441
- }, m);
442
- return So((x) => {
443
- E === l.layers.size - 1 && (r?.(x), !x.defaultPrevented && s && (x.preventDefault(), s()));
444
- }, m), a.useEffect(() => {
445
- if (f)
446
- return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (jt = m.body.style.pointerEvents, m.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), Gt(), () => {
447
- n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (m.body.style.pointerEvents = jt);
448
- };
449
- }, [f, m, n, l]), a.useEffect(() => () => {
450
- f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), Gt());
451
- }, [f, l]), a.useEffect(() => {
452
- const x = () => h({});
453
- return document.addEventListener(yt, x), () => document.removeEventListener(yt, x);
454
- }, []), /* @__PURE__ */ C(
455
- U.div,
456
- {
457
- ...d,
458
- ref: g,
459
- style: {
460
- pointerEvents: b ? w ? "auto" : "none" : void 0,
461
- ...e.style
462
- },
463
- onFocusCapture: T(e.onFocusCapture, A.onFocusCapture),
464
- onBlurCapture: T(e.onBlurCapture, A.onBlurCapture),
465
- onPointerDownCapture: T(
466
- e.onPointerDownCapture,
467
- S.onPointerDownCapture
468
- )
469
- }
470
- );
471
- }
472
- );
473
- xn.displayName = Ro;
474
- var Mo = "DismissableLayerBranch", Oo = a.forwardRef((e, t) => {
475
- const n = a.useContext(En), r = a.useRef(null), o = V(t, r);
476
- return a.useEffect(() => {
477
- const i = r.current;
478
- if (i)
479
- return n.branches.add(i), () => {
480
- n.branches.delete(i);
481
- };
482
- }, [n.branches]), /* @__PURE__ */ C(U.div, { ...e, ref: o });
483
- });
484
- Oo.displayName = Mo;
485
- function To(e, t = globalThis?.document) {
486
- const n = Q(e), r = a.useRef(!1), o = a.useRef(() => {
487
- });
488
- return a.useEffect(() => {
489
- const i = (s) => {
490
- if (s.target && !r.current) {
491
- let d = function() {
492
- Sn(
493
- Ao,
494
- n,
495
- l,
496
- { discrete: !0 }
497
- );
498
- };
499
- const l = { originalEvent: s };
500
- s.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = d, t.addEventListener("click", o.current, { once: !0 })) : d();
501
- } else
502
- t.removeEventListener("click", o.current);
503
- r.current = !1;
504
- }, c = window.setTimeout(() => {
505
- t.addEventListener("pointerdown", i);
506
- }, 0);
507
- return () => {
508
- window.clearTimeout(c), t.removeEventListener("pointerdown", i), t.removeEventListener("click", o.current);
509
- };
510
- }, [t, n]), {
511
- // ensures we check React component tree (not just DOM tree)
512
- onPointerDownCapture: () => r.current = !0
513
- };
514
- }
515
- function Io(e, t = globalThis?.document) {
516
- const n = Q(e), r = a.useRef(!1);
517
- return a.useEffect(() => {
518
- const o = (i) => {
519
- i.target && !r.current && Sn(Po, n, { originalEvent: i }, {
520
- discrete: !1
521
- });
522
- };
523
- return t.addEventListener("focusin", o), () => t.removeEventListener("focusin", o);
524
- }, [t, n]), {
525
- onFocusCapture: () => r.current = !0,
526
- onBlurCapture: () => r.current = !1
527
- };
528
- }
529
- function Gt() {
530
- const e = new CustomEvent(yt);
531
- document.dispatchEvent(e);
532
- }
533
- function Sn(e, t, n, { discrete: r }) {
534
- const o = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
535
- t && o.addEventListener(e, t, { once: !0 }), r ? wn(o, i) : o.dispatchEvent(i);
536
- }
537
- var ct = 0;
538
- function _o() {
539
- a.useEffect(() => {
540
- const e = document.querySelectorAll("[data-radix-focus-guard]");
541
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? zt()), document.body.insertAdjacentElement("beforeend", e[1] ?? zt()), ct++, () => {
542
- ct === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ct--;
543
- };
544
- }, []);
545
- }
546
- function zt() {
547
- const e = document.createElement("span");
548
- return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
549
- }
550
- var at = "focusScope.autoFocusOnMount", lt = "focusScope.autoFocusOnUnmount", Yt = { bubbles: !1, cancelable: !0 }, No = "FocusScope", Rn = a.forwardRef((e, t) => {
551
- const {
552
- loop: n = !1,
553
- trapped: r = !1,
554
- onMountAutoFocus: o,
555
- onUnmountAutoFocus: i,
556
- ...c
557
- } = e, [s, d] = a.useState(null), l = Q(o), f = Q(i), u = a.useRef(null), m = V(t, (p) => d(p)), h = a.useRef({
558
- paused: !1,
559
- pause() {
560
- this.paused = !0;
561
- },
562
- resume() {
563
- this.paused = !1;
564
- }
565
- }).current;
566
- a.useEffect(() => {
567
- if (r) {
568
- let p = function(b) {
569
- if (h.paused || !s) return;
570
- const w = b.target;
571
- s.contains(w) ? u.current = w : re(u.current, { select: !0 });
572
- }, v = function(b) {
573
- if (h.paused || !s) return;
574
- const w = b.relatedTarget;
575
- w !== null && (s.contains(w) || re(u.current, { select: !0 }));
576
- }, y = function(b) {
577
- if (document.activeElement === document.body)
578
- for (const S of b)
579
- S.removedNodes.length > 0 && re(s);
580
- };
581
- document.addEventListener("focusin", p), document.addEventListener("focusout", v);
582
- const E = new MutationObserver(y);
583
- return s && E.observe(s, { childList: !0, subtree: !0 }), () => {
584
- document.removeEventListener("focusin", p), document.removeEventListener("focusout", v), E.disconnect();
585
- };
586
- }
587
- }, [r, s, h.paused]), a.useEffect(() => {
588
- if (s) {
589
- Zt.add(h);
590
- const p = document.activeElement;
591
- if (!s.contains(p)) {
592
- const y = new CustomEvent(at, Yt);
593
- s.addEventListener(at, l), s.dispatchEvent(y), y.defaultPrevented || (Do(Wo(An(s)), { select: !0 }), document.activeElement === p && re(s));
594
- }
595
- return () => {
596
- s.removeEventListener(at, l), setTimeout(() => {
597
- const y = new CustomEvent(lt, Yt);
598
- s.addEventListener(lt, f), s.dispatchEvent(y), y.defaultPrevented || re(p ?? document.body, { select: !0 }), s.removeEventListener(lt, f), Zt.remove(h);
599
- }, 0);
600
- };
601
- }
602
- }, [s, l, f, h]);
603
- const g = a.useCallback(
604
- (p) => {
605
- if (!n && !r || h.paused) return;
606
- const v = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, y = document.activeElement;
607
- if (v && y) {
608
- const E = p.currentTarget, [b, w] = Lo(E);
609
- b && w ? !p.shiftKey && y === w ? (p.preventDefault(), n && re(b, { select: !0 })) : p.shiftKey && y === b && (p.preventDefault(), n && re(w, { select: !0 })) : y === E && p.preventDefault();
610
- }
611
- },
612
- [n, r, h.paused]
613
- );
614
- return /* @__PURE__ */ C(U.div, { tabIndex: -1, ...c, ref: m, onKeyDown: g });
615
- });
616
- Rn.displayName = No;
617
- function Do(e, { select: t = !1 } = {}) {
618
- const n = document.activeElement;
619
- for (const r of e)
620
- if (re(r, { select: t }), document.activeElement !== n) return;
621
- }
622
- function Lo(e) {
623
- const t = An(e), n = Xt(t, e), r = Xt(t.reverse(), e);
624
- return [n, r];
625
- }
626
- function An(e) {
627
- const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
628
- acceptNode: (r) => {
629
- const o = r.tagName === "INPUT" && r.type === "hidden";
630
- return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
631
- }
632
- });
633
- for (; n.nextNode(); ) t.push(n.currentNode);
634
- return t;
635
- }
636
- function Xt(e, t) {
637
- for (const n of e)
638
- if (!Fo(n, { upTo: t })) return n;
639
- }
640
- function Fo(e, { upTo: t }) {
641
- if (getComputedStyle(e).visibility === "hidden") return !0;
642
- for (; e; ) {
643
- if (t !== void 0 && e === t) return !1;
644
- if (getComputedStyle(e).display === "none") return !0;
645
- e = e.parentElement;
646
- }
647
- return !1;
648
- }
649
- function ko(e) {
650
- return e instanceof HTMLInputElement && "select" in e;
651
- }
652
- function re(e, { select: t = !1 } = {}) {
653
- if (e && e.focus) {
654
- const n = document.activeElement;
655
- e.focus({ preventScroll: !0 }), e !== n && ko(e) && t && e.select();
656
- }
657
- }
658
- var Zt = $o();
659
- function $o() {
660
- let e = [];
661
- return {
662
- add(t) {
663
- const n = e[0];
664
- t !== n && n?.pause(), e = qt(e, t), e.unshift(t);
665
- },
666
- remove(t) {
667
- e = qt(e, t), e[0]?.resume();
668
- }
669
- };
670
- }
671
- function qt(e, t) {
672
- const n = [...e], r = n.indexOf(t);
673
- return r !== -1 && n.splice(r, 1), n;
674
- }
675
- function Wo(e) {
676
- return e.filter((t) => t.tagName !== "A");
677
- }
678
- var Bo = a[" useId ".trim().toString()] || (() => {
679
- }), Vo = 0;
680
- function wt(e) {
681
- const [t, n] = a.useState(Bo());
682
- return oe(() => {
683
- n((r) => r ?? String(Vo++));
684
- }, [e]), e || (t ? `radix-${t}` : "");
685
- }
686
- const Uo = ["top", "right", "bottom", "left"], ie = Math.min, H = Math.max, ze = Math.round, $e = Math.floor, q = (e) => ({
687
- x: e,
688
- y: e
689
- }), Ho = {
690
- left: "right",
691
- right: "left",
692
- bottom: "top",
693
- top: "bottom"
694
- }, Ko = {
695
- start: "end",
696
- end: "start"
697
- };
698
- function bt(e, t, n) {
699
- return H(e, ie(t, n));
700
- }
701
- function te(e, t) {
702
- return typeof e == "function" ? e(t) : e;
703
- }
704
- function ne(e) {
705
- return e.split("-")[0];
706
- }
707
- function be(e) {
708
- return e.split("-")[1];
709
- }
710
- function At(e) {
711
- return e === "x" ? "y" : "x";
712
- }
713
- function Pt(e) {
714
- return e === "y" ? "height" : "width";
715
- }
716
- const jo = /* @__PURE__ */ new Set(["top", "bottom"]);
717
- function Z(e) {
718
- return jo.has(ne(e)) ? "y" : "x";
719
- }
720
- function Mt(e) {
721
- return At(Z(e));
722
- }
723
- function Go(e, t, n) {
724
- n === void 0 && (n = !1);
725
- const r = be(e), o = Mt(e), i = Pt(o);
726
- let c = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
727
- return t.reference[i] > t.floating[i] && (c = Ye(c)), [c, Ye(c)];
728
- }
729
- function zo(e) {
730
- const t = Ye(e);
731
- return [Ct(e), t, Ct(t)];
732
- }
733
- function Ct(e) {
734
- return e.replace(/start|end/g, (t) => Ko[t]);
735
- }
736
- const Qt = ["left", "right"], Jt = ["right", "left"], Yo = ["top", "bottom"], Xo = ["bottom", "top"];
737
- function Zo(e, t, n) {
738
- switch (e) {
739
- case "top":
740
- case "bottom":
741
- return n ? t ? Jt : Qt : t ? Qt : Jt;
742
- case "left":
743
- case "right":
744
- return t ? Yo : Xo;
745
- default:
746
- return [];
747
- }
748
- }
749
- function qo(e, t, n, r) {
750
- const o = be(e);
751
- let i = Zo(ne(e), n === "start", r);
752
- return o && (i = i.map((c) => c + "-" + o), t && (i = i.concat(i.map(Ct)))), i;
753
- }
754
- function Ye(e) {
755
- return e.replace(/left|right|bottom|top/g, (t) => Ho[t]);
756
- }
757
- function Qo(e) {
758
- return {
759
- top: 0,
760
- right: 0,
761
- bottom: 0,
762
- left: 0,
763
- ...e
764
- };
765
- }
766
- function Pn(e) {
767
- return typeof e != "number" ? Qo(e) : {
768
- top: e,
769
- right: e,
770
- bottom: e,
771
- left: e
772
- };
773
- }
774
- function Xe(e) {
775
- const {
776
- x: t,
777
- y: n,
778
- width: r,
779
- height: o
780
- } = e;
781
- return {
782
- width: r,
783
- height: o,
784
- top: n,
785
- left: t,
786
- right: t + r,
787
- bottom: n + o,
788
- x: t,
789
- y: n
790
- };
791
- }
792
- function en(e, t, n) {
793
- let {
794
- reference: r,
795
- floating: o
796
- } = e;
797
- const i = Z(t), c = Mt(t), s = Pt(c), d = ne(t), l = i === "y", f = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, m = r[s] / 2 - o[s] / 2;
798
- let h;
799
- switch (d) {
800
- case "top":
801
- h = {
802
- x: f,
803
- y: r.y - o.height
804
- };
805
- break;
806
- case "bottom":
807
- h = {
808
- x: f,
809
- y: r.y + r.height
810
- };
811
- break;
812
- case "right":
813
- h = {
814
- x: r.x + r.width,
815
- y: u
816
- };
817
- break;
818
- case "left":
819
- h = {
820
- x: r.x - o.width,
821
- y: u
822
- };
823
- break;
824
- default:
825
- h = {
826
- x: r.x,
827
- y: r.y
828
- };
829
- }
830
- switch (be(t)) {
831
- case "start":
832
- h[c] -= m * (n && l ? -1 : 1);
833
- break;
834
- case "end":
835
- h[c] += m * (n && l ? -1 : 1);
836
- break;
837
- }
838
- return h;
839
- }
840
- async function Jo(e, t) {
841
- var n;
842
- t === void 0 && (t = {});
843
- const {
844
- x: r,
845
- y: o,
846
- platform: i,
847
- rects: c,
848
- elements: s,
849
- strategy: d
850
- } = e, {
851
- boundary: l = "clippingAncestors",
852
- rootBoundary: f = "viewport",
853
- elementContext: u = "floating",
854
- altBoundary: m = !1,
855
- padding: h = 0
856
- } = te(t, e), g = Pn(h), v = s[m ? u === "floating" ? "reference" : "floating" : u], y = Xe(await i.getClippingRect({
857
- element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
858
- boundary: l,
859
- rootBoundary: f,
860
- strategy: d
861
- })), E = u === "floating" ? {
862
- x: r,
863
- y: o,
864
- width: c.floating.width,
865
- height: c.floating.height
866
- } : c.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(s.floating)), w = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
867
- x: 1,
868
- y: 1
869
- } : {
870
- x: 1,
871
- y: 1
872
- }, S = Xe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
873
- elements: s,
874
- rect: E,
875
- offsetParent: b,
876
- strategy: d
877
- }) : E);
878
- return {
879
- top: (y.top - S.top + g.top) / w.y,
880
- bottom: (S.bottom - y.bottom + g.bottom) / w.y,
881
- left: (y.left - S.left + g.left) / w.x,
882
- right: (S.right - y.right + g.right) / w.x
883
- };
884
- }
885
- const ei = async (e, t, n) => {
886
- const {
887
- placement: r = "bottom",
888
- strategy: o = "absolute",
889
- middleware: i = [],
890
- platform: c
891
- } = n, s = i.filter(Boolean), d = await (c.isRTL == null ? void 0 : c.isRTL(t));
892
- let l = await c.getElementRects({
893
- reference: e,
894
- floating: t,
895
- strategy: o
896
- }), {
897
- x: f,
898
- y: u
899
- } = en(l, r, d), m = r, h = {}, g = 0;
900
- for (let v = 0; v < s.length; v++) {
901
- var p;
902
- const {
903
- name: y,
904
- fn: E
905
- } = s[v], {
906
- x: b,
907
- y: w,
908
- data: S,
909
- reset: A
910
- } = await E({
911
- x: f,
912
- y: u,
913
- initialPlacement: r,
914
- placement: m,
915
- strategy: o,
916
- middlewareData: h,
917
- rects: l,
918
- platform: {
919
- ...c,
920
- detectOverflow: (p = c.detectOverflow) != null ? p : Jo
921
- },
922
- elements: {
923
- reference: e,
924
- floating: t
925
- }
926
- });
927
- f = b ?? f, u = w ?? u, h = {
928
- ...h,
929
- [y]: {
930
- ...h[y],
931
- ...S
932
- }
933
- }, A && g <= 50 && (g++, typeof A == "object" && (A.placement && (m = A.placement), A.rects && (l = A.rects === !0 ? await c.getElementRects({
934
- reference: e,
935
- floating: t,
936
- strategy: o
937
- }) : A.rects), {
938
- x: f,
939
- y: u
940
- } = en(l, m, d)), v = -1);
941
- }
942
- return {
943
- x: f,
944
- y: u,
945
- placement: m,
946
- strategy: o,
947
- middlewareData: h
948
- };
949
- }, ti = (e) => ({
950
- name: "arrow",
951
- options: e,
952
- async fn(t) {
953
- const {
954
- x: n,
955
- y: r,
956
- placement: o,
957
- rects: i,
958
- platform: c,
959
- elements: s,
960
- middlewareData: d
961
- } = t, {
962
- element: l,
963
- padding: f = 0
964
- } = te(e, t) || {};
965
- if (l == null)
966
- return {};
967
- const u = Pn(f), m = {
968
- x: n,
969
- y: r
970
- }, h = Mt(o), g = Pt(h), p = await c.getDimensions(l), v = h === "y", y = v ? "top" : "left", E = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", w = i.reference[g] + i.reference[h] - m[h] - i.floating[g], S = m[h] - i.reference[h], A = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(l));
971
- let x = A ? A[b] : 0;
972
- (!x || !await (c.isElement == null ? void 0 : c.isElement(A))) && (x = s.floating[b] || i.floating[g]);
973
- const P = w / 2 - S / 2, _ = x / 2 - p[g] / 2 - 1, O = ie(u[y], _), N = ie(u[E], _), L = O, F = x - p[g] - N, D = x / 2 - p[g] / 2 + P, W = bt(L, D, F), I = !d.arrow && be(o) != null && D !== W && i.reference[g] / 2 - (D < L ? O : N) - p[g] / 2 < 0, k = I ? D < L ? D - L : D - F : 0;
974
- return {
975
- [h]: m[h] + k,
976
- data: {
977
- [h]: W,
978
- centerOffset: D - W - k,
979
- ...I && {
980
- alignmentOffset: k
981
- }
982
- },
983
- reset: I
984
- };
985
- }
986
- }), ni = function(e) {
987
- return e === void 0 && (e = {}), {
988
- name: "flip",
989
- options: e,
990
- async fn(t) {
991
- var n, r;
992
- const {
993
- placement: o,
994
- middlewareData: i,
995
- rects: c,
996
- initialPlacement: s,
997
- platform: d,
998
- elements: l
999
- } = t, {
1000
- mainAxis: f = !0,
1001
- crossAxis: u = !0,
1002
- fallbackPlacements: m,
1003
- fallbackStrategy: h = "bestFit",
1004
- fallbackAxisSideDirection: g = "none",
1005
- flipAlignment: p = !0,
1006
- ...v
1007
- } = te(e, t);
1008
- if ((n = i.arrow) != null && n.alignmentOffset)
1009
- return {};
1010
- const y = ne(o), E = Z(s), b = ne(s) === s, w = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), S = m || (b || !p ? [Ye(s)] : zo(s)), A = g !== "none";
1011
- !m && A && S.push(...qo(s, p, g, w));
1012
- const x = [s, ...S], P = await d.detectOverflow(t, v), _ = [];
1013
- let O = ((r = i.flip) == null ? void 0 : r.overflows) || [];
1014
- if (f && _.push(P[y]), u) {
1015
- const D = Go(o, c, w);
1016
- _.push(P[D[0]], P[D[1]]);
1017
- }
1018
- if (O = [...O, {
1019
- placement: o,
1020
- overflows: _
1021
- }], !_.every((D) => D <= 0)) {
1022
- var N, L;
1023
- const D = (((N = i.flip) == null ? void 0 : N.index) || 0) + 1, W = x[D];
1024
- if (W && (!(u === "alignment" ? E !== Z(W) : !1) || // We leave the current main axis only if every placement on that axis
1025
- // overflows the main axis.
1026
- O.every((M) => Z(M.placement) === E ? M.overflows[0] > 0 : !0)))
1027
- return {
1028
- data: {
1029
- index: D,
1030
- overflows: O
1031
- },
1032
- reset: {
1033
- placement: W
1034
- }
1035
- };
1036
- let I = (L = O.filter((k) => k.overflows[0] <= 0).sort((k, M) => k.overflows[1] - M.overflows[1])[0]) == null ? void 0 : L.placement;
1037
- if (!I)
1038
- switch (h) {
1039
- case "bestFit": {
1040
- var F;
1041
- const k = (F = O.filter((M) => {
1042
- if (A) {
1043
- const R = Z(M.placement);
1044
- return R === E || // Create a bias to the `y` side axis due to horizontal
1045
- // reading directions favoring greater width.
1046
- R === "y";
1047
- }
1048
- return !0;
1049
- }).map((M) => [M.placement, M.overflows.filter((R) => R > 0).reduce((R, B) => R + B, 0)]).sort((M, R) => M[1] - R[1])[0]) == null ? void 0 : F[0];
1050
- k && (I = k);
1051
- break;
1052
- }
1053
- case "initialPlacement":
1054
- I = s;
1055
- break;
1056
- }
1057
- if (o !== I)
1058
- return {
1059
- reset: {
1060
- placement: I
1061
- }
1062
- };
1063
- }
1064
- return {};
1065
- }
1066
- };
1067
- };
1068
- function tn(e, t) {
1069
- return {
1070
- top: e.top - t.height,
1071
- right: e.right - t.width,
1072
- bottom: e.bottom - t.height,
1073
- left: e.left - t.width
1074
- };
1075
- }
1076
- function nn(e) {
1077
- return Uo.some((t) => e[t] >= 0);
1078
- }
1079
- const ri = function(e) {
1080
- return e === void 0 && (e = {}), {
1081
- name: "hide",
1082
- options: e,
1083
- async fn(t) {
1084
- const {
1085
- rects: n,
1086
- platform: r
1087
- } = t, {
1088
- strategy: o = "referenceHidden",
1089
- ...i
1090
- } = te(e, t);
1091
- switch (o) {
1092
- case "referenceHidden": {
1093
- const c = await r.detectOverflow(t, {
1094
- ...i,
1095
- elementContext: "reference"
1096
- }), s = tn(c, n.reference);
1097
- return {
1098
- data: {
1099
- referenceHiddenOffsets: s,
1100
- referenceHidden: nn(s)
1101
- }
1102
- };
1103
- }
1104
- case "escaped": {
1105
- const c = await r.detectOverflow(t, {
1106
- ...i,
1107
- altBoundary: !0
1108
- }), s = tn(c, n.floating);
1109
- return {
1110
- data: {
1111
- escapedOffsets: s,
1112
- escaped: nn(s)
1113
- }
1114
- };
1115
- }
1116
- default:
1117
- return {};
1118
- }
1119
- }
1120
- };
1121
- }, Mn = /* @__PURE__ */ new Set(["left", "top"]);
1122
- async function oi(e, t) {
1123
- const {
1124
- placement: n,
1125
- platform: r,
1126
- elements: o
1127
- } = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), c = ne(n), s = be(n), d = Z(n) === "y", l = Mn.has(c) ? -1 : 1, f = i && d ? -1 : 1, u = te(t, e);
1128
- let {
1129
- mainAxis: m,
1130
- crossAxis: h,
1131
- alignmentAxis: g
1132
- } = typeof u == "number" ? {
1133
- mainAxis: u,
1134
- crossAxis: 0,
1135
- alignmentAxis: null
1136
- } : {
1137
- mainAxis: u.mainAxis || 0,
1138
- crossAxis: u.crossAxis || 0,
1139
- alignmentAxis: u.alignmentAxis
1140
- };
1141
- return s && typeof g == "number" && (h = s === "end" ? g * -1 : g), d ? {
1142
- x: h * f,
1143
- y: m * l
1144
- } : {
1145
- x: m * l,
1146
- y: h * f
1147
- };
1148
- }
1149
- const ii = function(e) {
1150
- return e === void 0 && (e = 0), {
1151
- name: "offset",
1152
- options: e,
1153
- async fn(t) {
1154
- var n, r;
1155
- const {
1156
- x: o,
1157
- y: i,
1158
- placement: c,
1159
- middlewareData: s
1160
- } = t, d = await oi(t, e);
1161
- return c === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
1162
- x: o + d.x,
1163
- y: i + d.y,
1164
- data: {
1165
- ...d,
1166
- placement: c
1167
- }
1168
- };
1169
- }
1170
- };
1171
- }, si = function(e) {
1172
- return e === void 0 && (e = {}), {
1173
- name: "shift",
1174
- options: e,
1175
- async fn(t) {
1176
- const {
1177
- x: n,
1178
- y: r,
1179
- placement: o,
1180
- platform: i
1181
- } = t, {
1182
- mainAxis: c = !0,
1183
- crossAxis: s = !1,
1184
- limiter: d = {
1185
- fn: (y) => {
1186
- let {
1187
- x: E,
1188
- y: b
1189
- } = y;
1190
- return {
1191
- x: E,
1192
- y: b
1193
- };
1194
- }
1195
- },
1196
- ...l
1197
- } = te(e, t), f = {
1198
- x: n,
1199
- y: r
1200
- }, u = await i.detectOverflow(t, l), m = Z(ne(o)), h = At(m);
1201
- let g = f[h], p = f[m];
1202
- if (c) {
1203
- const y = h === "y" ? "top" : "left", E = h === "y" ? "bottom" : "right", b = g + u[y], w = g - u[E];
1204
- g = bt(b, g, w);
1205
- }
1206
- if (s) {
1207
- const y = m === "y" ? "top" : "left", E = m === "y" ? "bottom" : "right", b = p + u[y], w = p - u[E];
1208
- p = bt(b, p, w);
1209
- }
1210
- const v = d.fn({
1211
- ...t,
1212
- [h]: g,
1213
- [m]: p
1214
- });
1215
- return {
1216
- ...v,
1217
- data: {
1218
- x: v.x - n,
1219
- y: v.y - r,
1220
- enabled: {
1221
- [h]: c,
1222
- [m]: s
1223
- }
1224
- }
1225
- };
1226
- }
1227
- };
1228
- }, ci = function(e) {
1229
- return e === void 0 && (e = {}), {
1230
- options: e,
1231
- fn(t) {
1232
- const {
1233
- x: n,
1234
- y: r,
1235
- placement: o,
1236
- rects: i,
1237
- middlewareData: c
1238
- } = t, {
1239
- offset: s = 0,
1240
- mainAxis: d = !0,
1241
- crossAxis: l = !0
1242
- } = te(e, t), f = {
1243
- x: n,
1244
- y: r
1245
- }, u = Z(o), m = At(u);
1246
- let h = f[m], g = f[u];
1247
- const p = te(s, t), v = typeof p == "number" ? {
1248
- mainAxis: p,
1249
- crossAxis: 0
1250
- } : {
1251
- mainAxis: 0,
1252
- crossAxis: 0,
1253
- ...p
1254
- };
1255
- if (d) {
1256
- const b = m === "y" ? "height" : "width", w = i.reference[m] - i.floating[b] + v.mainAxis, S = i.reference[m] + i.reference[b] - v.mainAxis;
1257
- h < w ? h = w : h > S && (h = S);
1258
- }
1259
- if (l) {
1260
- var y, E;
1261
- const b = m === "y" ? "width" : "height", w = Mn.has(ne(o)), S = i.reference[u] - i.floating[b] + (w && ((y = c.offset) == null ? void 0 : y[u]) || 0) + (w ? 0 : v.crossAxis), A = i.reference[u] + i.reference[b] + (w ? 0 : ((E = c.offset) == null ? void 0 : E[u]) || 0) - (w ? v.crossAxis : 0);
1262
- g < S ? g = S : g > A && (g = A);
1263
- }
1264
- return {
1265
- [m]: h,
1266
- [u]: g
1267
- };
1268
- }
1269
- };
1270
- }, ai = function(e) {
1271
- return e === void 0 && (e = {}), {
1272
- name: "size",
1273
- options: e,
1274
- async fn(t) {
1275
- var n, r;
1276
- const {
1277
- placement: o,
1278
- rects: i,
1279
- platform: c,
1280
- elements: s
1281
- } = t, {
1282
- apply: d = () => {
1283
- },
1284
- ...l
1285
- } = te(e, t), f = await c.detectOverflow(t, l), u = ne(o), m = be(o), h = Z(o) === "y", {
1286
- width: g,
1287
- height: p
1288
- } = i.floating;
1289
- let v, y;
1290
- u === "top" || u === "bottom" ? (v = u, y = m === (await (c.isRTL == null ? void 0 : c.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (y = u, v = m === "end" ? "top" : "bottom");
1291
- const E = p - f.top - f.bottom, b = g - f.left - f.right, w = ie(p - f[v], E), S = ie(g - f[y], b), A = !t.middlewareData.shift;
1292
- let x = w, P = S;
1293
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = b), (r = t.middlewareData.shift) != null && r.enabled.y && (x = E), A && !m) {
1294
- const O = H(f.left, 0), N = H(f.right, 0), L = H(f.top, 0), F = H(f.bottom, 0);
1295
- h ? P = g - 2 * (O !== 0 || N !== 0 ? O + N : H(f.left, f.right)) : x = p - 2 * (L !== 0 || F !== 0 ? L + F : H(f.top, f.bottom));
1296
- }
1297
- await d({
1298
- ...t,
1299
- availableWidth: P,
1300
- availableHeight: x
1301
- });
1302
- const _ = await c.getDimensions(s.floating);
1303
- return g !== _.width || p !== _.height ? {
1304
- reset: {
1305
- rects: !0
1306
- }
1307
- } : {};
1308
- }
1309
- };
1310
- };
1311
- function et() {
1312
- return typeof window < "u";
1313
- }
1314
- function Ce(e) {
1315
- return On(e) ? (e.nodeName || "").toLowerCase() : "#document";
1316
- }
1317
- function K(e) {
1318
- var t;
1319
- return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1320
- }
1321
- function ee(e) {
1322
- var t;
1323
- return (t = (On(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1324
- }
1325
- function On(e) {
1326
- return et() ? e instanceof Node || e instanceof K(e).Node : !1;
1327
- }
1328
- function G(e) {
1329
- return et() ? e instanceof Element || e instanceof K(e).Element : !1;
1330
- }
1331
- function J(e) {
1332
- return et() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
1333
- }
1334
- function rn(e) {
1335
- return !et() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
1336
- }
1337
- const li = /* @__PURE__ */ new Set(["inline", "contents"]);
1338
- function Te(e) {
1339
- const {
1340
- overflow: t,
1341
- overflowX: n,
1342
- overflowY: r,
1343
- display: o
1344
- } = z(e);
1345
- return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !li.has(o);
1346
- }
1347
- const ui = /* @__PURE__ */ new Set(["table", "td", "th"]);
1348
- function fi(e) {
1349
- return ui.has(Ce(e));
1350
- }
1351
- const di = [":popover-open", ":modal"];
1352
- function tt(e) {
1353
- return di.some((t) => {
1354
- try {
1355
- return e.matches(t);
1356
- } catch {
1357
- return !1;
1358
- }
1359
- });
1360
- }
1361
- const pi = ["transform", "translate", "scale", "rotate", "perspective"], mi = ["transform", "translate", "scale", "rotate", "perspective", "filter"], hi = ["paint", "layout", "strict", "content"];
1362
- function Ot(e) {
1363
- const t = Tt(), n = G(e) ? z(e) : e;
1364
- return pi.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || mi.some((r) => (n.willChange || "").includes(r)) || hi.some((r) => (n.contain || "").includes(r));
1365
- }
1366
- function vi(e) {
1367
- let t = se(e);
1368
- for (; J(t) && !ye(t); ) {
1369
- if (Ot(t))
1370
- return t;
1371
- if (tt(t))
1372
- return null;
1373
- t = se(t);
1374
- }
1375
- return null;
1376
- }
1377
- function Tt() {
1378
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1379
- }
1380
- const gi = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1381
- function ye(e) {
1382
- return gi.has(Ce(e));
1383
- }
1384
- function z(e) {
1385
- return K(e).getComputedStyle(e);
1386
- }
1387
- function nt(e) {
1388
- return G(e) ? {
1389
- scrollLeft: e.scrollLeft,
1390
- scrollTop: e.scrollTop
1391
- } : {
1392
- scrollLeft: e.scrollX,
1393
- scrollTop: e.scrollY
1394
- };
1395
- }
1396
- function se(e) {
1397
- if (Ce(e) === "html")
1398
- return e;
1399
- const t = (
1400
- // Step into the shadow DOM of the parent of a slotted node.
1401
- e.assignedSlot || // DOM Element detected.
1402
- e.parentNode || // ShadowRoot detected.
1403
- rn(e) && e.host || // Fallback.
1404
- ee(e)
1405
- );
1406
- return rn(t) ? t.host : t;
1407
- }
1408
- function Tn(e) {
1409
- const t = se(e);
1410
- return ye(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) && Te(t) ? t : Tn(t);
1411
- }
1412
- function Ae(e, t, n) {
1413
- var r;
1414
- t === void 0 && (t = []), n === void 0 && (n = !0);
1415
- const o = Tn(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), c = K(o);
1416
- if (i) {
1417
- const s = Et(c);
1418
- return t.concat(c, c.visualViewport || [], Te(o) ? o : [], s && n ? Ae(s) : []);
1419
- }
1420
- return t.concat(o, Ae(o, [], n));
1421
- }
1422
- function Et(e) {
1423
- return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1424
- }
1425
- function In(e) {
1426
- const t = z(e);
1427
- let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1428
- const o = J(e), i = o ? e.offsetWidth : n, c = o ? e.offsetHeight : r, s = ze(n) !== i || ze(r) !== c;
1429
- return s && (n = i, r = c), {
1430
- width: n,
1431
- height: r,
1432
- $: s
1433
- };
1434
- }
1435
- function It(e) {
1436
- return G(e) ? e : e.contextElement;
1437
- }
1438
- function ve(e) {
1439
- const t = It(e);
1440
- if (!J(t))
1441
- return q(1);
1442
- const n = t.getBoundingClientRect(), {
1443
- width: r,
1444
- height: o,
1445
- $: i
1446
- } = In(t);
1447
- let c = (i ? ze(n.width) : n.width) / r, s = (i ? ze(n.height) : n.height) / o;
1448
- return (!c || !Number.isFinite(c)) && (c = 1), (!s || !Number.isFinite(s)) && (s = 1), {
1449
- x: c,
1450
- y: s
1451
- };
1452
- }
1453
- const yi = /* @__PURE__ */ q(0);
1454
- function _n(e) {
1455
- const t = K(e);
1456
- return !Tt() || !t.visualViewport ? yi : {
1457
- x: t.visualViewport.offsetLeft,
1458
- y: t.visualViewport.offsetTop
1459
- };
1460
- }
1461
- function wi(e, t, n) {
1462
- return t === void 0 && (t = !1), !n || t && n !== K(e) ? !1 : t;
1463
- }
1464
- function fe(e, t, n, r) {
1465
- t === void 0 && (t = !1), n === void 0 && (n = !1);
1466
- const o = e.getBoundingClientRect(), i = It(e);
1467
- let c = q(1);
1468
- t && (r ? G(r) && (c = ve(r)) : c = ve(e));
1469
- const s = wi(i, n, r) ? _n(i) : q(0);
1470
- let d = (o.left + s.x) / c.x, l = (o.top + s.y) / c.y, f = o.width / c.x, u = o.height / c.y;
1471
- if (i) {
1472
- const m = K(i), h = r && G(r) ? K(r) : r;
1473
- let g = m, p = Et(g);
1474
- for (; p && r && h !== g; ) {
1475
- const v = ve(p), y = p.getBoundingClientRect(), E = z(p), b = y.left + (p.clientLeft + parseFloat(E.paddingLeft)) * v.x, w = y.top + (p.clientTop + parseFloat(E.paddingTop)) * v.y;
1476
- d *= v.x, l *= v.y, f *= v.x, u *= v.y, d += b, l += w, g = K(p), p = Et(g);
1477
- }
1478
- }
1479
- return Xe({
1480
- width: f,
1481
- height: u,
1482
- x: d,
1483
- y: l
1484
- });
1485
- }
1486
- function rt(e, t) {
1487
- const n = nt(e).scrollLeft;
1488
- return t ? t.left + n : fe(ee(e)).left + n;
1489
- }
1490
- function Nn(e, t) {
1491
- const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - rt(e, n), o = n.top + t.scrollTop;
1492
- return {
1493
- x: r,
1494
- y: o
1495
- };
1496
- }
1497
- function bi(e) {
1498
- let {
1499
- elements: t,
1500
- rect: n,
1501
- offsetParent: r,
1502
- strategy: o
1503
- } = e;
1504
- const i = o === "fixed", c = ee(r), s = t ? tt(t.floating) : !1;
1505
- if (r === c || s && i)
1506
- return n;
1507
- let d = {
1508
- scrollLeft: 0,
1509
- scrollTop: 0
1510
- }, l = q(1);
1511
- const f = q(0), u = J(r);
1512
- if ((u || !u && !i) && ((Ce(r) !== "body" || Te(c)) && (d = nt(r)), J(r))) {
1513
- const h = fe(r);
1514
- l = ve(r), f.x = h.x + r.clientLeft, f.y = h.y + r.clientTop;
1515
- }
1516
- const m = c && !u && !i ? Nn(c, d) : q(0);
1517
- return {
1518
- width: n.width * l.x,
1519
- height: n.height * l.y,
1520
- x: n.x * l.x - d.scrollLeft * l.x + f.x + m.x,
1521
- y: n.y * l.y - d.scrollTop * l.y + f.y + m.y
1522
- };
1523
- }
1524
- function Ci(e) {
1525
- return Array.from(e.getClientRects());
1526
- }
1527
- function Ei(e) {
1528
- const t = ee(e), n = nt(e), r = e.ownerDocument.body, o = H(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = H(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1529
- let c = -n.scrollLeft + rt(e);
1530
- const s = -n.scrollTop;
1531
- return z(r).direction === "rtl" && (c += H(t.clientWidth, r.clientWidth) - o), {
1532
- width: o,
1533
- height: i,
1534
- x: c,
1535
- y: s
1536
- };
1537
- }
1538
- const on = 25;
1539
- function xi(e, t) {
1540
- const n = K(e), r = ee(e), o = n.visualViewport;
1541
- let i = r.clientWidth, c = r.clientHeight, s = 0, d = 0;
1542
- if (o) {
1543
- i = o.width, c = o.height;
1544
- const f = Tt();
1545
- (!f || f && t === "fixed") && (s = o.offsetLeft, d = o.offsetTop);
1546
- }
1547
- const l = rt(r);
1548
- if (l <= 0) {
1549
- const f = r.ownerDocument, u = f.body, m = getComputedStyle(u), h = f.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, g = Math.abs(r.clientWidth - u.clientWidth - h);
1550
- g <= on && (i -= g);
1551
- } else l <= on && (i += l);
1552
- return {
1553
- width: i,
1554
- height: c,
1555
- x: s,
1556
- y: d
1557
- };
1558
- }
1559
- const Si = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1560
- function Ri(e, t) {
1561
- const n = fe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = J(e) ? ve(e) : q(1), c = e.clientWidth * i.x, s = e.clientHeight * i.y, d = o * i.x, l = r * i.y;
1562
- return {
1563
- width: c,
1564
- height: s,
1565
- x: d,
1566
- y: l
1567
- };
1568
- }
1569
- function sn(e, t, n) {
1570
- let r;
1571
- if (t === "viewport")
1572
- r = xi(e, n);
1573
- else if (t === "document")
1574
- r = Ei(ee(e));
1575
- else if (G(t))
1576
- r = Ri(t, n);
1577
- else {
1578
- const o = _n(e);
1579
- r = {
1580
- x: t.x - o.x,
1581
- y: t.y - o.y,
1582
- width: t.width,
1583
- height: t.height
1584
- };
1585
- }
1586
- return Xe(r);
1587
- }
1588
- function Dn(e, t) {
1589
- const n = se(e);
1590
- return n === t || !G(n) || ye(n) ? !1 : z(n).position === "fixed" || Dn(n, t);
1591
- }
1592
- function Ai(e, t) {
1593
- const n = t.get(e);
1594
- if (n)
1595
- return n;
1596
- let r = Ae(e, [], !1).filter((s) => G(s) && Ce(s) !== "body"), o = null;
1597
- const i = z(e).position === "fixed";
1598
- let c = i ? se(e) : e;
1599
- for (; G(c) && !ye(c); ) {
1600
- const s = z(c), d = Ot(c);
1601
- !d && s.position === "fixed" && (o = null), (i ? !d && !o : !d && s.position === "static" && !!o && Si.has(o.position) || Te(c) && !d && Dn(e, c)) ? r = r.filter((f) => f !== c) : o = s, c = se(c);
1602
- }
1603
- return t.set(e, r), r;
1604
- }
1605
- function Pi(e) {
1606
- let {
1607
- element: t,
1608
- boundary: n,
1609
- rootBoundary: r,
1610
- strategy: o
1611
- } = e;
1612
- const c = [...n === "clippingAncestors" ? tt(t) ? [] : Ai(t, this._c) : [].concat(n), r], s = c[0], d = c.reduce((l, f) => {
1613
- const u = sn(t, f, o);
1614
- return l.top = H(u.top, l.top), l.right = ie(u.right, l.right), l.bottom = ie(u.bottom, l.bottom), l.left = H(u.left, l.left), l;
1615
- }, sn(t, s, o));
1616
- return {
1617
- width: d.right - d.left,
1618
- height: d.bottom - d.top,
1619
- x: d.left,
1620
- y: d.top
1621
- };
1622
- }
1623
- function Mi(e) {
1624
- const {
1625
- width: t,
1626
- height: n
1627
- } = In(e);
1628
- return {
1629
- width: t,
1630
- height: n
1631
- };
1632
- }
1633
- function Oi(e, t, n) {
1634
- const r = J(t), o = ee(t), i = n === "fixed", c = fe(e, !0, i, t);
1635
- let s = {
1636
- scrollLeft: 0,
1637
- scrollTop: 0
1638
- };
1639
- const d = q(0);
1640
- function l() {
1641
- d.x = rt(o);
1642
- }
1643
- if (r || !r && !i)
1644
- if ((Ce(t) !== "body" || Te(o)) && (s = nt(t)), r) {
1645
- const h = fe(t, !0, i, t);
1646
- d.x = h.x + t.clientLeft, d.y = h.y + t.clientTop;
1647
- } else o && l();
1648
- i && !r && o && l();
1649
- const f = o && !r && !i ? Nn(o, s) : q(0), u = c.left + s.scrollLeft - d.x - f.x, m = c.top + s.scrollTop - d.y - f.y;
1650
- return {
1651
- x: u,
1652
- y: m,
1653
- width: c.width,
1654
- height: c.height
1655
- };
1656
- }
1657
- function ut(e) {
1658
- return z(e).position === "static";
1659
- }
1660
- function cn(e, t) {
1661
- if (!J(e) || z(e).position === "fixed")
1662
- return null;
1663
- if (t)
1664
- return t(e);
1665
- let n = e.offsetParent;
1666
- return ee(e) === n && (n = n.ownerDocument.body), n;
1667
- }
1668
- function Ln(e, t) {
1669
- const n = K(e);
1670
- if (tt(e))
1671
- return n;
1672
- if (!J(e)) {
1673
- let o = se(e);
1674
- for (; o && !ye(o); ) {
1675
- if (G(o) && !ut(o))
1676
- return o;
1677
- o = se(o);
1678
- }
1679
- return n;
1680
- }
1681
- let r = cn(e, t);
1682
- for (; r && fi(r) && ut(r); )
1683
- r = cn(r, t);
1684
- return r && ye(r) && ut(r) && !Ot(r) ? n : r || vi(e) || n;
1685
- }
1686
- const Ti = async function(e) {
1687
- const t = this.getOffsetParent || Ln, n = this.getDimensions, r = await n(e.floating);
1688
- return {
1689
- reference: Oi(e.reference, await t(e.floating), e.strategy),
1690
- floating: {
1691
- x: 0,
1692
- y: 0,
1693
- width: r.width,
1694
- height: r.height
1695
- }
1696
- };
1697
- };
1698
- function Ii(e) {
1699
- return z(e).direction === "rtl";
1700
- }
1701
- const _i = {
1702
- convertOffsetParentRelativeRectToViewportRelativeRect: bi,
1703
- getDocumentElement: ee,
1704
- getClippingRect: Pi,
1705
- getOffsetParent: Ln,
1706
- getElementRects: Ti,
1707
- getClientRects: Ci,
1708
- getDimensions: Mi,
1709
- getScale: ve,
1710
- isElement: G,
1711
- isRTL: Ii
1712
- };
1713
- function Fn(e, t) {
1714
- return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1715
- }
1716
- function Ni(e, t) {
1717
- let n = null, r;
1718
- const o = ee(e);
1719
- function i() {
1720
- var s;
1721
- clearTimeout(r), (s = n) == null || s.disconnect(), n = null;
1722
- }
1723
- function c(s, d) {
1724
- s === void 0 && (s = !1), d === void 0 && (d = 1), i();
1725
- const l = e.getBoundingClientRect(), {
1726
- left: f,
1727
- top: u,
1728
- width: m,
1729
- height: h
1730
- } = l;
1731
- if (s || t(), !m || !h)
1732
- return;
1733
- const g = $e(u), p = $e(o.clientWidth - (f + m)), v = $e(o.clientHeight - (u + h)), y = $e(f), b = {
1734
- rootMargin: -g + "px " + -p + "px " + -v + "px " + -y + "px",
1735
- threshold: H(0, ie(1, d)) || 1
1736
- };
1737
- let w = !0;
1738
- function S(A) {
1739
- const x = A[0].intersectionRatio;
1740
- if (x !== d) {
1741
- if (!w)
1742
- return c();
1743
- x ? c(!1, x) : r = setTimeout(() => {
1744
- c(!1, 1e-7);
1745
- }, 1e3);
1746
- }
1747
- x === 1 && !Fn(l, e.getBoundingClientRect()) && c(), w = !1;
1748
- }
1749
- try {
1750
- n = new IntersectionObserver(S, {
1751
- ...b,
1752
- // Handle <iframe>s
1753
- root: o.ownerDocument
1754
- });
1755
- } catch {
1756
- n = new IntersectionObserver(S, b);
1757
- }
1758
- n.observe(e);
1759
- }
1760
- return c(!0), i;
1761
- }
1762
- function Di(e, t, n, r) {
1763
- r === void 0 && (r = {});
1764
- const {
1765
- ancestorScroll: o = !0,
1766
- ancestorResize: i = !0,
1767
- elementResize: c = typeof ResizeObserver == "function",
1768
- layoutShift: s = typeof IntersectionObserver == "function",
1769
- animationFrame: d = !1
1770
- } = r, l = It(e), f = o || i ? [...l ? Ae(l) : [], ...Ae(t)] : [];
1771
- f.forEach((y) => {
1772
- o && y.addEventListener("scroll", n, {
1773
- passive: !0
1774
- }), i && y.addEventListener("resize", n);
1775
- });
1776
- const u = l && s ? Ni(l, n) : null;
1777
- let m = -1, h = null;
1778
- c && (h = new ResizeObserver((y) => {
1779
- let [E] = y;
1780
- E && E.target === l && h && (h.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1781
- var b;
1782
- (b = h) == null || b.observe(t);
1783
- })), n();
1784
- }), l && !d && h.observe(l), h.observe(t));
1785
- let g, p = d ? fe(e) : null;
1786
- d && v();
1787
- function v() {
1788
- const y = fe(e);
1789
- p && !Fn(p, y) && n(), p = y, g = requestAnimationFrame(v);
1790
- }
1791
- return n(), () => {
1792
- var y;
1793
- f.forEach((E) => {
1794
- o && E.removeEventListener("scroll", n), i && E.removeEventListener("resize", n);
1795
- }), u?.(), (y = h) == null || y.disconnect(), h = null, d && cancelAnimationFrame(g);
1796
- };
1797
- }
1798
- const Li = ii, Fi = si, ki = ni, $i = ai, Wi = ri, an = ti, Bi = ci, Vi = (e, t, n) => {
1799
- const r = /* @__PURE__ */ new Map(), o = {
1800
- platform: _i,
1801
- ...n
1802
- }, i = {
1803
- ...o.platform,
1804
- _c: r
1805
- };
1806
- return ei(e, t, {
1807
- ...o,
1808
- platform: i
1809
- });
1810
- };
1811
- var Ui = typeof document < "u", Hi = function() {
1812
- }, Ke = Ui ? Br : Hi;
1813
- function Ze(e, t) {
1814
- if (e === t)
1815
- return !0;
1816
- if (typeof e != typeof t)
1817
- return !1;
1818
- if (typeof e == "function" && e.toString() === t.toString())
1819
- return !0;
1820
- let n, r, o;
1821
- if (e && t && typeof e == "object") {
1822
- if (Array.isArray(e)) {
1823
- if (n = e.length, n !== t.length) return !1;
1824
- for (r = n; r-- !== 0; )
1825
- if (!Ze(e[r], t[r]))
1826
- return !1;
1827
- return !0;
1828
- }
1829
- if (o = Object.keys(e), n = o.length, n !== Object.keys(t).length)
1830
- return !1;
1831
- for (r = n; r-- !== 0; )
1832
- if (!{}.hasOwnProperty.call(t, o[r]))
1833
- return !1;
1834
- for (r = n; r-- !== 0; ) {
1835
- const i = o[r];
1836
- if (!(i === "_owner" && e.$$typeof) && !Ze(e[i], t[i]))
1837
- return !1;
1838
- }
1839
- return !0;
1840
- }
1841
- return e !== e && t !== t;
1842
- }
1843
- function kn(e) {
1844
- return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1845
- }
1846
- function ln(e, t) {
1847
- const n = kn(e);
1848
- return Math.round(t * n) / n;
1849
- }
1850
- function ft(e) {
1851
- const t = a.useRef(e);
1852
- return Ke(() => {
1853
- t.current = e;
1854
- }), t;
1855
- }
1856
- function Ki(e) {
1857
- e === void 0 && (e = {});
1858
- const {
1859
- placement: t = "bottom",
1860
- strategy: n = "absolute",
1861
- middleware: r = [],
1862
- platform: o,
1863
- elements: {
1864
- reference: i,
1865
- floating: c
1866
- } = {},
1867
- transform: s = !0,
1868
- whileElementsMounted: d,
1869
- open: l
1870
- } = e, [f, u] = a.useState({
1871
- x: 0,
1872
- y: 0,
1873
- strategy: n,
1874
- placement: t,
1875
- middlewareData: {},
1876
- isPositioned: !1
1877
- }), [m, h] = a.useState(r);
1878
- Ze(m, r) || h(r);
1879
- const [g, p] = a.useState(null), [v, y] = a.useState(null), E = a.useCallback((M) => {
1880
- M !== A.current && (A.current = M, p(M));
1881
- }, []), b = a.useCallback((M) => {
1882
- M !== x.current && (x.current = M, y(M));
1883
- }, []), w = i || g, S = c || v, A = a.useRef(null), x = a.useRef(null), P = a.useRef(f), _ = d != null, O = ft(d), N = ft(o), L = ft(l), F = a.useCallback(() => {
1884
- if (!A.current || !x.current)
1885
- return;
1886
- const M = {
1887
- placement: t,
1888
- strategy: n,
1889
- middleware: m
1890
- };
1891
- N.current && (M.platform = N.current), Vi(A.current, x.current, M).then((R) => {
1892
- const B = {
1893
- ...R,
1894
- // The floating element's position may be recomputed while it's closed
1895
- // but still mounted (such as when transitioning out). To ensure
1896
- // `isPositioned` will be `false` initially on the next open, avoid
1897
- // setting it to `true` when `open === false` (must be specified).
1898
- isPositioned: L.current !== !1
1899
- };
1900
- D.current && !Ze(P.current, B) && (P.current = B, gn.flushSync(() => {
1901
- u(B);
1902
- }));
1903
- });
1904
- }, [m, t, n, N, L]);
1905
- Ke(() => {
1906
- l === !1 && P.current.isPositioned && (P.current.isPositioned = !1, u((M) => ({
1907
- ...M,
1908
- isPositioned: !1
1909
- })));
1910
- }, [l]);
1911
- const D = a.useRef(!1);
1912
- Ke(() => (D.current = !0, () => {
1913
- D.current = !1;
1914
- }), []), Ke(() => {
1915
- if (w && (A.current = w), S && (x.current = S), w && S) {
1916
- if (O.current)
1917
- return O.current(w, S, F);
1918
- F();
1919
- }
1920
- }, [w, S, F, O, _]);
1921
- const W = a.useMemo(() => ({
1922
- reference: A,
1923
- floating: x,
1924
- setReference: E,
1925
- setFloating: b
1926
- }), [E, b]), I = a.useMemo(() => ({
1927
- reference: w,
1928
- floating: S
1929
- }), [w, S]), k = a.useMemo(() => {
1930
- const M = {
1931
- position: n,
1932
- left: 0,
1933
- top: 0
1934
- };
1935
- if (!I.floating)
1936
- return M;
1937
- const R = ln(I.floating, f.x), B = ln(I.floating, f.y);
1938
- return s ? {
1939
- ...M,
1940
- transform: "translate(" + R + "px, " + B + "px)",
1941
- ...kn(I.floating) >= 1.5 && {
1942
- willChange: "transform"
1943
- }
1944
- } : {
1945
- position: n,
1946
- left: R,
1947
- top: B
1948
- };
1949
- }, [n, s, I.floating, f.x, f.y]);
1950
- return a.useMemo(() => ({
1951
- ...f,
1952
- update: F,
1953
- refs: W,
1954
- elements: I,
1955
- floatingStyles: k
1956
- }), [f, F, W, I, k]);
1957
- }
1958
- const ji = (e) => {
1959
- function t(n) {
1960
- return {}.hasOwnProperty.call(n, "current");
1961
- }
1962
- return {
1963
- name: "arrow",
1964
- options: e,
1965
- fn(n) {
1966
- const {
1967
- element: r,
1968
- padding: o
1969
- } = typeof e == "function" ? e(n) : e;
1970
- return r && t(r) ? r.current != null ? an({
1971
- element: r.current,
1972
- padding: o
1973
- }).fn(n) : {} : r ? an({
1974
- element: r,
1975
- padding: o
1976
- }).fn(n) : {};
1977
- }
1978
- };
1979
- }, Gi = (e, t) => ({
1980
- ...Li(e),
1981
- options: [e, t]
1982
- }), zi = (e, t) => ({
1983
- ...Fi(e),
1984
- options: [e, t]
1985
- }), Yi = (e, t) => ({
1986
- ...Bi(e),
1987
- options: [e, t]
1988
- }), Xi = (e, t) => ({
1989
- ...ki(e),
1990
- options: [e, t]
1991
- }), Zi = (e, t) => ({
1992
- ...$i(e),
1993
- options: [e, t]
1994
- }), qi = (e, t) => ({
1995
- ...Wi(e),
1996
- options: [e, t]
1997
- }), Qi = (e, t) => ({
1998
- ...ji(e),
1999
- options: [e, t]
2000
- });
2001
- var Ji = "Arrow", $n = a.forwardRef((e, t) => {
2002
- const { children: n, width: r = 10, height: o = 5, ...i } = e;
2003
- return /* @__PURE__ */ C(
2004
- U.svg,
2005
- {
2006
- ...i,
2007
- ref: t,
2008
- width: r,
2009
- height: o,
2010
- viewBox: "0 0 30 10",
2011
- preserveAspectRatio: "none",
2012
- children: e.asChild ? n : /* @__PURE__ */ C("polygon", { points: "0,0 30,0 15,10" })
2013
- }
2014
- );
2015
- });
2016
- $n.displayName = Ji;
2017
- var es = $n;
2018
- function ts(e) {
2019
- const [t, n] = a.useState(void 0);
2020
- return oe(() => {
2021
- if (e) {
2022
- n({ width: e.offsetWidth, height: e.offsetHeight });
2023
- const r = new ResizeObserver((o) => {
2024
- if (!Array.isArray(o) || !o.length)
2025
- return;
2026
- const i = o[0];
2027
- let c, s;
2028
- if ("borderBoxSize" in i) {
2029
- const d = i.borderBoxSize, l = Array.isArray(d) ? d[0] : d;
2030
- c = l.inlineSize, s = l.blockSize;
2031
- } else
2032
- c = e.offsetWidth, s = e.offsetHeight;
2033
- n({ width: c, height: s });
2034
- });
2035
- return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
2036
- } else
2037
- n(void 0);
2038
- }, [e]), t;
2039
- }
2040
- var _t = "Popper", [Wn, Bn] = Je(_t), [ns, Vn] = Wn(_t), Un = (e) => {
2041
- const { __scopePopper: t, children: n } = e, [r, o] = a.useState(null);
2042
- return /* @__PURE__ */ C(ns, { scope: t, anchor: r, onAnchorChange: o, children: n });
2043
- };
2044
- Un.displayName = _t;
2045
- var Hn = "PopperAnchor", Kn = a.forwardRef(
2046
- (e, t) => {
2047
- const { __scopePopper: n, virtualRef: r, ...o } = e, i = Vn(Hn, n), c = a.useRef(null), s = V(t, c), d = a.useRef(null);
2048
- return a.useEffect(() => {
2049
- const l = d.current;
2050
- d.current = r?.current || c.current, l !== d.current && i.onAnchorChange(d.current);
2051
- }), r ? null : /* @__PURE__ */ C(U.div, { ...o, ref: s });
2052
- }
2053
- );
2054
- Kn.displayName = Hn;
2055
- var Nt = "PopperContent", [rs, os] = Wn(Nt), jn = a.forwardRef(
2056
- (e, t) => {
2057
- const {
2058
- __scopePopper: n,
2059
- side: r = "bottom",
2060
- sideOffset: o = 0,
2061
- align: i = "center",
2062
- alignOffset: c = 0,
2063
- arrowPadding: s = 0,
2064
- avoidCollisions: d = !0,
2065
- collisionBoundary: l = [],
2066
- collisionPadding: f = 0,
2067
- sticky: u = "partial",
2068
- hideWhenDetached: m = !1,
2069
- updatePositionStrategy: h = "optimized",
2070
- onPlaced: g,
2071
- ...p
2072
- } = e, v = Vn(Nt, n), [y, E] = a.useState(null), b = V(t, ($) => E($)), [w, S] = a.useState(null), A = ts(w), x = A?.width ?? 0, P = A?.height ?? 0, _ = r + (i !== "center" ? "-" + i : ""), O = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, N = Array.isArray(l) ? l : [l], L = N.length > 0, F = {
2073
- padding: O,
2074
- boundary: N.filter(ss),
2075
- // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
2076
- altBoundary: L
2077
- }, { refs: D, floatingStyles: W, placement: I, isPositioned: k, middlewareData: M } = Ki({
2078
- // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2079
- strategy: "fixed",
2080
- placement: _,
2081
- whileElementsMounted: (...$) => Di(...$, {
2082
- animationFrame: h === "always"
2083
- }),
2084
- elements: {
2085
- reference: v.anchor
2086
- },
2087
- middleware: [
2088
- Gi({ mainAxis: o + P, alignmentAxis: c }),
2089
- d && zi({
2090
- mainAxis: !0,
2091
- crossAxis: !1,
2092
- limiter: u === "partial" ? Yi() : void 0,
2093
- ...F
2094
- }),
2095
- d && Xi({ ...F }),
2096
- Zi({
2097
- ...F,
2098
- apply: ({ elements: $, rects: Se, availableWidth: Fr, availableHeight: kr }) => {
2099
- const { width: $r, height: Wr } = Se.reference, ke = $.floating.style;
2100
- ke.setProperty("--radix-popper-available-width", `${Fr}px`), ke.setProperty("--radix-popper-available-height", `${kr}px`), ke.setProperty("--radix-popper-anchor-width", `${$r}px`), ke.setProperty("--radix-popper-anchor-height", `${Wr}px`);
2101
- }
2102
- }),
2103
- w && Qi({ element: w, padding: s }),
2104
- cs({ arrowWidth: x, arrowHeight: P }),
2105
- m && qi({ strategy: "referenceHidden", ...F })
2106
- ]
2107
- }), [R, B] = Yn(I), Y = Q(g);
2108
- oe(() => {
2109
- k && Y?.();
2110
- }, [k, Y]);
2111
- const ae = M.arrow?.x, Ee = M.arrow?.y, xe = M.arrow?.centerOffset !== 0, [Fe, le] = a.useState();
2112
- return oe(() => {
2113
- y && le(window.getComputedStyle(y).zIndex);
2114
- }, [y]), /* @__PURE__ */ C(
2115
- "div",
2116
- {
2117
- ref: D.setFloating,
2118
- "data-radix-popper-content-wrapper": "",
2119
- style: {
2120
- ...W,
2121
- transform: k ? W.transform : "translate(0, -200%)",
2122
- // keep off the page when measuring
2123
- minWidth: "max-content",
2124
- zIndex: Fe,
2125
- "--radix-popper-transform-origin": [
2126
- M.transformOrigin?.x,
2127
- M.transformOrigin?.y
2128
- ].join(" "),
2129
- // hide the content if using the hide middleware and should be hidden
2130
- // set visibility to hidden and disable pointer events so the UI behaves
2131
- // as if the PopperContent isn't there at all
2132
- ...M.hide?.referenceHidden && {
2133
- visibility: "hidden",
2134
- pointerEvents: "none"
2135
- }
2136
- },
2137
- dir: e.dir,
2138
- children: /* @__PURE__ */ C(
2139
- rs,
2140
- {
2141
- scope: n,
2142
- placedSide: R,
2143
- onArrowChange: S,
2144
- arrowX: ae,
2145
- arrowY: Ee,
2146
- shouldHideArrow: xe,
2147
- children: /* @__PURE__ */ C(
2148
- U.div,
2149
- {
2150
- "data-side": R,
2151
- "data-align": B,
2152
- ...p,
2153
- ref: b,
2154
- style: {
2155
- ...p.style,
2156
- // if the PopperContent hasn't been placed yet (not all measurements done)
2157
- // we prevent animations so that users's animation don't kick in too early referring wrong sides
2158
- animation: k ? void 0 : "none"
2159
- }
2160
- }
2161
- )
2162
- }
2163
- )
2164
- }
2165
- );
2166
- }
2167
- );
2168
- jn.displayName = Nt;
2169
- var Gn = "PopperArrow", is = {
2170
- top: "bottom",
2171
- right: "left",
2172
- bottom: "top",
2173
- left: "right"
2174
- }, zn = a.forwardRef(function(t, n) {
2175
- const { __scopePopper: r, ...o } = t, i = os(Gn, r), c = is[i.placedSide];
2176
- return (
2177
- // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
2178
- // doesn't report size as we'd expect on SVG elements.
2179
- // it reports their bounding box which is effectively the largest path inside the SVG.
2180
- /* @__PURE__ */ C(
2181
- "span",
2182
- {
2183
- ref: i.onArrowChange,
2184
- style: {
2185
- position: "absolute",
2186
- left: i.arrowX,
2187
- top: i.arrowY,
2188
- [c]: 0,
2189
- transformOrigin: {
2190
- top: "",
2191
- right: "0 0",
2192
- bottom: "center 0",
2193
- left: "100% 0"
2194
- }[i.placedSide],
2195
- transform: {
2196
- top: "translateY(100%)",
2197
- right: "translateY(50%) rotate(90deg) translateX(-50%)",
2198
- bottom: "rotate(180deg)",
2199
- left: "translateY(50%) rotate(-90deg) translateX(50%)"
2200
- }[i.placedSide],
2201
- visibility: i.shouldHideArrow ? "hidden" : void 0
2202
- },
2203
- children: /* @__PURE__ */ C(
2204
- es,
2205
- {
2206
- ...o,
2207
- ref: n,
2208
- style: {
2209
- ...o.style,
2210
- // ensures the element can be measured correctly (mostly for if SVG)
2211
- display: "block"
2212
- }
2213
- }
2214
- )
2215
- }
2216
- )
2217
- );
2218
- });
2219
- zn.displayName = Gn;
2220
- function ss(e) {
2221
- return e !== null;
2222
- }
2223
- var cs = (e) => ({
2224
- name: "transformOrigin",
2225
- options: e,
2226
- fn(t) {
2227
- const { placement: n, rects: r, middlewareData: o } = t, c = o.arrow?.centerOffset !== 0, s = c ? 0 : e.arrowWidth, d = c ? 0 : e.arrowHeight, [l, f] = Yn(n), u = { start: "0%", center: "50%", end: "100%" }[f], m = (o.arrow?.x ?? 0) + s / 2, h = (o.arrow?.y ?? 0) + d / 2;
2228
- let g = "", p = "";
2229
- return l === "bottom" ? (g = c ? u : `${m}px`, p = `${-d}px`) : l === "top" ? (g = c ? u : `${m}px`, p = `${r.floating.height + d}px`) : l === "right" ? (g = `${-d}px`, p = c ? u : `${h}px`) : l === "left" && (g = `${r.floating.width + d}px`, p = c ? u : `${h}px`), { data: { x: g, y: p } };
2230
- }
2231
- });
2232
- function Yn(e) {
2233
- const [t, n = "center"] = e.split("-");
2234
- return [t, n];
2235
- }
2236
- var Xn = Un, as = Kn, ls = jn, us = zn, fs = "Portal", Zn = a.forwardRef((e, t) => {
2237
- const { container: n, ...r } = e, [o, i] = a.useState(!1);
2238
- oe(() => i(!0), []);
2239
- const c = n || o && globalThis?.document?.body;
2240
- return c ? jr.createPortal(/* @__PURE__ */ C(U.div, { ...r, ref: t }), c) : null;
2241
- });
2242
- Zn.displayName = fs;
2243
- function ds(e, t) {
2244
- return a.useReducer((n, r) => t[n][r] ?? n, e);
2245
- }
2246
- var Ie = (e) => {
2247
- const { present: t, children: n } = e, r = ps(t), o = typeof n == "function" ? n({ present: r.isPresent }) : a.Children.only(n), i = V(r.ref, ms(o));
2248
- return typeof n == "function" || r.isPresent ? a.cloneElement(o, { ref: i }) : null;
2249
- };
2250
- Ie.displayName = "Presence";
2251
- function ps(e) {
2252
- const [t, n] = a.useState(), r = a.useRef(null), o = a.useRef(e), i = a.useRef("none"), c = e ? "mounted" : "unmounted", [s, d] = ds(c, {
2253
- mounted: {
2254
- UNMOUNT: "unmounted",
2255
- ANIMATION_OUT: "unmountSuspended"
2256
- },
2257
- unmountSuspended: {
2258
- MOUNT: "mounted",
2259
- ANIMATION_END: "unmounted"
2260
- },
2261
- unmounted: {
2262
- MOUNT: "mounted"
2263
- }
2264
- });
2265
- return a.useEffect(() => {
2266
- const l = We(r.current);
2267
- i.current = s === "mounted" ? l : "none";
2268
- }, [s]), oe(() => {
2269
- const l = r.current, f = o.current;
2270
- if (f !== e) {
2271
- const m = i.current, h = We(l);
2272
- e ? d("MOUNT") : h === "none" || l?.display === "none" ? d("UNMOUNT") : d(f && m !== h ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
2273
- }
2274
- }, [e, d]), oe(() => {
2275
- if (t) {
2276
- let l;
2277
- const f = t.ownerDocument.defaultView ?? window, u = (h) => {
2278
- const p = We(r.current).includes(CSS.escape(h.animationName));
2279
- if (h.target === t && p && (d("ANIMATION_END"), !o.current)) {
2280
- const v = t.style.animationFillMode;
2281
- t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
2282
- t.style.animationFillMode === "forwards" && (t.style.animationFillMode = v);
2283
- });
2284
- }
2285
- }, m = (h) => {
2286
- h.target === t && (i.current = We(r.current));
2287
- };
2288
- return t.addEventListener("animationstart", m), t.addEventListener("animationcancel", u), t.addEventListener("animationend", u), () => {
2289
- f.clearTimeout(l), t.removeEventListener("animationstart", m), t.removeEventListener("animationcancel", u), t.removeEventListener("animationend", u);
2290
- };
2291
- } else
2292
- d("ANIMATION_END");
2293
- }, [t, d]), {
2294
- isPresent: ["mounted", "unmountSuspended"].includes(s),
2295
- ref: a.useCallback((l) => {
2296
- r.current = l ? getComputedStyle(l) : null, n(l);
2297
- }, [])
2298
- };
2299
- }
2300
- function We(e) {
2301
- return e?.animationName || "none";
2302
- }
2303
- function ms(e) {
2304
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
2305
- return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2306
- }
2307
- var dt = "rovingFocusGroup.onEntryFocus", hs = { bubbles: !1, cancelable: !0 }, _e = "RovingFocusGroup", [xt, qn, vs] = bn(_e), [gs, Qn] = Je(
2308
- _e,
2309
- [vs]
2310
- ), [ys, ws] = gs(_e), Jn = a.forwardRef(
2311
- (e, t) => /* @__PURE__ */ C(xt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ C(xt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ C(bs, { ...e, ref: t }) }) })
2312
- );
2313
- Jn.displayName = _e;
2314
- var bs = a.forwardRef((e, t) => {
2315
- const {
2316
- __scopeRovingFocusGroup: n,
2317
- orientation: r,
2318
- loop: o = !1,
2319
- dir: i,
2320
- currentTabStopId: c,
2321
- defaultCurrentTabStopId: s,
2322
- onCurrentTabStopIdChange: d,
2323
- onEntryFocus: l,
2324
- preventScrollOnEntryFocus: f = !1,
2325
- ...u
2326
- } = e, m = a.useRef(null), h = V(t, m), g = Cn(i), [p, v] = co({
2327
- prop: c,
2328
- defaultProp: s ?? null,
2329
- onChange: d,
2330
- caller: _e
2331
- }), [y, E] = a.useState(!1), b = Q(l), w = qn(n), S = a.useRef(!1), [A, x] = a.useState(0);
2332
- return a.useEffect(() => {
2333
- const P = m.current;
2334
- if (P)
2335
- return P.addEventListener(dt, b), () => P.removeEventListener(dt, b);
2336
- }, [b]), /* @__PURE__ */ C(
2337
- ys,
2338
- {
2339
- scope: n,
2340
- orientation: r,
2341
- dir: g,
2342
- loop: o,
2343
- currentTabStopId: p,
2344
- onItemFocus: a.useCallback(
2345
- (P) => v(P),
2346
- [v]
2347
- ),
2348
- onItemShiftTab: a.useCallback(() => E(!0), []),
2349
- onFocusableItemAdd: a.useCallback(
2350
- () => x((P) => P + 1),
2351
- []
2352
- ),
2353
- onFocusableItemRemove: a.useCallback(
2354
- () => x((P) => P - 1),
2355
- []
2356
- ),
2357
- children: /* @__PURE__ */ C(
2358
- U.div,
2359
- {
2360
- tabIndex: y || A === 0 ? -1 : 0,
2361
- "data-orientation": r,
2362
- ...u,
2363
- ref: h,
2364
- style: { outline: "none", ...e.style },
2365
- onMouseDown: T(e.onMouseDown, () => {
2366
- S.current = !0;
2367
- }),
2368
- onFocus: T(e.onFocus, (P) => {
2369
- const _ = !S.current;
2370
- if (P.target === P.currentTarget && _ && !y) {
2371
- const O = new CustomEvent(dt, hs);
2372
- if (P.currentTarget.dispatchEvent(O), !O.defaultPrevented) {
2373
- const N = w().filter((I) => I.focusable), L = N.find((I) => I.active), F = N.find((I) => I.id === p), W = [L, F, ...N].filter(
2374
- Boolean
2375
- ).map((I) => I.ref.current);
2376
- nr(W, f);
2377
- }
2378
- }
2379
- S.current = !1;
2380
- }),
2381
- onBlur: T(e.onBlur, () => E(!1))
2382
- }
2383
- )
2384
- }
2385
- );
2386
- }), er = "RovingFocusGroupItem", tr = a.forwardRef(
2387
- (e, t) => {
2388
- const {
2389
- __scopeRovingFocusGroup: n,
2390
- focusable: r = !0,
2391
- active: o = !1,
2392
- tabStopId: i,
2393
- children: c,
2394
- ...s
2395
- } = e, d = wt(), l = i || d, f = ws(er, n), u = f.currentTabStopId === l, m = qn(n), { onFocusableItemAdd: h, onFocusableItemRemove: g, currentTabStopId: p } = f;
2396
- return a.useEffect(() => {
2397
- if (r)
2398
- return h(), () => g();
2399
- }, [r, h, g]), /* @__PURE__ */ C(
2400
- xt.ItemSlot,
2401
- {
2402
- scope: n,
2403
- id: l,
2404
- focusable: r,
2405
- active: o,
2406
- children: /* @__PURE__ */ C(
2407
- U.span,
2408
- {
2409
- tabIndex: u ? 0 : -1,
2410
- "data-orientation": f.orientation,
2411
- ...s,
2412
- ref: t,
2413
- onMouseDown: T(e.onMouseDown, (v) => {
2414
- r ? f.onItemFocus(l) : v.preventDefault();
2415
- }),
2416
- onFocus: T(e.onFocus, () => f.onItemFocus(l)),
2417
- onKeyDown: T(e.onKeyDown, (v) => {
2418
- if (v.key === "Tab" && v.shiftKey) {
2419
- f.onItemShiftTab();
2420
- return;
2421
- }
2422
- if (v.target !== v.currentTarget) return;
2423
- const y = xs(v, f.orientation, f.dir);
2424
- if (y !== void 0) {
2425
- if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
2426
- v.preventDefault();
2427
- let b = m().filter((w) => w.focusable).map((w) => w.ref.current);
2428
- if (y === "last") b.reverse();
2429
- else if (y === "prev" || y === "next") {
2430
- y === "prev" && b.reverse();
2431
- const w = b.indexOf(v.currentTarget);
2432
- b = f.loop ? Ss(b, w + 1) : b.slice(w + 1);
2433
- }
2434
- setTimeout(() => nr(b));
2435
- }
2436
- }),
2437
- children: typeof c == "function" ? c({ isCurrentTabStop: u, hasTabStop: p != null }) : c
2438
- }
2439
- )
2440
- }
2441
- );
2442
- }
2443
- );
2444
- tr.displayName = er;
2445
- var Cs = {
2446
- ArrowLeft: "prev",
2447
- ArrowUp: "prev",
2448
- ArrowRight: "next",
2449
- ArrowDown: "next",
2450
- PageUp: "first",
2451
- Home: "first",
2452
- PageDown: "last",
2453
- End: "last"
2454
- };
2455
- function Es(e, t) {
2456
- return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
2457
- }
2458
- function xs(e, t, n) {
2459
- const r = Es(e.key, n);
2460
- if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
2461
- return Cs[r];
2462
- }
2463
- function nr(e, t = !1) {
2464
- const n = document.activeElement;
2465
- for (const r of e)
2466
- if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
2467
- }
2468
- function Ss(e, t) {
2469
- return e.map((n, r) => e[(t + r) % e.length]);
2470
- }
2471
- var Rs = Jn, As = tr;
2472
- // @__NO_SIDE_EFFECTS__
2473
- function Ps(e) {
2474
- const t = /* @__PURE__ */ Ms(e), n = a.forwardRef((r, o) => {
2475
- const { children: i, ...c } = r, s = a.Children.toArray(i), d = s.find(Ts);
2476
- if (d) {
2477
- const l = d.props.children, f = s.map((u) => u === d ? a.Children.count(l) > 1 ? a.Children.only(null) : a.isValidElement(l) ? l.props.children : null : u);
2478
- return /* @__PURE__ */ C(t, { ...c, ref: o, children: a.isValidElement(l) ? a.cloneElement(l, void 0, f) : null });
2479
- }
2480
- return /* @__PURE__ */ C(t, { ...c, ref: o, children: i });
2481
- });
2482
- return n.displayName = `${e}.Slot`, n;
2483
- }
2484
- // @__NO_SIDE_EFFECTS__
2485
- function Ms(e) {
2486
- const t = a.forwardRef((n, r) => {
2487
- const { children: o, ...i } = n;
2488
- if (a.isValidElement(o)) {
2489
- const c = _s(o), s = Is(i, o.props);
2490
- return o.type !== a.Fragment && (s.ref = r ? Oe(r, c) : c), a.cloneElement(o, s);
2491
- }
2492
- return a.Children.count(o) > 1 ? a.Children.only(null) : null;
2493
- });
2494
- return t.displayName = `${e}.SlotClone`, t;
2495
- }
2496
- var Os = /* @__PURE__ */ Symbol("radix.slottable");
2497
- function Ts(e) {
2498
- return a.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Os;
2499
- }
2500
- function Is(e, t) {
2501
- const n = { ...t };
2502
- for (const r in t) {
2503
- const o = e[r], i = t[r];
2504
- /^on[A-Z]/.test(r) ? o && i ? n[r] = (...s) => {
2505
- const d = i(...s);
2506
- return o(...s), d;
2507
- } : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...i } : r === "className" && (n[r] = [o, i].filter(Boolean).join(" "));
2508
- }
2509
- return { ...e, ...n };
2510
- }
2511
- function _s(e) {
2512
- let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
2513
- return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2514
- }
2515
- var Ns = function(e) {
2516
- if (typeof document > "u")
2517
- return null;
2518
- var t = Array.isArray(e) ? e[0] : e;
2519
- return t.ownerDocument.body;
2520
- }, pe = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Ve = {}, pt = 0, rr = function(e) {
2521
- return e && (e.host || rr(e.parentNode));
2522
- }, Ds = function(e, t) {
2523
- return t.map(function(n) {
2524
- if (e.contains(n))
2525
- return n;
2526
- var r = rr(n);
2527
- return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
2528
- }).filter(function(n) {
2529
- return !!n;
2530
- });
2531
- }, Ls = function(e, t, n, r) {
2532
- var o = Ds(t, Array.isArray(e) ? e : [e]);
2533
- Ve[n] || (Ve[n] = /* @__PURE__ */ new WeakMap());
2534
- var i = Ve[n], c = [], s = /* @__PURE__ */ new Set(), d = new Set(o), l = function(u) {
2535
- !u || s.has(u) || (s.add(u), l(u.parentNode));
2536
- };
2537
- o.forEach(l);
2538
- var f = function(u) {
2539
- !u || d.has(u) || Array.prototype.forEach.call(u.children, function(m) {
2540
- if (s.has(m))
2541
- f(m);
2542
- else
2543
- try {
2544
- var h = m.getAttribute(r), g = h !== null && h !== "false", p = (pe.get(m) || 0) + 1, v = (i.get(m) || 0) + 1;
2545
- pe.set(m, p), i.set(m, v), c.push(m), p === 1 && g && Be.set(m, !0), v === 1 && m.setAttribute(n, "true"), g || m.setAttribute(r, "true");
2546
- } catch (y) {
2547
- console.error("aria-hidden: cannot operate on ", m, y);
2548
- }
2549
- });
2550
- };
2551
- return f(t), s.clear(), pt++, function() {
2552
- c.forEach(function(u) {
2553
- var m = pe.get(u) - 1, h = i.get(u) - 1;
2554
- pe.set(u, m), i.set(u, h), m || (Be.has(u) || u.removeAttribute(r), Be.delete(u)), h || u.removeAttribute(n);
2555
- }), pt--, pt || (pe = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Ve = {});
2556
- };
2557
- }, Fs = function(e, t, n) {
2558
- n === void 0 && (n = "data-aria-hidden");
2559
- var r = Array.from(Array.isArray(e) ? e : [e]), o = Ns(e);
2560
- return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Ls(r, o, n, "aria-hidden")) : function() {
2561
- return null;
2562
- };
2563
- }, X = function() {
2564
- return X = Object.assign || function(t) {
2565
- for (var n, r = 1, o = arguments.length; r < o; r++) {
2566
- n = arguments[r];
2567
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
2568
- }
2569
- return t;
2570
- }, X.apply(this, arguments);
2571
- };
2572
- function or(e, t) {
2573
- var n = {};
2574
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
2575
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
2576
- for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
2577
- t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
2578
- return n;
2579
- }
2580
- function ks(e, t, n) {
2581
- if (n || arguments.length === 2) for (var r = 0, o = t.length, i; r < o; r++)
2582
- (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
2583
- return e.concat(i || Array.prototype.slice.call(t));
2584
- }
2585
- var je = "right-scroll-bar-position", Ge = "width-before-scroll-bar", $s = "with-scroll-bars-hidden", Ws = "--removed-body-scroll-bar-size";
2586
- function mt(e, t) {
2587
- return typeof e == "function" ? e(t) : e && (e.current = t), e;
2588
- }
2589
- function Bs(e, t) {
2590
- var n = Vr(function() {
2591
- return {
2592
- // value
2593
- value: e,
2594
- // last callback
2595
- callback: t,
2596
- // "memoized" public interface
2597
- facade: {
2598
- get current() {
2599
- return n.value;
2600
- },
2601
- set current(r) {
2602
- var o = n.value;
2603
- o !== r && (n.value = r, n.callback(r, o));
2604
- }
2605
- }
2606
- };
2607
- })[0];
2608
- return n.callback = t, n.facade;
2609
- }
2610
- var Vs = typeof window < "u" ? a.useLayoutEffect : a.useEffect, un = /* @__PURE__ */ new WeakMap();
2611
- function Us(e, t) {
2612
- var n = Bs(null, function(r) {
2613
- return e.forEach(function(o) {
2614
- return mt(o, r);
2615
- });
2616
- });
2617
- return Vs(function() {
2618
- var r = un.get(n);
2619
- if (r) {
2620
- var o = new Set(r), i = new Set(e), c = n.current;
2621
- o.forEach(function(s) {
2622
- i.has(s) || mt(s, null);
2623
- }), i.forEach(function(s) {
2624
- o.has(s) || mt(s, c);
2625
- });
2626
- }
2627
- un.set(n, e);
2628
- }, [e]), n;
2629
- }
2630
- function Hs(e) {
2631
- return e;
2632
- }
2633
- function Ks(e, t) {
2634
- t === void 0 && (t = Hs);
2635
- var n = [], r = !1, o = {
2636
- read: function() {
2637
- if (r)
2638
- throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
2639
- return n.length ? n[n.length - 1] : e;
2640
- },
2641
- useMedium: function(i) {
2642
- var c = t(i, r);
2643
- return n.push(c), function() {
2644
- n = n.filter(function(s) {
2645
- return s !== c;
2646
- });
2647
- };
2648
- },
2649
- assignSyncMedium: function(i) {
2650
- for (r = !0; n.length; ) {
2651
- var c = n;
2652
- n = [], c.forEach(i);
2653
- }
2654
- n = {
2655
- push: function(s) {
2656
- return i(s);
2657
- },
2658
- filter: function() {
2659
- return n;
2660
- }
2661
- };
2662
- },
2663
- assignMedium: function(i) {
2664
- r = !0;
2665
- var c = [];
2666
- if (n.length) {
2667
- var s = n;
2668
- n = [], s.forEach(i), c = n;
2669
- }
2670
- var d = function() {
2671
- var f = c;
2672
- c = [], f.forEach(i);
2673
- }, l = function() {
2674
- return Promise.resolve().then(d);
2675
- };
2676
- l(), n = {
2677
- push: function(f) {
2678
- c.push(f), l();
2679
- },
2680
- filter: function(f) {
2681
- return c = c.filter(f), n;
2682
- }
2683
- };
2684
- }
2685
- };
2686
- return o;
2687
- }
2688
- function js(e) {
2689
- e === void 0 && (e = {});
2690
- var t = Ks(null);
2691
- return t.options = X({ async: !0, ssr: !1 }, e), t;
2692
- }
2693
- var ir = function(e) {
2694
- var t = e.sideCar, n = or(e, ["sideCar"]);
2695
- if (!t)
2696
- throw new Error("Sidecar: please provide `sideCar` property to import the right car");
2697
- var r = t.read();
2698
- if (!r)
2699
- throw new Error("Sidecar medium not found");
2700
- return a.createElement(r, X({}, n));
2701
- };
2702
- ir.isSideCarExport = !0;
2703
- function Gs(e, t) {
2704
- return e.useMedium(t), ir;
2705
- }
2706
- var sr = js(), ht = function() {
2707
- }, ot = a.forwardRef(function(e, t) {
2708
- var n = a.useRef(null), r = a.useState({
2709
- onScrollCapture: ht,
2710
- onWheelCapture: ht,
2711
- onTouchMoveCapture: ht
2712
- }), o = r[0], i = r[1], c = e.forwardProps, s = e.children, d = e.className, l = e.removeScrollBar, f = e.enabled, u = e.shards, m = e.sideCar, h = e.noRelative, g = e.noIsolation, p = e.inert, v = e.allowPinchZoom, y = e.as, E = y === void 0 ? "div" : y, b = e.gapMode, w = or(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = m, A = Us([n, t]), x = X(X({}, w), o);
2713
- return a.createElement(
2714
- a.Fragment,
2715
- null,
2716
- f && a.createElement(S, { sideCar: sr, removeScrollBar: l, shards: u, noRelative: h, noIsolation: g, inert: p, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: b }),
2717
- c ? a.cloneElement(a.Children.only(s), X(X({}, x), { ref: A })) : a.createElement(E, X({}, x, { className: d, ref: A }), s)
2718
- );
2719
- });
2720
- ot.defaultProps = {
2721
- enabled: !0,
2722
- removeScrollBar: !0,
2723
- inert: !1
2724
- };
2725
- ot.classNames = {
2726
- fullWidth: Ge,
2727
- zeroRight: je
2728
- };
2729
- var zs = function() {
2730
- if (typeof __webpack_nonce__ < "u")
2731
- return __webpack_nonce__;
2732
- };
2733
- function Ys() {
2734
- if (!document)
2735
- return null;
2736
- var e = document.createElement("style");
2737
- e.type = "text/css";
2738
- var t = zs();
2739
- return t && e.setAttribute("nonce", t), e;
2740
- }
2741
- function Xs(e, t) {
2742
- e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
2743
- }
2744
- function Zs(e) {
2745
- var t = document.head || document.getElementsByTagName("head")[0];
2746
- t.appendChild(e);
2747
- }
2748
- var qs = function() {
2749
- var e = 0, t = null;
2750
- return {
2751
- add: function(n) {
2752
- e == 0 && (t = Ys()) && (Xs(t, n), Zs(t)), e++;
2753
- },
2754
- remove: function() {
2755
- e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
2756
- }
2757
- };
2758
- }, Qs = function() {
2759
- var e = qs();
2760
- return function(t, n) {
2761
- a.useEffect(function() {
2762
- return e.add(t), function() {
2763
- e.remove();
2764
- };
2765
- }, [t && n]);
2766
- };
2767
- }, cr = function() {
2768
- var e = Qs(), t = function(n) {
2769
- var r = n.styles, o = n.dynamic;
2770
- return e(r, o), null;
2771
- };
2772
- return t;
2773
- }, Js = {
2774
- left: 0,
2775
- top: 0,
2776
- right: 0,
2777
- gap: 0
2778
- }, vt = function(e) {
2779
- return parseInt(e || "", 10) || 0;
2780
- }, ec = function(e) {
2781
- var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
2782
- return [vt(n), vt(r), vt(o)];
2783
- }, tc = function(e) {
2784
- if (e === void 0 && (e = "margin"), typeof window > "u")
2785
- return Js;
2786
- var t = ec(e), n = document.documentElement.clientWidth, r = window.innerWidth;
2787
- return {
2788
- left: t[0],
2789
- top: t[1],
2790
- right: t[2],
2791
- gap: Math.max(0, r - n + t[2] - t[0])
2792
- };
2793
- }, nc = cr(), ge = "data-scroll-locked", rc = function(e, t, n, r) {
2794
- var o = e.left, i = e.top, c = e.right, s = e.gap;
2795
- return n === void 0 && (n = "margin"), `
2796
- .`.concat($s, ` {
2797
- overflow: hidden `).concat(r, `;
2798
- padding-right: `).concat(s, "px ").concat(r, `;
2799
- }
2800
- body[`).concat(ge, `] {
2801
- overflow: hidden `).concat(r, `;
2802
- overscroll-behavior: contain;
2803
- `).concat([
2804
- t && "position: relative ".concat(r, ";"),
2805
- n === "margin" && `
2806
- padding-left: `.concat(o, `px;
2807
- padding-top: `).concat(i, `px;
2808
- padding-right: `).concat(c, `px;
2809
- margin-left:0;
2810
- margin-top:0;
2811
- margin-right: `).concat(s, "px ").concat(r, `;
2812
- `),
2813
- n === "padding" && "padding-right: ".concat(s, "px ").concat(r, ";")
2814
- ].filter(Boolean).join(""), `
2815
- }
2816
-
2817
- .`).concat(je, ` {
2818
- right: `).concat(s, "px ").concat(r, `;
2819
- }
2820
-
2821
- .`).concat(Ge, ` {
2822
- margin-right: `).concat(s, "px ").concat(r, `;
2823
- }
2824
-
2825
- .`).concat(je, " .").concat(je, ` {
2826
- right: 0 `).concat(r, `;
2827
- }
2828
-
2829
- .`).concat(Ge, " .").concat(Ge, ` {
2830
- margin-right: 0 `).concat(r, `;
2831
- }
2832
-
2833
- body[`).concat(ge, `] {
2834
- `).concat(Ws, ": ").concat(s, `px;
2835
- }
2836
- `);
2837
- }, fn = function() {
2838
- var e = parseInt(document.body.getAttribute(ge) || "0", 10);
2839
- return isFinite(e) ? e : 0;
2840
- }, oc = function() {
2841
- a.useEffect(function() {
2842
- return document.body.setAttribute(ge, (fn() + 1).toString()), function() {
2843
- var e = fn() - 1;
2844
- e <= 0 ? document.body.removeAttribute(ge) : document.body.setAttribute(ge, e.toString());
2845
- };
2846
- }, []);
2847
- }, ic = function(e) {
2848
- var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
2849
- oc();
2850
- var i = a.useMemo(function() {
2851
- return tc(o);
2852
- }, [o]);
2853
- return a.createElement(nc, { styles: rc(i, !t, o, n ? "" : "!important") });
2854
- }, St = !1;
2855
- if (typeof window < "u")
2856
- try {
2857
- var Ue = Object.defineProperty({}, "passive", {
2858
- get: function() {
2859
- return St = !0, !0;
2860
- }
2861
- });
2862
- window.addEventListener("test", Ue, Ue), window.removeEventListener("test", Ue, Ue);
2863
- } catch {
2864
- St = !1;
2865
- }
2866
- var me = St ? { passive: !1 } : !1, sc = function(e) {
2867
- return e.tagName === "TEXTAREA";
2868
- }, ar = function(e, t) {
2869
- if (!(e instanceof Element))
2870
- return !1;
2871
- var n = window.getComputedStyle(e);
2872
- return (
2873
- // not-not-scrollable
2874
- n[t] !== "hidden" && // contains scroll inside self
2875
- !(n.overflowY === n.overflowX && !sc(e) && n[t] === "visible")
2876
- );
2877
- }, cc = function(e) {
2878
- return ar(e, "overflowY");
2879
- }, ac = function(e) {
2880
- return ar(e, "overflowX");
2881
- }, dn = function(e, t) {
2882
- var n = t.ownerDocument, r = t;
2883
- do {
2884
- typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
2885
- var o = lr(e, r);
2886
- if (o) {
2887
- var i = ur(e, r), c = i[1], s = i[2];
2888
- if (c > s)
2889
- return !0;
2890
- }
2891
- r = r.parentNode;
2892
- } while (r && r !== n.body);
2893
- return !1;
2894
- }, lc = function(e) {
2895
- var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
2896
- return [
2897
- t,
2898
- n,
2899
- r
2900
- ];
2901
- }, uc = function(e) {
2902
- var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
2903
- return [
2904
- t,
2905
- n,
2906
- r
2907
- ];
2908
- }, lr = function(e, t) {
2909
- return e === "v" ? cc(t) : ac(t);
2910
- }, ur = function(e, t) {
2911
- return e === "v" ? lc(t) : uc(t);
2912
- }, fc = function(e, t) {
2913
- return e === "h" && t === "rtl" ? -1 : 1;
2914
- }, dc = function(e, t, n, r, o) {
2915
- var i = fc(e, window.getComputedStyle(t).direction), c = i * r, s = n.target, d = t.contains(s), l = !1, f = c > 0, u = 0, m = 0;
2916
- do {
2917
- if (!s)
2918
- break;
2919
- var h = ur(e, s), g = h[0], p = h[1], v = h[2], y = p - v - i * g;
2920
- (g || y) && lr(e, s) && (u += y, m += g);
2921
- var E = s.parentNode;
2922
- s = E && E.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? E.host : E;
2923
- } while (
2924
- // portaled content
2925
- !d && s !== document.body || // self content
2926
- d && (t.contains(s) || t === s)
2927
- );
2928
- return (f && Math.abs(u) < 1 || !f && Math.abs(m) < 1) && (l = !0), l;
2929
- }, He = function(e) {
2930
- return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
2931
- }, pn = function(e) {
2932
- return [e.deltaX, e.deltaY];
2933
- }, mn = function(e) {
2934
- return e && "current" in e ? e.current : e;
2935
- }, pc = function(e, t) {
2936
- return e[0] === t[0] && e[1] === t[1];
2937
- }, mc = function(e) {
2938
- return `
2939
- .block-interactivity-`.concat(e, ` {pointer-events: none;}
2940
- .allow-interactivity-`).concat(e, ` {pointer-events: all;}
2941
- `);
2942
- }, hc = 0, he = [];
2943
- function vc(e) {
2944
- var t = a.useRef([]), n = a.useRef([0, 0]), r = a.useRef(), o = a.useState(hc++)[0], i = a.useState(cr)[0], c = a.useRef(e);
2945
- a.useEffect(function() {
2946
- c.current = e;
2947
- }, [e]), a.useEffect(function() {
2948
- if (e.inert) {
2949
- document.body.classList.add("block-interactivity-".concat(o));
2950
- var p = ks([e.lockRef.current], (e.shards || []).map(mn), !0).filter(Boolean);
2951
- return p.forEach(function(v) {
2952
- return v.classList.add("allow-interactivity-".concat(o));
2953
- }), function() {
2954
- document.body.classList.remove("block-interactivity-".concat(o)), p.forEach(function(v) {
2955
- return v.classList.remove("allow-interactivity-".concat(o));
2956
- });
2957
- };
2958
- }
2959
- }, [e.inert, e.lockRef.current, e.shards]);
2960
- var s = a.useCallback(function(p, v) {
2961
- if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
2962
- return !c.current.allowPinchZoom;
2963
- var y = He(p), E = n.current, b = "deltaX" in p ? p.deltaX : E[0] - y[0], w = "deltaY" in p ? p.deltaY : E[1] - y[1], S, A = p.target, x = Math.abs(b) > Math.abs(w) ? "h" : "v";
2964
- if ("touches" in p && x === "h" && A.type === "range")
2965
- return !1;
2966
- var P = window.getSelection(), _ = P && P.anchorNode, O = _ ? _ === A || _.contains(A) : !1;
2967
- if (O)
2968
- return !1;
2969
- var N = dn(x, A);
2970
- if (!N)
2971
- return !0;
2972
- if (N ? S = x : (S = x === "v" ? "h" : "v", N = dn(x, A)), !N)
2973
- return !1;
2974
- if (!r.current && "changedTouches" in p && (b || w) && (r.current = S), !S)
2975
- return !0;
2976
- var L = r.current || S;
2977
- return dc(L, v, p, L === "h" ? b : w);
2978
- }, []), d = a.useCallback(function(p) {
2979
- var v = p;
2980
- if (!(!he.length || he[he.length - 1] !== i)) {
2981
- var y = "deltaY" in v ? pn(v) : He(v), E = t.current.filter(function(S) {
2982
- return S.name === v.type && (S.target === v.target || v.target === S.shadowParent) && pc(S.delta, y);
2983
- })[0];
2984
- if (E && E.should) {
2985
- v.cancelable && v.preventDefault();
2986
- return;
2987
- }
2988
- if (!E) {
2989
- var b = (c.current.shards || []).map(mn).filter(Boolean).filter(function(S) {
2990
- return S.contains(v.target);
2991
- }), w = b.length > 0 ? s(v, b[0]) : !c.current.noIsolation;
2992
- w && v.cancelable && v.preventDefault();
2993
- }
2994
- }
2995
- }, []), l = a.useCallback(function(p, v, y, E) {
2996
- var b = { name: p, delta: v, target: y, should: E, shadowParent: gc(y) };
2997
- t.current.push(b), setTimeout(function() {
2998
- t.current = t.current.filter(function(w) {
2999
- return w !== b;
3000
- });
3001
- }, 1);
3002
- }, []), f = a.useCallback(function(p) {
3003
- n.current = He(p), r.current = void 0;
3004
- }, []), u = a.useCallback(function(p) {
3005
- l(p.type, pn(p), p.target, s(p, e.lockRef.current));
3006
- }, []), m = a.useCallback(function(p) {
3007
- l(p.type, He(p), p.target, s(p, e.lockRef.current));
3008
- }, []);
3009
- a.useEffect(function() {
3010
- return he.push(i), e.setCallbacks({
3011
- onScrollCapture: u,
3012
- onWheelCapture: u,
3013
- onTouchMoveCapture: m
3014
- }), document.addEventListener("wheel", d, me), document.addEventListener("touchmove", d, me), document.addEventListener("touchstart", f, me), function() {
3015
- he = he.filter(function(p) {
3016
- return p !== i;
3017
- }), document.removeEventListener("wheel", d, me), document.removeEventListener("touchmove", d, me), document.removeEventListener("touchstart", f, me);
3018
- };
3019
- }, []);
3020
- var h = e.removeScrollBar, g = e.inert;
3021
- return a.createElement(
3022
- a.Fragment,
3023
- null,
3024
- g ? a.createElement(i, { styles: mc(o) }) : null,
3025
- h ? a.createElement(ic, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
3026
- );
3027
- }
3028
- function gc(e) {
3029
- for (var t = null; e !== null; )
3030
- e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
3031
- return t;
3032
- }
3033
- const yc = Gs(sr, vc);
3034
- var fr = a.forwardRef(function(e, t) {
3035
- return a.createElement(ot, X({}, e, { ref: t, sideCar: yc }));
3036
- });
3037
- fr.classNames = ot.classNames;
3038
- var Rt = ["Enter", " "], wc = ["ArrowDown", "PageUp", "Home"], dr = ["ArrowUp", "PageDown", "End"], bc = [...wc, ...dr], Cc = {
3039
- ltr: [...Rt, "ArrowRight"],
3040
- rtl: [...Rt, "ArrowLeft"]
3041
- }, Ec = {
3042
- ltr: ["ArrowLeft"],
3043
- rtl: ["ArrowRight"]
3044
- }, Ne = "Menu", [Pe, xc, Sc] = bn(Ne), [de, na] = Je(Ne, [
3045
- Sc,
3046
- Bn,
3047
- Qn
3048
- ]), De = Bn(), pr = Qn(), [mr, ce] = de(Ne), [Rc, Le] = de(Ne), hr = (e) => {
3049
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: i, modal: c = !0 } = e, s = De(t), [d, l] = a.useState(null), f = a.useRef(!1), u = Q(i), m = Cn(o);
3050
- return a.useEffect(() => {
3051
- const h = () => {
3052
- f.current = !0, document.addEventListener("pointerdown", g, { capture: !0, once: !0 }), document.addEventListener("pointermove", g, { capture: !0, once: !0 });
3053
- }, g = () => f.current = !1;
3054
- return document.addEventListener("keydown", h, { capture: !0 }), () => {
3055
- document.removeEventListener("keydown", h, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
3056
- };
3057
- }, []), /* @__PURE__ */ C(Xn, { ...s, children: /* @__PURE__ */ C(
3058
- mr,
3059
- {
3060
- scope: t,
3061
- open: n,
3062
- onOpenChange: u,
3063
- content: d,
3064
- onContentChange: l,
3065
- children: /* @__PURE__ */ C(
3066
- Rc,
3067
- {
3068
- scope: t,
3069
- onClose: a.useCallback(() => u(!1), [u]),
3070
- isUsingKeyboardRef: f,
3071
- dir: m,
3072
- modal: c,
3073
- children: r
3074
- }
3075
- )
3076
- }
3077
- ) });
3078
- };
3079
- hr.displayName = Ne;
3080
- var Ac = "MenuAnchor", Dt = a.forwardRef(
3081
- (e, t) => {
3082
- const { __scopeMenu: n, ...r } = e, o = De(n);
3083
- return /* @__PURE__ */ C(as, { ...o, ...r, ref: t });
3084
- }
3085
- );
3086
- Dt.displayName = Ac;
3087
- var Lt = "MenuPortal", [Pc, vr] = de(Lt, {
3088
- forceMount: void 0
3089
- }), gr = (e) => {
3090
- const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, i = ce(Lt, t);
3091
- return /* @__PURE__ */ C(Pc, { scope: t, forceMount: n, children: /* @__PURE__ */ C(Ie, { present: n || i.open, children: /* @__PURE__ */ C(Zn, { asChild: !0, container: o, children: r }) }) });
3092
- };
3093
- gr.displayName = Lt;
3094
- var j = "MenuContent", [Mc, Ft] = de(j), yr = a.forwardRef(
3095
- (e, t) => {
3096
- const n = vr(j, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, i = ce(j, e.__scopeMenu), c = Le(j, e.__scopeMenu);
3097
- return /* @__PURE__ */ C(Pe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ C(Ie, { present: r || i.open, children: /* @__PURE__ */ C(Pe.Slot, { scope: e.__scopeMenu, children: c.modal ? /* @__PURE__ */ C(Oc, { ...o, ref: t }) : /* @__PURE__ */ C(Tc, { ...o, ref: t }) }) }) });
3098
- }
3099
- ), Oc = a.forwardRef(
3100
- (e, t) => {
3101
- const n = ce(j, e.__scopeMenu), r = a.useRef(null), o = V(t, r);
3102
- return a.useEffect(() => {
3103
- const i = r.current;
3104
- if (i) return Fs(i);
3105
- }, []), /* @__PURE__ */ C(
3106
- kt,
3107
- {
3108
- ...e,
3109
- ref: o,
3110
- trapFocus: n.open,
3111
- disableOutsidePointerEvents: n.open,
3112
- disableOutsideScroll: !0,
3113
- onFocusOutside: T(
3114
- e.onFocusOutside,
3115
- (i) => i.preventDefault(),
3116
- { checkForDefaultPrevented: !1 }
3117
- ),
3118
- onDismiss: () => n.onOpenChange(!1)
3119
- }
3120
- );
3121
- }
3122
- ), Tc = a.forwardRef((e, t) => {
3123
- const n = ce(j, e.__scopeMenu);
3124
- return /* @__PURE__ */ C(
3125
- kt,
3126
- {
3127
- ...e,
3128
- ref: t,
3129
- trapFocus: !1,
3130
- disableOutsidePointerEvents: !1,
3131
- disableOutsideScroll: !1,
3132
- onDismiss: () => n.onOpenChange(!1)
3133
- }
3134
- );
3135
- }), Ic = /* @__PURE__ */ Ps("MenuContent.ScrollLock"), kt = a.forwardRef(
3136
- (e, t) => {
3137
- const {
3138
- __scopeMenu: n,
3139
- loop: r = !1,
3140
- trapFocus: o,
3141
- onOpenAutoFocus: i,
3142
- onCloseAutoFocus: c,
3143
- disableOutsidePointerEvents: s,
3144
- onEntryFocus: d,
3145
- onEscapeKeyDown: l,
3146
- onPointerDownOutside: f,
3147
- onFocusOutside: u,
3148
- onInteractOutside: m,
3149
- onDismiss: h,
3150
- disableOutsideScroll: g,
3151
- ...p
3152
- } = e, v = ce(j, n), y = Le(j, n), E = De(n), b = pr(n), w = xc(n), [S, A] = a.useState(null), x = a.useRef(null), P = V(t, x, v.onContentChange), _ = a.useRef(0), O = a.useRef(""), N = a.useRef(0), L = a.useRef(null), F = a.useRef("right"), D = a.useRef(0), W = g ? fr : a.Fragment, I = g ? { as: Ic, allowPinchZoom: !0 } : void 0, k = (R) => {
3153
- const B = O.current + R, Y = w().filter(($) => !$.disabled), ae = document.activeElement, Ee = Y.find(($) => $.ref.current === ae)?.textValue, xe = Y.map(($) => $.textValue), Fe = Hc(xe, B, Ee), le = Y.find(($) => $.textValue === Fe)?.ref.current;
3154
- (function $(Se) {
3155
- O.current = Se, window.clearTimeout(_.current), Se !== "" && (_.current = window.setTimeout(() => $(""), 1e3));
3156
- })(B), le && setTimeout(() => le.focus());
3157
- };
3158
- a.useEffect(() => () => window.clearTimeout(_.current), []), _o();
3159
- const M = a.useCallback((R) => F.current === L.current?.side && jc(R, L.current?.area), []);
3160
- return /* @__PURE__ */ C(
3161
- Mc,
3162
- {
3163
- scope: n,
3164
- searchRef: O,
3165
- onItemEnter: a.useCallback(
3166
- (R) => {
3167
- M(R) && R.preventDefault();
3168
- },
3169
- [M]
3170
- ),
3171
- onItemLeave: a.useCallback(
3172
- (R) => {
3173
- M(R) || (x.current?.focus(), A(null));
3174
- },
3175
- [M]
3176
- ),
3177
- onTriggerLeave: a.useCallback(
3178
- (R) => {
3179
- M(R) && R.preventDefault();
3180
- },
3181
- [M]
3182
- ),
3183
- pointerGraceTimerRef: N,
3184
- onPointerGraceIntentChange: a.useCallback((R) => {
3185
- L.current = R;
3186
- }, []),
3187
- children: /* @__PURE__ */ C(W, { ...I, children: /* @__PURE__ */ C(
3188
- Rn,
3189
- {
3190
- asChild: !0,
3191
- trapped: o,
3192
- onMountAutoFocus: T(i, (R) => {
3193
- R.preventDefault(), x.current?.focus({ preventScroll: !0 });
3194
- }),
3195
- onUnmountAutoFocus: c,
3196
- children: /* @__PURE__ */ C(
3197
- xn,
3198
- {
3199
- asChild: !0,
3200
- disableOutsidePointerEvents: s,
3201
- onEscapeKeyDown: l,
3202
- onPointerDownOutside: f,
3203
- onFocusOutside: u,
3204
- onInteractOutside: m,
3205
- onDismiss: h,
3206
- children: /* @__PURE__ */ C(
3207
- Rs,
3208
- {
3209
- asChild: !0,
3210
- ...b,
3211
- dir: y.dir,
3212
- orientation: "vertical",
3213
- loop: r,
3214
- currentTabStopId: S,
3215
- onCurrentTabStopIdChange: A,
3216
- onEntryFocus: T(d, (R) => {
3217
- y.isUsingKeyboardRef.current || R.preventDefault();
3218
- }),
3219
- preventScrollOnEntryFocus: !0,
3220
- children: /* @__PURE__ */ C(
3221
- ls,
3222
- {
3223
- role: "menu",
3224
- "aria-orientation": "vertical",
3225
- "data-state": Lr(v.open),
3226
- "data-radix-menu-content": "",
3227
- dir: y.dir,
3228
- ...E,
3229
- ...p,
3230
- ref: P,
3231
- style: { outline: "none", ...p.style },
3232
- onKeyDown: T(p.onKeyDown, (R) => {
3233
- const Y = R.target.closest("[data-radix-menu-content]") === R.currentTarget, ae = R.ctrlKey || R.altKey || R.metaKey, Ee = R.key.length === 1;
3234
- Y && (R.key === "Tab" && R.preventDefault(), !ae && Ee && k(R.key));
3235
- const xe = x.current;
3236
- if (R.target !== xe || !bc.includes(R.key)) return;
3237
- R.preventDefault();
3238
- const le = w().filter(($) => !$.disabled).map(($) => $.ref.current);
3239
- dr.includes(R.key) && le.reverse(), Vc(le);
3240
- }),
3241
- onBlur: T(e.onBlur, (R) => {
3242
- R.currentTarget.contains(R.target) || (window.clearTimeout(_.current), O.current = "");
3243
- }),
3244
- onPointerMove: T(
3245
- e.onPointerMove,
3246
- Me((R) => {
3247
- const B = R.target, Y = D.current !== R.clientX;
3248
- if (R.currentTarget.contains(B) && Y) {
3249
- const ae = R.clientX > D.current ? "right" : "left";
3250
- F.current = ae, D.current = R.clientX;
3251
- }
3252
- })
3253
- )
3254
- }
3255
- )
3256
- }
3257
- )
3258
- }
3259
- )
3260
- }
3261
- ) })
3262
- }
3263
- );
3264
- }
3265
- );
3266
- yr.displayName = j;
3267
- var _c = "MenuGroup", $t = a.forwardRef(
3268
- (e, t) => {
3269
- const { __scopeMenu: n, ...r } = e;
3270
- return /* @__PURE__ */ C(U.div, { role: "group", ...r, ref: t });
3271
- }
3272
- );
3273
- $t.displayName = _c;
3274
- var Nc = "MenuLabel", wr = a.forwardRef(
3275
- (e, t) => {
3276
- const { __scopeMenu: n, ...r } = e;
3277
- return /* @__PURE__ */ C(U.div, { ...r, ref: t });
3278
- }
3279
- );
3280
- wr.displayName = Nc;
3281
- var qe = "MenuItem", hn = "menu.itemSelect", it = a.forwardRef(
3282
- (e, t) => {
3283
- const { disabled: n = !1, onSelect: r, ...o } = e, i = a.useRef(null), c = Le(qe, e.__scopeMenu), s = Ft(qe, e.__scopeMenu), d = V(t, i), l = a.useRef(!1), f = () => {
3284
- const u = i.current;
3285
- if (!n && u) {
3286
- const m = new CustomEvent(hn, { bubbles: !0, cancelable: !0 });
3287
- u.addEventListener(hn, (h) => r?.(h), { once: !0 }), wn(u, m), m.defaultPrevented ? l.current = !1 : c.onClose();
3288
- }
3289
- };
3290
- return /* @__PURE__ */ C(
3291
- br,
3292
- {
3293
- ...o,
3294
- ref: d,
3295
- disabled: n,
3296
- onClick: T(e.onClick, f),
3297
- onPointerDown: (u) => {
3298
- e.onPointerDown?.(u), l.current = !0;
3299
- },
3300
- onPointerUp: T(e.onPointerUp, (u) => {
3301
- l.current || u.currentTarget?.click();
3302
- }),
3303
- onKeyDown: T(e.onKeyDown, (u) => {
3304
- const m = s.searchRef.current !== "";
3305
- n || m && u.key === " " || Rt.includes(u.key) && (u.currentTarget.click(), u.preventDefault());
3306
- })
3307
- }
3308
- );
3309
- }
3310
- );
3311
- it.displayName = qe;
3312
- var br = a.forwardRef(
3313
- (e, t) => {
3314
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...i } = e, c = Ft(qe, n), s = pr(n), d = a.useRef(null), l = V(t, d), [f, u] = a.useState(!1), [m, h] = a.useState("");
3315
- return a.useEffect(() => {
3316
- const g = d.current;
3317
- g && h((g.textContent ?? "").trim());
3318
- }, [i.children]), /* @__PURE__ */ C(
3319
- Pe.ItemSlot,
3320
- {
3321
- scope: n,
3322
- disabled: r,
3323
- textValue: o ?? m,
3324
- children: /* @__PURE__ */ C(As, { asChild: !0, ...s, focusable: !r, children: /* @__PURE__ */ C(
3325
- U.div,
3326
- {
3327
- role: "menuitem",
3328
- "data-highlighted": f ? "" : void 0,
3329
- "aria-disabled": r || void 0,
3330
- "data-disabled": r ? "" : void 0,
3331
- ...i,
3332
- ref: l,
3333
- onPointerMove: T(
3334
- e.onPointerMove,
3335
- Me((g) => {
3336
- r ? c.onItemLeave(g) : (c.onItemEnter(g), g.defaultPrevented || g.currentTarget.focus({ preventScroll: !0 }));
3337
- })
3338
- ),
3339
- onPointerLeave: T(
3340
- e.onPointerLeave,
3341
- Me((g) => c.onItemLeave(g))
3342
- ),
3343
- onFocus: T(e.onFocus, () => u(!0)),
3344
- onBlur: T(e.onBlur, () => u(!1))
3345
- }
3346
- ) })
3347
- }
3348
- );
3349
- }
3350
- ), Dc = "MenuCheckboxItem", Cr = a.forwardRef(
3351
- (e, t) => {
3352
- const { checked: n = !1, onCheckedChange: r, ...o } = e;
3353
- return /* @__PURE__ */ C(Ar, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ C(
3354
- it,
3355
- {
3356
- role: "menuitemcheckbox",
3357
- "aria-checked": Qe(n) ? "mixed" : n,
3358
- ...o,
3359
- ref: t,
3360
- "data-state": Vt(n),
3361
- onSelect: T(
3362
- o.onSelect,
3363
- () => r?.(Qe(n) ? !0 : !n),
3364
- { checkForDefaultPrevented: !1 }
3365
- )
3366
- }
3367
- ) });
3368
- }
3369
- );
3370
- Cr.displayName = Dc;
3371
- var Er = "MenuRadioGroup", [Lc, Fc] = de(
3372
- Er,
3373
- { value: void 0, onValueChange: () => {
3374
- } }
3375
- ), xr = a.forwardRef(
3376
- (e, t) => {
3377
- const { value: n, onValueChange: r, ...o } = e, i = Q(r);
3378
- return /* @__PURE__ */ C(Lc, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ C($t, { ...o, ref: t }) });
3379
- }
3380
- );
3381
- xr.displayName = Er;
3382
- var Sr = "MenuRadioItem", Rr = a.forwardRef(
3383
- (e, t) => {
3384
- const { value: n, ...r } = e, o = Fc(Sr, e.__scopeMenu), i = n === o.value;
3385
- return /* @__PURE__ */ C(Ar, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ C(
3386
- it,
3387
- {
3388
- role: "menuitemradio",
3389
- "aria-checked": i,
3390
- ...r,
3391
- ref: t,
3392
- "data-state": Vt(i),
3393
- onSelect: T(
3394
- r.onSelect,
3395
- () => o.onValueChange?.(n),
3396
- { checkForDefaultPrevented: !1 }
3397
- )
3398
- }
3399
- ) });
3400
- }
3401
- );
3402
- Rr.displayName = Sr;
3403
- var Wt = "MenuItemIndicator", [Ar, kc] = de(
3404
- Wt,
3405
- { checked: !1 }
3406
- ), Pr = a.forwardRef(
3407
- (e, t) => {
3408
- const { __scopeMenu: n, forceMount: r, ...o } = e, i = kc(Wt, n);
3409
- return /* @__PURE__ */ C(
3410
- Ie,
3411
- {
3412
- present: r || Qe(i.checked) || i.checked === !0,
3413
- children: /* @__PURE__ */ C(
3414
- U.span,
3415
- {
3416
- ...o,
3417
- ref: t,
3418
- "data-state": Vt(i.checked)
3419
- }
3420
- )
3421
- }
3422
- );
3423
- }
3424
- );
3425
- Pr.displayName = Wt;
3426
- var $c = "MenuSeparator", Mr = a.forwardRef(
3427
- (e, t) => {
3428
- const { __scopeMenu: n, ...r } = e;
3429
- return /* @__PURE__ */ C(
3430
- U.div,
3431
- {
3432
- role: "separator",
3433
- "aria-orientation": "horizontal",
3434
- ...r,
3435
- ref: t
3436
- }
3437
- );
3438
- }
3439
- );
3440
- Mr.displayName = $c;
3441
- var Wc = "MenuArrow", Or = a.forwardRef(
3442
- (e, t) => {
3443
- const { __scopeMenu: n, ...r } = e, o = De(n);
3444
- return /* @__PURE__ */ C(us, { ...o, ...r, ref: t });
3445
- }
3446
- );
3447
- Or.displayName = Wc;
3448
- var Bt = "MenuSub", [Bc, Tr] = de(Bt), Ir = (e) => {
3449
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, i = ce(Bt, t), c = De(t), [s, d] = a.useState(null), [l, f] = a.useState(null), u = Q(o);
3450
- return a.useEffect(() => (i.open === !1 && u(!1), () => u(!1)), [i.open, u]), /* @__PURE__ */ C(Xn, { ...c, children: /* @__PURE__ */ C(
3451
- mr,
3452
- {
3453
- scope: t,
3454
- open: r,
3455
- onOpenChange: u,
3456
- content: l,
3457
- onContentChange: f,
3458
- children: /* @__PURE__ */ C(
3459
- Bc,
3460
- {
3461
- scope: t,
3462
- contentId: wt(),
3463
- triggerId: wt(),
3464
- trigger: s,
3465
- onTriggerChange: d,
3466
- children: n
3467
- }
3468
- )
3469
- }
3470
- ) });
3471
- };
3472
- Ir.displayName = Bt;
3473
- var Re = "MenuSubTrigger", _r = a.forwardRef(
3474
- (e, t) => {
3475
- const n = ce(Re, e.__scopeMenu), r = Le(Re, e.__scopeMenu), o = Tr(Re, e.__scopeMenu), i = Ft(Re, e.__scopeMenu), c = a.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: d } = i, l = { __scopeMenu: e.__scopeMenu }, f = a.useCallback(() => {
3476
- c.current && window.clearTimeout(c.current), c.current = null;
3477
- }, []);
3478
- return a.useEffect(() => f, [f]), a.useEffect(() => {
3479
- const u = s.current;
3480
- return () => {
3481
- window.clearTimeout(u), d(null);
3482
- };
3483
- }, [s, d]), /* @__PURE__ */ C(Dt, { asChild: !0, ...l, children: /* @__PURE__ */ C(
3484
- br,
3485
- {
3486
- id: o.triggerId,
3487
- "aria-haspopup": "menu",
3488
- "aria-expanded": n.open,
3489
- "aria-controls": o.contentId,
3490
- "data-state": Lr(n.open),
3491
- ...e,
3492
- ref: Oe(t, o.onTriggerChange),
3493
- onClick: (u) => {
3494
- e.onClick?.(u), !(e.disabled || u.defaultPrevented) && (u.currentTarget.focus(), n.open || n.onOpenChange(!0));
3495
- },
3496
- onPointerMove: T(
3497
- e.onPointerMove,
3498
- Me((u) => {
3499
- i.onItemEnter(u), !u.defaultPrevented && !e.disabled && !n.open && !c.current && (i.onPointerGraceIntentChange(null), c.current = window.setTimeout(() => {
3500
- n.onOpenChange(!0), f();
3501
- }, 100));
3502
- })
3503
- ),
3504
- onPointerLeave: T(
3505
- e.onPointerLeave,
3506
- Me((u) => {
3507
- f();
3508
- const m = n.content?.getBoundingClientRect();
3509
- if (m) {
3510
- const h = n.content?.dataset.side, g = h === "right", p = g ? -5 : 5, v = m[g ? "left" : "right"], y = m[g ? "right" : "left"];
3511
- i.onPointerGraceIntentChange({
3512
- area: [
3513
- // Apply a bleed on clientX to ensure that our exit point is
3514
- // consistently within polygon bounds
3515
- { x: u.clientX + p, y: u.clientY },
3516
- { x: v, y: m.top },
3517
- { x: y, y: m.top },
3518
- { x: y, y: m.bottom },
3519
- { x: v, y: m.bottom }
3520
- ],
3521
- side: h
3522
- }), window.clearTimeout(s.current), s.current = window.setTimeout(
3523
- () => i.onPointerGraceIntentChange(null),
3524
- 300
3525
- );
3526
- } else {
3527
- if (i.onTriggerLeave(u), u.defaultPrevented) return;
3528
- i.onPointerGraceIntentChange(null);
3529
- }
3530
- })
3531
- ),
3532
- onKeyDown: T(e.onKeyDown, (u) => {
3533
- const m = i.searchRef.current !== "";
3534
- e.disabled || m && u.key === " " || Cc[r.dir].includes(u.key) && (n.onOpenChange(!0), n.content?.focus(), u.preventDefault());
3535
- })
3536
- }
3537
- ) });
3538
- }
3539
- );
3540
- _r.displayName = Re;
3541
- var Nr = "MenuSubContent", Dr = a.forwardRef(
3542
- (e, t) => {
3543
- const n = vr(j, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, i = ce(j, e.__scopeMenu), c = Le(j, e.__scopeMenu), s = Tr(Nr, e.__scopeMenu), d = a.useRef(null), l = V(t, d);
3544
- return /* @__PURE__ */ C(Pe.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ C(Ie, { present: r || i.open, children: /* @__PURE__ */ C(Pe.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ C(
3545
- kt,
3546
- {
3547
- id: s.contentId,
3548
- "aria-labelledby": s.triggerId,
3549
- ...o,
3550
- ref: l,
3551
- align: "start",
3552
- side: c.dir === "rtl" ? "left" : "right",
3553
- disableOutsidePointerEvents: !1,
3554
- disableOutsideScroll: !1,
3555
- trapFocus: !1,
3556
- onOpenAutoFocus: (f) => {
3557
- c.isUsingKeyboardRef.current && d.current?.focus(), f.preventDefault();
3558
- },
3559
- onCloseAutoFocus: (f) => f.preventDefault(),
3560
- onFocusOutside: T(e.onFocusOutside, (f) => {
3561
- f.target !== s.trigger && i.onOpenChange(!1);
3562
- }),
3563
- onEscapeKeyDown: T(e.onEscapeKeyDown, (f) => {
3564
- c.onClose(), f.preventDefault();
3565
- }),
3566
- onKeyDown: T(e.onKeyDown, (f) => {
3567
- const u = f.currentTarget.contains(f.target), m = Ec[c.dir].includes(f.key);
3568
- u && m && (i.onOpenChange(!1), s.trigger?.focus(), f.preventDefault());
3569
- })
3570
- }
3571
- ) }) }) });
3572
- }
3573
- );
3574
- Dr.displayName = Nr;
3575
- function Lr(e) {
3576
- return e ? "open" : "closed";
3577
- }
3578
- function Qe(e) {
3579
- return e === "indeterminate";
3580
- }
3581
- function Vt(e) {
3582
- return Qe(e) ? "indeterminate" : e ? "checked" : "unchecked";
3583
- }
3584
- function Vc(e) {
3585
- const t = document.activeElement;
3586
- for (const n of e)
3587
- if (n === t || (n.focus(), document.activeElement !== t)) return;
3588
- }
3589
- function Uc(e, t) {
3590
- return e.map((n, r) => e[(t + r) % e.length]);
3591
- }
3592
- function Hc(e, t, n) {
3593
- const o = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
3594
- let c = Uc(e, Math.max(i, 0));
3595
- o.length === 1 && (c = c.filter((l) => l !== n));
3596
- const d = c.find(
3597
- (l) => l.toLowerCase().startsWith(o.toLowerCase())
3598
- );
3599
- return d !== n ? d : void 0;
3600
- }
3601
- function Kc(e, t) {
3602
- const { x: n, y: r } = e;
3603
- let o = !1;
3604
- for (let i = 0, c = t.length - 1; i < t.length; c = i++) {
3605
- const s = t[i], d = t[c], l = s.x, f = s.y, u = d.x, m = d.y;
3606
- f > r != m > r && n < (u - l) * (r - f) / (m - f) + l && (o = !o);
3607
- }
3608
- return o;
3609
- }
3610
- function jc(e, t) {
3611
- if (!t) return !1;
3612
- const n = { x: e.clientX, y: e.clientY };
3613
- return Kc(n, t);
3614
- }
3615
- function Me(e) {
3616
- return (t) => t.pointerType === "mouse" ? e(t) : void 0;
3617
- }
3618
- var ra = hr, oa = Dt, ia = gr, sa = yr, ca = $t, aa = wr, la = it, ua = Cr, fa = xr, da = Rr, pa = Pr, ma = Mr, ha = Or, va = Ir, ga = _r, ya = Dr;
3619
- const wa = (e, t, n) => {
3620
- const r = Ur(() => t, [t, n]);
3621
- Hr(e, () => r, [r]);
3622
- };
3623
- class ba extends Kr {
3624
- constructor(t) {
3625
- super(t), this.state = {
3626
- hasError: !1,
3627
- error: null,
3628
- errorInfo: null
3629
- };
3630
- }
3631
- static getDerivedStateFromError(t) {
3632
- return {
3633
- hasError: !0,
3634
- error: t,
3635
- errorInfo: null
3636
- };
3637
- }
3638
- componentDidCatch(t, n) {
3639
- console.error("Error caught by ErrorBoundary:", t, n), this.setState({
3640
- errorInfo: n
3641
- });
3642
- }
3643
- handleReset = () => {
3644
- this.setState({
3645
- hasError: !1,
3646
- error: null,
3647
- errorInfo: null
3648
- });
3649
- };
3650
- render() {
3651
- return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ C("div", { className: "flex flex-col items-center justify-center min-h-screen p-4", children: /* @__PURE__ */ st("div", { className: "flex flex-col items-center gap-4 max-w-md w-full", children: [
3652
- /* @__PURE__ */ C("div", { className: "flex items-center justify-center w-16 h-16 rounded-full bg-destructive/10", children: /* @__PURE__ */ C(oo, { className: "w-8 h-8 text-destructive" }) }),
3653
- /* @__PURE__ */ st("div", { className: "flex flex-col items-center gap-2 text-center", children: [
3654
- /* @__PURE__ */ C("h2", { className: "text-lg font-semibold", children: "Something went wrong" }),
3655
- /* @__PURE__ */ C("p", { className: "text-sm text-muted-foreground", children: "An unexpected error occurred. Please try again." })
3656
- ] }),
3657
- /* @__PURE__ */ st(
3658
- "button",
3659
- {
3660
- onClick: this.handleReset,
3661
- className: "flex items-center gap-2 px-4 py-2 text-sm font-medium text-primary hover:bg-primary/10 rounded-md transition-colors",
3662
- children: [
3663
- /* @__PURE__ */ C(no, { className: "w-4 h-4" }),
3664
- "Try Again"
3665
- ]
3666
- }
3667
- )
3668
- ] }) }) : this.props.children;
3669
- }
3670
- }
3671
- export {
3672
- Rn as $,
3673
- oa as A,
3674
- Bn as B,
3675
- Zc as C,
3676
- Xn as D,
3677
- as as E,
3678
- xn as F,
3679
- ca as G,
3680
- ls as H,
3681
- la as I,
3682
- us as J,
3683
- wa as K,
3684
- aa as L,
3685
- no as M,
3686
- ba as N,
3687
- ea as O,
3688
- U as P,
3689
- ts as Q,
3690
- ra as R,
3691
- ma as S,
3692
- oo as T,
3693
- Rs as U,
3694
- As as V,
3695
- Qn as W,
3696
- Zn as X,
3697
- fr as Y,
3698
- Fs as Z,
3699
- _o as _,
3700
- Cn as a,
3701
- ta as a0,
3702
- Ie as b,
3703
- we as c,
3704
- Je as d,
3705
- T as e,
3706
- Q as f,
3707
- Jc as g,
3708
- oe as h,
3709
- co as i,
3710
- wt as j,
3711
- Oe as k,
3712
- na as l,
3713
- ia as m,
3714
- sa as n,
3715
- ua as o,
3716
- pa as p,
3717
- fa as q,
3718
- va as r,
3719
- da as s,
3720
- ya as t,
3721
- V as u,
3722
- ga as v,
3723
- ha as w,
3724
- Xc as x,
3725
- qc as y,
3726
- Qc as z
3727
- };