@wzh-/ai-chat-example 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1176) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/_basePickBy-CkZky1V-.js +135 -0
  3. package/dist/_baseUniq-f11MNaXe.js +573 -0
  4. package/dist/abap--jVlqvLx.js +2 -0
  5. package/dist/actionscript-3-N1AoJtTA.js +2 -0
  6. package/dist/ada-CYGINLea.js +2 -0
  7. package/dist/andromeeda-CvsZnG9k.js +2 -0
  8. package/dist/angular-html-C5vmpet2.js +14 -0
  9. package/dist/angular-html-CLTv4jM9.js +5 -0
  10. package/dist/angular-ts-BKqJWrwt.js +19 -0
  11. package/dist/apache-D6X-_dyJ.js +2 -0
  12. package/dist/apex-C7VgAgAE.js +2 -0
  13. package/dist/apl-BcJs32yU.js +15 -0
  14. package/dist/applescript-DN64Su6U.js +2 -0
  15. package/dist/ara-Dm1jHrgg.js +2 -0
  16. package/dist/arc-Dh_0vvHo.js +78 -0
  17. package/dist/architecture-U656AL7Q-BqUSHYp0.js +8 -0
  18. package/dist/architectureDiagram-VXUJARFQ-BQvEdgpc.js +4053 -0
  19. package/dist/array-CkdOJbdT.js +5 -0
  20. package/dist/asciidoc-BpqtqRF5.js +2 -0
  21. package/dist/asm-DUGlKYIq.js +2 -0
  22. package/dist/astro-q-huTQEP.js +16 -0
  23. package/dist/aurora-x-DwOih-un.js +2 -0
  24. package/dist/awk-DcnVbJrN.js +2 -0
  25. package/dist/ayu-dark-Bd-89MKE.js +2 -0
  26. package/dist/ballerina-BQVdQd9X.js +2 -0
  27. package/dist/bash-DI_p7w58.js +2 -0
  28. package/dist/bat-juB1J52r.js +2 -0
  29. package/dist/beancount-ThxIlRc3.js +2 -0
  30. package/dist/berry-qC18BfC_.js +2 -0
  31. package/dist/bibtex-CahMDY_0.js +2 -0
  32. package/dist/bicep-CHLBKS47.js +2 -0
  33. package/dist/blade-Ckff5WJQ.js +19 -0
  34. package/dist/blockDiagram-VD42YOAC-DKkDshq3.js +3013 -0
  35. package/dist/bsl-BTNab0FD.js +3 -0
  36. package/dist/c-BYDGkYzS.js +2 -0
  37. package/dist/c-CX6yudYR.js +2 -0
  38. package/dist/c4Diagram-YG6GDRKO-KsGqOrVB.js +2955 -0
  39. package/dist/cadence-DA5J9-Di.js +2 -0
  40. package/dist/cairo-DUZgbTPW.js +3 -0
  41. package/dist/catppuccin-frappe-CE3kxG1f.js +2 -0
  42. package/dist/catppuccin-latte-DW2FXeIv.js +2 -0
  43. package/dist/catppuccin-macchiato-CD5qjRSF.js +2 -0
  44. package/dist/catppuccin-mocha-BYwVJvjI.js +2 -0
  45. package/dist/channel-BrxVk5HC.js +3 -0
  46. package/dist/chunk-4BX2VUAB-BGxl5VGr.js +6 -0
  47. package/dist/chunk-55IACEB6-CDMD5yu1.js +6 -0
  48. package/dist/chunk-76Q3JFCE-Db4Lkmow.js +19 -0
  49. package/dist/chunk-ABZYJK2D-BZvlc6Ej.js +2515 -0
  50. package/dist/chunk-ATLVNIR6-C3g7rsIT.js +65 -0
  51. package/dist/chunk-B4BG7PRW-Dx-bGI1r.js +3108 -0
  52. package/dist/chunk-CVBHYZKI-DxEBlSK7.js +10 -0
  53. package/dist/chunk-DI55MBZ5-CCWuZnfW.js +1994 -0
  54. package/dist/chunk-DNh5sLlG.js +18 -0
  55. package/dist/chunk-EXTU4WIE-BjMX7pAs.js +7 -0
  56. package/dist/chunk-FMBD7UC4-Dj3Ok4Bk.js +3 -0
  57. package/dist/chunk-FPAJGGOC-nWbO3e1v.js +12252 -0
  58. package/dist/chunk-FWNWRKHM-CjcwRw2u.js +56 -0
  59. package/dist/chunk-HN2XXSSU-Lv4Ef0co.js +74 -0
  60. package/dist/chunk-JA3XYJ7Z-Dhh1_u_p.js +463 -0
  61. package/dist/chunk-JZLCHNYA-vrb_Ucuc.js +4861 -0
  62. package/dist/chunk-LBM3YZW2-D8lrIfGo.js +19 -0
  63. package/dist/chunk-LHMN2FUI-DLQ0i8hl.js +19 -0
  64. package/dist/chunk-MI3HLSF2-Dy6F9XgR.js +1140 -0
  65. package/dist/chunk-N4CR4FBY-BdaGxHlZ.js +39 -0
  66. package/dist/chunk-O7ZBX7Z2-D8Yaukr5.js +26 -0
  67. package/dist/chunk-QN33PNHL-DnPw7tni.js +23 -0
  68. package/dist/chunk-QXUST7PY-D9mGQ-UP.js +486 -0
  69. package/dist/chunk-QZHKN3VN-ClanGuXA.js +11 -0
  70. package/dist/chunk-S3R3BYOJ-DHTsHczu.js +1074 -0
  71. package/dist/chunk-S6J4BHB3-8RrHs9bD.js +19 -0
  72. package/dist/chunk-T53DSG4Q-C2BDA_QX.js +24 -0
  73. package/dist/chunk-TZMSLE5B-F4nHm7N1.js +55 -0
  74. package/dist/chunk-XAJISQIX-Bz7ki7DY.js +135 -0
  75. package/dist/clarity-CsFOkG3c.js +2 -0
  76. package/dist/classDiagram-2ON5EDUG-C_ZEMlKu.js +33 -0
  77. package/dist/classDiagram-v2-WZHVMYZB-BHb5nZOM.js +33 -0
  78. package/dist/clojure-u1TZmmdQ.js +2 -0
  79. package/dist/clone-BRioDvRr.js +7 -0
  80. package/dist/cmake-CA3Lfsq7.js +2 -0
  81. package/dist/cmake-K1k8HMYR.js +2 -0
  82. package/dist/cobol-DhzLzJib.js +10 -0
  83. package/dist/codeowners-l4eSxhtA.js +2 -0
  84. package/dist/codeql-5CeQaktT.js +2 -0
  85. package/dist/coffee-P21KTKMu.js +3 -0
  86. package/dist/common-lisp-BVttGbYJ.js +2 -0
  87. package/dist/components/ChatConversation/ChatConversation.vue.d.ts +7 -0
  88. package/dist/components/ChatConversation/index.d.ts +1 -0
  89. package/dist/components/ChatPromptInputProvider/ChatPromptInputProvider.vue.d.ts +17 -0
  90. package/dist/components/ChatPromptInputProvider/index.d.ts +1 -0
  91. package/dist/components/ai-elements/artifact/Artifact.vue.d.ts +21 -0
  92. package/dist/components/ai-elements/artifact/ArtifactAction.vue.d.ts +32 -0
  93. package/dist/components/ai-elements/artifact/ArtifactActions.vue.d.ts +21 -0
  94. package/dist/components/ai-elements/artifact/ArtifactClose.vue.d.ts +27 -0
  95. package/dist/components/ai-elements/artifact/ArtifactContent.vue.d.ts +21 -0
  96. package/dist/components/ai-elements/artifact/ArtifactDescription.vue.d.ts +21 -0
  97. package/dist/components/ai-elements/artifact/ArtifactHeader.vue.d.ts +21 -0
  98. package/dist/components/ai-elements/artifact/ArtifactTitle.vue.d.ts +21 -0
  99. package/dist/components/ai-elements/artifact/index.d.ts +8 -0
  100. package/dist/components/ai-elements/canvas/index.d.ts +1 -0
  101. package/dist/components/ai-elements/chain-of-thought/ChainOfThought.vue.d.ts +30 -0
  102. package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtContent.vue.d.ts +21 -0
  103. package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtHeader.vue.d.ts +21 -0
  104. package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtImage.vue.d.ts +22 -0
  105. package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResult.vue.d.ts +21 -0
  106. package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResults.vue.d.ts +21 -0
  107. package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtStep.vue.d.ts +28 -0
  108. package/dist/components/ai-elements/chain-of-thought/context.d.ts +6 -0
  109. package/dist/components/ai-elements/chain-of-thought/index.d.ts +7 -0
  110. package/dist/components/ai-elements/checkpoint/Checkpoint.vue.d.ts +21 -0
  111. package/dist/components/ai-elements/checkpoint/CheckpointIcon.vue.d.ts +21 -0
  112. package/dist/components/ai-elements/checkpoint/CheckpointTrigger.vue.d.ts +27 -0
  113. package/dist/components/ai-elements/checkpoint/index.d.ts +3 -0
  114. package/dist/components/ai-elements/code-block/CodeBlock.vue.d.ts +27 -0
  115. package/dist/components/ai-elements/code-block/CodeBlockCopyButton.vue.d.ts +30 -0
  116. package/dist/components/ai-elements/code-block/context.d.ts +5 -0
  117. package/dist/components/ai-elements/code-block/index.d.ts +2 -0
  118. package/dist/components/ai-elements/code-block/utils.d.ts +2 -0
  119. package/dist/components/ai-elements/confirmation/Confirmation.vue.d.ts +25 -0
  120. package/dist/components/ai-elements/confirmation/ConfirmationAccepted.vue.d.ts +17 -0
  121. package/dist/components/ai-elements/confirmation/ConfirmationAction.vue.d.ts +17 -0
  122. package/dist/components/ai-elements/confirmation/ConfirmationActions.vue.d.ts +21 -0
  123. package/dist/components/ai-elements/confirmation/ConfirmationRejected.vue.d.ts +17 -0
  124. package/dist/components/ai-elements/confirmation/ConfirmationRequest.vue.d.ts +17 -0
  125. package/dist/components/ai-elements/confirmation/ConfirmationTitle.vue.d.ts +21 -0
  126. package/dist/components/ai-elements/confirmation/context.d.ts +29 -0
  127. package/dist/components/ai-elements/confirmation/index.d.ts +7 -0
  128. package/dist/components/ai-elements/connection/Connection.vue.d.ts +3 -0
  129. package/dist/components/ai-elements/connection/index.d.ts +1 -0
  130. package/dist/components/ai-elements/context/Context.vue.d.ts +25 -0
  131. package/dist/components/ai-elements/context/ContextCacheUsage.vue.d.ts +21 -0
  132. package/dist/components/ai-elements/context/ContextContent.vue.d.ts +21 -0
  133. package/dist/components/ai-elements/context/ContextContentBody.vue.d.ts +21 -0
  134. package/dist/components/ai-elements/context/ContextContentFooter.vue.d.ts +21 -0
  135. package/dist/components/ai-elements/context/ContextContentHeader.vue.d.ts +21 -0
  136. package/dist/components/ai-elements/context/ContextIcon.vue.d.ts +2 -0
  137. package/dist/components/ai-elements/context/ContextInputUsage.vue.d.ts +21 -0
  138. package/dist/components/ai-elements/context/ContextOutputUsage.vue.d.ts +21 -0
  139. package/dist/components/ai-elements/context/ContextReasoningUsage.vue.d.ts +21 -0
  140. package/dist/components/ai-elements/context/ContextTrigger.vue.d.ts +17 -0
  141. package/dist/components/ai-elements/context/TokensWithCost.vue.d.ts +6 -0
  142. package/dist/components/ai-elements/context/context.d.ts +11 -0
  143. package/dist/components/ai-elements/context/index.d.ts +12 -0
  144. package/dist/components/ai-elements/controls/Controls.vue.d.ts +6 -0
  145. package/dist/components/ai-elements/controls/index.d.ts +1 -0
  146. package/dist/components/ai-elements/conversation/Conversation.vue.d.ts +47 -0
  147. package/dist/components/ai-elements/conversation/ConversationContent.vue.d.ts +21 -0
  148. package/dist/components/ai-elements/conversation/ConversationEmptyState.vue.d.ts +27 -0
  149. package/dist/components/ai-elements/conversation/ConversationScrollButton.vue.d.ts +6 -0
  150. package/dist/components/ai-elements/conversation/index.d.ts +4 -0
  151. package/dist/components/ai-elements/edge/Animated.vue.d.ts +4 -0
  152. package/dist/components/ai-elements/edge/Temporary.vue.d.ts +4 -0
  153. package/dist/components/ai-elements/edge/index.d.ts +2 -0
  154. package/dist/components/ai-elements/image/Image.vue.d.ts +8 -0
  155. package/dist/components/ai-elements/image/index.d.ts +1 -0
  156. package/dist/components/ai-elements/inline-citation/InlineCitation.vue.d.ts +21 -0
  157. package/dist/components/ai-elements/inline-citation/InlineCitationCard.vue.d.ts +24 -0
  158. package/dist/components/ai-elements/inline-citation/InlineCitationCardBody.vue.d.ts +21 -0
  159. package/dist/components/ai-elements/inline-citation/InlineCitationCardTrigger.vue.d.ts +7 -0
  160. package/dist/components/ai-elements/inline-citation/InlineCitationCarousel.vue.d.ts +21 -0
  161. package/dist/components/ai-elements/inline-citation/InlineCitationCarouselContent.vue.d.ts +17 -0
  162. package/dist/components/ai-elements/inline-citation/InlineCitationCarouselHeader.vue.d.ts +21 -0
  163. package/dist/components/ai-elements/inline-citation/InlineCitationCarouselIndex.vue.d.ts +21 -0
  164. package/dist/components/ai-elements/inline-citation/InlineCitationCarouselItem.vue.d.ts +21 -0
  165. package/dist/components/ai-elements/inline-citation/InlineCitationCarouselNext.vue.d.ts +6 -0
  166. package/dist/components/ai-elements/inline-citation/InlineCitationCarouselPrev.vue.d.ts +6 -0
  167. package/dist/components/ai-elements/inline-citation/InlineCitationQuote.vue.d.ts +21 -0
  168. package/dist/components/ai-elements/inline-citation/InlineCitationSource.vue.d.ts +24 -0
  169. package/dist/components/ai-elements/inline-citation/InlineCitationText.vue.d.ts +21 -0
  170. package/dist/components/ai-elements/inline-citation/index.d.ts +14 -0
  171. package/dist/components/ai-elements/loader/Loader.vue.d.ts +9 -0
  172. package/dist/components/ai-elements/loader/LoaderIcon.vue.d.ts +7 -0
  173. package/dist/components/ai-elements/loader/index.d.ts +2 -0
  174. package/dist/components/ai-elements/message/Message.vue.d.ts +23 -0
  175. package/dist/components/ai-elements/message/MessageAction.vue.d.ts +28 -0
  176. package/dist/components/ai-elements/message/MessageActions.vue.d.ts +21 -0
  177. package/dist/components/ai-elements/message/MessageAttachment.vue.d.ts +12 -0
  178. package/dist/components/ai-elements/message/MessageAttachments.vue.d.ts +21 -0
  179. package/dist/components/ai-elements/message/MessageAvatar.vue.d.ts +8 -0
  180. package/dist/components/ai-elements/message/MessageBranch.vue.d.ts +28 -0
  181. package/dist/components/ai-elements/message/MessageBranchContent.vue.d.ts +6 -0
  182. package/dist/components/ai-elements/message/MessageBranchNext.vue.d.ts +17 -0
  183. package/dist/components/ai-elements/message/MessageBranchPage.vue.d.ts +6 -0
  184. package/dist/components/ai-elements/message/MessageBranchPrevious.vue.d.ts +17 -0
  185. package/dist/components/ai-elements/message/MessageBranchSelector.vue.d.ts +21 -0
  186. package/dist/components/ai-elements/message/MessageContent.vue.d.ts +21 -0
  187. package/dist/components/ai-elements/message/MessageResponse.vue.d.ts +7 -0
  188. package/dist/components/ai-elements/message/MessageToolbar.vue.d.ts +21 -0
  189. package/dist/components/ai-elements/message/context.d.ts +11 -0
  190. package/dist/components/ai-elements/message/index.d.ts +15 -0
  191. package/dist/components/ai-elements/model-selector/ModelSelector.vue.d.ts +17 -0
  192. package/dist/components/ai-elements/model-selector/ModelSelectorContent.vue.d.ts +24 -0
  193. package/dist/components/ai-elements/model-selector/ModelSelectorDialog.vue.d.ts +17 -0
  194. package/dist/components/ai-elements/model-selector/ModelSelectorEmpty.vue.d.ts +17 -0
  195. package/dist/components/ai-elements/model-selector/ModelSelectorGroup.vue.d.ts +17 -0
  196. package/dist/components/ai-elements/model-selector/ModelSelectorInput.vue.d.ts +6 -0
  197. package/dist/components/ai-elements/model-selector/ModelSelectorItem.vue.d.ts +17 -0
  198. package/dist/components/ai-elements/model-selector/ModelSelectorList.vue.d.ts +17 -0
  199. package/dist/components/ai-elements/model-selector/ModelSelectorLogo.vue.d.ts +7 -0
  200. package/dist/components/ai-elements/model-selector/ModelSelectorLogoGroup.vue.d.ts +21 -0
  201. package/dist/components/ai-elements/model-selector/ModelSelectorName.vue.d.ts +21 -0
  202. package/dist/components/ai-elements/model-selector/ModelSelectorSeparator.vue.d.ts +2 -0
  203. package/dist/components/ai-elements/model-selector/ModelSelectorShortcut.vue.d.ts +17 -0
  204. package/dist/components/ai-elements/model-selector/ModelSelectorTrigger.vue.d.ts +17 -0
  205. package/dist/components/ai-elements/model-selector/index.d.ts +14 -0
  206. package/dist/components/ai-elements/node/Node.vue.d.ts +26 -0
  207. package/dist/components/ai-elements/node/NodeAction.vue.d.ts +17 -0
  208. package/dist/components/ai-elements/node/NodeContent.vue.d.ts +21 -0
  209. package/dist/components/ai-elements/node/NodeDescription.vue.d.ts +17 -0
  210. package/dist/components/ai-elements/node/NodeFooter.vue.d.ts +21 -0
  211. package/dist/components/ai-elements/node/NodeHeader.vue.d.ts +21 -0
  212. package/dist/components/ai-elements/node/NodeTitle.vue.d.ts +17 -0
  213. package/dist/components/ai-elements/node/index.d.ts +7 -0
  214. package/dist/components/ai-elements/open-in-chat/OpenIn.vue.d.ts +20 -0
  215. package/dist/components/ai-elements/open-in-chat/OpenInContent.vue.d.ts +21 -0
  216. package/dist/components/ai-elements/open-in-chat/OpenInItemLink.vue.d.ts +8 -0
  217. package/dist/components/ai-elements/open-in-chat/OpenInTrigger.vue.d.ts +17 -0
  218. package/dist/components/ai-elements/open-in-chat/context.d.ts +7 -0
  219. package/dist/components/ai-elements/open-in-chat/index.d.ts +9 -0
  220. package/dist/components/ai-elements/open-in-chat/providers/icons/ChatGPT.vue.d.ts +2 -0
  221. package/dist/components/ai-elements/open-in-chat/providers/icons/Claude.vue.d.ts +2 -0
  222. package/dist/components/ai-elements/open-in-chat/providers/icons/Cursor.vue.d.ts +2 -0
  223. package/dist/components/ai-elements/open-in-chat/providers/icons/Github.vue.d.ts +2 -0
  224. package/dist/components/ai-elements/open-in-chat/providers/icons/Scira.vue.d.ts +2 -0
  225. package/dist/components/ai-elements/open-in-chat/providers/icons/V0.vue.d.ts +2 -0
  226. package/dist/components/ai-elements/open-in-chat/providers/icons/index.d.ts +6 -0
  227. package/dist/components/ai-elements/open-in-chat/providers/index.d.ts +38 -0
  228. package/dist/components/ai-elements/open-in-chat/providers/items/OpenInChatGPT.vue.d.ts +2 -0
  229. package/dist/components/ai-elements/open-in-chat/providers/items/OpenInClaude.vue.d.ts +2 -0
  230. package/dist/components/ai-elements/open-in-chat/providers/items/OpenInCursor.vue.d.ts +2 -0
  231. package/dist/components/ai-elements/open-in-chat/providers/items/OpenInScira.vue.d.ts +2 -0
  232. package/dist/components/ai-elements/open-in-chat/providers/items/OpenInT3.vue.d.ts +2 -0
  233. package/dist/components/ai-elements/open-in-chat/providers/items/OpenInv0.vue.d.ts +2 -0
  234. package/dist/components/ai-elements/panel/Panel.vue.d.ts +25 -0
  235. package/dist/components/ai-elements/panel/index.d.ts +1 -0
  236. package/dist/components/ai-elements/plan/Plan.vue.d.ts +24 -0
  237. package/dist/components/ai-elements/plan/PlanAction.vue.d.ts +17 -0
  238. package/dist/components/ai-elements/plan/PlanContent.vue.d.ts +17 -0
  239. package/dist/components/ai-elements/plan/PlanDescription.vue.d.ts +22 -0
  240. package/dist/components/ai-elements/plan/PlanFooter.vue.d.ts +17 -0
  241. package/dist/components/ai-elements/plan/PlanHeader.vue.d.ts +21 -0
  242. package/dist/components/ai-elements/plan/PlanTitle.vue.d.ts +18 -0
  243. package/dist/components/ai-elements/plan/PlanTrigger.vue.d.ts +6 -0
  244. package/dist/components/ai-elements/plan/context.d.ts +7 -0
  245. package/dist/components/ai-elements/plan/index.d.ts +8 -0
  246. package/dist/components/ai-elements/prompt-input/PromptInput.vue.d.ts +46 -0
  247. package/dist/components/ai-elements/prompt-input/PromptInputActionAddAttachments.vue.d.ts +7 -0
  248. package/dist/components/ai-elements/prompt-input/PromptInputActionMenu.vue.d.ts +21 -0
  249. package/dist/components/ai-elements/prompt-input/PromptInputActionMenuContent.vue.d.ts +23 -0
  250. package/dist/components/ai-elements/prompt-input/PromptInputActionMenuItem.vue.d.ts +23 -0
  251. package/dist/components/ai-elements/prompt-input/PromptInputActionMenuTrigger.vue.d.ts +23 -0
  252. package/dist/components/ai-elements/prompt-input/PromptInputAttachment.vue.d.ts +8 -0
  253. package/dist/components/ai-elements/prompt-input/PromptInputAttachments.vue.d.ts +23 -0
  254. package/dist/components/ai-elements/prompt-input/PromptInputBody.vue.d.ts +21 -0
  255. package/dist/components/ai-elements/prompt-input/PromptInputButton.vue.d.ts +20 -0
  256. package/dist/components/ai-elements/prompt-input/PromptInputCommand.vue.d.ts +23 -0
  257. package/dist/components/ai-elements/prompt-input/PromptInputCommandEmpty.vue.d.ts +23 -0
  258. package/dist/components/ai-elements/prompt-input/PromptInputCommandGroup.vue.d.ts +23 -0
  259. package/dist/components/ai-elements/prompt-input/PromptInputCommandInput.vue.d.ts +8 -0
  260. package/dist/components/ai-elements/prompt-input/PromptInputCommandItem.vue.d.ts +23 -0
  261. package/dist/components/ai-elements/prompt-input/PromptInputCommandList.vue.d.ts +8 -0
  262. package/dist/components/ai-elements/prompt-input/PromptInputCommandSeparator.vue.d.ts +8 -0
  263. package/dist/components/ai-elements/prompt-input/PromptInputFooter.vue.d.ts +23 -0
  264. package/dist/components/ai-elements/prompt-input/PromptInputHeader.vue.d.ts +23 -0
  265. package/dist/components/ai-elements/prompt-input/PromptInputHoverCard.vue.d.ts +26 -0
  266. package/dist/components/ai-elements/prompt-input/PromptInputHoverCardContent.vue.d.ts +23 -0
  267. package/dist/components/ai-elements/prompt-input/PromptInputHoverCardTrigger.vue.d.ts +21 -0
  268. package/dist/components/ai-elements/prompt-input/PromptInputProvider.vue.d.ts +43 -0
  269. package/dist/components/ai-elements/prompt-input/PromptInputSelect.vue.d.ts +21 -0
  270. package/dist/components/ai-elements/prompt-input/PromptInputSelectContent.vue.d.ts +23 -0
  271. package/dist/components/ai-elements/prompt-input/PromptInputSelectItem.vue.d.ts +23 -0
  272. package/dist/components/ai-elements/prompt-input/PromptInputSelectTrigger.vue.d.ts +23 -0
  273. package/dist/components/ai-elements/prompt-input/PromptInputSelectValue.vue.d.ts +23 -0
  274. package/dist/components/ai-elements/prompt-input/PromptInputSpeechButton.vue.d.ts +51 -0
  275. package/dist/components/ai-elements/prompt-input/PromptInputSubmit.vue.d.ts +30 -0
  276. package/dist/components/ai-elements/prompt-input/PromptInputTab.vue.d.ts +21 -0
  277. package/dist/components/ai-elements/prompt-input/PromptInputTabBody.vue.d.ts +21 -0
  278. package/dist/components/ai-elements/prompt-input/PromptInputTabItem.vue.d.ts +21 -0
  279. package/dist/components/ai-elements/prompt-input/PromptInputTabLabel.vue.d.ts +21 -0
  280. package/dist/components/ai-elements/prompt-input/PromptInputTabsList.vue.d.ts +21 -0
  281. package/dist/components/ai-elements/prompt-input/PromptInputTextarea.vue.d.ts +8 -0
  282. package/dist/components/ai-elements/prompt-input/PromptInputTools.vue.d.ts +21 -0
  283. package/dist/components/ai-elements/prompt-input/context.d.ts +22 -0
  284. package/dist/components/ai-elements/prompt-input/index.d.ts +39 -0
  285. package/dist/components/ai-elements/prompt-input/types.d.ts +24 -0
  286. package/dist/components/ai-elements/queue/Queue.vue.d.ts +21 -0
  287. package/dist/components/ai-elements/queue/QueueItem.vue.d.ts +21 -0
  288. package/dist/components/ai-elements/queue/QueueItemAction.vue.d.ts +21 -0
  289. package/dist/components/ai-elements/queue/QueueItemActions.vue.d.ts +21 -0
  290. package/dist/components/ai-elements/queue/QueueItemAttachment.vue.d.ts +21 -0
  291. package/dist/components/ai-elements/queue/QueueItemContent.vue.d.ts +24 -0
  292. package/dist/components/ai-elements/queue/QueueItemDescription.vue.d.ts +24 -0
  293. package/dist/components/ai-elements/queue/QueueItemFile.vue.d.ts +21 -0
  294. package/dist/components/ai-elements/queue/QueueItemImage.vue.d.ts +6 -0
  295. package/dist/components/ai-elements/queue/QueueItemIndicator.vue.d.ts +9 -0
  296. package/dist/components/ai-elements/queue/QueueList.vue.d.ts +21 -0
  297. package/dist/components/ai-elements/queue/QueueSection.vue.d.ts +24 -0
  298. package/dist/components/ai-elements/queue/QueueSectionContent.vue.d.ts +21 -0
  299. package/dist/components/ai-elements/queue/QueueSectionLabel.vue.d.ts +23 -0
  300. package/dist/components/ai-elements/queue/QueueSectionTrigger.vue.d.ts +21 -0
  301. package/dist/components/ai-elements/queue/index.d.ts +15 -0
  302. package/dist/components/ai-elements/reasoning/Reasoning.vue.d.ts +35 -0
  303. package/dist/components/ai-elements/reasoning/ReasoningContent.vue.d.ts +7 -0
  304. package/dist/components/ai-elements/reasoning/ReasoningTrigger.vue.d.ts +21 -0
  305. package/dist/components/ai-elements/reasoning/context.d.ts +9 -0
  306. package/dist/components/ai-elements/reasoning/index.d.ts +3 -0
  307. package/dist/components/ai-elements/shimmer/Shimmer.vue.d.ts +28 -0
  308. package/dist/components/ai-elements/shimmer/index.d.ts +1 -0
  309. package/dist/components/ai-elements/sources/Source.vue.d.ts +23 -0
  310. package/dist/components/ai-elements/sources/Sources.vue.d.ts +21 -0
  311. package/dist/components/ai-elements/sources/SourcesContent.vue.d.ts +21 -0
  312. package/dist/components/ai-elements/sources/SourcesTrigger.vue.d.ts +22 -0
  313. package/dist/components/ai-elements/sources/index.d.ts +4 -0
  314. package/dist/components/ai-elements/suggestion/Suggestion.vue.d.ts +31 -0
  315. package/dist/components/ai-elements/suggestion/Suggestions.vue.d.ts +21 -0
  316. package/dist/components/ai-elements/suggestion/index.d.ts +2 -0
  317. package/dist/components/ai-elements/task/Task.vue.d.ts +28 -0
  318. package/dist/components/ai-elements/task/TaskContent.vue.d.ts +21 -0
  319. package/dist/components/ai-elements/task/TaskItem.vue.d.ts +21 -0
  320. package/dist/components/ai-elements/task/TaskItemFile.vue.d.ts +21 -0
  321. package/dist/components/ai-elements/task/TaskTrigger.vue.d.ts +22 -0
  322. package/dist/components/ai-elements/task/index.d.ts +5 -0
  323. package/dist/components/ai-elements/tool/Tool.vue.d.ts +21 -0
  324. package/dist/components/ai-elements/tool/ToolContent.vue.d.ts +21 -0
  325. package/dist/components/ai-elements/tool/ToolHeader.vue.d.ts +10 -0
  326. package/dist/components/ai-elements/tool/ToolInput.vue.d.ts +8 -0
  327. package/dist/components/ai-elements/tool/ToolOutput.vue.d.ts +9 -0
  328. package/dist/components/ai-elements/tool/ToolStatusBadge.vue.d.ts +6 -0
  329. package/dist/components/ai-elements/tool/index.d.ts +5 -0
  330. package/dist/components/ai-elements/toolbar/Toolbar.vue.d.ts +25 -0
  331. package/dist/components/ai-elements/toolbar/index.d.ts +1 -0
  332. package/dist/components/ai-elements/web-preview/WebPreview.vue.d.ts +34 -0
  333. package/dist/components/ai-elements/web-preview/WebPreviewBody.vue.d.ts +24 -0
  334. package/dist/components/ai-elements/web-preview/WebPreviewConsole.vue.d.ts +30 -0
  335. package/dist/components/ai-elements/web-preview/WebPreviewNavigation.vue.d.ts +21 -0
  336. package/dist/components/ai-elements/web-preview/WebPreviewNavigationButton.vue.d.ts +30 -0
  337. package/dist/components/ai-elements/web-preview/WebPreviewUrl.vue.d.ts +9 -0
  338. package/dist/components/ai-elements/web-preview/context.d.ts +9 -0
  339. package/dist/components/ai-elements/web-preview/index.d.ts +7 -0
  340. package/dist/components/ui/alert/Alert.vue.d.ts +23 -0
  341. package/dist/components/ui/alert/AlertDescription.vue.d.ts +21 -0
  342. package/dist/components/ui/alert/AlertTitle.vue.d.ts +21 -0
  343. package/dist/components/ui/alert/index.d.ts +8 -0
  344. package/dist/components/ui/avatar/Avatar.vue.d.ts +21 -0
  345. package/dist/components/ui/avatar/AvatarFallback.vue.d.ts +22 -0
  346. package/dist/components/ui/avatar/AvatarImage.vue.d.ts +18 -0
  347. package/dist/components/ui/avatar/index.d.ts +3 -0
  348. package/dist/components/ui/badge/Badge.vue.d.ts +24 -0
  349. package/dist/components/ui/badge/index.d.ts +6 -0
  350. package/dist/components/ui/button/Button.vue.d.ts +27 -0
  351. package/dist/components/ui/button/index.d.ts +7 -0
  352. package/dist/components/ui/button-group/ButtonGroup.vue.d.ts +23 -0
  353. package/dist/components/ui/button-group/ButtonGroupSeparator.vue.d.ts +9 -0
  354. package/dist/components/ui/button-group/ButtonGroupText.vue.d.ts +26 -0
  355. package/dist/components/ui/button-group/index.d.ts +8 -0
  356. package/dist/components/ui/card/Card.vue.d.ts +21 -0
  357. package/dist/components/ui/card/CardAction.vue.d.ts +21 -0
  358. package/dist/components/ui/card/CardContent.vue.d.ts +21 -0
  359. package/dist/components/ui/card/CardDescription.vue.d.ts +21 -0
  360. package/dist/components/ui/card/CardFooter.vue.d.ts +21 -0
  361. package/dist/components/ui/card/CardHeader.vue.d.ts +21 -0
  362. package/dist/components/ui/card/CardTitle.vue.d.ts +21 -0
  363. package/dist/components/ui/card/index.d.ts +7 -0
  364. package/dist/components/ui/carousel/CarouselContent.vue.d.ts +22 -0
  365. package/dist/components/ui/carousel/CarouselItem.vue.d.ts +18 -0
  366. package/dist/components/ui/carousel/CarouselNext.vue.d.ts +26 -0
  367. package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +26 -0
  368. package/dist/components/ui/carousel/index.d.ts +7 -0
  369. package/dist/components/ui/carousel/interface.d.ts +19 -0
  370. package/dist/components/ui/collapsible/Collapsible.vue.d.ts +24 -0
  371. package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +18 -0
  372. package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +18 -0
  373. package/dist/components/ui/collapsible/index.d.ts +3 -0
  374. package/dist/components/ui/command/Command.vue.d.ts +40 -0
  375. package/dist/components/ui/command/CommandDialog.vue.d.ts +32 -0
  376. package/dist/components/ui/command/CommandEmpty.vue.d.ts +22 -0
  377. package/dist/components/ui/command/CommandGroup.vue.d.ts +23 -0
  378. package/dist/components/ui/command/CommandInput.vue.d.ts +7 -0
  379. package/dist/components/ui/command/CommandItem.vue.d.ts +30 -0
  380. package/dist/components/ui/command/CommandList.vue.d.ts +22 -0
  381. package/dist/components/ui/command/CommandSeparator.vue.d.ts +22 -0
  382. package/dist/components/ui/command/CommandShortcut.vue.d.ts +21 -0
  383. package/dist/components/ui/command/index.d.ts +90 -0
  384. package/dist/components/ui/dialog/Dialog.vue.d.ts +25 -0
  385. package/dist/components/ui/dialog/DialogClose.vue.d.ts +18 -0
  386. package/dist/components/ui/dialog/DialogContent.vue.d.ts +39 -0
  387. package/dist/components/ui/dialog/DialogDescription.vue.d.ts +22 -0
  388. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +21 -0
  389. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +21 -0
  390. package/dist/components/ui/dialog/DialogOverlay.vue.d.ts +22 -0
  391. package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +36 -0
  392. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +22 -0
  393. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +18 -0
  394. package/dist/components/ui/dialog/index.d.ts +10 -0
  395. package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +24 -0
  396. package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +29 -0
  397. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +36 -0
  398. package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +18 -0
  399. package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +26 -0
  400. package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +23 -0
  401. package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +22 -0
  402. package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +27 -0
  403. package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
  404. package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +21 -0
  405. package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +22 -0
  406. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +38 -0
  407. package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +23 -0
  408. package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +18 -0
  409. package/dist/components/ui/dropdown-menu/index.d.ts +15 -0
  410. package/dist/components/ui/hover-card/HoverCard.vue.d.ts +24 -0
  411. package/dist/components/ui/hover-card/HoverCardContent.vue.d.ts +24 -0
  412. package/dist/components/ui/hover-card/HoverCardTrigger.vue.d.ts +18 -0
  413. package/dist/components/ui/hover-card/index.d.ts +3 -0
  414. package/dist/components/ui/input/Input.vue.d.ts +12 -0
  415. package/dist/components/ui/input/index.d.ts +1 -0
  416. package/dist/components/ui/input-group/InputGroup.vue.d.ts +21 -0
  417. package/dist/components/ui/input-group/InputGroupAddon.vue.d.ts +25 -0
  418. package/dist/components/ui/input-group/InputGroupButton.vue.d.ts +21 -0
  419. package/dist/components/ui/input-group/InputGroupInput.vue.d.ts +6 -0
  420. package/dist/components/ui/input-group/InputGroupText.vue.d.ts +21 -0
  421. package/dist/components/ui/input-group/InputGroupTextarea.vue.d.ts +6 -0
  422. package/dist/components/ui/input-group/index.d.ts +22 -0
  423. package/dist/components/ui/progress/Progress.vue.d.ts +9 -0
  424. package/dist/components/ui/progress/index.d.ts +1 -0
  425. package/dist/components/ui/scroll-area/ScrollArea.vue.d.ts +22 -0
  426. package/dist/components/ui/scroll-area/ScrollBar.vue.d.ts +9 -0
  427. package/dist/components/ui/scroll-area/index.d.ts +2 -0
  428. package/dist/components/ui/select/Select.vue.d.ts +28 -0
  429. package/dist/components/ui/select/SelectContent.vue.d.ts +32 -0
  430. package/dist/components/ui/select/SelectGroup.vue.d.ts +18 -0
  431. package/dist/components/ui/select/SelectItem.vue.d.ts +23 -0
  432. package/dist/components/ui/select/SelectItemText.vue.d.ts +18 -0
  433. package/dist/components/ui/select/SelectLabel.vue.d.ts +22 -0
  434. package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +22 -0
  435. package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +22 -0
  436. package/dist/components/ui/select/SelectSeparator.vue.d.ts +7 -0
  437. package/dist/components/ui/select/SelectTrigger.vue.d.ts +25 -0
  438. package/dist/components/ui/select/SelectValue.vue.d.ts +18 -0
  439. package/dist/components/ui/select/index.d.ts +11 -0
  440. package/dist/components/ui/separator/Separator.vue.d.ts +10 -0
  441. package/dist/components/ui/separator/index.d.ts +1 -0
  442. package/dist/components/ui/textarea/Textarea.vue.d.ts +12 -0
  443. package/dist/components/ui/textarea/index.d.ts +1 -0
  444. package/dist/components/ui/tooltip/Tooltip.vue.d.ts +24 -0
  445. package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +30 -0
  446. package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +20 -0
  447. package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +18 -0
  448. package/dist/components/ui/tooltip/index.d.ts +4 -0
  449. package/dist/composables/useChat.d.ts +8 -0
  450. package/dist/coq-CZjzQDnb.js +2 -0
  451. package/dist/cose-bilkent-S5V4N54A-Dy-do3hl.js +2250 -0
  452. package/dist/cpp-C6JyDxZu.js +16 -0
  453. package/dist/cpp-GAIEvywS.js +6 -0
  454. package/dist/crystal-BJfcoGS4.js +16 -0
  455. package/dist/csharp-BbUwciq4.js +2 -0
  456. package/dist/csharp-JE-9ns6W.js +2 -0
  457. package/dist/css-Crp0iO_o.js +2 -0
  458. package/dist/css-Cy-fypCV.js +2 -0
  459. package/dist/csv-DJ7xG4PY.js +2 -0
  460. package/dist/csv-DtT8LmMi.js +2 -0
  461. package/dist/cue-BwjaQTCz.js +2 -0
  462. package/dist/cypher-B7e06enY.js +2 -0
  463. package/dist/cytoscape.esm-CWqS6puh.js +18100 -0
  464. package/dist/d-q60wkid4.js +2 -0
  465. package/dist/dagre-6UL2VRFP-B38_sZWh.js +298 -0
  466. package/dist/dagre-DtvXp3zQ.js +1395 -0
  467. package/dist/dark-plus-D_fA88xf.js +2 -0
  468. package/dist/dart-DjkWvBgr.js +2 -0
  469. package/dist/dax-lueLIZQI.js +2 -0
  470. package/dist/defaultLocale-CoJOMwPq.js +177 -0
  471. package/dist/desktop-DaphHKD5.js +2 -0
  472. package/dist/diagram-PSM6KHXK-D6swsG-y.js +497 -0
  473. package/dist/diagram-QEK2KX5R-B7Hi0LAL.js +226 -0
  474. package/dist/diagram-S2PKOQOG-DLx7PlpM.js +144 -0
  475. package/dist/diff-COB48_rb.js +2 -0
  476. package/dist/diff-DlXnqUMK.js +2 -0
  477. package/dist/dist-CrnZo_23.js +49 -0
  478. package/dist/docker-DZKmuwpA.js +2 -0
  479. package/dist/dotenv-hmNahw-8.js +2 -0
  480. package/dist/dracula-ddM3a7au.js +2 -0
  481. package/dist/dracula-soft-vfA-TA_S.js +2 -0
  482. package/dist/dream-maker-Cxa2a8FY.js +2 -0
  483. package/dist/edge-Dm7HQa9N.js +12 -0
  484. package/dist/elixir-BkvHyCNd.js +5 -0
  485. package/dist/elm-rz9wTSrn.js +4 -0
  486. package/dist/emacs-lisp-w5URnZPZ.js +2 -0
  487. package/dist/erDiagram-Q2GNP2WA-B67FD8rh.js +1603 -0
  488. package/dist/erb-DyrwQYVz.js +25 -0
  489. package/dist/erlang-DLFKZs5N.js +3 -0
  490. package/dist/everforest-dark-DAPtv4yI.js +2 -0
  491. package/dist/everforest-light-nQzYm8GO.js +2 -0
  492. package/dist/fennel-CJDNJZTU.js +2 -0
  493. package/dist/fish-BkYaLI4-.js +2 -0
  494. package/dist/flowDiagram-NV44I4VS-DHXgrdJY.js +4132 -0
  495. package/dist/fluent-DShra35H.js +2 -0
  496. package/dist/fortran-fixed-form-SzB0QY3n.js +3 -0
  497. package/dist/fortran-free-form-CgbOAJnm.js +2 -0
  498. package/dist/fortran-free-form-Js8JrQQE.js +2 -0
  499. package/dist/fsharp-CtWO0jvL.js +3 -0
  500. package/dist/ganttDiagram-JELNMOA3-CGIqBt1P.js +3009 -0
  501. package/dist/gdresource-CgyXKpe4.js +8 -0
  502. package/dist/gdscript-DnurdQnh.js +2 -0
  503. package/dist/gdscript-STdmRKv-.js +2 -0
  504. package/dist/gdshader-Bs2s6cSB.js +2 -0
  505. package/dist/gdshader-YiVaPq6D.js +2 -0
  506. package/dist/genie-BppkvzZC.js +2 -0
  507. package/dist/gherkin-Bp4zdWMb.js +2 -0
  508. package/dist/git-commit--0GGwZNa.js +3 -0
  509. package/dist/git-rebase-orw-bSIZ.js +3 -0
  510. package/dist/gitGraph-F6HP7TQM-CH5XLm5Z.js +8 -0
  511. package/dist/gitGraphDiagram-NY62KEGX-Cq8AbOhM.js +634 -0
  512. package/dist/github-dark-CMN1tZPn.js +2 -0
  513. package/dist/github-dark-DxCf_Qaz.js +2 -0
  514. package/dist/github-dark-default-DVCJut02.js +2 -0
  515. package/dist/github-dark-dimmed-DXu9oDqW.js +2 -0
  516. package/dist/github-dark-high-contrast-BBZdE-mX.js +2 -0
  517. package/dist/github-light-CfdX7txK.js +2 -0
  518. package/dist/github-light-Y8g-VxKq.js +2 -0
  519. package/dist/github-light-default-BNGkGE--.js +2 -0
  520. package/dist/github-light-high-contrast-DiSIc-nG.js +2 -0
  521. package/dist/gleam-Lw0tKp8T.js +2 -0
  522. package/dist/glimmer-js-C6E6wJv0.js +12 -0
  523. package/dist/glimmer-ts-C6GgTGNO.js +12 -0
  524. package/dist/glsl-D8_YBRKT.js +3 -0
  525. package/dist/glsl-rwn_QCp2.js +3 -0
  526. package/dist/gnuplot-BeA3etmO.js +2 -0
  527. package/dist/go-BhDDN9y4.js +2 -0
  528. package/dist/go-xfE7BrfS.js +2 -0
  529. package/dist/graphlib-BZdVmxO6.js +223 -0
  530. package/dist/graphql-DQHhbQm2.js +6 -0
  531. package/dist/graphql-DoBLseH6.js +12 -0
  532. package/dist/groovy-C5-mv4io.js +2 -0
  533. package/dist/gruvbox-dark-hard-CULu6kVy.js +2 -0
  534. package/dist/gruvbox-dark-medium-BJM4uQXO.js +2 -0
  535. package/dist/gruvbox-dark-soft-CVaORUwa.js +2 -0
  536. package/dist/gruvbox-light-hard-B-WJAGLa.js +2 -0
  537. package/dist/gruvbox-light-medium-jc8FWnuC.js +2 -0
  538. package/dist/gruvbox-light-soft-CmvYQK92.js +2 -0
  539. package/dist/hack-DEAxoi73.js +10 -0
  540. package/dist/haml-BG2d3iX4.js +4 -0
  541. package/dist/haml-mA656Lm7.js +8 -0
  542. package/dist/handlebars-CO5xAxJ3.js +12 -0
  543. package/dist/haskell-Hsexh2aP.js +2 -0
  544. package/dist/haxe-BJVSeYxy.js +2 -0
  545. package/dist/haxe-CD_Rs3P5.js +2 -0
  546. package/dist/hcl-D098sJ_J.js +2 -0
  547. package/dist/hjson-BwXHX5r6.js +2 -0
  548. package/dist/hlsl-B0pnUVYG.js +2 -0
  549. package/dist/hlsl-Dt9-unql.js +2 -0
  550. package/dist/houston-C7hMWO_I.js +2 -0
  551. package/dist/html-DFCxtjnd.js +4 -0
  552. package/dist/html-DKSj3FeM.js +8 -0
  553. package/dist/html-derivative-BCRkrTcD.js +5 -0
  554. package/dist/html-derivative-C-vidKoA.js +3 -0
  555. package/dist/http-CYP1tEDW.js +17 -0
  556. package/dist/hurl-BJexUSKz.js +15 -0
  557. package/dist/hxml-XfuSEjM-.js +3 -0
  558. package/dist/hy-DPQ04rHt.js +2 -0
  559. package/dist/imba-Bgu2n5Mo.js +2 -0
  560. package/dist/index.d.ts +3 -0
  561. package/dist/index.js +2984 -0
  562. package/dist/index.mjs +37693 -0
  563. package/dist/info-NVLQJR56-hEN1y0nS.js +8 -0
  564. package/dist/infoDiagram-WHAUD3N6-btPwHXxp.js +31 -0
  565. package/dist/ini-g9mZnyrk.js +2 -0
  566. package/dist/init-CBay3kgM.js +13 -0
  567. package/dist/isArrayLikeObject-Dz_TDfw0.js +459 -0
  568. package/dist/isEmpty-CCym_WUL.js +32 -0
  569. package/dist/java-CUbPyze1.js +2 -0
  570. package/dist/java-DIOGgqAD.js +2 -0
  571. package/dist/javascript-9-JPeKdm.js +2 -0
  572. package/dist/javascript-De1qhUaI.js +2 -0
  573. package/dist/jinja-CVFxFRh6.js +5 -0
  574. package/dist/jison-0X6LppGq.js +3 -0
  575. package/dist/journeyDiagram-XKPGCS4Q-3OxtBx3I.js +884 -0
  576. package/dist/json-DJtYdWQK.js +2 -0
  577. package/dist/json-fcFpRaf3.js +2 -0
  578. package/dist/json5-CPTZJOmf.js +2 -0
  579. package/dist/jsonc-CYrayg0k.js +2 -0
  580. package/dist/jsonl-Bsv7LjJ3.js +2 -0
  581. package/dist/jsonnet-B7LkHJxg.js +2 -0
  582. package/dist/jssm-BopKGZKg.js +2 -0
  583. package/dist/jsx-Bf3Nk9Di.js +2 -0
  584. package/dist/jsx-qo0JNHpZ.js +2 -0
  585. package/dist/julia-ChGs-n_c.js +17 -0
  586. package/dist/kanagawa-dragon-CSqqi78I.js +2 -0
  587. package/dist/kanagawa-lotus-l2vgoxpH.js +2 -0
  588. package/dist/kanagawa-wave-BWhFcnLj.js +2 -0
  589. package/dist/kanban-definition-3W4ZIXB7-zdtnJaXz.js +971 -0
  590. package/dist/katex-BcWXJDMd.js +22097 -0
  591. package/dist/katex-K1dsczyg.js +2 -0
  592. package/dist/kdl-BbokxoZ9.js +2 -0
  593. package/dist/kotlin-3dXKmwyJ.js +2 -0
  594. package/dist/kusto-Os6_yHEz.js +2 -0
  595. package/dist/laserwave-8RcN1zf8.js +2 -0
  596. package/dist/latex-BnWZlY4q.js +4 -0
  597. package/dist/lean--0Wr4Cy4.js +2 -0
  598. package/dist/less-B4ybD-7s.js +2 -0
  599. package/dist/less-Cb54jO7u.js +2 -0
  600. package/dist/lib/utils.d.ts +2 -0
  601. package/dist/light-plus-CP_iZQDF.js +2 -0
  602. package/dist/line-EpckC7pZ.js +30 -0
  603. package/dist/linear-DjVN4o4U.js +250 -0
  604. package/dist/liquid-pc5Mduds.js +12 -0
  605. package/dist/llvm-ILH_SX7E.js +2 -0
  606. package/dist/log-DwO_GzA0.js +2 -0
  607. package/dist/logo-B4FeRowR.js +2 -0
  608. package/dist/lua-0TqNbT8C.js +3 -0
  609. package/dist/lua-6pXga3HV.js +3 -0
  610. package/dist/luau-DsUEyLJN.js +2 -0
  611. package/dist/main.d.ts +0 -0
  612. package/dist/make-p6NYc19I.js +2 -0
  613. package/dist/markdown-CCRtgC0b.js +2 -0
  614. package/dist/markdown-LaaQ4Eua.js +2 -0
  615. package/dist/marked.esm-D9xINNve.js +1384 -0
  616. package/dist/marko-D8uDUUEs.js +12 -0
  617. package/dist/material-theme-D__z84-n.js +2 -0
  618. package/dist/material-theme-darker-CWC5BoMv.js +2 -0
  619. package/dist/material-theme-lighter-BJrV5b2o.js +2 -0
  620. package/dist/material-theme-ocean-DYpMfDiX.js +2 -0
  621. package/dist/material-theme-palenight-3Ix3iI7Q.js +2 -0
  622. package/dist/math-CJAnbPum.js +8 -0
  623. package/dist/matlab-CL0oMGfq.js +2 -0
  624. package/dist/mdc-Ki3KnB5U.js +13 -0
  625. package/dist/mdx-BTufVkNP.js +2 -0
  626. package/dist/mermaid-FCjIh1A7.js +2 -0
  627. package/dist/mermaid-parser.core-DVXSGppp.js +48 -0
  628. package/dist/mermaid.core-Ra1JFCui.js +895 -0
  629. package/dist/min-dark-B4KRMcN3.js +2 -0
  630. package/dist/min-light-BQVJODr0.js +2 -0
  631. package/dist/mindmap-definition-VGOIOE7T-CRPO52xV.js +960 -0
  632. package/dist/mipsasm-Cn6AQ4lM.js +2 -0
  633. package/dist/mojo-C9IiQhp4.js +2 -0
  634. package/dist/monokai-vDwMMRi4.js +2 -0
  635. package/dist/move-BdizQ4_I.js +2 -0
  636. package/dist/narrat-BP2kx-u2.js +2 -0
  637. package/dist/nextflow-CyRmCGOe.js +2 -0
  638. package/dist/nginx-B46vdQ9n.js +4 -0
  639. package/dist/night-owl-DmjkOa5g.js +2 -0
  640. package/dist/nim-BxQNx10D.js +19 -0
  641. package/dist/nix-qPhlsqZI.js +2 -0
  642. package/dist/nord-sjxbvIbg.js +2 -0
  643. package/dist/nushell-puA-1bCW.js +2 -0
  644. package/dist/objective-c-D-qDLNy5.js +2 -0
  645. package/dist/objective-cpp-CFxSAM6p.js +2 -0
  646. package/dist/ocaml-CsLB7SWJ.js +2 -0
  647. package/dist/one-dark-pro-BHH-VjFD.js +2 -0
  648. package/dist/one-light-BqE6erWk.js +2 -0
  649. package/dist/openscad-DJCIQfnJ.js +2 -0
  650. package/dist/ordinal-CYQpsShT.js +61 -0
  651. package/dist/packet-BFZMPI3H-Bnlch4JI.js +8 -0
  652. package/dist/pascal-CPg9_ZFN.js +2 -0
  653. package/dist/path-esxOUfAH.js +79 -0
  654. package/dist/perl-D1bDaADZ.js +15 -0
  655. package/dist/php-BX51InqL.js +9 -0
  656. package/dist/php-D5tmU8Cr.js +16 -0
  657. package/dist/pie-7BOR55EZ-B9egLHl5.js +8 -0
  658. package/dist/pieDiagram-ADFJNKIX-CKSgB7fx.js +172 -0
  659. package/dist/pkl-BQQ96hvn.js +2 -0
  660. package/dist/plastic-BrNUBdSC.js +2 -0
  661. package/dist/plsql-Co7Bxe7U.js +2 -0
  662. package/dist/po-BqzJCro7.js +2 -0
  663. package/dist/poimandres-C_AK8TlO.js +2 -0
  664. package/dist/polar-CtdYIPEe.js +2 -0
  665. package/dist/postcss-ChqFKb46.js +2 -0
  666. package/dist/postcss-ainQkoyY.js +2 -0
  667. package/dist/powerquery-CDugc1w-.js +2 -0
  668. package/dist/powershell-j5X-IA59.js +2 -0
  669. package/dist/prisma-Cyl7YhUw.js +2 -0
  670. package/dist/prolog-DELKnUYf.js +2 -0
  671. package/dist/proto-C4A_gDBY.js +2 -0
  672. package/dist/pug-BcLlS7Yb.js +10 -0
  673. package/dist/puppet-DFC9LyFj.js +2 -0
  674. package/dist/purescript-eECq7_n2.js +2 -0
  675. package/dist/python-BhdCuCld.js +2 -0
  676. package/dist/python-CuBu5pyY.js +2 -0
  677. package/dist/qml-MD0NqqIl.js +3 -0
  678. package/dist/qmldir-BpJII-Ze.js +2 -0
  679. package/dist/qss-CpMcemMc.js +2 -0
  680. package/dist/quadrantDiagram-AYHSOK5B-BHzqivzD.js +1970 -0
  681. package/dist/r-CQeHOO4c.js +2 -0
  682. package/dist/r-D90zdkbN.js +2 -0
  683. package/dist/racket-COTs6Zfi.js +2 -0
  684. package/dist/radar-NHE76QYJ-DdALhlvV.js +8 -0
  685. package/dist/raku-DfOtwMUC.js +2 -0
  686. package/dist/razor-eRwFWsjJ.js +10 -0
  687. package/dist/red-CWGFZsim.js +2 -0
  688. package/dist/reg-BX5DwoEA.js +2 -0
  689. package/dist/regexp-Ca0eDBa2.js +2 -0
  690. package/dist/regexp-Cap8fK_2.js +2 -0
  691. package/dist/rel-CzXuLSk3.js +2 -0
  692. package/dist/request/index.d.ts +6 -0
  693. package/dist/requirementDiagram-UZGBJVZJ-Darhwvir.js +2194 -0
  694. package/dist/riscv-DnFIiqh3.js +2 -0
  695. package/dist/rose-pine-C4v2iQVe.js +2 -0
  696. package/dist/rose-pine-dawn-D5sdDB-J.js +2 -0
  697. package/dist/rose-pine-moon-2Vb7bLLO.js +2 -0
  698. package/dist/rosmsg-D02ul3fM.js +2 -0
  699. package/dist/rst-DFmSdXGd.js +34 -0
  700. package/dist/ruby-BAEFomR0.js +20 -0
  701. package/dist/ruby-DDMUvAvC.js +28 -0
  702. package/dist/rust-s3hBbfQg.js +2 -0
  703. package/dist/sankeyDiagram-TZEHDZUN-KiSvBN_C.js +884 -0
  704. package/dist/sas-TjtLSnOp.js +3 -0
  705. package/dist/sass-v3HeJ9Fl.js +2 -0
  706. package/dist/scala-BTIBM_Vn.js +2 -0
  707. package/dist/scheme-C4NQMf7a.js +2 -0
  708. package/dist/scss-C-bthdG1.js +3 -0
  709. package/dist/scss-D-6-mg-f.js +3 -0
  710. package/dist/sdbl-BA3l-JrH.js +2 -0
  711. package/dist/sdbl-gc7zIVWR.js +2 -0
  712. package/dist/sequenceDiagram-WL72ISMW-D2Mo7Vtj.js +3560 -0
  713. package/dist/shaderlab-BRlB5fpk.js +3 -0
  714. package/dist/shellscript-BQ8mKDAF.js +2 -0
  715. package/dist/shellscript-DZa_4vvb.js +2 -0
  716. package/dist/shellsession-CIlmlgbR.js +3 -0
  717. package/dist/slack-dark-DhXO5DWr.js +2 -0
  718. package/dist/slack-ochin-aAGl4PPH.js +2 -0
  719. package/dist/smalltalk-DbwVUw_i.js +2 -0
  720. package/dist/snazzy-light-B4S5mk83.js +2 -0
  721. package/dist/solarized-dark-Dexkq3Fm.js +2 -0
  722. package/dist/solarized-light-I-Bzy8UC.js +2 -0
  723. package/dist/solidity-SMk0TJDc.js +2 -0
  724. package/dist/soy-DwSCrzEF.js +5 -0
  725. package/dist/sparql-D9kVSpEx.js +3 -0
  726. package/dist/splunk-DXXu2r7r.js +2 -0
  727. package/dist/sql-Bi3LyNPb.js +2 -0
  728. package/dist/sql-D0eLHBiZ.js +2 -0
  729. package/dist/src-B-SBGd0A.js +1975 -0
  730. package/dist/ssh-config-DyVcFTfI.js +2 -0
  731. package/dist/stata-DkEObyNb.js +3 -0
  732. package/dist/stateDiagram-FKZM4ZOC-BRQN2Npg.js +224 -0
  733. package/dist/stateDiagram-v2-4FDKWEC3-CeeIKiFG.js +32 -0
  734. package/dist/stylus-BKTuFHcX.js +2 -0
  735. package/dist/stylus-DEHALDNh.js +2 -0
  736. package/dist/svelte-KFuclcR6.js +12 -0
  737. package/dist/swift-Cenptrnf.js +2 -0
  738. package/dist/synthwave-84-BRkDuVE-.js +2 -0
  739. package/dist/system-verilog-Cvgukx4v.js +2 -0
  740. package/dist/systemd-BepdslJQ.js +2 -0
  741. package/dist/talonscript-Q98m-VXh.js +2 -0
  742. package/dist/tasl-uebrX98X.js +2 -0
  743. package/dist/tcl-B1Ny4XFf.js +2 -0
  744. package/dist/templ-C5mtYbb_.js +10 -0
  745. package/dist/terraform-0mA5ERTe.js +2 -0
  746. package/dist/tex-B4uYy1vC.js +3 -0
  747. package/dist/tex-BoVFa1ir.js +3 -0
  748. package/dist/timeline-definition-IT6M3QCI-CSwH0Pnx.js +830 -0
  749. package/dist/tokyo-night-D0mU3-u8.js +2 -0
  750. package/dist/toml-vMAjra5M.js +2 -0
  751. package/dist/treemap-KMMF4GRG-COjpj6-C.js +8 -0
  752. package/dist/ts-tags-DRdTXGhb.js +38 -0
  753. package/dist/tsv-BnmbkntZ.js +2 -0
  754. package/dist/tsx-BaaPsUbd.js +2 -0
  755. package/dist/tsx-C0w0w5St.js +2 -0
  756. package/dist/turtle-4UWi_qX6.js +2 -0
  757. package/dist/turtle-BRmolh-6.js +2 -0
  758. package/dist/twig-cEhAbahS.js +33 -0
  759. package/dist/typescript-4YtK2JL4.js +2 -0
  760. package/dist/typescript-CmJ8D0yY.js +2 -0
  761. package/dist/typespec-CILw3zvZ.js +2 -0
  762. package/dist/typst-CLajFw6q.js +2 -0
  763. package/dist/v-MJV2RQvK.js +2 -0
  764. package/dist/vala-Dc1TiHw1.js +2 -0
  765. package/dist/vb-CoJdNmGs.js +2 -0
  766. package/dist/verilog-C7aVmiO0.js +2 -0
  767. package/dist/vesper-Cvcqyrim.js +2 -0
  768. package/dist/vhdl-CYQvzAG1.js +2 -0
  769. package/dist/viml-DOyjiDI8.js +2 -0
  770. package/dist/vitesse-black-CUYJaB5b.js +2 -0
  771. package/dist/vitesse-dark-BNlzDJ1Z.js +2 -0
  772. package/dist/vitesse-light-JU98KqVa.js +2 -0
  773. package/dist/vue-B3C4YeUK.js +8 -0
  774. package/dist/vue-DMpjAWNv.js +20 -0
  775. package/dist/vue-html-BIZN50ug.js +13 -0
  776. package/dist/vue-vine-DxezWcjL.js +22 -0
  777. package/dist/vyper-JU_r7Ch6.js +2 -0
  778. package/dist/wasm-DJ1S--fN.js +2 -0
  779. package/dist/wasm-eLFiAU8u.js +2 -0
  780. package/dist/wenyan-CqkzmyWz.js +2 -0
  781. package/dist/wgsl-gV62iTnF.js +2 -0
  782. package/dist/wikitext-BfUl8La4.js +2 -0
  783. package/dist/wit-kp_bCf2U.js +2 -0
  784. package/dist/wolfram-aPsN9AKt.js +2 -0
  785. package/dist/xml-BglBgo29.js +3 -0
  786. package/dist/xml-BxRdgEAX.js +3 -0
  787. package/dist/xsl-Cni90e0k.js +4 -0
  788. package/dist/xychartDiagram-PRI3JC2R-CGXFYn39.js +2022 -0
  789. package/dist/yaml-DQRfaSRo.js +2 -0
  790. package/dist/yaml-P2kjOPvW.js +2 -0
  791. package/dist/zenscript-BuY4FX-t.js +2 -0
  792. package/dist/zig-CGDGjytz.js +2 -0
  793. package/package.json +66 -60
  794. package/.vscode/extensions.json +0 -3
  795. package/.vscode/settings.json +0 -6
  796. package/auto-imports.d.ts +0 -73
  797. package/components.d.ts +0 -312
  798. package/components.json +0 -21
  799. package/index.html +0 -13
  800. package/src/App.vue +0 -68
  801. package/src/components/ChatConversation/ChatConversation.vue +0 -97
  802. package/src/components/ChatConversation/index.ts +0 -1
  803. package/src/components/ChatPromptInputProvider/ChatPromptInputProvider.vue +0 -47
  804. package/src/components/ChatPromptInputProvider/index.ts +0 -1
  805. package/src/components/ai-elements/artifact/Artifact.vue +0 -23
  806. package/src/components/ai-elements/artifact/ArtifactAction.vue +0 -72
  807. package/src/components/ai-elements/artifact/ArtifactActions.vue +0 -19
  808. package/src/components/ai-elements/artifact/ArtifactClose.vue +0 -39
  809. package/src/components/ai-elements/artifact/ArtifactContent.vue +0 -20
  810. package/src/components/ai-elements/artifact/ArtifactDescription.vue +0 -20
  811. package/src/components/ai-elements/artifact/ArtifactHeader.vue +0 -23
  812. package/src/components/ai-elements/artifact/ArtifactTitle.vue +0 -20
  813. package/src/components/ai-elements/artifact/index.ts +0 -8
  814. package/src/components/ai-elements/canvas/Canvas.vue +0 -37
  815. package/src/components/ai-elements/canvas/index.ts +0 -1
  816. package/src/components/ai-elements/chain-of-thought/ChainOfThought.vue +0 -41
  817. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtContent.vue +0 -32
  818. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtHeader.vue +0 -43
  819. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtImage.vue +0 -25
  820. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResult.vue +0 -24
  821. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResults.vue +0 -17
  822. package/src/components/ai-elements/chain-of-thought/ChainOfThoughtStep.vue +0 -54
  823. package/src/components/ai-elements/chain-of-thought/context.ts +0 -22
  824. package/src/components/ai-elements/chain-of-thought/index.ts +0 -7
  825. package/src/components/ai-elements/checkpoint/Checkpoint.vue +0 -19
  826. package/src/components/ai-elements/checkpoint/CheckpointIcon.vue +0 -19
  827. package/src/components/ai-elements/checkpoint/CheckpointTrigger.vue +0 -46
  828. package/src/components/ai-elements/checkpoint/index.ts +0 -3
  829. package/src/components/ai-elements/code-block/CodeBlock.vue +0 -84
  830. package/src/components/ai-elements/code-block/CodeBlockCopyButton.vue +0 -84
  831. package/src/components/ai-elements/code-block/context.ts +0 -7
  832. package/src/components/ai-elements/code-block/index.ts +0 -2
  833. package/src/components/ai-elements/code-block/utils.ts +0 -46
  834. package/src/components/ai-elements/confirmation/Confirmation.vue +0 -30
  835. package/src/components/ai-elements/confirmation/ConfirmationAccepted.vue +0 -18
  836. package/src/components/ai-elements/confirmation/ConfirmationAction.vue +0 -9
  837. package/src/components/ai-elements/confirmation/ConfirmationActions.vue +0 -23
  838. package/src/components/ai-elements/confirmation/ConfirmationRejected.vue +0 -18
  839. package/src/components/ai-elements/confirmation/ConfirmationRequest.vue +0 -11
  840. package/src/components/ai-elements/confirmation/ConfirmationTitle.vue +0 -18
  841. package/src/components/ai-elements/confirmation/context.ts +0 -46
  842. package/src/components/ai-elements/confirmation/index.ts +0 -7
  843. package/src/components/ai-elements/connection/Connection.vue +0 -36
  844. package/src/components/ai-elements/connection/index.ts +0 -1
  845. package/src/components/ai-elements/context/Context.vue +0 -29
  846. package/src/components/ai-elements/context/ContextCacheUsage.vue +0 -45
  847. package/src/components/ai-elements/context/ContextContent.vue +0 -20
  848. package/src/components/ai-elements/context/ContextContentBody.vue +0 -14
  849. package/src/components/ai-elements/context/ContextContentFooter.vue +0 -49
  850. package/src/components/ai-elements/context/ContextContentHeader.vue +0 -49
  851. package/src/components/ai-elements/context/ContextIcon.vue +0 -62
  852. package/src/components/ai-elements/context/ContextInputUsage.vue +0 -46
  853. package/src/components/ai-elements/context/ContextOutputUsage.vue +0 -45
  854. package/src/components/ai-elements/context/ContextReasoningUsage.vue +0 -48
  855. package/src/components/ai-elements/context/ContextTrigger.vue +0 -32
  856. package/src/components/ai-elements/context/TokensWithCost.vue +0 -25
  857. package/src/components/ai-elements/context/context.ts +0 -23
  858. package/src/components/ai-elements/context/index.ts +0 -12
  859. package/src/components/ai-elements/controls/Controls.vue +0 -25
  860. package/src/components/ai-elements/controls/index.ts +0 -1
  861. package/src/components/ai-elements/conversation/Conversation.vue +0 -37
  862. package/src/components/ai-elements/conversation/ConversationContent.vue +0 -21
  863. package/src/components/ai-elements/conversation/ConversationEmptyState.vue +0 -40
  864. package/src/components/ai-elements/conversation/ConversationScrollButton.vue +0 -34
  865. package/src/components/ai-elements/conversation/index.ts +0 -4
  866. package/src/components/ai-elements/edge/Animated.vue +0 -91
  867. package/src/components/ai-elements/edge/Temporary.vue +0 -28
  868. package/src/components/ai-elements/edge/index.ts +0 -2
  869. package/src/components/ai-elements/image/Image.vue +0 -29
  870. package/src/components/ai-elements/image/index.ts +0 -1
  871. package/src/components/ai-elements/inline-citation/InlineCitation.vue +0 -14
  872. package/src/components/ai-elements/inline-citation/InlineCitationCard.vue +0 -17
  873. package/src/components/ai-elements/inline-citation/InlineCitationCardBody.vue +0 -15
  874. package/src/components/ai-elements/inline-citation/InlineCitationCardTrigger.vue +0 -35
  875. package/src/components/ai-elements/inline-citation/InlineCitationCarousel.vue +0 -15
  876. package/src/components/ai-elements/inline-citation/InlineCitationCarouselContent.vue +0 -9
  877. package/src/components/ai-elements/inline-citation/InlineCitationCarouselHeader.vue +0 -16
  878. package/src/components/ai-elements/inline-citation/InlineCitationCarouselIndex.vue +0 -46
  879. package/src/components/ai-elements/inline-citation/InlineCitationCarouselItem.vue +0 -15
  880. package/src/components/ai-elements/inline-citation/InlineCitationCarouselNext.vue +0 -23
  881. package/src/components/ai-elements/inline-citation/InlineCitationCarouselPrev.vue +0 -23
  882. package/src/components/ai-elements/inline-citation/InlineCitationQuote.vue +0 -16
  883. package/src/components/ai-elements/inline-citation/InlineCitationSource.vue +0 -26
  884. package/src/components/ai-elements/inline-citation/InlineCitationText.vue +0 -14
  885. package/src/components/ai-elements/inline-citation/index.ts +0 -14
  886. package/src/components/ai-elements/loader/Loader.vue +0 -23
  887. package/src/components/ai-elements/loader/LoaderIcon.vue +0 -38
  888. package/src/components/ai-elements/loader/index.ts +0 -2
  889. package/src/components/ai-elements/message/Message.vue +0 -27
  890. package/src/components/ai-elements/message/MessageAction.vue +0 -45
  891. package/src/components/ai-elements/message/MessageActions.vue +0 -19
  892. package/src/components/ai-elements/message/MessageAttachment.vue +0 -87
  893. package/src/components/ai-elements/message/MessageAttachments.vue +0 -25
  894. package/src/components/ai-elements/message/MessageAvatar.vue +0 -22
  895. package/src/components/ai-elements/message/MessageBranch.vue +0 -66
  896. package/src/components/ai-elements/message/MessageBranchContent.vue +0 -51
  897. package/src/components/ai-elements/message/MessageBranchNext.vue +0 -23
  898. package/src/components/ai-elements/message/MessageBranchPage.vue +0 -28
  899. package/src/components/ai-elements/message/MessageBranchPrevious.vue +0 -23
  900. package/src/components/ai-elements/message/MessageBranchSelector.vue +0 -23
  901. package/src/components/ai-elements/message/MessageContent.vue +0 -26
  902. package/src/components/ai-elements/message/MessageResponse.vue +0 -42
  903. package/src/components/ai-elements/message/MessageToolbar.vue +0 -24
  904. package/src/components/ai-elements/message/context.ts +0 -22
  905. package/src/components/ai-elements/message/index.ts +0 -15
  906. package/src/components/ai-elements/model-selector/ModelSelector.vue +0 -9
  907. package/src/components/ai-elements/model-selector/ModelSelectorContent.vue +0 -29
  908. package/src/components/ai-elements/model-selector/ModelSelectorDialog.vue +0 -9
  909. package/src/components/ai-elements/model-selector/ModelSelectorEmpty.vue +0 -9
  910. package/src/components/ai-elements/model-selector/ModelSelectorGroup.vue +0 -9
  911. package/src/components/ai-elements/model-selector/ModelSelectorInput.vue +0 -18
  912. package/src/components/ai-elements/model-selector/ModelSelectorItem.vue +0 -10
  913. package/src/components/ai-elements/model-selector/ModelSelectorList.vue +0 -9
  914. package/src/components/ai-elements/model-selector/ModelSelectorLogo.vue +0 -22
  915. package/src/components/ai-elements/model-selector/ModelSelectorLogoGroup.vue +0 -24
  916. package/src/components/ai-elements/model-selector/ModelSelectorName.vue +0 -19
  917. package/src/components/ai-elements/model-selector/ModelSelectorSeparator.vue +0 -7
  918. package/src/components/ai-elements/model-selector/ModelSelectorShortcut.vue +0 -9
  919. package/src/components/ai-elements/model-selector/ModelSelectorTrigger.vue +0 -9
  920. package/src/components/ai-elements/model-selector/index.ts +0 -14
  921. package/src/components/ai-elements/node/Node.vue +0 -31
  922. package/src/components/ai-elements/node/NodeAction.vue +0 -9
  923. package/src/components/ai-elements/node/NodeContent.vue +0 -15
  924. package/src/components/ai-elements/node/NodeDescription.vue +0 -9
  925. package/src/components/ai-elements/node/NodeFooter.vue +0 -15
  926. package/src/components/ai-elements/node/NodeHeader.vue +0 -15
  927. package/src/components/ai-elements/node/NodeTitle.vue +0 -9
  928. package/src/components/ai-elements/node/index.ts +0 -7
  929. package/src/components/ai-elements/open-in-chat/OpenIn.vue +0 -20
  930. package/src/components/ai-elements/open-in-chat/OpenInContent.vue +0 -25
  931. package/src/components/ai-elements/open-in-chat/OpenInItemLink.vue +0 -30
  932. package/src/components/ai-elements/open-in-chat/OpenInTrigger.vue +0 -16
  933. package/src/components/ai-elements/open-in-chat/context.ts +0 -20
  934. package/src/components/ai-elements/open-in-chat/index.ts +0 -9
  935. package/src/components/ai-elements/open-in-chat/providers/icons/ChatGPT.vue +0 -13
  936. package/src/components/ai-elements/open-in-chat/providers/icons/Claude.vue +0 -15
  937. package/src/components/ai-elements/open-in-chat/providers/icons/Cursor.vue +0 -13
  938. package/src/components/ai-elements/open-in-chat/providers/icons/Github.vue +0 -8
  939. package/src/components/ai-elements/open-in-chat/providers/icons/Scira.vue +0 -58
  940. package/src/components/ai-elements/open-in-chat/providers/icons/V0.vue +0 -15
  941. package/src/components/ai-elements/open-in-chat/providers/icons/index.ts +0 -6
  942. package/src/components/ai-elements/open-in-chat/providers/index.ts +0 -69
  943. package/src/components/ai-elements/open-in-chat/providers/items/OpenInChatGPT.vue +0 -18
  944. package/src/components/ai-elements/open-in-chat/providers/items/OpenInClaude.vue +0 -18
  945. package/src/components/ai-elements/open-in-chat/providers/items/OpenInCursor.vue +0 -18
  946. package/src/components/ai-elements/open-in-chat/providers/items/OpenInScira.vue +0 -18
  947. package/src/components/ai-elements/open-in-chat/providers/items/OpenInT3.vue +0 -18
  948. package/src/components/ai-elements/open-in-chat/providers/items/OpenInv0.vue +0 -18
  949. package/src/components/ai-elements/panel/Panel.vue +0 -28
  950. package/src/components/ai-elements/panel/index.ts +0 -1
  951. package/src/components/ai-elements/plan/Plan.vue +0 -32
  952. package/src/components/ai-elements/plan/PlanAction.vue +0 -9
  953. package/src/components/ai-elements/plan/PlanContent.vue +0 -12
  954. package/src/components/ai-elements/plan/PlanDescription.vue +0 -25
  955. package/src/components/ai-elements/plan/PlanFooter.vue +0 -9
  956. package/src/components/ai-elements/plan/PlanHeader.vue +0 -18
  957. package/src/components/ai-elements/plan/PlanTitle.vue +0 -16
  958. package/src/components/ai-elements/plan/PlanTrigger.vue +0 -25
  959. package/src/components/ai-elements/plan/context.ts +0 -20
  960. package/src/components/ai-elements/plan/index.ts +0 -8
  961. package/src/components/ai-elements/prompt-input/PromptInput.vue +0 -116
  962. package/src/components/ai-elements/prompt-input/PromptInputActionAddAttachments.vue +0 -22
  963. package/src/components/ai-elements/prompt-input/PromptInputActionMenu.vue +0 -15
  964. package/src/components/ai-elements/prompt-input/PromptInputActionMenuContent.vue +0 -21
  965. package/src/components/ai-elements/prompt-input/PromptInputActionMenuItem.vue +0 -19
  966. package/src/components/ai-elements/prompt-input/PromptInputActionMenuTrigger.vue +0 -22
  967. package/src/components/ai-elements/prompt-input/PromptInputAttachment.vue +0 -94
  968. package/src/components/ai-elements/prompt-input/PromptInputAttachments.vue +0 -22
  969. package/src/components/ai-elements/prompt-input/PromptInputBody.vue +0 -12
  970. package/src/components/ai-elements/prompt-input/PromptInputButton.vue +0 -56
  971. package/src/components/ai-elements/prompt-input/PromptInputCommand.vue +0 -19
  972. package/src/components/ai-elements/prompt-input/PromptInputCommandEmpty.vue +0 -19
  973. package/src/components/ai-elements/prompt-input/PromptInputCommandGroup.vue +0 -19
  974. package/src/components/ai-elements/prompt-input/PromptInputCommandInput.vue +0 -17
  975. package/src/components/ai-elements/prompt-input/PromptInputCommandItem.vue +0 -19
  976. package/src/components/ai-elements/prompt-input/PromptInputCommandList.vue +0 -17
  977. package/src/components/ai-elements/prompt-input/PromptInputCommandSeparator.vue +0 -16
  978. package/src/components/ai-elements/prompt-input/PromptInputFooter.vue +0 -23
  979. package/src/components/ai-elements/prompt-input/PromptInputHeader.vue +0 -23
  980. package/src/components/ai-elements/prompt-input/PromptInputHoverCard.vue +0 -23
  981. package/src/components/ai-elements/prompt-input/PromptInputHoverCardContent.vue +0 -19
  982. package/src/components/ai-elements/prompt-input/PromptInputHoverCardTrigger.vue +0 -15
  983. package/src/components/ai-elements/prompt-input/PromptInputProvider.vue +0 -32
  984. package/src/components/ai-elements/prompt-input/PromptInputSelect.vue +0 -15
  985. package/src/components/ai-elements/prompt-input/PromptInputSelectContent.vue +0 -19
  986. package/src/components/ai-elements/prompt-input/PromptInputSelectItem.vue +0 -19
  987. package/src/components/ai-elements/prompt-input/PromptInputSelectTrigger.vue +0 -26
  988. package/src/components/ai-elements/prompt-input/PromptInputSelectValue.vue +0 -19
  989. package/src/components/ai-elements/prompt-input/PromptInputSpeechButton.vue +0 -137
  990. package/src/components/ai-elements/prompt-input/PromptInputSubmit.vue +0 -60
  991. package/src/components/ai-elements/prompt-input/PromptInputTab.vue +0 -16
  992. package/src/components/ai-elements/prompt-input/PromptInputTabBody.vue +0 -16
  993. package/src/components/ai-elements/prompt-input/PromptInputTabItem.vue +0 -16
  994. package/src/components/ai-elements/prompt-input/PromptInputTabLabel.vue +0 -16
  995. package/src/components/ai-elements/prompt-input/PromptInputTabsList.vue +0 -16
  996. package/src/components/ai-elements/prompt-input/PromptInputTextarea.vue +0 -78
  997. package/src/components/ai-elements/prompt-input/PromptInputTools.vue +0 -12
  998. package/src/components/ai-elements/prompt-input/context.ts +0 -223
  999. package/src/components/ai-elements/prompt-input/index.ts +0 -39
  1000. package/src/components/ai-elements/prompt-input/types.ts +0 -28
  1001. package/src/components/ai-elements/queue/Queue.vue +0 -21
  1002. package/src/components/ai-elements/queue/QueueItem.vue +0 -21
  1003. package/src/components/ai-elements/queue/QueueItemAction.vue +0 -25
  1004. package/src/components/ai-elements/queue/QueueItemActions.vue +0 -14
  1005. package/src/components/ai-elements/queue/QueueItemAttachment.vue +0 -14
  1006. package/src/components/ai-elements/queue/QueueItemContent.vue +0 -32
  1007. package/src/components/ai-elements/queue/QueueItemDescription.vue +0 -32
  1008. package/src/components/ai-elements/queue/QueueItemFile.vue +0 -25
  1009. package/src/components/ai-elements/queue/QueueItemImage.vue +0 -18
  1010. package/src/components/ai-elements/queue/QueueItemIndicator.vue +0 -30
  1011. package/src/components/ai-elements/queue/QueueList.vue +0 -22
  1012. package/src/components/ai-elements/queue/QueueSection.vue +0 -26
  1013. package/src/components/ai-elements/queue/QueueSectionContent.vue +0 -15
  1014. package/src/components/ai-elements/queue/QueueSectionLabel.vue +0 -26
  1015. package/src/components/ai-elements/queue/QueueSectionTrigger.vue +0 -25
  1016. package/src/components/ai-elements/queue/index.ts +0 -15
  1017. package/src/components/ai-elements/reasoning/Reasoning.vue +0 -94
  1018. package/src/components/ai-elements/reasoning/ReasoningContent.vue +0 -41
  1019. package/src/components/ai-elements/reasoning/ReasoningTrigger.vue +0 -61
  1020. package/src/components/ai-elements/reasoning/context.ts +0 -19
  1021. package/src/components/ai-elements/reasoning/index.ts +0 -3
  1022. package/src/components/ai-elements/shimmer/Shimmer.vue +0 -69
  1023. package/src/components/ai-elements/shimmer/index.ts +0 -1
  1024. package/src/components/ai-elements/sources/Source.vue +0 -26
  1025. package/src/components/ai-elements/sources/Sources.vue +0 -17
  1026. package/src/components/ai-elements/sources/SourcesContent.vue +0 -23
  1027. package/src/components/ai-elements/sources/SourcesTrigger.vue +0 -24
  1028. package/src/components/ai-elements/sources/index.ts +0 -4
  1029. package/src/components/ai-elements/suggestion/Suggestion.vue +0 -38
  1030. package/src/components/ai-elements/suggestion/Suggestions.vue +0 -20
  1031. package/src/components/ai-elements/suggestion/index.ts +0 -2
  1032. package/src/components/ai-elements/task/Task.vue +0 -32
  1033. package/src/components/ai-elements/task/TaskContent.vue +0 -27
  1034. package/src/components/ai-elements/task/TaskItem.vue +0 -16
  1035. package/src/components/ai-elements/task/TaskItemFile.vue +0 -18
  1036. package/src/components/ai-elements/task/TaskTrigger.vue +0 -33
  1037. package/src/components/ai-elements/task/index.ts +0 -5
  1038. package/src/components/ai-elements/tool/Tool.vue +0 -18
  1039. package/src/components/ai-elements/tool/ToolContent.vue +0 -23
  1040. package/src/components/ai-elements/tool/ToolHeader.vue +0 -38
  1041. package/src/components/ai-elements/tool/ToolInput.vue +0 -32
  1042. package/src/components/ai-elements/tool/ToolOutput.vue +0 -69
  1043. package/src/components/ai-elements/tool/ToolStatusBadge.vue +0 -63
  1044. package/src/components/ai-elements/tool/index.ts +0 -5
  1045. package/src/components/ai-elements/toolbar/Toolbar.vue +0 -32
  1046. package/src/components/ai-elements/toolbar/index.ts +0 -1
  1047. package/src/components/ai-elements/web-preview/WebPreview.vue +0 -60
  1048. package/src/components/ai-elements/web-preview/WebPreviewBody.vue +0 -34
  1049. package/src/components/ai-elements/web-preview/WebPreviewConsole.vue +0 -92
  1050. package/src/components/ai-elements/web-preview/WebPreviewNavigation.vue +0 -21
  1051. package/src/components/ai-elements/web-preview/WebPreviewNavigationButton.vue +0 -45
  1052. package/src/components/ai-elements/web-preview/WebPreviewUrl.vue +0 -43
  1053. package/src/components/ai-elements/web-preview/context.ts +0 -25
  1054. package/src/components/ai-elements/web-preview/index.ts +0 -7
  1055. package/src/components/ui/alert/Alert.vue +0 -21
  1056. package/src/components/ui/alert/AlertDescription.vue +0 -17
  1057. package/src/components/ui/alert/AlertTitle.vue +0 -17
  1058. package/src/components/ui/alert/index.ts +0 -24
  1059. package/src/components/ui/avatar/Avatar.vue +0 -18
  1060. package/src/components/ui/avatar/AvatarFallback.vue +0 -21
  1061. package/src/components/ui/avatar/AvatarImage.vue +0 -16
  1062. package/src/components/ui/avatar/index.ts +0 -3
  1063. package/src/components/ui/badge/Badge.vue +0 -26
  1064. package/src/components/ui/badge/index.ts +0 -26
  1065. package/src/components/ui/button/Button.vue +0 -29
  1066. package/src/components/ui/button/index.ts +0 -38
  1067. package/src/components/ui/button-group/ButtonGroup.vue +0 -22
  1068. package/src/components/ui/button-group/ButtonGroupSeparator.vue +0 -24
  1069. package/src/components/ui/button-group/ButtonGroupText.vue +0 -29
  1070. package/src/components/ui/button-group/index.ts +0 -25
  1071. package/src/components/ui/card/Card.vue +0 -22
  1072. package/src/components/ui/card/CardAction.vue +0 -17
  1073. package/src/components/ui/card/CardContent.vue +0 -17
  1074. package/src/components/ui/card/CardDescription.vue +0 -17
  1075. package/src/components/ui/card/CardFooter.vue +0 -17
  1076. package/src/components/ui/card/CardHeader.vue +0 -17
  1077. package/src/components/ui/card/CardTitle.vue +0 -17
  1078. package/src/components/ui/card/index.ts +0 -7
  1079. package/src/components/ui/carousel/Carousel.vue +0 -53
  1080. package/src/components/ui/carousel/CarouselContent.vue +0 -33
  1081. package/src/components/ui/carousel/CarouselItem.vue +0 -24
  1082. package/src/components/ui/carousel/CarouselNext.vue +0 -41
  1083. package/src/components/ui/carousel/CarouselPrevious.vue +0 -41
  1084. package/src/components/ui/carousel/index.ts +0 -10
  1085. package/src/components/ui/carousel/interface.ts +0 -26
  1086. package/src/components/ui/carousel/useCarousel.ts +0 -56
  1087. package/src/components/ui/collapsible/Collapsible.vue +0 -19
  1088. package/src/components/ui/collapsible/CollapsibleContent.vue +0 -15
  1089. package/src/components/ui/collapsible/CollapsibleTrigger.vue +0 -15
  1090. package/src/components/ui/collapsible/index.ts +0 -3
  1091. package/src/components/ui/command/Command.vue +0 -87
  1092. package/src/components/ui/command/CommandDialog.vue +0 -31
  1093. package/src/components/ui/command/CommandEmpty.vue +0 -27
  1094. package/src/components/ui/command/CommandGroup.vue +0 -45
  1095. package/src/components/ui/command/CommandInput.vue +0 -39
  1096. package/src/components/ui/command/CommandItem.vue +0 -76
  1097. package/src/components/ui/command/CommandList.vue +0 -25
  1098. package/src/components/ui/command/CommandSeparator.vue +0 -21
  1099. package/src/components/ui/command/CommandShortcut.vue +0 -17
  1100. package/src/components/ui/command/index.ts +0 -25
  1101. package/src/components/ui/dialog/Dialog.vue +0 -19
  1102. package/src/components/ui/dialog/DialogClose.vue +0 -15
  1103. package/src/components/ui/dialog/DialogContent.vue +0 -53
  1104. package/src/components/ui/dialog/DialogDescription.vue +0 -23
  1105. package/src/components/ui/dialog/DialogFooter.vue +0 -15
  1106. package/src/components/ui/dialog/DialogHeader.vue +0 -17
  1107. package/src/components/ui/dialog/DialogOverlay.vue +0 -21
  1108. package/src/components/ui/dialog/DialogScrollContent.vue +0 -59
  1109. package/src/components/ui/dialog/DialogTitle.vue +0 -23
  1110. package/src/components/ui/dialog/DialogTrigger.vue +0 -15
  1111. package/src/components/ui/dialog/index.ts +0 -10
  1112. package/src/components/ui/dropdown-menu/DropdownMenu.vue +0 -19
  1113. package/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +0 -39
  1114. package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +0 -39
  1115. package/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +0 -15
  1116. package/src/components/ui/dropdown-menu/DropdownMenuItem.vue +0 -31
  1117. package/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +0 -23
  1118. package/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +0 -21
  1119. package/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +0 -40
  1120. package/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +0 -23
  1121. package/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +0 -17
  1122. package/src/components/ui/dropdown-menu/DropdownMenuSub.vue +0 -18
  1123. package/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +0 -27
  1124. package/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +0 -30
  1125. package/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +0 -17
  1126. package/src/components/ui/dropdown-menu/index.ts +0 -16
  1127. package/src/components/ui/hover-card/HoverCard.vue +0 -19
  1128. package/src/components/ui/hover-card/HoverCardContent.vue +0 -43
  1129. package/src/components/ui/hover-card/HoverCardTrigger.vue +0 -15
  1130. package/src/components/ui/hover-card/index.ts +0 -3
  1131. package/src/components/ui/input/Input.vue +0 -33
  1132. package/src/components/ui/input/index.ts +0 -1
  1133. package/src/components/ui/input-group/InputGroup.vue +0 -37
  1134. package/src/components/ui/input-group/InputGroupAddon.vue +0 -36
  1135. package/src/components/ui/input-group/InputGroupButton.vue +0 -21
  1136. package/src/components/ui/input-group/InputGroupInput.vue +0 -19
  1137. package/src/components/ui/input-group/InputGroupText.vue +0 -19
  1138. package/src/components/ui/input-group/InputGroupTextarea.vue +0 -19
  1139. package/src/components/ui/input-group/index.ts +0 -59
  1140. package/src/components/ui/progress/Progress.vue +0 -38
  1141. package/src/components/ui/progress/index.ts +0 -1
  1142. package/src/components/ui/scroll-area/ScrollArea.vue +0 -33
  1143. package/src/components/ui/scroll-area/ScrollBar.vue +0 -32
  1144. package/src/components/ui/scroll-area/index.ts +0 -2
  1145. package/src/components/ui/select/Select.vue +0 -19
  1146. package/src/components/ui/select/SelectContent.vue +0 -51
  1147. package/src/components/ui/select/SelectGroup.vue +0 -15
  1148. package/src/components/ui/select/SelectItem.vue +0 -44
  1149. package/src/components/ui/select/SelectItemText.vue +0 -15
  1150. package/src/components/ui/select/SelectLabel.vue +0 -17
  1151. package/src/components/ui/select/SelectScrollDownButton.vue +0 -26
  1152. package/src/components/ui/select/SelectScrollUpButton.vue +0 -26
  1153. package/src/components/ui/select/SelectSeparator.vue +0 -19
  1154. package/src/components/ui/select/SelectTrigger.vue +0 -33
  1155. package/src/components/ui/select/SelectValue.vue +0 -15
  1156. package/src/components/ui/select/index.ts +0 -11
  1157. package/src/components/ui/separator/Separator.vue +0 -29
  1158. package/src/components/ui/separator/index.ts +0 -1
  1159. package/src/components/ui/textarea/Textarea.vue +0 -28
  1160. package/src/components/ui/textarea/index.ts +0 -1
  1161. package/src/components/ui/tooltip/Tooltip.vue +0 -19
  1162. package/src/components/ui/tooltip/TooltipContent.vue +0 -34
  1163. package/src/components/ui/tooltip/TooltipProvider.vue +0 -14
  1164. package/src/components/ui/tooltip/TooltipTrigger.vue +0 -15
  1165. package/src/components/ui/tooltip/index.ts +0 -4
  1166. package/src/composables/useChat.ts +0 -46
  1167. package/src/index.ts +0 -3
  1168. package/src/lib/utils.ts +0 -7
  1169. package/src/main.ts +0 -5
  1170. package/src/request/index.ts +0 -41
  1171. package/src/style.css +0 -120
  1172. package/tsconfig.app.json +0 -25
  1173. package/tsconfig.json +0 -13
  1174. package/tsconfig.node.json +0 -26
  1175. package/vite.config.ts +0 -26
  1176. /package/{public → dist}/vite.svg +0 -0
