@nodefony/studio 10.0.0-alpha.6 → 10.0.0-alpha.8

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 (169) hide show
  1. package/dist/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/decorate.js +1 -1
  2. package/dist/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/decorateMetadata.js +1 -1
  3. package/dist/_virtual/{_@oxc-project_runtime@0.149.0 → _@oxc-project_runtime@0.150.0}/helpers/esm/decorateParam.js +1 -1
  4. package/dist/frontend/assets/{Accordion-C9IINbNl.js → Accordion-BZratQ5I.js} +1 -1
  5. package/dist/frontend/assets/{ActionsLiveGraph-Do_UHAiS.js → ActionsLiveGraph-XrF4dBJH.js} +1 -1
  6. package/dist/frontend/assets/{ApiKeys-BpeOM6zu.js → ApiKeys-Bcrxjcfz.js} +2 -2
  7. package/dist/frontend/assets/{ArchitectureLiveGraph-wJ58pSKK.js → ArchitectureLiveGraph-DFHtvAox.js} +1 -1
  8. package/dist/frontend/assets/{Audit-C4YFzQRy.js → Audit-BJwdii8i.js} +1 -1
  9. package/dist/frontend/assets/{BackplaneLiveGraph-ChvZZWdo.js → BackplaneLiveGraph-BMpvFXRW.js} +1 -1
  10. package/dist/frontend/assets/{Breadcrumbs-4bv1GHWO.js → Breadcrumbs-YIw_WVM5.js} +1 -1
  11. package/dist/frontend/assets/{BrickStoreChip-BtiG99lz.js → BrickStoreChip-CoCfESC2.js} +1 -1
  12. package/dist/frontend/assets/{Chat-DjbG7eSv.js → Chat-_ZDG8n7S.js} +1 -1
  13. package/dist/frontend/assets/{Chip-DUBEzfSp.js → Chip-DVZYQhdH.js} +1 -1
  14. package/dist/frontend/assets/{Cluster-C_TSC_3_.js → Cluster-ZlNV3WC0.js} +1 -1
  15. package/dist/frontend/assets/{Collapse-BdzfO7PU.js → Collapse-BZxw8zmw.js} +1 -1
  16. package/dist/frontend/assets/{ConfigPage-Da8SVX0R.js → ConfigPage-CuIKar0T.js} +1 -1
  17. package/dist/frontend/assets/{ConnectorCard-DOKtRiVP.js → ConnectorCard-rSwtCZFu.js} +1 -1
  18. package/dist/frontend/assets/{Create-vyihNeeE.js → Create-B4_XnFjp.js} +2 -2
  19. package/dist/frontend/assets/{DashboardSupervision-CxSpNAsK.js → DashboardSupervision-ogJPDjon.js} +1 -1
  20. package/dist/frontend/assets/{Database-D0AiIyrs.js → Database-CBJF2zmF.js} +1 -1
  21. package/dist/frontend/assets/{DbLogo-B4TwNH6H.js → DbLogo-odCHhQZM.js} +1 -1
  22. package/dist/frontend/assets/{Documentation-CmIZeRoB.js → Documentation-BPxNaAjQ.js} +1 -1
  23. package/dist/frontend/assets/{FanOutLiveGraph-JTYLv77d.js → FanOutLiveGraph-C34ysvYA.js} +1 -1
  24. package/dist/frontend/assets/{Firewall-DHvfx-wn.js → Firewall-DR1gfzdX.js} +1 -1
  25. package/dist/frontend/assets/{IconAdjustments-B042o6Le.js → IconAdjustments-BoboURIj.js} +1 -1
  26. package/dist/frontend/assets/{IconAdjustmentsAlt-BmgZVo5M.js → IconAdjustmentsAlt-B7iftM9z.js} +1 -1
  27. package/dist/frontend/assets/{IconAdjustmentsHorizontal-BIF-EgYG.js → IconAdjustmentsHorizontal-7IiBbPem.js} +1 -1
  28. package/dist/frontend/assets/{IconAffiliate-PkjISh3s.js → IconAffiliate-BDcNyaq_.js} +1 -1
  29. package/dist/frontend/assets/{IconApps-2nW1Qtkd.js → IconApps-7aIl1P4i.js} +1 -1
  30. package/dist/frontend/assets/{IconArchive-CyeHZASU.js → IconArchive-B4MbH2D6.js} +1 -1
  31. package/dist/frontend/assets/{IconArrowDown-CRJ1x8hy.js → IconArrowDown-5CK-FwRl.js} +1 -1
  32. package/dist/frontend/assets/{IconArrowLeft-7ehg9XYP.js → IconArrowLeft-CGbdeI78.js} +1 -1
  33. package/dist/frontend/assets/{IconArrowUp-CWUGvcnj.js → IconArrowUp-OUaF7Sbz.js} +1 -1
  34. package/dist/frontend/assets/IconArrowsExchange-BaNV8SFD.js +1 -0
  35. package/dist/frontend/assets/{IconArrowsSplit2-D6oEboxp.js → IconArrowsSplit2-C6G8tQXY.js} +1 -1
  36. package/dist/frontend/assets/IconBan-sHfiqzWA.js +1 -0
  37. package/dist/frontend/assets/{IconBook-CFhZJJ0F.js → IconBook-NYou6bAm.js} +1 -1
  38. package/dist/frontend/assets/{IconCircleCheck-vTUIJ1YM.js → IconCircleCheck-LdYSHGNV.js} +1 -1
  39. package/dist/frontend/assets/{IconCircleDot-Cw7O7RFw.js → IconCircleDot-DDZDGUv7.js} +1 -1
  40. package/dist/frontend/assets/IconCircuitResistor-u8z8rLke.js +1 -0
  41. package/dist/frontend/assets/{IconCode-Bp8-3f_0.js → IconCode-8A2Vc3mV.js} +1 -1
  42. package/dist/frontend/assets/{IconDeviceDesktop-CI8a1zbE.js → IconDeviceDesktop-DQMJAeIX.js} +1 -1
  43. package/dist/frontend/assets/{IconDots-DNiAUhiO.js → IconDots-DHONC_eR.js} +1 -1
  44. package/dist/frontend/assets/{IconDownload-CTLQCk0R.js → IconDownload-CskHkiEP.js} +1 -1
  45. package/dist/frontend/assets/{IconEye-D80bz7c_.js → IconEye-CmFgWb6A.js} +1 -1
  46. package/dist/frontend/assets/{IconFile-vc7KG4Rf.js → IconFile-DUvYig0W.js} +1 -1
  47. package/dist/frontend/assets/{IconFolder-DGoYanMO.js → IconFolder-BeoB9Wy3.js} +1 -1
  48. package/dist/frontend/assets/{IconGitBranch-ClVGboyH.js → IconGitBranch-k-8cnuLS.js} +1 -1
  49. package/dist/frontend/assets/{IconHeartRateMonitor-upfL_t5M.js → IconHeartRateMonitor-D5gSRuQz.js} +1 -1
  50. package/dist/frontend/assets/{IconHelpCircle-BoSiqXIY.js → IconHelpCircle-Cp-YIdsR.js} +1 -1
  51. package/dist/frontend/assets/{IconLayoutGrid-B6L6txBS.js → IconLayoutGrid-DiIAz7S1.js} +1 -1
  52. package/dist/frontend/assets/{IconNetwork-BakBlNUv.js → IconNetwork-DJdaK61I.js} +1 -1
  53. package/dist/frontend/assets/{IconPackages-DZHwNbfL.js → IconPackages-a59KQceL.js} +1 -1
  54. package/dist/frontend/assets/{IconPencil-B-pO6nfU.js → IconPencil-DvkftTgJ.js} +1 -1
  55. package/dist/frontend/assets/{IconPlayerPause-CmDKLlIs.js → IconPlayerPause-C9Eve-DV.js} +1 -1
  56. package/dist/frontend/assets/IconPlayerPlay-Cl4K6MPS.js +1 -0
  57. package/dist/frontend/assets/IconPlus-D8uJUhjM.js +1 -0
  58. package/dist/frontend/assets/{IconPuzzle-CslQPiCN.js → IconPuzzle-AO4L5bjR.js} +1 -1
  59. package/dist/frontend/assets/{IconRecycle-DABPgUVk.js → IconRecycle-WAqlmRWN.js} +1 -1
  60. package/dist/frontend/assets/{IconSend-MV_iN0wK.js → IconSend-BPiCAzpg.js} +1 -1
  61. package/dist/frontend/assets/{IconServer2-CRutQdmm.js → IconServer2-rVjD6-MC.js} +1 -1
  62. package/dist/frontend/assets/{IconShieldOff-Iriep3yk.js → IconShieldOff-GF00f0aB.js} +1 -1
  63. package/dist/frontend/assets/{IconSitemap-CqkVZPOt.js → IconSitemap-BnfvAqMK.js} +1 -1
  64. package/dist/frontend/assets/{IconStack2-DA4YUbMC.js → IconStack2-BRfnzl41.js} +1 -1
  65. package/dist/frontend/assets/{IconTerminal2-CWTGfiEn.js → IconTerminal2-3V__c4-m.js} +1 -1
  66. package/dist/frontend/assets/{IconUserOff-D99nKohi.js → IconUserOff-DFt0HHh9.js} +1 -1
  67. package/dist/frontend/assets/{IconWorld-BRgStXMv.js → IconWorld-C4h6SKIG.js} +1 -1
  68. package/dist/frontend/assets/{List-Da8UU6lg.js → List-ERCyqEPq.js} +1 -1
  69. package/dist/frontend/assets/{LogVisuals-BGUY8-_R.js → LogVisuals-BwL1Txqf.js} +1 -1
  70. package/dist/frontend/assets/{Logs-DZCQkQXw.js → Logs-st_U3Pr2.js} +1 -1
  71. package/dist/frontend/assets/{Migrations-Bun03S4a.js → Migrations-D4SSjDpM.js} +1 -1
  72. package/dist/frontend/assets/{ModuleDetail-DsZ7jPqr.js → ModuleDetail-cImsLGSy.js} +1 -1
  73. package/dist/frontend/assets/{Modules-C7G10G7J.js → Modules-Bef_ZNzn.js} +1 -1
  74. package/dist/frontend/assets/{OrmEntity-Drw9PhAO.js → OrmEntity-zs0NzVc9.js} +1 -1
  75. package/dist/frontend/assets/{OrmOverview-BzTzmCFr.js → OrmOverview-CPchV-_w.js} +1 -1
  76. package/dist/frontend/assets/{OrmWorker-D6m8aLoC.js → OrmWorker-QEbxTZ7w.js} +1 -1
  77. package/dist/frontend/assets/{Playground-ku4WxRVF.js → Playground-DsosA7Yd.js} +1 -1
  78. package/dist/frontend/assets/{ProbesLiveGraph-LGl0Vt3c.js → ProbesLiveGraph-CpZWxaAZ.js} +1 -1
  79. package/dist/frontend/assets/{Profile-CIC1v8ye.js → Profile-NdEGmZYV.js} +1 -1
  80. package/dist/frontend/assets/{ProfileFields-BA4k5xVH.js → ProfileFields-D6_5Er1B.js} +1 -1
  81. package/dist/frontend/assets/{Progress-ctKVb0y-.js → Progress-BxSLYIgD.js} +1 -1
  82. package/dist/frontend/assets/{ProtocoleLiveGraph-Ct7VbuWa.js → ProtocoleLiveGraph-BwQBzE9W.js} +1 -1
  83. package/dist/frontend/assets/{RealtimeConsole-CUwlc-WS.js → RealtimeConsole-N11Uie_n.js} +1 -1
  84. package/dist/frontend/assets/{RingProgress-CHMtGKds.js → RingProgress-CdgTmA2j.js} +1 -1
  85. package/dist/frontend/assets/{Roadmap-yZY1WJHu.js → Roadmap-By6HzZwV.js} +1 -1
  86. package/dist/frontend/assets/{RoleSwitch-DzEHDHLA.js → RoleSwitch-B83joCHG.js} +1 -1
  87. package/dist/frontend/assets/Roles-CMIEqZIJ.js +1 -0
  88. package/dist/frontend/assets/{RoutesView-E8ca6Zft.js → RoutesView-D7345bN_.js} +1 -1
  89. package/dist/frontend/assets/{Runtime-DhpEGVfL.js → Runtime-C312wEbD.js} +1 -1
  90. package/dist/frontend/assets/{Sessions-CXTgHqDM.js → Sessions-HOFd6af3.js} +1 -1
  91. package/dist/frontend/assets/{Skeleton-DybgHU9E.js → Skeleton-coYonGf_.js} +1 -1
  92. package/dist/frontend/assets/{Slider-BoAxGS1L.js → Slider-Ds-U37rL.js} +1 -1
  93. package/dist/frontend/assets/{StoresView-DoWAf-jh.js → StoresView-FHdXwtpS.js} +1 -1
  94. package/dist/frontend/assets/{System-DDEZt9W5.js → System-CbN-EOSC.js} +1 -1
  95. package/dist/frontend/assets/{TagsInput-CvH7XFRB.js → TagsInput-COivjma9.js} +1 -1
  96. package/dist/frontend/assets/{Textarea-C4dBiWye.js → Textarea-9n-r0dhs.js} +1 -1
  97. package/dist/frontend/assets/{TraceView-D8fl7TGg.js → TraceView-DNjPJJ7p.js} +1 -1
  98. package/dist/frontend/assets/{Twin-B9_yDKs5.js → Twin-BfFLhE0A.js} +1 -1
  99. package/dist/frontend/assets/{UserProfile-y8I6wSTh.js → UserProfile-BBeksYzW.js} +1 -1
  100. package/dist/frontend/assets/Users-B4mV1aqm.js +1 -0
  101. package/dist/frontend/assets/{Webhooks-L-17Yi5A.js → Webhooks-Cl8PKA4v.js} +1 -1
  102. package/dist/frontend/assets/{Workspace-BbU7y0F1.js → Workspace-Drv35J6V.js} +1 -1
  103. package/dist/frontend/assets/{abnfDiagram-O67JEVCF-B8pam94f.js → abnfDiagram-O67JEVCF-eVuPuZ-l.js} +1 -1
  104. package/dist/frontend/assets/{apiKeysModel-C53i4AfO.js → apiKeysModel-Bg3XAZ1j.js} +1 -1
  105. package/dist/frontend/assets/{architectureDiagram-NJMV4G6O-6gmizkIP.js → architectureDiagram-NJMV4G6O-CowFfXXj.js} +1 -1
  106. package/dist/frontend/assets/{auditFormat-lxo0qiYp.js → auditFormat-n5lhA4OX.js} +1 -1
  107. package/dist/frontend/assets/{auditModel-CxUfDlvX.js → auditModel-H62868Ky.js} +1 -1
  108. package/dist/frontend/assets/{chunk-3FUC2YCW-TJIJwE1t.js → chunk-3FUC2YCW-Dtc7u5wE.js} +2 -2
  109. package/dist/frontend/assets/{chunk-7M6MHVWA-DRzYiIPp.js → chunk-7M6MHVWA-lvMKwiVM.js} +1 -1
  110. package/dist/frontend/assets/{chunk-GTNCS2PH-DZtp2P9b.js → chunk-GTNCS2PH-B_uA79q-.js} +1 -1
  111. package/dist/frontend/assets/{classDiagram-v2-NBCMYWYE-BtmMp0Pl.js → classDiagram-v2-NBCMYWYE-BNpOjB-G.js} +1 -1
  112. package/dist/frontend/assets/{configModel-vPcx16aO.js → configModel-VUzK2g6s.js} +1 -1
  113. package/dist/frontend/assets/{cynefinDiagram-VND7K2PF-DAC6UAuW.js → cynefinDiagram-VND7K2PF-BlomyrQB.js} +1 -1
  114. package/dist/frontend/assets/{dagre-6A5THRUB-CO85D-6G.js → dagre-6A5THRUB-BWzsXnLW.js} +1 -1
  115. package/dist/frontend/assets/{diagram-22UHCM2B-BOX3CQqS.js → diagram-22UHCM2B-CVjDv9s9.js} +1 -1
  116. package/dist/frontend/assets/{diagram-3UASUU5V-CxvH61Hb.js → diagram-3UASUU5V-DVDv1FGj.js} +1 -1
  117. package/dist/frontend/assets/{diagram-CDSNMT55-BKs0JPfD.js → diagram-CDSNMT55-Bp8iVPRM.js} +1 -1
  118. package/dist/frontend/assets/{diagram-MLGK6HIB-D9BjufDu.js → diagram-MLGK6HIB-tvdCXGvD.js} +1 -1
  119. package/dist/frontend/assets/{diagram-MPIPVDR6-CAjYxIoY.js → diagram-MPIPVDR6-BhXeqdXO.js} +1 -1
  120. package/dist/frontend/assets/{ebnfDiagram-ZINNZB2B-DyFbyGL9.js → ebnfDiagram-ZINNZB2B-DA_f0Sur.js} +1 -1
  121. package/dist/frontend/assets/{elk-276RUBZZ-De_z70FL.js → elk-276RUBZZ-D-2pxfms.js} +1 -1
  122. package/dist/frontend/assets/{erDiagram-OPXOYQCR-N61HA9T0.js → erDiagram-OPXOYQCR-IXwXFRE7.js} +1 -1
  123. package/dist/frontend/assets/{eventFlow-Dtt06FYi.js → eventFlow-Cm0aJnfI.js} +1 -1
  124. package/dist/frontend/assets/{flowDiagram-KWPJA3E3-BubqL8R4.js → flowDiagram-KWPJA3E3-BwS9Cpl0.js} +1 -1
  125. package/dist/frontend/assets/hooks-DMHLQNUe.js +1 -0
  126. package/dist/frontend/assets/index-BwkdF4pp.js +28 -0
  127. package/dist/frontend/assets/{infoDiagram-VRGFBTTK-jzkh5hxl.js → infoDiagram-VRGFBTTK-D4h7Bn9y.js} +1 -1
  128. package/dist/frontend/assets/{ishikawaDiagram-OU5B5YK6-C-80YGTU.js → ishikawaDiagram-OU5B5YK6-B08gE1Ts.js} +1 -1
  129. package/dist/frontend/assets/{kanban-definition-PNTS6WVX-CNUWj3n8.js → kanban-definition-PNTS6WVX-BRAjenaA.js} +1 -1
  130. package/dist/frontend/assets/{mermaid.core-bi0KWxzD.js → mermaid.core-B83stVmA.js} +4 -4
  131. package/dist/frontend/assets/{mindmap-definition-NLK3R4M7-BpydpKOL.js → mindmap-definition-NLK3R4M7-DVQlIVXh.js} +1 -1
  132. package/dist/frontend/assets/{pegDiagram-GJSIUBJH-B8r97QN1.js → pegDiagram-GJSIUBJH-BDiYV_0C.js} +1 -1
  133. package/dist/frontend/assets/{pieDiagram-5QR66LMP-kyKeYg-Q.js → pieDiagram-5QR66LMP-DauEH_sI.js} +1 -1
  134. package/dist/frontend/assets/{profileVisuals-BE_m4Ey1.js → profileVisuals-CdDZ-G5o.js} +1 -1
  135. package/dist/frontend/assets/{railroadDiagram-XR7U4H2S-UqD2ngrA.js → railroadDiagram-XR7U4H2S-VGu1Om2v.js} +1 -1
  136. package/dist/frontend/assets/{requirementDiagram-PLB6GJNP-BCf1UDbg.js → requirementDiagram-PLB6GJNP-BIeT2fsT.js} +1 -1
  137. package/dist/frontend/assets/rolesModel-BqkpwhLp.js +1 -0
  138. package/dist/frontend/assets/{sequenceDiagram-PO4LG4MO-BtmJQCMb.js → sequenceDiagram-PO4LG4MO-xFeJgcfs.js} +1 -1
  139. package/dist/frontend/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
  140. package/dist/frontend/assets/{stateDiagram-v2-GCMORJYK-KOfXhGJl.js → stateDiagram-v2-GCMORJYK-Zn0sg5eC.js} +1 -1
  141. package/dist/frontend/assets/stores-fG-e-IP-.js +1 -0
  142. package/dist/frontend/assets/{swimlanes-2SLR337P-CbhPYBmu.js → swimlanes-2SLR337P-BtnI5Ts1.js} +1 -1
  143. package/dist/frontend/assets/{swimlanesDiagram-TC7HE7FX-DERYN-sv.js → swimlanesDiagram-TC7HE7FX-DmKuTkpK.js} +1 -1
  144. package/dist/frontend/assets/{timeline-definition-EJHVYXUP-DyFLwqcy.js → timeline-definition-EJHVYXUP-CAwjjT68.js} +1 -1
  145. package/dist/frontend/assets/{ui-Dy8y0zPl.js → ui-BlRFVRfl.js} +29 -29
  146. package/dist/frontend/assets/{useBlockSource-DBTXt3Bd.js → useBlockSource-IO5xGNWM.js} +1 -1
  147. package/dist/frontend/assets/{useSocketLiveData-n5suTFQT.js → useSocketLiveData-z0fKymfg.js} +1 -1
  148. package/dist/frontend/assets/{usecaseDiagram-POWQR4AR-DrNt0E-k.js → usecaseDiagram-POWQR4AR-Bk94oIx0.js} +1 -1
  149. package/dist/frontend/assets/{usersFormat-C33NWJaO.js → usersFormat-9M7K71Og.js} +1 -1
  150. package/dist/frontend/assets/{vennDiagram-UO4OBE2U-CdTyOHVa.js → vennDiagram-UO4OBE2U-_ylubyXd.js} +1 -1
  151. package/dist/frontend/assets/{wardleyDiagram-VNRHLVJA-D8xJmOUJ.js → wardleyDiagram-VNRHLVJA-BAnG4zJi.js} +1 -1
  152. package/dist/frontend/assets/{xychartDiagram-PMCCYNJV-BwyKdA55.js → xychartDiagram-PMCCYNJV-Cl7hfbtt.js} +1 -1
  153. package/dist/frontend/index.html +11 -11
  154. package/dist/index.js +2 -2
  155. package/dist/nodefony/controller/StudioController.js +2 -2
  156. package/dist/nodefony/controller/StudioCreateController.js +3 -3
  157. package/dist/nodefony/controller/StudioRealtimeController.js +2 -2
  158. package/package.json +17 -17
  159. package/dist/frontend/assets/IconArrowsExchange-C0a0grm7.js +0 -1
  160. package/dist/frontend/assets/IconBan-Qgw-SmZw.js +0 -1
  161. package/dist/frontend/assets/IconCircuitResistor-DFVNZSyj.js +0 -1
  162. package/dist/frontend/assets/IconPlayerPlay-CYA71UO2.js +0 -1
  163. package/dist/frontend/assets/IconPlus-Dh1SmA8Q.js +0 -1
  164. package/dist/frontend/assets/Roles-hy1gMeEh.js +0 -1
  165. package/dist/frontend/assets/Users-DLPi2ne7.js +0 -1
  166. package/dist/frontend/assets/hooks-C4XxBzBx.js +0 -1
  167. package/dist/frontend/assets/index-wfxUl83u.js +0 -28
  168. package/dist/frontend/assets/sizeCapture-INFHLROL-B0uUizjq.js +0 -1
  169. package/dist/frontend/assets/stores-DIccV-P5.js +0 -1
