jekyll-ham 1.0.4 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (366) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -2
  3. data/_layouts/default.html +6 -0
  4. data/_layouts/page.html +1 -1
  5. data/assets/mermaid/Diagram.d.ts +33 -0
  6. data/assets/mermaid/Tableau10-31042135.js +10 -0
  7. data/assets/mermaid/Tableau10-558cc280.js +9 -0
  8. data/assets/mermaid/__mocks__/mermaidAPI.d.ts +13 -0
  9. data/assets/mermaid/accessibility.d.ts +27 -0
  10. data/assets/mermaid/accessibility.spec.d.ts +1 -0
  11. data/assets/mermaid/arc-c0f908ab.js +148 -0
  12. data/assets/mermaid/arc-d1f6357e.js +86 -0
  13. data/assets/mermaid/array-2ff2c7a6.js +6 -0
  14. data/assets/mermaid/array-b7dcf730.js +6 -0
  15. data/assets/mermaid/assignWithDepth.d.ts +30 -0
  16. data/assets/mermaid/blockDiagram-5dc23a45.js +1230 -0
  17. data/assets/mermaid/blockDiagram-9f4a6865.js +1822 -0
  18. data/assets/mermaid/blockDiagram-efe38566.js +1818 -0
  19. data/assets/mermaid/c4Diagram-1e775db3.js +1579 -0
  20. data/assets/mermaid/c4Diagram-ae766693.js +2473 -0
  21. data/assets/mermaid/c4Diagram-af207393.js +2463 -0
  22. data/assets/mermaid/channel-ebbc4130.js +5 -0
  23. data/assets/mermaid/channel-f9001828.js +8 -0
  24. data/assets/mermaid/classDiagram-72b9c71d.js +356 -0
  25. data/assets/mermaid/classDiagram-f52caa06.js +220 -0
  26. data/assets/mermaid/classDiagram-fb54d2a0.js +363 -0
  27. data/assets/mermaid/classDiagram-v2-640c694e.js +206 -0
  28. data/assets/mermaid/classDiagram-v2-a2b738ad.js +298 -0
  29. data/assets/mermaid/classDiagram-v2-fedb80f6.js +290 -0
  30. data/assets/mermaid/clone-9ea6bfeb.js +8 -0
  31. data/assets/mermaid/clone-afc2f047.js +8 -0
  32. data/assets/mermaid/config.d.ts +98 -0
  33. data/assets/mermaid/config.spec.d.ts +1 -0
  34. data/assets/mermaid/config.type.d.ts +1534 -0
  35. data/assets/mermaid/createText-03b82060.js +2966 -0
  36. data/assets/mermaid/createText-b70fe78a.js +4929 -0
  37. data/assets/mermaid/createText-ca0c5216.js +251 -0
  38. data/assets/mermaid/dagre-wrapper/blockArrowHelper.d.ts +8 -0
  39. data/assets/mermaid/dagre-wrapper/clusters.d.ts +4 -0
  40. data/assets/mermaid/dagre-wrapper/createLabel.d.ts +9 -0
  41. data/assets/mermaid/dagre-wrapper/edgeMarker.d.ts +12 -0
  42. data/assets/mermaid/dagre-wrapper/edgeMarker.spec.d.ts +1 -0
  43. data/assets/mermaid/dagre-wrapper/edges.d.ts +14 -0
  44. data/assets/mermaid/dagre-wrapper/index.d.ts +1 -0
  45. data/assets/mermaid/dagre-wrapper/intersect/index.d.ts +13 -0
  46. data/assets/mermaid/dagre-wrapper/intersect/intersect-circle.d.ts +10 -0
  47. data/assets/mermaid/dagre-wrapper/intersect/intersect-ellipse.d.ts +11 -0
  48. data/assets/mermaid/dagre-wrapper/intersect/intersect-line.d.ts +13 -0
  49. data/assets/mermaid/dagre-wrapper/intersect/intersect-node.d.ts +6 -0
  50. data/assets/mermaid/dagre-wrapper/intersect/intersect-polygon.d.ts +10 -0
  51. data/assets/mermaid/dagre-wrapper/intersect/intersect-rect.d.ts +5 -0
  52. data/assets/mermaid/dagre-wrapper/markers.d.ts +2 -0
  53. data/assets/mermaid/dagre-wrapper/mermaid-graphlib.d.ts +8 -0
  54. data/assets/mermaid/dagre-wrapper/nodes.d.ts +4 -0
  55. data/assets/mermaid/dagre-wrapper/shapes/note.d.ts +2 -0
  56. data/assets/mermaid/dagre-wrapper/shapes/util.d.ts +14 -0
  57. data/assets/mermaid/defaultConfig.d.ts +12 -0
  58. data/assets/mermaid/diagram-api/comments.d.ts +6 -0
  59. data/assets/mermaid/diagram-api/comments.spec.d.ts +1 -0
  60. data/assets/mermaid/diagram-api/detectType.d.ts +42 -0
  61. data/assets/mermaid/diagram-api/diagram-orchestration.d.ts +1 -0
  62. data/assets/mermaid/diagram-api/diagram-orchestration.spec.d.ts +1 -0
  63. data/assets/mermaid/diagram-api/diagramAPI.d.ts +31 -0
  64. data/assets/mermaid/diagram-api/diagramAPI.spec.d.ts +1 -0
  65. data/assets/mermaid/diagram-api/frontmatter.d.ts +18 -0
  66. data/assets/mermaid/diagram-api/frontmatter.spec.d.ts +1 -0
  67. data/assets/mermaid/diagram-api/loadDiagram.d.ts +1 -0
  68. data/assets/mermaid/diagram-api/regexes.d.ts +3 -0
  69. data/assets/mermaid/diagram-api/types.d.ts +84 -0
  70. data/assets/mermaid/diagram.spec.d.ts +1 -0
  71. data/assets/mermaid/diagrams/block/blockDB.d.ts +54 -0
  72. data/assets/mermaid/diagrams/block/blockDetector.d.ts +3 -0
  73. data/assets/mermaid/diagrams/block/blockDiagram.d.ts +2 -0
  74. data/assets/mermaid/diagrams/block/blockRenderer.d.ts +15 -0
  75. data/assets/mermaid/diagrams/block/blockTypes.d.ts +36 -0
  76. data/assets/mermaid/diagrams/block/blockUtils.d.ts +1 -0
  77. data/assets/mermaid/diagrams/block/layout.d.ts +13 -0
  78. data/assets/mermaid/diagrams/block/layout.spec.d.ts +1 -0
  79. data/assets/mermaid/diagrams/block/parser/block.spec.d.ts +1 -0
  80. data/assets/mermaid/diagrams/block/renderHelpers.d.ts +10 -0
  81. data/assets/mermaid/diagrams/block/styles.d.ts +18 -0
  82. data/assets/mermaid/diagrams/c4/c4Db.d.ts +127 -0
  83. data/assets/mermaid/diagrams/c4/c4Detector.d.ts +3 -0
  84. data/assets/mermaid/diagrams/c4/c4Diagram.d.ts +2 -0
  85. data/assets/mermaid/diagrams/c4/c4Renderer.d.ts +12 -0
  86. data/assets/mermaid/diagrams/c4/styles.d.ts +2 -0
  87. data/assets/mermaid/diagrams/c4/svgDraw.d.ts +36 -0
  88. data/assets/mermaid/diagrams/class/classDb.d.ts +144 -0
  89. data/assets/mermaid/diagrams/class/classDetector-V2.d.ts +3 -0
  90. data/assets/mermaid/diagrams/class/classDetector.d.ts +3 -0
  91. data/assets/mermaid/diagrams/class/classDiagram-v2.d.ts +2 -0
  92. data/assets/mermaid/diagrams/class/classDiagram.d.ts +2 -0
  93. data/assets/mermaid/diagrams/class/classDiagram.spec.d.ts +1 -0
  94. data/assets/mermaid/diagrams/class/classRenderer-v2.d.ts +57 -0
  95. data/assets/mermaid/diagrams/class/classRenderer.d.ts +5 -0
  96. data/assets/mermaid/diagrams/class/classTypes.d.ts +78 -0
  97. data/assets/mermaid/diagrams/class/classTypes.spec.d.ts +1 -0
  98. data/assets/mermaid/diagrams/class/styles.d.ts +2 -0
  99. data/assets/mermaid/diagrams/class/svgDraw.d.ts +25 -0
  100. data/assets/mermaid/diagrams/common/common.d.ts +110 -0
  101. data/assets/mermaid/diagrams/common/common.spec.d.ts +1 -0
  102. data/assets/mermaid/diagrams/common/commonDb.d.ts +7 -0
  103. data/assets/mermaid/diagrams/common/commonTypes.d.ts +51 -0
  104. data/assets/mermaid/diagrams/common/svgDrawCommon.d.ts +15 -0
  105. data/assets/mermaid/diagrams/er/erDb.d.ts +49 -0
  106. data/assets/mermaid/diagrams/er/erDetector.d.ts +3 -0
  107. data/assets/mermaid/diagrams/er/erDiagram.d.ts +34 -0
  108. data/assets/mermaid/diagrams/er/erMarkers.d.ts +24 -0
  109. data/assets/mermaid/diagrams/er/erRenderer.d.ts +19 -0
  110. data/assets/mermaid/diagrams/er/erRenderer.spec.d.ts +1 -0
  111. data/assets/mermaid/diagrams/er/styles.d.ts +2 -0
  112. data/assets/mermaid/diagrams/error/errorDiagram.d.ts +3 -0
  113. data/assets/mermaid/diagrams/error/errorRenderer.d.ts +12 -0
  114. data/assets/mermaid/diagrams/flowchart/elk/detector.d.ts +3 -0
  115. data/assets/mermaid/diagrams/flowchart/elk/detector.spec.d.ts +1 -0
  116. data/assets/mermaid/diagrams/flowchart/elk/flowRenderer-elk.d.ts +10 -0
  117. data/assets/mermaid/diagrams/flowchart/elk/flowchart-elk-definition.d.ts +10 -0
  118. data/assets/mermaid/diagrams/flowchart/elk/render-utils.d.ts +5 -0
  119. data/assets/mermaid/diagrams/flowchart/elk/render-utils.spec.d.ts +1 -0
  120. data/assets/mermaid/diagrams/flowchart/elk/styles.d.ts +19 -0
  121. data/assets/mermaid/diagrams/flowchart/flowChartShapes.d.ts +9 -0
  122. data/assets/mermaid/diagrams/flowchart/flowDb.d.ts +87 -0
  123. data/assets/mermaid/diagrams/flowchart/flowDetector-v2.d.ts +3 -0
  124. data/assets/mermaid/diagrams/flowchart/flowDetector.d.ts +3 -0
  125. data/assets/mermaid/diagrams/flowchart/flowDiagram-v2.d.ts +57 -0
  126. data/assets/mermaid/diagrams/flowchart/flowDiagram.d.ts +57 -0
  127. data/assets/mermaid/diagrams/flowchart/flowRenderer-v2.d.ts +13 -0
  128. data/assets/mermaid/diagrams/flowchart/flowRenderer.d.ts +13 -0
  129. data/assets/mermaid/diagrams/flowchart/styles.d.ts +18 -0
  130. data/assets/mermaid/diagrams/gantt/ganttDb.d.ts +106 -0
  131. data/assets/mermaid/diagrams/gantt/ganttDb.spec.d.ts +1 -0
  132. data/assets/mermaid/diagrams/gantt/ganttDetector.d.ts +3 -0
  133. data/assets/mermaid/diagrams/gantt/ganttDiagram.d.ts +2 -0
  134. data/assets/mermaid/diagrams/gantt/ganttRenderer.d.ts +7 -0
  135. data/assets/mermaid/diagrams/gantt/styles.d.ts +2 -0
  136. data/assets/mermaid/diagrams/git/gitGraphAst.d.ts +61 -0
  137. data/assets/mermaid/diagrams/git/gitGraphDetector.d.ts +3 -0
  138. data/assets/mermaid/diagrams/git/gitGraphDiagram.d.ts +2 -0
  139. data/assets/mermaid/diagrams/git/gitGraphRenderer.d.ts +5 -0
  140. data/assets/mermaid/diagrams/git/styles.d.ts +2 -0
  141. data/assets/mermaid/diagrams/info/info.spec.d.ts +1 -0
  142. data/assets/mermaid/diagrams/info/infoDb.d.ts +5 -0
  143. data/assets/mermaid/diagrams/info/infoDetector.d.ts +2 -0
  144. data/assets/mermaid/diagrams/info/infoDiagram.d.ts +2 -0
  145. data/assets/mermaid/diagrams/info/infoRenderer.d.ts +4 -0
  146. data/assets/mermaid/diagrams/info/infoTypes.d.ts +9 -0
  147. data/assets/mermaid/diagrams/mindmap/detector.d.ts +3 -0
  148. data/assets/mermaid/diagrams/mindmap/mindmap-definition.d.ts +2 -0
  149. data/assets/mermaid/diagrams/mindmap/mindmap.spec.d.ts +1 -0
  150. data/assets/mermaid/diagrams/mindmap/mindmapDb.d.ts +30 -0
  151. data/assets/mermaid/diagrams/mindmap/mindmapRenderer.d.ts +21 -0
  152. data/assets/mermaid/diagrams/mindmap/mindmapTypes.d.ts +20 -0
  153. data/assets/mermaid/diagrams/mindmap/styles.d.ts +3 -0
  154. data/assets/mermaid/diagrams/mindmap/svgDraw.d.ts +13 -0
  155. data/assets/mermaid/diagrams/pie/pie.spec.d.ts +1 -0
  156. data/assets/mermaid/diagrams/pie/pieDb.d.ts +6 -0
  157. data/assets/mermaid/diagrams/pie/pieDetector.d.ts +2 -0
  158. data/assets/mermaid/diagrams/pie/pieDiagram.d.ts +2 -0
  159. data/assets/mermaid/diagrams/pie/pieRenderer.d.ts +13 -0
  160. data/assets/mermaid/diagrams/pie/pieStyles.d.ts +3 -0
  161. data/assets/mermaid/diagrams/pie/pieTypes.d.ts +53 -0
  162. data/assets/mermaid/diagrams/quadrant-chart/parser/quadrant.jison.spec.d.ts +1 -0
  163. data/assets/mermaid/diagrams/quadrant-chart/quadrantBuilder.d.ts +118 -0
  164. data/assets/mermaid/diagrams/quadrant-chart/quadrantDb.d.ts +38 -0
  165. data/assets/mermaid/diagrams/quadrant-chart/quadrantDetector.d.ts +3 -0
  166. data/assets/mermaid/diagrams/quadrant-chart/quadrantDiagram.d.ts +2 -0
  167. data/assets/mermaid/diagrams/quadrant-chart/quadrantRenderer.d.ts +6 -0
  168. data/assets/mermaid/diagrams/requirement/requirementDb.d.ts +70 -0
  169. data/assets/mermaid/diagrams/requirement/requirementDetector.d.ts +3 -0
  170. data/assets/mermaid/diagrams/requirement/requirementDiagram.d.ts +2 -0
  171. data/assets/mermaid/diagrams/requirement/requirementMarkers.d.ts +10 -0
  172. data/assets/mermaid/diagrams/requirement/requirementRenderer.d.ts +7 -0
  173. data/assets/mermaid/diagrams/requirement/styles.d.ts +2 -0
  174. data/assets/mermaid/diagrams/sankey/parser/sankey.spec.d.ts +1 -0
  175. data/assets/mermaid/diagrams/sankey/sankeyDB.d.ts +36 -0
  176. data/assets/mermaid/diagrams/sankey/sankeyDetector.d.ts +3 -0
  177. data/assets/mermaid/diagrams/sankey/sankeyDiagram.d.ts +2 -0
  178. data/assets/mermaid/diagrams/sankey/sankeyRenderer.d.ts +14 -0
  179. data/assets/mermaid/diagrams/sankey/sankeyUtils.d.ts +1 -0
  180. data/assets/mermaid/diagrams/sequence/sequenceDb.d.ts +153 -0
  181. data/assets/mermaid/diagrams/sequence/sequenceDetector.d.ts +3 -0
  182. data/assets/mermaid/diagrams/sequence/sequenceDiagram.d.ts +2 -0
  183. data/assets/mermaid/diagrams/sequence/sequenceRenderer.d.ts +202 -0
  184. data/assets/mermaid/diagrams/sequence/styles.d.ts +2 -0
  185. data/assets/mermaid/diagrams/sequence/svgDraw.d.ts +73 -0
  186. data/assets/mermaid/diagrams/state/id-cache.d.ts +11 -0
  187. data/assets/mermaid/diagrams/state/shapes.d.ts +14 -0
  188. data/assets/mermaid/diagrams/state/stateCommon.d.ts +22 -0
  189. data/assets/mermaid/diagrams/state/stateDb.d.ts +91 -0
  190. data/assets/mermaid/diagrams/state/stateDetector-V2.d.ts +3 -0
  191. data/assets/mermaid/diagrams/state/stateDetector.d.ts +3 -0
  192. data/assets/mermaid/diagrams/state/stateDiagram-v2.d.ts +2 -0
  193. data/assets/mermaid/diagrams/state/stateDiagram.d.ts +2 -0
  194. data/assets/mermaid/diagrams/state/stateRenderer-v2.d.ts +20 -0
  195. data/assets/mermaid/diagrams/state/stateRenderer.d.ts +7 -0
  196. data/assets/mermaid/diagrams/state/styles.d.ts +2 -0
  197. data/assets/mermaid/diagrams/timeline/detector.d.ts +3 -0
  198. data/assets/mermaid/diagrams/timeline/styles.d.ts +2 -0
  199. data/assets/mermaid/diagrams/timeline/svgDraw.d.ts +46 -0
  200. data/assets/mermaid/diagrams/timeline/timeline-definition.d.ts +10 -0
  201. data/assets/mermaid/diagrams/timeline/timelineDb.d.ts +20 -0
  202. data/assets/mermaid/diagrams/timeline/timelineRenderer.d.ts +19 -0
  203. data/assets/mermaid/diagrams/user-journey/journeyDb.d.ts +30 -0
  204. data/assets/mermaid/diagrams/user-journey/journeyDetector.d.ts +3 -0
  205. data/assets/mermaid/diagrams/user-journey/journeyDiagram.d.ts +2 -0
  206. data/assets/mermaid/diagrams/user-journey/journeyRenderer.d.ts +30 -0
  207. data/assets/mermaid/diagrams/user-journey/styles.d.ts +2 -0
  208. data/assets/mermaid/diagrams/user-journey/svgDraw.d.ts +20 -0
  209. data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/bandAxis.d.ts +12 -0
  210. data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/baseAxis.d.ts +38 -0
  211. data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/index.d.ts +12 -0
  212. data/assets/mermaid/diagrams/xychart/chartBuilder/components/axis/linearAxis.d.ts +11 -0
  213. data/assets/mermaid/diagrams/xychart/chartBuilder/components/chartTitle.d.ts +16 -0
  214. data/assets/mermaid/diagrams/xychart/chartBuilder/components/plot/barPlot.d.ts +12 -0
  215. data/assets/mermaid/diagrams/xychart/chartBuilder/components/plot/index.d.ts +20 -0
  216. data/assets/mermaid/diagrams/xychart/chartBuilder/components/plot/linePlot.d.ts +11 -0
  217. data/assets/mermaid/diagrams/xychart/chartBuilder/index.d.ts +5 -0
  218. data/assets/mermaid/diagrams/xychart/chartBuilder/interfaces.d.ts +132 -0
  219. data/assets/mermaid/diagrams/xychart/chartBuilder/orchestrator.d.ts +12 -0
  220. data/assets/mermaid/diagrams/xychart/chartBuilder/textDimensionCalculator.d.ts +10 -0
  221. data/assets/mermaid/diagrams/xychart/parser/xychart.jison.spec.d.ts +1 -0
  222. data/assets/mermaid/diagrams/xychart/xychartDb.d.ts +40 -0
  223. data/assets/mermaid/diagrams/xychart/xychartDetector.d.ts +3 -0
  224. data/assets/mermaid/diagrams/xychart/xychartDiagram.d.ts +2 -0
  225. data/assets/mermaid/diagrams/xychart/xychartRenderer.d.ts +6 -0
  226. data/assets/mermaid/docs/vite.config.d.ts +2 -0
  227. data/assets/mermaid/edges-066a5561.js +1840 -0
  228. data/assets/mermaid/edges-16357fde.js +1083 -0
  229. data/assets/mermaid/edges-ce5cfb7c.js +1840 -0
  230. data/assets/mermaid/erDiagram-09d1c15f.js +1176 -0
  231. data/assets/mermaid/erDiagram-543717f2.js +1321 -0
  232. data/assets/mermaid/erDiagram-c7ff1bec.js +931 -0
  233. data/assets/mermaid/errors.d.ts +3 -0
  234. data/assets/mermaid/flowDb-9a89ea33.js +1126 -0
  235. data/assets/mermaid/flowDb-ba9bd7fa.js +1713 -0
  236. data/assets/mermaid/flowDb-c1833063.js +1714 -0
  237. data/assets/mermaid/flowDiagram-aadb13b0.js +797 -0
  238. data/assets/mermaid/flowDiagram-b222e15a.js +614 -0
  239. data/assets/mermaid/flowDiagram-b5e7ba30.js +1278 -0
  240. data/assets/mermaid/flowDiagram-v2-13329dc7.js +40 -0
  241. data/assets/mermaid/flowDiagram-v2-54711e03.js +32 -0
  242. data/assets/mermaid/flowDiagram-v2-f2119625.js +25 -0
  243. data/assets/mermaid/flowchart-elk-definition-2d49707c.js +93397 -0
  244. data/assets/mermaid/flowchart-elk-definition-ae0efee6.js +814 -0
  245. data/assets/mermaid/flowchart-elk-definition-cf813a97.js +48407 -0
  246. data/assets/mermaid/ganttDiagram-12cf43db.js +3445 -0
  247. data/assets/mermaid/ganttDiagram-3c2fde2b.js +2501 -0
  248. data/assets/mermaid/ganttDiagram-b62c793e.js +2061 -0
  249. data/assets/mermaid/gitGraphDiagram-942e62fe.js +1800 -0
  250. data/assets/mermaid/gitGraphDiagram-b9392a12.js +1790 -0
  251. data/assets/mermaid/gitGraphDiagram-c3a0619c.js +1264 -0
  252. data/assets/mermaid/graph-0ee63739.js +881 -0
  253. data/assets/mermaid/graph-fe24fab6.js +1285 -0
  254. data/assets/mermaid/index-01f381cb.js +622 -0
  255. data/assets/mermaid/index-bb6d8841.js +373 -0
  256. data/assets/mermaid/index-fc479858.js +663 -0
  257. data/assets/mermaid/infoDiagram-2f5c50c0.js +319 -0
  258. data/assets/mermaid/infoDiagram-94cd232f.js +520 -0
  259. data/assets/mermaid/infoDiagram-d0d5c9bd.js +510 -0
  260. data/assets/mermaid/init-cc95ec8e.js +16 -0
  261. data/assets/mermaid/init-f9637058.js +16 -0
  262. data/assets/mermaid/interactionDb.d.ts +2 -0
  263. data/assets/mermaid/journeyDiagram-14fe341a.js +804 -0
  264. data/assets/mermaid/journeyDiagram-6625b456.js +1191 -0
  265. data/assets/mermaid/journeyDiagram-b56e6921.js +1183 -0
  266. data/assets/mermaid/katex-d90b6d29.js +11624 -0
  267. data/assets/mermaid/katex-ffb0e8f1.js +14432 -0
  268. data/assets/mermaid/layout-163b9689.js +2314 -0
  269. data/assets/mermaid/layout-fd473db2.js +1536 -0
  270. data/assets/mermaid/line-24d93f1b.js +34 -0
  271. data/assets/mermaid/line-87f517ef.js +50 -0
  272. data/assets/mermaid/linear-0ad15847.js +595 -0
  273. data/assets/mermaid/linear-9bcf74c4.js +447 -0
  274. data/assets/mermaid/logger.d.ts +9 -0
  275. data/assets/mermaid/mermaid-6dc72991.js +6461 -0
  276. data/assets/mermaid/mermaid-9f2aa176.js +8112 -0
  277. data/assets/mermaid/mermaid-dcacb631.js +12793 -0
  278. data/assets/mermaid/mermaid.core.mjs +14 -0
  279. data/assets/mermaid/mermaid.d.ts +146 -0
  280. data/assets/mermaid/mermaid.esm.min.mjs +4 -0
  281. data/assets/mermaid/mermaid.esm.mjs +4 -0
  282. data/assets/mermaid/mermaid.js +195755 -0
  283. data/assets/mermaid/mermaid.min.js +2029 -0
  284. data/assets/mermaid/mermaid.spec.d.ts +1 -0
  285. data/assets/mermaid/mermaidAPI.d.ts +170 -0
  286. data/assets/mermaid/mermaidAPI.spec.d.ts +1 -0
  287. data/assets/mermaid/mindmap-definition-307c710a.js +1177 -0
  288. data/assets/mermaid/mindmap-definition-696ddea4.js +32342 -0
  289. data/assets/mermaid/mindmap-definition-9399c7e6.js +18760 -0
  290. data/assets/mermaid/ordinal-475e0c0c.js +82 -0
  291. data/assets/mermaid/ordinal-5695958c.js +65 -0
  292. data/assets/mermaid/path-39bad7e2.js +118 -0
  293. data/assets/mermaid/path-428ebac9.js +91 -0
  294. data/assets/mermaid/pieDiagram-828dae43.js +502 -0
  295. data/assets/mermaid/pieDiagram-bb1d19e5.js +722 -0
  296. data/assets/mermaid/pieDiagram-e854eaf0.js +772 -0
  297. data/assets/mermaid/preprocess.d.ts +10 -0
  298. data/assets/mermaid/quadrantDiagram-25a9848b.js +1199 -0
  299. data/assets/mermaid/quadrantDiagram-5fa00455.js +904 -0
  300. data/assets/mermaid/quadrantDiagram-c759a472.js +1207 -0
  301. data/assets/mermaid/rendering-util/createText.d.ts +11 -0
  302. data/assets/mermaid/rendering-util/handle-markdown-text.d.ts +6 -0
  303. data/assets/mermaid/rendering-util/handle-markdown-text.spec.d.ts +1 -0
  304. data/assets/mermaid/rendering-util/selectSvgElement.d.ts +8 -0
  305. data/assets/mermaid/rendering-util/splitText.d.ts +24 -0
  306. data/assets/mermaid/rendering-util/splitText.spec.d.ts +1 -0
  307. data/assets/mermaid/rendering-util/uid.d.ts +8 -0
  308. data/assets/mermaid/requirementDiagram-03163dc4.js +769 -0
  309. data/assets/mermaid/requirementDiagram-87253d64.js +1098 -0
  310. data/assets/mermaid/requirementDiagram-a721e157.js +1091 -0
  311. data/assets/mermaid/sankeyDiagram-33525efb.js +1198 -0
  312. data/assets/mermaid/sankeyDiagram-52ec8976.js +818 -0
  313. data/assets/mermaid/sankeyDiagram-707fac0f.js +660 -0
  314. data/assets/mermaid/sequenceDiagram-6894f283.js +3346 -0
  315. data/assets/mermaid/sequenceDiagram-9813c129.js +3336 -0
  316. data/assets/mermaid/sequenceDiagram-b517d154.js +2234 -0
  317. data/assets/mermaid/setupGraphViewbox.d.ts +3 -0
  318. data/assets/mermaid/stateDiagram-5dee940d.js +474 -0
  319. data/assets/mermaid/stateDiagram-5ec31577.js +467 -0
  320. data/assets/mermaid/stateDiagram-fca82b5b.js +275 -0
  321. data/assets/mermaid/stateDiagram-v2-1992cada.js +333 -0
  322. data/assets/mermaid/stateDiagram-v2-992e82a1.js +325 -0
  323. data/assets/mermaid/stateDiagram-v2-ed04200a.js +190 -0
  324. data/assets/mermaid/styles-0784dbeb.js +1363 -0
  325. data/assets/mermaid/styles-11e81fdd.js +1089 -0
  326. data/assets/mermaid/styles-36a1a2e8.js +1483 -0
  327. data/assets/mermaid/styles-483fbfea.js +509 -0
  328. data/assets/mermaid/styles-727cdd61.js +571 -0
  329. data/assets/mermaid/styles-b83b31c9.js +1484 -0
  330. data/assets/mermaid/styles-cacbff60.js +960 -0
  331. data/assets/mermaid/styles-e75131e4.js +433 -0
  332. data/assets/mermaid/styles-f80da881.js +1363 -0
  333. data/assets/mermaid/styles.d.ts +12 -0
  334. data/assets/mermaid/styles.spec.d.ts +1 -0
  335. data/assets/mermaid/svgDrawCommon-5e1cfd1d.js +101 -0
  336. data/assets/mermaid/svgDrawCommon-d6ab583c.js +100 -0
  337. data/assets/mermaid/svgDrawCommon-ecc5f780.js +64 -0
  338. data/assets/mermaid/tests/MockedD3.d.ts +45 -0
  339. data/assets/mermaid/tests/setup.d.ts +1 -0
  340. data/assets/mermaid/tests/util.d.ts +3 -0
  341. data/assets/mermaid/themes/erDiagram-oldHardcodedValues.d.ts +7 -0
  342. data/assets/mermaid/themes/index.d.ts +24 -0
  343. data/assets/mermaid/themes/theme-base.d.ts +189 -0
  344. data/assets/mermaid/themes/theme-dark.d.ts +177 -0
  345. data/assets/mermaid/themes/theme-default.d.ts +188 -0
  346. data/assets/mermaid/themes/theme-forest.d.ts +185 -0
  347. data/assets/mermaid/themes/theme-helpers.d.ts +1 -0
  348. data/assets/mermaid/themes/theme-neutral.d.ts +182 -0
  349. data/assets/mermaid/timeline-definition-23ce0e2e.js +1211 -0
  350. data/assets/mermaid/timeline-definition-4ee9bff4.js +795 -0
  351. data/assets/mermaid/timeline-definition-bf702344.js +1219 -0
  352. data/assets/mermaid/types.d.ts +31 -0
  353. data/assets/mermaid/utils/imperativeState.d.ts +32 -0
  354. data/assets/mermaid/utils/imperativeState.spec.d.ts +1 -0
  355. data/assets/mermaid/utils/lineWithOffset.d.ts +5 -0
  356. data/assets/mermaid/utils/sanitizeDirective.d.ts +7 -0
  357. data/assets/mermaid/utils/subGraphTitleMargins.d.ts +8 -0
  358. data/assets/mermaid/utils/subGraphTitleMargins.spec.d.ts +1 -0
  359. data/assets/mermaid/utils.d.ts +286 -0
  360. data/assets/mermaid/utils.spec.d.ts +1 -0
  361. data/assets/mermaid/xychartDiagram-de2e5521.js +1800 -0
  362. data/assets/mermaid/xychartDiagram-e5e6b652.js +1284 -0
  363. data/assets/mermaid/xychartDiagram-f11f50a6.js +1745 -0
  364. data/assets/tables.css +23 -0
  365. data/assets/toURI.js +142 -0
  366. metadata +363 -2
