@md-code/sections 0.0.1 → 0.0.2

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 (377) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +67 -5
  3. package/dist/FolderStructure-D6x844U9.js +226 -0
  4. package/dist/board-DmWPJpAU.js +2478 -0
  5. package/dist/code-diff-board.js +1 -1
  6. package/dist/code-diff-model.js +3 -538
  7. package/dist/code-diff.js +9 -283
  8. package/dist/connections-graph-model.js +1 -1
  9. package/dist/connections-graph.js +552 -366
  10. package/dist/folder-structure.js +1 -213
  11. package/dist/gap-B2FXHnWW.js +136 -0
  12. package/dist/hamburger-menu.js +29 -29
  13. package/dist/marks-B0ikyg8U.js +104 -0
  14. package/dist/model-CAvT-z-8.js +529 -0
  15. package/dist/model-lwXbtOr1.js +605 -0
  16. package/dist/not-found-section.js +13 -13
  17. package/dist/report-pair-lenses.js +510 -0
  18. package/dist/report-pair-snapshot.js +390 -0
  19. package/dist/report.js +1409 -0
  20. package/dist/text-BPoY89bb.js +10 -0
  21. package/dist/types/default/data-display/CodeDiff/board/chrome.d.ts +1 -1
  22. package/dist/types/default/data-display/CodeDiff/board/chrome.d.ts.map +1 -1
  23. package/dist/types/default/data-display/CodeDiff/board/columns.d.ts +5 -5
  24. package/dist/types/default/data-display/CodeDiff/board/columns.d.ts.map +1 -1
  25. package/dist/types/default/data-display/CodeDiff/board/events.d.ts +3 -3
  26. package/dist/types/default/data-display/CodeDiff/board/events.d.ts.map +1 -1
  27. package/dist/types/default/data-display/CodeDiff/board/hooks/focus.d.ts +11 -5
  28. package/dist/types/default/data-display/CodeDiff/board/hooks/focus.d.ts.map +1 -1
  29. package/dist/types/default/data-display/CodeDiff/board/hooks/pointer.d.ts +15 -6
  30. package/dist/types/default/data-display/CodeDiff/board/hooks/pointer.d.ts.map +1 -1
  31. package/dist/types/default/data-display/CodeDiff/board/hooks/state.d.ts +3 -3
  32. package/dist/types/default/data-display/CodeDiff/board/hooks/state.d.ts.map +1 -1
  33. package/dist/types/default/data-display/CodeDiff/board/index.d.ts.map +1 -1
  34. package/dist/types/default/data-display/CodeDiff/board/layout.d.ts +6 -7
  35. package/dist/types/default/data-display/CodeDiff/board/layout.d.ts.map +1 -1
  36. package/dist/types/default/data-display/CodeDiff/board/legacy.d.ts +3 -3
  37. package/dist/types/default/data-display/CodeDiff/board/legacy.d.ts.map +1 -1
  38. package/dist/types/default/data-display/CodeDiff/board/provider.d.ts +1 -1
  39. package/dist/types/default/data-display/CodeDiff/board/provider.d.ts.map +1 -1
  40. package/dist/types/default/data-display/CodeDiff/board/types.d.ts +4 -4
  41. package/dist/types/default/data-display/CodeDiff/board/types.d.ts.map +1 -1
  42. package/dist/types/default/data-display/CodeDiff/columns/decide.d.ts.map +1 -1
  43. package/dist/types/default/data-display/CodeDiff/columns/fold.d.ts +1 -1
  44. package/dist/types/default/data-display/CodeDiff/columns/fold.d.ts.map +1 -1
  45. package/dist/types/default/data-display/CodeDiff/columns/hooks/slot-heights.d.ts.map +1 -1
  46. package/dist/types/default/data-display/CodeDiff/columns/hooks/virtual-list.d.ts +1 -1
  47. package/dist/types/default/data-display/CodeDiff/columns/hooks/virtual-list.d.ts.map +1 -1
  48. package/dist/types/default/data-display/CodeDiff/columns/index.d.ts +1 -1
  49. package/dist/types/default/data-display/CodeDiff/columns/index.d.ts.map +1 -1
  50. package/dist/types/default/data-display/CodeDiff/columns/merge.d.ts +48 -0
  51. package/dist/types/default/data-display/CodeDiff/columns/merge.d.ts.map +1 -0
  52. package/dist/types/default/data-display/CodeDiff/columns/paint.d.ts +3 -3
  53. package/dist/types/default/data-display/CodeDiff/columns/paint.d.ts.map +1 -1
  54. package/dist/types/default/data-display/CodeDiff/columns/row.d.ts +1 -1
  55. package/dist/types/default/data-display/CodeDiff/columns/row.d.ts.map +1 -1
  56. package/dist/types/default/data-display/CodeDiff/columns/slot-heights.d.ts.map +1 -1
  57. package/dist/types/default/data-display/CodeDiff/columns/styles.d.ts.map +1 -1
  58. package/dist/types/default/data-display/CodeDiff/columns/types.d.ts +1 -1
  59. package/dist/types/default/data-display/CodeDiff/columns/types.d.ts.map +1 -1
  60. package/dist/types/default/data-display/CodeDiff/columns/virtual-list.d.ts +1 -1
  61. package/dist/types/default/data-display/CodeDiff/columns/virtual-list.d.ts.map +1 -1
  62. package/dist/types/default/data-display/CodeDiff/columns/window.d.ts.map +1 -1
  63. package/dist/types/default/data-display/CodeDiff/components/Actions.d.ts.map +1 -1
  64. package/dist/types/default/data-display/CodeDiff/components/atoms.d.ts +2 -2
  65. package/dist/types/default/data-display/CodeDiff/components/atoms.d.ts.map +1 -1
  66. package/dist/types/default/data-display/CodeDiff/components/hooks/use-actions.d.ts +1 -1
  67. package/dist/types/default/data-display/CodeDiff/components/hooks/use-actions.d.ts.map +1 -1
  68. package/dist/types/default/data-display/CodeDiff/components/resolve.d.ts +1 -1
  69. package/dist/types/default/data-display/CodeDiff/components/resolve.d.ts.map +1 -1
  70. package/dist/types/default/data-display/CodeDiff/components/styles.d.ts.map +1 -1
  71. package/dist/types/default/data-display/CodeDiff/components/types.d.ts +2 -2
  72. package/dist/types/default/data-display/CodeDiff/components/types.d.ts.map +1 -1
  73. package/dist/types/default/data-display/CodeDiff/config.d.ts.map +1 -1
  74. package/dist/types/default/data-display/CodeDiff/constants.d.ts +12 -2
  75. package/dist/types/default/data-display/CodeDiff/constants.d.ts.map +1 -1
  76. package/dist/types/default/data-display/CodeDiff/index.d.ts +8 -8
  77. package/dist/types/default/data-display/CodeDiff/index.d.ts.map +1 -1
  78. package/dist/types/default/data-display/CodeDiff/interface/index.d.ts +1 -1
  79. package/dist/types/default/data-display/CodeDiff/interface/index.d.ts.map +1 -1
  80. package/dist/types/default/data-display/CodeDiff/model/index.d.ts +12 -12
  81. package/dist/types/default/data-display/CodeDiff/model/index.d.ts.map +1 -1
  82. package/dist/types/default/data-display/CodeDiff/ribbon/connector.d.ts.map +1 -1
  83. package/dist/types/default/data-display/CodeDiff/ribbon/context.d.ts +10 -3
  84. package/dist/types/default/data-display/CodeDiff/ribbon/context.d.ts.map +1 -1
  85. package/dist/types/default/data-display/CodeDiff/ribbon/gap.d.ts +1 -1
  86. package/dist/types/default/data-display/CodeDiff/ribbon/gap.d.ts.map +1 -1
  87. package/dist/types/default/data-display/CodeDiff/ribbon/geometry.d.ts +2 -2
  88. package/dist/types/default/data-display/CodeDiff/ribbon/geometry.d.ts.map +1 -1
  89. package/dist/types/default/data-display/CodeDiff/ribbon/group.d.ts +1 -1
  90. package/dist/types/default/data-display/CodeDiff/ribbon/group.d.ts.map +1 -1
  91. package/dist/types/default/data-display/CodeDiff/ribbon/grouping.d.ts +73 -0
  92. package/dist/types/default/data-display/CodeDiff/ribbon/grouping.d.ts.map +1 -0
  93. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/chain.d.ts +2 -2
  94. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/chain.d.ts.map +1 -1
  95. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/events.d.ts +2 -2
  96. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/events.d.ts.map +1 -1
  97. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/geometry.d.ts +1 -1
  98. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/geometry.d.ts.map +1 -1
  99. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/paint.d.ts +5 -5
  100. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/paint.d.ts.map +1 -1
  101. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/position/allocate.d.ts +23 -0
  102. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/position/allocate.d.ts.map +1 -0
  103. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/position/ribbons.d.ts +16 -0
  104. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/position/ribbons.d.ts.map +1 -0
  105. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/position/slots.d.ts +48 -0
  106. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/position/slots.d.ts.map +1 -0
  107. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/position.d.ts +9 -31
  108. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/position.d.ts.map +1 -1
  109. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/tone.d.ts +20 -3
  110. package/dist/types/default/data-display/CodeDiff/ribbon/hooks/tone.d.ts.map +1 -1
  111. package/dist/types/default/data-display/CodeDiff/ribbon/measure/boxes.d.ts +53 -0
  112. package/dist/types/default/data-display/CodeDiff/ribbon/measure/boxes.d.ts.map +1 -0
  113. package/dist/types/default/data-display/CodeDiff/ribbon/measure/captions.d.ts +12 -0
  114. package/dist/types/default/data-display/CodeDiff/ribbon/measure/captions.d.ts.map +1 -0
  115. package/dist/types/default/data-display/CodeDiff/ribbon/measure/connectors.d.ts +34 -0
  116. package/dist/types/default/data-display/CodeDiff/ribbon/measure/connectors.d.ts.map +1 -0
  117. package/dist/types/default/data-display/CodeDiff/ribbon/measure/constants.d.ts +23 -0
  118. package/dist/types/default/data-display/CodeDiff/ribbon/measure/constants.d.ts.map +1 -0
  119. package/dist/types/default/data-display/CodeDiff/ribbon/measure/synthesize.d.ts +9 -0
  120. package/dist/types/default/data-display/CodeDiff/ribbon/measure/synthesize.d.ts.map +1 -0
  121. package/dist/types/default/data-display/CodeDiff/ribbon/measure.d.ts +11 -38
  122. package/dist/types/default/data-display/CodeDiff/ribbon/measure.d.ts.map +1 -1
  123. package/dist/types/default/data-display/CodeDiff/ribbon/model/keys.d.ts +18 -0
  124. package/dist/types/default/data-display/CodeDiff/ribbon/model/keys.d.ts.map +1 -0
  125. package/dist/types/default/data-display/CodeDiff/ribbon/model/lanes.d.ts +13 -0
  126. package/dist/types/default/data-display/CodeDiff/ribbon/model/lanes.d.ts.map +1 -0
  127. package/dist/types/default/data-display/CodeDiff/ribbon/model/locate.d.ts +23 -0
  128. package/dist/types/default/data-display/CodeDiff/ribbon/model/locate.d.ts.map +1 -0
  129. package/dist/types/default/data-display/CodeDiff/ribbon/model/segments.d.ts +28 -0
  130. package/dist/types/default/data-display/CodeDiff/ribbon/model/segments.d.ts.map +1 -0
  131. package/dist/types/default/data-display/CodeDiff/ribbon/model/text.d.ts +14 -0
  132. package/dist/types/default/data-display/CodeDiff/ribbon/model/text.d.ts.map +1 -0
  133. package/dist/types/default/data-display/CodeDiff/ribbon/model/types.d.ts +31 -0
  134. package/dist/types/default/data-display/CodeDiff/ribbon/model/types.d.ts.map +1 -0
  135. package/dist/types/default/data-display/CodeDiff/ribbon/model.d.ts +10 -98
  136. package/dist/types/default/data-display/CodeDiff/ribbon/model.d.ts.map +1 -1
  137. package/dist/types/default/data-display/CodeDiff/ribbon/paint.d.ts +65 -0
  138. package/dist/types/default/data-display/CodeDiff/ribbon/paint.d.ts.map +1 -0
  139. package/dist/types/default/data-display/CodeDiff/ribbon/plateau.d.ts +109 -0
  140. package/dist/types/default/data-display/CodeDiff/ribbon/plateau.d.ts.map +1 -0
  141. package/dist/types/default/data-display/CodeDiff/ribbon/scene.d.ts +4 -4
  142. package/dist/types/default/data-display/CodeDiff/ribbon/scene.d.ts.map +1 -1
  143. package/dist/types/default/data-display/CodeDiff/ribbon/svg.d.ts +15 -26
  144. package/dist/types/default/data-display/CodeDiff/ribbon/svg.d.ts.map +1 -1
  145. package/dist/types/default/data-display/CodeDiff/ribbon/types.d.ts +19 -1
  146. package/dist/types/default/data-display/CodeDiff/ribbon/types.d.ts.map +1 -1
  147. package/dist/types/default/data-display/CodeDiff/ribbon/waist.d.ts +35 -3
  148. package/dist/types/default/data-display/CodeDiff/ribbon/waist.d.ts.map +1 -1
  149. package/dist/types/default/data-display/CodeDiff/rows/caret.d.ts.map +1 -1
  150. package/dist/types/default/data-display/CodeDiff/rows/diff.d.ts +4 -13
  151. package/dist/types/default/data-display/CodeDiff/rows/diff.d.ts.map +1 -1
  152. package/dist/types/default/data-display/CodeDiff/rows/hooks/events.d.ts +2 -2
  153. package/dist/types/default/data-display/CodeDiff/rows/hooks/events.d.ts.map +1 -1
  154. package/dist/types/default/data-display/CodeDiff/rows/hooks/fold.d.ts +2 -2
  155. package/dist/types/default/data-display/CodeDiff/rows/hooks/fold.d.ts.map +1 -1
  156. package/dist/types/default/data-display/CodeDiff/rows/hooks/groups.d.ts +1 -1
  157. package/dist/types/default/data-display/CodeDiff/rows/hooks/groups.d.ts.map +1 -1
  158. package/dist/types/default/data-display/CodeDiff/rows/index.d.ts +1 -1
  159. package/dist/types/default/data-display/CodeDiff/rows/index.d.ts.map +1 -1
  160. package/dist/types/default/data-display/CodeDiff/rows/lcs.d.ts.map +1 -1
  161. package/dist/types/default/data-display/CodeDiff/rows/paint.d.ts.map +1 -1
  162. package/dist/types/default/data-display/CodeDiff/rows/styles.d.ts.map +1 -1
  163. package/dist/types/default/data-display/CodeDiff/rows/text.d.ts.map +1 -1
  164. package/dist/types/default/data-display/CodeDiff/surface/commit.d.ts.map +1 -1
  165. package/dist/types/default/data-display/CodeDiff/surface/dom.d.ts.map +1 -1
  166. package/dist/types/default/data-display/CodeDiff/surface/gate.d.ts.map +1 -1
  167. package/dist/types/default/data-display/CodeDiff/surface/hooks/layout-state.d.ts +1 -1
  168. package/dist/types/default/data-display/CodeDiff/surface/hooks/layout-state.d.ts.map +1 -1
  169. package/dist/types/default/data-display/CodeDiff/surface/hooks/measure.d.ts.map +1 -1
  170. package/dist/types/default/data-display/CodeDiff/surface/hooks/observer.d.ts.map +1 -1
  171. package/dist/types/default/data-display/CodeDiff/surface/hooks/scroll.d.ts +7 -2
  172. package/dist/types/default/data-display/CodeDiff/surface/hooks/scroll.d.ts.map +1 -1
  173. package/dist/types/default/data-display/CodeDiff/surface/measure.d.ts +6 -2
  174. package/dist/types/default/data-display/CodeDiff/surface/measure.d.ts.map +1 -1
  175. package/dist/types/default/data-display/CodeDiff/surface/scroll.d.ts +1 -1
  176. package/dist/types/default/data-display/CodeDiff/surface/scroll.d.ts.map +1 -1
  177. package/dist/types/default/data-display/CodeDiff/surface/settle.d.ts.map +1 -1
  178. package/dist/types/default/data-display/CodeDiff/surface/styles.d.ts.map +1 -1
  179. package/dist/types/default/data-display/CodeDiff/surface/types.d.ts +9 -1
  180. package/dist/types/default/data-display/CodeDiff/surface/types.d.ts.map +1 -1
  181. package/dist/types/default/data-display/ConnectionsGraph/board/Drawing.d.ts +15 -2
  182. package/dist/types/default/data-display/ConnectionsGraph/board/Drawing.d.ts.map +1 -1
  183. package/dist/types/default/data-display/ConnectionsGraph/board/EdgeLayer.d.ts +16 -8
  184. package/dist/types/default/data-display/ConnectionsGraph/board/EdgeLayer.d.ts.map +1 -1
  185. package/dist/types/default/data-display/ConnectionsGraph/board/NodeBox.d.ts +13 -3
  186. package/dist/types/default/data-display/ConnectionsGraph/board/NodeBox.d.ts.map +1 -1
  187. package/dist/types/default/data-display/ConnectionsGraph/board/Overlays.d.ts +14 -2
  188. package/dist/types/default/data-display/ConnectionsGraph/board/Overlays.d.ts.map +1 -1
  189. package/dist/types/default/data-display/ConnectionsGraph/board/RibbonPills.d.ts +28 -0
  190. package/dist/types/default/data-display/ConnectionsGraph/board/RibbonPills.d.ts.map +1 -0
  191. package/dist/types/default/data-display/ConnectionsGraph/board/index.d.ts +15 -6
  192. package/dist/types/default/data-display/ConnectionsGraph/board/index.d.ts.map +1 -1
  193. package/dist/types/default/data-display/ConnectionsGraph/board/open-view.d.ts +24 -0
  194. package/dist/types/default/data-display/ConnectionsGraph/board/open-view.d.ts.map +1 -0
  195. package/dist/types/default/data-display/ConnectionsGraph/board/styles.d.ts.map +1 -1
  196. package/dist/types/default/data-display/ConnectionsGraph/board/theme.d.ts +2 -2
  197. package/dist/types/default/data-display/ConnectionsGraph/board/theme.d.ts.map +1 -1
  198. package/dist/types/default/data-display/ConnectionsGraph/board/useZoomPan.d.ts +6 -10
  199. package/dist/types/default/data-display/ConnectionsGraph/board/useZoomPan.d.ts.map +1 -1
  200. package/dist/types/default/data-display/ConnectionsGraph/index.d.ts.map +1 -1
  201. package/dist/types/default/data-display/ConnectionsGraph/model/fold.d.ts +7 -0
  202. package/dist/types/default/data-display/ConnectionsGraph/model/fold.d.ts.map +1 -0
  203. package/dist/types/default/data-display/ConnectionsGraph/model/graph.d.ts +8 -1
  204. package/dist/types/default/data-display/ConnectionsGraph/model/graph.d.ts.map +1 -1
  205. package/dist/types/default/data-display/ConnectionsGraph/model/index.d.ts +7 -2
  206. package/dist/types/default/data-display/ConnectionsGraph/model/index.d.ts.map +1 -1
  207. package/dist/types/default/data-display/ConnectionsGraph/model/layout/columns.d.ts +1 -1
  208. package/dist/types/default/data-display/ConnectionsGraph/model/layout/columns.d.ts.map +1 -1
  209. package/dist/types/default/data-display/ConnectionsGraph/model/layout/edge-lines.d.ts +3 -1
  210. package/dist/types/default/data-display/ConnectionsGraph/model/layout/edge-lines.d.ts.map +1 -1
  211. package/dist/types/default/data-display/ConnectionsGraph/model/layout/geometry.d.ts +4 -8
  212. package/dist/types/default/data-display/ConnectionsGraph/model/layout/geometry.d.ts.map +1 -1
  213. package/dist/types/default/data-display/ConnectionsGraph/model/layout/lanes.d.ts +6 -5
  214. package/dist/types/default/data-display/ConnectionsGraph/model/layout/lanes.d.ts.map +1 -1
  215. package/dist/types/default/data-display/ConnectionsGraph/model/layout/pills.d.ts +47 -0
  216. package/dist/types/default/data-display/ConnectionsGraph/model/layout/pills.d.ts.map +1 -0
  217. package/dist/types/default/data-display/ConnectionsGraph/model/layout/ribbon-words.d.ts +7 -0
  218. package/dist/types/default/data-display/ConnectionsGraph/model/layout/ribbon-words.d.ts.map +1 -0
  219. package/dist/types/default/data-display/ConnectionsGraph/model/layout/ribbons.d.ts +24 -0
  220. package/dist/types/default/data-display/ConnectionsGraph/model/layout/ribbons.d.ts.map +1 -0
  221. package/dist/types/default/data-display/ConnectionsGraph/model/layout/routing.d.ts +1 -1
  222. package/dist/types/default/data-display/ConnectionsGraph/model/layout/routing.d.ts.map +1 -1
  223. package/dist/types/default/data-display/ConnectionsGraph/model/layout/text-flow.d.ts +7 -1
  224. package/dist/types/default/data-display/ConnectionsGraph/model/layout/text-flow.d.ts.map +1 -1
  225. package/dist/types/default/data-display/ConnectionsGraph/model/layout/tree.d.ts +55 -0
  226. package/dist/types/default/data-display/ConnectionsGraph/model/layout/tree.d.ts.map +1 -0
  227. package/dist/types/default/data-display/ConnectionsGraph/model/layout/types.d.ts +80 -4
  228. package/dist/types/default/data-display/ConnectionsGraph/model/layout/types.d.ts.map +1 -1
  229. package/dist/types/default/data-display/ConnectionsGraph/model/loops.d.ts +1 -1
  230. package/dist/types/default/data-display/ConnectionsGraph/model/loops.d.ts.map +1 -1
  231. package/dist/types/default/data-display/FolderStructure/index.d.ts +4 -4
  232. package/dist/types/default/data-display/FolderStructure/index.d.ts.map +1 -1
  233. package/dist/types/default/data-display/FolderStructure/model.d.ts +1 -1
  234. package/dist/types/default/data-display/FolderStructure/model.d.ts.map +1 -1
  235. package/dist/types/default/data-display/FolderStructure/styles.d.ts.map +1 -1
  236. package/dist/types/default/data-display/FolderStructure/theme.d.ts +1 -1
  237. package/dist/types/default/data-display/FolderStructure/theme.d.ts.map +1 -1
  238. package/dist/types/default/data-display/FolderStructure/types.d.ts +1 -1
  239. package/dist/types/default/data-display/FolderStructure/types.d.ts.map +1 -1
  240. package/dist/types/default/feedback/NotFoundSection/index.d.ts.map +1 -1
  241. package/dist/types/default/feedback/NotFoundSection/styles.d.ts.map +1 -1
  242. package/dist/types/default/index.d.ts +1 -1
  243. package/dist/types/default/index.d.ts.map +1 -1
  244. package/dist/types/default/navigation/HamburgerMenu/index.d.ts +1 -1
  245. package/dist/types/default/navigation/HamburgerMenu/index.d.ts.map +1 -1
  246. package/dist/types/default/report/Action/index.d.ts +15 -0
  247. package/dist/types/default/report/Action/index.d.ts.map +1 -0
  248. package/dist/types/default/report/Action/styles.d.ts +7 -0
  249. package/dist/types/default/report/Action/styles.d.ts.map +1 -0
  250. package/dist/types/default/report/Detail/index.d.ts +2 -0
  251. package/dist/types/default/report/Detail/index.d.ts.map +1 -0
  252. package/dist/types/default/report/Detail/styles.d.ts +39 -0
  253. package/dist/types/default/report/Detail/styles.d.ts.map +1 -0
  254. package/dist/types/default/report/FindingsTable/Row/index.d.ts +16 -0
  255. package/dist/types/default/report/FindingsTable/Row/index.d.ts.map +1 -0
  256. package/dist/types/default/report/FindingsTable/Toolbar/index.d.ts +27 -0
  257. package/dist/types/default/report/FindingsTable/Toolbar/index.d.ts.map +1 -0
  258. package/dist/types/default/report/FindingsTable/index.d.ts +5 -0
  259. package/dist/types/default/report/FindingsTable/index.d.ts.map +1 -0
  260. package/dist/types/default/report/FolderBrowser/index.d.ts +14 -0
  261. package/dist/types/default/report/FolderBrowser/index.d.ts.map +1 -0
  262. package/dist/types/default/report/FolderBrowser/styles.d.ts +12 -0
  263. package/dist/types/default/report/FolderBrowser/styles.d.ts.map +1 -0
  264. package/dist/types/default/report/GroupBrowser/groups.d.ts +18 -0
  265. package/dist/types/default/report/GroupBrowser/groups.d.ts.map +1 -0
  266. package/dist/types/default/report/GroupBrowser/index.d.ts +13 -0
  267. package/dist/types/default/report/GroupBrowser/index.d.ts.map +1 -0
  268. package/dist/types/default/report/GroupBrowser/members.d.ts +16 -0
  269. package/dist/types/default/report/GroupBrowser/members.d.ts.map +1 -0
  270. package/dist/types/default/report/GroupBrowser/styles.d.ts +29 -0
  271. package/dist/types/default/report/GroupBrowser/styles.d.ts.map +1 -0
  272. package/dist/types/default/report/PairBrowser/board/index.d.ts +29 -0
  273. package/dist/types/default/report/PairBrowser/board/index.d.ts.map +1 -0
  274. package/dist/types/default/report/PairBrowser/board/tokens.d.ts +12 -0
  275. package/dist/types/default/report/PairBrowser/board/tokens.d.ts.map +1 -0
  276. package/dist/types/default/report/PairBrowser/detail.d.ts +13 -0
  277. package/dist/types/default/report/PairBrowser/detail.d.ts.map +1 -0
  278. package/dist/types/default/report/PairBrowser/index.d.ts +43 -0
  279. package/dist/types/default/report/PairBrowser/index.d.ts.map +1 -0
  280. package/dist/types/default/report/PairBrowser/list.d.ts +30 -0
  281. package/dist/types/default/report/PairBrowser/list.d.ts.map +1 -0
  282. package/dist/types/default/report/PairBrowser/modes.d.ts +28 -0
  283. package/dist/types/default/report/PairBrowser/modes.d.ts.map +1 -0
  284. package/dist/types/default/report/PairBrowser/pane/index.d.ts +25 -0
  285. package/dist/types/default/report/PairBrowser/pane/index.d.ts.map +1 -0
  286. package/dist/types/default/report/PairBrowser/pane/legend.d.ts +38 -0
  287. package/dist/types/default/report/PairBrowser/pane/legend.d.ts.map +1 -0
  288. package/dist/types/default/report/PairBrowser/pane/members.d.ts +12 -0
  289. package/dist/types/default/report/PairBrowser/pane/members.d.ts.map +1 -0
  290. package/dist/types/default/report/PairBrowser/pane/nav.d.ts +5 -0
  291. package/dist/types/default/report/PairBrowser/pane/nav.d.ts.map +1 -0
  292. package/dist/types/default/report/PairBrowser/pane/panel.d.ts +8 -0
  293. package/dist/types/default/report/PairBrowser/pane/panel.d.ts.map +1 -0
  294. package/dist/types/default/report/PairBrowser/pane/styles.d.ts +60 -0
  295. package/dist/types/default/report/PairBrowser/pane/styles.d.ts.map +1 -0
  296. package/dist/types/default/report/PairBrowser/pane/types.d.ts +42 -0
  297. package/dist/types/default/report/PairBrowser/pane/types.d.ts.map +1 -0
  298. package/dist/types/default/report/PairBrowser/rows.d.ts +6 -0
  299. package/dist/types/default/report/PairBrowser/rows.d.ts.map +1 -0
  300. package/dist/types/default/report/PairBrowser/styles.d.ts +95 -0
  301. package/dist/types/default/report/PairBrowser/styles.d.ts.map +1 -0
  302. package/dist/types/default/report/PairBrowser/view.d.ts +87 -0
  303. package/dist/types/default/report/PairBrowser/view.d.ts.map +1 -0
  304. package/dist/types/default/report/Panel/index.d.ts +14 -0
  305. package/dist/types/default/report/Panel/index.d.ts.map +1 -0
  306. package/dist/types/default/report/Prose/index.d.ts +20 -0
  307. package/dist/types/default/report/Prose/index.d.ts.map +1 -0
  308. package/dist/types/default/report/ReportShell/index.d.ts +31 -0
  309. package/dist/types/default/report/ReportShell/index.d.ts.map +1 -0
  310. package/dist/types/default/report/ReportShell/styles.d.ts +17 -0
  311. package/dist/types/default/report/ReportShell/styles.d.ts.map +1 -0
  312. package/dist/types/default/report/SummaryBoard/index.d.ts +32 -0
  313. package/dist/types/default/report/SummaryBoard/index.d.ts.map +1 -0
  314. package/dist/types/default/report/SummaryBoard/styles.d.ts +34 -0
  315. package/dist/types/default/report/SummaryBoard/styles.d.ts.map +1 -0
  316. package/dist/types/default/report/index.d.ts +27 -0
  317. package/dist/types/default/report/index.d.ts.map +1 -0
  318. package/dist/types/default/report/model/filters.d.ts +35 -0
  319. package/dist/types/default/report/model/filters.d.ts.map +1 -0
  320. package/dist/types/default/report/model/gutter.d.ts +5 -0
  321. package/dist/types/default/report/model/gutter.d.ts.map +1 -0
  322. package/dist/types/default/report/model/hash.d.ts +12 -0
  323. package/dist/types/default/report/model/hash.d.ts.map +1 -0
  324. package/dist/types/default/report/model/lanes/ast.d.ts +33 -0
  325. package/dist/types/default/report/model/lanes/ast.d.ts.map +1 -0
  326. package/dist/types/default/report/model/lanes/correspondence.d.ts +22 -0
  327. package/dist/types/default/report/model/lanes/correspondence.d.ts.map +1 -0
  328. package/dist/types/default/report/model/lanes/flow.d.ts +26 -0
  329. package/dist/types/default/report/model/lanes/flow.d.ts.map +1 -0
  330. package/dist/types/default/report/model/lanes/names.d.ts +10 -0
  331. package/dist/types/default/report/model/lanes/names.d.ts.map +1 -0
  332. package/dist/types/default/report/model/lanes/paint.d.ts +26 -0
  333. package/dist/types/default/report/model/lanes/paint.d.ts.map +1 -0
  334. package/dist/types/default/report/model/lanes/tree.d.ts +32 -0
  335. package/dist/types/default/report/model/lanes/tree.d.ts.map +1 -0
  336. package/dist/types/default/report/model/lanes/types.d.ts +146 -0
  337. package/dist/types/default/report/model/lanes/types.d.ts.map +1 -0
  338. package/dist/types/default/report/model/pair/board.d.ts +25 -0
  339. package/dist/types/default/report/model/pair/board.d.ts.map +1 -0
  340. package/dist/types/default/report/model/pair/marks.d.ts +99 -0
  341. package/dist/types/default/report/model/pair/marks.d.ts.map +1 -0
  342. package/dist/types/default/report/model/pair/snapshot/board.d.ts +33 -0
  343. package/dist/types/default/report/model/pair/snapshot/board.d.ts.map +1 -0
  344. package/dist/types/default/report/model/pair/snapshot/lanes.d.ts +45 -0
  345. package/dist/types/default/report/model/pair/snapshot/lanes.d.ts.map +1 -0
  346. package/dist/types/default/report/model/pair/snapshot/match.d.ts +21 -0
  347. package/dist/types/default/report/model/pair/snapshot/match.d.ts.map +1 -0
  348. package/dist/types/default/report/model/pair/snapshot/rows.d.ts +50 -0
  349. package/dist/types/default/report/model/pair/snapshot/rows.d.ts.map +1 -0
  350. package/dist/types/default/report/model/pair/snapshot/styles.d.ts +28 -0
  351. package/dist/types/default/report/model/pair/snapshot/styles.d.ts.map +1 -0
  352. package/dist/types/default/report/model/pair/text.d.ts +22 -0
  353. package/dist/types/default/report/model/pair/text.d.ts.map +1 -0
  354. package/dist/types/default/report/model/pair/types.d.ts +166 -0
  355. package/dist/types/default/report/model/pair/types.d.ts.map +1 -0
  356. package/dist/types/default/report/model/score.d.ts +15 -0
  357. package/dist/types/default/report/model/score.d.ts.map +1 -0
  358. package/dist/types/default/report/model/screen.d.ts +52 -0
  359. package/dist/types/default/report/model/screen.d.ts.map +1 -0
  360. package/dist/types/default/report/model/table.d.ts +14 -0
  361. package/dist/types/default/report/model/table.d.ts.map +1 -0
  362. package/dist/types/default/report/model/types.d.ts +166 -0
  363. package/dist/types/default/report/model/types.d.ts.map +1 -0
  364. package/dist/types/default/report/pair-lenses/board.d.ts +5 -0
  365. package/dist/types/default/report/pair-lenses/board.d.ts.map +1 -0
  366. package/dist/types/default/report/pair-lenses/index.d.ts +4 -0
  367. package/dist/types/default/report/pair-lenses/index.d.ts.map +1 -0
  368. package/dist/types/default/report/pair-snapshot/index.d.ts +7 -0
  369. package/dist/types/default/report/pair-snapshot/index.d.ts.map +1 -0
  370. package/package.json +587 -133
  371. package/dist/board-D3Xh9LzU.js +0 -2042
  372. package/dist/gap-DiNGdMzF.js +0 -112
  373. package/dist/model-CPYzATkg.js +0 -469
  374. package/dist/types/default/data-display/ConnectionsGraph/model/layout/label-search.d.ts +0 -18
  375. package/dist/types/default/data-display/ConnectionsGraph/model/layout/label-search.d.ts.map +0 -1
  376. package/dist/types/default/data-display/ConnectionsGraph/model/layout/occupancy.d.ts +0 -25
  377. package/dist/types/default/data-display/ConnectionsGraph/model/layout/occupancy.d.ts.map +0 -1
