@loopstack/loopstack-studio 0.25.0 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/dist/components/ai-elements/message.js +2 -2
  2. package/dist/components/ai-elements/reasoning.js +9 -9
  3. package/dist/loopstack-studio.css +1 -1
  4. package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +2 -5
  5. package/dist/node_modules/@chevrotain/gast/lib/src/model.js +69 -72
  6. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-7HQA4BMR.js → architecture-YZFGNWBL.js} +2 -2
  7. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-TQ3KTPDO.js → chunk-2KRD3SAO.js} +1 -1
  8. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-4F5CHEZ2.js → chunk-67CJDMHE.js} +1 -1
  9. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-UMXZTB3W.js → chunk-7N4EOEYR.js} +5 -2
  10. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-PL6DKKU2.js → chunk-AA7GKIK3.js} +1 -1
  11. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +23 -0
  12. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-SJTYNZTY.js → chunk-FOC6F5B3.js} +1 -1
  13. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +1197 -0
  14. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FRFDVMJY.js → chunk-KGLVRYIC.js} +1 -1
  15. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-B2363JML.js → chunk-LIHQZDEY.js} +1 -1
  16. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +29 -0
  17. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-G5XIXVHT.js → gitGraph-7Q5UKJZL.js} +2 -2
  18. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +3 -0
  19. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +3 -0
  20. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +3 -0
  21. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +3 -0
  22. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +3 -0
  23. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +3 -0
  24. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +3 -0
  25. package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +27 -17
  26. package/dist/node_modules/@upsetjs/venn.js/build/venn.esm.js +903 -0
  27. package/dist/node_modules/@xyflow/react/dist/esm/index.js +76 -75
  28. package/dist/node_modules/@xyflow/system/dist/esm/index.js +30 -28
  29. package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +31 -40
  30. package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +23 -26
  31. package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +12 -13
  32. package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +181 -205
  33. package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +11 -13
  34. package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +12 -13
  35. package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +8 -9
  36. package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +176 -183
  37. package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +17 -19
  38. package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +153 -160
  39. package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +10 -12
  40. package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +36 -38
  41. package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +37 -45
  42. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +12 -14
  43. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +80 -86
  44. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +6 -2
  45. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +39 -41
  46. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +7 -8
  47. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +69 -70
  48. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +215 -205
  49. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +76 -76
  50. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +29 -39
  51. package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +252 -274
  52. package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +93 -106
  53. package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +61 -61
  54. package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +31 -41
  55. package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +15 -18
  56. package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +226 -226
  57. package/dist/node_modules/chevrotain-allstar/lib/atn.js +17 -17
  58. package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +17 -14
  59. package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
  60. package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
  61. package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
  62. package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
  63. package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
  64. package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
  65. package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
  66. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
  67. package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
  68. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +61 -61
  69. package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
  70. package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
  71. package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
  72. package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
  73. package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
  74. package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
  75. package/dist/node_modules/dompurify/dist/purify.es.js +67 -67
  76. package/dist/node_modules/katex/dist/katex.js +1256 -1209
  77. package/dist/node_modules/khroma/dist/methods/transparentize.js +3 -0
  78. package/dist/node_modules/lodash-es/_baseClone.js +2 -2
  79. package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
  80. package/dist/node_modules/lodash-es/_baseToString.js +1 -1
  81. package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
  82. package/dist/node_modules/lodash-es/_createSet.js +1 -1
  83. package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
  84. package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
  85. package/dist/node_modules/lodash-es/findIndex.js +2 -2
  86. package/dist/node_modules/lodash-es/flatMap.js +1 -1
  87. package/dist/node_modules/lodash-es/forEach.js +1 -1
  88. package/dist/node_modules/lodash-es/max.js +1 -1
  89. package/dist/node_modules/lodash-es/min.js +1 -1
  90. package/dist/node_modules/lodash-es/minBy.js +1 -1
  91. package/dist/node_modules/lodash-es/reduce.js +1 -1
  92. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-Q4EWVU46.js +691 -0
  93. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-VD42YOAC.js → blockDiagram-DXYQGD6D.js} +183 -157
  94. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-YG6GDRKO.js → c4Diagram-AHTNJAMY.js} +65 -63
  95. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-336JU56O.js +47 -0
  96. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EXTU4WIE.js → chunk-426QAEUC.js} +1 -1
  97. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-B4BG7PRW.js → chunk-4TB4RGXK.js} +533 -393
  98. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5FUZZQ4R.js +3638 -0
  99. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-S3R3BYOJ.js → chunk-5PVQY5BW.js} +1 -1
  100. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-HN2XXSSU.js → chunk-BSJP7CBP.js} +20 -14
  101. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-QN33PNHL.js → chunk-EDXVE4YY.js} +1 -1
  102. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ENJZ2VHE.js +568 -0
  103. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICPOFSXX.js +2320 -0
  104. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-DI55MBZ5.js → chunk-OYMX7WX6.js} +35 -21
  105. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-U2HBQHQK.js +272 -0
  106. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ATLVNIR6.js → chunk-X2U36JSP.js} +1 -1
  107. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-MI3HLSF2.js → chunk-XPW4576I.js} +11 -7
  108. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YZCP3GAM.js +60 -0
  109. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZZ45TVLE.js +30 -0
  110. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-2ON5EDUG.js → classDiagram-6PBFFD2Q.js} +12 -11
  111. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-WZHVMYZB.js → classDiagram-v2-HSJHXN6E.js} +12 -11
  112. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-6UL2VRFP.js → dagre-KV5264BT.js} +8 -8
  113. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.js +99 -0
  114. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-PSM6KHXK.js → diagram-G4DWMVQ6.js} +20 -23
  115. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-MMDJMWI5.js +211 -0
  116. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-S2PKOQOG.js → diagram-TYMM5635.js} +4 -4
  117. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-Q2GNP2WA.js → erDiagram-SMLLAGMA.js} +486 -386
  118. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-NV44I4VS.js → flowDiagram-DWJPFMVM.js} +915 -898
  119. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-JELNMOA3.js → ganttDiagram-T4ZO3ILL.js} +59 -29
  120. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.js +728 -0
  121. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-42DDH7IO.js +17 -0
  122. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-UXIWVN3A.js +714 -0
  123. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-XKPGCS4Q.js → journeyDiagram-VCZTEJTY.js} +32 -32
  124. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-3W4ZIXB7.js → kanban-definition-6JOO6SKY.js} +13 -9
  125. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-VGOIOE7T.js → mindmap-definition-QFDTVHPH.js} +105 -59
  126. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-DEJITSTG.js +117 -0
  127. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-AYHSOK5B.js → quadrantDiagram-34T5L4WZ.js} +1 -1
  128. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-UZGBJVZJ.js → requirementDiagram-MS252O5E.js} +49 -19
  129. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-TZEHDZUN.js → sankeyDiagram-XADWPNL6.js} +1 -1
  130. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-FGHM5R23.js +4155 -0
  131. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FKZM4ZOC.js → stateDiagram-FHFEXIEX.js} +12 -12
  132. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-4FDKWEC3.js → stateDiagram-v2-QKLJ7IA2.js} +11 -11
  133. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-GMOUNBTQ.js +1071 -0
  134. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-DHZGUBPP.js +959 -0
  135. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +574 -0
  136. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-PRI3JC2R.js → xychartDiagram-5P7HB3ND.js} +38 -35
  137. package/dist/node_modules/mermaid/dist/mermaid.core.js +235 -192
  138. package/dist/node_modules/nanoid/url-alphabet/index.js +1 -1
  139. package/dist/node_modules/remend/dist/index.js +333 -264
  140. package/dist/node_modules/streamdown/dist/chunk-BO2N2NFS.js +2498 -0
  141. package/dist/node_modules/streamdown/dist/highlighted-body-OFNGDK62.js +35 -0
  142. package/dist/node_modules/streamdown/dist/index.js +1 -1
  143. package/dist/node_modules/streamdown/dist/mermaid-GHXKKRXX.js +3 -0
  144. package/dist/node_modules/streamdown/node_modules/marked/lib/marked.esm.js +672 -667
  145. package/dist/pages/DashboardPage.js +3 -3
  146. package/package.json +2 -2
  147. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -787
  148. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -3
  149. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -3
  150. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -3
  151. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -3
  152. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -3
  153. package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -16
  154. package/dist/node_modules/lodash-es/_arrayAggregator.js +0 -9
  155. package/dist/node_modules/lodash-es/_arrayEvery.js +0 -6
  156. package/dist/node_modules/lodash-es/_baseAggregator.js +0 -8
  157. package/dist/node_modules/lodash-es/_baseDifference.js +0 -22
  158. package/dist/node_modules/lodash-es/_baseEvery.js +0 -9
  159. package/dist/node_modules/lodash-es/_baseIsRegExp.js +0 -8
  160. package/dist/node_modules/lodash-es/_baseSlice.js +0 -8
  161. package/dist/node_modules/lodash-es/_baseSome.js +0 -9
  162. package/dist/node_modules/lodash-es/_createAggregator.js +0 -12
  163. package/dist/node_modules/lodash-es/assign.js +0 -14
  164. package/dist/node_modules/lodash-es/compact.js +0 -9
  165. package/dist/node_modules/lodash-es/difference.js +0 -8
  166. package/dist/node_modules/lodash-es/drop.js +0 -8
  167. package/dist/node_modules/lodash-es/dropRight.js +0 -8
  168. package/dist/node_modules/lodash-es/every.js +0 -11
  169. package/dist/node_modules/lodash-es/groupBy.js +0 -6
  170. package/dist/node_modules/lodash-es/head.js +0 -5
  171. package/dist/node_modules/lodash-es/includes.js +0 -13
  172. package/dist/node_modules/lodash-es/indexOf.js +0 -11
  173. package/dist/node_modules/lodash-es/isRegExp.js +0 -5
  174. package/dist/node_modules/lodash-es/negate.js +0 -16
  175. package/dist/node_modules/lodash-es/pickBy.js +0 -15
  176. package/dist/node_modules/lodash-es/reject.js +0 -10
  177. package/dist/node_modules/lodash-es/some.js +0 -11
  178. package/dist/node_modules/lodash-es/uniq.js +0 -6
  179. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -673
  180. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -1547
  181. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -10
  182. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -135
  183. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -247
  184. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -3516
  185. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -39
  186. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -497
  187. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -55
  188. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -211
  189. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -621
  190. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -18
  191. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -117
  192. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3560
  193. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -833
  194. package/dist/node_modules/streamdown/dist/chunk-RLXIAIE6.js +0 -2189
  195. package/dist/node_modules/streamdown/dist/highlighted-body-B3W2YXNL.js +0 -33
  196. package/dist/node_modules/streamdown/dist/mermaid-3ZIDBTTL.js +0 -3