@@ -0,0 +1,769 @@
1
+ import { c as Te, s as Ce, g as Fe, b as Me, a as De, l as Ne, E as Pe, j as oe, k as Ye, f as ke } from "./mermaid-9f2aa176.js";
2
+ import { G as Ue } from "./graph-0ee63739.js";
3
+ import { l as Be } from "./layout-fd473db2.js";
4
+ import { l as Qe } from "./line-24d93f1b.js";
5
+ import "./array-2ff2c7a6.js";
6
+ import "./path-428ebac9.js";
7
+ var ce = function() {
8
+ var e = function(V, i, r, a) {
9
+ for (r = r || {}, a = V.length; a--; r[V[a]] = i)
10
+ ;
11
+ return r;
12
+ }, t = [1, 3], l = [1, 4], c = [1, 5], u = [1, 6], d = [5, 6, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], f = [1, 18], h = [2, 7], o = [1, 22], E = [1, 23], R = [1, 24], A = [1, 25], T = [1, 26], N = [1, 27], w = [1, 20], k = [1, 28], x = [1, 29], F = [62, 63], de = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 51, 53, 62, 63], fe = [1, 47], pe = [1, 48], ye = [1, 49], _e = [1, 50], Ee = [1, 51], ge = [1, 52], Re = [1, 53], O = [53, 54], M = [1, 64], D = [1, 60], P = [1, 61], Y = [1, 62], U = [1, 63], B = [1, 65], j = [1, 69], z = [1, 70], X = [1, 67], J = [1, 68], m = [5, 8, 9, 11, 13, 31, 32, 33, 34, 35, 36, 44, 62, 63], ie = {
13
+ trace: function() {
14
+ },
15
+ yy: {},
16
+ symbols_: { error: 2, start: 3, directive: 4, NEWLINE: 5, RD: 6, diagram: 7, EOF: 8, acc_title: 9, acc_title_value: 10, acc_descr: 11, acc_descr_value: 12, acc_descr_multiline_value: 13, requirementDef: 14, elementDef: 15, relationshipDef: 16, requirementType: 17, requirementName: 18, STRUCT_START: 19, requirementBody: 20, ID: 21, COLONSEP: 22, id: 23, TEXT: 24, text: 25, RISK: 26, riskLevel: 27, VERIFYMTHD: 28, verifyType: 29, STRUCT_STOP: 30, REQUIREMENT: 31, FUNCTIONAL_REQUIREMENT: 32, INTERFACE_REQUIREMENT: 33, PERFORMANCE_REQUIREMENT: 34, PHYSICAL_REQUIREMENT: 35, DESIGN_CONSTRAINT: 36, LOW_RISK: 37, MED_RISK: 38, HIGH_RISK: 39, VERIFY_ANALYSIS: 40, VERIFY_DEMONSTRATION: 41, VERIFY_INSPECTION: 42, VERIFY_TEST: 43, ELEMENT: 44, elementName: 45, elementBody: 46, TYPE: 47, type: 48, DOCREF: 49, ref: 50, END_ARROW_L: 51, relationship: 52, LINE: 53, END_ARROW_R: 54, CONTAINS: 55, COPIES: 56, DERIVES: 57, SATISFIES: 58, VERIFIES: 59, REFINES: 60, TRACES: 61, unqString: 62, qString: 63, $accept: 0, $end: 1 },
17
+ terminals_: { 2: "error", 5: "NEWLINE", 6: "RD", 8: "EOF", 9: "acc_title", 10: "acc_title_value", 11: "acc_descr", 12: "acc_descr_value", 13: "acc_descr_multiline_value", 19: "STRUCT_START", 21: "ID", 22: "COLONSEP", 24: "TEXT", 26: "RISK", 28: "VERIFYMTHD", 30: "STRUCT_STOP", 31: "REQUIREMENT", 32: "FUNCTIONAL_REQUIREMENT", 33: "INTERFACE_REQUIREMENT", 34: "PERFORMANCE_REQUIREMENT", 35: "PHYSICAL_REQUIREMENT", 36: "DESIGN_CONSTRAINT", 37: "LOW_RISK", 38: "MED_RISK", 39: "HIGH_RISK", 40: "VERIFY_ANALYSIS", 41: "VERIFY_DEMONSTRATION", 42: "VERIFY_INSPECTION", 43: "VERIFY_TEST", 44: "ELEMENT", 47: "TYPE", 49: "DOCREF", 51: "END_ARROW_L", 53: "LINE", 54: "END_ARROW_R", 55: "CONTAINS", 56: "COPIES", 57: "DERIVES", 58: "SATISFIES", 59: "VERIFIES", 60: "REFINES", 61: "TRACES", 62: "unqString", 63: "qString" },
18
+ productions_: [0, [3, 3], [3, 2], [3, 4], [4, 2], [4, 2], [4, 1], [7, 0], [7, 2], [7, 2], [7, 2], [7, 2], [7, 2], [14, 5], [20, 5], [20, 5], [20, 5], [20, 5], [20, 2], [20, 1], [17, 1], [17, 1], [17, 1], [17, 1], [17, 1], [17, 1], [27, 1], [27, 1], [27, 1], [29, 1], [29, 1], [29, 1], [29, 1], [15, 5], [46, 5], [46, 5], [46, 2], [46, 1], [16, 5], [16, 5], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [52, 1], [18, 1], [18, 1], [23, 1], [23, 1], [25, 1], [25, 1], [45, 1], [45, 1], [48, 1], [48, 1], [50, 1], [50, 1]],
19
+ performAction: function(i, r, a, n, p, s, W) {
20
+ var _ = s.length - 1;
21
+ switch (p) {
22
+ case 4:
23
+ this.$ = s[_].trim(), n.setAccTitle(this.$);
24
+ break;
25
+ case 5:
26
+ case 6:
27
+ this.$ = s[_].trim(), n.setAccDescription(this.$);
28
+ break;
29
+ case 7:
30
+ this.$ = [];
31
+ break;
32
+ case 13:
33
+ n.addRequirement(s[_ - 3], s[_ - 4]);
34
+ break;
35
+ case 14:
36
+ n.setNewReqId(s[_ - 2]);
37
+ break;
38
+ case 15:
39
+ n.setNewReqText(s[_ - 2]);
40
+ break;
41
+ case 16:
42
+ n.setNewReqRisk(s[_ - 2]);
43
+ break;
44
+ case 17:
45
+ n.setNewReqVerifyMethod(s[_ - 2]);
46
+ break;
47
+ case 20:
48
+ this.$ = n.RequirementType.REQUIREMENT;
49
+ break;
50
+ case 21:
51
+ this.$ = n.RequirementType.FUNCTIONAL_REQUIREMENT;
52
+ break;
53
+ case 22:
54
+ this.$ = n.RequirementType.INTERFACE_REQUIREMENT;
55
+ break;
56
+ case 23:
57
+ this.$ = n.RequirementType.PERFORMANCE_REQUIREMENT;
58
+ break;
59
+ case 24:
60
+ this.$ = n.RequirementType.PHYSICAL_REQUIREMENT;
61
+ break;
62
+ case 25:
63
+ this.$ = n.RequirementType.DESIGN_CONSTRAINT;
64
+ break;
65
+ case 26:
66
+ this.$ = n.RiskLevel.LOW_RISK;
67
+ break;
68
+ case 27:
69
+ this.$ = n.RiskLevel.MED_RISK;
70
+ break;
71
+ case 28:
72
+ this.$ = n.RiskLevel.HIGH_RISK;
73
+ break;
74
+ case 29:
75
+ this.$ = n.VerifyType.VERIFY_ANALYSIS;
76
+ break;
77
+ case 30:
78
+ this.$ = n.VerifyType.VERIFY_DEMONSTRATION;
79
+ break;
80
+ case 31:
81
+ this.$ = n.VerifyType.VERIFY_INSPECTION;
82
+ break;
83
+ case 32:
84
+ this.$ = n.VerifyType.VERIFY_TEST;
85
+ break;
86
+ case 33:
87
+ n.addElement(s[_ - 3]);
88
+ break;
89
+ case 34:
90
+ n.setNewElementType(s[_ - 2]);
91
+ break;
92
+ case 35:
93
+ n.setNewElementDocRef(s[_ - 2]);
94
+ break;
95
+ case 38:
96
+ n.addRelationship(s[_ - 2], s[_], s[_ - 4]);
97
+ break;
98
+ case 39:
99
+ n.addRelationship(s[_ - 2], s[_ - 4], s[_]);
100
+ break;
101
+ case 40:
102
+ this.$ = n.Relationships.CONTAINS;
103
+ break;
104
+ case 41:
105
+ this.$ = n.Relationships.COPIES;
106
+ break;
107
+ case 42:
108
+ this.$ = n.Relationships.DERIVES;
109
+ break;
110
+ case 43:
111
+ this.$ = n.Relationships.SATISFIES;
112
+ break;
113
+ case 44:
114
+ this.$ = n.Relationships.VERIFIES;
115
+ break;
116
+ case 45:
117
+ this.$ = n.Relationships.REFINES;
118
+ break;
119
+ case 46:
120
+ this.$ = n.Relationships.TRACES;
121
+ break;
122
+ }
123
+ },
124
+ table: [{ 3: 1, 4: 2, 6: t, 9: l, 11: c, 13: u }, { 1: [3] }, { 3: 8, 4: 2, 5: [1, 7], 6: t, 9: l, 11: c, 13: u }, { 5: [1, 9] }, { 10: [1, 10] }, { 12: [1, 11] }, e(d, [2, 6]), { 3: 12, 4: 2, 6: t, 9: l, 11: c, 13: u }, { 1: [2, 2] }, { 4: 17, 5: f, 7: 13, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: E, 33: R, 34: A, 35: T, 36: N, 44: w, 62: k, 63: x }, e(d, [2, 4]), e(d, [2, 5]), { 1: [2, 1] }, { 8: [1, 30] }, { 4: 17, 5: f, 7: 31, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: E, 33: R, 34: A, 35: T, 36: N, 44: w, 62: k, 63: x }, { 4: 17, 5: f, 7: 32, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: E, 33: R, 34: A, 35: T, 36: N, 44: w, 62: k, 63: x }, { 4: 17, 5: f, 7: 33, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: E, 33: R, 34: A, 35: T, 36: N, 44: w, 62: k, 63: x }, { 4: 17, 5: f, 7: 34, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: E, 33: R, 34: A, 35: T, 36: N, 44: w, 62: k, 63: x }, { 4: 17, 5: f, 7: 35, 8: h, 9: l, 11: c, 13: u, 14: 14, 15: 15, 16: 16, 17: 19, 23: 21, 31: o, 32: E, 33: R, 34: A, 35: T, 36: N, 44: w, 62: k, 63: x }, { 18: 36, 62: [1, 37], 63: [1, 38] }, { 45: 39, 62: [1, 40], 63: [1, 41] }, { 51: [1, 42], 53: [1, 43] }, e(F, [2, 20]), e(F, [2, 21]), e(F, [2, 22]), e(F, [2, 23]), e(F, [2, 24]), e(F, [2, 25]), e(de, [2, 49]), e(de, [2, 50]), { 1: [2, 3] }, { 8: [2, 8] }, { 8: [2, 9] }, { 8: [2, 10] }, { 8: [2, 11] }, { 8: [2, 12] }, { 19: [1, 44] }, { 19: [2, 47] }, { 19: [2, 48] }, { 19: [1, 45] }, { 19: [2, 53] }, { 19: [2, 54] }, { 52: 46, 55: fe, 56: pe, 57: ye, 58: _e, 59: Ee, 60: ge, 61: Re }, { 52: 54, 55: fe, 56: pe, 57: ye, 58: _e, 59: Ee, 60: ge, 61: Re }, { 5: [1, 55] }, { 5: [1, 56] }, { 53: [1, 57] }, e(O, [2, 40]), e(O, [2, 41]), e(O, [2, 42]), e(O, [2, 43]), e(O, [2, 44]), e(O, [2, 45]), e(O, [2, 46]), { 54: [1, 58] }, { 5: M, 20: 59, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: j, 30: z, 46: 66, 47: X, 49: J }, { 23: 71, 62: k, 63: x }, { 23: 72, 62: k, 63: x }, e(m, [2, 13]), { 22: [1, 73] }, { 22: [1, 74] }, { 22: [1, 75] }, { 22: [1, 76] }, { 5: M, 20: 77, 21: D, 24: P, 26: Y, 28: U, 30: B }, e(m, [2, 19]), e(m, [2, 33]), { 22: [1, 78] }, { 22: [1, 79] }, { 5: j, 30: z, 46: 80, 47: X, 49: J }, e(m, [2, 37]), e(m, [2, 38]), e(m, [2, 39]), { 23: 81, 62: k, 63: x }, { 25: 82, 62: [1, 83], 63: [1, 84] }, { 27: 85, 37: [1, 86], 38: [1, 87], 39: [1, 88] }, { 29: 89, 40: [1, 90], 41: [1, 91], 42: [1, 92], 43: [1, 93] }, e(m, [2, 18]), { 48: 94, 62: [1, 95], 63: [1, 96] }, { 50: 97, 62: [1, 98], 63: [1, 99] }, e(m, [2, 36]), { 5: [1, 100] }, { 5: [1, 101] }, { 5: [2, 51] }, { 5: [2, 52] }, { 5: [1, 102] }, { 5: [2, 26] }, { 5: [2, 27] }, { 5: [2, 28] }, { 5: [1, 103] }, { 5: [2, 29] }, { 5: [2, 30] }, { 5: [2, 31] }, { 5: [2, 32] }, { 5: [1, 104] }, { 5: [2, 55] }, { 5: [2, 56] }, { 5: [1, 105] }, { 5: [2, 57] }, { 5: [2, 58] }, { 5: M, 20: 106, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: M, 20: 107, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: M, 20: 108, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: M, 20: 109, 21: D, 24: P, 26: Y, 28: U, 30: B }, { 5: j, 30: z, 46: 110, 47: X, 49: J }, { 5: j, 30: z, 46: 111, 47: X, 49: J }, e(m, [2, 14]), e(m, [2, 15]), e(m, [2, 16]), e(m, [2, 17]), e(m, [2, 34]), e(m, [2, 35])],
125
+ defaultActions: { 8: [2, 2], 12: [2, 1], 30: [2, 3], 31: [2, 8], 32: [2, 9], 33: [2, 10], 34: [2, 11], 35: [2, 12], 37: [2, 47], 38: [2, 48], 40: [2, 53], 41: [2, 54], 83: [2, 51], 84: [2, 52], 86: [2, 26], 87: [2, 27], 88: [2, 28], 90: [2, 29], 91: [2, 30], 92: [2, 31], 93: [2, 32], 95: [2, 55], 96: [2, 56], 98: [2, 57], 99: [2, 58] },
126
+ parseError: function(i, r) {
127
+ if (r.recoverable)
128
+ this.trace(i);
129
+ else {
130
+ var a = new Error(i);
131
+ throw a.hash = r, a;
132
+ }
133
+ },
134
+ parse: function(i) {
135
+ var r = this, a = [0], n = [], p = [null], s = [], W = this.table, _ = "", Z = 0, me = 0, Ve = 2, Ie = 1, qe = s.slice.call(arguments, 1), g = Object.create(this.lexer), L = { yy: {} };
136
+ for (var re in this.yy)
137
+ Object.prototype.hasOwnProperty.call(this.yy, re) && (L.yy[re] = this.yy[re]);
138
+ g.setInput(i, L.yy), L.yy.lexer = g, L.yy.parser = this, typeof g.yylloc > "u" && (g.yylloc = {});
139
+ var se = g.yylloc;
140
+ s.push(se);
141
+ var Oe = g.options && g.options.ranges;
142
+ typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
143
+ function Le() {
144
+ var v;
145
+ return v = n.pop() || g.lex() || Ie, typeof v != "number" && (v instanceof Array && (n = v, v = n.pop()), v = r.symbols_[v] || v), v;
146
+ }
147
+ for (var I, C, S, ae, Q = {}, ee, $, be, te; ; ) {
148
+ if (C = a[a.length - 1], this.defaultActions[C] ? S = this.defaultActions[C] : ((I === null || typeof I > "u") && (I = Le()), S = W[C] && W[C][I]), typeof S > "u" || !S.length || !S[0]) {
149
+ var le = "";
150
+ te = [];
151
+ for (ee in W[C])
152
+ this.terminals_[ee] && ee > Ve && te.push("'" + this.terminals_[ee] + "'");
153
+ g.showPosition ? le = "Parse error on line " + (Z + 1) + `:
154
+ ` + g.showPosition() + `
155
+ Expecting ` + te.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : le = "Parse error on line " + (Z + 1) + ": Unexpected " + (I == Ie ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(le, {
156
+ text: g.match,
157
+ token: this.terminals_[I] || I,
158
+ line: g.yylineno,
159
+ loc: se,
160
+ expected: te
161
+ });
162
+ }
163
+ if (S[0] instanceof Array && S.length > 1)
164
+ throw new Error("Parse Error: multiple actions possible at state: " + C + ", token: " + I);
165
+ switch (S[0]) {
166
+ case 1:
167
+ a.push(I), p.push(g.yytext), s.push(g.yylloc), a.push(S[1]), I = null, me = g.yyleng, _ = g.yytext, Z = g.yylineno, se = g.yylloc;
168
+ break;
169
+ case 2:
170
+ if ($ = this.productions_[S[1]][1], Q.$ = p[p.length - $], Q._$ = {
171
+ first_line: s[s.length - ($ || 1)].first_line,
172
+ last_line: s[s.length - 1].last_line,
173
+ first_column: s[s.length - ($ || 1)].first_column,
174
+ last_column: s[s.length - 1].last_column
175
+ }, Oe && (Q._$.range = [
176
+ s[s.length - ($ || 1)].range[0],
177
+ s[s.length - 1].range[1]
178
+ ]), ae = this.performAction.apply(Q, [
179
+ _,
180
+ me,
181
+ Z,
182
+ L.yy,
183
+ S[1],
184
+ p,
185
+ s
186
+ ].concat(qe)), typeof ae < "u")
187
+ return ae;
188
+ $ && (a = a.slice(0, -1 * $ * 2), p = p.slice(0, -1 * $), s = s.slice(0, -1 * $)), a.push(this.productions_[S[1]][0]), p.push(Q.$), s.push(Q._$), be = W[a[a.length - 2]][a[a.length - 1]], a.push(be);
189
+ break;
190
+ case 3:
191
+ return !0;
192
+ }
193
+ }
194
+ return !0;
195
+ }
196
+ }, ve = function() {
197
+ var V = {
198
+ EOF: 1,
199
+ parseError: function(r, a) {
200
+ if (this.yy.parser)
201
+ this.yy.parser.parseError(r, a);
202
+ else
203
+ throw new Error(r);
204
+ },
205
+ // resets the lexer, sets new input
206
+ setInput: function(i, r) {
207
+ return this.yy = r || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
208
+ first_line: 1,
209
+ first_column: 0,
210
+ last_line: 1,
211
+ last_column: 0
212
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
213
+ },
214
+ // consumes and returns one char from the input
215
+ input: function() {
216
+ var i = this._input[0];
217
+ this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
218
+ var r = i.match(/(?:\r\n?|\n).*/g);
219
+ return r ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
220
+ },
221
+ // unshifts one char (or a string) into the input
222
+ unput: function(i) {
223
+ var r = i.length, a = i.split(/(?:\r\n?|\n)/g);
224
+ this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - r), this.offset -= r;
225
+ var n = this.match.split(/(?:\r\n?|\n)/g);
226
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
227
+ var p = this.yylloc.range;
228
+ return this.yylloc = {
229
+ first_line: this.yylloc.first_line,
230
+ last_line: this.yylineno + 1,
231
+ first_column: this.yylloc.first_column,
232
+ last_column: a ? (a.length === n.length ? this.yylloc.first_column : 0) + n[n.length - a.length].length - a[0].length : this.yylloc.first_column - r
233
+ }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - r]), this.yyleng = this.yytext.length, this;
234
+ },
235
+ // When called from action, caches matched text and appends it on next action
236
+ more: function() {
237
+ return this._more = !0, this;
238
+ },
239
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
240
+ reject: function() {
241
+ if (this.options.backtrack_lexer)
242
+ this._backtrack = !0;
243
+ else
244
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
245
+ ` + this.showPosition(), {
246
+ text: "",
247
+ token: null,
248
+ line: this.yylineno
249
+ });
250
+ return this;
251
+ },
252
+ // retain first n characters of the match
253
+ less: function(i) {
254
+ this.unput(this.match.slice(i));
255
+ },
256
+ // displays already matched input, i.e. for error messages
257
+ pastInput: function() {
258
+ var i = this.matched.substr(0, this.matched.length - this.match.length);
259
+ return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
260
+ },
261
+ // displays upcoming input, i.e. for error messages
262
+ upcomingInput: function() {
263
+ var i = this.match;
264
+ return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
265
+ },
266
+ // displays the character position where the lexing error occurred, i.e. for error messages
267
+ showPosition: function() {
268
+ var i = this.pastInput(), r = new Array(i.length + 1).join("-");
269
+ return i + this.upcomingInput() + `
270
+ ` + r + "^";
271
+ },
272
+ // test the lexed token: return FALSE when not a match, otherwise return token
273
+ test_match: function(i, r) {
274
+ var a, n, p;
275
+ if (this.options.backtrack_lexer && (p = {
276
+ yylineno: this.yylineno,
277
+ yylloc: {
278
+ first_line: this.yylloc.first_line,
279
+ last_line: this.last_line,
280
+ first_column: this.yylloc.first_column,
281
+ last_column: this.yylloc.last_column
282
+ },
283
+ yytext: this.yytext,
284
+ match: this.match,
285
+ matches: this.matches,
286
+ matched: this.matched,
287
+ yyleng: this.yyleng,
288
+ offset: this.offset,
289
+ _more: this._more,
290
+ _input: this._input,
291
+ yy: this.yy,
292
+ conditionStack: this.conditionStack.slice(0),
293
+ done: this.done
294
+ }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), n = i[0].match(/(?:\r\n?|\n).*/g), n && (this.yylineno += n.length), this.yylloc = {
295
+ first_line: this.yylloc.last_line,
296
+ last_line: this.yylineno + 1,
297
+ first_column: this.yylloc.last_column,
298
+ last_column: n ? n[n.length - 1].length - n[n.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
299
+ }, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], a = this.performAction.call(this, this.yy, this, r, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
300
+ return a;
301
+ if (this._backtrack) {
302
+ for (var s in p)
303
+ this[s] = p[s];
304
+ return !1;
305
+ }
306
+ return !1;
307
+ },
308
+ // return next match in input
309
+ next: function() {
310
+ if (this.done)
311
+ return this.EOF;
312
+ this._input || (this.done = !0);
313
+ var i, r, a, n;
314
+ this._more || (this.yytext = "", this.match = "");
315
+ for (var p = this._currentRules(), s = 0; s < p.length; s++)
316
+ if (a = this._input.match(this.rules[p[s]]), a && (!r || a[0].length > r[0].length)) {
317
+ if (r = a, n = s, this.options.backtrack_lexer) {
318
+ if (i = this.test_match(a, p[s]), i !== !1)
319
+ return i;
320
+ if (this._backtrack) {
321
+ r = !1;
322
+ continue;
323
+ } else
324
+ return !1;
325
+ } else if (!this.options.flex)
326
+ break;
327
+ }
328
+ return r ? (i = this.test_match(r, p[n]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
329
+ ` + this.showPosition(), {
330
+ text: "",
331
+ token: null,
332
+ line: this.yylineno
333
+ });
334
+ },
335
+ // return next match that has a token
336
+ lex: function() {
337
+ var r = this.next();
338
+ return r || this.lex();
339
+ },
340
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
341
+ begin: function(r) {
342
+ this.conditionStack.push(r);
343
+ },
344
+ // pop the previously active lexer condition state off the condition stack
345
+ popState: function() {
346
+ var r = this.conditionStack.length - 1;
347
+ return r > 0 ? this.conditionStack.pop() : this.conditionStack[0];
348
+ },
349
+ // produce the lexer rule set which is active for the currently active lexer condition state
350
+ _currentRules: function() {
351
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
352
+ },
353
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
354
+ topState: function(r) {
355
+ return r = this.conditionStack.length - 1 - Math.abs(r || 0), r >= 0 ? this.conditionStack[r] : "INITIAL";
356
+ },
357
+ // alias for begin(condition)
358
+ pushState: function(r) {
359
+ this.begin(r);
360
+ },
361
+ // return the number of states currently on the stack
362
+ stateStackSize: function() {
363
+ return this.conditionStack.length;
364
+ },
365
+ options: { "case-insensitive": !0 },
366
+ performAction: function(r, a, n, p) {
367
+ switch (n) {
368
+ case 0:
369
+ return "title";
370
+ case 1:
371
+ return this.begin("acc_title"), 9;
372
+ case 2:
373
+ return this.popState(), "acc_title_value";
374
+ case 3:
375
+ return this.begin("acc_descr"), 11;
376
+ case 4:
377
+ return this.popState(), "acc_descr_value";
378
+ case 5:
379
+ this.begin("acc_descr_multiline");
380
+ break;
381
+ case 6:
382
+ this.popState();
383
+ break;
384
+ case 7:
385
+ return "acc_descr_multiline_value";
386
+ case 8:
387
+ return 5;
388
+ case 9:
389
+ break;
390
+ case 10:
391
+ break;
392
+ case 11:
393
+ break;
394
+ case 12:
395
+ return 8;
396
+ case 13:
397
+ return 6;
398
+ case 14:
399
+ return 19;
400
+ case 15:
401
+ return 30;
402
+ case 16:
403
+ return 22;
404
+ case 17:
405
+ return 21;
406
+ case 18:
407
+ return 24;
408
+ case 19:
409
+ return 26;
410
+ case 20:
411
+ return 28;
412
+ case 21:
413
+ return 31;
414
+ case 22:
415
+ return 32;
416
+ case 23:
417
+ return 33;
418
+ case 24:
419
+ return 34;
420
+ case 25:
421
+ return 35;
422
+ case 26:
423
+ return 36;
424
+ case 27:
425
+ return 37;
426
+ case 28:
427
+ return 38;
428
+ case 29:
429
+ return 39;
430
+ case 30:
431
+ return 40;
432
+ case 31:
433
+ return 41;
434
+ case 32:
435
+ return 42;
436
+ case 33:
437
+ return 43;
438
+ case 34:
439
+ return 44;
440
+ case 35:
441
+ return 55;
442
+ case 36:
443
+ return 56;
444
+ case 37:
445
+ return 57;
446
+ case 38:
447
+ return 58;
448
+ case 39:
449
+ return 59;
450
+ case 40:
451
+ return 60;
452
+ case 41:
453
+ return 61;
454
+ case 42:
455
+ return 47;
456
+ case 43:
457
+ return 49;
458
+ case 44:
459
+ return 51;
460
+ case 45:
461
+ return 54;
462
+ case 46:
463
+ return 53;
464
+ case 47:
465
+ this.begin("string");
466
+ break;
467
+ case 48:
468
+ this.popState();
469
+ break;
470
+ case 49:
471
+ return "qString";
472
+ case 50:
473
+ return a.yytext = a.yytext.trim(), 62;
474
+ }
475
+ },
476
+ rules: [/^(?:title\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:(\r?\n)+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:$)/i, /^(?:requirementDiagram\b)/i, /^(?:\{)/i, /^(?:\})/i, /^(?::)/i, /^(?:id\b)/i, /^(?:text\b)/i, /^(?:risk\b)/i, /^(?:verifyMethod\b)/i, /^(?:requirement\b)/i, /^(?:functionalRequirement\b)/i, /^(?:interfaceRequirement\b)/i, /^(?:performanceRequirement\b)/i, /^(?:physicalRequirement\b)/i, /^(?:designConstraint\b)/i, /^(?:low\b)/i, /^(?:medium\b)/i, /^(?:high\b)/i, /^(?:analysis\b)/i, /^(?:demonstration\b)/i, /^(?:inspection\b)/i, /^(?:test\b)/i, /^(?:element\b)/i, /^(?:contains\b)/i, /^(?:copies\b)/i, /^(?:derives\b)/i, /^(?:satisfies\b)/i, /^(?:verifies\b)/i, /^(?:refines\b)/i, /^(?:traces\b)/i, /^(?:type\b)/i, /^(?:docref\b)/i, /^(?:<-)/i, /^(?:->)/i, /^(?:-)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[\w][^\r\n\{\<\>\-\=]*)/i],
477
+ conditions: { acc_descr_multiline: { rules: [6, 7], inclusive: !1 }, acc_descr: { rules: [4], inclusive: !1 }, acc_title: { rules: [2], inclusive: !1 }, unqString: { rules: [], inclusive: !1 }, token: { rules: [], inclusive: !1 }, string: { rules: [48, 49], inclusive: !1 }, INITIAL: { rules: [0, 1, 3, 5, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 50], inclusive: !0 } }
478
+ };
479
+ return V;
480
+ }();
481
+ ie.lexer = ve;
482
+ function ne() {
483
+ this.yy = {};
484
+ }
485
+ return ne.prototype = ie, ie.Parser = ne, new ne();
486
+ }();
487
+ ce.parser = ce;
488
+ const He = ce;
489
+ let ue = [], b = {}, K = {}, q = {}, G = {};
490
+ const We = {
491
+ REQUIREMENT: "Requirement",
492
+ FUNCTIONAL_REQUIREMENT: "Functional Requirement",
493
+ INTERFACE_REQUIREMENT: "Interface Requirement",
494
+ PERFORMANCE_REQUIREMENT: "Performance Requirement",
495
+ PHYSICAL_REQUIREMENT: "Physical Requirement",
496
+ DESIGN_CONSTRAINT: "Design Constraint"
497
+ }, Ke = {
498
+ LOW_RISK: "Low",
499
+ MED_RISK: "Medium",
500
+ HIGH_RISK: "High"
501
+ }, Ge = {
502
+ VERIFY_ANALYSIS: "Analysis",
503
+ VERIFY_DEMONSTRATION: "Demonstration",
504
+ VERIFY_INSPECTION: "Inspection",
505
+ VERIFY_TEST: "Test"
506
+ }, je = {
507
+ CONTAINS: "contains",
508
+ COPIES: "copies",
509
+ DERIVES: "derives",
510
+ SATISFIES: "satisfies",
511
+ VERIFIES: "verifies",
512
+ REFINES: "refines",
513
+ TRACES: "traces"
514
+ }, ze = (e, t) => (K[e] === void 0 && (K[e] = {
515
+ name: e,
516
+ type: t,
517
+ id: b.id,
518
+ text: b.text,
519
+ risk: b.risk,
520
+ verifyMethod: b.verifyMethod
521
+ }), b = {}, K[e]), Xe = () => K, Je = (e) => {
522
+ b !== void 0 && (b.id = e);
523
+ }, Ze = (e) => {
524
+ b !== void 0 && (b.text = e);
525
+ }, et = (e) => {
526
+ b !== void 0 && (b.risk = e);
527
+ }, tt = (e) => {
528
+ b !== void 0 && (b.verifyMethod = e);
529
+ }, it = (e) => (G[e] === void 0 && (G[e] = {
530
+ name: e,
531
+ type: q.type,
532
+ docRef: q.docRef
533
+ }, Ne.info("Added new requirement: ", e)), q = {}, G[e]), nt = () => G, rt = (e) => {
534
+ q !== void 0 && (q.type = e);
535
+ }, st = (e) => {
536
+ q !== void 0 && (q.docRef = e);
537
+ }, at = (e, t, l) => {
538
+ ue.push({
539
+ type: e,
540
+ src: t,
541
+ dst: l
542
+ });
543
+ }, lt = () => ue, ot = () => {
544
+ ue = [], b = {}, K = {}, q = {}, G = {}, Pe();
545
+ }, ct = {
546
+ RequirementType: We,
547
+ RiskLevel: Ke,
548
+ VerifyType: Ge,
549
+ Relationships: je,
550
+ getConfig: () => Te().req,
551
+ addRequirement: ze,
552
+ getRequirements: Xe,
553
+ setNewReqId: Je,
554
+ setNewReqText: Ze,
555
+ setNewReqRisk: et,
556
+ setNewReqVerifyMethod: tt,
557
+ setAccTitle: Ce,
558
+ getAccTitle: Fe,
559
+ setAccDescription: Me,
560
+ getAccDescription: De,
561
+ addElement: it,
562
+ getElements: nt,
563
+ setNewElementType: rt,
564
+ setNewElementDocRef: st,
565
+ addRelationship: at,
566
+ getRelationships: lt,
567
+ clear: ot
568
+ }, ht = (e) => `
569
+
570
+ marker {
571
+ fill: ${e.relationColor};
572
+ stroke: ${e.relationColor};
573
+ }
574
+
575
+ marker.cross {
576
+ stroke: ${e.lineColor};
577
+ }
578
+
579
+ svg {
580
+ font-family: ${e.fontFamily};
581
+ font-size: ${e.fontSize};
582
+ }
583
+
584
+ .reqBox {
585
+ fill: ${e.requirementBackground};
586
+ fill-opacity: 1.0;
587
+ stroke: ${e.requirementBorderColor};
588
+ stroke-width: ${e.requirementBorderSize};
589
+ }
590
+
591
+ .reqTitle, .reqLabel{
592
+ fill: ${e.requirementTextColor};
593
+ }
594
+ .reqLabelBox {
595
+ fill: ${e.relationLabelBackground};
596
+ fill-opacity: 1.0;
597
+ }
598
+
599
+ .req-title-line {
600
+ stroke: ${e.requirementBorderColor};
601
+ stroke-width: ${e.requirementBorderSize};
602
+ }
603
+ .relationshipLine {
604
+ stroke: ${e.relationColor};
605
+ stroke-width: 1;
606
+ }
607
+ .relationshipLabel {
608
+ fill: ${e.relationLabelColor};
609
+ }
610
+
611
+ `, ut = ht, he = {
612
+ CONTAINS: "contains",
613
+ ARROW: "arrow"
614
+ }, dt = (e, t) => {
615
+ let l = e.append("defs").append("marker").attr("id", he.CONTAINS + "_line_ending").attr("refX", 0).attr("refY", t.line_height / 2).attr("markerWidth", t.line_height).attr("markerHeight", t.line_height).attr("orient", "auto").append("g");
616
+ l.append("circle").attr("cx", t.line_height / 2).attr("cy", t.line_height / 2).attr("r", t.line_height / 2).attr("fill", "none"), l.append("line").attr("x1", 0).attr("x2", t.line_height).attr("y1", t.line_height / 2).attr("y2", t.line_height / 2).attr("stroke-width", 1), l.append("line").attr("y1", 0).attr("y2", t.line_height).attr("x1", t.line_height / 2).attr("x2", t.line_height / 2).attr("stroke-width", 1), e.append("defs").append("marker").attr("id", he.ARROW + "_line_ending").attr("refX", t.line_height).attr("refY", 0.5 * t.line_height).attr("markerWidth", t.line_height).attr("markerHeight", t.line_height).attr("orient", "auto").append("path").attr(
617
+ "d",
618
+ `M0,0
619
+ L${t.line_height},${t.line_height / 2}
620
+ M${t.line_height},${t.line_height / 2}
621
+ L0,${t.line_height}`
622
+ ).attr("stroke-width", 1);
623
+ }, xe = {
624
+ ReqMarkers: he,
625
+ insertLineEndings: dt
626
+ };
627
+ let y = {}, Se = 0;
628
+ const Ae = (e, t) => e.insert("rect", "#" + t).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", y.rect_min_width + "px").attr("height", y.rect_min_height + "px"), we = (e, t, l) => {
629
+ let c = y.rect_min_width / 2, u = e.append("text").attr("class", "req reqLabel reqTitle").attr("id", t).attr("x", c).attr("y", y.rect_padding).attr("dominant-baseline", "hanging"), d = 0;
630
+ l.forEach((E) => {
631
+ d == 0 ? u.append("tspan").attr("text-anchor", "middle").attr("x", y.rect_min_width / 2).attr("dy", 0).text(E) : u.append("tspan").attr("text-anchor", "middle").attr("x", y.rect_min_width / 2).attr("dy", y.line_height * 0.75).text(E), d++;
632
+ });
633
+ let f = 1.5 * y.rect_padding, h = d * y.line_height * 0.75, o = f + h;
634
+ return e.append("line").attr("class", "req-title-line").attr("x1", "0").attr("x2", y.rect_min_width).attr("y1", o).attr("y2", o), {
635
+ titleNode: u,
636
+ y: o
637
+ };
638
+ }, $e = (e, t, l, c) => {
639
+ let u = e.append("text").attr("class", "req reqLabel").attr("id", t).attr("x", y.rect_padding).attr("y", c).attr("dominant-baseline", "hanging"), d = 0;
640
+ const f = 30;
641
+ let h = [];
642
+ return l.forEach((o) => {
643
+ let E = o.length;
644
+ for (; E > f && d < 3; ) {
645
+ let R = o.substring(0, f);
646
+ o = o.substring(f, o.length), E = o.length, h[h.length] = R, d++;
647
+ }
648
+ if (d == 3) {
649
+ let R = h[h.length - 1];
650
+ h[h.length - 1] = R.substring(0, R.length - 4) + "...";
651
+ } else
652
+ h[h.length] = o;
653
+ d = 0;
654
+ }), h.forEach((o) => {
655
+ u.append("tspan").attr("x", y.rect_padding).attr("dy", y.line_height).text(o);
656
+ }), u;
657
+ }, ft = (e, t, l, c) => {
658
+ const u = t.node().getTotalLength(), d = t.node().getPointAtLength(u * 0.5), f = "rel" + Se;
659
+ Se++;
660
+ const o = e.append("text").attr("class", "req relationshipLabel").attr("id", f).attr("x", d.x).attr("y", d.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(c).node().getBBox();
661
+ e.insert("rect", "#" + f).attr("class", "req reqLabelBox").attr("x", d.x - o.width / 2).attr("y", d.y - o.height / 2).attr("width", o.width).attr("height", o.height).attr("fill", "white").attr("fill-opacity", "85%");
662
+ }, pt = function(e, t, l, c, u) {
663
+ const d = l.edge(H(t.src), H(t.dst)), f = Qe().x(function(o) {
664
+ return o.x;
665
+ }).y(function(o) {
666
+ return o.y;
667
+ }), h = e.insert("path", "#" + c).attr("class", "er relationshipLine").attr("d", f(d.points)).attr("fill", "none");
668
+ t.type == u.db.Relationships.CONTAINS ? h.attr(
669
+ "marker-start",
670
+ "url(" + ke.getUrl(y.arrowMarkerAbsolute) + "#" + t.type + "_line_ending)"
671
+ ) : (h.attr("stroke-dasharray", "10,7"), h.attr(
672
+ "marker-end",
673
+ "url(" + ke.getUrl(y.arrowMarkerAbsolute) + "#" + xe.ReqMarkers.ARROW + "_line_ending)"
674
+ )), ft(e, h, y, `<<${t.type}>>`);
675
+ }, yt = (e, t, l) => {
676
+ Object.keys(e).forEach((c) => {
677
+ let u = e[c];
678
+ c = H(c), Ne.info("Added new requirement: ", c);
679
+ const d = l.append("g").attr("id", c), f = "req-" + c, h = Ae(d, f);
680
+ let o = we(d, c + "_title", [
681
+ `<<${u.type}>>`,
682
+ `${u.name}`
683
+ ]);
684
+ $e(
685
+ d,
686
+ c + "_body",
687
+ [
688
+ `Id: ${u.id}`,
689
+ `Text: ${u.text}`,
690
+ `Risk: ${u.risk}`,
691
+ `Verification: ${u.verifyMethod}`
692
+ ],
693
+ o.y
694
+ );
695
+ const E = h.node().getBBox();
696
+ t.setNode(c, {
697
+ width: E.width,
698
+ height: E.height,
699
+ shape: "rect",
700
+ id: c
701
+ });
702
+ });
703
+ }, _t = (e, t, l) => {
704
+ Object.keys(e).forEach((c) => {
705
+ let u = e[c];
706
+ const d = H(c), f = l.append("g").attr("id", d), h = "element-" + d, o = Ae(f, h);
707
+ let E = we(f, h + "_title", ["<<Element>>", `${c}`]);
708
+ $e(
709
+ f,
710
+ h + "_body",
711
+ [`Type: ${u.type || "Not Specified"}`, `Doc Ref: ${u.docRef || "None"}`],
712
+ E.y
713
+ );
714
+ const R = o.node().getBBox();
715
+ t.setNode(d, {
716
+ width: R.width,
717
+ height: R.height,
718
+ shape: "rect",
719
+ id: d
720
+ });
721
+ });
722
+ }, Et = (e, t) => (e.forEach(function(l) {
723
+ let c = H(l.src), u = H(l.dst);
724
+ t.setEdge(c, u, { relationship: l });
725
+ }), e), gt = function(e, t) {
726
+ t.nodes().forEach(function(l) {
727
+ l !== void 0 && t.node(l) !== void 0 && (e.select("#" + l), e.select("#" + l).attr(
728
+ "transform",
729
+ "translate(" + (t.node(l).x - t.node(l).width / 2) + "," + (t.node(l).y - t.node(l).height / 2) + " )"
730
+ ));
731
+ });
732
+ }, H = (e) => e.replace(/\s/g, "").replace(/\./g, "_"), Rt = (e, t, l, c) => {
733
+ y = Te().requirement;
734
+ const u = y.securityLevel;
735
+ let d;
736
+ u === "sandbox" && (d = oe("#i" + t));
737
+ const h = (u === "sandbox" ? oe(d.nodes()[0].contentDocument.body) : oe("body")).select(`[id='${t}']`);
738
+ xe.insertLineEndings(h, y);
739
+ const o = new Ue({
740
+ multigraph: !1,
741
+ compound: !1,
742
+ directed: !0
743
+ }).setGraph({
744
+ rankdir: y.layoutDirection,
745
+ marginx: 20,
746
+ marginy: 20,
747
+ nodesep: 100,
748
+ edgesep: 100,
749
+ ranksep: 100
750
+ }).setDefaultEdgeLabel(function() {
751
+ return {};
752
+ });
753
+ let E = c.db.getRequirements(), R = c.db.getElements(), A = c.db.getRelationships();
754
+ yt(E, o, h), _t(R, o, h), Et(A, o), Be(o), gt(h, o), A.forEach(function(x) {
755
+ pt(h, x, o, t, c);
756
+ });
757
+ const T = y.rect_padding, N = h.node().getBBox(), w = N.width + T * 2, k = N.height + T * 2;
758
+ Ye(h, k, w, y.useMaxWidth), h.attr("viewBox", `${N.x - T} ${N.y - T} ${w} ${k}`);
759
+ }, mt = {
760
+ draw: Rt
761
+ }, xt = {
762
+ parser: He,
763
+ db: ct,
764
+ renderer: mt,
765
+ styles: ut
766
+ };
767
+ export {
768
+ xt as diagram
769
+ };