@nodefony/studio 10.0.0-alpha.1 → 10.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (215) hide show
  1. package/README.md +1 -1
  2. package/package.json +11 -11
  3. package/public/dist/.vite/manifest.json +0 -2621
  4. package/public/dist/assets/Accordion-BXP1kR9X.js +0 -1
  5. package/public/dist/assets/ActionsLiveGraph-TMN9owkt.js +0 -1
  6. package/public/dist/assets/ApiKeys-DLi1f_xy.js +0 -2
  7. package/public/dist/assets/ArchitectureLiveGraph-CUKQJFEi.js +0 -1
  8. package/public/dist/assets/Audit-BiVfGgSA.js +0 -1
  9. package/public/dist/assets/BackplaneLiveGraph-CFLvQmEL.js +0 -1
  10. package/public/dist/assets/Breadcrumbs-JSpsPPlF.js +0 -1
  11. package/public/dist/assets/BrickStoreChip-C7F6Q4ig.js +0 -1
  12. package/public/dist/assets/Chat-DbIOM5Wa.js +0 -1
  13. package/public/dist/assets/Chip-VZhBMG0_.js +0 -1
  14. package/public/dist/assets/Cluster-cOE0OxW0.js +0 -1
  15. package/public/dist/assets/Collapse-CgNJKcgq.js +0 -1
  16. package/public/dist/assets/ConfigPage-BtigihuA.js +0 -1
  17. package/public/dist/assets/ConnectorCard-CGhp9F2i.js +0 -11
  18. package/public/dist/assets/Create-19VdxmZH.js +0 -2
  19. package/public/dist/assets/DashboardSupervision-D59WlOuD.js +0 -1
  20. package/public/dist/assets/Database-fZHaPnFp.js +0 -1
  21. package/public/dist/assets/DbLogo-BoReNymx.js +0 -4
  22. package/public/dist/assets/Documentation-CZa2qx7I.js +0 -1
  23. package/public/dist/assets/FanOutLiveGraph-Bijim5jw.js +0 -1
  24. package/public/dist/assets/Firewall-Bu4kcT-c.js +0 -1
  25. package/public/dist/assets/IconAdjustments-Cm5pohyR.js +0 -1
  26. package/public/dist/assets/IconAdjustmentsHorizontal-B_ezBB_l.js +0 -1
  27. package/public/dist/assets/IconApps-BlTe4PPI.js +0 -1
  28. package/public/dist/assets/IconArrowDown-9GueidaS.js +0 -1
  29. package/public/dist/assets/IconArrowLeft-DJDG7Smo.js +0 -1
  30. package/public/dist/assets/IconArrowUp-C_9hl3Nb.js +0 -1
  31. package/public/dist/assets/IconArrowsSplit2--SYoYsTA.js +0 -1
  32. package/public/dist/assets/IconBan-Dq9wsaIv.js +0 -1
  33. package/public/dist/assets/IconBook-BDi1pADX.js +0 -1
  34. package/public/dist/assets/IconCircleCheck-DXO4-GVV.js +0 -1
  35. package/public/dist/assets/IconCircleDot-CkED5AFm.js +0 -1
  36. package/public/dist/assets/IconCircuitResistor-BKvBhegV.js +0 -1
  37. package/public/dist/assets/IconCode-CbpS0CnX.js +0 -1
  38. package/public/dist/assets/IconDeviceDesktop-DEpLd6M3.js +0 -1
  39. package/public/dist/assets/IconDots-BTUB3iLa.js +0 -1
  40. package/public/dist/assets/IconDownload-LsVuncWt.js +0 -1
  41. package/public/dist/assets/IconEye-DolbrZfe.js +0 -1
  42. package/public/dist/assets/IconFile-CtwrsnXi.js +0 -1
  43. package/public/dist/assets/IconFolder-Cmbw6D4Y.js +0 -1
  44. package/public/dist/assets/IconGitBranch-B4mq3lBf.js +0 -1
  45. package/public/dist/assets/IconHeartRateMonitor-BAe0rtlb.js +0 -1
  46. package/public/dist/assets/IconHelpCircle-BnRVNOzn.js +0 -1
  47. package/public/dist/assets/IconLayoutGrid-DHHhmYY7.js +0 -1
  48. package/public/dist/assets/IconPackages-BAI9M0jz.js +0 -1
  49. package/public/dist/assets/IconPencil-D0t63JY0.js +0 -1
  50. package/public/dist/assets/IconPlayerPause-CAaHo_2D.js +0 -1
  51. package/public/dist/assets/IconPlayerPlay-ByPFNa8B.js +0 -1
  52. package/public/dist/assets/IconPlus-DPFeNXdo.js +0 -1
  53. package/public/dist/assets/IconPuzzle-BIwo-K6E.js +0 -1
  54. package/public/dist/assets/IconRecycle-DCJ_qNCS.js +0 -1
  55. package/public/dist/assets/IconSend-BpQTFlYO.js +0 -1
  56. package/public/dist/assets/IconServer2-Ws6qHZ8A.js +0 -1
  57. package/public/dist/assets/IconShieldOff-CTGOUl2X.js +0 -1
  58. package/public/dist/assets/IconSitemap-BNiE2mWt.js +0 -1
  59. package/public/dist/assets/IconStack2-BZL8dJr1.js +0 -1
  60. package/public/dist/assets/IconTerminal2-BtI4ujHY.js +0 -1
  61. package/public/dist/assets/IconUserOff-BVatVNGb.js +0 -1
  62. package/public/dist/assets/IconWorld-v1UEZOxv.js +0 -1
  63. package/public/dist/assets/List-BnAY10IA.js +0 -1
  64. package/public/dist/assets/LogVisuals-BalQ75XP.js +0 -1
  65. package/public/dist/assets/Logs-COCegPHD.js +0 -1
  66. package/public/dist/assets/Migrations-CQcD9RjE.js +0 -3
  67. package/public/dist/assets/ModuleDetail-B0FWuc5T.js +0 -1
  68. package/public/dist/assets/Modules-7rCMj8R5.js +0 -1
  69. package/public/dist/assets/OrmEntity-Dim-e9EU.js +0 -1
  70. package/public/dist/assets/OrmOverview-Do9gZyXp.js +0 -1
  71. package/public/dist/assets/OrmWorker-CbMqo75N.js +0 -1
  72. package/public/dist/assets/Playground-Du-N1MUE.js +0 -1
  73. package/public/dist/assets/Profile-C5Ud1fuL.js +0 -2
  74. package/public/dist/assets/ProfileFields-DLOf6Qq0.js +0 -1
  75. package/public/dist/assets/Progress-CkIje-DQ.js +0 -1
  76. package/public/dist/assets/ProtocoleLiveGraph-Bshj1S3B.js +0 -1
  77. package/public/dist/assets/RealtimeConsole-C4CXeZZq.js +0 -1
  78. package/public/dist/assets/RingProgress-DeqkAVRv.js +0 -1
  79. package/public/dist/assets/RoleSwitch-BU7I1PPE.js +0 -1
  80. package/public/dist/assets/Roles-BWTctZs3.js +0 -1
  81. package/public/dist/assets/RoutesView-CR1UWe8B.js +0 -1
  82. package/public/dist/assets/Runtime-BHtf4TBU.js +0 -1
  83. package/public/dist/assets/Sessions-i2glvWc8.js +0 -1
  84. package/public/dist/assets/Skeleton-NxOTiVuM.js +0 -1
  85. package/public/dist/assets/Slider-y-O2hL1n.js +0 -1
  86. package/public/dist/assets/SondesLiveGraph-CV9As2oy.js +0 -1
  87. package/public/dist/assets/StoresView-B8S9lM2H.js +0 -1
  88. package/public/dist/assets/System--FzwVXGj.js +0 -1
  89. package/public/dist/assets/TagsInput-DvuBAi_b.js +0 -1
  90. package/public/dist/assets/Textarea-0nHULhaH.js +0 -1
  91. package/public/dist/assets/TraceView-xXewV_6u.js +0 -1
  92. package/public/dist/assets/Twin-BWXQlC2m.js +0 -19
  93. package/public/dist/assets/UserProfile-DPBWzlKz.js +0 -1
  94. package/public/dist/assets/Users-Q5OAmkhn.js +0 -1
  95. package/public/dist/assets/Webhooks-5TK8orJW.js +0 -1
  96. package/public/dist/assets/Workspace-DQFBpHtP.js +0 -1
  97. package/public/dist/assets/abnfDiagram-VCTEODGH-WkBbNL1D.js +0 -1
  98. package/public/dist/assets/apiKeysModel-D8T2auMK.js +0 -1
  99. package/public/dist/assets/arc-C7rN-mtx.js +0 -1
  100. package/public/dist/assets/architecture-7GRP2DOG-BUO4SOD5.js +0 -1
  101. package/public/dist/assets/architectureDiagram-5GKGNRK7-kgC6CT3l.js +0 -36
  102. package/public/dist/assets/array-BifhSqXX.js +0 -1
  103. package/public/dist/assets/auditFormat-DB8Rmevs.js +0 -1
  104. package/public/dist/assets/auditModel-BkLmFpDO.js +0 -1
  105. package/public/dist/assets/blockDiagram-I7D4REHJ-CmCsndSp.js +0 -129
  106. package/public/dist/assets/c4Diagram-7LVT6UL2-CVH6KZez.js +0 -38
  107. package/public/dist/assets/channel-B-6Trloh.js +0 -1
  108. package/public/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +0 -1
  109. package/public/dist/assets/chunk-4HAMMTFA-HrONVGii.js +0 -62
  110. package/public/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +0 -15
  111. package/public/dist/assets/chunk-75Z2AOVW-CNnr4_ra.js +0 -2
  112. package/public/dist/assets/chunk-DU6HZSFF-CLH64LYR.js +0 -127
  113. package/public/dist/assets/chunk-F27PBJKO-4Quz7TPv.js +0 -1
  114. package/public/dist/assets/chunk-FOHPRMQF-DHwB1DNv.js +0 -161
  115. package/public/dist/assets/chunk-GMAD6QVW-CTlRZ0-6.js +0 -72
  116. package/public/dist/assets/chunk-GVQU2GXP-_HjK1E2o.js +0 -1
  117. package/public/dist/assets/chunk-IMKFNOWR-Dk1yVJ9G.js +0 -231
  118. package/public/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +0 -1
  119. package/public/dist/assets/chunk-L3NEJ4N5-BixACwUV.js +0 -1
  120. package/public/dist/assets/chunk-OSK3NFVY-BN1YkLED.js +0 -10
  121. package/public/dist/assets/chunk-P2QGCYS3-Dj7o6b6U.js +0 -1
  122. package/public/dist/assets/chunk-POPQ4Y6H-CBfRSTyU.js +0 -1
  123. package/public/dist/assets/chunk-PWAF6VOD-CkStCV2F.js +0 -1
  124. package/public/dist/assets/chunk-SHT3W25Y-CuJZSeHY.js +0 -168
  125. package/public/dist/assets/chunk-SVP7TREG-D7LG2uhU.js +0 -88
  126. package/public/dist/assets/chunk-TICWLB2K-CzB0UEgE.js +0 -206
  127. package/public/dist/assets/chunk-XXDRQBXY-IULPM7G2.js +0 -1
  128. package/public/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +0 -1
  129. package/public/dist/assets/classDiagram-ZZMXUADV-DV01XIvE.js +0 -1
  130. package/public/dist/assets/classDiagram-v2-VYDZK3BY-DV01XIvE.js +0 -1
  131. package/public/dist/assets/configModel-DBaUEvVw.js +0 -1
  132. package/public/dist/assets/cose-bilkent-JH36ORCC-Ce9VXEHd.js +0 -1
  133. package/public/dist/assets/cynefin-OW5HDTMX-C8wqLTsP.js +0 -1
  134. package/public/dist/assets/cynefinDiagram-5FMLGOSQ-B5Cin1Ci.js +0 -62
  135. package/public/dist/assets/cytoscape.esm-B-NFISlW.js +0 -321
  136. package/public/dist/assets/dagre-GXQ25YYZ-DvviZyEx.js +0 -4
  137. package/public/dist/assets/dagre-PrKaheQc.js +0 -1
  138. package/public/dist/assets/dayjs.min-G0uPySEd.js +0 -1
  139. package/public/dist/assets/defaultLocale-BFoDCU3G.js +0 -1
  140. package/public/dist/assets/diagram-S7CK7UJ4-C5JqsYNe.js +0 -30
  141. package/public/dist/assets/diagram-UQ7AKVKN-Db-WcYU3.js +0 -41
  142. package/public/dist/assets/diagram-VSXAHHWV-DLYOaf-U.js +0 -3
  143. package/public/dist/assets/diagram-VX7I27RA-DG1vwq_Z.js +0 -24
  144. package/public/dist/assets/diagram-Z3DM3KII-COOALIpz.js +0 -24
  145. package/public/dist/assets/dist-B9M-KAS4.js +0 -1
  146. package/public/dist/assets/ebnfDiagram-PWID7BFC-Cz2U9-CT.js +0 -1
  147. package/public/dist/assets/erDiagram-RLTQ6QDP-5s6s_K8-.js +0 -99
  148. package/public/dist/assets/eventFlow-BxbkeiAi.js +0 -1
  149. package/public/dist/assets/eventmodeling-NTZA5JFV-C9KM6bIl.js +0 -1
  150. package/public/dist/assets/firewallModel-DKOWcjIb.js +0 -1
  151. package/public/dist/assets/flowDiagram-HODETNUW-BIiGRZR1.js +0 -1
  152. package/public/dist/assets/ganttDiagram-EL5Y4UJY-DzRPEEeY.js +0 -292
  153. package/public/dist/assets/gitGraph-4MIJSDKK-nyJE_tIp.js +0 -1
  154. package/public/dist/assets/gitGraphDiagram-WWUBYQGX-C-eZWduS.js +0 -106
  155. package/public/dist/assets/graphlib-DS17s2tU.js +0 -1
  156. package/public/dist/assets/health-D8eXYj6Q.js +0 -1
  157. package/public/dist/assets/hooks-B7-tCb-b.js +0 -1
  158. package/public/dist/assets/info-A6RAGUB7-wKJToYPK.js +0 -1
  159. package/public/dist/assets/infoDiagram-27XIBGKW-DDljhPf-.js +0 -2
  160. package/public/dist/assets/init-C-OQMol4.js +0 -1
  161. package/public/dist/assets/ishikawaDiagram-5VMMS53U-lv5AIy32.js +0 -70
  162. package/public/dist/assets/journeyDiagram-3NMN7TZE-JGB_kL7G.js +0 -139
  163. package/public/dist/assets/kanban-definition-UXKFOSKX-Dh9QRXsf.js +0 -89
  164. package/public/dist/assets/katex-CXMH3UgJ.js +0 -257
  165. package/public/dist/assets/line-y6RZraoR.js +0 -1
  166. package/public/dist/assets/linear-B15ppzAf.js +0 -1
  167. package/public/dist/assets/mermaid-parser.core-BUBZKecf.js +0 -7
  168. package/public/dist/assets/mermaid.core-BmHyJa2W.js +0 -44
  169. package/public/dist/assets/mindmap-definition-YA3MSWOX-iPmbv5ia.js +0 -96
  170. package/public/dist/assets/ordinal-BDEzSJ7C.js +0 -1
  171. package/public/dist/assets/orm-CL-WJRcX.js +0 -1
  172. package/public/dist/assets/packet-AYTQ26CC-B0In6653.js +0 -1
  173. package/public/dist/assets/pageQuery-yJh2-jSv.js +0 -1
  174. package/public/dist/assets/path-fybaL0A-.js +0 -1
  175. package/public/dist/assets/pegDiagram-XKGWAZYB-eBxgvyfm.js +0 -1
  176. package/public/dist/assets/pie-WAS4IAKB-HXctBHyn.js +0 -1
  177. package/public/dist/assets/pieDiagram-E7YTZNPT-DPJZesoc.js +0 -39
  178. package/public/dist/assets/preload-helper-DqwykoZ_.js +0 -1
  179. package/public/dist/assets/profileVisuals-BgkBVLds.js +0 -1
  180. package/public/dist/assets/quadrantDiagram-AXDQQJYC-CGAwWfTf.js +0 -7
  181. package/public/dist/assets/radar-RG4KPBEZ-DxefsHHZ.js +0 -1
  182. package/public/dist/assets/railroad-74A4TZTK-BzDNMT-i.js +0 -1
  183. package/public/dist/assets/railroad-abnf-HS5TGJTU-NF34mUF2.js +0 -1
  184. package/public/dist/assets/railroad-ebnf-LZEXJU2U-D76bUqHC.js +0 -1
  185. package/public/dist/assets/railroad-peg-WCYAUIDC-DZecRsnp.js +0 -1
  186. package/public/dist/assets/railroadDiagram-O6MQD6OU-BddmTjGI.js +0 -1
  187. package/public/dist/assets/realtimeHealth-CEJDxl45.js +0 -1
  188. package/public/dist/assets/requirementDiagram-BXWQKSXE-Dk5fuOKt.js +0 -84
  189. package/public/dist/assets/rough.esm-Dy-Kn_BL.js +0 -1
  190. package/public/dist/assets/sankeyDiagram-P5KCCOFB-Do-pVyXW.js +0 -40
  191. package/public/dist/assets/sequenceDiagram-WJ2MYXX4-CpJ9IHo7.js +0 -162
  192. package/public/dist/assets/sizeCapture-INFHLROL-B0uUizjq.js +0 -1
  193. package/public/dist/assets/src-CmaQbKwl.js +0 -1
  194. package/public/dist/assets/src-Dvwdl2PF.js +0 -1
  195. package/public/dist/assets/stateDiagram-D77RDMKH-BAekZ4Ys.js +0 -1
  196. package/public/dist/assets/stateDiagram-v2-MP3YSRHH-q5CT9Q8p.js +0 -1
  197. package/public/dist/assets/stores-Bu1klAcv.js +0 -1
  198. package/public/dist/assets/storesModel-B7ZpgdOv.js +0 -1
  199. package/public/dist/assets/studio-BZmdX49T.css +0 -1
  200. package/public/dist/assets/studio-Vg_SkMIH.js +0 -28
  201. package/public/dist/assets/swimlanes-42K2YHIH-SkWPea07.js +0 -1
  202. package/public/dist/assets/swimlanesDiagram-VR7AAH4N-pm8r801G.js +0 -8
  203. package/public/dist/assets/timeline-definition-24CTP7MA-DoJt0xLz.js +0 -120
  204. package/public/dist/assets/treeView-Q6P3EWNA-C22UvP1Q.js +0 -1
  205. package/public/dist/assets/treemap-WGGIJYW6-DZhfmqd3.js +0 -1
  206. package/public/dist/assets/ui-Cftpc0m_.js +0 -296
  207. package/public/dist/assets/ui-DLioOiRN.css +0 -1
  208. package/public/dist/assets/useBlockSource-B_wJJBrV.js +0 -1
  209. package/public/dist/assets/useSocketLiveData-Be_WNbY1.js +0 -1
  210. package/public/dist/assets/usersFormat-BIENYgUO.js +0 -1
  211. package/public/dist/assets/value-B7TObl0n.js +0 -1
  212. package/public/dist/assets/vennDiagram-4TSXK5OY-CYY4Bogj.js +0 -34
  213. package/public/dist/assets/wardley-WFR3VGLG-C6XRVR6T.js +0 -1
  214. package/public/dist/assets/wardleyDiagram-VM6X3IG4-jl02g9S_.js +0 -78
  215. package/public/dist/assets/xychartDiagram-S5SC5T6Z-CeDhSaVJ.js +0 -7
