synabun 2.0.9 → 2.0.10

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 (252) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +1 -1
  3. package/THIRD-PARTY-LICENSES.md +46 -4
  4. package/launcher.mjs +9 -3
  5. package/lib/start-launcher.js +6 -1
  6. package/mcp-server/package-lock.json +2 -2
  7. package/mcp-server/package.json +1 -1
  8. package/neural-interface/i18n/en.json +218 -7
  9. package/neural-interface/i18n/pt-BR.json +220 -9
  10. package/neural-interface/lib/account-usage.js +5 -3
  11. package/neural-interface/lib/app-controls-api.js +161 -0
  12. package/neural-interface/lib/assistant-api.js +21 -7
  13. package/neural-interface/lib/assistant-brains/opencode.js +13 -1
  14. package/neural-interface/lib/assistant-brains/opencode2-browser-policy/index.js +44 -0
  15. package/neural-interface/lib/assistant-brains/opencode2-route-gate/index.js +57 -0
  16. package/neural-interface/lib/assistant-catalog.js +17 -2
  17. package/neural-interface/lib/assistant-dispatch.js +3 -0
  18. package/neural-interface/lib/assistant-envelope.js +19 -1
  19. package/neural-interface/lib/assistant-runtime.js +127 -8
  20. package/neural-interface/lib/claude-model-catalog.js +64 -14
  21. package/neural-interface/lib/codex-settings-schema.js +109 -47
  22. package/neural-interface/lib/editor-completion-opencode.js +132 -35
  23. package/neural-interface/lib/exec-loop-command.js +8 -1
  24. package/neural-interface/lib/launch-cache.js +293 -0
  25. package/neural-interface/lib/login-start.js +524 -0
  26. package/neural-interface/lib/native-loop-providers.js +18 -3
  27. package/neural-interface/lib/native-loop-runtime.js +19 -0
  28. package/neural-interface/lib/opencode-db-schema.js +75 -0
  29. package/neural-interface/lib/opencode-history.js +16 -1
  30. package/neural-interface/lib/opencode-protocol.js +173 -0
  31. package/neural-interface/lib/opencode-provider-view.js +81 -0
  32. package/neural-interface/lib/opencode-runtime-config.js +10 -3
  33. package/neural-interface/lib/opencode-serve-records.js +606 -0
  34. package/neural-interface/lib/opencode-v2-client.js +33 -6
  35. package/neural-interface/lib/opencode-v2-ws-requests.js +19 -5
  36. package/neural-interface/lib/opencode-worker-activity.js +229 -0
  37. package/neural-interface/lib/opencode2-client.js +760 -0
  38. package/neural-interface/lib/opencode2-proxy.js +116 -0
  39. package/neural-interface/lib/opencode2-translate.js +1008 -0
  40. package/neural-interface/lib/process-identity.js +361 -0
  41. package/neural-interface/lib/session-cache-builder.js +26 -5
  42. package/neural-interface/lib/session-title-generator.js +18 -0
  43. package/neural-interface/lib/style-guide/api.js +4 -3
  44. package/neural-interface/lib/untrusted-file-headers.js +27 -0
  45. package/neural-interface/package-lock.json +1343 -45
  46. package/neural-interface/package.json +5 -1
  47. package/neural-interface/public/index.html +2 -2
  48. package/neural-interface/public/shared/agent-runtime-options.js +55 -11
  49. package/neural-interface/public/shared/assistant/asst-agents-dock.js +172 -17
  50. package/neural-interface/public/shared/assistant/asst-api.js +11 -3
  51. package/neural-interface/public/shared/assistant/asst-brain-picker.js +195 -80
  52. package/neural-interface/public/shared/assistant/asst-composer.js +1 -1
  53. package/neural-interface/public/shared/assistant/asst-hosts.js +49 -2
  54. package/neural-interface/public/shared/assistant/asst-menu.js +77 -6
  55. package/neural-interface/public/shared/assistant/asst-panel.js +197 -33
  56. package/neural-interface/public/shared/assistant/asst-rack-styles.js +28 -10
  57. package/neural-interface/public/shared/assistant/asst-redact.js +186 -0
  58. package/neural-interface/public/shared/assistant/asst-render.js +382 -36
  59. package/neural-interface/public/shared/assistant/asst-run-stage.js +231 -0
  60. package/neural-interface/public/shared/assistant/asst-sanitize.js +193 -3
  61. package/neural-interface/public/shared/assistant/asst-scene-styles.js +273 -0
  62. package/neural-interface/public/shared/assistant/asst-scenes.js +528 -0
  63. package/neural-interface/public/shared/assistant/asst-sidepanel-styles.js +3 -15
  64. package/neural-interface/public/shared/assistant/asst-state.js +14 -0
  65. package/neural-interface/public/shared/assistant/asst-styles.js +43 -0
  66. package/neural-interface/public/shared/assistant/asst-tool-kinds.js +13 -1
  67. package/neural-interface/public/shared/cc-dropdown.js +480 -0
  68. package/neural-interface/public/shared/cdx/cdx-panel.js +13 -1
  69. package/neural-interface/public/shared/cdx/cdx-render.js +15 -3
  70. package/neural-interface/public/shared/cdx/cdx-styles.js +4 -0
  71. package/neural-interface/public/shared/cdx/cdx-tabs.js +149 -35
  72. package/neural-interface/public/shared/cp/cp-markdown.js +4 -57
  73. package/neural-interface/public/shared/data-cache.js +223 -0
  74. package/neural-interface/public/shared/desktop-bridge.js +11 -0
  75. package/neural-interface/public/shared/desktop-titlebar-view.js +78 -1
  76. package/neural-interface/public/shared/desktop-titlebar.js +214 -28
  77. package/neural-interface/public/shared/desktop-update-view.js +15 -5
  78. package/neural-interface/public/shared/file-links.js +73 -8
  79. package/neural-interface/public/shared/html-shell.js +74 -80
  80. package/neural-interface/public/shared/launch-prefetch.js +59 -0
  81. package/neural-interface/public/shared/ocp-v2/ocp-v2-caps.js +3 -2
  82. package/neural-interface/public/shared/ocp-v2/ocp-v2-childpanel.js +7 -2
  83. package/neural-interface/public/shared/ocp-v2/ocp-v2-modelpicker.js +54 -17
  84. package/neural-interface/public/shared/ocp-v2/ocp-v2-panel.js +93 -2
  85. package/neural-interface/public/shared/ocp-v2/ocp-v2-projectbar.js +3 -2
  86. package/neural-interface/public/shared/ocp-v2/ocp-v2-providers.js +11 -9
  87. package/neural-interface/public/shared/ocp-v2/ocp-v2-rehydrate.js +15 -4
  88. package/neural-interface/public/shared/ocp-v2/ocp-v2-render.js +1 -1
  89. package/neural-interface/public/shared/ocp-v2/ocp-v2-send-logic.js +401 -0
  90. package/neural-interface/public/shared/ocp-v2/ocp-v2-send.js +16 -9
  91. package/neural-interface/public/shared/ocp-v2/ocp-v2-sessions-logic.js +60 -0
  92. package/neural-interface/public/shared/ocp-v2/ocp-v2-styles.js +48 -19
  93. package/neural-interface/public/shared/ocp-v2/ocp-v2-ws.js +195 -19
  94. package/neural-interface/public/shared/opencode-providers.js +39 -0
  95. package/neural-interface/public/shared/schedules-view.js +318 -0
  96. package/neural-interface/public/shared/settings/settings-app-pane.js +335 -0
  97. package/neural-interface/public/shared/settings/settings-app.js +243 -0
  98. package/neural-interface/public/shared/settings/settings-data.js +88 -0
  99. package/neural-interface/public/shared/settings/settings-ia.js +17 -0
  100. package/neural-interface/public/shared/sidepanel-session-status.js +49 -0
  101. package/neural-interface/public/shared/styles.css +540 -371
  102. package/neural-interface/public/shared/ui-assistant.js +27 -5
  103. package/neural-interface/public/shared/ui-automation-studio.js +67 -27
  104. package/neural-interface/public/shared/ui-bookmarks.js +2 -1
  105. package/neural-interface/public/shared/ui-claude-panel.js +76 -8
  106. package/neural-interface/public/shared/ui-codex-panel.js +1 -0
  107. package/neural-interface/public/shared/ui-detail.js +6 -6
  108. package/neural-interface/public/shared/ui-file-links.js +1 -0
  109. package/neural-interface/public/shared/ui-image-gallery.js +6 -5
  110. package/neural-interface/public/shared/ui-invite.js +18 -2
  111. package/neural-interface/public/shared/ui-link.js +9 -9
  112. package/neural-interface/public/shared/ui-menubar.js +232 -33
  113. package/neural-interface/public/shared/ui-native-loop-router.js +2 -0
  114. package/neural-interface/public/shared/ui-opencode-panel-v2.js +1 -0
  115. package/neural-interface/public/shared/ui-schedules-studio.js +2099 -869
  116. package/neural-interface/public/shared/ui-sessions.js +15 -4
  117. package/neural-interface/public/shared/ui-settings.js +87 -36
  118. package/neural-interface/public/shared/ui-sidebar.js +4 -4
  119. package/neural-interface/public/shared/ui-sidepanel-session-entry.js +13 -0
  120. package/neural-interface/public/shared/ui-sidepanel-sessions.js +55 -4
  121. package/neural-interface/public/shared/ui-sidepanel-tray.js +84 -8
  122. package/neural-interface/public/shared/ui-skills.js +70 -12
  123. package/neural-interface/public/shared/ui-sync.js +7 -0
  124. package/neural-interface/public/shared/ui-terminal.js +36 -20
  125. package/neural-interface/public/shared/ui-trash.js +8 -1
  126. package/neural-interface/public/shared/ui-tutorial-steps.js +7 -3
  127. package/neural-interface/public/shared/ui-tutorial.js +15 -5
  128. package/neural-interface/public/shared/ui-update.js +83 -14
  129. package/neural-interface/public/shared/ui-whiteboard.js +2 -1
  130. package/neural-interface/public/variant/2d/main.js +4 -1
  131. package/neural-interface/public/variant/3d/main.js +3 -0
  132. package/neural-interface/public/vendor/highlight/LICENSE +29 -0
  133. package/neural-interface/public/vendor/highlight/github-dark-dimmed-11.12.0.min.css +9 -0
  134. package/neural-interface/public/vendor/highlight/highlight-11.12.0.min.js +1262 -0
  135. package/neural-interface/public/vendor/highlight/manifest.json +5 -0
  136. package/neural-interface/public/vendor/html2canvas/LICENSE +22 -0
  137. package/neural-interface/public/vendor/html2canvas/html2canvas-1.4.1.min.js +20 -0
  138. package/neural-interface/public/vendor/html2canvas/manifest.json +4 -0
  139. package/neural-interface/public/vendor/marked/LICENSE.md +44 -0
  140. package/neural-interface/public/vendor/marked/manifest.json +4 -0
  141. package/neural-interface/public/vendor/marked/marked-14.1.4.esm.js +2502 -0
  142. package/neural-interface/public/vendor/mermaid/LICENSE +21 -0
  143. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/abnfDiagram-PAR5IXJI.mjs +1 -0
  144. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/architecture-7GRP2DOG-M7G3SWCO.mjs +1 -0
  145. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/architectureDiagram-2PNWDENW.mjs +36 -0
  146. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/blockDiagram-PUWGUBOA.mjs +129 -0
  147. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/c4Diagram-3NLNHZP5.mjs +38 -0
  148. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-2NMSUPJH.mjs +1 -0
  149. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-32MCUW2P.mjs +206 -0
  150. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-3NPNU5GP.mjs +1 -0
  151. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-3SMGFRGC.mjs +1 -0
  152. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-4CAJECRU.mjs +14 -0
  153. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-4OADUZ5Q.mjs +10 -0
  154. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-5IMINLNL.mjs +1 -0
  155. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-5IQCK5RY.mjs +3 -0
  156. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-5MVFYWFU.mjs +1 -0
  157. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-AQ6EADP3.mjs +1 -0
  158. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-AZZRMDJM.mjs +15 -0
  159. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-CLS4B6BI.mjs +168 -0
  160. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-DZP67EKU.mjs +70 -0
  161. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-EICP7K5X.mjs +1 -0
  162. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-GDY2UAB4.mjs +1 -0
  163. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-H7VHZCWX.mjs +1 -0
  164. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-IJBDOHL6.mjs +1 -0
  165. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-JFFVMJIA.mjs +1 -0
  166. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-JQRUD6KW.mjs +1 -0
  167. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-JZGDI5JK.mjs +1 -0
  168. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-KD6SPIPN.mjs +2 -0
  169. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-NF366YI6.mjs +231 -0
  170. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-NUDPKBEF.mjs +32 -0
  171. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-OJINMHTS.mjs +1 -0
  172. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-Q6NGPIAH.mjs +2 -0
  173. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-QJSWEUOL.mjs +132 -0
  174. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-R7JDMUKV.mjs +1 -0
  175. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-RCXAM2GK.mjs +1 -0
  176. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-RT4MAWR3.mjs +1 -0
  177. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-SFMINX4W.mjs +1 -0
  178. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-SLDQ463B.mjs +88 -0
  179. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-STOV2HOB.mjs +1 -0
  180. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-T5OCTHI4.mjs +1 -0
  181. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-TCEHX7R3.mjs +1 -0
  182. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-VQC2EELJ.mjs +1 -0
  183. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-VRZKL3EH.mjs +1 -0
  184. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-VTHDQ7BV.mjs +1 -0
  185. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-VY2OSTJR.mjs +2 -0
  186. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-WUBWJARI.mjs +1 -0
  187. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-YBMQ5JGJ.mjs +2 -0
  188. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-YDMLL4PJ.mjs +1 -0
  189. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-Z6V44ARX.mjs +62 -0
  190. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-ZJJ7VQJP.mjs +339 -0
  191. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-ZNLK7HRR.mjs +1 -0
  192. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-ZQN7UHIL.mjs +1 -0
  193. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-ZS6VBONO.mjs +174 -0
  194. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-ZUNWM646.mjs +1 -0
  195. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/classDiagram-FGAMPOII.mjs +1 -0
  196. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/classDiagram-v2-AI5RJEK4.mjs +1 -0
  197. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/cose-bilkent-Q72C2OJ3.mjs +1 -0
  198. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/cynefin-OW5HDTMX-6OCTWOGG.mjs +1 -0
  199. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/cynefinDiagram-2OOWUY4M.mjs +62 -0
  200. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/dagre-MPVFI544.mjs +4 -0
  201. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/diagram-AE4NWXFW.mjs +24 -0
  202. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/diagram-BUJID5UG.mjs +41 -0
  203. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/diagram-C44CZ5NI.mjs +24 -0
  204. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/diagram-EYOLEXXS.mjs +30 -0
  205. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/diagram-P7B6PWOJ.mjs +3 -0
  206. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/ebnfDiagram-FTPZ3PV6.mjs +1 -0
  207. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/erDiagram-H3ERR26V.mjs +99 -0
  208. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/eventmodeling-NTZA5JFV-WKSWQHFS.mjs +1 -0
  209. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/flowDiagram-YHGXBVSY.mjs +1 -0
  210. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/ganttDiagram-RWFTB7ED.mjs +292 -0
  211. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/gitGraph-4MIJSDKK-JH2HKYUO.mjs +1 -0
  212. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/gitGraphDiagram-MAR6GKOP.mjs +106 -0
  213. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/info-A6RAGUB7-3TX3OFWW.mjs +1 -0
  214. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/infoDiagram-LV547AFH.mjs +2 -0
  215. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/ishikawaDiagram-PUJQGNDS.mjs +70 -0
  216. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/journeyDiagram-EW5QJT4W.mjs +139 -0
  217. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/kanban-definition-JSQERAZB.mjs +89 -0
  218. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/katex-CZ4GXH2S.mjs +257 -0
  219. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/mindmap-definition-VBJCLQLM.mjs +96 -0
  220. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/packet-AYTQ26CC-MKII6P3Y.mjs +1 -0
  221. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/pegDiagram-7WILOQTJ.mjs +1 -0
  222. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/pie-WAS4IAKB-6B4OPMJ5.mjs +1 -0
  223. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/pieDiagram-EFA7CBSB.mjs +39 -0
  224. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/quadrantDiagram-WARVYA7P.mjs +7 -0
  225. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/radar-RG4KPBEZ-UPTR3XUL.mjs +1 -0
  226. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/railroad-74A4TZTK-MEFUPFMS.mjs +1 -0
  227. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/railroad-abnf-HS5TGJTU-R5YG2S5D.mjs +1 -0
  228. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/railroad-ebnf-LZEXJU2U-G5QEX2L6.mjs +1 -0
  229. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/railroad-peg-WCYAUIDC-H5I2ZRY2.mjs +1 -0
  230. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/railroadDiagram-5NIQVNLQ.mjs +1 -0
  231. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/requirementDiagram-SXREGOKZ.mjs +84 -0
  232. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/sankeyDiagram-VV74M2VP.mjs +40 -0
  233. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/sequenceDiagram-52ZFIFDL.mjs +162 -0
  234. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/sizeCapture-FGA5AGYP.mjs +1 -0
  235. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/stateDiagram-3QAKPIVI.mjs +1 -0
  236. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/stateDiagram-v2-HN2P4RDZ.mjs +1 -0
  237. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/swimlanes-QLVP42QD.mjs +1 -0
  238. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/swimlanesDiagram-JKPDBFCN.mjs +8 -0
  239. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/timeline-definition-GS45XAXW.mjs +120 -0
  240. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/treeView-Q6P3EWNA-ZRJGANNQ.mjs +1 -0
  241. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/treemap-WGGIJYW6-K64VN5AS.mjs +1 -0
  242. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/vennDiagram-QIQU2ZRJ.mjs +34 -0
  243. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/wardley-WFR3VGLG-D67OWCCH.mjs +1 -0
  244. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/wardleyDiagram-U6YNM66N.mjs +78 -0
  245. package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/xychartDiagram-XJAZEDNM.mjs +7 -0
  246. package/neural-interface/public/vendor/mermaid/manifest.json +4 -0
  247. package/neural-interface/public/vendor/mermaid/mermaid-11.17.2.esm.min.mjs +14 -0
  248. package/neural-interface/scripts/build-vendor.mjs +84 -3
  249. package/neural-interface/server.js +1099 -286
  250. package/npm-shrinkwrap.json +2 -2
  251. package/package.json +1 -1
  252. package/skills/synabun/modules/schedule.md +1 -1