@@ -1,17 +1,19 @@
1
1
  import { __name, log } from "./chunk-AGHRB4JF.js";
2
- import { clear, common_default, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, parseGenericTypes, sanitizeText, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-ABZYJK2D.js";
2
+ import { purify } from "../../../../dompurify/dist/purify.es.js";
3
+ import { clear, common_default, getAccDescription, getAccTitle, getConfig2, getDiagramTitle, parseGenericTypes, sanitizeText, setAccDescription, setAccTitle, setDiagramTitle } from "./chunk-ICPOFSXX.js";
3
4
  import select_default from "../../../../d3-selection/src/select.js";
4
5
  import "../../../../d3/src/index.js";
5
- import { getEdgeId, utils_default } from "./chunk-S3R3BYOJ.js";
6
- import { getRegisteredLayoutAlgorithm, render } from "./chunk-N4CR4FBY.js";
6
+ import { getEdgeId, utils_default } from "./chunk-5PVQY5BW.js";
7
+ import { getRegisteredLayoutAlgorithm, render } from "./chunk-336JU56O.js";
7
8
  import { getIconStyles } from "./chunk-FMBD7UC4.js";
9
+ import { createTooltip } from "./chunk-YZCP3GAM.js";
8
10
  import { getDiagramElement } from "./chunk-55IACEB6.js";
9
- import { setupViewPortForSVG } from "./chunk-QN33PNHL.js";
11
+ import { setupViewPortForSVG } from "./chunk-EDXVE4YY.js";
10
12
  var parser = (function() {
11
13
  var t = /* @__PURE__ */ __name(function(e, t, n, r) {
12
14
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
13
15
  return n;
14
- }, "o"), n = [1, 18], r = [1, 19], i = [1, 20], a = [1, 41], o = [1, 42], s = [1, 26], c = [1, 24], l = [1, 25], u = [1, 32], d = [1, 33], f = [1, 34], p = [1, 45], m = [1, 35], h = [1, 36], g = [1, 37], _ = [1, 38], v = [1, 27], y = [1, 28], b = [1, 29], x = [1, 30], S = [1, 31], C = [1, 44], w = [1, 46], T = [1, 43], E = [1, 47], D = [1, 9], O = [
16
+ }, "o"), n = [1, 18], r = [1, 19], i = [1, 20], a = [1, 41], o = [1, 26], s = [1, 42], c = [1, 24], l = [1, 25], u = [1, 32], d = [1, 33], f = [1, 34], p = [1, 45], m = [1, 35], h = [1, 36], g = [1, 37], _ = [1, 38], v = [1, 27], y = [1, 28], b = [1, 29], x = [1, 30], S = [1, 31], C = [1, 44], w = [1, 46], T = [1, 43], E = [1, 47], D = [1, 9], O = [
15
17
  1,
16
18
  8,
17
19
  9
@@ -20,7 +22,7 @@ var parser = (function() {
20
22
  8,
21
23
  9,
22
24
  41
23
- ], ee = [1, 76], L = [
25
+ ], ee = [1, 77], L = [
24
26
  1,
25
27
  8,
26
28
  9,
@@ -30,6 +32,7 @@ var parser = (function() {
30
32
  39,
31
33
  41,
32
34
  44,
35
+ 46,
33
36
  68,
34
37
  69,
35
38
  70,
@@ -51,7 +54,8 @@ var parser = (function() {
51
54
  39,
52
55
  41,
53
56
  44,
54
- 50,
57
+ 46,
58
+ 47,
55
59
  60,
56
60
  68,
57
61
  69,
@@ -94,9 +98,9 @@ var parser = (function() {
94
98
  100,
95
99
  102,
96
100
  103
97
- ], ne = [1, 100], V = [1, 117], H = [1, 113], U = [1, 109], W = [1, 115], G = [1, 110], K = [1, 111], q = [1, 112], J = [1, 114], Y = [1, 116], re = [
101
+ ], V = [1, 102], H = [1, 120], U = [1, 116], W = [1, 112], G = [1, 118], K = [1, 113], q = [1, 114], J = [1, 115], Y = [1, 117], X = [1, 119], ne = [
98
102
  22,
99
- 48,
103
+ 50,
100
104
  60,
101
105
  61,
102
106
  82,
@@ -105,19 +109,20 @@ var parser = (function() {
105
109
  88,
106
110
  89,
107
111
  90
108
- ], X = [
112
+ ], re = [
109
113
  1,
110
114
  8,
111
115
  9,
112
116
  39,
113
117
  41,
114
- 44
118
+ 44,
119
+ 46
115
120
  ], Z = [
116
121
  1,
117
122
  8,
118
123
  9,
119
124
  22
120
- ], ie = [1, 145], ae = [
125
+ ], ie = [1, 150], ae = [
121
126
  1,
122
127
  8,
123
128
  9,
@@ -127,7 +132,7 @@ var parser = (function() {
127
132
  8,
128
133
  9,
129
134
  22,
130
- 48,
135
+ 50,
131
136
  60,
132
137
  61,
133
138
  82,
@@ -184,11 +189,11 @@ var parser = (function() {
184
189
  classIdentifier: 43,
185
190
  STYLE_SEPARATOR: 44,
186
191
  members: 45,
187
- CLASS: 46,
188
- emptyBody: 47,
189
- SPACE: 48,
190
- ANNOTATION_START: 49,
191
- ANNOTATION_END: 50,
192
+ ANNOTATION_START: 46,
193
+ ANNOTATION_END: 47,
194
+ CLASS: 48,
195
+ emptyBody: 49,
196
+ SPACE: 50,
192
197
  MEMBER: 51,
193
198
  SEPARATOR: 52,
194
199
  relation: 53,
@@ -265,10 +270,10 @@ var parser = (function() {
265
270
  41: "STRUCT_STOP",
266
271
  42: "NAMESPACE",
267
272
  44: "STYLE_SEPARATOR",
268
- 46: "CLASS",
269
- 48: "SPACE",
270
- 49: "ANNOTATION_START",
271
- 50: "ANNOTATION_END",
273
+ 46: "ANNOTATION_START",
274
+ 47: "ANNOTATION_END",
275
+ 48: "CLASS",
276
+ 50: "SPACE",
272
277
  51: "MEMBER",
273
278
  52: "SEPARATOR",
274
279
  54: "NOTE_FOR",
@@ -353,16 +358,22 @@ var parser = (function() {
353
358
  [40, 1],
354
359
  [40, 2],
355
360
  [40, 3],
361
+ [40, 1],
362
+ [40, 2],
363
+ [40, 3],
356
364
  [24, 1],
357
365
  [24, 3],
358
366
  [24, 4],
359
367
  [24, 3],
360
368
  [24, 6],
369
+ [24, 4],
370
+ [24, 7],
371
+ [24, 6],
361
372
  [43, 2],
362
373
  [43, 3],
363
- [47, 0],
364
- [47, 2],
365
- [47, 2],
374
+ [49, 0],
375
+ [49, 2],
376
+ [49, 2],
366
377
  [26, 4],
367
378
  [45, 1],
368
379
  [45, 2],
@@ -481,55 +492,73 @@ var parser = (function() {
481
492
  this.$ = a[s].trim(), r.setAccDescription(this.$);
482
493
  break;
483
494
  case 34:
484
- r.addClassesToNamespace(a[s - 3], a[s - 1]);
495
+ r.addClassesToNamespace(a[s - 3], a[s - 1][0], a[s - 1][1]);
485
496
  break;
486
497
  case 35:
487
- r.addClassesToNamespace(a[s - 4], a[s - 1]);
498
+ r.addClassesToNamespace(a[s - 4], a[s - 1][0], a[s - 1][1]);
488
499
  break;
489
500
  case 36:
490
501
  this.$ = a[s], r.addNamespace(a[s]);
491
502
  break;
492
503
  case 37:
493
- this.$ = [a[s]];
504
+ this.$ = [[a[s]], []];
494
505
  break;
495
506
  case 38:
496
- this.$ = [a[s - 1]];
507
+ this.$ = [[a[s - 1]], []];
497
508
  break;
498
509
  case 39:
499
- a[s].unshift(a[s - 2]), this.$ = a[s];
510
+ a[s][0].unshift(a[s - 2]), this.$ = a[s];
511
+ break;
512
+ case 40:
513
+ this.$ = [[], [a[s]]];
500
514
  break;
501
515
  case 41:
502
- r.setCssClass(a[s - 2], a[s]);
516
+ this.$ = [[], [a[s - 1]]];
503
517
  break;
504
518
  case 42:
505
- r.addMembers(a[s - 3], a[s - 1]);
519
+ a[s][1].unshift(a[s - 2]), this.$ = a[s];
506
520
  break;
507
521
  case 44:
508
- r.setCssClass(a[s - 5], a[s - 3]), r.addMembers(a[s - 5], a[s - 1]);
522
+ r.setCssClass(a[s - 2], a[s]);
509
523
  break;
510
524
  case 45:
525
+ r.addMembers(a[s - 3], a[s - 1]);
526
+ break;
527
+ case 47:
528
+ r.setCssClass(a[s - 5], a[s - 3]), r.addMembers(a[s - 5], a[s - 1]);
529
+ break;
530
+ case 48:
531
+ r.addAnnotation(a[s - 3], a[s - 1]);
532
+ break;
533
+ case 49:
534
+ r.addAnnotation(a[s - 6], a[s - 4]), r.addMembers(a[s - 6], a[s - 1]);
535
+ break;
536
+ case 50:
537
+ r.addAnnotation(a[s - 5], a[s - 3]);
538
+ break;
539
+ case 51:
511
540
  this.$ = a[s], r.addClass(a[s]);
512
541
  break;
513
- case 46:
542
+ case 52:
514
543
  this.$ = a[s - 1], r.addClass(a[s - 1]), r.setClassLabel(a[s - 1], a[s]);
515
544
  break;
516
- case 50:
545
+ case 56:
517
546
  r.addAnnotation(a[s], a[s - 2]);
518
547
  break;
519
- case 51:
520
- case 64:
548
+ case 57:
549
+ case 70:
521
550
  this.$ = [a[s]];
522
551
  break;
523
- case 52:
552
+ case 58:
524
553
  a[s].push(a[s - 1]), this.$ = a[s];
525
554
  break;
526
- case 53: break;
527
- case 54:
555
+ case 59: break;
556
+ case 60:
528
557
  r.addMember(a[s - 1], r.cleanupLabel(a[s]));
529
558
  break;
530
- case 55: break;
531
- case 56: break;
532
- case 57:
559
+ case 61: break;
560
+ case 62: break;
561
+ case 63:
533
562
  this.$ = {
534
563
  id1: a[s - 2],
535
564
  id2: a[s],
@@ -538,7 +567,7 @@ var parser = (function() {
538
567
  relationTitle2: "none"
539
568
  };
540
569
  break;
541
- case 58:
570
+ case 64:
542
571
  this.$ = {
543
572
  id1: a[s - 3],
544
573
  id2: a[s],
@@ -547,7 +576,7 @@ var parser = (function() {
547
576
  relationTitle2: "none"
548
577
  };
549
578
  break;
550
- case 59:
579
+ case 65:
551
580
  this.$ = {
552
581
  id1: a[s - 3],
553
582
  id2: a[s],
@@ -556,7 +585,7 @@ var parser = (function() {
556
585
  relationTitle2: a[s - 1]
557
586
  };
558
587
  break;
559
- case 60:
588
+ case 66:
560
589
  this.$ = {
561
590
  id1: a[s - 4],
562
591
  id2: a[s],
@@ -565,130 +594,130 @@ var parser = (function() {
565
594
  relationTitle2: a[s - 1]
566
595
  };
567
596
  break;
568
- case 61:
569
- r.addNote(a[s], a[s - 1]);
597
+ case 67:
598
+ this.$ = r.addNote(a[s], a[s - 1]);
570
599
  break;
571
- case 62:
572
- r.addNote(a[s]);
600
+ case 68:
601
+ this.$ = r.addNote(a[s]);
573
602
  break;
574
- case 63:
603
+ case 69:
575
604
  this.$ = a[s - 2], r.defineClass(a[s - 1], a[s]);
576
605
  break;
577
- case 65:
606
+ case 71:
578
607
  this.$ = a[s - 2].concat([a[s]]);
579
608
  break;
580
- case 66:
609
+ case 72:
581
610
  r.setDirection("TB");
582
611
  break;
583
- case 67:
612
+ case 73:
584
613
  r.setDirection("BT");
585
614
  break;
586
- case 68:
615
+ case 74:
587
616
  r.setDirection("RL");
588
617
  break;
589
- case 69:
618
+ case 75:
590
619
  r.setDirection("LR");
591
620
  break;
592
- case 70:
621
+ case 76:
593
622
  this.$ = {
594
623
  type1: a[s - 2],
595
624
  type2: a[s],
596
625
  lineType: a[s - 1]
597
626
  };
598
627
  break;
599
- case 71:
628
+ case 77:
600
629
  this.$ = {
601
630
  type1: "none",
602
631
  type2: a[s],
603
632
  lineType: a[s - 1]
604
633
  };
605
634
  break;
606
- case 72:
635
+ case 78:
607
636
  this.$ = {
608
637
  type1: a[s - 1],
609
638
  type2: "none",
610
639
  lineType: a[s]
611
640
  };
612
641
  break;
613
- case 73:
642
+ case 79:
614
643
  this.$ = {
615
644
  type1: "none",
616
645
  type2: "none",
617
646
  lineType: a[s]
618
647
  };
619
648
  break;
620
- case 74:
649
+ case 80:
621
650
  this.$ = r.relationType.AGGREGATION;
622
651
  break;
623
- case 75:
652
+ case 81:
624
653
  this.$ = r.relationType.EXTENSION;
625
654
  break;
626
- case 76:
655
+ case 82:
627
656
  this.$ = r.relationType.COMPOSITION;
628
657
  break;
629
- case 77:
658
+ case 83:
630
659
  this.$ = r.relationType.DEPENDENCY;
631
660
  break;
632
- case 78:
661
+ case 84:
633
662
  this.$ = r.relationType.LOLLIPOP;
634
663
  break;
635
- case 79:
664
+ case 85:
636
665
  this.$ = r.lineType.LINE;
637
666
  break;
638
- case 80:
667
+ case 86:
639
668
  this.$ = r.lineType.DOTTED_LINE;
640
669
  break;
641
- case 81:
642
670
  case 87:
671
+ case 93:
643
672
  this.$ = a[s - 2], r.setClickEvent(a[s - 1], a[s]);
644
673
  break;
645
- case 82:
646
674
  case 88:
675
+ case 94:
647
676
  this.$ = a[s - 3], r.setClickEvent(a[s - 2], a[s - 1]), r.setTooltip(a[s - 2], a[s]);
648
677
  break;
649
- case 83:
678
+ case 89:
650
679
  this.$ = a[s - 2], r.setLink(a[s - 1], a[s]);
651
680
  break;
652
- case 84:
681
+ case 90:
653
682
  this.$ = a[s - 3], r.setLink(a[s - 2], a[s - 1], a[s]);
654
683
  break;
655
- case 85:
684
+ case 91:
656
685
  this.$ = a[s - 3], r.setLink(a[s - 2], a[s - 1]), r.setTooltip(a[s - 2], a[s]);
657
686
  break;
658
- case 86:
687
+ case 92:
659
688
  this.$ = a[s - 4], r.setLink(a[s - 3], a[s - 2], a[s]), r.setTooltip(a[s - 3], a[s - 1]);
660
689
  break;
661
- case 89:
690
+ case 95:
662
691
  this.$ = a[s - 3], r.setClickEvent(a[s - 2], a[s - 1], a[s]);
663
692
  break;
664
- case 90:
693
+ case 96:
665
694
  this.$ = a[s - 4], r.setClickEvent(a[s - 3], a[s - 2], a[s - 1]), r.setTooltip(a[s - 3], a[s]);
666
695
  break;
667
- case 91:
696
+ case 97:
668
697
  this.$ = a[s - 3], r.setLink(a[s - 2], a[s]);
669
698
  break;
670
- case 92:
699
+ case 98:
671
700
  this.$ = a[s - 4], r.setLink(a[s - 3], a[s - 1], a[s]);
672
701
  break;
673
- case 93:
702
+ case 99:
674
703
  this.$ = a[s - 4], r.setLink(a[s - 3], a[s - 1]), r.setTooltip(a[s - 3], a[s]);
675
704
  break;
676
- case 94:
705
+ case 100:
677
706
  this.$ = a[s - 5], r.setLink(a[s - 4], a[s - 2], a[s]), r.setTooltip(a[s - 4], a[s - 1]);
678
707
  break;
679
- case 95:
708
+ case 101:
680
709
  this.$ = a[s - 2], r.setCssStyle(a[s - 1], a[s]);
681
710
  break;
682
- case 96:
711
+ case 102:
683
712
  r.setCssClass(a[s - 1], a[s]);
684
713
  break;
685
- case 97:
714
+ case 103:
686
715
  this.$ = [a[s]];
687
716
  break;
688
- case 98:
717
+ case 104:
689
718
  a[s - 2].push(a[s]), this.$ = a[s - 2];
690
719
  break;
691
- case 100:
720
+ case 106:
692
721
  this.$ = a[s - 1] + a[s];
693
722
  break;
694
723
  }
@@ -722,7 +751,7 @@ var parser = (function() {
722
751
  42: a,
723
752
  43: 23,
724
753
  46: o,
725
- 49: s,
754
+ 48: s,
726
755
  51: c,
727
756
  52: l,
728
757
  54: u,
@@ -763,7 +792,7 @@ var parser = (function() {
763
792
  { 34: [1, 51] },
764
793
  { 36: [1, 52] },
765
794
  t(O, [2, 33]),
766
- t(O, [2, 53], {
795
+ t(O, [2, 59], {
767
796
  53: 53,
768
797
  66: 56,
769
798
  67: 57,
@@ -778,14 +807,15 @@ var parser = (function() {
778
807
  74: F
779
808
  }),
780
809
  { 39: [1, 65] },
781
- t(I, [2, 40], {
810
+ t(I, [2, 43], {
782
811
  39: [1, 67],
783
- 44: [1, 66]
812
+ 44: [1, 66],
813
+ 46: [1, 68]
784
814
  }),
785
- t(O, [2, 55]),
786
- t(O, [2, 56]),
815
+ t(O, [2, 61]),
816
+ t(O, [2, 62]),
787
817
  {
788
- 16: 68,
818
+ 16: 69,
789
819
  60: p,
790
820
  86: C,
791
821
  100: w,
@@ -794,7 +824,7 @@ var parser = (function() {
794
824
  {
795
825
  16: 39,
796
826
  17: 40,
797
- 19: 69,
827
+ 19: 70,
798
828
  60: p,
799
829
  86: C,
800
830
  100: w,
@@ -804,7 +834,7 @@ var parser = (function() {
804
834
  {
805
835
  16: 39,
806
836
  17: 40,
807
- 19: 70,
837
+ 19: 71,
808
838
  60: p,
809
839
  86: C,
810
840
  100: w,
@@ -814,19 +844,19 @@ var parser = (function() {
814
844
  {
815
845
  16: 39,
816
846
  17: 40,
817
- 19: 71,
847
+ 19: 72,
818
848
  60: p,
819
849
  86: C,
820
850
  100: w,
821
851
  102: T,
822
852
  103: E
823
853
  },
824
- { 60: [1, 72] },
825
- { 13: [1, 73] },
854
+ { 60: [1, 73] },
855
+ { 13: [1, 74] },
826
856
  {
827
857
  16: 39,
828
858
  17: 40,
829
- 19: 74,
859
+ 19: 75,
830
860
  60: p,
831
861
  86: C,
832
862
  100: w,
@@ -835,33 +865,33 @@ var parser = (function() {
835
865
  },
836
866
  {
837
867
  13: ee,
838
- 55: 75
868
+ 55: 76
839
869
  },
840
870
  {
841
- 58: 77,
842
- 60: [1, 78]
871
+ 58: 78,
872
+ 60: [1, 79]
843
873
  },
844
- t(O, [2, 66]),
845
- t(O, [2, 67]),
846
- t(O, [2, 68]),
847
- t(O, [2, 69]),
874
+ t(O, [2, 72]),
875
+ t(O, [2, 73]),
876
+ t(O, [2, 74]),
877
+ t(O, [2, 75]),
848
878
  t(L, [2, 13], {
849
879
  16: 39,
850
880
  17: 40,
851
- 19: 80,
852
- 18: [1, 79],
853
- 20: [1, 81],
881
+ 19: 81,
882
+ 18: [1, 80],
883
+ 20: [1, 82],
854
884
  60: p,
855
885
  86: C,
856
886
  100: w,
857
887
  102: T,
858
888
  103: E
859
889
  }),
860
- t(L, [2, 15], { 20: [1, 82] }),
890
+ t(L, [2, 15], { 20: [1, 83] }),
861
891
  {
862
- 15: 83,
863
- 16: 84,
864
- 17: 85,
892
+ 15: 84,
893
+ 16: 85,
894
+ 17: 86,
865
895
  60: p,
866
896
  86: C,
867
897
  100: w,
@@ -871,17 +901,17 @@ var parser = (function() {
871
901
  {
872
902
  16: 39,
873
903
  17: 40,
874
- 19: 86,
904
+ 19: 87,
875
905
  60: p,
876
906
  86: C,
877
907
  100: w,
878
908
  102: T,
879
909
  103: E
880
910
  },
881
- t(R, [2, 123]),
882
- t(R, [2, 124]),
883
- t(R, [2, 125]),
884
- t(R, [2, 126]),
911
+ t(R, [2, 129]),
912
+ t(R, [2, 130]),
913
+ t(R, [2, 131]),
914
+ t(R, [2, 132]),
885
915
  t([
886
916
  1,
887
917
  8,
@@ -893,6 +923,7 @@ var parser = (function() {
893
923
  39,
894
924
  41,
895
925
  44,
926
+ 46,
896
927
  68,
897
928
  69,
898
929
  70,
@@ -902,7 +933,7 @@ var parser = (function() {
902
933
  74,
903
934
  79,
904
935
  81
905
- ], [2, 127]),
936
+ ], [2, 133]),
906
937
  t(D, [2, 6], {
907
938
  10: 5,
908
939
  21: 7,
@@ -921,13 +952,13 @@ var parser = (function() {
921
952
  43: 23,
922
953
  16: 39,
923
954
  17: 40,
924
- 5: 87,
955
+ 5: 88,
925
956
  33: n,
926
957
  35: r,
927
958
  37: i,
928
959
  42: a,
929
960
  46: o,
930
- 49: s,
961
+ 48: s,
931
962
  51: c,
932
963
  52: l,
933
964
  54: u,
@@ -949,7 +980,7 @@ var parser = (function() {
949
980
  103: E
950
981
  }),
951
982
  {
952
- 5: 88,
983
+ 5: 89,
953
984
  10: 5,
954
985
  16: 39,
955
986
  17: 40,
@@ -972,7 +1003,7 @@ var parser = (function() {
972
1003
  42: a,
973
1004
  43: 23,
974
1005
  46: o,
975
- 49: s,
1006
+ 48: s,
976
1007
  51: c,
977
1008
  52: l,
978
1009
  54: u,
@@ -997,10 +1028,10 @@ var parser = (function() {
997
1028
  t(O, [2, 31]),
998
1029
  t(O, [2, 32]),
999
1030
  {
1000
- 13: [1, 90],
1031
+ 13: [1, 91],
1001
1032
  16: 39,
1002
1033
  17: 40,
1003
- 19: 89,
1034
+ 19: 90,
1004
1035
  60: p,
1005
1036
  86: C,
1006
1037
  100: w,
@@ -1008,7 +1039,7 @@ var parser = (function() {
1008
1039
  103: E
1009
1040
  },
1010
1041
  {
1011
- 53: 91,
1042
+ 53: 92,
1012
1043
  66: 56,
1013
1044
  67: 57,
1014
1045
  68: k,
@@ -1019,94 +1050,104 @@ var parser = (function() {
1019
1050
  73: P,
1020
1051
  74: F
1021
1052
  },
1022
- t(O, [2, 54]),
1053
+ t(O, [2, 60]),
1023
1054
  {
1024
- 67: 92,
1055
+ 67: 93,
1025
1056
  73: P,
1026
1057
  74: F
1027
1058
  },
1028
- t(z, [2, 73], {
1029
- 66: 93,
1059
+ t(z, [2, 79], {
1060
+ 66: 94,
1030
1061
  68: k,
1031
1062
  69: A,
1032
1063
  70: j,
1033
1064
  71: M,
1034
1065
  72: N
1035
1066
  }),
1036
- t(B, [2, 74]),
1037
- t(B, [2, 75]),
1038
- t(B, [2, 76]),
1039
- t(B, [2, 77]),
1040
- t(B, [2, 78]),
1041
- t(te, [2, 79]),
1042
- t(te, [2, 80]),
1067
+ t(B, [2, 80]),
1068
+ t(B, [2, 81]),
1069
+ t(B, [2, 82]),
1070
+ t(B, [2, 83]),
1071
+ t(B, [2, 84]),
1072
+ t(te, [2, 85]),
1073
+ t(te, [2, 86]),
1043
1074
  {
1044
- 8: [1, 95],
1045
- 24: 96,
1046
- 40: 94,
1075
+ 8: [1, 96],
1076
+ 24: 97,
1077
+ 30: 98,
1078
+ 40: 95,
1047
1079
  43: 23,
1048
- 46: o
1080
+ 48: s,
1081
+ 54: u,
1082
+ 56: d
1049
1083
  },
1050
1084
  {
1051
- 16: 97,
1085
+ 16: 99,
1052
1086
  60: p,
1053
1087
  86: C,
1054
1088
  100: w,
1055
1089
  102: T
1056
1090
  },
1057
1091
  {
1058
- 41: [1, 99],
1059
- 45: 98,
1060
- 51: ne
1092
+ 41: [1, 101],
1093
+ 45: 100,
1094
+ 51: V
1061
1095
  },
1062
- { 50: [1, 101] },
1063
- { 13: [1, 102] },
1064
- { 13: [1, 103] },
1065
1096
  {
1066
- 79: [1, 104],
1067
- 81: [1, 105]
1097
+ 16: 103,
1098
+ 60: p,
1099
+ 86: C,
1100
+ 100: w,
1101
+ 102: T
1068
1102
  },
1103
+ { 47: [1, 104] },
1104
+ { 13: [1, 105] },
1105
+ { 13: [1, 106] },
1069
1106
  {
1070
- 22: V,
1071
- 48: H,
1072
- 59: 106,
1073
- 60: U,
1074
- 82: W,
1075
- 84: 107,
1076
- 85: 108,
1077
- 86: G,
1078
- 87: K,
1079
- 88: q,
1080
- 89: J,
1081
- 90: Y
1107
+ 79: [1, 107],
1108
+ 81: [1, 108]
1082
1109
  },
1083
- { 60: [1, 118] },
1110
+ {
1111
+ 22: H,
1112
+ 50: U,
1113
+ 59: 109,
1114
+ 60: W,
1115
+ 82: G,
1116
+ 84: 110,
1117
+ 85: 111,
1118
+ 86: K,
1119
+ 87: q,
1120
+ 88: J,
1121
+ 89: Y,
1122
+ 90: X
1123
+ },
1124
+ { 60: [1, 121] },
1084
1125
  {
1085
1126
  13: ee,
1086
- 55: 119
1127
+ 55: 122
1087
1128
  },
1088
- t(O, [2, 62]),
1089
- t(O, [2, 128]),
1129
+ t(I, [2, 68]),
1130
+ t(I, [2, 134]),
1090
1131
  {
1091
- 22: V,
1092
- 48: H,
1093
- 59: 120,
1094
- 60: U,
1095
- 61: [1, 121],
1096
- 82: W,
1097
- 84: 107,
1098
- 85: 108,
1099
- 86: G,
1100
- 87: K,
1101
- 88: q,
1102
- 89: J,
1103
- 90: Y
1132
+ 22: H,
1133
+ 50: U,
1134
+ 59: 123,
1135
+ 60: W,
1136
+ 61: [1, 124],
1137
+ 82: G,
1138
+ 84: 110,
1139
+ 85: 111,
1140
+ 86: K,
1141
+ 87: q,
1142
+ 88: J,
1143
+ 89: Y,
1144
+ 90: X
1104
1145
  },
1105
- t(re, [2, 64]),
1146
+ t(ne, [2, 70]),
1106
1147
  {
1107
1148
  16: 39,
1108
1149
  17: 40,
1109
- 19: 122,
1150
+ 19: 125,
1110
1151
  60: p,
1111
1152
  86: C,
1112
1153
  100: w,
@@ -1118,10 +1159,10 @@ var parser = (function() {
1118
1159
  t(L, [2, 18]),
1119
1160
  { 39: [2, 36] },
1120
1161
  {
1121
- 15: 124,
1122
- 16: 84,
1123
- 17: 85,
1124
- 18: [1, 123],
1162
+ 15: 127,
1163
+ 16: 85,
1164
+ 17: 86,
1165
+ 18: [1, 126],
1125
1166
  39: [2, 9],
1126
1167
  60: p,
1127
1168
  86: C,
@@ -1130,17 +1171,17 @@ var parser = (function() {
1130
1171
  103: E
1131
1172
  },
1132
1173
  { 39: [2, 10] },
1133
- t(X, [2, 45], {
1134
- 11: 125,
1135
- 12: [1, 126]
1174
+ t(re, [2, 51], {
1175
+ 11: 128,
1176
+ 12: [1, 129]
1136
1177
  }),
1137
1178
  t(D, [2, 7]),
1138
- { 9: [1, 127] },
1139
- t(Z, [2, 57]),
1179
+ { 9: [1, 130] },
1180
+ t(Z, [2, 63]),
1140
1181
  {
1141
1182
  16: 39,
1142
1183
  17: 40,
1143
- 19: 128,
1184
+ 19: 131,
1144
1185
  60: p,
1145
1186
  86: C,
1146
1187
  100: w,
@@ -1148,96 +1189,104 @@ var parser = (function() {
1148
1189
  103: E
1149
1190
  },
1150
1191
  {
1151
- 13: [1, 130],
1192
+ 13: [1, 133],
1152
1193
  16: 39,
1153
1194
  17: 40,
1154
- 19: 129,
1195
+ 19: 132,
1155
1196
  60: p,
1156
1197
  86: C,
1157
1198
  100: w,
1158
1199
  102: T,
1159
1200
  103: E
1160
1201
  },
1161
- t(z, [2, 72], {
1162
- 66: 131,
1202
+ t(z, [2, 78], {
1203
+ 66: 134,
1163
1204
  68: k,
1164
1205
  69: A,
1165
1206
  70: j,
1166
1207
  71: M,
1167
1208
  72: N
1168
1209
  }),
1169
- t(z, [2, 71]),
1170
- { 41: [1, 132] },
1210
+ t(z, [2, 77]),
1211
+ { 41: [1, 135] },
1171
1212
  {
1172
- 24: 96,
1173
- 40: 133,
1213
+ 24: 97,
1214
+ 30: 98,
1215
+ 40: 136,
1174
1216
  43: 23,
1175
- 46: o
1217
+ 48: s,
1218
+ 54: u,
1219
+ 56: d
1176
1220
  },
1177
1221
  {
1178
- 8: [1, 134],
1222
+ 8: [1, 137],
1179
1223
  41: [2, 37]
1180
1224
  },
1181
- t(I, [2, 41], { 39: [1, 135] }),
1182
- { 41: [1, 136] },
1183
- t(I, [2, 43]),
1184
1225
  {
1185
- 41: [2, 51],
1186
- 45: 137,
1187
- 51: ne
1226
+ 8: [1, 138],
1227
+ 41: [2, 40]
1228
+ },
1229
+ t(I, [2, 44], { 39: [1, 139] }),
1230
+ { 41: [1, 140] },
1231
+ t(I, [2, 46]),
1232
+ {
1233
+ 41: [2, 57],
1234
+ 45: 141,
1235
+ 51: V
1188
1236
  },
1237
+ { 47: [1, 142] },
1189
1238
  {
1190
1239
  16: 39,
1191
1240
  17: 40,
1192
- 19: 138,
1241
+ 19: 143,
1193
1242
  60: p,
1194
1243
  86: C,
1195
1244
  100: w,
1196
1245
  102: T,
1197
1246
  103: E
1198
1247
  },
1199
- t(O, [2, 81], { 13: [1, 139] }),
1200
- t(O, [2, 83], {
1201
- 13: [1, 141],
1202
- 77: [1, 140]
1248
+ t(O, [2, 87], { 13: [1, 144] }),
1249
+ t(O, [2, 89], {
1250
+ 13: [1, 146],
1251
+ 77: [1, 145]
1203
1252
  }),
1204
- t(O, [2, 87], {
1205
- 13: [1, 142],
1206
- 80: [1, 143]
1253
+ t(O, [2, 93], {
1254
+ 13: [1, 147],
1255
+ 80: [1, 148]
1207
1256
  }),
1208
- { 13: [1, 144] },
1209
- t(O, [2, 95], { 61: ie }),
1210
- t(ae, [2, 97], {
1211
- 85: 146,
1212
- 22: V,
1213
- 48: H,
1214
- 60: U,
1215
- 82: W,
1216
- 86: G,
1217
- 87: K,
1218
- 88: q,
1219
- 89: J,
1220
- 90: Y
1257
+ { 13: [1, 149] },
1258
+ t(O, [2, 101], { 61: ie }),
1259
+ t(ae, [2, 103], {
1260
+ 85: 151,
1261
+ 22: H,
1262
+ 50: U,
1263
+ 60: W,
1264
+ 82: G,
1265
+ 86: K,
1266
+ 87: q,
1267
+ 88: J,
1268
+ 89: Y,
1269
+ 90: X
1221
1270
  }),
1222
- t(Q, [2, 99]),
1223
- t(Q, [2, 101]),
1224
- t(Q, [2, 102]),
1225
- t(Q, [2, 103]),
1226
- t(Q, [2, 104]),
1227
1271
  t(Q, [2, 105]),
1228
- t(Q, [2, 106]),
1229
1272
  t(Q, [2, 107]),
1230
1273
  t(Q, [2, 108]),
1231
1274
  t(Q, [2, 109]),
1232
- t(O, [2, 96]),
1233
- t(O, [2, 61]),
1234
- t(O, [2, 63], { 61: ie }),
1235
- { 60: [1, 147] },
1275
+ t(Q, [2, 110]),
1276
+ t(Q, [2, 111]),
1277
+ t(Q, [2, 112]),
1278
+ t(Q, [2, 113]),
1279
+ t(Q, [2, 114]),
1280
+ t(Q, [2, 115]),
1281
+ t(O, [2, 102]),
1282
+ t(I, [2, 67]),
1283
+ t(O, [2, 69], { 61: ie }),
1284
+ { 60: [1, 152] },
1236
1285
  t(L, [2, 14]),
1237
1286
  {
1238
- 15: 148,
1239
- 16: 84,
1240
- 17: 85,
1287
+ 15: 153,
1288
+ 16: 85,
1289
+ 17: 86,
1241
1290
  60: p,
1242
1291
  86: C,
1243
1292
  100: w,
@@ -1245,99 +1294,123 @@ var parser = (function() {
1245
1294
  103: E
1246
1295
  },
1247
1296
  { 39: [2, 12] },
1248
- t(X, [2, 46]),
1249
- { 13: [1, 149] },
1297
+ t(re, [2, 52]),
1298
+ { 13: [1, 154] },
1250
1299
  { 1: [2, 4] },
1251
- t(Z, [2, 59]),
1252
- t(Z, [2, 58]),
1300
+ t(Z, [2, 65]),
1301
+ t(Z, [2, 64]),
1253
1302
  {
1254
1303
  16: 39,
1255
1304
  17: 40,
1256
- 19: 150,
1305
+ 19: 155,
1257
1306
  60: p,
1258
1307
  86: C,
1259
1308
  100: w,
1260
1309
  102: T,
1261
1310
  103: E
1262
1311
  },
1263
- t(z, [2, 70]),
1312
+ t(z, [2, 76]),
1264
1313
  t(O, [2, 34]),
1265
- { 41: [1, 151] },
1314
+ { 41: [1, 156] },
1266
1315
  {
1267
- 24: 96,
1268
- 40: 152,
1316
+ 24: 97,
1317
+ 30: 98,
1318
+ 40: 157,
1269
1319
  41: [2, 38],
1270
1320
  43: 23,
1271
- 46: o
1321
+ 48: s,
1322
+ 54: u,
1323
+ 56: d
1272
1324
  },
1273
1325
  {
1274
- 45: 153,
1275
- 51: ne
1326
+ 24: 97,
1327
+ 30: 98,
1328
+ 40: 158,
1329
+ 41: [2, 41],
1330
+ 43: 23,
1331
+ 48: s,
1332
+ 54: u,
1333
+ 56: d
1334
+ },
1335
+ {
1336
+ 45: 159,
1337
+ 51: V
1276
1338
  },
1277
- t(I, [2, 42]),
1278
- { 41: [2, 52] },
1279
- t(O, [2, 50]),
1280
- t(O, [2, 82]),
1281
- t(O, [2, 84]),
1282
- t(O, [2, 85], { 77: [1, 154] }),
1339
+ t(I, [2, 45]),
1340
+ { 41: [2, 58] },
1341
+ t(I, [2, 48], { 39: [1, 160] }),
1342
+ t(O, [2, 56]),
1283
1343
  t(O, [2, 88]),
1284
- t(O, [2, 89], { 13: [1, 155] }),
1285
- t(O, [2, 91], {
1286
- 13: [1, 157],
1287
- 77: [1, 156]
1344
+ t(O, [2, 90]),
1345
+ t(O, [2, 91], { 77: [1, 161] }),
1346
+ t(O, [2, 94]),
1347
+ t(O, [2, 95], { 13: [1, 162] }),
1348
+ t(O, [2, 97], {
1349
+ 13: [1, 164],
1350
+ 77: [1, 163]
1288
1351
  }),
1289
1352
  {
1290
- 22: V,
1291
- 48: H,
1292
- 60: U,
1293
- 82: W,
1294
- 84: 158,
1295
- 85: 108,
1296
- 86: G,
1297
- 87: K,
1298
- 88: q,
1299
- 89: J,
1300
- 90: Y
1353
+ 22: H,
1354
+ 50: U,
1355
+ 60: W,
1356
+ 82: G,
1357
+ 84: 165,
1358
+ 85: 111,
1359
+ 86: K,
1360
+ 87: q,
1361
+ 88: J,
1362
+ 89: Y,
1363
+ 90: X
1301
1364
  },
1302
- t(Q, [2, 100]),
1303
- t(re, [2, 65]),
1365
+ t(Q, [2, 106]),
1366
+ t(ne, [2, 71]),
1304
1367
  { 39: [2, 11] },
1305
- { 14: [1, 159] },
1306
- t(Z, [2, 60]),
1368
+ { 14: [1, 166] },
1369
+ t(Z, [2, 66]),
1307
1370
  t(O, [2, 35]),
1308
1371
  { 41: [2, 39] },
1309
- { 41: [1, 160] },
1310
- t(O, [2, 86]),
1311
- t(O, [2, 90]),
1372
+ { 41: [2, 42] },
1373
+ { 41: [1, 167] },
1374
+ {
1375
+ 41: [1, 169],
1376
+ 45: 168,
1377
+ 51: V
1378
+ },
1312
1379
  t(O, [2, 92]),
1313
- t(O, [2, 93], { 77: [1, 161] }),
1314
- t(ae, [2, 98], {
1315
- 85: 146,
1316
- 22: V,
1317
- 48: H,
1318
- 60: U,
1319
- 82: W,
1320
- 86: G,
1321
- 87: K,
1322
- 88: q,
1323
- 89: J,
1324
- 90: Y
1380
+ t(O, [2, 96]),
1381
+ t(O, [2, 98]),
1382
+ t(O, [2, 99], { 77: [1, 170] }),
1383
+ t(ae, [2, 104], {
1384
+ 85: 151,
1385
+ 22: H,
1386
+ 50: U,
1387
+ 60: W,
1388
+ 82: G,
1389
+ 86: K,
1390
+ 87: q,
1391
+ 88: J,
1392
+ 89: Y,
1393
+ 90: X
1325
1394
  }),
1326
- t(X, [2, 8]),
1327
- t(I, [2, 44]),
1328
- t(O, [2, 94])
1395
+ t(re, [2, 8]),
1396
+ t(I, [2, 47]),
1397
+ { 41: [1, 171] },
1398
+ t(I, [2, 50]),
1399
+ t(O, [2, 100]),
1400
+ t(I, [2, 49])
1329
1401
  ],
1330
1402
  defaultActions: {
1331
1403
  2: [2, 1],
1332
1404
  3: [2, 2],
1333
1405
  4: [2, 3],
1334
- 83: [2, 36],
1335
- 85: [2, 10],
1336
- 124: [2, 12],
1337
- 127: [2, 4],
1338
- 137: [2, 52],
1339
- 148: [2, 11],
1340
- 152: [2, 39]
1406
+ 84: [2, 36],
1407
+ 86: [2, 10],
1408
+ 127: [2, 12],
1409
+ 130: [2, 4],
1410
+ 141: [2, 58],
1411
+ 153: [2, 11],
1412
+ 157: [2, 39],
1413
+ 158: [2, 42]
1341
1414
  },
1342
1415
  parseError: /* @__PURE__ */ __name(function(e, t) {
1343
1416
  if (t.recoverable) this.trace(e);
@@ -1593,7 +1666,7 @@ var parser = (function() {
1593
1666
  case 35: return 8;
1594
1667
  case 36: break;
1595
1668
  case 37: return "EDGE_STATE";
1596
- case 38: return this.begin("class"), 46;
1669
+ case 38: return this.begin("class"), 48;
1597
1670
  case 39: return this.popState(), 8;
1598
1671
  case 40: break;
1599
1672
  case 41: return this.popState(), this.popState(), 41;
@@ -1610,8 +1683,8 @@ var parser = (function() {
1610
1683
  case 52: return 78;
1611
1684
  case 53: return 54;
1612
1685
  case 54: return 56;
1613
- case 55: return 49;
1614
- case 56: return 50;
1686
+ case 55: return 46;
1687
+ case 56: return 47;
1615
1688
  case 57: return 81;
1616
1689
  case 58:
1617
1690
  this.popState();
@@ -1658,8 +1731,8 @@ var parser = (function() {
1658
1731
  case 92: return "PUNCTUATION";
1659
1732
  case 93: return 86;
1660
1733
  case 94: return 102;
1661
- case 95: return 48;
1662
- case 96: return 48;
1734
+ case 95: return 50;
1735
+ case 96: return 50;
1663
1736
  case 97: return 9;
1664
1737
  }
1665
1738
  }, "anonymous"),
@@ -2570,7 +2643,7 @@ var classDiagram_default = parser, visibilityValues = [
2570
2643
  }
2571
2644
  }, MERMAID_DOM_ID_PREFIX = "classId-", classCounter = 0, sanitizeText2 = /* @__PURE__ */ __name((e) => common_default.sanitizeText(e, getConfig2()), "sanitizeText"), ClassDB = class {
2572
2645
  constructor() {
2573
- this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.functions = [], this.lineType = {
2646
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.diagramId = "", this.functions = [], this.lineType = {
2574
2647
  LINE: 0,
2575
2648
  DOTTED_LINE: 1
2576
2649
  }, this.relationType = {
@@ -2580,12 +2653,14 @@ var classDiagram_default = parser, visibilityValues = [
2580
2653
  DEPENDENCY: 3,
2581
2654
  LOLLIPOP: 4
2582
2655
  }, this.setupToolTips = /* @__PURE__ */ __name((e) => {
2583
- let t = select_default(".mermaidTooltip");
2584
- (t._groups || t)[0][0] === null && (t = select_default("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), select_default(e).select("svg").selectAll("g.node").on("mouseover", (e) => {
2585
- let n = select_default(e.currentTarget);
2586
- if (n.attr("title") === null) return;
2587
- let r = this.getBoundingClientRect();
2588
- t.transition().duration(200).style("opacity", ".9"), t.text(n.attr("title")).style("left", window.scrollX + r.left + (r.right - r.left) / 2 + "px").style("top", window.scrollY + r.top - 14 + document.body.scrollTop + "px"), t.html(t.html().replace(/&lt;br\/&gt;/g, "<br/>")), n.classed("hover", !0);
2656
+ let t = createTooltip();
2657
+ select_default(e).select("svg").selectAll("g").filter(function() {
2658
+ return select_default(this).attr("title") !== null;
2659
+ }).on("mouseover", (e) => {
2660
+ let r = select_default(e.currentTarget), i = r.attr("title");
2661
+ if (!i) return;
2662
+ let a = e.currentTarget.getBoundingClientRect();
2663
+ t.transition().duration(200).style("opacity", ".9"), t.html(purify.sanitize(i)).style("left", `${window.scrollX + a.left + a.width / 2}px`).style("top", `${window.scrollY + a.bottom + 4}px`), r.classed("hover", !0);
2589
2664
  }).on("mouseout", (e) => {
2590
2665
  t.transition().duration(500).style("opacity", 0), select_default(e.currentTarget).classed("hover", !1);
2591
2666
  });
@@ -2593,31 +2668,31 @@ var classDiagram_default = parser, visibilityValues = [
2593
2668
  }
2594
2669
  static #e = __name(this, "ClassDB");
2595
2670
  splitClassNameAndType(e) {
2596
- let t = common_default.sanitizeText(e, getConfig2()), n = "", i = t;
2671
+ let t = common_default.sanitizeText(e, getConfig2()), n = "", r = t;
2597
2672
  if (t.indexOf("~") > 0) {
2598
2673
  let e = t.split("~");
2599
- i = sanitizeText2(e[0]), n = sanitizeText2(e[1]);
2674
+ r = sanitizeText2(e[0]), n = sanitizeText2(e[1]);
2600
2675
  }
2601
2676
  return {
2602
- className: i,
2677
+ className: r,
2603
2678
  type: n
2604
2679
  };
2605
2680
  }
2606
2681
  setClassLabel(e, t) {
2607
2682
  let n = common_default.sanitizeText(e, getConfig2());
2608
2683
  t &&= sanitizeText2(t);
2609
- let { className: i } = this.splitClassNameAndType(n);
2610
- this.classes.get(i).label = t, this.classes.get(i).text = `${t}${this.classes.get(i).type ? `<${this.classes.get(i).type}>` : ""}`;
2684
+ let { className: r } = this.splitClassNameAndType(n);
2685
+ this.classes.get(r).label = t, this.classes.get(r).text = `${t}${this.classes.get(r).type ? `<${this.classes.get(r).type}>` : ""}`;
2611
2686
  }
2612
2687
  addClass(e) {
2613
- let t = common_default.sanitizeText(e, getConfig2()), { className: n, type: i } = this.splitClassNameAndType(t);
2688
+ let t = common_default.sanitizeText(e, getConfig2()), { className: n, type: r } = this.splitClassNameAndType(t);
2614
2689
  if (this.classes.has(n)) return;
2615
2690
  let a = common_default.sanitizeText(n, getConfig2());
2616
2691
  this.classes.set(a, {
2617
2692
  id: a,
2618
- type: i,
2693
+ type: r,
2619
2694
  label: a,
2620
- text: `${a}${i ? `&lt;${i}&gt;` : ""}`,
2695
+ text: `${a}${r ? `&lt;${r}&gt;` : ""}`,
2621
2696
  shape: "classBox",
2622
2697
  cssClasses: "default",
2623
2698
  methods: [],
@@ -2635,13 +2710,19 @@ var classDiagram_default = parser, visibilityValues = [
2635
2710
  };
2636
2711
  this.interfaces.push(n);
2637
2712
  }
2713
+ setDiagramId(e) {
2714
+ this.diagramId = e;
2715
+ }
2638
2716
  lookUpDomId(e) {
2639
2717
  let t = common_default.sanitizeText(e, getConfig2());
2640
- if (this.classes.has(t)) return this.classes.get(t).domId;
2718
+ if (this.classes.has(t)) {
2719
+ let e = this.classes.get(t).domId;
2720
+ return this.diagramId ? `${this.diagramId}-${e}` : e;
2721
+ }
2641
2722
  throw Error("Class not found: " + t);
2642
2723
  }
2643
2724
  clear() {
2644
- this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.direction = "TB", clear();
2725
+ this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.diagramId = "", this.direction = "TB", clear();
2645
2726
  }
2646
2727
  getClass(e) {
2647
2728
  return this.classes.get(e);
@@ -2652,6 +2733,10 @@ var classDiagram_default = parser, visibilityValues = [
2652
2733
  getRelations() {
2653
2734
  return this.relations;
2654
2735
  }
2736
+ getNote(e) {
2737
+ let t = typeof e == "number" ? `note${e}` : e;
2738
+ return this.notes.get(t);
2739
+ }
2655
2740
  getNotes() {
2656
2741
  return this.notes;
2657
2742
  }
@@ -2682,12 +2767,13 @@ var classDiagram_default = parser, visibilityValues = [
2682
2767
  Array.isArray(t) && (t.reverse(), t.forEach((t) => this.addMember(e, t)));
2683
2768
  }
2684
2769
  addNote(e, t) {
2685
- let n = {
2686
- id: `note${this.notes.length}`,
2770
+ let n = this.notes.size, r = {
2771
+ id: `note${n}`,
2687
2772
  class: t,
2688
- text: e
2773
+ text: e,
2774
+ index: n
2689
2775
  };
2690
- this.notes.push(n);
2776
+ return this.notes.set(r.id, r), r.id;
2691
2777
  }
2692
2778
  cleanupLabel(e) {
2693
2779
  return e.startsWith(":") && (e = e.substring(1)), sanitizeText2(e.trim());
@@ -2741,22 +2827,22 @@ var classDiagram_default = parser, visibilityValues = [
2741
2827
  }), this.setCssClass(e, "clickable");
2742
2828
  }
2743
2829
  setClickFunc(e, t, n) {
2744
- let i = common_default.sanitizeText(e, getConfig2());
2830
+ let r = common_default.sanitizeText(e, getConfig2());
2745
2831
  if (getConfig2().securityLevel !== "loose" || t === void 0) return;
2746
- let a = i;
2832
+ let a = r;
2747
2833
  if (this.classes.has(a)) {
2748
- let e = this.lookUpDomId(a), r = [];
2834
+ let e = [];
2749
2835
  if (typeof n == "string") {
2750
- r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
2751
- for (let e = 0; e < r.length; e++) {
2752
- let t = r[e].trim();
2753
- t.startsWith("\"") && t.endsWith("\"") && (t = t.substr(1, t.length - 2)), r[e] = t;
2836
+ e = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
2837
+ for (let t = 0; t < e.length; t++) {
2838
+ let n = e[t].trim();
2839
+ n.startsWith("\"") && n.endsWith("\"") && (n = n.substr(1, n.length - 2)), e[t] = n;
2754
2840
  }
2755
2841
  }
2756
- r.length === 0 && r.push(e), this.functions.push(() => {
2757
- let n = document.querySelector(`[id="${e}"]`);
2758
- n !== null && n.addEventListener("click", () => {
2759
- utils_default.runFunc(t, ...r);
2842
+ e.length === 0 && e.push(a), this.functions.push(() => {
2843
+ let n = this.lookUpDomId(a), r = document.querySelector(`[id="${n}"]`);
2844
+ r !== null && r.addEventListener("click", () => {
2845
+ utils_default.runFunc(t, ...e);
2760
2846
  }, !1);
2761
2847
  });
2762
2848
  }
@@ -2766,6 +2852,9 @@ var classDiagram_default = parser, visibilityValues = [
2766
2852
  t(e);
2767
2853
  });
2768
2854
  }
2855
+ escapeHtml(e) {
2856
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
2857
+ }
2769
2858
  getDirection() {
2770
2859
  return this.direction;
2771
2860
  }
@@ -2776,7 +2865,8 @@ var classDiagram_default = parser, visibilityValues = [
2776
2865
  this.namespaces.has(e) || (this.namespaces.set(e, {
2777
2866
  id: e,
2778
2867
  classes: /* @__PURE__ */ new Map(),
2779
- children: {},
2868
+ notes: /* @__PURE__ */ new Map(),
2869
+ children: /* @__PURE__ */ new Map(),
2780
2870
  domId: MERMAID_DOM_ID_PREFIX + e + "-" + this.namespaceCounter
2781
2871
  }), this.namespaceCounter++);
2782
2872
  }
@@ -2786,10 +2876,16 @@ var classDiagram_default = parser, visibilityValues = [
2786
2876
  getNamespaces() {
2787
2877
  return this.namespaces;
2788
2878
  }
2789
- addClassesToNamespace(e, t) {
2790
- if (this.namespaces.has(e)) for (let n of t) {
2791
- let { className: t } = this.splitClassNameAndType(n);
2792
- this.classes.get(t).parent = e, this.namespaces.get(e).classes.set(t, this.classes.get(t));
2879
+ addClassesToNamespace(e, t, n) {
2880
+ if (this.namespaces.has(e)) {
2881
+ for (let n of t) {
2882
+ let { className: t } = this.splitClassNameAndType(n), r = this.getClass(t);
2883
+ r.parent = e, this.namespaces.get(e).classes.set(t, r);
2884
+ }
2885
+ for (let t of n) {
2886
+ let n = this.getNote(t);
2887
+ n.parent = e, this.namespaces.get(e).notes.set(t, n);
2888
+ }
2793
2889
  }
2794
2890
  }
2795
2891
  setCssStyle(e, t) {
@@ -2820,34 +2916,32 @@ var classDiagram_default = parser, visibilityValues = [
2820
2916
  }
2821
2917
  getData() {
2822
2918
  let e = [], t = [], n = getConfig2();
2823
- for (let t of this.namespaces.keys()) {
2824
- let r = this.namespaces.get(t);
2825
- if (r) {
2826
- let t = {
2827
- id: r.id,
2828
- label: r.id,
2829
- isGroup: !0,
2830
- padding: n.class.padding ?? 16,
2831
- shape: "rect",
2832
- cssStyles: ["fill: none", "stroke: black"],
2833
- look: n.look
2834
- };
2835
- e.push(t);
2836
- }
2919
+ for (let t of this.namespaces.values()) {
2920
+ let r = {
2921
+ id: t.id,
2922
+ label: t.id,
2923
+ isGroup: !0,
2924
+ padding: n.class.padding ?? 16,
2925
+ shape: "rect",
2926
+ cssStyles: [],
2927
+ look: n.look
2928
+ };
2929
+ e.push(r);
2837
2930
  }
2838
- for (let t of this.classes.keys()) {
2839
- let r = this.classes.get(t);
2840
- if (r) {
2841
- let t = r;
2842
- t.parentId = r.parent, t.look = n.look, e.push(t);
2843
- }
2931
+ for (let t of this.classes.values()) {
2932
+ let r = {
2933
+ ...t,
2934
+ type: void 0,
2935
+ isGroup: !1,
2936
+ parentId: t.parent,
2937
+ look: n.look
2938
+ };
2939
+ e.push(r);
2844
2940
  }
2845
- let r = 0;
2846
- for (let i of this.notes) {
2847
- r++;
2848
- let a = {
2849
- id: i.id,
2850
- label: i.text,
2941
+ for (let r of this.notes.values()) {
2942
+ let i = {
2943
+ id: r.id,
2944
+ label: r.text,
2851
2945
  isGroup: !1,
2852
2946
  shape: "note",
2853
2947
  padding: n.class.padding ?? 6,
@@ -2857,15 +2951,17 @@ var classDiagram_default = parser, visibilityValues = [
2857
2951
  `fill: ${n.themeVariables.noteBkgColor}`,
2858
2952
  `stroke: ${n.themeVariables.noteBorderColor}`
2859
2953
  ],
2860
- look: n.look
2954
+ look: n.look,
2955
+ parentId: r.parent,
2956
+ labelType: "markdown"
2861
2957
  };
2862
- e.push(a);
2863
- let o = this.classes.get(i.class)?.id ?? "";
2864
- if (o) {
2958
+ e.push(i);
2959
+ let a = this.classes.get(r.class)?.id;
2960
+ if (a) {
2865
2961
  let e = {
2866
- id: `edgeNote${r}`,
2867
- start: i.id,
2868
- end: o,
2962
+ id: `edgeNote${r.index}`,
2963
+ start: r.id,
2964
+ end: a,
2869
2965
  type: "normal",
2870
2966
  thickness: "normal",
2871
2967
  classes: "relation",
@@ -2891,7 +2987,7 @@ var classDiagram_default = parser, visibilityValues = [
2891
2987
  };
2892
2988
  e.push(r);
2893
2989
  }
2894
- r = 0;
2990
+ let r = 0;
2895
2991
  for (let e of this.relations) {
2896
2992
  r++;
2897
2993
  let i = {
@@ -2914,7 +3010,8 @@ var classDiagram_default = parser, visibilityValues = [
2914
3010
  labelStyle: ["display: inline-block"],
2915
3011
  style: e.style || "",
2916
3012
  pattern: e.relation.lineType == 1 ? "dashed" : "solid",
2917
- look: n.look
3013
+ look: n.look,
3014
+ labelType: "markdown"
2918
3015
  };
2919
3016
  t.push(i);
2920
3017
  }
@@ -2938,9 +3035,37 @@ var classDiagram_default = parser, visibilityValues = [
2938
3035
 
2939
3036
  }
2940
3037
 
3038
+ .cluster-label text {
3039
+ fill: ${e.titleColor};
3040
+ }
3041
+ .cluster-label span {
3042
+ color: ${e.titleColor};
3043
+ }
3044
+ .cluster-label span p {
3045
+ background-color: transparent;
3046
+ }
3047
+
3048
+ .cluster rect {
3049
+ fill: ${e.clusterBkg};
3050
+ stroke: ${e.clusterBorder};
3051
+ stroke-width: 1px;
3052
+ }
3053
+
3054
+ .cluster text {
3055
+ fill: ${e.titleColor};
3056
+ }
3057
+
3058
+ .cluster span {
3059
+ color: ${e.titleColor};
3060
+ }
3061
+
2941
3062
  .nodeLabel, .edgeLabel {
2942
3063
  color: ${e.classText};
2943
3064
  }
3065
+
3066
+ .noteLabel .nodeLabel, .noteLabel .edgeLabel {
3067
+ color: ${e.noteTextColor};
3068
+ }
2944
3069
  .edgeLabel .label rect {
2945
3070
  fill: ${e.mainBkg};
2946
3071
  }
@@ -2965,7 +3090,7 @@ var classDiagram_default = parser, visibilityValues = [
2965
3090
  .node path {
2966
3091
  fill: ${e.mainBkg};
2967
3092
  stroke: ${e.nodeBorder};
2968
- stroke-width: 1px;
3093
+ stroke-width: ${e.strokeWidth};
2969
3094
  }
2970
3095
 
2971
3096
 
@@ -3002,7 +3127,7 @@ g.classGroup line {
3002
3127
 
3003
3128
  .relation {
3004
3129
  stroke: ${e.lineColor};
3005
- stroke-width: 1;
3130
+ stroke-width: ${e.strokeWidth};
3006
3131
  fill: none;
3007
3132
  }
3008
3133
 
@@ -3014,61 +3139,61 @@ g.classGroup line {
3014
3139
  stroke-dasharray: 1 2;
3015
3140
  }
3016
3141
 
3017
- #compositionStart, .composition {
3142
+ [id$="-compositionStart"], .composition {
3018
3143
  fill: ${e.lineColor} !important;
3019
3144
  stroke: ${e.lineColor} !important;
3020
3145
  stroke-width: 1;
3021
3146
  }
3022
3147
 
3023
- #compositionEnd, .composition {
3148
+ [id$="-compositionEnd"], .composition {
3024
3149
  fill: ${e.lineColor} !important;
3025
3150
  stroke: ${e.lineColor} !important;
3026
3151
  stroke-width: 1;
3027
3152
  }
3028
3153
 
3029
- #dependencyStart, .dependency {
3154
+ [id$="-dependencyStart"], .dependency {
3030
3155
  fill: ${e.lineColor} !important;
3031
3156
  stroke: ${e.lineColor} !important;
3032
3157
  stroke-width: 1;
3033
3158
  }
3034
3159
 
3035
- #dependencyStart, .dependency {
3160
+ [id$="-dependencyEnd"], .dependency {
3036
3161
  fill: ${e.lineColor} !important;
3037
3162
  stroke: ${e.lineColor} !important;
3038
3163
  stroke-width: 1;
3039
3164
  }
3040
3165
 
3041
- #extensionStart, .extension {
3166
+ [id$="-extensionStart"], .extension {
3042
3167
  fill: transparent !important;
3043
3168
  stroke: ${e.lineColor} !important;
3044
3169
  stroke-width: 1;
3045
3170
  }
3046
3171
 
3047
- #extensionEnd, .extension {
3172
+ [id$="-extensionEnd"], .extension {
3048
3173
  fill: transparent !important;
3049
3174
  stroke: ${e.lineColor} !important;
3050
3175
  stroke-width: 1;
3051
3176
  }
3052
3177
 
3053
- #aggregationStart, .aggregation {
3178
+ [id$="-aggregationStart"], .aggregation {
3054
3179
  fill: transparent !important;
3055
3180
  stroke: ${e.lineColor} !important;
3056
3181
  stroke-width: 1;
3057
3182
  }
3058
3183
 
3059
- #aggregationEnd, .aggregation {
3184
+ [id$="-aggregationEnd"], .aggregation {
3060
3185
  fill: transparent !important;
3061
3186
  stroke: ${e.lineColor} !important;
3062
3187
  stroke-width: 1;
3063
3188
  }
3064
3189
 
3065
- #lollipopStart, .lollipop {
3190
+ [id$="-lollipopStart"], .lollipop {
3066
3191
  fill: ${e.mainBkg} !important;
3067
3192
  stroke: ${e.lineColor} !important;
3068
3193
  stroke-width: 1;
3069
3194
  }
3070
3195
 
3071
- #lollipopEnd, .lollipop {
3196
+ [id$="-lollipopEnd"], .lollipop {
3072
3197
  fill: ${e.mainBkg} !important;
3073
3198
  stroke: ${e.lineColor} !important;
3074
3199
  stroke-width: 1;
@@ -3084,6 +3209,19 @@ g.classGroup line {
3084
3209
  font-size: 18px;
3085
3210
  fill: ${e.textColor};
3086
3211
  }
3212
+
3213
+ .edgeLabel[data-look="neo"] {
3214
+ background-color: ${e.edgeLabelBackground};
3215
+ p {
3216
+ background-color: ${e.edgeLabelBackground};
3217
+ }
3218
+ rect {
3219
+ opacity: 0.5;
3220
+ background-color: ${e.edgeLabelBackground};
3221
+ fill: ${e.edgeLabelBackground};
3222
+ }
3223
+ text-align: center;
3224
+ }
3087
3225
  ${getIconStyles()}
3088
3226
  `, "getStyles"), classRenderer_v3_unified_default = {
3089
3227
  getClasses: /* @__PURE__ */ __name(function(e, t) {
@@ -3091,14 +3229,16 @@ g.classGroup line {
3091
3229
  }, "getClasses"),
3092
3230
  draw: /* @__PURE__ */ __name(async function(e, n, r, i) {
3093
3231
  log.info("REF0:"), log.info("Drawing class diagram (v3)", n);
3094
- let { securityLevel: a, state: s, layout: c } = getConfig2(), l = i.db.getData(), u = getDiagramElement(n, a);
3095
- l.type = i.type, l.layoutAlgorithm = getRegisteredLayoutAlgorithm(c), l.nodeSpacing = s?.nodeSpacing || 50, l.rankSpacing = s?.rankSpacing || 50, l.markers = [
3232
+ let { securityLevel: a, state: o, layout: c } = getConfig2();
3233
+ i.db.setDiagramId(n);
3234
+ let l = i.db.getData(), u = getDiagramElement(n, a);
3235
+ l.type = i.type, l.layoutAlgorithm = getRegisteredLayoutAlgorithm(c), l.nodeSpacing = o?.nodeSpacing || 50, l.rankSpacing = o?.rankSpacing || 50, l.markers = [
3096
3236
  "aggregation",
3097
3237
  "extension",
3098
3238
  "composition",
3099
3239
  "dependency",
3100
3240
  "lollipop"
3101
- ], l.diagramId = n, await render(l, u), utils_default.insertTitle(u, "classDiagramTitleText", s?.titleTopMargin ?? 25, i.db.getDiagramTitle()), setupViewPortForSVG(u, 8, "classDiagram", s?.useMaxWidth ?? !0);
3241
+ ], l.diagramId = n, await render(l, u), utils_default.insertTitle(u, "classDiagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), setupViewPortForSVG(u, 8, "classDiagram", o?.useMaxWidth ?? !0);
3102
3242
  }, "draw"),
3103
3243
  getDir: /* @__PURE__ */ __name((e, t = "TB") => {
3104
3244
  if (!e.doc) return t;