@@ -1,4 +0,0 @@
1
- import{or as e}from"./ui-Cftpc0m_.js";var t=`<svg viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="sqlite-original-a" x1="-15.615" x2="-6.741" y1="-9.108" y2="-9.108" gradientTransform="rotate(90 -90.486 64.634) scale(9.2712)" gradientUnits="userSpaceOnUse"><stop stop-color="#95d7f4" offset="0"/><stop stop-color="#0f7fcc" offset=".92"/><stop stop-color="#0f7fcc" offset="1"/></linearGradient></defs><path d="M69.5 99.176c-.059-.73-.094-1.2-.094-1.2S67.2 83.087 64.57 78.642c-.414-.707.043-3.594 1.207-7.88.68 1.169 3.54 6.192 4.118 7.81.648 1.824.78 2.347.78 2.347s-1.57-8.082-4.144-12.797a162.286 162.286 0 012.004-6.265c.973 1.71 3.313 5.859 3.828 7.3.102.293.192.543.27.774.023-.137.05-.274.074-.414-.59-2.504-1.75-6.86-3.336-10.082 3.52-18.328 15.531-42.824 27.84-53.754H16.9c-5.387 0-9.789 4.406-9.789 9.789v88.57c0 5.383 4.406 9.789 9.79 9.789h52.897a118.657 118.657 0 01-.297-14.652" fill="#0b7fcc"/><path d="M65.777 70.762c.68 1.168 3.54 6.188 4.117 7.809.649 1.824.781 2.347.781 2.347s-1.57-8.082-4.144-12.797a164.535 164.535 0 012.004-6.27c.887 1.567 2.922 5.169 3.652 6.872l.082-.961c-.648-2.496-1.633-5.766-2.898-8.328 3.242-16.871 13.68-38.97 24.926-50.898H16.899a6.94 6.94 0 00-6.934 6.933v82.11c17.527-6.731 38.664-12.88 56.855-12.614-.672-2.605-1.441-4.96-2.25-6.324-.414-.707.043-3.597 1.207-7.879" fill="url(#sqlite-original-a)"/><path d="M115.95 2.781c-5.5-4.906-12.164-2.933-18.734 2.899a44.347 44.347 0 00-2.914 2.859c-11.25 11.926-21.684 34.023-24.926 50.895 1.262 2.563 2.25 5.832 2.894 8.328.168.64.32 1.242.442 1.754.285 1.207.437 1.996.437 1.996s-.101-.383-.515-1.582c-.078-.23-.168-.484-.27-.773-.043-.125-.105-.274-.172-.434-.734-1.703-2.765-5.305-3.656-6.867-.762 2.25-1.437 4.36-2.004 6.265 2.578 4.715 4.149 12.797 4.149 12.797s-.137-.523-.782-2.347c-.578-1.621-3.441-6.64-4.117-7.809-1.164 4.281-1.625 7.172-1.207 7.88.809 1.362 1.574 3.722 2.25 6.323 1.524 5.867 2.586 13.012 2.586 13.012s.031.469.094 1.2a118.653 118.653 0 00.297 14.651c.504 6.11 1.453 11.363 2.664 14.172l.828-.449c-1.781-5.535-2.504-12.793-2.188-21.156.48-12.793 3.422-28.215 8.856-44.289 9.191-24.27 21.938-43.738 33.602-53.035-10.633 9.602-25.023 40.684-29.332 52.195-4.82 12.891-8.238 24.984-10.301 36.574 3.55-10.863 15.047-15.53 15.047-15.53s5.637-6.958 12.227-16.888c-3.95.903-10.43 2.442-12.598 3.352-3.2 1.344-4.067 1.8-4.067 1.8s10.371-6.312 19.27-9.171c12.234-19.27 25.562-46.648 12.141-58.621" fill="#003956"/></svg>
2
- `,n=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path d="M93.809 92.112c.785-6.533.55-7.492 5.416-6.433l1.235.108c3.742.17 8.637-.602 11.513-1.938 6.191-2.873 9.861-7.668 3.758-6.409-13.924 2.873-14.881-1.842-14.881-1.842 14.703-21.815 20.849-49.508 15.543-56.287-14.47-18.489-39.517-9.746-39.936-9.52l-.134.025c-2.751-.571-5.83-.912-9.289-.968-6.301-.104-11.082 1.652-14.709 4.402 0 0-44.683-18.409-42.604 23.151.442 8.841 12.672 66.898 27.26 49.362 5.332-6.412 10.484-11.834 10.484-11.834 2.558 1.699 5.622 2.567 8.834 2.255l.249-.212c-.078.796-.044 1.575.099 2.497-3.757 4.199-2.653 4.936-10.166 6.482-7.602 1.566-3.136 4.355-.221 5.084 3.535.884 11.712 2.136 17.238-5.598l-.22.882c1.474 1.18 1.375 8.477 1.583 13.69.209 5.214.558 10.079 1.621 12.948 1.063 2.868 2.317 10.256 12.191 8.14 8.252-1.764 14.561-4.309 15.136-27.985"/><path d="M75.458 125.256c-4.367 0-7.211-1.689-8.938-3.32-2.607-2.46-3.641-5.629-4.259-7.522l-.267-.79c-1.244-3.358-1.666-8.193-1.916-14.419-.038-.935-.064-1.898-.093-2.919-.021-.747-.047-1.684-.085-2.664a18.8 18.8 0 01-4.962 1.568c-3.079.526-6.389.356-9.84-.507-2.435-.609-4.965-1.871-6.407-3.82-4.203 3.681-8.212 3.182-10.396 2.453-3.853-1.285-7.301-4.896-10.542-11.037-2.309-4.375-4.542-10.075-6.638-16.943-3.65-11.96-5.969-24.557-6.175-28.693C4.292 23.698 7.777 14.44 15.296 9.129 27.157.751 45.128 5.678 51.68 7.915c4.402-2.653 9.581-3.944 15.433-3.851 3.143.051 6.136.327 8.916.823 2.9-.912 8.628-2.221 15.185-2.139 12.081.144 22.092 4.852 28.949 13.615 4.894 6.252 2.474 19.381.597 26.651-2.642 10.226-7.271 21.102-12.957 30.57 1.544.011 3.781-.174 6.961-.831 6.274-1.295 8.109 2.069 8.607 3.575 1.995 6.042-6.677 10.608-9.382 11.864-3.466 1.609-9.117 2.589-13.745 2.377l-.202-.013-1.216-.107-.12 1.014-.116.991c-.311 11.999-2.025 19.598-5.552 24.619-3.697 5.264-8.835 6.739-13.361 7.709-1.544.33-2.947.474-4.219.474zm-9.19-43.671c2.819 2.256 3.066 6.501 3.287 14.434.028.99.054 1.927.089 2.802.106 2.65.355 8.855 1.327 11.477.137.371.26.747.39 1.146 1.083 3.316 1.626 4.979 6.309 3.978 3.931-.843 5.952-1.599 7.534-3.851 2.299-3.274 3.585-9.86 3.821-19.575l4.783.116-4.75-.57.14-1.186c.455-3.91.783-6.734 3.396-8.602 2.097-1.498 4.486-1.353 6.389-1.01-2.091-1.58-2.669-3.433-2.823-4.193l-.399-1.965 1.121-1.663c6.457-9.58 11.781-21.354 14.609-32.304 2.906-11.251 2.02-17.226 1.134-18.356-11.729-14.987-32.068-8.799-34.192-8.097l-.359.194-1.8.335-.922-.191c-2.542-.528-5.366-.82-8.393-.869-4.756-.08-8.593 1.044-11.739 3.431l-2.183 1.655-2.533-1.043c-5.412-2.213-21.308-6.662-29.696-.721-4.656 3.298-6.777 9.76-6.305 19.207.156 3.119 2.275 14.926 5.771 26.377 4.831 15.825 9.221 21.082 11.054 21.693.32.108 1.15-.537 1.976-1.529a270.708 270.708 0 0110.694-12.07l2.77-2.915 3.349 2.225c1.35.897 2.839 1.406 4.368 1.502l7.987-6.812-1.157 11.808c-.026.265-.039.626.065 1.296l.348 2.238-1.51 1.688-.174.196 4.388 2.025 1.836-2.301z"/><path fill="#336791" d="M115.731 77.44c-13.925 2.873-14.882-1.842-14.882-1.842 14.703-21.816 20.849-49.51 15.545-56.287C101.924.823 76.875 9.566 76.457 9.793l-.135.024c-2.751-.571-5.83-.911-9.291-.967-6.301-.103-11.08 1.652-14.707 4.402 0 0-44.684-18.408-42.606 23.151.442 8.842 12.672 66.899 27.26 49.363 5.332-6.412 10.483-11.834 10.483-11.834 2.559 1.699 5.622 2.567 8.833 2.255l.25-.212c-.078.796-.042 1.575.1 2.497-3.758 4.199-2.654 4.936-10.167 6.482-7.602 1.566-3.136 4.355-.22 5.084 3.534.884 11.712 2.136 17.237-5.598l-.221.882c1.473 1.18 2.507 7.672 2.334 13.557-.174 5.885-.29 9.926.871 13.082 1.16 3.156 2.316 10.256 12.192 8.14 8.252-1.768 12.528-6.351 13.124-13.995.422-5.435 1.377-4.631 1.438-9.49l.767-2.3c.884-7.367.14-9.743 5.225-8.638l1.235.108c3.742.17 8.639-.602 11.514-1.938 6.19-2.871 9.861-7.667 3.758-6.408z"/><path fill="#fff" d="M75.957 122.307c-8.232 0-10.84-6.519-11.907-9.185-1.562-3.907-1.899-19.069-1.551-31.503a1.59 1.59 0 011.64-1.55 1.594 1.594 0 011.55 1.639c-.401 14.341.168 27.337 1.324 30.229 1.804 4.509 4.54 8.453 12.275 6.796 7.343-1.575 10.093-4.359 11.318-11.46.94-5.449 2.799-20.951 3.028-24.01a1.593 1.593 0 011.71-1.472 1.597 1.597 0 011.472 1.71c-.239 3.185-2.089 18.657-3.065 24.315-1.446 8.387-5.185 12.191-13.794 14.037-1.463.313-2.792.453-4 .454zM31.321 90.466a6.71 6.71 0 01-2.116-.35c-5.347-1.784-10.44-10.492-15.138-25.885-3.576-11.717-5.842-23.947-6.041-27.922-.589-11.784 2.445-20.121 9.02-24.778 13.007-9.216 34.888-.44 35.813-.062a1.596 1.596 0 01-1.207 2.955c-.211-.086-21.193-8.492-32.768-.285-5.622 3.986-8.203 11.392-7.672 22.011.167 3.349 2.284 15.285 5.906 27.149 4.194 13.742 8.967 22.413 13.096 23.79.648.216 2.62.873 5.439-2.517A245.272 245.272 0 0145.88 73.046a1.596 1.596 0 012.304 2.208c-.048.05-4.847 5.067-10.077 11.359-2.477 2.979-4.851 3.853-6.786 3.853zm69.429-13.445a1.596 1.596 0 01-1.322-2.487c14.863-22.055 20.08-48.704 15.612-54.414-5.624-7.186-13.565-10.939-23.604-11.156-7.433-.16-13.341 1.738-14.307 2.069l-.243.099c-.971.305-1.716-.227-1.997-.849a1.6 1.6 0 01.631-2.025c.046-.027.192-.089.429-.176l-.021.006.021-.007c1.641-.601 7.639-2.4 15.068-2.315 11.108.118 20.284 4.401 26.534 12.388 2.957 3.779 2.964 12.485.019 23.887-3.002 11.625-8.651 24.118-15.497 34.277-.306.457-.81.703-1.323.703zm.76 10.21c-2.538 0-4.813-.358-6.175-1.174-1.4-.839-1.667-1.979-1.702-2.584-.382-6.71 3.32-7.878 5.208-8.411-.263-.398-.637-.866-1.024-1.349-1.101-1.376-2.609-3.26-3.771-6.078-.182-.44-.752-1.463-1.412-2.648-3.579-6.418-11.026-19.773-6.242-26.612 2.214-3.165 6.623-4.411 13.119-3.716C97.6 28.837 88.5 10.625 66.907 10.271c-6.494-.108-11.82 1.889-15.822 5.93-8.96 9.049-8.636 25.422-8.631 25.586a1.595 1.595 0 11-3.19.084c-.02-.727-.354-17.909 9.554-27.916C53.455 9.272 59.559 6.96 66.96 7.081c13.814.227 22.706 7.25 27.732 13.101 5.479 6.377 8.165 13.411 8.386 15.759.165 1.746-1.088 2.095-1.341 2.147l-.576.013c-6.375-1.021-10.465-.312-12.156 2.104-3.639 5.201 3.406 17.834 6.414 23.229.768 1.376 1.322 2.371 1.576 2.985.988 2.396 2.277 4.006 3.312 5.3.911 1.138 1.7 2.125 1.982 3.283.131.23 1.99 2.98 13.021.703 2.765-.57 4.423-.083 4.93 1.45.997 3.015-4.597 6.532-7.694 7.97-2.775 1.29-7.204 2.106-11.036 2.106zm-4.696-4.021c.35.353 2.101.962 5.727.806 3.224-.138 6.624-.839 8.664-1.786 2.609-1.212 4.351-2.567 5.253-3.492l-.5.092c-7.053 1.456-12.042 1.262-14.828-.577a6.162 6.162 0 01-.54-.401c-.302.119-.581.197-.78.253-1.58.443-3.214.902-2.996 5.105zm-45.562 8.915c-1.752 0-3.596-.239-5.479-.71-1.951-.488-5.24-1.957-5.19-4.37.057-2.707 3.994-3.519 5.476-3.824 5.354-1.103 5.703-1.545 7.376-3.67.488-.619 1.095-1.39 1.923-2.314 1.229-1.376 2.572-2.073 3.992-2.073.989 0 1.8.335 2.336.558 1.708.708 3.133 2.42 3.719 4.467.529 1.847.276 3.625-.71 5.006-3.237 4.533-7.886 6.93-13.443 6.93zm-7.222-4.943c.481.372 1.445.869 2.518 1.137 1.631.408 3.213.615 4.705.615 4.546 0 8.196-1.882 10.847-5.594.553-.774.387-1.757.239-2.274-.31-1.083-1.08-2.068-1.873-2.397-.43-.178-.787-.314-1.115-.314-.176 0-.712 0-1.614 1.009a41.146 41.146 0 00-1.794 2.162c-2.084 2.646-3.039 3.544-9.239 4.821-1.513.31-2.289.626-2.674.835zm12.269-7.36a1.596 1.596 0 01-1.575-1.354 8.218 8.218 0 01-.08-.799c-4.064-.076-7.985-1.82-10.962-4.926-3.764-3.927-5.477-9.368-4.699-14.927.845-6.037.529-11.366.359-14.229-.047-.796-.081-1.371-.079-1.769.003-.505.013-1.844 4.489-4.113 1.592-.807 4.784-2.215 8.271-2.576 5.777-.597 9.585 1.976 10.725 7.246 3.077 14.228.244 20.521-1.825 25.117-.385.856-.749 1.664-1.04 2.447l-.257.69c-1.093 2.931-2.038 5.463-1.748 7.354a1.595 1.595 0 01-1.335 1.819l-.244.02zM42.464 42.26l.062 1.139c.176 2.974.504 8.508-.384 14.86-.641 4.585.759 9.06 3.843 12.276 2.437 2.542 5.644 3.945 8.94 3.945h.068c.369-1.555.982-3.197 1.642-4.966l.255-.686c.329-.884.714-1.74 1.122-2.646 1.991-4.424 4.47-9.931 1.615-23.132-.565-2.615-1.936-4.128-4.189-4.627-4.628-1.022-11.525 2.459-12.974 3.837zm9.63-.677c-.08.564 1.033 2.07 2.485 2.271 1.449.203 2.689-.975 2.768-1.539.079-.564-1.033-1.186-2.485-1.388-1.451-.202-2.691.092-2.768.656zm2.818 2.826l-.407-.028c-.9-.125-1.81-.692-2.433-1.518-.219-.29-.576-.852-.505-1.354.101-.736.999-1.177 2.4-1.177.313 0 .639.023.967.069.766.106 1.477.327 2.002.62.91.508.977 1.075.936 1.368-.112.813-1.405 2.02-2.96 2.02zm-2.289-2.732c.045.348.907 1.496 2.029 1.651l.261.018c1.036 0 1.81-.815 1.901-1.082-.096-.182-.762-.634-2.025-.81a5.823 5.823 0 00-.821-.059c-.812 0-1.243.183-1.345.282zm43.605-1.245c.079.564-1.033 2.07-2.484 2.272-1.45.202-2.691-.975-2.771-1.539-.076-.564 1.036-1.187 2.486-1.388 1.45-.203 2.689.092 2.769.655zm-2.819 2.56c-1.396 0-2.601-1.086-2.7-1.791-.115-.846 1.278-1.489 2.712-1.688.316-.044.629-.066.93-.066 1.238 0 2.058.363 2.14.949.053.379-.238.964-.739 1.492-.331.347-1.026.948-1.973 1.079l-.37.025zm.943-3.013c-.276 0-.564.021-.856.061-1.441.201-2.301.779-2.259 1.089.048.341.968 1.332 2.173 1.332l.297-.021c.787-.109 1.378-.623 1.66-.919.443-.465.619-.903.598-1.052-.028-.198-.56-.49-1.613-.49zm3.965 32.843a1.594 1.594 0 01-1.324-2.483c3.398-5.075 2.776-10.25 2.175-15.255-.257-2.132-.521-4.337-.453-6.453.07-2.177.347-3.973.614-5.71.317-2.058.617-4.002.493-6.31a1.595 1.595 0 113.186-.172c.142 2.638-.197 4.838-.525 6.967-.253 1.643-.515 3.342-.578 5.327-.061 1.874.178 3.864.431 5.97.64 5.322 1.365 11.354-2.691 17.411a1.596 1.596 0 01-1.328.708z"/></svg>`,r=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="#00618A" d="M117.688 98.242c-6.973-.191-12.297.461-16.852 2.379-1.293.547-3.355.559-3.566 2.18.711.746.82 1.859 1.387 2.777 1.086 1.754 2.922 4.113 4.559 5.352 1.789 1.348 3.633 2.793 5.551 3.961 3.414 2.082 7.223 3.27 10.504 5.352 1.938 1.23 3.859 2.777 5.75 4.164.934.684 1.563 1.75 2.773 2.18v-.195c-.637-.812-.801-1.93-1.387-2.777l-2.578-2.578c-2.52-3.344-5.719-6.281-9.117-8.719-2.711-1.949-8.781-4.578-9.91-7.73l-.199-.199c1.922-.219 4.172-.914 5.949-1.391 2.98-.797 5.645-.59 8.719-1.387l4.164-1.187v-.793c-1.555-1.594-2.664-3.707-4.359-5.152-4.441-3.781-9.285-7.555-14.273-10.703-2.766-1.746-6.184-2.883-9.117-4.363-.988-.496-2.719-.758-3.371-1.586-1.539-1.961-2.379-4.449-3.566-6.738-2.488-4.793-4.93-10.023-7.137-15.066-1.504-3.437-2.484-6.828-4.359-9.91-9-14.797-18.687-23.73-33.695-32.508-3.195-1.867-7.039-2.605-11.102-3.57l-6.543-.395c-1.332-.555-2.715-2.184-3.965-2.977C16.977 3.52 4.223-3.312.539 5.672-1.785 11.34 4.016 16.871 6.09 19.746c1.457 2.012 3.32 4.273 4.359 6.539.688 1.492.805 2.984 1.391 4.559 1.438 3.883 2.695 8.109 4.559 11.695.941 1.816 1.98 3.727 3.172 5.352.727.996 1.98 1.438 2.18 2.973-1.227 1.715-1.297 4.375-1.984 6.543-3.098 9.77-1.926 21.91 2.578 29.137 1.383 2.223 4.641 6.98 9.117 5.156 3.918-1.598 3.043-6.539 4.164-10.902.254-.988.098-1.715.594-2.379v.199l3.57 7.133c2.641 4.254 7.324 8.699 11.297 11.699 2.059 1.555 3.68 4.242 6.344 5.152v-.199h-.199c-.516-.805-1.324-1.137-1.98-1.781-1.551-1.523-3.277-3.414-4.559-5.156-3.613-4.902-6.805-10.27-9.711-15.855-1.391-2.668-2.598-5.609-3.77-8.324-.453-1.047-.445-2.633-1.387-3.172-1.281 1.988-3.172 3.598-4.164 5.945-1.582 3.754-1.789 8.336-2.375 13.082-.348.125-.195.039-.398.199-2.762-.668-3.73-3.508-4.758-5.949-2.594-6.164-3.078-16.09-.793-23.191.59-1.836 3.262-7.617 2.18-9.316-.516-1.691-2.219-2.672-3.172-3.965-1.18-1.598-2.355-3.703-3.172-5.551-2.125-4.805-3.113-10.203-5.352-15.062-1.07-2.324-2.875-4.676-4.359-6.738-1.645-2.289-3.484-3.977-4.758-6.742-.453-.984-1.066-2.559-.398-3.566.215-.684.516-.969 1.191-1.191 1.148-.887 4.352.297 5.547.793 3.18 1.32 5.832 2.578 8.527 4.363 1.289.855 2.598 2.512 4.16 2.973h1.785c2.789.641 5.914.195 8.523.988 4.609 1.402 8.738 3.582 12.488 5.949 11.422 7.215 20.766 17.48 27.156 29.734 1.027 1.973 1.473 3.852 2.379 5.945 1.824 4.219 4.125 8.559 5.941 12.688 1.816 4.113 3.582 8.27 6.148 11.695 1.348 1.801 6.551 2.766 8.918 3.766 1.66.699 4.379 1.43 5.949 2.379 3 1.809 5.906 3.965 8.723 5.945 1.402.992 5.73 3.168 5.945 4.957zm-88.605-75.52c-1.453-.027-2.48.156-3.566.395v.199h.195c.695 1.422 1.918 2.34 2.777 3.566l1.98 4.164.199-.195c1.227-.867 1.789-2.25 1.781-4.363-.492-.52-.562-1.164-.992-1.785-.562-.824-1.66-1.289-2.375-1.98zm0 0"/></svg>
3
- `,i=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="#003545" d="M127.403 22.767a1.824 1.824 0 0 0-1.24-.414c-1.236 0-2.833.838-3.693 1.287l-.34.175a11.721 11.721 0 0 1-4.612 1.16 64.756 64.756 0 0 0-4.896.34c-10.91 1.121-15.777 9.484-20.464 17.57-2.552 4.399-5.188 8.969-8.802 12.46-.747.724-1.541 1.4-2.378 2.02-3.74 2.78-8.435 4.765-12.088 6.17-3.518 1.345-7.359 2.553-11.066 3.722-3.4 1.07-6.609 2.082-9.56 3.178-1.144.422-2.299.823-3.459 1.205-2.688.872-4.626 1.54-7.458 3.49a47.949 47.949 0 0 0-2.963 2.183 31.255 31.255 0 0 0-5.913 6.227 36.767 36.767 0 0 1-4.966 5.961c-.598.584-1.659.872-3.248.872-1.86 0-4.115-.384-6.501-.79-2.462-.435-5.006-.85-7.188-.85-1.771 0-3.13.29-4.141.873 0 0-1.708.995-2.427 2.282l.707.32a14.493 14.493 0 0 1 3.02 2.181 15.153 15.153 0 0 0 3.141 2.234c.365.134.695.344.97.616-.296.436-.734.999-1.193 1.6-2.517 3.296-3.987 5.377-3.145 6.511.404.21.855.312 1.31.297 5.49 0 8.44-1.426 12.17-3.233 1.082-.522 2.182-1.06 3.491-1.615 2.182-.946 4.531-2.456 7.022-4.054 3.26-2.124 6.668-4.306 9.976-5.358a27.188 27.188 0 0 1 8.391-1.179c3.492 0 7.167.466 10.71.92 2.641.342 5.377.69 8.06.852a50.27 50.27 0 0 0 2.946.092 34.127 34.127 0 0 0 3.757-.196l.3-.105c1.883-1.158 2.765-3.64 3.618-6.04.551-1.546 1.014-2.933 1.747-3.814.043-.043.09-.082.14-.117a.175.175 0 0 1 .213.034v.07c-.435 9.387-4.215 15.348-8.038 20.646l-2.552 2.736s3.573 0 5.607-.786c7.42-2.217 13.018-7.104 17.093-14.899a63.583 63.583 0 0 0 2.693-6.15c.07-.172.712-.496.65.407-.021.267-.04.563-.061.874 0 .182 0 .37-.035.558-.104 1.31-.414 4.076-.414 4.076l2.29-1.227c5.525-3.49 9.784-10.533 13.015-21.491 1.344-4.566 2.33-9.1 3.197-13.093 1.039-4.801 1.935-8.915 2.96-10.512 1.61-2.506 4.067-4.2 6.445-5.844.323-.222.65-.437.97-.673 2.988-2.098 5.96-4.52 6.616-9.037v-.1c.474-3.37.073-4.228-.384-4.621z"/></svg>
4
- `,a=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill-rule="evenodd" clip-rule="evenodd" fill="#439934" d="M88.038 42.812c1.605 4.643 2.761 9.383 3.141 14.296.472 6.095.256 12.147-1.029 18.142-.035.165-.109.32-.164.48-.403.001-.814-.049-1.208.012-3.329.523-6.655 1.065-9.981 1.604-3.438.557-6.881 1.092-10.313 1.687-1.216.21-2.721-.041-3.212 1.641-.014.046-.154.054-.235.08l.166-10.051-.169-24.252 1.602-.275c2.62-.429 5.24-.864 7.862-1.281 3.129-.497 6.261-.98 9.392-1.465 1.381-.215 2.764-.412 4.148-.618z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#45A538" d="M61.729 110.054c-1.69-1.453-3.439-2.842-5.059-4.37-8.717-8.222-15.093-17.899-18.233-29.566-.865-3.211-1.442-6.474-1.627-9.792-.13-2.322-.318-4.665-.154-6.975.437-6.144 1.325-12.229 3.127-18.147l.099-.138c.175.233.427.439.516.702 1.759 5.18 3.505 10.364 5.242 15.551 5.458 16.3 10.909 32.604 16.376 48.9.107.318.384.579.583.866l-.87 2.969z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#46A037" d="M88.038 42.812c-1.384.206-2.768.403-4.149.616-3.131.485-6.263.968-9.392 1.465-2.622.417-5.242.852-7.862 1.281l-1.602.275-.012-1.045c-.053-.859-.144-1.717-.154-2.576-.069-5.478-.112-10.956-.18-16.434-.042-3.429-.105-6.857-.175-10.285-.043-2.13-.089-4.261-.185-6.388-.052-1.143-.236-2.28-.311-3.423-.042-.657.016-1.319.029-1.979.817 1.583 1.616 3.178 2.456 4.749 1.327 2.484 3.441 4.314 5.344 6.311 7.523 7.892 12.864 17.068 16.193 27.433z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#409433" d="M65.036 80.753c.081-.026.222-.034.235-.08.491-1.682 1.996-1.431 3.212-1.641 3.432-.594 6.875-1.13 10.313-1.687 3.326-.539 6.652-1.081 9.981-1.604.394-.062.805-.011 1.208-.012-.622 2.22-1.112 4.488-1.901 6.647-.896 2.449-1.98 4.839-3.131 7.182a49.142 49.142 0 01-6.353 9.763c-1.919 2.308-4.058 4.441-6.202 6.548-1.185 1.165-2.582 2.114-3.882 3.161l-.337-.23-1.214-1.038-1.256-2.753a41.402 41.402 0 01-1.394-9.838l.023-.561.171-2.426c.057-.828.133-1.655.168-2.485.129-2.982.241-5.964.359-8.946z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#4FAA41" d="M65.036 80.753c-.118 2.982-.23 5.964-.357 8.947-.035.83-.111 1.657-.168 2.485l-.765.289c-1.699-5.002-3.399-9.951-5.062-14.913-2.75-8.209-5.467-16.431-8.213-24.642a4498.887 4498.887 0 00-6.7-19.867c-.105-.31-.407-.552-.617-.826l4.896-9.002c.168.292.39.565.496.879a6167.476 6167.476 0 016.768 20.118c2.916 8.73 5.814 17.467 8.728 26.198.116.349.308.671.491 1.062l.67-.78-.167 10.052z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#4AA73C" d="M43.155 32.227c.21.274.511.516.617.826a4498.887 4498.887 0 016.7 19.867c2.746 8.211 5.463 16.433 8.213 24.642 1.662 4.961 3.362 9.911 5.062 14.913l.765-.289-.171 2.426-.155.559c-.266 2.656-.49 5.318-.814 7.968-.163 1.328-.509 2.632-.772 3.947-.198-.287-.476-.548-.583-.866-5.467-16.297-10.918-32.6-16.376-48.9a3888.972 3888.972 0 00-5.242-15.551c-.089-.263-.34-.469-.516-.702l3.272-8.84z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#57AE47" d="M65.202 70.702l-.67.78c-.183-.391-.375-.714-.491-1.062-2.913-8.731-5.812-17.468-8.728-26.198a6167.476 6167.476 0 00-6.768-20.118c-.105-.314-.327-.588-.496-.879l6.055-7.965c.191.255.463.482.562.769 1.681 4.921 3.347 9.848 5.003 14.778 1.547 4.604 3.071 9.215 4.636 13.813.105.308.47.526.714.786l.012 1.045c.058 8.082.115 16.167.171 24.251z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#60B24F" d="M65.021 45.404c-.244-.26-.609-.478-.714-.786-1.565-4.598-3.089-9.209-4.636-13.813-1.656-4.93-3.322-9.856-5.003-14.778-.099-.287-.371-.514-.562-.769 1.969-1.928 3.877-3.925 5.925-5.764 1.821-1.634 3.285-3.386 3.352-5.968.003-.107.059-.214.145-.514l.519 1.306c-.013.661-.072 1.322-.029 1.979.075 1.143.259 2.28.311 3.423.096 2.127.142 4.258.185 6.388.069 3.428.132 6.856.175 10.285.067 5.478.111 10.956.18 16.434.008.861.098 1.718.152 2.577z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#A9AA88" d="M62.598 107.085c.263-1.315.609-2.62.772-3.947.325-2.649.548-5.312.814-7.968l.066-.01.066.011a41.402 41.402 0 001.394 9.838c-.176.232-.425.439-.518.701-.727 2.05-1.412 4.116-2.143 6.166-.1.28-.378.498-.574.744l-.747-2.566.87-2.969z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#B6B598" d="M62.476 112.621c.196-.246.475-.464.574-.744.731-2.05 1.417-4.115 2.143-6.166.093-.262.341-.469.518-.701l1.255 2.754c-.248.352-.59.669-.728 1.061l-2.404 7.059c-.099.283-.437.483-.663.722l-.695-3.985z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#C2C1A7" d="M63.171 116.605c.227-.238.564-.439.663-.722l2.404-7.059c.137-.391.48-.709.728-1.061l1.215 1.037c-.587.58-.913 1.25-.717 2.097l-.369 1.208c-.168.207-.411.387-.494.624-.839 2.403-1.64 4.819-2.485 7.222-.107.305-.404.544-.614.812-.109-1.387-.22-2.771-.331-4.158z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#CECDB7" d="M63.503 120.763c.209-.269.506-.508.614-.812.845-2.402 1.646-4.818 2.485-7.222.083-.236.325-.417.494-.624l-.509 5.545c-.136.157-.333.294-.398.477-.575 1.614-1.117 3.24-1.694 4.854-.119.333-.347.627-.525.938-.158-.207-.441-.407-.454-.623-.051-.841-.016-1.688-.013-2.533z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#DBDAC7" d="M63.969 123.919c.178-.312.406-.606.525-.938.578-1.613 1.119-3.239 1.694-4.854.065-.183.263-.319.398-.477l.012 3.64-1.218 3.124-1.411-.495z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#EBE9DC" d="M65.38 124.415l1.218-3.124.251 3.696-1.469-.572z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#CECDB7" d="M67.464 110.898c-.196-.847.129-1.518.717-2.097l.337.23-1.054 1.867z"/><path fill-rule="evenodd" clip-rule="evenodd" fill="#4FAA41" d="M64.316 95.172l-.066-.011-.066.01.155-.559-.023.56z"/></svg>`,o=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="#A41E11" d="M121.8 93.1c-6.7 3.5-41.4 17.7-48.8 21.6-7.4 3.9-11.5 3.8-17.3 1S13 98.1 6.3 94.9c-3.3-1.6-5-2.9-5-4.2V78s48-10.5 55.8-13.2c7.8-2.8 10.4-2.9 17-.5s46.1 9.5 52.6 11.9v12.5c0 1.3-1.5 2.7-4.9 4.4z"/><path fill="#D82C20" d="M121.8 80.5C115.1 84 80.4 98.2 73 102.1c-7.4 3.9-11.5 3.8-17.3 1-5.8-2.8-42.7-17.7-49.4-20.9C-.3 79-.5 76.8 6 74.3c6.5-2.6 43.2-17 51-19.7 7.8-2.8 10.4-2.9 17-.5s41.1 16.1 47.6 18.5c6.7 2.4 6.9 4.4.2 7.9z"/><path fill="#A41E11" d="M121.8 72.5C115.1 76 80.4 90.2 73 94.1c-7.4 3.8-11.5 3.8-17.3 1C49.9 92.3 13 77.4 6.3 74.2c-3.3-1.6-5-2.9-5-4.2V57.3s48-10.5 55.8-13.2c7.8-2.8 10.4-2.9 17-.5s46.1 9.5 52.6 11.9V68c0 1.3-1.5 2.7-4.9 4.5z"/><path fill="#D82C20" d="M121.8 59.8c-6.7 3.5-41.4 17.7-48.8 21.6-7.4 3.8-11.5 3.8-17.3 1C49.9 79.6 13 64.7 6.3 61.5s-6.8-5.4-.3-7.9c6.5-2.6 43.2-17 51-19.7 7.8-2.8 10.4-2.9 17-.5s41.1 16.1 47.6 18.5c6.7 2.4 6.9 4.4.2 7.9z"/><path fill="#A41E11" d="M121.8 51c-6.7 3.5-41.4 17.7-48.8 21.6-7.4 3.8-11.5 3.8-17.3 1C49.9 70.9 13 56 6.3 52.8c-3.3-1.6-5.1-2.9-5.1-4.2V35.9s48-10.5 55.8-13.2c7.8-2.8 10.4-2.9 17-.5s46.1 9.5 52.6 11.9v12.5c.1 1.3-1.4 2.6-4.8 4.4z"/><path fill="#D82C20" d="M121.8 38.3C115.1 41.8 80.4 56 73 59.9c-7.4 3.8-11.5 3.8-17.3 1S13 43.3 6.3 40.1s-6.8-5.4-.3-7.9c6.5-2.6 43.2-17 51-19.7 7.8-2.8 10.4-2.9 17-.5s41.1 16.1 47.6 18.5c6.7 2.4 6.9 4.4.2 7.8z"/><path fill="#fff" d="M80.4 26.1l-10.8 1.2-2.5 5.8-3.9-6.5-12.5-1.1 9.3-3.4-2.8-5.2 8.8 3.4 8.2-2.7L72 23zM66.5 54.5l-20.3-8.4 29.1-4.4z"/><ellipse fill="#fff" cx="38.4" cy="35.4" rx="15.5" ry="6"/><path fill="#7A0C00" d="M93.3 27.7l17.2 6.8-17.2 6.8z"/><path fill="#AD2115" d="M74.3 35.3l19-7.6v13.6l-1.9.8z"/></svg>`,s=`<svg role="img" viewBox="0 0 24 24" fill="#C5F74F" xmlns="http://www.w3.org/2000/svg"><title>Drizzle</title><path d="M5.353 11.823a1.036 1.036 0 0 0-.395-1.422 1.063 1.063 0 0 0-1.437.399L.138 16.702a1.035 1.035 0 0 0 .395 1.422 1.063 1.063 0 0 0 1.437-.398l3.383-5.903Zm11.216 0a1.036 1.036 0 0 0-.394-1.422 1.064 1.064 0 0 0-1.438.399l-3.382 5.902a1.036 1.036 0 0 0 .394 1.422c.506.283 1.15.104 1.438-.398l3.382-5.903Zm7.293-4.525a1.036 1.036 0 0 0-.395-1.422 1.062 1.062 0 0 0-1.437.399l-3.383 5.902a1.036 1.036 0 0 0 .395 1.422 1.063 1.063 0 0 0 1.437-.399l3.383-5.902Zm-11.219 0a1.035 1.035 0 0 0-.394-1.422 1.064 1.064 0 0 0-1.438.398l-3.382 5.903a1.036 1.036 0 0 0 .394 1.422c.506.282 1.15.104 1.438-.399l3.382-5.902Z"/></svg>`,c=e(),l=e=>`data:image/svg+xml,${encodeURIComponent(e)}`,u=l(t),d=l(n),f=l(r),p=l(i),m=l(a),h={sqlite:u,"better-sqlite3":u,postgres:d,postgresql:d,pg:d,mysql:f,mysql2:f,mariadb:p,mongodb:m,mongoose:m,redis:l(o),drizzle:l(s)};function g(e){return!!e&&e.toLowerCase()in h}function _({name:e,size:t=20,title:n}){let r=h[(e??``).toLowerCase()];return r?(0,c.jsx)(`img`,{src:r,width:t,height:t,alt:n??e??``,style:{display:`block`,objectFit:`contain`}}):null}export{g as n,_ as t};
@@ -1 +0,0 @@
1
- import{k as e}from"./src-Dvwdl2PF.js";import{$ as t,F as n,K as r,Kt as i,M as a,Mn as o,N as s,Pn as c,Ut as l,di as u,ei as d,ft as f,j as p,mt as m,or as h,pt as g,q as _,sn as v,vn as y,yn as b,zt as ee}from"./ui-Cftpc0m_.js";import{A as x,c as S,r as C}from"./stores-Bu1klAcv.js";import{Ct as w,J as T,W as E,gt as D,v as O,xt as k}from"./studio-Vg_SkMIH.js";import{t as A}from"./RoleSwitch-BU7I1PPE.js";var j=e(u(),1),M=h();function te(e,t){return t?e.replace(/\{\{\s*([a-zA-Z0-9_]+)\s*\}\}/g,(e,n)=>n in t?String(t[n]):e):e}function ne(e){return x(e,`ROLE_NODEFONY_ADMIN`)?`admin`:x(e,`ROLE_SUPERVISOR`)?`supervisor`:`developer`}var N=w(()=>{let e=S(),u=C(),[h,x]=(0,j.useState)(()=>ne(u.roles)),w=(0,j.useCallback)(()=>e.api.getAbsolute(`/nodefony/documentation/api/tree`),[e]),N=O(w),[P,F]=D(),I=N.data?.sections??[],L=I.flatMap(e=>e.pages),R=L.find(e=>e.slug===`root~index`)?.slug??L.find(e=>e.isHub)?.slug??L[0]?.slug,z=P.get(`doc`)??R??`root~index`,B=(0,j.useCallback)(e=>F({doc:e},{replace:!1}),[F]),V=(0,j.useCallback)(e=>{if(/^(root|mod)~/.test(e))return B(e),!0;if(!z.includes(`~`))return!1;let t=z.replace(/[^~]+$/,``);return B(t+e),!0},[z,B]),[H,U]=(0,j.useState)({}),[W,G]=(0,j.useState)(``),K=(0,j.useCallback)(()=>e.api.getAbsolute(`/nodefony/documentation/api/page/${encodeURIComponent(z)}`),[e,z]),q=O(K),J=e=>h===`admin`||!e||e.includes(h),Y=q.data?te(q.data.markdown,q.data.vars):``,X=W.trim().toLowerCase(),Z=I.map(e=>({...e,label:e.module?e.label.replace(/^Module\s+/i,``):e.label,pages:e.pages.filter(e=>J(e.audience)&&(!X||e.title.toLowerCase().includes(X)))})).filter(e=>e.pages.length>0),Q=[{key:`guides`,label:`Comprendre & construire`,match:e=>!e.module&&/architecture|guide|racine|tutoriel/i.test(e.label)},{key:`modules`,label:`Modules`,match:e=>!!e.module},{key:`refs`,label:`Références internes`,match:()=>!0}],re=Q.map((e,t)=>({key:e.key,label:e.label,sections:Z.filter(n=>e.match(n)&&!Q.slice(0,t).some(e=>e.match(n)))})).filter(e=>e.sections.length>0),$=I.find(e=>e.pages.some(e=>e.slug===z)),ie=$?[`Documentation`,$.label]:[`Documentation`];return(0,j.useEffect)(()=>{$&&U(e=>e[$.id]===!1?e:{...e,[$.id]:!1})},[$]),(0,M.jsx)(_,{title:`Documentation`,subtitle:`Portail unifié — sections, audiences, doc dynamique`,icon:(0,M.jsx)(T,{size:22}),actions:(0,M.jsx)(A,{value:h,onChange:e=>x(e),size:`sm`}),children:(0,M.jsx)(a,{navTitle:`Documentation`,navActions:(0,M.jsxs)(o,{gap:2,wrap:`nowrap`,children:[(0,M.jsx)(i,{label:`Tout déplier`,children:(0,M.jsx)(c,{variant:`subtle`,color:`gray`,size:`sm`,onClick:()=>U(Object.fromEntries(I.map(e=>[e.id,!1]))),"aria-label":`Tout déplier`,children:(0,M.jsx)(g,{size:15})})}),(0,M.jsx)(i,{label:`Tout plier`,children:(0,M.jsx)(c,{variant:`subtle`,color:`gray`,size:`sm`,onClick:()=>U(Object.fromEntries(I.map(e=>[e.id,!0]))),"aria-label":`Tout plier`,children:(0,M.jsx)(f,{size:15})})})]}),navSearch:(0,M.jsx)(ee,{size:`xs`,mb:6,placeholder:`Rechercher une page…`,value:W,onChange:e=>G(e.currentTarget.value),leftSection:(0,M.jsx)(t,{size:13}),"aria-label":`Rechercher dans la documentation`}),nav:(0,M.jsx)(r,{loading:N.loading&&!N.data,error:N.error,onRetry:N.reload,minHeight:120,children:(0,M.jsxs)(l,{gap:2,children:[!X&&R?(0,M.jsx)(k,{active:z===R,label:`Accueil`,fw:600,leftSection:(0,M.jsx)(E,{size:15}),onClick:()=>B(R),styles:{root:{borderRadius:d(6)}}}):null,re.map(e=>(0,M.jsxs)(l,{gap:2,mt:6,children:[(0,M.jsx)(y,{size:`10px`,fw:700,tt:`uppercase`,c:`dimmed`,px:8,style:{letterSpacing:`0.08em`},children:e.label}),e.sections.map(e=>{let t=X?!1:H[e.id]??!0,n=e.pages.find(e=>e.isHub)??e.pages[0],r=n?z===n.slug:!1;return(0,M.jsx)(k,{label:(0,M.jsxs)(o,{gap:6,wrap:`nowrap`,justify:`space-between`,style:{width:`100%`},children:[(0,M.jsx)(y,{size:`xs`,fw:700,tt:`uppercase`,c:r?`inherit`:`dimmed`,style:{letterSpacing:`0.04em`},children:e.label}),(0,M.jsx)(v,{size:`xs`,variant:`default`,radius:`sm`,children:e.pages.length})]}),opened:!t,active:r,onClick:()=>{U(t=>({...t,[e.id]:!1})),n&&B(n.slug)},rightSection:(0,M.jsx)(c,{component:`div`,role:`button`,tabIndex:0,variant:`subtle`,color:`gray`,size:`sm`,"aria-label":t?`Déplier ${e.label}`:`Replier ${e.label}`,"aria-expanded":!t,onClick:n=>{n.stopPropagation(),U(n=>({...n,[e.id]:!t}))},onKeyDown:n=>{(n.key===`Enter`||n.key===` `)&&(n.preventDefault(),n.stopPropagation(),U(n=>({...n,[e.id]:!t})))},children:(0,M.jsx)(m,{size:14,style:{transition:`transform 150ms ease`,transform:t?`rotate(0deg)`:`rotate(90deg)`}})}),childrenOffset:14,styles:{root:{borderRadius:d(6)}},children:e.pages.map(e=>(0,M.jsx)(k,{active:e.slug===z,label:e.title,fw:e.isHub?600:void 0,leftSection:e.isHub?(0,M.jsx)(E,{size:14}):(0,M.jsx)(T,{size:14}),rightSection:e.wip?(0,M.jsx)(v,{size:`xs`,variant:`light`,color:`gray`,children:`à venir`}):void 0,disabled:e.wip,onClick:()=>!e.wip&&B(e.slug),styles:{root:{borderRadius:d(6)},label:{fontSize:d(12.5)}}},e.slug))},e.id)})]},e.key)),!Z.length&&(0,M.jsx)(y,{size:`xs`,c:`dimmed`,px:`xs`,py:4,children:`Aucune page ne correspond.`})]})}),title:(0,M.jsx)(p,{breadcrumbs:ie,title:q.data?.title??`—`,version:q.data?.version,status:q.data?.temporary?`temporary`:q.data?.status,updated:q.data?.updated,sourceUrl:q.data?.sourceUrl}),tocMarkdown:Y,mode:`container`,height:n,children:(0,M.jsxs)(r,{loading:q.loading&&!q.data,error:q.error,onRetry:q.reload,minHeight:300,children:[q.data?.temporary&&(0,M.jsxs)(b,{color:`yellow`,variant:`light`,icon:(0,M.jsx)(T,{size:18}),mb:`md`,children:[`Page `,(0,M.jsx)(`b`,{children:`temporaire`}),` branchée pour ta lecture — contenu lu en direct depuis le fichier du repo. Le vrai module gérera ça proprement.`]}),(0,M.jsx)(s,{markdown:Y,maxWidth:1e3,onInternalLink:V})]})})})});export{N as Documentation,N as default};
@@ -1 +0,0 @@
1
- import{k as e}from"./src-Dvwdl2PF.js";import{b as t,di as n,or as r}from"./ui-Cftpc0m_.js";import{t as i}from"./IconArrowsSplit2--SYoYsTA.js";import{t as a}from"./IconCircuitResistor-BKvBhegV.js";import{t as o}from"./IconDeviceDesktop-DEpLd6M3.js";import{Ct as s,X as c,et as l}from"./studio-Vg_SkMIH.js";import{a as u,c as d}from"./useSocketLiveData-Be_WNbY1.js";var f=e(n(),1),p=r(),m=[{id:`source`,data:{label:`Service publisher`,sub:`publish(channel, payload)`,icon:(0,p.jsx)(i,{size:20}),color:`violet`}},{id:`hub`,data:{label:`RealtimeHub A`,sub:`Map<canal, Set<peers>> — fan-out local`,icon:(0,p.jsx)(l,{size:20}),color:`indigo`,emphasis:!0}},{id:`peerA`,data:{label:`Peer A1`,sub:`abonné local · allumé dès 1 abonné sur un canal`,icon:(0,p.jsx)(o,{size:20}),color:`blue`}},{id:`peerB`,data:{label:`Peer A2`,sub:`abonné local · allumé dès 2 abonnés sur un canal`,icon:(0,p.jsx)(o,{size:20}),color:`blue`}},{id:`peerC`,data:{label:`Peer A3`,sub:`abonné local · allumé dès 3 abonnés sur un canal`,icon:(0,p.jsx)(o,{size:20}),color:`blue`}},{id:`backplane`,data:{label:`IBackplane`,sub:`forward cross-worker — Loopback / Cluster IPC / Redis`,icon:(0,p.jsx)(a,{size:20}),color:`orange`}},{id:`hubB`,data:{label:`RealtimeHub B`,sub:`2ᵉ worker du pod — neutre hors vue pod agrégée`,icon:(0,p.jsx)(l,{size:20}),color:`grape`}},{id:`peerX`,data:{label:`Peer B1`,sub:`abonné worker B · allumé dès 1 abonné`,icon:(0,p.jsx)(c,{size:20}),color:`teal`}},{id:`peerY`,data:{label:`Peer B2`,sub:`abonné worker B · allumé dès 2 abonnés`,icon:(0,p.jsx)(c,{size:20}),color:`teal`}}],h=[{source:`source`,target:`hub`,label:`publish`,color:`violet`},{source:`hub`,target:`peerA`,label:`notify`,color:`indigo`},{source:`hub`,target:`peerB`,label:`notify`,color:`indigo`},{source:`hub`,target:`peerC`,label:`notify`,color:`indigo`},{source:`hub`,target:`backplane`,label:`forward`,color:`orange`},{source:`backplane`,target:`hubB`,label:`relais`,color:`orange`},{source:`hubB`,target:`peerX`,label:`notify`,color:`grape`},{source:`hubB`,target:`peerY`,label:`notify`,color:`grape`}],g=s(({height:e})=>{let n=d(),r=(0,f.useMemo)(()=>u(n),[n]);return(0,p.jsx)(t,{nodes:m,edges:h,dir:`LR`,height:e,ariaLabel:`Fan-out d'un publish vers N abonnés — temps réel actif`,liveNodeData:r})});function _({live:e=!1,height:n=540}){return e?(0,p.jsx)(g,{height:n}):(0,p.jsx)(t,{nodes:m,edges:h,dir:`LR`,height:n,ariaLabel:`Fan-out d'un publish vers N abonnés (statique)`})}export{_ as FanOutLiveGraph,_ as default};
@@ -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,Gt as a,H as o,Hn as s,K as c,Kt as l,Mn as u,Rt as d,Ut as f,V as p,Wn as m,Xt as h,an as g,di as ee,et as te,gt as _,it as v,n as y,nn as b,nt as ne,on as x,or as re,q as ie,sn as S,vn as C,wt as ae,yn as w}from"./ui-Cftpc0m_.js";import{c as T}from"./stores-Bu1klAcv.js";import{t as oe}from"./IconBan-Dq9wsaIv.js";import{t as E}from"./IconShieldOff-CTGOUl2X.js";import{i as se,o as ce,r as le,t as ue}from"./auditFormat-DB8Rmevs.js";import{t as de}from"./IconWorld-v1UEZOxv.js";import{A as D,C as O,Ct as k,D as A,G as fe,I as pe,L as me,O as j,Q as he,b as M,ht as ge,v as N}from"./studio-Vg_SkMIH.js";import{s as _e}from"./auditModel-BkLmFpDO.js";import{a as ve,c as P,i as F,n as I,o as ye,r as L,s as be,t as xe}from"./firewallModel-DKOWcjIb.js";var Se=i(`outline`,`hand-stop`,`HandStop`,[[`path`,{d:`M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5`,key:`svg-0`}],[`path`,{d:`M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5`,key:`svg-1`}],[`path`,{d:`M14 5.5a1.5 1.5 0 0 1 3 0v6.5`,key:`svg-2`}],[`path`,{d:`M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47`,key:`svg-3`}]]),R=i(`outline`,`heading`,`Heading`,[[`path`,{d:`M7 12h10`,key:`svg-0`}],[`path`,{d:`M7 5v14`,key:`svg-1`}],[`path`,{d:`M17 5v14`,key:`svg-2`}],[`path`,{d:`M15 19h4`,key:`svg-3`}],[`path`,{d:`M15 5h4`,key:`svg-4`}],[`path`,{d:`M5 19h4`,key:`svg-5`}],[`path`,{d:`M5 5h4`,key:`svg-6`}]]),z=i(`outline`,`login-2`,`Login2`,[[`path`,{d:`M9 8v-2a2 2 0 0 1 2 -2h7a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-2`,key:`svg-0`}],[`path`,{d:`M3 12h13l-3 -3`,key:`svg-1`}],[`path`,{d:`M13 15l3 -3`,key:`svg-2`}]]),Ce=i(`outline`,`ticket`,`Ticket`,[[`path`,{d:`M15 5l0 2`,key:`svg-0`}],[`path`,{d:`M15 11l0 2`,key:`svg-1`}],[`path`,{d:`M15 17l0 2`,key:`svg-2`}],[`path`,{d:`M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-3a2 2 0 0 0 0 -4v-3a2 2 0 0 1 2 -2`,key:`svg-3`}]]),we=i(`outline`,`user-question`,`UserQuestion`,[[`path`,{d:`M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0`,key:`svg-0`}],[`path`,{d:`M6 21v-2a4 4 0 0 1 4 -4h3.5`,key:`svg-1`}],[`path`,{d:`M19 22v.01`,key:`svg-2`}],[`path`,{d:`M19 19a2.003 2.003 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483`,key:`svg-3`}]]),B=e(ee(),1),V=re();function H({on:e,onLabel:t=`Activé`,offLabel:n=`Désactivé`}){return(0,V.jsx)(S,{variant:`light`,color:e?`teal`:`gray`,leftSection:e?(0,V.jsx)(_,{size:12}):(0,V.jsx)(M,{size:12}),style:{textTransform:`none`},children:e?t:n})}function U({security:e}){return(0,V.jsx)(S,{variant:e?`light`:`outline`,color:e?`teal`:`orange`,leftSection:e?(0,V.jsx)(A,{size:12}):(0,V.jsx)(E,{size:12}),style:{textTransform:`none`},children:e?`Protégée`:`Publique`})}function W({stateless:e}){return(0,V.jsx)(l,{label:e?`Stateless : chaque requête porte sa preuve (JWT / clé API), aucun registre serveur.`:`Stateful : session serveur posée au login (cookie opaque révocable, BFF).`,withinPortal:!0,multiline:!0,w:260,children:(0,V.jsx)(S,{variant:`dot`,color:e?`grape`:`cyan`,style:{textTransform:`none`},children:e?`Stateless`:`Session BFF`})})}function G({mode:e}){return(0,V.jsx)(l,{label:e===`all`?`Tous les authenticators doivent passer (MFA) — le dernier porte l'identité.`:`Le premier authenticator qui reconnaît la requête authentifie.`,withinPortal:!0,multiline:!0,w:260,children:(0,V.jsx)(S,{variant:`light`,color:e===`all`?`red`:`blue`,style:{textTransform:`none`},children:e===`all`?`MFA (all)`:`first`})})}function K({name:e}){let t=I[e],n=e===`anonymous`?we:t?ne:Ce;return(0,V.jsx)(S,{variant:`light`,color:t?.color??`gray`,leftSection:(0,V.jsx)(n,{size:12}),style:{textTransform:`none`},children:be(e)})}function Te({mounted:e}){return(0,V.jsx)(S,{variant:e?`filled`:`light`,color:e?`teal`:`gray`,leftSection:e?(0,V.jsx)(pe,{size:12}):(0,V.jsx)(me,{size:12}),style:{textTransform:`none`},children:e?`Monté`:`Disponible`})}function q({k:e,children:t}){return(0,V.jsxs)(u,{justify:`space-between`,wrap:`nowrap`,gap:`xl`,align:`flex-start`,children:[(0,V.jsx)(C,{size:`sm`,c:`dimmed`,style:{flexShrink:0},children:e}),(0,V.jsx)(m,{style:{textAlign:`right`,minWidth:0},children:t})]})}function J({names:e}){return e.length===0?(0,V.jsx)(C,{size:`sm`,c:`dimmed`,fs:`italic`,children:`aucun`}):(0,V.jsx)(u,{gap:4,justify:`flex-end`,wrap:`wrap`,children:e.map(e=>(0,V.jsx)(K,{name:e},e))})}function Ee({zones:e}){let[t,n]=(0,B.useState)(null),r=(0,B.useMemo)(()=>[{key:`name`,header:`Zone`,sortable:!0,value:e=>e.name,render:e=>(0,V.jsx)(C,{fw:600,size:`sm`,children:e.name}),size:160},{key:`pattern`,header:`Pattern d'URL`,value:e=>e.pattern,render:e=>(0,V.jsx)(b,{children:e.pattern}),size:230},{key:`host`,header:`Hôte`,value:e=>e.host??``,render:e=>e.host?(0,V.jsx)(b,{children:e.host}):(0,V.jsx)(C,{size:`sm`,c:`dimmed`,children:`tous`}),size:130},{key:`security`,header:`Accès`,filterable:!0,filterType:`select`,value:e=>e.security?`Protégée`:`Publique`,render:e=>(0,V.jsx)(U,{security:e.security}),size:120},{key:`mode`,header:`Mode`,filterable:!0,filterType:`select`,value:e=>e.mode,render:e=>(0,V.jsx)(G,{mode:e.mode}),size:110},{key:`identity`,header:`Identité`,value:e=>e.stateless?`Stateless`:`Session BFF`,render:e=>(0,V.jsx)(W,{stateless:e.stateless}),size:130},{key:`authenticators`,header:`Authenticators`,value:e=>e.authenticators.join(`, `),render:e=>(0,V.jsx)(J,{names:e.authenticators}),size:260},{key:`realtime`,header:`WS`,align:`right`,value:e=>e.realtime?`1`:`0`,render:e=>(0,V.jsx)(S,{variant:`dot`,color:e.realtime?`teal`:`gray`,style:{textTransform:`none`},children:e.realtime?`oui`:`non`}),size:90}],[]);return(0,V.jsxs)(f,{gap:`md`,children:[(0,V.jsxs)(u,{gap:`xs`,children:[(0,V.jsxs)(C,{size:`sm`,c:`dimmed`,children:[e.length,` zone(s) montée(s), triées par spécificité (pattern le plus long d'abord).`]}),(0,V.jsx)(o,{title:`Zones de sécurité (SecuredArea)`,version:L,summary:`Une zone = un pattern d'URL + sa chaîne d'authenticators. Le firewall teste les zones par spécificité ; la première dont le pattern matche capture la requête.`,sections:[{label:`Comment lire`,body:`« Protégée » = Zero Trust (preuve requise, 401 sinon). « Publique » = accès libre explicite. Le mode décrit la chaîne d'authenticators (first = le premier qui reconnaît ; all = MFA).`},{label:`WebSocket`,body:`« WS oui » = la zone gouverne AUSSI les frames temps réel (api.request + subscribe) : invariant api.request {path} ≤ GET {path}.`},{label:`Si vide`,body:`Aucune zone = aucune URL protégée (le firewall court-circuite, 0 coût). Déclaration via defineSecurityConfig({ areas }).`}]})]}),e.length===0&&(0,V.jsxs)(w,{variant:`light`,color:`orange`,icon:(0,V.jsx)(E,{size:18}),title:`Aucune zone configurée`,children:[`Aucune zone de sécurité n'est montée : le firewall laisse passer toutes les requêtes (court-circuit hot-path). Déclarez des zones via`,` `,(0,V.jsx)(b,{children:`defineSecurityConfig({ areas })`}),`.`]}),(0,V.jsx)(y,{mode:`client`,data:e,columns:r,getRowId:e=>e.name,onRowClick:e=>n(e),initialSort:{key:`name`,dir:`asc`},searchable:!0,searchPlaceholder:`Rechercher une zone (nom, pattern, hôte…)`,pageSize:25,height:460,persist:{key:`studio.firewall.zones`,storage:`session`},emptyMessage:`Aucune zone.`}),(0,V.jsx)(h,{opened:t!==null,onClose:()=>n(null),title:t?(0,V.jsxs)(u,{gap:`xs`,children:[(0,V.jsxs)(C,{fw:700,children:[`Zone « `,t.name,` »`]}),(0,V.jsx)(U,{security:t.security})]}):``,centered:!0,size:`lg`,children:t&&(0,V.jsxs)(f,{gap:`sm`,children:[(0,V.jsx)(q,{k:`Pattern d'URL`,children:(0,V.jsx)(b,{children:t.pattern})}),(0,V.jsx)(q,{k:`Hôte / vhost`,children:t.host?(0,V.jsx)(b,{children:t.host}):(0,V.jsx)(C,{size:`sm`,c:`dimmed`,children:`tous domaines`})}),(0,V.jsx)(q,{k:`Accès`,children:(0,V.jsx)(U,{security:t.security})}),(0,V.jsx)(q,{k:`Mode de chaîne`,children:(0,V.jsx)(G,{mode:t.mode})}),(0,V.jsx)(q,{k:`Stratégie d'identité`,children:(0,V.jsx)(W,{stateless:t.stateless})}),(0,V.jsx)(q,{k:`Anonyme autorisé`,children:(0,V.jsx)(S,{variant:`light`,color:t.allowsAnonymous?`orange`:`gray`,style:{textTransform:`none`},children:t.allowsAnonymous?`oui (explicite)`:`non`})}),(0,V.jsx)(q,{k:`Frames WebSocket`,children:(0,V.jsx)(S,{variant:`dot`,color:t.realtime?`teal`:`gray`,style:{textTransform:`none`},children:t.realtime?`gouvernées`:`exclues (HTTP only)`})}),(0,V.jsx)(q,{k:`Authenticators`,children:(0,V.jsx)(J,{names:t.authenticators})}),(0,V.jsx)(w,{variant:`light`,color:`gray`,icon:(0,V.jsx)(v,{size:16}),mt:`xs`,children:(0,V.jsxs)(C,{size:`xs`,children:[`Ordre d'exécution : les authenticators sont essayés dans l'ordre listé. En mode `,(0,V.jsx)(b,{children:`first`}),`, le premier qui reconnaît la requête authentifie ; en mode `,(0,V.jsx)(b,{children:`all`}),`, tous doivent passer (le dernier porte l'identité).`]})})]})})]})}function Y({k:e,children:t}){return(0,V.jsxs)(u,{justify:`space-between`,wrap:`nowrap`,gap:`md`,align:`flex-start`,children:[(0,V.jsx)(C,{size:`sm`,c:`dimmed`,style:{flexShrink:0},children:e}),(0,V.jsx)(m,{style:{textAlign:`right`,minWidth:0},children:t})]})}function X({children:e}){return(0,V.jsx)(C,{size:`sm`,style:{wordBreak:`break-word`},children:e})}function Z({items:e}){return e.length===0?(0,V.jsx)(C,{size:`sm`,c:`dimmed`,fs:`italic`,children:`aucune`}):(0,V.jsx)(u,{gap:4,justify:`flex-end`,wrap:`wrap`,children:e.map(e=>(0,V.jsx)(b,{children:e},e))})}function Q({icon:e,title:n,enabled:r,doc:i,children:a}){return(0,V.jsx)(t.Col,{span:{base:12,md:6},children:(0,V.jsxs)(g,{withBorder:!0,radius:`md`,p:`lg`,h:`100%`,children:[(0,V.jsxs)(u,{justify:`space-between`,wrap:`nowrap`,mb:`sm`,children:[(0,V.jsxs)(u,{gap:`xs`,wrap:`nowrap`,children:[(0,V.jsx)(d,{variant:`light`,color:r?`teal`:`gray`,radius:`sm`,children:e}),(0,V.jsx)(C,{fw:700,children:n}),(0,V.jsx)(o,{title:n,version:L,summary:i.summary,sections:i.sections})]}),(0,V.jsx)(H,{on:r})]}),(0,V.jsx)(f,{gap:6,style:{opacity:r?1:.55},children:a})]})})}function De({defenses:e}){if(!e)return(0,V.jsx)(w,{variant:`light`,color:`red`,icon:(0,V.jsx)(v,{size:18}),title:`Défenses indisponibles`,children:`La configuration de sécurité est invalide au boot — le firewall est fail-closed (toutes les requêtes rejetées). Corrigez la config pour que les défenses se résolvent.`});let{csrf:n,cors:r,headers:i,rateLimit:a}=e;return(0,V.jsxs)(t,{children:[(0,V.jsxs)(Q,{icon:(0,V.jsx)(A,{size:18}),title:`CSRF`,enabled:n.enabled,doc:{summary:`Protège des requêtes forgées cross-site. Défense primaire = Fetch Metadata (Sec-Fetch-Site, infalsifiable), repli Origin/Referer.`,sections:[{label:`Synchronizer token`,body:`« Armé » = @CsrfProtect dispose d'un secret HMAC (config en prod, éphémère en dev). La VALEUR du secret n'est jamais exposée.`}]},children:[(0,V.jsx)(Y,{k:`Fetch Metadata`,children:(0,V.jsx)(H,{on:n.fetchMetadata})}),(0,V.jsx)(Y,{k:`Repli Origin/Referer`,children:(0,V.jsx)(H,{on:n.checkOrigin})}),(0,V.jsx)(Y,{k:`Strict same-origin`,children:(0,V.jsx)(H,{on:n.strictSameSite,onLabel:`Strict`,offLabel:`Tolérant`})}),(0,V.jsx)(Y,{k:`Cookie SameSite`,children:(0,V.jsx)(b,{children:n.sameSite})}),(0,V.jsx)(Y,{k:`Synchronizer token`,children:(0,V.jsx)(H,{on:n.synchronizerToken,onLabel:`Armé`,offLabel:`Inactif`})}),(0,V.jsx)(Y,{k:`Origines de confiance`,children:(0,V.jsx)(Z,{items:n.trustedOrigins})})]}),(0,V.jsxs)(Q,{icon:(0,V.jsx)(de,{size:18}),title:`CORS`,enabled:r.enabled,doc:{summary:"Cross-Origin Resource Sharing : quelles origines tierces peuvent lire les réponses. `*` + credentials est interdit au boot (OWASP).",sections:[{label:`Credentials`,body:`« Activé » = cookies cross-origin autorisés (exige une whitelist d'origines explicite).`}]},children:[(0,V.jsx)(Y,{k:`Origines autorisées`,children:(0,V.jsx)(Z,{items:r.origins})}),(0,V.jsx)(Y,{k:`Credentials`,children:(0,V.jsx)(H,{on:r.credentials})}),(0,V.jsx)(Y,{k:`Méthodes`,children:(0,V.jsx)(X,{children:r.methods.join(`, `)})}),(0,V.jsx)(Y,{k:`En-têtes autorisés`,children:(0,V.jsx)(X,{children:r.allowedHeaders.join(`, `)})}),(0,V.jsx)(Y,{k:`Cache préflight`,children:(0,V.jsxs)(b,{children:[r.maxAgeS,`s`]})})]}),(0,V.jsxs)(Q,{icon:(0,V.jsx)(R,{size:18}),title:`En-têtes de sécurité`,enabled:i.enabled,doc:{summary:`CSP, Referrer-Policy, isolation cross-origin (COOP/COEP/CORP)… Le socle transport (HSTS/nosniff/frameguard) est posé par @nodefony/http.`,sections:[{label:`CSP`,body:`Politique « secure-but-usable » : seul script-src est strict (self + nonce par requête = défense XSS). Le {{nonce}} est substitué à chaque requête.`}]},children:[(0,V.jsx)(Y,{k:`HSTS (transport)`,children:(0,V.jsx)(H,{on:i.hsts})}),(0,V.jsx)(Y,{k:`Nonce CSP / requête`,children:(0,V.jsx)(H,{on:i.cspNonces})}),(0,V.jsx)(Y,{k:`Frameguard`,children:(0,V.jsx)(b,{children:i.frameguard})}),(0,V.jsx)(Y,{k:`nosniff (transport)`,children:(0,V.jsx)(H,{on:i.noSniff})}),(0,V.jsx)(Y,{k:`Referrer-Policy`,children:(0,V.jsx)(b,{children:i.referrerPolicy})}),(0,V.jsxs)(m,{children:[(0,V.jsx)(C,{size:`sm`,c:`dimmed`,mb:4,children:`Content-Security-Policy`}),(0,V.jsx)(s.Autosize,{mah:110,children:(0,V.jsx)(b,{block:!0,style:{fontSize:11,whiteSpace:`pre-wrap`},children:i.csp})})]})]}),(0,V.jsxs)(Q,{icon:(0,V.jsx)(Se,{size:18}),title:`Throttle de login`,enabled:a.enabled,doc:{summary:`Backoff progressif par identifiant (NIST SP 800-63B) : pas de verrouillage dur (qui offrirait un déni de service gratuit sur le compte victime). Bloqué → 429 + Retry-After.`,sections:[]},children:[(0,V.jsx)(Y,{k:`Essais libres`,children:(0,V.jsx)(b,{children:a.freeAttempts})}),(0,V.jsx)(Y,{k:`Délai initial`,children:(0,V.jsxs)(b,{children:[a.baseDelayS,`s`]})}),(0,V.jsx)(Y,{k:`Plafond du délai`,children:(0,V.jsxs)(b,{children:[a.capDelayS,`s`]})})]})]})}var Oe=k(()=>{let e=T(),n=(0,B.useCallback)(async()=>{try{return await e.api.getAbsolute(ve)}catch(e){throw Error(P(e),{cause:e})}},[e]),{data:i,loading:a,error:s,reload:l}=N(n),p=i?.roles??[];return(0,V.jsxs)(f,{gap:`md`,children:[(0,V.jsxs)(u,{gap:`xs`,children:[(0,V.jsxs)(C,{size:`sm`,c:`dimmed`,children:[p.length,` rôle(s) avec héritage déclaré.`]}),(0,V.jsx)(o,{title:`Hiérarchie de rôles`,version:L,summary:`Niveau A de l'autorisation : un rôle hérite des droits des rôles listés. La résolution est transitive et précalculée au boot (cycles détectés → erreur).`,sections:[{label:`Comment lire`,body:`« ROLE_ADMIN → ROLE_USER, ROLE_X » signifie qu'un porteur de ROLE_ADMIN satisfait aussi toute exigence de ROLE_USER ou ROLE_X (héritage résolu).`},{label:`Si vide`,body:`Aucun héritage déclaré : chaque rôle ne couvre que lui-même. Déclaration via defineSecurityConfig({ roleHierarchy }).`}]})]}),(0,V.jsxs)(c,{loading:a&&!i,error:s,empty:!a&&p.length===0,emptyMessage:`Aucune hiérarchie de rôles déclarée.`,onRetry:l,children:[(0,V.jsx)(t,{children:p.map(e=>(0,V.jsx)(t.Col,{span:{base:12,md:6},children:(0,V.jsxs)(g,{withBorder:!0,radius:`md`,p:`md`,h:`100%`,children:[(0,V.jsxs)(u,{gap:`xs`,wrap:`nowrap`,mb:`xs`,children:[(0,V.jsx)(d,{variant:`light`,color:`indigo`,radius:`sm`,size:`sm`,children:(0,V.jsx)(O,{size:15})}),(0,V.jsx)(b,{style:{fontWeight:700},children:e.role})]}),e.inherits.length===0?(0,V.jsx)(C,{size:`sm`,c:`dimmed`,fs:`italic`,children:`n'hérite d'aucun autre rôle`}):(0,V.jsxs)(u,{gap:6,align:`center`,wrap:`wrap`,children:[(0,V.jsx)(d,{variant:`subtle`,color:`gray`,size:`sm`,children:(0,V.jsx)(r,{size:14})}),e.inherits.map(e=>(0,V.jsx)(S,{variant:`light`,color:`indigo`,style:{textTransform:`none`},children:e},e))]})]})},e.role))}),(0,V.jsx)(w,{variant:`light`,color:`gray`,icon:(0,V.jsx)(v,{size:16}),mt:`xs`,children:(0,V.jsxs)(C,{size:`xs`,children:[`Le dispatch d'autorisation route `,(0,V.jsx)(b,{children:`ROLE_*`}),` vers cette hiérarchie, `,(0,V.jsx)(b,{children:`PERM_*`}),` vers le RBAC ORM, et le reste vers les voters (P6.8). Cette vue couvre le niveau A (rôles).`]})})]})]})}),ke=[{value:`24h`,label:`24 h`},{value:`7d`,label:`7 j`},{value:`all`,label:`Tout`}],Ae=k(()=>{let e=T(),[n,r]=(0,B.useState)(`7d`),i=(0,B.useCallback)(async()=>{let t=_e(n,Date.now()),r=t===void 0?``:`&since=${t}`,i=(e,t)=>`${xe}?category=auth&outcome=${e}&limit=${t}${r}`;try{let[t,n,r]=await Promise.all([e.api.getAbsolute(i(`success`,1)),e.api.getAbsolute(i(`failure`,1)),e.api.getAbsolute(i(`denied`,20))]);return{success:t.total??0,failure:n.total??0,denied:r.total??0,recentDenied:r.items}}catch(e){throw Error(P(e),{cause:e})}},[e,n]),{data:s,loading:l,error:d,reload:m}=N(i);return(0,V.jsxs)(f,{gap:`md`,children:[(0,V.jsxs)(u,{justify:`space-between`,wrap:`wrap`,children:[(0,V.jsxs)(u,{gap:`xs`,children:[(0,V.jsx)(C,{size:`sm`,c:`dimmed`,children:`Événements d'authentification sur la période.`}),(0,V.jsx)(o,{title:`Statistiques d'authentification`,version:L,summary:`Dérivées du journal d'audit de sécurité (catégorie « auth »). La boucle se referme : ce que le firewall journalise alimente ces compteurs.`,sections:[{label:`Issues`,body:`Réussites = login validé. Échecs = preuve présentée mais invalide (mot de passe, signature). Refus = Zero Trust (aucune preuve dans une zone protégée).`},{label:`Exactitude`,body:`Les compteurs sont comptés côté serveur (total exact par filtre, pas un échantillon).`}]})]}),(0,V.jsxs)(u,{gap:`sm`,children:[(0,V.jsx)(a,{size:`xs`,value:n,onChange:e=>r(e),data:ke}),(0,V.jsx)(x,{component:ge,to:`/nodefony/audit`,variant:`subtle`,size:`xs`,leftSection:(0,V.jsx)(fe,{size:15}),children:`Journal complet`})]})]}),(0,V.jsxs)(c,{loading:l&&!s,error:d,onRetry:m,children:[(0,V.jsxs)(t,{children:[(0,V.jsx)(p,{label:`Réussites`,icon:(0,V.jsx)(_,{size:20,color:`var(--mantine-color-teal-6)`}),hint:`Authentifications réussies (login validé) sur la période.`,span:{base:12,sm:4},children:(0,V.jsx)(C,{fz:30,fw:700,c:`teal`,style:{fontVariantNumeric:`tabular-nums`},children:s?.success??`—`})}),(0,V.jsx)(p,{label:`Échecs`,icon:(0,V.jsx)(M,{size:20,color:`var(--mantine-color-orange-6)`}),hint:`Credential présenté mais invalide (mot de passe/signature erroné).`,span:{base:12,sm:4},children:(0,V.jsx)(C,{fz:30,fw:700,c:`orange`,style:{fontVariantNumeric:`tabular-nums`},children:s?.failure??`—`})}),(0,V.jsx)(p,{label:`Refus (Zero Trust)`,icon:(0,V.jsx)(oe,{size:20,color:`var(--mantine-color-red-6)`}),hint:`Aucune preuve présentée dans une zone protégée — le signal d'alerte de l'auditeur.`,span:{base:12,sm:4},children:(0,V.jsx)(C,{fz:30,fw:700,c:`red`,style:{fontVariantNumeric:`tabular-nums`},children:s?.denied??`—`})})]}),(0,V.jsxs)(f,{gap:`xs`,mt:`md`,children:[(0,V.jsxs)(C,{fw:600,size:`sm`,children:[`Derniers refus (`,ce(`denied`).toLowerCase(),`)`]}),s&&s.recentDenied.length===0?(0,V.jsx)(w,{variant:`light`,color:`teal`,icon:(0,V.jsx)(v,{size:18}),children:`Aucun refus d'authentification sur la période — rien à signaler.`}):(0,V.jsx)(y,{mode:`client`,data:s?.recentDenied??[],columns:[{key:`ts`,header:`Heure`,value:e=>e.ts,render:e=>(0,V.jsx)(le,{ts:e.ts}),size:95},{key:`action`,header:`Action`,value:e=>e.action,render:e=>(0,V.jsx)(C,{size:`sm`,ff:`monospace`,children:e.action}),size:160},{key:`outcome`,header:`Issue`,value:e=>e.outcome,render:e=>(0,V.jsx)(se,{outcome:e.outcome}),size:110},{key:`actor`,header:`Acteur`,value:e=>e.actor??`anonyme`,render:e=>(0,V.jsx)(ue,{actor:e.actor}),size:150},{key:`reason`,header:`Raison`,value:e=>e.reason??``,render:e=>(0,V.jsx)(C,{size:`sm`,ff:`monospace`,c:e.reason?void 0:`dimmed`,children:e.reason??`—`}),size:160},{key:`resource`,header:`Zone / ressource`,value:e=>e.resource??``,render:e=>(0,V.jsx)(C,{size:`sm`,c:e.resource?void 0:`dimmed`,children:e.resource??`—`}),size:150}],getRowId:e=>e.id,initialSort:{key:`ts`,dir:`desc`},pageSize:10,height:360,emptyMessage:`Aucun refus.`})]})]})]})});function je({authenticators:e}){return(0,V.jsxs)(f,{gap:`md`,children:[(0,V.jsxs)(u,{gap:`xs`,children:[(0,V.jsxs)(C,{size:`sm`,c:`dimmed`,children:[e.filter(e=>e.mounted).length,` monté(s) sur`,` `,e.length,` disponible(s).`]}),(0,V.jsx)(o,{title:`Authenticators`,version:L,summary:`Une façon de prouver son identité (pattern IAuthenticator). « Monté » = référencé par ≥1 zone (actif sur le pipeline) ; « Disponible » = utilisable en config mais non référencé.`,sections:[{label:`Challenge`,body:`Un authenticator « avec challenge » fournit l'en-tête WWW-Authenticate (RFC 7235) du 401 de sa zone.`}]})]}),(0,V.jsx)(t,{children:e.map(e=>(0,V.jsx)(t.Col,{span:{base:12,sm:6,lg:4},children:(0,V.jsxs)(g,{withBorder:!0,radius:`md`,p:`md`,h:`100%`,style:{opacity:e.mounted?1:.7},children:[(0,V.jsxs)(u,{justify:`space-between`,wrap:`nowrap`,mb:6,children:[(0,V.jsx)(K,{name:e.name}),(0,V.jsx)(Te,{mounted:e.mounted})]}),(0,V.jsx)(C,{size:`xs`,c:`dimmed`,children:I[e.name]?.blurb??`Authenticator enregistré (plugin).`}),e.challenge&&(0,V.jsx)(S,{mt:`xs`,size:`xs`,variant:`outline`,color:`gray`,style:{textTransform:`none`},children:`challenge WWW-Authenticate`})]})},e.name))})]})}var $=k(()=>{let e=T(),[r,i]=(0,B.useState)(`zones`),a=(0,B.useCallback)(async()=>{try{return await e.api.getAbsolute(F)}catch(e){throw Error(P(e),{cause:e})}},[e]),{data:o,loading:s,error:l,reload:d}=N(a),f=(0,B.useMemo)(()=>{let e=o?.zones??[];return{zones:e.length,protected:e.filter(e=>e.security).length,mounted:(o?.authenticators??[]).filter(e=>e.mounted).length,defenses:ye(o?.defenses??null)}},[o]),m=o?.configValid??!0,h=o?`${f.zones} zone(s) · ${f.mounted} authenticator(s) monté(s) · ${f.defenses}/4 défenses actives`:`Introspection du firewall`;return(0,V.jsx)(ie,{title:`Firewall`,subtitle:h,icon:(0,V.jsx)(A,{size:26}),actions:(0,V.jsxs)(u,{gap:`sm`,wrap:`nowrap`,children:[o&&(0,V.jsx)(S,{size:`lg`,variant:`light`,color:m?`teal`:`red`,leftSection:m?(0,V.jsx)(j,{size:14}):(0,V.jsx)(E,{size:14}),style:{textTransform:`none`},children:m?`Config valide`:`Fail-closed`}),(0,V.jsx)(x,{variant:`light`,leftSection:(0,V.jsx)(te,{size:16}),loading:s,onClick:d,children:`Recharger`})]}),children:(0,V.jsx)(c,{loading:s&&!o,error:l,onRetry:d,children:o&&(0,V.jsxs)(V.Fragment,{children:[!m&&(0,V.jsx)(w,{variant:`light`,color:`red`,icon:(0,V.jsx)(ae,{size:18}),title:`Firewall fail-closed — configuration invalide`,children:o.configError??`La configuration de sécurité est invalide : toutes les requêtes sont rejetées (401) jusqu'à correction.`}),(0,V.jsxs)(t,{children:[(0,V.jsx)(p,{label:`Zones`,icon:(0,V.jsx)(D,{size:20,color:`var(--mantine-color-brand-5)`}),hint:`Zones de sécurité montées (patterns d'URL capturés par le firewall).`,children:(0,V.jsx)(C,{fz:28,fw:700,style:{fontVariantNumeric:`tabular-nums`},children:f.zones})}),(0,V.jsx)(p,{label:`Zones protégées`,icon:(0,V.jsx)(A,{size:20,color:`var(--mantine-color-teal-6)`}),hint:`Zones en Zero Trust (preuve d'identité requise, 401 sinon). Les autres sont publiques explicites.`,children:(0,V.jsx)(C,{fz:28,fw:700,c:`teal`,style:{fontVariantNumeric:`tabular-nums`},children:f.protected})}),(0,V.jsx)(p,{label:`Authenticators montés`,icon:(0,V.jsx)(z,{size:20,color:`var(--mantine-color-grape-6)`}),hint:`Authenticators instanciés car référencés par ≥1 zone (actifs sur le pipeline).`,children:(0,V.jsx)(C,{fz:28,fw:700,c:`grape`,style:{fontVariantNumeric:`tabular-nums`},children:f.mounted})}),(0,V.jsx)(p,{label:`Défenses actives`,icon:(0,V.jsx)(j,{size:20,color:`var(--mantine-color-blue-6)`}),hint:`Défenses transverses activées sur 4 : CSRF, CORS, en-têtes de sécurité, throttle de login.`,children:(0,V.jsxs)(C,{fz:28,fw:700,c:`blue`,style:{fontVariantNumeric:`tabular-nums`},children:[f.defenses,(0,V.jsxs)(C,{span:!0,fz:16,c:`dimmed`,children:[` `,`/ 4`]})]})})]}),(0,V.jsxs)(n,{value:r,onChange:e=>e&&i(e),mt:`xs`,children:[(0,V.jsxs)(n.List,{children:[(0,V.jsx)(n.Tab,{value:`zones`,leftSection:(0,V.jsx)(D,{size:15}),children:`Zones`}),(0,V.jsx)(n.Tab,{value:`authenticators`,leftSection:(0,V.jsx)(z,{size:15}),children:`Authenticators`}),(0,V.jsx)(n.Tab,{value:`defenses`,leftSection:(0,V.jsx)(j,{size:15}),children:`Défenses`}),(0,V.jsx)(n.Tab,{value:`roles`,leftSection:(0,V.jsx)(O,{size:15}),children:`Rôles`}),(0,V.jsx)(n.Tab,{value:`stats`,leftSection:(0,V.jsx)(he,{size:15}),children:`Statistiques`})]}),(0,V.jsx)(n.Panel,{value:`zones`,pt:`md`,children:(0,V.jsx)(Ee,{zones:o.zones})}),(0,V.jsx)(n.Panel,{value:`authenticators`,pt:`md`,children:(0,V.jsx)(je,{authenticators:o.authenticators})}),(0,V.jsx)(n.Panel,{value:`defenses`,pt:`md`,children:(0,V.jsx)(De,{defenses:o.defenses})}),(0,V.jsx)(n.Panel,{value:`roles`,pt:`md`,children:r===`roles`&&(0,V.jsx)(Oe,{})}),(0,V.jsx)(n.Panel,{value:`stats`,pt:`md`,children:r===`stats`&&(0,V.jsx)(Ae,{})})]})]})})})});export{$ as Firewall,$ as default};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`adjustments`,`Adjustments`,[[`path`,{d:`M4 10a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-0`}],[`path`,{d:`M6 4v4`,key:`svg-1`}],[`path`,{d:`M6 12v8`,key:`svg-2`}],[`path`,{d:`M10 16a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-3`}],[`path`,{d:`M12 4v10`,key:`svg-4`}],[`path`,{d:`M12 18v2`,key:`svg-5`}],[`path`,{d:`M16 7a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-6`}],[`path`,{d:`M18 4v1`,key:`svg-7`}],[`path`,{d:`M18 9v11`,key:`svg-8`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`adjustments-horizontal`,`AdjustmentsHorizontal`,[[`path`,{d:`M12 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-0`}],[`path`,{d:`M4 6l8 0`,key:`svg-1`}],[`path`,{d:`M16 6l4 0`,key:`svg-2`}],[`path`,{d:`M6 12a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-3`}],[`path`,{d:`M4 12l2 0`,key:`svg-4`}],[`path`,{d:`M10 12l10 0`,key:`svg-5`}],[`path`,{d:`M15 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-6`}],[`path`,{d:`M4 18l11 0`,key:`svg-7`}],[`path`,{d:`M19 18l1 0`,key:`svg-8`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`apps`,`Apps`,[[`path`,{d:`M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-0`}],[`path`,{d:`M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-1`}],[`path`,{d:`M14 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-2`}],[`path`,{d:`M14 7l6 0`,key:`svg-3`}],[`path`,{d:`M17 4l0 6`,key:`svg-4`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`arrow-down`,`ArrowDown`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 13l-6 6`,key:`svg-1`}],[`path`,{d:`M6 13l6 6`,key:`svg-2`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`arrow-left`,`ArrowLeft`,[[`path`,{d:`M5 12l14 0`,key:`svg-0`}],[`path`,{d:`M5 12l6 6`,key:`svg-1`}],[`path`,{d:`M5 12l6 -6`,key:`svg-2`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`arrow-up`,`ArrowUp`,[[`path`,{d:`M12 5l0 14`,key:`svg-0`}],[`path`,{d:`M18 11l-6 -6`,key:`svg-1`}],[`path`,{d:`M6 11l6 -6`,key:`svg-2`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`arrows-split-2`,`ArrowsSplit2`,[[`path`,{d:`M21 17h-5.397a5 5 0 0 1 -4.096 -2.133l-.514 -.734a5 5 0 0 0 -4.096 -2.133h-3.897`,key:`svg-0`}],[`path`,{d:`M21 7h-5.395a5 5 0 0 0 -4.098 2.135l-.51 .73a5 5 0 0 1 -4.097 2.135h-3.9`,key:`svg-1`}],[`path`,{d:`M18 10l3 -3l-3 -3`,key:`svg-2`}],[`path`,{d:`M18 20l3 -3l-3 -3`,key:`svg-3`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.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-Cftpc0m_.js";var t=e(`outline`,`book`,`Book`,[[`path`,{d:`M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-0`}],[`path`,{d:`M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0`,key:`svg-1`}],[`path`,{d:`M3 6l0 13`,key:`svg-2`}],[`path`,{d:`M12 6l0 13`,key:`svg-3`}],[`path`,{d:`M21 6l0 13`,key:`svg-4`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`circle-check`,`CircleCheck`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-0`}],[`path`,{d:`M9 12l2 2l4 -4`,key:`svg-1`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`circle-dot`,`CircleDot`,[[`path`,{d:`M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-1`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.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-Cftpc0m_.js";var t=e(`outline`,`code`,`Code`,[[`path`,{d:`M7 8l-4 4l4 4`,key:`svg-0`}],[`path`,{d:`M17 8l4 4l-4 4`,key:`svg-1`}],[`path`,{d:`M14 4l-4 16`,key:`svg-2`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`device-desktop`,`DeviceDesktop`,[[`path`,{d:`M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10`,key:`svg-0`}],[`path`,{d:`M7 20h10`,key:`svg-1`}],[`path`,{d:`M9 16v4`,key:`svg-2`}],[`path`,{d:`M15 16v4`,key:`svg-3`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`dots`,`Dots`,[[`path`,{d:`M4 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-0`}],[`path`,{d:`M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-1`}],[`path`,{d:`M18 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`,key:`svg-2`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`download`,`Download`,[[`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2`,key:`svg-0`}],[`path`,{d:`M7 11l5 5l5 -5`,key:`svg-1`}],[`path`,{d:`M12 4l0 12`,key:`svg-2`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`eye`,`Eye`,[[`path`,{d:`M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0`,key:`svg-0`}],[`path`,{d:`M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6`,key:`svg-1`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`file`,`File`,[[`path`,{d:`M14 3v4a1 1 0 0 0 1 1h4`,key:`svg-0`}],[`path`,{d:`M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2`,key:`svg-1`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`folder`,`Folder`,[[`path`,{d:`M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2`,key:`svg-0`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`git-branch`,`GitBranch`,[[`path`,{d:`M5 18a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-0`}],[`path`,{d:`M5 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-1`}],[`path`,{d:`M15 6a2 2 0 1 0 4 0a2 2 0 1 0 -4 0`,key:`svg-2`}],[`path`,{d:`M7 8l0 8`,key:`svg-3`}],[`path`,{d:`M9 18h6a2 2 0 0 0 2 -2v-5`,key:`svg-4`}],[`path`,{d:`M14 14l3 -3l3 3`,key:`svg-5`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`heart-rate-monitor`,`HeartRateMonitor`,[[`path`,{d:`M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1l0 -10`,key:`svg-0`}],[`path`,{d:`M7 20h10`,key:`svg-1`}],[`path`,{d:`M9 16v4`,key:`svg-2`}],[`path`,{d:`M15 16v4`,key:`svg-3`}],[`path`,{d:`M7 10h2l2 3l2 -6l1 3h3`,key:`svg-4`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`help-circle`,`HelpCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 16v.01`,key:`svg-1`}],[`path`,{d:`M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483`,key:`svg-2`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`layout-grid`,`LayoutGrid`,[[`path`,{d:`M4 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-0`}],[`path`,{d:`M14 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-1`}],[`path`,{d:`M4 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-2`}],[`path`,{d:`M14 15a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -4`,key:`svg-3`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`app-window`,`AppWindow`,[[`path`,{d:`M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10`,key:`svg-0`}],[`path`,{d:`M6 8h.01`,key:`svg-1`}],[`path`,{d:`M9 8h.01`,key:`svg-2`}]]),n=e(`outline`,`packages`,`Packages`,[[`path`,{d:`M7 16.5l-5 -3l5 -3l5 3v5.5l-5 3l0 -5.5`,key:`svg-0`}],[`path`,{d:`M2 13.5v5.5l5 3`,key:`svg-1`}],[`path`,{d:`M7 16.545l5 -3.03`,key:`svg-2`}],[`path`,{d:`M17 16.5l-5 -3l5 -3l5 3v5.5l-5 3l0 -5.5`,key:`svg-3`}],[`path`,{d:`M12 19l5 3`,key:`svg-4`}],[`path`,{d:`M17 16.5l5 -3`,key:`svg-5`}],[`path`,{d:`M12 13.5v-5.5l-5 -3l5 -3l5 3v5.5`,key:`svg-6`}],[`path`,{d:`M7 5.03v5.455`,key:`svg-7`}],[`path`,{d:`M12 8l5 -3`,key:`svg-8`}]]);export{t as n,n as t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`pencil`,`Pencil`,[[`path`,{d:`M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`,key:`svg-0`}],[`path`,{d:`M13.5 6.5l4 4`,key:`svg-1`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`player-pause`,`PlayerPause`,[[`path`,{d:`M6 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12`,key:`svg-0`}],[`path`,{d:`M14 6a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -12`,key:`svg-1`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.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-Cftpc0m_.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{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`puzzle`,`Puzzle`,[[`path`,{d:`M4 7h3a1 1 0 0 0 1 -1v-1a2 2 0 0 1 4 0v1a1 1 0 0 0 1 1h3a1 1 0 0 1 1 1v3a1 1 0 0 0 1 1h1a2 2 0 0 1 0 4h-1a1 1 0 0 0 -1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-1a2 2 0 0 0 -4 0v1a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h1a2 2 0 0 0 0 -4h-1a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1`,key:`svg-0`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`box-multiple`,`BoxMultiple`,[[`path`,{d:`M7 5a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -10`,key:`svg-0`}],[`path`,{d:`M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2`,key:`svg-1`}]]),n=e(`outline`,`recycle`,`Recycle`,[[`path`,{d:`M12 17l-2 2l2 2`,key:`svg-0`}],[`path`,{d:`M10 19h9a2 2 0 0 0 1.75 -2.75l-.55 -1`,key:`svg-1`}],[`path`,{d:`M8.536 11l-.732 -2.732l-2.732 .732`,key:`svg-2`}],[`path`,{d:`M7.804 8.268l-4.5 7.794a2 2 0 0 0 1.506 2.89l1.141 .024`,key:`svg-3`}],[`path`,{d:`M15.464 11l2.732 .732l.732 -2.732`,key:`svg-4`}],[`path`,{d:`M18.196 11.732l-4.5 -7.794a2 2 0 0 0 -3.256 -.14l-.591 .976`,key:`svg-5`}]]);export{t as n,n as t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`send`,`Send`,[[`path`,{d:`M10 14l11 -11`,key:`svg-0`}],[`path`,{d:`M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5`,key:`svg-1`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`server-2`,`Server2`,[[`path`,{d:`M3 7a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-2`,key:`svg-0`}],[`path`,{d:`M3 15a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v2a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3l0 -2`,key:`svg-1`}],[`path`,{d:`M7 8l0 .01`,key:`svg-2`}],[`path`,{d:`M7 16l0 .01`,key:`svg-3`}],[`path`,{d:`M11 8h6`,key:`svg-4`}],[`path`,{d:`M11 16h6`,key:`svg-5`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`shield-off`,`ShieldOff`,[[`path`,{d:`M17.67 17.667a12 12 0 0 1 -5.67 3.333a12 12 0 0 1 -8.5 -15c.794 .036 1.583 -.006 2.357 -.124m3.128 -.926a11.997 11.997 0 0 0 3.015 -1.95a12 12 0 0 0 8.5 3a12 12 0 0 1 -1.116 9.376`,key:`svg-0`}],[`path`,{d:`M3 3l18 18`,key:`svg-1`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`sitemap`,`Sitemap`,[[`path`,{d:`M3 17a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2`,key:`svg-0`}],[`path`,{d:`M15 17a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2`,key:`svg-1`}],[`path`,{d:`M9 5a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2`,key:`svg-2`}],[`path`,{d:`M6 15v-1a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v1`,key:`svg-3`}],[`path`,{d:`M12 9l0 3`,key:`svg-4`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`stack-2`,`Stack2`,[[`path`,{d:`M12 4l-8 4l8 4l8 -4l-8 -4`,key:`svg-0`}],[`path`,{d:`M4 12l8 4l8 -4`,key:`svg-1`}],[`path`,{d:`M4 16l8 4l8 -4`,key:`svg-2`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`terminal-2`,`Terminal2`,[[`path`,{d:`M8 9l3 3l-3 3`,key:`svg-0`}],[`path`,{d:`M13 15l3 0`,key:`svg-1`}],[`path`,{d:`M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2l0 -12`,key:`svg-2`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`building-community`,`BuildingCommunity`,[[`path`,{d:`M8 9l5 5v7h-5v-4m0 4h-5v-7l5 -5m1 1v-6a1 1 0 0 1 1 -1h10a1 1 0 0 1 1 1v17h-8`,key:`svg-0`}],[`path`,{d:`M13 7l0 .01`,key:`svg-1`}],[`path`,{d:`M17 7l0 .01`,key:`svg-2`}],[`path`,{d:`M17 11l0 .01`,key:`svg-3`}],[`path`,{d:`M17 15l0 .01`,key:`svg-4`}]]),n=e(`outline`,`user-check`,`UserCheck`,[[`path`,{d:`M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0`,key:`svg-0`}],[`path`,{d:`M6 21v-2a4 4 0 0 1 4 -4h4`,key:`svg-1`}],[`path`,{d:`M15 19l2 2l4 -4`,key:`svg-2`}]]),r=e(`outline`,`user-off`,`UserOff`,[[`path`,{d:`M8.18 8.189a4.01 4.01 0 0 0 2.616 2.627m3.507 -.545a4 4 0 1 0 -5.59 -5.552`,key:`svg-0`}],[`path`,{d:`M6 21v-2a4 4 0 0 1 4 -4h4c.412 0 .81 .062 1.183 .178m2.633 2.618c.12 .38 .184 .785 .184 1.204v2`,key:`svg-1`}],[`path`,{d:`M3 3l18 18`,key:`svg-2`}]]);export{n,t as r,r as t};
@@ -1 +0,0 @@
1
- import{Et as e}from"./ui-Cftpc0m_.js";var t=e(`outline`,`world`,`World`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M3.6 9h16.8`,key:`svg-1`}],[`path`,{d:`M3.6 15h16.8`,key:`svg-2`}],[`path`,{d:`M11.5 3a17 17 0 0 0 0 18`,key:`svg-3`}],[`path`,{d:`M12.5 3a17 17 0 0 1 0 18`,key:`svg-4`}]]);export{t};
@@ -1 +0,0 @@
1
- import{Hr as e,Kn as t,Kr as n,Ur as r,Wn as i,Xr as a,er as o,nr as s,or as c,wr as l}from"./ui-Cftpc0m_.js";var[u,d]=a(`List component was not found in tree`),f={root:`m_abbac491`,item:`m_abb6bec2`,itemWrapper:`m_75cd9f71`,itemIcon:`m_60f83e5b`},p=c(),m=t(e=>{let{classNames:t,className:n,style:r,styles:a,vars:o,icon:c,children:l,mod:u,...f}=s(`ListItem`,null,e),m=d(),h=c||m.icon,g={classNames:t,styles:a};return(0,p.jsx)(i,{...m.getStyles(`item`,{...g,className:n,style:r}),component:`li`,mod:[{"with-icon":!!h,centered:m.center},u],...f,children:(0,p.jsxs)(`div`,{...m.getStyles(`itemWrapper`,g),children:[h&&(0,p.jsx)(`span`,{...m.getStyles(`itemIcon`,g),children:h}),(0,p.jsx)(`span`,{...m.getStyles(`itemLabel`,g),children:l})]})})});m.classes=f,m.displayName=`@mantine/core/ListItem`;var h={type:`unordered`},g=l((t,{size:i,spacing:a})=>({root:{"--list-fz":e(i),"--list-lh":r(i),"--list-spacing":n(a)}})),_=t(e=>{let t=s(`List`,h,e),{classNames:n,className:r,style:a,styles:c,unstyled:l,vars:d,children:m,type:_,withPadding:v,icon:y,spacing:b,center:x,listStyleType:S,mod:C,attributes:w,...T}=t,E=o({name:`List`,classes:f,props:t,className:r,style:a,classNames:n,styles:c,unstyled:l,attributes:w,vars:d,varsResolver:g});return(0,p.jsx)(u,{value:{center:x,icon:y,getStyles:E},children:(0,p.jsx)(i,{...E(`root`,{style:{listStyleType:S}}),component:_===`unordered`?`ul`:`ol`,mod:[{"with-padding":v,type:y?`none`:S},C],...T,children:m})})});_.classes=f,_.varsResolver=g,_.displayName=`@mantine/core/List`,_.Item=m;export{_ as t};
@@ -1 +0,0 @@
1
- import{$ as e,H as t,Mn as n,Mt as r,Rt as i,lt as a,nn as o,or as s,sn as c,vn as l,wt as u,yn as d}from"./ui-Cftpc0m_.js";import{t as f}from"./IconDeviceDesktop-DEpLd6M3.js";import{t as p}from"./IconStack2-BZL8dJr1.js";import{J as m,Y as h,et as g,ot as _}from"./studio-Vg_SkMIH.js";var v=s(),y={30:`#000000`,31:`#e06c75`,32:`#98c379`,33:`#e5c07b`,34:`#61afef`,35:`#c678dd`,36:`#56b6c2`,37:`#dcdcdc`,90:`#5c6370`,91:`#ff7b85`,92:`#a8d289`,93:`#f0d090`,94:`#7bb8f0`,95:`#d088e0`,96:`#66c8d0`,97:`#ffffff`},b={40:`#1a1a1a`,41:`#7a3030`,42:`#3a6a30`,43:`#7a5a20`,44:`#2a4a7a`,45:`#5a3070`,46:`#2a6068`,47:`#5a5a5a`,100:`#2a2a2a`,101:`#8a4040`,102:`#4a7a40`,103:`#8a6a30`,104:`#3a5a8a`,105:`#6a4080`,106:`#3a7078`,107:`#6a6a6a`};function x(e,t,n){return!t.fg&&!t.bg&&!t.bold?e:(0,v.jsx)(`span`,{style:{color:t.fg,backgroundColor:t.bg,fontWeight:t.bold?600:void 0,padding:t.bg?`0 2px`:void 0,borderRadius:t.bg?2:void 0},children:e},n)}function S(e){if(!e||typeof e!=`string`||e.indexOf(`\x1B[`)===-1)return e;let t=/\x1b\[([\d;]*)m/g,n=[],r=0,i={},a=0,o;for(;o=t.exec(e);){o.index>r&&n.push(x(e.slice(r,o.index),i,a++));let t=o[1].split(`;`).filter(e=>e.length>0).map(Number);t.length===0&&t.push(0);for(let e of t)e===0?i={}:e===1?i.bold=!0:e===22?i.bold=!1:e===39?i.fg=void 0:e===49?i.bg=void 0:y[e]?i.fg=y[e]:b[e]&&(i.bg=b[e]);r=o.index+o[0].length}return r<e.length&&n.push(x(e.slice(r),i,a++)),n}var C=[...r].reverse(),w=`v2.0`,T={DEBUG:`gray`,INFO:`blue`,NOTICE:`cyan`,WARNING:`yellow`,ERROR:`red`,CRITIC:`red`,ALERT:`red`,EMERGENCY:`red`},E=new Set([`ERROR`,`CRITIC`,`ALERT`,`EMERGENCY`]),D=new Set([`CRITIC`,`ALERT`,`EMERGENCY`]);function O(e){return T[e]??`gray`}function k(e){return D.has(e)?`filled`:`light`}function A(e){return E.has(e)}function j(e){if(typeof e.payload==`string`)return e.payload;if(e.msg)return e.msg;try{return JSON.stringify(e.payload)}catch{return String(e.payload)}}function M(e){return new Date(e).toTimeString().slice(0,8)}function N(e){return String(new Date(e).getMilliseconds()).padStart(3,`0`)}function P(e){let t=new Date(e);return`${t.toLocaleDateString()} ${t.toTimeString().slice(0,8)}.${N(e)}`}var F={memory:{label:`Mémoire (ring buffer)`,description:`Le ring buffer volatile du Syslog EST le stockage : relecture instantanée, borné aux N derniers logs, perdu au redémarrage. Driver par défaut en dev.`,icon:`memory`},file:{label:`Fichier JSONL`,description:`Pdu persistés en JSON Lines sur disque (1 fichier par worker, nodefony-<pid>.jsonl), relus par scan borné. Node-only (LB.2). Activé par config (log.queryDriver: "file").`,icon:`file`},"cluster-file":{label:`Cluster (fichiers agrégés)`,description:`Vue UNIFIÉE du cluster : agrège les nodefony-<pid>.jsonl de TOUS les workers, fusionnés par horodatage. C'est LE driver de relecture à utiliser en cluster (les autres ne voient que le worker courant). Node-only (LB.5).`,icon:`cluster`},loki:{label:`Grafana Loki`,description:`Agrégation de logs cloud-native (labels + LogQL), légère (indexe les labels, pas un index full-text). Push HTTP batché + relecture LogQL, vue cluster native (LB.4). Activer : log.queryDriver="loki" + LOKI_URL (docker --profile loki).`,icon:`search`},opensearch:{label:`OpenSearch`,description:`Recherche plein-texte distribuée, rétention longue (fork Apache 2.0 d'Elasticsearch — OSI, licence non-SSPL). Indexation _bulk + recherche _search (LB.4). Activer : log.queryDriver="opensearch" + OPENSEARCH_URL (docker --profile opensearch).`,icon:`search`}};function I(e){return F[e]??{label:e,description:`Driver de destination personnalisé enregistré dans le registry.`,icon:`generic`}}var L=[`file`,`cluster-file`,`loki`,`opensearch`],R=new Set([`cluster-file`,`loki`,`opensearch`]);function z(e){return e!=null&&R.has(e)}function B(e){if(!e||typeof e!=`object`)return null;let t=e;return typeof t.severityName==`string`?{uid:typeof t.uid==`number`?t.uid:0,severity:typeof t.severity==`number`?t.severity:7,severityName:t.severityName,moduleName:typeof t.moduleName==`string`?t.moduleName:``,msgid:typeof t.msgid==`string`?t.msgid:``,msg:typeof t.msg==`string`?t.msg:void 0,timeStamp:typeof t.timeStamp==`number`?t.timeStamp:Date.now(),pid:typeof t.pid==`number`?t.pid:0,payload:t.payload,requestId:typeof t.requestId==`string`?t.requestId:void 0}:null}var V=[`file`,`loki`,`opensearch`,`syslog`];function H(e,t){switch(e){case`console`:return{label:`Console (stdout)`,on:`Logs formatés sur la sortie standard — destination #1 cloud-native (1 pod → stdout → collecteur).`,off:`Transport console non monté.`};case`file`:return{label:`Fichier JSONL`,on:t?`Pdu structurés en JSON Lines (1 « nodefony-<pid>.jsonl » par worker) dans ${t} — relus par les drivers « fichier » / « cluster ». Liste exacte : onglet Fichiers.`:`Pdu structurés en JSON Lines (1 .jsonl par worker), relus par les drivers « fichier » / « cluster ». En prod : logs → collecteur (pas de fichiers).`,off:`Non activé (log.queryDriver: « file » ou « cluster-file »).`,driverName:`file`};case`loki`:return{label:`Grafana Loki`,on:`Push HTTP batché (streams LogQL) vers Loki.`,off:`Non configuré (LOKI_URL absent).`,driverName:`loki`};case`opensearch`:return{label:`OpenSearch`,on:`Indexation _bulk batchée vers OpenSearch.`,off:`Non configuré (OPENSEARCH_URL absent).`,driverName:`opensearch`};case`syslog`:return{label:`Syslog (RFC 5424)`,on:`Émission vers un serveur syslog distant (rsyslog / journald, UDP/TCP).`,off:`Transport syslog non monté.`};case`http`:return{label:`HTTP générique`,on:`POST batché des logs vers un endpoint HTTP custom.`,off:`Transport HTTP non monté.`};default:return{label:e,on:`Transport d'écriture personnalisé monté.`,off:`Transport personnalisé non monté.`}}}function U(e){let t=e.write.sink,n=t!==`null`&&t!==`none`,r=e.write.sinkEnabled!==!1,i=n&&r,a=e.write.ringEnabled!==!1,o=e.write.logDir,{buffered:s,bufferCapacity:c}=e.counters,l=c?`Pile tournante (ring buffer) : les ${c} derniers logs gardés en mémoire — ${s} / ${c} occupés (${Math.round(s/c*100)} % plein). Une fois plein, chaque nouveau log écrase le plus ancien (FIFO borné, O(1)). Relu par l'Explorer « mémoire » ; perdu au redémarrage.`:`Pile tournante (ring buffer) : les N derniers logs en mémoire ; le plus ancien dégage quand c'est plein. Relu par l'Explorer « mémoire » ; perdu au redémarrage.`,u=[{id:`ring`,label:`Mémoire (ring)`,detail:a?l:`Stockage mémoire COUPÉ — l'Explorer « mémoire » est vide. Les compteurs santé restent comptés. Réactiver pour relire en RAM.`,on:a,kind:`ring`,togglable:!0,toggleKind:`ring`,capacity:c,used:s},{id:`sink`,label:t===`file`?`Fichier texte (.log)`:t===`stdout`?`stdout (console)`:`sink « ${t} »`,detail:n?r?t===`file`?`La ligne texte de chaque log est ajoutée à un fichier .log.`:`La ligne texte part sur la sortie standard (console / collecteur).`:`Sink texte COUPÉ à chaud — plus aucune ligne en console/fichier. Réactiver pour rétablir.`:`Sink texte désactivé par config (null) — aucune ligne texte écrite (bench).`,on:i,kind:`sink`,togglable:n,toggleKind:`sink`}],d=e.write.transports;if(d){let e=new Set,t=(t,n,r)=>{if(e.has(t))return;e.add(t);let i=H(t,o),a={id:`transport:${t}`,label:i.label,detail:n?i.on:i.off,on:n,kind:`transport`,togglable:r,toggleKind:`transport`,transportName:t};i.driverName&&(a.driverName=i.driverName),u.push(a)};for(let e of d)t(e.name,e.enabled,!0);for(let e of V)t(e,!1,!1);return u}let f=new Set(e.drivers.filter(e=>e.capabilities.write).map(e=>e.name)),p=e=>f.has(e);return u.push({id:`jsonl`,label:`Fichier JSONL`,detail:p(`file`)||p(`cluster-file`)?`Pdu structurés en JSON Lines (1 .jsonl par worker), relus par les drivers « fichier » / « cluster ».`:`Non activé (log.queryDriver: « file » ou « cluster-file »).`,on:p(`file`)||p(`cluster-file`),kind:`transport`,driverName:p(`cluster-file`)?`cluster-file`:`file`},{id:`loki`,label:`Grafana Loki`,detail:p(`loki`)?`Push HTTP batché (streams LogQL) vers Loki.`:`Non configuré (LOKI_URL absent).`,on:p(`loki`),kind:`transport`,driverName:`loki`},{id:`opensearch`,label:`OpenSearch`,detail:p(`opensearch`)?`Indexation _bulk batchée vers OpenSearch.`:`Non configuré (OPENSEARCH_URL absent).`,on:p(`opensearch`),kind:`transport`,driverName:`opensearch`}),u}function W(e){switch(e){case`connected`:return{label:`connecté`,color:`teal`,live:!0};case`connecting`:return{label:`connexion…`,color:`yellow`,live:!1};case`reconnecting`:return{label:`reconnexion…`,color:`orange`,live:!1};case`error`:return{label:`erreur`,color:`red`,live:!1};default:return{label:`hors ligne`,color:`gray`,live:!1}}}function G(e){let t=Object.fromEntries(C.map(e=>[e,0]));for(let n of e){let e=n.severityName;e in t&&(t[e]+=1)}return t}var K={memory:p,file:m,cluster:_,search:e,generic:h};function q({moduleName:e}){return e===`browser`?(0,v.jsx)(c,{size:`xs`,variant:`light`,color:`grape`,leftSection:(0,v.jsx)(f,{size:11}),style:{flexShrink:0},title:`Journal remonté par un navigateur, réinjecté par le pod`,children:`navigateur`}):(0,v.jsx)(l,{size:`xs`,c:`dimmed`,truncate:!0,children:e})}function J({name:e,size:t=18,color:n=`brand`}){let r=K[I(e).icon];return(0,v.jsx)(i,{variant:`light`,color:n,size:t+14,radius:`md`,children:(0,v.jsx)(r,{size:t})})}function Y({cluster:e,driverName:t,context:n}){if(!e?.isCluster)return null;let r=t?I(t).label:`—`;return n===`live`?(0,v.jsxs)(d,{variant:`light`,color:`blue`,icon:(0,v.jsx)(_,{size:16}),title:`Cluster — flux d'un seul worker`,children:[`En cluster, le flux temps réel ne provient que du worker portant la socket WebSocket (le PID est en tête de chaque ligne). Pour une vue de`,` `,(0,v.jsx)(`b`,{children:`tout`}),` le cluster, va dans l'onglet `,(0,v.jsx)(`b`,{children:`Explorer`}),` avec le driver`,` `,(0,v.jsx)(o,{children:`cluster-file`}),`.`]}):z(t)?(0,v.jsxs)(d,{variant:`light`,color:`teal`,icon:(0,v.jsx)(_,{size:16}),title:`Vue cluster unifiée`,children:[`Driver « `,r,` » : la relecture agrège les logs de `,(0,v.jsx)(`b`,{children:`tous`}),` les workers du cluster — résultats cohérents quel que soit le worker qui répond.`]}):(0,v.jsxs)(d,{variant:`light`,color:`orange`,icon:(0,v.jsx)(u,{size:16}),title:`Vue partielle — un seul worker`,children:[`Cluster détecté (worker PID `,e.pid,`). Le driver actif « `,r,` » ne relit que `,(0,v.jsx)(`b`,{children:`ce`}),` worker → les requêtes peuvent renvoyer des résultats incohérents d'un rafraîchissement à l'autre (round-robin entre workers). Configure `,(0,v.jsx)(o,{children:`log.queryDriver: "cluster-file"`}),` pour une vue unifiée du cluster.`]})}function X({severity:e,size:t=`xs`,fullWidth:n=!0}){return(0,v.jsx)(c,{size:t,color:O(e),variant:k(e),style:n?{flexShrink:0,minWidth:78,textAlign:`center`}:{flexShrink:0},children:e})}var Z={write:{label:`Persistant`,labelOff:`Non persistant`,tech:`write`,icon:a,help:`Conserve les logs dans la durée : ils survivent à un redémarrage. Driver « en mémoire » = volatil (tout est perdu au reboot).`},query:{label:`Recherche`,labelOff:`Sans recherche`,tech:`query`,icon:e,help:`Permet de FOUILLER l'historique : filtres, recherche plein-texte, suivi d'une requête (onglet Explorer). Sans elle, on ne peut que regarder le flux en direct, pas chercher dans le passé.`},stream:{label:`Temps réel`,labelOff:`Live via le bus`,tech:`stream`,icon:g,help:`Ce driver EST lui-même la source du flux temps réel (seul « mémoire » l'est : il EST le ring buffer alimenté en direct).`,helpOff:`Le temps réel ne vient pas de ce driver mais du bus « nodefony:syslog » (toujours actif). Tu ne perds donc PAS le direct : l'onglet Live fonctionne quel que soit le driver de relecture.`}};function Q({capabilities:e,size:r=`sm`}){return(0,v.jsx)(n,{gap:4,wrap:`nowrap`,children:Object.keys(Z).map(n=>{let i=Z[n],a=e[n],s=i.icon;return(0,v.jsx)(t,{title:a?i.label:i.labelOff,summary:a?i.help:i.helpOff??`Non disponible sur ce driver.`,width:300,sections:[{label:`Contrat technique`,body:(0,v.jsxs)(o,{style:{fontSize:11},children:[`capabilities.`,i.tech]})}],children:(0,v.jsx)(c,{size:r,variant:`light`,color:a?`teal`:`gray`,leftSection:(0,v.jsx)(s,{size:11}),style:{cursor:`help`},children:a?i.label:i.labelOff})},n)})})}function $({counts:e,active:t,onToggle:r}){let i=Object.entries(e).filter(([,e])=>e>0);return i.length===0?null:(0,v.jsx)(n,{gap:4,wrap:`wrap`,children:i.map(([e,n])=>{let i=t.has(e);return(0,v.jsx)(c,{component:`button`,type:`button`,onClick:()=>r(e),size:`sm`,color:O(e),variant:i?`filled`:`light`,style:{cursor:`pointer`},"aria-pressed":i,"aria-label":`${e} : ${n} — ${i?`retirer du filtre`:`filtrer`}`,rightSection:(0,v.jsx)(l,{span:!0,size:`xs`,fw:700,style:{fontVariantNumeric:`tabular-nums`},children:n}),children:e},e)})})}export{O as _,X as a,C as b,L as c,M as d,P as f,j as g,W as h,q as i,G as l,A as m,Y as n,$ as o,N as p,J as r,w as s,Q as t,I as u,B as v,S as x,U as y};
@@ -1 +0,0 @@
1
- import{k as e}from"./src-Dvwdl2PF.js";import{$ as t,An as n,B as r,Cn as i,Dn as a,Dr as o,En as s,Et as c,Fn as l,Gr as u,Gt as d,H as f,Hn as p,Ht as m,K as h,Kn as g,Kt as _,Lt as v,Mn as y,Mr as b,Mt as x,On as S,Pn as C,Pt as w,R as T,Rt as E,Tn as D,Un as O,Ut as k,Vn as A,Vt as j,Wn as M,Wt as N,Xr as P,Xt as ee,Z as F,_n as I,an as L,at as te,bt as ne,c as R,d as re,di as z,dn as ie,ei as ae,er as oe,et as se,f as ce,gn as le,gt as ue,h as B,hn as de,ht as fe,it as V,jt as pe,kn as me,l as he,ln as ge,mn as _e,mt as ve,n as ye,nn as H,nr as be,on as U,or as xe,ot as Se,pn as Ce,qr as we,qt as Te,s as Ee,sn as W,st as De,tn as Oe,tr as ke,tt as Ae,ut as je,vn as G,wn as Me,wr as Ne,wt as Pe,xn as Fe,xt as Ie,yn as K,z as q,zn as Le,zt as Re}from"./ui-Cftpc0m_.js";import{t as ze}from"./Slider-y-O2hL1n.js";import{t as Be}from"./Collapse-CgNJKcgq.js";import{t as Ve}from"./Chip-VZhBMG0_.js";import{a as He,c as J,o as Ue,s as We}from"./stores-Bu1klAcv.js";import{a as Ge}from"./hooks-B7-tCb-b.js";import{a as Ke,i as qe,n as Je,o as Ye,r as Xe,s as Ze,t as Qe}from"./eventFlow-BxbkeiAi.js";import{t as $e}from"./IconAdjustments-Cm5pohyR.js";import{t as et}from"./IconArrowDown-9GueidaS.js";import{t as tt}from"./IconCircleDot-CkED5AFm.js";import{t as nt}from"./IconEye-DolbrZfe.js";import{t as rt}from"./IconFile-CtwrsnXi.js";import{t as it}from"./IconFolder-Cmbw6D4Y.js";import{t as at}from"./IconPencil-D0t63JY0.js";import{t as ot}from"./IconPlayerPause-CAaHo_2D.js";import{t as st}from"./IconPlayerPlay-ByPFNa8B.js";import{t as ct}from"./IconStack2-BZL8dJr1.js";import{t as lt}from"./IconWorld-v1UEZOxv.js";import{i as ut}from"./pageQuery-yJh2-jSv.js";import{$ as dt,Ct as ft,I as pt,J as mt,V as ht,b as gt,ct as _t,et as vt,gt as yt,ht as bt,mt as xt,v as St,vt as Ct}from"./studio-Vg_SkMIH.js";import{_ as wt,a as Tt,b as Et,c as Dt,d as Ot,f as kt,g as Y,h as At,i as jt,l as Mt,m as Nt,n as Pt,o as Ft,p as It,r as Lt,s as X,t as Rt,u as zt,v as Bt,x as Vt,y as Ht}from"./LogVisuals-BalQ75XP.js";import{a as Ut,o as Wt,s as Gt,t as Kt}from"./profileVisuals-BgkBVLds.js";var Z=e(z(),1),Q=xe(),qt=g(e=>{let t=be([`Input`,`InputWrapper`,`Autocomplete`],{size:`sm`},e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:s,defaultDropdownOpened:c,onDropdownClose:l,onDropdownOpen:u,onFocus:d,onBlur:f,onClick:p,onChange:m,data:h,value:g,defaultValue:_,selectFirstOptionOnChange:v,selectFirstOptionOnDropdownOpen:y,onOptionSubmit:x,comboboxProps:S,readOnly:C,disabled:w,filter:T,limit:E,withScrollArea:D,maxDropdownHeight:O,floatingHeight:k,size:A,id:j,renderOption:M,autoComplete:N,scrollAreaProps:P,onClear:ee,clearButtonProps:F,error:I,clearable:L,clearSectionMode:te,rightSection:ne,autoSelectOnBlur:R,openOnFocus:re=!0,attributes:z,...ie}=t,ae=b(j),oe=le(h),se=de(oe),[ce,ue]=o({value:g,defaultValue:_,finalValue:``,onChange:m}),B=_e({opened:s,defaultOpened:c,onDropdownOpen:()=>{u?.(),y&&B.selectFirstOption()},onDropdownClose:()=>{l?.(),setTimeout(B.resetSelectedOption,0)}}),fe=e=>{ue(e),B.resetSelectedOption()},{resolvedClassNames:V,resolvedStyles:pe}=ke({props:t,styles:r,classNames:n});(0,Z.useEffect)(()=>{v&&B.selectFirstOption()},[v,ce]);let me=(0,Q.jsx)(Ce.ClearButton,{...F,onClear:()=>{fe(``),ee?.()}});return(0,Q.jsxs)(Ce,{store:B,__staticSelector:`Autocomplete`,classNames:V,styles:pe,unstyled:i,readOnly:C,size:A,attributes:z,floatingHeight:k,keepMounted:R,onOptionSubmit:e=>{x?.(e),fe(se[e].label),B.closeDropdown()},...S,children:[(0,Q.jsx)(Ce.Target,{autoComplete:N,withExpandedAttribute:!0,children:(0,Q.jsx)(Fe,{...ie,size:A,__staticSelector:`Autocomplete`,__clearSection:me,__clearable:L&&!!ce&&!w&&!C,__clearSectionMode:te,rightSection:ne,disabled:w,readOnly:C,value:ce,error:I,onChange:e=>{fe(e.currentTarget.value),B.openDropdown(),v&&B.selectFirstOption()},onFocus:e=>{re&&B.openDropdown(),d?.(e)},onBlur:e=>{R&&B.clickSelectedOption(),B.closeDropdown(),f?.(e)},onClick:e=>{B.openDropdown(),p?.(e)},classNames:V,styles:pe,unstyled:i,attributes:z,id:ae})}),(0,Q.jsx)(ge,{data:oe,hidden:C||w,filter:T,search:ce,limit:E,hiddenWhenEmpty:!0,withScrollArea:D,maxDropdownHeight:O,unstyled:i,labelId:ie.label?`${ae}-label`:void 0,"aria-label":ie.label?void 0:ie[`aria-label`],renderOption:M,scrollAreaProps:P})]})});qt.classes={...Fe.classes,...Ce.classes},qt.displayName=`@mantine/core/Autocomplete`;var[Jt,Yt]=P(`Drawer component was not found in tree`),Xt={root:`m_f11b401e`,header:`m_5a7c2c9`,content:`m_b8a05bbd`,inner:`m_31cd769a`},Zt=g(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=be(`DrawerBody`,null,e);return(0,Q.jsx)(me,{...Yt().getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});Zt.classes=Xt,Zt.displayName=`@mantine/core/DrawerBody`;var Qt=g(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=be(`DrawerCloseButton`,null,e);return(0,Q.jsx)(S,{...Yt().getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});Qt.classes=Xt,Qt.displayName=`@mantine/core/DrawerCloseButton`;var $t=g(e=>{let{classNames:t,className:n,style:r,styles:o,vars:s,children:c,radius:l,__hidden:u,...d}=be(`DrawerContent`,null,e),f=Yt(),p=f.scrollAreaComponent||i;return(0,Q.jsx)(a,{...f.getStyles(`content`,{className:n,style:r,styles:o,classNames:t}),innerProps:f.getStyles(`inner`,{className:n,style:r,styles:o,classNames:t}),...d,radius:l||f.radius||0,"data-hidden":u||void 0,children:(0,Q.jsx)(p,{style:{height:`calc(100vh - var(--drawer-offset) * 2)`},children:c})})});$t.classes=Xt,$t.displayName=`@mantine/core/DrawerContent`;var en=g(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=be(`DrawerHeader`,null,e);return(0,Q.jsx)(s,{...Yt().getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});en.classes=Xt,en.displayName=`@mantine/core/DrawerHeader`;var tn=g(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=be(`DrawerOverlay`,null,e);return(0,Q.jsx)(D,{...Yt().getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});tn.classes=Xt,tn.displayName=`@mantine/core/DrawerOverlay`;function nn(e){switch(e){case`top`:return`flex-start`;case`bottom`:return`flex-end`;default:return}}function rn(e){if(e===`top`||e===`bottom`)return`0 0 calc(100% - var(--drawer-offset, 0rem) * 2)`}var an={top:`slide-down`,bottom:`slide-up`,left:`slide-right`,right:`slide-left`},on={top:`slide-down`,bottom:`slide-up`,right:`slide-right`,left:`slide-left`},sn={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:we(`modal`),position:`left`},cn=Ne((e,{position:t,size:n,offset:r})=>({root:{"--drawer-size":u(n,`drawer-size`),"--drawer-flex":rn(t),"--drawer-height":t===`left`||t===`right`?void 0:`var(--drawer-size)`,"--drawer-align":nn(t),"--drawer-justify":t===`right`?`flex-end`:void 0,"--drawer-offset":ae(r)}})),ln=g(e=>{let t=be(`DrawerRoot`,sn,e),{classNames:r,className:i,style:a,styles:o,unstyled:s,vars:c,scrollAreaComponent:l,position:u,transitionProps:d,radius:f,attributes:m,...h}=t,{dir:g}=O(),_=oe({name:`Drawer`,classes:Xt,props:t,className:i,style:a,classNames:r,styles:o,unstyled:s,attributes:m,vars:c,varsResolver:cn}),v=(g===`rtl`?on:an)[u];return(0,Q.jsx)(Jt,{value:{scrollAreaComponent:l,getStyles:_,radius:f},children:(0,Q.jsx)(n,{..._(`root`),transitionProps:{transition:v,...d},"data-offset-scrollbars":l===p.Autosize||void 0,unstyled:s,...h})})});ln.classes=Xt,ln.varsResolver=cn,ln.displayName=`@mantine/core/DrawerRoot`;var un=(0,Z.createContext)(null);function dn({children:e}){let[t,n]=(0,Z.useState)([]),[r,i]=(0,Z.useState)(we(`modal`));return(0,Q.jsx)(un,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}dn.displayName=`@mantine/core/DrawerStack`;var fn=g(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=be(`DrawerTitle`,null,e);return(0,Q.jsx)(Me,{...Yt().getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});fn.classes=Xt,fn.displayName=`@mantine/core/DrawerTitle`;var pn={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:we(`modal`),withOverlay:!0,withCloseButton:!0},$=g(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,opened:s,stackId:c,zIndex:l,...u}=be(`Drawer`,pn,e),d=(0,Z.use)(un),f=!!t||i,p=d&&c?{closeOnEscape:d.currentId===c,trapFocus:d.currentId===c,zIndex:d.getZIndex(c)}:{},m=n===!1?!1:c&&d?d.currentId===c:s;return(0,Z.useEffect)(()=>{d&&c&&(s?d.addModal(c,l||we(`modal`)):d.removeModal(c))},[s,c,l]),(0,Q.jsxs)(ln,{opened:s,zIndex:d&&c?d.getZIndex(c):l,...u,...p,children:[n&&(0,Q.jsx)(tn,{visible:m,transitionProps:d&&c?{duration:0}:void 0,...r}),(0,Q.jsxs)($t,{__hidden:d&&c&&s?c!==d.currentId:!1,children:[f&&(0,Q.jsxs)(en,{children:[t&&(0,Q.jsx)(fn,{children:t}),i&&(0,Q.jsx)(Qt,{...a})]}),(0,Q.jsx)(Zt,{children:o})]})]})});$.classes=Xt,$.displayName=`@mantine/core/Drawer`,$.Root=ln,$.Overlay=tn,$.Content=$t,$.Body=Zt,$.Header=en,$.Title=fn,$.CloseButton=Qt,$.Stack=dn;var mn=c(`outline`,`clock-play`,`ClockPlay`,[[`path`,{d:`M12 7v5l2 2`,key:`svg-0`}],[`path`,{d:`M17 22l5 -3l-5 -3l0 6`,key:`svg-1`}],[`path`,{d:`M13.017 20.943a9 9 0 1 1 7.831 -7.292`,key:`svg-2`}]]),hn=c(`outline`,`player-skip-forward`,`PlayerSkipForward`,[[`path`,{d:`M4 5v14l12 -7l-12 -7`,key:`svg-0`}],[`path`,{d:`M20 5l0 14`,key:`svg-1`}]]),gn=c(`outline`,`player-track-prev`,`PlayerTrackPrev`,[[`path`,{d:`M21 5v14l-8 -7l8 -7`,key:`svg-0`}],[`path`,{d:`M10 5v14l-8 -7l8 -7`,key:`svg-1`}]]),_n=c(`outline`,`power`,`Power`,[[`path`,{d:`M7 6a7.75 7.75 0 1 0 10 0`,key:`svg-0`}],[`path`,{d:`M12 4l0 8`,key:`svg-1`}]]),vn=c(`outline`,`sort-ascending`,`SortAscending`,[[`path`,{d:`M4 6l7 0`,key:`svg-0`}],[`path`,{d:`M4 12l7 0`,key:`svg-1`}],[`path`,{d:`M4 18l9 0`,key:`svg-2`}],[`path`,{d:`M15 9l3 -3l3 3`,key:`svg-3`}],[`path`,{d:`M18 6l0 12`,key:`svg-4`}]]),yn=c(`outline`,`sort-descending`,`SortDescending`,[[`path`,{d:`M4 6l9 0`,key:`svg-0`}],[`path`,{d:`M4 12l7 0`,key:`svg-1`}],[`path`,{d:`M4 18l7 0`,key:`svg-2`}],[`path`,{d:`M15 15l3 3l3 -3`,key:`svg-3`}],[`path`,{d:`M18 6l0 12`,key:`svg-4`}]]),bn=1500,xn=5e3;function Sn(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1048576).toFixed(1)} MB`}function Cn(e){try{let t=JSON.parse(e);if(t&&typeof t==`object`&&`severityName`in t)return t}catch{}return null}function wn({line:e}){let t=Cn(e);if(!t)return(0,Q.jsx)(G,{size:`xs`,style:{whiteSpace:`pre-wrap`,wordBreak:`break-word`},children:Vt(e)});let n=String(t.severityName??``),r=t.timeStamp,i=typeof r==`number`||typeof r==`string`?new Date(r):null,a=i?i.toTimeString().slice(0,8):``,o=i?String(i.getMilliseconds()).padStart(3,`0`):``,s=String(t.moduleName??``),c=t.payload,l=typeof c==`string`?c:typeof t.msg==`string`&&t.msg?t.msg:(()=>{try{return JSON.stringify(c)}catch{return String(c)}})();return(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,align:`flex-start`,children:[i&&(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,style:{flexShrink:0},children:[a,`.`,o]}),(0,Q.jsx)(Tt,{severity:n}),(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,style:{flexShrink:0,minWidth:80},children:s}),(0,Q.jsx)(G,{size:`xs`,style:{wordBreak:`break-word`},children:Vt(l)})]})}var Tn=ft(()=>{let e=J(),[t,n]=(0,Z.useState)([]),[r,i]=(0,Z.useState)(!0),[a,o]=(0,Z.useState)(),[s,c]=(0,Z.useState)(null),[l,u]=(0,Z.useState)([]),[d,f]=(0,Z.useState)(!0),[m,h]=(0,Z.useState)(!1),[g,b]=(0,Z.useState)(0),[x,S]=(0,Z.useState)(null),w=(0,Z.useRef)(0),T=(0,Z.useRef)(null),E=(0,Z.useCallback)(()=>{e.api.getAbsolute(`/nodefony/syslog/api/files`).then(e=>{i(e.enabled),o(e.reason),n(e.files??[]),c(t=>t??(e.files?.length?e.files[0].name:null))}).catch(e=>S(e instanceof Error?e.message:`files list failed`))},[e]);(0,Z.useEffect)(()=>{E()},[E]),(0,Z.useEffect)(()=>{if(!s)return;let t=!1;u([]),w.current=0;let n=m?`1`:`0`;return e.api.getAbsolute(`/nodefony/syslog/api/files/${encodeURIComponent(s)}?lines=500&raw=${n}`).then(e=>{t||(u(e.lines),w.current=e.to,b(e.size),S(null))}).catch(e=>S(e instanceof Error?e.message:`tail failed`)),()=>{t=!0}},[s,m,e]),(0,Z.useEffect)(()=>{if(!d||!s)return;let t=m?`1`:`0`,n=window.setInterval(()=>{e.api.getAbsolute(`/nodefony/syslog/api/files/${encodeURIComponent(s)}?from=${w.current}&raw=${t}`).then(e=>{if(w.current=e.to,b(e.size),e.reset){u(e.lines);return}e.lines.length!==0&&u(t=>{let n=[...t,...e.lines];return n.length>xn?n.slice(-5e3):n})}).catch(()=>{})},bn);return()=>window.clearInterval(n)},[d,s,m,e]),(0,Z.useEffect)(()=>{!d||!T.current||T.current.scrollTo({top:T.current.scrollHeight})},[l,d]);let D=(0,Z.useMemo)(()=>t.map(e=>({value:e.name,label:`${e.name} · ${Sn(e.size)}`})),[t]);return r?(0,Q.jsxs)(k,{gap:`md`,children:[(0,Q.jsxs)(y,{justify:`space-between`,children:[(0,Q.jsxs)(y,{gap:`xs`,children:[(0,Q.jsx)(mt,{size:18}),(0,Q.jsx)(v,{order:3,children:`Fichiers de log`}),(0,Q.jsx)(W,{size:`sm`,variant:`dot`,color:d?`teal`:`yellow`,children:d?`Follow`:`Pause`}),(0,Q.jsxs)(G,{size:`sm`,c:`dimmed`,children:[l.length,` lignes · `,Sn(g)]})]}),(0,Q.jsxs)(y,{gap:4,children:[(0,Q.jsx)(_,{label:`Rafraîchir la liste`,children:(0,Q.jsx)(C,{variant:`default`,onClick:E,"aria-label":`refresh files`,children:(0,Q.jsx)(se,{size:16})})}),(0,Q.jsx)(_,{label:d?`Stopper le suivi`:`Suivre (tail -f)`,children:(0,Q.jsx)(C,{variant:`default`,onClick:()=>f(e=>!e),"aria-label":`toggle follow`,children:d?(0,Q.jsx)(ot,{size:16}):(0,Q.jsx)(st,{size:16})})}),(0,Q.jsx)(_,{label:m?`Masquer les secrets (recommandé)`:`Afficher le contenu brut (secrets visibles)`,children:(0,Q.jsx)(C,{variant:m?`filled`:`default`,color:m?`orange`:void 0,onClick:()=>h(e=>!e),"aria-label":`toggle raw`,children:m?(0,Q.jsx)(nt,{size:16}):(0,Q.jsx)(De,{size:16})})})]})]}),(0,Q.jsx)(Le,{p:`xs`,withBorder:!0,children:(0,Q.jsxs)(y,{gap:`xs`,wrap:`wrap`,children:[(0,Q.jsx)(N,{data:D,value:s,onChange:c,placeholder:`Choisir un fichier…`,searchable:!0,size:`xs`,style:{minWidth:320},nothingFoundMessage:`Aucun fichier .log`}),(0,Q.jsx)(W,{size:`sm`,variant:`light`,color:m?`orange`:`teal`,children:m?`brut (secrets visibles)`:`secrets masqués`})]})}),x&&(0,Q.jsx)(K,{color:`red`,variant:`light`,title:`Erreur`,children:x}),(0,Q.jsx)(Le,{withBorder:!0,children:(0,Q.jsx)(p,{h:520,viewportRef:T,type:`auto`,styles:{viewport:{fontFamily:`ui-monospace, SFMono-Regular, Menlo, monospace`,fontSize:12,lineHeight:1.5}},children:l.length===0?(0,Q.jsx)(G,{size:`sm`,c:`dimmed`,ta:`center`,py:`xl`,children:s?`Fichier vide ou en attente…`:`Sélectionne un fichier.`}):(0,Q.jsx)(k,{gap:0,p:`xs`,children:l.map((e,t)=>(0,Q.jsx)(wn,{line:e},`${w.current}-${t}`))})})}),(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,children:[(0,Q.jsx)(H,{children:`/nodefony/syslog/api/files`}),` (DEV) — tail incrémental par offset (`,(0,Q.jsx)(H,{children:`?from=`}),`), redaction serveur des secrets. Confort dev : en prod, logs → stdout → collecteur.`]})]}):(0,Q.jsx)(K,{color:`blue`,icon:(0,Q.jsx)(V,{size:16}),variant:`light`,title:`Fichiers de log indisponibles (production)`,children:a??`En production, les logs vont sur stdout/stderr → collecteur. La rotation et la rétention sont gérées par la plateforme (cloud-native), pas par Nodefony.`})});function En({row:e,current:t}){let n=Je(e);return(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,align:`flex-start`,style:{padding:`1px 4px`,borderRadius:4,background:t?`var(--mantine-color-brand-light)`:void 0},children:[(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,ff:`monospace`,style:{flexShrink:0,minWidth:46},children:[`#`,e.uid]}),(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,style:{flexShrink:0,fontVariantNumeric:`tabular-nums`},children:[Ot(e.timeStamp),`.`,It(e.timeStamp)]}),(0,Q.jsx)(Tt,{severity:e.severityName,size:`xs`}),n&&(0,Q.jsx)(W,{size:`xs`,variant:`light`,color:n.color,style:{flexShrink:0},children:n.label}),(0,Q.jsx)(G,{size:`xs`,style:{wordBreak:`break-word`},children:Vt(Y(e))})]})}var Dn=ft(({record:e,onClose:t,onTrace:n,localRecords:r})=>{let i=J(),a=e!==null,o=e?Y(e):``,s=e!==null&&e.payload!==null&&typeof e.payload==`object`,c=e?.requestId??null,[u,d]=(0,Z.useState)([]),[f,m]=(0,Z.useState)(!1),h=(0,Z.useCallback)(()=>{if(!c){d([]);return}if(r){d(r.filter(e=>e.requestId===c));return}m(!0),i.api.getAbsolute(`/nodefony/syslog/api/logs/search?requestId=${encodeURIComponent(c)}&order=timeStamp:ASC&limit=300`).then(e=>d(e.rows??[])).catch(()=>d([])).finally(()=>m(!1))},[c,i,r]);(0,Z.useEffect)(()=>h(),[h]);let g=u.some(e=>/WEBSOCKET/i.test(e.msgid)||/WEBSOCKET/i.test(e.moduleName)),v=u.filter(e=>/onMessage/i.test(Y(e))).length;return(0,Q.jsx)($,{opened:a,onClose:t,position:`right`,size:`lg`,withOverlay:!1,closeOnClickOutside:!1,trapFocus:!1,lockScroll:!1,shadow:`xl`,title:e?(0,Q.jsxs)(y,{gap:`xs`,wrap:`nowrap`,children:[(0,Q.jsx)(Tt,{severity:e.severityName,fullWidth:!1}),(0,Q.jsxs)(G,{fw:700,truncate:!0,children:[e.moduleName,e.msgid?` · ${e.msgid}`:``]})]}):`Détail du log`,children:e&&(0,Q.jsxs)(k,{gap:`md`,children:[(0,Q.jsxs)(T,{children:[(0,Q.jsx)(q,{k:`Horodatage`,v:kt(e.timeStamp),mono:!0}),(0,Q.jsx)(q,{k:`Séquence (#)`,v:`#${e.uid}`,mono:!0}),(0,Q.jsx)(q,{k:`Sévérité`,v:(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,children:[(0,Q.jsx)(Tt,{severity:e.severityName,fullWidth:!1}),(0,Q.jsxs)(G,{size:`sm`,c:`dimmed`,children:[`(niveau `,e.severity,`)`]})]})}),(0,Q.jsx)(q,{k:`Module`,v:e.moduleName,mono:!0}),(0,Q.jsx)(q,{k:`msgid`,v:e.msgid||`—`,mono:!0}),(0,Q.jsx)(q,{k:`PID (worker)`,v:String(e.pid),mono:!0}),(0,Q.jsx)(q,{k:`requestId`,v:e.requestId?(0,Q.jsx)(H,{children:e.requestId}):(0,Q.jsx)(G,{size:`sm`,c:`dimmed`,children:`aucun (log hors cycle requête)`})})]}),(0,Q.jsxs)(k,{gap:6,children:[(0,Q.jsxs)(y,{justify:`space-between`,children:[(0,Q.jsx)(G,{size:`sm`,fw:600,children:`Payload`}),(0,Q.jsx)(Oe,{value:o,timeout:1200,children:({copied:e,copy:t})=>(0,Q.jsx)(_,{label:e?`Copié`:`Copier le message`,children:(0,Q.jsx)(C,{variant:`subtle`,color:e?`teal`:`gray`,onClick:t,"aria-label":`copier le message`,children:e?(0,Q.jsx)(ue,{size:16}):(0,Q.jsx)(je,{size:16})})})})]}),s?(0,Q.jsx)(B,{value:e.payload,maxHeight:300}):(0,Q.jsx)(p.Autosize,{mah:300,children:(0,Q.jsx)(H,{block:!0,style:{whiteSpace:`pre-wrap`,wordBreak:`break-word`,fontSize:12},children:Vt(o)})})]}),c&&(0,Q.jsxs)(k,{gap:6,children:[(0,Q.jsxs)(y,{justify:`space-between`,wrap:`nowrap`,children:[(0,Q.jsxs)(y,{gap:`xs`,wrap:`nowrap`,children:[(0,Q.jsx)(G,{size:`sm`,fw:600,children:g?`Chronologie de la connexion`:`Chronologie de la requête`}),(0,Q.jsxs)(W,{size:`sm`,variant:`light`,color:`brand`,children:[u.length,` évén.`]}),g&&v>0&&(0,Q.jsxs)(W,{size:`sm`,variant:`light`,color:`cyan`,children:[v,` message`,v>1?`s`:``]})]}),(0,Q.jsxs)(y,{gap:4,wrap:`nowrap`,children:[(0,Q.jsx)(_,{label:`Rafraîchir la chronologie`,children:(0,Q.jsx)(C,{variant:`subtle`,color:`gray`,onClick:h,loading:f,"aria-label":`rafraîchir la chronologie`,children:(0,Q.jsx)(se,{size:15})})}),(0,Q.jsx)(U,{component:bt,to:`/nodefony/logs/trace/${encodeURIComponent(c)}`,size:`compact-xs`,variant:`light`,color:`brand`,leftSection:(0,Q.jsx)(Ye,{size:14}),children:`Suivi (pleine page)`}),n&&(0,Q.jsx)(U,{size:`compact-xs`,variant:`subtle`,color:`gray`,onClick:()=>n(c),children:`Explorer`})]})]}),g&&(0,Q.jsx)(K,{color:`cyan`,variant:`light`,icon:(0,Q.jsx)(V,{size:15}),p:`xs`,children:(0,Q.jsxs)(G,{size:`xs`,children:[`Connexion `,(0,Q.jsx)(`b`,{children:`WebSocket`}),` : la ligne « Handshake terminé » marque la fin de l'ouverture, puis chaque « Message reçu » arrive au fil de l'eau sous le même requestId. Le`,` `,(0,Q.jsx)(`b`,{children:`contenu`}),` des frames échangées (JSON-RPC) se consulte dans la console `,(0,Q.jsx)(`b`,{children:`Realtime Hub`}),` (log protocole) — les logs serveur ne tracent que l'arrivée d'un message.`]})}),(0,Q.jsx)(M,{style:{border:`1px solid var(--mantine-color-default-border)`,borderRadius:6},children:f&&u.length===0?(0,Q.jsx)(y,{justify:`center`,py:`md`,children:(0,Q.jsx)(l,{size:`sm`})}):u.length===0?(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,ta:`center`,py:`md`,children:`Logs de cette requête expirés du buffer mémoire.`}):(0,Q.jsx)(p.Autosize,{mah:360,styles:{viewport:{fontFamily:`ui-monospace, SFMono-Regular, Menlo, monospace`}},children:(0,Q.jsx)(k,{gap:0,p:6,children:u.map(t=>(0,Q.jsx)(En,{row:t,current:t.uid===e.uid},`${t.uid}-${t.timeStamp}`))})})})]})]})})}),On=2500,kn=120,An=300,jn=[1,2,5,10],Mn={EMERGENCY:0,ALERT:1,CRITIC:2,ERROR:3,WARNING:4,NOTICE:5,INFO:6,DEBUG:7};function Nn(e){return e.replace(/\x1b\[[0-9;]*m/g,``)}function Pn(e,t,n,r){let i=new Date;return i.setHours(e,t,n,r),i.getTime()}function Fn(e,t){if(e.trim()===``)return null;try{let n=JSON.parse(e);if(n&&typeof n==`object`&&`severityName`in n){let e=n,r=typeof e.timeStamp==`number`?e.timeStamp:null;return{index:t,ts:r,record:{uid:typeof e.uid==`number`?e.uid:t,severity:typeof e.severity==`number`?e.severity:6,severityName:String(e.severityName),moduleName:typeof e.moduleName==`string`?e.moduleName:``,msgid:typeof e.msgid==`string`?e.msgid:``,msg:typeof e.msg==`string`?e.msg:void 0,timeStamp:r??Date.now(),pid:typeof e.pid==`number`?e.pid:0,payload:e.payload,requestId:typeof e.requestId==`string`?e.requestId:void 0}}}}catch{}let n=Nn(e),r=n.match(/^(\d{2}):(\d{2}):(\d{2})\.(\d{3})\s+([A-Z]+)\s+(.*)$/);if(r){let i=Pn(+r[1],+r[2],+r[3],+r[4]),a=r[5],o=r[6],s=``,c=o.indexOf(` : `);c!==-1&&(s=o.slice(0,c).trim(),o=o.slice(c+3));let l=n.match(/\[([0-9a-fA-F]{8,})\]/);return{index:t,ts:i,record:{uid:t,severity:Mn[a]??6,severityName:a,moduleName:``,msgid:s,timeStamp:i,pid:0,payload:e,requestId:l?l[1]:void 0}}}return{index:t,ts:null,record:{uid:t,severity:6,severityName:`INFO`,moduleName:``,msgid:``,timeStamp:Date.now(),pid:0,payload:e}}}var In=ft(()=>{let e=J(),[t,n]=(0,Z.useState)([]),[r,i]=(0,Z.useState)(!0),[a,o]=(0,Z.useState)(),[s,c]=(0,Z.useState)(null),[l,u]=(0,Z.useState)([]),[h,g]=(0,Z.useState)(null),[v,b]=(0,Z.useState)(0),[x,S]=(0,Z.useState)(!1),[w,T]=(0,Z.useState)(2),E=(0,Z.useRef)(null),[D,O]=(0,Z.useState)(null),[A,j]=(0,Z.useState)(``),[M,P]=(0,Z.useState)(!1),ee=(0,Z.useCallback)(()=>{e.api.getAbsolute(`/nodefony/syslog/api/files`).then(e=>{i(e.enabled),o(e.reason),n(e.files??[]),c(t=>t??e.files?.[0]?.name??null)}).catch(e=>g(e instanceof Error?e.message:`liste fichiers échouée`))},[e]);(0,Z.useEffect)(()=>ee(),[ee]);let F=(0,Z.useCallback)(()=>{s&&(S(!1),b(0),e.api.getAbsolute(`/nodefony/syslog/api/files/${encodeURIComponent(s)}?lines=5000`).then(e=>{u(e.lines??[]),g(null)}).catch(e=>g(e instanceof Error?e.message:`lecture fichier échouée`)))},[s,e]);(0,Z.useEffect)(()=>F(),[F]);let I=(0,Z.useMemo)(()=>{let e=[];return l.forEach((t,n)=>{let r=Fn(t,n);r&&e.push({...r,index:e.length})}),e},[l]),L=I.length,te=(0,Z.useMemo)(()=>I.map(e=>e.record),[I]),ne=(0,Z.useMemo)(()=>A?te.filter(e=>e.requestId===A).length:0,[te,A]),R=(0,Z.useMemo)(()=>{let e=Array(L);for(let t=0;t<L;t++){if(t===0){e[t]=0;continue}let n=I[t-1].ts,r=I[t].ts;n===null||r===null?e[t]=kn:e[t]=Math.min(Math.max(r-n,0),On)}return e},[I,L]),re=(0,Z.useMemo)(()=>{let e=0;for(let t=1;t<=v&&t<L;t++)e+=R[t];return e},[v,R,L]),z=(0,Z.useMemo)(()=>R.reduce((e,t)=>e+t,0),[R]);(0,Z.useEffect)(()=>{if(!x||v>=L)return;let e=R[v]===void 0?0:R[v]/w,t=window.setTimeout(()=>b(e=>Math.min(e+1,L)),e);return()=>window.clearTimeout(t)},[x,v,w,L,R]),(0,Z.useEffect)(()=>{x&&v>=L&&L>0&&S(!1)},[x,v,L]),(0,Z.useEffect)(()=>{if(!x)return;let e=E.current;e&&e.scrollTo({top:e.scrollHeight})},[v,x]);let ie=()=>{v>=L&&b(0),S(e=>!e)},ae=()=>{b(0),S(!0)},oe=()=>{S(!1),b(L)},ce=(0,Z.useMemo)(()=>t.map(e=>({value:e.name,label:e.name})),[t]),le=Math.max(0,v-An),ue=M&&A?I.slice(0,v).filter(e=>e.record.requestId===A).slice(-300):I.slice(le,v);return r?(0,Q.jsxs)(k,{gap:`sm`,children:[(0,Q.jsxs)(Le,{p:`xs`,withBorder:!0,radius:`md`,children:[(0,Q.jsxs)(y,{justify:`space-between`,wrap:`wrap`,gap:`sm`,children:[(0,Q.jsxs)(y,{gap:`xs`,wrap:`nowrap`,children:[(0,Q.jsx)(N,{size:`xs`,data:ce,value:s,onChange:c,placeholder:`Choisir un fichier…`,searchable:!0,style:{minWidth:260},nothingFoundMessage:`Aucun fichier .log`}),(0,Q.jsx)(_,{label:`Recharger le fichier`,children:(0,Q.jsx)(C,{variant:`default`,onClick:F,"aria-label":`recharger`,children:(0,Q.jsx)(se,{size:16})})}),(0,Q.jsx)(f,{title:`Rejeu d'un fichier de log`,version:X,summary:`Rejoue le fichier comme un enregistrement : le rythme respecte les écarts de temps réels entre logs (bornés à 2,5 s), divisés par la vitesse.`,sections:[{label:`Formats`,body:`Comprend le JSON (driver d'écriture « fichier ») et le texte console. Le JSON donne le rythme le plus fidèle.`},{label:`Si vide`,body:`Aucun fichier ? Le serveur écrit sur la console par défaut. Passe le driver d'écriture sur « fichier » (config.log.driver) pour générer des .log rejouables.`}]})]}),(0,Q.jsxs)(y,{gap:`xs`,wrap:`nowrap`,children:[(0,Q.jsx)(_,{label:x?`Pause`:v>=L?`Rejouer`:`Lecture`,children:(0,Q.jsx)(C,{variant:`filled`,color:`brand`,onClick:ie,disabled:L===0,"aria-label":x?`pause`:`lecture`,children:x?(0,Q.jsx)(ot,{size:16}):(0,Q.jsx)(st,{size:16})})}),(0,Q.jsx)(_,{label:`Reprendre au début`,children:(0,Q.jsx)(C,{variant:`default`,onClick:ae,disabled:L===0,"aria-label":`reprendre au début`,children:(0,Q.jsx)(gn,{size:16})})}),(0,Q.jsx)(_,{label:`Tout afficher (fin)`,children:(0,Q.jsx)(C,{variant:`default`,onClick:oe,disabled:L===0,"aria-label":`tout afficher`,children:(0,Q.jsx)(hn,{size:16})})}),(0,Q.jsx)(d,{size:`xs`,value:String(w),onChange:e=>T(Number(e)),data:jn.map(e=>({value:String(e),label:`×${e}`})),"aria-label":`vitesse de rejeu`})]})]}),(0,Q.jsxs)(y,{gap:`sm`,wrap:`nowrap`,mt:`xs`,children:[(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`,minWidth:92},children:[v,` / `,L]}),(0,Q.jsx)(ze,{flex:1,size:`sm`,min:0,max:Math.max(L,1),value:v,onChange:e=>{S(!1),b(e)},label:e=>`${e} / ${L}`,disabled:L===0,"aria-label":`position de rejeu`}),(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`,minWidth:110},children:[(re/1e3).toFixed(1),`s / `,(z/1e3).toFixed(1),`s`]})]}),A&&(0,Q.jsxs)(y,{gap:`xs`,wrap:`nowrap`,mt:`xs`,children:[(0,Q.jsxs)(W,{variant:`light`,color:`grape`,leftSection:(0,Q.jsx)(Ye,{size:12}),style:{fontFamily:`monospace`},children:[`Suivi : `,A.slice(0,8),` — `,ne,` ligne(s)`]}),(0,Q.jsx)(m,{size:`xs`,label:`Cette requête seule`,checked:M,onChange:e=>P(e.currentTarget.checked)}),(0,Q.jsx)(_,{label:`Arrêter le suivi`,children:(0,Q.jsx)(C,{size:`sm`,variant:`subtle`,color:`gray`,onClick:()=>{j(``),P(!1)},"aria-label":`arrêter le suivi de requête`,children:(0,Q.jsx)(gt,{size:14})})})]})]}),h&&(0,Q.jsx)(K,{color:`red`,variant:`light`,title:`Erreur`,children:h}),(0,Q.jsx)(Le,{withBorder:!0,radius:`md`,children:(0,Q.jsx)(p,{h:500,viewportRef:E,type:`auto`,styles:{viewport:{fontFamily:`ui-monospace, SFMono-Regular, Menlo, monospace`,fontSize:12,lineHeight:1.5,contain:`content`}},children:L===0?(0,Q.jsx)(G,{size:`sm`,c:`dimmed`,ta:`center`,py:`xl`,children:s?`Fichier vide ou non daté.`:`Sélectionne un fichier à rejouer.`}):v===0?(0,Q.jsxs)(G,{size:`sm`,c:`dimmed`,ta:`center`,py:`xl`,children:[`Prêt — appuie sur ▶ pour rejouer `,L,` ligne(s).`]}):(0,Q.jsx)(k,{gap:0,p:`xs`,children:ue.map(e=>{let t=e.record,n=Je(t),r=e.index===v-1,i=A!==``&&t.requestId===A;return(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,align:`flex-start`,onClick:()=>O(t),role:`button`,tabIndex:0,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),O(t))},style:{cursor:`pointer`,padding:`1px 4px`,borderRadius:4,background:r?`var(--mantine-color-brand-light)`:void 0,borderLeft:i?`2px solid var(--mantine-color-grape-6)`:`2px solid transparent`},children:[(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,style:{flexShrink:0,fontVariantNumeric:`tabular-nums`},children:[Ot(t.timeStamp),(0,Q.jsxs)(G,{span:!0,size:`xs`,children:[`.`,It(t.timeStamp)]})]}),(0,Q.jsx)(Tt,{severity:t.severityName}),n&&(0,Q.jsx)(W,{size:`xs`,variant:`light`,color:n.color,style:{flexShrink:0},children:n.label}),t.requestId&&(0,Q.jsx)(_,{label:i?`Arrêter de suivre cette requête`:`Suivre la requête ${t.requestId.slice(0,8)}`,children:(0,Q.jsx)(W,{size:`xs`,variant:i?`filled`:`outline`,color:`grape`,style:{flexShrink:0,fontFamily:`monospace`,cursor:`pointer`},onClick:e=>{e.stopPropagation(),j(i?``:t.requestId)},children:t.requestId.slice(0,8)})}),(0,Q.jsx)(G,{size:`xs`,style:{wordBreak:`break-word`},children:Vt(Y(t))})]},e.index)})})})}),(0,Q.jsx)(Dn,{record:D,onClose:()=>O(null),localRecords:te,onTrace:e=>{O(null),j(e)}})]}):(0,Q.jsx)(K,{color:`blue`,variant:`light`,icon:(0,Q.jsx)(V,{size:16}),title:`Rejeu indisponible (production)`,children:a??`En production, les logs vont sur stdout/stderr → collecteur. Pas de fichiers locaux à rejouer.`})});function Ln({logDir:e}){let[t,n]=(0,Z.useState)(`follow`);return(0,Q.jsxs)(k,{gap:`sm`,children:[(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,children:[(0,Q.jsx)(it,{size:15}),(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,children:`Dossier\xA0:`}),e?(0,Q.jsx)(H,{children:e}):(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,children:`aucun — production cloud-native : logs → stdout → collecteur (pas de fichiers locaux)`})]}),(0,Q.jsxs)(y,{gap:`xs`,children:[(0,Q.jsx)(d,{size:`xs`,value:t,onChange:e=>n(e),data:[{value:`follow`,label:(0,Q.jsxs)(y,{gap:4,wrap:`nowrap`,children:[(0,Q.jsx)(mn,{size:14}),(0,Q.jsx)(`span`,{children:`Suivi (tail)`})]})},{value:`replay`,label:(0,Q.jsxs)(y,{gap:4,wrap:`nowrap`,children:[(0,Q.jsx)(st,{size:14}),(0,Q.jsx)(`span`,{children:`Rejeu`})]})}],"aria-label":`mode de lecture des fichiers de log`}),(0,Q.jsx)(r,{text:t===`follow`?`Suivi : affiche les nouvelles lignes au fil de l'eau (comme tail -f).`:`Rejeu : relit le fichier comme un enregistrement, à son propre rythme (play/pause/vitesse).`})]}),t===`follow`?(0,Q.jsx)(Tn,{}):(0,Q.jsx)(In,{})]})}function Rn({label:e,value:t,color:n}){return t<=0?null:(0,Q.jsx)(W,{variant:`light`,color:n,tt:`none`,children:(0,Q.jsxs)(y,{gap:4,wrap:`nowrap`,children:[(0,Q.jsx)(G,{span:!0,fz:11,children:e}),(0,Q.jsx)(G,{span:!0,fz:11,fw:700,style:{fontVariantNumeric:`tabular-nums`},children:(0,Q.jsx)(re,{value:t,children:t.toLocaleString(`fr-FR`)})})]})})}function zn({meta:e,realtimeState:t}){if((0,Z.useEffect)(ce,[]),!e)return(0,Q.jsx)(he,{ariaLabel:`Mode du Log Backplane`,segments:[{id:`loading`,label:`Log Backplane`,value:(0,Q.jsx)(G,{size:`sm`,c:`dimmed`,children:`chargement…`})}]});let n=e.activeDriver,r=Ht(e).filter(e=>e.on),i=At(t),a=i.live?`ok`:t===`error`?`danger`:t===`connecting`||t===`reconnecting`?`warn`:`neutral`,o=[{id:`write`,label:`Écriture →`,icon:(0,Q.jsx)(at,{size:18}),tone:`neutral`,value:(0,Q.jsx)(y,{gap:4,wrap:`wrap`,children:r.map(e=>(0,Q.jsx)(W,{size:`sm`,variant:`light`,color:`gray`,tt:`none`,children:e.label},e.id))}),info:(0,Q.jsx)(f,{title:`Écriture — le fan-out`,version:X,summary:`Comme un robinet qui remplit plusieurs seaux à la fois : chaque log est copié vers TOUTES ces destinations en même temps.`,sections:[{label:`Pourquoi plusieurs ?`,body:`Pour avoir d'un seul geste le direct (mémoire), une trace lisible (texte) ET une archive cherchable (JSONL, Loki, OpenSearch) — sans choisir.`},{label:`Figé par la config`,body:`En production on n'écrit que vers UNE destination (12-factor, traçabilité) ; en développement on écrit partout pour pouvoir tester chaque mode de lecture.`}]})},{id:`read`,label:`Lecture ←`,icon:(0,Q.jsx)(ct,{size:18}),tone:`active`,value:(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,children:[(0,Q.jsx)(G,{size:`sm`,fw:600,truncate:!0,children:n?zt(n.name).label:`aucune`}),n&&(0,Q.jsx)(W,{size:`xs`,variant:`default`,tt:`none`,children:n.name})]}),info:(0,Q.jsx)(f,{title:`Lecture — le fond de panier`,version:X,summary:`Le « fond de panier » (backplane) qu'on RELIT et qu'on fouille. On n'en examine qu'UN à la fois : c'est le seau qu'on inspecte, pas le robinet.`,sections:[{label:`Indépendant de l'écriture`,body:`On peut écrire partout mais ne relire que la mémoire. Changer la destination de lecture ne change QUE ce que montre l'onglet Explorer.`},{label:`Pourquoi un seul ?`,body:`Une recherche interroge une source ; mélanger plusieurs sources fausserait l'ordre chronologique et les totaux.`}]})},{id:`live`,label:`Live`,icon:(0,Q.jsx)(vt,{size:18}),tone:a,value:(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,children:[(0,Q.jsx)(M,{"aria-hidden":!0,style:{width:8,height:8,borderRadius:`50%`,background:`var(--mantine-color-${i.color}-6)`,flexShrink:0}}),(0,Q.jsx)(G,{size:`sm`,fw:600,children:i.label})]}),info:(0,Q.jsx)(f,{title:`Live — le bus temps réel`,version:X,summary:`Le haut-parleur des logs : le bus « nodefony:syslog » diffuse chaque log au fil de l'eau, indépendamment de la destination de lecture.`,sections:[{label:`Toujours disponible`,body:`Même si la destination de lecture ne sait pas faire de temps réel, le Live fonctionne : il écoute les logs à la source, pas via le driver.`},{label:`L'état`,body:`« connecté » = le flux arrive ; « reconnexion » = le navigateur rétablit la WebSocket (le flux reprendra tout seul).`}]})}],s=e.environment,c=(0,Q.jsxs)(Q.Fragment,{children:[s&&(0,Q.jsx)(W,{variant:`light`,color:s===`development`?`brand`:`gray`,tt:`none`,children:s}),(0,Q.jsx)(Rn,{label:`err`,value:e.counters.errorTotal,color:`orange`}),(0,Q.jsx)(Rn,{label:`crit`,value:e.counters.criticTotal,color:`red`})]});return(0,Q.jsx)(he,{ariaLabel:`Mode du Log Backplane`,segments:o,trailing:c})}var Bn=500,Vn=48,Hn=ft(({onSelect:e,cluster:n})=>{let r=He(),i=J(),[a,o]=(0,Z.useState)([]),[s,c]=(0,Z.useState)(!1),[l,u]=(0,Z.useState)(``),[d,m]=(0,Z.useState)(()=>new Set),[h,g]=(0,Z.useState)(0),[v,b]=(0,Z.useState)(!0),[x,S]=(0,Z.useState)(0),T=(0,Z.useRef)(null),E=(0,Z.useRef)(s);E.current=s;let D=(0,Z.useRef)(v);D.current=v;let O=(0,Z.useRef)(0);(0,Z.useEffect)(()=>{let e=!1;return i.api.getAbsolute(`/nodefony/syslog/api/logs?limit=200`).then(t=>{if(e||!Array.isArray(t))return;let n=[];for(let e of[...t].reverse()){let t=Bt(e);t&&n.push({rec:t,key:`snap-${O.current++}`})}o(e=>e.length===0?n:e)}).catch(()=>{}),()=>{e=!0}},[i]),(0,Z.useEffect)(()=>{let e=r.subscribe(w.syslog,e=>{if(E.current||!e||typeof e!=`object`)return;let t=e,n=Array.isArray(t.logs)?t.logs:[e];t.dropped&&g(e=>e+t.dropped);let r=[];for(let e of n){let t=Bt(e);t&&r.push({rec:t,key:`${t.uid}-${O.current++}`})}r.length!==0&&(o(e=>{let t=[...e,...r];return t.length>Bn?t.slice(-500):t}),D.current||S(e=>e+r.length))});return()=>e()},[r]),(0,Z.useEffect)(()=>{if(!D.current)return;let e=T.current;e&&e.scrollTo({top:e.scrollHeight})},[a]);let A=()=>{let e=T.current;if(!e)return;let t=e.scrollHeight-e.scrollTop-e.clientHeight<Vn;b(t),t&&S(0)},j=()=>{let e=T.current;e&&e.scrollTo({top:e.scrollHeight,behavior:`smooth`}),b(!0),S(0)},M=e=>m(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),N=(0,Z.useMemo)(()=>Mt(a.map(e=>e.rec)),[a]),P=(0,Z.useMemo)(()=>{let e=l.trim().toLowerCase(),t=d.size>0;return!t&&!e?a:a.filter(n=>!(t&&!d.has(n.rec.severityName)||e&&!`${n.rec.moduleName} ${n.rec.msgid} ${Y(n.rec)}`.toLowerCase().includes(e)))},[a,d,l]);return(0,Q.jsxs)(k,{gap:`sm`,children:[(0,Q.jsx)(Pt,{cluster:n,driverName:null,context:`live`}),(0,Q.jsx)(Le,{p:`xs`,withBorder:!0,radius:`md`,children:(0,Q.jsxs)(y,{justify:`space-between`,wrap:`wrap`,gap:`sm`,children:[(0,Q.jsxs)(y,{gap:`sm`,wrap:`wrap`,children:[(0,Q.jsx)(W,{size:`sm`,variant:`dot`,color:s?`yellow`:`teal`,children:s?`Pause`:`Live`}),(0,Q.jsxs)(G,{size:`sm`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[P.length,` / `,a.length,` entrées`]}),h>0&&(0,Q.jsx)(_,{label:`Logs omis côté serveur sous surcharge (coalescing nodefony:syslog)`,children:(0,Q.jsxs)(W,{size:`sm`,variant:`light`,color:`orange`,children:[h,` omis`]})}),(0,Q.jsx)(Ft,{counts:N,active:d,onToggle:M}),(0,Q.jsx)(f,{title:`Flux temps réel (bus nodefony:syslog)`,version:X,summary:`Les Pdu du kernel poussés en direct via WebSocket. Indépendant du driver de relecture — marche même si le driver n'est pas queryable.`,sections:[{label:`Chips de sévérité`,body:`Cliquables : filtrent l'affichage. Plusieurs sévérités = union.`},{label:`omis`,body:`Sous forte charge, le serveur coalesce et peut sauter des lignes pour ne pas saturer la socket (observabilité ≠ impact prod).`}]})]}),(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,children:[(0,Q.jsx)(Re,{size:`xs`,leftSection:(0,Q.jsx)(t,{size:14}),placeholder:`Filtrer (message, module, msgid)…`,value:l,onChange:e=>u(e.currentTarget.value),style:{width:240},"aria-label":`recherche plein-texte dans le flux`}),(0,Q.jsx)(_,{label:s?`Reprendre`:`Pause`,children:(0,Q.jsx)(C,{variant:`default`,onClick:()=>c(e=>!e),"aria-label":s?`reprendre le flux`:`mettre en pause`,children:s?(0,Q.jsx)(st,{size:16}):(0,Q.jsx)(ot,{size:16})})}),(0,Q.jsx)(_,{label:`Effacer l'affichage`,children:(0,Q.jsx)(C,{variant:`default`,onClick:()=>{o([]),g(0),S(0)},"aria-label":`effacer l'affichage`,children:(0,Q.jsx)(F,{size:16})})})]})]})}),(0,Q.jsxs)(Le,{withBorder:!0,radius:`md`,style:{position:`relative`},children:[(0,Q.jsx)(p,{h:520,viewportRef:T,onScrollPositionChange:A,type:`auto`,styles:{viewport:{fontFamily:`ui-monospace, SFMono-Regular, Menlo, monospace`,fontSize:12,lineHeight:1.5,contain:`content`}},children:P.length===0?(0,Q.jsx)(G,{size:`sm`,c:`dimmed`,ta:`center`,py:`xl`,children:a.length===0?`En attente de logs…`:`Aucune entrée ne correspond au filtre.`}):(0,Q.jsx)(k,{gap:0,p:`xs`,children:P.map(({rec:t,key:n})=>{let r=Nt(t.severityName);return(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,align:`flex-start`,onClick:()=>e(t),role:`button`,tabIndex:0,onKeyDown:n=>{(n.key===`Enter`||n.key===` `)&&(n.preventDefault(),e(t))},style:{cursor:`pointer`,padding:`1px 4px`,borderRadius:4,background:r?`var(--mantine-color-red-light)`:void 0},children:[(0,Q.jsx)(_,{label:`#${t.uid} — n° de séquence (ordre d'émission exact)`,openDelay:400,children:(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,ff:`monospace`,style:{flexShrink:0,minWidth:52},children:[`#`,t.uid]})}),(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,style:{flexShrink:0,fontVariantNumeric:`tabular-nums`},children:[Ot(t.timeStamp),(0,Q.jsxs)(G,{span:!0,size:`xs`,c:`dimmed`,children:[`.`,It(t.timeStamp)]})]}),(0,Q.jsx)(Tt,{severity:t.severityName}),(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,style:{flexShrink:0,minWidth:88},truncate:!0,children:t.moduleName}),t.requestId&&(0,Q.jsx)(_,{label:`requestId ${t.requestId}`,children:(0,Q.jsx)(W,{size:`xs`,variant:`outline`,color:`grape`,style:{flexShrink:0,fontFamily:`monospace`},children:t.requestId.slice(0,8)})}),(0,Q.jsx)(G,{size:`xs`,style:{wordBreak:`break-word`},children:Vt(Y(t))})]},n)})})}),!v&&x>0&&(0,Q.jsxs)(U,{size:`xs`,radius:`xl`,color:`brand`,leftSection:(0,Q.jsx)(et,{size:14}),onClick:j,style:{position:`absolute`,bottom:12,left:`50%`,transform:`translateX(-50%)`,boxShadow:`var(--mantine-shadow-md)`},children:[x,` nouveau`,x>1?`x`:``]})]})]})}),Un=`nf.logs.explorer.filters.v1`,Wn=ft(({capabilities:e,driverName:t,traceRequestId:n,onSelect:i,refreshKey:a=0,cluster:o})=>{let s=J(),c=(0,Z.useMemo)(()=>{try{return JSON.parse(sessionStorage.getItem(Un)??`{}`)}catch{return{}}},[]),[l,u]=(0,Z.useState)(n||c.requestId||``),[p,m]=(0,Z.useState)(n?`asc`:c.order??`desc`),[h,g]=(0,Z.useState)(c.protocol??`all`),[v,b]=(0,Z.useState)(c.flows??[]),[x,S]=(0,Z.useState)(new Set(c.severities??[])),[w,T]=(0,Z.useState)(c.moduleF??``),[E,D]=(0,Z.useState)(c.msgidF??``);(0,Z.useEffect)(()=>{try{sessionStorage.setItem(Un,JSON.stringify({requestId:l,order:p,protocol:h,flows:v,severities:[...x],moduleF:w,msgidF:E}))}catch{}},[l,p,h,v,x,w,E]);let O=h!==`all`||v.length>0||x.size>0||w.trim()!==``||E.trim()!==``,A=`${h}|${[...v].sort().join(`,`)}|${[...x].sort().join(`,`)}|${w.trim()}|${E.trim()}`,j=()=>{g(`all`),b([]),S(new Set),T(``),D(``)},N=(0,Z.useMemo)(()=>Xe(h),[h]);(0,Z.useEffect)(()=>{let e=new Set(qe(h));b(t=>t.filter(t=>e.has(t)))},[h]),(0,Z.useEffect)(()=>{n&&(u(n),m(`asc`))},[n]);let P=(0,Z.useCallback)(async e=>{let t=ut(e);t.set(`order`,`timeStamp:${p===`asc`?`ASC`:`DESC`}`),l.trim()&&t.set(`requestId`,l.trim()),h!==`all`&&t.set(`protocol`,h);for(let e of v)t.append(`flow`,e);for(let e of x)t.append(`severity`,e);w.trim()&&t.set(`module`,w.trim()),E.trim()&&t.set(`msgid`,E.trim());let n=await s.api.getAbsolute(`/nodefony/syslog/api/logs/search?${t.toString()}`);return{rows:n.rows,total:n.total}},[s,l,p,a,h,v,x,w,E]),ee=(0,Z.useMemo)(()=>[{key:`uid`,header:`#`,size:76,hint:`Numéro de séquence (uid) — compteur monotone d'émission. Garantit la chronologie EXACTE même quand l'horloge (ms) est identique.`,value:e=>e.uid,render:e=>(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,ff:`monospace`,style:{fontVariantNumeric:`tabular-nums`},children:[`#`,e.uid]})},{key:`time`,header:`Heure`,size:118,hint:`Horodatage à la milliseconde. À débit élevé, plusieurs logs partagent la même ms → se fier au # (séquence) pour l'ordre exact.`,value:e=>e.timeStamp,render:e=>(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[Ot(e.timeStamp),(0,Q.jsxs)(G,{span:!0,size:`xs`,children:[`.`,It(e.timeStamp)]})]})},{key:`severity`,header:`Sévérité`,size:120,value:e=>e.severityName,render:e=>(0,Q.jsx)(Tt,{severity:e.severityName})},{key:`module`,header:`Module`,size:130,value:e=>e.moduleName,render:e=>(0,Q.jsx)(jt,{moduleName:e.moduleName})},{key:`msgid`,header:`msgid`,size:120,value:e=>e.msgid,render:e=>e.msgid?(0,Q.jsx)(H,{style:{fontSize:11},children:e.msgid}):(0,Q.jsx)(G,{c:`dimmed`,children:`—`})},{key:`requestId`,header:`requestId`,size:130,value:e=>e.requestId??``,render:e=>e.requestId?(0,Q.jsx)(_,{label:`Tracer toute la requête`,children:(0,Q.jsx)(W,{component:`button`,type:`button`,variant:`outline`,color:`grape`,size:`sm`,style:{cursor:`pointer`,fontFamily:`monospace`},onClick:t=>{t.stopPropagation(),u(e.requestId),m(`asc`)},children:e.requestId.slice(0,8)})}):(0,Q.jsx)(G,{c:`dimmed`,size:`xs`,children:`—`})},{key:`flow`,header:`Étape`,size:140,hint:`Traduit l'event technique en étape logique du cycle de la requête (entrée → routage → session → réponse → fin). Vide (—) = log applicatif libre (ton métier). Légende complète dans l'onglet Backplane.`,value:e=>Je(e)?.label??``,render:e=>{let t=Je(e);return t?(0,Q.jsx)(W,{size:`xs`,variant:`light`,color:t.color,children:t.label}):(0,Q.jsx)(G,{c:`dimmed`,size:`xs`,children:`—`})}},{key:`message`,header:`Message`,size:420,value:e=>Y(e),render:e=>(0,Q.jsx)(G,{size:`xs`,style:{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:Vt(Y(e))})}],[]);if(e&&!e.query)return(0,Q.jsxs)(K,{color:`yellow`,variant:`light`,icon:(0,Q.jsx)(V,{size:16}),title:`Le driver « ${t??`?`} » ne permet pas la recherche`,children:[`Ce driver de logs ne sait pas `,(0,Q.jsx)(`b`,{children:`fouiller l'historique`}),` : il transmet les logs (ici, vers la console) sans les conserver d'une façon interrogeable. Seul l'onglet `,(0,Q.jsx)(`b`,{children:`Live`}),` reste disponible. Pour explorer le passé, choisis un driver avec la capacité `,(0,Q.jsx)(`b`,{children:`Recherche`}),`(`,(0,Q.jsx)(H,{children:`mémoire`}),`, `,(0,Q.jsx)(H,{children:`fichier`}),`/`,(0,Q.jsx)(H,{children:`cluster-file`}),`, ou `,(0,Q.jsx)(H,{children:`Loki`}),`/`,(0,Q.jsx)(H,{children:`OpenSearch`}),` à venir) dans le sélecteur du bandeau.`]});let F=t?zt(t).label:`—`;return(0,Q.jsxs)(k,{gap:`sm`,children:[(0,Q.jsx)(Le,{withBorder:!0,radius:`md`,p:`sm`,bg:`var(--mantine-color-default-hover)`,children:(0,Q.jsxs)(y,{justify:`space-between`,wrap:`wrap`,gap:`sm`,children:[(0,Q.jsxs)(y,{gap:`sm`,wrap:`nowrap`,style:{minWidth:0},children:[(0,Q.jsx)(Lt,{name:t??`generic`}),(0,Q.jsxs)(M,{style:{minWidth:0},children:[(0,Q.jsx)(G,{fz:10,fw:700,tt:`uppercase`,c:`dimmed`,style:{letterSpacing:.4,lineHeight:1.2},children:`Tu explores`}),(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,style:{minWidth:0},children:[(0,Q.jsx)(G,{fw:700,truncate:!0,children:F}),t&&(0,Q.jsx)(W,{size:`xs`,variant:`default`,tt:`none`,children:t}),(0,Q.jsx)(W,{size:`xs`,variant:`light`,color:`blue`,tt:`none`,children:`recherche froide`})]})]})]}),(0,Q.jsxs)(y,{gap:`xs`,wrap:`nowrap`,children:[e&&(0,Q.jsx)(Rt,{capabilities:e,size:`xs`}),(0,Q.jsx)(f,{title:`Ce que tu explores`,version:X,summary:`L'Explorer fouille la DESTINATION DE LECTURE active (le « fond de panier » sélectionné) — une recherche FROIDE dans l'historique déjà stocké, paginée côté serveur.`,sections:[{label:`Quelle source ?`,body:`Ici : « ${F} »${t?` (${t})`:``}. On la change dans l'onglet « Vue d'ensemble » (en dev). Ce choix n'affecte QUE l'Explorer — ni l'écriture (fan-out), ni le Live.`},{label:`Froide ≠ live`,body:`« Froide » = on interroge le passé déjà rangé dans cette source (≠ le flux temps réel de l'onglet Live, qui écoute à la source).`}]})]})]})}),(0,Q.jsx)(Pt,{cluster:o,driverName:t,context:`query`}),(0,Q.jsxs)(Le,{withBorder:!0,radius:`md`,p:`sm`,children:[(0,Q.jsxs)(y,{gap:`xs`,mb:`xs`,wrap:`nowrap`,children:[(0,Q.jsx)(Re,{size:`xs`,leftSection:(0,Q.jsx)(Ye,{size:14}),placeholder:`requestId — trace full-stack d'une requête (tous modules)`,value:l,onChange:e=>u(e.currentTarget.value),style:{flex:1,maxWidth:460,fontFamily:`monospace`},"aria-label":`tracer une requête par requestId`,rightSection:l?(0,Q.jsx)(C,{size:`sm`,variant:`subtle`,color:`gray`,onClick:()=>u(``),"aria-label":`effacer la trace`,children:(0,Q.jsx)(gt,{size:14})}):null}),l&&(0,Q.jsx)(W,{variant:`light`,color:`grape`,size:`sm`,children:`trace active`}),(0,Q.jsx)(_,{label:p===`desc`?`Récent → ancien (défaut)`:`Ancien → récent (lecture chronologique)`,children:(0,Q.jsx)(d,{size:`xs`,value:p,onChange:e=>m(e),data:[{value:`desc`,label:(0,Q.jsxs)(y,{gap:4,wrap:`nowrap`,children:[(0,Q.jsx)(yn,{size:14}),(0,Q.jsx)(G,{size:`xs`,children:`récent`})]})},{value:`asc`,label:(0,Q.jsxs)(y,{gap:4,wrap:`nowrap`,children:[(0,Q.jsx)(vn,{size:14}),(0,Q.jsx)(G,{size:`xs`,children:`chrono`})]})}],"aria-label":`ordre chronologique des logs`})}),(0,Q.jsx)(f,{title:`Explorer (requête froide du backplane)`,version:X,summary:`Interroge le driver de relecture actif. Pagination et filtres côté serveur — supporte des milliers de logs sans charger la page.`,sections:[{label:`Trace full-stack`,body:`Un requestId corrèle tous les logs d'UNE requête (ALS) — appel base de données inclus. Clique un badge requestId ou colle-en un ici pour suivre une requête de bout en bout. Essaie GET /nodefony/test/db/trace.`},{label:`Trouver une requête par URL`,body:`Tape l'URL ou la route dans la barre de RECHERCHE (ex. « GET /api/users ») : tu retrouves le bilan de la/les requête(s) correspondante(s) ; clique alors son requestId pour dérouler toute sa trace.`},{label:`Ordre & chronologie`,body:`Bascule récent↔chrono. L'ordre s'appuie sur le # (uid, séquence d'émission monotone), pas sur l'horloge ms — donc l'ordre reste exact même quand plusieurs logs tombent dans la même milliseconde.`}]})]}),(0,Q.jsxs)(y,{gap:`sm`,wrap:`wrap`,align:`center`,children:[(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,children:[(0,Q.jsx)(pt,{size:14}),(0,Q.jsx)(G,{size:`xs`,fw:600,c:`dimmed`,children:`Protocole`}),(0,Q.jsx)(r,{text:`WS = logs des connexions WebSocket (msgid « WEBSOCKET CONTEXT » : handshake, messages, fermeture). HTTP = tout le reste du pipeline (requête, routage, firewall, applicatif). Critère appliqué côté serveur (pduProtocol).`})]}),(0,Q.jsx)(d,{size:`xs`,value:h,onChange:e=>g(e),data:[{value:`all`,label:`Tous`},{value:`http`,label:(0,Q.jsxs)(y,{gap:4,wrap:`nowrap`,children:[(0,Q.jsx)(lt,{size:13}),(0,Q.jsx)(G,{size:`xs`,children:`HTTP`})]})},{value:`ws`,label:(0,Q.jsxs)(y,{gap:4,wrap:`nowrap`,children:[(0,Q.jsx)(Ze,{size:13}),(0,Q.jsx)(G,{size:`xs`,children:`WS`})]})}],"aria-label":`filtrer par protocole`}),(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,children:[(0,Q.jsx)(Ke,{size:14}),(0,Q.jsx)(G,{size:`xs`,fw:600,c:`dimmed`,children:`Étape`}),(0,Q.jsx)(r,{text:`Étape du cycle de vie de la requête/connexion — critère structuré (≠ recherche texte). Les options s'adaptent au protocole choisi. Les jalons notables sont en INFO/NOTICE (requête entrante, route trouvée, réponse, ouverture/fermeture WS) ; les étapes techniques (message reçu, corps reçu, dispatch, fin) restent en DEBUG → si tu les filtres en cochant INFO+, elles seront masquées.`})]}),(0,Q.jsx)(Te,{size:`xs`,w:250,data:N,value:v,onChange:e=>b(e),placeholder:v.length?void 0:`Toutes les étapes`,clearable:!0,searchable:!0,nothingFoundMessage:`Aucune étape`,comboboxProps:{withinPortal:!0},"aria-label":`filtrer par étape du cycle de vie`}),(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,children:[(0,Q.jsx)(te,{size:14}),(0,Q.jsx)(G,{size:`xs`,fw:600,c:`dimmed`,children:`Sévérité`})]}),(0,Q.jsx)(Ve.Group,{multiple:!0,value:[...x],onChange:e=>S(new Set(e)),children:(0,Q.jsx)(y,{gap:4,wrap:`wrap`,children:Et.map(e=>(0,Q.jsx)(Ve,{value:e,size:`xs`,color:wt(e),children:e},e))})}),(0,Q.jsx)(Ve,{size:`xs`,color:`grape`,checked:w===pe,onChange:e=>T(e?pe:``),"aria-label":`ne montrer que les journaux remontés par les navigateurs`,children:`Navigateur`}),(0,Q.jsx)(Re,{size:`xs`,w:150,placeholder:`Module…`,value:w,onChange:e=>T(e.currentTarget.value),"aria-label":`filtrer par module`}),(0,Q.jsx)(Re,{size:`xs`,w:150,placeholder:`msgid…`,value:E,onChange:e=>D(e.currentTarget.value),"aria-label":`filtrer par msgid`}),O&&(0,Q.jsx)(U,{size:`compact-xs`,variant:`subtle`,color:`gray`,leftSection:(0,Q.jsx)(Se,{size:14}),onClick:j,children:`Effacer`}),(0,Q.jsx)(f,{title:`Filtres`,version:X,summary:`Filtres appliqués CÔTÉ SERVEUR (sur TOUT l'historique du driver, pas seulement la page affichée). La sévérité est multi-sélection : coche plusieurs niveaux pour les cumuler.`,sections:[{label:`Comment ils se combinent`,body:`Protocole (WS ou HTTP) ET étape(s) du cycle de vie (OU entre étapes) ET sévérité (OU entre les niveaux cochés) ET module ET msgid ET recherche plein-texte — tout se cumule. La page repart à 1 à chaque changement.`},{label:`Protocole, puis cycle de vie`,body:`1) Sépare WS / HTTP à la source (WS = contexte socket : ouverture, messages, fermeture ; HTTP = le reste). 2) Le sélecteur Étape s'adapte alors au protocole et cible un jalon précis (requête entrante, route trouvée, réponse… ou ouverture/message/fermeture en WS).`},{label:`Étapes & sévérité`,body:`Les jalons notables sont en INFO/NOTICE (requête entrante, route trouvée, réponse envoyée, ouverture/fermeture WebSocket) → visibles sans DEBUG. Les étapes techniques (message reçu, corps reçu, dispatch kernel, fin) restent en DEBUG : si tu les filtres en cochant INFO+, elles seront masquées. Pour les suivre, laisse la sévérité libre ou inclus DEBUG.`}]})]}),(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,mb:`xs`,children:[p===`asc`?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`b`,{children:`Ordre chronologique`}),` : 1ʳᵉ étape en haut, réponse en bas — on lit la requête du début à la fin.`]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`b`,{children:`Plus récent en haut`}),` : la dernière ligne émise est en tête (on remonte le temps en descendant).`]}),` `,`L'ordre exact est donné par le `,(0,Q.jsx)(`b`,{children:`#`}),` (séquence d'émission), pas par l'heure (plusieurs logs partagent souvent la même milliseconde).`]}),(0,Q.jsx)(ye,{mode:`server`,loader:P,columns:ee,getRowId:e=>`${e.uid}-${e.timeStamp}`,onRowClick:i,pageSize:50,resetPageSignal:A,searchPlaceholder:`Recherche : URL/route (ex. GET /api/x), payload, module, msgid…`,emptyMessage:`Aucun log ne correspond aux critères.`,persist:{key:`studio.logs.explorer.v2`,storage:`session`}})]})]})});function Gn({active:e,onClick:t,icon:n,color:r,title:i,subtitle:a,value:o,action:s}){return(0,Q.jsxs)(L,{withBorder:!0,radius:`md`,p:`md`,role:`button`,tabIndex:0,"aria-pressed":e,onClick:t,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),t())},style:{cursor:`pointer`,borderColor:e?`var(--mantine-color-${r}-filled)`:void 0,borderWidth:e?2:1,background:e?`var(--mantine-color-${r}-light)`:void 0,transition:`border-color 120ms ease, background 120ms ease`},children:[(0,Q.jsxs)(y,{gap:`sm`,wrap:`nowrap`,mb:6,children:[(0,Q.jsx)(E,{variant:e?`filled`:`light`,color:r,size:`lg`,radius:`md`,children:n}),(0,Q.jsxs)(M,{style:{minWidth:0},children:[(0,Q.jsx)(G,{fw:700,children:i}),(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,children:a})]})]}),(0,Q.jsx)(M,{style:{minHeight:22},children:o}),s?(0,Q.jsx)(M,{mt:8,children:s}):null]})}function Kn({value:e,options:t,disabled:n,onSwitch:r,label:i,width:a=200}){return(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:[i?(0,Q.jsx)(G,{size:`xs`,fw:600,c:`dimmed`,style:{whiteSpace:`nowrap`},children:i}):null,(0,Q.jsx)(N,{size:`xs`,w:a,value:e,data:t,onChange:e=>e&&r(e),disabled:n,allowDeselect:!1,comboboxProps:{withinPortal:!0},"aria-label":`changer la source consultée (lecture)`,leftSection:(0,Q.jsx)(tt,{size:14})})]})}function qn({options:e,value:t,disabled:n,onApply:r,width:i=230}){return(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:[(0,Q.jsx)(G,{size:`xs`,fw:600,c:`dimmed`,style:{whiteSpace:`nowrap`},children:`Destinations`}),(0,Q.jsx)(Te,{size:`xs`,w:i,data:e,value:t,onChange:r,disabled:n,comboboxProps:{withinPortal:!0},"aria-label":`destinations d'écriture actives (fan-out)`,leftSection:(0,Q.jsx)(at,{size:14}),clearable:!1,hidePickedOptions:!1})]})}function Jn({dest:e}){let t=e.on?`teal`:`gray`,n=e.kind===`transport`?(0,Q.jsx)(Lt,{name:e.driverName??`generic`,color:t}):(0,Q.jsx)(E,{variant:`light`,color:t,size:34,radius:`md`,children:e.kind===`ring`?(0,Q.jsx)(tt,{size:18}):(0,Q.jsx)(at,{size:18})}),r=e.kind===`ring`&&e.capacity!==void 0?(0,Q.jsxs)(W,{size:`xs`,variant:`light`,color:`teal`,tt:`none`,children:[e.used??0,` / `,e.capacity]}):(0,Q.jsx)(W,{size:`xs`,variant:e.on?`light`:`outline`,color:t,tt:`none`,children:e.on?`actif`:`inactif`});return(0,Q.jsxs)(L,{withBorder:!0,radius:`md`,p:`md`,style:{opacity:e.on?1:.6,borderStyle:e.on?void 0:`dashed`,borderColor:e.on?`var(--mantine-color-teal-filled)`:void 0,background:e.on?`var(--mantine-color-teal-light)`:void 0},children:[(0,Q.jsxs)(y,{justify:`space-between`,wrap:`nowrap`,mb:`xs`,children:[(0,Q.jsxs)(y,{gap:`sm`,wrap:`nowrap`,style:{minWidth:0},children:[n,(0,Q.jsx)(G,{fw:700,truncate:!0,children:e.label})]}),r]}),(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,children:e.detail})]})}function Yn({meta:e,loading:n,error:r,reload:i,onSwitched:a,realtimeState:o}){let s=J(),c=Ue(),[l,u]=(0,Z.useState)(!1),[d,p]=(0,Z.useState)(`read`),[g,_]=(0,Z.useState)(!1),[v,b]=(0,Z.useState)(null),[x,S]=(0,Z.useState)(!1),C=e?.activeDriver?.name??null,T=e?.drivers??[],D=new Set(T.map(e=>e.name)),O=Dt.filter(e=>!D.has(e)),j=e?.environment===`development`,N=e?Ht(e):[],P=N.filter(e=>e.on).length,ee=N.filter(e=>e.on||e.togglable===!0),F=N.filter(e=>!e.on&&e.togglable!==!0),I=N.filter(e=>e.togglable===!0),te=I.map(e=>({value:e.id,label:e.label})),ne=I.filter(e=>e.on).map(e=>e.id),R=o?At(o):null,re=e?.write.streamEnabled!==!1,z={read:{color:`brand`,title:`Lecture`,icon:(0,Q.jsx)(t,{size:18})},write:{color:`gray`,title:`Écriture`,icon:(0,Q.jsx)(at,{size:18})},stream:{color:`teal`,title:`Temps réel`,icon:(0,Q.jsx)(vt,{size:18})}}[d],ie=[...T.map(e=>({value:e.name,label:zt(e.name).label})),...O.map(e=>{let t=zt(e);return{value:e,label:`${t.label} — ${t.upcoming?`à venir`:`via config`}`,disabled:!0}})],ae=async e=>{if(!(!e||e===C)){u(!0);try{await s.api.postAbsolute(`/nodefony/syslog/api/backplane/driver`,{name:e}),c.notify(`success`,`Lecture → « ${e} »`,{title:`Log Backplane`,source:`api`}),i(),a?.()}catch(e){c.notify(`error`,e instanceof Error?e.message:`switch refusé`,{title:`Log Backplane`,source:`api`})}finally{u(!1)}}},oe=async(e,t)=>{b(e.id);try{let n=`/nodefony/syslog/api/backplane`;e.toggleKind===`ring`?await s.api.postAbsolute(`${n}/ring`,{enabled:t}):e.toggleKind===`sink`?await s.api.postAbsolute(`${n}/sink`,{enabled:t}):await s.api.postAbsolute(`${n}/transport`,{name:e.transportName,enabled:t}),c.notify(`success`,`« ${e.label} » ${t?`activée`:`désactivée`}`,{title:`Log Backplane`,source:`api`}),i(),a?.()}catch(e){c.notify(`error`,e instanceof Error?e.message:`toggle refusé`,{title:`Log Backplane`,source:`api`})}finally{b(null)}},se=async e=>{S(!0);try{await s.api.postAbsolute(`/nodefony/syslog/api/backplane/stream`,{enabled:e}),c.notify(`success`,`Diffusion temps réel ${e?`activée`:`coupée`}`,{title:`Log Backplane`,source:`api`}),i(),a?.()}catch(e){c.notify(`error`,e instanceof Error?e.message:`toggle refusé`,{title:`Log Backplane`,source:`api`})}finally{S(!1)}};return(0,Q.jsx)(h,{loading:n&&!e,error:r,onRetry:i,minHeight:200,children:e&&(0,Q.jsxs)(k,{gap:`lg`,children:[(0,Q.jsx)(Pt,{cluster:e.cluster,driverName:C,context:`query`}),(0,Q.jsxs)(y,{gap:6,children:[(0,Q.jsxs)(G,{size:`sm`,c:`dimmed`,children:[`On `,(0,Q.jsx)(`b`,{children:`écrit`}),` vers plusieurs destinations, on en`,` `,(0,Q.jsx)(`b`,{children:`relit une`}),` (le « fond de panier »). Choisis un axe :`]}),(0,Q.jsx)(f,{title:`L'approche « fond de panier »`,version:`v2.0`,summary:`Écriture = diffusion vers plusieurs destinations en même temps. Lecture = une seule destination relue (l'Explorer). Temps réel = diffusion live, indépendante. Détail complet dans l'onglet Doc.`})]}),(0,Q.jsxs)(Ct,{cols:{base:1,sm:3},spacing:`md`,children:[(0,Q.jsx)(Gn,{active:d===`read`,onClick:()=>p(`read`),icon:(0,Q.jsx)(t,{size:20}),color:`brand`,title:`Lecture`,subtitle:`la source consultée`,value:(0,Q.jsx)(G,{size:`sm`,fw:600,truncate:!0,children:C?zt(C).label:`—`}),action:j?(0,Q.jsx)(Kn,{value:C,options:ie,disabled:l,onSwitch:ae,label:`Changer`,width:170}):void 0}),(0,Q.jsx)(Gn,{active:d===`write`,onClick:()=>p(`write`),icon:(0,Q.jsx)(at,{size:20}),color:`gray`,title:`Écriture`,subtitle:`diffusion · ${P} active${P>1?`s`:``}`,value:(0,Q.jsx)(y,{gap:4,wrap:`wrap`,children:N.filter(e=>e.on).map(t=>(0,Q.jsx)(W,{size:`xs`,variant:`light`,color:`teal`,tt:`none`,children:t.kind===`ring`?`mémoire`:t.kind===`sink`?e.write.sink:t.driverName??t.label},t.id))}),action:j&&te.length>0?(0,Q.jsx)(qn,{options:te,value:ne,disabled:v!==null,onApply:e=>{for(let t of I){let n=e.includes(t.id);if(n!==t.on){oe(t,n);break}}}}):void 0}),(0,Q.jsx)(Gn,{active:d===`stream`,onClick:()=>p(`stream`),icon:(0,Q.jsx)(vt,{size:20}),color:`teal`,title:`Temps réel`,subtitle:`diffusion live`,value:(0,Q.jsx)(G,{size:`sm`,fw:600,truncate:!0,c:re?void 0:`dimmed`,children:re?R?R.label:w.syslog:`diffusion coupée`}),action:j?(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:[(0,Q.jsx)(G,{size:`xs`,fw:600,c:`dimmed`,children:`Diffusion`}),(0,Q.jsx)(m,{size:`sm`,checked:re,disabled:x,onChange:e=>se(e.currentTarget.checked),"aria-label":re?`Couper la diffusion temps réel`:`Activer la diffusion temps réel`})]}):void 0})]}),(0,Q.jsxs)(L,{withBorder:!0,radius:`md`,p:`md`,style:{borderColor:`var(--mantine-color-${z.color}-filled)`,borderWidth:2},children:[(0,Q.jsxs)(y,{gap:`xs`,mb:`sm`,children:[(0,Q.jsx)(E,{variant:`light`,color:z.color,size:`md`,radius:`md`,children:z.icon}),(0,Q.jsx)(G,{fw:700,children:z.title}),(0,Q.jsx)(W,{variant:`light`,color:z.color,size:`xs`,tt:`none`,children:`axe sélectionné`})]}),d===`read`&&(0,Q.jsxs)(k,{gap:`xs`,children:[(0,Q.jsxs)(G,{size:`sm`,c:`dimmed`,children:[`L'Explorer fouille `,(0,Q.jsx)(`b`,{children:`une`}),` destination à la fois — celle-ci.`,j?` Basculable à chaud (dev).`:``]}),(0,Q.jsx)(L,{withBorder:!0,radius:`md`,p:`md`,children:(0,Q.jsxs)(k,{gap:`sm`,children:[(0,Q.jsxs)(y,{justify:`space-between`,wrap:`wrap`,gap:`md`,children:[(0,Q.jsxs)(y,{gap:`sm`,wrap:`nowrap`,style:{minWidth:0},children:[(0,Q.jsx)(Lt,{name:C??`generic`,color:`brand`}),(0,Q.jsxs)(M,{style:{minWidth:0},children:[(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,children:[(0,Q.jsx)(G,{fz:10,fw:700,tt:`uppercase`,c:`brand`,style:{letterSpacing:.4,lineHeight:1.2},children:`Source consultée`}),(0,Q.jsx)(G,{fz:10,c:`dimmed`,style:{lineHeight:1.2},children:`· relecture`})]}),(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,style:{minWidth:0},children:[(0,Q.jsx)(G,{fw:700,truncate:!0,children:C?zt(C).label:`Aucune destination`}),e.activeDriver&&(0,Q.jsx)(W,{size:`xs`,variant:`default`,tt:`none`,children:e.activeDriver.name})]}),e.activeDriver&&(0,Q.jsx)(y,{gap:`xs`,mt:4,wrap:`nowrap`,children:(0,Q.jsx)(Rt,{capabilities:e.activeDriver.capabilities})})]})]}),j&&(0,Q.jsx)(Kn,{value:C,options:ie,disabled:l,onSwitch:ae,label:`Changer la source consultée`,width:220})]}),(0,Q.jsx)($n,{driverName:C})]})}),(0,Q.jsxs)(y,{gap:6,mt:4,children:[(0,Q.jsx)(G,{fz:10,fw:700,tt:`uppercase`,c:`dimmed`,style:{letterSpacing:.4},children:`Paniers disponibles`}),(0,Q.jsx)(W,{size:`xs`,variant:`light`,color:`brand`,children:T.length})]}),(0,Q.jsxs)(Ct,{cols:{base:1,sm:2,lg:3},spacing:`sm`,children:[T.map(e=>{let t=e.name===C;return(0,Q.jsxs)(L,{withBorder:!0,radius:`md`,p:`sm`,style:{borderColor:t?`var(--mantine-color-brand-filled)`:void 0},children:[(0,Q.jsxs)(y,{justify:`space-between`,wrap:`nowrap`,mb:6,children:[(0,Q.jsxs)(y,{gap:`xs`,wrap:`nowrap`,style:{minWidth:0},children:[(0,Q.jsx)(Lt,{name:e.name,color:t?`brand`:`gray`}),(0,Q.jsx)(G,{fw:600,size:`sm`,truncate:!0,children:zt(e.name).label})]}),t&&(0,Q.jsx)(W,{size:`xs`,color:`brand`,variant:`filled`,children:`relu`})]}),(0,Q.jsx)(Rt,{capabilities:e.capabilities,size:`xs`})]},e.name)}),O.map(e=>{let t=zt(e),n=t.upcoming===!0;return(0,Q.jsxs)(L,{withBorder:!0,radius:`md`,p:`sm`,style:{opacity:.6,borderStyle:`dashed`},children:[(0,Q.jsxs)(y,{justify:`space-between`,wrap:`nowrap`,mb:6,children:[(0,Q.jsxs)(y,{gap:`xs`,wrap:`nowrap`,style:{minWidth:0},children:[n?(0,Q.jsx)(E,{variant:`light`,color:`gray`,size:28,radius:`md`,children:(0,Q.jsx)(pt,{size:16})}):(0,Q.jsx)(Lt,{name:e,color:`gray`}),(0,Q.jsx)(G,{fw:600,size:`sm`,truncate:!0,children:t.label})]}),(0,Q.jsx)(W,{size:`xs`,variant:`light`,color:n?`gray`:`teal`,children:n?`à venir`:`config`})]}),(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,children:`non monté ici`})]},e)})]})]}),d===`write`&&(0,Q.jsxs)(k,{gap:`xs`,children:[(0,Q.jsxs)(G,{size:`sm`,c:`dimmed`,children:[`Un même log est copié, `,(0,Q.jsx)(`b`,{children:`en même temps`}),`, vers TOUTES les destinations actives.`]}),(0,Q.jsx)(Ct,{cols:{base:1,sm:2,lg:3},spacing:`md`,children:ee.map(e=>(0,Q.jsx)(Jn,{dest:e},e.id))}),F.length>0&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(A,{onClick:()=>_(e=>!e),"aria-expanded":g,children:(0,Q.jsxs)(y,{gap:6,children:[g?(0,Q.jsx)(fe,{size:14}):(0,Q.jsx)(ve,{size:14}),(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,children:[F.length,` destination`,F.length>1?`s`:``,` disponible`,F.length>1?`s`:``,`, non configurée`,F.length>1?`s`:``,` (requiert une config)`]})]})}),(0,Q.jsx)(Be,{expanded:g,children:(0,Q.jsx)(Ct,{cols:{base:1,sm:2,lg:3},spacing:`sm`,children:F.map(e=>(0,Q.jsx)(Jn,{dest:e},e.id))})})]})]}),d===`stream`&&(0,Q.jsxs)(k,{gap:`xs`,children:[(0,Q.jsxs)(G,{size:`sm`,c:`dimmed`,children:[`Les logs sont diffusés en direct sur le bus`,` `,(0,Q.jsx)(H,{children:`nodefony:syslog`}),` (WebSocket) — c'est ce que montre l'onglet `,(0,Q.jsx)(`b`,{children:`Live`}),`. Indépendant du driver de lecture.`]}),(0,Q.jsx)(L,{withBorder:!0,radius:`md`,p:`md`,children:(0,Q.jsxs)(y,{gap:`sm`,wrap:`wrap`,children:[(0,Q.jsx)(E,{variant:`light`,color:`teal`,size:`lg`,radius:`md`,children:(0,Q.jsx)(vt,{size:20})}),(0,Q.jsxs)(M,{children:[(0,Q.jsx)(G,{fw:700,children:`Bus temps réel`}),(0,Q.jsxs)(y,{gap:6,mt:4,children:[(0,Q.jsx)(W,{variant:`light`,color:`teal`,tt:`none`,children:`nodefony:syslog`}),R&&(0,Q.jsx)(W,{variant:`dot`,color:R.color,tt:`none`,children:R.label})]})]})]})})]})]})]})})}function Xn({icon:e,color:t,title:n,children:r}){return(0,Q.jsxs)(L,{withBorder:!0,radius:`md`,p:`md`,h:`100%`,children:[(0,Q.jsxs)(y,{gap:`xs`,mb:`xs`,wrap:`nowrap`,children:[(0,Q.jsx)(E,{variant:`light`,color:t,size:`lg`,radius:`md`,children:e}),(0,Q.jsx)(G,{fw:700,children:n})]}),(0,Q.jsx)(G,{size:`sm`,c:`dimmed`,children:r})]})}function Zn(){return(0,Q.jsxs)(k,{gap:`lg`,children:[(0,Q.jsxs)(k,{gap:`xs`,children:[(0,Q.jsx)(v,{order:4,children:`Les 3 axes du Log Backplane`}),(0,Q.jsxs)(G,{size:`sm`,c:`dimmed`,children:[`Écrire, relire et diffuser des logs sont 3 préoccupations`,(0,Q.jsx)(`b`,{children:` indépendantes`}),`. Les séparer permet d'écrire sur le disque, relire en mémoire et streamer en live — simultanément.`]}),(0,Q.jsxs)(Ct,{cols:{base:1,md:3},spacing:`md`,children:[(0,Q.jsxs)(Xn,{icon:(0,Q.jsx)(at,{size:20}),color:`gray`,title:`Écriture (fan-out)`,children:[`La `,(0,Q.jsx)(`b`,{children:`ligne`}),` de chaque log est copiée vers PLUSIEURS destinations en même temps : ring mémoire, fichier texte/JSONL, Loki, OpenSearch. Figée par la config / les variables d'env.`]}),(0,Q.jsxs)(Xn,{icon:(0,Q.jsx)(t,{size:20}),color:`brand`,title:`Lecture (un panier)`,children:[`On RELIT depuis `,(0,Q.jsx)(`b`,{children:`une seule`}),` destination — le « fond de panier » qu'on fouille dans l'Explorer. C'est l'axe qu'on bascule (à chaud en dev).`]}),(0,Q.jsxs)(Xn,{icon:(0,Q.jsx)(vt,{size:20}),color:`teal`,title:`Bus temps réel`,children:[`Diffusion `,(0,Q.jsx)(`b`,{children:`live`}),` des logs (onglet Live, WebSocket). Indépendante du driver : marche même si la destination n'est pas interrogeable.`]})]})]}),(0,Q.jsxs)(k,{gap:`xs`,children:[(0,Q.jsx)(v,{order:4,children:`Écriture vs lecture — pourquoi « un seul panier » ?`}),(0,Q.jsxs)(G,{size:`sm`,c:`dimmed`,children:[(0,Q.jsx)(`b`,{children:`Écriture = plusieurs.`}),` Un même log part en parallèle vers toutes les destinations actives (diffusion / fan-out). `,(0,Q.jsx)(`b`,{children:`Lecture = une.`}),` `,`On ne peut pas fusionner cohéremment une recherche paginée et triée sur des backends `,(0,Q.jsx)(`b`,{children:`hétérogènes`}),` (ring mémoire vs fichier JSONL vs Loki LogQL vs OpenSearch) : pagination, ordre et sémantique de filtre diffèrent. On choisit donc LE panier qu'on inspecte → des résultats cohérents.`]}),(0,Q.jsxs)(G,{size:`sm`,c:`dimmed`,children:[(0,Q.jsx)(`b`,{children:`Image :`}),` plusieurs magnétophones enregistrent en parallèle (écriture) ; pour réécouter, on met `,(0,Q.jsx)(`b`,{children:`une`}),` cassette dans le lecteur à la fois (lecture).`]})]}),(0,Q.jsxs)(k,{gap:`xs`,children:[(0,Q.jsxs)(y,{gap:6,children:[(0,Q.jsx)(v,{order:4,children:`Comprendre les étapes d'une requête`}),(0,Q.jsx)(f,{title:`Events → étapes logiques`,version:X,summary:`Les logs DEBUG portent des noms d'events internes (onRequest, onSend…). Ce tableau les traduit en étapes claires — c'est la colonne « Étape » de l'Explorer.`,sections:[{label:`Le piège du nom`,body:`« onRequestEnd » = corps entrant reçu (tôt, surtout pour un GET), PAS la fin de la requête. Fie-toi à l'ordre logique, pas au nom.`}]})]}),(0,Q.jsx)(L,{withBorder:!0,radius:`md`,p:0,children:(0,Q.jsxs)(j,{striped:!0,withRowBorders:!1,verticalSpacing:`xs`,horizontalSpacing:`md`,children:[(0,Q.jsx)(j.Thead,{children:(0,Q.jsxs)(j.Tr,{children:[(0,Q.jsx)(j.Th,{style:{width:220},children:`Event (dans les logs)`}),(0,Q.jsx)(j.Th,{style:{width:180},children:`Étape`}),(0,Q.jsx)(j.Th,{children:`Signification`})]})}),(0,Q.jsx)(j.Tbody,{children:Qe.map(e=>(0,Q.jsxs)(j.Tr,{children:[(0,Q.jsx)(j.Td,{children:(0,Q.jsx)(G,{size:`xs`,ff:`monospace`,c:`dimmed`,children:e.event})}),(0,Q.jsx)(j.Td,{children:e.label===`—`?(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,children:`—`}):(0,Q.jsx)(W,{size:`sm`,variant:`light`,color:`brand`,children:e.label})}),(0,Q.jsx)(j.Td,{children:(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,children:e.meaning})})]},e.event))})]})})]})]})}function Qn({meta:e}){return e?(0,Q.jsx)(k,{gap:`lg`,children:(0,Q.jsxs)(k,{gap:`xs`,children:[(0,Q.jsx)(v,{order:4,children:`Santé & compteurs`}),(0,Q.jsx)(L,{withBorder:!0,radius:`md`,p:`md`,children:(0,Q.jsxs)(T,{children:[(0,Q.jsx)(q,{k:`Environnement`,v:e.environment??`—`,mono:!0}),(0,Q.jsx)(q,{k:`Sink d'écriture (LB.W)`,v:e.write.sink,mono:!0}),(0,Q.jsx)(q,{k:`Logs valides (cumul)`,v:e.counters.valid.toLocaleString(`fr-FR`),mono:!0}),(0,Q.jsx)(q,{k:`Erreurs (cumul)`,v:e.counters.errorTotal.toLocaleString(`fr-FR`),mono:!0}),(0,Q.jsx)(q,{k:`Critiques (cumul)`,v:e.counters.criticTotal.toLocaleString(`fr-FR`),mono:!0}),(0,Q.jsx)(q,{k:`Invalides (cumul)`,v:e.counters.invalid.toLocaleString(`fr-FR`),mono:!0}),(0,Q.jsx)(q,{k:`Omis sous charge (cumul)`,v:e.counters.missed.toLocaleString(`fr-FR`),mono:!0}),(0,Q.jsx)(q,{k:`Mémoire (ring)`,v:e.write.ringEnabled===!1?`coupé`:e.counters.bufferCapacity?`${e.counters.buffered.toLocaleString(`fr-FR`)} / ${e.counters.bufferCapacity.toLocaleString(`fr-FR`)} (${Math.round(e.counters.buffered/e.counters.bufferCapacity*100)} %)`:e.counters.buffered.toLocaleString(`fr-FR`),mono:!0}),(0,Q.jsx)(q,{k:`Dossier des fichiers`,v:e.write.logDir??`— (prod : stdout → collecteur)`,mono:!0})]})})]})}):null}function $n({driverName:e}){let t=J(),[n,r]=(0,Z.useState)(null),[i,a]=(0,Z.useState)(!1),o=(0,Z.useCallback)(async()=>{if(e){a(!0);try{let n=await t.api.getAbsolute(`/nodefony/syslog/api/backplane/ping?driver=${encodeURIComponent(e)}`);r(n)}catch(e){r({ok:!1,latencyMs:0,detail:e instanceof Error?e.message:`échec de la sonde`})}finally{a(!1)}}},[t,e]);return(0,Z.useEffect)(()=>{r(null),o()},[o]),(0,Q.jsxs)(y,{gap:`sm`,wrap:`wrap`,children:[(0,Q.jsx)(U,{size:`xs`,variant:`light`,leftSection:(0,Q.jsx)(_t,{size:14}),loading:i,onClick:()=>void o(),children:`Tester la destination`}),n&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(W,{color:n.ok?`teal`:`red`,variant:`light`,leftSection:n.ok?(0,Q.jsx)(ue,{size:12}):(0,Q.jsx)(Pe,{size:12}),tt:`none`,children:n.ok?`joignable`:`injoignable`}),(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[n.latencyMs,` ms`]}),n.info&&Object.entries(n.info).filter(([e])=>e!==`endpoint`).map(([e,t])=>(0,Q.jsxs)(W,{size:`xs`,variant:`default`,tt:`none`,children:[e,`: `,String(t)]},e)),n.detail&&(0,Q.jsx)(G,{size:`xs`,c:`red`,truncate:!0,maw:360,children:n.detail})]}),(0,Q.jsx)(f,{title:`Sonde de destination`,version:X,summary:`Vérifie que la destination de lecture répond (ping), mesure la latence et remonte des infos utiles (version, statut, nombre d'entrées).`,sections:[{label:`Local vs distant`,body:`memory/file/cluster-file = local (toujours joignable, 0 ms). loki/opensearch = sonde réseau réelle (/ready pour Loki ; GET / + _count pour OpenSearch).`}]})]})}function er(e){return(0,Q.jsx)(H,{style:{fontSize:12},children:e})}var tr=(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,children:`—`}),nr=(0,Q.jsx)(W,{size:`xs`,variant:`light`,color:`teal`,tt:`none`,children:`URL définie`});function rr({meta:e,onChanged:t}){let n=J(),r=async(e,r)=>{if(e.key!==`log.queryDriver`)return{ok:!1,error:`Champ non éditable ici`};try{return await n.api.postAbsolute(`/nodefony/syslog/api/backplane/driver`,{name:String(r)}),t?.(),{ok:!0}}catch(e){return{ok:!1,error:e instanceof Error?e.message:`switch refusé`}}};if(!e)return(0,Q.jsx)(G,{size:`sm`,c:`dimmed`,children:`Chargement de la configuration…`});let i=new Set(e.drivers.filter(e=>e.capabilities.write).map(e=>e.name)),a=e=>i.has(e),o=e.activeDriver?.name??null,s=e.write.sink,c=e.drivers.map(e=>e.name),l=e.environment!==`production`,u=[{title:`Destinations & relecture`,description:`Où les logs sont écrits (fan-out) et d'où on les relit (Explorer).`,fields:[{key:`log.queryDriver`,type:`enum`,constraint:`memory · file · cluster-file · loki · opensearch`,effective:o?er(o):void 0,defaultValue:er(`memory`),source:o&&o!==`memory`?`app`:`default`,env:`NF_LOG_QUERY_DRIVER`,mutability:`live`,description:`Destination de RELECTURE (Explorer). Seul réglage modifiable à chaud (dev).`,editControl:{kind:`select`,options:c},editValue:o??`memory`},{key:`log.driver`,type:`enum`,constraint:`stdout · file · null`,effective:er(s),defaultValue:er(`stdout`),source:s===`stdout`?`default`:`app`,mutability:`boot`,description:`Sink d'ÉCRITURE texte : où part la ligne lisible de chaque log.`},{key:`log.loki.url`,type:`url`,effective:a(`loki`)?nr:void 0,defaultValue:tr,source:a(`loki`)?`env`:`default`,env:`LOKI_URL`,mutability:`boot`,description:`Endpoint Grafana Loki — l'URL active le transport d'écriture + le driver de relecture.`},{key:`log.opensearch.url`,type:`url`,effective:a(`opensearch`)?nr:void 0,defaultValue:tr,source:a(`opensearch`)?`env`:`default`,env:`OPENSEARCH_URL`,mutability:`boot`,description:`Endpoint OpenSearch — l'URL active l'indexation _bulk + la recherche _search.`},{key:`log.dir`,type:`string`,effective:void 0,defaultValue:er(`logs`),mutability:`boot`,description:`Dossier des fichiers de log (.jsonl par worker, .log texte).`}]},{title:`Sortie & exécution`,fields:[{key:`log.buffered`,type:`enum`,constraint:`auto · true · false`,effective:void 0,defaultValue:er(`auto`),mutability:`boot`,description:`Coalescing des écritures par tick. « auto » = bufférise hors TTY (pipe/fichier).`},{key:`NODE_ENV`,type:`string`,effective:er(e.environment??`—`),source:`runtime`,env:`NODE_ENV`,mutability:`readonly`,description:`Environnement d'exécution. Gouverne la visibilité du switch de lecture (dev-only).`},{key:`NF_CLUSTER`,type:`boolean`,effective:er(e.cluster?.isCluster?`cluster`:`mono-process`),source:`runtime`,env:`NF_CLUSTER`,mutability:`readonly`,description:`Topologie : posé par le master au fork. En cluster → préférer « cluster-file ».`}]}];return(0,Q.jsx)(Ee,{module:`@nodefony/core — Syslog (Log Backplane)`,schema:`partial`,sections:u,editable:l,onEdit:r,notice:(0,Q.jsxs)(K,{variant:`light`,color:`blue`,icon:(0,Q.jsx)(V,{size:16}),title:`Valeurs effectives partielles — config app pas encore exposée par API`,children:[`Les valeurs « non exposé » le deviendront quand la configuration de l'app sera servie par une API dédiée (chantier de refonte config en cours). La structure et la cascade de surcharge sont prêtes : c'est le`,` `,(0,Q.jsx)(`b`,{children:`même layout`}),` que tout module utilisera dans son onglet Config.`]})})}function ir(e){try{return new URL(e,`http://x`).pathname}catch{return e}}var ar=ft(({onGoDebug:e})=>{let t=We(),n=Ge();(0,Z.useEffect)(()=>(t.loadRecent(),()=>t.dispose()),[t]);let r=(0,Z.useMemo)(()=>[{key:`kind`,header:`Protocole`,size:116,sortable:!0,filterable:!0,filterType:`select`,filterOptions:[`http`,`ws`],value:e=>e.kind,render:e=>(0,Q.jsx)(W,{size:`sm`,variant:`light`,color:e.kind===`ws`?`cyan`:`blue`,leftSection:e.kind===`ws`?(0,Q.jsx)(Ze,{size:11}):(0,Q.jsx)(lt,{size:11}),children:e.kind===`ws`?`WS`:`HTTP`})},{key:`method`,header:`Méthode`,size:96,sortable:!0,value:e=>e.method??e.kind,render:e=>(0,Q.jsx)(W,{size:`sm`,variant:`filled`,color:Kt[e.method??``]??`grape`,children:e.method??e.kind})},{key:`path`,header:`Chemin`,size:300,sortable:!0,value:e=>ir(e.url),render:e=>(0,Q.jsx)(_,{label:e.url,openDelay:400,multiline:!0,maw:460,children:(0,Q.jsx)(G,{size:`xs`,lineClamp:1,children:ir(e.url)})})},{key:`route`,header:`Route`,size:180,sortable:!0,value:e=>e.route??``,render:e=>e.route?(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,lineClamp:1,children:e.route}):(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,children:`—`})},{key:`status`,header:`Statut`,size:92,sortable:!0,value:e=>e.error?-1:e.status??0,render:e=>(0,Q.jsx)(W,{size:`sm`,variant:`light`,color:Gt(e.status),children:e.error?`ERR`:e.status??`—`})},{key:`duration`,header:`Durée`,size:92,align:`right`,sortable:!0,value:e=>e.durationMs??-1,render:e=>(0,Q.jsx)(G,{size:`xs`,style:{fontVariantNumeric:`tabular-nums`},children:Wt(e.durationMs)})},{key:`age`,header:`Âge`,size:92,align:`right`,sortable:!0,value:e=>e.ts,render:e=>(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,children:Ut(e.ts)})},{key:`requestId`,header:`requestId`,size:118,value:e=>e.requestId,render:e=>(0,Q.jsx)(H,{style:{fontSize:11},children:e.requestId.slice(0,8)})}],[]);return t.unavailable?(0,Q.jsxs)(K,{color:`blue`,variant:`light`,icon:(0,Q.jsx)(V,{size:18}),title:`Profiler désactivé en production`,children:[(0,Q.jsxs)(G,{size:`sm`,mb:`xs`,children:[`Le profiling `,(0,Q.jsx)(`b`,{children:`par requête`}),` (timing des phases + requêtes SQL) est `,(0,Q.jsx)(`b`,{children:`dev-only`}),` : il ajoute un coût à chaque requête et exposerait des détails internes. Il n'est donc pas monté en production.`]}),(0,Q.jsxs)(G,{size:`sm`,mb:`sm`,children:[`Pour observer `,(0,Q.jsx)(`b`,{children:`en production`}),`, utilise le`,` `,(0,Q.jsx)(`b`,{children:`debug runtime ciblé`}),` : niveau DEBUG par module, activé à chaud sans redémarrage, auto-expirant et audité — sur l'onglet Debug.`]}),e&&(0,Q.jsx)(U,{size:`xs`,color:`blue`,leftSection:(0,Q.jsx)(Ie,{size:16}),onClick:e,children:`Aller à l'onglet Debug`})]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(y,{justify:`space-between`,align:`center`,mb:`sm`,children:[(0,Q.jsxs)(y,{gap:`xs`,children:[(0,Q.jsxs)(W,{variant:`light`,color:`brand`,children:[t.count,` profil`,t.count>1?`s`:``]}),(0,Q.jsx)(G,{size:`sm`,c:`dimmed`,children:`Requêtes profilées (timing des phases, route, user, requêtes SQL). Dev-only.`}),(0,Q.jsx)(f,{title:`Profiling par requête`,version:`v1.1`,summary:`Chaque appel HTTP/WS profilé apparaît ici. Trie, filtre (Protocole, recherche), pagine ; clique une ligne pour ouvrir son Suivi de requête : waterfall des phases serveur, requêtes ORM mesurées et logs corrélés au même requestId.`,sections:[{label:`Source`,body:`Profiler ALS (AsyncLocalStorage), dev-only. Les profils sont gardés dans un ring buffer borné (les plus anciens sont évincés).`},{label:`Colonnes & filtres`,body:`Protocole (HTTP/WS, filtrable), Méthode, Chemin, Route, Statut, Durée, Âge, requestId. La recherche porte sur le chemin/route. Tri sur toutes les colonnes ; l'état est mémorisé.`},{label:`Si vide`,body:`Fais des appels AJAX/HTTP (active l'auto-refresh) — ils apparaissent en temps quasi-réel.`}]})]}),(0,Q.jsxs)(y,{gap:`xs`,children:[(0,Q.jsx)(m,{label:`Auto-refresh`,size:`sm`,checked:t.autoRefresh,onChange:e=>t.setAutoRefresh(e.currentTarget.checked)}),(0,Q.jsx)(U,{variant:`light`,size:`xs`,leftSection:(0,Q.jsx)(se,{size:14}),loading:t.loading,onClick:()=>void t.loadRecent(),children:`Rafraîchir`}),(0,Q.jsx)(U,{variant:`subtle`,color:`red`,size:`xs`,leftSection:(0,Q.jsx)(F,{size:14}),onClick:()=>void t.clear(),children:`Vider`})]})]}),t.error&&(0,Q.jsx)(K,{color:`red`,icon:(0,Q.jsx)(Pe,{size:16}),mb:`sm`,children:t.error}),(0,Q.jsx)(ye,{mode:`client`,data:t.recent,columns:r,getRowId:e=>e.requestId,onRowClick:e=>n(`/nodefony/logs/trace/${encodeURIComponent(e.requestId)}`),initialSort:{key:`age`,dir:`desc`},pageSize:25,height:560,searchable:!0,searchPlaceholder:`Recherche : chemin / route…`,emptyMessage:`Aucun profil. Fais des appels AJAX/HTTP — ils apparaissent ici en temps quasi-réel (active l'auto-refresh).`,persist:{key:`studio.logs.profiling`,storage:`session`}})]})}),or=e=>x[e]??String(e),sr=e=>e===`*`?`Tous les modules (*)`:e,cr=[{value:`DEBUG`,label:`DEBUG (tout)`},{value:`INFO`,label:`INFO`},{value:`NOTICE`,label:`NOTICE`},{value:`WARNING`,label:`WARNING`},{value:`ERROR`,label:`ERROR`}],lr=[{value:`300000`,label:`5 minutes`},{value:`900000`,label:`15 minutes`},{value:`1800000`,label:`30 minutes`},{value:`3600000`,label:`60 minutes`}],ur=1e4,dr=400;function fr({at:e}){let[,t]=(0,Z.useState)(0);if((0,Z.useEffect)(()=>{if(e===void 0)return;let n=setInterval(()=>t(e=>e+1),1e3);return()=>clearInterval(n)},[e]),e===void 0)return(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,children:`permanent`});let n=Math.max(0,Math.floor((e-Date.now())/1e3)),r=Math.floor(n/60),i=n%60;return(0,Q.jsxs)(G,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[`s'éteint dans `,r,`:`,String(i).padStart(2,`0`)]})}function pr({records:e,height:t}){let n=(0,Z.useRef)(null);return(0,Z.useEffect)(()=>{let e=n.current;e&&e.scrollTo({top:e.scrollHeight})},[e.length]),(0,Q.jsx)(p,{h:t,viewportRef:n,type:`auto`,style:{background:`var(--mantine-color-dark-8)`,borderRadius:6,padding:`4px 8px`},children:e.length===0?(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,py:`xs`,children:`Aucune ligne (module silencieux, ou le filtre exclut tout).`}):(0,Q.jsx)(k,{gap:1,children:e.map((e,t)=>(0,Q.jsxs)(y,{gap:6,wrap:`nowrap`,align:`baseline`,children:[(0,Q.jsx)(G,{size:`xs`,c:`dimmed`,ff:`monospace`,style:{fontVariantNumeric:`tabular-nums`,flexShrink:0},children:Ot(e.timeStamp)}),(0,Q.jsx)(Tt,{severity:e.severityName}),(0,Q.jsx)(G,{size:`xs`,truncate:!0,ff:`monospace`,children:Y(e)})]},`${e.uid}-${t}`))})})}function mr({module:e,level:n,expireAt:r,entries:i,onTurnOff:a,busy:o}){let[s,c]=(0,Z.useState)(``),[l,u]=(0,Z.useState)(()=>new Set),[d,f]=(0,Z.useState)(0),[p,m]=(0,Z.useState)(!1),h=(0,Z.useMemo)(()=>e===`*`?i:i.filter(t=>t.msgid===e),[i,e]),g=(0,Z.useMemo)(()=>h.filter(e=>e.uid>d),[h,d]),v=(0,Z.useMemo)(()=>Mt(g),[g]),b=(0,Z.useMemo)(()=>{let e=l.size>0,t=s.trim().toLowerCase();return g.filter(n=>!(e&&!l.has(n.severityName)||t&&!Y(n).toLowerCase().includes(t)))},[g,l,s]),x=e=>u(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),S=()=>f(h.length?h[h.length-1].uid:0),w=(0,Q.jsxs)(y,{gap:`xs`,wrap:`nowrap`,style:{minWidth:0},children:[(0,Q.jsx)(W,{color:`red`,variant:`filled`,tt:`none`,children:sr(e)}),(0,Q.jsxs)(G,{size:`sm`,children:[`→ `,or(n)]}),(0,Q.jsx)(fr,{at:r})]}),T=(0,Q.jsxs)(k,{gap:`xs`,children:[(0,Q.jsxs)(y,{gap:`xs`,wrap:`nowrap`,children:[(0,Q.jsx)(Re,{size:`xs`,leftSection:(0,Q.jsx)(t,{size:13}),placeholder:`Filtrer le message…`,value:s,onChange:e=>c(e.currentTarget.value),style:{flex:1}}),(0,Q.jsx)(_,{label:`Vider le flux de cette carte`,children:(0,Q.jsx)(C,{variant:`subtle`,color:`gray`,"aria-label":`Vider le flux de la carte`,onClick:S,children:(0,Q.jsx)(F,{size:16})})})]}),(0,Q.jsx)(Ft,{counts:v,active:l,onToggle:x})]});return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(L,{withBorder:!0,padding:`sm`,style:{borderColor:`var(--mantine-color-red-4)`,contain:`content`},children:[(0,Q.jsxs)(y,{justify:`space-between`,wrap:`nowrap`,mb:`xs`,children:[w,(0,Q.jsxs)(y,{gap:4,wrap:`nowrap`,children:[(0,Q.jsx)(_,{label:`Plein écran`,children:(0,Q.jsx)(C,{variant:`subtle`,color:`gray`,"aria-label":`Plein écran`,onClick:()=>m(!0),children:(0,Q.jsx)(Ae,{size:16})})}),(0,Q.jsx)(_,{label:`Éteindre ${sr(e)}`,children:(0,Q.jsx)(C,{variant:`light`,color:`red`,"aria-label":`Éteindre le debug de ${sr(e)}`,onClick:()=>a(e),loading:o,children:(0,Q.jsx)(_n,{size:16})})})]})]}),T,(0,Q.jsx)(pr,{records:b.slice(-60),height:150})]}),(0,Q.jsx)(ee,{opened:p,onClose:()=>m(!1),fullScreen:!0,title:(0,Q.jsxs)(y,{gap:`xs`,wrap:`nowrap`,children:[(0,Q.jsx)(dt,{size:16}),(0,Q.jsxs)(G,{fw:700,children:[`Debug — `,sr(e),` → `,or(n)]}),(0,Q.jsx)(fr,{at:r})]}),children:(0,Q.jsxs)(k,{gap:`sm`,children:[T,(0,Q.jsx)(pr,{records:b.slice(-500),height:`calc(100vh - 240px)`})]})})]})}function hr({onGoLive:e}){let t=J(),n=He(),r=(0,Z.useCallback)(()=>t.api.getAbsolute(`/nodefony/kernel/api/log/level`),[t]),{data:i,loading:a,error:o,reload:s}=St(r),c=(0,Z.useCallback)(()=>t.api.getAbsolute(`/nodefony/syslog/api/logs/search?limit=300`),[t]),{data:u}=St(c),[d,f]=(0,Z.useState)([]);(0,Z.useEffect)(()=>{let e=n.subscribe(w.syslog,e=>{if(!e||typeof e!=`object`)return;let t=e,n=Array.isArray(t.logs)?t.logs:[e],r=[];for(let e of n){let t=Bt(e);t&&r.push(t)}r.length!==0&&f(e=>{let t=[...e,...r];return t.length>dr?t.slice(-400):t})});return()=>e()},[n]);let[p,m]=(0,Z.useState)(!1),[h,g]=(0,Z.useState)(``),[b,x]=(0,Z.useState)(`DEBUG`),[S,C]=(0,Z.useState)(`900000`),[T,D]=(0,Z.useState)(!1),[O,A]=(0,Z.useState)(null);(0,Z.useEffect)(()=>{let e=setInterval(s,ur);return()=>clearInterval(e)},[s]);let j=(0,Z.useMemo)(()=>{let e=new Set;for(let t of u?.rows??[])t.msgid&&e.add(t.msgid);for(let t of Object.keys(i?.overrides??{}))t!==`*`&&e.add(t);return[...e].sort()},[u,i]),M=p?`*`:h.trim(),P=(0,Z.useCallback)(async()=>{if(M){D(!0),A(null);try{await t.api.patchAbsolute(`/nodefony/kernel/api/log/level`,{module:M,level:b??`DEBUG`,ttlMs:Number(S??`900000`)}),p||g(``),s()}catch(e){A(e instanceof Error?e.message:`Échec de l'activation`)}finally{D(!1)}}},[t,M,p,b,S,s]),ee=(0,Z.useCallback)(async e=>{D(!0),A(null);try{await t.api.patchAbsolute(`/nodefony/kernel/api/log/level`,{module:e,level:`off`}),s()}catch(e){A(e instanceof Error?e.message:`Échec de l'extinction`)}finally{D(!1)}},[t,s]),F=i?.overrides??{},te=i?.expiresAt??{},ne=Object.keys(F);return(0,Q.jsxs)(k,{gap:`md`,children:[(0,Q.jsxs)(K,{variant:`light`,color:`blue`,icon:(0,Q.jsx)(V,{size:18}),title:`Active un debug ciblé — ses logs défilent dans sa carte ci-dessous`,children:[`Chaque debug actif crée une `,(0,Q.jsx)(`b`,{children:`carte avec son propre flux`}),` (filtré sur son module). ⚠️ En `,(0,Q.jsx)(`b`,{children:`développement`}),`, tout est déjà en DEBUG → activer un module ne change la visibilité qu'en `,(0,Q.jsx)(`b`,{children:`production`}),` (logs filtrés à INFO). Le flux complet reste dans l'onglet`,` `,(0,Q.jsx)(I,{component:`button`,type:`button`,onClick:e,fw:600,children:`Live`}),`.`]}),(0,Q.jsxs)(L,{withBorder:!0,padding:`lg`,style:{borderColor:`var(--mantine-color-red-5)`},children:[(0,Q.jsxs)(y,{gap:`xs`,mb:`sm`,children:[(0,Q.jsx)(E,{variant:`light`,color:`red`,radius:`md`,children:(0,Q.jsx)(Ie,{size:18})}),(0,Q.jsx)(v,{order:4,c:`red`,children:`Zone danger — activer le debug`})]}),(0,Q.jsxs)(y,{align:`flex-end`,gap:`sm`,wrap:`wrap`,children:[(0,Q.jsx)(qt,{label:`Module (msgid)`,placeholder:`ex : FIREWALL, SESSION, HTTP-KERNEL`,data:j,value:h,onChange:g,disabled:p,description:p?`Désactivé : tous les modules`:void 0,style:{flex:`1 1 240px`}}),(0,Q.jsx)(N,{label:`Niveau`,data:cr,value:b,onChange:x,allowDeselect:!1,style:{width:160}}),(0,Q.jsx)(N,{label:`Auto-extinction`,data:lr,value:S,onChange:C,allowDeselect:!1,style:{width:160}}),(0,Q.jsx)(U,{color:`red`,leftSection:(0,Q.jsx)(dt,{size:16}),onClick:P,loading:T,disabled:!M,children:`Activer le debug`})]}),(0,Q.jsx)(ie,{mt:`sm`,color:`red`,label:`Tous les modules (*) — debug global temporisé`,checked:p,onChange:e=>m(e.currentTarget.checked)}),O?(0,Q.jsx)(G,{size:`xs`,c:`red`,mt:`xs`,children:O}):null]}),(0,Q.jsxs)(y,{justify:`space-between`,children:[(0,Q.jsx)(v,{order:5,children:`Debug actif`}),i?.globalDebug?(0,Q.jsx)(_,{label:`Seuil global = DEBUG (via -d / NF__DEBUG, réglé au boot)`,children:(0,Q.jsx)(W,{color:`orange`,variant:`light`,children:`DEBUG global actif`})}):null]}),a&&!i?(0,Q.jsxs)(y,{gap:`xs`,children:[(0,Q.jsx)(l,{size:`xs`}),(0,Q.jsx)(G,{size:`sm`,c:`dimmed`,children:`Chargement…`})]}):o?(0,Q.jsx)(K,{color:`red`,variant:`light`,children:o}):ne.length===0?(0,Q.jsx)(G,{size:`sm`,c:`dimmed`,children:`Aucun debug ciblé. Tout suit le seuil global — active un module ci-dessus pour voir son flux ici.`}):(0,Q.jsx)(k,{gap:`sm`,children:ne.map(e=>(0,Q.jsx)(mr,{module:e,level:F[e],expireAt:te[e],entries:d,onTurnOff:ee,busy:T},e))})]})}var gr=new Set([`overview`,`sante`,`live`,`explorer`,`profiling`,`files`,`doc`,`debug`,`config`]),_r=`nf.logs.tab`,vr=ft(()=>{let e=J(),n=xt(),r=(0,Z.useCallback)(()=>e.api.getAbsolute(`/nodefony/syslog/api/backplane`),[e]),{data:i,loading:a,error:o,reload:s}=St(r),c=(0,Z.useCallback)(()=>e.api.getAbsolute(`/nodefony/kernel/api/log/level`),[e]),{data:l,reload:u}=St(c),d=Object.keys(l?.overrides??{}).length;(0,Z.useEffect)(()=>{let e=setInterval(u,1e4);return()=>clearInterval(e)},[u]);let[f,p]=yt(),[m,h]=(0,Z.useState)(()=>{let e=f.get(`tab`);if(e&&gr.has(e))return e;let t=sessionStorage.getItem(_r);return t&&gr.has(t)?t:`overview`}),g=(0,Z.useCallback)(e=>{h(e);try{sessionStorage.setItem(_r,e)}catch{}},[]);(0,Z.useEffect)(()=>{let e=f.get(`tab`);e&&gr.has(e)&&(g(e),p(e=>(e.delete(`tab`),e),{replace:!0}))},[f,g,p]);let[_,v]=(0,Z.useState)(null),[y,b]=(0,Z.useState)(``),[x,S]=(0,Z.useState)(0),C=(0,Z.useCallback)(e=>{b(e),v(null),g(`explorer`)},[g]),w=i?.activeDriver?.capabilities??null,T=i?.activeDriver?.name??null,E=i?.write.ringEnabled===!1,D=w?!w.query||T===`memory`&&E:!1,O=w?.query?`Stockage mémoire coupé — rien à explorer via « mémoire ». Réactive le ring ou change de source.`:`Le driver « ${T??`?`} » ne sait pas relire (pas de requête froide).`,k=!i?.write.logDir,A=i?.write.streamEnabled===!1;return(0,Z.useEffect)(()=>{(m===`explorer`&&D||m===`files`&&k||m===`live`&&A)&&g(`overview`)},[m,D,k,A,g]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(R,{icon:(0,Q.jsx)(mt,{size:24}),title:`Logs`,subtitle:`Console du Log Backplane — flux live, exploration froide, contrôle de la destination`,actions:(0,Q.jsx)(U,{variant:`default`,leftSection:(0,Q.jsx)(se,{size:16}),loading:a,onClick:s,children:`Rafraîchir`}),statusBar:(0,Q.jsx)(zn,{meta:i,realtimeState:n}),value:m,onChange:e=>g(e),tabs:[{value:`overview`,label:`Vue d'ensemble`,icon:(0,Q.jsx)(ht,{size:16}),panel:(0,Q.jsx)(Yn,{meta:i,loading:a,error:o,reload:s,onSwitched:()=>S(e=>e+1),realtimeState:n})},{value:`sante`,label:`Santé & compteurs`,icon:(0,Q.jsx)(_t,{size:16}),panel:(0,Q.jsx)(Qn,{meta:i})},{value:`live`,label:`Live`,icon:(0,Q.jsx)(vt,{size:16}),disabled:A,disabledReason:`Diffusion temps réel coupée — réactive-la dans la Vue d'ensemble (tuile « Temps réel »).`,panel:(0,Q.jsx)(Hn,{onSelect:v,cluster:i?.cluster})},{value:`explorer`,label:`Explorer`,icon:(0,Q.jsx)(t,{size:16}),disabled:D,disabledReason:O,panel:(0,Q.jsx)(Wn,{capabilities:w,driverName:T,traceRequestId:y,onSelect:v,refreshKey:x,cluster:i?.cluster})},{value:`profiling`,label:`Profiling`,icon:(0,Q.jsx)(dt,{size:16}),panel:(0,Q.jsx)(ar,{onGoDebug:()=>g(`debug`)})},{value:`files`,label:`Fichiers`,icon:(0,Q.jsx)(rt,{size:16}),disabled:k,disabledReason:`Pas de dossier de logs (production cloud-native : logs → stdout → collecteur, aucun fichier local).`,panel:(0,Q.jsx)(Ln,{logDir:i?.write.logDir??null})},{value:`doc`,label:`Doc`,icon:(0,Q.jsx)(ne,{size:16}),panel:(0,Q.jsx)(Zn,{})},{value:`debug`,label:`Debug`,icon:(0,Q.jsx)(Ie,{size:16}),badge:d>0?(0,Q.jsx)(W,{size:`xs`,color:`red`,circle:!0,variant:`filled`,children:d}):void 0,panel:(0,Q.jsx)(hr,{onGoLive:()=>g(`live`)})},{value:`config`,label:`Config`,icon:(0,Q.jsx)($e,{size:16}),panel:(0,Q.jsx)(rr,{meta:i,onChanged:s})}]}),(0,Q.jsx)(Dn,{record:_,onClose:()=>v(null),onTrace:C})]})});export{vr as Logs};