@@ -0,0 +1,206 @@
1
+ import{a as ot}from"./chunk-AZZRMDJM.mjs";import{a as rt}from"./chunk-RCXAM2GK.mjs";import{a as ut}from"./chunk-VTHDQ7BV.mjs";import{b as nt,c as lt}from"./chunk-YDMLL4PJ.mjs";import{h as it}from"./chunk-EICP7K5X.mjs";import{p as ee,s as at}from"./chunk-VY2OSTJR.mjs";import{A as He,C as V,G as v,S as qe,T as Je,U as Ze,V as $e,W as et,X as tt,Y as st,_ as F,y as Xe}from"./chunk-QJSWEUOL.mjs";import{b as Z,h as $}from"./chunk-H7VHZCWX.mjs";import{a as g}from"./chunk-AQ6EADP3.mjs";var Ve=(function(){var t=g(function(O,c,h,d){for(h=h||{},d=O.length;d--;h[O[d]]=c);return h},"o"),i=[1,18],a=[1,19],r=[1,20],n=[1,41],o=[1,26],l=[1,42],p=[1,24],f=[1,25],m=[1,32],_=[1,33],me=[1,34],k=[1,45],fe=[1,35],Ae=[1,36],ke=[1,37],Ce=[1,38],ye=[1,27],Ee=[1,28],Te=[1,29],De=[1,30],Fe=[1,31],C=[1,44],y=[1,46],E=[1,43],T=[1,47],Ne=[1,9],b=[1,8,9],se=[1,58],ie=[1,59],ae=[1,60],re=[1,61],ne=[1,62],Be=[1,63],Se=[1,64],B=[1,8,9,41],Pe=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],le=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ue=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],oe=[1,103],z=[1,121],Y=[1,117],K=[1,113],j=[1,119],W=[1,114],Q=[1,115],X=[1,116],H=[1,118],q=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],ce=[12,39],_e=[1,8,9,39,41,44,46],he=[1,8,9,22],ze=[1,153],Ye=[1,8,9,61],L=[1,8,9,22,50,60,61,82,86,87,88,89,90],xe={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:g(function(c,h,d,u,A,e,J){var s=e.length-1;switch(A){case 8:this.$=e[s-1];break;case 9:case 10:case 13:case 15:this.$=e[s];break;case 11:case 14:this.$=e[s-2]+"."+e[s];break;case 12:case 16:this.$=e[s-1]+e[s];break;case 17:case 18:this.$=e[s-1]+"~"+e[s]+"~";break;case 19:u.addRelation(e[s]);break;case 20:e[s-1].title=u.cleanupLabel(e[s]),u.addRelation(e[s-1]);break;case 31:this.$=e[s].trim(),u.setAccTitle(this.$);break;case 32:case 33:this.$=e[s].trim(),u.setAccDescription(this.$);break;case 34:u.addClassesToNamespace(e[s-3],e[s-1][0],e[s-1][1]),u.popNamespace();break;case 35:u.addClassesToNamespace(e[s-4],e[s-1][0],e[s-1][1]),u.popNamespace();break;case 36:this.$=u.addNamespace(e[s]);break;case 37:this.$=u.addNamespace(e[s-1],e[s]);break;case 38:this.$=[[e[s]],[]];break;case 39:this.$=[[e[s-1]],[]];break;case 40:e[s][0].unshift(e[s-2]),this.$=e[s];break;case 41:this.$=[[],[e[s]]];break;case 42:this.$=[[],[e[s-1]]];break;case 43:e[s][1].unshift(e[s-2]),this.$=e[s];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[s];break;case 48:u.setCssClass(e[s-2],e[s]);break;case 49:u.addMembers(e[s-3],e[s-1]);break;case 51:u.setCssClass(e[s-5],e[s-3]),u.addMembers(e[s-5],e[s-1]);break;case 52:u.addAnnotation(e[s-3],e[s-1]);break;case 53:u.addAnnotation(e[s-6],e[s-4]),u.addMembers(e[s-6],e[s-1]);break;case 54:u.addAnnotation(e[s-5],e[s-3]);break;case 55:this.$=e[s],u.addClass(e[s]);break;case 56:this.$=e[s-1],u.addClass(e[s-1]),u.setClassLabel(e[s-1],e[s]);break;case 60:u.addAnnotation(e[s],e[s-2]);break;case 61:case 74:this.$=[e[s]];break;case 62:e[s].push(e[s-1]),this.$=e[s];break;case 63:break;case 64:u.addMember(e[s-1],u.cleanupLabel(e[s]));break;case 65:break;case 66:break;case 67:this.$={id1:e[s-2],id2:e[s],relation:e[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[s-3],id2:e[s],relation:e[s-1],relationTitle1:e[s-2],relationTitle2:"none"};break;case 69:this.$={id1:e[s-3],id2:e[s],relation:e[s-2],relationTitle1:"none",relationTitle2:e[s-1]};break;case 70:this.$={id1:e[s-4],id2:e[s],relation:e[s-2],relationTitle1:e[s-3],relationTitle2:e[s-1]};break;case 71:this.$=u.addNote(e[s],e[s-1]);break;case 72:this.$=u.addNote(e[s]);break;case 73:this.$=e[s-2],u.defineClass(e[s-1],e[s]);break;case 75:this.$=e[s-2].concat([e[s]]);break;case 76:u.setDirection("TB");break;case 77:u.setDirection("BT");break;case 78:u.setDirection("RL");break;case 79:u.setDirection("LR");break;case 80:this.$={type1:e[s-2],type2:e[s],lineType:e[s-1]};break;case 81:this.$={type1:"none",type2:e[s],lineType:e[s-1]};break;case 82:this.$={type1:e[s-1],type2:"none",lineType:e[s]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[s]};break;case 84:this.$=u.relationType.AGGREGATION;break;case 85:this.$=u.relationType.EXTENSION;break;case 86:this.$=u.relationType.COMPOSITION;break;case 87:this.$=u.relationType.DEPENDENCY;break;case 88:this.$=u.relationType.LOLLIPOP;break;case 89:this.$=u.lineType.LINE;break;case 90:this.$=u.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[s-2],u.setClickEvent(e[s-1],e[s]);break;case 92:case 98:this.$=e[s-3],u.setClickEvent(e[s-2],e[s-1]),u.setTooltip(e[s-2],e[s]);break;case 93:this.$=e[s-2],u.setLink(e[s-1],e[s]);break;case 94:this.$=e[s-3],u.setLink(e[s-2],e[s-1],e[s]);break;case 95:this.$=e[s-3],u.setLink(e[s-2],e[s-1]),u.setTooltip(e[s-2],e[s]);break;case 96:this.$=e[s-4],u.setLink(e[s-3],e[s-2],e[s]),u.setTooltip(e[s-3],e[s-1]);break;case 99:this.$=e[s-3],u.setClickEvent(e[s-2],e[s-1],e[s]);break;case 100:this.$=e[s-4],u.setClickEvent(e[s-3],e[s-2],e[s-1]),u.setTooltip(e[s-3],e[s]);break;case 101:this.$=e[s-3],u.setLink(e[s-2],e[s]);break;case 102:this.$=e[s-4],u.setLink(e[s-3],e[s-1],e[s]);break;case 103:this.$=e[s-4],u.setLink(e[s-3],e[s-1]),u.setTooltip(e[s-3],e[s]);break;case 104:this.$=e[s-5],u.setLink(e[s-4],e[s-2],e[s]),u.setTooltip(e[s-4],e[s-1]);break;case 105:this.$=e[s-2],u.setCssStyle(e[s-1],e[s]);break;case 106:u.setCssClass(e[s-1],e[s]);break;case 107:this.$=[e[s]];break;case 108:e[s-2].push(e[s]),this.$=e[s-2];break;case 110:this.$=e[s-1]+e[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:o,48:l,51:p,52:f,54:m,56:_,57:me,60:k,62:fe,63:Ae,64:ke,65:Ce,75:ye,76:Ee,78:Te,82:De,83:Fe,86:C,100:y,102:E,103:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(Ne,[2,5],{8:[1,48]}),{8:[1,49]},t(b,[2,19],{22:[1,50]}),t(b,[2,21]),t(b,[2,22]),t(b,[2,23]),t(b,[2,24]),t(b,[2,25]),t(b,[2,26]),t(b,[2,27]),t(b,[2,28]),t(b,[2,29]),t(b,[2,30]),{34:[1,51]},{36:[1,52]},t(b,[2,33]),t(b,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:se,69:ie,70:ae,71:re,72:ne,73:Be,74:Se}),{39:[1,65]},t(B,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t(b,[2,65]),t(b,[2,66]),{16:69,60:k,86:C,100:y,102:E},{16:39,17:40,19:70,60:k,86:C,100:y,102:E,103:T},{16:39,17:40,19:71,60:k,86:C,100:y,102:E,103:T},{16:39,17:40,19:72,60:k,86:C,100:y,102:E,103:T},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:k,86:C,100:y,102:E,103:T},{13:Pe,55:76},{58:78,60:[1,79]},t(b,[2,76]),t(b,[2,77]),t(b,[2,78]),t(b,[2,79]),t(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:k,86:C,100:y,102:E,103:T}),t(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:k,86:C,100:y,102:E,103:T},{16:39,17:40,19:87,60:k,86:C,100:y,102:E,103:T},t(le,[2,133]),t(le,[2,134]),t(le,[2,135]),t(le,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(Ne,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:r,42:n,46:o,48:l,51:p,52:f,54:m,56:_,57:me,60:k,62:fe,63:Ae,64:ke,65:Ce,75:ye,76:Ee,78:Te,82:De,83:Fe,86:C,100:y,102:E,103:T}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:r,38:22,42:n,43:23,46:o,48:l,51:p,52:f,54:m,56:_,57:me,60:k,62:fe,63:Ae,64:ke,65:Ce,75:ye,76:Ee,78:Te,82:De,83:Fe,86:C,100:y,102:E,103:T},t(b,[2,20]),t(b,[2,31]),t(b,[2,32]),{13:[1,91],16:39,17:40,19:90,60:k,86:C,100:y,102:E,103:T},{53:92,66:56,67:57,68:se,69:ie,70:ae,71:re,72:ne,73:Be,74:Se},t(b,[2,64]),{67:93,73:Be,74:Se},t(ue,[2,83],{66:94,68:se,69:ie,70:ae,71:re,72:ne}),t(U,[2,84]),t(U,[2,85]),t(U,[2,86]),t(U,[2,87]),t(U,[2,88]),t(Re,[2,89]),t(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:n,43:23,48:l,54:m,56:_},{16:100,60:k,86:C,100:y,102:E},{41:[1,102],45:101,51:oe},{16:104,60:k,86:C,100:y,102:E},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:z,50:Y,59:110,60:K,82:j,84:111,85:112,86:W,87:Q,88:X,89:H,90:q},{60:[1,122]},{13:Pe,55:123},t(B,[2,72]),t(B,[2,138]),{22:z,50:Y,59:124,60:K,61:[1,125],82:j,84:111,85:112,86:W,87:Q,88:X,89:H,90:q},t(Ge,[2,74]),{16:39,17:40,19:126,60:k,86:C,100:y,102:E,103:T},t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),{11:127,12:Ue,39:[2,36]},t(ce,[2,9],{16:85,17:86,15:130,18:[1,129],60:k,86:C,100:y,102:E,103:T}),t(ce,[2,10]),t(_e,[2,55],{11:131,12:Ue}),t(Ne,[2,7]),{9:[1,132]},t(he,[2,67]),{16:39,17:40,19:133,60:k,86:C,100:y,102:E,103:T},{13:[1,135],16:39,17:40,19:134,60:k,86:C,100:y,102:E,103:T},t(ue,[2,82],{66:136,68:se,69:ie,70:ae,71:re,72:ne}),t(ue,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:n,43:23,48:l,54:m,56:_},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(B,[2,48],{39:[1,142]}),{41:[1,143]},t(B,[2,50]),{41:[2,61],45:144,51:oe},{47:[1,145]},{16:39,17:40,19:146,60:k,86:C,100:y,102:E,103:T},t(b,[2,91],{13:[1,147]}),t(b,[2,93],{13:[1,149],77:[1,148]}),t(b,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t(b,[2,105],{61:ze}),t(Ye,[2,107],{85:154,22:z,50:Y,60:K,82:j,86:W,87:Q,88:X,89:H,90:q}),t(L,[2,109]),t(L,[2,111]),t(L,[2,112]),t(L,[2,113]),t(L,[2,114]),t(L,[2,115]),t(L,[2,116]),t(L,[2,117]),t(L,[2,118]),t(L,[2,119]),t(b,[2,106]),t(B,[2,71]),t(b,[2,73],{61:ze}),{60:[1,155]},t(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:k,86:C,100:y,102:E,103:T},t(ce,[2,12]),t(_e,[2,56]),{1:[2,4]},t(he,[2,69]),t(he,[2,68]),{16:39,17:40,19:158,60:k,86:C,100:y,102:E,103:T},t(ue,[2,80]),t(B,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:n,43:23,48:l,54:m,56:_},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:n,43:23,48:l,54:m,56:_},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:n,43:23,48:l,54:m,56:_},{45:163,51:oe},t(B,[2,49]),{41:[2,62]},t(B,[2,52],{39:[1,164]}),t(b,[2,60]),t(b,[2,92]),t(b,[2,94]),t(b,[2,95],{77:[1,165]}),t(b,[2,98]),t(b,[2,99],{13:[1,166]}),t(b,[2,101],{13:[1,168],77:[1,167]}),{22:z,50:Y,60:K,82:j,84:169,85:112,86:W,87:Q,88:X,89:H,90:q},t(L,[2,110]),t(Ge,[2,75]),{14:[1,170]},t(ce,[2,11]),t(he,[2,70]),t(B,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:oe},t(b,[2,96]),t(b,[2,100]),t(b,[2,102]),t(b,[2,103],{77:[1,174]}),t(Ye,[2,108],{85:154,22:z,50:Y,60:K,82:j,86:W,87:Q,88:X,89:H,90:q}),t(_e,[2,8]),t(B,[2,51]),{41:[1,175]},t(B,[2,54]),t(b,[2,104]),t(B,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:g(function(c,h){if(h.recoverable)this.trace(c);else{var d=new Error(c);throw d.hash=h,d}},"parseError"),parse:g(function(c){var h=this,d=[0],u=[],A=[null],e=[],J=this.table,s="",pe=0,Ke=0,je=0,gt=2,We=1,bt=e.slice.call(arguments,1),D=Object.create(this.lexer),M={yy:{}};for(var ve in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ve)&&(M.yy[ve]=this.yy[ve]);D.setInput(c,M.yy),M.yy.lexer=D,M.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ie=D.yylloc;e.push(Ie);var mt=D.options&&D.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Et(S){d.length=d.length-2*S,A.length=A.length-S,e.length=e.length-S}g(Et,"popStack");function ft(){var S;return S=u.pop()||D.lex()||We,typeof S!="number"&&(S instanceof Array&&(u=S,S=u.pop()),S=h.symbols_[S]||S),S}g(ft,"lex");for(var N,Oe,w,x,Tt,Me,G={},de,I,Qe,ge;;){if(w=d[d.length-1],this.defaultActions[w]?x=this.defaultActions[w]:((N===null||typeof N>"u")&&(N=ft()),x=J[w]&&J[w][N]),typeof x>"u"||!x.length||!x[0]){var we="";ge=[];for(de in J[w])this.terminals_[de]&&de>gt&&ge.push("'"+this.terminals_[de]+"'");D.showPosition?we="Parse error on line "+(pe+1)+`:
2
+ `+D.showPosition()+`
3
+ Expecting `+ge.join(", ")+", got '"+(this.terminals_[N]||N)+"'":we="Parse error on line "+(pe+1)+": Unexpected "+(N==We?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(we,{text:D.match,token:this.terminals_[N]||N,line:D.yylineno,loc:Ie,expected:ge})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+N);switch(x[0]){case 1:d.push(N),A.push(D.yytext),e.push(D.yylloc),d.push(x[1]),N=null,Oe?(N=Oe,Oe=null):(Ke=D.yyleng,s=D.yytext,pe=D.yylineno,Ie=D.yylloc,je>0&&je--);break;case 2:if(I=this.productions_[x[1]][1],G.$=A[A.length-I],G._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},mt&&(G._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Me=this.performAction.apply(G,[s,Ke,pe,M.yy,x[1],A,e].concat(bt)),typeof Me<"u")return Me;I&&(d=d.slice(0,-1*I*2),A=A.slice(0,-1*I),e=e.slice(0,-1*I)),d.push(this.productions_[x[1]][0]),A.push(G.$),e.push(G._$),Qe=J[d[d.length-2]][d[d.length-1]],d.push(Qe);break;case 3:return!0}}return!0},"parse")},dt=(function(){var O={EOF:1,parseError:g(function(h,d){if(this.yy.parser)this.yy.parser.parseError(h,d);else throw new Error(h)},"parseError"),setInput:g(function(c,h){return this.yy=h||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var h=c.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:g(function(c){var h=c.length,d=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var A=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===u.length?this.yylloc.first_column:0)+u[u.length-d.length].length-d[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else 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).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(c){this.unput(this.match.slice(c))},"less"),pastInput:g(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var c=this.pastInput(),h=new Array(c.length+1).join("-");return c+this.upcomingInput()+`
5
+ `+h+"^"},"showPosition"),test_match:g(function(c,h){var d,u,A;if(this.options.backtrack_lexer&&(A={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(A.yylloc.range=this.yylloc.range.slice(0))),u=c[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+c[0].length},this.yytext+=c[0],this.match+=c[0],this.matches=c,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(c[0].length),this.matched+=c[0],d=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var e in A)this[e]=A[e];return!1}return!1},"test_match"),next:g(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var c,h,d,u;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),e=0;e<A.length;e++)if(d=this._input.match(this.rules[A[e]]),d&&(!h||d[0].length>h[0].length)){if(h=d,u=e,this.options.backtrack_lexer){if(c=this.test_match(d,A[e]),c!==!1)return c;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(c=this.test_match(h,A[u]),c!==!1?c:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:g(function(){var h=this.next();return h||this.lex()},"lex"),begin:g(function(h){this.conditionStack.push(h)},"begin"),popState:g(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:g(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:g(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:g(function(h){this.begin(h)},"pushState"),stateStackSize:g(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:g(function(h,d,u,A){var e=A;switch(u){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;break;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;break;case 40:return this.popState(),8;break;case 41:break;case 42:return this.popState(),this.popState(),41;break;case 43:return this.begin("class-body"),39;break;case 44:return this.popState(),41;break;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return O})();xe.lexer=dt;function Le(){this.yy={}}return g(Le,"Parser"),Le.prototype=xe,xe.Parser=Le,new Le})();Ve.parser=Ve;var Dt=Ve;var ct=["#","+","~","-",""],te=class{static{g(this,"ClassMember")}constructor(i,a){this.memberType=a,this.visibility="",this.classifier="",this.text="";let r=He(i,F());this.parseMember(r)}getDisplayDetails(){let i=this.visibility+V(this.id);this.memberType==="method"&&(i+=`(${V(this.parameters.trim())})`,this.returnType&&(i+=" : "+V(this.returnType))),i=i.trim();let a=this.parseClassifier();return{displayText:i,cssStyle:a}}parseMember(i){let a="";if(this.memberType==="method"){let o=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);if(o){let l=o[1]?o[1].trim():"";if(ct.includes(l)&&(this.visibility=l),this.id=o[2],this.parameters=o[3]?o[3].trim():"",a=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",a===""){let p=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(p)&&(a=p,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{let n=i.length,o=i.substring(0,1),l=i.substring(n-1);ct.includes(o)&&(this.visibility=o),/[$*]/.exec(l)&&(a=l),this.id=i.substring(this.visibility===""?0:1,a===""?n:n-1)}this.classifier=a,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let r=`${this.visibility?"\\"+this.visibility:""}${V(this.id)}${this.memberType==="method"?`(${V(this.parameters)})${this.returnType?" : "+V(this.returnType):""}`:""}`;this.text=r.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}};var be="classId-",ht=0,P=g(t=>v.sanitizeText(t,F()),"sanitizeText"),pt=class t{constructor(){this.relations=[];this.classes=new Map;this.styleClasses=new Map;this.notes=new Map;this.interfaces=[];this.namespaces=new Map;this.namespaceCounter=0;this.namespaceStack=[];this.diagramId="";this.functions=[];this.lineType={LINE:0,DOTTED_LINE:1};this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4};this.setupToolTips=g(i=>{let a=it();$(i).select("svg").selectAll("g").filter(function(){return $(this).attr("title")!==null}).on("mouseover",o=>{let l=$(o.currentTarget),p=l.attr("title");if(!p)return;let f=o.currentTarget.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.html(Xe.sanitize(p)).style("left",`${window.scrollX+f.left+f.width/2}px`).style("top",`${window.scrollY+f.bottom+4}px`),l.classed("hover",!0)}).on("mouseout",o=>{a.transition().duration(500).style("opacity",0),$(o.currentTarget).classed("hover",!1)})},"setupToolTips");this.direction="TB";this.setAccTitle=Je;this.getAccTitle=Ze;this.setAccDescription=$e;this.getAccDescription=et;this.setDiagramTitle=tt;this.getDiagramTitle=st;this.getConfig=g(()=>F().class,"getConfig");this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{g(this,"ClassDB")}splitClassNameAndType(i){let a=v.sanitizeText(i,F()),r="",n=a;if(a.indexOf("~")>0){let o=a.split("~");n=P(o[0]),r=P(o[1])}return{className:n,type:r}}setClassLabel(i,a){let r=v.sanitizeText(i,F());a&&(a=P(a));let{className:n}=this.splitClassNameAndType(r);this.classes.get(n).label=a,this.classes.get(n).text=`${a}${this.classes.get(n).type?`<${this.classes.get(n).type}>`:""}`}addClass(i){let a=v.sanitizeText(i,F()),{className:r,type:n}=this.splitClassNameAndType(a);if(this.classes.has(r))return;let o=v.sanitizeText(r,F());this.classes.set(o,{id:o,type:n,label:o,text:`${o}${n?`&lt;${n}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:be+o+"-"+ht}),ht++}addInterface(i,a){let r={id:`interface${this.interfaces.length}`,label:i,classId:a};this.interfaces.push(r)}setDiagramId(i){this.diagramId=i}lookUpDomId(i){let a=v.sanitizeText(i,F());if(this.classes.has(a)){let r=this.classes.get(a).domId;return this.diagramId?`${this.diagramId}-${r}`:r}throw new Error("Class not found: "+a)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",qe()}getClass(i){return this.classes.get(i)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(i){let a=typeof i=="number"?`note${i}`:i;return this.notes.get(a)}getNotes(){return this.notes}addRelation(i){Z.debug("Adding relation: "+JSON.stringify(i));let a=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];i.relation.type1===this.relationType.LOLLIPOP&&!a.includes(i.relation.type2)?(this.addClass(i.id2),this.addInterface(i.id1,i.id2),i.id1=`interface${this.interfaces.length-1}`):i.relation.type2===this.relationType.LOLLIPOP&&!a.includes(i.relation.type1)?(this.addClass(i.id1),this.addInterface(i.id2,i.id1),i.id2=`interface${this.interfaces.length-1}`):(this.addClass(i.id1),this.addClass(i.id2)),i.id1=this.splitClassNameAndType(i.id1).className,i.id2=this.splitClassNameAndType(i.id2).className,i.relationTitle1=v.sanitizeText(i.relationTitle1.trim(),F()),i.relationTitle2=v.sanitizeText(i.relationTitle2.trim(),F()),this.relations.push(i)}addAnnotation(i,a){let r=this.splitClassNameAndType(i).className;this.classes.get(r).annotations.push(a)}addMember(i,a){this.addClass(i);let r=this.splitClassNameAndType(i).className,n=this.classes.get(r);if(typeof a=="string"){let o=a.trim();o.startsWith("<<")&&o.endsWith(">>")?n.annotations.push(P(o.substring(2,o.length-2))):o.indexOf(")")>0?n.methods.push(new te(o,"method")):o&&n.members.push(new te(o,"attribute"))}}addMembers(i,a){Array.isArray(a)&&(a.reverse(),a.forEach(r=>this.addMember(i,r)))}addNote(i,a){let r=this.notes.size,n={id:`note${r}`,class:a,text:i,index:r};return this.notes.set(n.id,n),n.id}cleanupLabel(i){return i.startsWith(":")&&(i=i.substring(1)),P(i.trim())}setCssClass(i,a){i.split(",").forEach(r=>{let n=r;/\d/.exec(r[0])&&(n=be+n),n=this.splitClassNameAndType(n).className;let o=this.classes.get(n);o&&(o.cssClasses+=" "+a)})}defineClass(i,a){for(let r of i){let n=this.styleClasses.get(r);n===void 0&&(n={id:r,styles:[],textStyles:[]},this.styleClasses.set(r,n)),a&&a.forEach(o=>{if(/color/.exec(o)){let l=o.replace("fill","bgFill");n.textStyles.push(l)}n.styles.push(o)}),this.classes.forEach(o=>{o.cssClasses.includes(r)&&o.styles.push(...a.flatMap(l=>l.split(",")))})}}setTooltip(i,a){i.split(",").forEach(r=>{if(a!==void 0){let n=this.splitClassNameAndType(r).className,o=this.classes.get(n);o&&(o.tooltip=P(a))}})}getTooltip(i,a){return a&&this.namespaces.has(a)?this.namespaces.get(a).classes.get(i).tooltip:this.classes.get(i).tooltip}setLink(i,a,r){let n=F();i.split(",").forEach(o=>{let l=o;/\d/.exec(o[0])&&(l=be+l),l=this.splitClassNameAndType(l).className;let p=this.classes.get(l);p&&(p.link=ee.formatUrl(a,n),n.securityLevel==="sandbox"?p.linkTarget="_top":typeof r=="string"?p.linkTarget=P(r):p.linkTarget="_blank")}),this.setCssClass(i,"clickable")}setClickEvent(i,a,r){i.split(",").forEach(n=>{this.setClickFunc(n,a,r);let o=this.splitClassNameAndType(n).className,l=this.classes.get(o);l&&(l.haveCallback=!0)}),this.setCssClass(i,"clickable")}setClickFunc(i,a,r){let n=v.sanitizeText(i,F());if(F().securityLevel!=="loose"||a===void 0)return;let l=this.splitClassNameAndType(n).className;if(this.classes.has(l)){let p=[];if(typeof r=="string"){p=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let f=0;f<p.length;f++){let m=p[f].trim();m.startsWith('"')&&m.endsWith('"')&&(m=m.substr(1,m.length-2)),p[f]=m}}p.length===0&&p.push(l),this.functions.push(()=>{let f=this.lookUpDomId(l),m=document.querySelector(`[id="${f}"]`);m!==null&&m.addEventListener("click",()=>{ee.runFunc(a,...p)},!1)})}}bindFunctions(i){this.functions.forEach(a=>{a(i)})}escapeHtml(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(i){this.direction=i}static resolveQualifiedId(i,a){let r=a.at(-1);return r?`${r}.${i}`:i}static getAncestorIds(i){let a=i.split("."),r=new Array(a.length);r[0]=a[0];for(let n=1;n<a.length;n++)r[n]=`${r[n-1]}.${a[n]}`;return r}createNamespaceNode(i,a,r,n=!1){return{id:i,label:a,classes:new Map,notes:new Map,children:new Map,domId:be+i+"-"+this.namespaceCounter++,parent:r,explicit:n}}linkParentChild(i,a){let r=this.namespaces.get(i),n=this.namespaces.get(a);!r||!n||(r.children.has(a)||r.children.set(a,n),n.parent??=i)}addNamespace(i,a){let r=t.resolveQualifiedId(i,this.namespaceStack);if(this.namespaceStack.push(r),this.namespaces.has(r)){let l=this.namespaces.get(r);return l.explicit=!0,a&&(l.label=a),r}let n=r.split("."),o=t.getAncestorIds(r);for(let l=0;l<o.length;l++){let p=o[l],f=l>0?o[l-1]:void 0,m=l===o.length-1,_=m&&a?a:n[l];this.namespaces.has(p)?m&&(this.namespaces.get(p).explicit=!0):this.namespaces.set(p,this.createNamespaceNode(p,_,f,m)),f&&this.linkParentChild(f,p)}return r}popNamespace(){this.namespaceStack.pop()}getNamespace(i){return this.namespaces.get(i)}getNamespaces(){return this.namespaces}addClassesToNamespace(i,a,r){if(this.namespaces.has(i)){for(let n of a){let{className:o}=this.splitClassNameAndType(n),l=this.getClass(o);l.parent=i,this.namespaces.get(i).classes.set(o,l)}for(let n of r){let o=this.getNote(n);o.parent=i,this.namespaces.get(i).notes.set(n,o)}}}setCssStyle(i,a){let r=this.classes.get(i);if(!(!a||!r))for(let n of a)n.includes(",")?r.styles.push(...n.split(",")):r.styles.push(n)}getArrowMarker(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}resolveExplicitAncestor(i){let a=i;for(;a;){let r=this.namespaces.get(a);if(!r)return;if(r.explicit)return a;a=r.parent}}getData(){let i=[],a=[],r=F(),n=r.class?.hierarchicalNamespaces??!0;for(let l of this.namespaces.values()){if(!n&&!l.explicit)continue;let p={id:l.id,label:n?l.label:l.id,isGroup:!0,padding:r.class.padding??16,shape:"rect",cssStyles:[],look:r.look,parentId:n?l.parent:void 0};i.push(p)}for(let l of this.classes.values()){let p=n?l.parent:this.resolveExplicitAncestor(l.parent),f={...l,type:void 0,isGroup:!1,parentId:p,look:r.look};i.push(f)}for(let l of this.notes.values()){let p=n?l.parent:this.resolveExplicitAncestor(l.parent),f={id:l.id,label:l.text,isGroup:!1,shape:"note",padding:r.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${r.themeVariables.noteBkgColor}`,`stroke: ${r.themeVariables.noteBorderColor}`],look:r.look,parentId:p,labelType:"markdown"};i.push(f);let m=this.classes.get(l.class)?.id;if(m){let _={id:`edgeNote${l.index}`,start:l.id,end:m,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:r.look};a.push(_)}}for(let l of this.interfaces){let p={id:l.id,label:l.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:r.look};i.push(p)}let o=0;for(let l of this.relations){o++;let p={id:at(l.id1,l.id2,{prefix:"id",counter:o}),start:l.id1,end:l.id2,type:"normal",label:l.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(l.relation.type1),arrowTypeEnd:this.getArrowMarker(l.relation.type2),startLabelRight:l.relationTitle1==="none"?"":l.relationTitle1,endLabelLeft:l.relationTitle2==="none"?"":l.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:l.style||"",pattern:l.relation.lineType==1?"dashed":"solid",look:r.look,labelType:"markdown"};a.push(p)}return{nodes:i,edges:a,other:{},config:r,direction:this.getDirection()}}};var At=g(t=>`g.classGroup text {
7
+ fill: ${t.nodeBorder||t.classText};
8
+ stroke: none;
9
+ font-family: ${t.fontFamily};
10
+ font-size: 10px;
11
+
12
+ .title {
13
+ font-weight: bolder;
14
+ }
15
+
16
+ }
17
+
18
+ .cluster-label text {
19
+ fill: ${t.titleColor};
20
+ }
21
+ .cluster-label span {
22
+ color: ${t.titleColor};
23
+ }
24
+ .cluster-label span p {
25
+ background-color: transparent;
26
+ }
27
+
28
+ .cluster rect {
29
+ fill: ${t.clusterBkg};
30
+ stroke: ${t.clusterBorder};
31
+ stroke-width: 1px;
32
+ }
33
+
34
+ .cluster text {
35
+ fill: ${t.titleColor};
36
+ }
37
+
38
+ .cluster span {
39
+ color: ${t.titleColor};
40
+ }
41
+
42
+ .nodeLabel, .edgeLabel {
43
+ color: ${t.classText};
44
+ }
45
+
46
+ .noteLabel .nodeLabel, .noteLabel .edgeLabel {
47
+ color: ${t.noteTextColor};
48
+ }
49
+ .edgeLabel .label rect {
50
+ fill: ${t.mainBkg};
51
+ }
52
+ .label text {
53
+ fill: ${t.classText};
54
+ }
55
+
56
+ .labelBkg {
57
+ background: ${t.mainBkg};
58
+ }
59
+ .edgeLabel .label span {
60
+ background: ${t.mainBkg};
61
+ }
62
+
63
+ .classTitle {
64
+ font-weight: bolder;
65
+ }
66
+ .node rect,
67
+ .node circle,
68
+ .node ellipse,
69
+ .node polygon,
70
+ .node path {
71
+ fill: ${t.mainBkg};
72
+ stroke: ${t.nodeBorder};
73
+ stroke-width: ${t.strokeWidth};
74
+ }
75
+
76
+
77
+ .divider {
78
+ stroke: ${t.nodeBorder};
79
+ stroke-width: 1;
80
+ }
81
+
82
+ g.clickable {
83
+ cursor: pointer;
84
+ }
85
+
86
+ g.classGroup rect {
87
+ fill: ${t.mainBkg};
88
+ stroke: ${t.nodeBorder};
89
+ }
90
+
91
+ g.classGroup line {
92
+ stroke: ${t.nodeBorder};
93
+ stroke-width: 1;
94
+ }
95
+
96
+ .classLabel .box {
97
+ stroke: none;
98
+ stroke-width: 0;
99
+ fill: ${t.mainBkg};
100
+ opacity: 0.5;
101
+ }
102
+
103
+ .classLabel .label {
104
+ fill: ${t.nodeBorder};
105
+ font-size: 10px;
106
+ }
107
+
108
+ .relation {
109
+ stroke: ${t.lineColor};
110
+ stroke-width: ${t.strokeWidth};
111
+ fill: none;
112
+ }
113
+
114
+ .dashed-line{
115
+ stroke-dasharray: 3;
116
+ }
117
+
118
+ .dotted-line{
119
+ stroke-dasharray: 1 2;
120
+ }
121
+
122
+ [id$="-compositionStart"], .composition {
123
+ fill: ${t.lineColor} !important;
124
+ stroke: ${t.lineColor} !important;
125
+ stroke-width: 1;
126
+ }
127
+
128
+ [id$="-compositionEnd"], .composition {
129
+ fill: ${t.lineColor} !important;
130
+ stroke: ${t.lineColor} !important;
131
+ stroke-width: 1;
132
+ }
133
+
134
+ [id$="-dependencyStart"], .dependency {
135
+ fill: ${t.lineColor} !important;
136
+ stroke: ${t.lineColor} !important;
137
+ stroke-width: 1;
138
+ }
139
+
140
+ [id$="-dependencyEnd"], .dependency {
141
+ fill: ${t.lineColor} !important;
142
+ stroke: ${t.lineColor} !important;
143
+ stroke-width: 1;
144
+ }
145
+
146
+ [id$="-extensionStart"], .extension {
147
+ fill: transparent !important;
148
+ stroke: ${t.lineColor} !important;
149
+ stroke-width: 1;
150
+ }
151
+
152
+ [id$="-extensionEnd"], .extension {
153
+ fill: transparent !important;
154
+ stroke: ${t.lineColor} !important;
155
+ stroke-width: 1;
156
+ }
157
+
158
+ [id$="-aggregationStart"], .aggregation {
159
+ fill: transparent !important;
160
+ stroke: ${t.lineColor} !important;
161
+ stroke-width: 1;
162
+ }
163
+
164
+ [id$="-aggregationEnd"], .aggregation {
165
+ fill: transparent !important;
166
+ stroke: ${t.lineColor} !important;
167
+ stroke-width: 1;
168
+ }
169
+
170
+ [id$="-lollipopStart"], .lollipop {
171
+ fill: ${t.mainBkg} !important;
172
+ stroke: ${t.lineColor} !important;
173
+ stroke-width: 1;
174
+ }
175
+
176
+ [id$="-lollipopEnd"], .lollipop {
177
+ fill: ${t.mainBkg} !important;
178
+ stroke: ${t.lineColor} !important;
179
+ stroke-width: 1;
180
+ }
181
+
182
+ .edgeTerminals {
183
+ font-size: 11px;
184
+ line-height: initial;
185
+ }
186
+
187
+ .classTitleText {
188
+ text-anchor: middle;
189
+ font-size: 18px;
190
+ fill: ${t.textColor};
191
+ }
192
+
193
+ .edgeLabel[data-look="neo"] {
194
+ background-color: ${t.edgeLabelBackground};
195
+ p {
196
+ background-color: ${t.edgeLabelBackground};
197
+ }
198
+ rect {
199
+ opacity: 0.5;
200
+ background-color: ${t.edgeLabelBackground};
201
+ fill: ${t.edgeLabelBackground};
202
+ }
203
+ text-align: center;
204
+ }
205
+ ${ot()}
206
+ `,"getStyles"),Yt=At;var kt=g((t,i="TB")=>{if(!t.doc)return i;let a=i;for(let r of t.doc)r.stmt==="dir"&&(a=r.value);return a},"getDir"),Ct=g(function(t,i){return i.db.getClasses()},"getClasses"),yt=g(async function(t,i,a,r){Z.info("REF0:"),Z.info("Drawing class diagram (v3)",i);let{securityLevel:n,state:o,layout:l}=F();r.db.setDiagramId(i);let p=r.db.getData(),f=rt(i,n);p.type=r.type,p.layoutAlgorithm=lt(l),p.nodeSpacing=o?.nodeSpacing||50,p.rankSpacing=o?.rankSpacing||50,p.markers=["aggregation","extension","composition","dependency","lollipop"],p.diagramId=i,await nt(p,f);let m=8;ee.insertTitle(f,"classDiagramTitleText",o?.titleTopMargin??25,r.db.getDiagramTitle()),ut(f,m,"classDiagram",o?.useMaxWidth??!0)},"draw"),Zt={getClasses:Ct,draw:yt,getDir:kt};export{Dt as a,pt as b,Yt as c,Zt as d};
@@ -0,0 +1 @@
1
+ import{a as e,b as a,c as i,d as n,e as s,g as u,l as d,x as l,y as c}from"./chunk-ZS6VBONO.mjs";import{a as o}from"./chunk-AQ6EADP3.mjs";var m=class extends c{static{o(this,"InfoTokenBuilder")}static{e(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},v={parser:{TokenBuilder:e(()=>new m,"TokenBuilder"),ValueConverter:e(()=>new l,"ValueConverter")}};function I(f=s){let r=n(i(f),u),t=n(a({shared:r}),d,v);return r.ServiceRegistry.register(t),{shared:r,Info:t}}o(I,"createInfoServices");e(I,"createInfoServices");export{v as a,I as b};
@@ -0,0 +1 @@
1
+ import{a as r,b as l,c as s,d,e as n,g as u,v as i,w as c}from"./chunk-ZS6VBONO.mjs";import{a as o}from"./chunk-AQ6EADP3.mjs";var m=class extends c{static{o(this,"WardleyValueConverter")}static{r(this,"WardleyValueConverter")}runCustomConverter(t,e,a){switch(t.name.toUpperCase()){case"LINK_LABEL":return e.substring(1).trim();default:return}}},v={parser:{ValueConverter:r(()=>new m,"ValueConverter")}};function y(t=n){let e=d(s(t),u),a=d(l({shared:e}),i,v);return e.ServiceRegistry.register(a),{shared:e,Wardley:a}}o(y,"createWardleyServices");r(y,"createWardleyServices");export{v as a,y as b};
@@ -0,0 +1,14 @@
1
+ import{a as o}from"./chunk-AQ6EADP3.mjs";var $a=typeof global=="object"&&global&&global.Object===Object&&global,$r=$a;var Va=typeof self=="object"&&self&&self.Object===Object&&self,Ya=$r||Va||Function("return this")(),b=Ya;var Za=b.Symbol,v=Za;var Ut=Object.prototype,Ja=Ut.hasOwnProperty,Xa=Ut.toString,Nr=v?v.toStringTag:void 0;function Qa(r){var t=Ja.call(r,Nr),e=r[Nr];try{r[Nr]=void 0;var a=!0}catch{}var f=Xa.call(r);return a&&(t?r[Nr]=e:delete r[Nr]),f}o(Qa,"getRawTag");var Kt=Qa;var ka=Object.prototype,rf=ka.toString;function tf(r){return rf.call(r)}o(tf,"objectToString");var Wt=tf;var ef="[object Null]",of="[object Undefined]",Ht=v?v.toStringTag:void 0;function af(r){return r==null?r===void 0?of:ef:Ht&&Ht in Object(r)?Kt(r):Wt(r)}o(af,"baseGetTag");var C=af;function ff(r){return r!=null&&typeof r=="object"}o(ff,"isObjectLike");var _=ff;var nf="[object Symbol]";function sf(r){return typeof r=="symbol"||_(r)&&C(r)==nf}o(sf,"isSymbol");var M=sf;function pf(r,t){for(var e=-1,a=r==null?0:r.length,f=Array(a);++e<a;)f[e]=t(r[e],e,r);return f}o(pf,"arrayMap");var G=pf;var uf=Array.isArray,l=uf;var mf=1/0,zt=v?v.prototype:void 0,qt=zt?zt.toString:void 0;function $t(r){if(typeof r=="string")return r;if(l(r))return G(r,$t)+"";if(M(r))return qt?qt.call(r):"";var t=r+"";return t=="0"&&1/r==-mf?"-0":t}o($t,"baseToString");var Vt=$t;var lf=/\s/;function df(r){for(var t=r.length;t--&&lf.test(r.charAt(t)););return t}o(df,"trimmedEndIndex");var Yt=df;var cf=/^\s+/;function xf(r){return r&&r.slice(0,Yt(r)+1).replace(cf,"")}o(xf,"baseTrim");var Zt=xf;function hf(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}o(hf,"isObject");var g=hf;var Jt=NaN,gf=/^[-+]0x[0-9a-f]+$/i,bf=/^0b[01]+$/i,yf=/^0o[0-7]+$/i,_f=parseInt;function vf(r){if(typeof r=="number")return r;if(M(r))return Jt;if(g(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=g(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=Zt(r);var e=bf.test(r);return e||yf.test(r)?_f(r.slice(2),e?2:8):gf.test(r)?Jt:+r}o(vf,"toNumber");var Xt=vf;var Qt=1/0,Of=17976931348623157e292;function Af(r){if(!r)return r===0?r:0;if(r=Xt(r),r===Qt||r===-Qt){var t=r<0?-1:1;return t*Of}return r===r?r:0}o(Af,"toFinite");var xr=Af;function Tf(r){var t=xr(r),e=t%1;return t===t?e?t-e:t:0}o(Tf,"toInteger");var kt=Tf;function wf(r){return r}o(wf,"identity");var E=wf;var Sf="[object AsyncFunction]",Pf="[object Function]",Cf="[object GeneratorFunction]",If="[object Proxy]";function Ef(r){if(!g(r))return!1;var t=C(r);return t==Pf||t==Cf||t==Sf||t==If}o(Ef,"isFunction");var U=Ef;var jf=b["__core-js_shared__"],Vr=jf;var re=(function(){var r=/[^.]+$/.exec(Vr&&Vr.keys&&Vr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function Lf(r){return!!re&&re in r}o(Lf,"isMasked");var te=Lf;var Mf=Function.prototype,Ff=Mf.toString;function Rf(r){if(r!=null){try{return Ff.call(r)}catch{}try{return r+""}catch{}}return""}o(Rf,"toSource");var z=Rf;var Nf=/[\\^$.*+?()[\]{}|]/g,Df=/^\[object .+?Constructor\]$/,Bf=Function.prototype,Gf=Object.prototype,Uf=Bf.toString,Kf=Gf.hasOwnProperty,Wf=RegExp("^"+Uf.call(Kf).replace(Nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Hf(r){if(!g(r)||te(r))return!1;var t=U(r)?Wf:Df;return t.test(z(r))}o(Hf,"baseIsNative");var ee=Hf;function zf(r,t){return r?.[t]}o(zf,"getValue");var oe=zf;function qf(r,t){var e=oe(r,t);return ee(e)?e:void 0}o(qf,"getNative");var j=qf;var $f=j(b,"WeakMap"),Yr=$f;var ae=Object.create,Vf=(function(){function r(){}return o(r,"object"),function(t){if(!g(t))return{};if(ae)return ae(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})(),fe=Vf;function Yf(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}o(Yf,"apply");var ne=Yf;function Zf(){}o(Zf,"noop");var ie=Zf;function Jf(r,t){var e=-1,a=r.length;for(t||(t=Array(a));++e<a;)t[e]=r[e];return t}o(Jf,"copyArray");var Zr=Jf;var Xf=800,Qf=16,kf=Date.now;function rn(r){var t=0,e=0;return function(){var a=kf(),f=Qf-(a-e);if(e=a,f>0){if(++t>=Xf)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}o(rn,"shortOut");var se=rn;function tn(r){return function(){return r}}o(tn,"constant");var Y=tn;var en=(function(){try{var r=j(Object,"defineProperty");return r({},"",{}),r}catch{}})(),hr=en;var on=hr?function(r,t){return hr(r,"toString",{configurable:!0,enumerable:!1,value:Y(t),writable:!0})}:E,pe=on;var an=se(pe),Jr=an;function fn(r,t){for(var e=-1,a=r==null?0:r.length;++e<a&&t(r[e],e,r)!==!1;);return r}o(fn,"arrayEach");var Xr=fn;function nn(r,t,e,a){for(var f=r.length,n=e+(a?1:-1);a?n--:++n<f;)if(t(r[n],n,r))return n;return-1}o(nn,"baseFindIndex");var Qr=nn;function sn(r){return r!==r}o(sn,"baseIsNaN");var ue=sn;function pn(r,t,e){for(var a=e-1,f=r.length;++a<f;)if(r[a]===t)return a;return-1}o(pn,"strictIndexOf");var me=pn;function un(r,t,e){return t===t?me(r,t,e):Qr(r,ue,e)}o(un,"baseIndexOf");var le=un;function mn(r,t){var e=r==null?0:r.length;return!!e&&le(r,t,0)>-1}o(mn,"arrayIncludes");var de=mn;var ln=9007199254740991,dn=/^(?:0|[1-9]\d*)$/;function cn(r,t){var e=typeof r;return t=t??ln,!!t&&(e=="number"||e!="symbol"&&dn.test(r))&&r>-1&&r%1==0&&r<t}o(cn,"isIndex");var Z=cn;function xn(r,t,e){t=="__proto__"&&hr?hr(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}o(xn,"baseAssignValue");var J=xn;function hn(r,t){return r===t||r!==r&&t!==t}o(hn,"eq");var R=hn;var gn=Object.prototype,bn=gn.hasOwnProperty;function yn(r,t,e){var a=r[t];(!(bn.call(r,t)&&R(a,e))||e===void 0&&!(t in r))&&J(r,t,e)}o(yn,"assignValue");var X=yn;function _n(r,t,e,a){var f=!e;e||(e={});for(var n=-1,i=t.length;++n<i;){var s=t[n],p=a?a(e[s],r[s],s,e,r):void 0;p===void 0&&(p=r[s]),f?J(e,s,p):X(e,s,p)}return e}o(_n,"copyObject");var K=_n;var ce=Math.max;function vn(r,t,e){return t=ce(t===void 0?r.length-1:t,0),function(){for(var a=arguments,f=-1,n=ce(a.length-t,0),i=Array(n);++f<n;)i[f]=a[t+f];f=-1;for(var s=Array(t+1);++f<t;)s[f]=a[f];return s[t]=e(i),ne(r,this,s)}}o(vn,"overRest");var kr=vn;function On(r,t){return Jr(kr(r,t,E),r+"")}o(On,"baseRest");var Q=On;var An=9007199254740991;function Tn(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=An}o(Tn,"isLength");var gr=Tn;function wn(r){return r!=null&&gr(r.length)&&!U(r)}o(wn,"isArrayLike");var O=wn;function Sn(r,t,e){if(!g(e))return!1;var a=typeof t;return(a=="number"?O(e)&&Z(t,e.length):a=="string"&&t in e)?R(e[t],r):!1}o(Sn,"isIterateeCall");var q=Sn;function Pn(r){return Q(function(t,e){var a=-1,f=e.length,n=f>1?e[f-1]:void 0,i=f>2?e[2]:void 0;for(n=r.length>3&&typeof n=="function"?(f--,n):void 0,i&&q(e[0],e[1],i)&&(n=f<3?void 0:n,f=1),t=Object(t);++a<f;){var s=e[a];s&&r(t,s,a,n)}return t})}o(Pn,"createAssigner");var xe=Pn;var Cn=Object.prototype;function In(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Cn;return r===e}o(In,"isPrototype");var k=In;function En(r,t){for(var e=-1,a=Array(r);++e<r;)a[e]=t(e);return a}o(En,"baseTimes");var he=En;var jn="[object Arguments]";function Ln(r){return _(r)&&C(r)==jn}o(Ln,"baseIsArguments");var Ct=Ln;var ge=Object.prototype,Mn=ge.hasOwnProperty,Fn=ge.propertyIsEnumerable,Rn=Ct((function(){return arguments})())?Ct:function(r){return _(r)&&Mn.call(r,"callee")&&!Fn.call(r,"callee")},N=Rn;function Nn(){return!1}o(Nn,"stubFalse");var be=Nn;var ve=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ye=ve&&typeof module=="object"&&module&&!module.nodeType&&module,Dn=ye&&ye.exports===ve,_e=Dn?b.Buffer:void 0,Bn=_e?_e.isBuffer:void 0,Gn=Bn||be,D=Gn;var Un="[object Arguments]",Kn="[object Array]",Wn="[object Boolean]",Hn="[object Date]",zn="[object Error]",qn="[object Function]",$n="[object Map]",Vn="[object Number]",Yn="[object Object]",Zn="[object RegExp]",Jn="[object Set]",Xn="[object String]",Qn="[object WeakMap]",kn="[object ArrayBuffer]",ri="[object DataView]",ti="[object Float32Array]",ei="[object Float64Array]",oi="[object Int8Array]",ai="[object Int16Array]",fi="[object Int32Array]",ni="[object Uint8Array]",ii="[object Uint8ClampedArray]",si="[object Uint16Array]",pi="[object Uint32Array]",h={};h[ti]=h[ei]=h[oi]=h[ai]=h[fi]=h[ni]=h[ii]=h[si]=h[pi]=!0;h[Un]=h[Kn]=h[kn]=h[Wn]=h[ri]=h[Hn]=h[zn]=h[qn]=h[$n]=h[Vn]=h[Yn]=h[Zn]=h[Jn]=h[Xn]=h[Qn]=!1;function ui(r){return _(r)&&gr(r.length)&&!!h[C(r)]}o(ui,"baseIsTypedArray");var Oe=ui;function mi(r){return function(t){return r(t)}}o(mi,"baseUnary");var rr=mi;var Ae=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Dr=Ae&&typeof module=="object"&&module&&!module.nodeType&&module,li=Dr&&Dr.exports===Ae,It=li&&$r.process,di=(function(){try{var r=Dr&&Dr.require&&Dr.require("util").types;return r||It&&It.binding&&It.binding("util")}catch{}})(),$=di;var Te=$&&$.isTypedArray,ci=Te?rr(Te):Oe,tr=ci;var xi=Object.prototype,hi=xi.hasOwnProperty;function gi(r,t){var e=l(r),a=!e&&N(r),f=!e&&!a&&D(r),n=!e&&!a&&!f&&tr(r),i=e||a||f||n,s=i?he(r.length,String):[],p=s.length;for(var u in r)(t||hi.call(r,u))&&!(i&&(u=="length"||f&&(u=="offset"||u=="parent")||n&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Z(u,p)))&&s.push(u);return s}o(gi,"arrayLikeKeys");var rt=gi;function bi(r,t){return function(e){return r(t(e))}}o(bi,"overArg");var tt=bi;var yi=tt(Object.keys,Object),we=yi;var _i=Object.prototype,vi=_i.hasOwnProperty;function Oi(r){if(!k(r))return we(r);var t=[];for(var e in Object(r))vi.call(r,e)&&e!="constructor"&&t.push(e);return t}o(Oi,"baseKeys");var br=Oi;function Ai(r){return O(r)?rt(r):br(r)}o(Ai,"keys");var y=Ai;function Ti(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}o(Ti,"nativeKeysIn");var Se=Ti;var wi=Object.prototype,Si=wi.hasOwnProperty;function Pi(r){if(!g(r))return Se(r);var t=k(r),e=[];for(var a in r)a=="constructor"&&(t||!Si.call(r,a))||e.push(a);return e}o(Pi,"baseKeysIn");var Pe=Pi;function Ci(r){return O(r)?rt(r,!0):Pe(r)}o(Ci,"keysIn");var L=Ci;var Ii=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ei=/^\w*$/;function ji(r,t){if(l(r))return!1;var e=typeof r;return e=="number"||e=="symbol"||e=="boolean"||r==null||M(r)?!0:Ei.test(r)||!Ii.test(r)||t!=null&&r in Object(t)}o(ji,"isKey");var yr=ji;var Li=j(Object,"create"),V=Li;function Mi(){this.__data__=V?V(null):{},this.size=0}o(Mi,"hashClear");var Ce=Mi;function Fi(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}o(Fi,"hashDelete");var Ie=Fi;var Ri="__lodash_hash_undefined__",Ni=Object.prototype,Di=Ni.hasOwnProperty;function Bi(r){var t=this.__data__;if(V){var e=t[r];return e===Ri?void 0:e}return Di.call(t,r)?t[r]:void 0}o(Bi,"hashGet");var Ee=Bi;var Gi=Object.prototype,Ui=Gi.hasOwnProperty;function Ki(r){var t=this.__data__;return V?t[r]!==void 0:Ui.call(t,r)}o(Ki,"hashHas");var je=Ki;var Wi="__lodash_hash_undefined__";function Hi(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=V&&t===void 0?Wi:t,this}o(Hi,"hashSet");var Le=Hi;function _r(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var a=r[t];this.set(a[0],a[1])}}o(_r,"Hash");_r.prototype.clear=Ce;_r.prototype.delete=Ie;_r.prototype.get=Ee;_r.prototype.has=je;_r.prototype.set=Le;var Et=_r;function zi(){this.__data__=[],this.size=0}o(zi,"listCacheClear");var Me=zi;function qi(r,t){for(var e=r.length;e--;)if(R(r[e][0],t))return e;return-1}o(qi,"assocIndexOf");var er=qi;var $i=Array.prototype,Vi=$i.splice;function Yi(r){var t=this.__data__,e=er(t,r);if(e<0)return!1;var a=t.length-1;return e==a?t.pop():Vi.call(t,e,1),--this.size,!0}o(Yi,"listCacheDelete");var Fe=Yi;function Zi(r){var t=this.__data__,e=er(t,r);return e<0?void 0:t[e][1]}o(Zi,"listCacheGet");var Re=Zi;function Ji(r){return er(this.__data__,r)>-1}o(Ji,"listCacheHas");var Ne=Ji;function Xi(r,t){var e=this.__data__,a=er(e,r);return a<0?(++this.size,e.push([r,t])):e[a][1]=t,this}o(Xi,"listCacheSet");var De=Xi;function vr(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var a=r[t];this.set(a[0],a[1])}}o(vr,"ListCache");vr.prototype.clear=Me;vr.prototype.delete=Fe;vr.prototype.get=Re;vr.prototype.has=Ne;vr.prototype.set=De;var or=vr;var Qi=j(b,"Map"),ar=Qi;function ki(){this.size=0,this.__data__={hash:new Et,map:new(ar||or),string:new Et}}o(ki,"mapCacheClear");var Be=ki;function rs(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}o(rs,"isKeyable");var Ge=rs;function ts(r,t){var e=r.__data__;return Ge(t)?e[typeof t=="string"?"string":"hash"]:e.map}o(ts,"getMapData");var fr=ts;function es(r){var t=fr(this,r).delete(r);return this.size-=t?1:0,t}o(es,"mapCacheDelete");var Ue=es;function os(r){return fr(this,r).get(r)}o(os,"mapCacheGet");var Ke=os;function as(r){return fr(this,r).has(r)}o(as,"mapCacheHas");var We=as;function fs(r,t){var e=fr(this,r),a=e.size;return e.set(r,t),this.size+=e.size==a?0:1,this}o(fs,"mapCacheSet");var He=fs;function Or(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var a=r[t];this.set(a[0],a[1])}}o(Or,"MapCache");Or.prototype.clear=Be;Or.prototype.delete=Ue;Or.prototype.get=Ke;Or.prototype.has=We;Or.prototype.set=He;var lr=Or;var ns="Expected a function";function jt(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(ns);var e=o(function(){var a=arguments,f=t?t.apply(this,a):a[0],n=e.cache;if(n.has(f))return n.get(f);var i=r.apply(this,a);return e.cache=n.set(f,i)||n,i},"memoized");return e.cache=new(jt.Cache||lr),e}o(jt,"memoize");jt.Cache=lr;var ze=jt;var is=500;function ss(r){var t=ze(r,function(a){return e.size===is&&e.clear(),a}),e=t.cache;return t}o(ss,"memoizeCapped");var qe=ss;var ps=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,us=/\\(\\)?/g,ms=qe(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace(ps,function(e,a,f,n){t.push(f?n.replace(us,"$1"):a||e)}),t}),$e=ms;function ls(r){return r==null?"":Vt(r)}o(ls,"toString");var et=ls;function ds(r,t){return l(r)?r:yr(r,t)?[r]:$e(et(r))}o(ds,"castPath");var nr=ds;var cs=1/0;function xs(r){if(typeof r=="string"||M(r))return r;var t=r+"";return t=="0"&&1/r==-cs?"-0":t}o(xs,"toKey");var W=xs;function hs(r,t){t=nr(t,r);for(var e=0,a=t.length;r!=null&&e<a;)r=r[W(t[e++])];return e&&e==a?r:void 0}o(hs,"baseGet");var ir=hs;function gs(r,t,e){var a=r==null?void 0:ir(r,t);return a===void 0?e:a}o(gs,"get");var Ve=gs;function bs(r,t){for(var e=-1,a=t.length,f=r.length;++e<a;)r[f+e]=t[e];return r}o(bs,"arrayPush");var Ar=bs;var Ye=v?v.isConcatSpreadable:void 0;function ys(r){return l(r)||N(r)||!!(Ye&&r&&r[Ye])}o(ys,"isFlattenable");var Ze=ys;function Je(r,t,e,a,f){var n=-1,i=r.length;for(e||(e=Ze),f||(f=[]);++n<i;){var s=r[n];t>0&&e(s)?t>1?Je(s,t-1,e,a,f):Ar(f,s):a||(f[f.length]=s)}return f}o(Je,"baseFlatten");var Tr=Je;function _s(r){var t=r==null?0:r.length;return t?Tr(r,1):[]}o(_s,"flatten");var Lt=_s;function vs(r){return Jr(kr(r,void 0,Lt),r+"")}o(vs,"flatRest");var Xe=vs;var Os=tt(Object.getPrototypeOf,Object),wr=Os;var As="[object Object]",Ts=Function.prototype,ws=Object.prototype,Qe=Ts.toString,Ss=ws.hasOwnProperty,Ps=Qe.call(Object);function Cs(r){if(!_(r)||C(r)!=As)return!1;var t=wr(r);if(t===null)return!0;var e=Ss.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Qe.call(e)==Ps}o(Cs,"isPlainObject");var ke=Cs;var Is="\\ud800-\\udfff",Es="\\u0300-\\u036f",js="\\ufe20-\\ufe2f",Ls="\\u20d0-\\u20ff",Ms=Es+js+Ls,Fs="\\ufe0e\\ufe0f",Rs="\\u200d",Ns=RegExp("["+Rs+Is+Ms+Fs+"]");function Ds(r){return Ns.test(r)}o(Ds,"hasUnicode");var ro=Ds;function Bs(r,t,e,a){var f=-1,n=r==null?0:r.length;for(a&&n&&(e=r[++f]);++f<n;)e=t(e,r[f],f,r);return e}o(Bs,"arrayReduce");var to=Bs;function Gs(){this.__data__=new or,this.size=0}o(Gs,"stackClear");var eo=Gs;function Us(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}o(Us,"stackDelete");var oo=Us;function Ks(r){return this.__data__.get(r)}o(Ks,"stackGet");var ao=Ks;function Ws(r){return this.__data__.has(r)}o(Ws,"stackHas");var fo=Ws;var Hs=200;function zs(r,t){var e=this.__data__;if(e instanceof or){var a=e.__data__;if(!ar||a.length<Hs-1)return a.push([r,t]),this.size=++e.size,this;e=this.__data__=new lr(a)}return e.set(r,t),this.size=e.size,this}o(zs,"stackSet");var no=zs;function Sr(r){var t=this.__data__=new or(r);this.size=t.size}o(Sr,"Stack");Sr.prototype.clear=eo;Sr.prototype.delete=oo;Sr.prototype.get=ao;Sr.prototype.has=fo;Sr.prototype.set=no;var H=Sr;function qs(r,t){return r&&K(t,y(t),r)}o(qs,"baseAssign");var io=qs;function $s(r,t){return r&&K(t,L(t),r)}o($s,"baseAssignIn");var so=$s;var lo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,po=lo&&typeof module=="object"&&module&&!module.nodeType&&module,Vs=po&&po.exports===lo,uo=Vs?b.Buffer:void 0,mo=uo?uo.allocUnsafe:void 0;function Ys(r,t){if(t)return r.slice();var e=r.length,a=mo?mo(e):new r.constructor(e);return r.copy(a),a}o(Ys,"cloneBuffer");var ot=Ys;function Zs(r,t){for(var e=-1,a=r==null?0:r.length,f=0,n=[];++e<a;){var i=r[e];t(i,e,r)&&(n[f++]=i)}return n}o(Zs,"arrayFilter");var at=Zs;function Js(){return[]}o(Js,"stubArray");var ft=Js;var Xs=Object.prototype,Qs=Xs.propertyIsEnumerable,co=Object.getOwnPropertySymbols,ks=co?function(r){return r==null?[]:(r=Object(r),at(co(r),function(t){return Qs.call(r,t)}))}:ft,Pr=ks;function rp(r,t){return K(r,Pr(r),t)}o(rp,"copySymbols");var xo=rp;var tp=Object.getOwnPropertySymbols,ep=tp?function(r){for(var t=[];r;)Ar(t,Pr(r)),r=wr(r);return t}:ft,nt=ep;function op(r,t){return K(r,nt(r),t)}o(op,"copySymbolsIn");var ho=op;function ap(r,t,e){var a=t(r);return l(r)?a:Ar(a,e(r))}o(ap,"baseGetAllKeys");var it=ap;function fp(r){return it(r,y,Pr)}o(fp,"getAllKeys");var Br=fp;function np(r){return it(r,L,nt)}o(np,"getAllKeysIn");var go=np;var ip=j(b,"DataView"),st=ip;var sp=j(b,"Promise"),pt=sp;var pp=j(b,"Set"),sr=pp;var bo="[object Map]",up="[object Object]",yo="[object Promise]",_o="[object Set]",vo="[object WeakMap]",Oo="[object DataView]",mp=z(st),lp=z(ar),dp=z(pt),cp=z(sr),xp=z(Yr),dr=C;(st&&dr(new st(new ArrayBuffer(1)))!=Oo||ar&&dr(new ar)!=bo||pt&&dr(pt.resolve())!=yo||sr&&dr(new sr)!=_o||Yr&&dr(new Yr)!=vo)&&(dr=o(function(r){var t=C(r),e=t==up?r.constructor:void 0,a=e?z(e):"";if(a)switch(a){case mp:return Oo;case lp:return bo;case dp:return yo;case cp:return _o;case xp:return vo}return t},"getTag"));var F=dr;var hp=Object.prototype,gp=hp.hasOwnProperty;function bp(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&gp.call(r,"index")&&(e.index=r.index,e.input=r.input),e}o(bp,"initCloneArray");var Ao=bp;var yp=b.Uint8Array,Cr=yp;function _p(r){var t=new r.constructor(r.byteLength);return new Cr(t).set(new Cr(r)),t}o(_p,"cloneArrayBuffer");var Ir=_p;function vp(r,t){var e=t?Ir(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.byteLength)}o(vp,"cloneDataView");var To=vp;var Op=/\w*$/;function Ap(r){var t=new r.constructor(r.source,Op.exec(r));return t.lastIndex=r.lastIndex,t}o(Ap,"cloneRegExp");var wo=Ap;var So=v?v.prototype:void 0,Po=So?So.valueOf:void 0;function Tp(r){return Po?Object(Po.call(r)):{}}o(Tp,"cloneSymbol");var Co=Tp;function wp(r,t){var e=t?Ir(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}o(wp,"cloneTypedArray");var ut=wp;var Sp="[object Boolean]",Pp="[object Date]",Cp="[object Map]",Ip="[object Number]",Ep="[object RegExp]",jp="[object Set]",Lp="[object String]",Mp="[object Symbol]",Fp="[object ArrayBuffer]",Rp="[object DataView]",Np="[object Float32Array]",Dp="[object Float64Array]",Bp="[object Int8Array]",Gp="[object Int16Array]",Up="[object Int32Array]",Kp="[object Uint8Array]",Wp="[object Uint8ClampedArray]",Hp="[object Uint16Array]",zp="[object Uint32Array]";function qp(r,t,e){var a=r.constructor;switch(t){case Fp:return Ir(r);case Sp:case Pp:return new a(+r);case Rp:return To(r,e);case Np:case Dp:case Bp:case Gp:case Up:case Kp:case Wp:case Hp:case zp:return ut(r,e);case Cp:return new a;case Ip:case Lp:return new a(r);case Ep:return wo(r);case jp:return new a;case Mp:return Co(r)}}o(qp,"initCloneByTag");var Io=qp;function $p(r){return typeof r.constructor=="function"&&!k(r)?fe(wr(r)):{}}o($p,"initCloneObject");var mt=$p;var Vp="[object Map]";function Yp(r){return _(r)&&F(r)==Vp}o(Yp,"baseIsMap");var Eo=Yp;var jo=$&&$.isMap,Zp=jo?rr(jo):Eo,Lo=Zp;var Jp="[object Set]";function Xp(r){return _(r)&&F(r)==Jp}o(Xp,"baseIsSet");var Mo=Xp;var Fo=$&&$.isSet,Qp=Fo?rr(Fo):Mo,Ro=Qp;var kp=1,ru=2,tu=4,No="[object Arguments]",eu="[object Array]",ou="[object Boolean]",au="[object Date]",fu="[object Error]",Do="[object Function]",nu="[object GeneratorFunction]",iu="[object Map]",su="[object Number]",Bo="[object Object]",pu="[object RegExp]",uu="[object Set]",mu="[object String]",lu="[object Symbol]",du="[object WeakMap]",cu="[object ArrayBuffer]",xu="[object DataView]",hu="[object Float32Array]",gu="[object Float64Array]",bu="[object Int8Array]",yu="[object Int16Array]",_u="[object Int32Array]",vu="[object Uint8Array]",Ou="[object Uint8ClampedArray]",Au="[object Uint16Array]",Tu="[object Uint32Array]",x={};x[No]=x[eu]=x[cu]=x[xu]=x[ou]=x[au]=x[hu]=x[gu]=x[bu]=x[yu]=x[_u]=x[iu]=x[su]=x[Bo]=x[pu]=x[uu]=x[mu]=x[lu]=x[vu]=x[Ou]=x[Au]=x[Tu]=!0;x[fu]=x[Do]=x[du]=!1;function lt(r,t,e,a,f,n){var i,s=t&kp,p=t&ru,u=t&tu;if(e&&(i=f?e(r,a,f,n):e(r)),i!==void 0)return i;if(!g(r))return r;var m=l(r);if(m){if(i=Ao(r),!s)return Zr(r,i)}else{var d=F(r),c=d==Do||d==nu;if(D(r))return ot(r,s);if(d==Bo||d==No||c&&!f){if(i=p||c?{}:mt(r),!s)return p?ho(r,so(i,r)):xo(r,io(i,r))}else{if(!x[d])return f?r:{};i=Io(r,d,s)}}n||(n=new H);var w=n.get(r);if(w)return w;n.set(r,i),Ro(r)?r.forEach(function(T){i.add(lt(T,t,e,T,r,n))}):Lo(r)&&r.forEach(function(T,P){i.set(P,lt(T,t,e,P,r,n))});var A=u?p?go:Br:p?L:y,I=m?void 0:A(r);return Xr(I||r,function(T,P){I&&(P=T,T=r[P]),X(i,P,lt(T,t,e,P,r,n))}),i}o(lt,"baseClone");var Go=lt;var wu=1,Su=4;function Pu(r){return Go(r,wu|Su)}o(Pu,"cloneDeep");var Cu=Pu;var Iu="__lodash_hash_undefined__";function Eu(r){return this.__data__.set(r,Iu),this}o(Eu,"setCacheAdd");var Uo=Eu;function ju(r){return this.__data__.has(r)}o(ju,"setCacheHas");var Ko=ju;function dt(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new lr;++t<e;)this.add(r[t])}o(dt,"SetCache");dt.prototype.add=dt.prototype.push=Uo;dt.prototype.has=Ko;var ct=dt;function Lu(r,t){for(var e=-1,a=r==null?0:r.length;++e<a;)if(t(r[e],e,r))return!0;return!1}o(Lu,"arraySome");var Wo=Lu;function Mu(r,t){return r.has(t)}o(Mu,"cacheHas");var xt=Mu;var Fu=1,Ru=2;function Nu(r,t,e,a,f,n){var i=e&Fu,s=r.length,p=t.length;if(s!=p&&!(i&&p>s))return!1;var u=n.get(r),m=n.get(t);if(u&&m)return u==t&&m==r;var d=-1,c=!0,w=e&Ru?new ct:void 0;for(n.set(r,t),n.set(t,r);++d<s;){var A=r[d],I=t[d];if(a)var T=i?a(I,A,d,t,r,n):a(A,I,d,r,t,n);if(T!==void 0){if(T)continue;c=!1;break}if(w){if(!Wo(t,function(P,mr){if(!xt(w,mr)&&(A===P||f(A,P,e,a,n)))return w.push(mr)})){c=!1;break}}else if(!(A===I||f(A,I,e,a,n))){c=!1;break}}return n.delete(r),n.delete(t),c}o(Nu,"equalArrays");var ht=Nu;function Du(r){var t=-1,e=Array(r.size);return r.forEach(function(a,f){e[++t]=[f,a]}),e}o(Du,"mapToArray");var Ho=Du;function Bu(r){var t=-1,e=Array(r.size);return r.forEach(function(a){e[++t]=a}),e}o(Bu,"setToArray");var Er=Bu;var Gu=1,Uu=2,Ku="[object Boolean]",Wu="[object Date]",Hu="[object Error]",zu="[object Map]",qu="[object Number]",$u="[object RegExp]",Vu="[object Set]",Yu="[object String]",Zu="[object Symbol]",Ju="[object ArrayBuffer]",Xu="[object DataView]",zo=v?v.prototype:void 0,Mt=zo?zo.valueOf:void 0;function Qu(r,t,e,a,f,n,i){switch(e){case Xu:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Ju:return!(r.byteLength!=t.byteLength||!n(new Cr(r),new Cr(t)));case Ku:case Wu:case qu:return R(+r,+t);case Hu:return r.name==t.name&&r.message==t.message;case $u:case Yu:return r==t+"";case zu:var s=Ho;case Vu:var p=a&Gu;if(s||(s=Er),r.size!=t.size&&!p)return!1;var u=i.get(r);if(u)return u==t;a|=Uu,i.set(r,t);var m=ht(s(r),s(t),a,f,n,i);return i.delete(r),m;case Zu:if(Mt)return Mt.call(r)==Mt.call(t)}return!1}o(Qu,"equalByTag");var qo=Qu;var ku=1,rm=Object.prototype,tm=rm.hasOwnProperty;function em(r,t,e,a,f,n){var i=e&ku,s=Br(r),p=s.length,u=Br(t),m=u.length;if(p!=m&&!i)return!1;for(var d=p;d--;){var c=s[d];if(!(i?c in t:tm.call(t,c)))return!1}var w=n.get(r),A=n.get(t);if(w&&A)return w==t&&A==r;var I=!0;n.set(r,t),n.set(t,r);for(var T=i;++d<p;){c=s[d];var P=r[c],mr=t[c];if(a)var Gt=i?a(mr,P,c,t,r,n):a(P,mr,c,r,t,n);if(!(Gt===void 0?P===mr||f(P,mr,e,a,n):Gt)){I=!1;break}T||(T=c=="constructor")}if(I&&!T){var zr=r.constructor,qr=t.constructor;zr!=qr&&"constructor"in r&&"constructor"in t&&!(typeof zr=="function"&&zr instanceof zr&&typeof qr=="function"&&qr instanceof qr)&&(I=!1)}return n.delete(r),n.delete(t),I}o(em,"equalObjects");var $o=em;var om=1,Vo="[object Arguments]",Yo="[object Array]",gt="[object Object]",am=Object.prototype,Zo=am.hasOwnProperty;function fm(r,t,e,a,f,n){var i=l(r),s=l(t),p=i?Yo:F(r),u=s?Yo:F(t);p=p==Vo?gt:p,u=u==Vo?gt:u;var m=p==gt,d=u==gt,c=p==u;if(c&&D(r)){if(!D(t))return!1;i=!0,m=!1}if(c&&!m)return n||(n=new H),i||tr(r)?ht(r,t,e,a,f,n):qo(r,t,p,e,a,f,n);if(!(e&om)){var w=m&&Zo.call(r,"__wrapped__"),A=d&&Zo.call(t,"__wrapped__");if(w||A){var I=w?r.value():r,T=A?t.value():t;return n||(n=new H),f(I,T,e,a,n)}}return c?(n||(n=new H),$o(r,t,e,a,f,n)):!1}o(fm,"baseIsEqualDeep");var Jo=fm;function Xo(r,t,e,a,f){return r===t?!0:r==null||t==null||!_(r)&&!_(t)?r!==r&&t!==t:Jo(r,t,e,a,Xo,f)}o(Xo,"baseIsEqual");var bt=Xo;var nm=1,im=2;function sm(r,t,e,a){var f=e.length,n=f,i=!a;if(r==null)return!n;for(r=Object(r);f--;){var s=e[f];if(i&&s[2]?s[1]!==r[s[0]]:!(s[0]in r))return!1}for(;++f<n;){s=e[f];var p=s[0],u=r[p],m=s[1];if(i&&s[2]){if(u===void 0&&!(p in r))return!1}else{var d=new H;if(a)var c=a(u,m,p,r,t,d);if(!(c===void 0?bt(m,u,nm|im,a,d):c))return!1}}return!0}o(sm,"baseIsMatch");var Qo=sm;function pm(r){return r===r&&!g(r)}o(pm,"isStrictComparable");var yt=pm;function um(r){for(var t=y(r),e=t.length;e--;){var a=t[e],f=r[a];t[e]=[a,f,yt(f)]}return t}o(um,"getMatchData");var ko=um;function mm(r,t){return function(e){return e==null?!1:e[r]===t&&(t!==void 0||r in Object(e))}}o(mm,"matchesStrictComparable");var _t=mm;function lm(r){var t=ko(r);return t.length==1&&t[0][2]?_t(t[0][0],t[0][1]):function(e){return e===r||Qo(e,r,t)}}o(lm,"baseMatches");var ra=lm;function dm(r,t){return r!=null&&t in Object(r)}o(dm,"baseHasIn");var ta=dm;function cm(r,t,e){t=nr(t,r);for(var a=-1,f=t.length,n=!1;++a<f;){var i=W(t[a]);if(!(n=r!=null&&e(r,i)))break;r=r[i]}return n||++a!=f?n:(f=r==null?0:r.length,!!f&&gr(f)&&Z(i,f)&&(l(r)||N(r)))}o(cm,"hasPath");var vt=cm;function xm(r,t){return r!=null&&vt(r,t,ta)}o(xm,"hasIn");var Ot=xm;var hm=1,gm=2;function bm(r,t){return yr(r)&&yt(t)?_t(W(r),t):function(e){var a=Ve(e,r);return a===void 0&&a===t?Ot(e,r):bt(t,a,hm|gm)}}o(bm,"baseMatchesProperty");var ea=bm;function ym(r){return function(t){return t?.[r]}}o(ym,"baseProperty");var At=ym;function _m(r){return function(t){return ir(t,r)}}o(_m,"basePropertyDeep");var oa=_m;function vm(r){return yr(r)?At(W(r)):oa(r)}o(vm,"property");var aa=vm;function Om(r){return typeof r=="function"?r:r==null?E:typeof r=="object"?l(r)?ea(r[0],r[1]):ra(r):aa(r)}o(Om,"baseIteratee");var S=Om;function Am(r){return function(t,e,a){for(var f=-1,n=Object(t),i=a(t),s=i.length;s--;){var p=i[r?s:++f];if(e(n[p],p,n)===!1)break}return t}}o(Am,"createBaseFor");var fa=Am;var Tm=fa(),jr=Tm;function wm(r,t){return r&&jr(r,t,y)}o(wm,"baseForOwn");var Lr=wm;function Sm(r,t){return function(e,a){if(e==null)return e;if(!O(e))return r(e,a);for(var f=e.length,n=t?f:-1,i=Object(e);(t?n--:++n<f)&&a(i[n],n,i)!==!1;);return e}}o(Sm,"createBaseEach");var na=Sm;var Pm=na(Lr),pr=Pm;var Cm=o(function(){return b.Date.now()},"now"),Im=Cm;var ia=Object.prototype,Em=ia.hasOwnProperty,jm=Q(function(r,t){r=Object(r);var e=-1,a=t.length,f=a>2?t[2]:void 0;for(f&&q(t[0],t[1],f)&&(a=1);++e<a;)for(var n=t[e],i=L(n),s=-1,p=i.length;++s<p;){var u=i[s],m=r[u];(m===void 0||R(m,ia[u])&&!Em.call(r,u))&&(r[u]=n[u])}return r}),Lm=jm;function Mm(r,t,e){(e!==void 0&&!R(r[t],e)||e===void 0&&!(t in r))&&J(r,t,e)}o(Mm,"assignMergeValue");var Gr=Mm;function Fm(r){return _(r)&&O(r)}o(Fm,"isArrayLikeObject");var Tt=Fm;function Rm(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}o(Rm,"safeGet");var Ur=Rm;function Nm(r){return K(r,L(r))}o(Nm,"toPlainObject");var sa=Nm;function Dm(r,t,e,a,f,n,i){var s=Ur(r,e),p=Ur(t,e),u=i.get(p);if(u){Gr(r,e,u);return}var m=n?n(s,p,e+"",r,t,i):void 0,d=m===void 0;if(d){var c=l(p),w=!c&&D(p),A=!c&&!w&&tr(p);m=p,c||w||A?l(s)?m=s:Tt(s)?m=Zr(s):w?(d=!1,m=ot(p,!0)):A?(d=!1,m=ut(p,!0)):m=[]:ke(p)||N(p)?(m=s,N(s)?m=sa(s):(!g(s)||U(s))&&(m=mt(p))):d=!1}d&&(i.set(p,m),f(m,p,a,n,i),i.delete(p)),Gr(r,e,m)}o(Dm,"baseMergeDeep");var pa=Dm;function ua(r,t,e,a,f){r!==t&&jr(t,function(n,i){if(f||(f=new H),g(n))pa(r,t,i,e,ua,a,f);else{var s=a?a(Ur(r,i),n,i+"",r,t,f):void 0;s===void 0&&(s=n),Gr(r,i,s)}},L)}o(ua,"baseMerge");var ma=ua;function Bm(r,t,e){for(var a=-1,f=r==null?0:r.length;++a<f;)if(e(t,r[a]))return!0;return!1}o(Bm,"arrayIncludesWith");var la=Bm;function Gm(r){var t=r==null?0:r.length;return t?r[t-1]:void 0}o(Gm,"last");var Um=Gm;function Km(r){return typeof r=="function"?r:E}o(Km,"castFunction");var Mr=Km;function Wm(r,t){var e=l(r)?Xr:pr;return e(r,Mr(t))}o(Wm,"forEach");var B=Wm;function Hm(r,t){var e=[];return pr(r,function(a,f,n){t(a,f,n)&&e.push(a)}),e}o(Hm,"baseFilter");var da=Hm;function zm(r,t){var e=l(r)?at:da;return e(r,S(t,3))}o(zm,"filter");var Fr=zm;function qm(r){return function(t,e,a){var f=Object(t);if(!O(t)){var n=S(e,3);t=y(t),e=o(function(s){return n(f[s],s,f)},"predicate")}var i=r(t,e,a);return i>-1?f[n?t[i]:i]:void 0}}o(qm,"createFind");var ca=qm;var $m=Math.max;function Vm(r,t,e){var a=r==null?0:r.length;if(!a)return-1;var f=e==null?0:kt(e);return f<0&&(f=$m(a+f,0)),Qr(r,S(t,3),f)}o(Vm,"findIndex");var xa=Vm;var Ym=ca(xa),Zm=Ym;function Jm(r,t){var e=-1,a=O(r)?Array(r.length):[];return pr(r,function(f,n,i){a[++e]=t(f,n,i)}),a}o(Jm,"baseMap");var wt=Jm;function Xm(r,t){var e=l(r)?G:wt;return e(r,S(t,3))}o(Xm,"map");var Qm=Xm;function km(r,t){return r==null?r:jr(r,Mr(t),L)}o(km,"forIn");var rl=km;function tl(r,t){return r&&Lr(r,Mr(t))}o(tl,"forOwn");var el=tl;function ol(r,t){return r>t}o(ol,"baseGt");var ha=ol;var al=Object.prototype,fl=al.hasOwnProperty;function nl(r,t){return r!=null&&fl.call(r,t)}o(nl,"baseHas");var ga=nl;function il(r,t){return r!=null&&vt(r,t,ga)}o(il,"has");var sl=il;var pl="[object String]";function ul(r){return typeof r=="string"||!l(r)&&_(r)&&C(r)==pl}o(ul,"isString");var ba=ul;function ml(r,t){return G(t,function(e){return r[e]})}o(ml,"baseValues");var ya=ml;function ll(r){return r==null?[]:ya(r,y(r))}o(ll,"values");var Kr=ll;var dl="[object Map]",cl="[object Set]",xl=Object.prototype,hl=xl.hasOwnProperty;function gl(r){if(r==null)return!0;if(O(r)&&(l(r)||typeof r=="string"||typeof r.splice=="function"||D(r)||tr(r)||N(r)))return!r.length;var t=F(r);if(t==dl||t==cl)return!r.size;if(k(r))return!br(r).length;for(var e in r)if(hl.call(r,e))return!1;return!0}o(gl,"isEmpty");var St=gl;function bl(r){return r===void 0}o(bl,"isUndefined");var ur=bl;function yl(r,t){return r<t}o(yl,"baseLt");var Pt=yl;function _l(r,t){var e={};return t=S(t,3),Lr(r,function(a,f,n){J(e,f,t(a,f,n))}),e}o(_l,"mapValues");var vl=_l;function Ol(r,t,e){for(var a=-1,f=r.length;++a<f;){var n=r[a],i=t(n);if(i!=null&&(s===void 0?i===i&&!M(i):e(i,s)))var s=i,p=n}return p}o(Ol,"baseExtremum");var Rr=Ol;function Al(r){return r&&r.length?Rr(r,E,ha):void 0}o(Al,"max");var Tl=Al;var wl=xe(function(r,t,e){ma(r,t,e)}),Sl=wl;function Pl(r){return r&&r.length?Rr(r,E,Pt):void 0}o(Pl,"min");var Cl=Pl;function Il(r,t){return r&&r.length?Rr(r,S(t,2),Pt):void 0}o(Il,"minBy");var El=Il;function jl(r,t,e,a){if(!g(r))return r;t=nr(t,r);for(var f=-1,n=t.length,i=n-1,s=r;s!=null&&++f<n;){var p=W(t[f]),u=e;if(p==="__proto__"||p==="constructor"||p==="prototype")return r;if(f!=i){var m=s[p];u=a?a(m,p,s):void 0,u===void 0&&(u=g(m)?m:Z(t[f+1])?[]:{})}X(s,p,u),s=s[p]}return r}o(jl,"baseSet");var _a=jl;function Ll(r,t,e){for(var a=-1,f=t.length,n={};++a<f;){var i=t[a],s=ir(r,i);e(s,i)&&_a(n,nr(i,r),s)}return n}o(Ll,"basePickBy");var va=Ll;function Ml(r,t){var e=r.length;for(r.sort(t);e--;)r[e]=r[e].value;return r}o(Ml,"baseSortBy");var Oa=Ml;function Fl(r,t){if(r!==t){var e=r!==void 0,a=r===null,f=r===r,n=M(r),i=t!==void 0,s=t===null,p=t===t,u=M(t);if(!s&&!u&&!n&&r>t||n&&i&&p&&!s&&!u||a&&i&&p||!e&&p||!f)return 1;if(!a&&!n&&!u&&r<t||u&&e&&f&&!a&&!n||s&&e&&f||!i&&f||!p)return-1}return 0}o(Fl,"compareAscending");var Aa=Fl;function Rl(r,t,e){for(var a=-1,f=r.criteria,n=t.criteria,i=f.length,s=e.length;++a<i;){var p=Aa(f[a],n[a]);if(p){if(a>=s)return p;var u=e[a];return p*(u=="desc"?-1:1)}}return r.index-t.index}o(Rl,"compareMultiple");var Ta=Rl;function Nl(r,t,e){t.length?t=G(t,function(n){return l(n)?function(i){return ir(i,n.length===1?n[0]:n)}:n}):t=[E];var a=-1;t=G(t,rr(S));var f=wt(r,function(n,i,s){var p=G(t,function(u){return u(n)});return{criteria:p,index:++a,value:n}});return Oa(f,function(n,i){return Ta(n,i,e)})}o(Nl,"baseOrderBy");var wa=Nl;var Dl=At("length"),Sa=Dl;var Ca="\\ud800-\\udfff",Bl="\\u0300-\\u036f",Gl="\\ufe20-\\ufe2f",Ul="\\u20d0-\\u20ff",Kl=Bl+Gl+Ul,Wl="\\ufe0e\\ufe0f",Hl="["+Ca+"]",Ft="["+Kl+"]",Rt="\\ud83c[\\udffb-\\udfff]",zl="(?:"+Ft+"|"+Rt+")",Ia="[^"+Ca+"]",Ea="(?:\\ud83c[\\udde6-\\uddff]){2}",ja="[\\ud800-\\udbff][\\udc00-\\udfff]",ql="\\u200d",La=zl+"?",Ma="["+Wl+"]?",$l="(?:"+ql+"(?:"+[Ia,Ea,ja].join("|")+")"+Ma+La+")*",Vl=Ma+La+$l,Yl="(?:"+[Ia+Ft+"?",Ft,Ea,ja,Hl].join("|")+")",Pa=RegExp(Rt+"(?="+Rt+")|"+Yl+Vl,"g");function Zl(r){for(var t=Pa.lastIndex=0;Pa.test(r);)++t;return t}o(Zl,"unicodeSize");var Fa=Zl;function Jl(r){return ro(r)?Fa(r):Sa(r)}o(Jl,"stringSize");var Ra=Jl;function Xl(r,t){return va(r,t,function(e,a){return Ot(r,a)})}o(Xl,"basePick");var Na=Xl;var Ql=Xe(function(r,t){return r==null?{}:Na(r,t)}),kl=Ql;var rd=Math.ceil,td=Math.max;function ed(r,t,e,a){for(var f=-1,n=td(rd((t-r)/(e||1)),0),i=Array(n);n--;)i[a?n:++f]=r,r+=e;return i}o(ed,"baseRange");var Da=ed;function od(r){return function(t,e,a){return a&&typeof a!="number"&&q(t,e,a)&&(e=a=void 0),t=xr(t),e===void 0?(e=t,t=0):e=xr(e),a=a===void 0?t<e?1:-1:xr(a),Da(t,e,a,r)}}o(od,"createRange");var Ba=od;var ad=Ba(),fd=ad;function nd(r,t,e,a,f){return f(r,function(n,i,s){e=a?(a=!1,n):t(e,n,i,s)}),e}o(nd,"baseReduce");var Ga=nd;function id(r,t,e){var a=l(r)?to:Ga,f=arguments.length<3;return a(r,S(t,4),e,f,pr)}o(id,"reduce");var Nt=id;var sd="[object Map]",pd="[object Set]";function ud(r){if(r==null)return 0;if(O(r))return ba(r)?Ra(r):r.length;var t=F(r);return t==sd||t==pd?r.size:br(r).length}o(ud,"size");var md=ud;var ld=Q(function(r,t){if(r==null)return[];var e=t.length;return e>1&&q(r,t[0],t[1])?t=[]:e>2&&q(t[0],t[1],t[2])&&(t=[t[0]]),wa(r,Tr(t,1),[])}),dd=ld;var cd=1/0,xd=sr&&1/Er(new sr([,-0]))[1]==cd?function(r){return new sr(r)}:ie,Ua=xd;var hd=200;function gd(r,t,e){var a=-1,f=de,n=r.length,i=!0,s=[],p=s;if(e)i=!1,f=la;else if(n>=hd){var u=t?null:Ua(r);if(u)return Er(u);i=!1,f=xt,p=new ct}else p=t?[]:s;r:for(;++a<n;){var m=r[a],d=t?t(m):m;if(m=e||m!==0?m:0,i&&d===d){for(var c=p.length;c--;)if(p[c]===d)continue r;t&&p.push(d),s.push(m)}else f(p,d,e)||(p!==s&&p.push(d),s.push(m))}return s}o(gd,"baseUniq");var Ka=gd;var bd=Q(function(r){return Ka(Tr(r,1,Tt,!0))}),Dt=bd;var yd=0;function _d(r){var t=++yd;return et(r)+t}o(_d,"uniqueId");var vd=_d;function Od(r,t,e){for(var a=-1,f=r.length,n=t.length,i={};++a<f;){var s=a<n?t[a]:void 0;e(i,r[a],s)}return i}o(Od,"baseZipObject");var Wa=Od;function Ad(r,t){return Wa(r||[],t||[],X)}o(Ad,"zipObject");var Td=Ad;var Sd="\0",cr="\0",Ha="",Hr=class{static{o(this,"Graph")}constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Y(void 0),this._defaultEdgeLabelFn=Y(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[cr]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return U(t)||(t=Y(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return y(this._nodes)}sources(){var t=this;return Fr(this.nodes(),function(e){return St(t._in[e])})}sinks(){var t=this;return Fr(this.nodes(),function(e){return St(t._out[e])})}setNodes(t,e){var a=arguments,f=this;return B(t,function(n){a.length>1?f.setNode(n,e):f.setNode(n)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=cr,this._children[t]={},this._children[cr][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=o(a=>this.removeEdge(this._edgeObjs[a]),"removeEdge");delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],B(this.children(t),a=>{this.setParent(a)}),delete this._children[t]),B(y(this._in[t]),e),delete this._in[t],delete this._preds[t],B(y(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(ur(e))e=cr;else{e+="";for(var a=e;!ur(a);a=this.parent(a))if(a===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==cr)return e}}children(t){if(ur(t)&&(t=cr),this._isCompound){var e=this._children[t];if(e)return y(e)}else{if(t===cr)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return y(e)}successors(t){var e=this._sucs[t];if(e)return y(e)}neighbors(t){var e=this.predecessors(t);if(e)return Dt(e,this.successors(t))}isLeaf(t){var e;return this.isDirected()?e=this.successors(t):e=this.neighbors(t),e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var a=this;B(this._nodes,function(i,s){t(s)&&e.setNode(s,i)}),B(this._edgeObjs,function(i){e.hasNode(i.v)&&e.hasNode(i.w)&&e.setEdge(i,a.edge(i))});var f={};function n(i){var s=a.parent(i);return s===void 0||e.hasNode(s)?(f[i]=s,s):s in f?f[s]:n(s)}return o(n,"findParent"),this._isCompound&&B(e.nodes(),function(i){e.setParent(i,n(i))}),e}setDefaultEdgeLabel(t){return U(t)||(t=Y(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Kr(this._edgeObjs)}setPath(t,e){var a=this,f=arguments;return Nt(t,function(n,i){return f.length>1?a.setEdge(n,i,e):a.setEdge(n,i),i}),this}setEdge(){var t,e,a,f,n=!1,i=arguments[0];typeof i=="object"&&i!==null&&"v"in i?(t=i.v,e=i.w,a=i.name,arguments.length===2&&(f=arguments[1],n=!0)):(t=i,e=arguments[1],a=arguments[3],arguments.length>2&&(f=arguments[2],n=!0)),t=""+t,e=""+e,ur(a)||(a=""+a);var s=Wr(this._isDirected,t,e,a);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,s))return n&&(this._edgeLabels[s]=f),this;if(!ur(a)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=n?f:this._defaultEdgeLabelFn(t,e,a);var p=Pd(this._isDirected,t,e,a);return t=p.v,e=p.w,Object.freeze(p),this._edgeObjs[s]=p,za(this._preds[e],t),za(this._sucs[t],e),this._in[e][s]=p,this._out[t][s]=p,this._edgeCount++,this}edge(t,e,a){var f=arguments.length===1?Bt(this._isDirected,arguments[0]):Wr(this._isDirected,t,e,a);return this._edgeLabels[f]}hasEdge(t,e,a){var f=arguments.length===1?Bt(this._isDirected,arguments[0]):Wr(this._isDirected,t,e,a);return Object.prototype.hasOwnProperty.call(this._edgeLabels,f)}removeEdge(t,e,a){var f=arguments.length===1?Bt(this._isDirected,arguments[0]):Wr(this._isDirected,t,e,a),n=this._edgeObjs[f];return n&&(t=n.v,e=n.w,delete this._edgeLabels[f],delete this._edgeObjs[f],qa(this._preds[e],t),qa(this._sucs[t],e),delete this._in[e][f],delete this._out[t][f],this._edgeCount--),this}inEdges(t,e){var a=this._in[t];if(a){var f=Kr(a);return e?Fr(f,function(n){return n.v===e}):f}}outEdges(t,e){var a=this._out[t];if(a){var f=Kr(a);return e?Fr(f,function(n){return n.w===e}):f}}nodeEdges(t,e){var a=this.inEdges(t,e);if(a)return a.concat(this.outEdges(t,e))}};Hr.prototype._nodeCount=0;Hr.prototype._edgeCount=0;function za(r,t){r[t]?r[t]++:r[t]=1}o(za,"incrementOrInitEntry");function qa(r,t){--r[t]||delete r[t]}o(qa,"decrementOrRemoveEntry");function Wr(r,t,e,a){var f=""+t,n=""+e;if(!r&&f>n){var i=f;f=n,n=i}return f+Ha+n+Ha+(ur(a)?Sd:a)}o(Wr,"edgeArgsToId");function Pd(r,t,e,a){var f=""+t,n=""+e;if(!r&&f>n){var i=f;f=n,n=i}var s={v:f,w:n};return a&&(s.name=a),s}o(Pd,"edgeArgsToObj");function Bt(r,t){return Wr(r,t.v,t.w,t.name)}o(Bt,"edgeObjToId");export{l as a,Y as b,Lt as c,Cu as d,Im as e,Lm as f,Um as g,B as h,Fr as i,Zm as j,Qm as k,rl as l,el as m,sl as n,Kr as o,ur as p,vl as q,Tl as r,Sl as s,Cl as t,El as u,kl as v,fd as w,Nt as x,md as y,dd as z,vd as A,Td as B,Hr as C};
2
+ /*! Bundled license information:
3
+
4
+ lodash-es/lodash.js:
5
+ (**
6
+ * @license
7
+ * Lodash (Custom Build) <https://lodash.com/>
8
+ * Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./`
9
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
10
+ * Released under MIT license <https://lodash.com/license>
11
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
12
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
13
+ *)
14
+ */
@@ -0,0 +1,10 @@
1
+ import{a as Mt}from"./chunk-VRZKL3EH.mjs";import{e as D}from"./chunk-Z6V44ARX.mjs";import{a as wt}from"./chunk-5IMINLNL.mjs";import{c as xt,d as bt}from"./chunk-ZNLK7HRR.mjs";import{b as nt,d as gt}from"./chunk-DZP67EKU.mjs";import{p as B,t as yt}from"./chunk-VY2OSTJR.mjs";import{_ as W,t as Y,x as at}from"./chunk-QJSWEUOL.mjs";import{$ as ut,G as V,H as ot,J as it,K as ct,L as et,P as lt,S as pt,W as dt,X as ft,Y as ht,Z as mt,_ as kt,b as x,h as T}from"./chunk-H7VHZCWX.mjs";import{a as d}from"./chunk-AQ6EADP3.mjs";var q=d((r,t)=>{if(t)return"translate("+-r.width/2+", "+-r.height/2+")";let a=r.x??0,e=r.y??0;return"translate("+-(a+r.width/2)+", "+-(e+r.height/2)+")"},"computeLabelTransform");var S={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},st={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function F(r,t){if(r===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};r=b(r),t=b(t);let[a,e]=[r.x,r.y],[o,s]=[t.x,t.y],n=o-a,i=s-e;return{angle:Math.atan(i/n),deltaX:n,deltaY:i}}d(F,"calculateDeltaAndAngle");var b=d(r=>Array.isArray(r)?{x:r[0],y:r[1]}:r,"pointTransformer"),Lt=d(r=>({x:d(function(t,a,e){let o=0,s=b(e[0]).x<b(e[e.length-1]).x?"left":"right";if(a===0&&Object.hasOwn(S,r.arrowTypeStart)){let{angle:l,deltaX:y}=F(e[0],e[1]);o=S[r.arrowTypeStart]*Math.cos(l)*(y>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(S,r.arrowTypeEnd)){let{angle:l,deltaX:y}=F(e[e.length-1],e[e.length-2]);o=S[r.arrowTypeEnd]*Math.cos(l)*(y>=0?1:-1)}let n=Math.abs(b(t).x-b(e[e.length-1]).x),i=Math.abs(b(t).y-b(e[e.length-1]).y),p=Math.abs(b(t).x-b(e[0]).x),m=Math.abs(b(t).y-b(e[0]).y),c=S[r.arrowTypeStart],h=S[r.arrowTypeEnd],f=1;if(n<h&&n>0&&i<h){let l=h+f-n;l*=s==="right"?-1:1,o-=l}if(p<c&&p>0&&m<c){let l=c+f-p;l*=s==="right"?-1:1,o+=l}return b(t).x+o},"x"),y:d(function(t,a,e){let o=0,s=b(e[0]).y<b(e[e.length-1]).y?"down":"up";if(a===0&&Object.hasOwn(S,r.arrowTypeStart)){let{angle:l,deltaY:y}=F(e[0],e[1]);o=S[r.arrowTypeStart]*Math.abs(Math.sin(l))*(y>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(S,r.arrowTypeEnd)){let{angle:l,deltaY:y}=F(e[e.length-1],e[e.length-2]);o=S[r.arrowTypeEnd]*Math.abs(Math.sin(l))*(y>=0?1:-1)}let n=Math.abs(b(t).y-b(e[e.length-1]).y),i=Math.abs(b(t).x-b(e[e.length-1]).x),p=Math.abs(b(t).y-b(e[0]).y),m=Math.abs(b(t).x-b(e[0]).x),c=S[r.arrowTypeStart],h=S[r.arrowTypeEnd],f=1;if(n<h&&n>0&&i<h){let l=h+f-n;l*=s==="up"?-1:1,o-=l}if(p<c&&p>0&&m<c){let l=c+f-p;l*=s==="up"?-1:1,o+=l}return b(t).y+o},"y")}),"getLineFunctionsWithOffset");var Ot=d((r,t,a,e,o,s=!1,n)=>{t.arrowTypeStart&&St(r,"start",t.arrowTypeStart,a,e,o,s,n),t.arrowTypeEnd&&St(r,"end",t.arrowTypeEnd,a,e,o,s,n)},"addEdgeMarkers"),vt={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Ht=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],St=d((r,t,a,e,o,s,n=!1,i)=>{if(!a||a==="none")return;let p=vt[a],m=p&&Ht.includes(p.type);if(!p){x.warn(`Unknown arrow type: ${a}`);return}let c=p.type,l=`${o}_${s}-${c}${t==="start"?"Start":"End"}${n&&m?"-margin":""}`;if(i&&i.trim()!==""){let y=i.replace(/[^\dA-Za-z]/g,"_"),g=`${l}_${y}`;if(!document.getElementById(g)){let k=document.getElementById(l);if(k){let M=k.cloneNode(!0);M.id=g,M.querySelectorAll("path, circle, line").forEach(A=>{A.setAttribute("stroke",i),p.fill&&A.setAttribute("fill",i)}),k.parentNode?.appendChild(M)}}r.attr(`marker-${t}`,`url(${e}#${g})`)}else r.attr(`marker-${t}`,`url(${e}#${l})`)},"addEdgeMarker");var Bt=d(r=>typeof r=="string"?r:W()?.flowchart?.curve,"resolveEdgeCurveType"),J=new Map,O=new Map,Br=d(()=>{J.clear(),O.clear()},"clear"),Ar=d(r=>!!(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),N=d(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),Cr=d(async(r,t)=>{let a=W(),e=at(a),{labelStyles:o}=bt(t);t.labelStyle=o;let s=r.insert("g").attr("class","edgeLabel"),n=s.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",m=await gt(r,t.label,{style:N(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:i?void 0:void 0},a);n.node().appendChild(m),x.info("abc82",t,t.labelType);let c,h;if(e){let l=m.children[0],y=T(m);c=await nt.measure(()=>l.getBoundingClientRect()),h=c,y.attr("width",c.width),y.attr("height",c.height)}else{let l=T(m).select("text").node();await nt.measure(()=>{c=m.getBBox(),l&&typeof l.getBBox=="function"?h=l.getBBox():h=c})}n.attr("transform",q(h,e)),J.set(t.id,s),t.width=c.width,t.height=c.height;let f;if(t.startLabelLeft){let l=r.insert("g").attr("class","edgeTerminals"),y=l.insert("g").attr("class","inner"),g=await D(y,t.startLabelLeft,N(t.labelStyle)||"",!1,!1);f=g;let k=g.getBBox();if(e){let M=g.children[0],u=T(g);k=M.getBoundingClientRect(),u.attr("width",k.width),u.attr("height",k.height)}y.attr("transform",q(k,e)),O.get(t.id)||O.set(t.id,{}),O.get(t.id).startLeft=l,G(f,t.startLabelLeft)}if(t.startLabelRight){let l=r.insert("g").attr("class","edgeTerminals"),y=l.insert("g").attr("class","inner"),g=await D(y,t.startLabelRight,N(t.labelStyle)||"",!1,!1);f=g;let k=g.getBBox();if(e){let M=g.children[0],u=T(g);k=M.getBoundingClientRect(),u.attr("width",k.width),u.attr("height",k.height)}y.attr("transform",q(k,e)),O.get(t.id)||O.set(t.id,{}),O.get(t.id).startRight=l,G(f,t.startLabelRight)}if(t.endLabelLeft){let l=r.insert("g").attr("class","edgeTerminals"),y=l.insert("g").attr("class","inner"),g=await D(l,t.endLabelLeft,N(t.labelStyle)||"",!1,!1);f=g;let k=g.getBBox();if(e){let M=g.children[0],u=T(g);k=M.getBoundingClientRect(),u.attr("width",k.width),u.attr("height",k.height)}y.attr("transform",q(k,e)),O.get(t.id)||O.set(t.id,{}),O.get(t.id).endLeft=l,G(f,t.endLabelLeft)}if(t.endLabelRight){let l=r.insert("g").attr("class","edgeTerminals"),y=l.insert("g").attr("class","inner"),g=await D(l,t.endLabelRight,N(t.labelStyle)||"",!1,!1);f=g;let k=g.getBBox();if(e){let M=g.children[0],u=T(g);k=M.getBoundingClientRect(),u.attr("width",k.width),u.attr("height",k.height)}y.attr("transform",q(k,e)),O.get(t.id)||O.set(t.id,{}),O.get(t.id).endRight=l,G(f,t.endLabelRight)}return m},"insertEdgeLabel");function G(r,t){at(W())&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}d(G,"setTerminalWidth");var Rr=d((r,t)=>{x.debug("Moving label abc88 ",r.id,r.label,J.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,e=W(),{subGraphTitleTotalMargin:o}=Mt(e);if(r.label){let s=J.get(r.id),n=r.x,i=r.y;if(a){let p=B.calcLabelPosition(a);x.debug("Moving label "+r.label+" from (",n,",",i,") to (",p.x,",",p.y,") abc88"),t.updatedPath&&(n=p.x,i=p.y)}s.attr("transform",`translate(${n}, ${i+o/2})`)}if(r.startLabelLeft){let s=O.get(r.id).startLeft,n=r.x,i=r.y;if(a){let p=B.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);n=p.x,i=p.y}s.attr("transform",`translate(${n}, ${i})`)}if(r.startLabelRight){let s=O.get(r.id).startRight,n=r.x,i=r.y;if(a){let p=B.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);n=p.x,i=p.y}s.attr("transform",`translate(${n}, ${i})`)}if(r.endLabelLeft){let s=O.get(r.id).endLeft,n=r.x,i=r.y;if(a){let p=B.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);n=p.x,i=p.y}s.attr("transform",`translate(${n}, ${i})`)}if(r.endLabelRight){let s=O.get(r.id).endRight,n=r.x,i=r.y;if(a){let p=B.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);n=p.x,i=p.y}s.attr("transform",`translate(${n}, ${i})`)}},"positionEdgeLabel"),At=d((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[a,e]=t,o=Math.abs(e.x-a.x),s=Math.abs(e.y-a.y);return o<.001||s<.001?t:s>=o?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),Ct=d((r,t)=>{let a=r.x,e=r.y,o=Math.abs(t.x-a),s=Math.abs(t.y-e),n=r.width/2,i=r.height/2;return o>=n||s>=i},"outsideNode"),Rt=d((r,t,a)=>{x.debug(`intersection calc abc89:
2
+ outsidePoint: ${JSON.stringify(t)}
3
+ insidePoint : ${JSON.stringify(a)}
4
+ node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let e=r.x,o=r.y,s=Math.abs(e-a.x),n=r.width/2,i=a.x<t.x?n-s:n+s,p=r.height/2,m=Math.abs(t.y-a.y),c=Math.abs(t.x-a.x);if(Math.abs(o-t.y)*n>Math.abs(e-t.x)*p){let h=a.y<t.y?t.y-p-o:o-p-t.y;i=c*h/m;let f={x:a.x<t.x?a.x+i:a.x-c+i,y:a.y<t.y?a.y+m-h:a.y-m+h};return i===0&&(f.x=t.x,f.y=t.y),c===0&&(f.x=t.x),m===0&&(f.y=t.y),x.debug(`abc89 top/bottom calc, Q ${m}, q ${h}, R ${c}, r ${i}`,f),f}else{a.x<t.x?i=t.x-n-e:i=e-n-t.x;let h=m*i/c,f=a.x<t.x?a.x+c-i:a.x-c+i,l=a.y<t.y?a.y+h:a.y-h;return x.debug(`sides calc abc89, Q ${m}, q ${h}, R ${c}, r ${i}`,{_x:f,_y:l}),i===0&&(f=t.x,l=t.y),c===0&&(f=t.x),m===0&&(l=t.y),{x:f,y:l}}},"intersection"),_t=d((r,t)=>{x.warn("abc88 cutPathAtIntersect",r,t);let a=[],e=r[0],o=!1;return r.forEach(s=>{if(x.info("abc88 checking point",s,t),!Ct(t,s)&&!o){let n=Rt(t,e,s);x.debug("abc88 inside",s,e,n),x.debug("abc88 intersection",n,t);let i=!1;a.forEach(p=>{i=i||p.x===n.x&&p.y===n.y}),a.some(p=>p.x===n.x&&p.y===n.y)?x.warn("abc88 no intersect",n,a):a.push(n),o=!0}else x.warn("abc88 outside",s,e),e=s,o||a.push(s)}),x.debug("returning points",a),a},"cutPathAtIntersect");function Pt(r){let t=[],a=[];for(let e=1;e<r.length-1;e++){let o=r[e-1],s=r[e],n=r[e+1];(o.x===s.x&&s.y===n.y&&Math.abs(s.x-n.x)>5&&Math.abs(s.y-o.y)>5||o.y===s.y&&s.x===n.x&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-n.y)>5)&&(t.push(s),a.push(e))}return{cornerPoints:t,cornerPointPositions:a}}d(Pt,"extractCornerPoints");var Et=d(function(r,t,a){let e=t.x-r.x,o=t.y-r.y,s=Math.sqrt(e*e+o*o),n=a/s;return{x:t.x-n*e,y:t.y-n*o}},"findAdjacentPoint"),zt=d(function(r){let{cornerPointPositions:t}=Pt(r),a=[];for(let e=0;e<r.length;e++)if(t.includes(e)){let o=r[e-1],s=r[e+1],n=r[e],i=Et(o,n,5),p=Et(s,n,5),m=p.x-i.x,c=p.y-i.y;a.push(i);let h=Math.sqrt(2)*2,f={x:n.x,y:n.y};if(Math.abs(s.x-o.x)>10&&Math.abs(s.y-o.y)>=10){x.debug("Corner point fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));let l=5;n.x===i.x?f={x:m<0?i.x-l+h:i.x+l-h,y:c<0?i.y-h:i.y+h}:f={x:m<0?i.x-h:i.x+h,y:c<0?i.y-l+h:i.y+l-h}}else x.debug("Corner point skipping fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));a.push(f,p)}else a.push(r[e]);return a},"fixCorners"),qt=d((r,t,a)=>{let e=r-t-a,o=2,s=2,n=o+s,i=Math.floor(e/n),p=Number.isFinite(i)?Math.max(0,i):0,m=Array(p).fill(`${o} ${s}`).join(" ");return`0 ${t} ${m} ${a}`},"generateDashArray"),Pr=d(function(r,t,a,e,o,s,n,i=!1){if(!n)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:p,layout:m}=W(),c=t.points,h=!1,f=o;var l=s;let y=[];for(let w in t.cssCompiledStyles)xt(w)||y.push(t.cssCompiledStyles[w]);if(m==="swimlane"){if(l.intersect&&f.intersect&&Array.isArray(c)&&c.length>=2)if(c.length===2)c=[f.intersect(c[0]),l.intersect(c[1])];else{let w=c.slice(1,-1),X=w[0],E=w[w.length-1],U=.5,R=Math.abs(c[c.length-1].x-E.x)<U&&Math.abs(c[c.length-1].y-E.y)<U,v=f.intersect(X),H=R?E:l.intersect(E),P=Math.abs(H.x-E.x)<U&&Math.abs(H.y-E.y)<U,Wt=Math.abs(v.x-X.x)<U&&Math.abs(v.y-X.y)<U?[]:[v],Tt=P?[]:[H];c=[...Wt,...w,...Tt]}c=At(t,c)}else l.intersect&&f.intersect&&!i&&(c=c.slice(1,t.points.length-1),c.unshift(f.intersect(c[0])),c.push(l.intersect(c[c.length-1])));let g=btoa(JSON.stringify(c));t.toCluster&&(x.info("to cluster abc88",a.get(t.toCluster)),c=_t(t.points,a.get(t.toCluster).node),h=!0),t.fromCluster&&(x.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(c,null,2)),c=_t(c.reverse(),a.get(t.fromCluster).node).reverse(),h=!0);let k=c.filter(w=>!Number.isNaN(w.y)),M=Bt(t.curve);M!=="rounded"&&(k=zt(k));let u=V;switch(M){case"linear":u=V;break;case"basis":u=et;break;case"cardinal":u=lt;break;case"bumpX":u=it;break;case"bumpY":u=ct;break;case"catmullRom":u=pt;break;case"monotoneX":u=dt;break;case"monotoneY":u=ft;break;case"natural":u=ht;break;case"step":u=mt;break;case"stepAfter":u=ut;break;case"stepBefore":u=kt;break;case"rounded":u=V;break;default:u=et}let{x:A,y:K}=Lt(t),I=ot().x(A).y(K).curve(u),_;switch(t.thickness){case"normal":_="edge-thickness-normal";break;case"thick":_="edge-thickness-thick";break;case"invisible":_="edge-thickness-invisible";break;default:_="edge-thickness-normal"}switch(t.pattern){case"solid":_+=" edge-pattern-solid";break;case"dotted":_+=" edge-pattern-dotted";break;case"dashed":_+=" edge-pattern-dashed";break;default:_+=" edge-pattern-solid"}let L,Q=M==="rounded"?It(Dt(k,t),5):I(k),$=Array.isArray(t.style)?t.style:[t.style],Z=$.find(w=>w?.startsWith("stroke:")),C="";t.animate&&(C="edge-animation-fast"),t.animation&&(C="edge-animation-"+t.animation);let tt=!1;if(t.look==="handDrawn"){let w=wt.svg(r);Object.assign([],k);let X=w.path(Q,{roughness:.3,seed:p});_+=" transition",L=T(X).select("path").attr("id",`${n}-${t.id}`).attr("class"," "+_+(t.classes?" "+t.classes:"")+(C?" "+C:"")).attr("style",$?$.reduce((U,R)=>U+";"+R,""):"");let E=L.attr("d");L.attr("d",E),r.node().appendChild(L.node())}else{let w=y.join(";"),X=$?$.reduce((P,z)=>P+z+";",""):"",E=(w?w+";"+X+";":X)+";"+($?$.reduce((P,z)=>P+";"+z,""):"");L=r.append("path").attr("d",Q).attr("id",`${n}-${t.id}`).attr("class"," "+_+(t.classes?" "+t.classes:"")+(C?" "+C:"")).attr("style",E),Z=E.match(/stroke:([^;]+)/)?.[1],tt=t.animate===!0||!!t.animation||w.includes("animation");let U=L.node(),R=typeof U.getTotalLength=="function"?U.getTotalLength():0,v=st[t.arrowTypeStart]||0,H=st[t.arrowTypeEnd]||0;if(t.look==="neo"&&!tt){let z=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?qt(R,v,H):`0 ${v} ${R-v-H} ${H}`}; stroke-dashoffset: 0;`;L.attr("style",z+L.attr("style"))}}L.attr("data-edge",!0),L.attr("data-et","edge"),L.attr("data-id",t.id),L.attr("data-points",g),L.attr("data-look",yt(t.look)),t.showPoints&&k.forEach(w=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",w.x).attr("cy",w.y)});let j="";(W().flowchart.arrowMarkerAbsolute||W().state.arrowMarkerAbsolute)&&(j=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,j=j.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),x.info("arrowTypeStart",t.arrowTypeStart),x.info("arrowTypeEnd",t.arrowTypeEnd);let $t=!tt&&t?.look==="neo";Ot(L,t,j,n,e,$t,Z);let Xt=Math.floor(c.length/2),Yt=c[Xt];B.isLabelCoordinateInPath(Yt,L.attr("d"))||(h=!0);let rt={};return h&&(rt.updatedPath=c),rt.originalPath=t.points,rt},"insertEdge");function It(r,t){if(r.length<2)return"";let a="",e=r.length,o=1e-5;for(let s=0;s<e;s++){let n=r[s],i=r[s-1],p=r[s+1];if(s===0)a+=`M${n.x},${n.y}`;else if(s===e-1)a+=`L${n.x},${n.y}`;else{let m=n.x-i.x,c=n.y-i.y,h=p.x-n.x,f=p.y-n.y,l=Math.hypot(m,c),y=Math.hypot(h,f);if(l<o||y<o){a+=`L${n.x},${n.y}`;continue}let g=m/l,k=c/l,M=h/y,u=f/y,A=g*M+k*u,K=Math.max(-1,Math.min(1,A)),I=Math.acos(K);if(I<o||Math.abs(Math.PI-I)<o){a+=`L${n.x},${n.y}`;continue}let _=Math.min(t/Math.sin(I/2),l/2,y/2),L=n.x-g*_,Q=n.y-k*_,$=n.x+M*_,Z=n.y+u*_;a+=`L${L},${Q}`,a+=`Q${n.x},${n.y} ${$},${Z}`}}return a}d(It,"generateRoundedPath");function Ut(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-r.x,e=t.y-r.y;return{angle:Math.atan2(e,a),deltaX:a,deltaY:e}}d(Ut,"calculateDeltaAndAngle");function Dt(r,t){let a=r.map(o=>({...o}));if(r.length>=2&&S[t.arrowTypeStart]){let o=S[t.arrowTypeStart],s=r[0],n=r[1],{angle:i}=Ut(s,n),p=o*Math.cos(i),m=o*Math.sin(i);a[0].x=s.x+p,a[0].y=s.y+m}let e=r.length;if(e>=2&&S[t.arrowTypeEnd]){let o=S[t.arrowTypeEnd],s=r[e-1],n=r[e-2],{angle:i}=Ut(n,s),p=o*Math.cos(i),m=o*Math.sin(i);a[e-1].x=s.x-p,a[e-1].y=s.y-m}return a}d(Dt,"applyMarkerOffsetsToPoints");var Nt=d((r,t,a,e)=>{t.forEach(o=>{mr[o](r,a,e)})},"insertMarkers"),Qt=d((r,t,a)=>{x.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),Zt=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),jt=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Vt=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Ft=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),Gt=d((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),Jt=d((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),Kt=d((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),tr=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),rr=d((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{transitionColor:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${s}`)},"barbNeo"),ar=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),er=d((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("d","M9,0 L9,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),nr=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),sr=d((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),or=d((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{strokeWidth:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${s}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${s}`)},"only_one_neo"),ir=d((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{strokeWidth:s,mainBkg:n}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",n??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),i.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${s}`);let p=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");p.append("circle").attr("fill",n??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),p.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${s}`)},"zero_or_one_neo"),cr=d((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{strokeWidth:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${s}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${s}`)},"one_or_more_neo"),lr=d((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{strokeWidth:s,mainBkg:n}=o,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",n??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${s}`);let p=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");p.append("circle").attr("fill",n??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),p.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${s}`)},"zero_or_more_neo"),pr=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
5
+ L20,10
6
+ M20,10
7
+ L0,20`)},"requirement_arrow"),dr=d((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{strokeWidth:s}=o;r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${s}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
8
+ L20,10
9
+ M20,10
10
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),fr=d((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");e.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),hr=d((r,t,a)=>{let e=Y(),{themeVariables:o}=e,{strokeWidth:s}=o,n=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),n.selectAll("*").attr("stroke-width",`${s}`)},"requirement_contains_neo"),mr={extension:Qt,composition:Zt,aggregation:jt,dependency:Vt,lollipop:Ft,point:Gt,circle:Jt,cross:Kt,barb:tr,barbNeo:rr,only_one:ar,zero_or_one:er,one_or_more:nr,zero_or_more:sr,only_one_neo:or,zero_or_one_neo:ir,one_or_more_neo:cr,zero_or_more_neo:lr,requirement_arrow:pr,requirement_contains:fr,requirement_arrow_neo:dr,requirement_contains_neo:hr},Nr=Nt;export{S as a,J as b,O as c,Br as d,Ar as e,Cr as f,Rr as g,Pr as h,Nr as i};