@windrun-huaiin/third-ui 13.1.4 → 13.1.5

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 (770) hide show
  1. package/dist/_virtual/advancedFormat.js +1 -1
  2. package/dist/_virtual/advancedFormat.mjs +1 -1
  3. package/dist/_virtual/customParseFormat.js +1 -1
  4. package/dist/_virtual/customParseFormat.mjs +1 -1
  5. package/dist/_virtual/dayjs.min.js +1 -1
  6. package/dist/_virtual/dayjs.min.mjs +1 -1
  7. package/dist/_virtual/index.js +1 -1
  8. package/dist/_virtual/index.mjs +1 -1
  9. package/dist/_virtual/isoWeek.js +1 -1
  10. package/dist/_virtual/isoWeek.mjs +1 -1
  11. package/dist/clerk/clerk-user-client.js +6 -5
  12. package/dist/clerk/clerk-user-client.mjs +7 -6
  13. package/dist/lib/clerk-intl.d.ts +1 -1
  14. package/dist/node_modules/.pnpm/{@braintree_sanitize-url@7.1.1 → @braintree_sanitize-url@7.1.2}/node_modules/@braintree/sanitize-url/dist/index.js +1 -2
  15. package/dist/node_modules/.pnpm/{@braintree_sanitize-url@7.1.1 → @braintree_sanitize-url@7.1.2}/node_modules/@braintree/sanitize-url/dist/index.mjs +1 -2
  16. package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/icon/defaults.js +4 -12
  17. package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/icon/defaults.mjs +4 -12
  18. package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/svg/id.js +11 -21
  19. package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/svg/id.mjs +11 -21
  20. package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatDecimal.js +2 -2
  21. package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatDecimal.mjs +2 -2
  22. package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatPrefixAuto.js +1 -1
  23. package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatPrefixAuto.mjs +1 -1
  24. package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/locale.js +7 -8
  25. package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/locale.mjs +7 -8
  26. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/tickFormat.js +5 -5
  27. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/tickFormat.mjs +5 -5
  28. package/dist/node_modules/.pnpm/{dompurify@3.3.0 → dompurify@3.3.3}/node_modules/dompurify/dist/purify.es.js +21 -4
  29. package/dist/node_modules/.pnpm/{dompurify@3.3.0 → dompurify@3.3.3}/node_modules/dompurify/dist/purify.es.mjs +21 -4
  30. package/dist/node_modules/.pnpm/{katex@0.16.33 → katex@0.16.38}/node_modules/katex/dist/katex.js +4350 -6293
  31. package/dist/node_modules/.pnpm/{katex@0.16.33 → katex@0.16.38}/node_modules/katex/dist/katex.mjs +4350 -6293
  32. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +2 -2
  33. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.mjs +2 -2
  34. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +5 -5
  35. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.mjs +5 -5
  36. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +1 -1
  37. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.mjs +1 -1
  38. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/mermaid.core.js +1 -1
  39. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/mermaid.core.mjs +1 -1
  40. package/package.json +4 -4
  41. package/src/clerk/clerk-user-client.tsx +40 -36
  42. package/src/lib/clerk-intl.ts +1 -1
  43. package/dist/_virtual/_commonjs-dynamic-modules.js +0 -7
  44. package/dist/_virtual/_commonjs-dynamic-modules.mjs +0 -5
  45. package/dist/_virtual/api.js +0 -5
  46. package/dist/_virtual/api.mjs +0 -3
  47. package/dist/_virtual/api2.js +0 -5
  48. package/dist/_virtual/api2.mjs +0 -3
  49. package/dist/_virtual/connection.js +0 -5
  50. package/dist/_virtual/connection.mjs +0 -3
  51. package/dist/_virtual/connection2.js +0 -5
  52. package/dist/_virtual/connection2.mjs +0 -3
  53. package/dist/_virtual/disposable.js +0 -5
  54. package/dist/_virtual/disposable.mjs +0 -3
  55. package/dist/_virtual/duration.js +0 -9
  56. package/dist/_virtual/duration.mjs +0 -7
  57. package/dist/_virtual/duration2.js +0 -5
  58. package/dist/_virtual/duration2.mjs +0 -3
  59. package/dist/_virtual/is2.js +0 -5
  60. package/dist/_virtual/is2.mjs +0 -3
  61. package/dist/_virtual/linkedMap.js +0 -5
  62. package/dist/_virtual/linkedMap.mjs +0 -3
  63. package/dist/_virtual/main.js +0 -7
  64. package/dist/_virtual/main.mjs +0 -5
  65. package/dist/_virtual/main2.js +0 -5
  66. package/dist/_virtual/main2.mjs +0 -3
  67. package/dist/_virtual/main3.js +0 -5
  68. package/dist/_virtual/main3.mjs +0 -3
  69. package/dist/_virtual/main4.js +0 -5
  70. package/dist/_virtual/main4.mjs +0 -3
  71. package/dist/_virtual/messageBuffer.js +0 -5
  72. package/dist/_virtual/messageBuffer.mjs +0 -3
  73. package/dist/_virtual/messageReader.js +0 -5
  74. package/dist/_virtual/messageReader.mjs +0 -3
  75. package/dist/_virtual/messageWriter.js +0 -5
  76. package/dist/_virtual/messageWriter.mjs +0 -3
  77. package/dist/_virtual/messages.js +0 -5
  78. package/dist/_virtual/messages.mjs +0 -3
  79. package/dist/_virtual/messages2.js +0 -5
  80. package/dist/_virtual/messages2.mjs +0 -3
  81. package/dist/_virtual/protocol.callHierarchy.js +0 -5
  82. package/dist/_virtual/protocol.callHierarchy.mjs +0 -3
  83. package/dist/_virtual/protocol.colorProvider.js +0 -5
  84. package/dist/_virtual/protocol.colorProvider.mjs +0 -3
  85. package/dist/_virtual/protocol.configuration.js +0 -5
  86. package/dist/_virtual/protocol.configuration.mjs +0 -3
  87. package/dist/_virtual/protocol.declaration.js +0 -5
  88. package/dist/_virtual/protocol.declaration.mjs +0 -3
  89. package/dist/_virtual/protocol.diagnostic.js +0 -5
  90. package/dist/_virtual/protocol.diagnostic.mjs +0 -3
  91. package/dist/_virtual/protocol.fileOperations.js +0 -5
  92. package/dist/_virtual/protocol.fileOperations.mjs +0 -3
  93. package/dist/_virtual/protocol.foldingRange.js +0 -5
  94. package/dist/_virtual/protocol.foldingRange.mjs +0 -3
  95. package/dist/_virtual/protocol.implementation.js +0 -5
  96. package/dist/_virtual/protocol.implementation.mjs +0 -3
  97. package/dist/_virtual/protocol.inlayHint.js +0 -5
  98. package/dist/_virtual/protocol.inlayHint.mjs +0 -3
  99. package/dist/_virtual/protocol.inlineCompletion.js +0 -5
  100. package/dist/_virtual/protocol.inlineCompletion.mjs +0 -3
  101. package/dist/_virtual/protocol.inlineValue.js +0 -5
  102. package/dist/_virtual/protocol.inlineValue.mjs +0 -3
  103. package/dist/_virtual/protocol.js +0 -5
  104. package/dist/_virtual/protocol.linkedEditingRange.js +0 -5
  105. package/dist/_virtual/protocol.linkedEditingRange.mjs +0 -3
  106. package/dist/_virtual/protocol.mjs +0 -3
  107. package/dist/_virtual/protocol.moniker.js +0 -5
  108. package/dist/_virtual/protocol.moniker.mjs +0 -3
  109. package/dist/_virtual/protocol.notebook.js +0 -5
  110. package/dist/_virtual/protocol.notebook.mjs +0 -3
  111. package/dist/_virtual/protocol.progress.js +0 -5
  112. package/dist/_virtual/protocol.progress.mjs +0 -3
  113. package/dist/_virtual/protocol.selectionRange.js +0 -5
  114. package/dist/_virtual/protocol.selectionRange.mjs +0 -3
  115. package/dist/_virtual/protocol.semanticTokens.js +0 -5
  116. package/dist/_virtual/protocol.semanticTokens.mjs +0 -3
  117. package/dist/_virtual/protocol.showDocument.js +0 -5
  118. package/dist/_virtual/protocol.showDocument.mjs +0 -3
  119. package/dist/_virtual/protocol.typeDefinition.js +0 -5
  120. package/dist/_virtual/protocol.typeDefinition.mjs +0 -3
  121. package/dist/_virtual/protocol.typeHierarchy.js +0 -5
  122. package/dist/_virtual/protocol.typeHierarchy.mjs +0 -3
  123. package/dist/_virtual/protocol.workspaceFolder.js +0 -5
  124. package/dist/_virtual/protocol.workspaceFolder.mjs +0 -3
  125. package/dist/_virtual/ril.js +0 -5
  126. package/dist/_virtual/ril.mjs +0 -3
  127. package/dist/_virtual/semaphore.js +0 -5
  128. package/dist/_virtual/semaphore.mjs +0 -3
  129. package/dist/_virtual/sharedArrayCancellation.js +0 -5
  130. package/dist/_virtual/sharedArrayCancellation.mjs +0 -3
  131. package/dist/clerk/clerk-optional-auth.d.ts +0 -12
  132. package/dist/clerk/clerk-optional-auth.js +0 -33
  133. package/dist/clerk/clerk-optional-auth.mjs +0 -31
  134. package/dist/clerk/optional-auth.d.ts +0 -12
  135. package/dist/clerk/optional-auth.js +0 -47
  136. package/dist/clerk/optional-auth.mjs +0 -45
  137. package/dist/node_modules/.pnpm/@chevrotain_gast@11.1.2/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -88
  138. package/dist/node_modules/.pnpm/@chevrotain_gast@11.1.2/node_modules/@chevrotain/gast/lib/src/helpers.mjs +0 -83
  139. package/dist/node_modules/.pnpm/@chevrotain_gast@11.1.2/node_modules/@chevrotain/gast/lib/src/model.js +0 -246
  140. package/dist/node_modules/.pnpm/@chevrotain_gast@11.1.2/node_modules/@chevrotain/gast/lib/src/model.mjs +0 -232
  141. package/dist/node_modules/.pnpm/@chevrotain_gast@11.1.2/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -56
  142. package/dist/node_modules/.pnpm/@chevrotain_gast@11.1.2/node_modules/@chevrotain/gast/lib/src/visitor.mjs +0 -54
  143. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -97
  144. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.mjs +0 -95
  145. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -48
  146. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.mjs +0 -44
  147. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -742
  148. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.mjs +0 -740
  149. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -43
  150. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.mjs +0 -36
  151. package/dist/node_modules/.pnpm/@chevrotain_utils@11.1.2/node_modules/@chevrotain/utils/lib/src/print.js +0 -18
  152. package/dist/node_modules/.pnpm/@chevrotain_utils@11.1.2/node_modules/@chevrotain/utils/lib/src/print.mjs +0 -15
  153. package/dist/node_modules/.pnpm/@chevrotain_utils@11.1.2/node_modules/@chevrotain/utils/lib/src/timer.js +0 -11
  154. package/dist/node_modules/.pnpm/@chevrotain_utils@11.1.2/node_modules/@chevrotain/utils/lib/src/timer.mjs +0 -9
  155. package/dist/node_modules/.pnpm/@chevrotain_utils@11.1.2/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -21
  156. package/dist/node_modules/.pnpm/@chevrotain_utils@11.1.2/node_modules/@chevrotain/utils/lib/src/to-fast-properties.mjs +0 -19
  157. package/dist/node_modules/.pnpm/@fingerprintjs_fingerprintjs@4.6.2/node_modules/@fingerprintjs/fingerprintjs/dist/fp.esm.js +0 -3212
  158. package/dist/node_modules/.pnpm/@fingerprintjs_fingerprintjs@4.6.2/node_modules/@fingerprintjs/fingerprintjs/dist/fp.esm.mjs +0 -3187
  159. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +0 -9
  160. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.mjs +0 -2
  161. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +0 -41
  162. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.mjs +0 -38
  163. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +0 -122
  164. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.mjs +0 -119
  165. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +0 -41
  166. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.mjs +0 -38
  167. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +0 -54
  168. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.mjs +0 -51
  169. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +0 -41
  170. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.mjs +0 -38
  171. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +0 -1073
  172. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.mjs +0 -1036
  173. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +0 -41
  174. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.mjs +0 -38
  175. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +0 -58
  176. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.mjs +0 -55
  177. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +0 -9
  178. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.mjs +0 -2
  179. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +0 -9
  180. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.mjs +0 -2
  181. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +0 -9
  182. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.mjs +0 -2
  183. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +0 -9
  184. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.mjs +0 -2
  185. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +0 -9
  186. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.mjs +0 -2
  187. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +0 -9
  188. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.mjs +0 -2
  189. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +0 -129
  190. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.mjs +0 -78
  191. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.1.2/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -567
  192. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.1.2/node_modules/chevrotain-allstar/lib/all-star-lookahead.mjs +0 -565
  193. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.1.2/node_modules/chevrotain-allstar/lib/atn.js +0 -426
  194. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.1.2/node_modules/chevrotain-allstar/lib/atn.mjs +0 -409
  195. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.1.2/node_modules/chevrotain-allstar/lib/dfa.js +0 -52
  196. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.1.2/node_modules/chevrotain-allstar/lib/dfa.mjs +0 -48
  197. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -13
  198. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/lang/lang_extensions.mjs +0 -11
  199. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/constants.js +0 -6
  200. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/constants.mjs +0 -4
  201. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -77
  202. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/cst/cst.mjs +0 -72
  203. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -106
  204. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.mjs +0 -100
  205. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -191
  206. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/errors_public.mjs +0 -187
  207. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -66
  208. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/exceptions_public.mjs +0 -60
  209. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -469
  210. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/checks.mjs +0 -454
  211. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -66
  212. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/first.mjs +0 -61
  213. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -48
  214. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/follow.mjs +0 -44
  215. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -27
  216. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.mjs +0 -24
  217. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -510
  218. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/interpreter.mjs +0 -500
  219. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -33
  220. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/keys.mjs +0 -23
  221. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -52
  222. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.mjs +0 -50
  223. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -493
  224. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/lookahead.mjs +0 -480
  225. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -44
  226. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/resolver.mjs +0 -41
  227. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -108
  228. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/rest.mjs +0 -106
  229. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -208
  230. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/parser.mjs +0 -201
  231. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +0 -27
  232. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.mjs +0 -25
  233. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -79
  234. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.mjs +0 -77
  235. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -304
  236. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.mjs +0 -302
  237. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -74
  238. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.mjs +0 -72
  239. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -141
  240. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.mjs +0 -138
  241. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -52
  242. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.mjs +0 -50
  243. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -339
  244. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.mjs +0 -337
  245. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -555
  246. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.mjs +0 -553
  247. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -305
  248. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.mjs +0 -299
  249. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -198
  250. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.mjs +0 -196
  251. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -23
  252. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.mjs +0 -21
  253. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/lexer.js +0 -913
  254. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/lexer.mjs +0 -888
  255. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -12
  256. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/lexer_errors_public.mjs +0 -10
  257. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -659
  258. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/lexer_public.mjs +0 -657
  259. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -261
  260. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/reg_exp.mjs +0 -256
  261. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -23
  262. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/reg_exp_parser.mjs +0 -20
  263. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/tokens.js +0 -140
  264. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/tokens.mjs +0 -125
  265. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -95
  266. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/tokens_public.mjs +0 -88
  267. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/duration.js +0 -18
  268. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/duration.mjs +0 -16
  269. package/dist/node_modules/.pnpm/katex@0.16.25/node_modules/katex/dist/katex.js +0 -18557
  270. package/dist/node_modules/.pnpm/katex@0.16.25/node_modules/katex/dist/katex.mjs +0 -18541
  271. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/default-module.js +0 -103
  272. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/default-module.mjs +0 -100
  273. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/dependency-injection.js +0 -155
  274. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/dependency-injection.mjs +0 -153
  275. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/documentation/comment-provider.js +0 -23
  276. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/documentation/comment-provider.mjs +0 -21
  277. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/documentation/documentation-provider.js +0 -70
  278. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/documentation/documentation-provider.mjs +0 -68
  279. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/documentation/jsdoc.js +0 -510
  280. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/documentation/jsdoc.mjs +0 -507
  281. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/languages/generated/ast.js +0 -1216
  282. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/languages/generated/ast.mjs +0 -1130
  283. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/languages/grammar-config.js +0 -31
  284. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/languages/grammar-config.mjs +0 -29
  285. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/async-parser.js +0 -23
  286. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/async-parser.mjs +0 -21
  287. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/completion-parser-builder.js +0 -20
  288. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/completion-parser-builder.mjs +0 -18
  289. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/cst-node-builder.js +0 -231
  290. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/cst-node-builder.mjs +0 -225
  291. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/langium-parser-builder.js +0 -32
  292. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/langium-parser-builder.mjs +0 -29
  293. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/langium-parser.js +0 -678
  294. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/langium-parser.mjs +0 -671
  295. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/lexer.js +0 -86
  296. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/lexer.mjs +0 -79
  297. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/parser-builder-base.js +0 -483
  298. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/parser-builder-base.mjs +0 -481
  299. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/token-builder.js +0 -123
  300. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/token-builder.mjs +0 -121
  301. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/value-converter.js +0 -102
  302. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/value-converter.mjs +0 -100
  303. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/linker.js +0 -290
  304. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/linker.mjs +0 -287
  305. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/name-provider.js +0 -26
  306. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/name-provider.mjs +0 -23
  307. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/references.js +0 -136
  308. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/references.mjs +0 -134
  309. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/scope-computation.js +0 -91
  310. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/scope-computation.mjs +0 -89
  311. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/scope-provider.js +0 -68
  312. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/scope-provider.mjs +0 -66
  313. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/scope.js +0 -101
  314. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/scope.mjs +0 -98
  315. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/serializer/hydrator.js +0 -279
  316. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/serializer/hydrator.mjs +0 -277
  317. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/serializer/json-serializer.js +0 -271
  318. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/serializer/json-serializer.mjs +0 -268
  319. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/service-registry.js +0 -82
  320. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/service-registry.mjs +0 -80
  321. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/syntax-tree.js +0 -120
  322. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/syntax-tree.mjs +0 -110
  323. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/ast-utils.js +0 -229
  324. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/ast-utils.mjs +0 -218
  325. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/caching.js +0 -153
  326. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/caching.mjs +0 -148
  327. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/collections.js +0 -200
  328. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/collections.mjs +0 -197
  329. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/cst-utils.js +0 -149
  330. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/cst-utils.mjs +0 -138
  331. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/disposable.js +0 -16
  332. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/disposable.mjs +0 -16
  333. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/errors.js +0 -18
  334. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/errors.mjs +0 -15
  335. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/grammar-loader.js +0 -43
  336. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/grammar-loader.mjs +0 -41
  337. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/grammar-utils.js +0 -501
  338. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/grammar-utils.mjs +0 -483
  339. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/promise-utils.js +0 -101
  340. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/promise-utils.mjs +0 -94
  341. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/regexp-utils.js +0 -283
  342. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/regexp-utils.mjs +0 -275
  343. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/stream.js +0 -517
  344. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/stream.mjs +0 -511
  345. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/uri-utils.js +0 -192
  346. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/uri-utils.mjs +0 -189
  347. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/validation/document-validator.js +0 -296
  348. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/validation/document-validator.mjs +0 -290
  349. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/validation/validation-registry.js +0 -168
  350. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/validation/validation-registry.mjs +0 -165
  351. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/ast-descriptions.js +0 -90
  352. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/ast-descriptions.mjs +0 -87
  353. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/ast-node-locator.js +0 -49
  354. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/ast-node-locator.mjs +0 -47
  355. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/configuration.js +0 -94
  356. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/configuration.mjs +0 -92
  357. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/document-builder.js +0 -500
  358. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/document-builder.mjs +0 -498
  359. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/documents.js +0 -287
  360. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/documents.mjs +0 -280
  361. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/file-system-provider.js +0 -45
  362. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/file-system-provider.mjs +0 -42
  363. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/index-manager.js +0 -101
  364. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/index-manager.mjs +0 -99
  365. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/workspace-lock.js +0 -79
  366. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/workspace-lock.mjs +0 -77
  367. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/workspace-manager.js +0 -140
  368. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/workspace-manager.mjs +0 -138
  369. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.js +0 -22
  370. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs +0 -20
  371. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseExtremum.js +0 -34
  372. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseExtremum.mjs +0 -32
  373. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGt.js +0 -16
  374. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGt.mjs +0 -14
  375. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseLt.js +0 -16
  376. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseLt.mjs +0 -14
  377. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.js +0 -44
  378. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs +0 -42
  379. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.js +0 -96
  380. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs +0 -94
  381. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseOrderBy.js +0 -51
  382. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseOrderBy.mjs +0 -49
  383. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePick.js +0 -21
  384. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePick.mjs +0 -19
  385. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRange.js +0 -30
  386. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRange.mjs +0 -28
  387. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSortBy.js +0 -23
  388. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSortBy.mjs +0 -21
  389. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseZipObject.js +0 -25
  390. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseZipObject.mjs +0 -23
  391. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_compareAscending.js +0 -43
  392. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_compareAscending.mjs +0 -41
  393. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_compareMultiple.js +0 -46
  394. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_compareMultiple.mjs +0 -44
  395. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createRange.js +0 -32
  396. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createRange.mjs +0 -30
  397. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_flatRest.js +0 -18
  398. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_flatRest.mjs +0 -16
  399. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.js +0 -23
  400. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs +0 -21
  401. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.js +0 -31
  402. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.mjs +0 -29
  403. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/forIn.js +0 -41
  404. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/forIn.mjs +0 -39
  405. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/forOwn.js +0 -38
  406. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/forOwn.mjs +0 -36
  407. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.js +0 -64
  408. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs +0 -62
  409. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/mapValues.js +0 -45
  410. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/mapValues.mjs +0 -43
  411. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/max.js +0 -31
  412. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/max.mjs +0 -29
  413. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.js +0 -41
  414. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs +0 -39
  415. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/min.js +0 -31
  416. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/min.mjs +0 -29
  417. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/minBy.js +0 -36
  418. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/minBy.mjs +0 -34
  419. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/pick.js +0 -27
  420. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/pick.mjs +0 -25
  421. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/range.js +0 -48
  422. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/range.mjs +0 -46
  423. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/sortBy.js +0 -50
  424. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/sortBy.mjs +0 -48
  425. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.js +0 -34
  426. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs +0 -32
  427. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/union.js +0 -28
  428. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/union.mjs +0 -26
  429. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqBy.js +0 -33
  430. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqBy.mjs +0 -31
  431. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqueId.js +0 -30
  432. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqueId.mjs +0 -28
  433. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/zipObject.js +0 -26
  434. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/zipObject.mjs +0 -24
  435. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayAggregator.js +0 -24
  436. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayAggregator.mjs +0 -22
  437. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEvery.js +0 -25
  438. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEvery.mjs +0 -23
  439. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAggregator.js +0 -23
  440. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAggregator.mjs +0 -21
  441. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseDifference.js +0 -59
  442. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseDifference.mjs +0 -57
  443. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseEvery.js +0 -23
  444. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseEvery.mjs +0 -21
  445. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsRegExp.js +0 -20
  446. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsRegExp.mjs +0 -18
  447. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSlice.js +0 -33
  448. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSlice.mjs +0 -31
  449. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSome.js +0 -24
  450. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSome.mjs +0 -22
  451. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createAggregator.js +0 -25
  452. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createAggregator.mjs +0 -23
  453. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/assign.js +0 -60
  454. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/assign.mjs +0 -58
  455. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/compact.js +0 -33
  456. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/compact.mjs +0 -31
  457. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/difference.js +0 -35
  458. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/difference.mjs +0 -33
  459. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/drop.js +0 -40
  460. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/drop.mjs +0 -38
  461. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/dropRight.js +0 -41
  462. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/dropRight.mjs +0 -39
  463. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/every.js +0 -54
  464. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/every.mjs +0 -52
  465. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/groupBy.js +0 -43
  466. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/groupBy.mjs +0 -41
  467. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/head.js +0 -25
  468. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/head.mjs +0 -23
  469. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/includes.js +0 -55
  470. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/includes.mjs +0 -53
  471. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/indexOf.js +0 -37
  472. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/indexOf.mjs +0 -35
  473. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isRegExp.js +0 -29
  474. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isRegExp.mjs +0 -27
  475. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isString.js +0 -32
  476. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isString.mjs +0 -30
  477. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/negate.js +0 -42
  478. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/negate.mjs +0 -40
  479. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/pickBy.js +0 -39
  480. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/pickBy.mjs +0 -37
  481. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/reject.js +0 -48
  482. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/reject.mjs +0 -46
  483. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/some.js +0 -49
  484. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/some.mjs +0 -47
  485. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/uniq.js +0 -27
  486. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/uniq.mjs +0 -25
  487. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +0 -1139
  488. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.mjs +0 -1137
  489. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +0 -3654
  490. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.mjs +0 -3652
  491. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.js +0 -2503
  492. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.mjs +0 -2501
  493. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +0 -19
  494. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.mjs +0 -17
  495. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +0 -18
  496. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.mjs +0 -16
  497. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +0 -3063
  498. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.mjs +0 -3013
  499. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +0 -81
  500. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.mjs +0 -76
  501. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +0 -107
  502. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.mjs +0 -101
  503. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-B4BG7PRW.js +0 -1849
  504. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-B4BG7PRW.mjs +0 -1844
  505. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +0 -19
  506. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.mjs +0 -17
  507. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +0 -1936
  508. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.mjs +0 -1931
  509. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +0 -146
  510. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.mjs +0 -144
  511. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +0 -21
  512. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.mjs +0 -19
  513. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +0 -22
  514. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.mjs +0 -20
  515. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +0 -118
  516. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.mjs +0 -114
  517. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +0 -433
  518. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.mjs +0 -426
  519. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +0 -5271
  520. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.mjs +0 -5260
  521. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +0 -2699
  522. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.mjs +0 -2696
  523. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +0 -69
  524. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.mjs +0 -65
  525. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +0 -28
  526. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.mjs +0 -26
  527. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +0 -827
  528. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.mjs +0 -821
  529. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +0 -22
  530. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.mjs +0 -20
  531. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +0 -571
  532. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.mjs +0 -553
  533. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +0 -112
  534. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.mjs +0 -104
  535. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +0 -31
  536. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.mjs +0 -29
  537. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +0 -31
  538. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.mjs +0 -29
  539. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +0 -302
  540. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.mjs +0 -300
  541. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +0 -662
  542. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.mjs +0 -660
  543. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +0 -540
  544. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.mjs +0 -538
  545. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +0 -312
  546. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.mjs +0 -310
  547. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +0 -224
  548. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.mjs +0 -222
  549. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q2GNP2WA.js +0 -1180
  550. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q2GNP2WA.mjs +0 -1178
  551. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-NV44I4VS.js +0 -2355
  552. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-NV44I4VS.mjs +0 -2353
  553. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +0 -2201
  554. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.mjs +0 -2199
  555. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +0 -1219
  556. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.mjs +0 -1217
  557. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +0 -42
  558. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.mjs +0 -40
  559. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +0 -1269
  560. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.mjs +0 -1267
  561. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-3W4ZIXB7.js +0 -1065
  562. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-3W4ZIXB7.mjs +0 -1063
  563. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-VGOIOE7T.js +0 -1113
  564. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-VGOIOE7T.mjs +0 -1111
  565. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +0 -198
  566. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.mjs +0 -196
  567. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-AYHSOK5B.js +0 -1353
  568. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-AYHSOK5B.mjs +0 -1351
  569. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-UZGBJVZJ.js +0 -1181
  570. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-UZGBJVZJ.mjs +0 -1179
  571. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +0 -700
  572. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.mjs +0 -698
  573. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +0 -3893
  574. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.mjs +0 -3891
  575. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +0 -466
  576. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.mjs +0 -464
  577. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +0 -31
  578. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.mjs +0 -29
  579. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +0 -1238
  580. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.mjs +0 -1236
  581. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +0 -1892
  582. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.mjs +0 -1890
  583. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/mermaid.core.js +0 -1311
  584. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/mermaid.core.mjs +0 -1309
  585. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-medium-image-zoom/dist/index.js +0 -814
  586. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-medium-image-zoom/dist/index.mjs +0 -809
  587. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/pagination.js +0 -461
  588. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/pagination.mjs +0 -459
  589. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/classes-to-selector.js +0 -8
  590. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/classes-to-selector.mjs +0 -6
  591. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/create-element-if-not-defined.js +0 -23
  592. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/create-element-if-not-defined.mjs +0 -21
  593. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/ssr-window.esm.js +0 -143
  594. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/ssr-window.esm.mjs +0 -140
  595. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/swiper-core.js +0 -3874
  596. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/swiper-core.mjs +0 -3871
  597. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/update-on-virtual-data.js +0 -129
  598. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/update-on-virtual-data.mjs +0 -124
  599. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/update-swiper.js +0 -226
  600. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/update-swiper.mjs +0 -216
  601. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/utils.js +0 -310
  602. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/shared/utils.mjs +0 -288
  603. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/swiper-react.js +0 -390
  604. package/dist/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/swiper-react.mjs +0 -387
  605. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js +0 -106
  606. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.mjs +0 -104
  607. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -1232
  608. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.mjs +0 -1230
  609. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -28
  610. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.mjs +0 -26
  611. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -410
  612. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.mjs +0 -408
  613. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -164
  614. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.mjs +0 -162
  615. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -212
  616. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.mjs +0 -210
  617. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -131
  618. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.mjs +0 -129
  619. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -319
  620. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.mjs +0 -317
  621. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -81
  622. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.mjs +0 -79
  623. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -89
  624. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.mjs +0 -87
  625. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/node/main.js +0 -277
  626. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/node/main.mjs +0 -275
  627. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/node/ril.js +0 -175
  628. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/node/ril.mjs +0 -173
  629. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/node.js +0 -21
  630. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/node.mjs +0 -19
  631. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -96
  632. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.mjs +0 -94
  633. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -28
  634. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.mjs +0 -26
  635. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -57
  636. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.mjs +0 -55
  637. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -55
  638. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.mjs +0 -53
  639. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -45
  640. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.mjs +0 -43
  641. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -37
  642. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.mjs +0 -35
  643. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -33
  644. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.mjs +0 -31
  645. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -89
  646. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.mjs +0 -87
  647. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -114
  648. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.mjs +0 -112
  649. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -43
  650. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.mjs +0 -41
  651. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -32
  652. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.mjs +0 -30
  653. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -56
  654. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.mjs +0 -54
  655. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -35
  656. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.mjs +0 -33
  657. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -43
  658. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.mjs +0 -41
  659. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -979
  660. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -32
  661. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.mjs +0 -30
  662. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.mjs +0 -977
  663. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -81
  664. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.mjs +0 -79
  665. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -229
  666. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.mjs +0 -227
  667. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -51
  668. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.mjs +0 -49
  669. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -33
  670. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.mjs +0 -31
  671. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -70
  672. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.mjs +0 -68
  673. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -35
  674. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.mjs +0 -33
  675. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -32
  676. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.mjs +0 -30
  677. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -55
  678. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.mjs +0 -53
  679. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -40
  680. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.mjs +0 -38
  681. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -59
  682. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.mjs +0 -57
  683. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/node/main.js +0 -44
  684. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/node/main.mjs +0 -42
  685. package/dist/node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/umd/main.js +0 -2280
  686. package/dist/node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/umd/main.mjs +0 -2278
  687. package/dist/node_modules/.pnpm/vscode-uri@3.1.0/node_modules/vscode-uri/lib/esm/index.js +0 -6
  688. package/dist/node_modules/.pnpm/vscode-uri@3.1.0/node_modules/vscode-uri/lib/esm/index.mjs +0 -3
  689. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/errors.js +0 -52
  690. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/errors.mjs +0 -50
  691. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/iso.js +0 -44
  692. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/iso.mjs +0 -35
  693. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/parse.js +0 -31
  694. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/parse.mjs +0 -18
  695. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/schemas.js +0 -492
  696. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/classic/schemas.mjs +0 -439
  697. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.js +0 -434
  698. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.mjs +0 -388
  699. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.js +0 -245
  700. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.mjs +0 -232
  701. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/core.js +0 -68
  702. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/core.mjs +0 -62
  703. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.js +0 -80
  704. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.mjs +0 -75
  705. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.js +0 -101
  706. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.mjs +0 -86
  707. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/regexes.js +0 -102
  708. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/regexes.mjs +0 -76
  709. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/registries.js +0 -56
  710. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/registries.mjs +0 -52
  711. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.js +0 -952
  712. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.mjs +0 -909
  713. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.js +0 -182
  714. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.mjs +0 -163
  715. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.js +0 -9
  716. package/dist/node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.mjs +0 -7
  717. /package/dist/node_modules/.pnpm/{@braintree_sanitize-url@7.1.1 → @braintree_sanitize-url@7.1.2}/node_modules/@braintree/sanitize-url/dist/constants.js +0 -0
  718. /package/dist/node_modules/.pnpm/{@braintree_sanitize-url@7.1.1 → @braintree_sanitize-url@7.1.2}/node_modules/@braintree/sanitize-url/dist/constants.mjs +0 -0
  719. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -0
  720. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/customisations/defaults.mjs +0 -0
  721. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/icon/merge.js +0 -0
  722. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/icon/merge.mjs +0 -0
  723. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/icon/name.js +0 -0
  724. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/icon/name.mjs +0 -0
  725. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/icon/transformations.js +0 -0
  726. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/icon/transformations.mjs +0 -0
  727. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -0
  728. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +0 -0
  729. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -0
  730. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/icon-set/tree.mjs +0 -0
  731. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/svg/build.js +0 -0
  732. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/svg/build.mjs +0 -0
  733. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/svg/defs.js +0 -0
  734. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/svg/defs.mjs +0 -0
  735. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/svg/html.js +0 -0
  736. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/svg/html.mjs +0 -0
  737. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/svg/size.js +0 -0
  738. /package/dist/node_modules/.pnpm/{@iconify_utils@3.0.2 → @iconify_utils@3.1.0}/node_modules/@iconify/utils/lib/svg/size.mjs +0 -0
  739. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/defaultLocale.js +0 -0
  740. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/defaultLocale.mjs +0 -0
  741. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/exponent.js +0 -0
  742. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/exponent.mjs +0 -0
  743. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatGroup.js +0 -0
  744. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatGroup.mjs +0 -0
  745. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatNumerals.js +0 -0
  746. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatNumerals.mjs +0 -0
  747. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatRounded.js +0 -0
  748. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatRounded.mjs +0 -0
  749. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatSpecifier.js +0 -0
  750. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatSpecifier.mjs +0 -0
  751. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatTrim.js +0 -0
  752. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatTrim.mjs +0 -0
  753. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatTypes.js +0 -0
  754. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/formatTypes.mjs +0 -0
  755. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/identity.js +0 -0
  756. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/identity.mjs +0 -0
  757. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/precisionFixed.js +0 -0
  758. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/precisionFixed.mjs +0 -0
  759. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/precisionPrefix.js +0 -0
  760. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/precisionPrefix.mjs +0 -0
  761. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/precisionRound.js +0 -0
  762. /package/dist/node_modules/.pnpm/{d3-format@3.1.0 → d3-format@3.1.2}/node_modules/d3-format/src/precisionRound.mjs +0 -0
  763. /package/dist/node_modules/.pnpm/{dayjs@1.11.19 → dayjs@1.11.20}/node_modules/dayjs/dayjs.min.js +0 -0
  764. /package/dist/node_modules/.pnpm/{dayjs@1.11.19 → dayjs@1.11.20}/node_modules/dayjs/dayjs.min.mjs +0 -0
  765. /package/dist/node_modules/.pnpm/{dayjs@1.11.19 → dayjs@1.11.20}/node_modules/dayjs/plugin/advancedFormat.js +0 -0
  766. /package/dist/node_modules/.pnpm/{dayjs@1.11.19 → dayjs@1.11.20}/node_modules/dayjs/plugin/advancedFormat.mjs +0 -0
  767. /package/dist/node_modules/.pnpm/{dayjs@1.11.19 → dayjs@1.11.20}/node_modules/dayjs/plugin/customParseFormat.js +0 -0
  768. /package/dist/node_modules/.pnpm/{dayjs@1.11.19 → dayjs@1.11.20}/node_modules/dayjs/plugin/customParseFormat.mjs +0 -0
  769. /package/dist/node_modules/.pnpm/{dayjs@1.11.19 → dayjs@1.11.20}/node_modules/dayjs/plugin/isoWeek.js +0 -0
  770. /package/dist/node_modules/.pnpm/{dayjs@1.11.19 → dayjs@1.11.20}/node_modules/dayjs/plugin/isoWeek.mjs +0 -0