@@ -29,20 +29,20 @@
29
29
  type="image/png"
30
30
  href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAABACAYAAACHm15kAAAXJElEQVR42r1aeXxU1dl+3nPunSV7QkIIYQdZFZCgRmRJsKIf1gVwRtQqKgoULLXQllrFOyNirdbtU+EDW3eq3hFXrIBoJoqyCCgiIJsgEAIJJJmss9xz3u+PSTBaWm2rvf/d+d1z57nPuy/Af/FiZhpjlRnt7nOYuVu7JwjM9O1zxn8DnGWxCCMsiMgB4DBz7gNvH5z40z998qtELJ77y+d32f6irGWjBtBHmv7+PP3YzJE/JBDyq9b7Tne9uX/2B7trp+48qjpW1DcCThwp3nQUpJoYNyBtx9SxnS8d3j1rn8UsgkT6R2OSmakkEJZE5AhA1dVH+y9488DU8xZuum5Hre5YF6kHoGIAXO6UNOqdbWJYZ++6fvmeJQXdMiuZmYiIfzQmbZul308nmZv53O5fbjsQmb3jhEqpaW4EoGPQ2pWRmkWdUxxV1CPztV9d0P3p0oFZKxpifMp30g+pd8FgAEBQM3Pm0nDl7GfWVdyy7ZjTsaGxHjAQh8PS7U2XQ3Nl4tyeWcuuKs5/5Lx+2Z86p/jAHxRkm2jLg6VOmlvgqXDlxJc+PnbX+iOJQYerTwAmJ6CYIDzGwI5pOLvQbd82oecfBuSnfaoBwGdL2+fDqcD9ICBblZsB8Lp9NYMfWX34zu1H1aRtFTUAJRxIYiSEWZidjrN7pm68eWTB/RPPzH05qgH4WFo2uM04/tn1b4P02SxDflLMbCx4de+817bVBLYejRkq3qyES7COKZmRkUUju3qOXzgwO3DHhN6PN0QVAJ+02D4JjpkpFAoJ+AAffLq9wfxH4kWrQ95RUTvM//j2Dzr/5mPGDSuZZqx2MH2Vg5vf49Pnb+Rbn935ADMXtBFi2yzbv8e2bfn3H++TfAqH/i8YhyUAQAJY9N7+ucX3bGkyZrzPuOnthPj5aoUb31YZsz/iSx/+ZOc726pL2hC0jzJJA7G/ATa0/ulxb3xqX8vM5n8k7jbLY+aUO+w9zz256cTEypoGwIASBNIORPfcLEwpyn4xeEWfG4moBT5bsv21CG3bln7/Sccuy75YM/m9L1bN2Xl46zAmhS7Z3XcO7zHqld5ZQ55Ybb9xKBgMcjJWfi/9s2XI71dcX5970Z/32JsquPREXbUjTCm10gpsGmf1yKy7eVTBr2eNKfxLot2ZVkCC/EQIQTGzePGjZ6/ZcmDdr/fXfzm4qvY4pGMo7SgVN1tcBV0LMCBl2NYJva4cU1Q0vJ6+T8SxysqMYGmps2P/0XMnPXVg+ZpdDQVKRx3hMgydUE5aSqZxfp/Uit9fVnjhOd07bG/HnkqetwwicgyYWPPFSt+8l38xb8/RnUW19bUQSjgucus4RV0ZeVmyS+bgg/1zBywe0mHg00VFRfVE4O8Ut1XGRrCUnOWbDhU/uqZ6Vfm+ugwWCUeQMLTjOOkpWcZP+6Wv+OvMPnOJPLunLdlkLp0+PNGmv23iqqiqGPZ4+L7b9hz/4orquuMgRyhTmDrOcTM9IxU9O/Q5em7fsY9OPuvqRURU9711so3BRat3Fy9eX79y28FIJqSjiITkhOOkZ+UaF/V2vbRi9pDJLc43xWuVWUawNOikmKn445vzb//4wPrgkcZKmWhytMf06FgiLl2pgjqm5tcUnzb6gVnnz11KRMeTRjbGCAfC6jtjd5uCv/dp5TlzVxxe/cmB+gySSoFIslJOenoH4+KBntALU0+/kgIgexCo1aho+tLpxtLpSxORqkjf+z8IPL21YvO5dTUN8JoehxmIc8zIycjC2b1G2reOvG2eN9t7IPmfPunz2af0k3QKPyiISMdqGs6Y/Nz+91/bVp0FqRQTSSjlpLjTjYv6pYaW3zLkSqIAMQeYiLg1cwEA/vOax64v/3LVPZV1xwpUCydchsuIqzgbXiH65vWvKh0w7jrfOdeuYmhYlmUEAgFFRNw+PfuHSW8y/wMxs+fShz5ZsnpPUxaLhANIA1opjyfDGNfT/dHyW4ZMJgqQZQFExJZliVag4t4Vv5+3YkdoYaS+CZINZUhhtCRadGZWmhzerfi1Oyf88edEdBQ+SGugxcFg0Bk0KCAB1kEiDR9L2wb8gEYrq98A6Q+FhAj51bzntj39wSHn3JjT6JCUBpg1K4PO7Ow+9uzMQTcRkW7nN6kN4KJ3H1i+6fCGy2pqGpXbcAkQKKZaqFf37vInvS+Zd93oafdZuA+27ZN+f0jBgoDFwu8n5QIQY+4hiQ746Ru5wdfJ+hirzCgPljpPvb//8rtWVr+6/2hNglzCBACOa2dAlzzjvvEdfZcUd325zaiSzJNgmxF85Xcvbzq87vKG2uaEyzRN1syQTOlp3porh02ZPXnkjcvgY8k2ayLittjvBrCikkv+vCs+r7qFSwo8Yvn4XubTV3ejd4nAYCbjpJgD0MycNvoPGx/dX90IMoVkBsCsMtMzjUv7e1+6rLjry5aVdEtgUCBQIl2vuJ3HV/7plU2H113eVNeScJmmCUDHEeMuWV0iY/tcfOHkkTdsGmONMcqD5U7SDphak5O+t25MPDpzoxp3sNlErLkRKalp17xfHb3mha9471/3JRZdBTws2sSMIOngy18s+KyKu4AcxYAgggZLObxAVt971YBbNCwBBJJpYMgngsFyZ8HyuTPe2//2hMa6ZscwDBMMjqs4CvM6yeLuoy69adyMTZZtucqD5Y5t2zKpGsCDW51ZpX+LbV683xy3p7pJx2MNCqRVcywKLU24SNXohP4CRDCS1gwdjfKASx76eHYkEtHkJgEGWDFnp6XqAZ08c4jo+BirzAgGS502F1X22ZrLn1j/yOLj1bUJt+E1AIZiR2VnZhrj+19xx5SSaR8uWTLNnO4Pxi1m4SdSzNXpN61LLA3XmpP3VbYAMqaEAaEd6NwOmcbZKbHPJvfkO2b1M998hYGfARAlgbAAiB96e9fMj6tYwGANBoHA0FKOKDRqH51yxqtgpnCgRAGg7du3MzPTq1tfvOfI8SNwS49g1qQ1KzPVMM4oGPz8tSVTF46yRhrTpy9N2LYtg0SaOdp3xofZm5YdNCfvO1rvCEMzgYXWggZ3yTCmdMO9b41zj7yur/lmA7OwmAUAiPJgqcPM2av3Nk6oq29gkkIyANassjLSMLR75pMAmsckqz/22T4RDAb1va8Gbth/YvcAqaTDYElEHOcoumR1a7j90ocWwIIIB8LaYhZ+v18xc/eb1sp3nzlIfaPNEUcYZDAz2PDSwEyjYW5XNfmRIrqNiBpsZgmQbvOZAgAeWv3VwH01qhBwGIykT06wOD3HcGaf330ZEfGsQdVsWZYI+UOamTsdjOx9MFLfwEIYEgCUUjo7O1MOzBsc9Hhot1ViCSLS4XBYMLPpW9W86MVKo0s02pAgIQxmZiaT+2cgMrcfj58yyHjJsdhgZvLTN+sdAQDb9tacH2lhhiTNAMDQ0nSLfC9/3jHb9RnA5Pf7NEogAPDSdx+9rKKpItOAoZg1AWAWLDMo69icn/7+CVgQgZKA8jHL8tJSZ+66lt+E4ynjmxojCZLCBAHsQPXLSxHze6tZU09PWfuL3exGkJxThUXBzGa95omNLVEiIpH8R63T0lKRn+P5gAgYUwYJEAerg8zMxo6qL66ob2piKQxqja3K9BjITct/i4jqfTt8BAAhIlVfwbnvVGLO8ZoWTYIMZgBaq4z0dOPi7JbXbxySsqxoE5uP9qXYP0p2BABVeaw5S0GDv+4bUQYUTuvg2gIQl4TDydrGDwUgq66paoSOKgIlJeFoB5kpmRjRb+QHYNDMmTMpEIYEgN/sa762Qng7QMWZQUQEZi1oaIZyHijyBmMKmFeEf1oxikNHm4dDmLlwEkwEgVbhuUyNBIwtALBjUDWHQiEBAFu/3Ny/Od7iIVBSf0GsmQ124PTKHrgeBA6XhHUwDM3MdLCRr2hocRiyNbhp1p7UVJHiRN8y3PSJz2b5bR38O5C76+OFEZcrFUp9rQuaIdwGTu+V4W77KS8vjwCg0Wk4M8XjFsys2vIohoZwuVVRv6I6AAggAARJA6CmFt094Whqy7gYYJdboFeOsU+BqSrvu+ssUVkbjTdG4wxB7duELCWhg9dkAPC1O9DQ0pCIJmIQycDa+jyQkjTyb1d7lIgjJsQ3f5QAOnjJBL5fjS365HrceSlugub25kROXGNnZTMDQKjdgcyUHHgMDzQ0KEkjiAgN8TgAxJJMfv25pleYWid5bKMhoYDDtY75fetrUdw7a7OrobEKpouYW8khwTrq4Mih2mQqFwLCJWENAAVpeeVNLc2aIGSSQ4AgWDqOsWHfhq4AMCgUauvYcvdMWWUIYmIwA4Ag0dwUQ2McFwIQ4RKo7wIrABx0p8goSBCh9UXEupFc0F7XeAComumjAAIMgHoU9D2alZJdw8StRDIJIuVIR3721ccjmJny8raTFU5GqM4GP9ghzSRWDAJADKGdmNoa9/Z4fmfzpUTE4aQG/FOQskeOd69LmgC1FuKC0BxX2PplbWdBQMdqcDIkQhBRbWZKzirTazABCgCEkFTf1IBPD2y+kIh40aIgB0pKFMB070jvO0PdsSMw3JKIk0olCXsbFD31lbiLmVNKiZy2OH1KkETkKAE7zWuCdZspkGhsaUZ1sxqvNHtCflJgpoF5FgHAqF4jluekZVLcibfpmXCiCrUt1aX7K/f3CIWgA4EA+RiCiKrHFWB21wwT2iHV+rzkRItaV+8+fc7H8beYOSVIpJMx+9RMYsroTmtzvBpQWlBSwQU4oQ43G51XbKj0AyAbyVAHBl129lWrO6d030sGDCSTAJKQqi5Rm/Lsh0tulyQZJRAhImWVsTF3qGf5pJzYwp4F6SYrjhMl6W9pbHD+esRVcvuWxJvM7PG3Pv9tHRUA09iBnXb1yTI2kuEFQEmHKQUqGuJ4eXPlzySBQ6EQiIjtkC2IqGl0v7G3ZqVnaUclNAEQUsjGuha1t3bnTRt2bygNlgYdy7KMQAmUz2b50OiUhTfnx1/rkp3hYocVWGsyhHHsRMR59EtzrO/9eFlFbWxYsDQZv9uDFdOWbDaIyLnu7PwXeudlESccJgKIIFuaG/T6ysSYTYcah4b8fu1rTXZt2yevKP7ZWwPyh6wxU00DIIeZ4TE9qDhewc9vWHwPM7uC4WDSOfigiSgaPMs9YVxOYm7f/AzJMAUrpYQpjYb6iHrtiFE8YS2X37vNuZWZU9vAAoBYMq3IAZiuGt1t2RnZiUOAKQBoZoBM4gMR7VqwfOd8AXDV9mTU8flsZkuL68+Z8atO6R2PtugmIhKawRIJqfdU7yp+6G93v2iUm04gXCKRrCYRm8/iyRLXg/N7xa8f3cms9KZlSh1XiiSRE21UG6sTaY/skw9Neie+cdle5wZmTgVAop3VVo86PXNW74IcwQmlCQQQyVhzvdp+DBNf/PDQFeXBUscqKzOISNuDbOrbo++Okt7jJvUp7CVjiSgTBEspZHND1Hl378oJdyyfMytYWu74bJ8LABAkPcZi49qB7mdWjXFG3NxDv1DUOVOymSqgQSS0U3kiEnulggYuOCqf/OWH0beY2TAAIOQn5bNZ/moc3t60d8s7h2szLog7jYqZJBmCdlVF+C8f0mPMXEZEJ6zWWtkqs4ybSmd/9Fz5k799Nb7svqqqasctPdKQpmyqi6kd5mePLXzldn37xIWLCSQ4mQc5VhkbXi8d8ABXv3eMn318N9+2sSZ9dEULCa8bxgBvrG6ooZ/s63aeBKBP+iYfQiAitWzmsBnF3by1HBcskoWdIHJ47VfR/Ov+8vkTzGyGERbMTMHSoDPJniivGTPl/tE9Sn9b2KnQiDotGkwwpSGqTxzXa/e/u+ju13+3oBUg27Ytg6XkWBaLKFiMyKeVb5SYY/63iC74WaHz4vSu+r4PLnSf+VixnHvLmenb6dsZklWWbBu//NHBqcMWbGPcsDJOM1YzZqxmTF0Z737HVr77lV0PAoDP+tz19TnLAAivrn/xt9c+cSmPCg7lnyw41xm3cASXBIc7k/5vLP/h9TtfZ+bcb/fFk330Viv+1uDAspIO/u9ips0srxak5thfzH96Q/1dVXU1Dhki2URIcKJzdrqYMbLDjXde3u/ZoiWbzM2t/UjYkPBD/aVs0U/W7Fzx0vHGEzmqhROGYZoJJ+ZIrzBOLxxcUdr7f664rHjS+rZOmt8fUifb3dvBvgBoIL45Ojl1YB9jGSgPOpMf3vTAu4d4TnXkRAJSmERgdoj7dMoU15+TOeWOS5JAN00rSvo2a4wRDJY7B44cGPi/5QsX7zmxe3TkeL32uFKgleI4R2VBToE6u3fx3XMuuvPh1oapsG2b2nrp37+xz0wIhKV7Yanje3DL4tVfqRlVkRNJRpmZE+A+nbPF5DMzp9w9qd+zgCXaWoBtDVRmNh9evfCudXs++N2xSBWkcinTMCmaaBGpGW707zTk4Nndz73luvNufjPOMcAHaftsnArsP0mRmIAAec2gvuT+zY+sOeTMrqmrdcgUEsxgh7gwO1XMPb9wcXBi75mRFnWy22uxJYIU1AAQWvvCqI/2v7d4b82uQXW1EXiMFIeZEUfUyMnMwpCuw9+5aMCku87rf95anSx1yGf7RKhVDb57RMJMoJAg+NWNT32+YM2+xB1fVRzT5CYiEOmEVt06FcixveSLT904aBoRNfhsli9fSUprppJAiSwPljvM7F68+sHp245uvefLE3tTY40xmMKdUNoR0kMyy52lBvcc/tYlZ/oeKe5e/F5UR/+1OU7bgPOjYKnz0DsH5i/5oMradrhOwmQliKROKMftSTcm9E/bN3t8twkjeudsA0CtfUvd3jiYude9b83/xdavPpkaidWlNzc2wyRPXLFjSq+k7NSO6JLVZU2fnNMePyd31FtFRUld//7jMR9LhEjZmw6Nfer9E8vX7GnISiSaHGEIqTVrsCmHFaa1XHVWp/m/Ht/1kTanHSiBIhB8oa9FuP3Q3tPe3PLML3dV7bzuSOOR9KZIMySkZldc5OcXol/6kLJrzrj+sv79+zdSskj5V+Z2ZQaCpQ5zS48pS3Y/vubL2PgjNRFAakVExHEtuubmYlz/tDWBi3v+umu+e2v7YallWSKMsGjtU4KZey0JPz5381cbpzZF63RRrzNXXNTPv3Rw98FrFNS/PwD1tc4FUwzg7jd2zxwa2FhjzlrLmLrSkT9frTD17YRn1louunN93d2vf/kHZk5vPwCl1hmPz/a1ny/2i0Qifelrd04/yJYAkByGrt15uN91S7a/0fu2jxlTVzOmrUpgxqoEpq7iTvM280/u3/LZYysPXtMukT05rU2CbVffWBCnmtz+R1fb9DXVJfDSR0dn/M8j245kzVnPuOkdxrSVCUxbGce0Mu42byNPfOyzDa+sP3oVt6tlbJslmImZhcWW+FE2B77evUhuDzBzhzte3z9rzbaqW/bUUF5NpA4wkYBmQcIj++em4bzeqRsmn533p/MHdVjeltT6bJZ2MjHmH3VR5FtT2fxbn98z/dP9db/bfEJ5G+vrGC6RgNKCpNfon5+GC05L2zDujNz7Lh7S4dU2cGOsMqMkUKK/PXCiH3ofyB+CCJ1cuYkNXvhGxfzXt1ZfsbuGEWlsAISOQ2khzRSjV7YXA3LNLZcMzX3zprFdFhPRsR+VyX+04WIC2H+i+dy7Vhy+ZF9F5MY9tcg/GGkAdDwBZpDhNgsz09E5zTkytGfOS2f1SF92prfgs6IinKxxftQ1sORECwBOLoV0fCZ8ePbfttX4N1XGTqtodBBPtIA1A+xCYad8XD3Y1XzrBXkTOmemvhMKQfj9J2v1H33bT5QEwqI8WNrmxF1vfFI9adnG45fv3ntieEs0jj6n5VaPPi3ryekjOq7JzPQcSLZyf4DNln9HDXztNlpkK2D+/HNXqusf8/X/dTCGY3KYibcAAAAASUVORK5CYII="
