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,34 @@
1
+ import { a as h } from "./array-2ff2c7a6.js";
2
+ import { w as d, c as o } from "./path-428ebac9.js";
3
+ import { n as v } from "./mermaid-9f2aa176.js";
4
+ function w(t) {
5
+ return t[0];
6
+ }
7
+ function b(t) {
8
+ return t[1];
9
+ }
10
+ function P(t, u) {
11
+ var s = o(!0), i = null, l = v, r = null, m = d(e);
12
+ t = typeof t == "function" ? t : t === void 0 ? w : o(t), u = typeof u == "function" ? u : u === void 0 ? b : o(u);
13
+ function e(n) {
14
+ var f, g = (n = h(n)).length, p, c = !1, a;
15
+ for (i == null && (r = l(a = m())), f = 0; f <= g; ++f)
16
+ !(f < g && s(p = n[f], f, n)) === c && ((c = !c) ? r.lineStart() : r.lineEnd()), c && r.point(+t(p, f, n), +u(p, f, n));
17
+ if (a)
18
+ return r = null, a + "" || null;
19
+ }
20
+ return e.x = function(n) {
21
+ return arguments.length ? (t = typeof n == "function" ? n : o(+n), e) : t;
22
+ }, e.y = function(n) {
23
+ return arguments.length ? (u = typeof n == "function" ? n : o(+n), e) : u;
24
+ }, e.defined = function(n) {
25
+ return arguments.length ? (s = typeof n == "function" ? n : o(!!n), e) : s;
26
+ }, e.curve = function(n) {
27
+ return arguments.length ? (l = n, i != null && (r = l(i)), e) : l;
28
+ }, e.context = function(n) {
29
+ return arguments.length ? (n == null ? i = r = null : r = l(i = n), e) : i;
30
+ }, e;
31
+ }
32
+ export {
33
+ P as l
34
+ };
@@ -0,0 +1,50 @@
1
+ import { a as array } from "./array-b7dcf730.js";
2
+ import { w as withPath, c as constant } from "./path-39bad7e2.js";
3
+ import { n as curveLinear } from "./mermaid-dcacb631.js";
4
+ function x(p) {
5
+ return p[0];
6
+ }
7
+ function y(p) {
8
+ return p[1];
9
+ }
10
+ function line(x$1, y$1) {
11
+ var defined = constant(true), context = null, curve = curveLinear, output = null, path = withPath(line2);
12
+ x$1 = typeof x$1 === "function" ? x$1 : x$1 === void 0 ? x : constant(x$1);
13
+ y$1 = typeof y$1 === "function" ? y$1 : y$1 === void 0 ? y : constant(y$1);
14
+ function line2(data) {
15
+ var i, n = (data = array(data)).length, d, defined0 = false, buffer;
16
+ if (context == null)
17
+ output = curve(buffer = path());
18
+ for (i = 0; i <= n; ++i) {
19
+ if (!(i < n && defined(d = data[i], i, data)) === defined0) {
20
+ if (defined0 = !defined0)
21
+ output.lineStart();
22
+ else
23
+ output.lineEnd();
24
+ }
25
+ if (defined0)
26
+ output.point(+x$1(d, i, data), +y$1(d, i, data));
27
+ }
28
+ if (buffer)
29
+ return output = null, buffer + "" || null;
30
+ }
31
+ line2.x = function(_) {
32
+ return arguments.length ? (x$1 = typeof _ === "function" ? _ : constant(+_), line2) : x$1;
33
+ };
34
+ line2.y = function(_) {
35
+ return arguments.length ? (y$1 = typeof _ === "function" ? _ : constant(+_), line2) : y$1;
36
+ };
37
+ line2.defined = function(_) {
38
+ return arguments.length ? (defined = typeof _ === "function" ? _ : constant(!!_), line2) : defined;
39
+ };
40
+ line2.curve = function(_) {
41
+ return arguments.length ? (curve = _, context != null && (output = curve(context)), line2) : curve;
42
+ };
43
+ line2.context = function(_) {
44
+ return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line2) : context;
45
+ };
46
+ return line2;
47
+ }
48
+ export {
49
+ line as l
50
+ };
@@ -0,0 +1,595 @@
1
+ import { $ as constant, a0 as interpolateNumber, a1 as color, a2 as interpolateRgb, a3 as interpolateString } from "./mermaid-dcacb631.js";
2
+ import { i as initRange } from "./init-cc95ec8e.js";
3
+ function ascending(a, b) {
4
+ return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
5
+ }
6
+ function descending(a, b) {
7
+ return a == null || b == null ? NaN : b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
8
+ }
9
+ function bisector(f) {
10
+ let compare1, compare2, delta;
11
+ if (f.length !== 2) {
12
+ compare1 = ascending;
13
+ compare2 = (d, x) => ascending(f(d), x);
14
+ delta = (d, x) => f(d) - x;
15
+ } else {
16
+ compare1 = f === ascending || f === descending ? f : zero;
17
+ compare2 = f;
18
+ delta = f;
19
+ }
20
+ function left(a, x, lo = 0, hi = a.length) {
21
+ if (lo < hi) {
22
+ if (compare1(x, x) !== 0)
23
+ return hi;
24
+ do {
25
+ const mid = lo + hi >>> 1;
26
+ if (compare2(a[mid], x) < 0)
27
+ lo = mid + 1;
28
+ else
29
+ hi = mid;
30
+ } while (lo < hi);
31
+ }
32
+ return lo;
33
+ }
34
+ function right(a, x, lo = 0, hi = a.length) {
35
+ if (lo < hi) {
36
+ if (compare1(x, x) !== 0)
37
+ return hi;
38
+ do {
39
+ const mid = lo + hi >>> 1;
40
+ if (compare2(a[mid], x) <= 0)
41
+ lo = mid + 1;
42
+ else
43
+ hi = mid;
44
+ } while (lo < hi);
45
+ }
46
+ return lo;
47
+ }
48
+ function center(a, x, lo = 0, hi = a.length) {
49
+ const i = left(a, x, lo, hi - 1);
50
+ return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;
51
+ }
52
+ return { left, center, right };
53
+ }
54
+ function zero() {
55
+ return 0;
56
+ }
57
+ function number$1(x) {
58
+ return x === null ? NaN : +x;
59
+ }
60
+ const ascendingBisect = bisector(ascending);
61
+ const bisectRight = ascendingBisect.right;
62
+ bisector(number$1).center;
63
+ const bisect = bisectRight;
64
+ const e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
65
+ function tickSpec(start, stop, count) {
66
+ const step = (stop - start) / Math.max(0, count), power = Math.floor(Math.log10(step)), error = step / Math.pow(10, power), factor = error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1;
67
+ let i1, i2, inc;
68
+ if (power < 0) {
69
+ inc = Math.pow(10, -power) / factor;
70
+ i1 = Math.round(start * inc);
71
+ i2 = Math.round(stop * inc);
72
+ if (i1 / inc < start)
73
+ ++i1;
74
+ if (i2 / inc > stop)
75
+ --i2;
76
+ inc = -inc;
77
+ } else {
78
+ inc = Math.pow(10, power) * factor;
79
+ i1 = Math.round(start / inc);
80
+ i2 = Math.round(stop / inc);
81
+ if (i1 * inc < start)
82
+ ++i1;
83
+ if (i2 * inc > stop)
84
+ --i2;
85
+ }
86
+ if (i2 < i1 && 0.5 <= count && count < 2)
87
+ return tickSpec(start, stop, count * 2);
88
+ return [i1, i2, inc];
89
+ }
90
+ function ticks(start, stop, count) {
91
+ stop = +stop, start = +start, count = +count;
92
+ if (!(count > 0))
93
+ return [];
94
+ if (start === stop)
95
+ return [start];
96
+ const reverse = stop < start, [i1, i2, inc] = reverse ? tickSpec(stop, start, count) : tickSpec(start, stop, count);
97
+ if (!(i2 >= i1))
98
+ return [];
99
+ const n = i2 - i1 + 1, ticks2 = new Array(n);
100
+ if (reverse) {
101
+ if (inc < 0)
102
+ for (let i = 0; i < n; ++i)
103
+ ticks2[i] = (i2 - i) / -inc;
104
+ else
105
+ for (let i = 0; i < n; ++i)
106
+ ticks2[i] = (i2 - i) * inc;
107
+ } else {
108
+ if (inc < 0)
109
+ for (let i = 0; i < n; ++i)
110
+ ticks2[i] = (i1 + i) / -inc;
111
+ else
112
+ for (let i = 0; i < n; ++i)
113
+ ticks2[i] = (i1 + i) * inc;
114
+ }
115
+ return ticks2;
116
+ }
117
+ function tickIncrement(start, stop, count) {
118
+ stop = +stop, start = +start, count = +count;
119
+ return tickSpec(start, stop, count)[2];
120
+ }
121
+ function tickStep(start, stop, count) {
122
+ stop = +stop, start = +start, count = +count;
123
+ const reverse = stop < start, inc = reverse ? tickIncrement(stop, start, count) : tickIncrement(start, stop, count);
124
+ return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);
125
+ }
126
+ function numberArray(a, b) {
127
+ if (!b)
128
+ b = [];
129
+ var n = a ? Math.min(b.length, a.length) : 0, c = b.slice(), i;
130
+ return function(t) {
131
+ for (i = 0; i < n; ++i)
132
+ c[i] = a[i] * (1 - t) + b[i] * t;
133
+ return c;
134
+ };
135
+ }
136
+ function isNumberArray(x) {
137
+ return ArrayBuffer.isView(x) && !(x instanceof DataView);
138
+ }
139
+ function genericArray(a, b) {
140
+ var nb = b ? b.length : 0, na = a ? Math.min(nb, a.length) : 0, x = new Array(na), c = new Array(nb), i;
141
+ for (i = 0; i < na; ++i)
142
+ x[i] = interpolate(a[i], b[i]);
143
+ for (; i < nb; ++i)
144
+ c[i] = b[i];
145
+ return function(t) {
146
+ for (i = 0; i < na; ++i)
147
+ c[i] = x[i](t);
148
+ return c;
149
+ };
150
+ }
151
+ function date(a, b) {
152
+ var d = /* @__PURE__ */ new Date();
153
+ return a = +a, b = +b, function(t) {
154
+ return d.setTime(a * (1 - t) + b * t), d;
155
+ };
156
+ }
157
+ function object(a, b) {
158
+ var i = {}, c = {}, k;
159
+ if (a === null || typeof a !== "object")
160
+ a = {};
161
+ if (b === null || typeof b !== "object")
162
+ b = {};
163
+ for (k in b) {
164
+ if (k in a) {
165
+ i[k] = interpolate(a[k], b[k]);
166
+ } else {
167
+ c[k] = b[k];
168
+ }
169
+ }
170
+ return function(t) {
171
+ for (k in i)
172
+ c[k] = i[k](t);
173
+ return c;
174
+ };
175
+ }
176
+ function interpolate(a, b) {
177
+ var t = typeof b, c;
178
+ return b == null || t === "boolean" ? constant(b) : (t === "number" ? interpolateNumber : t === "string" ? (c = color(b)) ? (b = c, interpolateRgb) : interpolateString : b instanceof color ? interpolateRgb : b instanceof Date ? date : isNumberArray(b) ? numberArray : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object : interpolateNumber)(a, b);
179
+ }
180
+ function interpolateRound(a, b) {
181
+ return a = +a, b = +b, function(t) {
182
+ return Math.round(a * (1 - t) + b * t);
183
+ };
184
+ }
185
+ function formatDecimal(x) {
186
+ return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString("en").replace(/,/g, "") : x.toString(10);
187
+ }
188
+ function formatDecimalParts(x, p) {
189
+ if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0)
190
+ return null;
191
+ var i, coefficient = x.slice(0, i);
192
+ return [
193
+ coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,
194
+ +x.slice(i + 1)
195
+ ];
196
+ }
197
+ function exponent(x) {
198
+ return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
199
+ }
200
+ function formatGroup(grouping, thousands) {
201
+ return function(value, width) {
202
+ var i = value.length, t = [], j = 0, g = grouping[0], length = 0;
203
+ while (i > 0 && g > 0) {
204
+ if (length + g + 1 > width)
205
+ g = Math.max(1, width - length);
206
+ t.push(value.substring(i -= g, i + g));
207
+ if ((length += g + 1) > width)
208
+ break;
209
+ g = grouping[j = (j + 1) % grouping.length];
210
+ }
211
+ return t.reverse().join(thousands);
212
+ };
213
+ }
214
+ function formatNumerals(numerals) {
215
+ return function(value) {
216
+ return value.replace(/[0-9]/g, function(i) {
217
+ return numerals[+i];
218
+ });
219
+ };
220
+ }
221
+ var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
222
+ function formatSpecifier(specifier) {
223
+ if (!(match = re.exec(specifier)))
224
+ throw new Error("invalid format: " + specifier);
225
+ var match;
226
+ return new FormatSpecifier({
227
+ fill: match[1],
228
+ align: match[2],
229
+ sign: match[3],
230
+ symbol: match[4],
231
+ zero: match[5],
232
+ width: match[6],
233
+ comma: match[7],
234
+ precision: match[8] && match[8].slice(1),
235
+ trim: match[9],
236
+ type: match[10]
237
+ });
238
+ }
239
+ formatSpecifier.prototype = FormatSpecifier.prototype;
240
+ function FormatSpecifier(specifier) {
241
+ this.fill = specifier.fill === void 0 ? " " : specifier.fill + "";
242
+ this.align = specifier.align === void 0 ? ">" : specifier.align + "";
243
+ this.sign = specifier.sign === void 0 ? "-" : specifier.sign + "";
244
+ this.symbol = specifier.symbol === void 0 ? "" : specifier.symbol + "";
245
+ this.zero = !!specifier.zero;
246
+ this.width = specifier.width === void 0 ? void 0 : +specifier.width;
247
+ this.comma = !!specifier.comma;
248
+ this.precision = specifier.precision === void 0 ? void 0 : +specifier.precision;
249
+ this.trim = !!specifier.trim;
250
+ this.type = specifier.type === void 0 ? "" : specifier.type + "";
251
+ }
252
+ FormatSpecifier.prototype.toString = function() {
253
+ return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
254
+ };
255
+ function formatTrim(s) {
256
+ out:
257
+ for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
258
+ switch (s[i]) {
259
+ case ".":
260
+ i0 = i1 = i;
261
+ break;
262
+ case "0":
263
+ if (i0 === 0)
264
+ i0 = i;
265
+ i1 = i;
266
+ break;
267
+ default:
268
+ if (!+s[i])
269
+ break out;
270
+ if (i0 > 0)
271
+ i0 = 0;
272
+ break;
273
+ }
274
+ }
275
+ return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
276
+ }
277
+ var prefixExponent;
278
+ function formatPrefixAuto(x, p) {
279
+ var d = formatDecimalParts(x, p);
280
+ if (!d)
281
+ return x + "";
282
+ var coefficient = d[0], exponent2 = d[1], i = exponent2 - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent2 / 3))) * 3) + 1, n = coefficient.length;
283
+ return i === n ? coefficient : i > n ? coefficient + new Array(i - n + 1).join("0") : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i) : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0];
284
+ }
285
+ function formatRounded(x, p) {
286
+ var d = formatDecimalParts(x, p);
287
+ if (!d)
288
+ return x + "";
289
+ var coefficient = d[0], exponent2 = d[1];
290
+ return exponent2 < 0 ? "0." + new Array(-exponent2).join("0") + coefficient : coefficient.length > exponent2 + 1 ? coefficient.slice(0, exponent2 + 1) + "." + coefficient.slice(exponent2 + 1) : coefficient + new Array(exponent2 - coefficient.length + 2).join("0");
291
+ }
292
+ const formatTypes = {
293
+ "%": (x, p) => (x * 100).toFixed(p),
294
+ "b": (x) => Math.round(x).toString(2),
295
+ "c": (x) => x + "",
296
+ "d": formatDecimal,
297
+ "e": (x, p) => x.toExponential(p),
298
+ "f": (x, p) => x.toFixed(p),
299
+ "g": (x, p) => x.toPrecision(p),
300
+ "o": (x) => Math.round(x).toString(8),
301
+ "p": (x, p) => formatRounded(x * 100, p),
302
+ "r": formatRounded,
303
+ "s": formatPrefixAuto,
304
+ "X": (x) => Math.round(x).toString(16).toUpperCase(),
305
+ "x": (x) => Math.round(x).toString(16)
306
+ };
307
+ function identity$1(x) {
308
+ return x;
309
+ }
310
+ var map = Array.prototype.map, prefixes = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
311
+ function formatLocale(locale2) {
312
+ var group = locale2.grouping === void 0 || locale2.thousands === void 0 ? identity$1 : formatGroup(map.call(locale2.grouping, Number), locale2.thousands + ""), currencyPrefix = locale2.currency === void 0 ? "" : locale2.currency[0] + "", currencySuffix = locale2.currency === void 0 ? "" : locale2.currency[1] + "", decimal = locale2.decimal === void 0 ? "." : locale2.decimal + "", numerals = locale2.numerals === void 0 ? identity$1 : formatNumerals(map.call(locale2.numerals, String)), percent = locale2.percent === void 0 ? "%" : locale2.percent + "", minus = locale2.minus === void 0 ? "−" : locale2.minus + "", nan = locale2.nan === void 0 ? "NaN" : locale2.nan + "";
313
+ function newFormat(specifier) {
314
+ specifier = formatSpecifier(specifier);
315
+ var fill = specifier.fill, align = specifier.align, sign = specifier.sign, symbol = specifier.symbol, zero2 = specifier.zero, width = specifier.width, comma = specifier.comma, precision = specifier.precision, trim = specifier.trim, type = specifier.type;
316
+ if (type === "n")
317
+ comma = true, type = "g";
318
+ else if (!formatTypes[type])
319
+ precision === void 0 && (precision = 12), trim = true, type = "g";
320
+ if (zero2 || fill === "0" && align === "=")
321
+ zero2 = true, fill = "0", align = "=";
322
+ var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "", suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "";
323
+ var formatType = formatTypes[type], maybeSuffix = /[defgprs%]/.test(type);
324
+ precision = precision === void 0 ? 6 : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision)) : Math.max(0, Math.min(20, precision));
325
+ function format2(value) {
326
+ var valuePrefix = prefix, valueSuffix = suffix, i, n, c;
327
+ if (type === "c") {
328
+ valueSuffix = formatType(value) + valueSuffix;
329
+ value = "";
330
+ } else {
331
+ value = +value;
332
+ var valueNegative = value < 0 || 1 / value < 0;
333
+ value = isNaN(value) ? nan : formatType(Math.abs(value), precision);
334
+ if (trim)
335
+ value = formatTrim(value);
336
+ if (valueNegative && +value === 0 && sign !== "+")
337
+ valueNegative = false;
338
+ valuePrefix = (valueNegative ? sign === "(" ? sign : minus : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
339
+ valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
340
+ if (maybeSuffix) {
341
+ i = -1, n = value.length;
342
+ while (++i < n) {
343
+ if (c = value.charCodeAt(i), 48 > c || c > 57) {
344
+ valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
345
+ value = value.slice(0, i);
346
+ break;
347
+ }
348
+ }
349
+ }
350
+ }
351
+ if (comma && !zero2)
352
+ value = group(value, Infinity);
353
+ var length = valuePrefix.length + value.length + valueSuffix.length, padding = length < width ? new Array(width - length + 1).join(fill) : "";
354
+ if (comma && zero2)
355
+ value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = "";
356
+ switch (align) {
357
+ case "<":
358
+ value = valuePrefix + value + valueSuffix + padding;
359
+ break;
360
+ case "=":
361
+ value = valuePrefix + padding + value + valueSuffix;
362
+ break;
363
+ case "^":
364
+ value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);
365
+ break;
366
+ default:
367
+ value = padding + valuePrefix + value + valueSuffix;
368
+ break;
369
+ }
370
+ return numerals(value);
371
+ }
372
+ format2.toString = function() {
373
+ return specifier + "";
374
+ };
375
+ return format2;
376
+ }
377
+ function formatPrefix2(specifier, value) {
378
+ var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)), e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3, k = Math.pow(10, -e), prefix = prefixes[8 + e / 3];
379
+ return function(value2) {
380
+ return f(k * value2) + prefix;
381
+ };
382
+ }
383
+ return {
384
+ format: newFormat,
385
+ formatPrefix: formatPrefix2
386
+ };
387
+ }
388
+ var locale;
389
+ var format;
390
+ var formatPrefix;
391
+ defaultLocale({
392
+ thousands: ",",
393
+ grouping: [3],
394
+ currency: ["$", ""]
395
+ });
396
+ function defaultLocale(definition) {
397
+ locale = formatLocale(definition);
398
+ format = locale.format;
399
+ formatPrefix = locale.formatPrefix;
400
+ return locale;
401
+ }
402
+ function precisionFixed(step) {
403
+ return Math.max(0, -exponent(Math.abs(step)));
404
+ }
405
+ function precisionPrefix(step, value) {
406
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));
407
+ }
408
+ function precisionRound(step, max) {
409
+ step = Math.abs(step), max = Math.abs(max) - step;
410
+ return Math.max(0, exponent(max) - exponent(step)) + 1;
411
+ }
412
+ function constants(x) {
413
+ return function() {
414
+ return x;
415
+ };
416
+ }
417
+ function number(x) {
418
+ return +x;
419
+ }
420
+ var unit = [0, 1];
421
+ function identity(x) {
422
+ return x;
423
+ }
424
+ function normalize(a, b) {
425
+ return (b -= a = +a) ? function(x) {
426
+ return (x - a) / b;
427
+ } : constants(isNaN(b) ? NaN : 0.5);
428
+ }
429
+ function clamper(a, b) {
430
+ var t;
431
+ if (a > b)
432
+ t = a, a = b, b = t;
433
+ return function(x) {
434
+ return Math.max(a, Math.min(b, x));
435
+ };
436
+ }
437
+ function bimap(domain, range, interpolate2) {
438
+ var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];
439
+ if (d1 < d0)
440
+ d0 = normalize(d1, d0), r0 = interpolate2(r1, r0);
441
+ else
442
+ d0 = normalize(d0, d1), r0 = interpolate2(r0, r1);
443
+ return function(x) {
444
+ return r0(d0(x));
445
+ };
446
+ }
447
+ function polymap(domain, range, interpolate2) {
448
+ var j = Math.min(domain.length, range.length) - 1, d = new Array(j), r = new Array(j), i = -1;
449
+ if (domain[j] < domain[0]) {
450
+ domain = domain.slice().reverse();
451
+ range = range.slice().reverse();
452
+ }
453
+ while (++i < j) {
454
+ d[i] = normalize(domain[i], domain[i + 1]);
455
+ r[i] = interpolate2(range[i], range[i + 1]);
456
+ }
457
+ return function(x) {
458
+ var i2 = bisect(domain, x, 1, j) - 1;
459
+ return r[i2](d[i2](x));
460
+ };
461
+ }
462
+ function copy(source, target) {
463
+ return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown());
464
+ }
465
+ function transformer() {
466
+ var domain = unit, range = unit, interpolate$1 = interpolate, transform, untransform, unknown, clamp = identity, piecewise, output, input;
467
+ function rescale() {
468
+ var n = Math.min(domain.length, range.length);
469
+ if (clamp !== identity)
470
+ clamp = clamper(domain[0], domain[n - 1]);
471
+ piecewise = n > 2 ? polymap : bimap;
472
+ output = input = null;
473
+ return scale;
474
+ }
475
+ function scale(x) {
476
+ return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate$1)))(transform(clamp(x)));
477
+ }
478
+ scale.invert = function(y) {
479
+ return clamp(untransform((input || (input = piecewise(range, domain.map(transform), interpolateNumber)))(y)));
480
+ };
481
+ scale.domain = function(_) {
482
+ return arguments.length ? (domain = Array.from(_, number), rescale()) : domain.slice();
483
+ };
484
+ scale.range = function(_) {
485
+ return arguments.length ? (range = Array.from(_), rescale()) : range.slice();
486
+ };
487
+ scale.rangeRound = function(_) {
488
+ return range = Array.from(_), interpolate$1 = interpolateRound, rescale();
489
+ };
490
+ scale.clamp = function(_) {
491
+ return arguments.length ? (clamp = _ ? true : identity, rescale()) : clamp !== identity;
492
+ };
493
+ scale.interpolate = function(_) {
494
+ return arguments.length ? (interpolate$1 = _, rescale()) : interpolate$1;
495
+ };
496
+ scale.unknown = function(_) {
497
+ return arguments.length ? (unknown = _, scale) : unknown;
498
+ };
499
+ return function(t, u) {
500
+ transform = t, untransform = u;
501
+ return rescale();
502
+ };
503
+ }
504
+ function continuous() {
505
+ return transformer()(identity, identity);
506
+ }
507
+ function tickFormat(start, stop, count, specifier) {
508
+ var step = tickStep(start, stop, count), precision;
509
+ specifier = formatSpecifier(specifier == null ? ",f" : specifier);
510
+ switch (specifier.type) {
511
+ case "s": {
512
+ var value = Math.max(Math.abs(start), Math.abs(stop));
513
+ if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value)))
514
+ specifier.precision = precision;
515
+ return formatPrefix(specifier, value);
516
+ }
517
+ case "":
518
+ case "e":
519
+ case "g":
520
+ case "p":
521
+ case "r": {
522
+ if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop)))))
523
+ specifier.precision = precision - (specifier.type === "e");
524
+ break;
525
+ }
526
+ case "f":
527
+ case "%": {
528
+ if (specifier.precision == null && !isNaN(precision = precisionFixed(step)))
529
+ specifier.precision = precision - (specifier.type === "%") * 2;
530
+ break;
531
+ }
532
+ }
533
+ return format(specifier);
534
+ }
535
+ function linearish(scale) {
536
+ var domain = scale.domain;
537
+ scale.ticks = function(count) {
538
+ var d = domain();
539
+ return ticks(d[0], d[d.length - 1], count == null ? 10 : count);
540
+ };
541
+ scale.tickFormat = function(count, specifier) {
542
+ var d = domain();
543
+ return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);
544
+ };
545
+ scale.nice = function(count) {
546
+ if (count == null)
547
+ count = 10;
548
+ var d = domain();
549
+ var i0 = 0;
550
+ var i1 = d.length - 1;
551
+ var start = d[i0];
552
+ var stop = d[i1];
553
+ var prestep;
554
+ var step;
555
+ var maxIter = 10;
556
+ if (stop < start) {
557
+ step = start, start = stop, stop = step;
558
+ step = i0, i0 = i1, i1 = step;
559
+ }
560
+ while (maxIter-- > 0) {
561
+ step = tickIncrement(start, stop, count);
562
+ if (step === prestep) {
563
+ d[i0] = start;
564
+ d[i1] = stop;
565
+ return domain(d);
566
+ } else if (step > 0) {
567
+ start = Math.floor(start / step) * step;
568
+ stop = Math.ceil(stop / step) * step;
569
+ } else if (step < 0) {
570
+ start = Math.ceil(start * step) / step;
571
+ stop = Math.floor(stop * step) / step;
572
+ } else {
573
+ break;
574
+ }
575
+ prestep = step;
576
+ }
577
+ return scale;
578
+ };
579
+ return scale;
580
+ }
581
+ function linear() {
582
+ var scale = continuous();
583
+ scale.copy = function() {
584
+ return copy(scale, linear());
585
+ };
586
+ initRange.apply(scale, arguments);
587
+ return linearish(scale);
588
+ }
589
+ export {
590
+ copy as a,
591
+ bisector as b,
592
+ continuous as c,
593
+ linear as l,
594
+ tickStep as t
595
+ };