@@ -1,3891 +0,0 @@
1
- import { drawBackgroundRect, getTextObj, getNoteRect, drawRect, drawEmbeddedImage, drawImage } from './chunk-TZMSLE5B.mjs';
2
- import { load, JSON_SCHEMA } from './chunk-MI3HLSF2.mjs';
3
- import { ImperativeState } from './chunk-QZHKN3VN.mjs';
4
- import { utils_default, parseFontSize, ZERO_WIDTH_SPACE } from './chunk-S3R3BYOJ.mjs';
5
- import { setConfig2, getConfig2, configureSvgSize, assignWithDepth_default, common_default, setAccTitle, setAccDescription, setDiagramTitle, getAccTitle, getAccDescription, getDiagramTitle, clear, sanitizeText, hasKatex, calculateMathMLDimensions, getUrl, renderKatexSanitized, getConfig } from './chunk-ABZYJK2D.mjs';
6
- import { __name, log } from './chunk-AGHRB4JF.mjs';
7
- import '../../../../../../d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.mjs';
8
- import '../../../../../../d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.mjs';
9
- import { d as distExports } from '../../../../../../../../_virtual/index.mjs';
10
- import select from '../../../../../../d3-selection@3.0.0/node_modules/d3-selection/src/select.mjs';
11
-
12
- // src/diagrams/sequence/parser/sequenceDiagram.jison
13
- var parser = (function() {
14
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
15
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
16
- return o2;
17
- }, "o"), $V0 = [1, 2], $V1 = [1, 3], $V2 = [1, 4], $V3 = [2, 4], $V4 = [1, 9], $V5 = [1, 11], $V6 = [1, 13], $V7 = [1, 14], $V8 = [1, 16], $V9 = [1, 17], $Va = [1, 18], $Vb = [1, 24], $Vc = [1, 25], $Vd = [1, 26], $Ve = [1, 27], $Vf = [1, 28], $Vg = [1, 29], $Vh = [1, 30], $Vi = [1, 31], $Vj = [1, 32], $Vk = [1, 33], $Vl = [1, 34], $Vm = [1, 35], $Vn = [1, 36], $Vo = [1, 37], $Vp = [1, 38], $Vq = [1, 39], $Vr = [1, 41], $Vs = [1, 42], $Vt = [1, 43], $Vu = [1, 44], $Vv = [1, 45], $Vw = [1, 46], $Vx = [1, 4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 48, 49, 50, 52, 53, 55, 60, 61, 62, 63, 71], $Vy = [2, 71], $Vz = [4, 5, 16, 50, 52, 53], $VA = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 55, 60, 61, 62, 63, 71], $VB = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 49, 50, 52, 53, 55, 60, 61, 62, 63, 71], $VC = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 48, 50, 52, 53, 55, 60, 61, 62, 63, 71], $VD = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 50, 52, 53, 55, 60, 61, 62, 63, 71], $VE = [69, 70, 71], $VF = [1, 127];
18
- var parser2 = {
19
- trace: /* @__PURE__ */ __name(function trace() {
20
- }, "trace"),
21
- yy: {},
22
- symbols_: { "error": 2, "start": 3, "SPACE": 4, "NEWLINE": 5, "SD": 6, "document": 7, "line": 8, "statement": 9, "box_section": 10, "box_line": 11, "participant_statement": 12, "create": 13, "box": 14, "restOfLine": 15, "end": 16, "signal": 17, "autonumber": 18, "NUM": 19, "off": 20, "activate": 21, "actor": 22, "deactivate": 23, "note_statement": 24, "links_statement": 25, "link_statement": 26, "properties_statement": 27, "details_statement": 28, "title": 29, "legacy_title": 30, "acc_title": 31, "acc_title_value": 32, "acc_descr": 33, "acc_descr_value": 34, "acc_descr_multiline_value": 35, "loop": 36, "rect": 37, "opt": 38, "alt": 39, "else_sections": 40, "par": 41, "par_sections": 42, "par_over": 43, "critical": 44, "option_sections": 45, "break": 46, "option": 47, "and": 48, "else": 49, "participant": 50, "AS": 51, "participant_actor": 52, "destroy": 53, "actor_with_config": 54, "note": 55, "placement": 56, "text2": 57, "over": 58, "actor_pair": 59, "links": 60, "link": 61, "properties": 62, "details": 63, "spaceList": 64, ",": 65, "left_of": 66, "right_of": 67, "signaltype": 68, "+": 69, "-": 70, "ACTOR": 71, "config_object": 72, "CONFIG_START": 73, "CONFIG_CONTENT": 74, "CONFIG_END": 75, "SOLID_OPEN_ARROW": 76, "DOTTED_OPEN_ARROW": 77, "SOLID_ARROW": 78, "BIDIRECTIONAL_SOLID_ARROW": 79, "DOTTED_ARROW": 80, "BIDIRECTIONAL_DOTTED_ARROW": 81, "SOLID_CROSS": 82, "DOTTED_CROSS": 83, "SOLID_POINT": 84, "DOTTED_POINT": 85, "TXT": 86, "$accept": 0, "$end": 1 },
23
- terminals_: { 2: "error", 4: "SPACE", 5: "NEWLINE", 6: "SD", 13: "create", 14: "box", 15: "restOfLine", 16: "end", 18: "autonumber", 19: "NUM", 20: "off", 21: "activate", 23: "deactivate", 29: "title", 30: "legacy_title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "loop", 37: "rect", 38: "opt", 39: "alt", 41: "par", 43: "par_over", 44: "critical", 46: "break", 47: "option", 48: "and", 49: "else", 50: "participant", 51: "AS", 52: "participant_actor", 53: "destroy", 55: "note", 58: "over", 60: "links", 61: "link", 62: "properties", 63: "details", 65: ",", 66: "left_of", 67: "right_of", 69: "+", 70: "-", 71: "ACTOR", 73: "CONFIG_START", 74: "CONFIG_CONTENT", 75: "CONFIG_END", 76: "SOLID_OPEN_ARROW", 77: "DOTTED_OPEN_ARROW", 78: "SOLID_ARROW", 79: "BIDIRECTIONAL_SOLID_ARROW", 80: "DOTTED_ARROW", 81: "BIDIRECTIONAL_DOTTED_ARROW", 82: "SOLID_CROSS", 83: "DOTTED_CROSS", 84: "SOLID_POINT", 85: "DOTTED_POINT", 86: "TXT" },
24
- productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [10, 0], [10, 2], [11, 2], [11, 1], [11, 1], [9, 1], [9, 2], [9, 4], [9, 2], [9, 4], [9, 3], [9, 3], [9, 2], [9, 3], [9, 3], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [45, 1], [45, 4], [42, 1], [42, 4], [40, 1], [40, 4], [12, 5], [12, 3], [12, 5], [12, 3], [12, 3], [12, 3], [24, 4], [24, 4], [25, 3], [26, 3], [27, 3], [28, 3], [64, 2], [64, 1], [59, 3], [59, 1], [56, 1], [56, 1], [17, 5], [17, 5], [17, 4], [54, 2], [72, 3], [22, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [57, 1]],
25
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
26
- var $0 = $$.length - 1;
27
- switch (yystate) {
28
- case 3:
29
- yy.apply($$[$0]);
30
- return $$[$0];
31
- case 4:
32
- case 9:
33
- this.$ = [];
34
- break;
35
- case 5:
36
- case 10:
37
- $$[$0 - 1].push($$[$0]);
38
- this.$ = $$[$0 - 1];
39
- break;
40
- case 6:
41
- case 7:
42
- case 11:
43
- case 12:
44
- this.$ = $$[$0];
45
- break;
46
- case 8:
47
- case 13:
48
- this.$ = [];
49
- break;
50
- case 15:
51
- $$[$0].type = "createParticipant";
52
- this.$ = $$[$0];
53
- break;
54
- case 16:
55
- $$[$0 - 1].unshift({ type: "boxStart", boxData: yy.parseBoxData($$[$0 - 2]) });
56
- $$[$0 - 1].push({ type: "boxEnd", boxText: $$[$0 - 2] });
57
- this.$ = $$[$0 - 1];
58
- break;
59
- case 18:
60
- this.$ = { type: "sequenceIndex", sequenceIndex: Number($$[$0 - 2]), sequenceIndexStep: Number($$[$0 - 1]), sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
61
- break;
62
- case 19:
63
- this.$ = { type: "sequenceIndex", sequenceIndex: Number($$[$0 - 1]), sequenceIndexStep: 1, sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
64
- break;
65
- case 20:
66
- this.$ = { type: "sequenceIndex", sequenceVisible: false, signalType: yy.LINETYPE.AUTONUMBER };
67
- break;
68
- case 21:
69
- this.$ = { type: "sequenceIndex", sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
70
- break;
71
- case 22:
72
- this.$ = { type: "activeStart", signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0 - 1].actor };
73
- break;
74
- case 23:
75
- this.$ = { type: "activeEnd", signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0 - 1].actor };
76
- break;
77
- case 29:
78
- yy.setDiagramTitle($$[$0].substring(6));
79
- this.$ = $$[$0].substring(6);
80
- break;
81
- case 30:
82
- yy.setDiagramTitle($$[$0].substring(7));
83
- this.$ = $$[$0].substring(7);
84
- break;
85
- case 31:
86
- this.$ = $$[$0].trim();
87
- yy.setAccTitle(this.$);
88
- break;
89
- case 32:
90
- case 33:
91
- this.$ = $$[$0].trim();
92
- yy.setAccDescription(this.$);
93
- break;
94
- case 34:
95
- $$[$0 - 1].unshift({ type: "loopStart", loopText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.LOOP_START });
96
- $$[$0 - 1].push({ type: "loopEnd", loopText: $$[$0 - 2], signalType: yy.LINETYPE.LOOP_END });
97
- this.$ = $$[$0 - 1];
98
- break;
99
- case 35:
100
- $$[$0 - 1].unshift({ type: "rectStart", color: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.RECT_START });
101
- $$[$0 - 1].push({ type: "rectEnd", color: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.RECT_END });
102
- this.$ = $$[$0 - 1];
103
- break;
104
- case 36:
105
- $$[$0 - 1].unshift({ type: "optStart", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.OPT_START });
106
- $$[$0 - 1].push({ type: "optEnd", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.OPT_END });
107
- this.$ = $$[$0 - 1];
108
- break;
109
- case 37:
110
- $$[$0 - 1].unshift({ type: "altStart", altText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.ALT_START });
111
- $$[$0 - 1].push({ type: "altEnd", signalType: yy.LINETYPE.ALT_END });
112
- this.$ = $$[$0 - 1];
113
- break;
114
- case 38:
115
- $$[$0 - 1].unshift({ type: "parStart", parText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.PAR_START });
116
- $$[$0 - 1].push({ type: "parEnd", signalType: yy.LINETYPE.PAR_END });
117
- this.$ = $$[$0 - 1];
118
- break;
119
- case 39:
120
- $$[$0 - 1].unshift({ type: "parStart", parText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.PAR_OVER_START });
121
- $$[$0 - 1].push({ type: "parEnd", signalType: yy.LINETYPE.PAR_END });
122
- this.$ = $$[$0 - 1];
123
- break;
124
- case 40:
125
- $$[$0 - 1].unshift({ type: "criticalStart", criticalText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.CRITICAL_START });
126
- $$[$0 - 1].push({ type: "criticalEnd", signalType: yy.LINETYPE.CRITICAL_END });
127
- this.$ = $$[$0 - 1];
128
- break;
129
- case 41:
130
- $$[$0 - 1].unshift({ type: "breakStart", breakText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.BREAK_START });
131
- $$[$0 - 1].push({ type: "breakEnd", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.BREAK_END });
132
- this.$ = $$[$0 - 1];
133
- break;
134
- case 43:
135
- this.$ = $$[$0 - 3].concat([{ type: "option", optionText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.CRITICAL_OPTION }, $$[$0]]);
136
- break;
137
- case 45:
138
- this.$ = $$[$0 - 3].concat([{ type: "and", parText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.PAR_AND }, $$[$0]]);
139
- break;
140
- case 47:
141
- this.$ = $$[$0 - 3].concat([{ type: "else", altText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.ALT_ELSE }, $$[$0]]);
142
- break;
143
- case 48:
144
- $$[$0 - 3].draw = "participant";
145
- $$[$0 - 3].type = "addParticipant";
146
- $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
147
- this.$ = $$[$0 - 3];
148
- break;
149
- case 49:
150
- $$[$0 - 1].draw = "participant";
151
- $$[$0 - 1].type = "addParticipant";
152
- this.$ = $$[$0 - 1];
153
- break;
154
- case 50:
155
- $$[$0 - 3].draw = "actor";
156
- $$[$0 - 3].type = "addParticipant";
157
- $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
158
- this.$ = $$[$0 - 3];
159
- break;
160
- case 51:
161
- $$[$0 - 1].draw = "actor";
162
- $$[$0 - 1].type = "addParticipant";
163
- this.$ = $$[$0 - 1];
164
- break;
165
- case 52:
166
- $$[$0 - 1].type = "destroyParticipant";
167
- this.$ = $$[$0 - 1];
168
- break;
169
- case 53:
170
- $$[$0 - 1].draw = "participant";
171
- $$[$0 - 1].type = "addParticipant";
172
- this.$ = $$[$0 - 1];
173
- break;
174
- case 54:
175
- this.$ = [$$[$0 - 1], { type: "addNote", placement: $$[$0 - 2], actor: $$[$0 - 1].actor, text: $$[$0] }];
176
- break;
177
- case 55:
178
- $$[$0 - 2] = [].concat($$[$0 - 1], $$[$0 - 1]).slice(0, 2);
179
- $$[$0 - 2][0] = $$[$0 - 2][0].actor;
180
- $$[$0 - 2][1] = $$[$0 - 2][1].actor;
181
- this.$ = [$$[$0 - 1], { type: "addNote", placement: yy.PLACEMENT.OVER, actor: $$[$0 - 2].slice(0, 2), text: $$[$0] }];
182
- break;
183
- case 56:
184
- this.$ = [$$[$0 - 1], { type: "addLinks", actor: $$[$0 - 1].actor, text: $$[$0] }];
185
- break;
186
- case 57:
187
- this.$ = [$$[$0 - 1], { type: "addALink", actor: $$[$0 - 1].actor, text: $$[$0] }];
188
- break;
189
- case 58:
190
- this.$ = [$$[$0 - 1], { type: "addProperties", actor: $$[$0 - 1].actor, text: $$[$0] }];
191
- break;
192
- case 59:
193
- this.$ = [$$[$0 - 1], { type: "addDetails", actor: $$[$0 - 1].actor, text: $$[$0] }];
194
- break;
195
- case 62:
196
- this.$ = [$$[$0 - 2], $$[$0]];
197
- break;
198
- case 63:
199
- this.$ = $$[$0];
200
- break;
201
- case 64:
202
- this.$ = yy.PLACEMENT.LEFTOF;
203
- break;
204
- case 65:
205
- this.$ = yy.PLACEMENT.RIGHTOF;
206
- break;
207
- case 66:
208
- this.$ = [
209
- $$[$0 - 4],
210
- $$[$0 - 1],
211
- { type: "addMessage", from: $$[$0 - 4].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 3], msg: $$[$0], activate: true },
212
- { type: "activeStart", signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0 - 1].actor }
213
- ];
214
- break;
215
- case 67:
216
- this.$ = [
217
- $$[$0 - 4],
218
- $$[$0 - 1],
219
- { type: "addMessage", from: $$[$0 - 4].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 3], msg: $$[$0] },
220
- { type: "activeEnd", signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0 - 4].actor }
221
- ];
222
- break;
223
- case 68:
224
- this.$ = [$$[$0 - 3], $$[$0 - 1], { type: "addMessage", from: $$[$0 - 3].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 2], msg: $$[$0] }];
225
- break;
226
- case 69:
227
- this.$ = {
228
- type: "addParticipant",
229
- actor: $$[$0 - 1],
230
- config: $$[$0]
231
- };
232
- break;
233
- case 70:
234
- this.$ = $$[$0 - 1].trim();
235
- break;
236
- case 71:
237
- this.$ = { type: "addParticipant", actor: $$[$0] };
238
- break;
239
- case 72:
240
- this.$ = yy.LINETYPE.SOLID_OPEN;
241
- break;
242
- case 73:
243
- this.$ = yy.LINETYPE.DOTTED_OPEN;
244
- break;
245
- case 74:
246
- this.$ = yy.LINETYPE.SOLID;
247
- break;
248
- case 75:
249
- this.$ = yy.LINETYPE.BIDIRECTIONAL_SOLID;
250
- break;
251
- case 76:
252
- this.$ = yy.LINETYPE.DOTTED;
253
- break;
254
- case 77:
255
- this.$ = yy.LINETYPE.BIDIRECTIONAL_DOTTED;
256
- break;
257
- case 78:
258
- this.$ = yy.LINETYPE.SOLID_CROSS;
259
- break;
260
- case 79:
261
- this.$ = yy.LINETYPE.DOTTED_CROSS;
262
- break;
263
- case 80:
264
- this.$ = yy.LINETYPE.SOLID_POINT;
265
- break;
266
- case 81:
267
- this.$ = yy.LINETYPE.DOTTED_POINT;
268
- break;
269
- case 82:
270
- this.$ = yy.parseMessage($$[$0].trim().substring(1));
271
- break;
272
- }
273
- }, "anonymous"),
274
- table: [{ 3: 1, 4: $V0, 5: $V1, 6: $V2 }, { 1: [3] }, { 3: 5, 4: $V0, 5: $V1, 6: $V2 }, { 3: 6, 4: $V0, 5: $V1, 6: $V2 }, o([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 55, 60, 61, 62, 63, 71], $V3, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, o($Vx, [2, 5]), { 9: 47, 12: 12, 13: $V6, 14: $V7, 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, o($Vx, [2, 7]), o($Vx, [2, 8]), o($Vx, [2, 14]), { 12: 48, 50: $Vo, 52: $Vp, 53: $Vq }, { 15: [1, 49] }, { 5: [1, 50] }, { 5: [1, 53], 19: [1, 51], 20: [1, 52] }, { 22: 54, 71: $Vw }, { 22: 55, 71: $Vw }, { 5: [1, 56] }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, o($Vx, [2, 29]), o($Vx, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, o($Vx, [2, 33]), { 15: [1, 63] }, { 15: [1, 64] }, { 15: [1, 65] }, { 15: [1, 66] }, { 15: [1, 67] }, { 15: [1, 68] }, { 15: [1, 69] }, { 15: [1, 70] }, { 22: 71, 54: 72, 71: [1, 73] }, { 22: 74, 71: $Vw }, { 22: 75, 71: $Vw }, { 68: 76, 76: [1, 77], 77: [1, 78], 78: [1, 79], 79: [1, 80], 80: [1, 81], 81: [1, 82], 82: [1, 83], 83: [1, 84], 84: [1, 85], 85: [1, 86] }, { 56: 87, 58: [1, 88], 66: [1, 89], 67: [1, 90] }, { 22: 91, 71: $Vw }, { 22: 92, 71: $Vw }, { 22: 93, 71: $Vw }, { 22: 94, 71: $Vw }, o([5, 51, 65, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86], $Vy), o($Vx, [2, 6]), o($Vx, [2, 15]), o($Vz, [2, 9], { 10: 95 }), o($Vx, [2, 17]), { 5: [1, 97], 19: [1, 96] }, { 5: [1, 98] }, o($Vx, [2, 21]), { 5: [1, 99] }, { 5: [1, 100] }, o($Vx, [2, 24]), o($Vx, [2, 25]), o($Vx, [2, 26]), o($Vx, [2, 27]), o($Vx, [2, 28]), o($Vx, [2, 31]), o($Vx, [2, 32]), o($VA, $V3, { 7: 101 }), o($VA, $V3, { 7: 102 }), o($VA, $V3, { 7: 103 }), o($VB, $V3, { 40: 104, 7: 105 }), o($VC, $V3, { 42: 106, 7: 107 }), o($VC, $V3, { 7: 107, 42: 108 }), o($VD, $V3, { 45: 109, 7: 110 }), o($VA, $V3, { 7: 111 }), { 5: [1, 113], 51: [1, 112] }, { 5: [1, 114] }, o([5, 51], $Vy, { 72: 115, 73: [1, 116] }), { 5: [1, 118], 51: [1, 117] }, { 5: [1, 119] }, { 22: 122, 69: [1, 120], 70: [1, 121], 71: $Vw }, o($VE, [2, 72]), o($VE, [2, 73]), o($VE, [2, 74]), o($VE, [2, 75]), o($VE, [2, 76]), o($VE, [2, 77]), o($VE, [2, 78]), o($VE, [2, 79]), o($VE, [2, 80]), o($VE, [2, 81]), { 22: 123, 71: $Vw }, { 22: 125, 59: 124, 71: $Vw }, { 71: [2, 64] }, { 71: [2, 65] }, { 57: 126, 86: $VF }, { 57: 128, 86: $VF }, { 57: 129, 86: $VF }, { 57: 130, 86: $VF }, { 4: [1, 133], 5: [1, 135], 11: 132, 12: 134, 16: [1, 131], 50: $Vo, 52: $Vp, 53: $Vq }, { 5: [1, 136] }, o($Vx, [2, 19]), o($Vx, [2, 20]), o($Vx, [2, 22]), o($Vx, [2, 23]), { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 137], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 138], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 139], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 16: [1, 140] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [2, 46], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 49: [1, 141], 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 16: [1, 142] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [2, 44], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 48: [1, 143], 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 16: [1, 144] }, { 16: [1, 145] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [2, 42], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 47: [1, 146], 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 147], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 15: [1, 148] }, o($Vx, [2, 49]), o($Vx, [2, 53]), { 5: [2, 69] }, { 74: [1, 149] }, { 15: [1, 150] }, o($Vx, [2, 51]), o($Vx, [2, 52]), { 22: 151, 71: $Vw }, { 22: 152, 71: $Vw }, { 57: 153, 86: $VF }, { 57: 154, 86: $VF }, { 57: 155, 86: $VF }, { 65: [1, 156], 86: [2, 63] }, { 5: [2, 56] }, { 5: [2, 82] }, { 5: [2, 57] }, { 5: [2, 58] }, { 5: [2, 59] }, o($Vx, [2, 16]), o($Vz, [2, 10]), { 12: 157, 50: $Vo, 52: $Vp, 53: $Vq }, o($Vz, [2, 12]), o($Vz, [2, 13]), o($Vx, [2, 18]), o($Vx, [2, 34]), o($Vx, [2, 35]), o($Vx, [2, 36]), o($Vx, [2, 37]), { 15: [1, 158] }, o($Vx, [2, 38]), { 15: [1, 159] }, o($Vx, [2, 39]), o($Vx, [2, 40]), { 15: [1, 160] }, o($Vx, [2, 41]), { 5: [1, 161] }, { 75: [1, 162] }, { 5: [1, 163] }, { 57: 164, 86: $VF }, { 57: 165, 86: $VF }, { 5: [2, 68] }, { 5: [2, 54] }, { 5: [2, 55] }, { 22: 166, 71: $Vw }, o($Vz, [2, 11]), o($VB, $V3, { 7: 105, 40: 167 }), o($VC, $V3, { 7: 107, 42: 168 }), o($VD, $V3, { 7: 110, 45: 169 }), o($Vx, [2, 48]), { 5: [2, 70] }, o($Vx, [2, 50]), { 5: [2, 66] }, { 5: [2, 67] }, { 86: [2, 62] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }],
275
- defaultActions: { 5: [2, 1], 6: [2, 2], 89: [2, 64], 90: [2, 65], 115: [2, 69], 126: [2, 56], 127: [2, 82], 128: [2, 57], 129: [2, 58], 130: [2, 59], 153: [2, 68], 154: [2, 54], 155: [2, 55], 162: [2, 70], 164: [2, 66], 165: [2, 67], 166: [2, 62], 167: [2, 47], 168: [2, 45], 169: [2, 43] },
276
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
277
- if (hash.recoverable) {
278
- this.trace(str);
279
- } else {
280
- var error = new Error(str);
281
- error.hash = hash;
282
- throw error;
283
- }
284
- }, "parseError"),
285
- parse: /* @__PURE__ */ __name(function parse(input) {
286
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
287
- var args = lstack.slice.call(arguments, 1);
288
- var lexer2 = Object.create(this.lexer);
289
- var sharedState = { yy: {} };
290
- for (var k in this.yy) {
291
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
292
- sharedState.yy[k] = this.yy[k];
293
- }
294
- }
295
- lexer2.setInput(input, sharedState.yy);
296
- sharedState.yy.lexer = lexer2;
297
- sharedState.yy.parser = this;
298
- if (typeof lexer2.yylloc == "undefined") {
299
- lexer2.yylloc = {};
300
- }
301
- var yyloc = lexer2.yylloc;
302
- lstack.push(yyloc);
303
- var ranges = lexer2.options && lexer2.options.ranges;
304
- if (typeof sharedState.yy.parseError === "function") {
305
- this.parseError = sharedState.yy.parseError;
306
- } else {
307
- this.parseError = Object.getPrototypeOf(this).parseError;
308
- }
309
- function popStack(n) {
310
- stack.length = stack.length - 2 * n;
311
- vstack.length = vstack.length - n;
312
- lstack.length = lstack.length - n;
313
- }
314
- __name(popStack, "popStack");
315
- function lex() {
316
- var token;
317
- token = tstack.pop() || lexer2.lex() || EOF;
318
- if (typeof token !== "number") {
319
- if (token instanceof Array) {
320
- tstack = token;
321
- token = tstack.pop();
322
- }
323
- token = self.symbols_[token] || token;
324
- }
325
- return token;
326
- }
327
- __name(lex, "lex");
328
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
329
- while (true) {
330
- state = stack[stack.length - 1];
331
- if (this.defaultActions[state]) {
332
- action = this.defaultActions[state];
333
- } else {
334
- if (symbol === null || typeof symbol == "undefined") {
335
- symbol = lex();
336
- }
337
- action = table[state] && table[state][symbol];
338
- }
339
- if (typeof action === "undefined" || !action.length || !action[0]) {
340
- var errStr = "";
341
- expected = [];
342
- for (p in table[state]) {
343
- if (this.terminals_[p] && p > TERROR) {
344
- expected.push("'" + this.terminals_[p] + "'");
345
- }
346
- }
347
- if (lexer2.showPosition) {
348
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
349
- } else {
350
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
351
- }
352
- this.parseError(errStr, {
353
- text: lexer2.match,
354
- token: this.terminals_[symbol] || symbol,
355
- line: lexer2.yylineno,
356
- loc: yyloc,
357
- expected
358
- });
359
- }
360
- if (action[0] instanceof Array && action.length > 1) {
361
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
362
- }
363
- switch (action[0]) {
364
- case 1:
365
- stack.push(symbol);
366
- vstack.push(lexer2.yytext);
367
- lstack.push(lexer2.yylloc);
368
- stack.push(action[1]);
369
- symbol = null;
370
- {
371
- yyleng = lexer2.yyleng;
372
- yytext = lexer2.yytext;
373
- yylineno = lexer2.yylineno;
374
- yyloc = lexer2.yylloc;
375
- }
376
- break;
377
- case 2:
378
- len = this.productions_[action[1]][1];
379
- yyval.$ = vstack[vstack.length - len];
380
- yyval._$ = {
381
- first_line: lstack[lstack.length - (len || 1)].first_line,
382
- last_line: lstack[lstack.length - 1].last_line,
383
- first_column: lstack[lstack.length - (len || 1)].first_column,
384
- last_column: lstack[lstack.length - 1].last_column
385
- };
386
- if (ranges) {
387
- yyval._$.range = [
388
- lstack[lstack.length - (len || 1)].range[0],
389
- lstack[lstack.length - 1].range[1]
390
- ];
391
- }
392
- r = this.performAction.apply(yyval, [
393
- yytext,
394
- yyleng,
395
- yylineno,
396
- sharedState.yy,
397
- action[1],
398
- vstack,
399
- lstack
400
- ].concat(args));
401
- if (typeof r !== "undefined") {
402
- return r;
403
- }
404
- if (len) {
405
- stack = stack.slice(0, -1 * len * 2);
406
- vstack = vstack.slice(0, -1 * len);
407
- lstack = lstack.slice(0, -1 * len);
408
- }
409
- stack.push(this.productions_[action[1]][0]);
410
- vstack.push(yyval.$);
411
- lstack.push(yyval._$);
412
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
413
- stack.push(newState);
414
- break;
415
- case 3:
416
- return true;
417
- }
418
- }
419
- return true;
420
- }, "parse")
421
- };
422
- var lexer = /* @__PURE__ */ (function() {
423
- var lexer2 = {
424
- EOF: 1,
425
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
426
- if (this.yy.parser) {
427
- this.yy.parser.parseError(str, hash);
428
- } else {
429
- throw new Error(str);
430
- }
431
- }, "parseError"),
432
- // resets the lexer, sets new input
433
- setInput: /* @__PURE__ */ __name(function(input, yy) {
434
- this.yy = yy || this.yy || {};
435
- this._input = input;
436
- this._more = this._backtrack = this.done = false;
437
- this.yylineno = this.yyleng = 0;
438
- this.yytext = this.matched = this.match = "";
439
- this.conditionStack = ["INITIAL"];
440
- this.yylloc = {
441
- first_line: 1,
442
- first_column: 0,
443
- last_line: 1,
444
- last_column: 0
445
- };
446
- if (this.options.ranges) {
447
- this.yylloc.range = [0, 0];
448
- }
449
- this.offset = 0;
450
- return this;
451
- }, "setInput"),
452
- // consumes and returns one char from the input
453
- input: /* @__PURE__ */ __name(function() {
454
- var ch = this._input[0];
455
- this.yytext += ch;
456
- this.yyleng++;
457
- this.offset++;
458
- this.match += ch;
459
- this.matched += ch;
460
- var lines = ch.match(/(?:\r\n?|\n).*/g);
461
- if (lines) {
462
- this.yylineno++;
463
- this.yylloc.last_line++;
464
- } else {
465
- this.yylloc.last_column++;
466
- }
467
- if (this.options.ranges) {
468
- this.yylloc.range[1]++;
469
- }
470
- this._input = this._input.slice(1);
471
- return ch;
472
- }, "input"),
473
- // unshifts one char (or a string) into the input
474
- unput: /* @__PURE__ */ __name(function(ch) {
475
- var len = ch.length;
476
- var lines = ch.split(/(?:\r\n?|\n)/g);
477
- this._input = ch + this._input;
478
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
479
- this.offset -= len;
480
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
481
- this.match = this.match.substr(0, this.match.length - 1);
482
- this.matched = this.matched.substr(0, this.matched.length - 1);
483
- if (lines.length - 1) {
484
- this.yylineno -= lines.length - 1;
485
- }
486
- var r = this.yylloc.range;
487
- this.yylloc = {
488
- first_line: this.yylloc.first_line,
489
- last_line: this.yylineno + 1,
490
- first_column: this.yylloc.first_column,
491
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
492
- };
493
- if (this.options.ranges) {
494
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
495
- }
496
- this.yyleng = this.yytext.length;
497
- return this;
498
- }, "unput"),
499
- // When called from action, caches matched text and appends it on next action
500
- more: /* @__PURE__ */ __name(function() {
501
- this._more = true;
502
- return this;
503
- }, "more"),
504
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
505
- reject: /* @__PURE__ */ __name(function() {
506
- if (this.options.backtrack_lexer) {
507
- this._backtrack = true;
508
- } else {
509
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
510
- text: "",
511
- token: null,
512
- line: this.yylineno
513
- });
514
- }
515
- return this;
516
- }, "reject"),
517
- // retain first n characters of the match
518
- less: /* @__PURE__ */ __name(function(n) {
519
- this.unput(this.match.slice(n));
520
- }, "less"),
521
- // displays already matched input, i.e. for error messages
522
- pastInput: /* @__PURE__ */ __name(function() {
523
- var past = this.matched.substr(0, this.matched.length - this.match.length);
524
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
525
- }, "pastInput"),
526
- // displays upcoming input, i.e. for error messages
527
- upcomingInput: /* @__PURE__ */ __name(function() {
528
- var next = this.match;
529
- if (next.length < 20) {
530
- next += this._input.substr(0, 20 - next.length);
531
- }
532
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
533
- }, "upcomingInput"),
534
- // displays the character position where the lexing error occurred, i.e. for error messages
535
- showPosition: /* @__PURE__ */ __name(function() {
536
- var pre = this.pastInput();
537
- var c = new Array(pre.length + 1).join("-");
538
- return pre + this.upcomingInput() + "\n" + c + "^";
539
- }, "showPosition"),
540
- // test the lexed token: return FALSE when not a match, otherwise return token
541
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
542
- var token, lines, backup;
543
- if (this.options.backtrack_lexer) {
544
- backup = {
545
- yylineno: this.yylineno,
546
- yylloc: {
547
- first_line: this.yylloc.first_line,
548
- last_line: this.last_line,
549
- first_column: this.yylloc.first_column,
550
- last_column: this.yylloc.last_column
551
- },
552
- yytext: this.yytext,
553
- match: this.match,
554
- matches: this.matches,
555
- matched: this.matched,
556
- yyleng: this.yyleng,
557
- offset: this.offset,
558
- _more: this._more,
559
- _input: this._input,
560
- yy: this.yy,
561
- conditionStack: this.conditionStack.slice(0),
562
- done: this.done
563
- };
564
- if (this.options.ranges) {
565
- backup.yylloc.range = this.yylloc.range.slice(0);
566
- }
567
- }
568
- lines = match[0].match(/(?:\r\n?|\n).*/g);
569
- if (lines) {
570
- this.yylineno += lines.length;
571
- }
572
- this.yylloc = {
573
- first_line: this.yylloc.last_line,
574
- last_line: this.yylineno + 1,
575
- first_column: this.yylloc.last_column,
576
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
577
- };
578
- this.yytext += match[0];
579
- this.match += match[0];
580
- this.matches = match;
581
- this.yyleng = this.yytext.length;
582
- if (this.options.ranges) {
583
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
584
- }
585
- this._more = false;
586
- this._backtrack = false;
587
- this._input = this._input.slice(match[0].length);
588
- this.matched += match[0];
589
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
590
- if (this.done && this._input) {
591
- this.done = false;
592
- }
593
- if (token) {
594
- return token;
595
- } else if (this._backtrack) {
596
- for (var k in backup) {
597
- this[k] = backup[k];
598
- }
599
- return false;
600
- }
601
- return false;
602
- }, "test_match"),
603
- // return next match in input
604
- next: /* @__PURE__ */ __name(function() {
605
- if (this.done) {
606
- return this.EOF;
607
- }
608
- if (!this._input) {
609
- this.done = true;
610
- }
611
- var token, match, tempMatch, index;
612
- if (!this._more) {
613
- this.yytext = "";
614
- this.match = "";
615
- }
616
- var rules = this._currentRules();
617
- for (var i = 0; i < rules.length; i++) {
618
- tempMatch = this._input.match(this.rules[rules[i]]);
619
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
620
- match = tempMatch;
621
- index = i;
622
- if (this.options.backtrack_lexer) {
623
- token = this.test_match(tempMatch, rules[i]);
624
- if (token !== false) {
625
- return token;
626
- } else if (this._backtrack) {
627
- match = false;
628
- continue;
629
- } else {
630
- return false;
631
- }
632
- } else if (!this.options.flex) {
633
- break;
634
- }
635
- }
636
- }
637
- if (match) {
638
- token = this.test_match(match, rules[index]);
639
- if (token !== false) {
640
- return token;
641
- }
642
- return false;
643
- }
644
- if (this._input === "") {
645
- return this.EOF;
646
- } else {
647
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
648
- text: "",
649
- token: null,
650
- line: this.yylineno
651
- });
652
- }
653
- }, "next"),
654
- // return next match that has a token
655
- lex: /* @__PURE__ */ __name(function lex() {
656
- var r = this.next();
657
- if (r) {
658
- return r;
659
- } else {
660
- return this.lex();
661
- }
662
- }, "lex"),
663
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
664
- begin: /* @__PURE__ */ __name(function begin(condition) {
665
- this.conditionStack.push(condition);
666
- }, "begin"),
667
- // pop the previously active lexer condition state off the condition stack
668
- popState: /* @__PURE__ */ __name(function popState() {
669
- var n = this.conditionStack.length - 1;
670
- if (n > 0) {
671
- return this.conditionStack.pop();
672
- } else {
673
- return this.conditionStack[0];
674
- }
675
- }, "popState"),
676
- // produce the lexer rule set which is active for the currently active lexer condition state
677
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
678
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
679
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
680
- } else {
681
- return this.conditions["INITIAL"].rules;
682
- }
683
- }, "_currentRules"),
684
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
685
- topState: /* @__PURE__ */ __name(function topState(n) {
686
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
687
- if (n >= 0) {
688
- return this.conditionStack[n];
689
- } else {
690
- return "INITIAL";
691
- }
692
- }, "topState"),
693
- // alias for begin(condition)
694
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
695
- this.begin(condition);
696
- }, "pushState"),
697
- // return the number of states currently on the stack
698
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
699
- return this.conditionStack.length;
700
- }, "stateStackSize"),
701
- options: { "case-insensitive": true },
702
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
703
- switch ($avoiding_name_collisions) {
704
- case 0:
705
- return 5;
706
- case 1:
707
- break;
708
- case 2:
709
- break;
710
- case 3:
711
- break;
712
- case 4:
713
- break;
714
- case 5:
715
- break;
716
- case 6:
717
- return 19;
718
- case 7:
719
- this.begin("CONFIG");
720
- return 73;
721
- case 8:
722
- return 74;
723
- case 9:
724
- this.popState();
725
- this.popState();
726
- return 75;
727
- case 10:
728
- yy_.yytext = yy_.yytext.trim();
729
- return 71;
730
- case 11:
731
- yy_.yytext = yy_.yytext.trim();
732
- this.begin("ALIAS");
733
- return 71;
734
- case 12:
735
- this.begin("LINE");
736
- return 14;
737
- case 13:
738
- this.begin("ID");
739
- return 50;
740
- case 14:
741
- this.begin("ID");
742
- return 52;
743
- case 15:
744
- return 13;
745
- case 16:
746
- this.begin("ID");
747
- return 53;
748
- case 17:
749
- yy_.yytext = yy_.yytext.trim();
750
- this.begin("ALIAS");
751
- return 71;
752
- case 18:
753
- this.popState();
754
- this.popState();
755
- this.begin("LINE");
756
- return 51;
757
- case 19:
758
- this.popState();
759
- this.popState();
760
- return 5;
761
- case 20:
762
- this.begin("LINE");
763
- return 36;
764
- case 21:
765
- this.begin("LINE");
766
- return 37;
767
- case 22:
768
- this.begin("LINE");
769
- return 38;
770
- case 23:
771
- this.begin("LINE");
772
- return 39;
773
- case 24:
774
- this.begin("LINE");
775
- return 49;
776
- case 25:
777
- this.begin("LINE");
778
- return 41;
779
- case 26:
780
- this.begin("LINE");
781
- return 43;
782
- case 27:
783
- this.begin("LINE");
784
- return 48;
785
- case 28:
786
- this.begin("LINE");
787
- return 44;
788
- case 29:
789
- this.begin("LINE");
790
- return 47;
791
- case 30:
792
- this.begin("LINE");
793
- return 46;
794
- case 31:
795
- this.popState();
796
- return 15;
797
- case 32:
798
- return 16;
799
- case 33:
800
- return 66;
801
- case 34:
802
- return 67;
803
- case 35:
804
- return 60;
805
- case 36:
806
- return 61;
807
- case 37:
808
- return 62;
809
- case 38:
810
- return 63;
811
- case 39:
812
- return 58;
813
- case 40:
814
- return 55;
815
- case 41:
816
- this.begin("ID");
817
- return 21;
818
- case 42:
819
- this.begin("ID");
820
- return 23;
821
- case 43:
822
- return 29;
823
- case 44:
824
- return 30;
825
- case 45:
826
- this.begin("acc_title");
827
- return 31;
828
- case 46:
829
- this.popState();
830
- return "acc_title_value";
831
- case 47:
832
- this.begin("acc_descr");
833
- return 33;
834
- case 48:
835
- this.popState();
836
- return "acc_descr_value";
837
- case 49:
838
- this.begin("acc_descr_multiline");
839
- break;
840
- case 50:
841
- this.popState();
842
- break;
843
- case 51:
844
- return "acc_descr_multiline_value";
845
- case 52:
846
- return 6;
847
- case 53:
848
- return 18;
849
- case 54:
850
- return 20;
851
- case 55:
852
- return 65;
853
- case 56:
854
- return 5;
855
- case 57:
856
- yy_.yytext = yy_.yytext.trim();
857
- return 71;
858
- case 58:
859
- return 78;
860
- case 59:
861
- return 79;
862
- case 60:
863
- return 80;
864
- case 61:
865
- return 81;
866
- case 62:
867
- return 76;
868
- case 63:
869
- return 77;
870
- case 64:
871
- return 82;
872
- case 65:
873
- return 83;
874
- case 66:
875
- return 84;
876
- case 67:
877
- return 85;
878
- case 68:
879
- return 86;
880
- case 69:
881
- return 86;
882
- case 70:
883
- return 69;
884
- case 71:
885
- return 70;
886
- case 72:
887
- return 5;
888
- case 73:
889
- return "INVALID";
890
- }
891
- }, "anonymous"),
892
- rules: [/^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[0-9]+(?=[ \n]+))/i, /^(?:@\{)/i, /^(?:[^\}]+)/i, /^(?:\})/i, /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i, /^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i, /^(?:box\b)/i, /^(?:participant\b)/i, /^(?:actor\b)/i, /^(?:create\b)/i, /^(?:destroy\b)/i, /^(?:[^<\->\->:\n,;]+?([\-]*[^<\->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i, /^(?:as\b)/i, /^(?:(?:))/i, /^(?:loop\b)/i, /^(?:rect\b)/i, /^(?:opt\b)/i, /^(?:alt\b)/i, /^(?:else\b)/i, /^(?:par\b)/i, /^(?:par_over\b)/i, /^(?:and\b)/i, /^(?:critical\b)/i, /^(?:option\b)/i, /^(?:break\b)/i, /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i, /^(?:end\b)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:links\b)/i, /^(?:link\b)/i, /^(?:properties\b)/i, /^(?:details\b)/i, /^(?:over\b)/i, /^(?:note\b)/i, /^(?:activate\b)/i, /^(?:deactivate\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:title:\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:sequenceDiagram\b)/i, /^(?:autonumber\b)/i, /^(?:off\b)/i, /^(?:,)/i, /^(?:;)/i, /^(?:[^+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+<\->\->:\n,;]+)*)/i, /^(?:->>)/i, /^(?:<<->>)/i, /^(?:-->>)/i, /^(?:<<-->>)/i, /^(?:->)/i, /^(?:-->)/i, /^(?:-[x])/i, /^(?:--[x])/i, /^(?:-[\)])/i, /^(?:--[\)])/i, /^(?::(?:(?:no)?wrap)?[^#\n;]*)/i, /^(?::)/i, /^(?:\+)/i, /^(?:-)/i, /^(?:$)/i, /^(?:.)/i],
893
- conditions: { "acc_descr_multiline": { "rules": [50, 51], "inclusive": false }, "acc_descr": { "rules": [48], "inclusive": false }, "acc_title": { "rules": [46], "inclusive": false }, "ID": { "rules": [2, 3, 7, 10, 11, 17], "inclusive": false }, "ALIAS": { "rules": [2, 3, 18, 19], "inclusive": false }, "LINE": { "rules": [2, 3, 31], "inclusive": false }, "CONFIG": { "rules": [8, 9], "inclusive": false }, "CONFIG_DATA": { "rules": [], "inclusive": false }, "INITIAL": { "rules": [0, 1, 3, 4, 5, 6, 12, 13, 14, 15, 16, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 47, 49, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73], "inclusive": true } }
894
- };
895
- return lexer2;
896
- })();
897
- parser2.lexer = lexer;
898
- function Parser() {
899
- this.yy = {};
900
- }
901
- __name(Parser, "Parser");
902
- Parser.prototype = parser2;
903
- parser2.Parser = Parser;
904
- return new Parser();
905
- })();
906
- parser.parser = parser;
907
- var sequenceDiagram_default = parser;
908
-
909
- // src/diagrams/sequence/sequenceDb.ts
910
- var LINETYPE = {
911
- SOLID: 0,
912
- DOTTED: 1,
913
- NOTE: 2,
914
- SOLID_CROSS: 3,
915
- DOTTED_CROSS: 4,
916
- SOLID_OPEN: 5,
917
- DOTTED_OPEN: 6,
918
- LOOP_START: 10,
919
- LOOP_END: 11,
920
- ALT_START: 12,
921
- ALT_ELSE: 13,
922
- ALT_END: 14,
923
- OPT_START: 15,
924
- OPT_END: 16,
925
- ACTIVE_START: 17,
926
- ACTIVE_END: 18,
927
- PAR_START: 19,
928
- PAR_AND: 20,
929
- PAR_END: 21,
930
- RECT_START: 22,
931
- RECT_END: 23,
932
- SOLID_POINT: 24,
933
- DOTTED_POINT: 25,
934
- AUTONUMBER: 26,
935
- CRITICAL_START: 27,
936
- CRITICAL_OPTION: 28,
937
- CRITICAL_END: 29,
938
- BREAK_START: 30,
939
- BREAK_END: 31,
940
- PAR_OVER_START: 32,
941
- BIDIRECTIONAL_SOLID: 33,
942
- BIDIRECTIONAL_DOTTED: 34
943
- };
944
- var ARROWTYPE = {
945
- FILLED: 0,
946
- OPEN: 1
947
- };
948
- var PLACEMENT = {
949
- LEFTOF: 0,
950
- RIGHTOF: 1,
951
- OVER: 2
952
- };
953
- var PARTICIPANT_TYPE = {
954
- ACTOR: "actor",
955
- CONTROL: "control",
956
- DATABASE: "database",
957
- ENTITY: "entity"};
958
- var SequenceDB = class {
959
- constructor() {
960
- this.state = new ImperativeState(() => ({
961
- prevActor: void 0,
962
- actors: /* @__PURE__ */ new Map(),
963
- createdActors: /* @__PURE__ */ new Map(),
964
- destroyedActors: /* @__PURE__ */ new Map(),
965
- boxes: [],
966
- messages: [],
967
- notes: [],
968
- sequenceNumbersEnabled: false,
969
- wrapEnabled: void 0,
970
- currentBox: void 0,
971
- lastCreated: void 0,
972
- lastDestroyed: void 0
973
- }));
974
- this.setAccTitle = setAccTitle;
975
- this.setAccDescription = setAccDescription;
976
- this.setDiagramTitle = setDiagramTitle;
977
- this.getAccTitle = getAccTitle;
978
- this.getAccDescription = getAccDescription;
979
- this.getDiagramTitle = getDiagramTitle;
980
- this.apply = this.apply.bind(this);
981
- this.parseBoxData = this.parseBoxData.bind(this);
982
- this.parseMessage = this.parseMessage.bind(this);
983
- this.clear();
984
- this.setWrap(getConfig2().wrap);
985
- this.LINETYPE = LINETYPE;
986
- this.ARROWTYPE = ARROWTYPE;
987
- this.PLACEMENT = PLACEMENT;
988
- }
989
- static {
990
- __name(this, "SequenceDB");
991
- }
992
- addBox(data) {
993
- this.state.records.boxes.push({
994
- name: data.text,
995
- wrap: data.wrap ?? this.autoWrap(),
996
- fill: data.color,
997
- actorKeys: []
998
- });
999
- this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
1000
- }
1001
- addActor(id, name, description, type, metadata) {
1002
- let assignedBox = this.state.records.currentBox;
1003
- let doc;
1004
- if (metadata !== void 0) {
1005
- let yamlData;
1006
- if (!metadata.includes("\n")) {
1007
- yamlData = "{\n" + metadata + "\n}";
1008
- } else {
1009
- yamlData = metadata + "\n";
1010
- }
1011
- doc = load(yamlData, { schema: JSON_SCHEMA });
1012
- }
1013
- type = doc?.type ?? type;
1014
- const old = this.state.records.actors.get(id);
1015
- if (old) {
1016
- if (this.state.records.currentBox && old.box && this.state.records.currentBox !== old.box) {
1017
- throw new Error(
1018
- `A same participant should only be defined in one Box: ${old.name} can't be in '${old.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`
1019
- );
1020
- }
1021
- assignedBox = old.box ? old.box : this.state.records.currentBox;
1022
- old.box = assignedBox;
1023
- if (old && name === old.name && description == null) {
1024
- return;
1025
- }
1026
- }
1027
- if (description?.text == null) {
1028
- description = { text: name, type };
1029
- }
1030
- if (type == null || description.text == null) {
1031
- description = { text: name, type };
1032
- }
1033
- this.state.records.actors.set(id, {
1034
- box: assignedBox,
1035
- name,
1036
- description: description.text,
1037
- wrap: description.wrap ?? this.autoWrap(),
1038
- prevActor: this.state.records.prevActor,
1039
- links: {},
1040
- properties: {},
1041
- actorCnt: null,
1042
- rectData: null,
1043
- type: type ?? "participant"
1044
- });
1045
- if (this.state.records.prevActor) {
1046
- const prevActorInRecords = this.state.records.actors.get(this.state.records.prevActor);
1047
- if (prevActorInRecords) {
1048
- prevActorInRecords.nextActor = id;
1049
- }
1050
- }
1051
- if (this.state.records.currentBox) {
1052
- this.state.records.currentBox.actorKeys.push(id);
1053
- }
1054
- this.state.records.prevActor = id;
1055
- }
1056
- activationCount(part) {
1057
- let i;
1058
- let count = 0;
1059
- if (!part) {
1060
- return 0;
1061
- }
1062
- for (i = 0; i < this.state.records.messages.length; i++) {
1063
- if (this.state.records.messages[i].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[i].from === part) {
1064
- count++;
1065
- }
1066
- if (this.state.records.messages[i].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[i].from === part) {
1067
- count--;
1068
- }
1069
- }
1070
- return count;
1071
- }
1072
- addMessage(idFrom, idTo, message, answer) {
1073
- this.state.records.messages.push({
1074
- id: this.state.records.messages.length.toString(),
1075
- from: idFrom,
1076
- to: idTo,
1077
- message: message.text,
1078
- wrap: message.wrap ?? this.autoWrap(),
1079
- answer
1080
- });
1081
- }
1082
- addSignal(idFrom, idTo, message, messageType, activate = false) {
1083
- if (messageType === this.LINETYPE.ACTIVE_END) {
1084
- const cnt = this.activationCount(idFrom ?? "");
1085
- if (cnt < 1) {
1086
- const error = new Error("Trying to inactivate an inactive participant (" + idFrom + ")");
1087
- error.hash = {
1088
- text: "->>-",
1089
- token: "->>-",
1090
- line: "1",
1091
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
1092
- expected: ["'ACTIVE_PARTICIPANT'"]
1093
- };
1094
- throw error;
1095
- }
1096
- }
1097
- this.state.records.messages.push({
1098
- id: this.state.records.messages.length.toString(),
1099
- from: idFrom,
1100
- to: idTo,
1101
- message: message?.text ?? "",
1102
- wrap: message?.wrap ?? this.autoWrap(),
1103
- type: messageType,
1104
- activate
1105
- });
1106
- return true;
1107
- }
1108
- hasAtLeastOneBox() {
1109
- return this.state.records.boxes.length > 0;
1110
- }
1111
- hasAtLeastOneBoxWithTitle() {
1112
- return this.state.records.boxes.some((b) => b.name);
1113
- }
1114
- getMessages() {
1115
- return this.state.records.messages;
1116
- }
1117
- getBoxes() {
1118
- return this.state.records.boxes;
1119
- }
1120
- getActors() {
1121
- return this.state.records.actors;
1122
- }
1123
- getCreatedActors() {
1124
- return this.state.records.createdActors;
1125
- }
1126
- getDestroyedActors() {
1127
- return this.state.records.destroyedActors;
1128
- }
1129
- getActor(id) {
1130
- return this.state.records.actors.get(id);
1131
- }
1132
- getActorKeys() {
1133
- return [...this.state.records.actors.keys()];
1134
- }
1135
- enableSequenceNumbers() {
1136
- this.state.records.sequenceNumbersEnabled = true;
1137
- }
1138
- disableSequenceNumbers() {
1139
- this.state.records.sequenceNumbersEnabled = false;
1140
- }
1141
- showSequenceNumbers() {
1142
- return this.state.records.sequenceNumbersEnabled;
1143
- }
1144
- setWrap(wrapSetting) {
1145
- this.state.records.wrapEnabled = wrapSetting;
1146
- }
1147
- extractWrap(text) {
1148
- if (text === void 0) {
1149
- return {};
1150
- }
1151
- text = text.trim();
1152
- const wrap = /^:?wrap:/.exec(text) !== null ? true : /^:?nowrap:/.exec(text) !== null ? false : void 0;
1153
- const cleanedText = (wrap === void 0 ? text : text.replace(/^:?(?:no)?wrap:/, "")).trim();
1154
- return { cleanedText, wrap };
1155
- }
1156
- autoWrap() {
1157
- if (this.state.records.wrapEnabled !== void 0) {
1158
- return this.state.records.wrapEnabled;
1159
- }
1160
- return getConfig2().sequence?.wrap ?? false;
1161
- }
1162
- clear() {
1163
- this.state.reset();
1164
- clear();
1165
- }
1166
- parseMessage(str) {
1167
- const trimmedStr = str.trim();
1168
- const { wrap, cleanedText } = this.extractWrap(trimmedStr);
1169
- const message = {
1170
- text: cleanedText,
1171
- wrap
1172
- };
1173
- log.debug(`parseMessage: ${JSON.stringify(message)}`);
1174
- return message;
1175
- }
1176
- // We expect the box statement to be color first then description
1177
- // The color can be rgb,rgba,hsl,hsla, or css code names #hex codes are not supported for now because of the way the char # is handled
1178
- // We extract first segment as color, the rest of the line is considered as text
1179
- parseBoxData(str) {
1180
- const match = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(str);
1181
- let color = match?.[1] ? match[1].trim() : "transparent";
1182
- let title = match?.[2] ? match[2].trim() : void 0;
1183
- if (window?.CSS) {
1184
- if (!window.CSS.supports("color", color)) {
1185
- color = "transparent";
1186
- title = str.trim();
1187
- }
1188
- } else {
1189
- const style = new Option().style;
1190
- style.color = color;
1191
- if (style.color !== color) {
1192
- color = "transparent";
1193
- title = str.trim();
1194
- }
1195
- }
1196
- const { wrap, cleanedText } = this.extractWrap(title);
1197
- return {
1198
- text: cleanedText ? sanitizeText(cleanedText, getConfig2()) : void 0,
1199
- color,
1200
- wrap
1201
- };
1202
- }
1203
- addNote(actor, placement, message) {
1204
- const note = {
1205
- actor,
1206
- placement,
1207
- message: message.text,
1208
- wrap: message.wrap ?? this.autoWrap()
1209
- };
1210
- const actors = [].concat(actor, actor);
1211
- this.state.records.notes.push(note);
1212
- this.state.records.messages.push({
1213
- id: this.state.records.messages.length.toString(),
1214
- from: actors[0],
1215
- to: actors[1],
1216
- message: message.text,
1217
- wrap: message.wrap ?? this.autoWrap(),
1218
- type: this.LINETYPE.NOTE,
1219
- placement
1220
- });
1221
- }
1222
- addLinks(actorId, text) {
1223
- const actor = this.getActor(actorId);
1224
- try {
1225
- let sanitizedText = sanitizeText(text.text, getConfig2());
1226
- sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1227
- sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1228
- const links = JSON.parse(sanitizedText);
1229
- this.insertLinks(actor, links);
1230
- } catch (e) {
1231
- log.error("error while parsing actor link text", e);
1232
- }
1233
- }
1234
- addALink(actorId, text) {
1235
- const actor = this.getActor(actorId);
1236
- try {
1237
- const links = {};
1238
- let sanitizedText = sanitizeText(text.text, getConfig2());
1239
- const sep = sanitizedText.indexOf("@");
1240
- sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1241
- sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1242
- const label = sanitizedText.slice(0, sep - 1).trim();
1243
- const link = sanitizedText.slice(sep + 1).trim();
1244
- links[label] = link;
1245
- this.insertLinks(actor, links);
1246
- } catch (e) {
1247
- log.error("error while parsing actor link text", e);
1248
- }
1249
- }
1250
- insertLinks(actor, links) {
1251
- if (actor.links == null) {
1252
- actor.links = links;
1253
- } else {
1254
- for (const key in links) {
1255
- actor.links[key] = links[key];
1256
- }
1257
- }
1258
- }
1259
- addProperties(actorId, text) {
1260
- const actor = this.getActor(actorId);
1261
- try {
1262
- const sanitizedText = sanitizeText(text.text, getConfig2());
1263
- const properties = JSON.parse(sanitizedText);
1264
- this.insertProperties(actor, properties);
1265
- } catch (e) {
1266
- log.error("error while parsing actor properties text", e);
1267
- }
1268
- }
1269
- insertProperties(actor, properties) {
1270
- if (actor.properties == null) {
1271
- actor.properties = properties;
1272
- } else {
1273
- for (const key in properties) {
1274
- actor.properties[key] = properties[key];
1275
- }
1276
- }
1277
- }
1278
- boxEnd() {
1279
- this.state.records.currentBox = void 0;
1280
- }
1281
- addDetails(actorId, text) {
1282
- const actor = this.getActor(actorId);
1283
- const elem = document.getElementById(text.text);
1284
- try {
1285
- const text2 = elem.innerHTML;
1286
- const details = JSON.parse(text2);
1287
- if (details.properties) {
1288
- this.insertProperties(actor, details.properties);
1289
- }
1290
- if (details.links) {
1291
- this.insertLinks(actor, details.links);
1292
- }
1293
- } catch (e) {
1294
- log.error("error while parsing actor details text", e);
1295
- }
1296
- }
1297
- getActorProperty(actor, key) {
1298
- if (actor?.properties !== void 0) {
1299
- return actor.properties[key];
1300
- }
1301
- return void 0;
1302
- }
1303
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-redundant-type-constituents
1304
- apply(param) {
1305
- if (Array.isArray(param)) {
1306
- param.forEach((item) => {
1307
- this.apply(item);
1308
- });
1309
- } else {
1310
- switch (param.type) {
1311
- case "sequenceIndex":
1312
- this.state.records.messages.push({
1313
- id: this.state.records.messages.length.toString(),
1314
- from: void 0,
1315
- to: void 0,
1316
- message: {
1317
- start: param.sequenceIndex,
1318
- step: param.sequenceIndexStep,
1319
- visible: param.sequenceVisible
1320
- },
1321
- wrap: false,
1322
- type: param.signalType
1323
- });
1324
- break;
1325
- case "addParticipant":
1326
- this.addActor(param.actor, param.actor, param.description, param.draw, param.config);
1327
- break;
1328
- case "createParticipant":
1329
- if (this.state.records.actors.has(param.actor)) {
1330
- throw new Error(
1331
- "It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior"
1332
- );
1333
- }
1334
- this.state.records.lastCreated = param.actor;
1335
- this.addActor(param.actor, param.actor, param.description, param.draw, param.config);
1336
- this.state.records.createdActors.set(param.actor, this.state.records.messages.length);
1337
- break;
1338
- case "destroyParticipant":
1339
- this.state.records.lastDestroyed = param.actor;
1340
- this.state.records.destroyedActors.set(param.actor, this.state.records.messages.length);
1341
- break;
1342
- case "activeStart":
1343
- this.addSignal(param.actor, void 0, void 0, param.signalType);
1344
- break;
1345
- case "activeEnd":
1346
- this.addSignal(param.actor, void 0, void 0, param.signalType);
1347
- break;
1348
- case "addNote":
1349
- this.addNote(param.actor, param.placement, param.text);
1350
- break;
1351
- case "addLinks":
1352
- this.addLinks(param.actor, param.text);
1353
- break;
1354
- case "addALink":
1355
- this.addALink(param.actor, param.text);
1356
- break;
1357
- case "addProperties":
1358
- this.addProperties(param.actor, param.text);
1359
- break;
1360
- case "addDetails":
1361
- this.addDetails(param.actor, param.text);
1362
- break;
1363
- case "addMessage":
1364
- if (this.state.records.lastCreated) {
1365
- if (param.to !== this.state.records.lastCreated) {
1366
- throw new Error(
1367
- "The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram."
1368
- );
1369
- } else {
1370
- this.state.records.lastCreated = void 0;
1371
- }
1372
- } else if (this.state.records.lastDestroyed) {
1373
- if (param.to !== this.state.records.lastDestroyed && param.from !== this.state.records.lastDestroyed) {
1374
- throw new Error(
1375
- "The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram."
1376
- );
1377
- } else {
1378
- this.state.records.lastDestroyed = void 0;
1379
- }
1380
- }
1381
- this.addSignal(param.from, param.to, param.msg, param.signalType, param.activate);
1382
- break;
1383
- case "boxStart":
1384
- this.addBox(param.boxData);
1385
- break;
1386
- case "boxEnd":
1387
- this.boxEnd();
1388
- break;
1389
- case "loopStart":
1390
- this.addSignal(void 0, void 0, param.loopText, param.signalType);
1391
- break;
1392
- case "loopEnd":
1393
- this.addSignal(void 0, void 0, void 0, param.signalType);
1394
- break;
1395
- case "rectStart":
1396
- this.addSignal(void 0, void 0, param.color, param.signalType);
1397
- break;
1398
- case "rectEnd":
1399
- this.addSignal(void 0, void 0, void 0, param.signalType);
1400
- break;
1401
- case "optStart":
1402
- this.addSignal(void 0, void 0, param.optText, param.signalType);
1403
- break;
1404
- case "optEnd":
1405
- this.addSignal(void 0, void 0, void 0, param.signalType);
1406
- break;
1407
- case "altStart":
1408
- this.addSignal(void 0, void 0, param.altText, param.signalType);
1409
- break;
1410
- case "else":
1411
- this.addSignal(void 0, void 0, param.altText, param.signalType);
1412
- break;
1413
- case "altEnd":
1414
- this.addSignal(void 0, void 0, void 0, param.signalType);
1415
- break;
1416
- case "setAccTitle":
1417
- setAccTitle(param.text);
1418
- break;
1419
- case "parStart":
1420
- this.addSignal(void 0, void 0, param.parText, param.signalType);
1421
- break;
1422
- case "and":
1423
- this.addSignal(void 0, void 0, param.parText, param.signalType);
1424
- break;
1425
- case "parEnd":
1426
- this.addSignal(void 0, void 0, void 0, param.signalType);
1427
- break;
1428
- case "criticalStart":
1429
- this.addSignal(void 0, void 0, param.criticalText, param.signalType);
1430
- break;
1431
- case "option":
1432
- this.addSignal(void 0, void 0, param.optionText, param.signalType);
1433
- break;
1434
- case "criticalEnd":
1435
- this.addSignal(void 0, void 0, void 0, param.signalType);
1436
- break;
1437
- case "breakStart":
1438
- this.addSignal(void 0, void 0, param.breakText, param.signalType);
1439
- break;
1440
- case "breakEnd":
1441
- this.addSignal(void 0, void 0, void 0, param.signalType);
1442
- break;
1443
- }
1444
- }
1445
- }
1446
- getConfig() {
1447
- return getConfig2().sequence;
1448
- }
1449
- };
1450
-
1451
- // src/diagrams/sequence/styles.js
1452
- var getStyles = /* @__PURE__ */ __name((options) => `.actor {
1453
- stroke: ${options.actorBorder};
1454
- fill: ${options.actorBkg};
1455
- }
1456
-
1457
- text.actor > tspan {
1458
- fill: ${options.actorTextColor};
1459
- stroke: none;
1460
- }
1461
-
1462
- .actor-line {
1463
- stroke: ${options.actorLineColor};
1464
- }
1465
-
1466
- .innerArc {
1467
- stroke-width: 1.5;
1468
- stroke-dasharray: none;
1469
- }
1470
-
1471
- .messageLine0 {
1472
- stroke-width: 1.5;
1473
- stroke-dasharray: none;
1474
- stroke: ${options.signalColor};
1475
- }
1476
-
1477
- .messageLine1 {
1478
- stroke-width: 1.5;
1479
- stroke-dasharray: 2, 2;
1480
- stroke: ${options.signalColor};
1481
- }
1482
-
1483
- #arrowhead path {
1484
- fill: ${options.signalColor};
1485
- stroke: ${options.signalColor};
1486
- }
1487
-
1488
- .sequenceNumber {
1489
- fill: ${options.sequenceNumberColor};
1490
- }
1491
-
1492
- #sequencenumber {
1493
- fill: ${options.signalColor};
1494
- }
1495
-
1496
- #crosshead path {
1497
- fill: ${options.signalColor};
1498
- stroke: ${options.signalColor};
1499
- }
1500
-
1501
- .messageText {
1502
- fill: ${options.signalTextColor};
1503
- stroke: none;
1504
- }
1505
-
1506
- .labelBox {
1507
- stroke: ${options.labelBoxBorderColor};
1508
- fill: ${options.labelBoxBkgColor};
1509
- }
1510
-
1511
- .labelText, .labelText > tspan {
1512
- fill: ${options.labelTextColor};
1513
- stroke: none;
1514
- }
1515
-
1516
- .loopText, .loopText > tspan {
1517
- fill: ${options.loopTextColor};
1518
- stroke: none;
1519
- }
1520
-
1521
- .loopLine {
1522
- stroke-width: 2px;
1523
- stroke-dasharray: 2, 2;
1524
- stroke: ${options.labelBoxBorderColor};
1525
- fill: ${options.labelBoxBorderColor};
1526
- }
1527
-
1528
- .note {
1529
- //stroke: #decc93;
1530
- stroke: ${options.noteBorderColor};
1531
- fill: ${options.noteBkgColor};
1532
- }
1533
-
1534
- .noteText, .noteText > tspan {
1535
- fill: ${options.noteTextColor};
1536
- stroke: none;
1537
- }
1538
-
1539
- .activation0 {
1540
- fill: ${options.activationBkgColor};
1541
- stroke: ${options.activationBorderColor};
1542
- }
1543
-
1544
- .activation1 {
1545
- fill: ${options.activationBkgColor};
1546
- stroke: ${options.activationBorderColor};
1547
- }
1548
-
1549
- .activation2 {
1550
- fill: ${options.activationBkgColor};
1551
- stroke: ${options.activationBorderColor};
1552
- }
1553
-
1554
- .actorPopupMenu {
1555
- position: absolute;
1556
- }
1557
-
1558
- .actorPopupMenuPanel {
1559
- position: absolute;
1560
- fill: ${options.actorBkg};
1561
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
1562
- filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
1563
- }
1564
- .actor-man line {
1565
- stroke: ${options.actorBorder};
1566
- fill: ${options.actorBkg};
1567
- }
1568
- .actor-man circle, line {
1569
- stroke: ${options.actorBorder};
1570
- fill: ${options.actorBkg};
1571
- stroke-width: 2px;
1572
- }
1573
-
1574
- `, "getStyles");
1575
- var styles_default = getStyles;
1576
- var ACTOR_TYPE_WIDTH = 18 * 2;
1577
- var TOP_ACTOR_CLASS = "actor-top";
1578
- var BOTTOM_ACTOR_CLASS = "actor-bottom";
1579
- var ACTOR_BOX_CLASS = "actor-box";
1580
- var ACTOR_MAN_FIGURE_CLASS = "actor-man";
1581
- var drawRect2 = /* @__PURE__ */ __name(function(elem, rectData) {
1582
- return drawRect(elem, rectData);
1583
- }, "drawRect");
1584
- var drawPopup = /* @__PURE__ */ __name(function(elem, actor, minMenuWidth, textAttrs, forceMenus) {
1585
- if (actor.links === void 0 || actor.links === null || Object.keys(actor.links).length === 0) {
1586
- return { height: 0, width: 0 };
1587
- }
1588
- const links = actor.links;
1589
- const actorCnt2 = actor.actorCnt;
1590
- const rectData = actor.rectData;
1591
- var displayValue = "none";
1592
- if (forceMenus) {
1593
- displayValue = "block !important";
1594
- }
1595
- const g = elem.append("g");
1596
- g.attr("id", "actor" + actorCnt2 + "_popup");
1597
- g.attr("class", "actorPopupMenu");
1598
- g.attr("display", displayValue);
1599
- var actorClass = "";
1600
- if (rectData.class !== void 0) {
1601
- actorClass = " " + rectData.class;
1602
- }
1603
- let menuWidth = rectData.width > minMenuWidth ? rectData.width : minMenuWidth;
1604
- const rectElem = g.append("rect");
1605
- rectElem.attr("class", "actorPopupMenuPanel" + actorClass);
1606
- rectElem.attr("x", rectData.x);
1607
- rectElem.attr("y", rectData.height);
1608
- rectElem.attr("fill", rectData.fill);
1609
- rectElem.attr("stroke", rectData.stroke);
1610
- rectElem.attr("width", menuWidth);
1611
- rectElem.attr("height", rectData.height);
1612
- rectElem.attr("rx", rectData.rx);
1613
- rectElem.attr("ry", rectData.ry);
1614
- if (links != null) {
1615
- var linkY = 20;
1616
- for (let key in links) {
1617
- var linkElem = g.append("a");
1618
- var sanitizedLink = distExports.sanitizeUrl(links[key]);
1619
- linkElem.attr("xlink:href", sanitizedLink);
1620
- linkElem.attr("target", "_blank");
1621
- _drawMenuItemTextCandidateFunc(textAttrs)(
1622
- key,
1623
- linkElem,
1624
- rectData.x + 10,
1625
- rectData.height + linkY,
1626
- menuWidth,
1627
- 20,
1628
- { class: "actor" },
1629
- textAttrs
1630
- );
1631
- linkY += 30;
1632
- }
1633
- }
1634
- rectElem.attr("height", linkY);
1635
- return { height: rectData.height + linkY, width: menuWidth };
1636
- }, "drawPopup");
1637
- var popupMenuToggle = /* @__PURE__ */ __name(function(popId) {
1638
- return "var pu = document.getElementById('" + popId + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
1639
- }, "popupMenuToggle");
1640
- var drawKatex = /* @__PURE__ */ __name(async function(elem, textData, msgModel = null) {
1641
- let textElem = elem.append("foreignObject");
1642
- const linesSanitized = await renderKatexSanitized(textData.text, getConfig());
1643
- const divElem = textElem.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(linesSanitized);
1644
- const dim = divElem.node().getBoundingClientRect();
1645
- textElem.attr("height", Math.round(dim.height)).attr("width", Math.round(dim.width));
1646
- if (textData.class === "noteText") {
1647
- const rectElem = elem.node().firstChild;
1648
- rectElem.setAttribute("height", dim.height + 2 * textData.textMargin);
1649
- const rectDim = rectElem.getBBox();
1650
- textElem.attr("x", Math.round(rectDim.x + rectDim.width / 2 - dim.width / 2)).attr("y", Math.round(rectDim.y + rectDim.height / 2 - dim.height / 2));
1651
- } else if (msgModel) {
1652
- let { startx, stopx, starty } = msgModel;
1653
- if (startx > stopx) {
1654
- const temp = startx;
1655
- startx = stopx;
1656
- stopx = temp;
1657
- }
1658
- textElem.attr("x", Math.round(startx + Math.abs(startx - stopx) / 2 - dim.width / 2));
1659
- if (textData.class === "loopText") {
1660
- textElem.attr("y", Math.round(starty));
1661
- } else {
1662
- textElem.attr("y", Math.round(starty - dim.height));
1663
- }
1664
- }
1665
- return [textElem];
1666
- }, "drawKatex");
1667
- var drawText = /* @__PURE__ */ __name(function(elem, textData) {
1668
- let prevTextHeight = 0;
1669
- let textHeight = 0;
1670
- const lines = textData.text.split(common_default.lineBreakRegex);
1671
- const [_textFontSize, _textFontSizePx] = parseFontSize(textData.fontSize);
1672
- let textElems = [];
1673
- let dy = 0;
1674
- let yfunc = /* @__PURE__ */ __name(() => textData.y, "yfunc");
1675
- if (textData.valign !== void 0 && textData.textMargin !== void 0 && textData.textMargin > 0) {
1676
- switch (textData.valign) {
1677
- case "top":
1678
- case "start":
1679
- yfunc = /* @__PURE__ */ __name(() => Math.round(textData.y + textData.textMargin), "yfunc");
1680
- break;
1681
- case "middle":
1682
- case "center":
1683
- yfunc = /* @__PURE__ */ __name(() => Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2), "yfunc");
1684
- break;
1685
- case "bottom":
1686
- case "end":
1687
- yfunc = /* @__PURE__ */ __name(() => Math.round(
1688
- textData.y + (prevTextHeight + textHeight + 2 * textData.textMargin) - textData.textMargin
1689
- ), "yfunc");
1690
- break;
1691
- }
1692
- }
1693
- if (textData.anchor !== void 0 && textData.textMargin !== void 0 && textData.width !== void 0) {
1694
- switch (textData.anchor) {
1695
- case "left":
1696
- case "start":
1697
- textData.x = Math.round(textData.x + textData.textMargin);
1698
- textData.anchor = "start";
1699
- textData.dominantBaseline = "middle";
1700
- textData.alignmentBaseline = "middle";
1701
- break;
1702
- case "middle":
1703
- case "center":
1704
- textData.x = Math.round(textData.x + textData.width / 2);
1705
- textData.anchor = "middle";
1706
- textData.dominantBaseline = "middle";
1707
- textData.alignmentBaseline = "middle";
1708
- break;
1709
- case "right":
1710
- case "end":
1711
- textData.x = Math.round(textData.x + textData.width - textData.textMargin);
1712
- textData.anchor = "end";
1713
- textData.dominantBaseline = "middle";
1714
- textData.alignmentBaseline = "middle";
1715
- break;
1716
- }
1717
- }
1718
- for (let [i, line] of lines.entries()) {
1719
- if (textData.textMargin !== void 0 && textData.textMargin === 0 && _textFontSize !== void 0) {
1720
- dy = i * _textFontSize;
1721
- }
1722
- const textElem = elem.append("text");
1723
- textElem.attr("x", textData.x);
1724
- textElem.attr("y", yfunc());
1725
- if (textData.anchor !== void 0) {
1726
- textElem.attr("text-anchor", textData.anchor).attr("dominant-baseline", textData.dominantBaseline).attr("alignment-baseline", textData.alignmentBaseline);
1727
- }
1728
- if (textData.fontFamily !== void 0) {
1729
- textElem.style("font-family", textData.fontFamily);
1730
- }
1731
- if (_textFontSizePx !== void 0) {
1732
- textElem.style("font-size", _textFontSizePx);
1733
- }
1734
- if (textData.fontWeight !== void 0) {
1735
- textElem.style("font-weight", textData.fontWeight);
1736
- }
1737
- if (textData.fill !== void 0) {
1738
- textElem.attr("fill", textData.fill);
1739
- }
1740
- if (textData.class !== void 0) {
1741
- textElem.attr("class", textData.class);
1742
- }
1743
- if (textData.dy !== void 0) {
1744
- textElem.attr("dy", textData.dy);
1745
- } else if (dy !== 0) {
1746
- textElem.attr("dy", dy);
1747
- }
1748
- const text = line || ZERO_WIDTH_SPACE;
1749
- if (textData.tspan) {
1750
- const span = textElem.append("tspan");
1751
- span.attr("x", textData.x);
1752
- if (textData.fill !== void 0) {
1753
- span.attr("fill", textData.fill);
1754
- }
1755
- span.text(text);
1756
- } else {
1757
- textElem.text(text);
1758
- }
1759
- if (textData.valign !== void 0 && textData.textMargin !== void 0 && textData.textMargin > 0) {
1760
- textHeight += (textElem._groups || textElem)[0][0].getBBox().height;
1761
- prevTextHeight = textHeight;
1762
- }
1763
- textElems.push(textElem);
1764
- }
1765
- return textElems;
1766
- }, "drawText");
1767
- var drawLabel = /* @__PURE__ */ __name(function(elem, txtObject) {
1768
- function genPoints(x, y, width, height, cut) {
1769
- return x + "," + y + " " + (x + width) + "," + y + " " + (x + width) + "," + (y + height - cut) + " " + (x + width - cut * 1.2) + "," + (y + height) + " " + x + "," + (y + height);
1770
- }
1771
- __name(genPoints, "genPoints");
1772
- const polygon = elem.append("polygon");
1773
- polygon.attr("points", genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));
1774
- polygon.attr("class", "labelBox");
1775
- txtObject.y = txtObject.y + txtObject.height / 2;
1776
- drawText(elem, txtObject);
1777
- return polygon;
1778
- }, "drawLabel");
1779
- var actorCnt = -1;
1780
- var fixLifeLineHeights = /* @__PURE__ */ __name((diagram2, actors, actorKeys, conf2) => {
1781
- if (!diagram2.select) {
1782
- return;
1783
- }
1784
- actorKeys.forEach((actorKey) => {
1785
- const actor = actors.get(actorKey);
1786
- const actorDOM = diagram2.select("#actor" + actor.actorCnt);
1787
- if (!conf2.mirrorActors && actor.stopy) {
1788
- actorDOM.attr("y2", actor.stopy + actor.height / 2);
1789
- } else if (conf2.mirrorActors) {
1790
- actorDOM.attr("y2", actor.stopy);
1791
- }
1792
- });
1793
- }, "fixLifeLineHeights");
1794
- var drawActorTypeParticipant = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
1795
- const actorY = isFooter ? actor.stopy : actor.starty;
1796
- const center = actor.x + actor.width / 2;
1797
- const centerY = actorY + actor.height;
1798
- const boxplusLineGroup = elem.append("g").lower();
1799
- var g = boxplusLineGroup;
1800
- if (!isFooter) {
1801
- actorCnt++;
1802
- if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
1803
- g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
1804
- }
1805
- g.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
1806
- g = boxplusLineGroup.append("g");
1807
- actor.actorCnt = actorCnt;
1808
- if (actor.links != null) {
1809
- g.attr("id", "root-" + actorCnt);
1810
- }
1811
- }
1812
- const rect = getNoteRect();
1813
- var cssclass = "actor";
1814
- if (actor.properties?.class) {
1815
- cssclass = actor.properties.class;
1816
- } else {
1817
- rect.fill = "#eaeaea";
1818
- }
1819
- if (isFooter) {
1820
- cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
1821
- } else {
1822
- cssclass += ` ${TOP_ACTOR_CLASS}`;
1823
- }
1824
- rect.x = actor.x;
1825
- rect.y = actorY;
1826
- rect.width = actor.width;
1827
- rect.height = actor.height;
1828
- rect.class = cssclass;
1829
- rect.rx = 3;
1830
- rect.ry = 3;
1831
- rect.name = actor.name;
1832
- const rectElem = drawRect2(g, rect);
1833
- actor.rectData = rect;
1834
- if (actor.properties?.icon) {
1835
- const iconSrc = actor.properties.icon.trim();
1836
- if (iconSrc.charAt(0) === "@") {
1837
- drawEmbeddedImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc.substr(1));
1838
- } else {
1839
- drawImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc);
1840
- }
1841
- }
1842
- _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
1843
- actor.description,
1844
- g,
1845
- rect.x,
1846
- rect.y,
1847
- rect.width,
1848
- rect.height,
1849
- { class: `actor ${ACTOR_BOX_CLASS}` },
1850
- conf2
1851
- );
1852
- let height = actor.height;
1853
- if (rectElem.node) {
1854
- const bounds2 = rectElem.node().getBBox();
1855
- actor.height = bounds2.height;
1856
- height = bounds2.height;
1857
- }
1858
- return height;
1859
- }, "drawActorTypeParticipant");
1860
- var drawActorTypeCollections = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
1861
- const actorY = isFooter ? actor.stopy : actor.starty;
1862
- const center = actor.x + actor.width / 2;
1863
- const centerY = actorY + actor.height;
1864
- const boxplusLineGroup = elem.append("g").lower();
1865
- var g = boxplusLineGroup;
1866
- if (!isFooter) {
1867
- actorCnt++;
1868
- if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
1869
- g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
1870
- }
1871
- g.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
1872
- g = boxplusLineGroup.append("g");
1873
- actor.actorCnt = actorCnt;
1874
- if (actor.links != null) {
1875
- g.attr("id", "root-" + actorCnt);
1876
- }
1877
- }
1878
- const rect = getNoteRect();
1879
- var cssclass = "actor";
1880
- if (actor.properties?.class) {
1881
- cssclass = actor.properties.class;
1882
- } else {
1883
- rect.fill = "#eaeaea";
1884
- }
1885
- if (isFooter) {
1886
- cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
1887
- } else {
1888
- cssclass += ` ${TOP_ACTOR_CLASS}`;
1889
- }
1890
- rect.x = actor.x;
1891
- rect.y = actorY;
1892
- rect.width = actor.width;
1893
- rect.height = actor.height;
1894
- rect.class = cssclass;
1895
- rect.name = actor.name;
1896
- const offset = 6;
1897
- const shadowRect = {
1898
- ...rect,
1899
- x: rect.x + (isFooter ? -offset : -offset),
1900
- y: rect.y + (isFooter ? +offset : +offset),
1901
- class: "actor"
1902
- };
1903
- const rectElem = drawRect2(g, rect);
1904
- drawRect2(g, shadowRect);
1905
- actor.rectData = rect;
1906
- if (actor.properties?.icon) {
1907
- const iconSrc = actor.properties.icon.trim();
1908
- if (iconSrc.charAt(0) === "@") {
1909
- drawEmbeddedImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc.substr(1));
1910
- } else {
1911
- drawImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc);
1912
- }
1913
- }
1914
- _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
1915
- actor.description,
1916
- g,
1917
- rect.x - offset,
1918
- rect.y + offset,
1919
- rect.width,
1920
- rect.height,
1921
- { class: `actor ${ACTOR_BOX_CLASS}` },
1922
- conf2
1923
- );
1924
- let height = actor.height;
1925
- if (rectElem.node) {
1926
- const bounds2 = rectElem.node().getBBox();
1927
- actor.height = bounds2.height;
1928
- height = bounds2.height;
1929
- }
1930
- return height;
1931
- }, "drawActorTypeCollections");
1932
- var drawActorTypeQueue = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
1933
- const actorY = isFooter ? actor.stopy : actor.starty;
1934
- const center = actor.x + actor.width / 2;
1935
- const centerY = actorY + actor.height;
1936
- const boxplusLineGroup = elem.append("g").lower();
1937
- let g = boxplusLineGroup;
1938
- if (!isFooter) {
1939
- actorCnt++;
1940
- if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
1941
- g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
1942
- }
1943
- g.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
1944
- g = boxplusLineGroup.append("g");
1945
- actor.actorCnt = actorCnt;
1946
- if (actor.links != null) {
1947
- g.attr("id", "root-" + actorCnt);
1948
- }
1949
- }
1950
- const rect = getNoteRect();
1951
- let cssclass = "actor";
1952
- if (actor.properties?.class) {
1953
- cssclass = actor.properties.class;
1954
- } else {
1955
- rect.fill = "#eaeaea";
1956
- }
1957
- if (isFooter) {
1958
- cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
1959
- } else {
1960
- cssclass += ` ${TOP_ACTOR_CLASS}`;
1961
- }
1962
- rect.x = actor.x;
1963
- rect.y = actorY;
1964
- rect.width = actor.width;
1965
- rect.height = actor.height;
1966
- rect.class = cssclass;
1967
- rect.name = actor.name;
1968
- const ry = rect.height / 2;
1969
- const rx = ry / (2.5 + rect.height / 50);
1970
- const cylinderGroup = g.append("g");
1971
- const cylinderArc = g.append("g");
1972
- cylinderGroup.append("path").attr(
1973
- "d",
1974
- `M ${rect.x},${rect.y + ry}
1975
- a ${rx},${ry} 0 0 0 0,${rect.height}
1976
- h ${rect.width - 2 * rx}
1977
- a ${rx},${ry} 0 0 0 0,-${rect.height}
1978
- Z
1979
- `
1980
- ).attr("class", cssclass);
1981
- cylinderArc.append("path").attr(
1982
- "d",
1983
- `M ${rect.x},${rect.y + ry}
1984
- a ${rx},${ry} 0 0 0 0,${rect.height}`
1985
- ).attr("stroke", "#666").attr("stroke-width", "1px").attr("class", cssclass);
1986
- cylinderGroup.attr("transform", `translate(${rx}, ${-(rect.height / 2)})`);
1987
- cylinderArc.attr("transform", `translate(${rect.width - rx}, ${-rect.height / 2})`);
1988
- actor.rectData = rect;
1989
- if (actor.properties?.icon) {
1990
- const iconSrc = actor.properties.icon.trim();
1991
- const iconX = rect.x + rect.width - 20;
1992
- const iconY = rect.y + 10;
1993
- if (iconSrc.charAt(0) === "@") {
1994
- drawEmbeddedImage(g, iconX, iconY, iconSrc.substr(1));
1995
- } else {
1996
- drawImage(g, iconX, iconY, iconSrc);
1997
- }
1998
- }
1999
- _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2000
- actor.description,
2001
- g,
2002
- rect.x,
2003
- rect.y,
2004
- rect.width,
2005
- rect.height,
2006
- { class: `actor ${ACTOR_BOX_CLASS}` },
2007
- conf2
2008
- );
2009
- let height = actor.height;
2010
- const lastPath = cylinderGroup.select("path:last-child");
2011
- if (lastPath.node()) {
2012
- const bounds2 = lastPath.node().getBBox();
2013
- actor.height = bounds2.height;
2014
- height = bounds2.height;
2015
- }
2016
- return height;
2017
- }, "drawActorTypeQueue");
2018
- var drawActorTypeControl = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
2019
- const actorY = isFooter ? actor.stopy : actor.starty;
2020
- const center = actor.x + actor.width / 2;
2021
- const centerY = actorY + 75;
2022
- const line = elem.append("g").lower();
2023
- if (!isFooter) {
2024
- actorCnt++;
2025
- line.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
2026
- actor.actorCnt = actorCnt;
2027
- }
2028
- const actElem = elem.append("g");
2029
- let cssClass = ACTOR_MAN_FIGURE_CLASS;
2030
- if (isFooter) {
2031
- cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2032
- } else {
2033
- cssClass += ` ${TOP_ACTOR_CLASS}`;
2034
- }
2035
- actElem.attr("class", cssClass);
2036
- actElem.attr("name", actor.name);
2037
- const rect = getNoteRect();
2038
- rect.x = actor.x;
2039
- rect.y = actorY;
2040
- rect.fill = "#eaeaea";
2041
- rect.width = actor.width;
2042
- rect.height = actor.height;
2043
- rect.class = "actor";
2044
- const cx = actor.x + actor.width / 2;
2045
- const cy = actorY + 30;
2046
- const r = 18;
2047
- actElem.append("defs").append("marker").attr("id", "filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z");
2048
- actElem.append("circle").attr("cx", cx).attr("cy", cy).attr("r", r).attr("fill", "#eaeaf7").attr("stroke", "#666").attr("stroke-width", 1.2);
2049
- actElem.append("line").attr("marker-end", "url(#filled-head-control)").attr("transform", `translate(${cx}, ${cy - r})`);
2050
- const bounds2 = actElem.node().getBBox();
2051
- actor.height = bounds2.height + 2 * (conf2?.sequence?.labelBoxHeight ?? 0);
2052
- _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2053
- actor.description,
2054
- actElem,
2055
- rect.x,
2056
- rect.y + r + (isFooter ? 5 : 10),
2057
- rect.width,
2058
- rect.height,
2059
- { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2060
- conf2
2061
- );
2062
- return actor.height;
2063
- }, "drawActorTypeControl");
2064
- var drawActorTypeEntity = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
2065
- const actorY = isFooter ? actor.stopy : actor.starty;
2066
- const center = actor.x + actor.width / 2;
2067
- const centerY = actorY + 75;
2068
- const line = elem.append("g").lower();
2069
- const actElem = elem.append("g");
2070
- let cssClass = ACTOR_MAN_FIGURE_CLASS;
2071
- if (isFooter) {
2072
- cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2073
- } else {
2074
- cssClass += ` ${TOP_ACTOR_CLASS}`;
2075
- }
2076
- actElem.attr("class", cssClass);
2077
- actElem.attr("name", actor.name);
2078
- const rect = getNoteRect();
2079
- rect.x = actor.x;
2080
- rect.y = actorY;
2081
- rect.fill = "#eaeaea";
2082
- rect.width = actor.width;
2083
- rect.height = actor.height;
2084
- rect.class = "actor";
2085
- const cx = actor.x + actor.width / 2;
2086
- const cy = actorY + (!isFooter ? 25 : 10);
2087
- const r = 18;
2088
- actElem.append("circle").attr("cx", cx).attr("cy", cy).attr("r", r).attr("width", actor.width).attr("height", actor.height);
2089
- actElem.append("line").attr("x1", cx - r).attr("x2", cx + r).attr("y1", cy + r).attr("y2", cy + r).attr("stroke", "#333").attr("stroke-width", 2);
2090
- const bounds2 = actElem.node().getBBox();
2091
- actor.height = bounds2.height + (conf2?.sequence?.labelBoxHeight ?? 0);
2092
- if (!isFooter) {
2093
- actorCnt++;
2094
- line.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
2095
- actor.actorCnt = actorCnt;
2096
- }
2097
- _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2098
- actor.description,
2099
- actElem,
2100
- rect.x,
2101
- rect.y + (!isFooter ? (cy + r - actorY) / 2 : (cy - actorY + r - 5) / 2),
2102
- rect.width,
2103
- rect.height,
2104
- { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2105
- conf2
2106
- );
2107
- if (!isFooter) {
2108
- actElem.attr("transform", `translate(${0}, ${r / 2})`);
2109
- } else {
2110
- actElem.attr("transform", `translate(${0}, ${r / 2})`);
2111
- }
2112
- return actor.height;
2113
- }, "drawActorTypeEntity");
2114
- var drawActorTypeDatabase = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
2115
- const actorY = isFooter ? actor.stopy : actor.starty;
2116
- const center = actor.x + actor.width / 2;
2117
- const centerY = actorY + actor.height + 2 * conf2.boxTextMargin;
2118
- const boxplusLineGroup = elem.append("g").lower();
2119
- let g = boxplusLineGroup;
2120
- if (!isFooter) {
2121
- actorCnt++;
2122
- if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
2123
- g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
2124
- }
2125
- g.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
2126
- g = boxplusLineGroup.append("g");
2127
- actor.actorCnt = actorCnt;
2128
- if (actor.links != null) {
2129
- g.attr("id", "root-" + actorCnt);
2130
- }
2131
- }
2132
- const rect = getNoteRect();
2133
- let cssclass = "actor";
2134
- if (actor.properties?.class) {
2135
- cssclass = actor.properties.class;
2136
- } else {
2137
- rect.fill = "#eaeaea";
2138
- }
2139
- if (isFooter) {
2140
- cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
2141
- } else {
2142
- cssclass += ` ${TOP_ACTOR_CLASS}`;
2143
- }
2144
- rect.x = actor.x;
2145
- rect.y = actorY;
2146
- rect.width = actor.width;
2147
- rect.height = actor.height;
2148
- rect.class = cssclass;
2149
- rect.name = actor.name;
2150
- rect.x = actor.x;
2151
- rect.y = actorY;
2152
- const w = rect.width / 4;
2153
- const h = rect.width / 4;
2154
- const rx = w / 2;
2155
- const ry = rx / (2.5 + w / 50);
2156
- const cylinderGroup = g.append("g");
2157
- const d = `
2158
- M ${rect.x},${rect.y + ry}
2159
- a ${rx},${ry} 0 0 0 ${w},0
2160
- a ${rx},${ry} 0 0 0 -${w},0
2161
- l 0,${h - 2 * ry}
2162
- a ${rx},${ry} 0 0 0 ${w},0
2163
- l 0,-${h - 2 * ry}
2164
- `;
2165
- cylinderGroup.append("path").attr("d", d).attr("fill", "#eaeaea").attr("stroke", "#000").attr("stroke-width", 1).attr("class", cssclass);
2166
- if (!isFooter) {
2167
- cylinderGroup.attr("transform", `translate(${w * 1.5}, ${(rect.height + ry) / 4})`);
2168
- } else {
2169
- cylinderGroup.attr("transform", `translate(${w * 1.5}, ${rect.height / 4 - 2 * ry})`);
2170
- }
2171
- actor.rectData = rect;
2172
- _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2173
- actor.description,
2174
- g,
2175
- rect.x,
2176
- rect.y + (!isFooter ? (rect.height + ry) / 2 : (rect.height + h) / 4),
2177
- rect.width,
2178
- rect.height,
2179
- { class: `actor ${ACTOR_BOX_CLASS}` },
2180
- conf2
2181
- );
2182
- const lastPath = cylinderGroup.select("path:last-child");
2183
- if (lastPath.node()) {
2184
- const bounds2 = lastPath.node().getBBox();
2185
- actor.height = bounds2.height + (conf2.sequence.labelBoxHeight ?? 0);
2186
- }
2187
- return actor.height;
2188
- }, "drawActorTypeDatabase");
2189
- var drawActorTypeBoundary = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
2190
- const actorY = isFooter ? actor.stopy : actor.starty;
2191
- const center = actor.x + actor.width / 2;
2192
- const centerY = actorY + 80;
2193
- const radius = 30;
2194
- const line = elem.append("g").lower();
2195
- if (!isFooter) {
2196
- actorCnt++;
2197
- line.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
2198
- actor.actorCnt = actorCnt;
2199
- }
2200
- const actElem = elem.append("g");
2201
- let cssClass = ACTOR_MAN_FIGURE_CLASS;
2202
- if (isFooter) {
2203
- cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2204
- } else {
2205
- cssClass += ` ${TOP_ACTOR_CLASS}`;
2206
- }
2207
- actElem.attr("class", cssClass);
2208
- actElem.attr("name", actor.name);
2209
- const rect = getNoteRect();
2210
- rect.x = actor.x;
2211
- rect.y = actorY;
2212
- rect.fill = "#eaeaea";
2213
- rect.width = actor.width;
2214
- rect.height = actor.height;
2215
- rect.class = "actor";
2216
- actElem.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", actor.x + actor.width / 2 - radius * 2.5).attr("y1", actorY + 10).attr("x2", actor.x + actor.width / 2 - 15).attr("y2", actorY + 10);
2217
- actElem.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", actor.x + actor.width / 2 - radius * 2.5).attr("y1", actorY + 0).attr("x2", actor.x + actor.width / 2 - radius * 2.5).attr("y2", actorY + 20);
2218
- actElem.append("circle").attr("cx", actor.x + actor.width / 2).attr("cy", actorY + 10).attr("r", radius);
2219
- const bounds2 = actElem.node().getBBox();
2220
- actor.height = bounds2.height + (conf2.sequence.labelBoxHeight ?? 0);
2221
- _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2222
- actor.description,
2223
- actElem,
2224
- rect.x,
2225
- rect.y + (!isFooter ? radius / 2 + 3 : radius / 2 - 4),
2226
- rect.width,
2227
- rect.height,
2228
- { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2229
- conf2
2230
- );
2231
- if (!isFooter) {
2232
- actElem.attr("transform", `translate(0,${radius / 2 + 7})`);
2233
- } else {
2234
- actElem.attr("transform", `translate(0,${radius / 2 + 7})`);
2235
- }
2236
- return actor.height;
2237
- }, "drawActorTypeBoundary");
2238
- var drawActorTypeActor = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
2239
- const actorY = isFooter ? actor.stopy : actor.starty;
2240
- const center = actor.x + actor.width / 2;
2241
- const centerY = actorY + 80;
2242
- const line = elem.append("g").lower();
2243
- if (!isFooter) {
2244
- actorCnt++;
2245
- line.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
2246
- actor.actorCnt = actorCnt;
2247
- }
2248
- const actElem = elem.append("g");
2249
- let cssClass = ACTOR_MAN_FIGURE_CLASS;
2250
- if (isFooter) {
2251
- cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2252
- } else {
2253
- cssClass += ` ${TOP_ACTOR_CLASS}`;
2254
- }
2255
- actElem.attr("class", cssClass);
2256
- actElem.attr("name", actor.name);
2257
- const rect = getNoteRect();
2258
- rect.x = actor.x;
2259
- rect.y = actorY;
2260
- rect.fill = "#eaeaea";
2261
- rect.width = actor.width;
2262
- rect.height = actor.height;
2263
- rect.class = "actor";
2264
- rect.rx = 3;
2265
- rect.ry = 3;
2266
- actElem.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", center).attr("y1", actorY + 25).attr("x2", center).attr("y2", actorY + 45);
2267
- actElem.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", center - ACTOR_TYPE_WIDTH / 2).attr("y1", actorY + 33).attr("x2", center + ACTOR_TYPE_WIDTH / 2).attr("y2", actorY + 33);
2268
- actElem.append("line").attr("x1", center - ACTOR_TYPE_WIDTH / 2).attr("y1", actorY + 60).attr("x2", center).attr("y2", actorY + 45);
2269
- actElem.append("line").attr("x1", center).attr("y1", actorY + 45).attr("x2", center + ACTOR_TYPE_WIDTH / 2 - 2).attr("y2", actorY + 60);
2270
- const circle = actElem.append("circle");
2271
- circle.attr("cx", actor.x + actor.width / 2);
2272
- circle.attr("cy", actorY + 10);
2273
- circle.attr("r", 15);
2274
- circle.attr("width", actor.width);
2275
- circle.attr("height", actor.height);
2276
- const bounds2 = actElem.node().getBBox();
2277
- actor.height = bounds2.height;
2278
- _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2279
- actor.description,
2280
- actElem,
2281
- rect.x,
2282
- rect.y + 35,
2283
- rect.width,
2284
- rect.height,
2285
- { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2286
- conf2
2287
- );
2288
- return actor.height;
2289
- }, "drawActorTypeActor");
2290
- var drawActor = /* @__PURE__ */ __name(async function(elem, actor, conf2, isFooter) {
2291
- switch (actor.type) {
2292
- case "actor":
2293
- return await drawActorTypeActor(elem, actor, conf2, isFooter);
2294
- case "participant":
2295
- return await drawActorTypeParticipant(elem, actor, conf2, isFooter);
2296
- case "boundary":
2297
- return await drawActorTypeBoundary(elem, actor, conf2, isFooter);
2298
- case "control":
2299
- return await drawActorTypeControl(elem, actor, conf2, isFooter);
2300
- case "entity":
2301
- return await drawActorTypeEntity(elem, actor, conf2, isFooter);
2302
- case "database":
2303
- return await drawActorTypeDatabase(elem, actor, conf2, isFooter);
2304
- case "collections":
2305
- return await drawActorTypeCollections(elem, actor, conf2, isFooter);
2306
- case "queue":
2307
- return await drawActorTypeQueue(elem, actor, conf2, isFooter);
2308
- }
2309
- }, "drawActor");
2310
- var drawBox = /* @__PURE__ */ __name(function(elem, box, conf2) {
2311
- const boxplusTextGroup = elem.append("g");
2312
- const g = boxplusTextGroup;
2313
- drawBackgroundRect2(g, box);
2314
- if (box.name) {
2315
- _drawTextCandidateFunc(conf2)(
2316
- box.name,
2317
- g,
2318
- box.x,
2319
- box.y + conf2.boxTextMargin + (box.textMaxHeight || 0) / 2,
2320
- box.width,
2321
- 0,
2322
- { class: "text" },
2323
- conf2
2324
- );
2325
- }
2326
- g.lower();
2327
- }, "drawBox");
2328
- var anchorElement = /* @__PURE__ */ __name(function(elem) {
2329
- return elem.append("g");
2330
- }, "anchorElement");
2331
- var drawActivation = /* @__PURE__ */ __name(function(elem, bounds2, verticalPos, conf2, actorActivations2) {
2332
- const rect = getNoteRect();
2333
- const g = bounds2.anchored;
2334
- rect.x = bounds2.startx;
2335
- rect.y = bounds2.starty;
2336
- rect.class = "activation" + actorActivations2 % 3;
2337
- rect.width = bounds2.stopx - bounds2.startx;
2338
- rect.height = verticalPos - bounds2.starty;
2339
- drawRect2(g, rect);
2340
- }, "drawActivation");
2341
- var drawLoop = /* @__PURE__ */ __name(async function(elem, loopModel, labelText, conf2) {
2342
- const {
2343
- boxMargin,
2344
- boxTextMargin,
2345
- labelBoxHeight,
2346
- labelBoxWidth,
2347
- messageFontFamily: fontFamily,
2348
- messageFontSize: fontSize,
2349
- messageFontWeight: fontWeight
2350
- } = conf2;
2351
- const g = elem.append("g");
2352
- const drawLoopLine = /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
2353
- return g.append("line").attr("x1", startx).attr("y1", starty).attr("x2", stopx).attr("y2", stopy).attr("class", "loopLine");
2354
- }, "drawLoopLine");
2355
- drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);
2356
- drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);
2357
- drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);
2358
- drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);
2359
- if (loopModel.sections !== void 0) {
2360
- loopModel.sections.forEach(function(item) {
2361
- drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style(
2362
- "stroke-dasharray",
2363
- "3, 3"
2364
- );
2365
- });
2366
- }
2367
- let txt = getTextObj();
2368
- txt.text = labelText;
2369
- txt.x = loopModel.startx;
2370
- txt.y = loopModel.starty;
2371
- txt.fontFamily = fontFamily;
2372
- txt.fontSize = fontSize;
2373
- txt.fontWeight = fontWeight;
2374
- txt.anchor = "middle";
2375
- txt.valign = "middle";
2376
- txt.tspan = false;
2377
- txt.width = labelBoxWidth || 50;
2378
- txt.height = labelBoxHeight || 20;
2379
- txt.textMargin = boxTextMargin;
2380
- txt.class = "labelText";
2381
- drawLabel(g, txt);
2382
- txt = getTextObj2();
2383
- txt.text = loopModel.title;
2384
- txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;
2385
- txt.y = loopModel.starty + boxMargin + boxTextMargin;
2386
- txt.anchor = "middle";
2387
- txt.valign = "middle";
2388
- txt.textMargin = boxTextMargin;
2389
- txt.class = "loopText";
2390
- txt.fontFamily = fontFamily;
2391
- txt.fontSize = fontSize;
2392
- txt.fontWeight = fontWeight;
2393
- txt.wrap = true;
2394
- let textElem = hasKatex(txt.text) ? await drawKatex(g, txt, loopModel) : drawText(g, txt);
2395
- if (loopModel.sectionTitles !== void 0) {
2396
- for (const [idx, item] of Object.entries(loopModel.sectionTitles)) {
2397
- if (item.message) {
2398
- txt.text = item.message;
2399
- txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;
2400
- txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;
2401
- txt.class = "loopText";
2402
- txt.anchor = "middle";
2403
- txt.valign = "middle";
2404
- txt.tspan = false;
2405
- txt.fontFamily = fontFamily;
2406
- txt.fontSize = fontSize;
2407
- txt.fontWeight = fontWeight;
2408
- txt.wrap = loopModel.wrap;
2409
- if (hasKatex(txt.text)) {
2410
- loopModel.starty = loopModel.sections[idx].y;
2411
- await drawKatex(g, txt, loopModel);
2412
- } else {
2413
- drawText(g, txt);
2414
- }
2415
- let sectionHeight = Math.round(
2416
- textElem.map((te) => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)
2417
- );
2418
- loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);
2419
- }
2420
- }
2421
- }
2422
- loopModel.height = Math.round(loopModel.stopy - loopModel.starty);
2423
- return g;
2424
- }, "drawLoop");
2425
- var drawBackgroundRect2 = /* @__PURE__ */ __name(function(elem, bounds2) {
2426
- drawBackgroundRect(elem, bounds2);
2427
- }, "drawBackgroundRect");
2428
- var insertDatabaseIcon = /* @__PURE__ */ __name(function(elem) {
2429
- elem.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
2430
- "d",
2431
- "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z"
2432
- );
2433
- }, "insertDatabaseIcon");
2434
- var insertComputerIcon = /* @__PURE__ */ __name(function(elem) {
2435
- elem.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
2436
- "d",
2437
- "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"
2438
- );
2439
- }, "insertComputerIcon");
2440
- var insertClockIcon = /* @__PURE__ */ __name(function(elem) {
2441
- elem.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
2442
- "d",
2443
- "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z"
2444
- );
2445
- }, "insertClockIcon");
2446
- var insertArrowHead = /* @__PURE__ */ __name(function(elem) {
2447
- elem.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
2448
- }, "insertArrowHead");
2449
- var insertArrowFilledHead = /* @__PURE__ */ __name(function(elem) {
2450
- elem.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
2451
- }, "insertArrowFilledHead");
2452
- var insertSequenceNumber = /* @__PURE__ */ __name(function(elem) {
2453
- elem.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
2454
- }, "insertSequenceNumber");
2455
- var insertArrowCrossHead = /* @__PURE__ */ __name(function(elem) {
2456
- const defs = elem.append("defs");
2457
- const marker = defs.append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5);
2458
- marker.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
2459
- }, "insertArrowCrossHead");
2460
- var getTextObj2 = /* @__PURE__ */ __name(function() {
2461
- return {
2462
- x: 0,
2463
- y: 0,
2464
- fill: void 0,
2465
- anchor: void 0,
2466
- style: "#666",
2467
- width: void 0,
2468
- height: void 0,
2469
- textMargin: 0,
2470
- rx: 0,
2471
- ry: 0,
2472
- tspan: true,
2473
- valign: void 0
2474
- };
2475
- }, "getTextObj");
2476
- var getNoteRect2 = /* @__PURE__ */ __name(function() {
2477
- return {
2478
- x: 0,
2479
- y: 0,
2480
- fill: "#EDF2AE",
2481
- stroke: "#666",
2482
- width: 100,
2483
- anchor: "start",
2484
- height: 100,
2485
- rx: 0,
2486
- ry: 0
2487
- };
2488
- }, "getNoteRect");
2489
- var _drawTextCandidateFunc = /* @__PURE__ */ (function() {
2490
- function byText(content, g, x, y, width, height, textAttrs) {
2491
- const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("text-anchor", "middle").text(content);
2492
- _setTextAttrs(text, textAttrs);
2493
- }
2494
- __name(byText, "byText");
2495
- function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
2496
- const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
2497
- const [_actorFontSize, _actorFontSizePx] = parseFontSize(actorFontSize);
2498
- const lines = content.split(common_default.lineBreakRegex);
2499
- for (let i = 0; i < lines.length; i++) {
2500
- const dy = i * _actorFontSize - _actorFontSize * (lines.length - 1) / 2;
2501
- const text = g.append("text").attr("x", x + width / 2).attr("y", y).style("text-anchor", "middle").style("font-size", _actorFontSizePx).style("font-weight", actorFontWeight).style("font-family", actorFontFamily);
2502
- text.append("tspan").attr("x", x + width / 2).attr("dy", dy).text(lines[i]);
2503
- text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
2504
- _setTextAttrs(text, textAttrs);
2505
- }
2506
- }
2507
- __name(byTspan, "byTspan");
2508
- function byFo(content, g, x, y, width, height, textAttrs, conf2) {
2509
- const s = g.append("switch");
2510
- const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
2511
- const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2512
- text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
2513
- byTspan(content, s, x, y, width, height, textAttrs, conf2);
2514
- _setTextAttrs(text, textAttrs);
2515
- }
2516
- __name(byFo, "byFo");
2517
- async function byKatex(content, g, x, y, width, height, textAttrs, conf2) {
2518
- const dim = await calculateMathMLDimensions(content, getConfig());
2519
- const s = g.append("switch");
2520
- const f = s.append("foreignObject").attr("x", x + width / 2 - dim.width / 2).attr("y", y + height / 2 - dim.height / 2).attr("width", dim.width).attr("height", dim.height);
2521
- const text = f.append("xhtml:div").style("height", "100%").style("width", "100%");
2522
- text.append("div").style("text-align", "center").style("vertical-align", "middle").html(await renderKatexSanitized(content, getConfig()));
2523
- byTspan(content, s, x, y, width, height, textAttrs, conf2);
2524
- _setTextAttrs(text, textAttrs);
2525
- }
2526
- __name(byKatex, "byKatex");
2527
- function _setTextAttrs(toText, fromTextAttrsDict) {
2528
- for (const key in fromTextAttrsDict) {
2529
- if (fromTextAttrsDict.hasOwnProperty(key)) {
2530
- toText.attr(key, fromTextAttrsDict[key]);
2531
- }
2532
- }
2533
- }
2534
- __name(_setTextAttrs, "_setTextAttrs");
2535
- return function(conf2, hasKatex2 = false) {
2536
- if (hasKatex2) {
2537
- return byKatex;
2538
- }
2539
- return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
2540
- };
2541
- })();
2542
- var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ (function() {
2543
- function byText(content, g, x, y, width, height, textAttrs) {
2544
- const text = g.append("text").attr("x", x).attr("y", y).style("text-anchor", "start").text(content);
2545
- _setTextAttrs(text, textAttrs);
2546
- }
2547
- __name(byText, "byText");
2548
- function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
2549
- const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
2550
- const lines = content.split(common_default.lineBreakRegex);
2551
- for (let i = 0; i < lines.length; i++) {
2552
- const dy = i * actorFontSize - actorFontSize * (lines.length - 1) / 2;
2553
- const text = g.append("text").attr("x", x).attr("y", y).style("text-anchor", "start").style("font-size", actorFontSize).style("font-weight", actorFontWeight).style("font-family", actorFontFamily);
2554
- text.append("tspan").attr("x", x).attr("dy", dy).text(lines[i]);
2555
- text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
2556
- _setTextAttrs(text, textAttrs);
2557
- }
2558
- }
2559
- __name(byTspan, "byTspan");
2560
- function byFo(content, g, x, y, width, height, textAttrs, conf2) {
2561
- const s = g.append("switch");
2562
- const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
2563
- const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2564
- text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
2565
- byTspan(content, s, x, y, width, height, textAttrs, conf2);
2566
- _setTextAttrs(text, textAttrs);
2567
- }
2568
- __name(byFo, "byFo");
2569
- function _setTextAttrs(toText, fromTextAttrsDict) {
2570
- for (const key in fromTextAttrsDict) {
2571
- if (fromTextAttrsDict.hasOwnProperty(key)) {
2572
- toText.attr(key, fromTextAttrsDict[key]);
2573
- }
2574
- }
2575
- }
2576
- __name(_setTextAttrs, "_setTextAttrs");
2577
- return function(conf2) {
2578
- return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
2579
- };
2580
- })();
2581
- var svgDraw_default = {
2582
- drawRect: drawRect2,
2583
- drawText,
2584
- drawLabel,
2585
- drawActor,
2586
- drawBox,
2587
- drawPopup,
2588
- anchorElement,
2589
- drawActivation,
2590
- drawLoop,
2591
- drawBackgroundRect: drawBackgroundRect2,
2592
- insertArrowHead,
2593
- insertArrowFilledHead,
2594
- insertSequenceNumber,
2595
- insertArrowCrossHead,
2596
- insertDatabaseIcon,
2597
- insertComputerIcon,
2598
- insertClockIcon,
2599
- getTextObj: getTextObj2,
2600
- getNoteRect: getNoteRect2,
2601
- fixLifeLineHeights,
2602
- sanitizeUrl: distExports.sanitizeUrl
2603
- };
2604
-
2605
- // src/diagrams/sequence/sequenceRenderer.ts
2606
- var conf = {};
2607
- var bounds = {
2608
- data: {
2609
- startx: void 0,
2610
- stopx: void 0,
2611
- starty: void 0,
2612
- stopy: void 0
2613
- },
2614
- verticalPos: 0,
2615
- sequenceItems: [],
2616
- activations: [],
2617
- models: {
2618
- getHeight: /* @__PURE__ */ __name(function() {
2619
- return Math.max.apply(
2620
- null,
2621
- this.actors.length === 0 ? [0] : this.actors.map((actor) => actor.height || 0)
2622
- ) + (this.loops.length === 0 ? 0 : this.loops.map((it) => it.height || 0).reduce((acc, h) => acc + h)) + (this.messages.length === 0 ? 0 : this.messages.map((it) => it.height || 0).reduce((acc, h) => acc + h)) + (this.notes.length === 0 ? 0 : this.notes.map((it) => it.height || 0).reduce((acc, h) => acc + h));
2623
- }, "getHeight"),
2624
- clear: /* @__PURE__ */ __name(function() {
2625
- this.actors = [];
2626
- this.boxes = [];
2627
- this.loops = [];
2628
- this.messages = [];
2629
- this.notes = [];
2630
- }, "clear"),
2631
- addBox: /* @__PURE__ */ __name(function(boxModel) {
2632
- this.boxes.push(boxModel);
2633
- }, "addBox"),
2634
- addActor: /* @__PURE__ */ __name(function(actorModel) {
2635
- this.actors.push(actorModel);
2636
- }, "addActor"),
2637
- addLoop: /* @__PURE__ */ __name(function(loopModel) {
2638
- this.loops.push(loopModel);
2639
- }, "addLoop"),
2640
- addMessage: /* @__PURE__ */ __name(function(msgModel) {
2641
- this.messages.push(msgModel);
2642
- }, "addMessage"),
2643
- addNote: /* @__PURE__ */ __name(function(noteModel) {
2644
- this.notes.push(noteModel);
2645
- }, "addNote"),
2646
- lastActor: /* @__PURE__ */ __name(function() {
2647
- return this.actors[this.actors.length - 1];
2648
- }, "lastActor"),
2649
- lastLoop: /* @__PURE__ */ __name(function() {
2650
- return this.loops[this.loops.length - 1];
2651
- }, "lastLoop"),
2652
- lastMessage: /* @__PURE__ */ __name(function() {
2653
- return this.messages[this.messages.length - 1];
2654
- }, "lastMessage"),
2655
- lastNote: /* @__PURE__ */ __name(function() {
2656
- return this.notes[this.notes.length - 1];
2657
- }, "lastNote"),
2658
- actors: [],
2659
- boxes: [],
2660
- loops: [],
2661
- messages: [],
2662
- notes: []
2663
- },
2664
- init: /* @__PURE__ */ __name(function() {
2665
- this.sequenceItems = [];
2666
- this.activations = [];
2667
- this.models.clear();
2668
- this.data = {
2669
- startx: void 0,
2670
- stopx: void 0,
2671
- starty: void 0,
2672
- stopy: void 0
2673
- };
2674
- this.verticalPos = 0;
2675
- setConf(getConfig2());
2676
- }, "init"),
2677
- updateVal: /* @__PURE__ */ __name(function(obj, key, val, fun) {
2678
- if (obj[key] === void 0) {
2679
- obj[key] = val;
2680
- } else {
2681
- obj[key] = fun(val, obj[key]);
2682
- }
2683
- }, "updateVal"),
2684
- updateBounds: /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
2685
- const _self = this;
2686
- let cnt = 0;
2687
- function updateFn(type) {
2688
- return /* @__PURE__ */ __name(function updateItemBounds(item) {
2689
- cnt++;
2690
- const n = _self.sequenceItems.length - cnt + 1;
2691
- _self.updateVal(item, "starty", starty - n * conf.boxMargin, Math.min);
2692
- _self.updateVal(item, "stopy", stopy + n * conf.boxMargin, Math.max);
2693
- _self.updateVal(bounds.data, "startx", startx - n * conf.boxMargin, Math.min);
2694
- _self.updateVal(bounds.data, "stopx", stopx + n * conf.boxMargin, Math.max);
2695
- if (!(type === "activation")) {
2696
- _self.updateVal(item, "startx", startx - n * conf.boxMargin, Math.min);
2697
- _self.updateVal(item, "stopx", stopx + n * conf.boxMargin, Math.max);
2698
- _self.updateVal(bounds.data, "starty", starty - n * conf.boxMargin, Math.min);
2699
- _self.updateVal(bounds.data, "stopy", stopy + n * conf.boxMargin, Math.max);
2700
- }
2701
- }, "updateItemBounds");
2702
- }
2703
- __name(updateFn, "updateFn");
2704
- this.sequenceItems.forEach(updateFn());
2705
- this.activations.forEach(updateFn("activation"));
2706
- }, "updateBounds"),
2707
- insert: /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
2708
- const _startx = common_default.getMin(startx, stopx);
2709
- const _stopx = common_default.getMax(startx, stopx);
2710
- const _starty = common_default.getMin(starty, stopy);
2711
- const _stopy = common_default.getMax(starty, stopy);
2712
- this.updateVal(bounds.data, "startx", _startx, Math.min);
2713
- this.updateVal(bounds.data, "starty", _starty, Math.min);
2714
- this.updateVal(bounds.data, "stopx", _stopx, Math.max);
2715
- this.updateVal(bounds.data, "stopy", _stopy, Math.max);
2716
- this.updateBounds(_startx, _starty, _stopx, _stopy);
2717
- }, "insert"),
2718
- newActivation: /* @__PURE__ */ __name(function(message, diagram2, actors) {
2719
- const actorRect = actors.get(message.from);
2720
- const stackedSize = actorActivations(message.from).length || 0;
2721
- const x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
2722
- this.activations.push({
2723
- startx: x,
2724
- starty: this.verticalPos + 2,
2725
- stopx: x + conf.activationWidth,
2726
- stopy: void 0,
2727
- actor: message.from,
2728
- anchored: svgDraw_default.anchorElement(diagram2)
2729
- });
2730
- }, "newActivation"),
2731
- endActivation: /* @__PURE__ */ __name(function(message) {
2732
- const lastActorActivationIdx = this.activations.map(function(activation) {
2733
- return activation.actor;
2734
- }).lastIndexOf(message.from);
2735
- return this.activations.splice(lastActorActivationIdx, 1)[0];
2736
- }, "endActivation"),
2737
- createLoop: /* @__PURE__ */ __name(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
2738
- return {
2739
- startx: void 0,
2740
- starty: this.verticalPos,
2741
- stopx: void 0,
2742
- stopy: void 0,
2743
- title: title.message,
2744
- wrap: title.wrap,
2745
- width: title.width,
2746
- height: 0,
2747
- fill
2748
- };
2749
- }, "createLoop"),
2750
- newLoop: /* @__PURE__ */ __name(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
2751
- this.sequenceItems.push(this.createLoop(title, fill));
2752
- }, "newLoop"),
2753
- endLoop: /* @__PURE__ */ __name(function() {
2754
- return this.sequenceItems.pop();
2755
- }, "endLoop"),
2756
- isLoopOverlap: /* @__PURE__ */ __name(function() {
2757
- return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : false;
2758
- }, "isLoopOverlap"),
2759
- addSectionToLoop: /* @__PURE__ */ __name(function(message) {
2760
- const loop = this.sequenceItems.pop();
2761
- loop.sections = loop.sections || [];
2762
- loop.sectionTitles = loop.sectionTitles || [];
2763
- loop.sections.push({ y: bounds.getVerticalPos(), height: 0 });
2764
- loop.sectionTitles.push(message);
2765
- this.sequenceItems.push(loop);
2766
- }, "addSectionToLoop"),
2767
- saveVerticalPos: /* @__PURE__ */ __name(function() {
2768
- if (this.isLoopOverlap()) {
2769
- this.savedVerticalPos = this.verticalPos;
2770
- }
2771
- }, "saveVerticalPos"),
2772
- resetVerticalPos: /* @__PURE__ */ __name(function() {
2773
- if (this.isLoopOverlap()) {
2774
- this.verticalPos = this.savedVerticalPos;
2775
- }
2776
- }, "resetVerticalPos"),
2777
- bumpVerticalPos: /* @__PURE__ */ __name(function(bump) {
2778
- this.verticalPos = this.verticalPos + bump;
2779
- this.data.stopy = common_default.getMax(this.data.stopy, this.verticalPos);
2780
- }, "bumpVerticalPos"),
2781
- getVerticalPos: /* @__PURE__ */ __name(function() {
2782
- return this.verticalPos;
2783
- }, "getVerticalPos"),
2784
- getBounds: /* @__PURE__ */ __name(function() {
2785
- return { bounds: this.data, models: this.models };
2786
- }, "getBounds")
2787
- };
2788
- var drawNote = /* @__PURE__ */ __name(async function(elem, noteModel) {
2789
- bounds.bumpVerticalPos(conf.boxMargin);
2790
- noteModel.height = conf.boxMargin;
2791
- noteModel.starty = bounds.getVerticalPos();
2792
- const rect = getNoteRect();
2793
- rect.x = noteModel.startx;
2794
- rect.y = noteModel.starty;
2795
- rect.width = noteModel.width || conf.width;
2796
- rect.class = "note";
2797
- const g = elem.append("g");
2798
- const rectElem = svgDraw_default.drawRect(g, rect);
2799
- const textObj = getTextObj();
2800
- textObj.x = noteModel.startx;
2801
- textObj.y = noteModel.starty;
2802
- textObj.width = rect.width;
2803
- textObj.dy = "1em";
2804
- textObj.text = noteModel.message;
2805
- textObj.class = "noteText";
2806
- textObj.fontFamily = conf.noteFontFamily;
2807
- textObj.fontSize = conf.noteFontSize;
2808
- textObj.fontWeight = conf.noteFontWeight;
2809
- textObj.anchor = conf.noteAlign;
2810
- textObj.textMargin = conf.noteMargin;
2811
- textObj.valign = "center";
2812
- const textElem = hasKatex(textObj.text) ? await drawKatex(g, textObj) : drawText(g, textObj);
2813
- const textHeight = Math.round(
2814
- textElem.map((te) => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)
2815
- );
2816
- rectElem.attr("height", textHeight + 2 * conf.noteMargin);
2817
- noteModel.height += textHeight + 2 * conf.noteMargin;
2818
- bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);
2819
- noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;
2820
- noteModel.stopx = noteModel.startx + rect.width;
2821
- bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);
2822
- bounds.models.addNote(noteModel);
2823
- }, "drawNote");
2824
- var messageFont = /* @__PURE__ */ __name((cnf) => {
2825
- return {
2826
- fontFamily: cnf.messageFontFamily,
2827
- fontSize: cnf.messageFontSize,
2828
- fontWeight: cnf.messageFontWeight
2829
- };
2830
- }, "messageFont");
2831
- var noteFont = /* @__PURE__ */ __name((cnf) => {
2832
- return {
2833
- fontFamily: cnf.noteFontFamily,
2834
- fontSize: cnf.noteFontSize,
2835
- fontWeight: cnf.noteFontWeight
2836
- };
2837
- }, "noteFont");
2838
- var actorFont = /* @__PURE__ */ __name((cnf) => {
2839
- return {
2840
- fontFamily: cnf.actorFontFamily,
2841
- fontSize: cnf.actorFontSize,
2842
- fontWeight: cnf.actorFontWeight
2843
- };
2844
- }, "actorFont");
2845
- async function boundMessage(_diagram, msgModel) {
2846
- bounds.bumpVerticalPos(10);
2847
- const { startx, stopx, message } = msgModel;
2848
- const lines = common_default.splitBreaks(message).length;
2849
- const isKatexMsg = hasKatex(message);
2850
- const textDims = isKatexMsg ? await calculateMathMLDimensions(message, getConfig2()) : utils_default.calculateTextDimensions(message, messageFont(conf));
2851
- if (!isKatexMsg) {
2852
- const lineHeight = textDims.height / lines;
2853
- msgModel.height += lineHeight;
2854
- bounds.bumpVerticalPos(lineHeight);
2855
- }
2856
- let lineStartY;
2857
- let totalOffset = textDims.height - 10;
2858
- const textWidth = textDims.width;
2859
- if (startx === stopx) {
2860
- lineStartY = bounds.getVerticalPos() + totalOffset;
2861
- if (!conf.rightAngles) {
2862
- totalOffset += conf.boxMargin;
2863
- lineStartY = bounds.getVerticalPos() + totalOffset;
2864
- }
2865
- totalOffset += 30;
2866
- const dx = common_default.getMax(textWidth / 2, conf.width / 2);
2867
- bounds.insert(
2868
- startx - dx,
2869
- bounds.getVerticalPos() - 10 + totalOffset,
2870
- stopx + dx,
2871
- bounds.getVerticalPos() + 30 + totalOffset
2872
- );
2873
- } else {
2874
- totalOffset += conf.boxMargin;
2875
- lineStartY = bounds.getVerticalPos() + totalOffset;
2876
- bounds.insert(startx, lineStartY - 10, stopx, lineStartY);
2877
- }
2878
- bounds.bumpVerticalPos(totalOffset);
2879
- msgModel.height += totalOffset;
2880
- msgModel.stopy = msgModel.starty + msgModel.height;
2881
- bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);
2882
- return lineStartY;
2883
- }
2884
- __name(boundMessage, "boundMessage");
2885
- var drawMessage = /* @__PURE__ */ __name(async function(diagram2, msgModel, lineStartY, diagObj) {
2886
- const { startx, stopx, starty, message, type, sequenceIndex, sequenceVisible } = msgModel;
2887
- const textDims = utils_default.calculateTextDimensions(message, messageFont(conf));
2888
- const textObj = getTextObj();
2889
- textObj.x = startx;
2890
- textObj.y = starty + 10;
2891
- textObj.width = stopx - startx;
2892
- textObj.class = "messageText";
2893
- textObj.dy = "1em";
2894
- textObj.text = message;
2895
- textObj.fontFamily = conf.messageFontFamily;
2896
- textObj.fontSize = conf.messageFontSize;
2897
- textObj.fontWeight = conf.messageFontWeight;
2898
- textObj.anchor = conf.messageAlign;
2899
- textObj.valign = "center";
2900
- textObj.textMargin = conf.wrapPadding;
2901
- textObj.tspan = false;
2902
- if (hasKatex(textObj.text)) {
2903
- await drawKatex(diagram2, textObj, { startx, stopx, starty: lineStartY });
2904
- } else {
2905
- drawText(diagram2, textObj);
2906
- }
2907
- const textWidth = textDims.width;
2908
- let line;
2909
- if (startx === stopx) {
2910
- if (conf.rightAngles) {
2911
- line = diagram2.append("path").attr(
2912
- "d",
2913
- `M ${startx},${lineStartY} H ${startx + common_default.getMax(conf.width / 2, textWidth / 2)} V ${lineStartY + 25} H ${startx}`
2914
- );
2915
- } else {
2916
- line = diagram2.append("path").attr(
2917
- "d",
2918
- "M " + startx + "," + lineStartY + " C " + (startx + 60) + "," + (lineStartY - 10) + " " + (startx + 60) + "," + (lineStartY + 30) + " " + startx + "," + (lineStartY + 20)
2919
- );
2920
- }
2921
- } else {
2922
- line = diagram2.append("line");
2923
- line.attr("x1", startx);
2924
- line.attr("y1", lineStartY);
2925
- line.attr("x2", stopx);
2926
- line.attr("y2", lineStartY);
2927
- }
2928
- if (type === diagObj.db.LINETYPE.DOTTED || type === diagObj.db.LINETYPE.DOTTED_CROSS || type === diagObj.db.LINETYPE.DOTTED_POINT || type === diagObj.db.LINETYPE.DOTTED_OPEN || type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED) {
2929
- line.style("stroke-dasharray", "3, 3");
2930
- line.attr("class", "messageLine1");
2931
- } else {
2932
- line.attr("class", "messageLine0");
2933
- }
2934
- let url = "";
2935
- if (conf.arrowMarkerAbsolute) {
2936
- url = getUrl(true);
2937
- }
2938
- line.attr("stroke-width", 2);
2939
- line.attr("stroke", "none");
2940
- line.style("fill", "none");
2941
- if (type === diagObj.db.LINETYPE.SOLID || type === diagObj.db.LINETYPE.DOTTED) {
2942
- line.attr("marker-end", "url(" + url + "#arrowhead)");
2943
- }
2944
- if (type === diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID || type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED) {
2945
- line.attr("marker-start", "url(" + url + "#arrowhead)");
2946
- line.attr("marker-end", "url(" + url + "#arrowhead)");
2947
- }
2948
- if (type === diagObj.db.LINETYPE.SOLID_POINT || type === diagObj.db.LINETYPE.DOTTED_POINT) {
2949
- line.attr("marker-end", "url(" + url + "#filled-head)");
2950
- }
2951
- if (type === diagObj.db.LINETYPE.SOLID_CROSS || type === diagObj.db.LINETYPE.DOTTED_CROSS) {
2952
- line.attr("marker-end", "url(" + url + "#crosshead)");
2953
- }
2954
- if (sequenceVisible || conf.showSequenceNumbers) {
2955
- const isBidirectional = type === diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID || type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED;
2956
- if (isBidirectional) {
2957
- const SEQUENCE_NUMBER_RADIUS = 6;
2958
- if (startx < stopx) {
2959
- line.attr("x1", startx + 2 * SEQUENCE_NUMBER_RADIUS);
2960
- } else {
2961
- line.attr("x1", startx + SEQUENCE_NUMBER_RADIUS);
2962
- }
2963
- }
2964
- diagram2.append("line").attr("x1", startx).attr("y1", lineStartY).attr("x2", startx).attr("y2", lineStartY).attr("stroke-width", 0).attr("marker-start", "url(" + url + "#sequencenumber)");
2965
- diagram2.append("text").attr("x", startx).attr("y", lineStartY + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(sequenceIndex);
2966
- }
2967
- }, "drawMessage");
2968
- var addActorRenderingData = /* @__PURE__ */ __name(function(diagram2, actors, createdActors, actorKeys, verticalPos, messages, isFooter) {
2969
- let prevWidth = 0;
2970
- let prevMargin = 0;
2971
- let prevBox = void 0;
2972
- let maxHeight = 0;
2973
- for (const actorKey of actorKeys) {
2974
- const actor = actors.get(actorKey);
2975
- const box = actor.box;
2976
- if (prevBox && prevBox != box) {
2977
- if (!isFooter) {
2978
- bounds.models.addBox(prevBox);
2979
- }
2980
- prevMargin += conf.boxMargin + prevBox.margin;
2981
- }
2982
- if (box && box != prevBox) {
2983
- if (!isFooter) {
2984
- box.x = prevWidth + prevMargin;
2985
- box.y = verticalPos;
2986
- }
2987
- prevMargin += box.margin;
2988
- }
2989
- actor.width = actor.width || conf.width;
2990
- actor.height = common_default.getMax(actor.height || conf.height, conf.height);
2991
- actor.margin = actor.margin || conf.actorMargin;
2992
- maxHeight = common_default.getMax(maxHeight, actor.height);
2993
- if (createdActors.get(actor.name)) {
2994
- prevMargin += actor.width / 2;
2995
- }
2996
- actor.x = prevWidth + prevMargin;
2997
- actor.starty = bounds.getVerticalPos();
2998
- bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);
2999
- prevWidth += actor.width + prevMargin;
3000
- if (actor.box) {
3001
- actor.box.width = prevWidth + box.margin - actor.box.x;
3002
- }
3003
- prevMargin = actor.margin;
3004
- prevBox = actor.box;
3005
- bounds.models.addActor(actor);
3006
- }
3007
- if (prevBox && !isFooter) {
3008
- bounds.models.addBox(prevBox);
3009
- }
3010
- bounds.bumpVerticalPos(maxHeight);
3011
- }, "addActorRenderingData");
3012
- var drawActors = /* @__PURE__ */ __name(async function(diagram2, actors, actorKeys, isFooter) {
3013
- if (!isFooter) {
3014
- for (const actorKey of actorKeys) {
3015
- const actor = actors.get(actorKey);
3016
- await svgDraw_default.drawActor(diagram2, actor, conf, false);
3017
- }
3018
- } else {
3019
- let maxHeight = 0;
3020
- bounds.bumpVerticalPos(conf.boxMargin * 2);
3021
- for (const actorKey of actorKeys) {
3022
- const actor = actors.get(actorKey);
3023
- if (!actor.stopy) {
3024
- actor.stopy = bounds.getVerticalPos();
3025
- }
3026
- const height = await svgDraw_default.drawActor(diagram2, actor, conf, true);
3027
- maxHeight = common_default.getMax(maxHeight, height);
3028
- }
3029
- bounds.bumpVerticalPos(maxHeight + conf.boxMargin);
3030
- }
3031
- }, "drawActors");
3032
- var drawActorsPopup = /* @__PURE__ */ __name(function(diagram2, actors, actorKeys, doc) {
3033
- let maxHeight = 0;
3034
- let maxWidth = 0;
3035
- for (const actorKey of actorKeys) {
3036
- const actor = actors.get(actorKey);
3037
- const minMenuWidth = getRequiredPopupWidth(actor);
3038
- const menuDimensions = svgDraw_default.drawPopup(
3039
- diagram2,
3040
- actor,
3041
- minMenuWidth,
3042
- conf,
3043
- conf.forceMenus,
3044
- doc
3045
- );
3046
- if (menuDimensions.height > maxHeight) {
3047
- maxHeight = menuDimensions.height;
3048
- }
3049
- if (menuDimensions.width + actor.x > maxWidth) {
3050
- maxWidth = menuDimensions.width + actor.x;
3051
- }
3052
- }
3053
- return { maxHeight, maxWidth };
3054
- }, "drawActorsPopup");
3055
- var setConf = /* @__PURE__ */ __name(function(cnf) {
3056
- assignWithDepth_default(conf, cnf);
3057
- if (cnf.fontFamily) {
3058
- conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;
3059
- }
3060
- if (cnf.fontSize) {
3061
- conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;
3062
- }
3063
- if (cnf.fontWeight) {
3064
- conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;
3065
- }
3066
- }, "setConf");
3067
- var actorActivations = /* @__PURE__ */ __name(function(actor) {
3068
- return bounds.activations.filter(function(activation) {
3069
- return activation.actor === actor;
3070
- });
3071
- }, "actorActivations");
3072
- var activationBounds = /* @__PURE__ */ __name(function(actor, actors) {
3073
- const actorObj = actors.get(actor);
3074
- const activations = actorActivations(actor);
3075
- const left = activations.reduce(
3076
- function(acc, activation) {
3077
- return common_default.getMin(acc, activation.startx);
3078
- },
3079
- actorObj.x + actorObj.width / 2 - 1
3080
- );
3081
- const right = activations.reduce(
3082
- function(acc, activation) {
3083
- return common_default.getMax(acc, activation.stopx);
3084
- },
3085
- actorObj.x + actorObj.width / 2 + 1
3086
- );
3087
- return [left, right];
3088
- }, "activationBounds");
3089
- function adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {
3090
- bounds.bumpVerticalPos(preMargin);
3091
- let heightAdjust = postMargin;
3092
- if (msg.id && msg.message && loopWidths[msg.id]) {
3093
- const loopWidth = loopWidths[msg.id].width;
3094
- const textConf = messageFont(conf);
3095
- msg.message = utils_default.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);
3096
- msg.width = loopWidth;
3097
- msg.wrap = true;
3098
- const textDims = utils_default.calculateTextDimensions(msg.message, textConf);
3099
- const totalOffset = common_default.getMax(textDims.height, conf.labelBoxHeight);
3100
- heightAdjust = postMargin + totalOffset;
3101
- log.debug(`${totalOffset} - ${msg.message}`);
3102
- }
3103
- addLoopFn(msg);
3104
- bounds.bumpVerticalPos(heightAdjust);
3105
- }
3106
- __name(adjustLoopHeightForWrap, "adjustLoopHeightForWrap");
3107
- function adjustCreatedDestroyedData(msg, msgModel, lineStartY, index, actors, createdActors, destroyedActors) {
3108
- function receiverAdjustment(actor, adjustment) {
3109
- if (actor.x < actors.get(msg.from).x) {
3110
- bounds.insert(
3111
- msgModel.stopx - adjustment,
3112
- msgModel.starty,
3113
- msgModel.startx,
3114
- msgModel.stopy + actor.height / 2 + conf.noteMargin
3115
- );
3116
- msgModel.stopx = msgModel.stopx + adjustment;
3117
- } else {
3118
- bounds.insert(
3119
- msgModel.startx,
3120
- msgModel.starty,
3121
- msgModel.stopx + adjustment,
3122
- msgModel.stopy + actor.height / 2 + conf.noteMargin
3123
- );
3124
- msgModel.stopx = msgModel.stopx - adjustment;
3125
- }
3126
- }
3127
- __name(receiverAdjustment, "receiverAdjustment");
3128
- function senderAdjustment(actor, adjustment) {
3129
- if (actor.x < actors.get(msg.to).x) {
3130
- bounds.insert(
3131
- msgModel.startx - adjustment,
3132
- msgModel.starty,
3133
- msgModel.stopx,
3134
- msgModel.stopy + actor.height / 2 + conf.noteMargin
3135
- );
3136
- msgModel.startx = msgModel.startx + adjustment;
3137
- } else {
3138
- bounds.insert(
3139
- msgModel.stopx,
3140
- msgModel.starty,
3141
- msgModel.startx + adjustment,
3142
- msgModel.stopy + actor.height / 2 + conf.noteMargin
3143
- );
3144
- msgModel.startx = msgModel.startx - adjustment;
3145
- }
3146
- }
3147
- __name(senderAdjustment, "senderAdjustment");
3148
- const actorArray = [
3149
- PARTICIPANT_TYPE.ACTOR,
3150
- PARTICIPANT_TYPE.CONTROL,
3151
- PARTICIPANT_TYPE.ENTITY,
3152
- PARTICIPANT_TYPE.DATABASE
3153
- ];
3154
- if (createdActors.get(msg.to) == index) {
3155
- const actor = actors.get(msg.to);
3156
- const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : actor.width / 2 + 3;
3157
- receiverAdjustment(actor, adjustment);
3158
- actor.starty = lineStartY - actor.height / 2;
3159
- bounds.bumpVerticalPos(actor.height / 2);
3160
- } else if (destroyedActors.get(msg.from) == index) {
3161
- const actor = actors.get(msg.from);
3162
- if (conf.mirrorActors) {
3163
- const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 : actor.width / 2;
3164
- senderAdjustment(actor, adjustment);
3165
- }
3166
- actor.stopy = lineStartY - actor.height / 2;
3167
- bounds.bumpVerticalPos(actor.height / 2);
3168
- } else if (destroyedActors.get(msg.to) == index) {
3169
- const actor = actors.get(msg.to);
3170
- if (conf.mirrorActors) {
3171
- const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : actor.width / 2 + 3;
3172
- receiverAdjustment(actor, adjustment);
3173
- }
3174
- actor.stopy = lineStartY - actor.height / 2;
3175
- bounds.bumpVerticalPos(actor.height / 2);
3176
- }
3177
- }
3178
- __name(adjustCreatedDestroyedData, "adjustCreatedDestroyedData");
3179
- var draw = /* @__PURE__ */ __name(async function(_text, id, _version, diagObj) {
3180
- const { securityLevel, sequence } = getConfig2();
3181
- conf = sequence;
3182
- let sandboxElement;
3183
- if (securityLevel === "sandbox") {
3184
- sandboxElement = select("#i" + id);
3185
- }
3186
- const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
3187
- const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
3188
- bounds.init();
3189
- log.debug(diagObj.db);
3190
- const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select(`[id="${id}"]`);
3191
- const actors = diagObj.db.getActors();
3192
- const createdActors = diagObj.db.getCreatedActors();
3193
- const destroyedActors = diagObj.db.getDestroyedActors();
3194
- const boxes = diagObj.db.getBoxes();
3195
- let actorKeys = diagObj.db.getActorKeys();
3196
- const messages = diagObj.db.getMessages();
3197
- const title = diagObj.db.getDiagramTitle();
3198
- const hasBoxes = diagObj.db.hasAtLeastOneBox();
3199
- const hasBoxTitles = diagObj.db.hasAtLeastOneBoxWithTitle();
3200
- const maxMessageWidthPerActor = await getMaxMessageWidthPerActor(actors, messages, diagObj);
3201
- conf.height = await calculateActorMargins(actors, maxMessageWidthPerActor, boxes);
3202
- svgDraw_default.insertComputerIcon(diagram2);
3203
- svgDraw_default.insertDatabaseIcon(diagram2);
3204
- svgDraw_default.insertClockIcon(diagram2);
3205
- if (hasBoxes) {
3206
- bounds.bumpVerticalPos(conf.boxMargin);
3207
- if (hasBoxTitles) {
3208
- bounds.bumpVerticalPos(boxes[0].textMaxHeight);
3209
- }
3210
- }
3211
- if (conf.hideUnusedParticipants === true) {
3212
- const newActors = /* @__PURE__ */ new Set();
3213
- messages.forEach((message) => {
3214
- newActors.add(message.from);
3215
- newActors.add(message.to);
3216
- });
3217
- actorKeys = actorKeys.filter((actorKey) => newActors.has(actorKey));
3218
- }
3219
- addActorRenderingData(diagram2, actors, createdActors, actorKeys, 0, messages, false);
3220
- const loopWidths = await calculateLoopBounds(messages, actors, maxMessageWidthPerActor, diagObj);
3221
- svgDraw_default.insertArrowHead(diagram2);
3222
- svgDraw_default.insertArrowCrossHead(diagram2);
3223
- svgDraw_default.insertArrowFilledHead(diagram2);
3224
- svgDraw_default.insertSequenceNumber(diagram2);
3225
- function activeEnd(msg, verticalPos) {
3226
- const activationData = bounds.endActivation(msg);
3227
- if (activationData.starty + 18 > verticalPos) {
3228
- activationData.starty = verticalPos - 6;
3229
- verticalPos += 12;
3230
- }
3231
- svgDraw_default.drawActivation(
3232
- diagram2,
3233
- activationData,
3234
- verticalPos,
3235
- conf,
3236
- actorActivations(msg.from).length
3237
- );
3238
- bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);
3239
- }
3240
- __name(activeEnd, "activeEnd");
3241
- let sequenceIndex = 1;
3242
- let sequenceIndexStep = 1;
3243
- const messagesToDraw = [];
3244
- const backgrounds = [];
3245
- let index = 0;
3246
- for (const msg of messages) {
3247
- let loopModel, noteModel, msgModel;
3248
- switch (msg.type) {
3249
- case diagObj.db.LINETYPE.NOTE:
3250
- bounds.resetVerticalPos();
3251
- noteModel = msg.noteModel;
3252
- await drawNote(diagram2, noteModel);
3253
- break;
3254
- case diagObj.db.LINETYPE.ACTIVE_START:
3255
- bounds.newActivation(msg, diagram2, actors);
3256
- break;
3257
- case diagObj.db.LINETYPE.ACTIVE_END:
3258
- activeEnd(msg, bounds.getVerticalPos());
3259
- break;
3260
- case diagObj.db.LINETYPE.LOOP_START:
3261
- adjustLoopHeightForWrap(
3262
- loopWidths,
3263
- msg,
3264
- conf.boxMargin,
3265
- conf.boxMargin + conf.boxTextMargin,
3266
- (message) => bounds.newLoop(message)
3267
- );
3268
- break;
3269
- case diagObj.db.LINETYPE.LOOP_END:
3270
- loopModel = bounds.endLoop();
3271
- await svgDraw_default.drawLoop(diagram2, loopModel, "loop", conf);
3272
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3273
- bounds.models.addLoop(loopModel);
3274
- break;
3275
- case diagObj.db.LINETYPE.RECT_START:
3276
- adjustLoopHeightForWrap(
3277
- loopWidths,
3278
- msg,
3279
- conf.boxMargin,
3280
- conf.boxMargin,
3281
- (message) => bounds.newLoop(void 0, message.message)
3282
- );
3283
- break;
3284
- case diagObj.db.LINETYPE.RECT_END:
3285
- loopModel = bounds.endLoop();
3286
- backgrounds.push(loopModel);
3287
- bounds.models.addLoop(loopModel);
3288
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3289
- break;
3290
- case diagObj.db.LINETYPE.OPT_START:
3291
- adjustLoopHeightForWrap(
3292
- loopWidths,
3293
- msg,
3294
- conf.boxMargin,
3295
- conf.boxMargin + conf.boxTextMargin,
3296
- (message) => bounds.newLoop(message)
3297
- );
3298
- break;
3299
- case diagObj.db.LINETYPE.OPT_END:
3300
- loopModel = bounds.endLoop();
3301
- await svgDraw_default.drawLoop(diagram2, loopModel, "opt", conf);
3302
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3303
- bounds.models.addLoop(loopModel);
3304
- break;
3305
- case diagObj.db.LINETYPE.ALT_START:
3306
- adjustLoopHeightForWrap(
3307
- loopWidths,
3308
- msg,
3309
- conf.boxMargin,
3310
- conf.boxMargin + conf.boxTextMargin,
3311
- (message) => bounds.newLoop(message)
3312
- );
3313
- break;
3314
- case diagObj.db.LINETYPE.ALT_ELSE:
3315
- adjustLoopHeightForWrap(
3316
- loopWidths,
3317
- msg,
3318
- conf.boxMargin + conf.boxTextMargin,
3319
- conf.boxMargin,
3320
- (message) => bounds.addSectionToLoop(message)
3321
- );
3322
- break;
3323
- case diagObj.db.LINETYPE.ALT_END:
3324
- loopModel = bounds.endLoop();
3325
- await svgDraw_default.drawLoop(diagram2, loopModel, "alt", conf);
3326
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3327
- bounds.models.addLoop(loopModel);
3328
- break;
3329
- case diagObj.db.LINETYPE.PAR_START:
3330
- case diagObj.db.LINETYPE.PAR_OVER_START:
3331
- adjustLoopHeightForWrap(
3332
- loopWidths,
3333
- msg,
3334
- conf.boxMargin,
3335
- conf.boxMargin + conf.boxTextMargin,
3336
- (message) => bounds.newLoop(message)
3337
- );
3338
- bounds.saveVerticalPos();
3339
- break;
3340
- case diagObj.db.LINETYPE.PAR_AND:
3341
- adjustLoopHeightForWrap(
3342
- loopWidths,
3343
- msg,
3344
- conf.boxMargin + conf.boxTextMargin,
3345
- conf.boxMargin,
3346
- (message) => bounds.addSectionToLoop(message)
3347
- );
3348
- break;
3349
- case diagObj.db.LINETYPE.PAR_END:
3350
- loopModel = bounds.endLoop();
3351
- await svgDraw_default.drawLoop(diagram2, loopModel, "par", conf);
3352
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3353
- bounds.models.addLoop(loopModel);
3354
- break;
3355
- case diagObj.db.LINETYPE.AUTONUMBER:
3356
- sequenceIndex = msg.message.start || sequenceIndex;
3357
- sequenceIndexStep = msg.message.step || sequenceIndexStep;
3358
- if (msg.message.visible) {
3359
- diagObj.db.enableSequenceNumbers();
3360
- } else {
3361
- diagObj.db.disableSequenceNumbers();
3362
- }
3363
- break;
3364
- case diagObj.db.LINETYPE.CRITICAL_START:
3365
- adjustLoopHeightForWrap(
3366
- loopWidths,
3367
- msg,
3368
- conf.boxMargin,
3369
- conf.boxMargin + conf.boxTextMargin,
3370
- (message) => bounds.newLoop(message)
3371
- );
3372
- break;
3373
- case diagObj.db.LINETYPE.CRITICAL_OPTION:
3374
- adjustLoopHeightForWrap(
3375
- loopWidths,
3376
- msg,
3377
- conf.boxMargin + conf.boxTextMargin,
3378
- conf.boxMargin,
3379
- (message) => bounds.addSectionToLoop(message)
3380
- );
3381
- break;
3382
- case diagObj.db.LINETYPE.CRITICAL_END:
3383
- loopModel = bounds.endLoop();
3384
- await svgDraw_default.drawLoop(diagram2, loopModel, "critical", conf);
3385
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3386
- bounds.models.addLoop(loopModel);
3387
- break;
3388
- case diagObj.db.LINETYPE.BREAK_START:
3389
- adjustLoopHeightForWrap(
3390
- loopWidths,
3391
- msg,
3392
- conf.boxMargin,
3393
- conf.boxMargin + conf.boxTextMargin,
3394
- (message) => bounds.newLoop(message)
3395
- );
3396
- break;
3397
- case diagObj.db.LINETYPE.BREAK_END:
3398
- loopModel = bounds.endLoop();
3399
- await svgDraw_default.drawLoop(diagram2, loopModel, "break", conf);
3400
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3401
- bounds.models.addLoop(loopModel);
3402
- break;
3403
- default:
3404
- try {
3405
- msgModel = msg.msgModel;
3406
- msgModel.starty = bounds.getVerticalPos();
3407
- msgModel.sequenceIndex = sequenceIndex;
3408
- msgModel.sequenceVisible = diagObj.db.showSequenceNumbers();
3409
- const lineStartY = await boundMessage(diagram2, msgModel);
3410
- adjustCreatedDestroyedData(
3411
- msg,
3412
- msgModel,
3413
- lineStartY,
3414
- index,
3415
- actors,
3416
- createdActors,
3417
- destroyedActors
3418
- );
3419
- messagesToDraw.push({ messageModel: msgModel, lineStartY });
3420
- bounds.models.addMessage(msgModel);
3421
- } catch (e) {
3422
- log.error("error while drawing message", e);
3423
- }
3424
- }
3425
- if ([
3426
- diagObj.db.LINETYPE.SOLID_OPEN,
3427
- diagObj.db.LINETYPE.DOTTED_OPEN,
3428
- diagObj.db.LINETYPE.SOLID,
3429
- diagObj.db.LINETYPE.DOTTED,
3430
- diagObj.db.LINETYPE.SOLID_CROSS,
3431
- diagObj.db.LINETYPE.DOTTED_CROSS,
3432
- diagObj.db.LINETYPE.SOLID_POINT,
3433
- diagObj.db.LINETYPE.DOTTED_POINT,
3434
- diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID,
3435
- diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED
3436
- ].includes(msg.type)) {
3437
- sequenceIndex = sequenceIndex + sequenceIndexStep;
3438
- }
3439
- index++;
3440
- }
3441
- log.debug("createdActors", createdActors);
3442
- log.debug("destroyedActors", destroyedActors);
3443
- await drawActors(diagram2, actors, actorKeys, false);
3444
- for (const e of messagesToDraw) {
3445
- await drawMessage(diagram2, e.messageModel, e.lineStartY, diagObj);
3446
- }
3447
- if (conf.mirrorActors) {
3448
- await drawActors(diagram2, actors, actorKeys, true);
3449
- }
3450
- backgrounds.forEach((e) => svgDraw_default.drawBackgroundRect(diagram2, e));
3451
- fixLifeLineHeights(diagram2, actors, actorKeys, conf);
3452
- for (const box2 of bounds.models.boxes) {
3453
- box2.height = bounds.getVerticalPos() - box2.y;
3454
- bounds.insert(box2.x, box2.y, box2.x + box2.width, box2.height);
3455
- const boxPadding = conf.boxMargin * 2;
3456
- box2.startx = box2.x - boxPadding;
3457
- box2.starty = box2.y - boxPadding * 0.25;
3458
- box2.stopx = box2.startx + box2.width + 2 * boxPadding;
3459
- box2.stopy = box2.starty + box2.height + boxPadding * 0.75;
3460
- box2.stroke = "rgb(0,0,0, 0.5)";
3461
- svgDraw_default.drawBox(diagram2, box2, conf);
3462
- }
3463
- if (hasBoxes) {
3464
- bounds.bumpVerticalPos(conf.boxMargin);
3465
- }
3466
- const requiredBoxSize = drawActorsPopup(diagram2, actors, actorKeys, doc);
3467
- const { bounds: box } = bounds.getBounds();
3468
- if (box.startx === void 0) {
3469
- box.startx = 0;
3470
- }
3471
- if (box.starty === void 0) {
3472
- box.starty = 0;
3473
- }
3474
- if (box.stopx === void 0) {
3475
- box.stopx = 0;
3476
- }
3477
- if (box.stopy === void 0) {
3478
- box.stopy = 0;
3479
- }
3480
- let boxHeight = box.stopy - box.starty;
3481
- if (boxHeight < requiredBoxSize.maxHeight) {
3482
- boxHeight = requiredBoxSize.maxHeight;
3483
- }
3484
- let height = boxHeight + 2 * conf.diagramMarginY;
3485
- if (conf.mirrorActors) {
3486
- height = height - conf.boxMargin + conf.bottomMarginAdj;
3487
- }
3488
- let boxWidth = box.stopx - box.startx;
3489
- if (boxWidth < requiredBoxSize.maxWidth) {
3490
- boxWidth = requiredBoxSize.maxWidth;
3491
- }
3492
- const width = boxWidth + 2 * conf.diagramMarginX;
3493
- if (title) {
3494
- diagram2.append("text").text(title).attr("x", (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX).attr("y", -25);
3495
- }
3496
- configureSvgSize(diagram2, height, width, conf.useMaxWidth);
3497
- const extraVertForTitle = title ? 40 : 0;
3498
- diagram2.attr(
3499
- "viewBox",
3500
- box.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + extraVertForTitle) + " " + width + " " + (height + extraVertForTitle)
3501
- );
3502
- log.debug(`models:`, bounds.models);
3503
- }, "draw");
3504
- async function getMaxMessageWidthPerActor(actors, messages, diagObj) {
3505
- const maxMessageWidthPerActor = {};
3506
- for (const msg of messages) {
3507
- if (actors.get(msg.to) && actors.get(msg.from)) {
3508
- const actor = actors.get(msg.to);
3509
- if (msg.placement === diagObj.db.PLACEMENT.LEFTOF && !actor.prevActor) {
3510
- continue;
3511
- }
3512
- if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF && !actor.nextActor) {
3513
- continue;
3514
- }
3515
- const isNote = msg.placement !== void 0;
3516
- const isMessage = !isNote;
3517
- const textFont = isNote ? noteFont(conf) : messageFont(conf);
3518
- const wrappedMessage = msg.wrap ? utils_default.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message;
3519
- const messageDimensions = hasKatex(wrappedMessage) ? await calculateMathMLDimensions(msg.message, getConfig2()) : utils_default.calculateTextDimensions(wrappedMessage, textFont);
3520
- const messageWidth = messageDimensions.width + 2 * conf.wrapPadding;
3521
- if (isMessage && msg.from === actor.nextActor) {
3522
- maxMessageWidthPerActor[msg.to] = common_default.getMax(
3523
- maxMessageWidthPerActor[msg.to] || 0,
3524
- messageWidth
3525
- );
3526
- } else if (isMessage && msg.from === actor.prevActor) {
3527
- maxMessageWidthPerActor[msg.from] = common_default.getMax(
3528
- maxMessageWidthPerActor[msg.from] || 0,
3529
- messageWidth
3530
- );
3531
- } else if (isMessage && msg.from === msg.to) {
3532
- maxMessageWidthPerActor[msg.from] = common_default.getMax(
3533
- maxMessageWidthPerActor[msg.from] || 0,
3534
- messageWidth / 2
3535
- );
3536
- maxMessageWidthPerActor[msg.to] = common_default.getMax(
3537
- maxMessageWidthPerActor[msg.to] || 0,
3538
- messageWidth / 2
3539
- );
3540
- } else if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
3541
- maxMessageWidthPerActor[msg.from] = common_default.getMax(
3542
- maxMessageWidthPerActor[msg.from] || 0,
3543
- messageWidth
3544
- );
3545
- } else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
3546
- maxMessageWidthPerActor[actor.prevActor] = common_default.getMax(
3547
- maxMessageWidthPerActor[actor.prevActor] || 0,
3548
- messageWidth
3549
- );
3550
- } else if (msg.placement === diagObj.db.PLACEMENT.OVER) {
3551
- if (actor.prevActor) {
3552
- maxMessageWidthPerActor[actor.prevActor] = common_default.getMax(
3553
- maxMessageWidthPerActor[actor.prevActor] || 0,
3554
- messageWidth / 2
3555
- );
3556
- }
3557
- if (actor.nextActor) {
3558
- maxMessageWidthPerActor[msg.from] = common_default.getMax(
3559
- maxMessageWidthPerActor[msg.from] || 0,
3560
- messageWidth / 2
3561
- );
3562
- }
3563
- }
3564
- }
3565
- }
3566
- log.debug("maxMessageWidthPerActor:", maxMessageWidthPerActor);
3567
- return maxMessageWidthPerActor;
3568
- }
3569
- __name(getMaxMessageWidthPerActor, "getMaxMessageWidthPerActor");
3570
- var getRequiredPopupWidth = /* @__PURE__ */ __name(function(actor) {
3571
- let requiredPopupWidth = 0;
3572
- const textFont = actorFont(conf);
3573
- for (const key in actor.links) {
3574
- const labelDimensions = utils_default.calculateTextDimensions(key, textFont);
3575
- const labelWidth = labelDimensions.width + 2 * conf.wrapPadding + 2 * conf.boxMargin;
3576
- if (requiredPopupWidth < labelWidth) {
3577
- requiredPopupWidth = labelWidth;
3578
- }
3579
- }
3580
- return requiredPopupWidth;
3581
- }, "getRequiredPopupWidth");
3582
- async function calculateActorMargins(actors, actorToMessageWidth, boxes) {
3583
- let maxHeight = 0;
3584
- for (const prop of actors.keys()) {
3585
- const actor = actors.get(prop);
3586
- if (actor.wrap) {
3587
- actor.description = utils_default.wrapLabel(
3588
- actor.description,
3589
- conf.width - 2 * conf.wrapPadding,
3590
- actorFont(conf)
3591
- );
3592
- }
3593
- const actDims = hasKatex(actor.description) ? await calculateMathMLDimensions(actor.description, getConfig2()) : utils_default.calculateTextDimensions(actor.description, actorFont(conf));
3594
- actor.width = actor.wrap ? conf.width : common_default.getMax(conf.width, actDims.width + 2 * conf.wrapPadding);
3595
- actor.height = actor.wrap ? common_default.getMax(actDims.height, conf.height) : conf.height;
3596
- maxHeight = common_default.getMax(maxHeight, actor.height);
3597
- }
3598
- for (const actorKey in actorToMessageWidth) {
3599
- const actor = actors.get(actorKey);
3600
- if (!actor) {
3601
- continue;
3602
- }
3603
- const nextActor = actors.get(actor.nextActor);
3604
- if (!nextActor) {
3605
- const messageWidth2 = actorToMessageWidth[actorKey];
3606
- const actorWidth2 = messageWidth2 + conf.actorMargin - actor.width / 2;
3607
- actor.margin = common_default.getMax(actorWidth2, conf.actorMargin);
3608
- continue;
3609
- }
3610
- const messageWidth = actorToMessageWidth[actorKey];
3611
- const actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;
3612
- actor.margin = common_default.getMax(actorWidth, conf.actorMargin);
3613
- }
3614
- let maxBoxHeight = 0;
3615
- boxes.forEach((box) => {
3616
- const textFont = messageFont(conf);
3617
- let totalWidth = box.actorKeys.reduce((total, aKey) => {
3618
- return total += actors.get(aKey).width + (actors.get(aKey).margin || 0);
3619
- }, 0);
3620
- const standardBoxPadding = conf.boxMargin * 8;
3621
- totalWidth += standardBoxPadding;
3622
- totalWidth -= 2 * conf.boxTextMargin;
3623
- if (box.wrap) {
3624
- box.name = utils_default.wrapLabel(box.name, totalWidth - 2 * conf.wrapPadding, textFont);
3625
- }
3626
- const boxMsgDimensions = utils_default.calculateTextDimensions(box.name, textFont);
3627
- maxBoxHeight = common_default.getMax(boxMsgDimensions.height, maxBoxHeight);
3628
- const minWidth = common_default.getMax(totalWidth, boxMsgDimensions.width + 2 * conf.wrapPadding);
3629
- box.margin = conf.boxTextMargin;
3630
- if (totalWidth < minWidth) {
3631
- const missing = (minWidth - totalWidth) / 2;
3632
- box.margin += missing;
3633
- }
3634
- });
3635
- boxes.forEach((box) => box.textMaxHeight = maxBoxHeight);
3636
- return common_default.getMax(maxHeight, conf.height);
3637
- }
3638
- __name(calculateActorMargins, "calculateActorMargins");
3639
- var buildNoteModel = /* @__PURE__ */ __name(async function(msg, actors, diagObj) {
3640
- const fromActor = actors.get(msg.from);
3641
- const toActor = actors.get(msg.to);
3642
- const startx = fromActor.x;
3643
- const stopx = toActor.x;
3644
- const shouldWrap = msg.wrap && msg.message;
3645
- let textDimensions = hasKatex(msg.message) ? await calculateMathMLDimensions(msg.message, getConfig2()) : utils_default.calculateTextDimensions(
3646
- shouldWrap ? utils_default.wrapLabel(msg.message, conf.width, noteFont(conf)) : msg.message,
3647
- noteFont(conf)
3648
- );
3649
- const noteModel = {
3650
- width: shouldWrap ? conf.width : common_default.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin),
3651
- height: 0,
3652
- startx: fromActor.x,
3653
- stopx: 0,
3654
- starty: 0,
3655
- stopy: 0,
3656
- message: msg.message
3657
- };
3658
- if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
3659
- noteModel.width = shouldWrap ? common_default.getMax(conf.width, textDimensions.width) : common_default.getMax(
3660
- fromActor.width / 2 + toActor.width / 2,
3661
- textDimensions.width + 2 * conf.noteMargin
3662
- );
3663
- noteModel.startx = startx + (fromActor.width + conf.actorMargin) / 2;
3664
- } else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
3665
- noteModel.width = shouldWrap ? common_default.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin) : common_default.getMax(
3666
- fromActor.width / 2 + toActor.width / 2,
3667
- textDimensions.width + 2 * conf.noteMargin
3668
- );
3669
- noteModel.startx = startx - noteModel.width + (fromActor.width - conf.actorMargin) / 2;
3670
- } else if (msg.to === msg.from) {
3671
- textDimensions = utils_default.calculateTextDimensions(
3672
- shouldWrap ? utils_default.wrapLabel(msg.message, common_default.getMax(conf.width, fromActor.width), noteFont(conf)) : msg.message,
3673
- noteFont(conf)
3674
- );
3675
- noteModel.width = shouldWrap ? common_default.getMax(conf.width, fromActor.width) : common_default.getMax(fromActor.width, conf.width, textDimensions.width + 2 * conf.noteMargin);
3676
- noteModel.startx = startx + (fromActor.width - noteModel.width) / 2;
3677
- } else {
3678
- noteModel.width = Math.abs(startx + fromActor.width / 2 - (stopx + toActor.width / 2)) + conf.actorMargin;
3679
- noteModel.startx = startx < stopx ? startx + fromActor.width / 2 - conf.actorMargin / 2 : stopx + toActor.width / 2 - conf.actorMargin / 2;
3680
- }
3681
- if (shouldWrap) {
3682
- noteModel.message = utils_default.wrapLabel(
3683
- msg.message,
3684
- noteModel.width - 2 * conf.wrapPadding,
3685
- noteFont(conf)
3686
- );
3687
- }
3688
- log.debug(
3689
- `NM:[${noteModel.startx},${noteModel.stopx},${noteModel.starty},${noteModel.stopy}:${noteModel.width},${noteModel.height}=${msg.message}]`
3690
- );
3691
- return noteModel;
3692
- }, "buildNoteModel");
3693
- var buildMessageModel = /* @__PURE__ */ __name(function(msg, actors, diagObj) {
3694
- if (![
3695
- diagObj.db.LINETYPE.SOLID_OPEN,
3696
- diagObj.db.LINETYPE.DOTTED_OPEN,
3697
- diagObj.db.LINETYPE.SOLID,
3698
- diagObj.db.LINETYPE.DOTTED,
3699
- diagObj.db.LINETYPE.SOLID_CROSS,
3700
- diagObj.db.LINETYPE.DOTTED_CROSS,
3701
- diagObj.db.LINETYPE.SOLID_POINT,
3702
- diagObj.db.LINETYPE.DOTTED_POINT,
3703
- diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID,
3704
- diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED
3705
- ].includes(msg.type)) {
3706
- return {};
3707
- }
3708
- const [fromLeft, fromRight] = activationBounds(msg.from, actors);
3709
- const [toLeft, toRight] = activationBounds(msg.to, actors);
3710
- const isArrowToRight = fromLeft <= toLeft;
3711
- let startx = isArrowToRight ? fromRight : fromLeft;
3712
- let stopx = isArrowToRight ? toLeft : toRight;
3713
- const isArrowToActivation = Math.abs(toLeft - toRight) > 2;
3714
- const adjustValue = /* @__PURE__ */ __name((value) => {
3715
- return isArrowToRight ? -value : value;
3716
- }, "adjustValue");
3717
- if (msg.from === msg.to) {
3718
- stopx = startx;
3719
- } else {
3720
- if (msg.activate && !isArrowToActivation) {
3721
- stopx += adjustValue(conf.activationWidth / 2 - 1);
3722
- }
3723
- if (![diagObj.db.LINETYPE.SOLID_OPEN, diagObj.db.LINETYPE.DOTTED_OPEN].includes(msg.type)) {
3724
- stopx += adjustValue(3);
3725
- }
3726
- if ([diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID, diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(
3727
- msg.type
3728
- )) {
3729
- startx -= adjustValue(3);
3730
- }
3731
- }
3732
- const allBounds = [fromLeft, fromRight, toLeft, toRight];
3733
- const boundedWidth = Math.abs(startx - stopx);
3734
- if (msg.wrap && msg.message) {
3735
- msg.message = utils_default.wrapLabel(
3736
- msg.message,
3737
- common_default.getMax(boundedWidth + 2 * conf.wrapPadding, conf.width),
3738
- messageFont(conf)
3739
- );
3740
- }
3741
- const msgDims = utils_default.calculateTextDimensions(msg.message, messageFont(conf));
3742
- return {
3743
- width: common_default.getMax(
3744
- msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding,
3745
- boundedWidth + 2 * conf.wrapPadding,
3746
- conf.width
3747
- ),
3748
- height: 0,
3749
- startx,
3750
- stopx,
3751
- starty: 0,
3752
- stopy: 0,
3753
- message: msg.message,
3754
- type: msg.type,
3755
- wrap: msg.wrap,
3756
- fromBounds: Math.min.apply(null, allBounds),
3757
- toBounds: Math.max.apply(null, allBounds)
3758
- };
3759
- }, "buildMessageModel");
3760
- var calculateLoopBounds = /* @__PURE__ */ __name(async function(messages, actors, _maxWidthPerActor, diagObj) {
3761
- const loops = {};
3762
- const stack = [];
3763
- let current, noteModel, msgModel;
3764
- for (const msg of messages) {
3765
- switch (msg.type) {
3766
- case diagObj.db.LINETYPE.LOOP_START:
3767
- case diagObj.db.LINETYPE.ALT_START:
3768
- case diagObj.db.LINETYPE.OPT_START:
3769
- case diagObj.db.LINETYPE.PAR_START:
3770
- case diagObj.db.LINETYPE.PAR_OVER_START:
3771
- case diagObj.db.LINETYPE.CRITICAL_START:
3772
- case diagObj.db.LINETYPE.BREAK_START:
3773
- stack.push({
3774
- id: msg.id,
3775
- msg: msg.message,
3776
- from: Number.MAX_SAFE_INTEGER,
3777
- to: Number.MIN_SAFE_INTEGER,
3778
- width: 0
3779
- });
3780
- break;
3781
- case diagObj.db.LINETYPE.ALT_ELSE:
3782
- case diagObj.db.LINETYPE.PAR_AND:
3783
- case diagObj.db.LINETYPE.CRITICAL_OPTION:
3784
- if (msg.message) {
3785
- current = stack.pop();
3786
- loops[current.id] = current;
3787
- loops[msg.id] = current;
3788
- stack.push(current);
3789
- }
3790
- break;
3791
- case diagObj.db.LINETYPE.LOOP_END:
3792
- case diagObj.db.LINETYPE.ALT_END:
3793
- case diagObj.db.LINETYPE.OPT_END:
3794
- case diagObj.db.LINETYPE.PAR_END:
3795
- case diagObj.db.LINETYPE.CRITICAL_END:
3796
- case diagObj.db.LINETYPE.BREAK_END:
3797
- current = stack.pop();
3798
- loops[current.id] = current;
3799
- break;
3800
- case diagObj.db.LINETYPE.ACTIVE_START:
3801
- {
3802
- const actorRect = actors.get(msg.from ? msg.from : msg.to.actor);
3803
- const stackedSize = actorActivations(msg.from ? msg.from : msg.to.actor).length;
3804
- const x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
3805
- const toAdd = {
3806
- startx: x,
3807
- stopx: x + conf.activationWidth,
3808
- actor: msg.from,
3809
- enabled: true
3810
- };
3811
- bounds.activations.push(toAdd);
3812
- }
3813
- break;
3814
- case diagObj.db.LINETYPE.ACTIVE_END:
3815
- {
3816
- const lastActorActivationIdx = bounds.activations.map((a) => a.actor).lastIndexOf(msg.from);
3817
- bounds.activations.splice(lastActorActivationIdx, 1).splice(0, 1);
3818
- }
3819
- break;
3820
- }
3821
- const isNote = msg.placement !== void 0;
3822
- if (isNote) {
3823
- noteModel = await buildNoteModel(msg, actors, diagObj);
3824
- msg.noteModel = noteModel;
3825
- stack.forEach((stk) => {
3826
- current = stk;
3827
- current.from = common_default.getMin(current.from, noteModel.startx);
3828
- current.to = common_default.getMax(current.to, noteModel.startx + noteModel.width);
3829
- current.width = common_default.getMax(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;
3830
- });
3831
- } else {
3832
- msgModel = buildMessageModel(msg, actors, diagObj);
3833
- msg.msgModel = msgModel;
3834
- if (msgModel.startx && msgModel.stopx && stack.length > 0) {
3835
- stack.forEach((stk) => {
3836
- current = stk;
3837
- if (msgModel.startx === msgModel.stopx) {
3838
- const from = actors.get(msg.from);
3839
- const to = actors.get(msg.to);
3840
- current.from = common_default.getMin(
3841
- from.x - msgModel.width / 2,
3842
- from.x - from.width / 2,
3843
- current.from
3844
- );
3845
- current.to = common_default.getMax(
3846
- to.x + msgModel.width / 2,
3847
- to.x + from.width / 2,
3848
- current.to
3849
- );
3850
- current.width = common_default.getMax(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;
3851
- } else {
3852
- current.from = common_default.getMin(msgModel.startx, current.from);
3853
- current.to = common_default.getMax(msgModel.stopx, current.to);
3854
- current.width = common_default.getMax(current.width, msgModel.width) - conf.labelBoxWidth;
3855
- }
3856
- });
3857
- }
3858
- }
3859
- }
3860
- bounds.activations = [];
3861
- log.debug("Loop type widths:", loops);
3862
- return loops;
3863
- }, "calculateLoopBounds");
3864
- var sequenceRenderer_default = {
3865
- bounds,
3866
- drawActors,
3867
- drawActorsPopup,
3868
- setConf,
3869
- draw
3870
- };
3871
-
3872
- // src/diagrams/sequence/sequenceDiagram.ts
3873
- var diagram = {
3874
- parser: sequenceDiagram_default,
3875
- get db() {
3876
- return new SequenceDB();
3877
- },
3878
- renderer: sequenceRenderer_default,
3879
- styles: styles_default,
3880
- init: /* @__PURE__ */ __name((cnf) => {
3881
- if (!cnf.sequence) {
3882
- cnf.sequence = {};
3883
- }
3884
- if (cnf.wrap) {
3885
- cnf.sequence.wrap = cnf.wrap;
3886
- setConfig2({ sequence: { wrap: cnf.wrap } });
3887
- }
3888
- }, "init")
3889
- };
3890
-
3891
- export { diagram };