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,960 @@
1
+ import { c as Y, g as Ut, s as zt, a as Mt, b as Ht, C as Xt, D as Kt, l as D, f as ot, E as Wt, a7 as Jt } from "./mermaid-9f2aa176.js";
2
+ var gt = function() {
3
+ var t = function(C, r, n, i) {
4
+ for (n = n || {}, i = C.length; i--; n[C[i]] = r)
5
+ ;
6
+ return n;
7
+ }, s = [1, 2], a = [1, 3], h = [1, 4], f = [2, 4], d = [1, 9], y = [1, 11], k = [1, 15], u = [1, 16], E = [1, 17], T = [1, 18], R = [1, 30], G = [1, 19], j = [1, 20], U = [1, 21], z = [1, 22], M = [1, 23], H = [1, 25], X = [1, 26], K = [1, 27], W = [1, 28], J = [1, 29], q = [1, 32], Q = [1, 33], Z = [1, 34], tt = [1, 35], w = [1, 31], c = [1, 4, 5, 15, 16, 18, 20, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], et = [1, 4, 5, 13, 14, 15, 16, 18, 20, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], Dt = [4, 5, 15, 16, 18, 20, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], ht = {
8
+ trace: function() {
9
+ },
10
+ yy: {},
11
+ symbols_: { error: 2, start: 3, SPACE: 4, NL: 5, SD: 6, document: 7, line: 8, statement: 9, classDefStatement: 10, cssClassStatement: 11, idStatement: 12, DESCR: 13, "-->": 14, HIDE_EMPTY: 15, scale: 16, WIDTH: 17, COMPOSIT_STATE: 18, STRUCT_START: 19, STRUCT_STOP: 20, STATE_DESCR: 21, AS: 22, ID: 23, FORK: 24, JOIN: 25, CHOICE: 26, CONCURRENT: 27, note: 28, notePosition: 29, NOTE_TEXT: 30, direction: 31, acc_title: 32, acc_title_value: 33, acc_descr: 34, acc_descr_value: 35, acc_descr_multiline_value: 36, classDef: 37, CLASSDEF_ID: 38, CLASSDEF_STYLEOPTS: 39, DEFAULT: 40, class: 41, CLASSENTITY_IDS: 42, STYLECLASS: 43, direction_tb: 44, direction_bt: 45, direction_rl: 46, direction_lr: 47, eol: 48, ";": 49, EDGE_STATE: 50, STYLE_SEPARATOR: 51, left_of: 52, right_of: 53, $accept: 0, $end: 1 },
12
+ terminals_: { 2: "error", 4: "SPACE", 5: "NL", 6: "SD", 13: "DESCR", 14: "-->", 15: "HIDE_EMPTY", 16: "scale", 17: "WIDTH", 18: "COMPOSIT_STATE", 19: "STRUCT_START", 20: "STRUCT_STOP", 21: "STATE_DESCR", 22: "AS", 23: "ID", 24: "FORK", 25: "JOIN", 26: "CHOICE", 27: "CONCURRENT", 28: "note", 30: "NOTE_TEXT", 32: "acc_title", 33: "acc_title_value", 34: "acc_descr", 35: "acc_descr_value", 36: "acc_descr_multiline_value", 37: "classDef", 38: "CLASSDEF_ID", 39: "CLASSDEF_STYLEOPTS", 40: "DEFAULT", 41: "class", 42: "CLASSENTITY_IDS", 43: "STYLECLASS", 44: "direction_tb", 45: "direction_bt", 46: "direction_rl", 47: "direction_lr", 49: ";", 50: "EDGE_STATE", 51: "STYLE_SEPARATOR", 52: "left_of", 53: "right_of" },
13
+ productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 3], [9, 4], [9, 1], [9, 2], [9, 1], [9, 4], [9, 3], [9, 6], [9, 1], [9, 1], [9, 1], [9, 1], [9, 4], [9, 4], [9, 1], [9, 2], [9, 2], [9, 1], [10, 3], [10, 3], [11, 3], [31, 1], [31, 1], [31, 1], [31, 1], [48, 1], [48, 1], [12, 1], [12, 1], [12, 3], [12, 3], [29, 1], [29, 1]],
14
+ performAction: function(r, n, i, o, p, e, $) {
15
+ var l = e.length - 1;
16
+ switch (p) {
17
+ case 3:
18
+ return o.setRootDoc(e[l]), e[l];
19
+ case 4:
20
+ this.$ = [];
21
+ break;
22
+ case 5:
23
+ e[l] != "nl" && (e[l - 1].push(e[l]), this.$ = e[l - 1]);
24
+ break;
25
+ case 6:
26
+ case 7:
27
+ this.$ = e[l];
28
+ break;
29
+ case 8:
30
+ this.$ = "nl";
31
+ break;
32
+ case 11:
33
+ this.$ = e[l];
34
+ break;
35
+ case 12:
36
+ const B = e[l - 1];
37
+ B.description = o.trimColon(e[l]), this.$ = B;
38
+ break;
39
+ case 13:
40
+ this.$ = { stmt: "relation", state1: e[l - 2], state2: e[l] };
41
+ break;
42
+ case 14:
43
+ const ft = o.trimColon(e[l]);
44
+ this.$ = { stmt: "relation", state1: e[l - 3], state2: e[l - 1], description: ft };
45
+ break;
46
+ case 18:
47
+ this.$ = { stmt: "state", id: e[l - 3], type: "default", description: "", doc: e[l - 1] };
48
+ break;
49
+ case 19:
50
+ var A = e[l], O = e[l - 2].trim();
51
+ if (e[l].match(":")) {
52
+ var st = e[l].split(":");
53
+ A = st[0], O = [O, st[1]];
54
+ }
55
+ this.$ = { stmt: "state", id: A, type: "default", description: O };
56
+ break;
57
+ case 20:
58
+ this.$ = { stmt: "state", id: e[l - 3], type: "default", description: e[l - 5], doc: e[l - 1] };
59
+ break;
60
+ case 21:
61
+ this.$ = { stmt: "state", id: e[l], type: "fork" };
62
+ break;
63
+ case 22:
64
+ this.$ = { stmt: "state", id: e[l], type: "join" };
65
+ break;
66
+ case 23:
67
+ this.$ = { stmt: "state", id: e[l], type: "choice" };
68
+ break;
69
+ case 24:
70
+ this.$ = { stmt: "state", id: o.getDividerId(), type: "divider" };
71
+ break;
72
+ case 25:
73
+ this.$ = { stmt: "state", id: e[l - 1].trim(), note: { position: e[l - 2].trim(), text: e[l].trim() } };
74
+ break;
75
+ case 28:
76
+ this.$ = e[l].trim(), o.setAccTitle(this.$);
77
+ break;
78
+ case 29:
79
+ case 30:
80
+ this.$ = e[l].trim(), o.setAccDescription(this.$);
81
+ break;
82
+ case 31:
83
+ case 32:
84
+ this.$ = { stmt: "classDef", id: e[l - 1].trim(), classes: e[l].trim() };
85
+ break;
86
+ case 33:
87
+ this.$ = { stmt: "applyClass", id: e[l - 1].trim(), styleClass: e[l].trim() };
88
+ break;
89
+ case 34:
90
+ o.setDirection("TB"), this.$ = { stmt: "dir", value: "TB" };
91
+ break;
92
+ case 35:
93
+ o.setDirection("BT"), this.$ = { stmt: "dir", value: "BT" };
94
+ break;
95
+ case 36:
96
+ o.setDirection("RL"), this.$ = { stmt: "dir", value: "RL" };
97
+ break;
98
+ case 37:
99
+ o.setDirection("LR"), this.$ = { stmt: "dir", value: "LR" };
100
+ break;
101
+ case 40:
102
+ case 41:
103
+ this.$ = { stmt: "state", id: e[l].trim(), type: "default", description: "" };
104
+ break;
105
+ case 42:
106
+ this.$ = { stmt: "state", id: e[l - 2].trim(), classes: [e[l].trim()], type: "default", description: "" };
107
+ break;
108
+ case 43:
109
+ this.$ = { stmt: "state", id: e[l - 2].trim(), classes: [e[l].trim()], type: "default", description: "" };
110
+ break;
111
+ }
112
+ },
113
+ table: [{ 3: 1, 4: s, 5: a, 6: h }, { 1: [3] }, { 3: 5, 4: s, 5: a, 6: h }, { 3: 6, 4: s, 5: a, 6: h }, t([1, 4, 5, 15, 16, 18, 21, 23, 24, 25, 26, 27, 28, 32, 34, 36, 37, 41, 44, 45, 46, 47, 50], f, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: k, 16: u, 18: E, 21: T, 23: R, 24: G, 25: j, 26: U, 27: z, 28: M, 31: 24, 32: H, 34: X, 36: K, 37: W, 41: J, 44: q, 45: Q, 46: Z, 47: tt, 50: w }, t(c, [2, 5]), { 9: 36, 10: 12, 11: 13, 12: 14, 15: k, 16: u, 18: E, 21: T, 23: R, 24: G, 25: j, 26: U, 27: z, 28: M, 31: 24, 32: H, 34: X, 36: K, 37: W, 41: J, 44: q, 45: Q, 46: Z, 47: tt, 50: w }, t(c, [2, 7]), t(c, [2, 8]), t(c, [2, 9]), t(c, [2, 10]), t(c, [2, 11], { 13: [1, 37], 14: [1, 38] }), t(c, [2, 15]), { 17: [1, 39] }, t(c, [2, 17], { 19: [1, 40] }), { 22: [1, 41] }, t(c, [2, 21]), t(c, [2, 22]), t(c, [2, 23]), t(c, [2, 24]), { 29: 42, 30: [1, 43], 52: [1, 44], 53: [1, 45] }, t(c, [2, 27]), { 33: [1, 46] }, { 35: [1, 47] }, t(c, [2, 30]), { 38: [1, 48], 40: [1, 49] }, { 42: [1, 50] }, t(et, [2, 40], { 51: [1, 51] }), t(et, [2, 41], { 51: [1, 52] }), t(c, [2, 34]), t(c, [2, 35]), t(c, [2, 36]), t(c, [2, 37]), t(c, [2, 6]), t(c, [2, 12]), { 12: 53, 23: R, 50: w }, t(c, [2, 16]), t(Dt, f, { 7: 54 }), { 23: [1, 55] }, { 23: [1, 56] }, { 22: [1, 57] }, { 23: [2, 44] }, { 23: [2, 45] }, t(c, [2, 28]), t(c, [2, 29]), { 39: [1, 58] }, { 39: [1, 59] }, { 43: [1, 60] }, { 23: [1, 61] }, { 23: [1, 62] }, t(c, [2, 13], { 13: [1, 63] }), { 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: k, 16: u, 18: E, 20: [1, 64], 21: T, 23: R, 24: G, 25: j, 26: U, 27: z, 28: M, 31: 24, 32: H, 34: X, 36: K, 37: W, 41: J, 44: q, 45: Q, 46: Z, 47: tt, 50: w }, t(c, [2, 19], { 19: [1, 65] }), { 30: [1, 66] }, { 23: [1, 67] }, t(c, [2, 31]), t(c, [2, 32]), t(c, [2, 33]), t(et, [2, 42]), t(et, [2, 43]), t(c, [2, 14]), t(c, [2, 18]), t(Dt, f, { 7: 68 }), t(c, [2, 25]), t(c, [2, 26]), { 4: d, 5: y, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 15: k, 16: u, 18: E, 20: [1, 69], 21: T, 23: R, 24: G, 25: j, 26: U, 27: z, 28: M, 31: 24, 32: H, 34: X, 36: K, 37: W, 41: J, 44: q, 45: Q, 46: Z, 47: tt, 50: w }, t(c, [2, 20])],
114
+ defaultActions: { 5: [2, 1], 6: [2, 2], 44: [2, 44], 45: [2, 45] },
115
+ parseError: function(r, n) {
116
+ if (n.recoverable)
117
+ this.trace(r);
118
+ else {
119
+ var i = new Error(r);
120
+ throw i.hash = n, i;
121
+ }
122
+ },
123
+ parse: function(r) {
124
+ var n = this, i = [0], o = [], p = [null], e = [], $ = this.table, l = "", A = 0, O = 0, st = 2, B = 1, ft = e.slice.call(arguments, 1), S = Object.create(this.lexer), L = { yy: {} };
125
+ for (var dt in this.yy)
126
+ Object.prototype.hasOwnProperty.call(this.yy, dt) && (L.yy[dt] = this.yy[dt]);
127
+ S.setInput(r, L.yy), L.yy.lexer = S, L.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
128
+ var yt = S.yylloc;
129
+ e.push(yt);
130
+ var Gt = S.options && S.options.ranges;
131
+ typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
132
+ function jt() {
133
+ var x;
134
+ return x = o.pop() || S.lex() || B, typeof x != "number" && (x instanceof Array && (o = x, x = o.pop()), x = n.symbols_[x] || x), x;
135
+ }
136
+ for (var _, v, m, pt, N = {}, it, b, Ct, rt; ; ) {
137
+ if (v = i[i.length - 1], this.defaultActions[v] ? m = this.defaultActions[v] : ((_ === null || typeof _ > "u") && (_ = jt()), m = $[v] && $[v][_]), typeof m > "u" || !m.length || !m[0]) {
138
+ var St = "";
139
+ rt = [];
140
+ for (it in $[v])
141
+ this.terminals_[it] && it > st && rt.push("'" + this.terminals_[it] + "'");
142
+ S.showPosition ? St = "Parse error on line " + (A + 1) + `:
143
+ ` + S.showPosition() + `
144
+ Expecting ` + rt.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : St = "Parse error on line " + (A + 1) + ": Unexpected " + (_ == B ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(St, {
145
+ text: S.match,
146
+ token: this.terminals_[_] || _,
147
+ line: S.yylineno,
148
+ loc: yt,
149
+ expected: rt
150
+ });
151
+ }
152
+ if (m[0] instanceof Array && m.length > 1)
153
+ throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + _);
154
+ switch (m[0]) {
155
+ case 1:
156
+ i.push(_), p.push(S.yytext), e.push(S.yylloc), i.push(m[1]), _ = null, O = S.yyleng, l = S.yytext, A = S.yylineno, yt = S.yylloc;
157
+ break;
158
+ case 2:
159
+ if (b = this.productions_[m[1]][1], N.$ = p[p.length - b], N._$ = {
160
+ first_line: e[e.length - (b || 1)].first_line,
161
+ last_line: e[e.length - 1].last_line,
162
+ first_column: e[e.length - (b || 1)].first_column,
163
+ last_column: e[e.length - 1].last_column
164
+ }, Gt && (N._$.range = [
165
+ e[e.length - (b || 1)].range[0],
166
+ e[e.length - 1].range[1]
167
+ ]), pt = this.performAction.apply(N, [
168
+ l,
169
+ O,
170
+ A,
171
+ L.yy,
172
+ m[1],
173
+ p,
174
+ e
175
+ ].concat(ft)), typeof pt < "u")
176
+ return pt;
177
+ b && (i = i.slice(0, -1 * b * 2), p = p.slice(0, -1 * b), e = e.slice(0, -1 * b)), i.push(this.productions_[m[1]][0]), p.push(N.$), e.push(N._$), Ct = $[i[i.length - 2]][i[i.length - 1]], i.push(Ct);
178
+ break;
179
+ case 3:
180
+ return !0;
181
+ }
182
+ }
183
+ return !0;
184
+ }
185
+ }, Yt = function() {
186
+ var C = {
187
+ EOF: 1,
188
+ parseError: function(n, i) {
189
+ if (this.yy.parser)
190
+ this.yy.parser.parseError(n, i);
191
+ else
192
+ throw new Error(n);
193
+ },
194
+ // resets the lexer, sets new input
195
+ setInput: function(r, n) {
196
+ return this.yy = n || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
197
+ first_line: 1,
198
+ first_column: 0,
199
+ last_line: 1,
200
+ last_column: 0
201
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
202
+ },
203
+ // consumes and returns one char from the input
204
+ input: function() {
205
+ var r = this._input[0];
206
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
207
+ var n = r.match(/(?:\r\n?|\n).*/g);
208
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
209
+ },
210
+ // unshifts one char (or a string) into the input
211
+ unput: function(r) {
212
+ var n = r.length, i = r.split(/(?:\r\n?|\n)/g);
213
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
214
+ var o = this.match.split(/(?:\r\n?|\n)/g);
215
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), i.length - 1 && (this.yylineno -= i.length - 1);
216
+ var p = this.yylloc.range;
217
+ return this.yylloc = {
218
+ first_line: this.yylloc.first_line,
219
+ last_line: this.yylineno + 1,
220
+ first_column: this.yylloc.first_column,
221
+ last_column: i ? (i.length === o.length ? this.yylloc.first_column : 0) + o[o.length - i.length].length - i[0].length : this.yylloc.first_column - n
222
+ }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
223
+ },
224
+ // When called from action, caches matched text and appends it on next action
225
+ more: function() {
226
+ return this._more = !0, this;
227
+ },
228
+ // 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.
229
+ reject: function() {
230
+ if (this.options.backtrack_lexer)
231
+ this._backtrack = !0;
232
+ else
233
+ 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).
234
+ ` + this.showPosition(), {
235
+ text: "",
236
+ token: null,
237
+ line: this.yylineno
238
+ });
239
+ return this;
240
+ },
241
+ // retain first n characters of the match
242
+ less: function(r) {
243
+ this.unput(this.match.slice(r));
244
+ },
245
+ // displays already matched input, i.e. for error messages
246
+ pastInput: function() {
247
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
248
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
249
+ },
250
+ // displays upcoming input, i.e. for error messages
251
+ upcomingInput: function() {
252
+ var r = this.match;
253
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
254
+ },
255
+ // displays the character position where the lexing error occurred, i.e. for error messages
256
+ showPosition: function() {
257
+ var r = this.pastInput(), n = new Array(r.length + 1).join("-");
258
+ return r + this.upcomingInput() + `
259
+ ` + n + "^";
260
+ },
261
+ // test the lexed token: return FALSE when not a match, otherwise return token
262
+ test_match: function(r, n) {
263
+ var i, o, p;
264
+ if (this.options.backtrack_lexer && (p = {
265
+ yylineno: this.yylineno,
266
+ yylloc: {
267
+ first_line: this.yylloc.first_line,
268
+ last_line: this.last_line,
269
+ first_column: this.yylloc.first_column,
270
+ last_column: this.yylloc.last_column
271
+ },
272
+ yytext: this.yytext,
273
+ match: this.match,
274
+ matches: this.matches,
275
+ matched: this.matched,
276
+ yyleng: this.yyleng,
277
+ offset: this.offset,
278
+ _more: this._more,
279
+ _input: this._input,
280
+ yy: this.yy,
281
+ conditionStack: this.conditionStack.slice(0),
282
+ done: this.done
283
+ }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), o = r[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
284
+ first_line: this.yylloc.last_line,
285
+ last_line: this.yylineno + 1,
286
+ first_column: this.yylloc.last_column,
287
+ last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
288
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], i = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), i)
289
+ return i;
290
+ if (this._backtrack) {
291
+ for (var e in p)
292
+ this[e] = p[e];
293
+ return !1;
294
+ }
295
+ return !1;
296
+ },
297
+ // return next match in input
298
+ next: function() {
299
+ if (this.done)
300
+ return this.EOF;
301
+ this._input || (this.done = !0);
302
+ var r, n, i, o;
303
+ this._more || (this.yytext = "", this.match = "");
304
+ for (var p = this._currentRules(), e = 0; e < p.length; e++)
305
+ if (i = this._input.match(this.rules[p[e]]), i && (!n || i[0].length > n[0].length)) {
306
+ if (n = i, o = e, this.options.backtrack_lexer) {
307
+ if (r = this.test_match(i, p[e]), r !== !1)
308
+ return r;
309
+ if (this._backtrack) {
310
+ n = !1;
311
+ continue;
312
+ } else
313
+ return !1;
314
+ } else if (!this.options.flex)
315
+ break;
316
+ }
317
+ return n ? (r = this.test_match(n, p[o]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
318
+ ` + this.showPosition(), {
319
+ text: "",
320
+ token: null,
321
+ line: this.yylineno
322
+ });
323
+ },
324
+ // return next match that has a token
325
+ lex: function() {
326
+ var n = this.next();
327
+ return n || this.lex();
328
+ },
329
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
330
+ begin: function(n) {
331
+ this.conditionStack.push(n);
332
+ },
333
+ // pop the previously active lexer condition state off the condition stack
334
+ popState: function() {
335
+ var n = this.conditionStack.length - 1;
336
+ return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
337
+ },
338
+ // produce the lexer rule set which is active for the currently active lexer condition state
339
+ _currentRules: function() {
340
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
341
+ },
342
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
343
+ topState: function(n) {
344
+ return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
345
+ },
346
+ // alias for begin(condition)
347
+ pushState: function(n) {
348
+ this.begin(n);
349
+ },
350
+ // return the number of states currently on the stack
351
+ stateStackSize: function() {
352
+ return this.conditionStack.length;
353
+ },
354
+ options: { "case-insensitive": !0 },
355
+ performAction: function(n, i, o, p) {
356
+ switch (o) {
357
+ case 0:
358
+ return 40;
359
+ case 1:
360
+ return 44;
361
+ case 2:
362
+ return 45;
363
+ case 3:
364
+ return 46;
365
+ case 4:
366
+ return 47;
367
+ case 5:
368
+ break;
369
+ case 6:
370
+ break;
371
+ case 7:
372
+ return 5;
373
+ case 8:
374
+ break;
375
+ case 9:
376
+ break;
377
+ case 10:
378
+ break;
379
+ case 11:
380
+ break;
381
+ case 12:
382
+ return this.pushState("SCALE"), 16;
383
+ case 13:
384
+ return 17;
385
+ case 14:
386
+ this.popState();
387
+ break;
388
+ case 15:
389
+ return this.begin("acc_title"), 32;
390
+ case 16:
391
+ return this.popState(), "acc_title_value";
392
+ case 17:
393
+ return this.begin("acc_descr"), 34;
394
+ case 18:
395
+ return this.popState(), "acc_descr_value";
396
+ case 19:
397
+ this.begin("acc_descr_multiline");
398
+ break;
399
+ case 20:
400
+ this.popState();
401
+ break;
402
+ case 21:
403
+ return "acc_descr_multiline_value";
404
+ case 22:
405
+ return this.pushState("CLASSDEF"), 37;
406
+ case 23:
407
+ return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
408
+ case 24:
409
+ return this.popState(), this.pushState("CLASSDEFID"), 38;
410
+ case 25:
411
+ return this.popState(), 39;
412
+ case 26:
413
+ return this.pushState("CLASS"), 41;
414
+ case 27:
415
+ return this.popState(), this.pushState("CLASS_STYLE"), 42;
416
+ case 28:
417
+ return this.popState(), 43;
418
+ case 29:
419
+ return this.pushState("SCALE"), 16;
420
+ case 30:
421
+ return 17;
422
+ case 31:
423
+ this.popState();
424
+ break;
425
+ case 32:
426
+ this.pushState("STATE");
427
+ break;
428
+ case 33:
429
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 24;
430
+ case 34:
431
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 25;
432
+ case 35:
433
+ return this.popState(), i.yytext = i.yytext.slice(0, -10).trim(), 26;
434
+ case 36:
435
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 24;
436
+ case 37:
437
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 25;
438
+ case 38:
439
+ return this.popState(), i.yytext = i.yytext.slice(0, -10).trim(), 26;
440
+ case 39:
441
+ return 44;
442
+ case 40:
443
+ return 45;
444
+ case 41:
445
+ return 46;
446
+ case 42:
447
+ return 47;
448
+ case 43:
449
+ this.pushState("STATE_STRING");
450
+ break;
451
+ case 44:
452
+ return this.pushState("STATE_ID"), "AS";
453
+ case 45:
454
+ return this.popState(), "ID";
455
+ case 46:
456
+ this.popState();
457
+ break;
458
+ case 47:
459
+ return "STATE_DESCR";
460
+ case 48:
461
+ return 18;
462
+ case 49:
463
+ this.popState();
464
+ break;
465
+ case 50:
466
+ return this.popState(), this.pushState("struct"), 19;
467
+ case 51:
468
+ break;
469
+ case 52:
470
+ return this.popState(), 20;
471
+ case 53:
472
+ break;
473
+ case 54:
474
+ return this.begin("NOTE"), 28;
475
+ case 55:
476
+ return this.popState(), this.pushState("NOTE_ID"), 52;
477
+ case 56:
478
+ return this.popState(), this.pushState("NOTE_ID"), 53;
479
+ case 57:
480
+ this.popState(), this.pushState("FLOATING_NOTE");
481
+ break;
482
+ case 58:
483
+ return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
484
+ case 59:
485
+ break;
486
+ case 60:
487
+ return "NOTE_TEXT";
488
+ case 61:
489
+ return this.popState(), "ID";
490
+ case 62:
491
+ return this.popState(), this.pushState("NOTE_TEXT"), 23;
492
+ case 63:
493
+ return this.popState(), i.yytext = i.yytext.substr(2).trim(), 30;
494
+ case 64:
495
+ return this.popState(), i.yytext = i.yytext.slice(0, -8).trim(), 30;
496
+ case 65:
497
+ return 6;
498
+ case 66:
499
+ return 6;
500
+ case 67:
501
+ return 15;
502
+ case 68:
503
+ return 50;
504
+ case 69:
505
+ return 23;
506
+ case 70:
507
+ return i.yytext = i.yytext.trim(), 13;
508
+ case 71:
509
+ return 14;
510
+ case 72:
511
+ return 27;
512
+ case 73:
513
+ return 51;
514
+ case 74:
515
+ return 5;
516
+ case 75:
517
+ return "INVALID";
518
+ }
519
+ },
520
+ rules: [/^(?:default\b)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:[\s]+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:classDef\s+)/i, /^(?:DEFAULT\s+)/i, /^(?:\w+\s+)/i, /^(?:[^\n]*)/i, /^(?:class\s+)/i, /^(?:(\w+)+((,\s*\w+)*))/i, /^(?:[^\n]*)/i, /^(?:scale\s+)/i, /^(?:\d+)/i, /^(?:\s+width\b)/i, /^(?:state\s+)/i, /^(?:.*<<fork>>)/i, /^(?:.*<<join>>)/i, /^(?:.*<<choice>>)/i, /^(?:.*\[\[fork\]\])/i, /^(?:.*\[\[join\]\])/i, /^(?:.*\[\[choice\]\])/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:["])/i, /^(?:\s*as\s+)/i, /^(?:[^\n\{]*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n\s\{]+)/i, /^(?:\n)/i, /^(?:\{)/i, /^(?:%%(?!\{)[^\n]*)/i, /^(?:\})/i, /^(?:[\n])/i, /^(?:note\s+)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:")/i, /^(?:\s*as\s*)/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[^\n]*)/i, /^(?:\s*[^:\n\s\-]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:[\s\S]*?end note\b)/i, /^(?:stateDiagram\s+)/i, /^(?:stateDiagram-v2\s+)/i, /^(?:hide empty description\b)/i, /^(?:\[\*\])/i, /^(?:[^:\n\s\-\{]+)/i, /^(?:\s*:[^:\n;]+)/i, /^(?:-->)/i, /^(?:--)/i, /^(?::::)/i, /^(?:$)/i, /^(?:.)/i],
521
+ conditions: { LINE: { rules: [9, 10], inclusive: !1 }, struct: { rules: [9, 10, 22, 26, 32, 39, 40, 41, 42, 51, 52, 53, 54, 68, 69, 70, 71, 72], inclusive: !1 }, FLOATING_NOTE_ID: { rules: [61], inclusive: !1 }, FLOATING_NOTE: { rules: [58, 59, 60], inclusive: !1 }, NOTE_TEXT: { rules: [63, 64], inclusive: !1 }, NOTE_ID: { rules: [62], inclusive: !1 }, NOTE: { rules: [55, 56, 57], inclusive: !1 }, CLASS_STYLE: { rules: [28], inclusive: !1 }, CLASS: { rules: [27], inclusive: !1 }, CLASSDEFID: { rules: [25], inclusive: !1 }, CLASSDEF: { rules: [23, 24], inclusive: !1 }, acc_descr_multiline: { rules: [20, 21], inclusive: !1 }, acc_descr: { rules: [18], inclusive: !1 }, acc_title: { rules: [16], inclusive: !1 }, SCALE: { rules: [13, 14, 30, 31], inclusive: !1 }, ALIAS: { rules: [], inclusive: !1 }, STATE_ID: { rules: [45], inclusive: !1 }, STATE_STRING: { rules: [46, 47], inclusive: !1 }, FORK_STATE: { rules: [], inclusive: !1 }, STATE: { rules: [9, 10, 33, 34, 35, 36, 37, 38, 43, 44, 48, 49, 50], inclusive: !1 }, ID: { rules: [9, 10], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 15, 17, 19, 22, 26, 29, 32, 50, 54, 65, 66, 67, 68, 69, 70, 71, 73, 74, 75], inclusive: !0 } }
522
+ };
523
+ return C;
524
+ }();
525
+ ht.lexer = Yt;
526
+ function ut() {
527
+ this.yy = {};
528
+ }
529
+ return ut.prototype = ht, ht.Parser = ut, new ut();
530
+ }();
531
+ gt.parser = gt;
532
+ const De = gt, qt = "LR", Ce = "TB", _t = "state", It = "relation", Qt = "classDef", Zt = "applyClass", Et = "default", te = "divider", bt = "[*]", Ot = "start", Nt = bt, Rt = "end", At = "color", Lt = "fill", ee = "bgFill", se = ",";
533
+ function wt() {
534
+ return {};
535
+ }
536
+ let $t = qt, lt = [], P = wt();
537
+ const Bt = () => ({
538
+ relations: [],
539
+ states: {},
540
+ documents: {}
541
+ });
542
+ let ct = {
543
+ root: Bt()
544
+ }, g = ct.root, F = 0, vt = 0;
545
+ const ie = {
546
+ LINE: 0,
547
+ DOTTED_LINE: 1
548
+ }, re = {
549
+ AGGREGATION: 0,
550
+ EXTENSION: 1,
551
+ COMPOSITION: 2,
552
+ DEPENDENCY: 3
553
+ }, nt = (t) => JSON.parse(JSON.stringify(t)), ne = (t) => {
554
+ D.info("Setting root doc", t), lt = t;
555
+ }, ae = () => lt, at = (t, s, a) => {
556
+ if (s.stmt === It)
557
+ at(t, s.state1, !0), at(t, s.state2, !1);
558
+ else if (s.stmt === _t && (s.id === "[*]" ? (s.id = a ? t.id + "_start" : t.id + "_end", s.start = a) : s.id = s.id.trim()), s.doc) {
559
+ const h = [];
560
+ let f = [], d;
561
+ for (d = 0; d < s.doc.length; d++)
562
+ if (s.doc[d].type === te) {
563
+ const y = nt(s.doc[d]);
564
+ y.doc = nt(f), h.push(y), f = [];
565
+ } else
566
+ f.push(s.doc[d]);
567
+ if (h.length > 0 && f.length > 0) {
568
+ const y = {
569
+ stmt: _t,
570
+ id: Jt(),
571
+ type: "divider",
572
+ doc: nt(f)
573
+ };
574
+ h.push(nt(y)), s.doc = h;
575
+ }
576
+ s.doc.forEach((y) => at(s, y, !0));
577
+ }
578
+ }, le = () => (at({ id: "root" }, { id: "root", doc: lt }, !0), { id: "root", doc: lt }), ce = (t) => {
579
+ let s;
580
+ t.doc ? s = t.doc : s = t, D.info(s), Pt(!0), D.info("Extract", s), s.forEach((a) => {
581
+ switch (a.stmt) {
582
+ case _t:
583
+ I(
584
+ a.id.trim(),
585
+ a.type,
586
+ a.doc,
587
+ a.description,
588
+ a.note,
589
+ a.classes,
590
+ a.styles,
591
+ a.textStyles
592
+ );
593
+ break;
594
+ case It:
595
+ Ft(a.state1, a.state2, a.description);
596
+ break;
597
+ case Qt:
598
+ Vt(a.id.trim(), a.classes);
599
+ break;
600
+ case Zt:
601
+ xt(a.id.trim(), a.styleClass);
602
+ break;
603
+ }
604
+ });
605
+ }, I = function(t, s = Et, a = null, h = null, f = null, d = null, y = null, k = null) {
606
+ const u = t == null ? void 0 : t.trim();
607
+ g.states[u] === void 0 ? (D.info("Adding state ", u, h), g.states[u] = {
608
+ id: u,
609
+ descriptions: [],
610
+ type: s,
611
+ doc: a,
612
+ note: f,
613
+ classes: [],
614
+ styles: [],
615
+ textStyles: []
616
+ }) : (g.states[u].doc || (g.states[u].doc = a), g.states[u].type || (g.states[u].type = s)), h && (D.info("Setting state description", u, h), typeof h == "string" && kt(u, h.trim()), typeof h == "object" && h.forEach((E) => kt(u, E.trim()))), f && (g.states[u].note = f, g.states[u].note.text = ot.sanitizeText(
617
+ g.states[u].note.text,
618
+ Y()
619
+ )), d && (D.info("Setting state classes", u, d), (typeof d == "string" ? [d] : d).forEach((T) => xt(u, T.trim()))), y && (D.info("Setting state styles", u, y), (typeof y == "string" ? [y] : y).forEach((T) => _e(u, T.trim()))), k && (D.info("Setting state styles", u, y), (typeof k == "string" ? [k] : k).forEach((T) => me(u, T.trim())));
620
+ }, Pt = function(t) {
621
+ ct = {
622
+ root: Bt()
623
+ }, g = ct.root, F = 0, P = wt(), t || Wt();
624
+ }, V = function(t) {
625
+ return g.states[t];
626
+ }, oe = function() {
627
+ return g.states;
628
+ }, he = function() {
629
+ D.info("Documents = ", ct);
630
+ }, ue = function() {
631
+ return g.relations;
632
+ };
633
+ function mt(t = "") {
634
+ let s = t;
635
+ return t === bt && (F++, s = `${Ot}${F}`), s;
636
+ }
637
+ function Tt(t = "", s = Et) {
638
+ return t === bt ? Ot : s;
639
+ }
640
+ function fe(t = "") {
641
+ let s = t;
642
+ return t === Nt && (F++, s = `${Rt}${F}`), s;
643
+ }
644
+ function de(t = "", s = Et) {
645
+ return t === Nt ? Rt : s;
646
+ }
647
+ function ye(t, s, a) {
648
+ let h = mt(t.id.trim()), f = Tt(t.id.trim(), t.type), d = mt(s.id.trim()), y = Tt(s.id.trim(), s.type);
649
+ I(
650
+ h,
651
+ f,
652
+ t.doc,
653
+ t.description,
654
+ t.note,
655
+ t.classes,
656
+ t.styles,
657
+ t.textStyles
658
+ ), I(
659
+ d,
660
+ y,
661
+ s.doc,
662
+ s.description,
663
+ s.note,
664
+ s.classes,
665
+ s.styles,
666
+ s.textStyles
667
+ ), g.relations.push({
668
+ id1: h,
669
+ id2: d,
670
+ relationTitle: ot.sanitizeText(a, Y())
671
+ });
672
+ }
673
+ const Ft = function(t, s, a) {
674
+ if (typeof t == "object")
675
+ ye(t, s, a);
676
+ else {
677
+ const h = mt(t.trim()), f = Tt(t), d = fe(s.trim()), y = de(s);
678
+ I(h, f), I(d, y), g.relations.push({
679
+ id1: h,
680
+ id2: d,
681
+ title: ot.sanitizeText(a, Y())
682
+ });
683
+ }
684
+ }, kt = function(t, s) {
685
+ const a = g.states[t], h = s.startsWith(":") ? s.replace(":", "").trim() : s;
686
+ a.descriptions.push(ot.sanitizeText(h, Y()));
687
+ }, pe = function(t) {
688
+ return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim();
689
+ }, Se = () => (vt++, "divider-id-" + vt), Vt = function(t, s = "") {
690
+ P[t] === void 0 && (P[t] = { id: t, styles: [], textStyles: [] });
691
+ const a = P[t];
692
+ s != null && s.split(se).forEach((h) => {
693
+ const f = h.replace(/([^;]*);/, "$1").trim();
694
+ if (h.match(At)) {
695
+ const y = f.replace(Lt, ee).replace(At, Lt);
696
+ a.textStyles.push(y);
697
+ }
698
+ a.styles.push(f);
699
+ });
700
+ }, ge = function() {
701
+ return P;
702
+ }, xt = function(t, s) {
703
+ t.split(",").forEach(function(a) {
704
+ let h = V(a);
705
+ if (h === void 0) {
706
+ const f = a.trim();
707
+ I(f), h = V(f);
708
+ }
709
+ h.classes.push(s);
710
+ });
711
+ }, _e = function(t, s) {
712
+ const a = V(t);
713
+ a !== void 0 && a.textStyles.push(s);
714
+ }, me = function(t, s) {
715
+ const a = V(t);
716
+ a !== void 0 && a.textStyles.push(s);
717
+ }, Te = () => $t, ke = (t) => {
718
+ $t = t;
719
+ }, Ee = (t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), Ae = {
720
+ getConfig: () => Y().state,
721
+ addState: I,
722
+ clear: Pt,
723
+ getState: V,
724
+ getStates: oe,
725
+ getRelations: ue,
726
+ getClasses: ge,
727
+ getDirection: Te,
728
+ addRelation: Ft,
729
+ getDividerId: Se,
730
+ setDirection: ke,
731
+ cleanupLabel: pe,
732
+ lineType: ie,
733
+ relationType: re,
734
+ logDocuments: he,
735
+ getRootDoc: ae,
736
+ setRootDoc: ne,
737
+ getRootDocV2: le,
738
+ extract: ce,
739
+ trimColon: Ee,
740
+ getAccTitle: Ut,
741
+ setAccTitle: zt,
742
+ getAccDescription: Mt,
743
+ setAccDescription: Ht,
744
+ addStyleClass: Vt,
745
+ setCssClass: xt,
746
+ addDescription: kt,
747
+ setDiagramTitle: Xt,
748
+ getDiagramTitle: Kt
749
+ }, be = (t) => `
750
+ defs #statediagram-barbEnd {
751
+ fill: ${t.transitionColor};
752
+ stroke: ${t.transitionColor};
753
+ }
754
+ g.stateGroup text {
755
+ fill: ${t.nodeBorder};
756
+ stroke: none;
757
+ font-size: 10px;
758
+ }
759
+ g.stateGroup text {
760
+ fill: ${t.textColor};
761
+ stroke: none;
762
+ font-size: 10px;
763
+
764
+ }
765
+ g.stateGroup .state-title {
766
+ font-weight: bolder;
767
+ fill: ${t.stateLabelColor};
768
+ }
769
+
770
+ g.stateGroup rect {
771
+ fill: ${t.mainBkg};
772
+ stroke: ${t.nodeBorder};
773
+ }
774
+
775
+ g.stateGroup line {
776
+ stroke: ${t.lineColor};
777
+ stroke-width: 1;
778
+ }
779
+
780
+ .transition {
781
+ stroke: ${t.transitionColor};
782
+ stroke-width: 1;
783
+ fill: none;
784
+ }
785
+
786
+ .stateGroup .composit {
787
+ fill: ${t.background};
788
+ border-bottom: 1px
789
+ }
790
+
791
+ .stateGroup .alt-composit {
792
+ fill: #e0e0e0;
793
+ border-bottom: 1px
794
+ }
795
+
796
+ .state-note {
797
+ stroke: ${t.noteBorderColor};
798
+ fill: ${t.noteBkgColor};
799
+
800
+ text {
801
+ fill: ${t.noteTextColor};
802
+ stroke: none;
803
+ font-size: 10px;
804
+ }
805
+ }
806
+
807
+ .stateLabel .box {
808
+ stroke: none;
809
+ stroke-width: 0;
810
+ fill: ${t.mainBkg};
811
+ opacity: 0.5;
812
+ }
813
+
814
+ .edgeLabel .label rect {
815
+ fill: ${t.labelBackgroundColor};
816
+ opacity: 0.5;
817
+ }
818
+ .edgeLabel .label text {
819
+ fill: ${t.transitionLabelColor || t.tertiaryTextColor};
820
+ }
821
+ .label div .edgeLabel {
822
+ color: ${t.transitionLabelColor || t.tertiaryTextColor};
823
+ }
824
+
825
+ .stateLabel text {
826
+ fill: ${t.stateLabelColor};
827
+ font-size: 10px;
828
+ font-weight: bold;
829
+ }
830
+
831
+ .node circle.state-start {
832
+ fill: ${t.specialStateColor};
833
+ stroke: ${t.specialStateColor};
834
+ }
835
+
836
+ .node .fork-join {
837
+ fill: ${t.specialStateColor};
838
+ stroke: ${t.specialStateColor};
839
+ }
840
+
841
+ .node circle.state-end {
842
+ fill: ${t.innerEndBackground};
843
+ stroke: ${t.background};
844
+ stroke-width: 1.5
845
+ }
846
+ .end-state-inner {
847
+ fill: ${t.compositeBackground || t.background};
848
+ // stroke: ${t.background};
849
+ stroke-width: 1.5
850
+ }
851
+
852
+ .node rect {
853
+ fill: ${t.stateBkg || t.mainBkg};
854
+ stroke: ${t.stateBorder || t.nodeBorder};
855
+ stroke-width: 1px;
856
+ }
857
+ .node polygon {
858
+ fill: ${t.mainBkg};
859
+ stroke: ${t.stateBorder || t.nodeBorder};;
860
+ stroke-width: 1px;
861
+ }
862
+ #statediagram-barbEnd {
863
+ fill: ${t.lineColor};
864
+ }
865
+
866
+ .statediagram-cluster rect {
867
+ fill: ${t.compositeTitleBackground};
868
+ stroke: ${t.stateBorder || t.nodeBorder};
869
+ stroke-width: 1px;
870
+ }
871
+
872
+ .cluster-label, .nodeLabel {
873
+ color: ${t.stateLabelColor};
874
+ }
875
+
876
+ .statediagram-cluster rect.outer {
877
+ rx: 5px;
878
+ ry: 5px;
879
+ }
880
+ .statediagram-state .divider {
881
+ stroke: ${t.stateBorder || t.nodeBorder};
882
+ }
883
+
884
+ .statediagram-state .title-state {
885
+ rx: 5px;
886
+ ry: 5px;
887
+ }
888
+ .statediagram-cluster.statediagram-cluster .inner {
889
+ fill: ${t.compositeBackground || t.background};
890
+ }
891
+ .statediagram-cluster.statediagram-cluster-alt .inner {
892
+ fill: ${t.altBackground ? t.altBackground : "#efefef"};
893
+ }
894
+
895
+ .statediagram-cluster .inner {
896
+ rx:0;
897
+ ry:0;
898
+ }
899
+
900
+ .statediagram-state rect.basic {
901
+ rx: 5px;
902
+ ry: 5px;
903
+ }
904
+ .statediagram-state rect.divider {
905
+ stroke-dasharray: 10,10;
906
+ fill: ${t.altBackground ? t.altBackground : "#efefef"};
907
+ }
908
+
909
+ .note-edge {
910
+ stroke-dasharray: 5;
911
+ }
912
+
913
+ .statediagram-note rect {
914
+ fill: ${t.noteBkgColor};
915
+ stroke: ${t.noteBorderColor};
916
+ stroke-width: 1px;
917
+ rx: 0;
918
+ ry: 0;
919
+ }
920
+ .statediagram-note rect {
921
+ fill: ${t.noteBkgColor};
922
+ stroke: ${t.noteBorderColor};
923
+ stroke-width: 1px;
924
+ rx: 0;
925
+ ry: 0;
926
+ }
927
+
928
+ .statediagram-note text {
929
+ fill: ${t.noteTextColor};
930
+ }
931
+
932
+ .statediagram-note .nodeLabel {
933
+ color: ${t.noteTextColor};
934
+ }
935
+ .statediagram .edgeLabel {
936
+ color: red; // ${t.noteTextColor};
937
+ }
938
+
939
+ #dependencyStart, #dependencyEnd {
940
+ fill: ${t.lineColor};
941
+ stroke: ${t.lineColor};
942
+ stroke-width: 1;
943
+ }
944
+
945
+ .statediagramTitleText {
946
+ text-anchor: middle;
947
+ font-size: 18px;
948
+ fill: ${t.textColor};
949
+ }
950
+ `, Le = be;
951
+ export {
952
+ Et as D,
953
+ It as S,
954
+ te as a,
955
+ _t as b,
956
+ Ce as c,
957
+ Ae as d,
958
+ De as p,
959
+ Le as s
960
+ };