@gen-epix/ui-client-casedb 4.0.0 → 4.0.1

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 (393) hide show
  1. package/dist/@types/mui.d.ts +1 -1
  2. package/dist/@types/{ui-casedb.d.ts → ui-client-casedb.d.ts} +1 -1
  3. package/dist/_chunks/AddCasesToEventDialog.js +74 -74
  4. package/dist/_chunks/AddCasesToEventDialog.js.map +1 -1
  5. package/dist/_chunks/CaseContentForm.js +2 -2
  6. package/dist/_chunks/CaseContentForm.js.map +1 -1
  7. package/dist/_chunks/CaseDbDownloadUtil.js +40 -35
  8. package/dist/_chunks/CaseDbDownloadUtil.js.map +1 -1
  9. package/dist/_chunks/CaseInfoDialog.js +195 -195
  10. package/dist/_chunks/CaseInfoDialog.js.map +1 -1
  11. package/dist/_chunks/CaseSetInfoDialog.js +131 -131
  12. package/dist/_chunks/CaseSetInfoDialog.js.map +1 -1
  13. package/dist/_chunks/CaseTypeInfoDialog.js +63 -61
  14. package/dist/_chunks/CaseTypeInfoDialog.js.map +1 -1
  15. package/dist/_chunks/CasesAlreadyInCaseSetWarning.js +6 -6
  16. package/dist/_chunks/CasesAlreadyInCaseSetWarning.js.map +1 -1
  17. package/dist/_chunks/CompletCaseTypeLoader.js +3 -3
  18. package/dist/_chunks/CompletCaseTypeLoader.js.map +1 -1
  19. package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js +1 -1
  20. package/dist/_chunks/CreateEventDialogSuccessNotificationMessage.js.map +1 -1
  21. package/dist/_chunks/CustomTabPanel.js.map +1 -1
  22. package/dist/_chunks/Dashboard.js +399 -386
  23. package/dist/_chunks/Dashboard.js.map +1 -1
  24. package/dist/_chunks/DashboardStoreLoader.js +5 -5
  25. package/dist/_chunks/DashboardStoreLoader.js.map +1 -1
  26. package/dist/_chunks/DataCollectionAccessInfo.js +21 -21
  27. package/dist/_chunks/DataCollectionAccessInfo.js.map +1 -1
  28. package/dist/_chunks/EpiCurveUtil.js +4 -4
  29. package/dist/_chunks/EpiCurveUtil.js.map +1 -1
  30. package/dist/_chunks/EpiCurveWidget.js +189 -183
  31. package/dist/_chunks/EpiCurveWidget.js.map +1 -1
  32. package/dist/_chunks/FilterUtil.js +103 -101
  33. package/dist/_chunks/FilterUtil.js.map +1 -1
  34. package/dist/_chunks/FindSimilarCasesDialog.js +16 -16
  35. package/dist/_chunks/FindSimilarCasesDialog.js.map +1 -1
  36. package/dist/_chunks/FindSimilarCasesUtil.js +9 -9
  37. package/dist/_chunks/FindSimilarCasesUtil.js.map +1 -1
  38. package/dist/_chunks/HomePageTrends.js +8 -8
  39. package/dist/_chunks/HomePageTrends.js.map +1 -1
  40. package/dist/_chunks/LegendaItem.js +3 -3
  41. package/dist/_chunks/LegendaItem.js.map +1 -1
  42. package/dist/_chunks/LineListWidget.js +23 -21
  43. package/dist/_chunks/LineListWidget.js.map +1 -1
  44. package/dist/_chunks/PanelSeparator.js +374 -384
  45. package/dist/_chunks/PanelSeparator.js.map +1 -1
  46. package/dist/_chunks/Upload.js +222 -207
  47. package/dist/_chunks/Upload.js.map +1 -1
  48. package/dist/_chunks/UploadUtil.js +1970 -841
  49. package/dist/_chunks/UploadUtil.js.map +1 -1
  50. package/dist/_chunks/UserRightsDialog.js +12 -12
  51. package/dist/_chunks/UserRightsDialog.js.map +1 -1
  52. package/dist/_chunks/_MapCache.js +2 -2
  53. package/dist/_chunks/_baseGet.js +1 -1
  54. package/dist/_chunks/_baseGet.js.map +1 -1
  55. package/dist/_chunks/_baseIteratee.js +1 -1
  56. package/dist/_chunks/_baseIteratee.js.map +1 -1
  57. package/dist/_chunks/_setToString.js.map +1 -1
  58. package/dist/_chunks/{chunk-KS7C4IRE.js → chunk-BV7QT456.js} +330 -495
  59. package/dist/_chunks/chunk-BV7QT456.js.map +1 -0
  60. package/dist/_chunks/cloneDeep.js +11 -9
  61. package/dist/_chunks/cloneDeep.js.map +1 -1
  62. package/dist/_chunks/dashboardStore.js +259 -261
  63. package/dist/_chunks/dashboardStore.js.map +1 -1
  64. package/dist/_chunks/esm.js +2900 -2868
  65. package/dist/_chunks/esm.js.map +1 -1
  66. package/dist/_chunks/format.js +8 -8
  67. package/dist/_chunks/format.js.map +1 -1
  68. package/dist/_chunks/index.esm.js +919 -796
  69. package/dist/_chunks/index.esm.js.map +1 -1
  70. package/dist/_chunks/index.module.js +1 -1
  71. package/dist/_chunks/index.module.js.map +1 -1
  72. package/dist/_chunks/protectedTokens.js +79 -81
  73. package/dist/_chunks/protectedTokens.js.map +1 -1
  74. package/dist/_chunks/react.js +1 -1
  75. package/dist/_chunks/react.js.map +1 -1
  76. package/dist/_chunks/round.js +1 -1
  77. package/dist/_chunks/round.js.map +1 -1
  78. package/dist/_chunks/shallow.js +2 -2
  79. package/dist/_chunks/shallow.js.map +1 -1
  80. package/dist/_chunks/sync.js +198 -161
  81. package/dist/_chunks/sync.js.map +1 -1
  82. package/dist/_chunks/toDate.js +1 -1
  83. package/dist/_chunks/toDate.js.map +1 -1
  84. package/dist/_chunks/toString.js +1 -1
  85. package/dist/_chunks/toString.js.map +1 -1
  86. package/dist/_chunks/useUnit.js.map +1 -1
  87. package/dist/_chunks/vanilla.js +1 -1
  88. package/dist/_chunks/vanilla.js.map +1 -1
  89. package/dist/_chunks/yup.js +5 -5
  90. package/dist/_chunks/yup.js.map +1 -1
  91. package/dist/classes/filters/SelectionFilter.d.ts +2 -2
  92. package/dist/classes/filters/TreeFilter.d.ts +2 -2
  93. package/dist/classes/services/DataService/index.js +3 -3
  94. package/dist/classes/services/DataService/index.js.map +1 -1
  95. package/dist/classes/services/EventBusService/EventBusService.d.ts +1 -1
  96. package/dist/classes/services/EventBusService/index.js.map +1 -1
  97. package/dist/classes/services/LineListService/LineListServiceAbstract/index.js +1 -1
  98. package/dist/classes/services/LineListService/LineListServiceAbstract/index.js.map +1 -1
  99. package/dist/components/app/CaseDbApp/index.js +8 -5
  100. package/dist/components/app/CaseDbApp/index.js.map +1 -1
  101. package/dist/components/form/fields/ArrangementEditor/index.js +83 -83
  102. package/dist/components/form/fields/ArrangementEditor/index.js.map +1 -1
  103. package/dist/components/ui/AddCasesToEventDialog/AddCasesToEventDialog.d.ts +2 -2
  104. package/dist/components/ui/CaseContentFormDialog/CaseContentFormDialog.d.ts +2 -2
  105. package/dist/components/ui/CaseContentFormDialog/index.js +1 -1
  106. package/dist/components/ui/CaseContentFormDialog/index.js.map +1 -1
  107. package/dist/components/ui/CaseInfoDialog/CaseInfoDialog.d.ts +2 -2
  108. package/dist/components/ui/CaseSetInfoDialog/CaseSetInfoDialog.d.ts +2 -2
  109. package/dist/components/ui/CaseSummary/index.js +1 -1
  110. package/dist/components/ui/CaseSummary/index.js.map +1 -1
  111. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialog.d.ts +2 -2
  112. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogContent.d.ts +1 -1
  113. package/dist/components/ui/CaseTypeInfoDialog/CaseTypeInfoDialogWithLoader.d.ts +2 -2
  114. package/dist/components/ui/ContextMenu/index.js.map +1 -1
  115. package/dist/components/ui/CreateEventDialog/CreateEventDialog.d.ts +2 -2
  116. package/dist/components/ui/CreateEventDialog/index.js +9 -9
  117. package/dist/components/ui/CreateEventDialog/index.js.map +1 -1
  118. package/dist/components/ui/Dashboard/DashboardDownloadSidebarItem.d.ts +1 -1
  119. package/dist/components/ui/Dashboard/DashboardSettingsSidebarItem.d.ts +1 -1
  120. package/dist/components/ui/Dashboard/DashboardWidget.d.ts +1 -1
  121. package/dist/components/ui/DashboardEditCases/index.js +1 -1
  122. package/dist/components/ui/DashboardEditCases/index.js.map +1 -1
  123. package/dist/components/ui/FileSelector/index.js +46 -46
  124. package/dist/components/ui/FileSelector/index.js.map +1 -1
  125. package/dist/components/ui/FindSimilarCasesDialog/FindSimilarCasesDialog.d.ts +2 -2
  126. package/dist/components/ui/Grouping/index.js +50 -50
  127. package/dist/components/ui/Grouping/index.js.map +1 -1
  128. package/dist/components/ui/HistogramWidget/index.js +1 -1
  129. package/dist/components/ui/HistogramWidget/index.js.map +1 -1
  130. package/dist/components/ui/MapWidget/index.js +7 -3
  131. package/dist/components/ui/MapWidget/index.js.map +1 -1
  132. package/dist/components/ui/RemoveCasesFromEventDialog/RemoveCasesFromEventDialog.d.ts +2 -2
  133. package/dist/components/ui/RemoveCasesFromEventDialog/index.js +6 -6
  134. package/dist/components/ui/RemoveCasesFromEventDialog/index.js.map +1 -1
  135. package/dist/components/ui/RemoveFindSimilarCasesResultDialog/RemoveFindSimilarCasesResultDialog.d.ts +2 -2
  136. package/dist/components/ui/SequenceDownloadDialog/SequenceDownloadDialog.d.ts +2 -2
  137. package/dist/components/ui/SequenceDownloadDialog/index.js +22 -22
  138. package/dist/components/ui/SequenceDownloadDialog/index.js.map +1 -1
  139. package/dist/components/ui/TreeDescription/index.js.map +1 -1
  140. package/dist/components/ui/TreeWidget/index.js +11 -11
  141. package/dist/components/ui/TreeWidget/index.js.map +1 -1
  142. package/dist/components/ui/Upload/UploadCaseResultTable.d.ts +2 -2
  143. package/dist/components/ui/Upload/UploadEditColumnValuesDialog.d.ts +2 -2
  144. package/dist/components/ui/UserRightsDialog/UserRightsDialog.d.ts +2 -2
  145. package/dist/components/ui/UsersEffectiveRightsDetailsDialog/UsersEffectiveRightsDetailsDialog.d.ts +2 -2
  146. package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js +25 -11
  147. package/dist/components/ui/UsersEffectiveRightsDetailsDialog/index.js.map +1 -1
  148. package/dist/components/ui/Warning/index.js.map +1 -1
  149. package/dist/components/ui/WidgetHeaderIconButton/index.js.map +1 -1
  150. package/dist/components/ui/WidgetMenu/WidgetMenu.d.ts +1 -1
  151. package/dist/components/ui/WidgetMenu/index.js +2 -2
  152. package/dist/components/ui/WidgetMenu/index.js.map +1 -1
  153. package/dist/components/ui/WidgetUnavailable/index.js.map +1 -1
  154. package/dist/constants/query.d.ts +1 -1
  155. package/dist/constants/query.js +1 -1
  156. package/dist/constants/query.js.map +1 -1
  157. package/dist/context/caseAbac/CaseAbacContext.d.ts +1 -1
  158. package/dist/dataHooks/useAssemblyProtocolsQuery/index.js +3 -3
  159. package/dist/dataHooks/useAssemblyProtocolsQuery/index.js.map +1 -1
  160. package/dist/dataHooks/useAssemblyProtocolsQuery/useAssemblyProtocolsQuery.d.ts +1 -1
  161. package/dist/dataHooks/useCaseRightsQuery/index.js +2 -2
  162. package/dist/dataHooks/useCaseRightsQuery/index.js.map +1 -1
  163. package/dist/dataHooks/useCaseSetCategoriesQuery/index.js +3 -3
  164. package/dist/dataHooks/useCaseSetCategoriesQuery/index.js.map +1 -1
  165. package/dist/dataHooks/useCaseSetCategoriesQuery/useCaseSetCategoriesQuery.d.ts +1 -1
  166. package/dist/dataHooks/useCaseSetRightsQuery/index.js +2 -2
  167. package/dist/dataHooks/useCaseSetRightsQuery/index.js.map +1 -1
  168. package/dist/dataHooks/useCaseSetStatsQuery/index.js +3 -3
  169. package/dist/dataHooks/useCaseSetStatsQuery/index.js.map +1 -1
  170. package/dist/dataHooks/useCaseSetStatsQuery/useCaseSetStatsQuery.d.ts +1 -1
  171. package/dist/dataHooks/useCaseSetStatusesQuery/index.js +3 -3
  172. package/dist/dataHooks/useCaseSetStatusesQuery/index.js.map +1 -1
  173. package/dist/dataHooks/useCaseSetStatusesQuery/useCaseSetStatusesQuery.d.ts +1 -1
  174. package/dist/dataHooks/useCaseSetsQuery/index.js +3 -3
  175. package/dist/dataHooks/useCaseSetsQuery/index.js.map +1 -1
  176. package/dist/dataHooks/useCaseSetsQuery/useCaseSetsQuery.d.ts +1 -1
  177. package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js +3 -3
  178. package/dist/dataHooks/useCaseTypeSetCategoriesQuery/index.js.map +1 -1
  179. package/dist/dataHooks/useCaseTypeSetCategoriesQuery/useCaseTypeSetCategoriesQuery.d.ts +1 -1
  180. package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/index.js.map +1 -1
  181. package/dist/dataHooks/useCaseTypeSetCategoryPurposeQuery/useCaseTypeSetCategoryPurposeQuery.d.ts +1 -1
  182. package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js +2 -2
  183. package/dist/dataHooks/useCaseTypeSetMembersQuery/index.js.map +1 -1
  184. package/dist/dataHooks/useCaseTypeSetsQuery/index.js +3 -3
  185. package/dist/dataHooks/useCaseTypeSetsQuery/index.js.map +1 -1
  186. package/dist/dataHooks/useCaseTypeSetsQuery/useCaseTypeSetsQuery.d.ts +1 -1
  187. package/dist/dataHooks/useCaseTypeStatsQuery/index.js +2 -2
  188. package/dist/dataHooks/useCaseTypeStatsQuery/index.js.map +1 -1
  189. package/dist/dataHooks/useCaseTypesQuery/index.js +3 -3
  190. package/dist/dataHooks/useCaseTypesQuery/index.js.map +1 -1
  191. package/dist/dataHooks/useCaseTypesQuery/useCaseTypesQuery.d.ts +1 -1
  192. package/dist/dataHooks/useColSetMembersQuery/index.js +2 -2
  193. package/dist/dataHooks/useColSetMembersQuery/index.js.map +1 -1
  194. package/dist/dataHooks/useColSetsQuery/index.js +3 -3
  195. package/dist/dataHooks/useColSetsQuery/index.js.map +1 -1
  196. package/dist/dataHooks/useColSetsQuery/useColSetsQuery.d.ts +1 -1
  197. package/dist/dataHooks/useColTypesQuery/index.js.map +1 -1
  198. package/dist/dataHooks/useColTypesQuery/useColTypesQuery.d.ts +1 -1
  199. package/dist/dataHooks/useColsQuery/index.js +3 -3
  200. package/dist/dataHooks/useColsQuery/index.js.map +1 -1
  201. package/dist/dataHooks/useColsQuery/useColsQuery.d.ts +1 -1
  202. package/dist/dataHooks/useConceptQuery/index.js +3 -3
  203. package/dist/dataHooks/useConceptQuery/index.js.map +1 -1
  204. package/dist/dataHooks/useConceptQuery/useConceptQuery.d.ts +1 -1
  205. package/dist/dataHooks/useConceptRelationTypeQuery/index.js.map +1 -1
  206. package/dist/dataHooks/useConceptRelationTypeQuery/useConceptRelationTypeQuery.d.ts +1 -1
  207. package/dist/dataHooks/useConceptSetTypeQuery/index.js.map +1 -1
  208. package/dist/dataHooks/useConceptSetTypeQuery/useConceptSetTypeQuery.d.ts +1 -1
  209. package/dist/dataHooks/useConceptSetsQuery/index.js +3 -3
  210. package/dist/dataHooks/useConceptSetsQuery/index.js.map +1 -1
  211. package/dist/dataHooks/useConceptSetsQuery/useConceptSetsQuery.d.ts +1 -1
  212. package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js +2 -2
  213. package/dist/dataHooks/useDataCollectionSetMembersQuery/index.js.map +1 -1
  214. package/dist/dataHooks/useDataCollectionsQuery/index.js +3 -3
  215. package/dist/dataHooks/useDataCollectionsQuery/index.js.map +1 -1
  216. package/dist/dataHooks/useDataCollectionsQuery/useDataCollectionsQuery.d.ts +1 -1
  217. package/dist/dataHooks/useDimTypesQuery/index.js.map +1 -1
  218. package/dist/dataHooks/useDimTypesQuery/useDimTypesQuery.d.ts +1 -1
  219. package/dist/dataHooks/useDimsQuery/index.js +3 -3
  220. package/dist/dataHooks/useDimsQuery/index.js.map +1 -1
  221. package/dist/dataHooks/useDimsQuery/useDimsQuery.d.ts +1 -1
  222. package/dist/dataHooks/useDiseasesQuery/index.js +3 -3
  223. package/dist/dataHooks/useDiseasesQuery/index.js.map +1 -1
  224. package/dist/dataHooks/useDiseasesQuery/useDiseasesQuery.d.ts +1 -1
  225. package/dist/dataHooks/useEtiologicalAgentsQuery/index.js +3 -3
  226. package/dist/dataHooks/useEtiologicalAgentsQuery/index.js.map +1 -1
  227. package/dist/dataHooks/useEtiologicalAgentsQuery/useEtiologicalAgentsQuery.d.ts +1 -1
  228. package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js +3 -3
  229. package/dist/dataHooks/useGeneticDistanceProtocolsQuery/index.js.map +1 -1
  230. package/dist/dataHooks/useGeneticDistanceProtocolsQuery/useGeneticDistanceProtocolsQuery.d.ts +1 -1
  231. package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js +2 -2
  232. package/dist/dataHooks/useOrganizationAccessCasePoliciesQuery/index.js.map +1 -1
  233. package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js +2 -2
  234. package/dist/dataHooks/useOrganizationShareCasePoliciesQuery/index.js.map +1 -1
  235. package/dist/dataHooks/useRefColsQuery/index.js +3 -3
  236. package/dist/dataHooks/useRefColsQuery/index.js.map +1 -1
  237. package/dist/dataHooks/useRefColsQuery/useRefColsQuery.d.ts +1 -1
  238. package/dist/dataHooks/useRefColsValidationRulesQuery/index.js +2 -2
  239. package/dist/dataHooks/useRefColsValidationRulesQuery/index.js.map +1 -1
  240. package/dist/dataHooks/useRefDimsQuery/index.js +3 -3
  241. package/dist/dataHooks/useRefDimsQuery/index.js.map +1 -1
  242. package/dist/dataHooks/useRefDimsQuery/useRefDimsQuery.d.ts +1 -1
  243. package/dist/dataHooks/useRegionQuery/index.js +3 -3
  244. package/dist/dataHooks/useRegionQuery/index.js.map +1 -1
  245. package/dist/dataHooks/useRegionQuery/useRegionQuery.d.ts +1 -1
  246. package/dist/dataHooks/useRegionRelationTypeQuery/index.js.map +1 -1
  247. package/dist/dataHooks/useRegionRelationTypeQuery/useRegionRelationTypeQuery.d.ts +1 -1
  248. package/dist/dataHooks/useRegionSetsQuery/index.js +3 -3
  249. package/dist/dataHooks/useRegionSetsQuery/index.js.map +1 -1
  250. package/dist/dataHooks/useRegionSetsQuery/useRegionSetsQuery.d.ts +1 -1
  251. package/dist/dataHooks/useSequencingProtocolsQuery/index.js +3 -3
  252. package/dist/dataHooks/useSequencingProtocolsQuery/index.js.map +1 -1
  253. package/dist/dataHooks/useSequencingProtocolsQuery/useSequencingProtocolsQuery.d.ts +1 -1
  254. package/dist/dataHooks/useTreeAlgorithmCodesQuery/index.js.map +1 -1
  255. package/dist/dataHooks/useTreeAlgorithmCodesQuery/useTreeAlgorithmCodesQuery.d.ts +1 -1
  256. package/dist/dataHooks/useUnitQuery/useUnit.d.ts +1 -1
  257. package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js +2 -2
  258. package/dist/dataHooks/useUserAccessCasePoliciesQuery/index.js.map +1 -1
  259. package/dist/dataHooks/useUserEffectiveRightsQuery/index.js +3 -3
  260. package/dist/dataHooks/useUserEffectiveRightsQuery/index.js.map +1 -1
  261. package/dist/dataHooks/useUserEffectiveRightsQuery/useUserEffectiveRightsQuery.d.ts +1 -1
  262. package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js +2 -2
  263. package/dist/dataHooks/useUserShareCasePoliciesQuery/index.js.map +1 -1
  264. package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js +2 -2
  265. package/dist/hooks/useOrganizationCasePolicyNameFactory/index.js.map +1 -1
  266. package/dist/hooks/useOrganizationCasePolicyNameFactory/useOrganizationCasePolicyNameFactory.d.ts +1 -1
  267. package/dist/hooks/useUserCasePolicyNameFactory/index.js +3 -3
  268. package/dist/hooks/useUserCasePolicyNameFactory/index.js.map +1 -1
  269. package/dist/hooks/useUserCasePolicyNameFactory/useUserCasePolicyNameFactory.d.ts +1 -1
  270. package/dist/locale/nl.json +1 -1
  271. package/dist/models/config.d.ts +1 -1
  272. package/dist/models/dashboard.d.ts +1 -1
  273. package/dist/models/dashboard.js.map +1 -1
  274. package/dist/models/theme.d.ts +2 -2
  275. package/dist/pages/CaseDbUsersAdminPage/index.js +5 -5
  276. package/dist/pages/CaseDbUsersAdminPage/index.js.map +1 -1
  277. package/dist/pages/CaseSetCategoryAdminPage/index.js +4 -4
  278. package/dist/pages/CaseSetCategoryAdminPage/index.js.map +1 -1
  279. package/dist/pages/CaseSetStatusAdminPage/index.js +4 -4
  280. package/dist/pages/CaseSetStatusAdminPage/index.js.map +1 -1
  281. package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js +4 -4
  282. package/dist/pages/CaseTypeSetCategoriesAdminPage/index.js.map +1 -1
  283. package/dist/pages/CaseTypeSetsAdminPage/index.js +6 -6
  284. package/dist/pages/CaseTypeSetsAdminPage/index.js.map +1 -1
  285. package/dist/pages/CaseTypesAdminPage/index.js +5 -5
  286. package/dist/pages/CaseTypesAdminPage/index.js.map +1 -1
  287. package/dist/pages/CasesDetailPage/index.js +5 -5
  288. package/dist/pages/CasesDetailPage/index.js.map +1 -1
  289. package/dist/pages/CasesPage/index.js +10 -10
  290. package/dist/pages/CasesPage/index.js.map +1 -1
  291. package/dist/pages/ColSetsAdminPage/index.js +6 -6
  292. package/dist/pages/ColSetsAdminPage/index.js.map +1 -1
  293. package/dist/pages/ColsAdminPage/index.js +5 -5
  294. package/dist/pages/ColsAdminPage/index.js.map +1 -1
  295. package/dist/pages/ConceptRelationsAdminPage/index.js +19 -19
  296. package/dist/pages/ConceptRelationsAdminPage/index.js.map +1 -1
  297. package/dist/pages/ConceptSetsAdminPage/index.js +5 -5
  298. package/dist/pages/ConceptSetsAdminPage/index.js.map +1 -1
  299. package/dist/pages/ConceptsAdminPage/index.js +5 -5
  300. package/dist/pages/ConceptsAdminPage/index.js.map +1 -1
  301. package/dist/pages/DataCollectionSetsAdminPage/index.js +12 -12
  302. package/dist/pages/DataCollectionSetsAdminPage/index.js.map +1 -1
  303. package/dist/pages/DataCollectionVisualizationPage/index.js +4 -4
  304. package/dist/pages/DataCollectionVisualizationPage/index.js.map +1 -1
  305. package/dist/pages/DataCollectionsAdminPage/index.js +4 -4
  306. package/dist/pages/DataCollectionsAdminPage/index.js.map +1 -1
  307. package/dist/pages/DimsAdminPage/index.js +6 -6
  308. package/dist/pages/DimsAdminPage/index.js.map +1 -1
  309. package/dist/pages/DiseasesAdminPage/index.js +4 -4
  310. package/dist/pages/DiseasesAdminPage/index.js.map +1 -1
  311. package/dist/pages/EtiologicalAgentsAdminPage/index.js +4 -4
  312. package/dist/pages/EtiologicalAgentsAdminPage/index.js.map +1 -1
  313. package/dist/pages/EtiologiesAdminPage/index.js +3 -3
  314. package/dist/pages/EtiologiesAdminPage/index.js.map +1 -1
  315. package/dist/pages/EventsDetailPage/index.js +5 -5
  316. package/dist/pages/EventsDetailPage/index.js.map +1 -1
  317. package/dist/pages/EventsPage/index.js +11 -11
  318. package/dist/pages/EventsPage/index.js.map +1 -1
  319. package/dist/pages/HomePage/index.js +2 -2
  320. package/dist/pages/HomePage/index.js.map +1 -1
  321. package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js +4 -4
  322. package/dist/pages/OrganizationAccessCasePoliciesAdminPage/index.js.map +1 -1
  323. package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js +4 -4
  324. package/dist/pages/OrganizationShareCasePoliciesAdminPage/index.js.map +1 -1
  325. package/dist/pages/RefColsAdminPage/index.js +7 -7
  326. package/dist/pages/RefColsAdminPage/index.js.map +1 -1
  327. package/dist/pages/RefDimsAdminPage/index.js +5 -5
  328. package/dist/pages/RefDimsAdminPage/index.js.map +1 -1
  329. package/dist/pages/RegionRelationsAdminPage/index.js +3 -3
  330. package/dist/pages/RegionRelationsAdminPage/index.js.map +1 -1
  331. package/dist/pages/RegionSetShapesAdminPage/index.js +4 -4
  332. package/dist/pages/RegionSetShapesAdminPage/index.js.map +1 -1
  333. package/dist/pages/RegionSetsAdminPage/index.js +5 -5
  334. package/dist/pages/RegionSetsAdminPage/index.js.map +1 -1
  335. package/dist/pages/RegionsAdminPage/index.js +5 -5
  336. package/dist/pages/RegionsAdminPage/index.js.map +1 -1
  337. package/dist/pages/TrendsPage/index.js +1 -1
  338. package/dist/pages/TrendsPage/index.js.map +1 -1
  339. package/dist/pages/UploadPage/index.js +1 -1
  340. package/dist/pages/UploadPage/index.js.map +1 -1
  341. package/dist/pages/UserAccessCasePoliciesAdminPage/index.js +4 -4
  342. package/dist/pages/UserAccessCasePoliciesAdminPage/index.js.map +1 -1
  343. package/dist/pages/UserEffectiveRightsAdminPage/index.js +12 -12
  344. package/dist/pages/UserEffectiveRightsAdminPage/index.js.map +1 -1
  345. package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js +8 -8
  346. package/dist/pages/UserEffectiveRightsTesterAdminPage/index.js.map +1 -1
  347. package/dist/pages/UserShareCasePoliciesAdminPage/index.js +4 -4
  348. package/dist/pages/UserShareCasePoliciesAdminPage/index.js.map +1 -1
  349. package/dist/routes/adminRoutes.d.ts +1 -1
  350. package/dist/routes/index.js +11 -8
  351. package/dist/routes/index.js.map +1 -1
  352. package/dist/routes/routes.d.ts +1 -1
  353. package/dist/setup/setup.js +5 -5
  354. package/dist/setup/setup.js.map +1 -1
  355. package/dist/stores/dashboardStore/dashboardStore.d.ts +1 -1
  356. package/dist/stores/uploadStore/index.js +2 -2
  357. package/dist/stores/uploadStore/index.js.map +1 -1
  358. package/dist/stores/uploadStore/uploadStore.d.ts +1 -1
  359. package/dist/stores/userProfileStore/index.js +2 -2
  360. package/dist/stores/userProfileStore/index.js.map +1 -1
  361. package/dist/theme/demoTheme/index.js +2 -2
  362. package/dist/theme/demoTheme/index.js.map +1 -1
  363. package/dist/utils/CaseDbDataUtil/CaseDbDataUtil.d.ts +1 -1
  364. package/dist/utils/CaseDbDataUtil/index.js +1 -1
  365. package/dist/utils/CaseDbDataUtil/index.js.map +1 -1
  366. package/dist/utils/CaseDbStandardConfigUtil/index.js +2488 -1408
  367. package/dist/utils/CaseDbStandardConfigUtil/index.js.map +1 -1
  368. package/dist/utils/CaseDbTableUtil/CaseDbTableUtil.d.ts +1 -1
  369. package/dist/utils/CaseDbTableUtil/index.js +1 -1
  370. package/dist/utils/CaseDbTableUtil/index.js.map +1 -1
  371. package/dist/utils/CaseSelectionUtil/index.js.map +1 -1
  372. package/dist/utils/CaseTypeFormUtil/CaseTypeFormUtil.d.ts +1 -1
  373. package/dist/utils/CaseTypeFormUtil/index.js +7 -10
  374. package/dist/utils/CaseTypeFormUtil/index.js.map +1 -1
  375. package/dist/utils/CaseTypeUtil/index.js +1 -1
  376. package/dist/utils/CaseTypeUtil/index.js.map +1 -1
  377. package/dist/utils/CaseUtil/index.js +3 -3
  378. package/dist/utils/CaseUtil/index.js.map +1 -1
  379. package/dist/utils/DashboardUtil/index.js +1 -1
  380. package/dist/utils/DashboardUtil/index.js.map +1 -1
  381. package/dist/utils/DataSetUtil/index.js.map +1 -1
  382. package/dist/utils/FileUtil/index.js +1 -1
  383. package/dist/utils/FileUtil/index.js.map +1 -1
  384. package/dist/utils/FilterUtil/FilterUtil.d.ts +2 -2
  385. package/dist/utils/HistogramUtil/index.js +1 -1
  386. package/dist/utils/HistogramUtil/index.js.map +1 -1
  387. package/dist/utils/MapUtil/index.js +1 -1
  388. package/dist/utils/MapUtil/index.js.map +1 -1
  389. package/dist/utils/StratificationUtil/index.js +3 -2
  390. package/dist/utils/StratificationUtil/index.js.map +1 -1
  391. package/dist/utils/UploadUtil/UploadUtil.d.ts +1 -1
  392. package/package.json +11 -11
  393. package/dist/_chunks/chunk-KS7C4IRE.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import * as e from "react";