package/dist/report.js ADDED
@@ -0,0 +1,1409 @@
1
+ import { DiffLegend as e } from "@md-code/components/diff-legend";
2
+ import { NavTabs as t } from "@md-code/components/nav-tabs";
3
+ import { PageHeader as n } from "@md-code/components/page-header";
4
+ import { GlobalStyles as r, pairTheme as i } from "@md-code/styles";
5
+ import { useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
6
+ import l, { ThemeProvider as u, useTheme as d } from "styled-components";
7
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
8
+ import { Chip as h } from "@md-code/components/chip";
9
+ import { Column as g } from "@md-code/components/containers";
10
+ import { Empty as _ } from "@md-code/components/empty";
11
+ import { Row as v } from "@md-code/components/row";
12
+ import { Separator as y } from "@md-code/components/separator";
13
+ import { Stack as b } from "@md-code/components/stack";
14
+ import { StatGrid as x } from "@md-code/components/stat-grid";
15
+ import { StatusText as S } from "@md-code/components/status-text";
16
+ import { SubtleText as C } from "@md-code/components/subtle-text";
17
+ import { TextLink as w } from "@md-code/components/text-link";
18
+ import { Highlighted as T, PlainText as E } from "@md-code/components/typography";
19
+ import { fixed as D, location as O, percent as k } from "@md-code/utils/format";
20
+ import { ellipsisPath as A, languageOf as j } from "@md-code/utils/text";
21
+ import { Surface as M } from "@md-code/components/surface";
22
+ import { reportPanelTheme as N } from "@md-code/styles/themes";
23
+ import { Input as P } from "@md-code/components/input";
24
+ import { Pagination as F } from "@md-code/components/pagination";
25
+ import I, { ContentCell as L } from "@md-code/components/table";
26
+ import { MonoText as R } from "@md-code/components/mono-text";
27
+ import { ScorePills as ee } from "@md-code/components/score-pills";
28
+ import { Button as te } from "@md-code/components/button";
29
+ import { FilterBar as ne } from "@md-code/components/filter-bar";
30
+ import { Select as re } from "@md-code/components/select";
31
+ import { SliderField as ie } from "@md-code/components/slider-field";
32
+ import { t as ae } from "./board-DmWPJpAU.js";
33
+ import { a as oe, r as se, t as ce } from "./model-CAvT-z-8.js";
34
+ import { tokensOf as le } from "@md-code/components/code-view/tokenizer";
35
+ import { a as ue, r as de, t as fe } from "./marks-B0ikyg8U.js";
36
+ import { t as pe } from "./FolderStructure-D6x844U9.js";
37
+ import { ScorePanel as me } from "@md-code/components/score-panel";
38
+ import { n as he, r as ge, t as _e } from "./text-BPoY89bb.js";
39
+ // default/report/ReportShell/styles.ts
40
+ var ve = l.div`
41
+ display: flex;
42
+ flex-direction: column;
43
+ min-height: 100%;
44
+ /* The page margin: the zone's between-elements rhythm plus one element step,
45
+ which is the 20px the report has always kept — one gap mechanism, carried by
46
+ the children (the header and the tab strip own their own margin-bottom),
47
+ never both. */
48
+ padding: calc(${(e) => e.theme.offsets.betweenElements} + ${(e) => e.theme.offsets.elementContent});
49
+ background-color: ${(e) => e.theme.colors.section};
50
+ color: ${(e) => e.theme.colors.sectionContent};
51
+ /* The page's own base typography: the report still reads at the same size,
52
+ leading and sans face as the report it replaces — every screen inherits
53
+ this, and a component only overrides the role it changes. */
54
+ font-family: ${(e) => e.theme.font.family.title};
55
+ font-size: ${(e) => e.theme.font.sizes.regular};
56
+ line-height: 1.5;
57
+
58
+ /* The two page-wide rules the reset would otherwise take away: a code sample
59
+ reads as code wherever it appears, and a <strong> is bold rather than the
60
+ size it happens to sit in (the baseline's own body rules, README §6). */
61
+ & code,
62
+ & pre {
63
+ font-family: ${(e) => e.theme.font.family.text};
64
+ }
65
+
66
+ & strong,
67
+ & h1 {
68
+ font-weight: 700;
69
+ }
70
+ `, ye = l.div`
71
+ display: flex;
72
+ flex-wrap: wrap;
73
+ align-items: baseline;
74
+ font-size: ${(e) => e.theme.font.sizes.small};
75
+ color: ${(e) => e.theme.colors.status?.faint?.content ?? e.theme.colors.sectionContent};
76
+ `, be = l.main`
77
+ flex: 1 1 auto;
78
+ min-width: 0;
79
+ `, xe = ({ subject: i, caption: a, tabs: o, legend: s, legendLead: c, children: l }) => {
80
+ let u = (s ?? []).map((e) => ({
81
+ key: e.key,
82
+ label: e.label,
83
+ status: e.status,
84
+ title: e.title
85
+ }));
86
+ return /* @__PURE__ */ m(ve, { children: [
87
+ /* @__PURE__ */ p(r, {}),
88
+ /* @__PURE__ */ p(n, {
89
+ title: i,
90
+ aside: a
91
+ }),
92
+ /* @__PURE__ */ p(t, { tabs: o }),
93
+ /* @__PURE__ */ p(be, { children: l }),
94
+ u.length > 0 ? /* @__PURE__ */ p(ye, { children: /* @__PURE__ */ p(e, {
95
+ entries: u,
96
+ children: c
97
+ }) }) : null
98
+ ] });
99
+ }, Se = [
100
+ "summary",
101
+ "groups",
102
+ "folders",
103
+ "findings",
104
+ "pair"
105
+ ], Ce = () => {
106
+ let [e, t = ""] = window.location.hash.replace(/^#\/?/, "").split("?"), n = Object.fromEntries(new URLSearchParams(t));
107
+ return {
108
+ tab: Se.includes(e) ? e : "summary",
109
+ params: n
110
+ };
111
+ }, z = (e, t = {}) => {
112
+ let n = Object.entries(t).filter(([, e]) => e != null && e !== ""), r = new URLSearchParams(n).toString();
113
+ return `#/${e}${r ? `?${r}` : ""}`;
114
+ }, we = () => {
115
+ let [e, t] = c(Ce);
116
+ return a(() => {
117
+ let e = () => t(Ce());
118
+ return window.addEventListener("hashchange", e), window.location.hash || (window.location.hash = "#/summary"), () => window.removeEventListener("hashchange", e);
119
+ }, []), e;
120
+ }, B = (e) => /* @__PURE__ */ p(M, {
121
+ theme: N,
122
+ ...e
123
+ }), Te = ({ children: e }) => {
124
+ let t = d(), n = t.font.family.title;
125
+ return /* @__PURE__ */ p(u, {
126
+ theme: {
127
+ ...t,
128
+ font: {
129
+ ...t.font,
130
+ family: {
131
+ text: n,
132
+ title: n
133
+ }
134
+ }
135
+ },
136
+ children: e
137
+ });
138
+ }, Ee = l.div`
139
+ display: grid;
140
+ grid-template-columns: repeat(auto-fit, minmax(calc(${({ theme: e }) => e.offsets.section} * 20), 1fr));
141
+ gap: ${({ theme: e }) => e.offsets.betweenElements};
142
+ `, De = l.div`
143
+ margin-top: ${({ theme: e }) => e.offsets.betweenElements};
144
+ `, Oe = l.div`
145
+ display: grid;
146
+ grid-template-columns: max-content minmax(0, 1fr) auto;
147
+ column-gap: ${({ theme: e }) => e.offsets.betweenElements};
148
+ align-items: center;
149
+ `, ke = l.div`
150
+ grid-column: 1 / -1;
151
+ `, Ae = (e) => e.flatMap((t, n) => n === e.length - 1 ? [t] : [t, /* @__PURE__ */ p(y, {
152
+ $dashed: !0,
153
+ $status: "edge"
154
+ }, n)]), je = ({ data: e, statusOf: t, stats: n, tiles: r, note: i, thresholds: a, top: o = 8, memberWord: s = "item(s)" }) => {
155
+ let { meta: c, groups: l, byKind: u } = e, d = (e) => u.find((t) => t.value === e)?.count ?? 0, f = l.slice(0, o), T = [];
156
+ for (let e of r) T.push(/* @__PURE__ */ m(v, { children: [
157
+ /* @__PURE__ */ p(h, {
158
+ $nowrap: !0,
159
+ $status: t(e.key),
160
+ children: e.label
161
+ }),
162
+ /* @__PURE__ */ p(b, { $grow: !0 }),
163
+ /* @__PURE__ */ p("strong", { children: d(e.key) })
164
+ ] }, e.key));
165
+ let O = [];
166
+ for (let e of f) O.push(/* @__PURE__ */ m(v, { children: [
167
+ /* @__PURE__ */ p(b, {
168
+ $grow: !0,
169
+ children: /* @__PURE__ */ m(g, { children: [/* @__PURE__ */ p(w, {
170
+ href: z("groups", { group: e.id }),
171
+ $status: "accent",
172
+ $underline: !1,
173
+ children: e.name
174
+ }), /* @__PURE__ */ p(C, { children: e.canonical?.path ? A(e.canonical.path, 2) : `${e.kind} group` })] })
175
+ }),
176
+ /* @__PURE__ */ m(h, {
177
+ $nowrap: !0,
178
+ children: [
179
+ e.count,
180
+ " ",
181
+ s
182
+ ]
183
+ }),
184
+ /* @__PURE__ */ p(h, {
185
+ $nowrap: !0,
186
+ $status: t("accent"),
187
+ children: D(e.maxConfidence ?? NaN)
188
+ })
189
+ ] }, e.id));
190
+ let k = [], j = e.signals ?? [];
191
+ for (let [n, r] of j.entries()) {
192
+ let i = e.decisions?.weights?.[r.key];
193
+ k.push(/* @__PURE__ */ p(S, {
194
+ $status: t(r.key) ?? r.key,
195
+ children: r.label
196
+ }, `${r.key}-name`), /* @__PURE__ */ p(C, { children: r.what }, `${r.key}-what`), /* @__PURE__ */ p(h, {
197
+ $nowrap: !0,
198
+ children: i == null ? "—" : `${Math.round(i * 100)}%`
199
+ }, `${r.key}-weight`)), n < j.length - 1 && k.push(/* @__PURE__ */ p(ke, { children: /* @__PURE__ */ p(y, {
200
+ $dashed: !0,
201
+ $status: "edge"
202
+ }) }, `${r.key}-rule`));
203
+ }
204
+ return /* @__PURE__ */ m(b, { children: [/* @__PURE__ */ p(x, { children: n }), /* @__PURE__ */ m(Ee, { children: [
205
+ /* @__PURE__ */ m(B, {
206
+ heading: "What the run concluded",
207
+ actions: /* @__PURE__ */ p(C, { children: c.repoName }),
208
+ children: [Ae(T), i ? /* @__PURE__ */ p(De, { children: /* @__PURE__ */ p(Te, { children: /* @__PURE__ */ p(E, {
209
+ $tone: "dim",
210
+ children: i
211
+ }) }) }) : null]
212
+ }),
213
+ /* @__PURE__ */ p(B, {
214
+ heading: "Biggest similarity groups",
215
+ actions: /* @__PURE__ */ p(w, {
216
+ href: z("groups"),
217
+ $status: "accent",
218
+ $underline: !1,
219
+ children: "all groups →"
220
+ }),
221
+ children: O.length === 0 ? /* @__PURE__ */ p(_, { children: "No groups — nothing matched anything." }) : Ae(O)
222
+ }),
223
+ /* @__PURE__ */ m(B, {
224
+ heading: "How the verdict is computed",
225
+ actions: /* @__PURE__ */ p(C, { children: "weights × group scores, normalized" }),
226
+ children: [j.length === 0 ? /* @__PURE__ */ p(_, { children: "No signals — this report weighs nothing." }) : /* @__PURE__ */ p(Oe, { children: k }), a ? /* @__PURE__ */ p(De, { children: /* @__PURE__ */ p(Te, { children: /* @__PURE__ */ p(E, {
227
+ $tone: "dim",
228
+ children: a
229
+ }) }) }) : null]
230
+ })
231
+ ] })] });
232
+ }, Me = (e, t) => (e.decision?.signals ?? []).find((e) => e.key === t)?.score ?? 0, Ne = (e, t) => {
233
+ if (e.clusterPair || t.kind !== "all" && e.kind !== t.kind) return !1;
234
+ if (e.decision) {
235
+ for (let [n, r] of Object.entries(t.floors)) if (r > 0 && Me(e, n) < r) return !1;
236
+ }
237
+ return !t.query || `${e.left?.name ?? ""} ${e.left?.path ?? ""} ${e.right?.name ?? ""} ${e.right?.path ?? ""} ${e.message}`.toLowerCase().includes(t.query.toLowerCase());
238
+ }, Pe = [
239
+ ["confidence-desc", "confidence ↓"],
240
+ ["confidence-asc", "confidence ↑"],
241
+ ["name", "local name A→Z"],
242
+ ["path", "path A→Z"],
243
+ ["kind", "kind"]
244
+ ], Fe = 100, V = (e) => e.clusterConfidence ?? e.confidence ?? 0, H = (e, t) => V(t) - V(e), Ie = (e, t) => {
245
+ let n = [...e];
246
+ return t === "confidence-asc" ? n.sort((e, t) => H(t, e)) : t === "name" ? n.sort((e, t) => String(e.left?.name ?? "").localeCompare(String(t.left?.name ?? ""))) : t === "path" ? n.sort((e, t) => String(e.left?.path ?? "").localeCompare(String(t.left?.path ?? "")) || H(e, t)) : t === "kind" ? n.sort((e, t) => String(e.kind).localeCompare(String(t.kind)) || H(e, t)) : n.sort(H), n;
247
+ }, Le = "Why this verdict", Re = "confidence", ze = "Fix.", Be = (e, t) => {
248
+ let n = [];
249
+ for (let r of e.signals ?? []) {
250
+ let e = [];
251
+ for (let t of r.evidence ?? []) e.push({
252
+ key: t.key ?? "",
253
+ label: t.label ?? "",
254
+ value: t.value ?? ""
255
+ });
256
+ n.push({
257
+ key: r.key,
258
+ label: r.label,
259
+ status: t(r.key),
260
+ short: r.short,
261
+ note: r.what,
262
+ score: r.score,
263
+ weight: r.weight,
264
+ contribution: r.contribution,
265
+ applied: r.applied,
266
+ facts: e
267
+ });
268
+ }
269
+ return n;
270
+ }, Ve = (e, t) => {
271
+ let n = [];
272
+ for (let r of e.why ?? []) n.push({
273
+ text: r.text,
274
+ status: t(r.tone ?? "")
275
+ });
276
+ return n;
277
+ }, He = (e) => Object.entries(e.thresholds ?? {}).map(([e, t]) => ({
278
+ label: e,
279
+ value: t
280
+ })), Ue = (e, t) => {
281
+ let n = e.decision;
282
+ return n ? {
283
+ heading: Le,
284
+ status: t(e.kind ?? ""),
285
+ value: n.confidence ?? NaN,
286
+ valueLabel: Re,
287
+ thresholds: He(n),
288
+ parts: Be(n, t),
289
+ notes: Ve(n, t),
290
+ action: e.fix?.text ? {
291
+ mark: ze,
292
+ text: e.fix.text
293
+ } : null
294
+ } : null;
295
+ }, We = (e, t) => {
296
+ let n = [];
297
+ for (let r of e.decision?.signals ?? []) n.push({
298
+ key: r.key,
299
+ label: r.short ?? r.label,
300
+ value: r.score,
301
+ status: t(r.key),
302
+ title: `${r.label} ${D(r.score)} · ${k(r.weight)}% weight · ${k(r.contribution)}% of the verdict`
303
+ });
304
+ return n;
305
+ }, Ge = (e) => e.left ?? (Array.isArray(e.members) && e.members.length > 0 ? e.members[0] : null), Ke = (e) => !!(e.hasPair || e.pairId || e.members?.length || e.left || e.right), qe = (e) => e.pairId ? "open cluster pair →" : e.hasPair ? "open diff →" : "open details →", Je = ({ finding: e, statusOf: t, clusters: n = !1 }) => {
306
+ let r = Ge(e), i = D(n ? V(e) : e.confidence ?? NaN);
307
+ return /* @__PURE__ */ m(f, { children: [
308
+ /* @__PURE__ */ p(L, { children: /* @__PURE__ */ m(v, { children: [e.label ? /* @__PURE__ */ p(h, {
309
+ $status: t(e.kind ?? ""),
310
+ $nowrap: !0,
311
+ children: e.label
312
+ }) : null, e.severityLabel ? /* @__PURE__ */ p(h, {
313
+ $status: t(e.severity ?? ""),
314
+ $nowrap: !0,
315
+ children: e.severityLabel
316
+ }) : null] }) }),
317
+ /* @__PURE__ */ p(L, { children: /* @__PURE__ */ m(g, { children: [/* @__PURE__ */ p(T, { children: r?.name ?? "—" }), /* @__PURE__ */ p(R, {
318
+ $tone: "faint",
319
+ $size: "small",
320
+ children: O(r)
321
+ })] }) }),
322
+ /* @__PURE__ */ p(L, { children: /* @__PURE__ */ m(g, { children: [/* @__PURE__ */ p(T, { children: e.right?.name ?? (e.members ? `↔ ${e.members.length} members` : "—") }), /* @__PURE__ */ p(R, {
323
+ $tone: "faint",
324
+ $size: "small",
325
+ children: e.right ? O(e.right) : ""
326
+ })] }) }),
327
+ /* @__PURE__ */ p(L, { children: /* @__PURE__ */ p(T, { children: i }) }),
328
+ /* @__PURE__ */ p(L, { children: /* @__PURE__ */ p(ee, { items: We(e, t) }) }),
329
+ /* @__PURE__ */ p(L, { children: Ke(e) ? /* @__PURE__ */ p(w, {
330
+ href: z("pair", { id: e.pairId ?? e.id }),
331
+ $status: "accent",
332
+ children: qe(e)
333
+ }) : /* @__PURE__ */ p(C, { children: "—" }) })
334
+ ] });
335
+ }, Ye = Pe.map(([e, t]) => ({
336
+ value: e,
337
+ label: t
338
+ })), Xe = ({ kinds: e, byKind: t, signals: n, statusOf: r, kind: i, onKind: a, floors: o, onFloors: s, sort: c, onSort: l, dirty: u, onReset: d }) => {
339
+ let f = [/* @__PURE__ */ p(h, {
340
+ as: "button",
341
+ $active: i === "all",
342
+ onClick: () => a("all"),
343
+ children: "all"
344
+ }, "all")];
345
+ for (let n of e) {
346
+ let e = t.find((e) => e.value === n)?.count ?? 0;
347
+ (e !== 0 || i === n) && f.push(/* @__PURE__ */ m(h, {
348
+ as: "button",
349
+ $active: i === n,
350
+ $status: r(n),
351
+ onClick: () => a(n),
352
+ children: [
353
+ n,
354
+ " (",
355
+ e,
356
+ ")"
357
+ ]
358
+ }, n));
359
+ }
360
+ let g = n.map((e) => /* @__PURE__ */ p(ie, {
361
+ id: `floor-${e.key}`,
362
+ label: /* @__PURE__ */ p(C, { children: e.short ?? e.label }),
363
+ status: r(e.key),
364
+ value: o[e.key] ?? 0,
365
+ min: 0,
366
+ max: 1,
367
+ step: .05,
368
+ valueLabel: (o[e.key] ?? 0).toFixed(2),
369
+ onChange: (t) => s({
370
+ ...o,
371
+ [e.key]: t
372
+ })
373
+ }, e.key)), _ = Ye.find((e) => e.value === c) ?? null;
374
+ return /* @__PURE__ */ p(ne, { rows: [
375
+ {
376
+ label: /* @__PURE__ */ p(C, { children: "kind" }),
377
+ controls: /* @__PURE__ */ p(v, { children: f })
378
+ },
379
+ {
380
+ label: /* @__PURE__ */ p(C, { children: "group ≥" }),
381
+ controls: /* @__PURE__ */ p(v, { children: g })
382
+ },
383
+ {
384
+ label: /* @__PURE__ */ p(C, { children: "sort" }),
385
+ controls: /* @__PURE__ */ m(v, { children: [/* @__PURE__ */ p(re, {
386
+ options: Ye,
387
+ value: _,
388
+ onChange: (e) => l(String(e?.value ?? c))
389
+ }), u ? /* @__PURE__ */ p(te, {
390
+ weight: "outline",
391
+ size: "small",
392
+ tone: "passive",
393
+ onClick: d,
394
+ children: "reset filters"
395
+ }) : null] })
396
+ }
397
+ ] });
398
+ }, Ze = "minmax(0, 6fr) minmax(0, 18fr) minmax(0, 20fr) minmax(0, 5fr) minmax(0, 18fr) minmax(0, 6fr)", Qe = ({ data: e, statusOf: t, kinds: n, localLabel: r = "Local", note: i, clusters: s = !1 }) => {
399
+ let [l, u] = c("all"), [d, f] = c(""), [h, g] = c("confidence-desc"), [v, y] = c({}), [x, S] = c(0), w = e.signals ?? [], T = o(() => Ie(e.findings.filter((e) => Ne(e, {
400
+ kind: l,
401
+ query: d,
402
+ floors: v
403
+ })), h), [
404
+ e.findings,
405
+ l,
406
+ d,
407
+ h,
408
+ v
409
+ ]), E = Math.max(1, Math.ceil(T.length / 100));
410
+ a(() => {
411
+ S(0);
412
+ }, [
413
+ l,
414
+ d,
415
+ h,
416
+ v
417
+ ]), a(() => {
418
+ x > E - 1 && S(E - 1);
419
+ }, [x, E]);
420
+ let D = T.slice(x * 100, (x + 1) * 100), O = w.some((e) => (v[e.key] ?? 0) > 0), k = l !== "all" || d !== "" || O || h !== "confidence-desc", A = () => {
421
+ u("all"), f(""), g("confidence-desc"), y({}), S(0);
422
+ }, j = [];
423
+ T.length === 0 && j.push(/* @__PURE__ */ p(L, {
424
+ $spanAll: !0,
425
+ children: /* @__PURE__ */ p(_, { children: "Nothing matches the filter." })
426
+ }, "empty"));
427
+ for (let e of D) j.push(/* @__PURE__ */ p(Je, {
428
+ finding: e,
429
+ statusOf: t,
430
+ clusters: s
431
+ }, e.id));
432
+ let M = [
433
+ { text: "Kind" },
434
+ { text: r },
435
+ { text: "Canonical / peer" },
436
+ { text: "Confidence" },
437
+ { text: "Signals" },
438
+ { text: "Diff" }
439
+ ];
440
+ return /* @__PURE__ */ p(B, {
441
+ heading: `Findings (${T.length})`,
442
+ actions: i ? /* @__PURE__ */ p(C, { children: i }) : null,
443
+ children: /* @__PURE__ */ m(b, { children: [
444
+ /* @__PURE__ */ p(P, {
445
+ value: d,
446
+ onChange: (e) => f(e.target.value),
447
+ placeholder: "Filter by name, path or words…",
448
+ "aria-label": "Filter by name, path or words…"
449
+ }),
450
+ /* @__PURE__ */ p(Xe, {
451
+ kinds: n,
452
+ byKind: e.byKind,
453
+ signals: w,
454
+ statusOf: t,
455
+ kind: l,
456
+ onKind: u,
457
+ floors: v,
458
+ onFloors: y,
459
+ sort: h,
460
+ onSort: g,
461
+ dirty: k,
462
+ onReset: A
463
+ }),
464
+ /* @__PURE__ */ p(I, {
465
+ colsTemplate: Ze,
466
+ headerCols: M,
467
+ stickyHeader: !0,
468
+ size: "small",
469
+ children: j
470
+ }),
471
+ T.length > 100 ? /* @__PURE__ */ p(F, {
472
+ totalPages: E,
473
+ currentPage: x + 1,
474
+ onPageChange: (e) => S(e - 1)
475
+ }) : null
476
+ ] })
477
+ });
478
+ }, $e = l.div`
479
+ margin-top: calc(${(e) => e.theme.offsets.elementContent} + ${(e) => e.theme.border.size} * 2);
480
+ font-size: calc(${(e) => e.theme.font.sizes.small} + ${(e) => e.theme.border.size});
481
+ `, et = l.strong`
482
+ color: ${(e) => e.theme.colors.status?.ok?.content ?? e.theme.colors.sectionContent};
483
+ `, tt = ({ text: e }) => /* @__PURE__ */ m($e, { children: [
484
+ /* @__PURE__ */ p(et, { children: "Fix." }),
485
+ " ",
486
+ e
487
+ ] }), U = (e) => e.theme.colors.status?.dim?.content ?? e.theme.colors.sectionContent, nt = (e) => e.theme.colors.status?.accent?.content ?? e.theme.colors.highlighted, rt = l.h2`
488
+ margin: 0;
489
+ font-size: ${(e) => e.theme.font.sizes.large};
490
+ font-weight: ${(e) => e.theme.font.weight.title};
491
+ letter-spacing: ${(e) => e.theme.font.spacing};
492
+ color: ${(e) => e.theme.colors.sectionContent};
493
+ overflow-wrap: anywhere;
494
+
495
+ & strong {
496
+ font-weight: inherit;
497
+ }
498
+ `, it = l.p`
499
+ margin: 0 0 ${(e) => e.theme.offsets.elementContent};
500
+ font-size: calc(${(e) => e.theme.font.sizes.regular} + ${(e) => e.theme.border.size} / 2);
501
+ color: ${U};
502
+ `, at = l.a`
503
+ font-size: ${(e) => e.theme.font.sizes.small};
504
+ font-weight: ${(e) => e.theme.font.weight.text};
505
+ letter-spacing: normal;
506
+ color: ${nt};
507
+ text-decoration: none;
508
+ `, ot = l(R)`
509
+ font-size: inherit;
510
+ color: inherit;
511
+ `, st = l.strong`
512
+ color: ${(e) => e.$status ? e.theme.colors.status?.[e.$status]?.content ?? e.theme.colors.sectionContent : "inherit"};
513
+ `, ct = l.span`
514
+ font-size: ${(e) => e.theme.font.sizes.small};
515
+ color: ${U};
516
+ `, lt = l.p`
517
+ margin: 0 0 calc(${(e) => e.theme.offsets.elementContent} - ${(e) => e.theme.border.size} * 2);
518
+ font-size: ${(e) => e.theme.font.sizes.regular};
519
+ color: ${U};
520
+ `, ut = (e) => e.theme.colors.status?.dim?.content ?? e.theme.colors.sectionContent, dt = (e) => e.theme.colors.status?.accent?.content ?? e.theme.colors.highlighted, ft = l.div`
521
+ display: grid;
522
+ grid-template-columns: minmax(0, ${(e) => e.theme.elements.sidebar.width}) minmax(0, 1fr);
523
+ gap: ${(e) => e.theme.offsets.betweenElements};
524
+ align-items: start;
525
+ `, pt = l.a`
526
+ display: flex;
527
+ flex-direction: column;
528
+ gap: calc(${(e) => e.theme.border.size} * 2);
529
+ padding: calc(${(e) => e.theme.offsets.elementContent} - ${(e) => e.theme.border.size})
530
+ calc(${(e) => e.theme.offsets.elementContent} + ${(e) => e.theme.border.size} * 2);
531
+ border-radius: ${(e) => e.theme.border.radius};
532
+ border: ${(e) => e.theme.border.size} solid ${(e) => e.$active ? e.theme.colors.highlighted : "transparent"};
533
+ background: ${(e) => e.$active ? e.theme.colors.overlay : "transparent"};
534
+
535
+ &:hover {
536
+ background: ${(e) => e.theme.colors.overlay};
537
+ text-decoration: none;
538
+ }
539
+ `, mt = l.div`
540
+ display: flex;
541
+ align-items: baseline;
542
+ gap: calc(${(e) => e.theme.offsets.elementContent} - ${(e) => e.theme.border.size} * 2);
543
+ font-size: calc(${(e) => e.theme.font.sizes.regular} + ${(e) => e.theme.border.size} / 2);
544
+ color: ${(e) => e.theme.colors.sectionContent};
545
+ min-width: 0;
546
+ `, ht = l.a`
547
+ display: flex;
548
+ gap: ${(e) => e.theme.offsets.elementContent};
549
+ align-items: baseline;
550
+ padding: calc(${(e) => e.theme.border.size} * 3)
551
+ calc(${(e) => e.theme.offsets.elementContent} - ${(e) => e.theme.border.size} * 2);
552
+ font-size: ${(e) => e.theme.font.sizes.regular};
553
+ color: ${(e) => e.$active ? e.theme.colors.sectionContent : ut(e)};
554
+ background: ${(e) => e.$active ? e.theme.colors.overlay : "transparent"};
555
+ border-radius: ${(e) => e.theme.border.radius};
556
+ border-left: calc(${(e) => e.theme.border.size} * 2) solid ${(e) => e.$active ? dt(e) : "transparent"};
557
+
558
+ &:hover {
559
+ background: ${(e) => e.theme.colors.overlay};
560
+ text-decoration: none;
561
+ }
562
+ `, gt = l(R)`
563
+ font-size: calc(${(e) => e.theme.font.sizes.small} - ${(e) => e.theme.border.size});
564
+ color: inherit;
565
+ `, _t = l.span`
566
+ overflow: hidden;
567
+ text-overflow: ellipsis;
568
+ white-space: nowrap;
569
+ min-width: 0;
570
+ flex: 1 1 auto;
571
+ `, vt = l.div`
572
+ max-height: calc(${(e) => e.theme.offsets.section} * 14);
573
+ overflow: auto;
574
+ `;
575
+ l.strong`
576
+ color: ${(e) => e.theme.colors.status?.ok?.content ?? e.theme.colors.sectionContent};
577
+ `;
578
+ // default/report/GroupBrowser/groups.tsx
579
+ var yt = ({ groups: e, activeId: t, statusOf: n, limit: r = 300 }) => e.length === 0 ? /* @__PURE__ */ p(_, { children: "No groups." }) : /* @__PURE__ */ p(f, { children: e.slice(0, r).map((e) => /* @__PURE__ */ m(pt, {
580
+ href: z("groups", { group: e.id }),
581
+ $active: t === e.id,
582
+ children: [/* @__PURE__ */ m(mt, { children: [
583
+ /* @__PURE__ */ p("strong", {
584
+ style: { overflowWrap: "anywhere" },
585
+ children: e.name
586
+ }),
587
+ /* @__PURE__ */ p(h, {
588
+ $nowrap: !0,
589
+ children: e.count
590
+ }),
591
+ /* @__PURE__ */ p(h, {
592
+ $nowrap: !0,
593
+ $status: n("accent"),
594
+ children: D(e.maxConfidence ?? NaN)
595
+ })
596
+ ] }), /* @__PURE__ */ p(C, { children: e.canonical?.path ? O(e.canonical) : `${e.kind} group` })]
597
+ }, e.id)) });
598
+ // default/report/GroupBrowser/members.tsx
599
+ function bt({ groupId: e, members: t, activeId: n }) {
600
+ return /* @__PURE__ */ p(f, { children: t.map((t) => /* @__PURE__ */ m(ht, {
601
+ href: z("groups", {
602
+ group: e,
603
+ id: t.findingId
604
+ }),
605
+ $active: n === t.findingId,
606
+ children: [
607
+ /* @__PURE__ */ p(_t, { children: t.name }),
608
+ /* @__PURE__ */ p(gt, { children: `${t.path}:${t.line}` }),
609
+ /* @__PURE__ */ p(h, {
610
+ $nowrap: !0,
611
+ children: D(t.confidence ?? NaN)
612
+ })
613
+ ]
614
+ }, t.findingId)) });
615
+ }
616
+ // default/report/model/gutter.ts
617
+ var W = {
618
+ 3: 220,
619
+ 4: 300,
620
+ 5: 380
621
+ }, G = (e) => W[e] ?? W[3], xt = {
622
+ "template-string": "string",
623
+ boolean: "number",
624
+ builtin: "function-variable",
625
+ punctuation: "dim"
626
+ }, St = i.colors.status, Ct = (e) => St[xt[e] ?? e]?.content, wt = (e, t) => le(e, j(t)).map((e) => {
627
+ let t = Ct(e.type);
628
+ return t === void 0 ? { text: e.text } : {
629
+ text: e.text,
630
+ ink: t
631
+ };
632
+ }), Tt = ({ pair: e, mode: t, gutter: n, revealed: r = !1, onReveal: a, tokenize: o = wt, snapshotDeps: s, engine: c }) => {
633
+ let l = ue(e, t, G(n ?? 3), {
634
+ text: i.colors.status.ribbon.content,
635
+ dim: i.colors.status.dim.content
636
+ }, c, s);
637
+ if (l === null) return null;
638
+ let u = ce({
639
+ columns: [...l.columns],
640
+ connections: l.connections,
641
+ blocks: []
642
+ }), d = l.columns.map((e, t) => t < l.columns.length - 1 ? l.corridor : void 0), f = new Map(l.columns.map((e) => [e.id, e.path]));
643
+ return /* @__PURE__ */ p(ae, {
644
+ columns: u.columns,
645
+ ribbons: u.ribbons,
646
+ corridors: d,
647
+ sync: l.sync,
648
+ tokenize: (e, t) => {
649
+ let n = t ?? "";
650
+ return l.plain.has(n) ? [{ text: e }] : o(e, f.get(n));
651
+ },
652
+ state: { revealed: r },
653
+ events: a === void 0 ? void 0 : { "board:revealChange": (e) => a(e.revealed) },
654
+ config: {
655
+ boardHeight: "68vh",
656
+ fullMount: 120
657
+ }
658
+ }, t);
659
+ }, Et = l.div`
660
+ display: flex;
661
+ align-items: baseline;
662
+ flex-wrap: wrap;
663
+ gap: ${(e) => e.theme.offsets.elementContent};
664
+ border-bottom: ${(e) => e.theme.border.size} solid ${(e) => e.theme.colors.status?.edge?.background ?? e.theme.colors.highlighted};
665
+ font-size: calc(${(e) => e.theme.font.sizes.small} - ${(e) => e.theme.border.size} / 2);
666
+ color: ${(e) => e.theme.colors.status?.dim?.content ?? e.theme.colors.sectionContent};
667
+ `, Dt = l.strong`
668
+ color: ${(e) => e.theme.colors.sectionContent};
669
+ `, Ot = l.pre`
670
+ margin: 0;
671
+ max-height: calc(${(e) => e.theme.offsets.section} * 12);
672
+ overflow: auto;
673
+ padding: ${(e) => `calc(${e.theme.offsets.elementContent} - ${e.theme.border.size} * 2) calc(${e.theme.offsets.elementContent} + ${e.theme.border.size} * 2)`};
674
+ background: ${(e) => e.theme.colors.overlay ?? e.theme.colors.section};
675
+ font-family: ${(e) => e.theme.font.family.text};
676
+ font-size: calc(${(e) => e.theme.font.sizes.small} - ${(e) => e.theme.border.size} / 2);
677
+ white-space: pre-wrap;
678
+ color: ${(e) => e.theme.colors.sectionContent};
679
+ `, kt = ({ pair: e, title: t = "CLI Output", note: n = "what the terminal prints for this function" }) => {
680
+ let r = e?.cli;
681
+ return typeof r != "string" || r === "" ? null : /* @__PURE__ */ m(B, { children: [/* @__PURE__ */ m(Et, { children: [/* @__PURE__ */ p(Dt, { children: t }), n ? /* @__PURE__ */ p("span", { children: n }) : null] }), /* @__PURE__ */ p(Ot, { children: r })] });
682
+ }, K = (e) => e.theme.colors.status?.edge?.background ?? e.theme.colors.highlighted, q = (e) => e.theme.colors.status?.dim?.content ?? e.theme.colors.sectionContent, J = (e) => e.theme.colors.status?.faint?.content ?? e.theme.colors.sectionContent, At = (e, t) => (t ? e.theme.colors.status?.[t]?.content : void 0) ?? e.theme.colors.status?.accent?.content ?? e.theme.colors.sectionContent, jt = l.div`
683
+ display: grid;
684
+ grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
685
+ gap: ${(e) => e.theme.offsets.section};
686
+ align-items: start;
687
+ `, Mt = l.div`
688
+ display: flex;
689
+ flex-direction: column;
690
+ gap: ${(e) => e.theme.offsets.elementContent};
691
+ border: ${(e) => e.theme.border.size} solid ${K};
692
+ border-radius: ${(e) => e.theme.border.radius};
693
+ overflow: hidden;
694
+ background: ${(e) => e.theme.colors.overlay ?? e.theme.colors.section};
695
+ `, Nt = l.div`
696
+ display: flex;
697
+ flex-wrap: wrap;
698
+ align-items: center;
699
+ gap: calc(${(e) => e.theme.offsets.elementContent} / 2);
700
+ padding: ${(e) => e.theme.offsets.elementContent};
701
+ border-bottom: ${(e) => e.theme.border.size} solid ${K};
702
+ font-size: calc(${(e) => e.theme.font.sizes.small} - ${(e) => e.theme.border.size} / 2);
703
+ `, Pt = l.button`
704
+ display: inline-flex;
705
+ align-items: center;
706
+ gap: calc(${(e) => e.theme.offsets.elementContent} * 0.75);
707
+ padding: calc(${(e) => e.theme.border.size} * 3)
708
+ calc(${(e) => e.theme.offsets.elementContent} + ${(e) => e.theme.border.size});
709
+ border-radius: 999px;
710
+ border: ${(e) => e.theme.border.size} solid ${(e) => e.$on && e.$status ? At(e, e.$status) : K(e)};
711
+ background: ${(e) => e.$on && e.$status ? `${At(e, e.$status)}22` : "transparent"};
712
+ color: ${(e) => e.$on ? e.theme.colors.sectionContent : q(e)};
713
+ font: inherit;
714
+ cursor: pointer;
715
+ `, Y = l.span`
716
+ width: calc(${(e) => e.theme.offsets.elementContent} / 2);
717
+ height: calc(${(e) => e.theme.offsets.elementContent} / 2);
718
+ border-radius: 50%;
719
+ background: ${(e) => e.$status ? e.theme.colors.status?.[e.$status]?.background ?? K(e) : K(e)};
720
+ `, Ft = l.button`
721
+ padding: 0 calc(${(e) => e.theme.offsets.elementContent} - ${(e) => e.theme.border.size});
722
+ border-radius: 999px;
723
+ border: ${(e) => e.theme.border.size} solid
724
+ ${(e) => e.$on ? e.theme.colors.highlighted ?? e.theme.colors.sectionContent : K(e)};
725
+ background: ${(e) => e.$on ? e.theme.colors.overlay ?? "transparent" : "transparent"};
726
+ color: ${(e) => e.$on ? e.theme.colors.sectionContent : J(e)};
727
+ font: inherit;
728
+ font-size: calc(${(e) => e.theme.font.sizes.small} - ${(e) => e.theme.border.size} * 1.5);
729
+ cursor: pointer;
730
+ `, It = l.div`
731
+ display: flex;
732
+ flex-wrap: wrap;
733
+ align-items: center;
734
+ gap: ${(e) => e.theme.offsets.elementContent};
735
+ padding: 0 ${(e) => e.theme.offsets.elementContent} ${(e) => e.theme.offsets.elementContent};
736
+ font-size: calc(${(e) => e.theme.font.sizes.small} - ${(e) => e.theme.border.size} / 2);
737
+ color: ${q};
738
+ `, X = l.span`
739
+ color: ${(e) => e.$ink === !0 ? e.theme.colors.sectionContent : "inherit"};
740
+ `, Lt = l.span`
741
+ margin-left: auto;
742
+ color: ${J};
743
+ `, Rt = l.span`
744
+ margin-left: auto;
745
+ color: inherit;
746
+ opacity: 0.8;
747
+ `, zt = l.span`
748
+ min-width: 0;
749
+ overflow: hidden;
750
+ text-overflow: ellipsis;
751
+ white-space: nowrap;
752
+ `, Bt = l.div`
753
+ display: grid;
754
+ grid-template-columns: ${(e) => e.$template};
755
+ gap: ${(e) => e.theme.offsets.elementContent};
756
+ padding: ${(e) => e.theme.border.size} ${(e) => e.theme.offsets.elementContent};
757
+ font-size: calc(${(e) => e.theme.font.sizes.small} - ${(e) => e.theme.border.size});
758
+ color: ${q};
759
+ background: ${(e) => e.theme.colors.overlay ?? e.theme.colors.section};
760
+ `, Vt = l.div`
761
+ min-width: 0;
762
+ overflow: hidden;
763
+ text-overflow: ellipsis;
764
+ `, Ht = l.div`
765
+ min-width: 0;
766
+ `;
767
+ l.p`
768
+ margin: 0;
769
+ font-size: calc(${(e) => e.theme.font.sizes.small} - ${(e) => e.theme.border.size} / 2);
770
+ color: ${J};
771
+ `;
772
+ var Ut = l.div`
773
+ display: flex;
774
+ flex-direction: column;
775
+ gap: calc(${(e) => e.theme.offsets.elementContent} / 2);
776
+ `, Wt = l.a`
777
+ display: flex;
778
+ flex-direction: column;
779
+ gap: calc(${(e) => e.theme.offsets.elementContent} / 2);
780
+ padding: calc(${(e) => e.theme.offsets.elementContent} / 2);
781
+ border: ${(e) => e.theme.border.size} solid ${(e) => e.$active ? q(e) : "transparent"};
782
+ border-radius: ${(e) => e.theme.border.radius};
783
+ background: ${(e) => e.$active ? e.theme.colors.overlay ?? e.theme.colors.section : "transparent"};
784
+ color: ${(e) => e.$active ? e.theme.colors.sectionContent : q(e)};
785
+ font-size: ${(e) => e.theme.font.sizes.regular};
786
+ text-decoration: none;
787
+ `, Gt = l.div`
788
+ display: flex;
789
+ flex-wrap: wrap;
790
+ align-items: baseline;
791
+ gap: calc(${(e) => e.theme.offsets.elementContent} * 0.75);
792
+ min-width: 0;
793
+ `, Kt = l.span`
794
+ font-size: ${(e) => e.theme.font.sizes.small};
795
+ color: ${J};
796
+ `, qt = ({ modes: e, mode: t, onMode: n, gutters: r, gutter: i, onGutter: a, revealed: o, onReveal: s }) => {
797
+ let c = [];
798
+ for (let r of e) c.push(/* @__PURE__ */ m(Pt, {
799
+ type: "button",
800
+ title: r.what,
801
+ $on: r.key === t,
802
+ $status: r.status,
803
+ "aria-pressed": r.key === t,
804
+ onClick: () => n(r.key),
805
+ children: [r.status === void 0 ? null : /* @__PURE__ */ p(Y, { $status: r.status }), r.label]
806
+ }, r.key));
807
+ let l = [];
808
+ for (let e of r) l.push(/* @__PURE__ */ p(Ft, {
809
+ type: "button",
810
+ $on: e === i,
811
+ title: `${String(W[e])}px`,
812
+ onClick: () => a(e),
813
+ children: e
814
+ }, e));
815
+ return /* @__PURE__ */ m(Nt, { children: [
816
+ c,
817
+ /* @__PURE__ */ p(Ft, {
818
+ type: "button",
819
+ $on: !o,
820
+ title: "show every line, folded or not",
821
+ onClick: () => s(!o),
822
+ children: o ? "show all" : "only blocks"
823
+ }),
824
+ /* @__PURE__ */ p(Lt, { children: "gutter:" }),
825
+ l
826
+ ] });
827
+ }, Jt = (e, t) => /* @__PURE__ */ m(X, {
828
+ $ink: !0,
829
+ title: "names both sides declare",
830
+ children: [
831
+ "names ",
832
+ k(e.score ?? NaN, { sign: !0 }),
833
+ t.length > 0 ? ` (${t.join(" + ")})` : "",
834
+ " · ",
835
+ e.common?.length ?? 0,
836
+ " declared by both"
837
+ ]
838
+ }), Yt = (e) => /* @__PURE__ */ p(X, {
839
+ title: e.title,
840
+ children: e.body
841
+ }), Xt = ({ pair: e, mode: t, label: n, score: r, weight: i, note: a, percentOf: o }) => {
842
+ let s = t === "signature" ? e?.analysis?.signature?.names ?? null : null, c = s?.words?.common ?? [], l = t === "signature" ? a == null ? s === null ? null : Jt(s, c) : Yt(a) : null;
843
+ return /* @__PURE__ */ m(It, { children: [
844
+ /* @__PURE__ */ m(X, { children: [/* @__PURE__ */ p(Y, { $status: "same" }), " red = correspondence · no % = 100% duplicate · with % = a partial duplicate at that percent"] }),
845
+ /* @__PURE__ */ m(X, { children: [/* @__PURE__ */ p(Y, { $status: "differs" }), " green = a member on one side only (100% unique) — same arc into an empty line"] }),
846
+ /* @__PURE__ */ p(X, { children: "outline = difference within a lane (same hue, outlined)" }),
847
+ /* @__PURE__ */ p(X, { children: "no ribbon = nothing compared here" }),
848
+ l,
849
+ r === void 0 || i === void 0 ? null : /* @__PURE__ */ m(Lt, { children: [
850
+ n,
851
+ " ",
852
+ o ? o(r) : k(r, {
853
+ cap: 99.9,
854
+ decimalsFrom: 99
855
+ }),
856
+ "% ×",
857
+ " ",
858
+ i.toFixed(2),
859
+ " = ",
860
+ (r * i).toFixed(2)
861
+ ] })
862
+ ] });
863
+ }, Zt = (e) => e === "a11y" ? "screen reader" : e === "styles" ? "resolved css" : "html snapshot", Z = ({ pair: e, decision: t, modes: n, gutters: r = [
864
+ 3,
865
+ 4,
866
+ 5
867
+ ], gutter: o, revealed: l = !1, snapshotDeps: d, engine: h, tokenize: g, defaultMode: v, signatureNote: y, percentOf: b, cliNote: x }) => {
868
+ let S = n[0]?.key ?? "", [C, w] = c(() => v?.(e, t) ?? S), T = e?.findingId, E = s({
869
+ defaultMode: v,
870
+ pair: e,
871
+ decision: t,
872
+ firstMode: S
873
+ });
874
+ E.current = {
875
+ defaultMode: v,
876
+ pair: e,
877
+ decision: t,
878
+ firstMode: S
879
+ }, a(() => {
880
+ let { defaultMode: e, pair: t, decision: n, firstMode: r } = E.current;
881
+ e !== void 0 && w(e(t, n) ?? r);
882
+ }, [T]);
883
+ let [D, O] = c(o ?? r[r.length - 1] ?? 5), [k, A] = c(l), j = e?.columns ?? [], M = e?.snapshots !== void 0 && de.has(C), N = M ? "2fr 1fr 1fr 1fr 2fr" : `minmax(0, 1fr) ${G(D)}px minmax(0, 1fr)`, P = M ? [
884
+ j[0]?.path ?? "",
885
+ Zt(C),
886
+ "match",
887
+ Zt(C),
888
+ j[1]?.path ?? ""
889
+ ] : [
890
+ j[0]?.path ?? "",
891
+ "",
892
+ j[1]?.path ?? ""
893
+ ], F = t?.signals?.find((e) => e.key === C), I = [];
894
+ for (let [e, t] of P.entries()) I.push(/* @__PURE__ */ p(Vt, { children: t }, e));
895
+ return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m(Mt, { children: [
896
+ /* @__PURE__ */ p(qt, {
897
+ modes: n,
898
+ mode: C,
899
+ onMode: w,
900
+ gutters: r,
901
+ gutter: D,
902
+ onGutter: O,
903
+ revealed: k,
904
+ onReveal: A
905
+ }),
906
+ /* @__PURE__ */ p(Xt, {
907
+ pair: e,
908
+ mode: C,
909
+ label: F?.label ?? n.find((e) => e.key === C)?.label,
910
+ score: F?.score,
911
+ weight: F?.weight,
912
+ note: y?.(e),
913
+ percentOf: b
914
+ }),
915
+ /* @__PURE__ */ p(Bt, {
916
+ $template: N,
917
+ children: I
918
+ }),
919
+ /* @__PURE__ */ p(Ht, { children: e === void 0 ? /* @__PURE__ */ p(_, { children: "This finding has no diff to draw." }) : /* @__PURE__ */ p(u, {
920
+ theme: i,
921
+ children: /* @__PURE__ */ p(Tt, {
922
+ pair: e,
923
+ mode: C,
924
+ gutter: D,
925
+ revealed: k,
926
+ onReveal: A,
927
+ snapshotDeps: d,
928
+ engine: h,
929
+ tokenize: g
930
+ })
931
+ }) })
932
+ ] }), /* @__PURE__ */ p(kt, {
933
+ pair: e,
934
+ note: x
935
+ })] });
936
+ }, Qt = ({ data: e, params: t, statusOf: n, memberWord: r = "item(s)", modes: i, engine: a, snapshotDeps: o, cliNote: s, defaultMode: l, signatureNote: u, percentOf: d }) => {
937
+ let [g, v] = c(""), y = e.groups.filter((e) => !g || e.name.toLowerCase().includes(g.toLowerCase()) || (e.canonical?.path ?? "").includes(g)), x = y.find((e) => e.id === t.group) ?? y[0] ?? null, S = new Map(e.findings.map((e) => [e.id, e])), w = new Map(e.pairs.map((e) => [e.findingId, e])), T = [];
938
+ if (x) for (let e of x.findingIds) {
939
+ let t = S.get(e);
940
+ t && T.push(t);
941
+ }
942
+ let E = t.id ?? T[0]?.id ?? null, k = T.find((e) => e.id === E) ?? T[0] ?? null, A;
943
+ return A = x ? k ? /* @__PURE__ */ m(B, {
944
+ $status: n(k.kind ?? ""),
945
+ children: [
946
+ /* @__PURE__ */ m(rt, { children: [
947
+ k.left?.name ?? "—",
948
+ " ",
949
+ /* @__PURE__ */ p(C, { children: "vs" }),
950
+ " ",
951
+ k.right?.name ?? "—",
952
+ " ",
953
+ /* @__PURE__ */ p(h, {
954
+ $nowrap: !0,
955
+ $status: n(k.kind ?? ""),
956
+ children: k.label
957
+ }),
958
+ " ",
959
+ /* @__PURE__ */ p(h, {
960
+ $nowrap: !0,
961
+ $status: n("accent"),
962
+ children: D(k.confidence ?? NaN)
963
+ }),
964
+ " ",
965
+ /* @__PURE__ */ p(at, {
966
+ href: z("pair", { id: k.id }),
967
+ children: "open pair →"
968
+ })
969
+ ] }),
970
+ /* @__PURE__ */ p(it, { children: k.message }),
971
+ /* @__PURE__ */ p(Z, {
972
+ pair: w.get(k.id),
973
+ decision: k.decision,
974
+ modes: i,
975
+ engine: a,
976
+ snapshotDeps: o,
977
+ cliNote: s,
978
+ defaultMode: l,
979
+ signatureNote: u,
980
+ percentOf: d
981
+ }),
982
+ k.fix ? /* @__PURE__ */ p(tt, { text: k.fix.text }) : null
983
+ ]
984
+ }) : /* @__PURE__ */ p(B, { children: /* @__PURE__ */ p(_, { children: "This group has no pair to diff — see its members above." }) }) : /* @__PURE__ */ p(B, { children: /* @__PURE__ */ p(_, { children: "Pick a group." }) }), /* @__PURE__ */ m(ft, { children: [/* @__PURE__ */ m(B, {
985
+ heading: `Groups (${y.length})`,
986
+ children: [/* @__PURE__ */ p(P, {
987
+ value: g,
988
+ onChange: (e) => v(e.target.value),
989
+ placeholder: "Filter groups…",
990
+ "aria-label": "Filter groups…"
991
+ }), /* @__PURE__ */ p(yt, {
992
+ groups: y,
993
+ activeId: x?.id,
994
+ statusOf: n
995
+ })]
996
+ }), /* @__PURE__ */ p(b, { children: x ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m(B, {
997
+ heading: x.name,
998
+ actions: /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(h, {
999
+ $status: n("violet"),
1000
+ children: x.kind
1001
+ }), /* @__PURE__ */ m(C, { children: [
1002
+ x.count,
1003
+ " ",
1004
+ r,
1005
+ " · ",
1006
+ x.duplicates,
1007
+ " duplicate · strongest",
1008
+ " ",
1009
+ D(x.maxConfidence ?? NaN),
1010
+ " · weakest ",
1011
+ D(x.minConfidence ?? NaN)
1012
+ ] })] }),
1013
+ children: [x.canonical ? /* @__PURE__ */ m(lt, { children: ["Canonical: ", /* @__PURE__ */ p(ot, { children: O(x.canonical) })] }) : null, /* @__PURE__ */ p(vt, { children: /* @__PURE__ */ p(bt, {
1014
+ groupId: x.id,
1015
+ members: x.members,
1016
+ activeId: k?.id
1017
+ }) })]
1018
+ }), A] }) : A })] });
1019
+ }, $t = l.span`
1020
+ opacity: 0.7;
1021
+ `, en = l.div`
1022
+ font-family: ${(e) => e.theme.font.family.text};
1023
+ font-size: calc(${(e) => e.theme.font.sizes.small} - ${(e) => e.theme.border.size} / 2);
1024
+ color: inherit;
1025
+ opacity: 0.6;
1026
+ `, tn = [
1027
+ {
1028
+ key: "duplicate",
1029
+ label: "dup",
1030
+ tone: "danger"
1031
+ },
1032
+ {
1033
+ key: "similar",
1034
+ label: "sim",
1035
+ tone: "warn"
1036
+ },
1037
+ {
1038
+ key: "part",
1039
+ label: "part",
1040
+ tone: "coral"
1041
+ },
1042
+ {
1043
+ key: "trash",
1044
+ label: "trash",
1045
+ tone: "mute"
1046
+ }
1047
+ ], nn = ({ data: e, params: t, statusOf: n, modes: r, engine: i, snapshotDeps: a, cliNote: o, defaultMode: s, signatureNote: c, percentOf: l }) => {
1048
+ let g = d(), _ = (e) => e ? g.colors.status?.[e]?.content ?? g.colors.highlighted : void 0, v = new Map(e.findings.map((e) => [e.id, e])), y = new Map(e.pairs.map((e) => [e.findingId, e])), b = (e) => {
1049
+ let t = e;
1050
+ return /* @__PURE__ */ m(f, { children: [
1051
+ /* @__PURE__ */ p("strong", { children: t.left?.name ?? "—" }),
1052
+ " ",
1053
+ t.right?.name ? `→ ${t.right.name}` : "",
1054
+ " ",
1055
+ /* @__PURE__ */ p($t, { children: D(t.confidence ?? NaN) }),
1056
+ /* @__PURE__ */ p(en, { children: O(t.left) })
1057
+ ] });
1058
+ }, x = (e) => {
1059
+ let t = e, d = y.get(t.id), g = Ue(t, n);
1060
+ return /* @__PURE__ */ m(f, { children: [
1061
+ /* @__PURE__ */ m(rt, { children: [
1062
+ t.left?.name ?? "—",
1063
+ t.right?.name ? /* @__PURE__ */ m(C, { children: [" vs ", t.right.name] }) : null,
1064
+ " ",
1065
+ t.label ? /* @__PURE__ */ p(h, {
1066
+ $status: n(t.kind ?? ""),
1067
+ children: t.label
1068
+ }) : null,
1069
+ " ",
1070
+ /* @__PURE__ */ p(h, {
1071
+ $nowrap: !0,
1072
+ $status: n("accent"),
1073
+ children: D(t.confidence ?? NaN)
1074
+ }),
1075
+ " ",
1076
+ /* @__PURE__ */ p(at, {
1077
+ href: z("pair", { id: t.id }),
1078
+ children: "open pair →"
1079
+ })
1080
+ ] }),
1081
+ /* @__PURE__ */ p(it, { children: t.message }),
1082
+ d ? /* @__PURE__ */ p(Z, {
1083
+ pair: d,
1084
+ decision: t.decision,
1085
+ modes: r,
1086
+ engine: i,
1087
+ snapshotDeps: a,
1088
+ cliNote: o,
1089
+ defaultMode: s,
1090
+ signatureNote: c,
1091
+ percentOf: l
1092
+ }) : g ? /* @__PURE__ */ p(u, {
1093
+ theme: N,
1094
+ children: /* @__PURE__ */ p(me, { ...g })
1095
+ }) : null,
1096
+ t.fix ? /* @__PURE__ */ p(tt, { text: t.fix.text }) : null
1097
+ ] });
1098
+ };
1099
+ return /* @__PURE__ */ p(pe, {
1100
+ root: e.folders,
1101
+ findingsById: v,
1102
+ selectedFolder: t.folder,
1103
+ selectedFinding: t.id,
1104
+ countKinds: tn,
1105
+ hrefForFolder: (e) => z("folders", { folder: e }),
1106
+ hrefForFinding: (e, t) => z("folders", {
1107
+ folder: e,
1108
+ id: t
1109
+ }),
1110
+ accentOf: (e) => _(n(e.kind ?? "")),
1111
+ renderFinding: (e) => b(e),
1112
+ renderDetail: (e) => x(e)
1113
+ });
1114
+ }, rn = 100, an = ({ findings: e, total: t, selected: n, hrefOf: r, statusOf: i, query: a, onQuery: o, page: s, pageCount: c, onPage: l }) => {
1115
+ let u = [];
1116
+ for (let t of e) {
1117
+ let e = t.right?.name ?? (t.members ? `↔ ${t.members.length} members` : "—");
1118
+ u.push(/* @__PURE__ */ m(Wt, {
1119
+ href: r(t.id),
1120
+ $active: t.id === n,
1121
+ children: [/* @__PURE__ */ m(Gt, { children: [
1122
+ t.label ? /* @__PURE__ */ p(h, {
1123
+ $status: i(t.kind ?? ""),
1124
+ $nowrap: !0,
1125
+ children: t.label.slice(0, 4)
1126
+ }) : null,
1127
+ /* @__PURE__ */ m(zt, { children: [
1128
+ t.left?.name ?? "—",
1129
+ " → ",
1130
+ e
1131
+ ] }),
1132
+ /* @__PURE__ */ p(Rt, { children: D(t.confidence ?? NaN) })
1133
+ ] }), t.left?.path ? /* @__PURE__ */ p(Kt, { children: A(t.left.path, 2) }) : null]
1134
+ }, t.id));
1135
+ }
1136
+ return /* @__PURE__ */ m(B, {
1137
+ heading: `Findings (${t})`,
1138
+ children: [
1139
+ /* @__PURE__ */ p(P, {
1140
+ value: a,
1141
+ onChange: (e) => o(e.target.value),
1142
+ placeholder: "Filter by name or id…",
1143
+ "aria-label": "Filter by name or id…"
1144
+ }),
1145
+ /* @__PURE__ */ p(Ut, { children: u.length === 0 ? /* @__PURE__ */ p(_, { children: "Nothing matches." }) : u }),
1146
+ c > 1 ? /* @__PURE__ */ p(F, {
1147
+ totalPages: c,
1148
+ currentPage: s + 1,
1149
+ onPageChange: (e) => l(e - 1)
1150
+ }) : null
1151
+ ]
1152
+ });
1153
+ }, Q = (e) => e.theme.colors.status?.edge?.background ?? e.theme.colors.highlighted, $ = (e) => e.theme.colors.status?.dim?.content ?? e.theme.colors.sectionContent, on = (e) => e.theme.colors.status?.faint?.content ?? e.theme.colors.sectionContent, sn = (e) => e.theme.colors.overlay ?? e.theme.colors.section, cn = l.p`
1154
+ margin: 0 0 ${(e) => e.theme.offsets.elementContent};
1155
+ font-size: calc(${(e) => e.theme.font.sizes.regular} + ${(e) => e.theme.border.size} / 2);
1156
+ color: ${$};
1157
+ `, ln = l.div`
1158
+ display: flex;
1159
+ flex-wrap: wrap;
1160
+ gap: ${(e) => e.theme.offsets.section};
1161
+ margin-bottom: ${(e) => e.theme.offsets.elementContent};
1162
+ font-size: ${(e) => e.theme.font.sizes.regular};
1163
+ `, un = l.code`
1164
+ color: inherit;
1165
+ `, dn = l.div`
1166
+ display: flex;
1167
+ flex-wrap: wrap;
1168
+ align-items: center;
1169
+ gap: calc(${(e) => e.theme.offsets.elementContent} / 2);
1170
+ margin-bottom: ${(e) => e.theme.offsets.elementContent};
1171
+ `, fn = l.span`
1172
+ font-size: calc(${(e) => e.theme.font.sizes.small} - ${(e) => e.theme.border.size});
1173
+ letter-spacing: calc(${(e) => e.theme.font.spacing} * 3);
1174
+ text-transform: uppercase;
1175
+ color: ${on};
1176
+ `, pn = l.a`
1177
+ display: inline-flex;
1178
+ flex-direction: column;
1179
+ padding: calc(${(e) => e.theme.offsets.elementContent} / 2) ${(e) => e.theme.offsets.elementContent};
1180
+ border: ${(e) => e.theme.border.size} solid ${(e) => e.$active ? $(e) : Q(e)};
1181
+ border-radius: ${(e) => e.theme.border.radius};
1182
+ color: ${(e) => e.$active ? e.theme.colors.sectionContent : $(e)};
1183
+ font-size: ${(e) => e.theme.font.sizes.small};
1184
+ text-decoration: none;
1185
+ `, mn = l.span`
1186
+ font-family: ${(e) => e.theme.font.family.text};
1187
+ font-size: calc(${(e) => e.theme.font.sizes.small} - ${(e) => e.theme.border.size} * 1.5);
1188
+ color: ${on};
1189
+ `, hn = l.div`
1190
+ padding: ${(e) => e.theme.offsets.elementContent}
1191
+ calc(${(e) => e.theme.offsets.elementContent} + ${(e) => e.theme.border.size} * 2);
1192
+ background: ${sn};
1193
+ border: ${(e) => e.theme.border.size} solid ${Q};
1194
+ border-radius: ${(e) => e.theme.border.radius};
1195
+ font-size: ${(e) => e.theme.font.sizes.regular};
1196
+ color: ${$};
1197
+ `, gn = l.pre`
1198
+ margin: 0;
1199
+ max-height: calc(${(e) => e.theme.offsets.section} * 12);
1200
+ overflow: auto;
1201
+ padding: ${(e) => e.theme.offsets.elementContent};
1202
+ background: ${sn};
1203
+ border: ${(e) => e.theme.border.size} solid ${Q};
1204
+ border-radius: ${(e) => e.theme.border.radius};
1205
+ font-size: calc(${(e) => e.theme.font.sizes.small} - ${(e) => e.theme.border.size} / 2);
1206
+ white-space: pre-wrap;
1207
+ color: ${(e) => e.theme.colors.sectionContent};
1208
+ `, _n = l.div`
1209
+ padding: calc(${(e) => e.theme.offsets.elementContent} / 2) 0;
1210
+ border-bottom: ${(e) => e.theme.border.size} dashed ${Q};
1211
+ font-size: calc(${(e) => e.theme.font.sizes.regular} + ${(e) => e.theme.border.size} / 2);
1212
+ `, vn = l(R)`
1213
+ font-size: inherit;
1214
+ color: ${$};
1215
+ `, yn = l.div`
1216
+ display: flex;
1217
+ align-items: center;
1218
+ gap: calc(${(e) => e.theme.offsets.elementContent} + ${(e) => e.theme.border.size} * 2);
1219
+ margin-left: auto;
1220
+ font-size: ${(e) => e.theme.font.sizes.regular};
1221
+ `, bn = l.span`
1222
+ opacity: 0.4;
1223
+ `, xn = l.a`
1224
+ color: ${(e) => e.theme.colors.status?.accent?.content ?? e.theme.colors.sectionContent};
1225
+ `, Sn = (e) => e.left?.name ?? e.id.slice(0, 12), Cn = ({ prev: e, next: t, groupHref: n, hrefOf: r }) => /* @__PURE__ */ m(yn, { children: [
1226
+ e ? /* @__PURE__ */ m(xn, {
1227
+ href: r(e.id),
1228
+ children: ["← ", Sn(e)]
1229
+ }) : /* @__PURE__ */ p(bn, { children: "←" }),
1230
+ t ? /* @__PURE__ */ m(xn, {
1231
+ href: r(t.id),
1232
+ children: [Sn(t), " →"]
1233
+ }) : /* @__PURE__ */ p(bn, { children: "→" }),
1234
+ n === void 0 ? null : /* @__PURE__ */ p(xn, {
1235
+ href: n,
1236
+ children: "group"
1237
+ })
1238
+ ] });
1239
+ // default/report/PairBrowser/pane/members.tsx
1240
+ function wn({ members: e }) {
1241
+ return e.length === 0 ? null : /* @__PURE__ */ p(B, {
1242
+ heading: `Members (${e.length})`,
1243
+ children: e.map((e) => /* @__PURE__ */ m(_n, { children: [
1244
+ /* @__PURE__ */ p("strong", { children: e.name }),
1245
+ " ",
1246
+ /* @__PURE__ */ p(vn, { children: O(e) }),
1247
+ " ",
1248
+ /* @__PURE__ */ p(C, { children: D(e.confidence ?? NaN) })
1249
+ ] }, `${e.path}:${e.line}:${e.name}`))
1250
+ });
1251
+ }
1252
+ // default/report/PairBrowser/pane/panel.tsx
1253
+ var Tn = "member(s)", En = ({ finding: e, pair: t, modes: n, hrefOf: r, statusOf: i, prev: a, next: o, groupHref: s, note: c, snapshotDeps: l, tokenize: u, engine: d, cliNote: g, defaultMode: v, signatureNote: y, percentOf: b }) => {
1254
+ if (!e) return /* @__PURE__ */ p(B, { children: /* @__PURE__ */ p(_, { children: "No findings with a diff." }) });
1255
+ let x = e.members ?? [], S = e.clusterMembers ?? [], w = typeof e.dropped == "object" && e.dropped !== null ? e.dropped : null, T = e.right?.name ?? (x.length > 0 ? `↔ ${x.length} members` : "—"), E = e.clusterConfidence;
1256
+ return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m(B, {
1257
+ $status: i(e.kind ?? ""),
1258
+ heading: /* @__PURE__ */ m(f, { children: [
1259
+ e.left?.name ?? "—",
1260
+ " ",
1261
+ /* @__PURE__ */ p(C, { children: "vs" }),
1262
+ " ",
1263
+ T
1264
+ ] }),
1265
+ actions: /* @__PURE__ */ m(f, { children: [
1266
+ e.label ? /* @__PURE__ */ p(h, {
1267
+ $status: i(e.kind ?? ""),
1268
+ children: e.label
1269
+ }) : null,
1270
+ e.severityLabel ? /* @__PURE__ */ p(h, {
1271
+ $status: i(e.severity ?? ""),
1272
+ $nowrap: !0,
1273
+ children: e.severityLabel
1274
+ }) : null,
1275
+ /* @__PURE__ */ p(h, {
1276
+ $status: "accent",
1277
+ $nowrap: !0,
1278
+ children: D(e.confidence ?? NaN)
1279
+ }),
1280
+ Number.isFinite(E) ? /* @__PURE__ */ m(h, {
1281
+ $status: i(e.kind ?? ""),
1282
+ $nowrap: !0,
1283
+ children: ["cluster weakest ", D(E ?? NaN)]
1284
+ }) : null,
1285
+ c,
1286
+ /* @__PURE__ */ p(Cn, {
1287
+ prev: a,
1288
+ next: o,
1289
+ groupHref: s,
1290
+ hrefOf: r
1291
+ })
1292
+ ] }),
1293
+ children: [
1294
+ /* @__PURE__ */ p(cn, { children: e.message }),
1295
+ /* @__PURE__ */ m(ln, { children: [/* @__PURE__ */ m("span", { children: ["local ", /* @__PURE__ */ p(un, { children: O(e.left) })] }), /* @__PURE__ */ m("span", { children: ["canonical ", /* @__PURE__ */ p(un, { children: O(e.right) })] })] }),
1296
+ S.length > 0 ? /* @__PURE__ */ m(dn, { children: [/* @__PURE__ */ p(fn, { children: "right column" }), S.map((t) => /* @__PURE__ */ m(pn, {
1297
+ href: r(t.id),
1298
+ $active: t.id === e.id,
1299
+ children: [/* @__PURE__ */ p("strong", { children: t.name ?? "—" }), /* @__PURE__ */ m(mn, { children: [
1300
+ A(t.path, 2),
1301
+ ":",
1302
+ t.line ?? "?",
1303
+ " · ",
1304
+ D(t.confidence ?? NaN)
1305
+ ] })]
1306
+ }, t.id))] }) : null,
1307
+ t === void 0 ? e.body ? /* @__PURE__ */ p(gn, { children: e.body }) : /* @__PURE__ */ p(hn, { children: w ? /* @__PURE__ */ m(f, { children: [
1308
+ "Filtered out by ",
1309
+ /* @__PURE__ */ p("strong", { children: w.filter ?? "filter" }),
1310
+ ":",
1311
+ " ",
1312
+ w.reason ?? "a filter explained it away",
1313
+ ". The two sides are shown above."
1314
+ ] }) : x.length > 0 ? /* @__PURE__ */ m(f, { children: [
1315
+ x.length,
1316
+ " ",
1317
+ Tn,
1318
+ " — listed below."
1319
+ ] }) : /* @__PURE__ */ p(f, { children: "This finding has no side-by-side diff." }) }) : /* @__PURE__ */ p(Z, {
1320
+ pair: t,
1321
+ decision: e.decision,
1322
+ modes: n,
1323
+ snapshotDeps: l,
1324
+ tokenize: u,
1325
+ engine: d,
1326
+ cliNote: g,
1327
+ defaultMode: v,
1328
+ signatureNote: y,
1329
+ percentOf: b
1330
+ })
1331
+ ]
1332
+ }), /* @__PURE__ */ p(wn, { members: x })] });
1333
+ }, Dn = (e) => !!(e.hasPair || e.pairId || e.members?.length || e.left || e.right || e.body), On = (e, t) => t === "" || e.id.toLowerCase().includes(t.toLowerCase()) || (e.left?.name ?? "").includes(t) || (e.right?.name ?? "").includes(t), kn = (e) => z("pair", { id: e }), An = ({ data: e, selected: t, modes: n, statusOf: r, hrefOf: i = kn, pageSize: s = 100, note: l, snapshotDeps: u, cliNote: d, defaultMode: f, signatureNote: h, percentOf: g, tokenize: _, engine: v }) => {
1334
+ let [y, b] = c(""), [x, S] = c(0), C = n ?? (e.signals ?? []).map((e) => ({
1335
+ key: e.key,
1336
+ label: e.label,
1337
+ what: e.what,
1338
+ status: e.key
1339
+ })), w = o(() => new Map(e.pairs.map((e) => [e.findingId, e])), [e.pairs]), T = o(() => {
1340
+ let t = /* @__PURE__ */ new Map();
1341
+ for (let n of e.groups ?? []) for (let e of n.findingIds) t.set(e, n.id);
1342
+ return t;
1343
+ }, [e.groups]), E = o(() => e.findings.filter((e) => Dn(e) && !e.clusterPair), [e.findings]), D = o(() => E.filter((e) => On(e, y)), [E, y]), O = e.findings.find((e) => e.id === t) ?? null, k = O && !O.hasPair && O.pairId ? e.findings.find((e) => e.id === O.pairId) : null, A = O ? O.hasPair ? O : k ?? O : E[0] ?? null, j = A ? D.findIndex((e) => e.id === A.id) : -1, M = j > 0 ? D[j - 1] : null, N = j >= 0 && j < D.length - 1 ? D[j + 1] : null, P = Math.max(1, Math.ceil(D.length / s));
1344
+ a(() => {
1345
+ S(0);
1346
+ }, [y]), a(() => {
1347
+ j >= 0 && S(Math.floor(j / s));
1348
+ }, [j, s]), a(() => {
1349
+ x > P - 1 && S(P - 1);
1350
+ }, [x, P]);
1351
+ let F = A ? T.get(A.id) : void 0;
1352
+ return /* @__PURE__ */ m(jt, { children: [/* @__PURE__ */ p(an, {
1353
+ findings: D.slice(x * s, (x + 1) * s),
1354
+ total: E.length,
1355
+ selected: A?.id,
1356
+ hrefOf: i,
1357
+ statusOf: r ?? (() => void 0),
1358
+ query: y,
1359
+ onQuery: b,
1360
+ page: x,
1361
+ pageCount: P,
1362
+ onPage: S
1363
+ }), /* @__PURE__ */ p(En, {
1364
+ finding: A,
1365
+ pair: A === null ? void 0 : w.get(A.id),
1366
+ modes: C,
1367
+ hrefOf: i,
1368
+ statusOf: r ?? (() => void 0),
1369
+ prev: M,
1370
+ next: N,
1371
+ groupHref: F === void 0 ? void 0 : z("groups", { group: F }),
1372
+ note: l,
1373
+ snapshotDeps: u,
1374
+ cliNote: d,
1375
+ defaultMode: f,
1376
+ signatureNote: h,
1377
+ percentOf: g,
1378
+ tokenize: _,
1379
+ engine: v
1380
+ })] });
1381
+ }, jn = (e, t, n, r, i, a) => {
1382
+ let o = [];
1383
+ for (let r of e) {
1384
+ let e = r.cells[n];
1385
+ if (!e) continue;
1386
+ let s = String(e.no);
1387
+ o.push({
1388
+ id: s,
1389
+ plate: s,
1390
+ text: ge(e),
1391
+ ...a ? { blockParent: i != null && s === String(i) } : {},
1392
+ marks: fe(t, String(n), s)
1393
+ });
1394
+ }
1395
+ return {
1396
+ id: String(n),
1397
+ mirrored: n >= 1,
1398
+ path: r,
1399
+ items: o
1400
+ };
1401
+ }, Mn = (e, t, n) => {
1402
+ let { rows: r } = se(he(e.left), he(e.right)), i = _e(r), a = ["0", "1"], o = e.links?.[t] ?? [], s = oe(i, a, o), c = e.columns ?? [{}, {}], l = n?.blockParent === !0;
1403
+ return {
1404
+ rows: r,
1405
+ connections: s,
1406
+ columns: [jn(i, s, 0, c[0]?.path, e.left?.startLine, l), jn(i, s, 1, c[1]?.path, e.right?.startLine, l)]
1407
+ };
1408
+ };
1409
+ export { Qe as FindingsTable, nn as FolderBrowser, W as GUTTERS, Qt as GroupBrowser, rn as LIST_PAGE, ct as Meta, Fe as PAGE_SIZE, Tt as PairBoard, An as PairBrowser, kt as PairDetail, Xt as PairLegend, an as PairList, qt as PairModes, Z as PairPane, En as PairPanel, xe as ReportShell, Pe as SORTS, je as SummaryBoard, Se as TABS, st as Tone, z as buildHref, Mn as buildPairBoard, wt as defaultTokenize, G as gutterFor, Ct as inkOf, On as matches, Ne as passesFilters, Me as scoreOf, Ie as sortFindings, we as useRoute, ue as viewOf, Dn as viewable };