31
31
  />
32
- <script type="module" crossorigin src="/_assets/studio/assets/index-wfxUl83u.js"></script>
32
+ <script type="module" crossorigin src="/_assets/studio/assets/index-BwkdF4pp.js"></script>
33
33
  <link rel="modulepreload" crossorigin href="/_assets/studio/assets/src-Dvwdl2PF.js">
34
34
  <link rel="modulepreload" crossorigin href="/_assets/studio/assets/preload-helper-DfDauRb0.js">
35
35
  <link rel="modulepreload" crossorigin href="/_assets/studio/assets/value-CR1itMY9.js">
36
- <link rel="modulepreload" crossorigin href="/_assets/studio/assets/ui-Dy8y0zPl.js">
37
- <link rel="modulepreload" crossorigin href="/_assets/studio/assets/Slider-BoAxGS1L.js">
38
- <link rel="modulepreload" crossorigin href="/_assets/studio/assets/Collapse-BdzfO7PU.js">
39
- <link rel="modulepreload" crossorigin href="/_assets/studio/assets/stores-DIccV-P5.js">
40
- <link rel="modulepreload" crossorigin href="/_assets/studio/assets/hooks-C4XxBzBx.js">
41
- <link rel="modulepreload" crossorigin href="/_assets/studio/assets/IconAdjustmentsAlt-BmgZVo5M.js">
42
- <link rel="modulepreload" crossorigin href="/_assets/studio/assets/IconAffiliate-PkjISh3s.js">
43
- <link rel="modulepreload" crossorigin href="/_assets/studio/assets/IconNetwork-BakBlNUv.js">
44
- <link rel="modulepreload" crossorigin href="/_assets/studio/assets/IconArchive-CyeHZASU.js">
45
- <link rel="modulepreload" crossorigin href="/_assets/studio/assets/IconArrowsExchange-C0a0grm7.js">
36
+ <link rel="modulepreload" crossorigin href="/_assets/studio/assets/ui-BlRFVRfl.js">
37
+ <link rel="modulepreload" crossorigin href="/_assets/studio/assets/Slider-Ds-U37rL.js">
38
+ <link rel="modulepreload" crossorigin href="/_assets/studio/assets/Collapse-BZxw8zmw.js">
39
+ <link rel="modulepreload" crossorigin href="/_assets/studio/assets/stores-fG-e-IP-.js">
40
+ <link rel="modulepreload" crossorigin href="/_assets/studio/assets/hooks-DMHLQNUe.js">
41
+ <link rel="modulepreload" crossorigin href="/_assets/studio/assets/IconAdjustmentsAlt-B7iftM9z.js">
42
+ <link rel="modulepreload" crossorigin href="/_assets/studio/assets/IconAffiliate-BDcNyaq_.js">
43
+ <link rel="modulepreload" crossorigin href="/_assets/studio/assets/IconNetwork-DJdaK61I.js">
44
+ <link rel="modulepreload" crossorigin href="/_assets/studio/assets/IconArchive-B4MbH2D6.js">
45
+ <link rel="modulepreload" crossorigin href="/_assets/studio/assets/IconArrowsExchange-BaNV8SFD.js">
46
46
  <link rel="modulepreload" crossorigin href="/_assets/studio/assets/pageQuery-yJh2-jSv.js">
47
47
  <link rel="stylesheet" crossorigin href="/_assets/studio/assets/ui-DLioOiRN.css">
48
48
  <link rel="stylesheet" crossorigin href="/_assets/studio/assets/index-22LA2xX4.css">
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import config, { studioConfigSchema } from "./nodefony/config/config.js";
2
2
  import { defineStudioConfig, studioConfigJsonSchema } from "./nodefony/config/defineModuleConfig.js";
3
- import __decorateMetadata from "./_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/decorateMetadata.js";
4
- import __decorate from "./_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/decorate.js";
3
+ import __decorateMetadata from "./_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/decorateMetadata.js";
4
+ import __decorate from "./_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/decorate.js";
5
5
  import StudioController_default from "./nodefony/controller/StudioController.js";
6
6
  import { ScaffoldService } from "./nodefony/service/ScaffoldService.js";
7
7
  import StudioRealtimeController_default from "./nodefony/controller/StudioRealtimeController.js";
@@ -1,6 +1,6 @@
1
1
  import { readGitBranch, readStatsSnapshot } from "../realtime/providers.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/decorate.js";
4
4
  import { BypassFirewall, Controller, Get, IsGranted, controller } from "@nodefony/framework";
5
5
  import { Context } from "@nodefony/http";
6
6
  //#region nodefony/controller/StudioController.ts
@@ -1,7 +1,7 @@
1
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/decorateMetadata.js";
2
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/decorate.js";
1
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/decorateMetadata.js";
2
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/decorate.js";
3
3
  import { SCAFFOLD_STEPS } from "../service/ScaffoldService.js";
4
- import __decorateParam from "../../_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/decorateParam.js";
4
+ import __decorateParam from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/decorateParam.js";
5
5
  import { getScaffoldSpec, scaffoldCaps } from "nodefony";
6
6
  import { Controller, Get, IsGranted, Param, Query, controller } from "@nodefony/framework";
7
7
  import { Context } from "@nodefony/http";
@@ -1,6 +1,6 @@
1
1
  import { CHANNELS, createBrokerTicker, createStatsTicker, createSyslogBridge, readGitBranch } from "../realtime/providers.js";
2
- import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/decorateMetadata.js";
3
- import __decorate from "../../_virtual/_@oxc-project_runtime@0.149.0/helpers/esm/decorate.js";
2
+ import __decorateMetadata from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/decorateMetadata.js";
3
+ import __decorate from "../../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/decorate.js";
4
4
  import { createClusterSupervisionTicker } from "../realtime/clusterSupervision.js";
5
5
  import { createClusterOrmTicker } from "../realtime/clusterOrm.js";
6
6
  import { SCAFFOLD_STEPS } from "../service/ScaffoldService.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodefony/studio",
3
- "version": "10.0.0-alpha.6",
3
+ "version": "10.0.0-alpha.8",
4
4
  "description": "Console d'administration web de Nodefony : modules, routes, services, configuration effective, journaux et métriques en temps réel",
5
5
  "author": "Christophe CAMENSULI <ccamensuli@gmail.com>",
6
6
  "type": "module",
@@ -39,12 +39,12 @@
39
39
  "esm"
40
40
  ],
41
41
  "peerDependencies": {
42
- "@nodefony/framework": "^10.0.0-alpha.6",
43
- "@nodefony/frontend": "^10.0.0-alpha.6",
44
- "@nodefony/http": "^10.0.0-alpha.6",
45
- "@nodefony/realtime": "^10.0.0-alpha.6",
46
- "nodefony": "^10.0.0-alpha.6",
47
- "zod": "^4.6.1"
42
+ "@nodefony/framework": "^10.0.0-alpha.8",
43
+ "@nodefony/frontend": "^10.0.0-alpha.8",
44
+ "@nodefony/http": "^10.0.0-alpha.8",
45
+ "@nodefony/realtime": "^10.0.0-alpha.8",
46
+ "nodefony": "^10.0.0-alpha.8",
47
+ "zod": "^4.6.5"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@mantine/core": "9.6.1",
@@ -53,37 +53,37 @@
53
53
  "@mantine/hooks": "9.6.1",
54
54
  "@mantine/modals": "9.6.1",
55
55
  "@mantine/notifications": "9.6.1",
56
- "@nodefony/framework": "^10.0.0-alpha.6",
57
- "@nodefony/frontend": "^10.0.0-alpha.6",
58
- "@nodefony/http": "^10.0.0-alpha.6",
59
- "@nodefony/realtime": "^10.0.0-alpha.6",
56
+ "@nodefony/framework": "^10.0.0-alpha.8",
57
+ "@nodefony/frontend": "^10.0.0-alpha.8",
58
+ "@nodefony/http": "^10.0.0-alpha.8",
59
+ "@nodefony/realtime": "^10.0.0-alpha.8",
60
60
  "@simplewebauthn/browser": "14.0.0",
61
- "@tabler/icons-react": "3.46.0",
61
+ "@tabler/icons-react": "3.47.0",
62
62
  "@tanstack/react-table": "9.2.4",
63
63
  "@types/chai": "5.2.3",
64
64
  "@types/dagre": "0.7.54",
65
- "@types/node": "26.5.1",
65
+ "@types/node": "26.6.2",
66
66
  "@types/react": "^19.3.0",
67
67
  "@types/react-dom": "^19.3.0",
68
68
  "@vitejs/plugin-react": "6.1.1",
69
- "@vitest/coverage-v8": "5.0.0",
69
+ "@vitest/coverage-v8": "5.0.1",
70
70
  "@xyflow/react": "12.11.6",
71
71
  "dagre": "0.8.5",
72
72
  "dayjs": "^1.11.23",
73
73
  "mermaid": "^12.0.0",
74
74
  "mobx": "^7.0.3",
75
75
  "mobx-react-lite": "^5.0.3",
76
- "nodefony": "^10.0.0-alpha.6",
76
+ "nodefony": "^10.0.0-alpha.8",
77
77
  "qrcode.react": "4.2.0",
78
78
  "react": "19.3.0",
79
79
  "react-dom": "19.3.0",
80
80
  "react-markdown": "^10.1.0",
81
- "react-router": "8.3.1",
81
+ "react-router": "8.4.0",
82
82
  "remark-gfm": "^4.0.1",
83
83
  "rimraf": "6.1.3",
84
84
  "tslib": "2.8.1",
85
85
  "vite": "8.3.0",
86
- "vitest": "5.0.0"
86
+ "vitest": "5.0.1"
87
87
  },