2
- //#region ../../node_modules/.pnpm/react-router@7.18.1_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/react-router/dist/development/chunk-KS7C4IRE.mjs
2
+ //#region ../../node_modules/.pnpm/react-router@7.18.3_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-router/dist/development/chunk-BV7QT456.mjs
3
3
  var t = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, n = /^[\\/]{2}/;
4
4
  function r(e, t) {
5
5
  return t + e.replace(/\\/g, "/");
@@ -34,26 +34,15 @@ function c(e, t, n = "/") {
34
34
  function l(e, t, n, r, i) {
35
35
  let a = D((typeof t == "string" ? s(t) : t).pathname || "/", n);
36
36
  if (a == null) return null;
37
- let o = i ?? d(e), c = null, l = te(a);
38
- for (let e = 0; c == null && e < o.length; ++e) c = w(o[e], l, r);
37
+ let o = i ?? u(e), c = null, l = ee(a);
38
+ for (let e = 0; c == null && e < o.length; ++e) c = C(o[e], l, r);
39
39
  return c;
40
40
  }
41
- function u(e, t) {
42
- let { route: n, pathname: r, params: i } = e;
43
- return {
44
- id: n.id,
45
- pathname: r,
46
- params: i,
47
- data: t[n.id],
48
- loaderData: t[n.id],
49
- handle: n.handle
50
- };
41
+ function u(e) {
42
+ let t = d(e);
43
+ return p(t), t;
51
44
  }
52
- function d(e) {
53
- let t = f(e);
54
- return m(t), t;
55
- }
56
- function f(e, t = [], n = [], r = "", a = !1) {
45
+ function d(e, t = [], n = [], r = "", a = !1) {
57
46
  let o = (e, o, s = a, c) => {
58
47
  let l = {
59
48
  relativePath: c === void 0 ? e.path || "" : c,
@@ -65,12 +54,12 @@ function f(e, t = [], n = [], r = "", a = !1) {
65
54
  if (!l.relativePath.startsWith(r) && s) return;
66
55
  i(l.relativePath.startsWith(r), `Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), l.relativePath = l.relativePath.slice(r.length);
67
56
  }
68
- let u = A([r, l.relativePath]), d = n.concat(l);
69
- e.children && e.children.length > 0 && (i(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${u}".`), f(e.children, t, d, u, s)), !(e.path == null && !e.index) && t.push({
57
+ let u = A([r, l.relativePath]), f = n.concat(l);
58
+ e.children && e.children.length > 0 && (i(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${u}".`), d(e.children, t, f, u, s)), !(e.path == null && !e.index) && t.push({
70
59
  path: u,
71
- score: S(u, e.index),
72
- routesMeta: d.map((e, t) => {
73
- let [n, r] = ee(e.relativePath, e.caseSensitive, t === d.length - 1);
60
+ score: x(u, e.index),
61
+ routesMeta: f.map((e, t) => {
62
+ let [n, r] = E(e.relativePath, e.caseSensitive, t === f.length - 1);
74
63
  return {
75
64
  ...e,
76
65
  matcher: n,
@@ -81,37 +70,37 @@ function f(e, t = [], n = [], r = "", a = !1) {
81
70
  };
82
71
  return e.forEach((e, t) => {
83
72
  if (e.path === "" || !e.path?.includes("?")) o(e, t);
84
- else for (let n of p(e.path)) o(e, t, !0, n);
73
+ else for (let n of f(e.path)) o(e, t, !0, n);
85
74
  }), t;
86
75
  }
87
- function p(e) {
76
+ function f(e) {
88
77
  let t = e.split("/");
89
78
  if (t.length === 0) return [];
90
79
  let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
91
80
  if (r.length === 0) return i ? [a, ""] : [a];
92
- let o = p(r.join("/")), s = [];
81
+ let o = f(r.join("/")), s = [];
93
82
  return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
94
83
  }
95
- function m(e) {
96
- e.sort((e, t) => e.score === t.score ? C(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
84
+ function p(e) {
85
+ e.sort((e, t) => e.score === t.score ? S(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
97
86
  }
98
- var h = /^:[\w-]+$/, g = 3, _ = 2, v = 1, y = 10, b = -2, x = (e) => e === "*";
99
- function S(e, t) {
87
+ var m = /^:[\w-]+$/, h = 3, g = 2, _ = 1, v = 10, y = -2, b = (e) => e === "*";
88
+ function x(e, t) {
100
89
  let n = e.split("/"), r = n.length;
101
- return n.some(x) && (r += b), t && (r += _), n.filter((e) => !x(e)).reduce((e, t) => e + (h.test(t) ? g : t === "" ? v : y), r);
90
+ return n.some(b) && (r += y), t && (r += g), n.filter((e) => !b(e)).reduce((e, t) => e + (m.test(t) ? h : t === "" ? _ : v), r);
102
91
  }
103
- function C(e, t) {
92
+ function S(e, t) {
104
93
  return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
105
94
  }
106
- function w(e, t, n = !1) {
95
+ function C(e, t, n = !1) {
107
96
  let { routesMeta: r } = e, i = {}, a = "/", o = [];
108
97
  for (let e = 0; e < r.length; ++e) {
109
98
  let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
110
99
  path: s.relativePath,
111
100
  caseSensitive: s.caseSensitive,
112
101
  end: c
113
- }, d = s.matcher && s.compiledParams ? E(u, l, s.matcher, s.compiledParams) : T(u, l), f = s.route;
114
- if (!d && c && n && !r[r.length - 1].route.index && (d = T({
102
+ }, d = s.matcher && s.compiledParams ? T(u, l, s.matcher, s.compiledParams) : w(u, l), f = s.route;
103
+ if (!d && c && n && !r[r.length - 1].route.index && (d = w({
115
104
  path: s.relativePath,
116
105
  caseSensitive: s.caseSensitive,
117
106
  end: !1
@@ -119,40 +108,40 @@ function w(e, t, n = !1) {
119
108
  Object.assign(i, d.params), o.push({
120
109
  params: i,
121
110
  pathname: A([a, d.pathname]),
122
- pathnameBase: se(A([a, d.pathnameBase])),
111
+ pathnameBase: oe(A([a, d.pathnameBase])),
123
112
  route: f
124
113
  }), d.pathnameBase !== "/" && (a = A([a, d.pathnameBase]));
125
114
  }
126
115
  return o;
127
116
  }
128
- function T(e, t) {
117
+ function w(e, t) {
129
118
  typeof e == "string" && (e = {
130
119
  path: e,
131
120
  caseSensitive: !1,
132
121
  end: !0
133
122
  });
134
- let [n, r] = ee(e.path, e.caseSensitive, e.end);
135
- return E(e, t, n, r);
123
+ let [n, r] = E(e.path, e.caseSensitive, e.end);
124
+ return T(e, t, n, r);
136
125
  }
137
- function E(e, t, n, r) {
126
+ function T(e, t, n, r) {
138
127
  let i = t.match(n);
139
128
  if (!i) return null;
140
- let a = i[0], o = a.replace(/(.)\/+$/, "$1"), s = i.slice(1);
129
+ let a = i[0], o = j(a, 1), s = i.slice(1);
141
130
  return {
142
131
  params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
143
132
  if (t === "*") {
144
133
  let e = s[r] || "";
145
- o = a.slice(0, a.length - e.length).replace(/(.)\/+$/, "$1");
134
+ o = j(a.slice(0, a.length - e.length), 1);
146
135
  }
147
136
  let i = s[r];
148
- return n && !i ? e[t] = void 0 : e[t] = (i || "").replace(/%2F/g, "/"), e;
137
+ return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
149
138
  }, {}),
150
139
  pathname: a,
151
140
  pathnameBase: o,
152
141
  pattern: e
153
142
  };
154
143
  }
155
- function ee(e, t = !1, n = !0) {
144
+ function E(e, t = !1, n = !0) {
156
145
  a(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
157
146
  let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
158
147
  if (r.push({
@@ -166,7 +155,7 @@ function ee(e, t = !1, n = !0) {
166
155
  }).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
167
156
  return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
168
157
  }
169
- function te(e) {
158
+ function ee(e) {
170
159
  try {
171
160
  return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
172
161
  } catch (t) {
@@ -179,12 +168,12 @@ function D(e, t) {
179
168
  let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
180
169
  return r && r !== "/" ? null : e.slice(n) || "/";
181
170
  }
182
- function ne(e, t = "/") {
171
+ function te(e, t = "/") {
183
172
  let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? s(e) : e, a;
184
- return n ? (n = oe(n), a = n.startsWith("/") ? O(n.substring(1), "/") : O(n, t)) : a = t, {
173
+ return n ? (n = ae(n), a = n.startsWith("/") || n.startsWith("\\") ? O(n.substring(1), "/") : O(n, t)) : a = t, {
185
174
  pathname: a,
186
- search: ce(r),
187
- hash: le(i)
175
+ search: se(r),
176
+ hash: ce(i)
188
177
  };
189
178
  }
190
179
  function O(e, t) {
@@ -193,19 +182,19 @@ function O(e, t) {
193
182
  e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
194
183
  }), n.length > 1 ? n.join("/") : "/";
195
184
  }
196
- function re(e, t, n, r) {
185
+ function k(e, t, n, r) {
197
186
  return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
198
187
  }
199
- function ie(e) {
188
+ function ne(e) {
200
189
  return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
201
190
  }
202
- function ae(e) {
203
- let t = ie(e);
191
+ function re(e) {
192
+ let t = ne(e);
204
193
  return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
205
194
  }
206
- function k(e, t, n, r = !1) {
195
+ function ie(e, t, n, r = !1) {
207
196
  let a;
208
- typeof e == "string" ? a = s(e) : (a = { ...e }, i(!a.pathname || !a.pathname.includes("?"), re("?", "pathname", "search", a)), i(!a.pathname || !a.pathname.includes("#"), re("#", "pathname", "hash", a)), i(!a.search || !a.search.includes("#"), re("#", "search", "hash", a)));
197
+ typeof e == "string" ? a = s(e) : (a = { ...e }, i(!a.pathname || !a.pathname.includes("?"), k("?", "pathname", "search", a)), i(!a.pathname || !a.pathname.includes("#"), k("#", "pathname", "hash", a)), i(!a.search || !a.search.includes("#"), k("#", "search", "hash", a)));
209
198
  let o = e === "" || a.pathname === "", c = o ? "/" : a.pathname, l;
210
199
  if (c == null) l = n;
211
200
  else {
@@ -217,22 +206,28 @@ function k(e, t, n, r = !1) {
217
206
  }
218
207
  l = e >= 0 ? t[e] : "/";
219
208
  }
220
- let u = ne(a, l), d = c && c !== "/" && c.endsWith("/"), f = (o || c === ".") && n.endsWith("/");
209
+ let u = te(a, l), d = c && c !== "/" && c.endsWith("/"), f = (o || c === ".") && n.endsWith("/");
221
210
  return !u.pathname.endsWith("/") && (d || f) && (u.pathname += "/"), u;
222
211
  }
223
- var oe = (e) => e.replace(/[\\/]{2,}/g, "/"), A = (e) => oe(e.join("/")), j = (e) => e.replace(/\/+$/, ""), se = (e) => j(e).replace(/^\/*/, "/"), ce = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, le = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ue = class {
212
+ var ae = (e) => e.replace(/[\\/]{2,}/g, "/"), A = (e) => ae(e.join("/"));
213
+ function j(e, t = 0) {
214
+ let n = e.length;
215
+ for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
216
+ return n === e.length ? e : e.slice(0, n);
217
+ }
218
+ var oe = (e) => j(e).replace(/^\/*/, "/"), se = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, ce = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, le = class {
224
219
  constructor(e, t, n, r = !1) {
225
220
  this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
226
221
  }
227
222
  };
228
- function de(e) {
223
+ function ue(e) {
229
224
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
230
225
  }
231
- function fe(e) {
226
+ function de(e) {
232
227
  return A(e.map((e) => e.route.path).filter(Boolean)) || "/";
233
228
  }
234
- var pe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
235
- function me(e, i) {
229
+ var fe = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
230
+ function pe(e, i) {
236
231
  let o = e;
237
232
  if (typeof o != "string" || !t.test(o)) return {
238
233
  absoluteURL: void 0,
@@ -240,7 +235,7 @@ function me(e, i) {
240
235
  to: o
241
236
  };
242
237
  let s = o, c = !1;
243
- if (pe) try {
238
+ if (fe) try {
244
239
  let e = new URL(window.location.href), t = n.test(o) ? new URL(r(o, e.protocol)) : new URL(o), a = D(t.pathname, i);
245
240
  t.origin === e.origin && a != null ? o = a + t.search + t.hash : c = !0;
246
241
  } catch {
@@ -253,16 +248,43 @@ function me(e, i) {
253
248
  };
254
249
  }
255
250
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
256
- var he = [
251
+ var me = new URL("http://localhost");
252
+ function he(e) {
253
+ if (e.createURL) return e.createURL("/");
254
+ try {
255
+ return new URL(e.createHref("/"), me);
256
+ } catch {
257
+ return me;
258
+ }
259
+ }
260
+ function M(e, t) {
261
+ return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
262
+ }
263
+ function ge(e, t) {
264
+ if (e.startsWith("//")) return !0;
265
+ let n = t.protocol.toLowerCase();
266
+ return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
267
+ }
268
+ function _e(e, t, n, r) {
269
+ let i = null;
270
+ try {
271
+ i = e == null ? null : new URL(e, n);
272
+ } catch {}
273
+ let a = new URL(t, n), o = i != null && !M(i, n), s = !M(a, n);
274
+ if (r === "reject") {
275
+ if (o || s) throw Error("External navigation is not allowed");
276
+ } else if (s && (i == null || !ge(e, i) || !M(i, a))) throw Error("External navigation is not allowed");
277
+ }
278
+ var ve = [
257
279
  "POST",
258
280
  "PUT",
259
281
  "PATCH",
260
282
  "DELETE"
261
283
  ];
262
- new Set(he);
263
- var ge = ["GET", ...he];
264
- new Set(ge);
265
- var _e = [
284
+ new Set(ve);
285
+ var ye = ["GET", ...ve];
286
+ new Set(ye);
287
+ var be = [
266
288
  "about:",
267
289
  "blob:",
268
290
  "chrome:",
@@ -274,120 +296,120 @@ var _e = [
274
296
  "filesystem:",
275
297
  "javascript:"
276
298
  ];
277
- function ve(e) {
299
+ function xe(e) {
278
300
  try {
279
- return _e.includes(new URL(e).protocol);
301
+ return be.includes(new URL(e).protocol);
280
302
  } catch {
281
303
  return !1;
282
304
  }
283
305
  }
284
- var M = e.createContext(null);
285
- M.displayName = "DataRouter";
286
306
  var N = e.createContext(null);
287
- N.displayName = "DataRouterState";
288
- var ye = e.createContext(!1);
289
- function be() {
290
- return e.useContext(ye);
291
- }
292
- var xe = e.createContext({ isTransitioning: !1 });
293
- xe.displayName = "ViewTransition";
294
- var Se = e.createContext(/* @__PURE__ */ new Map());
295
- Se.displayName = "Fetchers";
296
- var Ce = e.createContext(null);
297
- Ce.displayName = "Await";
307
+ N.displayName = "DataRouter";
298
308
  var P = e.createContext(null);
299
- P.displayName = "Navigation";
309
+ P.displayName = "DataRouterState";
310
+ var Se = e.createContext(!1);
311
+ function Ce() {
312
+ return e.useContext(Se);
313
+ }
314
+ var we = e.createContext({ isTransitioning: !1 });
315
+ we.displayName = "ViewTransition";
316
+ var Te = e.createContext(/* @__PURE__ */ new Map());
317
+ Te.displayName = "Fetchers";
318
+ var Ee = e.createContext(null);
319
+ Ee.displayName = "Await";
300
320
  var F = e.createContext(null);
301
- F.displayName = "Location";
302
- var I = e.createContext({
321
+ F.displayName = "Navigation";
322
+ var I = e.createContext(null);
323
+ I.displayName = "Location";
324
+ var L = e.createContext({
303
325
  outlet: null,
304
326
  matches: [],
305
327
  isDataRoute: !1
306
328
  });
307
- I.displayName = "Route";
308
- var we = e.createContext(null);
309
- we.displayName = "RouteError";
310
- var Te = "REACT_ROUTER_ERROR", Ee = "REDIRECT", De = "ROUTE_ERROR_RESPONSE";
311
- function Oe(e) {
312
- if (e.startsWith(`${Te}:${Ee}:{`)) try {
329
+ L.displayName = "Route";
330
+ var R = e.createContext(null);
331
+ R.displayName = "RouteError";
332
+ var De = "REACT_ROUTER_ERROR", Oe = "REDIRECT", ke = "ROUTE_ERROR_RESPONSE";
333
+ function Ae(e) {
334
+ if (e.startsWith(`${De}:${Oe}:{`)) try {
313
335
  let t = JSON.parse(e.slice(28));
314
336
  if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
315
337
  } catch {}
316
338
  }
317
- function ke(e) {
318
- if (e.startsWith(`${Te}:${De}:{`)) try {
339
+ function je(e) {
340
+ if (e.startsWith(`${De}:${ke}:{`)) try {
319
341
  let t = JSON.parse(e.slice(40));
320
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new ue(t.status, t.statusText, t.data);
342
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new le(t.status, t.statusText, t.data);
321
343
  } catch {}
322
344
  }
323
- function Ae(t, { relative: n } = {}) {
324
- i(L(), "useHref() may be used only in the context of a <Router> component.");
325
- let { basename: r, navigator: a } = e.useContext(P), { hash: o, pathname: s, search: c } = z(t, { relative: n }), l = s;
345
+ function Me(t, { relative: n } = {}) {
346
+ i(z(), "useHref() may be used only in the context of a <Router> component.");
347
+ let { basename: r, navigator: a } = e.useContext(F), { hash: o, pathname: s, search: c } = V(t, { relative: n }), l = s;
326
348
  return r !== "/" && (l = s === "/" ? r : A([r, s])), a.createHref({
327
349
  pathname: l,
328
350
  search: c,
329
351
  hash: o
330
352
  });
331
353
  }
332
- function L() {
333
- return e.useContext(F) != null;
334
- }
335
- function R() {
336
- return i(L(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(F).location;
354
+ function z() {
355
+ return e.useContext(I) != null;
337
356
  }
338
- var je = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
339
- function Me(t) {
340
- e.useContext(P).static || e.useLayoutEffect(t);
357
+ function B() {
358
+ return i(z(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(I).location;
341
359
  }
342
- function Ne() {
343
- let { isDataRoute: t } = e.useContext(I);
344
- return t ? Ye() : Pe();
360
+ var Ne = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
361
+ function Pe(t) {
362
+ e.useContext(F).static || e.useLayoutEffect(t);
345
363
  }
346
- function Pe() {
347
- i(L(), "useNavigate() may be used only in the context of a <Router> component.");
348
- let t = e.useContext(M), { basename: n, navigator: r } = e.useContext(P), { matches: o } = e.useContext(I), { pathname: s } = R(), c = JSON.stringify(ae(o)), l = e.useRef(!1);
349
- return Me(() => {
350
- l.current = !0;
364
+ function Fe() {
365
+ let { isDataRoute: t } = e.useContext(L);
366
+ return t ? Xe() : Ie();
367
+ }
368
+ function Ie() {
369
+ i(z(), "useNavigate() may be used only in the context of a <Router> component.");
370
+ let t = e.useContext(N), { basename: n, navigator: r } = e.useContext(F), { matches: s } = e.useContext(L), { pathname: c } = B(), l = JSON.stringify(re(s)), u = e.useRef(!1);
371
+ return Pe(() => {
372
+ u.current = !0;
351
373
  }), e.useCallback((e, i = {}) => {
352
- if (a(l.current, je), !l.current) return;
374
+ if (a(u.current, Ne), !u.current) return;
353
375
  if (typeof e == "number") {
354
376
  r.go(e);
355
377
  return;
356
378
  }
357
- let o = k(e, JSON.parse(c), s, i.relative === "path");
358
- t == null && n !== "/" && (o.pathname = o.pathname === "/" ? n : A([n, o.pathname])), (i.replace ? r.replace : r.push)(o, i.state, i);
379
+ let s = ie(e, JSON.parse(l), c, i.relative === "path");
380
+ t == null && n !== "/" && (s.pathname = s.pathname === "/" ? n : A([n, s.pathname])), _e(typeof e == "string" ? e : o(e), r.createHref(s), he(r), "reject"), (i.replace ? r.replace : r.push)(s, i.state, i);
359
381
  }, [
360
382
  n,
361
383
  r,
384
+ l,
362
385
  c,
363
- s,
364
386
  t
365
387
  ]);
366
388
  }
367
389
  e.createContext(null);
368
- function Fe() {
369
- let { matches: t } = e.useContext(I);
390
+ function Le() {
391
+ let { matches: t } = e.useContext(L);
370
392
  return t[t.length - 1]?.params ?? {};
371
393
  }
372
- function z(t, { relative: n } = {}) {
373
- let { matches: r } = e.useContext(I), { pathname: i } = R(), a = JSON.stringify(ae(r));
374
- return e.useMemo(() => k(t, JSON.parse(a), i, n === "path"), [
394
+ function V(t, { relative: n } = {}) {
395
+ let { matches: r } = e.useContext(L), { pathname: i } = B(), a = JSON.stringify(re(r));
396
+ return e.useMemo(() => ie(t, JSON.parse(a), i, n === "path"), [
375
397
  t,
376
398
  a,
377
399
  i,
378
400
  n
379
401
  ]);
380
402
  }
381
- function Ie(t, n, r) {
382
- i(L(), "useRoutes() may be used only in the context of a <Router> component.");
383
- let { navigator: o } = e.useContext(P), { matches: l } = e.useContext(I), u = l[l.length - 1], d = u ? u.params : {}, f = u ? u.pathname : "/", p = u ? u.pathnameBase : "/", m = u && u.route;
403
+ function Re(t, n, r) {
404
+ i(z(), "useRoutes() may be used only in the context of a <Router> component.");
405
+ let { navigator: o } = e.useContext(F), { matches: l } = e.useContext(L), u = l[l.length - 1], d = u ? u.params : {}, f = u ? u.pathname : "/", p = u ? u.pathnameBase : "/", m = u && u.route;
384
406
  {
385
407
  let e = m && m.path || "";
386
- Ze(f, !m || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
408
+ Qe(f, !m || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
387
409
 
388
410
  Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" : `${e}/*`}">.`);
389
411
  }
390
- let h = R(), g;
412
+ let h = B(), g;
391
413
  if (n) {
392
414
  let e = typeof n == "string" ? s(n) : n;
393
415
  i(p === "/" || e.pathname?.startsWith(p), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${e.pathname}" was given in the \`location\` prop.`), g = e;
@@ -399,12 +421,12 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
399
421
  }
400
422
  let y = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : c(t, { pathname: v });
401
423
  a(m || y != null, `No routes matched location "${g.pathname}${g.search}${g.hash}" `), a(y == null || y[y.length - 1].route.element !== void 0 || y[y.length - 1].route.Component !== void 0 || y[y.length - 1].route.lazy !== void 0, `Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
402
- let b = He(y && y.map((e) => Object.assign({}, e, {
424
+ let b = We(y && y.map((e) => Object.assign({}, e, {
403
425
  params: Object.assign({}, d, e.params),
404
426
  pathname: A([p, o.encodeLocation ? o.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
405
427
  pathnameBase: e.pathnameBase === "/" ? p : A([p, o.encodeLocation ? o.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
406
428
  })), l, r);
407
- return n && b ? /* @__PURE__ */ e.createElement(F.Provider, { value: {
429
+ return n && b ? /* @__PURE__ */ e.createElement(I.Provider, { value: {
408
430
  location: {
409
431
  pathname: "/",
410
432
  search: "",
@@ -417,8 +439,8 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
417
439
  navigationType: "POP"
418
440
  } }, b) : b;
419
441
  }
420
- function Le() {
421
- let t = Je(), n = de(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
442
+ function ze() {
443
+ let t = Ye(), n = ue(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
422
444
  padding: "0.5rem",
423
445
  backgroundColor: i
424
446
  }, o = {
@@ -427,7 +449,7 @@ function Le() {
427
449
  }, s = null;
428
450
  return console.error("Error handled by React Router default ErrorBoundary:", t), s = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ e.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ e.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ e.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ e.createElement("h3", { style: { fontStyle: "italic" } }, n), r ? /* @__PURE__ */ e.createElement("pre", { style: a }, r) : null, s);
429
451
  }
430
- var Re = /* @__PURE__ */ e.createElement(Le, null), ze = class extends e.Component {
452
+ var Be = /* @__PURE__ */ e.createElement(ze, null), Ve = class extends e.Component {
431
453
  constructor(e) {
432
454
  super(e), this.state = {
433
455
  location: e.location,
@@ -455,45 +477,47 @@ var Re = /* @__PURE__ */ e.createElement(Le, null), ze = class extends e.Compone
455
477
  render() {
456
478
  let t = this.state.error;
457
479
  if (this.context && typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
458
- let e = ke(t.digest);
480
+ let e = je(t.digest);
459
481
  e && (t = e);
460
482
  }
461
- let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(I.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(we.Provider, {
483
+ let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(L.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(R.Provider, {
462
484
  value: t,
463
485
  children: this.props.component
464
486
  }));
465
- return this.context ? /* @__PURE__ */ e.createElement(Be, { error: t }, n) : n;
487
+ return this.context ? /* @__PURE__ */ e.createElement(He, { error: t }, n) : n;
466
488
  }
467
489
  };
468
- ze.contextType = ye;
469
- var B = /* @__PURE__ */ new WeakMap();
470
- function Be({ children: t, error: n }) {
471
- let { basename: r } = e.useContext(P);
490
+ Ve.contextType = Se;
491
+ var H = /* @__PURE__ */ new WeakMap();
492
+ function He({ children: t, error: n }) {
493
+ let { basename: r, navigator: i } = e.useContext(F);
472
494
  if (typeof n == "object" && n && "digest" in n && typeof n.digest == "string") {
473
- let t = Oe(n.digest);
495
+ let t = Ae(n.digest);
474
496
  if (t) {
475
- let i = B.get(n);
476
- if (i) throw i;
477
- let a = me(t.location, r), o = a.absoluteURL || a.to;
478
- if (ve(o)) throw Error("Invalid redirect location");
479
- if (pe && !B.get(n)) if (a.isExternal || t.reloadDocument) window.location.href = o;
480
- else {
481
- let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: t.replace }));
482
- throw B.set(n, e), e;
497
+ let a = H.get(n);
498
+ if (a) throw a;
499
+ let o = pe(t.location, r), s = o.absoluteURL || o.to;
500
+ if (_e(t.location, s, he(i), "allow-explicit"), xe(s)) throw Error("Invalid redirect location");
501
+ if (fe && !H.get(n)) {
502
+ if (o.isExternal || t.reloadDocument) window.location.href = s;
503
+ else {
504
+ let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(o.to, { replace: t.replace }));
505
+ throw H.set(n, e), e;
506
+ }
483
507
  }
484
508
  return /* @__PURE__ */ e.createElement("meta", {
485
509
  httpEquiv: "refresh",
486
- content: `0;url=${o}`
510
+ content: `0;url=${s}`
487
511
  });
488
512
  }
489
513
  }
490
514
  return t;
491
515
  }
492
- function Ve({ routeContext: t, match: n, children: r }) {
493
- let i = e.useContext(M);
494
- return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(I.Provider, { value: t }, r);
516
+ function Ue({ routeContext: t, match: n, children: r }) {
517
+ let i = e.useContext(N);
518
+ return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(L.Provider, { value: t }, r);
495
519
  }
496
- function He(t, n = [], r) {
520
+ function We(t, n = [], r) {
497
521
  let a = r?.state;
498
522
  if (t == null) {
499
523
  if (!a) return null;
@@ -524,16 +548,16 @@ function He(t, n = [], r) {
524
548
  u(e, {
525
549
  location: a.location,
526
550
  params: a.matches?.[0]?.params ?? {},
527
- pattern: fe(a.matches),
551
+ pattern: de(a.matches),
528
552
  errorInfo: t
529
553
  });
530
554
  } : void 0;
531
555
  return o.reduceRight((t, r, i) => {
532
556
  let u, f = !1, p = null, m = null;
533
- a && (u = s && r.route.id ? s[r.route.id] : void 0, p = r.route.errorElement || Re, c && (l < 0 && i === 0 ? (Ze("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : l === i && (f = !0, m = r.route.hydrateFallbackElement || null)));
557
+ a && (u = s && r.route.id ? s[r.route.id] : void 0, p = r.route.errorElement || Be, c && (l < 0 && i === 0 ? (Qe("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : l === i && (f = !0, m = r.route.hydrateFallbackElement || null)));
534
558
  let h = n.concat(o.slice(0, i + 1)), g = () => {
535
559
  let n;
536
- return n = u ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(Ve, {
560
+ return n = u ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(Ue, {
537
561
  match: r,
538
562
  routeContext: {
539
563
  outlet: t,
@@ -543,7 +567,7 @@ function He(t, n = [], r) {
543
567
  children: n
544
568
  });
545
569
  };
546
- return a && (r.route.ErrorBoundary || r.route.errorElement || i === 0) ? /* @__PURE__ */ e.createElement(ze, {
570
+ return a && (r.route.ErrorBoundary || r.route.errorElement || i === 0) ? /* @__PURE__ */ e.createElement(Ve, {
547
571
  location: a.location,
548
572
  revalidation: a.revalidation,
549
573
  component: p,
@@ -558,61 +582,50 @@ function He(t, n = [], r) {
558
582
  }) : g();
559
583
  }, null);
560
584
  }
561
- function V(e) {
585
+ function U(e) {
562
586
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
563
587
  }
564
- function Ue(t) {
565
- let n = e.useContext(M);
566
- return i(n, V(t)), n;
567
- }
568
- function H(t) {
588
+ function Ge(t) {
569
589
  let n = e.useContext(N);
570
- return i(n, V(t)), n;
571
- }
572
- function We(t) {
573
- let n = e.useContext(I);
574
- return i(n, V(t)), n;
575
- }
576
- function U(e) {
577
- let t = We(e), n = t.matches[t.matches.length - 1];
578
- return i(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
590
+ return i(n, U(t)), n;
579
591
  }
580
- function Ge() {
581
- return U("useRouteId");
592
+ function Ke(t) {
593
+ let n = e.useContext(P);
594
+ return i(n, U(t)), n;
582
595
  }
583
- function Ke() {
584
- let t = H("useNavigation");
585
- return e.useMemo(() => {
586
- let { matches: e, historyAction: n, ...r } = t.navigation;
587
- return r;
588
- }, [t.navigation]);
596
+ function qe(t) {
597
+ let n = e.useContext(L);
598
+ return i(n, U(t)), n;
589
599
  }
590
- function qe() {
591
- let { matches: t, loaderData: n } = H("useMatches");
592
- return e.useMemo(() => t.map((e) => u(e, n)), [t, n]);
600
+ function W(e) {
601
+ let t = qe(e), n = t.matches[t.matches.length - 1];
602
+ return i(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
593
603
  }
594
604
  function Je() {
595
- let t = e.useContext(we), n = H("useRouteError"), r = U("useRouteError");
596
- return t === void 0 ? n.errors?.[r] : t;
605
+ return W("useRouteId");
597
606
  }
598
607
  function Ye() {
599
- let { router: t } = Ue("useNavigate"), n = U("useNavigate"), r = e.useRef(!1);
600
- return Me(() => {
608
+ let t = e.useContext(R), n = Ke("useRouteError"), r = W("useRouteError");
609
+ return t === void 0 ? n.errors?.[r] : t;
610
+ }
611
+ function Xe() {
612
+ let { router: t } = Ge("useNavigate"), n = W("useNavigate"), r = e.useRef(!1);
613
+ return Pe(() => {
601
614
  r.current = !0;
602
615
  }), e.useCallback(async (e, i = {}) => {
603
- a(r.current, je), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
616
+ a(r.current, Ne), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
604
617
  fromRouteId: n,
605
618
  ...i
606
619
  }));
607
620
  }, [t, n]);
608
621
  }
609
- var Xe = {};
610
- function Ze(e, t, n) {
611
- !t && !Xe[e] && (Xe[e] = !0, a(!1, n));
622
+ var Ze = {};
623
+ function Qe(e, t, n) {
624
+ !t && !Ze[e] && (Ze[e] = !0, a(!1, n));
612
625
  }
613
- e.memo(Qe);
614
- function Qe({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
615
- return Ie(e, void 0, {
626
+ e.memo($e);
627
+ function $e({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
628
+ return Re(e, void 0, {
616
629
  manifest: t,
617
630
  state: r,
618
631
  isStatic: i,
@@ -620,62 +633,19 @@ function Qe({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError:
620
633
  future: n
621
634
  });
622
635
  }
623
- function $e({ basename: t = "/", children: n = null, location: r, navigationType: o = "POP", navigator: c, static: l = !1, useTransitions: u }) {
624
- i(!L(), "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
625
- let d = t.replace(/^\/*/, "/"), f = e.useMemo(() => ({
626
- basename: d,
627
- navigator: c,
628
- static: l,
629
- useTransitions: u,
630
- future: {}
631
- }), [
632
- d,
633
- c,
634
- l,
635
- u
636
- ]);
637
- typeof r == "string" && (r = s(r));
638
- let { pathname: p = "/", search: m = "", hash: h = "", state: g = null, key: _ = "default", mask: v } = r, y = e.useMemo(() => {
639
- let e = D(p, d);
640
- return e == null ? null : {
641
- location: {
642
- pathname: e,
643
- search: m,
644
- hash: h,
645
- state: g,
646
- key: _,
647
- mask: v
648
- },
649
- navigationType: o
650
- };
651
- }, [
652
- d,
653
- p,
654
- m,
655
- h,
656
- g,
657
- _,
658
- o,
659
- v
660
- ]);
661
- return a(y != null, `<Router basename="${d}"> is not able to match the URL "${p}${m}${h}" because it does not start with the basename, so the <Router> won't render anything.`), y == null ? null : /* @__PURE__ */ e.createElement(P.Provider, { value: f }, /* @__PURE__ */ e.createElement(F.Provider, {
662
- children: n,
663
- value: y
664
- }));
665
- }
666
636
  e.Component;
667
- var W = "get", G = "application/x-www-form-urlencoded";
668
- function K(e) {
637
+ var G = "get", K = "application/x-www-form-urlencoded";
638
+ function q(e) {
669
639
  return typeof HTMLElement < "u" && e instanceof HTMLElement;
670
640
  }
671
641
  function et(e) {
672
- return K(e) && e.tagName.toLowerCase() === "button";
642
+ return q(e) && e.tagName.toLowerCase() === "button";
673
643
  }
674
644
  function tt(e) {
675
- return K(e) && e.tagName.toLowerCase() === "form";
645
+ return q(e) && e.tagName.toLowerCase() === "form";
676
646
  }
677
647
  function nt(e) {
678
- return K(e) && e.tagName.toLowerCase() === "input";
648
+ return q(e) && e.tagName.toLowerCase() === "input";
679
649
  }
680
650
  function rt(e) {
681
651
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
@@ -683,41 +653,41 @@ function rt(e) {
683
653
  function it(e, t) {
684
654
  return e.button === 0 && (!t || t === "_self") && !rt(e);
685
655
  }
686
- var q = null;
656
+ var J = null;
687
657
  function at() {
688
- if (q === null) try {
689
- new FormData(document.createElement("form"), 0), q = !1;
658
+ if (J === null) try {
659
+ new FormData(document.createElement("form"), 0), J = !1;
690
660
  } catch {
691
- q = !0;
661
+ J = !0;
692
662
  }
693
- return q;
663
+ return J;
694
664
  }
695
665
  var ot = /* @__PURE__ */ new Set([
696
666
  "application/x-www-form-urlencoded",
697
667
  "multipart/form-data",
698
668
  "text/plain"
699
669
  ]);
700
- function st(e) {
701
- return e != null && !ot.has(e) ? (a(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${G}"`), null) : e;
670
+ function Y(e) {
671
+ return e != null && !ot.has(e) ? (a(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${K}"`), null) : e;
702
672
  }
703
- function ct(e, t) {
673
+ function st(e, t) {
704
674
  let n, r, i, a, o;
705
675
  if (tt(e)) {
706
676
  let o = e.getAttribute("action");
707
- r = o ? D(o, t) : null, n = e.getAttribute("method") || W, i = st(e.getAttribute("enctype")) || G, a = new FormData(e);
677
+ r = o ? D(o, t) : null, n = e.getAttribute("method") || G, i = Y(e.getAttribute("enctype")) || K, a = new FormData(e);
708
678
  } else if (et(e) || nt(e) && (e.type === "submit" || e.type === "image")) {
709
679
  let o = e.form;
710
680
  if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
711
681
  let s = e.getAttribute("formaction") || o.getAttribute("action");
712
- if (r = s ? D(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || W, i = st(e.getAttribute("formenctype")) || st(o.getAttribute("enctype")) || G, a = new FormData(o, e), !at()) {
682
+ if (r = s ? D(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || G, i = Y(e.getAttribute("formenctype")) || Y(o.getAttribute("enctype")) || K, a = new FormData(o, e), !at()) {
713
683
  let { name: t, type: n, value: r } = e;
714
684
  if (n === "image") {
715
685
  let e = t ? `${t}.` : "";
716
686
  a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
717
687
  } else t && a.append(t, r);
718
688
  }
719
- } else if (K(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
720
- else n = W, r = null, i = G, o = e;
689
+ } else if (q(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
690
+ else n = G, r = null, i = K, o = e;
721
691
  return a && i === "text/plain" && (o = a, a = void 0), {
722
692
  action: r,
723
693
  method: n.toLowerCase(),
@@ -727,24 +697,14 @@ function ct(e, t) {
727
697
  };
728
698
  }
729
699
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
730
- var lt = {
731
- "&": "\\u0026",
732
- ">": "\\u003e",
733
- "<": "\\u003c",
734
- "\u2028": "\\u2028",
735
- "\u2029": "\\u2029"
736
- }, ut = /[&><\u2028\u2029]/g;
737
- function dt(e) {
738
- return e.replace(ut, (e) => lt[e]);
739
- }
740
- function ft(e, t) {
700
+ function X(e, t) {
741
701
  if (e === !1 || e == null) throw Error(t);
742
702
  }
743
- function pt(e, t, n, r) {
703
+ function ct(e, t, n, r) {
744
704
  let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
745
- return n ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${r}` : i.pathname = `${i.pathname}.${r}` : i.pathname === "/" ? i.pathname = `_root.${r}` : t && D(i.pathname, t) === "/" ? i.pathname = `${j(t)}/_root.${r}` : i.pathname = `${j(i.pathname)}.${r}`, i;
705
+ return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && D(i.pathname, t) === "/" ? `${j(t)}/_root.${r}` : `${j(i.pathname)}.${r}`, i;
746
706
  }
747
- async function mt(e, t) {
707
+ async function lt(e, t) {
748
708
  if (e.id in t) return t[e.id];
749
709
  try {
750
710
  let n = await import(
@@ -757,21 +717,21 @@ async function mt(e, t) {
757
717
  return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
758
718
  }
759
719
  }
760
- function ht(e) {
720
+ function ut(e) {
761
721
  return e != null && typeof e.page == "string";
762
722
  }
763
- function gt(e) {
723
+ function dt(e) {
764
724
  return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
765
725
  }
766
- async function _t(e, t, n) {
767
- return St((await Promise.all(e.map(async (e) => {
726
+ async function ft(e, t, n) {
727
+ return _t((await Promise.all(e.map(async (e) => {
768
728
  let r = t.routes[e.route.id];
769
729
  if (r) {
770
- let e = await mt(r, n);
730
+ let e = await lt(r, n);
771
731
  return e.links ? e.links() : [];
772
732
  }
773
733
  return [];
774
- }))).flat(1).filter(gt).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
734
+ }))).flat(1).filter(dt).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
775
735
  ...e,
776
736
  rel: "prefetch",
777
737
  as: "style"
@@ -780,8 +740,8 @@ async function _t(e, t, n) {
780
740
  rel: "prefetch"
781
741
  }));
782
742
  }
783
- function vt(e, t, n, r, i, a) {
784
- let o = (e, t) => n[t] ? e.route.id !== n[t].route.id : !0, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
743
+ function pt(e, t, n, r, i, a) {
744
+ let o = (e, t) => !n[t] || e.route.id !== n[t].route.id, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
785
745
  return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
786
746
  let c = r.routes[t.route.id];
787
747
  if (!c || !c.hasLoader) return !1;
@@ -799,49 +759,49 @@ function vt(e, t, n, r, i, a) {
799
759
  return !0;
800
760
  }) : [];
801
761
  }
802
- function yt(e, t, { includeHydrateFallback: n } = {}) {
803
- return bt(e.map((e) => {
762
+ function mt(e, t, { includeHydrateFallback: n } = {}) {
763
+ return ht(e.map((e) => {
804
764
  let r = t.routes[e.route.id];
805
765
  if (!r) return [];
806
766
  let i = [r.module];
807
767
  return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
808
768
  }).flat(1));
809
769
  }
810
- function bt(e) {
770
+ function ht(e) {
811
771
  return [...new Set(e)];
812
772
  }
813
- function xt(e) {
773
+ function gt(e) {
814
774
  let t = {}, n = Object.keys(e).sort();
815
775
  for (let r of n) t[r] = e[r];
816
776
  return t;
817
777
  }
818
- function St(e, t) {
778
+ function _t(e, t) {
819
779
  let n = /* @__PURE__ */ new Set(), r = new Set(t);
820
780
  return e.reduce((e, i) => {
821
- if (t && !ht(i) && i.as === "script" && i.href && r.has(i.href)) return e;
822
- let a = JSON.stringify(xt(i));
781
+ if (t && !ut(i) && i.as === "script" && i.href && r.has(i.href)) return e;
782
+ let a = JSON.stringify(gt(i));
823
783
  return n.has(a) || (n.add(a), e.push({
824
784
  key: a,
825
785
  link: i
826
786
  })), e;
827
787
  }, []);
828
788
  }
829
- function J() {
830
- let t = e.useContext(M);
831
- return ft(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
832
- }
833
- function Ct() {
789
+ function Z() {
834
790
  let t = e.useContext(N);
835
- return ft(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
791
+ return X(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
792
+ }
793
+ function vt() {
794
+ let t = e.useContext(P);
795
+ return X(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
836
796
  }
837
- var Y = e.createContext(void 0);
838
- Y.displayName = "FrameworkContext";
839
- function X() {
840
- let t = e.useContext(Y);
841
- return ft(t, "You must render this element inside a <HydratedRouter> element"), t;
797
+ var yt = e.createContext(void 0);
798
+ yt.displayName = "FrameworkContext";
799
+ function Q() {
800
+ let t = e.useContext(yt);
801
+ return X(t, "You must render this element inside a <HydratedRouter> element"), t;
842
802
  }
843
- function wt(t, n) {
844
- let r = e.useContext(Y), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
803
+ function bt(t, n) {
804
+ let r = e.useContext(yt), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
845
805
  e.useEffect(() => {
846
806
  if (t === "render" && s(!0), t === "viewport") {
847
807
  let e = new IntersectionObserver((e) => {
@@ -872,11 +832,11 @@ function wt(t, n) {
872
832
  o,
873
833
  p,
874
834
  {
875
- onFocus: Z(c, m),
876
- onBlur: Z(l, h),
877
- onMouseEnter: Z(u, m),
878
- onMouseLeave: Z(d, h),
879
- onTouchStart: Z(f, m)
835
+ onFocus: $(c, m),
836
+ onBlur: $(l, h),
837
+ onMouseEnter: $(u, m),
838
+ onMouseLeave: $(d, h),
839
+ onTouchStart: $(f, m)
880
840
  }
881
841
  ] : [
882
842
  o,
@@ -888,13 +848,13 @@ function wt(t, n) {
888
848
  {}
889
849
  ];
890
850
  }
891
- function Z(e, t) {
851
+ function $(e, t) {
892
852
  return (n) => {
893
853
  e && e(n), n.defaultPrevented || t(n);
894
854
  };
895
855
  }
896
- function Tt({ page: t, ...n }) {
897
- let r = be(), { nonce: i } = X(), { router: a } = J(), o = e.useMemo(() => c(a.routes, t, a.basename), [
856
+ function xt({ page: t, ...n }) {
857
+ let r = Ce(), { nonce: i } = Q(), { router: a } = Z(), o = e.useMemo(() => c(a.routes, t, a.basename), [
898
858
  a.routes,
899
859
  t,
900
860
  a.basename
@@ -902,21 +862,21 @@ function Tt({ page: t, ...n }) {
902
862
  return o ? (n.nonce == null && i && (n = {
903
863
  ...n,
904
864
  nonce: i
905
- }), r ? /* @__PURE__ */ e.createElement(Dt, {
865
+ }), r ? /* @__PURE__ */ e.createElement(Ct, {
906
866
  page: t,
907
867
  matches: o,
908
868
  ...n
909
- }) : /* @__PURE__ */ e.createElement(Ot, {
869
+ }) : /* @__PURE__ */ e.createElement(wt, {
910
870
  page: t,
911
871
  matches: o,
912
872
  ...n
913
873
  })) : null;
914
874
  }
915
- function Et(t) {
916
- let { manifest: n, routeModules: r } = X(), [i, a] = e.useState([]);
875
+ function St(t) {
876
+ let { manifest: n, routeModules: r } = Q(), [i, a] = e.useState([]);
917
877
  return e.useEffect(() => {
918
878
  let e = !1;
919
- return _t(t, n, r).then((t) => {
879
+ return ft(t, n, r).then((t) => {
920
880
  e || a(t);
921
881
  }), () => {
922
882
  e = !0;
@@ -927,10 +887,10 @@ function Et(t) {
927
887
  r
928
888
  ]), i;
929
889
  }
930
- function Dt({ page: t, matches: n, ...r }) {
931
- let i = R(), { future: a } = X(), { basename: o } = J(), s = e.useMemo(() => {
890
+ function Ct({ page: t, matches: n, ...r }) {
891
+ let i = B(), { future: a } = Q(), { basename: o } = Z(), s = e.useMemo(() => {
932
892
  if (t === i.pathname + i.search + i.hash) return [];
933
- let e = pt(t, o, a.v8_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
893
+ let e = ct(t, o, a.v8_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
934
894
  for (let e of n) typeof e.route.shouldRevalidate == "function" ? r = !0 : s.push(e.route.id);
935
895
  return r && s.length > 0 && e.searchParams.set("_routes", s.join(",")), [e.pathname + e.search];
936
896
  }, [
@@ -948,14 +908,14 @@ function Dt({ page: t, matches: n, ...r }) {
948
908
  ...r
949
909
  })));
950
910
  }
951
- function Ot({ page: t, matches: n, ...r }) {
952
- let i = R(), { future: a, manifest: o, routeModules: s } = X(), { basename: c } = J(), { loaderData: l, matches: u } = Ct(), d = e.useMemo(() => vt(t, n, u, o, i, "data"), [
911
+ function wt({ page: t, matches: n, ...r }) {
912
+ let i = B(), { future: a, manifest: o, routeModules: s } = Q(), { basename: c } = Z(), { loaderData: l, matches: u } = vt(), d = e.useMemo(() => pt(t, n, u, o, i, "data"), [
953
913
  t,
954
914
  n,
955
915
  u,
956
916
  o,
957
917
  i
958
- ]), f = e.useMemo(() => vt(t, n, u, o, i, "assets"), [
918
+ ]), f = e.useMemo(() => pt(t, n, u, o, i, "assets"), [
959
919
  t,
960
920
  n,
961
921
  u,
@@ -968,7 +928,7 @@ function Ot({ page: t, matches: n, ...r }) {
968
928
  let n = o.routes[t.route.id];
969
929
  !n || !n.hasLoader || (!d.some((e) => e.route.id === t.route.id) && t.route.id in l && s[t.route.id]?.shouldRevalidate || n.hasClientLoader ? r = !0 : e.add(t.route.id));
970
930
  }), e.size === 0) return [];
971
- let u = pt(t, c, a.v8_trailingSlashAwareDataRequests, "data");
931
+ let u = ct(t, c, a.v8_trailingSlashAwareDataRequests, "data");
972
932
  return r && e.size > 0 && u.searchParams.set("_routes", n.filter((t) => e.has(t.route.id)).map((e) => e.route.id).join(",")), [u.pathname + u.search];
973
933
  }, [
974
934
  c,
@@ -980,7 +940,7 @@ function Ot({ page: t, matches: n, ...r }) {
980
940
  n,
981
941
  t,
982
942
  s
983
- ]), m = e.useMemo(() => yt(f, o), [f, o]), h = Et(f);
943
+ ]), m = e.useMemo(() => mt(f, o), [f, o]), h = St(f);
984
944
  return /* @__PURE__ */ e.createElement(e.Fragment, null, p.map((t) => /* @__PURE__ */ e.createElement("link", {
985
945
  key: t,
986
946
  rel: "prefetch",
@@ -999,7 +959,7 @@ function Ot({ page: t, matches: n, ...r }) {
999
959
  crossOrigin: n.crossOrigin ?? r.crossOrigin
1000
960
  })));
1001
961
  }
1002
- function kt(...e) {
962
+ function Tt(...e) {
1003
963
  return (t) => {
1004
964
  e.forEach((e) => {
1005
965
  typeof e == "function" ? e(t) : e != null && (e.current = t);
@@ -1007,36 +967,19 @@ function kt(...e) {
1007
967
  };
1008
968
  }
1009
969
  e.Component;
1010
- var At = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
970
+ var Et = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
1011
971
  try {
1012
- At && (window.__reactRouterVersion = "7.18.1");
972
+ Et && (window.__reactRouterVersion = "7.18.3");
1013
973
  } catch {}
1014
- function jt({ basename: t, children: n, history: r, useTransitions: i }) {
1015
- let [a, o] = e.useState({
1016
- action: r.action,
1017
- location: r.location
1018
- }), s = e.useCallback((t) => {
1019
- i === !1 ? o(t) : e.startTransition(() => o(t));
1020
- }, [i]);
1021
- return e.useLayoutEffect(() => r.listen(s), [r, s]), /* @__PURE__ */ e.createElement($e, {
1022
- basename: t,
1023
- children: n,
1024
- location: a.location,
1025
- navigationType: a.action,
1026
- navigator: r,
1027
- useTransitions: i
1028
- });
1029
- }
1030
- jt.displayName = "unstable_HistoryRouter";
1031
- var Mt = e.forwardRef(function({ onClick: n, discover: r = "render", prefetch: i = "none", relative: a, reloadDocument: o, replace: s, mask: c, state: l, target: u, to: d, preventScrollReset: f, viewTransition: p, defaultShouldRevalidate: m, ...h }, g) {
1032
- let { basename: _, navigator: v, useTransitions: y } = e.useContext(P), b = typeof d == "string" && t.test(d), x = me(d, _);
974
+ var Dt = e.forwardRef(function({ onClick: n, discover: r = "render", prefetch: i = "none", relative: a, reloadDocument: o, replace: s, mask: c, state: l, target: u, to: d, preventScrollReset: f, viewTransition: p, defaultShouldRevalidate: m, ...h }, g) {
975
+ let { basename: _, navigator: v, useTransitions: y } = e.useContext(F), b = typeof d == "string" && t.test(d), x = pe(d, _);
1033
976
  d = x.to;
1034
- let S = Ae(d, { relative: a }), C = R(), w = null;
977
+ let S = Me(d, { relative: a }), C = B(), w = null;
1035
978
  if (c) {
1036
- let e = k(c, [], C.mask ? C.mask.pathname : "/", !0);
979
+ let e = ie(c, [], C.mask ? C.mask.pathname : "/", !0);
1037
980
  _ !== "/" && (e.pathname = e.pathname === "/" ? _ : A([_, e.pathname])), w = v.createHref(e);
1038
981
  }
1039
- let [T, E, ee] = wt(i, h), te = zt(d, {
982
+ let [T, E, ee] = bt(i, h), D = Mt(d, {
1040
983
  replace: s,
1041
984
  mask: c,
1042
985
  state: l,
@@ -1047,23 +990,23 @@ var Mt = e.forwardRef(function({ onClick: n, discover: r = "render", prefetch: i
1047
990
  defaultShouldRevalidate: m,
1048
991
  useTransitions: y
1049
992
  });
1050
- function D(e) {
1051
- n && n(e), e.defaultPrevented || te(e);
993
+ function te(e) {
994
+ n && n(e), e.defaultPrevented || D(e);
1052
995
  }
1053
- let ne = !(x.isExternal || o), O = /* @__PURE__ */ e.createElement("a", {
996
+ let O = !(x.isExternal || o), k = /* @__PURE__ */ e.createElement("a", {
1054
997
  ...h,
1055
998
  ...ee,
1056
- href: (ne ? w : void 0) || x.absoluteURL || S,
1057
- onClick: ne ? D : n,
1058
- ref: kt(g, E),
999
+ href: (O ? w : void 0) || x.absoluteURL || S,
1000
+ onClick: O ? te : n,
1001
+ ref: Tt(g, E),
1059
1002
  target: u,
1060
1003
  "data-discover": !b && r === "render" ? "true" : void 0
1061
1004
  });
1062
- return T && !b ? /* @__PURE__ */ e.createElement(e.Fragment, null, O, /* @__PURE__ */ e.createElement(Tt, { page: S })) : O;
1005
+ return T && !b ? /* @__PURE__ */ e.createElement(e.Fragment, null, k, /* @__PURE__ */ e.createElement(xt, { page: S })) : k;
1063
1006
  });
1064
- Mt.displayName = "Link";
1065
- var Nt = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
1066
- let d = z(o, { relative: l.relative }), f = R(), p = e.useContext(N), { navigator: m, basename: h } = e.useContext(P), g = p != null && qt(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
1007
+ Dt.displayName = "Link";
1008
+ var Ot = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
1009
+ let d = V(o, { relative: l.relative }), f = B(), p = e.useContext(P), { navigator: m, basename: h } = e.useContext(F), g = p != null && Lt(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
1067
1010
  n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = D(y, h) || y);
1068
1011
  let b = _ !== "/" && _.endsWith("/") ? _.length - 1 : _.length, x = v === _ || !i && v.startsWith(_) && v.charAt(b) === "/", S = y != null && (y === _ || !i && y.startsWith(_) && y.charAt(_.length) === "/"), C = {
1069
1012
  isActive: x,
@@ -1077,7 +1020,7 @@ var Nt = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n =
1077
1020
  g ? "transitioning" : null
1078
1021
  ].filter(Boolean).join(" ");
1079
1022
  let E = typeof a == "function" ? a(C) : a;
1080
- return /* @__PURE__ */ e.createElement(Mt, {
1023
+ return /* @__PURE__ */ e.createElement(Dt, {
1081
1024
  ...l,
1082
1025
  "aria-current": w,
1083
1026
  className: T,
@@ -1087,9 +1030,9 @@ var Nt = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n =
1087
1030
  viewTransition: s
1088
1031
  }, typeof c == "function" ? c(C) : c);
1089
1032
  });
1090
- Nt.displayName = "NavLink";
1091
- var Pt = e.forwardRef(({ discover: n = "render", fetcherKey: r, navigate: i, reloadDocument: a, replace: o, state: s, method: c = W, action: l, onSubmit: u, relative: d, preventScrollReset: f, viewTransition: p, defaultShouldRevalidate: m, ...h }, g) => {
1092
- let { useTransitions: _ } = e.useContext(P), v = Ht(), y = Ut(l, { relative: d }), b = c.toLowerCase() === "get" ? "get" : "post", x = typeof l == "string" && t.test(l);
1033
+ Ot.displayName = "NavLink";
1034
+ var kt = e.forwardRef(({ discover: n = "render", fetcherKey: r, navigate: i, reloadDocument: a, replace: o, state: s, method: c = G, action: l, onSubmit: u, relative: d, preventScrollReset: f, viewTransition: p, defaultShouldRevalidate: m, ...h }, g) => {
1035
+ let { useTransitions: _ } = e.useContext(F), v = Ft(), y = It(l, { relative: d }), b = c.toLowerCase() === "get" ? "get" : "post", x = typeof l == "string" && t.test(l);
1093
1036
  return /* @__PURE__ */ e.createElement("form", {
1094
1037
  ref: g,
1095
1038
  method: b,
@@ -1114,51 +1057,16 @@ var Pt = e.forwardRef(({ discover: n = "render", fetcherKey: r, navigate: i, rel
1114
1057
  "data-discover": !x && n === "render" ? "true" : void 0
1115
1058
  });
1116
1059
  });
1117
- Pt.displayName = "Form";
1118
- function Ft({ getKey: t, storageKey: n, ...r }) {
1119
- let i = e.useContext(Y), { basename: a } = e.useContext(P), o = R(), s = qe();
1120
- Gt({
1121
- getKey: t,
1122
- storageKey: n
1123
- });
1124
- let c = e.useMemo(() => {
1125
- if (!i || !t) return null;
1126
- let e = $(o, s, a, t);
1127
- return e === o.key ? null : e;
1128
- }, []);
1129
- if (!i || i.isSpaMode) return null;
1130
- let l = ((e, t) => {
1131
- if (!window.history.state || !window.history.state.key) {
1132
- let e = Math.random().toString(32).slice(2);
1133
- window.history.replaceState({ key: e }, "");
1134
- }
1135
- try {
1136
- let n = JSON.parse(sessionStorage.getItem(e) || "{}")[t || window.history.state.key];
1137
- typeof n == "number" && window.scrollTo(0, n);
1138
- } catch (t) {
1139
- console.error(t), sessionStorage.removeItem(e);
1140
- }
1141
- }).toString();
1142
- return r.nonce == null && i?.nonce && (r.nonce = i.nonce), /* @__PURE__ */ e.createElement("script", {
1143
- ...r,
1144
- suppressHydrationWarning: !0,
1145
- dangerouslySetInnerHTML: { __html: `(${l})(${dt(JSON.stringify(n || Wt))}, ${dt(JSON.stringify(c))})` }
1146
- });
1147
- }
1148
- Ft.displayName = "ScrollRestoration";
1149
- function It(e) {
1060
+ kt.displayName = "Form";
1061
+ function At(e) {
1150
1062
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1151
1063
  }
1152
- function Lt(t) {
1153
- let n = e.useContext(M);
1154
- return i(n, It(t)), n;
1155
- }
1156
- function Rt(t) {
1064
+ function jt(t) {
1157
1065
  let n = e.useContext(N);
1158
- return i(n, It(t)), n;
1066
+ return i(n, At(t)), n;
1159
1067
  }
1160
- function zt(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: s, relative: c, viewTransition: l, defaultShouldRevalidate: u, useTransitions: d } = {}) {
1161
- let f = Ne(), p = R(), m = z(t, { relative: c });
1068
+ function Mt(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: s, relative: c, viewTransition: l, defaultShouldRevalidate: u, useTransitions: d } = {}) {
1069
+ let f = Fe(), p = B(), m = V(t, { relative: c });
1162
1070
  return e.useCallback((h) => {
1163
1071
  if (it(h, n)) {
1164
1072
  h.preventDefault();
@@ -1189,20 +1097,23 @@ function zt(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: s
1189
1097
  d
1190
1098
  ]);
1191
1099
  }
1192
- var Bt = 0, Vt = () => `__${String(++Bt)}__`;
1193
- function Ht() {
1194
- let { router: t } = Lt("useSubmit"), { basename: n } = e.useContext(P), r = Ge(), i = t.fetch, a = t.navigate;
1100
+ var Nt = 0, Pt = () => `__${String(++Nt)}__`;
1101
+ function Ft() {
1102
+ let { router: t } = jt("useSubmit"), { basename: n } = e.useContext(F), r = Je(), i = t.fetch, a = t.navigate;
1195
1103
  return e.useCallback(async (e, t = {}) => {
1196
- let { action: o, method: s, encType: c, formData: l, body: u } = ct(e, n);
1197
- t.navigate === !1 ? await i(t.fetcherKey || Vt(), r, t.action || o, {
1198
- defaultShouldRevalidate: t.defaultShouldRevalidate,
1199
- preventScrollReset: t.preventScrollReset,
1200
- formData: l,
1201
- body: u,
1202
- formMethod: t.method || s,
1203
- formEncType: t.encType || c,
1204
- flushSync: t.flushSync
1205
- }) : await a(t.action || o, {
1104
+ let { action: o, method: s, encType: c, formData: l, body: u } = st(e, n);
1105
+ if (t.navigate === !1) {
1106
+ let e = t.fetcherKey || Pt();
1107
+ await i(e, r, t.action || o, {
1108
+ defaultShouldRevalidate: t.defaultShouldRevalidate,
1109
+ preventScrollReset: t.preventScrollReset,
1110
+ formData: l,
1111
+ body: u,
1112
+ formMethod: t.method || s,
1113
+ formEncType: t.encType || c,
1114
+ flushSync: t.flushSync
1115
+ });
1116
+ } else await a(t.action || o, {
1206
1117
  defaultShouldRevalidate: t.defaultShouldRevalidate,
1207
1118
  preventScrollReset: t.preventScrollReset,
1208
1119
  formData: l,
@@ -1222,10 +1133,10 @@ function Ht() {
1222
1133
  r
1223
1134
  ]);
1224
1135
  }
1225
- function Ut(t, { relative: n } = {}) {
1226
- let { basename: r } = e.useContext(P), a = e.useContext(I);
1136
+ function It(t, { relative: n } = {}) {
1137
+ let { basename: r } = e.useContext(F), a = e.useContext(L);
1227
1138
  i(a, "useFormAction must be used inside a RouteContext");
1228
- let [s] = a.matches.slice(-1), c = { ...z(t || ".", { relative: n }) }, l = R();
1139
+ let [s] = a.matches.slice(-1), c = { ...V(t || ".", { relative: n }) }, l = B();
1229
1140
  if (t == null) {
1230
1141
  c.search = l.search;
1231
1142
  let e = new URLSearchParams(c.search), t = e.getAll("index");
@@ -1237,91 +1148,15 @@ function Ut(t, { relative: n } = {}) {
1237
1148
  }
1238
1149
  return (!t || t === ".") && s.route.index && (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (c.pathname = c.pathname === "/" ? r : A([r, c.pathname])), o(c);
1239
1150
  }
1240
- var Wt = "react-router-scroll-positions", Q = {};
1241
- function $(e, t, n, r) {
1242
- let i = null;
1243
- return r && (i = r(n === "/" ? e : {
1244
- ...e,
1245
- pathname: D(e.pathname, n) || e.pathname
1246
- }, t)), i ??= e.key, i;
1247
- }
1248
- function Gt({ getKey: t, storageKey: n } = {}) {
1249
- let { router: r } = Lt("useScrollRestoration"), { restoreScrollPosition: i, preventScrollReset: o } = Rt("useScrollRestoration"), { basename: s } = e.useContext(P), c = R(), l = qe(), u = Ke();
1250
- e.useEffect(() => (window.history.scrollRestoration = "manual", () => {
1251
- window.history.scrollRestoration = "auto";
1252
- }), []), Kt(e.useCallback(() => {
1253
- if (u.state === "idle") {
1254
- let e = $(c, l, s, t);
1255
- Q[e] = window.scrollY;
1256
- }
1257
- try {
1258
- sessionStorage.setItem(n || Wt, JSON.stringify(Q));
1259
- } catch (e) {
1260
- a(!1, `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`);
1261
- }
1262
- window.history.scrollRestoration = "auto";
1263
- }, [
1264
- u.state,
1265
- t,
1266
- s,
1267
- c,
1268
- l,
1269
- n
1270
- ])), typeof document < "u" && (e.useLayoutEffect(() => {
1271
- try {
1272
- let e = sessionStorage.getItem(n || Wt);
1273
- e && (Q = JSON.parse(e));
1274
- } catch {}
1275
- }, [n]), e.useLayoutEffect(() => {
1276
- let e = r?.enableScrollRestoration(Q, () => window.scrollY, t ? (e, n) => $(e, n, s, t) : void 0);
1277
- return () => e && e();
1278
- }, [
1279
- r,
1280
- s,
1281
- t
1282
- ]), e.useLayoutEffect(() => {
1283
- if (i !== !1) {
1284
- if (typeof i == "number") {
1285
- window.scrollTo(0, i);
1286
- return;
1287
- }
1288
- try {
1289
- if (c.hash) {
1290
- let e = document.getElementById(decodeURIComponent(c.hash.slice(1)));
1291
- if (e) {
1292
- e.scrollIntoView();
1293
- return;
1294
- }
1295
- }
1296
- } catch {
1297
- a(!1, `"${c.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`);
1298
- }
1299
- o !== !0 && window.scrollTo(0, 0);
1300
- }
1301
- }, [
1302
- c,
1303
- i,
1304
- o
1305
- ]));
1306
- }
1307
- function Kt(t, n) {
1308
- let { capture: r } = n || {};
1309
- e.useEffect(() => {
1310
- let e = r == null ? void 0 : { capture: r };
1311
- return window.addEventListener("pagehide", t, e), () => {
1312
- window.removeEventListener("pagehide", t, e);
1313
- };
1314
- }, [t, r]);
1315
- }
1316
- function qt(t, { relative: n } = {}) {
1317
- let r = e.useContext(xe);
1151
+ function Lt(t, { relative: n } = {}) {
1152
+ let r = e.useContext(we);
1318
1153
  i(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
1319
- let { basename: a } = Lt("useViewTransitionState"), o = z(t, { relative: n });
1154
+ let { basename: a } = jt("useViewTransitionState"), o = V(t, { relative: n });
1320
1155
  if (!r.isTransitioning) return !1;
1321
1156
  let s = D(r.currentLocation.pathname, a) || r.currentLocation.pathname, c = D(r.nextLocation.pathname, a) || r.nextLocation.pathname;
1322
- return T(o.pathname, c) != null || T(o.pathname, s) != null;
1157
+ return w(o.pathname, c) != null || w(o.pathname, s) != null;
1323
1158
  }
1324
1159
  //#endregion
1325
- export { Fe as t };
1160
+ export { Le as t };
1326
1161
 
1327
- //# sourceMappingURL=chunk-KS7C4IRE.js.map
1162
+ //# sourceMappingURL=chunk-BV7QT456.js.map