@@ -0,0 +1,2955 @@
1
+ import "./isArrayLikeObject-Dz_TDfw0.js";
2
+ import { _ as wrapLabel, n as calculateTextHeight, r as calculateTextWidth } from "./chunk-S3R3BYOJ-DHTsHczu.js";
3
+ import { g as log, h as __name, p as select_default } from "./src-B-SBGd0A.js";
4
+ import { B as setAccTitle, I as sanitizeText, _ as getAccDescription, b as getConfig2, c as configureSvgSize, r as assignWithDepth_default, s as common_default, v as getAccTitle, z as setAccDescription } from "./chunk-ABZYJK2D-BZvlc6Ej.js";
5
+ import "./math-CJAnbPum.js";
6
+ import { t as require_dist } from "./dist-CrnZo_23.js";
7
+ import { i as drawRect, o as getNoteRect } from "./chunk-TZMSLE5B-F4nHm7N1.js";
8
+ var import_dist = require_dist(), parser = (function() {
9
+ var e = /* @__PURE__ */ __name(function(e, t, n, r) {
10
+ for (n ||= {}, r = e.length; r--; n[e[r]] = t);
11
+ return n;
12
+ }, "o"), t = [1, 24], n = [1, 25], r = [1, 26], a = [1, 27], o = [1, 28], s = [1, 63], l = [1, 64], u = [1, 65], d = [1, 66], f = [1, 67], p = [1, 68], m = [1, 69], h = [1, 29], g = [1, 30], _ = [1, 31], v = [1, 32], y = [1, 33], b = [1, 34], x = [1, 35], S = [1, 36], C = [1, 37], w = [1, 38], T = [1, 39], E = [1, 40], D = [1, 41], O = [1, 42], k = [1, 43], A = [1, 44], j = [1, 45], M = [1, 46], N = [1, 47], P = [1, 48], F = [1, 50], I = [1, 51], L = [1, 52], R = [1, 53], z = [1, 54], B = [1, 55], V = [1, 56], H = [1, 57], U = [1, 58], W = [1, 59], G = [1, 60], K = [14, 42], Ie = [
13
+ 14,
14
+ 34,
15
+ 36,
16
+ 37,
17
+ 38,
18
+ 39,
19
+ 40,
20
+ 41,
21
+ 42,
22
+ 44,
23
+ 45,
24
+ 46,
25
+ 47,
26
+ 48,
27
+ 49,
28
+ 50,
29
+ 51,
30
+ 52,
31
+ 53,
32
+ 54,
33
+ 55,
34
+ 56,
35
+ 57,
36
+ 58,
37
+ 59,
38
+ 60,
39
+ 61,
40
+ 62,
41
+ 63,
42
+ 64,
43
+ 65,
44
+ 66,
45
+ 67,
46
+ 68,
47
+ 69,
48
+ 70,
49
+ 71,
50
+ 72,
51
+ 73,
52
+ 74
53
+ ], q = [
54
+ 12,
55
+ 14,
56
+ 34,
57
+ 36,
58
+ 37,
59
+ 38,
60
+ 39,
61
+ 40,
62
+ 41,
63
+ 42,
64
+ 44,
65
+ 45,
66
+ 46,
67
+ 47,
68
+ 48,
69
+ 49,
70
+ 50,
71
+ 51,
72
+ 52,
73
+ 53,
74
+ 54,
75
+ 55,
76
+ 56,
77
+ 57,
78
+ 58,
79
+ 59,
80
+ 60,
81
+ 61,
82
+ 62,
83
+ 63,
84
+ 64,
85
+ 65,
86
+ 66,
87
+ 67,
88
+ 68,
89
+ 69,
90
+ 70,
91
+ 71,
92
+ 72,
93
+ 73,
94
+ 74
95
+ ], J = [1, 82], Y = [1, 83], X = [1, 84], Z = [1, 85], Q = [
96
+ 12,
97
+ 14,
98
+ 42
99
+ ], Le = [
100
+ 12,
101
+ 14,
102
+ 33,
103
+ 42
104
+ ], Re = [
105
+ 12,
106
+ 14,
107
+ 33,
108
+ 42,
109
+ 76,
110
+ 77,
111
+ 79,
112
+ 80
113
+ ], $ = [12, 33], ze = [
114
+ 34,
115
+ 36,
116
+ 37,
117
+ 38,
118
+ 39,
119
+ 40,
120
+ 41,
121
+ 44,
122
+ 45,
123
+ 46,
124
+ 47,
125
+ 48,
126
+ 49,
127
+ 50,
128
+ 51,
129
+ 52,
130
+ 53,
131
+ 54,
132
+ 55,
133
+ 56,
134
+ 57,
135
+ 58,
136
+ 59,
137
+ 60,
138
+ 61,
139
+ 62,
140
+ 63,
141
+ 64,
142
+ 65,
143
+ 66,
144
+ 67,
145
+ 68,
146
+ 69,
147
+ 70,
148
+ 71,
149
+ 72,
150
+ 73,
151
+ 74
152
+ ], Be = {
153
+ trace: /* @__PURE__ */ __name(function() {}, "trace"),
154
+ yy: {},
155
+ symbols_: {
156
+ error: 2,
157
+ start: 3,
158
+ mermaidDoc: 4,
159
+ direction: 5,
160
+ direction_tb: 6,
161
+ direction_bt: 7,
162
+ direction_rl: 8,
163
+ direction_lr: 9,
164
+ graphConfig: 10,
165
+ C4_CONTEXT: 11,
166
+ NEWLINE: 12,
167
+ statements: 13,
168
+ EOF: 14,
169
+ C4_CONTAINER: 15,
170
+ C4_COMPONENT: 16,
171
+ C4_DYNAMIC: 17,
172
+ C4_DEPLOYMENT: 18,
173
+ otherStatements: 19,
174
+ diagramStatements: 20,
175
+ otherStatement: 21,
176
+ title: 22,
177
+ accDescription: 23,
178
+ acc_title: 24,
179
+ acc_title_value: 25,
180
+ acc_descr: 26,
181
+ acc_descr_value: 27,
182
+ acc_descr_multiline_value: 28,
183
+ boundaryStatement: 29,
184
+ boundaryStartStatement: 30,
185
+ boundaryStopStatement: 31,
186
+ boundaryStart: 32,
187
+ LBRACE: 33,
188
+ ENTERPRISE_BOUNDARY: 34,
189
+ attributes: 35,
190
+ SYSTEM_BOUNDARY: 36,
191
+ BOUNDARY: 37,
192
+ CONTAINER_BOUNDARY: 38,
193
+ NODE: 39,
194
+ NODE_L: 40,
195
+ NODE_R: 41,
196
+ RBRACE: 42,
197
+ diagramStatement: 43,
198
+ PERSON: 44,
199
+ PERSON_EXT: 45,
200
+ SYSTEM: 46,
201
+ SYSTEM_DB: 47,
202
+ SYSTEM_QUEUE: 48,
203
+ SYSTEM_EXT: 49,
204
+ SYSTEM_EXT_DB: 50,
205
+ SYSTEM_EXT_QUEUE: 51,
206
+ CONTAINER: 52,
207
+ CONTAINER_DB: 53,
208
+ CONTAINER_QUEUE: 54,
209
+ CONTAINER_EXT: 55,
210
+ CONTAINER_EXT_DB: 56,
211
+ CONTAINER_EXT_QUEUE: 57,
212
+ COMPONENT: 58,
213
+ COMPONENT_DB: 59,
214
+ COMPONENT_QUEUE: 60,
215
+ COMPONENT_EXT: 61,
216
+ COMPONENT_EXT_DB: 62,
217
+ COMPONENT_EXT_QUEUE: 63,
218
+ REL: 64,
219
+ BIREL: 65,
220
+ REL_U: 66,
221
+ REL_D: 67,
222
+ REL_L: 68,
223
+ REL_R: 69,
224
+ REL_B: 70,
225
+ REL_INDEX: 71,
226
+ UPDATE_EL_STYLE: 72,
227
+ UPDATE_REL_STYLE: 73,
228
+ UPDATE_LAYOUT_CONFIG: 74,
229
+ attribute: 75,
230
+ STR: 76,
231
+ STR_KEY: 77,
232
+ STR_VALUE: 78,
233
+ ATTRIBUTE: 79,
234
+ ATTRIBUTE_EMPTY: 80,
235
+ $accept: 0,
236
+ $end: 1
237
+ },
238
+ terminals_: {
239
+ 2: "error",
240
+ 6: "direction_tb",
241
+ 7: "direction_bt",
242
+ 8: "direction_rl",
243
+ 9: "direction_lr",
244
+ 11: "C4_CONTEXT",
245
+ 12: "NEWLINE",
246
+ 14: "EOF",
247
+ 15: "C4_CONTAINER",
248
+ 16: "C4_COMPONENT",
249
+ 17: "C4_DYNAMIC",
250
+ 18: "C4_DEPLOYMENT",
251
+ 22: "title",
252
+ 23: "accDescription",
253
+ 24: "acc_title",
254
+ 25: "acc_title_value",
255
+ 26: "acc_descr",
256
+ 27: "acc_descr_value",
257
+ 28: "acc_descr_multiline_value",
258
+ 33: "LBRACE",
259
+ 34: "ENTERPRISE_BOUNDARY",
260
+ 36: "SYSTEM_BOUNDARY",
261
+ 37: "BOUNDARY",
262
+ 38: "CONTAINER_BOUNDARY",
263
+ 39: "NODE",
264
+ 40: "NODE_L",
265
+ 41: "NODE_R",
266
+ 42: "RBRACE",
267
+ 44: "PERSON",
268
+ 45: "PERSON_EXT",
269
+ 46: "SYSTEM",
270
+ 47: "SYSTEM_DB",
271
+ 48: "SYSTEM_QUEUE",
272
+ 49: "SYSTEM_EXT",
273
+ 50: "SYSTEM_EXT_DB",
274
+ 51: "SYSTEM_EXT_QUEUE",
275
+ 52: "CONTAINER",
276
+ 53: "CONTAINER_DB",
277
+ 54: "CONTAINER_QUEUE",
278
+ 55: "CONTAINER_EXT",
279
+ 56: "CONTAINER_EXT_DB",
280
+ 57: "CONTAINER_EXT_QUEUE",
281
+ 58: "COMPONENT",
282
+ 59: "COMPONENT_DB",
283
+ 60: "COMPONENT_QUEUE",
284
+ 61: "COMPONENT_EXT",
285
+ 62: "COMPONENT_EXT_DB",
286
+ 63: "COMPONENT_EXT_QUEUE",
287
+ 64: "REL",
288
+ 65: "BIREL",
289
+ 66: "REL_U",
290
+ 67: "REL_D",
291
+ 68: "REL_L",
292
+ 69: "REL_R",
293
+ 70: "REL_B",
294
+ 71: "REL_INDEX",
295
+ 72: "UPDATE_EL_STYLE",
296
+ 73: "UPDATE_REL_STYLE",
297
+ 74: "UPDATE_LAYOUT_CONFIG",
298
+ 76: "STR",
299
+ 77: "STR_KEY",
300
+ 78: "STR_VALUE",
301
+ 79: "ATTRIBUTE",
302
+ 80: "ATTRIBUTE_EMPTY"
303
+ },
304
+ productions_: [
305
+ 0,
306
+ [3, 1],
307
+ [3, 1],
308
+ [5, 1],
309
+ [5, 1],
310
+ [5, 1],
311
+ [5, 1],
312
+ [4, 1],
313
+ [10, 4],
314
+ [10, 4],
315
+ [10, 4],
316
+ [10, 4],
317
+ [10, 4],
318
+ [13, 1],
319
+ [13, 1],
320
+ [13, 2],
321
+ [19, 1],
322
+ [19, 2],
323
+ [19, 3],
324
+ [21, 1],
325
+ [21, 1],
326
+ [21, 2],
327
+ [21, 2],
328
+ [21, 1],
329
+ [29, 3],
330
+ [30, 3],
331
+ [30, 3],
332
+ [30, 4],
333
+ [32, 2],
334
+ [32, 2],
335
+ [32, 2],
336
+ [32, 2],
337
+ [32, 2],
338
+ [32, 2],
339
+ [32, 2],
340
+ [31, 1],
341
+ [20, 1],
342
+ [20, 2],
343
+ [20, 3],
344
+ [43, 2],
345
+ [43, 2],
346
+ [43, 2],
347
+ [43, 2],
348
+ [43, 2],
349
+ [43, 2],
350
+ [43, 2],
351
+ [43, 2],
352
+ [43, 2],
353
+ [43, 2],
354
+ [43, 2],
355
+ [43, 2],
356
+ [43, 2],
357
+ [43, 2],
358
+ [43, 2],
359
+ [43, 2],
360
+ [43, 2],
361
+ [43, 2],
362
+ [43, 2],
363
+ [43, 2],
364
+ [43, 1],
365
+ [43, 2],
366
+ [43, 2],
367
+ [43, 2],
368
+ [43, 2],
369
+ [43, 2],
370
+ [43, 2],
371
+ [43, 2],
372
+ [43, 2],
373
+ [43, 2],
374
+ [43, 2],
375
+ [43, 2],
376
+ [35, 1],
377
+ [35, 2],
378
+ [75, 1],
379
+ [75, 2],
380
+ [75, 1],
381
+ [75, 1]
382
+ ],
383
+ performAction: /* @__PURE__ */ __name(function(e, t, n, r, i, a, o) {
384
+ var s = a.length - 1;
385
+ switch (i) {
386
+ case 3:
387
+ r.setDirection("TB");
388
+ break;
389
+ case 4:
390
+ r.setDirection("BT");
391
+ break;
392
+ case 5:
393
+ r.setDirection("RL");
394
+ break;
395
+ case 6:
396
+ r.setDirection("LR");
397
+ break;
398
+ case 8:
399
+ case 9:
400
+ case 10:
401
+ case 11:
402
+ case 12:
403
+ r.setC4Type(a[s - 3]);
404
+ break;
405
+ case 19:
406
+ r.setTitle(a[s].substring(6)), this.$ = a[s].substring(6);
407
+ break;
408
+ case 20:
409
+ r.setAccDescription(a[s].substring(15)), this.$ = a[s].substring(15);
410
+ break;
411
+ case 21:
412
+ this.$ = a[s].trim(), r.setTitle(this.$);
413
+ break;
414
+ case 22:
415
+ case 23:
416
+ this.$ = a[s].trim(), r.setAccDescription(this.$);
417
+ break;
418
+ case 28:
419
+ a[s].splice(2, 0, "ENTERPRISE"), r.addPersonOrSystemBoundary(...a[s]), this.$ = a[s];
420
+ break;
421
+ case 29:
422
+ a[s].splice(2, 0, "SYSTEM"), r.addPersonOrSystemBoundary(...a[s]), this.$ = a[s];
423
+ break;
424
+ case 30:
425
+ r.addPersonOrSystemBoundary(...a[s]), this.$ = a[s];
426
+ break;
427
+ case 31:
428
+ a[s].splice(2, 0, "CONTAINER"), r.addContainerBoundary(...a[s]), this.$ = a[s];
429
+ break;
430
+ case 32:
431
+ r.addDeploymentNode("node", ...a[s]), this.$ = a[s];
432
+ break;
433
+ case 33:
434
+ r.addDeploymentNode("nodeL", ...a[s]), this.$ = a[s];
435
+ break;
436
+ case 34:
437
+ r.addDeploymentNode("nodeR", ...a[s]), this.$ = a[s];
438
+ break;
439
+ case 35:
440
+ r.popBoundaryParseStack();
441
+ break;
442
+ case 39:
443
+ r.addPersonOrSystem("person", ...a[s]), this.$ = a[s];
444
+ break;
445
+ case 40:
446
+ r.addPersonOrSystem("external_person", ...a[s]), this.$ = a[s];
447
+ break;
448
+ case 41:
449
+ r.addPersonOrSystem("system", ...a[s]), this.$ = a[s];
450
+ break;
451
+ case 42:
452
+ r.addPersonOrSystem("system_db", ...a[s]), this.$ = a[s];
453
+ break;
454
+ case 43:
455
+ r.addPersonOrSystem("system_queue", ...a[s]), this.$ = a[s];
456
+ break;
457
+ case 44:
458
+ r.addPersonOrSystem("external_system", ...a[s]), this.$ = a[s];
459
+ break;
460
+ case 45:
461
+ r.addPersonOrSystem("external_system_db", ...a[s]), this.$ = a[s];
462
+ break;
463
+ case 46:
464
+ r.addPersonOrSystem("external_system_queue", ...a[s]), this.$ = a[s];
465
+ break;
466
+ case 47:
467
+ r.addContainer("container", ...a[s]), this.$ = a[s];
468
+ break;
469
+ case 48:
470
+ r.addContainer("container_db", ...a[s]), this.$ = a[s];
471
+ break;
472
+ case 49:
473
+ r.addContainer("container_queue", ...a[s]), this.$ = a[s];
474
+ break;
475
+ case 50:
476
+ r.addContainer("external_container", ...a[s]), this.$ = a[s];
477
+ break;
478
+ case 51:
479
+ r.addContainer("external_container_db", ...a[s]), this.$ = a[s];
480
+ break;
481
+ case 52:
482
+ r.addContainer("external_container_queue", ...a[s]), this.$ = a[s];
483
+ break;
484
+ case 53:
485
+ r.addComponent("component", ...a[s]), this.$ = a[s];
486
+ break;
487
+ case 54:
488
+ r.addComponent("component_db", ...a[s]), this.$ = a[s];
489
+ break;
490
+ case 55:
491
+ r.addComponent("component_queue", ...a[s]), this.$ = a[s];
492
+ break;
493
+ case 56:
494
+ r.addComponent("external_component", ...a[s]), this.$ = a[s];
495
+ break;
496
+ case 57:
497
+ r.addComponent("external_component_db", ...a[s]), this.$ = a[s];
498
+ break;
499
+ case 58:
500
+ r.addComponent("external_component_queue", ...a[s]), this.$ = a[s];
501
+ break;
502
+ case 60:
503
+ r.addRel("rel", ...a[s]), this.$ = a[s];
504
+ break;
505
+ case 61:
506
+ r.addRel("birel", ...a[s]), this.$ = a[s];
507
+ break;
508
+ case 62:
509
+ r.addRel("rel_u", ...a[s]), this.$ = a[s];
510
+ break;
511
+ case 63:
512
+ r.addRel("rel_d", ...a[s]), this.$ = a[s];
513
+ break;
514
+ case 64:
515
+ r.addRel("rel_l", ...a[s]), this.$ = a[s];
516
+ break;
517
+ case 65:
518
+ r.addRel("rel_r", ...a[s]), this.$ = a[s];
519
+ break;
520
+ case 66:
521
+ r.addRel("rel_b", ...a[s]), this.$ = a[s];
522
+ break;
523
+ case 67:
524
+ a[s].splice(0, 1), r.addRel("rel", ...a[s]), this.$ = a[s];
525
+ break;
526
+ case 68:
527
+ r.updateElStyle("update_el_style", ...a[s]), this.$ = a[s];
528
+ break;
529
+ case 69:
530
+ r.updateRelStyle("update_rel_style", ...a[s]), this.$ = a[s];
531
+ break;
532
+ case 70:
533
+ r.updateLayoutConfig("update_layout_config", ...a[s]), this.$ = a[s];
534
+ break;
535
+ case 71:
536
+ this.$ = [a[s]];
537
+ break;
538
+ case 72:
539
+ a[s].unshift(a[s - 1]), this.$ = a[s];
540
+ break;
541
+ case 73:
542
+ case 75:
543
+ this.$ = a[s].trim();
544
+ break;
545
+ case 74:
546
+ let e = {};
547
+ e[a[s - 1].trim()] = a[s].trim(), this.$ = e;
548
+ break;
549
+ case 76:
550
+ this.$ = "";
551
+ break;
552
+ }
553
+ }, "anonymous"),
554
+ table: [
555
+ {
556
+ 3: 1,
557
+ 4: 2,
558
+ 5: 3,
559
+ 6: [1, 5],
560
+ 7: [1, 6],
561
+ 8: [1, 7],
562
+ 9: [1, 8],
563
+ 10: 4,
564
+ 11: [1, 9],
565
+ 15: [1, 10],
566
+ 16: [1, 11],
567
+ 17: [1, 12],
568
+ 18: [1, 13]
569
+ },
570
+ { 1: [3] },
571
+ { 1: [2, 1] },
572
+ { 1: [2, 2] },
573
+ { 1: [2, 7] },
574
+ { 1: [2, 3] },
575
+ { 1: [2, 4] },
576
+ { 1: [2, 5] },
577
+ { 1: [2, 6] },
578
+ { 12: [1, 14] },
579
+ { 12: [1, 15] },
580
+ { 12: [1, 16] },
581
+ { 12: [1, 17] },
582
+ { 12: [1, 18] },
583
+ {
584
+ 13: 19,
585
+ 19: 20,
586
+ 20: 21,
587
+ 21: 22,
588
+ 22: t,
589
+ 23: n,
590
+ 24: r,
591
+ 26: a,
592
+ 28: o,
593
+ 29: 49,
594
+ 30: 61,
595
+ 32: 62,
596
+ 34: s,
597
+ 36: l,
598
+ 37: u,
599
+ 38: d,
600
+ 39: f,
601
+ 40: p,
602
+ 41: m,
603
+ 43: 23,
604
+ 44: h,
605
+ 45: g,
606
+ 46: _,
607
+ 47: v,
608
+ 48: y,
609
+ 49: b,
610
+ 50: x,
611
+ 51: S,
612
+ 52: C,
613
+ 53: w,
614
+ 54: T,
615
+ 55: E,
616
+ 56: D,
617
+ 57: O,
618
+ 58: k,
619
+ 59: A,
620
+ 60: j,
621
+ 61: M,
622
+ 62: N,
623
+ 63: P,
624
+ 64: F,
625
+ 65: I,
626
+ 66: L,
627
+ 67: R,
628
+ 68: z,
629
+ 69: B,
630
+ 70: V,
631
+ 71: H,
632
+ 72: U,
633
+ 73: W,
634
+ 74: G
635
+ },
636
+ {
637
+ 13: 70,
638
+ 19: 20,
639
+ 20: 21,
640
+ 21: 22,
641
+ 22: t,
642
+ 23: n,
643
+ 24: r,
644
+ 26: a,
645
+ 28: o,
646
+ 29: 49,
647
+ 30: 61,
648
+ 32: 62,
649
+ 34: s,
650
+ 36: l,
651
+ 37: u,
652
+ 38: d,
653
+ 39: f,
654
+ 40: p,
655
+ 41: m,
656
+ 43: 23,
657
+ 44: h,
658
+ 45: g,
659
+ 46: _,
660
+ 47: v,
661
+ 48: y,
662
+ 49: b,
663
+ 50: x,
664
+ 51: S,
665
+ 52: C,
666
+ 53: w,
667
+ 54: T,
668
+ 55: E,
669
+ 56: D,
670
+ 57: O,
671
+ 58: k,
672
+ 59: A,
673
+ 60: j,
674
+ 61: M,
675
+ 62: N,
676
+ 63: P,
677
+ 64: F,
678
+ 65: I,
679
+ 66: L,
680
+ 67: R,
681
+ 68: z,
682
+ 69: B,
683
+ 70: V,
684
+ 71: H,
685
+ 72: U,
686
+ 73: W,
687
+ 74: G
688
+ },
689
+ {
690
+ 13: 71,
691
+ 19: 20,
692
+ 20: 21,
693
+ 21: 22,
694
+ 22: t,
695
+ 23: n,
696
+ 24: r,
697
+ 26: a,
698
+ 28: o,
699
+ 29: 49,
700
+ 30: 61,
701
+ 32: 62,
702
+ 34: s,
703
+ 36: l,
704
+ 37: u,
705
+ 38: d,
706
+ 39: f,
707
+ 40: p,
708
+ 41: m,
709
+ 43: 23,
710
+ 44: h,
711
+ 45: g,
712
+ 46: _,
713
+ 47: v,
714
+ 48: y,
715
+ 49: b,
716
+ 50: x,
717
+ 51: S,
718
+ 52: C,
719
+ 53: w,
720
+ 54: T,
721
+ 55: E,
722
+ 56: D,
723
+ 57: O,
724
+ 58: k,
725
+ 59: A,
726
+ 60: j,
727
+ 61: M,
728
+ 62: N,
729
+ 63: P,
730
+ 64: F,
731
+ 65: I,
732
+ 66: L,
733
+ 67: R,
734
+ 68: z,
735
+ 69: B,
736
+ 70: V,
737
+ 71: H,
738
+ 72: U,
739
+ 73: W,
740
+ 74: G
741
+ },
742
+ {
743
+ 13: 72,
744
+ 19: 20,
745
+ 20: 21,
746
+ 21: 22,
747
+ 22: t,
748
+ 23: n,
749
+ 24: r,
750
+ 26: a,
751
+ 28: o,
752
+ 29: 49,
753
+ 30: 61,
754
+ 32: 62,
755
+ 34: s,
756
+ 36: l,
757
+ 37: u,
758
+ 38: d,
759
+ 39: f,
760
+ 40: p,
761
+ 41: m,
762
+ 43: 23,
763
+ 44: h,
764
+ 45: g,
765
+ 46: _,
766
+ 47: v,
767
+ 48: y,
768
+ 49: b,
769
+ 50: x,
770
+ 51: S,
771
+ 52: C,
772
+ 53: w,
773
+ 54: T,
774
+ 55: E,
775
+ 56: D,
776
+ 57: O,
777
+ 58: k,
778
+ 59: A,
779
+ 60: j,
780
+ 61: M,
781
+ 62: N,
782
+ 63: P,
783
+ 64: F,
784
+ 65: I,
785
+ 66: L,
786
+ 67: R,
787
+ 68: z,
788
+ 69: B,
789
+ 70: V,
790
+ 71: H,
791
+ 72: U,
792
+ 73: W,
793
+ 74: G
794
+ },
795
+ {
796
+ 13: 73,
797
+ 19: 20,
798
+ 20: 21,
799
+ 21: 22,
800
+ 22: t,
801
+ 23: n,
802
+ 24: r,
803
+ 26: a,
804
+ 28: o,
805
+ 29: 49,
806
+ 30: 61,
807
+ 32: 62,
808
+ 34: s,
809
+ 36: l,
810
+ 37: u,
811
+ 38: d,
812
+ 39: f,
813
+ 40: p,
814
+ 41: m,
815
+ 43: 23,
816
+ 44: h,
817
+ 45: g,
818
+ 46: _,
819
+ 47: v,
820
+ 48: y,
821
+ 49: b,
822
+ 50: x,
823
+ 51: S,
824
+ 52: C,
825
+ 53: w,
826
+ 54: T,
827
+ 55: E,
828
+ 56: D,
829
+ 57: O,
830
+ 58: k,
831
+ 59: A,
832
+ 60: j,
833
+ 61: M,
834
+ 62: N,
835
+ 63: P,
836
+ 64: F,
837
+ 65: I,
838
+ 66: L,
839
+ 67: R,
840
+ 68: z,
841
+ 69: B,
842
+ 70: V,
843
+ 71: H,
844
+ 72: U,
845
+ 73: W,
846
+ 74: G
847
+ },
848
+ { 14: [1, 74] },
849
+ e(K, [2, 13], {
850
+ 43: 23,
851
+ 29: 49,
852
+ 30: 61,
853
+ 32: 62,
854
+ 20: 75,
855
+ 34: s,
856
+ 36: l,
857
+ 37: u,
858
+ 38: d,
859
+ 39: f,
860
+ 40: p,
861
+ 41: m,
862
+ 44: h,
863
+ 45: g,
864
+ 46: _,
865
+ 47: v,
866
+ 48: y,
867
+ 49: b,
868
+ 50: x,
869
+ 51: S,
870
+ 52: C,
871
+ 53: w,
872
+ 54: T,
873
+ 55: E,
874
+ 56: D,
875
+ 57: O,
876
+ 58: k,
877
+ 59: A,
878
+ 60: j,
879
+ 61: M,
880
+ 62: N,
881
+ 63: P,
882
+ 64: F,
883
+ 65: I,
884
+ 66: L,
885
+ 67: R,
886
+ 68: z,
887
+ 69: B,
888
+ 70: V,
889
+ 71: H,
890
+ 72: U,
891
+ 73: W,
892
+ 74: G
893
+ }),
894
+ e(K, [2, 14]),
895
+ e(Ie, [2, 16], { 12: [1, 76] }),
896
+ e(K, [2, 36], { 12: [1, 77] }),
897
+ e(q, [2, 19]),
898
+ e(q, [2, 20]),
899
+ { 25: [1, 78] },
900
+ { 27: [1, 79] },
901
+ e(q, [2, 23]),
902
+ {
903
+ 35: 80,
904
+ 75: 81,
905
+ 76: J,
906
+ 77: Y,
907
+ 79: X,
908
+ 80: Z
909
+ },
910
+ {
911
+ 35: 86,
912
+ 75: 81,
913
+ 76: J,
914
+ 77: Y,
915
+ 79: X,
916
+ 80: Z
917
+ },
918
+ {
919
+ 35: 87,
920
+ 75: 81,
921
+ 76: J,
922
+ 77: Y,
923
+ 79: X,
924
+ 80: Z
925
+ },
926
+ {
927
+ 35: 88,
928
+ 75: 81,
929
+ 76: J,
930
+ 77: Y,
931
+ 79: X,
932
+ 80: Z
933
+ },
934
+ {
935
+ 35: 89,
936
+ 75: 81,
937
+ 76: J,
938
+ 77: Y,
939
+ 79: X,
940
+ 80: Z
941
+ },
942
+ {
943
+ 35: 90,
944
+ 75: 81,
945
+ 76: J,
946
+ 77: Y,
947
+ 79: X,
948
+ 80: Z
949
+ },
950
+ {
951
+ 35: 91,
952
+ 75: 81,
953
+ 76: J,
954
+ 77: Y,
955
+ 79: X,
956
+ 80: Z
957
+ },
958
+ {
959
+ 35: 92,
960
+ 75: 81,
961
+ 76: J,
962
+ 77: Y,
963
+ 79: X,
964
+ 80: Z
965
+ },
966
+ {
967
+ 35: 93,
968
+ 75: 81,
969
+ 76: J,
970
+ 77: Y,
971
+ 79: X,
972
+ 80: Z
973
+ },
974
+ {
975
+ 35: 94,
976
+ 75: 81,
977
+ 76: J,
978
+ 77: Y,
979
+ 79: X,
980
+ 80: Z
981
+ },
982
+ {
983
+ 35: 95,
984
+ 75: 81,
985
+ 76: J,
986
+ 77: Y,
987
+ 79: X,
988
+ 80: Z
989
+ },
990
+ {
991
+ 35: 96,
992
+ 75: 81,
993
+ 76: J,
994
+ 77: Y,
995
+ 79: X,
996
+ 80: Z
997
+ },
998
+ {
999
+ 35: 97,
1000
+ 75: 81,
1001
+ 76: J,
1002
+ 77: Y,
1003
+ 79: X,
1004
+ 80: Z
1005
+ },
1006
+ {
1007
+ 35: 98,
1008
+ 75: 81,
1009
+ 76: J,
1010
+ 77: Y,
1011
+ 79: X,
1012
+ 80: Z
1013
+ },
1014
+ {
1015
+ 35: 99,
1016
+ 75: 81,
1017
+ 76: J,
1018
+ 77: Y,
1019
+ 79: X,
1020
+ 80: Z
1021
+ },
1022
+ {
1023
+ 35: 100,
1024
+ 75: 81,
1025
+ 76: J,
1026
+ 77: Y,
1027
+ 79: X,
1028
+ 80: Z
1029
+ },
1030
+ {
1031
+ 35: 101,
1032
+ 75: 81,
1033
+ 76: J,
1034
+ 77: Y,
1035
+ 79: X,
1036
+ 80: Z
1037
+ },
1038
+ {
1039
+ 35: 102,
1040
+ 75: 81,
1041
+ 76: J,
1042
+ 77: Y,
1043
+ 79: X,
1044
+ 80: Z
1045
+ },
1046
+ {
1047
+ 35: 103,
1048
+ 75: 81,
1049
+ 76: J,
1050
+ 77: Y,
1051
+ 79: X,
1052
+ 80: Z
1053
+ },
1054
+ {
1055
+ 35: 104,
1056
+ 75: 81,
1057
+ 76: J,
1058
+ 77: Y,
1059
+ 79: X,
1060
+ 80: Z
1061
+ },
1062
+ e(Q, [2, 59]),
1063
+ {
1064
+ 35: 105,
1065
+ 75: 81,
1066
+ 76: J,
1067
+ 77: Y,
1068
+ 79: X,
1069
+ 80: Z
1070
+ },
1071
+ {
1072
+ 35: 106,
1073
+ 75: 81,
1074
+ 76: J,
1075
+ 77: Y,
1076
+ 79: X,
1077
+ 80: Z
1078
+ },
1079
+ {
1080
+ 35: 107,
1081
+ 75: 81,
1082
+ 76: J,
1083
+ 77: Y,
1084
+ 79: X,
1085
+ 80: Z
1086
+ },
1087
+ {
1088
+ 35: 108,
1089
+ 75: 81,
1090
+ 76: J,
1091
+ 77: Y,
1092
+ 79: X,
1093
+ 80: Z
1094
+ },
1095
+ {
1096
+ 35: 109,
1097
+ 75: 81,
1098
+ 76: J,
1099
+ 77: Y,
1100
+ 79: X,
1101
+ 80: Z
1102
+ },
1103
+ {
1104
+ 35: 110,
1105
+ 75: 81,
1106
+ 76: J,
1107
+ 77: Y,
1108
+ 79: X,
1109
+ 80: Z
1110
+ },
1111
+ {
1112
+ 35: 111,
1113
+ 75: 81,
1114
+ 76: J,
1115
+ 77: Y,
1116
+ 79: X,
1117
+ 80: Z
1118
+ },
1119
+ {
1120
+ 35: 112,
1121
+ 75: 81,
1122
+ 76: J,
1123
+ 77: Y,
1124
+ 79: X,
1125
+ 80: Z
1126
+ },
1127
+ {
1128
+ 35: 113,
1129
+ 75: 81,
1130
+ 76: J,
1131
+ 77: Y,
1132
+ 79: X,
1133
+ 80: Z
1134
+ },
1135
+ {
1136
+ 35: 114,
1137
+ 75: 81,
1138
+ 76: J,
1139
+ 77: Y,
1140
+ 79: X,
1141
+ 80: Z
1142
+ },
1143
+ {
1144
+ 35: 115,
1145
+ 75: 81,
1146
+ 76: J,
1147
+ 77: Y,
1148
+ 79: X,
1149
+ 80: Z
1150
+ },
1151
+ {
1152
+ 20: 116,
1153
+ 29: 49,
1154
+ 30: 61,
1155
+ 32: 62,
1156
+ 34: s,
1157
+ 36: l,
1158
+ 37: u,
1159
+ 38: d,
1160
+ 39: f,
1161
+ 40: p,
1162
+ 41: m,
1163
+ 43: 23,
1164
+ 44: h,
1165
+ 45: g,
1166
+ 46: _,
1167
+ 47: v,
1168
+ 48: y,
1169
+ 49: b,
1170
+ 50: x,
1171
+ 51: S,
1172
+ 52: C,
1173
+ 53: w,
1174
+ 54: T,
1175
+ 55: E,
1176
+ 56: D,
1177
+ 57: O,
1178
+ 58: k,
1179
+ 59: A,
1180
+ 60: j,
1181
+ 61: M,
1182
+ 62: N,
1183
+ 63: P,
1184
+ 64: F,
1185
+ 65: I,
1186
+ 66: L,
1187
+ 67: R,
1188
+ 68: z,
1189
+ 69: B,
1190
+ 70: V,
1191
+ 71: H,
1192
+ 72: U,
1193
+ 73: W,
1194
+ 74: G
1195
+ },
1196
+ {
1197
+ 12: [1, 118],
1198
+ 33: [1, 117]
1199
+ },
1200
+ {
1201
+ 35: 119,
1202
+ 75: 81,
1203
+ 76: J,
1204
+ 77: Y,
1205
+ 79: X,
1206
+ 80: Z
1207
+ },
1208
+ {
1209
+ 35: 120,
1210
+ 75: 81,
1211
+ 76: J,
1212
+ 77: Y,
1213
+ 79: X,
1214
+ 80: Z
1215
+ },
1216
+ {
1217
+ 35: 121,
1218
+ 75: 81,
1219
+ 76: J,
1220
+ 77: Y,
1221
+ 79: X,
1222
+ 80: Z
1223
+ },
1224
+ {
1225
+ 35: 122,
1226
+ 75: 81,
1227
+ 76: J,
1228
+ 77: Y,
1229
+ 79: X,
1230
+ 80: Z
1231
+ },
1232
+ {
1233
+ 35: 123,
1234
+ 75: 81,
1235
+ 76: J,
1236
+ 77: Y,
1237
+ 79: X,
1238
+ 80: Z
1239
+ },
1240
+ {
1241
+ 35: 124,
1242
+ 75: 81,
1243
+ 76: J,
1244
+ 77: Y,
1245
+ 79: X,
1246
+ 80: Z
1247
+ },
1248
+ {
1249
+ 35: 125,
1250
+ 75: 81,
1251
+ 76: J,
1252
+ 77: Y,
1253
+ 79: X,
1254
+ 80: Z
1255
+ },
1256
+ { 14: [1, 126] },
1257
+ { 14: [1, 127] },
1258
+ { 14: [1, 128] },
1259
+ { 14: [1, 129] },
1260
+ { 1: [2, 8] },
1261
+ e(K, [2, 15]),
1262
+ e(Ie, [2, 17], {
1263
+ 21: 22,
1264
+ 19: 130,
1265
+ 22: t,
1266
+ 23: n,
1267
+ 24: r,
1268
+ 26: a,
1269
+ 28: o
1270
+ }),
1271
+ e(K, [2, 37], {
1272
+ 19: 20,
1273
+ 20: 21,
1274
+ 21: 22,
1275
+ 43: 23,
1276
+ 29: 49,
1277
+ 30: 61,
1278
+ 32: 62,
1279
+ 13: 131,
1280
+ 22: t,
1281
+ 23: n,
1282
+ 24: r,
1283
+ 26: a,
1284
+ 28: o,
1285
+ 34: s,
1286
+ 36: l,
1287
+ 37: u,
1288
+ 38: d,
1289
+ 39: f,
1290
+ 40: p,
1291
+ 41: m,
1292
+ 44: h,
1293
+ 45: g,
1294
+ 46: _,
1295
+ 47: v,
1296
+ 48: y,
1297
+ 49: b,
1298
+ 50: x,
1299
+ 51: S,
1300
+ 52: C,
1301
+ 53: w,
1302
+ 54: T,
1303
+ 55: E,
1304
+ 56: D,
1305
+ 57: O,
1306
+ 58: k,
1307
+ 59: A,
1308
+ 60: j,
1309
+ 61: M,
1310
+ 62: N,
1311
+ 63: P,
1312
+ 64: F,
1313
+ 65: I,
1314
+ 66: L,
1315
+ 67: R,
1316
+ 68: z,
1317
+ 69: B,
1318
+ 70: V,
1319
+ 71: H,
1320
+ 72: U,
1321
+ 73: W,
1322
+ 74: G
1323
+ }),
1324
+ e(q, [2, 21]),
1325
+ e(q, [2, 22]),
1326
+ e(Q, [2, 39]),
1327
+ e(Le, [2, 71], {
1328
+ 75: 81,
1329
+ 35: 132,
1330
+ 76: J,
1331
+ 77: Y,
1332
+ 79: X,
1333
+ 80: Z
1334
+ }),
1335
+ e(Re, [2, 73]),
1336
+ { 78: [1, 133] },
1337
+ e(Re, [2, 75]),
1338
+ e(Re, [2, 76]),
1339
+ e(Q, [2, 40]),
1340
+ e(Q, [2, 41]),
1341
+ e(Q, [2, 42]),
1342
+ e(Q, [2, 43]),
1343
+ e(Q, [2, 44]),
1344
+ e(Q, [2, 45]),
1345
+ e(Q, [2, 46]),
1346
+ e(Q, [2, 47]),
1347
+ e(Q, [2, 48]),
1348
+ e(Q, [2, 49]),
1349
+ e(Q, [2, 50]),
1350
+ e(Q, [2, 51]),
1351
+ e(Q, [2, 52]),
1352
+ e(Q, [2, 53]),
1353
+ e(Q, [2, 54]),
1354
+ e(Q, [2, 55]),
1355
+ e(Q, [2, 56]),
1356
+ e(Q, [2, 57]),
1357
+ e(Q, [2, 58]),
1358
+ e(Q, [2, 60]),
1359
+ e(Q, [2, 61]),
1360
+ e(Q, [2, 62]),
1361
+ e(Q, [2, 63]),
1362
+ e(Q, [2, 64]),
1363
+ e(Q, [2, 65]),
1364
+ e(Q, [2, 66]),
1365
+ e(Q, [2, 67]),
1366
+ e(Q, [2, 68]),
1367
+ e(Q, [2, 69]),
1368
+ e(Q, [2, 70]),
1369
+ {
1370
+ 31: 134,
1371
+ 42: [1, 135]
1372
+ },
1373
+ { 12: [1, 136] },
1374
+ { 33: [1, 137] },
1375
+ e($, [2, 28]),
1376
+ e($, [2, 29]),
1377
+ e($, [2, 30]),
1378
+ e($, [2, 31]),
1379
+ e($, [2, 32]),
1380
+ e($, [2, 33]),
1381
+ e($, [2, 34]),
1382
+ { 1: [2, 9] },
1383
+ { 1: [2, 10] },
1384
+ { 1: [2, 11] },
1385
+ { 1: [2, 12] },
1386
+ e(Ie, [2, 18]),
1387
+ e(K, [2, 38]),
1388
+ e(Le, [2, 72]),
1389
+ e(Re, [2, 74]),
1390
+ e(Q, [2, 24]),
1391
+ e(Q, [2, 35]),
1392
+ e(ze, [2, 25]),
1393
+ e(ze, [2, 26], { 12: [1, 138] }),
1394
+ e(ze, [2, 27])
1395
+ ],
1396
+ defaultActions: {
1397
+ 2: [2, 1],
1398
+ 3: [2, 2],
1399
+ 4: [2, 7],
1400
+ 5: [2, 3],
1401
+ 6: [2, 4],
1402
+ 7: [2, 5],
1403
+ 8: [2, 6],
1404
+ 74: [2, 8],
1405
+ 126: [2, 9],
1406
+ 127: [2, 10],
1407
+ 128: [2, 11],
1408
+ 129: [2, 12]
1409
+ },
1410
+ parseError: /* @__PURE__ */ __name(function(e, t) {
1411
+ if (t.recoverable) this.trace(e);
1412
+ else {
1413
+ var n = Error(e);
1414
+ throw n.hash = t, n;
1415
+ }
1416
+ }, "parseError"),
1417
+ parse: /* @__PURE__ */ __name(function(e) {
1418
+ var t = this, n = [0], r = [], a = [null], o = [], s = this.table, l = "", u = 0, d = 0, f = 0, p = 2, m = 1, h = o.slice.call(arguments, 1), g = Object.create(this.lexer), _ = { yy: {} };
1419
+ for (var v in this.yy) Object.prototype.hasOwnProperty.call(this.yy, v) && (_.yy[v] = this.yy[v]);
1420
+ g.setInput(e, _.yy), _.yy.lexer = g, _.yy.parser = this, g.yylloc === void 0 && (g.yylloc = {});
1421
+ var y = g.yylloc;
1422
+ o.push(y);
1423
+ var b = g.options && g.options.ranges;
1424
+ typeof _.yy.parseError == "function" ? this.parseError = _.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1425
+ function x(e) {
1426
+ n.length -= 2 * e, a.length -= e, o.length -= e;
1427
+ }
1428
+ __name(x, "popStack");
1429
+ function S() {
1430
+ var e = r.pop() || g.lex() || m;
1431
+ return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
1432
+ }
1433
+ __name(S, "lex");
1434
+ for (var C, w, T, E, D, O = {}, k, A, j, M;;) {
1435
+ if (T = n[n.length - 1], this.defaultActions[T] ? E = this.defaultActions[T] : (C ??= S(), E = s[T] && s[T][C]), E === void 0 || !E.length || !E[0]) {
1436
+ var N = "";
1437
+ for (k in M = [], s[T]) this.terminals_[k] && k > p && M.push("'" + this.terminals_[k] + "'");
1438
+ N = g.showPosition ? "Parse error on line " + (u + 1) + ":\n" + g.showPosition() + "\nExpecting " + M.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : "Parse error on line " + (u + 1) + ": Unexpected " + (C == m ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(N, {
1439
+ text: g.match,
1440
+ token: this.terminals_[C] || C,
1441
+ line: g.yylineno,
1442
+ loc: y,
1443
+ expected: M
1444
+ });
1445
+ }
1446
+ if (E[0] instanceof Array && E.length > 1) throw Error("Parse Error: multiple actions possible at state: " + T + ", token: " + C);
1447
+ switch (E[0]) {
1448
+ case 1:
1449
+ n.push(C), a.push(g.yytext), o.push(g.yylloc), n.push(E[1]), C = null, w ? (C = w, w = null) : (d = g.yyleng, l = g.yytext, u = g.yylineno, y = g.yylloc, f > 0 && f--);
1450
+ break;
1451
+ case 2:
1452
+ if (A = this.productions_[E[1]][1], O.$ = a[a.length - A], O._$ = {
1453
+ first_line: o[o.length - (A || 1)].first_line,
1454
+ last_line: o[o.length - 1].last_line,
1455
+ first_column: o[o.length - (A || 1)].first_column,
1456
+ last_column: o[o.length - 1].last_column
1457
+ }, b && (O._$.range = [o[o.length - (A || 1)].range[0], o[o.length - 1].range[1]]), D = this.performAction.apply(O, [
1458
+ l,
1459
+ d,
1460
+ u,
1461
+ _.yy,
1462
+ E[1],
1463
+ a,
1464
+ o
1465
+ ].concat(h)), D !== void 0) return D;
1466
+ A && (n = n.slice(0, -1 * A * 2), a = a.slice(0, -1 * A), o = o.slice(0, -1 * A)), n.push(this.productions_[E[1]][0]), a.push(O.$), o.push(O._$), j = s[n[n.length - 2]][n[n.length - 1]], n.push(j);
1467
+ break;
1468
+ case 3: return !0;
1469
+ }
1470
+ }
1471
+ return !0;
1472
+ }, "parse")
1473
+ };
1474
+ Be.lexer = /* @__PURE__ */ (function() {
1475
+ return {
1476
+ EOF: 1,
1477
+ parseError: /* @__PURE__ */ __name(function(e, t) {
1478
+ if (this.yy.parser) this.yy.parser.parseError(e, t);
1479
+ else throw Error(e);
1480
+ }, "parseError"),
1481
+ setInput: /* @__PURE__ */ __name(function(e, t) {
1482
+ return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1483
+ first_line: 1,
1484
+ first_column: 0,
1485
+ last_line: 1,
1486
+ last_column: 0
1487
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1488
+ }, "setInput"),
1489
+ input: /* @__PURE__ */ __name(function() {
1490
+ var e = this._input[0];
1491
+ return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1492
+ }, "input"),
1493
+ unput: /* @__PURE__ */ __name(function(e) {
1494
+ var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1495
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1496
+ var r = this.match.split(/(?:\r\n?|\n)/g);
1497
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
1498
+ var i = this.yylloc.range;
1499
+ return this.yylloc = {
1500
+ first_line: this.yylloc.first_line,
1501
+ last_line: this.yylineno + 1,
1502
+ first_column: this.yylloc.first_column,
1503
+ last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1504
+ }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1505
+ }, "unput"),
1506
+ more: /* @__PURE__ */ __name(function() {
1507
+ return this._more = !0, this;
1508
+ }, "more"),
1509
+ reject: /* @__PURE__ */ __name(function() {
1510
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1511
+ 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).\n" + this.showPosition(), {
1512
+ text: "",
1513
+ token: null,
1514
+ line: this.yylineno
1515
+ });
1516
+ return this;
1517
+ }, "reject"),
1518
+ less: /* @__PURE__ */ __name(function(e) {
1519
+ this.unput(this.match.slice(e));
1520
+ }, "less"),
1521
+ pastInput: /* @__PURE__ */ __name(function() {
1522
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
1523
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1524
+ }, "pastInput"),
1525
+ upcomingInput: /* @__PURE__ */ __name(function() {
1526
+ var e = this.match;
1527
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1528
+ }, "upcomingInput"),
1529
+ showPosition: /* @__PURE__ */ __name(function() {
1530
+ var e = this.pastInput(), t = Array(e.length + 1).join("-");
1531
+ return e + this.upcomingInput() + "\n" + t + "^";
1532
+ }, "showPosition"),
1533
+ test_match: /* @__PURE__ */ __name(function(e, t) {
1534
+ var n, r, i;
1535
+ if (this.options.backtrack_lexer && (i = {
1536
+ yylineno: this.yylineno,
1537
+ yylloc: {
1538
+ first_line: this.yylloc.first_line,
1539
+ last_line: this.last_line,
1540
+ first_column: this.yylloc.first_column,
1541
+ last_column: this.yylloc.last_column
1542
+ },
1543
+ yytext: this.yytext,
1544
+ match: this.match,
1545
+ matches: this.matches,
1546
+ matched: this.matched,
1547
+ yyleng: this.yyleng,
1548
+ offset: this.offset,
1549
+ _more: this._more,
1550
+ _input: this._input,
1551
+ yy: this.yy,
1552
+ conditionStack: this.conditionStack.slice(0),
1553
+ done: this.done
1554
+ }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
1555
+ first_line: this.yylloc.last_line,
1556
+ last_line: this.yylineno + 1,
1557
+ first_column: this.yylloc.last_column,
1558
+ last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1559
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
1560
+ if (this._backtrack) {
1561
+ for (var a in i) this[a] = i[a];
1562
+ return !1;
1563
+ }
1564
+ return !1;
1565
+ }, "test_match"),
1566
+ next: /* @__PURE__ */ __name(function() {
1567
+ if (this.done) return this.EOF;
1568
+ this._input || (this.done = !0);
1569
+ var e, t, n, r;
1570
+ this._more || (this.yytext = "", this.match = "");
1571
+ for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
1572
+ if (t = n, r = a, this.options.backtrack_lexer) {
1573
+ if (e = this.test_match(n, i[a]), e !== !1) return e;
1574
+ if (this._backtrack) {
1575
+ t = !1;
1576
+ continue;
1577
+ } else return !1;
1578
+ } else if (!this.options.flex) break;
1579
+ }
1580
+ return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1581
+ text: "",
1582
+ token: null,
1583
+ line: this.yylineno
1584
+ });
1585
+ }, "next"),
1586
+ lex: /* @__PURE__ */ __name(function() {
1587
+ return this.next() || this.lex();
1588
+ }, "lex"),
1589
+ begin: /* @__PURE__ */ __name(function(e) {
1590
+ this.conditionStack.push(e);
1591
+ }, "begin"),
1592
+ popState: /* @__PURE__ */ __name(function() {
1593
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1594
+ }, "popState"),
1595
+ _currentRules: /* @__PURE__ */ __name(function() {
1596
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1597
+ }, "_currentRules"),
1598
+ topState: /* @__PURE__ */ __name(function(e) {
1599
+ return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1600
+ }, "topState"),
1601
+ pushState: /* @__PURE__ */ __name(function(e) {
1602
+ this.begin(e);
1603
+ }, "pushState"),
1604
+ stateStackSize: /* @__PURE__ */ __name(function() {
1605
+ return this.conditionStack.length;
1606
+ }, "stateStackSize"),
1607
+ options: {},
1608
+ performAction: /* @__PURE__ */ __name(function(e, t, n, r) {
1609
+ switch (n) {
1610
+ case 0: return 6;
1611
+ case 1: return 7;
1612
+ case 2: return 8;
1613
+ case 3: return 9;
1614
+ case 4: return 22;
1615
+ case 5: return 23;
1616
+ case 6: return this.begin("acc_title"), 24;
1617
+ case 7: return this.popState(), "acc_title_value";
1618
+ case 8: return this.begin("acc_descr"), 26;
1619
+ case 9: return this.popState(), "acc_descr_value";
1620
+ case 10:
1621
+ this.begin("acc_descr_multiline");
1622
+ break;
1623
+ case 11:
1624
+ this.popState();
1625
+ break;
1626
+ case 12: return "acc_descr_multiline_value";
1627
+ case 13: break;
1628
+ case 14:
1629
+ c;
1630
+ break;
1631
+ case 15: return 12;
1632
+ case 16: break;
1633
+ case 17: return 11;
1634
+ case 18: return 15;
1635
+ case 19: return 16;
1636
+ case 20: return 17;
1637
+ case 21: return 18;
1638
+ case 22: return this.begin("person_ext"), 45;
1639
+ case 23: return this.begin("person"), 44;
1640
+ case 24: return this.begin("system_ext_queue"), 51;
1641
+ case 25: return this.begin("system_ext_db"), 50;
1642
+ case 26: return this.begin("system_ext"), 49;
1643
+ case 27: return this.begin("system_queue"), 48;
1644
+ case 28: return this.begin("system_db"), 47;
1645
+ case 29: return this.begin("system"), 46;
1646
+ case 30: return this.begin("boundary"), 37;
1647
+ case 31: return this.begin("enterprise_boundary"), 34;
1648
+ case 32: return this.begin("system_boundary"), 36;
1649
+ case 33: return this.begin("container_ext_queue"), 57;
1650
+ case 34: return this.begin("container_ext_db"), 56;
1651
+ case 35: return this.begin("container_ext"), 55;
1652
+ case 36: return this.begin("container_queue"), 54;
1653
+ case 37: return this.begin("container_db"), 53;
1654
+ case 38: return this.begin("container"), 52;
1655
+ case 39: return this.begin("container_boundary"), 38;
1656
+ case 40: return this.begin("component_ext_queue"), 63;
1657
+ case 41: return this.begin("component_ext_db"), 62;
1658
+ case 42: return this.begin("component_ext"), 61;
1659
+ case 43: return this.begin("component_queue"), 60;
1660
+ case 44: return this.begin("component_db"), 59;
1661
+ case 45: return this.begin("component"), 58;
1662
+ case 46: return this.begin("node"), 39;
1663
+ case 47: return this.begin("node"), 39;
1664
+ case 48: return this.begin("node_l"), 40;
1665
+ case 49: return this.begin("node_r"), 41;
1666
+ case 50: return this.begin("rel"), 64;
1667
+ case 51: return this.begin("birel"), 65;
1668
+ case 52: return this.begin("rel_u"), 66;
1669
+ case 53: return this.begin("rel_u"), 66;
1670
+ case 54: return this.begin("rel_d"), 67;
1671
+ case 55: return this.begin("rel_d"), 67;
1672
+ case 56: return this.begin("rel_l"), 68;
1673
+ case 57: return this.begin("rel_l"), 68;
1674
+ case 58: return this.begin("rel_r"), 69;
1675
+ case 59: return this.begin("rel_r"), 69;
1676
+ case 60: return this.begin("rel_b"), 70;
1677
+ case 61: return this.begin("rel_index"), 71;
1678
+ case 62: return this.begin("update_el_style"), 72;
1679
+ case 63: return this.begin("update_rel_style"), 73;
1680
+ case 64: return this.begin("update_layout_config"), 74;
1681
+ case 65: return "EOF_IN_STRUCT";
1682
+ case 66: return this.begin("attribute"), "ATTRIBUTE_EMPTY";
1683
+ case 67:
1684
+ this.begin("attribute");
1685
+ break;
1686
+ case 68:
1687
+ this.popState(), this.popState();
1688
+ break;
1689
+ case 69: return 80;
1690
+ case 70: break;
1691
+ case 71: return 80;
1692
+ case 72:
1693
+ this.begin("string");
1694
+ break;
1695
+ case 73:
1696
+ this.popState();
1697
+ break;
1698
+ case 74: return "STR";
1699
+ case 75:
1700
+ this.begin("string_kv");
1701
+ break;
1702
+ case 76: return this.begin("string_kv_key"), "STR_KEY";
1703
+ case 77:
1704
+ this.popState(), this.begin("string_kv_value");
1705
+ break;
1706
+ case 78: return "STR_VALUE";
1707
+ case 79:
1708
+ this.popState(), this.popState();
1709
+ break;
1710
+ case 80: return "STR";
1711
+ case 81: return "LBRACE";
1712
+ case 82: return "RBRACE";
1713
+ case 83: return "SPACE";
1714
+ case 84: return "EOL";
1715
+ case 85: return 14;
1716
+ }
1717
+ }, "anonymous"),
1718
+ rules: [
1719
+ /^(?:.*direction\s+TB[^\n]*)/,
1720
+ /^(?:.*direction\s+BT[^\n]*)/,
1721
+ /^(?:.*direction\s+RL[^\n]*)/,
1722
+ /^(?:.*direction\s+LR[^\n]*)/,
1723
+ /^(?:title\s[^#\n;]+)/,
1724
+ /^(?:accDescription\s[^#\n;]+)/,
1725
+ /^(?:accTitle\s*:\s*)/,
1726
+ /^(?:(?!\n||)*[^\n]*)/,
1727
+ /^(?:accDescr\s*:\s*)/,
1728
+ /^(?:(?!\n||)*[^\n]*)/,
1729
+ /^(?:accDescr\s*\{\s*)/,
1730
+ /^(?:[\}])/,
1731
+ /^(?:[^\}]*)/,
1732
+ /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,
1733
+ /^(?:%%[^\n]*(\r?\n)*)/,
1734
+ /^(?:\s*(\r?\n)+)/,
1735
+ /^(?:\s+)/,
1736
+ /^(?:C4Context\b)/,
1737
+ /^(?:C4Container\b)/,
1738
+ /^(?:C4Component\b)/,
1739
+ /^(?:C4Dynamic\b)/,
1740
+ /^(?:C4Deployment\b)/,
1741
+ /^(?:Person_Ext\b)/,
1742
+ /^(?:Person\b)/,
1743
+ /^(?:SystemQueue_Ext\b)/,
1744
+ /^(?:SystemDb_Ext\b)/,
1745
+ /^(?:System_Ext\b)/,
1746
+ /^(?:SystemQueue\b)/,
1747
+ /^(?:SystemDb\b)/,
1748
+ /^(?:System\b)/,
1749
+ /^(?:Boundary\b)/,
1750
+ /^(?:Enterprise_Boundary\b)/,
1751
+ /^(?:System_Boundary\b)/,
1752
+ /^(?:ContainerQueue_Ext\b)/,
1753
+ /^(?:ContainerDb_Ext\b)/,
1754
+ /^(?:Container_Ext\b)/,
1755
+ /^(?:ContainerQueue\b)/,
1756
+ /^(?:ContainerDb\b)/,
1757
+ /^(?:Container\b)/,
1758
+ /^(?:Container_Boundary\b)/,
1759
+ /^(?:ComponentQueue_Ext\b)/,
1760
+ /^(?:ComponentDb_Ext\b)/,
1761
+ /^(?:Component_Ext\b)/,
1762
+ /^(?:ComponentQueue\b)/,
1763
+ /^(?:ComponentDb\b)/,
1764
+ /^(?:Component\b)/,
1765
+ /^(?:Deployment_Node\b)/,
1766
+ /^(?:Node\b)/,
1767
+ /^(?:Node_L\b)/,
1768
+ /^(?:Node_R\b)/,
1769
+ /^(?:Rel\b)/,
1770
+ /^(?:BiRel\b)/,
1771
+ /^(?:Rel_Up\b)/,
1772
+ /^(?:Rel_U\b)/,
1773
+ /^(?:Rel_Down\b)/,
1774
+ /^(?:Rel_D\b)/,
1775
+ /^(?:Rel_Left\b)/,
1776
+ /^(?:Rel_L\b)/,
1777
+ /^(?:Rel_Right\b)/,
1778
+ /^(?:Rel_R\b)/,
1779
+ /^(?:Rel_Back\b)/,
1780
+ /^(?:RelIndex\b)/,
1781
+ /^(?:UpdateElementStyle\b)/,
1782
+ /^(?:UpdateRelStyle\b)/,
1783
+ /^(?:UpdateLayoutConfig\b)/,
1784
+ /^(?:$)/,
1785
+ /^(?:[(][ ]*[,])/,
1786
+ /^(?:[(])/,
1787
+ /^(?:[)])/,
1788
+ /^(?:,,)/,
1789
+ /^(?:,)/,
1790
+ /^(?:[ ]*["]["])/,
1791
+ /^(?:[ ]*["])/,
1792
+ /^(?:["])/,
1793
+ /^(?:[^"]*)/,
1794
+ /^(?:[ ]*[\$])/,
1795
+ /^(?:[^=]*)/,
1796
+ /^(?:[=][ ]*["])/,
1797
+ /^(?:[^"]+)/,
1798
+ /^(?:["])/,
1799
+ /^(?:[^,]+)/,
1800
+ /^(?:\{)/,
1801
+ /^(?:\})/,
1802
+ /^(?:[\s]+)/,
1803
+ /^(?:[\n\r]+)/,
1804
+ /^(?:$)/
1805
+ ],
1806
+ conditions: {
1807
+ acc_descr_multiline: {
1808
+ rules: [11, 12],
1809
+ inclusive: !1
1810
+ },
1811
+ acc_descr: {
1812
+ rules: [9],
1813
+ inclusive: !1
1814
+ },
1815
+ acc_title: {
1816
+ rules: [7],
1817
+ inclusive: !1
1818
+ },
1819
+ string_kv_value: {
1820
+ rules: [78, 79],
1821
+ inclusive: !1
1822
+ },
1823
+ string_kv_key: {
1824
+ rules: [77],
1825
+ inclusive: !1
1826
+ },
1827
+ string_kv: {
1828
+ rules: [76],
1829
+ inclusive: !1
1830
+ },
1831
+ string: {
1832
+ rules: [73, 74],
1833
+ inclusive: !1
1834
+ },
1835
+ attribute: {
1836
+ rules: [
1837
+ 68,
1838
+ 69,
1839
+ 70,
1840
+ 71,
1841
+ 72,
1842
+ 75,
1843
+ 80
1844
+ ],
1845
+ inclusive: !1
1846
+ },
1847
+ update_layout_config: {
1848
+ rules: [
1849
+ 65,
1850
+ 66,
1851
+ 67,
1852
+ 68
1853
+ ],
1854
+ inclusive: !1
1855
+ },
1856
+ update_rel_style: {
1857
+ rules: [
1858
+ 65,
1859
+ 66,
1860
+ 67,
1861
+ 68
1862
+ ],
1863
+ inclusive: !1
1864
+ },
1865
+ update_el_style: {
1866
+ rules: [
1867
+ 65,
1868
+ 66,
1869
+ 67,
1870
+ 68
1871
+ ],
1872
+ inclusive: !1
1873
+ },
1874
+ rel_b: {
1875
+ rules: [
1876
+ 65,
1877
+ 66,
1878
+ 67,
1879
+ 68
1880
+ ],
1881
+ inclusive: !1
1882
+ },
1883
+ rel_r: {
1884
+ rules: [
1885
+ 65,
1886
+ 66,
1887
+ 67,
1888
+ 68
1889
+ ],
1890
+ inclusive: !1
1891
+ },
1892
+ rel_l: {
1893
+ rules: [
1894
+ 65,
1895
+ 66,
1896
+ 67,
1897
+ 68
1898
+ ],
1899
+ inclusive: !1
1900
+ },
1901
+ rel_d: {
1902
+ rules: [
1903
+ 65,
1904
+ 66,
1905
+ 67,
1906
+ 68
1907
+ ],
1908
+ inclusive: !1
1909
+ },
1910
+ rel_u: {
1911
+ rules: [
1912
+ 65,
1913
+ 66,
1914
+ 67,
1915
+ 68
1916
+ ],
1917
+ inclusive: !1
1918
+ },
1919
+ rel_bi: {
1920
+ rules: [],
1921
+ inclusive: !1
1922
+ },
1923
+ rel: {
1924
+ rules: [
1925
+ 65,
1926
+ 66,
1927
+ 67,
1928
+ 68
1929
+ ],
1930
+ inclusive: !1
1931
+ },
1932
+ node_r: {
1933
+ rules: [
1934
+ 65,
1935
+ 66,
1936
+ 67,
1937
+ 68
1938
+ ],
1939
+ inclusive: !1
1940
+ },
1941
+ node_l: {
1942
+ rules: [
1943
+ 65,
1944
+ 66,
1945
+ 67,
1946
+ 68
1947
+ ],
1948
+ inclusive: !1
1949
+ },
1950
+ node: {
1951
+ rules: [
1952
+ 65,
1953
+ 66,
1954
+ 67,
1955
+ 68
1956
+ ],
1957
+ inclusive: !1
1958
+ },
1959
+ index: {
1960
+ rules: [],
1961
+ inclusive: !1
1962
+ },
1963
+ rel_index: {
1964
+ rules: [
1965
+ 65,
1966
+ 66,
1967
+ 67,
1968
+ 68
1969
+ ],
1970
+ inclusive: !1
1971
+ },
1972
+ component_ext_queue: {
1973
+ rules: [],
1974
+ inclusive: !1
1975
+ },
1976
+ component_ext_db: {
1977
+ rules: [
1978
+ 65,
1979
+ 66,
1980
+ 67,
1981
+ 68
1982
+ ],
1983
+ inclusive: !1
1984
+ },
1985
+ component_ext: {
1986
+ rules: [
1987
+ 65,
1988
+ 66,
1989
+ 67,
1990
+ 68
1991
+ ],
1992
+ inclusive: !1
1993
+ },
1994
+ component_queue: {
1995
+ rules: [
1996
+ 65,
1997
+ 66,
1998
+ 67,
1999
+ 68
2000
+ ],
2001
+ inclusive: !1
2002
+ },
2003
+ component_db: {
2004
+ rules: [
2005
+ 65,
2006
+ 66,
2007
+ 67,
2008
+ 68
2009
+ ],
2010
+ inclusive: !1
2011
+ },
2012
+ component: {
2013
+ rules: [
2014
+ 65,
2015
+ 66,
2016
+ 67,
2017
+ 68
2018
+ ],
2019
+ inclusive: !1
2020
+ },
2021
+ container_boundary: {
2022
+ rules: [
2023
+ 65,
2024
+ 66,
2025
+ 67,
2026
+ 68
2027
+ ],
2028
+ inclusive: !1
2029
+ },
2030
+ container_ext_queue: {
2031
+ rules: [
2032
+ 65,
2033
+ 66,
2034
+ 67,
2035
+ 68
2036
+ ],
2037
+ inclusive: !1
2038
+ },
2039
+ container_ext_db: {
2040
+ rules: [
2041
+ 65,
2042
+ 66,
2043
+ 67,
2044
+ 68
2045
+ ],
2046
+ inclusive: !1
2047
+ },
2048
+ container_ext: {
2049
+ rules: [
2050
+ 65,
2051
+ 66,
2052
+ 67,
2053
+ 68
2054
+ ],
2055
+ inclusive: !1
2056
+ },
2057
+ container_queue: {
2058
+ rules: [
2059
+ 65,
2060
+ 66,
2061
+ 67,
2062
+ 68
2063
+ ],
2064
+ inclusive: !1
2065
+ },
2066
+ container_db: {
2067
+ rules: [
2068
+ 65,
2069
+ 66,
2070
+ 67,
2071
+ 68
2072
+ ],
2073
+ inclusive: !1
2074
+ },
2075
+ container: {
2076
+ rules: [
2077
+ 65,
2078
+ 66,
2079
+ 67,
2080
+ 68
2081
+ ],
2082
+ inclusive: !1
2083
+ },
2084
+ birel: {
2085
+ rules: [
2086
+ 65,
2087
+ 66,
2088
+ 67,
2089
+ 68
2090
+ ],
2091
+ inclusive: !1
2092
+ },
2093
+ system_boundary: {
2094
+ rules: [
2095
+ 65,
2096
+ 66,
2097
+ 67,
2098
+ 68
2099
+ ],
2100
+ inclusive: !1
2101
+ },
2102
+ enterprise_boundary: {
2103
+ rules: [
2104
+ 65,
2105
+ 66,
2106
+ 67,
2107
+ 68
2108
+ ],
2109
+ inclusive: !1
2110
+ },
2111
+ boundary: {
2112
+ rules: [
2113
+ 65,
2114
+ 66,
2115
+ 67,
2116
+ 68
2117
+ ],
2118
+ inclusive: !1
2119
+ },
2120
+ system_ext_queue: {
2121
+ rules: [
2122
+ 65,
2123
+ 66,
2124
+ 67,
2125
+ 68
2126
+ ],
2127
+ inclusive: !1
2128
+ },
2129
+ system_ext_db: {
2130
+ rules: [
2131
+ 65,
2132
+ 66,
2133
+ 67,
2134
+ 68
2135
+ ],
2136
+ inclusive: !1
2137
+ },
2138
+ system_ext: {
2139
+ rules: [
2140
+ 65,
2141
+ 66,
2142
+ 67,
2143
+ 68
2144
+ ],
2145
+ inclusive: !1
2146
+ },
2147
+ system_queue: {
2148
+ rules: [
2149
+ 65,
2150
+ 66,
2151
+ 67,
2152
+ 68
2153
+ ],
2154
+ inclusive: !1
2155
+ },
2156
+ system_db: {
2157
+ rules: [
2158
+ 65,
2159
+ 66,
2160
+ 67,
2161
+ 68
2162
+ ],
2163
+ inclusive: !1
2164
+ },
2165
+ system: {
2166
+ rules: [
2167
+ 65,
2168
+ 66,
2169
+ 67,
2170
+ 68
2171
+ ],
2172
+ inclusive: !1
2173
+ },
2174
+ person_ext: {
2175
+ rules: [
2176
+ 65,
2177
+ 66,
2178
+ 67,
2179
+ 68
2180
+ ],
2181
+ inclusive: !1
2182
+ },
2183
+ person: {
2184
+ rules: [
2185
+ 65,
2186
+ 66,
2187
+ 67,
2188
+ 68
2189
+ ],
2190
+ inclusive: !1
2191
+ },
2192
+ INITIAL: {
2193
+ rules: [
2194
+ 0,
2195
+ 1,
2196
+ 2,
2197
+ 3,
2198
+ 4,
2199
+ 5,
2200
+ 6,
2201
+ 8,
2202
+ 10,
2203
+ 13,
2204
+ 14,
2205
+ 15,
2206
+ 16,
2207
+ 17,
2208
+ 18,
2209
+ 19,
2210
+ 20,
2211
+ 21,
2212
+ 22,
2213
+ 23,
2214
+ 24,
2215
+ 25,
2216
+ 26,
2217
+ 27,
2218
+ 28,
2219
+ 29,
2220
+ 30,
2221
+ 31,
2222
+ 32,
2223
+ 33,
2224
+ 34,
2225
+ 35,
2226
+ 36,
2227
+ 37,
2228
+ 38,
2229
+ 39,
2230
+ 40,
2231
+ 41,
2232
+ 42,
2233
+ 43,
2234
+ 44,
2235
+ 45,
2236
+ 46,
2237
+ 47,
2238
+ 48,
2239
+ 49,
2240
+ 50,
2241
+ 51,
2242
+ 52,
2243
+ 53,
2244
+ 54,
2245
+ 55,
2246
+ 56,
2247
+ 57,
2248
+ 58,
2249
+ 59,
2250
+ 60,
2251
+ 61,
2252
+ 62,
2253
+ 63,
2254
+ 64,
2255
+ 81,
2256
+ 82,
2257
+ 83,
2258
+ 84,
2259
+ 85
2260
+ ],
2261
+ inclusive: !0
2262
+ }
2263
+ }
2264
+ };
2265
+ })();
2266
+ function Ve() {
2267
+ this.yy = {};
2268
+ }
2269
+ return __name(Ve, "Parser"), Ve.prototype = Be, Be.Parser = Ve, new Ve();
2270
+ })();
2271
+ parser.parser = parser;
2272
+ var c4Diagram_default = parser, c4ShapeArray = [], boundaryParseStack = [""], currentBoundaryParse = "global", parentBoundaryParse = "", boundaries = [{
2273
+ alias: "global",
2274
+ label: { text: "global" },
2275
+ type: { text: "global" },
2276
+ tags: null,
2277
+ link: null,
2278
+ parentBoundary: ""
2279
+ }], rels = [], title = "", wrapEnabled = !1, c4ShapeInRow = 4, c4BoundaryInRow = 2, c4Type, getC4Type = /* @__PURE__ */ __name(function() {
2280
+ return c4Type;
2281
+ }, "getC4Type"), setC4Type = /* @__PURE__ */ __name(function(e) {
2282
+ c4Type = sanitizeText(e, getConfig2());
2283
+ }, "setC4Type"), addRel = /* @__PURE__ */ __name(function(e, t, n, r, i, a, o, s, l) {
2284
+ if (e == null || t == null || n == null || r == null) return;
2285
+ let u = {}, d = rels.find((e) => e.from === t && e.to === n);
2286
+ if (d ? u = d : rels.push(u), u.type = e, u.from = t, u.to = n, u.label = { text: r }, i == null) u.techn = { text: "" };
2287
+ else if (typeof i == "object") {
2288
+ let [e, t] = Object.entries(i)[0];
2289
+ u[e] = { text: t };
2290
+ } else u.techn = { text: i };
2291
+ if (a == null) u.descr = { text: "" };
2292
+ else if (typeof a == "object") {
2293
+ let [e, t] = Object.entries(a)[0];
2294
+ u[e] = { text: t };
2295
+ } else u.descr = { text: a };
2296
+ if (typeof o == "object") {
2297
+ let [e, t] = Object.entries(o)[0];
2298
+ u[e] = t;
2299
+ } else u.sprite = o;
2300
+ if (typeof s == "object") {
2301
+ let [e, t] = Object.entries(s)[0];
2302
+ u[e] = t;
2303
+ } else u.tags = s;
2304
+ if (typeof l == "object") {
2305
+ let [e, t] = Object.entries(l)[0];
2306
+ u[e] = t;
2307
+ } else u.link = l;
2308
+ u.wrap = autoWrap();
2309
+ }, "addRel"), addPersonOrSystem = /* @__PURE__ */ __name(function(e, t, n, r, i, a, o) {
2310
+ if (t === null || n === null) return;
2311
+ let s = {}, l = c4ShapeArray.find((e) => e.alias === t);
2312
+ if (l && t === l.alias ? s = l : (s.alias = t, c4ShapeArray.push(s)), n == null ? s.label = { text: "" } : s.label = { text: n }, r == null) s.descr = { text: "" };
2313
+ else if (typeof r == "object") {
2314
+ let [e, t] = Object.entries(r)[0];
2315
+ s[e] = { text: t };
2316
+ } else s.descr = { text: r };
2317
+ if (typeof i == "object") {
2318
+ let [e, t] = Object.entries(i)[0];
2319
+ s[e] = t;
2320
+ } else s.sprite = i;
2321
+ if (typeof a == "object") {
2322
+ let [e, t] = Object.entries(a)[0];
2323
+ s[e] = t;
2324
+ } else s.tags = a;
2325
+ if (typeof o == "object") {
2326
+ let [e, t] = Object.entries(o)[0];
2327
+ s[e] = t;
2328
+ } else s.link = o;
2329
+ s.typeC4Shape = { text: e }, s.parentBoundary = currentBoundaryParse, s.wrap = autoWrap();
2330
+ }, "addPersonOrSystem"), addContainer = /* @__PURE__ */ __name(function(e, t, n, r, i, a, o, s) {
2331
+ if (t === null || n === null) return;
2332
+ let l = {}, u = c4ShapeArray.find((e) => e.alias === t);
2333
+ if (u && t === u.alias ? l = u : (l.alias = t, c4ShapeArray.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn = { text: "" };
2334
+ else if (typeof r == "object") {
2335
+ let [e, t] = Object.entries(r)[0];
2336
+ l[e] = { text: t };
2337
+ } else l.techn = { text: r };
2338
+ if (i == null) l.descr = { text: "" };
2339
+ else if (typeof i == "object") {
2340
+ let [e, t] = Object.entries(i)[0];
2341
+ l[e] = { text: t };
2342
+ } else l.descr = { text: i };
2343
+ if (typeof a == "object") {
2344
+ let [e, t] = Object.entries(a)[0];
2345
+ l[e] = t;
2346
+ } else l.sprite = a;
2347
+ if (typeof o == "object") {
2348
+ let [e, t] = Object.entries(o)[0];
2349
+ l[e] = t;
2350
+ } else l.tags = o;
2351
+ if (typeof s == "object") {
2352
+ let [e, t] = Object.entries(s)[0];
2353
+ l[e] = t;
2354
+ } else l.link = s;
2355
+ l.wrap = autoWrap(), l.typeC4Shape = { text: e }, l.parentBoundary = currentBoundaryParse;
2356
+ }, "addContainer"), addComponent = /* @__PURE__ */ __name(function(e, t, n, r, i, a, o, s) {
2357
+ if (t === null || n === null) return;
2358
+ let l = {}, u = c4ShapeArray.find((e) => e.alias === t);
2359
+ if (u && t === u.alias ? l = u : (l.alias = t, c4ShapeArray.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn = { text: "" };
2360
+ else if (typeof r == "object") {
2361
+ let [e, t] = Object.entries(r)[0];
2362
+ l[e] = { text: t };
2363
+ } else l.techn = { text: r };
2364
+ if (i == null) l.descr = { text: "" };
2365
+ else if (typeof i == "object") {
2366
+ let [e, t] = Object.entries(i)[0];
2367
+ l[e] = { text: t };
2368
+ } else l.descr = { text: i };
2369
+ if (typeof a == "object") {
2370
+ let [e, t] = Object.entries(a)[0];
2371
+ l[e] = t;
2372
+ } else l.sprite = a;
2373
+ if (typeof o == "object") {
2374
+ let [e, t] = Object.entries(o)[0];
2375
+ l[e] = t;
2376
+ } else l.tags = o;
2377
+ if (typeof s == "object") {
2378
+ let [e, t] = Object.entries(s)[0];
2379
+ l[e] = t;
2380
+ } else l.link = s;
2381
+ l.wrap = autoWrap(), l.typeC4Shape = { text: e }, l.parentBoundary = currentBoundaryParse;
2382
+ }, "addComponent"), addPersonOrSystemBoundary = /* @__PURE__ */ __name(function(e, t, n, r, i) {
2383
+ if (e === null || t === null) return;
2384
+ let a = {}, o = boundaries.find((t) => t.alias === e);
2385
+ if (o && e === o.alias ? a = o : (a.alias = e, boundaries.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "system" };
2386
+ else if (typeof n == "object") {
2387
+ let [e, t] = Object.entries(n)[0];
2388
+ a[e] = { text: t };
2389
+ } else a.type = { text: n };
2390
+ if (typeof r == "object") {
2391
+ let [e, t] = Object.entries(r)[0];
2392
+ a[e] = t;
2393
+ } else a.tags = r;
2394
+ if (typeof i == "object") {
2395
+ let [e, t] = Object.entries(i)[0];
2396
+ a[e] = t;
2397
+ } else a.link = i;
2398
+ a.parentBoundary = currentBoundaryParse, a.wrap = autoWrap(), parentBoundaryParse = currentBoundaryParse, currentBoundaryParse = e, boundaryParseStack.push(parentBoundaryParse);
2399
+ }, "addPersonOrSystemBoundary"), addContainerBoundary = /* @__PURE__ */ __name(function(e, t, n, r, i) {
2400
+ if (e === null || t === null) return;
2401
+ let a = {}, o = boundaries.find((t) => t.alias === e);
2402
+ if (o && e === o.alias ? a = o : (a.alias = e, boundaries.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "container" };
2403
+ else if (typeof n == "object") {
2404
+ let [e, t] = Object.entries(n)[0];
2405
+ a[e] = { text: t };
2406
+ } else a.type = { text: n };
2407
+ if (typeof r == "object") {
2408
+ let [e, t] = Object.entries(r)[0];
2409
+ a[e] = t;
2410
+ } else a.tags = r;
2411
+ if (typeof i == "object") {
2412
+ let [e, t] = Object.entries(i)[0];
2413
+ a[e] = t;
2414
+ } else a.link = i;
2415
+ a.parentBoundary = currentBoundaryParse, a.wrap = autoWrap(), parentBoundaryParse = currentBoundaryParse, currentBoundaryParse = e, boundaryParseStack.push(parentBoundaryParse);
2416
+ }, "addContainerBoundary"), addDeploymentNode = /* @__PURE__ */ __name(function(e, t, n, r, i, a, o, s) {
2417
+ if (t === null || n === null) return;
2418
+ let l = {}, u = boundaries.find((e) => e.alias === t);
2419
+ if (u && t === u.alias ? l = u : (l.alias = t, boundaries.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.type = { text: "node" };
2420
+ else if (typeof r == "object") {
2421
+ let [e, t] = Object.entries(r)[0];
2422
+ l[e] = { text: t };
2423
+ } else l.type = { text: r };
2424
+ if (i == null) l.descr = { text: "" };
2425
+ else if (typeof i == "object") {
2426
+ let [e, t] = Object.entries(i)[0];
2427
+ l[e] = { text: t };
2428
+ } else l.descr = { text: i };
2429
+ if (typeof o == "object") {
2430
+ let [e, t] = Object.entries(o)[0];
2431
+ l[e] = t;
2432
+ } else l.tags = o;
2433
+ if (typeof s == "object") {
2434
+ let [e, t] = Object.entries(s)[0];
2435
+ l[e] = t;
2436
+ } else l.link = s;
2437
+ l.nodeType = e, l.parentBoundary = currentBoundaryParse, l.wrap = autoWrap(), parentBoundaryParse = currentBoundaryParse, currentBoundaryParse = t, boundaryParseStack.push(parentBoundaryParse);
2438
+ }, "addDeploymentNode"), popBoundaryParseStack = /* @__PURE__ */ __name(function() {
2439
+ currentBoundaryParse = parentBoundaryParse, boundaryParseStack.pop(), parentBoundaryParse = boundaryParseStack.pop(), boundaryParseStack.push(parentBoundaryParse);
2440
+ }, "popBoundaryParseStack"), updateElStyle = /* @__PURE__ */ __name(function(e, t, n, r, i, a, o, s, l, u, d) {
2441
+ let f = c4ShapeArray.find((e) => e.alias === t);
2442
+ if (!(f === void 0 && (f = boundaries.find((e) => e.alias === t), f === void 0))) {
2443
+ if (n != null) if (typeof n == "object") {
2444
+ let [e, t] = Object.entries(n)[0];
2445
+ f[e] = t;
2446
+ } else f.bgColor = n;
2447
+ if (r != null) if (typeof r == "object") {
2448
+ let [e, t] = Object.entries(r)[0];
2449
+ f[e] = t;
2450
+ } else f.fontColor = r;
2451
+ if (i != null) if (typeof i == "object") {
2452
+ let [e, t] = Object.entries(i)[0];
2453
+ f[e] = t;
2454
+ } else f.borderColor = i;
2455
+ if (a != null) if (typeof a == "object") {
2456
+ let [e, t] = Object.entries(a)[0];
2457
+ f[e] = t;
2458
+ } else f.shadowing = a;
2459
+ if (o != null) if (typeof o == "object") {
2460
+ let [e, t] = Object.entries(o)[0];
2461
+ f[e] = t;
2462
+ } else f.shape = o;
2463
+ if (s != null) if (typeof s == "object") {
2464
+ let [e, t] = Object.entries(s)[0];
2465
+ f[e] = t;
2466
+ } else f.sprite = s;
2467
+ if (l != null) if (typeof l == "object") {
2468
+ let [e, t] = Object.entries(l)[0];
2469
+ f[e] = t;
2470
+ } else f.techn = l;
2471
+ if (u != null) if (typeof u == "object") {
2472
+ let [e, t] = Object.entries(u)[0];
2473
+ f[e] = t;
2474
+ } else f.legendText = u;
2475
+ if (d != null) if (typeof d == "object") {
2476
+ let [e, t] = Object.entries(d)[0];
2477
+ f[e] = t;
2478
+ } else f.legendSprite = d;
2479
+ }
2480
+ }, "updateElStyle"), updateRelStyle = /* @__PURE__ */ __name(function(e, t, n, r, i, a, o) {
2481
+ let s = rels.find((e) => e.from === t && e.to === n);
2482
+ if (s !== void 0) {
2483
+ if (r != null) if (typeof r == "object") {
2484
+ let [e, t] = Object.entries(r)[0];
2485
+ s[e] = t;
2486
+ } else s.textColor = r;
2487
+ if (i != null) if (typeof i == "object") {
2488
+ let [e, t] = Object.entries(i)[0];
2489
+ s[e] = t;
2490
+ } else s.lineColor = i;
2491
+ if (a != null) if (typeof a == "object") {
2492
+ let [e, t] = Object.entries(a)[0];
2493
+ s[e] = parseInt(t);
2494
+ } else s.offsetX = parseInt(a);
2495
+ if (o != null) if (typeof o == "object") {
2496
+ let [e, t] = Object.entries(o)[0];
2497
+ s[e] = parseInt(t);
2498
+ } else s.offsetY = parseInt(o);
2499
+ }
2500
+ }, "updateRelStyle"), updateLayoutConfig = /* @__PURE__ */ __name(function(e, t, n) {
2501
+ let r = c4ShapeInRow, i = c4BoundaryInRow;
2502
+ if (typeof t == "object") {
2503
+ let e = Object.values(t)[0];
2504
+ r = parseInt(e);
2505
+ } else r = parseInt(t);
2506
+ if (typeof n == "object") {
2507
+ let e = Object.values(n)[0];
2508
+ i = parseInt(e);
2509
+ } else i = parseInt(n);
2510
+ r >= 1 && (c4ShapeInRow = r), i >= 1 && (c4BoundaryInRow = i);
2511
+ }, "updateLayoutConfig"), getC4ShapeInRow = /* @__PURE__ */ __name(function() {
2512
+ return c4ShapeInRow;
2513
+ }, "getC4ShapeInRow"), getC4BoundaryInRow = /* @__PURE__ */ __name(function() {
2514
+ return c4BoundaryInRow;
2515
+ }, "getC4BoundaryInRow"), getCurrentBoundaryParse = /* @__PURE__ */ __name(function() {
2516
+ return currentBoundaryParse;
2517
+ }, "getCurrentBoundaryParse"), getParentBoundaryParse = /* @__PURE__ */ __name(function() {
2518
+ return parentBoundaryParse;
2519
+ }, "getParentBoundaryParse"), getC4ShapeArray = /* @__PURE__ */ __name(function(e) {
2520
+ return e == null ? c4ShapeArray : c4ShapeArray.filter((t) => t.parentBoundary === e);
2521
+ }, "getC4ShapeArray"), getC4Shape = /* @__PURE__ */ __name(function(e) {
2522
+ return c4ShapeArray.find((t) => t.alias === e);
2523
+ }, "getC4Shape"), getC4ShapeKeys = /* @__PURE__ */ __name(function(e) {
2524
+ return Object.keys(getC4ShapeArray(e));
2525
+ }, "getC4ShapeKeys"), getBoundaries = /* @__PURE__ */ __name(function(e) {
2526
+ return e == null ? boundaries : boundaries.filter((t) => t.parentBoundary === e);
2527
+ }, "getBoundaries"), getBoundarys = getBoundaries, getRels = /* @__PURE__ */ __name(function() {
2528
+ return rels;
2529
+ }, "getRels"), getTitle = /* @__PURE__ */ __name(function() {
2530
+ return title;
2531
+ }, "getTitle"), setWrap = /* @__PURE__ */ __name(function(e) {
2532
+ wrapEnabled = e;
2533
+ }, "setWrap"), autoWrap = /* @__PURE__ */ __name(function() {
2534
+ return wrapEnabled;
2535
+ }, "autoWrap"), c4Db_default = {
2536
+ addPersonOrSystem,
2537
+ addPersonOrSystemBoundary,
2538
+ addContainer,
2539
+ addContainerBoundary,
2540
+ addComponent,
2541
+ addDeploymentNode,
2542
+ popBoundaryParseStack,
2543
+ addRel,
2544
+ updateElStyle,
2545
+ updateRelStyle,
2546
+ updateLayoutConfig,
2547
+ autoWrap,
2548
+ setWrap,
2549
+ getC4ShapeArray,
2550
+ getC4Shape,
2551
+ getC4ShapeKeys,
2552
+ getBoundaries,
2553
+ getBoundarys,
2554
+ getCurrentBoundaryParse,
2555
+ getParentBoundaryParse,
2556
+ getRels,
2557
+ getTitle,
2558
+ getC4Type,
2559
+ getC4ShapeInRow,
2560
+ getC4BoundaryInRow,
2561
+ setAccTitle,
2562
+ getAccTitle,
2563
+ getAccDescription,
2564
+ setAccDescription,
2565
+ getConfig: /* @__PURE__ */ __name(() => getConfig2().c4, "getConfig"),
2566
+ clear: /* @__PURE__ */ __name(function() {
2567
+ c4ShapeArray = [], boundaries = [{
2568
+ alias: "global",
2569
+ label: { text: "global" },
2570
+ type: { text: "global" },
2571
+ tags: null,
2572
+ link: null,
2573
+ parentBoundary: ""
2574
+ }], parentBoundaryParse = "", currentBoundaryParse = "global", boundaryParseStack = [""], rels = [], boundaryParseStack = [""], title = "", wrapEnabled = !1, c4ShapeInRow = 4, c4BoundaryInRow = 2;
2575
+ }, "clear"),
2576
+ LINETYPE: {
2577
+ SOLID: 0,
2578
+ DOTTED: 1,
2579
+ NOTE: 2,
2580
+ SOLID_CROSS: 3,
2581
+ DOTTED_CROSS: 4,
2582
+ SOLID_OPEN: 5,
2583
+ DOTTED_OPEN: 6,
2584
+ LOOP_START: 10,
2585
+ LOOP_END: 11,
2586
+ ALT_START: 12,
2587
+ ALT_ELSE: 13,
2588
+ ALT_END: 14,
2589
+ OPT_START: 15,
2590
+ OPT_END: 16,
2591
+ ACTIVE_START: 17,
2592
+ ACTIVE_END: 18,
2593
+ PAR_START: 19,
2594
+ PAR_AND: 20,
2595
+ PAR_END: 21,
2596
+ RECT_START: 22,
2597
+ RECT_END: 23,
2598
+ SOLID_POINT: 24,
2599
+ DOTTED_POINT: 25
2600
+ },
2601
+ ARROWTYPE: {
2602
+ FILLED: 0,
2603
+ OPEN: 1
2604
+ },
2605
+ PLACEMENT: {
2606
+ LEFTOF: 0,
2607
+ RIGHTOF: 1,
2608
+ OVER: 2
2609
+ },
2610
+ setTitle: /* @__PURE__ */ __name(function(e) {
2611
+ title = sanitizeText(e, getConfig2());
2612
+ }, "setTitle"),
2613
+ setC4Type
2614
+ }, drawRect2 = /* @__PURE__ */ __name(function(e, t) {
2615
+ return drawRect(e, t);
2616
+ }, "drawRect"), drawImage = /* @__PURE__ */ __name(function(e, t, n, r, i, a) {
2617
+ let o = e.append("image");
2618
+ o.attr("width", t), o.attr("height", n), o.attr("x", r), o.attr("y", i);
2619
+ let s = a.startsWith("data:image/png;base64") ? a : (0, import_dist.sanitizeUrl)(a);
2620
+ o.attr("xlink:href", s);
2621
+ }, "drawImage"), drawRels = /* @__PURE__ */ __name((e, t, n) => {
2622
+ let r = e.append("g"), i = 0;
2623
+ for (let e of t) {
2624
+ let t = e.textColor ? e.textColor : "#444444", a = e.lineColor ? e.lineColor : "#444444", o = e.offsetX ? parseInt(e.offsetX) : 0, s = e.offsetY ? parseInt(e.offsetY) : 0;
2625
+ if (i === 0) {
2626
+ let t = r.append("line");
2627
+ t.attr("x1", e.startPoint.x), t.attr("y1", e.startPoint.y), t.attr("x2", e.endPoint.x), t.attr("y2", e.endPoint.y), t.attr("stroke-width", "1"), t.attr("stroke", a), t.style("fill", "none"), e.type !== "rel_b" && t.attr("marker-end", "url(#arrowhead)"), (e.type === "birel" || e.type === "rel_b") && t.attr("marker-start", "url(#arrowend)"), i = -1;
2628
+ } else {
2629
+ let t = r.append("path");
2630
+ t.attr("fill", "none").attr("stroke-width", "1").attr("stroke", a).attr("d", "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", e.startPoint.x).replaceAll("starty", e.startPoint.y).replaceAll("controlx", e.startPoint.x + (e.endPoint.x - e.startPoint.x) / 2 - (e.endPoint.x - e.startPoint.x) / 4).replaceAll("controly", e.startPoint.y + (e.endPoint.y - e.startPoint.y) / 2).replaceAll("stopx", e.endPoint.x).replaceAll("stopy", e.endPoint.y)), e.type !== "rel_b" && t.attr("marker-end", "url(#arrowhead)"), (e.type === "birel" || e.type === "rel_b") && t.attr("marker-start", "url(#arrowend)");
2631
+ }
2632
+ let l = n.messageFont();
2633
+ _drawTextCandidateFunc(n)(e.label.text, r, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + o, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + s, e.label.width, e.label.height, { fill: t }, l), e.techn && e.techn.text !== "" && (l = n.messageFont(), _drawTextCandidateFunc(n)("[" + e.techn.text + "]", r, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + o, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + n.messageFontSize + 5 + s, Math.max(e.label.width, e.techn.width), e.techn.height, {
2634
+ fill: t,
2635
+ "font-style": "italic"
2636
+ }, l));
2637
+ }
2638
+ }, "drawRels"), drawBoundary = /* @__PURE__ */ __name(function(e, t, n) {
2639
+ let r = e.append("g"), i = t.bgColor ? t.bgColor : "none", a = t.borderColor ? t.borderColor : "#444444", o = t.fontColor ? t.fontColor : "black", s = {
2640
+ "stroke-width": 1,
2641
+ "stroke-dasharray": "7.0,7.0"
2642
+ };
2643
+ t.nodeType && (s = { "stroke-width": 1 }), drawRect2(r, {
2644
+ x: t.x,
2645
+ y: t.y,
2646
+ fill: i,
2647
+ stroke: a,
2648
+ width: t.width,
2649
+ height: t.height,
2650
+ rx: 2.5,
2651
+ ry: 2.5,
2652
+ attrs: s
2653
+ });
2654
+ let l = n.boundaryFont();
2655
+ l.fontWeight = "bold", l.fontSize += 2, l.fontColor = o, _drawTextCandidateFunc(n)(t.label.text, r, t.x, t.y + t.label.Y, t.width, t.height, { fill: "#444444" }, l), t.type && t.type.text !== "" && (l = n.boundaryFont(), l.fontColor = o, _drawTextCandidateFunc(n)(t.type.text, r, t.x, t.y + t.type.Y, t.width, t.height, { fill: "#444444" }, l)), t.descr && t.descr.text !== "" && (l = n.boundaryFont(), l.fontSize -= 2, l.fontColor = o, _drawTextCandidateFunc(n)(t.descr.text, r, t.x, t.y + t.descr.Y, t.width, t.height, { fill: "#444444" }, l));
2656
+ }, "drawBoundary"), drawC4Shape = /* @__PURE__ */ __name(function(e, t, n) {
2657
+ let r = t.bgColor ? t.bgColor : n[t.typeC4Shape.text + "_bg_color"], i = t.borderColor ? t.borderColor : n[t.typeC4Shape.text + "_border_color"], a = t.fontColor ? t.fontColor : "#FFFFFF", o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
2658
+ switch (t.typeC4Shape.text) {
2659
+ case "person":
2660
+ o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
2661
+ break;
2662
+ case "external_person":
2663
+ o = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
2664
+ break;
2665
+ }
2666
+ let s = e.append("g");
2667
+ s.attr("class", "person-man");
2668
+ let l = getNoteRect();
2669
+ switch (t.typeC4Shape.text) {
2670
+ case "person":
2671
+ case "external_person":
2672
+ case "system":
2673
+ case "external_system":
2674
+ case "container":
2675
+ case "external_container":
2676
+ case "component":
2677
+ case "external_component":
2678
+ l.x = t.x, l.y = t.y, l.fill = r, l.width = t.width, l.height = t.height, l.stroke = i, l.rx = 2.5, l.ry = 2.5, l.attrs = { "stroke-width": .5 }, drawRect2(s, l);
2679
+ break;
2680
+ case "system_db":
2681
+ case "external_system_db":
2682
+ case "container_db":
2683
+ case "external_container_db":
2684
+ case "component_db":
2685
+ case "external_component_db":
2686
+ s.append("path").attr("fill", r).attr("stroke-width", "0.5").attr("stroke", i).attr("d", "Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2).replaceAll("height", t.height)), s.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", i).attr("d", "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2));
2687
+ break;
2688
+ case "system_queue":
2689
+ case "external_system_queue":
2690
+ case "container_queue":
2691
+ case "external_container_queue":
2692
+ case "component_queue":
2693
+ case "external_component_queue":
2694
+ s.append("path").attr("fill", r).attr("stroke-width", "0.5").attr("stroke", i).attr("d", "Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("width", t.width).replaceAll("half", t.height / 2)), s.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", i).attr("d", "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", t.x + t.width).replaceAll("starty", t.y).replaceAll("half", t.height / 2));
2695
+ break;
2696
+ }
2697
+ let u = getC4ShapeFont(n, t.typeC4Shape.text);
2698
+ switch (s.append("text").attr("fill", a).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", t.typeC4Shape.width).attr("x", t.x + t.width / 2 - t.typeC4Shape.width / 2).attr("y", t.y + t.typeC4Shape.Y).text("<<" + t.typeC4Shape.text + ">>"), t.typeC4Shape.text) {
2699
+ case "person":
2700
+ case "external_person":
2701
+ drawImage(s, 48, 48, t.x + t.width / 2 - 24, t.y + t.image.Y, o);
2702
+ break;
2703
+ }
2704
+ let d = n[t.typeC4Shape.text + "Font"]();
2705
+ return d.fontWeight = "bold", d.fontSize += 2, d.fontColor = a, _drawTextCandidateFunc(n)(t.label.text, s, t.x, t.y + t.label.Y, t.width, t.height, { fill: a }, d), d = n[t.typeC4Shape.text + "Font"](), d.fontColor = a, t.techn && t.techn?.text !== "" ? _drawTextCandidateFunc(n)(t.techn.text, s, t.x, t.y + t.techn.Y, t.width, t.height, {
2706
+ fill: a,
2707
+ "font-style": "italic"
2708
+ }, d) : t.type && t.type.text !== "" && _drawTextCandidateFunc(n)(t.type.text, s, t.x, t.y + t.type.Y, t.width, t.height, {
2709
+ fill: a,
2710
+ "font-style": "italic"
2711
+ }, d), t.descr && t.descr.text !== "" && (d = n.personFont(), d.fontColor = a, _drawTextCandidateFunc(n)(t.descr.text, s, t.x, t.y + t.descr.Y, t.width, t.height, { fill: a }, d)), t.height;
2712
+ }, "drawC4Shape"), insertDatabaseIcon = /* @__PURE__ */ __name(function(e) {
2713
+ e.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
2714
+ }, "insertDatabaseIcon"), insertComputerIcon = /* @__PURE__ */ __name(function(e) {
2715
+ e.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
2716
+ }, "insertComputerIcon"), insertClockIcon = /* @__PURE__ */ __name(function(e) {
2717
+ e.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
2718
+ }, "insertClockIcon"), insertArrowHead = /* @__PURE__ */ __name(function(e) {
2719
+ e.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
2720
+ }, "insertArrowHead"), insertArrowEnd = /* @__PURE__ */ __name(function(e) {
2721
+ e.append("defs").append("marker").attr("id", "arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
2722
+ }, "insertArrowEnd"), insertArrowFilledHead = /* @__PURE__ */ __name(function(e) {
2723
+ e.append("defs").append("marker").attr("id", "filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
2724
+ }, "insertArrowFilledHead"), insertDynamicNumber = /* @__PURE__ */ __name(function(e) {
2725
+ e.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
2726
+ }, "insertDynamicNumber"), insertArrowCrossHead = /* @__PURE__ */ __name(function(e) {
2727
+ let t = e.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
2728
+ t.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), t.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
2729
+ }, "insertArrowCrossHead"), getC4ShapeFont = /* @__PURE__ */ __name((e, t) => ({
2730
+ fontFamily: e[t + "FontFamily"],
2731
+ fontSize: e[t + "FontSize"],
2732
+ fontWeight: e[t + "FontWeight"]
2733
+ }), "getC4ShapeFont"), _drawTextCandidateFunc = /* @__PURE__ */ (function() {
2734
+ function e(e, t, n, i, a, o, s) {
2735
+ r(t.append("text").attr("x", n + a / 2).attr("y", i + o / 2 + 5).style("text-anchor", "middle").text(e), s);
2736
+ }
2737
+ __name(e, "byText");
2738
+ function t(e, t, n, i, a, o, s, l) {
2739
+ let { fontSize: u, fontFamily: d, fontWeight: f } = l, m = e.split(common_default.lineBreakRegex);
2740
+ for (let e = 0; e < m.length; e++) {
2741
+ let o = e * u - u * (m.length - 1) / 2, l = t.append("text").attr("x", n + a / 2).attr("y", i).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", u).style("font-weight", f).style("font-family", d);
2742
+ l.append("tspan").attr("dy", o).text(m[e]).attr("alignment-baseline", "mathematical"), r(l, s);
2743
+ }
2744
+ }
2745
+ __name(t, "byTspan");
2746
+ function n(e, n, i, a, o, s, l, u) {
2747
+ let d = n.append("switch"), f = d.append("foreignObject").attr("x", i).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2748
+ f.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, d, i, a, o, s, l, u), r(f, l);
2749
+ }
2750
+ __name(n, "byFo");
2751
+ function r(e, t) {
2752
+ for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
2753
+ }
2754
+ return __name(r, "_setTextAttrs"), function(r) {
2755
+ return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
2756
+ };
2757
+ })(), svgDraw_default = {
2758
+ drawRect: drawRect2,
2759
+ drawBoundary,
2760
+ drawC4Shape,
2761
+ drawRels,
2762
+ drawImage,
2763
+ insertArrowHead,
2764
+ insertArrowEnd,
2765
+ insertArrowFilledHead,
2766
+ insertDynamicNumber,
2767
+ insertArrowCrossHead,
2768
+ insertDatabaseIcon,
2769
+ insertComputerIcon,
2770
+ insertClockIcon
2771
+ }, globalBoundaryMaxX = 0, globalBoundaryMaxY = 0, c4ShapeInRow2 = 4, c4BoundaryInRow2 = 2;
2772
+ parser.yy = c4Db_default;
2773
+ var conf = {}, Bounds = class {
2774
+ static #e = __name(this, "Bounds");
2775
+ constructor(e) {
2776
+ this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, setConf(e.db.getConfig());
2777
+ }
2778
+ setData(e, t, n, r) {
2779
+ this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = t, this.nextData.starty = this.data.starty = n, this.nextData.stopy = this.data.stopy = r;
2780
+ }
2781
+ updateVal(e, t, n, r) {
2782
+ e[t] === void 0 ? e[t] = n : e[t] = r(n, e[t]);
2783
+ }
2784
+ insert(e) {
2785
+ this.nextData.cnt = this.nextData.cnt + 1;
2786
+ let t = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + e.margin : this.nextData.stopx + e.margin * 2, n = t + e.width, r = this.nextData.starty + e.margin * 2, i = r + e.height;
2787
+ (t >= this.data.widthLimit || n >= this.data.widthLimit || this.nextData.cnt > c4ShapeInRow2) && (t = this.nextData.startx + e.margin + conf.nextLinePaddingX, r = this.nextData.stopy + e.margin * 2, this.nextData.stopx = n = t + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = i = r + e.height, this.nextData.cnt = 1), e.x = t, e.y = r, this.updateVal(this.data, "startx", t, Math.min), this.updateVal(this.data, "starty", r, Math.min), this.updateVal(this.data, "stopx", n, Math.max), this.updateVal(this.data, "stopy", i, Math.max), this.updateVal(this.nextData, "startx", t, Math.min), this.updateVal(this.nextData, "starty", r, Math.min), this.updateVal(this.nextData, "stopx", n, Math.max), this.updateVal(this.nextData, "stopy", i, Math.max);
2788
+ }
2789
+ init(e) {
2790
+ this.name = "", this.data = {
2791
+ startx: void 0,
2792
+ stopx: void 0,
2793
+ starty: void 0,
2794
+ stopy: void 0,
2795
+ widthLimit: void 0
2796
+ }, this.nextData = {
2797
+ startx: void 0,
2798
+ stopx: void 0,
2799
+ starty: void 0,
2800
+ stopy: void 0,
2801
+ cnt: 0
2802
+ }, setConf(e.db.getConfig());
2803
+ }
2804
+ bumpLastMargin(e) {
2805
+ this.data.stopx += e, this.data.stopy += e;
2806
+ }
2807
+ }, setConf = /* @__PURE__ */ __name(function(e) {
2808
+ assignWithDepth_default(conf, e), e.fontFamily && (conf.personFontFamily = conf.systemFontFamily = conf.messageFontFamily = e.fontFamily), e.fontSize && (conf.personFontSize = conf.systemFontSize = conf.messageFontSize = e.fontSize), e.fontWeight && (conf.personFontWeight = conf.systemFontWeight = conf.messageFontWeight = e.fontWeight);
2809
+ }, "setConf"), c4ShapeFont = /* @__PURE__ */ __name((e, t) => ({
2810
+ fontFamily: e[t + "FontFamily"],
2811
+ fontSize: e[t + "FontSize"],
2812
+ fontWeight: e[t + "FontWeight"]
2813
+ }), "c4ShapeFont"), boundaryFont = /* @__PURE__ */ __name((e) => ({
2814
+ fontFamily: e.boundaryFontFamily,
2815
+ fontSize: e.boundaryFontSize,
2816
+ fontWeight: e.boundaryFontWeight
2817
+ }), "boundaryFont"), messageFont = /* @__PURE__ */ __name((e) => ({
2818
+ fontFamily: e.messageFontFamily,
2819
+ fontSize: e.messageFontSize,
2820
+ fontWeight: e.messageFontWeight
2821
+ }), "messageFont");
2822
+ function calcC4ShapeTextWH(r, i, a, o, s) {
2823
+ if (!i[r].width) if (a) i[r].text = wrapLabel(i[r].text, s, o), i[r].textLines = i[r].text.split(common_default.lineBreakRegex).length, i[r].width = s, i[r].height = calculateTextHeight(i[r].text, o);
2824
+ else {
2825
+ let e = i[r].text.split(common_default.lineBreakRegex);
2826
+ i[r].textLines = e.length;
2827
+ let a = 0;
2828
+ i[r].height = 0, i[r].width = 0;
2829
+ for (let s of e) i[r].width = Math.max(calculateTextWidth(s, o), i[r].width), a = calculateTextHeight(s, o), i[r].height = i[r].height + a;
2830
+ }
2831
+ }
2832
+ __name(calcC4ShapeTextWH, "calcC4ShapeTextWH");
2833
+ var drawBoundary2 = /* @__PURE__ */ __name(function(e, t, r) {
2834
+ t.x = r.data.startx, t.y = r.data.starty, t.width = r.data.stopx - r.data.startx, t.height = r.data.stopy - r.data.starty, t.label.y = conf.c4ShapeMargin - 35;
2835
+ let i = t.wrap && conf.wrap, a = boundaryFont(conf);
2836
+ a.fontSize += 2, a.fontWeight = "bold", calcC4ShapeTextWH("label", t, i, a, calculateTextWidth(t.label.text, a)), svgDraw_default.drawBoundary(e, t, conf);
2837
+ }, "drawBoundary"), drawC4ShapeArray = /* @__PURE__ */ __name(function(e, t, r, i) {
2838
+ let a = 0;
2839
+ for (let o of i) {
2840
+ a = 0;
2841
+ let i = r[o], s = c4ShapeFont(conf, i.typeC4Shape.text);
2842
+ switch (s.fontSize -= 2, i.typeC4Shape.width = calculateTextWidth("«" + i.typeC4Shape.text + "»", s), i.typeC4Shape.height = s.fontSize + 2, i.typeC4Shape.Y = conf.c4ShapePadding, a = i.typeC4Shape.Y + i.typeC4Shape.height - 4, i.image = {
2843
+ width: 0,
2844
+ height: 0,
2845
+ Y: 0
2846
+ }, i.typeC4Shape.text) {
2847
+ case "person":
2848
+ case "external_person":
2849
+ i.image.width = 48, i.image.height = 48, i.image.Y = a, a = i.image.Y + i.image.height;
2850
+ break;
2851
+ }
2852
+ i.sprite && (i.image.width = 48, i.image.height = 48, i.image.Y = a, a = i.image.Y + i.image.height);
2853
+ let l = i.wrap && conf.wrap, u = conf.width - conf.c4ShapePadding * 2, d = c4ShapeFont(conf, i.typeC4Shape.text);
2854
+ d.fontSize += 2, d.fontWeight = "bold", calcC4ShapeTextWH("label", i, l, d, u), i.label.Y = a + 8, a = i.label.Y + i.label.height, i.type && i.type.text !== "" ? (i.type.text = "[" + i.type.text + "]", calcC4ShapeTextWH("type", i, l, c4ShapeFont(conf, i.typeC4Shape.text), u), i.type.Y = a + 5, a = i.type.Y + i.type.height) : i.techn && i.techn.text !== "" && (i.techn.text = "[" + i.techn.text + "]", calcC4ShapeTextWH("techn", i, l, c4ShapeFont(conf, i.techn.text), u), i.techn.Y = a + 5, a = i.techn.Y + i.techn.height);
2855
+ let f = a, p = i.label.width;
2856
+ i.descr && i.descr.text !== "" && (calcC4ShapeTextWH("descr", i, l, c4ShapeFont(conf, i.typeC4Shape.text), u), i.descr.Y = a + 20, a = i.descr.Y + i.descr.height, p = Math.max(i.label.width, i.descr.width), f = a - i.descr.textLines * 5), p += conf.c4ShapePadding, i.width = Math.max(i.width || conf.width, p, conf.width), i.height = Math.max(i.height || conf.height, f, conf.height), i.margin = i.margin || conf.c4ShapeMargin, e.insert(i), svgDraw_default.drawC4Shape(t, i, conf);
2857
+ }
2858
+ e.bumpLastMargin(conf.c4ShapeMargin);
2859
+ }, "drawC4ShapeArray"), Point = class {
2860
+ static #e = __name(this, "Point");
2861
+ constructor(e, t) {
2862
+ this.x = e, this.y = t;
2863
+ }
2864
+ }, getIntersectPoint = /* @__PURE__ */ __name(function(e, t) {
2865
+ let n = e.x, r = e.y, i = t.x, a = t.y, o = n + e.width / 2, s = r + e.height / 2, l = Math.abs(n - i), u = Math.abs(r - a), d = u / l, f = e.height / e.width, p = null;
2866
+ return r == a && n < i ? p = new Point(n + e.width, s) : r == a && n > i ? p = new Point(n, s) : n == i && r < a ? p = new Point(o, r + e.height) : n == i && r > a && (p = new Point(o, r)), n > i && r < a ? p = f >= d ? new Point(n, s + d * e.width / 2) : new Point(o - l / u * e.height / 2, r + e.height) : n < i && r < a ? p = f >= d ? new Point(n + e.width, s + d * e.width / 2) : new Point(o + l / u * e.height / 2, r + e.height) : n < i && r > a ? p = f >= d ? new Point(n + e.width, s - d * e.width / 2) : new Point(o + e.height / 2 * l / u, r) : n > i && r > a && (p = f >= d ? new Point(n, s - e.width / 2 * d) : new Point(o - e.height / 2 * l / u, r)), p;
2867
+ }, "getIntersectPoint"), getIntersectPoints = /* @__PURE__ */ __name(function(e, t) {
2868
+ let n = {
2869
+ x: 0,
2870
+ y: 0
2871
+ };
2872
+ n.x = t.x + t.width / 2, n.y = t.y + t.height / 2;
2873
+ let r = getIntersectPoint(e, n);
2874
+ return n.x = e.x + e.width / 2, n.y = e.y + e.height / 2, {
2875
+ startPoint: r,
2876
+ endPoint: getIntersectPoint(t, n)
2877
+ };
2878
+ }, "getIntersectPoints"), drawRels2 = /* @__PURE__ */ __name(function(e, t, r, i) {
2879
+ let a = 0;
2880
+ for (let e of t) {
2881
+ a += 1;
2882
+ let t = e.wrap && conf.wrap, o = messageFont(conf);
2883
+ i.db.getC4Type() === "C4Dynamic" && (e.label.text = a + ": " + e.label.text);
2884
+ let s = calculateTextWidth(e.label.text, o);
2885
+ calcC4ShapeTextWH("label", e, t, o, s), e.techn && e.techn.text !== "" && (s = calculateTextWidth(e.techn.text, o), calcC4ShapeTextWH("techn", e, t, o, s)), e.descr && e.descr.text !== "" && (s = calculateTextWidth(e.descr.text, o), calcC4ShapeTextWH("descr", e, t, o, s));
2886
+ let l = getIntersectPoints(r(e.from), r(e.to));
2887
+ e.startPoint = l.startPoint, e.endPoint = l.endPoint;
2888
+ }
2889
+ svgDraw_default.drawRels(e, t, conf);
2890
+ }, "drawRels");
2891
+ function drawInsideBoundary(e, t, n, r, i) {
2892
+ let a = new Bounds(i);
2893
+ a.data.widthLimit = n.data.widthLimit / Math.min(c4BoundaryInRow2, r.length);
2894
+ for (let [o, s] of r.entries()) {
2895
+ let r = 0;
2896
+ s.image = {
2897
+ width: 0,
2898
+ height: 0,
2899
+ Y: 0
2900
+ }, s.sprite && (s.image.width = 48, s.image.height = 48, s.image.Y = r, r = s.image.Y + s.image.height);
2901
+ let l = s.wrap && conf.wrap, u = boundaryFont(conf);
2902
+ if (u.fontSize += 2, u.fontWeight = "bold", calcC4ShapeTextWH("label", s, l, u, a.data.widthLimit), s.label.Y = r + 8, r = s.label.Y + s.label.height, s.type && s.type.text !== "" && (s.type.text = "[" + s.type.text + "]", calcC4ShapeTextWH("type", s, l, boundaryFont(conf), a.data.widthLimit), s.type.Y = r + 5, r = s.type.Y + s.type.height), s.descr && s.descr.text !== "") {
2903
+ let e = boundaryFont(conf);
2904
+ e.fontSize -= 2, calcC4ShapeTextWH("descr", s, l, e, a.data.widthLimit), s.descr.Y = r + 20, r = s.descr.Y + s.descr.height;
2905
+ }
2906
+ if (o == 0 || o % c4BoundaryInRow2 === 0) {
2907
+ let e = n.data.startx + conf.diagramMarginX, t = n.data.stopy + conf.diagramMarginY + r;
2908
+ a.setData(e, e, t, t);
2909
+ } else {
2910
+ let e = a.data.stopx === a.data.startx ? a.data.startx : a.data.stopx + conf.diagramMarginX, t = a.data.starty;
2911
+ a.setData(e, e, t, t);
2912
+ }
2913
+ a.name = s.alias;
2914
+ let d = i.db.getC4ShapeArray(s.alias), f = i.db.getC4ShapeKeys(s.alias);
2915
+ f.length > 0 && drawC4ShapeArray(a, e, d, f), t = s.alias;
2916
+ let p = i.db.getBoundaries(t);
2917
+ p.length > 0 && drawInsideBoundary(e, t, a, p, i), s.alias !== "global" && drawBoundary2(e, s, a), n.data.stopy = Math.max(a.data.stopy + conf.c4ShapeMargin, n.data.stopy), n.data.stopx = Math.max(a.data.stopx + conf.c4ShapeMargin, n.data.stopx), globalBoundaryMaxX = Math.max(globalBoundaryMaxX, n.data.stopx), globalBoundaryMaxY = Math.max(globalBoundaryMaxY, n.data.stopy);
2918
+ }
2919
+ }
2920
+ __name(drawInsideBoundary, "drawInsideBoundary");
2921
+ var c4Renderer_default = {
2922
+ drawPersonOrSystemArray: drawC4ShapeArray,
2923
+ drawBoundary: drawBoundary2,
2924
+ setConf,
2925
+ draw: /* @__PURE__ */ __name(function(e, t, n, i) {
2926
+ conf = getConfig2().c4;
2927
+ let o = getConfig2().securityLevel, s;
2928
+ o === "sandbox" && (s = select_default("#i" + t));
2929
+ let l = select_default(o === "sandbox" ? s.nodes()[0].contentDocument.body : "body"), f = i.db;
2930
+ i.db.setWrap(conf.wrap), c4ShapeInRow2 = f.getC4ShapeInRow(), c4BoundaryInRow2 = f.getC4BoundaryInRow(), log.debug(`C:${JSON.stringify(conf, null, 2)}`);
2931
+ let p = o === "sandbox" ? l.select(`[id="${t}"]`) : select_default(`[id="${t}"]`);
2932
+ svgDraw_default.insertComputerIcon(p), svgDraw_default.insertDatabaseIcon(p), svgDraw_default.insertClockIcon(p);
2933
+ let m = new Bounds(i);
2934
+ m.setData(conf.diagramMarginX, conf.diagramMarginX, conf.diagramMarginY, conf.diagramMarginY), m.data.widthLimit = screen.availWidth, globalBoundaryMaxX = conf.diagramMarginX, globalBoundaryMaxY = conf.diagramMarginY;
2935
+ let h = i.db.getTitle();
2936
+ drawInsideBoundary(p, "", m, i.db.getBoundaries(""), i), svgDraw_default.insertArrowHead(p), svgDraw_default.insertArrowEnd(p), svgDraw_default.insertArrowCrossHead(p), svgDraw_default.insertArrowFilledHead(p), drawRels2(p, i.db.getRels(), i.db.getC4Shape, i), m.data.stopx = globalBoundaryMaxX, m.data.stopy = globalBoundaryMaxY;
2937
+ let g = m.data, _ = g.stopy - g.starty + 2 * conf.diagramMarginY, v = g.stopx - g.startx + 2 * conf.diagramMarginX;
2938
+ h && p.append("text").text(h).attr("x", (g.stopx - g.startx) / 2 - 4 * conf.diagramMarginX).attr("y", g.starty + conf.diagramMarginY), configureSvgSize(p, _, v, conf.useMaxWidth);
2939
+ let y = h ? 60 : 0;
2940
+ p.attr("viewBox", g.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + y) + " " + v + " " + (_ + y)), log.debug("models:", g);
2941
+ }, "draw")
2942
+ }, diagram = {
2943
+ parser: c4Diagram_default,
2944
+ db: c4Db_default,
2945
+ renderer: c4Renderer_default,
2946
+ styles: /* @__PURE__ */ __name((e) => `.person {
2947
+ stroke: ${e.personBorder};
2948
+ fill: ${e.personBkg};
2949
+ }
2950
+ `, "getStyles"),
2951
+ init: /* @__PURE__ */ __name(({ c4: e, wrap: t }) => {
2952
+ c4Renderer_default.setConf(e), c4Db_default.setWrap(t);
2953
+ }, "init")
2954
+ };
2955
+ export { diagram };