88
88
  "license": "Apache-2.0",
89
89
  "files": [
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Dy8y0zPl.js";var t=e(`outline`,`arrows-exchange`,`ArrowsExchange`,[[`path`,{d:`M7 10h14l-4 -4`,key:`svg-0`}],[`path`,{d:`M17 14h-14l4 4`,key:`svg-1`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Dy8y0zPl.js";var t=e(`outline`,`ban`,`Ban`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-0`}],[`path`,{d:`M5.7 5.7l12.6 12.6`,key:`svg-1`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Dy8y0zPl.js";var t=e(`outline`,`circuit-resistor`,`CircuitResistor`,[[`path`,{d:`M2 12h2l2 -5l3 10l3 -10l3 10l3 -10l1.5 5h2.5`,key:`svg-0`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Dy8y0zPl.js";var t=e(`outline`,`player-play`,`PlayerPlay`,[[`path`,{d:`M7 4v16l13 -8l-13 -8`,key:`svg-0`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Dy8y0zPl.js";var t=e(`outline`,`plus`,`Plus`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M5 12l14 0`,key:`svg-1`}]]);export{t};
@@ -1 +0,0 @@
1
- import{k as e}from"./src-Dvwdl2PF.js";import{$t as t,Bt as n,Ct as r,Et as i,H as a,I as o,J as s,K as c,Mn as l,Rt as u,Ut as d,an as f,b as p,di as m,et as h,nn as g,on as _,or as v,q as y,rt as b,sn as x,u as S,vn as C}from"./ui-Dy8y0zPl.js";import{c as w}from"./stores-DIccV-P5.js";import{t as T}from"./IconSitemap-CqkVZPOt.js";import{vt as E,w as D,y as O}from"./index-wfxUl83u.js";import{a as k,c as A}from"./firewallModel-DKOWcjIb.js";var j=i(`outline`,`hierarchy-2`,`Hierarchy2`,[[`path`,{d:`M10 3h4v4h-4l0 -4`,key:`svg-0`}],[`path`,{d:`M3 17h4v4h-4l0 -4`,key:`svg-1`}],[`path`,{d:`M17 17h4v4h-4l0 -4`,key:`svg-2`}],[`path`,{d:`M7 17l5 -4l5 4`,key:`svg-3`}],[`path`,{d:`M12 7l0 6`,key:`svg-4`}]]),M=e(m(),1),N=`v1.0`,P=v();function F(e){let t=e.hierarchy,n=new Set,r=new Set;for(let[e,i]of Object.entries(t)){n.add(e);for(let e of i)n.add(e),r.add(e)}for(let t of e.roles)n.add(t.role);let i=[...n].sort().map(e=>{let n=t[e]??[],i=!r.has(e);return{id:e,data:{label:e,sub:n.length>0?`hérite de ${n.length}`:`base`,icon:(0,P.jsx)(D,{size:18}),color:i?`indigo`:`blue`,emphasis:i}}}),a=[];for(let[e,n]of Object.entries(t))for(let t of n)a.push({source:e,target:t,color:`indigo`,animated:!1});return{nodes:i,edges:a}}function I({data:e,height:t=o}){let{nodes:n,edges:r}=(0,M.useMemo)(()=>F(e),[e]);return r.length===0?(0,P.jsx)(C,{size:`sm`,c:`dimmed`,fs:`italic`,children:`Aucun héritage déclaré — le graphe n'a pas d'arête. Chaque rôle est autonome (il ne couvre que lui-même).`}):(0,P.jsx)(p,{nodes:n,edges:r,dir:`TB`,height:t,ariaLabel:`Graphe d'héritage des rôles RBAC`})}var L=`Aucune hiérarchie de rôles déclarée — chaque rôle ne couvre que lui-même. Déclaration via defineSecurityConfig({ roleHierarchy }).`,R=E(()=>{let e=w(),[i,o]=(0,M.useState)(`hierarchie`),p=(0,M.useCallback)(async()=>{try{return await e.api.getAbsolute(k)}catch(e){throw Error(A(e),{cause:e})}},[e]),{data:m,loading:v,error:E,reload:F}=O(p),R=m?.roles??[],z=m?.hierarchy??{},B=R.length,V=R.filter(e=>e.inherits.length>0).length,H=R.reduce((e,t)=>Math.max(e,t.inherits.length),0);return(0,P.jsx)(y,{title:`Rôles`,subtitle:`${B} rôle(s) déclaré(s) — hiérarchie RBAC (niveau A)`,icon:(0,P.jsx)(D,{size:22}),actions:(0,P.jsxs)(l,{gap:`sm`,wrap:`nowrap`,children:[i===`graphe`&&(0,P.jsx)(a,{title:`Graphe d'héritage`,version:`v1.0`,summary:`DAG des rôles : un lien A → B = « A hérite de B ». La transitivité se lit comme un chemin (A → B → C ⇒ A couvre C).`,sections:[{label:`Comment lire`,body:`De haut en bas : les sommets (mis en avant) ne sont hérités par personne = les rôles d'entrée les plus puissants ; les rôles de base (ROLE_USER…) sont en bas.`}]}),(0,P.jsx)(_,{variant:`light`,leftSection:(0,P.jsx)(h,{size:16}),loading:v,onClick:F,children:`Recharger`})]}),children:(0,P.jsx)(c,{loading:v&&!m,error:E,onRetry:F,children:(0,P.jsxs)(n,{value:i,onChange:o,children:[(0,P.jsxs)(s,{children:[(0,P.jsx)(n.Tab,{value:`hierarchie`,leftSection:(0,P.jsx)(b,{size:15}),children:`Hiérarchie`}),(0,P.jsx)(n.Tab,{value:`graphe`,leftSection:(0,P.jsx)(T,{size:15}),children:`Graphe`})]}),(0,P.jsx)(n.Panel,{value:`hierarchie`,pt:`md`,children:(0,P.jsxs)(d,{gap:`md`,children:[(0,P.jsxs)(t,{children:[(0,P.jsx)(S,{icon:(0,P.jsx)(D,{size:20}),label:`Rôles déclarés`,value:B,accent:`indigo`,info:(0,P.jsx)(a,{title:`Rôles déclarés`,version:N,summary:`${B} rôle(s) clés de la hiérarchie (defineSecurityConfig.roleHierarchy).`,sections:[{label:`Si 0`,body:`Aucune hiérarchie déclarée : tous les rôles sont plats (chacun ne couvre que lui-même).`}]})}),(0,P.jsx)(S,{icon:(0,P.jsx)(j,{size:20}),label:`Avec héritage`,value:V,accent:`blue`,info:(0,P.jsx)(a,{title:`Rôles avec héritage`,version:N,summary:`${V} rôle(s) héritent d'au moins un autre rôle (transitif inclus).`,sections:[{label:`Lecture`,body:`Un rôle « avec héritage » couvre les droits d'autres rôles ; les rôles sans héritage sont des feuilles (ex. ROLE_USER).`}]})}),(0,P.jsx)(S,{icon:(0,P.jsx)(r,{size:20}),label:`Couverture max`,value:H,accent:`grape`,info:(0,P.jsx)(a,{title:`Couverture maximale`,version:N,summary:`Le rôle le plus puissant couvre ${H} autre(s) rôle(s) par transitivité.`,sections:[{label:`Technique`,body:`Taille maximale de la closure transitive (resolveRoles) parmi tous les rôles déclarés.`}]})})]}),(0,P.jsxs)(l,{gap:`xs`,children:[(0,P.jsx)(C,{size:`sm`,c:`dimmed`,children:`Déclaration directe et résolution transitive de chaque rôle.`}),(0,P.jsx)(a,{title:`Hiérarchie de rôles (RBAC)`,version:N,summary:`Un rôle hérite des droits des rôles qu'il déclare. La résolution est transitive et précalculée au boot (les cycles sont détectés → erreur).`,sections:[{label:`Directe vs transitive`,body:`« Hérite directement » = ce qui est écrit dans la config. « Couvre aussi » = les rôles gagnés par transitivité (un rôle hérité hérite lui-même d'autres rôles).`},{label:`Si vide`,body:`Aucun héritage déclaré : chaque rôle ne couvre que lui-même. Déclaration via defineSecurityConfig({ roleHierarchy }).`}]})]}),R.length===0?(0,P.jsx)(C,{size:`sm`,c:`dimmed`,fs:`italic`,children:L}):(0,P.jsx)(t,{children:R.map(e=>{let n=z[e.role]??[],r=new Set(n),i=e.inherits.filter(e=>!r.has(e));return(0,P.jsx)(t.Col,{span:{base:12,md:6},children:(0,P.jsxs)(f,{withBorder:!0,radius:`md`,p:`md`,h:`100%`,children:[(0,P.jsxs)(l,{gap:`xs`,wrap:`nowrap`,mb:`sm`,children:[(0,P.jsx)(u,{variant:`light`,color:`indigo`,radius:`sm`,size:`sm`,children:(0,P.jsx)(D,{size:15})}),(0,P.jsx)(g,{style:{fontWeight:700},children:e.role})]}),(0,P.jsxs)(d,{gap:6,children:[(0,P.jsxs)(l,{gap:6,align:`center`,wrap:`wrap`,children:[(0,P.jsx)(C,{size:`xs`,c:`dimmed`,w:120,children:`Hérite directement`}),n.length===0?(0,P.jsx)(C,{size:`sm`,c:`dimmed`,fs:`italic`,children:`—`}):n.map(e=>(0,P.jsx)(x,{variant:`light`,color:`indigo`,style:{textTransform:`none`},children:e},e))]}),i.length>0&&(0,P.jsxs)(l,{gap:6,align:`center`,wrap:`wrap`,children:[(0,P.jsx)(C,{size:`xs`,c:`dimmed`,w:120,children:`Couvre aussi`}),i.map(e=>(0,P.jsx)(x,{variant:`outline`,color:`gray`,style:{textTransform:`none`},children:e},e))]})]})]})},e.role)})})]})}),(0,P.jsx)(n.Panel,{value:`graphe`,pt:`md`,children:i===`graphe`&&(m?(0,P.jsx)(I,{data:m}):(0,P.jsx)(C,{size:`sm`,c:`dimmed`,fs:`italic`,children:L}))})]})})})});export{R as Roles};
@@ -1 +0,0 @@
1
- import{k as e}from"./src-Dvwdl2PF.js";import{$t as t,Bt as n,Et as r,H as i,Lt as a,Mn as o,Ut as s,V as c,Wn as l,Xt as u,Z as d,an as f,di as p,et as m,n as h,nn as g,on as _,or as v,q as y,rt as b,t as x,vn as S,wt as ee,yn as C,zt as w}from"./ui-Dy8y0zPl.js";import{t as T}from"./List-Da8UU6lg.js";import{t as E}from"./TagsInput-CvH7XFRB.js";import{C as D,T as te,c as O,k as ne,o as re,r as ie}from"./stores-DIccV-P5.js";import{a as ae}from"./hooks-C4XxBzBx.js";import{n as oe,r as k}from"./IconUserOff-D99nKohi.js";import{t as se}from"./IconHelpCircle-BoSiqXIY.js";import{a as ce,i as A,n as le,t as j}from"./pageQuery-yJh2-jSv.js";import{C as M,L as ue,O as N,b as de,ht as P,k as F,v as fe,vt as I,y as L}from"./index-wfxUl83u.js";import{t as pe}from"./BrickStoreChip-BtiG99lz.js";import{a as me,c as R,d as z,f as B,i as V,l as he,n as H,o as U,p as ge,r as W,s as G,t as _e,u as ve}from"./usersFormat-C33NWJaO.js";var K=r(`outline`,`user-plus`,`UserPlus`,[[`path`,{d:`M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0`,key:`svg-0`}],[`path`,{d:`M16 19h6`,key:`svg-1`}],[`path`,{d:`M19 16v6`,key:`svg-2`}],[`path`,{d:`M6 21v-2a4 4 0 0 1 4 -4h4`,key:`svg-3`}]]),q=e(p(),1),J=v(),ye=I(({roles:e,admin:t,fallback:n=null,children:r})=>{let i=ie(),a=[...t?[D]:[],...e??[]];return a.length===0||ne(i.roles,a)?(0,J.jsx)(J.Fragment,{children:r}):(0,J.jsx)(J.Fragment,{children:n})}),Y={role:{label:`Rôle`,hint:`Comptes portant CE rôle exactement (ex. ROLE_NODEFONY_ADMIN). Correspondance stricte, pas une recherche.`,placeholder:`ROLE_…`},enabled:{label:`Activation`,hint:`Activé = le compte peut s'authentifier. Un compte peut être activé ET verrouillé : les deux filtres sont indépendants.`,values:{true:`Activés`,false:`Désactivés`}},locked:{label:`Verrouillage`,hint:`Verrouillé par la défense anti-force brute — distinct d'une désactivation, qui est une décision d'administration.`,values:{true:`Verrouillés`,false:`Non verrouillés`}},hasSocial:{label:`Connexion`,hint:`Comptes liés à au moins un fournisseur externe (OAuth : Google, GitHub, Keycloak…).`,values:{true:`Sociaux`,false:`Locaux`}}},be=I(function({filters:e,onFiltersChange:t,onEdit:n,onBulkDelete:r,reloadKey:a=0,onLoaded:c,onSearchChange:l}){let u=O(),f=u.admin.pageCapabilities(G),p=JSON.stringify(e),m=(0,q.useCallback)(async t=>{let n=A(t,e);try{let e=await u.api.getAbsolute(`${G}?${n}`);return c?.(e.items),le(e)}catch(e){throw Error(z(e),{cause:e})}},[u,p,a,c]),g=(0,q.useMemo)(()=>new Set(f?.sortable??[]),[f?.sortable]),v=(0,q.useMemo)(()=>[{key:`identifier`,header:`Identifiant`,sortable:g.has(`identifier`),value:e=>e.identifier,render:e=>(0,J.jsx)(S,{fw:600,size:`sm`,style:{wordBreak:`break-all`},children:e.identifier}),size:200},{key:`roles`,header:`Rôles`,value:e=>e.roles.join(` `),render:e=>(0,J.jsx)(H,{roles:e.roles}),size:240},{key:`status`,header:`État`,value:e=>e.locked?`Verrouillé`:e.enabled?`Actif`:`Désactivé`,render:e=>(0,J.jsx)(W,{enabled:e.enabled,locked:e.locked}),size:130},{key:`provider`,header:`Connexion`,value:e=>e.socialProviders.length>0?e.socialProviders.map(e=>e.provider).join(` `):`local`,render:e=>(0,J.jsx)(_e,{providers:e.socialProviders}),size:150},{key:`tenant`,header:`Tenant`,value:e=>e.tenantId??`global`,render:e=>(0,J.jsx)(V,{tenantId:e.tenantId}),size:120},{key:`createdAt`,header:`Créé`,sortable:g.has(`createdAt`),value:e=>e.createdAt??0,render:e=>(0,J.jsx)(S,{size:`sm`,c:e.createdAt===null?`dimmed`:void 0,children:B(e.createdAt)}),size:170},{key:`updatedAt`,header:`Dernière maj`,sortable:g.has(`updatedAt`),value:e=>e.updatedAt??0,render:e=>(0,J.jsx)(S,{size:`sm`,c:e.updatedAt===null?`dimmed`:void 0,children:ge(e.updatedAt)}),size:150}],[g]);return(0,J.jsxs)(s,{gap:`md`,children:[(0,J.jsxs)(o,{gap:`xs`,children:[(0,J.jsx)(S,{size:`sm`,c:`dimmed`,children:`Clic sur une ligne pour gérer le compte.`}),(0,J.jsx)(i,{title:`Utilisateurs`,version:U,summary:`Les comptes utilisateurs du serveur (source d'identité du firewall). La table lit l'annuaire page par page : tri, filtres et recherche sont exécutés par le serveur, jamais sur un extrait chargé d'avance.`,sections:[{label:`Ce qui est proposé`,body:f?`Le serveur déclare savoir trier sur ${f.sortable.length} champ(s) et filtrer sur ${Object.keys(f.filters).length}. Ce qu'il ne déclare pas n'est pas offert : une en-tête cliquable qui répondrait 400 serait pire qu'une en-tête inerte.`:`Les capacités de l'annuaire ne sont pas encore connues (catalogue d'administration en cours de chargement) : ni tri ni filtre ne sont proposés tant qu'on ne sait pas ce que le serveur honore.`},{label:`Redaction`,body:`Le hash de mot de passe n'est JAMAIS exposé : le DTO d'administration ne porte que l'identité, les rôles et l'état. Les liens sociaux (OAuth) sont montrés sans jeton.`},{label:`Garde-fous anti-verrouillage`,body:`Le serveur refuse de supprimer votre propre compte ou le dernier administrateur actif (sinon plus personne ne pourrait administrer). Ces refus reviennent en erreur explicite (409).`},{label:`Tenant`,body:`La colonne Tenant prépare le multi-tenant (P17) : aujourd'hui « global » (mono-tenant), demain l'organisation porteuse du compte.`}]})]}),(0,J.jsx)(x,{spec:f?.filters??null,value:e,onChange:t,labels:Y}),(0,J.jsx)(h,{mode:`server`,loader:m,columns:v,getRowId:e=>e.id,onRowClick:e=>n(e),dimRow:e=>!e.enabled||e.locked,initialSort:g.has(`identifier`)?{key:`identifier`,dir:`asc`}:void 0,searchable:f?.search??!1,searchPlaceholder:`Rechercher un identifiant…`,onSearchChange:l,resetPageSignal:p,pageSize:25,persist:{key:`studio.users`,storage:`session`},emptyMessage:`Aucun utilisateur ne correspond.`,selectable:!0,bulkActions:(e,t)=>(0,J.jsxs)(_,{color:`red`,size:`xs`,variant:`light`,leftSection:(0,J.jsx)(d,{size:14}),onClick:()=>r(e,t),children:[`Supprimer `,e.length,` compte`,e.length>1?`s`:``]})})]})});function X({icon:e,title:t,children:n}){return(0,J.jsx)(f,{withBorder:!0,radius:`md`,p:`lg`,children:(0,J.jsxs)(s,{gap:`sm`,children:[(0,J.jsxs)(a,{order:4,style:{display:`flex`,alignItems:`center`,gap:8},children:[e,t]}),n]})})}function xe(){return(0,J.jsxs)(s,{gap:`md`,children:[(0,J.jsx)(X,{icon:(0,J.jsx)(M,{size:18}),title:`Qu'est-ce qu'un utilisateur ?`,children:(0,J.jsxs)(S,{size:`sm`,children:[`Un utilisateur est un compte porté par le service `,(0,J.jsx)(g,{children:`users`}),` — la `,(0,J.jsx)(`strong`,{children:`source d'identité`}),` du firewall. C'est l'application qui décide `,(0,J.jsx)(`em`,{children:`qui`}),` sont ses utilisateurs et `,(0,J.jsx)(`em`,{children:`où`}),` ils sont stockés (annuaire en mémoire, SQL via Drizzle, ou MongoDB). Cette console liste les comptes, leur état et leurs rôles, et permet de les gouverner.`]})}),(0,J.jsxs)(X,{icon:(0,J.jsx)(N,{size:18}),title:`Le hash de mot de passe n'est jamais exposé`,children:[(0,J.jsxs)(S,{size:`sm`,children:[`Le DTO d'administration est `,(0,J.jsx)(`strong`,{children:`redacté par construction`}),` `,`(allowlist côté serveur) : il ne porte que l'identité, les rôles, l'état et les liens sociaux. Le `,(0,J.jsx)(g,{children:`password`}),` (hash) et les`,` `,(0,J.jsx)(g,{children:`metadata`}),` (potentiellement sensibles) ne sortent jamais de l'API. Les comptes OAuth sont montrés `,(0,J.jsx)(`strong`,{children:`sans jeton`}),` `,`(fournisseur + référence seulement).`]}),(0,J.jsx)(C,{variant:`light`,color:`gray`,children:(0,J.jsxs)(S,{size:`xs`,children:[`Un compte « local » s'authentifie par mot de passe ; un compte`,` `,(0,J.jsx)(g,{children:`google`}),`/`,(0,J.jsx)(g,{children:`github`}),` est un`,` `,(0,J.jsx)(`strong`,{children:`Shadow User`}),` (ligne locale liée à un compte externe, sans mot de passe stocké).`]})})]}),(0,J.jsx)(X,{icon:(0,J.jsx)(F,{size:18}),title:`Garde-fous anti-verrouillage`,children:(0,J.jsxs)(T,{size:`sm`,spacing:`xs`,children:[(0,J.jsxs)(T.Item,{children:[(0,J.jsx)(`strong`,{children:`Pas d'auto-suppression`}),` : le serveur refuse de supprimer le compte de l'administrateur connecté.`]}),(0,J.jsxs)(T.Item,{children:[(0,J.jsx)(`strong`,{children:`Pas de suppression du dernier admin`}),` : si un seul administrateur actif reste, sa suppression (ou déchéance) est refusée — sinon plus personne ne pourrait administrer.`]}),(0,J.jsxs)(T.Item,{children:[`Ces refus reviennent en `,(0,J.jsx)(`strong`,{children:`erreur explicite (409)`}),` `,`affichée dans Studio. Chaque suppression est`,` `,(0,J.jsx)(`strong`,{children:`auditée`}),` et passe en HTTP (pipeline CSRF complet).`]}),(0,J.jsxs)(T.Item,{children:[`Supprimer un compte `,(0,J.jsx)(`strong`,{children:`révoque en cascade`}),` ses sessions et ses jetons d'accès (PAT) — déconnexion immédiate.`]})]})}),(0,J.jsx)(X,{icon:(0,J.jsx)(k,{size:18}),title:`Multi-tenant (P17) — réservé`,children:(0,J.jsxs)(S,{size:`sm`,children:[`La colonne `,(0,J.jsx)(`strong`,{children:`Tenant`}),` prépare le mode multi-organisations : aujourd'hui `,(0,J.jsx)(g,{children:`global`}),` (mono-tenant), demain le filtrage par organisation porteuse du compte. Le contrat porte déjà le champ`,` `,(0,J.jsx)(g,{children:`tenantId`}),` — aucun changement d'API ne sera nécessaire pour l'activer.`]})})]})}function Se({opened:e,onClose:t,roleSuggestions:n,onCreated:r}){let i=O(),a=re(),[c,d]=(0,q.useState)(``),[f,p]=(0,q.useState)(``),[m,h]=(0,q.useState)([]),[g,v]=(0,q.useState)(!1),[y,b]=(0,q.useState)(null);function x(){d(``),p(``),h([]),b(null),v(!1)}function T(){x(),t()}async function D(){b(null);let e=c.trim();if(e.length===0){b(`Renseignez un identifiant (email ou login).`);return}v(!0);try{let n={identifier:e};f&&(n.plainPassword=f),m.length>0&&(n.roles=m);let o=await i.api.postAbsolute(G,n);a.notify(`success`,`Compte « ${o.identifier} » créé.`,{source:`api`}),x(),t(),r()}catch(e){let t=e?.status;b(t===409?`Un compte avec cet identifiant existe déjà.`:z(e))}finally{v(!1)}}return(0,J.jsx)(u,{opened:e,onClose:()=>g?void 0:T(),title:(0,J.jsxs)(o,{gap:`xs`,children:[(0,J.jsx)(K,{size:18}),(0,J.jsx)(S,{fw:700,children:`Nouvel utilisateur`})]}),centered:!0,size:`lg`,children:(0,J.jsxs)(s,{gap:`md`,children:[(0,J.jsx)(l,{mih:44,children:y&&(0,J.jsx)(C,{role:`alert`,variant:`light`,color:`red`,icon:(0,J.jsx)(ee,{size:16}),children:y})}),(0,J.jsx)(w,{label:`Identifiant`,description:`Email ou login — la clé de connexion du compte.`,placeholder:`alice@example.com`,required:!0,value:c,maxLength:200,onChange:e=>{d(e.currentTarget.value),y&&b(null)},"data-autofocus":!0}),(0,J.jsx)(P,{label:`Mot de passe (optionnel)`,description:`Laissez vide pour un compte sans mot de passe (connexion sociale / passkey, ou à définir plus tard via « Modifier »).`,placeholder:`••••••••`,value:f,onChange:e=>p(e.currentTarget.value)}),(0,J.jsx)(E,{label:`Rôles (optionnel)`,description:`Suggestions des rôles connus ; vous pouvez en saisir d'autres. Vide = compte de base.`,placeholder:`ROLE_USER…`,data:n,value:m,onChange:h,clearable:!0}),(0,J.jsxs)(o,{justify:`flex-end`,mt:`xs`,children:[(0,J.jsx)(_,{variant:`default`,onClick:T,children:`Annuler`}),(0,J.jsx)(_,{leftSection:(0,J.jsx)(K,{size:16}),loading:g,onClick:D,children:`Créer le compte`})]})]})})}var Z=I(()=>{let e=O(),r=ie(),a=re(),l=r.user?.username??null,f=de(),p=ae(),[h,g]=(0,q.useState)(`list`),[v,x]=(0,q.useState)(!1),[w,T]=(0,q.useState)(null),[E,D]=(0,q.useState)(!1),[ne,k]=(0,q.useState)(0),[A,le]=(0,q.useState)([]),N=(0,q.useCallback)(()=>k(e=>e+1),[]),[P,I]=(0,q.useState)({}),[B,V]=(0,q.useState)(``),H=(0,q.useCallback)(()=>f?e.api.getAbsolute(he):Promise.resolve(null),[e,f]),{data:ge}=L(H),W=e.admin.pageCapabilities(R),G=ce(P,W,B).toString(),_e=(0,q.useCallback)(()=>f?e.api.getAbsolute(G?`${R}?${G}`:R):Promise.resolve(null),[e,f,G]),{data:Y,reload:X}=L(_e),Z=fe(W,P,I),Q=(0,q.useMemo)(()=>Y??{total:null,active:null,disabled:null,locked:null,admins:null,social:null},[Y]),$=Q.total??ge?.count??null,Ce=(0,q.useMemo)(()=>{let e=new Set(te);for(let t of A)for(let n of t.roles)e.add(n);return[...e].sort()},[A]);async function we(){if(!w)return;let{users:t,clear:n}=w;D(!0);try{let r=await Promise.allSettled(t.map(t=>e.api.deleteAbsolute(ve(t.id)))),i=r.filter(e=>e.status===`fulfilled`).length,o=r.length-i;a.notify(o===0?`success`:`warning`,o===0?`${i} compte(s) supprimé(s).`:`${i} supprimé(s), ${o} refusé(s) (garde-fou : dernier admin / votre compte).`,{source:`api`}),n(),T(null),N(),X()}catch(e){a.notify(`error`,z(e),{source:`api`})}finally{D(!1)}}let Te=w?.users.some(e=>e.identifier===l)??!1,Ee=w?.users.filter(e=>e.roles.includes(me)).length??0,De=`${j($)} compte(s) · ${j(Q.admins)} admin(s)`;return(0,J.jsxs)(y,{title:`Users`,subtitle:De,icon:(0,J.jsx)(M,{size:26}),actions:(0,J.jsxs)(o,{gap:`sm`,wrap:`nowrap`,children:[(0,J.jsx)(ye,{admin:!0,children:(0,J.jsx)(_,{leftSection:(0,J.jsx)(K,{size:16}),onClick:()=>x(!0),children:`Nouvel utilisateur`})}),(0,J.jsx)(_,{variant:`light`,leftSection:(0,J.jsx)(m,{size:16}),onClick:()=>{N(),X()},children:`Recharger`})]}),children:[(0,J.jsx)(o,{gap:`md`,align:`center`,wrap:`wrap`,children:(0,J.jsxs)(o,{gap:`xs`,align:`center`,children:[(0,J.jsx)(S,{size:`sm`,fw:600,children:`Comptes du serveur`}),(0,J.jsx)(i,{title:`Administration des utilisateurs`,version:U,summary:`Vue gouvernance des comptes utilisateurs (source d'identité du firewall). Suppression auditée, protégée par des garde-fous anti-verrouillage.`,sections:[{label:`RBAC`,body:`L'administration des utilisateurs est réservée aux administrateurs (ROLE_NODEFONY_ADMIN). L'affichage Studio est un gating ; l'enforcement réel est côté firewall serveur.`},{label:`Tenant (P17)`,body:`La colonne Tenant prépare le multi-tenant : la même vue scopée à une organisation (le champ tenantId existe déjà sur chaque compte).`}]}),f&&(0,J.jsx)(S,{size:`xs`,c:`dimmed`,children:`Vue gouvernance — suppression auditée.`}),(0,J.jsx)(pe,{brick:`user`})]})}),(0,J.jsxs)(t,{children:[(0,J.jsx)(c,{label:`Total`,...Z(`total`,`l'annuaire entier (retire les filtres de facette)`),icon:(0,J.jsx)(M,{size:20,color:`var(--mantine-color-brand-5)`}),hint:f?$===null?`Le dépôt d'utilisateurs branché ne sait pas compter ses lignes — aucun total n'est affiché plutôt qu'un chiffre inventé.`:`Total de l'annuaire, compté par le serveur : ${$} comptes. La table les parcourt page par page.`:`Le total de l'annuaire est réservé aux administrateurs — « — » signifie « je ne sais pas », pas « aucun compte ».`,children:(0,J.jsx)(S,{fz:28,fw:700,style:{fontVariantNumeric:`tabular-nums`},children:j($)})}),(0,J.jsx)(c,{label:`Actifs`,...Z(`active`,`les comptes actifs (activés et non verrouillés)`),icon:(0,J.jsx)(oe,{size:20,color:`var(--mantine-color-teal-6)`}),hint:`Comptes activés et non verrouillés (peuvent s'authentifier).`,children:(0,J.jsx)(S,{fz:28,fw:700,c:`teal`,style:{fontVariantNumeric:`tabular-nums`},children:j(Q.active)})}),(0,J.jsx)(c,{label:`Administrateurs`,icon:(0,J.jsx)(F,{size:20,color:`var(--mantine-color-red-6)`}),info:(0,J.jsx)(i,{title:`Administrateurs`,version:U,summary:`Comptes portant ROLE_NODEFONY_ADMIN.`,sections:[{label:`Garde-fou`,body:`Le serveur refuse de supprimer ou déchoir le dernier administrateur actif — sinon l'administration deviendrait inaccessible.`}]}),children:(0,J.jsx)(S,{fz:28,fw:700,c:`red`,style:{fontVariantNumeric:`tabular-nums`},children:j(Q.admins)})}),(0,J.jsx)(c,{label:`Comptes sociaux`,...Z(`social`,`les comptes liés à un fournisseur externe`),icon:(0,J.jsx)(ue,{size:20,color:`var(--mantine-color-grape-6)`}),hint:`Comptes liés à un fournisseur externe (OAuth — Google, GitHub, Keycloak…).`,children:(0,J.jsx)(S,{fz:28,fw:700,c:`grape`,style:{fontVariantNumeric:`tabular-nums`},children:j(Q.social)})})]}),(0,J.jsxs)(n,{value:h,onChange:e=>e&&g(e),mt:`xs`,children:[(0,J.jsxs)(n.List,{children:[(0,J.jsx)(n.Tab,{value:`list`,leftSection:(0,J.jsx)(b,{size:15}),children:`Utilisateurs`}),(0,J.jsx)(n.Tab,{value:`help`,leftSection:(0,J.jsx)(se,{size:15}),children:`Utilisation & aide`})]}),(0,J.jsx)(n.Panel,{value:`list`,pt:`md`,children:(0,J.jsx)(be,{filters:P,onFiltersChange:I,onEdit:e=>p(`/nodefony/users/${e.id}`),onBulkDelete:(e,t)=>T({users:e,clear:t}),reloadKey:ne,onLoaded:le,onSearchChange:V})}),(0,J.jsx)(n.Panel,{value:`help`,pt:`md`,children:h===`help`&&(0,J.jsx)(xe,{})})]}),(0,J.jsx)(Se,{opened:v,onClose:()=>x(!1),roleSuggestions:Ce,onCreated:N}),(0,J.jsx)(u,{opened:w!==null,onClose:()=>E?void 0:T(null),title:(0,J.jsxs)(o,{gap:`xs`,children:[(0,J.jsx)(d,{size:18,color:`var(--mantine-color-red-6)`}),(0,J.jsx)(S,{fw:700,children:`Supprimer les comptes sélectionnés ?`})]}),centered:!0,children:w&&(0,J.jsxs)(s,{gap:`md`,children:[(0,J.jsx)(C,{variant:`light`,color:`red`,icon:(0,J.jsx)(ee,{size:16}),children:(0,J.jsxs)(S,{size:`sm`,children:[(0,J.jsx)(`strong`,{children:w.users.length}),` compte(s) seront`,` `,(0,J.jsx)(`strong`,{children:`immédiatement`}),` supprimés — sessions et jetons révoqués en cascade. Action irréversible.`,Te?` ⚠ VOTRE compte est dans la sélection : le serveur le refusera (garde-fou).`:``,Ee>0?` ${Ee} administrateur(s) sélectionné(s) : le dernier admin actif ne pourra pas être supprimé.`:``]})}),(0,J.jsxs)(o,{justify:`flex-end`,children:[(0,J.jsx)(_,{variant:`default`,disabled:E,onClick:()=>T(null),children:`Annuler`}),(0,J.jsxs)(_,{color:`red`,leftSection:(0,J.jsx)(d,{size:16}),loading:E,onClick:we,children:[`Supprimer `,w.users.length]})]})]})})]})});export{Z as Users,Z as default};
@@ -1 +0,0 @@
1
- import{k as e}from"./src-Dvwdl2PF.js";import{di as t}from"./ui-Dy8y0zPl.js";var n=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,r=/^[\\/]{2}/;function i(e,t){return t+e.replace(/\\/g,`/`)}var a=`popstate`;function o(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function s(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return f(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:p(t)}return h(t,n,null,e)}function c(e,t){if(e===!1||e==null)throw Error(t)}function l(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function u(){return Math.random().toString(36).substring(2,10)}function d(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function f(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?m(t):t,state:n,key:t&&t.key||r||u(),mask:i}}function p({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function m(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function h(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,c=i.history,l=`POP`,u=null,p=m();p??(p=0,c.replaceState({...c.state,idx:p},``));function m(){return(c.state||{idx:null}).idx}function h(){l=`POP`;let e=m(),t=e==null?null:e-p;p=e,u&&u({action:l,location:b.location,delta:t})}function _(e,t){l=`PUSH`;let r=o(e)?e:f(b.location,e,t);n&&n(r,e),p=m()+1;let a=d(r,p),h=b.createHref(r.mask||r);try{c.pushState(a,``,h)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(h)}s&&u&&u({action:l,location:b.location,delta:1})}function v(e,t){l=`REPLACE`;let r=o(e)?e:f(b.location,e,t);n&&n(r,e),p=m();let i=d(r,p),a=b.createHref(r.mask||r);c.replaceState(i,``,a),s&&u&&u({action:l,location:b.location,delta:0})}function y(e){return g(i,e)}let b={get action(){return l},get location(){return e(i,c)},listen(e){if(u)throw Error(`A history only accepts one active listener`);return i.addEventListener(a,h),u=e,()=>{i.removeEventListener(a,h),u=null}},createHref(e){return t(i,e)},createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:_,replace:v,go(e){return c.go(e)}};return b}function g(e,t,n=!1){let i=`http://localhost`;e&&(i=e.location.origin===`null`?e.location.href:e.location.origin),c(i,`No window.location.(origin|href) available to create URL`);let a=typeof t==`string`?t:p(t);return a=a.replace(/ $/,`%20`),!n&&r.test(a)&&(a=i+a),new URL(a,i)}var _=e(t(),1),v=class{#e=new Map;constructor(e){if(e)for(let[t,n]of e)this.set(t,n)}get(e){if(this.#e.has(e))return this.#e.get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){this.#e.set(e,t)}},y=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function b(e){return y.has(e)}var x=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function S(e){return x.has(e)}function C(e){return e.index===!0}function w(e){let t={};return e.Component&&Object.assign(t,{element:_.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:_.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:_.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function T(e,t=w,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(c(e.index!==!0||!e.children,`Cannot specify children on an index route`),c(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),C(e)){let n={...e,id:s};return r[s]=ee(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=ee(n,t(n)),e.children&&(n.children=T(e.children,t,o,r,i)),n}})}function ee(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function E(e,t,n=`/`){return D(e,t,n,!1)}function D(e,t,n,r,i){let a=ue((typeof t==`string`?m(t):t).pathname||`/`,n);if(a==null)return null;let o=i??k(e),s=null,c=le(a);for(let e=0;s==null&&e<o.length;++e)s=oe(o[e],c,r);return s}function O(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,loaderData:t[n.id],handle:n.handle}}function k(e){let t=A(e);return M(t),t}function A(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let l={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(l.relativePath.startsWith(`/`)){if(!l.relativePath.startsWith(r)&&o)return;c(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)}let u=V([r,l.relativePath]),d=n.concat(l);e.children&&e.children.length>0&&(c(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),A(e.children,t,d,u,o)),(e.path!=null||e.index)&&t.push({path:u,score:R(u,e.index),routesMeta:d.map((e,t)=>{let[n,r]=ce(e.relativePath,e.caseSensitive,t===d.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of j(e.path))a(e,t,!0,n)}),t}function j(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=j(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function M(e){e.sort((e,t)=>e.score===t.score?ae(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var te=/^:[\w-]+$/,N=/^:[\w-]+/,P=3.5,F=3,ne=2,I=1,re=10,ie=-2,L=e=>e===`*`;function R(e,t){let n=e.split(`/`),r=n.length;return n.some(L)&&(r+=ie),t&&(r+=ne),n.filter(e=>!L(e)).reduce((e,t)=>e+(te.test(t)?F:N.test(t)?P:t===``?I:re),r)}function ae(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function oe(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?se(u,l,s.matcher,s.compiledParams):z(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=z({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:V([a,d.pathname]),pathnameBase:H(V([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=V([a,d.pathnameBase]))}return o}function z(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ce(e.path,e.caseSensitive,e.end);return se(e,t,n,r)}function se(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=ye(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=ye(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function ce(e,t=!1,n=!0){l(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(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function le(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return l(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ue(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function de({basename:e,pathname:t}){return t===`/`?e:V([e,t])}var fe=e=>n.test(e);function pe(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?m(e):e,a;return n?(n=ve(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?me(n.substring(1),`/`):me(n,t)):a=t,{pathname:a,search:be(r),hash:xe(i)}}function me(e,t){let n=ye(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function B(e,t,n,r){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.`}function he(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function ge(e){let t=he(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function _e(e,t,n,r=!1){let i;typeof e==`string`?i=m(e):(i={...e},c(!i.pathname||!i.pathname.includes(`?`),B(`?`,`pathname`,`search`,i)),c(!i.pathname||!i.pathname.includes(`#`),B(`#`,`pathname`,`hash`,i)),c(!i.search||!i.search.includes(`#`),B(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let l=pe(i,s),u=o&&o!==`/`&&o.endsWith(`/`),d=(a||o===`.`)&&n.endsWith(`/`);return!l.pathname.endsWith(`/`)&&(u||d)&&(l.pathname+=`/`),l}var ve=e=>e.replace(/[\\/]{2,}/g,`/`),V=e=>ve(e.join(`/`));function ye(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var H=e=>ye(e).replace(/^\/*/,`/`),be=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,xe=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Se=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],U=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Ce(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function we(e){return V(e.map(e=>e.route.path).filter(Boolean))||`/`}function Te(e,t){let n=new URL(typeof e==`string`||e instanceof URL?e:e.url),r=typeof t==`string`?m(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);let i=e.toString();n.search=i?`?${i}`:``}else n.search=``;return n.hash=r.hash||``,n}var Ee=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function De(e,t){let a=e;if(typeof a!=`string`||!n.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let o=a,s=!1;if(Ee)try{let e=new URL(window.location.href),n=r.test(a)?new URL(i(a,e.protocol)):new URL(a),o=ue(n.pathname,t);n.origin===e.origin&&o!=null?a=o+n.search+n.hash:s=!0}catch{l(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:s,to:a}}var Oe=Symbol(`Uninstrumented`),ke=new WeakMap;function Ae(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){e.lazy!=null&&n.lazy.push(e.lazy),e[`lazy.loader`]!=null&&n[`lazy.loader`].push(e[`lazy.loader`]),e[`lazy.action`]!=null&&n[`lazy.action`].push(e[`lazy.action`]),e[`lazy.middleware`]!=null&&n[`lazy.middleware`].push(e[`lazy.middleware`]),e.middleware!=null&&n.middleware.push(e.middleware),e.loader!=null&&n.loader.push(e.loader),e.action!=null&&n.action.push(e.action)}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=t.lazy;r.lazy=async(...t)=>G(await K(n.lazy,void 0,()=>e(...t),q))}if(typeof t.lazy==`object`){let e=t.lazy;if(typeof e.middleware==`function`&&n[`lazy.middleware`].length>0){let t=e.middleware;r.lazy=Object.assign(r.lazy||{},{middleware:async(...e)=>G(await K(n[`lazy.middleware`],void 0,()=>t(...e),q))})}if(typeof e.loader==`function`&&n[`lazy.loader`].length>0){let t=e.loader;r.lazy=Object.assign(r.lazy||{},{loader:async(...e)=>G(await K(n[`lazy.loader`],void 0,()=>t(...e),q))})}if(typeof e.action==`function`&&n[`lazy.action`].length>0){let t=e.action;r.lazy=Object.assign(r.lazy||{},{action:async(...e)=>G(await K(n[`lazy.action`],void 0,()=>t(...e),q))})}}if(typeof t.loader==`function`&&n.loader.length>0){let e=Me(t.loader),i=async(...t)=>G(await K(n.loader,J(t[0]),()=>e(...t),q));e.hydrate===!0&&(i.hydrate=!0),W(i,e),r.loader=i}if(typeof t.action==`function`&&n.action.length>0){let e=Me(t.action),i=async(...t)=>G(await K(n.action,J(t[0]),()=>e(...t),q));W(i,e),r.action=i}return t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=Me(e),r=async(...e)=>G(await K(n.middleware,J(e[0]),()=>t(...e),q));return W(r,t),r})),r}function je(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){e.navigate!=null&&n.navigate.push(e.navigate),e.fetch!=null&&n.fetch.push(e.fetch)}})),n.navigate.length>0){let t=Me(e.navigate),r=async(...r)=>{let[i,a]=r,o,s={to:typeof i==`number`||typeof i==`string`?i:i?p(i):`.`,...Fe(e,a??{})};return G(await K(n.navigate,s,async()=>{if(typeof i==`number`)return await t(...r);let n=Ne(e,e=>{o=e});try{return await t(...r)}finally{n()}},e=>({...q(e),meta:o})))};W(r,t),e.navigate=r}if(n.fetch.length>0){let t=Me(e.fetch),r=async(...r)=>{let[i,a,o,s]=r,c;return G(await K(n.fetch,{href:o??`.`,fetcherKey:i,...Fe(e,s??{})},async()=>{let n=Ne(e,e=>{c=e});try{return await t(...r)}finally{n()}},e=>({...q(e),meta:c})))};W(r,t),e.fetch=r}return e}function Me(e){return e[Oe]??e}function W(e,t){e[Oe]=t}function Ne(e,t){return ke.set(e,t),()=>{ke.get(e)===t&&ke.delete(e)}}function Pe(e){let t=ke.get(e);return ke.delete(e),t}function G(e){if(e.type===`error`)throw e.value;return e.value}async function K(e,t,n,r,i={result:null,innerResult:null},a=e.length-1){let o=e[a];if(o){let s,l=async()=>(s?console.error(`You cannot call instrumented handlers more than once`):s=K(e,t,n,r,i,a-1),await s,c(i.innerResult,`Expected an inner result`),i.innerResult);try{await o(l,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}s||await l(),await s}else{try{i.result={type:`success`,value:await n()}}catch(e){i.result={type:`error`,value:e}}i.innerResult=r(i.result,t)}return i.result?i.result:(i.result={type:`error`,value:Error(`No result assigned in instrumentation chain.`)},i.innerResult=r(i.result,t),i.result)}function q(e){return e.type===`error`&&e.value instanceof Error?{status:`error`,error:e.value}:{status:`success`,error:void 0}}function J(e){let{request:t,context:n,params:r}=e;return{...e,request:Ie(t),params:{...r},context:Le(n)}}function Fe(e,t){return{currentUrl:p(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function Ie(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Le(e){return{get:t=>e.get(t)}}var Re=new URL(`http://localhost`);function Y(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Re)}catch{return Re}}function ze(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function Be(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function Ve(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!ze(i,n),s=!ze(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!Be(e,i)||!ze(i,a)))throw Error(`External navigation is not allowed`)}var He=[`POST`,`PUT`,`PATCH`,`DELETE`],Ue=new Set(He),We=[`GET`,...He],Ge=new Set(We),Ke=new Set([301,302,303,307,308]),qe=new Set([307,308]),Je={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ye={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Xe={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},Ze=`remix-router-transitions`,Qe=Symbol(`ResetLoaderData`),$e=class{#e;#t;#n;#r;constructor(e){this.#e=e,this.#t=k(e)}get stableRoutes(){return this.#e}get activeRoutes(){return this.#n??this.#e}get branches(){return this.#r??this.#t}get hasHMRRoutes(){return this.#n!=null}setRoutes(e){this.#e=e,this.#t=k(e)}setHmrRoutes(e){this.#n=e,this.#r=k(e)}commitHmrRoutes(){this.#n&&(this.#e=this.#n,this.#t=this.#r,this.#n=void 0,this.#r=void 0)}};function et(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;c(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let i=e.hydrationRouteProperties||[],a=e.mapRouteProperties,o=a||(()=>({}));if(e.instrumentations){let t=e.instrumentations;o=e=>({...a?.(e),...Ae(t.map(e=>e.route).filter(Boolean),e)})}let s={},u=new $e(T(e.routes,o,void 0,s)),d=e.basename||`/`;d.startsWith(`/`)||(d=`/${d}`);let h=e.dataStrategy||_t,_={...e.future},y=null,b=new Set,x=null,S=null,C=null,w=null,ee=e.hydrationData!=null,E=D(u.activeRoutes,e.history.location,d,!1,u.branches),k=!1,A=null,j,M;if(E==null&&!e.patchRoutesOnNavigation){let t=X(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Bt(u.activeRoutes);j=!0,M=!j,E=n,A={[r.id]:t}}else if(E&&!e.hydrationData&&ct(E,u.activeRoutes,e.history.location.pathname).active&&(E=null),!E){j=!1,M=!j,E=[];let t=ct(null,u.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(k=!0,E=t.matches)}else if(E.some(e=>e.route.lazy))j=!1,M=!j;else if(!E.some(e=>at(e.route)))j=!0,M=!j;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=E;if(n){let e=E.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}M=!1,j=!0,r.forEach(e=>{let r=ot(e.route,t,n);M||=r.renderFallback,j&&=!r.shouldLoad})}let te,N={historyAction:e.history.action,location:e.history.location,matches:E,initialized:j,renderFallback:M,navigation:Je,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||A,fetchers:new Map,blockers:new Map},P=`POP`,F=null,ne=!1,I,re=!1,ie=new Map,L=null,R=!1,ae=!1,oe=new Set,z=new Map,se=0,ce=-1,le=new Map,de=new Set,pe=new Map,me=new Map,B=new Set,he=new Map,ge,_e=null;function ve(){if(y=e.history.listen(({action:t,location:n,delta:r})=>{if(ge){ge(),ge=void 0;return}l(he.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Ke({currentLocation:N.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{ge=e});e.history.go(r*-1),Ge(i,{state:`blocked`,location:n,proceed(){Ge(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(N.blockers);e.set(i,Xe),H({blockers:e})}}),F?.resolve(),F=null;return}return U(t,n)}),n){un(t,ie);let e=()=>dn(t,ie);t.addEventListener(`pagehide`,e),L=()=>t.removeEventListener(`pagehide`,e)}return N.initialized||U(`POP`,N.location,{initialHydration:!0}),te}function V(){y&&y(),L&&L(),b.clear(),I&&I.abort(),N.fetchers.forEach((e,t)=>Le(N.fetchers,t)),N.blockers.forEach((e,t)=>We(t))}function ye(e){if(b.add(e),x){let{newErrors:t}=x;x=null,e(N,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>b.delete(e)}function H(e,t={}){e.matches&&=e.matches.map(e=>{let t=s[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),N={...N,...e};let n=[],r=[];N.fetchers.forEach((e,t)=>{e.state===`idle`&&(B.has(t)?n.push(t):r.push(t))}),B.forEach(e=>{!N.fetchers.has(e)&&!z.has(e)&&n.push(e)}),b.size===0&&(x={newErrors:e.errors??null}),[...b].forEach(r=>r(N,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>Le(N.fetchers,e)),r.forEach(e=>N.fetchers.delete(e))}function be(t,n,{flushSync:r}={}){let i=N.actionData!=null&&N.navigation.formMethod!=null&&Q(N.navigation.formMethod)&&N.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?N.actionData:null;let o=n.loaderData?Lt(N.loaderData,n.loaderData,n.matches||[],n.errors):N.loaderData,s=N.blockers;s.size>0&&!R&&(s=new Map(s),s.forEach((e,t)=>s.set(t,Xe)));let c=!R&&st(t,n.matches||N.matches),l=ne===!0||N.navigation.formMethod!=null&&Q(N.navigation.formMethod)&&t.state?._isRedirect!==!0;u.commitHmrRoutes(),R||P===`POP`||(P===`PUSH`?e.history.push(t,t.state):P===`REPLACE`&&e.history.replace(t,t.state));let d;if(P===`POP`){let e=ie.get(N.location.pathname);e&&e.has(t.pathname)?d={currentLocation:N.location,nextLocation:t}:ie.has(t.pathname)&&(d={currentLocation:t,nextLocation:N.location})}else if(re){let e=ie.get(N.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),ie.set(N.location.pathname,e)),d={currentLocation:N.location,nextLocation:t}}H({...n,actionData:a,loaderData:o,historyAction:P,location:t,initialized:!0,renderFallback:!1,navigation:Je,revalidation:`idle`,restoreScrollPosition:c,preventScrollReset:l,blockers:s},{viewTransitionOpts:d,flushSync:r===!0}),P=`POP`,ne=!1,re=!1,R=!1,ae=!1,F?.resolve(),F=null,_e?.resolve(),_e=null}async function xe(t,n){if(F?.resolve(),F=null,typeof t==`number`){F||=fn();let n=F.promise;return e.history.go(t),n}let i=Pe(te),{path:a,submission:o,error:s}=rt(!1,nt(N.location,N.matches,d,t,n?.fromRouteId,n?.relative),n),c;if(n?.mask){let t=typeof n.mask==`string`?m(n.mask):{...N.location.mask,...n.mask};if(c={pathname:t.pathname??``,search:t.search??``,hash:t.hash??``},r.test(c.pathname))throw Error(`External navigation is not allowed`);c.pathname.startsWith(`\\`)&&(c.pathname=c.pathname.replace(/^\\+/,`/`)),Ve(typeof n.mask==`string`?n.mask:p(n.mask),p(c),e.history.createURL(`/`),`reject`)}let l=N.location,u=f(l,a,n&&n.state,void 0,c);u={...u,...e.history.encodeLocation(u)},Ve(t==null?e.history.createHref(N.location):typeof t==`string`?t:p(t),e.history.createHref(u.mask||u),e.history.createURL(`/`),`reject`);let h=n&&n.replace!=null?n.replace:void 0,g=`PUSH`;h===!0?g=`REPLACE`:h===!1||o!=null&&Q(o.formMethod)&&o.formAction===N.location.pathname+N.location.search&&(g=`REPLACE`);let _=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,v=(n&&n.flushSync)===!0,y=Ke({currentLocation:l,nextLocation:u,historyAction:g});if(y){Ge(y,{state:`blocked`,location:u,proceed(){Ge(y,{state:`proceeding`,proceed:void 0,reset:void 0,location:u}),xe(t,n)},reset(){let e=new Map(N.blockers);e.set(y,Xe),H({blockers:e})}});return}await U(g,u,{submission:o,pendingError:s,preventScrollReset:_,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:v,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate,instrumentationNavigateMetaReceiver:i})}function Se(){_e||=fn(),K(),H({revalidation:`loading`});let e=_e.promise;return N.navigation.state===`submitting`?e:N.navigation.state===`idle`?(U(N.historyAction,N.location,{startUninterruptedRevalidation:!0}),e):(U(P||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:re===!0}),e)}async function U(t,n,r){I&&I.abort(),I=null,P=t,R=(r&&r.startUninterruptedRevalidation)===!0,tt(N.location,N.matches),ne=(r&&r.preventScrollReset)===!0,re=(r&&r.enableViewTransition)===!0;let i=u.activeRoutes,a=r?.initialHydration&&N.matches&&N.matches.length>0&&!k?N.matches:D(i,n,d,!1,u.branches),o=(r&&r.flushSync)===!0;if(a&&N.initialized&&!ae&&Ut(N.location,n)&&!(r&&r.submission&&Q(r.submission.formMethod))){be(n,{matches:a},{flushSync:o});return}let s=ct(a,i,n.pathname);if(s.active&&s.matches&&(a=s.matches),r?.instrumentationNavigateMetaReceiver){let t=nn(e.history,n,a);r.instrumentationNavigateMetaReceiver(t)}if(!a){let{error:e,notFoundMatches:t,route:r}=Ze(n.pathname);be(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let c=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;I=new AbortController;let l=Mt(e.history,n,I.signal,r&&r.submission),f=e.getContext?await e.getContext():new v,p;if(r&&r.pendingError)p=[zt(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&Q(r.submission.formMethod)){let i=await we(l,n,r.submission,a,t,f,s.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:o});if(i.shortCircuited)return;if(i.pendingActionResult){let[e,t]=i.pendingActionResult;if(Z(t)&&Ce(t.error)&&t.error.status===404){I=null,be(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,c=an(n,a,t,r.submission),o=!1,s.active=!1,l=Mt(e.history,l.url,l.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:y}=await Te(l,n,a,t,f,s.active,c,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,o,p,r&&r.callSiteDefaultShouldRevalidate);m||(I=null,be(n,{matches:h||a,...Rt(p),loaderData:g,errors:_,...y?{fetchers:y}:{}}))}async function we(t,n,r,a,c,l,f,p,m={}){if(K(),H({navigation:on(n,a,c,r)},{flushSync:m.flushSync===!0}),f){let e=await lt(a,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Bt(u.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=zt(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}if(e.matches)a=e.matches;else{let{notFoundMatches:e,error:t,route:r}=Ze(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=tn(a,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:X(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await Ne(t,n,Ct(o,s,t,n,a,g,p?[]:i,l),l,null);if(h=e[g.route.id],!h){for(let t of a)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(Jt(h)){let n;return n=m&&m.replace!=null?m.replace:jt(h.response.headers.get(`Location`),new URL(t.url),d,e.history)===N.location.pathname+N.location.search,await W(t,h,!0,{submission:r,replace:n}),{shortCircuited:!0}}if(Z(h)){let e=zt(a,g.route.id);return(m&&m.replace)!==!0&&(P=`PUSH`),{matches:a,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:a,pendingActionResult:[g.route.id,h]}}async function Te(t,n,r,a,c,l,f,p,m,h,g,_,v,y){let b=f||an(n,r,a,p),x=p||m||rn(b),S=!R&&!g;if(l){if(S){let e=Ee(v);H({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await lt(r,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=Bt(u.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=zt(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)r=e.matches;else{let{error:e,notFoundMatches:t,route:r}=Ze(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=u.activeRoutes,{dsMatches:w,revalidatingFetchers:T}=it(t,c,o,s,e.history,N,r,x,n,g?[]:i,g===!0,ae,oe,B,pe,de,C,d,e.patchRoutesOnNavigation!=null,u.branches,v,y);if(ce=++se,!e.dataStrategy&&!w.some(e=>e.shouldLoad)&&!w.some(e=>e.route.middleware&&e.route.middleware.length>0)&&T.length===0){let e=new Map(N.fetchers),t=Be(e);return be(n,{matches:r,loaderData:{},errors:v&&Z(v[1])?{[v[0]]:v[1].error}:null,...Rt(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!l){e.navigation=b;let t=Ee(v);t!==void 0&&(e.actionData=t)}T.length>0&&(e.fetchers=De(T)),H(e,{flushSync:_})}T.forEach(e=>{Y(e.key),e.controller&&z.set(e.key,e.controller)});let ee=()=>T.forEach(e=>Y(e.key));I&&I.signal.addEventListener(`abort`,ee);let{loaderResults:E,fetcherResults:D}=await G(w,T,t,n,c);if(t.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener(`abort`,ee),T.forEach(e=>z.delete(e.key));let O=Vt(E);if(O)return await W(t,O.result,!0,{replace:h}),{shortCircuited:!0};if(O=Vt(D),O)return de.add(O.key),await W(t,O.result,!0,{replace:h}),{shortCircuited:!0};let k=new Map(N.fetchers),{loaderData:A,errors:j}=It(N,r,E,v,T,D,k);g&&N.errors&&(j={...N.errors,...j});let M=Be(k),te=He(ce,k),P=M||te||T.length>0;return{matches:r,loaderData:A,errors:j,...P?{workingFetchers:k}:{}}}function Ee(e){if(e&&!Z(e[1]))return{[e[0]]:e[1].data};if(N.actionData)return Object.keys(N.actionData).length===0?null:N.actionData}function De(e){let t=new Map(N.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=sn(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function Oe(t,n,r,i){Y(t);let a=(i&&i.flushSync)===!0,o=Pe(te),s=u.activeRoutes,c=nt(N.location,N.matches,d,r,n,i?.relative),l=D(s,c,d,!1,u.branches),f=ct(l,s,c);if(f.active&&f.matches&&(l=f.matches),o&&o(nn(e.history,c,l)),!l){J(t,n,X(404,{pathname:c}),{flushSync:a});return}let{path:p,submission:m,error:h}=rt(!0,c,i);if(h){J(t,n,h,{flushSync:a});return}let g=e.getContext?await e.getContext():new v,_=(i&&i.preventScrollReset)===!0;if(m&&Q(m.formMethod)){await ke(t,n,p,l,g,f.active,a,_,m,i&&i.defaultShouldRevalidate);return}pe.set(t,{routeId:n,path:p}),await Me(t,n,p,l,g,f.active,a,_,m)}async function ke(t,n,r,a,l,f,p,m,h,g){K(),pe.delete(t),q(t,cn(h,N.fetchers.get(t)),{flushSync:p});let _=new AbortController,v=Mt(e.history,r,_.signal,h);if(f){let e=await lt(a,new URL(v.url).pathname,v.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){J(t,n,e.error,{flushSync:p});return}if(e.matches)a=e.matches;else{J(t,n,X(404,{pathname:r}),{flushSync:p});return}}let y=tn(a,r);if(!y.route.action&&!y.route.lazy){J(t,n,X(405,{method:h.formMethod,pathname:r,routeId:n}),{flushSync:p});return}z.set(t,_);let b=se,x=Ct(o,s,v,r,a,y,i,l),S=await Ne(v,r,x,l,t),C=S[y.route.id];if(!C){for(let e of x)if(S[e.route.id]){C=S[e.route.id];break}}if(v.signal.aborted){z.get(t)===_&&z.delete(t);return}if(B.has(t)){if(Jt(C)||Z(C)){q(t,ln(void 0));return}}else{if(Jt(C)){if(z.delete(t),ce>b){q(t,ln(void 0));return}return de.add(t),q(t,sn(h)),W(v,C,!1,{fetcherSubmission:h,preventScrollReset:m})}if(Z(C)){J(t,n,C.error);return}}let w=N.navigation.location||N.location,T=Mt(e.history,w,_.signal),ee=u.activeRoutes,E=N.navigation.state===`idle`?N.matches:D(ee,N.navigation.location,d,!1,u.branches);c(E,`Didn't find any matches after fetcher action`);let O=++se;le.set(t,O);let{dsMatches:k,revalidatingFetchers:A}=it(T,l,o,s,e.history,N,E,h,w,i,!1,ae,oe,B,pe,de,ee,d,e.patchRoutesOnNavigation!=null,u.branches,[y.route.id,C],g),j=sn(h,C.data),M=new Map(N.fetchers);M.set(t,j),A.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=M.get(t),r=sn(void 0,n?n.data:void 0);M.set(t,r),Y(t),e.controller&&z.set(t,e.controller)}),H({fetchers:M});let te=()=>A.forEach(e=>Y(e.key));_.signal.addEventListener(`abort`,te);let{loaderResults:F,fetcherResults:ne}=await G(k,A,T,w,l);if(_.signal.aborted){le.get(t)===O&&le.delete(t);return}_.signal.removeEventListener(`abort`,te),le.delete(t),z.delete(t),A.forEach(e=>z.delete(e.key));let re=N.fetchers.has(t),ie=e=>{if(!re)return e;let n=new Map(e.fetchers);return n.set(t,ln(C.data)),{...e,fetchers:n}},L=Vt(F);if(L)return N=ie(N),W(T,L.result,!1,{preventScrollReset:m});if(L=Vt(ne),L)return de.add(L.key),N=ie(N),W(T,L.result,!1,{preventScrollReset:m});let R=new Map(N.fetchers);re&&R.set(t,ln(C.data));let{loaderData:ue,errors:fe}=It(N,E,F,void 0,A,ne,R);He(O,R),N.navigation.state===`loading`&&O>ce?(c(P,`Expected pending action`),I&&I.abort(),be(N.navigation.location,{matches:E,loaderData:ue,errors:fe,fetchers:R})):(H({errors:fe,loaderData:Lt(N.loaderData,ue,E,fe),fetchers:R}),ae=!1)}async function Me(t,n,r,a,c,l,u,d,f){let p=N.fetchers.get(t);q(t,sn(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=Mt(e.history,r,m.signal);if(l){let e=await lt(a,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){J(t,n,e.error,{flushSync:u});return}if(e.matches)a=e.matches;else{J(t,n,X(404,{pathname:r}),{flushSync:u});return}}let g=tn(a,r);z.set(t,m);let _=se,v=await Ne(h,r,Ct(o,s,h,r,a,g,i,c),c,t),y=v[g.route.id];if(!y){for(let e of a)if(v[e.route.id]){y=v[e.route.id];break}}if(z.get(t)===m&&z.delete(t),!h.signal.aborted){if(B.has(t)){q(t,ln(void 0));return}if(Jt(y)){if(ce>_){q(t,ln(void 0));return}de.add(t),await W(h,y,!1,{preventScrollReset:d});return}if(Z(y)){J(t,n,y.error);return}q(t,ln(y.data))}}async function W(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(F?.resolve(),F=null),i.response.headers.has(`X-Remix-Revalidate`)&&(ae=!0);let p=i.response.headers.get(`Location`);c(p,`Expected a Location header on the redirect Response`);let m=p,h=new URL(r.url);p=jt(p,h,d,e.history),Ve(m,p,h,`allow-explicit`);let _=f(N.location,p,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(fe(p)){let n=g(t,p,!0);e=n.origin!==t.location.origin||ue(n.pathname,d)==null}if(e){u?t.location.replace(p):t.location.assign(p);return}}I=null;let v=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:y,formAction:b,formEncType:x}=N.navigation;!o&&!s&&y&&b&&x&&(o=rn(N.navigation));let S=o||s;qe.has(i.response.status)&&S&&Q(S.formMethod)?await U(v,_,{submission:{...S,formAction:p},preventScrollReset:l||ne,enableViewTransition:a?re:void 0}):await U(v,_,{overrideNavigation:an(_,[],v,o),fetcherSubmission:s,preventScrollReset:l||ne,enableViewTransition:a?re:void 0})}async function Ne(e,t,n,r,i){let a,o={};try{a=await wt(h,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!Q(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!N.loaderData.hasOwnProperty(e.route.id)&&(!N.errors||!N.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(qt(r)){let i=r.result;o[t]={type:`redirect`,response:Ot(i,e,t,n,d)}}else o[t]=await Dt(r);return o}async function G(e,t,n,r,i){let a=Ne(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await Ne(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:`error`,error:X(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function K(){ae=!0,pe.forEach((e,t)=>{z.has(t)&&oe.add(t),Y(t)})}function q(e,t,n={}){let r=new Map(N.fetchers);r.set(e,t),H({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function J(e,t,n,r={}){let i=zt(N.matches,t),a=new Map(N.fetchers);Le(a,e),H({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Fe(e){return me.set(e,(me.get(e)||0)+1),B.has(e)&&B.delete(e),N.fetchers.get(e)||Ye}function Ie(e,t){Y(e,t?.reason),q(e,ln(null))}function Le(e,t){let n=N.fetchers.get(t);z.has(t)&&!(n&&n.state===`loading`&&le.has(t))&&Y(t),pe.delete(t),le.delete(t),de.delete(t),B.delete(t),oe.delete(t),e.delete(t)}function Re(e){let t=(me.get(e)||0)-1;t<=0?(me.delete(e),B.add(e)):me.set(e,t),H({fetchers:new Map(N.fetchers)})}function Y(e,t){let n=z.get(e);n&&(n.abort(t),z.delete(e))}function ze(e,t){for(let n of e){let e=t.get(n);c(e,`Expected fetcher: ${n}`);let r=ln(e.data);t.set(n,r)}}function Be(e){let t=[],n=!1;for(let r of de){let i=e.get(r);c(i,`Expected fetcher: ${r}`),i.state===`loading`&&(de.delete(r),t.push(r),n=!0)}return ze(t,e),n}function He(e,t){let n=[];for(let[r,i]of le)if(i<e){let e=t.get(r);c(e,`Expected fetcher: ${r}`),e.state===`loading`&&(Y(r),le.delete(r),n.push(r))}return ze(n,t),n.length>0}function Ue(e,t){let n=N.blockers.get(e)||Xe;return he.get(e)!==t&&he.set(e,t),n}function We(e){N.blockers.delete(e),he.delete(e)}function Ge(e,t){let n=N.blockers.get(e)||Xe;c(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(N.blockers);r.set(e,t),H({blockers:r})}function Ke({currentLocation:e,nextLocation:t,historyAction:n}){if(he.size===0)return;he.size>1&&l(!1,`A router only supports one blocker at a time`);let r=Array.from(he.entries()),[i,a]=r[r.length-1],o=N.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function Ze(e){let t=X(404,{pathname:e}),n=u.activeRoutes,{matches:r,route:i}=Bt(n);return{notFoundMatches:r,route:i,error:t}}function Qe(e,t,n){if(S=e,w=t,C=n||null,!ee&&N.navigation===Je){ee=!0;let e=st(N.location,N.matches);e!=null&&H({restoreScrollPosition:e})}return()=>{S=null,w=null,C=null}}function et(e,t){return C&&C(e,t.map(e=>O(e,N.loaderData)))||e.key}function tt(e,t){if(S&&w){let n=et(e,t);S[n]=w()}}function st(e,t){if(S){let n=et(e,t),r=S[n];if(typeof r==`number`)return r}return null}function ct(t,n,r){if(e.patchRoutesOnNavigation){let e=u.branches;if(!t)return{active:!0,matches:D(n,r,d,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:D(n,r,d,!0,e)}}return{active:!1,matches:null}}async function lt(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let a=t;for(;;){let t=s;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:a,fetcherKey:i,patch:(e,n)=>{r.aborted||ut(e,n,u,t,o,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:a}}if(r.aborted)return{type:`aborted`};let c=u.branches,l=D(u.activeRoutes,n,d,!1,c),f=null;if(l&&(Object.keys(l[0].params).length===0||(f=D(u.activeRoutes,n,d,!0,c),!(f&&a.length<f.length&&dt(a,f.slice(0,a.length))))))return{type:`success`,matches:l};if(f||=D(u.activeRoutes,n,d,!0,c),!f||dt(a,f))return{type:`success`,matches:null};a=f}}function dt(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function ft(e){s={},u.setHmrRoutes(T(e,o,void 0,s))}function pt(e,t,n=!1){ut(e,t,u,s,o,n),u.hasHMRRoutes||H({})}return te={get basename(){return d},get future(){return _},get state(){return N},get routes(){return u.stableRoutes},get branches(){return u.branches},get manifest(){return s},get window(){return t},initialize:ve,subscribe:ye,enableScrollRestoration:Qe,navigate:xe,fetch:Oe,revalidate:Se,createHref:t=>e.history.createHref(t),createURL:t=>e.history.createURL(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Fe,resetFetcher:Ie,deleteFetcher:Re,dispose:V,getBlocker:Ue,deleteBlocker:We,patchRoutes:pt,_internalFetchControllers:z,_internalSetRoutes:ft,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){H(e)}},e.instrumentations&&(te=je(te,e.instrumentations.map(e=>e.router).filter(Boolean))),te}function tt(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function nt(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=_e(r||`.`,ge(o),ue(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=en(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=de({basename:n,pathname:c.pathname})),p(c)}function rt(e,t,n){if(!n||!tt(n))return{path:t};if(n.formMethod&&!$t(n.formMethod))return{path:t,error:X(405,{method:n.formMethod})};let r=()=>({path:t,error:X(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=Ht(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!Q(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}\n`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if(n.formEncType===`application/json`){if(!Q(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}c(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=Nt(n.formData),s=n.formData;else if(n.body instanceof FormData)o=Nt(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=Pt(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=Pt(o)}catch{return r()}let l={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(Q(l.formMethod))return{path:t,submission:l};let u=m(t);return e&&u.search&&en(u.search)&&o.append(`index`,``),u.search=`?${o}`,{path:p(u),submission:l}}function it(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?Z(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&Z(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let ee=b?b[1].statusCode:void 0,E=ee&&ee>=400,O={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:ee},k=we(o),A=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!at(s))f=!1;else if(u){let{shouldLoad:e}=ot(s,a.loaderData,a.errors);f=e}else st(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return St(n,r,e,c,k,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:E?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?ct(a.matches[o],i)&&(p=!0):p=!0;let m={...O,defaultShouldRevalidate:p};return St(n,r,e,c,k,i,l,t,lt(i,m),m,x)}),j=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=D(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;j.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=tn(b,e.path),C=new AbortController,w=Mt(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=Ct(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=Ct(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:!E&&d;let a={...O,defaultShouldRevalidate:i};lt(S,a)&&(T=Ct(n,r,w,e.path,b,S,l,t,a))}T&&j.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:A,revalidatingFetchers:j}}function at(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function ot(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!at(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function st(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function ct(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function lt(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function ut(e,t,n,r,i,a){let o;if(e){let t=r[e];c(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],l=[];if(t.forEach(e=>{let t=o.find(t=>dt(e,t));t?l.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=T(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&l.length>0)for(let e=0;e<l.length;e++){let{existingRoute:t,newRoute:n}=l[e],r=t,[a]=T([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function dt(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index!==t.index||e.path!==t.path||e.caseSensitive!==t.caseSensitive?!1:(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>dt(e,t)))??!1}var ft=new WeakMap,pt=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(c(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=ft.get(i);o||(o={},ft.set(i,o));let s=o[e];if(s)return s;let u=(async()=>{let t=b(e),n=i[e]!==void 0;if(t)l(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)l(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=u,u},mt=new WeakMap;function ht(e,t,n,r,i){let a=n[e.id];if(c(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=mt.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{c(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=S(e),o=a[e]!==void 0;i?l(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?l(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return mt.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],u;for(let a of o){if(i&&i.includes(a))continue;let o=pt({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(u=o))}let d=s.length>0?Promise.all(s).then(()=>{}):void 0;return d?.catch(()=>{}),u?.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:u}}async function gt(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function _t(e){return e.matches.some(e=>e.route.middleware)?vt(e,()=>gt(e)):gt(e)}function vt(e,t){return yt(e,t,e=>{if(Qt(e))throw e;return e},Gt,n);async function n(t,n,r){if(r)return Object.assign(r.value,{[n]:{type:`error`,result:t}});{let{matches:r}=e,i=Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0)),a=r[i].route.id;for(let e of r.slice(0,i+1))try{await e._lazyPromises?.route}catch{a=e.route.id;break}return{[zt(r,a).route.id]:{type:`error`,result:t}}}}}async function yt(e,t,n,r,i){let{matches:a,...o}=e;return await bt(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function bt(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await bt(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function xt(e,t,n,r,i){let a=pt({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=ht(r.route,Q(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function St(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=xt(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?lt(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?lt(a,{...l,defaultShouldRevalidate:e}):lt(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!Q(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(Q(n.method)||!p)?Tt({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Ct(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?St(e,t,n,r,we(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:xt(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function wt(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:Te(t,n),pattern:we(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return vt(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function Tt({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=Q(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:Te(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a){if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw X(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}}else if(t)c=await f(t);else{let t=new URL(e.url);throw X(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Et(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Dt(e){let{result:t,type:n}=e;if(Xt(t)){let e;try{e=await Et(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new U(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?Yt(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Wt(t),statusCode:Ce(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:Ce(t)?t.status:void 0}:Yt(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function Ot(e,t,n,r,i){let a=e.headers.get(`Location`);if(c(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!fe(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=nt(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var kt=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function At(e){try{return kt.includes(new URL(e).protocol)}catch{return!1}}function jt(e,t,n,a){if(fe(e)){let a=e,o=r.test(a)?new URL(i(a,t.protocol)):new URL(a);if(At(o.toString()))throw Error(`Invalid redirect location`);let s=ue(o.pathname,n)!=null;if(o.origin===t.origin&&s)return ve(o.pathname)+o.search+o.hash}try{if(At(a.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function Mt(e,t,n,r){let i=e.createURL(Ht(t)).toString(),a={signal:n};if(r&&Q(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):a.body=t===`text/plain`?r.text:t===`application/x-www-form-urlencoded`&&r.formData?Nt(r.formData):r.formData}return new Request(i,a)}function Nt(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function Pt(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ft(e,t,n,r=!1,i=!1){let a={},o=null,s,l=!1,u={},d=n&&Z(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let f=n.route.id,p=t[f];if(c(!Jt(p),`Cannot handle redirect results in processLoaderData`),Z(p)){let t=p.error;if(d!==void 0&&(t=d,d=void 0),o||={},i)o[f]=t;else{let n=zt(e,f);o[n.route.id]??(o[n.route.id]=t)}r||(a[f]=Qe),l||(l=!0,s=Ce(p.error)?p.error.status:500),p.headers&&(u[f]=p.headers)}else a[f]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(u[f]=p.headers)}),d!==void 0&&n&&(o={[n[0]]:d},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:u}}function It(e,t,n,r,i,a,o){let{loaderData:s,errors:l}=Ft(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(c(s,`Did not find corresponding fetcher result`),Z(s)){let t=zt(e.matches,r?.route.id);l&&l[t.route.id]||(l={...l,[t.route.id]:s.error}),o.delete(n)}else if(Jt(s))c(!1,`Unhandled fetcher revalidation redirect`);else{let e=ln(s.data);o.set(n,e)}}),{loaderData:s,errors:l}}function Lt(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==Qe).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function Rt(e){return e?Z(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function zt(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.ErrorBoundary!=null||e.route.errorElement!=null)||e[0]}function Bt(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function X(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new U(e||500,o,Error(s),!0)}function Vt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Jt(r))return{key:n,result:r}}}function Ht(e){return p({...typeof e==`string`?m(e):e,hash:``})}function Ut(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function Wt(e){return new U(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Gt(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Kt(t))}function Kt(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function qt(e){return Xt(e.result)&&Ke.has(e.result.status)}function Z(e){return e.type===`error`}function Jt(e){return(e&&e.type)===`redirect`}function Yt(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function Xt(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Zt(e){return Ke.has(e)}function Qt(e){return Xt(e)&&Zt(e.status)&&e.headers.has(`Location`)}function $t(e){return Ge.has(e.toUpperCase())}function Q(e){return Ue.has(e.toUpperCase())}function en(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function tn(e,t){let n=typeof t==`string`?m(t).search:t.search;if(e[e.length-1].route.index&&en(n||``))return e[e.length-1];let r=he(e);return r[r.length-1]}function nn(e,t,n){return{url:Te(e.createURL(t),t),pattern:n?we(n):``,params:n?.[0]?.params?{...n[0].params}:{}}}function rn(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(t&&n&&r){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function an(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function on(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function sn(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function cn(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ln(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function un(e,t){try{let n=e.sessionStorage.getItem(Ze);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function dn(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Ze,JSON.stringify(n))}catch(e){l(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function fn(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var pn=_.createContext(null);pn.displayName=`DataRouter`;var mn=_.createContext(null);mn.displayName=`DataRouterState`;var hn=_.createContext(!1);function gn(){return _.useContext(hn)}var _n=_.createContext({isTransitioning:!1});_n.displayName=`ViewTransition`;var vn=_.createContext(new Map);vn.displayName=`Fetchers`;var yn=_.createContext(null);yn.displayName=`Await`;var bn=_.createContext(null);bn.displayName=`Navigation`;var xn=_.createContext(null);xn.displayName=`Location`;var $=_.createContext({outlet:null,matches:[],isDataRoute:!1});$.displayName=`Route`;var Sn=_.createContext(null);Sn.displayName=`RouteError`;var Cn=`REACT_ROUTER_ERROR`,wn=`REDIRECT`,Tn=`ROUTE_ERROR_RESPONSE`;function En(e){if(e.startsWith(`${Cn}:${wn}:{`))try{let t=JSON.parse(e.slice(28));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}catch{}}function Dn(e){if(e.startsWith(`${Cn}:${Tn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new U(t.status,t.statusText,t.data)}catch{}}function On(e,{relative:t}={}){c(kn(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=_.useContext(bn),{hash:i,pathname:a,search:o}=Ln(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:V([n,a])),r.createHref({pathname:s,search:o,hash:i})}function kn(){return _.useContext(xn)!=null}function An(){return c(kn(),`useLocation() may be used only in the context of a <Router> component.`),_.useContext(xn).location}var jn=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Mn(){let{isDataRoute:e}=_.useContext($);return e?tr():Nn()}function Nn(){c(kn(),`useNavigate() may be used only in the context of a <Router> component.`);let e=_.useContext(pn),{basename:t,navigator:n}=_.useContext(bn),{matches:r}=_.useContext($),{pathname:i}=An(),a=JSON.stringify(ge(r)),o=_.useRef(!1);return _.useLayoutEffect(()=>{o.current=!0}),_.useCallback((r,s={})=>{if(l(o.current,jn),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=_e(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:V([t,c.pathname])),Ve(typeof r==`string`?r:p(r),n.createHref(c),Y(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var Pn=_.createContext(null);function Fn(e){let t=_.useContext($).outlet;return _.useMemo(()=>t&&_.createElement(Pn.Provider,{value:e},t),[t,e])}function In(){let{matches:e}=_.useContext($);return e[e.length-1]?.params??{}}function Ln(e,{relative:t}={}){let{matches:n}=_.useContext($),{pathname:r}=An(),i=JSON.stringify(ge(n));return _.useMemo(()=>_e(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Rn(e,t,n){c(kn(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=_.useContext(bn),{matches:i}=_.useContext($),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:`/`;a&&a.route;let l=An(),u;if(t){let e=typeof t==`string`?m(t):t;c(s===`/`||e.pathname?.startsWith(s),`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 "${s}" but pathname "${e.pathname}" was given in the \`location\` prop.`),u=e}else u=l;let d=u.pathname||`/`,f=d;if(s!==`/`){let e=s.replace(/^\//,``).split(`/`);f=`/`+d.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let p=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):E(e,{pathname:f}),h=Gn(p&&p.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:V([s,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?s:V([s,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?_.createElement(xn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...u},navigationType:`POP`}},h):h}function zn(){let e=er(),t=Ce(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return _.createElement(_.Fragment,null,_.createElement(`h2`,null,`Unexpected Application Error!`),_.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?_.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var Bn=_.createElement(zn,null),Vn=class extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=hn;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Dn(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:_.createElement($.Provider,{value:this.props.routeContext},_.createElement(Sn.Provider,{value:e,children:this.props.component}));return this.context?_.createElement(Un,{error:e},t):t}},Hn=new WeakMap;function Un({children:e,error:t}){let{basename:n,navigator:r}=_.useContext(bn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=En(t.digest);if(e){let i=Hn.get(t);if(i)throw i;let a=De(e.location,n),o=a.absoluteURL||a.to;if(Ve(e.location,o,Y(r),`allow-explicit`),At(o))throw Error(`Invalid redirect location`);if(Ee&&!Hn.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Hn.set(t,n),n}}return _.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Wn({routeContext:e,match:t,children:n}){let r=_.useContext(pn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement($.Provider,{value:e},n)}function Gn(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);c(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let l=n?.onError,u=r&&l?(e,t)=>{l(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:we(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let l,d=!1,f=null,p=null;r&&(l=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Bn,o&&(s<0&&c===0?(rr(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=l?f:d?p:n.route.Component?_.createElement(n.route.Component,null):n.route.element?n.route.element:e,_.createElement(Wn,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?_.createElement(Vn,{location:r.location,revalidation:r.revalidation,component:f,error:l,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):h()},null)}function Kn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qn(e){let t=_.useContext(pn);return c(t,Kn(e)),t}function Jn(e){let t=_.useContext(mn);return c(t,Kn(e)),t}function Yn(e){let t=_.useContext($);return c(t,Kn(e)),t}function Xn(e){let t=Yn(e),n=t.matches[t.matches.length-1];return c(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Zn(){return Xn(`useRouteId`)}function Qn(){let e=Jn(`useNavigation`);return _.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function $n(){let{matches:e,loaderData:t}=Jn(`useMatches`);return _.useMemo(()=>e.map(e=>O(e,t)),[e,t])}function er(){let e=_.useContext(Sn),t=Jn(`useRouteError`),n=Xn(`useRouteError`);return e===void 0?t.errors?.[n]:e}function tr(){let{router:e}=qn(`useNavigate`),t=Xn(`useNavigate`),n=_.useRef(!1);return _.useLayoutEffect(()=>{n.current=!0}),_.useCallback(async(r,i={})=>{l(n.current,jn),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var nr={};function rr(e,t,n){!t&&!nr[e]&&(nr[e]=!0,l(!1,n))}export{z as A,n as B,Ve as C,ge as D,w as E,s as F,p as I,c as L,De as M,_e as N,we as O,ue as P,m as R,Y as S,Se as T,bn as _,Mn as a,gn as b,In as c,Rn as d,yn as f,xn as g,vn as h,$n as i,E as j,V as k,Ln as l,mn as m,kn as n,Qn as o,pn as p,An as r,Fn as s,On as t,Zn as u,$ as v,U as w,et as x,_n as y,l as z};